(window.webpackJsonpLIS=window.webpackJsonpLIS||[]).push([[13],{669:function(t,n,e){"use strict";e.r(n),e.d(n,"ToubizSocialGrid",(function(){return s}));var o=e(92);function r(t){return(r="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})(t)}function i(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var o,r,i,a,c=[],u=!0,s=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;u=!1}else for(;!(u=(o=i.call(e)).done)&&(c.push(o.value),c.length!==n);u=!0);}catch(t){s=!0,r=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(s)throw r}}return c}}(t,n)||function(t,n){if(t){if("string"==typeof t)return a(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?a(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=Array(n);e<n;e++)o[e]=t[e];return o}function c(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,u(o.key),o)}}function u(t){var n=function(t,n){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,n||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==r(n)?n:n+""}var s=function(){return t=function t(n){var e=this;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.node=n,this.containsFacebookPosts=null!==this.node.querySelector("[data-toubiz-social-grid-facebook-post]"),this.macyInstance=null,this.waitForDependencies().then((function(t){var n=i(t,1)[0].default;e.containsFacebookPosts?FB.Event.subscribe("xfbml.render",(function(){e.initializeView(n)})):e.initializeView(n)})).catch((function(t){console.warn(t)}))},(n=[{key:"onLoaded",value:function(){this.node.classList.add("tb-social-grid--loaded")}},{key:"initializeView",value:function(t){var n=this,e=this.node.querySelector("[data-toubiz-social-grid-items]");if(!e)return console.warn("## ToubizSocialGrid Warning - Masonry Layout not available\n                Container node for social grid items can not be found.\n                Enable masonry by including [data-toubiz-social-grid-items] in your markup."),void this.onLoaded();window.innerWidth<=600?this.onLoaded():(this.macyInstance=new t({container:e,columns:4,waitForImages:!0,margin:16,breakAt:{1024:2,600:1}}),this.macyInstance.on(this.macyInstance.constants.EVENT_IMAGE_COMPLETE,(function(){setTimeout((function(){var t=document.createEvent("HTMLEvents");t.initEvent("resize",!0,!1),window.dispatchEvent(t)}),1e3),n.onLoaded()})))}},{key:"waitForDependencies",value:function(){var t=[e.e(28).then(e.t.bind(null,644,7))];return this.containsFacebookPosts&&t.push(Object(o.c)("https://connect.facebook.net/de_DE/sdk.js#xfbml=1&version=v3.2","fb-sdk")),Promise.all(t)}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}()}}]);