1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82],{7001:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/seleccion-extras",function(){return i(2999)}])},5073:function(e,t,i){"use strict";i.d(t,{e:function(){return l},Z:function(){return o}});var a=i(5893);i(7294);let n=i(5444).ZP.div.withConfig({componentId:"sc-8e84b5be-0"})([".service-errors{background:#feeeef;border:0.2rem solid #f55564;border-radius:0.5rem;margin-bottom:1rem;padding:0.5rem 0;width:100%;}.service-errors .service-error{align-items:center;color:#213b73;display:flex;font-size:1.4rem;justify-content:flex-start;margin-bottom:0;}.service-errors .service-error p{margin-bottom:0;margin-left:1rem;width:100%;}.service-errors .service-error p strong{color:#f55564;}.service-errors .message-priority--ERROR{align-items:center;color:#cc2839;display:inline-flex;font-size:1.4rem;font-weight:700;margin-right:0.8rem;}.service-errors .message-priority--ERROR:before{color:#cc2839;content:'\f138';display:inline-block;font-family:'icons89' !important;font-size:1.4rem;font-style:normal;font-weight:400 !important;line-height:1;padding:1rem;vertical-align:top;}.service-errors__description{font-size:1.4rem;margin-top:1.5rem;padding-left:3.5rem;padding-right:1.5rem;}.service-errors__description .link{text-decoration:underline;}"]);var r=i(1163);let l=e=>{let{type:t,message:i}=e;return(0,r.useRouter)(),(0,a.jsx)(n,{children:(0,a.jsx)("div",{className:"service-errors",children:(0,a.jsxs)("div",{className:"service-error",children:[(0,a.jsx)("span",{className:"message-priority--ERROR",children:t}),(0,a.jsx)("p",{children:i})]})})})};var o=l},2999:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return h},default:function(){return b}});var a=i(5893),n=i(7294),r=i(6939),l=i(5980),o=i(9068),d=i(7071),s=i(1163);let u=i(5444).ZP.div.withConfig({componentId:"sc-66d1ec2d-0"})(["@keyframes _8\\+IhcEguq2WEujRoCee6\\+w\\=\\={0%{transform:rotate(0);}50%{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1);transform:rotate(1turn);}to{transform:rotate(2turn);}}.title{margin-bottom:1rem;}@media print,screen and (min-width:48em){.title{margin-bottom:2rem;}}.flyout-tab{position:relative;width:100%;}.flyout-tab__toggler{align-items:center;background-color:#005daa;cursor:pointer;display:flex;height:5.4rem;position:relative;transition:background-color 0.25s ease-in-out;width:100%;will-change:background-color;}.flyout-tab__toggler .flyout-tab__title{align-items:center;color:#fff;display:inline-flex;font-size:1.4rem;justify-content:flex-start;margin-left:1.9rem;margin-right:0.8rem;text-align:left;transition:color 0.25s ease-in-out;will-change:color;}.flyout-tab__toggler .flyout-tab__title:before{align-items:center;border-radius:50%;color:#fff;display:inline-flex;flex-shrink:0;font-size:1.5rem;height:3rem;justify-content:center;margin-right:2.1rem;width:3rem;}.flyout-tab__toggler .flyout-tab__title.extra:before{background-color:#5ab7e8;content:'\f17c';font-family:'icons89' !important;font-style:normal;font-weight:400 !important;line-height:1;vertical-align:top;}.flyout-tab__toggler:after{border-radius:50%;color:#fef100;content:'\f120';display:inline-block;flex-shrink:0;font-family:'icons89' !important;font-size:1.8rem;font-style:normal;font-weight:400 !important;line-height:1;margin-left:auto;margin-right:1.4rem;transition:color 0.25s ease-in-out;vertical-align:top;will-change:color;}.flyout-tab__drawer{background-color:#fff;margin:0;max-height:0;opacity:0;padding:0;transform:translateZ(0);transform-origin:top;transition-duration:0.25s;transition-property:padding,transform,max-height,margin-top,opacity;transition-timing-function:ease-in-out;will-change:auto;}.flyout-tab__drawer--clear-below{margin-bottom:8.5rem;}.flyout-tab__content,.flyout-tab__link{font-size:1.4rem;padding:1.9rem 1.2rem 2rem 1.9rem;}.flyout-tab__content h4,.flyout-tab__link h4{font-size:1.2rem;margin-bottom:0.8rem;text-transform:uppercase;}.flyout-tab__content p,.flyout-tab__link p{font-size:1.4rem;line-height:1.5;}.flyout-tab__link{color:#8c4c9e;cursor:pointer;font-weight:700;margin-bottom:2rem;text-decoration:underline;}.flyout-tab.disabled .flyout-tab__toggler{background-color:#104b8d;}.flyout-tab.disabled .flyout-tab__toggler .flyout-tab__title{color:hsla(0,0%,100%,0.7);}.flyout-tab.disabled .flyout-tab__toggler:after{display:none;}@media print,screen and (max-width:47.99875em){.flyout-tab__drawer{margin-top:0.1rem;}}@media print,screen and (min-width:48em){.flyout-tab__toggler{min-height:8.9rem;}.flyout-tab__toggler:before{font-size:2rem;height:4rem;margin-right:1.6rem;width:4rem;}.flyout-tab__content{padding-top:4rem;}}.flyout-tabs{background-color:#213b73;overflow:hidden;position:relative;width:100%;}.flyout-tabs__list{list-style-type:none;margin:0;padding:0;}.flyout-tabs__list-item{margin-bottom:0.1rem;}.flyout-tabs__drawer-list{list-style:none;margin-left:0;}@media print,screen and (min-width:48em){.flyout-tabs .flyout-tab{display:flex;flex-direction:column;}.flyout-tabs .flyout-tab .flyout-tab__drawer{width:calc(200% + 3rem);}.flyout-tabs .flyout-tab .flyout-tab__drawer:before{background:#fff;bottom:100%;content:'';display:block;height:1.8rem;left:0;position:absolute;width:calc(50% - 1.5rem);}.flyout-tabs__list{display:flex;flex-wrap:wrap;}.flyout-tabs__list-item{display:flex;flex-flow:column;margin:0 1.5rem;width:calc(25% - 3rem);}.flyout-tabs__list-item:first-child{margin-left:0;}.flyout-tabs__list-item:nth-child(4) .flyout-tab .flyout-tab__drawer{align-self:flex-end;}.flyout-tabs__list-item:nth-child(4) .flyout-tab .flyout-tab__drawer:before{left:auto;right:0;}}.flyout-tabs.included-extras .flyout-tab__toggler{border-bottom:0.1rem solid #dee0e3;border-top:0.1rem solid #dee0e3;min-height:7rem;}@media print,screen and (max-width:47.99875em){.flyout-tabs.included-extras .flyout-tab{margin-bottom:1.8rem;}}.progress-bar{position:relative;z-index:250;}.progress-bar__overlay{background-color:rgba(35,30,32,0.5);display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:-1;}.progress-bar__container{position:relative;}.progress-bar__tabs{align-items:stretch;background-color:#213b73;display:flex;max-width:100%;overflow:hidden;}.progress-bar__section{border-top:0.5rem solid #213b73;display:flex;flex-direction:column;flex-grow:1;height:9rem;margin-left:0.2rem;position:relative;}.progress-bar__section.current-step{border-top-color:#fef100;}.progress-bar__section:first-child{margin-left:0;}.progress-bar__section.completed .section__label:before{content:'\f11f';font-family:'icons89' !important;font-style:normal;font-weight:400 !important;line-height:1;margin-right:0.7rem;vertical-align:top;vertical-align:inherit;}
1.progress-bar__section.enabled .section__button{cursor:pointer;}.progress-bar__section.enabled .section__button:after{bottom:3.5rem;content:'\f108';font-family:'icons89' !important;font-size:1.2rem;font-style:normal;font-weight:400 !important;line-height:1;line-height:inherit;position:absolute;right:1.5rem;vertical-align:top;vertical-align:initial;}.progress-bar .section__top{color:inherit;height:100%;line-height:inherit;padding:0 3rem 0.2rem;text-align:inherit;width:100%;}.progress-bar .section__label{align-items:center;display:flex;font-size:1.2rem;font-weight:700;opacity:0.75;}.progress-bar .section__values{display:flex;justify-content:space-between;margin-right:2.2rem;position:relative;}.progress-bar .section__value{display:block;height:4.2rem;}.progress-bar .section__value + .section__value:before{color:#fff;content:'\f107';font-family:'icons89' !important;font-size:1.2rem;font-style:normal;font-weight:400 !important;left:50%;line-height:1;line-height:inherit;opacity:0.5;position:absolute;top:0.4rem;transform:translateX(-50%);vertical-align:top;vertical-align:initial;}@media print,screen and (min-width:80em){.progress-bar .section__values{justify-content:unset;}.progress-bar .section__value + .section__value{margin-left:4.8rem;position:relative;}.progress-bar .section__value + .section__value:before{left:-3rem;transform:none;}}@media print,screen and (min-width:48em){.progress-bar__section:last-child{background-color:#07508e;}.progress-bar__section:not(.completed):not(.expanded){background-color:#07508e;}}@media print,screen and (max-width:47.99875em){.progress-bar-mobile__vehicle-name{max-width:50%;}}@media print,screen and (min-width:48em) and (max-width:79.99875em){.progress-bar__section{max-width:25%;}.progress-bar__section.enabled .section__button:after{bottom:3rem;right:0.5rem;}.progress-bar .section .section__label{font-size:1.2rem;white-space:nowrap;}.progress-bar .section__top{padding:1rem 0 0 3%;}.progress-bar .section__values .pickup-time,.progress-bar .section__values .return-time{overflow:visible;text-overflow:clip;white-space:normal;}.progress-bar .section__values.dates-times .section__value{max-width:40%;}.progress-bar .section__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}@keyframes _1AQrV4KQStGK7DTZtryxFQ\\=\\={0%{transform:rotate(0);}50%{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1);transform:rotate(1turn);}to{transform:rotate(2turn);}}.extras-header__container{background-color:#213b73;border-bottom:0.1rem solid #939db7;padding-bottom:1.4rem;padding-top:6rem;}.extras-header__container button{white-space:nowrap;}.extras-header__row{align-items:baseline;display:flex;justify-content:space-between;}.extras-header__main-title{color:#fff;}@media print,screen and (max-width:47.99875em){.extras-header__container{padding-bottom:3.8rem;padding-top:2rem;}.extras-header__container .button{white-space:normal;width:100%;}.extras-header__row{align-items:center;flex-direction:column;}.extras-header__main-title{margin-bottom:1rem;text-align:center;}}.bundles__container{background:#213562;display:flex;flex-wrap:wrap;justify-content:center;margin:4rem auto;max-width:100%;padding:3.8rem;width:128rem;}.bundles__vehicle-img-container{display:flex;justify-content:flex-end;margin-right:-3.8rem;position:relative;width:128rem;}.bundles__vehicle-img-container picture{margin-top:-12rem;position:absolute;right:0;}.bundles__vehicle-img{margin-right:5.5rem;}.bundles__vehicle-img--background{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNDUzIiBoZWlnaHQ9IjE0OSIgdmlld0JveD0iMCAwIDQ1MyAxNDkiPgogICAgPGRlZnM+CiAgICAgICAgPHBhdGggaWQ9ImEiIGQ9Ik0wIDBoNTB2MThIMHoiLz4KICAgICAgICA8cGF0aCBpZD0iYyIgZD0iTTAgMGg1MHYxOEgweiIvPgogICAgPC9kZWZzPgogICAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBmaWxsPSIjNUNCN0U3Ii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OS4wNjMgNDhzLTEuNDg2LTEwLjEwMiA5Ljk5My05LjU3MWMwIDAgMS4zNS0xMC43NjcgMTMuOTEtOC42NCAwIDAgMS44OS0xNy4yOCAyMC41MjYtMTUuNjg1IDAgMCAxMi42OTQuNzk4IDE0LjE4IDE4LjIxIDAgMCAxOS45ODYtNS44NDggMTkuMzExIDE1LjY4NmgtNzcuOTJ6Ii8+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo=);background-position:50%;background-repeat:no-repeat;background-size:contain;box-sizing:border-box;display:block;height:9rem;margin-top:-13rem;max-width:27.4rem;padding-left:28rem;position:absolute;right:0;width:100%;z-index:0;}@media print,screen and (max-width:47.99875em){.bundles__container{padding:1.8rem;}.bundles__vehicle-img-container{display:none;}}@media print{.header{border:none;}}.formatted-price{white-space:nowrap;}@media print{.header a:after{display:none;}}@keyframes f5eKAWGwoL2PH\\+pL8YnU0Q\\=\\={0%{stroke-dashoffset:339.292;}to{stroke-dashoffset:95;}}@keyframes jZnI3aLAXJ5snLypZyvjJQ\\=\\={0%{stroke-dashoffset:339.292;}to{stroke-dashoffset:70;}}@keyframes iIdNzm0drUkHDwKovmnJOA\\=\\={0%{stroke-dashoffset:339.292;}to{stroke-dashoffset:0;}}.progress-bar{width:100%;}.extras-select{display:flex;flex-direction:column;margin:0 auto;max-width:100%;width:100%;}.extras-select__included-heading{margin-bottom:1.8rem;}.extras-select__included-section .flyout-tab__drawer--clear-below{margin-bottom:0;}.extras-header__container{margin-bottom:1.8rem;}.individual-extras{margin-bottom:5rem;}.individual-extras-subsection-title{margin-bottom:2rem;}.individual-extra{border-left:0.5rem solid #c8ccd8;display:flex;flex-direction:column;margin-bottom:0.13rem;padding:2.1rem 3.1rem 2.1rem 2.5rem;position:relative;}.individual-extra__upper{display:flex;justify-content:space-between;}.individual-extra__upper-left{flex-basis:60%;}.individual-extra__name{font-weight:700;margin-bottom:0.5rem;}.individual-extra__price-status,.individual-extra__price-status--included{display:flex;flex-basis:40%;}.individual-extra__price-status{align-items:center;justify-content:space-between;}.individual-extra__price-status--included{justify-content:flex-end;}.individual-extra__price{font-weight:700;}.individual-extra__status{align-items:flex-end;display:flex;flex-basis:40%;flex-direction:column;font-weight:700;text-align:right;}.individual-extra__status button{width:auto;}.individual-extra__status button:after{margin-left:1.8rem;}.individual-extra__lower{align-items:flex-end;display:flex;justify-content:space-between;}.individual-extra__single-add{align-items:center;display:flex;}.individual-extra__add{color:#8c4c9e;}.individual-extra__add:after{content:'\f101';font-family:'icons89' !important;font-style:normal;font-weight:400 !important;line-height:1;vertical-align:top;}.individual-extra__single-remove:after{content:'\f18d';font-family:'icons42' !important;font-style:normal;font-weight:400 !important;line-height:1;vertical-align:top;font-size:2.9rem;font-weight:400;vertical-align:middle;}.individual-extra__add{cursor:pointer;font-weight:700;min-height:3.3rem;}.individual-extra__add:disabled{cursor:default;}.individual-extra__add:after{color:#8c4c9e;font-size:2.9rem;font-weight:400;vertical-align:middle;}.individual-extra__add:disabled:after{color:#e5e5e5;}.individual-extra__details-toggle{font-size:1.4rem;font-weight:400;}.individual-extra__details-toggle:before{content:'\f120';font-family:'icons89' !important;font-style:normal;font-weight:400 !important;line-height:1;margin-right:0.6rem;vertical-align:top;}.individual-extra.selected{border-left-color:#cd94ff;}.individual-extra.selected .individual-extra__added-text{display:inline-flex;}.individual-extra__added-text{color:#fff;font-weight:600;cursor:default;}.individual-extra__details{border-top:0.1rem solid #c2c7d4;font-size:1.4rem;margin-top:2.5rem;padding:2.5rem 0 0;}.individual-extra.selected .individual-extra__added-text:after{content:'\f11f';font-family:'icons89' !important;font-size:1.2rem;font-style:normal;font-weight:400 !important;line-height:1;line-height:inherit;margin-left:1.8rem;padding-right:0.8rem;vertical-align:top;vertical-align:initial;}.individual-extra.selected .individual-extra__added-text:before{height:100%;margin-right:1rem;margin-top:0.4rem;width:100%;}.individual-extra.selected .individual-extra__add:after{color:#fef100;}.individual-extra.selected .individual-extra__add:disabled:after{color:#939db7;}.extras-footer{display:flex;justify-content:flex-end;margin-bottom:5rem;}@media print,screen and (max-width:47.99875em){.extras-select{padding-left:1.2rem;padding-right:1.2rem;}.individual-extras-subsection-title{margin-bottom:1rem;}button.link.individual-extra__details-toggle{font-weight:400;}button.individual-extra__add.individual-extra__single-add{justify-content:flex-end;}.individual-extra{padding:2.1rem 1.5rem;}.individual-extra__added-text{font-size:1.4rem;}.individual-extra__details-toggle{margin-bottom:0.6rem;}.individual-extra__add:after{font-size:2rem;}.individual-extra__upper-left{word-wrap:break-word;flex:0 1 100%;-webkit-hyphens:auto;hyphens:auto;line-height:1.2;width:100%;}.individual-extra__upper{align-items:flex-start;flex-direction:column;font-size:1.4rem;margin-bottom:1rem;}.individual-extra__price{font-weight:400;}.individual-extra__price-status{word-wrap:break-word;align-items:flex-end;flex:1 0 40%;-webkit-hyphens:auto;hyphens:auto;justify-content:space-between;max-width:100%;width:100%;opacity:1;padding-left:0;}.individual-extra__lower{align-items:flex-end;position:relative;}.individual-extra.selected .individual-extra__added-text:after{margin-left:1.2rem;padding-right:0.4rem;}.individual-extra__status{flex-basis:20%;margin-left:1rem;}.individual-extra__status--included{flex-basis:100%;}.individual-extra__status button{font-size:1.4rem;text-align:right;}.individual-extra__status button:after{margin-left:1rem;}.extras-footer{justify-content:center;}.extras-footer .button{width:100%;}}@media only screen and (max-width:385px){.individual-extra__upper{display:block;}.individual-extra__upper-left{max-width:100%;}.individual-extra__price-status{flex-wrap:wrap;max-width:100%;padding:0;}.individual-extra__lower .individual-extra__details-toggle{margin-top:2rem;text-align:left;width:100%;}.individual-extra__status{align-items:flex-start;flex-basis:20%;}.individual-extra__status--included{flex-basis:100%;}.individual-extra__status button{display:flex;justify-content:space-between;width:100%;}}button.continuar{background-color:#fff441 !important;color:#44649a !important;}.bundles__container{background:none;margin:0 auto;}#seleccion-extras{background-color:VAR(--blue);color:var(--texto);}#seleccion-extras .container-fluid{padding:0;}@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}.extra-spinner{width:20px;height:20px;border:3px solid rgba(255,255,255,0.3);border-top:3px solid #9e65a4;
1border-right:3px solid #9e65a4;border-radius:50%;animation:spin 1s linear infinite;will-change:transform;}"]);var c=i(2039);let g=e=>{var t,i,r,l;let{extra:o,unselectExtra:d,selectExtra:s,days:u,included:c=!1}=e,[g,m]=(0,n.useState)(!1),x=o.quantity||0,f=o.maxQuantity||1,v=x<f;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("section",{className:x>0||c?"individual-extra selected component-theme--light-blue":"individual-extra component-theme--light",children:[(0,a.jsxs)("div",{className:"individual-extra__upper",children:[(0,a.jsx)("div",{className:"individual-extra__upper-left",children:(0,a.jsx)("p",{className:"individual-extra__name",children:null==o?void 0:null===(t=o.ExtraDesc)||void 0===t?void 0:t[0]})}),(0,a.jsxs)("div",{className:"individual-extra__price-status",children:[(0,a.jsx)("span",{className:"formatted-price individual-extra__incremental-price",children:!c&&"$ ".concat(null==o?void 0:null===(i=o.ExtraAmount)||void 0===i?void 0:i[0],"/d\xeda *")}),(0,a.jsx)("div",{className:c?"individual-extra__status individual-extra__status--included":"individual-extra__status",children:f>1&&x>=1?(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[o.loading&&(0,a.jsx)("div",{className:"extra-spinner"}),(0,a.jsxs)("div",{style:{minHeight:"3.3rem",display:"flex",justifyContent:"space-between",width:"120px"},children:[(0,a.jsx)("button",{style:{backgroundColor:0===x||o.loading?"#ccc":"#FEF100",borderRadius:"50%",width:"30px",height:"30px",display:"flex",justifyContent:"center",alignItems:"center"},disabled:0===x||o.loading,onClick:()=>d(o),children:(0,a.jsx)("span",{style:{color:"#005eab",fontWeight:"bold",fontSize:"2.3rem"},children:"â"})}),(0,a.jsx)("span",{style:{fontSize:"2rem",fontWeight:"600"},children:x}),(0,a.jsx)("button",{style:{backgroundColor:!v||o.loading?"#ccc":"#FEF100",borderRadius:"50%",width:"30px",height:"30px",display:"flex",justifyContent:"center",alignItems:"center"},disabled:!v||o.loading,onClick:()=>s(o),children:(0,a.jsx)("span",{style:{color:"#005eab",fontWeight:"bold",fontSize:"2.3rem"},children:"+"})})]})]}):(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[o.loading&&(0,a.jsx)("div",{className:"extra-spinner"}),(0,a.jsx)("button",{className:c?"individual-extra__added-text":x>0?"link individual-extra__sub individual-extra__single-remove":"individual-extra__add individual-extra__single-add",type:"button","aria-label":"Agregar","data-dtm-track":"extras|extras_add|CDW1",title:"",onClick:()=>{c||(x>0?d(o):s(o))},disabled:o.loading,children:(0,a.jsx)("span",{children:c?"Incluido":x>0?"Quitar":"Agregar"})})]})})]})]}),(0,a.jsx)("div",{className:"individual-extra__lower",children:(0,a.jsx)("button",{className:"link individual-extra__details-toggle",type:"button","aria-label":"Detalles","aria-expanded":"false",onClick:()=>m(!g),children:"Detalles"})}),g&&(0,a.jsx)("div",{className:"individual-extra__details",children:(0,a.jsx)("div",{className:"individual-extra__details-text",children:(0,a.jsx)("p",{children:null==o?void 0:null===(r=o.ExtraNotes)||void 0===r?void 0:r[0]})})})]},null==o?void 0:null===(l=o.ExtraCode)||void 0===l?void 0:l[0])})};var m=i(3061),x=i(5073),f=i(6461),v=i(4221),p=e=>{var t,i,r,l,o,p,_,h,b;let I=[{code:"CSI",maxQuantity:2}],{state:y,setRentalInfo:C}=(0,n.useContext)(d.Z),{RentalLocationID:w,RentalLocationIDDR:j,ClassCode:A,PickupDateTime:D,ReturnDateTime:N,Prepaid:M,selectedCar:E,when:k,selectedExtras:L}=y.rentalInfo,[z,S]=(0,n.useState)(e.extras),[T,R]=(0,n.useState)([]),[O,P]=(0,n.useState)(),[Y,G]=(0,n.useState)([]),[Z,Q]=(0,n.useState)(!1),[U,W]=(0,n.useState)((null==L?void 0:L.DailyExtra)||[]),F=(0,s.useRouter)(),H=["DP1","DP2","DP3",f.y4],B=[f.y4],{setLoading:K}=e,J={Branch:[""],ExtraCode:[f.y4],ExtraDesc:["SEGURO DE COLISION INCLUIDA - CDWAI"],ExtraAmount:["0"],ExtraMinimum:["0"],ExtraMaximum:["0"],ExtraCalcType:["DAILY"],ExtraChargeType:[""],ExtraNotes:[""],ExtraOnRequest:[""],Classes:[""],StartDate:["1900/01/01"]},[q,X]=(0,n.useState)([]),[V,$]=(0,n.useState)(""),[ee,et]=(0,n.useState)(0);(0,n.useEffect)(()=>{ei(null==L?void 0:L.DailyExtra)},[]),(0,n.useEffect)(()=>{var t,i;S({DailyExtra:null===(i=e.extras)||void 0===i?void 0:null===(t=i.DailyExtra)||void 0===t?void 0:t.map(e=>{if(e.ExtraCode[0]===f.y4)return{...e,selected:!0};{var t,i;let a=I.find(t=>t.code===(null==e?void 0:e.ExtraCode[0])),n=null==L?void 0:null===(t=L.DailyExtra)||void 0===t?void 0:t.filter(t=>t.ExtraCode[0]===(null==e?void 0:e.ExtraCode[0])),r=n?null===(i=n[0])||void 0===i?void 0:i.quantity:0;return{...e,quantity:r,maxQuantity:a?a.maxQuantity:1}}})})},[e.extras,L]),(0,n.useEffect)(()=>{var e,t,i;R({DailyExtra:null==z?void 0:null===(e=z.DailyExtra)||void 0===e?void 0:e.filter(e=>H.includes(e.ExtraCode[0])).filter(e=>{var t;return 1===e.Classes.length&&""===e.Classes[0]||e.Classes[0].split(",").includes(null==E?void 0:null===(t=E.ClassCode)||void 0===t?void 0:t[0])}).filter(e=>!B.includes(e.ExtraCode[0]))}),P({DailyExtra:null==z?void 0:null===(t=z.DailyExtra)||void 0===t?void 0:t.filter(e=>H.includes(e.ExtraCode[0])).filter(e=>{var t;return 1===e.Classes.length&&""===e.Classes[0]||e.Classes[0].split(",").includes(null==E?void 0:null===(t=E.ClassCode)||void 0===t?void 0:t[0])}).filter(e=>B.includes(e.ExtraCode[0]))}),G({DailyExtra:null==z?void 0:null===(i=z.DailyExtra)||void 0===i?void 0:i.filter(e=>!H.includes(e.ExtraCode[0])).map(e=>({...e,loading:q.includes(e.ExtraCode[0])}))})},[z,q]);let ei=async function(){var t;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,n=[];(null==i?void 0:i.length)>0&&(n=i.flatMap(e=>Array(e.quantity).fill(e.ExtraCode[0])));let r={RentalLocationID:null==w?void 0:w.RentalLocationID,PickupDateTime:
1D,ReturnDateTime:N,RateID:null==E?void 0:E.RateID[0],ClassCode:null==E?void 0:E.ClassCode[0],ExtraCode:n,DiscountPercent:(0,v.Rk)(E,k),ReturnLocationID:null==j?void 0:j.RentalLocationID},l={};try{l=await (0,v.SC)("../api/bil",{method:"POST",json:r,headers:{api_key:e.token},caller:"SeleccionExtras.fetchData"})}catch(e){return console.error("Error en SeleccionExtras.fetchData: ",e),W(null==L?void 0:L.DailyExtra),null}if((null==l?void 0:null===(t=l.Payload)||void 0===t?void 0:t.length)>0){if(a<ee)return console.warn("Ignorando respuesta antigua (ID: ".concat(a,"). La m\xe1s reciente es ").concat(ee,".")),-1;C(e=>({...e,selectedRate:null==l?void 0:l.Payload[0],selectedExtras:{DailyExtra:i}}))}return l},ea=async e=>{let t;et(e=>t=e+1);let i=e.ExtraCode[0],a=U.find(e=>e.ExtraCode[0]===i);X(e=>[...e,i]);let n=[];W(n=a?U.map(e=>e.ExtraCode[0]===i?{...e,quantity:e.quantity+1}:e):[...null!=U?U:[],{...e,quantity:1}]);let r=await ei(n,t);X(t=>t.filter(t=>t!==(null==e?void 0:e.ExtraCode[0]))),e&&!r&&($("Ocurrio un error al seleccionar el extra ".concat(e.ExtraDesc,", reintente en unos minutos.")),setTimeout(()=>{$("")},5e3))},en=async e=>{let t;et(e=>t=e+1);let i=e.ExtraCode[0],a=U.find(e=>e.ExtraCode[0]===i);X(e=>[...e,i]);let n=[],r=a?a.quantity-1:0;W(n=r<=0?U.filter(e=>e.ExtraCode[0]!==i):U.map(e=>e.ExtraCode[0]===i?{...e,quantity:r}:e));let l=await ei(n,t);X(t=>t.filter(t=>t!==(null==e?void 0:e.ExtraCode[0]))),e&&!l&&($("Ocurrio un error al quitar el extra ".concat(e.ExtraDesc,", reintente en unos minutos.")),setTimeout(()=>{$("")},5e3))},er=async()=>{Q(!0);try{var e,t,i,a,n,r,l,o,d,s,u,c,g,m,x,f,v,p,_,h,b,I,C,w,j,A;window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"select_extras",type:"internal",ecommerce:{value:(null==z?void 0:null===(t=z.DailyExtra)||void 0===t?void 0:null===(e=t.filter(e=>null==e?void 0:e.selected))||void 0===e?void 0:e.reduce((e,t)=>{var i,a,n,r,l,o;return e+Number((null==t?void 0:null===(i=t.ExtraAmount)||void 0===i?void 0:i[0])||0)*((null==y?void 0:null===(o=y.rentalInfo)||void 0===o?void 0:null===(l=o.selectedCar)||void 0===l?void 0:null===(r=l.TotalPricing)||void 0===r?void 0:null===(n=r[0])||void 0===n?void 0:null===(a=n.RentalDays)||void 0===a?void 0:a[0])||0)},0))||0,currency:"ARS",pickUpLocationCode:(null==y?void 0:null===(a=y.rentalInfo)||void 0===a?void 0:null===(i=a.RentalLocationID)||void 0===i?void 0:i.RentalLocationID)||null,dropOffLocationCode:(null==y?void 0:null===(r=y.rentalInfo)||void 0===r?void 0:null===(n=r.RentalLocationID)||void 0===n?void 0:n.RentalLocationID)||null,pickUpLocation:(null==y?void 0:null===(d=y.rentalInfo)||void 0===d?void 0:null===(o=d.RentalLocationID)||void 0===o?void 0:null===(l=o.RentalLocationName)||void 0===l?void 0:l[0])||null,dropOffLocation:(null==y?void 0:null===(c=y.rentalInfo)||void 0===c?void 0:null===(u=c.RentalLocationID)||void 0===u?void 0:null===(s=u.RentalLocationName)||void 0===s?void 0:s[0])||null,pickUpDate:(null==y?void 0:null===(g=y.rentalInfo)||void 0===g?void 0:g.startDate.toISOString())||null,dropOffDate:(null==y?void 0:null===(m=y.rentalInfo)||void 0===m?void 0:m.endDate.toISOString())||null,lengthOfRental:(null==y?void 0:null===(_=y.rentalInfo)||void 0===_?void 0:null===(p=_.selectedCar)||void 0===p?void 0:null===(v=p.TotalPricing)||void 0===v?void 0:null===(f=v[0])||void 0===f?void 0:null===(x=f.RentalDays)||void 0===x?void 0:x[0])||null,leadTime:null,contractId:null,customerType:(null==y?void 0:null===(h=y.rentalInfo)||void 0===h?void 0:h.selectedAgeOption)||null,payment:(null==y?void 0:null===(b=y.rentalInfo)||void 0===b?void 0:b.when)==="now"?"pay_now":"pay_later",country:(null==y?void 0:null===(w=y.rentalInfo)||void 0===w?void 0:null===(C=w.RentalLocationID)||void 0===C?void 0:null===(I=C.AddressCountry)||void 0===I?void 0:I[0])||null,reservationType:"internal",items:(null==z?void 0:null===(A=z.DailyExtra)||void 0===A?void 0:null===(j=A.filter(e=>null==e?void 0:e.selected))||void 0===j?void 0:j.map(e=>{var t,i,a,n,r,l,o,d,s,u;return{item_category:"extras",item_category2:(null==e?void 0:null===(i=e.ExtraChargeType)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.toLowerCase())||null,item_category3:(null==e?void 0:null===(a=e.ExtraDesc)||void 0===a?void 0:a[0])||null,item_name:(null==e?void 0:null===(n=e.ExtraDesc)||void 0===n?void 0:n[0])||null,price:(null==e?void 0:null===(r=e.ExtraAmount)||void 0===r?void 0:r[0])||null,quantity:(null==y?void 0:null===(u=y.rentalInfo)||void 0===u?void 0:null===(s=u.selectedCar)||void 0===s?void 0:null===(d=s.TotalPricing)||void 0===d?void 0:null===(o=d[0])||void 0===o?void 0:null===(l=o.RentalDays)||void 0===l?void 0:l[0])||null}}))||[]}})}catch(e){console.error("Error pushing to dataLayer:",e)}F.push("/revisar")}
1,[el,eo]=(0,n.useState)(0);(0,n.useEffect)(()=>{var e,t,i,a;eo(null!==(a=null==y?void 0:null===(i=y.rentalInfo)||void 0===i?void 0:null===(t=i.selectedExtras)||void 0===t?void 0:null===(e=t.DailyExtra)||void 0===e?void 0:e.length)&&void 0!==a?a:0)},[null==y?void 0:null===(t=y.rentalInfo)||void 0===t?void 0:t.selectedExtras]);let ed=el>0?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("button",{className:"button continuar",type:"button","aria-label":"Continuar para revisar","data-dtm-track":"button|extras|skip",onClick:er,children:"Continuar para revisar"})}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("button",{className:"button pill button",type:"button","aria-label":"No gracias, no incluir extras","data-dtm-track":"button|extras|skip",onClick:()=>{Q(!0),(null==z?void 0:z.DailyExtra.length)>0&&S({DailyExtra:null==z?void 0:z.DailyExtra.map(e=>({...e,selected:!1}))}),C({...y.rentalInfo,selectedExtras:{DailyExtra:[]}}),er()},children:"No gracias, no incluir extras"})});return(0,a.jsx)(u,{children:(0,a.jsx)("div",{id:"seleccion-extras",className:"contenedor",children:(0,a.jsxs)("div",{className:"container-fluid",children:[(0,a.jsx)(c.k,{step:4}),(null===(i=e.extras)||void 0===i?void 0:i.length)!=0||e.loading?(0,a.jsx)("div",{className:"row2",children:(0,a.jsxs)("div",{className:"extras-select",children:[(0,a.jsx)("div",{className:"extras-header__container",children:(0,a.jsxs)("div",{className:"extras-header__row",children:[(0,a.jsx)("div",{children:(0,a.jsx)("h1",{className:"extras-header__main-title",children:"A\xf1adir extras"})}),(0,a.jsx)("a",{children:ed})]})}),(0,a.jsxs)("section",{children:[(0,a.jsxs)("section",{className:"individual-extras individual-extras--trip-enhancements",children:[(0,a.jsx)("h2",{className:"mb-5",children:"Productos de protecci\xf3n"}),(0,a.jsx)(g,{extra:J,unselectExtra:en,selectExtra:ea,days:null==y?void 0:null===(o=y.rentalInfo)||void 0===o?void 0:null===(l=o.selectedRate)||void 0===l?void 0:null===(r=l.RentalDays)||void 0===r?void 0:r[0],included:!0},null==J?void 0:null===(p=J.ExtraCode)||void 0===p?void 0:p[0]),null==O?void 0:null===(_=O.DailyExtra)||void 0===_?void 0:_.map((e,t)=>{var i,n,r,l;return(0,a.jsx)(g,{extra:e,unselectExtra:en,selectExtra:ea,days:null==y?void 0:null===(r=y.rentalInfo)||void 0===r?void 0:null===(n=r.selectedRate)||void 0===n?void 0:null===(i=n.RentalDays)||void 0===i?void 0:i[0],included:!0},null==e?void 0:null===(l=e.ExtraCode)||void 0===l?void 0:l[0])}),null==T?void 0:null===(h=T.DailyExtra)||void 0===h?void 0:h.map((e,t)=>{var i,n,r,l;return(0,a.jsx)(g,{extra:e,unselectExtra:en,selectExtra:ea,days:null==y?void 0:null===(r=y.rentalInfo)||void 0===r?void 0:null===(n=r.selectedRate)||void 0===n?void 0:null===(i=n.RentalDays)||void 0===i?void 0:i[0]},null==e?void 0:null===(l=e.ExtraCode)||void 0===l?void 0:l[0])})]}),(0,a.jsxs)("section",{className:"individual-extras individual-extras--trip-enhancements",children:[(0,a.jsx)("h2",{className:"mb-5",children:"Mejoras de viaje"}),V&&(0,a.jsx)(x.Z,{type:"Error",message:V}),null==Y?void 0:null===(b=Y.DailyExtra)||void 0===b?void 0:b.map((e,t)=>{var i,n,r,l;return!1===Z&&K(!1),(0,a.jsx)(g,{extra:e,unselectExtra:en,selectExtra:ea,days:null==y?void 0:null===(r=y.rentalInfo)||void 0===r?void 0:null===(n=r.selectedRate)||void 0===n?void 0:null===(i=n.RentalDays)||void 0===i?void 0:i[0]},null==e?void 0:null===(l=e.ExtraCode)||void 0===l?void 0:l[0])})]}),(0,a.jsx)("p",{children:"* Sin impuestos incluidos"})]}),(0,a.jsx)("div",{className:"extras-footer",children:(0,a.jsx)("a",{children:(0,a.jsx)("button",{className:"button continuar",type:"button","aria-label":"Continuar para revisar","data-dtm-track":"button|extras|skip",onClick:er,children:"Continuar para revisar"})})})]})}):(0,a.jsx)(m.Z,{title:"Algo salio mal",message:"Hubo un problema al cargar los extras."})]})})})},_=i(6326),h=!0;function b(e){var t;let{metatags:i,token:u,userData:c}=e,g=(0,s.useRouter)(),{state:m,setRentalInfo:x}=(0,n.useContext)(d.Z),[f,h]=(0,n.useState)([]),[b,I]=(0,n.useState)(!0),{RentalLocationID:y,selectedCar:C}=m.rentalInfo;return(0,n.useEffect)(()=>{var e,t;(null===(e=m.rentalInfo.RentalLocationID)||void 0===e?void 0:e.RentalLocationID)&&m.rentalInfo.PickupDateTime&&m.rentalInfo.ReturnDateTime&&m.rentalInfo.selectedAgeOption&&m.rentalInfo.selectedCar||g.push("/");let i=async(e,t)=>{var i,a;let n=await (0,v.SC)("../api/extras",{method:"POST",json:{RentalLocationID:e,RateCode:t},headers:{api_key:u},caller:"SeleccionExtras.fetchData"}).catch(e=>{console.error("Error en SeleccionExtra al consultar la API extras: ",e)});I(!1),(null==n?void 0:null===(i=n.Payload)||void 0===i?void 0:i.length)>0&&(null==n?void 0:null===(a=n.Payload)||void 0===a?void 0:a[0])&&h(n.Payload[0])};(null==y?void 0:y.RentalLocationID)&&(null==C?void 0:null===(t=C.RateCo
1de)||void 0===t?void 0:t[0])&&i(y.RentalLocationID,C.RateCode[0])},[]),(0,a.jsxs)(a.Fragment,{children:[b&&(0,a.jsx)(_.a,{}),(0,a.jsx)(r.Z,{metatags:i,userName:(null==c?void 0:c.userName)||""}),(0,a.jsx)(o.Z,{partner:null==m?void 0:null===(t=m.rentalInfo)||void 0===t?void 0:t.PartnerName,userName:(null==c?void 0:c.userName)||""}),(0,a.jsx)(p,{extras:f,loading:b,setLoading:I,token:u}),(0,a.jsx)(l.Z,{userData:c})]})}}},function(e){e.O(0,[714,64,775,900,822,888,774,179],function(){return e(e.s=7001)}),_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.