PageSourceSearch

https://hotelzify.com/static/js/4905.5d799ade.chunk.js

js hotelzify.com collected 2026-10-01 15:35:49 UTC 31,679 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunklanding_page=self.webpackChunklanding_page||[]).push([[4905],{801:(e,l,n)=>{n.d(l,{VF:()=>r,ev:()=>t});const o=[{min:"minAdultCount",max:"maxAdultCount",label:"adult",plural:"adults"},{min:"minChildCount",max:"maxChildCount",label:"child",plural:"children"},{min:"minGuestCount",max:"maxGuestCount",label:"guest",plural:"guests"}],i=(e,l)=>{const n=null===e||void 0===e?void 0:e[l];if(null===n||void 0===n||""===n)return null;const o=Number(n);return Number.isFinite(o)?o:null},t=(e,l,n)=>{if(!(e=>o.some(l=>null!==i(e,l.min)||null!==i(e,l.max)))(e))return null;const t=Number(l);if(!Number.isFinite(t))return null;const r=Number.isFinite(Number(n))?Number(n):0,a={minAdultCount:t,maxAdultCount:t,minChildCount:r,maxChildCount:r,minGuestCount:t+r,maxGuestCount:t+r};for(const s of o){const l=i(e,s.min);if(null!==l&&a[s.min]<l)return"This coupon requires at least ".concat(l," ").concat(1===l?s.label:s.plural);const n=i(e,s.max);if(null!==n&&a[s.max]>n)return"This coupon allows at most ".concat(n," ").concat(1===n?s.label:s.plural)}return null},r=e=>{let{selectedRooms:l,selectedRatePlans:n,totalAdult:o,totalChild:i}=e;const t=null!==n&&void 0!==n&&n.length?n:null!==l&&void 0!==l&&l.length?l:null;if(!t)return{adultCount:o,childrenCount:i};let r=0,a=0;return t.forEach(e=>{r+=(null===e||void 0===e?void 0:e.sAdult)||0,a+=(null===e||void 0===e?void 0:e.sChild)||0}),{adultCount:r,childrenCount:a}}},2015:()=>{},4927:()=>{},6491:(e,l,n)=>{n.d(l,{$1:()=>x,DC:()=>m,HM:()=>v,Nz:()=>d,ON:()=>p});var o=n(446),i=n.n(o);let t=null,r=null,a=null,s=null;const d=function(e){let{propertyId:l,country:n,nearestAirport:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&(t=String(e),r=l||null,a=n||null,s=o||null)},c={47671:{containerId:"143",propertyId:"FORTUNEHOTELDEIRA",country:"AE",nearestAirport:"DXB"},47675:{containerId:"143",propertyId:"FORTUNEPARKHOTEL",country:"AE",nearestAirport:"DXB"},4571:{containerId:"143",propertyId:"FORTUNEATRIUMHOTEL",country:"AE",nearestAirport:"DXB"},47676:{containerId:"143",propertyId:"FORTUNEPLAZAHOTEL",country:"AE",nearestAirport:"DXB"},47679:{containerId:"143",propertyId:"DUBAIGRANDHOTEL",country:"AE",nearestAirport:"DXB"},4570:{containerId:"143",propertyId:"FORTUNEKARAMAHOTEL",country:"AE",nearestAirport:"DWC"}},p=(e,l)=>{var n;return l||(null===(n=c[e])||void 0===n?void 0:n.containerId)||null},u=e=>e?i()(e).format("YYYY-MM-DD"):"",h=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"!==typeof window&&window.sjn&&t)try{var n,o;const{checkInDate:i,checkOutDate:d,hotelId:p,hotelName:h,city:v,state:x,country:m,nearestAirport:f,numberOfRooms:y,numberOfTravelers:g,price:j,currency:_,discountCode:b,confirmationNumber:C}=l||{},w=p?c[p]:null,k={propertyID:(null===w||void 0===w?void 0:w.propertyId)||r||(p?String(p):""),property:h||"",city:v||"",state:x||"",country:(null===w||void 0===w?void 0:w.country)||a||m||"IN",nearestAirport:(null===w||void 0===w?void 0:w.nearestAirport)||s||f||"",checkInDate:u(i),checkOutDate:u(d),numberOfRooms:y||0,numberOfTravelers:g||0};"shoppingCart"!==e&&"conversion"!==e||(k.price=j||0,k.currency=_||"INR"),"conversion"===e&&(k.discountCode=b||"",k.confirmationNumber=C?String(C):""),console.log('[Sojern] firing "'.concat(e,'" | price=').concat(null!==(n=k.price)&&void 0!==n?n:"n/a"," currency=").concat(null!==(o=k.currency)&&void 0!==o?o:"n/a"," propertyID=").concat(k.propertyID)),console.log('[Sojern] "'.concat(e,'" full payload:'),{container:t,context:{vertical:"hotel"},params:k}),window.sjn("initAndFire","container",t,e,{context:{vertical:"hotel"},params:k}),console.log('[Sojern] "'.concat(e,'" event dispatched to window.sjn'))}catch(i){console.log('[Sojern] "'.concat(e,'" tracking failed'),i)}else console.log('[Sojern] skipped "'.concat(e,'" - not initialized yet'),l)},v=e=>{console.log("[Sojern] trackSojernSearch called",e),h("search",e)},x=e=>{console.log("[Sojern] trackSojernCart called",e),h("shoppingCart",e)},m=e=>{console.log("[Sojern] trackSojernConversion called",e),h("conversion",e)}},7070:(e,l,n)=>{n.d(l,{A:()=>w});var o=n(9379),i=n(5043),t=n(446),r=n.n(t),a=n(4117),s=n(5346),d=n(4462),c=n.n(d);const p="CheckOutCancellation_cancellation_headerBox__SiqPb",u="CheckOutCancellation_cancellationHeading__X6MEQ",h="CheckOutCancellation_progressBar__kJ8f4",v="CheckOutCancellation_circle__XP8TU",x="CheckOutCancellation_wrapper__1FFDg",m="CheckOutCancellation_landingPage__c
1ancellationPolicyContainer__2G4eD",f="CheckOutCancellation_mini__8UFWj",y="CheckOutCancellation_feeRow__y7VUC",g="CheckOutCancellation_tooltipContainer__5tnmH",j="CheckOutCancellation_tooltipTrigger__sq4qk",_="CheckOutCancellation_tooltip__4pwnv";var b=n(863),C=n(579);r().extend(c());const w=e=>{var l,n,t,d,c,w,k,N;let{cancellationPolicy:D,dateRange:A,noMargin:T,isMiniVersion:B=!1,paymentProvider:I,fullWidthList:S=!1}=e;const[R,M]=(0,i.useState)(!1),[L,O]=(0,i.useState)(!1),{t:E}=(0,a.Bd)(),P=r()(),F=null===D||void 0===D?void 0:D.map(e=>{var l,n,o,i,t;const a=parseInt(null!==e&&void 0!==e&&null!==(l=e.variables)&&void 0!==l&&l.daysBeforeArrival?null===e||void 0===e||null===(n=e.variables)||void 0===n?void 0:n.daysBeforeArrival:null===e||void 0===e?void 0:e.Days_Before,10),s=999==a?null:r()(null===A||void 0===A?void 0:A.startDate).subtract(a,"day"),d=999==a?"Non-refundable":null!==s&&void 0!==s&&s.isSame(null===A||void 0===A?void 0:A.startDate,"day")?"On":"From";return{policyDate:s,penalty:null!==(o=null===e||void 0===e||null===(i=e.variables)||void 0===i?void 0:i.chargedPercentage)&&void 0!==o?o:null===e||void 0===e?void 0:e.Penalty_Value,penaltyType:null!==(t=null===e||void 0===e?void 0:e.penalty_type)&&void 0!==t?t:"%",penaltyText:d,daysBeforeArrival:a}}).filter(e=>null!==e.policyDate&&(!e.policyDate||e.policyDate.isBefore(P,"day"))).sort((e,l)=>e.daysBeforeArrival-l.daysBeforeArrival)[0],z={daysBeforeArrival:null!==(l=null===F||void 0===F?void 0:F.daysBeforeArrival)&&void 0!==l?l:0,chargedPercentage:+(null===F||void 0===F?void 0:F.penalty)||0,policyDate:A,penalty:(null===F||void 0===F?void 0:F.penalty)||0,penaltyType:(null===F||void 0===F?void 0:F.penaltyType)||"%",penaltyText:(null===F||void 0===F?void 0:F.penaltyText)||E("before")},G=null===D||void 0===D?void 0:D.map(e=>{var l,n,o,i,t;const a=parseInt(null!==e&&void 0!==e&&null!==(l=e.variables)&&void 0!==l&&l.daysBeforeArrival?null===e||void 0===e||null===(n=e.variables)||void 0===n?void 0:n.daysBeforeArrival:null===e||void 0===e?void 0:e.Days_Before,10),s=999==a?r()():r()(null===A||void 0===A?void 0:A.startDate).subtract(a,"day"),d=999==a?"Non-refundable":null!==s&&void 0!==s&&s.isSame(null===A||void 0===A?void 0:A.startDate,"day")?"On":"From";return{policyDate:s,penalty:null!==(o=null===e||void 0===e||null===(i=e.variables)||void 0===i?void 0:i.chargedPercentage)&&void 0!==o?o:null===e||void 0===e?void 0:e.Penalty_Value,penaltyType:null!==(t=null===e||void 0===e?void 0:e.penalty_type)&&void 0!==t?t:"%",penaltyText:d,daysBeforeArrival:a}}).filter(e=>null!==e.policyDate&&(!e.policyDate||e.policyDate.isSameOrAfter(P,"day")));0===(null===G||void 0===G?void 0:G.length)&&G.push({policyDate:r()(null===A||void 0===A?void 0:A.startDate),penaltyType:"%",penaltyText:"Before",penalty:null===z||void 0===z?void 0:z.chargedPercentage,daysBeforeArrival:z.daysBeforeArrival});const H=(0,o.A)((0,o.A)({penalty:0,penaltyType:"%"},z),{},{policyDate:r()(null===A||void 0===A?void 0:A.startDate).subtract(Math.max(...G&&G.length>0?G.map(e=>e.daysBeforeArrival||0):[0]),"day"),penaltyText:E("before")}),U=r()(null===A||void 0===A?void 0:A.startDate).isSameOrAfter(P,"day")?(null===G||void 0===G?void 0:G.find(e=>0==e.penalty&&e.daysBeforeArrival>=z.daysBeforeArrival))||(null!==H&&void 0!==H&&H.penalty||null!==H&&void 0!==H&&null!==(n=H.policyDate)&&void 0!==n&&n.isBefore(r()(null===A||void 0===A?void 0:A.startDate).subtract(998,"day"))?null:H):null;(null===G||void 0===G?void 0:G.length)>0&&G.every(e=>0!==e.penalty)&&r()(null===A||void 0===A?void 0:A.startDate).isAfter(P,"day")&&null!==H&&void 0!==H&&null!==(t=H.policyDate)&&void 0!==t&&null!==(d=t.isSameOrAfter)&&void 0!==d&&d.call(t,P)&&G.unshift(H),null===G||void 0===G||G.sort((e,l)=>l.penalty-e.penalty),G&&G.length>0&&(G[0].endDate=r()(null===A||void 0===A?void 0:A.startDate));for(let o=1;o<(null===G||void 0===G?void 0:G.length);o++)G[o].endDate=G[o-1].policyDate;const W=(null===G||void 0===G||null===(c=G.sort((e,l)=>l.daysBeforeArrival-e.daysBeforeArrival))||void 0===c?void 0:c.find(e=>100==e.penalty))||(0,o.A)((0,o.A)({},z),{},{policyDate:r()(null===A||void 0===A?void 0:A.startDate).subtract(100==z.chargedPercentage?z.daysBeforeArrival:0,"day"),penaltyText:E("no_refund_if_cancelled_after")});return null!==W&&void 0!==W&&W.policyDate&&r()(null===W||void 0===W?void 0:W.policyDate).isBefore(P)&&(W.policyDate=(null===U||void 0===U?void 0:U.policyDate)||r()()),(0,C.jsxs)("div",{className:"landingPage__c
1ancellationPolicyContainer ".concat(m," ").concat(B?f:""),style:{width:T?"100%":"",padding:T?0:"20px 40px"},children:[(0,C.jsxs)("div",{className:p,style:{cursor:"pointer"},onClick:()=>{M(!R),R?(0,s.fireGtmEvent)("cancelClosedLandingPage"):(0,s.fireGtmEvent)("cancelViewedLandingPage")},children:[(0,C.jsxs)("div",{className:u,children:[(0,C.jsx)("h4",{children:E("cancellation_refund_policy")}),(0,C.jsx)("span",{children:"Tap to see cancellation policy & property rules."})]}),(0,C.jsx)(b.A,{size:24,style:{transform:R?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease",width:"30px",height:"30px",color:"#1764D1"}})]}),R&&(0,C.jsxs)("ul",{style:{width:S?"100%":void 0},children:[(0,C.jsxs)("div",{style:{color:"black",marginTop:"14px"},children:[U&&(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"8px",gap:"5px"},children:[(0,C.jsx)("span",{style:{display:"flex"},children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,C.jsx)("g",{"clip-path":"url(#clip0_508_4918)",children:(0,C.jsx)("path",{d:"M6.75 9L8.25 10.5L11.25 7.5M16.5 9C16.5 13.1421 13.1421 16.5 9 16.5C4.85786 16.5 1.5 13.1421 1.5 9C1.5 4.85786 4.85786 1.5 9 1.5C13.1421 1.5 16.5 4.85786 16.5 9Z",stroke:"#199713","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})}),(0,C.jsx)("defs",{children:(0,C.jsx)("clipPath",{id:"clip0_508_4918",children:(0,C.jsx)("rect",{width:"18",height:"18",fill:"white"})})})]})}),(0,C.jsxs)("span",{style:{fontSize:"14px"},children:[E("free_cancellation_until")," ",null===U||void 0===U||null===(w=U.policyDate)||void 0===w?void 0:w.format("D MMM, h:mm A")]})]}),W&&(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"8px",gap:"5px"},children:[(0,C.jsx)("span",{style:{display:"flex"},children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,C.jsx)("g",{"clip-path":"url(#clip0_508_4918)",children:(0,C.jsx)("path",{d:"M6.75 9L8.25 10.5L11.25 7.5M16.5 9C16.5 13.1421 13.1421 16.5 9 16.5C4.85786 16.5 1.5 13.1421 1.5 9C1.5 4.85786 4.85786 1.5 9 1.5C13.1421 1.5 16.5 4.85786 16.5 9Z",stroke:"#199713","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})}),(0,C.jsx)("defs",{children:(0,C.jsx)("clipPath",{id:"clip0_508_4918",children:(0,C.jsx)("rect",{width:"18",height:"18",fill:"white"})})})]})}),(0,C.jsxs)("span",{style:{fontSize:"14px"},children:[E("no_refund_if_cancelled_after")," ",W.policyDate.format("D MMM, h:mm A")]})]})]}),(0,C.jsx)("div",{className:"".concat(x," ").concat(B?f:""),style:{height:"100px",padding:"20px",flexShrink:"0",marginBottom:"50px",marginTop:"20px",borderRadius:"4px",border:"1px solid var(--Stroke, #D7D2D2)",background:"#FFF",boxShadow:"-52px 54px 21px 0px rgba(204, 199, 199, 0.00), -34px 35px 19px 0px rgba(204, 199, 199, 0.01), -19px 20px 16px 0px rgba(204, 199, 199, 0.05), -8px 9px 12px 0px rgba(204, 199, 199, 0.09), -2px 2px 7px 0px rgba(204, 199, 199, 0.10);"},children:(0,C.jsxs)("div",{className:"progressBar ".concat(h," ").concat(B?f:""),style:{height:"30px",position:"relative",margin:"0",borderRadius:"25px",overflow:"hidden"},children:[(0,C.jsx)("span",{className:"".concat(v," ").concat(B?f:""),style:{width:"8vw",height:"8vw",maxWidth:"15px",maxHeight:"15px",borderRadius:"50%",backgroundColor:"white",position:"absolute",top:"50%",left:"10px",transform:"translate(-50%, -50%)",zIndex:10,border:"2px solid #1870eb"}}),0===G.length?(0,C.jsx)("div",{className:"progressValue",style:{width:"100%",backgroundColor:"#f8ecc1",color:"#f08732"},children:(0,C.jsx)("span",{style:{color:"#f08732"},children:"Non-refundable"})}):Object.values(G.reduce((e,l)=>{const n=100-(null===l||void 0===l?void 0:l.penalty);return 100!=n||e.fullRefund?n>0&&n<100?null===e.partialRefund?e.partialRefund=l:e.partialRefund=e.partialRefund.penalty>l.penalty?e.partialRefund:l:0!=n||e.noRefund||(e.noRefund=l):e.fullRefund=l,e},{fullRefund:null,partialRefund:null,noRefund:null})).map((e,l)=>{var n;if(!e)return null;let o,i,t;const r=100-(null===e||void 0===e?void 0:e.penalty);return 100==r?(o="100% refund",i="#1870eb",t="white"):r>0&&r<100?(o="Partial refund",i="#eaf7ff",t="#3f8aef"):0==r&&(o="Non-refundable",i="#f8ecc1",t="#f08732"),(0,C.jsxs)("div",{className:"progressValue",style:{width:"".concat(null===e||void 0===e?void 0:e.width,"%"),background:i,borderTopLeftRadius:0===l?"10px":"",borderBottomLeftRadius:0===l?"10px":"",borderTopRightRadius:2===l?"10px":"",borderBottomRightRadius:2===l?"10px":""},children:[(0,C.jsx)("span",{style:{color:t,fontSize:"12px",fontStyle:"normal",fontWeight:"600"},children:o}),(0,C.jsx)("span",{className:"progressValueText",style:{bottom:"-30px",color:"var(--Grey, #494545)",fontSize:"12px"},children:null===e||void 0===e||null===(n=e.endDate)||void 0===n?void 0:n.format("DD MMM YY")})]},l)}),(0,C.jsx)("div",{className:"".concat(v," ").concat(B?f:""),style:{width:"8vw",height:"8vw",maxWidth:"15px",maxHeight:"15px",borderRadius:"50%",backgroundColor:"white",position:"absolute",top:"50%",right:"10px",transform:"translate(50%, -50%)",zIndex:10,border:"2px s
1olid #f08732"}})]})}),U&&(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"8px",gap:"5px",marginTop:"40px",color:"black"},children:[(0,C.jsx)("span",{style:{display:"flex"},children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,C.jsx)("g",{"clip-path":"url(#clip0_508_4918)",children:(0,C.jsx)("path",{d:"M6.75 9L8.25 10.5L11.25 7.5M16.5 9C16.5 13.1421 13.1421 16.5 9 16.5C4.85786 16.5 1.5 13.1421 1.5 9C1.5 4.85786 4.85786 1.5 9 1.5C13.1421 1.5 16.5 4.85786 16.5 9Z",stroke:"#199713","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})}),(0,C.jsx)("defs",{children:(0,C.jsx)("clipPath",{id:"clip0_508_4918",children:(0,C.jsx)("rect",{width:"18",height:"18",fill:"white"})})})]})}),(0,C.jsxs)("span",{style:{fontSize:"14px"},children:[E("free_cancellation_100_refund_if_you_cancel_this_booking_before")," "," ",null===U||void 0===U||null===(k=U.policyDate)||void 0===k?void 0:k.format("D MMM, h:mm A")]})]}),(0,C.jsx)("div",{style:{marginBottom:"10px",marginTop:"24px"},children:(0,C.jsx)("span",{style:{color:"var(--Dark, #171719)",fontSize:"14px",fontStyle:"normal",fontWeight:"600",lineHeight:"normal"},children:E("cancellation_post_that_will_be_subject_to_a_fee_as_shown_in_the_table")})}),(0,C.jsx)("div",{style:{borderRadius:"6px",overflow:"hidden"},children:(0,C.jsxs)("table",{style:{borderCollapse:"collapse",width:"100%",color:"black",margin:"0",border:"none"},children:[(0,C.jsx)("thead",{style:{backgroundColor:"#eaf7ff",color:"black"},children:(0,C.jsxs)("tr",{children:[(0,C.jsx)("th",{style:{border:"1px solid #dddddd",textAlign:"left",padding:"8px",fontSize:"14px",textTransform:"uppercase"},children:E("date")}),(0,C.jsx)("th",{style:{border:"1px solid #dddddd",textAlign:"left",padding:"8px",fontSize:"14px",textTransform:"uppercase"},children:E("fee")})]})}),(0,C.jsx)("tbody",{style:{color:"black"},children:(null===G||void 0===G?void 0:G.length)>0?G.map(e=>{var l;return(0,C.jsxs)("tr",{children:[(0,C.jsx)("td",{style:{border:"1px solid #dddddd",textAlign:"left",padding:"8px",color:"var(--Grey, #494545)",fontSize:"14px"},children:999==e.daysBeforeArrival?E("no_refund"):"".concat(e.penaltyText," ").concat(null===e||void 0===e||null===(l=e.policyDate)||void 0===l?void 0:l.format("DD MMM YY"))}),(0,C.jsx)("td",{style:{border:"1px solid #dddddd",textAlign:"left",padding:"8px",color:"var(--Grey, #494545)",fontSize:"14px"},children:999==e.daysBeforeArrival?E("hundred_percent_of_the_booking_amount"):"".concat(e.penalty," ").concat(e.penaltyType," ").concat(E("of_the_booking_amount"))})]})}):(0,C.jsxs)("tr",{children:[(0,C.jsxs)("td",{style:{border:"1px solid #dddddd",textAlign:"left",padding:"8px"},children:[E("From")," ",null===(N=r()(null===A||void 0===A?void 0:A.startDate).subtract(z.daysBeforeArrival,"day"))||void 0===N?void 0:N.format("D MMM")]}),(0,C.jsxs)("td",{style:{border:"1px solid #dddddd",textAlign:"left",padding:"8px"},children:[z.chargedPercentage,"%"," ",E("of_the_booking_amount")]})]})})]})}),(0,C.jsxs)("div",{className:y,children:[(0,C.jsx)("span",{style:{display:"flex"},children:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,C.jsx)("path",{d:"M6.91667 12.9163C10.1843 12.9163 12.8333 10.2674 12.8333 6.99967C12.8333 3.73199 10.1843 1.08301 6.91667 1.08301C3.64898 1.08301 1 3.73199 1 6.99967C1 10.2674 3.64898 12.9163 6.91667 12.9163Z",fill:"#171719",stroke:"#171719","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})})}),(0,C.jsx)("span",{style:{padding:"10px 0px",display:"flex",color:"black",fontSize:"14px"},children:E("cancellation_are_only_allowed_before_checkin_time_all_the_time_mentioned_above_is_in_destination_time")}),"razorpay"===(null===I||void 0===I?void 0:I.vendor)?(0,C.jsxs)("span",{className:g,children:[(0,C.jsx)("div",{className:j,onMouseEnter:()=>{(0,s.fireGtmEvent)("fee_viewed"),O(!0)},onMouseLeave:()=>O(!1),onClick:()=>O(e=>!e),children:(0,C.jsx)("span",{children:"?"})}),(0,C.jsx)("div",{className:_,style:{visibility:L?"visible":"hidden",opacity:L?1:0},children:E("processing_fee_notice_mainpage")})]}):null]})]})]})}},8241:(e,l,n)=>{n.d(l,{A:()=>p});var o=n(5043),i=n(182),t=n(1577),r=(n(2502),n(5346)),a=n(579);const s=(0,i.Ay)(()=>n.e(2642).then(n.bind(n,2642))),d=[375,480,640,750],c=(e,l)=>{const n=null===e||void 0===e?void 0:e.replace(/#/g,"%23").replace(/ /g,"%20");return"".concat(n).concat(null!==n&&void 0!==n&&n.includes("?")?"&":"?","tr=w-").concat(l,",h-").concat(Math.round(.5625*l),",ar-16-9,q-50,f-auto,fo-auto")},p=e=>{let{name:l,hotelImages:n,address:i,isAddon:p=!1}=e;const[u,h]=(0,o.useState)(!1),[v,x]=(0,o.useState)(0);return(0,a.jsxs)("div",{role:"group","aria-label":"".concat(l," image carousel"),children:[(0,a.jsx)(t.FN,{infiniteLoop:!0,showStatus:!u,showThumbs:!1,showArrows:!u,showIndicators:!1,autoPlay:!1,onClickItem:e=>{(e=>{h(!0),x(e)}
1)(e),p?(0,r.fireGtmEvent)("addon_image_expanded"):(0,r.fireGtmEvent)("hotel_image_expanded")},onChange:e=>{(0,r.fireGtmEvent)(p?"checkout_hotel_carousel_scrolled":"mainpage_hotel_carousel_scrolled",{index:e})},className:"mainpage__headerImages",ariaLabel:"".concat(l," hotel images"),children:null===n||void 0===n?void 0:n.map((e,n)=>{return(0,a.jsx)("img",{width:"750",height:"422",style:{objectFit:"cover"},loading:0===n?"eager":"lazy",fetchpriority:0===n?"high":"low",decoding:"async",src:c(null===e||void 0===e?void 0:e.cdnImageUrl,640),srcSet:(o=null===e||void 0===e?void 0:e.cdnImageUrl,d.map(e=>"".concat(c(o,e)," ").concat(e,"w")).join(", ")),sizes:"100vw",alt:l+"'s Hotel Image in "+i},n);var o})}),u&&(0,a.jsx)(o.Suspense,{fallback:null,children:(0,a.jsx)(s,{images:null===n||void 0===n?void 0:n.map(e=>e.cdnImageUrl+"?tr=w-1200,q-80,f-auto"),currentIndex:v,onClose:h,altPrefix:l})})]})}},8978:(e,l,n)=>{n.d(l,{Ay:()=>m});var o=n(446),i=n.n(o),t=n(5043),r=n(8601),a=(n(8984),n(5346)),s=n(7368),d=n(7343),c=(n(4927),n(475)),p=n(4117),u=(n(3976),n(4116)),h=n(579);const v="https://ik.imagekit.io/hotelzifyprod/assets/images/discount.svg",x="https://ik.imagekit.io/hotelzifyprod/assets/images/time.svg",m=e=>{let{isCOD:l,showCancel:n,lastDate:o,handleShowHourly:m,isBNPL:f=!1,selectedIds:y=[392]}=e;const{hotelData:{id:g,currency:j,autoAccept:_,userId:b},dateRange:{startDate:C,endDate:w},payments:k,isHourlyRoom:N,showHourly:D,isRatePlans:A,hotelData:T,bookingEngineConfig:B,promotions:I=[]}=(0,r.d4)(e=>e.hotelInfo),[S,R]=((0,r.wA)(),(0,t.useState)(0)),{t:M}=(0,p.Bd)(),{width:L}=(0,s.A)(),[O,E]=(0,t.useState)(!1),[P,F]=(0,t.useState)(!1),z=t.useMemo(()=>{if(!I||0===I.length)return[];return I.filter(e=>!(null!==e&&void 0!==e&&e.isAgentPromo)&&!(null!==e&&void 0!==e&&e.isMembership)&&"coupon"!==(null===e||void 0===e?void 0:e.type))},[I,b]);(0,t.useEffect)(()=>{let e=0;l&&(e+=1),n&&(e+=1),L<=901&&(e+=1),63809===b&&(e+=1),R(e)},[l,n,L]),(0,t.useEffect)(()=>{(0,u.i)(B,T)},[y,B,T]);const G="zinc"===(null===T||void 0===T?void 0:T.chainName)||"beacon"===(null===T||void 0===T?void 0:T.chainName)||2825===(null===T||void 0===T?void 0:T.id)||583===(null===T||void 0===T?void 0:T.id)||2===(null===T||void 0===T?void 0:T.chainId),H=(0,t.useRef)(),U=e=>{H.current.scrollLeft+=e};(0,t.useEffect)(()=>{E(null===k||void 0===k?void 0:k.some(e=>{var l;return["Razorpay","PartialPayment"].includes(null===e||void 0===e||null===(l=e.Gateway)||void 0===l?void 0:l.name)})),F(null===k||void 0===k?void 0:k.some(e=>{var l;return["Razorpay","PartialPayment"].includes(null===e||void 0===e||null===(l=e.Gateway)||void 0===l?void 0:l.name)}))},[k]);const W=(e,l)=>{let n="";switch(e){case"nights":n=1===Number(l)?"night":"nights";break;case"fixed_amount":n=(0,c.Gl)(j);break;case"percentage":n="%"}return n},V=d.iK.includes(g),Y=(()=>{let e=0;return(null===T||void 0===T?void 0:T.minBookingNights)>1&&e++,D&&!N&&e++,!A&&n&&e++,N||(e+=(null===z||void 0===z?void 0:z.length)||0),103376===b&&e++,f&&e++,1!==_||V||e++,e})(),[q,X]=(0,t.useState)(!1),[K,Z]=(0,t.useState)(!0),[J,Q]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{const e=H.current;if(!e)return;const l=()=>{X(e.scrollWidth>e.clientWidth+1),Z(e.scrollLeft<=1),Q(e.scrollLeft+e.clientWidth>=e.scrollWidth-1)};l();const n=new ResizeObserver(l);return n.observe(e),e.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),()=>{n.disconnect(),e.removeEventListener("scroll",l),window.removeEventListener("resize",l)}},[Y]),0===Y?null:(0,h.jsxs)("div",{className:"promotionComponent",id:"promotionComponentId",children:[(0,h.jsx)("p",{className:"hideBig promoLabel",children:M("limited_offer")}),(0,h.jsxs)("div",{className:"promotionWrap",children:[q&&!K&&(0,h.jsx)("button",{type:"button",className:"scrollBtn scrollBtn--left",onClick:()=>U(-300),"aria-label":"Scroll left",children:(0,h.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,h.jsx)("path",{d:"M15 18l-6-6 6-6"})})}),(0,h.jsxs)("div",{className:"promotion",ref:H,tabIndex:0,onKeyDown:e=>{"ArrowLeft"===e.key?(e.preventDefault(),U(-300)):"ArrowRight"===e.key&&(e.preventDefault(),U(300))},role:"region","aria-label":M("promotional_offers"),children:[(null===T||void 0===T?void 0:T.minBookingNights)>1&&(0,h.jsx)("div",{className:"promotionContainer bulk",children:(0,h.jsx)("div",{className:"promotionContent",children:(0,h.jsxs)("div",{className:"promotionText",children:[(0,h.jsx)("p",{children:"Minimum stay required"}),(0,h.jsxs)("h1",{children:[null===T||void 0===T?void 0:T.minBookingNights," nights"]})]})})}),D&&!N&&(0,h.jsx)("div",{className:"promotionContainer early",style:{cursor:"pointer",color:"black",boxShadow:"3px 3px 5px rgba(0,0,0,0.2),-3px -3px 5px rgba(0,0,0,0.2)",marginLeft:"5px"},onClick:()=>{(0,a.fireGtmEvent)("hourlyClicked_promotion"),(0,a.fireGtmEvent)("hourly"),m()},children:(0,h.jsxs)("div",{className:"promotionContent ",children:[(0,h.jsxs)("div",{className:"promotionText",children:[(0,h.jsxs)("p",{className:"blink",children:[" ",M("click_here")]}),(0,h.jsxs)("h1",{children:[M("hourly_room_booking")," \u23f3"]})]}),(0,h.jsx)("img",{width:"26px",height:"26px",alt:"discount offer",style:{filter:"invert(52%) sepia(60%) saturate(642%) hue-rotate(342deg) brightness(85%) contrast(95%)"},src:x})]})}),!A&&n&&(0,h.jsx)("div",{className:"promotionContainer early",children:(0,h.jsxs)("div",{className:"promotionContent ",children:[(0,h.jsxs)("div",{className:"promotionText",children:[(0,h.jsx)("p",{children:M("no_worries_cancel")}),(0,h.jsxs)("h1",{children:[M("free_cancellation_till")," ",o]})]}),(0,h.jsx)("img",{width:"26px",height:"26px",alt:"discount offer",src:x})]})}),!N&&(null===z||void 0===z?void 0:z.map((e,l)=>(0,h.jsxs)("div",{className:"bulk"===(null===e||void 0===e?void 0:e.type)?"promotionContainer bulk":"promotionContainer early",children:["bulk"===(null===e||void 0===e?void 0:e.type)?(0,h.jsxs)("div",{className:"promotionContent",children:[(0,h.jsx)("div",{className:"promotionText",children:G?(0,h.jsx)("h1",{children:null===e||void 0===e?void 0:e.name}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{children:null===e||void 0===e?void 0:e.promotionCta1}),(0,h.jsxs)("h1",{children:[null===e||void 0===e?void 0:e.name,null!==e&&void 0!==e&&e.promotionCta2?" ".concat(null===e||void 0===e?void 0:e.promotionCta2):""]})]})}),(0,h.jsx)("div",{className:"promoLogo",children:(0,h.jsx)("img",{width:"26px",height:"26px",alt:"discount offer",src:v})})]}):null,"coupon"===(null===e||void 0===e?void 0:e.type)?(0,h.jsxs)("div",{className:"promotionContent",children:[(0,h.jsx)("div",{className:"promotionText",children:G?(0,h.jsx)("h1",{children:null===e||void 0===e?void 0:e.name}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{children:M("use_co
1de")}),(0,h.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"6px"},children:[(0,h.jsxs)("h1",{children:["'",null===e||void 0===e?void 0:e.name,"'"]}),(0,h.jsxs)("p",{children:[M("and")," ",null===e||void 0===e?void 0:e.promotionCta2]})]})]})}),(0,h.jsx)("div",{className:"promoLogo",children:(0,h.jsx)("img",{width:"26px",height:"26px",alt:"discount offer",src:v})})]}):null,["basic","day","custom"].includes(null===e||void 0===e?void 0:e.type)?(0,h.jsxs)("div",{className:"promotionContent ",children:[(0,h.jsx)("div",{className:"promotionText",children:G?(0,h.jsx)("h1",{children:null===e||void 0===e?void 0:e.name}):(0,h.jsx)(h.Fragment,{children:"custom"===(null===e||void 0===e?void 0:e.type)?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("p",{children:[null===e||void 0===e?void 0:e.promotionCta1," "]}),(0,h.jsx)("h1",{children:null===e||void 0===e?void 0:e.name})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{children:null===e||void 0===e?void 0:e.name}),(0,h.jsx)("h1",{children:null===e||void 0===e?void 0:e.promotionCta2})]})})}),(0,h.jsx)("div",{className:"promoLogo",children:(0,h.jsx)("img",{width:"30px",height:"30px",alt:"discount offer",style:{filter:"invert(52%) sepia(60%) saturate(642%) hue-rotate(342deg) brightness(85%) contrast(95%)"},src:v})})]}):null,"early"===(null===e||void 0===e?void 0:e.type)?d.GS.includes(g)?(0,h.jsxs)("div",{className:"promotionContent",children:[(0,h.jsxs)("div",{className:"promotionText",children:[(0,h.jsx)("p",{children:M("use_code")}),(0,h.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"6px"},children:[(0,h.jsx)("h1",{children:"'MOUNT'"}),(0,h.jsxs)("p",{children:[M("and_get")," ",parseInt(null===e||void 0===e?void 0:e.discount)," ",W(null===e||void 0===e?void 0:e.discountType,null===e||void 0===e?void 0:e.discount)," ",M("off")]})]})]}),(0,h.jsx)("div",{className:"promoLogo",children:(0,h.jsx)("img",{width:"26px",height:"26px",alt:"discount offer",src:x})})]}):(0,h.jsxs)("div",{className:"promotionContent",children:[(0,h.jsx)("div",{className:"promotionText",children:G?(0,h.jsx)("h1",{children:null===e||void 0===e?void 0:e.name}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("p",{children:[M("early_bird_offer")," !!"]}),(0,h.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"6px"},children:[(0,h.jsxs)("h1",{children:[parseInt(null===e||void 0===e?void 0:e.discount)," ",W(null===e||void 0===e?void 0:e.discountType,null===e||void 0===e?void 0:e.discount)," ",M("off")]}),(0,h.jsxs)("p",{children:[M("book")," ",null===e||void 0===e?void 0:e.cutoffDays," ",M("days_advance")]})]})]})}),(0,h.jsx)("div",{className:"promoLogo",children:(0,h.jsx)("img",{width:"26px",height:"26px",alt:"discount offer",src:x})})]}):null,"late"===(null===e||void 0===e?void 0:e.type)?d.GS.includes(g)?(0,h.jsxs)("div",{className:"promotionContent",children:[(0,h.jsx)("div",{className:"promoLogo",children:(0,h.jsx)("img",{width:"26px",height:"26px",alt:"discount offer",src:x})}),(0,h.jsxs)("div",{className:"promotionText",children:[(0,h.jsx)("p",{children:M("use_code")}),(0,h.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"6px"},children:[(0,h.jsx)("h1",{children:"'MOUNT'"}),(0,h.jsxs)("p",{children:[M("and_get")," ",parseInt(null===e||void 0===e?void 0:e.discount)," ",W(null===e||void 0===e?void 0:e.discountType,null===e||void 0===e?void 0:e.discount)," ",M("off")]})]})]})]}):(0,h.jsxs)("div",{className:"promotionContent",children:[(0,h.jsx)("div",{className:"promotionText",children:G?(0,h.jsx)("h1",{children:null===e||void 0===e?void 0:e.name}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("p",{children:[M("last_minute_deals")," !!"]}),(0,h.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"6px"},children:[(0,h.jsxs)("h1",{children:[parseInt(null===e||void 0===e?void 0:e.discount)," ",W(null===e||void 0===e?void 0:e.discountType,null===e||void 0===e?void 0:e.discount)," ",M("off")]}),(0,h.jsxs)("p",{children:[M("book_now_for")," ",i()(C).format("MMM DD")]})]})]})}),(0,h.jsx)("div",{className:"promoLogo",children:(0,h.jsx)("img",{width:"26px",height:"26px",alt:"discount offer",src:x})})]}):null]},l))),103376===b&&(0,h.jsx)("div",{className:"promotionContainer bulk",children:(0,h.jsx)("div",{className:"promotionContent ",children:(0,h.jsxs)("div",{className:"promotionText",children:[(0,h.jsx)("h1",{children:"20% off"}),(0,h.jsx)("p",{children:"On dining and laundry service for solo women travellers"})]})})}),f&&(0,h.jsx)("div",{className:"promotionContainer bulk",children:(0,h.jsxs)("div",{className:"promotionContent ",children:[(0,h.jsxs)("div",{className:"promotionText",children:[(0,h.jsx)("p",{children:M("flexible_hassle_free_affordable")}),(0,h.jsx)("h1",{children:M("book_now_pay_later")})]}),(0,h.jsx)("img",{width:"26px",height:"26px",alt:"discount offer",src:v})]})}),1===_&&!d.iK.includes(g)&&(0,h.jsx)("div",{className:"promotionContainer bulk",children:(0,h.jsxs)("div",{className:"promotionContent ",children:[(0,h.jsxs)("div",{className:"promotionText",children:[(0,h.jsx)("p",{children:M("no_waiting_just_go")}),(0,h.jsx)("h1",{children:M("instant_confirmation")})]}),(0,h.jsx)("img",{width:"26px",height:"26px",alt:"discount offer",src:v})]})})]}),q&&!J&&(0,h.jsx)("button",{type:"button",className:"scrollBtn scrollBtn--right",onClick:()=>U(300),"aria-label":"Scroll right",children:(0,h.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,h.jsx)("path",{d:"M9 18l6-6-6-6"})})})]})]})}}}]);
2//# sourceMappingURL=4905.5d799ade.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.