PageSourceSearch

https://bookings.sholeolodges.com/bookcore/static/js/web-component…/builds/62.846b250eb1bc6d13b851.chunk.js

js sholeolodges.com collected 2026-09-29 06:43:20 UTC 8,756 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkbookcore_client=self.webpackChunkbookcore_client||[]).push([[62],{13967:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=o(98424),i=o(95206),s=o(44908),a=o(94392),r=o(67795),l=o(57221),c=o(36804),d=o(43690),p=o(37387);t.default={international:n,ajaxAPI:i,cdn:s,cookies:a,currency:r,scroll:l,socialLogin:c,socialLoginHelpers:d,socialLoginInitializer:p};e.exports=t.default},57221:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.scrollToElement=t.onScroll=void 0;t.onScroll=(e,t)=>{function o(){(window.pageYOffset||(document.documentElement||document.body.parentNode||document.body).scrollTop)>=e&&(window.removeEventListener("scroll",o,!1),t())}window.addEventListener("scroll",o,!1)};t.scrollToElement=(e,t=0)=>{const o=e.getBoundingClientRect().top+window.scrollY-t;window.scrollTo({top:o,behavior:"smooth"})}},43690:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=o(68122);t.default={api:n};e.exports=t.default},36804:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=o(86954);t.default={Google:n.Google,Facebook:n.Facebook};e.exports=t.default},79555:function(e,t,o){var n=o(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o(58168)),s=n(o(95206)),a=o(51678);const r=o(95502);class l{constructor(e,t=a.defaultEmptyFunction){this.props=e,this.callback=t,this.propsComponent={},this.api=s.default.auth,this.onLogoutCallbacks=[]}loadAPIs(){const e=this.props.integrations||{};Object.keys(e).forEach(t=>{const o=r[t],n=e[t];this.updateComponentProps(t,n),o.loader(o.apiURL,e=>{const i={name:t,props:n};return this.onAPILoaded(i,o,e)})})}onAPILoaded(e,t,o){const n=new t.module(e.props,o),i=e.name;n.isLoggedIn(e=>{const t=n.onLogout.bind(n);this.onLogoutCallbacks.push(t);const o={apiIsLoaded:!0,domain:this.props.domain,isLoggedIn:e.isSignedIn,onLogin:this.onLogin.bind(this,n),onLogout:t,..."google"===i&&{renderButton:n.renderButton.bind(n)}};return this.updateComponentProps(i,o),this.callback(e,this.propsComponent)}),"google"===i&&n.initializeGoogleIdentityService(()=>{this.propsComponent[i].onLogin()})}onLogin(e,t=!1,o=""){if(t&&e.response){const t=e.response;t.apiData.recibir_newsletter=o,this.sendUserData(t.apiData,t.integrationKey).then(e=>this.callback(t,this.propsComponent,e,!0))}else e.onLogin(this.onLoginUser.bind(this))}async onLoginUser(e,t=null){if(t)console.error(t);else{const t=await this.checkUserIsRegistered(e.userData,this.props.socialCheckUserURL);if(t.success)this.sendUserData(e.apiData,e.integrationKey).then(o=>this.callback(e,this.propsComponent,o,t.success));else{const t={integration:e.integrationKey,first_name:e.userData.first_name,last_name:e.userData.last_name,email:e.userData.email};this.props.onUnregisteredSocialUser(t)}}}async checkUserIsRegistered(e){let t={success:!1};try{t=await this.api.checkUserIsRegistered(e,this.props.domain)}catch(e){console.error(e)}return t}onLogout(){this.onLogoutCallbacks.map(e=>e())}sendUserData(e,t){return this.api.socialSignin(e,t,this.props.domain).then(this.callbackAfterLogin.bind(this)).catch(l.onFailure)}callbackAfterLogin(e){return"function"==typeof this.props.callbackAfterLogin&&this.props.callbackAfterLogin(),e}static onFailure(e){console.error(e)}updateComponentProps(e,t){const o=this.propsComponent[e];this.propsComponent[e]=(0,i.default)({},o,t)}}t.default=l;e.exports=t.default},95502:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=o(86954),i=o(43690);t.default={google:{apiURL:"https://accounts.google.com/gsi/client",module:n.Google,loader:i.api.loadGoogleAPI},facebook:{apiURL:"https://connect.facebook.net/en_US/sdk.js",module:n.Facebook,loader:i.api.loadFacebookAPI}};e.exports=t.default},37387:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=o(79555);t.default={InitialAPI:n};e.exports=t.default},58660:function(e,t,o){var n=o(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o(95206)),s=o(51678);const{getCookie:a}=o(94392);t.default=class{constructor(e,t){this.props=e,this.facebookAPI=t,this.api=i.default,this.integrationKey="facebook",this.response=null}isLoggedIn(e=s.defaultEmptyFunction){this.getInitializer().call(this,e)}getInitializer(){return this.isLoaded()?this.initialize:this.setupAsyncInitialize}setupAsyncInitialize(e){window.fbAsyncInit=()=>{this.initialize(e)}}isLoaded(){return void 0!==window.fbAsyncInit}initialize(e){window.FB.init(this.getPropsForFacebookAPI()),window.FB.AppEvents.logPageView(),e(this.generateAPIResponse({apiData:{},hasError:!1,isSignedIn:!1,userData:{}}))}getPropsForFacebookAPI(){return{appId:this.props.client_id,autoLogAppEvents:this.props.autoLogAppEvents||!0,xfbml:this.props.xfbml||!0,cookie
1:this.props.cookies||!0,version:this.props.version||"v2.11"}}checkIfUserIsLoggedIn(e,t){"connected"===e.status?this.checkLoginStatus(e,t):t(!1,{},{},this.integrationKey)}checkLoginStatus(e,t=s.defaultEmptyFunction){const o=e=>{const o=this.generateAPIResponse({apiData:{},hasError:!1,isSignedIn:!0,userData:e});return this.response=o,t(o)};this.setFacebookCookie();const n={fields:"first_name,last_name,email"};if(e.authResponse)window.FB.api("/me",o,n);else{const e=this.generateAPIResponse({apiData:{},hasError:!1,isSignedIn:!1,userData:{}});t(e)}}setFacebookCookie(){const e=`fbsr_${this.props.client_id}`,t=a(e);if(t){const o={name:e,value:t};this.api.cookies.setCookie(o,this.props.domain)}}generateAPIResponse({apiData:e,hasError:t,isSignedIn:o,userData:n}){return{isSignedIn:o,userData:{name:n.first_name,...n},apiData:e,integrationKey:this.integrationKey,hasError:t}}onLogin(e){window.FB.login(t=>this.checkLoginStatus(t,e),{scope:this.props.scope||"email"})}onLogout(){this.facebookAPI.logout()}};e.exports=t.default},86707:function(e,t,o){var n=o(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o(6765));t.default=class{constructor(e,t){this.props=e,this.googleAPI=t,this.googleTokenGenerated=null,this.callback=null,this.integrationKey="google",this.response=null}initializeGoogleIdentityService(e){return this.googleAPI.accounts.id.initialize({callback:t=>this.onGoogleSignIn(t,e),client_id:this.props.client_id,itp_support:!0})}renderButton(){this.googleAPI.accounts.id.renderButton(document.getElementById("googleButton"),{locale:this.props.language,logo_alignment:"left",shape:"rectangular",size:"large",text:"continue_with",theme:"outline",type:"standard",width:310})}isLoggedIn(e){return e(this.generateAPIResponse({apiData:{},hasError:!1,isSignedIn:!1,userData:{}}))}onGoogleSignIn(e,t){const o=(0,i.default)(e.credential),n={email:o.email,first_name:o.given_name,last_name:o.family_name,name:o.name},s={token:e.credential},a=this.generateAPIResponse({apiData:s,hasError:!1,isSignedIn:!0,userData:n});return this.response=a,t(a)}onLogin(e){let t;return t=this.response?this.response:this.generateAPIResponse({apiData:{},hasError:!0,isSignedIn:!1,userData:{}}),e(t)}generateAPIResponse({apiData:e,hasError:t,isSignedIn:o,userData:n}){return{apiData:e,hasError:t,integrationKey:this.integrationKey,isSignedIn:o,userData:n}}onLogout(){this.googleAPI.accounts.id.disableAutoSelect()}};e.exports=t.default},86954:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=o(86707),i=o(58660);t.default={Google:n,Facebook:i};e.exports=t.default},6765:function(e,t,o){function n(e){this.message=e}o.r(t),o.d(t,{InvalidTokenError:function(){return a}}),n.prototype=new Error,n.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,s=0,a=0,r="";i=t.charAt(a++);~i&&(o=s%4?64*o+i:i,s++%4)?r+=String.fromCharCode(255&o>>(-2*s&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return r};function s(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(i(e).replace(/(.)/g,function(e,t){var o=t.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}(t)}catch(e){return i(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError",t.default=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var o=!0===(t=t||{}).header?0:1;try{return JSON.parse(s(e.split(".")[o]))}catch(e){throw new a("Invalid token specified: "+e.message)}}}}]);

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.