1import{j as e}from"./ui-916dc9d9.js";import{T as i,M as l,x as n,j as x}from"./index-eb73e3da.js";import{r}from"./vendor-aea060b0.js";import{C as c}from"./index-72cc605b.js";import"./pdf-viewer-9b371a90.js";import"./motion-b076d11a.js";function m({value:t}){const[a,s]=r.useState(!1);return r.useEffect(()=>{a===!0&&i("success","Copiado para a área de transferência")},[a]),e.jsxs("div",{className:"flex flex-row text-primary cursor-pointer",onClick:o=>{o.stopPropagation(),s(!0),setTimeout(()=>{s(!1)},3e3)},children:[t,e.jsx(l,{size:24,className:"ml-2"})]})}function d({title:t,value:a,clipboard:s}){return e.jsxs("div",{className:"flex flex-row gap-2 justify-between",children:[e.jsx("div",{className:"text-dark4x",children:t}),!s&&e.jsx("div",{className:"text-dark4x font-bold",children:a}),s&&e.jsx(m,{value:a})]})}function p(){return e.jsxs("div",{className:"p-6 lg:p-12 bg-systemDefault",children:[e.jsxs("div",{className:"text-center",children:["Ou use ",e.jsx("b",{children:"a chave Pix"})]}),e.jsx("hr",{className:"my-4 border-systemDefaultDark opacity-10"}),e.jsx(d,{title:"Chave Pix",value:"[email protected]",clipboard:!0})]})}function f(){const[t,a]=r.useState(!1);return r.useEffect(()=>{t&&i("success","Código copiado"),a(!1)},[t]),e.jsxs("div",{className:"bg-white p-6 lg:p-12 flex flex-col justify-center items-center",children:[e.jsx("h2",{className:"text-primary text-center text-xl font-bold",children:"Use o QR Code do Pix para pagar"}),e.jsx("p",{className:"text-[#5C5C5C] text-center mt-4 max-w-[90%] mx-auto leading-5",children:"Abra o app em que vai fazer a transferência, escaneie a imagem ou cole o código do QR Code"}),e.jsx("img",{src:"/images/pix/qrcode-demo.png",alt:"QR Code do Pix",width:"auto",height:"auto",className:"max-w-[150px] lg:max-w-[150px] mt-8 rounded-lg"}),e.jsx("div",{className:"text-2xl text-center text-primary font-bold mt-6",children:"R$ 99,00"}),e.jsx(c,{text:"123456789",children:e.jsxs("button",{className:"bg-secondary text-white font-bold text-xl rounded-lg px-8 py-4 mt-8 flex items-center justify-center w-full",onClick:s=>{s.stopPropagation(),a(!0),setTimeout(()=>{a(!1)},3e3)},children:["Copiar código",e.jsx(l,{size:24,className:"ml-2"})]})})]})}function b(){var s;n();const t=x(),a={id:"1",name:"Fatura de teste",description:"Fatura de teste",value:"99,00",to:"7AZ SOFTWARES",dueDate:"2021-10-10",createdAt:"2021-10-10",paid:!1,paidAt:null,paymentMethod:"pix",paymentLink:"/open-banking/invoice/12345678",paymentQrCode:"https://pix.example.com/123456789",paymentQrCodeBase64:"https://pix.example.com/123456789"};return e.jsxs("div",{className:"bg-primary flex flex-col items-center justify-center bg-gradient-to-b from-primary to-secondary font-inter p-4 lg:p-6 min-h-screen",children:[e.jsxs("div",{className:"container max-w-[1152px] mx-auto flex flex-col lg:flex-row items-center justify-start p-4 columns-2 gap-5",children:[e.jsxs("div",{className:"col w-[100%] lg:max-w-[80%] lg:w-1/2 flex flex-col items-center justify-start",children:[e.jsx("img",{src:(s=t==null?void 0:t.Logo)==null?void 0:s.Content,alt:(t==null?void 0:t.Name)||"Logo",width:"auto",height:90,className:"max-w-[220px] lg:max-w-[260px]"}),e.jsxs("h1",{className:"w-full text-3xl lg:text-4xl font-black text-white lg:leading-snug text-center mt-8 lg:mt-16 py-8 max-w-[80%] inline-flex",children:["Transfira R$ ",a.value," para ",a.to]})]}),e.jsxs("div",{className:"col bg-white w-[100%] lg:w-1/2 border border-gray-300 rounded-lg overflow-hidden",children:[e.jsx(f,{}),e.jsx(p,{})]})]}),e.jsxs("div",{className:"container max-w-[1152px] mx-auto flex flex-col items-center justify-center p-4 columns-2 mt-0 lg:mt-4",children:[e.jsx("hr",{className:"bg-systemDefault border-1 border-systemDefault w-[80%] mx-auto opacity-30"}),e.jsx("div",{className:"w-[100%] lg:w-[80%] flex flex-row items-center lg:items-start justify-center mt-0 lg:mt-4 mb-8",children:e.jsx("a",{href:a.paymentLink,target:"_blank",rel:"noreferrer",className:"w-full block mx-auto text-center mt-8",children:e.jsx("button",{className:"bg-primary text-white font-bold text-xl rounded-lg px-8 py-4 flex items-center justify-center w-full max-w-[100%] lg:max-w-[400px] mx-auto",children:"Pagar Pix com Open Banking"})})})]})]})}export{b 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.