PageSourceSearch

https://chesstv.com/_nuxt/fANk5kk8.js

js chesstv.com collected 2026-10-02 12:55:28 UTC 1,483 bytes, 1 lines download raw bytes

1import{s as r}from"./C8OjvWdH.js";const n=s=>s==null?void 0:s.replace(/ChessTV Starter/g,"ChessTV Pro").replace(/\bStarter\b/g,"ChessTV Pro").replace(/\bstarter\b/g,"ChessTV Pro").replace(/\bPro\b/g,"ChessTV Pro").replace(/ChessTV ChessTV Pro/g,"ChessTV Pro"),e=s=>{const t=(s==null?void 0:s.subscription)||(s==null?void 0:s.entitlement)||s;return!t||Object.keys(t).length===0?null:t},i=s=>({subscription:e(s),canCreateRooms:!0,upgradeMessage:n(s==null?void 0:s.upgradeMessage)}),a=s=>{const t=String((s==null?void 0:s.status)||(s==null?void 0:s.subscriptionStatus)||"FREE").toUpperCase();return["TRIALING","EXPIRED"].includes(t)?"FREE":t},o=s=>a(s)==="FREE"?"Free Tier":a(s)==="ACTIVE"?"ChessTV Pro":a(s).replaceAll("_"," ").toLowerCase().replace(/\b\w/g,t=>t.toUpperCase()),l=s=>{if(!s)return!1;const t=a(s);return!!(s.active||s.subscribed||t==="ACTIVE")},c=s=>(s==null?void 0:s.currentPeriodEnd)||(s==null?void 0:s.trialEndDate)||(s==null?void 0:s.trialExpirationDate)||(s==null?void 0:s.endDate)||"",u=()=>({getSubscription:async()=>{const s=await r("GET","/payments/subscription");return e(s)},getSubscriptionStatus:async()=>{const s=await r("GET","/payments/subscription");return i(s)},createCheckoutSession:async()=>await r("POST","/payments/create-checkout-session",{planType:"MONTHLY"}),cancelSubscription:async()=>await r("POST","/payments/cancel-subscription"),openBillingPortal:async()=>await r("POST","/payments/billing-portal")});export{o as a,c as b,a as g,l as i,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.