1 (window
.webpackJsonp
=window
.webpackJsonp
||[]).push([["chunk-0492"],{"+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
},"0FjT":function(t
,e
,i
){"use strict";var n
=i("dnRK");i
.n(n
).a
},"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
},"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
},"60OA":function(t
,e
,i
){},"6V7o":function(t
,e
,i
){},"77pt":function(t
,e
,i
){},"9Hof":function(t
,e
,i
){"use strict";var n
=i("ncj/");i
.n(n
).a
},"9p49":function(t
,e
,i
){},"9y8C":function(t
,e
,i
){"use strict";var n
=i("rKzx");i
.n(n
).a
},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
},"J7+w":function(t
,e
,i
){"use strict";var n
=i("fyIw");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
){},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("o0o1"),s
=i
.n(n
),a
=i("yXPU"),r
=i
.n(a
),o
=i("mSNy"),l
=i("lSNA"),u
=i
.n(l
),c
=i("L2JU"),p
=i("RIqP"),d
=i
.n(p
),g
=i("h74u");function b(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 h(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?b(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):b(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var f
={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":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":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
?u()({},t
,Object
.values(n
.data
[a
])[0]):u()({},Object
.keys(i
)[0],h(h({},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
?u()({},Object
.keys(e
)[0],h(h({},Object
.values(n
.data
[i
])[0]),{},{value:t
})):e
}),r
=a
.reduce(function(t
,e
){return h(h({},t
),{},u()({},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:r
,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(g
.e
)(t
,a
,e
,i
,this.parents
.reverse(),this.settings
,this.updatedSettings
),o
=r
.valueForState
,l
=r
.valueForUpdatedSettings
,u
=r
.setting
;this.$store
.dispatch("UpdateSettings",{group:e
,key:i
,input:u
.key
,value:l
,type:u
.type
}),this.$store
.dispatch("UpdateState",{group:e
,key:i
,input:u
.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 h(h({},t
),{},u()({},Object
.keys(e
)[0],Object
.values(e
)[0].value
))},{}):t
.reduce(function(t
,e
){return h(h({},t
),{},u()({},Object
.keys(e
)[0],["list",Object
.values(e
)[0].value
]))},{})}}},m
=(i("nKzF"),i("KHd+")),v
=Object(m
.a
)(f
,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);v
.options
.__file
="EditableKeywordInput.vue";var y
=v
.exports
,k
=i("zUJn"),_
=i("8j27"),O
={name:"EditorInput",components:{EditorContent:k
.b
,EditorMenuBar:k
.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 k
.a({extensions:[new _
.a
,new _
.b
,new _
.c
,new _
.d
,new _
.e({levels:[1,2,3]}),new _
.f
,new _
.g
,new _
.h
,new _
.i
,new _
.j
,new _
.k
,new _
.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 r()(s
.a
.mark(function e(){return s
.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
)}))()}}},P
=(i("3yoa"),Object(m
.a
)(O
,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));P
.options
.__file
="EditorInput.vue";var w
=P
.exports
;function S(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?S(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):S(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var D
={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
?j(j({},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 j(j({},t
),{},u()({},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
})}}},C
=(i("rdar"),Object(m
.a
)(D
,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("Add another `key - value` pair to this icon")])],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("Add another icon configuration")])],1)],2)},[],!1,null,null,null));C
.options
.__file
="IconsInput.vue";var x
=C
.exports
,$=i("LvDl"),U
=i
.n($),E
=i("9i3r"),I
=i("X4fA"),W
="/api/v1/media";var M=function(){return{Authorization:"Bearer ".concat(Object(I
.b
)())}};function A(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 T(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?A(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):A(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var G
={name:"ImageUploadInput",props:{inputValue:{type:[String
,Object
],default:function(){return{}}},setting:{type:Object
,default:function(){return{}}}},data:function(){return{loading:!1}},computed:T(T({},Object(c
.b
)(["authHost"])),{},{fullSize:function(){return!!U
.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
+U
.a
.get(this.setting
,"suggestions[0]")},baseName:function(){return Object(E
.a
)(this.authHost
)}}),methods:{imageUrl:function(t
){return U
.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(E
.a
)(i
)+W
;return fetch(n
,{body:e
,method:"POST",headers:M()}).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
)}}},L
=(i("zzeU"),Object(m
.a
)(G
,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));L
.options
.__file
="ImageUploadInput.vue";var F
=L
.exports
,R
={name:"LinkFormatterInput",props:{data:{type:[Object
,Array
],default:function(){return{}}},setting:{type:Object
,default:function(){return{}}},settingGroup:{type:Object
,default:function(){return{}}}},computed:{autoLinkerAtomValue: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
]},autoLinkerBooleanValue:function(){var t
=this.data
[this.setting
.key
];return"string"==typeof t
||"number"==typeof t
},autoLinkerIntegerValue:function(){return this.data
[this.setting
.key
]||0},autoLinkerStringValue:function(){return this.data
[this.setting
.key
]||""}},methods:{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
})}}},V
=(i("9y8C"),Object(m
.a
)(R
,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
.autoLinkerBooleanValue
},on:{change:function(e
){return t
.processTwoTypeValue(e
,t
.setting
.key
)}}}),t
._v(" "),t
.autoLinkerBooleanValue
?i("el-input",{attrs:{value:t
.autoLinkerStringValue
},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
.autoLinkerBooleanValue
},on:{change:function(e
){return t
.processTwoTypeValue(e
,t
.setting
.key
)}}}),t
._v(" "),t
.autoLinkerBooleanValue
?i("el-input-number",{attrs:{value:t
.autoLinkerIntegerValue
},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
.autoLinkerBooleanValue
},on:{change:function(e
){return t
.processTwoTypeValue(e
,t
.setting
.key
)}}}),t
._v(" "),t
.autoLinkerBooleanValue
?i("el-input",{attrs:{value:t
.autoLinkerAtomValue
},on:{input:function(e
){return t
.processTwoTypeValue(e
,t
.setting
.key
)}}},[i("template",{slot:"prepend"},[t
._v(":")])],2):t
._e()],1):t
._e()])},[],!1,null,null,null));V
.options
.__file
="LinkFormatterInput.vue";var K
=V
.exports
,z
=i("QILm"),q
=i
.n(z
),B
=i("J4zp"),N
=i
.n(B
);function Q(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 H(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?Q(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):Q(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var J
={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 N()(e
,1)[0][":url"]},getMimeType:function(t
){var e
=Object
.values(t
);return N()(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
?u()({},t
,Object
.values(n
.data
[a
])[0]):"url"===e
?u()({},Object
.keys(i
)[0],H(H({},Object
.values(n
.data
[a
])[0]),{},{":url":t
})):u()({},Object
.keys(i
)[0],H(H({},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
,["id"]));return H(H({},t
),{},u()({},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
})}}},Y
=(i("+2nY"),Object(m
.a
)(J
,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));Y
.options
.__file
="MascotsInput.vue";var X
=Y
.exports
;function Z(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 tt(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?Z(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):Z(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var et
={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
=tt(tt({},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(g
.e
)(t
,a
,e
,i
,this.parents
.reverse(),this.settings
,this.updatedSettings
),o
=r
.valueForState
,l
=r
.valueForUpdatedSettings
,u
=r
.setting
;this.$store
.dispatch("UpdateSettings",{group:e
,key:i
,input:u
.key
,value:l
,type:u
.type
}),this.$store
.dispatch("UpdateState",{group:e
,key:i
,input:u
.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
})}}},it
=(i("mGnP"),Object(m
.a
)(et
,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));it
.options
.__file
="ProxyUrlInput.vue";var nt
=it
.exports
,st
={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
)}}},at
=(i("Ezi3"),Object(m
.a
)(st
,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));at
.options
.__file
="PruneInput.vue";var rt
=at
.exports
,ot
={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(m
.a
)(ot
,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("Set different limits for unauthenticated and authenticated users")])],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 Unauthenticated users:\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 Authenticated users:\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("Set limit for all users")])],1)],1):t
._e()])},[],!1,null,null,null));lt
.options
.__file
="RateLimitInput.vue";var ut
=lt
.exports
,ct
={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
}))}}},pt
=(i("9Hof"),Object(m
.a
)(ct
,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));pt
.options
.__file
="RegInvitesInput.vue";var dt
=pt
.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(g
.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
})}}},bt
=(i("3IoU"),Object(m
.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));bt
.options
.__file
="SelectInputWithReducedLabels.vue";var ht
=bt
.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 mt(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
){u()(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 vt
={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
=mt(mt({},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(g
.e
)(t
,a
,e
,i
,this.parents
.reverse(),this.settings
,this.updatedSettings
),o
=r
.valueForState
,l
=r
.valueForUpdatedSettings
,u
=r
.setting
;this.$store
.dispatch("UpdateSettings",{group:e
,key:i
,input:u
.key
,value:l
,type:u
.type
}),this.$store
.dispatch("UpdateState",{group:e
,key:i
,input:u
.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
})}}},yt
=(i("OQQp"),Object(m
.a
)(vt
,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));yt
.options
.__file
="SenderInput.vue";var kt
=yt
.exports
,_t
={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(m
.a
)(_t
,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 Pt
=Ot
.exports
,wt
=i("4MG8"),St
=i
.n(wt
),jt
={name:"Inputs",components:{EditableKeywordInput:y
,IconsInput:x
,ImageUploadInput:F
,LinkFormatterInput:K
,MascotsInput:X
,ProxyUrlInput:nt
,PruneInput:rt
,RateLimitInput:ut
,RegInvitesInput:dt
,SelectInputWithReducedLabels:ht
,SenderInput:kt
,SpecificMultipleSelect:Pt
},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 U
.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(g
.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 r()(s
.a
.mark(function e(){return s
.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(r()(s
.a
.mark(function e(){var i
;return s
.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:o
.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
&&(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(g
.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(m
.a
)(jt
,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("link-formatter-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:"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
}},methods:{canBeDeleted:function(t
){var e
=this.settingGroup
,i
=e
.group
,n
=e
.key
||t
;return U
.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
)},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 r()(s
.a
.mark(function i(){return s
.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(r()(s
.a
.mark(function i(){var n
;return s
.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:o
.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:u()({},i
,t
)})}}},xt
=(i("pnah"),Object(m
.a
)(Ct
,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
},[i("inputs",{attrs:{"setting-group":t
.settingGroup
,setting:e
,data:t
.data
}})],1)}),t
._v(" "),t
._l(t
.emailAdapterChildren
,function(e
){return i("div",{key:e
.key
},[i("inputs",{attrs:{"setting-group":t
.settingGroup
,setting:e
,data:t
.data
}})],1)})],2):i("div",t
._l(t
.settingGroup
.children
,function(e
){return i("div",{key:e
.key
},[t
.compound(e
)?t
._e():i("div",[i("inputs",{attrs:{"setting-group":t
.settingGroup
,setting:e
,data:t
.data
,nested:!1}})],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",[i("inputs",{attrs:{"setting-group":t
.settingGroup
,setting:e
,data:t
.data
[e
.key
],nested:!0}})],1),t
._v(" "),t
.notLastInGroup(e
.key
)?i("el-divider",{staticClass:"divider"}):t
._e()],1):t
._e()])}),0)],1)},[],!1,null,null,null));xt
.options
.__file
="Setting.vue";var $t
=xt
.exports
;function Ut(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?Ut(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):Ut(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var It
={name:"ActivityPub",components:{Setting:$t
},computed:Et(Et({},Object(c
.b
)(["settings"])),{},{activitypub:function(){return this.settings
.description
.find(function(t
){return":activitypub"===t
.key
})},activitypubData:function(){return U
.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
},user:function(){return this.settings
.description
.find(function(t
){return":user"===t
.key
})},userData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":user"])||{}}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},Wt
=(i("qEST"),Object(m
.a
)(It
,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("Submit")])],1)],1)},[],!1,null,null,null));Wt
.options
.__file
="ActivityPub.vue";var Mt
=Wt
.exports
;function At(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 Tt(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?At(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):At(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var Gt
={name:"Authentication",components:{Setting:$t
},computed:Tt(Tt({},Object(c
.b
)(["settings"])),{},{auth:function(){return this.settings
.description
.find(function(t
){return":auth"===t
.key
})},authData:function(){return U
.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 U
.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 U
.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 U
.a
.get(this.settings
.settings
,[":pleroma","Pleroma.Web.Auth.Authenticator"])||{}}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},Lt
=(i("4b9x"),Object(m
.a
)(Gt
,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("Submit")])],1)],1)},[],!1,null,null,null));Lt
.options
.__file
="Authentication.vue";var Ft
=Lt
.exports
;function Rt(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?Rt(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):Rt(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var Kt
={name:"Captcha",components:{Setting:$t
},computed:Vt(Vt({},Object(c
.b
)(["settings"])),{},{captcha:function(){return this.settings
.description
.find(function(t
){return"Pleroma.Captcha"===t
.key
})},captchaData:function(){return U
.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 U
.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
}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},zt
=(i("2q6O"),Object(m
.a
)(Kt
,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("Submit")])],1)],1)},[],!1,null,null,null));zt
.options
.__file
="Captcha.vue";var qt
=zt
.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 Nt(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
){u()(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 Qt
={name:"Esshd",components:{Setting:$t
},computed:Nt(Nt({},Object(c
.b
)(["settings"])),{},{esshd:function(){return this.settings
.description
.find(function(t
){return":esshd"===t
.group
})},esshdData:function(){return U
.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
}}),methods:{toggleEsshd:function(t
){this.$store
.dispatch("ToggleEsshd",t
)},updateSetting:function(t
,e
,i
){this.$store
.dispatch("UpdateSettings",{tab:e
,data:u()({},i
,t
)})},onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},Ht
=(i("FCne"),Object(m
.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
.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("Submit")])],1)],1)},[],!1,null,null,null));Ht
.options
.__file
="Esshd.vue";var Jt
=Ht
.exports
;function Yt(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 Xt(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?Yt(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):Yt(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var Zt
={name:"Frontend",components:{Setting:$t
},computed:Xt(Xt({},Object(c
.b
)(["settings"])),{},{assets:function(){return this.settings
.description
.find(function(t
){return":assets"===t
.key
})},assetsData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":assets"])||{}},chat:function(){return this.settings
.description
.find(function(t
){return":chat"===t
.key
})},chatData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":chat"])||{}},emoji:function(){return this.settings
.description
.find(function(t
){return":emoji"===t
.key
})},emojiData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":emoji"])||{}},frontend:function(){return this.settings
.description
.find(function(t
){return":frontend_configurations"===t
.key
})},frontendData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":frontend_configurations"])||{}},frontends:function(){return this.settings
.description
.find(function(t
){return":frontends"===t
.key
})},frontendsData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":frontends"])||{}},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 U
.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 U
.a
.get(this.settings
.settings
,[":pleroma","Pleroma.Web.Preload"])||{}},staticFe:function(){return this.settings
.description
.find(function(t
){return":static_fe"===t
.key
})},staticFeData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":static_fe"])||{}}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},te
=(i("hVXW"),Object(m
.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
.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
.emojiData
,"label-position":t
.labelPosition
,"label-width":t
.labelWidth
}},[i("setting",{attrs:{"setting-group":t
.emoji
,data:t
.emojiData
}})],1),t
._v(" "),t
.emoji
?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("Submit")])],1)],1)},[],!1,null,null,null));te
.options
.__file
="Frontend.vue";var ee
=te
.exports
;function ie(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 ne(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?ie(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):ie(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var se
={name:"Gopher",components:{Setting:$t
},computed:ne(ne({},Object(c
.b
)(["settings"])),{},{gopher:function(){return this.settings
.description
.find(function(t
){return":gopher"===t
.key
})},gopherData:function(){return U
.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
}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},ae
=(i("w5cJ"),Object(m
.a
)(se
,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("Submit")])],1)],1)},[],!1,null,null,null));ae
.options
.__file
="Gopher.vue";var re
=ae
.exports
;function oe(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 le(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?oe(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):oe(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var ue
={name:"HTTP",components:{Setting:$t
},computed:le(le({},Object(c
.b
)(["settings"])),{},{corsPlug:function(){return this.settings
.description
.find(function(t
){return":cors_plug"===t
.group
})},corsPlugData:function(){return U
.a
.get(this.settings
.settings
,[":cors_plug"])||{}},fedSockets:function(){return this.settings
.description
.find(function(t
){return":fed_sockets"===t
.key
})},fedSocketsData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":fed_sockets"])||{}},http:function(){return this.settings
.description
.find(function(t
){return":http"===t
.key
})},httpData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":http"])||{}},httpSecurity:function(){return this.settings
.description
.find(function(t
){return":http_security"===t
.key
})},httpSecurityData:function(){return U
.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
},webCacheTtl:function(){return this.settings
.description
.find(function(t
){return":web_cache_ttl"===t
.key
})},webCacheTtlData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":web_cache_ttl"])||{}}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},ce
=(i("KFE3"),Object(m
.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
},[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
.httpSecurity
?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(" "),t
.fedSockets
?i("el-divider",{staticClass:"divider thick-line"}):t
._e(),t
._v(" "),i("el-form",{attrs:{model:t
.fedSocketsData
,"label-position":t
.labelPosition
,"label-width":t
.labelWidth
}},[i("setting",{attrs:{"setting-group":t
.fedSockets
,data:t
.fedSocketsData
}})],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,null,null,null));ce
.options
.__file
="Http.vue";var pe
=ce
.exports
;function de(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 ge(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?de(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):de(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var be
={name:"Instance",components:{EditorInput:w
,Setting:$t
},data:function(){return{editorContent:""}},computed:ge(ge({},Object(c
.b
)(["settings"])),{},{adminToken:function(){return this.settings
.description
.find(function(t
){return t
.children
&&":admin_token"===t
.children
[0].key
})},adminTokenData:function(){return U
.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 U
.a
.get(this.settings
.settings
,[":pleroma",":instances_favicons"])||{}},feed:function(){return this.settings
.description
.find(function(t
){return":feed"===t
.key
})},feedData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":feed"])||{}},instance:function(){return this.settings
.description
.find(function(t
){return":instance"===t
.key
})},instanceData:function(){return U
.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 U
.a
.get(this.settings
.settings
,[":pleroma",":manifest"])||{}},pleromaUser:function(){return this.settings
.description
.find(function(t
){return"Pleroma.User"===t
.key
})},pleromaUserData:function(){return U
.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 U
.a
.get(this.settings
.settings
,[":pleroma",":restrict_unauthenticated"])||{}},scheduledActivity:function(){return this.$store
.state
.settings
.description
.find(function(t
){return"Pleroma.ScheduledActivity"===t
.key
})},scheduledActivityData:function(){return U
.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 U
.a
.get(this.settings
.settings
,[":pleroma",":streamer"])||{}},uriSchemes:function(){return this.settings
.description
.find(function(t
){return":uri_schemes"===t
.key
})},uriSchemesData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":uri_schemes"])||{}},welcome:function(){return this.settings
.description
.find(function(t
){return":welcome"===t
.key
})},welcomeData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":welcome"])||{}}}),mounted:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.a
.wrap(function(e
){for(;;)switch(e
.prev
=e
.next
){case 0:return e
.next
=2,t
.$store
.dispatch("FetchInstanceDocument","instance-panel");case 2:case"end":return e
.stop()}},e
)}))()},methods:{handleEditorUpdate:function(t
){this.editorContent
=t
},onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 11:case"end":return e
.stop()}},e
,null,[[0,7]])}))()}}},he
=(i("e0P1"),Object(m
.a
)(be
,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("Submit")])],1)],1)},[],!1,null,null,null));he
.options
.__file
="Instance.vue";var fe
=he
.exports
;function me(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 ve(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?me(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):me(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var ye
={name:"JobQueue",components:{Setting:$t
},computed:ve(ve({},Object(c
.b
)(["settings"])),{},{activityExpiration:function(){return this.settings
.description
.find(function(t
){return"Pleroma.Workers.PurgeExpiredActivity"===t
.key
})},activityExpirationData:function(){return U
.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 U
.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 U
.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 U
.a
.get(this.settings
.settings
,[":pleroma","Oban"])||{}},pools:function(){return this.settings
.description
.find(function(t
){return":pools"===t
.key
})},poolsData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":pools"])||{}},workers:function(){return this.settings
.description
.find(function(t
){return":workers"===t
.key
})},workersData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":workers"])||{}}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},ke
=(i("lNpP"),Object(m
.a
)(ye
,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("Submit")])],1)],1)},[],!1,null,null,null));ke
.options
.__file
="JobQueue.vue";var _e
=ke
.exports
;function Oe(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?Oe(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):Oe(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var we
={name:"LinkFormatter",components:{Setting:$t
},computed:Pe(Pe({},Object(c
.b
)(["settings"])),{},{linkFormatter:function(){return this.settings
.description
.find(function(t
){return"Pleroma.Formatter"===t
.key
})},linkFormatterData:function(){return U
.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
}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},Se
=(i("vnTa"),Object(m
.a
)(we
,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("Submit")])],1)],1)},[],!1,null,null,null));Se
.options
.__file
="LinkFormatter.vue";var je
=Se
.exports
;function De(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 Ce(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?De(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):De(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var xe
={name:"Logger",components:{Setting:$t
},computed:Ce(Ce({},Object(c
.b
)(["settings"])),{},{console:function(){return this.settings
.description
.find(function(t
){return":console"===t
.key
})},consoleData:function(){return U
.a
.get(this.settings
.settings
,[":logger",":console"])||{}},exsyslogger:function(){return this.settings
.description
.find(function(t
){return":ex_syslogger"===t
.key
})},exsysloggerData:function(){return U
.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 U
.a
.get(this.settings
.settings
,[":logger",":backends"])||{}},quack:function(){return this.settings
.description
.find(function(t
){return":quack"===t
.group
})},quackData:function(){return U
.a
.get(this.settings
.settings
,[":quack"])||{}}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},$e
=(i("mADP"),Object(m
.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
.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("Submit")])],1)],1)},[],!1,null,null,null));$e
.options
.__file
="Logger.vue";var Ue
=$e
.exports
;function Ee(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 Ie(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?Ee(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):Ee(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var We
={name:"Mailer",components:{Setting:$t
},computed:Ie(Ie({},Object(c
.b
)(["settings"])),{},{emailNotifications:function(){return this.settings
.description
.find(function(t
){return":email_notifications"===t
.key
})},emailNotificationsData:function(){return U
.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 U
.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 U
.a
.get(this.settings
.settings
,[":pleroma","Pleroma.Emails.NewUsersDigestEmail"])||{}},swoosh:function(){return this.settings
.description
.find(function(t
){return":swoosh"===t
.group
})},swooshData:function(){return U
.a
.get(this.settings
.settings
,[":swoosh"])||{}},userEmail:function(){return this.settings
.description
.find(function(t
){return"Pleroma.Emails.UserEmail"===t
.key
})},userEmailData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma","Pleroma.Emails.UserEmail"])||{}}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},Me
=(i("PygS"),Object(m
.a
)(We
,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("Submit")])],1)],1)},[],!1,null,null,null));Me
.options
.__file
="Mailer.vue";var Ae
=Me
.exports
;function Te(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 Ge(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?Te(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):Te(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var Le
={name:"MediaProxy",components:{Setting:$t
},computed:Ge(Ge({},Object(c
.b
)(["settings"])),{},{httpInvalidation:function(){return this.settings
.description
.find(function(t
){return"Pleroma.Web.MediaProxy.Invalidation.Http"===t
.key
})},httpInvalidationData:function(){return U
.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 U
.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 U
.a
.get(this.settings
.settings
,[":pleroma",":media_proxy"])||{}},scriptInvalidation:function(){return this.settings
.description
.find(function(t
){return"Pleroma.Web.MediaProxy.Invalidation.Script"===t
.key
})},scriptInvalidationData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma","Pleroma.Web.MediaProxy.Invalidation.Script"])||{}}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},Fe
=(i("UdS4"),Object(m
.a
)(Le
,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("Submit")])],1)],1)},[],!1,null,null,null));Fe
.options
.__file
="MediaProxy.vue";var Re
=Fe
.exports
;function Ve(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 Ke(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?Ve(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):Ve(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var ze
={name:"Metadata",components:{Setting:$t
},computed:Ke(Ke({},Object(c
.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 U
.a
.get(this.settings
.settings
,[":pleroma","Pleroma.Web.Metadata"])||{}},richMedia:function(){return this.settings
.description
.find(function(t
){return":rich_media"===t
.key
})},richMediaData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":rich_media"])||{}}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},qe
=(i("apN7"),Object(m
.a
)(ze
,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("Submit")])],1)],1)},[],!1,null,null,null));qe
.options
.__file
="Metadata.vue";var Be
=qe
.exports
;function Ne(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?Ne(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):Ne(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var He
={name:"MRF",components:{Setting:$t
},computed:Qe(Qe({},Object(c
.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
})}}),methods:{getSettingData:function(t
){return U
.a
.get(this.settings
.settings
,[t
.group
,t
.key
])||{}},onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()},showMrfPolicy:function(t
){var e
=U
.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
])}}},Je
=(i("h9z7"),Object(m
.a
)(He
,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("Submit")])],1)],2)},[],!1,null,null,null));Je
.options
.__file
="MRF.vue";var Ye
=Je
.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 Ze(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
){u()(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 ti
={name:"Other",components:{EditorInput:w
,Setting:$t
},data:function(){return{termsOfServices:""}},computed:Ze(Ze({},Object(c
.b
)(["settings"])),{},{backup:function(){return this.settings
.description
.find(function(t
){return"Pleroma.User.Backup"===t
.key
})},backupData:function(){return U
.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 U
.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 U
.a
.get(this.settings
.settings
,[":mime"])||{}},modules:function(){return this.settings
.description
.find(function(t
){return":modules"===t
.key
})},modulesData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma",":modules"])||{}},remoteIp:function(){return this.settings
.description
.find(function(t
){return"Pleroma.Web.Plugs.RemoteIp"===t
.key
})},remoteIpData:function(){return U
.a
.get(this.settings
.settings
,[":pleroma","Pleroma.Web.Plugs.RemoteIp"])||{}},termsOfServicesContent:{get:function(){return this.$store
.state
.settings
.termsOfServices
},set:function(t
){this.termsOfServices
=t
}}}),mounted:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.a
.wrap(function(e
){for(;;)switch(e
.prev
=e
.next
){case 0:return e
.next
=2,t
.$store
.dispatch("FetchInstanceDocument","terms-of-service");case 2:case"end":return e
.stop()}},e
)}))()},methods:{handleEditorUpdate:function(t
){this.termsOfServices
=t
},onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 11:case"end":return e
.stop()}},e
,null,[[0,7]])}))()}}},ei
=(i("gFOO"),Object(m
.a
)(ti
,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
.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("Submit")])],1)],1)},[],!1,null,null,null));ei
.options
.__file
="Other.vue";var ii
=ei
.exports
;function ni(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 si(t
){for(var e
=1;e
<arguments
.length
;e
++){var i
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?ni(Object(i
),!0).forEach(function(e
){u()(t
,e
,i
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(i
)):ni(Object(i
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(i
,e
))})}return t
}var ai
={name:"RateLimiters",components:{Setting:$t
},computed:si(si({},Object(c
.b
)(["settings"])),{},{rateLimiters:function(){return this.settings
.description
.find(function(t
){return":rate_limit"===t
.key
})},rateLimitersData:function(){return U
.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
}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},ri
=(i("WvM+"),Object(m
.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
},[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("Submit")])],1)],1)},[],!1,null,null,null));ri
.options
.__file
="RateLimiters.vue";var oi
=ri
.exports
,li
={name:"Relays",data:function(){return{newRelay:""}},computed:{getLabelWidth:function(){return this.isDesktop
?"130px":"85px"},isDesktop:function(){return"desktop"===this.$store
.state
.app
.device
},loading:function(){return this.$store
.state
.relays
.loading
},relays:function(){return this.$store
.state
.relays
.fetchedRelays
}},mounted:function(){this.$store
.dispatch("FetchRelays")},methods:{followRelay:function(){this.$store
.dispatch("AddRelay",this.newRelay
),this.newRelay
=""},deleteRelay:function(t
){this.$store
.dispatch("DeleteRelay",t
)}}},ui
=(i("J7+w"),Object(m
.a
)(li
,function(){var t
=this,e
=t
.$createElement
,i
=t
._self
._c
||e
;return t
.loading
?t
._e():i("div",{staticClass:"relays-container"},[i("div",{staticClass:"follow-relay-container"},[i("el-input",{staticClass:"follow-relay",attrs:{placeholder:t
.$t("settings.followRelay")},nativeOn:{keyup:function(e
){return!e
.type
.indexOf("key")&&t
._k(e
.keyCode
,"enter",13,e
.key
,"Enter")?null:t
.followRelay(e
)}},model:{value:t
.newRelay
,callback:function(e
){t
.newRelay
=e
},expression:"newRelay"}}),t
._v(" "),i("el-button",{nativeOn:{click:function(e
){return t
.followRelay(e
)}}},[t
._v(t
._s(t
.$t("settings.follow")))])],1),t
._v(" "),i("el-table",{attrs:{data:t
.relays
}},[i("el-table-column",{attrs:{label:t
.$t("settings.instanceUrl"),prop:"actor"}}),t
._v(" "),i("el-table-column",{attrs:{label:t
.$t("settings.followedBack"),width:t
.getLabelWidth
,prop:"followed_back",align:"center"},scopedSlots:t
._u([{key:"default",fn:function(t
){return[i("i",{class:t
.row
.followed_back
?"el-icon-check":"el-icon-minus"})]}}],null,!1,237257305)}),t
._v(" "),i("el-table-column",{attrs:{label:t
.$t("table.actions"),width:t
.getLabelWidth
,fixed:"right",align:"center"},scopedSlots:t
._u([{key:"default",fn:function(e
){return[i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i
){return t
.deleteRelay(e
.row
.actor
)}}},[t
._v("\n "+t
._s(t
.$t("table.unfollow"))+"\n ")])]}}],null,!1,877363589)})],1)],1)},[],!1,null,null,null));ui
.options
.__file
="Relays.vue";var ci
=ui
.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
){u()(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 gi
={name:"Upload",components:{Setting:$t
},computed:di(di({},Object(c
.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 U
.a
.get(this.settings
.settings
,[":ex_aws",":s3"])||{}},showUploadersS3:function(){return"Pleroma.Uploaders.S3"===U
.a
.get(this.settings
.settings
,[":pleroma","Pleroma.Upload",":uploader"])},showUploadersLocal:function(){return"Pleroma.Uploaders.Local"===U
.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 U
.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 U
.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 U
.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 U
.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 U
.a
.get(this.settings
.settings
,[":pleroma","Pleroma.Upload.Filter.AnonymizeFilename"])||{}}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},bi
=(i("DPt0"),Object(m
.a
)(gi
,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("Submit")])],1)],1)},[],!1,null,null,null));bi
.options
.__file
="Upload.vue";var hi
=bi
.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 mi(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
){u()(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:"WebPush",components:{Setting:$t
},computed:mi(mi({},Object(c
.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
},vapidDetails:function(){return this.settings
.description
.find(function(t
){return":vapid_details"===t
.key
})},vapidDetailsData:function(){return U
.a
.get(this.settings
.settings
,[":web_push_encryption",":vapid_details"])||{}}}),methods:{onSubmit:function(){var t
=this;return r()(s
.a
.mark(function e(){return s
.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:o
.a
.t("settings.success")});case 9:case"end":return e
.stop()}},e
,null,[[0,5]])}))()}}},yi
=(i("+qaP"),Object(m
.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("Submit")])],1)],1)},[],!1,null,null,null));yi
.options
.__file
="WebPush.vue";var ki
=yi
.exports
,_i
={components:{ActivityPub:Mt
,Authentication:Ft
,Captcha:qt
,Esshd:Jt
,Frontend:ee
,Gopher:re
,Http:pe
,Instance:fe
,JobQueue:_e
,LinkFormatter:je
,Logger:Ue
,Mailer:Ae
,MediaProxy:Re
,Metadata:Be
,Mrf:Ye
,Other:ii
,RateLimiters:oi
,Relays:ci
,RebootButton:i("rIUS").a
,Upload:hi
,WebPush:ki
},data:function(){return{options:[{value:"activityPub",label:o
.a
.t("settings.activityPub")},{value:"auth",label:o
.a
.t("settings.auth")},{value:"linkFormatter",label:o
.a
.t("settings.linkFormatter")},{value:"esshd",label:o
.a
.t("settings.esshd")},{value:"captcha",label:o
.a
.t("settings.captcha")},{value:"frontend",label:o
.a
.t("settings.frontend")},{value:"gopher",label:o
.a
.t("settings.gopher")},{value:"http",label:o
.a
.t("settings.http")},{value:"instance",label:o
.a
.t("settings.instance")},{value:"jobQueue",label:o
.a
.t("settings.jobQueue")},{value:"logger",label:o
.a
.t("settings.logger")},{value:"mailer",label:o
.a
.t("settings.mailer")},{value:"mediaProxy",label:o
.a
.t("settings.mediaProxy")},{value:"metadata",label:o
.a
.t("settings.metadata")},{value:"mrf",label:o
.a
.t("settings.mrf")},{value:"rateLimiters",label:o
.a
.t("settings.rateLimiters")},{value:"relays",label:o
.a
.t("settings.relays")},{value:"webPush",label:o
.a
.t("settings.webPush")},{value:"upload",label:o
.a
.t("settings.upload")},{value:"other",label:o
.a
.t("settings.other")}],searchQuery:""}},computed:{activeTab:{get:function(){return this.$store
.state
.settings
.activeTab
},set:function(t
){this.$store
.dispatch("SetActiveTab",t
)}},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"]},frontend:{label:"settings.frontend",settings:[":assets",":chat",":frontends",":emoji",":frontend_configurations",":markup",":static_fe"]},gopher:{label:"settings.gopher",settings:[":gopher"]},http:{label:"settings.http",settings:[":cors_plug",":http",":fed_sockets",":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"]},relays:{label:"settings.relays",settings:["relays"]},"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",":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;return r()(s
.a
.mark(function i(){var n
,a
;return s
.a
.wrap(function(i
){for(;;)switch(i
.prev
=i
.next
){case 0:return n
=Object
.keys(e
.tabs
).find(function(i
){return e
.tabs
[i
].settings
.includes(":pleroma"===t
.group
?t
.key:t
.group
)}),i
.next
=3,e
.$store
.dispatch("SetActiveTab",n
);case 3:(a
=document
.querySelector('[data-search="'.concat(t
.key
,'"]')))&&a
.scrollIntoView({block:"start",behavior:"smooth"});case 5:case"end":return i
.stop()}},i
)}))()},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
}):"relays"===t
?[t
]:-1!==e
.$store
.state
.settings
.description
.findIndex(function(e
){return e
.key
===t
})}).length
}}},Oi
=(i("0FjT"),Object(m
.a
)(_i
,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",{staticClass:"settings-header-container",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("el-tabs",{attrs:{"tab-position":"left"},model:{value:t
.activeTab
,callback:function(e
){t
.activeTab
=e
},expression:"activeTab"}},t
._l(t
.tabs
,function(e
,n
){return i("el-tab-pane",{key:n
,attrs:{label:t
.$t(e
.label
),disabled:t
.configDisabled
||t
.settingsCantBeChanged(e
.settings
),name:n
,lazy:""}},[i(n
,{tag:"component"})],1)}),1)],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("div",{staticClass:"nav-container"},[i("el-select",{staticClass:"settings-menu",attrs:{placeholder:"Select"},model:{value:t
.activeTab
,callback:function(e
){t
.activeTab
=e
},expression:"activeTab"}},t
._l(t
.options
,function(e
){return i("el-option",{key:e
.value
,attrs:{label:e
.label
,value:e
.value
,disabled:t
.configDisabled
}})}),1),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-input-container"}),t
._v(" "),"activityPub"===t
.activeTab
?i("activity-pub"):t
._e(),t
._v(" "),"auth"===t
.activeTab
?i("authentication"):t
._e(),t
._v(" "),"linkFormatter"===t
.activeTab
?i("link-formatter"):t
._e(),t
._v(" "),"esshd"===t
.activeTab
?i("esshd"):t
._e(),t
._v(" "),"captcha"===t
.activeTab
?i("captcha"):t
._e(),t
._v(" "),"frontend"===t
.activeTab
?i("frontend"):t
._e(),t
._v(" "),"gopher"===t
.activeTab
?i("gopher"):t
._e(),t
._v(" "),"http"===t
.activeTab
?i("http"):t
._e(),t
._v(" "),"instance"===t
.activeTab
?i("instance"):t
._e(),t
._v(" "),"jobQueue"===t
.activeTab
?i("job-queue"):t
._e(),t
._v(" "),"logger"===t
.activeTab
?i("logger"):t
._e(),t
._v(" "),"mailer"===t
.activeTab
?i("mailer"):t
._e(),t
._v(" "),"mediaProxy"===t
.activeTab
?i("media-proxy"):t
._e(),t
._v(" "),"metadata"===t
.activeTab
?i("metadata"):t
._e(),t
._v(" "),"mrf"===t
.activeTab
?i("mrf"):t
._e(),t
._v(" "),"rateLimiters"===t
.activeTab
?i("rate-limiters"):t
._e(),t
._v(" "),"relays"===t
.activeTab
?i("relays"):t
._e(),t
._v(" "),"webPush"===t
.activeTab
?i("web-push"):t
._e(),t
._v(" "),"upload"===t
.activeTab
?i("upload"):t
._e(),t
._v(" "),"other"===t
.activeTab
?i("other"):t
._e()],1):t
._e()])},[],!1,null,"82f78b3e",null));Oi
.options
.__file
="index.vue";e
.default=Oi
.exports
},apN7:function(t
,e
,i
){"use strict";var n
=i("9p49");i
.n(n
).a
},dnRK:function(t
,e
,i
){},e0P1:function(t
,e
,i
){"use strict";var n
=i("TudB");i
.n(n
).a
},fyIw:function(t
,e
,i
){},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
},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
},qEST:function(t
,e
,i
){"use strict";var n
=i("4NUT");i
.n(n
).a
},qLeA:function(t
,e
,i
){},rKzx:function(t
,e
,i
){},rdar:function(t
,e
,i
){"use strict";var n
=i("NiUD");i
.n(n
).a
},smg2:function(t
,e
,i
){},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
}}]);