1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5da49623-7aef-4510-aac2-4896558eb9af",e._sentryDebugIdIdentifier="sentry-dbid-5da49623-7aef-4510-aac2-4896558eb9af")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8422],{695:(e,t,a)=>{"use strict";a.d(t,{j:()=>i});var n=a(95155),r=a(12115),l=a(3522),o=a.n(l),s=a(97282);a(39170),a(37046);let i=function(e){let{children:t,className:a,arrows:l,showDots:i,autoPlay:c=!0,autoPlaySpeed:d=5e3,numberOfItems:u={desktop:1,tablet:1,mobile:1}}=e,m={desktop:{breakpoint:{max:4e3,min:1024},items:u.desktop},tablet:{breakpoint:{max:1023,min:768},items:u.tablet},mobile:{breakpoint:{max:767,min:0},items:u.mobile}},_=r.Children.map(t,(e,t)=>(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{...e.props,className:"".concat(e.props.className||""," ").concat(o().item).trim(),key:t}):e),h=r.Children.count(t),p=u.desktop>1||u.tablet>1||u.mobile>1;return h<=1&&!p?(0,n.jsx)("div",{className:a,children:_}):(0,n.jsx)(s.default,{responsive:m,className:a,swipeable:!0,draggable:!0,showDots:i,ssr:!1,infinite:!0,autoPlay:c,autoPlaySpeed:d,arrows:l,keyBoardControl:!0,transitionDuration:500,customTransition:"transform 0.5s ease-in-out","data-sentry-element":"Carousel","data-sentry-component":"Carrousel","data-sentry-source-file":"Carrousel.tsx",children:_})}},1136:e=>{e.exports={banner:"BQBHeroBanner_banner__nHzV7",content:"BQBHeroBanner_content__Aaa1_",head:"BQBHeroBanner_head__mCjlY",mayus:"BQBHeroBanner_mayus__8GzEu",m0:"BQBHeroBanner_m0___4I7K",staticButton:"BQBHeroBanner_staticButton__cJEhm"}},2154:(e,t,a)=>{"use strict";a.d(t,{default:()=>x});var n=a(95155),r=a(12115),l=a(62682),o=a.n(l),s=a(49018),i=a(63614),c=a(76526),d=a(28452),u=a(87761),m=a(73321),_=a(36939),h=a(79846),p=a(46466);let x=()=>{var e,t,a;let{headerConfig:l}=(0,c.A)(),{footerConfig:x}=(0,d.A)(),{notFound404Config:v}=(()=>{let e=(0,s.jL)(),t=(0,s.GV)(e=>e.notFound404),a=(0,s.GV)(e=>e.site);return(0,r.useEffect)(()=>{t.fetchedData||e((0,p.un)({site:a.site}))},[t.fetchedData,e]),{notFound404Config:t}})(),g=(0,m.useRouter)(),y=(0,_.A)(),b=(0,s.GV)(e=>e.language),f=(0,s.GV)(e=>e.site);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Y,{lang:b.lang.toLowerCase(),ignorePath:!0,showSecondaryNavBar:!y,"data-sentry-element":"Header","data-sentry-source-file":"404.tsx"}),v.htmlContent?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:v.htmlContent}}):(0,n.jsx)("div",{className:o().container,children:(0,n.jsxs)("div",{className:o().content,children:[(0,n.jsx)("img",{src:"../../lighthouse.svg",className:o().contentImg,alt:"Imagen pagina no encontrada"}),(0,n.jsxs)("div",{className:o().textContainer,children:[(0,n.jsx)("span",{className:o().title,children:(0,n.jsx)("strong",{className:o().fontW600,children:null!=(e=v.title)?e:b.dict.pageNotFound})}),(0,n.jsxs)("div",{className:o().buttonContainer,children:[(0,n.jsx)(h.$,{size:"big",variant:"primary",disabled:!1,onClick:()=>{g.push("/".concat(f.site))},children:null!=(t=v.backButtonText)?t:b.dict.purchaseSuccessfullySecondaryButtonText}),v.secondaryButtonUrl&&(0,n.jsx)(h.$,{size:"big",variant:"secondary",disabled:!1,onClick:()=>g.push(v.secondaryButtonUrl),children:null!=(a=v.secondaryButtonText)?a:b.dict.explorePromotions})]})]})]})}),(0,n.jsx)(u.w,{"data-sentry-element":"Footer","data-sentry-source-file":"404.tsx"})]})}},2520:(e,t,a)=>{"use strict";a.d(t,{v:()=>i});var n=a(95155);a(12115);var r=a(23745),l=a(34644),o=a.n(l),s=a(13053);let i=e=>{let{couponName:t,couponBackgroundColor:a,couponTextColor:l}=e;return(0,n.jsxs)("div",{className:"".concat(o().coupon),style:{backgroundColor:a,color:l},"data-sentry-component":"CouponLabel","data-sentry-source-file":"CouponLabel.tsx",children:[(0,n.jsx)(s.I,{name:s.F.DISCOUNT,color:"black",width:16,height:16,className:o().icon,"data-sentry-element":"Icon","data-sentry-source-file":"CouponLabel.tsx"}),(0,n.jsxs)(r.o,{variant:"body big",bold:!0,className:"".concat(o().m0),"data-sentry-element":"Typography","data-sentry-source-file":"CouponLabel.tsx",children:["Aplica cup\xf3n ",t]})]})}},2528:(e,t,a)=>{"use strict";a.d(t,{a:()=>eA});var n=a(70747),r=a(95155);a(12115);var l=a(90766),o=a(34514),s=a(48328),i=a(40210),c=a(6272),d=a(63545),u=a(9328),m=a(93112),_=a(79643),h=a(92354),p=a(94394),x=a(79055),v=a(76180),g=a.n(v);let y=e=>{let{children:t,image:a}=e;return(0,r.jsx)("div",{className:"".concat(g().banner),"data-sentry-component":"InstitutionalImageTextGradientBanner","data-sentry-source-file":"InstitutionalImageTextGradientBanner.tsx",children:(0,r.jsx)("div",{className:g().container,children:(0,r.jsxs)("div",{className:g().row,children:[(0,r.jsx)("div",{className:g().col,children:(0,r.jsx)("img",{src:a.src,alt:a.alt,className:g().image})}),(0,r.jsx)("div",{className:"".concat(g().col," ").concat(g().content),children:(0,r.jsx)("span",{children:t})})]})})})};var b=a(12055),f=a(69952),C=a.n(f),j=a(55120),k=a.n(j),N=a(23745),T=a(13053);let B=e=>{let{text:t}=e;return(0,r.jsxs)("div",{className:"".concat(k().content),"data-sentry-component":"InstitutionalGreenChoiceBannerContentItem","data-sentry-source-file":"InstitutionalGreenChoiceBannerContentItem.tsx",children:[(0,r.jsx)(T.I,{name:T.F.ENERGY_SAVING,color:"white",width:32,height:32,className:k().icon,"data-sentry-element":"Icon","data-sentry-source-file":"InstitutionalGreenChoiceBannerContentItem.tsx"}),(0,r.jsx)(N.o,{variant:"h4",bold:!0,className:"".concat(k().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalGreenChoiceBannerContentItem.tsx",children:t})]})},I=e=>{let{image:t,children:a}=e,n={backgroundImage:"url(".concat(t.url,")")};return(0,r.jsx)("div",{className:"".concat(C().banner),style:n,"data-sentry-component":"InstitutionalGreenChoiceBanner","data-sentry-source-file":"InstitutionalGreenChoiceBanner.tsx",children:(0,r.jsx)("div",{className:"".concat(C().content),children:a.map((e,t)=>(0,r.jsx)(B,{text:e.text}))})})};var w=a(9716),P=a(66780),S=a(21176),A=a.n(S);let D=e=>{let{iframe_map:t,children:a,height:n}=e;return(0,r.jsxs)("div",{className:"".concat(A().sales_point),"data-sentry-component":"InstitutionalSalesPoint","data-sentry-source-file":"InstitutionalSalesPoint.tsx",children:[(0,r.jsx)("div",{className:"".concat(A().map),children:t?(0,r.jsx)("iframe",{src:t,width:"100%",height:n,frameBorder:"0",style:{border:0,position:"static"},allowFullScreen:!0}):"No existe mapa disponbile"}),(0,r.jsx)("div",{className:"".concat(A().content_text),children:a})]})};var E=a(40112),F=a(75705),R=a(87964),L=a(68676),G=a(28442),M=a(13468),V=a.n(M),O=a(27448);let H=e=>
1{let{image:t,title:a,description:n,openModal:l}=e;return(0,r.jsx)(O.default,{image:t,title:a,openModal:l,description:null==n?void 0:n.map(e=>(0,b.A)(e.content)),"data-sentry-element":"BankPromotionCard","data-sentry-component":"BankPromotionsCardBlock","data-sentry-source-file":"BankPromotionsCardBlock.tsx"})};var U=a(54928),Y=a(31854),z=a(53810),W=a.n(z),q=a(96691);let Q=e=>{let{children:t,size:a="big"}=e;return(0,r.jsx)("div",{className:"".concat(W().grid," ").concat("small"===a?W().small:""),"data-sentry-component":"Grid2","data-sentry-source-file":"Grid2.tsx",children:t.map((e,t)=>{let a=eA[e.blockType];return a?(0,r.jsx)(q.A,{startDate:e.startDate,endDate:e.endDate,children:(0,r.jsx)(a,{...e})},t):null})})};var K=a(58734),J=a.n(K);let Z=e=>{let{children:t,size:a="big"}=e;return(0,r.jsx)("div",{className:"".concat(J().grid," ").concat("small"===a?J().small:""),"data-sentry-component":"Grid3","data-sentry-source-file":"Grid3.tsx",children:t.map((e,t)=>{let a=eA[e.blockType];return a?(0,r.jsx)(q.A,{startDate:e.startDate,endDate:e.endDate,children:(0,r.jsx)(a,{...e})},t):null})})};var X=a(5882),$=a(57434),ee=a.n($);let et=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"".concat(ee().grid),"data-sentry-component":"Grid2_30_70","data-sentry-source-file":"Grid2_30_70.tsx",children:t.map((e,t)=>{let a=eA[e.blockType];return a?(0,r.jsx)(q.A,{startDate:e.startDate,endDate:e.endDate,children:(0,r.jsx)(a,{...e})},t):null})})};var ea=a(76374),en=a.n(ea);let er=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"".concat(en().grid),"data-sentry-component":"GridPerks","data-sentry-source-file":"GridPerks.tsx",children:t.map((e,t)=>{let a=eA[e.blockType];return a?(0,r.jsx)(a,{...e},t):null})})};var el=a(29608),eo=a(78272),es=a(26909),ei=a.n(es),ec=a(95514),ed=a(36745),eu=a(5667),em=a(40530),e_=a(54967),eh=a(81726),ep=a(35006),ex=a(99921),ev=a(96267),eg=a(85328),ey=a(7995),eb=a(95640),ef=a(74912),eC=a.n(ef);let ej=e=>{let{title:t,children:a,image:n}=e;return(0,r.jsxs)("div",{className:"".concat(eC().banner),"data-sentry-component":"InstitutionalSustainabilityBanner","data-sentry-source-file":"InstitutionalSustainabilityBanner.tsx",children:[(0,r.jsxs)("div",{className:"".concat(eC().content),children:[(0,r.jsx)(N.o,{variant:"d1",bold:!0,className:"".concat(eC().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalSustainabilityBanner.tsx",children:t}),(0,r.jsx)(N.o,{variant:"h3",className:"".concat(eC().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalSustainabilityBanner.tsx",children:a})]}),(0,r.jsx)("img",{src:n.src,alt:n.alt,width:n.width,height:n.height,className:eC().image})]})},ek=e=>{let{HtmlProps:t}=e;return(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:t.html},"data-sentry-component":"Html","data-sentry-source-file":"Html.tsx"})};var eN=a(51218),eT=a(94374),eB=a(11940),eI=a(99447),ew=a(55283),eP=a(13572),eS=a(34549);let eA={frecuentaCardBlock:eu.FrecuentaCardBlock,carouselBlock:e=>{let{autoPlay:t,speed:a,banners:n}=e,l=new Date,s=n.filter(e=>{let{startDate:t,endDate:a}=e;if(t&&a){let e=new Date(t),n=new Date(a);return l>=e&&l<=n}return t&&!a?l>=new Date(t):!t&&a?l<=new Date(a):!t&&!a||!1});return(0,r.jsx)(o.CustomCarousel,{autoPlayBoolean:t,autoPlaySpeed:a,banners:s.map(e=>{var t,a,n,r,l,o,s,i;let c=(null==(t=e.backgroundImageDesktop)?void 0:t.url)||"",d=(null==(a=e.backgroundImageDesktop)?void 0:a.alt)||"",u=(null==(n=e.backgroundImageDesktop)?void 0:n.width)||0,m=(null==(r=e.backgroundImageDesktop)?void 0:r.height)||0,_=(null==(l=e.backgroundImageMobile)?void 0:l.url)||"",h=(null==(o=e.backgroundImageMobile)?void 0:o.alt)||"",p=(null==(s=e.backgroundImageMobile)?void 0:s.width)||0,x=(null==(i=e.backgroundImageMobile)?void 0:i.height)||0;return{gradientFirstColor:e.gradienteColor1,gradientLastColor:e.gradienteColor2,gradientAngle:e.gradientAngle,typographies:e.typographies,imageDesktop:{url:c,alt:d,height:m,width:u},imageMobile:{url:_,alt:h,height:x,width:p},openNewWindows:e.openNewWindows,url:e.urlBanner}}),"data-sentry-element":"CustomCarousel","data-sentry-component":"CarouselBlock","data-sentry-source-file":"index.tsx"})},headerBlock:h.HeaderBlock,footerBlock:u.FooterBlock,searchBlock:G.SearchBlock,arrivalsAndDeparturesBlock:e=>{let{defaultTab:t,defaultPort:a}=e;return(0,r.jsx)(l.default,{defaultTab:t,defaultPort:a,"data-sentry-element":"ArrivalsAndDeparturesSchedule","data-sentry-component":"ArrivalsAndDeparturesBlock","data-sentry-source-file":"index.tsx"})},newsletterBlock:()=>(0,r.jsx)(F.default,{"data-sentry-element":"Newsletter","data-sentry-component":"NewsletterBlock","data-sentry-source-file":"index.tsx"}),infoCardBlock:p.default,typographyBlock:e=>{var t,a,n;
1let{content:l}=e,o=Array.isArray(l)?l:null!=(n=null!=(a=null==l||null==(t=l.root)?void 0:t.children)?a:null==l?void 0:l.children)?n:[];return(0,r.jsx)("div",{"data-sentry-component":"TypographyBlock","data-sentry-source-file":"TypographyBlock.tsx",children:(0,b.A)(o,V().blockColor)})},dividerBlock:()=>(0,r.jsx)(em.c,{"data-sentry-element":"Divider","data-sentry-component":"DividerBlock","data-sentry-source-file":"DividerBlock.tsx"}),formPurchaseRegretBlock:e=>{let{destinationEmail:t}=e;return(0,r.jsx)(U.default,{destinationEmail:t,"data-sentry-element":"PurchaseRegret","data-sentry-component":"FormPurchaseRegretBlock","data-sentry-source-file":"index.tsx"})},featuredCardBlock:e=>{let{title:t,icon:a,sizeIcon:n,paragraph:l}=e;return(0,r.jsx)(s.default,{title:t,icon:a,sizeType:n,children:l,"data-sentry-element":"InstitutionalFeaturedCard","data-sentry-component":"FeaturedCardBlock","data-sentry-source-file":"index.tsx"})},institutionalTextButtonBannerBlock:x.InstitutionalTextButtonBannerBlock,eventsCardBlock:i.EventsCardBlock,institutionalTextGradientBannerBlock:e=>{let{paragraph:t,backgroundImage:a}=e,n=(null==a?void 0:a.url)||"",l=(null==a?void 0:a.alt)||"",o=(null==a?void 0:a.width)||0,s=(null==a?void 0:a.height)||0;return(0,r.jsx)(y,{children:t.map(e=>(0,b.A)(e.content)),image:{src:n,alt:l,width:o,height:s},"data-sentry-element":"InstitutionalImageTextGradientBanner","data-sentry-component":"InstitutionalTextGradientBannerBlock","data-sentry-source-file":"index.tsx"})},galleryClassesBlock:e=>{let{firstClassTitle:t,imageFirstClass1:a,imageFirstClass2:n,businessTitle:l,imageBusinessClass:o,touristTitle:s,imageTouristClass:i}=e,c=(null==a?void 0:a.url)||"",d=(null==n?void 0:n.url)||"",u=(null==o?void 0:o.url)||"",_=(null==i?void 0:i.url)||"";return(0,r.jsx)(m.default,{firstClassTitle:t,imageFirstClass1:{src:c},imageFirstClass2:{src:d},businessTitle:l,imageBusinessClass:{src:u},touristTitle:s,imageTouristClass:{src:_},"data-sentry-element":"InstitutionalGalleryClasses","data-sentry-component":"GalleryClassesBlock","data-sentry-source-file":"index.tsx"})},institutionalGreenChoiceBannerBlock:e=>{let{backgroundImage:t,bannersContent:a}=e,n=(null==t?void 0:t.url)||"",l=(null==t?void 0:t.alt)||"",o=(null==t?void 0:t.width)||0,s=(null==t?void 0:t.height)||0;return(0,r.jsx)(I,{image:{url:n,alt:l,width:o,height:s},children:a,"data-sentry-element":"InstitutionalGreenChoiceBanner","data-sentry-component":"InstitutionalGreenChoiceBannerBlock","data-sentry-source-file":"index.tsx"})},fleetCardBlock:c.FleetCardBlock,institutionalBannerBlock:w.InstitutionalBannerBlock,perksCardBlock:R.PerksCardBlock,institutionalTitleImageCardBlock:e=>{let{checkOnlyIMG:t,title:a,size:n,url:l,modalTitle:o,modalText:s,backgroundImage:i}=e,c=(null==i?void 0:i.url)||"",d=(null==i?void 0:i.alt)||"",u=(null==i?void 0:i.width)||0,m=(null==i?void 0:i.height)||0;return(0,r.jsx)(P.default,{title:a||"",size:n,image:{src:c,alt:d,width:u,height:m},link:l,modalText:s,modalTitle:o,"data-sentry-element":"InstitutionalImageTitleCard","data-sentry-component":"InstitutionalTitleImageCardBlock","data-sentry-source-file":"index.tsx"})},institutionalSalesPointBlock:e=>{let{height:t,urlMapa:a,children:n}=e;return(0,r.jsx)(D,{iframe_map:a,children:n.map(e=>(0,b.A)(e.content)),height:t,"data-sentry-element":"InstitutionalSalesPoint","data-sentry-component":"InstitutionalSalesPointBlock","data-sentry-source-file":"index.tsx"})},galleryImages1Block:_.GalleryImages1Block,deckCardBlock:d.DeckCardBlock,advertisementCarouselBlock:n.AdvertisementCarouselBlock,perksCarouselBlock:L.PerksCarouselBlock,institutionalFullBannerBlock:e=>{let{title:t,pretitle:a,buttonText:n,urlBanner:l,backgroundImage:o}=e,s=(null==o?void 0:o.url)||"",i=(null==o?void 0:o.alt)||"",c=(null==o?void 0:o.width)||0,d=(null==o?void 0:o.height)||0;return(0,r.jsx)(E.default,{title:t,subtitle:a,image:{src:s,alt:i,width:c,height:d},buttonText:n,link:l,"data-sentry-element":"InstitutionalTextButtonFullBanner","data-sentry-component":"InstitutionalFullBannerBlock","data-sentry-source-file":"index.tsx"})},institutionalTextImageBlock:ed.InstitutionalTextImageBlock,smallBannerBlock:e=>{let{imageMB:t,imageDK:a,openNewWindows:n,urlBanner:l}=e,o=(null==t?void 0:t.url)||"",s=(null==a?void 0:a.url)||"",i=(null==t?void 0:t.alt)||"Sin descripci\xf3n",c=(null==a?void 0:a.alt)||"Sin descripci\xf3n";return(0,r.jsx)(Y.default,{imageMB:{url:o,alt:i,width:(null==t?void 0:t.width)||0,height:(null==t?void 0:t.height)||0},imageDK:{url:s,alt:c,width:(null==a?void 0:a.width)||0,height:(null==a?void 0:a.height)||0},openNewWindows:n,link:l,customBannerClass:"","data-sentry-element":"SmallBanner","data-sentry-component":"SmallBannerBlock","data-sentry-source-file":"index.tsx"})},gridBlock:e=>{let{gridType:t,size:a,children:n}=e;return(0,r.jsx)(r.Fragment,{children:"tipo1"==t?(0,r.jsx)(et,{children:n}):"tipo2"===t?(0,r.jsx)(Q,{size:a,children:n}):"tipo3"===t?(0,r.jsx)(Z,{size:a,children:n}):"tipo4"===t?(0,r.jsx)(X.f,{children:n}):"tipo5"===t?(0,r.jsx)(er,{children:n}):null})},tabsBlock:e=>{let{tabs:t}=e;return(0,r.jsx)(el.default,{tabs:t.map(e=>
1({startDate:e.startDate,endDate:e.endDate,content:e.content,value:e.value,label:e.label,href:e.url})),"data-sentry-element":"Tabs","data-sentry-component":"TabsBlock","data-sentry-source-file":"index.tsx"})},galleryImageTextVerticalBlock:e=>{let{firstColTitle:t,firstColChildren:a,imageFirstClass1:n,imageFirstClass2:l,secondColTitle:o,secondColChildren:s}=e,i=(null==n?void 0:n.url)||"",c=(null==l?void 0:l.url)||"";return(0,r.jsx)("div",{className:ei().grid,"data-sentry-component":"GalleryImageTextVerticalBlock","data-sentry-source-file":"index.tsx",children:(0,r.jsx)(eo.default,{firstColTitle:t,firstColChildren:a,imageFirstClass1:{src:i},imageFirstClass2:{src:c},secondColTitle:o,secondColChildren:s,"data-sentry-element":"InstitutionalGalleryImageTextVertical","data-sentry-source-file":"index.tsx"})})},formContactBlock:e=>{let{destinationEmail:t}=e;return(0,r.jsx)(ep.default,{destinationEmail:t,"data-sentry-element":"ClientAttention","data-sentry-component":"FormContactBlock","data-sentry-source-file":"index.tsx"})},popupsBlock:e=>{let{backgroundImageDesktop:t,backgroundImageMobile:a,url:n}=e,l=(null==t?void 0:t.url)||"",o=(null==a?void 0:a.url)||"";return(0,r.jsx)(ec.default,{imageDesktop:l,imageMobile:o,link:n,"data-sentry-element":"AdvertisementModal","data-sentry-component":"PopupsBlock","data-sentry-source-file":"index.tsx"})},packagesCardBlock:e_.PackageCardBlock,packageCarrouselBlock:eh.PackageCarrouselBlock,hotelCardBlock:ex.HotelCardBlock,bankPromotionCardBlock:H,bankPromotionsCardBlock:H,generalCardBlock:ev.GeneralCardBlock,perksBannersLandingsBlock:eg.PerksBannersLandingsBlock,holidayCardBlock:ey.HolidayCardBlock,secondaryGridBlock:e=>{let{gridType:t,size:a,children:n}=e;return(0,r.jsx)(r.Fragment,{children:"tipo1"==t?(0,r.jsx)(et,{children:n}):"tipo2"===t?(0,r.jsx)(Q,{size:a,children:n}):"tipo3"===t?(0,r.jsx)(Z,{size:a,children:n}):"tipo4"===t?(0,r.jsx)(X.f,{children:n}):null})},institutionalDownloadBannerBlock:e=>{let{title:t,buttonText:a,url:n,backgroundImage:l}=e,o=(null==l?void 0:l.url)||"",s=(null==l?void 0:l.alt)||"",i=(null==l?void 0:l.width)||0,c=(null==l?void 0:l.height)||0;return(0,r.jsx)(eb.default,{title:t.map(e=>(0,b.A)(e.content)),buttonText:a,image:{src:o,alt:s,width:i,height:c},link:n,"data-sentry-element":"InstitutionalDownloadBanner","data-sentry-component":"InstitutionalDownloadBannerBlock","data-sentry-source-file":"index.tsx"})},institutionalSustainabilityBannerBlock:e=>{let{title:t,paragraph:a,backgroundImage:n}=e,l=(null==n?void 0:n.url)||"",o=(null==n?void 0:n.alt)||"",s=(null==n?void 0:n.width)||0,i=(null==n?void 0:n.height)||0;return(0,r.jsx)(ej,{title:t.map(e=>(0,b.A)(e.content)),children:a.map(e=>(0,b.A)(e.content)),image:{alt:o,height:i,width:s,src:l},"data-sentry-element":"InstitutionalSustainabilityBanner","data-sentry-component":"InstitutionalSustainabilityBannerBlock","data-sentry-source-file":"index.tsx"})},htmlBlock:e=>{let{html:t}=e;return(0,r.jsx)(ek,{HtmlProps:{html:t},"data-sentry-element":"Html","data-sentry-component":"HtmlBlock","data-sentry-source-file":"index.tsx"})},imageBlock:eN.ImageBlock,carouselCardsBlock:e=>{let{autoPlay:t,speed:a,cards:n}=e;return(0,r.jsx)(eT.default,{autoPlayBoolean:t,autoPlaySpeed:a,packageData:n,"data-sentry-element":"BQBCardsCarousel","data-sentry-component":"CarouselCardsBlock","data-sentry-source-file":"index.tsx"})},carouselHotelesBeagleBlock:eB.default,accordionBlock:eI.AccordionBlock,videoBlock:ew.VideoBlock,webCheckInBlock:e=>{let{publicAccess:t,withFooter:a}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(eP.CheckIn,{publicAccess:t,withFooter:a,"data-sentry-element":"CheckIn","data-sentry-source-file":"index.tsx"})})},parkingBlock:eS.ParkingBlock}},3522:e=>{e.exports={item:"carrousel_item__CARG1"}},5667:(e,t,a)=>{"use strict";a.d(t,{FrecuentaCardBlock:()=>L});var n=a(95155),r=a(12115),l=a(73321),o=a(48915),s=a(49018),i=a(77796),c=a(97505),d=a(36205),u=a(43391),m=a(23745),_=a(84424),h=a.n(_),p=a(73968),x=a(79846),v=a(11434),g=a(49700),y=a.n(g),b=a(44717),f=a(53407),C=a(54091);let j=e=>{var t;let{pill:a,status:r,price:l,priceText:o,currency:s}=e;return(0,n.jsx)(f.M,{status:r,loadingMessage:(0,n.jsx)(b.j,{width:"100%",height:"150px"}),errorMessage:"Ocurri\xf3 un error al cargar el precio. Por favor intenta nuevamente m\xe1s tarde.",idleMessage:"","data-sentry-element":"StatusMessage","data-sentry-component":"FrecuentaCardPrice","data-sentry-source-file":"FrecuentaCardPrice.tsx",children:0!==l&&(0,n.jsxs)("div",{className:y().price_wrapper,children:[a.pillContent&&(0,n.jsx)("div",{className:y().pill_wrapper,children:(0,n.jsx)(p.a,{icon:(null==(t=a.pillIcon)?void 0:t.url)?(0,n.jsx)("img",{src:a.pillIcon.url,alt:a.pillIcon.alt||"icon",width:12,height:12,className:y().pill_icon}):null,content:a.pillContent,color:"blue",variant:"subtle",size:"big"})}),(0,n.jsxs)("div",{className:y().price,children:[(0,n.jsx)(m.U,{variant:"h3",bold:!0,tag:"span",className:"".concat(y().m0," ").concat(y().price_value),dataTestId:C.Y.FRECUENTA.CARD.PRICE_TEXT,currency:s,value:l}),o&&(0,n.jsx)(m.o,{variant:"body small",className:y().m0,children:o})]})]})})};var k=a(2520),N=a(13053),T=a(7896);let B=e=>{let{imageUrl:t,cardPillText:a,cardPromoText:r,cardPromoTitle:l,cardPromoDescription:o,labelStyle:s,visibleRoutes:i,fallbackTravelPath:c,promotions:d,includeCoupon:u,couponName:_,couponBackgroun
1dColor:g,couponTextColor:y,couponValidityText:b,buttonText:f,onButtonClick:B,onCardClick:I}=e;return(0,n.jsxs)("div",{className:h().card,onClick:e=>{!e.target.closest('\n a,\n button,\n input,\n textarea,\n select,\n [role="button"],\n [data-prevent-card-click]\n ')&&I&&I()},"data-testid":C.Y.FRECUENTA.CARD.ROOT,"data-sentry-component":"FrecuentaCardView","data-sentry-source-file":"FrecuentaCardView.tsx",children:[(0,n.jsxs)("div",{className:h().image,style:{backgroundImage:"url(".concat(t,")")},children:[a&&(0,n.jsx)("span",{className:h().image_tag,children:(0,n.jsx)(p.a,{content:a,color:"blue",variant:"solid",size:"big"})}),r&&(0,n.jsx)("div",{className:h().label,style:s,children:(0,n.jsx)("div",{className:h().m0,children:r})})]}),(0,n.jsxs)("div",{className:h().content_wrapper,children:[(0,n.jsxs)("div",{className:h().content,children:[(0,n.jsx)("div",{className:h().m0,children:l}),i.length>0?(0,n.jsx)(T._X,{routes:i}):c?(0,n.jsx)(v.U,{origin:c.origin,destination:c.destination,icon:N.F.DIRECTIONS_BOAT}):null,(0,n.jsx)("div",{className:h().m0,children:o}),(0,n.jsx)("div",{className:h().divider}),d.length>0?d.map(e=>(0,n.jsx)(j,{pill:e.pill,status:e.status,price:e.price,currency:e.currency,priceText:e.priceText},e.key)):(0,n.jsx)(m.o,{variant:"body small",children:"No hay promociones disponibles."}),(0,n.jsx)("div",{className:h().divider}),u&&_&&(0,n.jsxs)("div",{className:h().coupon_wrapper,children:[(0,n.jsx)(k.v,{couponBackgroundColor:g,couponTextColor:y,couponName:_}),""!==b&&(0,n.jsx)("div",{className:h().coupon_validity,"data-prevent-card-click":!0,children:(0,n.jsx)(m.o,{variant:"body small",tag:"span",className:h().m0,children:b})})]})]}),(0,n.jsx)("div",{className:h().cta_wrapper,"data-prevent-card-click":!0,children:(0,n.jsx)(x.$,{fullwidth:!0,variant:"primary",size:"big",className:h().cta_button,onClick:B,dataTestId:C.Y.FRECUENTA.CARD.BUY_BTN,"data-sentry-element":"Button","data-sentry-source-file":"FrecuentaCardView.tsx",children:f})})]})]})};var I=a(44966);let w=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,P=e=>!!(e&&w.test(e.trim())),S=(e,t)=>"".concat(e,":").concat(t),A=new Map,D=new Map,E=async(e,t)=>{let a=S(e,t),n=A.get(a);if(n)return n;let r=D.get(a);if(r)return r;let l=(0,u.h)(e,t).then(e=>{let t=null==e?void 0:e.data;return t&&A.set(a,t),t}).finally(()=>{D.delete(a)});return D.set(a,l),l},F=e=>{var t,a,u,m,_,h,p,x,v,g,y,b;let{frecuentaCard:f}=e,C=(0,o.H)(),[j,k]=(0,r.useState)({}),N=(0,r.useRef)(!1),T=(0,r.useRef)(!1),w=(0,l.useRouter)(),D=(0,s.jL)(),{site:F}=(0,s.GV)(e=>e.site),{frecuentaAuth:R,edeaAuth:L}=(0,s.GV)(e=>e.authentication),G=(0,s.GV)(e=>e.authentication.status),{image:M,cardPillText:V,upgradeLabelBackgroundColor:O,upgradeLabelColor:H,cardPromoText:U,cardPromoTitle:Y,cardPromoDescription:z,currency:W,searchParameters:q,openModalChecked:Q,portPairs:K,manuallyConfiguredRoutes:J,promotions:Z,includeCoupon:X,couponName:$,couponBackgroundColor:ee,couponTextColor:et,couponValidityText:ea,buttonText:en,buttonLink:er}=f,el=C||W||"USD",eo=""!==F?"/".concat(F,"/subscriptions"):"/int/subscriptions",es=(null==q||null==(t=q.origin)?void 0:t.id)||"",ei=(0,r.useMemo)(()=>{var e;if(!Q)return"";let t=(null==(e=q.frecuentaCapacity)?void 0:e.id)||"";return P(t)?t:""},[null==(a=q.frecuentaCapacity)?void 0:a.id,Q]),ec=(0,r.useMemo)(()=>ei?[ei]:[],[ei]).join("|"),ed=!!ei,eu=(0,r.useMemo)(()=>{var e,t,a,n;return{originId:(null==(e=q.origin)?void 0:e.id)||"",destinationId:(null==(t=q.destination)?void 0:t.id)||"",frecuentaCapacity:(null==(a=q.frecuentaCapacity)?void 0:a.id)||"",frecuentaQuantity:(null==(n=q.frecuentaCuantity)?void 0:n.id)||""}},[null==(u=q.destination)?void 0:u.id,null==(m=q.frecuentaCapacity)?void 0:m.id,null==(_=q.frecuentaCuantity)?void 0:_.id,null==(h=q.origin)?void 0:h.id]);(0,r.useEffect)(()=>{Q&&D((0,i.Hm)(eu))},[eu,D,Q]),(0,r.useEffect)(()=>{if(!ed)return;let e=!(null==R?void 0:R.token)&&("idle"===G.frecuenta||"succeeded"===G.frecuenta||"loading"===G.frecuenta&&!N.current),t=!(null==L?void 0:L.token)&&("idle"===G.edea||"succeeded"===G.edea||"loading"===G.edea&&!T.current);e&&(N.current=!0,D((0,c.vc)())),t&&(T.current=!0,D((0,c.Jn)()))},[G.edea,G.frecuenta,D,null==L?void 0:L.token,null==R?void 0:R.token,ed]),(0,r.useEffect)(()=>{(null==R?void 0:R.token)&&(N.current=!1)},[null==R?void 0:R.token]),(0,r.useEffect)(()=>{(null==L?void 0:L.token)&&(T.current=!1)},[null==L?void 0:L.token]),(0,r.useEffect)(()=>{let e=ec?ec.split("|"):[];if(!e.length||!(null==R?void 0:R.token)||!(null==L?void 0:L.token))return void k({});let t=!0,a=e.reduce((e,t)=>
1{let a=A.get(S(t,el));return e[t]=a?{status:"succeeded",product:a}:{status:"loading"},e},{});k(a);let n=e.filter(e=>!A.has(S(e,el)));if(n.length)return Promise.all(n.map(async e=>{try{let t=await E(e,el);return{productId:e,status:t?"succeeded":"failed",product:t}}catch(t){return{productId:e,status:"failed"}}})).then(e=>{t&&k(e.reduce((e,t)=>(e[t.productId]={status:t.status,product:t.product},e),{...a}))}),()=>{t=!1}},[null==L?void 0:L.token,ec,null==R?void 0:R.token,el]);let em=(0,r.useMemo)(()=>{var e,t,a,n,r,l,o,s;return(0,I.hp)((null==q||null==(e=q.origin)?void 0:e.id)==="1"?null==q||null==(t=q.origin)?void 0:t.name:null==q||null==(a=q.origin)?void 0:a.id,null==q||null==(n=q.origin)?void 0:n.name,(null==q||null==(r=q.destination)?void 0:r.id)==="1"?null==q||null==(l=q.destination)?void 0:l.name:null==q||null==(o=q.destination)?void 0:o.id,null==q||null==(s=q.destination)?void 0:s.name)},[null==q||null==(p=q.destination)?void 0:p.id,null==q||null==(x=q.destination)?void 0:x.name,null==q||null==(v=q.origin)?void 0:v.id,null==q||null==(g=q.origin)?void 0:g.name]),e_=(0,r.useMemo)(()=>(0,I.CC)(K,es),[K,es]),eh=((e,t,a,n)=>e.length>0?e:t.length>0?t:a.length>0?a:n)((0,r.useMemo)(()=>(0,I.bC)(J),[J]),(0,r.useMemo)(()=>{var e;if(!ei)return[];let t=j[ei];return(null==t?void 0:t.status)!=="succeeded"?[]:(0,I.CC)(null==(e=t.product)?void 0:e.portPairs,es)},[ei,j,es]),e_,em),ep=(null==q||null==(y=q.origin)?void 0:y.name)&&(null==q||null==(b=q.destination)?void 0:b.name)?{origin:q.origin.name,destination:q.destination.name}:void 0,ex=(0,r.useMemo)(()=>Z.map((e,t)=>{var a,n,r,l,o;let s=Q&&P(ei),i=d.Z.parsePriceStringToNumber(e.price||"0"),c=s?j[ei]:void 0,u=null==c||null==(n=c.product)||null==(a=n.price_details)?void 0:a.price,m="failed"===G.frecuenta||"failed"===G.edea,_=!(null==R?void 0:R.token)||!(null==L?void 0:L.token);return{key:"".concat(ei||e.pillText||"promotion","-").concat(t),pill:{pillIcon:(null==(r=e.icon)?void 0:r.url)?{url:e.icon.url,alt:e.icon.alt||""}:void 0,pillContent:(e=>(null==e?void 0:e.trim())||"")(e.pillText)},status:s?m?"failed":_?"loading":(null==c?void 0:c.status)||"loading":0!==i?"succeeded":"idle",price:s&&"number"==typeof u?u:i,currency:s&&(null==c||null==(o=c.product)||null==(l=o.price_details)?void 0:l.currencyCode)?c.product.price_details.currencyCode:el,priceText:(e=>(null==e?void 0:e.trim())||"")(e.priceText)}}),[G.edea,G.frecuenta,null==L?void 0:L.token,j,null==R?void 0:R.token,ei,el,Z,Q]),ev=()=>{if(Q){D((0,i.Hm)(eu)),w.push(eo);return}er&&(window.location.href=er)};return(0,n.jsx)(B,{imageUrl:(null==M?void 0:M.url)||"",cardPillText:V,cardPromoText:U,cardPromoTitle:Y,cardPromoDescription:z,labelStyle:{backgroundColor:O||"#03823E",color:H||"#FFFFFF"},visibleRoutes:eh,fallbackTravelPath:ep,promotions:ex,includeCoupon:X,couponName:$,couponBackgroundColor:ee,couponTextColor:et,couponValidityText:ea,buttonText:en,onButtonClick:ev,onCardClick:ev,"data-sentry-element":"FrecuentaCardView","data-sentry-component":"FrecuentaCard","data-sentry-source-file":"FrecuentaCard.tsx"})};var R=a(12055);let L=e=>{var t,a,r,l;let{dynamicField:o,backgroundImage:s,origin:i,destination:c,cardPillText:d,upgradeLabelBackgroundColor:u,upgradeLabelColor:m,cardPromoText:_,cardPromoTitle:h,cardPromoDescription:p,currencyText:x,originObject:v,destinationObject:g,visibleRoutes:y,frecuentaCapacity:b,frecuentaCuantity:f,promotions:C,includeCoupon:j,couponsCampaign:k,buttonText:N,buttonLink:T}=e,B=(null==s?void 0:s.url)||"",I=(null==s?void 0:s.alt)||"",w=(null==s?void 0:s.width)||0,P=(null==s?void 0:s.height)||0,S=new Date,A="",D="",E="",L="";if(k&&k.couponValidFrom&&k.couponValidTo){let e=new Date(k.couponValidFrom),t=new Date(k.couponValidTo);e<=S&&t>=S&&(j=!0,A=k.couponName||"",D=k.couponBackgroundColor||"",E=k.couponTextColor||"",L=(e=>"string"!=typeof e||""===e.trim()?"":e)(k.validityText))}let G=(null==_||null==(a=_[0])||null==(t=a.content)?void 0:t.length)?(0,R.A)(_[0].content):void 0,M=(0,R.A)((null==h||null==(r=h[0])?void 0:r.content)||[]),V=(0,R.A)((null==p||null==(l=p[0])?void 0:l.content)||[]);return(0,n.jsx)(F,{frecuentaCard:{image:{url:B,alt:I,width:w,height:P}
1,cardPillText:d,upgradeLabelBackgroundColor:u,upgradeLabelColor:m,cardPromoText:G,cardPromoTitle:M,cardPromoDescription:V,currency:o?"":x||"USD",searchParameters:{origin:o?v||"":{id:"1",name:i||""},destination:o?g||"":{id:"1",name:c||""},frecuentaCapacity:o?b:{id:"1",name:""},frecuentaCuantity:o?f:{id:"1",name:""}},openModalChecked:o,manuallyConfiguredRoutes:o&&y||[],promotions:C||[],includeCoupon:j,couponName:A,couponBackgroundColor:D,couponTextColor:E,couponValidityText:L,buttonText:N||"",buttonLink:T||""},"data-sentry-element":"FrecuentaCard","data-sentry-component":"FrecuentaCardBlock","data-sentry-source-file":"index.tsx"})}},5882:(e,t,a)=>{"use strict";a.d(t,{f:()=>i});var n=a(95155);a(12115);var r=a(13622),l=a.n(r),o=a(2528),s=a(96691);let i=e=>{let{children:t}=e;return(0,n.jsx)("div",{className:"".concat(l().grid),"data-sentry-component":"Grid4","data-sentry-source-file":"Grid4.tsx",children:t.map((e,t)=>{let a=o.a[e.blockType];return a?(0,n.jsx)(s.A,{startDate:e.startDate,endDate:e.endDate,children:(0,n.jsx)(a,{...e})},t):null})})}},5960:e=>{e.exports={container:"extendedBlock_container__UMjr7",small_centered_wrapper:"extendedBlock_small_centered_wrapper__USTx0"}},6272:(e,t,a)=>{"use strict";a.d(t,{FleetCardBlock:()=>x});var n=a(95155);a(12115);var r=a(23745),l=a(38952),o=a.n(l),s=a(73968),i=a(14870),c=a(68268),d=a.n(c);let u=e=>{let{title:t,value:a}=e;return(0,n.jsxs)("div",{className:"".concat(d().header),"data-sentry-component":"InstitutionalFleetCardHeaderBlock","data-sentry-source-file":"InstitutionalFleetCardHeaderBlock.tsx",children:[(0,n.jsx)(r.o,{variant:"body medium",bold:!0,className:"".concat(d().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalFleetCardHeaderBlock.tsx",children:t}),a&&(0,n.jsx)(r.o,{variant:"body big",className:"".concat(d().m0),children:a})]})};var m=a(8220),_=a.n(m);let h=e=>{let{text:t,value:a,flexColumn:l}=e;return(0,n.jsxs)("div",{className:"".concat(_().body," ").concat(l?_().body_col:_().body_row),"data-sentry-component":"InstitutionalFleetCardBodyBlock","data-sentry-source-file":"InstitutionalFleetCardBodyBlock.tsx",children:[(0,n.jsx)(r.o,{variant:"body small",bold:!0,className:"".concat(_().m0," ").concat(_().text_secondary),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalFleetCardBodyBlock.tsx",children:t}),a&&(0,n.jsx)(r.o,{variant:"body small",className:"".concat(_().m0," ").concat(_().text_secondary),children:a})]})},p=e=>{let{classesChildren:t,image:a,pill:l,title:c,paragraph:d,capacityPassengers:m,capacityDeck:_,maximumHeight:p,sleeveValue:x,lengthValue:v,speedValue:g,powerValue:y,link:b,linkText:f}=e;(0,i.U)("mobile");let C={backgroundImage:"url(".concat(a.src,")")};return(0,n.jsxs)("div",{className:"".concat(o().card),"data-sentry-component":"InstitutionalFleetCard","data-sentry-source-file":"InstitutionalFleetCard.tsx",children:[(0,n.jsx)("div",{className:"".concat(o().image),style:C,children:(0,n.jsx)("span",{className:"".concat(o().image_tag),children:(0,n.jsx)(s.a,{content:l,color:"blue",variant:"subtle",size:"big","data-sentry-element":"Pill","data-sentry-source-file":"InstitutionalFleetCard.tsx"})})}),(0,n.jsxs)("div",{className:"".concat(o().content_wrapper),children:[(0,n.jsxs)("div",{className:o().header,children:[(0,n.jsx)(r.o,{variant:"h4",bold:!0,className:"".concat(o().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalFleetCard.tsx",children:c}),(0,n.jsx)(r.o,{variant:"body medium",className:"".concat(o().m0," ").concat(o().text_secondary),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalFleetCard.tsx",children:d})]}),(0,n.jsx)("div",{className:o().divider}),(0,n.jsxs)("div",{className:o().data,children:[(0,n.jsxs)("div",{className:o().block,children:[(0,n.jsx)(u,{title:"Capacidad de pasajeros",value:m,"data-sentry-element":"InstitutionalFleetCardHeaderBlock","data-sentry-source-file":"InstitutionalFleetCard.tsx"}),(0,n.jsx)("div",{className:o().col,children:(Array.isArray(t)?t:[]).map((e,t)=>(0,n.jsx)(h,{text:e.title,value:e.value,flexColumn:!1},t))})]}),(0,n.jsxs)("div",{className:o().col,children:[(0,n.jsx)(u,{title:"Capacidad de bodega",value:_,"data-sentry-element":"InstitutionalFleetCardHeaderBlock","data-sentry-source-file":"InstitutionalFleetCard.tsx"}),(0,n.jsx)("div",{className:o().flex_col,children:(0,n.jsx)(h,{text:"Altura maxima de ".concat(p,"mts"),value:"",flexColumn:!1,"data-sentry-element":"InstitutionalFleetCardBodyBlock","data-sentry-source-file":"InstitutionalFleetCard.tsx"})})]}),(0,n.jsxs)("div",{className:o().block,children:[(0,n.jsx)(u,{title:"Informaci\xf3n extra",value:"","data-sentry-element":"InstitutionalFleetCardHeaderBlock","data-sentry-source-file":"InstitutionalFleetCard.tsx"}),(0,n.jsxs)("div",{className:o().flex_row,children:[(0,n.jsx)(h,{text:"Manga",value:"".concat(x,"m"),flexColumn:!0,"data-sentry-element":"InstitutionalFleetCardBodyBlock","data-sentry-source-file":"InstitutionalFleetCard.tsx"}),(0,n.jsx)(h,{text:"Eslora",value:"".concat(v,"m"),flexColumn:!0,"data-sentry-element":"InstitutionalFleetCardBodyBlock","data-sentry-source-file":"InstitutionalFleetCard.tsx"}),(0,n.jsx)(h,{text:"Velocidad",value:"".concat(g," nudos"),flexColumn:!0,"data-sentry-element":"InstitutionalFleetCardBodyBlock","data-sentry-source-file":"InstitutionalFleetCard.tsx"}),(0,n.jsx)(h,{text:"Potencia",value:"".concat(y," Kw"),flexColumn:!0,"data-sentry-element":"InstitutionalFleetCardBodyBlock","data-sentry-source-file":"InstitutionalFleetCard.tsx"})]})]}),b&&(0,n.jsx)("a",{href:b,children:(0,n.jsx)(r.o,{variant:"body big",bold:!0,className:"".concat(o().m0," ").concat(o().link),children:f})})]})]})]})},x=e=>{let{title:t,pill:a,paragraph:r,backgroundImage:l,capacityPassengers:o,capacityDeck:s,maximumHeight:i,sleeveValue:c,lengthValue:d,speedValue:u,powerValue:m,classesChildren:_,link:h,linkText:x}=e,v=(null==l?void 0:l.url)||"";return null==l||l.alt,null==l||l.width,null==l||l.height,(0,n.jsx)(p,{title:t,pill:a,paragraph:r,image:{src:v},capacityPassengers:o,capacityDeck:s,maximumHeight:i,sleeveValue:c,lengthValue:d,speedValue:u,powerValue:m,classesChildren:_,link:h,linkText:x,"data-sentry-element":"InstitutionalFleetCard","data-sentry-component":"FleetCardBlock","data-sentry-source-file":"index.tsx"})}},7044:e=>{e.exports={m0:"successResponse_m0__PU3y7",success_message_content:"successResponse_success_message_content__pOVIK",success_message:"successResponse_success_message__VitUE",secondary_text:"successResponse_secondary_text__pZt6b"}},7896:(e,t,a)=>{"use strict";a.d(t,{_X:()=>_,CC:()=>h.CC}
1);var n=a(95155),r=a(12115),l=a(13053),o=a(22431),s=a(23745),i=a(56462),c=a.n(i);let d=e=>{let{className:t=""}=e;return(0,n.jsxs)("span",{className:"".concat(c().separator," ").concat(t),"aria-hidden":"true","data-sentry-component":"FrecuentaRouteSeparator","data-sentry-source-file":"FrecuentaRouteSeparator.tsx",children:[(0,n.jsx)("span",{children:"âº"}),(0,n.jsx)("span",{children:"â¹"})]})};var u=a(9620),m=a.n(u);let _=e=>{let{routes:t,className:a=""}=e;return(0,n.jsx)("div",{className:"".concat(m().routes," ").concat(a),"data-sentry-component":"FrecuentaRoutes","data-sentry-source-file":"FrecuentaRoutes.tsx",children:t.map((e,t)=>{let a=e.stops.map(e=>e.description||e.code).join(" >< ");return(0,n.jsx)(o.m,{title:(e=>(0,n.jsx)("span",{className:m().tooltipRoute,"data-sentry-component":"renderRouteTooltip","data-sentry-source-file":"FrecuentaRoutes.tsx",children:e.stops.map((t,a)=>(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)("span",{children:t.description||t.code}),a<e.stops.length-1&&(0,n.jsx)(d,{})]},"".concat(t.code,"-").concat(a)))}))(e),placement:"bottom-start",children:(0,n.jsxs)("div",{className:m().routeItem,"aria-label":a,children:[(0,n.jsx)(l.I,{name:l.F.SHIP,color:"gray",width:16,height:16,className:m().routeIcon}),e.stops.map((t,a)=>(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(s.o,{variant:"body big",bold:!0,tag:"span",className:"".concat(m().m0," ").concat(m().routeStop),children:t.code}),a<e.stops.length-1&&(0,n.jsx)(d,{})]},"".concat(t.code,"-").concat(a)))]})},"".concat(e.stops.map(e=>e.code).join("-"),"-").concat(t))})})};var h=a(44966)},7995:(e,t,a)=>{"use strict";a.d(t,{HolidayCardBlock:()=>m});var n=a(95155);a(12115);var r=a(23232),l=a.n(r),o=a(73968),s=a(14870),i=a(73321),c=a(84455);let d=e=>{let{holidayDate:t,content:a,image:r,url:d,buttonText:u,openWindows:m}=e,_=(0,s.U)("mobile");(0,i.useRouter)();let h={backgroundImage:"url(".concat(r.src,")")};return(0,n.jsxs)("div",{className:"".concat(l().card),onClick:e=>{!e.target.closest('\n a,\n button,\n input,\n textarea,\n select,\n [role="button"],\n [data-prevent-card-click]\n ')&&d&&(m?window.open(d,"_blank"):window.location.href=d)},"data-sentry-component":"HolidayCard","data-sentry-source-file":"HolidayCard.tsx",children:[(0,n.jsx)("div",{className:"".concat(l().image),style:h,children:(0,n.jsx)("span",{className:"".concat(l().image_tag),children:(0,n.jsx)(o.a,{content:t,color:"blue",variant:"solid",size:"big","data-sentry-element":"Pill","data-sentry-source-file":"HolidayCard.tsx"})})}),(0,n.jsxs)("div",{className:"".concat(l().content_wrapper),children:[(0,n.jsx)("div",{className:"".concat(l().content),children:(0,n.jsx)("span",{children:a})}),(0,n.jsxs)("div",{className:"".concat(l().mt_05," ").concat(l().content),children:[(0,n.jsx)("div",{className:"".concat(l().divider)}),(0,n.jsx)(c.N,{href:d,fullwidth:_,size:"big",target:m?"_blank":"","data-sentry-element":"Link","data-sentry-source-file":"HolidayCard.tsx",children:u||"Comprar"})]})]})]})};var u=a(12055);let m=e=>{let{holidayDate:t,content:a,backgroundImage:r,buttonText:l,openNewWindows:o,buttonLink:s}=e,i=(null==r?void 0:r.url)||"",c=(null==r?void 0:r.alt)||"",m=(null==r?void 0:r.width)||0,_=(null==r?void 0:r.height)||0;return(0,n.jsx)(d,{holidayDate:t,content:a.map(e=>(0,u.A)(e.content)),image:{alt:c,height:_,width:m,src:i},buttonText:l,openWindows:o,url:s,"data-sentry-element":"HolidayCard","data-sentry-component":"HolidayCardBlock","data-sentry-source-file":"index.tsx"})}},8220:e=>{e.exports={body:"InstitutionalFleetCardBodyBlock_body___Rba2",body_col:"InstitutionalFleetCardBodyBlock_body_col__DUSH3",body_row:"InstitutionalFleetCardBodyBlock_body_row__vKdII",m0:"InstitutionalFleetCardBodyBlock_m0__tsTkR",text_secondary:"InstitutionalFleetCardBodyBlock_text_secondary__mFl_L"}},8640:e=>{e.exports={flex:"InstitutionalTextImage_flex__SRCSp",reverse:"InstitutionalTextImage_reverse__kOC_J",flex_1:"InstitutionalTextImage_flex_1__bj06c",flex_5:"InstitutionalTextImage_flex_5__YsGlN",flex_6:"InstitutionalTextImage_flex_6__HmQNy",align_items_center:"InstitutionalTextImage_align_items_center__AL7Wb",img:"InstitutionalTextImage_img__5jYmO",content:"InstitutionalTextImage_content__rxKKZ",title_wrapper:"InstitutionalTextImage_title_wrapper__vzhWy",m0:"InstitutionalTextImage_m0__TfIRu",text_secondary:"InstitutionalTextImage_text_secondary__KnEnM",footer
1:"InstitutionalTextImage_footer__5j4v5",flex_item:"InstitutionalTextImage_flex_item__z_3Hk",mb_reverse:"InstitutionalTextImage_mb_reverse__tAslr"}},9328:(e,t,a)=>{"use strict";a.d(t,{FooterBlock:()=>l});var n=a(95155);a(12115);var r=a(87761);let l=()=>(0,n.jsx)(r.w,{"data-sentry-element":"Footer","data-sentry-component":"FooterBlock","data-sentry-source-file":"index.tsx"})},9620:e=>{e.exports={routes:"frecuentaRoutes_routes__UsZYG",routeItem:"frecuentaRoutes_routeItem__EvK2f",routeIcon:"frecuentaRoutes_routeIcon__LFBWo",routeStop:"frecuentaRoutes_routeStop__82dLI",tooltipRoute:"frecuentaRoutes_tooltipRoute__SImp2",m0:"frecuentaRoutes_m0__0fbQ1"}},9716:(e,t,a)=>{"use strict";a.d(t,{InstitutionalBannerBlock:()=>c});var n=a(95155);a(12115);var r=a(55248),l=a.n(r),o=a(23745),s=a(14870);let i=e=>{let{title:t,subtitle:a,image:r,imageMobile:i}=e,c=(0,s.U)("mobile");return(0,n.jsxs)("div",{className:"".concat(l().hero),"data-sentry-component":"InstitutionalHeroBanner","data-sentry-source-file":"InstitutionalHeroBanner.tsx",children:[(0,n.jsx)("img",{src:c?i.src:r.src,alt:c?i.alt:r.alt,width:c?i.width:r.width,height:c?i.height:r.height,className:"".concat(l().image)}),(0,n.jsx)("div",{className:"".concat(l().container),children:(0,n.jsxs)("div",{className:"".concat(l().content),children:[(0,n.jsx)(o.o,{variant:"d1",bold:!0,className:"".concat(l().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalHeroBanner.tsx",children:t}),a&&(0,n.jsx)(o.o,{variant:"body big",className:"".concat(l().m0),children:a})]})})]})},c=e=>{let{title:t,paragraph:a,backgroundImage:r,backgroundImageMobile:l}=e,o=(null==r?void 0:r.url)||"",s=(null==r?void 0:r.alt)||"",c=(null==r?void 0:r.width)||0,d=(null==r?void 0:r.height)||0,u=(null==l?void 0:l.url)||"",m=(null==l?void 0:l.alt)||"",_=(null==l?void 0:l.width)||0,h=(null==l?void 0:l.height)||0;return(0,n.jsx)(i,{title:t,subtitle:a,image:{alt:s,height:d,width:c,src:o},imageMobile:{alt:m,width:_,height:h,src:u},"data-sentry-element":"InstitutionalHeroBanner","data-sentry-component":"InstitutionalBannerBlock","data-sentry-source-file":"index.tsx"})}},11828:()=>{},11940:(e,t,a)=>{"use strict";a.d(t,{default:()=>d});var n=a(95155),r=a(12115);let l={Argentina:"https://www.buquebusturismo.com",Uruguay:"https://www.buquebusturismo.com.uy",AgenciaArgentina:"https://agencias.buquebus.com",AgenciaUruguay:"https://agencias.buquebus.com.uy"};var o=a(34318);let s=async(e,t,a,n,r)=>{let s=l[e],i="".concat(s,"/buque-site/siteTurismoHomePromociones.do?")+"method=obtenerZonaPromocionesHomeById&siteZonaId=".concat(n)+"&codPaisSite=".concat(t)+"&codCiudadSalida=".concat(a)+"&zonaTarifario=".concat("BUE"===a?"ARGENTINA":"URUGUAY")+"&codCanalVenta=SITE_UF"+"&codMoneda=".concat(r);try{let e=await fetch(i),t=await e.arrayBuffer(),a=new TextDecoder("iso-8859-1").decode(t),l=JSON.parse(a);return null!==l&&l.promociones?l.promociones.map(e=>{let t="".concat(s,"/buque-site/siteTurismoHome.do?")+"method=formCotizacionPromocion&codPromocion=".concat(e.promocion,"&zona=").concat(n)+"&utm_campaign=preventa&utm_medium=landingpromo&utm_source=buquebus&utm_content=".concat(e.codigo);return{title:(null==e?void 0:e.descPrestador)||"",hotel:(null==e?void 0:e.descBasePrecio)||"",location:(null==e?void 0:e.ciudad)||"",starAmount:e.valorCatPrestador,nightsAmount:(null==e?void 0:e.duracionEstadia)||1,confirmationText:(null==e?void 0:e.descripcion)||"",perPersonPrice:"ARS"===r?e.montoRedondeado||"":(null==e?void 0:e.montoDolares)||"",currency:(null==e?void 0:e.codMoneda)||"",labelPrice:e.descBasePrecio,discount:(null==e?void 0:e.valorDescontado)||"",checkPillNight:(null==e?void 0:e.duracionEstadia)>=1,includePill:(null==e?void 0:e.ciudad)||"",link:t||"",image:{src:e.imagePromo}}}):[]}catch(e){return o.V.error("Error durante obtenci\xf3n de promociones: ",e),[]}};var i=a(695),c=a(43196);a(72874);let d=e=>{let{autoPlay:t,speed:a,urlBase:l,country:o,city:d,codeZone:u,currency:m,footerPrice:_}=e,[h,p]=(0,r.useState)([]),[x,v]=(0,r.useState)(!0),[g,y]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=!0;return(async()=>{v(!0);try{let t=await s(l,o,d,u,m);e&&p(t||[])}catch(t){e&&y(t)}finally{v(!1)}})(),()=>{e=!1}},[o,d,u,m]),x)?(0,n.jsx)("div",{children:"Cargando hoteles..."}):(0,n.jsx)(i.j,{className:"carousel_hoteles",autoPlay:t,autoPlaySpeed:a,arrows:!0,numberOfItems:{desktop:4,tablet:2,mobile:1},"data-sentry-element":"Carrousel","data-sentry-component":"CarouselHotelesBeagleBlock","data-sentry-source-file":"CarouselHotelesBeagleBlock.tsx",children:h.map((e,t)=>(0,n.jsx)(c.d,{title:e.title,hotel:e.hotel,checkPillNight:e.checkPillNight,nightsAmount:e.nightsAmount,starAmount:e.starAmount,location:e.location,discount:e.discount,currency:e.currency,perPersonPrice:e.perPersonPrice,labelPrice:_||e.labelPrice,includePill:e.includePill,link:e.link,image:e.image,titleAcordion:"Ver m\xe1s",textBoton:"Comprar",confirmationText:[e.confirmationText],highlighted:e.highlighted||!1,highlightedImageIcon:e.highlightedImageIcon,highlightedTextOnHover:e.highlightedTextOnHover,openNewWindows:!1},t))})}},13622:e=>{e.exports={grid:"Grid4_grid__WkAXA"}},13634:e=>{e.exports={table:"routesDetails_table__OzZZi"}},14259:(e,t,a)=>{"use strict";a.d(t,{M5:()=>_,TJ:()=>k,ai:()=>x,F6:()=>B,O_:()=>o});var n=a(95155),r=a(12115);let l=(0,r.createContext)(void 0),o=e=>{let{children:t,activeTab:a,onChangeTab:r}=e;return(0,n.jsx)(l.Provider,{value:{activeTab:a,onChangeTab:r},"data-sentry-element":"TabsContext.Provider","data-sentry-component":"TabsProvi
1der","data-sentry-source-file":"TabsContext.tsx",children:t})},s=()=>{let e=(0,r.useContext)(l);if(!e)throw Error("useTabsContext must be used inside TabsProvider");return e},i=e=>{let{children:t,value:a,className:r}=e,{onChangeTab:l}=s();return(0,n.jsx)("div",{onClick:()=>l(a),className:r,"data-sentry-component":"Tab","data-sentry-source-file":"Tab.tsx",children:t})};var c=a(30335),d=a.n(c),u=a(23745),m=a(13053);let _=e=>{let{icon:t,label:a,value:r,iconAlt:l}=e,{activeTab:o}=s();return(0,n.jsxs)(i,{value:r,className:"".concat(o===r&&d().active," ").concat(d().container," ").concat(d().tabContentContainer),"data-sentry-element":"Tab","data-sentry-component":"BasicTab","data-sentry-source-file":"BasicTab.tsx",children:[t&&(0,n.jsx)(m.I,{name:t,alt:l,color:o===r?"lightBlue":""}),(0,n.jsx)(u.o,{variant:"body big",bold:!0,className:"".concat(o===r?d().activeTabTypography:""," ").concat(d().tabTypography),"data-sentry-element":"Typography","data-sentry-source-file":"BasicTab.tsx",children:a})]})};var h=a(82847),p=a.n(h);let x=e=>{let{date:t,content:a,value:r}=e,{activeTab:l}=s(),o=t.toLocaleDateString("es-ES",{weekday:"short",day:"numeric",month:"short"});return(0,n.jsxs)(i,{value:r,className:"".concat(l===r&&p().active," ").concat(p().container),"data-sentry-element":"Tab","data-sentry-component":"DateTab","data-sentry-source-file":"DateTab.tsx",children:[(0,n.jsx)(u.o,{variant:"body small",className:p().date,align:"center","data-sentry-element":"Typography","data-sentry-source-file":"DateTab.tsx",children:o}),""!==a&&(0,n.jsx)(u.o,{variant:"body small",bold:!0,className:p().content,align:"center",children:a})]})};var v=a(40844),g=a.n(v);let y=(0,r.forwardRef)((e,t)=>{let{children:a,className:l}=e;return(0,n.jsx)("div",{ref:t,className:"".concat(g().container," ").concat(l),children:a.map(e=>(0,r.cloneElement)(e,{key:e.props.value}))})});y.displayName="Tabs";var b=a(95804),f=a.n(b),C=a(69730),j=a.n(C);let k=e=>{let{children:t}=e,a=(0,r.useRef)(null),[l,o]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=a.current;if(!e)return;let t=()=>{o(e.scrollWidth>e.clientWidth)};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);let s=j()(f().tabs,{[f()["tabs--scroll"]]:l});return(0,n.jsx)(y,{ref:a,className:s,"data-sentry-element":"Tabs","data-sentry-component":"BasicTabs","data-sentry-source-file":"BasicTabs.tsx",children:t})};var N=a(48576),T=a.n(N);let B=e=>{let{children:t,className:a}=e;return(0,n.jsx)(y,{className:"".concat(T().container," ").concat(a||""),"data-sentry-element":"Tabs","data-sentry-component":"DateTabs","data-sentry-source-file":"DateTabs.tsx",children:t})}},14604:e=>{e.exports={card:"GeneralCard_card__oNC4I",image:"GeneralCard_image__nw4y5",image_tag:"GeneralCard_image_tag__wr1Gq",content_wrapper:"GeneralCard_content_wrapper__e5Hm3",content:"GeneralCard_content__jz8Ne",m0:"GeneralCard_m0__LB8_W",divider:"GeneralCard_divider__Erd2t",row:"GeneralCard_row__D3wHz",link:"GeneralCard_link__g_pJd",button_block_sm:"GeneralCard_button_block_sm__vduRI"}},20478:e=>{e.exports={container:"parkingSearch_container__9JaVJ",searchButton:"parkingSearch_searchButton__AVgr4"}},21176:e=>{e.exports={sales_point:"InstitutionalSalesPoint_sales_point__H5smy",content_text:"InstitutionalSalesPoint_content_text__nmSIc",map:"InstitutionalSalesPoint_map__63Ye7",content:"InstitutionalSalesPoint_content__ddDOh",content_body:"InstitutionalSalesPoint_content_body__hVbXs",m0:"InstitutionalSalesPoint_m0__5AZir"}},22209:(e,t,a)=>{"use strict";a.d(t,{xV:()=>m});var n=a(42399),r=a(90772),l=a(79789),o=a(26060),s=a(57191);let i=/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*(){}[\]|\\~`"':;?/<>,.+=_-]).+$/,c=/^[a-zA-ZñÃáéÃóúÃÃÃÃÃüÃ][a-zA-ZñÃáéÃóúÃÃÃÃÃüÃ\s]*$/,d=/^[a-zA-Z0-9]+$/,u={duplicatePassengerDocument:"El n\xfamero de documento ya fue utilizado en otro pasajero"},m={firstName:()=>n.Yj().required("El nombre es obligatorio").matches(c,"Solo se permiten caracteres alfab\xe9ticos y espacios").min(2,"El nombre debe tener al menos 2 caracteres").max(30,"El nombre debe tener un m\xe1ximo de 30 caracteres"),lastName:()=>n.Yj().required("El apellido es obligatorio").matches(c,"Solo se permiten caracteres alfab\xe9ticos y espacios").min(2,"El apellido debe tener al menos 2 caracteres").max(30,"El apellido debe tener un m\xe1ximo de 30 caracteres").required("El apellido es obligatorio"),email:()=>n.Yj().email("El email no es v\xe1lido").required("El email es obligatorio").matches(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,"El email debe tener un dominio v\xe1lido"),documentCountryId:()=>n.Yj().required("El pa\xeds del documento es obligatorio"),documentTypeId:()=>n.Yj().required("El tipo de documento es obligatorio"),documentNumber:(e,t,a)=>n.Yj().required("El n\xfamero de identificaci\xf3n es obligatorio").matches(/^\d+$/,"Solo se permiten n\xfameros").when("documentTypeId",i=>{let c=r.K.CEDULA_LICENCIA_URUGUAY,d=r.K.DNI_ARGENTINA,m=r.K.RUT_URUGUAY,_=e.find(e=>e.documentValidation===c),h=e.find(e=>e.documentValidation===d),p=e.find(e=>e.documentValidation===m),x=a?(0,s.TG)(a,t,i[0],u):n.Yj();return i[0]===(null==_?void 0:_.id)?n.Yj().matches(/^\d+$/,"Solo se permiten n\xfameros").test("valid-ci","La c\xe9dula ingresada no es v\xe1lida",e=>!!e&&(0,l.S6)(e)).concat(x):i[0]===(null==h?void 0:h.id)?n.Yj().matches(/^\d+$/,"Solo se permiten n\xfameros").test("valid-ci","El documento ingresado no es v\xe1lido",e=>!!e&&(0,o.v)(e)).concat(x):i[0]===(null==p?void 0:p.id)?n.Yj().matches(/^\d+$/,"Solo se permiten n\xfameros").test("valid-ci","El R.U.T ingresado no es v\xe1lido",e=>!!e&&(0,l.EW)(e)).concat(x):n.Yj().min(3,"El n\xfamero de documento debe tener al menos 3 caracteres").matches(/^[a-zA-Z0-9]+$/,"Solo se permiten n\xfameros y letras").concat(x)}),vehicleType:()=>n.Yj().required("El tipo de veh\xedculo es obligatorio"),plateNumber:()=>n.Yj().required("Este campo es obligatorio").min(6,"El n\xfamero de patente debe tener al menos 6 caracteres").max(10,"El n\xfamero de patente debe tener como m\xe1ximo 10 caracteres").matches(d,"Solo se permiten caracteres alfab\xe9ticos y n\xfameros"),phoneCodeArea:()=>n.Yj().required("El c\xf3digo de \xe1rea es obligatorio").matches(/^\d+$/,"Solo se permiten n\xfameros").min(1,"El c\xf3digo de \xe1rea debe tener entre 1 y 5 caracteres").max(5,"El c\xf3digo de \xe1rea debe tener entre 1 y 5 caracteres"),phoneNumber:()=>n.Yj().required("El n\xfamero de tel\xe9fono es obligatorio").matches(/^\d+$/,"Solo se permiten n\xfameros").min(4,"El n\xfamero de tel\xe9fono debe tener al menos 4 caracteres"),brand:()=>n.Yj().required("La marca es obligatoria").matches(d,"Solo se permiten caracteres alfab\xe9ticos y n\xfameros").min(2,"La marca debe tener al menos 2 caracteres").max(50,"La marca debe tener un m\xe1ximo de 50 caracteres"),model:()=>n.Yj().required("El modelo es obligatorio").matches(d,"Solo se permiten caracteres alfab\xe9ticos y n\xfameros").min(1,"El modelo debe tener al menos 1 car\xe1cter").max(50,"El modelo debe tener un m\xe1ximo de 50 caracteres"),password:()=>n.Yj().min(8,"La contrase\xf1a debe tener al menos 8 caracteres").max(50,"No se aceptan m\xe1s de 50 caracteres").matches(i,"La contrase\xf1a debe incluir may\xfasculas, min\xfasculas, n\xfameros y al menos un car\xe1cter especial")}},22431:(e,t,a)=>{"use strict";a.d(t,{m:()=>s});var n=a(95155),r=a(12115),l=a(44114),o=a.n(l);let s=e=>{let{title:t,placement:a="top",children:l}=e,[s,i]=(0,r.useState)(!1);return(0,n.jsxs)("div",{className:o().wrapper,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),"data-sentry-component":"Tooltip","data-sentry-source-file":"Tooltip.tsx",children:[l,s&&(0,n.jsx)("div",{className:"".concat(o().tooltipBox," ").concat(o()["tooltip-".concat(a)]),children:t})]})}},22503:e=>{e.exports={cell:"tableBody_cell__Uw6oJ"}},23232:e=>{e.exports={card:"HolidayCard_card__Z9vdk",image:"HolidayCard_image__R3rBy",image_tag:"HolidayCard_image_tag__1AtSZ",content_wrapper:"HolidayCard_content_wrapper__oF6N8",content:"HolidayCard_content__N06JU",m0:"HolidayCard_m0__J83ij",divider:"HolidayCard_divider__A_IrH"}},24538:e=>{e.exports={perk:"Perk_perk__l7UUG"}},26428:e=>{e.exports={card_wrapper:"InstitutionalImageTitleCard_card_wrapper___AOts",card:"InstitutionalImageTitleCard_card__X528A",medium:"InstitutionalImageTitleCard_medium__ncOBZ",big:"InstitutionalImageTitleCard_big__z985y",small:"InstitutionalImageTitleCard_small__2j9bM","x-small":"InstitutionalImageTitleCard_x-small__mYGHK",image:"InstitutionalImageTitleCard_image__H2nXG",text_secondary:"InstitutionalImageTitleCard_text_secondary__mLkhR",content:"InstitutionalImageTitleCard_content__Y_V0U",m0:"InstitutionalImageTitleCard_m0__tzJ4p",link:"InstitutionalImageTitleCard_link__fuyd_",close_button:"InstitutionalImageTitleCard_close_button__sVPgz"}},26909:e=>{e.exports={grid:"GalleryImageTextVerticalBlock_grid__RGJkF"}},26989:e=>{e.exports={select:"selectPure_select__v66Jg",value:"selectPure_value__tTRyO",placeholder:"selectPure_placeholder__Vr6VV",arrow:"selectPure_arrow__5e3hR",optionsContainer:"selectPure_optionsContainer__KRBBu",fadein:"selectPure_fadein__aTWFn",option:"selectPure_option__EWP2s",optionSelected:"selectPure_optionSelected__w5o66",optionDisabled:"selectPure_optionDisabled__1vV4B"}},27448:(e,t,a)=>{"use strict";a.d(t,{default:()=>u});var n=a(95155);a(12115);var r=a(64104),l=a.n(r),o=a(23745),s=a(36939),i=a(73411),c=a(13053);let d=e=>{let{image:t,title:a,description:r,isMobile:s,hide:i}=e;return(0,n.jsxs)("div",{className:l().modal_container,"data-sentry-component":"BankPromotionCardModal","data-sentry-source-file":"BankPromotionCardModal.tsx",children:[(0,n.jsx)("button",{className:l().close_button,onClick:i,children:(0,n.jsx)(c.I,{name:c.F.CLOSE,color:"white",width:s?18:24,height:s?18:24,"data-sentry-element":"Icon","data-sentry-source-file":"BankPromotionCardModal.tsx"})}),(0,n.jsx)("div",{className:l().modal_image,children:(0,n.jsx)("img",{src:t.url,alt:t.alt||"",className:l().modal_image})}),(0,n.jsxs)("div",{className:l().modal_text,children:[a&&(0,n.jsx)(o.o,{variant:"h3",bold:!0,className:l().m0,children:a}),r&&(0,n.jsx)(o.o,{variant:"body medium",className:"".concat(l().text_secondary," ").concat(l().m0),children:r})]})]})},u=e=>{let{image:t,title:a,description:r,openModal:c=!1}=e,{show:u,hide:m}=(0,i.h)(),_=(0,s.A)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"".concat(l().card," ").concat(a?l().clickable:l().static),onClick:()=>{c&&u("customModal",d,{image:t,title:a,description:r,isMobile:_,hide:m})},children:[(0,n.jsx)("img",{src:t.url,alt:a||"Payment Method"}),a&&(0,n.jsx)(o.o,{variant:"h5",bold:!0,className:"".concat(l().title," ").concat(l().link),children:a})]})})}},28248:e=>{e.exports={gallery:"InstitutionalGallery1_2_gallery__ZAvis",image_featured:"InstitutionalGallery1_2_image_featured__RdkbO",image2:"InstitutionalGallery1_2_image2__hJHWI",image3:"InstitutionalGallery1_2_image3__bRPWL",col:"InstitutionalGallery1_2_col__IvDZJ",image:"InstitutionalGallery1_2_image__1dfiO"}},28442:(e,t,a)=>{"use strict";a.d(t,{SearchBlock:()=>eT});var n=a(95155),r=a(12115),l=a(47868),o=a.n(l),s=a(29440),i=a(5577),c=a(25235),d=a(16110),u=a(49
1018),m=a(36450),_=a(36939),h=a(73321),p=a(40435),x=a(10625),v=a(44717),g=a(9339);let y=(0,g.createServerReference)("40f85881859556c463ebb853729b07b14285695096",g.callServer,void 0,g.findSourceMapURL,"getVariable");var b=a(8444);a(39170);var f=a(37206);a(72226);var C=a(23745),j=a(1136),k=a.n(j),N=a(79846);let T=e=>{let{image:t,title:a,paragraph:r,buttonText:l,link:o,optionalText:s,ButtonVariant:i}=e,c=(0,h.useRouter)(),d="string"==typeof o&&""!==o.trim(),u={backgroundImage:(null==t?void 0:t.url)?"url(".concat(t.url,")"):void 0};return(0,n.jsx)("div",{className:"".concat(k().banner),style:u,"data-sentry-component":"BQBPerksBanner","data-sentry-source-file":"BQBHeroBanner.tsx",children:(0,n.jsxs)("div",{className:k().content,children:[(0,n.jsxs)("div",{className:k().head,children:[a&&(0,n.jsx)(C.o,{variant:"h1",className:"".concat(k().m0," ").concat(k().mayus),children:a}),r&&(0,n.jsx)(C.o,{variant:"h4",bold:!0,className:"".concat(k().m0),children:r})]}),l&&(d?(0,n.jsx)(N.$,{variant:i,size:"small",className:"".concat(k().no_wrap," ").concat(k().button_smaller_mobile),onClick:()=>{d&&c.push(o)},children:l}):(0,n.jsx)("span",{className:k().staticButton,"aria-hidden":"true",children:l})),s&&(0,n.jsx)(C.o,{variant:"body small",className:"".concat(k().m0),children:s})]})})},B=(0,f.default)(()=>Promise.resolve().then(a.bind(a,97282)),{loadableGenerated:{webpack:()=>[97282]}}),I={desktop:{breakpoint:{max:3e3,min:1024},items:1,slidesToSlide:1},mobile:{breakpoint:{max:1023,min:0},items:1,slidesToSlide:1}},w=()=>{let e=(0,u.GV)(e=>e.search),[t,a]=(0,r.useState)([]);if((0,r.useEffect)(()=>{var t;(null==e||null==(t=e.banners)?void 0:t.length)&&a(e.banners)},[e]),!e||!e.banners)return(0,n.jsx)(n.Fragment,{});let l=e.banners.filter(e=>{let t=new Date,a=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n=e=>{if(!e)return null;let t=new Date(e);return t instanceof Date&&!isNaN(t.valueOf())?t.getTime():null},r=n(e.bannerValidFrom),l=n(e.bannerValidTo);return null!==r&&null!==l?a>=r&&a<=l:null!==r?a>=r:null===l||a<=l});return 0===l.length?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(n.Fragment,{children:e.enableCarousel?(0,n.jsx)(B,{swipeable:!0,draggable:!0,showDots:!1,responsive:I,ssr:!1,infinite:t.length>1,autoPlay:!0,autoPlaySpeed:5e3,arrows:!0,keyBoardControl:!0,transitionDuration:500,customTransition:"transform 0.5s ease-in-out",containerClass:"carousel_perks",children:l.map((e,t)=>(0,n.jsx)(T,{title:e.title,buttonText:e.buttonText,paragraph:e.subtitle,link:e.buttonLink,image:e.imageDesktop,optionalText:e.textBelowButton,ButtonVariant:"primary"},t))}):(0,n.jsx)(n.Fragment,{})})};var P=a(66151),S=a.n(P),A=a(62310),D=a(57136),E=a(59114),F=a(60018),R=a(14870),L=a(34796),G=a.n(L);let M=function(){let e=(0,R.U)("mobile");return(0,n.jsx)("div",{className:G().iframeContainer,style:{height:e?"340px":"140px"},"data-sentry-component":"Search","data-sentry-source-file":"Search.tsx",children:(0,n.jsx)("iframe",{src:"/hotels-widget/index.html",title:"Hotels",className:G().iframe})})},V=function(){return(0,n.jsx)(M,{"data-sentry-element":"Search","data-sentry-component":"UpdateSearchContainer","data-sentry-source-file":"HotelsSearchContainer.tsx"})};var O=a(40637),H=a(86131),U=a(37834),Y=a(36227),z=a(6175),W=a(49448),q=a(29525),Q=a(68636),K=a(54091),J=a(29243),Z=a(80341),X=a(13053);let $=e=>{var t,a,l,o;let{lang:s,nextPage:i,previousPage:c,handleSlideChange:d,tabChange:_,itauUserState:x,disableSearch:v}=e,g=(0,u.jL)(),y=(0,h.useRouter)(),b=(0,u.GV)(e=>e.site),f=(0,u.GV)(e=>e.user),j=(0,u.GV)(e=>e.priceAvailability),k=(0,u.GV)(e=>e.search),T=(0,u.GV)(e=>e.language),B=(0,u.GV)(e=>e.headerBlock),[I,w]=(0,r.useState)(0),P=B.isBank,R=(0,r.useRef)(null),{searchState:L}=(0,J.A)();(0,r.useEffect)(()=>{P&&L.searchType&&O.i[L.searchType]&&w(O.i[L.searchType])},[L.searchType]);let G=()=>{i()},M=(e,t,a)=>{var n,r;g((0,H.dP)(a)),w(e);let l=null==(n=R.current)?void 0:n.children[e];l&&l.scrollIntoView({behavior:"smooth",inline:"center"}),(0,F.m)("view_item",{ecommerce:{itemName:t}});let o=$(t);g((0,U.CD)(o)),x.user&&a==O.R.Miles&&g((0,q.J5)(null==(r=x.user)?void 0:r.miles)),_()},$=e=>{switch(e){case T.dict.pasajes:return"pasajes";case"Daytours":return"dayTours";default:return""}},ee=[{value:"roundTrip",label:T.dict.roundTrip,testId:K.Y.FERRY_TICKETS_SEARCH.ROUNDTRIP_BTN},{value:"oneWay",label:T.dict.onlyOneWay,testId:K.Y.FERRY_TICKETS_SEARCH.ONEWAY_BTN}],et=j.onewayAndReturnTrip?"roundTrip":"oneWay",ea=[{id:O.R.Miles,label:"Solo Millas",testId:K.Y.PORTAL_SEARCH.TABS.BANK_MILES_BTN,icon:(0,n.jsx)(D.P,{name:A.h.DIRECTIONS_BOAT}),content:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:S().searchCalendar,children:[v&&(0,n.jsxs)("div",{className:S().itauValidation,children:[(0,n.jsx)(X.I,{name:X.F.ALERT_CIRCLE_ERROR,color:"gray",height:15,width:15}),(0,n.jsxs)(C.o,{variant:"body medium",className:S().itauValidationText,color:"gray",children:[T.dict.minimumMilesMessage," ",Z.Ih]})]}),(0,n.jsxs)("div",{className:"".concat(S().searchCalendarSelector," ").concat(v?S().disabled:""),onClick:G,children:[(0,n.jsx)("div",{"data-testid":K.Y.FERRY_TICKETS_SEARCH.ORIGIN_BTN,className:S().searchCalendarSelectorInner,children:f.originSelected.name?f.originSelected.name:T.dict.origin}),(0,n.jsx)("div",{"data-testid":K.Y.FERRY_TICKETS_SEARCH.DESTINATION_BTN,className:S().searchCalendarSelectorInner,children:f.destinySelected.name?f.destinySelected.name:T.dict.destination})]})]}),(0,n.jsx)("div",{className:S().searchButton,children:(0,n.jsx)(Y.S,{dataTestId:K.Y.FERRY_TICKETS_SEARCH.SEARCH_BTN,size:"big",fullwidth:!0,variant:"primary",disabled:v,onClick:G,background:B.isBank?B.background:"",textColor:B.isBank?B.textColor:"",borderColor:B.isBank?B.background:"",children:T.dict.search})})]})},{id:O.R.MilesUsd,label:"Millas + USD",testId:K.Y.PORTAL_SEARCH.TABS.BANK_MILES_USD_BTN,icon:(0,n.jsx)(D.P,{name:A.h.DIRECTIONS_BOAT}),content:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:S().searchCalendar,children:["itau"===b.site&&k.searchType==O.R.MilesUsd&&(0,n.jsx)("div",{className:S().itauBlockContainer,children:(0,n.jsxs)("div",{className:S().slideContainer,children:[(0,n.jsx)("div",{className:S().sliderComponent,children:(0,n.jsx)(z.V,{min:1900,max:Math.max((null==(t=x.user)?void 0:t.miles)||0,1901),maxValueDefault:((null==(a=x.user)?void 0:a.milesToExchange)||0)>=Z.Ih?(null==(l=x.user)?void 0:l.milesToExchange)||0:1900,step:100,onChange:d,useMinValue:!1,backgroundColor:B.isBank?B.background:"",dataTestId:K.Y.FERRY_TICKETS_SEARCH.MILES_SLIDER})}),(0,n.jsx)("div",{className:S().sliderText,children:(0,n.jsxs)(C.o,{variant:"body medium",className:S().text,children:["Millas a canjear:"," ",(0,Q.rs)(Math.ceil((null==(o=x.user)?void 0:o.milesToExchange)||0))]})})]})}),v&&(0,n.jsxs)("div",{className:S().itauValidation,children:[(0,n.jsx)(X.I,{name:X.F.ALERT_CIRCLE_ERROR,color:"gray",height:15,width:15}),(0,n.jsxs)(C.o,{variant:"body medium",className:S().itauValidationText,color:"gray",children:[T.dict.minimumMilesMessage," ",Z.Ih]})]}),(0,n.jsxs)("div",{className:"".concat(S().searchCalendarSelector," ").concat(v?S().disabled:""),onClick:G,children:[(0,n.jsx)("div",{"data-testid":K.Y.FERRY_TICKETS_SEARCH.ORIGIN_BTN,className:S().searchCalendarSelectorInner,children:f.originSelected.name?f.originSelected.name:T.dict.origin}),(0,n.jsx)("div",{"data-testid":K.Y.FERRY_TICKETS_SEARCH.DESTINATION_BTN,className:S().searchCalendarSelectorInner,children:f.destinySelected.name?f.destinySelected.name:T.dict.destination})]})]}),(0,n.jsx)("div",{className:S().searchButton,children:(0,n.jsx)(N.$,{dataTestId:K.Y.FERRY_TICKETS_SEARCH.SEARCH_BTN,size:"big",fullwidth:!0,variant:"primary",disabled:v,onClick:G,background:B.isBank?B.background:"",textColor:B.isBank?B.textColor:"",borderColor:B.isBank?B.background:"",children:T.dict.search})})]})}],en=[{id:O.R.Tickets,label:T.dict.pasajes,testId:K.Y.PORTAL_SEARCH.TABS.FERRY_TICKETS_BTN,icon:(0,n.jsx)(D.P,{name:A.h.DIRECTIONS_BOAT,width:16,height:16,className:S().iconStyle,color:0===I?"#076F92":"#606060"}),content:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:S().searchCalendar,children:[(0,n.jsx)(W.A,{options:ee,name:"trip-type-tickets",layout:"row",selectedValue:et,onChange:e=>{if("roundTrip"===e)return void g((0,p.ac)({type:"onewayAndReturnTrip",value:!0}));g((0,m.KN)()),g((0,p.ac)({type:"onewayAndReturnTrip",value:!1}))},wrapperClassName:S().searchCalendarLabels,optionClassName:S().tripWayOption,selectedOptionClassName:S().selected,radioClassName:S().tripWayRadio,selectedOptionColor:P?B.textColor:void 0}),(0,n.jsxs)("div",{className:S().searchCalendarSelector,onClick:G,children:[(0,n.jsx)("div",{"data-testid":K.Y.FERRY_TICKETS_SEARCH.ORIGIN_BTN,className:S().searchCalendarSelectorInner,children:f.originSelected.name?f.originSelected.name:T.dict.origin}),(0,n.jsx)("div",{"data-testid":K.Y.FERRY_TICKETS_SEARCH.DESTINATION_BTN,className:S().searchCalendarSelectorInner,children:f.destinySelected.name?f.destinySelected.name:T.dict.destination})]})]}),(0,n.jsx)("div",{className:S().searchButton,children:(0,n.jsx)(N.$,{dataTestId:K.Y.FERRY_TICKETS_SEARCH.SEARCH_BTN,size:"big",fullwidth:!0,variant:"primary",disabled:!1,onClick:G,children:T.dict.search})})]})},...k.enableDaytours?[{label:"Daytours",testId:K.Y.PORTAL_SEARCH.TABS.DAY_TOURS_BTN,icon:(0,n.jsx)(D.P,{name:A.h.EVENT,width:16,height:16,className:S().iconStyle,color:1===I?"#076F92":"#606060"}),content:(0,n.jsx)("div",{className:"".concat(S().searchContainer," ").concat(S().dayToursSearchContainer),children:(0,n.jsx)(E.k,{onAfterSubmit:()=>{y.push("/".concat(b.site.toLocaleLowerCase(),"/day-tours"))}})})}]:[],...k.enableHotels?[{label:T.dict.hotels,testId:K.Y.PORTAL_SEARCH.TABS.HOTELS_BTN,icon:(0,n.jsx)(D.P,{name:A.h.LOCAL_HOTEL}),content:(0,n.jsx)("div",{className:S().searchContainer,children:(0,n.jsx)(V,{})})}]:[]];return P?(0,n.jsx)("div",{className:S().searchComponentContainer,style:{background:"#FAFAFA"},"data-sentry-component":"SearchMobileComponent","data-sentry-source-file":"index.tsx",children:(0,n.jsx)("div",{className:S().searchComponent,children:(0,n.jsxs)("div",{className:S().tabControl,children:[(0,n.jsx)("div",{className:S().tabs,ref:R,children:ea.map((e,t)=>(0,n.jsxs)("div",{"data-testid":e.testId,className:S().tabItemItau,onClick:()=>
1M(t,e.label,e.id),style:I===t?{borderBottom:"2px solid ".concat(B.background),color:B.background}:{},children:[(0,n.jsx)(D.P,{name:A.h.DIRECTIONS_BOAT,color:I===t?B.background:"#606060"}),(0,n.jsx)("span",{children:e.label})]},t))}),(0,n.jsx)("div",{className:S().content,children:ea[I].content})]})})}):(0,n.jsx)("div",{className:S().searchComponentContainer,"data-sentry-component":"SearchMobileComponent","data-sentry-source-file":"index.tsx",children:(0,n.jsx)("div",{className:S().searchComponent,children:(0,n.jsxs)("div",{className:S().tabControl,children:[(0,n.jsx)("div",{className:S().tabs,ref:R,children:en.map((e,t)=>(0,n.jsxs)("div",{"data-testid":e.testId,className:"".concat(S().tabItem," ").concat(I===t?S().selected:""),onClick:()=>M(t,e.label,e.id||O.R.Tickets),children:[(0,n.jsx)("span",{children:e.icon}),(0,n.jsx)("span",{children:e.label})]},t))}),(0,n.jsx)("div",{className:S().content,children:en[I].content})]})})})};var ee=a(51491),et=a.n(ee),ea=a(88567),en=a(13449),er=a(73411),el=a(92862),eo=a(97846),es=a(39973);let ei=e=>{var t;let{lang:a,handleSlideChange:l,tabChange:o,itauUserState:s}=e,i=(0,u.jL)(),c=(0,u.GV)(e=>e.language),d=(0,h.useRouter)(),m=(0,u.GV)(e=>e.site);(0,u.GV)(e=>e.priceAvailability);let{beforeDateLimit:_}=(0,el.b0)(),[x,v]=(0,r.useState)(!1),{show:g}=(0,er.h)(),y=(0,u.GV)(e=>e.search),{searchState:b}=(0,J.A)(),f=(0,u.GV)(e=>e.headerBlock),[C,j]=(0,r.useState)(0);(0,en.A)(f.textColor);let k=f.isBank;(0,r.useEffect)(()=>{k&&b.searchType&&O.i[b.searchType]&&j(O.i[b.searchType])},[b.searchType]);let N=()=>{if(_)return g("customModal",el.CN);i((0,p.wR)()),i((0,es.TZ)(!1)),i((0,eo.sh)()),v(!0);let e=m.site;d.push("/".concat(e,"/product"))},T=[{id:O.R.Miles,label:"Solo Millas",testId:K.Y.PORTAL_SEARCH.TABS.BANK_MILES_BTN,icon:(0,n.jsx)(D.P,{name:A.h.DIRECTIONS_BOAT}),content:(0,n.jsx)("div",{className:et().searchComponent,children:(0,n.jsx)("div",{className:et().searchCalendar,children:(0,n.jsx)(ea.b,{headerBlock:f,showOneWayReturnOption:!1,switchEditMode:!1,onEditMode:!0,onProductSearch:N,customClass:"searchPage",isEditPage:!1,handleSlideChange:l})})})},{id:O.R.MilesUsd,label:"Millas + USD",testId:K.Y.PORTAL_SEARCH.TABS.BANK_MILES_USD_BTN,icon:(0,n.jsx)(D.P,{name:A.h.DIRECTIONS_BOAT}),content:(0,n.jsx)("div",{className:et().searchComponent,children:(0,n.jsx)("div",{className:et().searchCalendar,children:(0,n.jsx)(ea.b,{headerBlock:f,showOneWayReturnOption:!1,switchEditMode:!1,onEditMode:!0,onProductSearch:N,customClass:"searchPage",isEditPage:!1,handleSlideChange:l})})})}],B=[{id:O.R.Tickets,label:c.dict.pasajes,testId:K.Y.PORTAL_SEARCH.TABS.FERRY_TICKETS_BTN,icon:(0,n.jsx)(D.P,{name:A.h.DIRECTIONS_BOAT,width:16,height:16,className:et().iconStyle,color:0===C?"#076F92":"#606060"}),content:(0,n.jsx)("div",{className:et().searchComponent,children:(0,n.jsx)("div",{className:et().searchCalendar,children:(0,n.jsx)(ea.b,{headerBlock:f,showOneWayReturnOption:!0,switchEditMode:!1,onEditMode:!0,onProductSearch:N,customClass:"searchPage",isEditPage:!1,handleSlideChange:l})})})},...y.enableDaytours?[{label:"Daytours",testId:K.Y.PORTAL_SEARCH.TABS.DAY_TOURS_BTN,icon:(0,n.jsx)(D.P,{name:A.h.EVENT,width:16,height:16,className:et().iconStyle,color:1===C?"#076F92":"#606060"}),content:(0,n.jsx)("div",{className:et().searchContainer,children:(0,n.jsx)(E.k,{onAfterSubmit:()=>d.push("/".concat(m.site.toLocaleLowerCase(),"/day-tours"))})})}]:[],...y.enableHotels?[{label:c.dict.hotels,testId:K.Y.PORTAL_SEARCH.TABS.HOTELS_BTN,icon:(0,n.jsx)(D.P,{name:A.h.LOCAL_HOTEL}),content:(0,n.jsx)("div",{className:et().searchContainer,children:(0,n.jsx)(V,{})})}]:[]],I=(e,t,a)=>{j(e),(0,F.m)("view_item",{ecommerce:{itemName:t}});let n=w(t);if(i((0,U.CD)(n)),s.user&&a==O.R.Miles){var r;i((0,q.J5)(null==(r=s.user)?void 0:r.miles))}i((0,H.dP)(a)),o()},w=e=>{switch(e){case c.dict.pasajes:return"pasajes";case"Daytours":return"dayTours";case c.dict.hotels:return"hoteles";default:return""}};return(0,n.jsx)("div",{"data-sentry-component":"SearchDesktopComponent","data-sentry-source-file":"index.tsx",children:k?(0,n.jsxs)("div",{className:et().tabControl,children:[(0,n.jsx)("div",{className:et().tabs,children:T.map((e,t)=>(0,n.jsxs)("div",{"data-testid":e.testId,className:et().tabItemItau,onClick:()=>
1I(t,e.label,e.id),style:C===t?{borderBottom:"2px solid ".concat(f.background),color:f.background}:{},children:[(0,n.jsx)(D.P,{name:A.h.DIRECTIONS_BOAT,color:C===t?f.background:"#606060"}),(0,n.jsx)("span",{children:e.label})]},t))}),(0,n.jsx)("div",{className:et().content,children:null==(t=T[C])?void 0:t.content})]}):(0,n.jsxs)("div",{className:et().tabControl,children:[(0,n.jsx)("div",{className:et().tabs,children:B.map((e,t)=>(0,n.jsxs)("div",{"data-testid":e.testId,className:"".concat(et().tabItem," ").concat(C===t?et().selected:""),onClick:()=>I(t,e.label,e.id||O.R.Tickets),children:[(0,n.jsx)("span",{children:e.icon}),(0,n.jsx)("span",{style:C===t&&k?{color:b.textColor}:void 0,children:e.label})]},t))}),(0,n.jsx)("div",{className:et().content,children:B[C].content})]})})};var ec=a(11898),ed=a(20466),eu=a(3193),em=a(99661);let e_=e=>{let{urlSearch:t,lang:a,nextPage:l,previousPage:o}=e,s=(0,_.A)(),i=(0,u.GV)(e=>e.headerBlock),c=(0,u.jL)(),[d,h]=(0,r.useState)(!1),[x,v]=(0,r.useState)(!1),g=(0,u.GV)(e=>e.itauUser),y=(0,u.GV)(e=>e.search),{show:b}=(0,em.d)();(0,r.useEffect)(()=>{let e=()=>{h(window.innerWidth<990)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,r.useEffect)(()=>{i.isBank||c((0,H.dP)(O.R.Tickets))},[c,i.isBank]),(0,r.useEffect)(()=>{t||(c((0,ed.L8)()),c((0,ec.Wp)()),c((0,p.Dp)()),c((0,eu.Be)()),c((0,m.sN)("")))},[c,t]),(0,r.useEffect)(()=>{(0,Z.QN)(g,y)?v(!1):v(!0)},[g,y]);let f=()=>{c((0,ed.L8)()),c((0,ec.Wp)()),c((0,p.Dp)()),c((0,m.yx)())},C=e=>{c((0,q.J5)(e.max))};return(0,n.jsx)(n.Fragment,{children:s||d?(0,n.jsx)($,{disableSearch:x,itauUserState:g,handleSlideChange:C,lang:a,tabChange:f,nextPage:l,previousPage:o}):(0,n.jsx)(ei,{itauUserState:g,lang:a,tabChange:f,handleSlideChange:C})})};var eh=a(74638),ep=a.n(eh);let ex=e=>{let{lang:t,nextPage:a,previousPage:r,urlSearch:l}=e,o=(0,_.A)();return(0,n.jsxs)("div",{className:ep().wrapper,"data-sentry-component":"BQBHeroSearchBox","data-sentry-source-file":"BQBHeroSearchBox.tsx",children:[(0,n.jsx)("div",{className:ep().carousel_wrapper,children:!o||window.innerWidth>990?(0,n.jsx)(w,{}):(0,n.jsx)(n.Fragment,{})}),(0,n.jsx)("div",{className:ep().searchContent,children:(0,n.jsx)("div",{className:ep().container,children:(0,n.jsx)(e_,{urlSearch:l,lang:t,nextPage:a,previousPage:r,"data-sentry-element":"SearchComponent","data-sentry-source-file":"BQBHeroSearchBox.tsx"})})})]})};var ev=a(44532),eg=a(85030),ey=a(71170),eb=a(29372);let ef=e=>{var t;let{enableUpsellingModal:a,pricingTermsLink:l,enableMercadoPagoPayment:g,enablePaypalPayment:f,enableBilling:j,ticketClassConfiguration:k,enableTouristClass:N,isBank:T,textColor:B}=e,I=(0,u.jL)(),w=(0,h.usePathname)(),[P,S]=(0,r.useState)(!1),[A,D]=(0,r.useState)(!1),[E,F]=(0,r.useState)(!0),R=(0,u.GV)(e=>e.ports),L=(0,u.GV)(e=>e.user),G=(0,u.GV)(e=>e.language),M=(0,u.GV)(e=>e.products),V=(0,u.GV)(e=>e.edea);(0,u.GV)(e=>e.search);let U=(0,u.GV)(e=>e.headerBlock),z=(0,u.GV)(e=>e.search),W=(0,_.A)(),Q=(0,h.useSearchParams)(),J=(0,h.useRouter)(),[X,$]=(0,r.useState)(0),[ee,et]=(0,r.useState)([]),ea=(0,u.GV)(e=>e.itauUser),en=null==(t=ea.user)?void 0:t.token;(0,eb.b)(),(0,r.useEffect)(()=>{V.fetchedToken&&R.fetchPorts&&("/itau"===w?(F(!1),el()):(I((0,q.vD)()),Q&&Array.from(Q.keys()).length>0?(F(!0),S(!0),ec(),S(!1)):(F(!1),ei())))},[I,V.fetchedToken,R.fetchPorts,ea.status,en]),(0,r.useEffect)(()=>{Object.values(M.vehicles).length>0&&z.vehicles&&et((0,Z.BR)(M.vehicles,z.vehicles))},[M.vehicles,z.vehicles]);let er=()=>{J.push("/")},el=async()=>{if(!A){let e=Q&&Array.from(Q.keys()).length>0?null==Q?void 0:Q.get("token"):"";switch(ea.status){case"failed":I((0,H.dP)(O.R.Tickets)),D(!0),S(!1),I((0,q.vD)());break;case"idle":let t=!1;if(Q&&Array.from(Q.keys()).length>0)if(e)try{I((0,q.VB)(e))}catch(e){t=!0}else t=!0;else t=!0;t&&(I((0,H.dP)(O.R.Tickets)),J.push("/"));break;case"succeeded":I((0,H.dP)(z.searchType==O.R.MilesUsd?O.R.MilesUsd:O.R.Miles)),e&&en&&e!==en&&I((0,q.vD)()),e&&J.replace("/itau")}}},eo=e=>{let t=R.argentinaPorts.filter(t=>e===t.code)[0];return t||(t=R.uruguayPorts.filter(t=>e===t.code)[0]),t},es=e=>Number((null==Q?void 0:Q.get(e))||"0"),ei=async()=>{let e=await y("REDIRECT_TO_BUQUEBUS");if((null==e?void 0:e.toLocaleLowerCase())==="true"){let e=(null==w?void 0:w.split("/")[1])||"int";window.location.href="".concat(b.pc[e]||b.pc.default)}},ec=()=>{let e,t,a={origin:null==Q?void 0:Q.get("origin"),destination:null==Q?void 0:Q.get("destination"),departureDate:null==Q?void 0:Q.get("departureDate"),returnDate:null==Q?void 0:Q.get("returnDate"),returnOrigin:null==Q?void 0:Q.get("returnOrigin"),returnDestination:null==Q?void 0:Q.get("returnDestination")};I((0,p.wR)());let n=!!a.returnDate;a.returnDate&&I((0,m.QT)({type:"returnDateSelected",value:(0,x.i$)(a.returnDate)})),I((0,p.ac)({type:"onewayAndReturnTrip",value:n})),a.origin&&(e=eo(a.origin),I((0,m.gi)(e))),a.destination&&(t=eo(a.destination),I((0,m.km)(t))),a.departureDate&&I((0,m.QT)({type:"oneWayDateSelected",value:(0,x.i$)(a.departureDate)})),[{key:"adultSelected",param:"adults"},{key:"minorSelected",param:"childrens"},{key:"infantSelected",param:"infants"}
1].forEach(e=>{let{key:t,param:a}=e;I((0,m.QT)({type:t,value:es(a)}))}),[{key:"carSelected",param:"cars"},{key:"pickupSelected",param:"vans"},{key:"motorcycleSelected",param:"motorcycles"}].forEach(e=>{let{key:t,param:a}=e;I((0,m.QT)({type:t,value:es(a)}))}),a.returnOrigin&&a.returnDestination&&a.destination!=a.returnOrigin?(I((0,m.QT)({type:"travelFromAnotherDestiny",value:!0})),I((0,m.QT)({type:"anotherOriginCity",value:a.returnOrigin})),I((0,m.QT)({type:"anotherDestinyCity",value:a.returnDestination}))):I((0,m.QT)({type:"travelFromAnotherDestiny",value:!1})),ed(e,t,es("adults"),a.departureDate,a.returnDate,n)&&J.push("".concat(w,"/product"))},ed=(e,t,a,n,r,l)=>{let o=!!(null==e?void 0:e.code)&&!!(null==t?void 0:t.code),s=!!n;return l&&(s=s&&!!r),o&&a>0&&s},eu=()=>{$(X+1)},em=()=>{X>0&&$(X-1)},e_=()=>0==X?(0,n.jsx)(ex,{lang:G.lang,nextPage:eu,previousPage:em,urlSearch:E}):1==X?(0,n.jsx)(d.C,{lang:G.lang,nextPage:eu,backPage:em,argPorts:R.argentinaPorts,uryPorts:R.uruguayPorts}):2==X?(0,n.jsx)(i.c,{hideHeaderFooter:!0,isMobile:W,nextPage:eu,backPage:em,products:M.passengers,closeModal:()=>{},isSearchPage:!1,headerBlock:U}):3==X&&L.travelWithVehicles?(0,n.jsx)(s.S,{isSearchPage:!1,hideHeaderFooter:!0,isMobile:W,nextPage:eu,previousPage:em,products:ee,closeModal:()=>{},headerBlock:U}):4!=X&&(3!=X||L.travelWithVehicles)?void 0:(0,n.jsx)(c.K,{lang:G.lang,backPage:em});return(0,n.jsxs)("div",{className:o().defaultContainer,"data-sentry-component":"HomeComponent","data-sentry-source-file":"index.tsx",children:[(P||"fetchingItauUser"===ea.status)&&(0,n.jsx)(v.F,{}),(0,n.jsx)(ey.z,{dataTestId:K.Y.MODALS.ITAU_EXPIRATION_WARNING.ROOT,modalContentClass:"modalContentWidth320",showModal:A,Header:eg.r,headerProps:{text:G.dict.paymentErrorTitle,closeModal:er,radius:!0,width290:!0},"data-sentry-element":"GenericModal","data-sentry-source-file":"index.tsx",children:(0,n.jsxs)("div",{className:o().errorModalContainer,children:[(0,n.jsx)("div",{className:o().modalBodyContainer,children:(0,n.jsx)(C.o,{className:o().m0,variant:"body medium","data-sentry-element":"Typography","data-sentry-source-file":"index.tsx",children:"".concat(G.dict.itauError)})}),(0,n.jsx)("div",{className:o().errorFooterContainer,children:(0,n.jsx)(Y.S,{dataTestId:K.Y.MODALS.ITAU_EXPIRATION_WARNING.CONTINUE_BTN,size:"small",variant:"primary",onClick:()=>er(),background:U.isBank?U.background:"",textColor:U.isBank?U.textColor:"",borderColor:U.isBank?U.background:"","data-sentry-element":"CustomButton","data-sentry-source-file":"index.tsx",children:G.dict.onlyAccept})})]})}),0==X?e_():(0,n.jsx)(ev.aF,{isOpen:!0,fullScreen:!0,children:e_()})]})};var eC=a(70290),ej=a(35050),ek=a(33322),eN=a(81711);let eT=()=>{let e=(0,u.jL)(),t=(0,u.GV)(e=>e.search),a=(0,u.GV)(e=>e.language),{appURL:l}=(0,ej.A)(),o=(0,h.usePathname)(),[s,i]=(0,r.useState)(o?eN.b[o.split("/")[1]]:"USD");return(0,r.useEffect)(()=>{e((0,ek.MN)(s)),e((0,ek.Qn)(null==o?void 0:o.split("/")[1])),e((0,H.QN)({site:null==o?void 0:o.split("/")[1],appUrl:l,locale:(0,eC.g)(a.lang)})),e((0,H.u3)({site:null==o?void 0:o.split("/")[1],appUrl:l}))},[e]),(0,n.jsx)(ef,{enableUpsellingModal:t.modals.enableUpsellingModal,pricingTermsLink:t.modals.pricingTermsLink,enableMercadoPagoPayment:t.paymentMethods.enableMercadoPagoPayment,enablePaypalPayment:t.paymentMethods.enablePaypalPayment,enableBilling:t.enableBilling,ticketClassConfiguration:t.ticketClassConfiguration,enableTouristClass:t.enableTouristClass,isBank:t.isBank,textColor:t.textColor,"data-sentry-element":"HomeComponent","data-sentry-component":"SearchBlock","data-sentry-source-file":"index.tsx"})}},29243:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(12115),r=a(49018),l=a(86131),o=a(70290),s=a(73321),i=a(35050);let c=()=>{let e=(0,r.jL)(),t=(0,s.usePathname)(),{appURL:a}=(0,i.A)(),c=(0,r.GV)(e=>e.search),d=(0,r.GV)(e=>e.language);return(0,n.useEffect)(()=>{let n=(0,o.g)(d.lang);c.fetchedData&&c.fetchedLocale===n||e((0,l.QN)({site:null==t?void 0:t.split("/")[1],appUrl:a,locale:n}))},[c.fetchedData,c.fetchedLocale,d.lang,e]),{searchState:c}}},29372:(e,t,a)=>{"use strict";a.d(t,{b:()=>p});var n=a(12115),r=a(49018),l=a(84942),o=a(89161),s=a(35758),i=a(46411),c=a(73321),d=a(35050),u=a(86131),m=a(70290),_=a(81711),h=a(33322);let p=()=>{let e=(0,r.jL)(),t=(0,r.GV)(e=>e.products),a=(0,r.GV)(e=>e.edea),p=(0,r.GV)(e=>e.search),x=(0,r.GV)(e=>e.language),v=(0,r.GV)(e=>e.ports),g=(0,c.usePathname)(),{appURL:y}
1=(0,d.A)(),[b,f]=(0,n.useState)(g?_.b[g.split("/")[1]]:"USD");(0,n.useEffect)(()=>{(async()=>{a.fetchedToken||e((0,l.RO)()),""!==a.loginToken&&(t.fetchProducts||e((0,o.qM)({token:a.loginToken})),v.fetchPorts||e((0,s.QG)({token:a.loginToken})),p.fetchedData||(e((0,s.QG)({token:a.loginToken})),e((0,u.QN)({site:null==g?void 0:g.split("/")[1],appUrl:y,locale:(0,m.g)(x.lang)})),e((0,u.u3)({site:null==g?void 0:g.split("/")[1],appUrl:y})),e((0,h.MN)(b)),e((0,h.Qn)(null==g?void 0:g.split("/")[1]))),a.fetchedBookingHolder||e((0,l.Lx)({loginToken:a.loginToken,requestBody:(0,i.a)(void 0)})))})()},[a])}},29608:(e,t,a)=>{"use strict";a.d(t,{default:()=>h});var n=a(95155),r=a(12115),l=a(14259),o=a(92330),s=a.n(o),i=a(73321),c=a(2528),d=a(96691);let u=e=>{if(null==e)return e;try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},m=()=>{let e=window.location.hash;if(!e)return null;let t=e.startsWith("#")?e.slice(1):e;return t.startsWith("tab=")?u(t.slice(4)):null},_=e=>{let t="#tab=".concat(encodeURIComponent(e));window.location.hash!==t&&history.replaceState(null,"",t)},h=e=>{var t;let{tabs:a,defaultActive:o}=e,h=(0,i.useRouter)(),p=(0,i.useSearchParams)(),[x,v]=(0,r.useState)(o||(null==(t=a[0])?void 0:t.value)),g=(0,r.useCallback)(e=>{if(!e)return;let t=a.find(t=>t.value.toLowerCase()===e.toLowerCase());if(t)return t.value},[a]),y=(0,r.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=a.find(t=>t.value===e);n&&(n.href?h.push(n.href):(v(e),t&&_(e)))},[a,h]),b=(0,r.useCallback)(()=>{let e=m();if(!e)return;let t=g(e);t&&y(t,!1)},[g,y]);return(0,r.useEffect)(()=>{let e,t=m(),n=null==p?void 0:p.get("tab");if(t)e=g(t);else if(n)e=g(u(n));else{var r;e=o||(null==(r=a[0])?void 0:r.value)}if(e){let a=null===t&&null!==e;y(e,a)}},[p,a,o,g,y]),(0,r.useEffect)(()=>(window.addEventListener("hashchange",b),()=>window.removeEventListener("hashchange",b)),[b]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.O_,{activeTab:x,onChangeTab:e=>{let t=a.find(t=>t.value===e);(null==t?void 0:t.href)?h.push(t.href):(v(e),_(e))},"data-sentry-element":"TabsProvider","data-sentry-source-file":"Tabs.tsx",children:(0,n.jsx)(l.TJ,{"data-sentry-element":"BasicTabs","data-sentry-source-file":"Tabs.tsx",children:a.map(e=>(0,n.jsx)(d.A,{startDate:e.startDate,endDate:e.endDate,children:(0,n.jsx)(l.M5,{value:e.value,label:e.label},e.value)}))})}),(0,n.jsx)("div",{className:s().content_tab,children:a.map(e=>x===e.value&&!e.href&&(0,n.jsx)("div",{className:s().content,children:e.content.map((t,a)=>{let r=c.a[t.blockType];return r?(0,n.jsx)(d.A,{startDate:e.startDate,endDate:e.endDate,children:(0,n.jsx)(r,{...t},a)}):null})},e.value))})]})}},30335:e=>{e.exports={container:"basicTab_container__PYTJ_",tabContentContainer:"basicTab_tabContentContainer__q79fO",tabTypography:"basicTab_tabTypography__9Z03_",active:"basicTab_active__zhJz0",activeTabTypography:"basicTab_activeTabTypography__ua3bi"}},30751:e=>{e.exports={m0:"successResponse_m0__km2_n",success_message_content:"successResponse_success_message_content__7GG7Y",success_message:"successResponse_success_message__hzZct",secondary_text:"successResponse_secondary_text__tBeRQ"}},34514:(e,t,a)=>{"use strict";a.d(t,{CustomCarousel:()=>x});var n=a(95155),r=a(12115);a(84148);var l=a(43459),o=a(88611),s=a(43596),i=a.n(s),c=a(36939),d=a(49018);let u=e=>{let{content:t,image:a,altImage:r,width:l,height:o,openNewWindows:s,url:u,gradientFirstColor:m="#00008B",gradientLastColor:_="#ADD8E6",gradientAngle:h=0}=e;return(0,c.A)(),(0,d.GV)(e=>e.language),(0,n.jsx)("div",{className:i().bannersContainer,"data-sentry-component":"Banner","data-sentry-source-file":"index.tsx",children:(0,n.jsx)("a",{href:u||"",target:s?"_blank":"_self",rel:"noopener noreferrer",className:"".concat(i().linkContainer," ").concat(u?"":i().noLink),"data-sentry-component":"renderBanner","data-sentry-source-file":"index.tsx",children:(0,n.jsx)("div",{className:i().bannerContainer,children:(0,n.jsx)("div",{className:i().banner,children:(0,n.jsxs)("div",{style:{backgroundImage:"linear-gradient(".concat(h,"deg, ").concat(m,", ").concat(_,")"),backgroundPosition:"center"},className:i().blueBanner,children:[t&&(0,n.jsx)("div",{className:i().bannerTextContainer,children:(0,n.jsx)("div",{className:i().bannerTextContent,children:t})}),(0,n.jsx)("img",{src:a,alt:r,className:i().bannerImage})]})})})})})};var m=a(73321),_=a(12055);let h=["/ar","/uy","/int","/itau"],p={desktop:2,tablet:1,mobile:1},x=e=>{var t;let{autoPlayBoolean:a,autoPlaySpeed:s,banners:i}=e,x=(0,c.A)(),v=(0,d.GV)(e=>e.banner),g=(0,m.usePathname)(),y=function(){let[e,t]=(0,r.useState)("desktop");return(0,r.useEffect)(()=>{let e=()=>{let e=window.innerWidth;e<601?t("mobile"):e<1024?t("tablet"):t("desktop")};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}
1(),b=(0,r.useRef)(a?[(0,o.A)({delay:s||5e3,stopOnInteraction:!1})]:[]).current,f=(0,r.useRef)(null),[C,j]=(0,l.A)({loop:!0,align:"start"},b),k=(0,r.useCallback)(()=>null==j?void 0:j.scrollPrev(),[j]),N=(0,r.useCallback)(()=>null==j?void 0:j.scrollNext(),[j]);(0,r.useEffect)(()=>{let e=f.current;if(!e)return;let t=e=>{"ArrowLeft"===e.key&&k(),"ArrowRight"===e.key&&N()};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},[k,N]);let T=null!=(t=p[y])?t:1,B=i.length>T,I=(e,t)=>(0,n.jsx)(u,{content:e.typographies.map(e=>(0,_.A)(e.content)),image:x?e.imageMobile.url:e.imageDesktop.url,altImage:x?e.imageMobile.alt:e.imageDesktop.alt,width:x?e.imageMobile.width:e.imageDesktop.width,height:x?e.imageMobile.height:e.imageDesktop.height,openNewWindows:e.openNewWindows,url:e.url,gradientFirstColor:e.gradientFirstColor,gradientLastColor:e.gradientLastColor,gradientAngle:e.gradientAngle,"data-sentry-element":"Banner","data-sentry-component":"renderBanner","data-sentry-source-file":"index.tsx"},t);return(0,n.jsx)(n.Fragment,{children:h.some(e=>g.startsWith(e))&&v.showBanner&&(B?(0,n.jsxs)("div",{className:"embla",ref:f,tabIndex:0,children:[(0,n.jsx)("div",{className:"embla__viewport",ref:C,children:(0,n.jsx)("div",{className:"embla__container",children:i.map((e,t)=>(0,n.jsx)("div",{className:"embla__slide",children:I(e,t)},t))})}),(0,n.jsx)("button",{className:"embla__prev",onClick:k,"aria-label":"Previous slide",children:(0,n.jsx)("svg",{width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M8.5 1L1.5 8L8.5 15",stroke:"#606060",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,n.jsx)("button",{className:"embla__next",onClick:N,"aria-label":"Next slide",children:(0,n.jsx)("svg",{width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M1.5 1L8.5 8L1.5 15",stroke:"#606060",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}):(0,n.jsx)("div",{className:"grid",children:i.map(I)}))})}},34549:(e,t,a)=>{"use strict";a.d(t,{ParkingBlock:()=>o});var n=a(95155);a(12115);var r=a(63473),l=a(42983);let o=()=>{let{navigateTo:e}=(0,l.c)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.R,{onAfterSubmit:()=>{e("/parking-puerto-madero")},"data-sentry-element":"ParkingSearch","data-sentry-source-file":"index.tsx"})})}},34644:e=>{e.exports={coupon:"CouponLabel_coupon__tYg18",m0:"CouponLabel_m0__2UUri",icon:"CouponLabel_icon__vYD_K"}},34796:e=>{e.exports={iframeContainer:"search_iframeContainer__kEGdf",iframe:"search_iframe__Bf6gg"}},35006:(e,t,a)=>{"use strict";a.d(t,{default:()=>D});var n=a(95155),r=a(12115),l=a(55560),o=a.n(l),s=a(99003),i=a(23745),c=a(94932),d=a.n(c),u=a(79846),m=a(62030),_=a(44313),h=a(66414),p=a(49584),x=a(88159),v=a(91420),g=a(14870),y=a(49018),b=a(85259);let f=e=>{let t,{name:a,control:l}=e,{attentionType:o}=(0,s.FH)({control:l}),i=(0,y.jL)(),{attentionItems:c,status:{attentionItems:d}}=(0,y.GV)(e=>e.supportRequest);return(0,r.useEffect)(()=>{o&&i((0,b.T)(o))},[o]),t=o?c.length>0?c.map(e=>({value:e.id,label:e.name})):[{value:"",label:"No hay items de atenci\xf3n disponibles",disabled:!0}]:[{value:"",label:"Debes elegir un tipo de atenci\xf3n",disabled:!0}],(0,n.jsx)(_.l6,{control:l,name:a,label:"Item de atenci\xf3n *",placeholder:"Item de atenci\xf3n *",options:t,loadingOptions:"loading"===d,"data-sentry-element":"Select","data-sentry-component":"SelectAttentionTypeItemsContainer","data-sentry-source-file":"SelectAttentionTypeItemsContainer.tsx"})},C=e=>{let{onSubmit:t,error:a,options:l,loadingOptions:o,resetError:c}=e,{control:y,handleSubmit:b,watch:C,reset:j,formState:{isLoading:k}}=(0,s.mN)({defaultValues:{name:"",lastname:"",documentType:"",documentNumber:"",documentCountry:"",email:"",phone:"",bookingId:"",description:"",attentionType:"",attentionItem:""},resolver:(0,p.t)(h.ZZ)}),N=C("documentNumber");(0,r.useEffect)(()=>{c()},[N]);let T=(0,g.U)("mobile");return(0,n.jsxs)("div",{className:d().form_wrapper,"data-sentry-component":"FormClientAttention","data-sentry-source-file":"FormClientAttention.tsx",children:[(0,n.jsx)(i.o,{variant:"h2",bold:!0,className:"".concat(d().m0),"data-sentry-element":"Typography","data-sentry-source-file":"FormClientAttention.tsx",children:"Formulario de Atenci\xf3n al Cliente"}),(0,n.jsxs)("form",{onSubmit:b(e=>{t(e),j()}),className:d().form,children:[(0,n.jsxs)("div",{className:d().row,children:[(0,n.jsx)(m.p,{control:y,name:"name",label:"Nombre *",placeholder:"Nombre *",className:d().input,"data-sentry-element":"Input","data-sentry-source-file":"FormClientAttention.tsx"}),(0,n.jsx)(m.p,{control:y,name:"lastname",label:"Apellido *",placeholder:"Apellido *",className:d().input,"data-sentry-element":"Input","data-sentry-source-file":"FormClientAttention.tsx"})]}),(0,n.jsxs)("div",{className:d().row,children:[(0,n.jsx)(_.l6,{name:"documentCountry",control:y,label:"Pa\xeds del documento *",placeholder:"Pa\xeds del documento *",className:d().documentField,options:h.JK,"data-sentry-element":"Select","data-sentry-source-file":"FormClientAttention.tsx"}),(0,n.jsx)(m.p,{control:y,name:"email",label:"Correo electr\xf3nico *",placeholder:"Correo electr\xf3nico *",className:d().input,"data-sentry-element":"Input","data-sentry-source-file":"FormClientAttention.tsx"})]}),(0,n.jsxs)("div",{className:d().row,children:[(0,n.jsx)(_.l6,{control:y,name:"documentType",label:"Tipo de documento *",placeholder:"Tipo de documento *",className:d().documentField,options:h.Yg,"data-sentry-element":"Select","data-sentry-source-file":"FormClientAttention.tsx"}),(0,n.jsx)(m.p,{control:y,name:"documentNumber",label:"N\xfamero de documento *",placeholder:"N\xfamero de documento *",className:d().input,"data-sentry-element":"Input","data-sentry-source-file":"FormClientAttention.tsx"})]}),(0,n.jsxs)("div",{className:d().row,children:[(0,n.jsx)(m.p,{control:y,name:"phone",label:"Tel\xe9fono de contacto *",placeholder:"Tel\xe9fono de contacto *",className:d().input,"data-sentry-element":"Input","data-sentry-source-file":"FormClientAttention.tsx"}),(0,n.jsx)(m.p,{control:y,name:"bookingId",label:"N\xfamero de pasaje *",placeholder:"N\xfamero de pasaje *",className:d().input,"data-sentry-element":"Input","data-sentry-source-file":"FormClientAttention.tsx"})]}),(0,n.jsxs)("div",{className:d().row,children:[(0,n.jsx)(_.l6,{control:y,name:"attentionType",label:"Tipo de atenci\xf3n *",placeholder:"Tipo de atenci\xf3n *",className:d().documentField,options:l.attentionTypes.length>0?l.attentionTypes.map(e=>({value:e.id,label:e.name})):[{value:"",label:"No hay tipos de atenci\xf3n disponibles",disabled:!0}],loadingOptions:o,"data-sentry-element":"Select","data-sentry-source-file":"FormClientAttention.tsx"}),(0,n.jsx)(f,{name:"attentionItem",control:y,"data-sentry-element":"SelectAttentionTypeItems","data-sentry-source-file":"FormClientAttention.tsx"})]}),(0,n.jsx)("div",{className:d().row,children:(0,n.jsx)(v.f,{control:y,name:"description",label:"Comentarios *",placeholder:"Comentarios *",height:"120px","data-sentry-element":"TextArea","data-sentry-source-file":"FormClientAttention.tsx"})}),""!==a&&(0,n.jsx)(x.E,{children:a}),(0,n.jsx)("div",{className:d().button_wrapper,children:(0,n.jsx)(u.$,{variant:"primary",size:"big",fullwidth:T,className:d().button,disabled:k,"data-sentry-element":"Button","data-sentry-source-file":"FormClientAttention.tsx",children:"Enviar"})})]})]})};var j=a(58255),k=a(99661),N=a(92481);let T=e=>
1{let{onChangeStatus:t,destinationEmail:a}=e,l=(0,y.jL)(),{site:o}=(0,y.GV)(e=>e.site),s=(0,y.GV)(e=>e.language),{documentCountries:i,documentTypes:c,status:d,error:u}=(0,y.GV)(e=>e.passengerAttributes),{show:m}=(0,k.d)(),{attentionTypes:_,status:{attentionTypes:h}}=(0,y.GV)(e=>e.supportRequest);(0,r.useEffect)(()=>{l((0,b.Q$)())},[]);let p=async e=>{var n;let r={...e,attentionTypeDescription:(null==(n=_.find(t=>t.id===e.attentionType))?void 0:n.name)||"",destinationEmail:a,site:o,language:s.lang.toLowerCase()};try{let e=await l((0,b.zO)(r)).unwrap();m((0,N.v)(e)),t("success")}catch(e){m({title:"Error al crear el ticket",description:"",type:"error",duration:6e3})}};return(0,n.jsx)(C,{onSubmit:p,error:u,options:{documentCountries:i,documentTypes:c,attentionTypes:_},loadingOptions:"loading"===d||"loading"===h,resetError:()=>l((0,j.SH)()),"data-sentry-element":"FormClientAttention","data-sentry-component":"FormClientAttentionContainer","data-sentry-source-file":"formClientAttentionContainer.tsx"})};var B=a(13053),I=a(7044),w=a.n(I),P=a(73321);let S=e=>{let{onChangeStatus:t}=e,a=(0,P.useRouter)(),r=(0,P.usePathname)(),l=(0,y.GV)(e=>e.site);return(0,n.jsxs)("div",{className:w().success_message,"data-sentry-component":"SuccessResponse","data-sentry-source-file":"SuccessResponse.tsx",children:[(0,n.jsxs)("div",{className:w().success_message_content,children:[(0,n.jsx)(B.I,{name:B.F.CHECK_SUCCESS,color:"default",width:60,height:60,"data-sentry-element":"Icon","data-sentry-source-file":"SuccessResponse.tsx"}),(0,n.jsx)(i.o,{variant:"h3",bold:!0,className:w().m0,"data-sentry-element":"Typography","data-sentry-source-file":"SuccessResponse.tsx",children:"Recibimos tu respuesta exitosamente"}),(0,n.jsx)(i.o,{variant:"body big",className:"".concat(w().m0," ").concat(w().secondary_text),"data-sentry-element":"Typography","data-sentry-source-file":"SuccessResponse.tsx",children:"El equipo de Buquebus se pondr\xe1 en contacto para informarte de los pasos a seguir."})]}),(0,n.jsx)("div",{children:(0,n.jsx)(u.$,{variant:"secondary",size:"big",onClick:()=>{r==="/".concat(l.site)?window.location.reload():a.push("/".concat(l.site)),t("idle")},"data-sentry-element":"Button","data-sentry-source-file":"SuccessResponse.tsx",children:"Volver al Inicio"})})]})},A=e=>{let{status:t,onChangeStatus:a,destinationEmail:r}=e;return(0,n.jsxs)("div",{"data-sentry-component":"ClientAttention","data-sentry-source-file":"clientAttention.tsx",children:["success"!==t&&(0,n.jsx)(T,{formStatus:t,onChangeStatus:a,destinationEmail:r}),"success"===t&&(0,n.jsxs)("div",{className:o().form_wrapper,children:[(0,n.jsx)(S,{onChangeStatus:a})," "]})]})},D=e=>{let{destinationEmail:t}=e,[a,l]=(0,r.useState)("idle");return(0,n.jsx)(A,{status:a,onChangeStatus:e=>l(e),destinationEmail:t,"data-sentry-element":"ClientAttention","data-sentry-component":"ClientAttentionContainer","data-sentry-source-file":"clientAttentionContainer.tsx"})}},36745:(e,t,a)=>{"use strict";a.d(t,{InstitutionalTextImageBlock:()=>d});var n=a(95155);a(12115);var r=a(8640),l=a.n(r),o=a(79846),s=a(73321);let i=e=>{let{image:t,imageAltText:a,width:r,height:i,content:c,mobileReverse:d,imageLeft:u,footerButtons:m}=e,_=(0,s.useRouter)();return(0,n.jsxs)("div",{className:"".concat(l().flex," ").concat(l().align_items_center," ").concat(u?l().reverse:""," ").concat(d?l().mb_reverse:""),"data-sentry-component":"InstitutionalTextImage","data-sentry-source-file":"InstitutionalTextImage.tsx",children:[(0,n.jsxs)("div",{className:"".concat(l().content," ").concat(l().flex_item," ").concat(l().flex_5),children:[c&&(0,n.jsx)("div",{children:c}),m&&m.length>0&&(0,n.jsx)("div",{className:l().footer,children:m.map((e,t)=>(0,n.jsx)(o.$,{variant:"primary",size:"big",onClick:()=>_.push(e.link),children:e.text},t))})]}),(0,n.jsx)("div",{className:"".concat(l().flex_item," ").concat(l().flex_1)}),(0,n.jsx)("div",{className:"".concat(l().img," ").concat(l().flex_item," ").concat(l().flex_6),children:(0,n.jsx)("img",{src:"string"==typeof t?t:t.src,alt:a||"",className:l().img,width:r,height:i})})]})};var c=a(12055);let d=e=>{let{content:t,mobileReverse:a,imageLeft:r,backgroundImage:l}=e,o=(null==l?void 0:l.url)||"",s=(null==l?void 0:l.alt)||"",d=(null==l?void 0:l.width)||0,u=(null==l?void 0:l.height)||0;return(0,n.jsx)(i,{content:t.map(e=>(0,c.A)(e.content)),mobileReverse:a,imageLeft:r,image:o,imageAltText:s,width:d,height:u,"data-sentry-element":"InstitutionalTextImage","data-sentry-component":"InstitutionalTextImageBlock","data-sentry-source-file":"index.tsx"})}},37046:()=>{},38952:e=>{e.exports={card:"InstitutionalFleetCard_card__D_7E_",image:"InstitutionalFleetCard_image__a3y5l",image_tag:"InstitutionalFleetCard_image_tag__fm_PM",content_wrapper:"InstitutionalFleetCard_content_wrapper__xCJsj",m0:"InstitutionalFleetCard_m0__pXt_x",divider:"InstitutionalFleetCard_divider__KukE8",flex_row:"InstitutionalFleetCard_flex_row__gBsy_",flex_col:"InstitutionalFleetCard_flex_col__0_RSx",text_secondary:"InstitutionalFleetCard_text_secondary__Y2uyE",data:"InstitutionalFleetCard_data__zPe0u",header:"InstitutionalFleetCard_header__NxglC",link:"InstitutionalFleetCard_link__srXTM"}},40112:(e,t,a)=>{"use strict";a.d(t,{default:()=>c});var n=a(95155);a(12115);var r=a(49064),l=a.n(r),o=a(23745),s=a(79846),i=a(73321);let c=e=>{let{title:t,subtitle:a,image:r,buttonText:c,link:d}=e,u=(0,i.useRouter)(),m={backgroundImage:"url(".concat(r.src,")")};return(0,n.jsx)("div",{className:"".concat(l().banner),style:m,"data-sentry-component":"InstitutionalTextButtonFullBanner","data-sentry-source-file":"InstitutionalTextButtonFullBanner.tsx",children:(0,n.jsx)("div",{className:"".concat(l().container),children:(0,n.jsxs)("div",{className:"".concat(l().content),children:[(0,n.jsxs)("div",{className:l().content_text,children:[(0,n.jsx)(o.o,{variant:"d1",bold:!0,className:"".concat(l().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalTextButtonFullBanner.tsx",children:t}),a&&(0,n.jsx)(o.o,{variant:"body big",className:"".concat(l().m0),children:a})]}),(0,n.jsx)("div",{className:"".concat(l().mt_05),children:(0,n.jsx)(s.$,{variant:"primary",size:"big",onClick:()=>u.push(d),"data-sentry-element":"Button","data-sentry-source-file":"InstitutionalTextButtonFullBanner.tsx",children:c})})]})})})}},40210:(e,t,a)=>{"use strict";a.d(t,{EventsCardBlock:()=>u});var n=a(95155);a(12115);var r=a(12055),l=a(23745),o=a(98808),s=a.n(o),i=a(84455),c=a(73968);let d=e=>{var t;let{eventsCard:a}=e,r={backgroundImage:"url(".concat(null==(t=a.image)?void 0:t.url,")")||0};return(0,n.jsxs)("div",{className:"".concat(s().card),onClick:e=>{!e.target.closest('\n a,\n button,\n input,\n textarea,\n select,\n [role="button"],\n [data-prevent-card-click]\n ')&&a.url&&(a.openNewWindows?window.open(a.url,"_blank"):window.location.href=a.url)},"data-sentry-component":"EventsCard","data-sentry-source-file":"EventsCard.tsx",children:[(0,n.jsx)("div",{className:"".concat(s().image),style:r,children:a.imagePillText&&Array.isArray(a.imagePillText)&&a.imagePillText.length>0&&(0,n.jsx)("span",{className:"".concat(s().image_tag),children:(0,n.jsx)(c.a,{content:a.imagePillText,color:"blue",variant:"solid",size:"big"})})}),(0,n.jsxs)("div",{className:"".concat(s().content_wrapper),children:[(0,n.jsxs)("div",{className:"".concat(s().content),children:[(0,n.jsx)("div",{className:"".concat(s().m0),children:a.date}),(0,n.jsx)(l.o,{variant:"h4",bold:!0,className:"".concat(s().m0),"data-sentry-element":"Typography","data-sentry-source-file":"EventsCard.tsx",children:a.name}),(0,n.jsx)("a",{href:a.url||"",className:"".concat(s().link),children:(0,n.jsx)("div",{className:"".concat(s().m0),children:a.bannerText})})]}),void 0!==a.urlButton&&a.buttonText&&(0,n.jsx)("div",{className:"".concat(s().mt_05),"data-prevent-card-click":!0,children:(0,n.jsx)(i.N,{href:a.urlButton,fullwidth:!0,size:"big",target:a.openNewWindows?"_blank":"",children:a.buttonText})})]})]})},u=e=>{var t,a,l;let{eventDate:o,eventName:s,imagePillText:i,backgroundImage:c,bannerText:u,urlBanner:m,buttonText:_,openNewWindows:h,urlButton:p}=e,x=(null==c?void 0:c.url)||"",v=(null==c?void 0:c.alt)||"",g=(null==c?void 0:c.width)||0,y=(null==c?void 0:c.height)||0;return(0,n.jsx)(d,{eventsCard:{date:(0,r.A)((null==(t=o[0])?void 0:t.content)||[]),name:s,image:{url:x,alt:v,width:g,height:y},bannerText:(0,r.A)((null==(a=u[0])?void 0:a.content)||[]),url:m,buttonText:_,openNewWindows:h,urlButton:p,imagePillText:(0,r.A)((null==(l=i[0])?void 0:l.content)||[])},"data-sentry-element":"EventsCard","data-sentry-component":"EventsCardBlock","data-sentry-source-file":"index.tsx"})}},40530:(e,t,a)=>{"use strict";a.d(t,{c:()=>o});var n=a(95155);a(12115);var r=a(86386),l=a.n(r);let o=e=>{let{className:t}=e;return(0,n.jsx)("div",{className:"".concat(l().divider," ").concat(t),"data-sentry-component":"Divider","data-sentry-source-file":"Divider.tsx"})}},40844:e=>{e.exports={container:"tabs_container__7maSg"}},41650:()=>{},42304:e=>{e.exports={card:"DeckCard_card__v4f88",image:"DeckCard_image__VvBQY",image_tag:"DeckCard_image_tag__e1llL",content_wrapper:"DeckCard_content_wrapper__uSLWr",content:"DeckCard_content__pfR_s",m0:"DeckCard_m0__szEGm",divider:"DeckCard_divider__RZxTz",button_block_sm:"DeckCard_button_block_sm__GinxO"}},43008:e=>{e.exports={content:"Video_content__C14sL",videoWrapper:"Video_videoWrapper__BItu_",card:"Video_card__UTFrD",contentWrapper:"Video_contentWrapper__VcOu6",m0:"Video_m0__D81gA"}},43196:(e,t,a)=>{"use strict";a.d(t,{d:()=>x});var n=a(95155);a(12115);var r=a(23745),l=a(80784),o=a.n(l),s=a(13053),i=a(73968),c=a(70641),d=a(37206);a(39170),a(89488);var u=a(14870),m=a(42400),_=a(84455),h=a(22431),p=a(49018);(0,d.default)(()=>Promise.resolve().then(a.bind(a,97282)),{loadableGenerated:{webpack:()=>[97282]},ssr:!1});let x=e=>{let{link:t,image:a,title:l,hotel:d,location:x,titleAcordion:v,textBoton:g,openNewWindows:y,currency:b,discount:f,perPersonPrice:C,labelPrice:j,checkPillNight:k,nightsAmount:N,starAmount:T,includePill:B,favorite:I=!1,confirmationText:w,highlighted:P,highlightedImageIcon:S,highlightedTextOnHover:A}=e,D=(0,u.U)("mobile"),{site:E}=(0,p.GV)(e=>e.site);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:o().card,onClick:e=>{!e.target.closest('\n a,\n button,\n input,\n textarea,\n select,\n [role="button"],\n [data-prevent-card-click]\n ')&&t&&(y?window.open(t,"_blank"):window.location.href=t)},children:[B&&(0,n.jsx)("div",{className:o().pill_include,children:(0,n.jsx)(i.a,{content:"".concat(B),color:"blue",variant:"subtle",size:"big"})}),P&&S&&(0,n.jsx)("div",{className:o().favorite_badge,tabIndex:0,children:(0,n.jsx)(h.m,{title:A,placement:"left-start",children:(0,n.jsx)("div",{className:o().favorite_badge_icon,children:(null==S?void 0:S.src)?(0,n.jsx)("img",{src:S.src,alt:"destacado",width:D?20:24,height:D?20:24,style:{objectFit:"cover",borderRadius:4}}):(0,n.jsx)(s.I,{name:s.F.STAR,color:"white",width:D?20:24,height:D?20:24})})})}),(0,n.jsx)("div",{className:"".concat(o().image," ").concat(o().single_image),style:{backgroundImage:"url(".concat(null==a?void 0:a.src,")")}}),(0,n.jsxs)("div",{className:"".concat(o().content_wrapper),children:[(0,n.jsxs)("div",{className:"".concat(o().content),children:[(0,n.jsx)(c.w,{amountOfStars:0===T?0:T,pillContent:k&&N?N>1?"".concat(N," Noches"):"".concat(N," Noche"):"","data-sentry-element":"StarsPills","data-sentry-source-file":"HotelCard.tsx"}),l&&(0,n.jsx)(h.m,{title:l,placement:"bottom-start",children:(0,n.jsx)(r.o,{variant:"h5",bold:!0,className:"".concat(o().m0," ").concat(o().ellipsis),children:function(e){return e&&""!==String(e).trim()?String(e).split(" ").map(e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"").join(" "):""}(l)})}),(0,n.jsxs)("div",{className:o().column,children:[d&&(0,n.jsxs)("div",{className:o().row,children:[(0,n.jsx)(s.I,{name:s.F.HOTEL,color:"default",width:16,height:16}),(0,n.jsx)(r.o,{variant:"body medium",bold:!0,className:o().m0,children:d})]}),x&&(0,n.jsx)(r.o,{variant:"body small",className:o().m0,children:x})]}),Array.isArray(w)&&w.length>0&&(0,n.jsx)("div",{"data-prevent-card-click":!0,children:(0,n.jsx)(m.n,{size:"small",title:(0,n.jsx)(r.o,{variant:"body medium",className:o().m0,children:v||"Ver m\xe1s"}),children:w})})]}),(0,n.jsxs)("div",{className:"".concat(o().content),children:[(0,n.jsx)("div",{className:o().divider}),(0,n.jsxs)("div",{className:"".concat(o().column," ").concat(o().gap_small),children:[f&&(0,n.jsx)("div",{children:(0,n.jsx)(i.a,{content:"Ahorr\xe1s ".concat(b," ").concat(f),color:"green",variant:"subtle",size:"big"})}
1),(0,n.jsxs)("div",{className:o().column,children:[b&&C&&(0,n.jsx)(r.U,{variant:"h3",tag:"span",bold:!0,className:o().m0,currency:b,value:Number(C.toString())}),j&&(0,n.jsx)(r.o,{variant:"body small",className:o().m0,children:j})]})]})]}),t&&(0,n.jsx)("div",{className:"".concat(o().mt_05),children:(0,n.jsx)(_.N,{href:t||"",fullwidth:D,size:"big",target:y?"_blank":"",children:g||"Comprar"})})]})]})})}},43596:e=>{e.exports={bannersContainer:"Banner_bannersContainer__T8Pi2",bannerContainer:"Banner_bannerContainer__zgoUH",bannerTextContainer:"Banner_bannerTextContainer__RjYep",bannerTextContent:"Banner_bannerTextContent__r6t_V",bannerImage:"Banner_bannerImage__6wtT3",banner:"Banner_banner__H0vg_",blueBanner:"Banner_blueBanner__ODWmY",orangeBanner:"Banner_orangeBanner__5tDgq",preTitle:"Banner_preTitle__OrlHz",title:"Banner_title__Oyp9F",secondTitle:"Banner_secondTitle__SLHqL",paragraph:"Banner_paragraph___KvJg",noLink:"Banner_noLink___zAhb",linkContainer:"Banner_linkContainer__DHkMO"}},44114:e=>{e.exports={wrapper:"tooltip_wrapper__hbR1R",tooltipBox:"tooltip_tooltipBox__nI2r5","tooltip-top-start":"tooltip_tooltip-top-start__v1xxG","tooltip-top":"tooltip_tooltip-top__gl72I","tooltip-top-end":"tooltip_tooltip-top-end__hUraD","tooltip-bottom-start":"tooltip_tooltip-bottom-start__hL2rM","tooltip-bottom":"tooltip_tooltip-bottom__AkyiG","tooltip-bottom-end":"tooltip_tooltip-bottom-end__T5B94","tooltip-left-start":"tooltip_tooltip-left-start__C5zeI","tooltip-left":"tooltip_tooltip-left__ElwGa","tooltip-left-end":"tooltip_tooltip-left-end__Tc3bE","tooltip-right-start":"tooltip_tooltip-right-start__R4de6","tooltip-right":"tooltip_tooltip-right__wFFca","tooltip-right-end":"tooltip_tooltip-right-end__aFTLW"}},44313:(e,t,a)=>{"use strict";a.d(t,{l6:()=>g,b:()=>m,mo:()=>x});var n=a(95155),r=a(12115),l=a(53360),o=a.n(l),s=a(47650),i=a(26989),c=a.n(i),d=a(54091),u=a(25186);let m=e=>{let{options:t,className:a,placeholder:l,dataTestId:o,disabled:i,name:m,onBlur:_,onChange:h,value:p,label:x,invalid:v,errorMessage:g,loadingOptions:y,onChangeExtra:b,openOptionsSignal:f,...C}=e,[j,k]=(0,r.useState)(!1),[N,T]=(0,r.useState)({top:0,left:0,width:0}),[B,I]=(0,r.useState)(null),w=(0,r.useRef)(null),P=(0,r.useRef)(null),S=(0,r.useId)(),A=(e=>{var t;return Array.isArray(e)?null!=(t=e[0])?t:"":null!=e?e:""})(p),D=(0,r.useMemo)(()=>t.find(e=>String(e.value)===String(A)),[t,A]),E=""===A||null==A,F=[c().select,a||"",E?c().placeholder:""].filter(Boolean).join(" "),R=(0,r.useRef)(f),L=(0,r.useMemo)(()=>t.filter(e=>!e.disabled),[t]),G=()=>{let e=L.findIndex(e=>String(e.value)===String(A));return e>=0?e:0},M=e=>{var t,a;let n=null==(t=P.current)?void 0:t.querySelectorAll('button[role="option"]');if(!n||0===n.length)return;let r=Math.max(0,Math.min(e,n.length-1));null==(a=n[r])||a.focus()},V=()=>{k(!1),requestAnimationFrame(()=>{var e;null==(e=w.current)||e.focus()})};(0,r.useEffect)(()=>{I(document.body)},[]),(0,r.useEffect)(()=>{let e=e=>{var t,a;let n=e.target;(null==(t=w.current)?void 0:t.contains(n))||(null==(a=P.current)?void 0:a.contains(n))||k(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,r.useEffect)(()=>{if(!j)return;let e=()=>{var e;let t=(null==(e=w.current)?void 0:e.closest("[data-floating-field]"))||w.current,a=null==t?void 0:t.getBoundingClientRect();a&&T({top:a.bottom+1,left:a.left,width:a.width})};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[j]),(0,r.useEffect)(()=>{void 0!==f&&R.current!==f&&(R.current=f,i||k(!0))},[i,f]);let O=e=>{let t={target:{name:m,value:String(e)},currentTarget:{name:m,value:String(e)}};null==h||h(t)},{autoComplete:H,multiple:U,required:Y,size:z,...W}=C,q=j&&B?(0,s.createPortal)((0,n.jsx)("div",{ref:P,className:c().optionsContainer,id:S,role:"listbox",style:{top:N.top,left
1:N.left,width:N.width,position:"fixed"},children:L.map(e=>{let t=String(e.value)===String(A);return(0,n.jsx)("button",{type:"button",role:"option","aria-selected":t,"data-testid":e.dataTestId||d.Y.GENERIC.SELECT_OPTION_ITEMS,onClick:t=>((e,t)=>{e.stopPropagation(),t.disabled||(O(t.value),V(),null==_||_({}))})(t,e),onKeyDown:t=>((e,t)=>{var a,n,r,l,o;let s=null==(a=P.current)?void 0:a.querySelectorAll('button[role="option"]');if(!s||0===s.length)return;let i=Array.from(s).findIndex(t=>t===e.currentTarget);if("ArrowDown"===e.key){e.preventDefault();let t=i===s.length-1?0:i+1;null==(n=s[t])||n.focus();return}if("ArrowUp"===e.key){e.preventDefault();let t=i<=0?s.length-1:i-1;null==(r=s[t])||r.focus();return}if("Home"===e.key){e.preventDefault(),null==(l=s[0])||l.focus();return}if("End"===e.key){e.preventDefault(),null==(o=s[s.length-1])||o.focus();return}if("Escape"===e.key){e.preventDefault(),V();return}if("Enter"===e.key||" "===e.key){if(e.preventDefault(),t.disabled)return;O(t.value),V(),null==_||_({})}})(t,e),className:[c().option,t?c().optionSelected:""].filter(Boolean).join(" "),children:e.label},e.value)})}),B):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{ref:w,className:F,"data-testid":o,"data-floating-select":!0,role:"combobox","aria-controls":j?S:void 0,"aria-expanded":j,"aria-haspopup":"listbox","aria-disabled":i,tabIndex:i?-1:0,onBlur:e=>{var t,a;let n=e.relatedTarget;n&&((null==(t=w.current)?void 0:t.contains(n))||(null==(a=P.current)?void 0:a.contains(n)))||null==_||_({})},onClick:()=>!i&&k(e=>!e),onKeyDown:e=>{if(!i){if("Enter"===e.key||" "===e.key)return(e.preventDefault(),j)?void V():(k(!0),void requestAnimationFrame(()=>{M(G())}));if("Escape"===e.key)return void V();if("ArrowDown"===e.key){e.preventDefault(),k(!0),requestAnimationFrame(()=>{M(G())});return}"ArrowUp"===e.key&&(e.preventDefault(),k(!0),requestAnimationFrame(()=>{M(G())}))}},...W,children:[m&&(0,n.jsx)("input",{type:"hidden",name:m,value:String(A),disabled:i}),(0,n.jsx)("span",{className:c().value,children:(null==D?void 0:D.label)||l}),(0,n.jsx)("span",{className:c().arrow,children:(0,n.jsx)("img",{alt:"",src:u.default.src})})]}),q]})};var _=a(23745),h=a(88159),p=a(96854);let x=e=>{let{options:t,className:a,invalid:r,loadingOptions:l,errorMessage:s,dataTestId:i,label:c,...d}=e,u=[o().container,r?o().invalid:""].filter(Boolean).join(" ");return l?(0,n.jsx)("div",{className:"".concat(o().container," ").concat(o().loading," ").concat(a),"data-sentry-component":"Select","data-sentry-source-file":"Select.tsx",children:(0,n.jsx)(_.o,{variant:"body medium","data-sentry-element":"Typography","data-sentry-source-file":"Select.tsx",children:"Cargando..."})}):(0,n.jsxs)("div",{className:"".concat(a),"data-sentry-component":"Select","data-sentry-source-file":"Select.tsx",children:[(0,n.jsx)("div",{className:u,children:(0,n.jsx)(p.k,{label:c||d.placeholder,value:d.value,"data-sentry-element":"FloatingLabelFieldView","data-sentry-source-file":"Select.tsx",children:(0,n.jsx)(m,{options:t,dataTestId:i,...d,className:o().select,"data-sentry-element":"SelectPure","data-sentry-source-file":"Select.tsx"})})}),s&&(0,n.jsx)(h.E,{children:s})]})};var v=a(99003);let g=e=>{var t;let{name:a,control:r,options:l,className:o,label:s,loadingOptions:i=!1,hideErrorMessage:c,onChangeExtra:d,...u}=e,{field:m,fieldState:{invalid:_,error:h}}=(0,v.as)({name:a,control:r});return(0,n.jsx)(x,{onChange:e=>{m.onChange(e),d&&d((e=>{var t;return"object"==typeof e&&null!==e&&"target"in e&&void 0!==(null==(t=e.target)?void 0:t.value)?e.target.value:e})(e))},onBlur:m.onBlur,value:null!=(t=m.value)?t:"",name:m.name,label:s,invalid:!c&&_,className:o,options:l,loadingOptions:i,errorMessage:c||null==h?void 0:h.message,...u,"data-sentry-element":"Select","data-sentry-component":"SelectContainer","data-sentry-source-file":"SelectContainer.tsx"})}},44966:(e,t,a)=>{"use strict";a.d(t,{CC:()=>o,bC:()=>i,hp:()=>s});let n=e=>!!(e&&/^[A-Z0-9]{3,4}$/.test(e)),r=e=>(e||"").trim().toUpperCase(),l=e=>e.map(e=>e.code).join(">"),o=(e,t)=>(null==e?void 0:e.length)?e.map(e=>{let t=(e=>e.departurePort||e.origin)(e),a=(e=>e.arrivalPort||e.destination)(e),l=r(null==t?void 0:t.portCode),o=r(null==a?void 0:a.portCode),s=(e=>{let t=r(e);if(!t)return[];let a=t.split(/[^A-Z0-9]+/).filter(n);return a.length>1?a:t.length%3!=0?[]:(t.match(RegExp(".{".concat(3,"}"),"g"))||[]).filter(n)})(e.line);return{stops:(e=>e.filter((t,a)=>{var n;return t.code&&t.code!==(null==(n=e[a-1])?void 0:n.code)}))(s.length>1&&(!l||s[0]===l)?s.map(t=>({code:t,description:((e,t)=>{let a=(e=>e.departurePort||e.origin)(t),n=(e=>e.arrivalPort||e.destination)(t);return(null==a?void 0:a.portCode)===e?a.portDescription:(null==n?void 0:n.portCode)===e?n.portDescription:void 0})(t,e)})):[{code:l,description:null==t?void 0:t.portDescription},{code:o,description:null==a?void 0:a.portDescription}])}}).filter(e=>e.stops.length>1).map(e=>((e,t)=>{var a,n;
1let o=r(t),s={stops:[...e.stops].reverse()};return o&&(null==(a=e.stops[0])?void 0:a.code)!==o&&(null==(n=s.stops[0])?void 0:n.code)===o?s:l(e.stops)<=l(s.stops)?e:s})(e,t)).filter((e,t,a)=>a.findIndex(t=>l(t.stops)===l(e.stops))===t):[],s=(e,t,a,n)=>{let l=r(e),o=r(a);return l&&o&&"1"!==l&&"1"!==o?[{stops:[{code:l,description:t},{code:o,description:n}]}]:[]},i=e=>{if(!(null==e?void 0:e.length))return[];let t=new Set;return e.reduce((e,a)=>{let l=r(a.origin),o=r(a.destination),s="".concat(l,">").concat(o);return!n(l)||!n(o)||l===o||t.has(s)||(t.add(s),e.push({stops:[{code:l},{code:o}]})),e},[])}},44992:e=>{e.exports={input:"newsletter_input__LhXu1",form:"newsletter_form__QLd7p",button:"newsletter_button__ju3E7"}},47114:e=>{e.exports={backgroundContainer:"newsletter_backgroundContainer__8Js1x",container:"newsletter_container__nu3Ll",titleContainer:"newsletter_titleContainer__d3A_N",title:"newsletter_title__6m3wP",formContainer:"newsletter_formContainer__IP7U_"}},47868:e=>{e.exports={defaultContainer:"HomeComponent_defaultContainer__uAySR",errorFooterContainer:"HomeComponent_errorFooterContainer__soE0s",errorModalContainer:"HomeComponent_errorModalContainer__TkShm",modalBodyContainer:"HomeComponent_modalBodyContainer__siF1x",m0:"HomeComponent_m0__jg1J6"}},48328:(e,t,a)=>{"use strict";a.d(t,{default:()=>d});var n=a(95155);a(12115);var r=a(50716),l=a(56928),o=a.n(l),s=a(23745),i=a(13053),c=a(14870);let d=e=>{let{title:t,icon:a,children:l,sizeType:d="large"}=e,u=(0,c.U)("mobile"),m={small:{width:28,height:28,className:o().iconSmall},large:{width:u?32:40,height:u?32:40,className:o().iconLarge}};return(0,n.jsxs)("div",{className:"".concat(o().card," ").concat(m[d].className),"data-sentry-component":"InstitutionalFeaturedCard","data-sentry-source-file":"InstitutionalFeaturedCard.tsx",children:[(0,n.jsx)(i.I,{name:null==a?void 0:a.toUpperCase(),color:"black",width:m[d].width,height:m[d].height,className:o().icon,"data-sentry-element":"Icon","data-sentry-source-file":"InstitutionalFeaturedCard.tsx"}),(0,n.jsxs)("div",{className:o().content,children:[(0,n.jsx)(s.o,{variant:"h5",bold:!0,className:o().m0,"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalFeaturedCard.tsx",children:t}),(0,n.jsx)(s.o,{variant:"body medium",className:"".concat(o().m0," ").concat(o().text_secondary),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalFeaturedCard.tsx",children:l.map((e,t)=>e&&e.children?e.children.map((e,a)=>(0,n.jsx)("div",{className:o().m0,children:(0,r.Ay)(e.text)},"".concat(t,"-").concat(a))):null)})]})]})}},48344:e=>{e.exports={col:"InstitutionalGalleryImageTextVertical_col__rt7VR",image:"InstitutionalGalleryImageTextVertical_image__aw4oX",row:"InstitutionalGalleryImageTextVertical_row__qzICP",m0:"InstitutionalGalleryImageTextVertical_m0__pG5hz",content:"InstitutionalGalleryImageTextVertical_content__rPfym"}},48576:e=>{e.exports={container:"dateTabs_container__nsn_2"}},48915:(e,t,a)=>{"use strict";a.d(t,{H:()=>o}),a(12115);var n=a(73321),r=a(49018),l=a(81711);let o=()=>{let e=(0,n.usePathname)(),{site:t}=(0,r.GV)(e=>e.site),a=null==e?void 0:e.split("/").filter(Boolean)[0];return(0,l.Q)(a||t)}},49064:e=>{e.exports={banner:"InstitutionalTextButtonFullBanner_banner__XMmUz",content:"InstitutionalTextButtonFullBanner_content__reqSu",content_text:"InstitutionalTextButtonFullBanner_content_text__TWaGl",m0:"InstitutionalTextButtonFullBanner_m0__ABudg",container:"InstitutionalTextButtonFullBanner_container__Rrrya"}},49086:e=>{e.exports={tableWrapper:"table_tableWrapper__LIsNE",table:"table_table__A4vMW"}},49700:e=>{e.exports={price_wrapper:"FrecuentaCardPrice_price_wrapper__YOoeL",pill_wrapper:"FrecuentaCardPrice_pill_wrapper__ucqMa",price:"FrecuentaCardPrice_price__0klY0",m0:"FrecuentaCardPrice_m0__qWc9Y",price_value:"FrecuentaCardPrice_price_value__H12rY",pill_icon:"FrecuentaCardPrice_pill_icon__24tox"}},51108:e=>{e.exports={banner:"InstitutionalTextButtonBanner_banner__ticpU",content:"InstitutionalTextButtonBanner_content__sKAEt",content_text:"InstitutionalTextButtonBanner_content_text__uAEv8",m0:"InstitutionalTextButtonBanner_m0__nBzMD"}},51218:(e,t,a)=>{"use strict";a.d(t,{ImageBlock:()=>i});var n=a(95155);a(12115);var r=a(98196),l=a.n(r);let o=e=>{let{link:t,children:a}=e;return t?(0,n.jsx)("a",{href:t,className:l().card,target:"_blank",rel:"noopener noreferrer","data-sentry-component":"ImageContainer","data-sentry-source-file":"Image.tsx",children:a}):(0,n.jsx)("div",{className:l().card,"data-sentry-component":"ImageContainer","data-sentry-source-file":"Image.tsx",children:a})},s=e=>{let{image:t,altText:a,link:r}=e;return(0,n.jsx)(o,{link:r,"data-sentry-element":"ImageContainer","data-sentry-component":"Image","data-sentry-source-file":"Image.tsx",children:(0,n.jsx)("img",{src:t.src,alt:a,width:t.width,height:t.height,className:l().image})})},i=e=>{let{image:t,altText:a,url:r}=e;return(0,n.jsx)(s,{image:{src:t.url,alt:t.alt,width:t.width,height:t.height},altText:a,link:r,"data-sentry-element":"Image","data-sentry-component":"ImageBlock","data-sentry-source-file":"index.tsx"})}},51320:e=>{e.exports={price_wrapper:"DeckCardPrice_price_wrapper__FPHV8",price:"DeckCardPrice_price__9VoCk",previous_price:"DeckCardPrice_previous_price__TCFxV",m0:"DeckCardPrice_m0__RN99Q"}},51491:e=>{e.exports={searchContainer:"SearchDesktop_searchContainer__FWfhy",searchComponentContainer:"SearchDesktop_searchComponentContainer__DQXCy",searchComponent:"SearchDesktop_searchComponent__FiDEU",searchTopLabel:"SearchDesktop_searchTopLabel__vNAOc",labelContainer:"SearchDesktop_labelContainer__rpcVt",selected:"SearchDesktop_selected__z_lOQ",searchButton:"SearchDesktop_searchButton__rda8v",searchProductContainer:"SearchDesktop_searchProductContainer__Bfq_v",tabControl:"SearchDesktop_tabControl__E38Au",tabs:"SearchDesktop_tabs__sPaBX",tabItem:"SearchDesktop_tabItem__Jukbd",tabItemItau
1:"SearchDesktop_tabItemItau__mbFBU",content:"SearchDesktop_content__XF4Ox",iconStyle:"SearchDesktop_iconStyle__nrOj6"}},51500:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(95155);a(12115);var r=a(50716);let l=e=>{let{content:t}=e;return t&&Array.isArray(t)?(0,n.jsx)(n.Fragment,{children:t.map((e,t)=>e&&e.children?e.children.map((e,a)=>(0,n.jsx)("div",{style:{wordWrap:"break-word"},children:(0,r.Ay)(e.text)},"".concat(t,"-").concat(a))):null)}):null}},51880:e=>{e.exports={container:"infoCard_container__n5N86",text:"infoCard_text__bsqTF"}},52352:e=>{e.exports={gallery:"InstitutionalGalleryClasses_gallery__D8X2A",col:"InstitutionalGalleryClasses_col__DmLbi",image:"InstitutionalGalleryClasses_image__i5tyr",row:"InstitutionalGalleryClasses_row__hY_Xh",m0:"InstitutionalGalleryClasses_m0__px4Gv"}},53360:e=>{e.exports={container:"select_container__mNTFA",select:"select_select__cHCDK",loading:"select_loading__4i1W9",invalid:"select_invalid__QD5dr"}},53407:(e,t,a)=>{"use strict";a.d(t,{M:()=>l});var n=a(95155);a(12115);var r=a(23745);let l=e=>{let{status:t,loadingMessage:a="Cargando...",idleMessage:l="Debes realizar una b\xfasqueda.",errorMessage:o="Ocurri\xf3 un error. Por favor, intenta nuevamente.",emptyMessage:s="No se encontraron resultados.",children:i}=e;return"idle"===t?(0,n.jsx)(r.o,{variant:"body medium",children:l}):"loading"===t?"string"!=typeof a?(0,n.jsx)(n.Fragment,{children:a}):(0,n.jsx)(r.o,{variant:"body medium",children:a}):"failed"===t?(0,n.jsx)(r.o,{variant:"body medium",children:o}):"empty"===t?(0,n.jsx)(r.o,{variant:"body medium",children:s}):(0,n.jsx)(n.Fragment,{children:i})}},53810:e=>{e.exports={grid:"Grid2_grid___ydWF",small:"Grid2_small__zApAi"}},54796:(e,t,a)=>{"use strict";a.d(t,{J:()=>r,h:()=>l});var n=a(34318);let r=e=>{"undefined"!=typeof window&&Array.isArray(window.dataLayer)?window.dataLayer.push({event:"pageview",page:e}):n.V.warn("dataLayer not available, logging instead:",{event:"pageview",page:e})},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"undefined"!=typeof window&&Array.isArray(window.dataLayer)?window.dataLayer.push({event:e,...t}):n.V.warn("dataLayer not available, logging instead:",{event:e,...t})}},54928:(e,t,a)=>{"use strict";a.d(t,{default:()=>G});var n=a(95155),r=a(12115),l=a(23745),o=a(98270),s=a.n(o),i=a(79846),c=a(13053),d=a(30751),u=a.n(d),m=a(73321),_=a(49018);let h=e=>{let{onChangeStatus:t}=e,a=(0,m.useRouter)(),r=(0,m.usePathname)(),o=(0,_.GV)(e=>e.site);return(0,n.jsxs)("div",{className:u().success_message,"data-sentry-component":"SuccessResponse","data-sentry-source-file":"SuccessResponse.tsx",children:[(0,n.jsxs)("div",{className:u().success_message_content,children:[(0,n.jsx)(c.I,{name:c.F.CHECK_SUCCESS,color:"default",width:60,height:60,"data-sentry-element":"Icon","data-sentry-source-file":"SuccessResponse.tsx"}),(0,n.jsx)(l.o,{variant:"h3",bold:!0,className:u().m0,"data-sentry-element":"Typography","data-sentry-source-file":"SuccessResponse.tsx",children:"Recibimos tu reclamo exitosamente"}),(0,n.jsx)(l.o,{variant:"body big",className:"".concat(u().m0," ").concat(u().secondary_text),"data-sentry-element":"Typography","data-sentry-source-file":"SuccessResponse.tsx",children:"El equipo de Buquebus se pondr\xe1 en contacto para informarte de los pasos a seguir."})]}),(0,n.jsx)("div",{children:(0,n.jsx)(i.$,{variant:"secondary",size:"big",onClick:()=>{r==="/".concat(o.site)?window.location.reload():a.push("/".concat(o.site)),t("idle")},"data-sentry-element":"Button","data-sentry-source-file":"SuccessResponse.tsx",children:"Volver al Inicio"})})]})};var p=a(99003),x=a(57713),v=a.n(x),g=a(49584),y=a(62030),b=a(57191),f=a(42399),C=a(34318);let j=/^[a-zA-Z][a-zA-Z\s]*$/,k=f.Ik({name:f.Yj().required("El nombre es requerido").matches(j,"Solo se permiten caracteres alfab\xe9ticos y espacios"),lastname:f.Yj().required("El apellido es requerido").matches(j,"Solo se permiten caracteres alfab\xe9ticos y espacios"),purchaseDate:f.Yj().required("La fecha de nacimiento es obligatoria").test("is-valid-date","La fecha ingresada no es v\xe1lida",e=>{if(!e||""===e.trim())return!1;let t=(0,b.uO)(e);
1return C.V.debug("birthDate",t),!isNaN(t.getTime())}),purchaseChannel:f.Yj().required("Selecciona un canal de compra"),documentType:f.Yj().required("Selecciona un tipo de documento"),phoneNumber:f.Yj(),documentNumber:f.Yj().required("El n\xfamero de documento es requerido").matches(/^[0-9]*$/,"Solo se permiten caracteres num\xe9ricos"),email:f.Yj().email("Ingresa un email v\xe1lido").required("El correo electr\xf3nico es requerido"),bookingId:f.Yj().required("El n\xfamero de reserva / remito es requerido"),attentionType:f.Yj().required("Selecciona un tipo de atenci\xf3n"),attentionItem:f.Yj().required("Selecciona un item de atenci\xf3n"),description:f.Yj().required("La descripci\xf3n es requerida")}).required(),N=[{value:"venta_web",label:"VENTA WEB"},{value:"venta_telefono",label:"VENTA TELEFONO"},{value:"local_comercial",label:"LOCAL COMERCIAL"}];var T=a(91420),B=a(14870),I=a(44313),w=a(66414),P=a(26693);let S=e=>{let{onSubmit:t}=e,{control:a,handleSubmit:r,reset:l,formState:{isSubmitting:o}}=(0,p.mN)({defaultValues:{name:"",lastname:"",purchaseChannel:"",documentType:"",documentNumber:"",phoneNumber:"",email:"",bookingId:"",attentionType:"19921575817364",attentionItem:"boton_de_arrepentimiento",description:""},resolver:(0,g.t)(k)}),s=(0,B.U)("mobile");return(0,n.jsxs)("form",{onSubmit:r(e=>{t(e),l()}),"data-sentry-component":"FormPurchaseRegret","data-sentry-source-file":"FormPurchaseRegret.tsx",children:[(0,n.jsxs)("div",{className:v().formContainer,children:[(0,n.jsx)(y.p,{control:a,name:"name",label:"Nombre *",placeholder:"Ingresa tu nombre *",className:v().field,"data-sentry-element":"Input","data-sentry-source-file":"FormPurchaseRegret.tsx"}),(0,n.jsx)(y.p,{control:a,name:"lastname",label:"Apellido *",placeholder:"Ingresa tu apellido *",className:v().field,"data-sentry-element":"Input","data-sentry-source-file":"FormPurchaseRegret.tsx"}),(0,n.jsx)(P.Y,{control:a,name:"purchaseDate",label:"Fecha de compra *",className:v().field,allowSelectYear:!0,"data-sentry-element":"SelectDates","data-sentry-source-file":"FormPurchaseRegret.tsx"}),(0,n.jsx)(I.l6,{name:"purchaseChannel",control:a,label:"Canal de compra *",placeholder:"Canal de compra *",className:v().field,options:N,"data-sentry-element":"Select","data-sentry-source-file":"FormPurchaseRegret.tsx"}),(0,n.jsx)(y.p,{control:a,name:"email",label:"Correo electr\xf3nico *",placeholder:"Ingresa tu correo electr\xf3nico *",className:v().fieldFull,"data-sentry-element":"Input","data-sentry-source-file":"FormPurchaseRegret.tsx"}),(0,n.jsx)(I.l6,{control:a,name:"documentType",label:"Tipo de documento *",placeholder:"Tipo de documento *",className:v().field,options:w.Yg,"data-sentry-element":"Select","data-sentry-source-file":"FormPurchaseRegret.tsx"}),(0,n.jsx)(y.p,{control:a,name:"documentNumber",label:"D.N.I *",placeholder:"Ingresa tu n\xfamero de documento *",className:v().field,"data-sentry-element":"Input","data-sentry-source-file":"FormPurchaseRegret.tsx"}),(0,n.jsx)(y.p,{control:a,name:"phoneNumber",label:"N\xfamero de tel\xe9fono *",placeholder:"Ingresa tu n\xfamero de tel\xe9fono *",className:v().field,"data-sentry-element":"Input","data-sentry-source-file":"FormPurchaseRegret.tsx"}),(0,n.jsx)(y.p,{control:a,name:"bookingId",label:"N\xfamero de Reserva / Remito *",placeholder:"Ingresa el n\xfamero de Reserva / Remito *",className:v().field,"data-sentry-element":"Input","data-sentry-source-file":"FormPurchaseRegret.tsx"}),(0,n.jsx)(T.f,{control:a,name:"description",label:"Descripci\xf3n *",placeholder:"Ingresa una descripci\xf3n",height:"120px",className:v().fieldFull,"data-sentry-element":"TextArea","data-sentry-source-file":"FormPurchaseRegret.tsx"})]}),(0,n.jsx)("div",{className:"".concat(v().fieldFull," ").concat(v().buttonContainer),children:(0,n.jsx)(i.$,{variant:"primary",size:"big",fullwidth:s,className:v().submitButton,disabled:o,"data-sentry-element":"Button","data-sentry-source-file":"FormPurchaseRegret.tsx",children:o?"Enviando...":"Enviar"})})]})};var A=a(99661),D=a(85259),E=a(92481),F=a(36205);let R=e=>{let{onChangeStatus:t,destinationEmail:a}=e,{show:r}=(0,A.d)(),l=(0,_.jL)(),{site:o}=(0,_.GV)(e=>e.site),s=(0,_.GV)(e=>e.language),i=async e=>{let n=e.purchaseDate?F.Z.normalizeDate(e.purchaseDate):"",i={...e,purchaseDate:n,attentionTypeDescription:"Devoluciones",phone:e.phoneNumber||"00000000000000",documentCountry:"",description:"".concat(e.description," - Canal de compra: ").concat(e.purchaseChannel," - Fecha de compra: ").concat(n),destinationEmail
1:a,site:o,language:s.lang.toLowerCase()};try{let e=await l((0,D.zO)(i)).unwrap();r((0,E.v)(e)),t("success")}catch(e){r({title:"Error al crear el ticket",description:"",type:"error",duration:6e3}),t("failed")}};return(0,n.jsx)(S,{onSubmit:i,"data-sentry-element":"FormPurchaseRegret","data-sentry-component":"FormPurchaseRegretContainer","data-sentry-source-file":"FormPurchaseRegretContainer.tsx"})},L=e=>{let{status:t,onChangeStatus:a,destinationEmail:r}=e;return(0,n.jsxs)("div",{"data-sentry-component":"PurchaseRegret","data-sentry-source-file":"PurchaseRegret.tsx",children:["success"!==t&&(0,n.jsxs)("div",{className:s().form_wrapper,children:[(0,n.jsx)(l.o,{variant:"body medium",className:"".concat(s().m0),children:"Completa el siguiente formulario para proceder con el arrepentimiento de compra"}),(0,n.jsx)(R,{onChangeStatus:a,destinationEmail:r})]}),"success"===t&&(0,n.jsx)("div",{className:s().form_wrapper,children:(0,n.jsx)(h,{onChangeStatus:a})})]})},G=e=>{let{destinationEmail:t}=e,[a,l]=(0,r.useState)("idle");return(0,n.jsx)(L,{status:a,onChangeStatus:e=>l(e),destinationEmail:t,"data-sentry-element":"PurchaseRegret","data-sentry-component":"PurchaseRegretContainer","data-sentry-source-file":"PurchaseRegretContainer.tsx"})}},54967:(e,t,a)=>{"use strict";a.d(t,{PackageCardBlock:()=>i});var n=a(95155);a(12115);var r=a(62127),l=a(12055),o=a(13468),s=a.n(o);let i=e=>{let{favorite:t,favoriteTextOnHover:a,favoriteImageIcon:o,images:i,includePill:c,starAmount:d,destination:u,origin:m,discount:_,hotel:h,labelPrice:p,buttonText:x,openNewWindows:v,link:g,location:y,title:b,nightsAmount:f}=e;return(0,n.jsx)(r.s,{favorite:t,favoriteTextOnHover:a,favoriteImageIcon:{src:null==o?void 0:o.url},images:i,includePill:c,starAmount:d,destination:u.map(e=>(0,l.A)(null==e?void 0:e.content,s().blockColor)),origin:m.map(e=>(0,l.A)(null==e?void 0:e.content,s().blockColor)),discount:_,hotel:h.map(e=>(0,l.A)(null==e?void 0:e.content,s().blockColor)),labelPrice:p.map(e=>(0,l.A)(null==e?void 0:e.content,s().blockColor)),link:g,location:y.map(e=>(0,l.A)(null==e?void 0:e.content,s().blockColor)),title:b.map(e=>(0,l.A)(null==e?void 0:e.content,s().blockColor)),nightsAmount:f,textBoton:x,openNewWindows:v,"data-sentry-element":"PackagesCard","data-sentry-component":"PackageCardBlock","data-sentry-source-file":"index.tsx"})}},55120:e=>{e.exports={content:"InstitutionalGreenChoiceBannerContentItem_content__BoxqH",m0:"InstitutionalGreenChoiceBannerContentItem_m0__5YpH9"}},55248:e=>{e.exports={hero:"InstitutionalHeroBanner_hero__QVBtQ",image:"InstitutionalHeroBanner_image__q41hx",content:"InstitutionalHeroBanner_content__71oYT",m0:"InstitutionalHeroBanner_m0__5gDer",container:"InstitutionalHeroBanner_container__fTRUz"}},55283:(e,t,a)=>{"use strict";a.d(t,{VideoBlock:()=>d});var n=a(95155);a(12115);var r=a(43008),l=a.n(r),o=a(23745),s=a(84455);let i=e=>{let{src:t,autoplay:a=!1,showControls:r=!0,muted:i=!1,loop:c=!1,classNameVideo:d="",cardContent:u,content:m,link:_="",textLink:h=""}=e,p=(e=>e?e.match(/(youtube\.com|youtu\.be)/)?"youtube":e.match(/vimeo\.com/)?"vimeo":e.match(/\.(mp4|webm|ogg|mov|avi|wmv|flv|mkv)(\?.*)?$/i)?"video-file":"unknown":"unknown")(t);return(0,n.jsxs)("div",{className:l().videoWrapper,"data-sentry-component":"Video","data-sentry-source-file":"Video.tsx",children:[(()=>{switch(p){case"youtube":{let e=(e=>{let t=e.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/);return t?t[1]:null})(t);if(!e)return(0,n.jsx)("div",{children:"URL de YouTube inv\xe1lida"});let l=!!a||i,o="https://www.youtube.com/embed/".concat(e,"?").concat(a?"autoplay=1&":"").concat(!r?"controls=0&":"").concat(l?"mute=1&":"").concat(c?"loop=1&playlist="+e+"&":"loop=0&","playsinline=1&enablejsapi=1");return(0,n.jsx)("iframe",{src:o,className:d,style:{width:"100%",height:"auto",aspectRatio:"16/9",border:"none"},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"YouTube video player"})}case"vimeo":{let e=(e=>{let t=e.match(/vimeo\.com\/(\d+)/);return t?t[1]:null})(t);if(!e)return(0,n.jsx)("div",{children:"URL de Vimeo inv\xe1lida"});let l=!!a||i,o="https://player.vimeo.com/video/".concat(e,"?").concat(a?"autoplay=1&background=1&":"").concat(!r?"controls=0&":"").concat(l?"muted=1&":"").concat(c?"loop=1&":"loop=0&","playsinline=1");return(0,n.jsx)("iframe",{src:o,className:d,style:{width:"100%",height:"auto",aspectRatio:"16/9",border:"none"},allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,title:"Vimeo video player"})}case"video-file":return(0,n.jsx)("video",{className:d,src:t,autoPlay:a,controls:r,muted:!!a||i,loop:c,playsInl
1ine:!0,style:{width:"100%",height:"auto"}});default:return(0,n.jsx)("div",{style:{padding:"20px",background:"#f5f5f5",textAlign:"center",border:"1px dashed #ccc"},children:(0,n.jsxs)(o.o,{variant:"body small",children:["Tipo de video no soportado: ",t]})})}})(),(m||_||u)&&(0,n.jsxs)("div",{className:l().content,children:[(0,n.jsxs)("div",{className:l().contentWrapper,children:[m&&(0,n.jsx)("div",{className:l().m0,children:m}),_&&h&&(0,n.jsx)(s.N,{href:_,fullwidth:!0,size:"big",children:h})]}),u&&(0,n.jsx)("div",{className:l().card,children:(0,n.jsx)("div",{className:l().m0,children:u})})]})]})};var c=a(12055);let d=e=>{let{videoType:t,urlVideo:a,videoFile:r,autoPlay:l,showControls:o,loop:s,content:d,cardContent:u,link:m,textButton:_}=e,h="url"===t?a:(null==r?void 0:r.url)||"";return(0,n.jsx)(i,{src:h,autoplay:l,showControls:o,loop:s,link:m,textLink:_,cardContent:u.length>0?(0,c.A)(u[0].content||[]):"",content:d.length>0?(0,c.A)(d[0].content||[]):"","data-sentry-element":"Video","data-sentry-component":"VideoBlock","data-sentry-source-file":"index.tsx"})}},55560:e=>{e.exports={form_wrapper:"clientAttention_form_wrapper__cUBxp",row:"clientAttention_row__T4fis",button_wrapper:"clientAttention_button_wrapper__v4zP0",m0:"clientAttention_m0__ZHC96",input:"clientAttention_input__NL3Bo",text_area:"clientAttention_text_area__1kjE3"}},56462:e=>{e.exports={separator:"frecuentaRouteSeparator_separator__JJpnW"}},56841:e=>{e.exports={container:"InstitutionalImageTitleCardModal_container__R439E",text:"InstitutionalImageTitleCardModal_text__LHPm3",image:"InstitutionalImageTitleCardModal_image__BKGgK",m0:"InstitutionalImageTitleCardModal_m0__VoNXV",text_secondary:"InstitutionalImageTitleCardModal_text_secondary__uVAH5",close_button:"InstitutionalImageTitleCardModal_close_button__BwrO5"}},56928:e=>{e.exports={card:"InstitutionalFeaturedCard_card__JjA32",m0:"InstitutionalFeaturedCard_m0__5oUil",text_secondary:"InstitutionalFeaturedCard_text_secondary__akhCF",icon:"InstitutionalFeaturedCard_icon__K8fSl",iconLarge:"InstitutionalFeaturedCard_iconLarge__kDky2",iconSmall:"InstitutionalFeaturedCard_iconSmall__m8jY7",content:"InstitutionalFeaturedCard_content__VFlEJ"}},57434:e=>{e.exports={grid:"Grid2_30_70_grid__GmvLT"}},57713:e=>{e.exports={formContainer:"formPurchaseRegret_formContainer__33tX9",field:"formPurchaseRegret_field__PTMZn",fieldFull:"formPurchaseRegret_fieldFull__TXkaW",buttonContainer:"formPurchaseRegret_buttonContainer__Y3AwT",submitButton:"formPurchaseRegret_submitButton__f9AqW"}},58128:e=>{e.exports={wrapper:"StarsPills_wrapper__ZfaFw"}},58734:e=>{e.exports={grid:"Grid3_grid__H6yrk",small:"Grid3_small__B_lBu"}},60018:(e,t,a)=>{"use strict";a.d(t,{R:()=>l,m:()=>o});var n=a(54796),r=a(34318);let l={PURCHASE:"purchase",BEGIN_CHECKOUT:"begin_checkout",ADD_TO_CART:"add_to_cart",VIEW_ITEM:"view_item",COUPON_USAGE:"coupon_usage",MODAL_APPEARS:"modal_appears",DATES_SELECTED:"dates_selected",ORIGIN_SELECTED:"origin_selected",DESTINATION_SELECTED:"destination_selected",PASSENGER_INFO_COMPLETED:"passenger_info_completed",PAYMENT_STARTED:"payment_started",UPGRADE_OFFER_SHOWN:"upgrade_offer_shown",UPGRADE_OFFER_ACCEPTED:"upgrade_offer_accepted",UPGRADE_OFFER_DECLINED:"upgrade_offer_declined",FLEXIBLE_RATE_OFFER_SHOWN:"flexible_rate_offer_shown",FLEXIBLE_RATE_OFFER_ACCEPTED:"flexible_rate_offer_accepted",FLEXIBLE_RATE_OFFER_DECLINED:"flexible_rate_offer_declined"},o=(e,t)=>{try{(0,n.h)(e,t)}catch(t){r.V.error("Failed to send ".concat(e," event to GTM:"),t)}}},60824:e=>{e.exports={banner:"InstitutionalDownloadBanner_banner__jbZWN",title_wrapper:"InstitutionalDownloadBanner_title_wrapper__dcxdB",content:"InstitutionalDownloadBanner_content__tjetH",m0:"InstitutionalDownloadBanner_m0__0YDuq"}},61311:e=>{e.exports={banner:"BQBFinancingBanner_banner__kvGR8",content:"BQBFinancingBanner_content__Isf_L",w_100:"BQBFinancingBanner_w_100___5ass",no_wrap:"BQBFinancingBanner_no_wrap__XQcBT",m0:"BQBFinancingBanner_m0__C2KLC"}},62127:(e,t,a)=>{"use strict";a.d(t,{s:()=>v});var n=a(95155);a(12115);var r=a(23745),l=a(90560),o=a.n(l),s=a(11434),i=a(13053),c=a(73968),d=a(70641),u=a(37206);a(39170),a(84436);var m=a(14870),_=a(22431),h=a(84455);let p=(0,u.default)(()=>Promise.resolve().then(a.bind(a,97282)),{loadableGenerated:{webpack:()=>[97282]},ssr:!1}),x={desktop:{breakpoint:{max:3e3,min:1024},items:1,slidesToSlide:1},mobile:{breakpoint:{max:1023,min:0},items:1,slidesToSlide:1}},v=e=>{let{link:t,images:a,title:l,origin:u,destination:v,hotel:g,location:y,discount:b,labelPrice:f,nightsAmount:C,starAmount:j,includePill:k,favorite:N=!1,favoriteTextOnHover:T,favoriteImageIcon:B,inCarousel:I=!1,textBoton:w,openNewWindows:P}=e,S=(0,m.U)("mobile");return(0,n.jsx)("div",{className:I?o().in_carousel:"","data-sentry-component":"PackagesCard","data-sentry-source-file":"PackagesCard.tsx",children:(0,n.jsxs)("div",{className:"".concat(o().card),onClick:e=>{!e.target.closest('\n a,\n button,\n input,\n textarea,\n select,\n [role="button"],\n [data-prevent-card-click],\n .react-multi-carousel-dot,\n .react-multi-carousel-dot button\n ')&&t&&(P?window.open(t,"_blank"):window.location.href=t)},children:[k&&(0,n.jsx)("div",{className:o().pill_include,children:(0,n.jsx)(c.a,{content:k,color:"blue",variant:"subtle",size:"big"})}),N&&(0,n.jsx)("div",{className:o().favorite_badge,tabIndex:0,children:(0,n.jsx)(_.m,{title:T,placement:"left-start",children:(0,n.jsx)("div",{className:o().favorite_badge_icon,children:(null==B?void 0:B.src)?(0,n.jsx)("img",{src:B.src,alt:"favorito",width:S?20:24,height:S?20:24,style:{objectFit:"cover",borderRadius:4}}):(0,n.jsx)(i.I,{name:i.F.STAR,color:"white",width:S?20:24,height:S?20:24})})})}),1===a.length?(0,n.jsx)("div",{className:o().image,style:{backgroundImage:"url(".concat(a[0].image.url,")")}}):(0,n.jsx)("div",{"data-prevent-card-click":!0,children:(0,n.jsx)(p,{swipeable:!0,draggable:!0,showDots:!0,responsive:x,ssr:!1,infinite:!0,autoPlay:!0,autoPlaySpeed:5e3,arrows:!1,keyBoardControl:!0,transitionDuration:500,customTransition:"transform 0.5s ease-in-out",containerClass:o().carousel,className:"packages-carousel",children:a.map((e,t)=>(0,n.jsx)("div",{className:o().image,style:{backgroundImage:"url(".concat(e.image.url,")")}},t))})}),(0,n.jsxs)("div",{className:"".concat(o().content_wrapper),children:[(0,n.jsxs)("div",{className:"".concat(o().content),children:[j&&C&&(0,n.jsx)(d.w,{amountOfStars:j,pillContent:"".concat(C," Noches")}),l&&(0,n.jsx)(r.o,{variant:"h4",bold:!0,className:o().m0,children:l||""}),(0,n.jsxs)("div",{className:o().column,children:[g&&g.length>0&&(0,n.jsxs)("div",{className:o().row,children:[(0,n.jsx)(i.I,{name:i.F.HOTEL,color:"default",width:16,height:16}),(0,n.jsx)(r.o,{variant:"body medium",bold:!0,className:o().m0,children:g})]}),y&&(0,n.jsx)(r.o,{variant:"body small",className:o().m0,children:y||""})]}),u&&u.length>0&&v&&v.length>0&&(0,n.jsx)(s.U,{origin:u||"",destination:v||"",icon:i.F.DIRECTIONS_BOAT})]}),(0,n.jsxs)("div",{className:"".concat(o().content),children:[u&&u.length>0&&v&&v.length>0&&(0,n.jsx)("div",{className:o().divider}),(0,n.jsxs)("div",{className:"".concat(o().column," ").concat(o().gap_small),children:[b&&(0,n.jsx)("div",{children:(0,n.jsx)(c.a,{content:b||"",color:"green",variant:"subtle",size:"big"})}),f&&(0,n.jsx)(r.o,{variant:"body small",className:o().m0,children:f||""})]}),(0,n.jsx)("div",{className:"".concat(o().mt_05),children:(0,n.jsx)(h.N,{href:t,fullwidth:S,size:"big",target:P?"_blank":"","data-sentry-element":"Link","data-sentry-source-file":"PackagesCard.tsx",children:w||"Comprar"})})]})]})]})})}},62682:e=>{e.exports={container:"notFound_container__jzwqo",content:"notFound_content__3Ktbg",title:"notFound_title__zLn_q",textContainer:"notFound_textContainer__jXCi8",contentImg:"notFound_contentImg__zFpYo",fontW600:"notFound_fontW600___bItr",buttonContainer:"notFound_buttonContainer__eB3AA"}},63473:(e,t,a)=>{"use strict";a.d(t,{R:()=>T});var n=a(95155),r=a(12115),l=a(99003),o=a(49584),s=a(22209),i=a(42399),c=a(57191),d=a(34318);let u=i.Ik({plateNumber:s.xV.plateNumber(),entryDate:i.Yj().required("La fecha de nacimiento es obligatoria").test("is-valid-date","La fecha ingresada no es v\xe1lida",e=>!!e&&""!==e.trim()&&!isNaN((0,c.uO)(e).getTime())),exitDate:i.Yj().required("La fecha de nacimiento es obligatoria").test("is-valid-date","La fecha ingresada no es v\xe1lida",e=>{if(!e||""===e.trim())return!1;let t=(0,c.uO)(e);
1return d.V.debug("birthDate",t),!isNaN(t.getTime())})}).required();var m=a(62030),_=a(26693);let h={getDateToday:()=>{let e=new Date;return e.setHours(0,0,0,0),e},getDateAfterGivenDate:(e,t)=>{let a=new Date(e);return a.setHours(a.getHours()+t),a}};var p=a(36205),x=a(79846),v=a(20478),g=a.n(v),y=a(54091);let b=e=>{let t=p.Z.parseDateInput(e);return t||("string"==typeof e?e:"")},f=e=>{let{defaultValues:t,onSubmit:a}=e,[s,i]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),p=(0,o.t)(u),v=(0,r.useMemo)(()=>({...t,entryDate:b(null==t?void 0:t.entryDate),exitDate:b(null==t?void 0:t.exitDate)}),[t]),{control:f,handleSubmit:C,watch:j,setValue:k}=(0,l.mN)({defaultValues:v,resolver:p}),N=(0,r.useMemo)(()=>h.getDateToday(),[]),T=j("entryDate"),B=(0,r.useMemo)(()=>h.getDateAfterGivenDate(T,0),[T]);return(0,n.jsxs)("form",{onSubmit:C(a),className:g().container,"data-sentry-component":"ParkingSearch","data-sentry-source-file":"ParkingSearch.tsx",children:[(0,n.jsx)(m.p,{dataTestId:y.Y.PARKING.SEARCH.PLATE_NUMBER_INPUT,name:"plateNumber",control:f,placeholder:"N\xfamero de patente",label:"N\xfamero de patente","data-sentry-element":"Input","data-sentry-source-file":"ParkingSearch.tsx"}),(0,n.jsx)(_.Y,{dataTestId:y.Y.PARKING.SEARCH.ENTRY_DATE_INPUT,name:"entryDate",placeholder:"Fecha de ingreso",label:"Fecha de ingreso",control:f,selectableDateSince:N,onChangeExtra:()=>{d(!0),k("exitDate",""),i(!1)},isOpen:s,setIsOpen:i,displaySeparator:"/","data-sentry-element":"SelectDates","data-sentry-source-file":"ParkingSearch.tsx"}),(0,n.jsx)(_.Y,{dataTestId:y.Y.PARKING.SEARCH.EXIT_DATE_INPUT,name:"exitDate",placeholder:"Fecha de salida",label:"Fecha de salida",control:f,selectableDateSince:B,isOpen:c,setIsOpen:d,onChangeExtra:()=>d(!1),displaySeparator:"/","data-sentry-element":"SelectDates","data-sentry-source-file":"ParkingSearch.tsx"}),(0,n.jsx)(x.$,{type:"submit",className:g().searchButton,dataTestId:y.Y.PARKING.SEARCH.SEARCH_BTN,"data-sentry-element":"Button","data-sentry-source-file":"ParkingSearch.tsx",children:"Buscar"})]})};var C=a(49018),j=a(15653),k=a(33322),N=a(37834);let T=e=>{let{onAfterSubmit:t}=e,a=(0,C.jL)(),{searchParameters:r}=(0,C.GV)(e=>e.parkings);return(0,n.jsx)(f,{defaultValues:r,onSubmit:e=>{let n={...e};e.startDate&&(n.startDate=p.Z.normalizeDate(e.startDate)),e.endDate&&(n.endDate=p.Z.normalizeDate(e.endDate)),a((0,j.Hm)(n)),a((0,N.CD)("parking")),a((0,k.PJ)(!1)),t&&t()},"data-sentry-element":"ParkingSearch","data-sentry-component":"ParkingSearchContainer","data-sentry-source-file":"ParkingSearchContainer.tsx"})}},63545:(e,t,a)=>{"use strict";a.d(t,{DeckCardBlock:()=>g});var n=a(95155),r=a(12115),l=a(42304),o=a.n(l),s=a(23745),i=a(73968),c=a(11434),d=a(51320),u=a.n(d),m=a(49018);let _=e=>{let{pillContent:t,standardPrice:a,promoPrice:r,currency:l}=e,{site:o}=(0,m.GV)(e=>e.site);return(0,n.jsxs)("div",{className:"".concat(u().price_wrapper),"data-sentry-component":"Trip","data-sentry-source-file":"DeckCardPrice.tsx",children:[(0,n.jsx)("div",{children:(0,n.jsx)(i.a,{content:t,color:"blue",variant:"subtle",size:"big","data-sentry-element":"Pill","data-sentry-source-file":"DeckCardPrice.tsx"})}),(0,n.jsxs)("div",{className:"".concat(u().price),children:[(0,n.jsxs)(s.o,{variant:"h5",className:"".concat(u().m0," ").concat(u().previous_price),"data-sentry-element":"Typography","data-sentry-source-file":"DeckCardPrice.tsx",children:[l," ",a," *"]}),(0,n.jsxs)(s.o,{variant:"h3",tag:"span",bold:!0,className:"".concat(u().m0),"data-sentry-element":"Typography","data-sentry-source-file":"DeckCardPrice.tsx",children:[l," ",r]})]})]})};var h=a(14870),p=a(2520),x=a(84455);let v=e=>{var t,a,l,d,u,m;let{deckCard:v}=e,g=(0,h.U)("mobile"),y={backgroundImage:(e=>{let t=null==e?void 0:e.trim();return t?"url(".concat(JSON.stringify(t),")"):void 0})(v.image.url)};return(0,n.jsxs)("div",{className:"".concat(o().card),onClick:e=>{!e.target.closest('\n a,\n button,\n input,\n textarea,\n select,\n [role="button"],\n [data-prevent-card-click]\n ')&&v.buttonLink&&(v.openNewWindows?window.open(v.buttonLink,"_blank"):window.location.href=v.buttonLink)},"data-sentry-component":"DeckCard","data-sentry-source-file":"DeckCard.tsx",children:[(0,n.jsx)("div",{className:"".concat(o().image),style:y,children:(0,n.jsx)("span",{className:"".concat(o().image_tag),children:v.billContent&&(0,n.jsx)(i.a,{content:v.billContent,color:"blue",variant:"solid",size:"big"})})}),(0,n.jsxs)("div",{className:"".concat(o().content_wrapper),children:[(0,n.jsxs)("div",{className:"".concat(o().content),children:[v.origin&&v.destination&&(0,n.jsx)(c.U,{origin:v.origin,destination:v.destination}),(0,n.jsx)(s.o,{variant:"h4",bold:!0,className:"".concat(o().m0),"data-sentry-element":"Typography","data-sentry-source-file":"DeckCard.tsx",children:v.title}),(0,n.jsx)(s.o,{variant:"body medium",className:"".concat(o().m0),"data-sentry-element":"Typography","data-sentry-source-file":"DeckCard.tsx",children:null==(l=v.paragraph)||null==(a=l[0])||null==(t=a.children)?void 0:t.map((e,t)=>(0,n.jsx)("span",{style:{fontStyle:e.italic?"italic":"normal",fontWeight:e.bold?"bold":"normal"},children:e.text},t))}),(0,n.jsx)(s.o,{variant:"body small",className:"".concat(o().m0),"data-sentry-element":"Typography","data-sentry-source-file":"DeckCard.tsx",children:null==(u=v.secondaryParagraph)||null==(d=u[0])?void 0:d.children.map((e,t)=>"string"!=typeof e.text?null:(0,n.jsx)("span",{style:{fontStyle:e.italic?"italic":"normal",fontWeight:e.bold?"bold":"normal"},children:e.text},t))}),(0,n.jsx)("div",{className:"".concat(o().divider)}),(null==(m=v.promotions)?void 0:m.length)>0?v.promotions.map((e,t)=>"string"!=typeof e.promotionDescription||"string"!=typeof e.standardPrice||"string"!=typeof e.promoPrice?null:(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(_,{pillContent:e.promotionDescription,standardPrice:e.standardPrice,promoPrice:e.promoPrice,currency:v.currency}),t<v.promotions.length-1&&(0,n.jsx)("div",{className:"".concat(o().divider)})]},t)):(0,n.jsx)(s.o,{variant:"body small",children:"No hay promociones dis
1ponibles."}),v.includeCoupon&&v.couponName&&(0,n.jsx)("div",{className:"".concat(o().divider)}),v.includeCoupon&&v.couponName&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"".concat(o().coupon_wrapper),children:(0,n.jsx)(p.v,{couponBackgroundColor:v.couponBackgroundColor,couponTextColor:v.couponTextColor,couponName:v.couponName})}),(0,n.jsx)(s.o,{variant:"body small",className:"".concat(o().m0),children:v.couponDueDate?"V\xe1lido hasta el ".concat(new Date(v.couponDueDate).toLocaleDateString("es-AR",{day:"2-digit",month:"2-digit",year:"numeric"}),"."):""})]}),v.clarification&&(0,n.jsx)("div",{className:"".concat(o().divider)}),v.clarification&&(0,n.jsx)(s.o,{variant:"body small",className:"".concat(o().m0),children:v.clarification})]}),v.buttonText&&v.buttonLink&&(0,n.jsxs)("div",{className:o().content,children:[v.buttonText&&v.buttonLink&&(0,n.jsx)("div",{className:"".concat(o().divider)}),(0,n.jsx)(x.N,{fullwidth:g,variant:"primary",size:"big",href:v.buttonLink,target:v.openNewWindows?"_blank":"",rel:"noopener noreferrer",children:v.buttonText})]})]})]})},g=e=>{let{billContent:t,title:a,origin:r,destination:l,currency:o,paragraph:s,secondaryParagraph:i,backgroundImage:c,promotions:d,clarification:u,buttonText:m,openNewWindows:_,buttonLink:h,couponsCampaign:p}=e,x=(null==c?void 0:c.url)||"",g=(null==c?void 0:c.alt)||"",y=(null==c?void 0:c.width)||0,b=(null==c?void 0:c.height)||0,f=new Date,C=!1,j="",k="",N="",T="";if(p&&p.couponValidFrom&&p.couponValidTo){let e=new Date(p.couponValidFrom),t=new Date(p.couponValidTo);e<=f&&t>=f&&(C=!0,j=p.couponName||"",k=p.couponBackgroundColor||"",N=p.couponTextColor||"",T=p.couponValidTo||"")}return(0,n.jsx)(v,{deckCard:{billContent:t||"",title:a||"",paragraph:s,secondaryParagraph:i,origin:r||"",destination:l||"",currency:o||"USD",image:{url:x,alt:g,width:y,height:b},promotions:d,clarification:u||"",buttonText:m||"",openNewWindows:_,buttonLink:h||"",includeCoupon:C,couponName:j,couponBackgroundColor:k,couponTextColor:N,couponDueDate:T},"data-sentry-element":"DeckCard","data-sentry-component":"DeckCardBlock","data-sentry-source-file":"index.tsx"})}},64104:e=>{e.exports={m0:"BankPromotionCard_m0__n4oh1",title:"BankPromotionCard_title__jFZ12",card:"BankPromotionCard_card__iDT1i",w_100:"BankPromotionCard_w_100__wr3Nb",clickable:"BankPromotionCard_clickable___6CnB",static:"BankPromotionCard_static__cVpNQ",link:"BankPromotionCard_link__v444D",modal_container:"BankPromotionCard_modal_container__BJ30A",modal_text:"BankPromotionCard_modal_text__G67wv",modal_image:"BankPromotionCard_modal_image__po3b4",close_button:"BankPromotionCard_close_button__DJEPw",modal_wrapper:"BankPromotionCard_modal_wrapper__AgDtD",text_secondary:"BankPromotionCard_text_secondary___qVsT"}},66064:e=>{e.exports={banner:"PerksBanner_banner__z89Vt",perks_list:"PerksBanner_perks_list__uIexo",m0:"PerksBanner_m0__dV_ZR",mt_1:"PerksBanner_mt_1__nrzeh",none_textDecoration:"PerksBanner_none_textDecoration__YSmCg"}},66151:e=>{e.exports={searchComponentContainer:"SearchMobile_searchComponentContainer__POyzb",searchComponent:"SearchMobile_searchComponent__HVfMd",searchTopLabel:"SearchMobile_searchTopLabel__0fpkK",labelContainer:"SearchMobile_labelContainer__Wxc4a",selected:"SearchMobile_selected__JlfhO",searchCalendar:"SearchMobile_searchCalendar__vMZ21",searchCalendarLabels:"SearchMobile_searchCalendarLabels__JHd9n",tripWayOption:"SearchMobile_tripWayOption__aIW_K",tripWayRadio:"SearchMobile_tripWayRadio__HqiI4",searchCalendarSelector:"SearchMobile_searchCalendarSelector__K5s3Q",searchCalendarSelectorInner:"SearchMobile_searchCalendarSelectorInner__Q6uTM",sliderComponent:"SearchMobile_sliderComponent__758_a",slideContainer:"SearchMobile_slideContainer__9votZ",sliderText:"SearchMobile_sliderText__fI4wN",searchButton:"SearchMobile_searchButton__paHfS",tabItemItau:"SearchMobile_tabItemItau__Pq8MW",tabControl:"SearchMobile_tabControl__dXWTK",tabs:"SearchMobile_tabs__S3pJ4",tabItem:"SearchMobile_tabItem__sLiVg",floatingRightArrow:"SearchMobile_floatingRightArrow__iavka",searchContainer:"SearchMobile_searchContainer__o3tNG",iconStyle:"SearchMobile_iconStyle__p03la",content:"SearchMobile_content__Tyyc_",dayToursSearchContainer:"SearchMobile_dayToursSearchContainer__hI1lN",itauValidationText:"SearchMobile_itauValidationText__5yCnh",itauValidation:"SearchMobile_itauValidation__YAD_O",disabled:"SearchMobile_disabled__w50M4"}},66414:(e,t,a)=>{"use strict";a.d(t,{JK:()=>o,Yg:()=>s,ZZ:()=>l});var n=a(42399);let r=/^[a-zA-Z][a-zA-Z\s]*$/,l=n.Ik({name:n.Yj().required("Ingresa un nombre").matches(r,"Solo se permiten caracteres alfab\xe9ticos y espacios"),lastname:n.Yj().required("Ingresa un apellido").matches(r,"Solo se permiten caracteres alfab\xe9ticos y espacios"),documentCountry:n.Yj().required("Selecciona un pa\xeds"),documentType:n.Yj().required("Selecciona un tipo de documento"),documentNumber:n.Yj().required("Ingresa un Documento"),phone:n.Yj().required("Ingresa un n\xfamero de contacto"),email:n.Yj().email().required("Ingresa un correo"),bookingId:n.Yj().required("Ingresa un n\xfamero de pasaje"),description:n.Yj().required("Ingresa un comentario"),attentionType:n.Yj().required("Selecciona un tipo de atenci\xf3n"),attentionItem:n.Yj().required("Selecciona un item de atenci\xf3n")}
1).required(),o=[{value:"argentina",label:"ARGENTINA"},{value:"brasil",label:"BRASIL"},{value:"uruguay",label:"URUGUAY"},{value:"alemania",label:"ALEMANIA"},{value:"bolivia",label:"BOLIVIA"},{value:"canada",label:"CANADA"},{value:"chile",label:"CHILE"},{value:"colombia",label:"COLOMBIA"},{value:"espa\xf1a",label:"ESPA\xd1A"},{value:"estados_unidos",label:"ESTADOS UNIDOS"},{value:"francia",label:"FRANCIA"},{value:"italia",label:"ITALIA"},{value:"japon",label:"JAPON"},{value:"mexico",label:"MEXICO"},{value:"paraguay",label:"PARAGUAY"},{value:"peru",label:"PERU"},{value:"venezuela",label:"VENEZUELA"},{value:"otro_pais",label:"OTRO PAIS"}],s=[{value:"dni",label:"DNI"},{value:"cedula_uruguaya",label:"C\xe9dula Uruguaya"},{value:"pasaporte",label:"Pasaporte"}]},66780:(e,t,a)=>{"use strict";a.d(t,{default:()=>v});var n=a(95155);a(12115);var r=a(14051),l=a.n(r),o=a(26428),s=a.n(o),i=a(23745),c=a(13053),d=a(14870),u=a(73411),m=a(51500),_=a(56841),h=a.n(_);let p=e=>{let{image:t,modalTitle:a,modalText:r,hide:l}=e;return(0,n.jsxs)("div",{className:h().container,"data-sentry-component":"InstitutionalImageTitleCardModal","data-sentry-source-file":"index.tsx",children:[(0,n.jsx)("button",{className:h().close_button,onClick:l,children:(0,n.jsx)(c.I,{name:c.F.CLOSE,color:"white",width:18,height:18,"data-sentry-element":"Icon","data-sentry-source-file":"index.tsx"})}),(0,n.jsx)("div",{className:h().image,children:(0,n.jsx)("img",{src:t.src,alt:t.alt,className:h().image,style:{objectFit:"cover"}})}),(0,n.jsxs)("div",{className:h().text,children:[(0,n.jsx)(i.o,{variant:"h3",bold:!0,className:"".concat(h().m0),"data-sentry-element":"Typography","data-sentry-source-file":"index.tsx",children:a}),(0,n.jsx)(i.o,{variant:"body small",className:"".concat(h().m0," ").concat(h().text_secondary),"data-sentry-element":"Typography","data-sentry-source-file":"index.tsx",children:(0,n.jsx)(m.A,{content:r,"data-sentry-element":"RichTextRenderer","data-sentry-source-file":"index.tsx"})})]})]})},x=e=>{let{image:t,title:a,modalTitle:r,modalText:l,link:o,size:m="medium"}=e,_=(0,d.U)("mobile"),{show:h,hide:x}=(0,u.h)(),v=o&&""!==o.trim();return(0,n.jsx)(n.Fragment,{children:v?(0,n.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"".concat(s().card_wrapper," ").concat(s().link),children:(0,n.jsxs)("div",{className:"".concat(s().card," ").concat(s()[m]),children:[(0,n.jsx)("div",{className:s().image,children:(0,n.jsx)("img",{src:t.src,alt:t.alt,style:{width:"100%",height:"100%",objectFit:"cover"}})}),(0,n.jsxs)("div",{className:s().content,children:[(0,n.jsx)(i.o,{variant:"h2",bold:!0,className:s().m0,children:a}),(0,n.jsx)(c.I,{name:c.F.ARROW_OUTWARD_TOP,color:"white",width:_?24:32,height:_?24:32})]})]})}):(0,n.jsx)("div",{className:"".concat(s().card_wrapper," ").concat(r?s().link:""),onClick:r?e=>{v||h("customModal",p,{image:t,modalTitle:r,modalText:l,hide:x})}:void 0,children:(0,n.jsxs)("div",{className:"".concat(s().card," ").concat(s()[m]),children:[(0,n.jsx)("div",{className:s().image,children:(0,n.jsx)("img",{src:t.src,alt:t.alt,style:{width:"100%",height:"100%",objectFit:"cover"}})}),(0,n.jsx)("div",{className:s().content,children:(0,n.jsx)(i.o,{variant:"h2",bold:!0,className:s().m0,children:a})})]})})})};x.propTypes={image:l().object.isRequired,title:l().string.isRequired,link:l().string,size:l().oneOf(["small","medium","large"]),modalTitle:(e,t,a)=>{if(!e.link&&!e[t])return Error("Prop '".concat(t,"' is required in '").concat(a,"' when 'link' is not provided."))},modalText:(e,t,a)=>{if(!e.link&&!e[t])return Error("Prop '".concat(t,"' is required in '").concat(a,"' when 'link' is not provided."))}},x.defaultProps={size:"medium",link:null,modalTitle:"",modalText:""};let v=x},66974:e=>{e.exports={modalBackdrop:"AdvertisementModal_modalBackdrop__7Vifl",modalContainer:"AdvertisementModal_modalContainer__4qFdC",closeButton:"AdvertisementModal_closeButton__vct5F"}},68268:e=>{e.exports={header:"InstitutionalFleetCardHeaderBlock_header__TNgyU",m0:"InstitutionalFleetCardHeaderBlock_m0__65y3T"}},68512:()=>{},68676:(e,t,a)=>{"use strict";a.d(t,{PerksCarouselBlock:()=>_});var n=a(95155);a(12115),a(39170);var r=a(37206),l=a(23745),o=a(82761),s=a.n(o),i=a(13053);let c=e=>{let{country:t,value:a,paragraph:r,icon:o,openNewWindows:c,link:d}=e;return(0,n.jsx)("a",{href:d,className:"".concat(s().link),target:c?"_blank":"_self",rel:c?"noopener noreferrer":"","data-sentry-component":"BQBPerksBanner","data-sentry-source-file":"BQBPerksBanner.tsx",children:(0,n.jsxs)("div",{className:"".concat(s().banner),children:[(0,n.jsxs)(l.o,{variant:"body big",className:"".concat(s().m0),"data-sentry-element":"Typography","data-sentry-source-file":"BQBPerksBanner.tsx",children:["\xbfPor qu\xe9 viajar con nosotros a ",t,"?"]}),(0,n.jsxs)("div",{className:"".concat(s().content),children:[(0,n.jsx)(i.I,{name:o,color:"default",width:56,height:56,className:s().icon,"data-sentry-element":"Icon","data-sentry-source-file":"BQBPerksBanner.tsx"}),(0,n.jsxs)(l.o,{variant:"h1",tag:"h3",bold:!0,className:"".concat(s().m0," ").concat(s().mayus," ").concat(s().text_center),"data-sentry-element":"Typography","data-sentry-source-file":"BQBPerksBanner.tsx",children:["BUQUEBUS ES ",(0,n.jsx)("span",{className:s().text_yellow,children:a})]}),(0,n.jsx)(l.o,{variant:"body medium",className:"".concat(s().m0," ").concat(s().text_center),"data-sentry-element":"Typography","data-sentry-source-file":"BQBPerksBanner.tsx",children:r})]}),(0,n.jsx)(l.o,{variant:"h5",className:"".concat(s().m0," ").concat(s().link_underline),"data-sentry-element":"Typography","data-sentry-source-file":"BQBPerksBanner.tsx",children:"Ver m\xe1s >"})]})})};a(68512);let d=(0,r.default)(()=>Promise.resolve().then(a.bind(a,97282)),{loadableGenerated:{webpack:()=>[97282]}}),u={desktop:{breakpoint:{max:3e3,min:1024},items:1,slidesToSlide:1},mobile:{breakpoint:{max:1023,min:0},items:1,slidesToSlide:1}},m=e=>{let{banners:t,autoPlaySpeed:a,autoPlayBoolean:r}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(d,{swipeable:!0,draggable:!0,showDots:!1,responsive:u,ssr:!0,infinite:t.length>1,autoPlay:r,autoPlaySpeed:a&&0!==a?a:5e3,arrows:!0,keyBoardControl:!0,transitionDuration:500,customTransition:"transform 0.5s ease-in-out",children:t.map((e,t)=>(0,n.jsx)(c,{country:e.countryName,value:e.value,paragraph:e.paragraph,icon:e.icon.toUpperCase(),openNewWindows:e.openNewWindows,link:e.url},t))})})},_=e=>{let{autoPlay:t,speed:a,banners:r}=e,l=new Date,o=r.filter(e=>{let{startDate:t,endDate:a}=e;if(t&&a){let e=new Date(t),n=new Date(a);return l>=e&&l<=n}return t&&!a?l>=new Date(t):!t&&a?l<=new Date(a):!t&&!a||!1});return(0,n.jsx)(m,{autoPlayBoolean:t,autoPlaySpeed:a,banners:o.map(e=>({countryName:e.countryName,value:e.valueBanner,paragraph:e.paragraph,icon:e.icon,openNewWindows:e.openNewWindows,url:e.urlBanner})),"data-sentry-element":"BQBPerksBannerCarousel","data-sentry-component":"PerksCarouselBlock","data-sentry-source-file":"index.tsx"})}},68978:e=>{e.exports={container:"arrivalsAndDeparturesSchedule_container__mEd6y",contentTab:"arrivalsAndDeparturesSchedule_contentTab__uYpAD",cityAndDateSelectorContainer:"arrivalsAndDeparturesSchedule_cityAndDateSelectorContainer__P7MDa",dateTabsContainer:"arrivalsAndDeparturesSchedule_dateTabsContainer__uE24z"}},69932:e=>{e.exports={button:"link_button__c_cl6",noFullWidth:"link_noFullWidth__pUajo",fullWidth:"link_fullWidth__gMoA2",smallSize:"link_smallSize__pWnA7",bigSize:"link_bigSize__JPDMu",primary:"link_primary__xW0NJ",tertiary:"link_tertiary__KTHvC",secondary:"link_secondary__KaG_c"}},69952:e=>{e.exports={banner:"InstitutionalGreenChoiceBanner_banner__2OBTk",content:"InstitutionalGreenChoiceBanner_content__2I4Bi"}},70641:(e,t,a)=>{"use strict";a.d(t,{w:()=>c});var n=a(95155);a(12115);var r=a(58128),l=a.n(r),o=a(73968),s=a(13053),i=a(14870);let c=e=>{let{pillContent:t,amountOfStars:a}=e,r=Number(a),c=isNaN(r)?0:Math.max(0,Math.min(5,r)),d=(0,i.U)("mobile");return(0,n.jsxs)("div",{className:l().wrapper,"data-sentry-component":"StarsPills","data-sentry-source-file":"StarsPills.tsx",children:[0!==a&&(0,n.jsx)("div",{children:[...Array(c)].map((e,t)=>(0,n.jsx)(s.I,{name:s.F.STAR,color:"gold",width:d?18:24,height:d?18:24},t))}),t&&(0,n.jsx)("div",{children:(0,n.jsx)(o.a,{content:t,color:"blue",variant:"subtle",size:"big"})})]})}},70747:(e,t,a)=>{"use strict";a.d(t,{AdvertisementCarouselBlock:()=>y});var n=a(95155);a(12115),a(39170);var r=a(37206),l=a(83255),o=a.n(l),s=a(14870);let i=e=>
1{let{text:t,openNewWindows:a,link:r,image:l,width:i,height:c,rounded:d=!1}=e,u=(0,s.U)("mobile"),m=!!i&&!!c,_={backgroundImage:"url(".concat(l,")"),...u&&m?{aspectRatio:"".concat(i," / ").concat(c)}:{}};return(0,n.jsx)("a",{href:r||"#",className:"".concat(!r?o().noLink:""," ").concat(o().link),target:a?"_blank":"_self",rel:a?"noopener noreferrer":"","data-sentry-component":"BQBAdvertisementBanner","data-sentry-source-file":"BQBAdvertisementBanner.tsx",children:(0,n.jsx)("div",{className:"".concat(o().banner," ").concat(d?o().rounded:""),style:_})})};var c=a(61311),d=a.n(c),u=a(23745),m=a(79846),_=a(73321);let h=e=>{let{image:t,width:a,height:r,openNewWindows:l,link:o,buttonText:i,title:c}=e,h=(0,_.useRouter)(),p=(0,s.U)("mobile"),x=!!a&&!!r,v={backgroundImage:"url(".concat(t,")"),...p&&x?{aspectRatio:"".concat(a," / ").concat(r)}:{}};return(0,n.jsx)("div",{className:"".concat(d().banner),style:v,"data-sentry-component":"BQBFinancingBanner","data-sentry-source-file":"BQBFinancingBanner.tsx",children:(0,n.jsxs)("div",{className:"".concat(d().content),children:[(0,n.jsx)(u.o,{variant:"h1",tag:"h3",bold:!0,className:"".concat(d().m0," ").concat(d().w_100," ").concat(d().text_smaller_mobile),"data-sentry-element":"Typography","data-sentry-source-file":"BQBFinancingBanner.tsx",children:c}),(0,n.jsx)(m.$,{variant:"secondary",size:"big",className:"".concat(d().no_wrap," ").concat(d().button_smaller_mobile),onClick:()=>{l?window.open(o,"_blank","noopener,noreferrer"):h.push(o)},"data-sentry-element":"Button","data-sentry-source-file":"BQBFinancingBanner.tsx",children:i})]})})};a(73220);var p=a(36939);let x=(0,r.default)(()=>Promise.resolve().then(a.bind(a,97282)),{loadableGenerated:{webpack:()=>[97282]}}),v={desktop:{breakpoint:{max:3e3,min:1024},items:1,slidesToSlide:1},mobile:{breakpoint:{max:1023,min:0},items:1,slidesToSlide:1}},g=e=>{let{banners:t,autoPlaySpeed:a,autoPlayBoolean:r}=e,l=(0,p.A)();return(0,n.jsx)("div",{"data-sentry-component":"BQBAdvertisementCarousel","data-sentry-source-file":"BQBAdvertisementCarousel.tsx",children:(0,n.jsx)(x,{swipeable:!0,draggable:!0,showDots:!1,responsive:v,ssr:!0,infinite:t.length>1,autoPlay:r,autoPlaySpeed:null!==a&&0!==a?a:5e3,arrows:!0,keyBoardControl:!0,transitionDuration:500,customTransition:"transform 0.5s ease-in-out",containerClass:"carousel_advertisement",children:t.map((e,t)=>"financing"===e.typeBanner?(0,n.jsx)(h,{title:e.text,buttonText:e.buttonText,image:l?e.imageMobile.url:e.imageDesktop.url,width:l?e.imageMobile.width:e.imageDesktop.width,height:l?e.imageMobile.height:e.imageDesktop.height,openNewWindows:e.openNewWindows,link:e.url},t):(0,n.jsx)(i,{text:e.text,image:l?e.imageMobile.url:e.imageDesktop.url,width:l?e.imageMobile.width:e.imageDesktop.width,height:l?e.imageMobile.height:e.imageDesktop.height,openNewWindows:e.openNewWindows,link:e.url,rounded:!0},t))})})},y=e=>{let{autoPlay:t,speed:a,banners:r}=e;return(0,n.jsx)(g,{autoPlayBoolean:t,autoPlaySpeed:a,banners:r.map(e=>{var t,a,n,r,l,o,s,i;let c=(null==(t=e.backgroundImageDesktop)?void 0:t.url)||"",d=(null==(a=e.backgroundImageDesktop)?void 0:a.alt)||"",u=(null==(n=e.backgroundImageDesktop)?void 0:n.width)||0,m=(null==(r=e.backgroundImageDesktop)?void 0:r.height)||0,_=(null==(l=e.backgroundImageMobile)?void 0:l.url)||"",h=(null==(o=e.backgroundImageMobile)?void 0:o.alt)||"",p=(null==(s=e.backgroundImageMobile)?void 0:s.width)||0,x=(null==(i=e.backgroundImageMobile)?void 0:i.height)||0;return{typeBanner:e.type,text:e.text||"",buttonText:e.buttonText||"",imageDesktop:{url:c,alt:d,height:m,width:u},imageMobile:{url:_,alt:h,height:x,width:p},openNewWindows:e.openNewWindows,url:e.urlBanner}}),"data-sentry-element":"BQBAdvertisementCarousel","data-sentry-component":"AdvertisementCarouselBlock","data-sentry-source-file":"index.tsx"})}},72226:()=>{},72874:()=>{},73220:()=>{},74638:e=>{e.exports={wrapper:"BQBHeroSearchBox_wrapper___aRty",carousel_wrapper:"BQBHeroSearchBox_carousel_wrapper__qZeUI",container:"BQBHeroSearchBox_container__uuGN_",searchContent:"BQBHeroSearchBox_searchContent__kE7fe"}},74912:e=>{e.exports={banner:"InstitutionalSustainabilityBanner_banner__iW1qs",content:"InstitutionalSustainabilityBanner_content__adkI3",m0:"InstitutionalSustainabilityBanner_m0__eOUie",image:"InstitutionalSustainabilityBanner_image__UiSVT"}},75705:(e,t,a)=>{"use strict";a.d(t,{default:()=>k});var n=a(95155),r=a(12115),l=a(47114),o=a.n(l),s=a(23745),i=a(13053),c=a(99003),d=a(62030),u=a(44992),m=a.n(u),_=a(79846),h=a(44717);let p=e=>{let{control:t,handleSubmit:a,onSubmit:r,loading:l}=e;return(0,n.jsxs)("form",{onSubmit:a(r),className:m().form,"data-sentry-component":"NewsletterForm","data-sentry-source-file":"NewsletterForm.tsx",children:[(0,n.jsx)(d.p,{control:t,name:"email",label:"Ingresa tu email",placeholder:"Ingresa tu email",className:m().input,"data-sentry-element":"Input","data-sentry-source-file":"NewsletterForm.tsx"}),(0,n.jsx)(_.$,{variant:"primary",size:"big",fullwidth:!0,className:m().button,disabled:l,"data-sentry-element":"Button","data-sentry-source-file":"NewsletterForm.tsx",children:l?(0,n.jsx)(h.F,{}):"Suscribirme"})]})};var x=a(34318);async function v(e){try{let t=await fetch("/api/enableNewsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});return{...await t.json(),ok:t.ok,status:t.status}}catch(e){throw x.V.error("Error enabling or creating newsletter subscription:",e),e}}var g=a(42399);let y={email:""},b=g.Ik({email:g.Yj().email("Ingresa un email v\xe1lido").required("El email es requerido")}).required();var f=a(49584),C=a(99661);let j=()=>{let{control:e,handleSubmit:t,reset:a}=(0,c.mN)({defaultValues:y,resolver:(0,f.t)(b)}),[l,o]=(0,r.useState)(!1),{show:s}=(0,C.d)(),i=async e=>{o(!0);try{(await v(e.email)).ok?(s({title:"\xc9xito",description:"Te suscribiste correctamente a nuestro newsletter.",duration:5e3,type:"success"}
1),a()):s({title:"Atenci\xf3n!",description:"No pudimos completar la suscripci\xf3n. Intenta nuevamente.",duration:5e3,type:"error"})}catch(e){s({title:"Error",description:"No pudimos completar la suscripci\xf3n. Intenta nuevamente.",duration:5e3,type:"error"})}finally{o(!1)}};return(0,n.jsx)(p,{control:e,handleSubmit:t,onSubmit:i,reset:a,loading:l,"data-sentry-element":"NewsletterForm","data-sentry-component":"NewsletterFormContainer","data-sentry-source-file":"NewsletterFormContainer.tsx"})},k=()=>(0,n.jsx)("div",{className:o().backgroundContainer,"data-sentry-component":"Newsletter","data-sentry-source-file":"Newsletter.tsx",children:(0,n.jsxs)("div",{className:o().container,children:[(0,n.jsxs)("div",{className:o().titleContainer,children:[(0,n.jsx)(i.I,{name:i.F.NEWSLETTER,color:"default","data-sentry-element":"Icon","data-sentry-source-file":"Newsletter.tsx"}),(0,n.jsx)(s.o,{variant:"h3",bold:!0,className:o().title,"data-sentry-element":"Typography","data-sentry-source-file":"Newsletter.tsx",children:"\xa1Recib\xed antes que nadie las mejores ofertas!"})]}),(0,n.jsx)(j,{"data-sentry-element":"NewsletterForm","data-sentry-source-file":"Newsletter.tsx"})]})})},76180:e=>{e.exports={banner:"InstitutionalImageTextGradientBanner_banner__gR1AI",m0:"InstitutionalImageTextGradientBanner_m0__06B_O",col:"InstitutionalImageTextGradientBanner_col__r_009",image:"InstitutionalImageTextGradientBanner_image__zmNQo",row:"InstitutionalImageTextGradientBanner_row__Wp71V",container:"InstitutionalImageTextGradientBanner_container__klRD7",content:"InstitutionalImageTextGradientBanner_content__tCtvA"}},76374:e=>{e.exports={grid:"GridPerks_grid__qKT1D",card:"GridPerks_card__GaxW7",discount:"GridPerks_discount__qbwbH",description:"GridPerks_description___LiVX"}},78272:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var n=a(95155);a(12115);var r=a(48344),l=a.n(r),o=a(23745),s=a(51500);let i=e=>{let{firstColTitle:t,firstColChildren:a,secondColTitle:r,secondColChildren:i,imageFirstClass1:c,imageFirstClass2:d}=e,u={backgroundImage:"url(".concat(c.src,")")},m={backgroundImage:"url(".concat(d.src,")")};return(0,n.jsxs)("div",{className:l().row,"data-sentry-component":"InstitutionalGalleryImageTextVertical","data-sentry-source-file":"InstitutionalGalleryImageTextVertical.tsx",children:[(0,n.jsxs)("div",{className:l().col,children:[(0,n.jsx)("div",{className:"".concat(l().image),style:u}),(0,n.jsxs)("div",{className:l().content,children:[(0,n.jsx)(o.o,{variant:"h3",bold:!0,className:"".concat(l().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalGalleryImageTextVertical.tsx",children:t}),(0,n.jsx)(o.o,{variant:"body big",className:"".concat(l().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalGalleryImageTextVertical.tsx",children:(0,n.jsx)(s.A,{content:a,"data-sentry-element":"RichTextRenderer","data-sentry-source-file":"InstitutionalGalleryImageTextVertical.tsx"})})]})]}),(0,n.jsxs)("div",{className:l().col,children:[(0,n.jsx)("div",{className:"".concat(l().image),style:m}),(0,n.jsxs)("div",{className:l().content,children:[(0,n.jsx)(o.o,{variant:"h3",bold:!0,className:"".concat(l().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalGalleryImageTextVertical.tsx",children:r}),(0,n.jsx)(o.o,{variant:"body big",className:"".concat(l().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalGalleryImageTextVertical.tsx",children:(0,n.jsx)(s.A,{content:i,"data-sentry-element":"RichTextRenderer","data-sentry-source-file":"InstitutionalGalleryImageTextVertical.tsx"})})]})]})]})}},78422:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,38437,23)),Promise.resolve().then(a.bind(a,83437)),Promise.resolve().then(a.bind(a,98836)),Promise.resolve().then(a.bind(a,61234)),Promise.resolve().then(a.bind(a,63997)),Promise.resolve().then(a.bind(a,65264)),Promise.resolve().then(a.bind(a,28692)),Promise.resolve().then(a.bind(a,14130)),Promise.resolve().then(a.bind(a,70744)),Promise.resolve().then(a.bind(a,75164)),Promise.resolve().then(a.bind(a,38909)),Promise.resolve().then(a.bind(a,32581)),Promise.resolve().then(a.bind(a,12623)),Promise.resolve().then(a.bind(a,96634)),Promise.resolve().then(a.bind(a,3067)),Promise.resolve().then(a.bind(a,94248)),Promise.resolve().then(a.bind(a,42686)),Promise.resolve().then(a.bind(a,41917)),Promise.resolve().then(a.bind(a,29932)),Promise.resolve().then(a.bind(a,7234)),Promise.resolve().then(a.bind(a,53031)),Promise.resolve().then(a.bind(a,53750)),Promise.resolve().then(a.bind(a,11046)),Promise.resolve().then(a.bind(a,87051)),Promise.resolve().then(a.bind(a,41361)),Promise.resolve().then(a.bind(a,49405)),Promise.resolve().then(a.bind(a,55415)),Promise.resolve().then(a.bind(a,86980)),Promise.resolve().then(a.bind(a,99531)),Promise.resolve().then(a.bind(a,78005)),Promise.resolve().then(a.bind(a,60795)),Promise.resolve().then(a.bind(a,38681)),Promise.resolve().then(a.bind(a,13543)),Promise.resolve().then(a.bind(a,46594)),Promise.resolve().then(a.bind(a,34574)),Promise.resolve().then(a.bind(a,56282)),Promise.resolve().then(a.bind(a,22963)),Promise.resolve().then(a.bind(a,31600)),Promise.resolve().then(a.bind(a,14020)),Promise.resolve().then(a.bind(a,13187)),Promise.resolve().then(a.bind(a,45378)),Promise.resolve().then(a.bind(a,31670)),Promise.resolve().then(a.bind(a,45429)),Promise.resolve().then(a.bind(a,76638)),Promise.resolve().then(a.bind(a,71183)),Promise.resolve().then(a.bind(a,211)),Promise.resolve().then(a.bind(a,63033)),Promise.resolve().then(a.bind(a,52489)),Promise.resolve().then(a.bind(a,96314)),Promise.resolve().then(a.bind(a,24487)),Promise.resolve().then(a.bind(a,52598)),Promise.resolve().then(a.bind(a,62912)),Promise.resolve().then(a.bind(a,47463)),Promise.resolve().then(a.bind(a,11134)),Promise.resolve().then(a.bind(a,57558)),Promise.resolve().then(a.bind(a,79823)),Promise.resolve().then(a.bind(a,7257)),Promise.resolve().then(a.bind(a,81359)),Promise.resolve().then(a.bind(a,86049)),Promise.resolve().then(a.bind(a,38831)),Promise.resolve().then(a.bind(a,36164)),Promise.resolve().then(a.bind(a,45666)),Promise.resolve().then(a.bind(a,71396)),Promise.resolve().then(a.bind(a,25186)),Promise.resolve().then(a.bind(a,38328)),Promise.resolve().then(a.bind(a,35713)),Promise.resolve().then(a.bind(a,71642)),Promise.resolve().then(a.bind(a,39489)),Promise.resolve().then(a.bind(a,20438)),Promise.resolve().then(a.bind(a,10265)),Promise.resolve().then(a.bind(a,73972)),Promise.resolve().then(a.bind(a,29329)),Promise.resolve().then(a.bind(a,67122)),Promise.resolve().then(a.bind(a,26015)),Promise.resolve().then(a.bind(a,70633)),Promise.resolve().then(a.bind(a,40829)),Promise.resolve().then(a.bind(a,13180)),Promise.resolve().then(a.bind(a,1284)),Promise.resolve().then(a.bind(a,52499)),Promise.resolve().then(a.bind(a,93376)),Promise.resolve().then(a.bind(a,77325)),Promise.resolve().then(a.bind(a,5004)),Promise.resolve().then(a.bind(a,4300)),Promise.resolve().then(a.bind(a,21421)),Promise.resolve().then(a.bind(a,89901)),Promise.resolve().then(a.bind(a,32032)),Promise.resolve().then(a.bind(a,63767)),Promise.resolve().then(a.bind(a,44509)),Promise.resolve().then(a.bind(a,74090)),Promise.resolve().then(a.bind(a,74501)),Promise.resolve().then(a.bind(a,4663)),Promise.resolve().then(a.bind(a,97107)),Promise.resolve().then(a.bind(a,49916)),Promise.resolve().then(a.bind(a,14203)),Promise.resolve().then(a.bind(a,76075)),Promise.resolve().then(a.bind(a,62428)),Promise.resolve().then(a.bind(a,87058)),Promise.resolve().then(a.bind(a,50103)),Promise.resolve().then(a.bind(a,65976)),Promise.resolve().then(a.bind(a,54685)),Promise.resolve().then(a.bind(a,1343)),Promise.resolve().then(a.bind(a,72362)),Promise.resolve().then(a.bind(a,20814)),Promise.resolve().then(a.bind(a,59306)),Promise.resolve().then(a.bind(a,58739)),Promise.resolve().then(a.bind(a,36665)),Promise.resolve().then(a.bind(a,65156)),Promise.resolve().then(a.bind(a,71957)),Promise.resolve().then(a.bind(a,94760)),Promise.resolve().then(a.bind(a,41614)),Promise.resolve().then(a.bind(a,73200)),Promise.resolve().then(a.bind(a,59205)),Promise.resolve().then(a.bind(a,13640)),Promise.resolve().then(a.bind(a,73547)),Promise.resolve().then(a.bind(a,96328)),Promise.resolve().then(a.bind(a,51681)),Promise.resolve().then(a.bind(a,16241)),Promise.resolve().then(a.bind(a,89007)),Promise.resolve().then(a.bind(a,70329)),Promise.resolve().then(a.bind(a,89148)),Promise.resolve().then(a.bind(a,27186)),Promise.resolve().then(a.bind(a,90421)),Promise.resolve().then(a.bind(a,76919)),Promise.resolve().then(a.bind(a,35922)),Promise.resolve().then(a.bind(a,57905)),Promise.resolve().then(a.bind(a,87499)),Promise.resolve().then(a.bind(a,40506)),Promise.resolve().then(a.bind(a,82740)),Promise.resolve().then(a.bind(a,67138)),Promise.resolve().then(a.bind(a,31925)),Promise.resolve().then(a.bind(a,94075)),Promise.resolve().then(a.bind(a,9162)),Promise.resolve().then(a.bind(a,71802)),Promise.resolve().then(a.bind(a,79987)),Promise.resolve().then(a.bind(a,72839)),Promise.resolve().then(a.bind(a,86925)),Promise.resolve().then(a.bind(a,99447)),Promise.resolve().then(a.bind(a,70747)),Promise.resolve().then(a.bind(a,11940)),Promise.resolve().then(a.bind(a,63545)),Promise.resolve().then(a.bind(a,40210)),Promise.resolve().then(a.bind(a,6272)),Promise.resolve().then(a.bind(a,9328)),Promise.resolve().then(a.bind(a,5667
1)),Promise.resolve().then(a.bind(a,79643)),Promise.resolve().then(a.t.bind(a,26909,23)),Promise.resolve().then(a.bind(a,96267)),Promise.resolve().then(a.bind(a,92354)),Promise.resolve().then(a.bind(a,7995)),Promise.resolve().then(a.bind(a,99921)),Promise.resolve().then(a.bind(a,51218)),Promise.resolve().then(a.bind(a,94394)),Promise.resolve().then(a.bind(a,9716)),Promise.resolve().then(a.bind(a,79055)),Promise.resolve().then(a.bind(a,36745)),Promise.resolve().then(a.bind(a,54967)),Promise.resolve().then(a.bind(a,81726)),Promise.resolve().then(a.bind(a,34549)),Promise.resolve().then(a.bind(a,85328)),Promise.resolve().then(a.bind(a,87964)),Promise.resolve().then(a.bind(a,68676)),Promise.resolve().then(a.bind(a,28442)),Promise.resolve().then(a.t.bind(a,13468,23)),Promise.resolve().then(a.bind(a,55283)),Promise.resolve().then(a.bind(a,95514)),Promise.resolve().then(a.bind(a,27448)),Promise.resolve().then(a.bind(a,94374)),Promise.resolve().then(a.bind(a,31854)),Promise.resolve().then(a.bind(a,35006)),Promise.resolve().then(a.bind(a,54928)),Promise.resolve().then(a.t.bind(a,53810,23)),Promise.resolve().then(a.t.bind(a,58734,23)),Promise.resolve().then(a.t.bind(a,13622,23)),Promise.resolve().then(a.t.bind(a,57434,23)),Promise.resolve().then(a.bind(a,95640)),Promise.resolve().then(a.bind(a,78272)),Promise.resolve().then(a.t.bind(a,76180,23)),Promise.resolve().then(a.bind(a,66780)),Promise.resolve().then(a.t.bind(a,74912,23)),Promise.resolve().then(a.bind(a,40112)),Promise.resolve().then(a.bind(a,29608)),Promise.resolve().then(a.t.bind(a,52778,23)),Promise.resolve().then(a.t.bind(a,69952,23)),Promise.resolve().then(a.t.bind(a,55120,23)),Promise.resolve().then(a.t.bind(a,21176,23)),Promise.resolve().then(a.t.bind(a,76374,23)),Promise.resolve().then(a.t.bind(a,86386,23)),Promise.resolve().then(a.t.bind(a,5960,23)),Promise.resolve().then(a.bind(a,48328)),Promise.resolve().then(a.bind(a,93112)),Promise.resolve().then(a.bind(a,34514)),Promise.resolve().then(a.bind(a,90766)),Promise.resolve().then(a.bind(a,13572)),Promise.resolve().then(a.bind(a,75705)),Promise.resolve().then(a.bind(a,2154))},79055:(e,t,a)=>{"use strict";a.d(t,{InstitutionalTextButtonBannerBlock:()=>d});var n=a(95155);a(12115);var r=a(51108),l=a.n(r),o=a(23745),s=a(79846),i=a(73321);let c=e=>{let{pretitle:t,title:a,paragraph:r,image:c,buttonText:d,link:u}=e,m=(0,i.useRouter)(),_={backgroundImage:"url(".concat(c.src,")")};return(0,n.jsx)("div",{className:"".concat(l().banner),style:_,"data-sentry-component":"InstitutionalTextButtonBanner","data-sentry-source-file":"InstitutionalTextButtonBanner.tsx",children:(0,n.jsxs)("div",{className:"".concat(l().content),children:[(0,n.jsxs)("div",{className:"".concat(l().content_text),children:[t&&(0,n.jsx)(o.o,{variant:"body small",bold:!0,className:"".concat(l().m0),children:t}),(0,n.jsx)(o.o,{variant:"h2",bold:!0,className:"".concat(l().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalTextButtonBanner.tsx",children:a}),r&&(0,n.jsx)(o.o,{variant:"body big",className:"".concat(l().m0),children:r})]}),(0,n.jsx)("div",{children:(0,n.jsx)(s.$,{variant:"secondary",size:"big",onClick:()=>m.push(u),"data-sentry-element":"Button","data-sentry-source-file":"InstitutionalTextButtonBanner.tsx",children:d})})]})})},d=e=>{let{pretitle:t,title:a,paragraph:r,buttonText:l,backgroundImage:o,urlBanner:s}=e,i=(null==o?void 0:o.url)||"",d=(null==o?void 0:o.alt)||"",u=(null==o?void 0:o.width)||0,m=(null==o?void 0:o.height)||0;return(0,n.jsx)(c,{pretitle:t,title:a,paragraph:r,buttonText:l,image:{alt:d,height:m,width:u,src:i},link:s,"data-sentry-element":"InstitutionalTextButtonBanner","data-sentry-component":"InstitutionalTextButtonBannerBlock","data-sentry-source-file":"index.tsx"})}},79643:(e,t,a)=>{"use strict";a.d(t,{GalleryImages1Block:()=>s});var n=a(95155);a(12115);var r=a(28248),l=a.n(r);let o=e=>{let{imageFeatured:t,imageTop:a,imageBottom:r}=e,o={backgroundImage:"url(".concat(t.src,")")},s={backgroundImage:"url(".concat(a.src,")")},i={backgroundImage:"url(".concat(r.src,")")};return(0,n.jsxs)("div",{className:"".concat(l().gallery),"data-sentry-component":"InstitutionalGallery1_2","data-sentry-source-file":"InstitutionalGallery1_2.tsx",children:[(0,n.jsx)("div",{className:"".concat(l().image," ").concat(l().image_featured),style:o}),(0,n.jsxs)("div",{className:l().col,children:[(0,n.jsx)("div",{className:"".concat(l().image," ").concat(l().image2),style:s}),(0,n.jsx)("div",{className:"".concat(l().image," ").concat(l().image3),style:i})]})]})},s=e=>{let{imageTop:t,imageBottom:a,imageFeatured:r}=e,l=(null==t?void 0:t.url)||"";null==t||t.alt,null==t||t.width,null==t||t.height;let s=(null==a?void 0:a.url)||"",i=(null==r?void 0:r.url)||"";return(0,n.jsx)(o,{imageTop:{src:l}
1,imageBottom:{src:s},imageFeatured:{src:i},"data-sentry-element":"InstitutionalGallery1_2","data-sentry-component":"GalleryImages1Block","data-sentry-source-file":"index.tsx"})}},79846:(e,t,a)=>{"use strict";a.d(t,{$:()=>u});var n=a(95155);a(12115);var r=a(81407),l=a(98784),o=a.n(l);let s={primary:o().primary,secondary:o().secondary,tertiary:o().tertiary},i={small:o().smallSize,medium:o().mediumSize,big:o().bigSize},c={primary:o().disabledPrimary,secondary:o().disabledSecondary,tertiary:o().disabledTertiary},d={inherit:{veryLight:r.T.veryLightBlue,light:r.T.lightBlue,base:r.T.blue,dark:r.T.darkBlue},error:{veryLight:r.T.veryLightOrange,light:r.T.lightOrange,base:r.T.orange,dark:r.T.orange},disabled:{veryLight:r.T.dividerGray,light:r.T.dividerGray,base:r.T.dividerGray,dark:r.T.dividerGray}},u=e=>{let{variant:t="primary",fullwidth:a=!1,size:r="big",color:l="inherit",background:u,textColor:m,borderColor:_,style:h,dataTestId:p,...x}=e,v={...!x.disabled&&u&&m&&_?{background:u,color:m,borderColor:_}:{"--btn-very-light-color":x.disabled?d.disabled.veryLight:d[l].veryLight,"--btn-light-color":x.disabled?d.disabled.light:d[l].light,"--btn-color":x.disabled?d.disabled.base:d[l].base,"--btn-dark-color":x.disabled?d.disabled.dark:d[l].dark},...h};return(0,n.jsx)("button",{...x,"data-testid":p,className:"".concat(a&&"tertiary"!==t&&o().fullWidth," \n ").concat(t&&!x.disabled&&s[t]," \n ").concat(r&&i[r]," \n ").concat(x.disabled&&c[t],"\n ").concat(!x.disabled&&o().pointer,"\n ").concat(x.className," ").concat(o().button),style:v,"data-sentry-component":"Button","data-sentry-source-file":"Button.tsx",children:x.children})}},80044:e=>{e.exports={container:"textarea_container__44RNa",filledInput:"textarea_filledInput__MXitS",textarea:"textarea_textarea__8cYnF",labelText:"textarea_labelText__MQJSQ",invalid:"textarea_invalid__KCx8W",focused:"textarea_focused__veEXQ"}},80784:e=>{e.exports={card:"HotelCard_card__EFmdR",image:"HotelCard_image__yntRB",content_wrapper:"HotelCard_content_wrapper__MXFBA",content:"HotelCard_content__zB8Ak",m0:"HotelCard_m0__RGjr3",link:"HotelCard_link__z04P1",row:"HotelCard_row__iPaqw",column:"HotelCard_column__98XXx",gap_small:"HotelCard_gap_small__v8A7g",divider:"HotelCard_divider__YPC4t",pill_include:"HotelCard_pill_include__PC5VJ",favorite_badge:"HotelCard_favorite_badge__Tmtit",favorite_badge_icon:"HotelCard_favorite_badge_icon__bAQQU",text_green:"HotelCard_text_green__N_TFu",ellipsis:"HotelCard_ellipsis__uEoSA"}},81726:(e,t,a)=>{"use strict";a.d(t,{PackageCarrouselBlock:()=>m});var n=a(95155);a(12115),a(39170);var r=a(37206);a(41650);var l=a(62127);let o=(0,r.default)(()=>Promise.resolve().then(a.bind(a,97282)),{loadableGenerated:{webpack:()=>[97282]}}),s={desktop:{breakpoint:{max:3e3,min:1024},items:4,slidesToSlide:1},tablet:{breakpoint:{max:1023,min:601},items:2,slidesToSlide:1},mobile:{breakpoint:{max:600,min:0},items:1,slidesToSlide:1}},i=e=>{let{packageData:t,autoPlaySpeed:a,autoPlayBoolean:r}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(o,{swipeable:!0,draggable:!0,showDots:!1,responsive:s,ssr:!0,infinite:!0,autoPlay:r,autoPlaySpeed:null!==a&&0!==a?a:5e3,arrows:!0,keyBoardControl:!0,transitionDuration:500,customTransition:"transform 0.5s ease-in-out",containerClass:"carousel_package",children:t.map((e,t)=>(0,n.jsx)(l.s,{inCarousel:!0,favorite:e.favorite,images:e.images,includePill:e.includePill,starAmount:e.starAmount,destination:e.destination,origin:e.origin,discount:e.discount,hotel:e.hotel,labelPrice:e.labelPrice,link:e.link,location:e.location,title:e.title,nightsAmount:e.nightsAmount,favoriteTextOnHover:e.favoriteTextOnHover,favoriteImageIcon:e.favoriteImageIcon,textBoton:e.buttonText,openNewWindows:e.openNewWindows},t))})})};var c=a(12055),d=a(13468),u=a.n(d);let m=e=>{let{autoPlay:t,speed:a,packages:r}=e,l=(e,t)=>{var a;return Array.isArray(e)&&e.length>0&&(null==(a=e[0])?void 0:a.content)?(0,c.A)(e[0].content,t.blockColor):null},o=r.map(e=>({...e,blockType:"packageCardBlock",backgroundImage:e.backgroundImage,favorite:e.favorite,images:e.images,includePill:e.includePill,starAmount:e.starAmount,destination:l(e.destination,u()),origin:l(e.origin,u()),discount:e.discount,hotel:l(e.hotel,u()),labelPrice:l(e.labelPrice,u()),buttonText:e.buttonText,openNewWindows:e.openNewWindows,link:e.link,location:l(e.location,u()),title:l(e.title,u()),nightsAmount:e.nightsAmount,startDate:e.startDate,endD
1ate:e.endDate})),s=new Date,d=o.filter(e=>{let{startDate:t,endDate:a}=e;if(t&&a){let e=new Date(t),n=new Date(a);return s>=e&&s<=n}return t&&!a?s>=new Date(t):!t&&a?s<=new Date(a):!t&&!a||!1});return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i,{packageData:d,autoPlaySpeed:a,autoPlayBoolean:t,"data-sentry-element":"BQBPackagesCarousel","data-sentry-source-file":"index.tsx"})})}},82761:e=>{e.exports={banner:"BQBPerksBanner_banner__mtEph",content:"BQBPerksBanner_content__XGk9p",text_center:"BQBPerksBanner_text_center__KlEez",text_yellow:"BQBPerksBanner_text_yellow__JJ7Jm",mayus:"BQBPerksBanner_mayus__BK1YX",link:"BQBPerksBanner_link__oxF4F",m0:"BQBPerksBanner_m0__F4xBS",link_underline:"BQBPerksBanner_link_underline__vluSS"}},82847:e=>{e.exports={container:"dateTab_container__4W1qb",active:"dateTab_active__FWQVW",date:"dateTab_date__N2eey",content:"dateTab_content__jjQ3D"}},83255:e=>{e.exports={banner:"BQBAdvertisementBanner_banner__jy7c7",rounded:"BQBAdvertisementBanner_rounded__El8UY",link:"BQBAdvertisementBanner_link__0bCG3",noLink:"BQBAdvertisementBanner_noLink__AQgKH"}},84148:()=>{},84424:e=>{e.exports={label:"FrecuentaCard_label__8hmwi",card:"FrecuentaCard_card__KR023",image:"FrecuentaCard_image__OOPek",image_tag:"FrecuentaCard_image_tag__6GGS_",content_wrapper:"FrecuentaCard_content_wrapper__yMJ3U",content:"FrecuentaCard_content__84WMV",m0:"FrecuentaCard_m0__Q2hIn",divider:"FrecuentaCard_divider__puxQJ",coupon_wrapper:"FrecuentaCard_coupon_wrapper__cKF1v",coupon_validity:"FrecuentaCard_coupon_validity___j6OH",cta_button:"FrecuentaCard_cta_button__aKzfY",cta_wrapper:"FrecuentaCard_cta_wrapper__VSQqW"}},84436:()=>{},84455:(e,t,a)=>{"use strict";a.d(t,{N:()=>d});var n=a(95155);a(12115);var r=a(69932),l=a.n(r);let o={primary:l().primary,secondary:l().secondary,tertiary:l().tertiary},s={small:l().smallSize,medium:l().mediumSize,big:l().bigSize};var i=a(98500),c=a.n(i);let d=e=>{let{anotherTab:t=!1,href:a,variant:r="primary",fullwidth:i=!1,size:d="big",...u}=e;return(0,n.jsx)(c(),{target:t?"_blank":"",href:a,...u,className:"".concat(r&&o[r]," ").concat(d&&s[d],"\n ").concat(u.className," ").concat(l().button," ").concat("tertiary"!==r&&i?l().fullWidth:l().noFullWidth),"data-sentry-element":"NextLink","data-sentry-component":"Link","data-sentry-source-file":"Link.tsx",children:u.children})}},85328:(e,t,a)=>{"use strict";a.d(t,{PerksBannersLandingsBlock:()=>x});var n=a(95155);a(12115);var r=a(23745),l=a(66064),o=a.n(l),s=a(24538),i=a.n(s),c=a(73968);let d=e=>{let{discount:t,image:a,alt:r,width:l,height:o}=e;return(0,n.jsxs)("div",{className:"".concat(i().perk),"data-sentry-component":"Perk","data-sentry-source-file":"Perk.tsx",children:[(0,n.jsx)("img",{src:a,alt:r,width:l,height:o}),(0,n.jsx)("div",{children:(0,n.jsx)(c.a,{content:"".concat(t,"% OFF"),color:"blue",variant:"subtle",size:"big","data-sentry-element":"Pill","data-sentry-source-file":"Perk.tsx"})})]})};var u=a(14870),m=a(79846),_=a(73321);let h=e=>{let{perksBanner:t}=e,a=(0,u.U)("mobile"),l=(0,_.useRouter)();return(0,n.jsx)("a",{href:t.url,className:"".concat(o().none_textDecoration),target:t.openNewWindows?"_blank":"_self",rel:t.openNewWindows?"noopener noreferrer":void 0,"data-sentry-component":"PerksBanner","data-sentry-source-file":"PerksBanner.tsx",children:(0,n.jsxs)("div",{className:"".concat(o().banner),children:[(0,n.jsx)(r.o,{variant:"body big",className:"".concat(o().m0),"data-sentry-element":"Typography","data-sentry-source-file":"PerksBanner.tsx",children:t.paragraph}),a?(0,n.jsxs)("div",{children:[(0,n.jsx)(r.o,{variant:"body big",bold:!0,className:"".concat(o().m0),children:t.mobileDiscountTest}),(0,n.jsx)("div",{className:"".concat(o().mt_1),children:(0,n.jsx)(m.$,{variant:"primary",size:"small",onClick:()=>{t.openNewWindows?window.open(t.url,"_blank","noopener,noreferrer"):l.push(t.url)},children:t.mobileButtonTest})})]}):(0,n.jsx)("div",{className:"".concat(o().perks_list),children:t.perks.map((e,t)=>(0,n.jsx)(d,{discount:e.discountNumber,image:e.image.url,alt:e.image.alt,width:e.image.width,height:e.image.height},t))})]})})};var p=a(12055);let x=e=>{let{typography:t,mobileDiscountText:a,mobileButtonText:r,openNewWindows:l,urlBanner:o,perks:s}=e;return(0,n.jsx)(h,{perksBanner:{paragraph:t.map(e=>(0,p.A)(e.content)),mobileDiscountTest:a,mobileButtonTest:r,openNewWindows:l||!1,url:o,perks:s.map(e=>{var t,a,n,r;let l=(null==(t=e.backgroundImage)?void 0:t.url)||"",o=(null==(a=e.backgroundImage)?void 0:a.alt)||"",s=(null==(n=e.backgroundImage)?void 0:n.width)||0,i=(null==(r=e.backgroundImage)?void 0:r.height)||0;return{discountNumber:e.discountNumber,image:{url:l,alt:o,width:s,height:i}}})},"data-sentry-element":"PerksBanner","data-sentry-component":"PerksBannersLandingsBlock","data-sentry-source-file":"index.tsx"})}},86386:e=>{e.exports={divider:"divider_divider__9qp7Z"}},87964:(e,t,a)=>{"use strict";a.d(t,{PerksCardBlock:()=>_});var n=a(95155);a(12115);var r=a(23745),l=a(88752),o=a.n(l),s=a(73968),i=a(73411),c=a(13053);let d=e=>{let{image:t,imageAltText:a,modalText:l,hide:s}=e;return(0,n.jsxs)("div",{className:o().modal_container,"data-sentry-component":"PerksCardModal","data-sentry-source-file":"PerksCardModal.tsx",children:[(0,n.jsx)("button",{className:o().close_button,onClick:s,children:(0,n.jsx)(c.I,{name:c.F.CLOSE,color:"white",width:18,height:18,"data-sentry-element":"Icon","data-sentry-source-file":"PerksCardModal.tsx"})}),(0,n.jsx)("div",{className:o().modal_image,children:(0,n.jsx)("img",{src:t.src,alt:a,className:o().modal_image,width:300,height:200,style:{objectFit:"cover"}})}),l&&(0,n.jsx)("div",{className:o().modal_text,children:(0,n.jsx)(r.o,{variant:"body small",className:"".concat(o().m0," ").concat(o().text_secondary),children:l})})]})},u=e=>{let{image:t,imageAltText:a,numberPercent:l,paragraph:c,modalText:u}=e,{show:m,hide:_}=(0,i.h)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{onClick:e=>{e.preventDefault(),m("customModal",d,{image:t,imageAltText:a,modalText:u,hide:_})},className:"".concat(o().card),children:[(0,n.jsxs)("div",{className:"".concat(o().image_wrapper),children:[(0,n.jsx)("img",{src:t.src,alt:a}),l.length>0&&(0,n.jsx)("div",{className:"".concat(l?o().visible:o().hidden),children:(0,n.jsx)(s.a,{content:l,color:"blue",variant:"subtle",size:"big"})})]}),(0,n.jsx)("div",{className:"".concat(o().divider)}),(0,n.jsx)("div",{className:"".concat(o().content_wrapper),children:(0,n.jsx)(r.o,{variant:"body medium",bold:!0,className:"".concat(o().m0," ").concat(o().text_center),"data-sentry-element":"Typography","data-sentry-source-file":"PerksCard.tsx",children:c})})]})})};var m=a(12055);let _=e=>{var t,a;let{discount:r,paragraph:l,backgroundImage:o,modalText:s}=e;if(!o)return null;let i=(null==o?void 0:o.url)||"",c=(null==o?void 0:o.alt)||"",d=(null==o?void 0:o.width)||0,_=(null==o?void 0:o.height)||0;return(0,n.jsx)(u,{numberPercent:"string"==typeof r?r:(0,m.A)((null==(t=r[0])?void 0:t.content)||[]),paragraph:(0,m.A)((null==(a=l[0])?void 0:a.content)||[]),image:{src:i,alt:c,width:d,height:_},imageAltText:c,modalText:s.map(e=>(0,m.A)(e.content)),"data-sentry-element":"PerksCard","data-sentry-component":"PerksCardBlock","data-sentry-source-file":"index.tsx"})}},88062:e=>{e.exports={wrapper:"floatingLabelFieldView_wrapper__WtFJD",wrapperSelected:"floatingLabelFieldView_wrapperSelected___riBn",floatingLabel:"floatingLabelFieldView_floatingLabel__36Dw6",active:"floatingLabelFieldView_active__Tvqjn",controlSelected:"floatingLabelFieldView_controlSelected__zMWUI"}},88752:e=>{e.exports={card:"PerksCard_card__bSnzW",image_wrapper:"PerksCard_image_wrapper__z_3Od",content_wrapper:"PerksCard_content_wrapper__tt6k7",m0:"PerksCard_m0__k8I9R",link:"PerksCard_link__dBFNq",divider:"PerksCard_divider__ED0Tz",modal_container:"PerksCard_modal_container__Hdfyy",modal_text:"PerksCard_modal_text__9KInn",modal_image:"PerksCard_modal_image__dUhIv",close_button:"PerksCard_close_button__VRrpV",modal_wrapper:"PerksCard_modal_wrapper__BT_wT",text_center:"PerksCard_text_center__Y4Mp_",visible:"PerksCard_visible__TnN6J",hidden:"PerksCard_hidden__q1IYU"}},89488:()=>{},90560:e=>{e.exports={in_carousel:"PackagesCard_in_carousel__90_tX",card:"PackagesCard_card___fnVz",image:"PackagesCard_image__bPc6R",content_wrapper:"PackagesCard_content_wrapper__AnRm2",content:"PackagesCard_content__4mmRL",m0:"PackagesCard_m0__PbLTU",link:"PackagesCard_link__AQLbl",row:"PackagesCard_row__IffAd",column:"PackagesCard_column__zcIR7",gap_small:"PackagesCard_gap_small__nqDMN",divider:"PackagesCard_divider__P5wrj",pill_include:"PackagesCard_pill_include__znzJC",favorite_badge:"PackagesCard_favorite_badge__S272C",favorite_badge_icon:"PackagesCard_favorite_badge_icon__XrGrd",favorite_badge_tooltip:"PackagesCard_favorite_badge_tooltip__l82m_"}},90766:(e,t,a)=>{"use strict";a.d(t,{default:()=>V});var n=a(95155),r=a(12115),l=a(68978),o=a.n(l),s=a(23745),i=a(13053),c=a(13634),d=a.n(c),u=a(14870),m=a(22503),_=a.n(m);let h=e=>{let{data:t,columns:a,loading:r}=e;return(0,n.jsx)("tbody",{"data-sentry-component":"TableBody","data-sentry-source-file":"TableBody.tsx",children:t.length>0?(0,n.jsx)(n.Fragment,{children:t.map(e=>(0,n.jsx)("tr",{children:a.map(t=>(0,n.jsx)("td",{className:_().cell,children:t.cell?t.cell(e):(0,n.jsx)(s.o,{variant:"body medium",children:e[t.selector]})},t.selector))},e.id))}):(0,n.jsx)("tr",{children:r&&(0,n.jsx)("td",{children:"Cargando..."})})})};var p=a(94611),x=a.n(p);let v=e=>{let{columns:t}=e;return(0,n.jsx)("thead",{className:x().tableHead,"data-sentry-component":"TableHead","data-sentry-source-file":"TableHead.tsx",children:(0,n.jsx)("tr",{children:t.map(e=>(0,n.jsx)("th",{className:x().cell,children:"string"==typeof e.name?(0,n.jsx)(s.o,{variant:"body medium",bold:!0,children:e.name}):(0,n.jsx)(n.Fragment,{children:e.name})},e.selector))})})};var g=a(49086),y=a.n(g);let b=e=>{let{data:t,columns:a,loading:r,className:l}=e;return(0,n.jsx)("div",{className:y().tableWrapper,"data-sentry-component":"Table","data-sentry-source-file":"Table.tsx",children:(0,n.jsxs)("table",{className:"".concat(y().table," ").concat(l),children:[(0,n.jsx)(v,{c
1olumns:a,"data-sentry-element":"TableHead","data-sentry-source-file":"Table.tsx"}),(0,n.jsx)(h,{data:t,columns:a,loading:r,"data-sentry-element":"TableBody","data-sentry-source-file":"Table.tsx"})]})})};function f(){return{data:[{value:"MVD",label:"Montevideo"},{value:"BUE",label:"Buenos Aires"},{value:"COL",label:"Colonia"}]}}var C=a(73968),j=a(7465);async function k(e,t){return await (0,j.D)("arrivals-and-departures/get-by-port-and-date?port=".concat(e,"&date=").concat(t),"GET",void 0)}var N=a(49018);function T(e){let t=f().data.find(t=>t.value===e);return t?t.label:e}function B(e){let t=e.split(" ");return t.length>1?t[1]:e}let I=e=>{let{date:t,direction:a,city:l}=e,o=(0,u.U)("mobile"),c=(0,N.GV)(e=>e.language),[m,_]=(0,r.useState)([]),[h,p]=(0,r.useState)([]),[x,v]=(0,r.useState)(t),[g,y]=(0,r.useState)(!1),[j,I]=(0,r.useState)(!1);(0,r.useEffect)(()=>{v(t)},[l,a,t]),(0,r.useEffect)(()=>{let e=!1;return async function(){y(!0),I(!1),_([]);try{let t=f().data.find(e=>e.label===l),n=t?t.value:"BUE",r=await k(n,x);if(!e&&r&&r.data){let e=r.data.arrivals||[],t=r.data.departures||[],l=[];if(l="arrivals"===a?e.filter(e=>e.arrivalPort===n):t.filter(e=>e.departurePort===n),Array.isArray(l)){l=l.filter(e=>"BUE"===e.departurePort||"BUE"===e.arrivalPort);let e=new Set,t=(l=l.filter(t=>{let a=t.sailingCode?String(t.sailingCode):"".concat(t.departurePort,"-").concat(t.arrivalPort,"-").concat(t.departureDate,"-").concat(t.arrivalDate);return!e.has(a)&&(e.add(a),!0)})).map((e,t)=>({id:e.sailingCode||"sailing-".concat(t),origin:T(e.departurePort),destination:T(e.arrivalPort),status:"En Horario",departureTime:B(e.departureDate),arrivalTime:B(e.arrivalDate),code:e.sailingCode}));_(t),p([])}else _([]),p([])}else e||(_([]),p([]))}catch(t){e||(_([]),p([]),I(!0))}finally{e||y(!1)}}(),()=>{e=!0}},[t,a,l,x]);let{origin:w,destination:P,status:S,departureTime:A,arrivalTime:D}={origin:{name:"Origen",selector:"origin"},destination:{name:"Destino",selector:"destination"},status:{name:"Estado",selector:"status",cell:e=>(0,n.jsx)(C.a,{color:"green",variant:"solid",size:"big",content:e.status})},departureTime:{name:o?(0,n.jsx)(i.I,{name:i.F.DEPARTURE,color:"default"}):c.dict.departureSchedule,selector:"departureTime"},arrivalTime:{name:o?(0,n.jsx)(i.I,{name:i.F.ARRIVAL,color:"default"}):c.dict.arrivalSchedule,selector:"arrivalTime"}},E=[w,P,S,A,D],F=[w,P,S,A,D];return(0,n.jsx)("div",{"data-sentry-component":"RoutesDetails","data-sentry-source-file":"RoutesDetails.tsx",children:g&&(!m||0===m.length)?(0,n.jsx)("div",{style:{minHeight:48,display:"flex",alignItems:"center"},children:(0,n.jsx)(s.o,{variant:"body medium",children:"Cargando arribos y partidas..."})}):j?(0,n.jsx)("div",{style:{minHeight:48,display:"flex",alignItems:"center"},children:(0,n.jsx)(s.o,{variant:"body medium",children:"Error al obtener los datos"})}):m&&0!==m.length?(0,n.jsxs)(n.Fragment,{children:[g&&m.length>0&&(0,n.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.8)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10},children:(0,n.jsx)(s.o,{variant:"body medium",children:"Cargando nuevos datos..."})}),h.length>0&&(0,n.jsx)("div",{className:d().datesFilter,style:{marginBottom:16},children:h.map(e=>(0,n.jsx)("button",{onClick:()=>v(e),className:x===e?d().selectedDateBtn:d().dateBtn,style:{marginRight:8},children:function(e){let t=new Date,a=new Date(Date.now()-864e5),n=new Date(Date.now()+864e5),r=e=>e.toISOString().slice(0,10);return e===r(t)?"Hoy":e===r(a)?"Ayer":e===r(n)?"Ma\xf1ana":e}(e)},e))}),(0,n.jsx)("div",{style:{position:"relative"},children:(0,n.jsx)(b,{data:m,columns:o?E:F,loading:!1})})]}):(0,n.jsx)("div",{style:{minHeight:48,display:"flex",alignItems:"center"},children:(0,n.jsx)(s.o,{variant:"body medium",children:"No se pudieron obtener los datos"})})})};var w=a(93172),P=a.n(w);let S={arrivals:"Arribos a",departures:"Partidas desde"};var A=a(44313);let D=e=>{let{direction:t,options:a,onChangeCity:r,selectedValue:l}=e,o="city-selector-".concat(t);return(0,n.jsxs)("div",{className:P().selectCityContainer,"data-sentry-component":"CitySelector","data-sentry-source-file":"CitySelector.tsx",children:[(0,n.jsx)(s.o,{variant:"h5",tag:"span",bold:!0,className:P().space,id:o,"data-sentry-element":"Typography","data-sentry-source-file":"CitySelector.tsx",children:"".concat(S[t])}),(0,n.jsx)(A.b,{options:a,value:l||"1",onChange:e=>r(e.target.value),className:"".concat(P().customSelect),"aria-labelledby":o,"data-sentry-element":"SelectPure","data-sentry-source-file":"CitySelector.tsx"})]})},E=[{value:"BUE",label:"Buenos Aires"},{value:"MVD",label:"Montevideo"},{value:"COL",label:"Colonia"}],F=e=>{let{direction:t,setCity:a,defaultPort:l}=e,[o,i]=(0,r.useState)(E),[c,d]=(0,r.useState)(!0),[u,m]=(0,r.useState)("1"),_=e=>{if(l){let t=e.find(e=>e.label===l||e.label.toLowerCase()===l.toLowerCase());if(t){a(t.label),m(t.value);return}}e.length>0&&(a(e[0].label),m(e[0].value))};return(0,r.useEffect)(()=>{!function(){try{let e=f();if(Array.isArray(e.data)&&e.data.length>0){let t=e.data.map((e,t)=>({value:String(t+1),label:e.label||""}));i(t),_(t)}}catch(e){i(E),_(E)}finally{d(!1)}}()},[l]),(0,n.jsx)(n.Fragment,{children:c?(0,n.jsx)("div",{style:{minHeight:48,display:"flex",alignItems:"center"},children:(0,n.jsx)(s.o,{variant:"body medium",children:"Cargando ciudades..."})}):(0,n.jsx)(D,{direction:t,options:o,onChangeCity:e=>
1{let t=o.find(t=>t.value===e);a(null==t?void 0:t.label),m(e)},selectedValue:u})})},R=new Date,L=new Date(R),G=new Date(R);L.setDate(R.getDate()-1),G.setDate(R.getDate()+1);var M=a(14259);let V=e=>{let{defaultTab:t,defaultPort:a}=e,[l,c]=(0,r.useState)(t||"arrivals"),d=e=>e.toISOString().slice(0,10),[u,m]=(0,r.useState)(d(R)),[_,h]=(0,r.useState)(a||"Buenos Aires"),p=(0,N.GV)(e=>e.language);return(0,n.jsxs)("div",{className:o().container,"data-sentry-component":"ArrivalsAndDeparturesSchedule","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx",children:[(0,n.jsx)(s.o,{variant:"h2",bold:!0,"data-sentry-element":"Typography","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx",children:p.dict.arrivalsAndDepartures}),(0,n.jsx)(M.O_,{activeTab:l,onChangeTab:e=>c(e),"data-sentry-element":"TabsProvider","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx",children:(0,n.jsxs)(M.TJ,{"data-sentry-element":"BasicTabs","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx",children:[(0,n.jsx)(M.M5,{value:"arrivals",label:"Arribos",icon:i.F.ARROW_OUTWARD_TOP,"data-sentry-element":"BasicTab","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx"}),(0,n.jsx)(M.M5,{value:"departures",label:"Partidas",icon:i.F.ARROW_OUTWARD_BOTTOM,"data-sentry-element":"BasicTab","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx"})]})}),(0,n.jsxs)("div",{className:o().contentTab,children:[(0,n.jsxs)("div",{className:o().cityAndDateSelectorContainer,children:[(0,n.jsx)(F,{direction:l,setCity:e=>h(e),defaultPort:a,"data-sentry-element":"CitySelector","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx"}),(0,n.jsx)(M.O_,{activeTab:u,onChangeTab:m,"data-sentry-element":"TabsProvider","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx",children:(0,n.jsxs)(M.F6,{className:o().dateTabsContainer,"data-sentry-element":"DateTabs","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx",children:[(0,n.jsx)(M.ai,{value:d(R),date:R,content:"Hoy","data-sentry-element":"DateTab","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx"}),(0,n.jsx)(M.ai,{value:d(G),date:G,content:"Ma\xf1ana","data-sentry-element":"DateTab","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx"}),(0,n.jsx)(M.ai,{value:d(new Date(R.getFullYear(),R.getMonth(),R.getDate()+2)),date:new Date(R.getFullYear(),R.getMonth(),R.getDate()+2),content:"Pasado ma\xf1ana","data-sentry-element":"DateTab","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx"})]})})]}),(0,n.jsx)(I,{date:u,direction:l,city:_,"data-sentry-element":"RoutesDetails","data-sentry-source-file":"ArrivalsAndDeparturesSchedule.tsx"})]})]})}},91420:(e,t,a)=>{"use strict";a.d(t,{f:()=>u});var n=a(95155),r=a(12115),l=a(99003),o=a(80044),s=a.n(o),i=a(23745),c=a(88159);let d=(0,r.forwardRef)((e,t)=>{let{label:a,invalid:l,height:o,className:d,errorMessage:u,onClick:m,..._}=e,[h,p]=(0,r.useState)(!1),[x,v]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{""!==_.value?p(!0):p(!1)},[_.value]),(0,n.jsxs)("div",{className:"".concat(d),onClick:e=>{m&&m(e)},children:[(0,n.jsxs)("div",{className:"".concat(s().container," ").concat(h&&s().filledInput," ").concat(l&&s().invalid," ").concat(x&&s().focused),children:[h&&(0,n.jsx)("label",{children:(0,n.jsx)(i.o,{variant:"body medium",className:s().labelText,children:a})}),(0,n.jsx)("textarea",{ref:t,className:s().textarea,..._,style:{height:o||"auto"},onFocus:()=>v(!0),onBlur:()=>v(!1)})]}),(0,n.jsx)(c.E,{children:u})]})}),u=e=>{let{control:t,name:a,label:r,placeholder:o,className:s,height:i,...c}=e,{field:u,fieldState:{invalid:m,error:_}}=(0,l.as)({name:a,control:t});return(0,n.jsx)(d,{onChange:u.onChange,onBlur:u.onBlur,value:u.value,name:u.name,label:r,placeholder:o,invalid:m,className:s,errorMessage:null==_?void 0:_.message,height:i,...c,"data-sentry-element":"TextArea","data-sentry-component":"TextAreaContainer","data-sentry-source-file":"TextAreaContainer.tsx"})}},92330:e=>{e.exports={content_tab:"Tabs_content_tab__WouYg"}},92354:(e,t,a)=>{"use strict";a.d(t,{HeaderBlock:()=>c});var n=a(95155),r=a(12115),l=a(49018),o=a(63614),s=a(75794),i=a(94377);let c=()=>{let e=(0,l.jL)(),t=(0,l.GV)(e=>e.language);return(0,r.useEffect)(()=>{e((0,s.o)({type:"showHeader",value:!0})),e((0,s.o)({type:"showFooter",value:!0})),e((0,i.m)({type:"showBanner",value:!0}))},[]),(0,n.jsx)(o.Y,{lang:t.lang.toLowerCase(),ignorePath:!1,showSecondaryNavBar:!0,"data-sentry-element":"Header","data-sentry-component":"HeaderBlock","data-sentry-source-file":"index.tsx"})}},92481:(e,t,a)=>{"use strict";a.d(t,{v:()=>n});let n=e=>{let t=(e=>{var t,a,n,r;return null!=(r=null!=(n=null==e?void 0:e.id)?n:null==e||null==(t=e.request)?void 0:t.id)?r:null==e||null==(a=e.data)?void 0:a.id})(e);return{title:"Ticket creado con exito",description:t?"Nro. de ticket: ".concat(t):"",type:"success",duration:6e4}}},93112:(e,t,a)=>{"use strict";a.d(t,{default:()=>s});var n=a(95155);a(12115);var r=a(52352),l=a.n(r),o=a(23745);let s=e=>{let{firstClassTitle:t,imageFirstClass1:a,imageFirstClass2:r,businessTitle:s,imageBusinessClass:i,touristTitle:c,imageTouristClass:d}=e,u={backgroundImage:"url(".concat(a.src,")")},m={backgroundImage:"url(".concat(r.src,")")},_={backgroundImage:"url(".concat(i.src,")")},h={backgroundImage:"url(".concat(d.src,")")};return(0,n.jsxs)("div",{className:"".concat(l().gallery),"data-sentry-component":"InstitutionalGalleryClasses","data-sentry-source-file":"InstitutionalGalleryClasses.tsx",children:[(0,n.jsxs)("div",{className:l().row,children:[(0,n.jsxs)("div",{className:l().col,children:[(0,n.jsx)(o.o,{variant:"h1",tag:"h4",bold:!0,className:"".concat(l().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalGalleryClasses.tsx",children:t}),(0,n.jsx)("div",{className:"".concat(l().image),style:u})]}),(0,n.jsx)("div",{className:l().col,children:(0,n.jsx)("div",{className:"".concat(l().image),style:m})})]}),(0,n.jsxs)("div",{className:l().row,children:[(0,n.jsxs)("div",{className:l().col,children:[(0,n.jsx)(o.o,{variant:"h1",tag:"h4",bold:!0,className:"".concat(l().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalGalleryClasses.tsx",children:s}),(0,n.jsx)("div",{className:"".concat(l().image),style:_})]}),(0,n.jsxs)("div",{className:l().col,children:[(0,n.jsx)(o.o,{variant:"h1",tag:"h4",bold:!0,className:"".concat(l().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalGalleryClasses.tsx",children:c}),(0,n.jsx)("div",{className:"".concat(l().image),style:h})]})]})]})}},93172:e=>{e.exports={selectCityContainer:"citySelector_selectCityContainer__oJpIl",space:"citySelector_space__8rbIa",customSelect:"citySelector_customSelect__KVPoq"}},94374:(e,t,a)=>{"use strict";a.d(t,{default:()=>u});var n=a(95155),r=a(12115);a(39170);var l=a(37206);a(11828);var o=a(96691),s=a(2528),i=a(5882);let c=(0,l.default)(()=>Promise.resolve().then(a.bind(a,97282)),{loadableGenerated:{webpack:()=>[97282]}}),d={desktop:{breakpoint:{max:3e3,min:1024},items:4,slidesToSlide:1},tablet:{breakpoint:{max:1023,min:601},items:2,slidesToSlide:1},mobile:{breakpoint:{max:600,min:0},items:1,slidesToSlide:1}},u=e=>{let{packageData:t,autoPlaySpeed:a,autoPlayBoolean:l}=e,u={desktop:4,tablet:2,mobile:1}[function(){let[e,t]=(0,r.useState)("desktop");return(0,r.useEffect)(()=>{let e=()=>{let e=window.innerWidth;e<601?t("mobile"):e<1024?t("tablet"):t("desktop")};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}()],m=t.length<u,_=t.length>u,h=t.map((e,t)=>{let a=s.a[e.blockType];
1return a?(0,n.jsx)(o.A,{startDate:e.startDate,endDate:e.endDate,children:(0,n.jsx)(a,{...e})},t):null});return m?(0,n.jsx)(i.f,{children:t}):(0,n.jsx)(c,{swipeable:!0,draggable:!0,showDots:!1,responsive:d,ssr:!0,infinite:_,autoPlay:l,autoPlaySpeed:null!==a&&0!==a?a:5e3,arrows:!0,keyBoardControl:!0,transitionDuration:500,customTransition:"transform 0.5s ease-in-out",containerClass:"carousel_cards",centerMode:!1,"data-sentry-element":"Carousel","data-sentry-component":"CustomCarousel","data-sentry-source-file":"BQBCardsCarousel.tsx",children:h})}},94394:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var n=a(95155);a(12115);var r=a(51880),l=a.n(r);let o=e=>{let{children:t}=e;return(0,n.jsx)("div",{className:l().container,"data-sentry-component":"InfoCard","data-sentry-source-file":"InfoCard.tsx",children:t})};var s=a(12055);let i=e=>{let{typographies:t}=e;return(0,n.jsx)(o,{"data-sentry-element":"InfoCard","data-sentry-component":"InfoCardBlock","data-sentry-source-file":"InfoCardBlock.tsx",children:t.map(e=>(0,s.A)(e.content))})}},94611:e=>{e.exports={tableHead:"tableHead_tableHead__G2TZ2",cell:"tableHead_cell__Yzi4Q"}},94932:e=>{e.exports={form_wrapper:"FormClientAttention_form_wrapper__1DXqZ",row:"FormClientAttention_row__MkuXR",button_wrapper:"FormClientAttention_button_wrapper__bcjiY",m0:"FormClientAttention_m0__QsKyT",secondary_text:"FormClientAttention_secondary_text__Uq_O2",success_message_content:"FormClientAttention_success_message_content__6qvDZ",success_message:"FormClientAttention_success_message__gb4KO",input:"FormClientAttention_input__JKytj"}},95514:(e,t,a)=>{"use strict";a.d(t,{default:()=>c});var n=a(95155),r=a(12115),l=a(66974),o=a.n(l),s=a(13053),i=a(14870);let c=e=>{let{imageDesktop:t,imageMobile:a,link:l}=e,c=(0,i.U)("mobile"),[d,u]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=setTimeout(()=>{u(!0)},1);return()=>clearTimeout(e)},[]);let m=e=>{e.stopPropagation(),u(!1)};return(0,n.jsx)(n.Fragment,{children:d&&(0,n.jsx)("div",{className:o().modalBackdrop,onClick:m,children:(0,n.jsx)("div",{className:o().modalContainer,style:{backgroundImage:c?"url(".concat(""===a?t:a,")"):"url(".concat(t,")")},onClick:e=>{e.stopPropagation(),l&&(window.location.href=l)},children:(0,n.jsx)("button",{className:o().closeButton,onClick:m,children:(0,n.jsx)(s.I,{name:s.F.CLOSE,color:"white",width:18,height:18})})})})})}},95640:(e,t,a)=>{"use strict";a.d(t,{default:()=>c});var n=a(95155);a(12115);var r=a(60824),l=a.n(r),o=a(23745),s=a(79846),i=a(73321);let c=e=>{let{title:t,buttonText:a,image:r,link:c}=e,d={backgroundImage:"url(".concat(r.src,")")},u=(0,i.useRouter)();return(0,n.jsx)("div",{className:"".concat(l().banner),style:d,"data-sentry-component":"InstitutionalDownloadBanner","data-sentry-source-file":"InstitutionalDownloadBanner.tsx",children:(0,n.jsxs)("div",{className:"".concat(l().content),children:[(0,n.jsx)("div",{className:l().title_wrapper,children:(0,n.jsx)(o.o,{variant:"h2",bold:!0,className:"".concat(l().m0),"data-sentry-element":"Typography","data-sentry-source-file":"InstitutionalDownloadBanner.tsx",children:t})}),(0,n.jsx)(s.$,{variant:"secondary",size:"small",onClick:()=>u.push(c),"data-sentry-element":"Button","data-sentry-source-file":"InstitutionalDownloadBanner.tsx",children:a})]})})}},95804:e=>{e.exports={tabs:"basicTabs_tabs__3ljkW","tabs--scroll":"basicTabs_tabs--scroll__Mjow3"}},96267:(e,t,a)=>{"use strict";a.d(t,{GeneralCardBlock:()=>v});var n=a(95155);a(12115);var r=a(49018),l=a(14604),o=a.n(l),s=a(73968),i=a(11434),c=a(14870),d=a(13053),u=a(2520),m=a(42400),_=a(23745),h=a(84455);let p=e=>{var t;let{generalCard:a}=e,r=(0,c.U)("mobile"),l={backgroundImage:"url(".concat(a.image.url,")")};return(0,n.jsxs)("div",{className:"".concat(o().card),onClick:e=>{!e.target.closest('a, button, input, textarea, select, [role="button"], [data-prevent-card-click]')&&a.buttonLink&&(a.open?window.open(a.buttonLink,"_blank"):window.location.href=a.buttonLink)},"data-sentry-component":"GeneralCard","data-sentry-source-file":"GeneralCard.tsx",children:[(0,n.jsx)("div",{className:"".concat(o().image),style:l,children:a.includeImagePillText&&(0,n.jsx)("span",{className:"".concat(o().image_tag),children:(0,n.jsx)(s.a,{content:a.imagePillText||"",color:"blue",variant:"solid",size:"big"})})}),(0,n.jsxs)("div",{className:"".concat(o().content_wrapper),children:[(0,n.jsxs)("div",{className:"".concat(o().content),children:[(0,n.jsxs)("div",{className:o().row,children:[a.includePillBlueText&&(0,n.jsx)(s.a,{content:a.pillBlueText||"",color:"blue",variant:"solid",size:"big"}),a.includePillGreenText&&(0,n.jsx)(s.a,{content:a.pillGreenText||"",color:"green",variant:"solid",size:"big"})]}),void 0!==a.cardPromoText&&(0,n.jsx)("div",{className:"".concat(o().m0),children:a.cardPromoText}),a.includeOriginAndDestinationText&&(0,n.jsx)(i.U,{origin:a.origin||"",destination:a.destination||"",icon:d.F.DIRECTIONS_BOAT}),void 0!==a.textUnderOriginAndDestination&&(0,n.jsx)("div",{className:"".concat(o().m0),children:a.textUnderOriginAndDestination}),a.includeMoreInfo&&(0,n.jsx)(m.n,{"data-prevent-card-click":!0,size:"small",title:(0,n.jsx)("div",{className:"".concat(o().m0," ").concat(o().text_primary),children:a.moreInfoTitle||"ver m\xe1s informaci\xf3n"}),children:(0,n.jsx)("div",{className:"".concat(o().m0," ").concat(o().text_primary),children:a.moreInfoText||""}),borderOnlyMobile:!1})]}),(0,n.jsxs)("div",{className:"".concat(o().content),children:[void 0!==a.mainInfoText&&(0,n.jsxs)("div",{className:"".concat(o().m0),children:[a.mainInfoText,(0,n.jsx)("div",{className:"".concat(o().divider)})]}),a.includeCoupon&&a.couponName&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.v,{couponBackgroun
1dColor:a.couponBackgroundColor,couponTextColor:a.couponTextColor,couponName:a.couponName}),a.couponDueDate&&""!==a.couponDueDate&&(0,n.jsxs)(_.o,{variant:"body small",className:"".concat(o().m0),children:["V\xe1lido hasta el ",new Date(null!=(t=a.couponDueDate)?t:"").toLocaleDateString("es-ES"),"."]})]}),void 0!==a.smallText&&(0,n.jsx)("div",{className:"".concat(o().m0),children:a.smallText}),a.includeButton&&(0,n.jsx)("div",{className:"".concat(o().m0),children:(0,n.jsx)(h.N,{fullwidth:r,variant:"primary",size:"big",href:a.buttonLink||"",target:a.open?"_blank":"",children:a.buttonLinkText})}),a.includeFooterTextAtBottom&&(0,n.jsx)("div",{className:"".concat(o().m0),children:a.footerText})]})]})]})};var x=a(12055);let v=e=>{var t,a,l,o,s,i,c;let{backgroundImage:d,includeImagePillText:u,imagePillText:m,includePillBlueText:_,pillBlueText:h,includePillGreenText:v,pillGreenText:g,cardPromoText:y,includeOriginAndDestinationText:b,origin:f,destination:C,textUnderOriginAndDestination:j,includeMoreInfo:k,moreInfoTitle:N,moreInfoText:T,mainInfoText:B,includeCoupon:I,couponsCampaign:w,smallText:P,includeButton:S,buttonLinkText:A,openNewWindows:D,buttonLink:E,includeFooterTextAtBottom:F,footerText:R}=e;(0,r.GV)(e=>e.language);let L=(null==d?void 0:d.url)||"",G=(null==d?void 0:d.alt)||"",M=(null==d?void 0:d.width)||0,V=(null==d?void 0:d.height)||0,O=new Date,H="",U="",Y="",z="";if(w&&w.couponValidFrom&&w.couponValidTo){let e=new Date(w.couponValidFrom),t=new Date(w.couponValidTo);e<=O&&t>=O&&(I=!0,H=w.couponName||"",U=w.couponBackgroundColor||"",Y=w.couponTextColor||"",z=w.couponValidTo||"")}return(0,n.jsx)(p,{generalCard:{image:{url:L,alt:G,width:M,height:V},includeImagePillText:u,imagePillText:m,includePillBlueText:_,pillBlueText:h,includePillGreenText:v,pillGreenText:g,cardPromoText:(0,x.A)((null==(t=y[0])?void 0:t.content)||[]),includeOriginAndDestinationText:b,origin:f,destination:C,textUnderOriginAndDestination:(0,x.A)((null==(a=j[0])?void 0:a.content)||[]),includeMoreInfo:k,moreInfoTitle:(0,x.A)((null==(l=N[0])?void 0:l.content)||[]),moreInfoText:(0,x.A)((null==(o=T[0])?void 0:o.content)||[]),mainInfoText:(0,x.A)((null==(s=B[0])?void 0:s.content)||[]),includeCoupon:I,couponName:H,couponBackgroundColor:U,couponTextColor:Y,couponDueDate:z,smallText:(0,x.A)((null==(i=P[0])?void 0:i.content)||[]),includeButton:S,buttonLinkText:A,open:D,buttonLink:E,includeFooterTextAtBottom:F,footerText:(0,x.A)((null==(c=R[0])?void 0:c.content)||[])},"data-sentry-element":"GeneralCard","data-sentry-component":"GeneralCardBlock","data-sentry-source-file":"index.tsx"})}},96854:(e,t,a)=>{"use strict";a.d(t,{k:()=>s});var n=a(95155);a(12115);var r=a(23745),l=a(88062),o=a.n(l);let s=e=>{let{children:t,className:a,controlClassName:l,label:s,value:i}=e,c=!!s&&(e=>Array.isArray(e)?e.length>0:null!=e&&""!==e)(i),d=[o().wrapper,c?o().wrapperSelected:"",a||""].filter(Boolean).join(" "),u=[o().floatingLabel,o().active].filter(Boolean).join(" "),m=[o().control,c?o().controlSelected:"",l||""].filter(Boolean).join(" ");return(0,n.jsxs)("div",{className:d,"data-floating-field":!0,"data-sentry-component":"FloatingLabelFieldView","data-sentry-source-file":"FloatingLabelFieldView.tsx",children:[c&&(0,n.jsx)(r.o,{variant:"body medium",className:u,children:s}),(0,n.jsx)("div",{className:m,children:t})]})}},98196:e=>{e.exports={card:"Image_card___y_SL",image:"Image_image__p6sFN"}},98270:e=>{e.exports={form_wrapper:"purchaseRegret_form_wrapper__LU6GS",row:"purchaseRegret_row__wdoIG",button_wrapper:"purchaseRegret_button_wrapper__jo3a2",m0:"purchaseRegret_m0__56Pl6",input:"purchaseRegret_input__xb9RR",text_area:"purchaseRegret_text_area__aR4FY"}},98784:e=>{e.exports={fullWidth:"button_fullWidth__RUYOv",button:"button_button__keoU3",pointer:"button_pointer__FuBHN",smallSize:"button_smallSize__KHvCs",bigSize:"button_bigSize__5LvH_",primary:"button_primary__tunqX",disabledPrimary:"button_disabledPrimary__nWZRj",tertiary:"button_tertiary__i7XeV",disabledTertiary:"button_disabledTertiary__1Isuc",secondary:"button_secondary___rbom",disabledSecondary:"button_disabledSecondary__2Gx_c"}},98808:e=>
1{e.exports={card:"EventsCard_card__VhjDm",image:"EventsCard_image__7Q7pu",image_tag:"EventsCard_image_tag__gdklT",content_wrapper:"EventsCard_content_wrapper__rfqqc",content:"EventsCard_content___aUom",m0:"EventsCard_m0__acpGr",mt_05:"EventsCard_mt_05__AY9d9",link:"EventsCard_link__4e2p5"}},99447:(e,t,a)=>{"use strict";a.d(t,{AccordionBlock:()=>o});var n=a(95155);a(12115);var r=a(22720),l=a(12055);let o=e=>{let{items:t}=e;return(0,n.jsx)("div",{"data-sentry-component":"AccordionBlock","data-sentry-source-file":"index.tsx",children:t.map((e,a)=>{var o;return(0,n.jsx)(r.A,{title:e.title,children:(0,l.A)((null==(o=e.content[0])?void 0:o.content)||[]),borderOnlyMobile:e.borderOnlyMobile,border0:e.border0,initialStatus:e.initialStatus,isLastItem:a===t.length-1},a)})})}},99921:(e,t,a)=>{"use strict";a.d(t,{HotelCardBlock:()=>s});var n=a(95155);a(12115);var r=a(43196),l=a(12055),o=a(36205);let s=e=>{let{highlighted:t,highlightedTextOnHover:a,highlightedImageIcon:s,title:i,starAmount:c,checkPillNights:d,nightsAmount:u,location:m,acordionTitle:_,confirmationText:h,perPersonPrice:p,currency:x,labelPrice:v,hotel:g,discount:y,includePill:b,textButon:f,openNewWindows:C,link:j,image:k}=e;return(0,n.jsx)(r.d,{link:j,highlighted:t,highlightedImageIcon:{src:null==s?void 0:s.url},highlightedTextOnHover:a,title:i,hotel:g,location:m.map(e=>(0,l.A)(e.content)),perPersonPrice:o.Z.parsePriceStringToNumber(p),currency:x,labelPrice:v,titleAcordion:_,discount:y,starAmount:c,checkPillNight:d,nightsAmount:u,textBoton:f,openNewWindows:C,includePill:b,image:{src:null==k?void 0:k.url},confirmationText:h.map(e=>(0,l.A)(e.content)),"data-sentry-element":"HotelCard","data-sentry-component":"HotelCardBlock","data-sentry-source-file":"index.tsx"})}}}]);
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.