(function framework7ComponentLoader(e,o){void 0===o&&(o=!0);var r=e.$,n=(e.Template7,e.utils),t=(e.getDevice,e.getSupport,e.Class,e.Modal,e.ConstructorMethods,e.ModalMethods,n.bindMethods),a=n.iosPreloaderContent,d=n.mdPreloaderContent,i=n.auroraPreloaderContent,l={init:function(e){var o={iosPreloaderContent:a,mdPreloaderContent:d,auroraPreloaderContent:i},n=r(e);0===n.length||n.children(".preloader-inner").length>0||n.children(".preloader-inner-line").length>0||n.append(o[this.theme+"PreloaderContent"])},visible:!1,show:function(e){void 0===e&&(e="white");if(!l.visible){var o={iosPreloaderContent:a,mdPreloaderContent:d,auroraPreloaderContent:i}[this.theme+"PreloaderContent"]||"";r("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+'">'+o+"</div>\n      </div>\n    "),l.visible=!0}},showIn:function(e,o){void 0===o&&(o="white");var n={iosPreloaderContent:a,mdPreloaderContent:d,auroraPreloaderContent:i}[this.theme+"PreloaderContent"]||"";r(e||"html").addClass("with-modal-preloader"),r(e||this.root).append('\n      <div class="preloader-backdrop"></div>\n      <div class="preloader-modal">\n        <div class="preloader color-'+o+'">'+n+"</div>\n      </div>\n    ")},hide:function(){l.visible&&(r("html").removeClass("with-modal-preloader"),this.root.find(".preloader-backdrop, .preloader-modal").remove(),l.visible=!1)},hideIn:function(e){r(e||"html").removeClass("with-modal-preloader"),r(e||this.root).find(".preloader-backdrop, .preloader-modal").remove()}},s={name:"preloader",create:function(){t(this,{preloader:l})},on:{photoBrowserOpen:function(e){var o=this;e.$el.find(".preloader").each((function(e){o.preloader.init(e)}))},tabMounted:function(e){var o=this;r(e).find(".preloader").each((function(e){o.preloader.init(e)}))},pageInit:function(e){var o=this;e.$el.find(".preloader").each((function(e){o.preloader.init(e)}))}},vnode:{preloader:{insert:function(e){var o=e.elm;this.preloader.init(o)}}}};if(o){if(e.prototype.modules&&e.prototype.modules[s.name])return;e.use(s),e.instance&&(e.instance.useModuleParams(s,e.instance.params),e.instance.useModule(s))}return s}(Framework7, typeof Framework7AutoInstallComponent === 'undefined' ? undefined : Framework7AutoInstallComponent))
