1"use strict";(self.webpackChunklanding_page=self.webpackChunklanding_page||[]).push([[4683],{3066:(e,t,a)=>{a.d(t,{A:()=>i});var o=a(5043);const n="RezyListLoopTxt_loopTxt__VKlMX";var r=a(579);const i=()=>{const e=["90% Chances of rooms getting available in next 18 hours","Join 3 Guests Who Got Notified and Booked in the Last 2 Hours!","Be the Next One! 3 Guests Secured Their Room \u2013 Will You?","Stay Ahead! Get Notified! And Book Your Dream Room","4 Rooms Opened Up in 7 Hours \u2013 Be the Next to Book"],[t]=(0,o.useState)(()=>Math.floor(Math.random()*e.length));return(0,r.jsx)("p",{className:n,children:e[t]})}},4683:(e,t,a)=>{a.r(t),a.d(t,{default:()=>g});var o=a(9379),n=a(5043),r=a(7950),i=a(7100);a(5016);const l={modalOverlay:"InventoryRetargModal_modalOverlay__kYo6B",modalContent:"InventoryRetargModal_modalContent__6YLjT",modalHeader:"InventoryRetargModal_modalHeader__Nefnp",bellIcon:"InventoryRetargModal_bellIcon__xWrKU",closeButton:"InventoryRetargModal_closeButton__Koh4p",headerContentGrp:"InventoryRetargModal_headerContentGrp__-91bZ",modalTitle:"InventoryRetargModal_modalTitle__kDpj1",modalDescription:"InventoryRetargModal_modalDescription__DR4po",inputGroup:"InventoryRetargModal_inputGroup__GDe1-",inputField:"InventoryRetargModal_inputField__wLuco",phoneInputGroup:"InventoryRetargModal_phoneInputGroup__yGK4Z",phoneInputWrapper:"InventoryRetargModal_phoneInputWrapper__3Oucv",submit_btn_box:"InventoryRetargModal_submit_btn_box__2qtOi",submitButton:"InventoryRetargModal_submitButton__786wl",confirmation_container:"InventoryRetargModal_confirmation_container__wWekC",iconContainer:"InventoryRetargModal_iconContainer__pg-3w",confirmation_title:"InventoryRetargModal_confirmation_title__gZf2L",confirmation_message:"InventoryRetargModal_confirmation_message__weD3d"};var s=a(7023),d=a(3976),m=a(8601),c=a(5346),u=a(3066),_=a(270),h=a(446),p=a.n(h),v=a(579);const g=e=>{let{onClose:t,dateRange:a,adults:h=2,child:g=0}=e;const{hotelData:b}=(0,m.d4)(e=>e.hotelInfo),{id:y}=b,f=(0,_.N)(null===b||void 0===b?void 0:b.country),[x,N]=(0,n.useState)({name:"",email:""}),[j,I]=(0,n.useState)(""),[M,R]=(0,n.useState)({name:"",email:"",mobile:""}),[C,D]=(0,n.useState)(!1),G=e=>{const{name:t,value:a}=e.target;N(e=>(0,o.A)((0,o.A)({},e),{},{[t]:a})),M[t]&&R(e=>(0,o.A)((0,o.A)({},e),{},{[t]:""}))},k=e=>{(0,c.fireGtmEvent)("inventory_retarg_field_focus",{field_name:e,hotel_id:y})},A=()=>(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("div",{className:l.confirmation_container,children:[(0,v.jsx)("div",{className:l.iconContainer,children:(0,v.jsx)("img",{src:"https://ik.imagekit.io/hotelzifyprod/assets/images/notify_retarg_confirm.png",alt:"successful"})}),(0,v.jsx)("h2",{className:l.confirmation_title,children:"You're on the List!"}),(0,v.jsx)("p",{className:l.confirmation_message,children:"We'll let you know the moment a room becomes available. Stay tuned!"})]})});return r.createPortal((0,v.jsx)("div",{className:l.modalOverlay,children:C?(0,v.jsx)("div",{className:l.modalContent,children:(0,v.jsx)(A,{})}):(0,v.jsxs)("div",{className:l.modalContent,children:[(0,v.jsxs)("div",{className:l.modalHeader,children:[(0,v.jsx)("div",{className:l.bellIcon,children:(0,v.jsx)(s.A,{size:24})}),(0,v.jsx)("button",{className:l.closeButton,onClick:()=>{(0,c.fireGtmEvent)("inventory_retarg_modal_closed",{hotel_id:y,check_in_date:null!==a&&void 0!==a&&a.startDate?p()(a.startDate).format("YYYY-MM-DD HH:mm:ss"):"",check_out_date:null!==a&&void 0!==a&&a.endDate?p()(a.endDate).format("YYYY-MM-DD HH:mm:ss"):""}),t()},children:(0,v.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:(0,v.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})]}),(0,v.jsxs)("div",{className:l.headerContentGrp,children:[(0,v.jsx)("h2",{className:l.modalTitle,children:"Get Notified When Rooms Are Available"}),(0,v.jsxs)("p",{className:l.modalDescription,children:["Missed out on your preferred dates? ",(0,v.jsx)("br",{}),"Enter your details, and we'll notify you as soon as a room opens up!"]})]}),(0,v.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),!(()=>{let e=!0;const t={name:"",email:"",mobile:""};var a;return x.name.trim()||(t.name="Name is required",e=!1),x.email.trim()?(a=x.email,/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a)||(t.email="Please enter a valid email address",e=!1)):(t.email="Email is required",e=!1),j?(0,i.g0)(j)||(t.mobile="Please enter a valid phone number",e=!1):(t.mobile="Phone number is required",e=!1),R(t),e})())return void(0,c.fireGtmEvent)("inventory_retarg_form_validation_failed",{hotel_id:y,errors:Object.keys(M).filter(e=>M[e])});const n=(0,i.parsePhoneNumber)(String(j||"")),r=(0,o.A)((0,o.A)({dialCode:"+"+n.countryCallingCode,mobile:n.nationalNumber},x),{},{hotelId:y,checkInDate:null===a||void 0===a?void 0:a.startDate,checkOutDate:null===a||void 0===a?void 0:a.endDate,totalAdult:h,totalChild:g});await(0,d.cp)(r),(0,c.fireGtmEvent)("submitted_rezylist_form",r),D(!0),setTimeout(()=>{t()},3e3)},children:[(0,v.jsxs)("div",{className:l.inputGroup,children:[(0,v.jsx)("input",{type:"text",name:"name",placeholder:"Name",value:x.name,onChange:G,onF
1ocus:()=>k("name"),className:"".concat(l.inputField," ").concat(M.name?l.inputError:""),required:!0}),M.name&&(0,v.jsx)("span",{className:l.errorMessage,children:M.name})]}),(0,v.jsxs)("div",{className:l.inputGroup,children:[(0,v.jsx)("input",{type:"email",name:"email",placeholder:"Email Address",value:x.email,onChange:G,onFocus:()=>k("email"),className:"".concat(l.inputField," ").concat(M.email?l.inputError:""),required:!0}),M.email&&(0,v.jsx)("span",{className:l.errorMessage,children:M.email})]}),(0,v.jsxs)("div",{className:l.phoneInputGroup,children:[(0,v.jsx)(i.Ay,{defaultCountry:f,value:j,onChange:e=>{I(e),M.mobile&&R(e=>(0,o.A)((0,o.A)({},e),{},{mobile:""}))},onFocus:()=>k("mobile"),className:"".concat(l.phoneInputWrapper," ").concat(M.mobile?l.phoneInputError:""),placeholder:"Mobile Number",required:!0}),M.mobile&&(0,v.jsx)("span",{className:l.errorMessage,children:M.mobile})]}),(0,v.jsx)("div",{className:l.submit_btn_box,children:(0,v.jsx)("button",{type:"submit",className:l.submitButton,children:"Notify Me FIRST!"})})]}),(0,v.jsx)(u.A,{})]})}),document.body)}}}]); 2//# sourceMappingURL=4683.e5353897.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.