1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2955],{69188:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/collection/institucional/comprarcomconfianca",function(){return a(97615)}])},63e3:function(e,t,a){"use strict";a.d(t,{Z:function(){return M}});var n=a(47568),l=a(34051),r=a.n(l),i=a(85893),s=a(67294),c=a(88313),o=a(56552),u=a(74651),d=a(19523),m=a(33785),f=a.n(m),x=a(83224),p=a(26042),h=a(69396),v=a(47533),b=a(32093),w=a(6705),g=a(34940);function j(e){return N.apply(this,arguments)}function N(){return(N=(0,n.Z)(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,g.M4)("/api/Contact/AccessYourData",t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Z=a(11163),C=a(35281),y=a(34853),_=a(10827),k=a(87870),E=a(70345),D=a(72400),S=a(74231),A=a(87536),I=a(70705);function L(){var e,t,a,l=(0,C.$G)(["contact-form"]).t,c=(0,s.useState)(!1),o=c[0],u=c[1],d=(0,s.useRef)(null),m=(0,Z.useRouter)(),f=S.Ry().shape({email:S.Z_().trim().required(l("errors.email.required")).max(I.C44.EMAIL,l("errors.max-length-validation",{maxLength:I.C44.EMAIL})).email(l("errors.email.format")),deleteEmailData:S.Xg()}),x={resolver:(0,v.X)(f)},N=(0,A.cI)(x),L=N.register,R=N.handleSubmit,F=N.formState,P=N.reset,M=F.errors,V=function(){var e=(0,n.Z)(r().mark((function e(t){var a,n,i,s,c,o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=4,null===(a=d.current)||void 0===a?void 0:a.executeAsync();case 4:n=e.sent,o={Email:null!==(s=(i=t).email)&&void 0!==s?s:"",DeleteEmailData:null!==(c=i.deleteEmailData)&&void 0!==c&&c,FormRecaptcha:null!==n&&void 0!==n?n:""},j(JSON.stringify(o)).then((function(e){e?((0,w.L9)({entity:w.iU.PersonalDataForm,publicId:"personal-data-form",router:m,eventAction:w.BF.FormSubmitted}),b.A.success(l("message-sent-success"),{autoClose:!0,keepAfterRouteChange:!0}),P()):b.A.error(l("message-sent-error"),{autoClose:!0,keepAfterRouteChange:!0})})).catch((function(){b.A.error(l("message-sent-error"),{autoClose:!0,keepAfterRouteChange:!0})})).finally((function(){var e;u(!1),null===(e=d.current)||void 0===e||e.reset()}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,i.jsxs)("form",{onSubmit:R(V),noValidate:!0,className:"flex flex-col gap-2",children:[(0,i.jsxs)("div",{className:"flex flex-col md:flex-row gap-2",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-2 w-full md:w-6/12 ",children:[(0,i.jsxs)("div",{className:"relative w-full",children:[(0,i.jsx)("input",(0,p.Z)({className:"".concat(M.email?"is-invalid border border-red":"border-lighter-blue"," px-2 text-sm text-black w-full"),"data-id":D.Z.Institutional.PersonalData.EmailInput,placeholder:l("form.email")},L("email"))),(0,i.jsx)(_.Z,{className:"w-7 h-full fill-primary absolute top-0 right-2 flex items-center pl-2"})]}),I.aLN&&(0,i.jsx)("div",{className:"w-full mb-2 mt-1",children:(0,i.jsxs)("div",{className:"w-full flex flex-row items-start",children:[(0,i.jsx)("input",(0,h.Z)((0,p.Z)({type:"checkbox","data-id":D.Z.Institutional.PersonalData.DeleteEmailDataInput},L("deleteEmailData")),{id:"deleteEmailData",className:"h-6 w-6 bg-white text-primary form-check-input border-main-neutral"})),(0,i.jsx)("label",{htmlFor:"deleteEmailData",className:"text-black text-sm font-medium leading-6 ml-4 form-check-label",children:l("form.personal-data-delete-email-data")})]})})]}),(0,i.jsx)(E.Z,{type:"submit",srText:l("form.contact-submit-btn"),dataId:D.Z.Institutional.PersonalData.Submit,text:l("form.contact-submit-btn"),disabled:o,className:"py-2 md:px-0 w-full md:w-2/12 max-h-[40px]"})]}),(0,i.jsx)(y.Z,{sitekey:k.OL,ref:d,hl:(0,g.Xc)(null===(e=m.query.locale)||void 0===e?void 0:e.toString()),size:"invisible"}),(null===(t=M.email)||void 0===t?void 0:t.message)?(0,i.jsx)("div",{className:"invalid-feedback text-red text-base font-medium mt-2",children:null===(a=M.email)||void 0===a?void 0:a.message}):null]})}var R=a(61768),F=a(30639),P=a(60301),M=function(e){var t=e.label,a=e.data,l=(0,C.$G)().i18n,m=(0,s.use
1State)(a),p=m[0],h=m[1],v=(0,s.useContext)(R.Z).isNative,b=(0,s.useState)(v),w=b[0],g=b[1];return(0,s.useEffect)((function(){if(v){g(!0);var e=function(){var e=(0,n.Z)(r().mark((function e(){var a,n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=l.language||k.ZW,e.prev=1,e.next=4,(0,F.s5)(t,a);case 4:(n=e.sent)&&h(n),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("Failed to fetch CMS page for label: ".concat(t,", locale: ").concat(a),e.t0);case 11:g(!1);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();e()}else g(!1)}),[t,l.language,v]),(0,i.jsxs)(i.Fragment,{children:[!w&&p&&(0,i.jsx)(x.Z,{title:p.title,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.D,{className:f()["institutional-content"],rehypePlugins:[u.Z,d.Z],children:p.content}),t===c.hl.PersonalData&&(0,i.jsx)(L,{})]})}),!w&&!p&&(0,i.jsx)(P.Z,{})]})}},83224:function(e,t,a){"use strict";var n=a(85893);t.Z=function(e){var t=e.title,a=e.children;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("main",{className:"relative bg-white w-full overflow-hidden select-none",children:(0,n.jsxs)("div",{className:"w-full flex flex-col flex-nowrap items-center justify-center gap-y-8 md:gap-y-14 pb-8 md:pb-16",children:[(0,n.jsx)("div",{className:"w-full bg-light-neutral text-left",children:(0,n.jsx)("h1",{className:"w-full max-w-6xl mx-auto text-h3 md:text-h2 py-8 md:py-14 px-3 md:px-10 6xl:px-0",children:t})}),(0,n.jsx)("div",{className:"w-full max-w-6xl mx-auto text-sm md:text-base text-left px-3 md:px-10 6xl:px-0",children:a})]})})})}},10827:function(e,t,a){"use strict";var n=a(85893);a(67294);t.Z=function(e){return(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e.className,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.5C3.45228 5.5 3 5.95228 3 6.5V18.5C3 19.0477 3.45228 19.5 4 19.5H20C20.5477 19.5 21 19.0477 21 18.5V6.5C21 5.95228 20.5477 5.5 20 5.5H4ZM1 6.5C1 4.84772 2.34772 3.5 4 3.5H20C21.6523 3.5 23 4.84772 23 6.5V18.5C23 20.1523 21.6523 21.5 20 21.5H4C2.34772 21.5 1 20.1523 1 18.5V6.5Z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.18085 5.92662C1.49757 5.47417 2.1211 5.36414 2.57355 5.68085L12.0001 12.2794L21.4266 5.68085C21.8791 5.36414 22.5026 5.47417 22.8193 5.92662C23.136 6.37907 23.026 7.0026 22.5735 7.31932L12.5735 14.3193C12.2292 14.5603 11.7709 14.5603 11.4266 14.3193L1.42662 7.31932C0.974174 7.0026 0.864139 6.37907 1.18085 5.92662Z"})]})}},97615:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return i},default:function(){return s}});var n=a(85893),l=a(64512),r=a(63e3),i=!0;function s(e){var t=e.data,a=e.label;return(0,n.jsx)(r.Z,{label:a,data:t})}s.getLayout=function(e){return(0,n.jsx)(l.Z,{isSpecial:!0,children:e})}},33785:function(e){e.exports={"institutional-content":"Institutional_institutional-content__dvuWj"}}},function(e){e.O(0,[1524,7536,9491,4129,9774,2888,179],(function(){return t=69188,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.