module.exports=function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=23)}([function(t,e){t.exports=flarum.core.compat.Model},function(t,e,n){"use strict";function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",function(){return o})},,function(t,e){t.exports=flarum.core.compat.Component},function(t,e){t.exports=flarum.core.compat["utils/string"]},function(t,e){t.exports=flarum.core.compat["components/Page"]},function(t,e){t.exports=flarum.core.compat["components/LoadingIndicator"]},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var o=n(1),r=n(0),a=n.n(r),i=n(8),u=n.n(i),p=n(9),c=n.n(p),s=n(4),l=function(t){function e(){return t.apply(this,arguments)||this}return Object(o.a)(e,t),e}(u()(a.a,{title:a.a.attribute("title"),time:a.a.attribute("time",a.a.transformDate),editTime:a.a.attribute("editTime",a.a.transformDate),content:a.a.attribute("content"),contentHtml:a.a.attribute("contentHtml"),contentPlain:c()("contentHtml",s.getPlainContent),slug:a.a.attribute("slug"),isHidden:a.a.attribute("isHidden"),isHtml:a.a.attribute("isHtml")}))},function(t,e){t.exports=flarum.core.compat["utils/mixin"]},function(t,e){t.exports=flarum.core.compat["utils/computed"]},,function(t,e){t.exports=flarum.core.compat["components/IndexPage"]},function(t,e){t.exports=flarum.core.compat["helpers/icon"]},function(t,e){t.exports=flarum.core.compat["utils/ItemList"]},function(t,e){t.exports=flarum.core.compat["helpers/listItems"]},,,,,,,,,function(t,e,n){"use strict";n.r(e);var o=n(1),r=n(11),a=n.n(r),i=n(12),u=n.n(i),p=n(5),c=n.n(p),s=n(6),l=n.n(s),f=n(3),d=n.n(f),h=n(13),g=n.n(h),y=n(14),b=n.n(y),v=function(t){function e(){return t.apply(this,arguments)||this}Object(o.a)(e,t);var n=e.prototype;return n.view=function(){return m("header",{className:"Hero PageHero"},m("div",{className:"container"},m("ul",{className:"PageHero-items"},b()(this.items().toArray()))))},n.items=function(){var t=new g.a,e=this.props.page;return t.add("title",m("h2",{className:"PageHero-title"},m("a",{href:app.route.page(e),config:m.route},e.title()))),t},e}(d.a),P=function(t){function e(){return t.apply(this,arguments)||this}Object(o.a)(e,t);var n=e.prototype;return n.init=function(){t.prototype.init.call(this),this.page=null,this.loadPage(),this.bodyClass="App--page"},n.view=function(){var t=this.page;return m("div",{className:"Pages"},m("div",{className:"Pages-page"},t?[this.hero(),m("div",{className:"Pages-container container"},m("div",{className:"Post-body"},this.content()))]:l.a.component({className:"LoadingIndicator--block"})))},n.show=function(t){this.page=t,app.history.push("page",t.title()),app.setTitle(t.title()),m.redraw()},n.hero=function(){return v.component({page:this.page})},n.content=function(){return m.trust(this.page.contentHtml())},n.id=function(){return m.route.param("id").split("-")[0]},n.loadPage=function(){var t=this.id(),e=app.preloadedApiDocument(),n=!Array.isArray(e)&&e||app.store.getById("pages",t);n?this.show(n):app.store.find("pages",t).then(this.show.bind(this))},e}(c.a),x=function(t){function e(){return t.apply(this,arguments)||this}Object(o.a)(e,t);var n=e.prototype;return n.init=function(){t.prototype.init.call(this),app.history.push("homePage",u()("fas fa-home")),app.drawer.hide(),app.modal.close()},n.show=function(t){this.page=t,app.setTitle(""),m.redraw()},n.hero=function(){return a.a.prototype.hero()},n.id=function(){return app.data["fof-pages.home"]},e}(P),j=n(7);app.initializers.add("fof-pages",function(t){t.routes.homePage={path:"/pages/home",component:x.component()},t.routes.page={path:"/p/:id",component:P.component()},t.store.models.pages=j.a,t.route.page=function(e){return t.route("page",{id:e.id()+"-"+e.slug()})}})}]);
//# sourceMappingURL=forum.js.map