1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9986],{6e3:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contacto",function(){return n(9608)}])},9608:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return h},default:function(){return p}});var r=n(5893),s=n(1163),a=n(8678),o=n(9008),i=n.n(o),c=n(7294),l=n(7877),m=n(3552),d=n(5152),u=n.n(d),x=n(270);let j=u()(()=>n.e(4853).then(n.bind(n,4853)),{loadableGenerated:{webpack:()=>[4853]},ssr:!1});var h=!0;function p(e){let{baseUrl:t}=e,{authenticated:n,user:o}=(0,x.Z)(),{showPopup:d,hidePopup:u}=(0,m.B)(),[h,p]=(0,c.useState)(!1),f=(0,s.useRouter)(),g="Nuestro Cine MX | Contacto",b="Ponte en contacto con Nuestro Cine MX.",v="".concat(t,"/general/catalogoImage.png"),[y,_]=(0,c.useState)(null);async function N(e){if(e.preventDefault(),!y){d((0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h1",{children:"Alerta"}),(0,r.jsx)("p",{children:"Por favor, verifica que no eres un robot"}),(0,r.jsx)("button",{className:"button filled",onClick:u,children:"Reintentar"})]}));return}p(!0);try{let s=new FormData(e.currentTarget);var t=s.get("email").toString(),n=s.get("comments").toString();let a=await (0,l.ah)(t,n,y);"Success"==a.message?d((0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h1",{children:"Gracias"}),(0,r.jsx)("p",{children:"Tu mensaje se envi\xf3 correctamente. Te responderemos en breve."}),(0,r.jsx)("button",{className:"button filled",onClick:()=>{u(),f.push("/")},children:"Cerrar"})]})):d((0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h1",{children:"Error de contacto"}),(0,r.jsx)("p",{children:"No hemos podido enviar tu mensaje, int\xe9ntalo nuevamente"}),(0,r.jsx)("button",{className:"button filled",onClick:u,children:"Reintentar"})]}))}catch(e){console.log("ERROR",e),d((0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h1",{children:"Error de contacto"}),(0,r.jsx)("p",{children:"No hemos podido enviar tu mensaje, int\xe9ntalo nuevamente"}),(0,r.jsx)("button",{className:"button filled",onClick:u,children:"Reintentar"})]}))}finally{p(!1)}}return(0,r.jsxs)(a.Z,{children:[(0,r.jsxs)(i(),{children:[(0,r.jsx)("title",{children:g}),(0,r.jsx)("meta",{name:"description",content:b}),(0,r.jsx)("meta",{property:"og:title",content:g}),(0,r.jsx)("meta",{property:"og:description",content:b}),(0,r.jsx)("meta",{property:"og:image",content:v}),(0,r.jsx)("meta",{property:"og:site_name",content:"nuestrocinemx"}),(0,r.jsx)("meta",{property:"og:type",content:"video.movie"}),(0,r.jsx)("meta",{property:"og:url",content:"https://nuestrocine.mx"+f.asPath}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:g}),(0,r.jsx)("meta",{name:"twitter:description",content:b}),(0,r.jsx)("meta",{name:"twitter:image",content:v})," ",(0,r.jsx)("meta",{name:"twitter:site",content:"nuestrocinemx"})]}),(0,r.jsxs)("div",{className:"contacto",children:[(0,r.jsx)("h1",{children:"Cont\xe1ctanos"}),(0,r.jsxs)("div",{className:"container",children:[(0,r.jsx)("div",{className:"info",children:"Si detectas una falla o necesitas ayuda con tu cuenta"}),(0,r.jsxs)("form",{id:"frmContacto",onSubmit:N,children:[(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("label",{children:"Tu correo"}),(0,r.jsx)("input",{type:"text",id:"email",defaultValue:n?o.email:"",name:"email",placeholder:"Correo",readOnly:n}),(0,r.jsx)("span",{})]}),(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("label",{children:"Comentarios"}),(0,r.jsx)("textarea",{id:"comments",defaultValue:"",name:"comments",placeholder:"Comentarios"}),(0,r.jsx)("span",{})]}),(0,r.jsx)("fieldset",{children:(0,r.jsx)(j,{sitekey:"6Lf20IkqAAAAAJLPnsoo1ySBNtL2vZTaAU_7NajK",onChange:e=>_(e),onExpired:()=>_(null)})}),(0,r.jsx)("button",{type:"submit",name:"login_submit",id:"login_submit",onClick:function(e){p(!0);var t=!0,n=document.getElementById("email"),r=document.getElementById("comments");return n.classList.remove("error"),r.classList.remove("error"),""==n.value?(t=!1,n.parentElement.style.setProperty("--error-message","'Debes ingresar tu correo'"),n.classList.add("error")):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.value)||(t=!1,n.parentElement.style.setProperty("--error-message","El correo no tiene un formato v\xe1lido"),n.classList.add("error")),""==r.value&&(t=!1,r.parentElement.style.setProperty("--error-message","'Debes escribir tu nombre'"),r.classList.add("error")),p(!1),t||e.preventDefault(),t},disabled:h,children:h?"Cargando...":"Enviar"})]})]})]})]})}}},function(e){e.O(0,[571,5675,1664,6024,8678,9774,2888,179],function(){return e(e.s=6e3)}),_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.