(function framework7ComponentLoader(e,i){void 0===i&&(i=!0);document,window;var n=e.$,o=(e.Template7,e.utils),r=(e.device,e.support,e.Class,e.Modal,e.ConstructorMethods,e.ModalMethods,{init:function(e){var i=n(e);0===i.length||i.children(".preloader-inner").length>0||i.children(".preloader-inner-line").length>0||i.append(o[this.theme+"PreloaderContent"])},visible:!1,show:function(e){void 0===e&&(e="white");if(!r.visible){var i=o[this.theme+"PreloaderContent"]||"";n("html").addClass("with-modal-preloader"),this.root.append('\n      <div class="preloader-backdrop"></div>\n      <div class="preloader-modal">\n        <div class="preloader color-'+e+'">'+i+"</div>\n      </div>\n    "),r.visible=!0}},hide:function(){r.visible&&(n("html").removeClass("with-modal-preloader"),this.root.find(".preloader-backdrop, .preloader-modal").remove(),r.visible=!1)}}),t={name:"preloader",create:function(){o.extend(this,{preloader:{init:r.init.bind(this),show:r.show.bind(this),hide:r.hide.bind(this)}})},on:{photoBrowserOpen:function(e){var i=this;e.$el.find(".preloader").each(function(e,n){i.preloader.init(n)})},pageInit:function(e){var i=this;e.$el.find(".preloader").each(function(e,n){i.preloader.init(n)})}},vnode:{preloader:{insert:function(e){var i=e.elm;this.preloader.init(i)}}}};if(i){if(e.prototype.modules&&e.prototype.modules[t.name])return;e.use(t),e.instance&&(e.instance.useModuleParams(t,e.instance.params),e.instance.useModule(t))}return t}(Framework7, typeof Framework7AutoInstallComponent === 'undefined' ? undefined : Framework7AutoInstallComponent))
