PageSourceSearch

https://www.taus.net/_nuxt/useStartCheckout.71821d85.js

js taus.net collected 2026-10-01 10:24:41 UTC 1,189 bytes, 1 lines download raw bytes

1import{G as A,v as g,x as h,n as m}from"./entry.03a615c1.js";import{u as D}from"./useCheckout.50f8a881.js";import{u as S}from"./useApiCredentials.2c423ccd.js";const q=30*24*60*60*1e3;function M(){const r=A(),{create:v,checkout:u,errors:i}=D(),{user:p}=g(),s=h(!1),o=h(null);async function k(c,l={}){var f;const t=typeof m(c)=="string"?m(c):"";if(!t){o.value="Invalid product.";return}o.value=null,s.value=!0;try{if(l.freeTrial&&p.value)try{const a=await S().list(),d=Array.isArray(a)?a.flatMap(e=>(e==null?void 0:e.keys)??[]):[];if(d.length>0){const e=d.slice().sort((w,T)=>new Date(T.createdAt).getTime()-new Date(w.createdAt).getTime())[0],y=Date.now()-new Date(e.createdAt).getTime()<=q;await r.push({name:"checkout-error",query:{reason:"trial-redeemed",active:y?"1":"0"}});return}}catch(a){console.error(a)}if(u.value={},i.value=void 0,await v(t),i.value||!((f=u.value)!=null&&f.uid)){await r.push({name:"checkout-error",query:{sku:t}});return}const n=[`${u.value.uid}`];l.freeTrial&&n.push("freeTrial"),await r.push({name:"checkout-uid",params:{uid:n}})}catch{await r.push({name:"checkout-error",query:{sku:t}})}finally{s.value=!1}}return{start:k,isLoading:s,error:o}}export{M 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.