PageSourceSearch

https://plycem.vercel.app/_next/static/chunks/pages/en/form-1534fbcb31737eab.js

js plycem.vercel.app collected 2026-10-03 07:30:25 UTC 3,649 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[68],{6908:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/en/form",function(){return s(4286)}])},2205:function(e,t,s){"use strict";var n=s(5893),a=s(7294),o=s(7397),r=s(8666),i=s(2784),l=s(3654),c=s(6195),u=s(8154),d=s(1656),h=s(4362);let p=e=>e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"");t.Z=()=>{let{userRole:e}=(0,a.useContext)(r.vQ),{formID:t,formFields:s,formData:m,setFormData:f,initialFormData:x}=(0,a.useContext)(r.K),j=(0,i.Z)(),[v,w]=(0,a.useState)({}),[_,g]=(0,a.useState)(!1),[N,y]=(0,a.useState)(!1),[E,S]=(0,a.useState)({show:!1,status:"",message:""}),C=(e,t)=>{console.log(m),f(s=>({...s,[e]:N?"":t})),w(s=>{let n={...s};return t?delete n[e]:n[e]=!0,n})},b=(e,t)=>{f(s=>({...s,[e]:t[0]}))},F=()=>{(0,l.q)("form_usage",{user_type:e,form_type:m.tipo,form_country:m.pais}),(0,l.H)(e,"Contacto",m.pais)},P=()=>{let e=!1,t={};return s.forEach(s=>{let n=s.options.find(e=>e.startsWith("data-show-")),a=n?p(n.split(":")[1]):null,o=!a||m.tipo&&p(m.tipo)===a;o&&!m[s.name]&&0!==m[s.name]?(t[s.name]=!0,e=!0):delete t[s.name]}),w(t),e},Z=async e=>{if(e.preventDefault(),P())return;let s=new FormData;Object.entries(m).forEach(e=>{let[t,n]=e;s.append(t,n)});try{g(!0);let e=await fetch((0,c.O)(t),{method:"POST",body:s});if(e.ok)await e.json(),F(),y(!0),f({...x}),w({});else throw Error("Error en la respuesta del servidor")}catch(e){S({show:!0,status:"error",message:"Se produjo un error al intentar enviar tu mensaje. Por favor, int\xe9ntelo de nuevo m\xe1s tarde."})}finally{g(!1)}};return(0,n.jsxs)(d.J,{"data-scroll-repeat":!0,"data-scroll":!0,"data-scroll-class":"in-view","data-scroll-offset":"25%",children:[(0,n.jsxs)("form",{onSubmit:Z,children:[(0,n.jsxs)("div",{className:"group form-container",children:[(0,n.jsxs)("div",{className:"title",children:[(0,n.jsx)("h2",{children:"en"===j?"Contact Form:":"Formulario de contacto:"}),(0,n.jsx)("div",{className:"paragraph",children:"en"===j?"Fill out this information, and we will contact you shortly.":"Llena esta informaci\xf3n y en poco tiempo te estaremos contactando."})]}),(0,n.jsxs)("div",{className:"fields ".concat(m.tipo&&"recursoshumanos"===p(m.tipo)?"file-input":""," ").concat(m.tipo&&"asesoriatecnica"===p(m.tipo)?"file-input":""),children:[s.map((e,t)=>{let s=e.options.find(e=>e.startsWith("data-show-")),a=s?p(s.split(":")[1]):null;return!a||m.tipo&&p(m.tipo)===a?(0,n.jsx)(u.Y,{field:e,handleInputChange:C,handleFileChange:b,index:t,errors:v},"contact-form-".concat(t,"-").concat(N)):null}),(0,n.jsx)("div",{className:"button-wrapper col-2",children:(0,n.jsxs)("button",{type:"submit",className:"",children:[(0,n.jsx)("span",{children:_?"en"===j?"Sending":"Enviando":"en"===j?"Send":"Enviar"})," ",_?(0,n.jsx)("div",{className:"spinner"}):(0,n.jsx)(o.Q,{src:"/icons/long-arrow-right.svg"})]})})]})]}),E.show&&(0,n.jsx)("span",{className:"form-request-message ".concat(E.status),children:E.message})]}),N&&(0,n.jsx)(h.Z,{handleCloseModal:()=>{f({...x}),y(!1),w({})}})]})}},4286:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return h}});var n=s(5893),a=s(9008),o=s.n(a),r=s(5935),i=s(5475),l=s(2205),c=s(8666),u=s(1665),d=s(1412),h=!0;t.default=e=>{let{page:t,form:s,yoast:a}=e,h=(0,u.Z)(s);return(0,n.jsxs)(c.Xp.Provider,{value:{page:t,form:s},children:[(0,n.jsx)(o(),{children:(0,r.ZP)(a)}),t&&s&&(0,n.jsxs)(d.J,{children:[(0,n.jsx)(i.Z,{ctaTitle:"Go to the Form",showButton:!0}),(0,n.jsx)(c.K.Provider,{value:{...h},children:(0,n.jsx)(l.Z,{})})]})]})}}},function(e){e.O(0,[5935,6363,9774,2888,179],function(){return e(e.s=6908)}),_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.