PageSourceSearch

https://www.alamoargentina.com.ar/_next/static/chunks/pages/alta-agencia-f4ec14194e2ff690.js

js alamoargentina.com.ar collected 2026-10-07 23:21:22 UTC 18,762 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[572],{2463:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/alta-agencia",function(){return a(9316)}])},9316:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return f},default:function(){return x}});var n=a(5893),o=a(7294),r=a(6939),i=a(5980),c=a(5900),s=a(4853);let l=a(5444).ZP.div.withConfig({componentId:"sc-54f54ac2-0"})([".contact-form-bg{position:relative;display:flex;flex-direction:column;border:1px solid #ecebea;border-radius:6px;background-color:#eeeff0;}.contact-form-bg.no-border{position:relative;}.contact-form-body{padding:56px 48px;flex:1;}@media screen and (max-width:991px){.contact-form-body{padding:30px 20px;}}.contact-form-title{display:flex;justify-content:space-between;align-items:center;}.form-input{height:48px;margin-bottom:0px;padding:10px 20px;border:1px solid #c2cedb;border-radius:4px;transition:border-color 200ms ease-in-out;color:#414b5f;font-size:0.889em;line-height:24px;}.form-input:hover{border-color:#abb5be;}.form-input:focus{border-color:#005daa;outline:0;}.form-input::placeholder{font-family:Poppins,sans-serif;color:rgba(65,75,95,0.6);}.form-label{margin-bottom:8px;font-family:Poppins,sans-serif;font-size:1em;line-height:1.34em;font-weight:400;}.form-feedback{margin-top:24px;padding:28px 24px 32px 32px;border-radius:8px;background-color:transparent;text-align:left;}.form-feedback.bg-error{background-color:#f55564;}.form-feedback.form-success-cont{padding:0px;}.m-top16-lg{margin-top:16px;}.m-top32-lg{margin-top:32px;}.m-bot16-lg{margin-bottom:16px;}.m-bot24-lg{margin-bottom:24px;}.txt-plata{color:#999;}.txt-white{color:white;}.w-input{display:block;width:100%;height:38px;padding:8px 12px;margin-bottom:10px;font-size:14px;line-height:1.42857143;color:#333333;vertical-align:middle;background-color:#ffffff;border:1px solid #cccccc;}.w-form-fail{margin-top:10px;padding:10px;background-color:#ffdede;}.btn-link-txt{color:#3898ec;text-decoration:none;cursor:pointer;}.btn-link-txt:hover{color:#3898ec;text-decoration:underline;cursor:pointer;}.contac-form-submit-cont{display:flex;justify-content:flex-end;}.form-row{display:flex;justify-content:space-between;align-items:center;gap:10px;}.form-col-half{width:calc(50% - 5px);}.form-group{margin-bottom:10px;}.recaptcha-container{display:flex;align-items:center;justify-content:center;margin-bottom:1rem;}@media (min-width:992px){.recaptcha-container{justify-content:flex-end;}}.btn-link-underline{width:100%;}.btn-link-icon{width:11px;height:11px;transform:translate3d(0px,0px,0px) scale3d(1,1,1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg,0deg);transform-style:preserve-3d;}@media (max-width:768px){.form-row{flex-direction:column;}.form-col-half{width:100%;}.contact-form-title{flex-direction:column;align-items:start;gap:5px;}h2{font-size:18px;}}"]);var d=a(1664),p=a.n(d),m=a(4221),h=e=>{let{loading:t,setLoading:a,token:r,mailsAltaAgencia:i}=e,c=(0,o.useRef)(null),[d,h]=(0,o.useState)(!1),[u,f]=(0,o.useState)(!1),[x,g]=(0,o.useState)(!1),[b,v]=(0,o.useState)(""),[j,y]=(0,o.useState)({razonSocial:"",cuit:"",nombreFantasia:"",domicilio:"",localidad:"",mail:"",telefono:"",mailContacto:"",telefonoContacto:"",nombre:"",apellido:""}),w=e=>{let{name:t,value:a}=e.target;y(e=>({...e,[t]:a}))},N=e=>{let t=(e||"").replace(/[.\-\s]/g,"");return t.length>0&&/^\d+$/.test(t)},C=async e=>{if(e.preventDefault(),v(""),!j.razonSocial){v("La raz\xf3n social es un campo obligatorio"),console.error("Error: falta raz\xf3n social");return}if(!j.cuit){v("El CUIT es un campo obligatorio");return}if(!N(j.cuit)){v("El CUIT solo puede contener n\xfameros (ej: 30-12345678-9).");return}if(!d){v("Por favor resuelve el Captcha para enviar.");return}a(!0);try{let e=await (0,m.HH)(j,i,r);if(200!==e.status){g(!1),f(!0);return}g(!0),f(!1),y({razonSocial:"",cuit:"",nombreFantasia:"",domicilio:"",localidad:"",mail:"",telefono:"",mailContacto:"",telefonoContacto:"",nombre:"",apellido:""})}catch(e){console.error("Error en handleSubmit:",e),f(!0),g(!1),v("Error inesperado al enviar la solicitud. Por favor intente nuevamente.")}finally{a(!1),scrollTo(0,0)}};return(0,n.jsx)(l,{children:(0,n.jsx)("section",{id:"contacto",className:"",children:(0,n.jsx)("div",{className:"container-fluid padding-top--regular",children:(0,n.jsx)("div",{id:"LayoutMultiContainer-1642392911",className:"cmp-container","data-alamo-ui":"container","data-component-type":"widget",children:(0,n.jsx)("div",{className:"aem-Grid aem-Grid--12 aem-Grid--default--12 aem-Grid--phone--12",children:(0,n.jsx)("div",{className:"container responsivegrid",children:(0,n.jsx)("div",{className:"contact-form-bg no-border shadow-small",children:(0,n.jsx)("div",{className:"contact-form-body",children:(0,n.jsxs)("div",{className:"contact-form-wrapper w-form",children:[!x&&(0,n.jsxs)("form",{id:"wf-form-Formulario-de-contacto",name:"wf-form-Formulario-de-contacto","data-name":"Formulario de contacto",method:"get","aria-label":"Formulario de contacto",onSubmit:e=>C(e),children:[(0,n.jsxs)("div",{className:"contact-form-title",children:[(0,n.jsx)("h2",{children:"Registro de Agencias de Viajes"}),(0,n.jsx)("div",{className:"txt-body-small-reg txt-plata",children:"*Campos obligatorios"})]}),(0,n.jsxs)("div",{className:"form-group m-top16-lg",children:[(0,n.jsx)("label",{htmlFor:"razon-social",className:"form-label",children:"Raz\xf3n s
1ocial*"}),(0,n.jsx)("input",{type:"text",className:"form-input w-input",maxLength:"256","data-name":"RazonSocial",placeholder:"Ingrese una raz\xf3n social",id:"razon-social",name:"razonSocial",value:j.razonSocial,onChange:w})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"cuit",className:"form-label",children:"CUIT*"}),(0,n.jsx)("input",{type:"text",className:"form-input w-input",maxLength:"13",inputMode:"numeric","data-name":"Cuit",placeholder:"Ej: 30-12345678-9",id:"cuit",name:"cuit",value:j.cuit,onChange:w})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"nombre-fantasia",className:"form-label",children:"Nombre de fantas\xeda"}),(0,n.jsx)("input",{type:"text",className:"form-input w-input",maxLength:"256",name:"nombreFantasia","data-name":"NombreFantasia",placeholder:"Ingrese un nombre de fantas\xeda",id:"nombre-fantasia",value:j.nombreFantasia,onChange:w})]}),(0,n.jsxs)("div",{className:"form-row",children:[(0,n.jsxs)("div",{className:"form-col-half",children:[(0,n.jsx)("label",{htmlFor:"domicilio",className:"form-label",children:"Domicilio"}),(0,n.jsx)("input",{type:"text",className:"form-input w-input",maxLength:"256",name:"domicilio","data-name":"Domicilio",placeholder:"Ingrese su domicilio",id:"domicilio",value:j.domicilio,onChange:w})]}),(0,n.jsxs)("div",{className:"form-col-half",children:[(0,n.jsx)("label",{htmlFor:"localidad",className:"form-label",children:"Localidad"}),(0,n.jsx)("input",{type:"text",className:"form-input w-input",maxLength:"256",name:"localidad","data-name":"Localidad",placeholder:"Ingrese su localidad",id:"localidad",value:j.localidad,onChange:w})]})]}),(0,n.jsxs)("div",{className:"form-row",children:[(0,n.jsxs)("div",{className:"form-col-half",children:[(0,n.jsx)("label",{htmlFor:"mail-empresa",className:"form-label",children:"Email"}),(0,n.jsx)("input",{type:"email",className:"form-input w-input",maxLength:"256",name:"mail","data-name":"Mail",placeholder:"Ingrese su mail",id:"mail",value:j.mail,onChange:w})]}),(0,n.jsxs)("div",{className:"form-col-half",children:[(0,n.jsx)("label",{htmlFor:"telefono-empresa",className:"form-label",children:"Tel\xe9fono"}),(0,n.jsx)("input",{type:"tel",className:"form-input w-input",maxLength:"256",name:"telefono","data-name":"Telefono",placeholder:"Ingrese su tel\xe9fono",id:"telefono",value:j.telefono,onChange:w})]})]}),(0,n.jsx)("h6",{className:"m-top32-lg mb-4",children:"Persona de contacto"}),(0,n.jsxs)("div",{className:"form-row contact-section",children:[(0,n.jsxs)("div",{className:"form-col-half",children:[(0,n.jsx)("label",{htmlFor:"mail-contacto",className:"form-label",children:"Email"}),(0,n.jsx)("input",{type:"email",className:"form-input w-input",maxLength:"256",name:"mailContacto","data-name":"MailContacto",placeholder:"Ingrese su mail",id:"mail-contacto",value:j.mailContacto,onChange:w})]}),(0,n.jsxs)("div",{className:"form-col-half",children:[(0,n.jsx)("label",{htmlFor:"telefono-contacto",className:"form-label",children:"Tel\xe9fono"}),(0,n.jsx)("input",{type:"tel",className:"form-input w-input",maxLength:"256",name:"telefonoContacto","data-name":"TelefonoContacto",placeholder:"Ingrese su tel\xe9fono",id:"telefono-contacto",value:j.telefonoContacto,onChange:w})]})]}),(0,n.jsxs)("div",{className:"form-row contact-section",children:[(0,n.jsxs)("div",{className:"form-col-half",children:[(0,n.jsx)("label",{htmlFor:"nombre-contacto",className:"form-label",children:"Nombre"}),(0,n.jsx)("input",{type:"text",className:"form-input w-input",maxLength:"256",name:"nombre","data-name":"NombreContacto",placeholder:"Ingrese su nombre",id:"nombre-contacto",value:j.nombre,onChange:w})]}),(0,n.jsxs)("div",{className:"form-col-half",children:[(0,n.jsx)("label",{htmlFor:"apellido-contacto",className:"form-label",children:"Apellido"}),(0,n.jsx)("input",{type:"text",className:"form-input w-input",maxLength:"256",name:"apellido","data-name":"ApellidoContacto",placeholder:"Ingrese su apellido",id:"apellido-contacto",value:j.apellido,onChange:w})]})]}),(0,n.jsx)("div",{className:"recaptcha-container",children:(0,n.jsx)(s.Z,{ref:c,sitekey:"6LfghUInAAAAABfvuFmYVkJV0vtkyTrEWF-xytew",onChange:function(){c.current.getValue()&&h(!0)}})}),b&&(0,n.jsx)("div",{className:"form-feedback bg-error w-form-fail",children:(0,n.jsx)("h5",{className:"txt-white",children:b})}),(0,n.jsx)("div",{className:"contac-form-submit-cont",children:(0,n.jsx)("button",{type:"submit",className:"button cmp-button",disabled:t,children:(0,n.jsx)("span",{className:"cmp-button__text",children:"Enviar"})})})]}),(0,n.jsxs)("div",{children:[x&&(0,n.jsxs)("div",{className:"form-feedback form-success-cont",tabIndex:"-1",role:"region","aria-label":"Formulario de contacto success",children:[(0,n.jsx)("div",{className:"txt-body-large-semi m-bot16-lg",children:"Su informaci\xf3n fue enviada satisfactoriamente."}),(0,n.jsx)("div",{className:"m-bot24-lg",children:"Lo contactaremos en la brevedad."}),(0,n.jsxs)("div",{className:"button-link-container",children:[(0,n.jsx)(p(),{href:"/iniciar-sesion",className:"button-link-a-med w-inline-block",children:(0,n.jsxs)("div",{className:"btn-link-txt-cont",children:[(0,n.jsx)("div",{className:"btn-link-txt",children:"Volver al inicio"}),(0,n.jsx)("div",{className:"btn-link-underline"})]})}),(0,n.jsx)("div",{className:"btn-link-icon"})]})]}),u&&(0,n.jsxs)("div",{className:"form-feedback bg-error w-form-fail",tabIndex:"-1",role:"region","aria-label":"Formulario de contacto failure",children:[(0,n.jsx)("h5",{className:"txt-white",children:"Ocurri\xf3 un error inesperado al enviar su informaci\xf3n"}),(0,n.jsx)("div",{children:"Por favor intente nuevamente."})]})]})]})})})})})})})})})},u=a(6326),f=!0;function x(e){let{metatags:t,token:a,userName:s,mailsAltaAgencia:l}=e,[d,p]=(0,o.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[d&&(0,n.jsx)(u.a,{}),(0,n.jsx)(r.Z,{metatags:t,userName:s}),(0,n.jsx)(c.Z,{userName:!0}
1),(0,n.jsx)(h,{loading:d,setLoading:p,token:a,mailsAltaAgencia:l}),(0,n.jsx)(i.Z,{userData:!0})]})}},4853:function(e,t,a){"use strict";a.d(t,{Z:function(){return g}});var n,o,r=a(7294),i=a(5697),c=a.n(i);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var d=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(l(t)),t.handleErrored=t.handleErrored.bind(l(t)),t.handleChange=t.handleChange.bind(l(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(l(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var a=t.prototype;return a.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise(function(t,a){e.executionResolve=t,e.executionReject=a,e.execute()})},a.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},a.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout(function(){document.body.removeChild(e)},5e3)},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var a,n,o={},r=Object.keys(e);for(n=0;n<r.length;n++)t.indexOf(a=r[n])>=0||(o[a]=e[a]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return r.createElement("div",s({},t,{ref:this.handleRecaptchaRef}))},t}(r.Component);d.displayName="ReCAPTCHA",d.propTypes={sitekey:c().string.isRequired,onChange:c().func,grecaptcha:c().object,theme:c().oneOf(["dark","light"]),type:c().oneOf(["image","audio"]),tabindex:c().number,onExpired:c().func,onErrored:c().func,size:c().oneOf(["compact","normal","invisible"]),stoken:c().string,hl:c().string,badge:c().oneOf(["bottomright","bottomleft","inline"])},d.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var p=a(8679),m=a.n(p);
1function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}var u={},f=0,x="onloadcallback",g=(n=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+x+"&render=explicit"},o=(o={callbackName:x,globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",a=function(t){function a(e,a){var n;return(n=t.call(this,e,a)||this).state={},n.__scriptURL="",n}a.prototype=Object.create(t.prototype),a.prototype.constructor=a,a.__proto__=t;var i=a.prototype;return i.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+f++),this.__scriptLoaderID},i.setupScriptURL=function(){return this.__scriptURL=0?n:n(),this.__scriptURL},i.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},i.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=u[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[o.callbackName]},i.componentDidMount=function(){var e=this,t=this.setupScriptURL(),a=this.asyncScriptLoaderGetScriptLoaderID(),n=o,r=n.globalName,i=n.callbackName,c=n.scriptId;if(r&&void 0!==window[r]&&(u[t]={loaded:!0,observers:{}}),u[t]){var s=u[t];if(s&&(s.loaded||s.errored)){this.asyncScriptLoaderHandleLoad(s);return}s.observers[a]=function(t){return e.asyncScriptLoaderHandleLoad(t)};return}var l={};l[a]=function(t){return e.asyncScriptLoaderHandleLoad(t)},u[t]={loaded:!1,observers:l};var d=document.createElement("script");for(var p in d.src=t,d.async=!0,o.attributes)d.setAttribute(p,o.attributes[p]);c&&(d.id=c);var m=function(e){if(u[t]){var a=u[t].observers;for(var n in a)e(a[n])&&delete a[n]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),d.onload=function(){var e=u[t];e&&(e.loaded=!0,m(function(t){return!i&&(t(e),!0)}))},d.onerror=function(){var e=u[t];e&&(e.errored=!0,m(function(t){return t(e),!0}))},document.body.appendChild(d)},i.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===o.removeOnUnmount)for(var t=document.getElementsByTagName("script"),a=0;a<t.length;a+=1)t[a].src.indexOf(e)>-1&&t[a].parentNode&&t[a].parentNode.removeChild(t[a]);var n=u[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===o.removeOnUnmount&&delete u[e])},i.render=function(){var t=o.globalName,a=this.props,n=(a.asyncScriptOnLoad,a.forwardedRef),i=function(e,t){if(null==e)return{};var a,n,o={},r=Object.keys(e);for(n=0;n<r.length;n++)t.indexOf(a=r[n])>=0||(o[a]=e[a]);return o}(a,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(i[t]=void 0!==window[t]?window[t]:void 0),i.ref=n,(0,r.createElement)(e,i)},a}(r.Component),i=(0,r.forwardRef)(function(e,t){return(0,r.createElement)(a,h({},e,{forwardedRef:t}))});return i.displayName="AsyncScriptLoader("+t+")",i.propTypes={asyncScriptOnLoad:c().func},m()(i,e)})(d)}},function(e){e.O(0,[714,64,775,900,888,774,179],function(){return e(e.s=2463)}),_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.