PageSourceSearch

https://aida.tools/assets/index-DtjPn9oB.js

js aida.tools collected 2026-10-06 13:40:02 UTC 5,284 bytes, 1 lines download raw bytes

1import{ak as R,al as A,r as M,am as z,an as H,ao as S,j as t,ap as N,ar as _,as as U,k as W,u as E,v as L,R as y,e as j,f as a,B as i,b as f,g as r,t as w,L as F,T as x,Q as $}from"./index-C0o2MOEW.js";import{d as Q}from"./dom-to-image-more.min-DtPHh6tn.js";import{T as X}from"./index-BIA_9CQ-.js";import{I as q}from"./InfoIcon-DubzDBEv.js";import{A as G}from"./index-B4v506VQ.js";import"./index-Bv4DcuuI.js";import"./Select-DL3zxsFF.js";import"./Menu-DP3ssoIS.js";import"./Popover-CZYK76kv.js";import"./Checkbox-BqhjDbSR.js";import"./arrow-CxCYgg2J.js";import"./index-DsLpvD1t.js";import"./MenuItem-28hPmLiV.js";import"./usePublisherUtils-CObp_LBi.js";import"./ChevronRight-DJCZaWU7.js";import"./TextField-B6MC36LC.js";import"./LinearProgress-BlEz_E5t.js";import"./Skeleton-jc8ZcV_j.js";import"./ArrowBack-B2H6Z1xf.js";function J(l){return R("MuiTableContainer",l)}A("MuiTableContainer",["root"]);const K=["className","component"],O=l=>{const{classes:o}=l;return _({root:["root"]},J,o)},V=U("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(l,o)=>o.root})({width:"100%",overflowX:"auto"}),Y=M.forwardRef(function(o,h){const p=z({props:o,name:"MuiTableContainer"}),{className:T,component:d="div"}=p,u=H(p,K),m=S({},p,{component:d}),g=O(m);return t.jsx(V,S({ref:h,as:d,className:N(g.root,T),ownerState:m},u))}),Z=[{field:"date",headerName:"Date",width:150},{field:"fileName",headerName:"File Name",flex:1}],jt=()=>{const l=W(),o=E({returnData:!0}),{user:h,getAccessTokenSilently:p}=L(),[T,d]=y.useState(!1),[u,m]=y.useState([]),g=j(e=>e.StripePaymentMethod.data),c=j(e=>e.StripeBillingInfo.data),b=j(e=>a(e.StripeInvoices,"data.data",[])),C=async e=>{d(!0);const n=await p(),s=await $.post("https://api.aida.tools/payments/customer/portal-session",{flowDataType:e,userId:h?.sub,returnUrl:`${window.location.origin}/account-profile`},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`}});d(!1),s.data.data&&(window.location.href=s.data.data)},v=(e,n)=>{if(e.length===0){m([]);return}const s=e.map(D=>n.api.getRowParams(D).row);m(s)},P=e=>{const n=document.createElement("a");n.style.display="none",n.href=e.url,n.download=e.name,n.target="_blank",n.click(),n.remove()},B=()=>{u.forEach(e=>P(e))},k=()=>{const e=document.getElementById("invoice-table");e&&Q.toPng(e,{bgcolor:"#fff"}).then(n=>{const s=document.createElement("a");s.download="aida-invoices.png",s.href=n,s.click()}).catch(n=>{console.error("oops, something went wrong",n)})},I=()=>{l("/account-profile")};return t.jsx(G,{hideSaveButton:!0,onBack:I,title:r(o,"pagesAccountProfile.paymentDetailsTitleText","Payment Details"),content:t.jsxs(i,{children:[t.jsxs(i,{sx:{display:"flex",gap:"20px",[w.mobile]:{flexDirection:"column"}},children:[t.jsx(x,{width:"175px",variant:"h5",fontSize:"14px",lineHeight:"20px",marginTop:"5px",children:r(o,"pagesAccountProfile.paymentMethodFieldLabelText","Payment Method")}),t.jsxs(i,{children:[t.jsx(i,{sx:{display:"flex",gap:"18px",alignItems:"center"},children:t.jsxs(x,{variant:"h5",width:"175px",fontSize:"14px",fontWeight:"400",lineHeight:"20px",textTransform:"uppercase",children:[a(g,"data.method")," ••",a(g,"data.number","")," "]})}),t.jsx(f,{sx:{fontSize:"12px",lineHeight:"normal",minWidth:"unset",marginTop:"10px"},variant:"contained",onClick:()=>C("payment_method_update"),children:r(o,"pagesAccountProfile.changePaymentMethodText","Change Payment Method")})]})]}),t.jsx(i,{height:20}),t.jsxs(i,{sx:{display:"flex",gap:"20px",[w.mobile]:{flexDirection:"column"}},children:[t.jsx(x,{width:"175px",variant:"h5",fontSize:"14px",lineHeight:"20px",marginTop:"5px",children:r(o,"pagesAccountProfile.billingInformationFieldLabelText","Billing Information")}),t.jsxs(i,{children:[t.jsxs(x,{variant:"h5",fontSize:"14px",lineHeight:"20px",fontWeight:"400",children:[a(c,"data.line1",""),",",t.jsx("br",{}),a(c,"data.line2")&&t.jsxs(y.Fragment,{children:[a(c,"data.line2"),t.jsx("br",{})]}),a(c,"data.postal_code","")," ",a(c,"data.city"),","," ",a(c,"data.country")]}),t.jsx(f,{sx:{fontSize:"12px",lineHeight:"normal",minWidth:"unset",marginTop:"10px"},variant:"contained",onClick:()=>C(),children:r(o,"pagesAccountProfile.changeBillingInformationText","Change Billing Information")})]})]}),t.jsx(i,{height:20}),t.jsx(Y,{id:"invoice-table",children:t.jsx(X,{rowSelection:!0,withPrintButton:!0,withDowloadButton:!0,toolBarBorderBottom:!0,rows:b,getRowHeight:()=>40,columns:Z,selectedRows:u,onPrintButtonClick:k,onRowSelectionModelChange:v,onDownloadButtonClick:B,title:t.jsxs(x,{gap:"10px",variant:"h5",display:"flex",fontSize:"14px",lineHeight:"20px",alignItems:"center",children:[r(o,"pagesAccountProfile.invoicesTitleText","Invoices")," ",t.jsx(q,{})]})})})]}),extraButtons:t.jsxs(i,{sx:{display:"flex",gap:"10px"},children:[t.jsx(f,{sx:{fontSize:"12px",lineHeight:"normal",minWidth:"unset",[w.mobile]:{width:"100%"}},variant:"contained",component:"a",href:"https://support.aida.tools",target:"_blank",rel:"noopener noreferrer",children:r(o,"pagesAccountProfile.contactUsText","Contact Us")}),t.jsx(f,{sx:{fontSize:"12px",lineHeight:"normal",minWidth:"unset",[w.mobile]:{width:"100%",padding:"6px 6px"}},variant:"contained",component:F,to:"/pricing",children:r(o,"pagesAccountProfile.seePricingText","See Pricing")})]})})};export{jt 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.