(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||0<i.children(".preloader-inner").length||0<i.children(".preloader-inner-line").length||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(){var e=this;o.extend(e,{preloader:{init:r.init.bind(e),show:r.show.bind(e),hide:r.hide.bind(e)}})},on:{photoBrowserOpen:function(e){var n=this;e.$el.find(".preloader").each(function(e,i){n.preloader.init(i)})},pageInit:function(e){var n=this;e.$el.find(".preloader").each(function(e,i){n.preloader.init(i)})}},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))
