PageSourceSearch

https://oatlandsparkhotel.com/build/_shared/chunk-2364AMGO.js

js oatlandsparkhotel.com collected 2026-09-24 09:53:46 UTC 3,611 bytes, 3 lines download raw bytes

1function d(n,o){if(!n||typeof n!="object")return"";let t=n[o];return t==null?"":String(t).trim()}function m(n){return n==null?!0:typeof n=="string"?n.trim()==="":Array.isArray(n)?n.length===0:typeof n=="object"?Object.keys(n).length===0:!1}function f(n){return n.trim().toLowerCase().normalize("NFKD").replace(/[^\w\s-]+/g,"").replace(/[\s_]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}function k(n,o,t,a){let r=Array.isArray(n)?n:[],c=f(t),s=f(a);for(let e of r){if(!e||typeof e!="object")continue;let i=e,u=d(i,"id");if(u&&u===o)return i;let l=d(i,"url");if(l&&f(l.split("/").pop()??l)===c)return i;let g=d(i,"name")||d(i,"headline")||d(i,"title");if(g){let p=f(g);if(p===s||p===c)return i}}return null}function y(n,o){if(!o||typeof o!="object")return n;let t={...n},a=new Set(["streetAddress","addressLocality","addressRegion","postalCode","addressCountry"]);for(let r of Object.keys(o)){let c=r.match(/^address_(street|locality|region|postal|country)$/),s=c?c[1]==="street"?"streetAddress":c[1]==="locality"?"addressLocality":c[1]==="region"?"addressRegion":c[1]==="postal"?"postalCode":"addressCountry":r;if(a.has(s)&&t.location&&typeof t.location=="object"){let e=t.location,i=e.address&&typeof e.address=="object"?e.address:{"@type":"PostalAddress"};m(o[r])||(i[s]=o[r],e.address=i);continue}if(s==="locationName"||s==="location"){let e=d(o,r);if(e){let i=t.location&&typeof t.location=="object"?t.location:{"@type":"Place"};i.name=e,t.location=i}continue}if(s==="organizerName"||s==="organizerUrl"){let e=s==="organizerName"?d(o,r):"",i=s==="organizerUrl"?d(o,r):"",u=t.organizer&&typeof t.organizer=="object"?t.organizer:{"@type":"Organization"};e&&(u.name=e),i&&(u.url=i),t.organizer=u;continue}if(s==="performerName"){let e=d(o,r);e&&(t.performer={"@type":"Person",name:e});continue}if(s==="authorName"){let e=d(o,r);e&&(t.author={"@type":"Person",name:e});continue}if(s==="mainEntityOfPageUrl"){let e=d(o,r);e&&(t.mainEntityOfPage={"@type":"WebPage",url:e});continue}m(o[r])||(t[s]=o[r])}return t}function R(n,o,t){let a={"@type":"BlogPosting",headline:n.title,url:o};n.introText&&(a.description=n.introText),n.imageUrl&&(a.image=n.imageUrl),n.createdAt&&(a.datePublished=n.createdAt),(n.lastUpdated??n.createdAt)&&(a.dateModified=n.lastUpdated??n.createdAt),n.author&&(a.author={"@type":"Person",name:n.author});let r=[];if(n.introText&&r.push(n.introText),Array.isArray(n.sections))for(let s of n.sections)s?.sectionBodyHtml&&r.push(s.sectionBodyHtml.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim());let c=r.filter(Boolean).join(`
2
3`).trim();return c&&(a.articleBody=c),y(a,t)}function h(n,o,t){let a={"@type":"Offer",name:n.title,url:o};return n.description&&(a.description=n.description.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()),n.imageUrl&&(a.image=n.imageUrl),y(a,t)}function b(n,o,t,a){let r=(i,u)=>{if(!i)return;let l=u?`${i}T${u}`:i,g=new Date(l);return Number.isFinite(g.getTime())?g.toISOString():void 0},c={"@type":"Event",name:n.title,url:o,eventStatus:"https://schema.org/EventScheduled",organizer:{"@type":"Organization",name:"Oatlands Park Hotel",url:t},location:{"@type":"Place",name:"Oatlands Park Hotel",url:t,address:{"@type":"PostalAddress",streetAddress:"146 Oatlands Drive",addressLocality:"Weybridge",addressRegion:"Surrey",postalCode:"KT13 9HB",addressCountry:"GB"}}};n.description&&(c.description=n.description);let s=r(n.startDate,n.startTime),e=r(n.endDate,n.endTime);return s&&(c.startDate=s),e&&(c.endDate=e),n.imageUrl&&(c.image=n.imageUrl),y(c,a)}function w(n){return{"@context":"https://schema.org",...n}}export{k as a,R as b,h as c,b as d,w as e};

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.