PageSourceSearch

https://hotelzify.com/static/js/7772.4eee4f02.chunk.js

js hotelzify.com collected 2026-10-01 15:36:23 UTC 16,568 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunklanding_page=self.webpackChunklanding_page||[]).push([[7772],{3976:(e,t,o)=>{o.d(t,{Ak:()=>E,C8:()=>m,CN:()=>Ae,DE:()=>R,EI:()=>se,Eh:()=>M,GO:()=>u,GR:()=>y,IB:()=>xe,Jq:()=>je,Jy:()=>L,L3:()=>P,Lo:()=>D,MF:()=>K,MQ:()=>X,N7:()=>Q,O2:()=>q,P$:()=>ee,PG:()=>p,PH:()=>f,PU:()=>te,QD:()=>w,Qn:()=>l,Qo:()=>i,RT:()=>H,RU:()=>ke,TP:()=>he,US:()=>O,Vz:()=>G,Wk:()=>U,Xr:()=>ie,Yy:()=>A,Z1:()=>C,Zf:()=>r,_B:()=>be,aK:()=>k,aO:()=>v,be:()=>Ne,bx:()=>N,cc:()=>le,cp:()=>de,dP:()=>F,eQ:()=>g,fj:()=>pe,h0:()=>re,hK:()=>z,iR:()=>ge,j$:()=>Ie,jR:()=>me,ls:()=>ue,mA:()=>b,mI:()=>d,mN:()=>ce,nC:()=>c,nw:()=>fe,r3:()=>S,rC:()=>I,t3:()=>W,tO:()=>V,te:()=>T,th:()=>oe,uB:()=>Z,uR:()=>ae,um:()=>Y,x7:()=>j,xD:()=>_,xp:()=>$,yD:()=>ve,yJ:()=>ne,yQ:()=>x,yX:()=>B,yZ:()=>ye,zr:()=>h,zv:()=>J});var a=o(9379),n=(o(854),o(666)),s=o(6471);const l=(e,t)=>{if(s.A.isCorporateBooking()){const o=s.A.getAvailabilityEndpoint(!1);return s.A.get(o,(0,a.A)((0,a.A)({},e),{},{ln:t}))}return n.A.get("hotel/v2/hotel/availability",(0,a.A)((0,a.A)({},e),{},{ln:t}))},r=e=>n.A.get("payments/v1/gateways/hotel",e),i=(e,t,o)=>n.A.get("payments/v1/gateways/hotel",(0,a.A)((0,a.A)({},e),{},{contextType:t,contextValue:o})),c=e=>n.A.post("users/v1/getOrCreateCustomerBookingToken",e),d=e=>n.A.post("hotel/authorised/v1/bookings",e),h=e=>n.A.post("payments/authorized/v2/order/",e),m=e=>n.A.post("payments/authorized/v2/order/success",e),u=e=>n.A.post("payments/v1/gift-cards/reverse-voucher-on-dismiss",e),p=e=>n.A.get("hotel/v1/bookings",e),v=e=>n.A.get("hotel/v1/bookings",e),g=e=>n.A.get("hotel/v2/bookings",e),b=(e,t)=>n.A.put("hotel/v1/hotel/".concat(e,"/view"),t),A=(e,t)=>n.A.put("hotel/v1/hotel/".concat(e,"/whatsapp"),t),y=e=>n.A.get("hotel/v1/hotel/reviews?placeId=".concat(e)),x=e=>n.A.get("hotel/v2/hotel/reviews?hotelId=".concat(e)),I=(e,t,o)=>n.A.get("/hotel/v2/hotel/nearby-locations?latitude=".concat(t,"&longitude=").concat(o,"&hotelId=").concat(e)),f=()=>n.A.get("hotel/authorised/v2/hotel/lookups?type=pending_reason&ln=en"),k=e=>n.A.post("hotel/authorised/v1/abandonReason",e),N=e=>n.A.get("hotel/v1/hotel/instagramData?userName=".concat(e)),j=e=>n.A.get("hotel/v2/promotions/get-promotion?hotelId=".concat(e)),R=e=>n.A.get("hotel/v2/promotions/get-promotion",e),w=e=>n.A.get("hotel/authorized/v2/promotions/get-memberdeal-promotions",e),C=e=>n.A.get("hotel/v1/faq/get-faq?hotelId=".concat(e)),_=e=>n.A.post("hotel/v1/faq/add-faq",e),D=(e,t)=>n.A.get("hotel/v2/hotel/policies/".concat(e,"?ln=").concat(t)),S=e=>n.A.post("hotel/v1/bookings/cancel",e),P=e=>n.A.post("hotel/v1/bookings/cancel/info",e),E=e=>n.A.get("payments/authorised/v2/order/paymentDetails?bookingId=".concat(e)),T=(e,t)=>n.A.put("hotel/v1/hotel/".concat(e,"/").concat(t)),L=e=>n.A.post("hotel/v1/bookings/confirmation",e),B=e=>n.A.post("hotel/v1/hotel/travel-planner",e),W=(e,t)=>n.A.get("hotel/v1/hotel/is-lowest?hotelId=".concat(e,"&checkIn=").concat(t)),G=(e,t)=>n.A.get("hotel/v1/bookings/autofill?dialCode=".concat(e,"&mobile=").concat(t)),H=e=>{const t=new URLSearchParams(e).toString();return n.A.get("hotel/v2/promotions/returning-member-promotion?".concat(t))},O=e=>n.A.post("hotel/v2/promotions/verify-sterling-member",e),U=e=>n.A.post("hotel/v1/abandonReason/price-enquiry",e),M=e=>n.A.get("payments/v2/order/paymentDetails?bookingId=".concat(e)),Y=e=>n.A.get("hotel/v1/profile/getProfile?hotelId=".concat(e)),z=()=>n.A.get("hotel/v1/hotel/slugs-list"),q=(e,t)=>n.A.get("hotel/v2/promotions/get-promotion-id?id=".concat(e,"&hotelId=").concat(t)),K=e=>n.A.get("hotel/v1/pricing_and_inventory/calendar-list",e),$=e=>n.A.get("payments/v1/tax/list?hotelId=".concat(e,"&page=1&pageSize=100&getDefaultTaxes=false")),F=e=>n.A.post("hotel/v1/bookings/prices-logs",e),Q=e=>n.A.post("hotel/v1/bookings/is-room-available",e),Z=e=>n.A.post("hotel/v2/promotions/validate-coupon-codes",e),J=e=>n.A.get("hotel/v2/bookings/".concat(e)),V=e=>n.A.post("hotel/authorised/v1/bookings/modify-booking",e),X=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a="payments/v1/gateways/payment-provider?hotelId=".concat(e);return t&&(a+="&contextType=".concat(t)),o&&(a+="&contextValue=".concat(o)),n.A.get(a)},ee=e=>localStorage.getItem("corporateToken")?n.A.get("hotel/v1/corporate/agents/".concat(e)):Promise.resolve({status:404,data:null}),te=e=>n.A.get("/hotel/v1/hotel/bnpl-config?hotelId=".concat(e)),oe=e=>n.A.get("hotel/v1/chatbot/scripttag?hotelId=".concat(e)),ae=e=>n.A.post("hotel/v1/hotel/scraper/get-latest-price",e),ne=e=>n.A.get("hotel/v2/promotions/retargeting-promotion-hotel?hotelId=".concat(e)),se=e=>n.A.post("users/v1/otpCreateLoginAccount",e),le=e=>n.A.post("users/v1/otpLoginAccount",e),re=e=>n.A.post("users/v1/verifyOtpLoginAccount",e),ie=e=>n.A.post("users/v1/verifyOtpCreateLoginAccount",e),ce=e=>n.A.post("hotel/v2/bookings/is-rooms-available",e),de=e=>n.A.post("hotel/v1/hotel/inventory-retargtting",e),he=e=>n.A.get("hotel/v1/hotel/get-videos?hotelId=".concat(e)),me=e=>n.A.post("hotel/v1/chatbot/request-voice-callback",e),ue=e=>n.A.get("hotel/v1/bookings?id=".concat(e)),pe=e=>{let{bookingId:t}=e;return n.A.post("hotel/v2/bookings/".concat(t,"/booking-token"))},ve=e=>{let{hotelId:t}=e;return n.A.get("payments/v1/gateways/cod-payment-provider?hotelId=".concat(t))},ge=e=>{let{hotelId:t,checkInDate:o}=e;return n.A.get("hotel/v1/custom-messages/active?hotelId=".concat(t,"&checkInDate=").concat(o))},be=e=>n.A.post("hotel/v1/hotel/send-roi",e),Ae=e=>n.A.get("hotel/v1/pricing_and_inventory/next-available-dates",e),ye=e=>n.A.get("hotel/v1/hotel/booking-engine-config?hotelId=".concat(e)),xe=(e,t,o)=>n.A.get("hotel/v2/hotel/nearby-hotels-availability?hotelId=".concat(e,"&checkInDate=").concat(t,"&checkOutDate=").concat(o)),Ie=e=>n.A.get("hotel/v2/hotel/chain-hotels-lite-v2?chainId=".concat(e)),fe=e=>n.A.get("hotel/v2/hotel/chain-hotels-summary?chainId=".concat(e)),ke=(e,t,o,a)=>n.A.post("hotel/v1/loyalty/validate",{programName:e,memberId:t,amount:o,hotelId:a}),Ne=e=>n.A.post("payments/v1/gift-cards/balance",e),je=e=>{let{hotelId:t}=e;return n.A.get("payments/v1/gift-cards/enabled",{hotelId:t})}},6471:(e,t,o)=>{o.d(t,{A:()=>p});var a=o(9379),n=o(854),s=o.n(n),l=o(8173),r=o(5346),i=o(5989),c=o(6695);const d=s().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"),o=localStorage.getItem("corporateHotelId"),n=localStorage.getItem("corporateAgentId");if(console.log({corporateAgentId:n,corporateHotelId:o,corporateToken:t}),t&&o)e.headers.Authorization="Bearer ".concat(t),console.log({request:e}),"get"===e.method&&n&&(e.params=(0,a.A)((0,a.A)({},e.params),{},{corporateAgentId:n})),["post","put","patch"].includes(e.method)&&n&&e.data&&(e.data=(0,a.A)((0,a.A)({},e.data),{},{corporateAgentId:n}));else{const t=i.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"),i.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,r.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(n){var t,o,a;if((null===n||void 0===n||null===(t=n.response)||void 0===t?void 0:t.status)>=500)(0,c.Cp)("API: ".concat(null===e||void 0===e||null===(a=e.url)||void 0===a?void 0:a.slice(0,30)," Failed!"),{data:{request:e,error:n}});return(0,r.fireGtmEvent)("api_error",{url:null===e||void 0===e?void 0:e.url,axiosObject:e,error:n}),(null===n||void 0===n||null===(o=n.response)||void 0===o?void 0:o.data)||{}}},u={get:(e,t)=>m({method:"GET",url:e,params:t}),post:(e,t)=>
1m({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},7772:(e,t,o)=>{o.r(t),o.d(t,{default:()=>p});var a=o(9379),n=o(5043),s=(o(6747),o(4180)),l=o(9998),r=o(6986),i=o(3976),c=o(3716),d=o.n(c),h=o(5346),m=o(579);const u={USD:{symbol:"$",name:"US Dollar"},EUR:{symbol:"\u20ac",name:"Euro"},GBP:{symbol:"\xa3",name:"British Pound"},INR:{symbol:"\u20b9",name:"Indian Rupee"},AED:{symbol:"\u062f.\u0625",name:"UAE Dirham"},AUD:{symbol:"$",name:"Australian Dollar"},CAD:{symbol:"$",name:"Canadian Dollar"},CNY:{symbol:"\xa5",name:"Chinese Yuan"},JPY:{symbol:"\xa5",name:"Japanese Yen"},SGD:{symbol:"$",name:"Singapore Dollar"},CHF:{symbol:"CHF",name:"Swiss Franc"},HKD:{symbol:"$",name:"Hong Kong Dollar"},NZD:{symbol:"$",name:"New Zealand Dollar"},SEK:{symbol:"kr",name:"Swedish Krona"},KRW:{symbol:"\u20a9",name:"South Korean Won"},NOK:{symbol:"kr",name:"Norwegian Krone"},MXN:{symbol:"$",name:"Mexican Peso"},BRL:{symbol:"R$",name:"Brazilian Real"},ZAR:{symbol:"R",name:"South African Rand"},RUB:{symbol:"\u20bd",name:"Russian Ruble"},TRY:{symbol:"\u20ba",name:"Turkish Lira"},THB:{symbol:"\u0e3f",name:"Thai Baht"},MYR:{symbol:"RM",name:"Malaysian Ringgit"},IDR:{symbol:"Rp",name:"Indonesian Rupiah"},PHP:{symbol:"\u20b1",name:"Philippine Peso"},QAR:{symbol:"QAR",name:"Qatari Riyal"},SAR:{symbol:"\u0631.\u0633",name:"Saudi Riyal"},KWD:{symbol:"\u062f.\u0643",name:"Kuwaiti Dinar"},BHD:{symbol:".\u062f.\u0628",name:"Bahraini Dinar"},OMR:{symbol:"\u0631.\u0639.",name:"Omani Rial"}},p=()=>{const[,e]=(0,n.useState)(null),t=u;(0,n.useEffect)(()=>{window.scrollTo(0,0),(0,h.fireGtmEvent)("landing_roi_page_viewed",{page_type:"roi_calculator",page_name:"ROI Calculator"})},[]);const[o,c]=(0,n.useState)({WebsiteLink:"",CurrentWebsiteTraffic:"",ADR:"",isMetaListed:null,CurrentConversionRate:"",userEmailId:"",hotelName:"",userPhone:"",currency:"USD"}),p=e=>{const{name:t,value:o,type:n,checked:s}=e.target;c(e=>(0,a.A)((0,a.A)({},e),{},{[t]:"checkbox"===n?s:o})),(0,h.fireGtmEvent)("landing_roi_field_changed",{field_name:t,field_type:n,section:"hotelName"===t||"userEmailId"===t||"userPhone"===t?"contact_form":"metrics_form"})},v=e=>{c(t=>(0,a.A)((0,a.A)({},t),{},{isMetaListed:e})),(0,h.fireGtmEvent)("landing_roi_meta_listing_selected",{is_meta_listed:e,selection:e?"yes":"no"})};return(0,m.jsxs)("div",{className:"roi",children:[(0,m.jsx)(s.A,{}),(0,m.jsx)("div",{className:"main-container",children:(0,m.jsxs)("div",{style:{paddingTop:"25px"},children:[(0,m.jsxs)("p",{className:"roiHeader",children:["Discover Your Hotel's Direct Booking Revenue Potential with Our"," ",(0,m.jsx)("span",{className:"roiHeaderBlue",children:"ROI Calculator"})]}),(0,m.jsxs)("div",{className:"roiForm",children:[(0,m.jsxs)("div",{children:[(0,m.jsx)("p",{className:"website",children:"Current Website Metrics"}),(0,m.jsxs)("div",{className:"formRow",children:[(0,m.jsxs)("div",{className:"websiteContainer",children:[(0,m.jsxs)("div",{className:"inputGroup",children:[(0,m.jsx)("p",{className:"websiteText",children:"Website Link *"}),(0,m.jsxs)("div",{className:"inputWithPrefix",children:[(0,m.jsx)("span",{className:"prefix",children:"https://"}),(0,m.jsx)("input",{type:"text",name:"WebsiteLink",value:o.WebsiteLink,onChange:p,placeholder:"www.yourhotel.com",className:"websiteInputLink"})]})]}),(0,m.jsxs)("div",{className:"inputGroup",children:[(0,m.jsx)("p",{className:"websiteText",children:"Conversion Rate *"}),(0,m.jsxs)("div",{className:"inputWithSuffix",children:[(0,m.jsx)("input",{type:"number",className:"websiteInput",name:"CurrentConversionRate",value:o.CurrentConversionRate,onChange:p,onWheel:e=>e.target.blur(),min:0}),(0,m.jsx)("span",{className:"inputSuffix",children:"%"})]})]}),(0,m.jsxs)("div",{className:"inputGroup",children:[(0,m.jsx)("p",{className:"websiteText",children:"Is Your Hotel Listed on Meta?"}),(0,m.jsxs)("div",{className:"checkboxRow",children:[(0,m.jsxs)("div",{className:"checkboxContainer",children:[(0,m.jsx)("input",{type:"checkbox",id:"metaYes",checked:!0===o.isMetaListed,onChange:()=>v(!0)}),(0,m.jsx)("label",{htmlFor:"metaYes",children:"Yes"})]}),(0,m.jsxs)("div",{className:"checkboxContainer",children:[(0,m.jsx)("input",{type:"checkbox",id:"metaNo",checked:!1===o.isMetaListed,onChange:()=>v(!1)}),(0,m.jsx)("label",{htmlFor:"metaNo",children:"No"})]})]})]})]}),(0,m.jsxs)("div",{className:"resultContainer",children:[(0,m.jsx)("p",{className:"resultText",children:"Current Results"}),(0,m.jsxs)("div",{className:"resultRow",children:[(0,m.jsx)("p",{className:"resultSubtext",children:"Current Website Traffic"}
1),(0,m.jsx)("input",{type:"number",className:"resultInput",name:"CurrentWebsiteTraffic",value:o.CurrentWebsiteTraffic,onChange:p,onWheel:e=>e.target.blur(),min:0})]}),(0,m.jsxs)("div",{className:"resultRow",children:[(0,m.jsx)("p",{className:"resultSubtext",children:"Average Daily Rate (ADR)*"}),(0,m.jsxs)("div",{className:"adrInputContainer",children:[(0,m.jsx)("select",{name:"currency",value:o.currency,onChange:p,className:"currencySelect",children:Object.keys(t).map(e=>(0,m.jsxs)("option",{value:e,children:[e," (",t[e].symbol,")"]},e))}),(0,m.jsx)("input",{type:"number",className:"resultInput",name:"ADR",value:o.ADR,onChange:p,onWheel:e=>e.target.blur(),min:0})]})]})]})]})]}),(0,m.jsxs)("div",{children:[(0,m.jsx)("p",{className:"website",children:"Your Growth with Hotelzify"}),(0,m.jsx)("div",{className:"formRow",children:(0,m.jsxs)("div",{className:"resultContainer",children:[(0,m.jsx)("p",{className:"resultHeader",children:"Unlock Your Results Now!"}),(0,m.jsx)("p",{className:"resultSubtext",children:"Impressive results are waiting for you"}),(0,m.jsx)("p",{className:"resultSub",children:"Enter your details to discover your hotel's true potential."}),(0,m.jsxs)("div",{className:"inputGroup",children:[(0,m.jsx)("input",{type:"text",className:"websiteInput",placeholder:"Hotel Name",name:"hotelName",value:o.hotelName,onChange:p}),(0,m.jsx)("input",{type:"email",className:"websiteInput",placeholder:"Email Address",name:"userEmailId",value:o.userEmailId,onChange:p}),(0,m.jsx)("input",{type:"tel",className:"websiteInput",placeholder:"Phone Number",name:"userPhone",value:o.userPhone,onChange:p}),(0,m.jsxs)("div",{className:"privacyRow",children:[(0,m.jsx)("input",{type:"checkbox",onChange:e=>{(0,h.fireGtmEvent)("landing_roi_privacy_consent_toggled",{consented:e.target.checked})}}),(0,m.jsxs)("p",{className:"privacyText",children:["I agree to receive promotions as per the"," ",(0,m.jsx)("span",{className:"privacyTextLink",children:"privacy policy"})]})]}),(0,m.jsx)("button",{className:"resultBtn",onClick:async()=>{(0,h.fireGtmEvent)("landing_roi_form_submit_attempted",{website_link:o.WebsiteLink,currency:o.currency,is_meta_listed:o.isMetaListed,has_email:!!o.userEmailId,has_phone:!!o.userPhone});for(const[e,a]of Object.entries(o))if("userPhone"!==e&&(null===a||void 0===a||""===a))return(0,h.fireGtmEvent)("landing_roi_validation_error",{missing_field:e}),void d().error("Please fill in the ".concat(e," field."));try{const t=await(0,i._B)(o);200===t.status&&((0,h.fireGtmEvent)("landing_roi_calculated_success",{website_link:o.WebsiteLink,currency:o.currency,adr:o.ADR,conversion_rate:o.CurrentConversionRate,website_traffic:o.CurrentWebsiteTraffic,is_meta_listed:o.isMetaListed}),d().success("ROI request sent successfully. You will receive an email shortly."),e(t.data))}catch(t){(0,h.fireGtmEvent)("landing_roi_calculated_error",{error_message:(null===t||void 0===t?void 0:t.message)||"Unknown error"}),console.error("Error sending ROI request:",t),d().error("Please try again later.")}},children:"See Results \u2014 It's Free!"})]})]})})]})]})]})}),(0,m.jsx)(l.A,{}),(0,m.jsx)(r.A,{})]})}}}]);
2//# sourceMappingURL=7772.4eee4f02.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.