logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma

chunk-6292.0e668979.js (231394B)


      1 (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6292"],{"+qaP":function(e,t,a){"use strict";var s=a("60OA");a.n(s).a},"2q6O":function(e,t,a){"use strict";var s=a("Scsy");a.n(s).a},"4NUT":function(e,t,a){},"4b9x":function(e,t,a){"use strict";var s=a("wgcy");a.n(s).a},"60OA":function(e,t,a){},"9p49":function(e,t,a){},DPt0:function(e,t,a){"use strict";var s=a("x6RV");a.n(s).a},Dd5M:function(e,t,a){},FCne:function(e,t,a){"use strict";var s=a("OCuP");a.n(s).a},KFE3:function(e,t,a){"use strict";var s=a("mSK5");a.n(s).a},NyLv:function(e,t,a){"use strict";var s=a("Rh6R");a.n(s).a},OCuP:function(e,t,a){},PYLh:function(e,t,a){},Px65:function(e,t,a){},PygS:function(e,t,a){"use strict";var s=a("TtMh");a.n(s).a},RTtG:function(e,t,a){"use strict";var s=a("Zgs2");a.n(s).a},Rh6R:function(e,t,a){},Scsy:function(e,t,a){},TOIk:function(e,t,a){},TRR9:function(e,t,a){},TtMh:function(e,t,a){},TudB:function(e,t,a){},"UbP/":function(e,t,a){},UdS4:function(e,t,a){"use strict";var s=a("WwJU");a.n(s).a},V9mB:function(e,t,a){"use strict";var s=a("Dd5M");a.n(s).a},"WvM+":function(e,t,a){"use strict";var s=a("TRR9");a.n(s).a},WwJU:function(e,t,a){},YcIK:function(e,t,a){"use strict";a.r(t);var s=a("o0o1"),n=a.n(s),i=a("yXPU"),l=a.n(i),r=a("lSNA"),o=a.n(r),u=a("MVZn"),c=a.n(u),p=a("L2JU"),m=a("mSNy"),d={name:"ActivityPub",computed:c()({},Object(p.b)(["activityPub","user"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},v=(a("qEST"),a("KHd+")),f=Object(v.a)(d,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"activityPub",attrs:{model:e.activityPub,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Unfollow blocked"}},[a("el-switch",{attrs:{value:e.activityPub.unfollow_blocked},on:{change:function(t){return e.updateSetting(t,"activitypub","unfollow_blocked")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Whether blocks result in people getting unfollowed")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Outgoing blocks"}},[a("el-switch",{attrs:{value:e.activityPub.outgoing_blocks},on:{change:function(t){return e.updateSetting(t,"activitypub","outgoing_blocks")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Whether to federate blocks to other instances")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Follow handshake timeout"}},[a("el-input-number",{staticClass:"top-margin",attrs:{value:e.activityPub.follow_handshake_timeout,step:100,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"activitypub","follow_handshake_timeout")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Sign object fetches"}},[a("el-switch",{attrs:{value:e.activityPub.sign_object_fetches},on:{change:function(t){return e.updateSetting(t,"activitypub","sign_object_fetches")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Sign object fetches with HTTP signatures")])],1)],1),e._v(" "),a("el-form",{ref:"user",attrs:{model:e.user,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Deny follow blocked"}},[a("el-switch",{attrs:{value:e.user.deny_follow_blocked},on:{change:function(t){return e.updateSetting(t,"user","deny_follow_blocked")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Whether to disallow following an account that has blocked the user in question")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null);f.options.__file="ActivityPub.vue";var _=f.exports,h={name:"Authentication",computed:c()({},Object(p.b)(["pleromaAuthenticator","ldap","auth","ueberauth","oauth2","facebook","google","twitter","microsoft"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},b=(a("4b9x"),Object(v.a)(h,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"pleromaAuthenticator",attrs:{model:e.pleromaAuthenticator,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Authentication type"}},[a("el-select",{attrs:{value:e.pleromaAuthenticator.value,clearable:""},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Auth.Authenticator","value")}}},[a("el-option",{attrs:{label:"None",value:""}}),e._v(" "),a("el-option",{attrs:{label:"Pleroma.Web.Auth.PleromaAuthenticator // Default database authenticator",value:"Pleroma.Web.Auth.PleromaAuthenticator"}}),e._v(" "),a("el-option",{attrs:{label:"Pleroma.Web.Auth.LDAPAuthenticator // LDAP authenticator",value:"Pleroma.Web.Auth.LDAPAuthenticator"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"auth",attrs:{model:e.auth,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Authentication settings:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Auth template"}},[a("el-input",{attrs:{value:e.auth.auth_template},on:{input:function(t){return e.updateSetting(t,"auth","auth_template")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Authentication form template. By default it's\n        "),a("span",{staticClass:"code"},[e._v("show.html")]),e._v(" which corresponds to\n        "),a("span",{staticClass:"code"},[e._v("lib/pleroma/web/templates/o_auth/o_auth/show.html.eex.")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"OAuth consumer template"}},[a("el-input",{attrs:{value:e.auth.oauth_consumer_template},on:{input:function(t){return e.updateSetting(t,"auth","oauth_consumer_template")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("OAuth consumer mode authentication form template. By default it's\n        "),a("span",{staticClass:"code"},[e._v("consumer.html")]),e._v(" which corresponds to\n        "),a("span",{staticClass:"code"},[e._v("lib/pleroma/web/templates/o_auth/o_auth/consumer.html.eex.")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"OAuth consumer strategies"}},[a("el-select",{attrs:{value:e.auth.oauth_consumer_strategies||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"auth","oauth_consumer_strategies")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The list of enabled OAuth consumer strategies; by default it's set by\n        "),a("span",{staticClass:"code"},[e._v("OAUTH_CONSUMER_STRATEGIES")]),e._v("\n        environment variable. You can enter values in the following format: "),a("span",{staticClass:"code"},[e._v("'a:foo b:baz'")])])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"ldap",attrs:{model:e.ldap,"label-width":e.labelWidth}},[a("el-form-item",{staticClass:"options-paragraph-container"},[a("p",{staticClass:"options-paragraph"},[e._v("Use LDAP for user authentication.  When a user logs in to the Pleroma\n      instance, the name and password will be verified by trying to authenticate\n      (bind) to an LDAP server.  If a user exists in the LDAP directory but there\n      is no account with the same name yet on the Pleroma instance then a new\n      Pleroma account will be created with the same name as the LDAP user name.")])]),e._v(" "),a("el-form-item",{attrs:{label:"LDAP Authenticator:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Enabled"}},[a("el-switch",{attrs:{value:e.ldap.enabled},on:{change:function(t){return e.updateSetting(t,"ldap","enabled")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Enables LDAP authentication")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Host"}},[a("el-input",{attrs:{value:e.ldap.host},on:{input:function(t){return e.updateSetting(t,"ldap","host")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("LDAP server hostname")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Port"}},[a("el-input",{attrs:{value:e.ldap.port},on:{input:function(t){return e.updateSetting(t,"ldap","port")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("LDAP port, e.g. 389 or 636")])],1),e._v(" "),a("el-form-item",{attrs:{label:"SSL"}},[a("el-switch",{attrs:{value:e.ldap.ssl},on:{change:function(t){return e.updateSetting(t,"ldap","ssl")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("True to use SSL, usually implies the port 636")])],1),e._v(" "),a("el-form-item",{attrs:{label:"TLS"}},[a("el-switch",{attrs:{value:e.ldap.tls},on:{change:function(t){return e.updateSetting(t,"ldap","tls")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("True to start TLS, usually implies the port 389")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Base"}},[a("el-input",{attrs:{value:e.ldap.base},on:{input:function(t){return e.updateSetting(t,"ldap","base")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("LDAP base, e.g. "),a("span",{staticClass:"code"},[e._v("'dc=example,dc=com'")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"UID"}},[a("el-input",{attrs:{value:e.ldap.uid},on:{input:function(t){return e.updateSetting(t,"ldap","uid")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("LDAP attribute name to authenticate the user, e.g. when\n        "),a("span",{staticClass:"code"},[e._v("'cn'")]),e._v(", the filter will be "),a("span",{staticClass:"code"},[e._v("'cn=username,base'")])])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"ueberauth",attrs:{model:e.ueberauth,"label-width":e.labelWidth}},[a("el-form-item",{staticClass:"options-paragraph-container",attrs:{label:"OAuth consumer mode"}},[a("p",{staticClass:"options-paragraph"},[e._v("\n        OAuth consumer mode allows sign in / sign up via external OAuth providers\n        (e.g. Twitter, Facebook, Google, Microsoft, etc.). Implementation is based on Ueberauth; see the list of\n        "),a("a",{attrs:{href:"https://github.com/ueberauth/ueberauth/wiki/List-of-Strategies",rel:"nofollow noreferrer noopener",target:"_blank"}},[e._v("\n          available strategies.\n        ")])]),e._v(" "),a("p",{staticClass:"options-paragraph"},[e._v("\n        Note: each strategy is shipped as a separate dependency; in order to get the strategies, run\n        "),a("span",{staticClass:"code"},[e._v('OAUTH_CONSUMER_STRATEGIES="..." mix deps.get')]),e._v(",\n        e.g. "),a("span",{staticClass:"code"},[e._v('OAUTH_CONSUMER_STRATEGIES="twitter facebook google microsoft" mix deps.get')]),e._v(".\n        The server should also be started with "),a("span",{staticClass:"code"},[e._v('OAUTH_CONSUMER_STRATEGIES="..." mix phx.server')]),e._v("\n        in case you enable any strategies.\n      ")]),e._v(" "),a("p",{staticClass:"options-paragraph"},[e._v("\n        Note: each strategy requires separate setup (on external provider side and Pleroma side).\n        Below are the guidelines on setting up most popular strategies.\n      ")]),e._v(" "),a("p",{staticClass:"options-paragraph"},[e._v("\n        Note: make sure that "),a("span",{staticClass:"code"},[e._v("'SameSite=Lax'")]),e._v(" is set in\n        "),a("span",{staticClass:"code"},[e._v("extra_cookie_attrs")]),e._v(" when you have this feature enabled.\n        OAuth consumer mode will not work with "),a("span",{staticClass:"code"},[e._v("'SameSite=Strict'")])]),e._v(" "),a("p",{staticClass:"options-paragraph"},[e._v("For Twitter,\n        "),a("a",{attrs:{href:"https://developer.twitter.com/en/apps",rel:"nofollow noreferrer noopener",target:"_blank"}},[e._v("\n          register an app,\n        ")]),e._v("\n        configure callback URL to "),a("span",{staticClass:"code"},[e._v("https://<your_host>/oauth/twitter/callback")])]),e._v(" "),a("p",{staticClass:"options-paragraph"},[e._v("For Facebook,\n        "),a("a",{attrs:{href:"https://developers.facebook.com/apps",rel:"nofollow noreferrer noopener",target:"_blank"}},[e._v("\n          register an app,\n        ")]),e._v("\n        configure callback URL to "),a("span",{staticClass:"code"},[e._v("https://<your_host>/oauth/facebook/callback")]),e._v(",\n        enable Facebook Login service at\n        "),a("span",{staticClass:"code"},[e._v("https://developers.facebook.com/apps/<app_id>/fb-login/settings/")])]),e._v(" "),a("p",{staticClass:"options-paragraph"},[e._v("For Google,\n        "),a("a",{attrs:{href:"https://console.developers.google.com/",rel:"nofollow noreferrer noopener",target:"_blank"}},[e._v("\n          register an app,\n        ")]),e._v("\n        configure callback URL to "),a("span",{staticClass:"code"},[e._v("https://<your_host>/oauth/google/callback")])]),e._v(" "),a("p",{staticClass:"options-paragraph"},[e._v("For Microsoft,\n        "),a("a",{attrs:{href:"https://portal.azure.com",rel:"nofollow noreferrer noopener",target:"_blank"}},[e._v("\n          register an app,\n        ")]),e._v("\n        configure callback URL to "),a("span",{staticClass:"code"},[e._v("https://<your_host>/oauth/microsoft/callback")])]),e._v(" "),a("p",{staticClass:"options-paragraph"},[e._v("\n        Once the app is configured on external OAuth provider side, add app's credentials and strategy-specific settings\n        per strategy's documentation (e.g.\n        "),a("a",{attrs:{href:"https://github.com/ueberauth/ueberauth_twitter",rel:"nofollow noreferrer noopener",target:"_blank"}},[e._v("\n          ueberauth_twitter\n        ")]),e._v(").\n      ")])]),e._v(" "),a("el-form-item",{attrs:{label:"Ueberauth:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Base path"}},[a("el-input",{attrs:{value:e.ueberauth.base_path},on:{input:function(t){return e.updateSetting(t,"ueberauth","base_path")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"facebook",attrs:{model:e.facebook,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Facebook:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Client ID"}},[a("el-input",{attrs:{value:e.facebook.client_id},on:{input:function(t){return e.updateSetting(t,"Ueberauth.Strategy.Facebook.OAuth","client_id")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Client secret"}},[a("el-input",{attrs:{value:e.facebook.client_secret},on:{input:function(t){return e.updateSetting(t,"Ueberauth.Strategy.Facebook.OAuth","client_secret")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Redirect URI"}},[a("el-input",{attrs:{value:e.facebook.redirect_uri},on:{input:function(t){return e.updateSetting(t,"Ueberauth.Strategy.Facebook.OAuth","redirect_uri")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"twitter",attrs:{model:e.twitter,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Twitter:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Consumer key"}},[a("el-input",{attrs:{value:e.twitter.consumer_key},on:{input:function(t){return e.updateSetting(t,"Ueberauth.Strategy.Twitter.OAuth","consumer_key")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Consumer secret"}},[a("el-input",{attrs:{value:e.twitter.consumer_secret},on:{input:function(t){return e.updateSetting(t,"Ueberauth.Strategy.Twitter.OAuth","consumer_secret")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"google",attrs:{model:e.google,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Google:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Client ID"}},[a("el-input",{attrs:{value:e.google.client_id},on:{input:function(t){return e.updateSetting(t,"Ueberauth.Strategy.Google.OAuth","client_id")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Client secret"}},[a("el-input",{attrs:{value:e.google.client_secret},on:{input:function(t){return e.updateSetting(t,"Ueberauth.Strategy.Google.OAuth","client_secret")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Redirect URI"}},[a("el-input",{attrs:{value:e.google.redirect_uri},on:{input:function(t){return e.updateSetting(t,"Ueberauth.Strategy.Google.OAuth","redirect_uri")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"microsoft",attrs:{model:e.microsoft,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Microsoft:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Client ID"}},[a("el-input",{attrs:{value:e.microsoft.client_id},on:{input:function(t){return e.updateSetting(t,"Ueberauth.Strategy.Microsoft.OAuth","client_id")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Client secret"}},[a("el-input",{attrs:{value:e.microsoft.client_secret},on:{input:function(t){return e.updateSetting(t,"Ueberauth.Strategy.Microsoft.OAuth","client_secret")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"oauth2",attrs:{model:e.oauth2,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"OAuth 2.0 Provider:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Token expires in (s)"}},[a("el-input-number",{attrs:{value:e.oauth2.token_expires_in,step:10,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"oauth2","token_expires_in")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The lifetime in seconds of the access token")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Issue new refresh token"}},[a("el-switch",{attrs:{value:e.oauth2.issue_new_refresh_token},on:{change:function(t){return e.updateSetting(t,"oauth2","issue_new_refresh_token")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Keeps old refresh token or generate new refresh token when to obtain an access token")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Clean expired token"}},[a("el-switch",{attrs:{value:e.oauth2.clean_expired_tokens},on:{change:function(t){return e.updateSetting(t,"oauth2","clean_expired_tokens")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Enable a background job to clean expired oauth tokens. Defaults to false.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Clean expired token interval"}},[a("el-input-number",{attrs:{value:e.oauth2.clean_expired_tokens_interval/36e5,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(36e5*t,"oauth2","clean_expired_tokens_interval")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Interval to run the job to clean expired tokens. Defaults to 24 hours.")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));b.options.__file="Authentication.vue";var g=b.exports,y={name:"AutoLinker",computed:c()({},Object(p.b)(["autoLinker"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"},loading:function(){return this.$store.state.settings.loading},booleanClass:function(){return this.getBooleanValue("class")},booleanRel:function(){return this.getBooleanValue("rel")},booleanTruncate:function(){return this.getBooleanValue("truncate")}}),methods:{getBooleanValue:function(e){var t=this.autoLinker.opts[e];return"string"==typeof t||"number"==typeof t},getNumValue:function(e){return this.autoLinker.opts[e]||0},getStringValue:function(e){return this.autoLinker.opts[e]||""},processTwoTypeValue:function(e,t,a,s){if(!0===e){var n="truncate"===s?0:"";this.processNestedData(n,t,a,s)}else this.processNestedData(e,t,a,s)},processNestedData:function(e,t,a,s){var n=c()({},this.$store.state.settings.settings[t][a],o()({},s,e));this.updateSetting(n,t,a)},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},w=(a("cyzs"),Object(v.a)(y,function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.loading?e._e():a("el-form",{ref:"autoLinker",attrs:{model:e.autoLinker,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Class"}},[a("el-switch",{attrs:{value:e.booleanClass},on:{change:function(t){return e.processTwoTypeValue(t,"auto_linker","opts","class")}}}),e._v(" "),e.booleanClass?e._e():a("p",{staticClass:"expl"},[e._v("Specify the class to be added to the generated link. False to clear.")])],1),e._v(" "),e.booleanClass?a("el-form-item",[a("el-input",{attrs:{value:e.getStringValue("class")},on:{input:function(t){return e.processTwoTypeValue(t,"auto_linker","opts","class")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Specify the class to be added to the generated link. False to clear.")])],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"Rel"}},[a("el-switch",{attrs:{value:e.booleanRel},on:{change:function(t){return e.processTwoTypeValue(t,"auto_linker","opts","rel")}}}),e._v(" "),e.booleanRel?e._e():a("p",{staticClass:"expl"},[e._v("Override the rel attribute. False to clear")])],1),e._v(" "),e.booleanRel?a("el-form-item",[a("el-input",{attrs:{value:e.getStringValue("rel")},on:{input:function(t){return e.processTwoTypeValue(t,"auto_linker","opts","rel")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Override the rel attribute. False to clear")])],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"New window"}},[a("el-switch",{attrs:{value:e.autoLinker.opts.new_window},on:{change:function(t){return e.processNestedData(t,"auto_linker","opts","new_window")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Set to false to remove "),a("span",{staticClass:"code"},[e._v("target='_blank'")]),e._v(" attribute")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Scheme"}},[a("el-switch",{attrs:{value:e.autoLinker.opts.scheme},on:{change:function(t){return e.processNestedData(t,"auto_linker","opts","scheme")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Set to true to link urls with schema "),a("span",{staticClass:"code"},[e._v("http://google.com")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Truncate"}},[a("el-switch",{attrs:{value:e.booleanTruncate},on:{change:function(t){return e.processTwoTypeValue(t,"auto_linker","opts","truncate")}}}),e._v(" "),e.booleanTruncate?e._e():a("p",{staticClass:"expl"},[e._v("Set to a number to truncate urls longer then the number.\n    Truncated urls will end in "),a("span",{staticClass:"code"},[e._v("..")])])],1),e._v(" "),e.booleanTruncate?a("el-form-item",[a("el-input-number",{attrs:{value:e.getStringValue("truncate"),step:1,min:0,size:"large"},on:{change:function(t){return e.processTwoTypeValue(t,"auto_linker","opts","truncate")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Specify the class to be added to the generated link. False to clear.")])],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"Strip prefix"}},[a("el-switch",{attrs:{value:e.autoLinker.opts.strip_prefix},on:{change:function(t){return e.processNestedData(t,"auto_linker","opts","strip_prefix")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Strip the scheme prefix")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Extra"}},[a("el-switch",{attrs:{value:e.autoLinker.opts.extra},on:{change:function(t){return e.processNestedData(t,"auto_linker","opts","extra")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Link urls with rarely used schemes (magnet, ipfs, irc, etc.)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Validate TLD"}},[a("el-switch",{attrs:{value:e.autoLinker.opts.validate_tld},on:{change:function(t){return e.processNestedData(t,"auto_linker","opts","validate_tld")}}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)},[],!1,null,null,null));w.options.__file="AutoLinker.vue";var x=w.exports,C={name:"Captcha",computed:c()({},Object(p.b)(["captcha","kocaptcha"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},S=(a("2q6O"),Object(v.a)(C,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"captcha",attrs:{model:e.captcha,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Enabled"}},[a("el-switch",{attrs:{value:e.captcha.enabled},on:{change:function(t){return e.updateSetting(t,"Pleroma.Captcha","enabled")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Whether the captcha should be shown on registration")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Valid for (s)"}},[a("el-input-number",{attrs:{value:e.captcha.seconds_valid,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"Pleroma.Captcha","seconds_valid")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The time in seconds for which the captcha is valid")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Method"}},[a("el-select",{attrs:{value:e.captcha.method,clearable:""},on:{change:function(t){return e.updateSetting(t,"Pleroma.Captcha","method")}}},[a("el-option",{attrs:{label:"Pleroma.Captcha.Kocaptcha",value:"Pleroma.Captcha.Kocaptcha"}})],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("The method/service to use for captcha")])],1)],1),e._v(" "),a("el-form",{ref:"kocaptcha",attrs:{model:e.kocaptcha,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Kocaptcha Endpoint"}},[a("el-input",{attrs:{value:e.kocaptcha.endpoint},on:{input:function(t){return e.updateSetting(t,"Pleroma.Captcha.Kocaptcha","endpoint")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Kocaptcha is a captcha service with a single API endpoint, the source code is\n        "),a("a",{attrs:{href:"https://github.com/koto-bank/kocaptcha",rel:"nofollow noreferrer noopener",target:"_blank"}},[e._v("here")]),e._v(".\n        The default endpoint "),a("span",{staticClass:"code"},[e._v("'https://captcha.kotobank.ch'")]),e._v(" is hosted by the developer.\n      ")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));S.options.__file="Captcha.vue";var k=S.exports,A={name:"Instance",computed:c()({},Object(p.b)(["database","ectoRepos","pleromaRepo"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},P=(a("RTtG"),Object(v.a)(A,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"database",attrs:{model:e.database,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Database settings:"}}),e._v(" "),a("el-form-item",{attrs:{label:"RUM enabled"}},[a("el-switch",{attrs:{value:e.database.rum_enabled},on:{change:function(t){return e.updateSetting(t,"database","rum_enabled")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("RUM indexes are an alternative indexing scheme that is not included in PostgreSQL by default.\n      While they may eventually be mainlined, for now they have to be installed as a PostgreSQL extension from\n        "),a("a",{attrs:{href:"https://github.com/postgrespro/rum",rel:"nofollow noreferrer noopener",target:"_blank"}},[e._v("\n          https://github.com/postgrespro/rum.\n        ")])]),e._v(" "),a("p",{staticClass:"expl"},[e._v("Their advantage over the standard GIN indexes is that they allow efficient ordering of search results by timestamp,\n      which makes search queries a lot faster on larger servers, by one or two orders of magnitude.\n      They take up around 3 times as much space as GIN indexes.")]),e._v(" "),a("p",{staticClass:"expl"},[e._v("To enable them, both the "),a("span",{staticClass:"code"},[e._v("rum_enabled")]),e._v(" flag has to be set and the following special\n      migration has to be run: "),a("span",{staticClass:"code"},[e._v("mix ecto.migrate --migrations-path priv/repo/optional_migrations/rum_indexing/")])])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"ectoRepos",attrs:{model:e.ectoRepos,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Ecto repos"}},[a("el-select",{attrs:{value:e.ectoRepos.value||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"ecto_repos","value")}}},[a("el-option",{attrs:{label:"Pleroma.Repo",value:"Pleroma.Repo"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"pleromaRepo",attrs:{model:e.pleromaRepo,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Pleroma Repo configuration:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Name"}},[a("el-input",{attrs:{value:e.pleromaRepo.name},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","name")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The name of the Repo supervisor process")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Priv"}},[a("el-input",{attrs:{value:e.pleromaRepo.priv},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","priv")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The directory where to keep repository data, like migrations, schema and more. Defaults to "),a("span",{staticClass:"code"},[e._v("\n        priv/YOUR_REPO")]),e._v(". It must always point to a subdirectory inside the priv directory")])],1),e._v(" "),a("el-form-item",{attrs:{label:"URL"}},[a("el-input",{attrs:{value:e.pleromaRepo.url},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","url")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("An URL that specifies storage information")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Log level"}},[a("el-select",{attrs:{value:e.pleromaRepo.log,clearable:""},on:{change:function(t){return e.updateSetting(t,"Pleroma.Repo","log")}}},[a("el-option",{attrs:{value:!1,label:"False - disables logging for that repository."}}),e._v(" "),a("el-option",{attrs:{value:":debug",label:":debug - for debug-related messages"}}),e._v(" "),a("el-option",{attrs:{value:":info",label:":info - for information of any kind"}}),e._v(" "),a("el-option",{attrs:{value:":warn",label:":warn - for warnings"}}),e._v(" "),a("el-option",{attrs:{value:":error",label:":error - for errors"}})],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("The log level used when logging the query with Elixir's Logger")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Pool size"}},[a("el-input-number",{attrs:{value:e.pleromaRepo.pool_size,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"Pleroma.Repo","pool_size")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The size of the pool used by the connection module. Defaults to "),a("span",{staticClass:"code"},[e._v("10")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Telemetry prefix"}},[a("el-select",{attrs:{value:e.pleromaRepo.telemetry_prefix||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"Pleroma.Repo","telemetry_prefix")}}},[a("el-option",{attrs:{label:":my_app",value:":my_app"}}),e._v(" "),a("el-option",{attrs:{label:":repo",value:":repo"}}),e._v(" "),a("el-option",{attrs:{label:":query",value:":query"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"Types"}},[a("el-input",{attrs:{value:e.pleromaRepo.types},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","types")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Telemetry event"}},[a("el-select",{attrs:{value:e.pleromaRepo.telemetry_event||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"Pleroma.Repo","telemetry_event")}}},[a("el-option",{attrs:{label:"Pleroma.Repo.Instrumenter",value:"Pleroma.Repo.Instrumenter"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"Connection options:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Hostname"}},[a("el-input",{attrs:{value:e.pleromaRepo.hostname},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","hostname")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Server hostname")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Socket dir"}},[a("el-input",{attrs:{value:e.pleromaRepo.socket_dir},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","socket_dir")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Connect to Postgres via UNIX sockets in the given directory. The socket name is derived based on the port.\n      This is the preferred method for configuring sockets and it takes precedence over the hostname.\n      If you are connecting to a socket outside of the Postgres convention, use "),a("span",{staticClass:"code"},[e._v(":socket")]),e._v(" instead.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Socket"}},[a("el-input",{attrs:{value:e.pleromaRepo.socket},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","socket")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Connect to Postgres via UNIX sockets in the given path. This option takes precedence over the\n      "),a("span",{staticClass:"code"},[e._v(":hostname")]),e._v(" and "),a("span",{staticClass:"code"},[e._v(":socket_dir")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Username"}},[a("el-input",{attrs:{value:e.pleromaRepo.username},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","username")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Password"}},[a("el-input",{attrs:{value:e.pleromaRepo.password},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","password")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Port"}},[a("el-input",{attrs:{value:e.pleromaRepo.port},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","port")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Server port (default: 5432)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Database"}},[a("el-input",{attrs:{value:e.pleromaRepo.database},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","database")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The database to connect to")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Maintenance database"}},[a("el-input",{attrs:{value:e.pleromaRepo.maintenance_database},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","maintenance_database")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v('Specifies the name of the database to connect to when creating or dropping the database. Defaults to "postgres"')])],1),e._v(" "),a("el-form-item",{attrs:{label:"Pool"}},[a("el-input",{attrs:{value:e.pleromaRepo.pool},on:{input:function(t){return e.updateSetting(t,"Pleroma.Repo","pool")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The connection pool module, defaults to "),a("span",{staticClass:"code"},[e._v("DBConnection.ConnectionPool")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"SSL"}},[a("el-switch",{attrs:{value:e.pleromaRepo.ssl},on:{change:function(t){return e.updateSetting(t,"Pleroma.Repo","ssl")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Set to true if ssl should be used")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Connect timeout"}},[a("el-input-number",{attrs:{value:e.pleromaRepo.connect_timeout,step:1e3,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"Pleroma.Repo","connect_timeout")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The timeout for establishing new connections. Defaults to 5000")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Prepare"}},[a("el-select",{attrs:{value:e.pleromaRepo.prepare,clearable:""},on:{change:function(t){return e.updateSetting(t,"Pleroma.Repo","prepare")}}},[a("el-option",{attrs:{label:"named",value:":named"}}),e._v(" "),a("el-option",{attrs:{label:"unnamed",value:":unnamed"}})],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("How to prepare queries, either "),a("span",{staticClass:"code"},[e._v(":named")]),e._v(" to use named queries or\n      "),a("span",{staticClass:"code"},[e._v(":unnamed")]),e._v(" to force unnamed queries (default: :named)")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));P.options.__file="Database.vue";var U=P.exports,L={federationPublisherModulesOptions:[{label:"Pleroma.Web.ActivityPub.Publisher",value:"Pleroma.Web.ActivityPub.Publisher"},{label:"Pleroma.Web.Websub",value:"Pleroma.Web.Websub"},{label:"Pleroma.Web.Salmon",value:"Pleroma.Web.Salmon"}],rewritePolicyOptions:[{label:"NoOpPolicy",value:"Pleroma.Web.ActivityPub.MRF.NoOpPolicy",expl:"NoOpPolicy: Doesn’t modify activities (default)"},{label:"DropPolicy",value:"Pleroma.Web.ActivityPub.MRF.DropPolicy",expl:"DropPolicy: Drops all activities. It generally doesn’t makes sense to use in production"},{label:"SimplePolicy",value:"Pleroma.Web.ActivityPub.MRF.SimplePolicy",expl:"SimplePolicy: Restrict the visibility of activities from certains instances (See :mrf_simple section)"},{label:"TagPolicy",value:"Pleroma.Web.ActivityPub.MRF.TagPolicy",expl:"Applies policies to individual users based on tags, which can be set using pleroma-fe/admin-fe/any other app that supports Pleroma Admin API. For example it allows marking posts from individual users nsfw (sensitive)"},{label:"SubchainPolicy",value:"Pleroma.Web.ActivityPub.MRF.SubchainPolicy",expl:"Selectively runs other MRF policies when messages match (see :mrf_subchain section)"},{label:"RejectNonPublic",value:"Pleroma.Web.ActivityPub.MRF.RejectNonPublic",expl:"RejectNonPublic: Drops posts with non-public visibility settings (See :mrf_rejectnonpublic section)"},{label:"EnsureRePrepended",value:"Pleroma.Web.ActivityPub.MRF.EnsureRePrepended",expl:"EnsureRePrepended: Rewrites posts to ensure that replies to posts with subjects do not have an identical subject and instead begin with re:"},{label:"AntiLinkSpamPolicy",value:"Pleroma.Web.ActivityPub.MRF.AntiLinkSpamPolicy",expl:"Rejects posts from likely spambots by rejecting posts from new users that contain links"},{label:"MediaProxyWarmingPolicy",value:"Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy",expl:"Crawls attachments using their MediaProxy URLs so that the MediaProxy cache is primed"},{label:"MentionPolicy",value:"Pleroma.Web.ActivityPub.MRF.MentionPolicy",expl:"Drops posts mentioning configurable users. (see :mrf_mention section)"},{label:"VocabularyPolicy",value:"Pleroma.Web.ActivityPub.MRF.VocabularyPolicy",expl:"Restricts activities to a configured set of vocabulary"}],quarantinedInstancesOptions:[],autofollowedNicknamesOptions:[],uriSchemesOptions:[{label:"https",value:"https"},{label:"http",value:"http"},{label:"dat",value:"dat"},{label:"dweb",value:"dweb"},{label:"gopher",value:"gopher"},{label:"ipfs",value:"ipfs"},{label:"ipns",value:"ipns"},{label:"irc",value:"irc"},{label:"ircs",value:"ircs"},{label:"magnet",value:"magnet"},{label:"mailto",value:"mailto"},{label:"mumble",value:"mumble"},{label:"ssb",value:"ssb"},{label:"xmpp",value:"xmpp"}],themeOptions:[{label:"pleroma-dark",value:"pleroma-dark"},{label:"pleroma-light",value:"pleroma-light"},{label:"classic-dark",value:"classic-dark"},{label:"bird",value:"bird"},{label:"ir-black",value:"ir-black"},{label:"monokai",value:"monokai"},{label:"mammal",value:"mammal"},{label:"redmond-xx",value:"redmond-xx"},{label:"redmond-xx-se",value:"redmond-xx-se"},{label:"redmond-xxi",value:"redmond-xxi"},{label:"breezy-dark",value:"breezy-dark"},{label:"breezy-light",value:"breezy-light"}],instrumentersOptions:[{label:"Pleroma.Web.Endpoint.Instrumenter",value:"Pleroma.Web.Endpoint.Instrumenter"}],extraCookieAttrsOptions:[{label:"SameSite=Lax",value:"SameSite=Lax"}],hackneyPoolsOptions:[{label:"Federation",value:":federation",max_connections:50,timeout:15e4},{label:"Media",value:":media",max_connections:50,timeout:15e4},{label:"Upload",value:":upload",max_connections:25,timeout:3e5}],whitelistedContentTypesOptions:[{label:"image/gif",value:"image/gif"},{label:"image/jpeg",value:"image/jpeg"},{label:"image/jpg",value:"image/jpg"},{label:"image/png",value:"image/png"},{label:"image/svg+xml",value:"image/svg+xml"},{label:"audio/mpeg",value:"audio/mpeg"},{label:"audio/mp3",value:"audio/mp3"},{label:"video/webm",value:"video/webm"},{label:"video/mp4",value:"video/mp4"},{label:"video/quicktime",value:"video/quicktime"}],mogrifyActionsOptions:[{label:"strip",value:"strip"},{label:"auto-orient",value:"auto-orient"}],adapterOptions:[{label:"Swoosh.Adapters.Sendmail",value:"Swoosh.Adapters.Sendmail"},{label:"Swoosh.Adapters.SMTP",value:"Swoosh.Adapters.SMTP"},{label:"Swoosh.Adapters.Sendgrid",value:"Swoosh.Adapters.Sendgrid"},{label:"Swoosh.Adapters.Mandrill",value:"Swoosh.Adapters.Mandrill"},{label:"Swoosh.Adapters.Mailgun",value:"Swoosh.Adapters.Mailgun"},{label:"Swoosh.Adapters.Mailjet",value:"Swoosh.Adapters.Mailjet"},{label:"Swoosh.Adapters.Postmark",value:"Swoosh.Adapters.Postmark"},{label:"Swoosh.Adapters.SparkPost",value:"Swoosh.Adapters.SparkPost"},{label:"Swoosh.Adapters.AmazonSES",value:"Swoosh.Adapters.AmazonSES"},{label:"Swoosh.Adapters.Dyn",value:"Swoosh.Adapters.Dyn"},{label:"Swoosh.Adapters.SocketLabs",value:"Swoosh.Adapters.SocketLabs"},{label:"Swoosh.Adapters.Gmail",value:"Swoosh.Adapters.Gmail"},{label:"Swoosh.Adapters.Local",value:"Swoosh.Adapters.Local"}],loggerBackendsOptions:[{label:"Console // log to stdout",value:JSON.stringify(":console")},{label:"Ex_syslogger // log to syslog",value:JSON.stringify({tuple:["ExSyslogger",":ex_syslogger"]})},{label:"Quack.Logger // log to Slack",value:JSON.stringify("Quack.Logger")}],restrictedNicknamesOptions:[{value:".well-known"},{value:"~"},{value:"about"},{value:"activities"},{value:"api"},{value:"auth"},{value:"check_password"},{value:"dev"},{value:"friend-requests"},{value:"inbox"},{value:"internal"},{value:"main"},{value:"media"},{value:"nodeinfo"},{value:"notice"},{value:"oauth"},{value:"objects"},{value:"ostatus_subscribe"},{value:"pleroma"},{value:"proxy"},{value:"push"},{value:"registration"},{value:"relay"},{value:"settings"},{value:"status"},{value:"tag"},{value:"user-search"},{value:"user_exists"},{value:"users"},{value:"web"}]},R=a("fJ7X"),M=a.n(R),T=(a("nBvS"),a("Lrpg"),{name:"Endpoint",components:{editor:M.a},computed:c()({},Object(p.b)(["endpoint"]),{editorContentHttp:{get:function(){return this.endpoint.http.dispatch?this.endpoint.http.dispatch[0]:""},set:function(e){this.processNestedData([e],"Pleroma.Web.Endpoint","http","dispatch")}},editorContentHttps:{get:function(){return this.endpoint.https.dispatch?this.endpoint.https.dispatch[0]:""},set:function(e){this.processNestedData([e],"Pleroma.Web.Endpoint","https","dispatch")}},configureHttp:function(){return!1==!this.endpoint.http},configureHttps:function(){return!1==!this.endpoint.https},endpointHttp:function(){return this.endpoint.http||{}},endpointHttps:function(){return this.endpoint.https||{}},extraCookieAttrsOptions:function(){return L.extraCookieAttrsOptions},instrumentersOptions:function(){return L.instrumentersOptions},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"},loading:function(){return this.$store.state.settings.loading}}),methods:{processNestedData:function(e,t,a,s){var n=c()({},this.$store.state.settings.settings[t][a],o()({},s,e));this.updateSetting(n,t,a)},showServerConfig:function(e,t){e?this.updateSetting({},"Pleroma.Web.Endpoint",t):this.updateSetting(e,"Pleroma.Web.Endpoint",t)},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}}),D=(a("NyLv"),Object(v.a)(T,function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.loading?e._e():a("el-form",{ref:"endpoint",attrs:{model:e.endpoint,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Instrumenters"}},[a("el-select",{attrs:{value:e.endpoint.instrumenters||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Endpoint","instrumenters")}}},e._l(e.instrumentersOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"Compile-time configuration:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Code reloader"}},[a("el-switch",{attrs:{value:e.endpoint.code_reloader},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Endpoint","code_reloader")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Enables code reloading functionality")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Debug errors"}},[a("el-switch",{attrs:{value:e.endpoint.debug_errors},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Endpoint","debug_errors")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Enables using "),a("span",{staticClass:"code"},[e._v("Plug.Debugger")]),e._v(" functionality for debugging failures in the application.\n    Recommended to be set to true only in development as it allows listing of the application source code during debugging. Defaults to false.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Render errors:"}}),e._v(" "),a("el-form-item",{attrs:{label:"View"}},[a("el-input",{attrs:{value:e.endpoint.render_errors.view},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","render_errors","view")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Accepts"}},[a("el-select",{attrs:{value:e.endpoint.render_errors.accepts||[],multiple:"",filterable:"","allow-create":""},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","render_errors","accepts")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Layout"}},[a("el-switch",{attrs:{value:e.endpoint.render_errors.layout},on:{change:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","render_errors","layout")}}})],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"Runtime configuration:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Cache static manifest"}},[a("el-input",{attrs:{value:e.endpoint.cache_static_manifest},on:{input:function(t){return e.updateSetting(t,"Pleroma.Web.Endpoint","cache_static_manifest")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A path to a json manifest file that contains static files and their digested version.\n    This is typically set to "),a("span",{staticClass:"code"},[e._v("'priv/static/cache_manifest.json'")]),e._v("\n      which is the file automatically generated by "),a("span",{staticClass:"code"},[e._v("mix phx.digest")])])],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"HTTP:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Configure HTTP server"}},[a("el-switch",{attrs:{value:e.configureHttp},on:{change:function(t){return e.showServerConfig(t,"http")}}})],1),e._v(" "),e.configureHttp?a("div",[a("el-form-item",{attrs:{label:"Dispatch"}},[a("editor",{attrs:{height:"150",width:"100%",lang:"elixir",theme:"chrome"},model:{value:e.editorContentHttp,callback:function(t){e.editorContentHttp=t},expression:"editorContentHttp"}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("You can type in Elixir code here")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Port"}},[a("el-input",{attrs:{value:e.endpointHttp.port},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","http","port")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The port to run the server. Defaults to 4000 (http) and 4040 (https).")])],1),e._v(" "),a("el-form-item",{attrs:{label:"IP"}},[a("el-input",{attrs:{value:e.endpointHttp.ip,placeholder:"xxx.xxx.xxx.xx"},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","http","ip")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The ip to bind the server to")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Reference name"}},[a("el-input",{attrs:{value:e.endpointHttp.ref},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","http","ref")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The reference name to be used. Defaults to "),a("span",{staticClass:"code"},[e._v("plug.HTTP")]),e._v(" (http) and\n      "),a("span",{staticClass:"code"},[e._v("plug.HTTPS")]),e._v(" (https). This is the value that needs to be given on shutdown.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Compress"}},[a("el-switch",{attrs:{value:e.endpointHttp.compress},on:{change:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","http","compress")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Cowboy will attempt to compress the response body. Defaults to false.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Timeout in s"}},[a("el-input-number",{attrs:{value:e.endpointHttp.timeout/1e3,step:1,min:0,size:"large"},on:{input:function(t){return e.processNestedData(1e3*t,"Pleroma.Web.Endpoint","http","timeout")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Time in s with no requests before Cowboy closes the connection. Defaults to 5 s.")])],1),e._v(" "),a("div",{staticClass:"line"})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"HTTPS:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Configure HTTPS server"}},[a("el-switch",{attrs:{value:e.configureHttps},on:{change:function(t){return e.showServerConfig(t,"https")}}})],1),e._v(" "),e.configureHttps?a("div",[a("el-form-item",{attrs:{label:"Dispatch"}},[a("editor",{attrs:{height:"150",width:"100%",lang:"elixir",theme:"chrome"},model:{value:e.editorContentHttps,callback:function(t){e.editorContentHttps=t},expression:"editorContentHttps"}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("You can type in Elixir code here")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Port"}},[a("el-input",{attrs:{value:e.endpointHttps.port},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","https","port")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The port to run the server. Defaults to 4000 (http) and 4040 (https).")])],1),e._v(" "),a("el-form-item",{attrs:{label:"IP"}},[a("el-input",{attrs:{value:e.endpointHttps.ip,placeholder:"xxx.xxx.xxx.xx"},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","https","ip")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The ip to bind the server to")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Reference name"}},[a("el-input",{attrs:{value:e.endpointHttps.ref},on:{input:function(t){return e.updateSetting(t,"Pleroma.Web.Endpoint","https","ref")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The reference name to be used. Defaults to "),a("span",{staticClass:"code"},[e._v("plug.HTTP")]),e._v(" (http) and\n      "),a("span",{staticClass:"code"},[e._v("plug.HTTPS")]),e._v(" (https). This is the value that needs to be given on shutdown.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Compress"}},[a("el-switch",{attrs:{value:e.endpointHttps.compress},on:{change:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","https","compress")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Cowboy will attempt to compress the response body. Defaults to false.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Timeout in s"}},[a("el-input-number",{attrs:{value:e.endpointHttps.timeout/1e3,step:1,min:0,size:"large"},on:{input:function(t){return e.processNestedData(1e3*t,"Pleroma.Web.Endpoint","https","timeout")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Time in s with no requests before Cowboy closes the connection. Defaults to 5 s.")])],1),e._v(" "),a("div",{staticClass:"line"})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"Secret key base"}},[a("el-input",{attrs:{value:e.endpoint.secret_key_base},on:{input:function(t){return e.updateSetting(t,"Pleroma.Web.Endpoint","secret_key_base")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A secret key used as a base to generate secrets for encrypting and signing data. For example, cookies and tokens are signed by default, but they may also be encrypted if desired. Defaults to nil as it must be set per application")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Server"}},[a("el-switch",{attrs:{value:e.endpoint.server},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Endpoint","server")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("When true, starts the web server when the endpoint supervision tree starts. Defaults to false. The "),a("span",{staticClass:"code"},[e._v("mix phx.server")]),e._v(" task automatically sets this to true.")])],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"URL:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Host"}},[a("el-input",{attrs:{value:e.endpoint.url.host},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","url","host")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The host without the scheme and a post (e.g "),a("span",{staticClass:"code"},[e._v("example.com")]),e._v(", not "),a("span",{staticClass:"code"},[e._v("https://example.com:2020")]),e._v(")")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Scheme"}},[a("el-input",{attrs:{value:e.endpoint.url.scheme},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","url","scheme")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("e.g http, https")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Port"}},[a("el-input",{attrs:{value:e.endpoint.url.port},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","url","port")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Path"}},[a("el-input",{attrs:{value:e.endpoint.url.path},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","url","path")}}})],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"Protocol"}},[a("el-input",{attrs:{value:e.endpoint.protocol},on:{input:function(t){return e.updateSetting(t,"Pleroma.Web.Endpoint","protocol")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Signing salt"}},[a("el-input",{attrs:{value:e.endpoint.signing_salt},on:{input:function(t){return e.updateSetting(t,"Pleroma.Web.Endpoint","signing_salt")}}})],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"PubSub:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Name"}},[a("el-input",{attrs:{value:e.endpoint.pubsub.name},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","pubsub","name")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Adapter"}},[a("el-input",{attrs:{value:e.endpoint.pubsub.adapter},on:{input:function(t){return e.processNestedData(t,"Pleroma.Web.Endpoint","pubsub","adapter")}}})],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"Secure cookie flag"}},[a("el-switch",{attrs:{value:e.endpoint.secure_cookie_flag},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Endpoint","secure_cookie_flag")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Extra cookie attrs"}},[a("el-select",{attrs:{value:e.endpoint.extra_cookie_attrs||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Endpoint","extra_cookie_attrs")}}},e._l(e.extraCookieAttrsOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{staticClass:"options-paragraph-container"},[a("p",{staticClass:"options-paragraph"},[e._v("Only common options are listed here. You can add more (all configuration options can be viewed\n      "),a("a",{attrs:{href:"https://hexdocs.pm/phoenix/Phoenix.Endpoint.html#module-dynamic-configuration",rel:"nofollow noreferrer noopener",target:"_blank"}},[e._v("here")]),e._v(")\n    ")])]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)},[],!1,null,null,null));D.options.__file="Endpoint.vue";var E=D.exports,W={name:"Instance",computed:c()({},Object(p.b)(["enabled","handler","passwordAuthenticator","port","privDir"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{toggleEsshd:function(e){this.$store.dispatch("ToggleEsshd",e)},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},N=(a("FCne"),Object(v.a)(W,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{attrs:{"label-width":e.labelWidth}},[a("el-form-item",[a("p",{staticClass:"expl"},[e._v("Before enabling this you must:\n        "),a("ol",{staticClass:"esshd-list"},[a("li",[e._v("Add "),a("span",{staticClass:"code"},[e._v(":esshd")]),e._v(" to "),a("span",{staticClass:"code"},[e._v("mix.exs")]),e._v(" as one of the\n            "),a("span",{staticClass:"code"},[e._v("extra_applications")])]),e._v(" "),a("li",[e._v("Generate host keys in your\n            "),a("span",{staticClass:"code"},[e._v("priv")]),e._v(" dir with\n            "),a("span",{staticClass:"code"},[e._v('ssh-keygen -m PEM -N "" -b 2048 -t rsa -f ssh_host_rsa_key')])])])])])],1),e._v(" "),a("el-form",{ref:"enabled",attrs:{model:e.enabled,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Enabled"}},[a("el-switch",{attrs:{value:e.enabled.value},on:{change:function(t){return e.updateSetting(t,"enabled","value")}}})],1)],1),e._v(" "),a("el-form",{ref:"privDir",attrs:{model:e.privDir,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Priv dir"}},[a("el-input",{attrs:{value:e.privDir.value},on:{input:function(t){return e.updateSetting(t,"priv_dir","value")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("You can input relative path here")])],1)],1),e._v(" "),a("el-form",{ref:"handler",attrs:{model:e.handler,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Handler"}},[a("el-input",{attrs:{value:e.handler.value},on:{input:function(t){return e.updateSetting(t,"handler","value")}}})],1)],1),e._v(" "),a("el-form",{ref:"port",attrs:{model:e.port,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Port"}},[a("el-input",{attrs:{value:e.port.value},on:{input:function(t){return e.updateSetting(t,"port","value")}}})],1)],1),e._v(" "),a("el-form",{ref:"passwordAuthenticator",attrs:{model:e.passwordAuthenticator,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Password authenticator"}},[a("el-input",{attrs:{value:e.passwordAuthenticator.value},on:{input:function(t){return e.updateSetting(t,"password_authenticator","value")}}})],1),e._v(" "),a("el-form-item",[a("p",{staticClass:"expl"},[e._v("Feel free to adjust the priv_dir and port number.\n      Then you will have to create the key for the keys (in the example "),a("span",{staticClass:"code"},[e._v("priv/ssh_keys")]),e._v(") and create the host keys with\n        "),a("span",{staticClass:"code"},[e._v('ssh-keygen -m PEM -N "" -b 2048 -t rsa -f ssh_host_rsa_key')]),e._v(".\n        After restarting, you should be able to connect to your Pleroma instance with "),a("span",{staticClass:"code"},[e._v("ssh username@server -p $PORT")])])]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));N.options.__file="Esshd.vue";var O=N.exports,j={name:"Frontend",computed:c()({},Object(p.b)(["assets","frontend","emoji","chat","markup"]),{groups:function(){var e=this;return Object.keys(this.emoji.groups).map(function(t){return[t,e.emoji.groups[t]]})},mascots:function(){var e=this;return Object.keys(this.assets.mascots).map(function(t){return[t,e.assets.mascots[t].url,e.assets.mascots[t].mime_type]})},themeOptions:function(){return L.themeOptions},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{addRowToGroups:function(){var e=this.groups.reduce(function(e,t,a){return c()({},e,o()({},t[0],t[1]))},{});this.updateSetting(c()({},e,{"":[]}),"emoji","groups")},addRowToMascots:function(){var e=this.mascots.reduce(function(e,t,a){return c()({},e,o()({},t[0],{url:t[1],mime_type:t[2]}))},{});this.updateSetting(c()({},e,{"":{url:"",mime_type:""}}),"assets","mascots")},deleteGroupsRow:function(e){var t=this.groups.filter(function(t,a){return e!==a}).reduce(function(e,t,a){return c()({},e,o()({},t[0],t[1]))},{});this.updateSetting(t,"emoji","groups")},deleteMascotsRow:function(e){var t=this.mascots.filter(function(t,a){return e!==a}).reduce(function(e,t,a){return c()({},e,o()({},t[0],{url:t[1],mime_type:t[2]}))},{});this.updateSetting(t,"assets","mascots")},parseGroups:function(e,t,a){var s=this.groups.reduce(function(s,n,i){return a===i?"key"===t?c()({},s,o()({},e,n[1])):c()({},s,o()({},n[0],e)):c()({},s,o()({},n[0],n[1]))},{});this.updateSetting(s,"emoji","groups")},parseMascots:function(e,t,a){var s=this.mascots.reduce(function(s,n,i){return a===i?"name"===t?c()({},s,o()({},e,{url:n[1],mime_type:n[2]})):"url"===t?c()({},s,o()({},n[0],{url:e,mime_type:n[2]})):c()({},s,o()({},n[0],{url:n[1],mime_type:e})):c()({},s,o()({},n[0],{url:n[1],mime_type:n[2]}))},{});this.updateSetting(s,"assets","mascots")},processNestedData:function(e,t,a,s){var n=c()({},this.$store.state.settings.settings[t][a],o()({},s,e));this.updateSetting(n,t,a)},sendBackgroundMasto:function(e){var t=e.file;this.$store.dispatch("UploadMedia",{file:t,tab:"frontend_configurations",inputName:"masto_fe",childName:"background"})},sendBackgroundPleroma:function(e){var t=e.file;this.$store.dispatch("UploadMedia",{file:t,tab:"frontend_configurations",inputName:"pleroma_fe",childName:"background"})},sendLogoMasto:function(e){var t=e.file;this.$store.dispatch("UploadMedia",{file:t,tab:"frontend_configurations",inputName:"masto_fe",childName:"logo"})},sendLogoPleroma:function(e){var t=e.file;this.$store.dispatch("UploadMedia",{file:t,tab:"frontend_configurations",inputName:"pleroma_fe",childName:"logo"})},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},I=(a("hVXW"),Object(v.a)(j,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"frontend",attrs:{model:e.frontend,"label-width":e.labelWidth}},[a("el-form-item",[a("p",{staticClass:"expl"},[e._v("This form can be used to configure a keyword list that keeps the configuration data for any kind of frontend.\n      By default, settings for "),a("span",{staticClass:"code"},[e._v("pleroma_fe")]),e._v(" and "),a("span",{staticClass:"code"},[e._v("masto_fe")]),e._v(" are configured.\n      If you want to add your own configuration your settings need to be complete as they will override the defaults.")])]),e._v(" "),a("el-form-item",{attrs:{label:"Pleroma FE:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Theme"}},[a("el-select",{attrs:{value:e.frontend.pleroma_fe.theme,clearable:""},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","theme")}}},e._l(e.themeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("p",{staticClass:"expl"},[e._v("Which theme to use")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Background"}},[a("el-input",{attrs:{value:e.frontend.pleroma_fe.background},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","background")}}}),e._v(" "),a("div",{staticClass:"upload-container"},[a("p",{staticClass:"text"},[e._v("or")]),e._v(" "),a("el-upload",{attrs:{"http-request":e.sendBackgroundPleroma,multiple:!1,"show-file-list":!1,action:"/api/v1/media"}},[a("el-button",{attrs:{size:"small",type:"primary"}},[e._v("Click to upload")])],1)],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("URL of the background, unless viewing a user profile with a background that is set")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Logo"}},[a("el-input",{attrs:{value:e.frontend.pleroma_fe.logo},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","logo")}}}),e._v(" "),a("div",{staticClass:"upload-container"},[a("p",{staticClass:"text"},[e._v("or")]),e._v(" "),a("el-upload",{attrs:{"http-request":e.sendLogoPleroma,multiple:!1,"show-file-list":!1,action:"/api/v1/media"}},[a("el-button",{attrs:{size:"small",type:"primary"}},[e._v("Click to upload")])],1)],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("URL of the logo")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Logo mask"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.logoMask},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","logoMask")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Whether to use only the logo's shape as a mask (true) or as a regular image (false)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Logo margin (em)"}},[a("el-input-number",{attrs:{value:e.frontend.pleroma_fe.logoMargin,step:.1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","logoMargin")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("What margin to use around the logo")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Redirect URL"}},[a("el-input",{attrs:{value:e.frontend.pleroma_fe.redirectRootNoLogin},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","redirectRootNoLogin")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Relative URL which indicates where to redirect when a user is logged in")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Redirect for anonymous user"}},[a("el-input",{attrs:{value:e.frontend.pleroma_fe.redirectRootLogin},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","redirectRootLogin")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Relative URL which indicates where to redirect when a user isn’t logged in")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Show instance panel"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.showInstanceSpecificPanel},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","showInstanceSpecificPanel")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Whenether to show the instance’s specific panel")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Scope options enabled"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.scopeOptionsEnabled},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","scopeOptionsEnabled")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Formatting options enabled"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.formattingOptionsEnabled},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","formattingOptionsEnabled")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Collapse msg with subject"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.collapseMessageWithSubject},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","collapseMessageWithSubject")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("When a message has a subject (aka Content Warning), collapse it by default")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Scope copy"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.scopeCopy},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","scopeCopy")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Copy the scope "),a("span",{staticClass:"code"},[e._v("(private/unlisted/public)")]),e._v(" in replies to posts by default")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Subject line behavior"}},[a("el-select",{attrs:{value:e.frontend.pleroma_fe.subjectLineBehavior,clearable:""},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","subjectLineBehavior")}}},[a("el-option",{attrs:{label:"Email",value:"email"}},[e._v("Email / Copy and preprend re:, as in email")]),e._v(" "),a("el-option",{attrs:{label:"Masto",value:"masto"}},[e._v("Masto / Copy verbatim, as in Mastodon")]),e._v(" "),a("el-option",{attrs:{label:"Noop",value:"noop"}},[e._v("Noop / Don't copy the subject")])],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("Allows changing the default behaviour of subject lines in replies")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Post content type"}},[a("el-input",{attrs:{value:e.frontend.pleroma_fe.postContentType},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","postContentType")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Always show subject input"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.alwaysShowSubjectInput},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","alwaysShowSubjectInput")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("When set to false, auto-hide the subject field when it's empty")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Hide post statistics"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.hidePostStats},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","hidePostStats")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Hide notices statistics(repeats, favorites, …)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Hide user statistics"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.hideUserStats},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","hideUserStats")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Hide profile statistics(posts, posts per day, followers, followings, …)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Login method"}},[a("el-input",{attrs:{value:e.frontend.pleroma_fe.loginMethod},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","loginMethod")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Web push notifications"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.webPushNotifications},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","webPushNotifications")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"No attachment links"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.noAttachmentLinks},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","noAttachmentLinks")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"NSFW Censor image"}},[a("el-input",{attrs:{value:e.frontend.pleroma_fe.nsfwCensorImage},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","nsfwCensorImage")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Show features panel"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.showFeaturesPanel},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","showFeaturesPanel")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Minimal scopes mode"}},[a("el-switch",{attrs:{value:e.frontend.pleroma_fe.minimalScopesMode},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","pleroma_fe","minimalScopesMode")}}})],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"Masto FE:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Theme"}},[a("el-select",{attrs:{value:e.frontend.masto_fe.theme,clearable:""},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","theme")}}},e._l(e.themeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("p",{staticClass:"expl"},[e._v("Which theme to use")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Background"}},[a("el-input",{attrs:{value:e.frontend.masto_fe.background},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","background")}}}),e._v(" "),a("div",{staticClass:"upload-container"},[a("p",{staticClass:"text"},[e._v("or")]),e._v(" "),a("el-upload",{attrs:{"http-request":e.sendBackgroundMasto,multiple:!1,"show-file-list":!1,action:"/api/v1/media"}},[a("el-button",{attrs:{size:"small",type:"primary"}},[e._v("Click to upload")])],1)],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("URL of the background, unless viewing a user profile with a background that is set")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Logo"}},[a("el-input",{attrs:{value:e.frontend.masto_fe.logo},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","logo")}}}),e._v(" "),a("div",{staticClass:"upload-container"},[a("p",{staticClass:"text"},[e._v("or")]),e._v(" "),a("el-upload",{attrs:{"http-request":e.sendLogoMasto,multiple:!1,"show-file-list":!1,action:"/api/v1/media"}},[a("el-button",{attrs:{size:"small",type:"primary"}},[e._v("Click to upload")])],1)],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("URL of the logo")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Logo mask"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.logoMask},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","logoMask")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Whether to use only the logo's shape as a mask (true) or as a regular image (false)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Logo margin (em)"}},[a("el-input-number",{attrs:{value:e.frontend.masto_fe.logoMargin,step:.1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","logoMargin")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("What margin to use around the logo")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Redirect URL"}},[a("el-input",{attrs:{value:e.frontend.masto_fe.redirectRootNoLogin},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","redirectRootNoLogin")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Relative URL which indicates where to redirect when a user is logged in")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Redirect for anonymous user"}},[a("el-input",{attrs:{value:e.frontend.masto_fe.redirectRootLogin},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","redirectRootLogin")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Relative URL which indicates where to redirect when a user isn’t logged in")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Show instance panel"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.showInstanceSpecificPanel},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","showInstanceSpecificPanel")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Whenether to show the instance’s specific panel")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Scope options enabled"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.scopeOptionsEnabled},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","scopeOptionsEnabled")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Formatting options enabled"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.formattingOptionsEnabled},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","formattingOptionsEnabled")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Collapse msg with subjects"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.collapseMessageWithSubject},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","collapseMessageWithSubject")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("When a message has a subject (aka Content Warning), collapse it by default")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Scope copy"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.scopeCopy},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","scopeCopy")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Copy the scope "),a("span",{staticClass:"code"},[e._v("(private/unlisted/public)")]),e._v(" in replies to posts by default")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Subject line behavior"}},[a("el-select",{attrs:{value:e.frontend.masto_fe.subjectLineBehavior,clearable:""},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","subjectLineBehavior")}}},[a("el-option",{attrs:{label:"Email",value:"email"}},[e._v("Email / Copy and preprend re:, as in email")]),e._v(" "),a("el-option",{attrs:{label:"Masto",value:"masto"}},[e._v("Masto / Copy verbatim, as in Mastodon")]),e._v(" "),a("el-option",{attrs:{label:"Noop",value:"noop"}},[e._v("Noop / Don't copy the subject")])],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("Allows changing the default behaviour of subject lines in replies")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Post content type"}},[a("el-input",{attrs:{value:e.frontend.masto_fe.postContentType},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","postContentType")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Always show subject input"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.alwaysShowSubjectInput},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","alwaysShowSubjectInput")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("When set to false, auto-hide the subject field when it's empty")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Hide post statistics"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.hidePostStats},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","hidePostStats")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Hide notices statistics(repeats, favorites, …)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Hide user statistics"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.hideUserStats},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","hideUserStats")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Hide profile statistics(posts, posts per day, followers, followings, …)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Login method"}},[a("el-input",{attrs:{value:e.frontend.masto_fe.loginMethod},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","loginMethod")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Web push notifications"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.webPushNotifications},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","webPushNotifications")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"No attachment links"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.noAttachmentLinks},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","noAttachmentLinks")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"NSFW Censor image"}},[a("el-input",{attrs:{value:e.frontend.masto_fe.nsfwCensorImage},on:{input:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","nsfwCensorImage")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Show features panel"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.showFeaturesPanel},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","showFeaturesPanel")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Minimal scopes mode"}},[a("el-switch",{attrs:{value:e.frontend.masto_fe.minimalScopesMode},on:{change:function(t){return e.processNestedData(t,"frontend_configurations","masto_fe","minimalScopesMode")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"assets",attrs:{model:e.assets,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Assets:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Default mascot"}},[a("el-select",{attrs:{value:e.assets.default_mascot,clearable:""},on:{change:function(t){return e.updateSetting(t,"assets","default_mascot")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("An element from mascots - This will be used as the default mascot on MastoFE\n      (default: "),a("span",{staticClass:"code"},[e._v(":pleroma_fox_tan")]),e._v(")")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Mascots"}},[e._l(e.mascots,function(t,s){var n=t[0],i=t[1],l=t[2];return a("div",{key:s,staticClass:"mascot-container"},[a("div",{staticClass:"mascot-name-container"},[a("el-input",{staticClass:"mascot-name-input",attrs:{value:n,placeholder:"Name"},on:{input:function(t){return e.parseMascots(t,"name",s)}}}),e._v(" "),a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.deleteMascotsRow(s,"emoji","groups")}}})],1),e._v(" "),a("el-input",{staticClass:"mascot-input",attrs:{value:i,placeholder:"URL"},on:{input:function(t){return e.parseMascots(t,"url",s)}}}),e._v(" "),a("el-input",{staticClass:"mascot-input",attrs:{value:l,placeholder:"Mime type"},on:{input:function(t){return e.parseMascots(t,"mimeType",s)}}})],1)}),e._v(" "),a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:e.addRowToMascots}})],2)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"emoji",attrs:{model:e.emoji,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Emoji:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Location of emoji files"}},[a("el-select",{attrs:{value:e.emoji.shortcode_globs||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"emoji","shortcode_globs")}}},[a("el-option",{attrs:{label:"/emoji/custom/**/*.png",value:"/emoji/custom/**/*.png"}})],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("Location of custom emoji files. "),a("span",{staticClass:"code"},[e._v("*")]),e._v(" can be used as a wildcard.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Pack extensions"}},[a("el-select",{attrs:{value:e.emoji.pack_extensions||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"emoji","pack_extensions")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A list of file extensions for emojis, when no "),a("span",{staticClass:"code"},[e._v("emoji.txt")]),e._v(" for a pack is present. ")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Group"}},[e._l(e.groups,function(t,s){var n=t[0],i=t[1];return a("div",{key:s,staticClass:"setting-input"},[a("el-input",{staticClass:"name-input",attrs:{value:n,placeholder:"key"},on:{input:function(t){return e.parseGroups(t,"key",s)}}}),e._v(" :\n        "),a("el-select",{staticClass:"value-input",attrs:{value:i,multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.parseGroups(t,"value",s)}}}),e._v(" "),a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.deleteGroupsRow(s)}}})],1)}),e._v(" "),a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:e.addRowToGroups}})],2),e._v(" "),a("el-form-item",{attrs:{label:"Location of JSON-manifest"}},[a("el-input",{attrs:{value:e.emoji.default_manifest},on:{input:function(t){return e.updateSetting(t,"emoji","default_manifest")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Location of the JSON-manifest. This manifest contains information about the emoji-packs you can download. Currently only one manifest can be added (no arrays).")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"chat",attrs:{model:e.chat,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Chat enabled"}},[a("el-switch",{attrs:{value:e.chat.enabled},on:{input:function(t){return e.updateSetting(t,"chat","enabled")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"markup",attrs:{model:e.markup,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Markup settings:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Allow inline images"}},[a("el-switch",{attrs:{value:e.markup.allow_inline_images},on:{input:function(t){return e.updateSetting(t,"markup","allow_inline_images")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Allow headings"}},[a("el-switch",{attrs:{value:e.markup.allow_headings},on:{input:function(t){return e.updateSetting(t,"markup","allow_headings")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Allow tables"}},[a("el-switch",{attrs:{value:e.markup.allow_tables},on:{input:function(t){return e.updateSetting(t,"markup","allow_tables")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Allow fonts"}},[a("el-switch",{attrs:{value:e.markup.allow_fonts},on:{input:function(t){return e.updateSetting(t,"markup","allow_fonts")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Scrub policy"}},[a("el-select",{attrs:{value:e.markup.scrub_policy||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"markup","scrub_policy")}}},[a("el-option",{attrs:{label:"Pleroma.HTML.Transform.MediaProxy",value:"Pleroma.HTML.Transform.MediaProxy"}}),e._v(" "),a("el-option",{attrs:{label:"Pleroma.HTML.Scrubber.Default",value:"Pleroma.HTML.Scrubber.Default"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));I.options.__file="Frontend.vue";var $=I.exports,F={name:"Gopher",computed:c()({},Object(p.b)(["gopher"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},z=(a("w5cJ"),Object(v.a)(F,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"gopher",attrs:{model:e.gopher,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Enabled"}},[a("el-switch",{attrs:{value:e.gopher.enabled},on:{change:function(t){return e.updateSetting(t,"gopher","enabled")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Enables the gopher interface")])],1),e._v(" "),a("el-form-item",{attrs:{label:"IP address"}},[a("el-input",{attrs:{value:e.gopher.ip,placeholder:"xxx.xxx.xxx.xx"},on:{input:function(t){return e.updateSetting(t,"gopher","ip")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Enables the gopher interface")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Port"}},[a("el-input",{attrs:{value:e.gopher.port},on:{input:function(t){return e.updateSetting(t,"gopher","port")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Port to bind to")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Dst port"}},[a("el-input",{attrs:{value:e.gopher.dstport},on:{input:function(t){return e.updateSetting(t,"gopher","dstport")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Port advertised in urls (optional, defaults to port)")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)},[],!1,null,null,null));z.options.__file="Gopher.vue";var H=z.exports,q={name:"HTTP",computed:c()({},Object(p.b)(["corsPlugCredentials","corsPlugExpose","corsPlugHeaders","corsPlugMaxAge","corsPlugMethods","hackneyPools","http","httpSecurity","metricsExporter"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{processNestedData:function(e,t,a,s){var n=c()({},this.$store.state.settings.settings[t][a],o()({},s,e));this.updateSetting(n,t,a)},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},B=(a("KFE3"),Object(v.a)(q,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"http",attrs:{model:e.http,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"HTTP settings:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Proxy url"}},[a("el-input",{attrs:{value:e.http.proxy_url},on:{input:function(t){return e.updateSetting(t,"http","proxy_url")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Send user agent"}},[a("el-switch",{attrs:{value:e.http.send_user_agent},on:{change:function(t){return e.updateSetting(t,"http","send_user_agent")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Adapter:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Versions"}},[a("el-select",{attrs:{value:e.http.adapter.versions||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.processNestedData(t,"http","adapter","versions")}}},[a("el-option",{attrs:{value:":tlsv1"}}),e._v(" "),a("el-option",{attrs:{value:":'tlsv1.1'"}}),e._v(" "),a("el-option",{attrs:{value:":'tlsv1.2'"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"corsPlugMaxAge",attrs:{model:e.corsPlugMaxAge,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Cors plug config:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Max age (days)"}},[a("el-input-number",{attrs:{value:e.corsPlugMaxAge.value/86400,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(86400*t,"max_age","value")}}})],1)],1),e._v(" "),a("el-form",{ref:"corsPlugMethods",attrs:{model:e.corsPlugMethods,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Methods"}},[a("el-select",{attrs:{value:e.corsPlugMethods.value||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"methods","value")}}},[a("el-option",{attrs:{value:"POST"}}),e._v(" "),a("el-option",{attrs:{value:"PUT"}}),e._v(" "),a("el-option",{attrs:{value:"DELETE"}}),e._v(" "),a("el-option",{attrs:{value:"GET"}}),e._v(" "),a("el-option",{attrs:{value:"PATCH"}}),e._v(" "),a("el-option",{attrs:{value:"OPTIONS"}})],1)],1)],1),e._v(" "),a("el-form",{ref:"corsPlugExpose",attrs:{model:e.corsPlugExpose,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Expose"}},[a("el-select",{attrs:{value:e.corsPlugExpose.value||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"expose","value")}}},[a("el-option",{attrs:{value:"Link"}}),e._v(" "),a("el-option",{attrs:{value:"X-RateLimit-Reset"}}),e._v(" "),a("el-option",{attrs:{value:"X-RateLimit-Limit"}}),e._v(" "),a("el-option",{attrs:{value:"X-RateLimit-Remaining"}}),e._v(" "),a("el-option",{attrs:{value:"X-Request-Id"}}),e._v(" "),a("el-option",{attrs:{value:"Idempotency-Key"}})],1)],1)],1),e._v(" "),a("el-form",{ref:"corsPlugCredentials",attrs:{model:e.corsPlugCredentials,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Credentials"}},[a("el-switch",{attrs:{value:e.corsPlugCredentials.value},on:{change:function(t){return e.updateSetting(t,"credentials","value")}}})],1)],1),e._v(" "),a("el-form",{ref:"corsPlugHeaders",attrs:{model:e.corsPlugHeaders,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Headers"}},[a("el-select",{attrs:{value:e.corsPlugHeaders.value||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"headers","value")}}},[a("el-option",{attrs:{value:"Authorization"}}),e._v(" "),a("el-option",{attrs:{value:"Content-Type"}}),e._v(" "),a("el-option",{attrs:{value:"Idempotency-Key"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"httpSecurity",attrs:{model:e.httpSecurity,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"HTTP security:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Security policy"}},[a("el-switch",{attrs:{value:e.httpSecurity.enabled},on:{change:function(t){return e.updateSetting(t,"http_security","enabled")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Whether the managed content security policy is enabled")])],1),e._v(" "),a("el-form-item",{attrs:{label:"STS"}},[a("el-switch",{attrs:{value:e.httpSecurity.sts},on:{change:function(t){return e.updateSetting(t,"http_security","sts")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Whether to additionally send a "),a("span",{staticClass:"code"},[e._v("Strict-Transport-Security header")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"STS max age (days)"}},[a("el-input-number",{attrs:{value:e.httpSecurity.sts_max_age/86400,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(86400*t,"http_security","sts_max_age")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The maximum age for the "),a("span",{staticClass:"code"},[e._v("Strict-Transport-Security")]),e._v(" header if sent")])],1),e._v(" "),a("el-form-item",{attrs:{label:"CT max age (days)"}},[a("el-input-number",{attrs:{value:e.httpSecurity.ct_max_age/86400,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(86400*t,"http_security","ct_max_age")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The maximum age for the "),a("span",{staticClass:"code"},[e._v("Expect-CT")]),e._v(" header if sent")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Referrer policy"}},[a("el-select",{attrs:{value:e.httpSecurity.referrer_policy,clearable:""},on:{change:function(t){return e.updateSetting(t,"http_security","referrer_policy")}}},[a("el-option",{attrs:{label:"same-origin",value:"same-origin"}}),e._v(" "),a("el-option",{attrs:{label:"no-referrer",value:"no-referrer"}})],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("The referrer policy to use")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Report URI"}},[a("el-input",{attrs:{value:e.httpSecurity.report_uri},on:{input:function(t){return e.updateSetting(t,"http_security","report_uri")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Adds the specified url to "),a("span",{staticClass:"code"},[e._v("report-uri")]),e._v(" and "),a("span",{staticClass:"code"},[e._v("report-to")]),e._v(" group in CSP header")])],1)],1),e._v(" "),a("el-form",{ref:"hackneyPools",attrs:{model:e.hackneyPools,"label-width":e.labelWidth}},[a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"Hackney pools:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Federation:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Max connections"}},[a("el-input-number",{attrs:{value:e.hackneyPools.federation.max_connections,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(t,"hackney_pools","federation","max_connections")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("You may want this pool "),a("span",{staticClass:"code"},[e._v("max_connections")]),e._v(" to be at least equal to the number of federator jobs + retry queue jobs.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Timeout (s)"}},[a("el-input-number",{attrs:{value:e.hackneyPools.federation.timeout/1e3,step:10,min:0,size:"large"},on:{change:function(t){return e.processNestedData(1e3*t,"hackney_pools","federation","timeout")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("For the federation jobs")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Media:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Max connections"}},[a("el-input-number",{attrs:{value:e.hackneyPools.media.max_connections,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(t,"hackney_pools","media","max_connections")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Timeout (s)"}},[a("el-input-number",{attrs:{value:e.hackneyPools.media.timeout/1e3,step:10,min:0,size:"large"},on:{change:function(t){return e.processNestedData(1e3*t,"hackney_pools","media","timeout")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("For rich media, media proxy")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Upload:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Max connections"}},[a("el-input-number",{attrs:{value:e.hackneyPools.upload.max_connections,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(t,"hackney_pools","upload","max_connections")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Timeout (s)"}},[a("el-input-number",{attrs:{value:e.hackneyPools.upload.timeout/1e3,step:10,min:0,size:"large"},on:{change:function(t){return e.processNestedData(1e3*t,"hackney_pools","upload","timeout")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("For uploaded media (if using a remote uploader and "),a("span",{staticClass:"code"},[e._v("proxy_remote: true")]),e._v(")")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));B.options.__file="Http.vue";var V=B.exports,G={name:"Instance",computed:c()({},Object(p.b)(["adminToken","fetchInitialPosts","instance","pleromaUser","scheduledActivity","suggestions","uriSchemes"]),{autofollowedNicknamesOptions:function(){return L.autofollowedNicknamesOptions},federationPublisherModulesOptions:function(){return L.federationPublisherModulesOptions},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"},quarantinedInstancesOptions:function(){return L.quarantinedInstancesOptions},restrictedNicknamesOptions:function(){return L.restrictedNicknamesOptions},rewritePolicy:function(){return"string"==typeof this.instance.rewrite_policy?[this.instance.rewrite_policy]:this.instance.rewrite_policy},rewritePolicyExplanations:function(){return this.rewritePolicy?this.rewritePolicy.filter(function(e){return L.rewritePolicyOptions.find(function(t){return t.value===e})}):[]},rewritePolicyOptions:function(){return L.rewritePolicyOptions},uriSchemesOptions:function(){return L.uriSchemesOptions}}),methods:{getRewritePolicyExpl:function(e){return L.rewritePolicyOptions.find(function(t){return t.value===e}).expl},processNestedData:function(e,t,a,s){var n=c()({},this.$store.state.settings.settings[t][a],o()({},s,e));this.updateSetting(n,t,a)},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},K=(a("e0P1"),Object(v.a)(G,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"instance",attrs:{model:e.instance,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Name"}},[a("el-input",{attrs:{value:e.instance.name},on:{input:function(t){return e.updateSetting(t,"instance","name")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The instance’s name")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Email"}},[a("el-input",{attrs:{value:e.instance.email},on:{input:function(t){return e.updateSetting(t,"instance","email")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Email used to reach an Administrator/Moderator of the instance")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Notify email"}},[a("el-input",{attrs:{value:e.instance.notify_email},on:{input:function(t){return e.updateSetting(t,"instance","notify_email")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Email used for notifications")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Description"}},[a("el-input",{attrs:{value:e.instance.description},on:{input:function(t){return e.updateSetting(t,"instance","description")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The instance’s description, can be seen in nodeinfo and "),a("span",{staticClass:"code"},[e._v("/api/v1/instance")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Limit"}},[a("el-input-number",{attrs:{value:e.instance.limit,step:1e3,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","limit")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Posts character limit (CW/Subject included in the counter)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Remote limit"}},[a("el-input-number",{attrs:{value:e.instance.remote_limit,step:1e3,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","remote_limit")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Hard character limit beyond which remote posts will be dropped")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Upload limit (MB)"}},[a("el-input-number",{attrs:{value:e.instance.upload_limit/1048576,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(1048576*t,"instance","upload_limit")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("File size limit of uploads (except for avatar, background, banner)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Avatar upload limit (MB)"}},[a("el-input-number",{attrs:{value:e.instance.avatar_upload_limit/1048576,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(1048576*t,"instance","avatar_upload_limit")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("File size limit of user’s profile avatars")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Background upload limit (MB)"}},[a("el-input-number",{attrs:{value:e.instance.background_upload_limit/1048576,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(1048576*t,"instance","background_upload_limit")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("File size limit of user’s profile backgrounds")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Banner upload limit (MB)"}},[a("el-input-number",{attrs:{value:e.instance.banner_upload_limit/1048576,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(1048576*t,"instance","banner_upload_limit")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("File size limit of user’s profile banners")])],1),e._v(" "),a("el-form-item",{attrs:{label:"User bio length"}},[a("el-input-number",{attrs:{value:e.instance.user_bio_length,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","user_bio_length")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A user bio maximum length (default: 5000)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"User name length"}},[a("el-input-number",{attrs:{value:e.instance.user_name_length,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","user_name_length")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A user name maximum length (default: 100)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Poll limits:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Max options"}},[a("el-input-number",{attrs:{value:e.instance.poll_limits.max_options,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(t,"instance","poll_limits","max_options")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Maximum number of options")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max characters per option"}},[a("el-input-number",{attrs:{value:e.instance.poll_limits.max_option_chars,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(t,"instance","poll_limits","max_option_chars")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Maximum number of characters per option")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Minimum expiration (days)"}},[a("el-input-number",{attrs:{value:e.instance.poll_limits.min_expiration,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(t,"instance","poll_limits","min_expiration")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Minimum expiration time")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max expiration (days)"}},[a("el-input-number",{attrs:{value:e.instance.poll_limits.max_expiration/86400,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(86400*t,"instance","poll_limits","max_expiration")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Maximum expiration time")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Registrations open"}},[a("el-switch",{attrs:{value:e.instance.registrations_open},on:{change:function(t){return e.updateSetting(t,"instance","registrations_open")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Enable registrations for anyone, invitations can be enabled when false")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Invites enabled"}},[a("el-switch",{attrs:{value:e.instance.invites_enabled},on:{change:function(t){return e.updateSetting(t,"instance","invites_enabled")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Enable user invitations for admins (depends on "),a("span",{staticClass:"code"},[e._v("registrations_open: false)")]),e._v(".")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Account activation required"}},[a("el-switch",{attrs:{value:e.instance.account_activation_required},on:{change:function(t){return e.updateSetting(t,"instance","account_activation_required")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Require users to confirm their emails before signing in")])],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"Federating"}},[a("el-switch",{attrs:{value:e.instance.federating},on:{change:function(t){return e.updateSetting(t,"instance","federating")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Enable federation with other instances")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Fed. replies max depth"}},[a("el-input-number",{attrs:{value:e.instance.federation_incoming_replies_max_depth,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","federation_incoming_replies_max_depth")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Max. depth of reply-to activities fetching on incoming federation, to prevent out-of-memory situations while fetching very long threads. Lower this value if you experience out-of-memory crashes.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Fed. reachability timeout"}},[a("el-input-number",{attrs:{value:e.instance.federation_reachability_timeout_days,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","federation_reachability_timeout_days")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Timeout (in days) of each external federation target being unreachable prior to pausing federating to it")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Federation publisher modules"}},[a("el-select",{attrs:{value:e.instance.federation_publisher_modules||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"instance","federation_publisher_modules")}}},e._l(e.federationPublisherModulesOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"Allow relay"}},[a("el-switch",{attrs:{value:e.instance.allow_relay},on:{change:function(t){return e.updateSetting(t,"instance","allow_relay")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Enable Pleroma’s Relay, which makes it possible to follow a whole instance")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Rewrite policy"}},[a("el-select",{attrs:{value:e.rewritePolicy||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"instance","rewrite_policy")}}},e._l(e.rewritePolicyOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),e._l(e.rewritePolicyExplanations,function(t){return a("p",{key:t,staticClass:"expl"},[e._v(e._s(e.getRewritePolicyExpl(t)))])})],2),e._v(" "),a("el-form-item",{attrs:{label:"Public"}},[a("el-switch",{attrs:{value:e.instance.public},on:{change:function(t){return e.updateSetting(t,"instance","public")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Makes the client API in authentificated mode-only except for user-profiles. Useful for disabling the Local Timeline and The Whole Known Network")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Quarantined instances"}},[a("el-select",{attrs:{value:e.instance.quarantined_instances||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"instance","quarantined_instances")}}},e._l(e.quarantinedInstancesOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of ActivityPub instances where private (DMs, followers-only) activities will not be send")])],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"Managed config"}},[a("el-switch",{attrs:{value:e.instance.managed_config},on:{change:function(t){return e.updateSetting(t,"instance","managed_config")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Whenether the config for pleroma-fe is configured in this config or in "),a("span",{staticClass:"code"},[e._v("static/config.json")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Static directory"}},[a("el-input",{attrs:{value:e.instance.static_dir},on:{input:function(t){return e.updateSetting(t,"instance","static_dir")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Allowed post formats"}},[a("el-select",{attrs:{value:e.instance.allowed_post_formats||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"instance","allowed_post_formats")}}},[a("el-option",{attrs:{label:"text/plain",value:"text/plain"}}),e._v(" "),a("el-option",{attrs:{label:"text/html",value:"text/html"}}),e._v(" "),a("el-option",{attrs:{label:"text/markdown",value:"text/markdown"}}),e._v(" "),a("el-option",{attrs:{label:"text/bbcode",value:"text/bbcode"}})],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("MIME-type list of formats allowed to be posted (transformed into HTML)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"MRF transparency"}},[a("el-switch",{attrs:{value:e.instance.mrf_transparency},on:{change:function(t){return e.updateSetting(t,"instance","mrf_transparency")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Make the content of your Message Rewrite Facility settings public (via nodeinfo)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"MRF transparency exclusions"}},[a("el-select",{attrs:{value:e.instance.mrf_transparency_exclusions||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"instance","mrf_transparency_exclusions")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Scope copy"}},[a("el-switch",{attrs:{value:e.instance.scope_copy},on:{change:function(t){return e.updateSetting(t,"instance","scope_copy")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Copy the scope "),a("span",{staticClass:"code"},[e._v("(private/unlisted/public)")]),e._v(" in replies to posts by default")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Subject line behavior"}},[a("el-select",{attrs:{value:e.instance.subject_line_behavior,clearable:""},on:{change:function(t){return e.updateSetting(t,"instance","subject_line_behavior")}}},[a("el-option",{attrs:{label:"Email",value:"email"}},[e._v("Email / Copy and preprend re:, as in email")]),e._v(" "),a("el-option",{attrs:{label:"Masto",value:"masto"}},[e._v("Masto / Copy verbatim, as in Mastodon")]),e._v(" "),a("el-option",{attrs:{label:"Noop",value:"noop"}},[e._v("Noop / Don't copy the subject")])],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("Allows changing the default behaviour of subject lines in replies")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Always show subject input"}},[a("el-switch",{attrs:{value:e.instance.always_show_subject_input},on:{change:function(t){return e.updateSetting(t,"instance","always_show_subject_input")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("When set to false, auto-hide the subject field when it's empty")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Extended nickname format"}},[a("el-switch",{attrs:{value:e.instance.extended_nickname_format},on:{change:function(t){return e.updateSetting(t,"instance","extended_nickname_format")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Set to "),a("span",{staticClass:"code"},[e._v("true")]),e._v(" to use extended local nicknames format (allows underscores/dashes). This will break federation with older software for theses nicknames")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max pinned statuses"}},[a("el-input-number",{attrs:{value:e.instance.max_pinned_statuses,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","max_pinned_statuses")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The maximum number of pinned statuses. '0' will disable the feature")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Autofollowed nicknames"}},[a("el-select",{attrs:{value:e.instance.autofollowed_nicknames||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"instance","autofollowed_nicknames")}}},e._l(e.autofollowedNicknamesOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("p",{staticClass:"expl"},[e._v("Set to nicknames of (local) users that every new user should automatically follow")])],1),e._v(" "),a("el-form-item",{attrs:{label:"No attachment links"}},[a("el-switch",{attrs:{value:e.instance.no_attachment_links},on:{change:function(t){return e.updateSetting(t,"instance","no_attachment_links")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Set to true to disable automatically adding attachment link text to statuses")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Welcome message"}},[a("el-input",{attrs:{value:e.instance.welcome_message},on:{input:function(t){return e.updateSetting(t,"instance","welcome_message")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A message that will be send to a newly registered users as a direct message")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Welcome user nickname"}},[a("el-input",{attrs:{value:e.instance.welcome_user_nickname},on:{input:function(t){return e.updateSetting(t,"instance","welcome_user_nickname")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The nickname of the local user that sends the welcome message")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max report comment size"}},[a("el-input-number",{attrs:{value:e.instance.max_report_comment_size,step:100,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","max_report_comment_size")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The maximum size of the report comment")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Safe DM mentions"}},[a("el-switch",{attrs:{value:e.instance.safe_dm_mentions},on:{change:function(t){return e.updateSetting(t,"instance","safe_dm_mentions")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("If set to true, only mentions at the beginning of a post will be used to address people in direct messages. This is to prevent accidental mentioning of people when talking about them")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Healthcheck"}},[a("el-switch",{attrs:{value:e.instance.healthcheck},on:{change:function(t){return e.updateSetting(t,"instance","healthcheck")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("If set to true, system data will be shown on "),a("span",{staticClass:"code"},[e._v("/api/pleroma/healthcheck")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Remote post retention days"}},[a("el-input-number",{attrs:{value:e.instance.remote_post_retention_days,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","remote_post_retention_days")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The default amount of days to retain remote posts when pruning the database.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Skip thread containment"}},[a("el-switch",{attrs:{value:e.instance.skip_thread_containment},on:{change:function(t){return e.updateSetting(t,"instance","skip_thread_containment")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Skip filter out broken threads.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Limit to local content"}},[a("el-select",{attrs:{value:e.instance.limit_to_local_content,clearable:""},on:{change:function(t){return e.updateSetting(t,"instance","limit_to_local_content")}}},[a("el-option",{attrs:{label:"Unauthenticated",value:":unauthenticated"}}),e._v(" "),a("el-option",{attrs:{label:"All",value:":all"}}),e._v(" "),a("el-option",{attrs:{label:"False",value:"false"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"Dynamic configuration"}},[a("el-switch",{attrs:{value:e.instance.dynamic_configuration},on:{change:function(t){return e.updateSetting(t,"instance","dynamic_configuration")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Allow transferring configuration to DB with the subsequent customization from Admin API")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max account fields"}},[a("el-input-number",{attrs:{value:e.instance.max_account_fields,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","max_account_fields")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The maximum number of custom fields in the user profile (Default: 4)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max remote account fields"}},[a("el-input-number",{attrs:{value:e.instance.max_remote_account_fields,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","max_remote_account_fields")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The maximum number of custom fields in the remote user profile (Default: 10)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Account field name length"}},[a("el-input-number",{attrs:{value:e.instance.account_field_name_length,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","account_field_name_length")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("An account field name maximum length (Default: 255)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Account field value length"}},[a("el-input-number",{attrs:{value:e.instance.account_field_value_length,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"instance","account_field_value_length")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("An account field value maximum length (Default: 255)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"External user synchronization"}},[a("el-switch",{attrs:{value:e.instance.external_user_synchronization},on:{change:function(t){return e.updateSetting(t,"instance","external_user_synchronization")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Enabling following/followers counters synchronization for external users.")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"uriSchemes",attrs:{model:e.uriSchemes,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"URI schemes"}},[a("el-select",{attrs:{value:e.uriSchemes.valid_schemes||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"uri_schemes","valid_schemes")}}},e._l(e.uriSchemesOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of the scheme part that is considered valid to be an URL")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"adminToken",attrs:{model:e.adminToken,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Admin token"}},[a("el-input",{attrs:{value:e.adminToken.value},on:{input:function(t){return e.updateSetting(t,"admin_token","value")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Allows to set a token that can be used to authenticate with the admin api without using an actual user by giving it as the "),a("span",{staticClass:"code"},[e._v("admin_token")]),e._v(" parameter.")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"scheduledActivity",attrs:{model:e.scheduledActivity,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Scheduled activity:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Daily user limit"}},[a("el-input-number",{attrs:{value:e.scheduledActivity.daily_user_limit,step:5,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"Pleroma.ScheduledActivity","daily_user_limit")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The number of scheduled activities a user is allowed to create in a single day (Default: 25)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Total user limit"}},[a("el-input-number",{attrs:{value:e.scheduledActivity.total_user_limit,step:10,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"Pleroma.ScheduledActivity","total_user_limit")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The number of scheduled activities a user is allowed to create in total (Default: 300)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Enabled"}},[a("el-switch",{attrs:{value:e.scheduledActivity.enabled},on:{change:function(t){return e.updateSetting(t,"Pleroma.ScheduledActivity","enabled")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Whether scheduled activities are sent to the job queue to be executed")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"fetchInitialPosts",attrs:{model:e.fetchInitialPosts,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Fetch initial posts"}},[a("el-switch",{attrs:{value:e.fetchInitialPosts.enabled},on:{change:function(t){return e.updateSetting(t,"fetch_initial_posts","enabled")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("If enabled, when a new user is federated with, fetch some of their latest posts")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Pages"}},[a("el-input-number",{attrs:{value:e.fetchInitialPosts.pages,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"fetch_initial_posts","pages")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The amount of pages to fetch")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"suggestions",attrs:{model:e.suggestions,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Suggestions:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Enabled"}},[a("el-switch",{attrs:{value:e.suggestions.enabled},on:{change:function(t){return e.updateSetting(t,"suggestions","enabled")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Third party engine"}},[a("el-input",{attrs:{value:e.suggestions.third_party_engine},on:{input:function(t){return e.updateSetting(t,"suggestions","third_party_engine")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Timeout"}},[a("el-input-number",{attrs:{value:e.suggestions.timeout,step:1e3,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"suggestions","timeout")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Limit"}},[a("el-input-number",{attrs:{value:e.suggestions.limit,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"suggestions","limit")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Web"}},[a("el-input",{attrs:{value:e.suggestions.web},on:{input:function(t){return e.updateSetting(t,"suggestions","web")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"pleromaUser",attrs:{model:e.pleromaUser,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Restricted nicknames"}},[a("el-select",{attrs:{value:e.pleromaUser.restricted_nicknames||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"Pleroma.User","restricted_nicknames")}}},e._l(e.restrictedNicknamesOptions,function(e){return a("el-option",{key:e.value,attrs:{value:e.value}})}),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));K.options.__file="Instance.vue";var Q=K.exports,J={name:"JobQueue",computed:c()({},Object(p.b)(["queues","retryQueue"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},X=(a("lNpP"),Object(v.a)(J,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"queues",attrs:{model:e.queues,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Job queues:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Outgoing federation"}},[a("el-input-number",{attrs:{value:e.queues.federator_outgoing,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"queues","federator_outgoing")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Incoming federation"}},[a("el-input-number",{attrs:{value:e.queues.federator_incoming,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"queues","federator_incoming")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Email sender"}},[a("el-input-number",{attrs:{value:e.queues.mailer,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"queues","mailer")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Transmogrifier"}},[a("el-input-number",{attrs:{value:e.queues.transmogrifier,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"queues","transmogrifier")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Web push notifications"}},[a("el-input-number",{attrs:{value:e.queues.web_push,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"queues","web_push")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Scheduled activities"}},[a("el-input-number",{attrs:{value:e.queues.scheduled_activities,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"queues","scheduled_activities")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Background"}},[a("el-input-number",{attrs:{value:e.queues.background,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"queues","background")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"retryQueue",attrs:{model:e.retryQueue,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Retry queue:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Enabled"}},[a("el-switch",{attrs:{value:e.retryQueue.enabled},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Federator.RetryQueue","enabled")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("If set to true, failed federation jobs will be retried")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max jobs"}},[a("el-input-number",{attrs:{value:e.retryQueue.max_jobs,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Federator.RetryQueue","max_jobs")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The maximum amount of parallel federation jobs running at the same time.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Initial timeout (s)"}},[a("el-input-number",{attrs:{value:e.retryQueue.initial_timeout,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Federator.RetryQueue","initial_timeout")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The initial timeout in seconds")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max retries"}},[a("el-input-number",{attrs:{value:e.retryQueue.max_retries,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Federator.RetryQueue","max_retries")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The maximum number of times a federation job is retried")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));X.options.__file="JobQueue.vue";var Y=X.exports,Z={name:"Logger",computed:c()({},Object(p.b)(["consoleLogger","exsyslogger","level","loggerBackends","meta","webhookUrl"]),{loggerBackendsValue:function(){return this.loggerBackends.value?this.loggerBackends.value.map(function(e){return JSON.stringify(e)}):[]},loggerBackendsOptions:function(){return L.loggerBackendsOptions},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{processNestedData:function(e,t,a,s){var n=c()({},this.$store.state.settings.settings[t][a],o()({},s,e));this.updateSetting(n,t,a)},updateloggerBackends:function(e,t,a){var s=e.map(function(e){return JSON.parse(e)});this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,s)})},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},ee=(a("mADP"),Object(v.a)(Z,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"loggerBackends",attrs:{model:e.loggerBackends,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Backends"}},[a("el-select",{attrs:{value:e.loggerBackendsValue,multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateloggerBackends(t,"backends","value")}}},e._l(e.loggerBackendsOptions,function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("p",{staticClass:"expl"},[a("span",{staticClass:"code"},[e._v(":console")]),e._v(" is used to send logs to stdout, "),a("span",{staticClass:"code"},[e._v("{ExSyslogger, :ex_syslogger}")]),e._v(" to log to syslog, and "),a("span",{staticClass:"code"},[e._v("Quack.Logger")]),e._v(" to log to Slack")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"consoleLogger",attrs:{model:e.consoleLogger,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Console logger:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Level"}},[a("el-select",{attrs:{value:e.consoleLogger.level,clearable:""},on:{change:function(t){return e.updateSetting(t,"console","level")}}},[a("el-option",{attrs:{value:":debug",label:":debug - for debug-related messages"}}),e._v(" "),a("el-option",{attrs:{value:":info",label:":info - for information of any kind"}}),e._v(" "),a("el-option",{attrs:{value:":warn",label:":warn - for warnings"}}),e._v(" "),a("el-option",{attrs:{value:":error",label:":error - for errors"}})],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("The level to be logged by this backend. Note that messages are filtered by the general\n      "),a("span",{staticClass:"code"},[e._v(":level")]),e._v(" configuration for the "),a("span",{staticClass:"code"},[e._v(":logger")]),e._v(" application first.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Format"}},[a("el-input",{attrs:{value:e.consoleLogger.format},on:{input:function(t){return e.updateSetting(t,"console","format")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The format message used to print logs. ")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Metadata"}},[a("el-select",{attrs:{value:e.consoleLogger.metadata||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"console","metadata")}}},[a("el-option",{attrs:{value:":all"}}),e._v(" "),a("el-option",{attrs:{value:":request_id"}}),e._v(" "),a("el-option",{attrs:{value:":line"}}),e._v(" "),a("el-option",{attrs:{value:":user_id"}}),e._v(" "),a("el-option",{attrs:{value:":application"}}),e._v(" "),a("el-option",{attrs:{value:":function"}}),e._v(" "),a("el-option",{attrs:{value:":file"}}),e._v(" "),a("el-option",{attrs:{value:":pid"}}),e._v(" "),a("el-option",{attrs:{value:":crash_reason"}}),e._v(" "),a("el-option",{attrs:{value:":initial_call"}}),e._v(" "),a("el-option",{attrs:{value:":registered_name"}}),e._v(" "),a("el-option",{attrs:{value:":none"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"Device"}},[a("el-input",{attrs:{value:e.consoleLogger.device},on:{input:function(t){return e.updateSetting(t,"console","device")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The device to log error messages to. Defaults to "),a("span",{staticClass:"code"},[e._v(":user")]),e._v("\n        but can be changed to something else such as "),a("span",{staticClass:"code"},[e._v(":standard_error")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max buffer"}},[a("el-input-number",{attrs:{value:e.consoleLogger.max_buffer,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"console","max_buffer")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Maximum events to buffer while waiting for a confirmation from the IO device (default: 32). Once the buffer is full, the backend will block until a confirmation is received.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Colors:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Enabled"}},[a("el-switch",{attrs:{value:e.consoleLogger.colors.enabled},on:{change:function(t){return e.processNestedData(t,"console","colors","enabled")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Debug message"}},[a("el-input",{attrs:{value:e.consoleLogger.colors.debug},on:{input:function(t){return e.processNestedData(t,"console","colors","debug")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Defaults to: "),a("span",{staticClass:"code"},[e._v(":cyan")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Info message"}},[a("el-input",{attrs:{value:e.consoleLogger.colors.info},on:{input:function(t){return e.processNestedData(t,"console","colors","info")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Defaults to: "),a("span",{staticClass:"code"},[e._v(":normal")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Warn message"}},[a("el-input",{attrs:{value:e.consoleLogger.colors.warn},on:{input:function(t){return e.processNestedData(t,"console","colors","warn")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Defaults to: "),a("span",{staticClass:"code"},[e._v(":yellow")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Error message"}},[a("el-input",{attrs:{value:e.consoleLogger.colors.error},on:{input:function(t){return e.processNestedData(t,"console","colors","error")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Defaults to: "),a("span",{staticClass:"code"},[e._v(":red")])])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"exsyslogger",attrs:{model:e.exsyslogger,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"ExSyslogger:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Level"}},[a("el-select",{attrs:{value:e.exsyslogger.level,clearable:""},on:{change:function(t){return e.updateSetting(t,"ex_syslogger","level")}}},[a("el-option",{attrs:{value:":debug",label:":debug - for debug-related messages"}}),e._v(" "),a("el-option",{attrs:{value:":info",label:":info - for information of any kind"}}),e._v(" "),a("el-option",{attrs:{value:":warn",label:":warn - for warnings"}}),e._v(" "),a("el-option",{attrs:{value:":error",label:":error - for errors"}})],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("Logging level. It defaults to "),a("span",{staticClass:"code"},[e._v(":info.")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Format"}},[a("el-input",{attrs:{value:e.exsyslogger.format},on:{input:function(t){return e.updateSetting(t,"ex_syslogger","format")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The format message used to print logs.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Formatter"}},[a("el-input",{attrs:{value:e.exsyslogger.formatter},on:{input:function(t){return e.updateSetting(t,"ex_syslogger","formatter")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Formatter that will be used to format the log. It default to "),a("span",{staticClass:"code"},[e._v("Logger.Formatter")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Metadata"}},[a("el-select",{attrs:{value:e.exsyslogger.metadata||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"ex_syslogger","metadata")}}},[a("el-option",{attrs:{value:":all"}}),e._v(" "),a("el-option",{attrs:{value:":request_id"}}),e._v(" "),a("el-option",{attrs:{value:":line"}}),e._v(" "),a("el-option",{attrs:{value:":user_id"}}),e._v(" "),a("el-option",{attrs:{value:":application"}}),e._v(" "),a("el-option",{attrs:{value:":function"}}),e._v(" "),a("el-option",{attrs:{value:":file"}}),e._v(" "),a("el-option",{attrs:{value:":pid"}}),e._v(" "),a("el-option",{attrs:{value:":crash_reason"}}),e._v(" "),a("el-option",{attrs:{value:":initial_call"}}),e._v(" "),a("el-option",{attrs:{value:":registered_name"}}),e._v(" "),a("el-option",{attrs:{value:":none"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"Ident"}},[a("el-input",{attrs:{value:e.exsyslogger.ident},on:{input:function(t){return e.updateSetting(t,"ex_syslogger","ident")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A string that’s prepended to every message, and is typically set to the app name. It defaults to "),a("span",{staticClass:"code"},[e._v("Elixir")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Facility"}},[a("el-input",{attrs:{value:e.exsyslogger.facility},on:{input:function(t){return e.updateSetting(t,"ex_syslogger","facility")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Syslog facility to be used. It defaults to "),a("span",{staticClass:"code"},[e._v(":local0")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Options"}},[a("el-select",{attrs:{value:e.exsyslogger.option||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"ex_syslogger","option")}}},[a("el-option",{attrs:{value:":pid"}}),e._v(" "),a("el-option",{attrs:{value:":cons"}}),e._v(" "),a("el-option",{attrs:{value:":odelay"}}),e._v(" "),a("el-option",{attrs:{value:":ndelay"}}),e._v(" "),a("el-option",{attrs:{value:":perror"}})],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("Syslog option to be used. It defaults to "),a("span",{staticClass:"code"},[e._v(":ndelay.")])])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"webhookUrl",attrs:{model:e.webhookUrl,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Quack logger:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Webhook URL"}},[a("el-input",{attrs:{value:e.webhookUrl.value},on:{input:function(t){return e.updateSetting(t,"webhook_url","value")}}})],1)],1),e._v(" "),a("el-form",{ref:"level",attrs:{model:e.level,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Level"}},[a("el-select",{attrs:{value:e.level.value,clearable:""},on:{change:function(t){return e.updateSetting(t,"level","value")}}},[a("el-option",{attrs:{value:":debug",label:":debug - for debug-related messages"}}),e._v(" "),a("el-option",{attrs:{value:":info",label:":info - for information of any kind"}}),e._v(" "),a("el-option",{attrs:{value:":warn",label:":warn - for warnings"}}),e._v(" "),a("el-option",{attrs:{value:":error",label:":error - for errors"}})],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("Logging level. It defaults to "),a("span",{staticClass:"code"},[e._v(":info.")])])],1)],1),e._v(" "),a("el-form",{ref:"meta",attrs:{model:e.meta,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Metadata"}},[a("el-select",{attrs:{value:e.meta.value||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"meta","value")}}},[a("el-option",{attrs:{value:":all"}}),e._v(" "),a("el-option",{attrs:{value:":module"}}),e._v(" "),a("el-option",{attrs:{value:":function"}}),e._v(" "),a("el-option",{attrs:{value:":file"}}),e._v(" "),a("el-option",{attrs:{value:":application"}}),e._v(" "),a("el-option",{attrs:{value:":line"}}),e._v(" "),a("el-option",{attrs:{value:":pid"}}),e._v(" "),a("el-option",{attrs:{value:":crash_reason"}}),e._v(" "),a("el-option",{attrs:{value:":initial_call"}}),e._v(" "),a("el-option",{attrs:{value:":registered_name"}}),e._v(" "),a("el-option",{attrs:{value:":none"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));ee.options.__file="Logger.vue";var te=ee.exports,ae={name:"Mailer",components:{editor:M.a},computed:c()({},Object(p.b)(["emailNotifications","mailer","userEmail"]),{editorContent:{get:function(){return this.mailer.dkim?this.mailer.dkim[0]:""},set:function(e){this.updateSetting([e],"Pleroma.Emails.Mailer","dkim")}},adapterOptions:function(){return L.adapterOptions},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{processNestedData:function(e,t,a,s){var n=c()({},this.$store.state.settings.settings[t][a],o()({},s,e));this.updateSetting(n,t,a)},sendEmailLogo:function(e){var t=e.file;this.$store.dispatch("UploadMedia",{file:t,tab:"Pleroma.Emails.UserEmail",inputName:"logo"})},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},se=(a("PygS"),Object(v.a)(ae,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"mailer",attrs:{model:e.mailer,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Enabled"}},[a("el-switch",{attrs:{value:e.mailer.enabled},on:{change:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","enabled")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Allows to enable or disable sending emails. Defaults to false.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Adapter"}},[a("el-select",{attrs:{value:e.mailer.adapter,clearable:""},on:{change:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","adapter")}}},e._l(e.adapterOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),"Swoosh.Adapters.Sendmail"===e.mailer.adapter?a("div",[a("el-form-item",{attrs:{label:"CMD Path"}},[a("el-input",{attrs:{value:e.mailer.cmd_path},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","cmd_path")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("E. g. "),a("span",{staticClass:"code"},[e._v('/usr/bin/sendmail"')])])],1),e._v(" "),a("el-form-item",{attrs:{label:"CMD Args"}},[a("el-input",{attrs:{value:e.mailer.cmd_args},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","cmd_args")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("E. g. "),a("span",{staticClass:"code"},[e._v("-N delay,failure,success")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Qmail"}},[a("el-switch",{attrs:{value:e.mailer.qmail},on:{change:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","qmail")}}})],1)],1):e._e(),e._v(" "),"Swoosh.Adapters.SMTP"===e.mailer.adapter?a("div",[a("el-form-item",{attrs:{label:"Relay"}},[a("el-input",{attrs:{value:e.mailer.relay},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","relay")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("E. g. "),a("span",{staticClass:"code"},[e._v("smtp.avengers.com")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Username"}},[a("el-input",{attrs:{value:e.mailer.username},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","username")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Password"}},[a("el-input",{attrs:{value:e.mailer.password},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","password")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"SSL"}},[a("el-switch",{attrs:{value:e.mailer.ssl},on:{change:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","ssl")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"TLS"}},[a("el-input",{attrs:{value:e.mailer.tls},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","tls")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("E.g. "),a("span",{staticClass:"code"},[e._v(":always")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Auth"}},[a("el-input",{attrs:{value:e.mailer.auth},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","auth")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("E.g. "),a("span",{staticClass:"code"},[e._v(":always")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Port"}},[a("el-input",{attrs:{value:e.mailer.port},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","port")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"DKIM"}},[a("editor",{attrs:{height:"150",width:"100%",lang:"elixir",theme:"chrome"},model:{value:e.editorContent,callback:function(t){e.editorContent=t},expression:"editorContent"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Retries"}},[a("el-input-number",{attrs:{value:e.mailer.retries,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","retries")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"No mx lookups"}},[a("el-switch",{attrs:{value:e.mailer.no_mx_lookups},on:{change:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","no_mx_lookups")}}})],1)],1):e._e(),e._v(" "),"Swoosh.Adapters.Sendgrid"===e.mailer.adapter?a("div",[a("el-form-item",{attrs:{label:"API key"}},[a("el-input",{attrs:{value:e.mailer.api_key},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","api_key")}}})],1)],1):e._e(),e._v(" "),"Swoosh.Adapters.Mandrill"===e.mailer.adapter?a("div",[a("el-form-item",{attrs:{label:"API key"}},[a("el-input",{attrs:{value:e.mailer.api_key},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","api_key")}}})],1)],1):e._e(),e._v(" "),"Swoosh.Adapters.Mailgun"===e.mailer.adapter?a("div",[a("el-form-item",{attrs:{label:"API key"}},[a("el-input",{attrs:{value:e.mailer.api_key},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","api_key")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Domain"}},[a("el-input",{attrs:{value:e.mailer.domain},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","domain")}}})],1)],1):e._e(),e._v(" "),"Swoosh.Adapters.Mailjet"===e.mailer.adapter?a("div",[a("el-form-item",{attrs:{label:"API key"}},[a("el-input",{attrs:{value:e.mailer.api_key},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","api_key")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Secret"}},[a("el-input",{attrs:{value:e.mailer.secret},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","secret")}}})],1)],1):e._e(),e._v(" "),"Swoosh.Adapters.Postmark"===e.mailer.adapter?a("div",[a("el-form-item",{attrs:{label:"API key"}},[a("el-input",{attrs:{value:e.mailer.api_key},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","api_key")}}})],1)],1):e._e(),e._v(" "),"Swoosh.Adapters.SparkPost"===e.mailer.adapter?a("div",[a("el-form-item",{attrs:{label:"API key"}},[a("el-input",{attrs:{value:e.mailer.api_key},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","api_key")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Endpoint"}},[a("el-input",{attrs:{value:e.mailer.endpoint},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","endpoint")}}})],1)],1):e._e(),e._v(" "),"Swoosh.Adapters.AmazonSES"===e.mailer.adapter?a("div",[a("el-form-item",{attrs:{label:"Region"}},[a("el-input",{attrs:{value:e.mailer.region},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","region")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Access key"}},[a("el-input",{attrs:{value:e.mailer.access_key},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","access_key")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Secret"}},[a("el-input",{attrs:{value:e.mailer.secret},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","secret")}}})],1)],1):e._e(),e._v(" "),"Swoosh.Adapters.Dyn"===e.mailer.adapter?a("div",[a("el-form-item",{attrs:{label:"API key"}},[a("el-input",{attrs:{value:e.mailer.api_key},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","api_key")}}})],1)],1):e._e(),e._v(" "),"Swoosh.Adapters.SocketLabs"===e.mailer.adapter?a("div",[a("el-form-item",{attrs:{label:"Server ID"}},[a("el-input",{attrs:{value:e.mailer.server_id},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","server_id")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"API key"}},[a("el-input",{attrs:{value:e.mailer.api_key},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","api_key")}}})],1)],1):e._e(),e._v(" "),"Swoosh.Adapters.Gmail"===e.mailer.adapter?a("div",[a("el-form-item",{attrs:{label:"Access token"}},[a("el-input",{attrs:{value:e.mailer.access_token},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.Mailer","access_token")}}})],1)],1):e._e()],1),e._v(" "),a("el-form",{ref:"emailNotifications",attrs:{model:e.emailNotifications,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Email notifications"}}),e._v(" "),a("el-form-item",{attrs:{label:"Digest:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Active"}},[a("el-switch",{attrs:{value:e.emailNotifications.digest.active},on:{change:function(t){return e.processNestedData(t,"email_notifications","digest","active")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Globally enable or disable digest emails.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Schedule"}},[a("el-input",{attrs:{value:e.emailNotifications.digest.schedule},on:{input:function(t){return e.processNestedData(t,"email_notifications","digest","schedule")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("When to send digest email, in "),a("a",{attrs:{href:"https://en.wikipedia.org/wiki/Cron",rel:"nofollow noreferrer noopener",target:"_blank"}},[e._v("\n        crontab format\n      ")]),e._v('.\n      "0 0 * * 0" is the default, meaning "once a week at midnight on Sunday morning"')])],1),e._v(" "),a("el-form-item",{attrs:{label:"Interval"}},[a("el-input-number",{attrs:{value:e.emailNotifications.digest.interval,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(t,"email_notifications","digest","interval")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Minimum interval between digest emails to one user.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Inactivity threshold"}},[a("el-input-number",{attrs:{value:e.emailNotifications.digest.inactivity_threshold,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(t,"email_notifications","digest","inactivity_threshold")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Minimum user inactivity threshold.")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"userEmail",attrs:{model:e.userEmail,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Digest template styles:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Logo"}},[a("el-input",{attrs:{value:e.userEmail.logo},on:{input:function(t){return e.updateSetting(t,"Pleroma.Emails.UserEmail","logo")}}}),e._v(" "),a("div",{staticClass:"upload-container"},[a("p",{staticClass:"text"},[e._v("or")]),e._v(" "),a("el-upload",{attrs:{"http-request":e.sendEmailLogo,multiple:!1,"show-file-list":!1,action:"/api/v1/media"}},[a("el-button",{attrs:{size:"small",type:"primary"}},[e._v("Click to upload")])],1)],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("A path to a custom logo.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Styling:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Link color"}},[a("el-input",{attrs:{value:e.userEmail.styling.link_color},on:{input:function(t){return e.processNestedData(t,"Pleroma.Emails.UserEmail","styling","link_color")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Background color"}},[a("el-input",{attrs:{value:e.userEmail.styling.background_color},on:{input:function(t){return e.processNestedData(t,"Pleroma.Emails.UserEmail","styling","background_color")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Content background color"}},[a("el-input",{attrs:{value:e.userEmail.styling.content_background_color},on:{input:function(t){return e.processNestedData(t,"Pleroma.Emails.UserEmail","styling","content_background_color")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Header color"}},[a("el-input",{attrs:{value:e.userEmail.styling.header_color},on:{input:function(t){return e.processNestedData(t,"Pleroma.Emails.UserEmail","styling","header_color")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Text color"}},[a("el-input",{attrs:{value:e.userEmail.styling.text_color},on:{input:function(t){return e.processNestedData(t,"Pleroma.Emails.UserEmail","styling","text_color")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Text muted color"}},[a("el-input",{attrs:{value:e.userEmail.styling.text_muted_color},on:{input:function(t){return e.processNestedData(t,"Pleroma.Emails.UserEmail","styling","text_muted_color")}}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));se.options.__file="Mailer.vue";var ne=se.exports,ie={name:"MediaProxy",computed:c()({},Object(p.b)(["mediaProxy"]),{inlineContentTypes:function(){return Array.isArray(this.mediaProxy.proxy_opts.inline_content_types)?"whitelistedTypeArray":this.mediaProxy.proxy_opts.inline_content_types},http:function(){return this.mediaProxy.proxy_opts.http||{}},reqHeadersOptions:function(){return this.mediaProxySettings.reqHeadersOptions},hackneyPoolsOptions:function(){return L.hackneyPoolsOptions},whitelistedContentTypes:function(){return Array.isArray(this.mediaProxy.proxy_opts.inline_content_types)?this.mediaProxy.proxy_opts.inline_content_types:[]},whitelistedContentTypesOptions:function(){return L.whitelistedContentTypesOptions},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{getPoolExpl:function(e){var t=this.hackneyPoolsOptions.find(function(t){return t.value===e});return t?"Max connections: "+t.max_connections+", timeout: "+t.timeout:""},processHttpSettings:function(e,t,a,s,n){var i=c()({},this.mediaProxy[a][s],o()({},n,e));this.processNestedData(i,t,a,s)},processNestedData:function(e,t,a,s){var n=c()({},this.$store.state.settings.settings[t][a],o()({},s,e));this.updateSetting(n,t,a)},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},le=(a("UdS4"),Object(v.a)(ie,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"mediaProxy",attrs:{model:e.mediaProxy,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Enabled"}},[a("el-switch",{attrs:{value:e.mediaProxy.enabled},on:{change:function(t){return e.updateSetting(t,"media_proxy","enabled")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Enables proxying of remote media to the instance’s proxy")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Base URL"}},[a("el-input",{attrs:{value:e.mediaProxy.base_url},on:{input:function(t){return e.updateSetting(t,"media_proxy","base_url")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The base URL to access a user-uploaded file. Useful when you want to proxy the media files via another host/CDN fronts.")])],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"Proxy options:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Redirect on failure"}},[a("el-switch",{attrs:{value:e.mediaProxy.proxy_opts.redirect_on_failure},on:{change:function(t){return e.processNestedData(t,"media_proxy","proxy_opts","redirect_on_failure")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Redirects the client to the real remote URL if there's any HTTP errors. Any error during body processing will not be redirected as the response is chunked")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max body length (MB)"}},[a("el-input-number",{attrs:{value:e.mediaProxy.proxy_opts.max_body_length/1048576,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(1048576*t,"media_proxy","proxy_opts","max_body_length")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Limits the content length to be approximately the specified length")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max read duration (s)"}},[a("el-input-number",{attrs:{value:e.mediaProxy.proxy_opts.max_read_duration,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(t,"media_proxy","proxy_opts","max_read_duration")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The total time the connection is allowed to read from the remote upstream")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Inline content types"}},[a("el-select",{attrs:{value:e.inlineContentTypes,clearable:""},on:{change:function(t){return e.processNestedData(t,"media_proxy","proxy_opts","inline_content_types")}}},[a("el-option",{attrs:{value:!0,label:"True"}}),e._v(" "),a("el-option",{attrs:{value:!1,label:"False"}}),e._v(" "),a("el-option",{attrs:{value:"whitelistedTypeArray",label:"List of whitelisted content types"}}),e._v(" "),a("el-option",{attrs:{value:"keepUserAgent",label:"Forward client's user-agent to the upstream"}})],1),e._v(" "),!0===e.inlineContentTypes?a("p",{staticClass:"expl"},[e._v("Will not alter "),a("span",{staticClass:"code"},[e._v("content-disposition")]),e._v(" (up to the upstream)")]):e._e(),e._v(" "),e.inlineContentTypes?e._e():a("p",{staticClass:"expl"},[e._v("Will add "),a("span",{staticClass:"code"},[e._v("content-disposition: attachment")]),e._v(" to any request")]),e._v(" "),"keepUserAgent"===e.inlineContentTypes?a("p",{staticClass:"expl"},[e._v("\n      Will forward the client's user-agent to the upstream. This may be useful if the upstream is\n      doing content transformation (encoding, …) depending on the request.\n    ")]):e._e()],1),e._v(" "),"whitelistedTypeArray"===e.inlineContentTypes?a("el-form-item",{attrs:{label:"Whitelisted content types"}},[a("el-select",{attrs:{value:e.whitelistedContentTypes,multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.processNestedData(t,"media_proxy","proxy_opts","inline_content_types")}}},e._l(e.whitelistedContentTypesOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"Request headers"}},[a("el-select",{attrs:{value:e.mediaProxy.proxy_opts.req_headers||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.processNestedData(t,"media_proxy","proxy_opts","req_headers")}}}),e._v(" "),a("p",{staticClass:"expl"},[a("span",{staticClass:"code"},[e._v("resp_headers")]),e._v(" additional headers")])],1),e._v(" "),a("el-form-item",{attrs:{label:"HTTP:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Follow redirect"}},[a("el-switch",{attrs:{value:e.http.follow_redirect},on:{change:function(t){return e.processHttpSettings(t,"media_proxy","proxy_opts","http","follow_redirect")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Pool"}},[a("el-select",{attrs:{value:e.http.pool,clearable:""},on:{change:function(t){return e.processHttpSettings(t,"media_proxy","proxy_opts","http","pool")}}},e._l(e.hackneyPoolsOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("p",{staticClass:"expl"},[e._v(e._s(e.getPoolExpl(e.http.pool)))])],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"Whitelist"}},[a("el-select",{attrs:{value:e.mediaProxy.whitelist||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"media_proxy","whitelist")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of domains to bypass the mediaproxy")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)},[],!1,null,null,null));le.options.__file="MediaProxy.vue";var re=le.exports,oe={name:"Metadata",computed:c()({},Object(p.b)(["metadata","richMedia"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},ue=(a("apN7"),Object(v.a)(oe,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"metadata",attrs:{model:e.metadata,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Providers"}},[a("el-select",{attrs:{value:e.metadata.providers||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Metadata","providers")}}},[a("el-option",{attrs:{value:"Pleroma.Web.Metadata.Providers.OpenGraph"}}),e._v(" "),a("el-option",{attrs:{value:"Pleroma.Web.Metadata.Providers.TwitterCard"}}),e._v(" "),a("el-option",{attrs:{value:"Pleroma.Web.Metadata.Providers.RelMe"}})],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("A list of metadata providers to enable.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Unfurl NSFW"}},[a("el-switch",{attrs:{value:e.metadata.unfurl_nsfw},on:{change:function(t){return e.updateSetting(t,"Pleroma.Web.Metadata","unfurl_nsfw")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("If set to true nsfw attachments will be shown in previews.")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"richMedia",attrs:{model:e.richMedia,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Rich media:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Enabled"}},[a("el-switch",{attrs:{value:e.richMedia.enabled},on:{change:function(t){return e.updateSetting(t,"rich_media","enabled")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("If enabled the instance will parse metadata from attached links to generate link previews.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Ignore hosts"}},[a("el-select",{attrs:{value:e.richMedia.ignore_hosts||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"rich_media","ignore_hosts")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of hosts which will be ignored by the metadata parser.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Ignore TLD"}},[a("el-select",{attrs:{value:e.richMedia.ignore_tld||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"rich_media","ignore_tld")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("List TLDs (top-level domains) which will ignore for parse metadata.\n      Default is "),a("span",{staticClass:"code"},[e._v('["local", "localdomain", "lan"]')])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Parsers"}},[a("el-select",{attrs:{value:e.richMedia.parsers||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"rich_media","parsers")}}},[a("el-option",{attrs:{value:"Pleroma.Web.RichMedia.Parsers.TwitterCard"}}),e._v(" "),a("el-option",{attrs:{value:"Pleroma.Web.RichMedia.Parsers.OGP"}}),e._v(" "),a("el-option",{attrs:{value:"Pleroma.Web.RichMedia.Parsers.OEmbed"}})],1),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of Rich Media parsers")])],1),e._v(" "),a("el-form-item",{attrs:{label:"TTL Setters"}},[a("el-select",{attrs:{value:e.richMedia.ttl_setters||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"rich_media","ttl_setters")}}},[a("el-option",{attrs:{value:"Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));ue.options.__file="Metadata.vue";var ce=ue.exports,pe={name:"MRF",data:function(){return{removableDoubleOptions:["replace","mrfUserAllowlist"],removableSingleOptions:["keywordReject","federatedTimelineRemoval"]}},computed:c()({},Object(p.b)(["mrfHellthread","mrfKeyword","mrfMention","mrfNormalizeMarkup","mrfSimple","mrfSubchain","mrfRejectnonpublic","mrfUserAllowlist","mrfVocabulary"]),{matchActor:function(){var e=this;return Object.keys(this.mrfSubchain.match_actor).map(function(t){return[t,e.mrfSubchain.match_actor[t]]})},policiesOptions:function(){return L.rewritePolicyOptions},replacePatterns:function(){var e=this;return Object.keys(this.mrfKeyword.replace).map(function(t){return[t,e.mrfKeyword.replace[t]]})},userAllowlist:function(){var e=this;return Object.keys(this.mrfUserAllowlist).map(function(t){return[t,e.mrfUserAllowlist[t]]})},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{addMrfSubchainRow:function(){var e=this.matchActor.reduce(function(e,t,a){return c()({},e,o()({},t[0],t[1]))},{});this.updateSetting(c()({},e,{"":[]}),"mrf_subchain","match_actor")},addMrfUserAllowlistRow:function(){var e=this.userAllowlist.reduce(function(e,t,a){return c()({},e,o()({},t[0],t[1]))},{});this.$store.dispatch("RewriteConfig",{data:c()({},e,{"":[]}),tab:"mrf_user_allowlist"})},addReplaceRow:function(){var e=this.replacePatterns.reduce(function(e,t,a){return c()({},e,o()({},t[0],t[1]))},{});this.updateSetting(c()({},e,{"":""}),"mrf_keyword","replace")},deleteMrfSubchainRow:function(e){var t=this.matchActor.filter(function(t,a){return e!==a}).reduce(function(e,t,a){return c()({},e,o()({},t[0],t[1]))},{});this.updateSetting(t,"mrf_subchain","match_actor")},deleteMrfUserAllowlistRow:function(e){var t=this.userAllowlist.filter(function(t,a){return e!==a}).reduce(function(e,t,a){return c()({},e,o()({},t[0],t[1]))},{});this.$store.dispatch("RewriteConfig",{data:t,tab:"mrf_user_allowlist"})},deleteReplaceRow:function(e){var t=this.replacePatterns.filter(function(t,a){return e!==a}).reduce(function(e,t,a){return c()({},e,o()({},t[0],t[1]))},{});this.updateSetting(t,"mrf_keyword","replace")},parseMrfSubchain:function(e,t,a){var s=this.matchActor.reduce(function(s,n,i){return a===i?"regExp"===t?c()({},s,o()({},e,n[1])):c()({},s,o()({},n[0],e)):c()({},s,o()({},n[0],n[1]))},{});this.updateSetting(s,"mrf_subchain","match_actor")},parseMrfUserAllowlist:function(e,t,a){var s=this.userAllowlist.reduce(function(s,n,i){return a===i?"domain"===t?c()({},s,o()({},e,n[1])):c()({},s,o()({},n[0],e)):c()({},s,o()({},n[0],n[1]))},{});this.$store.dispatch("RewriteConfig",{data:s,tab:"mrf_user_allowlist"})},parseReplace:function(e,t,a){var s=this.replacePatterns.reduce(function(s,n,i){return a===i?"key"===t?c()({},s,o()({},e,n[1])):c()({},s,o()({},n[0],e)):c()({},s,o()({},n[0],n[1]))},{});this.updateSetting(s,"mrf_keyword","replace")},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},me=(a("h9z7"),Object(v.a)(pe,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"mrfSimple",attrs:{model:e.mrfSimple,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"MRF Simple:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Media removal"}},[a("el-select",{attrs:{value:e.mrfSimple.media_removal||[],multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_simple","media_removal")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of instances to remove medias from")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Media NSFW"}},[a("el-select",{attrs:{value:e.mrfSimple.media_nsfw||[],multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_simple","media_nsfw")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of instances to put medias as NSFW (sensitive)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Federated timeline removal"}},[a("el-select",{attrs:{value:e.mrfSimple.federated_timeline_removal||[],multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_simple","federated_timeline_removal")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of instances to remove from Federated (aka The Whole Known Network) Timeline")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Reject"}},[a("el-select",{attrs:{value:e.mrfSimple.reject||[],multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_simple","reject")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of instances to reject any activities from")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Accept"}},[a("el-select",{attrs:{value:e.mrfSimple.accept||[],multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_simple","accept")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of instances to accept any activities from")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Report removal"}},[a("el-select",{attrs:{value:e.mrfSimple.report_removal||[],multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_simple","report_removal")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of instances to reject reports from")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Avatar removal"}},[a("el-select",{attrs:{value:e.mrfSimple.avatar_removal||[],multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_simple","avatar_removal")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of instances to strip avatars from")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Banner removal"}},[a("el-select",{attrs:{value:e.mrfSimple.banner_removal||[],multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_simple","banner_removal")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("List of instances to strip banners from")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"mrfRejectnonpublic",attrs:{model:e.mrfRejectnonpublic,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"MRF Reject non public:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Allow followers-only posts"}},[a("el-switch",{attrs:{value:e.mrfRejectnonpublic.allow_followersonly},on:{change:function(t){return e.updateSetting(t,"mrf_rejectnonpublic","allow_followersonly")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Allow direct messages"}},[a("el-switch",{attrs:{value:e.mrfRejectnonpublic.allow_direct},on:{change:function(t){return e.updateSetting(t,"mrf_rejectnonpublic","allow_direct")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"mrfHellthread",attrs:{model:e.mrfHellthread,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"MRF Hellthread:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Delist threshold"}},[a("el-input-number",{attrs:{value:e.mrfHellthread.delist_threshold,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"mrf_hellthread","delist_threshold")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Number of mentioned users after which the message gets delisted\n      (the message can still be seen, but it will not show up in public timelines and mentioned users won't get notifications about it).\n      Set to 0 to disable.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Reject threshold"}},[a("el-input-number",{attrs:{value:e.mrfHellthread.reject_threshold,step:1,min:0,size:"large"},on:{change:function(t){return e.updateSetting(t,"mrf_hellthread","reject_threshold")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Number of mentioned users after which the messaged gets rejected. Set to 0 to disable.")])],1)],1),e._v(" "),a("el-form",{ref:"mrfKeyword",attrs:{model:e.mrfKeyword,"label-width":e.labelWidth}},[a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"MRF Keyword:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Reject"}},[a("el-select",{attrs:{value:e.mrfKeyword.reject||[],multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_keyword","reject")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A list of patterns which result in message being rejected")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Federated timeline removal"}},[a("el-select",{attrs:{value:e.mrfKeyword.federated_timeline_removal,multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_keyword","federated_timeline_removal")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A list of patterns which result in message being removed from federated timelines (a.k.a unlisted)")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Replace"}},[e._l(e.replacePatterns,function(t,s){var n=t[0],i=t[1];return a("div",{key:s,staticClass:"setting-input"},[a("el-input",{staticClass:"name-input",attrs:{value:n,placeholder:"pattern"},on:{input:function(t){return e.parseReplace(t,"key",s)}}}),e._v(" :\n        "),a("el-input",{staticClass:"value-input",attrs:{value:i,placeholder:"replacement"},on:{input:function(t){return e.parseReplace(t,"value",s)}}}),e._v(" "),a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.deleteReplaceRow(s)}}})],1)}),e._v(" "),a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:e.addReplaceRow}})],2)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"mrfSubchain",attrs:{model:e.mrfSubchain,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"MRF Subchain:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Match actor:"}},[e._l(e.matchActor,function(t,s){var n=t[0],i=t[1];return a("div",{key:s,staticClass:"setting-input"},[a("el-input",{staticClass:"name-input",attrs:{value:n,placeholder:"Regular expression"},on:{input:function(t){return e.parseMrfSubchain(t,"regExp",s)}}}),e._v(" :\n        "),a("el-select",{staticClass:"value-input",attrs:{value:i,placeholder:"Policy modules",multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.parseMrfSubchain(t,"policies",s)}}},e._l(e.policiesOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.deleteMrfSubchainRow(s)}}})],1)}),e._v(" "),a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:e.addMrfSubchainRow}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Matches a series of regular expressions against the actor field.")])],2)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"mrfMention",attrs:{model:e.mrfMention,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"MRF Mention:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Actors"}},[a("el-select",{attrs:{value:e.mrfMention.actors||[],multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_mention","actors")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A list of actors, for which to drop any posts mentioning.")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"mrfUserAllowlist",attrs:{model:e.mrfUserAllowlist,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"MRF User allowlist"}},[e._l(e.userAllowlist,function(t,s){var n=t[0],i=t[1];return a("div",{key:s,staticClass:"setting-input"},[a("el-input",{staticClass:"name-input",attrs:{value:n,placeholder:"domain"},on:{input:function(t){return e.parseMrfUserAllowlist(t,"domain",s)}}}),e._v(" :\n        "),a("el-select",{staticClass:"value-input",attrs:{value:i,placeholder:"list of users",multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.parseMrfUserAllowlist(t,"users",s)}}}),e._v(" "),a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.deleteMrfUserAllowlistRow(s)}}})],1)}),e._v(" "),a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:e.addMrfUserAllowlistRow}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The keys in this section are the domain names that the policy should apply to. Each key should be assigned a list of users that should be allowed through by their ActivityPub ID.")])],2)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"mrfNormalizeMarkup",attrs:{model:e.mrfNormalizeMarkup,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"MRF normalize markup:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Scrub policy"}},[a("el-input",{attrs:{value:e.mrfNormalizeMarkup.scrub_policy},on:{input:function(t){return e.updateSetting(t,"mrf_normalize_markup","scrub_policy")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"mrfVocabulary",attrs:{model:e.mrfVocabulary,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"MRF Vocabulary:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Accept"}},[a("el-select",{attrs:{value:e.mrfVocabulary.accept||[],multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_vocabulary","accept")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A list of ActivityStreams terms to accept.  If empty, all supported messages are accepted.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Reject"}},[a("el-select",{attrs:{value:e.mrfVocabulary.reject||[],multiple:"","allow-create":"",filterable:""},on:{change:function(t){return e.updateSetting(t,"mrf_vocabulary","reject")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A list of ActivityStreams terms to reject.  If empty, no messages are rejected.")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));me.options.__file="MRF.vue";var de=me.exports,ve={name:"Other",computed:c()({},Object(p.b)(["formatEncoders","mimeTypesConfig","teslaAdapter"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"},mimeTypes:function(){var e=this;return Object.keys(this.mimeTypesConfig.value).map(function(t){return[t,e.mimeTypesConfig.value[t]]})}}),methods:{addRowToMimeTypes:function(){var e=this.mimeTypes.reduce(function(e,t,a){return c()({},e,o()({},t[0],t[1]))},{});this.updateSetting(c()({},e,{"":[]}),"types","value")},deleteMimeTypes:function(e){var t=this.mimeTypes.filter(function(t,a){return e!==a}).reduce(function(e,t,a){return c()({},e,o()({},t[0],t[1]))},{});this.updateSetting(t,"types","value")},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}(),parseMimeTypes:function(e,t,a){var s=this.mimeTypes.reduce(function(s,n,i){return a===i?"type"===t?c()({},s,o()({},e,n[1])):c()({},s,o()({},n[0],e)):c()({},s,o()({},n[0],n[1]))},{});this.updateSetting(s,"types","value")},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})}}},fe=(a("gFOO"),Object(v.a)(ve,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"formatEncoders",attrs:{model:e.formatEncoders,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Phoenix Format encoders:"}}),e._v(" "),a("el-form-item",{attrs:{label:"JSON"}},[a("el-input",{attrs:{value:e.formatEncoders.json},on:{input:function(t){return e.updateSetting(t,"format_encoders","json")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"teslaAdapter",attrs:{model:e.teslaAdapter,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Tesla adapter"}},[a("el-input",{attrs:{value:e.teslaAdapter.value},on:{input:function(t){return e.updateSetting(t,"adapter","value")}}})],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"mimeTypesConfig",attrs:{model:e.mimeTypesConfig,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Mime types"}},[e._l(e.mimeTypes,function(t,s){var n=t[0],i=t[1];return a("div",{key:s,staticClass:"setting-input"},[a("el-input",{staticClass:"name-input",attrs:{value:n,placeholder:"type"},on:{input:function(t){return e.parseMimeTypes(t,"type",s)}}}),e._v(" :\n        "),a("el-select",{staticClass:"value-input",attrs:{value:i,multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.parseMimeTypes(t,"value",s)}}}),e._v(" "),a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.deleteMimeTypes(s)}}})],1)}),e._v(" "),a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:e.addRowToMimeTypes}})],2),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));fe.options.__file="Other.vue";var _e=fe.exports,he={name:"RateLimiters",computed:c()({},Object(p.b)(["rateLimiters"]),{accountConfirmationResendAllUsers:function(){return this.rateLimiters.account_confirmation_resend?this.rateLimiters.account_confirmation_resend.tuple:[null,null]},accountConfirmationResendAuthUsers:function(){return!!Array.isArray(this.rateLimiters.account_confirmation_resend)&&this.rateLimiters.account_confirmation_resend[1].tuple},accountConfirmationResendUnauthUsers:function(){return!!Array.isArray(this.rateLimiters.account_confirmation_resend)&&this.rateLimiters.account_confirmation_resend[0].tuple},activityPubRoutesAllUsers:function(){return this.rateLimiters.ap_routes?this.rateLimiters.ap_routes.tuple:[null,null]},activityPubRoutesAuthUsers:function(){return!!Array.isArray(this.rateLimiters.ap_routes)&&this.rateLimiters.ap_routes[1].tuple},activityPubRoutesUnauthUsers:function(){return!!Array.isArray(this.rateLimiters.ap_routes)&&this.rateLimiters.ap_routes[0].tuple},appAccountCreationAllUsers:function(){return this.rateLimiters.app_account_creation?this.rateLimiters.app_account_creation.tuple:[null,null]},appAccountCreationAuthUsers:function(){return!!Array.isArray(this.rateLimiters.app_account_creation)&&this.rateLimiters.app_account_creation[1].tuple},appAccountCreationUnauthUsers:function(){return!!Array.isArray(this.rateLimiters.app_account_creation)&&this.rateLimiters.app_account_creation[0].tuple},passwordResetAllUsers:function(){return this.rateLimiters.password_reset?this.rateLimiters.password_reset.tuple:[null,null]},passwordResetAuthUsers:function(){return!!Array.isArray(this.rateLimiters.password_reset)&&this.rateLimiters.password_reset[1].tuple},passwordResetUnauthUsers:function(){return!!Array.isArray(this.rateLimiters.password_reset)&&this.rateLimiters.password_reset[0].tuple},relationsActionsAllUsers:function(){return this.rateLimiters.relations_actions?this.rateLimiters.relations_actions.tuple:[null,null]},relationsActionsAuthUsers:function(){return!!Array.isArray(this.rateLimiters.relations_actions)&&this.rateLimiters.relations_actions[1].tuple},relationsActionsUnauthUsers:function(){return!!Array.isArray(this.rateLimiters.relations_actions)&&this.rateLimiters.relations_actions[0].tuple},relationIdActionAllUsers:function(){return this.rateLimiters.relation_id_action?this.rateLimiters.relation_id_action.tuple:[null,null]},relationIdActionAuthUsers:function(){return!!Array.isArray(this.rateLimiters.relation_id_action)&&this.rateLimiters.relation_id_action[1].tuple},relationIdActionUnauthUsers:function(){return!!Array.isArray(this.rateLimiters.relation_id_action)&&this.rateLimiters.relation_id_action[0].tuple},searchLimitAllUsers:function(){return this.rateLimiters.search?this.rateLimiters.search.tuple:[null,null]},searchLimitAuthUsers:function(){return!!Array.isArray(this.rateLimiters.search)&&this.rateLimiters.search[1].tuple},searchLimitUnauthUsers:function(){return!!Array.isArray(this.rateLimiters.search)&&this.rateLimiters.search[0].tuple},statusesActionsAllUsers:function(){return this.rateLimiters.statuses_actions?this.rateLimiters.statuses_actions.tuple:[null,null]},statusesActionsAuthUsers:function(){return!!Array.isArray(this.rateLimiters.statuses_actions)&&this.rateLimiters.statuses_actions[1].tuple},statusesActionsUnauthUsers:function(){return!!Array.isArray(this.rateLimiters.statuses_actions)&&this.rateLimiters.statuses_actions[0].tuple},statusIdActionAllUsers:function(){return this.rateLimiters.status_id_action?this.rateLimiters.status_id_action.tuple:[null,null]},statusIdActionAuthUsers:function(){return!!Array.isArray(this.rateLimiters.status_id_action)&&this.rateLimiters.status_id_action[1].tuple},statusIdActionUnauthUsers:function(){return!!Array.isArray(this.rateLimiters.status_id_action)&&this.rateLimiters.status_id_action[0].tuple},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{parseRateLimiter:function(e,t,a,s,n){if("oneLimit"===s){var i="scale"===a?{tuple:[e,n[1]]}:{tuple:[n[0],e]};this.updateSetting(i,"rate_limit",t)}else if("authUserslimit"===s){var l="scale"===a?[{tuple:[n[0][0],n[0][1]]},{tuple:[e,n[1][1]]}]:[{tuple:[n[0][0],n[0][1]]},{tuple:[n[1][0],e]}];this.updateSetting(l,"rate_limit",t)}else if("unauthUsersLimit"===s){var r="scale"===a?[{tuple:[e,n[0][1]]},{tuple:[n[1][0],n[1][1]]}]:[{tuple:[n[0][0],e]},{tuple:[n[1][0],n[1][1]]}];this.updateSetting(r,"rate_limit",t)}},toggleLimits:function(e,t){this.updateSetting(e,"rate_limit",t)},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},be=(a("WvM+"),Object(v.a)(he,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"rateLimiters",attrs:{model:e.rateLimiters,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Search:"}},[e.searchLimitAuthUsers?e._e():a("div",[a("el-input",{staticClass:"scale-input",attrs:{value:e.searchLimitAllUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"search","scale","oneLimit",e.searchLimitAllUsers)}}}),e._v(" :\n      "),a("el-input",{staticClass:"limit-input",attrs:{value:e.searchLimitAllUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"search","limit","oneLimit",e.searchLimitAllUsers)}}}),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return e.toggleLimits([{tuple:[null,null]},{tuple:[null,null]}],"search")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set different limits for unauthenticated and authenticated users")])],1)],1),e._v(" "),e.searchLimitAuthUsers?a("div",[a("el-form-item",{attrs:{label:"Authenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.searchLimitAuthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"search","scale","authUserslimit",[e.searchLimitUnauthUsers,e.searchLimitAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.searchLimitAuthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"search","limit","authUserslimit",[e.searchLimitUnauthUsers,e.searchLimitAuthUsers])}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Unauthenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.searchLimitUnauthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"search","scale","unauthUsersLimit",[e.searchLimitUnauthUsers,e.searchLimitAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.searchLimitUnauthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"search","limit","unauthUsersLimit",[e.searchLimitUnauthUsers,e.searchLimitAuthUsers])}}})],1),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.toggleLimits({tuple:[null,null]},"search")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set limit for all users")])],1)],1):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"App account creation:"}},[e.appAccountCreationAuthUsers?e._e():a("div",[a("el-input",{staticClass:"scale-input",attrs:{value:e.appAccountCreationAllUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"app_account_creation","scale","oneLimit",e.appAccountCreationAllUsers)}}}),e._v(" :\n      "),a("el-input",{staticClass:"limit-input",attrs:{value:e.appAccountCreationAllUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"app_account_creation","limit","oneLimit",e.appAccountCreationAllUsers)}}}),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return e.toggleLimits([{tuple:[null,null]},{tuple:[null,null]}],"app_account_creation")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set different limits for unauthenticated and authenticated users")])],1)],1),e._v(" "),e.appAccountCreationAuthUsers?a("div",[a("el-form-item",{attrs:{label:"Authenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.appAccountCreationAuthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"app_account_creation","scale","authUserslimit",[e.appAccountCreationUnauthUsers,e.appAccountCreationAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.appAccountCreationAuthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"app_account_creation","limit","authUserslimit",[e.appAccountCreationUnauthUsers,e.appAccountCreationAuthUsers])}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Unauthenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.appAccountCreationUnauthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"app_account_creation","scale","unauthUsersLimit",[e.appAccountCreationUnauthUsers,e.appAccountCreationAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.appAccountCreationUnauthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"app_account_creation","limit","unauthUsersLimit",[e.appAccountCreationUnauthUsers,e.appAccountCreationAuthUsers])}}})],1),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.toggleLimits({tuple:[null,null]},"app_account_creation")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set limit for all users")])],1)],1):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"Relations actions:"}},[e.relationsActionsAuthUsers?e._e():a("div",[a("el-input",{staticClass:"scale-input",attrs:{value:e.relationsActionsAllUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"relations_actions","scale","oneLimit",e.relationsActionsAllUsers)}}}),e._v(" :\n      "),a("el-input",{staticClass:"limit-input",attrs:{value:e.relationsActionsAllUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"relations_actions","limit","oneLimit",e.relationsActionsAllUsers)}}}),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return e.toggleLimits([{tuple:[null,null]},{tuple:[null,null]}],"relations_actions")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set different limits for unauthenticated and authenticated users")])],1)],1),e._v(" "),e.relationsActionsAuthUsers?a("div",[a("el-form-item",{attrs:{label:"Authenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.relationsActionsAuthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"relations_actions","scale","authUserslimit",[e.relationsActionsUnauthUsers,e.relationsActionsAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.relationsActionsAuthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"relations_actions","limit","authUserslimit",[e.relationsActionsUnauthUsers,e.relationsActionsAuthUsers])}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Unauthenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.relationsActionsUnauthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"relations_actions","scale","unauthUsersLimit",[e.relationsActionsUnauthUsers,e.relationsActionsAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.relationsActionsUnauthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"relations_actions","limit","unauthUsersLimit",[e.relationsActionsUnauthUsers,e.relationsActionsAuthUsers])}}})],1),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.toggleLimits({tuple:[null,null]},"relations_actions")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set limit for all users")])],1)],1):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"Relation ID Action:"}},[e.relationIdActionAuthUsers?e._e():a("div",[a("el-input",{staticClass:"scale-input",attrs:{value:e.relationIdActionAllUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"relation_id_action","scale","oneLimit",e.relationIdActionAllUsers)}}}),e._v(" :\n      "),a("el-input",{staticClass:"limit-input",attrs:{value:e.relationIdActionAllUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"relation_id_action","limit","oneLimit",e.relationIdActionAllUsers)}}}),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return e.toggleLimits([{tuple:[null,null]},{tuple:[null,null]}],"relation_id_action")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set different limits for unauthenticated and authenticated users")])],1)],1),e._v(" "),e.relationIdActionAuthUsers?a("div",[a("el-form-item",{attrs:{label:"Authenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.relationIdActionAuthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"relation_id_action","scale","authUserslimit",[e.relationIdActionUnauthUsers,e.relationIdActionAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.relationIdActionAuthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"relation_id_action","limit","authUserslimit",[e.relationIdActionUnauthUsers,e.relationIdActionAuthUsers])}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Unauthenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.relationIdActionUnauthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"relation_id_action","scale","unauthUsersLimit",[e.relationIdActionUnauthUsers,e.relationIdActionAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.relationIdActionUnauthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"relation_id_action","limit","unauthUsersLimit",[e.relationIdActionUnauthUsers,e.relationIdActionAuthUsers])}}})],1),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.toggleLimits({tuple:[null,null]},"relation_id_action")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set limit for all users")])],1)],1):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"Statuses actions:"}},[e.statusesActionsAuthUsers?e._e():a("div",[a("el-input",{staticClass:"scale-input",attrs:{value:e.statusesActionsAllUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"statuses_actions","scale","oneLimit",e.statusesActionsAllUsers)}}}),e._v(" :\n      "),a("el-input",{staticClass:"limit-input",attrs:{value:e.statusesActionsAllUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"statuses_actions","limit","oneLimit",e.statusesActionsAllUsers)}}}),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return e.toggleLimits([{tuple:[null,null]},{tuple:[null,null]}],"statuses_actions")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set different limits for unauthenticated and authenticated users")])],1)],1),e._v(" "),e.statusesActionsAuthUsers?a("div",[a("el-form-item",{attrs:{label:"Authenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.statusesActionsAuthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"statuses_actions","scale","authUserslimit",[e.statusesActionsUnauthUsers,e.statusesActionsAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.statusesActionsAuthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"statuses_actions","limit","authUserslimit",[e.statusesActionsUnauthUsers,e.statusesActionsAuthUsers])}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Unauthenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.statusesActionsUnauthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"statuses_actions","scale","unauthUsersLimit",[e.statusesActionsUnauthUsers,e.statusesActionsAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.statusesActionsUnauthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"statuses_actions","limit","unauthUsersLimit",[e.statusesActionsUnauthUsers,e.statusesActionsAuthUsers])}}})],1),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.toggleLimits({tuple:[null,null]},"statuses_actions")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set limit for all users")])],1)],1):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"Status ID Action:"}},[e.statusIdActionAuthUsers?e._e():a("div",[a("el-input",{staticClass:"scale-input",attrs:{value:e.statusIdActionAllUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"status_id_action","scale","oneLimit",e.statusIdActionAllUsers)}}}),e._v(" :\n      "),a("el-input",{staticClass:"limit-input",attrs:{value:e.statusIdActionAllUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"status_id_action","limit","oneLimit",e.statusIdActionAllUsers)}}}),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return e.toggleLimits([{tuple:[null,null]},{tuple:[null,null]}],"status_id_action")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set different limits for unauthenticated and authenticated users")])],1)],1),e._v(" "),e.statusIdActionAuthUsers?a("div",[a("el-form-item",{attrs:{label:"Authenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.statusIdActionAuthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"status_id_action","scale","authUserslimit",[e.statusIdActionUnauthUsers,e.statusIdActionAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.statusIdActionAuthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"status_id_action","limit","authUserslimit",[e.statusIdActionUnauthUsers,e.statusIdActionAuthUsers])}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Unauthenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.statusIdActionUnauthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"status_id_action","scale","unauthUsersLimit",[e.statusIdActionUnauthUsers,e.statusIdActionAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.statusIdActionUnauthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"status_id_action","limit","unauthUsersLimit",[e.statusIdActionUnauthUsers,e.statusIdActionAuthUsers])}}})],1),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.toggleLimits({tuple:[null,null]},"status_id_action")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set limit for all users")])],1)],1):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"Password reset:"}},[e.passwordResetAuthUsers?e._e():a("div",[a("el-input",{staticClass:"scale-input",attrs:{value:e.passwordResetAllUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"password_reset","scale","oneLimit",e.passwordResetAllUsers)}}}),e._v(" :\n      "),a("el-input",{staticClass:"limit-input",attrs:{value:e.passwordResetAllUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"password_reset","limit","oneLimit",e.passwordResetAllUsers)}}}),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return e.toggleLimits([{tuple:[null,null]},{tuple:[null,null]}],"password_reset")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set different limits for unauthenticated and authenticated users")])],1)],1),e._v(" "),e.passwordResetAuthUsers?a("div",[a("el-form-item",{attrs:{label:"Authenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.passwordResetAuthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"password_reset","scale","authUserslimit",[e.passwordResetUnauthUsers,e.passwordResetAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.passwordResetAuthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"password_reset","limit","authUserslimit",[e.passwordResetUnauthUsers,e.passwordResetAuthUsers])}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Unauthenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.passwordResetUnauthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"password_reset","scale","unauthUsersLimit",[e.passwordResetUnauthUsers,e.passwordResetAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.passwordResetUnauthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"password_reset","limit","unauthUsersLimit",[e.passwordResetUnauthUsers,e.passwordResetAuthUsers])}}})],1),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.toggleLimits({tuple:[null,null]},"password_reset")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set limit for all users")])],1)],1):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"Account confirmation resend:"}},[e.accountConfirmationResendAuthUsers?e._e():a("div",[a("el-input",{staticClass:"scale-input",attrs:{value:e.accountConfirmationResendAllUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"account_confirmation_resend","scale","oneLimit",e.accountConfirmationResendAllUsers)}}}),e._v(" :\n      "),a("el-input",{staticClass:"limit-input",attrs:{value:e.accountConfirmationResendAllUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"account_confirmation_resend","limit","oneLimit",e.accountConfirmationResendAllUsers)}}}),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return e.toggleLimits([{tuple:[null,null]},{tuple:[null,null]}],"account_confirmation_resend")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set different limits for unauthenticated and authenticated users")])],1)],1),e._v(" "),e.accountConfirmationResendAuthUsers?a("div",[a("el-form-item",{attrs:{label:"Authenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.accountConfirmationResendAuthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"account_confirmation_resend","scale","authUserslimit",[e.accountConfirmationResendUnauthUsers,e.accountConfirmationResendAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.accountConfirmationResendAuthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"account_confirmation_resend","limit","authUserslimit",[e.accountConfirmationResendUnauthUsers,e.accountConfirmationResendAuthUsers])}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Unauthenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.accountConfirmationResendUnauthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"account_confirmation_resend","scale","unauthUsersLimit",[e.accountConfirmationResendUnauthUsers,e.accountConfirmationResendAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.accountConfirmationResendUnauthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"account_confirmation_resend","limit","unauthUsersLimit",[e.accountConfirmationResendUnauthUsers,e.accountConfirmationResendAuthUsers])}}})],1),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.toggleLimits({tuple:[null,null]},"account_confirmation_resend")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set limit for all users")])],1)],1):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"Activity pub routes:"}},[e.activityPubRoutesAuthUsers?e._e():a("div",[a("el-input",{staticClass:"scale-input",attrs:{value:e.activityPubRoutesAllUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"ap_routes","scale","oneLimit",e.activityPubRoutesAllUsers)}}}),e._v(" :\n      "),a("el-input",{staticClass:"limit-input",attrs:{value:e.activityPubRoutesAllUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"ap_routes","limit","oneLimit",e.activityPubRoutesAllUsers)}}}),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return e.toggleLimits([{tuple:[null,null]},{tuple:[null,null]}],"ap_routes")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set different limits for unauthenticated and authenticated users")])],1)],1),e._v(" "),e.activityPubRoutesAuthUsers?a("div",[a("el-form-item",{attrs:{label:"Authenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.activityPubRoutesAuthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"ap_routes","scale","authUserslimit",[e.activityPubRoutesUnauthUsers,e.activityPubRoutesAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.activityPubRoutesAuthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"ap_routes","limit","authUserslimit",[e.activityPubRoutesUnauthUsers,e.activityPubRoutesAuthUsers])}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Unauthenticated users:"}},[a("el-input",{staticClass:"scale-input",attrs:{value:e.activityPubRoutesUnauthUsers[0],placeholder:"scale"},on:{input:function(t){return e.parseRateLimiter(t,"ap_routes","scale","unauthUsersLimit",[e.activityPubRoutesUnauthUsers,e.activityPubRoutesAuthUsers])}}}),e._v(" :\n        "),a("el-input",{staticClass:"limit-input",attrs:{value:e.activityPubRoutesUnauthUsers[1],placeholder:"limit"},on:{input:function(t){return e.parseRateLimiter(t,"ap_routes","limit","unauthUsersLimit",[e.activityPubRoutesUnauthUsers,e.activityPubRoutesAuthUsers])}}})],1),e._v(" "),a("div",{staticClass:"limit-button-container"},[a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(t){return e.toggleLimits({tuple:[null,null]},"ap_routes")}}}),e._v(" "),a("p",{staticClass:"expl limit-expl"},[e._v("Set limit for all users")])],1)],1):e._e()]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)},[],!1,null,null,null));be.options.__file="RateLimiters.vue";var ge=be.exports,ye={name:"Upload",computed:c()({},Object(p.b)(["uploadAnonymizeFilename","upload","uploadFilterMogrify","uploadersLocal","uploadMDII","uploadS3"]),{inlineContentTypes:function(){return Array.isArray(this.upload.proxy_opts.inline_content_types)?"whitelistedTypeArray":this.upload.proxy_opts.inline_content_types},http:function(){return this.upload.proxy_opts.http||{}},hackneyPoolsOptions:function(){return L.hackneyPoolsOptions},whitelistedContentTypes:function(){return Array.isArray(this.upload.proxy_opts.inline_content_types)?this.upload.proxy_opts.inline_content_types:[]},whitelistedContentTypesOptions:function(){return L.whitelistedContentTypesOptions},mogrifyActionsOptions:function(){return L.mogrifyActionsOptions},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{getPoolExpl:function(e){var t=this.hackneyPoolsOptions.find(function(t){return t.value===e});return t?"Max connections: "+t.max_connections+", timeout: "+t.timeout:""},processHttpSettings:function(e,t,a,s,n){var i=c()({},this.upload[a][s],o()({},n,e));this.processNestedData(i,t,a,s)},processNestedData:function(e,t,a,s){var n=c()({},this.$store.state.settings.settings[t][a],o()({},s,e));this.updateSetting(n,t,a)},updateInlineContentTypes:function(){"whitelistedTypeArray"===this.$data.inlineContentTypes?this.processNestedData(this.$data.whitelistedContentTypes,"Pleroma.Upload","proxy_opts","inline_content_types"):this.processNestedData(this.$data.inlineContentTypes,"Pleroma.Upload","proxy_opts","inline_content_types")},updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},we=(a("DPt0"),Object(v.a)(ye,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"upload",attrs:{model:e.upload,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Uploader"}},[a("el-input",{attrs:{value:e.upload.uploader},on:{input:function(t){return e.updateSetting(t,"Pleroma.Upload","uploader")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Filters"}},[a("el-select",{attrs:{value:e.upload.filters||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"Pleroma.Upload","filters")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Link name"}},[a("el-switch",{attrs:{value:e.upload.link_name},on:{change:function(t){return e.updateSetting(t,"Pleroma.Upload","link_name")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("When enabled Pleroma will add a name parameter to the url of the upload, for example\n      "),a("span",{staticClass:"code"},[e._v("https://instance.tld/media/corndog.png?name=corndog.png")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"Base URL"}},[a("el-input",{attrs:{value:e.upload.base_url},on:{input:function(t){return e.updateSetting(t,"Pleroma.Upload","base_url")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The base URL to access a user-uploaded file. Useful when you want to proxy the media files via another host")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Proxy remote"}},[a("el-switch",{attrs:{value:e.upload.proxy_remote},on:{change:function(t){return e.updateSetting(t,"Pleroma.Upload","proxy_remote")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("If you're using a remote uploader, Pleroma will proxy media requests instead of redirecting to it")])],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form-item",{attrs:{label:"Proxy options:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Redirect on failure"}},[a("el-switch",{attrs:{value:e.upload.proxy_opts.redirect_on_failure},on:{change:function(t){return e.processNestedData(t,"Pleroma.Upload","proxy_opts","redirect_on_failure")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Redirects the client to the real remote URL if there's any HTTP errors.\n      Any error during body processing will not be redirected as the response is chunked")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max body length (MB)"}},[a("el-input-number",{attrs:{value:e.upload.proxy_opts.max_body_length/1048576,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(1048576*t,"Pleroma.Upload","proxy_opts","max_body_length")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Limits the content length to be approximately the specified length")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Max read duration (s)"}},[a("el-input-number",{attrs:{value:e.upload.proxy_opts.max_read_duration,step:1,min:0,size:"large"},on:{change:function(t){return e.processNestedData(t,"Pleroma.Upload","proxy_opts","max_read_duration")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("The total time the connection is allowed to read from the remote upstream")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Inline content types"}},[a("el-select",{attrs:{value:e.inlineContentTypes,clearable:""},on:{change:function(t){return e.processNestedData(t,"Pleroma.Upload","proxy_opts","inline_content_types")}}},[a("el-option",{attrs:{value:!0,label:"True"}}),e._v(" "),a("el-option",{attrs:{value:!1,label:"False"}}),e._v(" "),a("el-option",{attrs:{value:"whitelistedTypeArray",label:"List of whitelisted content types"}}),e._v(" "),a("el-option",{attrs:{value:"keepUserAgent",label:"Forward client's user-agent to the upstream"}})],1),e._v(" "),!0===e.inlineContentTypes?a("p",{staticClass:"expl"},[e._v("Will not alter "),a("span",{staticClass:"code"},[e._v("content-disposition")]),e._v(" (up to the upstream)")]):e._e(),e._v(" "),e.inlineContentTypes?e._e():a("p",{staticClass:"expl"},[e._v("Will add "),a("span",{staticClass:"code"},[e._v("content-disposition: attachment")]),e._v(" to any request")]),e._v(" "),"keepUserAgent"===e.inlineContentTypes?a("p",{staticClass:"expl"},[e._v("\n        Will forward the client's user-agent to the upstream. This may be useful if the upstream is\n        doing content transformation (encoding, …) depending on the request.\n      ")]):e._e()],1),e._v(" "),"whitelistedTypeArray"===e.inlineContentTypes?a("el-form-item",{attrs:{label:"Whitelisted content types"}},[a("el-select",{attrs:{value:e.whitelistedContentTypes,multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.processNestedData(t,"Pleroma.Upload","proxy_opts","inline_content_types")}}},e._l(e.whitelistedContentTypesOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"Request headers"}},[a("el-select",{attrs:{value:e.upload.proxy_opts.req_headers||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.processNestedData(t,"Pleroma.Upload","proxy_opts","req_headers")}}}),e._v(" "),a("p",{staticClass:"expl"},[a("span",{staticClass:"code"},[e._v("resp_headers")]),e._v(" additional headers")])],1),e._v(" "),a("el-form-item",{attrs:{label:"HTTP:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Follow redirect"}},[a("el-switch",{attrs:{value:e.http.follow_redirect},on:{change:function(t){return e.processHttpSettings(t,"Pleroma.Upload","proxy_opts","http","follow_redirect")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Pool"}},[a("el-select",{attrs:{value:e.http.pool,clearable:""},on:{change:function(t){return e.processHttpSettings(t,"Pleroma.Upload","proxy_opts","http","pool")}}},e._l(e.hackneyPoolsOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("p",{staticClass:"expl"},[e._v(e._s(e.getPoolExpl(e.http.pool)))])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"uploadersLocal",attrs:{model:e.uploadersLocal,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Uploaders.Local:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Directory for user-uploads"}},[a("el-input",{attrs:{value:e.uploadersLocal.uploads},on:{input:function(t){return e.updateSetting(t,"Pleroma.Uploaders.Local","uploads")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Which directory to store the user-uploads in, relative to pleroma’s working directory")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"uploadFilterMogrify",attrs:{model:e.uploadFilterMogrify,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Actions for Mogrify"}},[a("el-select",{attrs:{value:e.uploadFilterMogrify.args||[],multiple:"",filterable:"","allow-create":""},on:{change:function(t){return e.updateSetting(t,"Pleroma.Upload.Filter.Mogrify","args")}}},e._l(e.mogrifyActionsOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"uploadAnonymizeFilename",attrs:{model:e.uploadAnonymizeFilename,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Anonymize filename"}},[a("el-input",{attrs:{value:e.uploadAnonymizeFilename.text},on:{input:function(t){return e.updateSetting(t,"Pleroma.Upload.Filter.AnonymizeFilename","text")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("Text to replace filenames in links. If empty, "),a("span",{staticClass:"code"},[e._v("{random}.extension")]),e._v(" will be used")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"uploadS3",attrs:{model:e.uploadS3,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"S3 Config:"}}),e._v(" "),a("el-form-item",{attrs:{label:"Bucket"}},[a("el-input",{attrs:{value:e.uploadS3.bucket},on:{input:function(t){return e.updateSetting(t,"Pleroma.Uploaders.S3","bucket")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("S3 bucket name")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Bucket namespace"}},[a("el-input",{attrs:{value:e.uploadS3.bucket_namespace},on:{input:function(t){return e.updateSetting(t,"Pleroma.Uploaders.S3","bucket_namespace")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("S3 bucket namespace")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Public endpoint"}},[a("el-input",{attrs:{value:e.uploadS3.public_endpoint},on:{input:function(t){return e.updateSetting(t,"Pleroma.Uploaders.S3","public_endpoint")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("S3 endpoint that the user finally accesses")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Truncated namespace"}},[a("el-input",{attrs:{value:e.uploadS3.truncated_namespace},on:{input:function(t){return e.updateSetting(t,"Pleroma.Uploaders.S3","truncated_namespace")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v('If you use S3 compatible service such as Digital Ocean Spaces or CDN, set folder name or "" etc.\n      For example, when using CDN to S3 virtual host format, set "".\n      At this time, write CNAME to CDN in '),a("span",{staticClass:"code"},[e._v("public_endpoint")]),e._v(".\n      ")])],1)],1),e._v(" "),a("div",{staticClass:"line"}),e._v(" "),a("el-form",{ref:"uploadMDII",attrs:{model:e.uploadMDII,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Uploaders.MDII Config:"}}),e._v(" "),a("el-form-item",{attrs:{label:"CGI"}},[a("el-input",{attrs:{value:e.uploadMDII.cgi},on:{input:function(t){return e.updateSetting(t,"Pleroma.Uploaders.MDII","cgi")}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Files"}},[a("el-input",{attrs:{value:e.uploadMDII.files},on:{input:function(t){return e.updateSetting(t,"Pleroma.Uploaders.MDII","files")}}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)},[],!1,null,null,null));we.options.__file="Upload.vue";var xe=we.exports,Ce={name:"WebPush",computed:c()({},Object(p.b)(["vapidDetails"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"210px"}}),methods:{updateSetting:function(e,t,a){this.$store.dispatch("UpdateSettings",{tab:t,data:o()({},a,e)})},onSubmit:function(){var e=l()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:this.$message({type:"success",message:m.a.t("settings.success")});case 9:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()}},Se=(a("+qaP"),Object(v.a)(Ce,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"vapidDetails",attrs:{model:e.vapidDetails,"label-width":e.labelWidth}},[a("el-form-item",{attrs:{label:"Subject"}},[a("el-input",{attrs:{value:e.vapidDetails.subject},on:{input:function(t){return e.updateSetting(t,"vapid_details","subject")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("A mailto link for the administrative contact. It’s best if this email is not a personal email address,\n    but rather a group email so that if a person leaves an organization, is unavailable for an extended period,\n    or otherwise can’t respond, someone else on the list can.")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Public key"}},[a("el-input",{attrs:{value:e.vapidDetails.public_key},on:{input:function(t){return e.updateSetting(t,"vapid_details","public_key")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("VAPID public key")])],1),e._v(" "),a("el-form-item",{attrs:{label:"Private key"}},[a("el-input",{attrs:{value:e.vapidDetails.private_key},on:{input:function(t){return e.updateSetting(t,"vapid_details","private_key")}}}),e._v(" "),a("p",{staticClass:"expl"},[e._v("VAPID private key")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)},[],!1,null,null,null));Se.options.__file="WebPush.vue";var ke={components:{ActivityPub:_,Authentication:g,AutoLinker:x,Captcha:k,Database:U,Endpoint:E,Esshd:O,Frontend:$,Gopher:H,Http:V,Instance:Q,JobQueue:Y,Logger:te,Mailer:ne,MediaProxy:re,Metadata:ce,Mrf:de,Other:_e,RateLimiters:ge,Upload:xe,WebPush:Se.exports},computed:{isMobile:function(){return"mobile"===this.$store.state.app.device},tabPosition:function(){return this.isMobile?"top":"left"}},mounted:function(){this.$store.dispatch("FetchSettings")}},Ae=(a("V9mB"),Object(v.a)(ke,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"settings-container"},[a("h1",[e._v(e._s(e.$t("settings.settings")))]),e._v(" "),a("el-tabs",{attrs:{"tab-position":e.tabPosition}},[a("el-tab-pane",{attrs:{label:e.$t("settings.activityPub")}},[a("activity-pub")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.auth")}},[a("authentication")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.autoLinker")}},[a("auto-linker")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.esshd")}},[a("esshd")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.captcha")}},[a("captcha")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.database")}},[a("database")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.endpoint")}},[a("endpoint")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.frontend")}},[a("frontend")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.gopher")}},[a("gopher")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.http")}},[a("http")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.instance")}},[a("instance")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.jobQueue")}},[a("job-queue")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.logger")}},[a("logger")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.mailer")}},[a("mailer")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.mediaProxy")}},[a("media-proxy")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.metadata")}},[a("metadata")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.mrf")}},[a("mrf")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.rateLimiters")}},[a("rate-limiters")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.upload")}},[a("upload")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.webPush")}},[a("web-push")],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.$t("settings.other")}},[a("other")],1)],1)],1)},[],!1,null,"729534ce",null));Ae.options.__file="index.vue";t.default=Ae.exports},Zgs2:function(e,t,a){},apN7:function(e,t,a){"use strict";var s=a("9p49");a.n(s).a},cyzs:function(e,t,a){"use strict";var s=a("Px65");a.n(s).a},e0P1:function(e,t,a){"use strict";var s=a("TudB");a.n(s).a},gFOO:function(e,t,a){"use strict";var s=a("jqM2");a.n(s).a},h9z7:function(e,t,a){"use strict";var s=a("TOIk");a.n(s).a},hVXW:function(e,t,a){"use strict";var s=a("uswN");a.n(s).a},jqM2:function(e,t,a){},lNpP:function(e,t,a){"use strict";var s=a("UbP/");a.n(s).a},mADP:function(e,t,a){"use strict";var s=a("qLeA");a.n(s).a},mSK5:function(e,t,a){},qEST:function(e,t,a){"use strict";var s=a("4NUT");a.n(s).a},qLeA:function(e,t,a){},uswN:function(e,t,a){},w5cJ:function(e,t,a){"use strict";var s=a("PYLh");a.n(s).a},wgcy:function(e,t,a){},x6RV:function(e,t,a){}}]);
      2 //# sourceMappingURL=chunk-6292.0e668979.js.map