pleroma/priv/static/static/js/9060.24271e167e0471a1a732.js

2 lines
15 KiB
JavaScript
Raw Normal View History

2023-10-29 12:59:03 -04:00
"use strict";(self.webpackChunkpleroma_fe=self.webpackChunkpleroma_fe||[]).push([[9060],{7761:(t,e,r)=>{r.d(e,{Z:()=>P});var n=r(93433),i=r(50361),a=r.n(i),o=r(36968),s=r.n(o),c=r(27361),u=r.n(c),l=r(66252),d=r(3577),p={key:0,class:"ModifiedIndicator"},f={class:"modified-tooltip"},h=r(84535),g=r(9382),m=r(84131);g.vI.add(m.klh);const b={components:{Popover:h.default},props:["changed"]};var v=r(83744);const D=(0,v.Z)(b,[["render",function(t,e,r,n,i,a){var o=(0,l.up)("FAIcon"),s=(0,l.up)("Popover");return r.changed?((0,l.wg)(),(0,l.iD)("span",p,[(0,l.Wm)(s,{trigger:"hover","trigger-attrs":{"aria-label":t.$t("settings.setting_changed")}},{trigger:(0,l.w5)((function(){return[(0,l.Uk)("   "),(0,l.Wm)(o,{icon:"wrench"})]})),content:(0,l.w5)((function(){return[(0,l._)("div",f,(0,d.zw)(t.$t("settings.setting_changed")),1)]})),_:1},8,["trigger-attrs"])])):(0,l.kq)("",!0)}]]);var k=r(29376),w={class:"DraftButtons"},y={class:"modified-tooltip"},S={class:"modified-tooltip"},O={class:"modified-tooltip"};g.vI.add(m.klh);const _={components:{Popover:h.default},props:["changed"]},P={components:{ModifiedIndicator:D,DraftButtons:(0,v.Z)(_,[["render",function(t,e,r,n,i,a){var o=(0,l.up)("Popover");return(0,l.wg)(),(0,l.iD)("span",w,[t.$parent.isDirty?((0,l.wg)(),(0,l.j4)(o,{key:0,trigger:"hover","normal-button":"","trigger-attrs":{"aria-label":t.$t("settings.commit_value_tooltip")},onClick:t.$parent.commitDraft},{trigger:(0,l.w5)((function(){return[(0,l.Uk)((0,d.zw)(t.$t("settings.commit_value")),1)]})),content:(0,l.w5)((function(){return[(0,l._)("div",y,(0,d.zw)(t.$t("settings.commit_value_tooltip")),1)]})),_:1},8,["trigger-attrs","onClick"])):(0,l.kq)("",!0),t.$parent.isDirty?((0,l.wg)(),(0,l.j4)(o,{key:1,trigger:"hover","normal-button":"","trigger-attrs":{"aria-label":t.$t("settings.reset_value_tooltip")},onClick:t.$parent.reset},{trigger:(0,l.w5)((function(){return[(0,l.Uk)((0,d.zw)(t.$t("settings.reset_value")),1)]})),content:(0,l.w5)((function(){return[(0,l._)("div",S,(0,d.zw)(t.$t("settings.reset_value_tooltip")),1)]})),_:1},8,["trigger-attrs","onClick"])):(0,l.kq)("",!0),t.$parent.canHardReset?((0,l.wg)(),(0,l.j4)(o,{key:2,trigger:"hover","normal-button":"","trigger-attrs":{"aria-label":t.$t("settings.hard_reset_value_tooltip")},onClick:t.$parent.hardReset},{trigger:(0,l.w5)((function(){return[(0,l.Uk)((0,d.zw)(t.$t("settings.hard_reset_value")),1)]})),content:(0,l.w5)((function(){return[(0,l._)("div",O,(0,d.zw)(t.$t("settings.hard_reset_value_tooltip")),1)]})),_:1},8,["trigger-attrs","onClick"])):(0,l.kq)("",!0)])}]]),ProfileSettingIndicator:k.Z},props:{path:{type:[String,Array],required:!0},disabled:{type:Boolean,default:!1},parentPath:{type:[String,Array]},parentInvert:{type:Boolean,default:!1},expert:{type:[Number,String],default:0},source:{type:String,default:void 0},hideDescription:{type:Boolean},swapDescriptionAndLabel:{type:Boolean},overrideBackendDescription:{type:Boolean},overrideBackendDescriptionLabel:{type:Boolean},draftMode:{type:Boolean,default:void 0}},inject:{defaultSource:{default:"default"},defaultDraftMode:{default:!1}},data:function(){return{localDraft:null}},created:function(){this.realDraftMode&&"admin"!==this.realSource&&(this.draft=this.state)},computed:{draft:{get:function(){return"admin"===this.realSource?u()(this.$store.state.adminSettings.draft,this.canonPath):this.localDraft},set:function(t){"admin"===this.realSource?this.$store.commit("updateAdminDraft",{path:this.canonPath,value:t}):this.localDraft=t}},state:function(){var t=u()(this.configSource,this.canonPath);return void 0===t?this.defaultState:t},visibleState:function(){return this.realDraftMode?this.draft:this.state},realSource:function(){return this.source||this.defaultSource},realDraftMode:function(){return void 0===this.draftMode?this.defaultDraftMode:this.draftMode},backendDescription:function(){return u()(this.$store.state.adminSettings.descriptions,this.path)},backendDescriptionLabel:function(){return"admin"!==this.realSource?"":!this.backendDescription||this.overrideBackendDescriptionLabel?this.$t(["admin_dash","temp_overrides"].concat(
//# sourceMappingURL=9060.24271e167e0471a1a732.js.map