PageSourceSearch

https://www.unitapajos.com.br/_next/static/chunks/pages/examples/pagamento/pix-05ba9ca8009b86de.js

js unitapajos.com.br collected 2026-10-08 03:34:51 UTC 3,860 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[31],{5195:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/examples/pagamento/pix",function(){return c(9134)}])},9134:function(a,b,c){"use strict";c.r(b),c.d(b,{default:function(){return t}});var d=c(7568),e=c(603),f=c(4051),g=c.n(f),h=c(5893),i=c(7294),j=c(6501),k=c(1954),l=c(9669),m=c.n(l),n=c(1955),o=m().create({baseURL:"http://localhost:3000/api",headers:{Accept:"application/json"}});function p(){return(0,h.jsx)("div",{className:"flex justify-center",children:(0,h.jsx)(k.JO,{icon:"mingcute:loading-fill",className:"text-cyan-500 animate-spin",width:"40",height:"40"})})}o.interceptors.request.use(function(a){var b=n.Z.get("token")||"-------------no-token-------------";return b&&(a.headers.Authorization="Bearer ".concat(b)),a},function(a){return Promise.reject(a)}),o.interceptors.response.use(function(a){return a},function(a){return 401===a.response.status&&(window.location.href="/login"),Promise.reject(a)});var q=c(9590),r=c(1163);function s(){var a=(0,r.useRouter)();return(0,h.jsx)("div",{className:"flex my-3",onClick:function(){return a.back()},children:(0,h.jsxs)("div",{className:"flex items-center justify-start p-2 rounded-md bg-blue-500 text-white",children:[(0,h.jsx)(k.JO,{icon:"mdi:arrow-left",className:"text-xl cursor-pointer"}),(0,h.jsx)("span",{className:"text-white",children:"Voltar"})]})})}function t(){var a=function(){navigator.clipboard.writeText(r.current.innerText),v("Copiado!"),y((0,h.jsx)(k.JO,{icon:"material-symbols:check-small-rounded"}))},b=(0,e.Z)(i.useState(!1),2),c=b[0],f=b[1],l=(0,e.Z)(i.useState({}),2),m=l[0],n=l[1],r=(0,i.useRef)(null),t=(0,i.useState)("Copiar C\xf3digo"),u=t[0],v=t[1],w=(0,i.useState)((0,h.jsx)(k.JO,{icon:"material-symbols:content-copy-outline"})),x=w[0],y=w[1];function z(){return(z=(0,d.Z)(g().mark(function a(){var b,c;return g().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return f(!0),a.prev=1,a.next=4,o.post("/pagamento/pix",{especialidade_id:"123",medico_id:"123",hora_id:"123",data:"123"});case 4:n((b=a.sent).data.results),a.next=13;break;case 9:a.prev=9,a.t0=a.catch(1),j.Am.error(null===a.t0|| void 0===a.t0?void 0:null===(c=a.t0.response)|| void 0===c?void 0:c.data.message);case 13:f(!1);case 14:case"end":return a.stop()}},a,null,[[1,9]])}))).apply(this,arguments)}return((0,i.useEffect)(function(){!function(){return z.apply(this,arguments)}()},[]),c)?(0,h.jsx)("div",{className:"h-screen flex items-center justify-center",children:(0,h.jsx)(p,{})}):(0,h.jsx)("div",{className:"mt-10",children:(0,h.jsxs)(q.W,{children:[(0,h.jsx)(s,{}),(0,h.jsx)("div",{className:"mb-4",children:(0,h.jsx)("h1",{className:"text-center text-3xl",children:"Pagamento Via Chave Pix"})}),(0,h.jsx)("h2",{children:"1.Copie ou escaneie a chave Pix abaixo;"}),(0,h.jsx)("h2",{children:'2. Abra o app do seu banco e encontre a op\xe7\xe3o de pagamento "Pix"'}),(0,h.jsx)("h2",{children:"3. Selecione a fun\xe7\xe3o colar, verifique os detalhes e finalize o pedido;"}),(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"flex justify-center",children:(0,h.jsx)("picture",{children:(0,h.jsx)("img",{src:"https://gerarqrcodepix.com.br/api/v1?brcode=".concat(m.codigo_pix),alt:"chave pix"})})}),(0,h.jsx)("div",{className:"p-3 overflow-hidden bg-white rounded-md my-3",children:(0,h.jsx)("p",{ref:r,className:"mb-4 text-sm font-semibold text-brand-blue-700 outline-0",style:{wordBreak:"break-all"},children:m.codigo_pix})}),(0,h.jsxs)("button",{onClick:a,className:"flex items-center justify-center w-full px-4 py-3 font-medium text-white bg-brand-blue-500 rounded-md hover:bg-brand-blue-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 text-xl",children:[x,u]})]})]})})}}},function(a){a.O(0,[495,481,774,888,179],function(){var b;return a(a.s=5195)}),_N_E=a.O()}])

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.