text: module.exports=function(e){var t={};function s(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,s),a.l=!0,a.exports}return s.m=e,s.c=t,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)s.d(n,a,function(t){return e[t]}.bind(null,a));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=18)}([function(e,t){e.exports=flarum.core.compat["components/Button"]},function(e,t){e.exports=flarum.core.compat["utils/saveSettings"]},function(e,t){e.exports=flarum.core.compat["components/Page"]},function(e,t){e.exports=flarum.core.compat["components/FieldSet"]},function(e,t){e.exports=flarum.core.compat["components/Alert"]},function(e,t){e.exports=flarum.core.compat["components/Switch"]},function(e,t){e.exports=flarum.core.compat.extend},function(e,t){e.exports=flarum.core.compat.Component},function(e,t){e.exports=flarum.core.compat["components/Modal"]},function(e,t){e.exports=flarum.core.compat["components/Dropdown"]},function(e,t){e.exports=flarum.core.compat.app},function(e,t){e.exports=flarum.core.compat["components/DashboardPage"]},function(e,t){e.exports=flarum.core.compat["components/AdminNav"]},function(e,t){e.exports=flarum.core.compat["components/AdminLinkButton"]},function(e,t){e.exports=flarum.core.compat["components/UploadImageButton"]},function(e,t){e.exports=flarum.core.compat["components/DashboardWidget"]},function(e,t){e.exports=flarum.core.compat["components/Select"]},function(e,t){e.exports=flarum.core.compat["components/SelectDropdown"]},function(e,t,s){"use strict";s.r(t);var n=s(10),a=s.n(n),o=s(6),i=s(11),r=s.n(i),l=s(12),u=s.n(l),c=s(13),h=s.n(c);function p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var d=s(2),f=s.n(d),g=s(7),v=s.n(g),w=s(3),b=s.n(w),y=s(0),x=s.n(y),S=s(1),_=s.n(S),k=s(4),N=s.n(k),T=(s(16),s(5)),B=s.n(T),E=s(14),O=s.n(E),F=s(8),A=s.n(F),I=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var s=t.prototype;return s.init=function(){e.prototype.init.call(this),this.value=void 0!==app.data.settings.seo_post_crawler&&app.data.settings.seo_post_crawler,this.startValue=this.value,this.closeText="Close",this.loading=!1,void 0===app.data.settings.seo_reviewed_post_crawler&&this.saveReviewedPostCrawler()},s.title=function(){return"Post crawl settings"},s.content=function(){var e=this;return m("div",null,m("div",{className:"Modal-body"},m("div",{className:"Form"},m("b",null,"Read this dialog carefully.")," This function will only be executed on a page refresh on a discussion. You can always change this option later.",m("div",{style:"padding: 10px 0;"},m("b",{style:"display: block; padding-bottom: 10px;"},m("span",{style:"display: inline-block; width: 25px;"},m("i",{className:"fas fa-check"})),"Only index the main post (default)"),"Search engine will only show the main post in the search results. It won't affect loading speed when you navigate to it via forum links."),m("div",{style:"padding: 10px 0;"},m("b",{style:"display: block; padding-bottom: 10px;"},m("span",{style:"display: inline-block; width: 25px;"},m("i",{className:"fas fa-check-double"}))," Index all posts in a discussion (setting enabled)"),"Search engines will understand the discussions and are even able to show some relevant posts underneath the search results. When you have the extension '",m("a",{href:"https://flagrow.io/extensions/wiwatsrt/flarum-ext-best-answer",target:"_blank"},"best answer"),"' installed and enabled on your forum, it will mark the discussion as 'answered' on the search results and redirect the user to that specific post. ",m("b",null,"However, depending on your server settings, this can be heavier"),". It may cost some performance, so it depends on how fast your server is to enable this feature."))),m("div",{style:"padding: 25px 30px; text-align: center;"},m("b",{style:"display: block; padding-bottom: 10px;"},"Do you want to enable this feature?"),m("div",{style:"display: inline-block;"},B.a.component({state:"1"==this.value,onchange:function(t){return e.change(t)},children:"Crawl all posts (it's slower on page refresh, but search results will be better)"}))),m("div",{style:"padding: 25px 30px; text-align: center;"},this.closeDialogButton()))},s.change=function(e){this.value=e,this.closeText=this.value!==this.startValue?"Save changes":"Close"},s.closeDialogButton=function(){return m(x.a,{type:"submit",className:"Button Button--primary",loading:this.loading},this.closeText)},s.onsubmit=function(e){if(this.value!==this.startValue){this.loading=!0;var t=app.data.settings;t.seo_post_crawler=this.value,_()(t).then(this.onsaved.bind(this))}else this.hide()},s.saveReviewedPostCrawler=function(){var e=this;this.loading=!0;var t=app.data.settings;t.seo_reviewed_post_crawler=!0,_()(t).then(function(){e.loading=!1,m.redraw()})},s.onsaved=function(){this.hide()},t}(A.a),L=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var s=t.prototype;return s.init=function(){e.prototype.init.call(this),this.value=void 0===app.data.settings.seo_robots_text?"":app.data.settings.seo_robots_text,this.startValue=this.value,this.closeText="Close",this.loading=!1},s.title=function(){return"Custom robots.txt"},s.content=function(){var e=this;return m("div",null,m("div",{className:"Modal-body"},m("textarea",{className:"FormControl",value:this.value,placeholder:"Add text to the robots.txt",rows:15,oninput:function(t){e.change(t.target.value)}})),m("div",{style:"padding: 25px 30px; text-align: center;"},this.closeDialogButton()))},s.change=function(e){this.value=e,this.closeText=this.value!==this.startValue?"Save changes":"Close"},s.closeDialogButton=function(){return m(x.a,{type:"submit",className:"Button Button--primary",loading:this.loading},this.closeText)},s.onsubmit=function(e){if(this.value!==this.startValue){this.loading=!0;var t=app.data.settings;t.seo_robots_text=this.value,_()(t).then(this.onsaved.bind(this))}else this.hide()},s.onsaved=function(){this.hide()},t}(A.a),D=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var s=t.prototype;return s.init=function(){var e=this;this.saving=!1,this.fields=["forum_title","forum_description","seo_allow_all_bots"],this.values={};var t=app.data.settings;this.fields.forEach(function(s){return e.values[s]=m.prop(t[s])}),this.allowBotsValue="0"!==t.seo_allow_all_bots,app.forum.data.attributes.seo_social_media_imageUrl=app.forum.attribute("baseUrl")+"/assets/"+app.data.settings.seo_social_media_image_path,this.showField="all",void 0!==m.route.param("setting")&&(this.showField=m.route.param("setting"))},s.view=function(){var e=this;return m("div",null,this.infoText(),m("form",{onsubmit:this.onsubmit.bind(this),className:"BasicsPage"},b.a.component({label:app.translator.trans("core.admin.basics.forum_description_heading"),className:"all"!==this.showField&&"description"!==this.showField?"hidden":"",children:[m("div",{className:"helpText"},app.translator.trans("core.admin.basics.forum_description_text")),m("textarea",{className:"FormControl",value:this.values.forum_description(),oninput:m.withAttr("value",this.values.forum_description)}),x.a.component({type:"submit",className:"Button Button--primary",children:app.translator.trans("core.admin.basics.submit_button"),loading:this.saving,disabled:!this.changed()})]}),b.a.component({label:"Discussion post crawl settings",className:"all"!==this.showField&&"discussion-post"!==this.showField?"hidden":"",children:[m("div",{className:"helpText"},"This is an important setting about crawling your discussion posts in search results."),x.a.component({className:"Button",children:"Setup post crawl settings",onclick:function(){return app.modal.show(new I)}})]}),b.a.component({label:"Social media image",className:"social-media-uploader "+("all"!==this.showField&&"social-media"!==this.showField?"hidden":""),children:[m("div",{className:"helpText"},"Expecting a square image. Recommended size is 1200x1200 pixels. Otherwise use a landscape image, recommended size is 1200x630.",m("br",null),m("br",null),"This image will be used by Social Media when a user shares a page on your website (Facebook, Twitter, Reddit)."),O.a.component({name:"seo_social_media_image"})]}),b.a.component({label:"Edit robots.txt",className:"all"!==this.showField&&"robots"!==this.showField?"hidden":"",children:[m("div",{className:"helpText"},"You can edit your robot.txt here. Please note, writing nonsense could result that crawlers won't visit your site.",m("br",null),m("br",null),"When you've ",m("a",{href:"https://discuss.flarum.org/d/14941-flagrow-sitemap",target:"_blank"},"Flagrow Sitemap")," installed and enabled, it will be automatically added to your robots.txt"),m("div",{style:"height: 5px;"}),B.a.component({state:this.allowBotsValue,onchange:function(t){return e.saveAllowBots(t)},children:"Allow all bots & crawl full site directory"}),m("div",{style:"height: 5px;"}),m("div",null,x.a.component({className:"Button",children:"Edit robots.txt content",loading:this.saving,onclick:function(){return app.modal.show(new L)}})," ",m("a",{href:app.forum.attribute("baseUrl")+"/robots.txt",target:"_blank",className:"robots-link"},"Open robots.txt ",m("i",{className:"fas fa-external-link-alt"})))]}),b.a.component({label:"Updated this setting?",className:"all"===this.showField?"hidden":"",children:[m("div",{className:"helpText"},"When you think you're ready, click the button below to re-check the status of this setting."),x.a.component({className:"Button",icon:"fas fa-sync",children:"Back to overview and re-check",loading:this.saving,onclick:function(){return m.route(app.route("seo"))}})]})))},s.infoText=function(){if("all"===this.showField)return m("div",null,m("p",null,"This page contains some other settings from around the admin area. However, it's good to have a good overview about these settings. Do not forget to do the SEO check."),m("p",null,"Check all your settings when you first setup this extensions. Maintain them to get the best search results."))},s.changed=function(){var e=this;return this.fields.some(function(t){return e.values[t]()!==app.data.settings[t]})},s.onsubmit=function(e){var t=this;if(e.preventDefault(),!this.saving){this.saving=!0,app.alerts.dismiss(this.successAlert);var s={};this.fields.forEach(function(e){return s[e]=t.values[e]()}),_()(s).then(function(){app.alerts.show(t.successAlert=new N.a({type:"success",children:app.translator.trans("core.admin.basics.saved_message")}))}).catch(function(){}).then(function(){t.saving=!1,m.redraw()})}},s.saveAllowBots=function(e){var t=this;if(!this.saving){this.saving=!0,this.allowBotsValue=e;var s=app.data.settings;s.seo_allow_all_bots=e,_()(s).then(function(){app.alerts.show(t.successAlert=new N.a({type:"success",children:app.translator.trans("core.admin.basics.saved_message")}))}).catch(function(){}).then(function(){t.saving=!1,m.redraw()})}},s.saveSingleSetting=function(e,t){var s=this;if(!this.saving){this.saving=!0;var n=app.data.settings;n[e]=t,_()(n).then(function(){app.alerts.show(s.successAlert=new N.a({type:"success",children:app.translator.trans("core.admin.basics.saved_message")}))}).catch(function(){}).then(function(){s.saving=!1,m.redraw()})}},t}(v.a),Y=s(9),P=s.n(Y),C=function(e){function t(){return e.apply(this,arguments)||this}return p(t,e),t.prototype.view=function(){return m("div",{className:"seo-header container"},m("div",{className:"pull-right"},P.a.component({label:"Tools",icon:"fas fa-cog",buttonClassName:"Button",menuClassName:"Dropdown-menu--right",children:[x.a.component({className:"Button",onclick:function(){return m.route(app.route("seo"))},icon:"fas fa-heartbeat",children:"Health check"}),x.a.component({className:"Button",onclick:function(){return m.route(app.route("seoSettings"))},icon:"fas fa-cogs",children:"SEO settings"}),x.a.component({className:"Button",onclick:function(){return m.route(app.route("seoSitemap"))},icon:"fas fa-sitemap",children:"Sitemap information"}),x.a.component({className:"Button",onclick:function(){return m.route(app.route("seoSearchEngines"))},icon:"fas fa-search",children:"Search engine information"}),x.a.component({className:"Button",onclick:function(){return m.route(app.route("seoSSL"))},icon:"fas fa-shield-alt",children:"Set up SSL"})]})),m("h2",null,"Search Engine Optimization"),m("div",{className:"clear"}))},t}(v.a),W=function(e){function t(){return e.apply(this,arguments)||this}return p(t,e),t.prototype.view=function(){return m("div",{className:"FlarumSEO"},C.component(),m("div",{className:"container"},D.component()))},t}(f.a),M=function(e){function t(){return e.apply(this,arguments)||this}return p(t,e),t.prototype.view=function(){return m("div",{className:"FlarumSEO"},C.component(),m("div",{className:"container"},m("h2",null,"Why should you use a sitemap?"),m("p",null,"A sitemap is a XML file with a list of all the available pages on your website. It will be used by crawlers and search engines to find pages on your website."),m("p",null,"The sitemap file is automatically generated and does not need any maintenance."),m("h4",null,"What extension should I install?"),m("p",null,"At the moment, ",m("a",{href:"https://discuss.flarum.org/d/14941-flagrow-sitemap",target:"_blank"},"Flagrow Sitemap ",m("i",{className:"fas fa-external-link-alt"}))," is the best extension to install for Flarum. We advice you to install and activate this extension."),m("p",null,"This extension will make sure crawlers will find your forum ",m("b",null,"discussions"),", ",m("b",null,"tags")," (when extension is enabled) and ",m("b",null,"Pages")," extension (when extension is installed and enabled). It will automatically make an sitemap.xml available."),m("h4",null,"I just installed the extension"),m("p",null,"In that case, activate it on the ",m("a",{href:"#"+app.route("extensions")},"Extensions page")," . Then this warning will disappear.")))},t}(f.a),U=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var s=t.prototype;return s.init=function(){this.settings=app.data.settings,this.saving=!1},s.view=function(){return m("div",{className:"FlarumSEO"},C.component(),m("div",{className:"container"},m("p",{className:"seo-intro"},"A quick SEO-health-check overview. If you have questions, ask your question the official ",m("a",{href:"https://discuss.flarum.org/d/18316-flarum-seo",target:"_blank"},"Flarum forums ",m("i",{className:"fas fa-external-link-alt"})),". When you have issues, ",m("a",{href:"https://github.com/v17development/flarum-seo/issues",target:"_blank"},"create a new issue ",m("i",{className:"fas fa-external-link-alt"})),". Are you a developer with some free time left? Contribute to the project ",m("a",{href:"https://github.com/v17development/flarum-seo",target:"_blank"},"on GitHub")," "),m("p",{className:"seo-intro"},"For optimal search engine results, make sure all checks are green."),m("table",{className:"seo-check-table"},m("thead",null,m("tr",null,m("td",null,"Technique"),m("td",{width:"150"},"Status"))),m("tbody",null,this.forumDescription(),this.siteUsesSSL(),this.discussionPostSet(),this.socialMediaImage(),this.hasSitemap(),this.registeredSearchEngines(),this.robotsTxt(),this.tagsAvailable(),this.reviewAgain()))))},s.forumDescription=function(){var e=void 0!==this.settings.forum_description&&""!==this.settings.forum_description||"must",t="You did not set up a forum description yet!";return!0===e&&this.settings.forum_description.length<=20&&(e=!1,t="Your forum description is lower then 20 characters. Please expand it for better search results."),!0===e&&this.settings.forum_description.indexOf("This is beta software")>=0&&(e="must",t="You did not change the default forum description after installation!"),m("tr",null,m("td",null,"Your forum has a description",this.notPassedError(e,t,"Update description",this.getSettingUrl("description"))),this.passed(e,"description"))},s.siteUsesSSL=function(){var e=app.forum.attribute("baseUrl").indexOf("https://")>=0||"must";return m("tr",null,m("td",null,"Your site has a secure connection available (SSL/TLS)",this.notPassedError(e,"Your forum does not force a SSL/TLS connection (a secure connection to your website). Most search engines won't index your website or lower your ranking if you have no secure connection available.","How to set up SSL",app.route("seoSSL"))),this.passed(e))},s.discussionPostSet=function(){var e=void 0!==this.settings.seo_reviewed_post_crawler;return m("tr",null,m("td",null,"Review discussion post crawl settings",this.notPassedError(e,"You will need to review this setting to pass.","Review post settings",this.getSettingUrl("discussion-post"))),this.passed(e))},s.socialMediaImage=function(){var e=!0;return void 0!==this.settings.seo_social_media_image_path&&null!==this.settings.seo_social_media_image_path||(e=!1),m("tr",null,m("td",null,"Set Up a social media image",this.notPassedError(e,"You did not set a social media image for your forum. It is recommended to set one. Your favicon will now be used as preview on social media.","Update image",this.getSettingUrl("social-media"))),this.passed(e))},s.hasSitemap=function(){var e=!0;return-1===app.data.settings.extensions_enabled.indexOf("flagrow-sitemap")&&(e=!1),m("tr",null,m("td",null,"Your forum has a sitemap available",this.notPassedError(e,"It is highly recommended to install the Flagrow sitemap extension!","Read more about adding a sitemap",app.route("seoSitemap"))),this.passed(e))},s.robotsTxt=function(){return m("tr",null,m("td",null,"Your forum has a ",m("b",null,"robots.txt")," available. ",m("a",{href:app.forum.attribute("baseUrl")+"/robots.txt",target:"_blank",className:"robots-link"},"Open robots.txt ",m("i",{className:"fas fa-external-link-alt"}))),this.passed(!0))},s.tagsAvailable=function(){return m("tr",null,m("td",null,"Your forum has ",m("b",null,"meta tags")," available (generated by this plugin)"),this.passed(!0))},s.registeredSearchEngines=function(){var e=void 0!==this.settings.seo_reviewed_search_engines;return m("tr",null,m("td",null,"Register your forum to search engines",this.notPassedError(e,"You will need to review this to pass.","More information",app.route("seoSearchEngines"))),this.passed(e))},s.reviewAgain=function(){var e=this,t=!0,s=new Date;return void 0===app.data.settings.seo_review_settings?t=!1:s=new Date(1e3*app.data.settings.seo_review_settings),t&&Math.floor(Date.now()/1e3)>app.data.settings.seo_review_settings&&(t=!1),m("tr",null,m("td",null,"Review your SEO settings every two months. Next review needed on ",m("b",null,s.toDateString()),this.notPassedError(t,"It is time to re-review your SEO settings.","Ok! I reviewed them!",function(){var t=new Date,s=Math.floor(new Date(t.getFullYear(),t.getMonth()+2,1)/1e3);e.saveSingleSetting("seo_review_settings",s)})),this.passed(t))},s.getSettingUrl=function(e){return void 0===e&&(e=""),""===e?app.route("seoSettings"):app.route("seoSingleSetting",{setting:e})},s.passed=function(e){return"must"===e?m("td",{className:"row-must"},m("i",{class:"fas fa-exclamation-circle"})," Warning!"):e?m("td",{className:"row-passed"},m("i",{class:"fas fa-check"})," All set!"):m("td",{className:"row-warning"},m("i",{class:"fas fa-exclamation-circle"})," Warning!")},s.notPassedError=function(e,t,s,n){if(void 0===s&&(s="Update setting"),void 0===n&&(n=app.route("seoSettings")),!0!==e)return m("div",{className:"row-not-passed-error"},t,m("div",{className:"button-container"},x.a.component({className:"Button",onclick:function(){"string"==typeof n?m.route(n):n()},children:s})))},s.saveSingleSetting=function(e,t){var s=this;if(!this.saving){this.saving=!0;var n=app.data.settings;n[e]=t,_()(n).then(function(){app.alerts.show(s.successAlert=new N.a({type:"success",children:app.translator.trans("core.admin.basics.saved_message")}))}).catch(function(){}).then(function(){s.saving=!1,m.redraw()})}},t}(f.a),R=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var s=t.prototype;return s.init=function(){this.saving=!1,this.hasConfirmed="1"===app.data.settings.seo_reviewed_search_engines},s.view=function(){var e=this;return m("div",{className:"FlarumSEO"},C.component(),m("div",{className:"container"},m("h2",null,"Submit your website to Search Engines"),m("p",null,"It is good practice to let Search Engines know your site is exists. This page will guide you in doing this succesfully."),m("p",null,"It is recommended to have a sitemap ready before completing this guide. If you don't have a sitemap yet, ",m("a",{href:"#/seo/sitemap"},"click here to read more about them"),"."),m("div",null,m("h4",null,"Add your website to the Google search results"),m("p",null,"If you want to add your website to the Google search results, visit the ",m("a",{href:"https://search.google.com/search-console",target:"_blank"},"Google Search Console ",m("i",{className:"fas fa-external-link-alt"})),". You'll need to add your website and verify that you're the owner of the associated domain name."),m("p",null,"When you enter your domain you need to answer the following question for yourself: Do you want to use the 'www' sub-domain in the search results? You can ",m("strong",null,"not")," change this later. Registering your domain in the Google Search Console multiple times won't result in a better ranking."),m("p",null,"When you completed the registration in the Google Search Console, visit the ",m("b",null,"Sitemaps")," page. Pass your ",m("b",null,"sitemap.xml")," to Google. Make sure that Google can crawl your sitemap and will keep doing this.")),m("div",null,m("h4",null,"Add your website to the Bing search results"),m("p",null,"If you want to add your website to the Bing search results, visit the ",m("a",{href:"https://www.bing.com/toolbox/webmaster",target:"_blank"},"Bing Webmaster Tools ",m("i",{className:"fas fa-external-link-alt"}))," and complete the given steps. Not all fields are required."),m("p",null,"Don't forget to configure your sitemap URL. After you verified your website you're all set and Bing will now index your website.")),m("div",null,m("h4",null,"Add your website to the Yandex search results"),m("p",null,"If you want to add your website to the Yandex search results, visit the ",m("a",{href:"https://webmaster.yandex.com",target:"_blank"},"Yandex.Webmaster ",m("i",{className:"fas fa-external-link-alt"}))," and follow the given steps."),m("p",null,"Don't forget to configure the sitemap in the Yandex.Webmaster.")),m("div",null,m("h4",null,"Add your website to the Yahoo search results"),m("p",null,"If you want to add your website to the Yahoo search results, finish your Bing search results registration. Yahoo will use that data.")),m("div",{className:"clear"}),x.a.component({className:"Button pull-right "+(this.hasConfirmed?"hidden":""),onclick:function(){return e.confirm()},icon:"fas fa-check",loading:this.saving,children:"I have read this"})))},s.confirm=function(){this.saveSingleSetting("seo_reviewed_search_engines",!0)},s.saveSingleSetting=function(e,t){var s=this;if(!this.saving){this.saving=!0;var n=app.data.settings;n[e]=t,_()(n).then(function(){s.hasConfirmed=!0,app.alerts.show(s.successAlert=new N.a({type:"success",children:app.translator.trans("core.admin.basics.saved_message")}))}).catch(function(){}).then(function(){s.saving=!1,m.redraw()})}},t}(f.a),j=function(e){function t(){return e.apply(this,arguments)||this}return p(t,e),t.prototype.view=function(){return m("div",{className:"FlarumSEO"},C.component(),m("div",{className:"container"},m("h2",null,"Why do I need an secure connection?"),m("p",null,"Safety and privacy awareness on the web is on the rise. ",m("b",null,"Almost every")," developer/website owner want their website safe to use for their visitors so they won't need to be afraid that their data will be compromised by hackers or website-impersonators."),m("h4",null,"Search engines ",m("i",{className:"fas fa-heart"})," secure connections"),m("p",null,"When you do not have a secure connection to your website, search engines will rank your site much lower then other sites, or even won't index it."),m("p",null,"When you have SSL available, your website will get an higher rank and will be indexed."),m("h4",null,"What is SSL or TLS?"),m("p",null,"The most people know ",m("b",null,"https")," that's used for secure connections as SSL: ",m("i",null,"Secure Sockets Layer"),". Officially it's called TLS: ",m("i",null,"Transport Layer Security"),". This method is used to create a secure connection to your webserver what will prevent attackers or other webservers to impersonate your website and keep your visitors safe. The SSL connection will be broken if that happens and the visitors browsers will warning the user that's it's not trusted."),m("h4",null,"How to add SSL to your website?"),m("p",null,"For people who are using a webhosting, the most common way is to enter the webhosting panel, go to the hosting-settings of your website and click SSL. You can follow the steps to add SSL to your website. The most webhosting companies nowadays are supporting the popular certificate issuer ",m("a",{href:"https://letsencrypt.org/",target:"_blank"}," Let's Encrypt ",m("i",{className:"fas fa-external-link-alt"})),"."),m("h4",null,"Okay, I added SSL!"),m("p",null,"Great! Now, change your ",m("b",null,"config.php")," and change the ",m("b",null,"'url'")," to ",m("b",null,"https"),"!"),m("h4",null,"What if I do not want to add SSL?"),m("p",null,"In that case, you can uninstall this extension as search engines ",m("b",null,"won't index your forum")," or rank them far below other sites due safety reasons.")))},t}(f.a),G=s(15),V=s.n(G),q=(s(17),function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var s=t.prototype;return s.init=function(){this.needsReview=!1,void 0===app.data.settings.seo_review_settings&&(this.needsReview=!0),!this.needsReview&&Math.floor(Date.now()/1e3)>app.data.settings.seo_review_settings&&(this.needsReview=!0)},s.className=function(){return"SeoWidget "+(this.needsReview?"needs-review":"")},s.content=function(){return m("div",null,m("i",{className:"fas fa-check seo-check-icon"})," It's time to review your SEO settings!",x.a.component({className:"",children:"Do the health-check!",icon:"far fa-thumbs-up",onclick:function(){m.route(app.route("seo"))}}))},t}(V.a));a.a.initializers.add("v17development-flarum-seo",function(){app.routes.seo={path:"/seo",component:U.component()},app.routes.seoSettings={path:"/seo/settings",component:W.component()},app.routes.seoSingleSetting={path:"/seo/setting/:setting",component:W.component()},app.routes.seoSitemap={path:"/seo/sitemap",component:M.component()},app.routes.seoSearchEngines={path:"/seo/search-engines",component:R.component()},app.routes.seoSSL={path:"/seo/ssl",component:j.component()},app.extensionSettings["v17development-seo"]=function(){return m.route(app.route("seo"))},Object(o.extend)(u.a.prototype,"items",function(e){e.add("seo",h.a.component({href:app.route("seo"),icon:"fas fa-check",children:"Search Engine Optimization",description:"Configure your forum's SEO settings."}))}),Object(o.extend)(r.a.prototype,"availableWidgets",function(e){e.unshift(m(q,null))})})}]);
  //# sourceMappingURL=admin.js.map