1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17],{5253:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/new-see-quote",function(){return o(2273)}])},2005:function(e,t,o){"use strict";var n=o(5893),i=o(2843),a=o(2466),s=o(7986),r=o(5697),l=o.n(r),c=function(e){var t=e.message,o=e.handlerHidden,r=i.Z.styles.BannerInfoStyles;return(0,n.jsxs)("div",{className:r.bannerContainer,children:[(0,n.jsxs)("div",{className:r.leftElementContainer,children:[(0,n.jsx)(s.Z,{fill:r.iconFill,svgClass:r.iconClassName}),(0,n.jsx)("p",{className:r.message,children:t})]}),(0,n.jsx)("button",{type:"button",onClick:o,children:(0,n.jsx)(a.Z,{fill:r.closeButton.fill,onClick:o})})]})};c.defaultProps={},c.propTypes={message:l().string.isRequired,handlerHidden:l().func.isRequired},t.Z=c},8834:function(e,t,o){"use strict";var n=o(5893),i=o(5697),a=o.n(i),s=function(e){var t=e.fill;return(0,n.jsx)("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.4502 0.955285C9.58534 1.0935 9.58285 1.31509 9.44464 1.45023L3.47268 7.28948L0.55526 4.43689C0.41705 4.30175 0.41456 4.08016 0.549699 3.94195C0.684838 3.80374 0.906432 3.80125 1.04464 3.93639L3.47268 6.31047L8.95526 0.949723C9.09347 0.814584 9.31507 0.817074 9.4502 0.955285Z",className:"fill-current ".concat(t)})})};s.propTypes={fill:a().string.isRequired},t.Z=s},2466:function(e,t,o){"use strict";var n=o(5893),i=o(5697),a=o.n(i),s=function(e){var t=e.fill,o=e.size;return(0,n.jsx)("svg",{width:o,height:o,viewBox:"0 0 16 16",className:"fill-current ".concat(t),xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8047 0.195262C16.0651 0.455612 16.0651 0.877722 15.8047 1.13807L8.94281 8L15.8047 14.8619C16.0651 15.1223 16.0651 15.5444 15.8047 15.8047C15.5444 16.0651 15.1223 16.0651 14.8619 15.8047L8 8.94281L1.13807 15.8047C0.877722 16.0651 0.455612 16.0651 0.195262 15.8047C-0.0650872 15.5444 -0.0650872 15.1223 0.195262 14.8619L7.05719 8L0.195262 1.13807C-0.0650874 0.877723 -0.0650874 0.455613 0.195262 0.195263C0.455612 -0.0650862 0.877722 -0.0650862 1.13807 0.195263L8 7.05719L14.8619 0.195262C15.1223 -0.0650874 15.5444 -0.0650874 15.8047 0.195262Z",className:"fill-current ".concat(t),fill:t})})};s.defaultProps={size:16},s.propTypes={fill:a().string.isRequired,size:a().number},t.Z=s},7986:function(e,t,o){"use strict";var n=o(5893),i=o(5697),a=o.n(i),s=function(e){var t=e.fill,o=e.svgClass;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("svg",{className:"".concat(o," fill-current ").concat(t),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M12 4.54106C7.88054 4.54106 4.54106 7.88054 4.54106 12C4.54106 16.1195 7.88054 19.4589 12 19.4589C16.1195 19.4589 19.4589 16.1195 19.4589 12C19.4589 7.88054 16.1195 4.54106 12 4.54106ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12Z",fill:"#2E91ED"}),(0,n.jsx)("path",{d:"M12.4 15.6C12.4 15.8209 12.2209 16 12 16C11.7791 16 11.6 15.8209 11.6 15.6L11.6 10.8C11.6 10.5791 11.7791 10.4 12 10.4C12.2209 10.4 12.4 10.5791 12.4 10.8L12.4 15.6Z",fill:"#2E91ED"}),(0,n.jsx)("path",{d:"M12.4 8.4C12.4 8.62091 12.2209 8.8 12 8.8C11.7791 8.8 11.6 8.62091 11.6 8.4C11.6 8.17909 11.7791 8 12 8C12.2209 8 12.4 8.17909 12.4 8.4Z",fill:"#2E91ED"}),(0,n.jsx)("path",{d:"M12.4 15.6C12.4 15.8209 12.2209 16 12 16C11.7791 16 11.6 15.8209 11.6 15.6L11.6 10.8C11.6 10.5791 11.7791 10.4 12 10.4C12.2209 10.4 12.4 10.5791 12.4 10.8L12.4 15.6Z",stroke:"#2E91ED"}),(0,n.jsx)("path",{d:"M12.4 8.4C12.4 8.62091 12.2209 8.8 12 8.8C11.7791 8.8 11.6 8.62091 11.6 8.4C11.6 8.17909 11.7791 8 12 8C12.2209 8 12.4 8.17909 12.4 8.4Z",stroke:"#2E91ED"})]})})};s.defaultProps={},s.propTypes={fill:a().string.isRequired,svgClass:a().string.isRequired},t.Z=s},6401:function(e,t,o){"use strict";var n=o(5893),i=o(5697),a=o.n(i),s=function(e){var t=e.fill;return(0,n.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4.54106C7.88054 4.54106 4.54106 7.88054 4.54106 12C4.54106 16.1195 7.88054 19.4589 12 19.4589C16.1195 19.4589 19.4589 16.1195 19.4589 12C19.4589 7.88054 16.1195 4.54106 12 4.54106ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12Z",className:"fill-current ".concat(t)}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5601 9.56425C15.6682 9.67482 15.6662 9.85209 15.5556 9.96021L10.778 14.6316L8.44411 12.3495C8.33354 12.2414 8.33155 12.0642 8.43966 11.9536C8.54777 11.843 8.72505 11.841 8.83562 11.9491L10.778 13.8484L15.1641 9.5598C15.2747 9.45169 15.452 9.45368 15.5601 9.56425Z",className:"fill-current ".concat(t)})]})};s.propTypes={fill:a().string.isRequired},t.Z=s},3737:function(e,t,o){"use strict";o.d(t,{Z:function(){return f}});var n=o(1309),i=o(4586),a=o(5893),s={activeDot:"bg-primaryColor-600",inactiveDot:"bg-secondaryColor-500",swiperSly
1deClass:"absolute top-5px left-5px",swiperClass:"relative mx-auto desktop:mx-0",overflow:"overflow-y-hidden tablet:px-10px",dotsContainerOutsideClass:"flex justify-center items-center mx-auto mt-20px max-w-[100%] tablet:hidden",dotsContainerInsideClass:"flex bg-grayScaleColor-20 h-full items-center rounded-full",dotClass:"rounded-full ml-8px mr-8px text-transparent",goRightButtonClass:"ml-49px focus:outline-none hidden desktop:block",goLeftButtonClass:"mr-49px focus:outline-none hidden desktop:block",goRightIconClass:"w-26px h-48px transform rotate-180",goLeftIconClass:"w-26px h-48px",iconFillClass:"text-grayScaleColor-300 hover:text-primaryColor-600",desktopInvisible:"desktop:invisible",hidden:"hidden",touchPanX:"touch-pan-x"},r=o(5697),l=o.n(r),c=o(7294),d=o(795),u=o(6794),p=o(4002),x=function(e){var t=e.children,o=e.carouselClass,r=e.elementsNumberOnDesktop,l=e.elementsNumberOnTablet,x=e.elementsNumberOnMobile,f=e.elementsDistance,h=e.dotsUpside,v=e.verticalInsideMargin,m=e.horizontalInsideMargin,C=(0,c.useRef)(null),b=(0,n._)((0,c.useState)(null),2),g=b[0],y=b[1],w=(0,n._)((0,c.useState)(10),2),j=w[0],S=w[1],T=(0,n._)((0,c.useState)(500),2),E=T[0],N=T[1],I=(0,n._)((0,c.useState)(0),2),_=I[0],L=I[1],M=(0,n._)((0,c.useState)(0),2),k=M[0],q=M[1],A=(0,n._)((0,c.useState)(["",""]),2),O=A[0],D=A[1],R=(0,n._)((0,c.useState)(Array.from(Array(t.length),function(e,t){return t===k?s.activeDot:s.inactiveDot})),2),P=R[0],F=R[1],Z=P.length-1>=0?P.length-1:0,H=function(){var e,o,n,i=window.innerWidth>=1024,a=window.innerWidth<1024&&window.innerWidth>=768,c=window.innerWidth<768,d=t.length+1-(i&&r)-(a&&l)-(c&&x);F(Array.from(Array(d=d>-1?d:1),function(e,t){return t===k?s.activeDot:s.inactiveDot})),N(((null==C?void 0:null===(e=C.current)||void 0===e?void 0:e.scrollWidth)||280)+f),D([((null==C?void 0:null===(o=C.current)||void 0===o?void 0:o.scrollHeight)||643)+v,(((null==C?void 0:null===(n=C.current)||void 0===n?void 0:n.scrollWidth)||280)+m)*(i?r:1)*(a?l:1)*(c?x:1)])};(0,c.useEffect)(function(){return H(),window.addEventListener("resize",H,{passive:!1}),S(1e3),function(){window.removeEventListener("resize",H)}},[E,t.length,k,l,x,f,r,C]);var B=function(){var e=(0,i._)(P);e.splice(k,1,s.inactiveDot),e.splice(k-1,1,s.activeDot),F(e),(null==g?void 0:g.activeIndex)!==k-1&&(null==g||g.slideTo(k-1)),q(k-1),L(E*(k-1))},V=function(){var e=(0,i._)(P);e.splice(k,1,s.inactiveDot),e.splice(k+1,1,s.activeDot),F(e),(null==g?void 0:g.activeIndex)!==k+1&&(null==g||g.slideTo(k+1)),q(k+1),L(E*(k+1))},Y=function(e){null==g||g.slideTo(e)};return(0,a.jsxs)("div",{className:o,children:[(0,a.jsx)("div",{className:"".concat(s.dotsContainerOutsideClass,"\n ").concat(!h&&s.hidden),style:{width:"".concat(16*t.length+8,"px")},children:(0,a.jsx)("div",{className:s.dotsContainerInsideClass,children:P.map(function(e,t){return(0,a.jsx)("input",{type:"button",className:"".concat(s.dotClass," ").concat(e),onClick:function(){return Y(t)},value:"ooo"},t)})})}),(0,a.jsx)("button",{type:"button",onClick:B,className:"".concat(0===k&&s.desktopInvisible," ").concat(s.goLeftButtonClass),children:(0,a.jsx)(d.Z,{fill:s.iconFillClass,svgClass:s.goLeftIconClass})}),(0,a.jsx)("div",{className:s.overflow,children:(0,a.jsx)("div",{className:s.swiperClass,style:{height:O[0],width:O[1]},children:(0,a.jsx)(u.t,{className:s.touchPanX,virtualTranslate:!0,simulateTouch:!1,slidesPerView:1,onSlidePrevTransitionStart:B,onSlideNextTransitionStart:V,onSwiper:function(e){return y(e)},children:t.map(function(e,t){return(0,a.jsx)(p.o,{children:(0,a.jsx)("div",{ref:C,className:s.swiperSlydeClass,style:{transition:"transform ".concat(j,"ms ease"),transform:"translateX(".concat(E*t-_,"px)")},children:e})},t)})})})}),(0,a.jsx)("button",{type:"button",onClick:V,className:"".concat(k===Z&&s.desktopInvisible," ").concat(s.goRightButtonClass),children:(0,a.jsx)(d.Z,{fill:s.iconFillClass,svgClass:s.goRightIconClass})}),(0,a.jsx)("div",{className:"".concat(s.dotsContainerOutsideClass,"\n ").concat(h&&s.hidden),style:{width:"".concat(16*t.length+8,"px")},children:(0,a.jsx)("div",{className:s.dotsContainerInsideClass,children:P.map(function(e,t){return(0,a.jsx)("input",{type:"button",className:"".concat(s.dotClass," ").concat(e),onClick:function(){return Y(t)},value:"ooo"},t)})})})]})};x.defaultProps={carouselClass:"",elementsNumberOnDesktop:1,elementsNumberOnTablet:1,elementsNumberOnM
1obile:1,elementsDistance:0,dotsUpside:!1,verticalInsideMargin:10,horizontalInsideMargin:10,children:[]},x.propTypes={children:l().node,carouselClass:l().string,elementsNumberOnDesktop:l().number,elementsNumberOnTablet:l().number,elementsNumberOnMobile:l().number,elementsDistance:l().number,dotsUpside:l().bool,verticalInsideMargin:l().number,horizontalInsideMargin:l().number};var f=x},9748:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(5766)._({CP_INVALID:"cp-invalid",INVOICE_VALUE_QUOTE_NOT_AVAILABLE:"invoice_value_quote_not_available",MULTIANNUAL_QUOTE_NOT_AVAILABLE:"multiannual_quote_not_available",COMMERCIAL_VALUE_QUOTE_NOT_AVAILABLE:"commercial_value_quote_not_available",PACKAGE_NOT_SUPPORTED_FOR_DEDUCTIBLE_EDITED:"package_not_supported_for_deductible_edited"},Symbol.for("properties"),Object.freeze({"cp-invalid":"Lamentablemente, no pudimos encontrar el c\xf3digo postal que ingresaste. Por favor, verifica y aseg\xfarate de que sea correcto.",invoice_value_quote_not_available:"\xa1Lo sentimos! este veh\xedculo no es elegible para valor factura, por favor intenta cotizarlo nuevamente con otro valor.",multiannual_quote_not_available:"\xa1Lo sentimos! este veh\xedculo no es elegible para multianuales, por favor intenta cotizarlo nuevamente con otro valor.",commercial_value_quote_not_available:"\xa1Lo sentimos! este veh\xedculo no es elegible para valor comercial, por favor intenta cotizarlo nuevamente con otro valor.",package_not_supported_for_deductible_edited:"Al editar deducibles o coberturas, no es posible cotizar los paquetes limitada o responsabilidad civil"}));e.exports={errorHandler:function(e){return n[Symbol.for("properties")][e]},errorCodes:n}},1352:function(e,t,o){"use strict";var n=o(7294);t.Z=function(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,i=0,a=function(){(i+=1)===o&&(e(),clearInterval(t),t=void 0)},s=function(){i=0,t||(t=setInterval(a,1e3))};(0,n.useEffect)(function(){return window.addEventListener("mousemove",s),window.addEventListener("mousedown",s),window.addEventListener("touchstart",s),window.addEventListener("click",s),window.addEventListener("keypress",s),window.addEventListener("load",s),function(){window.removeEventListener("mousemove",s),window.removeEventListener("mousedown",s),window.removeEventListener("touchstart",s),window.removeEventListener("click",s),window.removeEventListener("keypress",s),window.removeEventListener("load",s)}},[])}},2273:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return tV}});var n=o(1010),i=o(2253),a=o(1309),s=o(92),r=o(5893),l=o(2843),c=o(5981),d=o(5697),u=o.n(d),p=o(7294),x=o(2332),f=o(9132),h=o(9748),v=function(e){var t,o,n=e.isMultiannual,i=e.hasCoveragesEdited,s=(0,x.v9)(function(e){return e.utils.errorCode}),l=(0,x.v9)(function(e){return e.cart}),c=(0,a._)((0,p.useState)((null===(o=l.quote)||void 0===o?void 0:null===(t=o.policy)||void 0===t?void 0:t.compensationValue)==="invoice"),1)[0],d=""!==s?(0,h.errorHandler)(s):i?(0,h.errorHandler)(h.errorCodes.PACKAGE_NOT_SUPPORTED_FOR_DEDUCTIBLE_EDITED):c?(0,h.errorHandler)(h.errorCodes.INVOICE_VALUE_QUOTE_NOT_AVAILABLE):n?(0,h.errorHandler)(h.errorCodes.MULTIANNUAL_QUOTE_NOT_AVAILABLE):(0,h.errorHandler)(h.errorCodes.COMMERCIAL_VALUE_QUOTE_NOT_AVAILABLE);return(0,r.jsx)("div",{className:"flex flex-col justify-center items-center border border-supportColor-fourth rounded-18px w-334px desktop:w-944px h-144px desktop:h-112px",children:(0,r.jsx)(f.Z,{className:"text-center font-light text-grayScaleColor-500",text:d})})};v.defaultProps={isMultiannual:!1,hasCoveragesEdited:!1},v.propTypes={isMultiannual:u().bool,hasCoveragesEdited:u().bool};var m=o(4037),C=o(6245),b=o(1163),g=o(523),y=o.n(g),w={image:{src:"icons/circleup.svg",class:"w-72px"},button:{class:"float-right pr-20px"}},j=function(){var e=(0,a._)((0,p.useState)(!1),2),t=e[0],o=e[1];y().polyfill();var n=function(){window.scrollTo({top:0,behavior:"smooth"})};return(0,p.useEffect)(function(){var e=function(){window.pageYOffset>500?o(!0):o(!1)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}},[]),(0,r.jsx)("div",{children:t&&(0,r.jsx)("button",{type:"button",onClick:function(){return n()},className:w.button.class,children:(0,r.jsx)(c.Z,{path:w.image.src,containerClass:w.image.class,width:"75px",height:"75px"})})})},S=o(7755),T=o(4790),E={container:"w-full tablet:w-750px desktop:w-750px flex flex-col",labelContainer:"w-full text-center text-14px text-primaryColor-600 py-8px",buttonContainer:"w-full bg-grayScaleColor-10 rounded-10px grid grid-cols-3 relative overflow-hidden",button:"rounded-10px py-5px w-full text-center text-18px outline-none",buttonActive:"bg-grayScaleColor-300 text-grayScaleColor-white",buttonInactive:"bg-transparent text-grayScaleColor-300 hover:bg-grayScaleColor-20"},N={deductibles:["theft","materialDamage"],packages:Object.freeze({comprehensive:"Amplia","third-party":"Limitada",liability:"Resp. Civil"}),section:"policy",id:"package",label:" Coberturas"},I=o(1881),_=o(1606),L=function(e){var t,o=e.providerWithQuotes,i=(0,x.I0)(),l=(0,x.oR)().getState(),c=(0,a._)((0,p.useState)(l.currentPackage),2),d=c[0],u=c[1],f=(0,a._)((0,p.useState)(!1),2),h=f[0],v=f[1],m=(0,x.v9)(function(e){return e.quotation.policy.
1compensationValue}),C=(0,x.v9)(function(e){return e.utils.isPrinting}),b=Object.keys(N.packages),g=function(e){i((0,_.dk)("displayLoader",e)),v(e)},y=(t=(0,n._)(function(e){return(0,s.Jh)(this,function(t){switch(t.label){case 0:if(h)return[3,2];return g(!0),[4,new Promise(function(t){i((0,I.xJ)("policy","policyId","")),u(e),i((0,S.updateCurrentPackage)(e)),i((0,I.xJ)("policy","package",e)),setTimeout(function(){t()},500)})];case 1:t.sent(),g(!1),t.label=2;case 2:return[2]}})}),function(e){return t.apply(this,arguments)}),w=function(e){i((0,_.dk)("coverageSelectorWarning",!1)),"invoice"!==m||"comprehensive"===e||o.filter(function(e){return"ana"!==e.providerCode}).length||i((0,_.dk)("coverageSelectorWarning",!0))};return(0,r.jsxs)("div",{className:E.container,children:[(0,r.jsx)("div",{className:E.labelContainer,children:N.label}),(0,r.jsx)("div",{className:"".concat(E.buttonContainer," "),children:b.map(function(e){return(0,r.jsx)(T.Z,{className:E.button,activeClass:"".concat(d===e?E.buttonActive:E.buttonInactive),title:N.packages[e],onClick:function(){y(e),w(e)},disabled:h||C,backgroundColor:!1},N.packages[e])})})]})};L.defaultProps={providerWithQuotes:[]},L.propTypes={providerWithQuotes:u().arrayOf(d.any)};var M=o(4932),k=o(1664),q=o.n(k),A=o(3427),O=o(8834),D=o(8095),R=o(650),P={msiNotSupported:"Meses sin intereses no disponibles para esta aseguradora",description:"Tarjetas a las cuales aplican los meses sin intereses.",msi:"3, 6 & 12 MSI",tooltipDirection:"top",infoIcon:"icons/tooltip.svg",paymentMethodForMsi:R.jC.annual.code,falabellaCards:[{icon:"icons/falabella.svg",name:"falabella"}],cards:[{icon:"icons/visa.svg",name:"visa"},{icon:"icons/mastercard.svg",title:"mastercard"},{icon:"icons/americanexp.svg",title:"americanexp"}],insurersCards:{mapfre:{supportsMsi:!0,disableMsiTo:["kavak","guros","falabella"],supportedCards:[{icon:"icons/bbva.svg",title:"BBVA",displayAs:"icon"},{icon:"icons/americanexp.svg",title:"AMEX",displayAs:"icon"},{icon:"icons/hsbc.svg",title:"HSBC",displayAs:"icon"},{icon:"icons/santander.svg",title:"Santander",displayAs:"icon"},{icon:"icons/banorte.svg",title:"Banorte",displayAs:"icon"},{icon:"icons/ixe.svg",title:"ixe",displayAs:"icon"}]},hdi:{supportsMsi:!0,disableMsiTo:["kavak","guros","falabella"],supportedCards:[{icon:"icons/bbva.svg",title:"BBVA",displayAs:"icon"},{icon:"icons/hsbc.svg",title:"HSBC",displayAs:"icon"},{icon:"icons/banamex.svg",title:"Banamex",displayAs:"icon"},{icon:"icons/santander.svg",title:"Santander",displayAs:"icon"},{icon:"icons/banorte.svg",title:"Banorte",displayAs:"icon"},{icon:"",title:"Banregio",displayAs:"text"},{icon:"",title:"Afirme",displayAs:"text"},{icon:"",title:"Liverpool",displayAs:"text"},{icon:"",title:"Scotiabank",displayAs:"text"},{icon:"",title:"BanBajio",displayAs:"text"},{icon:"",title:"Banjercito",displayAs:"text"},{icon:"",title:"Invex Banco",displayAs:"text"},{icon:"",title:"Banco Azteca",displayAs:"text"},{icon:"",title:"Inbursa",displayAs:"text"},{icon:"",title:"Banca Mifel",displayAs:"text"},{icon:"",title:"Falabella Soriana",displayAs:"text"}]},gds:{supportsMsi:!0,disableMsiTo:["guros","falabella"],supportedCards:[{icon:"icons/bbva.svg",title:"BBVA",displayAs:"icon"},{icon:"icons/americanexp.svg",title:"AMEX",displayAs:"icon"},{icon:"icons/hsbc.svg",title:"HSBC",displayAs:"icon"},{icon:"icons/banamex.svg",title:"Banamex",displayAs:"icon"}]},ana:{supportsMsi:!1},gnp:{supportsMsi:!0,disableMsiTo:["kavak","guros","falabella"],supportedCards:[{icon:"icons/bbva.svg",title:"BBVA",displayAs:"icon"},{icon:"icons/americanexp.svg",title:"AMEX",displayAs:"icon"},{icon:"icons/santander.svg",title:"Santander",displayAs:"icon"},{icon:"icons/banamex.svg",title:"Banamex",displayAs:"icon"}]},sura:{supportsMsi:!1},qualitas:{supportsMsi:!1}},supportedCards:[{icon:"icons/hsbc.svg",title:"HSBC"},{icon:"icons/banamex.svg",title:"Banamex"},{icon:"icons/santander.svg",title:"Santander"},{icon:"icons/bbva.svg",title:"BBVA"},{icon:"icons/banorte.svg",title:"Banorte"},{icon:"icons/ixe.svg",title:"IXE"}]},F={msi:"font-primaryFont text-grayScaleColor-300 text-10px pt-5px",tooltipContainer:"ml-10px pt-5px",flexCenter:"flex justify-center items-center",verticalPadding:"py-10px",cardsPadding:"pr-10px pt-5px",tooltip:{tooltipBox:"text-12px font-tertiaryFont text-grayScaleColor-300 border-primaryColor-600 bg-grayScaleColor-white rounded-10px",link:"font-tertiaryFont text-primaryColor-600",infoText:"font-tertiaryFont",iconColor:"text-primaryColor-600",title:"font-tertiaryFont",cardImageWidth:"24px",cardImageHeight:"16px"}},Z=o(9066),H=function(e,t){var o=[];
1return t.insurersCards[e].supportedCards.forEach(function(e){"icon"===e.displayAs&&o.push(e)}),o},B=function(e,t){var o=[];return t.insurersCards[e].supportedCards.forEach(function(e){"text"===e.displayAs&&o.push(e.title)}),o.join(" / ")},V=function(e,t){return(null==t?void 0:t.insurersCards)&&t.insurersCards[e]?t.insurersCards[e].supportsMsi:""},Y=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{supportsMsi:V(e,t)&&!(null!=t&&t.insurersCards&&t.insurersCards[e]&&t.insurersCards[e].disableMsiTo&&t.insurersCards[e].disableMsiTo.find(function(e){return e.toUpperCase()===o.toUpperCase()})),availableCardsIcons:!!V(e,t)&&H(e,t),availableCardsTexts:!!V(e,t)&&B(e,t)}},U=function(e){var t=e.providerCode,o=e.containerClass,n=e.insuranceInfo,i=e.partnerCode,a=""!==i?i:"guros",s=Y(t,P,a),l={cards:P.falabellaCards,width:"50px",height:"30px"},d={cards:P.cards,width:"24px",height:"16px"},u="falabella"===a?l:d;return(0,r.jsxs)("div",{className:"".concat(o||F.flexCenter," ").concat(F.verticalPadding),children:[(0,r.jsx)("div",{className:F.title,children:P.title}),(0,r.jsxs)("div",{className:F.flexCenter,children:[u.cards.map(function(e,t){return(0,r.jsx)("div",{className:F.cardsPadding,children:(0,r.jsx)(c.Z,{path:e.icon,name:e.name,width:u.width,height:u.height})},"".concat(e.title,"-").concat(t))}),(0,r.jsx)("div",{className:F.msi,children:s.supportsMsi&&n.paymentMethod===P.paymentMethodForMsi?P.msi:""}),!o&&(0,r.jsx)("div",{className:F.tooltipContainer,children:s.supportsMsi&&n.paymentMethod===P.paymentMethodForMsi&&(0,r.jsx)(Z.Z,{direction:P.tooltipDirection,text:s.supportsMsi?[P.description]:[P.msiNotSupported],styles:F.tooltip,extraIcons:s.supportsMsi?s.availableCardsIcons:[],extraText:s.supportsMsi?s.availableCardsTexts:"",supportsMsi:s.supportsMsi,providerCode:t})})]})]})};U.defaultProps={containerClass:"",insuranceInfo:{},partnerCode:""},U.propTypes={providerCode:u().string.isRequired,containerClass:u().string,insuranceInfo:u().objectOf(d.any),partnerCode:u().string};var J=o(2652),Q={banner:{title:"Coberturas incluidas",subtitleFirstLine:"Todo lo que necesitas saber de tu",subtitleSecondLine:"seguro, \xa1sin letras chiquitas!",backgroundImage:"images/see-quote/policyCoverages/Background-City.svg"},package:{key:"package",icon:"images/see-quote/policyCoverages/packageCoverage.svg",title:"Paquete de cobertura: ",detail:"",text:{comprehensive:"Esta cobertura adem\xe1s de cubrir da\xf1os a terceros y otros veh\xedculos, te respalda en caso de da\xf1os a tu auto y robo total del mismo.",liability:"La cobertura m\xednima obligatoria que te ayuda a solventar gastos en caso de da\xf1ar a otras personas.","third-party":"Cobertura para protegerte en caso de robo, con defensa legal, civil y gastos m\xe9dicos ocupantes."},col:"1"},coverages:[{key:"rcThird",icon:"images/see-quote/policyCoverages/crashCoverage.svg",title:"Da\xf1os a terceros: ",detail:"N/A",text:"Cubre los da\xf1os a otra persona y/o sus posesiones (lesiones, su coche o cualquier otra propiedad material).",col:"1"},{key:"rcCatastrophic",icon:"images/see-quote/policyCoverages/ripCoverage.svg",title:"Fallecimiento de terceros: ",detail:"$2,000,000",text:"Cubre tu responsabilidad civil en caso de que fallezca una persona en un accidente.",col:"1"},{key:"medicalCost",icon:"images/see-quote/policyCoverages/medicalExpensesCoverage.svg",title:"Gastos m\xe9dicos de pasajeros: ",detail:"$200,000",text:"Cubre los gastos, atenci\xf3n m\xe9dica, medicinas, ambulancia e incluso de entierro de los pasajeros de tu veh\xedculo (por lesiones en un accidente o intento de robo).",col:"1"},{key:"roadAssistance",icon:"images/see-quote/policyCoverages/roadAssistanceCoverage.svg",title:"Asistencia vial y carretera: ",detail:"3 eventos al a\xf1o",text:"Cubre los servicios de gr\xfaa o si necesitas cambiar una llanta, un cerrajero, te quedaste sin bater\xeda o sin gasolina en tu veh\xedculo.",col:"2"},{icon:"images/see-quote/policyCoverages/legalCoverage.svg",title:"Defensa legal: ",detail:"Amparada",text:"En caso de accidente o robo, esta cobertura cubrir\xe1 tus gastos de defensa jur\xeddica (con los abogados que la aseguradora designe).",col:"2"}]},G={grid:"top-48 font-light text-12px grid grid-cols-2 mr-10px",title:"font-secondaryFont text-grayScaleColor-500 text-20px ml-36px",separator:"border-t hidden tablet:block desktop:block mx-12px border-grayScaleColor-50 border-dotted mt-30px mb-40px"},z={title:"Deducibles",deductibles:[{key:"theft",icon:"images/see-quote/deductibles/totalTheft.svg",title:"Robo total: ",detail:"10%",text:"Te protege en caso de robo total (excluyendo abuso de confianza y hurto). Solo cubres una parte de los da\xf1
1os (el deducible).",iconStyle:""},{key:"materialDamage",icon:"images/see-quote/deductibles/vehicleDamage.svg",title:"Da\xf1os a tu veh\xedculo: ",detail:"5%",text:"Te cubre los gastos en reparaci\xf3n de da\xf1os a tu veh\xedculo. Solo tendr\xedas que pagar una parte (el deducible).",iconStyle:""},{icon:"images/see-quote/policyCoverages/glassesCoverage.svg",title:"Cristales: ",detail:"30%",text:"Cubre los vidrios rotos, desprendidos o robados de tu veh\xedculo. No incluye los espejos retrovisores.",col:"2"}]},W={title:"font-bold font-secondaryFont text-grayScaleColor-500 text-20px mt-11px",subtitle:"font-secondaryFont text-grayScaleColor-500 text-14px",center:"text-center mb-58px",bannerBg:"bg-cityBanner ml-24px mr-24px mt-20px h-130px flex justify-center border rounded-3xl border-secondaryColor-900 hidden desktop:block"},X=function(e){var t=e.bannerTexts;return(0,r.jsx)("div",{className:W.bannerBg,children:(0,r.jsxs)("div",{className:"".concat(W.center),children:[(0,r.jsx)("div",{className:W.title,children:t.title}),(0,r.jsx)("div",{className:W.subtitle,children:t.subtitleFirstLine}),(0,r.jsx)("div",{className:W.subtitle,children:t.subtitleSecondLine})]})})};X.defaultProps={bannerTexts:{}},X.propTypes={bannerTexts:u().objectOf(d.any)};var $=o(5674),K=function(e){var t=e.tileTexts,o=e.quotation,n=(null==o?void 0:o.coverages)&&o.coverages[t.key],i=null==o?void 0:o.package,a=t.key===N.id;return(0,r.jsxs)("div",{className:"inline-block mr-24px ml-10px flex ml-0 mt-0 desktop:ml-36px desktop:mt-24px max-w py-24px desktop:py-0",children:[(0,r.jsx)("div",{className:"flex ml-20px desktop:ml-0",children:(0,r.jsx)(c.Z,{path:t.icon,name:t.title,containerClass:"w-44px",width:"40px",height:"40px"})}),(0,r.jsxs)("div",{className:"desktop:ml-20px max-w-259 mr-28 tablet:mr-0 pr-24px desktop:pr-0 ml-16px desktop:ml-0 text-12px",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"font-bold font-secondaryFont text-grayScaleColor-500 mr-5px",children:t.title}),(0,r.jsx)("span",{className:"font-bold font-secondaryFont text-primaryColor-600",children:n&&function(e){var n=o.coverages[t.key].VALUE,i=(0,$.sh)(n);if(i){var a=parseInt(i,10);return N.deductibles.includes(e)?"".concat(a,"%"):"$".concat((0,$.uf)(a,0))}return n}(t.key)||(a?N.packages[i]:t.detail)})]}),(0,r.jsx)("div",{className:"font-secondaryFont text-grayScaleColor-500 overflow-hidden",children:a?null==t?void 0:t.text[i]:t.text})]})]})};K.defaultProps={tileTexts:{},quotation:{}},K.propTypes={tileTexts:u().oneOfType([u().string,u().object]),quotation:u().PropTypes.objectOf(d.any)};var ee=function(e){var t=e.tilesToCol,o=e.col;return(0,r.jsx)("div",{children:t.map(function(e){return e.col===o&&(0,r.jsx)("div",{children:(0,r.jsx)(K,{tileTexts:e})},e.title)})})};ee.defaultProps={tilesToCol:[],col:"1"},ee.propTypes={tilesToCol:u().arrayOf(d.any),col:u().string};var et={cardContainer:"flex justify-start hidden desktop:block",cardsTitle:"text-10px text-grayScaleColor-500 hidden desktop:block",hireButtonContainer:"mt-8px hidden desktop:block",hireInfoContainer:"desktop:pl-32px desktop:-pr-12px desktop:-mr-12px",vehicleInfoContainer:"desktop:pl-16px justify-center",mainContainer:"flex flex-col items-center justify-center w-full desktop:relative bg-grayScaleColor-10 tablet:-mt-15px -mt-1px",container:"w-full tablet:px-36px desktop:px-20px desktop:py-32px pt-32px",logoClass:"mb-16px ml-36px desktop:ml-0",infoContainer:"mx-20px desktop:mx-0 desktop:pr-6px desktop:mr-12px mb-24px desktop:mb-0 flex flex-col justify-center",priceInfoContainer:"ml-8px pr-18px mb-24px desktop:mb-0 flex flex-col justify-center desktop:pr-0",priceContainer:"pr-12px flex flex-row desktop:flex-col desktop:justify-center ",textGrey:"text-grayScaleColor-500",textPrimary:"text-primaryColor-600",flex:"flex flex-col tablet:flex-row desktop:flex-row",justifyCenter:"justify-center",separator:"border-r hidden tablet:block desktop:block mx-12px border-grayScaleColor-50 border-dotted",labels:{size:"text-10px",sizeMed:"text-12px",sizeBig:"text-16px",spacingTop:"mt-8px",spacingTopSmall:"mt-4px",bold:"font-bold"},buttons:{container:"w-full flex justify-center",class:"w-full tablet:w-300px desktop:w-300px h-48px focus:outline-none rounded-10px",activeClass:"bg-supportColor-green tablet:bg-supportColor-green desktop:bg-supportColor-green text-grayScaleColor-white"},logo:{size:"h-52px"}},eo={cardsTitle:"Tarjetas autorizadas",labels:{price:"Precio Guros:",discount:"Ahorras:",vehicle:"Veh\xedculo:",coverage:"Cobertura:",payment:"Pago disponible:"},buttons:{next:{title:"Contratar"}},analytics:{customClass:"gtm-track",customAtribute:"submit_see_quote",dataLayerProps:["brand","subbrand","model","postalCode","dob","gender"]}},en=o(8762),ei=o(7317),ea="send_events",es="submit_quote_see_quote_detail",er="submit_see_quote",el=o(365),ec=function(e,t,o,n){var i=el.Z.getDataLayerPayload(o,n);t&&(i.gdl_events=t),el.Z.dataEvent(i,e)},ed={submit_quote_see_quote_detail:{EVENT:ea,PROPERTIES:["component"],GOOGLE_DATA_LAYER_EVENTS:[es]},submit_see_quote:{EVENT:ea,PROPERTIES:["component"],GOOGLE_DATA_LAYER_EVENTS:[er]}},eu=function(e,t){var o=(0,i._)({},t),n=ed[e],a=n.EVENT,s=n.PROPERTIES;ec(a,n.GOOGLE_DATA_LAYER_EVENTS,o,s)},ep=function(e){var t=e.providerCode,o=e.quotation,n=e.vehicle,a=e.paymentFrequency,s=(0,en.Z)(),l=(0,ei.Z)(),d=function(e,t){eu(er,(0,M._)((0,i._)({},t),{component:"detail"})),l.goToEmit(e,t)};return(0,r.jsx)("div",{className:"w-full",children:(0,r.jsx)("div",{className:et.mainContainer,children:(0,r.jsx)("div",{className:et.container,children:(0,r.jsxs)("div",{className:"".concat(et.flex," ").concat(et.justifyCenter),children:[(0,r.jsxs)("div",{className:"".concat(et.priceContainer," ").concat(et.textGrey),children:[(0,r.jsx)("div",{className:et.logoClass,children:(0,r.jsx)(c.Z,{path:"images/see-quote/logos/".concat(t,".svg"),name:eo.logoName,className:et.logo.size,width:"121px",height:"52px"})}),(0,r.jsxs)("div",{className:"".concat(et.priceInfoContainer," ").concat(et.textGrey),children:[(0,r.jsxs)("div",{className:et.labels.size,children:[eo.labels.price," "]}),(0,r.jsx)("div",{className:"".concat(et.labels.sizeBig," ").concat(et.textPrimary," ").concat(et.labels.bold," ").concat(et.labels.spacingTopSmall),children:(0,r.jsxs)("span",{children:["$",(0,$.uf)(o.costs.price)]})}),(0,r.jsxs)("div",{className:"".concat(et.labels.size," ").concat(et.labels.spacingTop),children:[(0,r.jsxs)("span",{children:[eo.labels.discount," "]}),(0,r.jsxs)("span",{className:et.labels.bold,children:["$",(0,$.uf)(o.costs.totalDiscount)]})]})]})]}),(0,r.jsx)("div",{className:et.separator}),(0,r.jsx)("div",{className:"".concat(et.infoContainer," ").concat(et.textGrey),children:(0,r.jsxs)("div",{className:et.vehicleInfoContainer,children:[(0,r.jsx)(q(),{href:{pathname:"/emit-cart",query:(null==s?void 0:s.queryParams)||{}},passHref:!0,children:(0,r.jsx)(T.Z,{title:eo.buttons.next.title,active:!0,className:"".concat(et.buttons.class," desktop:hidden mb-36px"),activeClass:et.buttons.activeClass,onClick:function(){return l.goToEmit(t,o)},analytics:eo.analytics})}),(0,r.jsxs)("div",{className:"".concat(et.labels.size," desktop:mt-0"),children:[(0,r.jsxs)("span",{children:[eo.labels.vehicle," "]}),(0,r.jsx)("span",{className:et.labels.bold,children:"".concat(n.subbrand,", ").concat(n.model)})]}),(0,r.jsxs)("div",{className:"".concat(et.labels.size," ").concat(et.labels.spacingTop),children:[(0,r.jsxs)("span",{children:[eo.labels.coverage," "]}),(0,r.jsx)("span",{className:et.labels.bold,children:N.packages[o.package]})]})]})}),(0,r.jsx)("div",{className:et.separator}),(0,r.jsxs)("div",{className:"".concat(et.infoContainer," ").concat(et.hireInfoContainer),children:[a===R.jC.annual.code&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:et.cardsTitle,children:eo.cardsTitle}),(0,r.jsx)("div",{className:et.cardContainer,children:(0,r.jsx)(U,{providerCode:t,containerClass:"flex justify-start"})})]}),(0,r.jsx)("div",{className:et.hireButtonContainer,children:(0,r.jsx)(q(),{href:{pathname:"/emit-cart",query:(null==s?void 0:s.queryParams)||{}},passHref:!0,children:(0,r.jsx)(T.Z,{title:eo.buttons.next.title,active:!0,className:et.buttons.class,activeClass:et.buttons.activeClass,onClick:function(){return d(t,o)},analytics:eo.analytics})})})]})]})})})})};ep.propTypes={providerCode:u().string.isRequired,quotation:u().objectOf(d.any).isRequired,vehicle:u().objectOf(d.any).isRequired,paymentFrequency:u().string.isRequired};var ex=function(e){var t=e.quotation;return(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"top-48 font-light text-12px grid grid-cols-2 mr-26px -ml-5px",children:[(0,r.jsx)(K,{tileTexts:Q.package,quotation:t}),Q.coverages.map(function(e){return(0,r.jsx)("div",{children:(0,r.jsx)(K,{tileTexts:e,quotation:t})},e.title)})]})})};ex.propTypes={quotation:u().objectOf(d.any).isRequired};var ef=function(e){var t=e.quotation;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:G.separator}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:G.title,children:z.title}),(0,r.jsx)("div",{className:G.grid,children:z.deductibles.map(function(e){return(0,r.jsx)("div",{children:(0,r.jsx)(K,{tileTexts:e,quotation:t})},e.title)})})]})]})};
1ef.propTypes={quotation:u().objectOf(d.any).isRequired};var eh={closeButton:{container:"absolute top-0 right-0 mt-12px ml-12px z-40",size:"18px",fill:"text-primaryColor-600",buttonClass:"py-12px px-12px",iconClass:"transform rotate-45"},separator:"mb-24px mt-24px border-b block block mx-12px border-grayScaleColor-50 border-dotted"},ev={modal:{closeModal:"images/see-quote/close.svg",name:"close modal"}},em=o(7713),eC=o(3737),eb=function(e){var t=e.providerCode,o=e.quotation,n=e.vehicle,i=e.open,a=e.eventHandler,s=e.paymentFrequency;return(0,r.jsx)("div",{className:"flex",children:(0,r.jsxs)(em.Z,{onClose:function(){return a()},show:i,modal:ev.modal,showClose:!1,position:"right",children:[(0,r.jsx)("div",{className:eh.closeButton.container,children:(0,r.jsx)("button",{type:"button",className:eh.closeButton.buttonClass,onClick:function(){return a()},children:(0,r.jsx)(D.Z,{className:eh.closeButton.iconClass,width:eh.closeButton.size,height:eh.closeButton.size,fill:eh.closeButton.fill})})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(ep,{providerCode:t,quotation:o,vehicle:n,action:function(){},paymentFrequency:s}),(0,r.jsxs)("div",{className:"hidden tablet:block",children:[(0,r.jsx)(X,{bannerTexts:Q.banner}),(0,r.jsx)(ex,{quotation:o}),(0,r.jsx)(ef,{quotation:o})]}),(0,r.jsxs)("div",{className:"tablet:hidden w-screen overflow-hidden",children:[(0,r.jsx)(eC.Z,{carouselClass:"relative",elementsDistance:14,children:["1","2"].map(function(e,t){return(0,r.jsx)("div",{children:(0,r.jsx)(ee,{tilesToCol:Q.coverages,col:e})},t)})}),(0,r.jsx)("div",{className:eh.separator}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:G.title,children:z.title}),(0,r.jsx)(eC.Z,{carouselClass:"relative",elementsDistance:14,children:z.deductibles.map(function(e){return(0,r.jsx)("div",{children:(0,r.jsx)(K,{tileTexts:e})},e.title)})})]})]})]})]})})};eb.defaultProps={open:!1,eventHandler:function(){}},eb.propTypes={providerCode:u().string.isRequired,quotation:u().objectOf(d.any).isRequired,vehicle:u().objectOf(d.any).isRequired,open:u().bool,eventHandler:u().func,paymentFrequency:u().string.isRequired};var eg=o(9557),ey=function(e){var t=e.width,o=e.height,n=e.color,
1i=e.className;return(0,r.jsx)("div",{className:"w-full overflow-hidden justify-center",children:(0,r.jsx)("div",{className:"".concat(i," ").concat(t," ").concat(o," ").concat(n)})})};ey.defaultProps={className:"rounded-10px",width:"w-full",height:"h-14px",color:"bg-grayScaleColor-20 animate-pulse"},ey.propTypes={className:u().string,width:u().string,height:u().string,color:u().string};var ew={list:[{key:"firstSet",container:"pb-16px w-full",list:[{key:"1-1",className:"rounded-10px mb-16px mx-auto",width:"w-120px",height:"h-52px"},{key:"1-2",className:"rounded-10px mb-16px mx-auto",width:"w-168px",height:"h-38px"},{key:"1-3",className:"rounded-10px",width:"w-178x",height:"h-14px"},{key:"1-4",className:"rounded-10px mt-24px mx-auto",width:"w-168px",height:"h-12px"},{key:"1-5",width:"rounded-10px w-168px mt-8px mx-auto",height:"h-12px"}]},{key:"secondSet",container:"pb-16px w-full border-b border-dotted border-grayScaleColor-20 mb-16px",list:[{key:"2-1",className:"rounded-10px mb-24px",width:"w-242px",height:"h-48px"},{key:"2-2",className:"rounded-10px mb-16px",width:"w-242px",height:"h-20px"},{key:"2-3",className:"rounded-10px",width:"w-242px",height:"h-20px"}]},{key:"thirdSet",container:"pb-16px w-full mb-16px",list:[{key:"3-1",className:"rounded-10px mb-16px",width:"w-242px",height:"h-16px"},{key:"3-1",className:"rounded-10px mb-16px",width:"w-242px",height:"h-16px"},{key:"3-1",className:"rounded-10px",width:"w-242px",height:"h-16px"}]},{key:"link",container:"w-full border-b border-dotted border-grayScaleColor-20",list:[{key:"link-1",className:"rounded-10px mb-16px",width:"w-60px",height:"h-16px"}]},{key:"1",container:"mt-16px pb-16px w-full",list:[{key:"4-1",className:"rounded-10px mb-24px",width:"w-242px",height:"h-16px"},{key:"4-2",className:"rounded-10px mb-16px",width:"w-242px",height:"h-16px"},{key:"4-3",className:"rounded-10px mb-20px",width:"w-242px",height:"h-16px"}]}]},ej=function(e){var t=e.paymentFrequency===R.jC.annual.code;return(0,r.jsx)(eg.Z,{shadow:!1,containerClass:"".concat("w-300px border rounded-10px border-grayScaleColor-20 bg-grayScaleColor-white"),childrenClass:"px-24px",children:ew.list.map(function(e,o){return(0,r.jsx)("div",{className:e.container,children:e.list.map(function(e,o){var n=t&&o>=3;return(0,r.jsx)(ey,{width:e.width,height:e.height,color:e.color,className:"".concat(e.className," ").concat(n&&"hidden")},"".concat(e.key,"-").concat(o))})},"".concat(e.key,"-").concat(o))})})};ej.propTypes={paymentFrequency:u().string.isRequired};var eS=function(e){var t,o,l=e.insuranceInfo,d=e.cardClass,u=e.providerCode,f=e.styles,h=e.insuranceInfoTexts,v=e.cardTexts,C=e.recommended,g=e.activeCard,y=(0,b.useRouter)(),w=(0,x.v9)(function(e){return e.quotation.vehicle}),j=(0,x.v9)(function(e){return e.quotation.policy.paymentFrequency}),S=(0,x.v9)(function(e){return e.quotation.policy.validity}),E=j!==R.jC.annual.code&&j!==R.jC.cash.code,N=j===R.jC.semiAnnual.code,L=(0,x.v9)(function(e){return e.utils["".concat(u,"DetailsModal")]}),k=(0,a._)((0,p.useState)(!1),2),P=k[0],F=k[1],Z=(0,x.v9)(function(e){return e.utils.promocodeData.partnerCode}),H=(0,x.v9)(function(e){return e.utils.promocodeData.activeMultiannual}),B=(0,x.I0)(),V=(0,ei.Z)(),Y=function(e){return(0,M._)((0,i._)({},e),{component:"card"})},Q=(t=(0,n._)(function(e,t){return(0,s.Jh)(this,function(o){return B((0,_.zi)("".concat(e,"DetailsModal"))),eu(es,Y(t)),[2]})}),function(e,o){return t.apply(this,arguments)}),G=function(e,t){eu(er,Y(t)),V.goToEmit(e,t)},z=function(e){e.preventDefault()},W=(null==l?void 0:null===(o=l.costs)||void 0===o?void 0:o.totalDiscount)>m.xE,X=j===R.jC.cash.code;(0,p.useEffect)(function(){P&&window.history.forward()},[P]),(0,p.useEffect)(function(){return y.beforePopState(function(e){var t=e.as.includes(m.jl);return L&&!t?(Q(u,l),F(!0),!1):(L&&t&&B((0,I.xJ)(m.Ct,m.Vl,{providerCode:u,insuranceInfo:l})),!0)}),window.addEventListener(m.TJ,z),function(){window.removeEventListener(m.TJ,z)}},[L]);var K=function(){return"comprehensive"===l.package||!!g};return(null==l?void 0:l.costs)?(0,r.jsxs)(eg.Z,{containerClass:"".concat(d," w-280px"),recommended:C,shadow:!0,childrenClass:"mb-20px",styles:null==f?void 0:f.card,cardTexts:v,children:[(0,r.jsxs)("div",{className:"flex flex-col items-center w-full",children:[(0,r.jsx)(c.Z,{path:"images/see-quote/logos/".concat(u,".svg"),name:h.logo,className:"h-52px",width:"120px",height:"52px"}),(0,r.jsxs)("div",{className:"flex flex-col items-center mt-16px",children:[K()&&(0,r.jsx)(A.Z,{title:"$".concat((0,$.uf)(l.costs.price)),className:"".concat(J.Z.discountPrice," ").concat(null==f?void 0:f.price," mb-8px"),containerClass:"",analytics:h.priceCallToAction.analytics,onClick:function(){return Q(u,l)},href:"#",testid:h.priceCallToAction.dataTestId}),!K()&&(0,r.jsxs)("p",{className:"text-supportColor-second text-12px font-primaryFont",children:["Cobertura ","liability"===l.package?"responsabilidad civil":"third-party"===l.package?"limitada":"amplia"," no disponible"]}),(0,r.jsxs)("div",{className:"flex items-center mb-16px min-h-20 ".concat(J.Z.cardText," ").concat(null==f?void 0:f.cardText),children:[W&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[h.before,(0,r.jsxs)("span",{className:J.Z.lineThrough,children:["$",(0,$.uf)(l.costs.originalPrice)]})]}),(0,r.jsx)("span",{className:"px-5px",children:"|"}),(0,r.jsxs)("div",{children:[h.saves,(0,r.jsxs)("span",{className:"".concat(null==f?void 0:f.primaryText," ml-1"),children:["$",(0,$.uf)(l.costs.totalDiscount)]})]})]}),!W&&(0,r.jsx)("div",{children:" Mejor precio "})]}),H&&(0,r.jsxs)("div",{className:"flex items-center mb-16px min-h-20 ".concat(J.Z.cardText," ").concat(null==f?void 0:f.cardText),children:[(0,r.jsxs)("div",{children:["Multianual
1:",(0,r.jsx)("span",{className:"px-5px",children:(0,R.VR)(S)})]}),(0,r.jsx)("span",{className:"px-5px",children:"|"}),(0,r.jsxs)("div",{children:["$",(0,$.uf)(X?l.costs.price:l.costs.firstPayment)," ",(0,R.Y5)(j)]})]}),E&&(0,r.jsxs)("div",{className:"flex flex-col justify-center items-center mb-20px ".concat(null==f?void 0:f.cardText),children:[(0,r.jsx)("div",{children:(null==l?void 0:l.costs)&&(0,r.jsx)("div",{className:J.Z.installments,children:"".concat(h.firstPayment," $").concat((0,$.uf)(l.costs.firstPayment))})}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsxs)("div",{className:J.Z.installments,children:[E&&!N&&(0,r.jsx)("span",{className:"mr-1",children:l.costs.payments}),(0,r.jsx)("span",{className:"mr-1",children:N?h.secondPayment:h.payments}),"$",(0,$.uf)(l.costs.nextPayments)]})})]})]}),(0,r.jsx)(q(),{href:h.primaryCallToAction.href,passHref:!0,children:(0,r.jsx)(T.Z,{title:h.primaryCallToAction.title,className:"".concat(J.Z.customClass," "),activeClass:null==f?void 0:f.detailButton,analytics:h.primaryCallToAction.analytics,testid:h.primaryCallToAction.dataTestId,onClick:function(){return G(u,l)},disabled:!K()})}),(0,r.jsx)("div",{className:"".concat(null==f?void 0:f.validCards," pt-24px"),children:h.authCards}),(0,r.jsx)(U,{providerCode:u,insuranceInfo:l,partnerCode:Z}),(0,r.jsx)("span",{className:"".concat(null==f?void 0:f.divisionBorder," border-dashed")}),(0,r.jsx)("div",{className:"w-250px flex flex-col items-start mt-10px mb-10px",children:h.cardCoverages.map(function(e,t){var o,n=t<h.cardCoverages.length-1;return l.coverages[e.key]&&(o=l.coverages[e.key].ACTIVE),(0,r.jsxs)("div",{className:"w-full flex items-center ".concat(null==f?void 0:f.cardText," ").concat(n&&"mb-16px"),children:[o?(0,r.jsx)(O.Z,{fill:null==f?void 0:f.checkColor}):(0,r.jsx)(D.Z,{fill:"text-statusColor-error",className:"transform rotate-45",width:"10px",height:"10px"}),n&&(0,r.jsxs)("span",{className:"".concat(null==f?void 0:f.primaryText," mx-5px"),children:["$",l.coverages[e.key]?(0,$.uf)(l.coverages[e.key].VALUE,0):"",(0,r.jsx)("span",{className:"".concat(null==f?void 0:f.primaryText," ml-5px"),children:"â¢"})]}),(0,r.jsx)("span",{className:n?"":"ml-5px",children:e.title})]},e.key)})}),(0,r.jsx)("div",{className:"w-250px flex flex-col items-start mt-10px mb-10px",children:(0,r.jsx)(A.Z,{title:h.detailCallToAction.title,className:f.showMoreLink,containerClass:f.showMoreLinkContainer,analytics:h.detailCallToAction.analytics,testid:h.detailCallToAction.dataTestId,onClick:function(){return Q(u,l)},href:"#"})}),(0,r.jsx)("span",{className:null==f?void 0:f.divisionBorder}),(0,r.jsxs)("div",{className:"w-250px flex flex-col items-start mt-10px mb-10px",children:[(0,r.jsx)("span",{className:"".concat(null==f?void 0:f.deductibles," mb-16px"),children:h.deductibles}),h.cardDeductibles.map(function(e,t){l.coverages[e.key]&&(o=(i=l.coverages[e.key]).VALUE,n=i.ACTIVE);var o,n,i,a=t<h.cardDeductibles.length-1,s=(0,$.sh)(o);return(0,r.jsxs)("div",{className:"w-full flex items-center ".concat(null==f?void 0:f.cardText," ").concat(a&&"mb-16px"),children:[n&&s?(0,r.jsx)(O.Z,{fill:null==f?void 0:f.checkColor}):(0,r.jsx)(D.Z,{fill:"text-statusColor-error",className:"transform rotate-45",width:"10px",height:"10px"}),(0,r.jsx)("span",{className:"".concat(null==f?void 0:f.primaryText," ml-5px"),children:"".concat(n&&s?"".concat(s,"%"):o)}),(0,r.jsx)("span",{className:"".concat(null==f?void 0:f.primaryText," mx-5px"),children:"â¢"}),(0,r.jsx)("span",{children:e.title})]},e.key)})]})]}),(0,r.jsx)(eb,{providerCode:u,quotation:l,paymentFrequency:j,vehicle:w,open:L,eventHandler:function(){B((0,_.zi)("".concat(u,"DetailsModal")))}})]}):(0,r.jsx)(ej,{paymentFrequency:j})};eS.defaultProps={cardClass:"",styles:{},insuranceInfoTexts:{},recommended:!1,activeCard:!0},eS.propTypes={insuranceInfo:u().objectOf(d.any).isRequired,providerCode:u().string.isRequired,cardClass:u().string,styles:u().objectOf(d.any),insuranceInfoTexts:u().objectOf(d.any),cardTexts:u().objectOf(d.any).isRequired,recommended:u().bool,activeCard:u().bool};var eT={benefitsContainer:"flex flex-col justify-end items-center w-334px desktop:w-944px h-592px desktop:h-548px border border-grayScaleColor-50 rounded-20px bg-benefitsMobile desktop:bg-benefitsDesktop",benefitsTitle:"text-20px text-center font-semibold leading-titleMobile font-secondaryFont text-grayScaleColor-500",benefitsSubtitle:"text-12px mt-8px w-180px desktop:w-224px whitespace-pre-line desktop:whitespace-normal leading-sectionTitleMobile text-center font-quaternaryFont text-grayScaleColor-300",benefitsBottomDesktop:"hidden desktop:flex justify-around items-center w-926px h-244px bg-grayScaleColor-white mt-95px mb-13px rounded-20px",benefitsBottomMobile:"flex desktop:hidden justify-around items-center w-302px h-286px bg-grayScaleColor-white mt-175px mb-17px rounded-20px",cardTitle:"text-14px leading-sectionTitleMobile text-center font-secondaryFont text-grayScaleColor-500",cardText:"text-12px leading-sectionTitleMobile text-center font-quaternaryFont text-grayScaleColor-300 mt-17px w-224px",cardCointainer:"flex flex-col border border-grayScaleColor-50 rounded-20px items-center justify-center w-272px h-216px",imageClass:"mb-12px"},eE=function(e){var t,o,n=e.texts;return(0,r.jsxs)("div",{className:eT.benefitsContainer,children:[(0,r.jsx)(f.Z,{className:eT.benefitsTitle,text:null==n?void 0:n.titleText}),(0,r.jsx)(f.Z,{className:eT.benefitsSubtitle,text:null==n?void 0:n.subTitleText}),(0,r.jsx)("div",{className:eT.benefitsBottomDesktop,children:null==n?void 0:null===(t=n.benefits)||void 0===t?void 0:t.map(function(e,t){return(0,r.jsxs)("div",{className:eT.cardCointainer,children:[(0,r.jsx)(c.Z,{path:e.image,name:e.name,className:eT.imageClass,width:"44px",height:"44px"}),(0,r.jsx)(f.Z,{className:eT.cardTitle,text:e.title}),(0,r.jsx)(f.Z,{className:eT.cardText,text:e.text})]},t)})}),(0,r.jsx)("div",{className:eT.benefitsBottomMobile,children:(0,r.jsx)(eC.Z,{carouselClass:"relative",elementsDistance:14,overflow:!0,children:null==n?void 0:null===(o=n.benefits)||void 0===o?void 0:o.map(function(e,t){return(0,r.jsxs)("div",{className:eT.cardCointainer,children:[(0,r.jsx)(c.Z,{path:e.image,name:e.name,className:eT.imageClass,width:"10px",height:"10px"}),(0,r.jsx)(f.Z,{className:eT.cardTitle,text:e.title}),(0,r.jsx)(f.Z,{className:eT.cardText,text:e.text})]},t)})})})]})};eE.defaultProps={texts:{}},eE.propTypes={texts:u().objectOf(d.any)};var eN=o(2466),eI=o(6401),e_=function(e){var t,o=e.successMessage,n=e.handlerHidden,i=l.Z.styles.BannerSuccessStyles,s=(0,a._)((0,p.useState)(i.startAnimation),2),c=s[0],d=s[1],u=function(){setTimeout(function(){n()},350),d(i.endAnimation)},x=function(){clearInterval(t),u()};return(0,p.useEffect)(function(){return t=setInterval(x,15e3),function(){clearInterval(t)}},[]),(0,r.jsxs)("div",{className:"".concat(i.bannerContainer," ").concat(c),children:[(0,r.jsxs)("div",{className:i.leftElementContainer,children:[(0,r.jsx)(eI.Z,{fill:i.alertIconFill,svgClass:i.alertIconClassName}),(0,r.jsx)("p",{className:i.successMessage,children:o})]}),(0,r.jsx)("button",{type:"button",onClick:u,children:(0,r.jsx)(eN.Z,{fill:i.closeButton.closeFill,size:20})})]})};e_.propTypes={successMessage:u().string.isRequired,handlerHidden:u().func.isRequired};var eL=function(e){var t,o=e.warningMessage,n=e.handlerHidden,i=l.Z.styles.BannerWarningStyles,s=(0,a._)((0,p.useState)(i.startAnimation),2),c=s[0],d=s[1],u=function(){setTimeout(function(){n()},350),d(i.endAnimation)},x=function(){clearInterval(t),u()};return(0,p.useEffect)(function(){return t=setInterval(x,15e3),function(){clearInterval(t)}},[]),(0,r.jsxs)("div",{className:"".concat(i.bannerContainer," ").concat(c),children:[(0,r.jsxs)("div",{className:i.leftElementContainer,children:[(0,r.jsx)(eI.Z,{fill:i.alertIconFill,svgClass:i.alertIconClassName}),(0,r.jsx)("p",{className:i.successMessage,children:o})]}),(0,r.jsx)("button",{type:"button",onClick:u,children:(0,r.jsx)(eN.Z,{fill:i.closeButton.closeFill,size:"20px"})})]})};eL.defaultProps={},eL.propTypes={warningMessage:u().string.isRequired,handlerHidden:u().func.isRequired};var eM=function(){return(0,r.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("g",{clipPath:"url(#clip0_5403_104596)",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0782 5C18.1967 5 18.3109 5.05219 18.3943 5.13911L22.8723 9.79128C22.9469 9.87395 22.9996 9.98257 22.9996 10.0956V22.639C22.9996 23.9347 21.9197 25 20.6113 25H9.38831C8.07996 25 7 23.9347 7 22.639V7.36082C7 6.06526 8.07996 5 9.38831 5H18.0782ZM21.5202 9.65216L18.5216 6.53479V8.61739C18.5216 9.19128 18.9914 9.65216 19.5709 9.65216H21.5202ZM20.6113 24.1304H9.38828C8.56735 24.1304 7.87803 23.4566 7.87803 22.639V7.36082C7.87803 6.54784 8.56292 5.86957 9.38828 5.86957H17.6435V8.61739C17.6435 9.67386 18.5041 10.5217 19.5708 10.5217H22.1215V22.639C22.1215 23.4566 21.4366 24.1304 20.6113 24.1304ZM13.5769 8.86956H9.88463C9.67232 8.86956 9.5 8.67476 9.5 8.43476C9.5 8.19476 9.67232 8 9.88463 8H13.5769C13.7892 8 13.9616 8.1948 13.9616 8.4348C13.9616 8.6748 13.7892 8.86956 13.5769 8.86956ZM11.7308 12.1739H9.88463C9.67232 12.1739 9.5 11.9791 9.5 11.7391C9.5 11.4991 9.67232 11.3044 9.88463 11.3044H11.7308C11.9431 11.3044 12.1154 11.4992 12.1154 11.7392C12.1154 11.9792 11.9431 12.1739 11.7308 12.1739ZM20.1154 15.584H9.88463C9.67232 15.584 9.5 15.3892 9.5 15.1492C9.5 14.9092 9.67232 14.7145 9.88463 14.7145H20.1154C20.3277 14.7145 20.5 14.9093 20.5 15.1493C20.5 15.3893 20.3277 15.584 20.1154 15.584ZM9.88463 18.9566H20.1154C20.3277 18.9566 20.5 18.7618 20.5 18.5218C20.5 18.2818 20.3277 18.087 20.1154 18.087H9.88463C9.67232 18.087 9.5 18.2818 9.5 18.5218C9.5 18.7618 9.67232 18.9566 9.88463 18.9566ZM9.88463 22.0002H20.1154C20.3277 22.0002 20.5 21.8054 20.5 21.5654C20.5 21.3254 20.3277 21.1306 20.1154 21.1306H9.88463C9.67232 21.1306 9.5 21.3254 9.5 21.5654C9.5 21.8054 9.67232 22.0002 9.88463 22.0002Z",fill:"#5C7284"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_5403_104596",children:(0,r.jsx)("rect",{width:"30",height:"30",fill:"white"})})})]})},ek=o(4944),eq=function(){return(0,r.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("g",{clipPath:"url(#clip0_5687_13132)",children:(0,r.jsx)("path",{d:"M23.413 9.98148C23.7691 9.71402 24 9.28827 24 8.8096C24 8.00187 23.3428 7.34476 22.5351 7.34476H18.5429L18.0959 5.78011C17.9648 5.3214 17.5401 5.00101 17.063 5.00101L12.937 5.00101C12.4599 5.00101 12.0352 5.3214 11.9041 5.78011L11.457 7.34476H7.46484C6.65711 7.34476 6 8.00187 6 8.8096C6 9.28827 6.23082 9.71402 6.58695 9.98148C6.23082 10.2489 6 10.6747 6 11.1534C6 11.8725 6.52105 12.4718 7.20539 12.5947L7.98117 22.5687C8.03281 23.2327 8.33043 23.8474 8.81926 24.2997C9.30809 24.7519 9.94402 25.001 10.61 25.001H19.39C20.056 25.001 20.6919 24.7519 21.1807 24.2997C21.6695 23.8474 21.9672 23.2327 22.0188 22.5687L22.7946 12.5947C23.4789 12.4718 24 11.8725 24 11.1534C24 10.6747 23.7691 10.2489 23.413 9.98148ZM12.4675 5.94109C12.527 5.73257 12.7201 5.58694 12.937 5.58694H17.063C17.2799 5.58694 17.4729 5.73257 17.5325 5.94109L17.9336 7.34476H12.0664L12.4675 5.94109ZM18.0214 24.4138C18.017 24.414 18.0126 24.4147 18.0082 24.4151H17.4355C17.5116 24.2674 17.5546 24.101 17.5546 23.9268V19.7806C17.5546 19.2452 17.9902 18.8096 18.5256 18.8096C18.7993 18.8096 19.0524 18.9203 19.2383 19.1212C19.4242 19.3221 19.5149 19.583 19.4937 19.8559L19.2302 23.244C19.1805 23.8826 18.6609 24.3855 18.0214 24.4138ZM21.4346 22.5233C21.3521 23.5841 20.454 24.4151 19.39 24.4151H19.3167C19.5973 24.1164 19.7805 23.7245 19.8143 23.2894L20.0778 19.9013C20.1113 19.4701 19.962
11 19.0407 19.6684 18.7232C19.3746 18.4057 18.9581 18.2236 18.5256 18.2236C17.6671 18.2236 16.9687 18.9221 16.9687 19.7805V23.9268C16.9687 24.1669 16.79 24.3746 16.5531 24.4098C16.5441 24.4111 16.5353 24.413 16.5266 24.4151H13.4688C13.4591 24.4124 13.4491 24.4101 13.4389 24.4085C13.2027 24.3694 13.0312 24.1668 13.0312 23.9268V22.1504C13.0312 21.9886 12.9001 21.8575 12.7383 21.8575C12.5765 21.8575 12.4453 21.9886 12.4453 22.1504V23.9268C12.4453 24.1022 12.4877 24.268 12.5625 24.4151H11.9915C11.987 24.4147 11.9825 24.414 11.9779 24.4138C11.3389 24.3853 10.8195 23.8823 10.7698 23.244L10.5063 19.8559C10.4851 19.583 10.5758 19.322 10.7617 19.1211C10.9476 18.9202 11.2007 18.8096 11.4744 18.8096C12.0098 18.8096 12.4454 19.2451 12.4454 19.7805V20.9785C12.4454 21.1403 12.5765 21.2715 12.7383 21.2715C12.9001 21.2715 13.0313 21.1403 13.0313 20.9785V19.7805C13.0313 18.9221 12.3329 18.2236 11.4744 18.2236C11.0419 18.2236 10.6254 18.4057 10.3316 18.7232C10.0379 19.0407 9.88863 19.4701 9.92219 19.9013L10.1857 23.2894C10.2196 23.7244 10.4028 24.1163 10.6834 24.4151H10.61C9.54602 24.4151 8.64793 23.5841 8.56539 22.5233L7.79492 12.6182H22.205L21.4346 22.5233ZM22.5351 12.0323H7.46484C6.9802 12.0323 6.58594 11.638 6.58594 11.1534C6.58594 10.6687 6.9802 10.2744 7.46484 10.2744H18.2278C18.3896 10.2744 18.5207 10.1433 18.5207 9.98148C18.5207 9.81968 18.3896 9.68851 18.2278 9.68851H7.46484C6.9802 9.68851 6.58594 9.29425 6.58594 8.8096C6.58594 8.32495 6.9802 7.93069 7.46484 7.93069H22.5351C23.0198 7.93069 23.414 8.32495 23.414 8.8096C23.414 9.29425 23.0198 9.68851 22.5351 9.68851H19.3996C19.2379 9.68851 19.1067 9.81968 19.1067 9.98148C19.1067 10.1433 19.2379 10.2744 19.3996 10.2744H22.5351C23.0198 10.2744 23.414 10.6687 23.414 11.1534C23.414 11.638 23.0198 12.0323 22.5351 12.0323Z",fill:"#FD0156",stroke:"#FD0156",strokeWidth:"0.3"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_5687_13132",children:(0,r.jsx)("rect",{width:"30",height:"30",fill:"white",transform:"translate(0 0.00100708)"})})})]})},eA=o(2005),eO={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out"},eD=function(e){var t=e.handleClose,o=(0,a._)((0,p.useState)(eO.fadeIn),2),n=o[0],i=o[1],s=(0,p.useRef)(),l=function(){clearInterval(s.current),i(eO.fadeOut),setTimeout(t,350)},c=function(){clearInterval(s.current),i(eO.fadeOut)};return(0,p.useEffect)(function(){return s.current=setTimeout(function(){return l()},7e3),c},[]),(0,r.jsx)("div",{className:"".concat("z-50 absolute w-full left-0"," ").concat(n),children:(0,r.jsx)(eA.Z,{message:"El seguro para pickups solo cubre uso familiar, excluyendo coberturas para uso de carga.",handlerHidden:l})})};eD.defaultProps={handleClose:function(){}},eD.propTypes={handleClose:u().func};var eR=o(2175),eP=o(9017),eF=o(5218),eZ=o(9937),eH=o(9317),eB=o(7090),eV=function(e){var t,o=e.styles,a=e.showModal,l=e.toggleModal,c=e.modal,d=e.reQuoteFunc,u=e.quotationBarTexts,p=e.editVersionPayMobileTexts,h=(0,x.v9)(function(e){return e.quotation}),v=(0,x.I0)(),m=(0,x.oR)(),C=(0,eF.Z)(),b=h.vehicle.versions,g=h.vehicle.insurers,y=(0,x.v9)(function(e){return e.utils.promocodeData.activeMultiannual}),w=(0,x.v9)(function(e){return e.utils.promocodeData.onlyCashPayment}),j=function(){l()},S=function(e){var t=b.length>0,o=u.bar.paymentList;switch(e){case"version":return t?b:[];case"paymentFrequency":if(w)return o.filter(function(e){return e.name===R.jC.cash.name});return o.filter(function(e){return e.name!==R.jC.cash.name});case"validity":return u.bar.validityList;default:return[]}},E=function(e){var t=m.getState(),o=(0,eZ.ej)(t,e);C.updateCart(o)},N=function(e){v((0,I.yW)(e))},L=function(e,t){v((0,_.dk)(e,t))},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=h.policy.selectedQuotation;v((0,I.Yd)(e,t)),o&&t&&o.providerCode===e&&v((0,I.xJ)("policy","selectedQuotation",{quotation:t,providerCode:e}))},q=function(e){var t;return null===(t=document.getElementsByName(e)[0])||void 0===t?void 0:t.textContent},A=(t=(0,n._)(function(){var e,t,o,n,a,r,l,c,u,p,x,f,C,y,w;return(0,s.Jh)(this,function(s){switch(s.label){case 0:v((0,_.dk)("withoutQuotes",!1)),l=q("paymentFrequencyMobile"),c=q("versionMobile"),u=(0,R.uO)(l),p=q("validity"),x=(0,R.rs)(p),v((0,I.xJ)("policy","paymentFrequency",u)),v((0,I.xJ)("vehicle","version",c)),v((0,I.xJ)("policy","validity",x)),f=(0,eB.Yn)(b,c),C=m.getState(),y=(0,M._)((0,i._)({cartId:C.cart.cartId},h),{policy:(0,M._)((0,i._)({},h.policy),{paymentFrequency:u,validity:x}),store:{quotationStep:null===(e=C.utils)||void 0===e?void 0:e.quotationStep,emissionStep:null===(t=C.utils)||void 0===t?void 0:t.emissionStep,modelId:null===(n=C.quotation)||void 0===n?void 0:null===(o=n.vehicle)||void 0===o?void 0:o.modelId,subbrandId:null===(r=C.quotation)||void 0===r?void 0:null===(a=r.vehicle)||void 0===a?void 0:a.subbrandId}}),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,d(y,g,k,N,E,L,f)];case 2:return s.sent(),[3,4];case 3:return w=s.sent(),(0,eH.Z)(w,"All insurer quotes errored"),v((0,_.dk)("withoutQuotes",!0)),[3,4];case 4:return[2]}})}),function(){return t.apply(this,arguments)});return(0,r.jsx)("div",{children:(0,r.jsx)(em.Z,{onClose:function(){return j()},show:a,modal:c,className:"bg-grayScaleColor-white border-primaryColor-600 h-80pct desktop:h-400px rounded-t-lg",position:o.modalPosition,children:(0,r.jsxs)("div",{className:o.container,children:[(0,r.jsx)(f.Z,{text:p.title,className:o.title}),(0,r.jsx)(eR.J9,{initialValues:{},onSubmit:function(){A(),l()},children:(0,r.jsxs)(eR.l0,{children:[p.fields.map(function(e){return(0,r.jsx)("div",{className:o.dropdownContainer,children:(0,r.jsx)(eP.Z,{wrapperClass:o.dropdown.wrapperClass,list:S(e.id),width:o.dropdown.width,height:o.dropdown.height,text:o.dropdown.font,id:e.id,name:e.name,section:e.section,topClass:o.dropdown.topClass,labelClass:o.hidden,styles:o.dropdown,noRedux:!0})},e.name)}),y&&(0,r.jsx)("div",{className:o.dropdownContainer,children:(0,r.jsx)(eP.Z,{wrapperClass:o.dropdown.wrapperClass,list:S(p.dropdownMultiannual.id),width:o.dropdown.width,height:o.dropdown.height,text:o.dropdown.font,id:p.dropdownMultiannual.id,name:p.dropdownMultiannual.name,section:p.dropdownMultiannual.section,topClass:o.dropdown.topClass,labelClass:o.hidden,styles:o.dropdown})},p.dropdownMultiannual.name),(0,r.jsx)(T.Z,{title:p.buttonText,active:!0,className:"".concat(o.buttonModalStyles," ").concat(o.buttonModalStyles),type:"submit"})]})})]})})})};eV.defaultProps={styles:{},modal:{},reQuoteFunc:function(){},quotationBarTexts:{},editVersionPayMobileTexts:{}},eV.propTypes={styles:u().objectOf(d.any),showModal:u().bool.isRequired,toggleModal:u().func.isRequired,modal:u().objectOf(d.any),reQuoteFunc:u().func,quotationBarTexts:u().objectOf(d.any),editVersionPayMobileTexts:u().objectOf(d.any)};
1var eY=o(7501),eU=function(e){var t=e.fill,o=e.width,n=e.height;return(0,r.jsxs)("svg",{width:o,height:n,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M15.0958 25C14.6168 25 14.1377 24.8077 13.8503 24.4231L13.5629 24.0385C13.2754 23.75 12.8922 23.6538 12.509 23.8462L12.0299 24.0385C11.5509 24.2308 11.0719 24.2308 10.6886 24.0385C10.3054 23.8462 9.92216 23.4615 9.82635 22.9808L9.73054 22.5C9.63473 22.1154 9.2515 21.9231 8.86826 21.8269H8.38922C7.91018 21.8269 7.43114 21.5385 7.14371 21.25C6.85629 20.8654 6.76048 20.3846 6.85629 20L6.9521 19.5192C7.0479 19.1346 6.85629 18.75 6.47305 18.6538L5.99401 18.3654C5.61078 18.1731 5.22754 17.7885 5.13174 17.3077C5.03593 16.8269 5.13174 16.3462 5.41916 15.9615L5.70659 15.5769C5.8982 15.2885 5.8982 14.9038 5.70659 14.6154L5.32335 14.1346C5.03593 13.75 4.94012 13.2692 5.03593 12.8846C5.13174 12.4038 5.51497 12.0192 5.8982 11.7308L6.37725 11.5385C6.66467 11.3462 6.85629 10.9615 6.85629 10.6731L6.66467 10.0962C6.56886 9.71154 6.66467 9.23077 6.9521 8.84615C7.23952 8.46154 7.71856 8.26923 8.1976 8.17308H8.67665C9.05988 8.17308 9.34731 7.88462 9.44311 7.5L9.53892 7.01923C9.63473 6.53846 10.018 6.15385 10.4012 5.96154C10.7844 5.76923 11.3593 5.76923 11.7425 5.86538L12.2216 6.05769C12.7006 6.34615 13.0838 6.25 13.3713 5.96154L13.6587 5.57692C14.0419 5.19231 14.4251 5 14.9042 5C15.3832 5 15.8623 5.19231 16.1497 5.57692L16.5329 5.86538C16.8204 6.15385 17.2036 6.25 17.5868 6.05769L17.9701 5.96154C18.4491 5.76923 18.9281 5.76923 19.3114 5.96154C19.6946 6.15385 20.0778 6.53846 20.1737 7.01923L20.3653 7.5C20.4611 7.88462 20.8443 8.07692 21.2275 8.17308H21.7066C22.1856 8.17308 22.6647 8.46154 22.9521 8.75C23.2395 9.03846 23.3353 9.51923 23.2395 10L23.1437 10.4808C23.0479 10.8654 23.2395 11.25 23.6228 11.3462L24.1018 11.5385C24.485 11.7308 24.8683 12.1154 24.9641 12.5962C25.0599 13.0769 24.9641 13.5577 24.6766 13.9423L24.3892 14.3269C24.1976 14.6154 24.1976 15 24.3892 15.2885L24.6766 15.6731C24.9641 16.0577 25.0599 16.5385 24.9641 17.0192C24.8683 17.5 24.5808 17.8846 24.1018 18.0769L23.7186 18.4615C23.4311 18.6538 23.2395 19.0385 23.2395 19.3269L23.3353 19.8077C23.4311 20.2885 23.3353 20.7692 23.0479 21.1538C22.7605 21.5385 22.2814 21.7308 21.8024 21.8269H21.3234C20.9401 21.8269 20.6527 22.1154 20.5569 22.5L20.3653 22.9808C20.2695 23.4615 19.8862 23.8462 19.503 24.0385C19.1198 24.2308 18.5449 24.2308 18.1617 24.1346L17.6826 23.9423C17.2994 23.75 16.9162 23.8462 16.6287 24.1346L16.3413 24.5192C16.0539 24.8077 15.5749 25 15.0958 25ZM12.7964 23.0769C13.2754 23.0769 13.6587 23.2692 14.0419 23.6538L14.3293 24.0385C14.521 24.2308 14.7126 24.3269 15 24.3269C15.2874 24.3269 15.479 24.2308 15.6707 24.0385L15.9581 23.6538C16.4371 23.1731 17.2036 22.9808 17.8743 23.1731L18.4491 23.2692C18.7365 23.3654 18.9281 23.3654 19.2156 23.2692C19.4072 23.1731 19.5988 22.9808 19.6946 22.6923L19.7904 22.2115C19.982 21.5385 20.5569 21.0577 21.3234 21.0577H21.8024C22.0898 21.0577 22.2814 20.9615 22.4731 20.6731C22.6647 20.4808 22.6647 20.1923 22.6647 20L22.5689 19.5192C22.4731 18.8462 22.7605 18.1731 23.4311 17.7885L23.9102 17.5962C24.1018 17.5 24.2934 17.3077 24.3892 17.0192C24.485 16.7308 24.3892 16.5385 24.1976 16.3462L23.9102 15.9615C23.5269 15.3846 23.5269 14.6154 23.9102 14.0385L24.1976 13.6538C24.3892 13.4615 24.3892 13.1731 24.2934 12.9808C24.1976 12.6923 24.1018 12.5 23.8144 12.4038L23.2395 12.1154C22.5689 11.8269 22.2814 11.0577 22.3772 10.3846L22.4731 9.90385C22.4731 9.61538 22.4731 9.42308 22.2814 9.23077C22.1856 9.03846 21.8982 8.84615 21.6108 8.84615H21.1317C20.4611 8.84615 19.7904 8.36538 19.5988 7.69231L19.503 7.21154C19.4072 6.92308 19.2156 6.73077 19.024 6.63462C18.8323 6.53846 18.5449 6.53846 18.2575 6.63462L17.7784 6.82692C17.1078 7.11538 16.3413 6.92308 15.8623 6.44231L15.5749 6.05769C15.3832 5.86538 15.0958 5.76923 14.9042 5.76923C14.6168 5.76923 14.4251 5.86538 14.2335 6.05769L13.9461 6.44231C13.4671 6.92308 12.7006 7.11538 12.0299 6.92308L11.5509 6.73077C11.3593 6.63462 11.0719 6.63462 10.7844 6.73077C10.5928 6.82692 10.497 7.01923 10.4012 7.30769L10.2096 7.78846C10.018 8.46154 9.44311 8.94231 8.77245 8.94231H8.29341C8.00599 8.94231 7.81437 9.03846 7.62275 9.32692C7.43114 9.51923 7.33533 9.71154 7.43114 10L7.52695 10.4808C7.62275 11.1538 7.33533 11.8269 6.66467 12.2115L6.28144 12.4038C5.99401 12.5962 5.8982 12.7885 5.8024 12.9808C5.8024 13.2692 5.8024 13.4615 5.99401 13.75L6.28144 14.1346C6.66467 14.7115 6.66467 15.4808 6.28144 16.0577L5.99401 16.4423C5.8024 16.6346 5.8024 16.9231 5.8982 17.1154C5.99401 17.4038 6.08982 17.5962 6.37725 17.6923L6.85629 17.8846C7.52695 18.1731 7.81437 18.9423 7.71856 19.6154L7.62275 20.0962C7.62275 20.3846 7.62275 20.5769 7.81437 20.7692C8.00599 20.9615 8.1976 21.0577 8.48503 21.0577H8.96407C9.63473 21.0577 10.3054 21.5385 10.497 22.2115L10.5928 22.6923C10.5928 23.0769
110.7844 23.2692 10.976 23.3654C11.1677 23.4615 11.4551 23.4615 11.7425 23.3654L12.2216 23.1731C12.4132 23.0769 12.6048 23.0769 12.7964 23.0769Z",className:"fill-current ".concat(t)}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6596 15C12.8504 15 13.8888 14.0264 13.8888 12.7707C13.8888 11.5291 12.8504 10.5555 11.6596 10.5555C10.4689 10.5555 9.44434 11.5291 9.44434 12.7707C9.44434 14.0264 10.4689 15 11.6596 15ZM11.9999 19.4444L19.4443 10.5555H17.9999L10.5555 19.4444H11.9999ZM10.5555 12.7707C10.5555 13.4218 11.0461 13.8889 11.6666 13.8889C12.3015 13.8889 12.7777 13.4218 12.7777 12.7707C12.7777 12.1338 12.3015 11.6667 11.6666 11.6667C11.0461 11.6667 10.5555 12.1338 10.5555 12.7707ZM18.3263 19.4444C19.517 19.4444 20.5554 18.4709 20.5554 17.2152C20.5554 15.9735 19.517 15 18.3263 15C17.1356 15 16.111 15.9735 16.111 17.2152C16.111 18.4709 17.1356 19.4444 18.3263 19.4444ZM17.2221 17.2151C17.2221 17.8662 17.7127 18.3333 18.3332 18.3333C18.9681 18.3333 19.4443 17.8662 19.4443 17.2151C19.4443 16.5782 18.9681 16.1111 18.3332 16.1111C17.7127 16.1111 17.2221 16.5782 17.2221 17.2151Z",className:"fill-current ".concat(t)})]})};eU.defaultProps={width:30,height:30},eU.propTypes={width:u().oneOfType([u().string.isRequired,u().number.isRequired]),height:u().oneOfType([u().string.isRequired,u().number.isRequired]),fill:u().string.isRequired};var eJ=function(e){var t=e.fill;return(0,r.jsxs)("svg",{width:"20",height:"13",viewBox:"0 0 20 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M19.5547 3.87242C19.6016 3.83564 20 3.48628 20 3.00453V2.42348C20 2.21386 19.8164 2.04102 19.5938 2.04102H18.3555C17.7891 2.04102 17.332 2.47496 17.332 3.00453V3.11485C16.8242 2.13296 15.5742 0 14.332 0H5.66797C4.42578 0 3.17969 2.13296 2.66797 3.11485V3.00453C2.66797 2.47129 2.20703 2.04102 1.64453 2.04102H0.40625C0.183594 2.04102 0 2.21018 0 2.42348V3.00453C0 3.4826 0.398438 3.83197 0.445312 3.87242C0.519531 3.93494 0.617188 3.97171 0.714844 3.97171H1.82422L0.890625 4.76238C0.878906 4.77341 0.867188 4.78444 0.855469 4.79547C0.820312 4.83225 0 5.74795 0 7.27412V12.0365C0 12.5697 0.460938 13 1.02344 13H3.19141C3.75781 13 4.21484 12.5661 4.21484 12.0365V11.5437H15.7812V12.0365C15.7812 12.5697 16.2422 13 16.8047 13H18.9727C19.5391 13 19.9961 12.5661 19.9961 12.0365V7.27412C19.9961 5.75163 19.1758 4.83593 19.1406 4.79547C19.1289 4.78444 19.1172 4.76973 19.1055 4.76238L18.1719 3.97171H19.2812C19.3828 3.96803 19.4805 3.93494 19.5547 3.87242ZM1.85547 3.00453V3.20311H0.898438C0.84375 3.12956 0.8125 3.05601 0.8125 3.00453V2.80594H1.64453C1.76172 2.80594 1.85547 2.8942 1.85547 3.00453ZM16.8477 3.87242L18.543 5.30665C18.6289 5.4133 19.1914 6.14144 19.1914 7.27044V12.0328C19.1914 12.1431 19.0977 12.2314 18.9805 12.2314H16.8125C16.6953 12.2314 16.6016 12.1431 16.6016 12.0328V11.1576C16.6016 10.9479 16.418 10.7751 16.1953 10.7751H3.80859C3.58594 10.7751 3.40234 10.9479 3.40234 11.1576V12.0328C3.40234 12.1431 3.30859 12.2314 3.19141 12.2314H1.02344C0.90625 12.2314 0.8125 12.1431 0.8125 12.0328V7.27412C0.8125 6.14144 1.375 5.4133 1.46094 5.31033L3.15625 3.8761C3.16016 3.87242 3.16406 3.86874 3.16406 3.86874C3.16797 3.86506 3.17188 3.86139 3.17578 3.85771C3.18359 3.85035 3.1875 3.84668 3.19141 3.83932C3.19531 3.83564 3.19922 3.83197 3.19922 3.82829C3.20312 3.82093 3.21094 3.81726 3.21484 3.8099C3.21875 3.80622 3.21875 3.80255 3.22266 3.79887C3.22656 3.79151 3.23047 3.78784 3.23438 3.78048C3.23828 3.77313 3.24219 3.76945 3.24219 3.76209C3.24609 3.75842 3.24609 3.75474 3.25 3.75106C3.94141 2.31683 5.0625 0.7686 5.66406 0.7686H14.3281C14.9297 0.7686 16.0508 2.31683 16.7422 3.75106C16.7461 3.75474 16.7461 3.75842 16.75 3.76209C16.7539 3.76945 16.7578 3.77313 16.7578 3.78048C16.7617 3.78784 16.7656 3.79151 16.7695 3.79887C16.7734 3.80255 16.7773 3.80622 16.7773 3.81358C16.7812 3.82093 16.7852 3.82461 16.793 3.83197C16.7969 3.83564 16.8008 3.83932 16.8008 3.843C16.8047 3.85035 16.8125 3.85403 16.8164 3.86139C16.8203 3.86506 16.8242 3.86874 16.8281 3.87242C16.8398 3.86506 16.8438 3.86874 16.8477 3.87242ZM19.1875 2.80594V3.00453C19.1875 3.05969 19.1562 3.12956 19.1016 3.20311H18.1445V3.00453C18.1445 2.8942 18.2383 2.80594 18.3555 2.80594H19.1875Z",className:"fill-current ".concat(t)}),(0,r.jsx)("path",{d:"M14.5547 8.75618C14.5312 8.87018 14.5625 8.98419 14.6406 9.07245C14.7187 9.16071 14.832 9.21219 14.9531 9.21219H17.1211C17.6875 9.21219 18.1445 8.77825 18.1445 8.24868V7.37344C18.1445 7.16382 17.9609 6.99098 17.7382 6.99098H16.1914C14.9414 6.99098 14.5703 8.68631 14.5547 8.75618ZM17.332 7.7559V8.24868C17.332 8.35901 17.2382 8.44727 17.1211 8.44727H15.5039C15.625 8.17513 15.8593 7.7559 16.1914 7.7559H17.332Z",className:"fill-current ".concat(t)}),(0,r.jsx)("path",{d:"M3.80859 6.99098H2.26172C2.03906 6.99098 1.85547 7.16382 1.85547 7.37344V8.248
168C1.85547 8.78192 2.31641 9.21219 2.87891 9.21219H5.04688C5.16797 9.21219 5.28516 9.16071 5.35938 9.07245C5.4375 8.98419 5.46875 8.86651 5.44531 8.75618C5.42969 8.68631 5.05859 6.99098 3.80859 6.99098ZM4.49609 8.45095H2.88281C2.76562 8.45095 2.67188 8.36269 2.67188 8.25236V7.75958H3.8125C4.14062 7.7559 4.37891 8.17513 4.49609 8.45095Z",className:"fill-current ".concat(t)}),(0,r.jsx)("path",{d:"M13.4023 8.45093H6.59372C6.37106 8.45093 6.18747 8.62378 6.18747 8.83339C6.18747 9.04301 6.37106 9.21586 6.59372 9.21586H13.4023C13.625 9.21586 13.8086 9.04301 13.8086 8.83339C13.8086 8.62378 13.6289 8.45093 13.4023 8.45093Z",className:"fill-current ".concat(t)}),(0,r.jsx)("path",{d:"M8.76172 6.63423C8.53906 6.63423 8.35547 6.80707 8.35547 7.01669C8.35547 7.22631 8.53906 7.39915 8.76172 7.39915H11.2383C11.4609 7.39915 11.6445 7.22631 11.6445 7.01669C11.6445 6.80707 11.4609 6.63423 11.2383 6.63423H8.76172Z",className:"fill-current ".concat(t)}),(0,r.jsx)("path",{d:"M4.37569 4.23649H15.6255C15.7555 4.23649 15.8782 4.17268 15.9431 4.07194C16.0117 3.96783 16.0189 3.84021 15.9612 3.73275C15.5786 3.02415 14.7016 1.63045 14.1024 1.43231C14.0627 1.41888 14.0194 1.41216 13.9761 1.41216H6.02509C5.98178 1.41216 5.93847 1.41888 5.89877 1.43231C5.29965 1.63045 4.42261 3.02415 4.04004 3.73275C3.98229 3.84021 3.9859 3.96783 4.05809 4.07194C4.12666 4.17604 4.24937 4.23649 4.37569 4.23649ZM5.00008 3.54132C5.4801 2.74877 5.93125 2.23495 6.11532 2.11069H13.8859C14.07 2.23495 14.5211 2.74877 15.0011 3.54132H5.00008Z",className:"fill-current ".concat(t)})]})};eJ.propTypes={fill:u().string.isRequired};var eQ=o(8090),eG=o(4839),ez=o(6184),eW=function(e){var t=e.formFields,o=e.onChange,n=e.styles,s=e.copies,l=n.inputText,c=n.inputTextClass,d=n.formContainer,u=n.errorMessageClass,x=s.fields,f=(0,a._)((0,p.useState)(t),2),h=f[0],v=f[1],m=t.isInvoiceCompensationValue,C=(0,a._)((0,p.useState)(m),2),b=C[0],g=C[1],y=function(e,t){var n=(0,i._)({},h),a=e;"isInvoiceCompensationValue"===t?(g(a="invoice"===a),a||(n.invoiceDate="",n.invoiceFolio="",n.invoiceValue="")):a=e,n[t]=a,v(n),o(n)},w=function(e,t){y(e.target.value,t)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if((0,eG.qb)(e))return e;var t=(0,a._)(e.split("-"),3),o=t[0],n=void 0===o?"":o,i=t[1],s=void 0===i?"":i,r=t[2],l=void 0===r?"":r;return n.length&&s.length&&l.length?(0,eG.ED)(l,s,n):e};return(0,r.jsx)("div",{className:d,children:b&&(0,r.jsx)("div",{children:x.map(function(e){return(0,r.jsx)(eQ.Z,{title:e.title,id:e.id,name:e.name,width:e.width,inputClass:l,inputTextClass:c,isNewInput:!0,placeholder:e.placeholder,errorMessage:e.validationMessage,onChangeFunc:function(t){return w(t,e.id)},type:e.type,value:"invoiceDate"===e.id?j(h.invoiceDate):h[e.id],error:h[e.id]&&!(0,ez._)(h[e.id],e.validationPattern),errorMessageClass:u},e.id)})})})};eW.defaultProps={onChange:function(){},styles:{},copies:{}},eW.propTypes={formFields:u().objectOf(d.any).isRequired,onChange:u().func,styles:u().objectOf(d.any),copies:u().objectOf(d.any)};var eX={STYLES_CONFIGURATION:{modal:{container:{styles:{borderTopRightRadius:"16px",borderBottomRightRadius:"16px"}}},header:{classNames:"h-64px pl-30px pr-30px bg-grayScaleColor-10"},title:{classNames:"items-center font-secondaryFont",inlineStyles:{fontWeight:600,lineHeight:"16px"}}}},e$=o(5045),eK=function(e){var t,o,l,c,d,u,f,h,v,C,b=e.styles,g=e.copies,y=e.showModal,w=e.toggleModal,j=e.modal,S=e.reQuoteFunc,E=g.fields,N=(0,x.v9)(function(e){return e.cart}),L=(0,a._)((0,p.useState)({isInvoiceCompensationValue:!0,invoiceValue:null===(c=N.quote)||void 0===c?void 0:null===(l=c.vehicle)||void 0===l?void 0:null===(o=l.invoice)||void 0===o?void 0:o.value,invoiceFolio:null===(f=N.quote)||void 0===f?void 0:null===(u=f.vehicle)||void 0===u?void 0:null===(d=u.invoice)||void 0===d?void 0:d.folio,invoiceDate:null===(C=N.quote)||void 0===C?void 0:null===(v=C.vehicle)||void 0===v?void 0:null===(h=v.invoice)||void 0===h?void 0:h.date}),2),k=L[0],q=L[1],A=(0,x.v9)(function(e){return e.quotation}),O=["ana","hdi"],D=(0,x.I0)(),R=(0,x.oR)(),P=(0,eF.Z)(),F=function(e){return e.isInvoiceCompensationValue?"invoice":"commercial"},Z=function(e){var t=e.invoiceDate;return{value:e.invoiceValue,folio:e.invoiceFolio,date:t}},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=F(k),n=A.policy.selectedQuotation,a=(0,M._)((0,i._)({},t),{compensationValue:o,invoice:Z(k)});D((0,I.Yd)(e,a)),D((0,I.xJ)(m.uk,"invoice",(0,i._)({},a.invoice))),n&&a&&n.providerCode===e&&D((0,I.xJ)("policy","selectedQuotation",{quotation:a,providerCode:e}))},B=function(e){D((0,_.dk)("displayLoader",e))},V=function(e,t){D((0,_.dk)(e,t))},Y=function(e){D((0,I.yW)(e))},U=function(e){var t=R.getState(),o=(0,eZ.ej)(t,e);P.updateCart(o)},J=function(){w()},Q=(t=(0,n._)(function(e){var t,o,n,a,r,l,c,d,u,p,x,f;return(0,s.Jh)(this,function(s){switch(s.label){case 0:e&&e.preventDefault(),B(!0),D((0,_.dk)("withoutQuotes",!1)),D((0,I.E_)()),c=R.getState(),d=F(k),u=k.isInvoiceCompensationValue,p=(0,eB.Yn)(c.quotation.vehicle.versions,c.quotation.vehicle.version),x=(0,M._)((0,i._)({cartId:c.cart.cartId,store:{quotationStep:null===(t=c.utils)||void 0===t?void 0:t.quotationStep,emissionStep:null===(o=c.utils)||void 0===o?void 0:o.emissionStep,modelId:null===(a=c.quotation)||void 0===a?void 0:null===(n=a.vehicle)||void 0===n?void 0:n.modelId,subbrandId:null===(l=c.quotation)||void 0===l?void 0:null===(r=l.vehicle)||void 0===r?void 0:r.subbrandId}},A),{policy:(0,M._)((0,i._)({},A.policy),{compensationValue:d})}),u&&(x.vehicle=(0,M._)((0,i._)({},x.vehicle),{invoice:Z(k)}
1)),D((0,I.xJ)(e$.FY,"compensationValue","invoice")),J(),s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,S(x,O,H,Y,U,V,p)];case 2:return s.sent(),[3,5];case 3:return f=s.sent(),(0,eH.Z)(f),D((0,_.dk)("withoutQuotes",!0)),[3,5];case 4:return B(!1),[7];case 5:return[2]}})}),function(e){return t.apply(this,arguments)});return(0,r.jsx)("div",{children:(0,r.jsx)(em.Z,{onClose:function(){return J()},show:y,modal:j,className:b.modalContainer,position:b.modalPosition,title:"Cotiza con valor factura",styles:eX.STYLES_CONFIGURATION,children:(0,r.jsx)("div",{className:b.container,children:(0,r.jsx)("div",{children:(0,r.jsx)(eR.J9,{children:function(){return(0,r.jsxs)("form",{onSubmit:Q,className:b.controlContainer,children:[(0,r.jsx)(eW,{formFields:k,onChange:q,styles:b,copies:g}),(0,r.jsx)(T.Z,{disabled:!!k.isInvoiceCompensationValue&&!E.every(function(e){return(0,ez._)(k[e.id],e.validationPattern)}),title:"Cotizar con valor ".concat(k.isInvoiceCompensationValue?"factura":"comercial"),className:"mt-16px border-primaryColor-600 font-secondaryFont hover:bg-primaryColor-500 hover:shadow-3xl relative overflow-hidden focus:outline-none transition-all transform duration-300 ease false h-48px text-16px rounded-10px font-quaternaryFont w-80pct ml-10pct text-grayScaleColor-white gtm-track bg-primaryColor-600 focus:outline-none",type:"submit"})]})}})})})})})};eK.defaultProps={styles:{},copies:{}},eK.propTypes={styles:u().objectOf(d.any),copies:u().objectOf(d.any),showModal:u().bool.isRequired,toggleModal:u().func.isRequired,modal:u().objectOf(d.any).isRequired,reQuoteFunc:u().func.isRequired};var e0=o(8462),e1=o(8256),e2={TITLE:"Da\xf1os a tu veh\xedculo",REDUX_STORE_KEY:e1.p.MATERIAL_DAMAGE.CODE,DEDUCTIBLES:e1.p.MATERIAL_DAMAGE.DEDUCTIBLES},e4={TITLE:"Robo total",REDUX_STORE_KEY:e1.p.THEFT.CODE,DEDUCTIBLES:e1.p.THEFT.DEDUCTIBLES},e3={TITLE:"Da\xf1os a terceros",REDUX_STORE_KEY:e1.p.RC_THIRD.CODE,DEDUCTIBLES:e1.p.RC_THIRD.DEDUCTIBLES},e5={TITLE:"Fallecimiento de terceros",REDUX_STORE_KEY:e1.p.RC_CATASTROPHIC.CODE,DEDUCTIBLES:e1.p.RC_CATASTROPHIC.DEDUCTIBLES},e8={LEFT_POSITION:"left",TITLE:"Editar deducibles y coberturas",STYLES_CONFIGURATION:{modal:{container:{styles:{borderTopRightRadius:"16px",borderBottomRightRadius:"16px"}}},header:{classNames:"h-64px pl-30px pr-30px bg-grayScaleColor-10"},title:{classNames:"items-center font-secondaryFont text-12px",inlineStyles:{fontWeight:600,lineHeight:"16px"}}}},e6={TITLE:"Mostrar resultados",CLASS_NAMES:"mt-75px w-full h-40px text-14px w-full border-primaryColor-600 font-secondaryFont hover:bg-primaryColor-500 hover:shadow-3xl relative overflow-hidden focus:outline-none transition-all transform duration-300 ease false rounded-10px text-grayScaleColor-white gtm-track bg-primaryColor-600 focus:outline-none",SUBMIT_TYPE:"submit",INLINE_STYLE:{fontWeight:600,lineHeight:"16px"}},e9={CLOSE:{FILL:"#5C7284"}},e7={DEDUCTIBLES:"Deducibles",COVERAGES:"Coberturas",H4:{CLASS_NAMES:"font-quaternaryFont text-18px mb-25px",INLINE_STYLE:{fontWeight:400,lineHeight:"16.2px",letterSpacing:"0.36px"}}},te={CLASS_NAMES:"font-quaternaryFont text-14px inline-block",INLINE_STYLE:{width:"215px",fontWeight:700,lineHeight:"16.2px",letterSpacing:"0.36px"}},tt={CLASS_NAMES:"w-266px text-10px font-quaternaryFont text-grayScaleColor-950 mb-35px",INLINE_STYLE:{fontWeight:500,lineHeight:"11.69px",letterSpacing:"0.2px",marginBottom:"35px"},BOLDER:{CLASS_NAMES:"text-grayScaleColor-black",INLINE_STYLE:{fontWeight:700}}},to={MARGIN_BUTTOM_SEPARATOR:"mb-50px",PRIMARY_FORM_GROUP:"flex items-center mb-20px",FORM_GROUP:"flex items-center",WIDTHS:{MEDIUM:"w-87px",LARGE:"w-180px"},SYMBOLS:{PERCENT:"%",CURRENCY:"%"}},tn={SECTION:e0.L.QUOTATION.DEDUCTIBLE_COVERAGES_EDITABLES,HEIGHT:"h-38px",CLASS_NAMES_FOR_CONTENT_TEXT:"text-14px pl-2",TOP_CLASS_NAMES:"pr-44px",STYLES_CONFIGURATION:{width:"w-32",largeWidth:"w-264px",height:"h-40px",font:"text-8px pl-2",topClass:"pr-44px",label:"font-secondaryFont text-grayScaleColor-100",borderColor:"border-grayScaleColor-100",bgColor:"bg-grayScaleColor-white",text:"relative flex items-center cursor-pointer border border-b-1 h-8 text-12px pl-16px border-grayScaleColor-200 truncate font-secondaryFont text-grayScaleColor-300 rounded-10px",selected:"text-grayScaleColor-50 bg-grayScaleColor-white",list:"bg-grayScaleColor-white hover:bg-grayScaleColor-20 hover:text-grayScaleColor-500 text-grayScaleColor-100",carret:{classNames:"absolute top-22px right-4",image:{width:"12px",height:"12px"}}}},ti=Object.freeze({SHOW:!0,HIDE:!1}),ta=Object.freeze({ENABLE:!0,DISABLED:!1}),ts=Object.freeze({UPDATED:!0,DEFAULT:!1}
1),tr=o(8520),tl=o(3146),tc={toNumber:function(e){return Number(e.replace(tr.mH.REMOVE_SPECIAL_CHARACTERS_FOR_NUMBERS,""))}},td=function(){var e,t,o,n,a,s,r=[tr.ge.HDI],l=[tr.df.COMPREHENSIVE],c=(0,x.v9)(function(e){return e}),d=(0,x.I0)(),u=(0,eF.Z)(),p=function(e){var t=e.vehicle,o=t.versions,n=t.version;return(0,eB.Yn)(o,n)},f=function(e,t){var o=p(c.quotation);d((0,_.dk)(e0.L.UTILS.DISPLAY_LOADER,ta.ENABLE)),d((0,_.dk)(e0.L.UTILS.WITHOUT_QUOTES,ti.HIDE)),d((0,I.E_)()),(0,eZ.mJ)(e,t,function(e,t){return d((0,I.Yd)(e,t))},function(e){return d((0,I.yW)(e))},function(e){return u.updateCart((0,eZ.ej)(c,e))},function(e,t){return d((0,_.dk)(e,t))},o).then().catch(function(e){(0,eH.Z)(e),d((0,_.dk)(e0.L.UTILS.WITHOUT_QUOTES,ti.SHOW))}).finally(function(){d((0,_.dk)(e0.L.UTILS.DISPLAY_LOADER,ta.DISABLED))})};return{applyFilter:function(){var e=c.cart.cartId,t=c.quotation,o=t.vehicle,n=o.modelId,a=o.subbrandId,s=t.policy.coverages,l=t.deductibleCoveragesEditables,u=l.materialDamage,p=l.rcCatastrophic,x=l.rcThird,h=l.theft,v=c.utils,m=v.quotationStep,C=v.emissionStep,b=(0,M._)((0,i._)({},s),{materialDamage:tc.toNumber(u).toString(),rcCatastrophic:tc.toNumber(p).toString(),rcThird:tc.toNumber(x).toString(),theft:tc.toNumber(h).toString()}),g=(0,M._)((0,i._)({cartId:e,store:{quotationStep:m,emissionStep:C,modelId:n,subbrandId:a}},c.quotation),{policy:(0,M._)((0,i._)({},c.quotation.policy),{coverages:(0,i._)({},b),hasCoveragesEdited:ts.UPDATED})});d((0,I.xJ)(e0.L.QUOTATION.POLICY,e0.L.QUOTATION.POLICY_COVERAGES,b)),d((0,I.xJ)(e0.L.QUOTATION.POLICY,e0.L.QUOTATION.POLICY_HAS_COVERAGES_EDITED,ts.UPDATED)),f(g,r)},removeFilter:function(){var e=[tr.ge.ANA,tr.ge.GDS,tr.ge.HDI,tr.ge.MAPFRE,tr.ge.SURA],t=c.cart.cartId,o=c.quotation.vehicle,n=o.modelId,a=o.subbrandId,s=c.utils,r=s.quotationStep,l=s.emissionStep,u=(0,M._)((0,i._)({cartId:t,store:{quotationStep:r,emissionStep:l,modelId:n,subbrandId:a}},c.quotation),{deductibleCoveragesEditables:(0,i._)({},tl.Z.quotationInitialState.deductibleCoveragesEditables),policy:(0,M._)((0,i._)({},c.quotation.policy),{coverages:(0,i._)({},tl.Z.quotationInitialState.policy.coverages),hasCoveragesEdited:tl.Z.quotationInitialState.policy.hasCoveragesEdited})});d((0,I.cq)(c.quotation)),f(u,e)},isDefaultFilter:(e=tl.Z.quotationInitialState.deductibleCoveragesEditables,t=c.quotation.deductibleCoveragesEditables,o=Object.values(e).toString(),Object.values(t).toString()===o),isEnableDeductibleEdition:(a=(n=c.quotation.policy).hasCoveragesEdited,s=n.quotes,!!a||!!s.filter(function(e){var t=e.providerCode,o=e.quotation.package;return r.includes(t)&&l.includes(o)}).length)}},tu=function(e){var t=e.handlerToggleModal,o=e.show,n=td(),i=n.applyFilter,a=n.isDefaultFilter,s=(0,r.jsx)(eN.Z,{fill:e9.CLOSE.FILL}),l=(0,r.jsxs)(r.Fragment,{children:["Los filtros de"," ",(0,r.jsx)("b",{className:tt.BOLDER.CLASS_NAMES,style:tt.BOLDER.INLINE_STYLE,children:"Deducibles"})," ","y"," ",(0,r.jsx)("b",{className:tt.BOLDER.CLASS_NAMES,style:tt.BOLDER.INLINE_STYLE,children:"Coberturas"})," ","solo se aplicar\xe1n en cotizaciones de HDI con cobertura Amplia"]});return(0,r.jsx)("div",{children:(0,r.jsx)(em.Z,{onClose:t,show:o,position:e8.LEFT_POSITION,title:e8.TITLE,closeImage:s,styles:e8.STYLES_CONFIGURATION,children:(0,r.jsxs)("form",{onSubmit:function(e){e&&e.preventDefault(),t(),i()},className:"p-30px",children:[(0,r.jsx)("p",{className:tt.CLASS_NAMES,style:tt.INLINE_STYLE,children:l}),(0,r.jsxs)("div",{className:to.MARGIN_BUTTOM_SEPARATOR,children:[(0,r.jsx)("h4",{className:e7.H4.CLASS_NAMES,style:e7.H4.INLINE_STYLE,children:e7.DEDUCTIBLES}),(0,r.jsxs)("div",{className:to.PRIMARY_FORM_GROUP,children:[(0,r.jsx)("label",{className:te.CLASS_NAMES,style:te.INLINE_STYLE,children:e4.TITLE}),(0,r.jsx)(eP.Z,{list:e4.DEDUCTIBLES,width:to.WIDTHS.MEDIUM,height:tn.HEIGHT,text:tn.CLASS_NAMES_FOR_CONTENT_TEXT,topClass:tn.TOP_CLASS_NAMES,id:e4.REDUX_STORE_KEY,section:tn.SECTION,styles:tn.STYLES_CONFIGURATION,placeholder:to.SYMBOLS.PERCENT})]}),(0,r.jsxs)("div",{className:to.FORM_GROUP,children:[(0,r.jsx)("label",{className:te.CLASS_NAMES,style:te.INLINE_STYLE,children:e2.TITLE}),(0,r.jsx)(eP.Z,{list:e2.DEDUCTIBLES,width:to.WIDTHS.MEDIUM,height:tn.HEIGHT,text:tn.CLASS_NAMES_FOR_CONTENT_TEXT,topClass:tn.TOP_CLASS_NAMES,id:e2.REDUX_STORE_KEY,section:tn.SECTION,styles:tn.STYLES_CONFIGURATION,placeholder:to.SYMBOLS.PERCENT})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:e7.H4.CLASS_NAMES,style:e7.H4.INLINE_STYLE,children:e7.COVERAGES}),(0,r.jsxs)("div",{className:to.PRIMARY_FORM_GROUP,children:[(0,r.jsx)("label",{className:te.CLASS_NAMES,style:te.INLINE_STYLE,children:e3.TITLE}),(0,r.jsx)(eP.Z,{list:e3.DEDUCTIBLES,width:to.WIDTHS.LARGE,height:tn.HEIGHT,text:tn.CLASS_NAMES_FOR_CONTENT_TEXT,topClass:tn.TOP_CLASS_NAMES,id:e3.REDUX_STORE_KEY,section:tn.SECTION,styles:tn.STYLES_CONFIGURATION,placeholder:to.SYMBOLS.CURRENCY})]}),(0,r.jsxs)("div",{className:to.FORM_GROUP,children:[(0,r.jsx)("label",{className:te.CLASS_NAMES,style:te.INLINE_STYLE,children:e5.TITLE}),(0,r.jsx)(eP.Z,{list:e5.DEDUCTIBLES,width:to.WIDTHS.LARGE,height:tn.HEIGHT,text:tn.CLASS_NAMES_FOR_CONTENT_TEXT,topClass:tn.TOP_CLASS_NAMES,id:e5.REDUX_STORE_KEY,section:tn.SECTION,styles:tn.STYLES_CONFIGURATION,placeholder:to.SYMBOLS.CURRENCY})]})]}),(0,r.jsx)(T.Z,{disabled:a,title:e6.TITLE,type:e6.SUBMIT_TYPE,className:e6.CLASS_NAMES,style:e6.INLINE_STYLE})]})})})};tu.propTypes={handlerToggleModal:u().func.isRequired,show:u().bool.isRequired};var tp=o(6434),tx=o(4040),tf=o(8614),th=o(9817),tv=o(6503),tm=function(e){var t,o,l,c,d,u,v,C,b,g=e.editQuoteTexts,y=e.modal,w=e.styles,j=e.showModal,S=e.toggleModal,E=(0,tf.Z)(),N=(0,x.I0)(),L=(0,x.oR)(),M=(0,eF.Z)(),k=(0,x.v9)(function(e){return e.quotation}),q=(0,x.v9)(function(e){return e.quotation.editPayload}),A=(0,a._)((0,p.useState)([]),2),O=A[0],D=A[1],R=(0,a._)((0,p.useState)([]),2),P=R[0],F=R[1],Z=(0,a._)((0,p.useState)(!1),2),H=Z[0],B=Z[1],V=(0,a._)((0,p.useState)(!1),2),Y=V[0],U=V[1],J=(0,a._)((0,p.useState)(!1),2),Q=J[0],G=J[1],z=(0,a._)((0,p.useState)(!1),2),W=z[0],X=z[1],$=(0,th.Z)().searchVehicle,K="editPayload",ee=function(e){var t=L.getState(),o=(0,eZ.ej)(t,e);M.updateCart(o)},et=(t=(0,n._)(function(e){return(0,s.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,$(e)];case 1:return D(t.sent()),X(!0),[3,3];case 2:return t.sent(),X(!0),console.warn("Vehicles list service had an error"),[3,3];case 3:return[2]}})}),function(e){return t.apply(this,arguments)}),eo=function(e){var t=e.replace(/ /g,"");if(t.length<m.Ue)return!1;var o=new Date,n=t.split("/"),i=new Date(+n[2],n[1]-1,+n[0]),a=o.getFullYear()-i.getFullYear();return a>=m.G3&&a<=m.w_},en=(o=(0,n._)(function(e){var t,o,n,i;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,4,,5]),t="client",o="mapfre",[4,tv.ZP.catalog.verifyPostalCode(e,o)];case 1:if((n=a.sent()).error)return[3,3];return X(!1),[4,tv.ZP.catalog.getPostalLocation(e,o)];case 2:Object.keys(i=a.sent()).length&&(N((0,I.xJ)("vehicle","insurers",n.supportedInsurers)),N((0,I.xJ)(t,"neighborhoodId",i.neighborhoods[0].id)),N((0,I.xJ)(t,"colony",i.neighborhoods[0].name)),N((0,I.xJ)(t,"neighborhoods",i.neighborhoods)),N((0,I.xJ)(t,"state",i.stateName)),N((0,I.xJ)(t,"city",i.cityName))),a.label=3;case 3:return[2,n];case 4:return a.sent(),N((0,_.dk)("withoutQuotes",!0)),N((0,_.dk)("errorCode",h.errorCodes.CP_INVALID)),X(!0),console.warn("Zip code does not exists or verify zip code service had an error"),[2,{}];case 5:return[2]}})}),function(e){return o.apply(this,arguments)}),ei=(l=(0,n._)(function(e){var t,o;return(0,s.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,tv.ZP.catalog.listModels(e)];case 1:return(null==(o=n.sent())?void 0:o.length)>0&&(X(!1),F(o.sort(function(e,t){return e.name-t.name})),t=o),[3,3];case 2:return n.sent(),X(!0),F([]),t=[],[3,3];case 3:return[2,t]}})}),function(e){return l.apply(this,arguments)}),ea=function(){ei(k.vehicle.subbrandId),Object.keys(q).map(function(e){return N((0,I.xJ)(K,e,""))})},es=function(e){var t;
1return g.fields.forEach(function(o){if(o.name===e){var n,i,a;t=(null==o?void 0:null===(n=o.Autofill)||void 0===n?void 0:n.errorMessage)||(null==o?void 0:null===(i=o.Dropdown)||void 0===i?void 0:i.errorMessage)||(null==o?void 0:null===(a=o.InputText)||void 0===a?void 0:a.errorMessage)}}),t},er=function(e){var t=es(e);E.addFormError(t)},el=function(e){var t=es(e);E.removeFormError(t)},ec=function(e){N((0,I.xJ)(m.a$,m.Fy,e===m.d9?m.G7:e)),N((0,I.xJ)(m.a$,m.Hv,e===m.d9?e:m.aD))},ed=(c=(0,n._)(function(e){var t,o,n,i;return(0,s.Jh)(this,function(a){switch(a.label){case 0:switch(o=(t=e.target).value,n=t.name,B(!0),n){case"subbrand":return[3,1];case"model":return[3,3];case"birthdate":return[3,4];case"gender":return[3,5]}return[3,6];case 1:return[4,ei(o.id)];case 2:return i=a.sent().find(function(e){return e.name===k.vehicle.model}),N((0,I.xJ)(K,"brandId",o.brandId)),N((0,I.xJ)(K,"subbrand",o.name)),N((0,I.xJ)(K,"subbrandId",o.id)),el(n),i?(N((0,I.xJ)(K,"model",i.name)),N((0,I.xJ)(K,"modelId",i.id))):er("model"),U(!0),[3,7];case 3:return N((0,I.xJ)(K,"model",o.name)),N((0,I.xJ)(K,"modelId",o.id)),U(!0),el("subbrand"),el(n),[3,7];case 4:return eo(o)?(N((0,I.xJ)(K,n,o)),el(n)):er(n),[3,7];case 5:return ec(o),[3,7];case 6:N((0,I.xJ)(K,n,o)),a.label=7;case 7:return[2]}})}),function(e){return c.apply(this,arguments)}),eu=(d=(0,n._)(function(){return(0,s.Jh)(this,function(e){return Object.keys(q).forEach(function(e){if(""===q[e])switch(e){case"subbrand":N((0,I.xJ)(K,"brandId",k.vehicle.brandId)),N((0,I.xJ)(K,"subbrand",k.vehicle.subbrand)),N((0,I.xJ)(K,"subbrandId",k.vehicle.subbrandId));break;case"model":N((0,I.xJ)(K,"model",k.vehicle.model)),N((0,I.xJ)(K,"modelId",k.vehicle.modelId));break;case"postalCode":N((0,I.xJ)(K,"postalCode",k.client.postalCode));break;case"gender":N((0,I.xJ)(K,"gender",k.client.gender));break;case"birthdate":N((0,I.xJ)(K,"birthdate",k.client.birthdate))}}),[2]})}),function(){return d.apply(this,arguments)}),ep=(u=(0,n._)(function(e,t){var o;return(0,s.Jh)(this,function(n){return q[e]&&q[e]!==k[t][e]&&(o="birthdate"===e?q[e].replace(/ /g,""):q[e],N((0,I.xJ)(t,e,o))),[2]})}),function(e,t){return u.apply(this,arguments)}),ex=(v=(0,n._)(function(){var e;return(0,s.Jh)(this,function(t){return e=["gender","birthdate","postalCode"],Object.keys(q).map(function(t){var o=e.find(function(e){return t===e});return ep(t,o?"client":"vehicle")}),[2]})}),function(){return v.apply(this,arguments)}),ef=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};N((0,I.Yd)(e,t))},eh=function(e){N((0,I.yW)(e))},ev=function(){N((0,I.xJ)("policy","compensationValue","commercial")),N((0,I.xJ)("vehicle","invoice",{}))},eC=function(e,t){N((0,_.dk)(e,t))},eb=(C=(0,n._)(function(){var e,t,o,n,r,l,c,d,u,p,x,f,v,m,C;return(0,s.Jh)(this,function(s){switch(s.label){case 0:if(e=L.getState(),N((0,_.dk)("withoutQuotes",!1)),t=(0,eB.DF)(e.quotation.vehicle.versions,e.quotation.vehicle.version),o=e.quotation.vehicle.insurers,!Y)return[3,2];return n=e.quotation.editPayload.model,"invoice"!==e.quotation.policy.compensationValue||""!==n&&n>=new Date(Date.now()).getFullYear()-tx.P5||ev(),[4,tv.ZP.catalog.listVersions(q.modelId)];case 1:r=s.sent().filter(function(e){return e.name}),t=(0,a._)(r,1)[0],N((0,I.xJ)("vehicle","versions",r)),N((0,I.xJ)("vehicle","version",t.name)),U(!1),s.label=2;case 2:return[4,en(q.postalCode)];case 3:l=s.sent();try{o=t.supportedInsurers.filter(function(e){return l.supportedInsurers.includes(e)})}catch(e){throw N((0,_.dk)("withoutQuotes",!0)),N((0,_.dk)("errorCode",h.errorCodes.CP_INVALID)),Error(e)}if(N((0,I.xJ)("vehicle","insurers",o)),!(!W&&o.length>0))return[3,8];v=(e=L.getState()).quotation,m=(0,i._)({cartId:e.cart.cartId,store:{quotationStep:null===(c=e.utils)||void 0===c?void 0:c.quotationStep,emissionStep:null===(d=e.utils)||void 0===d?void 0:d.emissionStep,modelId:null===(p=e.quotation)||void 0===p?void 0:null===(u=p.vehicle)||void 0===u?void 0:u.modelId,subbrandId:null===(f=e.quotation)||void 0===f?void 0:null===(x=f.vehicle)||void 0===x?void 0:x.subbrandId}},v),s.label=4;case 4:return s.trys.push([4,6,,7]),[4,(0,eZ.mJ)(m,o,ef,eh,ee,eC,t.id)];case 5:return s.sent(),[3,7];case 6:return C=s.sent(),(0,eH.Z)(C),N((0,_.dk)("withoutQuotes",!0)),[3,7];case 7:return[3,9];case 8:console.warn("Not supported insurers for this vehicle/zip code"),s.label=9;case 9:return[2]}})}),function(){return C.apply(this,arguments)}),eg=(b=(0,n._)(function(){return(0,s.Jh)(this,function(e){switch(e.label){case 0:return G(!1),N((0,_.dk)("errorCode","")),N((0,_.dk)("withoutQuotes",void 0)),N((0,I.xJ)("policy","quotes",[])),S(),[4,eu()];case 1:return e.sent(),[4,ex()];case 2:return e.sent(),G(!0),[2]}})}),function(){return b.apply(this,arguments)});return(0,p.useEffect)(function(){j&&(ea(),E.setState({errors:[],validated:!0})),B(!1),G(!1)},[j]),(0,p.useEffect)(function(){k.useRedux&&ei(k.vehicle.subbrandId),Q&&eb()},[Q]),(0,r.jsx)("div",{children:(0,r.jsx)(em.Z,{onClose:function(){return S()},show:j,modal:y,className:w.modalContainer,position:w.modalPosition,children:(0,r.jsxs)("div",{className:w.modal,children:[(0,r.jsx)(f.Z,{text:g.newTitle,className:"".concat(w.title)}),(0,r.jsx)(eR.J9,{initialValues:{subBrand:"",model:"",postalCode:"",gender:"",birthdate:""},onSubmit:function(){eg()},children:(0,r.jsxs)(eR.l0,{children:[g.newFields.map(function(e){return(0,r.jsxs)("div",{className:w.formContainer,children:[e.Autofill&&(0,r.jsx)(tp.Z,{className:w.mxAuto,inputClass:"".concat(w.dropdown," ").concat(w.paddingLeft16px),name:e.Autofill.name,validated:!0,label:e.Autofill.label,list:O,placeholder:e.Autofill.placeholder,errorMessage:e.Autofill.errorMessage,errorMessageClass:w.errorMessageAutofill,dataFn:function(e){return et(e)},getModels:function(e){return ei(e)},id:e.Autofill.id,type:e.Autofill.type,section:e.Autofill.section,value:k[e.Autofill.section][e.Autofill.name],labelStyle:w.paddingLeft16px,isModal:!0,noRedux:!0,onChangeFunc:ed,styles:null==w?void 0:w.inputAutofill,isNewInput:!0,messageEmptyList:m.Df}),e.InputText&&(0,r.jsx)(eQ.Z,{name:e.InputText.name,validated:!0,label:e.InputText.label,placeholder:e.InputText.placeholder,errorMessage:e.InputText.errorMessage,i
1d:e.InputText.id,type:e.InputText.type,section:e.InputText.section,inputClass:"".concat(w.inputClass," ").concat(w.paddingLeft16px),inputTextClass:"".concat(e.isPair?"".concat(w.dropdown," ").concat(w.marginLeft26px):"".concat(w.dropdown)),showLabel:!0,errorMessageClass:w.errorMessageInput,inputLabelClass:w.marginLeft16px,isFullName:!0,pattern:e.InputText.pattern,value:k[e.InputText.section][e.InputText.name],onChangeFunc:ed,isNewInput:!0,length:e.InputText.length},"".concat(e.section,"-").concat(e.name)),e.Dropdown&&(0,r.jsx)(eP.Z,{list:e.Dropdown.name===g.nameModel?P:e.Dropdown.mockGender,height:w.height48px,text:w.text16px,id:e.Dropdown.id,topClass:w.paddingLeft16px,wrapperClass:"".concat(e.isPair?"".concat(w.dropdown," ").concat(w.marginLeft26px):"".concat(w.dropdown)),labelClass:w.hidden,label:e.Dropdown.label,section:e.Dropdown.section,name:e.Dropdown.name,noRedux:!0,onChangeFunc:ed,styles:w.dropdownStyles,isNewInput:!0,errorMessage:e.Dropdown.errorMessage})]},e.name)}),(0,r.jsx)(T.Z,{title:g.newButtonTextModal,active:!0,className:"".concat(w.buttonModalStyles," ").concat(g.buttonAnalytics.customClass),type:"submit",analytics:g.buttonAnalytics,disabled:!(E.state.validated&&H)})]})})]})})})};tm.defaultProps={editQuoteTexts:{},modal:{},styles:{}},tm.propTypes={editQuoteTexts:u().objectOf(d.any),modal:u().objectOf(d.any),styles:u().objectOf(d.any),showModal:u().bool.isRequired,toggleModal:u().func.isRequired};var tC=o(9595),tb={modalContainer:"bg-grayScaleColor-white min-h-45pct desktop:h-33pct border-2 border-grayScaleColor-10 rounded-10px",modalPosition:"bottom",container:"flex flex-col items-center justify-center w-full relative pt-24px py-24px pb-24px",labelContainer:"mb-40px flex flex-col items-center justify-center desktop:block",controlContainer:"flex flex-col desktop:flex-row desktop:justify-between w-327px desktop:w-628px",labels:{title:"font-secondaryFont w-327px text-18px text-center desktop:text-left text-grayScaleColor-500 mb-16px",label:"font-secondaryFont w-327px desktop:w-628px text-16px text-center desktop:text-left text-grayScaleColor-500"},input:{label:"font-tertiaryFont text-grayScaleColor-300",labelError:"font-tertiaryFont text-statusColor-error",errorClass:"-mt-20px ml-16px",input:"rounded-4px font-light text-16px focu
1s:outline-none border font-secondaryFont text-grayScaleColor-100 bg-grayScaleColor-10 placeholder-grayScaleColor-100 border-grayScaleColor-50",inputError:"font-light rounded-4px text-16px bg-opacity-5 focus:outline-none border font-secondaryFont text-statusColor-error bg-statusColor-error placeholder-statusColor-error border-statusColor-error",loaderColor:"bg-primaryColor-600",textClass:"",inputClass:"w-327px desktop:w-307px h-48px mb-20px text-14px p-16px"},button:{class:"w-327px desktop:w-307px h-48px focus:outline-none rounded-10px mt-12px desktop:mt-0",activeClass:"bg-primaryColor-600 text-grayScaleColor-white"}},tg={title:"\xbfQuieres un descuento a\xfan mayor?",label:"Ingresa tu promocode y obt\xe9n el mejor descuento que tenemos para tu cotizaci\xf3n:",button:{title:"Aplicar promocode",type:"submit"},input:{id:"promoCode",placeholder:"Promocode",type:"text",pattern:"^[a-zA-Z0-9]*$",section:"policy"},error:{validationMessage:"El c\xf3digo de descuento no es v\xe1lido"},promoCode:{section:"policy",field:"promoCode"}},ty=o(6806),tw=function(e){return/^promocode$/i.test(e)},tj=function(e,t){var o="PROMOCODE",n="";return e.forEach(function(e){tw(e.split("=")[0])?""===n?n+="".concat(o,"=").concat(t):n+="&".concat(o,"=").concat(t):""===n?n+=e:n+="&".concat(e)}),n},tS=function(e,t){var o=e.query,n=e.asPath,i=Object.keys(o).find(tw),a=n.split("?"),s=a[1].split("&");i||s.unshift("PROMOCODE");var r=tj(s,t);return"".concat(a[0],"?").concat(r)},tT=o(7410),tE=function(e){var t,o,l=e.showModal,c=e.toggleModal,d=e.modal,u=e.reQuoteFunc,f=(0,b.useRouter)(),h=(0,a._)((0,p.useState)(!1),2),v=h[0],m=h[1],C=(0,x.v9)(function(e){return e.quotation}),g=(0,x.v9)(function(e){var t;return null===(t=e.utils)||void 0===t?void 0:t.queryParams}),y=(0,tf.Z)(),w=(0,x.I0)(),j=(0,x.oR)(),S=(0,eF.Z)(),E=C.policy.promoCode,N=C.vehicle.insurers,L=tC.frequencyPaymentCodes.filter(function(e){return e===R.jC.cash.code}),k=tC.frequencyPaymentCodes.filter(function(e){return e!==R.jC.cash.code}),q=function(){m(!1),c()},A=function(e){var t=j.getState(),o=(0,eZ.ej)(t,e);S.updateCart(o)},O=function(e){w((0,I.yW)(e))},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=C.policy.selectedQuotation;w((0,I.Yd)(e,t)),o&&t&&o.providerCode===e&&w((0,I.xJ)("policy","selectedQuotation",{quotation:t,providerCode:e}))},P=function(e,t){w((0,_.dk)(e,t))},F=function(e){w((0,I.xJ)("policy","validity",e))},Z=function(e){w((0,I.xJ)("policy","paymentFrequency",e))},H=function(e){w((0,_.dk)("displayLoader",e))},B=(t=(0,n._)(function(e){var t,o,n,a,r,l,c,d,p,x,f,h,v,m,b;return(0,s.Jh)(this,function(s){switch(s.label){case 0:t=e.promoCode,o=e.activeMultiannual,n=e.onlyCashPayment,x=j.getState(),w((0,_.dk)("withoutQuotes",!1)),f=o?"two-years":"one-year",h=n?L[ty.$C]:k[ty.$C],F(f),Z(h),v=(0,eB.Yn)(x.quotation.vehicle.versions,x.quotation.vehicle.version),m=(0,M._)((0,i._)({cartId:x.cart.cartId,store:{quotationStep:null===(a=x.utils)||void 0===a?void 0:a.quotationStep,emissionStep:null===(r=x.utils)||void 0===r?void 0:r.emissionStep,modelId:null===(c=x.quotation)||void 0===c?void 0:null===(l=c.vehicle)||void 0===l?void 0:l.modelId,subbrandId:null===(p=x.quotation)||void 0===p?void 0:null===(d=p.vehicle)||void 0===d?void 0:d.subbrandId}},C),{policy:(0,M._)((0,i._)({},C.policy),{promoCode:t,paymentFrequency:h,validity:f})}),w({type:"RESET_ONLYQUOTATION"}),s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,u(m,N,D,O,A,P,v)];case 2:return s.sent(),[3,5];case 3:return b=s.sent(),(0,eH.Z)(b,"All insurer quotes errored"),w((0,_.dk)("withoutQuotes",!0)),[3,5];case 4:return H(!1),[7];case 5:return[2]}})}),function(e){return t.apply(this,arguments)}),V=function(e){var t=window.location.host,o="https://".concat(t,"/?PROMOCODE=").concat(e);return(0,M._)((0,i._)({},g),{PROMOCODE:e,url:o})},Y=function(e,t){w((0,I.xJ)(tg.promoCode.section,tg.promoCode.field,e)),w((0,I.xJ)("beneficiary","hasFinancing",(null==t?void 0:t.isFinancial)?"Si":"No")),w((0,_.jg)(t)),w((0,_.dk)("queryParams",V(e))),(0,tT.ym)(null==t?void 0:t.partnerCode)},U=(o=(0,n._)(function(e){var t,o;return(0,s.Jh)(this,function(n){switch(n.label){case 0:if(e!==E)return[3,1];return q(),[3,3];case 1:return[4,tv.ZP.quotation.promocodeData(e)];case 2:(t=n.sent()).error?m(!0):(t.promoCode=e,Y(e,t),B(t),(o=tS(f,e))&&window.history.replaceState({},"",o),q()),n.label=3;case 3:return[2]}})}),function(e){return o.apply(this,arguments)});return(0,r.jsx)("div",{children:(0,r.jsx)(em.Z,{onClose:function(){return q()},show:l,modal:d,className:tb.modalContainer,position:tb.modalPosition,children:(0,r.jsxs)("div",{className:tb.container,children:[(0,r.jsxs)("div",{className:tb.labelContainer,children:[(0,r.jsx)("p",{className:tb.labels.title,children:tg.title}),(0,r.jsx)("p",{className:tb.labels.label,children:tg.label})]}),(0,r.jsx)("div",{children:(0,r.jsx)(eR.J9,{initialValues:{promoCode:""},onSubmit:function(e,t){var o=t.setSubmitting,n=e.promoCode;setTimeout(function(){o(!1)},1e3),m(!1),U(n)},children:function(e){var t=e.handleChange,o=e.handleBlur,n=e.handleSubmit;return(0,r.jsxs)("form",{onSubmit:n,className:tb.controlContainer,children:[(0,r.jsx)(eQ.Z,{placeholder:tg.input.placeholder,name:tg.input.id,inputClass:tb.input.inputClass,showLabel:!0,type:tg.input.type,pattern:tg.input.pattern,id:tg.input.id,errorMessageClass:tb.input.errorClass,section:tg.input.section,styles:tb.input,formErrorHandler:y,overrideStyles:!0,isNewInput:!0,error:v,errorMessage:tg.error.validationMessage,onBlurFunc:o,onChangeFunc:t}),(0,r.jsx)(T.Z,{title:tg.button.title,active:!0,className:tb.button.class,activeClass:tb.button.activeClass,type:tg.button.type})]})}})})]})})})};tE.propTypes={showModal:u().bool.isRequired,toggleModal:u().func.isRequired,modal:u().objectOf(d.any).isRequired,reQuoteFunc:u().func.isRequired};var tN=function(){return(0,r.jsxs)("svg",{width:"18",height:"10",viewBox:"0 0 18 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M1 1H17",stroke:"#5C7284",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M4 5H14",stroke:"#5C7284",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M6 9H12",stroke:"#5C7284",strokeLinecap:"round"})]})},tI={TEXT:"Eliminar filtros",CLASS_NAMES:"font-secondaryFont text-primaryColor-600 ml-7px",INLINE_STYLE:{fontWeight:400,lineHeight:"24px"}},t_={DISPLAY_FLEX:"flex",DISABLED:"opacity-50 cursor-not-allowed",EMPTY:"",WIDTH:{LARGE:"w-159px",MEDIUM:"w-50px"}},tL=function(e){var t=e.handlerToggleModal,o=e.hasCoveragesEdited,n=e.isPrinting,i=td().removeFilter,a=n?t_.DISABLED:t_.EMPTY,s=o?t_.WIDTH.LARGE:t_.WIDTH.MEDIUM,l=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eq,{})," ",(0,r.jsx)("p",{className:tI.CLASS_NAMES,style:tI.INLINE_STYLE,children:tI.TEXT})]}),c="".concat("ml-8px h-45px text-16px bg-grayScaleColor-white rounded-4px border border-grayScaleColor-50 flex justify-center items-center"," ").concat(s," ").concat(a),d=o?l:(0,r.jsx)(tN,{});return(0,r.jsx)("div",{className:t_.DISPLAY_FLEX,children:(0,r.jsx)("button",{type:"button",disabled:n,className:c,onClick:o?i:t,children:d})})};tL.propTypes={handlerToggleModal:u().func.isRequired,hasCoveragesEdited:u().bool.isRequired,isPrinting:u().bool.isRequired};var tM=o(3012),tk=function(){var e,t=(0,x.v9)(function(e){return e.quotation}),o=(0,x.v9)(function(e){return e.cart}),i=(0,x.v9)(function(e){return e.currentPackage}),r=(0,a._)((0,p.useState)(!1),2),l=r[0],c=r[1],d=(0,x.I0)(),u=function(){return t.policy.quotes.filter(function(e){return e.quotation.package===i})},f=t.client,h=f.birthdate,v=f.gender,m=f.postalCode,C=f.fiscalRegime,b=t.vehicle,g=b.model,y=b.version,w=b.subbrand,j=b.brand,S=t.policy,T=S.compensationValue,E=S.validity,N=window.location.origin,I=o.quote.policy.promocode,L=u().length>0,M={birthdate:h,gender:v,postalCode:m,compensationValue:T,host:N,promocode:I,fiscalRegime:C,validity:E,currentPackage:i,vehicle:{model:Number(g),versions:[{name:y}],brandName:j,subBrandName:w},quotes:u()};return{generatePdf:(e=(0,n._)(function(){return(0,s.Jh)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),c(!0),d((0,_.dk)("isPrinting",!0)),[4,(0,tM.Z)(M)];case 1:return e.sent(),[3,4];case 2:return console.error(e.sent()),[3,4];case 3:return setTimeout(function(){c(!1),d((0,_.dk)("isPrinting",!1))},2e3),[7];case 4:return[2]}})}),function(){return e.apply(this,arguments)}),isPrinting:l,currentPackageHasQuotes:L}},tq=function(e){var t=e.className,o=e.iconClass,n=e.textClass,i=e.iconComponent,a=e.text,s=e.clickFunction,l=e.disabled,c="".concat(t," ").concat(l?"opacity-50 cursor-not-allowed":"");return(0,r.jsxs)("button",{type:"button",className:c,onClick:function(){return s()},disabled:l,children:[(0,r.jsx)("div",{className:o,children:i}),(0,r.jsx)("p",{className:n,children:a})]})};tq.defaultProps={className:"",iconClass:"",textClass:"",text:"",clickFunction:function(){},iconComponent:null,disabled:!1},tq.propTypes={className:u().string,iconClass:u().string,textClass:u().string,text:u().string,iconComponent:u().objectOf(d.any),click
1Function:u().func,disabled:u().bool};var tA=function(e){var t,o,i=e.styles,l=e.modal,c=e.editQuoteTexts,d=e.quotationBarTexts,u=e.advancedSettingsTexts,f=e.editVersionPayMobileTexts,h=e.showInvoiceValue,v=(0,x.oR)(),m=(0,ei.Z)(),C=(0,x.I0)(),b=(0,a._)((0,p.useState)(!1),2),g=b[0],y=b[1],w=(0,x.v9)(function(e){return e.utils.oneQuoteWasResolved}),j=(0,a._)((0,p.useState)(!1),2),S=j[0],T=j[1],E=(0,a._)((0,p.useState)(!1),2),N=E[0],L=E[1],M=(0,a._)((0,p.useState)(!1),2),k=M[0],q=M[1],A=(0,a._)((0,p.useState)(!1),2),O=A[0],D=A[1],P=(0,a._)((0,p.useState)(!1),2),F=P[0],Z=P[1],H=(0,a._)((0,p.useState)(!1),2),B=H[0],V=H[1],Y=(0,x.v9)(function(e){return e.quotation.policy.promoCode}),U=(0,x.v9)(function(e){return e.quotation.vehicle.versions}),J=(0,x.v9)(function(e){return e.utils.promocodeData.activeMultiannual}),Q=(0,x.v9)(function(e){return e.utils.promocodeData.onlyCashPayment}),G=(0,x.v9)(function(e){return e.cart.quote.policy.compensationValue}),z=(0,x.v9)(function(e){return e.utils.coverageSelectorWarning}),W=(0,x.v9)(function(e){return e.quotation.policy.package}),X=(0,x.v9)(function(e){return e.quotation.policy.hasCoveragesEdited}),$=tk(),K=$.generatePdf,ee=$.isPrinting,et=$.currentPackageHasQuotes,eo=td(),ea=eo.removeFilter,es=eo.isEnableDeductibleEdition,er={EditIcon:eY.Z,PercentIcon:eU,VehicleIcon:eJ},el=(0,en.Z)();(0,p.useEffect)(function(){y(w)},[w]),(0,p.useEffect)(function(){var e=(0,a._)(U||[],1)[0];V((null==e?void 0:e.type)===tr.ee.PICKUP)},[U]),(0,p.useEffect)(function(){J&&ea()},[J]);var ec=function(){var e;return(null==el?void 0:null===(e=el.queryParams)||void 0===e?void 0:e.promocode)!==(null==d?void 0:d.promocodeToDisableEdition)},ed=function(){ec()&&T(!S)},eu=function(){L(!N)},ep=function(){q(!k)},ex=function(){D(!O)},ef=function(){return Z(!F)},eh=function(e,t){C((0,_.dk)(e,t))},ev=function(e){C((0,_.dk)("displayLoader",e))},em=(t=(0,n._)(function(){var e,t,o,n,i,a;return(0,s.Jh)(this,function(s){switch(s.label){case 0:return C((0,_.dk)("withoutQuotes",!1)),ev(!0),e=v.getState(),C((0,I.xJ)(e$.FY,"compensationValue","commercial")),C((0,I.E_)()),[4,m.dispatchVersions(e.quotation.vehicle.modelId)];case 1:return s.sent(),[4,m.dispatchPostalLocationData(e.quotation.client.postalCode)];case 2:return s.sent(),[4,m.getInfoForResolveQuotations(!0)];
1case 3:o=(t=s.sent()).payload,n=t.providerCodes,i=t.versionId,J&&(C((0,I.xJ)(e$.FY,e$.oF,R.Hg.twoYears.code)),o.policy.validity=R.Hg.twoYears.code),Q&&(o.policy.paymentFrequency=R.jC.cash.code),o.policy.compensationValue="commercial",s.label=4;case 4:return s.trys.push([4,6,7,8]),[4,(0,eZ.mJ)(o,n,m.dispatchQuotationData,m.removeQuotationData,m.dispatchCartData,eh,i)];case 5:return s.sent(),[3,8];case 6:return a=s.sent(),(0,eH.Z)(a),C((0,_.dk)("withoutQuotes",!0)),[3,8];case 7:return ev(!1),[7];case 8:return[2]}})}),function(){return t.apply(this,arguments)}),eC=function(e){var t=U.length>0,o=d.bar.paymentList;switch(e){case"version":return t?U:[];case"paymentFrequency":if(Q)return o.filter(function(e){return e.name===R.jC.cash.name});return o.filter(function(e){return e.name!==R.jC.cash.name});case"validity":return d.bar.validityList;default:return[]}},eb=function(e){var t=er[e.name];return(0,r.jsx)(t,{height:e.height,width:e.width,fill:i.newSeeQuoteQuoteBar.iconOff,stroke:e.iconStroke})},eg=function(){y(!1),C((0,_.dk)("coverageSelectorWarning",!1))},ey=function(e){V(e.type===tr.ee.PICKUP)},ew=function(){return ee?"opacity-50 cursor-not-allowed":""},ej=function(){return!w||ee||!et};return(0,r.jsxs)("div",{children:[B&&(0,r.jsx)(eD,{handleClose:function(){return V(!1)}}),w&&g&&(0,r.jsx)("div",{className:"content-start ml-0 absolute w-full max-w-992 z-50",children:(0,r.jsx)(e_,{successMessage:"invoice"===G?"Se cotiz\xf3 con valor factura exitosamente":"Se cotiz\xf3 con valor comercial exitosamente",handlerHidden:eg})}),z&&(0,r.jsx)("div",{className:"content-start ml-0 absolute w-full max-w-992 z-50",children:(0,r.jsx)(eL,{warningMessage:"liability"===W?"No hay ofertas disponibles valor factura para la cobertura responsabilidad civil":"third-party"===W?"No hay ofertas disponibles valor factura para la cobertura limitada":"No hay ofertas disponibles valor factura para la cobertura amplia",handlerHidden:eg})}),(0,r.jsxs)("div",{className:"flex flex-col py-19px z-40 text-12px tablet:text-14px justify-between bg-grayScaleColor-white px-24px desktop:px-0",children:[(0,r.jsxs)("div",{className:"flex h-40px",children:[(0,r.jsx)("div",{className:"relative hidden tablet:flex desktop:flex",children:(0,r.jsx)(tq,{className:"w-168px h-36px rounded-10px border border-grayScaleColor-50 outline-primaryColor-600 bg-grayScaleColor-white",iconClass:"absolute top-4px left-8px w-25px h-25px bg-grayScaleColor-white rounded-full flex justify-center items-center",textClass:"text-grayScaleColor-300 truncate text-14px text-right font-secondaryFont font-light mr-16px",text:d.bar.editQuote,iconComponent:eb(d.inputs.vehicle.icon),clickFunction:function(){return eu()},disabled:ee})}),(0,r.jsx)("div",{className:"relative ml-18px justify-start hidden tablet:flex desktop:flex",children:(0,r.jsx)(tq,{className:"w-200px h-36px rounded-10px border border-grayScaleColor-50 outline-primaryColor-600 bg-grayScaleColor-white pl-10",iconClass:"absolute top-4px left-8px w-25px h-25px bg-grayScaleColor-white rounded-full flex justify-center items-center",textClass:"text-grayScaleColor-300 truncate text-14px text-left font-secondaryFont font-light mr-16px",text:Y||d.promoCode.defaultText,iconComponent:eb(d.inputs.promocode.icon),clickFunction:function(){return ed()},disabled:ee})}),(0,r.jsx)("div",{className:"relative flex tablet:hidden desktop:hidden",children:(0,r.jsx)(tq,{className:"w-168px desktop:w-168px h-36px rounded-10px border border-grayScaleColor-50 outline-primaryColor-600 bg-grayScaleColor-white",iconClass:"absolute top-4px left-8px w-25px h-25px bg-grayScaleColor-white rounded-full flex justify-center items-center",textClass:"text-grayScaleColor-300 truncate text-14px text-right font-secondaryFont font-light mr-16px",text:d.bar.editQuote,iconComponent:eb(d.inputs.vehicle.icon),clickFunction:function(){return eu()},disabled:ee})}),(0,r.jsx)("button",{type:"button",className:"w-168px h-36px rounded-10px border border-grayScaleColor-50 outline-primaryColor-600 bg-grayScaleColor-white text-grayScaleColor-300 truncate text-14px text-center font-secondaryFont font-light ml-18px ".concat(ej()?"opacity-50 cursor-not-allowed":""),disabled:ej(),onClick:K,children:"Imprimir cotizaci\xf3n"})]}),(0,r.jsxs)("div",{className:"flex mt-4",children:[d.inputs.dropdown&&(null===(o=d.inputs.dropdown)||void 0===o?void 0:o.map(function(e){return(0,r.jsxs)("div",{className:e.wrapperClass,children:[(0,r.jsx)(eP.Z,{list:eC(e.id),width:e.width,height:e.height,text:"text-14px pl-2",topClass:"top-1/4 pr-44px",id:e.id,section:e.section,reQuoteFunc:eZ.mJ,styles:i.newSeeQuoteQuoteBar.newDropdown,isNewVersion:e.isNewVersion,onChangeFunc:ey,label:e.label,isRequired:e.isRequired,disabled:ee}),(0,r.jsx)("span",{className:"w-18px hidden tablet:flex"})]},"wrapper-".concat(e.id))})),J&&(0,r.jsxs)("div",{className:d.inputs.dropdownMultiannual.wrapperClass,children:[(0,r.jsx)(eP.Z,{list:eC(d.inputs.dropdownMultiannual.id),width:d.inputs.dropdownMultiannual.width,height:d.inputs.dropdownMultiannual.height,text:"text-14px pl-2",topClass:"top-1/4 pr-44px",id:d.inputs.dropdownMultiannual.id,section:d.inputs.dropdownMultiannual.section,reQuoteFunc:eZ.mJ,styles:i.newSeeQuoteQuoteBar.newDropdown,isNewVersion:d.inputs.dropdownMultiannual.isNewVersion,isRequired:d.inputs.dropdownMultiannual.isRequired,label:d.inputs.dropdownMultiannual.label,disabled:ee}),(0,r.jsx)("span",{className:"w-18px hidden tablet:flex"})]},"wrapper-".concat(d.inputs.dropdownMultiannual.id)),(0,r.jsx)("div",{className:"flex tablet:hidden desktop:hidden",children:(0,r.jsx)("button",{type:"button",disabled:ee,className:"ml-8px w-40px h-40px bg-grayScaleColor-white rounded-4px border border-grayScaleColor-50 flex justify-center items-center ".concat(ew()),onClick:function(){return ed()},children:(0,r.jsx)(eU,{fill:i.newSeeQuoteQuoteBar.iconOff})})}),(0,r.jsx)("div",{className:"flex tablet:hidden desktop:hidden",children:(0,r.jsx)("button",{type:"button",disabled:ee,className:"ml-8px w-40px h-40px bg-grayScaleColor-white rounded-4px border border-grayScaleColor-50 flex justify-center items-center ".concat(ew()),onClick:function(){return ep()},children:(0,r.jsx)(ek.Z,{fill:i.newSeeQuoteQuoteBar.iconOff})})}),h&&("invoice"!==G&&(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)("button",{type:"button",disabled:ee,className:"ml-8px w-50px h-45px bg-grayScaleColor-white rounded-4px border border-grayScaleColor-50 flex justify-center items-center ".concat(ew()),onClick:function(){return ex()},children:(0,r.jsx)(eM,{})})})||(0,r.jsx)("div",{className:"flex",children:(0,r.jsxs)("button",{type:"button",disabled:ee,className:"ml-8px h-45px text-16px bg-grayScaleColor-white rounded-4px border border-grayScaleColor-50 flex justify-center items-center w-159px ".concat(ew()),onClick:function(){return em()},children:[(0,r.jsx)(eq,{}),(0,r.jsx)("p",{className:tI.CLASS_NAMES,style:tI.INLINE_STYLE,children:"Valor factura"})]})})),!J&&es&&(0,r.jsx)(tL,{handlerToggleModal:ef,hasCoveragesEdited:X,isPrinting:ee})]}),(0,r.jsx)(eK,{styles:i.advancedSettingsModal,copies:u,modal:l,showModal:O,toggleModal:ex,reQuoteFunc:eZ.mJ}),(0,r.jsx)(tu,{show:F,handlerToggleModal:ef}),(0,r.jsx)(tE,{modal:l,showModal:S,toggleModal:ed,reQuoteFunc:eZ.mJ}),(0,r.jsx)(tm,{styles:i.editQuoteModal,editQuoteTexts:c,modal:l,showModal:N,toggleModal:eu}),(0,r.jsx)(eV,{styles:i.editVersionPayMobile,quotationBarTexts:d,modal:l,showModal:k,toggleModal:ep,reQuoteFunc:eZ.mJ,editVersionPayMobileTexts:f})]})]})};tA.defaultProps={styles:{},quotationBarTexts:{},editQuoteTexts:{},advancedSettingsTexts:{},modal:{},editVersionPayMobileTexts:{},showInvoiceValue:!1},tA.propTypes={styles:u().objectOf(d.any),modal:u().objectOf(d.any),editQuoteTexts:u().objectOf(d.any),quotationBarTexts:u().objectOf(d.any),advancedSettingsTexts:u().objectOf(d.any),editVersionPayMobileTexts:u().objectOf(d.any),showInvoiceValue:u().bool};var tO=o(3760),tD=o(6833),tR=o(9238),tP=o(1352),tF=o(5984),tZ=o(7917),tH=o(6149),tB=function(e){return e.sort(function(e,t){return e.quotation.costs&&t.quotation.costs&&e.quotation.costs.price-t.quotation.costs.price||!e.quotation.costs-!t.quotation.costs})},tV=function(){var e,t,o,d=(0,x.oR)(),u=(0,eF.Z)(),f=(0,b.useRouter)(),h=(0,x.I0)(),g=(0,x.v9)(function(e){return e.quotation.policy.quotes}),y=(0,x.v9)(function(e){return e.quotation}),w=(0,x.v9)(function(e){return e.blackList}),S=(0,x.v9)(function(e){return e.currentPackage}),T=(0,x.v9)(function(e){return e.utils.promocodeData.partnerCode}),E=(0,x.v9)(function(e){return e.quotation.vehicle}).model,N=(0,a._)((0,p.useState)([]),2),M=N[0],k=N[1],q=(0,a._)((0,p.useState)(!1),2),A=q[0],O=q[1],D=(0,a._)((0,p.useState)(!1),2),P=D[0],F=D[1],Z=(0,a._)((0,p.useState)(tB(g)),2),H=Z[0],B=Z[1],V=(0,a._)((0,p.useState)([]),2),Y=V[0],U=V[1],J=g.length<3?g.length:3,Q=(0,x.v9)(function(e){return e.quotation}),G=(0,a._)((0,p.useState)(!1),2),z=G[0],W=G[1],X=(0,a._)((0,p.useState)(!1),2),$=X[0],K=X[1],ee=(0,ei.Z)(),et=(0,x.v9)(function(e){return e.utils.promocodeData.activeMulti
1annual}),eo=(0,x.v9)(function(e){return e.quotation.policy.hasCoveragesEdited}),ea=(0,x.v9)(function(e){return e.utils.promocodeData.onlyCashPayment}),es=(0,x.v9)(function(e){return e.utils.withoutQuotes}),er=(0,a._)((0,p.useState)(!1),2),ec=er[0],ed=er[1],eu=(0,x.v9)(function(e){return e.quotation.policy.compensationValue}),ep=l.Z.styles,ex=ep.seeQuote,ef=ep.seeQuote.NewSeeQuote,eh=l.Z.copies,ev=eh.modal,em=eh.editQuoteTexts,eb=eh.quotationBarTexts,eg=eh.insuranceInfoTexts,ey=eh.cardTexts,ew=eh.editVersionPayMobileTexts,ej=eh.pageTexts,eT=eh.benefitsTexts,eN=eh.advancedSettingsTexts,eI="guros"===ej.guros,e_=(0,en.Z)();(0,p.useEffect)(function(){F(E>=new Date(Date.now()).getFullYear()-tx.P5)},[E,et]);var eL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h((0,I.Yd)(e,t))},eM=function(e){h((0,I.yW)(e))},ek=function(e){o=d.getState();var t=(0,eZ.ej)(o,e);u.updateCart(t)},eq=function(e,t){h((0,_.dk)(e,t))},eA=(e=(0,n._)(function(){var e,t,n,a,r,l,c,u,p,x,v,C,b,g,y,w,j=arguments;return(0,s.Jh)(this,function(s){switch(s.label){case 0:if(e=j.length>0&&void 0!==j[0]&&j[0],o=d.getState(),h((0,_.dk)("withoutQuotes",!1)),n="quote-cart"===o.utils.lastPage,h((0,I.xJ)(e$.FY,e$.o4,"")),(a=(0,i._)({},Q.selectedQuotation)).providerCode="",h((0,I.xJ)(e$.FY,e$.AW,a)),(0,i._)({},Q).policy.promoCode=null===(t=f.query)||void 0===t?void 0:t.promocode,n)return[3,8];s.label=1;case 1:return s.trys.push([1,7,,8]),[4,(0,tH.Z)(Q,e)];case 2:v=s.sent(),h((0,I.xJ)(e$.a$,e$.eY,v)),C=(0,i._)({cartId:o.cart.cartId?o.cart.cartId:"",store:{quotationStep:null===(r=o.utils)||void 0===r?void 0:r.quotationStep,emissionStep:null===(l=o.utils)||void 0===l?void 0:l.emissionStep,modelId:null===(u=o.quotation)||void 0===u?void 0:null===(c=u.vehicle)||void 0===c?void 0:c.modelId,subbrandId:null===(x=o.quotation)||void 0===x?void 0:null===(p=x.vehicle)||void 0===p?void 0:p.subbrandId}},Q),et&&(h((0,I.xJ)(e$.FY,e$.oF,R.Hg.twoYears.code)),C.policy.validity=R.Hg.twoYears.code),ea&&(h((0,I.xJ)(e$.FY,m.AH,R.jC.cash.code)),C.policy.paymentFrequency=R.jC.cash.code),s.label=3;case 3:return s.trys.push([3,5,,6]),[4,(0,eZ.mJ)(C,v,eL,eM,ek,eq,e&&(null==Q?void 0:null===(b=Q.vehicle)||void 0===b?void 0:b.versionId))];case 4:return s.sent(),[3,6];case 5:return g=s.sent(),(0,eH.Z)(g),h((0,_.dk)("withoutQuotes",!0)),[3,6];case 6:return[3,8];case 7:return y=s.sent(),(0,eH.Z)(y,"All insurer quotes errored"),(null==f?void 0:null===(w=f.query)||void 0===w?void 0:w.quotationData)?f.push({pathname:"/new-see-quote",query:{quotationData:f.query.quotationData}}):f.push({pathname:"/",query:e_.queryParams?e_.queryParams:{}}),[3,8];case 8:return[2]}})}),function(){return e.apply(this,arguments)}),eO=function(){var e=(o=d.getState()).quotation.client,t=e.asLeadsEmail,n=e.asLeadsPhone;if(t&&n){var i={leadType:eZ.YP.LEAVE_QUOTATION,reduxState:o,location:window.location.href,routerQuery:f.query};(0,eZ.$D)(i)}};(0,tP.Z)(eO);var eD=function(e){e.preventDefault(),eO()},eR=function(e){var t=e.quotation.client,o=t.birthdate,n=t.gender,i=t.postalCode,a=e.cart.quote.client,s=a.birthdate,r=a.gender,l=a.address.postalCode;return o.split("/").reverse().join("-")===s&&n===r&&i===l},eP=(t=(0,n._)(function(){var e,t,o,n,i,a,r;return(0,s.Jh)(this,function(s){switch(s.label){case 0:return[4,eR(e=d.getState())];case 1:if(t=s.sent(),h((0,_.dk)("withoutQuotes",!1)),t)return[3,8];return h((0,I.E_)()),[4,ee.dispatchVersions(e.quotation.vehicle.modelId)];case 2:return s.sent(),[4,ee.dispatchPostalLocationData(e.quotation.client.postalCode)];case 3:return s.sent(),[4,ee.getInfoForResolveQuotations(!0)];case 4:n=(o=s.sent()).payload,i=o.providerCodes,a=o.versionId,et&&(h((0,I.xJ)(e$.FY,e$.oF,R.Hg.twoYears.code)),n.policy.validity=R.Hg.twoYears.code),ea&&(h((0,I.xJ)(e$.FY,m.AH,R.jC.cash.code)),n.policy.paymentFrequency=R.jC.cash.code),s.label=5;case 5:return s.trys.push([5,7,,8]),[4,(0,eZ.mJ)(n,i,ee.dispatchQuotationData,ee.removeQuotationData,ee.dispatchCartData,eq,a)];case 6:return s.sent(),[3,8];case 7:return r=s.sent(),(0,eH.Z)(r),h((0,_.dk)("withoutQuotes",!0)),[3,8];case 8:return[2]}})}),function(){return t.apply(this,arguments)});(0,p.useEffect)(function(){return eP(),h((0,I.xJ)(e$.FY,e$.o4,"")),h((0,I.xJ)(e$.FY,e$.AW,{})),window.addEventListener("beforeunload",eD),W(!0),function(){h((0,_.dk)(tR.dW,"see-quote")),window.removeEventListener("beforeunload",eD)}},[]),(0,p.useEffect)(function(){function e(){return(e=(0,n._)(function(){var e,t,n,i,r,l,c,u,p,x,v,m,b,g,y,w,j,S;return(0,s.Jh)(this,function(s){switch(s.label){case 0:if(o=d.getState(),!(null==f?void 0:null===(e=f.query)||void 0===e?void 0:e.quotationData))return[3,4];return tF.Z.clearStore(),n=atob(f.query.quotationData).split("||"),r=(i=(0,a._)(n,7))[0],l=i[1],c=i[2],u=i[3],p=i[4],x=i[5],v=i[6],m="mapfre",b="13 / 03 / 1986",g="male",[4,tv.ZP.catalog.listVersions(c)];case 1:return y=s.sent(),[4,tv.ZP.catalog.getPostalLocation(l,m)];case 2:return w=s.sent(),h((0,_._)({editModal:!1})),j={vehicle:{modelId:c,versionId:r,model:u,subbrand:p,subbrandId:x,versions:y},client:{postalCode:l,neighborhoodId:null==w?void 0:w.neighborhoods[0].id,colony:null==w?void 0:w.neighborhoods[0].name,neighborhoods:null==w?void 0:w.neighborhoods,state:null==w?void 0:w.stateName,city:null==w?void 0:w.cityName,birthdate:b,firstName:v,paternalSurname:"",maternalSurname:"",gender:g},editPayload:{postalCode:l,modelId:c},useRedux:!0},h((0,I.cX)(j)),[4,eA(!0)];case 3:s.sent(),s.label=4;case 4:return(null==f?void 0:null===(t=f.query)||void 0===t?void 0:t.userId)&&(S=(0,C.Z)(f.query.userId).userId,el.Z.data({userId:S})),W(!0),[2]}})})).apply(this,arguments)}!function(){e.apply(this,arguments)}()},[f]),(0,p.useEffect)(function(){B(tB(g)),O(!A)},[g,g[0]]),(0,p.useEffect)(function(){w.provider.length>0?k((0,a._)(w.provider.map(function(e){return H.filter(function(t){return t.providerCode!==e})}),1)[0]):k(H)},[H,A]),(0,p.useEffect)(function(){K(window.innerWidth>=640)},[window.innerWidth]),(0,p.useEffect)(function(){ed(!1);var e=H.map(function(e){return e.providerCode}).reduce(function(e,t){return e.includes(t)||e.push(t),e},[]),t=(0,tZ.PW)(e,y),o=H.filter(function(e){return t.includes(e.providerCode)}).filter(function(e){return(e.quotation.package===S||!e.quotation.package)&&(!e.quotation.error||"boolean"==typeof e.quotation.error)});(o=o.reduce(function(e,t){return e.find(function(e){return e.providerCode===t.providerCode})?e:e.concat([t])},[])).length===m.xE&&void 0!==es&&ed(!0),U(o)},[S,M,JSON.stringify(g)]);var eB=function(e){var t=e.providerCode;return"invoice"!==eu||"ana"!==t},eV=(0,r.jsx)(tA,{styles:ex.quotationBar,modal:ev,editQuoteTexts:em,quotationBarTexts:eb,editVersionPayMobileTexts:ew,showInvoiceValue:P,advancedSettingsTexts:eN});return z&&(0,r.jsxs)(tD.Z,{navbarBottomContent:eV,children:[(0,r.jsx)("div",{className:ef.topSeparator}),(0,r.jsx)("div",{className:ef.coverageSelector,children:(0,r.jsx)(L,{providerWithQuotes:Y})}),!es&&!ec&&(0,r.jsx)("div",{className:ef.carouselContainer,children:(0,r.jsx)(eC.Z,{elementsNumberOnDesktop:J,elementsDistance:$?20:30,horizontalInsideMargin:$?J<3?10:44:64,dotsUpside:!$,carouselClass:ef.carouselClass,verticalInsideMargin:70,children:Y.map(function(e,t){var o,n=0===t;return(0,r.jsx)(eS,{cardClass:"".concat(n?ef.recommendedCard:ef.defaultCard," "),insuranceInfo:e.quotation,providerCode:e.providerCode,partnerCode:T,styles:null==ex?void 0:ex.insuranceInfoCard,modal:ev,insuranceInfoTexts:eg,cardTexts:ey,isRecommendedCard:n,recommended:n,activeCard:eB(e)},(null==e?void 0:null===(o=e.quotation)||void 0===o?void 0:o.costs)?e.quotation.id:"insuranceInfo-".concat(t))})})}),(es||ec)&&(0,r.jsx)("div",{className:"w-full flex justify-center items-center mt-60px",children:(0,r.jsx)(v,{isMultiannual:et,hasCoveragesEdited:eo})}),(0,r.jsx)("div",{className:"w-full flex justify-center items-center mt-60px",children:(0,r.jsx)(eE,{texts:eT})}),(0,r.jsx)("div",{className:"mb-100px mx-6 desktop:mx-0",children:(0,r.jsx)(tO.Z,{section:"seeQuote"})}),eI&&(0,r.jsxs)("div",{className:"w-full flex justify-center items-center",children:[(0,r.jsx)(c.Z,{path:ej.wheelImg,n
1ame:ej.wheel,containerClass:"flex w-full justify-center items-center mb-20px",width:"106px",height:"120px"}),(0,r.jsx)(j,{})]}),(0,r.jsx)("div",{id:"modal-root"})]})}},8462:function(e,t,o){"use strict";o.d(t,{L:function(){return n}});var n=Object.freeze({UTILS:{DISPLAY_LOADER:"displayLoader",WITHOUT_QUOTES:"withoutQuotes"},QUOTATION:{POLICY:"policy",POLICY_COVERAGES:"coverages",POLICY_HAS_COVERAGES_EDITED:"hasCoveragesEdited",POLICY_PROMOCODE:"promoCode",DEDUCTIBLE_COVERAGES_EDITABLES:"deductibleCoveragesEditables",BENEFICIARY:"beneficiary",HAS_FINANCING:"hasFinancing"}})},6184:function(e,t,o){"use strict";o.d(t,{_:function(){return n}});var n=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!!o.includes(e)||new RegExp(t).test(e)}},523:function(e){e.exports={polyfill:function(){var e,t=window,o=document;if(!("scrollBehavior"in o.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var n=t.HTMLElement||t.Element,i={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:n.prototype.scroll||r,scrollIntoView:n.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,s=(e=t.navigator.userAgent,RegExp("MSIE |Trident/|Edge/").test(e))?1:0;t.scroll=t.scrollTo=function(){if(void 0!==arguments[0]){if(!0===l(arguments[0])){i.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset);return}u.call(t,o.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset)}},t.scrollBy=function(){if(void 0!==arguments[0]){if(l(arguments[0])){i.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0);return}u.call(t,o.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset))}},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(!0===l(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop);return}var e=arguments[0].left,t=arguments[0].top;u.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}},n.prototype.scrollBy=function(){if(void 0!==arguments[0]){if(!0===l(arguments[0])){i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},n.prototype.scrollIntoView=function(){if(!0===l(arguments[0])){i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);return}var e=function(e){for(var t,n,i;e!==o.body&&!1===(n=c(t=e,"Y")&&d(t,"Y"),i=c(t,"X")&&d(t,"X"),n||i);)e=e.parentNode||e.host;return e}(this),n=e.getBoundingClientRect(),a=this.getBoundingClientRect();e!==o.body?(u.call(this,e,e.scrollLeft+a.left-n.left,e.scrollTop+a.top-n.top),"fixed"!==t.getComputedStyle(e).position&&t.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):t.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}}function r(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return"Y"===t?e.clientHeight+s<e.scrollHeight:"X"===t?e.clientWidth+s<e.scrollWidth:void 0}function d(e,o){var n=t.getComputedStyle(e,null)["overflow"+o];return"auto"===n||"scroll"===n}function u(e,n,s){var l,c,d,u,p=a();e===o.body?(l=t,c=t.scrollX||t.pageXOffset,d=t.scrollY||t.pageYOffset,u=i.scroll):(l=e,c=e.scrollLeft,d=e.scrollTop,u=r),function e(o){var n,i,s,r=(a()-o.startTime)/468;n=.5*(1-Math.cos(Math.PI*(r=r>1?1:r))),i=o.startX+(o.x-o.startX)*n,s=o.startY+(o.y-o.startY)*n,o.method.call(o.scrollable,i,s),(i!==o.x||s!==o.y)&&t.requestAnimationFrame(e.bind(t,o))}({scrollable:l,method:u,startTime:p,startX:c,startY:d,x:n,y:s})}}}}},function(e){e.O(0,[675,464,664,792,22,202,183,779,352,69,733,6,774,888,179],function(){return e(e.s=5253)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.