PageSourceSearch

https://nl.belvilla.be/assets/desktop/mapsearchV2.93e0fd5076d8a3ebcf5d.js

js belvilla.be collected 2026-09-28 07:43:25 UTC 40,563 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[2211],{46337:(e,t,o)=>{"use strict";o.d(t,{Z:()=>L});var r=o(98661),a=o(61409),n=o(37101),i=o(7355),s=o(45023),c=o(77235),l=o(72063),u=o(31440),p=o(86646),d=o(12676),h=o(48746),f=o(48136),g=o(41322),m=o(57154),y=o(83064),b=o(55900),v=(0,g.css)({name:"j7olj0",styles:"position:fixed;z-index:100;"}),S=(0,g.css)(y.uus,";animation:ease-in-out;border-radius:12px;padding:16px;z-index:50;background-color:",m.oN,";max-width:320px;width:90%;"),_=(0,g.css)(b.LI,";color:",m.P2,";font-weight:600;text-align:center;padding-top:16px;"),C=(0,g.css)(b.KG,";");const w=function(e){var t=e.children;return(0,r.createPortal)(t,document.getElementById("root"))};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function x(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function k(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?x(Object(o),!0).forEach((function(t){P(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):x(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function P(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function j(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},E(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,r=A(e);if(t){var a=A(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return N(this,o)}}function N(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return B(e)}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(m,e);var t,o,n,g=M(m);function m(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(t=g.call(this,e)).state={geoLocationPopup:!1,geoErrorMsg:t.props.intl.formatMessage(f.d.errorMessage1),locationText:t.props.suggestedSearch||t.props.intl.formatMessage(f.d.locationText1)},t.getGeolocation=t.getGeolocation.bind(B(t)),t.geoSuccess=t.geoSuccess.bind(B(t)),t.geoError=t.geoError.bind(B(t)),t.hideHotelNearByPopup=t.hideHotelNearByPopup.bind(B(t)),t}return t=m,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=(e.resetSearchObj,e.actions);this.props.searchObj.searchType&&t&&t.resetSearchObj(),this.getGeolocation()}},{key:"getUpdatedSearchObj",value:function(e){var t=JSON.parse(JSON.stringify(this.props.searchObj));return t.location=e.location,t.latitude=e.latitude,t.longitude=e.longitude,t.city=e.city,t.searchType=e.searchType,t.showMap=e.showMap,t&&t.filters&&delete t.filters,t}},{key:"getGeolocation",value:function(){var e=this.props.micrositeData;e&&e.micrositeConfig&&e.micrositeSDK?"function"==typeof e.micrositeConfig.getUserLocation&&e.micrositeConfig.getUserLocation(e.micrositeSDK,this.geoSuccess,this.geoError):navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition(this.geoSuccess,this.geoError,{maximumAge:6e5,timeout:1e4}):this.setState({geoLocationError:!0,geoErrorMsg:this.props.intl.formatMessage(f.d.errorMessage2)})}},{key:"geoSuccess",value:function(e){var t=this.props,o=t.actions,r=t.updateSearchObj,n=t.abData,g=t.shell,m=(0,p.NA)(g,"brandData.name","OYO"),y=n&&n.ndbp,b={location:this.props.suggestedSearch||this.props.intl.formatMessage(f.d.locationText1,{brandName:m}),latitude:e.coords.latitude,longitude:e.coords.longitude,city:"",searchType:"locality"};
1(0,i.nL)({lat:e.coords.latitude,lon:e.coords.longitude},s.xlq),(0,c.d8)("nbl","true",l.SIX_MONTHS_IN_MSEC,{path:"/"}),1===y&&(b=k(k({},b),{},{showMap:"true"}));var v=this.getUpdatedSearchObj(b),S=(0,p.kF)(v.roomConfig),_=S.rooms,C=S.guests;if(v.guests=C,v.rooms=_,this.props.suggestedSearch){var w={};w.keywords=this.props.suggestedSearch,(v=k(k({},v),{},{filters:w,lat:b.latitude,lon:b.longitude}))&&v.showMap&&delete v.showMap}(0,d._)(v,"/search"),o?o.updateSearchObj(v):r(v);var O=this.props,x=O.showDateGuestPickerNew;if(O.isNewSearchWidget)x("checkin");else{var P=(0,u.eO)(v);P.sort="distance",P.sortOrder="ascending";var j=(0,p.Gr)("/search",P);(0,h.K)()?a.mW.push(j):window.location=j}}},{key:"geoError",value:function(e){var t=this.props,o=t.actions,r=t.resetSearchObj,a=t.shell,n=(0,p.NA)(a,"brandData.name","OYO"),i=(this.props.intl.formatMessage(f.d.errorMessage3),this.props.intl.formatMessage(f.d.errorMessage1));switch(e.code){case e.PERMISSION_DENIED:i=this.props.intl.formatMessage(f.d.errorMessage4,{brandName:n}),this.props.intl.formatMessage(f.d.errorMessage5);break;case e.POSITION_UNAVAILABLE:i=this.props.intl.formatMessage(f.d.errorMessage6),this.props.intl.formatMessage(f.d.errorMessage7);break;case e.TIMEOUT:this.props.intl.formatMessage(f.d.errorMessage8);break;case e.UNKNOWN_ERROR:this.props.intl.formatMessage(f.d.errorMessage9)}(this.props.micrositeData||{}).micrositeName&&(i=this.props.intl.formatMessage(f.d.errorMessage10,{brandName:n})),this.props.searchObj.searchType&&(o?o.resetSearchObj():r()),this.setState({geoLocationPopup:!0,geoErrorMsg:i})}},{key:"hideHotelNearByPopup",value:function(){var e=this.props.toggleNearMeComponent;this.setState({geoLocationPopup:!1}),"function"==typeof e&&e(!1);var t="/";this.props.micrositeData&&this.props.micrositeData.micrositeName&&(t="".concat(t,"?microsite=").concat(this.props.micrositeData.micrositeName)),(0,h.K)()?a.mW.replace(t):window.location="/"}},{key:"render",value:function(){var e=this.props.intl;return r.default.createElement(w,null,r.default.createElement("div",{className:v},this.state.geoLocationPopup?[r.default.createElement("div",{className:"u-overlay"}),r.default.createElement("div",{className:S},r.default.createElement("div",{className:C},this.state.geoErrorMsg),r.default.createElement("div",{className:_,onClick:this.hideHotelNearByPopup}," ",e.formatMessage(f.d.ok)," "))]:null))}}])&&j(t.prototype,o),n&&j(t,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(r.Component);const L=(0,n.injectIntl)(T)},48136:(e,t,o)=>{"use strict";o.d(t,{d:()=>r});var r=(0,o(37101).defineMessages)({errorMessage1:{id:"mobile-components.HotelNearMePopup.errorMessage1",defaultMessage:"Something went wrong"},locationText1:{id:"mobile-components.HotelNearMePopup.locationText1",defaultMessage:"{brandName}s near me"},errorMessage2:{id:"mobile-components.HotelNearMePopup.errorMessage2",defaultMessage:"Browser does not support GeoLocation service"},errorMessage3:{id:"mobile-components.HotelNearMePopup.errorMessage3",defaultMessage:"GeoLocation error"},errorMessage4:{id:"mobile-components.HotelNearMePopup.errorMessage4",defaultMessage:"You have denied ‘{brandName}’ access to your location. Check your browser settings and give permission to see {brandName}s around you."},errorMessage5:{id:"mobile-components.HotelNearMePopup.errorMessage5",defaultMessage:"User denied the request for Geolocation"},errorMessage6:{id:"mobile-components.HotelNearMePopup.errorMessage6",defaultMessage:"Please turn on location services from device settings"},errorMessage7:{id:"mobile-components.HotelNearMePopup.errorMessage7",defaultMessage:"Location information is unavailable"},errorMessage8:{id:"mobile-components.HotelNearMePopup.errorMessage8",defaultMessage:"The request to get user location timed out"},errorMessage9:{id:"mobile-components.HotelNearMePopup.errorMessage9",defaultMessage:"An unknown error occurred"},errorMessage10:{id:"mobile-components.HotelNearMePopup.errorMessage10",defaultMessage:"You have denied '{brandName}' access to your location. Please allow location access when you see the prompt to see hotels around you."},ok:{id:"mobile-components.HotelNearMePopup.ok",defaultMessage:"Got it"}})},10054:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>Ce});var r=o(98661),a=o(87506),n=o.n(a),i=o(61811),s=o.n(i),c=o(61409),l=o(37101),u=o(94547),p=o(86646),d=o(94184),h=o.n(d),f=o(75025),g=o(4647),m=o(10626),y=o(77235),b=o(46337),v=o(65343),S=o(41322),_=o(79280),C=(o(1248
11),o(66971));function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,r=E(e);if(t){var a=E(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return j(this,o)}}function j(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}const M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(i,e);var t,o,a,n=P(i);function i(){return O(this,i),n.apply(this,arguments)}return t=i,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.noAutofocus,o=e.clearInput;t||(this.input.focus(),o(!0))}},{key:"render",value:function(){var e=this,t=this.props,o=t.inputOnClick,a=t.inputOnChange,n=t.inputValue,i=t.inputPlaceholder,s=t.showLoader,l=t.locationClear,u=t.location,p=t.clearInput,d=t.noAutofocus,h=t.fromDealsPage,f=t.listingSearchPopup,g=t.transparentDesign,m=t.lens,y=t.setRef,b=void 0===y?function(){}:y;return r.default.createElement("div",{className:"autoComplete__lisItem autoComplete__lisItem--searchBox searchBox__subContainer\n          ".concat(f?"autoComplete__newAutocompleteSearch__lisItem":"","\n          ").concat(g?"searchBox--transparentDesign":"")},!h||g?r.default.createElement("div",{className:"searchBox__backButton u-RTLNegative",onClick:function(){return c.mW.goBack()}},r.default.createElement(_.xCe,{matchContainer:!0})):r.default.createElement("span",{className:"autoComplete__lens autoComplete__lens--widget"},r.default.createElement(_.MY_,{matchContainer:!0})),r.default.createElement("div",{className:"autoComplete__searchContainer ".concat(h?"":" searchBox__container")},r.default.createElement("input",{type:"text",className:(0,S.cx)({searchBox__searchBarFont:!h},"".concat(m&&"searchBox__searchBox"," autoComplete__searchBox"),{Subtitle2RegularEmphasis:C.fh}),placeholder:i,value:n,onClick:o,onChange:a,autoFocus:!d,ref:function(t){e.input=t,b(e.input)}}),s?r.default.createElement("div",{className:"loader loader--autoComplete"},r.default.createElement("svg",{className:"circular",viewBox:"25 25 50 50"},r.default.createElement("circle",{className:"path",cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"6",strokeMiterlimit:"10"}))):null,r.default.createElement("button",{type:"button",className:l||u?"autoComplete__locationCancel":"autoComplete__locationCancel is-hidden",onClick:function(){return p(!0)}},r.default.createElement("span",{className:"autoComplete__closeIcon"},r.default.createElement(_.aMB,null)))))}}])&&x(t.prototype,o),a&&x(t,a),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.Component);var N=o(33982),B=o(28253),A=(o(31440),o(83064)),T=o(59412);function L(e,t,o){return L=D()?Reflect.construct:function(e,t,o){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return o&&R(a,o.prototype),a},L.apply(null,arguments)}function D(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}
1function R(e,t){return R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},R(e,t)}function I(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return G(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}var V=function(){return r.default.createElement("div",{className:"oyo-row oyo-row--no-spacing"},r.default.createElement("div",{className:"oyo-cell oyo-cell-12-col oyo-cell--8-col-tablet oyo-cell--4-col-phone"},r.default.createElement("span",{className:(0,S.cx)("autoComplete__localityName","u-textEllipsis","placeholderBar",T.LS)}),r.default.createElement("span",{className:(0,S.cx)("autoComplete__localityCity","u-textEllipsis","placeholderBar",T.Ej)})))},W=function(e){var t=e.count,o=void 0===t?1:t,a=e.className;return r.default.createElement("div",{className:a},L(Array,I(new Array(o))).map((function(){return r.default.createElement(V,null)})))},H=o(22202),U=(0,l.defineMessages)({placeholder_hotel:{id:"mobile-components.GeoSearch.placeholder",defaultMessage:"Search for city, location or hotel"},placeholder_home:{id:"mobile-components.GeoSearch.placeholder_home",defaultMessage:"Search for city, location or home"}});function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function Y(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function z(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(o),!0).forEach((function(t){K(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Y(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function K(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function q(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z(e,t){return Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Z(e,t)}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,r=$(e);if(t){var a=$(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return J(this,o)}}function J(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return X(e)}function X(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}var ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}(i,e);var t,o,a,n=Q(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var o=(t=n.call(this,e)).props.countryObj.defaultPropertyType,r=void 0===o?"hotel":
1o;return t.state={location:e.searchobj&&e.searchobj.location||"",locationClear:!1,suggestions:[],error:{},showLoader:!1,googleAutoComplete:null,isGoogleScriptAvailable:!1,placeholder:e.placeholder||t.props.intl.formatMessage(U["placeholder_".concat(r)]),searchPrefix:e.searchPrefix||"",searchPostfix:e.searchPostfix||"",isGoogleSuggestion:!1,listingSearchValue:e.listingSearchValue||null,displayEmptyResults:!1,nearbySuggName:"",nearbySugg:!1,searchTerm:""},t.getSearchTerm=t.getSearchTerm.bind(X(t)),t.clearInput=t.clearInput.bind(X(t)),t.oldAutoCompleteSuccessCallBack=t.oldAutoCompleteSuccessCallBack.bind(X(t)),t.autoCompleteErrorCallBack=t.autoCompleteErrorCallBack.bind(X(t)),t.getCustomSuggestions=t.getCustomSuggestions.bind(X(t)),t.sendFeedbackObject=t.sendFeedbackObject.bind(X(t)),t.sendAutoCompleteGA=t.sendAutoCompleteGA.bind(X(t)),t.setLatLongAndCity=t.setLatLongAndCity.bind(X(t)),t.predictionsRecievedGoogleApiCb=t.predictionsRecievedGoogleApiCb.bind(X(t)),t.getGoogleSuggestion=t.getGoogleSuggestion.bind(X(t)),t.geoCodeAction=(0,p.Ds)(t.getCustomSuggestions,300),t.clearSuggestion=t.clearSuggestion.bind(X(t)),t.inputBoxClicked=t.inputBoxClicked.bind(X(t)),t.overlayOff=t.overlayOff.bind(X(t)),t.autoCompleteSuccessCallBack=t.autoCompleteSuccessCallBack.bind(X(t)),t.setSentences=t.setSentences.bind(X(t)),t}return t=i,(o=[{key:"getSearchTerm",value:function(e){var t=this,o=e.target.value;this.setState({searchTerm:o});var r=!1;e.target.value.length>=1&&(r=!0),this.setState({location:o,locationClear:r,showLoader:!0},(function(){t.geoCodeAction(t.state.searchPrefix+o+t.state.searchPostfix)}))}},{key:"clearInput",value:function(e){var t=this;e&&("localityList"===this.props.pageType?(0,u.og)("Locality selection page","Clicked Clear Suggestion",""):((0,u.og)("Location Search","Clicked Clear Suggestion",""),(0,u.mc)(this.props.pageType,B.Dg,B._W,"Clicked Clear Suggestion on Location Search"))),this.setState({location:"",locationClear:!1},(function(){t.clearSuggestion(),t.inputRef.focus()}))}},{key:"oldAutoCompleteSuccessCallBack",value:function(e){this.setState({displayEmptyResults:!1,suggestions:e,isGoogleSuggestion:!1,error:{},showLoader:!1})}},{key:"autoCompleteErrorCallBack",value:function(){this.state.googleAutoComplete&&this.getGoogleSuggestion()}},{key:"autoCompleteSuccessCallBack",value:function(e){var t=this.props.pageType,o=void 0===t?"":t,r=(0,p.pT)(e.responseObject);this.oldAutoCompleteSuccessCallBack(r);for(var a=[],n=0;n<Math.min(r.length,10);n++){var i;null!==(i=r[n])&&void 0!==i&&i.display_name&&a.push(r[n].display_name)}"function"==typeof u.mc&&(0,u.mc)(o,B.YC,B._W,a)}},{key:"getCustomSuggestions",value:function(e){var t=this,o=this.props,r=o.microsite,a=o.shell.brandData,n=a.id,i=void 0===n?"oyo":n,s=a.overrideBrandId,c=o.countryObj,l=void 0===c?{}:c,d=o.pageType,h=void 0===d?"":d,f="",m="",y=l.defaultPropertyType,b="home"===(void 0===y?"hotel":y);f=r&&r.name||b?"HOTELS,LOCATIONS":"HOTELS,LOCATIONS,SENTENCES",b&&(m="CITY,STATE,COUNTRY,COUNTY,SECOND_LEVEL_AREA,THIRD_LEVEL_AREA,SUB_CITY,REGION,HOLIDAY_PARK"),this.setState({searchTerm:e},(function(){var o="";e&&e.length>=2?("function"==typeof u.mc&&(0,u.mc)(h,B._6,B._W,e),o=(0,p.TH)(e,l.region,t.fingerprint,t.autoCompleteSuccessCallBack,t.autoCompleteErrorCallBack,f,s||i,l.defaultPropertyType,m),(0,g.Z)(o),t.setState({displayEmptyResults:!0})):t.oldAutoCompleteSuccessCallBack()}))}},{key:"sendFeedbackObject",value:function(e){var t=this.state.suggestions.map((function(e){return e.id})),o={};o.searchResultIds=t,o.selectedResultId=e.id,o.userId=this.fingerprint,o.selectedPositionIndex=t.indexOf(e.id),o.query=this.state.searchTerm,o.sentenceDetails="lens"===e.category?{selectedSentenceValue:e.display_name}:{},o.type=e.type||"";var r=(0,p.do)(o,null,null);(0,g.Z)(r),this.sendAutoCompleteGA(o,e)}},{key:"sendAutoCompleteGA",value:function(e,t){var o,r={},a="",n=this.state.suggestions.map((function(e){return e.display_name?e.display_name:e.description}));r.searchResultIds=e.searchResultIds,r.index=e.selectedPositionIndex,r.keyword=e.query,r.clicked=t.display_name,r.recievedSuggestions=n,a="oyo-hotel"==t.type?t.type:t.result_type||"locality",(0,u.ng)({dimension110:r.index+1,dimension111:r.clicked,dimension112:r.keyword,dimension113:r.searchResultIds.join("|"),dimension114:r.recievedSuggestions.join("|"),dimension108:a,dimension157:this.state.location});var i=this.state.isGoogleSuggestion?"Google API":"Custom API";(0,u.og)("Location Search Box","Suggestion Clicked",i),(0,u.mc)(this.props.pageType,B.Dg,B._W,"Suggestion Clicked in Location Search Box | ".concat(i)),(0,u.mc)(null===(o=this.props)||void 0===o?void 0:o.pageType,B.Dg,B._W,"",{selectedPropertyIndex:null==t?void 0:t.autoCompleteSelectedIndex,oyoName:(null==t?void 0:t.display_name)||"",searchType:(null==t?void 0:t.result_type)||""})}},{key:"setLatLongAndCity",value:function(e,t){var o=e.display_name,r=e.country_name,a=e.center_point,
1n=e.city_id,i=e.country_id,s=e.location_id,l=e.result_type,p=e.isLatLngSearch,d=void 0!==p&&p,h=this.props,g=h.updateSearchObj,y=h.updateNewSearchObj,b=h.showDateGuestPickerNew,S=h.isNewSearchWidget,_=h.disableDateGuestPickerOnLocationSelect,C=void 0!==_&&_,w=h.searchobj,O=((w=void 0===w?{}:w).checkout,h.searchobj),x=void 0===O?{}:O;if(h.abData,"hotels"!==(e&&e.type&&e.type.toLowerCase())){var k,P,j,E=a&&a.lat||"",M=a&&a.lng||"",A=o;j&&(j=r?r.toLowerCase():(0,m.getCountryNameFromRegion)(i)),"city"==l?(k=e.city,P="city"):P="country"===l?"country":"locality"===l||d?"locality":l;var T={latitude:E,longitude:M,location:A,city:k,cityId:n,country:j,countryId:i,searchType:P,locationId:s,isLatLngSearch:d};if(t){var L={};L.keywords=e.display_name,T.filters=L}if(S&&!C){var D="seoPage"===new URLSearchParams(window.location.search).get("pageType"),R=(null==x?void 0:x.coupon)||"",I=z(z({},T),{},{checkin:(null==x?void 0:x.checkin)||"",checkout:(null==x?void 0:x.checkout)||"",flexibleDaysCount:null==x?void 0:x.flexibleDaysCount});I.roomConfig=x.roomConfig,I.coupon=R,D?y(I):g(T);var G=(0,N.j5)("openSearchCount");G&&parseInt(G,10),b("checkin")}else this.props.parentAction(T,-1);"localityList"===this.props.pageType?(0,u.og)("Locality selection page","Google Suggestion ".concat(P," Selected"),A):((0,u.og)("Location Search Box","Google Suggestion ".concat(P," Selected"),A),(0,u.mc)(this.props.pageType,B.Dg,B._W,"Google Suggestion ".concat(P," Selected in Location Search Box \n      | ").concat(A)))}else{(0,u.ng)({dimension93:e.id}),this.sendFeedbackObject(e),(0,f.hj)(["modal","searchBarAutoComplete"]);var V=(0,v.Dc)(e);c.mW.push(V)}}},{key:"setSentences",value:function(e){var t=e.intents,o=void 0===t?{}:t;if(o&&o.location){var r=(0,p.pT)(o);r&&r.length>0&&(r[0].display_name=e&&e.display_name),this.props.listingPopup&&this.props.listingPopup(!1),r&&r.length>0&&this.setLatLongAndCity(r[0],!0)}o&&o.nearby&&this.setState({nearbySuggName:e.display_name,nearbySugg:!0})}},{key:"predictionsRecievedGoogleApiCb",value:function(e,t){t!=google.maps.places.PlacesServiceStatus.OK?console.log("Google AutocompleteService API Status Not OK!"):this.setState({suggestions:e,isGoogleSuggestion:!0,showLoader:!1})}},{key:"getGoogleSuggestion",value:function(){var e=this;if(this.state.searchTerm&&this.state.searchTerm.length>0){var t={input:this.state.searchTerm,componentRestrictions:{country:this.props.countryObj.COUNTRY_CODE}};this.state.googleAutoComplete.getPlacePredictions(t,(function(t,o){e.predictionsRecievedGoogleApiCb(t,o)}))}else console.log("Search Term Is Null",this.state)}},{key:"clearSuggestion",value:function(){this.setState({suggestions:[],error:{}})}},{key:"inputBoxClicked",value:function(){var e=this;if("localityList"===this.props.pageType?(0,u.og)("Locality selection page","Clicked enter",""):((0,u.og)("Location Search Box","Clicked enter",""),(0,u.mc)(this.props.pageType,B.Dg,B._W,"Clicked enter in Location Search Box")),this.props.transparentDesign){var t=this.state.location||"";this.props.popUpStates&&this.props.popUpStates.searchBarAutoComplete||this.setState({suggestions:[],isGoogleSuggestion:!1,error:{},showLoader:!0},(function(){t&&e.geoCodeAction(e.state.searchPrefix+t+e.state.searchPostfix)})),(0,f.DI)({modal:"searchBarAutoComplete"}),document.body.classList.add("u-overflow")}}},{key:"overlayOff",value:function(){c.mW.goBack(),document.body.classList.remove("u-overflow")}},{key:"componentWillReceiveProps",value:function(e){var t=this;if(e.listingSearchValue!==this.props.listingSearchValue){this.setState({listingSearchValue:e.listingSearchValue});var o=e.listingSearchValue||"",r=!1;o&&o.length>=1&&(r=!0),this.setState({location:o,locationClear:r,showLoader:!0},(function(){t.geoCodeAction(t.state.searchPrefix+o+t.state.searchPostfix)}))}}},{key:"componentDidMount",value:function(){var e=this,t=this.props,o=t.listingSearchPopup,r=t.listingSearchValue,a=t.searchobj,n=t.showInputValue,i=t.abData,s=(i=void 0===i?{}:i).abcs,c=void 0===s?0:s;if(this.fingerprint=(0,y.ej)("fingerprint2")||"Not Set",o){this.setState({listingSearchValue:r});var l=this.state.listingSearchValue?this.state.listingSearchValue:"",u=!1;l&&l.length>=1&&(u=!0),this.setState({location:l,locationClear:u,showLoader:!0},(function(){e.geoCodeAction(e.state.searchPrefix+l+e.state.searchPostfix)}))}else{var p=this.props.city,d=void 0===p?"":p;this.setState({location:d})}1===c&&n&&(this.setState({location:(null==a?void 0:a.location)||""}),this.inputRef&&this.inputRef.select())}},{key:"render",value:function(){var e=this,t=this.props,o=t.actions,a=t.pageType,n=t.abData,i=t.popUpStates,s=t.listingSearchPopup,c=t.listingPopup,l=t.noAutoFocus,u=t.transparentDesign,p=t.micrositeConfig,d=t.microsite,f
1=t.showDateGuestPickerNew,g=t.isNewSearchWidget,m=t.wrapperSideMargin,y=h()("oyo-row oyo-row--no-spacing autoComplete__listWrapper autoComplete__listWrapper--geoSuggestions autoComplete__listWrapper--top",{"autoComplete__listWrapper--google":this.state.isGoogleSuggestion},"autoComplete__listWrapper--beta",{autoComplete__newAutocompleteSearch__listWrapper:s},A.Tpe),v=this.state.suggestions&&this.state.suggestions.length>=1&&r.default.createElement("div",{className:y},this.state.suggestions&&this.state.suggestions.map((function(t,n){return r.default.createElement(r.default.Fragment,null,t.title&&r.default.createElement("div",{className:T.bJ},t.title),r.default.createElement("div",{className:h()("geoSuggestionsListV2__itemWrapper",m&&"geoSuggestionsListV2__itemWrapper--wrapperSideMargin")},r.default.createElement(H.Z,{key:t.display_name,index:n,inputValue:e.state.location,suggestion:t,actions:o,parentAction:e.props.parentAction,setLatLongAndCity:e.setLatLongAndCity,sendFeedbackObject:e.sendFeedbackObject,isGoogleSuggestion:e.state.isGoogleSuggestion,pageType:a,abData:e.props.abData,listingSearchPopup:s,listingPopup:c,setSentences:e.setSentences,searchTerm:e.state.searchTerm})))})))||null,S=this.state.displayEmptyResults&&r.default.createElement("div",{className:y},r.default.createElement(W,{className:"oyo-cell oyo-cell--12-col oyo-cell--8-col-tablet oyo-cell--4-col-phone autoComplete__locations autoComplete__newAutocompleteSearch__locations u-textEllipsis ripple",count:5}))||null;return r.default.createElement("div",{className:"oyo-row oyo-row--no-spacing"},s?null:r.default.createElement(M,{inputOnClick:this.inputBoxClicked,inputOnChange:this.getSearchTerm,inputValue:this.state.location,inputPlaceholder:this.state.placeholder,showLoader:this.state.showLoader,locationClear:this.state.locationClear,location:this.state.location,clearInput:this.clearInput,setRef:function(t){return e.inputRef=t},abData:n,listingSearchPopup:s,noAutofocus:l,transparentDesign:u,lens:!u}),!u&&[v,S],u&&i.searchBarAutoComplete&&[r.default.createElement("div",{onClick:this.overlayOff,className:T.zg}),r.default.createElement("div",{className:T.nk},v,S)],this.state.nearbySugg&&r.default.createElement(b.Z,{searchObj:this.props.searchobj,showDateGuestPickerNew:f,isNewSearchWidget:g,actions:o,suggestedSearch:this.state.nearbySuggName,micrositeData:{isMicrosite:!!d.name,micrositeName:d.name,micrositeSDK:d.sdk,micrositeConfig:p}}))}}])&&q(t.prototype,o),a&&q(t,a),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.Component);const te=(0,l.injectIntl)(ee);var oe=(0,l.defineMessages)({heading_hotel:{id:"mobile-components.MapSearch.heading",defaultMessage:"Search for a Hotel, City or Locality"},heading_home:{id:"mobile-components.MapSearch.heading_home",defaultMessage:"Search for a Home, City or Locality"}}),re=o(48136),ae=(o(88471),o(27763)),ne=o(28572),ie=(0,S.css)("& .mapSearch__withBackHandling{margin:0px;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:",ne.Fs,";width:100%;}& .mapSearch__backBtnWrapper{width:48px;}& .mapSearch__barWrapper{width:calc(100% - 32px);border-radius:64px;position:relative;border-radius:var(--size-border-radius-lg);border:1px solid var(--colour-border-subtle-neutral);background:var(--colour-background-subtle-neutral-1);display:flex;align-items:center;justify-content:flex-start;}& .closeBtnNew{width:8px;height:8px;fill:var(--color-icon-neutral-invert);position:absolute;right:21px;background:var(--colour-background-moderate-neutral-1);top:calc(46% - 6px);display:flex;padding:4px;border-radius:50%;align-items:center;justify-content:center;}& .mapSearch__backButton{fill:var(--colour-border-intense-neutral);padding:var(--space-fixed-sm-3-comfortable) 0px var(--space-fixed-sm-3-comfortable) var(--space-fixed-sm-5-comfortable);height:24px;width:24px;z-index:",ne.wq,";display:flex;align-items:center;justify-content:center;;}"),se=(0,S.css)("border-radius:0px;z-index:",ne.Q0,";position:absolute;width:100%;top:16px;"),ce=(0,S.css)("z-index:",ne.Fs,";"),le=(0,S.css)({name:"1j3udes",styles:"& .barWrapperNew{width:calc(100% - 32px);position:relative;}& .closeBtnNew{width:8px;height:8px;
1fill:var(--colour-border-intense-neutral);background:var(--color-background-neutral-medium);position:absolute;border-radius:50%;right:21px;top:calc(46% - 6px);display:flex;padding:4px;align-items:center;justify-content:center;}& .closeBtnHide{display:none;}}"}),ue=(0,S.css)("& .autoComplete__newAutocompleteSearch__suggestionsContainer{max-height:50%;background:",ae.ix,";left:0;position:fixed;top:0;width:100%;z-index:",ne.wq,";& .autoComplete__newAutocompleteSearch__suggestionsContainer--dealPageNew{position:static;z-index:0;}}& .autoComplete__newAutocompleteSearch__suggestionWrapper{max-height:50vh;background:",ae.ix,";display:block;box-shadow:0 0 2px 0 rgba(0,0,0,0.94),inset 0 -1px 0 0 rgba(0,0,0,0.9);& .autoComplete__newAutocompleteSearch__suggestionWrapper--dealPage{height:100%;margin-top:0;}}& .autoComplete__newAutocompleteSearch__locations{padding:10px 16px 6px 20px;}& .autoComplete__newAutocompleteSearch__listWrapper{width:calc(100% - 32px);margin-left:16px;height:auto;max-height:280px;",A.l9i," border-radius:6px;@media (max-height:640px){max-height:226px;}top:33px;}& .autoComplete__newAutocompleteSearch__lisItem{background-image:linear-gradient(",ae.UQ,",",ae._e,");padding:25px 30px 5px 10px;}"),pe=(0,S.css)("position:fixed;top:0px;background-color:black;left:0;right:0;bottom:0;opacity:0.25;z-index:",ne.iq,";"),de=(0,S.css)("& .searchBarCompactHome{",C.fh," padding:var(--space-fixed-sm-3-comfortable) var(--space-fixed-sm-5-comfortable);color:var(--colour-text-intense-neutral);}"),he=(0,S.css)({name:"165rdt0",styles:"padding-right:30px;"});function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function ge(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function me(e,t){return me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},me(e,t)}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,r=Se(e);if(t){var a=Se(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return be(this,o)}}function be(e,t){if(t&&("object"===fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ve(e)}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Se(e){return Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Se(e)}var _e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&me(e,t)}(l,e);var t,o,a,i=ye(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var o=(t=i.call(this,e)).props.countryObj.defaultPropertyType,r=void 0===o?"hotel":o;return t.state={location:e.searchObj?e.searchObj.location:"",isScrolling:!0,listingSearchPopup:!1,placeholder:e.placeholder||e.intl.formatMessage(oe["heading_".concat(r)]),listingSearchValue:e.searchObj&&e.searchObj.location?e.searchObj.location:"",barExpand:!1},s()(ve(t)),t}return t=l,(o=[{key:"componentWillReceiveProps",value:function(e){if(e.searchObj.location==this.props.searchObj.location?this.setState({location:this.state.location}):this.setState({location:e.searchObj.location}),!e.popUpStates.searchBarAutoComplete){var t=!e.fromHomepage&&e.searchObj.location?(0,p.Ge)(e.searchObj.location):"";this.setState({listingSearchValue:t}),document.getElementById("mapSearch__newSearchBox")&&document.getElementById("mapSearch__newSearchBox").blur()}}},{key:"handleScroll",value:function(){this.state.isScrolling&&this.setState({isScrolling:!1})}},{key:"parentAction",value:function(e){this.props.showMap&&(e.showMap=!0),(0,u.og)("Search Bar","SearchSubmit","Map view"),(0,u.mc)(B.v2,B.Dg,"Map View","Search Bar | SearchSubmit"),this.props.updateLocationABTest(e,this.searchCallback)}},{key:"searchCallback",value:function(e){this.props.handleSearchABTest(e)}},{key:"autoCompleteSearchBox",value:function(){this.setState({listingSearchPopup:!0,barExpand:!0}),(0,u.og)("Search Bar","Clicked Open","Map view"),(0,u.mc)(B.v2,B.Dg,"Map View","Search Bar | Clicked Open");var e=c.mW.getCurrentLocation().query;e.modal&&"searchBarAutoComplete"===e.modal||(0,f.Y_)({modal:"searchBarAutoComplete"}),document.body.classList.add("u-overflow")}},{key:"overlayOff",value:function(){var e=this.props,t=e.fromHomepage,o=e.searchObj,r=e.isBVSeo,a=void 0!==r&&r,n=e.showMapUpdate;this.setState({listingSearchPopup:!1,barExpand:!1,listingSearchValue:!t&&o.location?(0,p.Ge)(o.location):""}),document.body.classList.remove("u-overflow"),c.mW.goBack(),a&&n&&n(!1)}},{key:"handlePopup",value:function(e){this.setState({listingSearchPopup:e,listingSearchValue:null})}},{key:"getSearchValue",value:function(e){this.setState({listingSearchValue:e.target.value}),(0,u.og)("Search Bar","Search Query Entered","Map view"),(0,u.mc)(B.v2,B.Dg,"Map View","Search Bar | Search Query Entered")}},{key:"clearSearch",value:function(){this.setState({listingSearchValue:null}),this.autoCompleteSearchBox(),this.searchBox.focus()}},{key:"modifySearchValue",value:function(e){(e.target.value?e.target.value.toLowerCase():"")===(this.props.intl.formatMessage(re.d.locationText1)?this.props.intl.formatMessage(re.d.locationText1).toLowerCase():"")&&this.setState({listingSearchValue:null})}},{key:"render",value:function(){var e=this,t=this.props,o=t.searchObj,a=t.countryObj,i=t.cities,s=t.popUpStates,c=t.abData,l=t.actions,u=t.microsite,p=t.micrositeConfig,d=t.shell,f=(t.isBVSeo,t.showMapUpdate,this.state),g=f.listingSearchPopup,m=f.placeholder,y=f.listingSearchValue,b=s.showDateGuestPicker,v=s.searchBarAutoComplete;return r.default.createElement("div",{className:h()("oyo-row oyo-row--no-spacing  ",ie,se,de,b?ce:"")},r.default.createElement("div",{className:h()("mapSearch__withBackHandling ","".concat(g&&v?le:""))},r.default.createElement("div",{className:"mapSearch__barWrapper barWrapperNew"},r.default.createElement("span",{className:h()("mapSearch__backButton"),onClick:this.overlayOff},r.default.createElement(_.xCe,{matchContainer:!0})),r.default.createElement("div",null,r.default.createElement("div",{className:"oyo-cell--12-col oyo-cell--8-col-tablet oyo-cell--4-col-phone u-relative",onClick:this.autoCompleteSearchBox},r.default.createElement("input",{id:"mapSearch__newSearchBox",className:h()("mapSearch__searchBox mapSearch__searchBox--home  searchBarCompactHome u-textEllipsis ".concat(!o.location&&this.props.fromHomepage?"mapSearch__searchBox--placeholder":""),"".concat(v?he:"")),placeholder:m,value:y,onChange:this.getSearchValue,onFocus:this.modifySearchValue,autoComplete:"off",ref:function(t){return e.searchBox=t}})),r.default.createElement("span",{className:"mapSearch__closeBtn closeBtnNew ".concat(y?"":"closeBtnHide"),onClick:this.clearSearch},r.default.createElement(_.aMB,{matchContainer:!0}))))),r.default.createElement(n(),{transitionEnterTimeout:150,transitionLeaveTimeout:150,transitionName:{enter:"fadeInOut__enterVisible",enterActive:"fadeInOut__enterVisible--active",leave:"fadeInOut__leave",leaveActive:"fadeInOut__leave--active"}}),g&&v&&r.default.createElement("div",null,r.default.createElement("div",{onClick:this.overlayOff,className:h()(pe)}),r.default.createElement("div",{className:h()("newAutocompleteSearch mapSearch__newAutocompleteSearch",ue)},r.default.createElement("div",{className:"mapSearch__newAutocompleteSearch__suggestionsContainer"},r.default.createElement("div",{className:"oyo-row oyo-row--no-spacing mapSearch__newAutocompleteSearch__suggestionWrapper",onTouchStart:this.handleScroll},r.default.createElement(te,{searchobj:o,countryObj:a,parentAction:this.parentAction,cities:i,abData:c,listingSearchPopup:g,listingSearchValue:y,listingPopup:this.handlePopup,actions:l,microsite:u,micrositeConfig:p,shell:d}))))))}}
1])&&ge(t.prototype,o),a&&ge(t,a),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.Component);const Ce=(0,l.injectIntl)(_e)},88471:()=>{},12481:()=>{}}]);

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.