PageSourceSearch

https://www.accommodationforstudents.com/_next/static/chunks/23216-bf31b5c23ac2a6fb.js

js accommodationforstudents.com collected 2026-10-02 10:05:07 UTC 10,241 bytes, 4 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2d065c31-281b-54fc-958b-6f6fc5d92a16")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[23216],{12420:(e,t,r)=>{r.d(t,{aH:()=>l}),"function"==typeof SuppressedError&&SuppressedError;var i,n,o,a=(n=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((i=t.length)!=r.length)return!1;for(n=i;0!=n--;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((i=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=i;0!=n--;){var i,n,o,a=o[n];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}).__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;let s="__googleMapsScriptId";(o=i||(i={}))[o.INITIALIZED=0]="INITIALIZED",o[o.LOADING=1]="LOADING",o[o.SUCCESS=2]="SUCCESS",o[o.FAILURE=3]="FAILURE";class l{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:i,id:n=s,language:o,libraries:c=[],mapIds:u,nonce:d,region:h,retries:p=3,url:f="https://maps.googleapis.com/maps/api/js",version:g}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=r,this.client=i,this.id=n||s,this.language=o,this.libraries=c,this.mapIds=u,this.nonce=d,this.region=h,this.retries=p,this.url=f,this.version=g,l.instance){if(!a(this.options,l.instance.options))throw Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(l.instance.options)}`);return l.instance}l.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?i.FAILURE:this.done?i.SUCCESS:this.loading?i.LOADING:i.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){let e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(r=>{r?t(r.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;let r,i,n,o,a,s,l,c,u,d,h;if(document.getElementById(this.id))return void this.callback();let p={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(p).forEach(e=>!p[e]&&delete p[e]),(null==(t=null==(e=null==window?void 0:window.google)?void 0:e.maps)?void 0:t.importLibrary)||(o="google",a="importLibrary",s=document,c=(l=(l=window)[o]||(l[o]={})).maps||(l.maps={}),u=new Set,d=new URLSearchParams,h=()=>r||(r=new Promise((e,t)=>{var a,l,h,f;return a=this,l=void 0,h=void 0,f=function*(){var a;for(n in yield i=s.createElement("script"),i.id=this.id,d.set("libraries",[...u]+""),p)d.set(n.replace(/[A-Z]/g,e=>"_"+e[0].toLowerCase()),p[n]);d.set("callback",o+".maps.__ib__"),i.src=this.url+"?"+d,c.__ib__=e,i.onerror=()=>r=t(Error("The Google Maps JavaScript API could not load.")),i.nonce=this.nonce||(null==(a=s.querySelector("script[n
3once]"))?void 0:a.nonce)||"",s.head.append(i)},new(h||(h=Promise))(function(e,t){function r(e){try{n(f.next(e))}catch(e){t(e)}}function i(e){try{n(f.throw(e))}catch(e){t(e)}}function n(t){var n;t.done?e(t.value):((n=t.value)instanceof h?n:new h(function(e){e(n)})).then(r,i)}n((f=f.apply(a,l||[])).next())})})),c[a]?console.warn("The Google Maps JavaScript API only loads once. Ignoring:",p):c[a]=(e,...t)=>u.add(e)&&h().then(()=>c[a](e,...t)));let f=this.libraries.map(e=>this.importLibrary(e));f.length||f.push(this.importLibrary("core")),Promise.all(f).then(()=>this.callback(),e=>{let t=new ErrorEvent("error",{error:e});this.loadErrorCallback(t)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){let e=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading=!0,this.setScript()}}}},21741:(e,t,r)=>{var i,n={4008(e,t,r){r.d(t,{default:function(){return l}});var i=r(4953),n=r.n(i),o=r(2678),a=r.n(o);let s={widgetWrapper:"FooterTrustpilotWidget__widgetWrapper--pCCLx"},l=(0,i.forwardRef)(function(e,t){var r=e.className;return n().createElement("div",{className:s.widgetWrapper},n().createElement("div",{id:"trustpilot-widget-container",key:"trustpilot-widget-footer",ref:t,className:a()("trustpilot-widget__footer",s.trustPilotWidget,r),"data-locale":"en-GB","data-template-id":"53aa8807dec7e10d38f59f32","data-businessunit-id":"4bf32e3400006400050d12e3","data-theme":"dark","data-testid":"trustpilot-widget-footer"},n().createElement("a",{href:"https://uk.trustpilot.com/review/www.accommodationforstudents.com",target:"_blank",rel:"noopener noreferrer"},"Trustpilot")))})},182(e,t,r){r.d(t,{default:function(){return l}});var i=r(4953),n=r.n(i),o=r(2678),a=r.n(o);let s={widgetWrapper:"MainTrustpilotWidget__widgetWrapper--CWpEz"},l=(0,i.forwardRef)(function(e,t){var r=e.className;return n().createElement("aside",{className:s.widgetWrapper},n().createElement("div",{key:"trustpilot-widget",ref:t,className:a()("trustpilot-widget",s.trustPilotWidget,r),"data-locale":"en-GB","data-template-id":"5419b6ffb0d04a076446a9af","data-businessunit-id":"4bf32e3400006400050d12e3","data-theme":"light","data-testid":"trustpilot-widget"},n().createElement("a",{href:"https://uk.trustpilot.com/review/www.accommodationforstudents.com",target:"_blank",rel:"noopener noreferrer"},"Trustpilot")))})},8013(e,t,r){r.d(t,{default:function(){return a}});var i=r(4953),n=r(4694);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}let a=function(e){var t,r=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(!1))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,n,o,a=[],s=!0,l=!1;try{for(n=(t=t.call(e)).next;!(s=(r=n.call(t)).done)&&(a.push(r.value),2!==a.length);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(l)throw i}}return a}}(t)||function(e){if(e){if("string"==typeof e)return o(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,2):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],s=r[1];return(0,i.useEffect)(function(){if(n.default){var t=setInterval(function(){e in window&&(clearInterval(t),s(!0))},100);return function(){return clearInterval(t)}}},[e]),{isOnWindow:a}}},4694(e,t,r){r.d(t,{default:function(){return i}});let i=!("u"<typeof window||!window.document||!window.document.createElement)},2678(e){e.exports=r(15039)},4953(e){e.exports=r(14232)}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,a),r.exports}
3a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};a.r(s),a.d(s,{WidgetType:function(){return p},default:function(){return f}});var l=a(4953),c=a.n(l),u=a(182),d=a(4008),h=a(8013),p=((i={}).DEFAULT="default",i.FOOTER="footer",i);let f=function(e){var t=e.className,r=e.widgetType,i=(0,l.useRef)(null),n=(0,h.default)("Trustpilot").isOnWindow;return(0,l.useEffect)(function(){"u">typeof window&&window.Trustpilot&&i.current&&window.Trustpilot.loadFromElement(i.current,!0)},[n]),c().createElement(c().Fragment,null,r===p.FOOTER&&c().createElement(d.default,{ref:i,className:t}),r===p.DEFAULT&&c().createElement(u.default,{ref:i,className:t}))};e.exports=s}}]);
4//# debugId=2d065c31-281b-54fc-958b-6f6fc5d92a16

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.