1import{_ as b}from"./Qcj2bOxd.js";import{t as a}from"./BEruuSX1.js";import{u as y}from"./Cp1O2d5O.js";import{_ as x,n as w,o as I,i as n,e as l,f as t,h as S,F as m,k as v,j as D,r as f,b as i,t as e}from"./DyKsjnBy.js";import{u as M}from"./DEEgPfPc.js";import{u as R}from"./-UsgZxwp.js";const N={class:"container main-content pt-3"},k={key:0,class:"row justify-content-center"},B={class:"col-md-8 col-12"},j={class:"col-9"},A={class:"accordion",id:"billingReciept"},C={class:"accordion-item"},E={class:"accordion-header"},F=["data-bs-target","aria-controls"],P=["id"],T={class:"accordion-body font-size-12"},V={class:"row"},O={class:"col-12"},z={class:"row"},H={class:"offset-md-1 col-12 col-md-11 justify-content-end bottom-border-light"},L={class:"row"},U={class:"col-8"},$={class:"col-4 text-end"},q={class:"row"},G={class:"col-md-2 col-6 text-end"},J={class:"row"},K={class:"col-md-2 col-6 text-end"},Q={class:"row"},W={class:"col-md-2 col-6 text-end"},X={__name:"index",setup(Y){const d=f(void 0),r=f([]),{getPageMetaData:g,IDENTIFIERS:h}=y(),c=g(h.COMMON);return w({title:c.title,description:c.description,ogTitle:c.title,ogDescription:c.description}),I(async()=>{try{const o=(await M().getProfile()).customer;o.country=o.country.value?o.country.value:"United States",d.value=o;const s=await R().getStripeInvoices();r.value=s.invoices,console.log(r.value)}catch(u){console.log(u)}}),(u,o)=>(i(),n("div",N,[l(d)?(i(),n("div",k,[t("div",B,[S(b,{profile:l(d)},null,8,["profile"])]),t("div",j,[o[4]||(o[4]=t("h5",{class:"mb-3 mt-4 pb-3 a-border"},"Billing History",-1)),t("div",A,[(i(!0),n(m,null,v(l(r),(s,p)=>(i(),n("div",C,[t("h2",E,[t("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseIndex"+p,"aria-expanded":"true","aria-controls":"collapseIndex"+p}
1,e(s.period_start_date_f)+" to "+e(s.period_end_date_f),9,F)]),t("div",{id:"collapseIndex"+p,class:"accordion-collapse collapse hide","data-bs-parent":"#billingReciept"},[t("div",T,[t("div",V,[t("div",O,[t("p",null,[t("strong",null,"Receipt Number: "+e(s.invoice_id),1)])])]),t("div",z,[t("div",H,[o[0]||(o[0]=t("div",{class:"row"},[t("div",{class:"col-8"},[t("p",null,"Description")]),t("div",{class:"col-4 text-end"},[t("p",null,"Amount")])],-1)),(i(!0),n(m,null,v(s.lines.data,_=>(i(),n("div",L,[t("div",U,[t("p",null,e(_.description),1)]),t("div",$,[t("p",null,e(l(a)(_.amount/100)),1)])]))),256))])]),t("div",q,[o[1]||(o[1]=t("div",{class:"col-md-3 col-6 offset-md-7"},[t("p",null,[t("strong",null,"Total")])],-1)),t("div",G,[t("p",null,e(l(a)(s.total/100)),1)])]),t("div",J,[o[2]||(o[2]=t("div",{class:"col-md-3 col-6 offset-md-7"},[t("p",null,[t("strong",null,"Amount Due")])],-1)),t("div",K,[t("p",null,[t("strong",null,e(l(a)(s.amount_due/100)),1)])])]),t("div",Q,[o[3]||(o[3]=t("div",{class:"col-md-3 col-6 offset-md-7"},[t("p",null,[t("strong",null,"Amount Paid")])],-1)),t("div",W,[t("p",null,[t("strong",null,"("+e(l(a)(s.amount_paid/100))+")",1)])])])])],8,P)]))),256))])])])):D("",!0)]))}},nt=x(X,[["__scopeId","data-v-7abdc334"]]);export{nt 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.