PageSourceSearch

https://hotelzify.com/static/js/4079.0867b189.chunk.js

js hotelzify.com collected 2026-09-24 12:17:02 UTC 24,180 bytes, 2 lines download raw bytes

1(self.webpackChunklanding_page=self.webpackChunklanding_page||[]).push([[2642,4079],{1890:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>w});var n=o(9379),i=o(5043),l=o(8601),r=o(2642),a=o(8984),s=o(5989),c=o(5346),u=o(9997),d=o(6895),m=o(4117),v=o(3751),h=o(7574),f=o(4849),g=o(8532),x=o(7478),p=o(7343),y=o(579);const b="https://ik.imagekit.io/hotelzifyprod/assets/images/users.svg",w=t=>{var e,o,w,j,$,k;let{location:A}=t;const C=(null===A||void 0===A||null===(e=A.location)||void 0===e||null===(o=e.state)||void 0===o?void 0:o.room)||{},{roomName:S="Single Room",RoomImages:N=[],pricing:R=[],HotelRoomAddons:z=[],maxGuestCount:I=0,HotelRoomAmenities:E=[],defaultGuestCount:O=0}=C,T=(0,l.wA)(),[D,_]=(0,i.useState)(!1),[M,L]=(0,i.useState)(),[U,H]=(0,i.useState)(0),[Y,B]=(0,i.useState)(0),[F,P]=(0,i.useState)(0),[,V]=(0,i.useState)(),[,G]=(0,i.useState)(1);(0,i.useEffect)(()=>{window.scrollTo(0,0)},[]);const{hotelData:W,selectedRooms:q,selectedAddons:Z,totalAdult:X,totalChild:J,totalPeople:K,isRatePlans:Q}=(0,l.d4)(t=>t.hotelInfo);(0,i.useEffect)(()=>{var t;C&&0===F&&H((null===q||void 0===q||null===(t=q.filter(t=>(null===t||void 0===t?void 0:t.id)===(null===C||void 0===C?void 0:C.id)))||void 0===t?void 0:t.length)||0)},[F]),(0,i.useEffect)(()=>{var t;P(null===q||void 0===q||null===(t=q.filter(t=>(null===t||void 0===t?void 0:t.id)===(null===C||void 0===C?void 0:C.id)))||void 0===t?void 0:t.length)},[q]),(0,i.useEffect)(()=>{B(null===C||void 0===C?void 0:C.availableRooms),(0,c.fireGtmEvent)("room_viewed",{roomName:S}),(0,c.trackCrawlerRoomView)({roomName:S,roomId:null===C||void 0===C?void 0:C.id,roomPrice:null===C||void 0===C?void 0:C.BasePrice,availableRooms:null===C||void 0===C?void 0:C.availableRooms})},[]),(0,i.useEffect)(()=>{(()=>{var t=0;null===q||void 0===q||q.forEach(e=>{var o=0;const{pricing:n,defaultGuestCount:i,id:l}=e;o+=parseFloat(i),n.forEach(e=>{t+=parseFloat(e.price)}),G(null===n||void 0===n?void 0:n.length),null===Z||void 0===Z||Z.forEach(t=>{var e;"person"===(null===t||void 0===t||null===(e=t.Addon)||void 0===e?void 0:e.category)&&l===(null===t||void 0===t?void 0:t.hotelRoomId)&&o++}),null===Z||void 0===Z||Z.forEach(e=>{if(l===(null===e||void 0===e?void 0:e.hotelRoomId)){var i;const{price:l}=e;"meal"===(null===e||void 0===e||null===(i=e.Addon)||void 0===i?void 0:i.category)?t+=o*parseFloat(l)*n.length:t+=parseFloat(l)*(null===n||void 0===n?void 0:n.length)}})}),V(parseFloat(t)),s.A.set("totalPrice",parseFloat(t))})()}),(0,i.useEffect)(()=>{if(U&&1===(null===q||void 0===q?void 0:q.length)&&q[0].id===C.id&&0!==et){const o=null===z||void 0===z?void 0:z.filter(t=>{var e;return(null===t||void 0===t||null===(e=t.Addon)||void 0===e?void 0:e.name.startsWith("Extra Adult"))&&(null===t||void 0===t?void 0:t.hotelRoomId)===(null===C||void 0===C?void 0:C.id)}),n=null===z||void 0===z?void 0:z.filter(t=>{var e;return(null===t||void 0===t||null===(e=t.Addon)||void 0===e?void 0:e.name.startsWith("Extra Child"))&&(null===t||void 0===t?void 0:t.hotelRoomId)===(null===C||void 0===C?void 0:C.id)}),i=null===Z||void 0===Z?void 0:Z.filter(t=>t.hotelRoomId===C.id&&"person"===t.Addon.category);if(0===(null===i||void 0===i?void 0:i.length)){var t=O;if(K>O){var e=X-O;for(let e=0;e<J;e++)t<I&&n.length>0&&(T((0,a.Oz)(n[0])),t++);for(let n=0;n<e;n++)t<I&&o.length>0&&(T((0,a.Oz)(o[0])),t++)}}}},[q]);const tt=(0,v.useHistory)(),et=s.A.get("testId")||0,ot=()=>{U<Y&&0!==et?(T((0,a.TG)(C)),H(t=>t+1),(0,c.fireGtmEvent)("room_added",{room_name:S})):0===et&&U<Y&&(H(t=>t+1),(0,c.fireGtmEvent)("room_added",{room_name:S}))};(0,i.useEffect)(()=>{if(0===et){if(U>=0){T({type:f.A.RESET_ROOM,payload:{id:null===C||void 0===C?void 0:C.id,resetAdn:!1}});let t=X+J<=I?X:1,e=null!==C&&void 0!==C&&C.extraChildPrice&&X+J<=I?J:0;for(let o=0;o<U;o++){let i=(0,n.A)({idx:o+1,sAdult:t,sChild:e,sInfant:0},C);T((0,a.TG)(i))}}U<0&&F>0&&T({type:f.A.RESET_ROOM,payload:{id:null===C||void 0===C?void 0:C.id,resetAdn:!0}})}},[U]);const{t:nt}=(0,m.Bd)(),it=(0,d.FH)(C);return(0,y.jsxs)("div",{className:"roomview",children:[(0,y.jsx)(u.A,{title:"".concat(S," at ").concat(null===W||void 0===W?void 0:W.name),HotelImages:(null===N||void 0===N?void 0:N.length)>0?N:null===W||void 0===W?void 0:W.HotelImages,state:null===W||void 0===W?void 0:W.state,city:null===W||void 0===W?void 0:W.city,websiteSlug:null===W||void 0===W?void 0:W.websiteSlug,address:null===W||void 0===W?void 0:W.address,domain:null===W||void 0===W?void 0:W.domain,noindex:!0,structuredData:(0,d.uJ)(C,W),metaDescription:"Book ".concat(S," at ").concat(null===W||void 0===W?void 0:W.name," in ").concat(null===W||void 0===W?void 0:W.city,". Room capacity: ").concat(I," guests.").concat(it?" Price starts from ".concat((null===W||void 0===W?void 0:W.currency)||"INR"," ").concat(it.price," per night before tax."):""," Best rates guaranteed."),ogDescription:"".concat(S," with capacity for ").concat(I," guests at ").concat(null===W||void 0===W?void 0:W.name,". Book direct for best rates."),ogImage:(null===N||void 0===N||null===(w=N[0])||void 0===w?void 0:w.cdnImageUrl)||(null===N||void 0===N||null===(j=N[0])||void 0===j?void 0:j.url)}),(0,y.jsxs)("header",{className:"roomViewTopbar",children:[(0,y.jsx)("button",{type:"button",onClick:()=>tt.goBack(),"aria-label":"Go back to previous page",style:{background:"none",border:"none",cursor:"pointer",display:"inline-flex",alignItems:"center",padding:"0"},children:(0,y.jsx)("img",{src:"https://ik.imagekit.io/hotelzifyprod/assets/images/goback.svg",alt:"","aria-hidden":"true"})})," ",(0,y.jsx)("h1",{style:{display:"inline",fontSize:"inherit",fontWeight:"inherit"},children:nt("room_details")})]}),(0,y.jsxs)("div",{className:"roomViewHeader",children:[(0,y.jsx)("h2",{children:S}),(0,y.jsxs)("div",{className:"roomViewGuestCount",children:[(0,y.jsx)("img",{src:b,alt:"","aria-hidden":"true"})," ",nt("room_minimum_capacity")," ",O]}),I>O&&(0,y.jsxs)("div",{className:"roomViewGuestCount",children:[(0,y.jsx)("img",{src:b,alt:"","aria-hidden":"true"})," ",nt("maximum_additional_guest")," ",I-O]}),(0,y.jsx)("p",{style:{color:"#000",fontSize:"13px"},children:null===C||void 0===C?void 0:C.description}),(0,y.jsx)("div",{className:"roomAmenityContainer viewRoomAmenity",children:null===E||void 0===E?void 0:E.map(t=>{var e,o,n,i,l,r,a;return(0,y.jsxs)("p",{children:[(0,y.jsx)(h.A,{iconName:g.j[null===t||void 0===t||null===(o=t.Amenity)||void 0===o?void 0:o.name],tooltip:null===t||void 0===t||null===(n=t.Amenity)||void 0===n?void 0:n.name,style:{fontSize:"12px"}}),(null===t||void 0===t||null===(i=t.Amenity)||void 0===i||null===(l=i.Trasalations)||void 0===l||null===(r=l[0])||void 0===r?void 0:r.name)||(null===t||void 0===t||null===(a=t.Amenity)||void 0===a?void 0:a.name)]},null===t||void 0===t||null===(e=t.Amenity)||void 0===e?void 0:e.name)})})]}),(0,y.jsx)("div",{className:"roomViewImage",role:"region","aria-label":"".concat(S," images"),children:null===N||void 0===N?void 0:N.map((t,e)=>(0,y.jsx)("button",{type:"button",onClick:()=>(t=>{_(!0),L(t)})(e),style:{background:"none",border:"none",padding:0,cursor:"pointer",display:"block"},"aria-label":"View full size ".concat(S," image ").concat(e+1," of ").concat(N.length),children:(0,y.jsx)("img",{src:(null===t||void 0===t?void 0:t.cdnImageUrl)+"?tr=w-auto-720,ar-1-1,h-600,q-".concat(p.Y$),loading:"lazy",alt:"".concat(S," - Image ").concat(e+1)})},e))}),(0,y.jsxs)("div",{className:"roomViewBtn",children:[U?(0,y.jsxs)("div",{className:"roomViewTotalPrice",children:[(0,y.jsxs)("p",{className:"bigText",children:[nt("total")," ",(0,y.jsx)(x.A,{amount:s.A.get("totalPrice")})]}),(0,y.jsxs)("p",{className:"smallText",children:[(0,y.jsx)(x.A,{amount:null===($=R[0])||void 0===$?void 0:$.price})," / ",nt("night")]})]}):(0,y.jsxs)("div",{className:"roomViewPrice",children:[(0,y.jsxs)("p",{children:[(0,y.jsx)(x.A,{amount:null===(k=R[0])||void 0===k?void 0:k.price})," / ",nt("night")]}),(0,y.jsxs)("span",{children:["(",nt("incl_of_taxes"),")"]})]}),U?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"roomViewBookS",role:"group","aria-labelledby":"room-count-label",children:[(0,y.jsx)("span",{id:"room-count-label",className:"visually-hidden",children:"Number of rooms selected"}),(0,y.jsx)("button",{type:"button",className:"roomViewBtns",onClick:()=>{0!==et?U>0&&0!==et&&((0,c.fireGtmEvent)("room_removed",{userId:s.A.get("userId"),hotelName:W.name,room_name:S}),H(t=>t-1),T((0,a.$r)(C))):H(t=>t-1)},"aria-label":"Decrease room count","aria-controls":"room-count-value",children:"-"}),(0,y.jsx)("p",{id:"room-count-value","aria-live":"polite","aria-atomic":"true",role:"status",children:U}),(0,y.jsx)("button",{type:"button",className:"roomViewBtns",onClick:()=>ot(),"aria-label":"Increase room count","aria-controls":"room-count-value",disabled:U>=Y,children:"+"})]}),(0,y.jsx)("button",{type:"button",className:"roomViewHeaderbutton",onClick:()=>A.history.goBack(),"aria-label":"Continue to checkout",children:nt("continue")})]}):(0,y.jsx)("button",{type:"button",className:"roomViewBook",onClick:()=>ot(),disabled:0===Y,"aria-label":0===Y?nt("sold_out"):"Reserve ".concat(S),children:nt(0===Y?"sold_out":"reserve")})]}),D&&(0,y.jsx)(r.default,{images:null===N||void 0===N?void 0:N.map(t=>(null===t||void 0===t?void 0:t.cdnImageUrl)+"?tr=w-1200,q-90"),currentIndex:M,onClose:_,altPrefix:S})]})}},2642:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>c});var n=o(5043),i=o(7950),l=o(5346),r=o(579);const a=()=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}),s=()=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}),c=t=>{let{images:e,currentIndex:o=0,onClose:c,altPrefix:u="Image"}=t;
1const[d,m]=(0,n.useState)(o),[v,h]=(0,n.useState)(null),[f,g]=(0,n.useState)("idle"),[x,p]=(0,n.useState)("next"),[y,b]=(0,n.useState)(!1),[w,j]=(0,n.useState)(!1),$=(0,n.useRef)(null),k=(0,n.useRef)(null);(0,n.useEffect)(()=>(document.body.style.overflow="hidden",requestAnimationFrame(()=>b(!0)),()=>{document.body.style.overflow=""}),[]);const A=(0,n.useCallback)(()=>{j(!0),b(!1),setTimeout(()=>{c(!1)},260)},[c]),C=(0,n.useCallback)((t,e)=>{t!==d&&("idle"!==f&&(clearTimeout(k.current),h(null),g("idle")),p(e),h(d),m(t),g("start"),requestAnimationFrame(()=>{requestAnimationFrame(()=>g("animating"))}),k.current=setTimeout(()=>{h(null),g("idle")},500))},[d,f]),S=(0,n.useCallback)(t=>{C(t,t>d?"next":"prev")},[C,d]),N=(0,n.useCallback)(()=>{const t=0===d?e.length-1:d-1;C(t,"prev")},[d,e.length,C]),R=(0,n.useCallback)(()=>{const t=d===e.length-1?0:d+1;C(t,"next")},[d,e.length,C]);(0,n.useEffect)(()=>{const t=t=>{"Escape"===t.key?A():"ArrowLeft"===t.key?N():"ArrowRight"===t.key&&R()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[A,N,R]);const z=(0,n.useCallback)(t=>{const e=$.current;if(!e)return;const o=e.children[d];if(!o)return;const n=o.offsetLeft-e.offsetWidth/2+o.offsetWidth/2;if(!t)return void(e.scrollLeft=n);const i=e.scrollLeft,l=n-i;let r=null;const a=t=>{r||(r=t);const o=t-r,n=Math.min(o/700,1);var s;e.scrollLeft=i+l*((s=n)<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2),n<1&&requestAnimationFrame(a)};requestAnimationFrame(a)},[d]);(0,n.useEffect)(()=>{z(!0)},[z]);const I=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!I.current){I.current=!0;const t=setTimeout(()=>z(!1),50);return()=>clearTimeout(t)}},[z]);const[E,O]=(0,n.useState)(1),[T,D]=(0,n.useState)({x:0,y:0}),_=(0,n.useRef)(!1),M=(0,n.useRef)(0),L=(0,n.useRef)(1),U=(0,n.useRef)({x:0,y:0}),H=(0,n.useRef)({x:0,y:0});(0,n.useEffect)(()=>{O(1),D({x:0,y:0}),H.current={x:0,y:0}},[d]);const Y=(0,n.useRef)(null),B=(0,n.useRef)(0),F=(0,n.useRef)(!1),P=t=>{const e=t[0].clientX-t[1].clientX,o=t[0].clientY-t[1].clientY;return Math.sqrt(e*e+o*o)},V=(0,n.useRef)(0),G="lightbox-overlay".concat(y?" lightbox-open":"").concat(w?" lightbox-closing":"");return(0,i.createPortal)((0,r.jsxs)("div",{className:G,onClick:t=>{t.target===t.currentTarget&&A()},children:[(0,r.jsxs)("span",{className:"lightbox-counter",children:[d+1," / ",e.length]}),(0,r.jsxs)("div",{className:"lightbox-content",children:[(0,r.jsx)("button",{className:"lightbox-close",onClick:A,"aria-label":"Close lightbox",children:"\xd7"}),(0,r.jsxs)("div",{className:"lightbox-main",onTouchStart:t=>{2===t.touches.length?(_.current=!0,F.current=!0,M.current=P(t.touches),L.current=E,Y.current=null):1===t.touches.length&&(F.current=!1,E>1?(U.current={x:t.touches[0].clientX,y:t.touches[0].clientY},H.current={x:T.x,y:T.y},Y.current=null):(Y.current=t.touches[0].clientX,B.current=0))},onTouchMove:t=>{if(2===t.touches.length&&_.current){const e=P(t.touches),o=Math.min(4,Math.max(1,L.current*(e/M.current)));return O(o),void(o<=1&&(D({x:0,y:0}),H.current={x:0,y:0}))}if(1===t.touches.length&&E>1){const e=t.touches[0].clientX-U.current.x,o=t.touches[0].clientY-U.current.y;D({x:H.current.x+e,y:H.current.y+o})}else null!==Y.current&&(B.current=t.touches[0].clientX-Y.current)},onTouchEnd:t=>{if(t.touches.length<2&&(_.current=!1),F.current||E>1)return Y.current=null,B.current=0,void(F.current=!1);Math.abs(B.current)>50&&(B.current>0?N():R()),Y.current=null,B.current=0},onClick:t=>{const e=Date.now();e-V.current<300&&(t.preventDefault(),E>1?(O(1),D({x:0,y:0}),H.current={x:0,y:0}):O(2.5)),V.current=e},style:{touchAction:E>1?"none":"pan-y"},children:[null!==v&&(0,r.jsx)("div",{className:"lightbox-image-wrapper lightbox-slide-exit".concat("animating"===f?" lightbox-slide-exit-active":"").concat("prev"===x?" lightbox-dir-prev":""),children:(0,r.jsx)("img",{src:e[v],alt:"".concat(u," ").concat(v+1),draggable:!1})},"exit-"+v),(0,r.jsx)("div",{className:"lightbox-image-wrapper".concat(null!==v?" lightbox-slide-enter".concat("animating"===f?" lightbox-slide-enter-active":"").concat("prev"===x?" lightbox-dir-prev":""):""),children:(0,r.jsx)("img",{src:e[d],alt:"".concat(u," ").concat(d+1),draggable:!1,style:E>1?{transform:"scale(".concat(E,") translate(").concat(T.x/E,"px, ").concat(T.y/E,"px)"),transition:_.current?"none":"transform 0.15s ease-out"}:void 0})},"enter-"+d),e.length>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{className:"lightbox-arrow lightbox-arrow-left",onClick:t=>{t.stopPropagation(),N()},"aria-label":"Previous image",children:(0,r.jsx)(a,{})}),(0,r.jsx)("button",{className:"lightbox-arrow lightbox-arrow-right",onClick:t=>{t.stopPropagation(),R()},"aria-label":"Next image",children:(0,r.jsx)(s,{})})]})]})]}),e.length>
11&&(0,r.jsx)("div",{className:"lightbox-thumbnails",ref:$,children:e.map((t,e)=>(0,r.jsx)("div",{className:"lightbox-thumb".concat(e===d?" lightbox-thumb-active":""),onClick:()=>{(0,l.fireGtmEvent)("room_lightbox_thumb_clicked",{index:e,room_name:u}),S(e)},children:(0,r.jsx)("img",{src:t,alt:"".concat(u," thumbnail ").concat(e+1),draggable:!1})},e))})]}),document.body)}},5030:function(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(o,n,i){var l,r=function(t,o,n){void 0===n&&(n={});var i=new Date(t),l=function(t,o){void 0===o&&(o={});var n=o.timeZoneName||"short",i=t+"|"+n,l=e[i];return l||(l=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),e[i]=l),l}(o,n);return l.formatToParts(i)},a=function(e,o){for(var n=r(e,o),l=[],a=0;a<n.length;a+=1){var s=n[a],c=s.type,u=s.value,d=t[c];d>=0&&(l[d]=parseInt(u,10))}var m=l[3],v=24===m?0:m,h=l[0]+"-"+l[1]+"-"+l[2]+" "+v+":"+l[4]+":"+l[5]+":000",f=+e;return(i.utc(h).valueOf()-(f-=f%1e3))/6e4},s=n.prototype;s.tz=function(t,e){void 0===t&&(t=l);var o,n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:t}),s=Math.round((r-new Date(a))/1e3/60),c=15*-Math.round(r.getTimezoneOffset()/15)-s;if(Number(c)){if(o=i(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),e){var u=o.utcOffset();o=o.add(n-u,"minute")}}else o=this.utcOffset(0,e);return o.$x.$timezone=t,o},s.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),o=r(this.valueOf(),e,{timeZoneName:t}).find(function(t){return"timezonename"===t.type.toLowerCase()});return o&&o.value};var c=s.startOf;s.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var o=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(o,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,o){var n=o&&e,r=o||e||l,s=a(+i(),r);if("string"!=typeof t)return i(t).tz(r);var c=function(t,e,o){var n=t-60*e*1e3,i=a(n,o);if(e===i)return[n,e];var l=a(n-=60*(i-e)*1e3,o);return i===l?[n,i]:[t-60*Math.min(i,l)*1e3,Math.max(i,l)]}(i.utc(t,n).valueOf(),s,r),u=c[0],d=c[1],m=i(u).utcOffset(d);return m.$x.$timezone=r,m},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){l=t}}}()},8222:t=>{t.exports=function(){const t=["a","b","c","d","e","f","0","1","2","3","4","5","6","7","8","9"];let e=[];for(let o=0;o<36;o++)e[o]=8===o||13===o||18===o||23===o?"-":t[Math.ceil(Math.random()*t.length-1)];return e.join("")}},8259:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(n,i,l){var r=i.prototype;l.utc=function(t){return new i({date:t,utc:!0,args:arguments})},r.utc=function(e){var o=l(this.toDate(),{locale:this.$L,utc:!0});return e?o.add(this.utcOffset(),t):o},r.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var a=r.parse;r.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var s=r.init;r.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else s.call(this)};var c=r.utcOffset;r.utcOffset=function(n,i){var l=this.$utils().u;if(l(n))return this.$u?0:l(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&(n=function(t){void 0===t&&(t="");var n=t.match(e);if(!n)return null;var i=(""+n[0]).match(o)||["-",0,0],l=i[0],r=60*+i[1]+ +i[2];return 0===r?0:"+"===l?r:-r}(n),null===n))return this;var r=Math.abs(n)<=16?60*n:n,a=this;if(i)return a.$offset=r,a.$u=0===n,a;if(0!==n){var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(r+s,t)).$offset=r,a.$x.$localOffset=s}else a=this.utc();return a};var u=r.format;r.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},r.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var d=r.toDate;r.toDate=function(t){return"s"===t&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var m=r.diff;
1r.diff=function(t,e,o){if(t&&this.$u===t.$u)return m.call(this,t,e,o);var n=this.local(),i=l(t).local();return m.call(n,i,e,o)}}}()},9997:(t,e,o)=>{"use strict";o.d(e,{A:()=>v});var n=o(9379),i=o(5043),l=o(1591),r=o(8222),a=o.n(r),s=o(5989),c=o(5346),u=o(7343),d=o(579);const m="hotel-structured-data",v=t=>{var e,o;let{id:r,title:v,address:h,HotelImages:f,websiteSlug:g,domain:x,city:p,description:y,hotelId:b,state:w,HotelRooms:j,currency:$,reviews:k,logo:A,keywords:C,structuredData:S,ogImage:N,ogDescription:R,canonicalUrl:z,metaDescription:I,hreflangLinks:E,noindex:O=!1}=t,T="".concat(v||""," ").concat(h||"",". Free cancellation and best price guaranteed on our official website.").concat(h?" Hotels near ".concat(h,". Cheap stays in ").concat(h,"."):"").concat(p?" hotels in ".concat(p):"");const[D,_]=(0,i.useState)([]);(0,i.useEffect)(()=>{if(j&&(null===j||void 0===j?void 0:j.length)>1){let t=null===j||void 0===j?void 0:j.filter(t=>{var e;return null===t||void 0===t||null===(e=t.pricing)||void 0===e?void 0:e.every(t=>(null===t||void 0===t?void 0:t.roomCount)>0)}),e=null===j||void 0===j?void 0:j.filter(t=>{var e;return null===t||void 0===t||null===(e=t.pricing)||void 0===e?void 0:e.some(t=>0===(null===t||void 0===t?void 0:t.roomCount))});t.sort((t,e)=>(null===t||void 0===t?void 0:t.pricing.reduce((t,e)=>t+(null===e||void 0===e?void 0:e.price),0))-(null===e||void 0===e?void 0:e.pricing.reduce((t,e)=>t+(null===e||void 0===e?void 0:e.price),0))),_([...t,...e])}else _(j)},[j]);let M=(null===D||void 0===D?void 0:D.length)>0?null===(e=D[0])||void 0===e?void 0:e.defaultPrice:0;const L=(()=>{const t=(Array.isArray(S)?S:[S]).filter(Boolean);return t.length>0?JSON.stringify(t):""})();(0,i.useEffect)(()=>{var t;if(!L||"undefined"===typeof document||!document.head)return;const e=document.createElement("script");return e.type="application/ld+json",e.id=m,e.text=L,null===(t=document.getElementById(m))||void 0===t||t.remove(),document.head.appendChild(e),()=>e.remove()},[L]),(0,i.useEffect)(()=>{try{if(!s.A.get("userId")){let t=a()();s.A.set("userId",t),(0,c.fireGtmEvent)("user_came")}}catch(t){}},[]);let U=(null===v||void 0===v?void 0:v.length)>40?v:p?"".concat(v||""," ").concat(p," starts at ").concat($||""," ").concat(M):"".concat(v||""," starts at ").concat($||""," ").concat(M);const H=I||"".concat(v||""," ").concat(T).trim(),Y=R||"Book direct on our official website, Best service and price guaranteed",B="https://ik.imagekit.io/hotelzifyprod/logo.png",F=-1!==["hotelzify.com","www.hotelzify.com","hotelzify.in","www.hotelzify.in","hotelzify.co","www.hotelzify.co","hotelzify.ai","www.hotelzify.ai","dev.hotelzify.com","www.dev.hotelzify.com"].indexOf(window.location.hostname),P="undefined"===typeof window?"/":window.location.pathname||"/",V="undefined"===typeof window?"https://".concat(g,".bookmystay.io"):window.location.origin,G=(()=>{const t=x||V;try{return new URL(/^https?:\/\//i.test(t)?t:"https://".concat(t)).origin}catch(e){return V}})(),W=z||"".concat(G).concat(P),q=(null!==E&&void 0!==E&&E.length?E:[{lang:"en"},{lang:"x-default"}]).map(t=>{if(!t.url)return(0,n.A)((0,n.A)({},t),{},{url:W});try{const e=new URL(/^https?:\/\//i.test(t.url)?t.url:"https://".concat(t.url));return(0,n.A)((0,n.A)({},t),{},{url:"/"===e.pathname?"".concat(e.origin).concat(P):e.toString()})}catch(e){return(0,n.A)((0,n.A)({},t),{},{url:W})}}),Z=null===f||void 0===f||null===(o=f[0])||void 0===o?void 0:o.cdnImageUrl,X=N||A||(Z?"".concat(Z,"?tr=w-auto-300,ar-1-1,h-200,q-").concat(u.Y$):B);return(0,d.jsxs)(l.m,{children:[U&&(0,d.jsx)("title",{children:"".concat(U)}),(0,d.jsx)("meta",{name:"description",content:H}),C&&(0,d.jsx)("meta",{name:"keywords",content:C}),(0,d.jsx)("meta",{name:"robots",content:O?"noindex,nofollow":"index,follow,max-image-preview:large,max-snippet:-1,max-video-preview:-1"}),(0,d.jsx)("meta",{name:"googlebot",content:O?"noindex,nofollow":"index,follow"}),(0,d.jsx)("link",{rel:"apple-touch-icon",href:F?"/logo192.png":A||B}),(0,d.jsx)("link",{rel:"icon",href:F?"/favicon.ico":A||B}),(0,d.jsx)("link",{rel:"canonical",href:W}),q.map((t,e)=>(0,d.jsx)("link",{rel:"alternate",hrefLang:t.lang,href:t.url},e)),(0,d.jsx)("meta",{property:"og:title",content:v?"".concat(v," Official Website"):"Official Website"}),(0,d.jsx)("meta",{property:"og:type",content:"website"}),(0,d.jsx)("meta",{property:"og:url",content:W}),(0,d.jsx)("meta",{property:"og:image",content:X}
1),(0,d.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,d.jsx)("meta",{property:"og:image:height",content:"630"}),(0,d.jsx)("meta",{property:"og:description",content:Y}),(0,d.jsx)("meta",{property:"og:site_name",content:v||"Official Website"}),(0,d.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,d.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,d.jsx)("meta",{name:"twitter:title",content:v?"".concat(v," Official Website"):"Official Website"}),(0,d.jsx)("meta",{name:"twitter:description",content:Y}),(0,d.jsx)("meta",{name:"twitter:image",content:X}),(0,d.jsx)("meta",{name:"twitter:url",content:W})]})}}}]);
2//# sourceMappingURL=4079.0867b189.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.