PageSourceSearch

https://nesr-cogop-registrations-damas.fly.dev/_next/static/chunks/pages/index-66ce38cd06142bad.js

js nesr-cogop-registrations-damas.fly.dev collected 2026-10-03 08:26:37 UTC 11,517 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8312:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(2023)}])},2023:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return b}});var a=t(5893),n=t(9008),r=t.n(n),l=t(5675),i=t.n(l),c=t(7294),o=t(381),m=t.n(o),d=t(4829),x=t(728),u=t(6244);function h(e){let{open:s,setOpen:t,card:n,bank:r,totalAmount:l,loading:i,payCallback:o,cancelCallback:m,email:h,pmError:p,paymentError:g}=e,f=(0,c.useRef)(null),j=e=>"c"==e?"Cuenta de cheques":"Cuenta de ahorros";return(0,a.jsx)(d.u.Root,{show:s,as:c.Fragment,children:(0,a.jsxs)(x.V,{as:"div",className:"relative z-10",initialFocus:f,onClose:t,children:[(0,a.jsx)(d.u.Child,{as:c.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,a.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,a.jsx)(d.u.Child,{as:c.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,a.jsxs)(x.V.Panel,{className:"relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6",children:[(0,a.jsxs)("div",{children:[!g&&(0,a.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-yellow-100",children:(0,a.jsx)(u.Z,{className:"h-6 w-6 text-yellow-600","aria-hidden":"true"})}),g&&(0,a.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-red-100",children:(0,a.jsx)(u.Z,{className:"h-6 w-6 text-red-600","aria-hidden":"true"})}),(0,a.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,a.jsx)(x.V.Title,{as:"h3",className:"text-lg font-medium leading-6 text-gray-900 mb-4",children:"Informaci\xf3n de Pago"}),(0,a.jsxs)("div",{className:"mt-2",children:[g&&(0,a.jsx)("p",{className:"text-left text-red-500",children:g}),!g&&(0,a.jsxs)("div",{className:"text-left",children:[(0,a.jsxs)("p",{className:"text-sm text-gray-500",children:["Email: ",h]}),p&&(0,a.jsxs)("p",{className:"text-red-500 mb-4",children:["Error: ",p]}),i&&(0,a.jsxs)("svg",{className:"animate-spin h-10 w-10 text-indigo-600 mx-auto my-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),!i&&!p&&n&&(0,a.jsxs)("dd",{className:"mt-2 space-y-2 sm:flex sm:space-y-0 sm:space-x-4 mb-4",children:[(0,a.jsxs)("div",{className:"flex-none",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5z"})}),(0,a.jsx)("p",{className:"sr-only",children:(0,a.jsx)("span",{className:"capitalize",children:n.card_type})})]}),(0,a.jsxs)("div",{className:"flex-auto",children:[(0,a.jsxs)("p",{className:"text-gray-900",children:[(0,a.jsx)("span",{className:"capitalize",children:n.card_type})," ...",n.last_4]}),(0,a.jsxs)("p",{children:["Expira ",n.expire_month," / ",n.expire_year]})]})]}),!i&&!p&&r&&(0,a.jsxs)("dd",{className:"mt-2 space-y-2 sm:flex sm:space-y-0 sm:space-x-4 mb-4",children:[(0,a.jsxs)("div",{className:"flex-none",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 013 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 00-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 01-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 003 15h-.75M15 10.5a3 3 0 11-6 0 3 3 0 016 0zm3 0h.008v.008H18V10.5zm-12 0h.008v.008H6V10.5z"})}),(0,a.jsx)("p",{className:"sr-only",children:(0,a.jsx)("span",{className:"capitalize",children:j(r.account_type)})})]}),(0,a.jsx)("div",{className:"flex-auto",children:(0,a.jsxs)("p",{className:"text-gray-900",children:[(0,a.jsx)("span",{className:"capitalize",children:j(r.account_type)})," ...",r.last_4]})})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between border-t border-gray-200 pt-6 text-gray-900",children:[(0,a.jsx)("dt",{className:"text-base",children:"Total"}),(0,a.jsxs)("dd",{className:"text-base",children:["$",l,".00"]})]})]})]})]})]}),(0,a.jsxs)("div",{className:"mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3",children:[(0,a.jsx)("button",{type:"button",disabled:Boolean(g)||i||Boolean(p)||!n&&!r,className:function(){for(var e=arguments.length,s=Array(e),t=0;t<e;t++)s[t]=arguments[t];
1return s.filter(Boolean).join(" ")}(g||i||p||!n&&!r?"bg-gray-600 hover:bg-gray-700 focus:ring-gray-500":"bg-indigo-600 hover:bg-indigo-700 focus:ring-indigo-500","inline-flex w-full justify-center rounded-md border border-transparent px-4 py-2 text-base font-medium text-white shadow-sm  focus:outline-none focus:ring-2 focus:ring-offset-2 sm:col-start-2 sm:text-sm"),onClick:()=>o(),children:"Pagar"}),(0,a.jsx)("button",{type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 sm:col-start-1 sm:mt-0 sm:text-sm",onClick:()=>m(),ref:f,children:"Cancelar"})]})]})})})})]})})}var p=t(1332),g=t(5652);function f(e){let{setOpen:s}=e;return(0,a.jsx)("div",{className:"rounded-md bg-green-50 p-4 fixed left-0 right-0",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(p.Z,{className:"h-5 w-5 text-green-400","aria-hidden":"true"})}),(0,a.jsx)("div",{className:"ml-3",children:(0,a.jsx)("p",{className:"text-sm font-medium text-green-800",children:"Gracias por registrarse en el evento, verifique su correo electr\xf3nico para obtener el recibo."})}),(0,a.jsx)("div",{className:"ml-auto pl-3",children:(0,a.jsx)("div",{className:"-mx-1.5 -my-1.5",children:(0,a.jsxs)("button",{type:"button",onClick:()=>s(!1),className:"inline-flex rounded-md bg-green-50 p-1.5 text-green-500 hover:bg-green-100 focus:outline-none focus:ring-2 focus:ring-green-600 focus:ring-offset-2 focus:ring-offset-green-50",children:[(0,a.jsx)("span",{className:"sr-only",children:"Despedir"}),(0,a.jsx)(g.Z,{className:"h-5 w-5","aria-hidden":"true"})]})})})]})})}let j="".concat("https://09w7n9.deta.dev","/transaction"),y="h7zkXNeIcr";console.log(j,"\n",y,"\n","https://api.forte.net/js/v1");let N={card_number:"",expire_month:"1",expire_year:m()().year(),cvv:"",token:""},v={account_number:"",routing_number:"",account_type:"c",token:""};function b(){let[e,s]=(0,c.useState)({...N}),[t,n]=(0,c.useState)({...v}),[l,o]=(0,c.useState)(""),[d,x]=(0,c.useState)(""),[u,p]=(0,c.useState)(125),[g,b]=(0,c.useState)(""),[w,_]=(0,c.useState)("card"),[k,C]=(0,c.useState)(!1),[S,E]=(0,c.useState)(!1),[T,O]=(0,c.useState)(null),[A,z]=(0,c.useState)(null),[P,V]=(0,c.useState)(!1),[F,R]=(0,c.useState)(null),[M,B]=(0,c.useState)(!1),[D,H]=(0,c.useState)(null),[L,G]=(0,c.useState)(!1),[I,U]=(0,c.useState)("Amsterdam, NY");(0,c.useEffect)(()=>{""!=l&&""!=d&&""!=g&&(""!=e.card_number&&""!=e.cvv||""!=t.account_number&&""!=t.routing_number)?B(!0):B(!1)},[l,g,e,t,d]);let Z=()=>{s({...N}),n({...v}),b(""),o(""),x(""),_("card")},W=(0,c.useCallback)(async e=>{V(!0);let s=JSON.stringify(e);try{let t=await fetch(j,{mode:"cors",method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:s}),a=await t.json();if(!t.ok)throw Error("".concat(a.message));V(!1),C(!1),E(!0),Z()}catch(n){V(!1),H(n.message),console.log(n.message)}},[]);(0,c.useCallback)(async s=>{let a;if(s.preventDefault(),C(!0),V(!0),"card"==w){let{card_number:n,expire_year:r,expire_month:l,cvv:i}=e;a={api_login_id:y,card_number:n,expire_year:r,expire_month:l,cvv:i}}else{let{account_number:c,routing_number:o,account_type:m}=t;a={api_login_id:y,account_number:c,routing_number:o,account_type:m}}try{forte&&forte.createToken&&forte.createToken(a).success(e=>{V(!1),console.log("SUCCESS:",e),e&&e.onetime_token&&("card"==w?O({card_type:e.card_type,expire_month:e.expire_month,expire_year:e.expire_year,last_4:e.last_4,token:e.onetime_token}):z({account_type:e.account_type,last_4:e.last_4,token:e.onetime_token}))}).error(e=>{V(!1),R(e.response_description)})}catch(d){console.log("Exception:",d),V(!1),R("Error with creating payment token.")}},[e,t,w]);let X=(0,c.useCallback)(()=>{let e="card"==w?T.token:A.token;W({token:e,amount:u,paymentMethod:w,eventName:"Congreso de Damas 2023",email:l,fullName:g,name:d,wantsParking:L,church:I,timestamp:m()().format()})},[T,A,w,l,u,g,W,d,L,I]);return(0,a.jsxs)("div",{className:"",children:[(0,a.jsxs)(r(),{children:[(0,a.jsx)("title",{children:"Congreso de Damas 2023 - Registro| NESR COGOP | Payment Apps"}),(0,a.jsx)("meta",{name:"description",content:"Registrations for Church of GOD of Prophecy - Northeast Spanish Region | Payment Apps"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),S&&(0,a.jsx)(f,{setOpen:E}
1),(0,a.jsx)(h,{open:k,setOpen:C,card:T,bank:A,totalAmount:u,loading:P,payCallback:X,cancelCallback(){C(!1),R(null),H(null)},email:l,pmError:F,paymentError:D}),(0,a.jsx)("main",{className:"mx-auto max-w-2xl px-4 pt-16 pb-24 sm:px-6 lg:max-w-7xl lg:px-8",children:(0,a.jsxs)("div",{className:"mb-8",children:[(0,a.jsx)(i(),{src:"/nesr-logo.webp",alt:"NESR COGOP Logo",width:129,height:136,className:"mx-auto mb-4"}),(0,a.jsx)("h1",{className:"text-4xl font-bold tracking-tight sm:text-center sm:text-6xl",children:"Congreso de Damas 2023"}),(0,a.jsx)("p",{className:"mt-2 text-lg leading-8 text-gray-600 sm:text-center",children:"Fecha del evento: Abril 28-30, 2023"}),(0,a.jsxs)("p",{className:"mt-2 text-lg leading-8 text-gray-600 sm:text-center",children:["Lugar es: ",(0,a.jsx)("strong",{children:"THE CONNECTICUT CONVENTION CENTER 100 COLUMBUS BLVD HARTFORD, CT 06103."})]}),(0,a.jsxs)("p",{className:"mt-2 text-lg leading-8 text-gray-600 sm:text-center",children:["Precios:",(0,a.jsx)("br",{}),"$100.00 hasta el 10 de Abril",(0,a.jsx)("br",{}),"$125.00 despu\xe9s del 11 de Abril"]}),(0,a.jsx)("p",{className:"text-4xl font-bold underline text-center uppercase mt-4",children:"registro cerrado, gracias!"})]})}),(0,a.jsx)("footer",{className:""})]})}}},function(e){e.O(0,[885,420,774,888,179],function(){return e(e.s=8312)}),_N_E=e.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.