1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6907],{52530:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])},94514:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},192972:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},308195:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},337956:(e,t,s)=>{"use strict";s.d(t,{S:()=>r});let r=(e,t={})=>{if("https://kaman.ai"!==window.location.origin)return;let s=window,r=s.dataLayer??[];r.push({event:e,...t}),s.dataLayer=r}},353961:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},451914:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},506296:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},524642:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},577012:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]])},590718:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]])},630971:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]])},633591:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},682482:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},739235:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});var r=s(695155),a=s(212115),n=s(833210),o=s(682482),i=s(451914),d=s(94514),l=s(52530),c=s(506296),m=s(976498),u=s(879372),x=s(812741),h=s(748899);function p({isOpen:e,onClose:t,onPurchase:s}){let{multiplier:p}=(0,h.W)(),[g,f]=(0,a.useState)(10),[y,b]=(0,a.useState)(!1),[j,w]=(0,a.useState)(""),[v,k]=(0,a.useState)(!1),[N,A]=(0,a.useState)(null),C=async()=>{if(j.trim()){k(!0),A(null);try{let e=(0,x.i)(),t=await fetch("/api/billing/validate-coupon",{method:"POST",headers:{"Content-Type":"application/json",...e?{Authorization:`Bearer ${e}`}:{}},body:JSON.stringify({code:j.trim(),purchaseAmount:+g})}),s=await t.json();A(s)}catch{A({valid:!1,reason:"Failed to validate coupon"})}finally{k(!1)}}},M=async()=>{try{b(!0),await s(g,N?.valid?j.trim():void 0)}catch(e){console.error("Purchase failed:",e)}finally{b(!1)}},S=+g,P=N?.valid&&N.discountAmount||0,q=N?.valid?N.finalAmount??S:S;return e?(0,r.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,r.jsxs)("div",{className:"bg-card rounded-lg shadow-xl max-w-md w-full max-h-[90vh] overflow-y-auto",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-border",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:"Add Credits"}),(0,r.jsx)("button",{onClick:t,className:"text-muted-foreground hover:text-foreground transition-colors",disabled:y,children:(0,r.jsx)(n.A,{className:"w-6 h-6"})})]}),(0,r.jsxs)("div",{className:"p-6 space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Amount (USD)"}),(0,r.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,r.jsx)("button",{onClick:()=>{f(e=>Math.max(e-1,5)),N?.valid&&A(null)},disabled:g<=5||y,className:"p-2 rounded-lg border border-border hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:(0,r.jsx)(o.A,{className:"w-4 h-4"})}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)("input",{type:"number",value:g,onChange:e=>{let t=parseInt(e.target.value)||5;t>=5&&(f(t),N?.valid&&A(null))},min:5,disabled:y,className:"w-full px-4 py-3 text-center text-lg font-semibold border border-border rounded-lg focus:ring-2 focus:ring-brand-500 focus:border-brand-500 disabled:opacity-50"})}),(0,r.jsx)("button",{onClick:()=>{f(e=>e+1),N?.valid&&A(null)},disabled:y,className:"p-2 rounded-lg border border-border hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:(0,r.jsx)(i.A,{className:"w-4 h-4"})})]}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground mt-1",children:["Minimum $",5," â you'll receive ",(g*p).toLocaleStr
1ing()," credits"]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Discount Code"}),N?.valid?(0,r.jsxs)("div",{className:"flex items-center justify-between bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg px-4 py-3",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(d.A,{className:"w-4 h-4 text-green-600"}),(0,r.jsxs)("span",{className:"text-sm font-medium text-green-700 dark:text-green-400",children:[j.toUpperCase()," â ",N.discountPercent,"% off"]})]}),(0,r.jsx)("button",{onClick:()=>{w(""),A(null)},disabled:y,className:"text-sm text-red-500 hover:text-red-700 transition-colors",children:"Remove"})]}):(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsxs)("div",{className:"relative flex-1",children:[(0,r.jsx)(l.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-muted-foreground"}),(0,r.jsx)("input",{type:"text",value:j,onChange:e=>{w(e.target.value.toUpperCase()),N&&A(null)},placeholder:"Enter code",disabled:y||v,className:"w-full pl-9 pr-4 py-2.5 border border-border rounded-lg focus:ring-2 focus:ring-brand-500 focus:border-brand-500 disabled:opacity-50 text-sm",onKeyDown:e=>{"Enter"===e.key&&C()}})]}),(0,r.jsx)("button",{onClick:C,disabled:!j.trim()||y||v,className:"px-4 py-2.5 bg-muted text-foreground border border-border rounded-lg hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors text-sm font-medium",children:v?(0,r.jsx)(c.A,{className:"w-4 h-4 animate-spin"}):"Apply"})]}),N&&!N.valid&&(0,r.jsx)("p",{className:"text-xs text-red-500 mt-1",children:N.reason})]}),(0,r.jsxs)("div",{className:"bg-muted rounded-lg p-4 space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,r.jsx)("span",{className:"text-muted-foreground",children:"Credits"}),(0,r.jsx)("span",{className:"text-foreground",children:(g*p).toLocaleString()})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,r.jsx)("span",{className:"text-muted-foreground",children:"Amount"}),(0,r.jsxs)("span",{className:"text-foreground",children:["$",S.toFixed(2)]})]}),P>0&&(0,r.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,r.jsxs)("span",{className:"text-green-600 dark:text-green-400",children:["Discount (",N?.discountPercent,"%)"]}),(0,r.jsxs)("span",{className:"text-green-600 dark:text-green-400",children:["-$",P.toFixed(2)]})]}),(0,r.jsx)("hr",{className:"border-border"}),(0,r.jsxs)("div",{className:"flex items-center justify-between font-semibold",children:[(0,r.jsx)("span",{className:"text-foreground",children:"Total"}),(0,r.jsxs)("div",{className:"text-right",children:[P>0&&(0,r.jsxs)("span",{className:"text-sm text-muted-foreground line-through mr-2",children:["$",S.toFixed(2)]}),(0,r.jsxs)("span",{className:"text-lg text-brand-500",children:["$",q.toFixed(2)]})]})]})]}),(0,r.jsx)("div",{className:"bg-brand-50 rounded-lg p-4",children:(0,r.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,r.jsx)(m.A,{className:"w-5 h-5 text-brand-600 mt-0.5"}),(0,r.jsxs)("div",{className:"text-sm text-brand-700",children:[(0,r.jsx)("p",{className:"font-medium mb-1",children:"What are credits used for?"}),(0,r.jsxs)("ul",{className:"list-disc list-inside space-y-1 text-brand-600",children:[(0,r.jsx)("li",{children:"API calls and requests"}),(0,r.jsx)("li",{children:"Storage and file operations"}),(0,r.jsx)("li",{children:"AI processing and tokens"}),(0,r.jsx)("li",{children:"Premium features access"})]})]})]})})]}),(0,r.jsxs)("div",{className:"px-6 py-4 border-t border-border flex items-center justify-between",children:[(0,r.jsx)("button",{onClick:t,disabled:y,className:"px-4 py-2 text-foreground border border-border rounded-lg hover:bg-accent disabled:opacity-50 transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:M,disabled:y||g<5,className:"px-6 py-2 bg-brand-500 text-white rounded-lg hover:bg-brand-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center space-x-2",children:y?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-white"}),(0,r.jsx)("span",{children:"Processing..."})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.A,{className:"w-4 h-4"}
1),(0,r.jsx)("span",{children:q<=0?`Get ${(g*p).toLocaleString()} Free Credits`:`Purchase ${(g*p).toLocaleString()} Credits â $${q.toFixed(2)}`})]})})]})]})}):null}},748899:(e,t,s)=>{"use strict";s.d(t,{W:()=>a});var r=s(212115);function a(){let[e,t]=(0,r.useState)(1e3);(0,r.useEffect)(()=>{fetch("/api/auth/auth/platform-config/credits-per-dollar").then(e=>e.json()).then(e=>{let s=e?.credits_per_dollar;s&&t(Number(s))}).catch(()=>{})},[]);let s=t=>t*e;return{multiplier:e,toCredits:s,fmtCredits:e=>s(e).toLocaleString(),toDollars:t=>t/e}}},805735:(e,t,s)=>{"use strict";s.d(t,{default:()=>g});var r=s(695155),a=s(212115),n=s(506296),o=s(577012),i=s(451914),d=s(573321),l=s(378670),c=s(284150),m=s(150698),u=s(739235),x=s(337956),h=s(748899);let p=[{id:1,question:"What do I get for free?",answer:"Every new account receives free credits each month â enough to explore agents, run workflows, and chat with AI. Free credits work with select models. No credit card required to sign up."},{id:2,question:"Are there any limits on the free tier?",answer:"Free credits are subject to fair-use rate limits and are available for select models only. Response times may vary during peak usage. For faster responses and access to premium models, purchase additional credits."},{id:3,question:"How does pay-as-you-go work?",answer:"Purchase credits in any amount starting from $5. Credits are consumed as you use AI agents, run workflows, process data, and store files. There are no monthly fees or subscriptions."},{id:4,question:"What are credits used for?",answer:"Credits cover everything on the platform: LLM inference (token usage), compute for workflows and data processing, storage for files and data lakes, and MCP server connections."},{id:5,question:"Do credits expire?",answer:"Purchased credits are valid for 5 years from the date of purchase. Free credits reset monthly â unused free credits do not carry forward."},{id:6,question:"Can I bring my own API keys?",answer:"Yes. You can bring your own API keys from OpenAI, Anthropic, Azure, and other providers for direct billing. When using your own keys, you only pay for platform compute â not LLM tokens."},{id:7,question:"How is LLM usage charged?",answer:"LLM tokens are charged based on the model you use. Lighter models like GPT-4o-mini cost significantly less than GPT-4o or Claude Opus. You can see per-model pricing in the Models section of your dashboard."},{id:8,question:"Can I add credits at any time?",answer:"Yes. Top up your balance whenever you need â there's no minimum purchase after the initial $5. Use the Custom Amount option to add any amount you like."}];function g({strapiData:e}){let{fmtCredits:t}=(0,h.W)(),[s,g]=(0,a.useState)(null),[f,y]=(0,a.useState)("Growth Credits"),[b,j]=(0,a.useState)([{id:1,name:"Starter Credits",amount:5,price:5,description:"Try the platform â enough for dozens of agent conversations"},{id:2,name:"Growth Credits",amount:50,price:50,description:"Great for teams running workflows and data pipelines"},{id:3,name:"Custom Amount",amount:0,price:0,description:"Add any amount of credits you need",isCustom:!0}]),[w,v]=(0,a.useState)(!1),[k,N]=(0,a.useState)({computeUnit:.14,storageGB:.5,llmTokensPer1M:14}),[A,C]=(0,a.useState)(!1),{user:M,isAuthenticated:S}=(0,l.A)(),{showToast:P}=(0,c.useToastContext)(),q=(0,d.useSearchParams)(),$=(0,a.useRef)(!1);(0,a.useEffect)(()=>{v(!1)},[]);let F=async e=>{if("Custom Amount"===e)return void C(!0);if(g(e),!S||!M){let t=encodeURIComponent(`/pricing?plan=${encodeURIComponent(e)}`);window.location.href=`/accounts/multi-org-login?returnUrl=${t}`;return}let t=b.find(t=>t.name===e);if(!t){P({type:"error",message:"Plan not found."}),g(null);return}try{let e=M.id,s=M.email,r=JSON.parse(localStorage.getItem("organization")||"{}").id;console.log("Creating credits checkout session with:",{userId:e,organization:r,email:s,credits:t.amount});let a=await fetch("/api/billing/credits-checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e,organizationId:r,email:s,credits:t.amount,customerName:M.name||s})}),n=await a.json();a.ok&&n.url?((0,x.S)("credit_purchase_started",{credits:t.amount}),window.location.href=n.url):(console.error("Failed to create checkout session:",n.error),P({type:"error",message:"Failed to start checkout process. Please try again."}))}catch(e){console.error("Error:",e),P({type:"error",message:"An error occurred. Please try again."})}finally{g(null)}},I=async e=>{if(!S||!M){let e=encodeURIComponent("/pricing");window.location.href=`/accounts/multi-org-login?returnUrl=${e}`;return}try{let t=M.id,s=M.email,r=JSON.parse(localStorage.getItem("organization")||"{}").id,a=await fetch("/api/billing/credits-checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:t,organizationId:r,email:s,credits:e,customerName:M.name||s})}),n=await a.json();a.ok&&n.url?((0,x.S)("credit_purchase_started",{credits:e}),window.location.href=n.url):(console.error("Failed to create checkout session:",n.error),P({type:"error",message:"Failed to start checkout process. Please try again."}))}catch(e){console.error("Error:",e),P({type:"error",message:"An error occurred. Please try again."})}finally{C(!1)}};if((0,a.useEffect)(()=>{let e=q.get("plan");if(e&&!$.current&&S&&M&&!w){$.current=!0;let t=b.find(t=>t.name.toLowerCase()===e.toLowerCase());t&&!t.isCustom&&(y(t.name),window.history.replaceState({},"","/pricing"),setTimeout(()=>{F(t.name)},100))}},[b,S,M,w,q]),w)return(0,r.jsxs)("div",{className:"min-h-screen flex items-center justify-center",children:[(0,r.jsx)(n.A,{className:"h-8 w-8 animate-spin"}),(0,r.jsx)("span",{className:"ml-2",children:"Loading pricing plans..."})]});let z=b.map(e=>
1({...e,displayPrice:e.isCustom?"Custom":`$${e.price}`,displayAmount:e.isCustom?"Any amount":`$${e.amount}`}));return(0,r.jsxs)(m.default,{showFooter:!0,showSidebar:!1,children:[(0,r.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-2 pb-12",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("h1",{className:"text-4xl font-bold text-foreground sm:text-5xl",children:"Start free, scale as you grow"}),(0,r.jsx)("p",{className:"mt-4 text-xl text-muted-foreground max-w-3xl mx-auto",children:"Every new account gets free credits each month â no credit card required. Need more? Buy credits starting at $5 with no subscriptions or commitments."})]})}),(0,r.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-8",children:(0,r.jsxs)("div",{className:"relative rounded-2xl bg-gradient-to-r from-green-50 to-emerald-50 dark:from-green-950/40 dark:to-emerald-950/40 border-2 border-green-200 dark:border-green-800 p-8 shadow-lg",children:[(0,r.jsx)("div",{className:"absolute -top-4 left-1/2 transform -translate-x-1/2",children:(0,r.jsxs)("span",{className:"bg-green-600 text-white px-4 py-1 text-sm font-medium rounded-full inline-flex items-center gap-1.5",children:[(0,r.jsx)(o.A,{className:"h-3.5 w-3.5"}),"Free Every Month"]})}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6",children:[(0,r.jsxs)("div",{className:"text-center md:text-left flex-grow",children:[(0,r.jsx)("h3",{className:"text-2xl font-bold text-foreground",children:"Free Credits"}),(0,r.jsx)("p",{className:"mt-2 text-muted-foreground max-w-lg",children:"Every new account gets free credits each month. Explore agents, run workflows, and chat with AI â no credit card required."}),(0,r.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:"Available for select models. Subject to fair-use rate limits. Response times may vary during peak usage."})]}),(0,r.jsxs)("div",{className:"flex-shrink-0 text-center",children:[(0,r.jsx)("a",{href:"/accounts/multi-org-login",children:(0,r.jsx)("button",{className:"bg-green-600 text-white px-8 py-3 rounded-lg font-medium hover:bg-green-700 transition-colors text-lg",children:"Sign Up Free"})}),(0,r.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:"No credit card required"})]})]})]})}),(0,r.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-4 pt-4",children:(0,r.jsx)("p",{className:"text-center text-lg text-muted-foreground",children:"Need more? Purchase credits â no subscriptions, no commitments."})}),(0,r.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-16",children:(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:z.map((e,a)=>(0,r.jsxs)("div",{onClick:()=>!e.isCustom&&y(e.name),className:`relative rounded-2xl shadow-lg transition-all duration-200 hover:shadow-xl ${e.isCustom?"cursor-default bg-gradient-to-br from-blue-50 to-indigo-50 border-2 border-dashed border-blue-300":`cursor-pointer ${f===e.name?"ring-2 ring-brand-500 shadow-brand-200":"ring-1 ring-gray-200 hover:ring-border"} bg-card`} p-8 flex flex-col h-full`,children:[f===e.name&&!e.isCustom&&(0,r.jsx)("div",{className:"absolute -top-4 left-1/2 transform -translate-x-1/2",children:(0,r.jsx)("span",{className:"bg-brand-500 text-white px-4 py-1 text-sm font-medium rounded-full",children:e.name})}),(0,r.jsxs)("div",{className:"text-center flex-grow",children:[(0,r.jsx)("h3",{className:"text-xl font-semibold text-foreground",children:e.name}),!e.isCustom&&(0,r.jsx)("div",{className:"mt-4 flex items-baseline justify-center",children:(0,r.jsxs)("span",{className:"text-5xl font-bold text-foreground",children:["$",e.price]})}),e.isCustom&&(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("span",{className:"text-4xl font-bold text-blue-600",children:"Custom"}),(0,r.jsx)("p",{className:"text-lg text-muted-foreground mt-1",children:"Set your own amount"})]}),(0,r.jsx)("p",{className:"mt-4 text-muted-foreground",children:e.description})]}),!e.isCustom&&(0,r.jsxs)("div",{className:"mt-8 pt-6 border-t border-border",children:[(0,r.jsxs)("div",{className:"text-center mb-4",children:[(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:"Total Credits"}),(0,r.jsx)("p",{className:"text-3xl font-bold text-brand-600",children:t(e.amount)})]}),(0,r.jsx)("div",{className:"text-center",children:(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:"Valid for 5 years from purchase"})})]}),(0,r.jsx)("div",{className:"mt-8",children:(0,r.jsx)("button",{onClick:t=>{t.stopPropagation(),F(e.name)},disabled:s===e.name,className:`w-full py-3 px-6 rounded-lg font-medium transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center ${e.isCustom?"bg-blue-600 text-white hover:bg-blue-700 disabled:hover:bg-blue-600":f===e.name?"bg-brand-500 text-white hover:bg-brand-600 disabled:hover:bg-brand-500":"bg-muted text-foreground hover:bg-muted disabled:hover:bg-muted"}`,children:s===e.name?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Processing..."]}):e.isCustom?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.A,{className:"mr-2 h-4 w-4"}),"Add Custom Credits"]}):"Purchase Credits"})})]},a))})}),(0,r.jsx)("div",{className:"bg-muted",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:[(0,r.jsx)("h2",{className:"text-3xl font-bold text-foreground text-center mb-12",children:"Frequently Asked Questions"}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:p.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-foreground mb-2",children:e.question}),(0,r.jsx)("p",{className:"text-muted-foreground",children:e.answer})]},e.id))})]})}),(0,r.jsx)(u.A,{isOpen:A,onClose:()=>C(!1),onPurchase:I})]})}},812741:(e,t,s)=>{"use strict";s.d(t,{i:()=>n,z:()=>o});var r=s(882849);let a=s(741463).env.NEXT_PUBLIC_AUTH_COOKIE_NAME||"kaman_access_token";function n(){let e=r.A.get(a);if(e)return e;try{let e=localStorage.getItem("authToken");if(e){let t=JSON.parse(e);if(t?.access_token)return t.access_token}}catch{}return null}function o(){let e=n();if(!e)throw Error("Not authenticated");return{Authorization:`Bearer ${e}`,"Content-Type":"application/json"}}},846029:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("radio",[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},846518:(e,t,s)=>{Promise.resolve().then(s.bind(s,805735))},879372:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});
1let r=(0,s(506404).A)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},890549:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("shopping-bag",[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]])},897233:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},909921:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},949619:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},984980:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},998401:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(506404).A)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])}},e=>{e.O(0,[6426,8500,5275,6034,6590,7914,7647,1001,698,8441,3794,7358],()=>e(e.s=846518)),_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.