(function framework7ComponentLoader(r,s){void 0===s&&(s=!0);var e=r.$,t=(r.Template7,r.utils),n=(r.getDevice,r.getSupport,r.Class,r.Modal,r.ConstructorMethods,r.ModalMethods,t.bindMethods),a={set:function(){for(var r=this,s=arguments.length,t=new Array(s),n=0;n<s;n++)t[n]=arguments[n];var a=t[0],o=t[1],i=t[2];if("number"==typeof t[0]&&(o=t[0],i=t[1],a=r.root),null==o)return a;o||(o=0);var p=e(a||r.root);if(0===p.length)return a;var g,f=Math.min(Math.max(o,0),100);if(0===(g=p.hasClass("progressbar")?p.eq(0):p.children(".progressbar")).length||g.hasClass("progressbar-infinite"))return g;var l=g.children("span");return 0===l.length&&(l=e("<span></span>"),g.append(l)),l.transition(void 0!==i?i:"").transform("translate3d("+(-100+f)+"%,0,0)"),g[0]},show:function(){for(var r=this,s=arguments.length,t=new Array(s),n=0;n<s;n++)t[n]=arguments[n];var a=t[0],o=t[1],i=t[2],p="determined";2===t.length?"string"!=typeof t[0]&&"object"!=typeof t[0]||"string"!=typeof t[1]?"number"==typeof t[0]&&"string"==typeof t[1]&&(o=t[0],i=t[1],a=r.root):(a=t[0],i=t[1],o=t[2],p="infinite"):1===t.length?"number"==typeof t[0]?(a=r.root,o=t[0]):"string"==typeof t[0]&&(p="infinite",a=r.root,i=t[0]):0===t.length&&(p="infinite",a=r.root);var g,f=e(a);if(0!==f.length)return f.hasClass("progressbar")||f.hasClass("progressbar-infinite")?g=f:0===(g=f.children(".progressbar:not(.progressbar-out), .progressbar-infinite:not(.progressbar-out)")).length&&(g=e('\n          <span class="progressbar'+("infinite"===p?"-infinite":"")+(i?" color-"+i:"")+' progressbar-in">\n            '+("infinite"===p?"":"<span></span>")+"\n          </span>"),f.append(g)),void 0!==o&&r.progressbar.set(g,o),g[0]},hide:function(r,s){void 0===s&&(s=!0);var t,n=e(r||this.root);if(0!==n.length)return 0===(t=n.hasClass("progressbar")||n.hasClass("progressbar-infinite")?n:n.children(".progressbar, .progressbar-infinite")).length||!t.hasClass("progressbar-in")||t.hasClass("progressbar-out")||t.removeClass("progressbar-in").addClass("progressbar-out").animationEnd((function(){s&&t.remove()})),t}},o={name:"progressbar",create:function(){n(this,{progressbar:a})},on:{tabMounted:function(r){var s=this;e(r).find(".progressbar").each((function(r){var t=e(r);s.progressbar.set(t,t.attr("data-progress"))}))},pageInit:function(r){var s=this;r.$el.find(".progressbar").each((function(r){var t=e(r);s.progressbar.set(t,t.attr("data-progress"))}))}},vnode:{progressbar:{insert:function(r){var s=r.elm;this.progressbar.set(s,s.getAttribute("data-progress"))},update:function(r){var s=r.elm;this.progressbar.set(s,s.getAttribute("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))
