PageSourceSearch

https://www.teletextholidays.co.uk/_next/static/chunks/pages/serp-75b2835ac4395428.js

js teletextholidays.co.uk collected 2026-10-02 11:52:34 UTC 81,873 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2448],{42870:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/serp",function(){return l(5900)}])},5900:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return ea},default:function(){return er}});var s=l(85893),n=l(67294),a=l(5152),r=l.n(a),i=l(1230),o=l(71818),d=l(52091),c=l(45007),x=l(9257),p=l(91296),u=l.n(p),m=l(9526),h=l(62221),v=l(18318),f=l(40764);let g=e=>{let{skletonValue:t,localFilteredHotelName:l,searchedHotels:n,hotelselected:a,selectedHotel:r}=e,i=(0,c.I0)(),o=e=>(null==r?void 0:r.toLowerCase())===e||(null==l?void 0:l.toLowerCase())===e;return(0,s.jsx)(s.Fragment,{children:t&&(null==l?void 0:l.length)>0&&(null==n?void 0:n.length)<1?(0,s.jsxs)(h.Z,{spacing:1,className:"mt-[5px]",children:[(0,s.jsx)(m.Z,{variant:"rounded",className:"h-[40px]"}),(0,s.jsx)(m.Z,{variant:"rounded",className:"h-[40px]"}),(0,s.jsx)(m.Z,{variant:"rounded",className:"h-[40px]"}),(0,s.jsx)(m.Z,{variant:"rounded",className:"h-[40px]"})]}):(null==n?void 0:n.length)>0&&(null==l?void 0:l.length)>0?null==n?void 0:n.map((e,t)=>{var l;return(0,s.jsx)("div",{className:"truncate text-wrap px-[10px] py-[8px] my-[5px] rounded-lg font-normal cursor-pointer font-openSans text-[14px] text-[#565656] \n                ".concat(o(null==e?void 0:null===(l=e.hotelname)||void 0===l?void 0:l.toLowerCase())?"active-values":"values"),onClick:()=>{a(null==e?void 0:e.hotelname),i((0,f.M6)(!1))},children:null==e?void 0:e.hotelname},t)}):(null==l?void 0:l.length)>0&&(0,s.jsx)("span",{className:"text-[#f87c56]",children:"No Hotels Found"})})};var b=e=>{let{completeFilterResponse:t,setSelectedHotel:l,selectedHotel:a,defaultExpanded:r,resetFilters:i}=e,o=(0,c.I0)(),p=(0,c.v9)(x.Pr),[m,h]=(0,n.useState)(p),[f,b]=(0,n.useState)([]),[j,y]=(0,n.useState)(!0),[w,N]=(0,n.useState)(null==r||r);(0,n.useEffect)(()=>{h(p),p&&k(p)},[p]);let k=(0,n.useCallback)(u()(e=>{var l,s,n;b(null==t?void 0:null===(n=t.searchHotelFilters)||void 0===n?void 0:null===(s=n.hotels)||void 0===s?void 0:null===(l=s.filter(t=>t.hotelname.toLowerCase().includes(e.toLowerCase())))||void 0===l?void 0:l.sort((t,l)=>{let s=e.toLowerCase();return t.hotelname.toLowerCase().indexOf(s)-l.hotelname.toLowerCase().indexOf(s)}))},1e3),[m]);return(0,n.useEffect)(()=>{setTimeout(()=>{(null==m?void 0:m.length)>0&&y(!1)},2e3)},[m]),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"font-Inter",children:(0,s.jsxs)("div",{className:"max-xl:bg-white max-xl:border max-xl:border-gray-100 max-xl:rounded-lg max-xl:shadow-lg",children:[(0,s.jsxs)("div",{className:"accordion-header serp-filter-headings px-4 md:px-0 ".concat(w?"pt-[14px] pb-[6px]":"pt-3 pb-3"," cursor-pointer flex items-center justify-between"),onClick:()=>{N(!w)},children:[(0,s.jsx)("span",{children:"Hotel name"}),(0,s.jsx)(d.RiI,{className:"text-gray-500 transition-transform duration-200 ".concat(w?"rotate-180":"")})]}),(0,s.jsx)("div",{className:"accordion-content overflow-hidden transition-all duration-300 ease-in-out ".concat(w?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsx)("div",{className:"pt-0 pb-[16px] px-4 md:px-0",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{type:"text",placeholder:"Search hotel name ...",className:"py-[10px] my-2 px-[12px] w-full text-[16px] text-sliver shadow-none bg-white rounded-md border-[#5b2d8e] border-[1px] pr-10",value:a||m,onChange:e=>{e.preventDefault();let{value:t}=e.target;h(t),k(t),l(t),t||o((0,x.bq)(""))}}),((null==a?void 0:a.length)>0||(null==p?void 0:p.length)>0)&&(0,s.jsx)("button",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-jaffa rounded-full w-5 h-5 flex items-center justify-center text-sm",onClick:()=>{l(""),o((0,x.bq)("")),h(""),b([]),y(!0)},children:(0,s.jsx)(v.Jvf,{className:"text-xl"})})]}),(0,s.jsx)(g,{skletonValue:j,localFilteredHotelName:m,searchedHotels:f,hotelselected:e=>{l(e),k(e),o((0,x.bq)(e))},selectedHotel:a})]})})})]})})})},j=l(81376);let y=[5,4,3,2,1],w=e=>{let{rating:t,isEnabled:l,isSelected:n,selectRating:a}=e,r=(0,c.I0)();return(0,s.jsxs)("div",{className:"flex items-center gap-[8px] mb-[6px] font-poppins ".concat(l?"cursor-pointer  ":"opacity-50 cursor-not-allowed"),onClick:()=>{l&&(a(t),r((0,f.M6)(!1)))},children:[(0,s.jsx)("div",{className:"relative w-[16px] h-[16px]",children:(0,s.jsx)("div",{className:"w-[16px] h-[16px] rounded flex items-center justify-center flex-shrink-0\n            ".concat(n&&l?"bg-[#5B2D8E] border-0":"bg-white border-[1.5px] border-[#a5a5a5]"," border-solid transition-colors"),children:n&&l&&(0,s.jsx)("svg",{className:"w-[12px] h-[12px] text-white",f
1ill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4",d:"M5 13l4 4L19 7"})})})}),(0,s.jsx)("div",{className:"flex items-center gap-[2px] ml-1",children:Array.from({length:t}).map((e,t)=>(0,s.jsx)(j.DQk,{className:"w-[14px] h-[14px] text-[#FFC107]"},t))})]})};var N=e=>{let{availableRatings:t,defaultExpanded:l,isLoading:a}=e,r=(0,c.v9)(x.Qt),i=(0,c.I0)(),[o,p]=(0,n.useState)(!0),u=e=>{let t=[...r],l=t.indexOf(e.toString());-1!==l?t.splice(l,1):t.push(e.toString()),i((0,x.nD)(t))},m=(null==t?void 0:t.map(String))||[];return(0,s.jsx)("div",{className:"font-Inter",children:(0,s.jsxs)("div",{className:"max-xl:bg-white max-xl:border max-xl:border-gray-100 max-xl:rounded-lg max-xl:shadow-lg",children:[(0,s.jsxs)("div",{className:"accordion-header serp-filter-headings capitalize px-4 md:px-0 ".concat(o?"pt-[14px] pb-[6px]":"pt-3 pb-3"," cursor-pointer flex items-center justify-between "),onClick:()=>{p(!o)},children:[(0,s.jsx)("span",{children:"Star rating"}),(0,s.jsx)(d.RiI,{className:"text-gray-500 transition-transform duration-200 ".concat(o?"rotate-180":"")})]}),(0,s.jsx)("div",{className:"accordion-content overflow-hidden transition-all duration-300 ease-in-out ".concat(o?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsx)("div",{className:"pt-0 pb-[16px] px-4 md:px-0",children:a?y.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-[8px] mb-[12px]",children:[(0,s.jsx)("div",{className:"w-[18px] h-[18px] bg-gray-300 animate-pulse rounded-md"}),(0,s.jsx)("div",{className:"flex items-center gap-[2px] ml-1",children:Array.from({length:e},(e,t)=>(0,s.jsx)(j.DQk,{className:"w-[16px] h-[16px] text-gray-300 animate-pulse"},t))})]},t)):(0,s.jsx)(s.Fragment,{children:y.map(e=>(0,s.jsx)(w,{rating:e,isEnabled:m.includes(String(e)),isSelected:null==r?void 0:r.includes(e.toString()),selectRating:u},e))})})})]})})},k=e=>{let{availableResorts:t,openResorts:l,handleOpenAndCloseResortsFilters:a,inAllFilters:r,setIsApplyResorts:i,filters:o,defaultExpanded:p}=e,u=(0,c.v9)(x.aW),m=(0,c.I0)(),h=e=>{let t=[...u];t.filter(t=>t.id===e.id).length>0?t=t.filter(t=>t.id!==e.id):t.push(e),m((0,x.zA)(t))},[v,g]=(0,n.useState)(null==p||p);return(0,s.jsxs)("div",{className:"font-Inter",children:[" ",(0,s.jsx)("div",{className:"max-xl:bg-white max-xl:border max-xl:border-gray-100 max-xl:rounded-lg max-xl:shadow-lg",children:(0,s.jsxs)("div",{className:"custom-accordion",children:[(0,s.jsxs)("div",{className:"accordion-header serp-filter-headings px-4 md:px-0 ".concat(v?"pt-[14px] pb-[6px]":"pt-3 pb-3"," cursor-pointer flex items-center justify-between"),onClick:()=>{g(!v)},children:[(0,s.jsx)("span",{children:" Resorts"}),(0,s.jsx)(d.RiI,{className:"text-gray-500 transition-transform duration-200 ".concat(v?"rotate-180":"")})]}),(0,s.jsx)("div",{className:"accordion-content overflow-hidden transition-all duration-300 ease-in-out ".concat(v?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsx)("div",{className:"pt-0 pb-[16px] px-4 md:px-0",children:t&&t.length>0&&t.slice(0,10).map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-[7px] mb-[7px] cursor-pointer px-0",onClick:()=>{h(e),m((0,f.M6)(!1))},children:[(0,s.jsx)("div",{className:"w-[16px] h-[16px] cursor-pointer rounded flex-shrink-0\n                        ".concat(u.filter(t=>t.id===e.id).length>0?"bg-[#5B2D8E] border-0":"bg-white border-[1.5px] border-[#a5a5a5]","\n                        border-solid transition-colors flex items-center justify-center"),children:u.filter(t=>t.id===e.id).length>0&&(0,s.jsx)("svg",{className:"w-[12px] h-[12px] text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4",d:"M5 13l4 4L19 7"})})}),(0,s.jsx)("span",{className:"serp-filter-text capitalize ml-1",children:null==e?void 0:e.name})]},t))})})]})})]})},S=l(69554),I=l.n(S),C=e=>{let{availablePriceRange:t,defaultExpanded:l,isLoading:a}
1=e,r=(0,c.I0)(),o=(0,c.v9)(x.kg),[p,m]=(0,n.useState)([]),[h,v]=(0,n.useState)(null==l||l),g=(0,n.useRef)(null);(0,n.useEffect)(()=>{t&&m(t)},[t]);let b=(0,n.useCallback)(u()(e=>{r((0,x.zD)(e))},1e3),[r]),j=e=>{if(!g.current||!t)return null;let l=g.current.getBoundingClientRect(),s=Math.max(0,Math.min(1,(e-l.left)/l.width)),n=t[1]-t[0];return Math.round(t[0]+s*n)},y=(e,l)=>{let s;if(p&&!(p.length<2)){if(0===e){let e=Math.min(l,p[1]-10);s=[Math.max(t[0],e),p[1]]}else{let e=Math.max(l,p[0]+10);s=[p[0],Math.min(t[1],e)]}m(s),b(s),r((0,f.M6)(!1))}},w=e=>t=>{t.preventDefault(),t.stopPropagation();let l=t=>{let l=j(t.clientX);null!==l&&y(e,l)},s=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",l),document.addEventListener("mouseup",s)},N=e=>t=>{t.stopPropagation();let l=t=>{let l=j(t.touches[0].clientX);null!==l&&y(e,l)},s=()=>{document.removeEventListener("touchmove",l),document.removeEventListener("touchend",s)};document.addEventListener("touchmove",l),document.addEventListener("touchend",s)};(0,n.useEffect)(()=>{(null==o?void 0:o.length)>0?m(o):m(t)},[o,t]),(0,n.useEffect)(()=>{(null==t?void 0:t.length)>0&&(null==o?void 0:o.length)>0&&t[0]===o[0]&&t[1]===o[1]&&r((0,x.zD)([]))},[o,t]);let k=e=>{if(!t||0===t.length)return 0;let l=t[1]-t[0];return(e-t[0])/l*100},S=e=>"".concat((0,i.commaSeperatePrice)((0,i.formatRoundedPrice)(e)));return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"jsx-215c55635a0107d3 font-Inter",children:(0,s.jsxs)("div",{className:"jsx-215c55635a0107d3 max-xl:bg-white max-xl:border max-xl:border-gray-100 max-xl:rounded-lg max-xl:shadow-lg",children:[(0,s.jsxs)("div",{onClick:()=>{v(!h)},className:"jsx-215c55635a0107d3 "+"accordion-header serp-filter-headings capitalize px-4 md:px-0 ".concat(h?"pt-[14px] pb-[0px]":"pt-3 pb-3"," cursor-pointer flex items-center justify-between "),children:[(0,s.jsx)("span",{className:"jsx-215c55635a0107d3",children:"Price per person"}),(0,s.jsx)(d.RiI,{className:"text-gray-500 transition-transform duration-200 ".concat(h?"rotate-180":"")})]}),(0,s.jsx)("div",{className:"jsx-215c55635a0107d3 "+"accordion-content overflow-hidden transition-all duration-300 ease-in-out ".concat(h?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsx)("div",{className:"jsx-215c55635a0107d3 pt-0 pb-0 px-4 md:px-0",children:a?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"jsx-215c55635a0107d3 h-5 animate-pulse"})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"jsx-215c55635a0107d3 w-[99%] px-2 py-4",children:(0,s.jsxs)("div",{ref:g,onClick:e=>{if(e.target.classList.contains("slider-thumb"))return;let t=j(e.clientX);if(null!==t&&p)y(Math.abs(t-p[0])<Math.abs(t-p[1])?0:1,t)},className:"jsx-215c55635a0107d3 relative h-[4px] bg-gray-200 rounded-full cursor-pointer",children:[(0,s.jsx)("div",{style:{background:"#5b2d8e",left:"".concat(k(p[0]),"%"),right:"".concat(100-k(p[1]),"%")},className:"jsx-215c55635a0107d3 absolute h-full rounded-full pointer-events-none"}),(0,s.jsx)("div",{style:{left:"".concat(k(p[0]),"%")},onMouseDown:w(0),onTouchStart:N(0),className:"jsx-215c55635a0107d3 slider-thumb absolute top-1/2 -translate-y-1/2 -translate-x-1/2 w-[16px] h-[16px] bg-white border-[3px] border-[#5b2d8e] rounded-full cursor-grab active:cursor-grabbing z-10 shadow-sm"}),(0,s.jsx)("div",{style:{left:"".concat(k(p[1]),"%")},onMouseDown:w(1),onTouchStart:N(1),className:"jsx-215c55635a0107d3 slider-thumb absolute top-1/2 -translate-y-1/2 -translate-x-1/2 w-[16px] h-[16px] bg-white border-[3px] border-[#5b2d8e] rounded-full cursor-grab active:cursor-grabbing z-10 shadow-sm"})]})}),p&&p.length>0&&(0,s.jsxs)("div",{className:"jsx-215c55635a0107d3  flex items-center justify-between mt-2 pb-3 px-1 serp-filter-text p",children:[(0,s.jsxs)("span",{className:"jsx-215c55635a0107d3",children:["\xa3",S(p[0]),"pp"]}),(0,s.jsxs)("span",{className:"jsx-215c55635a0107d3",children:["\xa3",S(p[1]),"pp"]})]})]})})})]})}),(0,s.jsx)(I(),{id:"215c55635a0107d3",children:".slider-thumb.jsx-215c55635a0107d3:hover{-webkit-box-shadow:0 0 0 8px rgba(124,58,237,.16);-moz-box-shadow:0 0 0 8px rgba(124,58,237,.16);box-shadow:0 0 0 8px rgba(124,58,237,.16)}.slider-thumb.jsx-215c55635a0107d3:active{-webkit-box-shadow:0 0 0 12px rgba(124,58,237,.16);-moz-box-shadow:0 0 0 12px rgba(124,58,237,.16);box-shadow:0 0 0 12px rgba(124,58,237,.16)}"})]})},E=l(11308),D=l(58533),R=l(11163),L=l(94911),T=e=>{let{item:t}
1=e,l=(0,n.useRef)(null),[a,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=()=>{let e=l.current;if(e){e.style.webkitLineClamp="unset",e.style.display="block";let t=parseFloat(window.getComputedStyle(e).lineHeight)||24,l=window.innerWidth<768,s=e.scrollHeight;e.style.webkitLineClamp="",e.style.display="",r(s>t*(l?1:4))}};e(),window.addEventListener("resize",e);let t=setTimeout(e,100);return()=>{window.removeEventListener("resize",e),clearTimeout(t)}},[t.Title]),(0,s.jsxs)("div",{className:"th-container rich-text-content py-5",children:[(0,s.jsx)("h2",{dangerouslySetInnerHTML:{__html:t.title}}),(0,s.jsx)("p",{ref:l,dangerouslySetInnerHTML:{__html:t.content},className:"!text-base transition-all duration-300 ease-in-out ".concat(i?"":"line-clamp-1 md:line-clamp-4")}),a&&(0,s.jsx)("a",{onClick:()=>o(!i),className:"cursor-pointer",children:i?"Read Less":"Read More"})]})},F=l(52486),H=l(27484),_=l.n(H),A=l(45341),P=l(96567),B=e=>{var t,l;let{noResultsFound:a,notFoundHotelName:r}=e,i=(0,c.v9)(f.Qw),o=(0,R.useRouter)(),d=0,x=0;null==i||null===(t=i.guest_rooms)||void 0===t||t.forEach(e=>{d+=e.adults,x+=e.children});let p=(0,n.useRef)(new Set);return(0,n.useEffect)(()=>{var e,t,l,s,n;let r=null==o?void 0:null===(e=o.query)||void 0===e?void 0:e.searchId;if(!i||!r||!a||p.current.has(r))return;p.current.add(r);let c={event:"serp_no_results_found",searchId:r,destinationOrHotel:null==i?void 0:null===(l=i.destination)||void 0===l?void 0:null===(t=l.displayName)||void 0===t?void 0:t.split(",")[0],departureAirports:null==i?void 0:null===(s=i.departureAirports)||void 0===s?void 0:s.map(e=>null==e?void 0:e.airportName),departureDate:_()(null==i?void 0:i.departureDate).format("DD MMM YYYY"),howLong:(null==i?void 0:i.howLong)>1?"".concat(null==i?void 0:i.howLong," Nights"):"".concat(null==i?void 0:i.howLong," Night"),rooms:(null==i?void 0:null===(n=i.guest_rooms)||void 0===n?void 0:n.length)||0,total_adults:d,total_children:x};window.dataLayer=window.dataLayer||[],window.dataLayer.push(c)},[i,null==o?void 0:null===(l=o.query)||void 0===l?void 0:l.searchId,a]),(0,s.jsx)(s.Fragment,{children:a?(0,s.jsx)("div",{className:"th-container",children:(0,s.jsx)("div",{className:"font-InterRegular py-5 px-5 sm:px-8 rounded-xl bg-[#F0EDF5] border border-[#D8D0E5] w-full shadow-[0_1px_6px_rgba(91,45,142,0.08)]",children:(0,s.jsxs)("div",{className:"sm:max-w-[550px] sm:mx-auto",children:[(0,s.jsxs)("div",{className:"flex items-start gap-2 mb-1.5",children:[(0,s.jsx)(A.l3d,{className:"text-xl text-jaffa shrink-0 mt-[2px]"}),(0,s.jsx)("p",{className:"text-[15px] sm:text-[17px] font-bold text-[#1a1a2e]  leading-snug text-left",children:"Limited availability online for these dates."})]}),(0,s.jsx)("p",{className:"text-[13px] sm:text-[14px] text-[#4a4a5a] leading-relaxed mb-4 text-left pl-[28px]",children:"Our experts can access more options than the website — call and we'll find you the right holiday."}),(0,s.jsx)("div",{className:"border-t border-[#D8D0E5] pt-4",children:(0,s.jsx)(P.Z,{showIcon:!0,iconSize:22,iconClassName:"text-white shrink-0",dataTrack:"phone_click_serp_no_results",className:"flex items-center justify-center gap-2 bg-[#5B2D8E] text-white rounded-md px-5 py-3 text-[18px] font-bold font-Inter tracking-wide mx-auto"})})]})})}):(0,s.jsxs)("div",{className:"font-InterRegular py-5 px-5 sm:px-8 rounded-xl bg-[#F0EDF5] border border-[#D8D0E5] w-full shadow-[0_1px_6px_rgba(91,45,142,0.08)]",children:[(0,s.jsxs)("div",{className:"flex items-start gap-2 mb-1.5",children:[(0,s.jsx)(A.l3d,{className:"text-xl text-jaffa shrink-0 mt-[2px]"}),(0,s.jsxs)("p",{className:"text-[15px] sm:text-[17px] font-bold text-[#1a1a2e]  leading-snug text-left",children:[(0,s.jsx)("span",{className:"capitalize",children:r})," is in high demand — availability for your dates is limited."]})]}),(0,s.jsx)("p",{className:"text-[13px] sm:text-[14px] text-[#4a4a5a] leading-relaxed mb-3 text-left pl-[28px]",children:"Our travel experts can often find availability or a hand-picked alternative that's just as good — sometimes better."}),(0,s.jsx)("div",{className:"flex items-center gap-3 pl-[28px] mb-3",children:(0,s.jsx)(P.Z,{showIcon:!0,iconSize:18,iconClassName:"text-[#FFE500] shrink-0",dataTrack:"phone_click_serp_hotel_not_found",className:"inline-flex items-center gap-2 bg-[#5B2D8E] text-white rounded-md px-5 py-2 text-[15px] font-bold font-Inter tracking-wide"})}),(0,s.jsx)("div",{className:"border-t border-[#D8D0E5] pt-3 pl-[28px]",children:(0,s.jsx)("p",{className:"text-[13px] text-[#4a4a5a]",children:"↓ Or explore our handpicked alternatives below"})})]})})},M=l(95615),z=e=>{let{resetFilters:t}=e;return(0,c.v9)(M.ly),(0,n.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:" th-container flex flex-col items-center justify-center pt-10 pb-4 text-center",children:[(0,s.jsxs)("div",{children:["Sorry, we couldn’t find the holiday you’re looking for based on the filtered criteria. ",(0,s.jsx)("br",{}),"Please call our Teletext Destination Experts, we will do all the legwork to get you the best deals!"]}),(0,s.jsx)("div",{className:"mt-3",children:(0,s.jsx)(P.Z,{})}),(0,s.jsx)("a",{className:"bg-jaffa text-white rounded-lg cursor-pointer py-[6px] px-[12px] mt-4",onClick:()=>{t()},children:"Clear Filters"})]})})},O=e=>{let{setOpenSortDropDwom:t,openSortDropDwom:l,resetFilters:n}=e,a=(0,c.v9)(x.s4),r=(0,c.I0)(),i=e=>{var t;r((0,x.zR)((null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.value)||e))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between xl:hidden py-3 px- border-b-[2px] max-xl:hidden",children:[(0,s.jsx)("div",{className:"my-[14px] text-openSans font-semibold serp-filter-titles",children:"Sort by"}),(0,s.jsx)("button",{onClick:()=>
1t(!l),className:"w-[40px] h-[40px] cursor-pointer flex items-center justify-center",children:(0,s.jsx)(v.Jvf,{className:"!  size-10"})})]}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("div",{className:"".concat(1==a&&"bg-[#f3f0ff]"," py-[8px] pl-4 hover:bg-[#f3f0ff] cursor-pointer"),onClick:()=>{t(!1),i(1),r((0,f.M6)(!1))},children:[(0,s.jsx)("div",{className:"".concat(1==a?"absolute right-[32px]":"mr-[23px]"),children:1==a?(0,s.jsx)(v.jI1,{className:"w-[20px] h-[20px] text-[#565656]"}):""}),(0,s.jsx)("span",{className:"serp-filter-text capitalize cursor-pointer",children:"Most Popular"})]}),(0,s.jsxs)("div",{className:"".concat(2==a&&"bg-[#f3f0ff]"," py-[8px] pl-4 hover:bg-[#f3f0ff] cursor-pointer"),onClick:()=>{t(!1),i(2),r((0,f.M6)(!1))},children:[(0,s.jsx)("div",{className:"".concat(2==a?"absolute right-[32px]":"mr-[23px]"),children:2==a?(0,s.jsx)(v.jI1,{className:"w-[20px] h-[20px] text-[#565656]"}):""}),(0,s.jsx)("span",{className:"serp-filter-text capitalize cursor-pointer",children:"Price (Lowest first)"})]}),(0,s.jsxs)("div",{className:"".concat(3==a&&"bg-[#f3f0ff]"," py-[8px] pl-4 hover:bg-[#f3f0ff] cursor-pointer"),onClick:()=>{t(!1),i(3),r((0,f.M6)(!1))},children:[(0,s.jsx)("div",{className:"".concat(3==a?"absolute right-[32px]":"mr-[23px]"),children:3==a?(0,s.jsx)(v.jI1,{className:"w-[20px] h-[20px] text-[#565656]"}):""}),(0,s.jsx)("span",{className:"serp-filter-text capitalize cursor-pointer",children:"Price (Highest first)"})]}),(0,s.jsxs)("div",{className:"".concat(4==a&&"bg-[#f3f0ff]"," py-[8px] pl-4 hover:bg-[#f3f0ff] cursor-pointer"),onClick:()=>{t(!1),i(4),r((0,f.M6)(!1))},children:[(0,s.jsx)("div",{className:"".concat(4==a?"absolute right-[32px]":"mr-[23px]"),children:4==a?(0,s.jsx)(v.jI1,{className:"w-[20px] h-[20px] text-[#565656]"}):""}),(0,s.jsx)("span",{className:"serp-filter-text capitalize cursor-pointer",children:"Star Rating (Lowest first)"})]}),(0,s.jsxs)("div",{className:"".concat(5==a&&"bg-[#f3f0ff]"," py-[8px] pl-4 hover:bg-[#f3f0ff] cursor-pointer"),onClick:()=>{t(!1),i(5),r((0,f.M6)(!1))},children:[(0,s.jsx)("div",{className:"".concat(5==a?"absolute right-[32px]":"mr-[23px]"),children:5==a?(0,s.jsx)(v.jI1,{className:"w-[20px] h-[20px] text-[#565656]"}):""}),(0,s.jsx)("span",{className:"serp-filter-text capitalize cursor-pointer",children:"Star Rating (Highest first)"})]})]})]})},Y=l(57514),W=e=>{var t,l;let{boardBases:a,completeFilterResponse:r,defaultExpanded:i,isLoading:o}=e,p=(0,c.v9)(x.Ao),u=(0,c.I0)(),[m,h]=(0,n.useState)(null==i||i),v=e=>{let t=[...p],l=t.indexOf(e);-1!==l?t.splice(l,1):t.push(e),u((0,x.AR)(t)),u((0,f.M6)(!1))},g=(null==r?void 0:null===(l=r.searchHotelFilters)||void 0===l?void 0:null===(t=l.boardBasis)||void 0===t?void 0:t.map(String))||[],b=(null==a?void 0:a.slice(1).map(e=>({id:String(e.boardBasisId),name:e.boardBasisName,code:e.boardBasisCode})))||[];return(0,s.jsx)("div",{className:"font-Inter",children:(0,s.jsxs)("div",{className:"max-xl:bg-white max-xl:border max-xl:border-gray-100 max-xl:rounded-lg max-xl:shadow-lg",children:[(0,s.jsxs)("div",{className:"accordion-header serp-filter-headings px-4 md:px-0 ".concat(m?"pt-[14px] pb-[6px]":"pt-3 pb-3"," cursor-pointer flex items-center justify-between font-montserrat"),onClick:()=>{h(!m)},children:[(0,s.jsx)("span",{children:"Board basis"}),(0,s.jsx)(d.RiI,{className:"text-gray-500 transition-transform duration-200 ".concat(m?"rotate-180":"")})]}),(0,s.jsx)("div",{className:"accordion-content overflow-hidden transition-all duration-300 ease-in-out ".concat(m?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsx)("div",{className:"pt-0 pb-[16px] px-4 md:px-0",children:o?(0,s.jsx)("div",{className:"flex flex-wrap gap-[10px]",children:b.map(e=>(0,s.jsx)("div",{className:"w-[110px] h-[38px] bg-gray-300 animate-pulse rounded-full"},e.id))}):(0,s.jsx)("div",{className:"flex flex-wrap gap-[10px]",children:b.map(e=>{let t=g.includes(e.id),l=null==p?void 0:p.includes(e.id);return(0,s.jsx)("button",{type:"button",className:"px-[10px] py-[4px] rounded-full serp-filter-text  capitalize transition-colors duration-200 border\n                      ".concat(t&&l?"bg-[#5B2D8E] !text-white border-[#5B2D8E]":t?"bg-white text-[#3D3D4E] border-[#d1d5db] ":"bg-white text-[#b0b0b0] border-[#e5e7eb] cursor-not-allowed opacity-50"),disabled:!t,onClick:()=>t&&v(e.id),children:e.name},e.id)})})})})]})})},Z=l(86204);function q(e){let{open:t,onClose:l,data:n,children:a}=e;return(0,s.jsx)(s.Fragment,{children:t&&(0,s.jsxs)("div",{className:"fixed inset-0 z-[1300] flex flex-col bg-white",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between  text-black px-4 py-3 shadow-md",children:[(0,s.jsxs)("p",{className:"text-lg md:text-xl font-semibold",children:[n," holidays foun
1d"]}),(0,s.jsx)("button",{onClick:()=>l(!1),"aria-label":"close",className:"p-2 hover:bg-blue-700 rounded-full",children:(0,s.jsx)(Z._0w,{className:"text-2xl md:text-3xl"})})]}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto",children:a})]})})}var X=l(389),K=e=>{let{availableProvinces:t,defaultExpanded:l}=e,a=(0,c.v9)(x.MA)||[],r=(0,c.I0)(),i=e=>{let t=[...a];t.filter(t=>t.id===e.id).length>0?t=t.filter(t=>t.id!==e.id):t.push(e),r((0,x.VB)(t))},[o,p]=(0,n.useState)(null==l||l);return(0,s.jsxs)("div",{className:" ",children:[" ",(0,s.jsx)("div",{className:"font-Inter",children:(0,s.jsxs)("div",{className:"max-xl:bg-white max-xl:border max-xl:border-gray-100 max-xl:rounded-lg max-xl:shadow-lg",children:[(0,s.jsxs)("div",{className:"accordion-header serp-filter-headings px-4 md:px-0 ".concat(o?"pt-[14px] pb-[6px]":"pt-3 pb-3"," cursor-pointer flex items-center justify-between"),onClick:()=>{p(!o)},children:[(0,s.jsx)("span",{children:"Destinations"}),(0,s.jsx)(d.RiI,{className:"text-gray-500 transition-transform duration-200 ".concat(o?"rotate-180":"")})]}),(0,s.jsx)("div",{className:"accordion-content overflow-hidden transition-all duration-300 ease-in-out ".concat(o?"max-h-[1300px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsx)("div",{className:"pt-0 pb-[16px] px-4 md:px-0",children:t&&t.length>0&&t.sort((e,t)=>e.name.localeCompare(t.name)).map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-[7px] mb-[7px] cursor-pointer px-0",onClick:()=>{i(e),r((0,f.M6)(!1))},children:[(0,s.jsx)("div",{className:"w-[16px] h-[16px] rounded flex-shrink-0 ".concat(a.some(t=>t.id===e.id)?"bg-[#5B2D8E] border-0":"bg-white border-[1.5px] border-[#a5a5a5]"," border-solid transition-colors flex items-center justify-center"),children:a.some(t=>t.id===e.id)&&(0,s.jsx)("svg",{className:"w-[12px] h-[12px] text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4",d:"M5 13l4 4L19 7"})})}),(0,s.jsx)("span",{className:"serp-filter-text capitalize ml-1",children:null==e?void 0:e.name})]},t))})})]})})]})},U=e=>{let{availableHolidayFacilities:t,defaultExpanded:l,isLoading:a,type:r}=e,i=(0,c.v9)(x.ed)||[],o=(0,c.v9)(x.dr)||[],p=(0,c.I0)(),u="facilities"===r?"FacilityTagItemId":"HolidayTypeId",m="facilities"===r?"FacilityTagItem":"HolidayType",h=e=>{let t=[...i];t=t.some(t=>t[u]===e[u])?t.filter(t=>t[u]!==e[u]):[...t,e],p((0,x.Vs)(t))},v=e=>{let t=[...o];t=t.some(t=>t[u]===e[u])?t.filter(t=>t[u]!==e[u]):[...t,e],p((0,x.yj)(t))},g=(e,t)=>{"holidayType"===e?h(t):"facilities"===e&&v(t)},[b,j]=(0,n.useState)(null==l||l);return(0,s.jsxs)("div",{className:"",children:[" ",(0,s.jsx)("div",{className:"font-Inter",children:(0,s.jsxs)("div",{className:"max-xl:bg-white max-xl:border max-xl:border-gray-100 max-xl:rounded-lg max-xl:shadow-lg",children:[(0,s.jsxs)("div",{className:"accordion-header serp-filter-headings px-4 md:px-0 ".concat(b?"pt-[14px] pb-[6px]":"pt-3 pb-3"," cursor-pointer flex items-center justify-between "),onClick:()=>{j(!b)},children:[(0,s.jsx)("span",{children:"holidayType"===r?(0,s.jsx)(s.Fragment,{children:" Holiday Type"}):(0,s.jsx)(s.Fragment,{children:"Hotel facilities"})}),(0,s.jsx)(d.RiI,{className:"text-gray-500 transition-transform duration-200 ".concat(b?"rotate-180":"")})]}),(0,s.jsx)("div",{className:"accordion-content overflow-hidden transition-all duration-300 ease-in-out ".concat(b?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsx)("div",{className:"pt-0 pb-[16px] px-4 md:px-0",children:a?(0,s.jsx)(s.Fragment,{children:"holidayType"===r?(0,s.jsx)("div",{className:"flex flex-wrap gap-[5px] ",children:Array.from({length:5},(e,t)=>(0,s.jsx)("div",{className:"w-[80px] h-[30px] bg-gray-300 animate-pulse rounded-full"},t))}):Array.from({length:5},(e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-[8px] mb-[12px] px-4",children:[(0,s.jsx)("div",{className:"w-[18px] h-[18px] border-none bg-gray-300 animate-pulse rounded-md"}),(0,s.jsx)("div",{className:"w-[120px] h-[14px] bg-gray-300 animate-pulse rounded-md"})]},t))}):(0,s.jsx)(s.Fragment,{children:"holidayType"===r?(0,s.jsx)("div",{className:"flex flex-wrap gap-[5px] ",children:t&&t.length>0&&t.sort((e,t)=>
1((null==e?void 0:e[m])||"").localeCompare((null==t?void 0:t[m])||"")).map((e,t)=>{let l=i.some(t=>t[u]===e[u]);return(0,s.jsx)("button",{type:"button",className:"px-[10px] py-[4px] rounded-full serp-filter-text capitalize transition-colors duration-150 border cursor-pointer\n                                ".concat(l?"bg-[#5B2D8E] !text-white border-[#5B2D8E]":"bg-white text-[#3D3D4E] border-[#d1d5db]"),onClick:()=>{g(r,e),p((0,f.M6)(!1))},children:null==e?void 0:e[m]},t)})}):(0,s.jsx)("div",{className:"px-0",children:t&&t.length>0&&t.sort((e,t)=>((null==e?void 0:e[m])||"").localeCompare((null==t?void 0:t[m])||"")).map((e,t)=>{let l=o.some(t=>t[u]===e[u]);return(0,s.jsxs)("div",{className:"flex items-center gap-[7px] mb-[7px] cursor-pointer",onClick:()=>{g(r,e),p((0,f.M6)(!1))},children:[(0,s.jsx)("div",{className:"w-[16px] h-[16px] rounded flex items-center justify-center flex-shrink-0\n                            ".concat(l?"bg-[#5B2D8E] border-0":"bg-white border-[1.5px] border-[#a5a5a5]"," border-solid transition-colors"),children:l&&(0,s.jsx)("svg",{className:"w-[12px] h-[12px] text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4",d:"M5 13l4 4L19 7"})})}),(0,s.jsx)("span",{className:"serp-filter-text capitalize",children:null==e?void 0:e[m]})]},t)})})})})})]})})]})},V=l(74807),G=l(34821),J=l(37094),Q=()=>{let e=(0,c.v9)(M.ly)||"0330 190 0001";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"hidden md:flex items-center justify-between gap-4 rounded-[14px] px-5 py-4 bg-asfarYellow text-[#350f68] shadow-xl",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0 bg-[#350f68]",children:(0,s.jsx)(d.DNl,{className:"text-[16px] text-white"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-[16px] font-extrabold font-montserrat mb-[2px]",children:"Some of our best deals aren't shown online."}),(0,s.jsx)("div",{className:"text-[14px] ",children:"33,000+ customers found a better price by calling us in 2026."}),(0,s.jsx)("div",{className:"text-[14px] font-extrabold font-montserrat mt-1",children:"Call for our best price"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col items-end justify-between self-stretch flex-shrink-0",children:[(0,s.jsx)("div",{className:"flex gap-[6px] text-[10px]",children:(0,s.jsxs)("span",{className:"rounded-full px-[9px] py-[3px] font-bold font-montserrat bg-[#5b2d8e] text-white flex items-center gap-1",style:{border:"1px solid rgba(255,255,255,0.2)"},children:[(0,s.jsx)("img",{src:(0,i.getHeroImageSrc)("https://strapi-teletext-s3-bucket.s3.eu-west-1.amazonaws.com/price_match_promise_1_92f8b772a9.webp"),alt:"Price Match Promise",className:"h-[14px] w-auto"}),"Price Match Promise*"]})}),(0,s.jsx)("a",{suppressHydrationWarning:!0,href:"tel:".concat(e),children:(0,s.jsx)("span",{className:"text-[22px] font-black  font-montserrat tracking-tight leading-none",suppressHydrationWarning:!0,children:e})})]})]}),(0,s.jsxs)("div",{className:"md:hidden flex flex-col items-center rounded-[14px] px-5 py-5 bg-asfarYellow",children:[(0,s.jsx)("div",{className:"text-[16px] font-extrabold text-[#1a1a2e] font-montserrat leading-tight text-center",children:"Some of our best deals aren't shown online."}),(0,s.jsx)("div",{className:"text-[14px] text-[#1a1a2e] text-center mt-3 leading-snug",children:"33,000+ customers found a better price by calling us in 2026."}),(0,s.jsx)("div",{className:"text-[15px] font-extrabold text-[#5b2d8e] font-montserrat text-center mt-2 leading-snug",children:"Call for our best price"}),(0,s.jsx)("a",{suppressHydrationWarning:!0,href:"tel:".concat(e),className:"mt-4 bg-[#5b2d8e] hover:bg-[#4a2574] text-white font-extrabold font-montserrat px-6 py-3 rounded-[10px] text-[18px] cursor-pointer whitespace-nowrap tracking-wide","data-track":"phone_click",children:(0,s.jsx)("span",{className:"text-white font-extrabold font-montserrat",suppressHydrationWarning:!0,children:e})})]})]})},$=l(39332);let ee=[{icon:(0,s.jsx)("img",{src:(0,i.getHeroImageSrc)("https://strapi-teletext-s3-bucket.s3.eu-west-1.amazonaws.com/price_match_promise_1_92f8b772a9.webp"),alt:"Price Match Promise",className:"w-5 h-5 shrink-0 object-contain"}),title:"Price Match Promise*",subtitle:"We aim to beat any price"},{icon:(0,s.jsx)("img",{src:(0,i.getHeroImageSrc)("https://strapi-teletext-s3-bucket.s3.eu-west-1.amazonaws.com/TTA_a18b3df972.webp"),alt:"TTA",className:"w-5 h-5 shrink-0 object-contain"}),title:"TTA & Trust Protected",subtitle:"All bookings protected"},{icon:(0,s.jsx)("img",{src:(0,i.getHeroImageSrc)("https://strapi-teletext-s3-bucket.s3.eu-west-1.amazonaws.com/low_deposits_149894395a.webp"),alt:"Low Deposits",className:"w-5 h-5 shrink-0 object-contain"}),title:"Low Deposits",subtitle:"Secure from \xa349pp"},{icon:(0,s.jsx)("img",{src:(0,i.getHeroImageSrc)("https://strapi-teletext-s3-bucket.s3.eu-west-1.amazonaws.com/30_years_expertise_8c82f5b7bb.webp"),alt:"30 Years Expertise",className:"w-5 h-5 shrink-0 object-contain"}),title:"30 Years' Expertise",subtitle:"Expert travel knowledge"},{icon:(0,s.jsx)("img",{src:(0,i.getHeroImageSrc)("https://strapi-teletext-s3-bucket.s3.eu-west-1.amazonaws.com/atol_w_4aad5e1912.webp"),alt:"ATOL Protected",className:"w-5 h-5 shrink-0 object-contain"}),title:"Package Protection",subtitle:"Always ATOL Protected"}],et=e=>{let{rating:t,id:l,className:n=""}=e,a=Math.floor(t),r=t-a,i="goldGrad_".concat(l),o="starPath_".concat(l),d="partialClip_".concat(l);return(0,s.jsxs)("svg",{className:n,width:"100",height:"19",viewBox:"0 0 100 19",fill:"none",children:[(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:i,x1:"0%",y1:"0%",x2:"100%",y2:"110%",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:"#FFF2A0"}),(0,s.jsx)("stop",{offset:"40%",stopColor:"#F7C800"}),(0,s.jsx)("stop",{offset:"100%",stopColor:"#D08800"})]}),(0,s.jsx)("path",{id:o,d:"M12 2l2.9 8.8H24l-7.5 5.5 2.9 8.8L12 19.6l-7.4 5.5 2.9-8.8L0 10.8h9.1L12 2z"}),r>0&&(0,s.jsx)("clipPath",{id:d,children:(0,s.jsx)("rect",{x:"0",y:"0",width:Math.round(20*r),height:"24"})})]}),[0,1,2,3,4].map(e=>(0,s.jsx)("g",{transform:"translate(".concat(19*e,", 0) scale(.79)"),children:e<a?(0,s.jsx)("use",{href:"#".concat(o),fill:"url(#".concat(i,")")}):e===a&&r>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("use",{href:"#".concat(o),fill:"rgba(255,255,255,0.2)"}),(0,s.jsx)("g",{clipPath:"url(#".concat(d,")"),children:(0,s.jsx)("use",{href:"#".concat(o),fill:"url(#".concat(i,")")})})]}):(0,s.jsx)("use",{href:"#".concat(o),fill:"url(#".concat(i,")")})},e))]})};var el=()=>{let e=(0,$.usePathname)(),t=null==e?void 0:e.includes("/serp"),[l,a]=(0,n.use
1State)(4.9);return(0,n.useEffect)(()=>{(0,L.getGlobalData)().then(e=>{var t,l;let s=null==e?void 0:null===(l=e.USPs)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.Title;if(s){let e=parseFloat(s);isNaN(e)||a(e)}})},[]),(0,s.jsxs)("div",{className:"rounded-xl py-4  pl-[24px]  pr-[14px] sm:p-[18px] font-Inter mb-[25px]",style:{background:"linear-gradient(135deg, #350F68, #5B2D8E 55%, #7040AA)",boxShadow:"0 4px 20px rgba(91,45,142,.3)"},children:[(0,s.jsxs)("div",{className:"hidden md:flex items-center justify-between gap-7 mb-3",children:[(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)("p",{className:"text-[17px] font-black text-white font-montserrat leading-[1.25] mb-1.5",children:["44,000+ customers have reviewed us.",(0,s.jsx)("br",{}),(0,s.jsx)("span",{className:"text-[#F5F000]",children:"We're rated Excellent & Exceptional."})]})}),(0,s.jsxs)("div",{className:"flex items-center gap-5 shrink-0",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)(et,{rating:4.7,id:"tp_desk",className:"mb-[5px]"}),(0,s.jsxs)("div",{className:"text-[20px] font-black text-white font-montserrat leading-none tracking-tight",children:["4.7"," ",(0,s.jsx)("span",{className:"text-[13px] font-semibold text-white/55",children:"/5"})]}),(0,s.jsx)("div",{className:"text-[9px] text-white/55 mt-0.5",children:"29,000+ Trustpilot reviews"})]}),(0,s.jsx)("div",{className:"w-px h-11 bg-white/20 shrink-0"}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)(et,{rating:l,id:"feefo_desk",className:"mb-[5px]"}),(0,s.jsxs)("div",{className:"text-[20px] font-black text-white font-montserrat leading-none tracking-tight",children:[l," ",(0,s.jsx)("span",{className:"text-[13px] font-semibold text-white/55",children:"/5"})]}),(0,s.jsx)("div",{className:"text-[9px] text-white/55 mt-0.5",children:"15,000+ Feefo reviews \uD83C\uDFC5"})]})]}),t&&(0,s.jsxs)("div",{className:"shrink-0 text-right",children:[(0,s.jsx)("p",{className:"text-[11px] text-white/65 mb-[5px]",children:"Seen a better price? Call us."}),(0,s.jsx)(P.Z,{className:"text-[24px] font-black text-[#F5F000] font-montserrat tracking-tight leading-none"}),(0,s.jsxs)("div",{className:"flex items-center gap-1 justify-end mt-[3px]",children:[(0,s.jsx)("span",{className:"w-[5px] h-[5px] rounded-full bg-[#4ADE80] inline-block"}),(0,s.jsx)("span",{className:"text-[10px] text-white/50",children:"Answered within 5 rings"})]})]})]}),(0,s.jsxs)("div",{className:"md:hidden mb-3",children:[(0,s.jsxs)("p",{className:"text-[15px] font-black text-white font-montserrat leading-[1.25] mb-1",children:["44,000+ customers have reviewed us.",(0,s.jsx)("br",{}),(0,s.jsx)("span",{className:"text-[#F5F000]",children:"We're rated Excellent & Exceptional."})]}),(0,s.jsxs)("div",{className:"flex items-center gap-4 mb-3",children:[(0,s.jsxs)("div",{className:"flex-1 text-center",children:[(0,s.jsx)(et,{rating:4.7,id:"tp_mob",className:"mx-auto mb-1"}),(0,s.jsxs)("div",{className:"text-[18px] font-black text-white font-montserrat leading-none tracking-tight",children:["4.7"," ",(0,s.jsx)("span",{className:"text-[11px] font-semibold text-white/55",children:"/5"})]}),(0,s.jsx)("div",{className:"text-[8px] text-white/55 mt-0.5",children:"29,000+ Trustpilot reviews"})]}),(0,s.jsx)("div",{className:"w-px h-10 bg-white/20 shrink-0"}),(0,s.jsxs)("div",{className:"flex-1 text-center",children:[(0,s.jsx)(et,{rating:l,id:"feefo_mob",className:"mx-auto mb-1"}),(0,s.jsxs)("div",{className:"text-[18px] font-black text-white font-montserrat leading-none tracking-tight",children:[l," ",(0,s.jsx)("span",{className:"text-[11px] font-semibold text-white/55",children:"/5"})]}),(0,s.jsx)("div",{className:"text-[8px] text-white/55 mt-0.5",children:"15,000+ Feefo reviews \uD83C\uDFC5"})]})]}),t&&(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("p",{className:"text-[11px] text-white/65",children:"Seen a better price? Call us."}),(0,s.jsxs)("div",{className:"text-right",children:[(0,s.jsx)(P.Z,{className:"text-[20px] font-black text-[#F5F000] font-montserrat tracking-tight leading-none"}),(0,s.jsxs)("div",{className:"flex items-center gap-1 justify-end mt-[2px]",children:[(0,s.jsx)("span",{className:"w-[5px] h-[5px] rounded-full bg-[#4ADE80] inline-block"}),(0,s.jsx)("span",{className:"text-[9px] text-white/50",children:"Answered within 5 rings"})]})]})]})]}),(0,s.jsx)("div",{className:"hidden md:flex items-center gap-0 border-t border-white/15 pt-3",children:ee.map((e,t)=>(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3.5 ".concat(t<ee.length-1?"border-r border-white/15":""," ").concat(0===t?"pl-0":""),children:[e.icon,(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[11px] font-extrabold text-white font-montserrat leading-[1.2]",children:e.title}),(0,s.jsx)("p",{className:"text-[9.5px] text-white/55 mt-[1px]",children:e.subt
1itle})]})]},t))}),(0,s.jsxs)("div",{className:"md:hidden border-t border-white/15 pt-3 -mx-4 px-4",style:{overflow:"hidden"},children:[(0,s.jsx)("style",{children:"\n          @keyframes serpUspScroll {\n            0% { transform: translateX(0); }\n            100% { transform: translateX(-50%); }\n          }\n        "}),(0,s.jsx)("div",{style:{display:"flex",animation:"serpUspScroll 40s linear infinite",width:"max-content"},children:[0,1].map(e=>(0,s.jsx)("div",{className:"flex gap-0 shrink-0",children:ee.map((t,l)=>(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 border-r border-white/15",children:[t.icon,(0,s.jsxs)("div",{className:"whitespace-nowrap",children:[(0,s.jsx)("p",{className:"text-[11px] font-extrabold text-white font-montserrat leading-[1.2]",children:t.title}),(0,s.jsx)("p",{className:"text-[9px] text-white/55 mt-[1px]",children:t.subtitle})]})]},"".concat(e,"-").concat(l)))},e))})]})]})};let es=r()(()=>l.e(3363).then(l.bind(l,93363)),{loadableGenerated:{webpack:()=>[93363]},ssr:!1,loading:()=>(0,s.jsx)("div",{className:"h-[250px] rounded-[14px] bg-[#f5f2fb]","aria-hidden":"true"})}),en=r()(()=>l.e(4658).then(l.bind(l,4658)),{loadableGenerated:{webpack:()=>[4658]},ssr:!1});var ea=!0,er=e=>{var t,a,r,p,u,m,h,g,j;let{serpPageData:y,promoPods:w}=e,{xl:S}=(0,F.O)(),{query:I}=(0,R.useRouter)(),H=(0,c.I0)(),A=(0,c.v9)(f.bH),P=(0,c.v9)(f.Qw),M=(0,n.useMemo)(()=>{let e=Array.isArray(null==I?void 0:I.searchId)?I.searchId[0]:null==I?void 0:I.searchId,t=Array.isArray(null==I?void 0:I.searchid)?I.searchid[0]:null==I?void 0:I.searchid,l=null!=e?e:t;return l?String(l).trim():null},[null==I?void 0:I.searchId,null==I?void 0:I.searchid]),Z=(0,c.v9)(f.dk),$=(0,c.v9)(e=>(0,f.We)(e,M)),ee=(0,n.useMemo)(()=>{if(null==$?void 0:$.searchParams)return $.searchParams;let e=M?String(M).toLowerCase():null;if(!e||!Array.isArray(Z))return null;let t=Z.find(t=>String((null==t?void 0:t.searchId)||"").toLowerCase()===e);return(null==t?void 0:t.searchParams)||null},[M,Z,$]),et=(0,n.useRef)(),ea=(0,n.useRef)(),er=(0,n.useRef)(),ei=(0,n.useRef)(),eo=(0,n.useRef)(),ed=(0,n.useRef)(),ec=(0,n.useRef)(),ex=(0,n.useRef)(),ep=(0,n.useRef)(),eu=(0,n.useRef)(null),em=(0,n.useRef)(),eh=(0,n.useRef)(),[ev,ef]=(0,n.useState)(!1),[eg,eb]=(0,n.useState)(!1),[ej,ey]=(0,n.useState)(!1),[ew,eN]=(0,n.useState)(!1),[ek,eS]=(0,n.useState)(!1),[eI,eC]=(0,n.useState)(!1),[eE,eD]=(0,n.useState)(!1),[eR,eL]=(0,n.useState)(!1),[eT,eF]=(0,n.useState)(!1),[eH,e_]=(0,n.use
1State)(!1),eA=(0,c.v9)(f.zU),eP=(0,c.v9)(f.C2),eB=(0,c.v9)(f.yI),eM=(0,c.v9)(f.l),ez=(0,c.v9)(f.nN),[eO,eY]=(0,n.useState)(0),eW=(0,c.v9)(f.H$),eZ=(0,c.v9)(x.Qt),eq=(0,c.v9)(x.aW),eX=(0,c.v9)(x.MA),eK=(0,c.v9)(x.Pr),eU=(0,c.v9)(x.kg),eV=(0,c.v9)(x.Ao),eG=(0,c.v9)(x.s4),eJ=(0,c.v9)(x.ed),eQ=(0,c.v9)(x.dr),e$=(0,c.v9)(f.TR),e0=(0,c.v9)(f.cF),e1=(0,c.v9)(f.He),[e5,e2]=(0,n.useState)(!1),[e3,e4]=(0,n.useState)(null),[e8,e6]=(0,n.useState)(!1),[e9,e7]=(0,n.useState)(!1),[te,tt]=(0,n.useState)(!1),[tl,ts]=(0,n.useState)(!1),[tn,ta]=(0,n.useState)(!1),[tr,ti]=(0,n.useState)(!1),[to,td]=(0,n.useState)(!1),[tc,tx]=(0,n.useState)(!1),[tp,tu]=(0,n.useState)(!1),[tm,th]=(0,n.useState)(!1),[tv,tf]=(0,n.useState)(!1),[tg,tb]=(0,n.useState)([]),[tj,ty]=(0,n.useState)(""),[tw,tN]=(0,n.useState)([]),[tk,tS]=(0,n.useState)([]),[tI,tC]=(0,n.useState)([]),[tE,tD]=(0,n.useState)([]),[tR,tL]=(0,n.useState)([]),[tT,tF]=(0,n.useState)([]),[tH,t_]=(0,n.useState)(""),[tA,tP]=(0,n.useState)(!1),[tB,tM]=(0,n.useState)((null==P?void 0:null===(t=P.destination)||void 0===t?void 0:t.displayName)||null),[tz,tO]=(0,n.useState)(!1),tY=(0,c.v9)(f.Hd),[tW,tZ]=(0,n.useState)(!0),[tq,tX]=(0,n.useState)(!1),[tK,tU]=(0,n.useState)(!1),[tV,tG]=(0,n.useState)(!1),tJ=(0,n.useRef)(null),tQ=(0,c.v9)(f.VI),[t$,t0]=(0,n.useState)(!1),[t1,t5]=(0,n.useState)(),t2=(0,c.v9)(x.ZJ),[t3,t4]=(0,n.useState)(!1),[t8,t6]=(0,n.useState)(!1),[t9,t7]=(0,n.useState)(!0);(0,c.v9)(f.mh);let le=(0,c.v9)(f.Xl),lt=(0,c.v9)(f.fR),[ll,ls]=(0,n.useState)(!1),ln=(0,n.useRef)(eP),la=(0,n.useRef)(ee);ln.current=eP,la.current=ee,(0,V.Z)(),(0,n.useEffect)(()=>{t4(!0);let e=e=>{tJ.current&&!tJ.current.contains(e.target)&&tG(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[]);let lr=async(e,t,l,s)=>{try{var n,a,r,i,o,d;let c=(null==I?void 0:I.promo)==="true",p=(null==I?void 0:I.ft)==="true",u=await (0,L.filterHotels)({...null!=M&&{searchId:M},...e,isPromotion:c,sortByPopularity:null!==(n=null==e?void 0:e.sortByPopularity)&&void 0!==n?n:1,boardBasis:(null==e?void 0:e.boardBasis)?null==e?void 0:e.boardBasis:[],freeTransfersOnly:p,...e1&&{isLowestPriceFirst:e1},slr:tQ});if(u){if(lv(!0),H((0,f.uS)(!1)),H((0,f.Xk)(!0)),s){window.dataLayer=window.dataLayer||[];let e=new Date,t=String(e.getDate()).padStart(2,"0")+String(e.getMonth()+1).padStart(2,"0")+String(e.getFullYear()).slice(-2)+String(e.getHours()).padStart(2,"0")+String(e.getMinutes()).padStart(2,"0");window.dataLayer.push({event:"search_results_filterAPI",search_count:"searchId=".concat(M,":Count=").concat(null!==(a=null==u?void 0:u.cnt)&&void 0!==a?a:0,":TimeStamp=").concat(t)})}(null==u?void 0:u.cnt)>0?(H((0,x.Zn)(!0)),e2(!0),5===tQ&&H((0,f.nY)(null==u?void 0:u.res))):(e2(!1),tX(!0),((null==e?void 0:e.hotelRating)&&(null==e?void 0:null===(r=e.hotelRating)||void 0===r?void 0:r.length)>0||(null==e?void 0:e.destinations)&&(null==e?void 0:null===(i=e.destinations)||void 0===i?void 0:i.length)>0||(null==e?void 0:e.hotelName)&&(null==e?void 0:e.hotelName)!==""||(null==e?void 0:e.price)&&(null==e?void 0:null===(o=e.price)||void 0===o?void 0:o.length)>0)&&(e2(!1),e4(!1))),H((0,f.HC)(null==u?void 0:u.cnt)),tO(null==u?void 0:u.isAltSearch),t6(null==u?void 0:u.isHotelOnly),l&&(ls(!0),H((0,f.Zc)(structuredClone(u))),H((0,f.Hc)(null==u?void 0:null===(d=u.searchRequestParams)||void 0===d?void 0:d.slr))),t?(H((0,f.nY)([...eB,...null==u?void 0:u.res])),H((0,f.oW)(eA+1)),H((0,f.Dv)(ez+(null==u?void 0:u.res.length))),eY(Math.random())):(H((0,f.nY)(null==u?void 0:u.res)),H((0,f.oW)(2)),H((0,f.Dv)(null==u?void 0:u.res.length)))}else e2(!1),H((0,f.nY)([])),tX(!0),H((0,f.Xk)(!0))}catch(e){console.error("Failed to load filter results",e)}};(0,n.useEffect)(()=>{(null==eW?void 0:eW.searchHotelFilters)&&tZ(!1),(null==eW?void 0:eW.isAltSearch)!==void 0&&(tO(eW.isAltSearch),t6(eW.isHotelOnly)),H((0,f._7)(!1))},[eW,I]),(0,n.useEffect)(()=>{tY&&e0&&!M&&(H((0,x.Zn)(!0)),H((0,f.tr)({...P,destination:null,departureAirports:[],selectedDepartureAirportsGroups:[],departureDate:null,returnDate:null,howLong:7,isDatesFlexible:0,guest_rooms:[{adults:2,children:0,childAges:[],infants:0}]})),H((0,f.uS)(!1)));
1let e=null==eW?void 0:eW.searchRequestParams;e&&async function(){await lp(e),H((0,f.uS)(!1))}()},[eW]);let li=(0,n.useMemo)(()=>({hotelRating:eZ,destinations:null==eq?void 0:eq.map(e=>e.id.toString()),provinces:null==eX?void 0:eX.map(e=>e.id.toString()),hotelName:eK,price:eU,sortByPopularity:eG,boardBasis:eV,holidayTypeIds:null==eJ?void 0:eJ.map(e=>parseInt(null==e?void 0:e.HolidayTypeId,10)),facilityTagIds:null==eQ?void 0:eQ.map(e=>parseInt(null==e?void 0:e.FacilityTagItemId,10))}),[eZ,eq,eK,eU,eG,eV,eX,eJ,eQ]),lo=(0,n.useMemo)(()=>JSON.stringify(li),[li]),ld=()=>{window.scrollTo({top:0,behavior:"smooth"})};(0,n.useEffect)(()=>{var e,t,l,s,n,a;tb([...null==li?void 0:li.hotelRating]),ty(null==li?void 0:li.hotelName),tN(null==li?void 0:li.price),tS([...null==li?void 0:li.destinations]),tD([...null==li?void 0:li.boardBasis]),tL([...null==li?void 0:li.holidayTypeIds]),tF([...null==li?void 0:li.facilityTagIds]),tC([...null==li?void 0:li.provinces]),(null==li?void 0:li.holidayTypeIds.join(""))!==tR.join("")&&tm&&!eT&&(ld(),th(!1)),(null==li?void 0:li.facilityTagIds.join(""))!==tT.join("")&&tv&&!eH&&(ld(),tf(!1)),(null==li?void 0:li.hotelRating.join(""))!==tg.join("")&&e9&&!ej&&(ld(),e7(!1)),(null==li?void 0:li.boardBasis.join(""))!==tE.join("")&&tp&&!eg&&(ld(),tu(!1)),(null==li?void 0:li.hotelName)!==tj&&te&&!eI&&(ld(),tt(!1)),(null==li?void 0:null===(e=li.price)||void 0===e?void 0:e.join(""))!==(null==tw?void 0:tw.join(""))&&to&&!eR&&(ld(),td(!1)),(null==li?void 0:null===(t=li.destinations)||void 0===t?void 0:t.join(""))!==(null==tk?void 0:tk.join(""))&&tn&&!ew&&(ld(),ta(!1)),(null==li?void 0:null===(l=li.provinces)||void 0===l?void 0:l.join(""))!==(null==tI?void 0:tI.join(""))&&tr&&!ek&&(ld(),ti(!1)),((null==li?void 0:null===(s=li.destinations)||void 0===s?void 0:s.join(""))!==(null==tk?void 0:tk.join(""))||(null==li?void 0:null===(n=li.price)||void 0===n?void 0:n.join(""))!==(null==tw?void 0:tw.join(""))||(null==li?void 0:li.hotelName)!==tj||(null==li?void 0:li.hotelRating.join(""))!==tg.join("")||(null==li?void 0:li.boardBasis.join(""))!==tE.join("")||(null==li?void 0:li.holidayTypeIds.join(""))!==tR.join("")||(null==li?void 0:li.facilityTagIds.join(""))!==tT.join("")||(null==li?void 0:null===(a=li.provinces)||void 0===a?void 0:a.join(""))!==(null==tI?void 0:tI.join("")))&&tl&&!ev&&(ld(),ts(!1)),(null==li?void 0:li.sortByPopularity)&&tc&&!eE&&(ld(),tx(!1)),ev?document.body.classList.add("max-[1239px]:!overflow-hidden"):document.body.classList.remove("max-[1239px]:!overflow-hidden")},[ej,eI,ew,eR,eE,ev,eg,eT,eH,ek]),(0,n.useEffect)(()=>{if(!M)return;let e={current:null},t={current:0},l=!0,s=()=>new Promise(e=>{let t=Date.now(),l=()=>{var s;let n=ln.current;(null==n?void 0:n.cnt)&&(null==n?void 0:null===(s=n.res)||void 0===s?void 0:s.length)>0?e(n):Date.now()-t>=2e3?e(null):setTimeout(l,100)};l()}),n=()=>{e.current&&(clearInterval(e.current),e.current=null)},a=async()=>{if(l){t.current+=3e3;try{let e=await (0,L.getSearchStatus)(M),l=t.current>=12e3;if(e.resultsAvailable){n(),lr({pageNumber:1,preferredHotelkey:Number(null==I?void 0:I.prefKey)},!1,!0,!0);return}if(!e.resultsAvailable&&l){let e=la.current;e&&H((0,f.tr)(e)),n(),(null==I?void 0:I.sbt)||(tX(!0),H((0,f.Xk)(!0)));return}}catch(e){console.error("fetchSearchStatus error:",e)}}},r=async()=>{try{let l=null;if(l=await s()){let{cnt:s,res:n}=l;if(s<10&&5===tQ)e.current=setInterval(a,3e3);else{var t;H((0,f.nY)(n)),H((0,f.oW)(2)),H((0,f.Dv)(n.length)),tO(l.isAltSearch),t6(l.isHotelOnly),tM((null===(t=l.searchRequestParams)||void 0===t?void 0:t.dn)||null),e2(!0),H((0,f.Xk)(!0)),lv(!0),H((0,f.uS)(!1)),H((0,f.Zc)(structuredClone(l))),H((0,f.kb)(null))}}else e.current=setInterval(a,3e3),H((0,f.kb)(null))}catch(e){console.error("fetchHotels error:",e)}};return(null==eB?void 0:eB.length)?H((0,f.Xk)(!0)):(lg(),r()),()=>{l=!1,n()}},[M]);let lc=async()=>{try{let{getAllAirports:e}=await Promise.all([l.e(3769),l.e(3899)]).then(l.bind(l,43899));return await e()}catch(e){throw console.error("Error fetching all airports:",e),e}},lx=async e=>{let t={matchedAirports:[],matchedAirportGroups:[]};try{if(!(null==e?void 0:e.fromair)||0===e.fromair.length)return t;let l=await lc();if(!(null==l?void 0:l.items)||0===l.items.length)return t;let s=new Set(e.fromair.map(e=>e.trim().toUpperCase())),n=l.items.filter(e=>{var t;return s.has(null===(t=e.airportCode)||void 0===t?void 0:t.trim().toUpperCase())}),a=l.items.filter(t=>{var l;return!!t.isGroup&&(null==e?void 0:null===(l=e.deptgrps)||void 0===l?void 0:l.includes(t.airportCode))});return{matchedAirports:n,matchedAirportGroups:a}}catch(e){return console.error("Error fetching or filtering airports:",e),t}},lp=async e=>{var t,l,s,n,a,r;if(!M||!e)return null;let{matchedAirports:i,matchedAirportGroups:o}=await lx(e),d={...P,destination:{airports:(null==e?void 0:null===(t=e.toair)||void 0===t?void 0:t.map(e=>({airportCode:e})))||[],...(null==e?void 0:e.islabelsearch)&&{labelID:null==e?void 0:e.labelDestinationId},slug:(null==e?void 0:e.destslug)||null,isLabelSearch:(null==e?void 0:e.islabelsearch)||!1,labelDestinationId:null!==(n=null==e?void 0:e.labelDestinationId)&&void 0!==n?n:null,displayName:(null==e?void 0:e.dn)||null,hotelKey:"HOTEL"===e.srcType?null==e?void 0:e.prefHotelkey:null,...(null==e?void 0:e.prefHotelkey)>0&&!(null==I?void 0:I.prefResortKey)&&{isHotelSearch:!0,hotelProvinceId:null==e?void 0:e.srcTypeId},locationId:(null==e?void 0:e.islabelsearch)?"0":String(null==e?void 0:e.prefResortId),...(null==e?void 0:e.islabelsearch)&&{labelName:(null==e?void 0:e.dn)||null,countryId:(null==e?void 0:e.srcTypeId)||null,labelID:null!==(a=null==e?void 0:e.labelDestinationId)&&void 0!==a?a:null,isCountrySearch:(null==e?void 0:e.srcType)!=="TT_FAVOURITES"&&(null==e?void 0:e.islabelsearch),isLabelSearch:(null==e?void 0:e.islabelsearch)||!1,isProvinceSearch:!1,isHotelSearch:!1,isLocationeSearch:!1},...(null==e?void 0:e.srcType)==="PROVINCE"&&{isProvinceSearch:!0,provinceId:null==e?void 0:e.srcTypeId},...(null==e?void 0:e.srcType)==="COUNTRY"&&{isCountrySearch:!0,countryId:null==e?void 0:e.srcTypeId},...(null==e?void 0:e.srcType)==="RESORT"&&{isLocationeSearch:!0,resortProvinceId:null==e?void 0:e.srcTypeId}},departureAirports:i,selectedDepartureAirportsGroups:o,departureDate:(null==e?void 0:e.dt)?_()(null==e?void 0:e.dt).format("MM/DD/YYYY"):null,howLong:(null==e?void 0:e.nts)||7,guest_rooms:(null==e?void 0:null===(l=e.occ)||void 0===l?void 0:l.length)?e.occ.map(e=>({adults:(null==e?void 0:e.adults)||2,children:(null==e?void 0:e.children)||0,childAges:(null==e?void 0:e.childAges)||[],infants:(null==e?void 0:e.infants)||0}
1)):(null==P?void 0:P.guest_rooms)||[{adults:2,children:0,childAges:[],infants:0}],isDatesFlexible:null!==(r=null==e?void 0:e.flex)&&void 0!==r?r:0,returnDate:(null==e?void 0:e.dt)?_()(e.dt,"YYYY-MM-DD").add(e.nts,"days").format("MM/DD/YYYY"):null,preferredHotelkey:"HOTEL"===e.srcType?null==e?void 0:e.prefHotelkey:null,preferredResortId:(null==I?void 0:I.prefResortKey)?Number(null==I?void 0:I.prefResortKey):null==e?void 0:e.prefResortId,isSearchBarLoading:!0,srcType:null==e?void 0:e.srcType,srcTypeId:null==e?void 0:e.srcTypeId};return H((0,f.tr)(d)),tM((null==d?void 0:null===(s=d.destination)||void 0===s?void 0:s.displayName)||null),d};(0,n.useEffect)(()=>{e$||(tX(!1),H((0,f.HC)(null)))},[e$]),(0,n.useEffect)(()=>{!M&&(null==I?void 0:I.sbt)&&["l","b"].includes(null==I?void 0:I.sbt)&&(null==I?void 0:I.lst)&&(null==I?void 0:I.lsid)&&((null==eB?void 0:eB.length)<=0||!eB)&&(H((0,f.Xk)(!1)),H((0,f.RD)("flighthotel")),lg(),lr({pageNumber:1,searchBucketType:(null==I?void 0:I.sbt)==="l"?"LEADIN":"BESPOKE",leadInSearchType:(null==I?void 0:I.lst)==="c"?"COUNTRY":(null==I?void 0:I.lst)==="d"?"DESTINATION":(null==I?void 0:I.lst)==="r"?"RESORT":"",leadInSearchIds:[null==I?void 0:I.lsid.toString()]},!1,!0))},[M,null==I?void 0:I.sbt,null==I?void 0:I.lst,null==I?void 0:I.lsid]),(0,n.useEffect)(()=>{Object.keys(li).length>0&&tU(!0),document.body.classList.remove("promo-layer-hide")},[]),(0,n.useEffect)(()=>{(M&&tK&&e$||M&&e$&&(null==li?void 0:li.sortByPopularity)!==1)&&(H((0,x.Zn)(!0)),lr({pageNumber:1,...li,preferredHotelkey:tY},!1))},[lo]),(0,n.useEffect)(()=>{(null==I?void 0:I.sbt)&&["l","b"].includes(null==I?void 0:I.sbt)&&(null==I?void 0:I.lst)&&(null==I?void 0:I.lsid)&&(!e0||(null==li?void 0:li.sortByPopularity)!==1)&&lr({pageNumber:1,...li,preferredHotelkey:tY,searchBucketType:(null==I?void 0:I.sbt)==="l"?"LEADIN":"BESPOKE",leadInSearchType:(null==I?void 0:I.lst)==="c"?"COUNTRY":(null==I?void 0:I.lst)==="d"?"DESTINATION":(null==I?void 0:I.lst)==="r"?"RESORT":"",leadInSearchIds:[null==I?void 0:I.lsid.toString()]},!1)},[lo]),(0,n.useEffect)(()=>{let e=()=>{H((0,f.nY)([]))};return window.addEventListener("mousedown",lf),window.addEventListener("popstate",e),()=>{window.removeEventListener("mousedown",lf),window.removeEventListener("popstate",e)}},[]),(0,n.useEffect)(()=>{H((0,f.tP)(!1)),H((0,f._B)(!1)),H((0,f.oc)(!1)),H((0,f.xc)(!1)),document.body.classList.remove("promo-layer-hide")},[]);let lu=(0,n.useMemo)(()=>{var e,t,l,s,n,a,r,i;let o=0;return(null==li?void 0:null===(e=li.hotelRating)||void 0===e?void 0:e.length)>0&&o++,(null==li?void 0:null===(t=li.destinations)||void 0===t?void 0:t.length)>0&&o++,(null==li?void 0:null===(l=li.price)||void 0===l?void 0:l.length)>0&&o++,(null==li?void 0:null===(s=li.hotelName)||void 0===s?void 0:s.length)>0&&o++,(null==li?void 0:li.sortByPopularity)>1&&o++,(null==li?void 0:null===(n=li.boardBasis)||void 0===n?void 0:n.length)>0&&o++,(null==li?void 0:null===(a=li.holidayTypeIds)||void 0===a?void 0:a.length)>0&&o++,(null==li?void 0:null===(r=li.provinces)||void 0===r?void 0:r.length)>0&&o++,(null==li?void 0:null===(i=li.facilityTagIds)||void 0===i?void 0:i.length)>0&&o++,o},[li]),lm=e=>{ef(e),ey(!1),eN(!1),eC(!1),eL(!1),eb(!1),eF(!1),eS(!1)},lh=e=>{ef(!1),ey(!1),eN(e),eC(!1),eL(!1),eb(!1),eF(!1)},lv=e=>{window.dataLayer&&window.dataLayer.push({event:e?"results-loaded":"no-results-loaded",eventCategory:"Search Results"})},lf=e=>{var t,l,s,n,a,r,i,o,d,c,x,p;(null==ea?void 0:null===(t=ea.current)||void 0===t?void 0:t.contains(null==e?void 0:e.target))&&e7(!0),(null==ex?void 0:null===(l=ex.current)||void 0===l?void 0:l.contains(null==e?void 0:e.target))&&tu(!0),(null==em?void 0:null===(s=em.current)||void 0===s?void 0:s.contains(null==e?void 0:e.target))&&th(!0),(null==eh?void 0:null===(n=eh.current)||void 0===n?void 0:n.contains(null==e?void 0:e.target))&&tf(!0),(null==eo?void 0:null===(a=eo.current)||void 0===a?void 0:a.contains(null==e?void 0:e.target))&&tt(!0),(null==er?void 0:null===(r=er.current)||void 0===r?void 0:r.contains(null==e?void 0:e.target))&&ta(!0),(null==ei?void 0:null===(i=ei.current)||void 0===i?void 0:i.contains(null==e?void 0:e.target))&&ti(!0),(null==ed?void 0:null===(o=ed.current)||void 0===o?void 0:o.contains(null==e?void 0:e.target))&&td(!0),(null==et?void 0:null===(d=et.current)||void 0===d?void 0:d.contains(null==e?void 0:e.target))&&ts(!0),(null==ec?void 0:null===(c=ec.current)||void 0===c?void 0:c.contains(null==e?void 0:e.target))&&tx(!0),(null==ep?void 0:null===(x=ep.current)||void 0===x?void 0:x.contains(null==e?void 0:e.target))&&tx(!0),et.current&&!et.current.contains(e.target)&&ef(!1),ea.current&&!ea.current.contains(e.target)&&ey(!1),ex.current&&!ex.current.contains(e.target)&&eb(!1),er.current&&!er.current.contains(e.target)&&eN(!1),ei.current&&!ei.current.contains(e.target)&&eS(!1),eo.current&&!eo.current.contains(e.target)&&eC(!1),ed.current&&!ed.
1current.contains(e.target)&&eL(!1),ec.current&&!ec.current.contains(e.target)&&eD(!1),(null==eu?void 0:eu.current)&&(null==eu?void 0:null===(p=eu.current)||void 0===p?void 0:p.contains(e.target))&&(H((0,f.Pz)(!1)),H((0,f.tP)(!1)),H((0,f._B)(!1)),H((0,f.oc)(!1)),H((0,f.xc)(!1)))},lg=()=>{H((0,x.nD)([])),H((0,x.zA)([])),H((0,x.bq)("")),H((0,x.zD)([])),H((0,x.AR)([])),H((0,x.VB)([])),H((0,x.Vs)([])),H((0,x.yj)([])),t_("");let e=1;(null==I?void 0:I.st)!==null&&(null==I?void 0:I.st)!==void 0&&e0&&(e=parseInt(null==I?void 0:I.st)),H((0,x.zR)(e))},lb=e=>{tP(e)},lj=(null==eZ?void 0:eZ.length)>0||(null==eq?void 0:eq.length)>0||""!==eK||(null==eU?void 0:eU.length)>0||eG>1||(null==eV?void 0:eV.length)>0||(null==eX?void 0:eX.length)>0||(null==eJ?void 0:eJ.length)>0||(null==eQ?void 0:eQ.length)>0;(0,n.useEffect)(()=>{eK&&ld()},[eK]);let ly=null==eW?void 0:null===(r=eW.searchHotelFilters)||void 0===r?void 0:null===(a=r.hotels)||void 0===a?void 0:a.some(e=>e.hotelkey===Number(null==I?void 0:I.prefKey)),lw=lu>=1&&eB&&eB.length<1&&!lt,lN=!ly&&(null==I?void 0:I.searchId)&&(null==I?void 0:I.prefKey)>0,lk=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(lw&&!lk.current){lv(!1),lk.current=!0;return}lw||(lk.current=!1)},[lw]),(0,n.useEffect)(()=>{if((null==I?void 0:I.utm_source)==="skyscanner"&&e5){H((0,f.Xk)(!0));return}},[null==I?void 0:I.utm_source,e5]);let lS=async()=>{t0(!0);try{I&&["l","b"].includes(null==I?void 0:I.sbt)?await lr({pageNumber:eA,...li,preferredHotelkey:tY,searchBucketType:"l"===I.sbt?"LEADIN":"BESPOKE",leadInSearchType:"c"===I.lst?"COUNTRY":"d"===I.lst?"DESTINATION":"r"===I.lst?"RESORT":"",leadInSearchIds:[I.lsid.toString()]},!0):await lr({pageNumber:eA,...li,preferredHotelkey:tY},!0)}catch(e){console.error("Failed to load more hotels:",e)}finally{t0(!1)}},lI=async e=>{try{var t,l;let s=(null==I?void 0:I.promo)==="true",n=(null==I?void 0:I.ft)==="true",a=null==le?void 0:le.clickUtcMs,r=await (0,L.getAvaliableFilters)({...null!=M&&{searchId:M},...e,isPromotion:s,preferredHotelkey:parseInt(tY||(isNaN(null==I?void 0:I.prefKey)?null==P?void 0:P.preferredHotelkey:Number(null==I?void 0:I.prefKey))),preferredResortId:(null==P?void 0:P.preferredResortId)?null==P?void 0:P.preferredResortId.toString():null,sortByPopularity:null!==(t=null==e?void 0:e.sortByPopularity)&&void 0!==t?t:1,boardBasis:(null==e?void 0:e.boardBasis)?null==e?void 0:e.boardBasis:[],freeTransfersOnly:n,...e1&&{isLowestPriceFirst:e1},slr:tQ}),i=Date.now(),o={searchId:String(M),searchCriteriaJSON:JSON.stringify(null!=P?P:{}),totalCount:Number(null!==(l=null==r?void 0:r.cnt)&&void 0!==l?l:0),timestamp:new Date(i).toISOString(),durms:a?Math.max(0,i-a):0};r?(await (0,L.sentWorkerCntToBE)(o),tY&&H((0,x.Zn)(!0)),H((0,f.Zc)({searchHotelFilters:structuredClone(r.searchHotelFilters),priceRange:r.priceRange})),H((0,f.HC)(null==r?void 0:r.cnt)),t5(null==r?void 0:r.cnt)):(console.error("No response from getAvaliableFilters API"),await (0,L.sentWorkerCntToBE)({...o,totalCount:0}))}catch(e){console.error("Failed to load filter results",e)}};(0,n.useEffect)(()=>{H((0,G.lw)(null)),H((0,G.qJ)(null)),H((0,G.pp)([])),H((0,f.WE)(!1))},[H]);let lC=(0,n.useRef)(!1);(0,n.useEffect)(()=>{let e;if(!M||t2)return;let t=0;return lC.current=!1,e=setInterval(async()=>{var l,s,n;if(lC.current)return;t+=1e3;let a=await (0,L.getNewSearchStatus)(M),r=100===(null==a?void 0:null===(s=a.data)||void 0===s?void 0:null===(l=s.searchSummary)||void 0===l?void 0:l.progressPercent),i=t>=13e3;if(r&&t1<eM||r||i){lC.current=!0,clearInterval(e),await new Promise(e=>setTimeout(e,1e3)),await lI(),H((0,x.Zn)(!0));return}(null==a?void 0:null===(n=a.data)||void 0===n?void 0:n.resultsAvailable)||!(t>=13e3)||clearInterval(e)},1e3),()=>clearInterval(e)},[M]);let lE=ez>=eM,lD=null==eW?void 0:null===(p=eW.searchHotelFilters)||void 0===p?void 0:p.holidayTypeItems,lR=null==eW?void 0:null===(u=eW.searchHotelFilters)||void 0===u?void 0:u.facilityTagItems,lL=null==eW?void 0:null===(h=eW.searchHotelFilters)||void 0===h?void 0:null===(m=h.provinces)||void 0===m?void 0:m.length,lT="bg-white rounded-[14px] border border-gray-200 shadow-sm overflow-hidden p-4",lF=()=>(0,s.jsx)(W,{boardBases:null==y?void 0:y.boardBases,completeFilterResponse:eW,defaultExpanded:!0,isLoading:tW}),lH=()=>{var e;return(0,s.jsx)(N,{availableRatings:null==eW?void 0:null===(e=eW.searchHotelFilters)||void 0===e?void 0:e.hotelStarRatings,defaultExpanded:!0,isLoading:tW})},l_=()=>(0,s.jsx)(C,{availablePriceRange:null==eW?void 0:eW.priceRange,defaultExpanded:!0,isLoading:tW}),lA=()=>
1(0,s.jsx)(b,{completeFilterResponse:eW,setSelectedHotel:t_,selectedHotel:tH,defaultExpanded:!0,resetFilters:lg}),lP=()=>(0,s.jsx)(U,{availableHolidayFacilities:lD,defaultExpanded:!0,isLoading:tW,type:"holidayType"}),lB=()=>(0,s.jsx)(U,{availableHolidayFacilities:lR,defaultExpanded:!0,isLoading:tW,type:"facilities"}),lM=()=>{var e;return(0,s.jsx)(K,{availableProvinces:null==eW?void 0:null===(e=eW.searchHotelFilters)||void 0===e?void 0:e.provinces,handleOpenAndCloseResortsFilters:lh,openResorts:ew,inAllFilters:!0,filters:ev,defaultExpanded:!0})},lz=()=>{var e;return(0,s.jsx)(k,{availableResorts:null==eW?void 0:null===(e=eW.searchHotelFilters)||void 0===e?void 0:e.destinations,handleOpenAndCloseResortsFilters:lh,openResorts:ew,inAllFilters:!0,filters:ev,defaultExpanded:!0})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y.Z,{seoData:null==y?void 0:y.seo}),(t3&&eB&&eB.length>0||!1===e3)&&eW&&(0,s.jsx)("div",{className:" bg-magnolia xl:bg-white sticky z-[13] xl:z-[9] top-[0px] md:top-0 ",children:(0,s.jsxs)("div",{className:"th-container-header xl:hidden ".concat(A?"":"py-[10px]"," z-[13] xl:z-[9] py-[10px]"),children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"px-0",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsxs)("div",{onClick:()=>{t2&&lm(!ev),document.body.classList.add("promo-layer-hide")},className:"flex-1 flex items-center justify-center gap-1.5 px-3 py-[10px] bg-white rounded-md text-[14px] font-semibold cursor-pointer border border-gray-300 text-[#5b2d8e] whitespace-nowrap overflow-hidden text-ellipsis ".concat(t2?"":"opacity-50 cursor-not-allowed"),children:[(0,s.jsx)(v.L
1op,{className:"text-[16px] shrink-0"}),"Sort & Filters",lu>0&&(0,s.jsx)("div",{className:"text-[11px] rounded-full h-5 w-5 flex items-center justify-center text-white bg-celticBlue shadow-md",children:lu})]}),(0,s.jsxs)("div",{onClick:()=>lb(!0),className:"flex-1 flex items-center justify-center gap-1.5 px-3 py-[10px] bg-[#7040aa] rounded-md text-[14px] font-semibold cursor-pointer text-white border border-gray-300 whitespace-nowrap overflow-hidden text-ellipsis",children:[(0,s.jsx)("img",{src:"/images/map.webp",alt:"",className:"w-[16px] h-[16px] object-contain shrink-0"}),"Map"]})]})}),(0,s.jsxs)("div",{className:"fixed animate-dropDownOpen xl:absolute h-[100dvh] top-0 left-0 xl:top-[45px] w-full bg-white serp-filters xl:h-auto xl:max-h-[65vh] overflow-y-auto overflow-x-hidden transition-all duration-200 ease-in-out delay-200 z-[12] ".concat(!ev&&"hidden"),ref:et,id:"allFilters",children:[(0,s.jsxs)("div",{className:"py-[15px] pl-[32px] pr-[30px] flex items-center justify-between serp-allfilters-border sticky top-0 bg-white z-[12]",children:[(0,s.jsx)("div",{className:"font-InterRegular font-bold   text-lg",children:"Filters"}),(0,s.jsx)("button",{onClick:()=>{lm(!ev),document.body.classList.remove("promo-layer-hide")},className:"w-[28px] h-[40px] cursor-pointer p-0",children:(0,s.jsx)(v.Jvf,{className:"!  size-10"})})]}),(0,s.jsx)("div",{className:"xl:hidden",children:lj&&(0,s.jsx)("div",{className:" ",children:(0,s.jsxs)("div",{className:"text-jaffa bg-white font-InterRegular font-bold  text-center text-lg leading-[22px] py-[6px] px-[12px] rounded-md my-[8px] mx-[16px] flex items-center gap-2 justify-center",onClick:()=>{lg()},children:["Clear all filters",(0,s.jsx)(v.Jvf,{className:"text-xl"})]})})}),(0,s.jsxs)("div",{className:"filters bg-white",children:[(0,s.jsx)("div",{className:"py-[0px] px-[16px] rounded-t-md ",children:(0,s.jsx)("div",{className:"xl:hidden bg-white border border-gray-200 rounded-lg shadow-lg",children:(0,s.jsxs)("div",{className:"custom-accordion",children:[(0,s.jsxs)("button",{className:"accordion-header serp-filter-headings flex items-center justify-between w-full leading-[25px] bg-white py-3 px-4 custom-no-margin",onClick:()=>t7(e=>!e),"aria-controls":"panel1-content","aria-expanded":t9,children:[(0,s.jsx)("span",{children:"Sort by"}),(0,s.jsx)(d.RiI,{className:"text-gray-600 transition-transform duration-300\n        ".concat(t9?"rotate-180":"rotate-0")})]}),(0,s.jsx)("div",{className:"accordion-content overflow-hidden transition-all duration-300\n      ".concat(t9?"max-h-[500px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsx)("div",{ref:ep,children:(0,s.jsx)(O,{setOpenSortDropDwom:eD,openSortDropDwom:eE,resetFilters:lg})})})]})})}),(0,s.jsx)("div",{className:"drop-down grid grid-cols-1 xl:grid-cols-3 xl:mb-[0px] max-xl:mb-[80px]  space-y-4 mt-4",children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"py-[0px] px-[16px] ",children:lH()}),(0,s.jsxs)("div",{className:"xl:w-[75%] space-y-4",children:[(0,s.jsx)("div",{className:"py-[0px] px-[16px]  ",children:lA()}),(0,s.jsx)("div",{className:"py-[0px] px-[16px] ",children:l_()})]}),(0,s.jsx)("div",{className:"py-[0px] max-xl:px-[16px] ",children:lF()}),(null==lD?void 0:lD.length)>0&&(0,s.jsx)("div",{className:"py-[0px] max-xl:px-[16px] ",children:lP()}),(null==lR?void 0:lR.length)>0&&(0,s.jsx)("div",{className:"py-[0px] max-xl:px-[16px] ",children:lB()}),lL>1&&(0,s.jsx)("div",{className:"py-[0px] px-[16px] xl:col-span-3 ",children:lM()}),lL<=1&&(0,s.jsx)("div",{className:"py-[0px] px-[16px] xl:col-span-3",children:lz()})]})})]}),(0,s.jsxs)("div",{className:"py-[10px] px-[16px] flex flex-wrap items-center justify-end gap-[10px] w-full sticky bottom-0 z-[12] bg-white",children:[(0,s.jsxs)("button",{className:"text-base font-InterRegular font-semibold leading-[20px] w-full  px-[48px] py-[12px] border-none rounded-md cursor-pointer bg-[#5B2D8E] text-white ",onClick:()=>{lm(!ev),ts(!0),document.body.classList.remove("promo-layer-hide")},children:["Show ",null==eM?void 0:eM.toLocaleString()," Results"]})," "]})]})]}),lj&&(0,s.jsxs)("div",{className:"flex gap-[6px] overflow-x-auto scrollbar-hide pb-1 pt-2 items-center",children:[eG>1&&(0,s.jsxs)("div",{className:"flex items-center gap-[4px] bg-white text-[#5B2D8E] border border-gray-300 rounded-full px-[10px] py-[4px] text-[11px] font-bold font-montserrat flex-shrink-0 cursor-pointer",onClick:()=>H((0,x.zR)(1)),children:[2===eG?"Price (Low)":3===eG?"Price (High)":4===eG?"Stars (Low)":"Stars (High)",(0,s.jsx)("span",{className:"text-[11px] ml-[2px] opacity-80",children:"✕"})]}),(null==eV?void 0:eV.length)>0&&(0,s.jsxs)("div",{className:"flex items-center gap-[4px] bg-white text-[#5B2D8E] border border-gray-300 rounded-full px-[10px] py-[4px] text-[11px] font-bold font-montserrat flex-shrink-0 cursor-pointer",onClick:()=>H((0,x.AR)([])),children:[eV.map(e=>{var t;let l=null==y?void 0:null===(t=y.boardBases)||void 0===t?void 0:t.find(t=>String(t.boardBasisId)===String(e));return(null==l?void 0:l.boardBasisName)||e}).join(", "),(0,s.jsx)("span",{className:"text-[11px] ml-[2px] opacity-80",children:"✕"})]}),(null==eZ?void 0:eZ.length)>0&&(0,s.jsxs)("div",{className:"flex items-center gap-[4px] bg-white text-[#5B2D8E] border border-gray-300 rounded-full px-[10px] py-[4px] text-[11px] font-bold font-montserrat flex-shrink-0 cursor-pointer",onClick:()=>H((0,x.nD)([])),children:[[...eZ].sort((e,t)=>
1t-e).map(e=>"".concat(e,"★")).join(" & "),(0,s.jsx)("span",{className:"text-[11px] ml-[2px] opacity-80",children:"✕"})]}),(null==eJ?void 0:eJ.length)>0&&(0,s.jsxs)("div",{className:"flex items-center gap-[4px] bg-white text-[#5B2D8E] border border-gray-300 rounded-full px-[10px] py-[4px] text-[11px] font-bold font-montserrat flex-shrink-0 cursor-pointer",onClick:()=>H((0,x.Vs)([])),children:[eJ.map(e=>(null==e?void 0:e.HolidayType)||e).join(", "),(0,s.jsx)("span",{className:"text-[11px] ml-[2px] opacity-80",children:"✕"})]}),(null==eQ?void 0:eQ.length)>0&&(0,s.jsxs)("div",{className:"flex items-center gap-[4px] bg-white text-[#5B2D8E] border border-gray-300 rounded-full px-[10px] py-[4px] text-[11px] font-bold font-montserrat flex-shrink-0 cursor-pointer",onClick:()=>H((0,x.yj)([])),children:[eQ.map(e=>(null==e?void 0:e.FacilityTagItem)||e).join(", "),(0,s.jsx)("span",{className:"text-[11px] ml-[2px] opacity-80",children:"✕"})]}),(null==eq?void 0:eq.length)>0&&(0,s.jsxs)("div",{className:"flex items-center gap-[4px] bg-white text-[#5B2D8E] border border-gray-300 rounded-full px-[10px] py-[4px] text-[11px] font-bold font-montserrat flex-shrink-0 cursor-pointer",onClick:()=>H((0,x.zA)([])),children:[eq.map(e=>(null==e?void 0:e.name)||e).join(", "),(0,s.jsx)("span",{className:"text-[11px] ml-[2px] opacity-80",children:"✕"})]}),(null==eX?void 0:eX.length)>0&&(0,s.jsxs)("div",{className:"flex items-center gap-[4px] bg-white text-[#5B2D8E] border border-gray-300 rounded-full px-[10px] py-[4px] text-[11px] font-bold font-montserrat flex-shrink-0 cursor-pointer",onClick:()=>H((0,x.VB)([])),children:[eX.map(e=>(null==e?void 0:e.name)||e).join(", "),(0,s.jsx)("span",{className:"text-[11px] ml-[2px] opacity-80",children:"✕"})]}),""!==eK&&(0,s.jsxs)("div",{className:"flex items-center gap-[4px] bg-white text-[#5B2D8E] border border-gray-300 rounded-full px-[10px] py-[4px] text-[11px] font-bold font-montserrat flex-shrink-0 cursor-pointer",onClick:()=>H((0,x.bq)("")),children:[eK,(0,s.jsx)("span",{className:"text-[11px] ml-[2px] opacity-80",children:"✕"})]}),(null==eU?void 0:eU.length)>0&&(0,s.jsxs)("div",{className:"flex items-center gap-[4px] bg-white text-[#5B2D8E] border border-gray-300 rounded-full px-[10px] py-[4px] text-[11px] font-bold font-montserrat flex-shrink-0 cursor-pointer",onClick:()=>H((0,x.zD)([])),children:["\xa3",(0,i.formatRoundedPrice)(eU[0])," – \xa3",(0,i.formatRoundedPrice)(eU[1]),(0,s.jsx)("span",{className:"text-[11px] ml-[2px] opacity-80",children:"✕"})]}),(0,s.jsx)("div",{className:"flex items-center text-white text-[12px] font-bold font-montserrat flex-shrink-0 cursor-pointer bg-[#5B2D8E] rounded-full px-[10px] py-[4px]",onClick:()=>lg(),children:"Clear all"})]})]})}),t3&&tz&&eB.length>0&&(0,s.jsx)("div",{className:"th-container grid  grid-cols-1 mt-[10px] mb-[10px] md:mb-0",children:(0,s.jsx)("div",{className:" w-full",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 bg-[#fbf1fd] border border-[#f1cef7] rounded-lg px-3 py-2 text-[#071a26] ",children:[(0,s.jsx)("div",{className:"flex items-center justify-center rounded-full ",children:(0,s.jsx)(J.Osq,{className:" w-5 h-5 "})}),(0,s.jsx)("div",{className:"text-sm md:text-base font-InterRegular ",children:"We've included results from nearby airports to give you more flight options and better prices."})]})})}),null==w?void 0:w.map((e,t)=>(0,s.jsx)(T,{item:e},t)),t3&&e$&&eB&&eB.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"th-container md:my-2.5 flex items-center justify-between px-10",children:[t2&&null!=eM?(0,s.jsxs)("div",{className:"text-xl md:text-[22px]  font-montserrat font-bold my-2.5 flex gap-1 items-baseline",children:[null==eM?void 0:eM.toLocaleString()," holidays found"]}):(0,s.jsxs)("div",{className:"text-lg md:text-xl  font-semibold my-2.5 flex gap-1",children:["Finding great deals for you",(0,s.jsx)("span",{className:"animate-bounce text-[40px] text-[#f24139]",children:"."}),(0,s.jsx)("span",{className:"animate-bounce [animation-delay:0.2s] text-[40px] text-blue",children:"."}),(0,s.jsx)("span",{className:"animate-bounce [animation-delay:0.4s] text-[40px] text-[#f92484]",children:"."})]}),(0,s.jsxs)("div",{className:"flex items-center gap-[20px] relative",children:[(0,s.jsxs)("div",{className:"flex gap-[10px] relative  items-center",children:[(0,s.jsx)("div",{className:"bg-white xl:bg-lightbluegray xl:py-[6px] xl:px-[12px] flex items-center rounded-md gap-[15px] cursor-pointer flex-1 xl:hidden relative",onClick:()=>eD(!eE),children:(0,s.jsx)("div",{className:"!  font-poppins text-[14px] font-normal leading-[20px] max-xl:hidden",children:(0,s.jsx)(o.kzR,{})})}),(0,s.jsx)("div",{className:"max-xl:hidden !  font-InterRegular font-semibold text-[16px] leading-[25px]  font-poppins truncate text-[#394851]",children:"Sort by"}),S&&(0,s.jsxs)("div",{ref:tJ,className:" border-2 px-2.5 rounded-lg cursor-pointer flex items-center justify-between gap-2 group ".concat(tV?"bg-[#fcfcfa]   ":e8?"bg-[#fcfcfa] ":"bg-[#fcfcfa] xl:bg-[#fcfcfa]  "),onClick:()=>{eD(!eE),tG(!tV)},onMouseOver:()=>e6(!0),onMouseLeave:()=>e6(!1),children:[(0,s.jsx)("input",{type:"text",className:"cursor-pointer focus:outline-none    capitalize font-Inter font-normal text-[14px] py-[5px] w-[182px] text-[#1a1a2e]\n                        ".concat(tV?"bg-white ":e8?"bg-white ":"bg-[#fcfcfa] xl:bg-[#fcfcfa] ","\n                          "),readOnly:!0,value:1==eG?"Most Popular":2==eG?"Price (Lowest first)":3==eG?"Price (Highest first)":4==eG?"Star Rating (Lowest first)":"Star Rating (Highest first)"}),(0,s.jsx)(d.RiI,{className:"text-sm transition-colors duration-300  ".concat(tV?"text-[#394851]":"text-[#394851] ")})]}),(0,s.jsxs)("div",{className:"fixed animate-dropDownOpen xl:absolute h-[100dvh] xl:w-[220px] max-xl:top-0 max-xl:left-0 xl:top-[45px] w-full bg-white serp-filters xl
1:h-auto overflow-y-auto overflow-x-hidden transition-all duration-200 ease-in-out delay-200 z-[12] xl:right-0 xl:rounded-lg xl:shadow-lg xl:border xl:border-gray-200 ".concat(!eE&&"hidden"),ref:ec,children:[(0,s.jsx)(O,{setOpenSortDropDwom:eD,openSortDropDwom:eE,resetFilters:lg}),(0,s.jsxs)("div",{className:"py-[10px] px-[16px] flex items-center justify-end flex-grow gap-[10px] w-full fixed xl:sticky bottom-0 z-[12] bg-white xl:hidden",children:[(0,s.jsx)("button",{className:"  font-poppins text-[14px] font-normal leading-[20px] w-full lg:w-[180px] px-[48px] py-[12px] border-none rounded-md cursor-pointer bg-closebtn",onClick:()=>eD(!eE),children:"Close"}),(0,s.jsx)("button",{className:"!bg-blue !text-white hover:!bg-bluehover font-poppins text-[14px] font-normal leading-[20px] w-full lg:w-[180px] px-[48px] py-[12px] border-none rounded-md cursor-pointer",onClick:()=>{eD(!eE)},children:"Apply"})]})]})]}),(0,s.jsx)("div",{className:"group",children:(0,s.jsxs)("button",{onClick:()=>lb(!0),className:"hidden xl:flex items-center gap-2 px-6 py-[5px]  normal-case  font-Inter font-bold rounded-md border-2 border-gray-300 bg-[#7040aa] xl:bg-[#7040aa] group text-white",children:[(0,s.jsx)("img",{src:"/images/map.webp",alt:"",className:"w-[18px] h-[18px] object-contain"}),(0,s.jsx)("span",{className:"text-[16px] font-semibold",children:"Map"})]})}),(0,s.jsx)(q,{open:tA,onClose:lb,data:eM,children:(0,s.jsx)(en,{searchId:null==I?void 0:I.searchId,hotels:(null==eW?void 0:null===(g=eW.searchHotelFilters)||void 0===g?void 0:g.hotels)||[],searchData:P,hotelonly:t8})})]})]}),(0,s.jsx)(D.Z,{dataLength:eM,className:"!overflow-visible",next:lS,scrollThreshold:.7,children:(0,s.jsxs)("div",{className:"th-container grid grid-cols-1 xl:grid-cols-4 gap-6 mb-[20px] md:mb-[80px]",children:[t2?(0,s.jsxs)("div",{className:"filters max-xl:hidden h-fit space-y-4",children:[(0,s.jsxs)("div",{className:"px-0 pt-0 pb-0 flex items-center justify-between",children:[(0,s.jsx)("div",{className:"text-[16px] font-extrabold text-[#1A1A2E] font-montserrat",children:"Filter results"}),lj&&(0,s.jsx)("div",{className:"cursor-pointer",onClick:()=>lg(),children:(0,s.jsx)("span",{className:"text-vividOrange3 text-[14px] leading-[24px] font-bold font-montserrat",children:"Clear all filters"})})]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:lT,children:lF()}),(0,s.jsx)("div",{className:lT,children:lH()}),(0,s.jsx)("div",{className:lT,children:l_()}),(null==lD?void 0:lD.length)>0&&(0,s.jsx)("div",{className:lT,children:lP()}),(null==lR?void 0:lR.length)>0&&(0,s.jsx)("div",{className:lT,children:lB()}),(0,s.jsx)("div",{className:lT,children:lA()}),lL>1&&(0,s.jsx)("div",{className:lT,children:lM()}),lL<=1&&(0,s.jsx)("div",{className:lT,children:lz()})]}),lj&&(0,s.jsx)("div",{className:"text-center py-2 pb-4 cursor-pointer hidden",onClick:()=>{lg()},children:(0,s.jsx)("span",{className:"text-vividOrange3 text-[16px] font-bold font-montserrat",children:"Clear all filters"})})]}):(0,s.jsxs)("div",{className:"rounded-2xl max-md:hidden space-y-6",children:[(0,s.jsx)("div",{className:"bg-white p-5 rounded-2xl shadow-sm",children:Array.from({length:5},(e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3 cursor-pointer",children:[(0,s.jsx)("div",{className:"w-5 h-5 rounded-md bg-gray-300 animate-pulse"}),(0,s.jsx)("div",{className:"flex items-center gap-1",children:Array.from({length:5-t},(e,t)=>(0,s.jsx)("div",{className:"w-4 h-4 rounded-sm bg-gray-300 animate-pulse"},t))})]},t))}),(0,s.jsx)("div",{className:"bg-white p-5 rounded-2xl shadow-sm",children:Array.from({length:8}).map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,s.jsx)("div",{className:"w-5 h-5 rounded-md bg-gray-300 animate-pulse"}),(0,s.jsx)("div",{className:"h-4 w-48 rounded bg-gray-300 animate-pulse"})]},t))}),(0,s.jsx)("div",{className:"bg-white p-5 rounded-2xl shadow-sm",children:Array.from({length:12}).map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,s.jsx)("div",{className:"w-5 h-5 rounded-md bg-gray-300 animate-pulse"}),(0,s.jsx)("div",{className:"h-4 w-48 rounded bg-gray-300 animate-pulse"})]},t))})]}),(0,s.jsxs)("div",{className:"xl:col-span-3 rounded-lg w-full mx-auto flex flex-col",children:[lN&&(0,s.jsx)("div",{className:"mb-8 order-[-1]",children:(0,s.jsx)(B,{noResultsFound:!1,notFoundHotelName:null==tB?void 0:null===(j=tB.split(","))||void 0===j?void 0:j[0]})}),eB&&eB.length>0&&eB.map((e,t)=>{var l,a,r,i;return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(E.Z,{filterHotelApi:ll,hotelDetails:e,index:t,hotelKey:null==eW?void 0:null===(l=eW.pHotel)||void 0===l?void 0:l.id,hotelonly:t8,checkdate:null==eW?void 0:null===(a=eW.searchRequestParam
1s)||void 0===a?void 0:a.dt,totalnights:null==eW?void 0:null===(r=eW.searchRequestParams)||void 0===r?void 0:r.nts,fromairport:null==eW?void 0:null===(i=eW.searchRequestParams)||void 0===i?void 0:i.fromair}),2===t&&(0,s.jsx)("div",{className:"mb-5 ",children:(0,s.jsx)(Q,{})}),5===t&&(0,s.jsx)("div",{className:"mb-0 xl:mb-[0px]",children:(0,s.jsx)(el,{})}),9===t&&(0,s.jsx)("div",{className:"mb-5 xl:mb-[25px]",children:(0,s.jsx)(es,{isSerp:!0,variant:"yellow"})})]},(null==e?void 0:e.esid)||(null==e?void 0:e.hotelkey)||t)}),!lE&&(0,s.jsx)("button",{type:"button",className:"text-[#5b2d8e] bg-white text-[24px]  font-montserrat font-bold px-6 py-2 rounded-lg  flex justify-center items-center disabled:opacity-50 disabled:cursor-not-allowed border-[#5b2d8e] border-[2px]",disabled:t$,"data-track":"loadmore-serp",onClick:lS,children:t$?(0,s.jsxs)(s.Fragment,{children:["Loading More",(0,s.jsxs)("svg",{className:"ml-3 h-5 w-5 animate-spin text-[#5b2d8e]",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]})]}):"Load More"})]})]})},eO)]}):!lw&&tq&&e$?(0,s.jsx)("div",{className:"max-w-[1000px] my-4 md:mt-8 xl:my-[70px] mx-auto",children:(0,s.jsx)(B,{noResultsFound:!0})}):(e$||tq)&&lw?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(z,{resetFilters:lg})}):(0,s.jsx)(X.default,{skeltonLoading:!0})]})}}},function(e){e.O(0,[2961,8845,7665,4838,3768,4396,1698,594,689,2540,2793,3576,389,5294,2888,9774,179],function(){return e(e.s=42870)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.