1!function(e,t){"use strict";var env="production",a={debug:{baseUrl:"https://widgets.bookaletlocal.co.uk:44381",debug:!0},staging:{baseUrl:"https://widgets.bookaletdev.co.uk",debug:!1},production:{baseUrl:"https://widgets.bookalet.co.uk",debug:!1}},o=function(){};function n(e){var t=document.createElement("div");return t.setAttribute("id","bookaletLoading_"+e),t.style.width="100%",t.style.textAlign="center",t.innerHTML='<img src="'+a[env].baseUrl+'/Content/img/loading.gif" alt="Loading..." />',t}function l(e,t){var a=document.createElement("iframe");return a.setAttribute("data-height",t),"auto"==t?(t="30px",a.setAttribute("scrolling","no")):a.setAttribute("scrolling","yes"),a.setAttribute("id","bookaletFrame_"+e),a.setAttribute("border","0"),a.setAttribute("frameBorder","0"),a.height=t,a.width="100%",a.setAttribute("style","border:0;visibility:hidden;width:100%;height:"+t+";"),a}function i(e,t){var o=a[env].baseUrl;return o=o+"/"+e,null!==t.property&&(o=o+"/"+t.property.toString()),null!==t.baseurl&&(o=o+"/"+t.baseurl.toString()),o=(o=o+"?Parent="+encodeURIComponent(document.location.href))+"&"+c(t)}function r(e){if(e){var t=r(e.offsetParent);return[t[0]+e.offsetLeft,t[1]+e.offsetTop]}return[0,0]}function s(e){if(!document.getElementById("bookalet_Modal")){var t=JSON.parse(e),a=document.createElement("div"),o=" d='M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z' ";a.setAttribute("id","bookalet_Modal"),a.style.position="fixed",a.style.height="100%",a.style.width="100%",a.style.left="0",a.style.top="0",a.style.backgroundColor="rgba(0, 0, 0, 0.4)",a.style.textAlign="center",a.style.display="flex",a.style.flexDirection="row",a.style.flexWrap="wrap",a.style.justifyContent="center",a.style.alignItems="center",a.style.zIndex="1200";var n=document.createElement("div");return n.style.backgroundColor="white",n.style.color="#545454",n.style.position="relative",n.style.top=a.style.height-300,n.style.width="600px",n.style.maxWidth="90%",n.style.padding="20px",n.style.borderRadius="10px",n.style.textAlign="left",n.innerHTML=tmpl('<h3>{%#o.author%}</h3><i>{%=o.reviewdate%}</i><p>{%#o.review%}</p><br/><svg viewBox="0 0 130 30" preserveAspectRatio="xMinYMin meet" width="200px">{% for (var i=0; i<o.stars; i++) { %} <path transform="translate({%=i*25%} 0)" fill="{%#o.fill%}" stroke="{%#o.stroke%}" '+o+"/> {% } %}</svg>",t),a.append(n),a.onclick=function(){document.getElementById("bookalet_Modal").remove()},a}}function d(e,t){if(!document.getElementById("bookalet_Modal")){var o=JSON.parse(t),n=document.createElement("div");n.setAttribute("id","bookalet_Modal"),n.style.position="fixed",n.style.height="100%",n.style.width="100%",n.style.left="0",n.style.top="0",n.style.backgroundColor="rgba(0, 0, 0, 0.4)",n.style.textAlign="center",n.style.display="flex",n.style.flexDirection="row",n.style.flexWrap="wrap",n.style.justifyContent="center",n.style.alignItems="center",n.style.zIndex="1200";var l=document.createElement("div");l.setAttribute("id","bookalet_modalInner"),l.style.position="relative",l.style.height="450px",l.style.top=n.style.height-450,l.style.width="780px",l.style.maxWidth="90%",l.style.padding="0px";var i=document.createElement("div");i.style.display="flex",i.style.justifyContent="flex-end",i.style.top="5px",i.style.right="5px",i.innerHTML='<a id="bookalet_cancel" href="#"><svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24" stroke-width="2" stroke="white" style="width:30px;margin-left: auto;margin-bottom:3px;"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" /></svg></a>',l.append(i);var r=document.createElement("div");r.style.backgroundColor="white",r.style.height="calc(100% - 37px)",r.style.width="100%",r.style.padding="0px",r.style.boxShadow="0 10px 50px rgba(0, 0, 0, 0.5)",r.style.overflow="hidden";var s="?owner="+o.owner+"&propIds="+o.property.Id+"&unitsRequired="+o.unitsRequired+"&arrival="+o.arrival+"&nights="+o.nights+"&theme="+o.theme;return""!=o.affilate&&(s+="&affiliate="+o.affiliate),r.innerHTML='<iframe id="bookalet_iframe" src=\''+a[env].baseUrl+"/"+e+"/Calendar/BookingStart"+s+'\' border="0" width="100%" style="height: 100%;"></iframe>',l.append(r),n.append(l),n}}function u(e){e==t&&(e=8);for(var a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",o="",n=0;n<e;n++){var l=Math.floor(Math.random()*a.length);o+=a.substring(l,l+1)}return o}function g(e,a){return e.hasAttribute!==t?e.hasAttribute(a):!(null===e.getAttribute(a)||""===e.getAttribute(a))}function c(e){var t="";for(var a in e)e.hasOwnProperty(a)&&null!=e[a]&&(t+=a+"="+e[a]+"&");return"&"==t.substring(t.length-1)&&(t=t.substring(0,t.length-1)),t}window.console||(window.console={log:o,info:o,warn:o,error:o}),e.init=function(){e._eventsAttached||(window.addEventListener?addEventListener("message",e.re
1cieveMessage,!1):attachEvent("onmessage",e.recieveMessage),e._eventsAttached=!0);for(var t=document.getElementsByTagName("script"),o=null,r=0;r<t.length;++r)if(g(t[r],"data-bookalet")&&!g(t[r],"data-bookalet-loaded")){(o=t[r]).setAttribute("data-bookalet-loaded","true");break}if(o){var s=o.getAttribute("data-bookalet")+"_",d=u(),c=s+=d,p="";"demo-"!=s.substring(0,5)&&"portal-"!=s.substring(0,7)||(c="00000000-0000-0000-0000-000000000000_"+d),s.includes("Partner-")&&(p=(s=c=o.getAttribute("data-bookalet")).replace("Partner-","").split("_")[0]);var b={baseurl:null,property:null,propertyGroup:null,monthCount:null,colour:null,bgcolour:null,infourl:null,theme:null,arrival:null,nights:null,departure:null,sleepsadults:null,sleepschildren:null,changeover:null,dayseitherside:null,location:null,facilities:null,owner:null,type:null,reviewCount:null,resultspage:null,gridview:null,showalldefault:null,title:null,modal:null,language:null,affiliate:null,height:"auto"};""!=p&&(b.affiliate=p);for(var h,f=/\+/g,y=/([^&=]+)=?([^&]*)/g,w=function(e){return decodeURIComponent(e.replace(f," "))},m=window.location.search.substring(1);h=y.exec(m);){var v=w(h[1]).toLowerCase();(v in b||"pg_"==v.substring(0,3))&&(b[v]=w(h[2]))}if(g(o,"data-nights")){var k=parseInt(o.getAttribute("data-nights"));isNaN(k)||(b.nights=k)}if(g(o,"data-property")){var x=parseInt(o.getAttribute("data-property"));isNaN(x)||(b.property=x)}if(g(o,"data-propgroup")){var A=parseInt(o.getAttribute("data-propgroup"));isNaN(A)||(b.propertyGroup=A)}if(g(o,"data-monthcount")){var I=parseInt(o.getAttribute("data-monthcount"));isNaN(I)||(b.monthCount=I)}if(g(o,"data-theme")){var M=parseInt(o.getAttribute("data-theme"));isNaN(M)||(b.theme=M)}if(g(o,"data-colour")&&(b.colour=o.getAttribute("data-colour")),g(o,"data-bgcolour")&&(b.bgcolour=o.getAttribute("data-bgcolour")),g(o,"data-owner")){var _=parseInt(o.getAttribute("data-owner"));isNaN(_)||(b.owner=_)}if(g(o,"data-type")){var E=parseInt(o.getAttribute("data-type"));isNaN(E)||(b.type=E)}if(g(o,"data-infourl")&&(b.infourl=encodeURIComponent(o.getAttribute("data-infourl"))),g(o,"data-reviewcount")){var N=parseInt(o.getAttribute("data-reviewcount"));isNaN(N)||(b.reviewCount=N)}g(o,"data-resultspage")&&(b.resultspage=encodeURIComponent(o.getAttribute("data-resultspage"))),g(o,"data-grid")&&1==parseInt(o.getAttribute("data-grid"))&&(b.gridview=!0),g(o,"data-showalldefault")&&1==parseInt(o.getAttribute("data-showalldefault"))&&(b.showalldefault=!0),g(o,"data-title")&&(1==parseInt(o.getAttribute("data-title"))?b.title=!0:b.title=!1),g(o,"data-language")&&(b.language=o.getAttribute("data-language")),g(o,"data-affiliate")&&(b.affiliate=o.getAttribute("data-affiliate")),g(o,"data-height")&&(b.height=o.getAttribute("data-height"));var B=l(c,b.height);o.parentNode.insertBefore(B,o.nextSibling),o.parentNode.insertBefore(n(c),o.nextSibling),B.setAttribute("src",i(s,b))}else a[env].debug&&console.warn("Bookalet widget failed - script tag not found")},e.recieveMessage=function(e){if(e.origin===a[env].baseUrl){a[env].debug&&console.log("Bookalet Message Received:"+e.data);var t=e.data.toString().split("|"),o=t[0].toString(),n=t[1].toString(),l=t[2].toString(),i=document.getElementById("bookaletFrame_"+o),u=document.getElementById("bookaletLoading_"+o);if(null!==i&&null!==u){switch(n){case"scroll":if(document.getElementById("bookalet_modalInner")){var g=document.getElementById("bookalet_modalInner");(i=g.querySelector("#bookalet_iframe")).contentWindow.postMessage({action:"scrollTo",top:0},"*")}else{var c=r(i),p=parseInt(l);isNaN(p)&&(p=0);var b=c[1]-50;b<0&&(b=0),b+=p,"function"==typeof window.bookalet_scrollTo?window.bookalet_scrollTo(c[0],b):window.scrollTo(c[0],b)}break;case"height":if(document.getElementById("bookalet_modalInner")){var h=document.getElementById("bookalet_modalInner");h.height=parseInt(l)+40,h.style.height=(parseInt(l)+40).toString()+"px",h.style.maxHeight="calc(100vh - 80px)"}else"auto"===i.dataset.height&&(i.height=l,i.style.height=l.toString()+"px",i.style.maxHeight=l.toString()+"px");"function"==typeof window.bookalet_heightChanged&&window.bookalet_heightChanged(l);break;case"width":i.width=l,i.style.width=l;break;case"link":window.location=l;break;case"bookingMade":"function"==typeof window.bookalet_bookingMade&&window.bookalet_bookingMade(JSON.parse(l));break;case"enquiryMade":"function"==typeof window.bookalet_enquiryMade&&window.bookalet_enquiryMade(JSON.parse(l));break;case"titleChanged":"function"==typeof window.bookalet_titleChanged&&window.bookalet_titleChanged(l);break;case"popup":u.parentElement.insertBefore(s(l),null);break;case"openModal":u.parentElement.insertBefore(d(o,l),null),document.getElementById("bookalet_cancel").onclick=function(){i.contentWindow.postMessage({action:"closeModal"},"*"),document.getElementById("bookalet_Modal").remove()};break;case"closeModal":i.contentWindow.postMessage({action:"closeModal"},"*"),document.getElementById("bookalet_Modal").remove()}i.style.visibility="visible",u.style.display="none"}}else a[env].debug&&console.warn('"'+e.origin+'" does not match origin "'+a[env].baseUrl+'"')}
1,e.init()}(window.bookalet=window.bookalet||{},void 0);!function(e){"use strict";var n=function(e,t){var r=/[^\w\-.:]/.test(e)?new Function(n.arg+",tmpl","var _e=tmpl.encode"+n.helper+",_s='"+e.replace(n.regexp,n.func)+"';return _s;"):n.cache[e]=n.cache[e]||n(n.load(e));return t?r(t,n):function(e){return r(e,n)}};n.cache={},n.load=function(e){return document.getElementById(e).innerHTML},n.regexp=/([\s'\\])(?!(?:[^{]|\{(?!%))*%\})|(?:\{%(=|#)([\s\S]+?)%\})|(\{%)|(%\})/g,n.func=function(e,n,t,r,c,u){return n?{"\n":"\\n","\r":"\\r","\t":"\\t"," ":" "}[n]||"\\"+n:t?"="===t?"'+_e("+r+")+'":"'+("+r+"==null?'':"+r+")+'":c?"';":u?"_s+='":void 0},n.encReg=/[<>&"'\x00]/g,n.encMap={"<":"<",">":">","&":"&",'"':""","'":"'"},n.encode=function(e){return(null==e?"":""+e).replace(n.encReg,(function(e){return n.encMap[e]||""}))},n.arg="o",n.helper=",print=function(s,e){_s+=e?(s==null?'':s):_e(s);},include=function(s,d){_s+=tmpl(s,d);}","function"==typeof define&&define.amd?define((function(){return n})):"object"==typeof module&&module.exports?module.exports=n:e.tmpl=n}(this)
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.