1import{_ as d,o,c as i,e as t,t as a,y as b,z as h,r as p,f as v,h as w,F as y,A as $,n as f,d as T,k as g,a as C,w as k,B as P,g as N}from"./DFim2bqs.js";const A={props:{transaction:{type:Object,required:!0}},setup(){const{formatCurrency:n}=h();return{formatUserCurrency:n}},methods:{copyToClipboard(n){navigator.clipboard.writeText(n)},formatDate(n){const s=this.$i18n.locale,e=new Date(n);return new Intl.DateTimeFormat(s,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"}).format(e).replace(/\sг\./,"")},formatCurrency(n,s){return this.formatUserCurrency(n,s)},formatStatusName(n){switch(n){case"success":return this.$t("profile_invoices-table-status-success");case"pending":return this.$t("profile_invoices-table-status-pending");case"canceled":return this.$t("profile_invoices-table-status-canceled");case"refund":return this.$t("profile_invoices-table-status-refund");case"trial":return this.$t("profile_invoices-table-status-trial");default:return"unknown"}},formatPlanName(n){return n==="trial"?this.$t("subscription-plan-trial"):n}}},B={class:"content__table__row"},D={class:"content__table__row-cell"},S={class:"content__table__row-cell"},j={class:"content__table__row-cell-copy"},I={class:"content__table__row-cell"},O={class:"content__table__row-cell"},U={class:"content__table__row-cell"};function x(n,s,e,_,l,c){return o(),i("div",B,[t("div",D,[t("span",null,a(e.transaction.type?n.$t(`subscription-type-${e.transaction.type}`):c.formatPlanName(e.transaction.name)),1)]),t("div",S,[t("div",j,[t("span",null,a(e.transaction.id),1),t("i",{class:"copy-icon",onClick:s[0]||(s[0]=u=>c.copyToClipboard(e.transaction.id))})])]),t("div",I,[t("span",null,a(c.formatDate(e.transaction.createdAt)),1)]),t("div",O,[t("span",null,a(c.formatCurrency(e.transaction.price,e.transaction.currency)),1)]),t("div",U,[t("span",null,a(e.transaction.paymentMethod),1)]),t("div",{class:b(["content__table__row-cell",[{active:e.transaction.status==="success"},{pending:e.transaction.status==="pending"},{canceled:e.transaction.status==="canceled"},{refund:e.transaction.status==="refund"},{pending:e.transaction.status==="trial"}]])},[t("span",null,a(c.formatStatusName(e.transaction.status)),1)],2)])}const F=Object.assign(d(A,[["render",x],["__scopeId","data-v-6b0252d6"]]),{__name:"ProfileTransactionsTableRow"}),q={},z={class:"content__table"},R={class:"content__table__row head"},V={class:"content__table__row-cell"},E={class:"content__table__row-cell"},L={class:"content__table__row-cell"},M={class:"content__table__row-cell"},G={class:"content__table__row-cell"},H={class:"content__table__row-cell"};function J(n,s){return o(),i("div",z,[t("div",R,[t("div",V,[t("span",null,a(n.$t("invoices_table-tariff")),1)]),t("div",E,[t("span",null,a(n.$t("invoices_table-id")),1)]),t("div",L,[t("span",null,a(n.$t("invoices_table-created-at")),1)]),t("div",M,[t("span",null,a(n.$t("invoices_table-amount")),1)]),t("div",G,[t("span",null,a(n.$t("invoices_table-payment-method")),1)]),t("div",H,[t("span",null,a(n.$t("invoices_table-status")),1)])]),p(n.$slots,"rows",{},void 0,!0)])}const K=Object.assign(d(q,[["render",J],["__scopeId","data-v-ec840796"]]),{__name:"ProfileTransactionsTable"}),Q={props:{transactions:{type:Array,required:!0}}},W={class:"content__block"},X={class:"content__block-wrap right"},Y={class:"content__title"};function Z(n,s,e,_,l,c){const u=F,m=K;return o(),i("div",W,[t("div",X,[t("h2",Y,a(n.$t("invoices_title")),1),v(m,null,{rows:w(()=>[(o(!0),i(y,null,$(e.transactions,r=>(o(),f(u,{key:r._id,transaction:r},null,8,["transaction"]))),128))]),_:1})])])}const tt=Object.assign(d(Q,[["render",Z],["__scopeId","data-v-869917a8"]]),{__name:"ProfileTransactions"}),et=T({__name:"invoices",async setup(n){let s,e;g();const{getUserTransactions:_}=C(),{data:l}=([s,e]=k(()=>_()),s=await s,e(),s),c=P(()=>l.value||[]);return(u,m)=>{const r=tt;return o(),f(r,{transactions:N(c)},null,8,["transactions"])}}});export{et 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.