PageSourceSearch

https://sticklight.com/assets/app/PlansHeaderContent-ZR_Wt63h.js

js sticklight.com collected 2026-09-25 20:52:42 UTC 22,447 bytes, 1 lines download raw bytes

1import{c as $,a as le,j as l,em as Ue,r as we,n as V,u as Ve,bh as He,bi as Ge,en as Je,bN as Ie,es as Fe,bL as te,T as je,eb as $e,bM as We,U as De,bA as qe,b as _e,aq as ke,ee as Te,N as Pe,h as Ye,et as ze,eu as Qe,eo as Xe,ev as Ze,M as Ke}from"./CommandPaletteGate-gsCMafFE.js";import{P as et}from"./PermissionGate-DjWp0rP1.js";import{D as tt,a as st,b as nt,u as lt,S as it}from"./ScheduledChangesBanner-BJWOdTUR.js";import{P as F}from"./PlanCard-DM6rhsW2.js";import{x as at,y as Re,R as rt,S as ot,g as ct,v as dt}from"./Select-DJgXKhOj.js";import{u as ut,C as ft}from"./CreditsDisplay-xO6OY8C2.js";import{b as mt}from"./Badge-DYVi7Jij.js";import{U as pt}from"./UpgradeIcon-DTQe2xGH.js";import{B as Le}from"./BillingIntervalToggle-TnqTfoUJ.js";try{let r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="29251ccb-abf4-445b-9e82-08e350a51c92",r._sentryDebugIdIdentifier="sentry-dbid-29251ccb-abf4-445b-9e82-08e350a51c92")}catch{}const ht=["codeAccess","unlimitedProjects","customDomain","githubConnection","unlimitedSecurityScans","creditRollover","dailyCreditBonus","noBadge","onDemandCreditTopups"],bt=["dailyCreditBonus","codeAccess","unlimitedProjects","customDomain","githubConnection","noBadge"],xt=["creditPricing","security","onboarding","support","connectors","controls"],gt={pro:ht,"pro-lite":bt,enterprise:xt},Pt=["unlimitedProjects","creditRollover","dailyCreditBonus","customDomain","githubConnection","onDemandCreditTopups","codeAccess","projectTransfer","unlimitedSecurityScans","noBadge"];function jt(r){const e=$.c(16),{planId:t,source:s}=r,{t:n}=le("common"),i=t==="pro"&&s===Ue,a=i?Pt:gt[t];let d;e[0]!==i||e[1]!==t||e[2]!==n?(d=n(i?"subscription.modal.publishEntitlement.proFeaturesTitle":`subscription.plans.${t}.cardFeaturesTitle`),e[0]=i,e[1]=t,e[2]=n,e[3]=d):d=e[3];let m;if(e[4]!==a||e[5]!==i||e[6]!==t||e[7]!==n){let f;e[9]!==i||e[10]!==t||e[11]!==n?(f=p=>{const u=n(i?`subscription.modal.publishEntitlement.proFeatures.${p}`:`subscription.plans.${t}.cardFeatures.${p}`,"");if(!u)return null;const h=i?"":n(`subscription.plans.${t}.cardFeaturesTooltip.${p}`,"");return h?l.jsx(F.FeatureWithTooltip,{tooltip:h,children:u},p):l.jsx(F.Feature,{children:u},p)},e[9]=i,e[10]=t,e[11]=n,e[12]=f):f=e[12],m=a.map(f),e[4]=a,e[5]=i,e[6]=t,e[7]=n,e[8]=m}else m=e[8];let o;return e[13]!==d||e[14]!==m?(o=l.jsx(F.Features,{title:d,children:m}),e[13]=d,e[14]=m,e[15]=o):o=e[15],o}const Oe="__credits_select_action__";function St(r){const e=$.c(39),{options:t,value:s,onValueChange:n,variant:i,fillSelection:a,className:d,testId:m,actionOption:o}=r,f=i===void 0?"default":i,p=a===void 0?!1:a;let u;if(e[0]!==t||e[1]!==s){let T;e[3]!==s?(T=D=>JSON.stringify(D.value)===JSON.stringify(s),e[3]=s,e[4]=T):T=e[4],u=t.find(T),e[0]=t,e[1]=s,e[2]=u}else u=e[2];const h=u,b=we.useRef(!1);let g;e[5]!==s?(g=JSON.stringify(s),e[5]=s,e[6]=g):g=e[6];let P;e[7]!==n?(P=T=>{if(T===Oe){b.current=!0;return}n(JSON.parse(T))},e[7]=n,e[8]=P):P=e[8];const x=f==="highlighted";let S;e[9]!==d||e[10]!==p||e[11]!==x?(S=V("w-full h-9 shadow-none rounded-[8px] [&>span]:flex [&>span]:w-full [&>span]:min-w-0 [&>span]:items-center [&>span]:line-clamp-none",{"border-input text-text-light":x,"bg-background text-text-foreground":p},d),e[9]=d,e[10]=p,e[11]=x,e[12]=S):S=e[12];let c;e[13]!==h?(c=h?.secondaryLabel?l.jsxs("div",{className:"flex w-full min-w-0 items-center justify-between gap-2",children:[l.jsx("div",{className:"min-w-0 truncate",children:h.label}),l.jsx("div",{className:"shrink-0 text-muted-foreground",children:h.secondaryLabel})]}):h?.label,e[13]=h,e[14]=c):c=e[14];let j;e[15]!==c?(j=l.jsx(rt,{children:c}),e[15]=c,e[16]=j):j=e[16];let y;e[17]!==S||e[18]!==j||e[19]!==m?(y=l.jsx(ot,{className:S,"data-testid":m,children:j}),e[17]=S,e[18]=j,e[19]=m,e[20]=y):y=e[20];const N=f==="highlighted"&&"border-text-light/20";let _;e[21]!==N?(_=V(N),e[21]=N,e[22]=_):_=e[22];let w;e[23]!==o?(w=T=>{!b.current||!o||(T.preventDefault(),b.current=!1,queueMicrotask(o.onSelect))},e[23]=o,e[24]=w):w=e[24];let C;e[25]!==t?(C=t.map(At),e[25]=t,e[26]=C):C=e[26];let A;e[27]!==o?(A=o&&l.jsxs(l.Fragment,{children:[l.jsx(at,{}),l.jsx(Re,{value:Oe,"data-testid":o.testId,children:o.label})]}),e[27]=o,e[28]=A):A=e[28];let E;e[29]!==_||e[30]!==w||e[31]!==C||e[32]!==A?(E=l.jsxs(ct,{className:_,onCloseAutoFocus:w,children:[C,A]}),e[29]=_,e[30]=w,e[31]=C,e[32]=A,e[33]=E):E=e[33];let O;return e[34]!==y||e[35]!==E||e[36]!==g||e[37]!==P?(O=l.jsxs(dt,{value:g,onValueChange:P,children:[y,E]}),e[34]=y,e[35]=E,e[36]=g,e[37]=P,e[38]=O):O=e[38],O}function At(r){return l.jsx(Re,{value:JSON.stringify(r.value),className:V(r.secondaryLabel&&"[&>span:last-of-type]:w-full"),textValue:r.textValue,"data-testid":r.testId,children:r.secondaryLabel?l.jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[l.jsx("div",{children:r.label}),l.jsx("div",{className:"text-muted-foreground",children:r.secondaryLabel})]}):r.label},JSON.stringify(r.value))}const Ct=["createAndRefine","publishSubdomain","securityScan","badge"];function Gt(r){const e=$.c(26),{plan:t,className:s,ref:n,selectedPlan:i,onPoolSelected:a,onTalkToSalesSelected:d,talkToSalesSource:m,onCheckout:o,source:f,showInterval:p}=r,{isAuthenticated:u}=_e(),{data:h}=ke(),b=h?.scheduledChange??null;let g;e[0]!==b?(g={scheduledChange:b},e[0]=b,e[1]=g):g=e[1];const{data:P}=nt(g);let x;e[2]!==t||e[3]!==i?(x=Ie(t,i),e[2]=t,e[3]=i,e[4]=x):x=e[4];const S=x,c=S?.id??"",j=(S?.value??0)>0;let y;e[5]!==c||e[6]!==j?(y={id:c,isPaid:j},e[5]=c,e[6]=j,e[7]=y):y=e[7];const N=lt(y),_=P?.price?.mainAiPoolMaxAmount??h?.mainAiPool?.maxAmount??0,w=h?.isFree;let C;e[8]!==h?(C=h?.scheduledChange?Te(h.scheduledChange.effectiveDate):null,e[8]=h,e[9]=C):C=e[9];let A;return e[10]!==N||e[11]!==s||e[12]!==u||e[13]!==o||e[14]!==a||e[15]!==d||e[16]!==t||e[17]!==n||e[18]!==i||e[19]!==p||e[20]!==f||e[21]!==_||e[22]!==w||e[23]!==C||e[24]!==m?(A=l.jsx(Nt,{action:N,className:s,currentMainAiPoolMaxAmount:_,plan:t,ref:n,source:f,selectedPlan:i,onCheckout:o,onPoolSelected:a,onTalkToSalesSelected:d,talkToSalesSource:m,showInterval:p,isAuthenticated:u,isFree:w,scheduledChangeDate:C}),e[10]=N,e[11]=s,e[12]=u,e[13]=o,e[14]=a,e[15]=d,e[16]=t,e[17]=n,e[18]=i,e[19]=p,e[20]=f,e[21]=_,e[22]=w,e[23]=C,e[24]=m,e[25]=A):A=e[25],A}function yt(r){const e=$.c(12),{actionCopy:t,canManageBilling:s,contactOwnerCopy:n,disabled:i,isCurrent:a,isHighlighted:d,onClick:m,testId:o}=r;if(s){let u;return e[0]!==t||e[1]!==i||e[2]!==m||e[3]!==o?(u=l.jsx(F.Action,{disabled:i,onClick:m,"data-testid":o,children:t}),e[0]=t,e[1]=i,e[2]=m,e[3]=o,e[4]=u):u=e[4],u}if(a){let u;return e[5]!==t||e[6]!==o?(u=l.jsx(F.Action,{disabled:!0,"data-testid":o,children:t}),e[5]=t,e[6]=o,e[7]=u):u=e[7],u}const f=d?"bg-transparent text-white border-white":"";let p;return e[8]!==n||e[9]!==f||e[10]!==o?(p=l.jsx(F.Action,{disabled:!0,className:f,variant:"outline","data-testid":o,children:n}),e[8]=n,e[9]=f,e[10]=o,e[11]=p):p=e[11],p}function Nt(r){const e=$.c(134),{action:t,plan:s,className:n,ref:i,selectedPlan:a,onPoolSelected:d,onTalkToSalesSelected:m,talkToSalesSource:o,onCheckout:f,currentMainAiPoolMaxAmount:p,showInterval:u,scheduledChangeDate:h,isAuthenticated:b,isFree:g,canManageBillingOverride:P,source:x}=r,S=p===void 0?0:p,{t:c}=le("common"),{track:j}=Ve(),y=He(Ge.DOWNGRADE_NEW_FLOW_ENABLED),[N,_]=we.useState(!1),[w,C]=we.useState(null);let A,E,O,T,D,v,H,k,I,B,L,M,J,W,q,G;if(e[0]!==t||e[1]!==P||e[2]!==n||e[3]!==b||e[4]!==y||e[5]!==g||e[6]!==f||e[7]!==d||e[8]!==m||e[9]!==s||e[10]!==i||e[11]!==a||e[12]!==u||e[13]!==x||e[14]!==c||e[15]!==o||e[16]!==j){k=Symbol.for("react.early_return_sentinel");e:{const se=Je(s.prices).sort(vt);let re;e[33]!==s||e[34]!==a?(re=Ie(s,a),e[33]=s,e[34]=a,e[35]=re):re=e[35],v=re;const Se=`subscription.plans.${s.id}.tagLine`;let oe;e[36]!==c||e[37]!==Se?(oe=c(Se,""),e[36]=c,e[37]=Se,e[38]=oe):oe=e[38];const ce=oe;if(!v){k=null;break e}const de=t.state.label==="downgrade",Ae=de&&y&&s.isFree;let ue;e[39]!==x?(ue=x?Fe.has(x):!1,e[39]=x,e[40]=ue):ue=e[40];const Ce=ue,Ee=s.id===te&&m!==void 0;let fe;e[41]!==t||e[42]!==de||e[43]!==Ce||e[44]!==f||e[45]!==s.id||e[46]!==v.id||e[47]!==Ae||e[48]!==x||e[49]!==j?(fe=async()=>
1{if(Ce&&s.id===te&&j(De.ProjectLimitUpgradeClicked,{source:x,plan_id:s.id,price_id:v.id}),de){C(Ae?"new":"legacy"),_(!0);return}const R=await t.handler();if(R.type==="custom-checkout"&&f){f(R.payload);return}},e[41]=t,e[42]=de,e[43]=Ce,e[44]=f,e[45]=s.id,e[46]=v.id,e[47]=Ae,e[48]=x,e[49]=j,e[50]=fe):fe=e[50];const ye=fe;let me;e[51]===Symbol.for("react.memo_cache_sentinel")?(me=R=>{_(R),R||C(null)},e[51]=me):me=e[51],D=me;let pe;e[52]!==t||e[53]!==c?(pe=async()=>{try{await t.handler(),_(!1)}catch{qe.error(c("subscription.checkout.error"))}},e[52]=t,e[53]=c,e[54]=pe):pe=e[54],T=pe;let he;e[55]!==m||e[56]!==x||e[57]!==o||e[58]!==j?(he=()=>{j(De.EnterpriseContactUsClicked,{source:o??x??"unknown"}),m?.()},e[55]=m,e[56]=x,e[57]=o,e[58]=j,e[59]=he):he=e[59];const Be=he;let be;e[60]!==t.state.label||e[61]!==g||e[62]!==s.id||e[63]!==c?(be=()=>{switch(t.state.label){case"unauthenticated":return c(`subscription.plans.${s.id}.unauthenticatedAction`);case"upgrade":return c(g?"subscription.modal.actions.upgrade":"subscription.modal.actions.upgradeCredits");default:return c(`subscription.modal.actions.${t.state.label}`)}},e[60]=t.state.label,e[61]=g,e[62]=s.id,e[63]=c,e[64]=be):be=e[64];const Ne=be;let xe;e[65]!==t.disabled||e[66]!==t.state.label||e[67]!==Ne||e[68]!==ye||e[69]!==s.id||e[70]!==c?(xe=R=>l.jsx(yt,{actionCopy:Ne(),canManageBilling:R,contactOwnerCopy:c("subscription.modal.actions.contactOwner"),disabled:t.disabled,isCurrent:t.state.label==="current",isHighlighted:s.id===te,onClick:ye,testId:`plan-card-cta-button-${s.id}`}),e[65]=t.disabled,e[66]=t.state.label,e[67]=Ne,e[68]=ye,e[69]=s.id,e[70]=c,e[71]=xe):xe=e[71];const ne=xe;let ge;e[72]!==P||e[73]!==b||e[74]!==ne?(ge=()=>P!==void 0?ne(P):b?l.jsx(et,{entity:"workspace",permissions:["manage_billing"],render:ne}):ne(!0),e[72]=P,e[73]=b,e[74]=ne,e[75]=ge):ge=e[75];const Me=ge;O=F,M=n,J=i,W=s.id===te?"highlighted":"default",q=`plan-card-${s.id}`;const ve=`subscription.plans.${s.id}.label`;let ee;e[76]!==c||e[77]!==ve?(ee=c(ve),e[76]=c,e[77]=ve,e[78]=ee):ee=e[78],e[79]!==ee?(G=l.jsx(F.Header,{children:ee}),e[79]=ee,e[80]=G):G=e[80],E=F.Actions,e[81]!==v.currency||e[82]!==v.interval||e[83]!==v.value||e[84]!==u?(L=l.jsx(F.Price,{value:v.value,showInterval:u,interval:v.interval,currency:v.currency}),e[81]=v.currency,e[82]=v.interval,e[83]=v.value,e[84]=u,e[85]=L):L=e[85],A=F.UnderPriceBox,e[86]!==ce?(I=ce&&l.jsx(F.Description,{children:ce}),e[86]=ce,e[87]=I):I=e[87],B=(se.length>1||Ee)&&l.jsx(St,{variant:s.id===te?"highlighted":"default",fillSelection:!g,value:a.aiPools[s.id],onValueChange:d,options:se.map(R=>({value:{type:R.mainAiPoolType,maxAmount:R.mainAiPoolMaxAmount},label:c(`subscription.credits.pools.${R.mainAiPoolType}.description`,{max:$e(R.mainAiPoolMaxAmount),defaultValue:""})})),testId:`plan-card-pool-select-${s.id}`,actionOption:Ee?{label:l.jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[l.jsx(je,{variant:"body2",as:"span",children:c("subscription.talkToSales.label")}),l.jsx(je,{variant:"body2",className:"font-medium",as:"span",children:c("subscription.talkToSales.action")})]}),onSelect:Be,testId:`plan-card-talk-to-sales-${s.id}`}:void 0}),H=Me()}e[0]=t,e[1]=P,e[2]=n,e[3]=b,e[4]=y,e[5]=g,e[6]=f,e[7]=d,e[8]=m,e[9]=s,e[10]=i,e[11]=a,e[12]=u,e[13]=x,e[14]=c,e[15]=o,e[16]=j,e[17]=A,e[18]=E,e[19]=O,e[20]=T,e[21]=D,e[22]=v,e[23]=H,e[24]=k,e[25]=I,e[26]=B,e[27]=L,e[28]=M,e[29]=J,e[30]=W,e[31]=q,e[32]=G}else A=e[17],E=e[18],O=e[19],T=e[20],D=e[21],v=e[22],H=e[23],k=e[24],I=e[25],B=e[26],L=e[27],M=e[28],J=e[29],W=e[30],q=e[31],G=e[32];if(k!==Symbol.for("react.early_return_sentinel"))return k;let Y;e[88]!==A||e[89]!==H||e[90]!==I||e[91]!==B?(Y=l.jsxs(A,{children:[I,B,H]}),e[88]=A,e[89]=H,e[90]=I,e[91]=B,e[92]=Y):Y=e[92];let z;e[93]!==E||e[94]!==Y||e[95]!==L?(z=l.jsxs(E,{children:[L,Y]}),e[93]=E,e[94]=Y,e[95]=L,e[96]=z):z=e[96];let ie;e[97]===Symbol.for("react.memo_cache_sentinel")?(ie=l.jsx(F.Separator,{}),e[97]=ie):ie=e[97];let Q;e[98]!==s.id||e[99]!==x||e[100]!==c?(Q=s.id===te||s.id===We?l.jsx(jt,{planId:s.id,source:x}):l.jsx(F.Features,{title:c(`subscription.plans.${s.id}.cardFeaturesTitle`),children:Ct.map(se=>l.jsx(F.Feature,{children:c(`subscription.plans.${s.id}.cardFeatures.${se}`)},se))}),e[98]=s.id,e[99]=x,e[100]=c,e[101]=Q):Q=e[101];let X;e[102]!==O||e[103]!==z||e[104]!==Q||e[105]!==M||e[106]!==J||e[107]!==W||e[108]!==q||e[109]!==G?(X=l.jsxs(O,{className:M,ref:J,variant:W,"data-testid":q,children:[G,z,ie,Q]}),e[102]=O,e[103]=z,e[104]=Q,e[105]=M,e[106]=J,e[107]=W,e[108]=q,e[109]=G,e[110]=X):X=e[110];let Z;e[111]!==t||e[112]!==S||e[113]!==w||e[114]!==D||e[115]!==N||e[116]!==s||e[117]!==h||e[118]!==v?(Z=w==="new"&&l.jsx(tt,{isOpen:N,onOpenChange:D,plan:s,currentMainAiPoolMaxAmount:S,selectedPrice:v,action:t,scheduledChangeDate:h}),e[111]=t,e[112]=S,e[113]=w,e[114]=D,e[115]=N,e[116]=s,e[117]=h,e[118]=v,e[119]=Z):Z=e[119];let K;e[120]!==t||e[121]!==S||e[122]!==w||e[123]!==T||e[124]!==D||e[125]!==N||e[126]!==s||e[127]!==h||e[128]!==v?
1(K=w==="legacy"&&l.jsx(st,{isOpen:N,onOpenChange:D,plan:s,currentMainAiPoolMaxAmount:S,selectedPrice:v,onConfirm:T,action:t,scheduledChangeDate:h}),e[120]=t,e[121]=S,e[122]=w,e[123]=T,e[124]=D,e[125]=N,e[126]=s,e[127]=h,e[128]=v,e[129]=K):K=e[129];let ae;return e[130]!==X||e[131]!==Z||e[132]!==K?(ae=l.jsxs(l.Fragment,{children:[X,Z,K]}),e[130]=X,e[131]=Z,e[132]=K,e[133]=ae):ae=e[133],ae}function vt(r,e){return r.mainAiPoolMaxAmount-e.mainAiPoolMaxAmount}function U(r){const e=$.c(10);let t,s,n;e[0]!==r?({children:t,className:s,...n}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=n):(t=e[1],s=e[2],n=e[3]);let i;e[4]!==s?(i=V("flex flex-col gap-2 justify-center",s),e[4]=s,e[5]=i):i=e[5];let a;return e[6]!==t||e[7]!==n||e[8]!==i?(a=l.jsx("div",{className:i,...n,children:t}),e[6]=t,e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function wt(r){const e=$.c(10);let t,s,n;e[0]!==r?({children:t,className:s,...n}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=n):(t=e[1],s=e[2],n=e[3]);let i;e[4]!==s?(i=V("font-medium text-foreground",s),e[4]=s,e[5]=i):i=e[5];let a;return e[6]!==t||e[7]!==n||e[8]!==i?(a=l.jsx(je,{variant:"body1",className:i,...n,children:t}),e[6]=t,e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function Tt(r){const e=$.c(10);let t,s,n;e[0]!==r?({children:t,className:s,...n}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=n):(t=e[1],s=e[2],n=e[3]);let i;e[4]!==s?(i=V("text-muted-foreground",s),e[4]=s,e[5]=i):i=e[5];let a;return e[6]!==t||e[7]!==n||e[8]!==i?(a=l.jsx(je,{variant:"body2",className:i,...n,children:t}),e[6]=t,e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function _t(r){const e=$.c(10);let t,s,n;e[0]!==r?({children:t,className:s,...n}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=n):(t=e[1],s=e[2],n=e[3]);let i;e[4]!==s?(i=V("mt-1",s),e[4]=s,e[5]=i):i=e[5];let a;return e[6]!==t||e[7]!==n||e[8]!==i?(a=l.jsx("div",{className:i,...n,children:t}),e[6]=t,e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function Et(r){const e=$.c(7),{className:t}=r;let s;e[0]!==t?(s=V("flex flex-col gap-3 justify-center",t),e[0]=t,e[1]=s):s=e[1];let n,i,a;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(Pe,{className:"h-6 w-48"}),i=l.jsx(Pe,{className:"h-4 w-64"}),a=l.jsx(Pe,{className:"h-8 w-36"}),e[2]=n,e[3]=i,e[4]=a):(n=e[2],i=e[3],a=e[4]);let d;return e[5]!==s?(d=l.jsxs("div",{className:s,children:[n,i,a]}),e[5]=s,e[6]=d):d=e[6],d}U.Title=wt;U.Subtitle=Tt;U.Actions=_t;U.Skeleton=Et;function Dt(r){const e=$.c(44),{workspacePlan:t,actionButton:s}=r,{t:n}=le("common"),{data:i}=ut();let a;e[0]!==i||e[1]!==t.priceId?(a=i?.flatMap(Lt).find(y=>y.id===t.priceId),e[0]=i,e[1]=t.priceId,e[2]=a):a=e[2];const d=a;let m;e[3]!==d||e[4]!==n||e[5]!==t.isFree?(m=!t.isFree&&d?n(`subscription.modal.price.period.${d.interval}.label`):null,e[3]=d,e[4]=n,e[5]=t.isFree,e[6]=m):m=e[6];const o=m;let f,p,u,h,b,g,P;if(e[7]!==o||e[8]!==n||e[9]!==t.id||e[10]!==t.mainAiPool||e[11]!==t.scheduledChange){const y=t?.mainAiPool?.nextResetAt?Te(t.mainAiPool.nextResetAt):null,N=t?.scheduledChange?Te(t.scheduledChange.effectiveDate):null,_=y&&t?.mainAiPool?.maxAmount?n(`subscription.credits.pools.${t?.mainAiPool?.type}.counterWithOutMax`,{value:$e(t.mainAiPool.maxAmount)}):null;u=y&&!N?n(`subscription.credits.pools.${t?.mainAiPool?.type}.resetOn`,{date:y}):null,p=U,g="flex-1 sm:px-3.5 px-2";const w=`subscription.plans.${t?.id}.bannerTitle`;let C;e[19]!==n||e[20]!==w?(C=n(w),e[19]=n,e[20]=w,e[21]=C):C=e[21];let A;e[22]!==o?(A=o&&l.jsx(mt,{variant:"secondary",className:"text-xs font-normal",children:o}),e[22]=o,e[23]=A):A=e[23],e[24]!==C||e[25]!==A?(P=l.jsxs(U.Title,{className:"flex items-center gap-2",children:[C,A]}),e[24]=C,e[25]=A,e[26]=P):P=e[26],f=U.Subtitle,e[27]!==_?(h=_&&l.jsx("span",{children:_}),e[27]=_,e[28]=h):h=e[28],b=!!N&&l.jsxs(l.Fragment,{children:[l.jsx("span",{children:" · "}),l.jsx("span",{className:"text-destructive",children:n("subscription.banner.endsOn",{date:N})})]}),e[7]=o,e[8]=n,e[9]=t.id,e[10]=t.mainAiPool,e[11]=t.scheduledChange,e[12]=f,e[13]=p,e[14]=u,e[15]=h,e[16]=b,e[17]=g,e[18]=P}else f=e[12],p=e[13],u=e[14],h=e[15],b=e[16],g=e[17],P=e[18];let x;e[29]!==u?(x=u&&l.jsxs(l.Fragment,{children:[l.jsx("span",{children:" · "}),l.jsx("span",{children:u})]}),e[29]=u,e[30]=x):x=e[30];let S;e[31]!==f||e[32]!==h||e[33]!==b||e[34]!==x?(S=l.jsxs(f,{children:[h,b,x]}),e[31]=f,e[32]=h,e[33]=b,e[34]=x,e[35]=S):S=e[35];let c;e[36]!==s?(c=s&&l.jsx(U.Actions,{children:s}),e[36]=s,e[37]=c):c=e[37];let j;return e[38]!==p||e[39]!==g||e[40]!==P||e[41]!==S||e[42]!==c?(j=l.jsxs(p,{className:g,children:[P,S,c]}),e[38]=p,e[39]=g,e[40]=P,e[41]=S,e[42]=c,e[43]=j):j=e[43],j}function Lt(r){return r.prices}const Ot=r=>{const e=$.c(13),{proPlanCardRef:t}=r,{isAuthenticated:s}=_e(),{data:n,isLoading:i}=ke(),{t:a}=le("common");
1if(!s)return null;let d;e[0]!==i||e[1]!==t||e[2]!==a||e[3]!==n?(d=i?l.jsx(U.Skeleton,{className:"flex-1 sm:px-3.5 px-2"}):n&&l.jsx(Dt,{workspacePlan:n,actionButton:n.isFree?l.jsxs(Ye,{size:"sm",variant:"promotional",onClick:()=>{t.current?.scrollIntoView({behavior:"smooth",block:"center"})},children:[l.jsx(pt,{}),a("subscription.modal.triggers.upgrade")]}):null}),e[0]=i,e[1]=t,e[2]=a,e[3]=n,e[4]=d):d=e[4];let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx(ft,{hideActions:!0,className:"flex-1"}),e[5]=m):m=e[5];let o;e[6]!==d?(o=l.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 gap-y-4 bg-background p-2 rounded-xl text-start",children:[d,m]}),e[6]=d,e[7]=o):o=e[7];let f;e[8]!==n?(f=n?.scheduledChange&&l.jsx(it,{scheduledChange:n.scheduledChange,currentPlan:n}),e[8]=n,e[9]=f):f=e[9];let p;return e[10]!==o||e[11]!==f?(p=l.jsxs("div",{className:"my-7 flex flex-col gap-4 max-w-3xl mx-auto border border-border rounded-xl",children:[o,f]}),e[10]=o,e[11]=f,e[12]=p):p=e[12],p};function Jt(r){const e=$.c(15),{isLoading:t,source:s,selectedPlan:n,proPlanCardRef:i,onBillingIntervalChange:a,renderTitle:d,renderDescription:m,showCreditsBanner:o,titleOverride:f,subtitleSlot:p,yearlyDiscount:u}=r,{isAuthenticated:h}=_e();let b;e[0]!==i?(b=l.jsx(Ot,{proPlanCardRef:i}),e[0]=i,e[1]=b):b=e[1];let g;return e[2]!==h||e[3]!==t||e[4]!==a||e[5]!==m||e[6]!==d||e[7]!==n||e[8]!==o||e[9]!==s||e[10]!==p||e[11]!==b||e[12]!==f||e[13]!==u?(g=l.jsx(It,{source:s,isAuthenticated:h,selectedPlan:n,showCreditsBanner:o,onBillingIntervalChange:a,renderTitle:d,renderDescription:m,creditsBannerSlot:b,isLoading:t,titleOverride:f,subtitleSlot:p,yearlyDiscount:u}),e[2]=h,e[3]=t,e[4]=a,e[5]=m,e[6]=d,e[7]=n,e[8]=o,e[9]=s,e[10]=p,e[11]=b,e[12]=f,e[13]=u,e[14]=g):g=e[14],g}function It(r){const e=$.c(49),{showCreditsBanner:t,source:s,isAuthenticated:n,selectedPlan:i,onBillingIntervalChange:a,renderTitle:d,renderDescription:m,creditsBannerSlot:o,isLoading:f,titleOverride:p,subtitleSlot:u,yearlyDiscount:h}=r,{t:b}=le("common");let g;e[0]!==s?(g=s?ze.has(s):!1,e[0]=s,e[1]=g):g=e[1];const P=g;let x;e[2]!==s?(x=s?Qe.has(s):!1,e[2]=s,e[3]=x):x=e[3];const S=x;let c;e[4]!==s?(c=s?Xe.has(s):!1,e[4]=s,e[5]=c):c=e[5];const j=c;let y;e[6]!==s?(y=s?Fe.has(s):!1,e[6]=s,e[7]=y):y=e[7];const N=y;let _;e[8]!==n||e[9]!==S||e[10]!==P||e[11]!==N||e[12]!==j?(_=()=>{switch(!0){case j:return"subscription.modal.title.publishEntitlement";case N:return"subscription.modal.title.projectLimit";case P:return"subscription.modal.title.customDomain";case S:return"subscription.modal.title.creditsBlocked";case n:return"subscription.modal.title.authenticated";default:return"subscription.modal.title.unauthenticated"}},e[8]=n,e[9]=S,e[10]=P,e[11]=N,e[12]=j,e[13]=_):_=e[13];const w=_;let C;e[14]!==n||e[15]!==S||e[16]!==P||e[17]!==N||e[18]!==j?(C=()=>{switch(!0){case j:return"subscription.modal.subtitle.publishEntitlement";case N:return"subscription.modal.subtitle.projectLimit";case P:return"subscription.modal.subtitle.customDomain";case S:return"subscription.modal.subtitle.creditsBlocked";case n:return"subscription.modal.subtitle.authenticated";default:return"subscription.modal.subtitle.unauthenticated"}},e[14]=n,e[15]=S,e[16]=P,e[17]=N,e[18]=j,e[19]=C):C=e[19];const A=C;let E;e[20]!==w||e[21]!==b||e[22]!==p?(E=p?l.jsx("span",{className:"font-pricing-title",children:p}):b(w()),e[20]=w,e[21]=b,e[22]=p,e[23]=E):E=e[23];const O=E;let T,D;if(e[24]!==A||e[25]!==f||e[26]!==m||e[27]!==d||e[28]!==t||e[29]!==u||e[30]!==b||e[31]!==O){const L=b(A()),M=!t;e[34]!==t||e[35]!==M?(T=V({"space-y-10 mb-10":t,"space-y-5 mb-5":M}),e[34]=t,e[35]=M,e[36]=T):T=e[36],D=f?l.jsx(Pe,{className:"h-6 w-48 mx-auto"}):l.jsxs("div",{children:[d(O),u||m(L)]}),e[24]=A,e[25]=f,e[26]=m,e[27]=d,e[28]=t,e[29]=u,e[30]=b,e[31]=O,e[32]=T,e[33]=D}else T=e[32],D=e[33];const v=!N&&t&&o,H=i.interval;let k;e[37]!==b||e[38]!==h?(k=Ze.map(L=>l.jsx(Le.Item,{value:L,discount:h&&L===Ke?h:b(`subscription.modal.price.period.${L}.discount`),"data-testid":`plans-modal-interval-${L}-button`,children:b(`subscription.modal.price.period.${L}.label`)},L)),e[37]=b,e[38]=h,e[39]=k):k=e[39];let I;e[40]!==a||e[41]!==i.interval||e[42]!==k?(I=l.jsx(Le,{value:H,onValueChange:a,children:k}),e[40]=a,e[41]=i.interval,e[42]=k,e[43]=I):I=e[43];let B;return e[44]!==v||e[45]!==I||e[46]!==T||e[47]!==D?(B=l.jsxs("div",{className:T,children:[D,v,I]}),e[44]=v,e[45]=I,e[46]=T,e[47]=D,e[48]=B):B=e[48],B}export{St as C,Jt as P,Nt as a,jt as b,Gt as c};

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.