1"use strict";(self.webpackChunkceet_carroya_frontend_portal=self.webpackChunkceet_carroya_frontend_portal||[]).push([[307],{1248:function(e,t,a){var r=a(4002),n=a(8219);t.A=e=>{var t=e.size,a=void 0===t?24:t,o=e.color,i=void 0===o?n.y.darkland50:o;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:a,fill:"none",color:i},r.createElement("path",{fill:"#2F6ED0",fillRule:"evenodd",d:"M7 1.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM.5 7a6.5 6.5 0 1 1 13 0 6.5 6.5 0 1 1-13 0Z",clipRule:"evenodd"}),r.createElement("path",{fill:"#2F6ED0",fillRule:"evenodd",d:"M5.833 7a.5.5 0 0 1 .5-.5H7a.5.5 0 0 1 .5.5v3.333a.5.5 0 1 1-1 0V7.5h-.167a.5.5 0 0 1-.5-.5ZM6.167 5.002a.666.666 0 1 1 1.331-.006.666.666 0 0 1-1.331.006Zm.195 0-.195.002V5h.194v.002Z",clipRule:"evenodd"}))}},8150:function(e,t,a){a.d(t,{W:function(){return i}});var r=a(4002),n=a(6942),o=a.n(n),i=e=>{var t=e.tag,a=void 0===t?"span":t,n=e.children,i=e.typography,c=e.className;return r.createElement(r.Fragment,null,(e=>{switch(e){case"span":return r.createElement("span",{className:o()("CyText",{[i]:!!i},c)},n);case"p":return r.createElement("p",{className:o()("CyText",{[i]:!!i},c)},n);case"h1":return r.createElement("h1",{className:o()("CyText",{[i]:!!i},c)},n);case"h2":return r.createElement("h2",{className:o()("CyText",{[i]:!!i},c)},n);case"h3":return r.createElement("h3",{className:o()("CyText",{[i]:!!i},c)},n);case"h4":return r.createElement("h4",{className:o()("CyText",{[i]:!!i},c)},n);case"h5":return r.createElement("h5",{className:o()("CyText",{[i]:!!i},c)},n);case"h6":return r.createElement("h6",{className:o()("CyText",{[i]:!!i},c)},n)}})(a))}},2408:function(e,t,a){a.r(t),a.d(t,{ModalNoLogin:function(){return m},default:function(){return d}});var r=a(4002),n=a(4053),o=a(1484),i=a(5158),c=a(8150);var l=a.p+"static/media/close.4f4691982f91b6f2f68f7ebe4840e690.svg",s=a(4056),u=function(e){return e.returnTo="return_to",e}(u||{}),m=e=>{var t=e.show,a=e.onClose,m=(0,s.useHistory)(),d=e=>{n.CryptoStorage.setSessionStorage(u.returnTo,window.btoa(encodeURIComponent(window.location.pathname))),m.push(e)};return r.createElement(i.s,{active:t},r.createElement("div",{onClick:e=>e.stopPropagation,className:"cy-modal-no-login"},r.createElement("img",{id:"cy-modal-no-login-icon-close",className:"cy-modal-no-login__close",src:l,alt:"Cerrar modal",onClick:a}),r.createElement(c.W,{className:"cy-modal-no-login__title",tag:"h2",typography:"heading-3"},"¡Hey!"),r.createElement(c.W,{className:"cy-modal-no-login__description",typography:"subtitle-lg"},"Para guardar tus vehÃculos favoritos ingresa a tu cuenta o regÃstrate"),r.createElement("div",{className:"cy-modal-no-login__btns"},r.createElement(o.j,{id:"cy-modal-no-login-btn-signup",iconPosition:"none",size:"small",onClick:()=>d("/usuario/crear-cuenta"),type:"outline",width:"fixed"},"Registrarme"),r.createElement(o.j,{id:"cy-modal-no-login-btn-signin",iconPosition:"none",size:"small",onClick:()=>d("/usuario/iniciar-sesion"),width:"fixed"},"Iniciar sesión"))))},d=m},5682:function(e,t,a){var r=a(4002),n=a(4056);t.A=e=>{var t=e.children,a=e.onClick,o=e.rightIcon,i=e.theme,c=void 0===i?"primary":i,l=e.size,s=void 0===l?"lg":l,u=e.externalUrl,m=void 0!==u&&u,d=e.to,p=e.display,y=void 0===p?"inline-flex":p,v="containerNewButton containerNewButton__".concat(c," containerNewButton__").concat(y," containerNewButton--").concat(s),f=(0,n.useHistory)(),h=r.createElement(r.Fragment,null,t,o&&r.createElement("div",{className:"containerNewButton__containerIcon"},o));return d&&m?r.createElement("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:v,onClick:a},h):d?r.createElement(n.Link,{to:d,className:v,onClick:e=>(a()||setTimeout(()=>{f.push(d)},1),e.preventDefault(),!1)},h):r.createElement("div",{className:v,onClick:a},h)}},6213:function(e,t,a){a.d(t,{A:function(){return o}});var r=a(4002);var n=a.p+"static/media/cy_error_service.a11e4fa2885e7aff55fe8fa06c82d2a3.svg",o=e=>r.createElement("div",{className:"containerCyError"},r.createElement("figure",{className:"containerCyError__containerImage"},r.createElement("img",{className:"containerCyError__containerImage__image",src:n,alt:"Icono de error del servicio",width:288,height:221})),r.createElement("p",{className:"containerCyError__title"},e.message?e.message:"Lo sentimos, tuvimos un error de conexión."),r.createElement("p",{className:"containerCyError__subtitle"},e.secondMessage?e.secondMessage:"Por favor, recarga la página."))},4430:function(e,t,a){var r=a(4002),n=a(8817),o=a(8219),i=a(1484),c=a(5158),l=a(9110),s=a(6764),u=["Quién es el propietario actual y sus datos de tránsito.","Información técnica: placa, marca, clase, lÃnea y carrocerÃa.","Si tiene limitaciones para el traspaso.","Que esté libre de medidas cautelares y regrabaciones.","Si está al dÃa con el seguro obligatorio y la revisión técnico-mecánica."];t.A=e=>{var t=e.locationCallModal,a=e.isActive,m=e.onClose,d=(0,s.Ay)().setTealium,p=(e,a)=>{d({type:"link",structure:{tealium_event:"link",event_name:"click",click:"".concat(t,"-").concat(e)}}),m(),window.open(a,"_blank","noopener,noreferrer")};return r.createElement(c.A,{active:a},r.createElement("section",{className:"containerPrincipalModalCertimas"},r.createElement("div",{className:"containerModalCertimas"},r.createElement("div",{className:"containerModalCertimas__iconClose",onClick:m,"aria-label":"Cerrar modal"},r.createElement(n.A,{color:o.y.gray,size:20})),r.createElement("div",{className:"containerModalCertimas__content"},r.createElement("figure",null,r.createElement("img",{src:"".concat(l.cA.public.assets,"/images/home/cy_certimas_modal_services.webp"),alt:"Historial vehicular en Colombia con Automás"})),r.createElement("div",null,r.createElement("h2",{className:"containerModalCertimas__content__title"},"Historia Vehicular ",r.createElement("span",null,"- CertiMás")),r.createElement("p",null,"Evita sorpresas y compra tu próximo vehÃculo con total confianza."," ",r.createElement("b",null,"Solo necesitas la placa para solicitarlo.")),r.createElement("p",null,"Con ",r.createElement("b",null,"CertiMás")," podrás conocer:"),r.createElement("ul",{className:"containerModalCertimas__content__list"},u.map(e=>r.createElement("li",{key:e},e))),r.createElement("p",null,"ð"," ",r.createElement("b",null,"CertiMás, expedido por nuestro alia
1do AutoMás, complementa el peritaje mecánico y te da la tranquilidad de tomar la mejor decisión al comprar tu vehÃculo.")),r.createElement("div",{className:"containerModalCertimas__monetaryValues"},r.createElement("p",{className:"containerModalCertimas__monetaryValues__value"},"Valor:"),r.createElement("div",null,r.createElement("table",null,r.createElement("tbody",null,r.createElement("tr",{className:"containerModalCertimas__monetaryValues__table__title"},r.createElement("td",null,"1 CertiMás"),r.createElement("td",null,"3 CertiMás"),r.createElement("td",null,"5 CertiMás")),r.createElement("tr",null,r.createElement("td",null,"$23.000"),r.createElement("td",null,"$59.000"),r.createElement("td",null,"$105.000")))))))),r.createElement("div",{className:"containerModalCertimas__content__buttons"},r.createElement(i.A,{size:"medium",onClick:()=>p("comprar","https://servicio.automas.co/compras/carroya/")},"Comprar ahora"),r.createElement(i.A,{size:"medium",type:"text",iconPosition:"none",className:"containerModalCertimas__content__buttons__last",onClick:()=>p("ver-ejemplo","https://www.automas.com.co/wp-content/uploads/2021/11/CertiMas-Descripcion-de-informe.pdf")},"Ver ejemplo")))))}},8157:function(e,t,a){a.r(t),a.d(t,{default:function(){return oa}});var r=a(4002),n=a(5756),o=a(9467),i=a(8594),c=a(2284),l=a(6734),s={h1:e=>r.createElement("h1",e,null==e?void 0:e.children),h2:e=>r.createElement("h2",e,null==e?void 0:e.children),h3:e=>r.createElement("h3",e,null==e?void 0:e.children),h4:e=>r.createElement("h4",e,null==e?void 0:e.children),h5:e=>r.createElement("h5",e,null==e?void 0:e.children),h6:e=>r.createElement("h6",e,null==e?void 0:e.children)},u=e=>{var t=e.text,a=e.textToHighlight,n=void 0===a?"":a,o=e.theme,i=void 0===o?"primary ":o,c=e.tag,l=void 0===c?"h2":c,u=e.classname,m=void 0===u?"":u,d=s[l],p=t.toLowerCase().indexOf(n.toLowerCase()),y=t.slice(0,p),v=t.slice(p,p+n.length),f=t.slice(p+n.length);return r.createElement(r.Fragment,null,r.createElement(d,{className:"titleTextsTags titleTextsTags__".concat(i," ").concat(m)},y,r.createElement("span",{className:"titleTextsTags__textToHighlight"},v),f))},m=a(8219),d=e=>{var t=e.size,a=void 0===t?48:t,n=e.color,o=void 0===n?m.y.info50:n;return r.createElement("svg",{fill:o,width:a,height:a,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fill:o,fillRule:"evenodd",clipRule:"evenodd",d:"M3.46961 16.5303C3.76247 16.8232 4.23734 16.8232 4.53027 16.5304L12.0018 9.06051L19.4698 16.526C19.7627 16.8188 20.2376 16.8187 20.5304 16.5258C20.8233 16.2329 20.8232 15.758 20.5302 15.4651L12.532 7.46958C12.2391 7.1768 11.7644 7.17681 11.4715 7.46961L3.46973 15.4696C3.1768 15.7625 3.17675 16.2373 3.46961 16.5303Z"}))},p=a(5682),y=(0,r.forwardRef)((e,t)=>{var a=e.children,n=e.isPositioned,o=e.showCleanFilterButton,i=e.handleClickAccept;return r.createElement("div",{className:"containerDropDesktop ".concat(n?"dropdown-floating dropdown-floating--visible":"dropdown-floating"),ref:t},a,r.createElement("div",{className:"containerDropDesktop__buttons"},o?r.createElement("p",{className:"containerDropDesktop__buttons__cleantext"},"Limpiar filtro"):r.createElement("p",null),r.createElement(p.A,{children:"Aceptar",onClick:i,size:"md"})))}),v=a(9110);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var g=e=>{var t,a,n=e.name,o=e.value,i=e.label,c=e.checked,l=e.onChange,s=e.disabled,u=void 0!==s&&s,m=e.hasLogo,d=void 0!==m&&m,p=f((0,r.useState)(!1),2),y=p[0],h=p[1];return r.createElement("label",{className:"containerCustomRadio ".concat(c?"containerCustomRadio--checked":""," ").concat(u?"containerCustomRadio--disabled":""),id:o,style:{gap:"".concat(d?"2px":"8px")}},r.createElement("input",{id:o,type:"radio",name:n,value:o,checked:c,onChange:()=>{u||l(o)},disabled:u}),r.createElement("span",{className:"containerCustomRadio__visual"}),d&&"Todas las marcas"!==i&&r.createElement("img",{src:y?"".concat(v.cA.public.assets,"/images/logos/brandsSelect/cy_no_marca.webp"):"".concat(v.cA.public.assets,"/images/logos/brandsSelect/").concat((t=i,a=t.toLowerCase().replace(/\s+/g,"_"),"cy_".concat(a,".webp"))),alt:"Icono de ".concat(i),width:40,height:40,loading:"lazy",onError:()=>{h(!0)}}),r.createElement("h3",{className:"containerCustomRadio__label"},i))},b=e=>{var t=e.size,a=void 0===t?48:t,n=e.color,o=void 0===n?m.y.info50:n;return r.createElement("svg",{fill:o,width:a,height:a,viewBox:"0 0 24 25",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fill:o,fillRule:"evenodd",clipRule:"evenodd",d:"M3.11853 3.14026C5.27657 0.98222 8.77543 0.98222 10.9335 3.14026C13.0714 5.27819 13.0913 8.7321 10.9932 10.8945C10.9712 10.9121 10.9499 10.931 10.9296 10.9514C10.9092 10.9718 10.8903 10.993 10.8727 11.015C8.71027 13.113 5.25644 13.0931 3.11853 10.9552C0.960491 8.79716 0.960491 5.29829 3.11853 3.14026ZM11.4358 12.5183C8.6766 14.748 4.62252 14.5805 2.05787 12.0159C-0.685956 9.27203 -0.685956 4.82342 2.05787 2.0796C4.80169 -0.664227 9.25031 -0.664227 11.9941 2.0796C14.5588 4.64429 14.7263 8.69844 12.4964 11.4576L17.2803 16.2414
1C17.5732 16.5343 17.5732 17.0092 17.2803 17.3021C16.9874 17.595 16.5125 17.595 16.2196 17.3021L11.4358 12.5183Z"}))};function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?k(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var E=e=>{var t=e.name,a=e.options,n=e.selectedValue,o=e.onChange,i=e.placeholder,c=void 0===i?"Busca la marca":i,l=e.showInputToFilter,s=void 0===l||l,u=e.hasLogo,d=void 0!==u&&u,p=_((0,r.useState)(""),2),y=p[0],v=p[1],f=(0,r.useMemo)(()=>null==a?void 0:a.filter(e=>{var t;return null==e||null===(t=e.label)||void 0===t?void 0:t.toLowerCase().includes(null==y?void 0:y.toLowerCase())}),[y,a]);return r.createElement("div",{className:"containerListInputRadioGroup"},s&&r.createElement("div",{className:"containerListInputRadioGroup__containerSearch"},r.createElement("div",{className:"containerListInputRadioGroup__containerSearch__icon"},r.createElement(b,{size:20,color:m.y.darkland50})),r.createElement("input",{className:"containerListInputRadioGroup__containerSearch__search",type:"text",placeholder:c,value:y,onChange:e=>v(e.target.value)})),r.createElement("div",{className:"containerListInputRadioGroup__radio-group"},null==f?void 0:f.map(e=>r.createElement(g,{key:e.value,name:t,value:e.value,label:e.label,checked:n===e.value,onChange:o,hasLogo:d}))))},x=a(7525),C=a(8817),w=a(6678),S=a(1760),A=e=>{var t=e.size,a=void 0===t?24:t,n=e.color,o=void 0===n?m.y.darkland50:n;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:a,fill:o},r.createElement("path",{fill:"#8A0F0F",fillRule:"evenodd",d:"M11 6.5a5 5 0 1 1-10 0 5 5 0 0 1 10 0Zm1 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM6 3.833a.5.5 0 0 1 .5.5v2.078a.5.5 0 0 1-1 0V4.333a.5.5 0 0 1 .5-.5Zm-.64 4.388a.638.638 0 1 1 1.277-.005.638.638 0 0 1-1.276.005Z",clipRule:"evenodd"}))};function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var T=e=>{var t=e.label,a=e.placeholder,n=e.placeholderSearch,o=e.hasRemoveFilter,i=e.initialValue,l=e.showCleanFilterButton,s=void 0===l||l,u=e.showInputToFilter,v=void 0===u||u,f=e.value,h=e.onChange,g=e.options,b=e.isDisabled,_=e.showRangeYears,k=e.titleModalSelect,I=void 0===k?"Elige un tipo de vehÃculo":k,T=e.hasLogo,O=void 0!==T&&T,j=N((0,r.useState)(!1),2),P=j[0],M=j[1],D=N((0,r.useState)(!1),2),z=D[0],L=D[1],B=N((0,r.useState)(null),2),H=B[0],R=B[1],U=(0,r.useRef)(null),V=(0,r.useRef)(null),q=N((0,r.useState)(f),2),F=q[0],G=q[1],Y=N((0,c.A)(),1)[0],W=N((0,r.useState)(!1),2),$=W[0],J=W[1],Z=e=>{U.current&&!U.current.contains(e.target)&&M(!1)},Q=(e,t)=>{if(/^\d*$/.test(e))if("start"===t){var a,r=null!==(a=null==F?void 0:F.split("-")[1])&&void 0!==a?a:"";G("".concat(e,"-").concat(r))}else{var n,o=null!==(n=null==F?void 0:F.split("-")[0])&&void 0!==n?n:"";G("".concat(o,"-").concat(e))}},X=(()=>{var e;if(_){var t=null==g?void 0:g.find(e=>e.value===f);return t?t.label:f.split("-").join(" - ")}return f&&"all"!==f?null==g||null===(e=g.find(e=>e.value===f))||void 0===e?void 0:e.label:a})(),K=()=>{window.document.querySelector("body").classList.remove("no_scroll");var e=(()=>{var e=F.split("-");if(e.length<2)return"Ingresa ambas fechas para buscar. Intenta de nuevo.";var t=N(e,2),a=t[0],r=t[1];return a&&r?Number(a)<=Number(r)?"Valido":"La fecha inicial debe ser menor. Vuelve a intentarlo":"Ingresa ambas fechas para buscar. Intenta de nuevo."})(),t=String((new Date).getFullYear());if(_&&"Valido"!==e&&("all"!==F&&F!==t))return R(e),void L(!0);h(F),M(!1)};(0,r.useEffect)(()=>(P?document.addEventListener("mousedown",Z):document.removeEventListener("mousedown",Z),()=>{document.removeEventListener("mousedown",Z)}),[P]),(0,r.useEffect)(()=>{P||G(f)},[P]),(0,r.useEffect)(()=>{G(f)},[f]),(0,r.useEffect)(()=>
1{if(P&&U.current&&V.current){var e=U.current,t=V.current,a=(0,S.autoUpdate)(e,t,()=>{e.isConnected&&t.isConnected&&(0,S.computePosition)(e,t,{placement:"bottom-start",middleware:[(0,S.offset)(4),(0,S.flip)()]}).then(e=>{var a=e.x,r=e.y;Object.assign(t.style,{left:"".concat(a,"px"),top:"".concat(r,"px"),position:"absolute"}),J(!0)})});return()=>a()}},[P]);var ee=(()=>{if(!_)return{startDate:"",endDate:""};if(g.find(e=>e.value===F))return{startDate:"",endDate:""};var e=N((null!=F?F:"-").split("-"),2);return{startDate:e[0],endDate:e[1]}})(),te=ee.startDate,ae=ee.endDate;return r.createElement("div",{ref:U,className:"containerSearchVehicleSelector"},r.createElement("p",{className:"containerSearchVehicleSelector__label"},t),r.createElement("div",{"aria-disabled":!0,className:"containerSearchVehicleSelector__placeholderIcon ".concat(b?"containerSearchVehicleSelector__placeholderIcon__disabled":""),onClick:()=>{var e=!P;M(e),e&&J(!1)}},r.createElement("h3",{className:"containerSearchVehicleSelector__placeholderIcon__text"},X),r.createElement("div",{className:"containerSearchVehicleSelector__placeholderIcon__icon"},o&&!P?r.createElement("div",{onClick:e=>{G(i),h(i),e.stopPropagation()}},r.createElement(C.A,{size:18,color:m.y.red50})):P?r.createElement(d,{size:20,color:m.y.red50}):r.createElement(x.A,{size:20,color:m.y.red50}))),P&&"mobile"!==Y.device&&r.createElement(y,{handleClickAccept:K,handleClickClean:()=>{},showCleanFilterButton:s,ref:V,isPositioned:$},_&&r.createElement("p",{className:"containerListInputRadioGroup__titleChooseOption"},"Escoge una opción"),r.createElement(E,{name:"select",options:g,selectedValue:F,onChange:G,showInputToFilter:v,hasLogo:O,placeholder:n}),_&&r.createElement("div",{className:"containerListInputRadioGroup__range-years"},r.createElement("p",{className:"containerListInputRadioGroup__titleChooseOption"},"Escribe el rango de años"),r.createElement("div",{className:"containerListInputRadioGroup__range-years__yearContainer"},r.createElement("div",{className:"containerListInputRadioGroup__range-years__yearContainer__slider"},r.createElement("div",{className:"containerListInputRadioGroup__range-years__yearContainer__slider__input"},r.createElement("input",{placeholder:"Desde",id:"yearMin",className:"yearRange ".concat(z?"error":""),maxLength:4,onChange:e=>{Q(e.target.value,"start")},onFocus:()=>L(!1),value:te})),r.createElement("div",{className:"containerListInputRadioGroup__range-years__yearContainer__slider__sliderSeparator"},"-"),r.createElement("div",{className:"containerListInputRadioGroup__range-years__yearContainer__slider__input"},r.createElement("input",{placeholder:"Hasta",id:"yearMax",className:"yearRange ".concat(z?"error":""),maxLength:4,onChange:e=>{Q(e.target.value,"end")},onFocus:()=>L(!1),value:ae})))),z&&r.createElement("div",{className:"containerListInputRadioGroup__range-years__containerIconTextError"},r.createElement("div",{className:"containerListInputRadioGroup__range-years__iconErrorMessage"},r.createElement(A,{size:15})),r.createElement("p",{className:"containerListInputRadioGroup__range-years__errorMessage"},H)))),P&&"mobile"===Y.device&&r.createElement(w.A,{titleselect:I,closeP:()=>M(!1),show:!0,customColorBackground:"white"},r.createElement("div",{className:"footerContainerModal"},r.createElement("div",null,r.createElement(E,{name:"select",options:g,selectedValue:F,onChange:G,showInputToFilter:v,hasLogo:O}),_&&r.createElement("div",{className:"containerListInputRadioGroup__range-years"},r.createElement("p",{className:"containerListInputRadioGroup__titleChooseOption"},"Escribe el rango de años"),r.createElement("div",{className:"containerListInputRadioGroup__range-years__yearContainer"},r.createElement("div",{className:"containerListInputRadioGroup__range-years__yearContainer__slider"},r.createElement("div",{className:"containerListInputRadioGroup__range-years__yearContainer__slider__input"},r.createElement("input",{placeholder:"Desde",id:"yearMin",className:"yearRange ".concat(z?"error":""),maxLength:4,onChange:e=>{Q(e.target.value,"start")},onFocus:()=>L(!1),value:te})),r.createElement("div",{className:"containerListInputRadioGroup__range-years__yearContainer__slider__sliderSeparator"},"-"),r.createElement("div",{className:"containerListInputRadioGroup__range-years__yearContainer__slider__input"}
1,r.createElement("input",{placeholder:"Hasta",id:"yearMax",className:"yearRange ".concat(z?"error":""),maxLength:4,onChange:e=>{Q(e.target.value,"end")},onFocus:()=>L(!1),value:ae})))),z&&r.createElement("div",{className:"containerListInputRadioGroup__range-years__containerIconTextError"},r.createElement("div",{className:"containerListInputRadioGroup__range-years__iconErrorMessage"},r.createElement(A,{size:15})),r.createElement("p",{className:"containerListInputRadioGroup__range-years__errorMessage"},H)))),r.createElement("div",{className:"containerBottomButtons"},r.createElement(p.A,{children:"Omitir",onClick:()=>{window.document.querySelector("body").classList.remove("no_scroll"),M(!1)},size:"md",theme:"quinary"}),r.createElement(p.A,{children:"Aceptar",onClick:()=>{K()},size:"md"})))))},O=e=>{var t=e.children,a=e.customClassName;return r.createElement("div",{className:"containerCardSection ".concat(a||"")},t)},j=a(7216),P=a(6764),M=a(6652),D=a(9103),z=a(907),L=a(4056);function B(e,t,a,r,n,o,i){try{var c=e[o](i),l=c.value}catch(e){return void a(e)}c.done?t(l):Promise.resolve(l).then(r,n)}function H(e){return function(){var t=this,a=arguments;return new Promise(function(r,n){var o=e.apply(t,a);function i(e){B(o,r,n,i,c,"next",e)}function c(e){B(o,r,n,i,c,"throw",e)}i(void 0)})}}function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function U(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?R(Object(a),!0).forEach(function(t){V(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):R(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function V(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return F(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?F(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var G=e=>{var t=e.content,a=(0,P.Ay)().setTealium,n=(0,L.useHistory)(),o={id:-999,label:"Todos los tipos de vehÃculos",value:"all",count:null},i={id:-999,label:"Todas las marcas",value:"all",count:null},c={id:-999,label:"Todas las lÃneas",value:"all",count:null},l=(new Date).getFullYear(),s=[{id:-999,label:"Todos los años",value:"all"},{id:1,label:"Ãltimo año",value:"".concat(l)},{id:2,label:"Ãltimos 3 años",value:"".concat(l-2,"-").concat(l)},{id:3,label:"Ãltimos 5 años",value:"".concat(l-4,"-").concat(l)},{id:4,label:"Ãltimos 10 años",value:"".concat(l-9,"-").concat(l)}],y=q((0,r.useState)("Automóviles y Camionetas"),2),f=y[0],h=y[1],g=q((0,r.useState)(null),2),b=g[0],_=g[1],k=q((0,r.useState)("all"),2),E=k[0],x=k[1],C=q((0,r.useState)(null),2),w=C[0],S=C[1],A=q((0,r.useState)("all"),2),N=A[0],I=A[1],B=q((0,r.useState)(null),2),R=B[0],V=B[1],F=q((0,r.useState)("all"),2),G=F[0],Y=F[1],W=e=>U(U({},e),{},{label:e.label||e.name,value:e.name}),$=e=>e.sort((e,t)=>
1e.name.localeCompare(t.name));function J(){return J=H(function*(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,a=0;a<e;)try{var r=v.cA.url_habilitadora+"/find-vehicle-by-category-brand-wsearch/allCategories",n=yield j.default.get(r);if(200===n.status&&n.data){var i=n.data.map(W),c=[o,...i];return void _(c)}return void _([])}catch(r){if(++a>=e)return void _([]);yield new Promise(e=>setTimeout(e,t))}}),J.apply(this,arguments)}function Z(){return Z=H(function*(){try{var e=v.cA.url_habilitadora+"/find-vehicle-by-category-brand-wsearch/filter?category=".concat(f),t=yield j.default.get(e);if(200===t.status&&t.data){var a=$(t.data.map(W)),r=[i,...a];S(r),x("all")}else console.warn("La respuesta no contiene datos válidos",t),S([])}catch(e){console.error("Error al obtener marcas:",e),S([])}}),Z.apply(this,arguments)}function Q(){return Q=H(function*(){try{var e=v.cA.url_habilitadora+"/find-vehicle-by-category-brand-wsearch/filter?category=".concat(f,"&brand=").concat(E),t=yield j.default.get(e);if(200===t.status&&t.data){var a=$(t.data.map(W)),r=[c,...a];V(r),I("all")}else console.warn("La respuesta no contiene datos válidos",t),V([])}catch(e){console.error("Error al obtener marcas:",e),V([])}}),Q.apply(this,arguments)}(0,r.useEffect)(()=>{!function(){J.apply(this,arguments)}()},[]),(0,r.useEffect)(()=>{!function(){Z.apply(this,arguments)}()},[f]),(0,r.useEffect)(()=>{"all"!==f&&"all"!==E&&E?function(){Q.apply(this,arguments)}():(I("all"),V(null))},[f,E]);var X=0===(null==b?void 0:b.length)||null===b,K="all"===f||X||0===(null==w?void 0:w.length),ee="all"===f||null===R||"all"==E||X||0===(null==R?void 0:R.length);return r.createElement("div",{className:"containerSearchVehicle"},r.createElement(O,null,r.createElement(u,{text:t.title.text,textToHighlight:t.title.textToHighlight,classname:"containerSearchVehicle__marginBottom"}),r.createElement("div",{className:"containerSearchVehicle__grid"},r.createElement("div",{className:"containerSearchVehicle__grid__selector"},r.createElement(T,{placeholder:"Todos los tipos de vehÃculos",label:"Tipo de vehÃculo",hasRemoveFilter:f!==o.value,initialValue:o.value,showCleanFilterButton:!1,showInputToFilter:!1,onChange:h,options:b,value:f,isDisabled:X})),r.createElement("div",{className:"containerSearchVehicle__grid__selector"},r.createElement(T,{placeholder:"Todas las marcas",label:"Marca",hasRemoveFilter:E!==i.value,initialValue:i.value,showCleanFilterButton:!1,onChange:x,options:w,value:E,isDisabled:K,titleModalSelect:"Ahora elige una marca",hasLogo:!0})),r.createElement("div",{className:"containerSearchVehicle__grid__selector"},r.createElement(T,{placeholder:"Todas las lÃneas",label:"LÃnea",hasRemoveFilter:N!==c.value,initialValue:c.value,showCleanFilterButton:!1,onChange:I,options:R,value:N,isDisabled:ee,titleModalSelect:"Elige una lÃnea",placeholderSearch:"Busca la lÃnea"})),r.createElement("div",{className:"containerSearchVehicle__grid__selector"},r.createElement(T,{placeholder:"Todas los años",label:"Año",hasRemoveFilter:"all"!==G,initialValue:c.value,showCleanFilterButton:!1,showInputToFilter:!1,onChange:Y,options:s,value:G,showRangeYears:!0,isDisabled:X,titleModalSelect:"Selecciona un rango de años"}))),r.createElement("div",{className:"containerSearchVehicle__button ".concat(X&&"containerSearchVehicle__buttonDisabled")},r.createElement(p.A,{children:"Buscar",theme:"primary",onClick:()=>{var e="all"!==E?E:"todas_las_marcas",t="all"!==N?N:"todas_las_lineas",r="all"!==G?G:"todos_los_años",o='"CD5":"'.concat("all"!==f?f:"todos_los_tipos_de_vehiculos",'","CD6":"').concat(e,'","CD22":"').concat(t,'","CD8":"').concat(r,'"');a((0,M.ex)(M._q,"-boton_buscar",o));var i="";i="all"!==f?f?"".concat(i,"/").concat((0,D.AU)(f,"-")):i:z.D.search.general,"all"!==E&&(i=E?"".concat(i,"/").concat((0,D.AU)(E,"-")):i),"all"!==N&&(i=N?"".concat(i,"/").concat((0,D.AU)(N,"-")):i),"all"!==G&&(i=G===l.toString()?G?"".concat(i,"/").concat(G,"?page=1"):i:G?"".concat(i,"?page=1&modelRange=").concat((0,D.AU)(G,"-")):i),setTimeout(()=>{n.push(i||z.D.search.general)},1)},display:"flex",rightIcon:r.createElement("div",{className:"containerSearchVehicle__containerButtonIcon"},r.createElement(d,{size:15,color:m.y.white}))}))))},Y=a(8848),W=e=>{var t=e.onClick,a=e.textButton,n=e.themeButton,o=void 0===n?"primary":n,i=e.altImg,c=e.srcImg,l=e.title,s=e.titleToHighlight,m=e.description,d=e.externalUrl,y=e.to,v=(0,L.useHistory)();return r.createElement("section",{className:"containerCyCardSell",onClick:e=>{e.target.closest(".containerNewButton")||(t(),y&&(d?window.open(y,"_blank","noopener,noreferrer"):setTimeout(()=>{v.push(y)},1)))}},r.createElement("figure",{className:"containerCyCardSell__containerImage"},r.createElement("img",{className:"containerCyCardSell__containerImage__image",src:c,alt:i})),r.createElement("div",{className:"containerCyCardSell__content"},r.createElement("div",{className:"containerCyCardSell__content__texts"},r.createElement(u,{text:l,textToHighlight:s,tag:"h3",theme:"secondary"}),r.createElement("p",{className:"containerCyCardSell__content__texts__description"},m)),r.createElement(p.A,{theme:o,onClick:t,size:"md",externalUrl:d,to:y,display:"inline-flex"},r.createElement("h3",{className:"customTextButtonSell ".concat("primary"===o?"customTextButtonSell--white":"")},a))))},$=a(7080),J=e=>{var t=e.content.title,a=(0,P.Ay)().setTealium,n=(0,$.U)().width,o="".concat(v.cA.public.assets,"/images/home/cy_sell_loHacemosPorTi.webp"),i="".concat(v.cA.public.assets,"/images/home/cy_sell_loHacemosPorTi_dk.webp"),c="".concat(v.cA.public.assets,"/images/home/cy_sell_vendelo.webp"),l="".concat(v.cA.public.assets,"/images/home/cy_sell_vendelo_dk.webp"),s=[{id:1,title:"Nosotros lo hacemos por ti",t
1itleToHighlight:"lo hacemos por ti",srcImg:"".concat(n>1023&&n<1366?i:o),altImg:"Vendemos tu vehÃculo (carro, camioneta, moto o más) de forma segura, fácil y rápida en toda Colombia con Carroya",description:"Nos encargamos de todo el proceso seguro de venta.",textButton:"Véndelo por mi",externalUrl:!0,url:v.cA.services_urls.saleCarbrokerWhatsApp,tag:"enlace_chat_asesor"},{id:2,title:"Puedes venderlo tú mismo",titleToHighlight:"venderlo tú mismo",srcImg:"".concat(n>1023&&n<1366?l:c),altImg:"Vende tu vehÃculo (carro, camioneta, moto o más) en toda Colombia de forma rápida,segura y fácil con CarroYa",description:"Publica, negocia y vende directamente sin preocupaciones.",textButton:"Vende tu carro",externalUrl:!1,url:"/publicar",tag:"enlace_publicar_mi_carro"}];return r.createElement(O,null,r.createElement(u,{text:t.text,textToHighlight:t.textToHighlight}),r.createElement("div",{className:"containerCardsSell"},s.map(e=>r.createElement("div",{className:"containerCardsSell__card",key:e.id},r.createElement(W,{title:e.title,titleToHighlight:e.titleToHighlight,srcImg:e.srcImg,altImg:e.altImg,description:e.description,onClick:()=>{return t=e.tag,void a({type:"link",structure:{tealium_event:"link",event_name:"click",click:"seccion_vender-"+t}});var t},textButton:e.textButton,externalUrl:e.externalUrl,to:e.url})))))},Z=e=>{var t=e.text;return r.createElement("p",{className:"cyDescriptionSection"},t)},Q=a(1357),X=a(2508),K=a(5744),ee=a(1248);function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ae(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ae(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var re=e=>{var t=e.tabs,a=e.statistics,n=e.changetab,o=e.gap,i=void 0===o?"0":o,c=(0,P.Ay)().setTealium,l=te((0,r.useState)(0),2),s=l[0],u=l[1],d=te((0,r.useState)(0),2),p=d[0],y=d[1],v=te((0,r.useState)({left:!1,right:!1}),2),f=v[0],h=v[1],g=te((0,r.useState)(0),2),b=g[0],_=g[1],k=(0,r.useRef)(null),E=(0,r.useCallback)(e=>{e&&(y(e.offsetLeft),u(e.clientWidth))},[]),x=(0,r.useCallback)(e=>{a&&c({type:"link",structure:{tealium_event:"link",event_name:"click",click:a+t[e].name.replace(/\s/g,"_").toLowerCase()}}),_(e),n(e)},[n,c,a,t]),C=(0,r.useMemo)(()=>t.map((e,t)=>{var a=t===b,n=e.disabled;return r.createElement("div",{style:{display:"flex",alignItems:"center"},ref:e=>a&&E(e)},r.createElement("h2",{key:"tab_key_".concat(t),className:"cy-tabs__item ".concat(a?"cy-tabs__item_active":""," ").concat(n?"cy-tabs__item_disabled":""),onClick:()=>!n&&x(t)},e.name),a&&(null==e?void 0:e.icon)&&r.createElement("div",{style:{cursor:"pointer"},onClick:e.fnIcon},r.createElement(ee.A,{color:m.y.blue,size:15})))}),[b,x,t,E]),w=e=>{var t=e.getBoundingClientRect(),a=e.children[0].getBoundingClientRect();h({left:Math.abs(t.left-a.left)>2,right:t.right-a.right<-1})};return(0,r.useEffect)(()=>{k.current&&w(k.current)},[t]),r.createElement("div",{className:"cy-tabs__wrapper ".concat(f.right?"cy-tabs__wrapper_overpass-right":""," ").concat(f.left?"cy-tabs__wrapper_overpass-left":"")},r.createElement("div",{className:"cy-tabs__container",ref:k,onScroll:e=>{w(e.currentTarget)}},r.createElement("div",{className:"cy-tabs__content",style:{gap:"".concat(i)}},C,r.createElement("div",{className:"cy-tabs__active-line",style:{width:s,transform:"translateX(".concat(p,"px)")}}))))},ne=a(6950),oe=a(5158),ie=e=>{var t=e.isActive,a=e.onClose;return r.createElement(oe.A,{active:t},r.createElement("div",{className:"containerPrincipalModalPopular"},r.createElement("section",{className:"containerModalPopular"},r.createElement("div",{onClick:a,className:"containerModalPopular__iconClose"},r.createElement(C.A,{color:m.y.gray,size:20})),r.createElement("h2",{className:"containerModalPopular__title"},"¿Qué es un vehÃculo popular?"),r.createElement("p",{className:"containerModalPopular__text"},"En esta sección encontrarás modelos de vehÃculos seleccionados por su alta demanda y popularidad entre nuestros usuarios."),r.createElement("div",{className:"containerModalPopular__button"},r.createElement(p.A,{children:"Entendido",onClick:a,size:"lg",rightIcon:r.createElement("div",{className:"containerSearchVehicle__containerButtonIcon"},r.createElement(d,{size:12,color:m.y.white}))})))))}
1,ce=a(1335);function le(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function se(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?le(Object(a),!0).forEach(function(t){ue(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):le(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function ue(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?de(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var pe=e=>{var t=e.size,a=void 0===t?28:t,n=e.color,o=void 0===n?m.y.info50:n;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:o,viewBox:"11.93 9.22 8.13 13.56",width:a,height:a},r.createElement("path",{d:"m19.599 16.854-5.865 5.627c-.412.395-1.079.395-1.492 0s-.412-1.037 0-1.433l5.261-5.049-5.261-5.049c-.412-.395-.412-1.037 0-1.433s1.079-.395 1.492 0l5.865 5.626a.994.994 0 0 1 .468.856.99.99 0 0 1-.468.854z"}))},ye=e=>{var t=e.size,a=void 0===t?28:t,n=e.color,o=void 0===n?m.y.info50:n;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:o,viewBox:"11.93 9.22 8.13 13.56",width:a,height:a},r.createElement("path",{d:"m12.401 15.146 5.865-5.627c.412-.395 1.079-.395 1.492 0s.412 1.037 0 1.433l-5.261 5.049 5.261 5.049c.412.395.412 1.037 0 1.433s-1.079.395-1.492 0l-5.865-5.626a.994.994 0 0 1-.468-.856.99.99 0 0 1 .468-.854z"}))},ve=e=>{var t=e.steps,a=e.actualStep;return r.createElement("div",{className:"containerCyCarousel__stepper"},Array(t).fill(0).map((e,t)=>r.createElement("div",{key:"containerCyCarousel__step_".concat(t)},t===a?r.createElement("div",{className:"containerCyCarousel__step_actual"}):r.createElement("div",{className:"containerCyCarousel__step"}))))},fe=e=>{var t=e.children,a=e.className,n=e.minWidthItemCard,o=void 0===n?"":n,i=e.emptyData,c=e.autoPlay,l=void 0!==c&&c,s=e.autoPlayInterval,u=void 0===s?5e3:s,d=(0,r.useRef)(null),p=((e,t)=>{var a=me((0,r.useState)({actualStep:0,scrollX:0,scrollY:0,isBackButtonHidden:!0,isNextButtonHidden:!1}),2),n=a[0],o=a[1];return(0,r.useEffect)(()=>{function a(){var a=e.current,r=a.scrollWidth,n=a.scrollLeft,i=0===n,c=n+a.clientWidth+1>=r,l=r/t,s=Math.ceil(n/l);o({scrollX:n,scrollY:e.current.scrollTop,isBackButtonHidden:i,isNextButtonHidden:c,actualStep:s})}e&&e.current&&(a(),e.current.onscroll=a)},[null==e?void 0:e.current,t]),se(se({},n),{},{goBackCards:()=>{var a=e.current,r=a.scrollWidth,n=a.scrollLeft,o=a.clientWidth,i=n%(r/t);e.current.scrollLeft-=o+i},goNextCard:()=>{var a=e.current,r=a.scrollWidth,n=a.scrollLeft,o=a.clientWidth,i=n%(r/t);e.current.scrollLeft+=o-i}})})(d,t.length),y=p.isBackButtonHidden,v=p.isNextButtonHidden,f=p.goNextCard,h=p.goBackCards,g=p.actualStep;return(0,r.useEffect)(()=>
1{if(l&&0!==t.length){var e=setInterval(()=>{v?d.current&&(d.current.scrollLeft=0):f()},u);return()=>clearInterval(e)}},[l,u,t.length,f,v]),r.createElement("div",{className:"containerCyCarousel ".concat(a&&a)},r.createElement("div",{className:"containerCyCarousel__container"},r.createElement("button",{"aria-label":"Anterior",className:"containerCyCarousel__direction_control containerCyCarousel__back ".concat(y&&"containerCyCarousel__hide"),onClick:()=>h()},r.createElement(ye,{color:m.y.blue,size:18})),r.createElement("button",{"aria-label":"Siguiente",className:"containerCyCarousel__direction_control containerCyCarousel__next ".concat(v&&"containerCyCarousel__hide"),onClick:()=>f()},r.createElement(pe,{color:m.y.blue,size:18})),r.createElement("div",{ref:d,className:"containerCyCarousel__cards"},t.length>0?t.map((e,t)=>r.createElement("div",{key:"carrousel_card_".concat(t),className:"containerCyCarousel__card ".concat(o)},e)):r.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},i))),r.createElement(ve,{steps:t.length,actualStep:g}))},he=a(8014),ge=(a(6942),function(){console.error(...arguments)}),be=function(){console.log(...arguments)},_e=a(918),ke=a(4053),Ee=e=>ke.CryptoStorage.getSessionStorage(e),xe=(e,t)=>{ke.CryptoStorage.setSessionStorage(e,t)},Ce=a(802);function we(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function Se(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?we(Object(a),!0).forEach(function(t){Ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):we(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function Ae(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Ne(e,t,a,r,n,o,i){try{var c=e[o](i),l=c.value}catch(e){return void a(e)}c.done?t(l):Promise.resolve(l).then(r,n)}function Ie(e){return function(){var t=this,a=arguments;return new Promise(function(r,n){var o=e.apply(t,a);function i(e){Ne(o,r,n,i,c,"next",e)}function c(e){Ne(o,r,n,i,c,"throw",e)}i(void 0)})}}var Te=j.default.create({baseURL:"",timeout:1e4}),Oe=function(){var e=Ie(function*(e){var t,a,r=e.url,n=e.method,o=void 0===n?"POST":n,i=e.body,c=void 0===i?void 0:i,l=e.headers,s=void 0===l?null:l,u=e.readTimeout,m=void 0===u?35e3:u,d=e.extraConfig,p=void 0===d?{}:d,y=e.encrypt,f=void 0!==y&&y;be("sending",o,r,c);try{if(f){var h=Ee(Ce.k.publicKey);if(!h){var g={timestamp:Date.now()};be("sending","POST","".concat(v.cA.urlApiCommons,"/auth/publickey"),g),h=(h=yield Te.post("".concat(v.cA.urlApiCommons,"/auth/publickey"),g)).data,be("received","POST","".concat(v.cA.urlApiCommons,"/auth/publickey"),h),xe(Ce.k.publicKey,h)}c=(a=new _e.o(h.publicKey,h.timestamp)).encryptedObjectToSend(c)}if(s||(s={}),s["Content-Type"]||(s["Content-Type"]="application/json",s.Accept="application/json"),"POST"==o)t=yield Te.post(r,c,Se(Se({},p),{},{headers:s,timeout:m}));else if("GET"==o)t=yield Te.get(r,Se(Se({},p),{},{headers:s,timeout:m}));else if("PUT"==o)t=yield Te.put(r,c,Se(Se({},p),{},{headers:s,timeout:m}));else if("DELETE"==o)t=yield Te.delete(r,Se(Se({},p),{},{headers:s,timeout:m}));else if("PATCH"==o)t=yield Te.patch(r,c,Se(Se({},p),{},{headers:s,timeout:m}));else{if("OPTIONS"!=o)throw new Error("Método ".concat(o," no soportado"));t=yield Te.options(r,Se(Se({},p),{},{headers:s,timeout:m}))}if(f&&t.data.data){var b=a.decryptMessage(t.data.data);if("string"!=typeof b)throw new Error(JSON.stringify(b,null,2));t.data=JSON.parse(b)}return be("received",o,r,t.data),t}catch(e){var _;if(f&&null!==(_=e.response)&&void 0!==_&&_.data&&a){var k=a.decryptMessage(e.response.data.data);if("string"==typeof k){var E=JSON.parse(k),x=new Error("");
1throw x.response=e.response,x.response.data=E,be("received Error",{status:x.response.status,data:x.response.data}),x}throw be("received Error!"),new Error(JSON.stringify(k,null,2))}throw be("received Error!"),e}});return function(t){return e.apply(this,arguments)}}(),je={consumeService:Oe,error:e=>{ge(e);var t="No es posible realizar la operación en este momento. Por favor intenta más tarde";if(e.response){if(be("error",{status:e.response.status,data:e.response.data}),504===e.response.status)throw new Error(t);var a=new Error(e.response.data.message);throw e.response.data.errorCode&&(a.code=e.response.data.errorCode),a}throw new Error(t)},parseErrorObject:(e,t)=>{if(e.response){if(504===e.response.status)throw JSON.stringify([t]);var a=e.response.data?(r=e.response.data,Array.isArray(r)?r.map(e=>e.message):[r]):[e.response.data];throw JSON.stringify(a)}var r;throw JSON.stringify([t])}},Pe=a(2408),Me=a(8752),De=e=>{var t=e.isShort;return r.createElement("section",{style:{height:"".concat(t?"254px":"347px")},className:"containerSkeletonNewCard"},r.createElement("div",{style:{height:"".concat(t?"125px":"190px")},className:"containerSkeletonNewCard__image"}),r.createElement("div",{className:"containerSkeletonNewCard__containerTexts"},r.createElement("div",{className:"containerSkeletonNewCard__containerTexts__text"}),r.createElement("div",{className:"containerSkeletonNewCard__containerTexts__text"}),r.createElement("div",{className:"containerSkeletonNewCard__containerTexts__text"})))},ze=e=>{var t=e.count,a=void 0===t?5:t,n=e.isShort,o=void 0!==n&&n;return r.createElement("div",{className:"containerSkeletonCarousel"},Array.from({length:a}).map((e,t)=>r.createElement(De,{key:t,isShort:o})))},Le=a(6213),Be=a(1318);function He(e,t,a,r,n,o,i){try{var c=e[o](i),l=c.value}catch(e){return void a(e)}c.done?t(l):Promise.resolve(l).then(r,n)}function Re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ue(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Ue(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function Ve(){var e;return e=function*(){var e=window.sessionStorage.getItem("avcDealersData");if(e)return Promise.resolve(JSON.parse(decodeURI(e)));try{var t=yield j.default.get(v.cA.public.assets+"/json/avcDealers.json?m=".concat((new Date).getTime())),a=null==t?void 0:t.data;if(null!=a&&a.avcDealers){var r=encodeURI(JSON.stringify(a));window.sessionStorage.setItem("avcDealersData",r)}return a}catch(e){return Promise.reject({name:"",rowsPerColumn:4,avcDealers:[]})}},Ve=function(){var t=this,a=arguments;return new Promise(function(r,n){var o=e.apply(t,a);function i(e){He(o,r,n,i,c,"next",e)}function c(e){He(o,r,n,i,c,"throw",e)}i(void 0)})},Ve.apply(this,arguments)}var qe=()=>{var e=Re((0,r.useState)([]),2),t=e[0],a=e[1],n=Re((0,r.useState)(4),2),o=n[0],i=n[1],c=Re((0,r.useState)(""),2),l=c[0],s=c[1];return(0,r.useEffect)(()=>{(function(){return Ve.apply(this,arguments)})().then(e=>{var t;(null==e||null===(t=e.avcDealers)||void 0===t?void 0:t.length)>0&&(a(e.avcDealers),i(e.rowsPerColumn||4),s(e.name||""))})},[]),[t,o,l]},Fe=a(8025),Ge=a(1806);function Ye(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function We(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?Ye(Object(a),!0).forEach(function(t){$e(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ye(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function $e(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Je(e,t,a,r,n,o,i){try{var c=e[o](i),l=c.value}catch(e){return void a(e)}c.done?t(l):Promise.resolve(l).then(r,n)}function Ze(e){return function(){var t=this,a=arguments;return new Promise(function(r,n){var o=e.apply(t,a);function i(e){Je(o,r,n,i,c,"next",e)}function c(e){Je(o,r,n,i,c,"throw",e)}i(void 0)})}}function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xe(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Xe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var Ke=(0,X.connect)(e=>{var t=e.specialOffers;return{recommended:t.recommended,releases:t.releases,page:t.page}},e=>({addNewSpecialOffersRecommended:t=>e((0,Q.VP)(t)),addNewSpecialOffersRelease:t=>e((0,Q.Xq)(t)),changePageSpecialOffers:(t,a)=>e((0,Q.yd)(t,a))}))(e=>{var t=e.addNewSpecialOffersRecommended,a=e.page,n=e.changePageSpecialOffers,o=Qe((0,r.useState)([]),2),i=o[0],c=o[1],l=Qe((0,r.useState)([]),2),s=l[0],u=l[1],m=Qe((0,r.useState)(!1),2),d=m[0],y=m[1],f=Qe((0,r.useState)(!1),2),h=f[0],g=f[1],b=Qe((0,r.useState)(!1),2),_=b[0],k=b[1],E=Qe((0,r.useState)(!1),2),x=E[0],C=E[1],w=Qe((0,r.useState)(0),2),S=w[0],A=w[1],N=(0,P.Ay)().setTealium,I=(0,L.useHistory)(),T=Qe((0,r.useState)(!1),2),O=T[0],B=T[1],H=Qe((0,r.useState)(!1),2),R=H[0],U=H[1],V=Qe((0,r.useState)(!1),2),q=V[0],F=V[1],G=Qe(qe(),3),W=G[0],$=G[1],J=G[2],Z=(0,Fe.g)(),Q=function(){var e=Ze(function*(){y(!0),k(!1);try{var e=Number(a.releases),t=yield je.consumeService({url:"".concat(v.cA.url_habilitadora,"/find-certified-cars"),body:{page:e},headers:(0,Ge.T)()});0===t.data.certifiedCars.length&&(n("releases",!0),e>1&&(e=1,t=yield je.consumeService({url:"".concat(v.cA.url_habilitadora,"/find-certified-cars"),body:{page:e},headers:(0,Ge.T)()}))),e<Number(t.data.pages)?n("releases"):n("releases",!0);var r=t.data.certifiedCars;c(r)}catch(e){k(!0),je.error(e)}finally{y(!1)}});return function(){return e.apply(this,arguments)}}(),X=function(){var e=Ze(function*(){g(!0),C(!1);try{var e=Number(a.recommended),r=yield j.default.get("".concat(v.cA.url_habilitadora,"/find-recommended-cars/?page=").concat(e),{headers:(0,Ge.T)()}),o=[...te(r.data.megaRecommendedCars,!0),...te(r.data.superRecommendedCars)];0===o.length&&(n("recommended",!0),e>1&&(e=1,r=yield j.default.get("".concat(v.cA.url_habilitadora,"/find-recommended-cars/?page=").concat(e),{headers:(0,Ge.T)()}),o=[...te(r.data.megaRecommendedCars,!0),...te(r.data.superRecommendedCars)])),o.length>0&&(t(o),u(o),5===o.length&&n("recommended"))}catch(e){C(!0),console.error("special offers recommended cars",e)}finally{g(!1)}});return function(){return e.apply(this,arguments)}}(),ee=[{name:"VehÃculos certificados",icon:!0,fnIcon:()=>{B(!O)},data:i,disabled:d,fn:Q,error:_},{name:"VehÃculos populares",icon:!0,fnIcon:()=>{U(!R)},data:s,disabled:h,fn:X,error:x},{name:"VehÃculos AVC",icon:!1,fnIcon:void 0,data:W,disabled:!1,fn:()=>{},error:!1}],te=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.map(e=>We(We({},e),{},{megaRecommended:t}))};(0,r.useEffect)(()=>{Q()},[]);var ae={0:"".concat(z.D.search.general,"?page=1&plan=").concat(Be.Lk.cidpaquete),2:"/concesionario/".concat((0,D.AU)(J,"-"))};return r.createElement("div",{className:"specialOffers",id:"recommended_id"},r.createElement(Y.A,null,r.createElement(re,{tabs:ee,changetab:e=>{A(e),0===ee[e].data.length&&ee[e].fn()},statistics:M.GP+"-tab-"})),r.createElement(Y.A,{classSafeArea:"customClassCarouselSpecialOffersSafe ".concat(2===S?"customClassCarouselSpecialOffersSafe--avc":"")},ee[S].error?r.createElement("div",{className:"specialOffersContainerError"},r.createElement(Le.A,null)):2===S?r.createElement("div",{className:"specialOffersAvc",style:{"--avc-rows-per-column":$}},W.map((e,t)=>{var a=Math.floor(t/$),n=0===a,o=a===Math.floor((W.length-1)/$);return r.createElement("a",{key:"avc-dealer-".concat(t),className:"specialOffersAvc__item ".concat(n?"specialOffersAvc__item--first":""," ").concat(o?"specialOffersAvc__item--last":""),href:"".concat(v.cA.public.assets).concat(e.path),target:"_blank",rel:"noopener noreferrer",onClick:()=>N({type:"link",structure:{tealium_event:"link",event_name:"click",click:"vehiculos_avc_".concat((0,D.AU)(e.name,void 0))}})},r.createElement("span",{className:"specialOffersAvc__name"},e.name),r.createElement(Me.A,{className:"specialOffersAvc__icon",alt:"Ãcono de enlace externo",width:"20",height:"20",src:"".concat(v.cA.public.assets,"/icons/cy-icon-arrow_right-up.svg")}))})):r.createElement("div",{className:"containerCarouselSpecialOffers"},ee[S].disabled?r.createElement(ze,null):r.createElement(fe,{emptyData:r.createElement(Le.A,{message:"Lo sentimos, no se encuentran datos."})},(0,K.lp)(ee[S].data).map(e=>r.createElement(ce.A,{vehicle:e,index:e.id,key:e.id,setShowModal:F,stadistics:M.GP+"-"+(0,D.AU)(ee[S].name,void 0),isLoading:ee[S].disabled,canSeeCommission:Z}))))),r.createElement(Y.A,null,r.createElement("div",{className:"link"},r.createElement(p.A,{to:z.D.search.general,children:"Ver vehÃculos",onClick:()=>(N({type:"link",structure:{tealium_event:"link",event_name:"click",click:"home-bloque_ofertas_especiales-enlace_ver_todas"}}),setTimeout(()=>{var e;I.push(null!==(e=ae[S])&&void 0!==e?e:z.D.search.general)},1),!0),theme:"quaternary",rightIcon:r.createElement(Me.A,{alt:"Icono de flecha",width:"12",height:"12",src:he.A})}))),r.createElement(ne.A,{isActive:O,onClose:()=>B(!1)}),r.createElement(ie,{isActive:R,onClose:()=>U(!1)}),r.createElement(Pe.default,{show:q,onClose:()=>{F(!1)}}))}),et=a(4616),tt=()=>{var e=(0,et.A)(!0),t=e.ref,a=e.isVisible;return r.createElement("div",{ref:t,className:"containerOptionsForYou"},a&&r.createElement(r.Fragment,null,r.createElement(Y.A,null,r.createElement("p",{className:"containerOptionsForYou__text"},"Tenemos estas ",r.createElement("span",{style:{color:"#b00211"}},"opciones para ti")),r.createElement(Z,{text:"Estos son algunos vehÃculos que sabemos te van a gustar"})),r.createElement(r.Suspense,{fallback:r.createElement("div",{style:{minHeight:"315px"}},"Loader...")},r.createElement(Ke,null))))},at=a(3063),rt=e=>{var t=e.onClick,a=void 0===t?()=>{}:t,n=e.textButton,o=e.altImg,i=e.srcImg,c=e.textTitle,l=e.textTitleToHighlight,s=e.description,m=e.externalUrl,d=e.isNew,y=void 0!==d&&d,v=e.isCustomTitle,f
1=void 0!==v&&v,h=e.customTitle,g=e.to,b=(0,L.useHistory)(),_=()=>{(0,at.c)("card-section",c),a()};return r.createElement("section",{className:"containerLargeCardSection",onClick:e=>{e.target.closest(".containerNewButton")||(_(),g&&(m?window.open(g,"_blank","noopener,noreferrer"):setTimeout(()=>{b.push(g)},1)))}},r.createElement("figure",{className:"containerLargeCardSection__containerImage"},r.createElement("img",{className:"containerLargeCardSection__containerImage__img",src:i,alt:o})),r.createElement("div",{className:"containerLargeCardSection__content"},y&&(0,at.D)("card-section",c)&&r.createElement("span",{className:"new-section"},"Nuevo"),f?h:r.createElement(u,{text:c,textToHighlight:l,theme:"secondary"}),r.createElement("p",{style:{marginTop:"".concat(h&&"0px")},className:"containerLargeCardSection__content__description"},s),r.createElement(p.A,{children:n,theme:"primary",onClick:_,size:"md",externalUrl:m,to:g,display:"inline-flex"})))},nt=e=>{var t=e.onClick,a=void 0===t?()=>{}:t,n=e.textButton,o=e.altImg,i=e.srcImg,c=e.textTitle,l=e.textTitleToHighlight,s=e.description,m=e.externalUrl,d=e.isNew,y=void 0!==d&&d,v=e.to,f=(0,L.useHistory)(),h=()=>{(0,at.c)("card-section",c),a()};return r.createElement("section",{className:"containerSmallCardSection",onClick:e=>{e.target.closest(".containerNewButton")||(h(),v&&(m?window.open(v,"_blank","noopener,noreferrer"):setTimeout(()=>{f.push(v)},1)))}},r.createElement("figure",{className:"containerSmallCardSection__containerImage"},r.createElement("img",{className:"containerSmallCardSection__containerImage__img",src:i,alt:o})),r.createElement("div",{className:"containerSmallCardSection__content"},y&&(0,at.D)("card-section",c)&&r.createElement("span",{className:"new-section"},"Nuevo"),r.createElement(u,{text:c,textToHighlight:l,theme:"quaternary"}),r.createElement("p",{className:"containerSmallCardSection__content__description"},s),r.createElement(p.A,{children:n,theme:"tertiary",onClick:h,size:"xsm",externalUrl:m,to:v,display:"inline-flex",rightIcon:r.createElement(Me.A,{alt:"Icono de flecha",width:"10",height:"10",src:he.A})})))},ot=e=>{var t=e.contentSection;return r.createElement(r.Fragment,null,r.createElement(Y.A,null,r.createElement("div",{className:"containerLayoutCardsSection__largeCards"},t.largeCards.map(e=>r.createElement(rt,{key:e.id,textTitle:e.textTitle,textTitleToHighlight:e.textTitleToHighlight,altImg:e.altImage,description:e.description,externalUrl:e.externalUrl,to:e.url,onClick:e.click,srcImg:e.srcImage,textButton:e.textButton,customTitle:e.customTitle,isCustomTitle:e.isCustomTitle,isNew:e.isNew})))),t.smallCards.length>0&&r.createElement(Y.A,{classSafeArea:"customClassCarouselSafe"},r.createElement("div",{className:"containerLayoutCardsSection__smallCards"},r.createElement(fe,null,t.smallCards.map(e=>r.createElement(nt,{key:e.id,textTitle:e.textTitle,textTitleToHighlight:e.textTitleToHighlight,altImg:e.altImage,description:e.description,externalUrl:e.externalUrl,to:e.url,onClick:e.click,srcImg:e.srcImage,textButton:e.textButton,isNew:e.isNew}))))))},it=a(5170),ct=a(9285),lt=()=>{var e=(0,et.A)(!0),t=e.ref,a=e.isVisible,n=(0,P.Ay)().setTealium,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&(window.location.href=t),setTimeout(()=>{n({type:"link",structure:{tealium_event:"link",event_name:"click",click:"seccion_seguros-"+e}})},1)},i={largeCards:[{id:1,srcImage:"".concat(v.cA.public.assets,"/images/home/cy_insurance_soat.webp"),altImage:"Compra tu SOAT online de forma segura, rápida y fácil en Colombia con Carroya en toda Colombia",textTitle:"SOAT",textTitleToHighlight:"SOAT",description:"Seguro obligatorio que cubre gastos médicos, incapacidad y fallecimiento en un accidente de tránsito en Colombia.",textButton:"Comprar SOAT",externalUrl:!1,url:"servicio/seguros-y-asistencias/soat",click:()=>o("soat"),isCustomTitle:!1,customTitle:null},{id:2,srcImage:"".concat(v.cA.public.assets,"/images/home/cy_all_risk_insurance.webp"),altImage:"Compra el seguro todo riesgo para tu vehÃculo online de forma rápida, segura y fácil en toda Colombia con CarroYa",textTitle:"Seguro Todo Riesgo",textTitleToHighlight:"Seguro Todo Riesgo",description:"Cobertura integral para tu vehÃculo, protegiéndote contra accidentes, robos, daños y responsabilidad civil.",textButton:"Comprar",externalUrl:!1,url:"servicio/seguros-y-asistencias/todo-riesgo?step=1",click:()=>o("todo-riesgo","servicio/seguros-y-asistencias/todo-riesgo?step=1"),isCustomTitle:!1,customTitle:null}],smallCards:[]};return r.createElement(r.Fragment,null,r.createElement("div",{id:"seguros-ref"}),(0,ct.H)()&&r.createElement("div",{className:"containerAuxGoogleAdsenseInsurace"},r.createElement("div",{className:"containerGoogleAdsenseInsurace"},r.createElement(it.A,{placement:"middleHome1",wrapperClassName:"wrapperInsurace"}))),r.createElement("div",{ref:t,id:"seguros",className:"containerInsurance"},r.createElement(Y.A,null,r.createElement(u,{text:"Los mejores seguros para ti",textToHighlight:"seguros para ti"}),r.createElement(Z,{text:"Encuentra la protección ideal con seguros confiables, flexibles y adaptados a tus necesidades."})),a&&r.createElement(r.Fragment,null,r.createElement(ot,{contentSection:i}))))},st=a.p+"static/media/fp-logotype.1e0ade63.webp",ut=a(4430);function mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}
1finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dt(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?dt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var pt=()=>{var e=(0,et.A)(!0),t=e.ref,a=e.isVisible,n=(0,P.Ay)().setTealium,o=mt((0,r.useState)(!1),2),i=o[0],c=o[1],l=e=>{setTimeout(()=>{n({type:"link",structure:{tealium_event:"link",event_name:"click",click:"seccion_servicios-"+e}})},1)},s={largeCards:[{id:1,srcImage:"".concat(v.cA.public.assets,"/images/home/cy_safe_buying_and_selling.webp"),altImage:"Paga peajes y parqueaderos en Colombia sin necesidad de hacer filas y sin efectivo con FacilPass",textTitle:"Compra y venta segura",textTitleToHighlight:"Compra y venta segura",description:"Una solución diseñada para comprar y vender vehÃculos con confianza.",textButton:"Adquirir",externalUrl:!0,url:v.cA.services_urls.compra_y_venta,click:()=>l("compra-y-venta-segura"),isCustomTitle:!1,isNew:!0,customTitle:null},{id:2,srcImage:"".concat(v.cA.public.assets,"/images/home/cy_facilpass_services.webp"),altImage:"Paga peajes y parqueaderos en Colombia sin necesidad de hacer filas y sin efectivo con FacilPass",textTitle:"",textTitleToHighlight:"",description:"Pagar peajes y parqueaderos electrónicamente, sin efectivo ni filas.",textButton:"Adquirir",externalUrl:!0,url:"https://www.facilpass.co/persona/?utm_source=mathilde&utm_medium=cpc&utm_campaign=alianza_carroya_apt_interacciones_cpc&utm_term=sto&utm_content=display",click:()=>l("facilpass"),isCustomTitle:!0,customTitle:r.createElement(Me.A,{alt:"FacilPass Colombia paga peajes y parqueaderos electrónicos con el TAG en toda Colombia",src:st,width:"148",height:"49",classNameContainer:"cyImageTitle"})}],smallCards:[{id:1,srcImage:"".concat(v.cA.public.assets,"/images/home/cy-card-serv-gana-comisión.webp"),altImage:"Gana por cada venta",textTitle:"Gana más con cada venta.",textTitleToHighlight:"Gana más con cada venta.",description:"Activa tu membresÃa y gana por cada venta.",textButton:"Conoce el plan",externalUrl:!1,url:"servicio/gana-comision",click:()=>l("gana-comision"),isCustomTitle:!1,isNew:!0,customTitle:null},{id:2,srcImage:"".concat(v.cA.public.assets,"/images/home/cy_parking_services.webp"),altImage:"Conoce todos los parqueaderos aliados en Colombia que puedes pagar con el App CarroYa sin filas ni efectivo",textTitle:"Parqueaderos a tu alcance",textTitleToHighlight:"Parqueaderos",description:"Ahora es muy fácil pagar tu parqueadero sin filas ni efectivo.",textButton:"Conoce como",externalUrl:!1,url:"servicio/parqueaderos",click:()=>l("parqueaderos"),isCustomTitle:!1,customTitle:null},{id:3,srcImage:"".concat(v.cA.public.assets,"/images/home/cy_mechanical_technician_services.webp"),altImage:"Revisión tecno mecánica en Colombia",textTitle:"Revisión Técnico Mecánica",textTitleToHighlight:"Técnico Mecánica",description:"Agenda y solicita tu cita en los centros alia
1dos.",textButton:"Agenda aquÃ",externalUrl:!0,url:"https://asistente-carroya.automas.co/",click:()=>l("revision-tecnico-mecanica")},{id:4,srcImage:"".concat(v.cA.public.assets,"/images/home/cy_vehicle_history_services.webp"),altImage:"Historial vehicular en Colombia con Automás",textTitle:"Historia Vehicular - CertiMás",textTitleToHighlight:"Historia Vehicular",description:"Conoce el estado e historial del vehÃculo que te interesa.",textButton:"Comprar",externalUrl:!1,url:"",click:()=>{l("automas-certimas"),c(!0)}}]};return r.createElement(r.Fragment,null,r.createElement("div",{id:"servicios-ref"}),r.createElement("div",{ref:t,id:"servicios",className:"containerCyServices"},r.createElement(Y.A,null,r.createElement(u,{text:"Servicios CarroYa",textToHighlight:"Servicios"}),r.createElement(Z,{text:"Servicios diseñados para brindarte soluciones seguras, rápidas, eficientes y adaptadas a tus necesidades."})),a&&r.createElement(r.Fragment,null,r.createElement(ot,{contentSection:s}))),r.createElement(ut.A,{isActive:i,onClose:()=>c(!1),locationCallModal:"modal_servicios_certimas"}))},yt=e=>{var t=e.text,a=e.altImg,n=e.description,o=e.externalUrl,i=e.onClick,c=e.srcImg,l=e.textButton,s=e.textToHighlight,m=e.to,d=(0,L.useHistory)();return r.createElement("section",{className:"containerCardFinance",onClick:e=>{e.target.closest(".containerNewButton")||(i(),m&&(o?window.open(m,"_blank","noopener,noreferrer"):setTimeout(()=>{d.push(m)},1)))}},r.createElement("figure",{className:"containerCardFinance__image"},r.createElement("img",{src:c,alt:a,width:94,height:99,loading:"lazy"})),r.createElement("div",{className:"containerCardFinance__title"},r.createElement(u,{text:t,textToHighlight:s,theme:"secondary"})),r.createElement("div",{className:"containerCardFinance__textButton"},r.createElement(Z,{text:n}),r.createElement("div",{className:"containerCardFinance__textButton__button"},r.createElement(p.A,{theme:"primary",size:"md",children:l,onClick:i,externalUrl:o,to:m}))))},vt=a(2241),ft=[{id:1,text:"Simula y solicita tu crédito",textToHighlight:"crédito",altImg:"Crédito vehicular o financiación en toda Colmbia con CarroYa",description:"En segundos encuentra la opción de crédito que mejor se adapta a tu proyecto.",externalUrl:!1,srcImg:"".concat(v.cA.public.assets,"/images/home/cy_finance_man.webp"),textButton:"Simular crédito vehÃculo",to:"/simular-credito",tag:"financiar"},{id:2,text:"Compra de cartera",textToHighlight:"cartera",altImg:"Compra de cartera vehicular en toda Colombia con CarroYa",description:"Traslada tu deuda a una mejor opción con tasas competitivas y plazos flexibles.",externalUrl:!1,srcImg:"".concat(v.cA.public.assets,"/images/home/cy_finance_woman.webp"),textButton:"Solicitar compra de cartera",to:"/compra-de-cartera",tag:"compra-cartera",hidden:!vt.A.FUNCTIONALITIES.COMPRA_DE_CARTERA},{id:3,text:"Tarjeta de crédito CarroYa",textToHighlight:"Tarjeta de crédito",altImg:"Adquiere tu tarjeta de crédito CarroYa â av villas en Colombia y disfruta de los beneficios",description:"Recibe hasta 500 mil pesos en cashback por comprar SOAT, gasolina y más.",externalUrl:!1,srcImg:"".concat(v.cA.public.assets,"/images/home/cy_finance_card.webp"),textButton:"PÃdela ahora",to:"/tarjeta-de-credito",tag:"tarjeta-de-credito"}],ht=e=>{var t=e.content,a=t.title,n=t.description,o=(0,P.Ay)().setTealium;return r.createElement("div",{className:"containerFinance"},r.createElement(Y.A,null,r.createElement(u,{text:a.text,textToHighlight:a.textToHighlight}),r.createElement(Z,{text:n}),r.createElement("div",{className:"containerFinance__cards",style:{gridTemplateColumns:"repeat(".concat(ft.filter(e=>!e.hidden).length,", minmax(242px, 1fr))")}},ft.filter(e=>!e.hidden).map(e=>r.createElement(yt,{text:e.text,textToHighlight:e.textToHighlight,description:e.description,srcImg:e.srcImg,altImg:e.altImg,externalUrl:e.externalUrl,textButton:e.textButton,onClick:()=>{return t=e.tag,void o({type:"link",structure:{tealium_event:"link",event_name:"click",click:"seccion_financiar-"+t}});var t},to:e.to,key:e.id})))))},gt=()=>{var e="".concat(v.cA.public.assets,"/images/home/cy-banner-compra-comisión-desk.webp"),t="".concat(v.cA.public.assets,"/images/home/cy-banner-compra-comisión-mob.webp");return r.createElement(Y.A,null,r.createElement(L.Link,{to:"/servicio/gana-comision",className:"containerDealershipBanner",onClick:()=>{(0,P.g8)({type:"link",structure:{tealium_event:"link",event_name:"click",click:"banner_home-propio_concesionario"}})},"aria-label":"Ahora puedes tener tu propio concesionario"},r.createElement("picture",null,r.createElement("source",{srcSet:t,media:"(max-width: 500px)",type:"image/webp"}),r.createElement("source",{srcSet:e,media:"(min-width: 501px)",type:"image/webp"}),r.createElement("img",{className:"containerDealershipBanner__image",src:e,alt:"Ahora puedes tener tu propio concesionario."}))))};function bt(e,t,a,r,n,o,i){try{var c=e[o](i),l=c.value}catch(e){return void a(e)}c.done?t(l):Promise.resolve(l).then(r,n)}function _t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}
1finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kt(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?kt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var Et=(0,X.connect)(e=>({page:e.specialOffers.page}),e=>({changePageMotorcycles:(t,a)=>e((0,Q.yd)(t,a))}))(e=>{var t=e.page,a=e.changePageMotorcycles,n=_t((0,r.useState)([]),2),o=n[0],i=n[1],c=_t((0,r.useState)(!0),2),l=c[0],s=c[1],u=_t((0,r.useState)(!0),2),m=u[0],d=u[1],y=_t((0,r.useState)(!1),2),f=y[0],h=y[1],g=(0,P.Ay)().setTealium,b=(0,L.useHistory)(),_=function(){var e,r=(e=function*(){s(!0),d(!1);try{var e=Number(t.motorcycles),r=yield je.consumeService({url:"".concat(v.cA.url_habilitadora,"/find-motorcycles"),body:{page:e}});0===r.data.motorcycles.length&&(a("motorcycles",!0),e>1&&(e=1,r=yield je.consumeService({url:"".concat(v.cA.url_habilitadora,"/find-motorcycles"),body:{page:e}}))),e<Number(r.data.pages)?a("motorcycles"):a("motorcycles",!0);var n=r.data.motorcycles;i(n)}catch(e){d(!0),je.error(e)}finally{s(!1)}},function(){var t=this,a=arguments;return new Promise(function(r,n){var o=e.apply(t,a);function i(e){bt(o,r,n,i,c,"next",e)}function c(e){bt(o,r,n,i,c,"throw",e)}i(void 0)})});return function(){return r.apply(this,arguments)}}();return(0,r.useEffect)(()=>{_()},[]),r.createElement("div",{className:"containerCyMotorcycles"},r.createElement(r.Fragment,null,r.createElement(Y.A,{classSafeArea:"customClassCarouselMotorcycles"},m?r.createElement("div",{className:""},r.createElement(Le.A,null)):r.createElement("div",{className:"containerSpaceCarousel"},l?r.createElement(ze,null):r.createElement(fe,{emptyData:r.createElement(Le.A,{message:"Lo sentimos, no se encuentran datos."})},(0,K.lp)(o).map(e=>r.createElement(ce.A,{vehicle:e,index:e.id,key:e.id,setShowModal:h,stadistics:M.XQ}))))),r.createElement(Y.A,null,r.createElement("div",{className:"containerSeeMotorcycles"},r.createElement(p.A,{to:z.D.search.motos,children:"Ver motos",onClick:()=>(g({type:"link",structure:{tealium_event:"link",event_name:"click",click:"home-bloque_motos-enlace_ver_motos"}}),setTimeout(()=>{b.push(z.D.search.motos)},1),!0),theme:"quaternary",rightIcon:r.createElement(Me.A,{alt:"Icono de flecha",width:"12",height:"12",src:he.A})})))),r.createElement(Pe.default,{show:f,onClose:()=>{h(!1)}}))}),xt=()=>{var e=(0,et.A)(!0),t=e.ref,a=e.isVisible;return r.createElement("div",{ref:t,className:"containerMotorcyclesSection"},a&&r.createElement(r.Fragment,null,r.createElement(Y.A,null,r.createElement(u,{text:"Estrena moto con CarroYa",textToHighlight:"Estrena moto"}),r.createElement(Z,{text:"En Carroya encuentras la moto que va contigo, eléctrica o a gasolina."})),r.createElement(r.Suspense,{fallback:r.createElement("div",{style:{minHeight:"315px"}},"Loader...")},r.createElement(Et,null))))},Ct=a(812),wt=e=>{var t=e.news,a=t.title,n=t.image,o=t.url,i=t.date,c=t.statistics,l=(0,P.Ay)().setTealium;return r.createElement("section",{className:"containerCyCardNews hoverZoomImage",onClick:()=>{}},r.createElement("a",{href:o,target:"_blank",rel:"noopener noreferrer",onClick:()=>l(c)},r.createElement("figure",{className:"containerCyCardNews__containerImage"},r.createElement(Me.A,{src:n,alt:a,height:"125",fallbackImg:Ct.A})),r.createElement("div",{className:"containerCyCardNews__content"},r.createElement("p",{className:"containerCyCardNews__content__date"},i),r.createElement("h3",{className:"containerCyCardNews__content__title"},a))))};function St(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}
1finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return At(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?At(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var Nt=()=>{var e=(0,et.A)(!0),t=e.ref,a=e.isVisible,n=St((0,r.useState)([]),2),o=n[0],i=n[1],c=St((0,r.useState)(!0),2),l=c[0],s=c[1],u=St((0,r.useState)(!1),2),m=u[0],d=u[1],y=(0,P.Ay)().setTealium;(0,r.useEffect)(()=>{d(!1),j.default.get("".concat(v.cA.url,"/find-news/the-new")).then(e=>{if("No hay resultados para la categorÃa, por favor verificar."!==e.data){var t=(e=>e.map(e=>{return{id:e.created_timestamp,title:e.title,image:e.image_path,url:e.url,date:(t=e.created_timestamp,a=new Date(1e3*t),r=a.getDate(),n=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][a.getMonth()],o=a.getFullYear(),"".concat(n," ").concat(r," de ").concat(o)),statistics:{type:"link",structure:{tealium_event:"link",event_name:"click",click:"home-bloque_noticias-".concat(e.title)}}};var t,a,r,n,o}).slice(0,5))(Object.values(e.data));i(t)}else i([])}).catch(()=>{d(!0)}).finally(()=>s(!1))},[]);return r.createElement("section",{ref:t,className:"containerCyNews"},a&&r.createElement(r.Fragment,null,r.createElement(Y.A,{classSafeArea:"customClassCarouselNews"},m?r.createElement("div",{className:""},r.createElement(Le.A,null)):r.createElement("div",{className:"containerSpaceCarousel"},l?r.createElement(ze,{isShort:!0}):r.createElement(fe,null,null==o?void 0:o.map(e=>r.createElement(wt,{key:e.id,news:e}))))),r.createElement(Y.A,null,r.createElement("div",{className:"containerSeeMotorcycles"},r.createElement(p.A,{to:"/noticias",children:"Ver todas las noticias",onClick:()=>(y({type:"link",structure:{tealium_event:"link",event_name:"click",click:"home-bloque_noticias-enlace_ver_noticias"}}),setTimeout(()=>{window.open(z.D.News.general,"_blank","noopener noreferrer")},1),!0),theme:"quaternary",rightIcon:r.createElement(Me.A,{alt:"Icono de flecha",width:"12",height:"12",src:he.A})})))))},It=()=>{var e=(0,et.A)(!0),t=e.ref,a=e.isVisible;return r.createElement(r.Fragment,null,r.createElement("div",{id:"noticias-ref"}),r.createElement("div",{ref:t,className:"containerCyNewsSection",id:"noticias"},a&&r.createElement(r.Fragment,null,r.createElement(Y.A,null,r.createElement(u,{text:"Noticias de movilidad",textToHighlight:"Noticias"}),r.createElement(Z,{text:"Mantente informado sobre cambios, avances y tendencias en transporte, infraestructura y movilidad sostenible. "})),r.createElement(r.Suspense,{fallback:r.createElement("div",{style:{minHeight:"315px"}},"Loader...")},r.createElement(Nt,null)))))},Tt=a.p+"static/media/cy_app_store.efde53fd.webp",Ot=a.p+"static/media/cy_google_play.b73e3fe9.webp";function jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pt(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Pt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var Mt=()=>{var e=jt((0,r.useState)("Browser"),2),t=e[0],a=e[1];return(0,r.useEffect)(()=>{var e=navigator.userAgent;/Android/i.exec(e)?a("Android"):/iPhone|iPad|iPod/i.exec(e)?a("Ios"):a("Browser")},[]),{platform:t,isAndroid:"Android"===t,isIos:"Ios"===t,isBrowser:"Browser"===t}},Dt=()=>{var e=Mt().isIos,t=(0,P.Ay)().setTealium,a=(e,a)=>{t({type:"link",structure:{tealium_event:"link",event_name:"click",click:"home-bloque_marcas-mas-buscadas-banner-app-".concat(e)}}),window.open(a)};return r.createElement("section",{className:"cyDownloadAppContainer"},r.createElement("div",{className:"cyDownloadAppContainer__containerImages"},r.createElement("div",{className:"cyDownloadAppContainer__containerImages__qrCreditCard"},r.createElement("div",{className:"cyDownloadAppContainer__containerImages__qrCreditCard__qr"},r.createElement("img",{src:"".concat(v.cA.public.assets,"/images/home/[email protected]"),alt:"Imagen de Qr para descargar App de Carroya",width:80,height:80}),r.createElement("p",null,"Descárgala ahora")),r.createElement("div",{className:"cyDownloadAppContainer__containerImages__qrCreditCard__creditCard"},r.createElement("img",{src:"".concat(v.cA.public.assets,"/images/home/[email protected]"),alt:"Descarga la app CarroYa en Android y IOS en Colombia recibe alertas sobre la movilidad en tu ciudad, pico y placa, recarga y controla tu cuenta FacilPass compra tu seguro todo riesgo, SOAT en Colombia y mucho más"}))),r.createElement("div",{className:"cyDownloadAppContainer__containerImages__buttons"},r.createElement("figure",{onClick:()=>a("google-play",v.cA.playStore),className:"cyDownloadAppContainer__containerImages__buttons__containerImage"},r.createElement("img",{src:Ot,alt:"Logo Google Play",width:135,height:40})),r.createElement("figure",{onClick:()=>a("app-store",v.cA.appStore),className:"cyDownloadAppContainer__containerImages__buttons__containerImage"},r.createElement("img",{src:Tt,alt:"Logo App Store",width:124,height:40})))),r.createElement("div",{className:"cyDownloadAppContainer__containerInfo"},r.createElement("p",null,"¡Aquà todo marchará sobre ruedas!"),r.createElement("p",null,"Descarga la app de CarroYa y recibe alertas de:"),r.createElement("ul",{className:"cyDownloadAppContainer__containerInfo__listItems"},r.createElement("li",null,"Movilidad y del pico y placa de tu ciudad"),r.createElement("li",null,"Recarga automática de tu TAG de FacilPass"),r.createElement("li",null,"Vencimiento del SOAT, Impuesto Vehicular y tu próxima revisión técnico mecánica")),r.createElement("span",null),r.createElement("ul",{className:"cyDownloadAppContainer__containerInfo__listItem"},r.createElement("li",null,"Además paga ",r.createElement("span",null,"peajes, parqueaderos, sin efectivo")," desde nuestra aplicación.")),r.createElement("p",null,"Inicia sesión y disfruta de una experiencia solo para ti."),r.createElement("button",{onClick:()=>{e?a("app-store",v.cA.appStore):a("google-play",v.cA.playStore)},className:"cyDownloadAppContainer__containerInfo__button"},r.createElement("span",null),r.createElement("p",{className:"cyDownloadAppContainer__containerInfo__button__text"},"Descargar ahora"),r.createElement(pe,{size:15,color:m.y.white}))))};function zt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function Lt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?zt(Object(a),!0).forEach(function(t){Bt(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):zt(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function Bt(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Ht(e,t,a,r,n,o,i){try{var c=e[o](i),l=c.value}catch(e){return void a(e)}c.done?t(l):Promise.resolve(l).then(r,n)}function Rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ut(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Ut(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var Vt=()=>{var e=Rt((0,r.useState)({}),2),t=e[0],a=e[1],n=Rt((0,r.useState)([]),2),o=n[0],i=n[1],c=(0,P.Ay)().setTealium;function l(){var e;return e=function*(){var e,t=yield j.default.get(v.cA.public.assets+"/json/most-searched-brands.json"),a=null==t||null===(e=t.data)||void 0===e?void 0:e.brands;i((e=>null==e?void 0:e.map(e=>({id:e.id,brand:e.brand,vehicleType:e.vehicleType,link:e.link,image:e.image,statistics:{type:"link",structure:{tealium_event:"link",event_name:"click",click:"home-bloque_marcas-mas-buscadas-".concat(e.brand)}}})))(a))},l=function(){var t=this,a=arguments;return new Promise(function(r,n){var o=e.apply(t,a);function i(e){Ht(o,r,n,i,c,"next",e)}function c(e){Ht(o,r,n,i,c,"throw",e)}i(void 0)})},l.apply(this,arguments)}return(0,r.useEffect)(()=>{!function(){l.apply(this,arguments)}()},[]),r.createElement(r.Fragment,null,r.createElement("div",{className:"containerCyMostSearchedBrands"},r.createElement(Y.A,{classSafeArea:"customClassBrandslNews"},r.createElement("div",null,r.createElement(fe,null,null==o?void 0:o.map(e=>r.createElement("a",{href:"".concat(window.location.origin,"/").concat(e.link,"/").concat(e.brand.toLowerCase()),target:"_blank",rel:"noopener noreferrer",onClick:()=>{c(e.statistics)}},r.createElement("img",{className:"containerCyMostSearchedBrands__brand",key:e.id,src:t[e.id]?"".concat(v.cA.public.assets,"/images/logos/brandsSelect/cy_no_marca.webp"):"".concat(v.cA.public.assets).concat(e.image),alt:e.brand,width:100,height:100,loading:"lazy",onError:()=>a(t=>Lt(Lt({},t),{},{[e.id]:!0}))})))))),r.createElement(Y.A,null,r.createElement(Dt,null))))},qt=a(4556);function Ft(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function Gt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(a),!0).forEach(function(t){Yt(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ft(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function Yt(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}
1finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $t(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?$t(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var Jt=()=>{var e=Wt((0,r.useState)({}),2),t=e[0],a=e[1],n=Wt((0,qt.A)(),1)[0],o=Wt((0,r.useState)([]),2),i=o[0],c=o[1],l=(0,P.Ay)().setTealium;return(0,r.useEffect)(()=>{c((e=>null==e?void 0:e.map(e=>{return{id:e.id,dealer:e.name,link:"concesionario/".concat((t=e.name,t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-"))),image:e.images["2x"],statistics:{type:"link",structure:{tealium_event:"link",event_name:"click",click:"home-bloque_concesionarios-aliados-".concat(e.name)}}};var t}))(n.filter(e=>e.featured)))},[n]),r.createElement(r.Fragment,null,r.createElement("div",{className:"containerCyDealers"},r.createElement(Y.A,{classSafeArea:"customClassBrandslNews"},r.createElement("div",null,r.createElement(fe,{autoPlay:!0,autoPlayInterval:5e3},null==i?void 0:i.map(e=>r.createElement("a",{href:"".concat(window.location.origin,"/").concat(e.link),target:"_blank",rel:"noopener noreferrer",onClick:()=>{l(e.statistics)}},r.createElement("img",{className:"containerCyDealers__brand",key:e.id,src:t[e.id]?"".concat(v.cA.public.assets,"/images/logos/brandsSelect/cy_no_marca.webp"):"".concat(v.cA.public.assets).concat(e.image),alt:"Concesionario ".concat(e.dealer),width:115,height:40,loading:"lazy",onError:()=>a(t=>Gt(Gt({},t),{},{[e.id]:!0}))}))))))))},Zt=()=>{var e=(0,et.A)(!0),t=e.ref,a=e.isVisible,n=(0,P.Ay)().setTealium;return r.createElement("div",{ref:t,className:"containerMostSearchedBrandsSection"},a&&r.createElement(r.Fragment,null,r.createElement(Y.A,null,r.createElement(u,{text:"Concesionarios aliados en Colombia",textToHighlight:"Concesionarios"})),r.createElement(r.Suspense,{fallback:r.createElement("div",{style:{minHeight:"315px"}},"Loader...")},r.createElement(Jt,null)),r.createElement(Y.A,null,r.createElement("div",{className:"containerSeeConcessionaire"},r.createElement(p.A,{to:"/concesionarios",children:"Ver vehÃculos de concesionarios",onClick:()=>(n({type:"link",structure:{tealium_event:"link",event_name:"click",click:"home-bloque_noticias-enlace_ver_noticias"}}),setTimeout(()=>{window.open(z.D.Concessionaire.general,"_blank","noopener noreferrer")},1),!0),theme:"quaternary",rightIcon:r.createElement(Me.A,{alt:"Icono de flecha",width:"12",height:"12",src:he.A})}))),r.createElement(Y.A,null,r.createElement(u,{text:"Marcas de vehÃculos más buscadas",textToHighlight:"Marcas"})),r.createElement(r.Suspense,{fallback:r.createElement("div",{style:{minHeight:"315px"}},"Loader...")},r.createElement(Vt,null))))},Qt=a(2013);function Xt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kt(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Kt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var ea=()=>{var e=(0,et.A)(!0),t=e.ref,a=e.isVisible,n=Xt((0,r.useState)(0),2),o=n[0],i=n[1],c=(0,P.Ay)().setTealium,l=(0,L.useHistory)(),s=[{name:Qt.e1.U,tags:Qt.e1.p},{name:Qt.Jz.U,tags:Qt.Jz.p},{name:Qt.Rk.U,tags:Qt.Rk.p},{name:Qt.Bj.U,tags:Qt.Bj.p}
1,{name:Qt.Pr.U,tags:Qt.Pr.p}];return r.createElement("div",{ref:t,className:"containerCyMostWantedVehicles"},a&&r.createElement(r.Fragment,null,r.createElement(Y.A,null,r.createElement("h2",{className:"containerCyMostWantedVehicles__title"},"VehÃculos más buscados en Colombia"),r.createElement(re,{tabs:s,changetab:e=>{i(e)},statistics:"home-bloque-vehiculos-mas-buscados-tab-",gap:"20px"}),r.createElement("div",{className:"containerCyMostWantedVehicles__content"},s[o].tags.map((e,t)=>r.createElement(L.Link,{to:e.link,onClick:()=>{return t=e.text,a=e.link,c({type:"link",structure:{tealium_event:"link",event_name:"click",click:"home-bloque-vehiculos-mas-buscados-tag-".concat(t)}}),void setTimeout(()=>{l.push(a)},1);var t,a},className:"containerCyMostWantedVehicles__content__item"},r.createElement("h3",{className:"containerCyMostWantedVehicles__content__item__tag"},e.text),t<s[o].tags.length-1&&r.createElement("span",{className:"containerCyMostWantedVehicles__content__item__point"},"·")))))))},ta=a.p+"static/media/cy_star_one_mob.eb13e998.webp",aa=a.p+"static/media/cy-StarOne-DSK.ee00af5c.webp";function ra(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return na(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function na(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var oa=()=>{var e,t=ra((0,c.A)(),1)[0];e=(0,L.useLocation)(),(0,r.useEffect)(()=>{var t=e.hash;if(t&&["#comprar","#vender"].includes(t)){var a,r=t.replace("#",""),n=document.getElementById(r);return n&&(n.classList.remove("specialSectionHighlighting"),n.classList.remove("backgroundSectionInitial"),n.classList.add("specialSectionHighlighting"),a=setTimeout(()=>{n.classList.remove("specialSectionHighlighting"),n.classList.add("backgroundSectionInitial")},3e3)),()=>{clearTimeout(a),n&&(n.classList.remove("specialSectionHighlighting"),n.classList.add("backgroundSectionInitial"))}}},[e.hash]);var a=(0,r.useContext)(o.Bn).adSpacePrepared;return(0,r.useEffect)(()=>{if(a({adUnits:[{divId:"starOneHome"}]}),window.location.hash){var e=window.location.hash.replace("#",""),t=document.getElementById(e);if(t){var r=t.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:r,behavior:"smooth"})}}},[]),r.createElement("div",{className:"containerHome"},r.createElement(n.m,null,r.createElement("script",{type:"application/ld+json"},JSON.stringify({"@context":"https://schema.org/ ","@type":"WebSite",name:"CarroYa.com Colombia",url:"https://www.carroya.com/ ",potentialAction:{"@type":"SearchAction",target:"https://www.carroya.com/vehiculos?page=1&wkeyword= {search_term_string}","query-input":"required name=search_term_string"}}))),r.createElement(i.o1,null,r.createElement(o.Fu,null,r.createElement(Y.A,{classSafeArea:"safeAreaHero"},r.createElement("div",{id:"starOneHome",className:"containerMathildeHero"},r.createElement("div",{className:"backgroundHero"},r.createElement("picture",null,r.createElement("source",{srcSet:ta,media:"(max-width: 500px)",type:"image/webp"}),r.createElement("source",{srcSet:aa,media:"(min-width: 501px)",type:"image/webp"}),r.createElement("img",{src:"/assets/images/cy_star_one_dsk.webp",alt:"Imagen principal CarroYa",width:2048,height:565}))))),r.createElement("h1",{style:{display:"none"}},"CarroYa.com compra, vende y servicios para vehÃculos en Colombia"),r.createElement("div",{id:"comprar-ref",className:"fakeContainerBuy"}),"mobile"!==t.device&&r.createElement("div",{id:"vender-ref"}),r.createElement(Y.A,{classSafeArea:"customClassBuySell"},r.createElement("div",{className:"containerBuySell"},r.createElement("div",{className:"containerBuySell__buy backgroundSectionInitial",id:"c
1omprar"},r.createElement(G,{content:l.W[0].section})),r.createElement("div",{className:"containerBuySell__sell backgroundSectionInitial",id:"vender"},"mobile"===t.device&&r.createElement("div",{id:"vender-ref"}),r.createElement(J,{content:l.W[1].section})))),r.createElement(gt,null),r.createElement("div",{id:"financiar-ref"}),r.createElement("div",{id:"financiar"},r.createElement(ht,{content:l.W[2].section})),r.createElement(tt,null),r.createElement(xt,null),r.createElement("div",{className:"containerSeveralSections"},r.createElement(lt,null),r.createElement(pt,null)),r.createElement(It,null),(0,ct.H)()&&r.createElement("div",{className:"containerAuxGoogleAdsenseMidleHome2"},r.createElement("div",{className:"containerGoogleAdsenseMidleHome2"},r.createElement(it.A,{placement:"middleHome2",wrapperClassName:"wrapperMidleHome2"}))),r.createElement(Zt,null),r.createElement(ea,null),r.createElement("div",{className:"containerAdvertisingHome"},r.createElement("div",{id:"mth_home_1"}),r.createElement("div",{id:"mth_home_2"}),r.createElement("div",{id:"mth_home_3"}),r.createElement("div",{id:"mth_home_4"}),r.createElement("div",{id:"mth_home_5"})))))}},1806:function(e,t,a){a.d(t,{T:function(){return o}});var r=a(4053),n=a(802),o=()=>{var e=r.CryptoStorage.getLocalStorage(n.z.token);return e?{Authorization:"Bearer ".concat(e)}:void 0}},8025:function(e,t,a){a.d(t,{g:function(){return o}});var r=a(4928),n=a(99),o=()=>{var e=(0,n.J)().currentUser;return!(null==e||!e.isLogged)&&(0,r.O)(e.accountInfo)}},4556:function(e,t,a){var r=a(4002),n=a(7216),o=a(9110);function i(e,t,a,r,n,o,i){try{var c=e[o](i),l=c.value}catch(e){return void a(e)}c.done?t(l):Promise.resolve(l).then(r,n)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,o,i,c=[],l=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=o.call(a)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function s(){var e;return e=function*(){var e=window.sessionStorage.getItem("dealers");if(e)return Promise.resolve(JSON.parse(decodeURI(e)));try{var t,a=yield n.default.get(o.cA.public.assets+"/json/dealers.json?m=".concat((new Date).getTime())),r=null==a||null===(t=a.data)||void 0===t?void 0:t.dealers;if(r){var i=encodeURI(JSON.stringify(r));window.sessionStorage.setItem("dealers",i)}return r}catch(e){return Promise.reject([])}},s=function(){var t=this,a=arguments;return new Promise(function(r,n){var o=e.apply(t,a);function c(e){i(o,r,n,c,l,"next",e)}function l(e){i(o,r,n,c,l,"throw",e)}c(void 0)})},s.apply(this,arguments)}t.A=()=>{var e=c((0,r.useState)([]),2),t=e[0],a=e[1];return(0,r.useEffect)(()=>{(function(){return s.apply(this,arguments)})().then(e=>{(null==e?void 0:e.length)>0&&a(e)})},[]),[t]}},2013:function(e){e.exports=JSON.parse('{"e1":{"U":"Carros","p":[{"text":"kia picanto","link":"/carros-y-camionetas/kia/picanto"},{"text":"mazda 2","link":"/carros-y-camionetas/mazda/2"},{"text":"suzuki swift","link":"/carros-y-camionetas/suzuki/swift"},{"text":"renault kwid","link":"/carros-y-camionetas/renault/kwid"},{"text":"chevrolet onix","link":"/carros-y-camionetas/chevrolet/onix"},{"text":"toyota corolla","link":"/carros-y-camionetas/toyota/corolla"},{"text":"chevrolet joy","link":"/carros-y-camionetas/chevrolet/joy"},{"text":"ford fiesta","link":"/carros-y-camionetas/ford/fiesta"},{"text":"nissan march","link":"/carros-y-camionetas/nissan/march"},{"text":"twingo","link":"/carros-y-camionetas/renault/twingo"},{"text":"kia k3","link":"/carros-y-camionetas/kia/k3"},{"text":"kia rio","link":"/carros-y-camionetas/kia/rio"},{"text":"volkswagen gol","link":"/carros-y-camionetas/volkswagen/gol"},{"text":"chevrolet sail","link":"/carros-y-camionetas/chevrolet/sail"}
1,{"text":"nissan versa","link":"/carros-y-camionetas/nissan/versa"},{"text":"renault sandero","link":"/carros-y-camionetas/renault/sandero"},{"text":"toyota yaris","link":"/carros-y-camionetas/toyota/yaris"},{"text":"chevrolet beat","link":"/carros-y-camionetas/chevrolet/beat"},{"text":"spark","link":"/carros-y-camionetas/chevrolet/spark"},{"text":"renault logan","link":"/carros-y-camionetas/renault/logan"},{"text":"onix","link":"/carros-y-camionetas/chevrolet/onix"},{"text":"renault stepway","link":"/carros-y-camionetas/renault/stepway"},{"text":"chevrolet spark","link":"/carros-y-camionetas/chevrolet/spark"},{"text":"honda civic","link":"/carros-y-camionetas/honda/civic"},{"text":"volkswagen jetta","link":"/carros-y-camionetas/volkswagen/jetta"},{"text":"sandero","link":"/carros-y-camionetas/renault/sandero"},{"text":"nissan sentra","link":"/carros-y-camionetas/nissan/sentra"},{"text":"mazda 6","link":"/carros-y-camionetas/mazda/6"},{"text":"kia cerato","link":"/carros-y-camionetas/kia/cerato"},{"text":"renault clio","link":"/carros-y-camionetas/renault/clio"},{"text":"hyundai accent","link":"/carros-y-camionetas/hyundai/accent"},{"text":"kwid","link":"/carros-y-camionetas/renault/kwid"},{"text":"mazda 323","link":"/carros-y-camionetas/mazda/323"},{"text":"swift","link":"/carros-y-camionetas/suzuki/swift"},{"text":"mitsubishi lancer","link":"/carros-y-camionetas/mitsubishi/lancer"},{"text":"toyota corolla hybrid","link":"/carros-y-camionetas/toyota/corolla/hibrido"},{"text":"mazda 3 grand touring","link":"/carros-y-camionetas/mazda/3"},{"text":"chevrolet aveo","link":"/carros-y-camionetas/chevrolet/aveo"},{"text":"chevrolet camaro","link":"/carros-y-camionetas/chevrolet/camaro"},{"text":"sprint","link":"/carros-y-camionetas/chevrolet/sprint"},{"text":"stepway","link":"/carros-y-camionetas/renault/stepway"},{"text":"mazda 2 grand touring","link":"/carros-y-camionetas/mazda/2"},{"text":"corsa","link":"/carros-y-camionetas/chevrolet/corsa"},{"text":"renault twingo","link":"/carros-y-camionetas/renault/twingo"},{"text":"chevrolet sonic","link":"/carros-y-camionetas/chevrolet/sonic"},{"text":"tucson","link":"/carros-y-camionetas/hyundai/tucson"},{"text":"chevrolet optra","link":"/carros-y-camionetas/chevrolet/optra"},{"text":"logan renault","link":"/carros-y-camionetas/renault/logan"},{"text":"hyundai i25","link":"/carros-y-camionetas/hyundai/i25"},{"text":"peugeot 206","link":"/carros-y-camionetas/peugeot/206"}]},"Jz":{"U":"Camionetas","p":[{"text":"renault arkana","link":"/carros-y-camionetas/renault/arkana"},{"text":"renault kardian","link":"/carros-y-camionetas/renault/kardian"},{"text":"mazda cx 30","link":"/carros-y-camionetas/mazda/cx-30"},{"text":"blazer","link":"/carros-y-camionetas/chevrolet/blazer"},{"text":"toyota corolla cross","link":"/carros-y-camionetas/toyota/corolla-cross"},{"text":"kia sportage","link":"/carros-y-camionetas/kia/sportage"},{"text":"ford raptor","link":"/carros-y-camionetas/ford/f150"},{"text":"nissan kicks","link":"/carros-y-camionetas/nissan/kicks"},{"text":"toyota hilux","link":"/carros-y-camionetas/toyota/hilux"},{"text":"txl","link":"/carros-y-camionetas/toyota/prado"},{"text":"toyota fortuner","link":"/carros-y-camionetas/toyota/fortuner"},{"text":"tracker","link":"/carros-y-camionetas/chevrolet/tracker"},{"text":"chevrolet tracker","link":"/carros-y-camionetas/chevrolet/tracker"},{"text":"cupra formentor","link":"/carros-y-camionetas/cupra/formentor"},{"text":"range rover","link":"/carros-y-camionetas/land-rover/range-rover-evoque"},{"text":"mazda cx 50","link":"/carros-y-camionetas/mazda/cx-50"},{"text":"nissan frontier","link":"/carros-y-camionetas/nissan/frontier"},{"text":"renault duster","link":"/carros-y-camionetas/renault/duster"},{"text":"ford explorer","link":"/carros-y-camionetas/ford/explorer"},{"text":"toyota sequoia","link":"/carros-y-camionetas/toyota/sequoia"},{"text":"jeep wrangler","link":"/carros-y-camionetas/jeep/wrangler"},{"text":"hyundai kona","link":"/carros-y-camionetas/hyundai/kona"},{"text":"peugeot 3008","link":"/carros-y-camionetas/peugeot/3008"},{"text":"mazda cx 5","link":"/carros-y-camionetas/mazda/cx-5"},{"text":"ford escape","link":"/carros-y-camionetas/ford/escape"},{"text":"cx30","link":"/carros-y-camionetas/mazda/cx-30"},{"text":"toyota prado","link":"/carros-y-camionetas/toyota/prado"},{"text":"ford ranger","link":"/carros-y-camionetas/ford/ranger"},{"text":"nissan qashqai","link":"/carros-y-camionetas/nissan/qashqai"},{"text":"peugeot 2008","link":"/carros-y-camionetas/peugeot/2008"},{"text":"toyota land cruiser","link":"/carros-y-camionetas/toyota/land-cruiser"},{"text":"hyundai tucson","link":"/carros-y-camionetas/hyundai/tucson"},{"text":"chevrolet tahoe","link":"/carros-y-camionetas/chevrolet/tahoe"},{"text":"jeep rubicon","link":"/carros-y-camionetas/jeep/wrangler"},{"text":"fortuner","link":"/carros-y-camionetas/toyota/fortuner"},{"text":"ford ecosport","link":"/carros-y-camionetas/ford/ecosport"},{"text":"renault captur","link":"/carros-y-camionetas/renault/captur"},{"text":"toyota rav4","link":"/carros-y-camionetas/toyota/rav-4"},{"text":"kia seltos","link":"/carros-y-camionetas/kia/seltos"},{"text":"tahoe","link":"/carros-y-camionetas/chevrolet/tahoe"},{"text":"ford bronco","link":"/carros-y-camionetas/ford/bronco"},{"text":"dodge journey","link":"/carros-y-camionetas/dodge/journey"},{"text":"toyota yaris cross","link":"/carros-y-camionetas/toyota/yaris-cross"},{"text":"renault oroch","link":"/carros-y-camionetas/renault/duster-oroch"},{"text":"suzuki fronx","link":"/carros-y-camionetas/suzuki/fronx"},{"text":"suzuki vitara","link":"/carros-y-camionetas/suzuki/vitara"},{"text":"kia sonet","link":"/carros-y-camionetas/kia/sonet"},{"text":"bmw x4","link":"/carros-y-camionetas/bmw/x4"},{"text":"honda crv","link":"/carros-y-camionetas/honda/cr-v"},{"text":"chevrolet captiva","link":"/carros-y-camionetas/chevrolet/captiva"}]},"Rk":{"U":"Motos","p":[{"text":"mt 09","link":"/motos/yamaha/mt"},{"text":"xtz 150","link":"/motos/yamaha/xtz"},{"text":"yamaha","link":"/motos/yamaha"},{"text":"gixxer 150","link":"/motos/suzuki/gixxer"},{"text":"dominar 400","link":"/motos/bajaj/dominar"},{"text":"xtz 125","link":"/motos/yamaha/xtz"},{"text":"akt","link":"/motos/akt"},{"text":"nkd 125","link":"/motos/akt/ak"},{"text":"xtz 250","link":"/motos/yamaha/xtz"},{"text":"nmax","link":"/motos/yamaha/nmax"},{"text":"mt09","link":"/motos/yamaha/mt"},{"text":"pulsar ns 200","link":"/motos/bajaj/pulsar"},{"text":"nkd","link":"/motos/akt/ak"},{"text":"auteco","link":"/motos/auteco"},{"text":"tvs raider 125","link":"/motos/tvs/raider"},{"text":"ns 200","link":"/motos/bajaj/pulsar"},{"text":"apache 200","link":"/motos/tvs/apache"},{"text":"dr 150","link":"/motos/suzuki/dr"},{"text":"duke 200","link":"/motos/ktm/duke"},{"text":"fz 3.0","link":"/motos/yamaha/fz"},{"text":"royal enfield","link":"/motos/royal-enfield"},{"text":"fz 250","link":"/motos/yamaha/fz"},{"text":"boxer ct 100","link":"/motos/bajaj/boxer"},{"text":"kawasaki","link":"/motos/kawasaki"},{"text":"ktm","link":"/motos/ktm"},{"text":"benelli 180s","link":"/motos/benelli/180"},{"text":"mrx 150","link":"/motos/victory/mrx"},{"text":"suzuki gixxer 250","link":"/motos/suzuki/gixxer"},{"text":"honda motos","link":"/motos/honda"},{"text":"suzuki motos","link":"/motos/suzuki"},{"text":"tvs","link":"/motos/tvs"},{"text":"pulsar","link":"/motos/bajaj/pulsar"},{"text":"crypton fi","link":"/motos/yamaha/crypton"},{"text":"yz 125","link":"/motos/yamaha/yz"},{"text":"r15","link":"/motos/yamaha/yzf"},{"text":"xpulse 200","link":"/motos/bajaj/pulsar"},{"text":"pulsar ns 160","link":"/motos/bajaj/pulsar"},{"text":"apache 160","link":"/motos/tvs/apache"},{"text":"xre 300","link":"/motos/honda/xre"},{"text":"boxer","link":"/motos/bajaj/boxer"},{"text":"mt 03","link":"/motos/yamaha/mt"},{"text":"raider 125","link":"/motos/tvs/raider"},{"text":"duke 390","link":"/motos/ktm/duke"},{"text":"xr 150","link":"/motos/honda/xr"},{"text":"yamaha motos","link":"/motos/yamaha"},{"text":"victory","link":"/motos/victory"},{"text":"honda navi","link":"/motos/honda/navi"},{"text":"benelli","link":"/motos/benelli"},{"text":"husqvarna","link":"/motos/husqvarna"},{"text":"harley davidson","link":"/motos/harley-davidson"}]},"Bj":{"U":"Modelos 2025","p":[{"text":"soat 2025","link":"/servicio/seguros-y-asistencias/soat"},{"text":"nmax 2025","link":"/motos/yamaha/nmax/2025"},{"text":"kia picanto 2025","link":"/carros-y-camionetas/kia/picanto/2025"},{"text":"fortuner 2025","link":"/carros-y-camionetas/toyota/fortuner/2025"},{"text":"kia sportage 2025","link":"/carros-y-camionetas/kia/sportage/2025"},{"text":"duster 2025","link":"/carros-y-camionetas/renault/duster/2025"},{"text":"prado 2025","link":"/carros-y-camionetas/toyota/prado/2025"},{"text":"toyota prado 2025","link":"/carros-y-camionetas/toyota/prado/2025"},{"text":"toyota land cruiser 2025","link":"/carros-y-camionetas/toyota/land-cruiser/2025"},{"text":"ford raptor 2025","link":"/carros-y-camionetas/ford/f150/2025"},{"text":"nissan kicks 2025","link":"/carros-y-camionetas/nissan/kicks/2025"},{"text":"toyota fortuner 2025","link":"/carros-y-camionetas/toyota/fortuner/2025"},{"text":"renault duster 2025","link":"/carros-y-camionetas/renault/duster/2025"},{"text":"toyota txl 2025","link":"/carros-y-camionetas/toyota/prado/2025"},{"text":"txl 2025","link":"/carros-y-camionetas/toyota/prado/2025"},{"text":"hilux 2025","link":"/carros-y-camionetas/toyota/hilux/2025"}
1,{"text":"nissan versa 2025","link":"/carros-y-camionetas/nissan/versa/2025"},{"text":"toyota hilux 2025","link":"/carros-y-camionetas/toyota/hilux/2025"},{"text":"nissan qashqai 2025","link":"/carros-y-camionetas/nissan/qashqai/2025"},{"text":"tucson 2025","link":"/carros-y-camionetas/hyundai/tucson/2025"},{"text":"toyota tundra 2025","link":"/carros-y-camionetas/toyota/tundra/2025"},{"text":"kia picanto 2025 precio","link":"/carros-y-camionetas/kia/picanto/2025"},{"text":"mazda 2 2025","link":"/carros-y-camionetas/mazda/2/2025"},{"text":"kia seltos 2025","link":"/carros-y-camionetas/kia/seltos/2025"},{"text":"toyota 2025","link":"/carros-y-camionetas/toyota/2025"},{"text":"mazda 3 2025","link":"/carros-y-camionetas/mazda/3/2025"},{"text":"hyundai tucson 2025","link":"/carros-y-camionetas/hyundai/tucson/2025"},{"text":"kia picanto gt line 2025","link":"/carros-y-camionetas/kia/picanto/2025"},{"text":"jeep rubicon 2025","link":"/carros-y-camionetas/jeep/wrangler/2025"},{"text":"kia soluto 2025","link":"/carros-y-camionetas/kia/soluto/2025"},{"text":"cupra formentor 2025","link":"/carros-y-camionetas/cupra/formentor/2025"},{"text":"stepway 2025","link":"/carros-y-camionetas/renault/stepway/2025"},{"text":"captiva 2025","link":"/carros-y-camionetas/chevrolet/captiva/2025"},{"text":"renault stepway 2025","link":"/carros-y-camionetas/renault/stepway/2025"},{"text":"tracker 2025","link":"/carros-y-camionetas/chevrolet/tracker/2025"},{"text":"toyota sequoia 2025 precio","link":"/carros-y-camionetas/toyota/sequoia/2025"},{"text":"honda civic 2025","link":"/carros-y-camionetas/honda/civic/2025"},{"text":"kia sportage 2025 precio colombia","link":"/carros-y-camionetas/kia/sportage/2025"},{"text":"ford ranger 2025","link":"/carros-y-camionetas/ford/ranger/2025"},{"text":"land cruiser 2025","link":"/carros-y-camionetas/toyota/land-cruiser/2025"},{"text":"renault captur 2025","link":"/carros-y-camionetas/renault/captur/2025"},{"text":"land cruiser prado 2025","link":"/carros-y-camionetas/toyota/land-cruiser/2025"},{"text":"mazda cx 30 2025","link":"/carros-y-camionetas/mazda/cx-30/2025"},{"text":"kia 2025","link":"/carros-y-camionetas/kia/2025"},{"text":"toyota corolla 2025","link":"/carros-y-camionetas/toyota/corolla-cross/2025"},{"text":"ford explorer 2025","link":"/carros-y-camionetas/ford/explorer/2025"},{"text":"corolla 2025","link":"/carros-y-camionetas/toyota/corolla-cross/2025"},{"text":"toyota rav4 2025","link":"/carros-y-camionetas/toyota/rav4/2025"},{"text":"corolla cross 2025","link":"/carros-y-camionetas/toyota/corolla-cross/2025"},{"text":"toyota corolla cross 2025","link":"/carros-y-camionetas/toyota/corolla-cross/2025"}]},"Pr":{"U":"Búsquedas populares","p":[{"text":"tu carro","link":"/buscar"},{"text":"chevrolet","link":"/carros-y-camionetas/chevrolet"},{"text":"honda","link":"/vehiculos/honda"},{"text":"suzuki","link":"/vehiculos/suzuki"},{"text":"renault","link":"/carros-y-camionetas/renault"},{"text":"toyota","link":"/carros-y-camionetas/toyota"},{"text":"motocicleta","link":"/motos"},{"text":"volkswagen","link":"/carros-y-camionetas/volkswagen"},{"text":"mazda","link":"/carros-y-camionetas/mazdai"},{"text":"hyundai","link":"/carros-y-camionetas/hyundai"},{"text":"kia","link":"/carros-y-camionetas/kia"},{"text":"motos","link":"/motos"},{"text":"soat en linea","link":"/servicio/seguros-y-asistencias/soat"},{"text":"carros","link":"/carros-y-camionetas"},{"text":"bmw","link":"/vehiculos/bmw"},{"text":"nissan","link":"/carros-y-camionetas/nissan"},{"text":"mercedes benz","link":"/carros-y-camionetas/mercedes-benz"},{"text":"comprar soat","link":"/servicio/seguros-y-asistencias/soat"},{"text":"ford","link":"/carros-y-camionetas/ford"},{"text":"vans","link":"/van"},{"text":"jeep","link":"/carros-y-camionetas/jeep"},{"text":"moto","link":"/motos"},{"text":"diesel","link":"/vehiculos/diesel"},{"text":"audi","link":"/carros-y-camionetas/audi"},{"text":"byd","link":"/carros-y-camionetas/byd"},{"text":"cupra","link":"/carros-y-camionetas/cupra"},{"text":"subaru","link":"/carros-y-camionetas/subaru"},{"text":"bus","link":"/bus"},{"text":"mini cooper","link":"/carros-y-camionetas/mini/cooper"},{"text":"marcas de carros","link":"/carros-y-camionetas"},{"text":"peugeot","link":"/carros-y-camionetas/peugeot"},{"text":"camioneta","link":"/carros-y-camionetas"},{"text":"gasolina","link":"/vehiculos/gasolina"},{"text":"ram","link":"/carros-y-camionetas/dodge/ram"},{"text":"tu moto","link":"/motos"},{"text":"camionetas","link":"/carros-y-camionetas"},{"text":"fiat","link":"/carros-y-camionetas/fiat"},{"text":"carros usados","link":"/carros-y-camionetas/usado"}
1,{"text":"hibrido","link":"/vehiculos/hibrido"},{"text":"seat","link":"/carros-y-camionetas/seat"},{"text":"foton","link":"/transporte-publico/foton"},{"text":"carro electrico","link":"/carros-y-camionetas/electrico"},{"text":"carros usados bogota","link":"/carros-y-camionetas/usado/bogota"},{"text":"simulador credito vehiculo","link":"/simular-credito"},{"text":"carros usados medellin","link":"/carros-y-camionetas/usado/medellin"},{"text":"motos de segunda","link":"/motos/usado"},{"text":"carros de segunda","link":"/carros-y-camionetas/usado"},{"text":"carros usados cali","link":"/carros-y-camionetas/usado/cali"},{"text":"compra de cartera vehicular","link":"/compra-de-cartera"},{"text":"motos usadas","link":"/motos/usado"}]},"FO":{"p":[{"text":"Carros usados","link":"/carros-y-camionetas/usado"},{"text":"Carros nuevos","link":"/carros-y-camionetas/nuevo"},{"text":"Carros en Bogotá","link":"/carros-y-camionetas/bogota"}]}}')}}]);
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.