PageSourceSearch

https://facemarket.ai/assets/billing-BQ-Fh1H3.js

js facemarket.ai collected 2026-10-05 13:57:26 UTC 7,004 bytes, 1 lines download raw bytes

1var K=Object.defineProperty,W=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var M=(i,n,a)=>n in i?K(i,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[n]=a,N=(i,n)=>{for(var a in n||(n={}))Q.call(n,a)&&M(i,a,n[a]);if(D)for(var a of D(n))X.call(n,a)&&M(i,a,n[a]);return i},U=(i,n)=>W(i,J(n));var T=(i,n,a)=>new Promise((g,y)=>{var S=l=>{try{f(a.next(l))}catch(u){y(u)}},b=l=>{try{f(a.throw(l))}catch(u){y(u)}},f=l=>l.done?g(l.value):Promise.resolve(l.value).then(S,b);f((a=a.apply(i,n)).next())});import{E as Z}from"./EmptyState-CCnCjlWC.js";import{e as ee}from"./main-KTNfBspQ.js";import{_ as te,d as k}from"./index-D41HuuND.js";import{S as ae,e as ne}from"./subscriptionMock-ChiIcvm7.js";import{b as oe,c as ie}from"./main-CI6-DA3D.js";import{o as re}from"./index-xJvozlO0.js";import{B as se}from"./index-D7LN_Z91.js";import{S as le}from"./index-C-XzeGfY.js";import{_ as ce}from"./index-BFYXkYJ3.js";import{T as ue}from"./index-CV4CLXE3.js";import{z as de,b as I,p as z,A as pe,a3 as me,c as v,E as r,H as p,a as E,R as P,L as _,G as C,D as ge,M as Y,C as fe,o as c,U as w,_ as ve}from"./report-qJY-YOy3.js";import"./Trigger-DT-rSB-E.js";import"./_getTag-CiVfn2Fs.js";import"./zoom-BRhZ7VQs.js";import"./ResizeObserver.es-CDE7jhPe.js";import"./collapseMotion-B1t_PwKu.js";import"./index-DBIINJJ8.js";import"./pickAttrs-D9AHdepz.js";import"./index-Bo-8ztWF.js";import"./FormItemContext-B9ppPKhx.js";import"./createContext-AbCWSmXA.js";import"./omit-Q2jgc2fG.js";import"./responsiveObserve-DF37eFBl.js";import"./index-BD7J64AJ.js";import"./statusUtils-BsZsTEQg.js";import"./preload-helper-D7HrI6pR.js";import"./styleChecker-9YEqTEkt.js";import"./index-CsgcEz7a.js";import"./isPlainObject-Cdu2Om79.js";const ye={class:"billing-page"},_e={class:"plan-card"},Se={class:"plan-expire"},be={class:"detail-section"},he={class:"table-wrapper"},xe={key:0},Te={key:2,class:"ellipsis"},ke=["href"],Ie={key:0,class:"table-footer"},ze={class:"total-text"},Ee=1e3,Pe=de({__name:"billing",setup(i){const n="vih",a=oe(),g=I(!1),y=z(()=>{var d;const e=a.currentSubscription;if(!e)return"Basic";const t=a.apiPlans.find(x=>x.productId===e.productId);return(d=t==null?void 0:t.name)!=null?d:e.planTier}),S=z(()=>{const e=a.currentSubscription;let t="Ends";if(((e==null?void 0:e.planTier)==="FREE"||(e==null?void 0:e.planTier)==="BASIC")&&(t="Refresh"),!(e!=null&&e.currentPeriodEnd))return`${t} on —`;try{const d=new Date(e.currentPeriodEnd*Ee);return`${t} on ${d.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})}`}catch(d){return`${t} on —`}});function b(e){typeof requestIdleCallback!="undefined"?requestIdleCallback(()=>e(),{timeout:3e3}):setTimeout(e,1)}const f=()=>{g.value=!0},l=e=>{if(e===ne.id){console.log("Contact us ~");return}ie({appId:"vih",targetProductId:e}).then(t=>{a.fetchPlansAndCurrent(n),t.billingUrl?re(t.billingUrl):t.changeType==="DOWNGRADE"?w.success("Subscription switched successfully, effective next month"):t.changeType==="UPGRADE"&&w.success("Subscription switched successfully")}).catch(t=>{w.error("Subscription switch failed"),console.error(t)})},u=I([]),o=I({current:1,pageSize:10,total:100}),L=[{value:10,label:"10 per page"},{value:20,label:"20 per page"},{value:100,label:"100 per page"}],$=[{title:"Order Date",dataIndex:"orderTime",key:"orderTime",width:120},{title:"Order ID",dataIndex:"orderNo",key:"orderNo",width:120},{title:"Plan Type",dataIndex:"planType",key:"planType"},{title:"Payment Amount",dataIndex:"amount",key:"amount"},{title:"Order Status",dataIndex:"orderStatus",key:"orderStatus"},{title:"Billing Link",dataIndex:"invoiceUrl",key:"invoiceUrl"},{title:"Period start",dataIndex:"cycleStartTime",key:"cycleStartTime",width:120},{title:"Period End",dataIndex:"cycleEndTime",key:"cycleEndTime",width:120}],A={pending:"Pending",paid:"paid",failed:"Failed",refunded:"Refunded",expired:"Expired"},H=e=>{const t=String(e||"").toLowerCase();return t==="paid"||t==="failed"||t==="refunded"||t==="expired"?t:"pending"},R=e=>U(N({},e),{orderTime:k(e.orderTime).format("YYYY-MM-DD HH:mm:ss"),cycleStartTime:k.unix(Number(e.cycleStartTime)).format("YYYY-MM-DD HH:mm:ss"),cycleEndTime:k.unix(Number(e.cycleEndTime)).format("YYYY-MM-DD HH:mm:ss"),orderStatus:H(e.orderStatus)}),O=()=>T(this,null,function*(){const e=yield ee({pageNum:o.value.current,pageSize:o.value.pageSize});return o.value.total=e.total,e==null?void 0:e.records.map(t=>R(t))}),F=z(()=>{const e=(o.value.current-1)*o.value.pageSize+1,t=Math.min(o.value.current*o.value.pageSize,o.value.total);return`${e}-${t} of ${o.value.total}`}),B=()=>T(this,null,function*(){try{const e=yield O();u.value=e}catch(e){console.error("Failed to fetch billing list:",e)}}),G=e=>{console.log("Page changed to:",e),o.value.current=e,B()};function h(){a.fetchPlansAndCurrent(n)}return pe(()=>{B(),b(h),document.addEventListener("visibilitychange",h)}),me(()=>{document.removeEventListener("visibilitychange",h)}),(e,t)=>{const d=se,x=ue,V=ce,q=le,j=te;return c(),v("section",ye,[t[7]||(t[7]=r("header",{class:"page-header"},[r("h1",null,"Billings"),r("p",null,"Manage your subscription and billing information")],-1)),r("article",_e,[r("div",null,[t[4]||(t[4]=r("p",{class:"plan-label"},"Your Plan",-1)),r("h2",null,p(y.value),1),r("p",Se,p(S.value),1)]),E(d,{type:"primary",class:"manage-btn",onClick:f},{default:P(()=>t[5]||(t[5]=[Y("Manage")])),_:1,__:[5]})]),r("section",be,[t[6]||(t[6]=r("h3",null,"Billing details",-1)),r("div",he,[u.value.length>0?(c(),_(V,{key:0,columns:$,"data-source":u.value,pagination:!1,"row-key":"orderId","table-layout":"fixed",scroll:{x:1e3,y:"calc(100vh - 550px)"}},{bodyCell:P(({column:s,record:m})=>[s.dataIndex==="amount"?(c(),v("span",xe,"$ "+p(m.amount),1)):s.dataIndex==="orderStatus"?(c(),_(x,{key:1,class:fe(["status-tag",m.orderStatus.toLowerCase()])},{default:P(()=>[Y(p(A[m.orderStatus]),1)]),_:2},1032,["class"])):s.dataIndex==="orderNo"?(c(),v("span",Te,p(m.orderNo),1)):s.dataIndex==="invoiceUrl"?(c(),v("a",{key:3,href:m.invoiceUrl,class:"invoice-link",target:"_blank",rel:"noreferrer"},p(m.invoiceUrl),9,ke)):C("",!0)]),_:1},8,["data-source"])):(c(),_(Z,{key:1}))]),u.value.length>0?(c(),v("footer",Ie,[E(q,{value:o.value.pageSize,"onUpdate:value":t[0]||(t[0]=s=>o.value.pageSize=s),class:"page-size-select",options:L,size:"small"},null,8,["value"]),r("span",ze,p(F.value),1),E(j,{current:o.value.current,"onUpdate:current":t[1]||(t[1]=s=>o.value.current=s),pageSize:o.value.pageSize,"onUpdate:pageSize":t[2]||(t[2]=s=>o.value.pageSize=s),class:"common-table-pagination-control",total:o.value.total,"show-size-changer":!1,"show-less-items":!0,size:"small",onChange:G},null,8,["current","pageSize","total"])])):C("",!0)]),g.value?(c(),_(ae,{key:0,plans:ge(a).displayPlans,onClose:t[3]||(t[3]=s=>g.value=!1),onSelect:l},null,8,["plans"])):C("",!0)])}}}),it=ve(Pe,[["__scopeId","data-v-7429000e"]]);export{it 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.