(window.webpackJsonp=window.webpackJsonp||[]).push([[79],{445:function(t,n,e){"use strict";e.r(n),e.d(n,"default",function(){return d});var i=e(15),r=e.n(i),n=e(16),o=e.n(n),i=e(346),c=e.n(i),n=e(347),a=e.n(n),i=e(348),u=e.n(i),n=e(349),i=e(54),s=e.n(i),l=e(350),f=e(366);function p(e){var i=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}}();return function(){var t,n=u()(e);return n=i?(t=u()(this).constructor,Reflect.construct(n,arguments,t)):n.apply(this,arguments),a()(this,n)}}var d=function(t){c()(e,t);var n=p(e);function e(){return r()(this,e),n.apply(this,arguments)}return o()(e,[{key:"onCreate",value:function(){this.bindingClick(),this.validateVerticalImg(),this.openIfFirstItem()}},{key:"bindingClick",value:function(){s()(this.dom).on("click","a",function(t){new f.default(this).openModalAlbum(t,this),t.hasOwnProperty("originalEvent")})}},{key:"validateVerticalImg",value:function(){var t=s()(this.dom).find("img:first").data("crop"),t=t[l.a.sortOptions(Object.keys(t),!0)].split("x");1<t[0]/t[1]||(this.dom.className+=" img-vertical")}},{key:"openIfFirstItem",value:function(){var t=".album-embed.gallery";0===s()(t).parents(".collection-item").length&&s()(t+" a:first:not(.first-trigger)").trigger("click").addClass("first-trigger")}}]),e}(n.a)}}]);