// source --> https://revista.vixicasei.com.br/wp-content/plugins/elfsight-instagram-feed-cc/assets/elfsight-instagram-feed.js?ver=3.5.0 /* Elfsight Instagram Feed Version: 3.5.0 Release date: Wed May 23 2018 https://elfsight.com Copyright (c) 2018 Elfsight, LLC. ALL RIGHTS RESERVED */window.onEappsInstagramFeedReady=function(){jQuery("[data-elfsight-instagram-feed-options]").each(function(){var e=jQuery(this),t=e.attr("data-elfsight-instagram-feed-options"),n=JSON.parse(decodeURIComponent(t));e.eappsInstagramFeed(n).removeAttr("data-elfsight-instagram-feed-options").data("elfsight-options",t)})},function(e){function t(i){if(n[i])return n[i].exports;var a=n[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(e,t,n){"use strict";e.exports={name:"EappsInstagramFeed",alias:"eapps-instagram-feed",version:"3.5.0",apiUrl:"https://api.instagram.com/v1"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(36)),o=i(n(37)),s=i(n(38)),r=i(n(39)),l=i(n(40)),p=new function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.dates=new a.default,this.links=new o.default,this.numbers=new s.default,this.text=new r.default,this.others=new l.default};t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;nthis.cursor}},{key:"hasNextPage",value:function(){return!!this.nextPageUrl}},{key:"reset",value:function(){this.cursor=0}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={api:null,apiEnc:!1,accessToken:null,source:null,filterOnly:null,filterExcept:null,filter:null,limit:0,layout:"slider",postTemplate:"tile",columns:4,rows:2,gutter:0,responsive:null,width:"auto",callToActionButtons:null,postElements:["user","date","instagramLink","likesCount","commentsCount","share","text"],popupElements:["user","location","followButton","instagramLink","likesCount","share","text","comments","date"],imageClickAction:"popup",sliderArrows:!0,sliderDrag:!0,sliderSpeed:.6,sliderAutoplay:0,colorPostBg:"rgb(255, 255, 255)",colorPostText:"rgb(0, 0, 0)",colorPostLinks:"rgb(0, 53, 105)",colorPostOverlayBg:"rgba(0, 0, 0, 0.8)",colorPostOverlayText:"rgb(255, 255, 255)",colorSliderArrows:"rgb(255, 255, 255)",colorSliderArrowsBg:"rgba(0, 0, 0, 0.9)",colorGridLoadMoreButton:"rgb(56, 151, 240)",colorPopupOverlay:"rgba(43, 43, 43, 0.9)",colorPopupBg:"rgb(255, 255, 255)",colorPopupText:"rgb(0, 0, 0)",colorPopupLinks:"rgb(0, 53, 105)",colorPopupFollowButton:"rgb(56, 151, 240)",colorPopupCtaButton:"rgb(56, 151, 240)",widgetTitle:"",lang:"en",cacheTime:300,popupDeepLinking:!1,debug:!1}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;nt.minWidth?1:0})),t}},{key:"clearViews",value:function(){this.views.forEach(function(e){e.clear()}),this.views=[],this.cursor=0,this.$postsInner.empty()}},{key:"addView",value:function(){var e=this,t=this.calculateLackCount(),n=jQuery.Deferred();return this.loadItems(t).then(function(t){if(e.destroyed)return!1;e.createView(),e.hasPopup&&e.popupDeepLinking&&e.followHash(),e.redLike.checkRun(),e.hideLoader(),n.resolve(t)},function(t){if(e.destroyed)return!1;t&&e.widget.showError(t),n.reject()}),n.promise()}},{key:"createView",value:function(){var e=this,t=this.posts.items.slice(this.cursor,this.cursor+this.itemsPerPage);if(!t.length)return!1;this.cursor+=t.length;var n=new r.default(t,this);return n.$element.appendTo(this.$postsInner),this.views.push(n),setTimeout(function(){n.init(),e.fitItems()}),n}},{key:"loadItems",value:function(e){var t=this;return this.posts.addItems(e).then().fail(function(){t.widget.showError("No posts found by your specified sources.")})}},{key:"calculateLackCount",value:function(){return this.itemsPerPage-this.posts.items.length%this.itemsPerPage}},{key:"fit",value:function(){var e=this;this.updateBreakpoint()&&this.rebuildViews().then(function(){e.fitItems()})}},{key:"updateBreakpoint",value:function(){var e=!1,t=null,n=this.$window.innerWidth();return this.breakpoints.forEach(function(e){!t&&n<=e.minWidth&&(t=e)}),(t=t||this.defaultBreakpoint)!==this.currentBreakpoint&&(this.currentBreakpoint=t,e=!0,this.columns=t.hasOwnProperty("columns")?t.columns:this.defaultBreakpoint.columns,this.rows=t.hasOwnProperty("rows")?t.rows:this.defaultBreakpoint.rows,this.gutter=t.hasOwnProperty("gutter")?t.gutter:this.defaultBreakpoint.gutter),this.itemsPerPage=this.columns*this.rows,e}},{key:"rebuildViews",value:function(){var e=this,t=jQuery.Deferred();this.clearViews();var n=Math.floor(this.posts.items.length/this.itemsPerPage),i=function(){for(var i=0,a=n;i150&&e<=250),this.$element.toggleClass(p.default.alias+"-posts-medium",e>250&&e<=350),this.$element.toggleClass(p.default.alias+"-posts-large",e>350)}}},{key:"fitItems",value:function(){var e=this,t=(100/this.columns).toFixed(6);this.views.forEach(function(n){if(n.$element.css({padding:e.gutter/2+"px"}),n.items.forEach(function(n){n.$element.css({width:"calc("+t+"% - "+e.gutter+"px)",margin:e.gutter/2+"px"}),n.$element.addClass(p.default.alias+"-posts-item-visible")}),n.items.length2&&void 0!==arguments[2]?arguments[2]:[];this.items=e,this.$parent=t,this.optionalStylesClasses=n,this.addPopoverItems(),this.$element.appendTo(this.$parent),this.fit(),this.$element.addClass("eui-popover-open"),this.opened=!0}},{key:"fit",value:function(){this.$widget&&this.$widget.length||(this.$widget=jQuery("."+this.alias));var e=parseInt(this.$parent.offset().top-this.$widget.offset().top,10),t=this.$inner.height()+parseInt(this.$content.css("padding-bottom"),10);this.$element.toggleClass("eui-popover-bottom",en||a===e.data.images.length-1)&&(i=t)}),!this.data.currentImage||this.data.currentImage.url!==i.url&&i.width>this.data.currentImage.width?(this.data.currentImage=i,this.$image.attr("src",this.data.currentImage.url).one("load",function(){t.resolve()})):t.resolve(),t.promise()}},{key:"watch",value:function(){var e=this,t=void 0;this.$window.on("resize",function(){clearTimeout(t),t=setTimeout(function(){e.fitImage()},200)})}}]),e}();t.default=s},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;nn||a===e.data.images.length-1)&&(i=t)}),!this.data.currentImage||this.data.currentImage.url!==i.url&&i.width>this.data.currentImage.width?(this.data.currentImage=i,this.$image.attr("src",this.data.currentImage.url).one("load",function(){t.resolve()})):t.resolve(),t.promise()}}]),e}();t.default=r},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e,t){for(var n=0;n