(function framework7ComponentLoader(i,n){void 0===n&&(n=!0);document,window;var t=i.$,e=(i.Template7,i.utils),o=(i.device,i.support,i.Class,i.Modal,i.ConstructorMethods,i.ModalMethods,{handleScroll:function(i,n){var e,o=t(i),r=o[0].scrollTop,l=o[0].scrollHeight,c=o[0].offsetHeight,s=o[0].getAttribute("data-infinite-distance"),a=o.find(".virtual-list"),f=o.hasClass("infinite-scroll-top");if(s||(s=50),"string"==typeof s&&s.indexOf("%")>=0&&(s=parseInt(s,10)/100*c),s>c&&(s=c),f)r<s&&(o.trigger("infinite",n),this.emit("infinite",o[0],n));else if(r+c>=l-s){if(a.length>0&&(e=a.eq(-1)[0].f7VirtualList)&&!e.reachEnd&&!e.params.updatableScroll)return;o.trigger("infinite",n),this.emit("infinite",o[0],n)}},create:function(i){var n=t(i),e=this;n.on("scroll",function(i){e.infiniteScroll.handle(this,i)})},destroy:function(i){t(i).off("scroll")}}),r={name:"infiniteScroll",create:function(){e.extend(this,{infiniteScroll:{handle:o.handleScroll.bind(this),create:o.create.bind(this),destroy:o.destroy.bind(this)}})},on:{tabMounted:function(i){var n=this;t(i).find(".infinite-scroll-content").each(function(i,t){n.infiniteScroll.create(t)})},tabBeforeRemove:function(i){var n=t(i),e=this;n.find(".infinite-scroll-content").each(function(i,n){e.infiniteScroll.destroy(n)})},pageInit:function(i){var n=this;i.$el.find(".infinite-scroll-content").each(function(i,t){n.infiniteScroll.create(t)})},pageBeforeRemove:function(i){var n=this;i.$el.find(".infinite-scroll-content").each(function(i,t){n.infiniteScroll.destroy(t)})}}};if(n){if(i.prototype.modules&&i.prototype.modules[r.name])return;i.use(r),i.instance&&(i.instance.useModuleParams(r,i.instance.params),i.instance.useModule(r))}return r}(Framework7, typeof Framework7AutoInstallComponent === 'undefined' ? undefined : Framework7AutoInstallComponent))
