File: /home/jairicem/basalehglobal.ng/wp-content/themes/porto/js/preview-image.min.js
(function(t,i){"use strict";t=t||{};var e="__previewImage",n=function(t,i){return this.initialize(t,i)};n.defaults={},n.prototype={initialize:function(t,i){return t.data(e)||(this.$el=t,this.setData().setOptions(i).build()),this},setData:function(){return this.$el.data(e,this),this},setOptions:function(t){return this.options=i.extend(!0,{},n.defaults,t,{wrapper:this.$el}),this},build:function(){var t=this.options.wrapper,i=t.data("image");return i&&t.css("background-image","url("+i+")"),this}},i.extend(t,{PreviewImage:n}),i.fn.themePreviewImage=function(n){return this.map((function(){var a=i(this);return a.data(e)?a.data(e):new t.PreviewImage(a,n)}))},t.isReady&&i((function(){i(document.body).find(".thumb-info-preview .thumb-info-image:not(.manual)").each((function(){var t,e=i(this),n=e.data("plugin-options");n&&(t=n),e.themePreviewImage(t)}))})),i(document.body).on("porto_init",(function(t,e){i((function(){e.find(".thumb-info-preview .thumb-info-image:not(.manual)").each((function(){var t,e=i(this),n=e.data("plugin-options");n&&(t=n),e.themePreviewImage(t)}))}))}))}).apply(this,[window.theme,jQuery]);