1"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[5786],{86390(e,a,t){t.d(a,{$E:()=>o,F4:()=>i,MX:()=>d,cS:()=>r,dC:()=>c,fY:()=>l,y_:()=>n});var s=t(64577);async function n(){return(await s.FH.get("/api/subscription/plans?pv=2")).data}async function r(){return(await s.FH.get("/api/subscription/self")).data}async function i(){return(await s.FH.get("/api/subscription/orders")).data}async function l(e){return(await s.FH.post("/api/subscription/balance/pay",{plan_id:e})).data}async function d(e){return(await s.FH.post("/api/subscription/keys",{name:e})).data}async function c(){let e=await s.FH.get("/api/token/?p=1&size=100");return(e.data?.data?.items??[]).filter(e=>(e.group??"").startsWith("ttc"))}async function o(e){return(await s.FH.delete(`/api/token/${e}/`)).data}},44177(e,a,t){t.d(a,{HJ:()=>q,KJ:()=>z,Cu:()=>S});var s=t(72361),n=t(68413),r=t(55667),i=t(96962),l=t(53540),d=t(6702),c=t(20598);function o(e){return(0,s.jsx)(s.Fragment,{children:e.bars.map((e,a)=>{let[t,n,r]=e;return(0,s.jsx)("rect",{x:t,y:n,width:r,height:1.6,rx:.8},a)})})}function m(e){return(0,s.jsx)("svg",{"data-name":"icon-scanline-user",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...e,children:(0,s.jsx)(o,{bars:[[9.8,.8,4.4],[8.5,2.8,7],[7.8,4.8,8.4],[7.8,6.8,8.4],[8.3,8.8,7.4],[9.5,10.8,5],[5.6,12.8,5.4],[11.8,12.8,6.8],[3.2,14.8,17.6],[2.2,16.8,8.4],[11.4,16.8,10.4],[1.6,18.8,20.8],[2.2,20.8,7],[10,20.8,11.6]]})})}var x=t(3075),u=t(61631),h=t(81204),p=t(99170),g=t(63742),j=t(46775),b=t(31005),f=t(38579),y=t(23780),v=t(1755),N=t(54023),k=t(59958),w=t(32999);function C(e){let{title:a,description:t,icon:n,action:r,children:i,className:l,headerClassName:d,contentClassName:c,iconClassName:o,titleClassName:m,descriptionClassName:x}=e;return(0,s.jsxs)(b.Zp,{className:(0,h.cn)("gap-0 overflow-hidden py-0",l),children:[(0,s.jsx)(b.aR,{className:(0,h.cn)("from-primary/[0.06] bg-gradient-to-r to-transparent p-3 !pb-3 sm:p-5 sm:!pb-5",d),children:(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[null!=n&&(0,s.jsx)("div",{className:(0,h.cn)("bg-primary/10 text-primary flex h-8 w-8 shrink-0 items-center justify-center rounded-lg sm:h-9 sm:w-9 [&_svg]:size-4",o),children:n}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)(b.ZB,{className:(0,h.cn)("text-primary/90 text-lg tracking-tight sm:text-xl",m),children:a}),null!=t&&(0,s.jsx)(b.BT,{className:(0,h.cn)("text-xs sm:text-sm",x),children:t})]})]}),null!=r&&(0,s.jsx)("div",{className:"w-full shrink-0 sm:w-auto",children:r})]})}),(0,s.jsx)(b.Wu,{className:(0,h.cn)("p-3 sm:p-5",c),children:i})]})}var _=t(67267),F=t(86390);let S=e=>(e??"").startsWith("ttc");function E(e){return!e||e<=0?"-":new Date(1e3*e).toLocaleString()}function P(e,a,t){return`${a} ${t({month:"months",year:"years",day:"days",hour:"hours"}[e]??e)}`}function A(e,a){return a({active:"Active",success:"Success",pending:"Pending",expired:"Expired",cancelled:"Cancelled"}[e]??e)}let Q=[{key:"developer",dbTitle:"Developer Edition",name:"Developer Edition",badge:"Unlimited dedicated GPT enterprise models (image gen included)",claude:!1,recommended:!1,icon:m,price:220,usdQuota:"1,700",tokenQuota:"10亿",accentClass:"bg-cyan-500",iconClass:"border-cyan-500/25 bg-cyan-500/10 text-cyan-700 dark:text-cyan-300",labelClass:"border-cyan-500/60 text-cyan-700 dark:text-cyan-300"},{key:"enterprise",dbTitle:"Enterprise Edition",name:"Enterprise Edition",badge:"Unlimited dedicated GPT enterprise models (image gen included)",claude:!1,recommended:!0,icon:function(e){return(0,s.jsx)("svg",{"data-name":"icon-scanline-users",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...e,children:(0,s.jsx)(o,{bars:[[4.2,.8,3.2],[3.3,2.8,5],[3.3,4.8,5],[2.2,6.8,7],[1.4,8.8,7.6],[1,10.8,4.6],[16.6,.8,3.2],[15.7,2.8,5],[15.7,4.8,5],[14.8,6.8,7],[15,8.8,7.6],[18.4,10.8,4.6],[9.9,8.8,4.2],[9,10.8,6],[9,12.8,6],[9.6,14.8,4.8],[5.5,16.8,13],[3.5,18.8,8],[12.3,18.8,8.2],[2.6,20.8,7.6],[11,20.8,10.4]]})})},price:1e3,usdQuota:"10,000",tokenQuota:"70亿",accentClass:"bg-emerald-500",iconClass:"border-emerald-500/25 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",labelClass:"border-emerald-500/60 text-emerald-700 dark:text-emerald-300"},{key:"team",dbTitle:"Team Edition",name:"Team Edition",badge:"Unlimited dedicated GPT enterprise models (image gen included)",claude:!1,recommended:!1,icon:function(e){return(0,s.jsx)("svg",{"data-name":"icon-scanline-diamond",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true",...e,children:(0,s.jsx)(o,{bars:[[10,2.8,4],[8,4.8,8],[6,6.8,12],[4,8.8,16],[2.5,10.8,9],[12.3,10.8,9.2],[4,12.8,16],[6,14.8,12],[8,16.8,8],[9.7,18.8,4.6],[11,20.8,2]]})})},price:3e3,usdQuota:"38,000",tokenQuota:"300亿",accentClass:"bg-amber-500",iconClass:"border-amber-500/25 bg-amber-500/10 text-amber-700 dark:text-amber-300",labelClass:"border-amber-500/60 text-amber-700 dark:text-amber-300"},{key:"claude-dev",dbTitle:"Claude Developer Edition",name:"Claude Developer Edition",badge:"Claude Code (CLI) dev team exclusive",claude:!0,recommended:!1,icon:m,price:3e3,usdQuota:"10,000",tokenQuota:"70亿",accentClass:"bg-orange-500",iconClass:"border-orange-500/25 bg-orange-500/10 text-orange-700 dark:text-orange-300",labelClass:"border-orange-500/60 text-orange-700 dark:text-orange-300"}];function $(e){var a;let t,{t:n}=(0,d.Bd)(),r=e.meta.icon,i=e.plan?.price_amount??e.meta.price,l=!!e.plan?.enabled,c=n(e.meta.claude?"For teams and enterprises that need near-unlimited access to a leading model for development work.":"For teams and enterprises that need near-unlimited access to a leading model for production work.");return(0,s.jsxs)("article",{"aria-labelledby":`programming-plan-${e.meta.key}`,className:(0,h.cn)("group bg-card relative flex min-w-0 flex-col overflow-hidden rounded-lg border shadow-sm transition-[border-color,box-shadow,transform] duration-200 hover:-translate-y-0.5 hover:shadow-md",e.meta.recommended?"border-emerald-500/50 shadow-[0_16px_38px_-30px_rgba(16,185,129,0.9)]":"border-border/70 hover:border-foreground
1/25"),children:[(0,s.jsx)("div",{className:(0,h.cn)("h-1 w-full shrink-0",e.meta.accentClass)}),(0,s.jsxs)("div",{className:"flex h-full flex-col p-5 sm:p-6",children:[(0,s.jsxs)("header",{className:"flex min-h-[76px] items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-start gap-3",children:[(0,s.jsx)("span",{className:(0,h.cn)("flex size-10 shrink-0 items-center justify-center rounded-md border",e.meta.iconClass),children:(0,s.jsx)(r,{className:"size-6","aria-hidden":"true"})}),(0,s.jsxs)("div",{className:"min-w-0 pt-0.5",children:[(0,s.jsxs)("p",{className:"text-text-tertiary font-mono text-[10px] leading-none font-semibold tracking-normal uppercase",children:[String(e.index+1).padStart(2,"0")," /"," ",e.meta.claude?"CLAUDE":"GPT"]}),(0,s.jsx)("h3",{id:`programming-plan-${e.meta.key}`,className:"mt-1.5 text-lg leading-6 font-semibold tracking-normal",children:n(e.meta.name)})]})]}),e.meta.recommended&&(0,s.jsxs)("span",{className:"flex shrink-0 items-center gap-1 border border-emerald-500/30 bg-emerald-500/10 px-2 py-1 text-[10px] leading-none font-semibold text-emerald-700 dark:text-emerald-300",children:[(0,s.jsx)(u.sUz,{className:"size-3","aria-hidden":"true"}),n("Recommended")]})]}),(0,s.jsxs)("div",{className:"border-border/60 mt-3 min-h-[112px] border-t pt-4",children:[(0,s.jsx)("p",{className:(0,h.cn)("border-l-2 pl-2 text-xs leading-5 font-semibold",e.meta.labelClass),children:n(e.meta.badge)}),(0,s.jsx)("p",{className:"text-text-secondary mt-2 text-[13px] leading-5",children:c})]}),(0,s.jsxs)("div",{className:"border-border/60 mt-4 border-y py-4",children:[(0,s.jsxs)("div",{className:"flex items-end justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-end gap-1.5",children:[(0,s.jsxs)("span",{className:"font-sans text-4xl leading-none font-semibold tracking-normal tabular-nums",children:["$",i.toLocaleString("en-US")]}),(0,s.jsxs)("span",{className:"text-text-secondary mb-0.5 shrink-0 text-sm",children:["/",n("month")]})]}),(0,s.jsx)("span",{className:"text-text-tertiary font-mono text-[10px] font-semibold tracking-normal uppercase",children:"USD"})]}),(0,s.jsxs)("div",{className:"divide-border/60 mt-5 grid grid-cols-2 divide-x",children:[(0,s.jsxs)("div",{className:"min-w-0 pr-3",children:[(0,s.jsxs)("div",{className:"text-text-tertiary flex min-h-8 items-start gap-1.5 text-[10px] leading-4 font-medium uppercase",children:[(0,s.jsx)(u.xBX,{className:"text-primary mt-0.5 size-3.5 shrink-0","aria-hidden":"true"}),(0,s.jsx)("span",{children:n("Official-equivalent monthly usage")})]}),(0,s.jsxs)("strong",{className:"mt-1 block text-xl leading-none font-semibold tracking-normal tabular-nums",children:["$",e.meta.usdQuota]}),(0,s.jsx)("p",{className:"text-text-tertiary mt-1.5 min-h-8 text-[10px] leading-4",children:n("No rate or time limits, actually achievable")})]}),(0,s.jsxs)("div",{className:"min-w-0 pl-3",children:[(0,s.jsxs)("div",{className:"text-text-tertiary flex min-h-8 items-start gap-1.5 text-[10px] leading-4 font-medium uppercase",children:[(0,s.jsx)(u.TxX,{className:"mt-0.5 size-3.5 shrink-0","aria-hidden":"true"}),(0,s.jsx)("span",{children:n("Estimated monthly token ceiling")})]}),(0,s.jsx)("strong",{className:"mt-1 block text-xl leading-none font-semibold tracking-normal tabular-nums",children:e.meta.tokenQuota}),(0,s.jsx)("p",{className:"text-text-tertiary mt-1.5 min-h-8 text-[10px] leading-4",children:n("Varies with output ratio and cache hits")})]})]})]}),(0,s.jsxs)(y.o,{variant:e.meta.recommended?"default":"outline",size:"lg",className:"mt-5 w-full",onClick:()=>e.plan&&e.onSelect(e.plan),disabled:!l,children:[e.actionLabel??n(e.plan?"Buy now":"Coming soon"),(0,s.jsx)(u.Qpb,{className:"size-4","aria-hidden":"true"})]}),(0,s.jsxs)(f.Nt,{className:"border-border/60 mt-4 border-t",children:[(0,s.jsxs)(f.R6,{className:"text-text-secondary hover:text-foreground group/details flex min-h-11 w-full items-center justify-between text-xs font-semibold transition-colors",children:[n("Plan details"),(0,s.jsx)(u.yQN,{className:"size-4 transition-transform group-data-[panel-open]/details:rotate-180"})]}),(0,s.jsx)(f.Ke,{children:(0,s.jsx)("div",{className:"space-y-2.5 pt-1 pb-1",children:(a=e.meta,t=[n("Fair use every 12 hours, no hard cap"),n("No extra charge for standard image generation"),n("No extra charge for tool calls"),n("No extra charge for web search"),n("No extra charge for long context"),n(a.claude?"No extra charge for all Claude Code (CLI) tools":"No extra charge for all Codex tools"),n("At least 98
1% SLA availability with automatic compensation")],a.claude&&t.push(n("Claude Code (CLI) client only")),t).map(e=>(0,s.jsxs)("div",{className:"flex items-start gap-2 text-[12px]",children:[(0,s.jsx)(u.Jlk,{strokeWidth:2.5,className:"text-primary mt-0.5 size-3.5 shrink-0","aria-hidden":"true"}),(0,s.jsx)("span",{className:"text-text-secondary leading-5",children:e})]},e))})})]})]})]})}function q(e){let{plans:a,onSelect:t,actionLabel:n,className:r}=e;return(0,s.jsx)("div",{className:(0,h.cn)("grid items-start gap-5 lg:grid-cols-2 2xl:grid-cols-4",r),children:Q.map((e,r)=>{let i=a.find(a=>a.title===e.dbTitle);return(0,s.jsx)($,{meta:e,index:r,plan:i,onSelect:t,actionLabel:i?n:void 0},e.key)})})}function H(e){let{plans:a,onPurchased:t}=e,{t:i}=(0,d.Bd)(),[l,o]=(0,n.useState)(null),m=(0,r.n)({mutationFn:e=>(0,F.fY)(e),onSuccess:e=>{e.success?(c.oR.success(i("Purchase successful")),o(null),t()):c.oR.error(e.message||i("Purchase failed"))},onError:()=>c.oR.error(i("Purchase failed"))});return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold tracking-tight",children:i("Subscription Plans")}),(0,s.jsx)("p",{className:"text-muted-foreground mt-1 text-sm",children:i("Choose a programming plan with dedicated keys and isolated billing.")})]}),(0,s.jsx)(q,{plans:a,onSelect:o,className:"border-border/60 border-t pt-8"}),(0,s.jsx)(v.lG,{open:!!l,onOpenChange:e=>!e&&o(null),children:(0,s.jsxs)(v.Cf,{children:[(0,s.jsxs)(v.c7,{children:[(0,s.jsx)(v.L3,{children:i("Confirm purchase of {{plan}}",{plan:l?i(l.title):""})}),(0,s.jsx)(v.rr,{children:i("Your balance will be charged ${{price}} for {{duration}}. Continue?",{price:l?.price_amount.toFixed(2),duration:l?P(l.duration_unit,l.duration_value,i):""})})]}),(0,s.jsxs)(v.Es,{children:[(0,s.jsx)(j.$,{variant:"outline",onClick:()=>o(null),children:i("Cancel")}),(0,s.jsx)(j.$,{onClick:()=>l&&m.mutate(l.id),disabled:m.isPending,children:m.isPending?i("Processing..."):i("Confirm purchase")})]})]})})]})}function B(e){let{hasActiveSub:a}=e,{t}=(0,d.Bd)(),o=(0,i.jE)(),[m,h]=(0,n.useState)(""),[p,b]=(0,n.useState)(null),{data:f=[],isLoading:y}=(0,l.I)({queryKey:["programming-plan-keys"],queryFn:F.dC}),k=(0,r.n)({mutationFn:e=>(0,F.MX)(e),onSuccess:e=>{e.success&&e.data?.key?(b(e.data.key),h(""),o.invalidateQueries({queryKey:["programming-plan-keys"]})):c.oR.error(e.message||t("Creation failed"))},onError:()=>c.oR.error(t("Creation failed"))}),_=(0,r.n)({mutationFn:e=>(0,F.$E)(e),onSuccess:e=>{e.success?(c.oR.success(t("Deleted")),o.invalidateQueries({queryKey:["programming-plan-keys"]})):c.oR.error(e.message||t("Delete failed"))}});return(0,s.jsxs)(C,{title:t("Plan keys"),description:t("Dedicated plan keys use only plan quota and are separate from regular API keys."),icon:(0,s.jsx)(u.CyN,{}),children:[(0,s.jsxs)("div",{className:"space-y-4 py-2",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(N.p,{placeholder:t("Key name, for example: My workstation"),value:m,onChange:e=>h(e.target.value),disabled:!a}),(0,s.jsxs)(j.$,{onClick:()=>k.mutate(m),disabled:!a||k.isPending,children:[(0,s.jsx)(u.FWt,{className:"mr-1"})," ",t("Create")]})]}),!a&&(0,s.jsx)("p",{className:"text-muted-foreground text-xs",children:t("Purchase a plan before creating a plan key.")}),y?(0,s.jsx)("div",{className:"text-muted-foreground py-4 text-center text-sm",children:t("Loading...")}):0===f.length?(0,s.jsx)("div",{className:"text-muted-foreground py-4 text-center text-sm",children:t("No plan keys yet")}):(0,s.jsxs)(w.XI,{children:[(0,s.jsx)(w.A0,{children:(0,s.jsxs)(w.Hj,{children:[(0,s.jsx)(w.nd,{children:t("Name")}
1),(0,s.jsx)(w.nd,{children:t("Group")}),(0,s.jsx)(w.nd,{children:t("Created Time")}),(0,s.jsx)(w.nd,{className:"text-right",children:t("Actions")})]})}),(0,s.jsx)(w.BF,{children:f.map(e=>(0,s.jsxs)(w.Hj,{children:[(0,s.jsx)(w.nA,{children:e.name}),(0,s.jsx)(w.nA,{children:(0,s.jsx)(g.E,{variant:"secondary",children:e.group})}),(0,s.jsx)(w.nA,{children:E(e.created_time)}),(0,s.jsx)(w.nA,{className:"text-right",children:(0,s.jsx)(j.$,{variant:"ghost",size:"sm",onClick:()=>_.mutate(e.id),children:(0,s.jsx)(u.lMJ,{})})})]},e.id))})]})]}),(0,s.jsx)(v.lG,{open:!!p,onOpenChange:e=>!e&&b(null),children:(0,s.jsxs)(v.Cf,{children:[(0,s.jsxs)(v.c7,{children:[(0,s.jsx)(v.L3,{children:t("Plan key created")}),(0,s.jsx)(v.rr,{children:t("Copy and save this key now. It will only be shown once.")})]}),(0,s.jsxs)("div",{className:"bg-muted flex items-center gap-2 rounded-md p-3",children:[(0,s.jsx)("code",{className:"flex-1 text-sm break-all",children:p}),(0,s.jsx)(j.$,{size:"sm",variant:"outline",onClick:async()=>{p&&await (0,x.l)(p)&&c.oR.success(t("Copied!"))},children:(0,s.jsx)(u.QRo,{})})]}),(0,s.jsx)(v.Es,{children:(0,s.jsx)(j.$,{onClick:()=>b(null),children:t("Done")})})]})})]})}function T(e){let{sub:a}=e,{t}=(0,d.Bd)(),{data:n=[],isLoading:r}=(0,l.I)({queryKey:["programming-orders"],queryFn:async()=>(await (0,F.F4)()).data??[]}),i=a&&a.amount_total>0?a.amount_used/a.amount_total*100:0,c=i.toFixed(5);return(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"mb-3 text-base font-semibold",children:t("Subscription history")}),(0,s.jsx)(b.Zp,{children:(0,s.jsxs)(b.Wu,{className:"space-y-6 pt-6",children:[a?(0,s.jsxs)("div",{className:"border-border/60 bg-muted/30 space-y-4 rounded-lg border p-5",children:[(0,s.jsxs)("div",{className:"flex items-end justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-muted-foreground text-xs",children:t("Current plan · Monthly usage")}),(0,s.jsx)("div",{className:"text-lg font-semibold",children:i>=100?t("This month's quota is exhausted"):t("Quota available")})]}),(0,s.jsxs)("div",{className:"text-right",children:[(0,s.jsx)("div",{className:"text-muted-foreground text-xs",children:t("Current plan usage")}),(0,s.jsxs)("div",{className:"text-primary text-2xl font-bold tabular-nums",children:[c,"%"]})]})]}),(0,s.jsx)(k.ke,{value:Math.min(i,100),className:"h-1.5"}),(0,s.jsxs)("div",{className:"text-muted-foreground flex flex-wrap gap-x-6 gap-y-1 text-xs",children:[(0,s.jsxs)("span",{children:[t("Status"),":"," ",(0,s.jsx)(g.E,{variant:"active"===a.status?"default":"secondary",children:A(a.status,t)})]}),(0,s.jsxs)("span",{children:[t("Valid until"),": ",E(a.end_time)]}),null!=a.next_reset_time&&a.next_reset_time>0&&(0,s.jsxs)("span",{children:[t("Next monthly reset"),": ",E(a.next_reset_time)]})]})]}):(0,s.jsx)("div",{className:"border-border/60 text-muted-foreground bg-muted/30 rounded-lg border p-5 text-center text-sm",children:t("No active plan. Monthly quota usage will appear here after purchase.")}),(0,s.jsxs)(w.XI,{children:[(0,s.jsx)(w.A0,{children:(0,s.jsxs)(w.Hj,{children:[(0,s.jsx)(w.nd,{children:t("Date")}),(0,s.jsx)(w.nd,{children:t("Product name")}),(0,s.jsx)(w.nd,{children:t("Payment method")}),(0,s.jsx)(w.nd,{children:t("Amount")}),(0,s.jsx)(w.nd,{children:t("Validity period")}),(0,s.jsx)(w.nd,{children:t("Status")})]})}),(0,s.jsx)(w.BF,{children:r?(0,s.jsx)(w.Hj,{children:(0,s.jsx)(w.nA,{colSpan:6,className:"text-muted-foreground text-center",children:t("Loading...")})}):0===n.length?(0,s.jsx)(w.Hj,{children:(0,s.jsx)(w.nA,{colSpan:6,className:"text-muted-foreground text-center",children:t("No data")})}):n.map(e=>(0,s.jsxs)(w.Hj,{children:[(0,s.jsx)(w.nA,{children:E(e.create_time)}),(0,s.jsx)(w.nA,{children:t(e.plan_title)}),(0,s.jsx)(w.nA,{children:"balance"===e.payment_method?t("Balance"):t(e.payment_method)}),(0,s.jsxs)(w.nA,{children:[e.currency," ",e.money.toFixed(2)]}),(0,s.jsx)(w.nA,{children:P(e.duration_unit,e.duration_value,t)}),(0,s.jsx)(w.nA,{children:(0,s.jsx)(g.E,{variant:"success"===e.status?"default":"secondary",children:A(e.status,t)})})]},e.id))})]})]})})]})}function z(){let{t:e}=(0,d.Bd)();(0,p.H)(e("Programming Plans"));let a=(0,i.jE)(),{data:t}=(0,l.I)({queryKey:["programming-plans"],queryFn:async()=>(await (0,F.y_)()).data??[]}),{data:n}=(0,l.I)({queryKey:["programming-self"],queryFn:async()=>(await (0,F.cS)()).data}),r=(t??[]).map(e=>e.plan).filter(e=>S(e.plan_group)),c=n?.subscriptions?.[0]?.subscription;return(0,s.jsx)(_.Ni,{children:(0,s.jsx)(_.Ni.Content,{children:(0,s.jsxs)("div",{className:"mx-auto w-full max-w-7xl space-y-10 pt-4",children:[(0,s.jsx)(H,{plans:r,onPurchased:()=>{a.invalidateQueries({queryKey:["programming-self"]}
1),a.invalidateQueries({queryKey:["programming-orders"]})}}),(0,s.jsx)(B,{hasActiveSub:!!c}),(0,s.jsx)(T,{sub:c})]})})})}},99170(e,a,t){t.d(a,{H:()=>r});var s=t(68413),n=t(38610);function r(e){let{systemName:a}=(0,n.R)();(0,s.useEffect)(()=>{let t=document.title;return document.title=a?`${e} - ${a}`:e,()=>{document.title=t}},[e,a])}}}]);
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.