logo

pleroma

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

chunk-6b7b.e7ed7973.js (103244B)


      1 (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6b7b"],{"+2nY":function(t,e,n){"use strict";var i=n("ld6V");n.n(i).a},"+qaP":function(t,e,n){"use strict";var i=n("60OA");n.n(i).a},"0ods":function(t,e,n){},"2q6O":function(t,e,n){"use strict";var i=n("Scsy");n.n(i).a},"3nbG":function(t,e,n){"use strict";var i=n("4jdC");n.n(i).a},"4NUT":function(t,e,n){},"4b9x":function(t,e,n){"use strict";var i=n("wgcy");n.n(i).a},"4jdC":function(t,e,n){},"60OA":function(t,e,n){},"77pt":function(t,e,n){},"9p49":function(t,e,n){},AUFL:function(t,e,n){},DPt0:function(t,e,n){"use strict";var i=n("x6RV");n.n(i).a},Ezi3:function(t,e,n){"use strict";var i=n("MNl6");n.n(i).a},FCne:function(t,e,n){"use strict";var i=n("OCuP");n.n(i).a},"J7+w":function(t,e,n){"use strict";var i=n("fyIw");n.n(i).a},JqY8:function(t,e,n){},KFE3:function(t,e,n){"use strict";var i=n("mSK5");n.n(i).a},LHUV:function(t,e,n){"use strict";var i=n("0ods");n.n(i).a},MNl6:function(t,e,n){},NiUD:function(t,e,n){},OCuP:function(t,e,n){},PYLh:function(t,e,n){},Px65:function(t,e,n){},PygS:function(t,e,n){"use strict";var i=n("TtMh");n.n(i).a},QZC8:function(t,e,n){},QtHe:function(t,e,n){"use strict";var i=n("AUFL");n.n(i).a},Scsy:function(t,e,n){},TOIk:function(t,e,n){},TRR9:function(t,e,n){},TtMh:function(t,e,n){},TudB:function(t,e,n){},"UbP/":function(t,e,n){},UdS4:function(t,e,n){"use strict";var i=n("WwJU");n.n(i).a},UtFC:function(t,e,n){},"WvM+":function(t,e,n){"use strict";var i=n("TRR9");n.n(i).a},WwJU:function(t,e,n){},YKHE:function(t,e,n){},YcIK:function(t,e,n){"use strict";n.r(e);var i=n("o0o1"),a=n.n(i),s=n("yXPU"),r=n.n(s),o=n("MVZn"),l=n.n(o),u=n("L2JU"),c=n("mSNy"),p=n("lSNA"),d=n.n(p),g={name:"AutoLinkerInput",props:{data:{type:[Object,Array],default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},methods:{autoLinkerBooleanValue:function(t){var e=this.data[this.setting.key];return"string"==typeof e||"number"==typeof e},autoLinkerIntegerValue:function(t){return this.data[this.setting.key]||0},autoLinkerStringValue:function(t){return this.data[this.setting.key]||""},processTwoTypeValue:function(t,e){if(!0===t){var n=":truncate"===e?0:"";this.updateSetting(n,this.settingGroup.group,this.settingGroup.key,e,this.setting.type)}else this.updateSetting(t,this.settingGroup.group,this.settingGroup.key,e,this.setting.type)},updateSetting:function(t,e,n,i,a){this.$store.dispatch("UpdateSettings",{group:e,key:n,input:i,value:t,type:a}),this.$store.dispatch("UpdateState",{group:e,key:n,input:i,value:t})}}},m=(n("LHUV"),n("KHd+")),h=Object(m.a)(g,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[":class"===t.setting.key||":rel"===t.setting.key?n("div",[n("el-switch",{attrs:{value:t.autoLinkerBooleanValue(t.setting.key)},on:{change:function(e){return t.processTwoTypeValue(e,t.setting.key)}}}),t._v(" "),t.autoLinkerBooleanValue(t.setting.key)?n("el-input",{attrs:{value:t.autoLinkerStringValue(t.setting.key)},on:{input:function(e){return t.processTwoTypeValue(e,t.setting.key)}}}):t._e()],1):t._e(),t._v(" "),":truncate"===t.setting.key?n("div",[n("el-switch",{attrs:{value:t.autoLinkerBooleanValue(t.setting.key)},on:{change:function(e){return t.processTwoTypeValue(e,t.setting.key)}}}),t._v(" "),t.autoLinkerBooleanValue(t.setting.key)?n("el-input-number",{attrs:{value:t.autoLinkerIntegerValue(t.setting.key)},on:{input:function(e){return t.processTwoTypeValue(e,t.setting.key)}}}):t._e()],1):t._e()])},[],!1,null,null,null);h.options.__file="AutoLinkerInput.vue";var f=h.exports,v=n("RIqP"),b=n.n(v),y={name:"EditableKeywordInput",props:{data:{type:Array,default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},computed:{editableKeywordWithInteger:function(){return Array.isArray(this.setting.type)&&this.setting.type.includes("keyword")&&this.setting.type.includes("integer")}},methods:{addRowToEditableKeyword:function(){var t=[].concat(b()(this.data),[{"":{value:"",id:this.generateID()}}]);this.updateSetting(t,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},deleteEditableKeywordRow:function(t){var e=this.getId(t),n=this.data.filter(function(t){return Object.values(t)[0].id!==e});this.updateSetting(n,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},generateID:function(){return"f".concat((~~(1e8*Math.random())).toString(16))},getKey:function(t){return Object.keys(t)[0]},getId:function(t){return Object.values(t)[0].id},getValue:function(t){return Object.values(t)[0].value},parseEditableKeyword:function(t,e,n){var i=this,a=this.getId(n),s=this.data.map(function(n,s){return Object.values(n)[0].id===a?"key"===e?d()({},t,Object.values(i.data[s])[0]):d()({},Object.keys(n)[0],l()({},Object.values(i.data[s])[0],{value:t})):n});this.updateSetting(s,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},updateSetting:function(t,e,n,i,a){var s="map"!==a?t.reduce(function(t,e){return l()({},t,d()({},Object.keys(e)[0],["list",Object.values(e)[0].value]))},{}):t.reduce(function(t,e){return l()({},t,d()({},Object.keys(e)[0],Object.values(e)[0].value))},{});this.$store.dispatch("UpdateSettings",{group:e,key:n,input:i,value:s,type:a}),this.$store.dispatch("UpdateState",{group:e,key:n,input:i,value:t})}}},k=(n("nKzF"),Object(m.a)(y,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[":replace"===t.setting.key?n("div",[t._l(t.data,function(e){return n("div",{key:t.getId(e),staticClass:"setting-input"},[n("el-input",{staticClass:"name-input",attrs:{value:t.getKey(e),placeholder:"pattern"},on:{input:function(n){return t.parseEditableKeyword(n,"key",e)}}}),t._v(" :\n      "),n("el-input",{staticClass:"value-input",attrs:{value:t.getValue(e),placeholder:"replacement"},on:{input:function(n){return t.parseEditableKeyword(n,"value",e)}}}),t._v(" "),n("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(n){return t.deleteEditableKeywordRow(e)}}})],1)}),t._v(" "),n("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:t.addRowToEditableKeyword}})],2):t.editableKeywordWithInteger?n("div",[t._l(t.data,function(e){return n("div",{key:t.getId(e),staticClass:"setting-input"},[n("el-input",{staticClass:"name-input",attrs:{value:t.getKey(e),placeholder:"key"},on:{input:function(n){return t.parseEditableKeyword(n,"key",e)}}}),t._v(" :\n      "),n("el-input-number",{staticClass:"value-input",attrs:{value:t.getValue(e),min:0,size:"large"},on:{change:function(n){return t.parseEditableKeyword(n,"value",e)}}}),t._v(" "),n("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(n){return t.deleteEditableKeywordRow(e)}}})],1)}),t._v(" "),n("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:t.addRowToEditableKeyword}})],2):n("div",[t._l(t.data,function(e){return n("div",{key:t.getId(e),staticClass:"setting-input"},[n("el-input",{staticClass:"name-input",attrs:{value:t.getKey(e),placeholder:"key"},on:{input:function(n){return t.parseEditableKeyword(n,"key",e)}}}),t._v(" :\n      "),n("el-select",{staticClass:"value-input",attrs:{value:t.getValue(e),multiple:"",filterable:"","allow-create":""},on:{change:function(n){return t.parseEditableKeyword(n,"value",e)}}}),t._v(" "),n("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(n){return t.deleteEditableKeywordRow(e)}}})],1)}),t._v(" "),n("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:t.addRowToEditableKeyword}})],2)])},[],!1,null,null,null));k.options.__file="EditableKeywordInput.vue";var _=k.exports,w={name:"EditableKeywordInput",props:{data:{type:Array,default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},methods:{addIconToIcons:function(){var t=[].concat(b()(this.data),[[{key:"",value:"",id:this.generateID()}]]);this.updateSetting(t,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},addValueToIcons:function(t){var e=this,n=this.data.map(function(n,i){return i===t?[].concat(b()(n),[{key:"",value:"",id:e.generateID()}]):n});this.updateSetting(n,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},deleteIcondRow:function(t){var e=this.data.filter(function(e,n){return n!==t});this.updateSetting(e,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},generateID:function(){return"f".concat((~~(1e8*Math.random())).toString(16))},parseIcons:function(t,e,n,i){var a=this.data.map(function(a,s){return s===n?a.map(function(n){return n.id===i?"key"===e?l()({},n,{key:t}):l()({},n,{value:t}):n}):a});this.updateSetting(a,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},updateSetting:function(t,e,n,i,a){var s=t.map(function(t){return t.reduce(function(t,e){var n=e.key,i=e.value;return l()({},t,d()({},n,i))},{})},{});this.$store.dispatch("UpdateSettings",{group:e,key:n,input:i,value:s,type:a}),this.$store.dispatch("UpdateState",{group:e,key:n,input:i,value:t})}}},S=(n("rdar"),Object(m.a)(w,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._l(t.data,function(e,i){return n("div",{key:i,staticClass:"mascot-container"},[n("div",{staticClass:"icons-container"},[n("div",{staticClass:"icon-container"},t._l(e,function(e){var a=e.key,s=e.value,r=e.id;return n("div",{key:r,staticClass:"icon-values-container"},[n("el-input",{staticClass:"icon-key-input",attrs:{value:a,placeholder:"key"},on:{input:function(e){return t.parseIcons(e,"key",i,r)}}}),t._v(" :\n          "),n("el-input",{staticClass:"icon-value-input",attrs:{value:s,placeholder:"value"},on:{input:function(e){return t.parseIcons(e,"value",i,r)}}})],1)}),0),t._v(" "),n("el-button",{staticClass:"icon-minus-button",attrs:{icon:"el-icon-minus",circle:""},on:{click:function(e){return t.deleteIcondRow(i)}}})],1),t._v(" "),n("div",{staticClass:"icons-button-container"},[n("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(e){return t.addValueToIcons(i)}}}),t._v(" "),n("span",{staticClass:"icons-button-desc"},[t._v("Add another `key - value` pair to this icon")])],1),t._v(" "),n("div",{staticClass:"line"})])}),t._v(" "),n("div",{staticClass:"icons-button-container"},[n("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:t.addIconToIcons}}),t._v(" "),n("span",{staticClass:"icons-button-desc"},[t._v("Add another icon configuration")])],1)],2)},[],!1,null,null,null));S.options.__file="IconsInput.vue";var $=S.exports,x=n("QILm"),D=n.n(x),P=n("J4zp"),j=n.n(P),C={name:"MascotsInput",props:{data:{type:Array,default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},methods:{addRowToMascots:function(){var t=[].concat(b()(this.data),[{"":{":url":"",":mime_type":"",id:this.generateID()}}]);this.updateSetting(t,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},deleteMascotsRow:function(t){var e=this.getId(t),n=this.data.filter(function(t){return Object.values(t)[0].id!==e});this.updateSetting(n,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},generateID:function(){return"f".concat((~~(1e8*Math.random())).toString(16))},getId:function(t){return Object.values(t)[0].id},getName:function(t){return Object.keys(t)[0]},getUrl:function(t){var e=Object.values(t);return j()(e,1)[0][":url"]},getMimeType:function(t){var e=Object.values(t);return j()(e,1)[0][":mime_type"]},parseMascots:function(t,e,n){var i=this,a=this.getId(n),s=this.data.map(function(n,s){return Object.values(n)[0].id===a?"name"===e?d()({},t,Object.values(i.data[s])[0]):"url"===e?d()({},Object.keys(n)[0],l()({},Object.values(i.data[s])[0],{":url":t})):d()({},Object.keys(n)[0],l()({},Object.values(i.data[s])[0],{":mime_type":t})):n});this.updateSetting(s,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},updateSetting:function(t,e,n,i,a){var s=t.reduce(function(t,e){var n=Object.values(e)[0],i=(n.id,D()(n,["id"]));return l()({},t,d()({},Object.keys(e)[0],["",i]))},{});this.$store.dispatch("UpdateSettings",{group:e,key:n,input:i,value:s,type:a}),this.$store.dispatch("UpdateState",{group:e,key:n,input:i,value:t})}}},L=(n("+2nY"),Object(m.a)(C,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._l(t.data,function(e){return n("div",{key:t.getId(e),staticClass:"mascot-container"},[n("el-form-item",{attrs:{label:"Name","label-width":"100px"}},[n("div",{staticClass:"mascot-name-container"},[n("el-input",{staticClass:"mascot-name-input",attrs:{value:t.getName(e),placeholder:"Name"},on:{input:function(n){return t.parseMascots(n,"name",e)}}}),t._v(" "),n("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(n){return t.deleteMascotsRow(e)}}})],1)]),t._v(" "),n("el-form-item",{attrs:{label:"URL","label-width":"100px"}},[n("el-input",{staticClass:"mascot-input",attrs:{value:t.getUrl(e),placeholder:"URL"},on:{input:function(n){return t.parseMascots(n,"url",e)}}})],1),t._v(" "),n("el-form-item",{attrs:{label:"Mime type","label-width":"100px"}},[n("el-input",{staticClass:"mascot-input",attrs:{value:t.getMimeType(e),placeholder:"Mime type"},on:{input:function(n){return t.parseMascots(n,"mimeType",e)}}})],1)],1)}),t._v(" "),n("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:t.addRowToMascots}})],2)},[],!1,null,null,null));L.options.__file="MascotsInput.vue";var U=L.exports,O={name:"MultipleSelect",props:{data:{type:[Object,Array],default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},methods:{updateSetting:function(t,e,n,i,a){this.$store.dispatch("UpdateSettings",{group:e,key:n,input:i,value:t,type:a}),this.$store.dispatch("UpdateState",{group:e,key:n,input:i,value:t})}}},E=(n("QtHe"),Object(m.a)(O,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[":backends"===t.setting.key?n("el-select",{attrs:{value:t.data.value,multiple:"",filterable:"","allow-create":""},on:{change:function(e){return t.updateSetting(e,t.settingGroup.group,t.settingGroup.key,t.setting.key,t.setting.type)}}},[n("el-option",{attrs:{value:":console",label:"console"}}),t._v(" "),n("el-option",{attrs:{value:":ex_syslogger",label:"ExSyslogger"}}),t._v(" "),n("el-option",{attrs:{value:"Quack.Logger",label:"Quack.Logger"}})],1):t._e(),t._v(" "),":args"===t.setting.key?n("el-select",{attrs:{value:t.data[t.setting.key],multiple:"",filterable:"","allow-create":""},on:{change:function(e){return t.updateSetting(e,t.settingGroup.group,t.settingGroup.key,t.setting.key,t.setting.type)}}},[n("el-option",{attrs:{value:"strip",label:"strip"}}),t._v(" "),n("el-option",{attrs:{value:"auto-orient",label:"auto-orient"}}),t._v(" "),n("el-option",{attrs:{value:"implode",label:"implode"}})],1):t._e()],1)},[],!1,null,null,null));E.options.__file="MultipleSelect.vue";var A=E.exports,M=n("h74u"),I={name:"ProxyUrlInput",props:{data:{type:[Object,Array],default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}},parents:{type:Array,default:function(){return[]},required:!1}},computed:{settings:function(){return this.$store.state.settings.settings},updatedSettings:function(){return this.$store.state.settings.updatedSettings},proxyUrlData:function(){return 0===Object.keys(this.data).length?{socks5:!1,host:null,port:null}:this.data}},methods:{updateProxyUrl:function(t,e){var n;n="socks5"===e?l()({},this.proxyUrlData,{socks5:t}):"host"===e?l()({},this.proxyUrlData,{host:t}):l()({},this.proxyUrlData,{port:t}),this.updateSetting(n,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},updateSetting:function(t,e,n,i,a){var s=t.socks5?[":socks5",t.host,t.port]:"".concat(t.host,":").concat(t.port);if(this.parents.length>0){var r=Object(M.d)(t,s,e,n,this.parents.reverse(),this.settings,this.updatedSettings),o=r.valueForState,l=r.valueForUpdatedSettings,u=r.setting;this.$store.dispatch("UpdateSettings",{group:e,key:n,input:u.key,value:l,type:u.type}),this.$store.dispatch("UpdateState",{group:e,key:n,input:u.key,value:o})}else this.$store.dispatch("UpdateSettings",{group:e,key:n,input:i,value:s,type:a}),this.$store.dispatch("UpdateState",{group:e,key:n,input:i,value:t})}}},W=(n("mGnP"),Object(m.a)(I,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"setting-input"},[n("el-input",{staticClass:"proxy-url-value-input",attrs:{value:t.proxyUrlData.host,placeholder:"host (e.g. localhost or 127.0.0.1)"},on:{input:function(e){return t.updateProxyUrl(e,"host")}}}),t._v(" :\n  "),n("el-input",{staticClass:"proxy-url-value-input",attrs:{value:t.proxyUrlData.port,placeholder:"port (e.g 9020 or 3090)"},on:{input:function(e){return t.updateProxyUrl(e,"port")}}}),t._v(" "),n("el-checkbox",{staticClass:"name-input",attrs:{value:t.proxyUrlData.socks5},on:{change:function(e){return t.updateProxyUrl(e,"socks5")}}},[t._v("Socks5")])],1)},[],!1,null,null,null));W.options.__file="ProxyUrlInput.vue";var G=W.exports,T={name:"PruneInput",props:{data:{type:[Object,Array],default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},computed:{prune:{get:function(){return this.data[0]},set:function(t){this.updateRadioInput(t)}}},methods:{updateIntInput:function(t,e){this.updateSetting([e,t],this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},updateSetting:function(t,e,n,i,a){var s=t.includes(":disabled")?":disabled":t;this.$store.dispatch("UpdateSettings",{group:e,key:n,input:i,value:s,type:a}),this.$store.dispatch("UpdateState",{group:e,key:n,input:i,value:t})},updateRadioInput:function(t){var e=":disabled"===t?[t]:[t,0];this.updateSetting(e,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)}}},R=(n("Ezi3"),Object(m.a)(T,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-radio-group",{model:{value:t.prune,callback:function(e){t.prune=e},expression:"prune"}},[n("el-radio",{attrs:{label:":disabled"}},[t._v("Disabled")]),t._v(" "),n("el-radio",{attrs:{label:":maxlen"}},[t._v("Limit-based")]),t._v(" "),n("el-radio",{attrs:{label:":maxage"}},[t._v("Time-based")])],1),t._v(" "),":maxlen"===t.prune?n("el-form-item",{attrs:{label:"max length","label-width":"100","label-position":"left"}},[n("el-input-number",{staticClass:"top-margin",attrs:{value:t.data[1],min:0,placeholder:"1500",size:"large"},on:{change:function(e){return t.updateIntInput(e,":maxlen")}}})],1):t._e(),t._v(" "),":maxage"===t.prune?n("el-form-item",{attrs:{label:"max age","label-width":"100","label-position":"left"}},[n("el-input-number",{staticClass:"top-margin",attrs:{value:t.data[1],min:0,placeholder:"3600",size:"large"},on:{change:function(e){return t.updateIntInput(e,":maxage")}}})],1):t._e()],1)},[],!1,null,null,null));R.options.__file="PruneInput.vue";var F=R.exports,N={name:"RateLimitInput",props:{data:{type:[Object,Array],default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},computed:{rateLimitAllUsers:function(){return this.data[this.setting.key]?this.data[this.setting.key]:["",""]},rateLimitAuthUsers:function(){return!(!this.data[this.setting.key]||!Array.isArray(this.data[this.setting.key][0]))&&this.data[this.setting.key][1]},rateLimitUnauthUsers:function(){return!(!this.data[this.setting.key]||!Array.isArray(this.data[this.setting.key][1]))&&this.data[this.setting.key][0]}},methods:{parseRateLimiter:function(t,e,n,i,a){var s;"oneLimit"===i?s="scale"===n?[t,a[1]]:[a[0],t]:"unauthUsersLimit"===i?s="scale"===n?[[t,a[0][1]],[a[1][0],a[1][1]]]:[[a[0][0],t],[a[1][0],a[1][1]]]:"authUserslimit"===i&&(s="scale"===n?[[a[0][0],a[0][1]],[t,a[1][1]]]:[[a[0][0],a[0][1]],[a[1][0],t]]),this.updateSetting(s,this.settingGroup.group,this.settingGroup.key,e,this.setting.type)},toggleLimits:function(t,e){this.updateSetting(t,this.settingGroup.group,this.settingGroup.key,e)},updateSetting:function(t,e,n,i,a){var s=Array.isArray(t[0])?t.map(function(t){return{tuple:t}}):{tuple:t};this.$store.dispatch("UpdateSettings",{group:e,key:n,input:i,value:s,type:a}),this.$store.dispatch("UpdateState",{group:e,key:n,input:i,value:t})}}},V=(n("irif"),Object(m.a)(N,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.rateLimitAuthUsers?t._e():n("div",[n("el-input",{staticClass:"scale-input",attrs:{value:t.rateLimitAllUsers[0],placeholder:"scale"},on:{input:function(e){return t.parseRateLimiter(e,t.setting.key,"scale","oneLimit",t.rateLimitAllUsers)}}}),t._v(" "),n("span",[t._v(":")]),t._v(" "),n("el-input",{staticClass:"limit-input",attrs:{value:t.rateLimitAllUsers[1],placeholder:"limit"},on:{input:function(e){return t.parseRateLimiter(e,t.setting.key,"limit","oneLimit",t.rateLimitAllUsers)}}}),t._v(" "),n("div",{staticClass:"limit-button-container"},[n("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:function(e){return t.toggleLimits([["",""],["",""]],t.setting.key)}}}),t._v(" "),n("p",{staticClass:"expl limit-expl"},[t._v("Set different limits for unauthenticated and authenticated users")])],1)],1),t._v(" "),t.rateLimitAuthUsers?n("div",[n("el-form-item",{staticClass:"rate-limit",attrs:{label:"Unauthenticated users:","label-width":"180px"}},[n("el-input",{staticClass:"scale-input",attrs:{value:t.rateLimitUnauthUsers[0],placeholder:"scale"},on:{input:function(e){return t.parseRateLimiter(e,t.setting.key,"scale","unauthUsersLimit",[t.rateLimitUnauthUsers,t.rateLimitAuthUsers])}}}),t._v(" "),n("span",[t._v(":")]),t._v(" "),n("el-input",{staticClass:"limit-input",attrs:{value:t.rateLimitUnauthUsers[1],placeholder:"limit"},on:{input:function(e){return t.parseRateLimiter(e,t.setting.key,"limit","unauthUsersLimit",[t.rateLimitUnauthUsers,t.rateLimitAuthUsers])}}})],1),t._v(" "),n("el-form-item",{staticClass:"rate-limit",attrs:{label:"Authenticated users:","label-width":"180px"}},[n("el-input",{staticClass:"scale-input",attrs:{value:t.rateLimitAuthUsers[0],placeholder:"scale"},on:{input:function(e){return t.parseRateLimiter(e,t.setting.key,"scale","authUserslimit",[t.rateLimitUnauthUsers,t.rateLimitAuthUsers])}}}),t._v(" "),n("span",[t._v(":")]),t._v(" "),n("el-input",{staticClass:"limit-input",attrs:{value:t.rateLimitAuthUsers[1],placeholder:"limit"},on:{input:function(e){return t.parseRateLimiter(e,t.setting.key,"limit","authUserslimit",[t.rateLimitUnauthUsers,t.rateLimitAuthUsers])}}})],1),t._v(" "),n("div",{staticClass:"limit-button-container"},[n("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(e){return t.toggleLimits(["",""],t.setting.key)}}}),t._v(" "),n("p",{staticClass:"expl limit-expl"},[t._v("Set limit for all users")])],1)],1):t._e()])},[],!1,null,null,null));V.options.__file="RateLimitInput.vue";var z=V.exports,K=n("LvDl"),q=n.n(K),B={name:"Inputs",components:{AutoLinkerInput:f,EditableKeywordInput:_,IconsInput:$,MascotsInput:U,MultipleSelect:A,ProxyUrlInput:G,PruneInput:F,RateLimitInput:z},props:{customLabelWidth:{type:String,default:function(){return this.labelWidth},required:!1},data:{type:[Object,Array],default:function(){return{}}},inputClass:{type:String,default:function(){return"input-class"},required:!1},labelClass:{type:String,default:function(){return"label"},required:!1},nested:{type:Boolean,default:function(){return!1}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}},settingParent:{type:Array,default:function(){return[]},required:!1}},computed:{canBeDeleted:function(){var t=this.settingGroup,e=t.group,n=t.key;return q.a.get(this.$store.state.settings.db,[e,n])&&this.$store.state.settings.db[e][n].includes(this.setting.key)},iconsData:function(){return Array.isArray(this.data[":icons"])?this.data[":icons"]:[]},inputValue:function(){return[":esshd",":cors_plug",":quack",":http_signatures",":tesla"].includes(this.settingGroup.group)&&this.data[this.setting.key]?"atom"===this.setting.type&&":"===this.data[this.setting.key].value[0]?this.data[this.setting.key].value.substr(1):this.data[this.setting.key].value:":logger"===this.settingGroup.group&&":backends"===this.setting.key||"Pleroma.Web.Auth.Authenticator"===this.setting.key||":admin_token"===this.setting.key?this.data.value:":mime"===this.settingGroup.group&&":types"===this.settingParent[0].key?this.data.value?this.data.value[this.setting.key]:[]:"atom"===this.setting.type&&this.data[this.setting.key]&&":"===this.data[this.setting.key][0]?this.data[this.setting.key].substr(1):this.data[this.setting.key]},labelWidth:function(){return this.isMobile?"100px":"280px"},keywordData:function(){return Array.isArray(this.data)?this.data:[]},rewritePolicyValue:function(){return"string"==typeof this.data[this.setting.key]?[this.data[this.setting.key]]:this.data[this.setting.key]},settings:function(){return this.$store.state.settings.settings},updatedSettings:function(){return this.$store.state.settings.updatedSettings}},methods:{editableKeyword:function(t,e){return":replace"===t||Array.isArray(e)&&e.includes("keyword")&&e.includes("integer")||"map"===e||Array.isArray(e)&&e.includes("keyword")&&-1!==e.findIndex(function(t){return t.includes("list")&&t.includes("string")})},processNestedData:function(t,e,n,i){var a=Object(M.d)(t,t,e,n,i.reverse(),this.settings,this.updatedSettings),s=a.valueForState,r=a.valueForUpdatedSettings,o=a.setting;this.$store.dispatch("UpdateSettings",{group:e,key:n,input:o.key,value:r,type:o.type}),this.$store.dispatch("UpdateState",{group:e,key:n,input:o.key,value:s})},removeSetting:function(){var t=r()(a.a.mark(function t(){var e;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.settingGroup.key?[{group:this.settingGroup.group,key:this.settingGroup.key,delete:!0,subkeys:[this.setting.key]}]:[{group:this.settingGroup.group,key:this.setting.key,delete:!0}],t.prev=1,t.next=4,this.$store.dispatch("RemoveSetting",e);case 4:t.next=9;break;case 6:return t.prev=6,t.t0=t.catch(1),t.abrupt("return");case 9:this.$message({type:"success",message:c.a.t("settings.successfullyRemoved")});case 10:case"end":return t.stop()}},t,this,[[1,6]])}));return function(){return t.apply(this,arguments)}}(),renderMultipleSelect:function(t){return Array.isArray(t)&&":backends"!==this.setting.key&&":args"!==this.setting.key&&(t.includes("module")||t.includes("list")&&t.includes("string")||t.includes("list")&&t.includes("atom")||t.includes("regex")&&t.includes("string")||":args"===this.setting.key)},update:function(t,e,n,i,a,s,r){r?this.processNestedData(t,e,n,i):this.updateSetting(t,e,n,a,s)},updateSetting:function(t,e,n,i,a){this.$store.dispatch("UpdateSettings",{group:e,key:n,input:i,value:t,type:a}),this.$store.dispatch("UpdateState",{group:e,key:n,input:i,value:t})}}},H=(n("y7KD"),Object(m.a)(B,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form-item",{class:t.labelClass,attrs:{"label-width":t.customLabelWidth}},[n("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n    "+t._s(t.setting.label)+"\n    "),t.canBeDeleted?n("el-tooltip",{attrs:{content:t.$t("settings.removeFromDB"),placement:"bottom-end"}},[n("el-button",{staticStyle:{"margin-left":"5px"},attrs:{icon:"el-icon-delete",circle:"",size:"mini"},on:{click:t.removeSetting}})],1):t._e()],1),t._v(" "),"string"===t.setting.type||t.setting.type.includes("string")&&t.setting.type.includes("atom")?n("el-input",{attrs:{value:t.inputValue,placeholder:t.setting.suggestions?t.setting.suggestions[0]:null},on:{input:function(e){return t.update(e,t.settingGroup.group,t.settingGroup.key,t.settingParent,t.setting.key,t.setting.type,t.nested)}}}):t._e(),t._v(" "),"boolean"===t.setting.type?n("el-switch",{attrs:{value:t.inputValue},on:{change:function(e){return t.update(e,t.settingGroup.group,t.settingGroup.key,t.settingParent,t.setting.key,t.setting.type,t.nested)}}}):t._e(),t._v(" "),"integer"===t.setting.type?n("el-input-number",{staticClass:"top-margin",attrs:{value:null===t.inputValue?0:t.inputValue,placeholder:t.setting.suggestions?t.setting.suggestions[0].toString():null,min:0,size:"large"},on:{change:function(e){return t.update(e,t.settingGroup.group,t.settingGroup.key,t.settingParent,t.setting.key,t.setting.type,t.nested)}}}):t._e(),t._v(" "),"module"===t.setting.type||t.setting.type.includes("atom")&&t.setting.type.includes(!1)?n("el-select",{attrs:{value:t.inputValue,clearable:""},on:{change:function(e){return t.update(e,t.settingGroup.group,t.settingGroup.key,t.settingParent,t.setting.key,t.setting.type,t.nested)}}},t._l(t.setting.suggestions,function(t,e){return n("el-option",{key:e,attrs:{value:t}})}),1):t._e(),t._v(" "),t.renderMultipleSelect(t.setting.type)?n("el-select",{attrs:{value:":rewrite_policy"===t.setting.key?t.rewritePolicyValue:t.inputValue,multiple:"",filterable:"","allow-create":""},on:{change:function(e){return t.update(e,t.settingGroup.group,t.settingGroup.key,t.settingParent,t.setting.key,t.setting.type,t.nested)}}},t._l(t.setting.suggestions,function(t,e){return n("el-option",{key:e,attrs:{value:t}})}),1):t._e(),t._v(" "),":ip"===t.setting.key?n("el-input",{attrs:{value:t.inputValue,placeholder:"xxx.xxx.xxx.xx"},on:{input:function(e){return t.update(e,t.settingGroup.group,t.settingGroup.key,t.settingParent,t.setting.key,t.setting.type,t.nested)}}}):t._e(),t._v(" "),"atom"===t.setting.type?n("el-input",{attrs:{value:t.inputValue,placeholder:t.setting.suggestions[0]?t.setting.suggestions[0].substr(1):""},on:{input:function(e){return t.update(e,t.settingGroup.group,t.settingGroup.key,t.settingParent,t.setting.key,t.setting.type,t.nested)}}},[n("template",{slot:"prepend"},[t._v(":")])],2):t._e(),t._v(" "),"keyword"===t.setting.type?n("div",t._l(t.setting.children,function(e){return n("div",{key:e.key},[n("inputs",{attrs:{"setting-group":t.settingGroup,"setting-parent":t.settingParent.concat([e]),setting:e,data:t.data[t.setting.key],"custom-label-width":"140px","label-class":"center-label","input-class":"keyword-inner-input",nested:!0}})],1)}),0):t._e(),t._v(" "),":auto_linker"===t.settingGroup.group?n("auto-linker-input",{attrs:{data:t.data,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),":mascots"===t.setting.key?n("mascots-input",{attrs:{data:t.keywordData,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),t.editableKeyword(t.setting.key,t.setting.type)?n("editable-keyword-input",{attrs:{data:t.keywordData,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),":icons"===t.setting.key?n("icons-input",{attrs:{data:t.iconsData,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),":proxy_url"===t.setting.key?n("proxy-url-input",{attrs:{data:t.data[t.setting.key],"setting-group":t.settingGroup,setting:t.setting,parents:t.settingParent}}):t._e(),t._v(" "),":backends"===t.setting.key||":args"===t.setting.key?n("multiple-select",{attrs:{data:t.data,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),":prune"===t.setting.key?n("prune-input",{attrs:{data:t.data[t.setting.key],"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),":rate_limit"===t.settingGroup.key?n("rate-limit-input",{attrs:{data:t.data,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),"keyword"!==t.setting.type?n("p",{staticClass:"expl",class:t.inputClass},[t._v(t._s(t.setting.description))]):t._e()],1)},[],!1,null,null,null));H.options.__file="Inputs.vue";var Q={name:"Setting",components:{Inputs:H.exports},props:{settingGroup:{type:Object,default:function(){return{}}},data:{type:Object,default:function(){return{}}}},computed:{emailAdapterChildren:function(){var t=this.$store.state.settings.settings[":pleroma"]["Pleroma.Emails.Mailer"][":adapter"];return this.settingGroup.children.filter(function(e){return e.group&&e.group.includes(t)})},loading:function(){return this.$store.state.settings.loading}},methods:{canBeDeleted:function(t){var e=this.settingGroup,n=e.group,i=e.key||t;return q.a.get(this.$store.state.settings.db,[n,i])&&this.$store.state.settings.db[n][i].includes(t)},compound:function(t){var e=t.type,n=t.key;t.children;return"keyword"===e||"map"===e||e.includes("keyword")||":replace"===n},removeSetting:function(){var t=r()(a.a.mark(function t(e){var n;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.settingGroup.key?[{group:this.settingGroup.group,key:this.settingGroup.key,delete:!0,subkeys:[e]}]:[{group:this.settingGroup.group,key:e,delete:!0}],t.prev=1,t.next=4,this.$store.dispatch("RemoveSetting",n);case 4:t.next=9;break;case 6:return t.prev=6,t.t0=t.catch(1),t.abrupt("return");case 9:this.$message({type:"success",message:c.a.t("settings.successfullyRemoved")});case 10:case"end":return t.stop()}},t,this,[[1,6]])}));return function(e){return t.apply(this,arguments)}}(),updateSetting:function(t,e,n){this.$store.dispatch("UpdateSettings",{tab:e,data:d()({},n,t)})}}},J=(n("pnah"),Object(m.a)(Q,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[t.settingGroup.description?n("el-form-item",{staticClass:"description-container"},[n("p",{staticClass:"description"},[t._v(t._s(t.settingGroup.description))])]):t._e(),t._v(" "),"Pleroma.Emails.Mailer"===t.settingGroup.key?n("div",[t._l(t.settingGroup.children.filter(function(t){return!t.group}),function(e){return n("div",{key:e.key},[n("inputs",{attrs:{"setting-group":t.settingGroup,setting:e,data:t.data}})],1)}),t._v(" "),t._l(t.emailAdapterChildren,function(e){return n("div",{key:e.key},[n("inputs",{attrs:{"setting-group":t.settingGroup,setting:e,data:t.data}})],1)})],2):n("div",t._l(t.settingGroup.children,function(e){return n("div",{key:e.key},[t.compound(e)?t._e():n("div",[n("inputs",{attrs:{"setting-group":t.settingGroup,setting:e,data:t.data,nested:!1}})],1),t._v(" "),t.compound(e)?n("div",[e.children?n("div",[n("el-form-item",[n("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n              "+t._s(e.label)+":\n              "),t.canBeDeleted(e.key)?n("el-tooltip",{attrs:{content:t.$t("settings.removeFromDB"),placement:"bottom-end"}},[n("el-button",{staticStyle:{"margin-left":"5px"},attrs:{icon:"el-icon-delete",circle:"",size:"mini"},on:{click:function(n){return t.removeSetting(e.key)}}})],1):t._e()],1)]),t._v(" "),t._l(e.children,function(i){return n("div",{key:i.key},[n("inputs",{attrs:{"setting-group":t.settingGroup,"setting-parent":[e,i],setting:i,data:t.data[e.key],nested:!0}})],1)})],2):n("div",[n("inputs",{attrs:{"setting-group":t.settingGroup,setting:e,data:t.data[e.key],nested:!0}})],1),t._v(" "),n("div",{staticClass:"line"})]):t._e()])}),0)],1)},[],!1,null,null,null));J.options.__file="Setting.vue";var Y=J.exports,Z={name:"ActivityPub",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{activitypub:function(){return this.settings.description.find(function(t){return":activitypub"===t.key})},activitypubData:function(){return q.a.get(this.settings.settings,[":pleroma",":activitypub"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.$store.state.settings.loading},user:function(){return this.settings.description.find(function(t){return":user"===t.key})},userData:function(){return q.a.get(this.settings.settings,[":pleroma",":user"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},X=(n("qEST"),Object(m.a)(Z,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"activitypubData",attrs:{model:t.activitypubData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.activitypub,data:t.activitypubData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"userData",attrs:{model:t.userData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.user,data:t.userData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));X.options.__file="ActivityPub.vue";var tt=X.exports,et={name:"Authentication",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{auth:function(){return this.settings.description.find(function(t){return":auth"===t.key})},authData:function(){return q.a.get(this.settings.settings,[":pleroma",":auth"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},ldap:function(){return this.settings.description.find(function(t){return":ldap"===t.key})},ldapData:function(){return q.a.get(this.settings.settings,[":pleroma",":ldap"])||{}},loading:function(){return this.settings.loading},oauth2:function(){return this.settings.description.find(function(t){return":oauth2"===t.key})},oauth2Data:function(){return q.a.get(this.settings.settings,[":pleroma",":oauth2"])||{}},pleromaAuthenticator:function(){return this.settings.description.find(function(t){return"Authenticator"===t.description})},pleromaAuthenticatorData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.Web.Auth.Authenticator"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},nt=(n("4b9x"),Object(m.a)(et,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"pleromaAuthenticatorData",attrs:{model:t.pleromaAuthenticatorData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.pleromaAuthenticator,data:t.pleromaAuthenticatorData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"authData",attrs:{model:t.authData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.auth,data:t.authData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"ldapData",attrs:{model:t.ldapData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.ldap,data:t.ldapData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"oauth2",attrs:{model:t.oauth2Data,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.oauth2,data:t.oauth2Data}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));nt.options.__file="Authentication.vue";var it=nt.exports,at={name:"AutoLinker",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{autoLinker:function(){return this.settings.description.find(function(t){return":opts"===t.key})},autoLinkerData:function(){return q.a.get(this.settings.settings,[":auto_linker",":opts"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},st=(n("cyzs"),Object(m.a)(at,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("el-form",{ref:"autoLinker",attrs:{model:t.autoLinkerData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.autoLinker,data:t.autoLinkerData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)},[],!1,null,null,null));st.options.__file="AutoLinker.vue";var rt=st.exports,ot={name:"Captcha",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{captcha:function(){return this.settings.description.find(function(t){return"Pleroma.Captcha"===t.key})},captchaData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.Captcha"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},kocaptcha:function(){return this.settings.description.find(function(t){return"Pleroma.Captcha.Kocaptcha"===t.key})},kocaptchaData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.Captcha.Kocaptcha"])||{}},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},lt=(n("2q6O"),Object(m.a)(ot,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"captchaData",attrs:{model:t.captchaData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.captcha,data:t.captchaData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"kocaptchaData",attrs:{model:t.kocaptchaData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.kocaptcha,data:t.kocaptchaData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));lt.options.__file="Captcha.vue";var ut=lt.exports,ct={name:"Esshd",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{esshd:function(){return this.settings.description.find(function(t){return":esshd"===t.group})},esshdData:function(){return q.a.get(this.settings.settings,[":esshd"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading}}),methods:{toggleEsshd:function(t){this.$store.dispatch("ToggleEsshd",t)},updateSetting:function(t,e,n){this.$store.dispatch("UpdateSettings",{tab:e,data:d()({},n,t)})},onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},pt=(n("FCne"),Object(m.a)(ct,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"esshdData",attrs:{model:t.esshdData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.esshd,data:t.esshdData}}),t._v(" "),n("el-form-item",[n("p",{staticClass:"expl"},[t._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 "),n("span",{staticClass:"code"},[t._v("priv/ssh_keys")]),t._v(") and create the host keys with\n        "),n("span",{staticClass:"code"},[t._v('ssh-keygen -m PEM -N "" -b 2048 -t rsa -f ssh_host_rsa_key')]),t._v(".\n        After restarting, you should be able to connect to your Pleroma instance with "),n("span",{staticClass:"code"},[t._v("ssh username@server -p $PORT")])])]),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));pt.options.__file="Esshd.vue";var dt=pt.exports,gt={name:"Frontend",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{assets:function(){return this.settings.description.find(function(t){return":assets"===t.key})},assetsData:function(){return q.a.get(this.settings.settings,[":pleroma",":assets"])||{}},chat:function(){return this.settings.description.find(function(t){return":chat"===t.key})},chatData:function(){return q.a.get(this.settings.settings,[":pleroma",":chat"])||{}},emoji:function(){return this.settings.description.find(function(t){return":emoji"===t.key})},emojiData:function(){return q.a.get(this.settings.settings,[":pleroma",":emoji"])||{}},frontend:function(){return this.settings.description.find(function(t){return":frontend_configurations"===t.key})},frontendData:function(){return q.a.get(this.settings.settings,[":pleroma",":frontend_configurations"])||{}},markup:function(){return this.settings.description.find(function(t){return":markup"===t.key})},markupData:function(){return q.a.get(this.settings.settings,[":pleroma",":markup"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},mt=(n("hVXW"),Object(m.a)(gt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"frontendData",attrs:{model:t.frontendData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.frontend,data:t.frontendData}})],1),t._v(" "),n("el-form",{ref:"assetsData",attrs:{model:t.assetsData,"label-width":t.labelWidth}},[n("el-form-item",{attrs:{label:"Assets:"}}),t._v(" "),n("setting",{attrs:{"setting-group":t.assets,data:t.assetsData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"emojiData",attrs:{model:t.emojiData,"label-width":t.labelWidth}},[n("el-form-item",{attrs:{label:"Emoji:"}}),t._v(" "),n("setting",{attrs:{"setting-group":t.emoji,data:t.emojiData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"chatData",attrs:{model:t.chatData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.chat,data:t.chatData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"markupData",attrs:{model:t.markupData,"label-width":t.labelWidth}},[n("el-form-item",{attrs:{label:"Markup settings:"}}),t._v(" "),n("setting",{attrs:{"setting-group":t.markup,data:t.markupData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));mt.options.__file="Frontend.vue";var ht=mt.exports,ft={name:"Gopher",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{gopher:function(){return this.settings.description.find(function(t){return":gopher"===t.key})},gopherData:function(){return q.a.get(this.settings.settings,[":pleroma",":gopher"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},vt=(n("w5cJ"),Object(m.a)(ft,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("el-form",{ref:"gopher",attrs:{model:t.gopherData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.gopher,data:t.gopherData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)},[],!1,null,null,null));vt.options.__file="Gopher.vue";var bt=vt.exports,yt={name:"HTTP",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{corsPlug:function(){return this.settings.description.find(function(t){return":cors_plug"===t.group})},corsPlugData:function(){return q.a.get(this.settings.settings,[":cors_plug"])||{}},http:function(){return this.settings.description.find(function(t){return":http"===t.key})},httpData:function(){return q.a.get(this.settings.settings,[":pleroma",":http"])||{}},httpSecurity:function(){return this.settings.description.find(function(t){return":http_security"===t.key})},httpSecurityData:function(){return q.a.get(this.settings.settings,[":pleroma",":http_security"])||{}},httpSignatures:function(){return this.settings.description.find(function(t){return":http_signatures"===t.group})},httpSignaturesData:function(){return q.a.get(this.settings.settings,[":http_signatures"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading},webCacheTtl:function(){return this.settings.description.find(function(t){return":web_cache_ttl"===t.key})},webCacheTtlData:function(){return q.a.get(this.settings.settings,[":pleroma",":web_cache_ttl"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},kt=(n("KFE3"),Object(m.a)(yt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"httpData",attrs:{model:t.httpData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.http,data:t.httpData}})],1),t._v(" "),n("el-form",{ref:"corsPlugData",attrs:{model:t.corsPlugData,"label-width":t.labelWidth}},[n("el-form-item",{attrs:{label:"Cors plug config:"}}),t._v(" "),n("setting",{attrs:{"setting-group":t.corsPlug,data:t.corsPlugData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"httpSignatures",attrs:{model:t.httpSignaturesData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.httpSignatures,data:t.httpSignaturesData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"httpSecurityData",attrs:{model:t.httpSecurityData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.httpSecurity,data:t.httpSecurityData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"webCacheTtl",attrs:{model:t.webCacheTtlData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.webCacheTtl,data:t.webCacheTtlData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));kt.options.__file="Http.vue";var _t=kt.exports,wt={name:"Instance",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{adminToken:function(){return this.settings.description.find(function(t){return"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 'admin_token' parameter"===t.description})},adminTokenData:function(){return q.a.get(this.settings.settings,[":pleroma",":admin_token"])||{}},fetchInitialPosts:function(){return this.settings.description.find(function(t){return":fetch_initial_posts"===t.key})},fetchInitialPostsData:function(){return q.a.get(this.settings.settings,[":pleroma",":fetch_initial_posts"])||{}},instance:function(){return this.settings.description.find(function(t){return":instance"===t.key})},instanceData:function(){return q.a.get(this.settings.settings,[":pleroma",":instance"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading},manifest:function(){return this.settings.description.find(function(t){return":manifest"===t.key})},manifestData:function(){return q.a.get(this.settings.settings,[":pleroma",":manifest"])||{}},pleromaUser:function(){return this.settings.description.find(function(t){return"Pleroma.User"===t.key})},pleromaUserData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.User"])||{}},scheduledActivity:function(){return this.$store.state.settings.description.find(function(t){return"Pleroma.ScheduledActivity"===t.key})},scheduledActivityData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.ScheduledActivity"])||{}},suggestions:function(){return this.$store.state.settings.description.find(function(t){return":suggestions"===t.key})},suggestionsData:function(){return q.a.get(this.settings.settings,[":pleroma",":suggestions"])||{}},uriSchemes:function(){return this.$store.state.settings.description.find(function(t){return":uri_schemes"===t.key})},uriSchemesData:function(){return q.a.get(this.settings.settings,[":pleroma",":uri_schemes"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},St=(n("e0P1"),Object(m.a)(wt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"instanceData",attrs:{model:t.instanceData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.instance,data:t.instanceData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"uriSchemes",attrs:{model:t.uriSchemesData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.uriSchemes,data:t.uriSchemesData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"adminToken",attrs:{model:t.adminTokenData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.adminToken,data:t.adminTokenData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"scheduledActivity",attrs:{model:t.scheduledActivityData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.scheduledActivity,data:t.scheduledActivityData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"fetchInitialPosts",attrs:{model:t.fetchInitialPostsData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.fetchInitialPosts,data:t.fetchInitialPostsData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"manifest",attrs:{model:t.manifestData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.manifest,data:t.manifestData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"suggestions",attrs:{model:t.suggestionsData,"label-width":t.labelWidth}},[n("el-form-item",{attrs:{label:"Suggestions:"}}),t._v(" "),n("setting",{attrs:{"setting-group":t.suggestions,data:t.suggestionsData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"pleromaUser",attrs:{model:t.pleromaUserData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.pleromaUser,data:t.pleromaUserData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));St.options.__file="Instance.vue";var $t=St.exports,xt={name:"JobQueue",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{activityExpiration:function(){return this.settings.description.find(function(t){return"Pleroma.ActivityExpiration"===t.key})},activityExpirationData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.ActivityExpiration"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading},obanQueues:function(){return this.settings.description.find(function(t){return"Oban"===t.key})},obanQueuesData:function(){return q.a.get(this.settings.settings,[":pleroma","Oban"])||{}},workers:function(){return this.settings.description.find(function(t){return":workers"===t.key})},workersData:function(){return q.a.get(this.settings.settings,[":pleroma",":workers"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},Dt=(n("lNpP"),Object(m.a)(xt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"obanQueuesData",attrs:{model:t.obanQueuesData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.obanQueues,data:t.obanQueuesData}})],1),t._v(" "),n("el-form",{ref:"workersData",attrs:{model:t.workersData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.workers,data:t.workersData}})],1),t._v(" "),n("el-form",{ref:"activityExpiration",attrs:{model:t.activityExpirationData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.activityExpiration,data:t.activityExpirationData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));Dt.options.__file="JobQueue.vue";var Pt=Dt.exports,jt={name:"Logger",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{console:function(){return this.settings.description.find(function(t){return":console"===t.key})},consoleData:function(){return q.a.get(this.settings.settings,[":logger",":console"])||{}},exsyslogger:function(){return this.settings.description.find(function(t){return":ex_syslogger"===t.key})},exsysloggerData:function(){return q.a.get(this.settings.settings,[":logger",":ex_syslogger"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading},logger:function(){return this.settings.description.find(function(t){return":logger"===t.group})},loggerData:function(){return q.a.get(this.settings.settings,[":logger",":backends"])||{}},quack:function(){return this.settings.description.find(function(t){return":quack"===t.group})},quackData:function(){return q.a.get(this.settings.settings,[":quack"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},Ct=(n("mADP"),Object(m.a)(jt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"loggerData",attrs:{model:t.loggerData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.logger,data:t.loggerData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"consoleData",attrs:{model:t.consoleData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.console,data:t.consoleData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"exsysloggerData",attrs:{model:t.exsysloggerData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.exsyslogger,data:t.exsysloggerData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"quackData",attrs:{model:t.quackData,"label-width":t.labelWidth}},[n("el-form-item",{attrs:{label:"Quack logger:"}}),t._v(" "),n("setting",{attrs:{"setting-group":t.quack,data:t.quackData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));Ct.options.__file="Logger.vue";var Lt=Ct.exports,Ut={name:"Mailer",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{emailNotifications:function(){return this.settings.description.find(function(t){return":email_notifications"===t.key})},emailNotificationsData:function(){return q.a.get(this.settings.settings,[":pleroma",":email_notifications"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.$store.state.settings.loading},mailer:function(){return this.settings.description.find(function(t){return"Pleroma.Emails.Mailer"===t.key})},mailerData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.Emails.Mailer"])||{}},userEmail:function(){return this.settings.description.find(function(t){return"Pleroma.Emails.UserEmail"===t.key})},userEmailData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.Emails.UserEmail"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},Ot=(n("PygS"),Object(m.a)(Ut,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"mailer",attrs:{model:t.mailerData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.mailer,data:t.mailerData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"emailNotifications",attrs:{model:t.emailNotificationsData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.emailNotifications,data:t.emailNotificationsData}})],1),t._v(" "),n("el-form",{ref:"userEmail",attrs:{model:t.userEmail,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.userEmail,data:t.userEmailData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));Ot.options.__file="Mailer.vue";var Et=Ot.exports,At={name:"MediaProxy",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading},mediaProxy:function(){return this.settings.description.find(function(t){return":media_proxy"===t.key})},mediaProxyData:function(){return q.a.get(this.settings.settings,[":pleroma",":media_proxy"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},Mt=(n("UdS4"),Object(m.a)(At,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("el-form",{ref:"mediaProxy",attrs:{model:t.mediaProxyData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.mediaProxy,data:t.mediaProxyData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)},[],!1,null,null,null));Mt.options.__file="MediaProxy.vue";var It=Mt.exports,Wt={name:"Metadata",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading},metadata:function(){return this.settings.description.find(function(t){return"Pleroma.Web.Metadata"===t.key})},metadataData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.Web.Metadata"])||{}},richMedia:function(){return this.settings.description.find(function(t){return":rich_media"===t.key})},richMediaData:function(){return q.a.get(this.settings.settings,[":pleroma",":rich_media"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},Gt=(n("apN7"),Object(m.a)(Wt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"metadata",attrs:{model:t.metadataData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.metadata,data:t.metadataData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"richMedia",attrs:{model:t.richMediaData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.richMedia,data:t.richMediaData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));Gt.options.__file="Metadata.vue";var Tt=Gt.exports,Rt={name:"MRF",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading},mrfSimple:function(){return this.settings.description.find(function(t){return":mrf_simple"===t.key})},mrfSimpleData:function(){return q.a.get(this.settings.settings,[":pleroma",":mrf_simple"])||{}},mrfRejectnonpublic:function(){return this.settings.description.find(function(t){return":mrf_rejectnonpublic"===t.key})},mrfRejectnonpublicData:function(){return q.a.get(this.settings.settings,[":pleroma",":mrf_rejectnonpublic"])||{}},mrfHellthread:function(){return this.settings.description.find(function(t){return":mrf_hellthread"===t.key})},mrfHellthreadData:function(){return q.a.get(this.settings.settings,[":pleroma",":mrf_hellthread"])||{}},mrfKeyword:function(){return this.settings.description.find(function(t){return":mrf_keyword"===t.key})},mrfKeywordData:function(){return q.a.get(this.settings.settings,[":pleroma",":mrf_keyword"])||{}},mrfSubchain:function(){return this.settings.description.find(function(t){return":mrf_subchain"===t.key})},mrfSubchainData:function(){return q.a.get(this.settings.settings,[":pleroma",":mrf_subchain"])||{}},mrfMention:function(){return this.settings.description.find(function(t){return":mrf_mention"===t.key})},mrfMentionData:function(){return q.a.get(this.settings.settings,[":pleroma",":mrf_mention"])||{}},mrfNormalizeMarkup:function(){return this.settings.description.find(function(t){return":mrf_normalize_markup"===t.key})},mrfNormalizeMarkupData:function(){return q.a.get(this.settings.settings,[":pleroma",":mrf_normalize_markup"])||{}},mrfVocabulary:function(){return this.settings.description.find(function(t){return":mrf_vocabulary"===t.key})},mrfVocabularyData:function(){return q.a.get(this.settings.settings,[":pleroma",":mrf_vocabulary"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},Ft=(n("h9z7"),Object(m.a)(Rt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"mrfSimple",attrs:{model:t.mrfSimpleData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.mrfSimple,data:t.mrfSimpleData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"mrfRejectnonpublic",attrs:{model:t.mrfRejectnonpublicData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.mrfRejectnonpublic,data:t.mrfRejectnonpublicData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"mrfHellthread",attrs:{model:t.mrfHellthreadData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.mrfHellthread,data:t.mrfHellthreadData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"mrfKeyword",attrs:{model:t.mrfKeywordData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.mrfKeyword,data:t.mrfKeywordData}})],1),t._v(" "),n("el-form",{ref:"mrfSubchain",attrs:{model:t.mrfSubchainData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.mrfSubchain,data:t.mrfSubchainData}})],1),t._v(" "),n("el-form",{ref:"mrfMention",attrs:{model:t.mrfMentionData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.mrfMention,data:t.mrfMentionData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"mrfNormalizeMarkup",attrs:{model:t.mrfNormalizeMarkupData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.mrfNormalizeMarkup,data:t.mrfNormalizeMarkupData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"mrfVocabulary",attrs:{model:t.mrfVocabularyData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.mrfVocabulary,data:t.mrfVocabularyData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));Ft.options.__file="MRF.vue";var Nt=Ft.exports,Vt={name:"Other",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading},mimeTypes:function(){return this.settings.description.find(function(t){return":mime"===t.group})},mimeTypesData:function(){return q.a.get(this.settings.settings,[":mime"])||{}},remoteIp:function(){return this.settings.description.find(function(t){return"Pleroma.Plugs.RemoteIp"===t.key})},remoteIpData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.Plugs.RemoteIp"])||{}},teslaAdapter:function(){return this.settings.description.find(function(t){return":tesla"===t.group})},teslaAdapterData:function(){return q.a.get(this.settings.settings,[":tesla"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},zt=(n("gFOO"),Object(m.a)(Vt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"teslaAdapter",attrs:{model:t.teslaAdapterData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.teslaAdapter,data:t.teslaAdapterData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"mimeTypes",attrs:{model:t.mimeTypesData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.mimeTypes,data:t.mimeTypesData}})],1),t._v(" "),n("el-form",{ref:"remoteIp",attrs:{model:t.remoteIpData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.remoteIp,data:t.remoteIpData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));zt.options.__file="Other.vue";var Kt=zt.exports,qt={name:"RateLimiters",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{rateLimiters:function(){return this.settings.description.find(function(t){return":rate_limit"===t.key})},rateLimitersData:function(){return q.a.get(this.settings.settings,[":pleroma",":rate_limit"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.$store.state.settings.loading}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},Bt=(n("WvM+"),Object(m.a)(qt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("el-form",{ref:"rateLimiters",attrs:{model:t.rateLimitersData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.rateLimiters,data:t.rateLimitersData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)},[],!1,null,null,null));Bt.options.__file="RateLimiters.vue";var Ht=Bt.exports,Qt={name:"Relays",data:function(){return{newRelay:""}},computed:{relays:function(){return this.$store.state.relays.fetchedRelays},relaysTable:function(){return this.relays.map(function(t){return{instance:t}})},loading:function(){return this.$store.state.relays.loading}},mounted:function(){this.$store.dispatch("FetchRelays")},methods:{followRelay:function(){this.$store.dispatch("AddRelay",this.newRelay)},deleteRelay:function(t){this.$store.dispatch("DeleteRelay",t)}}},Jt=(n("J7+w"),Object(m.a)(Qt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-row",{attrs:{gutter:5}},[n("el-col",{attrs:{span:8}},[n("el-input",{attrs:{placeholder:t.$t("settings.followRelay")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.followRelay(e)}},model:{value:t.newRelay,callback:function(e){t.newRelay=e},expression:"newRelay"}})],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-button",{attrs:{type:"primary"},nativeOn:{click:function(e){return t.followRelay(e)}}},[t._v(t._s(t.$t("settings.follow")))])],1)],1),t._v(" "),n("el-table",{attrs:{data:t.relaysTable}},[n("el-table-column",{attrs:{label:t.$t("settings.instanceUrl"),prop:"instance"}}),t._v(" "),n("el-table-column",{attrs:{fixed:"right",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(n){return t.deleteRelay(e.row.instance)}}},[t._v("\n          "+t._s(t.$t("table.delete"))+"\n        ")])]}}],null,!1,2132974932)})],1)],1)},[],!1,null,null,null));Jt.options.__file="Relays.vue";var Yt=Jt.exports,Zt={name:"Upload",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading},upload:function(){return this.settings.description.find(function(t){return"Pleroma.Upload"===t.key})},uploadData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.Upload"])||{}},uploadersLocal:function(){return this.settings.description.find(function(t){return"Pleroma.Uploaders.Local"===t.key})},uploadersLocalData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.Uploaders.Local"])||{}},uploadersS3:function(){return this.settings.description.find(function(t){return"Pleroma.Uploaders.S3"===t.key})},uploadersS3Data:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.Uploaders.S3"])||{}},uploadFilterMogrify:function(){return this.settings.description.find(function(t){return"Pleroma.Upload.Filter.Mogrify"===t.key})},uploadFilterMogrifyData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.Upload.Filter.Mogrify"])||{}},uploadAnonymizeFilename:function(){return this.settings.description.find(function(t){return"Pleroma.Upload.Filter.AnonymizeFilename"===t.key})},uploadAnonymizeFilenameData:function(){return q.a.get(this.settings.settings,[":pleroma","Pleroma.Upload.Filter.AnonymizeFilename"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},Xt=(n("DPt0"),Object(m.a)(Zt,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",[n("el-form",{ref:"uploadData",attrs:{model:t.uploadData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.upload,data:t.uploadData}})],1),t._v(" "),n("el-form",{ref:"uploadersLocal",attrs:{model:t.uploadersLocalData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.uploadersLocal,data:t.uploadersLocalData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"uploadersS3",attrs:{model:t.uploadersS3Data,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.uploadersS3,data:t.uploadersS3Data}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"uploadFilterMogrify",attrs:{model:t.uploadFilterMogrifyData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.uploadFilterMogrify,data:t.uploadFilterMogrifyData}})],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{ref:"uploadAnonymizeFilename",attrs:{model:t.uploadAnonymizeFilenameData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.uploadAnonymizeFilename,data:t.uploadAnonymizeFilenameData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)],1)},[],!1,null,null,null));Xt.options.__file="Upload.vue";var te=Xt.exports,ee={name:"WebPush",components:{Setting:Y},computed:l()({},Object(u.b)(["settings"]),{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"280px"},loading:function(){return this.settings.loading},vapidDetails:function(){return this.settings.description.find(function(t){return":vapid_details"===t.key})},vapidDetailsData:function(){return q.a.get(this.settings.settings,[":web_push_encryption",":vapid_details"])||{}}}),methods:{onSubmit:function(){var t=r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch("SubmitChanges");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:this.$message({type:"success",message:c.a.t("settings.success")});case 9:case"end":return t.stop()}},t,this,[[0,5]])}));return function(){return t.apply(this,arguments)}}()}},ne=(n("+qaP"),Object(m.a)(ee,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("el-form",{ref:"vapidDetailsData",attrs:{model:t.vapidDetailsData,"label-width":t.labelWidth}},[n("setting",{attrs:{"setting-group":t.vapidDetails,data:t.vapidDetailsData}}),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)},[],!1,null,null,null));ne.options.__file="WebPush.vue";var ie=ne.exports,ae=n("mm8V"),se={props:{host:{type:String,required:!0},packName:{type:String,required:!0},name:{type:String,required:!0},file:{type:String,required:!0},isLocal:{type:Boolean,required:!0}},data:function(){return{newName:null,newFile:null,copyToLocalPackName:null,copyPopoverVisible:!1,copyToShortcode:"",copyToFilename:""}},computed:{emojiName:{get:function(){return null!==this.newName?this.newName:this.name},set:function(t){this.newName=t}},emojiFile:{get:function(){return null!==this.newFile?this.newFile:this.file},set:function(t){this.newFile=t}},localPacks:function(){return this.$store.state.emojiPacks.localPacks}},methods:{update:function(){var t=this;this.$store.dispatch("UpdateAndSavePackFile",{action:"update",packName:this.packName,oldName:this.name,newName:this.emojiName,newFilename:this.emojiFile}).then(function(){t.newName=null,t.newFile=null,t.$store.dispatch("ReloadEmoji")})},remove:function(){var t=this;this.$confirm("This will delete the emoji, are you sure?","Warning",{confirmButtonText:"Yes, delete the emoji",cancelButtonText:"No, leave it be",type:"warning"}).then(function(){t.$store.dispatch("UpdateAndSavePackFile",{action:"remove",packName:t.packName,name:t.name}).then(function(){t.newName=null,t.newFile=null,t.$store.dispatch("ReloadEmoji")})})},copyToLocal:function(){var t=this;this.$store.dispatch("UpdateAndSavePackFile",{action:"add",packName:this.copyToLocalPackName,shortcode:""!==this.copyToShortcode.trim()?this.copyToShortcode.trim():this.name,fileName:""!==this.copyToFilename.trim()?this.copyToFilename.trim():this.file,file:this.addressOfEmojiInPack(this.host,this.packName,this.file)}).then(function(){t.copyToLocalPackName=null,t.copyToLocalVisible=!1,t.copyToShortcode="",t.copyToFilename="",t.$store.dispatch("ReloadEmoji")})},addressOfEmojiInPack:ae.a}},re=(n("3nbG"),Object(m.a)(se,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isLocal?n("div",{staticClass:"emoji-container"},[n("img",{staticClass:"emoji-preview-img",attrs:{src:t.addressOfEmojiInPack(t.host,t.packName,t.file)}}),t._v(" "),n("el-input",{staticClass:"emoji-info",attrs:{placeholder:t.$t("settings.shortcode")},model:{value:t.emojiName,callback:function(e){t.emojiName=e},expression:"emojiName"}}),t._v(" "),n("el-input",{staticClass:"emoji-info",attrs:{placeholder:t.$t("settings.file")},model:{value:t.emojiFile,callback:function(e){t.emojiFile=e},expression:"emojiFile"}}),t._v(" "),n("div",{staticClass:"emoji-buttons"},[n("el-button",{staticClass:"emoji-button",attrs:{type:"primary"},on:{click:t.update}},[t._v(t._s(t.$t("settings.update")))]),t._v(" "),n("el-button",{staticClass:"emoji-button",on:{click:t.remove}},[t._v(t._s(t.$t("settings.remove")))])],1)],1):t._e(),t._v(" "),t.isLocal?t._e():n("div",{staticClass:"emoji-container"},[n("img",{staticClass:"emoji-preview-img",attrs:{src:t.addressOfEmojiInPack(t.host,t.packName,t.file)}}),t._v(" "),n("el-input",{staticClass:"emoji-info",attrs:{value:t.emojiName,placeholder:t.$t("settings.shortcode")}}),t._v(" "),n("el-input",{staticClass:"emoji-info",attrs:{value:t.emojiFile,placeholder:t.$t("settings.file")}}),t._v(" "),n("el-popover",{attrs:{placement:"left-start","popper-class":"copy-popover"},model:{value:t.copyPopoverVisible,callback:function(e){t.copyPopoverVisible=e},expression:"copyPopoverVisible"}},[n("p",[t._v(t._s(t.$t("settings.selectLocalPack")))]),t._v(" "),n("el-select",{attrs:{placeholder:t.$t("settings.localPack")},model:{value:t.copyToLocalPackName,callback:function(e){t.copyToLocalPackName=e},expression:"copyToLocalPackName"}},t._l(t.localPacks,function(t,e){return n("el-option",{key:e,attrs:{label:e,value:e}})}),1),t._v(" "),n("p",[t._v(t._s(t.$t("settings.specifyShortcode")))]),t._v(" "),n("el-input",{attrs:{placeholder:t.$t("settings.leaveEmptyShortcode")},model:{value:t.copyToShortcode,callback:function(e){t.copyToShortcode=e},expression:"copyToShortcode"}}),t._v(" "),n("p",[t._v(t._s(t.$t("settings.specifyFilename")))]),t._v(" "),n("el-input",{attrs:{placeholder:t.$t("settings.leaveEmptyFilename")},model:{value:t.copyToFilename,callback:function(e){t.copyToFilename=e},expression:"copyToFilename"}}),t._v(" "),n("el-button",{staticClass:"copy-to-local-button",attrs:{disabled:!t.copyToLocalPackName,type:"primary"},on:{click:t.copyToLocal}},[t._v(t._s(t.$t("settings.copy")))]),t._v(" "),n("el-button",{staticClass:"emoji-button",attrs:{slot:"reference",type:"primary"},slot:"reference"},[t._v(t._s(t.$t("settings.copyToLocalPack")))])],1)],1)])},[],!1,null,null,null));re.options.__file="SingleEmojiEditor.vue";var oe=re.exports,le={props:{packName:{type:String,required:!0}},data:function(){return{shortcode:"",imageUploadURL:"",customFileName:""}},computed:{shortcodePresent:function(){return""===this.shortcode.trim()}},methods:{uploadEmoji:function(t){var e=this,n=t.file;this.$store.dispatch("UpdateAndSavePackFile",{action:"add",packName:this.packName,shortcode:this.shortcode,file:n||this.imageUploadURL,fileName:this.customFileName}).then(function(){e.shortcode="",e.imageUploadURL="",e.customFileName="",e.$store.dispatch("ReloadEmoji")})}}},ue=(n("Yha0"),Object(m.a)(le,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{attrs:{"label-width":"130px","label-position":"left",size:"small"}},[n("el-form-item",{attrs:{label:t.$t("settings.shortcode")}},[n("el-input",{attrs:{placeholder:t.$t("settings.required")},model:{value:t.shortcode,callback:function(e){t.shortcode=e},expression:"shortcode"}})],1),t._v(" "),n("el-form-item",{attrs:{label:t.$t("settings.customFilename")}},[n("el-input",{attrs:{placeholder:t.$t("settings.optional")},model:{value:t.customFileName,callback:function(e){t.customFileName=e},expression:"customFileName"}})],1),t._v(" "),n("el-form-item",{attrs:{label:t.$t("settings.uploadFile")}},[n("div",{staticClass:"upload-file-url"},[n("el-input",{attrs:{placeholder:t.$t("settings.url")},model:{value:t.imageUploadURL,callback:function(e){t.imageUploadURL=e},expression:"imageUploadURL"}}),t._v(" "),n("el-button",{staticClass:"upload-button",attrs:{disabled:t.shortcodePresent,type:"primary"},on:{click:t.uploadEmoji}},[t._v(t._s(t.$t("settings.upload")))])],1),t._v(" "),n("div",{staticClass:"upload-container"},[n("p",{staticClass:"text"},[t._v("or")]),t._v(" "),n("el-upload",{attrs:{"http-request":t.uploadEmoji,multiple:!1,"show-file-list":!1,action:"add"}},[n("el-button",{attrs:{disabled:t.shortcodePresent,type:"primary"}},[t._v(t._s(t.$t("settings.clickToUpload")))])],1)],1)])],1)},[],!1,null,null,null));ue.options.__file="NewEmojiUploader.vue";var ce={components:{SingleEmojiEditor:oe,NewEmojiUploader:ue.exports},props:{name:{type:String,required:!0},pack:{type:Object,required:!0},host:{type:String,required:!0},isLocal:{type:Boolean,required:!0}},data:function(){return{showPackContent:[],downloadSharedAs:""}},computed:{share:{get:function(){return this.pack.pack["share-files"]},set:function(t){this.$store.dispatch("UpdateLocalPackVal",{name:this.name,key:"share-files",value:t})}},homepage:{get:function(){return this.pack.pack.homepage},set:function(t){this.$store.dispatch("UpdateLocalPackVal",{name:this.name,key:"homepage",value:t})}},description:{get:function(){return this.pack.pack.description},set:function(t){this.$store.dispatch("UpdateLocalPackVal",{name:this.name,key:"description",value:t})}},license:{get:function(){return this.pack.pack.license},set:function(t){this.$store.dispatch("UpdateLocalPackVal",{name:this.name,key:"license",value:t})}},fallbackSrc:{get:function(){return this.pack.pack["fallback-src"]},set:function(t){""!==t.trim()?this.$store.dispatch("UpdateLocalPackVal",{name:this.name,key:"fallback-src",value:t}):(this.$store.dispatch("UpdateLocalPackVal",{name:this.name,key:"fallback-src",value:null}),this.$store.dispatch("UpdateLocalPackVal",{name:this.name,key:"fallback-src-sha256",value:null}))}}},methods:{downloadFromInstance:function(){var t=this;this.$store.dispatch("DownloadFrom",{instanceAddress:this.host,packName:this.name,as:this.downloadSharedAs}).then(function(){return t.$store.dispatch("ReloadEmoji")}).then(function(){return t.$store.dispatch("SetLocalEmojiPacks")})},deletePack:function(){var t=this;this.$confirm("This will delete the pack, are you sure?","Warning",{confirmButtonText:"Yes, delete the pack",cancelButtonText:"No, leave it be",type:"warning"}).then(function(){t.$store.dispatch("DeletePack",{name:t.name}).then(function(){return t.$store.dispatch("ReloadEmoji")}).then(function(){return t.$store.dispatch("SetLocalEmojiPacks")})}).catch(function(){})},savePackMetadata:function(){this.$store.dispatch("SavePackMetadata",{packName:this.name})}}},pe=(n("wFa7"),Object(m.a)(ce,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-collapse-item",{staticClass:"has-background",attrs:{title:t.name,name:t.name}},[t.isLocal?n("el-form",{staticClass:"emoji-pack-metadata",attrs:{"label-width":"120px","label-position":"left",size:"small"}},[n("el-form-item",{attrs:{label:t.$t("settings.sharePack")}},[n("el-switch",{model:{value:t.share,callback:function(e){t.share=e},expression:"share"}})],1),t._v(" "),n("el-form-item",{attrs:{label:t.$t("settings.homepage")}},[n("el-input",{model:{value:t.homepage,callback:function(e){t.homepage=e},expression:"homepage"}})],1),t._v(" "),n("el-form-item",{attrs:{label:t.$t("settings.description")}},[n("el-input",{attrs:{type:"textarea"},model:{value:t.description,callback:function(e){t.description=e},expression:"description"}})],1),t._v(" "),n("el-form-item",{attrs:{label:t.$t("settings.license")}},[n("el-input",{model:{value:t.license,callback:function(e){t.license=e},expression:"license"}})],1),t._v(" "),n("el-form-item",{attrs:{label:t.$t("settings.fallbackSrc")}},[n("el-input",{model:{value:t.fallbackSrc,callback:function(e){t.fallbackSrc=e},expression:"fallbackSrc"}})],1),t._v(" "),t.fallbackSrc&&""!==t.fallbackSrc.trim()?n("el-form-item",{attrs:{label:t.$t("settings.fallbackSrcSha")}},[t._v("\n      "+t._s(t.pack.pack["fallback-src-sha256"])+"\n    ")]):t._e(),t._v(" "),n("el-form-item",{staticClass:"save-pack-button"},[n("el-button",{attrs:{type:"primary"},on:{click:t.savePackMetadata}},[t._v(t._s(t.$t("settings.savePackMetadata")))]),t._v(" "),n("el-button",{on:{click:t.deletePack}},[t._v(t._s(t.$t("settings.deletePack")))])],1),t._v(" "),n("el-form-item",[t.pack.pack["can-download"]?n("el-link",{attrs:{href:"//"+t.host+"/api/pleroma/emoji/packs/"+t.name+"/download_shared",underline:!1,type:"primary",target:"_blank"}},[n("el-button",{staticClass:"download-archive"},[t._v(t._s(t.$t("settings.downloadPackArchive")))])],1):t._e()],1)],1):t._e(),t._v(" "),t.isLocal?t._e():n("el-form",{staticClass:"emoji-pack-metadata",attrs:{"label-width":"120px","label-position":"left",size:"small"}},[n("el-form-item",{attrs:{label:t.$t("settings.sharePack")}},[n("el-switch",{attrs:{disabled:""},model:{value:t.share,callback:function(e){t.share=e},expression:"share"}})],1),t._v(" "),t.homepage?n("el-form-item",{attrs:{label:t.$t("settings.homepage")}},[n("span",[t._v(t._s(t.homepage))])]):t._e(),t._v(" "),t.description?n("el-form-item",{attrs:{label:t.$t("settings.description")}},[n("span",[t._v(t._s(t.description))])]):t._e(),t._v(" "),t.license?n("el-form-item",{attrs:{label:t.$t("settings.license")}},[n("span",[t._v(t._s(t.license))])]):t._e(),t._v(" "),t.fallbackSrc?n("el-form-item",{attrs:{label:t.$t("settings.fallbackSrc")}},[n("span",[t._v(t._s(t.fallbackSrc))])]):t._e(),t._v(" "),t.fallbackSrc&&""!==t.fallbackSrc.trim()?n("el-form-item",{attrs:{label:t.$t("settings.fallbackSrcSha")}},[t._v("\n      "+t._s(t.pack.pack["fallback-src-sha256"])+"\n    ")]):t._e(),t._v(" "),n("el-form-item",[t.pack.pack["can-download"]?n("el-link",{attrs:{href:"//"+t.host+"/api/pleroma/emoji/packs/"+t.name+"/download_shared",underline:!1,type:"primary",target:"_blank"}},[n("el-button",{staticClass:"download-archive"},[t._v(t._s(t.$t("settings.downloadPackArchive")))])],1):t._e()],1)],1),t._v(" "),n("el-collapse",{staticClass:"contents-collapse",model:{value:t.showPackContent,callback:function(e){t.showPackContent=e},expression:"showPackContent"}},[t.isLocal?n("el-collapse-item",{staticClass:"no-background",attrs:{title:t.$t("settings.addNewEmoji"),name:"addEmoji"}},[n("new-emoji-uploader",{attrs:{"pack-name":t.name}})],1):t._e(),t._v(" "),Object.keys(t.pack.files).length>0?n("el-collapse-item",{staticClass:"no-background",attrs:{title:t.$t("settings.manageEmoji"),name:"manageEmoji"}},t._l(t.pack.files,function(e,i){return n("single-emoji-editor",{key:i,attrs:{host:t.host,"pack-name":t.name,name:i,file:e,"is-local":t.isLocal}})}),1):t._e(),t._v(" "),t.isLocal?t._e():n("el-collapse-item",{staticClass:"no-background",attrs:{title:t.$t("settings.downloadPack"),name:"downloadPack"}},[n("p",[t._v("\n        "+t._s(t.$t("settings.thisWillDownload"))+' "'+t._s(t.name)+'" '+t._s(t.$t("settings.downloadToCurrentInstance"))+'\n        "'+t._s(""===t.downloadSharedAs.trim()?t.name:t.downloadSharedAs)+'" ('+t._s(t.$t("settings.canBeChanged"))+").\n        "+t._s(t.$t("settings.willBeUsable"))+".\n      ")]),t._v(" "),n("div",{staticClass:"download-shared-pack"},[n("el-input",{attrs:{placeholder:t.$t("settings.downloadAsOptional")},model:{value:t.downloadSharedAs,callback:function(e){t.downloadSharedAs=e},expression:"downloadSharedAs"}}),t._v(" "),n("el-button",{staticClass:"download-shared-pack-button",attrs:{type:"primary"},on:{click:t.downloadFromInstance}},[t._v("\n          "+t._s(t.$t("settings.downloadSharedPack"))+"\n        ")])],1)])],1)],1)},[],!1,null,null,null));pe.options.__file="EmojiPack.vue";var de={components:{EmojiPack:pe.exports},data:function(){return{remoteInstanceAddress:"",newPackName:"",activeLocalPack:[],activeRemotePack:[]}},computed:{isMobile:function(){return"mobile"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"100px":"240px"},localPacks:function(){return this.$store.state.emojiPacks.localPacks},remotePacks:function(){return this.$store.state.emojiPacks.remotePacks}},mounted:function(){this.refreshLocalPacks()},methods:{createLocalPack:function(){var t=this;this.$store.dispatch("CreatePack",{name:this.newPackName}).then(function(){t.newPackName="",t.$store.dispatch("SetLocalEmojiPacks"),t.$store.dispatch("ReloadEmoji")})},refreshLocalPacks:function(){this.$store.dispatch("SetLocalEmojiPacks")},refreshRemotePacks:function(){this.$store.dispatch("SetRemoteEmojiPacks",{remoteInstance:this.remoteInstanceAddress})},reloadEmoji:function(){this.$store.dispatch("ReloadEmoji")},importFromFS:function(){var t=this;this.$store.dispatch("ImportFromFS").then(function(){t.$store.dispatch("SetLocalEmojiPacks"),t.$store.dispatch("ReloadEmoji")})}}},ge=(n("smuD"),Object(m.a)(de,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"button-container"},[n("el-button",{attrs:{type:"primary"},on:{click:t.reloadEmoji}},[t._v(t._s(t.$t("settings.reloadEmoji")))]),t._v(" "),n("el-tooltip",{attrs:{content:t.$t("settings.importEmojiTooltip"),effects:"dark",placement:"bottom"}},[n("el-button",{attrs:{type:"primary"},on:{click:t.importFromFS}},[t._v("\n        "+t._s(t.$t("settings.importPacks"))+"\n      ")])],1)],1),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form",{attrs:{"label-width":t.labelWidth}},[n("el-form-item",{attrs:{label:t.$t("settings.localPacks")}},[n("el-button",{attrs:{type:"primary"},on:{click:t.refreshLocalPacks}},[t._v(t._s(t.$t("settings.refreshLocalPacks")))])],1),t._v(" "),n("el-form-item",{attrs:{label:t.$t("settings.createLocalPack")}},[n("div",{staticClass:"create-pack"},[n("el-input",{attrs:{placeholder:t.$t("users.name")},model:{value:t.newPackName,callback:function(e){t.newPackName=e},expression:"newPackName"}}),t._v(" "),n("el-button",{staticClass:"create-pack-button",attrs:{disabled:""===t.newPackName.trim()},on:{click:t.createLocalPack}},[t._v("\n          "+t._s(t.$t("users.create"))+"\n        ")])],1)]),t._v(" "),Object.keys(t.localPacks).length>0?n("el-form-item",{attrs:{label:t.$t("settings.packs")}},t._l(t.localPacks,function(e,i){return n("el-collapse",{key:i,model:{value:t.activeLocalPack,callback:function(e){t.activeLocalPack=e},expression:"activeLocalPack"}},[n("emoji-pack",{attrs:{name:i,pack:e,host:t.$store.getters.authHost,"is-local":!0}})],1)}),1):t._e(),t._v(" "),n("div",{staticClass:"line"}),t._v(" "),n("el-form-item",{attrs:{label:t.$t("settings.remotePacks")}},[n("div",{staticClass:"create-pack"},[n("el-input",{attrs:{placeholder:t.$t("settings.remoteInstanceAddress")},model:{value:t.remoteInstanceAddress,callback:function(e){t.remoteInstanceAddress=e},expression:"remoteInstanceAddress"}}),t._v(" "),n("el-button",{staticClass:"create-pack-button",attrs:{disabled:""===t.remoteInstanceAddress.trim()},on:{click:t.refreshRemotePacks}},[t._v("\n          "+t._s(t.$t("settings.refreshRemote"))+"\n        ")])],1)]),t._v(" "),Object.keys(t.remotePacks).length>0?n("el-form-item",{attrs:{label:t.$t("settings.packs")}},t._l(t.remotePacks,function(e,i){return n("el-collapse",{key:i,model:{value:t.activeRemotePack,callback:function(e){t.activeRemotePack=e},expression:"activeRemotePack"}},[n("emoji-pack",{attrs:{name:i,pack:e,host:t.$store.getters.authHost,"is-local":!1}})],1)}),1):t._e()],1)],1)},[],!1,null,null,null));ge.options.__file="index.vue";var me={components:{ActivityPub:tt,Authentication:it,AutoLinker:rt,Captcha:ut,EmojiPacks:ge.exports,Esshd:dt,Frontend:ht,Gopher:bt,Http:_t,Instance:$t,JobQueue:Pt,Logger:Lt,Mailer:Et,MediaProxy:It,Metadata:Tt,Mrf:Nt,Other:Kt,RateLimiters:Ht,Relays:Yt,Upload:te,WebPush:ie},data:function(){return{activeTab:"instance"}},computed:{isMobile:function(){return"mobile"===this.$store.state.app.device},tabPosition:function(){return this.isMobile?"top":"left"}},mounted:function(){this.$store.dispatch("FetchSettings")}},he=(n("nSF4"),Object(m.a)(me,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"settings-container"},[n("h1",[t._v(t._s(t.$t("settings.settings")))]),t._v(" "),n("el-tabs",{attrs:{"tab-position":t.tabPosition},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[n("el-tab-pane",{attrs:{label:t.$t("settings.activityPub"),lazy:""}},[n("activity-pub")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.auth"),lazy:""}},[n("authentication")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.autoLinker"),lazy:""}},[n("auto-linker")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.esshd"),lazy:""}},[n("esshd")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.captcha"),lazy:""}},[n("captcha")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.emojiPacks"),lazy:""}},[n("emoji-packs")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.frontend"),lazy:""}},[n("frontend")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.gopher"),lazy:""}},[n("gopher")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.http"),lazy:""}},[n("http")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.instance"),name:"instance"}},[n("instance")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.jobQueue"),lazy:""}},[n("job-queue")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.logger"),lazy:""}},[n("logger")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.mailer"),lazy:""}},[n("mailer")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.mediaProxy"),lazy:""}},[n("media-proxy")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.metadata"),lazy:""}},[n("metadata")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.mrf"),lazy:""}},[n("mrf")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.rateLimiters"),lazy:""}},[n("rate-limiters")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.relays"),lazy:""}},[n("relays")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.webPush"),lazy:""}},[n("web-push")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.upload"),lazy:""}},[n("upload")],1),t._v(" "),n("el-tab-pane",{attrs:{label:t.$t("settings.other"),lazy:""}},[n("other")],1)],1)],1)},[],!1,null,"6c80d30e",null));he.options.__file="index.vue";e.default=he.exports},Yha0:function(t,e,n){"use strict";var i=n("sfrf");n.n(i).a},apN7:function(t,e,n){"use strict";var i=n("9p49");n.n(i).a},cyzs:function(t,e,n){"use strict";var i=n("Px65");n.n(i).a},e0P1:function(t,e,n){"use strict";var i=n("TudB");n.n(i).a},ehZn:function(t,e,n){},fyIw:function(t,e,n){},gFOO:function(t,e,n){"use strict";var i=n("jqM2");n.n(i).a},h9z7:function(t,e,n){"use strict";var i=n("TOIk");n.n(i).a},hVXW:function(t,e,n){"use strict";var i=n("uswN");n.n(i).a},irif:function(t,e,n){"use strict";var i=n("UtFC");n.n(i).a},jqM2:function(t,e,n){},lNpP:function(t,e,n){"use strict";var i=n("UbP/");n.n(i).a},ld6V:function(t,e,n){},mADP:function(t,e,n){"use strict";var i=n("qLeA");n.n(i).a},mGnP:function(t,e,n){"use strict";var i=n("smg2");n.n(i).a},mSK5:function(t,e,n){},nKzF:function(t,e,n){"use strict";var i=n("77pt");n.n(i).a},nSF4:function(t,e,n){"use strict";var i=n("ehZn");n.n(i).a},pnah:function(t,e,n){"use strict";var i=n("JqY8");n.n(i).a},qEST:function(t,e,n){"use strict";var i=n("4NUT");n.n(i).a},qLeA:function(t,e,n){},rdar:function(t,e,n){"use strict";var i=n("NiUD");n.n(i).a},sW7V:function(t,e,n){},sfrf:function(t,e,n){},smg2:function(t,e,n){},smuD:function(t,e,n){"use strict";var i=n("QZC8");n.n(i).a},uswN:function(t,e,n){},w5cJ:function(t,e,n){"use strict";var i=n("PYLh");n.n(i).a},wFa7:function(t,e,n){"use strict";var i=n("sW7V");n.n(i).a},wgcy:function(t,e,n){},x6RV:function(t,e,n){},y7KD:function(t,e,n){"use strict";var i=n("YKHE");n.n(i).a}}]);
      2 //# sourceMappingURL=chunk-6b7b.e7ed7973.js.map