PageSourceSearch

https://www.gaia.com/assets/2.266.7/index.Cdd8JzQe.js

js gaia.com collected 2026-09-24 08:38:44 UTC 9,627 bytes, 2 lines download raw bytes

1import{c as e,a9 as a,aL as t,a as c,U as l,at as n,aM as i,r as m,F as o,ar as s,R as r,ae as g,aN as u,P as d,i as _}from"./index.Dcq7Tn10.js";import{c as v,d as p,Z as y,b1 as E,b2 as N,aj as b,ai as h,U as I}from"./main.BpO2XlP_.js";import"./staticTextEn.UPMVf61n.js";import"./staticTextEs.DJF2PufX.js";import"./staticTextDe.DGaNPAXM.js";import"./staticTextFr.CRVsglAw.js";function f(e){const{staticText:d,location:_,history:v,auth:p,user:I,userAccount:f,page:x}=e,$=a(I.getIn(["data","language"])),{invoiceId:A}=t(_.search),w=f.get("billingInvoiceProcessing"),D=f.getIn(["details","data","billing","invoice"],c.Map()),j=D.getIn(["data","gift"],void 0),R=D.size>1&&!D.get("success")||D.get("error"),M=!w&&D.size>=1,T=f.getIn(["details","data","billing","subscriptions","currencyIso"])||l,Y="MM/DD/YYYY",q=x.get("locale"),F=n(D.getIn(["data","invoiceDate"])),L=i(F,q,Y),k=n(D.getIn(["data","invoiceDueDate"])),P=i(k,q,Y);m.useEffect(()=>{if(!o(p)||!A){const e=I.getIn(["data","language"]);y({history:v,url:s,auth:p,language:e})}},[]);return o(p)&&A?r.createElement("div",{className:"my-account-invoice-page"},r.createElement("header",{className:"my-account-invoice-page__header"},r.createElement("div",{className:"my-account-invoice-page__header-left"},r.createElement(E,{className:["my-account-invoice-page__logo"],type:N}),r.createElement("div",{className:"my-account-invoice-page__address"},r.createElement("div",{className:"my-account-invoice-page__address-item my-account-invoice-page__address-item--strong"},"Gaia, Inc."),r.createElement("div",{className:"my-account-invoice-page__address-item"},"833 W. South Boulder Road Bldg. G"),r.createElement("div",{className:"my-account-invoice-page__address-item"},"Louisville, CO 80027"))),!R&&M?r.createElement("div",{className:"my-account-invoice-page__header-right"},M?r.createElement("div",{className:"my-account-invoice-page__details"},r.createElement("div",{className:"my-account-invoice-page__detail-item"},r.createElement("span",{className:"my-account-invoice-page__detail-label"},`${d.getIn(["data","email"])}: `),r.createElement("span",{className:"my-account-invoice-page__detail-value"},D.getIn(["data","userEmail"]))),r.createElement("div",{className:"my-account-invoice-page__detail-item"},r.createElement("span",{className:"my-account-invoice-page__detail-label"},`${d.getIn(["data","accountNumber"])}: `),r.createElement("span",{className:"my-account-invoice-page__detail-value"},D.getIn(["data","accountNumber"]))),r.createElement("div",{className:"my-account-invoice-page__detail-item"},r.createElement("span",{className:"my-account-invoice-page__detail-label"},`${d.getIn(["data","invoiceNumber"])}: `),r.createElement("span",{className:"my-account-invoice-page__detail-value"},D.getIn(["data","invoiceNumber"]))),r.createElement("div",{className:"my-account-invoice-page__detail-item"},r.createElement("span",{className:"my-account-invoice-page__detail-label"},`${d.getIn(["data","invoiceDate"])}: `),r.createElement("span",{className:"my-account-invoice-page__detail-value"},L)),r.createElement("div",{className:"my-account-invoice-page__detail-item"},r.createElement("span",{className:"my-account-invoice-page__detail-label"},`${d.getIn(["data","dueDate"])}: `),r.createElement("span",{className:"my-account-invoice-page__detail-value"},P))):null):null),M||R?null:r.createElement(r.Fragment,null,r.createElement(r.Fragment,null,r.createElement("div",{className:"my-account-invoice-page__placeholder-row"}),r.createElement("div",{className:"my-account-invoice-page__placeholder-row"}),r.createElement("div",{className:"my-account-invoice-page__placeholder-row"}),r.createElement("div",{className:"my-account-invoice-page__placeholder-row"}))),!R&&M?r.createElement(r.Fragment,null,r.createElement("div",{className:"my-account-invoice-page__table-container"},M?r.createElement("table",{className:"my-account-invoice-page__table"},r.createElement("thead",{className:"my-account-invoice-page__table-header"},r.createElement("tr",null,r.createElement("th",{className:"my-account-invoice-page__table-header-cell"},d.getIn(["data","description"])),r.createElement("th",{className:"my-account-invoice-page__table-header-cell my-account-invoice-page__table-header-cell--right-align"},d.getIn(["data","subtotal"])),r.createElement("th",{className:"my-account-invoice-page__table-header-cell my-account-invoice-page__table-header-cell--right-align"},d.getIn(["data","tax"])),r.createElement("th",{className:"my-account-invoice-page__table-header-cell my-account-invoice-page__table-header-cell--right-align"},d.getIn(["data","totalAmount"])))),r.createElement("tbody",{className:"my-account-invoice-page__table-body"}
1,D.getIn(["data","items"],c.List()).map((e,a)=>{const t=a;return r.createElement("tr",{className:"my-account-invoice-page__table-row",key:`row-${t}`},r.createElement("td",{className:"my-account-invoice-page__table-cell"},e.get("chargeName")),r.createElement("td",{className:"my-account-invoice-page__table-cell my-account-invoice-page__table-cell--right-align"},g(T,e.get("amount",0),!1,null,$)),r.createElement("td",{className:"my-account-invoice-page__table-cell my-account-invoice-page__table-cell--right-align"},g(T,e.get("taxAmount",0),!1,null,$)),r.createElement("td",{className:"my-account-invoice-page__table-cell my-account-invoice-page__table-cell--right-align"},g(T,e.get("totalAmount",0),!1,null,$)))}))):null),r.createElement("div",{className:"my-account-invoice-page__mobile-table-container"},M?r.createElement("div",{className:"my-account-invoice-page__mobile-table"},D.getIn(["data","items"],c.List()).map((e,a)=>{const t=a;return r.createElement("div",{className:"my-account-invoice-page__mobile-row",key:`row-${t}`},r.createElement("div",{className:"my-account-invoice-page__mobile-label"},d.getIn(["data","description"])),r.createElement("div",{className:"my-account-invoice-page__mobile-value"},e.get("chargeName")),r.createElement("div",{className:"my-account-invoice-page__mobile-label"},d.getIn(["data","subtotal"])),r.createElement("div",{className:"my-account-invoice-page__mobile-value"},g(T,e.get("amount",0),!1,null,$)),r.createElement("div",{className:"my-account-invoice-page__mobile-label"},d.getIn(["data","tax"])),r.createElement("div",{className:"my-account-invoice-page__mobile-value"},g(T,e.get("taxAmount",0),!1,null,$)),r.createElement("div",{className:"my-account-invoice-page__mobile-label"},d.getIn(["data","totalAmount"])),r.createElement("div",{className:"my-account-invoice-page__mobile-value"},g(T,e.get("totalAmount",0),!1,null,$)))})):null),j?r.createElement("div",{className:"my-account-invoice-page__gift-container"},(()=>{const e=u(`/gift/redeem?token=${j.get("token")}`),a=j.get("recipientEmail"),t=i(new Date(j.get("expiresAt")),q,"MM/DD/YYYY"),c=`mailto:${a}}`;return r.createElement(r.Fragment,null,r.createElement("div",{className:"my-account-invoice-page__gift-item--strong"},d.getIn(["data","giftMembership"])),r.createElement("div",{className:"my-account-invoice-page__gift-item"},d.getIn(["data","recipientName"]),`${j.get("recipientFirstName")} ${j.get("recipientLastName")}`),a?r.createElement("div",{className:"my-account-invoice-page__gift-item"},d.getIn(["data","recipientEmail"]),r.createElement("a",{target:b,href:c},a)):null,r.createElement("div",{className:"my-account-invoice-page__gift-item"},d.getIn(["data","expirationDate"]),t),r.createElement("div",{className:"my-account-invoice-page__gift-item"},d.getIn(["data","giftRedeemUrl"]),r.createElement(h,{className:"my-account-invoice-page__gift-url",target:b,directLink:!0,to:e},e)))})()):null,r.createElement("footer",{className:"my-account-invoice-page__footer"},M?r.createElement("div",{className:"my-account-invoice-page__total-details"},r.createElement("table",{className:"my-account-invoice-page__total-details-table"},r.createElement("tbody",{className:"my-account-invoice-page__total-details-body"},r.createElement("tr",{className:"my-account-invoice-page__total-details-row"},r.createElement("td",{className:"my-account-invoice-page__total-details-cell my-account-invoice-page__total-details-cell--label"},`${d.getIn(["data","amount"])}: `),r.createElement("td",{className:"my-account-invoice-page__total-details-cell"},g(T,D.getIn(["data","subtotal"]),!0,null,$))),r.createElement("tr",{className:"my-account-invoice-page__total-details-row"},r.createElement("td",{className:"my-account-invoice-page__total-details-cell my-account-invoice-page__total-details-cell--label"},`${d.getIn(["data","totalTax"])}: `),r.createElement("td",{className:"my-account-invoice-page__total-details-cell"},g(T,D.getIn(["data","tax"]),!0,null,$))),r.createElement("tr",{className:"my-account-invoice-page__total-details-row"},r.createElement("td",{className:"my-account-invoice-page__total-details-cell my-account-invoice-page__total-details-cell--label"},`${d.getIn(["data","total"])}: `),r.createElement("td",{className:"my-account-invoice-page__total-details-cell"},g(T,D.getIn(["data","totalAmount"]),!0,null,$)))))):null)):null,R?r.createElement("div",{className:"my-account-invoice-page__error"},d.getIn(["data","errorMessage"])):null):null}f.propTypes={location:d.object.isRequired,history:d.object.isRequired,auth:I.map.isRequired,user:I.map.isRequired,userAccount:I.map.isRequired,page:I.map.isRequired,staticText:I.map.isRequired};const x=v(e(e=>({auth:e.auth,user:e.user,userAccount:e.userAccount,page:e.page})),p({storeKey:"myAccountInvoicePage"}))(f),$=_(Object.freeze(Object.defineProperty({__proto__:null,default:x},Symbol.toStringTag,{value:"Module"})));export{$ as default};
2//# sourceMappingURL=index.Cdd8JzQe.js.map

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.