1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9017],{92387:function(e,t,r){Promise.resolve().then(r.bind(r,2324))},79205:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(2265);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:c="",children:u,iconNode:d,...m}=e;return(0,n.createElement)("svg",{ref:t,...l,width:i,height:i,stroke:r,strokeWidth:o?24*Number(a)/Number(i):a,className:s("lucide",c),...m},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(u)?u:[u]])}),o=(e,t)=>{let r=(0,n.forwardRef)((r,l)=>{let{className:o,...c}=r;return(0,n.createElement)(a,{ref:l,iconNode:t,className:s(`lucide-${i(e)}`,o),...c})});return r.displayName=`${e}`,r}},76858:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},71769:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},5005:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]])},30401:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},49322:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},21047:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},99397:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},82023:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},29525:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},27648:function(e,t,r){"use strict";r.d(t,{default:function(){return i.a}});var n=r(72972),i=r.n(n)},99376:function(e,t,r){"use strict";var n=r(35475);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},94327:function(e,t,r){"use strict";var n=r(57437);r(2265),t.Z=e=>{let{children:t,className:r}=e;return(0,n.jsx)("div",{className:r,children:t})}},44095:function(e,t,r){"use strict";var n=r(57437),i=r(2265),s=r(21047),l=r(99397),a=r(93448),o=r(94327);t.Z=e=>{let{question:t,answer:r,delay:c=0,className:u,defaultOpen:d=!1}=e,[m,p]=(0,i.useState)(d);return(0,n.jsx)(o.Z,{delay:c,className:(0,a.cn)("group",u),children:(0,n.jsxs)("div",{className:(0,a.cn)("rounded-2xl transition-all duration-300 border",m?"bg-white border-elyx-violet/30 shadow-lg shadow-elyx-violet/5":"bg-white border-elyx-grayBorder hover:border-elyx-violet/20 hover:shadow-md"),children:[(0,n.jsxs)("button",{className:"flex justify-between items-center w-full text-left p-5 lg:p-6",onClick:()=>p(!m),children:[(0,n.jsx)("h3",{className:(0,a.cn)("text-base lg:text-lg font-medium pr-4 transition-colors duration-300",m?"text-ely
1x-black":"text-elyx-grayBody"),children:t}),(0,n.jsx)("div",{className:(0,a.cn)("flex-shrink-0 flex items-center justify-center h-8 w-8 rounded-full transition-all duration-300",m?"bg-gradient-to-r from-elyx-violet to-elyx-magenta text-white rotate-0":"bg-elyx-offWhite text-elyx-grayLight group-hover:bg-elyx-grayBorder"),children:m?(0,n.jsx)(s.Z,{className:"h-4 w-4"}):(0,n.jsx)(l.Z,{className:"h-4 w-4"})})]}),(0,n.jsx)("div",{className:(0,a.cn)("overflow-hidden transition-all duration-300 ease-in-out",m?"max-h-[500px] opacity-100":"max-h-0 opacity-0"),children:(0,n.jsxs)("div",{className:"px-5 lg:px-6 pb-5 lg:pb-6 pt-0",children:[(0,n.jsx)("div",{className:"h-px bg-gradient-to-r from-elyx-violet/20 via-elyx-grayBorder to-transparent mb-4"}),(0,n.jsx)("p",{className:"text-elyx-grayBody leading-relaxed text-sm lg:text-base",children:r})]})})]})})}},2324:function(e,t,r){"use strict";r.d(t,{default:function(){return j}});var n=r(57437),i=r(2265),s=r(99376),l=r(76858),a=r(82023),o=r(30401),c=r(43949),u=r(14362),d=r(94327),m=r(44095),p=r(27648),x=r(71769),h=r(49322),f=r(5005),g=r(29525),y=()=>{let{t:e,i18n:t}=(0,c.$G)(["home"]),[r,s]=(0,i.useState)(!1);(0,i.useEffect)(()=>{s(!0)},[]);let l=r&&t.language?.split("-")[0]||"en",a=[{title:e("home:resources.formulas.title","Excel Formulas Guide"),description:e("home:resources.formulas.description","Master essential Excel formulas like VLOOKUP, IF, SUMIF and more"),url:`/${l}/excel-formulas`,icon:x.Z},{title:e("home:resources.errors.title","Fix Excel Errors"),description:e("home:resources.errors.description","Troubleshoot common Excel errors like #VALUE!, #REF! and #N/A"),url:`/${l}/excel-errors`,icon:h.Z},{title:e("home:resources.usecases.title","Real-World Use Cases"),description:e("home:resources.usecases.description","Discover how professionals use Excel in their daily work"),url:`/${l}/excel-use-cases`,icon:f.Z},{title:e("home:resources.tools.title","Free Excel Tools"),description:e("home:resources.tools.description","Use our free tools to generate formulas, clean data and more"),url:`/${l}/tools`,icon:g.Z}],o=[{name:"VLOOKUP",url:`/${l}/excel-formulas/lookup/vlookup`},{name:"IF",url:`/${l}/excel-formulas/logical/if`},{name:"SUMIF",url:`/${l}/excel-formulas/math/sumif`},{name:"INDEX-MATCH",url:`/${l}/excel-formulas/lookup/index`},{name:"COUNTIF",url:`/${l}/excel-formulas/math/countif`}];return(0,n.jsx)("section",{className:"py-20 bg-slate-50/40",children:(0,n.jsxs)("div",{className:"container-custom",children:[(0,n.jsx)(d.Z,{children:(0,n.jsxs)("div",{className:"text-center mb-12",children:[(0,n.jsx)("h2",{className:"text-3xl md:text-4xl lg:text-[2.75rem] font-bold mb-4 text-slate-900 tracking-tight",children:e("home:resources.section.title","Explore Our Resources")}),(0,n.jsx)("p",{className:"text-lg text-slate-500 max-w-2xl mx-auto",children:e("home:resources.section.description","Learn Excel with our comprehensive guides, troubleshooting tips, and practical examples")})]})}),(0,n.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 mb-12",children:a.map((e,t)=>{let r=e.icon;return(0,n.jsx)(d.Z,{delay:100*(t+1),children:(0,n.jsx)(p.default,{href:e.url,children:(0,n.jsxs)("div",{className:"h-full p-6 rounded-2xl bg-white border border-slate-200 hover:border-slate-300 hover:shadow-sm transition-all duration-300 group cursor-pointer",children:[(0,n.jsx)("div",{className:"w-10 h-10 rounded-lg bg-slate-100 flex items-center justify-center mb-4 group-hover:bg-slate-200/70 transition-colors duration-300",children:(0,n.jsx)(r,{className:"h-5 w-5 text-slate-600"})}),(0,n.jsx)("h3",{className:"text-lg font-semibold text-slate-900 mb-2 group-hover:text-elyx-violet transition-colors duration-300",children:e.title}),(0,n.jsx)("p",{className:"text-sm text-slate-500",children:e.description})]})})},t)})}),(0,n.jsx)(d.Z,{delay:500,children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("p",{className:"text-sm text-slate-500 mb-4",children:e("home:resources.popularFormulas","Most searched formulas:")}),(0,n.jsx)("div",{className:"flex flex-wrap justify-center gap-3",children:o.map((e,t)=>(0,n.jsx)(p.default,{href:e.url,children:(0,n.jsx)("span",{className:"px-4 py-2 rounded-lg bg-white border border-slate-200 text-slate-600 hover:border-slate-300 hover:text-elyx-violet transition-all duration-300 text-sm cursor-pointer",children:e.name})},t))})]})})]})})},b=r(57041),w=r(71438),v=r(20922),j=()=>{let{t:e}=(0,c.$G)(["pricing","common"]),t=(0,s.useRouter)(),{user:r}=(0,u.a)(),[p,x]=(0,i.useState)(!0),[h,f]=(0,i.useState)(null),[g,j]=(0,i.useState)("small"),N=p?"annual"
1:"monthly",k=v.p7[g],Z=p?Number(((k.annualPrice+v.WZ*v.aV)/12).toFixed(2)):k.monthlyPrice+v.Ee*v.aV,_=p?Number((v.WZ/12).toFixed(2)):v.Ee,q=(0,i.useMemo)(()=>{let e=new URLSearchParams({billing:N,tier:g,seats:String(v.aV)});return`/organization/setup?${e.toString()}`},[N,g]),S=(0,i.useMemo)(()=>[{key:"starter",title:e("pricing:plans.starter.title"),description:e("pricing:plans.starter.description"),features:v.Mw},{key:"pro",title:e("pricing:plans.pro.title"),description:e("pricing:plans.pro.description"),features:v.ED},{key:"team",title:e("pricing:plans.team.title"),description:e("pricing:plans.team.description"),features:v.LH}],[e]),P=async n=>{if(!r){t.push((0,b.Oh)({plan:n,billing:N,source:"pricing"}));return}try{f(n),await (0,w.Mc)({userId:r.id,plan:n,billing:N})}catch(t){console.error("Pricing checkout error:",t),f(null),alert(t?.message||e("common:errors.checkoutError"))}},E=()=>{if(!r){t.push((0,b.Oh)(null,"signup",q));return}t.push(q)},C=t=>{if("team"===t)return(0,n.jsxs)("div",{className:"mb-6",children:[(0,n.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,n.jsxs)("span",{className:"text-4xl font-bold text-elyx-black",children:[Z,"â¬"]}),(0,n.jsx)("span",{className:"text-elyx-grayLight",children:e("pricing:billing.perMonth")})]}),p&&(0,n.jsx)("p",{className:"mt-2 text-sm text-elyx-grayBody",children:e("pricing:billing.billedAnnually")}),(0,n.jsx)("p",{className:"mt-2 text-sm text-elyx-grayBody",children:e("pricing:teamCalculator.additionalSeatPrice",{price:`${_}â¬`,period:e("pricing:billing.perSeatMonth"),seats:v.aV})}),(0,n.jsx)("p",{className:"mt-2 text-sm text-elyx-success",children:e("pricing:teamCalculator.minimumSeats",{seats:v.aV})})]});let r="starter"===t?v.gH:v.Fs,i="starter"===t?v.xr:v.fJ;return(0,n.jsxs)("div",{className:"mb-6",children:[(0,n.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,n.jsxs)("span",{className:"text-4xl font-bold text-elyx-black",children:[p?i:r,"â¬"]}),(0,n.jsx)("span",{className:"text-elyx-grayLight",children:e("pricing:billing.perMonth")})]}),p&&(0,n.jsx)("p",{className:"mt-2 text-sm text-elyx-grayBody",children:e("pricing:billing.billedAnnually")})]})},M=t=>"team"===t?(0,n.jsxs)("button",{type:"button",onClick:E,className:"flex w-full items-center justify-center gap-2 rounded-xl border-2 border-elyx-violet px-6 py-3.5 font-semibold text-elyx-violet transition-colors hover:bg-elyx-violet/5",children:[e("pricing:plans.team.ctaSecondary"),(0,n.jsx)(l.Z,{className:"h-4 w-4"})]}):(0,n.jsxs)("button",{type:"button",onClick:()=>P(t),disabled:h===t,className:"pro"===t?"flex w-full items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-elyx-violet to-elyx-magenta px-6 py-3.5 font-semibold text-white disabled:opacity-50":"flex w-full items-center justify-center gap-2 rounded-xl bg-elyx-black px-6 py-3.5 font-semibold text-white disabled:opacity-50",children:[h===t?e("common:loading","Loading..."):e(`pricing:plans.${t}.cta`),h!==t&&(0,n.jsx)(l.Z,{className:"h-4 w-4"})]});return(0,n.jsxs)("div",{className:"min-h-screen overflow-hidden bg-white",children:[(0,n.jsxs)("section",{className:"container-custom pb-16 pt-10 md:pb-20 md:pt-12",children:[(0,n.jsxs)(d.Z,{className:"mx-auto max-w-4xl text-center",isAboveFold:!0,children:[(0,n.jsxs)("span",{className:"mb-4 inline-flex items-center gap-2 rounded-full border border-elyx-violet/20 bg-elyx-violet/10 px-4 py-2 text-sm font-medium text-elyx-violet",children:[(0,n.jsx)(a.Z,{className:"h-4 w-4"}),e("pricing:hero.tag")]}),(0,n.jsx)("h1",{className:"mb-4 text-4xl font-bold leading-tight text-elyx-black sm:text-5xl md:text-6xl",children:e("pricing:hero.title")}),(0,n.jsx)("p",{className:"mx-auto mb-6 max-w-2xl text-lg text-elyx-grayBody md:text-xl",children:e("pricing:hero.subtitle")}),(0,n.jsxs)("button",{type:"button",onClick:()=>{t.push("/auth?mode=signup&utm_source=pricing_trial&utm_medium=website")},className:"mb-8 inline-flex items-center gap-2 rounded-xl bg-gradient-to-r from-elyx-violet to-elyx-magenta px-7 py-4 font-semibold text-white shadow-lg",children:[e("pricing:plans.trial.cta"),(0,n.jsx)(l.Z,{className:"h-4 w-4"})]}
1),(0,n.jsx)("p",{className:"-mt-5 mb-8 text-sm text-elyx-grayBody",children:e("pricing:plans.trial.description")}),(0,n.jsxs)("div",{className:"mb-8 inline-flex rounded-lg border border-elyx-grayBorder bg-elyx-offWhite p-1",children:[(0,n.jsx)("button",{type:"button",onClick:()=>x(!1),className:p?"rounded-md px-6 py-3 text-elyx-grayBody":"rounded-md bg-gradient-to-r from-elyx-violet to-elyx-magenta px-6 py-3 text-white",children:e("pricing:billing.monthly")}),(0,n.jsx)("button",{type:"button",onClick:()=>x(!0),className:p?"rounded-md bg-gradient-to-r from-elyx-violet to-elyx-magenta px-6 py-3 text-white":"rounded-md px-6 py-3 text-elyx-grayBody",children:(0,n.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,n.jsx)("span",{children:e("pricing:billing.annual")}),(0,n.jsxs)("span",{className:p?"rounded-full bg-white/20 px-2 py-0.5 text-xs font-semibold text-white":"rounded-full bg-emerald-100 px-2 py-0.5 text-xs font-semibold text-emerald-700",children:["-",Math.round(100*v.vA),"%"]})]})})]})]}),(0,n.jsx)("div",{className:"mx-auto grid max-w-6xl gap-6 lg:grid-cols-3",children:S.map(t=>{let r="pro"===t.key;return(0,n.jsx)(d.Z,{className:r?"relative h-full lg:-mt-4 lg:mb-4":"h-full",children:(0,n.jsx)("div",{className:r?"h-full rounded-2xl border-2 border-elyx-violet bg-white shadow-xl":"h-full rounded-2xl border border-elyx-grayBorder bg-white shadow-lg",children:(0,n.jsxs)("div",{className:"flex h-full flex-col rounded-2xl bg-white p-6",children:[r&&(0,n.jsx)("span",{className:"mb-3 w-fit rounded-full bg-elyx-violet/10 px-3 py-1 text-xs font-semibold text-elyx-violet",children:e("pricing:plans.pro.badge")}),(0,n.jsxs)("div",{className:"mb-4 min-h-[88px]",children:[(0,n.jsx)("h3",{className:"mb-2 text-2xl font-bold text-elyx-black",children:t.title}),(0,n.jsx)("p",{className:"text-sm text-elyx-grayBody",children:t.description})]}),C(t.key),(0,n.jsx)("div",{className:"mb-6",children:M(t.key)}),"team"===t.key&&(0,n.jsxs)("div",{className:"mb-6 rounded-2xl border border-elyx-violet/15 bg-elyx-violet/5 p-4",children:[(0,n.jsx)("label",{htmlFor:"team-credits-pricing",className:"mb-2 block text-xs font-semibold uppercase tracking-[0.18em] text-elyx-violet",children:e("pricing:teamCalculator.poolLabel")}),(0,n.jsx)("select",{id:"team-credits-pricing",value:g,onChange:e=>j(e.target.value),className:"w-full rounded-xl border border-elyx-violet/15 bg-white px-4 py-3 text-sm font-semibold text-elyx-black outline-none",children:Object.keys(v.p7).map(t=>(0,n.jsx)("option",{value:t,children:e("pricing:teamCalculator.creditsPerMonth",{credits:v.p7[t].monthlyCredits.toLocaleString("en-US")})},t))})]}),(0,n.jsx)("ul",{className:"mb-6 flex-grow space-y-3",children:t.features.map((t,r)=>(0,n.jsxs)("li",{className:"flex items-start gap-3",children:[(0,n.jsx)("div",{className:"mt-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full bg-elyx-violet/10",children:(0,n.jsx)(o.Z,{className:"h-3 w-3 text-elyx-violet"})}),(0,n.jsx)("span",{className:t.isStrong?"text-sm font-medium text-elyx-black":"text-sm text-elyx-grayBody",children:e(t.textKey)})]},r))})]})})},t.key)})})]}),(0,n.jsx)("section",{className:"bg-elyx-offWhite py-16",children:(0,n.jsxs)("div",{className:"container-custom max-w-4xl",children:[(0,n.jsx)(d.Z,{className:"mb-8 text-center",children:(0,n.jsx)("h2",{className:"text-3xl font-bold text-elyx-black",children:"FAQ"})}),(0,n.jsx)("div",{className:"space-y-4",children:v.Eo.map((t,r)=>(0,n.jsx)(m.Z,{question:e(t.question),answer:e(t.answer)},r))})]})}),(0,n.jsx)(y,{})]})}},20922:function(e,t,r){"use strict";r.d(t,{AW:function(){return n},C2:function(){return j},ED:function(){return y},Ee:function(){return d},Eo:function(){return v},Fs:function(){return a},LH:function(){return b},Mw:function(){return g},RG:function(){return x},WZ:function(){return m},aV:function(){return u},eZ:function(){return c},fJ:function(){return o},gH:function(){return i},gT:function(){return l},p7:function(){return p},pG:function(){return h},rM:function(){return N},u9:function(){return w},vA:function(){return f},xr:function(){return s}});let n=50,i=29,s=Number((290/12).toFixed(2)),l=500,a=59,o=Number((590/12).toFixed(2)),c=1500,u=3,d=10,m=100,p={small:{tier:"small",monthlyPrice:89,annualPrice:890,monthlyCredits:3e3},medium:{tier:"medium",monthlyPrice:178,annualPrice:1780,monthlyCredits:6e3},large:{tier:"large",monthlyPrice:356,annualPrice:3560,monthlyCredits:12e3},xlarge:{tier:"xlarge",monthlyPrice:712,annualPrice:7120,monthlyCredits:24e3}};p.small.monthlyPrice,((p.small.annualPrice+m*u)/12).toFixed(2),(2e3/12).toFixed(2);let x=6e3,h=999999999,f=1-590/(12*a);p.small.monthlyCredits;let g=[{included:!0,textKey:"pricing:plans.starter.features.0",isStrong:!0},{included:!0,textKey:"pricing:plans.starter.features.1"},{included:!0,textKey:"pricing:plans.starter.features.2"},{included:!0,textKey:"pricing:plans.starter.features.3"},{included:!0,textKey:"pricing:plans.starter.features.4"}],y=[{included:!0,textKey:"pricing:plans.pro.features.0",isStrong:!0},{included:!0,textKey:"pricing:plans.pro.features.1"},{included:!0,textKey:"pricing:plans.pro.features.2"},{included:!0,textKey:"pricing:plans.pro.features.4"},{included:!0,textKey:"pricing:plans.pro.features.5"},{included:!0,textKey:"pricing:plans.pro.features.6"}],b=[{included:!0,textKey:"pricing:plans.team.features.0",isStrong:!0},{included:!0,textKey:"pricing:plans.team.features.1"},{included:!0,textKey:"pricing:plans.team.features.2"},{included:!0,textKey:"pricing:plans.team.features.3"},{included:!0,textKey:"pricing:plans.team.features.4"},{included:!0,textKey:"pricing:plans.team.features.6"}],w=[{included:!0,textKey:"pricing:plans.enterprise.features.0",isStrong:!0},{included:!0,textKey:"pricing:plans.enterprise.features.1"},{included:!0,textKey:"pricing:plans.enterprise.features.2"},{included:!0,textKey:"pricing:plans.enterprise.features.3"},{included:!0,textKey:"pricing:plans.enterprise.features.4"}],v=[{question:"pricing:faq.items.0.question",answer:"pricing:faq.items.0.answer"},{question:"pricing:faq.items.1.question",answer:"pricing:faq.items.1.answer"},{question:"pricing:faq.items.2.question",answer:"pricing:faq.items.2.answer"},{question:"pricing:faq.items.3.question",answer:"pricing:faq.items.3.answer"},{question:"pricing:faq.items.4.question",answer:"pricing:faq.items.4.answer"},{question:"pricing:faq.items.5.question",answer:"pricing:faq.items.5.answer"},{question:"pricing:faq.items.6.question",answer:"pricing:faq.items.6.answer"},{question:"pricing:faq.items.7.question",answer:"pricing:faq.items.7.answer"},{question:"pricing:faq.items.8.question",answer:"pricing:faq.items.8.answer"}],j=[{credits:500,price:29,stripePriceId:"price_1TFaQyHZVZVsLVdTcqqex3Kt"},{credits:2500,price:99,stripePriceId:"price_1TFaQyHZVZVsLVdTWoHoVYFj"},{credits:1e4,price:299,stripePriceId:"price_1TFaQzHZVZVsLVdTMKNfI9K7"}];function N(e,t,r){let n=p[e];return("annual"===t?n.annualPrice:n.monthlyPrice)+("annual"===t?m:d)*Math.max(u,Math.min(250,r||u))}}
1,57041:function(e,t,r){"use strict";r.d(t,{$7:function(){return y},$S:function(){return d},Oh:function(){return m},On:function(){return g},VT:function(){return f},hj:function(){return p},kL:function(){return u},nA:function(){return b},rH:function(){return x},tx:function(){return h}});var n=r(71438);let i="pendingCheckoutIntent",s="pendingPostAuthRedirect",l=new Set(["starter","pro"]),a=new Set(["monthly","annual"]);function o(e){return!!(e&&l.has(e))}function c(e){return!!(e&&a.has(e))}function u(e){let t=e.get("plan"),r=e.get("billing"),n=e.get("source");return o(t)&&c(r)?{plan:t,billing:r,source:"dashboard"===n?"dashboard":"pricing"}:null}function d(e){let t=e.get("redirect_to");return t&&t.startsWith("/")?t:null}function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"signup",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=new URLSearchParams({mode:t});return e&&(n.set("plan",e.plan),n.set("billing",e.billing),n.set("source",e.source??"pricing")),r&&n.set("redirect_to",r),`/auth?${n.toString()}`}function p(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=new URL("/auth/callback",e);return t&&(n.searchParams.set("plan",t.plan),n.searchParams.set("billing",t.billing),n.searchParams.set("source",t.source??"pricing")),r&&n.searchParams.set("redirect_to",r),n.toString()}function x(e){sessionStorage.setItem(i,JSON.stringify(e))}function h(){let e=sessionStorage.getItem(i);if(!e)return null;try{let t=JSON.parse(e),r=t?.plan??null,n=t?.billing??null;if(!t||!o(r)||!c(n))return sessionStorage.removeItem(i),null;return{plan:r,billing:n,source:"dashboard"===t.source?"dashboard":"pricing"}}catch{return sessionStorage.removeItem(i),null}}function f(e){e.startsWith("/")&&sessionStorage.setItem(s,e)}function g(){let e=sessionStorage.getItem(s);return e&&e.startsWith("/")?e:null}function y(){sessionStorage.removeItem(s)}async function b(e,t){return!!t&&(await (0,n.Mc)({userId:e,plan:t.plan,billing:t.billing}),sessionStorage.removeItem(i),!0)}},80038:function(e,t,r){"use strict";r.d(t,{$A:function(){return i},eN:function(){return l},zb:function(){return s}});var n=r(46214);function i(e,t){n.default.__loaded&&n.default.identify(e,t)}function s(){n.default.__loaded&&n.default.reset()}function l(e,t){n.default.__loaded&&n.default.capture(e,t)}},71438:function(e,t,r){"use strict";r.d(t,{Eu:function(){return m},Mc:function(){return o},yz:function(){return c},Dc:function(){return u},jM:function(){return p},k5:function(){return d}});var n=r(1072);let i={starter:{monthly:"price_1U0bCoHZVZVsLVdTg2DBcxbL",annual:"price_1U0bCpHZVZVsLVdTwuXJWxsS"},pro:{monthly:"price_1U0bCqHZVZVsLVdTWWKkOtZe",annual:"price_1U0bCqHZVZVsLVdTAIowBqBM"}},s=(e,t)=>i[e][t];async function l(){let{data:{session:e}}=await n.O.auth.getSession();if(!e?.access_token)throw Error("User not authenticated");return e.access_token}async function a(e,t){let r=await l(),n=await fetch(`https://vrzpohzomhwwodpifure.supabase.co/functions/v1/${e}`,{method:"POST",headers:{Authorization:`Bearer ${r}`,"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw Error((await n.json().catch(()=>({error:"Unknown error"}))).error||`Failed to call ${e}`);return n.json()}async function o(e){let{userId:t,plan:r,billing:n,successUrl:i=`${window.location.origin}/dashboard?checkout=success`,cancelUrl:a=`${window.location.origin}/pricing?checkout=canceled`}=e,o=s(r,n);if(o.includes("PLACEHOLDER"))throw Error(`The ${r} (${n}) plan is not configured. 2Add the V4 Stripe price IDs in your environment. 3Current Price ID: ${o}`);let c=await l(),u=await fetch("https://vrzpohzomhwwodpifure.supabase.co/functions/v1/checkout",{method:"POST",headers:{Authorization:`Bearer ${c}`,"Content-Type":"application/json"},body:JSON.stringify({user_id:t,recurring_price_id:o,trial_price_id:null,success_url:i,cancel_url:a,plan_type:r})});if(!u.ok)throw Error((await u.json().catch(()=>({error:"Unknown error"}))).error||"Failed to create checkout session");let d=await u.json();if(!d.url)throw Error("No checkout URL returned from server");window.location.href=d.url}async function c(e){let{organizationName:t,seatCount:r,billingInterval:n,creditPoolTier:i,successUrl:s=`${window.location.origin}/organization/dashboard?checkout=success`,cancelUrl:l=`${window.location.origin}/organization/setup?checkout=canceled`}=e,o=await a("organization-checkout",{checkout_type:"organization",organization_name:t,seat_count:r,billing_interval:n,credit_pool_tier:i,success_url:s,cancel_url:l});if(!o.url)throw Error("No Team checkout URL returned from server");window.location.href=o.url}async function u(e){let{organizationId:t,priceId:r,quantity:n=1,successUrl:i=`${window.location.origin}/organization/billing?topup=success`,cancelUrl:s=`${window.location.origin}/organization/billing?topup=canceled`}=e,l=await a("organization-checkout",{checkout_type:"credit_pack",organization_id:t,credit_pack_price_id:r,credit_pack_quantity:n,success_url:i,cancel_url:s});if(!l.url)throw Error("No top-up checkout URL returned from server");window.location.href=l.url}async function d(e){return a("update-org-plan",{organization_id:e.organizationId,seat_count:e.seatCount,credit_pool_tier:e.creditPoolTier})}async function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=await a("billing-portal",{user_id:e,scope:t.scope||"individual",organization_id:t.organizationId,return_url:t.returnUrl||window.location.href});if(!r.url)throw Error("No billing portal URL returned from server");window.location.href=r.url}function p(){let e=encodeURIComponent("Enterprise demo request"),t=encodeURIComponent("Hello,\n\nI would like more information about the ElyxAI Enterprise plan.\n\n
3Best regards");window.location.href=`mailto:[email protected]?subject=${e}&body=${t}`}},93448:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var n=r(61994),i=r(53335);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.m6)((0,n.W)(t))}r(40257)}},function(e){e.O(0,[35878,39762,72972,43949,7432,46550,62303,75331,14362,92971,52117,1744],function(){return e(e.s=92387)}),_N_E=e.O()}]);
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.