1(self.webpackChunkgilbane2022=self.webpackChunkgilbane2022||[]).push([[7725,2650,7514],{9726:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return s}});var r=n(5671),o=n(3144),i=n(4942),a=(n(2564),n(2222),n(27)),l=n(8696),s=function(){function t(e){var n=this;(0,r.Z)(this,t),(0,i.Z)(this,"closeButtonClass","basicLightbox__close"),(0,i.Z)(this,"closeButtonEventAdded",!1),(0,i.Z)(this,"handleClick",(function(t){n.handleClickCallback(t)})),(0,i.Z)(this,"handleClickCallback",(function(t){n.lightbox=n.getLightbox(),n.lightbox&&(t.preventDefault(),t.stopPropagation(),n.lightboxEl=n.lightbox.element(),n.lightboxImage=n.lightboxEl.querySelector("img"),n.galleryItem&&n.lightboxEl.addEventListener("click",n.handlePrevNext),n.lightbox.show())})),(0,i.Z)(this,"handleOnShow",(function(){n.lightboxEl.querySelector(".".concat(n.closeButtonClass)).addEventListener("click",(function(){n.lightbox.close()})),document.documentElement.classList.add("lightbox-open"),(0,l.disableScroll)(),n.afterOnShow()})),(0,i.Z)(this,"handleOnClose",(function(){document.documentElement.classList.remove("lightbox-open"),(0,l.enableScroll)(),n.galleryItem&&setTimeout((function(){n.resetGallery()}),500),n.afterOnClose()})),(0,i.Z)(this,"handlePrevNext",(function(t){var e,r=t.target.closest(".basicLightbox__prev"),o=t.target.closest(".basicLightbox__next");r?e=n.prevGalleryItem:o&&(e=n.nextGalleryItem),e&&n.updateLightBoxImage(e)})),this.el=e,this.image=this.el.querySelector("img"),this.addImageLinkClass(),this.galleryItem=this.el.closest(".blocks-gallery-item"),this.galleryItem&&(this.allGalleryItems=this.galleryItem.parentElement.children,this.setPrevNextItems()),this.el.addEventListener("click",this.handleClick)}return(0,o.Z)(t,[{key:"getImageLinkClass",value:function(){return"enlarge"}},{key:"addImageLinkClass",value:function(){this.image&&this.el.classList.add(this.getImageLinkClass())}},{key:"getLightbox",value:function(){var t=this.getHTML();return!!t&&a.create(t,this.getOptions())}},{key:"getHTML",value:function(){var t=this.getInnerHTML();return!!t&&"".concat(this.getCloseHTML()).concat(t)}},{key:"getCloseHTML",value:function(){return'<button tabindex="1" class="'.concat(this.closeButtonClass,' basicLightbox__button no-button-style">\n\t\t\t<span class="screen-reader-text">Close</span>\n\t\t\t<span class="dashicons dashicons-no-alt"></span>\n\t\t</button>')}},{key:"getPrevHtml",value:function(){return this.prevGalleryItem?'<button class="basicLightbox__prev">\n\t\t\t\t<span class="screen-reader-text">Close</span>\n\t\t\t\t<span class="dashicons dashicons-arrow-left-alt"></span>\n\t\t\t</button>':""}},{key:"getNextHtml",value:function(){return this.nextGalleryItem?'<button class="basicLightbox__next">\n\t\t\t\t<span class="screen-reader-text">Close</span>\n\t\t\t\t<span class="dashicons dashicons-arrow-right-alt"></span>\n\t\t\t</button>':""}},{key:"getInnerHTML",value:function(){var t=this.el.getAttribute("href"),e=this.image?this.image.getAttribute("alt"):"";return'<div class="basicLightbox__image">\n\t\t\t'.concat(this.getPrevHtml(),'\n\t\t\t<img src="').concat(t,'" alt="').concat(e,'" />\n\t\t\t').concat(this.getNextHtml(),"\n\t\t</div>")}},{key:"getOptions",value:function(){var t=this;return{onShow:function(){t.handleOnShow()},onClose:function(){t.handleOnClose()}}}},{key:"updateLightBoxImage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=t||this.galleryItem;if(e){var n=e.querySelector("a"),r=e.querySelector("img");n&&r&&(this.lightboxImage.setAttribute("src",n.href),this.lightboxImage.setAttribute("alt",r.alt),this.setPrevNextItems(e))}}},{key:"setPrevNextItems",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=t||this.galleryItem;e&&(this.prevGalleryItem=e.previousElementSibling||this.allGalleryItems[this.allGalleryItems.length-1],this.nextGalleryItem=e.nextElementSibling||this.allGalleryItems[0])}},{key:"resetGallery",value:function(){this.updateLightBoxImage(),this.setPrevNextItems()}},{key:"afterOnShow",value:function(){}},{key:"afterOnClose",value:function(){}}]),t}()},8460:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return h}});var r=n(5671),o=n(3144);
1function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}n(4916),n(4723),n(2419);var c=n(5285),u=n(9726);var f=[{regex:c.videoFileRegex,iframe:!1,getSrc:function(t){return t.href}},{regex:c.youtubeRegex,iframe:!0,getSrc:function(t){var e=t.href,n=t.matches;return null===e.match(c.youtubePageRegex)&&"https://www.youtube.com/embed/".concat(n[1],"?autoplay=1&hd=1&rel=0")}},{regex:c.vimeoRegex,iframe:!0,getSrc:function(t){var e=t.matches,n=e[4]||e[5];return"https://player.vimeo.com/video/".concat(n,"?autoplay=1")}},{regex:c.wistiaRegex,iframe:!0,getSrc:function(t){var e=t.matches;return"https://fast.wistia.net/embed/iframe/".concat(e[4],"?autoplay=1")}}],h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(c,t);var e,n,a=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var o=s(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return l(this,t)});function c(){return(0,r.Z)(this,c),a.apply(this,arguments)}return(0,o.Z)(c,[{key:"getImageLinkClass",value:function(){return"play-btn"}},{key:"getInnerHTML",value:function(){for(var t=this,e=this.el.getAttribute("href"),n=!1,r=!0,o=0;o<f.length;o++){var i=f[o],a=e.match(i.regex);if(null!==a&&(n=i.getSrc({href:e,matches:a}),r=f[o].iframe),n)break}if(n){var l="";return r?l='<iframe allow="autoplay" src="'.concat(n,'" frameborder="0" allowfullscreen></iframe>'):(l='<video controls src="'.concat(n,'"></video>'),this.afterOnShow=function(){var e=t.lightboxEl.querySelector("video");e&&e.play()}),!!l&&'<div class="basicLightbox__video"><div class="responsive-video">'.concat(l,"</div></div>")}}}]),c}(u.default)},3959:function(t,e,n){"use strict";n.r(e);var r=n(9062),o=(n(1249),n(4747),n(9726)),i=n(8460),a=n(5285);function l(t,e,n){if(e&&!Array.isArray(e)&&"number"==typeof e.length){var r=e.length;return function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}(e,void 0!==n&&n<r?n:r)}return t(e,n)}embark.components.lightboxes={imageLightboxes:[],videoLightboxes:[],init:function(){this.initImageLightboxes(),this.initVideoLightboxes(),this.observe=this.observe.bind(this),this.observe()},initImageLightboxes:function(){var t=l(r.Z,document.querySelectorAll(a.imageLinkQuerySelector));t.length&&(this.imageLightboxes=t.map((function(t){return new o.default(t)})))},initVideoLightboxes:function(){var t=l(r.Z,document.querySelectorAll(a.videoLinkQuerySelector));t.length&&(this.videoLightboxes=t.map((function(t){return new i.default(t)})))},observe:function(){var t=this,e=document.querySelector(".site");new MutationObserver((function(e){e.forEach((function(e){var n=e.addedNodes;n.length&&n.forEach((function(e){if(e.querySelectorAll&&"function"==typeof e.querySelectorAll){var n=e.querySelectorAll("a");n.length&&n.forEach((function(e){e.matches(a.imageLinkQuerySelector)?t.imageLightboxes.push(new o.default(e)):e.matches(a.videoLinkQuerySelector)&&t.videoLightboxes.push(new i.default(e))}))}}))}))})).observe(e,{childList:!0,subtree:!0})}},embark.components.lightboxes.init()},27:function(t){t.exports=function t(e,n,r){function o(a,l){if(!n[a]){if(!e[a]){if(i)return i(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var c=n[a]={exports:{}};e[a][0].call(c.exports,(function(t){return o(e[a][1][t]||t)}),c,c.exports,t,e,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.create=n.visible=void 0;var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("div");return n.innerHTML=t.trim(),!0===e?n.children:n.firstChild},o=function(t,e){var n=t.children;return 1===n.length&&n[0].tagName===e},i=function(t){return null!=(t=t||document.querySelector(".basicLightbox"))&&!0===t.ownerDocument.body.contains(t)};n.visible=i,n.create=function(t,e){var n=function(t,e){var n=r('\n\t\t<div class="basicLightbox '.concat(e.className,'">\n\t\t\t<div class="basicLightbox__placeholder" role="dialog"></div>\n\t\t</div>\n\t')),i=n.querySelector(".basicLightbox__placeholder");t.forEach((function(t){return i.appendChild(t)}));var a=o(i,"IMG"),l=o(i,"VIDEO"),s=o(i,"IFRAME");return!0===a&&n.classList.add("basicLightbox--img"),!0===l&&n.classList.add("basicLightbox--video"),!0===s&&n.classList.add("basicLightbox--iframe"),n}(t=function(t){var e="string"==typeof t,n=t instanceof HTMLElement==1;if(!1===e&&!1===n)throw new Error("Content must be a DOM element/node or string");return!0===e?Array.from(r(t,!0)):"TEMPLATE"===t.tagName?[t.content.cloneNode(!0)]:Array.from(t.children)}(t),e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null==(t=Object.assign({},t)).closable&&(t.closable=!0),null==t.className&&(t.className=""),null==t.onShow&&(t.onShow=function(){}),null==t.onClose&&(t.onClose=function(){}),"boolean"!=typeof t.closable)throw new Error("Property `closable` must be a boolean");if("string"!=typeof t.className)throw new Error("Property `className` must be a string");if("function"!=typeof t.onShow)throw new Error("Property `onShow` must be a function");if("function"!=typeof t.onClose)throw new Error("Property `onClose` must be a function");return t}(e)),a=function(t){return!1!==e.onClose(l)&&function(t,e){return t.classList.remove("basicLightbox--visible"),setTimeout((function(){return!1===i(t)||t.parentElement.removeChild(t),e()}),410),!0}(n,(function(){if("function"==typeof t)return t(l)}))};!0===e.closable&&n.addEventListener("click",(function(t){t.target===n&&a()}));var l={element:function(){return n},visible:function(){return i(n)},show:function(t){return!1!==e.onShow(l)&&function(t,e){return document.body.appendChild(t),setTimeout((function(){requestAnimationFrame((function(){return t.classList.add("basicLightbox--visible"),e()}))}),10),!0}(n,(function(){if("function"==typeof t)return t(l)}))},close:a};return l}},{}]},{},[1])(1)},7065:function(t,e,n){"use strict";var r=n(9662),o=n(111),i=[].slice,a={},l=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";a[e]=Function("C,a","return new C("+r.join(",")+")")}return a[e](t,n)};
vendor: 1,001 bytes, lines 1-2
1t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?l(e,r.length,r):e.apply(t,r)};return o(e.prototype)&&(a.prototype=e.prototype),a}},2419:function(t,e,n){var r=n(2109),o=n(5005),i=n(9483),a=n(9670),l=n(111),s=n(30),c=n(7065),u=n(7293),f=o("Reflect","construct"),h=u((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),g=!u((function(){f((function(){}))})),b=h||g;r({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(g&&!h)return f(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var o=n.prototype,u=s(l(o)?o:Object.prototype),b=Function.apply.call(t,u,e);return l(b)?b:u}})}}]); 2//# sourceMappingURL=lightboxes.js.map
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.