1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40821],{1855:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});var a=r(78542);r(18558);var s=r(72409);let n={xxs:{textSize:"text-[10px]",padding:"px-1.5 py-0.5",circleSize:"size-[14px]"},xs:{textSize:"text-xs",padding:"px-2 py-0.5",circleSize:"size-[18px]"},sm:{textSize:"text-[12px]",padding:"px-2.5 py-1",circleSize:"size-[24px]"},md:{textSize:"text-[13px]",padding:"px-3 py-1",circleSize:"size-[28px]"},lg:{textSize:"text-sm",padding:"px-3.5 py-1.5",circleSize:"size-[40px]"}};function i(e){let{planName:t,size:r="sm",variant:i="default",className:l,iconOnly:o=!1,isLocal:c=!1}=e,d=n[r],u=function(e){let t=(null==e?void 0:e.toLowerCase())||"";return t.includes("ultra")?{background:"bg-gradient-to-r from-[#2d2926] to-[#75593c]",text:"text-on-dark font-semibold",label:"Ultra"}:t.includes("enterprise")?{background:"bg-gradient-to-r from-[#131110] to-[#4a3826]",text:"text-on-dark font-semibold",label:"Enterprise"}:t.includes("pro")||t.includes("business")||t.includes("scale")||t.includes("max")?{background:"bg-gold",text:"text-secondary-foreground font-semibold",label:"Pro"}:t.includes("starter")||t.includes("plus")?{background:"bg-gradient-to-r from-blue-500 to-cyan-500",text:"text-white font-semibold",label:"Starter"}:{background:"bg-zinc-200 dark:bg-zinc-700",text:"text-muted-foreground font-medium",label:"Basic"}}(t);return"circle"===i?o&&"Basic"===u.label?null:(0,a.jsx)("div",{className:(0,s.cn)("flex items-center justify-center rounded-full flex-shrink-0",u.background,d.circleSize,l),children:(0,a.jsx)("span",{className:(0,s.cn)("font-semibold",u.text,d.textSize),children:u.label.charAt(0)})}):(0,a.jsx)("div",{className:(0,s.cn)("inline-flex items-center justify-center rounded-full",u.background,d.padding,l),children:(0,a.jsx)("span",{className:(0,s.cn)(u.text,d.textSize,"leading-none text-center"),children:u.label})})}},19493:(e,t,r)=>{"use strict";r.d(t,{_9:()=>l,wm:()=>n});var a=r(35151);let s={"Europe/Berlin":"de","Europe/Vienna":"de","Europe/Zurich":"de","Europe/Rome":"it","Europe/Madrid":"es","Europe/Paris":"fr","Europe/London":"en","Europe/Dublin":"en","Europe/Amsterdam":"en","Europe/Brussels":"en","Europe/Stockholm":"en","Europe/Oslo":"en","Europe/Copenhagen":"en","Europe/Helsinki":"en","Europe/Warsaw":"en","Europe/Prague":"en","Europe/Budapest":"en","Europe/Bucharest":"en","Europe/Athens":"en","Europe/Lisbon":"en","America/New_York":"en","America/Chicago":"en","America/Denver":"en","America/Los_Angeles":"en","America/Toronto":"en","America/Vancouver":"en","America/Mexico_City":"es","America/Sao_Paulo":"pt","America/Buenos_Aires":"es","America/Lima":"es","America/Santiago":"es","America/Bogota":"es","America/Caracas":"es","America/Montevideo":"es","America/La_Paz":"es","America/Asuncion":"es","America/Guayaquil":"es","America/Panama":"es","America/Costa_Rica":"es","America/Guatemala":"es","America/Havana":"es","America/Santo_Domingo":"es","America/San_Juan":"es","America/Managua":"es","America/Tegucigalpa":"es","America/El_Salvador":"es","America/Rio_Branco":"pt","America/Manaus":"pt","America/Cuiaba":"pt","America/Campo_Grande":"pt","America/Recife":"pt","America/Fortaleza":"pt","America/Belem":"pt","America/Araguaina":"pt","America/Maceio":"pt","America/Salvador":"pt","America/Bahia":"pt","America/Noronha":"pt","Asia/Tokyo":"ja","Asia/Shanghai":"zh","Asia/Beijing":"zh","Asia/Chongqing":"zh","Asia/Urumqi":"zh","Asia/Hong_Kong":"zh","Asia/Macau":"zh","Asia/Taipei":"zh","Asia/Singapore":"en","Asia/Seoul":"en","Asia/Dubai":"en","Asia/Mumbai":"en","Asia/Jakarta":"en","Asia/Bangkok":"en","Asia/Manila":"en","Asia/Riyadh":"en","Asia/Tel_Aviv":"en","Australia/Sydney":"en","Australia/Melbourne":"en","Pacific/Auckland":"en","Africa/Cairo":"en","Africa/Johannesburg":"en","Africa/Lagos":"en"};function n(){let e=function(){try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(s[e])return s[e];if(e.split("/")[0],e.startsWith("Europe/")){if(["Europe/Berlin","Europe/Vienna","Europe/Zurich"].some(t=>e.includes(t.split("/")[1])))return"de";if(e.includes("Rome")||e.includes("Milan"))return"it";if(e.includes("Madrid")||e.includes("Barcelona"))return"es";if(e.includes("Paris"))return"fr"}
1if(e.startsWith("America/")){if(e.includes("Sao_Paulo")||e.includes("Rio")||e.includes("Brasilia")||e.includes("Recife")||e.includes("Fortaleza")||e.includes("Manaus")||e.includes("Belem")||e.includes("Salvador")||e.includes("Campo_Grande")||e.includes("Cuiaba")||e.includes("Araguaina")||e.includes("Maceio")||e.includes("Bahia")||e.includes("Noronha")||e.includes("Rio_Branco"))return"pt";if(e.includes("Mexico")||e.includes("Buenos_Aires")||e.includes("Lima")||e.includes("Santiago")||e.includes("Bogota")||e.includes("Caracas")||e.includes("Montevideo")||e.includes("La_Paz")||e.includes("Asuncion")||e.includes("Guayaquil")||e.includes("Panama")||e.includes("Costa_Rica")||e.includes("Guatemala")||e.includes("Havana")||e.includes("Santo_Domingo")||e.includes("San_Juan")||e.includes("Managua")||e.includes("Tegucigalpa")||e.includes("El_Salvador"))return"es"}if(e.startsWith("Asia/")){if(e.includes("Shanghai")||e.includes("Beijing")||e.includes("Chongqing")||e.includes("Urumqi")||e.includes("Hong_Kong")||e.includes("Macau")||e.includes("Taipei"))return"zh";if(e.includes("Tokyo"))return"ja"}return null}catch(e){return console.warn("Failed to detect locale from timezone:",e),null}}();if(e)return e;let t=function(){try{console.log("\uD83C\uDF0D Browser navigator.language:",navigator.language),console.log("\uD83C\uDF0D Browser navigator.languages:",navigator.languages);let e=navigator.language.split("-")[0].toLowerCase();if(a.IB.includes(e))return console.log("\uD83C\uDF0D Matched browser language:",e),e;let t=navigator.language.toLowerCase();for(let e of a.IB)if(t.startsWith(e))return console.log("\uD83C\uDF0D Matched browser language (full code):",e),e;return console.log("\uD83C\uDF0D No match found for browser language"),null}catch(e){return console.warn("Failed to detect locale from browser:",e),null}}();return t||a.q}let i=new Set(["Europe/Paris","Europe/Berlin","Europe/Rome","Europe/Madrid","Europe/Vienna","Europe/Brussels","Europe/Amsterdam","Europe/Copenhagen","Europe/Stockholm","Europe/Helsinki","Europe/Warsaw","Europe/Prague","Europe/Budapest","Europe/Bucharest","Europe/Athens","Europe/Lisbon","Europe/Dublin","Europe/Luxembourg","Europe/Zagreb","Europe/Sofia","Europe/Tallinn","Europe/Vilnius","Europe/Riga","Europe/Bratislava","Europe/Ljubljana","Europe/Malta","Europe/Nicosia","Europe/Valletta"]);function l(){return!function(){try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;return i.has(e)}catch(e){return!1}}()?"USD":"EUR"}},35151:(e,t,r)=>{"use strict";r.d(t,{IB:()=>s,q:()=>n});var a=r(38697);let s=["en","de","it","zh","ja","pt","fr","es"],n="en";(0,a.M6)(async e=>{let{locale:t}=e,a=s.includes(t)?t:n;return{locale:a,messages:(await r(68700)("./".concat(a,".json"))).default}})},38330:(e,t,r)=>{"use strict";r.d(t,{g:()=>f});var a=r(78542),s=r(18558),n=r(47358),i=r(72842);r(44e3);var l=r(65920),o=r(32904),c=r(13747),d=r(29798),u=r(73048),m=r(36987),x=r(9601),p=r(64836),h=r(76841);let g=[{amount:10,price:10},{amount:25,price:25},{amount:50,price:50},{amount:100,price:100,popular:!0},{amount:250,price:250},{amount:500,price:500}];function f(e){let{open:t,onOpenChange:r,currentBalance:f=0,canPurchase:b,onPurchaseComplete:y}=e,{currency:j}=(0,p.I)();(0,h.Qn)(j);let[v,w]=(0,s.useState)(null),[N,k]=(0,s.useState)(""),[_,C]=(0,s.useState)(!1),[S,A]=(0,s.useState)(null),E=async e=>{if(e<10)return void A("Minimum purchase amount is ".concat((0,h.$g)(10,j)));if(e>5e3)return void A("Maximum purchase amount is ".concat((0,h.$g)(5e3,j)));C(!0),A(null);try{let t=await u.cp.purchaseCredits({amount:e,success_url:"".concat(window.location.origin,"/dashboard?credit_purchase=success"),cancel_url:"".concat(window.location.origin,"/dashboard?credit_purchase=cancelled")});if(t.checkout_url)window.location.href=t.checkout_url;else throw Error("No checkout URL received")}catch(r){var t;console.error("Credit purchase error:",r);let e=(null==(t=r.details)?void 0:t.detail)||r.message||"Failed to create checkout session";A(e),m.o.error(e)}finally{C(!1)}};return b?(0,a.jsx)(n.lG,{open:t,onOpenChange:r,children:(0,a.jsxs)(n.Cf,{className:"sm:max-w-md p-0 gap-0",children:[(0,a.jsx)(n.c7,{className:"px-4 pt-4 pb-3 border-b border-border",children:(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)("div",{className:"h-8 w-8 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center",children:(0,a.jsx)(c.default,{className:"h-4 w-4 text-primary"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.L3,{className:"text-base font-medium",children:"Get Additional Credits"}),(0,a.jsx)(n.rr,{className:"text-xs mt-0.5",children:f>0?"Current balance: ".concat((0,x.Ql)(f,{showDecimals:!0})):"Add credits for extended usage"})]})]})}),(0,a.jsxs)("div",{className:"px-4 py-3 space-y-3",children:[(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2",children:g.map(e=>(0,a.jsxs)("button",{type:"button",className:"relative rounded-xl border px-3 py-2.5 text-center transition-all cursor-pointer ".concat((null==v?void 0:v.amount)===e.amount?"border-primary bg-primary/5 ring-[1.5px] ring-primary":"border-border bg-card hover:border-primary/40 hover:bg-accent"),onClick:()=>{w(e),k(""),A(null)},children:[(0,a.jsx)("div",{className:"text-sm font-medium text-foreground",children:(0,h.$g)(e.amount,j)}),(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"Credits"})]},e.amount))}),S&&(0,a.jsxs)(l.Fc,{variant:"destructive",children:[(0,a.jsx)(o.default,{className:"h-4 w-4"}),(0,a.jsx)(l.TN,{className:"text-xs",children:S})]})]}),(0,a.jsxs)("div",{className:"flex justify-end gap-2 px-4 py-3 border-t border-border",children:[(0,a.jsx)(i.$,{variant:"outline",size:"sm",onClick:()=>r(!1),children:"Cancel"}),(0,a.jsxs)(i.$,{size:"sm",onClick:()=>{let e=v?v.amount:parseFloat(N);isNaN(e)?A("Please select a package or enter a valid amount"):E(e)},disabled:_||!v&&!N,className:"gap-1.5",children:[_&&(0,a.jsx)(d.RgoLoader,{customSize:14}),_?"Processing...":"Continue"]})]})]})}):(0,a.jsx)(n.lG,{open:t,onOpenChange:r,children:(0,a.jsxs)(n.Cf,{className:"sm:max-w-sm p-0 gap-0",children:[(0,a.jsx)(n.c7,{className:"px-4 pt-4 pb-3 border-b border-border",children:(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)("div",{className:"h-8 w-8 rounded-lg bg-amber-500/10 border border-amber-500/20 flex items-center justify-center",children:(0,a.jsx)(o.default,{className:"h-4 w-4 text-amber-500"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.L3,{className:"text-base font-medium",children:"Credits Not Available"}),(0,a.jsx)(n.rr,{className:"text-xs mt-0.5",children:"Upgrade required"})]})]})}),(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Credit purchases are available on any paid plan. Upgrade to Starter or above to add credits anytime."})}),(0,a.jsx)("div",{className:"flex justify-end gap-2 px-4 py-3 border-t border-border bg-muted/30",children:(0,a.jsx)(i.$,{variant:"outline",size:"sm",onClick:()=>r(!1),children:"Close"})})]})})}},40821:(e,t,r)=>{"use strict";r.d(t,{c:()=>ep});var a=r(78542),s=r(62447),n=r(55536),i=r(25837),l=r(72409),o=r(46204),c=r(18558),d=r(34470),u=r(41894),m=r(34577),x=r(63814),p=r(46763),h=r(99870),g=r(36217),f=r(62176),b=r(54942),y=r(57572),j=r(72842),v=r(77475),w=r(73048),N=r(36987),k=r(57570),_=r(35284),C=r(14333),S=r(50627),A=r(17807),E=r(68007),P=r(185
15),M=r(70686),B=r(38330);let z=e=>{let{className:t,size:r=50,delay:s=0,duration:n=6,colorFrom:i="#ffaa40",colorTo:c="#9c40ff",transition:d,style:u,reverse:m=!1,initialOffset:x=0,borderWidth:p=1,borderRadius:h=12}=e;return(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-[inherit] border-(length:--border-beam-width) border-transparent [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)] [mask-composite:intersect] [mask-clip:padding-box,border-box]",style:{"--border-beam-width":"".concat(p,"px")},children:(0,a.jsx)(o.P.div,{className:(0,l.cn)("absolute will-change-transform","bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",t),style:{width:r,height:r,offsetPath:"rect(0 auto auto 0 round ".concat(h,"px)"),"--color-from":i,"--color-to":c,transform:"translateZ(0)",backfaceVisibility:"hidden",...u},initial:{offsetDistance:"".concat(x,"%")},animate:{offsetDistance:m?["".concat(100-x,"%"),"".concat(-x,"%")]:["".concat(x,"%"),"".concat(100+x,"%")]},transition:{repeat:1/0,ease:"linear",duration:n,delay:-s,repeatType:"loop",...d}})})};var L=r(26643),R=r(43728),D=r.n(R),I=r(47358),U=r(60649),F=r(59652),T=r(2870),O=r(74334),G=r(76524);let K=["tooExpensive","notUsingOften","foundAlternative","technicalIssues","resultsNotGood","other"];function $(e){let{open:t,onOpenChange:r,onConfirm:s,targetPlanName:n,isPending:i=!1}=e,l=(0,L.c)("billing.downgradeDialog"),[o,d]=(0,c.useState)(1),[u,m]=(0,c.useState)(null),[x,p]=(0,c.useState)(""),[h,g]=(0,c.useState)(!1),f=()=>{d(1),m(null),p(""),r(!1)},b=async()=>{if(!u)return void N.o.error(l("pleaseSelectReason"));g(!0);try{let e=l("reasons.".concat(u)),t="Downgrade reason: ".concat(e);x.trim()&&(t+="\n\nAdditional feedback: ".concat(x.trim())),await G.H.post("/feedback",{rating:2,feedback_text:t,help_improve:!0,context:{type:"downgrade",reason:u,target_plan:n,additional_feedback:x.trim()||null}}),console.log("[Downgrade Feedback] Submitted")}catch(e){console.error("[Downgrade Feedback] Error:",e)}finally{g(!1),f(),s()}};return(0,a.jsx)(I.lG,{open:t,onOpenChange:e=>{e?r(e):f()},children:(0,a.jsx)(I.Cf,{className:"sm:max-w-md p-0 gap-0",children:1===o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(I.c7,{className:"px-4 pt-4 pb-3 border-b border-border",children:(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)("div",{className:"h-8 w-8 rounded-lg bg-muted border border-border flex items-center justify-center",children:(0,a.jsx)(T.default,{className:"h-4 w-4 text-muted-foreground"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(I.L3,{className:"text-base font-medium",children:l("confirmTitle")}),(0,a.jsx)(I.rr,{className:"text-xs mt-0.5",children:l("confirmSubtitle")})]})]})}),(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)("div",{className:"bg-muted/30 rounded-lg p-3 border border-border",children:(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:l("confirmDescription",{planName:n})})})}),(0,a.jsxs)("div",{className:"flex justify-end gap-2 px-4 py-3 border-t border-border bg-muted/30",children:[(0,a.jsx)(j.$,{variant:"outline",size:"sm",onClick:f,children:l("keepCurrentPlan")}),(0,a.jsx)(j.$,{size:"sm",onClick:()=>{d(2)},children:l("continue")})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(I.c7,{className:"px-4 pt-4 pb-3 border-b border-border",children:(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)("div",{className:"h-8 w-8 rounded-lg bg-muted border border-border flex items-center justify-center",children:(0,a.jsx)(O.default,{className:"h-4 w-4 text-muted-foreground"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(I.L3,{className:"text-base font-medium",children:l("feedbackTitle")}),(0,a.jsx)(I.rr,{className:"text-xs mt-0.5",children:l("feedbackSubtitle")})]})]})}),(0,a.jsxs)("div",{className:"p-4 space-y-4 max-h-[60vh] overflow-y-auto",children:[(0,a.jsx)("div",{className:"space-y-2",children:(0,a.jsx)(U.z,{value:u||"",onValueChange:e=>m(e),className:"space-y-2",children:K.map(e=>(0,a.jsxs)("label",{htmlFor:e,className:"flex items-center gap-3 p-3 rounded-lg border cursor-pointer transition-colors ".concat(u===e?"border-primary bg-primary/5":"border-border hover:border-muted-foreground
1/30 hover:bg-muted/30"),children:[(0,a.jsx)(U.C,{value:e,id:e,className:"size-4"}),(0,a.jsx)("span",{className:"text-sm",children:l("reasons.".concat(e))})]},e))})}),(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)("label",{className:"text-sm font-medium text-foreground",children:l("whatWouldMakeYouStay")}),(0,a.jsx)(F.T,{placeholder:l("feedbackPlaceholder"),value:x,onChange:e=>p(e.target.value),className:"min-h-[80px] resize-none text-sm",rows:3}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:l("feedbackFooter")})]})]}),(0,a.jsxs)("div",{className:"flex justify-end gap-2 px-4 py-3 border-t border-border bg-muted/30",children:[(0,a.jsx)(j.$,{variant:"outline",size:"sm",onClick:f,disabled:h,children:l("keepCurrentPlan")}),(0,a.jsx)(j.$,{size:"sm",onClick:b,disabled:!u||h||i,children:h?l("processing"):l("confirmDowngrade")})]})]})})})}var W=r(64836),J=r(56173),q=r(76841),V=r(83040);let Y=()=>{var e,t,r;return null!=(r=null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)&&r};function Z(e){let{headingLevel:t,billingPeriod:s,onBillingPeriodChange:n,maxAnnualDiscount:i,tiers:o,pickIndex:d,startAtPick:u=!1,lines:m,onSeen:x,notices:p,replacement:h,extra:g,renderCard:f}=e,b=(0,c.useRef)(null),y=(0,c.useRef)(null),j=(0,c.useRef)(null),v=(0,c.useRef)(null),w=(0,c.useRef)(null),N=(0,c.useRef)(null),k=(0,c.useRef)(null),_=(0,c.useRef)(m),C=(0,c.useRef)(d),S=(0,c.useRef)(u);S.current=u;let A=(0,c.useRef)(x);A.current=x;let[E,P]=(0,c.useState)(-1),[M,B]=(0,c.useState)(!1),[z,L]=(0,c.useState)("waiting"),[R,I]=(0,c.useState)(0),U=h?0:o.length;(0,c.useEffect)(()=>{let e=b.current;if(!e)return;if(!("IntersectionObserver"in window))return void A.current();let t=new IntersectionObserver(e=>{e[0].isIntersecting&&(A.current(),t.disconnect())},{threshold:.25});return t.observe(e),()=>t.disconnect()},[]),(0,c.useEffect)(()=>{let e=y.current,t=N.current;if(!e||!t||!U)return;if(!("IntersectionObserver"in window))return void L("off");let a=!1,s=new IntersectionObserver(async n=>{if(n[0].isIntersecting){s.disconnect();try{let[s,{RoomEnvironment:n},{mountPricingGuide:i}]=await Promise.all([r.e(9707).then(r.bind(r,31134)),Promise.all([r.e(9707),r.e(77644)]).then(r.bind(r,77644)),r.e(33218).then(r.bind(r,33218))]);if(a||!j.current||!v.current||!w.current)return;let l=i({THREE:s,RoomEnvironment:n,wrap:e,stage:j.current,bubble:v.current,sayEl:w.current,plansEl:t,cards:Array.from(t.querySelectorAll(":scope > .plan")),pickIndex:C.current,startAtPick:S.current,lines:_.current,reduced:Y(),onTalk:P,onRec:B,onDot:I});k.current=l,L(l?"on":"off"),console.debug("[GuidedPricing] guide ".concat(l?"mounted":"unavailable (no WebGL)","; pick=").concat(C.current))}catch(e){var i;console.warn("[GuidedPricing] pricing guide unavailable",e),null==(i=j.current)||i.querySelectorAll("canvas").forEach(e=>{var t,r;null==(r=e.getContext("webgl2")||e.getContext("webgl"))||null==(t=r.getExtension("WEBGL_lose_context"))||t.loseContext(),e.remove()}),a||L("off")}}},{rootMargin:"900px 0px"});return s.observe(e),()=>{var e;a=!0,s.disconnect(),null==(e=k.current)||e.destroy(),k.current=null,P(-1),B(!1)}},[U]),(0,c.useEffect)(()=>{var e;_.current=m,null==(e=k.current)||e.setLines(m)},[m]),(0,c.useEffect)(()=>{var e;C.current=d,null==(e=k.current)||e.setPick(d)},[d]);let F=(0,c.useRef)(!0);(0,c.useEffect)(()=>{var e;if(F.current){F.current=!1;return}null==(e=k.current)||e.onBilling(s)},[s]),(0,c.useEffect)(()=>{let e=N.current;if(!e)return;let t=()=>{let t=parseFloat(getComputedStyle(e).paddingLeft)||0,r=e.getBoundingClientRect().left,a=0,s=1/0,n=Array.from(e.querySelectorAll(":scope > .plan"));n.forEach((e,n)=>{let i=Math.abs(e.getBoundingClientRect().left-r-t);i<s&&(s=i,a=n)}),e.scrollLeft>=e.scrollWidth-e.clientWidth-2&&(a=n.length-1),I(a)};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[U]);let T="off"===z||M?d:-1;return(0,a.jsx)("section",{className:(0,l.cn)("pricing","h1"===t&&"page",o.length>=5&&"many"),id:"pricing",ref:b,children:(0,a.jsxs)("div",{className:"wrap",children:[(0,a.jsxs)("div",{className:"price-head",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)(t,{children:["Pick a plan.",(0,a.jsx)("br",{}),"RationalGo will talk you through it."]}),(0,a.jsx)("p",{children:"Every plan builds your website, finds customers and runs your social media. Bigger plans simply do more each day."})]}),!h&&(0,a.jsxs)("div",{className:"billing",role:"group","aria-label":"Billing period",children:[(0,a.jsx)("button",{type:"button","aria-pressed":"monthly"===s,onClick:()=>n("monthly"),children:"Monthly"}),(0,a.jsxs)("button",{type:"button","aria-pressed":"yearly"===s,onClick:()=>n("yearly"),children:["Annual",i>0&&(0,a.jsxs)("b",{children:["â",i,"%"]})]})]})]}),p&&(0,a.jsx)("div",{className:"price-notices",children:p}),h?(0,a.jsxs)(a.Fragment,{children:[h,(0,a.jsx)("div",{className:"price-foot",children:(0,a.jsxs)("span",{children:["Credits power everything RationalGo does \xb7"," ",(0,a.jsx)(D(),{href:"/help/credits",target:"_blank",rel:"noopener noreferrer",children:"credits explained â"})]})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"plans-wrap",ref:y,children:[(0,a.jsx)("div",{className:"price-stage",ref:j,"aria-hidden":"true"}),(0,a.jsxs)("div",{className:"bubble",ref:v,"aria-hidden":"true",children:[(0,a.jsx)("span",{className:"who",children:"RationalGo"}),(0,a.jsx)("p",{ref:w})]}),(0,a.jsx)("div",{className:"plans",ref:N,style:{"--plan-count":o.length},children:o.map((e,t)=>f(e,t,{talk:E===t,rec:T===t}))}),(0,a.jsx)("div",{className:"plans-dots","aria-label":"Plans",children:o.map((e,t)=>(0,a.jsx)("button",{type:"button","aria-label":e.name,"aria-current":R===t,onClick:()=>(e=>{let t=N.current,r=null==t?void 0:t.querySelectorAll(":scope > .plan")[e];if(!t||!r)return;let a=parseFloat(getComputedStyle(t).paddingLeft)||0;t.scrollTo({left:Math.max(0,r.offsetLeft-a),behavior:Y()?"auto":"smooth"})})(t)},e.tierKey))})]}),(0,a.jsxs)("div",{className:"price-foot",children:[(0,a.jsxs)("span",{children:["Credits power everything RationalGo does \xb7"," ",(0,a.jsx)(D(),{href:"/help/credits",target:"_blank",rel:"noopener noreferrer",children:"credits explained â"})]}),"on"===z&&(0,a.jsxs)("button",{type:"button",className:"ghost replay",onClick:()=>{var e;
1return null==(e=k.current)?void 0:e.replay()},children:[(0,a.jsx)("span",{className:"av",children:(0,a.jsx)("img",{src:"/landing/rgosi.webp",alt:""})}),"Ask RationalGo again"]})]})]}),g]})})}var H=r(60333);let Q={"Advanced AI":["i-spark","#7a5ad8"],"Website hosting":["i-globe","#3c6be0"],Website:["i-layout","#3c6be0"],Leads:["i-users","#2f8f5b"],Research:["i-search","#0e8fb3"],Outreach:["i-mail","#c98a1b"],"Social posts":["i-image","#d14f86"],"Social media":["i-cal","#2f8f5b"]},X="var(--rg-muted)";function ee(e){let t,{feature:r}=e,s="i-check",n="var(--rg-sage)",i=r.split(" - ")[0];if(t=r.match(/(\d[\d,]*)\s*One-Time Welcome Credits/i))[s,n]=["i-gift","#c98a1b"],i=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("b",{children:[t[1]," welcome credits"]})," when you sign up"]});else if(r.startsWith("CREDITS_BONUS:")){let[,e,t]=r.split(":");[s,n]=["i-spark","#7a5ad8"],i=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("s",{children:Number(e).toLocaleString("en-US")})," ",(0,a.jsx)("b",{children:Number(t).toLocaleString("en-US")})," credits a month"]})}else(t=r.match(/([\d,]+)\s*credits\/month/i))?([s,n]=["i-spark","#7a5ad8"],i="".concat(t[1]," credits a month")):(t=r.match(/(\d[\d,]*)\s*(?:free credits every day|Extra Free Daily Credits)/i))?([s,n]=["i-spark","#7a5ad8"],i="".concat(t[1]," free credits every day")):/^Up to \d+ chats/i.test(r)?[s,n]=["i-chat",X]:(t=r.split(" - ")[0].match(/^([A-Z][A-Za-z -]{1,24}):\s+(.+)$/))?([s,n]=Q[t[1]]||["i-check","var(--rg-sage)"],i=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("b",{children:[t[1],":"]})," ",t[2]]})):"RationalGo watermark on published apps"===r&&([s,n]=["i-layout",X]);return(0,a.jsxs)("li",{style:{"--c":n},children:[(0,a.jsx)(H.m,{id:s}),(0,a.jsx)("span",{children:i})]})}function et(e){var t;let{tier:r,headingTag:s,price:n,wasPrice:i,billLine:o,billGood:c,badge:d,buttonText:u,buttonDisabled:m,buttonKind:x,loading:p,onButtonClick:h,talk:g,rec:f,picked:b,statusNote:y,children:j}=e;return(0,a.jsxs)("article",{className:(0,l.cn)("plan",g&&"talk",f&&"rec",b&&"picked"),"data-plan":r.tierKey,children:[d&&(0,a.jsxs)("span",{className:"plan-badge",children:[(0,a.jsx)("i",{children:"â"})," ",d]}),(0,a.jsx)(s,{className:"plan-name",children:r.name}),(0,a.jsx)("p",{className:"tagl",children:r.description}),(0,a.jsxs)("div",{className:"price",children:[i&&(0,a.jsx)("s",{className:"was",children:i}),(0,a.jsx)("b",{children:n}),(0,a.jsx)("span",{children:"/month"})]}),(0,a.jsx)("p",{className:(0,l.cn)("bill",c&&"good"),children:o}),(0,a.jsx)("button",{type:"button",className:(0,l.cn)(x,p&&"loading"),disabled:m,onClick:h,children:u}),y&&(0,a.jsx)("div",{className:"plan-status",children:y}),(0,a.jsxs)("ul",{className:"feats",children:[r.features.map(e=>(0,a.jsx)(ee,{feature:e},e)),null==(t=r.disabledFeatures)?void 0:t.map(e=>(0,a.jsxs)("li",{className:"no",style:{"--c":X},children:[(0,a.jsx)(H.m,{id:"i-x"}),(0,a.jsxs)("span",{children:[e,(0,a.jsx)("span",{className:"sr-only",children:" (not included)"})]})]},e))]}),j]})}function er(e,t){let r=Math.round(e).toLocaleString("en-US");return"EUR"===t?"".concat(r,"â¬"):"$".concat(r)}let ea=e=>e.replace(/[&<>"']/g,e=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[e]);function es(e){let t={advancedAi:!1};for(let r of e.features){let e;if(e=r.match(/^Website(?: hosting)?:\s*(\d+)\s+(?:live\s+)?sites?/i)){let a=Number(e[1]);t.sites=1===a?"hosting for 1 site":"hosting for ".concat(a," sites");let s=r.match(/(\d+)\s+own domains/i);s?t.domains="".concat(s[1]," own domains"):/your own domain/i.test(r)&&(t.domains="your own domain")}else(e=r.match(/(\d+)\s+work emails a day/i))?t.emails=Number(e[1]):(e=r.match(/(\d+)\s+AI images a day/i))?t.images=Number(e[1]):(e=r.match(/([\d,]+)\s*credits\/month/i))?t.credits=e[1]:/^Advanced AI/i.test(r)&&(t.advancedAi=!0)}return t}function en(e){return[e.map(e=>"string"==typeof e?e:e.b).join(""),e.map(e=>"string"==typeof e?ea(e):"<b>".concat(ea(e.b),"</b>")).join("")]}function ei(e){let t=[];return e.forEach((r,a)=>{a>0&&t.push(a===e.length-1?" and ":", "),t.push({b:r})}),t}let el={Starter:"Starter launches your company",Pro:"Pro is for growing every day",Ultra:"Ultra is full speed"},eo=["monthly","yearly"],ec={2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5"};function ed(e){let t=(0,W.I)(),[r,a]=(0,c.useState)(!1);return(0,c.useEffect)(()=>a(!0),[]),"guided"!==e||r?t:{...t,currency:"USD",symbol:"$"}}let eu=()=>(0,a.jsx)(d.default,{className:"h-4 w-4 text-primary"});function em(e){let{price:t,isCompact:r}=e;return(0,a.jsx)(o.P.span,{className:r?"text-xl font-medium":"text-2xl sm:text-3xl font-medium leading-none",initial:{opacity:0,x:10,filter:"blur(5px)"}
1,animate:{opacity:1,x:0,filter:"blur(0px)"},transition:{duration:.25,ease:[.4,0,.2,1]},children:t},t)}function ex(e){var t,r,s;let{tier:o,isCompact:d=!1,currentSubscription:f,isLoading:b,isFetchingPlan:y,selectedPlan:_,onPlanSelect:S,onSubscriptionUpdate:B,isAuthenticated:R=!1,isSignedIn:D=!1,highlighted:I=!1,onRetryAccount:U,returnUrl:F,insideDialog:T=!1,billingPeriod:O="monthly",currentBillingPeriod:G=null,design:K="default",guided:W}=e,V=(0,L.c)("billing"),Y=(0,L.c)("common");(0,C.jE)();let{currency:Z,symbol:H}=ed(K),{locale:Q}=(0,J.o)(),X="$0"===o.price||"â¬0"===o.price||"0â¬"===o.price,ee=X?"monthly":O,ea="yearly"===ee,es=(()=>{if("$0"===o.price)return"EUR"===Z?"0â¬":"$0";let e=o.price;return"yearly"===ee&&o.yearlyPrice&&(e=o.yearlyPrice),(0,q.Ck)(e,Z)})(),en=(()=>{if("yearly"===ee&&o.yearlyPrice&&!X){let e=Math.round((0,q.J6)(o.yearlyPrice)/12);return(0,q.Ck)("$".concat(e),Z)}return null})(),ei=(()=>{if("yearly"===ee&&o.originalYearlyPrice&&!X){let e=(0,q.J6)(o.originalYearlyPrice);if(e>(0,q.J6)(o.yearlyPrice||"0"))return(0,q.$g)(e,Z)}return null})(),el=(()=>{let e=o.introFirstMonthDiscountPercent;if(!e||e<=0||X||"monthly"!==ee)return null;let t=(0,q.J6)(o.price);if(t<=0)return null;let r=Math.round(t*(1-e/100));return(0,q.$g)(r,Z)})(),eo=()=>{let e=(0,q.J6)(o.price||"$0");return"yearly"===ee&&o.yearlyPrice?Math.round((0,q.J6)(o.yearlyPrice)):e},ec=(0,k.KM)(),[ex,ep]=(0,c.useState)(!1),[eh,eg]=(0,c.useState)(null),ef=(e,t)=>{t?(eg(e),ep(!0)):ey(e,!1)},eb=()=>{eh&&(ep(!1),ey(eh,!0),eg(null))},ey=async function(e){var t,r,s,n;let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!R){if(D){null==U||U(),N.o.info("Loading your account â try again in a moment.");return}window.location.href=function(e,t){if("free"===e)return"/auth";let r="".concat(window.location.pathname,"?plan=").concat(encodeURIComponent(e),"&period=").concat(t);return"/auth?redirect=".concat(encodeURIComponent(r))}(e,"yearly"===ee?"yearly":"monthly");return}if(b[e])return;let c=eo(),d="monthly"===ee?"Monthly":"Yearly",u={item_id:"".concat(o.tierKey,"_").concat(ee),item_name:"".concat(o.name," ").concat(d),item_brand:"RationalGo AI",item_category:"Plans",item_list_id:"plans_listing",item_list_name:"Plans Listing",price:c,quantity:1};(0,i.Ml)(u,Z,c);try{null==S||S(e);let s="yearly"===ee?"yearly":"monthly";if(l)return void ec.mutate({target_tier_key:e,billing_period:s},{onSuccess:()=>{(0,A.nt)()},onSettled:()=>{B&&B()}});let n=await (0,w.fw)({tier_key:e,success_url:"".concat(window.location.origin,"/dashboard?subscription=success&session_id={CHECKOUT_SESSION_ID}"),cancel_url:function(e){let t=window.location.origin;try{return new URL(e||"/",t).toString()}catch(r){return console.warn("[BILLING] Unparseable checkout return URL, falling back to origin:",e,r),"".concat(t,"/")}}(F),billing_period:s,locale:Q}),c=n.checkout_url||n.url;switch(n.status){case"requires_action":if(c){N.o.info("Redirecting to complete payment authentication..."),window.location.href=c;return}N.o.error("Payment authentication is required but no payment URL was provided. Please try again.");break;case"new":case"checkout_created":if(c){let e=eo(),r="monthly"===ee?"Monthly":"Yearly",a=(null==f?void 0:f.subscription.tier_key)||(null==f||null==(t=f.tier)?void 0:t.name)||"none";(0,i.yf)({item_id:"".concat(o.tierKey,"_").concat(ee),item_name:"".concat(o.name," ").concat(r),price:e,value:e,currency:Z,billing_period:ee,previous_tier:a}),(0,A.vW)(),window.location.href=c}else console.error("Error: Received status but no checkout URL."),N.o.error(V("failedToInitiateSubscription"));break;case"upgraded":case"updated":let d=eo(),u="monthly"===ee?"Monthly":"Yearly",m=(null==f?void 0:f.subscription.tier_key)||(null==f||null==(r=f.tier)?void 0:r.name)||"none";(0,i.yf)({item_id:"".concat(o.tierKey,"_").concat(ee),item_name:"".concat(o.name," ").concat(u),price:d,value:d,currency:Z,billing_period:ee,previous_tier:m}),(0,A.Jv)(),B&&B(),setTimeout(()=>{window.location.href="/dashboard?subscription=success"},500);break;case"downgrade_scheduled":case"scheduled":let x=n.effective_date||n.scheduled_date,p=null;if(x)try{let e=new Date(x);isNaN(e.getTime())?(console.error("[BILLING] Invalid date value: ".concat(x)),p="end of billing period"):p=e.toLocaleDateString()}catch(e){console.error("[BILLING] Error parsing date: ".concat(e)),p="end of billing period"}let h=V("subscriptionChangeScheduled"),g=p?V("planWillChangeOn",{date:p}):V("planWillChangeOn",{date:"the end of your billing period"});N.o.success((0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:h}),(0,a.jsx)("p",{className:"text-sm mt-1",children:g})]})),(0,A.y3)(),B&&B();break;case"reactivated":case"yearly_upgrade_completed":case"switched_to_monthly":N.o.success(n.message||"Your subscription has been updated!"),B&&B(),setTimeout(()=>{window.location.href="/dashboard?subscription=success"},500);break;case"downgrade_not_supported":N.o.info(n.message||"Yearly plan downgrades are scheduled for end of billing period. Please contact support.");break;case"no_change":N.o.info(n.message||V("alreadyOnThisPlan"));break;default:console.warn("Received unexpected status from createCheckoutSession:",n.status),N.o.error("An unexpected error occurred. Please try again.")}}catch(t){console.error("Error processing subscription:",t);let e=(null==t||null==(n=t.response)||null==(s=n.data)?void 0:s.detail)||(null==t?void 0:t.message)||"Failed to process subscription. Please try again.";N.o.error(e)}},ej=n.C.cloudPricingItems.find(e=>{var t;return e.tierKey===(null==f?void 0:f.subscription.tier_key)||e.tierKey===(null==f||null==(t=f.tier)?void 0:t.name)}),ev=(null==f?void 0:f.subscription.tier_display_name)||"none",ew=(null==f?void 0:f.subscription.tier_key)===o.tierKey||(null==f||null==(t=f.tier)?void 0:t.name)===o.tierKey||(null==f?void 0:f.subscription.tier_display_name)===o.tierKey,eN=G===O,ek=null==f?void 0:f.subscription.status,e_=R&&ew&&eN&&("active"===ek||"trialing"===ek),eC=R&&(null==f?void 0:f.has_schedule),eS=eC&&((null==f?void 0:f.scheduled_tier_key)===o.tierKey||(null==f?void 0:f.scheduled_plan_name)===o.tierKey||(null==f?void 0:f.scheduled_plan_name)===o.name),eA=b[o.tierKey],eE=R?V("selectPlan"):o.buttonText,eP=eA,eM=null,eB="",ez=null,eL="",eR=!1,eD=!1,eI={allowed:!0};if(R){let e="$0"===o.price||"â¬0"===o.price||"0â¬"===o.price||"free"===o.tierKey;if(ew&&(eN||e))eE=V("currentPlan"),eP=!0,ez=null,eB="";else if(e_)"trial"===ev?(eE=V("trialActive"),ez=(0,a.jsx)("span",{className:"bg-green-500/10 text-green-600 text-[10px] font-medium px-1.5 py-0.5 rounded-full",children:V("trialBadge")})):(eE=V("currentPlan"),ez=null),eP=!0,eM="secondary",eB=d?"ring-1 ring-primary":"ring-2 ring-primary",eL="bg-primary/5 hover:bg-primary/10 text-primary";else if(eS)eE=V("scheduled"),eP=!0,eM="outline",eB=d?"ring-1 ring-yellow-500":"ring-2 ring-yellow-500",eL="bg-yellow-500/5 hover:bg-yellow-500/10 text-yellow-600 border-yellow-500/20",ez=(0,a.jsx)("span",{className:"bg-yellow-500/10 text-yellow-600 text-[10px] font-medium px-1.5 py-0.5 rounded-full",children:V("scheduledBadge")});else if(eC&&(null==f?void 0:f.subscription.tier_key)===o.tierKey)eE=V("changeScheduled"),eM="secondary",eB=d?"ring-1 ring-primary":"ring-2 ring-primary",eL="bg-primary/5 hover:bg-primary/10 text-primary",ez=(0,a.jsx)("span",{className:"bg-yellow-500/10 text-yellow-600 text-[10px] font-medium px-1.5 py-0.5 rounded-full",children:V("downgradePending")});else{let e=f&&(null==ej?void 0:ej.price)||"$0",t=0===(0,q.J6)(e)?0:100*(0,q.J6)(e),r=0===(0,q.J6)(es)?0:100*(0,q.J6)(es),a=ej&&ej.tierKey===o.tierKey,s=a&&G!==O,n=s&&"monthly"===G&&"yearly"===ee,i=eD=s&&"yearly"===G&&"monthly"===ee;0===t&&0===r&&(null==f?void 0:f.subscription.status)!=="no_subscription"?(eE=V("selectPlan"),eP=!0,eM="secondary",eL="bg-primary/5 hover:bg-primary/10 text-primary"):eD?(eE=V("annualPlanActive"),eP=!0,eM="outline",eL="border-primary/30 text-primary/70 cursor-not-allowed hover:bg-transparent"):eI.allowed?r>t||n||s?(s&&a?(eE=n?"Switch to Yearly":"Switch to Monthly",eM="default"):(eE=Y("upgrade"),eM=o.buttonColor),eL="bg-primary hover:bg-primary/90 text-primary-foreground"):r<t||i?(eE=V("downgrade"),eM="outline",eL="",eR=!0):(eE=V("selectPlan"),eM=o.buttonColor,eL="bg-primary hover:bg-primary/90 text-primary-foreground"):(eE=V("notAvailable"),eP=!0,eM="secondary",eL="opacity-50 cursor-not-allowed bg-muted text-muted-foreground")}eA&&(eE=V("loading"),eL="opacity-70 cursor-not-allowed")}else eM=o.buttonColor,o.buttonColor,eL="bg-primary hover:bg-primary/90 text-primary-foreground";let eU="Ultra"===o.name,eF=!X;R&&(null==f?void 0:f.stripe_enabled)===!1&&!eP&&eF&&(eE="Coming Soon",eP=!0,eM="outline",eL="border-primary/30 text-primary/70 cursor-not-allowed hover:bg-transparent",eR=!1);let eT=(()=>
1{if(X)return null;if("yearly"===ee){let e=(0,q.J6)(o.price),t=(0,q.J6)(o.yearlyPrice||"0");if(0===t)return null;let r=12*e-t;return r>0?Math.round(r):null}return null})();if("guided"===K&&W){let e=ea&&!X&&o.yearlyPrice?er((0,q.J6)(o.yearlyPrice)/12,Z):null,t=X?"free forever":el?"first month \xb7 then ".concat(es,"/month"):e&&o.yearlyPrice?"billed yearly \xb7 ".concat(er((0,q.J6)(o.yearlyPrice),Z)):"per month",r=R?eE:X?"Start free":"Get ".concat(o.name),n=eD&&(null==f||null==(s=f.subscription)?void 0:s.current_period_end)?"Switch available after ".concat(new Date("number"==typeof f.subscription.current_period_end?1e3*f.subscription.current_period_end:f.subscription.current_period_end).toLocaleDateString()):null,i=R&&ez||n?(0,a.jsxs)(a.Fragment,{children:[R&&ez,n]}):null;return(0,a.jsx)(et,{tier:o,headingTag:W.headingTag,price:el||e||es,wasPrice:el?es:ea||X||!o.compareAtPrice?null:(0,q.Ck)(o.compareAtPrice,Z),billLine:t,billGood:!X&&(!!el||!!e),badge:W.badge,buttonText:r,buttonDisabled:!!eP,buttonKind:W.isPick&&!eP?"candy":"ghost",loading:!!eA,onButtonClick:()=>ef(o.tierKey,eR),talk:W.talk,rec:W.rec,picked:I,statusNote:i,children:(0,a.jsx)($,{open:ex,onOpenChange:e=>{ep(e),e||eg(null)},onConfirm:eb,targetPlanName:o.name,isPending:ec.isPending})})}return(0,a.jsxs)("div",{className:(0,l.cn)("rounded-[14px] sm:rounded-[18px] flex flex-col relative overflow-hidden h-full",X?"bg-muted/40 border border-border/50":"bg-card border border-border hover:border-border/80 transition-colors",!T&&(I?"ring-2 ring-primary":eB)),"data-plan":o.tierKey,children:[eU&&(0,a.jsx)(E.StaticGradientBg,{variant:"header"}),(0,a.jsxs)("div",{className:(0,l.cn)("flex flex-col gap-1 relative z-10",T?"p-2 sm:p-3":"p-2.5 sm:p-3"),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-1.5 sm:gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[X&&(0,a.jsx)("div",{className:"h-6 w-6 sm:h-7 sm:w-7 rounded-full bg-muted flex items-center justify-center",children:(0,a.jsx)(u.default,{className:"h-3 w-3 sm:h-3.5 sm:w-3.5 text-muted-foreground"})}),(0,a.jsx)(P.y,{planName:o.name,size:"md",variant:"default"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[eT?(0,a.jsxs)("span",{className:"text-xs font-medium text-green-600 dark:text-green-400",children:["Save ",(0,q.$g)(eT,Z),"/yr"]}):el?(0,a.jsxs)(v.E,{className:"bg-green-500/15 text-green-600 dark:text-green-400 border-0 text-xs sm:text-sm font-semibold px-2 py-0.5",children:[o.introFirstMonthDiscountPercent,"% off 1st month"]}):null,R&&ez]})]}),(0,a.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,a.jsx)(em,{price:el||es,isCompact:T}),el?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"text-base sm:text-lg line-through text-muted-foreground",children:es}),(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:"first month"})]}):"yearly"!==ee||X?X?null:(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:V("perMonth")}):(0,a.jsxs)(a.Fragment,{children:[ei&&(0,a.jsx)("span",{className:"text-xs line-through text-muted-foreground",children:ei}),(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:"/yr"}),en&&(0,a.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",en,"/mo)"]})]})]}),el&&(0,a.jsxs)("p",{className:"text-xs font-medium text-green-600 dark:text-green-400",children:["then ",es,"/mo after"]}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:o.description})]}),(0,a.jsxs)("div",{className:(0,l.cn)("flex-grow relative z-10",T?"px-2 sm:px-3 pb-1":"px-2.5 sm:px-3 pb-1 sm:pb-2"),children:[(0,a.jsx)("div",{className:"border-t border-border/50 mb-2"}),(0,a.jsx)("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-1.5 block",children:"What's included"}),o.features&&o.features.length>0&&(0,a.jsx)("ul",{className:"space-y-1",children:o.features.map(e=>{if(e.includes("One-Time Welcome Credits")){let t=e.match(/(\d+[,\d]*)\s*One-Time Welcome Credits/),r=e.split(" - ")[1];return(0,a.jsxs)("li",{className:"flex items-start gap-2",children:[(0,a.jsx)("div",{className:"h-4 w-4 min-w-4 flex items-center justify-center mt-0.5",children:(0,a.jsx)(m.default,{className:"h-4 w-4 text-gold-strong"})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[(0,a.jsxs)("span",{className:"text-sm font-medium",children:[(null==t?void 0:t[1])||"2000"," One-Time Welcome Credits"]}),(0,a.jsx)(v.E,{className:"text-[10px] px-1.5 py-0.5 bg-accent-light text-gold-strong border-0",children:"Signup bonus"})]}),r&&(0,a.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground mt-0.5 hidden",children:r})]})]},e)}if("RationalGo watermark on published apps"===e)return(0,a.jsxs)("li",{className:"flex items-start gap-2",children:[(0,a.jsx)("div",{className:"h-4 w-4 min-w-4 flex items-center justify-center mt-0.5",children:(0,a.jsx)(x.default,{className:"h-4 w-4 text-muted-foreground"})}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:e})})]},e);if(e.startsWith("App Builder - ")&&/\d+\s+published apps/.test(e)){let t=e.split(" - "),r=t[0],s=t[1];return(0,a.jsxs)("li",{className:"flex items-start gap-2",children:[(0,a.jsx)("div",{className:"h-4 w-4 min-w-4 flex items-center justify-center mt-0.5",children:(0,a.jsx)(p.default,{className:"h-4 w-4 text-muted-foreground"})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:r}),s&&(0,a.jsx)("span",{className:"block text-xs text-muted-foreground mt-0.5",children:s})]})]},e)}if(e.includes("daily credits")){let t=e.match(/(\d+)\s*daily credits/),r=e.split(" - ")[1];return(0,a.jsxs)("li",{className:"flex items-start gap-2",children:[(0,a.jsx)("div",{className:"h-4 w-4 min-w-4 flex items-center justify-center mt-0.5",children:(0,a.jsx)(h.default,{className:"h-4 w-4 text-muted-foreground"})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("div",{className:"flex items-center gap-1.5",children:(0,a.jsxs)("span",{className:"text-sm font-medium",children:[(null==t?void 0:t[1])||"100"," Daily Credits"]})}),r&&(0,a.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground mt-0.5 hidden",children:r})]})]},e)}
1if(e.startsWith("CREDITS_BONUS:")){let t=e.split(":"),r=parseInt(t[1]).toLocaleString(),s=parseInt(t[2]).toLocaleString();return(0,a.jsxs)("li",{className:"flex items-start gap-2",children:[(0,a.jsx)("div",{className:"h-4 w-4 min-w-4 flex items-center justify-center mt-0.5",children:(0,a.jsx)(eu,{})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"text-sm text-muted-foreground line-through",children:r}),(0,a.jsx)("span",{className:"text-sm font-semibold text-primary",children:s}),(0,a.jsx)("span",{className:"text-sm font-medium",children:"Monthly Credits"}),(0,a.jsx)(v.E,{className:"text-[10px] px-1.5 sm:px-2 py-0.5 bg-gradient-to-r from-amber-500/20 to-orange-500/20 text-amber-600 dark:text-amber-400 border-amber-500/30",children:"2x BONUS"})]}),(0,a.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground hidden",children:"Refreshes each billing cycle"})]})]},e)}if(e.includes("custom AI Agents")){let t=e.match(/(\d+)\s*custom AI Agents/),r=e.split(" - ")[1];if(t)return(0,a.jsxs)("li",{className:"flex items-start gap-2",children:[(0,a.jsx)("div",{className:"h-4 w-4 min-w-4 flex items-center justify-center mt-0.5",children:(0,a.jsx)(eu,{})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1 sm:gap-1.5",children:[(0,a.jsxs)("span",{className:"text-sm font-medium",children:[t[1]," custom"]}),(0,a.jsx)(M.Y,{size:12,variant:"symbol",className:"hidden"}),(0,a.jsx)("span",{className:"text-sm font-medium",children:"AI Agents"})]}),r&&(0,a.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground mt-0.5 hidden",children:r})]})]},e)}if(e.includes("Advanced mode")||e.includes("ADVANCED Mode")){let t=e.split(" - ")[1];return(0,a.jsxs)("li",{className:"flex items-start gap-2",children:[(0,a.jsx)("div",{className:"h-4 w-4 min-w-4 flex items-center justify-center mt-0.5",children:(0,a.jsx)(eu,{})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground/60 line-through",children:"Basic"}),(0,a.jsx)("span",{className:"text-muted-foreground/60 text-xs",children:"â"}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 sm:gap-1.5 px-1.5 sm:px-2 py-0.5 bg-primary/10 dark:bg-primary/15 rounded-md",children:[(0,a.jsx)(M.Y,{size:10,variant:"symbol",className:"sm:hidden"}),(0,a.jsx)(M.Y,{size:12,variant:"symbol",className:"hidden"}),(0,a.jsx)("span",{className:"text-[10px] sm:text-xs font-semibold text-primary",children:"Advanced"})]})]}),t&&(0,a.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground mt-0.5 hidden",children:t})]})]},e)}if(e.includes("credits/month")){let t=e.match(/(\d+[,\d]*)\s*credits\/month/);if(t){let r=t[1];return(0,a.jsxs)("li",{className:"flex items-start gap-2",children:[(0,a.jsx)("div",{className:"h-4 w-4 min-w-4 flex items-center justify-center mt-0.5",children:(0,a.jsx)(eu,{})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("span",{className:"text-sm font-medium",children:[r," Monthly Credits"]}),(0,a.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground mt-0.5 hidden",children:"Refreshes each billing cycle"})]})]},e)}}let t=e;if(e.includes("private project")){let r=e.match(/(\d+)\s*private\s+project/);if(r){let e=parseInt(r[1]);t=1===e?V("features.privateProject",{count:e}):V("features.privateProjects")}}else if("Private projects"===e)t=V("features.privateProjects");else if(e.includes("custom trigger")){let r=e.match(/(\d+)\s*custom\s+trigger/);r&&(t=V("features.customTrigger",{count:parseInt(r[1])}))}else e.includes("100+ integrations")||"100+ integrations"===e||e.includes("100+ App Integrations")?t=V("features.integrations"):e.includes("Advanced mode")||e.includes("ADVANCED Mode")?t="RationalGo Advanced mode":(e.includes("Priority Support")||"Priority Support"===e)&&(t=V("features.prioritySupport"));let r=t.split(" - "),s=r[0],n=r[1],i=s.match(/^([A-Z][A-Za-z -]{1,24}):\s+(.+)$/);return(0,a.jsxs)("li",{className:"flex items-start gap-2 sm:gap-3",children:[(0,a.jsx)("div",{className:"h-4 w-4 min-w-4 flex items-center justify-center mt-0.5",children:(0,a.jsx)(eu,{})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:i?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"font-semibold",children:[i[1],":"]})," ",(0,a.jsx)("span",{className:"font-normal",children:i[2]})]}):s}),n&&(0,a.jsx)("span",{className:"text-[10px] sm:text-xs text-muted-foreground mt-0.5 hidden",children:n})]})]},e)})}),o.disabledFeatures&&o.disabledFeatures.length>0&&(0,a.jsx)("ul",{className:"space-y-1 mt-2 pt-2 border-t border-border/50",children:o.disabledFeatures.map(e=>(0,a.jsxs)("li",{className:"flex items-center gap-2 sm:gap-3 opacity-50",children:[(0,a.jsx)(g.default,{className:"h-4 w-4 text-muted-foreground"}),(0,a.jsx)("span",{className:"text-sm text-muted-foreground line-through",children:e})]},e))})]}),(0,a.jsxs)("div",{className:(0,l.cn)("mt-auto relative z-10",T?"px-2 sm:px-3 pt-1 pb-2 sm:pb-3":"px-2.5 sm:px-3 pt-1 pb-2.5 sm:pb-3"),children:[(0,a.jsx)(j.$,{onClick:()=>ef(o.tierKey,eR),disabled:eP,variant:X?"outline":eM||"default",className:(0,l.cn)("w-full font-medium transition-all duration-200",d||T?"h-8 text-xs":"h-9 text-sm",eL,eA&&"animate-pulse"),title:eI.allowed?void 0:eI.reason,children:eE}),eD&&(null==f||null==(r=f.subscription)?void 0:r.current_period_end)&&(0,a.jsxs)("p",{className:"text-[10px] text-muted-foreground text-center mt-1",children:["Switch available after ",new Date("number"==typeof f.subscription.current_period_end?1e3*f.subscription.current_period_end:f.subscription.current_period_end).toLocaleDateString()]})]}),(0,a.jsx)($,{open:ex,onOpenChange:e=>{ep(e),e||eg(null)},onConfirm:eb,targetPlanName:o.name,isPending:ec.isPending}),eU&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z,{size:200,duration:12,delay:0,borderWidth:1.5,colorFrom:"#C5A381",colorTo:"#75593C"}),(0,a.jsx)(z,{size:200,duration:12,delay:0,borderWidth:1.5,colorFrom:"#D3B591",colorTo:"#A8754F",initialOffset:50})]})]})}function ep(e){var t,r,o,d,u,p;let{returnUrl:h=window.location.href,showTitleAndTabs:g=!0,hideFree:w=!1,insideDialog:A=!1,noPadding:E=!1,onSubscriptionUpdate:M,customTitle:z,isAlert:R=!1,alertTitle:I,alertSubtitle:U,design:F="default",headingLevel:T="h2"}=e,O=(0,L.c)("billing"),{user:G}=(0,_.A)(),K=(0,V.Z)(),[$,W]=(0,c.useState)(!1),J=c.useRef(null),Y=!!G;(0,C.jE)();let{currency:H,symbol:Q}=ed(F),{data:X,isLoading:ee,error:et,refetch:ea}=(0,k.u4)({enabled:Y}),eu=Y&&!!X&&null===et,em=(null==X?void 0:X.subscription.has_scheduled_change)&&(null==X?void 0:X.subscription.scheduled_change),ep=null==X?void 0:X.subscription.scheduled_change,eh=X||null,eg=(()=>{var e;if(!eu||!eh)return null;if(eh.subscription.billing_period)return eh.subscription.billing_period;if(eh.plan_type)return eh.plan_type;if((null==(e=eh.subscription)?void 0:e.current_period_end)&&Math.round((("number"==typeof eh.subscription.current_period_end?1e3*eh.subscription.current_period_end:new Date(eh.subscription.current_period_end).getTime())-Date.now())/864e5)>180)return"yearly";return null})(),[ef,eb]=(0,c.useState)({}),[ey,ej]=(0,c.useState)(!1),[ev,ew]=(0,c.useState)(n.C.cloudPricingItems);(0,c.useEffect)(()=>()=>{J.current&&clearTimeout(J.current)},[]),(0,c.useEffect)(()=>{(0,s.ZP)().then(ew).catch(e=>{console.warn("[PricingSection] Failed to fetch dynamic pricing tiers:",e)})},[]);let[eN,ek]=(0,c.useState)("monthly"),[e_,eC]=(0,c.useState)(null);(0,c.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=e.get("period");t&&eo.includes(t)&&ek(t);let r=e.get("plan");r&&s.WZ.some(e=>
1e.tierKey===r)&&eC(r)},[]),(0,c.useEffect)(()=>{if(!e_)return;let e=requestAnimationFrame(()=>{var e;null==(e=Array.from(document.querySelectorAll('[data-plan="'.concat(e_,'"]'))).find(e=>null!==e.offsetParent))||e.scrollIntoView({behavior:"smooth",block:"center"})});return()=>cancelAnimationFrame(e)},[e_]);let eS=ev.filter(e=>!e.hidden&&(0,q.J6)(e.price)>0),eA=ev.find(e=>"$0"===e.price),eE=Math.max(0,eS.findIndex(e=>"Pro"===e.name)),[eP,eM]=(0,c.useState)(()=>{var e;if(!eu||!(null==eh?void 0:eh.subscription))return eE;let t=eh.subscription.tier_key||(null==(e=eh.tier)?void 0:e.name),r=eS.findIndex(e=>e.tierKey===t);return r>=0?r:eE}),eB=eS[eP]||null,ez=Math.max(...eS.map(e=>{var t;return null!=(t=e.discountPercentage)?t:0}));c.useEffect(()=>{if(eu&&(null==eh?void 0:eh.subscription)){var e;let t=eh.subscription.tier_key||(null==(e=eh.tier)?void 0:e.name),r=eS.findIndex(e=>e.tierKey===t);r>=0&&eM(r)}},[eu,null==eh||null==(t=eh.subscription)?void 0:t.tier_key,null==eh||null==(r=eh.tier)?void 0:r.name]);let eL=e=>{eb(t=>({...t,[e]:!0}))},eR=(0,c.useCallback)((e,t)=>{let r=(0,q.J6)(e.price||"$0");return"yearly"===t&&e.yearlyPrice?Math.round((0,q.J6)(e.yearlyPrice)):r},[]),eD=(0,c.useCallback)((e,t)=>{let r=eR(e,t),a="monthly"===t?"Monthly":"Yearly";return{item_id:"".concat(e.tierKey,"_").concat(t),item_name:"".concat(e.name," ").concat(a),item_brand:"RationalGo AI",item_category:"Plans",item_list_id:"plans_listing",item_list_name:"Plans Listing",price:r,quantity:1}},[eR]),[eI,eU]=(0,c.useState)(!1),eF=c.useRef(!1);c.useEffect(()=>{if(("guided"!==F||eI)&&!eF.current&&eB){let e=eD(eB,eN),t=eR(eB,eN);(0,i.AS)(e,H,t),eF.current=!0}},[eB,eN,H,eD,eR,F,eI]);let eT=(0,c.useCallback)(e=>{if(ek(e),eB){let t=eD(eB,e),r=eR(eB,e);(0,i.Vd)(t),(0,i.AS)(t,H,r),eF.current=!0}},[eB,H,eD,eR]),eO=(0,c.useCallback)(async()=>{if((null==K?void 0:K.isActive)&&K.promoCode)try{var e;if("undefined"==typeof navigator||!(null==(e=navigator.clipboard)?void 0:e.writeText))throw Error("Clipboard not available");await navigator.clipboard.writeText(K.promoCode),W(!0),N.o.success("Promo code ".concat(K.promoCode," copied to clipboard")),J.current&&clearTimeout(J.current),J.current=setTimeout(()=>W(!1),2e3)}catch(e){console.error("Failed to copy promo code",e),N.o.error("Failed to copy promo code")}},[null==K?void 0:K.isActive,null==K?void 0:K.promoCode]),eG=c.useMemo(()=>[...eA&&!w?[eA]:[],...eS],[ev,w]),eK=eu?(null==eh?void 0:eh.subscription.tier_key)||(null==eh||null==(o=eh.tier)?void 0:o.name):null,e$=eK?eG.findIndex(e=>e.tierKey===eK&&(0,q.J6)(e.price)>0):-1,eW=e$>=0,eJ=Math.max(0,eG.findIndex(e=>"Starter"===e.name)),eq=e_?eG.findIndex(e=>e.tierKey===e_):-1,eV=eq>=0?eq:eW?e$:eJ,eY=eq>=0?"chosen":eW?"current":"recommended",eZ=eW?e$:eJ,eH=c.useMemo(()=>"guided"===F?function(e){let{tiers:t,pickIndex:r,currency:a,pickReason:s}=e,n=t[r],i=en(["Hi! Iâm RationalGo. Let me walk you through the plans in plain English."]),l=t.map(e=>{var t=e,r=0===(0,q.J6)(e.price);let a=function(e){let t=[];return e.sites&&t.push(e.sites),e.domains&&t.push(e.domains),void 0!==e.emails&&void 0!==e.images?t.push("".concat(e.emails," work emails"),"".concat(e.images," AI images a day")):void 0!==e.emails?t.push("".concat(e.emails," work emails a day")):void 0!==e.images&&t.push("".concat(e.images," AI images a day")),t}(es(t));if(r)return a.length?en(["".concat(t.name," is free: "),...ei(a),". Perfect for trying me out."]):en(["".concat(t.name," is free. ").concat(t.description,".")]);let s=el[t.name]||"".concat(t.name," gets you");return a.length?en(["".concat(s,": "),...ei(a),"."]):en(["".concat(s,". ").concat(t.description,".")])}),o=i,c=en(["Annual billing saves money on every paid plan."]);if(n){let e=es(n),i=(0,q.J6)(n.price),l=r===t.length-1;if("current"===s)o=l?en(["Youâre on ",{b:n.name},", our biggest plan."]):en(["Youâre on ",{b:n.name},". Bigger plans simply do more each day."]);else{let t=[];e.credits&&t.push("".concat(e.credits," credits")),e.advancedAi&&t.push("our best AI"),e.domains&&t.push(e.domains);let r="chosen"===s?"You picked ":"My pick for you: ";o=t.length?en([r,{b:n.name},". ",{b:"".concat(er(i,a)," a month")}," gets you ",...ei(t),"."]):en([r,{b:n.name},"."])}let d=n.yearlyPrice?(0,q.J6)(n.yearlyPrice):0;if(d>0&&i>0){let e=Math.round((1-d/(12*i))*100);c=en([e>0?"Annual saves ".concat(e,"%: "):"Billed yearly: ",{b:n.name}," comes to ",{b:"".concat(er(d/12,a)," a month")},", billed ".concat(er(d,a)," a year.")])}}return{hi:i,plans:l,pick:o,annual:c}}({tiers:eG,pickIndex:eV,currency:H,pickReason:eY}):null,[F,eG,eV,H,eY]),eQ=!eu||!(null==X?void 0:X.subscription)||"free"===X.subscription.tier_key||"none"===X.subscription.tier_key||(null!=(u=null==(d=X.tier)?void 0:d.monthly_credits)?u:0)===0,eX=(null==K?void 0:K.isActive)&&eQ&&(0,a.jsx)("div",{className:"w-full max-w-6xl mx-auto mb-3 sm:mb-6",children:(0,a.jsxs)("div",{className:"flex flex-col gap-3 rounded-2xl border border-dashed border-primary/30 bg-primary/5 px-4 py-3 sm:px-6 sm:py-4 md:flex-row md:items-center md:justify-between",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs font-semibold uppercase tracking-[0.18em] text-primary",children:[(0,a.jsx)(m.default,{className:"h-3.5 w-3.5"}),K.badgeLabel,(0,a.jsxs)("span",{className:"flex items-center gap-1 text-muted-foreground tracking-normal normal-case",children:[(0,a.jsx)(f.default,{className:"h-3.5 w-3.5"}),K.timeLabel]})]}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"RGO26"===K.promoCode?"Use code ".concat(K.promoCode," to get 30% off for the first three months + 2X credits as welcome bonus"):K.description})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-2",children:[(0,a.jsx)("span",{className:"font-mono text-sm tracking-[0.35em] px-4 py-2 rounded-full bg-primary text-primary-foreground shadow-sm",children:K.promoCode}),(0,a.jsxs)("button",{type:"button",onClick:eO,className:"inline-flex items-center gap-1.5 rounded-full border border-primary/40 bg-background/90 dark:bg-background/50 px-3 py-1.5 text-xs font-medium text-primary shadow-sm transition hover:bg-background",children:[(0,a.jsx)(b.default,{className:"h-3.5 w-3.5"}),$?"Copied!":"Copy Code"]})]})]})}),e0=()=>{setTimeout(()=>{eb({})},1e3),M&&M()};if("guided"===F){let e=eu&&k.rh.isEnterprise(X),t=e?k.rh.enterpriseOrgName(X):null,r=eu&&em&&ep?(0,a.jsx)(S.p,{scheduledChange:ep,variant:"compact",onCancel:e0}
1):null,s=eu&&(null==eh?void 0:eh.subscription.can_purchase_credits)&&(null==eh?void 0:eh.stripe_enabled)!==!1;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{headingLevel:T,billingPeriod:eN,onBillingPeriodChange:eT,maxAnnualDiscount:ez,tiers:eG,pickIndex:eV,startAtPick:eq>=0,lines:eH,onSeen:()=>eU(!0),notices:!e&&(eX||r)?(0,a.jsxs)(a.Fragment,{children:[eX,r]}):null,replacement:e?(0,a.jsxs)("div",{className:"enterprise-note",children:[(0,a.jsx)("h3",{children:"Enterprise"}),t&&(0,a.jsx)("p",{children:t}),(0,a.jsx)("p",{children:O("enterprise_managed")}),(0,a.jsx)("a",{className:"ghost",href:"mailto:[email protected]",children:O("enterprise_contact_support")})]}):null,extra:s?(0,a.jsx)("div",{className:"credits-more",children:(0,a.jsxs)("button",{type:"button",className:"ghost",onClick:()=>ej(!0),children:[(0,a.jsx)(y.default,{className:"h-4 w-4"}),O("getAdditionalCredits")]})}):null,renderCard:(e,t,r)=>(0,a.jsx)(ex,{design:"guided",guided:{headingTag:"h1"===T?"h2":"h3",isPick:t===eV,badge:t===eZ?eW?"Your plan":"Our pick":null,talk:r.talk,rec:r.rec},tier:e,currentSubscription:eh,isLoading:ef,isFetchingPlan:ee,onPlanSelect:eL,onSubscriptionUpdate:e0,isAuthenticated:eu,isSignedIn:Y,onRetryAccount:()=>void ea(),highlighted:e.tierKey===e_,returnUrl:h,billingPeriod:eN,currentBillingPeriod:eg},e.tierKey)}),(0,a.jsx)(B.g,{open:ey,onOpenChange:ej,currentBalance:(null==eh?void 0:eh.credits.total)||0,canPurchase:(null==eh?void 0:eh.subscription.can_purchase_credits)||!1,onPurchaseComplete:e0})]})}return(0,a.jsxs)("section",{id:"pricing",className:(0,l.cn)("flex flex-col items-center justify-center w-full relative",E?"pb-0":"pb-12"),children:[(0,a.jsxs)("div",{className:"w-full mx-auto px-4 sm:px-6 flex flex-col",children:[eu&&k.rh.isEnterprise(X)?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-8 sm:py-12 text-center",children:[(0,a.jsx)(P.y,{planName:"Enterprise",size:"lg"}),k.rh.enterpriseOrgName(X)&&(0,a.jsx)("p",{className:"mt-4 text-lg font-medium",children:k.rh.enterpriseOrgName(X)}),(0,a.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:O("enterprise_managed")}),(0,a.jsx)(j.$,{variant:"outline",size:"sm",className:"mt-6",asChild:!0,children:(0,a.jsx)("a",{href:"mailto:[email protected]",children:O("enterprise_contact_support")})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full max-w-6xl mx-auto mb-3 sm:mb-6",children:[(0,a.jsx)("div",{className:"text-center mb-3 sm:mb-5",children:R?(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h2",{className:"text-lg sm:text-2xl lg:text-3xl font-medium tracking-tight text-foreground",children:I||O("pickPlan")}),U&&(0,a.jsx)("p",{className:"text-sm sm:text-base text-muted-foreground mt-1",children:U})]}):g?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"text-lg sm:text-2xl lg:text-3xl font-medium tracking-tight",children:z||O("pickPlan")}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground mt-1.5 max-w-xl mx-auto",children:"One AI agent that builds your website, finds leads, emails them, and creates and runs your social media. Every plan does all of it â bigger plans do more each day."})]}):null}),(0,a.jsx)("div",{className:"flex justify-center mb-3 sm:mb-5",children:(0,a.jsxs)("div",{className:"bg-muted/60 border border-border/50 rounded-lg p-0.5 inline-flex gap-0.5",role:"tablist","aria-label":"Billing period",children:[(0,a.jsx)("button",{onClick:()=>eT("monthly"),role:"tab","aria-selected":"monthly"===eN,className:(0,l.cn)("rounded-lg px-3.5 sm:px-5 py-1.5 sm:py-2 text-xs sm:text-sm transition-[background-color,color,box-shadow] duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring","monthly"===eN?"bg-foreground text-background font-medium hover:bg-foreground
1/95 shadow-[0_1px_3px_0_rgba(45,41,38,0.22),0_1px_2px_-1px_rgba(45,41,38,0.25)] ring-1 ring-foreground/10":"font-normal text-muted-foreground hover:text-foreground hover:bg-background/70"),children:"Monthly"}),(0,a.jsxs)("button",{onClick:()=>eT("yearly"),role:"tab","aria-selected":"yearly"===eN,className:(0,l.cn)("rounded-lg px-3.5 sm:px-5 py-1.5 sm:py-2 text-xs sm:text-sm transition-[background-color,color,box-shadow] duration-200 inline-flex items-center gap-1 sm:gap-2 outline-none focus-visible:ring-2 focus-visible:ring-ring","yearly"===eN?"bg-foreground text-background font-medium hover:bg-foreground/95 shadow-[0_1px_3px_0_rgba(45,41,38,0.22),0_1px_2px_-1px_rgba(45,41,38,0.25)] ring-1 ring-foreground/10":"font-normal text-muted-foreground hover:text-foreground hover:bg-background/70"),children:["Annual",ez>0&&(0,a.jsxs)(v.E,{className:(0,l.cn)("border-0 text-[10px] font-semibold px-1 sm:px-1.5 py-0","yearly"===eN?"bg-green-500/20 text-green-400 dark:text-green-700":"bg-green-500/15 text-green-600 dark:text-green-400"),children:["-",ez,"%"]})]})]})})]}),eX,eu&&em&&ep&&(0,a.jsx)("div",{className:"w-full max-w-6xl mx-auto mb-3 sm:mb-6",children:(0,a.jsx)(S.p,{scheduledChange:ep,variant:"compact",onCancel:e0})}),(0,a.jsxs)("div",{className:"lg:hidden w-full max-w-md mx-auto px-2 flex flex-col gap-4",children:[eA&&!w&&(0,a.jsx)(ex,{tier:eA,currentSubscription:eh,isLoading:ef,isFetchingPlan:ee,onPlanSelect:eL,onSubscriptionUpdate:e0,isAuthenticated:eu,isSignedIn:Y,onRetryAccount:()=>void ea(),highlighted:eA.tierKey===e_,returnUrl:h,insideDialog:A,billingPeriod:eN,currentBillingPeriod:eg},eA.name),eS.map(e=>(0,a.jsx)(ex,{tier:e,currentSubscription:eh,isLoading:ef,isFetchingPlan:ee,onPlanSelect:eL,onSubscriptionUpdate:e0,isAuthenticated:eu,isSignedIn:Y,onRetryAccount:()=>void ea(),highlighted:e.tierKey===e_,returnUrl:h,insideDialog:A,billingPeriod:eN,currentBillingPeriod:eg},e.name))]}),(0,a.jsxs)("div",{className:(0,l.cn)("hidden lg:grid gap-4 w-full mx-auto",null!=(p=ec[eS.length+(eA&&!w?1:0)])?p:"lg:grid-cols-4",eS.length+(eA&&!w?1:0)>=5?"max-w-7xl":"max-w-6xl"),children:[eA&&!w&&(0,a.jsx)(ex,{tier:eA,currentSubscription:eh,isLoading:ef,isFetchingPlan:ee,onPlanSelect:eL,onSubscriptionUpdate:e0,isAuthenticated:eu,isSignedIn:Y,onRetryAccount:()=>void ea(),highlighted:eA.tierKey===e_,returnUrl:h,insideDialog:A,billingPeriod:eN,currentBillingPeriod:eg},eA.name),eS.map(e=>(0,a.jsx)(ex,{tier:e,currentSubscription:eh,isLoading:ef,isFetchingPlan:ee,onPlanSelect:eL,onSubscriptionUpdate:e0,isAuthenticated:eu,isSignedIn:Y,onRetryAccount:()=>void ea(),highlighted:e.tierKey===e_,returnUrl:h,insideDialog:A,billingPeriod:eN,currentBillingPeriod:eg},e.name))]})]}),(0,a.jsx)("div",{className:"w-full max-w-6xl mx-auto mt-6 sm:mt-10 mb-8 sm:mb-12 flex justify-center",children:(0,a.jsx)(j.$,{variant:"link",asChild:!0,className:"text-muted-foreground hover:text-foreground h-auto p-0",children:(0,a.jsxs)(D(),{href:"/help/credits",target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)(x.default,{className:"h-3.5 w-3.5 mr-2"}),(0,a.jsx)("span",{className:"text-sm",children:O("creditsExplained")})]})})}),eu&&(null==eh?void 0:eh.subscription.can_purchase_credits)&&(null==eh?void 0:eh.stripe_enabled)!==!1&&(0,a.jsx)("div",{className:"w-full max-w-6xl mx-auto mt-6 pt-6 border-t border-border/30 flex flex-col items-center gap-4",children:(0,a.jsxs)(j.$,{onClick:()=>ej(!0),variant:"outline",size:"lg",className:"gap-2",children:[(0,a.jsx)(y.default,{className:"h-5 w-5"}),O("getAdditionalCredits")]})})]}),(0,a.jsx)(B.g,{open:ey,onOpenChange:ej,currentBalance:(null==eh?void 0:eh.credits.total)||0,canPurchase:(null==eh?void 0:eh.subscription.can_purchase_credits)||!1,onPurchaseComplete:e0})]})}},50627:(e,t,r)=>{"use strict";r.d(t,{p:()=>x});var a=r(78542),s=r(44e3),n=r(72842),i=r(88682),l=r(61983),o=r(99222),c=r(92969),d=r(57570),u=r(1855),m=r(55536);function x(e){let{scheduledChange:t,onCancel:r,variant:x="default"}=e,p=(0,d.xG)(),h=new Date(t.effective_date),g=e=>{let t=m.C.cloudPricingItems.find(t=>t.tierKey===e);return(null==t?void 0:t.name)||e||"Basic"},f=g(t.current_tier.name),b=g(t.target_tier.name),y=e=>e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),j=Math.max(0,Math.ceil((h.getTime()-Date.now())/864e5)),v=()=>{p.mutate(void 0,{onSuccess:()=>{r&&r()}})};return"compact"===x?(0,a.jsxs)("div",{className:"flex items-center gap-3 p-3 rounded-xl border border-amber-500/20 bg-amber-500/5",children:[(0,a.jsx)(i.default,{className:"h-4 w-4 text-amber-500 shrink-0"}),(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,a.jsx)(u.y,{planName:f,size:"sm",variant:"default"}),(0,a.jsx)(l.default,{className:"h-3 w-3 text-muted-foreground"}),(0,a.jsx)("span",{className:"opacity-60",children:(0,a.jsx)(u.y,{planName:b,size:"sm",variant:"default"})}),(0,a.jsxs)("span",{className:"text-xs text-muted-foreground",children:["on ",y(h)]})]})}),(0,a.jsxs)(n.$,{variant:"ghost",size:"sm",onClick:v,disabled:p.isPending,className:"h-7 px-2 text-xs text-amber-600 dar
1k:text-amber-400 hover:bg-amber-500/10",children:[(0,a.jsx)(o.default,{className:"h-3 w-3 mr-1"}),p.isPending?"Cancelling...":"Undo"]})]}):(0,a.jsx)(s.Zp,{className:"shadow-none border border-amber-500/20 bg-amber-500/5",children:(0,a.jsx)(s.Wu,{className:"p-4",children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(i.default,{className:"h-5 w-5 text-amber-500"}),(0,a.jsx)("span",{className:"font-medium text-sm",children:"Scheduled Plan Change"})]}),(0,a.jsx)("div",{className:"flex items-center gap-1.5 px-2 py-0.5 rounded-full bg-amber-500/10 text-amber-600 dark:text-amber-400",children:(0,a.jsx)("span",{className:"text-xs font-medium",children:0===j?"Today":"".concat(j," day").concat(1===j?"":"s")})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(u.y,{planName:f,size:"md",variant:"default"}),(0,a.jsx)(l.default,{className:"h-4 w-4 text-muted-foreground"}),(0,a.jsx)("div",{className:"opacity-60",children:(0,a.jsx)(u.y,{planName:b,size:"md",variant:"default"})})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,a.jsx)(c.default,{className:"h-4 w-4 text-muted-foreground"}),(0,a.jsx)("span",{className:"text-muted-foreground",children:y(h)})]}),(0,a.jsxs)(n.$,{variant:"outline",size:"sm",onClick:v,disabled:p.isPending,className:"h-8 border-amber-500/30 text-amber-600 dark:text-amber-400 hover:bg-amber-500/10 hover:text-amber-700 dark:hover:text-amber-300",children:[(0,a.jsx)(o.default,{className:"h-3.5 w-3.5 mr-1.5"}),p.isPending?"Cancelling...":"Keep Current Plan"]})]})]})})})}},56173:(e,t,r)=>{"use strict";r.d(t,{o:()=>l});var a=r(35151),s=r(18558),n=r(19493);let i="locale-change";function l(){let[e,t]=(0,s.useState)(a.q),[r,l]=(0,s.useState)(!1),[o,c]=(0,s.useState)(!0);(0,s.useEffect)(()=>{let e=!0,r=function(){let e=document.cookie.split(";").find(e=>e.trim().startsWith("locale="));if(e){let t=e.split("=")[1].trim();if(a.IB.includes(t))return t}let t=localStorage.getItem("locale");return t&&a.IB.includes(t)?t:(0,n.wm)()}();return e&&(t(r),c(!1)),()=>{e=!1}},[]),(0,s.useEffect)(()=>{let r=r=>{let a=r.detail;a!==e&&(t(a),l(!1))};return window.addEventListener(i,r),()=>{window.removeEventListener(i,r)}},[e]);let d=(0,s.useCallback)(async r=>{if(r===e)return;l(!0);let a="locale=".concat(r,"; path=/; max-age=31536000; SameSite=Lax");document.cookie=a,localStorage.setItem("locale",r),t(r);let s=new CustomEvent(i,{detail:r});window.dispatchEvent(s),setTimeout(()=>{l(!1)},100)},[e]);return{locale:e,setLanguage:d,availableLanguages:a.IB,isChanging:r,isLoading:o}}},60333:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n,m:()=>s});var a=r(78542);function s(e){let{id:t,className:r="ico"}=e;return(0,a.jsx)("svg",{className:r,"aria-hidden":"true",children:(0,a.jsx)("use",{href:"#".concat(t)})})}function n(){return(0,a.jsx)("svg",{width:"0",height:"0",style:{position:"absolute"},"aria-hidden":"true",children:(0,a.jsxs)("defs",{children:[(0,a.jsx)("symbol",{id:"logo",viewBox:"0 0 184 292",children:(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"78",height:"73",rx:"9"}),(0,a.jsx)("rect",{x:"0",y:"95",width:"78",height:"73",rx:"9"}),(0,a.jsx)("rect",{x:"0",y:"186",width:"78",height:"73",rx:"9"}),(0,a.jsx)("rect",{x:"105",y:"31",width:"78",height:"73",rx:"9"}),(0,a.jsx)("rect",{x:"105",y:"126",width:"78",height:"73",rx:"9"}),(0,a.jsx)("rect",{x:"105",y:"219",width:"78",height:"73",rx:"9"})]})}),(0,a.jsx)("symbol",{id:"i-code",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M8 8l-4 4 4 4M16 8l4 4-4 4M13.5 5l-3 14"})}),(0,a.jsxs)("symbol",{id:"i-users",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"9",cy:"8",r:"3.5"}),(0,a.jsx)("path",{d:"M2.5 20a6.5 6.5 0 0 1 13 0M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14a6.5 6.5 0 0 1 3.5 6"})]}),(0,a.jsxs)("symbol",{id:"i-mail",viewBox:"0 0 24 24",children:[(0,a.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),(0,a.jsx)("path",{d:"M3 7l9 6 9-6"})]}),(0,a.jsx)("symbol",{id:"i-chat",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M4 5h16v11H9l-5 4z"})}),(0,a.jsxs)("symbol",{id:"i-search",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,a.jsx)("path",{d:"M20 20l-4.3-4.3"})]}),(0,a.jsx)("symbol",{id:"i-spark",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M11 3l1.8 5.2L18 10l-5.2 1.8L11 17l-1.8-5.2L4 10l5.2-1.8zM19 15l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7z"})}),(0,a.jsxs)("symbol",{id:"i-cal",viewBox:"0 0 24 24",children:[(0,a.jsx)("rect",{x:"3.5",y:"5",width:"17",height:"15",rx:"2"}),(0,a.jsx)("path",{d:"M3.5 10h17M8 3v4M16 3v4"})]}),(0,a.jsxs)("symbol",{id:"i-image",viewBox:"0 0 24 24",children:[(0,a.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),(0,a.jsx)("circle",{cx:"9",cy:"10",r:"2"}),(0,a.jsx)("path",{d:"M21 16l-5-5-9 9"})]}),(0,a.jsxs)("symbol",{id:"i-layout",viewBox:"0 0 24 24",children:[(0,a.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),(0,a.jsx)("path",{d:"M3 9h18M9 9v11"})]}),(0,a.jsx)("symbol",{id:"i-check",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M5 12.5l4.2 4.2L19 7"})}),(0,a.jsx)("symbol",{id:"i-x",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M7 7l10 10M17 7L7 17"})}),(0,a.jsxs)("symbol",{id:"i-gift",viewBox:"0 0 24 24",children:[(0,a.jsx)("rect",{x:"3.5",y:"8.5",width:"17",height:"4",rx:"1"}),(0,a.jsx)("path",{d:"M5 12.5V20h14v-7.5M12 8.5V20M12 8.5c-1.5-3.5-5.5-4-5.5-1.5 0 1.5 2.5 1.5 5.5 1.5zM12 8.5c1.5-3.5 5.5-4 5.5-1.5 0 1.5-2.5 1.5-5.5 1.5z"})]}),(0,a.jsxs)("symbol",{id:"i-globe",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,a.jsx)("path",{d:"M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z"})]}),(0,a.jsx)("symbol",{id:"i-arrow",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6"})}),(0,a.jsx)("symbol",{id:"i-ne",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M7 17L17 7M8 7h9v9"})}),(0,a.jsxs)("symbol",{id:"i-discord",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{d:"M8 5.5A15 15 0 0 0 4.5 6.7C2.7 9.6 2.2 12.4 2.4 15.2a14 14 0 0 0 4.3 2.2l1-1.6M16 5.5c1.3.2 2.5.6 3.5 1.2 1.8 2.9 2.3 5.7 2.1 8.5a14 14 0 0 1-4.3 2.2l-1-1.6M7 15.5c3.2 1.5 6.8 1.5 10 0M7.6 6.8c2.9-.9 5.9-.9 8.8 0"}),(0,a.jsx)("circle",{cx:"9",cy:"12",r:"1.2"}),(0,a.jsx)("circle",{cx:"15",cy:"12",r:"1.2"})]}),(0,a.jsxs)("symbol",{id:"px-bulb",viewBox:"0 0 12 12",shapeRendering:"crispEdges",children:[(0,a.jsxs)("g",{fill:"#f2b233",children:[(0,a.jsx)("rect",{x:"4",y:"1",width:"4",height:"1"}),(0,a.jsx)("rect",{x:"3",y:"2",width:"6",height:"1"}
1),(0,a.jsx)("rect",{x:"2",y:"3",width:"8",height:"3"}),(0,a.jsx)("rect",{x:"3",y:"6",width:"6",height:"1"}),(0,a.jsx)("rect",{x:"4",y:"7",width:"4",height:"1"})]}),(0,a.jsx)("rect",{x:"4",y:"3",width:"1",height:"2",fill:"#fff6d6"}),(0,a.jsxs)("g",{fill:"#6b6b68",children:[(0,a.jsx)("rect",{x:"4",y:"8",width:"4",height:"1"}),(0,a.jsx)("rect",{x:"4",y:"10",width:"4",height:"1"})]}),(0,a.jsx)("rect",{x:"5",y:"9",width:"2",height:"1",fill:"#9a9a96"})]})]})})}},60649:(e,t,r)=>{"use strict";r.d(t,{C:()=>o,z:()=>l});var a=r(78542);r(18558);var s=r(8341),n=r(60687),i=r(72409);function l(e){let{className:t,...r}=e;return(0,a.jsx)(s.bL,{"data-slot":"radio-group",className:(0,i.cn)("grid gap-2.5",t),...r})}function o(e){let{className:t,...r}=e;return(0,a.jsx)(s.q7,{"data-slot":"radio-group-item",className:(0,i.cn)("border-input text-primary focus-visible:ring-ring 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 shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[1.5px] disabled:cursor-not-allowed disabled:opacity-50",t),...r,children:(0,a.jsx)(s.C1,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:(0,a.jsx)(n.default,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}},64836:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var a=r(18558),s=r(19493),n=r(76841);function i(){return(0,a.useMemo)(()=>{let e=(0,s._9)();return{currency:e,symbol:(0,n.Qn)(e),isEU:"EUR"===e}},[])}},65920:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>l,TN:()=>o});var a=r(78542);r(18558);var s=r(92784),n=r(72409);let i=(0,s.F)("relative w-full rounded-2xl border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"text-amber-600 border-amber-600/50 bg-amber-200/10 dark:bg-amber-900/10 dark:border-amber-600/50 dark:text-amber-400 [&>svg]:text-current *:data-[slot=alert-description]:text-amber-500/90"}},defaultVariants:{variant:"default"}});function l(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,n.cn)(i({variant:r}),t),...s})}function o(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"alert-description",className:(0,n.cn)("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...r})}},68007:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimatedBg:()=>u,StaticGradientBg:()=>m});var a=r(78542),s=r(86995),n=r(27520),i=r(46204),l=r(18558);let o=e=>{let{size:t,tone:r,opacity:s,style:n,className:i,blurAmount:o}=e,c=(0,l.useId)(),{c1:d,c2:u,c3:m}={light:{c1:"#D9D9D9",c2:"#DEDEDE",c3:"#3B3B3B"},medium:{c1:"#C9C9C9",c2:"#D4D4D4",c3:"#2F2F2F"},dark:{c1:"#B9B9B9",c2:"#C8C8C8",c3:"#232323"}}[r],x="M541.499 151.597C249.646 151.597 13.0527 388.191 13.0527 680.043H-138.506C-138.506 304.487 165.943 0.0385742 541.499 0.0385742V151.597Z";return(0,a.jsxs)("svg",{width:t,height:.959409594095941*t,viewBox:"-50 -50 642 620",fill:"none",className:i,style:{overflow:"visible",willChange:"transform",transform:"translate3d(0, 0, 0)",...n},children:[(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:"L0_".concat(r,"_").concat(c),x1:"201.497",y1:"0.0386",x2:"201.497",y2:"680.043",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:d}),(0,a.jsx)("stop",{offset:"1",stopOpacity:"0"})]}),(0,a.jsxs)("linearGradient",{id:"L1_".concat(r,"_").concat(c),x1:"541.499",y1:"401.469",x2:"-138.506",y2:"401.469",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:u}),(0,a.jsx)("stop",{offset:"1",stopColor:m})]}),(0,a.jsx)("filter",{id:"Ledge_".concat(c),x:"-50%",y:"-50%",width:"200%",height:"200%",children:(0,a.jsx)("feGaussianBlur",{stdDeviation:"3"})}),(0,a.jsx)("mask",{id:"Lmask_".concat(c),maskUnits:"userSpaceOnUse",children:(0,a.jsx)("g",{filter:"url
1(#Ledge_".concat(c,")"),children:(0,a.jsx)("path",{d:x,fill:"#fff"})})}),(0,a.jsx)("pattern",{id:"Lgrain_".concat(c),patternUnits:"userSpaceOnUse",width:"100",height:"100",children:(0,a.jsx)("image",{href:"/grain-texture.png",x:"0",y:"0",width:"100",height:"100",preserveAspectRatio:"none"})})]}),(0,a.jsxs)("g",{opacity:s,children:[(0,a.jsxs)("g",{style:{filter:o&&o>0?"blur(".concat(o,"px)"):void 0},children:[(0,a.jsx)("path",{d:x,fill:"url(#L0_".concat(r,"_").concat(c,")")}),(0,a.jsx)("path",{d:x,fill:"url(#L1_".concat(r,"_").concat(c,")")})]}),(0,a.jsx)("g",{mask:"url(#Lmask_".concat(c,")"),style:{mixBlendMode:"overlay"},opacity:.6,pointerEvents:"none",children:(0,a.jsx)("rect",{x:"0",y:"0",width:"120%",height:"120%",fill:"url(#Lgrain_".concat(c,")")})})]})]})},c=e=>{let{size:t,tone:r,opacity:s,style:n,className:i,blurAmount:o}=e,c=(0,l.useId)(),d="M3.50098 155.457C378.985 155.457 683.375 459.847 683.375 835.331H834.934C834.934 376.144 462.688 3.89844 3.50098 3.89844V155.457Z";return(0,a.jsxs)("svg",{width:t,height:1.2349624060150375*t,viewBox:"-50 -50 632 757",fill:"none",className:i,style:{overflow:"visible",willChange:"transform",transform:"translate3d(0, 0, 0)",...n},children:[(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:"R0_".concat(r,"_").concat(c),x1:"419.217",y1:"3.89844",x2:"419.217",y2:"835.331",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:{light:"#D9D9D9",medium:"#C9C9C9",dark:"#B9B9B9"}[r]}),(0,a.jsx)("stop",{offset:"1",stopOpacity:"0"})]}),(0,a.jsx)("filter",{id:"Redge_".concat(c),x:"-50%",y:"-50%",width:"200%",height:"200%",children:(0,a.jsx)("feGaussianBlur",{stdDeviation:"3"})}),(0,a.jsx)("mask",{id:"Rmask_".concat(c),maskUnits:"userSpaceOnUse",children:(0,a.jsx)("g",{filter:"url(#Redge_".concat(c,")"),children:(0,a.jsx)("path",{d:d,fill:"#fff"})})}),(0,a.jsx)("pattern",{id:"Rgrain_".concat(c),patternUnits:"userSpaceOnUse",width:"100",height:"100",children:(0,a.jsx)("image",{href:"/grain-texture.png",x:"0",y:"0",width:"100",height:"100",preserveAspectRatio:"none"})})]}),(0,a.jsxs)("g",{opacity:s,children:[(0,a.jsx)("g",{style:{filter:o&&o>0?"blur(".concat(o,"px)"):void 0},children:(0,a.jsx)("path",{d:d,fill:"url(#R0_".concat(r,"_").concat(c,")")})}),(0,a.jsx)("g",{mask:"url(#Rmask_".concat(c,")"),style:{mixBlendMode:"overlay"},opacity:.6,pointerEvents:"none",children:(0,a.jsx)("rect",{x:"0",y:"0",width:"120%",height:"120%",fill:"url(#Rgrain_".concat(c,")")})})]})]})},d=e=>{let{left:t,cfg:r}=e,d={left:r.pos.left,right:r.pos.right,top:r.pos.top,willChange:"transform",transform:"translate3d(0, 0, 0)",backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden"},u=(0,l.useMemo)(()=>r.blur.map(e=>parseFloat(e)),[r.blur]),m=(0,s.d)(0),x=(0,n.G)(m,[0,.33,.66,1],[u[0],u[1],u[2],u[0]]),[p,h]=(0,l.useState)(u[0]);return(0,l.useEffect)(()=>{let e=0;return x.on("change",t=>{let r=Date.now();r-e>33&&(h(t),e=r)})},[x]),(0,a.jsx)(i.P.div,{className:"absolute",style:d,initial:{x:0,y:0,scale:r.scale[0]},animate:{x:r.x,y:r.y,scale:r.scale},transition:{duration:4.6,delay:r.delay,ease:[.85,0,.06,1.01],repeat:1/0,repeatType:"loop",times:[0,.33,.66,1]},onUpdate:e=>{let t=1e3*r.delay,a=(Date.now()-t)%4600;m.set(a/4600)},children:t?(0,a.jsx)(o,{size:r.size,tone:r.tone,opacity:r.opacity,blurAmount:p}):(0,a.jsx)(c,{size:r.size,tone:r.tone,opacity:r.opacity,blurAmount:p})})};function u(e){let{variant:t="hero",blurMultiplier:r=1,sizeMultiplier:s=1,customArcs:n}=e,[i,o]=(0,l.useState)(!1);if((0,l.useEffect)(()=>o(!0),[]),!i)return(0,a.jsxs)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none ".concat("header"===t?"z-0":"-z-10"),"aria-hidden":"true",children:[(0,a.jsx)("div",{className:"absolute inset-0 opacity-20",style:{background:"radial-gradient(ellipse at 20% 30%, rgba(200, 200, 200, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 40%, rgba(180, 180, 180, 0.12) 0%, transparent 45%)"}}),"hero"===t&&(0,a.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-32 bg-gradient-to-t from-background to-transparent pointer-events-none"})]});let c=e=>e.map(e=>{let t=parseFloat(e);return"".concat(t*r,"px")}),u=e=>Math.round(e*s),m=[{pos:{left:-150,top:-50},size:u(450),tone:"light",opacity:.2,delay:.02,x:[0,15,-8,0],y:[0,10,-5,0],scale:[.85,1.05,.95,.85],blur:c(["12px","18px","15px","12px"])},{pos:{left:-40,top:100},size:u(520),tone:"medium",opacity:.25,delay:.8,x:[0,18,-10,0],y:[0,12,-8,0],scale:[.88,1.12,.98,.88],blur:c(["8px","4px","6p
1x","8px"])}],x=[{pos:{right:-140,top:-50},size:u(550),tone:"dark",opacity:.28,delay:1.2,x:[0,-20,12,0],y:[0,14,-9,0],scale:[.9,1.15,1,.9],blur:c(["10px","4px","7px","10px"])},{pos:{right:300,top:140},size:u(280),tone:"light",opacity:.18,delay:.4,x:[0,-15,8,0],y:[0,10,-6,0],scale:[.92,1.08,.98,.92],blur:c(["20px","28px","24px","20px"])}],p=(e,t)=>t&&0!==t.length?t.map((t,r)=>{let a=e[r]||e[0];return{pos:t.pos||a.pos,size:t.size||a.size,tone:t.tone||a.tone,opacity:void 0!==t.opacity?t.opacity:a.opacity,delay:void 0!==t.delay?t.delay:a.delay,x:t.x||a.x,y:t.y||a.y,scale:t.scale||a.scale,blur:t.blur||a.blur}}):e,h="header"===t?m:[{pos:{left:-190,top:20},size:400,tone:"light",opacity:.1,delay:.02,x:[0,20,-10,0],y:[0,15,-8,0],scale:[.78,1.1,.9,.78],blur:["19px","500px","50px","500px"]},{pos:{left:-60,top:240},size:600,tone:"dark",opacity:.22,delay:1.1,x:[0,22,-14,0],y:[0,16,-12,0],scale:[.82,1.15,.95,.82],blur:["1px","0px","0","1px"]}],g="header"===t?x:[{pos:{right:-85,top:100},size:620,tone:"dark",opacity:.23,delay:1.5,x:[0,-25,15,0],y:[0,18,-12,0],scale:[.84,1.2,1,.84],blur:["1px","0px","0px","1px"]},{pos:{right:-0,top:570},size:220,tone:"light",opacity:.08,delay:.3,x:[0,-20,10,0],y:[0,15,-8,0],scale:[.8,1.1,.9,.8],blur:["500px","500px","500px","500px"]}],f=(null==n?void 0:n.left)?p(h,n.left):h,b=(null==n?void 0:n.right)?p(g,n.right):g;return(0,a.jsxs)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none ".concat("header"===t?"z-0":"-z-10"),style:{transform:"translateZ(0)",WebkitTransform:"translateZ(0)"},children:[(0,a.jsxs)("div",{className:"absolute inset-0",children:[f.map((e,t)=>(0,a.jsx)(d,{left:!0,cfg:e},"L".concat(t))),b.map((e,t)=>(0,a.jsx)(d,{cfg:e},"R".concat(t)))]}),"hero"===t&&(0,a.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-32 bg-gradient-to-t from-background to-transparent pointer-events-none"})]})}function m(e){let{variant:t="hero"}=e,r="hero"===t,s=r?"-z-10":"z-10";return(0,a.jsxs)("div",{className:"absolute inset-0 ".concat(s," overflow-hidden"),children:[(0,a.jsxs)("div",{className:"absolute inset-0 dark:hidden",children:[(0,a.jsx)("div",{className:"absolute inset-0",style:{background:r?"linear-gradient(\n 145deg,\n #faf9f7 0%,\n #f6f4fa 25%,\n #f0f3f9 50%,\n #eaeff7 75%,\n #e5eaf5 100%\n )":"linear-gradient(\n 135deg,\n #faf8f5 0%,\n #f5f3fa 35%,\n #eef2f9 65%,\n #e8edf5 100%\n )"}}),(0,a.jsx)("div",{className:"absolute rounded-full blur-3xl",style:{top:r?"-15%":"-20%",left:r?"-5%":"-10%",width:r?"50%":"70%",height:r?"60%":"80%",background:"radial-gradient(circle, rgba(147, 130, 200, 0.28) 0%, transparent 70%)"}}),(0,a.jsx)("div",{className:"absolute rounded-full blur-3xl",style:{top:r?"20%":"10%",right:r?"-10%":"-15%",width:r?"45%":"60%",height:r?"50%":"70%",background:"radial-gradient(circle, rgba(130, 160, 210, 0.22) 0%, transparent 65%)"}}),(0,a.jsx)("div",{className:"absolute rounded-full blur-3xl",style:{bottom:r?"-10%":"-15%",left:r?"30%":"20%",width:r?"40%":"50%",height:r?"40%":"50%",background:"radial-gradient(circle, rgba(235, 200, 180, 0.24) 0%, transparent 60%)"}}),(0,a.jsx)("div",{className:"absolute inset-x-0 top-0",style:{height:r?"40%":"50%",background:"linear-gradient(180deg, rgba(255,255,255,0.7) 0%, transparent 100%)"}})]}),(0,a.jsxs)("div",{className:"absolute inset-0 hidden dark:block",children:[(0,a.jsx)("div",{className:"absolute inset-0",style:{background:r?"linear-gradient(\n 145deg,\n #1c1728 0%,\n #1a1a30 25%,\n #181c2d 50%,\n #151822 75%,\n #12151c 100%\n )":"linear-gradient(\n 135deg,\n #1a1625 0%,\n #1e1a2e 30%,\n #191c2a 60%,\n #151820 100%\n )"}}),(0,a.jsx)("div",{className:"absolute rounded-full blur-3xl",style:{to
1p:r?"-20%":"-25%",left:r?"-10%":"-15%",width:r?"55%":"75%",height:r?"65%":"85%",background:"radial-gradient(circle, rgba(120, 80, 200, 0.38) 0%, transparent 65%)"}}),(0,a.jsx)("div",{className:"absolute rounded-full blur-3xl",style:{top:r?"15%":"5%",right:r?"-15%":"-20%",width:r?"50%":"65%",height:r?"55%":"75%",background:"radial-gradient(circle, rgba(80, 130, 200, 0.32) 0%, transparent 60%)"}}),(0,a.jsx)("div",{className:"absolute rounded-full blur-3xl",style:{bottom:r?"-15%":"-20%",left:r?"25%":"15%",width:r?"45%":"55%",height:r?"45%":"55%",background:"radial-gradient(circle, rgba(160, 80, 150, 0.28) 0%, transparent 55%)"}}),r&&(0,a.jsx)("div",{className:"absolute rounded-full blur-3xl",style:{top:"35%",left:"45%",width:"35%",height:"35%",background:"radial-gradient(circle, rgba(60, 180, 180, 0.18) 0%, transparent 50%)"}}),!r&&(0,a.jsx)("div",{className:"absolute rounded-full blur-3xl",style:{top:"30%",left:"40%",width:"40%",height:"40%",background:"radial-gradient(circle, rgba(60, 180, 180, 0.15) 0%, transparent 50%)"}}),(0,a.jsx)("div",{className:"absolute inset-x-0 top-0",style:{height:r?"30%":"33%",background:"linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%)"}})]}),(0,a.jsx)("div",{className:"absolute inset-0 opacity-[0.025] dark:opacity-[0.04] pointer-events-none",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\")",mixBlendMode:"overlay"}}),r&&(0,a.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-32 bg-gradient-to-t from-background to-transparent pointer-events-none"})]})}},68700:(e,t,r)=>{var a={"./de.json":[50117,50117],"./en.json":[29665,29665],"./es.json":[54830,54830],"./fr.json":[69722,69722],"./it.json":[71655,71655],"./ja.json":[5007,5007],"./pt.json":[66746,66746],"./zh.json":[78544,78544]};function s(e){if(!r.o(a,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=a[e],s=t[0];return r.e(t[1]).then(()=>r.t(s,19))}s.keys=()=>Object.keys(a),s.id=68700,e.exports=s},76841:(e,t,r)=>{"use strict";function a(e,t){let r=s(t);return"EUR"===t?"".concat(e).concat(r):"".concat(r).concat(e)}function s(e){return"EUR"===e?"â¬":"$"}function n(e,t){let r=parseFloat(e.replace(/[^\d.]/g,""));return isNaN(r)?e:a(r,t)}function i(e){return parseFloat(e.replace(/[^\d.]/g,"")||"0")}r.d(t,{$g:()=>a,Ck:()=>n,J6:()=>i,Qn:()=>s})},83040:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var a=r(18558);let s=[],n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full";if(e<=0)return"Expired";let r=Math.floor(e/1e3),a=Math.floor(r/86400),s=Math.floor(r%86400/3600),n=Math.floor(r%3600/60),i=r%60,l=e=>e.toString().padStart(2,"0");return"compact"===t?"".concat(a,"d : ").concat(l(s),"h : ").concat(l(n),"m : ").concat(l(i),"s"):a>0?"".concat(a,"d ").concat(l(s),"h ").concat(l(n),"m ").concat(l(i),"s"):s>0?"".concat(l(s),"h ").concat(l(n),"m ").concat(l(i),"s"):n>0?"".concat(l(n),"m ").concat(l(i),"s"):"".concat(l(i),"s")};function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3,[t,r]=(0,a.useState)(()=>Date.now());return(0,a.useEffect)(()=>{let t=window.setInterval(()=>{r(Date.now())},e);return()=>window.clearInterval(t)},[e]),(0,a.useMemo)(()=>{let e=s.find(e=>"welcome-bonus"===e.id);e&&(e.endDate=(()=>{let e=new Date;return Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+1,0,23,59,59,999)})());let r=s.filter(e=>t>=e.startDate&&t<e.endDate).sort((e,t)=>t.priority-e.priority)[0];if(!r)return null;let a=r.endDate-t,i=t>=r.startDate,l=i&&a>0;return{isActive:l,hasStarted:i,msRemaining:Math.max(a,0),timeLabel:l?n(a):"Expired",timeLabelCompact:l?n(a,"compact"):"Expired",promoCode:r.promoCode,badgeLabel:r.badgeLabel,description:r.description,expiresAt:r.endDate,promoId:r.id}},[t])}}}]);
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.