Emojies stuff
[anni] / priv / static / adminfe1 / static / js / chunk-33c9.cf3bdd1b.js
1 (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-33c9"],{"+2nY":function(t,e,i){"use strict";var n=i("ld6V");i.n(n).a},"+qaP":function(t,e,i){"use strict";var n=i("60OA");i.n(n).a},"/1q2":function(t,e,i){},"/Pdy":function(t,e,i){},"2q6O":function(t,e,i){"use strict";var n=i("Scsy");i.n(n).a},"3IoU":function(t,e,i){"use strict";var n=i("6V7o");i.n(n).a},"3UkU":function(t,e,i){"use strict";var n=i("SNcG");i.n(n).a},"3YZA":function(t,e,i){},"3yoa":function(t,e,i){"use strict";var n=i("Vk/j");i.n(n).a},"4NUT":function(t,e,i){},"4b9x":function(t,e,i){"use strict";var n=i("wgcy");i.n(n).a},"56He":function(t,e,i){"use strict";var n=i("dXnW");i.n(n).a},"60OA":function(t,e,i){},"6V7o":function(t,e,i){},"77pt":function(t,e,i){},"8Ewe":function(t,e,i){"use strict";var n=i("8iWl");i.n(n).a},"8iWl":function(t,e,i){},"9Hof":function(t,e,i){"use strict";var n=i("ncj/");i.n(n).a},"9p49":function(t,e,i){},AbuJ:function(t,e,i){},DPt0:function(t,e,i){"use strict";var n=i("x6RV");i.n(n).a},EXm2:function(t,e,i){},Ezi3:function(t,e,i){"use strict";var n=i("MNl6");i.n(n).a},FCne:function(t,e,i){"use strict";var n=i("OCuP");i.n(n).a},JqY8:function(t,e,i){},KFE3:function(t,e,i){"use strict";var n=i("mSK5");i.n(n).a},MNl6:function(t,e,i){},NiUD:function(t,e,i){},OCuP:function(t,e,i){},OQQp:function(t,e,i){"use strict";var n=i("pPJ2");i.n(n).a},PYLh:function(t,e,i){},PygS:function(t,e,i){"use strict";var n=i("TtMh");i.n(n).a},RSJF:function(t,e,i){},SNcG:function(t,e,i){},Scsy:function(t,e,i){},TOIk:function(t,e,i){},TRR9:function(t,e,i){},TtMh:function(t,e,i){},TudB:function(t,e,i){},"UbP/":function(t,e,i){},UdS4:function(t,e,i){"use strict";var n=i("WwJU");i.n(n).a},UqcT:function(t,e,i){"use strict";var n=i("RSJF");i.n(n).a},UtFC:function(t,e,i){},"Vk/j":function(t,e,i){},"WvM+":function(t,e,i){"use strict";var n=i("TRR9");i.n(n).a},WwJU:function(t,e,i){},YKHE:function(t,e,i){},YcIK:function(t,e,i){"use strict";i.r(e);var n=i("yXPU"),s=i.n(n),a=i("lSNA"),r=i.n(a),o=i("o0o1"),c=i.n(o),l=i("L2JU"),u=i("mSNy"),p=i("RIqP"),d=i.n(p),h={name:"BooleanCombinedInput",props:{data:{type:[Object,Array],default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},computed:{atomValue:function(){return this.data[this.setting.key]&&":"===this.data[this.setting.key][0]?this.data[this.setting.key].substr(1):this.data[this.setting.key]},booleanValue:function(){return"boolean"!=typeof this.data[this.setting.key]},getPlaceholder:function(){return{0:":basic",1:"username",2:"password"}},integerValue:function(){return this.data[this.setting.key]||0},stringValue:function(){return this.data[this.setting.key]||""},tupleValue:function(){return this.data[this.setting.key]||["","",""]}},methods:{processTupleTwoTypeValue:function(t,e,i){if(!1===t)this.updateSetting(t,this.settingGroup.group,this.settingGroup.key,e,this.setting.type);else if(!0===t)this.updateSetting(["","",""],this.settingGroup.group,this.settingGroup.key,e,this.setting.type);else{var n=d()(this.tupleValue);n[i]=t,this.updateSetting(n,this.settingGroup.group,this.settingGroup.key,e,this.setting.type)}},processTwoTypeValue:function(t,e){if(!0===t){var i=":truncate"===e?0:"";this.updateSetting(i,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,i,n,s){this.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:t,type:s}),this.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:t})}}},g=(i("a+Pk"),i("KHd+")),m=Object(g.a)(h,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.setting.type.includes("string")?i("div",{attrs:{"data-search":t.setting.key||t.setting.group}},[i("el-switch",{attrs:{value:t.booleanValue},on:{change:function(e){return t.processTwoTypeValue(e,t.setting.key)}}}),t._v(" "),t.booleanValue?i("el-input",{attrs:{value:t.stringValue},on:{input:function(e){return t.processTwoTypeValue(e,t.setting.key)}}}):t._e()],1):t._e(),t._v(" "),t.setting.type.includes("integer")?i("div",{attrs:{"data-search":t.setting.key||t.setting.group}},[i("el-switch",{attrs:{value:t.booleanValue},on:{change:function(e){return t.processTwoTypeValue(e,t.setting.key)}}}),t._v(" "),t.booleanValue?i("el-input-number",{attrs:{value:t.integerValue},on:{input:function(e){return t.processTwoTypeValue(e,t.setting.key)}}}):t._e()],1):t._e(),t._v(" "),t.setting.type.includes("atom")?i("div",{attrs:{"data-search":t.setting.key||t.setting.group}},[i("el-switch",{attrs:{value:t.booleanValue},on:{change:function(e){return t.processTwoTypeValue(e,t.setting.key)}}}),t._v(" "),t.booleanValue?i("el-input",{attrs:{value:t.atomValue},on:{input:function(e){return t.processTwoTypeValue(e,t.setting.key)}}},[i("template",{slot:"prepend"},[t._v(":")])],2):t._e()],1):t._e(),t._v(" "),t.setting.type.includes("tuple")?i("div",{attrs:{"data-search":t.setting.key||t.setting.group}},[i("el-switch",{attrs:{value:t.booleanValue},on:{change:function(e){return t.processTupleTwoTypeValue(e,t.setting.key)}}}),t._v(" "),t.booleanValue?i("div",{staticClass:"tuple-input-container"},t._l(t.tupleValue,function(e,n){return i("el-input",{key:n,staticClass:"tuple-input",attrs:{value:e,placeholder:t.getPlaceholder[n]},on:{input:function(e){return t.processTupleTwoTypeValue(e,t.setting.key,n)}}})}),1):t._e()],1):t._e()])},[],!1,null,null,null);m.options.__file="BooleanCombinedInput.vue";var f=m.exports,b=i("h74u");function v(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function y(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?v(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var k={name:"EditableKeywordInput",props:{data:{type:Array,default:function(){return{}}},parents:{type:Array,default:function(){return[]},required:!1},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},computed:{editableKeywordWithInteger:function(){return this.setting.type.includes("keyword")&&this.setting.type.includes("integer")},editableKeywordWithSelect:function(){return this.setting.type.includes("map")&&-1!==this.setting.type.findIndex(function(t){return t.includes("list")&&t.includes("string")})||this.setting.type.includes("keyword")&&-1!==this.setting.type.findIndex(function(t){return t.includes("list")&&t.includes("string")})},editableKeywordWithString:function(){return":crontab"!==this.setting.key&&(this.setting.type.includes("keyword")&&this.setting.type.includes("string")||this.setting.type.includes("tuple")&&this.setting.type.includes("list")||this.setting.type.includes("map")&&this.setting.type.includes("string"))},isDesktop:function(){return"desktop"===this.$store.state.app.device},keyPlaceholder:function(){return this.setting.key_placeholder?this.setting.key_placeholder:":replace"===this.setting.key?"pattern":"key"},settings:function(){return this.$store.state.settings.settings},updatedSettings:function(){return this.$store.state.settings.updatedSettings},valuePlaceholder:function(){return this.setting.value_placeholder?this.setting.value_placeholder:":replace"===this.setting.key?"replacement":"value"}},methods:{addRowToEditableKeyword:function(){var t=[].concat(d()(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),i=this.data.filter(function(t){return Object.values(t)[0].id!==e});this.updateSetting(i,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},generateID:function(){return"f".concat((~~(1e8*Math.random())).toString(16))},getCrontabWorkerLabel:function(t){var e=this.getKey(t);return e.includes("Pleroma.Workers.Cron.")?e.replace("Pleroma.Workers.Cron.",""):e},getKey:function(t){return Object.keys(t)[0]},getId:function(t){return Object.values(t)[0].id},getSuggestion:function(t){var e=this;return this.setting.suggestions.find(function(i){return i[1]===e.getKey(t)})[0]},getValue:function(t){return Object.values(t)[0].value},parseEditableKeyword:function(t,e,i){var n=this,s=this.getId(i),a=this.data.map(function(i,a){return Object.values(i)[0].id===s?"key"===e?r()({},t,Object.values(n.data[a])[0]):r()({},Object.keys(i)[0],y(y({},Object.values(n.data[a])[0]),{},{value:t})):i});this.updateSetting(a,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},updateCrontab:function(t,e,i){var n=this,s=this.getId(i),a=this.data.map(function(e,i){return Object.values(e)[0].id===s?r()({},Object.keys(e)[0],y(y({},Object.values(n.data[i])[0]),{},{value:t})):e}),o=a.reduce(function(t,e){return y(y({},t),{},r()({},Object.keys(e)[0],["reversed_tuple",Object.values(e)[0].value]))},{});this.$store.dispatch("UpdateSettings",{group:this.settingGroup.group,key:this.settingGroup.key,input:this.setting.key,value:o,type:this.setting.type}),this.$store.dispatch("UpdateState",{group:this.settingGroup.group,key:this.settingGroup.key,input:this.setting.key,value:a})},updateSetting:function(t,e,i,n,s){var a=this.wrapUpdatedSettings(t,n,s);if(this.parents.length>0){var r=Object(b.e)(t,a,e,i,this.parents.reverse(),this.settings,this.updatedSettings),o=r.valueForState,c=r.valueForUpdatedSettings,l=r.setting;this.$store.dispatch("UpdateSettings",{group:e,key:i,input:l.key,value:c,type:l.type}),this.$store.dispatch("UpdateState",{group:e,key:i,input:l.key,value:o})}else this.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:a,type:s}),this.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:t})},wrapUpdatedSettings:function(t,e,i){return"map"===i?t.reduce(function(t,e){return y(y({},t),{},r()({},Object.keys(e)[0],Object.values(e)[0].value))},{}):t.reduce(function(t,e){return y(y({},t),{},r()({},Object.keys(e)[0],["list",Object.values(e)[0].value]))},{})}}},_=(i("nKzF"),Object(g.a)(k,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"editable-keyword-container"},[":crontab"===t.setting.key?i("div",{staticClass:"crontab",attrs:{"data-search":t.setting.key}},t._l(t.data,function(e){return i("el-form-item",{key:t.getId(e),staticClass:"crontab-container",attrs:{label:t.getCrontabWorkerLabel(e)}},[i("el-input",{staticClass:"input setting-input",attrs:{value:t.getValue(e),placeholder:t.getSuggestion(e)||null},on:{input:function(i){return t.updateCrontab(i,"value",e)}}})],1)}),1):t.editableKeywordWithInteger?i("div",{attrs:{"data-search":t.setting.key||t.setting.group}},[t._l(t.data,function(e){return i("div",{key:t.getId(e),staticClass:"setting-input"},[i("el-input",{staticClass:"name-input",attrs:{value:t.getKey(e),placeholder:"key"},on:{input:function(i){return t.parseEditableKeyword(i,"key",e)}}}),t._v(" :\n      "),i("el-input-number",{staticClass:"value-input",attrs:{value:t.getValue(e),min:0,size:"large"},on:{change:function(i){return t.parseEditableKeyword(i,"value",e)}}}),t._v(" "),i("el-button",{staticClass:"icon-minus-button",attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-minus",circle:""},on:{click:function(i){return t.deleteEditableKeywordRow(e)}}})],1)}),t._v(" "),i("el-button",{attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-plus",circle:""},on:{click:t.addRowToEditableKeyword}})],2):t.editableKeywordWithString?i("div",{attrs:{"data-search":t.setting.key||t.setting.group}},[t._l(t.data,function(e){return i("div",{key:t.getId(e),staticClass:"setting-input"},[i("el-input",{staticClass:"name-input",attrs:{value:t.getKey(e),placeholder:t.keyPlaceholder},on:{input:function(i){return t.parseEditableKeyword(i,"key",e)}}}),t._v(" :\n      "),i("el-input",{staticClass:"value-input",attrs:{value:t.getValue(e),placeholder:t.valuePlaceholder},on:{input:function(i){return t.parseEditableKeyword(i,"value",e)}}}),t._v(" "),i("el-button",{staticClass:"icon-minus-button",attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-minus",circle:""},on:{click:function(i){return t.deleteEditableKeywordRow(e)}}})],1)}),t._v(" "),i("el-button",{attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-plus",circle:""},on:{click:t.addRowToEditableKeyword}})],2):t.editableKeywordWithSelect?i("div",{attrs:{"data-search":t.setting.key||t.setting.group}},[t._l(t.data,function(e){return i("div",{key:t.getId(e),staticClass:"setting-input"},[i("el-input",{staticClass:"name-input",attrs:{value:t.getKey(e),placeholder:"key"},on:{input:function(i){return t.parseEditableKeyword(i,"key",e)}}}),t._v(" :\n      "),i("el-select",{staticClass:"value-input",attrs:{value:t.getValue(e),multiple:"",filterable:"","allow-create":""},on:{change:function(i){return t.parseEditableKeyword(i,"value",e)}}}),t._v(" "),i("el-button",{staticClass:"icon-minus-button",attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-minus",circle:""},on:{click:function(i){return t.deleteEditableKeywordRow(e)}}})],1)}),t._v(" "),i("el-button",{attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-plus",circle:""},on:{click:t.addRowToEditableKeyword}})],2):t._e()])},[],!1,null,null,null));_.options.__file="EditableKeywordInput.vue";var P=_.exports,O=i("zUJn"),j=i("8j27"),w={name:"EditorInput",components:{EditorContent:O.b,EditorMenuBar:O.c},props:{value:{type:String,default:""},name:{type:String,default:""}},data:function(){return{editor:null,emitAfterOnUpdate:!1}},computed:{isMobile:function(){return"mobile"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"}},watch:{value:function(t){this.emitAfterOnUpdate?this.emitAfterOnUpdate=!1:this.editor&&this.editor.setContent(t)}},beforeDestroy:function(){this.editor&&this.editor.destroy()},mounted:function(){var t=this;this.editor=new O.a({extensions:[new j.a,new j.b,new j.c,new j.d,new j.e({levels:[1,2,3]}),new j.f,new j.g,new j.h,new j.i,new j.j,new j.k,new j.l],content:this.value,onUpdate:function(e){var i=e.getHTML;t.$emit("input",i())}}),this.editor.setContent(this.value)},methods:{removeInstanceDoc:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("RemoveInstanceDocument",t.name);case 2:t.editor.setContent(t.value);case 3:case"end":return e.stop()}},e)}))()}}},S=(i("3yoa"),Object(g.a)(w,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-form",{attrs:{"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("el-form-item",{staticClass:"editor-form-item",attrs:{"data-search":"instance-panel"===t.name?":instance_panel":":terms_of_services"}},[i("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n      "+t._s("instance-panel"===t.name?t.$t("settings.instancePanel"):t.$t("settings.termsOfServices"))+"\n      "),i("el-tooltip",{attrs:{content:t.$t("settings.removeFromDB"),placement:"bottom-end"}},[i("el-button",{staticClass:"delete-setting-button",attrs:{icon:"el-icon-delete",circle:"",size:"mini"},on:{click:t.removeInstanceDoc}})],1)],1),t._v(" "),i("div",{staticClass:"editor"},[i("editor-menu-bar",{attrs:{editor:t.editor},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.commands,s=e.isActive;return[i("div",{staticClass:"menubar"},[i("button",{staticClass:"menubar__button",class:{"is-active":s.bold()},on:{click:n.bold}},[i("svg-icon",{attrs:{"icon-class":"tiptap-bold"}})],1),t._v(" "),i("button",{staticClass:"menubar__button",class:{"is-active":s.italic()},on:{click:n.italic}},[i("svg-icon",{attrs:{"icon-class":"tiptap-italic"}})],1),t._v(" "),i("button",{staticClass:"menubar__button",class:{"is-active":s.underline()},on:{click:n.underline}},[i("svg-icon",{attrs:{"icon-class":"tiptap-underline"}})],1),t._v(" "),i("button",{staticClass:"menubar__button",class:{"is-active":s.heading({level:1})},on:{click:function(t){return n.heading({level:1})}}},[t._v("\n            H1\n          ")]),t._v(" "),i("button",{staticClass:"menubar__button",class:{"is-active":s.heading({level:2})},on:{click:function(t){return n.heading({level:2})}}},[t._v("\n            H2\n          ")]),t._v(" "),i("button",{staticClass:"menubar__button",class:{"is-active":s.heading({level:3})},on:{click:function(t){return n.heading({level:3})}}},[t._v("\n            H3\n          ")]),t._v(" "),i("button",{staticClass:"menubar__button",class:{"is-active":s.bullet_list()},on:{click:n.bullet_list}},[i("svg-icon",{attrs:{"icon-class":"tiptap-ul"}})],1),t._v(" "),i("button",{staticClass:"menubar__button",class:{"is-active":s.ordered_list()},on:{click:n.ordered_list}},[i("svg-icon",{attrs:{"icon-class":"tiptap-ol"}})],1),t._v(" "),i("button",{staticClass:"menubar__button",class:{"is-active":s.blockquote()},on:{click:n.blockquote}},[i("svg-icon",{attrs:{"icon-class":"tiptap-quote"}})],1),t._v(" "),i("button",{staticClass:"menubar__button",class:{"is-active":s.link()},on:{click:n.link}},[i("svg-icon",{attrs:{"icon-class":"tiptap-link"}})],1),t._v(" "),i("button",{staticClass:"menubar__button",class:{"is-active":s.code_block()},on:{click:n.code_block}},[i("svg-icon",{attrs:{"icon-class":"tiptap-code"}})],1),t._v(" "),i("button",{staticClass:"menubar__button",on:{click:n.horizontal_rule}},[i("svg-icon",{attrs:{"icon-class":"tiptap-hr"}})],1),t._v(" "),i("button",{staticClass:"menubar__button",on:{click:n.undo}},[i("svg-icon",{attrs:{"icon-class":"tiptap-undo"}})],1),t._v(" "),i("button",{staticClass:"menubar__button",on:{click:n.redo}},[i("svg-icon",{attrs:{"icon-class":"tiptap-redo"}})],1)])]}}])}),t._v(" "),i("editor-content",{staticClass:"editor__content",attrs:{editor:t.editor}})],1)])],1)},[],!1,null,null,null));S.options.__file="EditorInput.vue";var $=S.exports;function D(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function C(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?D(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):D(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var x={name:"EditableKeywordInput",props:{data:{type:Array,default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},computed:{isDesktop:function(){return"desktop"===this.$store.state.app.device}},methods:{addIconToIcons:function(){var t=[].concat(d()(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,i=this.data.map(function(i,n){return n===t?[].concat(d()(i),[{key:"",value:"",id:e.generateID()}]):i});this.updateSetting(i,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},deleteIcondRow:function(t){var e=this.data.filter(function(e,i){return i!==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,i,n){var s=this.data.map(function(s,a){return a===i?s.map(function(i){return i.id===n?C(C({},i),{},"key"===e?{key:t}:{value:t}):i}):s});this.updateSetting(s,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},updateSetting:function(t,e,i,n,s){var a=t.map(function(t){return t.reduce(function(t,e){var i=e.key,n=e.value;return C(C({},t),{},r()({},i,n))},{})},{});this.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:a,type:s}),this.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:t})}}},E=(i("rdar"),Object(g.a)(x,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"mascot-container",attrs:{"data-search":t.setting.key||t.setting.group}},[t._l(t.data,function(e,n){return i("div",{key:n,staticClass:"mascot"},[i("div",{staticClass:"icons-container"},[i("div",{staticClass:"icon-container"},t._l(e,function(e){var s=e.key,a=e.value,r=e.id;return i("div",{key:r,staticClass:"icon-values-container"},[i("el-input",{staticClass:"icon-key-input",attrs:{value:s,placeholder:"key"},on:{input:function(e){return t.parseIcons(e,"key",n,r)}}}),t._v(" :\n          "),i("el-input",{staticClass:"icon-value-input",attrs:{value:a,placeholder:"value"},on:{input:function(e){return t.parseIcons(e,"value",n,r)}}})],1)}),0),t._v(" "),i("el-button",{staticClass:"icon-minus-button",attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-minus",circle:""},on:{click:function(e){return t.deleteIcondRow(n)}}})],1),t._v(" "),i("div",{staticClass:"icons-button-container"},[i("el-button",{attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-plus",circle:""},on:{click:function(e){return t.addValueToIcons(n)}}}),t._v(" "),i("span",{staticClass:"icons-button-desc"},[t._v(t._s(t.$t("settings.addKeyValuePair")))])],1),t._v(" "),i("el-divider",{staticClass:"divider"})],1)}),t._v(" "),i("div",{staticClass:"icons-button-container"},[i("el-button",{attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-plus",circle:""},on:{click:t.addIconToIcons}}),t._v(" "),i("span",{staticClass:"icons-button-desc"},[t._v(t._s(t.$t("settings.addIconConfig")))])],1)],2)},[],!1,null,null,null));E.options.__file="IconsInput.vue";var U=E.exports,I=i("LvDl"),F=i.n(I),L=i("9i3r"),T=i("X4fA"),M="/api/v1/media";var A=function(){return{Authorization:"Bearer ".concat(Object(T.b)())}};function W(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function G(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?W(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):W(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Q={name:"ImageUploadInput",props:{inputValue:{type:[String,Object],default:function(){return{}}},setting:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1}},computed:G(G({},Object(l.b)(["authHost"])),{},{fullSize:function(){return!!F.a.includes([":background",":nsfwCensorImage"],this.setting.key)},dimensions:function(){return{width:this.fullSize?"100%":"100px",height:this.fullSize?"250px":"100px"}},isDefault:function(){return this.defaultImage===this.inputValue},defaultImage:function(){return this.baseName+F.a.get(this.setting,"suggestions[0]")},baseName:function(){return Object(L.a)(this.authHost)}}),methods:{imageUrl:function(t){return F.a.isString(t)?t.startsWith("http")||t.startsWith("https")?t:this.baseName+t:this.defaultImage},handleFiles:function(t){var e=this,i=t.target.files[0];if(i){var n=new FileReader;n.onload=function(t){t.target;var n=new FormData;n.append("file",i),e.loading=!0,function(t){var e=t.formData,i=t.authHost,n=Object(L.a)(i)+M;return fetch(n,{body:e,method:"POST",headers:A()}).then(function(t){return t.json()})}({formData:n,authHost:e.authHost}).then(function(t){e.loading=!1,e.$emit("change",t.url)})},n.readAsDataURL(i)}},removeFile:function(){this.$emit("change",this.defaultImage)}}},R=(i("zzeU"),Object(g.a)(Q,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-upload-area"},[i("div",{staticClass:"input-row"},[i("div",{staticClass:"image-upload-wrapper",style:t.dimensions},[i("div",{staticClass:"image-upload-overlay",style:t.dimensions},[i("input",{staticClass:"input-file",attrs:{"aria-label":t.$t("settings.changeImage"),type:"file",accept:".jpg,.jpeg,.png"},on:{change:t.handleFiles}}),t._v(" "),i("div",{staticClass:"caption"},[t._v("\n          "+t._s(t.$t("settings.changeImage"))+"\n        ")]),t._v(" "),i("el-image",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"uploaded-image",style:t.dimensions,attrs:{src:t.imageUrl(t.inputValue),fit:"cover"}})],1)])]),t._v(" "),i("div",{staticClass:"image-button-group"},[i("el-button",{staticClass:"upload-button",attrs:{size:"small"}},[t._v("\n      "+t._s(t.$t("settings.uploadImage"))+"\n      "),i("input",{staticClass:"input-file",attrs:{"aria-label":t.$t("settings.changeImage"),type:"file",accept:".jpg,.jpeg,.png"},on:{change:t.handleFiles}})]),t._v(" "),t.isDefault?t._e():i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"danger",size:"small"},on:{click:function(e){return t.removeFile()}}},[t._v("\n      "+t._s(t.$t("settings.remove"))+"\n    ")])],1)])},[],!1,null,null,null));R.options.__file="ImageUploadInput.vue";var V=R.exports,N=i("QILm"),q=i.n(N),z=i("J4zp"),K=i.n(z),B=["id"];function H(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function J(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?H(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):H(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Y={name:"MascotsInput",props:{data:{type:Array,default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},computed:{isDesktop:function(){return"desktop"===this.$store.state.app.device}},methods:{addRowToMascots:function(){var t=[].concat(d()(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),i=this.data.filter(function(t){return Object.values(t)[0].id!==e});this.updateSetting(i,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 K()(e,1)[0][":url"]},getMimeType:function(t){var e=Object.values(t);return K()(e,1)[0][":mime_type"]},parseMascots:function(t,e,i){var n=this,s=this.getId(i),a=this.data.map(function(i,a){return Object.values(i)[0].id===s?"name"===e?r()({},t,Object.values(n.data[a])[0]):"url"===e?r()({},Object.keys(i)[0],J(J({},Object.values(n.data[a])[0]),{},{":url":t})):r()({},Object.keys(i)[0],J(J({},Object.values(n.data[a])[0]),{},{":mime_type":t})):i});this.updateSetting(a,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},updateSetting:function(t,e,i,n,s){var a=t.reduce(function(t,e){var i=Object.values(e)[0],n=(i.id,q()(i,B));return J(J({},t),{},r()({},Object.keys(e)[0],["",n]))},{});this.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:a,type:s}),this.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:t})}}},X=(i("+2nY"),Object(g.a)(Y,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"mascot-container",attrs:{"data-search":t.setting.key||t.setting.group}},[t._l(t.data,function(e){return i("div",{key:t.getId(e),staticClass:"mascot"},[i("el-form-item",{staticClass:"mascot-form-item",attrs:{label:"Name","label-width":"85px"}},[i("div",{staticClass:"mascot-name-container"},[i("el-input",{staticClass:"mascot-name-input",attrs:{value:t.getName(e),placeholder:"Name"},on:{input:function(i){return t.parseMascots(i,"name",e)}}}),t._v(" "),i("el-button",{staticClass:"icon-minus-button",attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-minus",circle:""},on:{click:function(i){return t.deleteMascotsRow(e)}}})],1)]),t._v(" "),i("el-form-item",{staticClass:"mascot-form-item",attrs:{label:"URL","label-width":"85px"}},[i("el-input",{staticClass:"mascot-input",attrs:{value:t.getUrl(e),placeholder:"URL"},on:{input:function(i){return t.parseMascots(i,"url",e)}}})],1),t._v(" "),i("el-form-item",{staticClass:"mascot-form-item",attrs:{label:"Mime type","label-width":"85px"}},[i("el-input",{staticClass:"mascot-input",attrs:{value:t.getMimeType(e),placeholder:"Mime type"},on:{input:function(i){return t.parseMascots(i,"mimeType",e)}}})],1)],1)}),t._v(" "),i("el-button",{attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-plus",circle:""},on:{click:t.addRowToMascots}})],2)},[],!1,null,null,null));X.options.__file="MascotsInput.vue";var Z=X.exports;function tt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function et(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):tt(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var it={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:{isDesktop:function(){return"desktop"===this.$store.state.app.device},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 i;i=et(et({},this.proxyUrlData),{},"socks5"===e?{socks5:t}:"host"===e?{host:t}:{port:t}),this.updateSetting(i,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},updateSetting:function(t,e,i,n,s){var a=t.socks5?[":socks5",t.host,t.port]:"".concat(t.host,":").concat(t.port);if(this.parents.length>0){var r=Object(b.e)(t,a,e,i,this.parents.reverse(),this.settings,this.updatedSettings),o=r.valueForState,c=r.valueForUpdatedSettings,l=r.setting;this.$store.dispatch("UpdateSettings",{group:e,key:i,input:l.key,value:c,type:l.type}),this.$store.dispatch("UpdateState",{group:e,key:i,input:l.key,value:o})}else this.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:a,type:s}),this.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:t})}}},nt=(i("mGnP"),Object(g.a)(it,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"proxy-url-input",attrs:{"data-search":t.setting.key||t.setting.group}},[i("el-input",{staticClass:"proxy-url-host-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(" "),t.isDesktop?i("span",[t._v(":")]):t._e(),t._v(" "),i("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(" "),i("div",{staticClass:"socks5-checkbox-container"},[i("el-checkbox",{attrs:{value:t.proxyUrlData.socks5},on:{change:function(e){return t.updateProxyUrl(e,"socks5")}}}),t._v(" "),i("span",{staticClass:"socks5-checkbox"},[t._v("Socks5")])],1)],1)},[],!1,null,null,null));nt.options.__file="ProxyUrlInput.vue";var st=nt.exports,at={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,i,n,s){var a=t.includes(":disabled")?":disabled":t;this.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:a,type:s}),this.$store.dispatch("UpdateState",{group:e,key:i,input:n,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)}}},rt=(i("Ezi3"),Object(g.a)(at,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{"data-search":t.setting.key||t.setting.group}},[i("el-radio-group",{staticClass:"prune-options",model:{value:t.prune,callback:function(e){t.prune=e},expression:"prune"}},[i("el-radio",{attrs:{label:":disabled"}},[t._v("Disabled")]),t._v(" "),i("el-radio",{attrs:{label:":maxlen"}},[t._v("Limit-based")]),t._v(" "),i("el-radio",{attrs:{label:":maxage"}},[t._v("Time-based")])],1),t._v(" "),":maxlen"===t.prune?i("el-form-item",{attrs:{label:"Max length","label-width":"100","label-position":"left"}},[i("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?i("el-form-item",{attrs:{label:"Max age","label-width":"100","label-position":"left"}},[i("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));rt.options.__file="PruneInput.vue";var ot=rt.exports,ct={name:"RateLimitInput",props:{data:{type:[Object,Array],default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},computed:{isDesktop:function(){return"desktop"===this.$store.state.app.device},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,i,n,s){var a;"oneLimit"===n?a="scale"===i?[t,s[1]]:[s[0],t]:"unauthUsersLimit"===n?a="scale"===i?[[t,s[0][1]],[s[1][0],s[1][1]]]:[[s[0][0],t],[s[1][0],s[1][1]]]:"authUserslimit"===n&&(a="scale"===i?[[s[0][0],s[0][1]],[t,s[1][1]]]:[[s[0][0],s[0][1]],[s[1][0],t]]),this.updateSetting(a,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,i,n,s){var a=Array.isArray(t[0])?t.map(function(t){return{tuple:t}}):{tuple:t};this.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:a,type:s}),this.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:t})}}},lt=(i("irif"),Object(g.a)(ct,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"rate-limit-container",attrs:{"data-search":t.setting.key||t.setting.group}},[t.rateLimitAuthUsers?t._e():i("div",[i("el-input-number",{staticClass:"scale-input",attrs:{value:t.rateLimitAllUsers[0],controls:!1,placeholder:"scale"},on:{input:function(e){return t.parseRateLimiter(e,t.setting.key,"scale","oneLimit",t.rateLimitAllUsers)}}}),t._v(" "),i("span",[t._v(":")]),t._v(" "),i("el-input-number",{staticClass:"limit-input",attrs:{value:t.rateLimitAllUsers[1],controls:!1,placeholder:"limit"},on:{input:function(e){return t.parseRateLimiter(e,t.setting.key,"limit","oneLimit",t.rateLimitAllUsers)}}}),t._v(" "),i("div",{staticClass:"limit-button-container"},[i("el-button",{attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-plus",circle:""},on:{click:function(e){return t.toggleLimits([["",""],["",""]],t.setting.key)}}}),t._v(" "),i("p",{staticClass:"expl limit-expl"},[t._v(t._s(t.$t("settings.setLimits")))])],1)],1),t._v(" "),t.rateLimitAuthUsers?i("div",[i("el-form-item",{staticClass:"rate-limit"},[i("div",{staticClass:"rate-limit-label-container"},[i("span",{staticClass:"rate-limit-label"},[t._v("\n          "+t._s(t.$t("settings.unauthenticatedUsers"))+":\n        ")])]),t._v(" "),i("div",{staticClass:"rate-limit-content"},[i("el-input-number",{staticClass:"scale-input",attrs:{value:t.rateLimitUnauthUsers[0],controls:!1,placeholder:"scale"},on:{input:function(e){return t.parseRateLimiter(e,t.setting.key,"scale","unauthUsersLimit",[t.rateLimitUnauthUsers,t.rateLimitAuthUsers])}}}),t._v(" "),i("span",[t._v(":")]),t._v(" "),i("el-input-number",{staticClass:"limit-input",attrs:{value:t.rateLimitUnauthUsers[1],controls:!1,placeholder:"limit"},on:{input:function(e){return t.parseRateLimiter(e,t.setting.key,"limit","unauthUsersLimit",[t.rateLimitUnauthUsers,t.rateLimitAuthUsers])}}})],1)]),t._v(" "),i("el-form-item",{staticClass:"rate-limit"},[i("div",{staticClass:"rate-limit-label-container"},[i("span",{staticClass:"rate-limit-label"},[t._v("\n          "+t._s(t.$t("settings.authenticatedUsers"))+":\n        ")])]),t._v(" "),i("div",{staticClass:"rate-limit-content"},[i("el-input-number",{staticClass:"scale-input",attrs:{value:t.rateLimitAuthUsers[0],controls:!1,placeholder:"scale"},on:{input:function(e){return t.parseRateLimiter(e,t.setting.key,"scale","authUserslimit",[t.rateLimitUnauthUsers,t.rateLimitAuthUsers])}}}),t._v(" "),i("span",[t._v(":")]),t._v(" "),i("el-input-number",{staticClass:"limit-input",attrs:{value:t.rateLimitAuthUsers[1],controls:!1,placeholder:"limit"},on:{input:function(e){return t.parseRateLimiter(e,t.setting.key,"limit","authUserslimit",[t.rateLimitUnauthUsers,t.rateLimitAuthUsers])}}})],1)]),t._v(" "),i("div",{staticClass:"limit-button-container"},[i("el-button",{staticClass:"icon-minus-button",attrs:{size:t.isDesktop?"medium":"mini",icon:"el-icon-minus",circle:""},on:{click:function(e){return t.toggleLimits(["",""],t.setting.key)}}}),t._v(" "),i("p",{staticClass:"expl limit-expl"},[t._v(t._s(t.$t("settings.setLimitsForAll")))])],1)],1):t._e()])},[],!1,null,null,null));lt.options.__file="RateLimitInput.vue";var ut=lt.exports,pt={name:"RegInvitesInput",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,i,n,s){var a=this,r=this.$store.state.settings.settings[e][i][":registrations_open"],o=this.$store.state.settings.settings[e][i][":invites_enabled"];":registrations_open"===n&&t&&o?this.$confirm("Enabling this setting requires invites to be disabled. Are you sure you want to open registrations?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(function(){a.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:t,type:s}),a.$store.dispatch("UpdateSettings",{group:e,key:i,input:":invites_enabled",value:!1,type:s}),a.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:t}),a.$store.dispatch("UpdateState",{group:e,key:i,input:":invites_enabled",value:!1})}):":invites_enabled"===n&&t&&r?this.$confirm("Enabling this setting requires registrations to be disabled. Are you sure you want to enable invitations?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(function(){a.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:t,type:s}),a.$store.dispatch("UpdateSettings",{group:e,key:i,input:":registrations_open",value:!1,type:s}),a.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:t}),a.$store.dispatch("UpdateState",{group:e,key:i,input:":registrations_open",value:!1})}):(this.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:t,type:s}),this.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:t}))}}},dt=(i("9Hof"),Object(g.a)(pt,function(){var t=this,e=t.$createElement;return(t._self._c||e)("el-switch",{staticClass:"switch-input",attrs:{value:t.data[t.setting.key],"data-search":t.setting.key},on:{change:function(e){return t.updateSetting(e,t.settingGroup.group,t.settingGroup.key,t.setting.key,t.setting.type)}}})},[],!1,null,null,null));dt.options.__file="RegInvitesInput.vue";var ht=dt.exports,gt={name:"SelectInputWithReducedLabels",props:{data:{type:[Array,Object],default:function(){return{}}},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},computed:{inputValue:function(){return"Pleroma.Web.Auth.Authenticator"===this.setting.key?this.data.value:":policies"===this.setting.key&&"string"==typeof this.data[this.setting.key]?[this.data[this.setting.key]]:this.data[this.setting.key]},isMobile:function(){return"mobile"===this.$store.state.app.device}},methods:{options:function(t){var e=this,i={":policies":"Pleroma.Web.ActivityPub.MRF.","Pleroma.Web.Auth.Authenticator":"Pleroma.Web.Auth.",":method":"Pleroma.Captcha.",":adapter":"Swoosh.Adapters.",":providers":"Pleroma.Web.Metadata.Providers.",":parsers":"Pleroma.Web.RichMedia.Parsers.",":ttl_setters":"Pleroma.Web.RichMedia.Parser.",":scrub_policy":"Pleroma.HTML.",":federation_publisher_modules":"Pleroma.Web.",":uploader":"Pleroma.Uploaders.",":filters":"Pleroma.Upload.Filter."};return t.map(function(t){return{value:t,label:t.split(i[e.setting.key])[1]?t.split(i[e.setting.key])[1]:t}})},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)},updateSetting:function(t,e,i,n,s){var a=Object(b.b)(t);this.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:a,type:s}),this.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:a})}}},mt=(i("3IoU"),Object(g.a)(gt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"input"},[t.renderMultipleSelect(t.setting.type)?i("el-select",{staticClass:"input",attrs:{value:t.inputValue,"data-search":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)}}},t._l(t.options(t.setting.suggestions),function(t,e){return i("el-option",{key:e,attrs:{value:t.value,label:t.label}})}),1):t._e(),t._v(" "),"module"===t.setting.type||t.setting.type.includes("atom")&&t.setting.type.includes("dropdown")?i("el-select",{staticClass:"input",attrs:{value:!1===t.inputValue?"false":t.inputValue,"data-search":t.setting.key||t.setting.group,clearable:""},on:{change:function(e){return t.updateSetting(e,t.settingGroup.group,t.settingGroup.key,t.setting.key,t.setting.type)}}},t._l(t.options(t.setting.suggestions),function(t,e){return i("el-option",{key:e,attrs:{value:t.value,label:t.label}})}),1):t._e()],1)},[],!1,null,null,null));mt.options.__file="SelectInputWithReducedLabels.vue";var ft=mt.exports;function bt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function vt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?bt(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):bt(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var yt={name:"SenderInput",props:{data:{type:[Object,Array],default:function(){return{}}},parents:{type:Array,default:function(){return[]},required:!1},setting:{type:Object,default:function(){return{}}},settingGroup:{type:Object,default:function(){return{}}}},computed:{isDesktop:function(){return"desktop"===this.$store.state.app.device},settings:function(){return this.$store.state.settings.settings},updatedSettings:function(){return this.$store.state.settings.updatedSettings},sender:function(){return 0===Object.keys(this.data).length?{email:null,nickname:null}:this.data}},methods:{updateSender:function(t,e){var i;i=vt(vt({},this.sender),{},"email"===e?{email:t}:{nickname:t}),this.updateSetting(i,this.settingGroup.group,this.settingGroup.key,this.setting.key,this.setting.type)},updateSetting:function(t,e,i,n,s){var a=t.nickname?[t.nickname,t.email]:t.email;if(this.parents.length>0){var r=Object(b.e)(t,a,e,i,this.parents.reverse(),this.settings,this.updatedSettings),o=r.valueForState,c=r.valueForUpdatedSettings,l=r.setting;this.$store.dispatch("UpdateSettings",{group:e,key:i,input:l.key,value:c,type:l.type}),this.$store.dispatch("UpdateState",{group:e,key:i,input:l.key,value:o})}else this.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:a,type:s}),this.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:t})}}},kt=(i("OQQp"),Object(g.a)(yt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"sender-input",attrs:{"data-search":t.setting.key||t.setting.group}},[i("el-input",{staticClass:"email-address-input",attrs:{value:t.sender.email,placeholder:"email address"},on:{input:function(e){return t.updateSender(e,"email")}}}),t._v(" "),i("el-input",{staticClass:"nickname-input",attrs:{value:t.sender.nickname,placeholder:"nickname"},on:{input:function(e){return t.updateSender(e,"nickname")}}})],1)},[],!1,null,null,null));kt.options.__file="SenderInput.vue";var _t=kt.exports,Pt={name:"SpecificMultipleSelect",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,i,n,s){this.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:t,type:s}),this.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:t})}}},Ot=(i("UqcT"),Object(g.a)(Pt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"multiple-select-container"},[":backends"===t.setting.key?i("el-select",{staticClass:"input",attrs:{value:t.data.value,"data-search":t.setting.key||t.setting.group,multiple:""},on:{change:function(e){return t.updateSetting(e,t.settingGroup.group,t.settingGroup.key,t.setting.key,t.setting.type)}}},[i("el-option",{attrs:{value:":console",label:"console"}}),t._v(" "),i("el-option",{attrs:{value:":ex_syslogger",label:"ExSyslogger"}}),t._v(" "),i("el-option",{attrs:{value:"Quack.Logger",label:"Quack.Logger"}})],1):t._e(),t._v(" "),":args"===t.setting.key?i("el-select",{staticClass:"input",attrs:{value:t.data[t.setting.key],"data-search":t.setting.key||t.setting.group,multiple:"",filterable:"","allow-create":""},on:{change:function(e){return t.updateSetting(e,t.settingGroup.group,t.settingGroup.key,t.setting.key,t.setting.type)}}},[i("el-option",{attrs:{value:"strip"}}),t._v(" "),i("el-option",{attrs:{value:"auto-orient"}}),t._v(" "),i("el-option",{attrs:{value:'{"implode", "1"}'}})],1):t._e()],1)},[],!1,null,null,null));Ot.options.__file="SpecificMultipleSelect.vue";var jt=Ot.exports,wt=i("4MG8"),St=i.n(wt),$t={name:"Inputs",components:{EditableKeywordInput:P,IconsInput:U,ImageUploadInput:V,BooleanCombinedInput:f,MascotsInput:Z,ProxyUrlInput:st,PruneInput:ot,RateLimitInput:ut,RegInvitesInput:ht,SelectInputWithReducedLabels:ft,SenderInput:_t,SpecificMultipleSelect:jt},props:{customLabelWidth:{type:String,default:function(){return this.labelWidth},required:!1},data:{type:[Object,Array],default:function(){return{}}},labelClass:{type:String,default:function(){return"label"},required:!1},margin:{type:Number,default:function(){return 0},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:{booleanCombinedInput:function(){return Array.isArray(this.setting.type)&&this.setting.type.includes("boolean")},canBeDeleted:function(){var t=this.settingGroup,e=t.group,i=t.key;return F.a.get(this.$store.state.settings.db,[e,i])&&this.$store.state.settings.db[e][i].includes(this.setting.key)},iconsData:function(){return Array.isArray(this.data)?this.data:[]},inputValue:function(){return[":esshd",":cors_plug",":quack",":tesla",":swoosh"].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]:Array.isArray(this.setting.type)&&this.setting.type.find(function(t){return Array.isArray(t)&&t.includes("list")})&&"string"==typeof this.data[this.setting.key]?[this.data[this.setting.key]]:this.data[this.setting.key]},isDesktop:function(){return"desktop"===this.$store.state.app.device},isMobile:function(){return"mobile"===this.$store.state.app.device},isTablet:function(){return"tablet"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},keywordData:function(){return this.settingParent.length>0||Array.isArray(this.setting.type)&&this.setting.type.includes("tuple")&&this.setting.type.includes("list")?Array.isArray(this.data[this.setting.key])?this.data[this.setting.key]:[]:Array.isArray(this.data)?this.data:[]},reducedSelects:function(){return[":filters",":uploader",":federation_publisher_modules",":scrub_policy",":ttl_setters",":parsers",":providers",":method",":policies","Pleroma.Web.Auth.Authenticator"].includes(this.setting.key)||"Pleroma.Emails.Mailer"===this.settingGroup.key&&":adapter"===this.setting.key},settings:function(){return this.$store.state.settings.settings},textareaInput:function(){return":welcome"===this.settingGroup.key&&":message"===this.setting.key},updatedSettings:function(){return this.$store.state.settings.updatedSettings},isImageUrl:function(){return Array.isArray(this.setting.type)&&this.setting.type.includes("image")}},methods:{editableKeyword:function(t,e){return Array.isArray(e)&&(e.includes("map")&&e.includes("string")||e.includes("map")&&-1!==e.findIndex(function(t){return t.includes("list")&&t.includes("string")})||e.includes("keyword")&&e.includes("integer")||e.includes("keyword")&&e.includes("string")||e.includes("tuple")&&e.includes("list")||e.includes("keyword")&&-1!==e.findIndex(function(t){return t.includes("list")&&t.includes("string")}))},getFormattedDescription:function(t){return St()(t)},processNestedData:function(t,e,i,n){var s=Object(b.e)(t,t,e,i,n.reverse(),this.settings,this.updatedSettings),a=s.valueForState,r=s.valueForUpdatedSettings,o=s.setting;this.$store.dispatch("UpdateSettings",{group:e,key:i,input:o.key,value:r,type:o.type}),this.$store.dispatch("UpdateState",{group:e,key:i,input:o.key,value:a})},removeSetting:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$confirm(t.$t("settings.removeSettingConfirmation"),{confirmButtonText:t.$t("users.ok"),cancelButtonText:t.$t("users.cancel"),type:"warning"}).then(s()(c.a.mark(function e(){var i;return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.settingGroup.key?[{group:t.settingGroup.group,key:t.settingGroup.key,delete:!0,subkeys:[t.setting.key]}]:[{group:t.settingGroup.group,key:t.setting.key,delete:!0}],e.prev=1,e.next=4,t.$store.dispatch("RemoveSetting",i);case 4:e.next=9;break;case 6:return e.prev=6,e.t0=e.catch(1),e.abrupt("return");case 9:t.$message({type:"success",message:u.a.t("settings.successfullyRemoved")});case 10:case"end":return e.stop()}},e,null,[[1,6]])}))).catch(function(){t.$message({type:"info",message:t.$t("users.canceled")})});case 1:case"end":return e.stop()}},e)}))()},renderMultipleSelect:function(t){return!this.reducedSelects&&Array.isArray(t)&&":backends"!==this.setting.key&&":args"!==this.setting.key&&(":ip_whitelist"===this.setting.key||t.includes("module")||t.includes("list")&&t.includes("string")||t.includes("list")&&t.includes("atom")||!t.includes("keyword")&&t.includes("regex")&&t.includes("string"))},renderSingleSelect:function(t){return!this.reducedSelects&&("module"===t||Array.isArray(t)&&t.includes("atom")&&t.includes("dropdown"))},senderInput:function(t){var e=t.key,i=t.type;return Array.isArray(i)&&i.includes("string")&&i.includes("tuple")&&":sender"===e},update:function(t,e,i,n,s,a,r){var o=this.renderSingleSelect(a)?Object(b.b)(t):t;r?this.processNestedData(o,e,i,n):this.updateSetting(o,e,i,s,a)},updateSetting:function(t,e,i,n,s){this.$store.dispatch("UpdateSettings",{group:e,key:i,input:n,value:t,type:s}),this.$store.dispatch("UpdateState",{group:e,key:i,input:n,value:t})}}},Dt=(i("y7KD"),Object(g.a)($t,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"input-container"},["keyword"===t.setting.type?i("div",{staticClass:"keyword-container"},[i("el-form-item",{class:t.labelClass,style:"margin-left:"+t.margin+"px;margin-bottom:0",attrs:{"label-width":t.customLabelWidth,"data-search":t.setting.key||t.setting.group}},[i("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n        "+t._s(t.setting.label)+"\n        "),t.canBeDeleted&&t.isDesktop?i("el-tooltip",{attrs:{content:t.$t("settings.removeFromDB"),placement:"bottom-end"}},[i("el-button",{staticClass:"delete-setting-button",attrs:{icon:"el-icon-delete",circle:"",size:"mini"},on:{click:t.removeSetting}})],1):t._e()],1)]),t._v(" "),t._l(t.setting.children,function(e){return i("el-form-item",{key:e.key},[i("inputs",{attrs:{"setting-group":t.settingGroup,"setting-parent":t.settingParent.concat([e]),setting:e,data:t.data[t.setting.key],"custom-label-width":t.isMobile?"100px":"120px","label-class":"keyword"===e.type?"center-label":"",margin:t.isDesktop?t.margin+15:t.margin+8,nested:!0}})],1)})],2):t._e(),t._v(" "),"keyword"!==t.setting.type?i("el-form-item",{class:t.labelClass,style:t.isDesktop?"":"margin-left:"+t.margin+"px",attrs:{"label-width":t.customLabelWidth}},[i("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n      "+t._s(t.setting.label)+"\n      "),t.canBeDeleted&&(t.isDesktop||t.isMobile)?i("el-tooltip",{attrs:{content:t.$t("settings.removeFromDB"),placement:"bottom-end"}},[i("el-button",{staticClass:"delete-setting-button",attrs:{icon:"el-icon-delete",circle:"",size:"mini"},on:{click:t.removeSetting}})],1):t._e()],1),t._v(" "),i("div",{staticClass:"input-row"},[t.isImageUrl?i("image-upload-input",{attrs:{data:t.data,"setting-group":t.settingGroup,setting:t.setting,"input-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(" "),t.textareaInput?i("el-input",{staticClass:"input",attrs:{value:t.inputValue,placeholder:t.setting.suggestions?t.setting.suggestions[0]:null,"data-search":t.setting.key||t.setting.group,type:"textarea"},on:{input:function(e){return t.update(e,t.settingGroup.group,t.settingGroup.key,t.settingParent,t.setting.key,t.setting.type,t.nested)}}}):"string"===t.setting.type||Array.isArray(t.setting.type)&&t.setting.type.includes("string")&&t.setting.type.includes("atom")?i("el-input",{staticClass:"input",attrs:{value:t.inputValue,placeholder:t.setting.suggestions?t.setting.suggestions[0]:null,"data-search":t.setting.key||t.setting.group},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||[":registrations_open",":invites_enabled"].includes(t.setting.key)?t._e():i("el-switch",{staticClass:"switch-input",attrs:{value:t.inputValue,"data-search":t.setting.key||t.setting.group},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._v(" "),"integer"===t.setting.type?i("el-input-number",{attrs:{value:null===t.inputValue?void 0:t.inputValue,placeholder:t.setting.suggestions?t.setting.suggestions[0].toString():null,min:0,size:t.isDesktop?"large":"medium","data-search":t.setting.key||t.setting.group},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(" "),t.renderSingleSelect(t.setting.type)?i("el-select",{staticClass:"input",attrs:{value:!1===t.inputValue?"false":t.inputValue,"data-search":t.setting.key||t.setting.group,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 i("el-option",{key:e,attrs:{value:t}})}),1):t._e(),t._v(" "),t.renderMultipleSelect(t.setting.type)?i("el-select",{staticClass:"input",attrs:{value:t.inputValue,"data-search":t.setting.key||t.setting.group,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 i("el-option",{key:e,attrs:{value:t}})}),1):t._e(),t._v(" "),":ip"===t.setting.key?i("el-input",{staticClass:"input",attrs:{value:t.inputValue,"data-search":t.setting.key||t.setting.group,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?i("el-input",{staticClass:"input",attrs:{value:t.inputValue,placeholder:t.setting.suggestions&&t.setting.suggestions[0]?t.setting.suggestions[0].substr(1):"","data-search":t.setting.key||t.setting.group},on:{input:function(e){return t.update(e,t.settingGroup.group,t.settingGroup.key,t.settingParent,t.setting.key,t.setting.type,t.nested)}}},[i("template",{slot:"prepend"},[t._v(":")])],2):t._e(),t._v(" "),t.editableKeyword(t.setting.key,t.setting.type)?i("editable-keyword-input",{attrs:{data:t.keywordData,"setting-group":t.settingGroup,setting:t.setting,parents:t.settingParent}}):t._e(),t._v(" "),":icons"===t.setting.key?i("icons-input",{attrs:{data:t.iconsData,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),t.booleanCombinedInput?i("boolean-combined-input",{attrs:{data:t.data,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),":mascots"===t.setting.key?i("mascots-input",{attrs:{data:t.keywordData,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),":proxy_url"===t.setting.key?i("proxy-url-input",{attrs:{data:t.data[t.setting.key],"setting-group":t.settingGroup,setting:t.setting,parents:t.settingParent}}):t._e(),t._v(" "),":prune"===t.setting.key?i("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?i("rate-limit-input",{attrs:{data:t.data,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),[":registrations_open",":invites_enabled"].includes(t.setting.key)?i("reg-invites-input",{attrs:{data:t.data,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),t.reducedSelects?i("select-input-with-reduced-labels",{attrs:{data:t.data,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),":backends"===t.setting.key||":args"===t.setting.key?i("specific-multiple-select",{attrs:{data:t.data,"setting-group":t.settingGroup,setting:t.setting}}):t._e(),t._v(" "),t.senderInput(t.setting)?i("sender-input",{attrs:{data:t.data[t.setting.key],"setting-group":t.settingGroup,setting:t.setting,parents:t.settingParent}}):t._e(),t._v(" "),t.canBeDeleted&&t.isTablet?i("el-tooltip",{staticClass:"delete-setting-button-container",attrs:{content:t.$t("settings.removeFromDB"),placement:"bottom-end"}},[i("el-button",{staticClass:"delete-setting-button",attrs:{icon:"el-icon-delete",circle:"",size:"mini"},on:{click:t.removeSetting}})],1):t._e()],1),t._v(" "),t.setting.description&&"keyword"!==t.setting.type?i("div",{staticClass:"expl",domProps:{innerHTML:t._s(t.getFormattedDescription(t.setting.description))}}):t._e()]):t._e()],1)},[],!1,null,null,null));Dt.options.__file="Inputs.vue";var Ct=[{name:"renderIfNotEqual",key:":proxy_remote",groupKey:"Pleroma.Upload",group:":pleroma",targetKey:":uploader",targetGroup:"Pleroma.Upload",notEqual:"Pleroma.Uploaders.Local"}],xt={renderIfNotEqual:function(t,e){var i=e.group,n=e.groupKey,s=e.targetKey,a=e.notEqual;return t[i][n][s]!==a}},Et={name:"Setting",components:{Inputs:Dt.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)})},isDesktop:function(){return"desktop"===this.$store.state.app.device},isMobile:function(){return"mobile"===this.$store.state.app.device},isTablet:function(){return"tablet"===this.$store.state.app.device},loading:function(){return this.$store.state.settings.loading},state:function(){return this.$store.state.settings.settings}},methods:{canBeDeleted:function(t){var e=this.settingGroup,i=e.group,n=e.key||t;return F.a.get(this.$store.state.settings.db,[i,n])&&this.$store.state.settings.db[i][n].includes(t)},compound:function(t){var e=t.type;t.key,t.children;return"keyword"===e||"map"===e||e.includes("keyword")||e.includes("map")},divideSetting:function(t){return[":sslopts",":tlsopts",":adapter",":poll_limits",":queues",":styling",":invalidation",":multi_factor_authentication"].includes(t)},followsRules:function(t,e,i){return function(t,e,i){var n=Ct.find(function(i){return i.groupKey===e&&i.key===t});if(!n)return!0;var s=xt[n.name];return!s||s(i,n)}(t,e,i)},getFormattedDescription:function(t){return St()(t)},notLastInGroup:function(t){return this.settingGroup.children.slice(-1)[0].key!==t},removeSetting:function(t){var e=this;return s()(c.a.mark(function i(){return c.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:e.$confirm(e.$t("settings.removeSettingConfirmation"),{confirmButtonText:e.$t("users.ok"),cancelButtonText:e.$t("users.cancel"),type:"warning"}).then(s()(c.a.mark(function i(){var n;return c.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=e.settingGroup.key?[{group:e.settingGroup.group,key:e.settingGroup.key,delete:!0,subkeys:[t]}]:[{group:e.settingGroup.group,key:t,delete:!0}],i.prev=1,i.next=4,e.$store.dispatch("RemoveSetting",n);case 4:i.next=9;break;case 6:return i.prev=6,i.t0=i.catch(1),i.abrupt("return");case 9:e.$message({type:"success",message:u.a.t("settings.successfullyRemoved")});case 10:case"end":return i.stop()}},i,null,[[1,6]])}))).catch(function(){e.$message({type:"info",message:e.$t("users.canceled")})});case 1:case"end":return i.stop()}},i)}))()},updateSetting:function(t,e,i){this.$store.dispatch("UpdateSettings",{tab:e,data:r()({},i,t)})}}},Ut=(i("pnah"),Object(g.a)(Et,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",[t.settingGroup.label||t.settingGroup.description?i("el-form-item",{staticClass:"description-container",attrs:{"data-search":t.settingGroup.key||t.settingGroup.group}},[t.settingGroup.label?i("span",{staticClass:"setting-label"},[t._v(t._s(t.settingGroup.label))]):t._e(),t._v(" "),t.settingGroup.description?i("span",{staticClass:"expl no-top-margin",domProps:{innerHTML:t._s(t.getFormattedDescription(t.settingGroup.description))}}):t._e()]):t._e(),t._v(" "),"Pleroma.Emails.Mailer"===t.settingGroup.key?i("div",[t._l(t.settingGroup.children.filter(function(t){return!t.group}),function(e){return i("div",{key:e.key},[t.followsRules(e.key,t.settingGroup.key,t.state)?i("inputs",{attrs:{"setting-group":t.settingGroup,setting:e,data:t.data}}):t._e()],1)}),t._v(" "),t._l(t.emailAdapterChildren,function(e){return i("div",{key:e.key},[t.followsRules(e.key,t.settingGroup.key,t.state)?i("inputs",{attrs:{"setting-group":t.settingGroup,setting:e,data:t.data}}):t._e()],1)})],2):i("div",t._l(t.settingGroup.children,function(e){return i("div",{key:e.key},[t.compound(e)?t._e():i("div",[t.followsRules(e.key,t.settingGroup.key,t.state)?i("inputs",{attrs:{"setting-group":t.settingGroup,setting:e,data:t.data,nested:!1}}):t._e()],1),t._v(" "),t.compound(e)?i("div",[t.divideSetting(e.key)?i("el-divider",{staticClass:"divider"}):t._e(),t._v(" "),e.children?i("div",[i("div",{staticClass:"input-container"},[i("el-form-item",{staticClass:"grouped-settings-header",attrs:{"data-search":e.key||e.group}},[i("span",{attrs:{slot:"label"},slot:"label"},[t.isDesktop&&t.canBeDeleted(e.key)?i("el-tooltip",{attrs:{content:t.$t("settings.removeFromDB"),placement:"bottom-end"}},[i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{icon:"el-icon-delete",circle:"",size:"mini"},on:{click:function(i){return t.removeSetting(e.key)}}})],1):t._e()],1),t._v(" "),i("span",{staticClass:"label-font"},[t._v(t._s(e.label))]),t._v(" "),t.canBeDeleted(e.key)&&(t.isMobile||t.isTablet)?i("el-tooltip",{attrs:{content:t.$t("settings.removeFromDB"),placement:"bottom-end"}},[i("el-button",{staticClass:"settings-delete-button",attrs:{icon:"el-icon-delete",circle:"",size:"mini"},on:{click:function(i){return t.removeSetting(e.key)}}})],1):t._e()],1)],1),t._v(" "),t._l(e.children,function(n){return i("div",{key:n.key},[i("inputs",{attrs:{"setting-group":t.settingGroup,"setting-parent":[e,n],setting:n,data:t.data[e.key],nested:!0}})],1)})],2):i("div",[t.followsRules(e.key,t.settingGroup.key,t.state)?i("inputs",{attrs:{"setting-group":t.settingGroup,setting:e,data:t.data[e.key],nested:!0}}):t._e()],1),t._v(" "),t.notLastInGroup(e.key)?i("el-divider",{staticClass:"divider"}):t._e()],1):t._e()])}),0)],1)},[],!1,null,null,null));Ut.options.__file="Setting.vue";var It=Ut.exports;function Ft(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Lt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ft(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ft(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Tt={name:"ActivityPub",components:{Setting:It},computed:Lt(Lt({},Object(l.b)(["settings"])),{},{activitypub:function(){return this.settings.description.find(function(t){return":activitypub"===t.key})},activitypubData:function(){return F.a.get(this.settings.settings,[":pleroma",":activitypub"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.$store.state.settings.loading},searchQuery:function(){return this.$store.state.settings.searchQuery},user:function(){return this.settings.description.find(function(t){return":user"===t.key})},userData:function(){return F.a.get(this.settings.settings,[":pleroma",":user"])||{}}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},Mt=(i("qEST"),Object(g.a)(Tt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.activitypubData,"label-position":t.labelPosition,"label-width":t.labelWidth,"data-search":":activitypub"}},[i("setting",{attrs:{"setting-group":t.activitypub,data:t.activitypubData}})],1),t._v(" "),t.user?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.userData,"label-position":t.labelPosition,"label-width":t.labelWidth,"data-search":":user"}},[i("setting",{attrs:{"setting-group":t.user,data:t.userData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));Mt.options.__file="ActivityPub.vue";var At=Mt.exports;function Wt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Gt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Wt(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Qt={name:"Authentication",components:{Setting:It},computed:Gt(Gt({},Object(l.b)(["settings"])),{},{auth:function(){return this.settings.description.find(function(t){return":auth"===t.key})},authData:function(){return F.a.get(this.settings.settings,[":pleroma",":auth"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},ldap:function(){return this.settings.description.find(function(t){return":ldap"===t.key})},ldapData:function(){return F.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 F.a.get(this.settings.settings,[":pleroma",":oauth2"])||{}},pleromaAuthenticator:function(){return this.settings.description.find(function(t){return t.children&&"Pleroma.Web.Auth.Authenticator"===t.children[0].key})},pleromaAuthenticatorData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.Web.Auth.Authenticator"])||{}},searchQuery:function(){return this.$store.state.settings.searchQuery}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},Rt=(i("4b9x"),Object(g.a)(Qt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.pleromaAuthenticatorData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.pleromaAuthenticator,data:t.pleromaAuthenticatorData}})],1),t._v(" "),t.pleromaAuthenticator?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.authData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.auth,data:t.authData}})],1),t._v(" "),t.auth?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.ldapData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.ldap,data:t.ldapData}})],1),t._v(" "),t.ldap?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.oauth2Data,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.oauth2,data:t.oauth2Data}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));Rt.options.__file="Authentication.vue";var Vt=Rt.exports;function Nt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function qt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Nt(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Nt(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var zt={name:"Captcha",components:{Setting:It},computed:qt(qt({},Object(l.b)(["settings"])),{},{captcha:function(){return this.settings.description.find(function(t){return"Pleroma.Captcha"===t.key})},captchaData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.Captcha"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},kocaptcha:function(){return this.settings.description.find(function(t){return"Pleroma.Captcha.Kocaptcha"===t.key})},kocaptchaData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.Captcha.Kocaptcha"])||{}},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},searchQuery:function(){return this.$store.state.settings.searchQuery}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},Kt=(i("2q6O"),Object(g.a)(zt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.captchaData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.captcha,data:t.captchaData}})],1),t._v(" "),t.captcha?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.kocaptchaData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.kocaptcha,data:t.kocaptchaData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));Kt.options.__file="Captcha.vue";var Bt=Kt.exports,Ht=i("cDf5"),Jt=i.n(Ht),Yt=i("mm8V"),Xt={props:{host:{type:String,required:!0},packName:{type:String,required:!0},shortcode:{type:String,required:!0},file:{type:String,required:!0},isLocal:{type:Boolean,required:!0}},data:function(){return{newShortcode:null,newFile:null,copyToLocalPackName:null,copyPopoverVisible:!1,copyToShortcode:"",copyToFilename:""}},computed:{emojiName:{get:function(){return null!==this.newShortcode?this.newShortcode:this.shortcode},set:function(t){this.newShortcode=t}},emojiFile:{get:function(){return null!==this.newFile?this.newFile:this.file},set:function(t){this.newFile=t}},isDesktop:function(){return"desktop"===this.$store.state.app.device},isMobile:function(){return"mobile"===this.$store.state.app.device},localPacks:function(){return this.$store.state.emojiPacks.localPacks},remoteInstance:function(){return this.$store.state.emojiPacks.remoteInstance}},methods:{update:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t.$store.dispatch("UpdateEmojiFile",{packName:t.packName,shortcode:t.shortcode,newShortcode:t.emojiName,newFilename:t.emojiFile,force:!0}),e.next=7;break;case 4:return e.prev=4,e.t0=e.catch(0),e.abrupt("return");case 7:t.newShortcode=null,t.newFile=null,t.$store.dispatch("ReloadEmoji");case 10:case"end":return e.stop()}},e,null,[[0,4]])}))()},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("DeleteEmojiFile",{packName:t.packName,shortcode:t.shortcode}).then(function(){t.newShortcode=null,t.newFile=null,t.$store.dispatch("ReloadEmoji")})})},copyToLocal:function(){try{this.$store.dispatch("AddNewEmojiFile",{packName:this.copyToLocalPackName,file:this.addressOfEmojiInPack(this.remoteInstance,this.packName,this.file),shortcode:""!==this.copyToShortcode.trim()?this.copyToShortcode.trim():this.shortcode,filename:""!==this.copyToFilename.trim()?this.copyToFilename.trim():this.file})}catch(t){return}this.copyToLocalPackName=null,this.copyToLocalVisible=!1,this.copyToShortcode="",this.copyToFilename="",this.$store.dispatch("ReloadEmoji")},addressOfEmojiInPack:Yt.b}},Zt=(i("56He"),Object(g.a)(Xt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.isLocal?i("div",{class:t.isMobile?"emoji-container-flex":"emoji-container-grid"},[i("img",{staticClass:"emoji-preview-img",attrs:{src:t.addressOfEmojiInPack(t.host,t.packName,t.file)}}),t._v(" "),i("el-input",{staticClass:"emoji-info",attrs:{placeholder:t.$t("emoji.shortcode")},model:{value:t.emojiName,callback:function(e){t.emojiName=e},expression:"emojiName"}}),t._v(" "),i("el-input",{staticClass:"emoji-info",attrs:{placeholder:t.$t("emoji.file")},model:{value:t.emojiFile,callback:function(e){t.emojiFile=e},expression:"emojiFile"}}),t._v(" "),i("div",{staticClass:"emoji-buttons"},[i("el-button",{attrs:{type:"primary"},on:{click:t.update}},[t._v(t._s(t.$t("emoji.update")))]),t._v(" "),i("el-button",{staticClass:"remove-emoji-button",on:{click:t.remove}},[t._v(t._s(t.$t("emoji.remove")))])],1)],1):t._e(),t._v(" "),t.isLocal?t._e():i("div",{class:t.isMobile?"emoji-container-flex":"remote-emoji-container-grid"},[i("img",{staticClass:"emoji-preview-img",attrs:{src:t.addressOfEmojiInPack(t.remoteInstance,t.packName,t.file)}}),t._v(" "),i("el-input",{staticClass:"emoji-info",attrs:{value:t.emojiName,placeholder:t.$t("emoji.shortcode")}}),t._v(" "),i("el-input",{staticClass:"emoji-info",attrs:{value:t.emojiFile,placeholder:t.$t("emoji.file")}}),t._v(" "),i("el-popover",{staticClass:"copy-pack-container",attrs:{placement:"left-start","popper-class":"copy-popover"},model:{value:t.copyPopoverVisible,callback:function(e){t.copyPopoverVisible=e},expression:"copyPopoverVisible"}},[i("p",[t._v(t._s(t.$t("emoji.selectLocalPack")))]),t._v(" "),i("el-select",{staticClass:"copy-pack-select",attrs:{placeholder:t.$t("emoji.localPack")},model:{value:t.copyToLocalPackName,callback:function(e){t.copyToLocalPackName=e},expression:"copyToLocalPackName"}},t._l(t.localPacks,function(t,e){return i("el-option",{key:e,attrs:{label:e,value:e}})}),1),t._v(" "),i("p",[t._v(t._s(t.$t("emoji.specifyShortcode")))]),t._v(" "),i("el-input",{attrs:{placeholder:t.$t("emoji.leaveEmptyShortcode")},model:{value:t.copyToShortcode,callback:function(e){t.copyToShortcode=e},expression:"copyToShortcode"}}),t._v(" "),i("p",[t._v(t._s(t.$t("emoji.specifyFilename")))]),t._v(" "),i("el-input",{attrs:{placeholder:t.$t("emoji.leaveEmptyFilename")},model:{value:t.copyToFilename,callback:function(e){t.copyToFilename=e},expression:"copyToFilename"}}),t._v(" "),i("el-button",{staticClass:"copy-to-local-pack-button",attrs:{disabled:!t.copyToLocalPackName,type:"primary"},on:{click:t.copyToLocal}},[t._v(t._s(t.$t("emoji.copy")))]),t._v(" "),i("el-button",{staticClass:"emoji-button",attrs:{slot:"reference",type:"primary"},slot:"reference"},[t._v(t._s(t.$t("emoji.copyToLocalPack")))])],1)],1)])},[],!1,null,null,null));Zt.options.__file="SingleEmojiEditor.vue";var te=Zt.exports,ee={props:{packName:{type:String,required:!0}},data:function(){return{shortcode:"",imageUploadURL:"",customFileName:""}},computed:{isDesktop:function(){return"desktop"===this.$store.state.app.device},isMobile:function(){return"mobile"===this.$store.state.app.device}},methods:{uploadEmoji:function(t){var e=this;return s()(c.a.mark(function i(){var n;return c.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:n=t.file,i.prev=1,e.$store.dispatch("AddNewEmojiFile",{packName:e.packName,file:n||e.imageUploadURL,shortcode:e.shortcode,filename:e.customFileName}),i.next=8;break;case 5:return i.prev=5,i.t0=i.catch(1),i.abrupt("return");case 8:e.shortcode="",e.imageUploadURL="",e.customFileName="",e.$store.dispatch("ReloadEmoji");case 12:case"end":return i.stop()}},i,null,[[1,5]])}))()}}},ie=(i("tag/"),Object(g.a)(ee,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-form",{staticClass:"new-emoji-uploader-form",attrs:{"label-position":t.isMobile?"top":"left","label-width":"130px",size:"small"}},[i("el-form-item",{attrs:{label:t.$t("emoji.shortcode")}},[i("el-input",{attrs:{placeholder:t.$t("emoji.optional")},model:{value:t.shortcode,callback:function(e){t.shortcode=e},expression:"shortcode"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("emoji.customFilename")}},[i("el-input",{attrs:{placeholder:t.$t("emoji.optional")},model:{value:t.customFileName,callback:function(e){t.customFileName=e},expression:"customFileName"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("emoji.uploadFile")}},[i("div",{staticClass:"upload-file-url"},[i("el-input",{attrs:{placeholder:t.$t("emoji.url")},model:{value:t.imageUploadURL,callback:function(e){t.imageUploadURL=e},expression:"imageUploadURL"}}),t._v(" "),i("el-button",{staticClass:"upload-button",attrs:{type:"primary"},on:{click:t.uploadEmoji}},[t._v(t._s(t.$t("emoji.upload")))])],1),t._v(" "),i("div",{staticClass:"upload-container"},[i("p",{staticClass:"text"},[t._v("or")]),t._v(" "),i("el-upload",{attrs:{"http-request":t.uploadEmoji,multiple:!1,"show-file-list":!1,action:"add"}},[i("el-button",{attrs:{type:"primary"}},[t._v(t._s(t.$t("emoji.clickToUpload")))])],1)],1)])],1)},[],!1,null,null,null));function ne(t){var e=function(t,e){if("object"!==Jt()(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Jt()(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Jt()(e)?e:String(e)}ie.options.__file="NewEmojiUploader.vue";var se={components:{SingleEmojiEditor:te,NewEmojiUploader:ie.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:[]}},computed:{currentFilesPage:function(){return this.$store.state.emojiPacks.currentLocalFilesPage},currentLocalPacksPage:function(){return this.$store.state.emojiPacks.currentLocalPacksPage},isMobile:function(){return"mobile"===this.$store.state.app.device},isTablet:function(){return"tablet"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"90px":(this.isTablet,"155px")},localPackFilesCount:function(){return this.$store.state.emojiPacks.localPackFilesCount},pageSize:function(){return this.$store.state.emojiPacks.filesPageSize},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:{collapse:function(){this.showPackContent=[]},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(){var e=t.$store.state.emojiPacks.localPacks,i=t.name,n=(e[i],q()(e,[i].map(ne)));0===Object.keys(n).length&&t.currentLocalPacksPage>1?t.$store.dispatch("FetchLocalEmojiPacks",t.currentLocalPacksPage-1):t.$store.dispatch("FetchLocalEmojiPacks",t.currentLocalPacksPage)})}).catch(function(){})},handleChange:function(t,e){t.includes("manageEmoji")&&this.$store.dispatch("FetchLocalSinglePack",{name:e,page:1})},handleFilesPageChange:function(t){this.$store.dispatch("FetchLocalSinglePack",{name:this.name,page:t})},savePackMetadata:function(){this.$store.dispatch("SavePackMetadata",{packName:this.name})}}},ae=(i("3UkU"),Object(g.a)(se,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-collapse-item",{staticClass:"has-background",attrs:{title:t.name,name:t.name}},[i("el-form",{staticClass:"emoji-pack-metadata",attrs:{"label-width":t.labelWidth,"label-position":"left",size:"small"}},[i("el-form-item",{attrs:{label:t.$t("emoji.sharePack")}},[i("el-switch",{model:{value:t.share,callback:function(e){t.share=e},expression:"share"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("emoji.homepage")}},[i("el-input",{model:{value:t.homepage,callback:function(e){t.homepage=e},expression:"homepage"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("emoji.description")}},[i("el-input",{attrs:{type:"textarea"},model:{value:t.description,callback:function(e){t.description=e},expression:"description"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("emoji.license")}},[i("el-input",{model:{value:t.license,callback:function(e){t.license=e},expression:"license"}})],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("emoji.fallbackSrc")}},[i("el-input",{model:{value:t.fallbackSrc,callback:function(e){t.fallbackSrc=e},expression:"fallbackSrc"}})],1),t._v(" "),t.fallbackSrc&&""!==t.fallbackSrc.trim()?i("el-form-item",{attrs:{label:t.$t("emoji.fallbackSrcSha")}},[t._v("\n      "+t._s(t.pack.pack["fallback-src-sha256"])+"\n    ")]):t._e()],1),t._v(" "),i("div",{staticClass:"pack-button-container"},[i("div",{staticClass:"save-pack-button-container"},[i("el-button",{staticClass:"save-pack-button",attrs:{type:"primary"},on:{click:t.savePackMetadata}},[t._v(t._s(t.$t("emoji.saveMetadata")))]),t._v(" "),i("el-button",{staticClass:"delete-pack-button",on:{click:t.deletePack}},[t._v(t._s(t.$t("emoji.deletePack")))])],1),t._v(" "),i("div",{staticClass:"download-pack-button-container"},[t.pack.pack["can-download"]?i("el-link",{attrs:{href:"//"+t.host+"//api/pleroma/emoji/packs/archive?name="+t.name,underline:!1,type:"primary",target:"_blank"}},[i("el-button",{staticClass:"download-archive"},[t._v(t._s(t.$t("emoji.downloadPackArchive")))])],1):t._e()],1)]),t._v(" "),i("el-collapse",{staticClass:"contents-collapse",on:{change:function(e){return t.handleChange(e,t.name)}},model:{value:t.showPackContent,callback:function(e){t.showPackContent=e},expression:"showPackContent"}},[t.isLocal?i("el-collapse-item",{staticClass:"no-background",attrs:{title:t.$t("emoji.addNewEmoji"),name:"addEmoji"}},[i("new-emoji-uploader",{attrs:{"pack-name":t.name}})],1):t._e(),t._v(" "),i("el-collapse-item",{staticClass:"no-background",attrs:{title:t.$t("emoji.manageEmoji"),name:"manageEmoji"}},[t.pack.files&&Object.keys(t.pack.files).length>0?i("div",[i("div",{class:t.isMobile?"emoji-container-flex":"emoji-container-grid"},[i("span",{staticClass:"emoji-preview-img emoji-table-head"},[t._v(t._s(t.$t("emoji.image")))]),t._v(" "),i("span",{staticClass:"emoji-table-head"},[t._v(t._s(t.$t("emoji.shortcode")))]),t._v(" "),i("span",{staticClass:"emoji-table-head"},[t._v(t._s(t.$t("emoji.file")))])]),t._v(" "),t._l(t.pack.files,function(e,n){return i("single-emoji-editor",{key:n,attrs:{host:t.host,"pack-name":t.name,shortcode:n,file:e,"is-local":t.isLocal}})})],2):i("span",{staticClass:"expl"},[t._v(t._s(t.$t("emoji.emptyPack")))]),t._v(" "),i("div",{staticClass:"files-pagination"},[i("el-pagination",{attrs:{total:t.localPackFilesCount,"current-page":t.currentFilesPage,"page-size":t.pageSize,"hide-on-single-page":"",layout:"prev, pager, next"},on:{"current-change":t.handleFilesPageChange}})],1)])],1)],1)},[],!1,null,null,null));ae.options.__file="LocalEmojiPack.vue";var re=ae.exports,oe={components:{SingleEmojiEditor:te},props:{activeTab:{type:String,required:!0},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:{currentFilesPage:function(){return this.$store.state.emojiPacks.currentRemoteFilesPage},currentRemotePacksPage:function(){return this.$store.state.emojiPacks.currentRemotePacksPage},isDesktop:function(){return"desktop"===this.$store.state.app.device},isMobile:function(){return"mobile"===this.$store.state.app.device},isTablet:function(){return"tablet"===this.$store.state.app.device},labelWidth:function(){return this.isMobile?"90px":(this.isTablet,"120px")},loadRemotePack:function(){return this.activeTab===this.name},pageSize:function(){return this.$store.state.emojiPacks.filesPageSize},remoteInstanceAddress:function(){return this.$store.state.emojiPacks.remoteInstance},remotePackFilesCount:function(){return this.$store.state.emojiPacks.remotePackFilesCount},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:{collapse:function(){this.showPackContent=[]},downloadFromInstance:function(){var t=this;this.$store.dispatch("DownloadFrom",{instanceAddress:this.remoteInstanceAddress,packName:this.name,as:this.downloadSharedAs}).then(function(){return t.$store.dispatch("ReloadEmoji")}).then(function(){return t.$store.dispatch("FetchLocalEmojiPacks",t.currentPage)})},handleChange:function(t,e){t.includes("manageEmoji")&&this.$store.dispatch("FetchRemoteSinglePack",{name:e,page:1})},handleFilesPageChange:function(t){this.$store.dispatch("FetchRemoteSinglePack",{name:this.name,page:t})}}},ce=(i("pt4P"),Object(g.a)(oe,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-collapse-item",{staticClass:"has-background",attrs:{title:t.name,name:t.name}},[t.loadRemotePack?i("div",[i("el-form",{staticClass:"emoji-pack-metadata remote-pack-metadata",attrs:{"label-width":t.labelWidth,"label-position":"left",size:"small"}},[i("el-form-item",{attrs:{label:t.$t("emoji.sharePack")}},[i("el-switch",{attrs:{disabled:""},model:{value:t.share,callback:function(e){t.share=e},expression:"share"}})],1),t._v(" "),t.homepage?i("el-form-item",{attrs:{label:t.$t("emoji.homepage")}},[i("span",[t._v(t._s(t.homepage))])]):t._e(),t._v(" "),t.description?i("el-form-item",{attrs:{label:t.$t("emoji.description")}},[i("span",[t._v(t._s(t.description))])]):t._e(),t._v(" "),t.license?i("el-form-item",{attrs:{label:t.$t("emoji.license")}},[i("span",[t._v(t._s(t.license))])]):t._e(),t._v(" "),t.fallbackSrc?i("el-form-item",{attrs:{label:t.$t("emoji.fallbackSrc")}},[i("span",[t._v(t._s(t.fallbackSrc))])]):t._e(),t._v(" "),t.fallbackSrc&&""!==t.fallbackSrc.trim()?i("el-form-item",{attrs:{label:t.$t("emoji.fallbackSrcSha")}},[t._v("\n        "+t._s(t.pack.pack["fallback-src-sha256"])+"\n      ")]):t._e(),t._v(" "),i("el-form-item",[t.pack.pack["can-download"]&&t.pack.pack["fallback-src"]?i("el-link",{attrs:{href:t.pack.pack["fallback-src"],underline:!1,type:"primary",target:"_blank"}},[i("el-button",{staticClass:"download-archive"},[t._v(t._s(t.$t("emoji.downloadPackArchive")))])],1):t._e()],1)],1),t._v(" "),i("el-collapse",{staticClass:"contents-collapse",on:{change:function(e){return t.handleChange(e,t.name)}},model:{value:t.showPackContent,callback:function(e){t.showPackContent=e},expression:"showPackContent"}},[i("el-collapse-item",{staticClass:"no-background",attrs:{title:t.$t("emoji.manageEmoji"),name:"manageEmoji"}},[t.pack.files&&Object.keys(t.pack.files).length>0?i("div",t._l(t.pack.files,function(e,n){return i("single-emoji-editor",{key:n,attrs:{host:t.host,"pack-name":t.name,shortcode:n,file:e,"is-local":t.isLocal}})}),1):i("span",{staticClass:"expl"},[t._v(t._s(t.$t("emoji.emptyPack")))]),t._v(" "),i("div",{staticClass:"files-pagination"},[i("el-pagination",{attrs:{total:t.remotePackFilesCount,"current-page":t.currentFilesPage,"page-size":t.pageSize,"hide-on-single-page":"",layout:"prev, pager, next"},on:{"current-change":t.handleFilesPageChange}})],1)]),t._v(" "),i("el-collapse-item",{staticClass:"no-background",attrs:{title:t.$t("emoji.downloadPack"),name:"downloadPack"}},[i("p",[t._v("\n          "+t._s(t.$t("emoji.thisWillDownload"))+' "'+t._s(t.name)+'" '+t._s(t.$t("emoji.downloadToCurrentInstance"))+'\n          "'+t._s(""===t.downloadSharedAs.trim()?t.name:t.downloadSharedAs)+'" ('+t._s(t.$t("emoji.canBeChanged"))+").\n          "+t._s(t.$t("emoji.willBeUsable"))+".\n        ")]),t._v(" "),i("div",{staticClass:"download-shared-pack"},[i("el-input",{attrs:{placeholder:t.$t("emoji.downloadAsOptional")},model:{value:t.downloadSharedAs,callback:function(e){t.downloadSharedAs=e},expression:"downloadSharedAs"}}),t._v(" "),i("el-button",{staticClass:"download-shared-pack-button",attrs:{type:"primary"},on:{click:t.downloadFromInstance}},[t._v("\n            "+t._s(t.isDesktop?t.$t("emoji.downloadSharedPack"):t.$t("emoji.downloadSharedPackMobile"))+"\n          ")])],1)])],1)],1):t._e()])},[],!1,null,null,null));function le(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function ue(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?le(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):le(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}ce.options.__file="RemoteEmojiPack.vue";var pe={name:"Emoji",components:{LocalEmojiPack:re,RemoteEmojiPack:ce.exports,Setting:It},data:function(){return{activeTab:"local",newPackName:"",activeLocalPack:"",activeRemotePack:"",fullscreenLoading:!1}},computed:ue(ue({},Object(l.b)(["settings"])),{},{currentLocalPacksPage:function(){return this.$store.state.emojiPacks.currentLocalPacksPage},currentRemotePacksPage:function(){return this.$store.state.emojiPacks.currentRemotePacksPage},emoji:function(){return this.settings.description.find(function(t){return":emoji"===t.key})},emojiData:function(){return F.a.get(this.settings.settings,[":pleroma",":emoji"])||{}},emojiPacksDisabled:function(){return([""]||!1).includes("emoji-packs")},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"105px":this.isTablet?"180px":"200px"},loading:function(){return this.settings.loading},localPacks:function(){return this.$store.state.emojiPacks.localPacks},localPacksCount:function(){return this.$store.state.emojiPacks.localPacksCount},pageSize:function(){return this.$store.state.emojiPacks.pageSize},remoteInstanceAddress:{get:function(){return this.$store.state.emojiPacks.remoteInstance},set:function(t){this.$store.dispatch("SetRemoteInstance",t)}},remotePacks:function(){return this.$store.state.emojiPacks.remotePacks},remotePacksCount:function(){return this.$store.state.emojiPacks.remotePacksCount},searchQuery:function(){return this.$store.state.settings.searchQuery},settingsLabelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"}}),mounted:function(){if(this.$store.dispatch("GetNodeInfo"),this.$store.dispatch("NeedReboot"),this.refreshLocalPacks(),this.searchQuery.length>0){this.activeTab="settings";var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));console.log(t),t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{closeLocalTabs:function(){this.collapseExistingEmojis(),this.activeLocalPack=""},closeRemoteTabs:function(){this.collapseExistingEmojis(),this.activeRemotePack=""},collapseExistingEmojis:function(){this.$refs.localEmojiPack&&this.$refs.localEmojiPack.length>0&&this.$refs.localEmojiPack.forEach(function(t){return t.collapse()}),this.$refs.remoteEmojiPack&&this.$refs.remoteEmojiPack.length>0&&this.$refs.remoteEmojiPack.forEach(function(t){return t.collapse()})},createLocalPack:function(){var t=this;this.$store.dispatch("CreatePack",{name:this.newPackName}).then(function(){t.newPackName="",t.$store.dispatch("FetchLocalEmojiPacks",t.currentLocalPacksPage),t.$store.dispatch("ReloadEmoji")})},handleLocalPageChange:function(t){this.$store.dispatch("FetchLocalEmojiPacks",t)},handleRemotePageChange:function(t){this.$store.dispatch("SetRemoteEmojiPacks",{page:t,remoteInstance:this.remoteInstanceAddress})},importFromFS:function(){var t=this;this.$store.dispatch("ImportFromFS").then(function(){t.$store.dispatch("FetchLocalEmojiPacks",t.currentLocalPacksPage),t.$store.dispatch("ReloadEmoji")})},onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()},refreshLocalPacks:function(){try{this.$store.dispatch("FetchLocalEmojiPacks",this.currentLocalPacksPage)}catch(t){return}this.$message({type:"success",message:u.a.t("emoji.refreshed")})},refreshRemotePacks:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.fullscreenLoading=!0,e.next=3,t.$store.dispatch("SetRemoteEmojiPacks",{page:1,remoteInstance:t.remoteInstanceAddress});case 3:t.fullscreenLoading=!1;case 4:case"end":return e.stop()}},e)}))()},reloadEmoji:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t.$store.dispatch("ReloadEmoji"),e.next=7;break;case 4:return e.prev=4,e.t0=e.catch(0),e.abrupt("return");case 7:t.$message({type:"success",message:u.a.t("emoji.reloaded")});case 8:case"end":return e.stop()}},e,null,[[0,4]])}))()}}},de=(i("ikkv"),Object(g.a)(pe,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"emoji-packs"},[i("div",{staticClass:"emoji-header-container"},[i("div",{staticClass:"emoji-packs-header-button-container"},[i("el-button",{staticClass:"reload-emoji-button",on:{click:t.reloadEmoji}},[t._v(t._s(t.$t("emoji.reloadEmoji")))]),t._v(" "),i("el-tooltip",{attrs:{content:t.$t("emoji.importEmojiTooltip"),effects:"dark",placement:"bottom","popper-class":"import-pack-button"}},[i("el-button",{on:{click:t.importFromFS}},[t._v("\n          "+t._s(t.$t("emoji.importPacks"))+"\n        ")])],1)],1)]),t._v(" "),i("el-tabs",{staticClass:"emoji-packs-tabs",attrs:{type:"card"},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[t.emojiPacksDisabled?t._e():i("el-tab-pane",{attrs:{label:t.$t("emoji.localPacks"),name:"local"}},[i("el-form",{staticClass:"emoji-packs-form",attrs:{"label-width":t.labelWidth}},[i("el-form-item",{attrs:{label:t.$t("emoji.localPacks")}},[i("el-button",{on:{click:t.refreshLocalPacks}},[t._v(t._s(t.$t("emoji.refreshLocalPacks")))])],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("emoji.createLocalPack")}},[i("div",{staticClass:"create-pack"},[i("el-input",{attrs:{placeholder:t.$t("users.name")},model:{value:t.newPackName,callback:function(e){t.newPackName=e},expression:"newPackName"}}),t._v(" "),i("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(" "),i("span",{staticClass:"emoji-name-warning"},[t._v(t._s(t.$t("emoji.emojiWarning")))])]),t._v(" "),Object.keys(t.localPacks).length>0?i("el-form-item",{attrs:{label:t.$t("emoji.packs")}},t._l(t.localPacks,function(e,n){return i("el-collapse",{key:n,attrs:{accordion:""},on:{change:t.closeRemoteTabs},model:{value:t.activeLocalPack,callback:function(e){t.activeLocalPack=e},expression:"activeLocalPack"}},[i("local-emoji-pack",{ref:"localEmojiPack",refInFor:!0,attrs:{name:n,pack:e,host:t.$store.getters.authHost,"is-local":!0}})],1)}),1):t._e()],1),t._v(" "),i("div",{staticClass:"pagination"},[i("el-pagination",{attrs:{total:t.localPacksCount,"current-page":t.currentLocalPacksPage,"page-size":t.pageSize,"hide-on-single-page":"",layout:"prev, pager, next"},on:{"current-change":t.handleLocalPageChange}})],1)],1),t._v(" "),t.emojiPacksDisabled?t._e():i("el-tab-pane",{attrs:{label:t.$t("emoji.remotePacks"),name:"remote"}},[i("el-form",{staticClass:"emoji-packs-form",attrs:{"label-width":t.labelWidth}},[i("el-form-item",{attrs:{label:t.$t("emoji.remotePacks")}},[i("div",{staticClass:"create-pack"},[i("el-input",{attrs:{placeholder:t.$t("emoji.remoteInstanceAddress")},model:{value:t.remoteInstanceAddress,callback:function(e){t.remoteInstanceAddress=e},expression:"remoteInstanceAddress"}}),t._v(" "),i("el-button",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}],staticClass:"create-pack-button",attrs:{disabled:""===t.remoteInstanceAddress.trim()},on:{click:t.refreshRemotePacks}},[t._v("\n              "+t._s(t.$t("emoji.refreshRemote"))+"\n            ")])],1)]),t._v(" "),Object.keys(t.remotePacks).length>0?i("el-form-item",{attrs:{label:t.$t("emoji.packs")}},t._l(t.remotePacks,function(e,n){return i("el-collapse",{key:n,attrs:{accordion:""},on:{change:t.closeLocalTabs},model:{value:t.activeRemotePack,callback:function(e){t.activeRemotePack=e},expression:"activeRemotePack"}},[i("remote-emoji-pack",{ref:"remoteEmojiPack",refInFor:!0,attrs:{"active-tab":t.activeRemotePack,name:n,pack:e,host:t.$store.getters.authHost,"is-local":!1}})],1)}),1):t._e()],1),t._v(" "),i("div",{staticClass:"pagination"},[i("el-pagination",{attrs:{total:t.remotePacksCount,"current-page":t.currentRemotePacksPage,"page-size":t.pageSize,"hide-on-single-page":"",layout:"prev, pager, next"},on:{"current-change":t.handleRemotePageChange}})],1)],1),t._v(" "),i("el-tab-pane",{attrs:{label:t.$t("settings.settings"),name:"settings"}},[t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.emojiData,"label-position":t.labelPosition,"label-width":t.settingsLabelWidth}},[i("setting",{attrs:{"setting-group":t.emoji,data:t.emojiData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Submit")])],1)],1)])],1)],1)},[],!1,null,null,null));de.options.__file="Emoji.vue";var he=de.exports;function ge(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function me(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ge(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ge(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var fe={name:"Esshd",components:{Setting:It},computed:me(me({},Object(l.b)(["settings"])),{},{esshd:function(){return this.settings.description.find(function(t){return":esshd"===t.group})},esshdData:function(){return F.a.get(this.settings.settings,[":esshd"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},searchQuery:function(){return this.$store.state.settings.searchQuery}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{toggleEsshd:function(t){this.$store.dispatch("ToggleEsshd",t)},updateSetting:function(t,e,i){this.$store.dispatch("UpdateSettings",{tab:e,data:r()({},i,t)})},onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},be=(i("FCne"),Object(g.a)(fe,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.esshdData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.esshd,data:t.esshdData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));be.options.__file="Esshd.vue";var ve=be.exports,ye={name:"FrontendStatusButton",props:{frontend:{type:Object,default:function(){return{}}}},data:function(){return{buttonLoading:!1}},methods:{installFrontend:function(t){var e=this;return s()(c.a.mark(function i(){var n;return c.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=t.name,e.buttonLoading=!0,i.prev=2,i.next=5,e.$store.dispatch("InstallFrontend",{name:n});case 5:i.next=11;break;case 7:return i.prev=7,i.t0=i.catch(2),e.buttonLoading=!1,i.abrupt("return");case 11:e.buttonLoading=!1,e.$message({message:u.a.t("settings.frontendSuccess"),type:"success",duration:5e3});case 13:case"end":return i.stop()}},i,null,[[2,7]])}))()}}},ke=Object(g.a)(ye,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",[t.buttonLoading?i("el-button",{attrs:{loading:!0,disabled:"",type:"text",size:"small"}},[t._v("\n    "+t._s(t.$t("settings.inProcess"))+"\n  ")]):t.frontend.installed?i("el-button",{attrs:{disabled:"",type:"text",size:"small"}},[t._v("\n    "+t._s(t.$t("settings.installed"))+"\n  ")]):i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.installFrontend(t.frontend)}}},[t._v("\n    "+t._s(t.$t("settings.install"))+"\n  ")])],1)},[],!1,null,null,null);function _e(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Pe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?_e(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):_e(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}ke.options.__file="FrontendStatusButton.vue";var Oe={name:"FrontendsTable",components:{FrontendStatusButton:ke.exports},data:function(){return{buttonLoading:!1,frontendInputOpen:!1,frontendFormData:{name:"",ref:"",file:"",buildUrl:"",buildDir:""},rules:{name:{required:!0,message:"Please input Name",trigger:"blur"}}}},computed:Pe(Pe({},Object(l.b)(["settings"])),{},{availableFrontends:function(){return this.settings.frontends},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},isDesktop:function(){return"desktop"===this.$store.state.app.device},isMobile:function(){return"mobile"===this.$store.state.app.device},isTablet:function(){return"tablet"===this.$store.state.app.device}}),mounted:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("FetchFrontends");case 2:case"end":return e.stop()}},e)}))()},methods:{installNewFrontend:function(){var t=this;this.$refs.frontendFormData.validate(function(){var e=s()(c.a.mark(function e(i){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=16;break}return t.buttonLoading=!0,e.prev=2,e.next=5,t.$store.dispatch("InstallFrontend",t.frontendFormData);case 5:e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(2),t.buttonLoading=!1,e.abrupt("return");case 11:t.buttonLoading=!1,t.$message({message:u.a.t("settings.frontendSuccess"),type:"success",duration:5e3}),t.frontendFormData={name:"",ref:"",file:"",buildUrl:"",buildDir:""},e.next=17;break;case 16:return e.abrupt("return",!1);case 17:case"end":return e.stop()}},e,null,[[2,7]])}));return function(t){return e.apply(this,arguments)}}())},toggleFrontendInput:function(){this.frontendInputOpen=!this.frontendInputOpen}}},je=Object(g.a)(Oe,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-form",{staticClass:"frontend-container",attrs:{"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("el-form-item",{staticClass:"description-container"},[i("span",{staticClass:"setting-label"},[t._v(t._s(t.$t("settings.availableFrontends")))]),t._v(" "),i("span",{staticClass:"expl no-top-margin"},[i("p",[t._v(t._s(t.$t("settings.installFrontends")))])])]),t._v(" "),i("el-form-item",[i("el-table",{staticClass:"frontends-table",attrs:{data:t.availableFrontends}},[i("el-table-column",{attrs:{label:t.$t("settings.name"),prop:"name",width:"120"}}),t._v(" "),i("el-table-column",{attrs:{label:t.$t("settings.git"),prop:"git"}}),t._v(" "),i("el-table-column",{attrs:{label:t.$t("settings.installed"),prop:"installed"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("frontend-status-button",{attrs:{frontend:t.row}})]}}])})],1),t._v(" "),i("div",{staticClass:"frontends-button-container"},[i("el-button",{attrs:{size:t.isDesktop?"medium":"mini",icon:t.frontendInputOpen?"el-icon-minus":"el-icon-plus",circle:""},on:{click:t.toggleFrontendInput}}),t._v(" "),i("span",{staticClass:"icons-button-desc"},[t._v(t._s(t.$t("settings.installAnotherFrontend")))])],1),t._v(" "),t.frontendInputOpen?i("el-form",{ref:"frontendFormData",attrs:{rules:t.rules,model:t.frontendFormData,"label-width":"130px"}},[i("el-form-item",{staticClass:"frontend-form-input",attrs:{label:t.$t("settings.name"),prop:"name"}},[i("el-input",{model:{value:t.frontendFormData.name,callback:function(e){t.$set(t.frontendFormData,"name",e)},expression:"frontendFormData.name"}})],1),t._v(" "),i("el-form-item",{staticClass:"frontend-form-input",attrs:{label:t.$t("settings.ref")}},[i("el-input",{model:{value:t.frontendFormData.ref,callback:function(e){t.$set(t.frontendFormData,"ref",e)},expression:"frontendFormData.ref"}})],1),t._v(" "),i("el-form-item",{staticClass:"frontend-form-input",attrs:{label:t.$t("settings.file")}},[i("el-input",{model:{value:t.frontendFormData.file,callback:function(e){t.$set(t.frontendFormData,"file",e)},expression:"frontendFormData.file"}})],1),t._v(" "),i("el-form-item",{staticClass:"frontend-form-input",attrs:{label:t.$t("settings.buildUrl")}},[i("el-input",{model:{value:t.frontendFormData.buildUrl,callback:function(e){t.$set(t.frontendFormData,"buildUrl",e)},expression:"frontendFormData.buildUrl"}})],1),t._v(" "),i("el-form-item",{staticClass:"frontend-form-input",attrs:{label:t.$t("settings.buildDir")}},[i("el-input",{model:{value:t.frontendFormData.buildDir,callback:function(e){t.$set(t.frontendFormData,"buildDir",e)},expression:"frontendFormData.buildDir"}})],1),t._v(" "),i("el-form-item",{staticClass:"install-frontend-button"},[i("el-button",{attrs:{loading:t.buttonLoading,type:"primary"},on:{click:t.installNewFrontend}},[t._v(t._s(t.$t("settings.install")))])],1)],1):t._e()],1)],1)},[],!1,null,null,null);function we(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Se(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?we(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):we(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}je.options.__file="FrontendsTable.vue";var $e={name:"Frontend",components:{FrontendsTable:je.exports,Setting:It},computed:Se(Se({},Object(l.b)(["settings"])),{},{assets:function(){return this.settings.description.find(function(t){return":assets"===t.key})},assetsData:function(){return F.a.get(this.settings.settings,[":pleroma",":assets"])||{}},chat:function(){return this.settings.description.find(function(t){return":chat"===t.key})},chatData:function(){return F.a.get(this.settings.settings,[":pleroma",":chat"])||{}},frontend:function(){return this.settings.description.find(function(t){return":frontend_configurations"===t.key})},frontendData:function(){return F.a.get(this.settings.settings,[":pleroma",":frontend_configurations"])||{}},frontends:function(){return this.settings.description.find(function(t){return":frontends"===t.key})},frontendsData:function(){return F.a.get(this.settings.settings,[":pleroma",":frontends"])||{}},isDesktop:function(){return"desktop"===this.$store.state.app.device},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},markup:function(){return this.settings.description.find(function(t){return":markup"===t.key})},markupData:function(){return F.a.get(this.settings.settings,[":pleroma",":markup"])||{}},preload:function(){return this.settings.description.find(function(t){return"Pleroma.Web.Preload"===t.key})},preloadData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.Web.Preload"])||{}},searchQuery:function(){return this.$store.state.settings.searchQuery},staticFe:function(){return this.settings.description.find(function(t){return":static_fe"===t.key})},staticFeData:function(){return F.a.get(this.settings.settings,[":pleroma",":static_fe"])||{}}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},De=(i("hVXW"),Object(g.a)($e,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("frontends-table"),t._v(" "),t.frontend?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.frontendData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.frontend,data:t.frontendData}})],1),t._v(" "),t.frontend?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.staticFeData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.staticFe,data:t.staticFeData}})],1),t._v(" "),t.staticFe?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.frontendsData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.frontends,data:t.frontendsData}})],1),t._v(" "),t.frontends?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.assetsData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.assets,data:t.assetsData}})],1),t._v(" "),t.assets?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.chatData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.chat,data:t.chatData}})],1),t._v(" "),t.chat?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.markupData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.markup,data:t.markupData}})],1),t._v(" "),t.preload?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.preloadData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.preload,data:t.preloadData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));De.options.__file="Frontend.vue";var Ce=De.exports;function xe(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Ee(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?xe(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):xe(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Ue={name:"Gopher",components:{Setting:It},computed:Ee(Ee({},Object(l.b)(["settings"])),{},{gopher:function(){return this.settings.description.find(function(t){return":gopher"===t.key})},gopherData:function(){return F.a.get(this.settings.settings,[":pleroma",":gopher"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},searchQuery:function(){return this.$store.state.settings.searchQuery}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},Ie=(i("w5cJ"),Object(g.a)(Ue,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[t.loading?t._e():i("el-form",{attrs:{model:t.gopherData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.gopher,data:t.gopherData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));Ie.options.__file="Gopher.vue";var Fe=Ie.exports;function Le(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Te(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Le(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Le(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Me={name:"HTTP",components:{Setting:It},computed:Te(Te({},Object(l.b)(["settings"])),{},{corsPlug:function(){return this.settings.description.find(function(t){return":cors_plug"===t.group})},corsPlugData:function(){return F.a.get(this.settings.settings,[":cors_plug"])||{}},http:function(){return this.settings.description.find(function(t){return":http"===t.key})},httpData:function(){return F.a.get(this.settings.settings,[":pleroma",":http"])||{}},httpSecurity:function(){return this.settings.description.find(function(t){return":http_security"===t.key})},httpSecurityData:function(){return F.a.get(this.settings.settings,[":pleroma",":http_security"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},searchQuery:function(){return this.$store.state.settings.searchQuery},webCacheTtl:function(){return this.settings.description.find(function(t){return":web_cache_ttl"===t.key})},webCacheTtlData:function(){return F.a.get(this.settings.settings,[":pleroma",":web_cache_ttl"])||{}}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},Ae=(i("KFE3"),Object(g.a)(Me,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.httpData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.http,data:t.httpData}})],1),t._v(" "),t.http?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.corsPlugData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.corsPlug,data:t.corsPlugData}})],1),t._v(" "),t.corsPlug?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.httpSecurityData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.httpSecurity,data:t.httpSecurityData}})],1),t._v(" "),t.webCacheTtl?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.webCacheTtlData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.webCacheTtl,data:t.webCacheTtlData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));Ae.options.__file="Http.vue";var We=Ae.exports;function Ge(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Qe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ge(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ge(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Re={name:"Instance",components:{EditorInput:$,Setting:It},data:function(){return{editorContent:""}},computed:Qe(Qe({},Object(l.b)(["settings"])),{},{adminToken:function(){return this.settings.description.find(function(t){return t.children&&":admin_token"===t.children[0].key})},adminTokenData:function(){return F.a.get(this.settings.settings,[":pleroma",":admin_token"])||{}},instancePanelContent:{get:function(){return this.$store.state.settings.instancePanel},set:function(t){this.editorContent=t}},favicons:function(){return this.settings.description.find(function(t){return":instances_favicons"===t.key})},faviconsData:function(){return F.a.get(this.settings.settings,[":pleroma",":instances_favicons"])||{}},feed:function(){return this.settings.description.find(function(t){return":feed"===t.key})},feedData:function(){return F.a.get(this.settings.settings,[":pleroma",":feed"])||{}},instance:function(){return this.settings.description.find(function(t){return":instance"===t.key})},instanceData:function(){return F.a.get(this.settings.settings,[":pleroma",":instance"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},manifest:function(){return this.settings.description.find(function(t){return":manifest"===t.key})},manifestData:function(){return F.a.get(this.settings.settings,[":pleroma",":manifest"])||{}},pleromaUser:function(){return this.settings.description.find(function(t){return"Pleroma.User"===t.key})},pleromaUserData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.User"])||{}},restrictUnauthenticated:function(){return this.settings.description.find(function(t){return":restrict_unauthenticated"===t.key})},restrictUnauthenticatedData:function(){return F.a.get(this.settings.settings,[":pleroma",":restrict_unauthenticated"])||{}},searchQuery:function(){return this.$store.state.settings.searchQuery},scheduledActivity:function(){return this.$store.state.settings.description.find(function(t){return"Pleroma.ScheduledActivity"===t.key})},scheduledActivityData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.ScheduledActivity"])||{}},streamer:function(){return this.$store.state.settings.description.find(function(t){return":streamer"===t.key})},streamerData:function(){return F.a.get(this.settings.settings,[":pleroma",":streamer"])||{}},uriSchemes:function(){return this.settings.description.find(function(t){return":uri_schemes"===t.key})},uriSchemesData:function(){return F.a.get(this.settings.settings,[":pleroma",":uri_schemes"])||{}},welcome:function(){return this.settings.description.find(function(t){return":welcome"===t.key})},welcomeData:function(){return F.a.get(this.settings.settings,[":pleroma",":welcome"])||{}}}),mounted:function(){var t=this;return s()(c.a.mark(function e(){var i;return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.searchQuery.length>0&&((i=document.querySelector('[data-search="'.concat(t.searchQuery,'"]')))&&i.scrollIntoView({block:"start",behavior:"smooth"}),t.$store.dispatch("SetSearchQuery","")),e.next=3,t.$store.dispatch("FetchInstanceDocument","instance-panel");case 3:case"end":return e.stop()}},e)}))()},methods:{handleEditorUpdate:function(t){this.editorContent=t},onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:return e.next=5,t.$store.dispatch("UpdateInstanceDocs",{name:"instance-panel",content:t.editorContent.length>0?t.editorContent:t.instancePanelContent});case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return");case 10:t.$message({type:"success",message:u.a.t("settings.success")});case 11:case"end":return e.stop()}},e,null,[[0,7]])}))()}}},Ve=(i("e0P1"),Object(g.a)(Re,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.instanceData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.instance,data:t.instanceData}})],1),t._v(" "),i("editor-input",{attrs:{name:"instance-panel"},on:{input:t.handleEditorUpdate},model:{value:t.instancePanelContent,callback:function(e){t.instancePanelContent=e},expression:"instancePanelContent"}}),t._v(" "),t.instance?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.restrictUnauthenticatedData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.restrictUnauthenticated,data:t.restrictUnauthenticatedData}})],1),t._v(" "),t.restrictUnauthenticated?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.adminTokenData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.adminToken,data:t.adminTokenData}})],1),t._v(" "),t.adminToken?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.welcomeData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.welcome,data:t.welcomeData}})],1),t._v(" "),t.welcome?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.scheduledActivityData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.scheduledActivity,data:t.scheduledActivityData}})],1),t._v(" "),t.scheduledActivity?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.manifestData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.manifest,data:t.manifestData}})],1),t._v(" "),t.manifest?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.pleromaUserData,"label-position":t.labelPosition,"label-width":t.labelWidth,"data-search":"Pleroma.User"}},[i("setting",{attrs:{"setting-group":t.pleromaUser,data:t.pleromaUserData}})],1),t._v(" "),t.pleromaUser?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.faviconsData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.favicons,data:t.faviconsData}})],1),t._v(" "),t.favicons?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.uriSchemesData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.uriSchemes,data:t.uriSchemesData}})],1),t._v(" "),t.uriSchemes?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.feedData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.feed,data:t.feedData}})],1),t._v(" "),t.feed?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.streamerData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.streamer,data:t.streamerData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));Ve.options.__file="Instance.vue";var Ne=Ve.exports;function qe(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function ze(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?qe(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):qe(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Ke={name:"JobQueue",components:{Setting:It},computed:ze(ze({},Object(l.b)(["settings"])),{},{activityExpiration:function(){return this.settings.description.find(function(t){return"Pleroma.Workers.PurgeExpiredActivity"===t.key})},activityExpirationData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.Workers.PurgeExpiredActivity"])||{}},connectionsPools:function(){return this.settings.description.find(function(t){return":connections_pool"===t.key})},connectionsPoolsData:function(){return F.a.get(this.settings.settings,[":pleroma",":connections_pool"])||{}},hackneyPools:function(){return this.settings.description.find(function(t){return":hackney_pools"===t.key})},hackneyPoolsData:function(){return F.a.get(this.settings.settings,[":pleroma",":hackney_pools"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},obanQueues:function(){return this.settings.description.find(function(t){return"Oban"===t.key})},obanQueuesData:function(){return F.a.get(this.settings.settings,[":pleroma","Oban"])||{}},pools:function(){return this.settings.description.find(function(t){return":pools"===t.key})},poolsData:function(){return F.a.get(this.settings.settings,[":pleroma",":pools"])||{}},searchQuery:function(){return this.$store.state.settings.searchQuery},workers:function(){return this.settings.description.find(function(t){return":workers"===t.key})},workersData:function(){return F.a.get(this.settings.settings,[":pleroma",":workers"])||{}}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},Be=(i("lNpP"),Object(g.a)(Ke,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.obanQueuesData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.obanQueues,data:t.obanQueuesData}})],1),t._v(" "),t.obanQueues?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.workersData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.workers,data:t.workersData}})],1),t._v(" "),t.workers?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.activityExpirationData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.activityExpiration,data:t.activityExpirationData}})],1),t._v(" "),t.activityExpiration?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.connectionsPoolsData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.connectionsPools,data:t.connectionsPoolsData}})],1),t._v(" "),t.connectionsPools?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.poolsData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.pools,data:t.poolsData}})],1),t._v(" "),t.pools?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.hackneyPoolsData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.hackneyPools,data:t.hackneyPoolsData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));Be.options.__file="JobQueue.vue";var He=Be.exports;function Je(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Ye(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Je(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Xe={name:"LinkFormatter",components:{Setting:It},computed:Ye(Ye({},Object(l.b)(["settings"])),{},{linkFormatter:function(){return this.settings.description.find(function(t){return"Pleroma.Formatter"===t.key})},linkFormatterData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.Formatter"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},searchQuery:function(){return this.$store.state.settings.searchQuery}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},Ze=(i("vnTa"),Object(g.a)(Xe,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.linkFormatterData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.linkFormatter,data:t.linkFormatterData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));Ze.options.__file="LinkFormatter.vue";var ti=Ze.exports;function ei(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function ii(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ei(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ei(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var ni={name:"Logger",components:{Setting:It},computed:ii(ii({},Object(l.b)(["settings"])),{},{console:function(){return this.settings.description.find(function(t){return":console"===t.key})},consoleData:function(){return F.a.get(this.settings.settings,[":logger",":console"])||{}},exsyslogger:function(){return this.settings.description.find(function(t){return":ex_syslogger"===t.key})},exsysloggerData:function(){return F.a.get(this.settings.settings,[":logger",":ex_syslogger"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},logger:function(){return this.settings.description.find(function(t){return":logger"===t.group})},loggerData:function(){return F.a.get(this.settings.settings,[":logger",":backends"])||{}},searchQuery:function(){return this.$store.state.settings.searchQuery},quack:function(){return this.settings.description.find(function(t){return":quack"===t.group})},quackData:function(){return F.a.get(this.settings.settings,[":quack"])||{}}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},si=(i("mADP"),Object(g.a)(ni,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.loggerData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.logger,data:t.loggerData}})],1),t._v(" "),t.logger?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.consoleData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.console,data:t.consoleData}})],1),t._v(" "),t.console?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.exsysloggerData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.exsyslogger,data:t.exsysloggerData}})],1),t._v(" "),t.exsyslogger?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.quackData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.quack,data:t.quackData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));si.options.__file="Logger.vue";var ai=si.exports;function ri(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function oi(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ri(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ri(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var ci={name:"Mailer",components:{Setting:It},computed:oi(oi({},Object(l.b)(["settings"])),{},{emailNotifications:function(){return this.settings.description.find(function(t){return":email_notifications"===t.key})},emailNotificationsData:function(){return F.a.get(this.settings.settings,[":pleroma",":email_notifications"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"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 F.a.get(this.settings.settings,[":pleroma","Pleroma.Emails.Mailer"])||{}},newUsersDigestEmail:function(){return this.settings.description.find(function(t){return"Pleroma.Emails.NewUsersDigestEmail"===t.key})},newUsersDigestEmailData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.Emails.NewUsersDigestEmail"])||{}},searchQuery:function(){return this.$store.state.settings.searchQuery},swoosh:function(){return this.settings.description.find(function(t){return":swoosh"===t.group})},swooshData:function(){return F.a.get(this.settings.settings,[":swoosh"])||{}},userEmail:function(){return this.settings.description.find(function(t){return"Pleroma.Emails.UserEmail"===t.key})},userEmailData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.Emails.UserEmail"])||{}}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},li=(i("PygS"),Object(g.a)(ci,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.mailerData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.mailer,data:t.mailerData}})],1),t._v(" "),t.mailer?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.swooshData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.swoosh,data:t.swooshData}})],1),t._v(" "),t.swoosh?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.emailNotificationsData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.emailNotifications,data:t.emailNotificationsData}})],1),t._v(" "),t.emailNotifications?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.userEmailData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.userEmail,data:t.userEmailData}})],1),t._v(" "),t.userEmail?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.newUsersDigestEmailData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.newUsersDigestEmail,data:t.newUsersDigestEmailData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));li.options.__file="Mailer.vue";var ui=li.exports;function pi(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function di(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?pi(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):pi(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var hi={name:"MediaProxy",components:{Setting:It},computed:di(di({},Object(l.b)(["settings"])),{},{httpInvalidation:function(){return this.settings.description.find(function(t){return"Pleroma.Web.MediaProxy.Invalidation.Http"===t.key})},httpInvalidationData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.Web.MediaProxy.Invalidation.Http"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},mediaPreviewProxy:function(){return this.settings.description.find(function(t){return":media_preview_proxy"===t.key})},mediaPreviewProxyData:function(){return F.a.get(this.settings.settings,[":pleroma",":media_preview_proxy"])||{}},mediaProxy:function(){return this.settings.description.find(function(t){return":media_proxy"===t.key})},mediaProxyData:function(){return F.a.get(this.settings.settings,[":pleroma",":media_proxy"])||{}},searchQuery:function(){return this.$store.state.settings.searchQuery},scriptInvalidation:function(){return this.settings.description.find(function(t){return"Pleroma.Web.MediaProxy.Invalidation.Script"===t.key})},scriptInvalidationData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.Web.MediaProxy.Invalidation.Script"])||{}}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},gi=(i("UdS4"),Object(g.a)(hi,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[t.loading?t._e():i("el-form",{attrs:{model:t.mediaProxyData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.mediaProxy,data:t.mediaProxyData}})],1),t._v(" "),t.mediaProxy?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),t.loading?t._e():i("el-form",{attrs:{model:t.mediaPreviewProxyData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.mediaPreviewProxy,data:t.mediaPreviewProxyData}})],1),t._v(" "),t.mediaPreviewProxy?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),t.loading?t._e():i("el-form",{attrs:{model:t.httpInvalidationData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.httpInvalidation,data:t.httpInvalidationData}})],1),t._v(" "),t.httpInvalidation?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),t.loading?t._e():i("el-form",{attrs:{model:t.scriptInvalidationData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.scriptInvalidation,data:t.scriptInvalidationData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));gi.options.__file="MediaProxy.vue";var mi=gi.exports;function fi(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function bi(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?fi(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):fi(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var vi={name:"Metadata",components:{Setting:It},computed:bi(bi({},Object(l.b)(["settings"])),{},{isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"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 F.a.get(this.settings.settings,[":pleroma","Pleroma.Web.Metadata"])||{}},searchQuery:function(){return this.$store.state.settings.searchQuery},richMedia:function(){return this.settings.description.find(function(t){return":rich_media"===t.key})},richMediaData:function(){return F.a.get(this.settings.settings,[":pleroma",":rich_media"])||{}}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},yi=(i("apN7"),Object(g.a)(vi,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.metadataData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.metadata,data:t.metadataData}})],1),t._v(" "),t.metadata?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.richMediaData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.richMedia,data:t.richMediaData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));yi.options.__file="Metadata.vue";var ki=yi.exports;function _i(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Pi(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?_i(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):_i(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Oi={name:"MRF",components:{Setting:It},computed:Pi(Pi({},Object(l.b)(["settings"])),{},{isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},mrfSettings:function(){return this.settings.description.filter(function(t){return"mrf"===t.tab})},searchQuery:function(){return this.$store.state.settings.searchQuery}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{getSettingData:function(t){return F.a.get(this.settings.settings,[t.group,t.key])||{}},onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()},showMrfPolicy:function(t){var e=F.a.get(this.settings.settings,[":pleroma",":mrf",":policies"])||[],i=this.mrfSettings.reduce(function(t,e){var i=e.key,n=e.related_policy;return":mrf"!==i&&(t[i]=n),t},{});return!Object.keys(i).includes(t)||e.includes(i[t])}}},ji=(i("h9z7"),Object(g.a)(Oi,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[t._l(t.mrfSettings,function(e){return i("div",{key:e.key},[t.showMrfPolicy(e.key)?i("el-form",{attrs:{model:t.getSettingData(e),"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":e,data:t.getSettingData(e)}}),t._v(" "),e?i("el-divider",{staticClass:"divider thick-line"}):t._e()],1):t._e()],1)}),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],2)},[],!1,null,null,null));ji.options.__file="MRF.vue";var wi=ji.exports;function Si(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function $i(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Si(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Si(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Di={name:"Other",components:{EditorInput:$,Setting:It},data:function(){return{termsOfServices:""}},computed:$i($i({},Object(l.b)(["settings"])),{},{backup:function(){return this.settings.description.find(function(t){return"Pleroma.User.Backup"===t.key})},backupData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.User.Backup"])||{}},castAndValidate:function(){return this.settings.description.find(function(t){return"Pleroma.Web.ApiSpec.CastAndValidate"===t.key})},castAndValidateData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.Web.ApiSpec.CastAndValidate"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},mimeTypes:function(){return this.settings.description.find(function(t){return":mime"===t.group})},mimeTypesData:function(){return F.a.get(this.settings.settings,[":mime"])||{}},modules:function(){return this.settings.description.find(function(t){return":modules"===t.key})},modulesData:function(){return F.a.get(this.settings.settings,[":pleroma",":modules"])||{}},prometheusMetrics:function(){return this.settings.description.find(function(t){return"Pleroma.Web.Endpoint.MetricsExporter"===t.key})},prometheusMetricsData:function(){return F.a.get(this.settings.settings,[":prometheus","Pleroma.Web.Endpoint.MetricsExporter"])||{}},remoteIp:function(){return this.settings.description.find(function(t){return"Pleroma.Web.Plugs.RemoteIp"===t.key})},remoteIpData:function(){return F.a.get(this.settings.settings,[":pleroma","Pleroma.Web.Plugs.RemoteIp"])||{}},searchQuery:function(){return this.$store.state.settings.searchQuery},termsOfServicesContent:{get:function(){return this.$store.state.settings.termsOfServices},set:function(t){this.termsOfServices=t}}}),mounted:function(){var t=this;return s()(c.a.mark(function e(){var i;return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.searchQuery.length>0&&((i=document.querySelector('[data-search="'.concat(t.searchQuery,'"]')))&&i.scrollIntoView({block:"start",behavior:"smooth"}),t.$store.dispatch("SetSearchQuery","")),e.next=3,t.$store.dispatch("FetchInstanceDocument","terms-of-service");case 3:case"end":return e.stop()}},e)}))()},methods:{handleEditorUpdate:function(t){this.termsOfServices=t},onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:return e.next=5,t.$store.dispatch("UpdateInstanceDocs",{name:"terms-of-service",content:t.termsOfServices.length>0?t.termsOfServices:t.termsOfServicesContent});case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return");case 10:t.$message({type:"success",message:u.a.t("settings.success")});case 11:case"end":return e.stop()}},e,null,[[0,7]])}))()}}},Ci=(i("gFOO"),Object(g.a)(Di,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("editor-input",{attrs:{name:"terms-of-service"},on:{input:t.handleEditorUpdate},model:{value:t.termsOfServicesContent,callback:function(e){t.termsOfServicesContent=e},expression:"termsOfServicesContent"}}),t._v(" "),i("el-divider",{staticClass:"divider thick-line"}),t._v(" "),i("el-form",{attrs:{model:t.prometheusMetricsData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.prometheusMetrics,data:t.prometheusMetricsData}})],1),t._v(" "),t.prometheusMetrics?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.backupData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.backup,data:t.backupData}})],1),t._v(" "),t.backup?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.mimeTypesData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.mimeTypes,data:t.mimeTypesData}})],1),t._v(" "),t.mimeTypes?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.remoteIpData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.remoteIp,data:t.remoteIpData}})],1),t._v(" "),t.remoteIpData?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.modulesData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.modules,data:t.modulesData}})],1),t._v(" "),t.castAndValidate?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.castAndValidateData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.castAndValidate,data:t.castAndValidateData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));Ci.options.__file="Other.vue";var xi=Ci.exports;function Ei(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Ui(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ei(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ei(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Ii={name:"RateLimiters",components:{Setting:It},computed:Ui(Ui({},Object(l.b)(["settings"])),{},{rateLimiters:function(){return this.settings.description.find(function(t){return":rate_limit"===t.key})},rateLimitersData:function(){return F.a.get(this.settings.settings,[":pleroma",":rate_limit"])||{}},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.$store.state.settings.loading},searchQuery:function(){return this.$store.state.settings.searchQuery}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},Fi=(i("WvM+"),Object(g.a)(Ii,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[t.loading?t._e():i("el-form",{attrs:{model:t.rateLimitersData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.rateLimiters,data:t.rateLimitersData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));Fi.options.__file="RateLimiters.vue";var Li=Fi.exports;function Ti(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Mi(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ti(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ti(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Ai={name:"Upload",components:{Setting:It},computed:Mi(Mi({},Object(l.b)(["settings"])),{},{isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},s3:function(){return this.settings.description.find(function(t){return":s3"===t.key})},s3Data:function(){return F.a.get(this.settings.settings,[":ex_aws",":s3"])||{}},searchQuery:function(){return this.$store.state.settings.searchQuery},showUploadersS3:function(){return"Pleroma.Uploaders.S3"===F.a.get(this.settings.settings,[":pleroma","Pleroma.Upload",":uploader"])},showUploadersLocal:function(){return"Pleroma.Uploaders.Local"===F.a.get(this.settings.settings,[":pleroma","Pleroma.Upload",":uploader"])},upload:function(){return this.settings.description.find(function(t){return"Pleroma.Upload"===t.key})},uploadData:function(){return F.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 F.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 F.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 F.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 F.a.get(this.settings.settings,[":pleroma","Pleroma.Upload.Filter.AnonymizeFilename"])||{}}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},Wi=(i("DPt0"),Object(g.a)(Ai,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[i("el-form",{attrs:{model:t.uploadData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.upload,data:t.uploadData}})],1),t._v(" "),t.upload?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),t.showUploadersLocal?i("el-form",{attrs:{model:t.uploadersLocalData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.uploadersLocal,data:t.uploadersLocalData}}),t._v(" "),t.uploadersLocal?i("el-divider",{staticClass:"divider thick-line"}):t._e()],1):t._e(),t._v(" "),t.showUploadersS3?i("el-form",{attrs:{model:t.s3Data,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.s3,data:t.s3Data}}),t._v(" "),t.s3?i("el-divider",{staticClass:"divider thick-line"}):t._e()],1):t._e(),t._v(" "),t.showUploadersS3?i("el-form",{attrs:{model:t.uploadersS3Data,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.uploadersS3,data:t.uploadersS3Data}}),t._v(" "),t.uploadersS3?i("el-divider",{staticClass:"divider thick-line"}):t._e()],1):t._e(),t._v(" "),i("el-form",{attrs:{model:t.uploadFilterMogrifyData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.uploadFilterMogrify,data:t.uploadFilterMogrifyData}})],1),t._v(" "),t.uploadFilterMogrify?i("el-divider",{staticClass:"divider thick-line"}):t._e(),t._v(" "),i("el-form",{attrs:{model:t.uploadAnonymizeFilenameData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.uploadAnonymizeFilename,data:t.uploadAnonymizeFilenameData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));Wi.options.__file="Upload.vue";var Gi=Wi.exports;function Qi(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Ri(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Qi(Object(i),!0).forEach(function(e){r()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Qi(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Vi={name:"WebPush",components:{Setting:It},computed:Ri(Ri({},Object(l.b)(["settings"])),{},{isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"sidebar-opened":"sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},labelPosition:function(){return this.isMobile?"top":"right"},labelWidth:function(){return this.isMobile?"120px":this.isTablet?"200px":"280px"},loading:function(){return this.settings.loading},searchQuery:function(){return this.$store.state.settings.searchQuery},vapidDetails:function(){return this.settings.description.find(function(t){return":vapid_details"===t.key})},vapidDetailsData:function(){return F.a.get(this.settings.settings,[":web_push_encryption",":vapid_details"])||{}}}),mounted:function(){if(this.searchQuery.length>0){var t=document.querySelector('[data-search="'.concat(this.searchQuery,'"]'));t&&t.scrollIntoView({block:"start",behavior:"smooth"}),this.$store.dispatch("SetSearchQuery","")}},methods:{onSubmit:function(){var t=this;return s()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("SubmitChanges");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:u.a.t("settings.success")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},Ni=(i("+qaP"),Object(g.a)(Vi,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?t._e():i("div",{staticClass:"form-container",class:t.isSidebarOpen},[t.loading?t._e():i("el-form",{attrs:{model:t.vapidDetailsData,"label-position":t.labelPosition,"label-width":t.labelWidth}},[i("setting",{attrs:{"setting-group":t.vapidDetails,data:t.vapidDetailsData}})],1),t._v(" "),i("div",{staticClass:"submit-button-container"},[i("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v(t._s(t.$t("settings.submit")))])],1)],1)},[],!1,null,null,null));Ni.options.__file="WebPush.vue";var qi=Ni.exports,zi={components:{ActivityPub:At,Authentication:Vt,Captcha:Bt,Emoji:he,Esshd:ve,Frontend:Ce,Gopher:Fe,Http:We,Instance:Ne,JobQueue:He,LinkFormatter:ti,Logger:ai,Mailer:ui,MediaProxy:mi,Metadata:ki,Mrf:wi,Other:xi,RateLimiters:Li,RebootButton:i("rIUS").a,Upload:Gi,WebPush:qi},data:function(){return{searchQuery:""}},computed:{componentName:function(){return this.$route.path.split("/settings/").pop()},configDisabled:function(){return this.$store.state.settings.configDisabled},isDesktop:function(){return"desktop"===this.$store.state.app.device},isMobile:function(){return"mobile"===this.$store.state.app.device},isSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"header-sidebar-opened":"header-sidebar-closed"},isTablet:function(){return"tablet"===this.$store.state.app.device},rebootIsSidebarOpen:function(){return this.$store.state.app.sidebar.opened?"reboot-sidebar-opened":"reboot-sidebar-closed"},searchData:function(){return this.$store.state.settings.searchData},tabs:function(){return function(t){return{"activity-pub":{label:"settings.activityPub",settings:[":activitypub",":user"]},authentication:{label:"settings.auth",settings:[":auth",":ldap",":oauth2","Pleroma.Web.Auth.Authenticator"]},esshd:{label:"settings.esshd",settings:[":esshd"]},captcha:{label:"settings.captcha",settings:["Pleroma.Captcha","Pleroma.Captcha.Kocaptcha"]},emoji:{label:"settings.emoji",settings:[":emoji"]},frontend:{label:"settings.frontend",settings:[":assets",":chat",":frontends",":emoji",":frontend_configurations",":markup",":static_fe","Pleroma.Web.Preload"]},gopher:{label:"settings.gopher",settings:[":gopher"]},http:{label:"settings.http",settings:[":cors_plug",":http",":http_security",":web_cache_ttl"]},instance:{label:"settings.instance",settings:[":admin_token",":instance",":instance_panel",":instances_favicons",":welcome",":manifest","Pleroma.User","Pleroma.ScheduledActivity",":uri_schemes",":feed",":streamer",":restrict_unauthenticated"]},"job-queue":{label:"settings.jobQueue",settings:["Pleroma.Workers.PurgeExpiredActivity",":connections_pool",":hackney_pools","Oban",":pools",":workers"]},"link-formatter":{label:"settings.linkFormatter",settings:["Pleroma.Formatter"]},logger:{label:"settings.logger",settings:[":console",":ex_syslogger",":quack",":logger"]},mailer:{label:"settings.mailer",settings:[":email_notifications","Pleroma.Emails.Mailer","Pleroma.Emails.UserEmail",":swoosh","Pleroma.Emails.NewUsersDigestEmail"]},"media-proxy":{label:"settings.mediaProxy",settings:[":media_proxy",":media_preview_proxy","Pleroma.Web.MediaProxy.Invalidation.Http","Pleroma.Web.MediaProxy.Invalidation.Script"]},metadata:{label:"settings.metadata",settings:["Pleroma.Web.Metadata",":rich_media"]},mrf:{label:"settings.mrf",settings:t.filter(function(t){return"mrf"===t.tab}).map(function(t){return t.key})},"rate-limiters":{label:"settings.rateLimiters",settings:[":rate_limit"]},"web-push":{label:"settings.webPush",settings:[":vapid_details"]},upload:{label:"settings.upload",settings:["Pleroma.Upload.Filter.AnonymizeFilename","Pleroma.Upload.Filter.Mogrify","Pleroma.Uploaders.S3","Pleroma.Uploaders.Local","Pleroma.Upload",":s3"]},other:{label:"settings.other",settings:[":mime","Pleroma.User.Backup","Pleroma.Web.Plugs.RemoteIp","Pleroma.Web.Endpoint.MetricsExporter",":modules","Pleroma.Web.ApiSpec.CastAndValidate",":terms_of_services"]}}}(this.$store.state.settings.description)}},mounted:function(){this.$store.dispatch("GetNodeInfo"),this.$store.dispatch("NeedReboot"),this.$store.dispatch("FetchSettings")},methods:{handleSearchSelect:function(t){var e=this;this.$store.dispatch("SetSearchQuery",t.key);var i=Object.keys(this.tabs).find(function(i){return e.tabs[i].settings.includes(":pleroma"===t.group?t.key:t.group)});this.$router.currentRoute.path==="/settings/".concat(i)?this.scrollTo(t.key):i&&this.$router.push({path:"/settings/".concat(i)})},scrollTo:function(t){var e=document.querySelector('[data-search="'.concat(t,'"]'));e&&e.scrollIntoView({block:"start",behavior:"smooth"})},querySearch:function(t,e){e(this.searchData.filter(function(e){return e.search.find(function(e){return e.includes(t.toLowerCase())})}).map(function(t){return{value:"".concat(t.label," in ").concat(t.groupLabel),group:t.groupKey,key:t.key}}))},settingsCantBeChanged:function(t){var e=this;return 0===t.filter(function(t){return[":esshd",":cors_plug",":quack",":logger",":swoosh",":mime"].includes(t)?-1!==e.$store.state.settings.description.findIndex(function(e){return e.group===t}):"Pleroma.Web.Auth.Authenticator"===t||":admin_token"===t?-1!==e.$store.state.settings.description.findIndex(function(e){return e.children[0].key===t}):-1!==e.$store.state.settings.description.findIndex(function(e){return e.key===t})}).length}}},Ki=(i("8Ewe"),Object(g.a)(zi,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"settings-container",class:t.rebootIsSidebarOpen},[i("div",{staticClass:"reboot-button-container"},[i("reboot-button")],1),t._v(" "),t.isDesktop?i("div",[i("div",{class:t.isSidebarOpen},[i("h1",{staticClass:"settings-header"},[t._v(t._s(t.$t("settings.settings")))]),t._v(" "),i("div",{staticClass:"docs-search-container"},[i("el-link",{attrs:{underline:!1,href:"https://docs-develop.pleroma.social/backend/administration/CLI_tasks/config/",target:"_blank"}},[i("el-button",{staticClass:"settings-docs-button"},[i("span",[i("i",{staticClass:"el-icon-document"}),t._v("\n              "+t._s(t.$t("settings.seeDocs"))+"\n            ")])])],1),t._v(" "),i("el-autocomplete",{staticClass:"settings-search-input",attrs:{"fetch-suggestions":t.querySearch,"trigger-on-focus":!1,clearable:"",placeholder:"Search","prefix-icon":"el-icon-search"},on:{select:t.handleSearchSelect},model:{value:t.searchQuery,callback:function(e){t.searchQuery=e},expression:"searchQuery"}})],1)]),t._v(" "),i(t.componentName,{tag:"component"})],1):t._e(),t._v(" "),t.isMobile||t.isTablet?i("div",[i("div",{staticClass:"settings-header-container",class:t.isSidebarOpen},[i("h1",{staticClass:"settings-header"},[t._v(t._s(t.$t("settings.settings")))]),t._v(" "),i("el-link",{attrs:{underline:!1,href:"https://docs-develop.pleroma.social/backend/administration/CLI_tasks/config/",target:"_blank"}},[i("el-button",{staticClass:"settings-docs-button"},[i("span",[i("i",{staticClass:"el-icon-document"}),t._v("\n            "+t._s(t.$t("settings.seeDocs"))+"\n          ")])])],1)],1),t._v(" "),i("div",{staticClass:"settings-search-container"},[i("el-autocomplete",{staticClass:"settings-search-input",attrs:{"fetch-suggestions":t.querySearch,"trigger-on-focus":!1,clearable:"",placeholder:"Search","prefix-icon":"el-icon-search"},on:{select:t.handleSearchSelect},model:{value:t.searchQuery,callback:function(e){t.searchQuery=e},expression:"searchQuery"}})],1),t._v(" "),i(t.componentName,{tag:"component"})],1):t._e()])},[],!1,null,"529107ef",null));Ki.options.__file="index.vue";e.default=Ki.exports},ZCLH:function(t,e,i){},"a+Pk":function(t,e,i){"use strict";var n=i("/1q2");i.n(n).a},apN7:function(t,e,i){"use strict";var n=i("9p49");i.n(n).a},dXnW:function(t,e,i){},e0P1:function(t,e,i){"use strict";var n=i("TudB");i.n(n).a},gFOO:function(t,e,i){"use strict";var n=i("jqM2");i.n(n).a},h9z7:function(t,e,i){"use strict";var n=i("TOIk");i.n(n).a},hVXW:function(t,e,i){"use strict";var n=i("uswN");i.n(n).a},ikkv:function(t,e,i){"use strict";var n=i("ZCLH");i.n(n).a},irif:function(t,e,i){"use strict";var n=i("UtFC");i.n(n).a},jqM2:function(t,e,i){},lNpP:function(t,e,i){"use strict";var n=i("UbP/");i.n(n).a},ld6V:function(t,e,i){},mADP:function(t,e,i){"use strict";var n=i("qLeA");i.n(n).a},mGnP:function(t,e,i){"use strict";var n=i("smg2");i.n(n).a},mSK5:function(t,e,i){},nKzF:function(t,e,i){"use strict";var n=i("77pt");i.n(n).a},"ncj/":function(t,e,i){},pPJ2:function(t,e,i){},pnah:function(t,e,i){"use strict";var n=i("JqY8");i.n(n).a},pt4P:function(t,e,i){"use strict";var n=i("/Pdy");i.n(n).a},qEST:function(t,e,i){"use strict";var n=i("4NUT");i.n(n).a},qLeA:function(t,e,i){},rIUS:function(t,e,i){"use strict";var n=i("yXPU"),s=i.n(n),a=i("o0o1"),r=i.n(a),o=i("mSNy"),c={name:"RebootButton",computed:{needReboot:function(){return this.$store.state.app.needReboot}},methods:{restartApp:function(){var t=this;return s()(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("RestartApplication");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:o.a.t("settings.restartSuccess")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},l=i("KHd+"),u=Object(l.a)(c,function(){var t=this.$createElement,e=this._self._c||t;return this.needReboot?e("el-tooltip",{attrs:{content:this.$t("settings.restartApp"),placement:"bottom-end"}},[e("el-button",{staticClass:"reboot-button",attrs:{type:"warning"},on:{click:this.restartApp}},[e("span",[e("i",{staticClass:"el-icon-refresh"}),this._v("\n      "+this._s(this.$t("settings.instanceReboot"))+"\n    ")])])],1):this._e()},[],!1,null,null,null);u.options.__file="index.vue";e.a=u.exports},rdar:function(t,e,i){"use strict";var n=i("NiUD");i.n(n).a},smg2:function(t,e,i){},"tag/":function(t,e,i){"use strict";var n=i("AbuJ");i.n(n).a},uswN:function(t,e,i){},vnTa:function(t,e,i){"use strict";var n=i("3YZA");i.n(n).a},w5cJ:function(t,e,i){"use strict";var n=i("PYLh");i.n(n).a},wgcy:function(t,e,i){},x6RV:function(t,e,i){},y7KD:function(t,e,i){"use strict";var n=i("YKHE");i.n(n).a},zzeU:function(t,e,i){"use strict";var n=i("EXm2");i.n(n).a}}]);
2 //# sourceMappingURL=chunk-33c9.cf3bdd1b.js.map