2021-04-27 08:32:47 +02:00
|
|
|
!function(t,e){for(var n in e)t[n]=e[n]}(window,function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=455)}({100:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return a}));var r=n(9),i=n.n(r),o=n(29);function u(t,e){var n=(e-t.reduce((function(t,e){return t+e}),0))/t.length;return t.map((function(t){return t+n}))}function c(t,e){return function(t,e,n){var r=i()(e,2),c=r[0],a=r[1],d=1/c*(n-o.b*(t.childElementCount-1)-a);return function(t,e){var n=e.rawHeight,r=e.rowWidth,i=s(t),c=i.map((function(t){return(n-o.b*(t.childElementCount-1))*l(t)[0]})),a=u(c,r);return i.forEach((function(t,e){var r=c[e],i=a[e];!function(t,e){var n=e.colHeight,r=e.width,i=e.rawWidth,o=u(f(t).map((function(t){return i/h(t)})),n);Array.from(t.children).forEach((function(t,e){var n=o[e];t.setAttribute("style","height:".concat(n,"px;width:").concat(r,"px;"))}))}(t,{colHeight:n-o.b*(t.childElementCount-1),width:i,rawWidth:r})})),a.map((function(t){return parseFloat(t/r*100).toFixed(5)}))}(t,{rawHeight:d,rowWidth:n-o.b*(t.childElementCount-1)})}(t,function(t){return s(t).map(l).reduce((function(t,e){var n=i()(t,2),r=n[0],o=n[1],u=i()(e,2);return[r+u[0],o+u[1]]}),[0,0])}(t),e)}function a(t){return Array.from(t.querySelectorAll(".tiled-gallery__row"))}function s(t){return Array.from(t.querySelectorAll(".tiled-gallery__col"))}function f(t){return Array.from(t.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function l(t){var e=f(t),n=e.length,r=1/e.map(h).reduce((function(t,e){return t+1/e}),0);return[r,r*n||1]}function h(t){var e=parseInt(t.dataset.width,10),n=parseInt(t.dataset.height,10);return e&&!Number.isNaN(e)&&n&&!Number.isNaN(n)?e/n:1}},29:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"h",(function(){return o})),n.d(e,"i",(function(){return u})),n.d(e,"j",(function(){return c})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return f})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return h}));var r=["image"],i=4,o=20,u=20,c=2e3,a="circle",s="columns",f="rectangular",l="square",h=[{isDefault:!0,name:f},{name:a},{name:l},{name:s}]},455:function(t,e,n){n(53),t.exports=n(456)},456:function(t,e,n){"use strict";n.r(e);var r=n(55),i=n.n(r),o=(n(457),n(65)),u=n(100);function c(t){c.pendingRaf&&cancelAnimationFrame(c.pendingRaf),c.pendingRaf=requestAnimationFrame((function(){c.pendingRaf=null;var e=!0,n=!1,r=void 0;try{for(var i,o=function(){var t=i.value,e=t.contentRect.width;Array.from(t.target.querySelectorAll(".tiled-gallery__row")).forEach((function(t){return Object(u.b)(t,e)}))},a=t[Symbol.iterator]();!(e=(i=a.next()).done);e=!0)o()}catch(s){n=!0,r=s}finally{try{e||null==a.return||a.return()}finally{if(n)throw r}}}))}"undefined"!=typeof window&&i()((function(){var t=Array.from(document.querySelectorAll(".wp-block-jetpack-tiled-gallery.is-style-rectangular > .tiled-gallery__gallery,.wp-block-jetpack-tiled-gallery.is-style-columns > .tiled-gallery__gallery"));if(0!==t.length){var e=new o.a(c);t.forEach((function(t){"true"!==t.getAttribute("data-jetpack-block-initialized")&&(e.observe(t),t.setAttribute("data-jetpack-block-initializ
|