1"use strict";(self.webpackChunklanding_page=self.webpackChunklanding_page||[]).push([[4120],{3976:(t,o,e)=>{e.d(o,{Ak:()=>_,C8:()=>d,CN:()=>It,DE:()=>T,EI:()=>lt,Eh:()=>Q,GO:()=>p,GR:()=>b,IB:()=>yt,Jq:()=>Ct,Jy:()=>L,L3:()=>z,Lo:()=>E,MF:()=>Z,MQ:()=>Y,N7:()=>M,O2:()=>V,P$:()=>tt,PG:()=>v,PH:()=>f,PU:()=>ot,QD:()=>P,Qn:()=>r,Qo:()=>i,RT:()=>j,RU:()=>ft,TP:()=>gt,US:()=>G,Vz:()=>U,Wk:()=>H,Xr:()=>it,Yy:()=>I,Z1:()=>x,Zf:()=>c,_B:()=>mt,aK:()=>w,aO:()=>u,be:()=>wt,bx:()=>C,cc:()=>rt,cp:()=>ht,dP:()=>K,eQ:()=>A,fj:()=>vt,h0:()=>ct,hK:()=>J,iR:()=>At,j$:()=>kt,jR:()=>dt,ls:()=>pt,mA:()=>m,mI:()=>h,mN:()=>st,nC:()=>s,r3:()=>R,rC:()=>k,t3:()=>B,tO:()=>$,te:()=>q,th:()=>et,uB:()=>W,uR:()=>at,um:()=>N,x7:()=>S,xD:()=>D,xp:()=>F,yD:()=>ut,yJ:()=>nt,yQ:()=>y,yX:()=>O,yZ:()=>bt,zr:()=>g,zv:()=>X});var a=e(9379),n=(e(854),e(666)),l=e(6471);const r=(t,o)=>{if(l.A.isCorporateBooking()){const e=l.A.getAvailabilityEndpoint(!1);return l.A.get(e,(0,a.A)((0,a.A)({},t),{},{ln:o}))}return n.A.get("hotel/v2/hotel/availability",(0,a.A)((0,a.A)({},t),{},{ln:o}))},c=t=>n.A.get("payments/v1/gateways/hotel",t),i=(t,o,e)=>n.A.get("payments/v1/gateways/hotel",(0,a.A)((0,a.A)({},t),{},{contextType:o,contextValue:e})),s=t=>n.A.post("users/v1/getOrCreateCustomerBookingToken",t),h=t=>n.A.post("hotel/authorised/v1/bookings",t),g=t=>n.A.post("payments/authorized/v2/order/",t),d=t=>n.A.post("payments/authorized/v2/order/success",t),p=t=>n.A.post("payments/v1/gift-cards/reverse-voucher-on-dismiss",t),v=t=>n.A.get("hotel/v1/bookings",t),u=t=>n.A.get("hotel/v1/bookings",t),A=t=>n.A.get("hotel/v2/bookings",t),m=(t,o)=>n.A.put("hotel/v1/hotel/".concat(t,"/view"),o),I=(t,o)=>n.A.put("hotel/v1/hotel/".concat(t,"/whatsapp"),o),b=t=>n.A.get("hotel/v1/hotel/reviews?placeId=".concat(t)),y=t=>n.A.get("hotel/v2/hotel/reviews?hotelId=".concat(t)),k=(t,o,e)=>n.A.get("/hotel/v2/hotel/nearby-locations?latitude=".concat(o,"&longitude=").concat(e,"&hotelId=").concat(t)),f=()=>n.A.get("hotel/authorised/v2/hotel/lookups?type=pending_reason&ln=en"),w=t=>n.A.post("hotel/authorised/v1/abandonReason",t),C=t=>n.A.get("hotel/v1/hotel/instagramData?userName=".concat(t)),S=t=>n.A.get("hotel/v2/promotions/get-promotion?hotelId=".concat(t)),T=t=>n.A.get("hotel/v2/promotions/get-promotion",t),P=t=>n.A.get("hotel/authorized/v2/promotions/get-memberdeal-promotions",t),x=t=>n.A.get("hotel/v1/faq/get-faq?hotelId=".concat(t)),D=t=>n.A.post("hotel/v1/faq/add-faq",t),E=(t,o)=>n.A.get("hotel/v2/hotel/policies/".concat(t,"?ln=").concat(o)),R=t=>n.A.post("hotel/v1/bookings/cancel",t),z=t=>n.A.post("hotel/v1/bookings/cancel/info",t),_=t=>n.A.get("payments/authorised/v2/order/paymentDetails?bookingId=".concat(t)),q=(t,o)=>n.A.put("hotel/v1/hotel/".concat(t,"/").concat(o)),L=t=>n.A.post("hotel/v1/bookings/confirmation",t),O=t=>n.A.post("hotel/v1/hotel/travel-planner",t),B=(t,o)=>n.A.get("hotel/v1/hotel/is-lowest?hotelId=".concat(t,"&checkIn=").concat(o)),U=(t,o)=>n.A.get("hotel/v1/bookings/autofill?dialCode=".concat(t,"&mobile=").concat(o)),j=t=>{const o=new URLSearchParams(t).toString();return n.A.get("hotel/v2/promotions/returning-member-promotion?".concat(o))},G=t=>n.A.post("hotel/v2/promotions/verify-sterling-member",t),H=t=>n.A.post("hotel/v1/abandonReason/price-enquiry",t),Q=t=>n.A.get("payments/v2/order/paymentDetails?bookingId=".concat(t)),N=t=>n.A.get("hotel/v1/profile/getProfile?hotelId=".concat(t)),J=()=>n.A.get("hotel/v1/hotel/slugs-list"),V=(t,o)=>n.A.get("hotel/v2/promotions/get-promotion-id?id=".concat(t,"&hotelId=").concat(o)),Z=t=>n.A.get("hotel/v1/pricing_and_inventory/calendar-list",t),F=t=>n.A.get("payments/v1/tax/list?hotelId=".concat(t,"&page=1&pageSize=100&getDefaultTaxes=false")),K=t=>n.A.post("hotel/v1/bookings/prices-logs",t),M=t=>n.A.post("hotel/v1/bookings/is-room-available",t),W=t=>n.A.post("hotel/v2/promotions/validate-coupon-codes",t),X=t=>n.A.get("hotel/v2/bookings/".concat(t)),$=t=>n.A.post("hotel/authorised/v1/bookings/modify-booking",t),Y=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a="payments/v1/gateways/payment-provider?hotelId=".concat(t);return o&&(a+="&contextType=".concat(o)),e&&(a+="&contextValue=".concat(e)),n.A.get(a)},tt=t=>localStorage.getItem("corporateToken")?n.A.get("hotel/v1/corporate/agents/".concat(t)):Promise.resolve({status:404,data:null}),ot=t=>n.A.get("/hotel/v1/hotel/bnpl-config?hotelId=".concat(t)),et=t=>n.A.get("hotel/v1/chatbot/scripttag?hotelId=".concat(t)),at=t=>n.A.post("hotel/v1/hotel/scraper/get-latest-price",t),nt=t=>n.A.get("hotel/v2/promotions/retargeting-promotion-hotel?hotelId=".concat(t)),lt=t=>n.A.post("users/v1/otpCreateLoginAccount",t),rt=t=>n.A.post("users/v1/otpLoginAccount",t),ct=t=>n.A.post("users/v1/verifyOtpLoginAccount",t),it=t=>n.A.post("users/v1/verifyOtpCreateLoginAccount",t),st=t=>n.A.post("hotel/v2/bookings/is-rooms-available",t),ht=t=>n.A.post("hotel/v1/hotel/inventory-retargtting",t),gt=t=>n.A.get("hotel/v1/hotel/get-videos?hotelId=".concat(t)),dt=t=>n.A.post("hotel/v1/chatbot/request-voice-callback",t),pt=t=>n.A.get("hotel/v1/bookings?id=".concat(t)),vt=t=>{let{bookingId:o}=t;return n.A.post("hotel/v2/bookings/".concat(o,"/booking-token"))},ut=t=>{let{hotelId:o}=t;return n.A.get("payments/v1/gateways/cod-payment-provider?hotelId=".concat(o))},At=t=>{let{hotelId:o,checkInDate:e}=t;return n.A.get("hotel/v1/custom-messages/active?hotelId=".concat(o,"&checkInDate=").concat(e))},mt=t=>n.A.post("hotel/v1/hotel/send-roi",t),It=t=>n.A.get("hotel/v1/pricing_and_inventory/next-available-dates",t),bt=t=>n.A.get("hotel/v1/hotel/booking-engine-config?hotelId=".concat(t)),yt=(t,o,e)=>n.A.get("hotel/v2/hotel/nearby-hotels-availability?hotelId=".concat(t,"&checkInDate=").concat(o,"&checkOutDate=").concat(e)),kt=t=>n.A.get("hotel/v2/hotel/chain-hotels-lite-v2?chainId=".concat(t)),ft=(t,o,e,a)=>n.A.post("hotel/v1/loyalty/validate",{programName:t,memberId:o,amount:e,hotelId:a}),wt=t=>n.A.post("payments/v1/gift-cards/balance",t),Ct=t=>{let{hotelId:o}=t;return n.A.get("payments/v1/gift-cards/enabled",{hotelId:o})}},4120:(t,o,e)=>{e.r(o),e.d(o,{default:()=>c});var a=e(5043),n=e(6713),l=e(3976),r=e(579);const c=t=>((0,a.useEffect)(()=>{(async()=>{let t=window.location.search.slice(1).split("&");await(0,l.te)(t[0],"google_review"),window.location.href="https://search.google.com/local/writereview?placeid=".concat(t[1])})()},[]),(0,r.jsx)(n.A,{}))},6471:(t,o,e)=>{e.d(o,{A:()=>v});var a=e(9379),n=e(854),l=e.n(n),r=e(8173),c=e(5346),i=e(5989),s=e(6695);const h=l().create({baseURL:(g="https://api.hotelzify.com/",null!==g&&void 0!==g&&g.endsWith("/")?g.slice(0,-1):g)});var g;h.interceptors.request.use(t=>{const o=localStorage.getItem("corporateToken"),e=localStorage.getItem("corporateHotelId"),n=localStorage.getItem("corporateAgentId");if(console.log({corporateAgentId:n,corporateHotelId:e,corporateToken:o}),o&&e)t.headers.Authorization="Bearer ".concat(o),console.log({request:t}),"get"===t.method&&n&&(t.params=(0,a.A)((0,a.A)({},t.params),{},{corporateAgentId:n})),["post","put","patch"].includes(t.method)&&n&&t.data&&(t.data=(0,a.A)((0,a.A)({},t.data),{},{corporateAgentId:n}));else{const o=i.A.get("token");o&&(t.headers.Authorization="Bearer monne ".concat(o))}return t}),h.interceptors.response.use(null,t=>{const{status:o}=(null===t||void 0===t?void 0:t.response)||{};if(401===o){localStorage.removeItem("corporateToken"),localStorage.removeItem("corporateHotelId"),localStorage.removeItem("corporateAgentId"),i.A.remove("token");const t=new URLSearchParams(window.location.search),o=t.get("hotelId");
1t.get("corporate")&&o?window.location.href="/corporate-booking?hotelId=".concat(o,"&returnUrl=").concat(encodeURIComponent(window.location.pathname+window.location.search)):r.b.push("/")}return Promise.reject(t)});const d=async t=>{try{const{data:o}=await h(t);return 400===(null===o||void 0===o?void 0:o.status)&&(0,c.fireGtmEvent)("api_error",{url:null===t||void 0===t?void 0:t.url,params:null===t||void 0===t?void 0:t.params,payload:null===t||void 0===t?void 0:t.data,data:o}),o}catch(n){var o,e,a;if((null===n||void 0===n||null===(o=n.response)||void 0===o?void 0:o.status)>=500)(0,s.Cp)("API: ".concat(null===t||void 0===t||null===(a=t.url)||void 0===a?void 0:a.slice(0,30)," Failed!"),{data:{request:t,error:n}});return(0,c.fireGtmEvent)("api_error",{url:null===t||void 0===t?void 0:t.url,axiosObject:t,error:n}),(null===n||void 0===n||null===(e=n.response)||void 0===e?void 0:e.data)||{}}},p={get:(t,o)=>d({method:"GET",url:t,params:o}),post:(t,o)=>d({method:"POST",url:t,data:o}),put:(t,o)=>d({method:"PUT",url:t,data:o}),patch:(t,o)=>d({method:"PATCH",url:t,data:o}),delete:(t,o)=>d({method:"DELETE",url:t,data:o}),isCorporateBooking:()=>!!localStorage.getItem("corporateToken")&&!!localStorage.getItem("corporateHotelId"),getAvailabilityEndpoint:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p.isCorporateBooking()?"hotel/authorized/v2/hotel/availability":t?"hotel/v2/hotel/availability/rateplan":"hotel/v2/hotel/availability"},clearCorporateSession:()=>{localStorage.clear()}},v=p}}]); 2//# sourceMappingURL=4120.0f483014.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.