PageSourceSearch

https://www.bistrotpierre.co.uk/propeller/themes/propeller/assets/signup.017d4a42211069b8c234.js

js bistrotpierre.co.uk collected 2026-09-26 10:39:56 UTC 3,973 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[29,11],{166:function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}n.r(t);var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elements=t,this.bindings()}var t,n,i;return t=e,i=[{key:"isAvailable",value:function(){return!(void 0===window.gaKey||null===window.gaKey)}},{key:"isGoogleTagManagerAvailable",value:function(){return void 0!==window.dataLayer}},{key:"send",value:function(t,n,a){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(e.isGoogleTagManagerAvailable())window.dataLayer.push({event:"ga.event",category:t.toLowerCase(),action:n.toLowerCase(),label:a.toLowerCase(),value:i,nonInteraction:o});else if(e.isAvailable())for(var r=0;r<window.gaKey.length;r++)window.ga("".concat(r,".send"),"event",t.toLowerCase(),n.toLowerCase(),a.toLowerCase(),i,{nonInteraction:o})}}],(n=[{key:"bindings",value:function(){for(var e=this,t=function(t){e.elements[t].addEventListener("click",function(n){return e.event(n,e.elements[t])})},n=0;n<this.elements.length;n++)t(n)}},{key:"event",value:function(t,n){var a=n.getAttribute("data-ga-action")||"click",i=n.getAttribute("data-ga-category"),o=n.getAttribute("data-ga-label")||n.innerText.trim(),r=parseInt(n.getAttribute("data-ga-value"),10)||0,l="true"===n.getAttribute("data-ga-non-interaction");e.send(i,a,o,r,l),"booking"===n.getAttribute("data-target")&&this.sendLiveresEvent()}},{key:"sendLiveresEvent",value:function(){if(e.isGoogleTagManagerAvailable())window.dataLayer.push({event:"ga.pageview",page:"/Liveres/Start",title:"Booking Start"});else if(e.isAvailable())for(var t=0;t<window.gaKey.length;t++)ga("".concat(t,".send"),{hitType:"pageview",page:"/Liveres/Start",title:"Booking Start"})}}])&&a(t.prototype,n),i&&a(t,i),e}();t.default=i},171:function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"scroll",value:function(e,t,n){var a,i=window.pageYOffset,o=document.body.scrollHeight,r=window.innerHeight,l=i+n,s=i+e.getBoundingClientRect().top,u=(o-s<r?o-r:s)-l;u&&window.requestAnimationFrame(function e(i){a||(a=i);var o,r=i-a,s=Math.min(r/t,1),c=l+u*(s=(o=s)<.5?4*o*o*o:(o-1)*(2*o-2)*(2*o-2)+1)-n;window.scrollTo(0,c),r<t&&window.requestAnimationFrame(e)})}},{key:"scrollInner",value:function(e,t,n){var a,i=n-e.scrollTop;window.requestAnimationFrame(function n(o){a||(a=o);var r,l=o-a,s=Math.min(l/t,1);s=(r=s)<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1,e.scrollTop=s*i,l<t&&window.requestAnimationFrame(n)})}}],(n=null)&&a(t.prototype,n),i&&a(t,i),e}();t.a=i},198:function(e,t,n){"use strict";n.r(t);var a=n(166),i=n(171);function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=t,this.title=document.title,this.url=window.location.href,this.bindings()}var t,n,r;return t=e,(n=[{key:"bindings",value:function(){var e=this;setTimeout(function(){i.a.scroll(e.element,2e3,150)},1e3),-1!==this.url.search("[?&]success")?this.tracking("success"):this.tracking("error"),this.title&&this.url.includes("?")&&window.history.replaceState({},this.title,this.url.split("?")[0])}},{key:"tracking",value:function(e){a.default.send("form (sign up)","submit",e,0,!0)}}])&&o(t.prototype,n),r&&o(t,r),e}();t.default=r}}]);

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.