1"use strict";(self.webpackChunklanding_page=self.webpackChunklanding_page||[]).push([[3444],{3444:(e,t,a)=>{a.r(t),a.d(t,{CalendarPortal:()=>C,ImageCarousel:()=>M,REGIONS:()=>g,REGION_STATES:()=>u,default:()=>L,extractImageUrls:()=>I,inRegion:()=>k,matchesQuery:()=>y,norm:()=>w});var s=a(9379),o=a(5043),r=a(7950),l=a(1591),n=a(3751),c=a(446),i=a.n(c),d=a(3976),h=a(7343),m=(a(4075),a(579));const u={north:["jammu","kashmir","himachalpradesh","uttarakhand","punjab","haryana","delhi","uttarpradesh","rajasthan","chandigarh","ladakh"],south:["tamilnadu","kerala","karnataka","andhrapradesh","telangana","puducherry"],east:["westbengal","odisha","bihar","jharkhand","assam","meghalaya","sikkim","arunachalpradesh","nagaland","manipur","mizoram","tripura"],west:["maharashtra","gujarat","goa","madhyapradesh","chhattisgarh","daman","dadra"]},p=[{label:"Pool Access"},{label:"Curated Dining"},{label:"Spacious Rooms"},{label:"Cultural Immersion"},{label:"Last Room Availability"},{label:"Exclusive Offers"},{label:"Kids' Club"},{label:"Spa & Wellness"},{label:"Adventure Activities"}],x={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"},v=[(0,m.jsxs)("svg",(0,s.A)((0,s.A)({},x),{},{children:[(0,m.jsx)("path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2"}),(0,m.jsx)("path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2"}),(0,m.jsx)("path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2"})]})),(0,m.jsxs)("svg",(0,s.A)((0,s.A)({},x),{},{children:[(0,m.jsx)("path",{d:"M17 8h1a4 4 0 0 1 0 8h-1"}),(0,m.jsx)("path",{d:"M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V8z"}),(0,m.jsx)("line",{x1:"6",y1:"2",x2:"6",y2:"4"}),(0,m.jsx)("line",{x1:"10",y1:"2",x2:"10",y2:"4"}),(0,m.jsx)("line",{x1:"14",y1:"2",x2:"14",y2:"4"})]})),(0,m.jsxs)("svg",(0,s.A)((0,s.A)({},x),{},{children:[(0,m.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,m.jsx)("polyline",{points:"9 21 3 21 3 15"}),(0,m.jsx)("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),(0,m.jsx)("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})),(0,m.jsxs)("svg",(0,s.A)((0,s.A)({},x),{},{children:[(0,m.jsx)("line",{x1:"3",y1:"22",x2:"21",y2:"22"}),(0,m.jsx)("line",{x1:"6",y1:"18",x2:"6",y2:"11"}),(0,m.jsx)("line",{x1:"10",y1:"18",x2:"10",y2:"11"}),(0,m.jsx)("line",{x1:"14",y1:"18",x2:"14",y2:"11"}),(0,m.jsx)("line",{x1:"18",y1:"18",x2:"18",y2:"11"}),(0,m.jsx)("polygon",{points:"12 2 20 7 4 7"})]})),(0,m.jsxs)("svg",(0,s.A)((0,s.A)({},x),{},{children:[(0,m.jsx)("path",{d:"M2 4v16"}),(0,m.jsx)("path",{d:"M2 8h18a2 2 0 0 1 2 2v10"}),(0,m.jsx)("path",{d:"M2 17h20"}),(0,m.jsx)("path",{d:"M6 8v9"})]})),(0,m.jsx)("svg",(0,s.A)((0,s.A)({},x),{},{children:(0,m.jsx)("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})),(0,m.jsxs)("svg",(0,s.A)((0,s.A)({},x),{},{children:[(0,m.jsx)("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),(0,m.jsx)("circle",{cx:"9",cy:"7",r:"4"}),(0,m.jsx)("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),(0,m.jsx)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})),(0,m.jsx)("svg",(0,s.A)((0,s.A)({},x),{},{children:(0,m.jsx)("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})),(0,m.jsxs)("svg",(0,s.A)((0,s.A)({},x),{},{children:[(0,m.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,m.jsx)("polygon",{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"})]}))],g=[{label:"All Resorts",value:"all"},{label:"North India",value:"north"},{label:"South India",value:"south"},{label:"East India",value:"east"},{label:"West India",value:"west"},{label:"Monsoon Offer",value:"monsoon"}],j=[9063,9062,40173,7823,46192,17549,9064,46140,50139,9087],f=["January","February","March","April","May","June","July","August","September","October","November","December"],b=["Su","Mo","Tu","We","Th","Fr","Sa"],w=e=>(null==e?"":String(e)).toLowerCase().replace(/\s+/g,"").trim();function y(e,t){const a=w(t);return!a||(w(e.name).includes(a)||w(e.city).includes(a)||w(e.state).includes(a))}function k(e,t){if("all"===t)return!0;
1if("monsoon"===t)return j.includes(e.id);const a=w(e.state)+" "+w(e.city);return(u[t]||[]).some(e=>a.includes(e))}function N(e,t,a){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const r=(t||i()()).format("YYYY-MM-DD"),l=(a||i()().add(1,"day")).format("YYYY-MM-DD"),n=(0,h.nN)(window.location.pathname);return"".concat(n,"/rooms/").concat(e.id,"/").concat(r,"/").concat(l,"/").concat(s,"/").concat(o)}function A(e){let{year:t,month:a,showPrev:s,onPrev:o,showNext:r,onNext:l,checkin:n,checkout:c,onDayClick:d}=e;const h=i()(),u=function(e,t){const a=new Date(e,t,1).getDay(),s=new Date(e,t+1,0).getDate(),o=[];for(let r=0;r<a;r++)o.push(null);for(let r=1;r<=s;r++)o.push(r);return o}(t,a);return(0,m.jsxs)("div",{className:"cm-cal-inner",children:[(0,m.jsxs)("div",{className:"cm-cal-nav",children:[s?(0,m.jsx)("button",{className:"cm-cal-nav-btn",onClick:o,children:"\u2039"}):(0,m.jsx)("span",{className:"cm-cal-nav-spacer"}),(0,m.jsxs)("span",{className:"cm-cal-month",children:[f[a]," ",t]}),r?(0,m.jsx)("button",{className:"cm-cal-nav-btn",onClick:l,children:"\u203a"}):(0,m.jsx)("span",{className:"cm-cal-nav-spacer"})]}),(0,m.jsxs)("div",{className:"cm-cal-grid",children:[b.map(e=>(0,m.jsx)("div",{className:"cm-cal-day-header",children:e},e)),u.map((e,s)=>{const o=(e=>{if(!e)return"empty";const s=i()(new Date(t,a,e));return s.isBefore(h,"day")?"past":n&&s.isSame(n,"day")||c&&s.isSame(c,"day")?"selected":n&&c&&s.isAfter(n,"day")&&s.isBefore(c,"day")?"range":"normal"})(e);return(0,m.jsx)("div",{className:"cm-cal-day cm-cal-day--".concat(o),onClick:()=>"empty"!==o&&"past"!==o&&d(new Date(t,a,e)),children:e||""},s)})]})]})}function C(e){let{anchorRef:t,checkin:a,checkout:s,onChange:l,onClose:n,fixed:c}=e;const d=i()(),h=window.innerWidth<=768,[u,p]=(0,o.useState)(d.year()),[x,v]=(0,o.useState)(d.month()),[g,j]=(0,o.useState)(a?"checkout":"checkin"),[f,b]=(0,o.useState)({top:0,left:0}),w=(0,o.useRef)(null),y=function(e,t){return 11===t?{year:e+1,month:0}:{year:e,month:t+1}}(u,x);(0,o.useEffect)(()=>{if(h||!t.current)return;const e=t.current.getBoundingClientRect(),a=Math.min(620,window.innerWidth-32);if(c){const t=Math.min(e.left,window.innerWidth-a-16);b({top:e.bottom+8,left:Math.max(16,t)})}else{const t=Math.min(e.left+window.scrollX,window.innerWidth+window.scrollX-a-16);b({top:e.bottom+window.scrollY+8,left:Math.max(16,t)})}},[t,c,h]),(0,o.useEffect)(()=>{const e=e=>{w.current&&!w.current.contains(e.target)&&t.current&&!t.current.contains(e.target)&&n()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n,t]),(0,o.useEffect)(()=>{let e=!1;const t=setTimeout(()=>{e=!0},200),a=()=>{e&&n()};return window.addEventListener("scroll",a,{passive:!0}),()=>{clearTimeout(t),window.removeEventListener("scroll",a)}},[n]);const k=e=>{const t=i()(e);"checkin"===g||t.isBefore(a,"day")||t.isSame(a,"day")?(l({checkin:t,checkout:null}),j("checkout")):(l({checkin:a,checkout:t}),setTimeout(n,80))},N=()=>{11===x?(v(0),p(e=>e+1)):v(e=>e+1)},C=h?{}:{top:f.top,left:f.left,position:c?"fixed":"absolute"};return r.createPortal((0,m.jsxs)(m.Fragment,{children:[h&&(0,m.jsx)("div",{className:"cm-cal-backdrop",onClick:n}),(0,m.jsxs)("div",{ref:w,className:"cm-cal-portal-wrap".concat(h?" cm-cal-portal-wrap--mobile":""),style:C,children:[h&&(0,m.jsxs)("div",{className:"cm-cal-mobile-header",children:[(0,m.jsx)("span",{className:"cm-cal-mobile-title",children:"Select Dates"}),(0,m.jsx)("button",{className:"cm-cal-mobile-close",onClick:n,children:"\u2715"})]}),(0,m.jsxs)("div",{className:"cm-cal-header-row",children:[(0,m.jsxs)("div",{className:"cm-cal-phase-tabs",children:[(0,m.jsxs)("span",{className:"cm-cal-phase-tab".concat("checkin"===g?" active":""),children:["Check-in ",a?a.format("DD MMM"):"\u2014"]}),(0,m.jsx)("span",{className:"cm-cal-phase-arrow",children:"\u2192"}),(0,m.jsxs)("span",{className:"cm-cal-phase-tab".concat("checkout"===g?" active":""),children:["Check-out ",s?s.format("DD MMM"):"\u2014"]})]}),(a||s)&&(0,m.jsx)("button",{className:"cm-cal-clear",onClick:()=>{l({checkin:null,checkout:null}),j("checkin")},children:"Clear"})]}),(0,m.jsxs)("div",{className:"cm-cal-two-months",children:[(0,m.jsx)(A,{year:u,month:x,showPrev:!0,onPrev:()=>{0===x?(v(11),p(e=>e-1)):v(e=>e-1)}
1,showNext:h,onNext:h?N:void 0,checkin:a,checkout:s,onDayClick:k}),!h&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"cm-cal-divider"}),(0,m.jsx)(A,{year:y.year,month:y.month,showNext:!0,onNext:N,checkin:a,checkout:s,onDayClick:k})]})]}),a&&s&&(0,m.jsxs)("div",{className:"cm-cal-nights",children:[s.diff(a,"day")," night",1!==s.diff(a,"day")?"s":"","\xa0\xb7\xa0",a.format("DD MMM")," \u2013 ",s.format("DD MMM 'YY")]})]})]}),document.body)}function I(e){const t=[...e.images||[],...e.HotelImages||[],...e.hotelImages||[]].map(e=>(null===e||void 0===e?void 0:e.cdnImageUrl)||(null===e||void 0===e?void 0:e.imageUrl)||(null===e||void 0===e?void 0:e.url)||("string"===typeof e?e:null)).filter(Boolean);return!t.length&&e.image&&t.push(e.image),!t.length&&e.thumbnailUrl&&t.push(e.thumbnailUrl),!t.length&&e.coverImage&&t.push(e.coverImage),t}function M(e){let{hotel:t,name:a}=e;const[s,r]=(0,o.useState)(0),l=(0,o.useRef)(null),n=I(t),c=n.length;if(0===c)return(0,m.jsx)("div",{className:"cm-resort-img-placeholder",children:"\ud83c\udfe8"});const i=(()=>{if(c<=5)return n.map((e,t)=>t);let e=Math.max(0,s-Math.floor(2.5));return e+5>c&&(e=c-5),Array.from({length:5},(t,a)=>e+a)})();return(0,m.jsxs)("div",{className:"cm-carousel",onTouchStart:e=>{l.current=e.touches[0].clientX},onTouchEnd:e=>{if(null===l.current)return;const t=l.current-e.changedTouches[0].clientX;Math.abs(t)>40&&r(e=>t>0?(e+1)%c:(e-1+c)%c),l.current=null},children:[(0,m.jsx)("div",{className:"cm-carousel-track",style:{transform:"translateX(-".concat(100*s,"%)")},children:n.map((e,t)=>(0,m.jsx)("img",{src:e,alt:"".concat(a," ").concat(t+1),className:"cm-carousel-img",loading:0===t?"eager":"lazy"},t))}),c>1&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("button",{className:"cm-carousel-arrow cm-carousel-arrow--prev",onClick:e=>{e.stopPropagation(),r(e=>(e-1+c)%c)},"aria-label":"Previous image",children:"\u2039"}),(0,m.jsx)("button",{className:"cm-carousel-arrow cm-carousel-arrow--next",onClick:e=>{e.stopPropagation(),r(e=>(e+1)%c)},"aria-label":"Next image",children:"\u203a"}),(0,m.jsx)("div",{className:"cm-carousel-dots",children:i.map(e=>(0,m.jsx)("button",{className:"cm-carousel-dot".concat(e===s?" cm-carousel-dot--active":""),onClick:t=>{t.stopPropagation(),r(e)},"aria-label":"Image ".concat(e+1)},e))})]})]})}function S(e){let{hotel:t,checkin:a,checkout:s}=e;const o=(0,n.useHistory)(),r=[t.city,t.state].filter(Boolean).join(", ");return(0,m.jsxs)("div",{className:"cm-resort-card",children:[(0,m.jsxs)("div",{className:"cm-resort-img-wrap",children:[(0,m.jsx)(M,{hotel:t,name:t.name}),t.rating>0&&(0,m.jsxs)("div",{className:"cm-resort-rating",children:["\u2605 ",Number(t.rating).toFixed(1)]})]}),(0,m.jsxs)("div",{className:"cm-resort-body",children:[(0,m.jsx)("div",{className:"cm-resort-name",children:t.name}),r&&(0,m.jsxs)("div",{className:"cm-resort-location",children:[(0,m.jsx)("svg",{className:"cm-resort-pin",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,m.jsx)("path",{d:"M8 1C5.24 1 3 3.24 3 6c0 3.75 5 9 5 9s5-5.25 5-9c0-2.76-2.24-5-5-5zm0 6.75A1.75 1.75 0 1 1 8 4.25a1.75 1.75 0 0 1 0 3.5z",fill:"
1currentColor"})}),r]}),(0,m.jsx)("button",{className:"cm-resort-book-btn",onClick:()=>o.push(N(t,a,s)),children:"Book Now"})]})]})}const D=[{icon:(0,m.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,m.jsx)("path",{d:"M12 2L3 6v6c0 5.25 3.75 10.15 9 11.25C17.25 22.15 21 17.25 21 12V6L12 2z"}),(0,m.jsx)("polyline",{points:"9 12 11 14 15 10"})]}),title:"Best Rate Guarantee",desc:"Save 10% on any online rates. Contact [email protected] for more details."},{icon:(0,m.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,m.jsx)("path",{d:"M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0z"}),(0,m.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),title:"140+ Resorts Across India",desc:"Discover premium resorts in the most scenic destinations from the Himalayas to the coast."},{icon:(0,m.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,m.jsx)("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"}),(0,m.jsx)("line",{x1:"1",y1:"10",x2:"23",y2:"10"})]}),title:"No Hidden Charges",desc:"Transparent pricing \u2014 no OTA fees, no surprises. Book directly with Club Mahindra."},{icon:(0,m.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,m.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),(0,m.jsx)("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),(0,m.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),(0,m.jsx)("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),title:"Flexible Dates",desc:"Modify your stay with ease \u2014 hassle-free date changes designed around your schedule."},{icon:(0,m.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:(0,m.jsx)("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})}),title:"Exclusive In-Resort Experiences",desc:"Curated cultural, adventure and wellness activities available exclusively at our resorts."},{icon:(0,m.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:(0,m.jsx)("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.7 13.5 19.79 19.79 0 0 1 1.64 5C1.62 3.92 2.45 3 3.5 3H6.5a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L7.41 11a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 21 17.5z"})}),title:"Direct Guest Support",desc:"Our team is available Mon\u2013Sun, 9:30 AM\u20139:30 PM to assist you before and during your stay."}];function R(){const e=(0,o.useRef)(null),t=(0,o.useRef)(null),[a,s]=(0,o.useState)(!1),[r,l]=(0,o.useState)(!0),n=t=>{const s=e.current;if(!s)return;const o=s.querySelector(".cm-wbw-card"),l=o?o.offsetWidth+20:300;1!==t||r?-1!==t||a?s.scrollBy({left:t*l,behavior:"smooth"}):s.scrollTo({left:s.scrollWidth,behavior:"smooth"}):s.scrollTo({left:0,behavior:"smooth"})};return(0,m.jsx)("section",{className:"cm-wbw",children:(0,m.jsxs)("div",{className:"cm-wbw-inner",children:[(0,m.jsxs)("div",{className:"cm-wbw-heading-row",children:[(0,m.jsx)("div",{className:"cm-wbw-eyebrow",children:"Direct Booking Advantages"}),(0,m.jsx)("h2",{className:"cm-wbw-title",children:"Why Book With Us?"})]}),(0,m.jsxs)("div",{className:"cm-wbw-carousel-wrap",children:[(0,m.jsx)("button",{className:"cm-wbw-arrow cm-wbw-arrow--prev".concat(a?"":" cm-wbw-arrow--dim"),onClick:()=>n(-1),"aria-label":"Previous",children:"\u2039"}),(0,m.jsx)("div",{className:"cm-wbw-track",ref:e,onScroll:()=>{const t=e.current;t&&(s(t.scrollLeft>4),l(t.scrollLeft<t.scrollWidth-t.clientWidth-4))},onTouchStart:e=>{t.current=e.touches[0].clientX},onTouchEnd:e=>{if(null===t.current)return;const a=t.current-e.changedTouches[0].clientX;Math.abs(a)>40&&n(a>0?1:-1),t.current=null},children:D.map((e,t)=>(0,m.jsxs)("div",{className:"cm-wbw-card",children:[(0,m.jsx)("div",{className:"cm-wbw-card-icon",children:e.icon}),(0,m.jsx)("div",{className:"cm-wbw-card-title",children:e.title}),(0,m.jsx)("div",{className:"cm-wbw-card-desc",children:e.desc})]},t))}),(0,m.jsx)("button",{className:"cm-wbw-arrow cm-wbw-arrow--next".concat(r?"":" cm-wbw-arrow--dim"),onClick:()=>n(1),"aria-label":"Next",children:"\u203a"})]})]})})}const L=()=>{const e=(0,n.useHistory)(),t=(0,n.useLocation)(),a=(0,o.useRef)(null),s=(0,o.useRef)(null),r=(0,o.useRef)(null),c=(0,o.useRef)(null),i=(0,o.useRef)(null),h=(0,o.useRef)(null),u=(0,o.useRef)(null),[x,j]=(0,o.useState)(!1),[f,b]=(0,o.useState)(""),[w,A]=(0,o.useState)(null),[I,M]=(0,o.useState)(null),[D,L]=(0,o.useState)(!1),[T,B]=(0,o.useState)(!1),[E,_]=(0,o.useState)(null),[P,W]=(0,o.useState)(/\/offers\/?$/.test(t.pathname)?"monsoon":"all"),[z,H]=(0,o.useState)(""),[O,Y]=(0,o.useState)([]),[U,F]=(0,o.useState)(!0),[q,G]=(0,o.useState)(!1);(0,o.useEffect)(()=>{const e=document.querySelector("link[rel~='icon']"),t=(null===e||void 0===e?void 0:e.href)||null;let a=e;return a||(a=document.createElement("link"),a.rel="icon",document.head.appendChild(a)),a.href="https://ik.imagekit.io/hotelzifyprod/download_91133630-249a-422b-b977-9dd769f17ea0.png",()=>{t?a.href=t:a.remove()}},[]),(0,o.useEffect)(()=>{(0,d.j$)(22).then(e=>{var t;const a=(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.hotels)||(null===e||void 0===e?void 0:e.data)||e||[],s=Array.isArray(a)?a:[];s.length>0&&console.log("[CM] sample resort keys:",Object.keys(s[0]),"images:",s[0].images,"HotelImages:",s[0].HotelImages),Y(s)}).catch(()=>{}).finally(()=>F(!1))},[]),(0,o.useEffect)(()=>{const e=i.current;if(!e)return;const t=new IntersectionObserver(e=>{let[t]=e;return j(!t.isIntersecting)},{rootMargin:"-60px 0px 0px 0px"});return t.observe(e),()=>t.disconnect()},[]);(0,o.useEffect)(()=>{const e=e=>{var t,a;null!==(t=r.current)&&void 0!==t&&t.contains(e.target)||null!==(a=c.current)&&void 0!==a&&a.contains(e.target)||B(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const K=f.trim()?O.filter(e=>y(e,f)).slice(0,8):[],X=O.filter(e=>k(e,P)&&y(e,z)),J=e=>{b(e.name),_(e),B(!1)},V=()=>{E?e.push(N(E,w,I)):(H(f),W("all"),G(!1),setTimeout(()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.scrollIntoView({behavior:"smooth",block:"start"})},60))},Q=e=>{b(e.target.value),_(null),B(!0),e.target.value||H("")},$=()=>{b(""),H(""),_(null),W("all")};return(0,m.jsxs)("div",{className:"cm-landing",children:[(0,m.jsxs)(l.m,{children:[(0,m.jsx)("title",{children:"Club Mahindra Resorts | Book Direct on Official Website"}),(0,m.jsx)("meta",{name:"description",content:"Discover Club Mahindra resorts across India. Book your stay direct for the best rates, last-room availability, and exclusive member offers."}),(0,m.jsx)("link",{rel:"canonical",href:"https://stay.clubmahindra.com"}),(0,m.jsx)("meta",{property:"og:title",content:"Club Mahindra Resorts | Official Website"}),(0,m.jsx)("meta",{property:"og:type",content:"website"}),(0,m.jsx)("meta",{property:"og:url",content:"https://stay.clubmahindra.com"})]}),(0,m.jsxs)("header",{className:"cm-header".concat(x?" cm-header--search":""),children:[(0,m.jsx)("img",{src:"https://clubmahindra.gumlet.io/themes/prospect/assets/images/logo-new-black.svg?w=200&dpr=1.0",alt:"Club Mahindra",className:"cm-header-logo"}),x&&(0,m.jsxs)("div",{className:"cm-header-search-widget cm-header-search-widget--desktop",children:[(0,m.jsxs)("div",{className:"cm-header-sf",ref:u,children:[(0,m.jsx)("div",{className:"cm-header-sf-label",children:"Destination"}),(0,m.jsx)("input",{className:"cm-header-dest-input",type:"text",placeholder:"Where would you like to go?",value:f,onChange:Q,onFocus:()=>f.trim()&&!E&&B(!0),onKeyDown:e=>"Enter"===e.key&&V(),autoComplete:"off"}),T&&K.length>0&&(0,m.jsx)("div",{className:"cm-suggestions",ref:c,children:K.map(e=>(0,m.jsxs)("div",{className:"cm-suggestion-item",onMouseDown:()=>J(e),children:[(0,m.jsx)("span",{className:"cm-sug-icon",children:"\ud83c\udfe8"}),(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:"cm-sug-name",children:e.name}),(0,m.jsx)("div",{className:"cm-sug-loc",children:[e.city,e.state].filter(
1Boolean).join(", ")})]})]},e.id))})]}),(0,m.jsxs)("div",{className:"cm-header-date-field",ref:h,onClick:()=>L(!0),children:[(0,m.jsxs)("div",{className:"cm-header-date-col",children:[(0,m.jsx)("span",{className:"cm-header-sf-label",children:"Check-in"}),(0,m.jsx)("span",{className:"cm-header-date-val".concat(w?"":" cm-date-ph"),children:w?w.format("DD MMM 'YY"):"Add date"})]}),(0,m.jsx)("span",{className:"cm-date-sep",children:"\u2192"}),(0,m.jsxs)("div",{className:"cm-header-date-col",children:[(0,m.jsx)("span",{className:"cm-header-sf-label",children:"Check-out"}),(0,m.jsx)("span",{className:"cm-header-date-val".concat(I?"":" cm-date-ph"),children:I?I.format("DD MMM 'YY"):"Add date"})]})]}),(0,m.jsx)("button",{className:"cm-header-search-cta",onClick:V,children:"Search"})]}),x&&(0,m.jsxs)("button",{className:"cm-header-search-pill",onClick:()=>{var e;null===(e=i.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{var e,t;return null===(e=r.current)||void 0===e||null===(t=e.querySelector("input"))||void 0===t?void 0:t.focus()},450)},children:[(0,m.jsx)("span",{className:"cm-header-pill-dest",children:f||"Where to go?"}),(0,m.jsx)("span",{className:"cm-header-pill-cta",children:"Search"})]}),(0,m.jsxs)("div",{className:"cm-header-right",children:[(0,m.jsx)("button",{className:"cm-header-agent-login",onClick:()=>e.push("/corporate-booking?chainId=".concat(22)),children:"Login"}),!x&&(0,m.jsx)("div",{className:"cm-header-tagline",children:"Direct Booking \xb7 Best Rates Guaranteed"})]})]}),D&&x&&(0,m.jsx)(C,{anchorRef:h,checkin:w,checkout:I,onChange:e=>{let{checkin:t,checkout:a}=e;A(t),M(a)},onClose:()=>L(!1),fixed:!0}),(0,m.jsx)("section",{className:"cm-hero",children:(0,m.jsxs)("div",{className:"cm-hero-inner",children:[(0,m.jsx)("h1",{className:"cm-hero-title",children:"Discover India's Finest Holiday Resorts"}),(0,m.jsx)("p",{className:"cm-hero-subtitle",children:"Book directly for the best rates & exclusive offers"}),(0,m.jsxs)("div",{className:"cm-search-widget",ref:i,children:[(0,m.jsxs)("div",{className:"cm-search-field",ref:r,children:[(0,m.jsx)("div",{className:"cm-search-field-label",children:"Destination"}),(0,m.jsx)("input",{className:"cm-destination-input",type:"text",placeholder:"Where would you like to go?",value:f,onChange:Q,onFocus:()=>f.trim()&&!E&&B(!0),onKeyDown:e=>"Enter"===e.key&&V(),autoComplete:"off"}),T&&K.length>0&&(0,m.jsx)("div",{className:"cm-suggestions",ref:c,children:K.map(e=>(0,m.jsxs)("div",{className:"cm-suggestion-item",onMouseDown:()=>J(e),children:[(0,m.jsx)("span",{className:"cm-sug-icon",children:"\ud83c\udfe8"}),(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:"cm-sug-name",children:e.name}),(0,m.jsx)("div",{className:"cm-sug-loc",children:[e.city,e.state].filter(Boolean).join(", ")})]})]},e.id))})]}),(0,m.jsxs)("div",{className:"cm-search-field cm-date-field",ref:s,onClick:()=>L(!0),children:[(0,m.jsxs)("div",{className:"cm-date-col",children:[(0,m.jsx)("span",{className:"cm-search-field-label",children:"Check-in"}),(0,m.jsx)("span",{className:"cm-date-val".concat(w?"":" cm-date-ph"),children:w?w.format("DD MMM 'YY"):"Add date"})]}),(0,m.jsx)("span",{className:"cm-date-sep",children:"\u2192"}),(0,m.jsxs)("div",{className:"cm-date-col",children:[(0,m.jsx)("span",{className:"cm-search-field-label",children:"Check-out"}),(0,m.jsx)("span",{className:"cm-date-val".concat(I?"":" cm-date-ph"),children:I?I.format("DD MMM 'YY"):"Add date"})]})]}),(0,m.jsx)("button",{className:"cm-search-btn",onClick:V,children:"Search"})]}),D&&!x&&(0,m.jsx)(C,{anchorRef:s,checkin:w,checkout:I,onChange:e=>{let{checkin:t,checkout:a}=e;A(t),M(a)},onClose:()=>L(!1)})]})}),(0,m.jsx)("section",{className:"cm-explore",ref:a,id:"cm-resorts",children:(0,m.jsxs)("div",{className:"cm-explore-inner",children:[(0,m.jsx)("div",{className:"cm-explore-heading-row",children:(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:"cm-explore-eyebrow",children:"140+ Resorts Across India"}),(0,m.jsx)("h2",{className:"cm-explore-title",children:"Find Your Perfect Escape"})]})}),(0,m.jsx)("div",{className:"cm-explore-label",children:"Browse by Region"}),(0,m.jsx)("div",{className:"cm-explore-buttons",children:g.map(a=>(0,m.jsx)("button",{className:"cm-explore-btn".concat(P===a.value?" cm-explore-btn--active":""),onClick:()=>{W(a.value),H(""),b(""),_(null),G(!1);const s=t.pathname.replace(/\/offers\/?$/,"").replace(/\/+$/,"")||"/",o="monsoon"===a.value?"/"===s?"/offers":"".concat(s,"/offers"):s;t.pathname!==o&&e.push(o)},children:a.label},a.value))}),z&&(0,m.jsxs)("div",{className:"cm-search-applied",children:['Results for "',(0,m.jsx)("strong",{children:z}),'"',(0,m.jsx)("button",{onClick:$,children:"\u2715 Clear"})]}),U?(0,m.jsx)("div",{className:"cm-resorts-grid",children:[1,2,3,4,5,6].map(e=>(0,m.jsx)("div",{className:"cm-resort-skeleton"},e))}):X.length>0?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"cm-resorts-grid",children:(q?X:X.slice(0,6)).map(e=>(0,m.jsx)(S,{hotel:e,checkin:w,checkout:I},e.id))}),X.length>6&&(0,m.jsx)("div",{className:"cm-show-all-wrap",children:(0,m.jsx)("button",{className:"cm-show-all-btn",onClick:()=>G(e=>!e),children:q?"Show Less":"Show All Resorts (".concat(X.length,")")})})]}):(0,m.jsxs)("div",{className:"cm-resorts-empty",children:["No resorts found",z?' for "'.concat(z,'"'):"",".",(0,m.jsx)("button",{onClick:$,children:"Show all"})]})]})}),(0,m.jsx)(R,{}),(0,m.jsx)("section",{className:"cm-features",children:(0,m.jsx)("div",{className:"cm-features-panels",children:(0,m.jsxs)("div",{className:"cm-features-full",children:[(0,m.jsx)("h2",{className:"cm-feat-heading cm-feat-heading--dark",children:"What's Included"}),(0,m.jsx)("div",{className:"cm-amenities-marquee-wrap",children:(0,m.jsx)("div",{className:"cm-amenities-marquee",children:[...p,...p].map((e,t)=>(0,m.jsxs)("div",{className:"cm-amenity-item","aria-hidden":t>=p.length,children:[(0,m.jsx)("span",{className:"cm-amenity-icon",children:v[t%p.length]}),(0,m.jsx)("div",{className:"cm-amenity-label",children:e.label})]},t))})}),(0,m.jsx)("div",{className:"cm-tnc",children:"*Terms & conditions apply"})]})})}),(0,m.jsxs)("footer",{className:"cm-footer",children:[(0,m.jsx)("div",{className:"cm-footer-contact-bar",children:(0,m.jsx)("div",{className:"cm-footer-inner",children:(0,m.jsxs)("div",{className:"cm-footer-contact-row",children:[(0,m.jsx)("div",{className:"cm-footer-logo-social",children:(0,m.jsx)("img",{src:"https://clubmahindra.gumlet.io/themes/prospect/assets/images/logo-new-black.svg?w=200&dpr=1.0",alt:"Club Mahindra",className:"cm-footer-logo-img"})}),(0,m.jsxs)("div",{className:"cm-footer-numbers cm-footer-numbers--3col",children:[(0,m.jsxs)("div",{className:"cm-footer-num-group",children:[(0,m.jsx)("span",{className:"cm-footer-num-label",children:"Contact Us"}),(0,m.jsx)("span",{className:"cm-footer-num",children:"+91 9769041111"}),(0,m.jsx)("span",{className:"cm-footer-num-hours",children:"Mon\u2013Sun \xa0|\xa0 9:30 AM \u2013 9:30 PM IST"})]}),(0,m.jsxs)("div",{className:"cm-footer-num-group",children:[(0,m.jsx)("span",{className:"cm-footer-num-label",children:"WhatsApp"}),(0,m.jsx)("span",{className:"cm-footer-num",children:"+91 92409 41111"})]}),(0,m.jsxs)("div",{className:"cm-footer-num-group",children:[(0,m.jsx)("span",{className:"cm-footer-num-label",children:"Email"}),(0,m.jsx)("a",{href:"mailto:[email protected]",className:"cm-footer-email",children:"[email protected]"})]})]})]})})}),(0,m.jsx)("div",{className:"cm-footer-links-section",children:(0,m.jsx)("div",{className:"cm-footer-inner",children:(0,m.jsxs)("div",{className:"cm-footer-links-grid cm-footer-links-grid--4",children:[(0,m.jsxs)("div",{className:"cm-footer-link-col",children:[(0,m.jsx)("div",{className:"cm-footer-col-heading",children:"About Us"}),(0,m.jsxs)("ul",{children:[(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/company-overview",target:"_blank",rel:"noreferrer",children:"Company Overview"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/awards",target:"_blank",rel:"noreferrer",children:"Awards"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/careers",target:"_blank",rel:"noreferrer",children:"Careers"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/leadership",target:"_blank",rel:"noreferrer",children:"Leadership"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/csr",target:"_blank",rel:"noreferrer",children:"CSR"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/partner-with-us",target:"_blank",rel:"noreferrer",children:"Partner With Us"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/privacy-policy",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/Terms-and-Conditions",target:"_blank",rel:"noreferrer",children:"Terms of Use"})})]})]}),(0,m.jsxs)("div",{className:"cm-footer-link-col",children:[(0,m.jsx)("div",{className:"cm-footer-col-heading",children:"Social"}),(0,m.jsxs)("ul",{className:"cm-footer-social-list",children:[(0,m.jsx)("li",{children:(0,m.jsxs)("a",{href:"https://www.facebook.com/clubmahindra",target:"_blank",rel:"noreferrer",children:[(0,m.jsx)("svg",{viewBox:"0 0 24 24",fill:"
1currentColor",children:(0,m.jsx)("path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"})}),"Facebook"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("a",{href:"https://instagram.com/clubmahindra",target:"_blank",rel:"noreferrer",children:[(0,m.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,m.jsx)("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"}),(0,m.jsx)("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),(0,m.jsx)("line",{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"})]}),"Instagram"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("a",{href:"https://www.youtube.com/ClubMahindraHolidays",target:"_blank",rel:"noreferrer",children:[(0,m.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:[(0,m.jsx)("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.95-1.96C18.88 4 12 4 12 4s-6.88 0-8.59.46A2.78 2.78 0 0 0 1.46 6.42 29 29 0 0 0 1 12a29 29 0 0 0 .46 5.58 2.78 2.78 0 0 0 1.95 1.96C5.12 20 12 20 12 20s6.88 0 8.59-.46a2.78 2.78 0 0 0 1.95-1.96A29 29 0 0 0 23 12a29 29 0 0 0-.46-5.58z"}),(0,m.jsx)("polygon",{points:"9.75 15.02 15.5 12 9.75 8.98 9.75 15.02",fill:"#fff"})]}),"YouTube"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("a",{href:"https://twitter.com/clubmahindra",target:"_blank",rel:"noreferrer",children:[(0,m.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,m.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"Twitter / X"]})})]})]}),(0,m.jsxs)("div",{className:"cm-footer-link-col",children:[(0,m.jsx)("div",{className:"cm-footer-col-heading",children:"Our Resorts"}),(0,m.jsxs)("ul",{children:[(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/resorts/terrain/hill-station-resorts",target:"_blank",rel:"noreferrer",children:"Hill Stations"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/resorts/terrain/beach-resorts",target:"_blank",rel:"noreferrer",children:"Beach Resorts"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/resorts/terrain/jungle-resorts",target:"_blank",rel:"noreferrer",children:"Jungle Resorts"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/resorts/terrain/waterfront-resorts",target:"_blank",rel:"noreferrer",children:"Waterfront Resorts"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/resorts/terrain/city-resorts",target:"_blank",rel:"noreferrer",children:"City Resorts"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/resorts/resorts-in-north",target:"_blank",rel:"noreferrer",children:"Resorts in North"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/resorts/resorts-in-south",target:"_blank",rel:"noreferrer",children:"Resorts in South"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/resorts/international-resorts",target:"_blank",rel:"noreferrer",children:"International Resorts"})})]})]}),(0,m.jsxs)("div",{className:"cm-footer-link-col",children:[(0,m.jsx)("div",{className:"cm-footer-col-heading",children:"Keystone"}),(0,m.jsxs)("ul",{children:[(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/keystone",target:"_blank",rel:"noreferrer",children:"What is Keystone?"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/keystone/plans?filterTab=ebony",target:"_blank",rel:"noreferrer",children:"Ebony Key"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/keystone/plans?filterTab=ivory",target:"_blank",rel:"noreferrer",children:"Ivory Key"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/keystone/plans?filterTab=jade",target:"_blank",rel:"noreferrer",children:"Jade Key"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/keystone/plans",target:"_blank",rel:"noreferrer",children:"All Plans"})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://www.clubmahindra.com/memberships/member-testimonials-reviews",target:"_blank",rel:"noreferrer",children:"Member Reviews"})})]})]})]})})}),(0,m.jsx)("div",{className:"cm-footer-bottom-bar",children:(0,m.jsx)("div",{className:"cm-footer-inner",children:(0,m.jsxs)("div",{className:"cm-footer-bottom",children:[(0,m.jsxs)("span",{className:"cm-footer-copy",children:["\xa9 ",(new Date).getFullYear()," Mahindra Holidays & Resorts India Ltd. All rights reserved."]}),(0,m.jsx)("span",{className:"cm-footer-powered",children:"Powered by Hotelzify"})]})})})]})]})}},3976:(e,t,a)=>{a.d(t,{Ak:()=>T,C8:()=>m,CN:()=>je,DE:()=>C,EI:()=>re,Eh:()=>Y,GO:()=>u,GR:()=>f,IB:()=>be,Jq:()=>Ne,Jy:()=>E,L3:()=>L,Lo:()=>D,MF:()=>G,MQ:()=>Z,N7:()=>J,O2:()=>q,P$:()=>ee,PG:()=>p,PH:()=>y,PU:()=>te,QD:()=>I,Qn:()=>l,Qo:()=>c,RT:()=>z,RU:()=>ye,TP:()=>he,US:()=>H,Vz:()=>W,Wk:()=>O,Xr:()=>ce,Yy:()=>j,Z1:()=>M,Zf:()=>n,_B:()=>ge,aK:()=>k,aO:()=>x,be:()=>ke,bx:()=>N,cc:()=>le,cp:()=>de,dP:()=>X,eQ:()=>v,fj:()=>pe,h0:()=>ne,hK:()=>F,iR:()=>ve,j$:()=>we,jR:()=>me,ls:()=>ue,mA:()=>g,mI:()=>d,mN:()=>ie,nC:()=>i,r3:()=>R,rC:()=>w,t3:()=>P,tO:()=>$,te:()=>B,th:()=>ae,uB:()=>V,uR:()=>se,um:()=>U,x7:()=>A,xD:()=>S,xp:()=>K,yD:()=>xe,yJ:()=>oe,yQ:()=>b,yX:()=>_,yZ:()=>fe,zr:()=>h,zv:()=>Q});var s=a(9379),o=(a(854),a(666)),r=a(6471);const l=(e,t)=>
1{if(r.A.isCorporateBooking()){const a=r.A.getAvailabilityEndpoint(!1);return r.A.get(a,(0,s.A)((0,s.A)({},e),{},{ln:t}))}return o.A.get("hotel/v2/hotel/availability",(0,s.A)((0,s.A)({},e),{},{ln:t}))},n=e=>o.A.get("payments/v1/gateways/hotel",e),c=(e,t,a)=>o.A.get("payments/v1/gateways/hotel",(0,s.A)((0,s.A)({},e),{},{contextType:t,contextValue:a})),i=e=>o.A.post("users/v1/getOrCreateCustomerBookingToken",e),d=e=>o.A.post("hotel/authorised/v1/bookings",e),h=e=>o.A.post("payments/authorized/v2/order/",e),m=e=>o.A.post("payments/authorized/v2/order/success",e),u=e=>o.A.post("payments/v1/gift-cards/reverse-voucher-on-dismiss",e),p=e=>o.A.get("hotel/v1/bookings",e),x=e=>o.A.get("hotel/v1/bookings",e),v=e=>o.A.get("hotel/v2/bookings",e),g=(e,t)=>o.A.put("hotel/v1/hotel/".concat(e,"/view"),t),j=(e,t)=>o.A.put("hotel/v1/hotel/".concat(e,"/whatsapp"),t),f=e=>o.A.get("hotel/v1/hotel/reviews?placeId=".concat(e)),b=e=>o.A.get("hotel/v2/hotel/reviews?hotelId=".concat(e)),w=(e,t,a)=>o.A.get("/hotel/v2/hotel/nearby-locations?latitude=".concat(t,"&longitude=").concat(a,"&hotelId=").concat(e)),y=()=>o.A.get("hotel/authorised/v2/hotel/lookups?type=pending_reason&ln=en"),k=e=>o.A.post("hotel/authorised/v1/abandonReason",e),N=e=>o.A.get("hotel/v1/hotel/instagramData?userName=".concat(e)),A=e=>o.A.get("hotel/v2/promotions/get-promotion?hotelId=".concat(e)),C=e=>o.A.get("hotel/v2/promotions/get-promotion",e),I=e=>o.A.get("hotel/authorized/v2/promotions/get-memberdeal-promotions",e),M=e=>o.A.get("hotel/v1/faq/get-faq?hotelId=".concat(e)),S=e=>o.A.post("hotel/v1/faq/add-faq",e),D=(e,t)=>o.A.get("hotel/v2/hotel/policies/".concat(e,"?ln=").concat(t)),R=e=>o.A.post("hotel/v1/bookings/cancel",e),L=e=>o.A.post("hotel/v1/bookings/cancel/info",e),T=e=>o.A.get("payments/authorised/v2/order/paymentDetails?bookingId=".concat(e)),B=(e,t)=>o.A.put("hotel/v1/hotel/".concat(e,"/").concat(t)),E=e=>o.A.post("hotel/v1/bookings/confirmation",e),_=e=>o.A.post("hotel/v1/hotel/travel-planner",e),P=(e,t)=>o.A.get("hotel/v1/hotel/is-lowest?hotelId=".concat(e,"&checkIn=").concat(t)),W=(e,t)=>o.A.get("hotel/v1/bookings/autofill?dialCode=".concat(e,"&mobile=").concat(t)),z=e=>{const t=new URLSearchParams(e).toString();return o.A.get("hotel/v2/promotions/returning-member-promotion?".concat(t))},H=e=>o.A.post("hotel/v2/promotions/verify-sterling-member",e),O=e=>o.A.post("hotel/v1/abandonReason/price-enquiry",e),Y=e=>o.A.get("payments/v2/order/paymentDetails?bookingId=".concat(e)),U=e=>o.A.get("hotel/v1/profile/getProfile?hotelId=".concat(e)),F=()=>o.A.get("hotel/v1/hotel/slugs-list"),q=(e,t)=>o.A.get("hotel/v2/promotions/get-promotion-id?id=".concat(e,"&hotelId=").concat(t)),G=e=>o.A.get("hotel/v1/pricing_and_inventory/calendar-list",e),K=e=>o.A.get("payments/v1/tax/list?hotelId=".concat(e,"&page=1&pageSize=100&getDefaultTaxes=false")),X=e=>o.A.post("hotel/v1/bookings/prices-logs",e),J=e=>o.A.post("hotel/v1/bookings/is-room-available",e),V=e=>o.A.post("hotel/v2/promotions/validate-coupon-codes",e),Q=e=>o.A.get("hotel/v2/bookings/".concat(e)),$=e=>o.A.post("hotel/authorised/v1/bookings/modify-booking",e),Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s="payments/v1/gateways/payment-provider?hotelId=".concat(e);return t&&(s+="&contextType=".concat(t)),a&&(s+="&contextValue=".concat(a)),o.A.get(s)},ee=e=>localStorage.getItem("corporateToken")?o.A.get("hotel/v1/corporate/agents/".concat(e)):Promise.resolve({status:404,data:null}),te=e=>o.A.get("/hotel/v1/hotel/bnpl-config?hotelId=".concat(e)),ae=e=>o.A.get("hotel/v1/chatbot/scripttag?hotelId=".concat(e)),se=e=>o.A.post("hotel/v1/hotel/scraper/get-latest-price",e),oe=e=>o.A.get("hotel/v2/promotions/retargeting-promotion-hotel?hotelId=".concat(e)),re=e=>o.A.post("users/v1/otpCreateLoginAccount",e),le=e=>o.A.post("users/v1/otpLoginAccount",e),ne=e=>o.A.post("users/v1/verifyOtpLoginAccount",e),ce=e=>o.A.post("users/v1/verifyOtpCreateLoginAccount",e),ie=e=>o.A.post("hotel/v2/bookings/is-rooms-available",e),de=e=>o.A.post("hotel/v1/hotel/inventory-retargtting",e),he=e=>o.A.get("hotel/v1/hotel/get-videos?hotelId=".concat(e)),me=e=>o.A.post("hotel/v1/chatbot/request-voice-callback",e),ue=e=>o.A.get("hotel/v1/bookings?id=".concat(e)),pe=e=>{let{bookingId:t}=e;return o.A.post("hotel/v2/bookings/".concat(t,"/booking-token"))},xe=e=>{let{hotelId:t}=e;return o.A.get("payments/v1/gateways/cod-payment-provider?hotelId=".concat(t))},ve=e=>{let{hotelId:t,checkInDate:a}=e;return o.A.get("hotel/v1/custom-messages/active?hotelId=".concat(t,"&checkInDate=").concat(a))},ge=e=>o.A.post("hotel/v1/hotel/send-roi",e),je=e=>o.A.get("hotel/v1/pricing_and_inventory/next-available-dates",e),fe=e=>o.A.get("hotel/v1/hotel/booking-engine-config?hotelId=".concat(e)),be=(e,t,a)=>
1o.A.get("hotel/v2/hotel/nearby-hotels-availability?hotelId=".concat(e,"&checkInDate=").concat(t,"&checkOutDate=").concat(a)),we=e=>o.A.get("hotel/v2/hotel/chain-hotels-lite-v2?chainId=".concat(e)),ye=(e,t,a,s)=>o.A.post("hotel/v1/loyalty/validate",{programName:e,memberId:t,amount:a,hotelId:s}),ke=e=>o.A.post("payments/v1/gift-cards/balance",e),Ne=e=>{let{hotelId:t}=e;return o.A.get("payments/v1/gift-cards/enabled",{hotelId:t})}},4075:()=>{},6471:(e,t,a)=>{a.d(t,{A:()=>p});var s=a(9379),o=a(854),r=a.n(o),l=a(8173),n=a(5346),c=a(5989),i=a(6695);const d=r().create({baseURL:(h="https://api.hotelzify.com/",null!==h&&void 0!==h&&h.endsWith("/")?h.slice(0,-1):h)});var h;d.interceptors.request.use(e=>{const t=localStorage.getItem("corporateToken"),a=localStorage.getItem("corporateHotelId"),o=localStorage.getItem("corporateAgentId");if(console.log({corporateAgentId:o,corporateHotelId:a,corporateToken:t}),t&&a)e.headers.Authorization="Bearer ".concat(t),console.log({request:e}),"get"===e.method&&o&&(e.params=(0,s.A)((0,s.A)({},e.params),{},{corporateAgentId:o})),["post","put","patch"].includes(e.method)&&o&&e.data&&(e.data=(0,s.A)((0,s.A)({},e.data),{},{corporateAgentId:o}));else{const t=c.A.get("token");t&&(e.headers.Authorization="Bearer monne ".concat(t))}return e}),d.interceptors.response.use(null,e=>{const{status:t}=(null===e||void 0===e?void 0:e.response)||{};if(401===t){localStorage.removeItem("corporateToken"),localStorage.removeItem("corporateHotelId"),localStorage.removeItem("corporateAgentId"),c.A.remove("token");const e=new URLSearchParams(window.location.search),t=e.get("hotelId");e.get("corporate")&&t?window.location.href="/corporate-booking?hotelId=".concat(t,"&returnUrl=").concat(encodeURIComponent(window.location.pathname+window.location.search)):l.b.push("/")}return Promise.reject(e)});const m=async e=>{try{const{data:t}=await d(e);return 400===(null===t||void 0===t?void 0:t.status)&&(0,n.fireGtmEvent)("api_error",{url:null===e||void 0===e?void 0:e.url,params:null===e||void 0===e?void 0:e.params,payload:null===e||void 0===e?void 0:e.data,data:t}),t}catch(o){var t,a,s;if((null===o||void 0===o||null===(t=o.response)||void 0===t?void 0:t.status)>=500)(0,i.Cp)("API: ".concat(null===e||void 0===e||null===(s=e.url)||void 0===s?void 0:s.slice(0,30)," Failed!"),{data:{request:e,error:o}});return(0,n.fireGtmEvent)("api_error",{url:null===e||void 0===e?void 0:e.url,axiosObject:e,error:o}),(null===o||void 0===o||null===(a=o.response)||void 0===a?void 0:a.data)||{}}},u={get:(e,t)=>m({method:"GET",url:e,params:t}),post:(e,t)=>m({method:"POST",url:e,data:t}),put:(e,t)=>m({method:"PUT",url:e,data:t}),patch:(e,t)=>m({method:"PATCH",url:e,data:t}),delete:(e,t)=>m({method:"DELETE",url:e,data:t}),isCorporateBooking:()=>!!localStorage.getItem("corporateToken")&&!!localStorage.getItem("corporateHotelId"),getAvailabilityEndpoint:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return u.isCorporateBooking()?"hotel/authorized/v2/hotel/availability":e?"hotel/v2/hotel/availability/rateplan":"hotel/v2/hotel/availability"},clearCorporateSession:()=>{localStorage.clear()}},p=u}}]); 2//# sourceMappingURL=3444.d9aa480d.chunk.js.map
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.