PageSourceSearch

https://www.bistrotpierre.co.uk/propeller/themes/propeller/assets/reservations.d89f82d8c169ef3b5602.js

js bistrotpierre.co.uk collected 2026-09-26 10:39:54 UTC 2,704 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{202:function(e,t,n){"use strict";n.r(t);var r=n(159);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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.elReservations=t,this.elForm=t.querySelector(".js-reservations-form"),this.elClose=t.querySelector(".js-reservations-close"),this.elClosedContainer=t.querySelector(".js-reservations-closed"),this.bindEvents(),this.handleSevenRoomsIframe(),this.updateCurrentOpenEl(),this.triggerParams=document.querySelectorAll(".js-trigger-modal-params")}var t,n,i;return t=e,(n=[{key:"updateCurrentOpenEl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object(r.getParam)("location");this.currentOpenEl=this.elReservations.querySelector('.js-reservations-open[data-location="'.concat(e,'"]'))}},{key:"bindEvents",value:function(){var e=this;this.elClose.addEventListener("click",function(){return e.closeReservations()}),this.elForm.addEventListener("change",function(t){return e.openReservations(t.target.value)},!1)}},{key:"closeReservations",value:function(){Object(r.removeParam)("location"),this.elForm.reset(),this.toggleAttributes(),window.dispatchEvent(new Event("resize"))}},{key:"openReservations",value:function(e){Object(r.setParam)("location",e),this.updateCurrentOpenEl(e),this.toggleAttributes()}},{key:"toggleAttributes",value:function(){this.elClosedContainer.toggleAttribute("hidden"),this.elClose.toggleAttribute("hidden"),this.currentOpenEl.toggleAttribute("hidden"),this.triggerAllPanel()}},{key:"isActiveFloatPanel",value:function(e){e.getAttribute("data-location")===Object(r.getParam)("location")&&e.removeAttribute("hidden")}},{key:"triggerAllPanel",value:function(){var e=this;this.triggerParams.forEach(function(t,n){t.setAttribute("hidden","true"),e.isActiveFloatPanel(t,n)})}},{key:"handleSevenRoomsIframe",value:function(){var e=Array.prototype.slice.call(document.querySelectorAll(".js-iframe"));0!==e.length&&window.addEventListener("message",function(t){"https://www.sevenrooms.com"===t.origin&&("heightEvent"===t.data.type&&(e.find(function(e){return e.contentWindow===t.source}).style.height="".concat(t.data.size,"px")))})}},{key:"lazyOpenTableWidget",value:function(e){var t=document.querySelectorAll(".js-open-table");Array.prototype.forEach.call(t,function(t){e.watch(t.parentElement,function(n){n&&(t.src=t.getAttribute("data-src"),t.removeAttribute("data-src"),e.unwatch(t))})})}}])&&o(t.prototype,n),i&&o(t,i),e}();t.default=i}}]);

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.