(function framework7ComponentLoader(r,s){void 0===s&&(s=!0);document,window;var e=r.$,n=(r.Template7,r.utils),t=(r.device,r.support,r.Class,r.Modal,r.ConstructorMethods,r.ModalMethods,{set:function(){for(var r,s=[],n=arguments.length;n--;)s[n]=arguments[n];var t=s[0],o=s[1],i=s[2];if("number"==typeof s[0]&&(o=(r=s)[0],i=r[1],t=this.root),null==o)return t;o||(o=0);var a=e(t||this.root);if(0===a.length)return t;var p,h=Math.min(Math.max(o,0),100);if(0===(p=a.hasClass("progressbar")?a.eq(0):a.children(".progressbar")).length||p.hasClass("progressbar-infinite"))return p;var g=p.children("span");return 0===g.length&&(g=e("<span></span>"),p.append(g)),g.transition(void 0!==i?i:"").transform("translate3d("+(-100+h)+"%,0,0)"),p[0]},show:function(){for(var r,s,n=[],t=arguments.length;t--;)n[t]=arguments[t];var o=n[0],i=n[1],a=n[2],p="determined";2===n.length?"string"!=typeof n[0]&&"object"!=typeof n[0]||"string"!=typeof n[1]?"number"==typeof n[0]&&"string"==typeof n[1]&&(i=(s=n)[0],a=s[1],o=this.root):(o=(r=n)[0],a=r[1],i=r[2],p="infinite"):1===n.length?"number"==typeof n[0]?(o=this.root,i=n[0]):"string"==typeof n[0]&&(p="infinite",o=this.root,a=n[0]):0===n.length&&(p="infinite",o=this.root);var h,g=e(o);if(0!==g.length)return g.hasClass("progressbar")||g.hasClass("progressbar-infinite")?h=g:0===(h=g.children(".progressbar:not(.progressbar-out), .progressbar-infinite:not(.progressbar-out)")).length&&(h=e('\n          <span class="progressbar'+("infinite"===p?"-infinite":"")+(a?" color-"+a:"")+' progressbar-in">\n            '+("infinite"===p?"":"<span></span>")+"\n          </span>"),g.append(h)),void 0!==i&&this.progressbar.set(h,i),h[0]},hide:function(r,s){void 0===s&&(s=!0);var n,t=e(r||this.root);if(0!==t.length)return 0===(n=t.hasClass("progressbar")||t.hasClass("progressbar-infinite")?t:t.children(".progressbar, .progressbar-infinite")).length||!n.hasClass("progressbar-in")||n.hasClass("progressbar-out")?n:(n.removeClass("progressbar-in").addClass("progressbar-out").animationEnd(function(){s&&n.remove()}),n)}}),o={name:"progressbar",create:function(){n.extend(this,{progressbar:{set:t.set.bind(this),show:t.show.bind(this),hide:t.hide.bind(this)}})},on:{pageInit:function(r){var s=this;r.$el.find(".progressbar").each(function(r,n){var t=e(n);s.progressbar.set(t,t.attr("data-progress"))})}}};if(s){if(r.prototype.modules&&r.prototype.modules[o.name])return;r.use(o),r.instance&&(r.instance.useModuleParams(o,r.instance.params),r.instance.useModule(o))}return o}(Framework7, typeof Framework7AutoInstallComponent === 'undefined' ? undefined : Framework7AutoInstallComponent))
