PageSourceSearch

https://biq.li/build/assets/get-billing-upgrade-cta-DuollNrZ.js

js biq.li collected 2026-09-24 09:52:01 UTC 2,008 bytes, 1 lines download raw bytes

1import{t as e}from"./jsx-runtime-t9VZZNb4.js";import{r as t}from"./progress-circle-7C9KEFkh.js";import{t as n}from"./helmet--pKtBm0u.js";var r=e();function i({children:e}){let{branding:{site_name:i}}=t();return(0,r.jsx)(n,{children:e?(0,r.jsxs)(`title`,{children:[e,` - `,i]}):void 0})}var a=`/dashboard/workspace/settings/billing`,o=`${a}/upgrade`,s=`${a}/change-plan`,c=`/pricing/change-plan`,l=new Set([`/pricing`,`/billing`,`/billing/change-plan`,c]);function u(e,t){return!!e?.subscriptions?.some(e=>m(e,t)&&h(e)&&e.cancelled&&e.on_grace_period)}function d(e,t){return!!e?.subscriptions?.some(e=>m(e,t)&&h(e)&&e.gateway_name===`none`)}function f(e,t){return!!e?.subscriptions?.some(e=>m(e,t)&&h(e)&&e.gateway_name!==`none`)}function p(e,t){return!!e?.subscriptions?.some(e=>m(e,t)&&h(e)&&e.gateway_name===`enterprise`)}function m(e,t){return!t||e.workspace_id===t}function h(e){return e.valid||e.active||e.on_grace_period||e.on_trial?!0:e.gateway_name===`none`?!e.ends_at||new Date(e.ends_at).getTime()>Date.now():!e.ends_at&&![`incomplete`,`incomplete_expired`,`canceled`,`cancelled`,`unpaid`].includes(e.gateway_status)}function g({isSubscribed:e,user:t,unsubscribedRoute:n=`/pricing`,unsubscribedLabel:r=`Upgrade`,subscribedRoute:i=s,subscribedLabel:c=`Change plan`,cancelledRoute:p=a,cancelledLabel:m=`Resume plan`,manualRoute:h=a,manualLabel:g=`Manage plan`,workspaceId:_=null}){let v=u(t,_),y=d(t,_),b=f(t,_),x=_?v||y||b:e,S=e=>!_||!l.has(e)?e:e===`/pricing`?o:e===`/billing/change-plan`||e===`/pricing/change-plan`?s:a;return x&&v?{route:S(p),label:m,hasCancelledSubscription:v,hasManualSubscription:y,hasPaidSubscription:b}:x&&y&&!b?{route:S(h),label:g,hasCancelledSubscription:v,hasManualSubscription:y,hasPaidSubscription:b}:x?{route:S(i),label:c,hasCancelledSubscription:v,hasManualSubscription:y,hasPaidSubscription:b}:{route:S(n),label:r,hasCancelledSubscription:v,hasManualSubscription:y,hasPaidSubscription:b}}export{g as a,d as c,o as i,f as l,a as n,u as o,s as r,p as s,c as t,i as u};

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.