PageSourceSearch

https://primeblocks.dev/_nuxt/D-E92RXZ.js

js primeblocks.dev collected 2026-10-09 17:39:25 UTC 2,344 bytes, 1 lines download raw bytes

1import{y as T,Z as z,i as B,a as t,b as a,d as s,q as F,j as _,f as k,F as q,r as D,m,k as c,o as n,t as p,s as C}from"./3vjVo3OQ.js";import M from"./lM2jK-x7.js";import"./BH-GrpCW.js";const S={year:"numeric",month:"long",day:"numeric"},E=new Intl.DateTimeFormat("en-US",S);function H(y){return E.format(new Date(y))}const I={class:"vv2W1R"},L={key:0,class:"AzbnBs bTHJq9 mem9MC KwOI8S VqYq56"},V={key:1},$={key:1},A={key:0},N={key:1},Q={class:"AzbnBs bTHJq9 rWnyz3"},J={class:"nDMlT4"},K={class:"teQ3aF"},j={__name:"billing",setup(y){const v=T(),g=z(),u=c([]),l=c(null),f=c(!0),d=c(null);B(async()=>{await h()});async function b(o){d.value=o.license_key;const{data:e,error:i}=await $fetch("/api/billing/invoice",{query:{user_id:v.value.user.id,txn_id:o.license_key}});d.value=null,e!=null&&e.url?window.open(e.url,"blank","noopener,noreferrer"):g.add({severity:"error",summary:"Error",detail:(i==null?void 0:i.message)||"Failed to load invoice",life:5e3})}async function h(){const{data:o,error:e}=await $fetch("/api/billing/list",{query:{user_id:v.value.user.id}});f.value=!1,l.value=null,e?l.value=e.message:u.value=o}return(o,e)=>{const i=M,w=C;return n(),t("div",I,[a(f)?(n(),t("section",L,[...e[0]||(e[0]=[s("i",{class:"pi pi-spin pi-spinner TyFBlK"},null,-1),s("span",null,"Loading payments...",-1)])])):(n(),t("section",V,[a(l)?(n(),F(i,{key:0,severity:"error"},{default:_(()=>[m(p(a(l)),1)]),_:1})):(n(),t("div",$,[a(u).length===0?(n(),t("div",A,[k(i,{severity:"secondary"},{default:_(()=>[...e[1]||(e[1]=[m("There are no payments linked to your account.",-1)])]),_:1})])):(n(),t("div",N,[e[2]||(e[2]=s("div",{class:"fsD1z5 TsgzvO xprRnz FMdfae"},"Payment History",-1)),s("div",Q,[(n(!0),t(q,null,D(a(u),r=>(n(),t("div",{key:r.id,class:"AzbnBs EXkrCu mem9MC"},[s("div",null,[s("div",J,p(r.tier)+" License",1),s("span",K,p(("formatDate"in o?o.formatDate:a(H))(r.created_at)),1)]),s("div",null,[k(w,{type:"button",label:"Invoice",icon:"pi pi-download",severity:"secondary",size:"small",loading:a(d)===r.license_key,onClick:O=>b(r)},null,8,["loading","onClick"])])]))),128))])])),e[3]||(e[3]=s("p",{class:"teQ3aF UyyQHM"},[m("Should you require assistance regarding billing, our support team is available at "),s("a",{href:"mailto:[email protected]",class:"FzEouC"},"[email protected].")],-1))]))]))])}}};export{j as default};

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.