1import{_ as c}from"./HeadingSmall.vue_vue_type_script_setup_true_lang-DM2O1YYH.js";import{_ as f}from"./AppLayout.vue_vue_type_script_setup_true_lang-Dy796xt0.js";import{_ as y}from"./PartnershipTabs.vue_vue_type_script_setup_true_lang-sVN_0QJQ.js";import{d as x,j as g,o as a,w as b,f as r,e as t,u as d,m as w,a as o,F as l,i as p,t as n,b as k,h as v}from"./app-CnJy5zZp.js";import{c as u}from"./createLucideIcon-Q4L5yzgW.js";import"./Button.vue_vue_type_script_setup_true_lang-DkJn4hdE.js";import"./index-DhDP29te.js";import"./AppLogoFull.vue_vue_type_script_setup_true_lang-CqOS9Wrr.js";import"./check-4_F94K-f.js";import"./iconify-CqACA59R.js";import"./users-Bt50QR4f.js";/** 2 * @license lucide-vue-next v0.468.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const C=u("CircleArrowDownIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]]);/** 7 * @license lucide-vue-next v0.468.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const A=u("CircleArrowUpIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]),B={class:"w-full min-w-0 max-w-4xl px-4 py-6"},D={class:"mt-6 grid gap-6 md:grid-cols-2"},L={class:"min-w-0"},N={class:"mb-3 flex items-center gap-2"},S={key:0,class:"space-y-2"},j={class:"flex items-center justify-between gap-2"},F={class:"min-w-0 truncate text-sm font-medium"},P={class:"shrink-0 font-bold text-emerald-600"},E={class:"mt-1 flex items-center justify-between text-xs text-muted-foreground"},I={key:0},R={key:1,class:"text-sm text-muted-foreground"},V={class:"min-w-0"},q={class:"mb-3 flex items-center gap-2"},M={key:0,class:"space-y-2"},$={class:"flex items-center justify-between gap-2"},U={class:"text-sm font-medium"},z={class:"mt-1 text-xs text-muted-foreground"},T={key:1,class:"text-sm text-muted-foreground"},ae=x({__name:"PaymentStatement",props:{payments:{},withdrawals:{}},setup(X){const _=[{title:"Pagamentos",href:"/partnerships/payments"},{title:"Extrato",href:"/partnerships/payments/extract"}],i=s=>(s/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}),m=s=>s?new Date(s).toLocaleDateString("pt-BR",{day:"2-digit",month:"short",year:"numeric"}):"â",h=s=>({completed:"ConcluÃdo",pending:"Processando",failed:"Falhou"})[s]??s;return(s,G)=>(a(),g(f,{breadcrumbs:_},{default:b(()=>[r(d(w),{title:"Extrato"}),t("div",B,[r(c,{title:"Extrato",description:"Seus recebimentos e saques"}),r(y,{active:"payments"}),t("div",D,[t("section",L,[t("div",N,[r(d(C),{class:"h-5 w-5 text-emerald-600"}),r(c,{title:"Recebidos",description:"Pagamentos das marcas"})]),s.payments.length?(a(),o("div",S,[(a(!0),o(l,null,p(s.payments,e=>(a(),o("div",{key:e.id,class:"rounded-lg border p-3"},[t("div",j,[t("span",F,n(e.clientName??"Marca"),1),t("span",P,n(i(e.amount)),1)]),t("div",E,[t("span",null,n(m(e.paidAt)),1),e.platformFee?(a(),o("span",I,"taxa "+n(i(e.platformFee)),1)):k("",!0)])]))),128))])):(a(),o("p",R,"Nenhum pagamento recebido ainda."))]),t("section",V,[t("div",q,[r(d(A),{class:"h-5 w-5 text-primary"}),r(c,{title:"Saques",description:"Transferências pra sua chave PIX"})]),s.withdrawals.length?(a(),o("div",M,[(a(!0),o(l,null,p(s.withdrawals,e=>(a(),o("div",{key:e.id,class:"rounded-lg border p-3"},[t("div",$,[t("span",U,n(i(e.amount)),1),t("span",{class:v(["shrink-0 rounded-full px-2 py-0.5 text-xs font-semibold",{"bg-emerald-100 text-emerald-700":e.status==="completed","bg-amber-100 text-amber-700":e.status==="pending","bg-red-100 text-red-700":e.status==="failed"}])},n(h(e.status)),3)]),t("div",z,n(m(e.completedAt??e.createdAt)),1)]))),128))])):(a(),o("p",T,"Nenhum saque ainda."))])])])]),_:1}))}});export{ae 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.