PageSourceSearch

https://www.piratinviaggio.it/hp-app/js/explore-6cb722c5.js

js piratinviaggio.it collected 2026-09-28 11:06:45 UTC 82,298 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhummingbird=self.webpackChunkhummingbird||[]).push([[9604],{25326(e,t,n){n.r(t),n.d(t,{default:()=>un});n(16280),n(74423),n(44114),n(27495),n(98992),n(54520),n(72577),n(3949),n(81454),n(37550);var r=n(96540),o=n(73516),i=n(47767),a=n(34821),l=n(31924),c=n(76880),s=n(15885),u=n(15827),p=n(28063),d=n(40001),f=n(78100),h=n(28749),m=n(58160),g=n(54391),y=n(98469),b=n(43516),v=n(82891),x=n(88597),w=n(2541);const j={SkeletonItem:x.Ay.div.withConfig({componentId:"hp__sc-9591kv-0"})(["width:100%;@media ",",","{svg{width:100%;height:auto;}}"],w.J.phone,w.J.tablet)};var A=n(74848);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=[{x:1,y:3,rx:10,ry:10,width:300,height:140},{x:1,y:150,rx:10,ry:10,width:280,height:16},{x:1,y:180,rx:10,ry:10,width:190,height:16},{x:1,y:205,rx:10,ry:10,width:190,height:16},{x:1,y:230,rx:10,ry:10,width:190,height:16}],k=e=>{let t=e.backgroundColor,n=void 0===t?y.AH:t,r=e.foregroundColor,o=void 0===r?y.S0:r,i=e.rects,a=void 0===i?_:i,l=e.speed,c=void 0===l?2:l,s=e.uniqueKey,u=void 0===s?"skeleton":s,p=e.viewBox,d=void 0===p?"0 0 300 280":p;return(0,A.jsx)(b.Ay,{backgroundColor:n,foregroundColor:o,speed:c,uniqueKey:u,viewBox:d,children:null==a?void 0:a.map((e,t)=>(0,A.jsx)("rect",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),t))})},S=e=>{let t=e.amount,n=void 0===t?1:t,r=e.columns,o=void 0===r?4:r,i=e.backgroundColor,a=void 0===i?y.AH:i,l=e.foregroundColor,c=void 0===l?y.S0:l,s=e.rects,u=void 0===s?_:s,p=e.speed,d=void 0===p?2:p,f=e.uniqueKey,h=void 0===f?"skeleton":f,m=e.viewBox,g=void 0===m?"0 0 300 280":m;return 1===n?(0,A.jsx)(j.SkeletonItem,{children:(0,A.jsx)(k,{backgroundColor:a,foregroundColor:c,rects:u,speed:d,uniqueKey:"".concat(h,"-single"),viewBox:g})}):(0,A.jsx)(v.xA,{columns:o,children:Array.from({length:n},(e,t)=>(0,A.jsx)(j.SkeletonItem,{children:(0,A.jsx)(k,{backgroundColor:a,foregroundColor:c,rects:u,speed:d,uniqueKey:"".concat(h,"-").concat(t),viewBox:g})},t))})};var I=n(98359),P=(n(89463),n(62953),n(20196)),T=n(91499),D=n(38664),E=n(12858),L=n(39053),M=n(50557),B=n(73644),F=n(25663),N=n(16497),z=n(2024),$=n(36776);const R="https://media.holidaypirates.group/icons/v2/app/placeholder-provider.svg",J=(e,t)=>{const n=e.currentTarget;n.onerror=null,t?n.src=t:n.remove()};var U=n(87227);const H=e=>"2px dashed ".concat(e),W={CardContainer:x.Ay.div.withConfig({componentId:"hp__sc-ee7m20-0"})(["background:",";border-bottom:2px solid ",";padding:8px 4px;"," ",""],y.UE,y.AH,e=>e.$isFirst?"\n      border-radius: ".concat(l.FY," ").concat(l.FY," 0 0;\n      margin-top: 4px;\n    "):"",e=>e.$isLast?"\n      border-bottom: ".concat(H(y.xq),";\n    "):""),ModalContainer:x.Ay.div.withConfig({componentId:"hp__sc-ee7m20-1"})(["background:",";border:",";padding:16px;"," @media ","{gap:8px;padding:16px 8px;}"],y.UE,H(y.S0),e=>{let t=e.$isFirst,n=e.$isLast;return"\n      border-radius: ".concat((e=>{let t=e.$isFirst,n=void 0!==t&&t,r=e.$isLast,o=void 0!==r&&r;const i=n?l.Qp:"0",a=o?l.Qp:"0",c=o?l.Qp:"0";return"".concat("0"," ").concat(i," ").concat(a," ").concat(c)})({$isFirst:t,$isLast:n}),";\n      border-top: ").concat(n&&!t?"none":H(y.S0),";\n      border-bottom: ").concat(H(t&&!n?y.AH:y.S0),";\n    ")},w.J.phone),RouteRow:x.Ay.div.withConfig({componentId:"hp__sc-ee7m20-2"})(["align-items:center;display:flex;gap:",";padding:0 4px;@media ","{gap:8px;}"],e=>e.$isCompact?"8px":"36px",w.J.phone),TimeBlock:x.Ay.div.withConfig({componentId:"hp__sc-ee7m20-3"})(["display:flex;flex:0 0 40px;flex-direction:column;font-weight:bold;line-height:1.3;position:relative;&:first-child{text-align:right;}&:last-child{text-align:left;}"]),DayDifference:x.Ay.span.withConfig({componentId:"hp__sc-ee7m20-4"})(["color:",";font-size:",";font-weight:bold;position:absolute;right:-4px;top:-10px;"],y.z7,l.$H),Time:x.Ay.span.withConfig({componentId:"hp__sc-ee7m20-5"})(["color:",";font-family:",";"],y.yS,U.Kh),AirportCode:x.Ay.span.withConfig({componentId:"hp__sc-ee7m20-6"})(["color:",";"],y.O9),ConnectionColumn:x.Ay.div.withConfig({componentId:"hp__sc-ee7m20-7"})(["align-items:center;display:flex;flex:1;flex-direction:column;font-size:",";font-weight:bold;overflow:hidden;"],l.$H),StopLabel:x.Ay.span.withConfig({componentId:"hp__sc-ee7m20-8"})(["color:",";text-align:center;",""],e=>e.$hasStops?y.z7:y.O9,e=>e.$isCompact?"\n        align-items: end;\n        display: flex;\n        font-size: ".concat(l.nY,";\n        height: 23px;\n        line-height: 1.2;\n        padding-bottom: 2px;\n        "):""),Duration:x.Ay.span.withConfig({componentId:"hp__sc-ee7m20-9"})(["color:",";height:25px;"],y.O9),LineContainer:x.Ay.div.withConfig({componentId:"hp__sc-ee7m20-10"}
1)(["height:14px;position:relative;width:100%;&::before{background-color:",";border-radius:50%;content:'';height:6px;left:0;position:absolute;top:4px;width:6px;}&::after{background:linear-gradient(90deg,"," 6px,",");border-radius:1px;content:'';height:2px;left:0;position:absolute;top:6px;width:100%;}"],y.xq,y.xq,y.S0),IconContainer:x.Ay.div.withConfig({componentId:"hp__sc-ee7m20-11"})(["animation:none;left:calc(50% - 7px);position:absolute;top:0;z-index:1;&.is-animated{@media ","{animation:",";}}@keyframes airplane-takes-off{0%{left:calc(50% - 7px);transform:scale(1);}50%{left:calc(100% + 21px);opacity:1;transform:scale(1.5);}51%{left:calc(100% + 30px);opacity:0;transform:scale(1.5);}52%{left:-14px;opacity:0;transform:scale(0.35);}53%{left:-14px;opacity:1;transform:scale(0.35);}100%{left:calc(50% - 7px);transform:scale(1);}}"],w.J.desktop,e=>{let t=e.$isFirst;return"airplane-takes-off 1.5s linear ".concat(t?.5:1.25,"s 2")}),AirlinesRow:x.Ay.div.withConfig({componentId:"hp__sc-ee7m20-12"})(["align-items:center;display:flex;flex-wrap:wrap;",";"],e=>e.$isCompact?"min-height: 32px;":""),AirlineItem:x.Ay.div.withConfig({componentId:"hp__sc-ee7m20-13"})(["align-items:center;display:flex;gap:4px;padding:0 4px;height:16px;position:relative;&:not(:last-child)::after{background:",";content:'';height:10px;position:absolute;right:0;top:3px;width:1px;}"],y.O9),AirlineLogo:x.Ay.img.withConfig({componentId:"hp__sc-ee7m20-14"})(["max-height:16px;max-width:",";"],e=>e.$isCompact?"16px":"24px"),AirlineName:x.Ay.span.withConfig({componentId:"hp__sc-ee7m20-15"})(["color:",";font-size:",";white-space:nowrap;"],y.O9,l.nY)},q=(e,t)=>{let n=t.nonStop;if(e.stopCount>0){const r=e.stopAirports.length>0?" (".concat(e.stopAirports.join(", "),")"):"",o=1===e.stopCount?t.stop:t.stops;n="".concat(e.stopCount," ").concat(o).concat(r)}return n},K=e=>{let t=e.animate,n=void 0!==t&&t,r=e.isCompact,o=void 0!==r&&r,i=e.isFirst,a=void 0!==i&&i,l=e.isLast,c=void 0!==l&&l,s=e.leg;const u=(0,f.B)().explore.flights,p=o?W.CardContainer:W.ModalContainer;return(0,A.jsxs)(p,{$isFirst:a,$isLast:c,children:[(0,A.jsxs)(W.RouteRow,{$isCompact:o,children:[(0,A.jsxs)(W.TimeBlock,{children:[(0,A.jsx)(W.Time,{children:s.departureTime}),(0,A.jsx)(W.AirportCode,{children:s.departureAirport})]}),(0,A.jsxs)(W.ConnectionColumn,{children:[(0,A.jsx)(W.StopLabel,{$hasStops:s.stopCount>0,$isCompact:o,children:q(s,u)}),(0,A.jsx)(W.LineContainer,{children:(0,A.jsx)(W.IconContainer,{$isFirst:a,className:n?"is-animated":void 0,children:(0,A.jsx)(z.A,{iconName:"highlights/direct-flight_light",rotateAngle:90,h:14})})}),(0,A.jsx)(W.Duration,{children:s.duration})]}),(0,A.jsxs)(W.TimeBlock,{children:[!!s.dayDifference&&(0,A.jsx)(W.DayDifference,{children:s.dayDifference}),(0,A.jsx)(W.Time,{children:s.arrivalTime}),(0,A.jsx)(W.AirportCode,{children:s.arrivalAirport})]})]}),(0,A.jsx)(W.AirlinesRow,{$isCompact:o,children:s.airlines.map(e=>(0,A.jsxs)(W.AirlineItem,{children:[!!e.logoUrl&&(0,A.jsx)(W.AirlineLogo,{src:e.logoUrl,alt:e.name,onError:J,$isCompact:o}),(0,A.jsx)(W.AirlineName,{children:e.name})]},e.name))})]})};var V=n(93243);const Y={skyscanner:"".concat(V.Cm,"partners/powered-by-skyscanner.svg")};var Z=n(96276);const G={Header:x.Ay.div.withConfig({componentId:"hp__sc-12w81oh-0"})(["align-items:center;display:flex;justify-content:space-between;@media ","{align-items:flex-start;flex-direction:column;}"],w.J.phone),TravelPeriod:x.Ay.p.withConfig({componentId:"hp__sc-12w81oh-1"})(["margin:0;order:2;padding:10px 32px;@media ","{margin-bottom:16px;order:1;padding:0;}"],w.J.phone),Logo:x.Ay.img.withConfig({componentId:"hp__sc-12w81oh-2"})(["max-width:100%;"]),LogoWrapper:x.Ay.div.withConfig({componentId:"hp__sc-12w81oh-3"})(["background-color:",";border-radius:"," "," 0 0;display:inline-block;height:21px;order:1;padding:12px 18px;"],y.AH,l.Zz,l.Zz),Body:x.Ay.div.withConfig({componentId:"hp__sc-12w81oh-4"})(["background-color:",";border-radius:",";margin-top:20px;padding:16px 24px;@media ","{background-color:",";padding:0;}"],y.AH,l.FY,w.J.phone,y.GG),OffersIntro:x.Ay.div.withConfig({componentId:"hp__sc-12w81oh-5"})(["align-items:baseline;color:",";display:flex;justify-content:space-between;"],y.yS),OffersTitle:(0,x.Ay)(Z._B).withConfig({componentId:"hp__sc-12w81oh-6"})(["margin-top:0;"]),OffersCount:x.Ay.div.withConfig({componentId:"hp__sc-12w81oh-7"})(["@media ","{color:",";font-size:",";}"],w.J.phone,y.O9,l.$m),OffersList:x.Ay.div.withConfig({componentId:"hp__sc-12w81oh-8"})(["@media ",",","{max-height:",";overflow:auto;}"],w.J.tablet,w.J.desktop,e=>{let t=e.$isOneway;return"calc(100vh - ".concat(t?465:530,"px)")}),Offer:x.Ay.div.withConfig({componentId:"hp__sc-12w81oh-9"})(["align-items:center;background-color:",";border-radius:",";display:flex;gap:10px;padding:12px;&:not(:last-child){margin-bottom:16px;}@media ","{background-color:",";padding:16px;&:not(:last-child){margin-bottom:8px;}}"],y.UE,l.Zz,w.J.phone,y.AH),ProviderLogo:x.Ay.img.withConfig({componentId:"hp__sc-12w81oh-10"})(["max-height:24px;max-width:48px;@media ","{max-width:24px;}"],w.J.phone),ProviderName:x.Ay.span.withConfig({componentId:"hp__sc-12w81oh-11"})(["@media ","{font-size:",";}"],w.J.phone,l.$m),OfferBooking:x.Ay.div.withConfig({componentId:"hp__sc-12w81oh-12"})(["align-items:center;display:flex;gap:18px;margin-left:auto;@media ","{background-color:",";border-radius:25px;gap:8px;padding:3px 3px 3px 16px;}"],w.J.phone,y.UE),MobileCTA:x.Ay.a.withConfig({componentId:"hp__sc-12w81oh-13"})(["align-items:center;background:",";border-radius:50%;color:",";display:none;font-weight:bold;font-size:",";justify-content:center;line-height:1;padding:0;text-decoration:none;width:26px;height:26px;@media ","{display:flex;}"],y.Oj,y.UE,l.$m,w.J.phone),HideOnMobile:x.Ay.span.withConfig({componentId:"hp__sc-12w81oh-14"})(["@media ","{display:none;}"],w.J.phone)},Q=e=>J(e,R),X=e=>{let t=e.legs,n=e.onClose,o=e.onLoad,i=e.onOfferClick,a=e.offers,l=e.partner,c=e.travelPeriod;const s=(0,f.B)().explore.flights,u=(0,r.useRef)(null),p=Y[l];return(0,r.useEffect)(()=>{var e;null===(e=u.current)||void 0===e||e.focus(),o()},[]),(0,A.jsxs)(N.A,{size:"large",title:s.offerDialogTitle,mobileLayout:"docked",closeOnEsc:!0,onClose:n,children:[(0,A.jsxs)(G.Header,{children:[(0,A.jsxs)(G.TravelPeriod,{children:[s.selectedFlight," - ",(0,A.jsx)("b",{children:c})]}),!!p&&(0,A.jsx)(G.LogoWrapper,{children:(0,A.jsx)(G.Logo,{src:p,alt:l,height:22,width:"auto"})})]}),t.map((e,n)=>(0,A.jsx)(K,{isFirst:0===n,isLast:n+1===t.length,leg:e},e.id)),(0,A.jsxs)(G.Body,{children:[(0,A.jsxs)(G.OffersIntro,{children:[(0,A.jsx)(G.OffersTitle,{children:s.offerSectionTitle}),(0,A.jsxs)(G.OffersCount,{children:[a.length," ",a.length>1?s.providersFound:s.providerFound,a.length>1&&(0,A.jsxs)(G.HideOnMobile,{children:[" - ",s.selectPreferred]}),":"]})]}
1),(0,A.jsx)(G.OffersList,{$isOneway:1===t.length,children:a.map((e,t)=>{let n=e.agent,r=e.bookingUrl,o=e.pricing;const a=(0,F.A)(r),l=a.rel,c=a.target;return(0,A.jsxs)(G.Offer,{children:[(0,A.jsx)(G.ProviderLogo,{src:n.logoUrl||R,alt:n.name,onError:Q}),(0,A.jsx)(G.ProviderName,{children:n.name}),(0,A.jsxs)(G.OfferBooking,{children:[(0,A.jsx)(M.A,{pricing:o,inline:!0}),(0,A.jsx)(G.MobileCTA,{href:r,onClick:()=>i(n.name,r),rel:l,target:c,children:(0,A.jsx)(z.A,{iconName:"app/arrow-right_dark",inline:!0,h:20})}),(0,A.jsx)(G.HideOnMobile,{children:(0,A.jsx)($.A,{size:"sm",ref:0===t?u:void 0,external:!0,href:r,onClick:()=>i(n.name,r),children:s.book})})]})]},r)})})]})]})},ee={CardContainer:x.Ay.button.withConfig({componentId:"hp__sc-1m7fbf6-0"})(["background-color:",";border:none;border-radius:",";cursor:pointer;color:",";font-family:",";font-size:",";padding:4px;width:100%;"],y.AH,l.FY,y.xJ,U.vP,l.nJ),Logo:x.Ay.div.withConfig({componentId:"hp__sc-1m7fbf6-1"})(e=>{let t=e.partner;return"\n    ".concat(Y[t]?"\n      background-image: url(".concat(Y[t],");\n      background-position: left center;\n      background-repeat: no-repeat;\n      background-size: contain;\n    "):"","\n    height: 20px;\n    width: 100%;\n  ")}),LogoWrapper:x.Ay.div.withConfig({componentId:"hp__sc-1m7fbf6-2"})(["padding:1px 20px;"]),PriceWrapper:x.Ay.div.withConfig({componentId:"hp__sc-1m7fbf6-3"})(["height:36px;margin:8px 0 4px;position:relative;& span{transform:none;}"])};function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const re=e=>{let t=e.data,n=e.onCardClick,o=e.onCardLoad,i=e.onCtaClick,a=e.onDetailsLoad,l=e.position;const c=t.legs,s=t.options,u=t.pricing,p=t.travelPeriod,d=te((0,r.useState)(!1),2),f=d[0],h=d[1],m=te((0,r.useState)(!1),2),g=m[0],y=m[1],b=(0,B.B)({threshold:.01,onIntersect:()=>{o&&o(t,l)}});return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(ee.CardContainer,{onClick:()=>{h(!0),n&&n(t,l)},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),ref:b,children:[(0,A.jsx)(ee.LogoWrapper,{children:(0,A.jsx)(ee.Logo,{partner:t.partner})}),c.map((e,t)=>(0,A.jsx)(K,{animate:g,isCompact:!0,isFirst:0===t,isLast:t+1===c.length,leg:e},e.id)),(0,A.jsx)(ee.PriceWrapper,{children:(0,A.jsx)(M.A,{pricing:u})})]}),f&&(0,A.jsx)(X,{legs:c,onClose:()=>{h(!1)},onLoad:()=>{a&&a(t,l)},onOfferClick:(e,n)=>{i&&i(t,l,e,n)},offers:s,partner:t.partner,travelPeriod:p})]})},oe={ButtonWrapper:x.Ay.div.withConfig({componentId:"hp__sc-kwhxpy-0"})(["align-items:center;display:flex;justify-content:center;padding:","px 0;"],l.wF)};var ie=n(26745),ae=(n(72712),n(8872),n(69073));function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach(function(t){se(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function se(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}
1finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const de=e=>{const t=ue(e.split("T"),2),n=t[0],r=void 0===n?"":n,o=t[1];return{date:r,time:void 0===o?"":o}},fe=(e,t)=>{var n,r,o;const i=e.split("-").map(Number),a=new Date(null!==(n=i[0])&&void 0!==n?n:0,(null!==(r=i[1])&&void 0!==r?r:1)-1,null!==(o=i[2])&&void 0!==o?o:1);return new Intl.DateTimeFormat(t,{day:"numeric",month:"long"}).format(a)},he=(e,t,n)=>{const r=e.legs.map(e=>{const t=e.segments,r=t.slice(0,-1).map(e=>e.destination["iata-code"]),o=t.reduce((e,t)=>(e.some(e=>e.name===t.operator.name)||e.push({name:t.operator.name,logoUrl:t.operator["image-url"]}),e),[]),i=de(e["departure-date-time"]),a=de(e["arrival-date-time"]),l=((e,t)=>{const n=new Date(e),r=new Date(t),o=Math.round((r.getTime()-n.getTime())/864e5);if(0!==o)return o>0?"+".concat(o):"".concat(o)})(i.date,a.date);return ce(ce({id:e.id,airlines:o,arrivalDate:a.date,arrivalTime:a.time,arrivalAirport:e.destination["iata-code"]},void 0!==l&&{dayDifference:l}),{},{departureDate:i.date,departureTime:i.time,departureAirport:e.origin["iata-code"],duration:(0,ae.A)(e["duration-in-minutes"],n),stopAirports:r,stopCount:e["stop-count"]})}),o=e.options.map(e=>{const r=(0,ie.A)(t,n,e.price);return{agent:{id:e.agent.id,name:e.agent.name,logoUrl:e.agent["image-url"]},bookingUrl:e["booking-url"],pricing:r}}),i=(0,ie.A)(t,n,e.price),a=r[0]?fe(r[0].departureDate,n):"",l=r[0]&&r[1]?"".concat(a," - ").concat(fe(r[1].departureDate,n)):a;return{id:e.id,legs:r,options:o,partner:e.partner,pricing:i,travelPeriod:l}};function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach(function(t){ye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const be="featured-tag",ve="search-relevance";function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach(function(t){je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function je(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}
1finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ce=e=>{let t=e.columns,n=void 0===t?4:t,o=e.data;const i=(0,D.y)().trackEvent,a=(0,d.A)().localeTag,l=(0,c.Nh)(),s=l.activePsb,u=l.exploreParams,p=(0,f.B)(),h=p.price,m=p.explore,g=Ae((0,r.useState)(20),2),b=g[0],x=g[1],w=(0,r.useMemo)(()=>null==o?void 0:o.map(e=>((e,t,n)=>{if(!1===(r=e)["own-deal"]&&"legs"in r)return ge(ge({},he(e,t,n)),{},{entryType:"partner_inventory",view:"flight"});var r;const o=(0,ie.A)(t,n,e.price),i=e.category?{__typename:"Category",entryId:e.category.sys.id,entryType:"Category",icon:e.category.icon,key:e.category.key,mainImage:null,slug:e.category.slug,sys:{entryType:"Sys",id:e.category.sys.id},title:e.category.title,url:e.category.url}:void 0;var a;if((e=>!1===e["own-deal"]&&"star-rating"in e)(e))return ge(ge({dateFrom:e.dateFrom,dateTo:e.dateTo,entryId:e.id,entryType:"partner_inventory",expired:!1,mainImage:{alt:e.title,cdn:"",context:null,fileName:e["image-url"],height:300,path:e["image-url"],tags:null,width:400},partnerContent:{locationName:(null===(a=e.location)||void 0===a?void 0:a.address)||"",reviewScore:e["review-score"],starRating:e["star-rating"]},title:e.title,url:e["offer-url"],view:"default"},o&&{pricing:o}),i&&{category:i});const l=e[be]?{title:e[be],color:y.Im}:void 0,c=e[ve]?{source:e[ve].source,showMatches:e[ve]["show-matches"],matches:e[ve].matches.map(e=>({isMatched:e["is-matched"],key:e.key,label:e.label}))}:void 0;return ge(ge(ge(ge({entryId:e.id,excerpt:e.description,expired:e.expired,entryType:"hp_deal",highlightMode:"own-deal",mainImage:ge(ge({},e["main-image"]),{},{alt:e.title}),title:e.title,url:e["offer-url"],view:"default"},c&&{searchRelevance:c}),o&&{pricing:o}),i&&{category:i}),l&&{featuredTag:l})})(e,h,a)),[o]),j=null==w?void 0:w.slice(0,b),O=(0,r.useCallback)((e,t,n,r,o)=>{var a,l;const c=u.adults,p=u.childAges,d=u.destination,f=u.from,h=u.isOneWay,m=u.origin,g=u.sorting,y=u.to;let b,v,x,w,j,A;if((e=>"legs"in e)(t)){const e=Ae(t.legs,2),n=e[0],r=e[1];b=null==n?void 0:n.departureDate,v=null==r?void 0:r.departureDate,A=h?"one_way":"return"}else{var O,C,_,k,S;b=null==t?void 0:t.dateFrom,v=null==t?void 0:t.dateTo,x=null===(O=t.searchRelevance)||void 0===O?void 0:O.source,w=(null!==(C=null===(_=t.searchRelevance)||void 0===_?void 0:_.matches)&&void 0!==C?C:[]).map(e=>"".concat(e.key,"=").concat(e.isMatched)).join("|")||void 0,j=null!==(k=t.partnerContent)&&void 0!==k&&k.starRating?"".concat(null===(S=t.partnerContent)||void 0===S?void 0:S.starRating):void 0}const I=b?(0,P.H)(b):void 0,D=v?(0,P.H)(v):void 0,L=I&&D?(0,T.c)(D,I):void 0,M=t.pricing?[t.pricing.prefix,t.pricing.amount,t.pricing.suffix].filter(Boolean).join(" "):void 0,B=(0,E.CP)(null===(a=t.pricing)||void 0===a?void 0:a.amount),F="button_click"===e?{click_url:o,provider_name:r,button_type:"book flight"}:{};i(e,we(we({},(0,E.yX)(t)),{},{deal_currency:B.currency,deal_price:B.amount,departure_date:b||(null==f?void 0:f.toString())||void 0,destination:(null==d?void 0:d.label)||"",label:L,matching_tags:w,origin:(null==m?void 0:m.label)||"",partner_name:null==s?void 0:s.partnerId,pinned_position:!1,position_placement:"".concat(n),price_displayed:M,recommendation_type:x,result_type:t.entryType,return_date:v||(null==y?void 0:y.toString())||void 0,row_placement:"1",section_placement:"1",sort_type:g||void 0,star:j,title:(null==s?void 0:s.tabLabel)||void 0,travellers_adults:c,travellers_children:null!==(l=null==p?void 0:p.length)&&void 0!==l?l:0,trip_type:A},F))},[i,s,u]);return null!=o&&o.length?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(v.xA,{columns:n,children:null==j?void 0:j.map((e,t)=>(0,A.jsxs)(r.Fragment,{children:["default"===e.view&&(0,A.jsx)(L.A,{data:e,external:"own-deal"!==e.highlightMode,position:t+1,onCardLoad:(e,t)=>
1{O("post_card_impression",e,t)},onCardClick:(e,t)=>O("card_click",e,t)}),"flight"===e.view&&(0,A.jsx)(re,{data:e,position:t+1,onCardLoad:(e,t)=>{O("post_card_impression",e,t)},onCardClick:(e,t)=>O("card_click",e,t),onCtaClick:(e,t,n,r)=>O("button_click",e,t,n,r),onDetailsLoad:(e,t)=>O("card_detail_impression",e,t)})]},"entryId"in e?e.entryId:e.id))}),b<(null==w?void 0:w.length)&&(0,A.jsx)(oe.ButtonWrapper,{children:(0,A.jsx)($.A,{onClick:()=>{x(e=>e+20)},children:null==m?void 0:m.loadMore})})]}):(0,A.jsx)(S,{amount:20,columns:n})};var _e=n(67126);n(48408),n(14603),n(47566),n(98721),n(25440);const ke={Bar:x.Ay.div.withConfig({componentId:"hp__sc-1hrk87h-0"})(e=>{let t=e.isActive,n=e.percentHeight;return"\n    background-color: ".concat(t?y.ny:y._p,";\n    border-top-left-radius: 2px;\n    border-top-right-radius: 2px;\n    flex: 1;\n    height: ").concat(n,"%;\n  ")}),Container:x.Ay.div.withConfig({componentId:"hp__sc-1hrk87h-1"})(["align-items:end;display:flex;gap:1px;height:40px;margin-bottom:-12px;margin-top:10px;"])},Se=e=>{let t=e.data,n=e.maxVal,r=e.minVal;if(!t.length)return null;const o=Math.max(...t.map(e=>e.count)),i=(e,t,n,r)=>e>=n&&e<=r||t>=n&&e<=r||e<=n&&t>=r;return(0,A.jsx)(ke.Container,{children:t.map(e=>{let t=e.count,a=e.max,l=e.min;return(0,A.jsx)(ke.Bar,{percentHeight:Math.round(100*t/o*10)/10,isActive:i(r,n,l,a)},"".concat(l,"-").concat(a))})})},Ie={AT:{currency:"€",position:"right"},CH:{currency:"CHF",position:"left"},DE:{currency:"€",position:"right"},ES:{currency:"€",position:"right"},FR:{currency:"€",position:"right"},IT:{currency:"€",position:"right"},NL:{currency:"€",position:"left"},PL:{currency:"PLN",position:"right"},UK:{currency:"£",position:"left"},US:{currency:"$",position:"left"}},Pe={Affix:x.Ay.span.withConfig({componentId:"hp__sc-1tgazu1-0"})(e=>{let t=e.affix;return"\n    bottom: 10px;\n    color: ".concat(y.yS,";\n    display: block;\n    font-size: ").concat(l.$m,";\n    position: absolute;\n    text-align: center;\n    width: ").concat(t.currency.length+2,"0px;\n    ").concat(t.position,": 0;\n  ")}),Input:(0,x.Ay)(v.pd).withConfig({componentId:"hp__sc-1tgazu1-1"})(e=>{let t=e.affix;return"\n    ".concat(t?"\n      padding-".concat(t.position,": ").concat(t.currency.length+2,"0px;\n    "):"","\n  ")}),Label:x.Ay.label.withConfig({componentId:"hp__sc-1tgazu1-2"})(["font-family:",";font-size:",";"],U.vP,l.$H),Wrapper:x.Ay.span.withConfig({componentId:"hp__sc-1tgazu1-3"})(["display:block;flex:1;position:relative;"])};function Te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return De(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?De(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ee=e=>{let t=e.ariaLabel,n=e.initialValue,o=e.label,i=e.max,a=e.min,l=e.onBlur,c=e.onChange,s=e.type;const u=(0,d.A)().id,p=Te((0,r.useState)(n),2),f=p[0],h=p[1],m="price"===s?Ie[u]:null;return(0,r.useEffect)(()=>{h(n)},[n]),(0,A.jsxs)(Pe.Wrapper,{children:[o&&(0,A.jsx)(Pe.Label,{htmlFor:t,children:o}),(0,A.jsx)(Pe.Input,{affix:m,"aria-label":t,id:t,min:a,max:i,onBlur:e=>{const t=e.currentTarget.value;let n=t?Number(t):0;n<a&&(n=a),n>i&&(n=i),h(n),l(n)},onChange:e=>{const t=e.currentTarget.value;h(t?Number(t):""),c(Number(t))},type:"number",value:f}),m&&(0,A.jsx)(Pe.Affix,{affix:m,children:m.currency})]})},Le={InputsWrapper:x.Ay.div.withConfig({componentId:"hp__sc-co64xo-0"})(["display:flex;gap:30px;position:relative;&:after{background:",";bottom:19px;content:'';height:1px;position:absolute;
1left:calc(50% - 6px);width:12px;}"],y.yS),RangeInput:x.Ay.input.attrs({type:"range"}).withConfig({componentId:"hp__sc-co64xo-1"})(e=>{let t=e.isDisabled;return"\n    appearance: none;\n    -webkit-appearance: none;\n    background: none;\n    height: 4px;\n    margin: 0;\n    outline: none;\n    pointer-events: none;\n    position: absolute;\n    width: 100%;\n\n    &::-webkit-slider-thumb {\n      -webkit-appearance: none;\n      background: ".concat(y.UE,";\n      border-radius: ").concat(l.Zz,";\n      box-shadow:\n        0 0 4px rgba(0, 0, 0, 0.2),\n        0 6px 12px rgba(0, 0, 0, 0.1);\n      cursor: grab;\n      height: 16px;\n      pointer-events: ").concat(t?"none":"all",";\n      transition: box-shadow 0.15s ease;\n      width: 32px;\n    }\n    &::-webkit-slider-thumb:active {\n      cursor: grabbing;\n    }\n\n    &::-moz-range-thumb {\n      background: ").concat(y.UE,";\n      border-radius: ").concat(l.Zz,";\n      cursor: grab;\n      height: 16px;\n      pointer-events: ").concat(t?"none":"all",";\n      width: 32px;\n    }\n    &::-moz-range-thumb:active {\n      cursor: grabbing;\n    }\n  ")}),TrackArea:x.Ay.div.withConfig({componentId:"hp__sc-co64xo-2"})(["align-items:center;display:flex;height:30px;position:relative;"]),TrackBackground:x.Ay.div.withConfig({componentId:"hp__sc-co64xo-3"})(["background:",";border-radius:2px;height:4px;left:0;position:absolute;right:0;"],y._p),TrackFill:x.Ay.div.withConfig({componentId:"hp__sc-co64xo-4"})(e=>{let t=e.left,n=e.w;return"\n    background: ".concat(y.Im,";\n    border-radius: 2px;\n    height: 4px;\n    left: ").concat(t,"%;\n    pointer-events: none;\n    position: absolute;\n    width: ").concat(n,"%;\n  ")}),Values:x.Ay.div.withConfig({componentId:"hp__sc-co64xo-5"})(["color:",";display:flex;font-size:14px;justify-content:space-between;"],y.yS),Wrapper:x.Ay.div.withConfig({componentId:"hp__sc-co64xo-6"})(["font-family:sans-serif;"])};function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Be(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Fe=e=>{let t=e.charts,n=e.initialMax,o=e.initialMin,i=e.isDisabled,a=void 0!==i&&i,l=e.max,c=e.min,s=e.onSlideEnd,u=e.step,p=void 0===u?1:u,h=e.type;const m=(0,d.A)().localeTag,g=(0,f.B)().explore.filter,y=g.max,b=g.min,v=Me((0,r.useState)(null!=o?o:c),2),x=v[0],w=v[1],j=Me((0,r.useState)(null!=n?n:l),2),O=j[0],C=j[1],_=10*p,k=null==t?void 0:t.find(e=>e.count>0),S=k?Math.floor(k.max):void 0,I=(0,r.useCallback)(e=>{const t=S&&S>x+_?S:x+_,n=Math.max(Number(e.target.value),t);C(n)},[x,_,S]),P=(0,r.useCallback)(e=>{const t=Math.min(Number(e.target.value),O-_);w(t)},[O,_]),T=()=>s({max:O,min:x}),D=e=>{if("date"===h){const t=new Date(e),n=String(t.getHours()).padStart(2,"0"),r=String(t.getMinutes()).padStart(2,"0");return"".concat(n,":").concat(r)}return"duration"===h?(0,ae.A)(e,m):"price"===h?((e,t)=>{switch(t){case"de-AT":case"de-DE":return"".concat(e," €");case"de-CH":return"CHF ".concat(e);case"es-ES":case"fr-FR":case"it-IT":return"".concat(e,"€");case"nl-NL":return"€ ".concat(e);case"pl-PL":return"".concat(e," PLN");case"en-GB":return"£".concat(e);case"en-US":return"$".concat(e)}})(e,m):e},E=e=>(e-c)/(l-c)*100;return(0,r.useEffect)(()=>{w(null!=o?o:c)},[o,c]),(0,r.useEffect)(()=>{C(null!=n?n:l)},[n,l]),(0,A.jsxs)(Le.Wrapper,{children:[(null==t?void 0:t.length)&&(0,A.jsx)(Se,{data:t,maxVal:O,minVal:x}),(0,A.jsxs)(Le.TrackArea,{children:[(0,A.jsx)(Le.TrackBackgroun
1d,{}),(0,A.jsx)(Le.TrackFill,{left:E(x),w:E(O)-E(x)}),"duration"!==h&&(0,A.jsx)(Le.RangeInput,{"aria-label":"Minimum ".concat(h),"aria-valuemin":c,"aria-valuemax":l,"aria-valuenow":x,isDisabled:a,min:c,max:l,step:p,value:x,onChange:P,onMouseUp:T,onTouchEnd:T,tabIndex:-1}),(0,A.jsx)(Le.RangeInput,{"aria-label":"Maximum ".concat(h),"aria-valuemin":c,"aria-valuemax":l,"aria-valuenow":O,isDisabled:a,min:c,max:l,step:p,value:O,onChange:I,onMouseUp:T,onTouchEnd:T,tabIndex:-1})]}),null!=t&&t.length?(0,A.jsxs)(Le.InputsWrapper,{children:[(0,A.jsx)(Ee,{ariaLabel:"Minimum ".concat(h),label:b,min:c,max:O-1,initialValue:x,onBlur:e=>s({max:O,min:e}),onChange:e=>w(e),type:h}),(0,A.jsx)(Ee,{ariaLabel:"Maximum ".concat(h),label:y,min:S&&S>x+1?S:x+1,max:l,initialValue:O,onBlur:e=>s({max:e,min:x}),onChange:e=>C(e),type:h})]}):(0,A.jsxs)(Le.Values,{children:[(0,A.jsx)("span",{children:D(x)}),(0,A.jsx)("span",{children:D(O)})]})]})};var Ne=n(60333);function ze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $e(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$e(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Re=(0,r.createContext)({}),Je=(0,r.createContext)({}),Ue=e=>{let t=e.children,n=e.isDisabled,o=e.isModal,i=void 0!==o&&o;const a=ze((0,r.useState)(!1),2),l=a[0],c=a[1];return(0,h.y7)('Update context "SectionContext"'),(0,A.jsx)(Je.Provider,{value:{triggerClearAll:()=>c(e=>!e)},children:(0,A.jsx)(Re.Provider,{value:{isDisabled:n,isModal:i,clearAllTrigger:l},children:t})})},He=()=>{const e=(0,r.useContext)(Re);if(void 0===e)throw(0,Ne.c_)("useSectionContextState must be used within a SectionContextProvider",
1Ue.name);return e},We={SubLabel:x.Ay.span.withConfig({componentId:"hp__sc-143g30y-0"})(["color:",";display:block;font-size:14px;margin-bottom:4px;"],y.yS)},qe=e=>{var t;let n=e.data,r=e.id,o=e.label;const i=(0,c.Nh)().filterParams,a=(0,c.Re)().setFilterParam,l=He(),u=l.isDisabled,p=l.isModal;if(!n||!r)return null;const d=!p,f=n.type?n.type.replace("range-",""):"date",h="date"===f&&n.earliest?new Date(n.earliest).getTime():n.min,m="date"===f&&n.latest?new Date(n.latest).getTime():n.max,g=null!==(t=n.buckets)&&void 0!==t&&t.length?n.buckets:null;let y,b;if(i&&r in i&&null!=i&&i[r]){const e=i[r];if("date"===f&&"latest"in e?y=new Date(e.latest).getTime():"max"in e&&(y=e.max),"date"===f&&"earliest"in e?b=new Date(e.earliest).getTime():"min"in e&&(b=e.min),g){const e=(0,s.QJ)(r).min;null!=e&&(b=e)}}if("number"!=typeof m||"number"!=typeof h)return null;const v=s.ol[f];return(0,A.jsxs)(A.Fragment,{children:[o&&(0,A.jsx)(We.SubLabel,{children:o}),(0,A.jsx)(Fe,{charts:g,initialMax:y,initialMin:b,isDisabled:u,max:m,min:h,onSlideEnd:e=>{a(r,"date"!==f?e:{earliest:(0,ae.k)(e.min),latest:(0,ae.k)(e.max)},d)},step:v,type:f})]})};var Ke=n(75131);const Ve={ItemWrapper:x.Ay.div.withConfig({componentId:"hp__sc-vpmj0r-0"})(e=>{let t=e.bigMargin;return"\n    margin-bottom: ".concat(t?10:5,"px;\n\n    &:last-child {\n      margin-bottom: 0;\n    }\n  ")}),ToggleListLength:x.Ay.button.withConfig({componentId:"hp__sc-vpmj0r-1"})(["background:none;border:0;color:",";cursor:pointer;font-size:",";outline:0;padding:0;position:relative;top:2px;&:hover{text-decoration:underline;}"],y.Im,l.nJ)};function Ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ze(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ze(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ge=e=>{var t;let n=e.id,o=e.list;const i=(0,c.Nh)().filterParams,a=(0,c.Re)().setFilterParam,l=He(),s=l.isModal,u=l.clearAllTrigger,p=(0,f.B)().explore.filter,d=p.viewAll,h=p.viewLess,m=(e,t)=>
1{let n=e?[...e]:[];return n=n.slice(0,t?5:n.length),n};let g=[];i&&n&&n in i&&null!=i&&null!==(t=i[n])&&void 0!==t&&t.selected&&(g=i[n].selected);const y=!0,b=m(o,y),v=Ye((0,r.useState)(y),2),x=v[0],w=v[1],j=Ye((0,r.useState)(b),2),O=j[0],C=j[1],_=(0,r.useRef)(!1),k=!s;if((0,r.useEffect)(()=>{_.current?I():_.current=!0},[u]),(0,r.useEffect)(()=>{const e=m(o,x);C(e)},[x,o,g]),!n||!o)return null;const S=(e,t)=>{const r=[...g];if(t&&!r.includes(e))r.push(e);else if(!t&&r.includes(e)){const t=r.indexOf(e);r.splice(t,1)}a(n,{selected:r},k)},I=()=>{a(n,{selected:[]},k)},P=e=>"star-ratings"===n&&e&&!Number.isNaN(parseInt(e));return(0,A.jsxs)("div",{children:[O.map(e=>{let t=e.available,n=e.label,r=e.id,o=e["sub-label"];return(0,A.jsx)(Ve.ItemWrapper,{bigMargin:!o,children:r&&(0,A.jsx)(Ke.A,{checked:g.includes(r),infoText:o||"",isDisable:!t,labelFirst:!0,onChange:e=>S(r,e),tabIndex:-1,children:P(r)?[...Array(parseInt(r))].map((e,t)=>(0,A.jsx)(z.A,{iconName:"app/star-full",w:24},t)):n})},r)}),o.length>5&&(0,A.jsx)(Ve.ToggleListLength,{onClick:()=>w(!x),children:x?d:h})]})},Qe={FieldWrapper:x.Ay.div.withConfig({componentId:"hp__sc-1se031l-0"})(["margin-bottom:15px;&:last-child{margin-bottom:0;}"])},Xe=e=>{let t=e.config,n=e.id,r=e.isSubTab,o=void 0!==r&&r,i=e.subtitle,a=e.title;return n&&t?(0,A.jsxs)(Qe.FieldWrapper,{children:["select-many"===(null==t?void 0:t.type)&&(0,A.jsx)(Ge,{id:n,list:null==t?void 0:t.options}),("range-date"===(null==t?void 0:t.type)||"range-duration"===(null==t?void 0:t.type)||"range-price"===(null==t?void 0:t.type))&&(0,A.jsx)(qe,{data:t,id:n,label:o&&(i||a)||""})]}):null},et={Button:x.Ay.span.withConfig({componentId:"hp__sc-166qrpk-0"})(e=>{let t=e.isActive;return"\n    border-radius: ".concat(l.FY,";\n    display: block;\n    color: ").concat(y.yS,";\n    cursor: ").concat(t?"default":"pointer",";\n    flex: 1;\n    font-size: ").concat(l.$m,";\n    font-weight: ").concat(t?"bold":"normal",";\n    line-height: 30px;\n    position: relative;\n    text-align: center;\n\n    &:hover {\n      font-weight: bold;\n    }\n  ")}),ButtonList:x.Ay.div.withConfig({componentId:"hp__sc-166qrpk-1"})(e=>{let t=e.activeIndex,n=e.n;return"\n    background: ".concat(y.AH,";\n    border-radius: ").concat(l.FY,";\n    box-sizing: border-box;\n    display: flex;\n    height: 34px;\n    margin-bottom: 5px;\n    padding: 2px;\n    position: relative;\n    width: 100%;\n\n    &:before {\n      background: ").concat(y.UE,";\n      border-radius: ").concat(l.FY,";\n      content: '';\n      display: block;\n      height: calc(100% - 4px);\n      position: absolute;\n      transform: translateX(calc(").concat(t,"00% + ").concat(4*t,"px));\n      transition: transform .2s ease;\n      width: calc(").concat(100/n,"% - 4px);\n    }\n  ")}),TabForm:x.Ay.div.withConfig({componentId:"hp__sc-166qrpk-2"})(["width:100%;"]),TabList:x.Ay.div.withConfig({componentId:"hp__sc-166qrpk-3"})(e=>{let t=e.activeIndex,n=e.n;return"\n    display: flex;\n    gap: ".concat(40,"px;\n    padding-top: 10px;\n    position: relative;\n    transform: translateX(calc(-").concat(100*t/n,"% - ").concat(t*(40/n),"px));\n    transition: transform .2s ease-in-out;\n    width: calc(").concat(n,"00% + ").concat(40*(n-1),"px);\n  ")})};function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach(function(t){rt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}
1finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return it(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?it(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const at=e=>{let t=e.tabs;const n=ot((0,r.useState)(0),2),o=n[0],i=n[1];return null!=t&&t.length?(0,A.jsxs)(A.Fragment,{children:[t.length>1&&(0,A.jsx)(et.ButtonList,{activeIndex:o,n:t.length,children:t.map((e,t)=>{let n=e.title;return(0,A.jsx)(et.Button,{isActive:o===t,onClick:()=>i(t),children:n},n)})}),(0,A.jsx)(et.TabList,{activeIndex:o,n:t.length,children:t.map(e=>{let t=e.items,n=e.title;return(0,A.jsx)(et.TabForm,{children:null==t?void 0:t.map(e=>(0,A.jsx)(Xe,nt(nt({},e),{},{isSubTab:!0}),e.id))},n)})})]}):null},lt={ClearAll:x.Ay.button.withConfig({componentId:"hp__sc-1e0n12h-0"})(["background:none;border:0;color:",";cursor:pointer;font-size:",";outline:0;padding:0;position:relative;top:2px;&:hover{text-decoration:underline;}"],y.Im,l.$m),Section:x.Ay.div.withConfig({componentId:"hp__sc-1e0n12h-1"})(e=>{let t=e.isDisabled;return"\n    border-bottom: 2px solid ".concat(y.AH,";\n    opacity: ").concat(t?.4:1,";\n    padding-bottom: 15px;\n    pointer-events: ").concat(t?"none":"auto",";\n  \n    &:last-child {\n      border-bottom: 0;\n    }\n  ")}),SectionHeader:x.Ay.div.withConfig({componentId:"hp__sc-1e0n12h-2"})(["align-items:center;display:flex;justify-content:space-between;"]),SectionTitle:x.Ay.span.withConfig({componentId:"hp__sc-1e0n12h-3"})(["display:block;font-weight:bold;margin:1em 0;"])},ct=["isDisabled","onlyFor","tabs"];function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach(function(t){pt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dt=e=>{var t,n,o,a;let l=e.isDisabled,s=e.onlyFor,u=e.tabs,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ct);const d=(0,c.Nh)(),h=d.filterConfig,m=d.filterParams,g=(0,c.Re)().setFilterParam,y=(0,i.useLocation)(),b=(()=>{const e=(0,r.useContext)(Je);if(void 0===e)throw(0,Ne.c_)("useSectionContextDispatch must be used within a SectionContextProvider",
1Ue.name);return e})().triggerClearAll,v=(0,f.B)().explore.filter.clearAll;if("mobile"===s)return null;const x=p.id?null==m||null===(t=m[p.id])||void 0===t||null===(t=t.selected)||void 0===t?void 0:t.length:0,w=new URLSearchParams(y.search),j=!!p.config&&("range-date"===p.config.type||"range-duration"===p.config.type||"range-price"===p.config.type),O=j&&p.resetButton&&p.id&&null!==w.get(p.id),C="select-many"===(null===(n=p.config)||void 0===n?void 0:n.type)&&(null===(o=p.config)||void 0===o||null===(o=o.options)||void 0===o?void 0:o.length)&&p.config.options.length>1&&x>0;return j&&null===p.config.min&&null===p.config.max&&!(null!==(a=p.config.buckets)&&void 0!==a&&a.length)?null:(0,A.jsxs)(lt.Section,{isDisabled:l,children:[(0,A.jsxs)(lt.SectionHeader,{children:[p.title&&(0,A.jsx)(lt.SectionTitle,{children:p.title}),C&&(0,A.jsx)(lt.ClearAll,{onClick:b,children:v}),O&&(0,A.jsx)(lt.ClearAll,{onClick:()=>{p.id&&p.id in h&&g(p.id,{max:h[p.id].max,min:h[p.id].min},!0)},children:p.resetButton})]}),(0,A.jsx)(Xe,ut({},p)),(0,A.jsx)(at,{tabs:u})]})},ft={ResetButton:x.Ay.button.withConfig({componentId:"hp__sc-1novoqy-0"})(e=>{let t=e.isDisabled;return"\n    background: none;\n    border: 0;\n    color: ".concat(y.Im,";\n    cursor: pointer;\n    font-size: ").concat(l.nJ,";\n    opacity: ").concat(t?.4:1,";\n    outline: 0;\n    padding: 0;\n    pointer-events: ").concat(t?"none":"auto",";\n    position: relative;\n    top: 2px;\n\n    &:hover {\n      text-decoration: underline;\n    }\n\n    @media ").concat(w.J.desktop," {\n      margin-top: 12px;\n    }\n  ")})};function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach(function(t){gt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yt=e=>{let t=e.filters,n=e.isDisabled,r=void 0!==n&&n,o=e.isLoading,i=void 0!==o&&o,a=e.isModal;const l=(0,c.Nh)(),u=l.activePsb,p=l.filterConfig,d=l.filterParams,h=(0,c.Re)().setFilterParams,m=(0,D.y)().trackEvent,g=(0,f.B)().explore.filter,y=g.reset,b=g.resetFilters;if(null==t||!t.length)return null;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(ft.ResetButton,{isDisabled:r&&i,onClick:()=>{(0,s.P3)(d,p).length&&h(null,!a),m("filter_reset",{label:(null==u?void 0:u.vertical)||""})},children:a?y:b}),null==t?void 0:t.map(e=>(0,A.jsx)(Ue,{isDisabled:r,isModal:a,children:(0,A.jsx)(dt,mt({isDisabled:r},e))},e.id))]})},bt=150,vt=99,xt={INITIAL:{threshold:20,baseIncrement:3,variability:2,pauseChance:0},MIDDLE:{threshold:90,baseIncrement:2.5,variability:3,pauseChance:.15},FINAL:{threshold:100,baseIncrement:.5,variability:1,pauseChance:.15}},wt=e=>{if(e>=vt)return vt;const t=(e=>{const t=xt,n=t.INITIAL,r=t.MIDDLE,o=t.FINAL;let i;return i=e<n.threshold?n:e<r.threshold?r:o,Math.random()<i.pauseChance?0:i.baseIncrement+Math.random()*i.variability})(e),n=e+t;return Math.max(e,Math.min(Math.round(n),vt))},jt={ProgressBar:x.Ay.div.withConfig({componentId:"hp__sc-1x1ifpl-0"})(["background-color:",";border-radius:10px;bottom:-20px;height:8px;overflow:hidden;width:100%;@media ","{bottom:0;position:relative;}"],y.AH,w.J.phone),ProgressBarFill:x.Ay.div.withConfig({componentId:"hp__sc-1x1ifpl-1"})(e=>{let t=e.progress,n=e.applyTransition;return"\n    background-color: ".concat(y.Oj,";\n    border-radius: 10px;\n    height: 100%;\n    transition: ").concat(n?"width 0.5s ease-out":"none",";\n    width: ").concat(t,"%;\n  ")}),Text:x.Ay.span.withConfig({componentId:"hp__sc-1x1ifpl-2"})(["color:",";display:block;font-weight:bold;margin-bottom:6px;margin-top:4px;"],y.dL),Wrapper:x.Ay.div.withConfig({componentId:"hp__sc-1x1ifpl-3"})(["padding-bottom:10px;position:relative;width:100%;"])};function At(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}
1finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ot(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ot(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ct=e=>{let t=e.isLoading;const n=(0,f.B)().explore.loadingResults,o=At((0,r.useState)(0),2),i=o[0],a=o[1],l=At((0,r.useState)(!1),2),c=l[0],s=l[1];return(0,r.useEffect)(()=>{let e=null,n=null;return t?(s(!1),a(0),n=setTimeout(()=>{s(!0)},50),e=setInterval(()=>{a(t=>{const n=wt(t);return n>=vt&&e&&clearInterval(e),n})},bt)):(s(!0),a(100)),()=>{e&&clearInterval(e),n&&clearTimeout(n)}},[t]),t?(0,A.jsxs)(jt.Wrapper,{children:[(0,A.jsx)(jt.Text,{children:n}),(0,A.jsx)(jt.ProgressBar,{children:(0,A.jsx)(jt.ProgressBarFill,{applyTransition:c,"aria-labelledby":"loadingLabel","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":i,role:"progressbar",progress:i})})]}):null},_t={Body:x.Ay.div.withConfig({componentId:"hp__sc-11n9uq0-0"})(["display:flex;gap:24px;min-height:100vh;"]),Main:x.Ay.div.withConfig({componentId:"hp__sc-11n9uq0-1"})(["flex:3;@media ","{flex:2;}"],w.J.tablet),ModalToggle:x.Ay.button.withConfig({componentId:"hp__sc-11n9uq0-2"})(e=>{let t=e.isDisabled,n=void 0!==t&&t;
1return"\n    align-items: center;\n    background: ".concat(y.UE,";\n    border: 1px solid ").concat(y.S0,";\n    border-radius: ").concat(l.Zz,";\n    color: ").concat(y.xJ,";\n    cursor: pointer;\n    display: flex;\n    flex: 1;\n    font-family: ").concat(U.vP,";\n    font-size: ").concat(l.$H,";\n    gap: 4px;\n    height: 35px;\n    justify-content: center;\n    opacity: ").concat(n?.4:1,";\n    padding: 8px 6px;\n    pointer-events: ").concat(n?"none":"auto",";\n\n    @media ").concat(w.J.desktop," {\n      display: none;\n    }\n  ")}),Sidebar:x.Ay.div.withConfig({componentId:"hp__sc-11n9uq0-3"})(["flex:1;margin:0 -5px;overflow-x:hidden;overflow-y:auto;padding:0 5px;@media ",",","{display:none;}"],w.J.tablet,w.J.phone),WarningInfo:x.Ay.div.withConfig({componentId:"hp__sc-11n9uq0-4"})(["align-items:center;background-color:",";border:1px solid ",";border-radius:",";color:",";display:flex;font-size:",";gap:10px;margin:30px 0;padding:0 15px;@media ","{margin:12px 0;}& > span{flex-shrink:0;}"],y.cx,y.$Z,l.FY,y.$Z,l.$m,w.J.phone),Wrapper:x.Ay.div.withConfig({componentId:"hp__sc-11n9uq0-5"})(["min-height:100vh;width:100%;"])};function kt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return St(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?St(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const It=e=>{var t;let n=e.isDisabled,o=e.isLoading;const i=(0,c.Nh)(),a=i.activePsb,l=i.filterConfig,u=i.filterParams,p=i.filters,d=(0,c.Re)().setFilterParams,h=(0,D.y)().trackEvent,m=(0,f.B)().explore.filter,g=m.headline,y=m.showResults,b=(0,s.P3)(u,l),v=(0,r.useRef)(u),x=kt((0,r.useState)(!1),2),w=x[0],j=x[1],O=()=>j(!1),C=[{action:()=>{u&&d(u),O()},label:y}];return(0,r.useEffect)(()=>{o&&(v.current=u)},[u]),null!=a&&null!==(t=a.filterUi)&&void 0!==t&&null!==(t=t.list)&&void 0!==t&&t.length?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(_t.ModalToggle,{isDisabled:n,onClick:()=>{n||(v.current=u,h("filter_open",{label:(null==a?void 0:a.vertical)||""}),j(!0))},children:[(0,A.jsx)(z.A,{iconName:"app/settings_light",h:16}),(0,A.jsxs)("span",{children:[g,!!b.length&&" (".concat(b.length,")")]})]}),w&&(0,A.jsx)(N.A,{footerButtons:C,fullFooter:!0,mobileLayout:"docked",onClose:()=>{v.current&&d(null==v?void 0:v.current,!1),h("filter_close",{label:(null==a?void 0:a.vertical)||""}),O()},title:g,children:(0,A.jsx)(yt,{filters:p,isModal:!0})})]}):null},Pt={Wrapper:x.Ay.span.withConfig({componentId:"hp__sc-m3zoaz-0"})(["align-items:center;display:inline-flex;gap:8px;margin-left:0.3em;@media ",",","{display:none;}"],w.J.tablet,w.J.phone),Label:x.Ay.b.withConfig({componentId:"hp__sc-m3zoaz-1"})(["color:",";"],y.dL),TooltipContainer:x.Ay.div.withConfig({componentId:"hp__sc-m3zoaz-2"})(["position:relative;display:flex;&:hover > div{opacity:1;transform:scale(1);}"]),Tooltip:x.Ay.div.withConfig({componentId:"hp__sc-m3zoaz-3"})(["background:",";border-radius:",";color:",";filter:drop-shadow(0 32px 24px rgba(0,0,0,0.08)) drop-shadow(0 0 24px rgba(0,0,0,0.12)) drop-shadow(0 0 1px rgba(0,0,0,0.2));font-size:",";left:-12px;line-height:1.5;opacity:0;padding:16px;position:absolute;top:36px;transform:scale(0);transition:opacity 0.3s ease-in;width:300px;z-index:100;&::before{background:",";clip-path:polygon(50% 0%,100% 100%,0% 100%);content:'';height:12px;left:18px;position:absolute;top:-12px;width:12px;}"],y.UE,l.Zz,y.yS,l.$m,y.UE)},Tt=()=>{const e=(0,c.Nh)().sortConfig,t=(0,f.B)().explore,n=null==e?void 0:e.infoText;return e?(0,A.jsxs)(Pt.Wrapper,{children:[(0,A.jsxs)(Pt.Label,{children:[t.sortedBy," ",e.label]}),!!n&&(0,A.jsxs)(Pt.TooltipContainer,{children:[(0,A.jsx)(I.A,{iconName:"app/info",mainColor:y.yS,inline:!0,h:24}),(0,A.jsx)(Pt.Tooltip,{children:n})]})]}):null};n(26910);const Dt={Dropdown:x.Ay.div.withConfig({componentId:"hp__sc-1h1c59f-0"})(e=>{let t=e.isVisible;return"\n    background-color: ".concat(y.UE,";\n    border-radius: ").concat(l.Zz,";\n    box-shadow:\n      0 8px 24px -6px rgba(0, 0, 0, 0.16),\n      0 0 1px 0 rgba(0, 0, 0, 0.4);\n    margin-top: 4px;\n    min-width: 100%;\n    opacity: ").concat(t?1:0,";\n    overflow: hidden;\n    pointer-events: ").concat(t?"auto":"none",";\n    position: absolute;\n    transform: translateY(").concat(t?0:-30,"px);\n    transition: opacity 0.1s ease, transform 0.1s ease-out;\n    z-index: -1;\n    ")}),Option:x.Ay.button.withConfig({componentId:"hp__sc-1h1c59f-1"})(e=>{let t=e.isActive;return"\n    background-color: ".concat(t?y._p:"transparent",";\n    border: 0;\n    border-radius: ").concat(l.Z2,";\n    color: ").concat(t?y.Im:y.yS,";\n    cursor: ").concat(t?"default":"pointer",";\n    display: block;\n    font-family: ").concat(U.vP,";\n    font-size: ").concat(l.$H,";\n    font-weight: ").concat(t?"bold":"normal",";\n    margin: 4px;\n    padding: 8px 16px;\n    text-align: left;\n    text-wrap: nowrap;\n    width: calc(100% - 8px);\n\n    &:hover {\n      background: ").concat(y._p,";\n      color: ").concat(y.Im,";\n    }\n  ")})},Et=e=>{let t=e.buttonRef,n=e.closeSelf,o=e.isVisible,i=e.onOptionClick,a=e.options;const l=(0,c.Nh)().sortConfig,s=(0,r.useRef)(null);return(0,r.useEffect)(()=>{const e=e=>{const r=e.target;s.current&&!s.current.contains(r)&&t.current&&!t.current.contains(r)&&n()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[s]),(0,A.jsx)(Dt.Dropdown,{ref:s,isVisible:o,children:a.map(e=>{let t=e.key,n=e.label;return(0,A.jsx)(Dt.Option,{isActive:(null==l?void 0:l.key)===t,name:t,onClick:i,children:n},t)})})},Lt={ButtonWrapper:x.Ay.span.withConfig({componentId:"hp__sc-du1v16-0"})(["position:relative;"]),DesktopButton:x.Ay.button.withConfig({componentId:"hp__sc-du1v16-1"})(e=>{let t=e.isActive,n=e.isDropdown;return"\n    background-color: ".concat(y.AH,";\n    border: 1px solid ").concat(y.iP,";\n    border-radius: ").concat(l.FY,";\n    color: ").concat(y.yS,";\n    font-family: ").concat(U.vP,";\n    font-size: ").concat(l.$H,";\n    line-height: 1;\n    padding: 8px 16px;\n    position: relative;\n    transition: background-color 0.2s ease-out, color 0.2s ease-out;\n    ").concat(t?"\n      background-color: ".concat(y._p,";\n      color: ").concat(y.Im,";\n      font-weight: bold;\n\n      .arrow-icon {\n        background-color: ").concat(y.Im,";\n      }\n      "):"cursor: pointer;","\n\n    ").concat(n?"\n      cursor: pointer;\n      padding-right: 40px;\n\n      &:after {\n        background-color: ".concat(y.iP,";\n        bottom: 3px;\n        content: '';\n        display: block;\n        position: absolute;\n        right: 30px;\n        top: 3px;\n        width: 1px;\n      }\n    "):"","\n\n    &:hover {\n      background-color: ").concat(y._p,";\n      color: ").concat(y.Im,";\n\n      .arrow-icon {\n        background-color: ").concat(y.Im,";\n      }\n    }\n  ")}
1),DesktopControls:x.Ay.div.withConfig({componentId:"hp__sc-du1v16-2"})(e=>{let t=e.isDisabled;return"\n    display: flex;\n    gap: 12px;\n    margin-top: 12px;\n    opacity: ".concat(t?.4:1,";\n    pointer-events: ").concat(t?"none":"auto",";\n\n    @media ").concat(w.J.tablet,", ").concat(w.J.phone," {\n      display: none;\n    }\n  ")}),DropArrow:x.Ay.span.withConfig({componentId:"hp__sc-du1v16-3"})(e=>{let t=e.isOpen;return"\n    background-color: ".concat(y.yS,";\n    bottom: 3px;\n    display: inline-block;\n    mask-image: url(").concat(V.Cm,"app/arrow-drop-down.svg);\n    -webkit-mask-image: url(").concat(V.Cm,"app/arrow-drop-down.svg);\n    mask-position: center;\n    -webkit-mask-position: center;\n    mask-repeat: no-repeat;\n    -webkit-mask-repeat: no-repeat;\n    mask-size: 26px;\n    -webkit-mask-size: 26px;\n    position: absolute;\n    right: 4px;\n    top: 3px;\n    width: 24px;\n    transition: background-color 0.2s ease-out, transform 0.3s ease-out;\n\n      ").concat(t?"\n        transform: rotateX(180deg);\n      ":"","\n    ")}),GraySpan:x.Ay.span.withConfig({componentId:"hp__sc-du1v16-4"})(["color:",";"],y.dL),TouchButton:x.Ay.button.withConfig({componentId:"hp__sc-du1v16-5"})(["background:none;border:none;border-top:1px solid ",";color:",";display:block;font-family:",";font-size:",";font-weight:bold;padding:16px 40px 16px 0;position:relative;text-align:left;width:100%;&::before{border:1px solid ",";border-radius:50%;content:'';height:24px;position:absolute;right:0;top:calc(50% - 12px);width:24px;}",""],y.AH,y.yS,U.Kh,l.gB,y.xq,e=>e.isActive?"\n      &::before {\n        border-color: ".concat(y.Im,";\n      }\n\n      // Active indicator\n      &::after {\n        background: ").concat(y.Im,";\n        border-radius: 50%;\n        content: '';\n        height: 10px;\n        position: absolute;\n        right: 8px;\n        top: calc(50% - 4px);\n        width: 10px;\n      }\n      "):""),OptionDescription:x.Ay.span.withConfig({componentId:"hp__sc-du1v16-6"})(["color:",";display:block;font-family:",";font-size:",";font-weight:normal;margin-top:8px;"],y.O9,U.vP,l.$m)};function Mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ft=e=>{let t=e.onOptionClick,n=e.options;const o=(0,c.Nh)().sortConfig,i=n.find(e=>e.key===(null==o?void 0:o.key))||n[0],a=Mt((0,r.useState)(i),2),l=a[0],s=a[1],u=Mt((0,r.useState)(!1),2),p=u[0],d=u[1],f=(0,r.useRef)(null),h=n.length>1;if((0,r.useEffect)(()=>{const e=n.find(e=>e.key===(null==o?void 0:o.key));e&&s(e)},[o]),!l)return null;const m=(null==o?void 0:o.key)===l.key;return(0,A.jsxs)(Lt.ButtonWrapper,{children:[(0,A.jsxs)(Lt.DesktopButton,{ref:f,isActive:m,isDropdown:!0,onClick:()=>{h&&d(!p)},children:[l.label,(0,A.jsx)(Lt.DropArrow,{className:"arrow-icon",isOpen:p})]}),(0,A.jsx)(Et,{buttonRef:f,closeSelf:()=>d(!1),isVisible:p,onOptionClick:e=>{const r=e.currentTarget.name;if(!r)return;const o=n.find(e=>e.key===r);s(o),t(e),d(!1)},options:n,selected:l})]})};function Nt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}
1finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach(function(t){Jt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ht(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ht(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Wt=e=>{let t=e.isDisabled,n=void 0!==t&&t;const o=(0,c.Nh)(),a=o.activePsb,l=o.filterConfig,p=o.filterParams,d=o.sortConfig,h=o.psbForm,g=(0,c.Re)().setSorting,y=(0,D.y)().trackEvent,b=(0,i.useNavigate)(),v=Ut((0,r.useState)(!1),2),x=v[0],w=v[1],j=()=>w(!1),O=(0,f.B)().explore.sort,C=e=>{const t=e.currentTarget.name;if(t!==(null==d?void 0:d.key)){const e=(e=>{if(!a)return"";const t=Rt(Rt({},(0,u.N5)(h,!1)),{},{partner:a.partnerId,sorting:e}),n=(0,m.NE)(t),r=(0,s.JY)(p,l,!0);return"/explore".concat(n).concat(r)})(t);g(t),y("sort_click",Rt(Rt({},(0,E.$2)({activePsb:a,psbForm:h,searchUrl:e})),{},{label:"sorting"})),j(),b(e,{replace:!0})}},_=null==a?void 0:a.sortingOptions,k=_?(e=>{const t=[],n=[];for(const o of e.entries()){var r=Nt(o,2);const i=r[0],a=r[1];if(!n.includes(i))if(a.groupKey){const r=e.map((e,t)=>({i:t,value:e})).filter(e=>e.value.groupKey===a.groupKey),o=r.map(e=>e.value),i=r.map(e=>e.i);t.push(o);for(const e of i)n.push(e)}else t.push([a]),n.push(i)}return t})(_):[];return null!=_&&_.length?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Lt.DesktopControls,{isDisabled:n,children:k.map(e=>{if(e.length>1)return(0,A.jsx)(Ft,{onOptionClick:C,options:e},e[0].key);if(e.length>0){const t=e[0];return(0,A.jsx)(Lt.DesktopButton,{isActive:t.key===(null==d?void 0:d.key),name:t.key,onClick:C,children:t.label},t.key)}return null})}),(0,A.jsxs)(_t.ModalToggle,{isDisabled:n,onClick:()=>w(!0),children:[(0,A.jsx)(z.A,{iconName:"app/round-trip_light",rotateAngle:90,h:16}),(0,A.jsx)("span",{children:null==d?void 0:d.label})]}),x&&(0,A.jsx)(N.A,{title:O,mobileLayout:"docked",onClose:j,children:_.map(e=>{let t=e.infoText,n=e.key,r=e.label;return(0,A.jsxs)(Lt.TouchButton,{isActive:n===(null==d?void 0:d.key),name:n,onClick:C,children:[r,!!t&&(0,A.jsx)(Lt.OptionDescription,{children:t})]},n)})})]}):null},qt="\n  @media ".concat(w.J.phone,", ").concat(w.J.tablet," {\n    color: ").concat(y.yS,";\n    display: inline;\n    font-family: ").concat(U.vP,";\n    font-size: ").concat(l.nJ,";\n  }\n"),Kt={ResultsWrapper:x.Ay.div.withConfig({componentId:"hp__sc-1lo42w6-0"})(["margin:8px 0 30px;position:relative;z-index:1;@media ",",","{margin:0 0 20px;}"],w.J.phone,w.J.tablet),Heading:x.Ay.span.withConfig({componentId:"hp__sc-1lo42w6-1"})(["color:",";display:block;font-size:",";font-weight:bold;font-family:",";"," @media ",",","{font-weight:normal;&:after{content:' | ';}}"],y.yS,l.Uk,U.Kh,qt,w.J.tablet,w.J.phone),MobileButtons:x.Ay.div.withConfig({componentId:"hp__sc-1lo42w6-2"})(["align-items:center;display:flex;gap:12px;justify-content:center;margin-top:5px;@media ","{gap:24px;}@media ","{display:block;}"],w.J.tablet,w.J.desktop),SubHeading:x.Ay.div.withConfig({componentId:"hp__sc-1lo42w6-3"})(["font-size:",";font-family:",";line-height:150%;@media ",",","{display:inline-block;}"],l.nJ,U.vP,w.J.tablet,w.J.phone),ResultsLabel:x.Ay.span.withConfig({componentId:"hp__sc-1lo42w6-4"})(["color:",";",""],y.O9,qt),ResultsCount:x.Ay.b.withConfig({componentId:"hp__sc-1lo42w6-5"})(["color:",";",""],y.dL,qt),Text:x.Ay.div.withConfig({componentId:"hp__sc-1lo42w6-6"})(["",""],qt)},Vt=e=>{let t=e.isLoading,n=e.totalResults;const r=(0,f.B)().explore,o=(0,c.Nh)().activePsb,i=r.results,a=void 0===i?"":i,l=r.offer,s=void 0===l?"":l,u=r.offers,p=void 0===u?"":u,d="".concat(n," ").concat(1===n?s:p);return(0,A.jsxs)(Kt.ResultsWrapper,{children:[(0,A.jsxs)(Kt.Text,{children:[(null==o?void 0:o.tabLabel)&&(0,A.jsx)(Kt.Heading,{children:o.tabLabel}),(0,A.jsx)(Kt.SubHeading,{children:(0,A.jsxs)("div",{children:[!t&&(0,A.jsxs)(Kt.ResultsLabel,{children:[a," "]}),(0,A.jsx)(Kt.ResultsCount,{children:d}),(0,A.jsx)(Tt,{})]})})]}),(0,A.jsxs)(Kt.MobileButtons,{children:[(0,A.jsx)(It,{isDisabled:!n,isLoading:t}),(0,A.jsx)(Wt,{isDisabled:!n})]})]})},Yt=e=>{var t;let n=e.data,r=e.error,o=e.isLoading,i=e.meta;const a=(0,c.Nh)(),l=a.activePsb,s=a.filters,u=(0,f.B)().explore.noMatchWarning,p=i&&!i["has-matching-results"];
1if(null==l||!l.allowExploreNavigation)return(0,A.jsx)(_e.Ay,{error:new g.A("Page not found",{status:404})});if(r)return(0,A.jsx)(_e.Ay,{error:r});const d=!(null===(t=l.filterUi)||void 0===t||null===(t=t.list)||void 0===t||!t.length);return(0,A.jsxs)(_t.Wrapper,{children:[(0,A.jsx)(Ct,{isLoading:o}),(0,A.jsxs)(_t.Body,{children:[null!=s&&s.length?(0,A.jsx)(_t.Sidebar,{children:(0,A.jsx)(yt,{filters:s,isDisabled:!(null!=n&&n.length),isLoading:o})}):(0,A.jsx)(A.Fragment,{children:d&&(0,A.jsx)(_t.Sidebar,{children:(0,A.jsx)(S,{amount:4,columns:1,rects:[{x:0,y:0,rx:8,ry:8,width:150,height:16},{x:0,y:50,rx:8,ry:8,width:150,height:16},{x:0,y:90,rx:8,ry:8,width:300,height:16},{x:0,y:130,rx:8,ry:8,width:300,height:16},{x:0,y:190,rx:0,ry:0,width:300,height:2}],uniqueKey:"filter",viewBox:"0 0 300 200"})})}),(0,A.jsx)(_t.Main,{children:o||n.length?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Vt,{isLoading:o,totalResults:null==n?void 0:n.length}),p&&(0,A.jsxs)(_t.WarningInfo,{children:[(0,A.jsx)(I.A,{iconName:"app/alert",mainColor:y.$Z,inline:!0,h:20,rotateAngle:180}),(0,A.jsx)("p",{children:u})]}),(0,A.jsx)(Ce,{columns:d?3:4,data:n})]}):(0,A.jsx)(_e.Ay,{error:"noResults"})})]})]})};n(33110),n(3362),n(42762),n(58335);var Zt=n(53601),Gt=n(78316);function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach(function(t){en(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function en(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tn="Explore Service";const nn=new class{constructor(){this.log=h.yN,this.requestHeader={"Content-Type":"application/json",Accept:"application/x-ndjson"}}async fetchExploreStream(e){let t=e.userAuthToken,n=e.endpoints,r=e.payload;const o=(0,Gt.c$)({path:"/explore",endpoints:n});this.log("fetchExploreStream url",o);const i={method:"POST",headers:Xt(Xt({},this.requestHeader),{},{"User-Authorization":t}),body:JSON.stringify(r)};try{this.log("Requesting Explore data stream",o);const e=await fetch(o,i);if(!e.ok){const t=await(0,Ne.B1)("ExploreService::fetchExploreStream()",tn,e,!1);return Promise.reject(t)}return e.body?(this.log("ExploreService stream received successfully."),e.body):(this.log("ExploreService::fetchExploreStream res body missing"),Promise.reject(new Error("Response body is null.")))}catch(e){if(e instanceof g.A)return Promise.reject(e);const t=(0,Ne.tS)("ExploreService::fetchExploreStream()",tn,e,o,!1);return Promise.reject(t)}}};function rn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return on(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?on(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function on(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const an=e=>{if(""===e.trim())return{meta:null,offers:null};try{const t=JSON.parse(e);return{meta:t.meta||null,offers:Array.isArray(t.offers)?t.offers:null}}catch(t){return console.error("Failed to parse NDJSON line:",e,t),{meta:null,offers:null}}};function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ln(Object(n),!0).forEach(function(t){sn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const un=()=>{const e=(0,p.UK)().pirateSearchBoxes,t=(0,i.useLocation)(),n=(0,d.A)(),y=n.title,b=n.id,x=(0,f.B)().explore.pageTitle,w=(0,r.useMemo)(()=>(0,m.tm)(t.search),[t.search]),j=e.find(e=>e.partnerId===w.partner),O=j?(0,u.x7)(w,j):{},C=(0,r.useMemo)(()=>(0,s.RU)(t.search,null==j?void 0:j.filterUi),[t.search]),_=(0,r.useMemo)(()=>{var e;const t=w.adults,n=w.childAges,r=w.destination,o=w.directOnly,i=w.from,c=w.isOneWay,s=w.origin,u=w.sorting,p=w.to,d=(0,a.tM)(),f=d===l.xr?"mobile":d,h={"braze-consent":"false",destination:(null==r?void 0:r.value)||{},device:"web",filters:C,from:i,market:b,platform:f||"desktop",travellers:{adults:t,"child-ages":n},vertical:(null==j?void 0:j.vertical)||void 0};var m,g;(!c&&p&&(h.to=p),null!=s&&s.value&&(h.origin=null==s?void 0:s.value),null!=j&&j.form.includes("directOnly")&&(h["only-direct-flights"]=o?"true":"false"),null!=j&&null!==(e=j.sortingOptions)&&void 0!==e&&e.length)&&(u&&j.sortingOptions.some(e=>e.key===u)?h.sorting=u:null!==(m=j.sortingOptions[0])&&void 0!==m&&m.key&&(h.sorting=null===(g=j.sortingOptions[0])||void 0===g?void 0:g.key));return h},[w,C]),k=(e=>{const t=(0,Zt.A$)().getToken,n=(0,p.UK)().endpoints,o=rn((0,r.useState)([]),2),i=o[0],a=o[1],l=rn((0,r.useState)(!0),2),c=l[0],s=l[1],u=rn((0,r.useState)(null),2),d=u[0],f=u[1],h=rn((0,r.useState)(null),2),m=h[0],y=h[1],b=(0,r.useRef)(null),v=(0,r.useRef)(null),x=(0,r.useCallback)(async e=>{const t=new TextDecoder;let n="";const r=async()=>{if(!e)return;const o=await e.read(),i=o.done,l=o.value;if(i)return;n+=t.decode(l,{stream:!0});const c=n.split("\n");n=c.pop()||"";for(const e of c){const t=an(e),n=t.meta,r=t.offers;n&&y(n),r&&a(r)}await r()};await r()},[]),w=(0,r.useCallback)(e=>{if(e instanceof Error&&"AbortError"===e.name)return;let t;t=e instanceof g.A||e instanceof Error?e:new Error("Hooks::useExploreData(): An unknown error occurred"),f(t),s(!1)},[]),j=(0,r.useCallback)(async e=>{a([]),f(null),s(!0),y(null);try{const r=await t(),o=(await nn.fetchExploreStream({userAuthToken:r,endpoints:n,payload:e})).getReader();b.current=o,await x(o),b.current===o&&s(!1)}catch(e){w(e)}},[t,n,x,w]);return(0,r.useEffect)(()=>{const t=()=>{b.current&&(b.current.cancel("New fetch triggered or component unmounted"),b.current=null)};if(!e)return f(new g.A("Request payload is empty.",{status:400})),s(!1),a([]),y(null),t;const n=JSON.stringify(e);return n!==v.current?(t(),v.current=n,j(e),t):void 0},[e,j]),{data:i,error:d,isLoading:c,meta:m}})(_),S=k.data,I=k.isLoading,P=k.error,T=k.meta,D=(0,r.useMemo)(()=>S&&_?S.map(e=>!1===e["own-deal"]?cn(cn({},e),{},{dateFrom:_.from||void 0,dateTo:_.to||void 0}):e):[],[S,_]);(0,h.OA)("Render explore page");const E="".concat(x," | ").concat(y);return(0,A.jsxs)(c.l4,{exploreParams:w,filterConfig:(null==T?void 0:T.filters)||{},psbForm:O,children:[(0,A.jsx)(o.mg,{title:E}),(0,A.jsx)(v.wn,{wide:!0,children:(0,A.jsx)(Yt,{data:D,error:P,isLoading:I,meta:T})})]})}}}]);

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.