1 (window
.webpackJsonp
=window
.webpackJsonp
||[]).push([[2],{591:function(t
,e
,s
){var a
=s(592);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("a45e17ec",a
,!0,{})},592:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".settings_tab-switcher{height:100%}.settings_tab-switcher .setting-item{border-bottom:2px solid var(--fg,#182230);margin:1em 1em 1.4em;padding-bottom:1.4em}.settings_tab-switcher .setting-item>div{margin-bottom:.5em}.settings_tab-switcher .setting-item>div:last-child{margin-bottom:0}.settings_tab-switcher .setting-item:last-child{border-bottom:none;padding-bottom:0;margin-bottom:1em}.settings_tab-switcher .setting-item select{min-width:10em}.settings_tab-switcher .setting-item textarea{width:100%;max-width:100%;height:100px}.settings_tab-switcher .setting-item .unavailable,.settings_tab-switcher .setting-item .unavailable i{color:var(--cRed,red);color:red}.settings_tab-switcher .setting-item .number-input{max-width:6em}",""])},593:function(t
,e
,s
){var a
=s(594);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("5bed876c",a
,!0,{})},594:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".importer-uploading{font-size:1.5em;margin:.25em}",""])},595:function(t
,e
,s
){var a
=s(596);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("432fc7c6",a
,!0,{})},596:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".exporter-processing{font-size:1.5em;margin:.25em}",""])},597:function(t
,e
,s
){var a
=s(598);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("33ca0d90",a
,!0,{})},598:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".mutes-and-blocks-tab{height:100%}.mutes-and-blocks-tab .usersearch-wrapper{padding:1em}.mutes-and-blocks-tab .bulk-actions{text-align:right;padding:0 1em;min-height:28px}.mutes-and-blocks-tab .bulk-action-button{width:10em}.mutes-and-blocks-tab .domain-mute-form{padding:1em;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.mutes-and-blocks-tab .domain-mute-button{-ms-flex-item-align:end;align-self:flex-end;margin-top:1em;width:10em}",""])},599:function(t
,e
,s
){var a
=s(600);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("3a9ec1bf",a
,!0,{})},600:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".autosuggest{position:relative}.autosuggest-input{display:block;width:100%}.autosuggest-results{position:absolute;left:0;top:100%;right:0;max-height:400px;background-color:#121a24;background-color:var(--bg,#121a24);border-color:#222;border:1px solid var(--border,#222);border-radius:4px;border-radius:var(--inputRadius,4px);border-top-left-radius:0;border-top-right-radius:0;box-shadow:1px 1px 4px rgba(0,0,0,.6);box-shadow:var(--panelShadow);overflow-y:auto;z-index:1}",""])},601:function(t
,e
,s
){var a
=s(602);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("211aa67c",a
,!0,{})},602:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".block-card-content-container{margin-top:.5em;text-align:right}.block-card-content-container button{width:10em}",""])},603:function(t
,e
,s
){var a
=s(604);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("7ea980e0",a
,!0,{})},604:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".mute-card-content-container{margin-top:.5em;text-align:right}.mute-card-content-container button{width:10em}",""])},605:function(t
,e
,s
){var a
=s(606);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("39a942c3",a
,!0,{})},606:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".domain-mute-card{-ms-flex:1 0;flex:1 0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding:.6em 1em .6em 0}.domain-mute-card-domain{margin-right:1em;overflow:hidden;text-overflow:ellipsis}.domain-mute-card button{width:10em}.autosuggest-results .domain-mute-card{padding-left:1em}",""])},607:function(t
,e
,s
){var a
=s(608);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("3724291e",a
,!0,{})},608:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".selectable-list-item-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.selectable-list-item-inner>*{min-width:0}.selectable-list-item-selected-inner{background-color:#151e2a;background-color:var(--selectedMenu,#151e2a);color:var(--selectedMenuText,#b9b9ba);--faint:var(--selectedMenuFaintText,$fallback--faint);--faintLink:var(--selectedMenuFaintLink,$fallback--faint);--lightText:var(--selectedMenuLightText,$fallback--lightText);--icon:var(--selectedMenuIcon,$fallback--icon)}.selectable-list-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:.6em 0;border-bottom:2px solid;border-bottom-color:#222;border-bottom-color:var(--border,#222)}.selectable-list-header-actions{-ms-flex:1;flex:1}.selectable-list-checkbox-wrapper{padding:0 10px;-ms-flex:none;flex:none}",""])},609:function(t
,e
,s
){},613:function(t
,e
,s
){var a
=s(614);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("a588473e",a
,!0,{})},614:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".mfa-settings .method-item,.mfa-settings .mfa-heading{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:baseline;align-items:baseline}.mfa-settings .warning{color:orange;color:var(--cOrange,orange)}.mfa-settings .setup-otp{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.mfa-settings .setup-otp .qr-code{-ms-flex:1;flex:1;padding-right:10px}.mfa-settings .setup-otp .verify{-ms-flex:1;flex:1}.mfa-settings .setup-otp .error{margin:4px 0 0}.mfa-settings .setup-otp .confirm-otp-actions button{width:15em;margin-top:5px}",""])},615:function(t
,e
,s
){var a
=s(616);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("4065bf15",a
,!0,{})},616:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".mfa-backup-codes .warning{color:orange;color:var(--cOrange,orange)}.mfa-backup-codes .backup-codes{font-family:var(--postCodeFont,monospace)}",""])},618:function(t
,e
,s
){var a
=s(619);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("27925ae8",a
,!0,{})},619:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".profile-tab .bio{margin:0}.profile-tab .visibility-tray{padding-top:5px}.profile-tab input[type=file]{padding:5px;height:auto}.profile-tab .banner-background-preview{max-width:100%;width:300px;position:relative}.profile-tab .banner-background-preview img{width:100%}.profile-tab .uploading{font-size:1.5em;margin:.25em}.profile-tab .name-changer{width:100%}.profile-tab .current-avatar-container{position:relative;width:150px;height:150px}.profile-tab .current-avatar{display:block;width:100%;height:100%;border-radius:4px;border-radius:var(--avatarRadius,4px)}.profile-tab .reset-button{position:absolute;top:.2em;right:.2em;border-radius:5px;border-radius:var(--tooltipRadius,5px);background-color:rgba(0,0,0,.6);opacity:.7;color:#fff;width:1.5em;height:1.5em;text-align:center;line-height:1.5em;font-size:1.5em;cursor:pointer}.profile-tab .reset-button:hover{opacity:1}.profile-tab .oauth-tokens{width:100%}.profile-tab .oauth-tokens th{text-align:left}.profile-tab .oauth-tokens .actions{text-align:right}.profile-tab-usersearch-wrapper{padding:1em}.profile-tab-bulk-actions{text-align:right;padding:0 1em;min-height:28px}.profile-tab-bulk-actions button{width:10em}.profile-tab-domain-mute-form{padding:1em;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profile-tab-domain-mute-form button{-ms-flex-item-align:end;align-self:flex-end;margin-top:1em;width:10em}.profile-tab .setting-subitem{margin-left:1.75em}.profile-tab .profile-fields{display:-ms-flexbox;display:flex}.profile-tab .profile-fields>.emoji-input{-ms-flex:1 1 auto;flex:1 1 auto;margin:0 .2em .5em;min-width:0}.profile-tab .profile-fields>.icon-container{width:20px}.profile-tab .profile-fields>.icon-container>.icon-cancel{vertical-align:sub}",""])},620:function(t
,e
,s
){var a
=s(621);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("0dfd0b33",a
,!0,{})},621:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".image-cropper-img-input{display:none}.image-cropper-image-container{position:relative}.image-cropper-image-container img{display:block;max-width:100%}.image-cropper-buttons-wrapper{margin-top:10px}.image-cropper-buttons-wrapper button{margin-top:5px}",""])},624:function(t
,e
,s
){var a
=s(625);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("4fafab12",a
,!0,{})},625:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".theme-tab{padding-bottom:2em}.theme-tab .theme-warning{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;margin-bottom:.5em}.theme-tab .theme-warning .buttons .btn{margin-bottom:.5em}.theme-tab .preset-switcher{margin-right:1em}.theme-tab .style-control{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;margin-bottom:5px}.theme-tab .style-control .label{-ms-flex:1;flex:1}.theme-tab .style-control.disabled input,.theme-tab .style-control.disabled select{opacity:.5}.theme-tab .style-control .opt{margin:.5em}.theme-tab .style-control .color-input{-ms-flex:0 0 0px;flex:0 0 0}.theme-tab .style-control input,.theme-tab .style-control select{min-width:3em;margin:0;-ms-flex:0;flex:0}.theme-tab .style-control input[type=number],.theme-tab .style-control select[type=number]{min-width:5em}.theme-tab .style-control input[type=range],.theme-tab .style-control select[type=range]{-ms-flex:1;flex:1;min-width:3em;-ms-flex-item-align:start;align-self:flex-start}.theme-tab .reset-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.theme-tab .apply-container,.theme-tab .color-container,.theme-tab .fonts-container,.theme-tab .radius-container,.theme-tab .reset-container{display:-ms-flexbox;display:flex}.theme-tab .fonts-container,.theme-tab .radius-container{-ms-flex-direction:column;flex-direction:column}.theme-tab .color-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between}.theme-tab .color-container>h4{width:99%}.theme-tab .color-container,.theme-tab .fonts-container,.theme-tab .presets-container,.theme-tab .radius-container,.theme-tab .shadow-container{margin:1em 1em 0}.theme-tab .tab-header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:baseline;align-items:baseline;width:100%;min-height:30px;margin-bottom:1em}.theme-tab .tab-header p{-ms-flex:1;flex:1;margin:0;margin-right:.5em}.theme-tab .tab-header-buttons{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.theme-tab .tab-header-buttons .btn{min-width:1px;-ms-flex:0 auto;flex:0 auto;padding:0 1em;margin-bottom:.5em}.theme-tab .shadow-selector .override{-ms-flex:1;flex:1;margin-left:.5em}.theme-tab .shadow-selector .select-container{margin-top:-4px;margin-bottom:-3px}.theme-tab .save-load,.theme-tab .save-load-options{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:baseline;align-items:baseline;-ms-flex-wrap:wrap;flex-wrap:wrap}.theme-tab .save-load-options .import-export,.theme-tab .save-load-options .presets,.theme-tab .save-load .import-export,.theme-tab .save-load .presets{margin-bottom:.5em}.theme-tab .save-load-options .import-export,.theme-tab .save-load .import-export{display:-ms-flexbox;display:flex}.theme-tab .save-load-options .override,.theme-tab .save-load .override{margin-left:.5em}.theme-tab .save-load-options{-ms-flex-wrap:wrap;flex-wrap:wrap;margin-top:.5em;-ms-flex-pack:center;justify-content:center}.theme-tab .save-load-options .keep-option{margin:0 .5em .5em;min-width:25%}.theme-tab .preview-container{border-top:1px dashed;border-bottom:1px dashed;border-color:#222;border-color:var(--border,#222);margin:1em 0;padding:1em;background:var(--body-background-image);background-size:cover;background-position:50% 50%}.theme-tab .preview-container .dummy .post{font-family:var(--postFont);display:-ms-flexbox;display:flex}.theme-tab .preview-container .dummy .post .content{-ms-flex:1;flex:1}.theme-tab .preview-container .dummy .post .content h4{margin-bottom:.25em}.theme-tab .preview-container .dummy .post .content .icons{margin-top:.5em;display:-ms-flexbox;display:flex}.theme-tab .preview-container .dummy .post .content .icons i{margin-right:1em}.theme-tab .preview-container .dummy .after-post{margin-top:1em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.theme-tab .preview-container .dummy .avatar,.theme-tab .preview-container .dummy .avatar-alt{background:linear-gradient(135deg,#b8e1fc,#a9d2f3 10%,#90bae4 25%,#90bcea 37%,#90bff0 50%,#6ba8e5 51%,#a2daf5 83%,#bdf3fd);color:#000;font-family:sans-serif;text-align:center;margin-right:1em}.theme-tab .preview-container .dummy .avatar-alt{-ms-flex:0 auto;flex:0 auto;margin-left:28px;font-size:12px;min-width:20px;min-height:20px;line-height:20px;border-radius:10px;border-radius:var(--avatarAltRadius,10px)}.theme-tab .preview-container .dummy .avatar{-ms-flex:0 auto;flex:0 auto;width:48px;height:48px;font-size:14px;line-height:48px}.theme-tab .preview-container .dummy .actions{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline}.theme-tab .preview-container .dummy .actions .checkbox{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:baseline;align-items:baseline;margin-right:1em;-ms-flex:1;flex:1}.theme-tab .preview-container .dummy .separator{margin:1em;border-bottom:1px solid;border-color:#222;border-color:var(--border,#222)}.theme-tab .preview-container .dummy .panel-heading .alert,.theme-tab .preview-container .dummy .panel-heading .badge,.theme-tab .preview-container .dummy .panel-heading .btn,.theme-tab .preview-container .dummy .panel-heading .faint{margin-left:1em;white-space:nowrap}.theme-tab .preview-container .dummy .panel-heading .faint{text-overflow:ellipsis;min-width:2em;overflow-x:hidden}.theme-tab .preview-container .dummy .panel-heading .flex-spacer{-ms-flex:1;flex:1}.theme-tab .preview-container .dummy .btn{margin-left:0;padding:0 1em;min-width:3em;min-height:30px}.theme-tab .apply-container{-ms-flex-pack:center;justify-content:center}.theme-tab .color-item,.theme-tab .radius-item{min-width:20em;margin:5px 6px 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1 1 0px;flex:1 1 0}.theme-tab .color-item.wide,.theme-tab .radius-item.wide{min-width:60%}.theme-tab .color-item:not(.wide):nth-child(odd),.theme-tab .radius-item:not(.wide):nth-child(odd){margin-right:7px}.theme-tab .color-item .color,.theme-tab .color-item .opacity,.theme-tab .radius-item .color,.theme-tab .radius-item .opacity{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline}.theme-tab .radius-item{-ms-flex-preferred-size:auto;flex-basis:auto}.theme-tab .theme-color-cl,.theme-tab .theme-radius-rn{border:0;box-shadow:none;background:transparent;color:var(--faint,hsla(240,1%,73%,.5));-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}.theme-tab .theme-color-cl,.theme-tab .theme-color-in,.theme-tab .theme-radius-in{margin-left:4px}.theme-tab .theme-radius-in{min-width:1em;max-width:7em;-ms-flex:1;flex:1}.theme-tab .theme-radius-lb{max-width:50em}.theme-tab .theme-preview-content{padding:20px}.theme-tab .apply-container .btn{min-height:28px;min-width:10em;padding:0 2em}.theme-tab .btn{margin-left:.25em;margin-right:.25em}",""])},626:function(t
,e
,s
){var a
=s(627);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("7e57f952",a
,!0,{})},627:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,'.color-input,.color-input-field.input{display:-ms-inline-flexbox;display:inline-flex}.color-input-field.input{-ms-flex:0 0 0px;flex:0 0 0;max-width:9em;-ms-flex-align:stretch;align-items:stretch;padding:.2em 8px}.color-input-field.input input{background:none;color:#b9b9ba;color:var(--inputText,#b9b9ba);border:none;padding:0;margin:0}.color-input-field.input input.textColor{-ms-flex:1 0 3em;flex:1 0 3em;min-width:3em;padding:0}.color-input-field.input .computedIndicator,.color-input-field.input .transparentIndicator,.color-input-field.input input.nativeColor{-ms-flex:0 0 2em;flex:0 0 2em;min-width:2em;-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;height:100%}.color-input-field.input .transparentIndicator{background-color:#f0f;position:relative}.color-input-field.input .transparentIndicator:after,.color-input-field.input .transparentIndicator:before{display:block;content:"";background-color:#000;position:absolute;height:50%;width:50%}.color-input-field.input .transparentIndicator:after{top:0;left:0}.color-input-field.input .transparentIndicator:before{bottom:0;right:0}.color-input .label{-ms-flex:1 1 auto;flex:1 1 auto}',""])},628:function(t
,e
,s
){var a
=s(629);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("6c632637",a
,!0,{})},629:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".color-control input.text-input{max-width:7em;-ms-flex:1;flex:1}",""])},630:function(t
,e
,s
){var a
=s(631);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("d219da80",a
,!0,{})},631:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".shadow-control{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin-bottom:1em}.shadow-control .shadow-preview-container,.shadow-control .shadow-tweak{margin:5px 6px 0 0}.shadow-control .shadow-preview-container{-ms-flex:0;flex:0;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.shadow-control .shadow-preview-container input[type=number]{width:5em;min-width:2em}.shadow-control .shadow-preview-container .x-shift-control,.shadow-control .shadow-preview-container .y-shift-control{display:-ms-flexbox;display:flex;-ms-flex:0;flex:0}.shadow-control .shadow-preview-container .x-shift-control[disabled=disabled] *,.shadow-control .shadow-preview-container .y-shift-control[disabled=disabled] *{opacity:.5}.shadow-control .shadow-preview-container .x-shift-control{-ms-flex-align:start;align-items:flex-start}.shadow-control .shadow-preview-container .x-shift-control .wrap,.shadow-control .shadow-preview-container input[type=range]{margin:0;width:15em;height:2em}.shadow-control .shadow-preview-container .y-shift-control{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end}.shadow-control .shadow-preview-container .y-shift-control .wrap{width:2em;height:15em}.shadow-control .shadow-preview-container .y-shift-control input[type=range]{transform-origin:1em 1em;transform:rotate(90deg)}.shadow-control .shadow-preview-container .preview-window{-ms-flex:1;flex:1;background-color:#999;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-image:linear-gradient(45deg,#666 25%,transparent 0),linear-gradient(-45deg,#666 25%,transparent 0),linear-gradient(45deg,transparent 75%,#666 0),linear-gradient(-45deg,transparent 75%,#666 0);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border-radius:4px;border-radius:var(--inputRadius,4px)}.shadow-control .shadow-preview-container .preview-window .preview-block{width:33%;height:33%;background-color:#121a24;background-color:var(--bg,#121a24);border-radius:10px;border-radius:var(--panelRadius,10px)}.shadow-control .shadow-tweak{-ms-flex:1;flex:1;min-width:280px}.shadow-control .shadow-tweak .id-control{-ms-flex-align:stretch;align-items:stretch}.shadow-control .shadow-tweak .id-control .btn,.shadow-control .shadow-tweak .id-control .select{min-width:1px;margin-right:5px}.shadow-control .shadow-tweak .id-control .btn{padding:0 .4em;margin:0 .1em}.shadow-control .shadow-tweak .id-control .select{-ms-flex:1;flex:1}.shadow-control .shadow-tweak .id-control .select select{-ms-flex-item-align:initial;-ms-grid-row-align:initial;align-self:auto}",""])},632:function(t
,e
,s
){var a
=s(633);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("d9c0acde",a
,!0,{})},633:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".font-control input.custom-font{min-width:10em}.font-control.custom .select{border-top-right-radius:0;border-bottom-right-radius:0}.font-control.custom .custom-font{border-top-left-radius:0;border-bottom-left-radius:0}",""])},634:function(t
,e
,s
){var a
=s(635);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("b94bc120",a
,!0,{})},635:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".contrast-ratio{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;margin-top:-4px;margin-bottom:5px}.contrast-ratio .label{margin-right:1em}.contrast-ratio .rating{display:inline-block;text-align:center}",""])},636:function(t
,e
,s
){var a
=s(637);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("66a4eaba",a
,!0,{})},637:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".import-export-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:baseline;align-items:baseline;-ms-flex-pack:center;justify-content:center}",""])},638:function(t
,e
,s
){var a
=s(639);"string"==typeof a
&&(a
=[[t
.i
,a
,""]]),a
.locals
&&(t
.exports
=a
.locals
);(0,s(5).default)("6fe23c76",a
,!0,{})},639:function(t
,e
,s
){(t
.exports
=s(4)(!1)).push([t
.i
,".preview-container{position:relative}.underlay-preview{position:absolute;top:0;bottom:0;left:10px;right:10px}",""])},641:function(t
,e
,s
){"use strict";s
.r(e
);var a
=s(141),n
={props:{submitHandler:{type:Function
,required:!0},submitButtonLabel:{type:String
,default:function(){return this.$t("importer.submit")}},successMessage:{type:String
,default:function(){return this.$t("importer.success")}},errorMessage:{type:String
,default:function(){return this.$t("importer.error")}}},data:function(){return{file:null,error:!1,success:!1,submitting:!1}},methods:{change:function(){this.file
=this.$refs
.input
.files
[0]},submit:function(){var t
=this;this.dismiss(),this.submitting
=!0,this.submitHandler(this.file
).then(function(){t
.success
=!0}).catch(function(){t
.error
=!0}).finally(function(){t
.submitting
=!1})},dismiss:function(){this.success
=!1,this.error
=!1}}},o
=s(0);var i=function(t
){s(593)},r
=Object(o
.a
)(n
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"importer"},[s("form",[s("input",{ref:"input",attrs:{type:"file"},on:{change:t
.change
}})]),t
._v(" "),t
.submitting
?s("i",{staticClass:"icon-spin4 animate-spin importer-uploading"}):s("button",{staticClass:"btn btn-default",on:{click:t
.submit
}},[t
._v("\n "+t
._s(t
.submitButtonLabel
)+"\n ")]),t
._v(" "),t
.success
?s("div",[s("i",{staticClass:"icon-cross",on:{click:t
.dismiss
}}),t
._v(" "),s("p",[t
._v(t
._s(t
.successMessage
))])]):t
.error
?s("div",[s("i",{staticClass:"icon-cross",on:{click:t
.dismiss
}}),t
._v(" "),s("p",[t
._v(t
._s(t
.errorMessage
))])]):t
._e()])},[],!1,i
,null,null).exports
,l
={props:{getContent:{type:Function
,required:!0},filename:{type:String
,default:"export.csv"},exportButtonLabel:{type:String
,default:function(){return this.$t("exporter.export")}},processingMessage:{type:String
,default:function(){return this.$t("exporter.processing")}}},data:function(){return{processing:!1}},methods:{process:function(){var t
=this;this.processing
=!0,this.getContent().then(function(e
){var s
=document
.createElement("a");s
.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e
)),s
.setAttribute("download",t
.filename
),s
.style
.display
="none",document
.body
.appendChild(s
),s
.click(),document
.body
.removeChild(s
),setTimeout(function(){t
.processing
=!1},2e3
)})}}};var c=function(t
){s(595)},u
=Object(o
.a
)(l
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"exporter"},[t
.processing
?s("div",[s("i",{staticClass:"icon-spin4 animate-spin exporter-processing"}),t
._v(" "),s("span",[t
._v(t
._s(t
.processingMessage
))])]):s("button",{staticClass:"btn btn-default",on:{click:t
.process
}},[t
._v("\n "+t
._s(t
.exportButtonLabel
)+"\n ")])])},[],!1,c
,null,null).exports
,d
=s(54),p
={data:function(){return{activeTab:"profile",newDomainToMute:""}},created:function(){this.$store
.dispatch("fetchTokens")},components:{Importer:r
,Exporter:u
,Checkbox:d
.a
},computed:{user:function(){return this.$store
.state
.users
.currentUser
}},methods:{getFollowsContent:function(){return this.$store
.state
.api
.backendInteractor
.exportFriends({id:this.$store
.state
.users
.currentUser
.id
}).then(this.generateExportableUsersContent
)},getBlocksContent:function(){return this.$store
.state
.api
.backendInteractor
.fetchBlocks().then(this.generateExportableUsersContent
)},importFollows:function(t
){return this.$store
.state
.api
.backendInteractor
.importFollows({file:t
}).then(function(t
){if(!t
)throw new Error("failed")})},importBlocks:function(t
){return this.$store
.state
.api
.backendInteractor
.importBlocks({file:t
}).then(function(t
){if(!t
)throw new Error("failed")})},generateExportableUsersContent:function(t
){return t
.map(function(t
){return t
&&t
.is_local
?t
.screen_name
+"@"+location
.hostname:t
.screen_name
}).join("\n")}}},m
=Object(o
.a
)(p
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{attrs:{label:t
.$t("settings.data_import_export_tab")}},[s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.follow_import")))]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.import_followers_from_a_csv_file")))]),t
._v(" "),s("Importer",{attrs:{"submit-handler":t
.importFollows
,"success-message":t
.$t("settings.follows_imported"),"error-message":t
.$t("settings.follow_import_error")}})],1),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.follow_export")))]),t
._v(" "),s("Exporter",{attrs:{"get-content":t
.getFollowsContent
,filename:"friends.csv","export-button-label":t
.$t("settings.follow_export_button")}})],1),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.block_import")))]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.import_blocks_from_a_csv_file")))]),t
._v(" "),s("Importer",{attrs:{"submit-handler":t
.importBlocks
,"success-message":t
.$t("settings.blocks_imported"),"error-message":t
.$t("settings.block_import_error")}})],1),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.block_export")))]),t
._v(" "),s("Exporter",{attrs:{"get-content":t
.getBlocksContent
,filename:"blocks.csv","export-button-label":t
.$t("settings.block_export_button")}})],1)])},[],!1,null,null,null).exports
,v
=s(12),h
=s
.n(v
),b
=s(15),f
=s
.n(b
),g
=s(189),_
=s
.n(g
),w
={props:{query:{type:Function
,required:!0},filter:{type:Function
},placeholder:{type:String
,default:"Search..."}},data:function(){return{term:"",timeout:null,results:[],resultsVisible:!1}},computed:{filtered:function(){return this.filter
?this.filter(this.results
):this.results
}},watch:{term:function(t
){this.fetchResults(t
)}},methods:{fetchResults:function(t
){var e
=this;clearTimeout(this.timeout
),this.timeout
=setTimeout(function(){e
.results
=[],t
&&e
.query(t
).then(function(t
){e
.results
=t
})},500)},onInputClick:function(){this.resultsVisible
=!0},onClickOutside:function(){this.resultsVisible
=!1}}};var C=function(t
){s(599)},x
=Object(o
.a
)(w
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t
.onClickOutside
,expression:"onClickOutside"}],staticClass:"autosuggest"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t
.term
,expression:"term"}],staticClass:"autosuggest-input",attrs:{placeholder:t
.placeholder
},domProps:{value:t
.term
},on:{click:t
.onInputClick
,input:function(e
){e
.target
.composing
||(t
.term
=e
.target
.value
)}}}),t
._v(" "),t
.resultsVisible
&&t
.filtered
.length
>0?s("div",{staticClass:"autosuggest-results"},[t
._l(t
.filtered
,function(e
){return t
._t("default",null,{item:e
})})],2):t
._e()])},[],!1,C
,null,null).exports
,k
=s(39),y
={props:["userId"],data:function(){return{progress:!1}},computed:{user:function(){return this.$store
.getters
.findUser(this.userId
)},relationship:function(){return this.$store
.getters
.relationship(this.userId
)},blocked:function(){return this.relationship
.blocking
}},components:{BasicUserCard:k
.a
},methods:{unblockUser:function(){var t
=this;this.progress
=!0,this.$store
.dispatch("unblockUser",this.user
.id
).then(function(){t
.progress
=!1})},blockUser:function(){var t
=this;this.progress
=!0,this.$store
.dispatch("blockUser",this.user
.id
).then(function(){t
.progress
=!1})}}};var $=function(t
){s(601)},L
=Object(o
.a
)(y
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("basic-user-card",{attrs:{user:t
.user
}},[s("div",{staticClass:"block-card-content-container"},[t
.blocked
?s("button",{staticClass:"btn btn-default",attrs:{disabled:t
.progress
},on:{click:t
.unblockUser
}},[t
.progress
?[t
._v("\n "+t
._s(t
.$t("user_card.unblock_progress"))+"\n ")]:[t
._v("\n "+t
._s(t
.$t("user_card.unblock"))+"\n ")]],2):s("button",{staticClass:"btn btn-default",attrs:{disabled:t
.progress
},on:{click:t
.blockUser
}},[t
.progress
?[t
._v("\n "+t
._s(t
.$t("user_card.block_progress"))+"\n ")]:[t
._v("\n "+t
._s(t
.$t("user_card.block"))+"\n ")]],2)])])},[],!1,$,null,null).exports
,T
={props:["userId"],data:function(){return{progress:!1}},computed:{user:function(){return this.$store
.getters
.findUser(this.userId
)},relationship:function(){return this.$store
.getters
.relationship(this.userId
)},muted:function(){return this.relationship
.muting
}},components:{BasicUserCard:k
.a
},methods:{unmuteUser:function(){var t
=this;this.progress
=!0,this.$store
.dispatch("unmuteUser",this.userId
).then(function(){t
.progress
=!1})},muteUser:function(){var t
=this;this.progress
=!0,this.$store
.dispatch("muteUser",this.userId
).then(function(){t
.progress
=!1})}}};var O=function(t
){s(603)},P
=Object(o
.a
)(T
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("basic-user-card",{attrs:{user:t
.user
}},[s("div",{staticClass:"mute-card-content-container"},[t
.muted
?s("button",{staticClass:"btn btn-default",attrs:{disabled:t
.progress
},on:{click:t
.unmuteUser
}},[t
.progress
?[t
._v("\n "+t
._s(t
.$t("user_card.unmute_progress"))+"\n ")]:[t
._v("\n "+t
._s(t
.$t("user_card.unmute"))+"\n ")]],2):s("button",{staticClass:"btn btn-default",attrs:{disabled:t
.progress
},on:{click:t
.muteUser
}},[t
.progress
?[t
._v("\n "+t
._s(t
.$t("user_card.mute_progress"))+"\n ")]:[t
._v("\n "+t
._s(t
.$t("user_card.mute"))+"\n ")]],2)])])},[],!1,O
,null,null).exports
,I
=s(78),S
={props:["domain"],components:{ProgressButton:I
.a
},computed:{user:function(){return this.$store
.state
.users
.currentUser
},muted:function(){return this.user
.domainMutes
.includes(this.domain
)}},methods:{unmuteDomain:function(){return this.$store
.dispatch("unmuteDomain",this.domain
)},muteDomain:function(){return this.$store
.dispatch("muteDomain",this.domain
)}}};var j=function(t
){s(605)},E
=Object(o
.a
)(S
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"domain-mute-card"},[s("div",{staticClass:"domain-mute-card-domain"},[t
._v("\n "+t
._s(t
.domain
)+"\n ")]),t
._v(" "),t
.muted
?s("ProgressButton",{staticClass:"btn btn-default",attrs:{click:t
.unmuteDomain
}},[t
._v("\n "+t
._s(t
.$t("domain_mute_card.unmute"))+"\n "),s("template",{slot:"progress"},[t
._v("\n "+t
._s(t
.$t("domain_mute_card.unmute_progress"))+"\n ")])],2):s("ProgressButton",{staticClass:"btn btn-default",attrs:{click:t
.muteDomain
}},[t
._v("\n "+t
._s(t
.$t("domain_mute_card.mute"))+"\n "),s("template",{slot:"progress"},[t
._v("\n "+t
._s(t
.$t("domain_mute_card.mute_progress"))+"\n ")])],2)],1)},[],!1,j
,null,null).exports
,R
={components:{List:s(52).a
,Checkbox:d
.a
},props:{items:{type:Array
,default:function(){return[]}},getKey:{type:Function
,default:function(t
){return t
.id
}}},data:function(){return{selected:[]}},computed:{allKeys:function(){return this.items
.map(this.getKey
)},filteredSelected:function(){var t
=this;return this.allKeys
.filter(function(e
){return-1!==t
.selected
.indexOf(e
)})},allSelected:function(){return this.filteredSelected
.length
===this.items
.length
},noneSelected:function(){return 0===this.filteredSelected
.length
},someSelected:function(){return!this.allSelected
&&!this.noneSelected
}},methods:{isSelected:function(t
){return-1!==this.filteredSelected
.indexOf(this.getKey(t
))},toggle:function(t
,e
){var s
=this.getKey(e
);t
!==this.isSelected(s
)&&(t
?this.selected
.push(s
):this.selected
.splice(this.selected
.indexOf(s
),1))},toggleAll:function(t
){this.selected
=t
?this.allKeys
.slice(0):[]}}};var B=function(t
){s(607)},F
=Object(o
.a
)(R
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"selectable-list"},[t
.items
.length
>0?s("div",{staticClass:"selectable-list-header"},[s("div",{staticClass:"selectable-list-checkbox-wrapper"},[s("Checkbox",{attrs:{checked:t
.allSelected
,indeterminate:t
.someSelected
},on:{change:t
.toggleAll
}},[t
._v("\n "+t
._s(t
.$t("selectable_list.select_all"))+"\n ")])],1),t
._v(" "),s("div",{staticClass:"selectable-list-header-actions"},[t
._t("header",null,{selected:t
.filteredSelected
})],2)]):t
._e(),t
._v(" "),s("List",{attrs:{items:t
.items
,"get-key":t
.getKey
},scopedSlots:t
._u([{key:"item",fn:function(e
){var a
=e
.item
;return[s("div",{staticClass:"selectable-list-item-inner",class:{"selectable-list-item-selected-inner":t
.isSelected(a
)}},[s("div",{staticClass:"selectable-list-checkbox-wrapper"},[s("Checkbox",{attrs:{checked:t
.isSelected(a
)},on:{change:function(e
){return t
.toggle(e
,a
)}}})],1),t
._v(" "),t
._t("item",null,{item:a
})],2)]}}],null,!0)},[t
._v(" "),s("template",{slot:"empty"},[t
._t("empty")],2)],2)],1)},[],!1,B
,null,null).exports
,U
=s(190),M
=s
.n(U
),V
=s(7),D
=s
.n(V
),A
=s(1),N
=s
.n(A
),W
=s(10),z
=s
.n(W
),q
=s(6),G
=s
.n(q
),H
=s(191),K
=s
.n(H
),J
=s(192);s(609);function Q(t
,e
){var s
=Object
.keys(t
);if(Object
.getOwnPropertySymbols
){var a
=Object
.getOwnPropertySymbols(t
);e
&&(a
=a
.filter(function(e
){return Object
.getOwnPropertyDescriptor(t
,e
).enumerable
})),s
.push
.apply(s
,a
)}return s
}function X(t
){for(var e
=1;e
<arguments
.length
;e
++){var s
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?Q(Object(s
),!0).forEach(function(e
){N()(t
,e
,s
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(s
)):Q(Object(s
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(s
,e
))})}return t
}var Y=function(t
){var e
=t
.fetch
,s
=t
.select
,a
=t
.childPropName
,n
=void 0===a
?"content":a
,o
=t
.additionalPropNames
,i
=void 0===o
?[]:o
;return function(t
){var a
=Object
.keys(Object(J
.a
)(t
)).filter(function(t
){return t
!==n
}).concat(i
);return G
.a
.component("withSubscription",{props:[].concat(z()(a
),["refresh"]),data:function(){return{loading:!1,error:!1}},computed:{fetchedData:function(){return s(this.$props
,this.$store
)}},created:function(){(this.refresh
||K()(this.fetchedData
))&&this.fetchData()},methods:{fetchData:function(){var t
=this;this.loading
||(this.loading
=!0,this.error
=!1,e(this.$props
,this.$store
).then(function(){t
.loading
=!1}).catch(function(){t
.error
=!0,t
.loading
=!1}))}},render:function(e
){if(this.error
||this.loading
)return e("div",{class:"with-subscription-loading"},[this.error
?e("a",{on:{click:this.fetchData
},class:"alert error"},[this.$t("general.generic_error")]):e("i",{class:"icon-spin3 animate-spin"})]);var s
={props:X({},this.$props
,N()({},n
,this.fetchedData
)),on:this.$listeners
,scopedSlots:this.$scopedSlots
},a
=Object
.entries(this.$slots
).map(function(t
){var s
=D()(t
,2),a
=s
[0],n
=s
[1];return e("template",{slot:a
},n
)});return e("div",{class:"with-subscription"},[e(t
,M()([{},s
]),[a
])])}})}},Z
=Y({fetch:function(t
,e
){return e
.dispatch("fetchBlocks")},select:function(t
,e
){return h()(e
.state
.users
.currentUser
,"blockIds",[])},childPropName:"items"})(F
),tt
=Y({fetch:function(t
,e
){return e
.dispatch("fetchMutes")},select:function(t
,e
){return h()(e
.state
.users
.currentUser
,"muteIds",[])},childPropName:"items"})(F
),et
=Y({fetch:function(t
,e
){return e
.dispatch("fetchDomainMutes")},select:function(t
,e
){return h()(e
.state
.users
.currentUser
,"domainMutes",[])},childPropName:"items"})(F
),st
={data:function(){return{activeTab:"profile"}},created:function(){this.$store
.dispatch("fetchTokens"),this.$store
.dispatch("getKnownDomains")},components:{TabSwitcher:a
.a
,BlockList:Z
,MuteList:tt
,DomainMuteList:et
,BlockCard:L
,MuteCard:P
,DomainMuteCard:E
,ProgressButton:I
.a
,Autosuggest:x
,Checkbox:d
.a
},computed:{knownDomains:function(){return this.$store
.state
.instance
.knownDomains
},user:function(){return this.$store
.state
.users
.currentUser
}},methods:{importFollows:function(t
){return this.$store
.state
.api
.backendInteractor
.importFollows({file:t
}).then(function(t
){if(!t
)throw new Error("failed")})},importBlocks:function(t
){return this.$store
.state
.api
.backendInteractor
.importBlocks({file:t
}).then(function(t
){if(!t
)throw new Error("failed")})},generateExportableUsersContent:function(t
){return t
.map(function(t
){return t
&&t
.is_local
?t
.screen_name
+"@"+location
.hostname:t
.screen_name
}).join("\n")},activateTab:function(t
){this.activeTab
=t
},filterUnblockedUsers:function(t
){var e
=this;return _()(t
,function(t
){return e
.$store
.getters
.relationship(e
.userId
).blocking
||t
===e
.user
.id
})},filterUnMutedUsers:function(t
){var e
=this;return _()(t
,function(t
){return e
.$store
.getters
.relationship(e
.userId
).muting
||t
===e
.user
.id
})},queryUserIds:function(t
){return this.$store
.dispatch("searchUsers",{query:t
}).then(function(t
){return f()(t
,"id")})},blockUsers:function(t
){return this.$store
.dispatch("blockUsers",t
)},unblockUsers:function(t
){return this.$store
.dispatch("unblockUsers",t
)},muteUsers:function(t
){return this.$store
.dispatch("muteUsers",t
)},unmuteUsers:function(t
){return this.$store
.dispatch("unmuteUsers",t
)},filterUnMutedDomains:function(t
){var e
=this;return t
.filter(function(t
){return!e
.user
.domainMutes
.includes(t
)})},queryKnownDomains:function(t
){var e
=this;return new Promise(function(s
,a
){s(e
.knownDomains
.filter(function(e
){return e
.toLowerCase().includes(t
)}))})},unmuteDomains:function(t
){return this.$store
.dispatch("unmuteDomains",t
)}}};var at=function(t
){s(597)},nt
=Object(o
.a
)(st
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("tab-switcher",{staticClass:"mutes-and-blocks-tab",attrs:{"scrollable-tabs":!0}},[s("div",{attrs:{label:t
.$t("settings.blocks_tab")}},[s("div",{staticClass:"usersearch-wrapper"},[s("Autosuggest",{attrs:{filter:t
.filterUnblockedUsers
,query:t
.queryUserIds
,placeholder:t
.$t("settings.search_user_to_block")},scopedSlots:t
._u([{key:"default",fn:function(t
){return s("BlockCard",{attrs:{"user-id":t
.item
}})}}])})],1),t
._v(" "),s("BlockList",{attrs:{refresh:!0,"get-key":function(t
){return t
}},scopedSlots:t
._u([{key:"header",fn:function(e
){var a
=e
.selected
;return[s("div",{staticClass:"bulk-actions"},[a
.length
>0?s("ProgressButton",{staticClass:"btn btn-default bulk-action-button",attrs:{click:function(){return t
.blockUsers(a
)}}},[t
._v("\n "+t
._s(t
.$t("user_card.block"))+"\n "),s("template",{slot:"progress"},[t
._v("\n "+t
._s(t
.$t("user_card.block_progress"))+"\n ")])],2):t
._e(),t
._v(" "),a
.length
>0?s("ProgressButton",{staticClass:"btn btn-default",attrs:{click:function(){return t
.unblockUsers(a
)}}},[t
._v("\n "+t
._s(t
.$t("user_card.unblock"))+"\n "),s("template",{slot:"progress"},[t
._v("\n "+t
._s(t
.$t("user_card.unblock_progress"))+"\n ")])],2):t
._e()],1)]}},{key:"item",fn:function(t
){var e
=t
.item
;return[s("BlockCard",{attrs:{"user-id":e
}})]}}])},[t
._v(" "),t
._v(" "),s("template",{slot:"empty"},[t
._v("\n "+t
._s(t
.$t("settings.no_blocks"))+"\n ")])],2)],1),t
._v(" "),s("div",{attrs:{label:t
.$t("settings.mutes_tab")}},[s("tab-switcher",[s("div",{attrs:{label:"Users"}},[s("div",{staticClass:"usersearch-wrapper"},[s("Autosuggest",{attrs:{filter:t
.filterUnMutedUsers
,query:t
.queryUserIds
,placeholder:t
.$t("settings.search_user_to_mute")},scopedSlots:t
._u([{key:"default",fn:function(t
){return s("MuteCard",{attrs:{"user-id":t
.item
}})}}])})],1),t
._v(" "),s("MuteList",{attrs:{refresh:!0,"get-key":function(t
){return t
}},scopedSlots:t
._u([{key:"header",fn:function(e
){var a
=e
.selected
;return[s("div",{staticClass:"bulk-actions"},[a
.length
>0?s("ProgressButton",{staticClass:"btn btn-default",attrs:{click:function(){return t
.muteUsers(a
)}}},[t
._v("\n "+t
._s(t
.$t("user_card.mute"))+"\n "),s("template",{slot:"progress"},[t
._v("\n "+t
._s(t
.$t("user_card.mute_progress"))+"\n ")])],2):t
._e(),t
._v(" "),a
.length
>0?s("ProgressButton",{staticClass:"btn btn-default",attrs:{click:function(){return t
.unmuteUsers(a
)}}},[t
._v("\n "+t
._s(t
.$t("user_card.unmute"))+"\n "),s("template",{slot:"progress"},[t
._v("\n "+t
._s(t
.$t("user_card.unmute_progress"))+"\n ")])],2):t
._e()],1)]}},{key:"item",fn:function(t
){var e
=t
.item
;return[s("MuteCard",{attrs:{"user-id":e
}})]}}])},[t
._v(" "),t
._v(" "),s("template",{slot:"empty"},[t
._v("\n "+t
._s(t
.$t("settings.no_mutes"))+"\n ")])],2)],1),t
._v(" "),s("div",{attrs:{label:t
.$t("settings.domain_mutes")}},[s("div",{staticClass:"domain-mute-form"},[s("Autosuggest",{attrs:{filter:t
.filterUnMutedDomains
,query:t
.queryKnownDomains
,placeholder:t
.$t("settings.type_domains_to_mute")},scopedSlots:t
._u([{key:"default",fn:function(t
){return s("DomainMuteCard",{attrs:{domain:t
.item
}})}}])})],1),t
._v(" "),s("DomainMuteList",{attrs:{refresh:!0,"get-key":function(t
){return t
}},scopedSlots:t
._u([{key:"header",fn:function(e
){var a
=e
.selected
;return[s("div",{staticClass:"bulk-actions"},[a
.length
>0?s("ProgressButton",{staticClass:"btn btn-default",attrs:{click:function(){return t
.unmuteDomains(a
)}}},[t
._v("\n "+t
._s(t
.$t("domain_mute_card.unmute"))+"\n "),s("template",{slot:"progress"},[t
._v("\n "+t
._s(t
.$t("domain_mute_card.unmute_progress"))+"\n ")])],2):t
._e()],1)]}},{key:"item",fn:function(t
){var e
=t
.item
;return[s("DomainMuteCard",{attrs:{domain:e
}})]}}])},[t
._v(" "),t
._v(" "),s("template",{slot:"empty"},[t
._v("\n "+t
._s(t
.$t("settings.no_mutes"))+"\n ")])],2)],1)])],1)])},[],!1,at
,null,null).exports
,ot
={data:function(){return{activeTab:"profile",notificationSettings:this.$store
.state
.users
.currentUser
.notification_settings
,newDomainToMute:""}},components:{Checkbox:d
.a
},computed:{user:function(){return this.$store
.state
.users
.currentUser
}},methods:{updateNotificationSettings:function(){this.$store
.state
.api
.backendInteractor
.updateNotificationSettings({settings:this.notificationSettings
})}}},it
=Object(o
.a
)(ot
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{attrs:{label:t
.$t("settings.notifications")}},[s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.notification_setting_filters")))]),t
._v(" "),s("p",[s("Checkbox",{model:{value:t
.notificationSettings
.block_from_strangers
,callback:function(e
){t
.$set(t
.notificationSettings
,"block_from_strangers",e
)},expression:"notificationSettings.block_from_strangers"}},[t
._v("\n "+t
._s(t
.$t("settings.notification_setting_block_from_strangers"))+"\n ")])],1)]),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.notification_setting_privacy")))]),t
._v(" "),s("p",[s("Checkbox",{model:{value:t
.notificationSettings
.hide_notification_contents
,callback:function(e
){t
.$set(t
.notificationSettings
,"hide_notification_contents",e
)},expression:"notificationSettings.hide_notification_contents"}},[t
._v("\n "+t
._s(t
.$t("settings.notification_setting_hide_notification_contents"))+"\n ")])],1)]),t
._v(" "),s("div",{staticClass:"setting-item"},[s("p",[t
._v(t
._s(t
.$t("settings.notification_mutes")))]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.notification_blocks")))]),t
._v(" "),s("button",{staticClass:"btn btn-default",on:{click:t
.updateNotificationSettings
}},[t
._v("\n "+t
._s(t
.$t("general.submit"))+"\n ")])])])},[],!1,null,null,null).exports
,rt
=s(610),lt
=s
.n(rt
),ct
=s(37),ut
=s
.n(ct
),dt
=s(95);function pt(t
,e
){var s
=Object
.keys(t
);if(Object
.getOwnPropertySymbols
){var a
=Object
.getOwnPropertySymbols(t
);e
&&(a
=a
.filter(function(e
){return Object
.getOwnPropertyDescriptor(t
,e
).enumerable
})),s
.push
.apply(s
,a
)}return s
}function mt(t
){for(var e
=1;e
<arguments
.length
;e
++){var s
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?pt(Object(s
),!0).forEach(function(e
){N()(t
,e
,s
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(s
)):pt(Object(s
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(s
,e
))})}return t
}var vt=function(){return mt({user:function(){return this.$store
.state
.users
.currentUser
}},dt
.c
.filter(function(t
){return dt
.d
.includes(t
)}).map(function(t
){return[t
+"DefaultValue",function(){return this.$store
.getters
.instanceDefaultConfig
[t
]}]}).reduce(function(t
,e
){var s
=D()(e
,2),a
=s
[0],n
=s
[1];return mt({},t
,N()({},a
,n
))},{}),{},dt
.c
.filter(function(t
){return!dt
.d
.includes(t
)}).map(function(t
){return[t
+"LocalizedValue",function(){return this.$t("settings.values."+this.$store
.getters
.instanceDefaultConfig
[t
])}]}).reduce(function(t
,e
){var s
=D()(e
,2),a
=s
[0],n
=s
[1];return mt({},t
,N()({},a
,n
))},{}),{},Object
.keys(dt
.b
).map(function(t
){return[t
,{get:function(){return this.$store
.getters
.mergedConfig
[t
]},set:function(e
){this.$store
.dispatch("setOption",{name:t
,value:e
})}}]}).reduce(function(t
,e
){var s
=D()(e
,2),a
=s
[0],n
=s
[1];return mt({},t
,N()({},a
,n
))},{}),{useStreamingApi:{get:function(){return this.$store
.getters
.mergedConfig
.useStreamingApi
},set:function(t
){var e
=this;(t
?this.$store
.dispatch("enableMastoSockets"):this.$store
.dispatch("disableMastoSockets")).then(function(){e
.$store
.dispatch("setOption",{name:"useStreamingApi",value:t
})}).catch(function(t
){console
.error("Failed starting MastoAPI Streaming socket",t
),e
.$store
.dispatch("disableMastoSockets"),e
.$store
.dispatch("setOption",{name:"useStreamingApi",value:!1})})}}})};function ht(t
,e
){var s
=Object
.keys(t
);if(Object
.getOwnPropertySymbols
){var a
=Object
.getOwnPropertySymbols(t
);e
&&(a
=a
.filter(function(e
){return Object
.getOwnPropertyDescriptor(t
,e
).enumerable
})),s
.push
.apply(s
,a
)}return s
}var bt
={data:function(){return{muteWordsStringLocal:this.$store
.getters
.mergedConfig
.muteWords
.join("\n")}},components:{Checkbox:d
.a
},computed:function(t
){for(var e
=1;e
<arguments
.length
;e
++){var s
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?ht(Object(s
),!0).forEach(function(e
){N()(t
,e
,s
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(s
)):ht(Object(s
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(s
,e
))})}return t
}({},vt(),{muteWordsString:{get:function(){return this.muteWordsStringLocal
},set:function(t
){this.muteWordsStringLocal
=t
,this.$store
.dispatch("setOption",{name:"muteWords",value:ut()(t
.split("\n"),function(t
){return lt()(t
).length
>0})})}}}),watch:{notificationVisibility:{handler:function(t
){this.$store
.dispatch("setOption",{name:"notificationVisibility",value:this.$store
.getters
.mergedConfig
.notificationVisibility
})},deep:!0},replyVisibility:function(){this.$store
.dispatch("queueFlushAll")}}},ft
=Object(o
.a
)(bt
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{attrs:{label:t
.$t("settings.filtering")}},[s("div",{staticClass:"setting-item"},[s("div",{staticClass:"select-multiple"},[s("span",{staticClass:"label"},[t
._v(t
._s(t
.$t("settings.notification_visibility")))]),t
._v(" "),s("ul",{staticClass:"option-list"},[s("li",[s("Checkbox",{model:{value:t
.notificationVisibility
.likes
,callback:function(e
){t
.$set(t
.notificationVisibility
,"likes",e
)},expression:"notificationVisibility.likes"}},[t
._v("\n "+t
._s(t
.$t("settings.notification_visibility_likes"))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.notificationVisibility
.repeats
,callback:function(e
){t
.$set(t
.notificationVisibility
,"repeats",e
)},expression:"notificationVisibility.repeats"}},[t
._v("\n "+t
._s(t
.$t("settings.notification_visibility_repeats"))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.notificationVisibility
.follows
,callback:function(e
){t
.$set(t
.notificationVisibility
,"follows",e
)},expression:"notificationVisibility.follows"}},[t
._v("\n "+t
._s(t
.$t("settings.notification_visibility_follows"))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.notificationVisibility
.mentions
,callback:function(e
){t
.$set(t
.notificationVisibility
,"mentions",e
)},expression:"notificationVisibility.mentions"}},[t
._v("\n "+t
._s(t
.$t("settings.notification_visibility_mentions"))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.notificationVisibility
.moves
,callback:function(e
){t
.$set(t
.notificationVisibility
,"moves",e
)},expression:"notificationVisibility.moves"}},[t
._v("\n "+t
._s(t
.$t("settings.notification_visibility_moves"))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.notificationVisibility
.emojiReactions
,callback:function(e
){t
.$set(t
.notificationVisibility
,"emojiReactions",e
)},expression:"notificationVisibility.emojiReactions"}},[t
._v("\n "+t
._s(t
.$t("settings.notification_visibility_emoji_reactions"))+"\n ")])],1)])]),t
._v(" "),s("div",[t
._v("\n "+t
._s(t
.$t("settings.replies_in_timeline"))+"\n "),s("label",{staticClass:"select",attrs:{for:"replyVisibility"}},[s("select",{directives:[{name:"model",rawName:"v-model",value:t
.replyVisibility
,expression:"replyVisibility"}],attrs:{id:"replyVisibility"},on:{change:function(e
){var s
=Array
.prototype.filter
.call(e
.target
.options
,function(t
){return t
.selected
}).map(function(t
){return"_value"in t
?t
._value:t
.value
});t
.replyVisibility
=e
.target
.multiple
?s:s
[0]}}},[s("option",{attrs:{value:"all",selected:""}},[t
._v(t
._s(t
.$t("settings.reply_visibility_all")))]),t
._v(" "),s("option",{attrs:{value:"following"}},[t
._v(t
._s(t
.$t("settings.reply_visibility_following")))]),t
._v(" "),s("option",{attrs:{value:"self"}},[t
._v(t
._s(t
.$t("settings.reply_visibility_self")))])]),t
._v(" "),s("i",{staticClass:"icon-down-open"})])]),t
._v(" "),s("div",[s("Checkbox",{model:{value:t
.hidePostStats
,callback:function(e
){t
.hidePostStats
=e
},expression:"hidePostStats"}},[t
._v("\n "+t
._s(t
.$t("settings.hide_post_stats"))+" "+t
._s(t
.$t("settings.instance_default",{value:t
.hidePostStatsLocalizedValue
}))+"\n ")])],1),t
._v(" "),s("div",[s("Checkbox",{model:{value:t
.hideUserStats
,callback:function(e
){t
.hideUserStats
=e
},expression:"hideUserStats"}},[t
._v("\n "+t
._s(t
.$t("settings.hide_user_stats"))+" "+t
._s(t
.$t("settings.instance_default",{value:t
.hideUserStatsLocalizedValue
}))+"\n ")])],1)]),t
._v(" "),s("div",{staticClass:"setting-item"},[s("div",[s("p",[t
._v(t
._s(t
.$t("settings.filtering_explanation")))]),t
._v(" "),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t
.muteWordsString
,expression:"muteWordsString"}],attrs:{id:"muteWords"},domProps:{value:t
.muteWordsString
},on:{input:function(e
){e
.target
.composing
||(t
.muteWordsString
=e
.target
.value
)}}})]),t
._v(" "),s("div",[s("Checkbox",{model:{value:t
.hideFilteredStatuses
,callback:function(e
){t
.hideFilteredStatuses
=e
},expression:"hideFilteredStatuses"}},[t
._v("\n "+t
._s(t
.$t("settings.hide_filtered_statuses"))+" "+t
._s(t
.$t("settings.instance_default",{value:t
.hideFilteredStatusesLocalizedValue
}))+"\n ")])],1)])])},[],!1,null,null,null).exports
,gt
=s(3),_t
=s
.n(gt
),wt
={props:{backupCodes:{type:Object
,default:function(){return{inProgress:!1,codes:[]}}}},data:function(){return{}},computed:{inProgress:function(){return this.backupCodes
.inProgress
},ready:function(){return this.backupCodes
.codes
.length
>0},displayTitle:function(){return this.inProgress
||this.ready
}}};var Ct=function(t
){s(615)},xt
=Object(o
.a
)(wt
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"mfa-backup-codes"},[t
.displayTitle
?s("h4",[t
._v("\n "+t
._s(t
.$t("settings.mfa.recovery_codes"))+"\n ")]):t
._e(),t
._v(" "),t
.inProgress
?s("i",[t
._v(t
._s(t
.$t("settings.mfa.waiting_a_recovery_codes")))]):t
._e(),t
._v(" "),t
.ready
?[s("p",{staticClass:"alert warning"},[t
._v("\n "+t
._s(t
.$t("settings.mfa.recovery_codes_warning"))+"\n ")]),t
._v(" "),s("ul",{staticClass:"backup-codes"},t
._l(t
.backupCodes
.codes
,function(e
){return s("li",{key:e
},[t
._v("\n "+t
._s(e
)+"\n ")])}),0)]:t
._e()],2)},[],!1,Ct
,null,null).exports
,kt
={props:["disabled"],data:function(){return{}},methods:{confirm:function(){this.$emit("confirm")},cancel:function(){this.$emit("cancel")}}},yt
=Object(o
.a
)(kt
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",[t
._t("default"),t
._v(" "),s("button",{staticClass:"btn btn-default",attrs:{disabled:t
.disabled
},on:{click:t
.confirm
}},[t
._v("\n "+t
._s(t
.$t("general.confirm"))+"\n ")]),t
._v(" "),s("button",{staticClass:"btn btn-default",attrs:{disabled:t
.disabled
},on:{click:t
.cancel
}},[t
._v("\n "+t
._s(t
.$t("general.cancel"))+"\n ")])],2)},[],!1,null,null,null).exports
,$t
=s(2);function Lt(t
,e
){var s
=Object
.keys(t
);if(Object
.getOwnPropertySymbols
){var a
=Object
.getOwnPropertySymbols(t
);e
&&(a
=a
.filter(function(e
){return Object
.getOwnPropertyDescriptor(t
,e
).enumerable
})),s
.push
.apply(s
,a
)}return s
}var Tt
={props:["settings"],data:function(){return{error:!1,currentPassword:"",deactivate:!1,inProgress:!1}},components:{confirm:yt
},computed:function(t
){for(var e
=1;e
<arguments
.length
;e
++){var s
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?Lt(Object(s
),!0).forEach(function(e
){N()(t
,e
,s
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(s
)):Lt(Object(s
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(s
,e
))})}return t
}({isActivated:function(){return this.settings
.totp
}},Object($t
.e
)({backendInteractor:function(t
){return t
.api
.backendInteractor
}})),methods:{doActivate:function(){this.$emit("activate")},cancelDeactivate:function(){this.deactivate
=!1},doDeactivate:function(){this.error
=null,this.deactivate
=!0},confirmDeactivate:function(){var t
=this;this.error
=null,this.inProgress
=!0,this.backendInteractor
.mfaDisableOTP({password:this.currentPassword
}).then(function(e
){t
.inProgress
=!1,e
.error
?t
.error
=e
.error:(t
.deactivate
=!1,t
.$emit("deactivate"))})}}};function Ot(t
,e
){var s
=Object
.keys(t
);if(Object
.getOwnPropertySymbols
){var a
=Object
.getOwnPropertySymbols(t
);e
&&(a
=a
.filter(function(e
){return Object
.getOwnPropertyDescriptor(t
,e
).enumerable
})),s
.push
.apply(s
,a
)}return s
}var Pt
={data:function(){return{settings:{available:!1,enabled:!1,totp:!1},setupState:{state:"",setupOTPState:""},backupCodes:{getNewCodes:!1,inProgress:!1,codes:[]},otpSettings:{provisioning_uri:"",key:""},currentPassword:null,otpConfirmToken:null,error:null,readyInit:!1}},components:{"recovery-codes":xt
,"totp-item":Object(o
.a
)(Tt
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",[s("div",{staticClass:"method-item"},[s("strong",[t
._v(t
._s(t
.$t("settings.mfa.otp")))]),t
._v(" "),t
.isActivated
?t
._e():s("button",{staticClass:"btn btn-default",on:{click:t
.doActivate
}},[t
._v("\n "+t
._s(t
.$t("general.enable"))+"\n ")]),t
._v(" "),t
.isActivated
?s("button",{staticClass:"btn btn-default",attrs:{disabled:t
.deactivate
},on:{click:t
.doDeactivate
}},[t
._v("\n "+t
._s(t
.$t("general.disable"))+"\n ")]):t
._e()]),t
._v(" "),t
.deactivate
?s("confirm",{attrs:{disabled:t
.inProgress
},on:{confirm:t
.confirmDeactivate
,cancel:t
.cancelDeactivate
}},[t
._v("\n "+t
._s(t
.$t("settings.enter_current_password_to_confirm"))+":\n "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.currentPassword
,expression:"currentPassword"}],attrs:{type:"password"},domProps:{value:t
.currentPassword
},on:{input:function(e
){e
.target
.composing
||(t
.currentPassword
=e
.target
.value
)}}})]):t
._e(),t
._v(" "),t
.error
?s("div",{staticClass:"alert error"},[t
._v("\n "+t
._s(t
.error
)+"\n ")]):t
._e()],1)},[],!1,null,null,null).exports
,qrcode:s(617).a
,confirm:yt
},computed:function(t
){for(var e
=1;e
<arguments
.length
;e
++){var s
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?Ot(Object(s
),!0).forEach(function(e
){N()(t
,e
,s
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(s
)):Ot(Object(s
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(s
,e
))})}return t
}({canSetupOTP:function(){return(this.setupInProgress
&&this.backupCodesPrepared
||this.settings
.enabled
)&&!this.settings
.totp
&&!this.setupOTPInProgress
},setupInProgress:function(){return""!==this.setupState
.state
&&"complete"!==this.setupState
.state
},setupOTPInProgress:function(){return"setupOTP"===this.setupState
.state
&&!this.completedOTP
},prepareOTP:function(){return"prepare"===this.setupState
.setupOTPState
},confirmOTP:function(){return"confirm"===this.setupState
.setupOTPState
},completedOTP:function(){return"completed"===this.setupState
.setupOTPState
},backupCodesPrepared:function(){return!this.backupCodes
.inProgress
&&this.backupCodes
.codes
.length
>0},confirmNewBackupCodes:function(){return this.backupCodes
.getNewCodes
}},Object($t
.e
)({backendInteractor:function(t
){return t
.api
.backendInteractor
}})),methods:{activateOTP:function(){this.settings
.enabled
||(this.setupState
.state
="getBackupcodes",this.fetchBackupCodes())},fetchBackupCodes:function(){var t
=this;return this.backupCodes
.inProgress
=!0,this.backupCodes
.codes
=[],this.backendInteractor
.generateMfaBackupCodes().then(function(e
){t
.backupCodes
.codes
=e
.codes
,t
.backupCodes
.inProgress
=!1})},getBackupCodes:function(){this.backupCodes
.getNewCodes
=!0},confirmBackupCodes:function(){var t
=this;this.fetchBackupCodes().then(function(e
){t
.backupCodes
.getNewCodes
=!1})},cancelBackupCodes:function(){this.backupCodes
.getNewCodes
=!1},setupOTP:function(){var t
=this;this.setupState
.state
="setupOTP",this.setupState
.setupOTPState
="prepare",this.backendInteractor
.mfaSetupOTP().then(function(e
){t
.otpSettings
=e
,t
.setupState
.setupOTPState
="confirm"})},doConfirmOTP:function(){var t
=this;this.error
=null,this.backendInteractor
.mfaConfirmOTP({token:this.otpConfirmToken
,password:this.currentPassword
}).then(function(e
){e
.error
?t
.error
=e
.error:t
.completeSetup()})},completeSetup:function(){this.setupState
.setupOTPState
="complete",this.setupState
.state
="complete",this.currentPassword
=null,this.error
=null,this.fetchSettings()},cancelSetup:function(){this.setupState
.setupOTPState
="",this.setupState
.state
="",this.currentPassword
=null,this.error
=null},fetchSettings:function(){var t
;return _t
.a
.async(function(e
){for(;;)switch(e
.prev
=e
.next
){case 0:return e
.next
=2,_t
.a
.awrap(this.backendInteractor
.settingsMFA());case 2:if(!(t
=e
.sent
).error
){e
.next
=5;break}return e
.abrupt("return");case 5:return this.settings
=t
.settings
,this.settings
.available
=!0,e
.abrupt("return",t
);case 8:case"end":return e
.stop()}},null,this)}},mounted:function(){var t
=this;this.fetchSettings().then(function(){t
.readyInit
=!0})}};var It=function(t
){s(613)},St
=Object(o
.a
)(Pt
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return t
.readyInit
&&t
.settings
.available
?s("div",{staticClass:"setting-item mfa-settings"},[s("div",{staticClass:"mfa-heading"},[s("h2",[t
._v(t
._s(t
.$t("settings.mfa.title")))])]),t
._v(" "),s("div",[t
.setupInProgress
?t
._e():s("div",{staticClass:"setting-item"},[s("h3",[t
._v(t
._s(t
.$t("settings.mfa.authentication_methods")))]),t
._v(" "),s("totp-item",{attrs:{settings:t
.settings
},on:{deactivate:t
.fetchSettings
,activate:t
.activateOTP
}}),t
._v(" "),s("br"),t
._v(" "),t
.settings
.enabled
?s("div",[t
.confirmNewBackupCodes
?t
._e():s("recovery-codes",{attrs:{"backup-codes":t
.backupCodes
}}),t
._v(" "),t
.confirmNewBackupCodes
?t
._e():s("button",{staticClass:"btn btn-default",on:{click:t
.getBackupCodes
}},[t
._v("\n "+t
._s(t
.$t("settings.mfa.generate_new_recovery_codes"))+"\n ")]),t
._v(" "),t
.confirmNewBackupCodes
?s("div",[s("confirm",{attrs:{disabled:t
.backupCodes
.inProgress
},on:{confirm:t
.confirmBackupCodes
,cancel:t
.cancelBackupCodes
}},[s("p",{staticClass:"warning"},[t
._v("\n "+t
._s(t
.$t("settings.mfa.warning_of_generate_new_codes"))+"\n ")])])],1):t
._e()],1):t
._e()],1),t
._v(" "),t
.setupInProgress
?s("div",[s("h3",[t
._v(t
._s(t
.$t("settings.mfa.setup_otp")))]),t
._v(" "),t
.setupOTPInProgress
?t
._e():s("recovery-codes",{attrs:{"backup-codes":t
.backupCodes
}}),t
._v(" "),t
.canSetupOTP
?s("button",{staticClass:"btn btn-default",on:{click:t
.cancelSetup
}},[t
._v("\n "+t
._s(t
.$t("general.cancel"))+"\n ")]):t
._e(),t
._v(" "),t
.canSetupOTP
?s("button",{staticClass:"btn btn-default",on:{click:t
.setupOTP
}},[t
._v("\n "+t
._s(t
.$t("settings.mfa.setup_otp"))+"\n ")]):t
._e(),t
._v(" "),t
.setupOTPInProgress
?[t
.prepareOTP
?s("i",[t
._v(t
._s(t
.$t("settings.mfa.wait_pre_setup_otp")))]):t
._e(),t
._v(" "),t
.confirmOTP
?s("div",[s("div",{staticClass:"setup-otp"},[s("div",{staticClass:"qr-code"},[s("h4",[t
._v(t
._s(t
.$t("settings.mfa.scan.title")))]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.mfa.scan.desc")))]),t
._v(" "),s("qrcode",{attrs:{value:t
.otpSettings
.provisioning_uri
,options:{width:200}}}),t
._v(" "),s("p",[t
._v("\n "+t
._s(t
.$t("settings.mfa.scan.secret_code"))+":\n "+t
._s(t
.otpSettings
.key
)+"\n ")])],1),t
._v(" "),s("div",{staticClass:"verify"},[s("h4",[t
._v(t
._s(t
.$t("general.verify")))]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.mfa.verify.desc")))]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.otpConfirmToken
,expression:"otpConfirmToken"}],attrs:{type:"text"},domProps:{value:t
.otpConfirmToken
},on:{input:function(e
){e
.target
.composing
||(t
.otpConfirmToken
=e
.target
.value
)}}}),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.enter_current_password_to_confirm"))+":")]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.currentPassword
,expression:"currentPassword"}],attrs:{type:"password"},domProps:{value:t
.currentPassword
},on:{input:function(e
){e
.target
.composing
||(t
.currentPassword
=e
.target
.value
)}}}),t
._v(" "),s("div",{staticClass:"confirm-otp-actions"},[s("button",{staticClass:"btn btn-default",on:{click:t
.doConfirmOTP
}},[t
._v("\n "+t
._s(t
.$t("settings.mfa.confirm_and_enable"))+"\n ")]),t
._v(" "),s("button",{staticClass:"btn btn-default",on:{click:t
.cancelSetup
}},[t
._v("\n "+t
._s(t
.$t("general.cancel"))+"\n ")])]),t
._v(" "),t
.error
?s("div",{staticClass:"alert error"},[t
._v("\n "+t
._s(t
.error
)+"\n ")]):t
._e()])])]):t
._e()]:t
._e()],2):t
._e()])]):t
._e()},[],!1,It
,null,null).exports
,jt
={data:function(){return{newEmail:"",changeEmailError:!1,changeEmailPassword:"",changedEmail:!1,deletingAccount:!1,deleteAccountConfirmPasswordInput:"",deleteAccountError:!1,changePasswordInputs:["","",""],changedPassword:!1,changePasswordError:!1}},created:function(){this.$store
.dispatch("fetchTokens")},components:{ProgressButton:I
.a
,Mfa:St
,Checkbox:d
.a
},computed:{user:function(){return this.$store
.state
.users
.currentUser
},pleromaBackend:function(){return this.$store
.state
.instance
.pleromaBackend
},oauthTokens:function(){return this.$store
.state
.oauthTokens
.tokens
.map(function(t
){return{id:t
.id
,appName:t
.app_name
,validUntil:new Date(t
.valid_until
).toLocaleDateString()}})}},methods:{confirmDelete:function(){this.deletingAccount
=!0},deleteAccount:function(){var t
=this;this.$store
.state
.api
.backendInteractor
.deleteAccount({password:this.deleteAccountConfirmPasswordInput
}).then(function(e
){"success"===e
.status
?(t
.$store
.dispatch("logout"),t
.$router
.push({name:"root"})):t
.deleteAccountError
=e
.error
})},changePassword:function(){var t
=this,e
={password:this.changePasswordInputs
[0],newPassword:this.changePasswordInputs
[1],newPasswordConfirmation:this.changePasswordInputs
[2]};this.$store
.state
.api
.backendInteractor
.changePassword(e
).then(function(e
){"success"===e
.status
?(t
.changedPassword
=!0,t
.changePasswordError
=!1,t
.logout()):(t
.changedPassword
=!1,t
.changePasswordError
=e
.error
)})},changeEmail:function(){var t
=this,e
={email:this.newEmail
,password:this.changeEmailPassword
};this.$store
.state
.api
.backendInteractor
.changeEmail(e
).then(function(e
){"success"===e
.status
?(t
.changedEmail
=!0,t
.changeEmailError
=!1):(t
.changedEmail
=!1,t
.changeEmailError
=e
.error
)})},logout:function(){this.$store
.dispatch("logout"),this.$router
.replace("/")},revokeToken:function(t
){window
.confirm("".concat(this.$i18n
.t("settings.revoke_token"),"?"))&&this.$store
.dispatch("revokeToken",t
)}}},Et
=Object(o
.a
)(jt
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{attrs:{label:t
.$t("settings.security_tab")}},[s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.change_email")))]),t
._v(" "),s("div",[s("p",[t
._v(t
._s(t
.$t("settings.new_email")))]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.newEmail
,expression:"newEmail"}],attrs:{type:"email",autocomplete:"email"},domProps:{value:t
.newEmail
},on:{input:function(e
){e
.target
.composing
||(t
.newEmail
=e
.target
.value
)}}})]),t
._v(" "),s("div",[s("p",[t
._v(t
._s(t
.$t("settings.current_password")))]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.changeEmailPassword
,expression:"changeEmailPassword"}],attrs:{type:"password",autocomplete:"current-password"},domProps:{value:t
.changeEmailPassword
},on:{input:function(e
){e
.target
.composing
||(t
.changeEmailPassword
=e
.target
.value
)}}})]),t
._v(" "),s("button",{staticClass:"btn btn-default",on:{click:t
.changeEmail
}},[t
._v("\n "+t
._s(t
.$t("general.submit"))+"\n ")]),t
._v(" "),t
.changedEmail
?s("p",[t
._v("\n "+t
._s(t
.$t("settings.changed_email"))+"\n ")]):t
._e(),t
._v(" "),!1!==t
.changeEmailError
?[s("p",[t
._v(t
._s(t
.$t("settings.change_email_error")))]),t
._v(" "),s("p",[t
._v(t
._s(t
.changeEmailError
))])]:t
._e()],2),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.change_password")))]),t
._v(" "),s("div",[s("p",[t
._v(t
._s(t
.$t("settings.current_password")))]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.changePasswordInputs
[0],expression:"changePasswordInputs[0]"}],attrs:{type:"password"},domProps:{value:t
.changePasswordInputs
[0]},on:{input:function(e
){e
.target
.composing
||t
.$set(t
.changePasswordInputs
,0,e
.target
.value
)}}})]),t
._v(" "),s("div",[s("p",[t
._v(t
._s(t
.$t("settings.new_password")))]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.changePasswordInputs
[1],expression:"changePasswordInputs[1]"}],attrs:{type:"password"},domProps:{value:t
.changePasswordInputs
[1]},on:{input:function(e
){e
.target
.composing
||t
.$set(t
.changePasswordInputs
,1,e
.target
.value
)}}})]),t
._v(" "),s("div",[s("p",[t
._v(t
._s(t
.$t("settings.confirm_new_password")))]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.changePasswordInputs
[2],expression:"changePasswordInputs[2]"}],attrs:{type:"password"},domProps:{value:t
.changePasswordInputs
[2]},on:{input:function(e
){e
.target
.composing
||t
.$set(t
.changePasswordInputs
,2,e
.target
.value
)}}})]),t
._v(" "),s("button",{staticClass:"btn btn-default",on:{click:t
.changePassword
}},[t
._v("\n "+t
._s(t
.$t("general.submit"))+"\n ")]),t
._v(" "),t
.changedPassword
?s("p",[t
._v("\n "+t
._s(t
.$t("settings.changed_password"))+"\n ")]):!1!==t
.changePasswordError
?s("p",[t
._v("\n "+t
._s(t
.$t("settings.change_password_error"))+"\n ")]):t
._e(),t
._v(" "),t
.changePasswordError
?s("p",[t
._v("\n "+t
._s(t
.changePasswordError
)+"\n ")]):t
._e()]),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.oauth_tokens")))]),t
._v(" "),s("table",{staticClass:"oauth-tokens"},[s("thead",[s("tr",[s("th",[t
._v(t
._s(t
.$t("settings.app_name")))]),t
._v(" "),s("th",[t
._v(t
._s(t
.$t("settings.valid_until")))]),t
._v(" "),s("th")])]),t
._v(" "),s("tbody",t
._l(t
.oauthTokens
,function(e
){return s("tr",{key:e
.id
},[s("td",[t
._v(t
._s(e
.appName
))]),t
._v(" "),s("td",[t
._v(t
._s(e
.validUntil
))]),t
._v(" "),s("td",{staticClass:"actions"},[s("button",{staticClass:"btn btn-default",on:{click:function(s
){return t
.revokeToken(e
.id
)}}},[t
._v("\n "+t
._s(t
.$t("settings.revoke_token"))+"\n ")])])])}),0)])]),t
._v(" "),s("mfa"),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.delete_account")))]),t
._v(" "),t
.deletingAccount
?t
._e():s("p",[t
._v("\n "+t
._s(t
.$t("settings.delete_account_description"))+"\n ")]),t
._v(" "),t
.deletingAccount
?s("div",[s("p",[t
._v(t
._s(t
.$t("settings.delete_account_instructions")))]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("login.password")))]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.deleteAccountConfirmPasswordInput
,expression:"deleteAccountConfirmPasswordInput"}],attrs:{type:"password"},domProps:{value:t
.deleteAccountConfirmPasswordInput
},on:{input:function(e
){e
.target
.composing
||(t
.deleteAccountConfirmPasswordInput
=e
.target
.value
)}}}),t
._v(" "),s("button",{staticClass:"btn btn-default",on:{click:t
.deleteAccount
}},[t
._v("\n "+t
._s(t
.$t("settings.delete_account"))+"\n ")])]):t
._e(),t
._v(" "),!1!==t
.deleteAccountError
?s("p",[t
._v("\n "+t
._s(t
.$t("settings.delete_account_error"))+"\n ")]):t
._e(),t
._v(" "),t
.deleteAccountError
?s("p",[t
._v("\n "+t
._s(t
.deleteAccountError
)+"\n ")]):t
._e(),t
._v(" "),t
.deletingAccount
?t
._e():s("button",{staticClass:"btn btn-default",on:{click:t
.confirmDelete
}},[t
._v("\n "+t
._s(t
.$t("general.submit"))+"\n ")])])],1)},[],!1,null,null,null).exports
,Rt
=s(188),Bt
=s
.n(Rt
),Ft
=s(96),Ut
=s
.n(Ft
),Mt
=s(27),Vt
=s
.n(Mt
),Dt
=s(622),At
=(s(623),{props:{trigger:{type:[String
,window
.Element
],required:!0},submitHandler:{type:Function
,required:!0},cropperOptions:{type:Object
,default:function(){return{aspectRatio:1,autoCropArea:1,viewMode:1,movable:!1,zoomable:!1,guides:!1}}},mimes:{type:String
,default:"image/png, image/gif, image/jpeg, image/bmp, image/x-icon"},saveButtonLabel:{type:String
},saveWithoutCroppingButtonlabel:{type:String
},cancelButtonLabel:{type:String
}},data:function(){return{cropper:void 0,dataUrl:void 0,filename:void 0,submitting:!1,submitError:null}},computed:{saveText:function(){return this.saveButtonLabel
||this.$t("image_cropper.save")},saveWithoutCroppingText:function(){return this.saveWithoutCroppingButtonlabel
||this.$t("image_cropper.save_without_cropping")},cancelText:function(){return this.cancelButtonLabel
||this.$t("image_cropper.cancel")},submitErrorMsg:function(){return this.submitError
&&this.submitError
instanceof Error
?this.submitError
.toString():this.submitError
}},methods:{destroy:function(){this.cropper
&&this.cropper
.destroy(),this.$refs
.input
.value
="",this.dataUrl
=void 0,this.$emit("close")},submit:function(){var t
=this,e
=!(arguments
.length
>0&&void 0!==arguments
[0])||arguments
[0];this.submitting
=!0,this.avatarUploadError
=null,this.submitHandler(e
&&this.cropper
,this.file
).then(function(){return t
.destroy()}).catch(function(e
){t
.submitError
=e
}).finally(function(){t
.submitting
=!1})},pickImage:function(){this.$refs
.input
.click()},createCropper:function(){this.cropper
=new Dt
.a(this.$refs
.img
,this.cropperOptions
)},getTriggerDOM:function(){return"object"===Vt()(this.trigger
)?this.trigger:document
.querySelector(this.trigger
)},readFile:function(){var t
=this,e
=this.$refs
.input
;if(null!=e
.files
&&null!=e
.files
[0]){this.file
=e
.files
[0];var s
=new window
.FileReader
;s
.onload=function(e
){t
.dataUrl
=e
.target
.result
,t
.$emit("open")},s
.readAsDataURL(this.file
),this.$emit("changed",this.file
,s
)}},clearError:function(){this.submitError
=null}},mounted:function(){var t
=this.getTriggerDOM();t
?t
.addEventListener("click",this.pickImage
):this.$emit("error","No image make trigger found.","user"),this.$refs
.input
.addEventListener("change",this.readFile
)},beforeDestroy:function(){var t
=this.getTriggerDOM();t
&&t
.removeEventListener("click",this.pickImage
),this.$refs
.input
.removeEventListener("change",this.readFile
)}});var Nt=function(t
){s(620)},Wt
=Object(o
.a
)(At
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"image-cropper"},[t
.dataUrl
?s("div",[s("div",{staticClass:"image-cropper-image-container"},[s("img",{ref:"img",attrs:{src:t
.dataUrl
,alt:""},on:{load:function(e
){return e
.stopPropagation(),t
.createCropper(e
)}}})]),t
._v(" "),s("div",{staticClass:"image-cropper-buttons-wrapper"},[s("button",{staticClass:"btn",attrs:{type:"button",disabled:t
.submitting
},domProps:{textContent:t
._s(t
.saveText
)},on:{click:function(e
){return t
.submit()}}}),t
._v(" "),s("button",{staticClass:"btn",attrs:{type:"button",disabled:t
.submitting
},domProps:{textContent:t
._s(t
.cancelText
)},on:{click:t
.destroy
}}),t
._v(" "),s("button",{staticClass:"btn",attrs:{type:"button",disabled:t
.submitting
},domProps:{textContent:t
._s(t
.saveWithoutCroppingText
)},on:{click:function(e
){return t
.submit(!1)}}}),t
._v(" "),t
.submitting
?s("i",{staticClass:"icon-spin4 animate-spin"}):t
._e()]),t
._v(" "),t
.submitError
?s("div",{staticClass:"alert error"},[t
._v("\n "+t
._s(t
.submitErrorMsg
)+"\n "),s("i",{staticClass:"button-icon icon-cancel",on:{click:t
.clearError
}})]):t
._e()]):t
._e(),t
._v(" "),s("input",{ref:"input",staticClass:"image-cropper-img-input",attrs:{type:"file",accept:t
.mimes
}})])},[],!1,Nt
,null,null).exports
,zt
=s(196),qt
=s(134),Gt
=s(195),Ht
=s(135),Kt
={data:function(){return{newName:this.$store
.state
.users
.currentUser
.name
,newBio:Bt()(this.$store
.state
.users
.currentUser
.description
),newLocked:this.$store
.state
.users
.currentUser
.locked
,newNoRichText:this.$store
.state
.users
.currentUser
.no_rich_text
,newDefaultScope:this.$store
.state
.users
.currentUser
.default_scope
,newFields:this.$store
.state
.users
.currentUser
.fields
.map(function(t
){return{name:t
.name
,value:t
.value
}}),hideFollows:this.$store
.state
.users
.currentUser
.hide_follows
,hideFollowers:this.$store
.state
.users
.currentUser
.hide_followers
,hideFollowsCount:this.$store
.state
.users
.currentUser
.hide_follows_count
,hideFollowersCount:this.$store
.state
.users
.currentUser
.hide_followers_count
,showRole:this.$store
.state
.users
.currentUser
.show_role
,role:this.$store
.state
.users
.currentUser
.role
,discoverable:this.$store
.state
.users
.currentUser
.discoverable
,bot:this.$store
.state
.users
.currentUser
.bot
,allowFollowingMove:this.$store
.state
.users
.currentUser
.allow_following_move
,pickAvatarBtnVisible:!0,bannerUploading:!1,backgroundUploading:!1,banner:null,bannerPreview:null,background:null,backgroundPreview:null,bannerUploadError:null,backgroundUploadError:null}},components:{ScopeSelector:zt
.a
,ImageCropper:Wt
,EmojiInput:Gt
.a
,Autosuggest:x
,ProgressButton:I
.a
,Checkbox:d
.a
},computed:{user:function(){return this.$store
.state
.users
.currentUser
},emojiUserSuggestor:function(){var t
=this;return Object(Ht
.a
)({emoji:[].concat(z()(this.$store
.state
.instance
.emoji
),z()(this.$store
.state
.instance
.customEmoji
)),users:this.$store
.state
.users
.users
,updateUsersList:function(e
){return t
.$store
.dispatch("searchUsers",{query:e
})}})},emojiSuggestor:function(){return Object(Ht
.a
)({emoji:[].concat(z()(this.$store
.state
.instance
.emoji
),z()(this.$store
.state
.instance
.customEmoji
))})},userSuggestor:function(){var t
=this;return Object(Ht
.a
)({users:this.$store
.state
.users
.users
,updateUsersList:function(e
){return t
.$store
.dispatch("searchUsers",{query:e
})}})},fieldsLimits:function(){return this.$store
.state
.instance
.fieldsLimits
},maxFields:function(){return this.fieldsLimits
?this.fieldsLimits
.maxFields:0},defaultAvatar:function(){return this.$store
.state
.instance
.server
+this.$store
.state
.instance
.defaultAvatar
},defaultBanner:function(){return this.$store
.state
.instance
.server
+this.$store
.state
.instance
.defaultBanner
},isDefaultAvatar:function(){var t
=this.$store
.state
.instance
.defaultAvatar
;return!this.$store
.state
.users
.currentUser
.profile_image_url
||this.$store
.state
.users
.currentUser
.profile_image_url
.includes(t
)},isDefaultBanner:function(){var t
=this.$store
.state
.instance
.defaultBanner
;return!this.$store
.state
.users
.currentUser
.cover_photo
||this.$store
.state
.users
.currentUser
.cover_photo
.includes(t
)},isDefaultBackground:function(){return!this.$store
.state
.users
.currentUser
.background_image
},avatarImgSrc:function(){var t
=this.$store
.state
.users
.currentUser
.profile_image_url_original
;return t
||this.defaultAvatar
},bannerImgSrc:function(){var t
=this.$store
.state
.users
.currentUser
.cover_photo
;return t
||this.defaultBanner
}},methods:{updateProfile:function(){var t
=this;this.$store
.state
.api
.backendInteractor
.updateProfile({params:{note:this.newBio
,locked:this.newLocked
,display_name:this.newName
,fields_attributes:this.newFields
.filter(function(t
){return null!=t
}),default_scope:this.newDefaultScope
,no_rich_text:this.newNoRichText
,hide_follows:this.hideFollows
,hide_followers:this.hideFollowers
,discoverable:this.discoverable
,bot:this.bot
,allow_following_move:this.allowFollowingMove
,hide_follows_count:this.hideFollowsCount
,hide_followers_count:this.hideFollowersCount
,show_role:this.showRole
}}).then(function(e
){t
.newFields
.splice(e
.fields
.length
),Ut()(t
.newFields
,e
.fields
),t
.$store
.commit("addNewUsers",[e
]),t
.$store
.commit("setCurrentUser",e
)})},changeVis:function(t
){this.newDefaultScope
=t
},addField:function(){return this.newFields
.length
<this.maxFields
&&(this.newFields
.push({name:"",value:""}),!0)},deleteField:function(t
,e
){this.$delete(this.newFields
,t
)},uploadFile:function(t
,e
){var s
=this,a
=e
.target
.files
[0];if(a
)if(a
.size
>this.$store
.state
.instance
[t
+"limit"]){var n
=qt
.a
.fileSizeFormat(a
.size
),o
=qt
.a
.fileSizeFormat(this.$store
.state
.instance
[t
+"limit"]);this[t
+"UploadError"]=[this.$t("upload.error.base"),this.$t("upload.error.file_too_big",{filesize:n
.num
,filesizeunit:n
.unit
,allowedsize:o
.num
,allowedsizeunit:o
.unit
})].join(" ")}else{var i
=new FileReader
;i
.onload=function(e
){var n
=e
.target
.result
;s
[t
+"Preview"]=n
,s
[t
]=a
},i
.readAsDataURL(a
)}},resetAvatar:function(){window
.confirm(this.$t("settings.reset_avatar_confirm"))&&this.submitAvatar(void 0,"")},resetBanner:function(){window
.confirm(this.$t("settings.reset_banner_confirm"))&&this.submitBanner("")},resetBackground:function(){window
.confirm(this.$t("settings.reset_background_confirm"))&&this.submitBackground("")},submitAvatar:function(t
,e
){var s
=this;return new Promise(function(a
,n
){function o(t
){s
.$store
.state
.api
.backendInteractor
.updateProfileImages({avatar:t
}).then(function(t
){s
.$store
.commit("addNewUsers",[t
]),s
.$store
.commit("setCurrentUser",t
),a()}).catch(function(t
){n(new Error(s
.$t("upload.error.base")+" "+t
.message
))})}t
?t
.getCroppedCanvas().toBlob(o
,e
.type
):o(e
)})},submitBanner:function(t
){var e
=this;(this.bannerPreview
||""===t
)&&(this.bannerUploading
=!0,this.$store
.state
.api
.backendInteractor
.updateProfileImages({banner:t
}).then(function(t
){e
.$store
.commit("addNewUsers",[t
]),e
.$store
.commit("setCurrentUser",t
),e
.bannerPreview
=null}).catch(function(t
){e
.bannerUploadError
=e
.$t("upload.error.base")+" "+t
.message
}).then(function(){e
.bannerUploading
=!1}))},submitBackground:function(t
){var e
=this;(this.backgroundPreview
||""===t
)&&(this.backgroundUploading
=!0,this.$store
.state
.api
.backendInteractor
.updateProfileImages({background:t
}).then(function(t
){t
.error
?e
.backgroundUploadError
=e
.$t("upload.error.base")+t
.error:(e
.$store
.commit("addNewUsers",[t
]),e
.$store
.commit("setCurrentUser",t
),e
.backgroundPreview
=null),e
.backgroundUploading
=!1}))}}};var Jt=function(t
){s(618)},Qt
=Object(o
.a
)(Kt
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"profile-tab"},[s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.name_bio")))]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.name")))]),t
._v(" "),s("EmojiInput",{attrs:{"enable-emoji-picker":"",suggest:t
.emojiSuggestor
},model:{value:t
.newName
,callback:function(e
){t
.newName
=e
},expression:"newName"}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t
.newName
,expression:"newName"}],attrs:{id:"username",classname:"name-changer"},domProps:{value:t
.newName
},on:{input:function(e
){e
.target
.composing
||(t
.newName
=e
.target
.value
)}}})]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.bio")))]),t
._v(" "),s("EmojiInput",{attrs:{"enable-emoji-picker":"",suggest:t
.emojiUserSuggestor
},model:{value:t
.newBio
,callback:function(e
){t
.newBio
=e
},expression:"newBio"}},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t
.newBio
,expression:"newBio"}],attrs:{classname:"bio"},domProps:{value:t
.newBio
},on:{input:function(e
){e
.target
.composing
||(t
.newBio
=e
.target
.value
)}}})]),t
._v(" "),s("p",[s("Checkbox",{model:{value:t
.newLocked
,callback:function(e
){t
.newLocked
=e
},expression:"newLocked"}},[t
._v("\n "+t
._s(t
.$t("settings.lock_account_description"))+"\n ")])],1),t
._v(" "),s("div",[s("label",{attrs:{for:"default-vis"}},[t
._v(t
._s(t
.$t("settings.default_vis")))]),t
._v(" "),s("div",{staticClass:"visibility-tray",attrs:{id:"default-vis"}},[s("scope-selector",{attrs:{"show-all":!0,"user-default":t
.newDefaultScope
,"initial-scope":t
.newDefaultScope
,"on-scope-change":t
.changeVis
}})],1)]),t
._v(" "),s("p",[s("Checkbox",{model:{value:t
.newNoRichText
,callback:function(e
){t
.newNoRichText
=e
},expression:"newNoRichText"}},[t
._v("\n "+t
._s(t
.$t("settings.no_rich_text_description"))+"\n ")])],1),t
._v(" "),s("p",[s("Checkbox",{model:{value:t
.hideFollows
,callback:function(e
){t
.hideFollows
=e
},expression:"hideFollows"}},[t
._v("\n "+t
._s(t
.$t("settings.hide_follows_description"))+"\n ")])],1),t
._v(" "),s("p",{staticClass:"setting-subitem"},[s("Checkbox",{attrs:{disabled:!t
.hideFollows
},model:{value:t
.hideFollowsCount
,callback:function(e
){t
.hideFollowsCount
=e
},expression:"hideFollowsCount"}},[t
._v("\n "+t
._s(t
.$t("settings.hide_follows_count_description"))+"\n ")])],1),t
._v(" "),s("p",[s("Checkbox",{model:{value:t
.hideFollowers
,callback:function(e
){t
.hideFollowers
=e
},expression:"hideFollowers"}},[t
._v("\n "+t
._s(t
.$t("settings.hide_followers_description"))+"\n ")])],1),t
._v(" "),s("p",{staticClass:"setting-subitem"},[s("Checkbox",{attrs:{disabled:!t
.hideFollowers
},model:{value:t
.hideFollowersCount
,callback:function(e
){t
.hideFollowersCount
=e
},expression:"hideFollowersCount"}},[t
._v("\n "+t
._s(t
.$t("settings.hide_followers_count_description"))+"\n ")])],1),t
._v(" "),s("p",[s("Checkbox",{model:{value:t
.allowFollowingMove
,callback:function(e
){t
.allowFollowingMove
=e
},expression:"allowFollowingMove"}},[t
._v("\n "+t
._s(t
.$t("settings.allow_following_move"))+"\n ")])],1),t
._v(" "),"admin"===t
.role
||"moderator"===t
.role
?s("p",[s("Checkbox",{model:{value:t
.showRole
,callback:function(e
){t
.showRole
=e
},expression:"showRole"}},["admin"===t
.role
?[t
._v("\n "+t
._s(t
.$t("settings.show_admin_badge"))+"\n ")]:t
._e(),t
._v(" "),"moderator"===t
.role
?[t
._v("\n "+t
._s(t
.$t("settings.show_moderator_badge"))+"\n ")]:t
._e()],2)],1):t
._e(),t
._v(" "),s("p",[s("Checkbox",{model:{value:t
.discoverable
,callback:function(e
){t
.discoverable
=e
},expression:"discoverable"}},[t
._v("\n "+t
._s(t
.$t("settings.discoverable"))+"\n ")])],1),t
._v(" "),t
.maxFields
>0?s("div",[s("p",[t
._v(t
._s(t
.$t("settings.profile_fields.label")))]),t
._v(" "),t
._l(t
.newFields
,function(e
,a
){return s("div",{key:a
,staticClass:"profile-fields"},[s("EmojiInput",{attrs:{"enable-emoji-picker":"","hide-emoji-button":"",suggest:t
.userSuggestor
},model:{value:t
.newFields
[a
].name
,callback:function(e
){t
.$set(t
.newFields
[a
],"name",e
)},expression:"newFields[i].name"}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t
.newFields
[a
].name
,expression:"newFields[i].name"}],attrs:{placeholder:t
.$t("settings.profile_fields.name")},domProps:{value:t
.newFields
[a
].name
},on:{input:function(e
){e
.target
.composing
||t
.$set(t
.newFields
[a
],"name",e
.target
.value
)}}})]),t
._v(" "),s("EmojiInput",{attrs:{"enable-emoji-picker":"","hide-emoji-button":"",suggest:t
.userSuggestor
},model:{value:t
.newFields
[a
].value
,callback:function(e
){t
.$set(t
.newFields
[a
],"value",e
)},expression:"newFields[i].value"}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t
.newFields
[a
].value
,expression:"newFields[i].value"}],attrs:{placeholder:t
.$t("settings.profile_fields.value")},domProps:{value:t
.newFields
[a
].value
},on:{input:function(e
){e
.target
.composing
||t
.$set(t
.newFields
[a
],"value",e
.target
.value
)}}})]),t
._v(" "),s("div",{staticClass:"icon-container"},[s("i",{directives:[{name:"show",rawName:"v-show",value:t
.newFields
.length
>1,expression:"newFields.length > 1"}],staticClass:"icon-cancel",on:{click:function(e
){return t
.deleteField(a
)}}})])],1)}),t
._v(" "),t
.newFields
.length
<t
.maxFields
?s("a",{staticClass:"add-field faint",on:{click:t
.addField
}},[s("i",{staticClass:"icon-plus"}),t
._v("\n "+t
._s(t
.$t("settings.profile_fields.add_field"))+"\n ")]):t
._e()],2):t
._e(),t
._v(" "),s("p",[s("Checkbox",{model:{value:t
.bot
,callback:function(e
){t
.bot
=e
},expression:"bot"}},[t
._v("\n "+t
._s(t
.$t("settings.bot"))+"\n ")])],1),t
._v(" "),s("button",{staticClass:"btn btn-default",attrs:{disabled:t
.newName
&&0===t
.newName
.length
},on:{click:t
.updateProfile
}},[t
._v("\n "+t
._s(t
.$t("general.submit"))+"\n ")])],1),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.avatar")))]),t
._v(" "),s("p",{staticClass:"visibility-notice"},[t
._v("\n "+t
._s(t
.$t("settings.avatar_size_instruction"))+"\n ")]),t
._v(" "),s("div",{staticClass:"current-avatar-container"},[s("img",{staticClass:"current-avatar",attrs:{src:t
.user
.profile_image_url_original
}}),t
._v(" "),!t
.isDefaultAvatar
&&t
.pickAvatarBtnVisible
?s("i",{staticClass:"reset-button icon-cancel",attrs:{title:t
.$t("settings.reset_avatar"),type:"button"},on:{click:t
.resetAvatar
}}):t
._e()]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.set_new_avatar")))]),t
._v(" "),s("button",{directives:[{name:"show",rawName:"v-show",value:t
.pickAvatarBtnVisible
,expression:"pickAvatarBtnVisible"}],staticClass:"btn",attrs:{id:"pick-avatar",type:"button"}},[t
._v("\n "+t
._s(t
.$t("settings.upload_a_photo"))+"\n ")]),t
._v(" "),s("image-cropper",{attrs:{trigger:"#pick-avatar","submit-handler":t
.submitAvatar
},on:{open:function(e
){t
.pickAvatarBtnVisible
=!1},close:function(e
){t
.pickAvatarBtnVisible
=!0}}})],1),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.profile_banner")))]),t
._v(" "),s("div",{staticClass:"banner-background-preview"},[s("img",{attrs:{src:t
.user
.cover_photo
}}),t
._v(" "),t
.isDefaultBanner
?t
._e():s("i",{staticClass:"reset-button icon-cancel",attrs:{title:t
.$t("settings.reset_profile_banner"),type:"button"},on:{click:t
.resetBanner
}})]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.set_new_profile_banner")))]),t
._v(" "),t
.bannerPreview
?s("img",{staticClass:"banner-background-preview",attrs:{src:t
.bannerPreview
}}):t
._e(),t
._v(" "),s("div",[s("input",{attrs:{type:"file"},on:{change:function(e
){return t
.uploadFile("banner",e
)}}})]),t
._v(" "),t
.bannerUploading
?s("i",{staticClass:" icon-spin4 animate-spin uploading"}):t
.bannerPreview
?s("button",{staticClass:"btn btn-default",on:{click:function(e
){return t
.submitBanner(t
.banner
)}}},[t
._v("\n "+t
._s(t
.$t("general.submit"))+"\n ")]):t
._e(),t
._v(" "),t
.bannerUploadError
?s("div",{staticClass:"alert error"},[t
._v("\n Error: "+t
._s(t
.bannerUploadError
)+"\n "),s("i",{staticClass:"button-icon icon-cancel",on:{click:function(e
){return t
.clearUploadError("banner")}}})]):t
._e()]),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.profile_background")))]),t
._v(" "),s("div",{staticClass:"banner-background-preview"},[s("img",{attrs:{src:t
.user
.background_image
}}),t
._v(" "),t
.isDefaultBackground
?t
._e():s("i",{staticClass:"reset-button icon-cancel",attrs:{title:t
.$t("settings.reset_profile_background"),type:"button"},on:{click:t
.resetBackground
}})]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.set_new_profile_background")))]),t
._v(" "),t
.backgroundPreview
?s("img",{staticClass:"banner-background-preview",attrs:{src:t
.backgroundPreview
}}):t
._e(),t
._v(" "),s("div",[s("input",{attrs:{type:"file"},on:{change:function(e
){return t
.uploadFile("background",e
)}}})]),t
._v(" "),t
.backgroundUploading
?s("i",{staticClass:" icon-spin4 animate-spin uploading"}):t
.backgroundPreview
?s("button",{staticClass:"btn btn-default",on:{click:function(e
){return t
.submitBackground(t
.background
)}}},[t
._v("\n "+t
._s(t
.$t("general.submit"))+"\n ")]):t
._e(),t
._v(" "),t
.backgroundUploadError
?s("div",{staticClass:"alert error"},[t
._v("\n Error: "+t
._s(t
.backgroundUploadError
)+"\n "),s("i",{staticClass:"button-icon icon-cancel",on:{click:function(e
){return t
.clearUploadError("background")}}})]):t
._e()])])},[],!1,Jt
,null,null).exports
,Xt
=s(74),Yt
=s(640),Zt
={computed:{languageCodes:function(){return Xt
.a
.languages
},languageNames:function(){return f()(this.languageCodes
,this.getLanguageName
)},language:{get:function(){return this.$store
.getters
.mergedConfig
.interfaceLanguage
},set:function(t
){this.$store
.dispatch("setOption",{name:"interfaceLanguage",value:t
})}}},methods:{getLanguageName:function(t
){return{ja:"Japanese (日本語)",ja_easy:"Japanese (やさしいにほんご)",zh:"Chinese (简体中文)"}[t
]||Yt
.a
.getName(t
)}}},te
=Object(o
.a
)(Zt
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",[s("label",{attrs:{for:"interface-language-switcher"}},[t
._v("\n "+t
._s(t
.$t("settings.interfaceLanguage"))+"\n ")]),t
._v(" "),s("label",{staticClass:"select",attrs:{for:"interface-language-switcher"}},[s("select",{directives:[{name:"model",rawName:"v-model",value:t
.language
,expression:"language"}],attrs:{id:"interface-language-switcher"},on:{change:function(e
){var s
=Array
.prototype.filter
.call(e
.target
.options
,function(t
){return t
.selected
}).map(function(t
){return"_value"in t
?t
._value:t
.value
});t
.language
=e
.target
.multiple
?s:s
[0]}}},t
._l(t
.languageCodes
,function(e
,a
){return s("option",{key:e
,domProps:{value:e
}},[t
._v("\n "+t
._s(t
.languageNames
[a
])+"\n ")])}),0),t
._v(" "),s("i",{staticClass:"icon-down-open"})])])},[],!1,null,null,null).exports
;function ee(t
,e
){var s
=Object
.keys(t
);if(Object
.getOwnPropertySymbols
){var a
=Object
.getOwnPropertySymbols(t
);e
&&(a
=a
.filter(function(e
){return Object
.getOwnPropertyDescriptor(t
,e
).enumerable
})),s
.push
.apply(s
,a
)}return s
}var se
={data:function(){return{loopSilentAvailable:Object
.getOwnPropertyDescriptor(HTMLVideoElement
.prototype,"mozHasAudio")||Object
.getOwnPropertyDescriptor(HTMLMediaElement
.prototype,"webkitAudioDecodedByteCount")||Object
.getOwnPropertyDescriptor(HTMLMediaElement
.prototype,"audioTracks")}},components:{Checkbox:d
.a
,InterfaceLanguageSwitcher:te
},computed:function(t
){for(var e
=1;e
<arguments
.length
;e
++){var s
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?ee(Object(s
),!0).forEach(function(e
){N()(t
,e
,s
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(s
)):ee(Object(s
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(s
,e
))})}return t
}({postFormats:function(){return this.$store
.state
.instance
.postFormats
||[]},instanceSpecificPanelPresent:function(){return this.$store
.state
.instance
.showInstanceSpecificPanel
}},vt())},ae
=Object(o
.a
)(se
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{attrs:{label:t
.$t("settings.general")}},[s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.interface")))]),t
._v(" "),s("ul",{staticClass:"setting-list"},[s("li",[s("interface-language-switcher")],1),t
._v(" "),t
.instanceSpecificPanelPresent
?s("li",[s("Checkbox",{model:{value:t
.hideISP
,callback:function(e
){t
.hideISP
=e
},expression:"hideISP"}},[t
._v("\n "+t
._s(t
.$t("settings.hide_isp"))+"\n ")])],1):t
._e()])]),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("nav.timeline")))]),t
._v(" "),s("ul",{staticClass:"setting-list"},[s("li",[s("Checkbox",{model:{value:t
.hideMutedPosts
,callback:function(e
){t
.hideMutedPosts
=e
},expression:"hideMutedPosts"}},[t
._v("\n "+t
._s(t
.$t("settings.hide_muted_posts"))+" "+t
._s(t
.$t("settings.instance_default",{value:t
.hideMutedPostsLocalizedValue
}))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.collapseMessageWithSubject
,callback:function(e
){t
.collapseMessageWithSubject
=e
},expression:"collapseMessageWithSubject"}},[t
._v("\n "+t
._s(t
.$t("settings.collapse_subject"))+" "+t
._s(t
.$t("settings.instance_default",{value:t
.collapseMessageWithSubjectLocalizedValue
}))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.streaming
,callback:function(e
){t
.streaming
=e
},expression:"streaming"}},[t
._v("\n "+t
._s(t
.$t("settings.streaming"))+"\n ")]),t
._v(" "),s("ul",{staticClass:"setting-list suboptions",class:[{disabled:!t
.streaming
}]},[s("li",[s("Checkbox",{attrs:{disabled:!t
.streaming
},model:{value:t
.pauseOnUnfocused
,callback:function(e
){t
.pauseOnUnfocused
=e
},expression:"pauseOnUnfocused"}},[t
._v("\n "+t
._s(t
.$t("settings.pause_on_unfocused"))+"\n ")])],1)])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.useStreamingApi
,callback:function(e
){t
.useStreamingApi
=e
},expression:"useStreamingApi"}},[t
._v("\n "+t
._s(t
.$t("settings.useStreamingApi"))+"\n "),s("br"),t
._v(" "),s("small",[t
._v("\n "+t
._s(t
.$t("settings.useStreamingApiWarning"))+"\n ")])])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.emojiReactionsOnTimeline
,callback:function(e
){t
.emojiReactionsOnTimeline
=e
},expression:"emojiReactionsOnTimeline"}},[t
._v("\n "+t
._s(t
.$t("settings.emoji_reactions_on_timeline"))+"\n ")])],1)])]),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.composing")))]),t
._v(" "),s("ul",{staticClass:"setting-list"},[s("li",[s("Checkbox",{model:{value:t
.scopeCopy
,callback:function(e
){t
.scopeCopy
=e
},expression:"scopeCopy"}},[t
._v("\n "+t
._s(t
.$t("settings.scope_copy"))+" "+t
._s(t
.$t("settings.instance_default",{value:t
.scopeCopyLocalizedValue
}))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.alwaysShowSubjectInput
,callback:function(e
){t
.alwaysShowSubjectInput
=e
},expression:"alwaysShowSubjectInput"}},[t
._v("\n "+t
._s(t
.$t("settings.subject_input_always_show"))+" "+t
._s(t
.$t("settings.instance_default",{value:t
.alwaysShowSubjectInputLocalizedValue
}))+"\n ")])],1),t
._v(" "),s("li",[s("div",[t
._v("\n "+t
._s(t
.$t("settings.subject_line_behavior"))+"\n "),s("label",{staticClass:"select",attrs:{for:"subjectLineBehavior"}},[s("select",{directives:[{name:"model",rawName:"v-model",value:t
.subjectLineBehavior
,expression:"subjectLineBehavior"}],attrs:{id:"subjectLineBehavior"},on:{change:function(e
){var s
=Array
.prototype.filter
.call(e
.target
.options
,function(t
){return t
.selected
}).map(function(t
){return"_value"in t
?t
._value:t
.value
});t
.subjectLineBehavior
=e
.target
.multiple
?s:s
[0]}}},[s("option",{attrs:{value:"email"}},[t
._v("\n "+t
._s(t
.$t("settings.subject_line_email"))+"\n "+t
._s("email"==t
.subjectLineBehaviorDefaultValue
?t
.$t("settings.instance_default_simple"):"")+"\n ")]),t
._v(" "),s("option",{attrs:{value:"masto"}},[t
._v("\n "+t
._s(t
.$t("settings.subject_line_mastodon"))+"\n "+t
._s("mastodon"==t
.subjectLineBehaviorDefaultValue
?t
.$t("settings.instance_default_simple"):"")+"\n ")]),t
._v(" "),s("option",{attrs:{value:"noop"}},[t
._v("\n "+t
._s(t
.$t("settings.subject_line_noop"))+"\n "+t
._s("noop"==t
.subjectLineBehaviorDefaultValue
?t
.$t("settings.instance_default_simple"):"")+"\n ")])]),t
._v(" "),s("i",{staticClass:"icon-down-open"})])])]),t
._v(" "),t
.postFormats
.length
>0?s("li",[s("div",[t
._v("\n "+t
._s(t
.$t("settings.post_status_content_type"))+"\n "),s("label",{staticClass:"select",attrs:{for:"postContentType"}},[s("select",{directives:[{name:"model",rawName:"v-model",value:t
.postContentType
,expression:"postContentType"}],attrs:{id:"postContentType"},on:{change:function(e
){var s
=Array
.prototype.filter
.call(e
.target
.options
,function(t
){return t
.selected
}).map(function(t
){return"_value"in t
?t
._value:t
.value
});t
.postContentType
=e
.target
.multiple
?s:s
[0]}}},t
._l(t
.postFormats
,function(e
){return s("option",{key:e
,domProps:{value:e
}},[t
._v("\n "+t
._s(t
.$t('post_status.content_type["'+e
+'"]'))+"\n "+t
._s(t
.postContentTypeDefaultValue
===e
?t
.$t("settings.instance_default_simple"):"")+"\n ")])}),0),t
._v(" "),s("i",{staticClass:"icon-down-open"})])])]):t
._e(),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.minimalScopesMode
,callback:function(e
){t
.minimalScopesMode
=e
},expression:"minimalScopesMode"}},[t
._v("\n "+t
._s(t
.$t("settings.minimal_scopes_mode"))+" "+t
._s(t
.$t("settings.instance_default",{value:t
.minimalScopesModeLocalizedValue
}))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.autohideFloatingPostButton
,callback:function(e
){t
.autohideFloatingPostButton
=e
},expression:"autohideFloatingPostButton"}},[t
._v("\n "+t
._s(t
.$t("settings.autohide_floating_post_button"))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.padEmoji
,callback:function(e
){t
.padEmoji
=e
},expression:"padEmoji"}},[t
._v("\n "+t
._s(t
.$t("settings.pad_emoji"))+"\n ")])],1)])]),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.attachments")))]),t
._v(" "),s("ul",{staticClass:"setting-list"},[s("li",[s("Checkbox",{model:{value:t
.hideAttachments
,callback:function(e
){t
.hideAttachments
=e
},expression:"hideAttachments"}},[t
._v("\n "+t
._s(t
.$t("settings.hide_attachments_in_tl"))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.hideAttachmentsInConv
,callback:function(e
){t
.hideAttachmentsInConv
=e
},expression:"hideAttachmentsInConv"}},[t
._v("\n "+t
._s(t
.$t("settings.hide_attachments_in_convo"))+"\n ")])],1),t
._v(" "),s("li",[s("label",{attrs:{for:"maxThumbnails"}},[t
._v("\n "+t
._s(t
.$t("settings.max_thumbnails"))+"\n ")]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model.number",value:t
.maxThumbnails
,expression:"maxThumbnails",modifiers:{number:!0}}],staticClass:"number-input",attrs:{id:"maxThumbnails",type:"number",min:"0",step:"1"},domProps:{value:t
.maxThumbnails
},on:{input:function(e
){e
.target
.composing
||(t
.maxThumbnails
=t
._n(e
.target
.value
))},blur:function(e
){return t
.$forceUpdate()}}})]),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.hideNsfw
,callback:function(e
){t
.hideNsfw
=e
},expression:"hideNsfw"}},[t
._v("\n "+t
._s(t
.$t("settings.nsfw_clickthrough"))+"\n ")])],1),t
._v(" "),s("ul",{staticClass:"setting-list suboptions"},[s("li",[s("Checkbox",{attrs:{disabled:!t
.hideNsfw
},model:{value:t
.preloadImage
,callback:function(e
){t
.preloadImage
=e
},expression:"preloadImage"}},[t
._v("\n "+t
._s(t
.$t("settings.preload_images"))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{attrs:{disabled:!t
.hideNsfw
},model:{value:t
.useOneClickNsfw
,callback:function(e
){t
.useOneClickNsfw
=e
},expression:"useOneClickNsfw"}},[t
._v("\n "+t
._s(t
.$t("settings.use_one_click_nsfw"))+"\n ")])],1)]),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.stopGifs
,callback:function(e
){t
.stopGifs
=e
},expression:"stopGifs"}},[t
._v("\n "+t
._s(t
.$t("settings.stop_gifs"))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.loopVideo
,callback:function(e
){t
.loopVideo
=e
},expression:"loopVideo"}},[t
._v("\n "+t
._s(t
.$t("settings.loop_video"))+"\n ")]),t
._v(" "),s("ul",{staticClass:"setting-list suboptions",class:[{disabled:!t
.streaming
}]},[s("li",[s("Checkbox",{attrs:{disabled:!t
.loopVideo
||!t
.loopSilentAvailable
},model:{value:t
.loopVideoSilentOnly
,callback:function(e
){t
.loopVideoSilentOnly
=e
},expression:"loopVideoSilentOnly"}},[t
._v("\n "+t
._s(t
.$t("settings.loop_video_silent_only"))+"\n ")]),t
._v(" "),t
.loopSilentAvailable
?t
._e():s("div",{staticClass:"unavailable"},[s("i",{staticClass:"icon-globe"}),t
._v("! "+t
._s(t
.$t("settings.limited_availability"))+"\n ")])],1)])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.playVideosInModal
,callback:function(e
){t
.playVideosInModal
=e
},expression:"playVideosInModal"}},[t
._v("\n "+t
._s(t
.$t("settings.play_videos_in_modal"))+"\n ")])],1),t
._v(" "),s("li",[s("Checkbox",{model:{value:t
.useContainFit
,callback:function(e
){t
.useContainFit
=e
},expression:"useContainFit"}},[t
._v("\n "+t
._s(t
.$t("settings.use_contain_fit"))+"\n ")])],1)])]),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.notifications")))]),t
._v(" "),s("ul",{staticClass:"setting-list"},[s("li",[s("Checkbox",{model:{value:t
.webPushNotifications
,callback:function(e
){t
.webPushNotifications
=e
},expression:"webPushNotifications"}},[t
._v("\n "+t
._s(t
.$t("settings.enable_web_push_notifications"))+"\n ")])],1)])]),t
._v(" "),s("div",{staticClass:"setting-item"},[s("h2",[t
._v(t
._s(t
.$t("settings.fun")))]),t
._v(" "),s("ul",{staticClass:"setting-list"},[s("li",[s("Checkbox",{model:{value:t
.greentext
,callback:function(e
){t
.greentext
=e
},expression:"greentext"}},[t
._v("\n "+t
._s(t
.$t("settings.greentext"))+" "+t
._s(t
.$t("settings.instance_default",{value:t
.greentextLocalizedValue
}))+"\n ")])],1)])])])},[],!1,null,null,null).exports
,ne
={data:function(){var t
=this.$store
.state
.instance
;return{backendVersion:t
.backendVersion
,frontendVersion:t
.frontendVersion
}},computed:{frontendVersionLink:function(){return"https://git.pleroma.social/pleroma/pleroma-fe/commit/"+this.frontendVersion
},backendVersionLink:function(){return"https://git.pleroma.social/pleroma/pleroma/commit/"+(t
=this.backendVersion
,(e
=t
.match(/-g(\w
+)/i
))?e
[1]:"");var t
,e
}}},oe
=Object(o
.a
)(ne
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{attrs:{label:t
.$t("settings.version.title")}},[s("div",{staticClass:"setting-item"},[s("ul",{staticClass:"setting-list"},[s("li",[s("p",[t
._v(t
._s(t
.$t("settings.version.backend_version")))]),t
._v(" "),s("ul",{staticClass:"option-list"},[s("li",[s("a",{attrs:{href:t
.backendVersionLink
,target:"_blank"}},[t
._v(t
._s(t
.backendVersion
))])])])]),t
._v(" "),s("li",[s("p",[t
._v(t
._s(t
.$t("settings.version.frontend_version")))]),t
._v(" "),s("ul",{staticClass:"option-list"},[s("li",[s("a",{attrs:{href:t
.frontendVersionLink
,target:"_blank"}},[t
._v(t
._s(t
.frontendVersion
))])])])])])])])},[],!1,null,null,null).exports
,ie
=s(9),re
=s(32),le
=s(29),ce
=s(40),ue
={components:{Checkbox:d
.a
},props:{name:{required:!0,type:String
},label:{required:!0,type:String
},value:{required:!1,type:String
,default:void 0},fallback:{required:!1,type:String
,default:void 0},disabled:{required:!1,type:Boolean
,default:!1},showOptionalTickbox:{required:!1,type:Boolean
,default:!0}},computed:{present:function(){return void 0!==this.value
},validColor:function(){return Object(ie
.f
)(this.value
||this.fallback
)},transparentColor:function(){return"transparent"===this.value
},computedColor:function(){return this.value
&&this.value
.startsWith("--")}}};var de=function(t
){s(626),s(628)},pe
=Object(o
.a
)(ue
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"color-input style-control",class:{disabled:!t
.present
||t
.disabled
}},[s("label",{staticClass:"label",attrs:{for:t
.name
}},[t
._v("\n "+t
._s(t
.label
)+"\n ")]),t
._v(" "),void 0!==t
.fallback
&&t
.showOptionalTickbox
?s("Checkbox",{staticClass:"opt",attrs:{checked:t
.present
,disabled:t
.disabled
},on:{change:function(e
){return t
.$emit("input",void 0===t
.value
?t
.fallback:void 0)}}}):t
._e(),t
._v(" "),s("div",{staticClass:"input color-input-field"},[s("input",{staticClass:"textColor unstyled",attrs:{id:t
.name
+"-t",type:"text",disabled:!t
.present
||t
.disabled
},domProps:{value:t
.value
||t
.fallback
},on:{input:function(e
){return t
.$emit("input",e
.target
.value
)}}}),t
._v(" "),t
.validColor
?s("input",{staticClass:"nativeColor unstyled",attrs:{id:t
.name
,type:"color",disabled:!t
.present
||t
.disabled
},domProps:{value:t
.value
||t
.fallback
},on:{input:function(e
){return t
.$emit("input",e
.target
.value
)}}}):t
._e(),t
._v(" "),t
.transparentColor
?s("div",{staticClass:"transparentIndicator"}):t
._e(),t
._v(" "),t
.computedColor
?s("div",{staticClass:"computedIndicator",style:{backgroundColor:t
.fallback
}}):t
._e()])],1)},[],!1,de
,null,null).exports
,me
=Object(o
.a
)({props:["name","value","fallback","disabled","label","max","min","step","hardMin","hardMax"],computed:{present:function(){return void 0!==this.value
}}},function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"range-control style-control",class:{disabled:!t
.present
||t
.disabled
}},[s("label",{staticClass:"label",attrs:{for:t
.name
}},[t
._v("\n "+t
._s(t
.label
)+"\n ")]),t
._v(" "),void 0!==t
.fallback
?s("input",{staticClass:"opt",attrs:{id:t
.name
+"-o",type:"checkbox"},domProps:{checked:t
.present
},on:{input:function(e
){return t
.$emit("input",t
.present
?void 0:t
.fallback
)}}}):t
._e(),t
._v(" "),void 0!==t
.fallback
?s("label",{staticClass:"opt-l",attrs:{for:t
.name
+"-o"}}):t
._e(),t
._v(" "),s("input",{staticClass:"input-number",attrs:{id:t
.name
,type:"range",disabled:!t
.present
||t
.disabled
,max:t
.max
||t
.hardMax
||100,min:t
.min
||t
.hardMin
||0,step:t
.step
||1},domProps:{value:t
.value
||t
.fallback
},on:{input:function(e
){return t
.$emit("input",e
.target
.value
)}}}),t
._v(" "),s("input",{staticClass:"input-number",attrs:{id:t
.name
,type:"number",disabled:!t
.present
||t
.disabled
,max:t
.hardMax
,min:t
.hardMin
,step:t
.step
||1},domProps:{value:t
.value
||t
.fallback
},on:{input:function(e
){return t
.$emit("input",e
.target
.value
)}}})])},[],!1,null,null,null).exports
,ve
={components:{Checkbox:d
.a
},props:["name","value","fallback","disabled"],computed:{present:function(){return void 0!==this.value
}}},he
=Object(o
.a
)(ve
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"opacity-control style-control",class:{disabled:!t
.present
||t
.disabled
}},[s("label",{staticClass:"label",attrs:{for:t
.name
}},[t
._v("\n "+t
._s(t
.$t("settings.style.common.opacity"))+"\n ")]),t
._v(" "),void 0!==t
.fallback
?s("Checkbox",{staticClass:"opt",attrs:{checked:t
.present
,disabled:t
.disabled
},on:{change:function(e
){return t
.$emit("input",t
.present
?void 0:t
.fallback
)}}}):t
._e(),t
._v(" "),s("input",{staticClass:"input-number",attrs:{id:t
.name
,type:"number",disabled:!t
.present
||t
.disabled
,max:"1",min:"0",step:".05"},domProps:{value:t
.value
||t
.fallback
},on:{input:function(e
){return t
.$emit("input",e
.target
.value
)}}})],1)},[],!1,null,null,null).exports
;function be(t
,e
){var s
=Object
.keys(t
);if(Object
.getOwnPropertySymbols
){var a
=Object
.getOwnPropertySymbols(t
);e
&&(a
=a
.filter(function(e
){return Object
.getOwnPropertyDescriptor(t
,e
).enumerable
})),s
.push
.apply(s
,a
)}return s
}var fe=function(){return function(t
){for(var e
=1;e
<arguments
.length
;e
++){var s
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?be(Object(s
),!0).forEach(function(e
){N()(t
,e
,s
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(s
)):be(Object(s
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(s
,e
))})}return t
}({x:0,y:0,blur:0,spread:0,inset:!1,color:"#000000",alpha:1},arguments
.length
>0&&void 0!==arguments
[0]?arguments
[0]:{})},ge
={props:["value","fallback","ready"],data:function(){return{selectedId:0,cValue:(this.value
||this.fallback
||[]).map(fe
)}},components:{ColorInput:pe
,OpacityInput:he
},methods:{add:function(){this.cValue
.push(fe(this.selected
)),this.selectedId
=this.cValue
.length
-1},del:function(){this.cValue
.splice(this.selectedId
,1),this.selectedId
=0===this.cValue
.length
?void 0:Math
.max(this.selectedId
-1,0)},moveUp:function(){var t
=this.cValue
.splice(this.selectedId
,1)[0];this.cValue
.splice(this.selectedId
-1,0,t
),this.selectedId
-=1},moveDn:function(){var t
=this.cValue
.splice(this.selectedId
,1)[0];this.cValue
.splice(this.selectedId
+1,0,t
),this.selectedId
+=1}},beforeUpdate:function(){this.cValue
=this.value
||this.fallback
},computed:{anyShadows:function(){return this.cValue
.length
>0},anyShadowsFallback:function(){return this.fallback
.length
>0},selected:function(){return this.ready
&&this.anyShadows
?this.cValue
[this.selectedId
]:fe({})},currentFallback:function(){return this.ready
&&this.anyShadowsFallback
?this.fallback
[this.selectedId
]:fe({})},moveUpValid:function(){return this.ready
&&this.selectedId
>0},moveDnValid:function(){return this.ready
&&this.selectedId
<this.cValue
.length
-1},present:function(){return this.ready
&&void 0!==this.cValue
[this.selectedId
]&&!this.usingFallback
},usingFallback:function(){return void 0===this.value
},rgb:function(){return Object(ie
.f
)(this.selected
.color
)},style:function(){return this.ready
?{boxShadow:Object(re
.i
)(this.fallback
)}:{}}}};var _e=function(t
){s(630)},we
=Object(o
.a
)(ge
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"shadow-control",class:{disabled:!t
.present
}},[s("div",{staticClass:"shadow-preview-container"},[s("div",{staticClass:"y-shift-control",attrs:{disabled:!t
.present
}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t
.selected
.y
,expression:"selected.y"}],staticClass:"input-number",attrs:{disabled:!t
.present
,type:"number"},domProps:{value:t
.selected
.y
},on:{input:function(e
){e
.target
.composing
||t
.$set(t
.selected
,"y",e
.target
.value
)}}}),t
._v(" "),s("div",{staticClass:"wrap"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t
.selected
.y
,expression:"selected.y"}],staticClass:"input-range",attrs:{disabled:!t
.present
,type:"range",max:"20",min:"-20"},domProps:{value:t
.selected
.y
},on:{__r:function(e
){return t
.$set(t
.selected
,"y",e
.target
.value
)}}})])]),t
._v(" "),s("div",{staticClass:"preview-window"},[s("div",{staticClass:"preview-block",style:t
.style
})]),t
._v(" "),s("div",{staticClass:"x-shift-control",attrs:{disabled:!t
.present
}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t
.selected
.x
,expression:"selected.x"}],staticClass:"input-number",attrs:{disabled:!t
.present
,type:"number"},domProps:{value:t
.selected
.x
},on:{input:function(e
){e
.target
.composing
||t
.$set(t
.selected
,"x",e
.target
.value
)}}}),t
._v(" "),s("div",{staticClass:"wrap"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t
.selected
.x
,expression:"selected.x"}],staticClass:"input-range",attrs:{disabled:!t
.present
,type:"range",max:"20",min:"-20"},domProps:{value:t
.selected
.x
},on:{__r:function(e
){return t
.$set(t
.selected
,"x",e
.target
.value
)}}})])])]),t
._v(" "),s("div",{staticClass:"shadow-tweak"},[s("div",{staticClass:"id-control style-control",attrs:{disabled:t
.usingFallback
}},[s("label",{staticClass:"select",attrs:{for:"shadow-switcher",disabled:!t
.ready
||t
.usingFallback
}},[s("select",{directives:[{name:"model",rawName:"v-model",value:t
.selectedId
,expression:"selectedId"}],staticClass:"shadow-switcher",attrs:{id:"shadow-switcher",disabled:!t
.ready
||t
.usingFallback
},on:{change:function(e
){var s
=Array
.prototype.filter
.call(e
.target
.options
,function(t
){return t
.selected
}).map(function(t
){return"_value"in t
?t
._value:t
.value
});t
.selectedId
=e
.target
.multiple
?s:s
[0]}}},t
._l(t
.cValue
,function(e
,a
){return s("option",{key:a
,domProps:{value:a
}},[t
._v("\n "+t
._s(t
.$t("settings.style.shadows.shadow_id",{value:a
}))+"\n ")])}),0),t
._v(" "),s("i",{staticClass:"icon-down-open"})]),t
._v(" "),s("button",{staticClass:"btn btn-default",attrs:{disabled:!t
.ready
||!t
.present
},on:{click:t
.del
}},[s("i",{staticClass:"icon-cancel"})]),t
._v(" "),s("button",{staticClass:"btn btn-default",attrs:{disabled:!t
.moveUpValid
},on:{click:t
.moveUp
}},[s("i",{staticClass:"icon-up-open"})]),t
._v(" "),s("button",{staticClass:"btn btn-default",attrs:{disabled:!t
.moveDnValid
},on:{click:t
.moveDn
}},[s("i",{staticClass:"icon-down-open"})]),t
._v(" "),s("button",{staticClass:"btn btn-default",attrs:{disabled:t
.usingFallback
},on:{click:t
.add
}},[s("i",{staticClass:"icon-plus"})])]),t
._v(" "),s("div",{staticClass:"inset-control style-control",attrs:{disabled:!t
.present
}},[s("label",{staticClass:"label",attrs:{for:"inset"}},[t
._v("\n "+t
._s(t
.$t("settings.style.shadows.inset"))+"\n ")]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.selected
.inset
,expression:"selected.inset"}],staticClass:"input-inset",attrs:{id:"inset",disabled:!t
.present
,name:"inset",type:"checkbox"},domProps:{checked:Array
.isArray(t
.selected
.inset
)?t
._i(t
.selected
.inset
,null)>-1:t
.selected
.inset
},on:{change:function(e
){var s
=t
.selected
.inset
,a
=e
.target
,n
=!!a
.checked
;if(Array
.isArray(s
)){var o
=t
._i(s
,null);a
.checked
?o
<0&&t
.$set(t
.selected
,"inset",s
.concat([null])):o
>-1&&t
.$set(t
.selected
,"inset",s
.slice(0,o
).concat(s
.slice(o
+1)))}else t
.$set(t
.selected
,"inset",n
)}}}),t
._v(" "),s("label",{staticClass:"checkbox-label",attrs:{for:"inset"}})]),t
._v(" "),s("div",{staticClass:"blur-control style-control",attrs:{disabled:!t
.present
}},[s("label",{staticClass:"label",attrs:{for:"spread"}},[t
._v("\n "+t
._s(t
.$t("settings.style.shadows.blur"))+"\n ")]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.selected
.blur
,expression:"selected.blur"}],staticClass:"input-range",attrs:{id:"blur",disabled:!t
.present
,name:"blur",type:"range",max:"20",min:"0"},domProps:{value:t
.selected
.blur
},on:{__r:function(e
){return t
.$set(t
.selected
,"blur",e
.target
.value
)}}}),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.selected
.blur
,expression:"selected.blur"}],staticClass:"input-number",attrs:{disabled:!t
.present
,type:"number",min:"0"},domProps:{value:t
.selected
.blur
},on:{input:function(e
){e
.target
.composing
||t
.$set(t
.selected
,"blur",e
.target
.value
)}}})]),t
._v(" "),s("div",{staticClass:"spread-control style-control",attrs:{disabled:!t
.present
}},[s("label",{staticClass:"label",attrs:{for:"spread"}},[t
._v("\n "+t
._s(t
.$t("settings.style.shadows.spread"))+"\n ")]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.selected
.spread
,expression:"selected.spread"}],staticClass:"input-range",attrs:{id:"spread",disabled:!t
.present
,name:"spread",type:"range",max:"20",min:"-20"},domProps:{value:t
.selected
.spread
},on:{__r:function(e
){return t
.$set(t
.selected
,"spread",e
.target
.value
)}}}),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.selected
.spread
,expression:"selected.spread"}],staticClass:"input-number",attrs:{disabled:!t
.present
,type:"number"},domProps:{value:t
.selected
.spread
},on:{input:function(e
){e
.target
.composing
||t
.$set(t
.selected
,"spread",e
.target
.value
)}}})]),t
._v(" "),s("ColorInput",{attrs:{disabled:!t
.present
,label:t
.$t("settings.style.common.color"),fallback:t
.currentFallback
.color
,"show-optional-tickbox":!1,name:"shadow"},model:{value:t
.selected
.color
,callback:function(e
){t
.$set(t
.selected
,"color",e
)},expression:"selected.color"}}),t
._v(" "),s("OpacityInput",{attrs:{disabled:!t
.present
},model:{value:t
.selected
.alpha
,callback:function(e
){t
.$set(t
.selected
,"alpha",e
)},expression:"selected.alpha"}}),t
._v(" "),s("i18n",{attrs:{path:"settings.style.shadows.hintV3",tag:"p"}},[s("code",[t
._v("--variable,mod")])])],1)])},[],!1,_e
,null,null).exports
,Ce
={props:["name","label","value","fallback","options","no-inherit"],data:function(){return{lValue:this.value
,availableOptions:[this.noInherit
?"":"inherit","custom"].concat(z()(this.options
||[]),["serif","monospace","sans-serif"]).filter(function(t
){return t
})}},beforeUpdate:function(){this.lValue
=this.value
},computed:{present:function(){return void 0!==this.lValue
},dValue:function(){return this.lValue
||this.fallback
||{}},family:{get:function(){return this.dValue
.family
},set:function(t
){Object(q
.set)(this.lValue
,"family",t
),this.$emit("input",this.lValue
)}},isCustom:function(){return"custom"===this.preset
},preset:{get:function(){return"serif"===this.family
||"sans-serif"===this.family
||"monospace"===this.family
||"inherit"===this.family
?this.family:"custom"},set:function(t
){this.family
="custom"===t
?"":t
}}}};var xe=function(t
){s(632)},ke
=Object(o
.a
)(Ce
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"font-control style-control",class:{custom:t
.isCustom
}},[s("label",{staticClass:"label",attrs:{for:"custom"===t
.preset
?t
.name:t
.name
+"-font-switcher"}},[t
._v("\n "+t
._s(t
.label
)+"\n ")]),t
._v(" "),void 0!==t
.fallback
?s("input",{staticClass:"opt exlcude-disabled",attrs:{id:t
.name
+"-o",type:"checkbox"},domProps:{checked:t
.present
},on:{input:function(e
){return t
.$emit("input",void 0===t
.value
?t
.fallback:void 0)}}}):t
._e(),t
._v(" "),void 0!==t
.fallback
?s("label",{staticClass:"opt-l",attrs:{for:t
.name
+"-o"}}):t
._e(),t
._v(" "),s("label",{staticClass:"select",attrs:{for:t
.name
+"-font-switcher",disabled:!t
.present
}},[s("select",{directives:[{name:"model",rawName:"v-model",value:t
.preset
,expression:"preset"}],staticClass:"font-switcher",attrs:{id:t
.name
+"-font-switcher",disabled:!t
.present
},on:{change:function(e
){var s
=Array
.prototype.filter
.call(e
.target
.options
,function(t
){return t
.selected
}).map(function(t
){return"_value"in t
?t
._value:t
.value
});t
.preset
=e
.target
.multiple
?s:s
[0]}}},t
._l(t
.availableOptions
,function(e
){return s("option",{key:e
,domProps:{value:e
}},[t
._v("\n "+t
._s("custom"===e
?t
.$t("settings.style.fonts.custom"):e
)+"\n ")])}),0),t
._v(" "),s("i",{staticClass:"icon-down-open"})]),t
._v(" "),t
.isCustom
?s("input",{directives:[{name:"model",rawName:"v-model",value:t
.family
,expression:"family"}],staticClass:"custom-font",attrs:{id:t
.name
,type:"text"},domProps:{value:t
.family
},on:{input:function(e
){e
.target
.composing
||(t
.family
=e
.target
.value
)}}}):t
._e()])},[],!1,xe
,null,null).exports
,ye
={props:{large:{required:!1},contrast:{required:!1,type:Object
}},computed:{hint:function(){var t
=this.contrast
.aaa
?"aaa":this.contrast
.aa
?"aa":"bad",e
=this.$t("settings.style.common.contrast.level.".concat(t
)),s
=this.$t("settings.style.common.contrast.context.text"),a
=this.contrast
.text
;return this.$t("settings.style.common.contrast.hint",{level:e
,context:s
,ratio:a
})},hint_18pt:function(){var t
=this.contrast
.laaa
?"aaa":this.contrast
.laa
?"aa":"bad",e
=this.$t("settings.style.common.contrast.level.".concat(t
)),s
=this.$t("settings.style.common.contrast.context.18pt"),a
=this.contrast
.text
;return this.$t("settings.style.common.contrast.hint",{level:e
,context:s
,ratio:a
})}}};var $e=function(t
){s(634)},Le
=Object(o
.a
)(ye
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return t
.contrast
?s("span",{staticClass:"contrast-ratio"},[s("span",{staticClass:"rating",attrs:{title:t
.hint
}},[t
.contrast
.aaa
?s("span",[s("i",{staticClass:"icon-thumbs-up-alt"})]):t
._e(),t
._v(" "),!t
.contrast
.aaa
&&t
.contrast
.aa
?s("span",[s("i",{staticClass:"icon-adjust"})]):t
._e(),t
._v(" "),t
.contrast
.aaa
||t
.contrast
.aa
?t
._e():s("span",[s("i",{staticClass:"icon-attention"})])]),t
._v(" "),t
.contrast
&&t
.large
?s("span",{staticClass:"rating",attrs:{title:t
.hint_18pt
}},[t
.contrast
.laaa
?s("span",[s("i",{staticClass:"icon-thumbs-up-alt"})]):t
._e(),t
._v(" "),!t
.contrast
.laaa
&&t
.contrast
.laa
?s("span",[s("i",{staticClass:"icon-adjust"})]):t
._e(),t
._v(" "),t
.contrast
.laaa
||t
.contrast
.laa
?t
._e():s("span",[s("i",{staticClass:"icon-attention"})])]):t
._e()]):t
._e()},[],!1,$e
,null,null).exports
,Te
={props:["exportObject","importLabel","exportLabel","importFailedText","validator","onImport","onImportFailure"],data:function(){return{importFailed:!1}},methods:{exportData:function(){var t
=JSON
.stringify(this.exportObject
,null,2),e
=document
.createElement("a");e
.setAttribute("download","pleroma_theme.json"),e
.setAttribute("href","data:application/json;base64,"+window
.btoa(t
)),e
.style
.display
="none",document
.body
.appendChild(e
),e
.click(),document
.body
.removeChild(e
)},importData:function(){var t
=this;this.importFailed
=!1;var e
=document
.createElement("input");e
.setAttribute("type","file"),e
.setAttribute("accept",".json"),e
.addEventListener("change",function(e
){if(e
.target
.files
[0]){var s
=new FileReader
;s
.onload=function(e
){var s
=e
.target
;try{var a
=JSON
.parse(s
.result
);t
.validator(a
)?t
.onImport(a
):t
.importFailed
=!0}catch(e
){t
.importFailed
=!0}},s
.readAsText(e
.target
.files
[0])}}),document
.body
.appendChild(e
),e
.click(),document
.body
.removeChild(e
)}}};var Oe=function(t
){s(636)},Pe
=Object(o
.a
)(Te
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"import-export-container"},[t
._t("before"),t
._v(" "),s("button",{staticClass:"btn",on:{click:t
.exportData
}},[t
._v("\n "+t
._s(t
.exportLabel
)+"\n ")]),t
._v(" "),s("button",{staticClass:"btn",on:{click:t
.importData
}},[t
._v("\n "+t
._s(t
.importLabel
)+"\n ")]),t
._v(" "),t
._t("afterButtons"),t
._v(" "),t
.importFailed
?s("p",{staticClass:"alert error"},[t
._v("\n "+t
._s(t
.importFailedText
)+"\n ")]):t
._e(),t
._v(" "),t
._t("afterError")],2)},[],!1,Oe
,null,null).exports
;var Ie=function(t
){s(638)},Se
=Object(o
.a
)(null,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"preview-container"},[s("div",{staticClass:"underlay underlay-preview"}),t
._v(" "),s("div",{staticClass:"panel dummy"},[s("div",{staticClass:"panel-heading"},[s("div",{staticClass:"title"},[t
._v("\n "+t
._s(t
.$t("settings.style.preview.header"))+"\n "),s("span",{staticClass:"badge badge-notification"},[t
._v("\n 99\n ")])]),t
._v(" "),s("span",{staticClass:"faint"},[t
._v("\n "+t
._s(t
.$t("settings.style.preview.header_faint"))+"\n ")]),t
._v(" "),s("span",{staticClass:"alert error"},[t
._v("\n "+t
._s(t
.$t("settings.style.preview.error"))+"\n ")]),t
._v(" "),s("button",{staticClass:"btn"},[t
._v("\n "+t
._s(t
.$t("settings.style.preview.button"))+"\n ")])]),t
._v(" "),s("div",{staticClass:"panel-body theme-preview-content"},[s("div",{staticClass:"post"},[s("div",{staticClass:"avatar still-image"},[t
._v("\n ( ͡° ͜ʖ ͡°)\n ")]),t
._v(" "),s("div",{staticClass:"content"},[s("h4",[t
._v("\n "+t
._s(t
.$t("settings.style.preview.content"))+"\n ")]),t
._v(" "),s("i18n",{attrs:{path:"settings.style.preview.text"}},[s("code",{staticStyle:{"font-family":"var(--postCodeFont)"}},[t
._v("\n "+t
._s(t
.$t("settings.style.preview.mono"))+"\n ")]),t
._v(" "),s("a",{staticStyle:{color:"var(--link)"}},[t
._v("\n "+t
._s(t
.$t("settings.style.preview.link"))+"\n ")])]),t
._v(" "),t
._m(0)],1)]),t
._v(" "),s("div",{staticClass:"after-post"},[s("div",{staticClass:"avatar-alt"},[t
._v("\n :^)\n ")]),t
._v(" "),s("div",{staticClass:"content"},[s("i18n",{staticClass:"faint",attrs:{path:"settings.style.preview.fine_print",tag:"span"}},[s("a",{staticStyle:{color:"var(--faintLink)"}},[t
._v("\n "+t
._s(t
.$t("settings.style.preview.faint_link"))+"\n ")])])],1)]),t
._v(" "),s("div",{staticClass:"separator"}),t
._v(" "),s("span",{staticClass:"alert error"},[t
._v("\n "+t
._s(t
.$t("settings.style.preview.error"))+"\n ")]),t
._v(" "),s("input",{attrs:{type:"text"},domProps:{value:t
.$t("settings.style.preview.input")}}),t
._v(" "),s("div",{staticClass:"actions"},[s("span",{staticClass:"checkbox"},[s("input",{attrs:{id:"preview_checkbox",checked:"very yes",type:"checkbox"}}),t
._v(" "),s("label",{attrs:{for:"preview_checkbox"}},[t
._v(t
._s(t
.$t("settings.style.preview.checkbox")))])]),t
._v(" "),s("button",{staticClass:"btn"},[t
._v("\n "+t
._s(t
.$t("settings.style.preview.button"))+"\n ")])])])])])},[function(){var t
=this.$createElement
,e
=this._self
._c
||t
;return e("div",{staticClass:"icons"},[e("i",{staticClass:"button-icon icon-reply",staticStyle:{color:"var(--cBlue)"}}),this._v(" "),e("i",{staticClass:"button-icon icon-retweet",staticStyle:{color:"var(--cGreen)"}}),this._v(" "),e("i",{staticClass:"button-icon icon-star",staticStyle:{color:"var(--cOrange)"}}),this._v(" "),e("i",{staticClass:"button-icon icon-cancel",staticStyle:{color:"var(--cRed)"}})])}],!1,Ie
,null,null).exports
;function je(t
,e
){var s
=Object
.keys(t
);if(Object
.getOwnPropertySymbols
){var a
=Object
.getOwnPropertySymbols(t
);e
&&(a
=a
.filter(function(e
){return Object
.getOwnPropertyDescriptor(t
,e
).enumerable
})),s
.push
.apply(s
,a
)}return s
}function Ee(t
){for(var e
=1;e
<arguments
.length
;e
++){var s
=null!=arguments
[e
]?arguments
[e
]:{};e
%2?je(Object(s
),!0).forEach(function(e
){N()(t
,e
,s
[e
])}):Object
.getOwnPropertyDescriptors
?Object
.defineProperties(t
,Object
.getOwnPropertyDescriptors(s
)):je(Object(s
)).forEach(function(e
){Object
.defineProperty(t
,e
,Object
.getOwnPropertyDescriptor(s
,e
))})}return t
}var Re
=["bg","fg","text","link","cRed","cGreen","cBlue","cOrange"].map(function(t
){return t
+"ColorLocal"}),Be
={data:function(){return Ee({availableStyles:[],selected:this.$store
.getters
.mergedConfig
.theme
,themeWarning:void 0,tempImportFile:void 0,engineVersion:0,previewShadows:{},previewColors:{},previewRadii:{},previewFonts:{},shadowsInvalid:!0,colorsInvalid:!0,radiiInvalid:!0,keepColor:!1,keepShadows:!1,keepOpacity:!1,keepRoundness:!1,keepFonts:!1},Object
.keys(le
.c
).map(function(t
){return[t
,""]}).reduce(function(t
,e
){var s
=D()(e
,2),a
=s
[0],n
=s
[1];return Ee({},t
,N()({},a
+"ColorLocal",n
))},{}),{},Object
.keys(ce
.b
).map(function(t
){return[t
,""]}).reduce(function(t
,e
){var s
=D()(e
,2),a
=s
[0],n
=s
[1];return Ee({},t
,N()({},a
+"OpacityLocal",n
))},{}),{shadowSelected:void 0,shadowsLocal:{},fontsLocal:{},btnRadiusLocal:"",inputRadiusLocal:"",checkboxRadiusLocal:"",panelRadiusLocal:"",avatarRadiusLocal:"",avatarAltRadiusLocal:"",attachmentRadiusLocal:"",tooltipRadiusLocal:"",chatMessageRadiusLocal:""})},created:function(){var t
=this;Object(re
.k
)().then(function(t
){return Promise
.all(Object
.entries(t
).map(function(t
){var e
=D()(t
,2),s
=e
[0];return e
[1].then(function(t
){return[s
,t
]})}))}).then(function(t
){return t
.reduce(function(t
,e
){var s
=D()(e
,2),a
=s
[0],n
=s
[1];return n
?Ee({},t
,N()({},a
,n
)):t
},{})}).then(function(e
){t
.availableStyles
=e
})},mounted:function(){this.loadThemeFromLocalStorage(),void 0===this.shadowSelected
&&(this.shadowSelected
=this.shadowsAvailable
[0])},computed:{themeWarningHelp:function(){if(this.themeWarning
){var t
=this.$t
,e
="settings.style.switcher.help.",s
=this.themeWarning
,a
=s
.origin
,n
=s
.themeEngineVersion
,o
=s
.type
,i
=s
.noActionsPossible
;if("file"===a
){if(2===n
&&"wrong_version"===o
)return t(e
+"v2_imported");if(n
>ce
.a
)return t(e
+"future_version_imported")+" "+t(i
?e
+"snapshot_missing":e
+"snapshot_present");if(n
<ce
.a
)return t(e
+"future_version_imported")+" "+t(i
?e
+"snapshot_missing":e
+"snapshot_present")}else if("localStorage"===a
){if("snapshot_source_mismatch"===o
)return t(e
+"snapshot_source_mismatch");if(2===n
)return t(e
+"upgraded_from_v2");if(n
>ce
.a
)return t(e
+"fe_downgraded")+" "+t(i
?e
+"migration_snapshot_ok":e
+"migration_snapshot_gone");if(n
<ce
.a
)return t(e
+"fe_upgraded")+" "+t(i
?e
+"migration_snapshot_ok":e
+"migration_snapshot_gone")}}},selectedVersion:function(){return Array
.isArray(this.selected
)?1:2},currentColors:function(){var t
=this;return Object
.keys(le
.c
).map(function(e
){return[e
,t
[e
+"ColorLocal"]]}).reduce(function(t
,e
){var s
=D()(e
,2),a
=s
[0],n
=s
[1];return Ee({},t
,N()({},a
,n
))},{})},currentOpacity:function(){var t
=this;return Object
.keys(ce
.b
).map(function(e
){return[e
,t
[e
+"OpacityLocal"]]}).reduce(function(t
,e
){var s
=D()(e
,2),a
=s
[0],n
=s
[1];return Ee({},t
,N()({},a
,n
))},{})},currentRadii:function(){return{btn:this.btnRadiusLocal
,input:this.inputRadiusLocal
,checkbox:this.checkboxRadiusLocal
,panel:this.panelRadiusLocal
,avatar:this.avatarRadiusLocal
,avatarAlt:this.avatarAltRadiusLocal
,tooltip:this.tooltipRadiusLocal
,attachment:this.attachmentRadiusLocal
,chatMessage:this.chatMessageRadiusLocal
}},preview:function(){return Object(re
.d
)(this.previewColors
,this.previewRadii
,this.previewShadows
,this.previewFonts
)},previewTheme:function(){return this.preview
.theme
.colors
?this.preview
.theme:{colors:{},opacity:{},radii:{},shadows:{},fonts:{}}},previewContrast:function(){try{if(!this.previewTheme
.colors
.bg
)return{};var t
=this.previewTheme
.colors
,e
=this.previewTheme
.opacity
;if(!t
.bg
)return{};var s
=Object
.entries(t
).reduce(function(t
,e
){var s
,a
=D()(e
,2),n
=a
[0],o
=a
[1];return Ee({},t
,N()({},n
,(s
=o
).startsWith("--")||"transparent"===s
?s:Object(ie
.f
)(s
)))},{}),a
=Object
.entries(le
.c
).reduce(function(t
,a
){var n
=D()(a
,2),o
=n
[0],i
=n
[1],r
="text"===o
||"link"===o
;if(!(r
||"object"===Vt()(i
)&&null!==i
&&i
.textColor
))return t
;var l
=r
?{layer:"bg"}:i
,c
=l
.layer
,u
=l
.variant
,d
=u
||c
,p
=Object(ce
.f
)(d
),m
=[o
].concat(z()("bg"===d
?["cRed","cGreen","cBlue","cOrange"]:[])),v
=Object(ce
.e
)(c
,u
||c
,p
,s
,e
);return Ee({},t
,{},m
.reduce(function(t
,e
){var a
=r
?"bg"+e
[0].toUpperCase()+e
.slice(1):e
;return Ee({},t
,N()({},a
,Object(ie
.c
)(s
[e
],v
,s
[e
])))},{}))},{});return Object
.entries(a
).reduce(function(t
,e
){var s
,a
=D()(e
,2),n
=a
[0],o
=a
[1];return t
[n
]={text:(s
=o
).toPrecision(3)+":1",aa:s
>=4.5,aaa:s
>=7,laa:s
>=3,laaa:s
>=4.5},t
},{})}catch(t
){console
.warn("Failure computing contrasts",t
)}},previewRules:function(){return this.preview
.rules
?[].concat(z()(Object
.values(this.preview
.rules
)),["color: var(--text)","font-family: var(--interfaceFont, sans-serif)"]).join(";"):""},shadowsAvailable:function(){return Object
.keys(re
.a
).sort()},currentShadowOverriden:{get:function(){return!!this.currentShadow
},set:function(t
){t
?Object(q
.set)(this.shadowsLocal
,this.shadowSelected
,this.currentShadowFallback
.map(function(t
){return Object
.assign({},t
)})):Object(q
.delete)(this.shadowsLocal
,this.shadowSelected
)}},currentShadowFallback:function(){return(this.previewTheme
.shadows
||{})[this.shadowSelected
]},currentShadow:{get:function(){return this.shadowsLocal
[this.shadowSelected
]},set:function(t
){Object(q
.set)(this.shadowsLocal
,this.shadowSelected
,t
)}},themeValid:function(){return!this.shadowsInvalid
&&!this.colorsInvalid
&&!this.radiiInvalid
},exportedTheme:function(){var t
=!(this.keepFonts
||this.keepShadows
||this.keepOpacity
||this.keepRoundness
||this.keepColor
),e
={themeEngineVersion:ce
.a
};return(this.keepFonts
||t
)&&(e
.fonts
=this.fontsLocal
),(this.keepShadows
||t
)&&(e
.shadows
=this.shadowsLocal
),(this.keepOpacity
||t
)&&(e
.opacity
=this.currentOpacity
),(this.keepColor
||t
)&&(e
.colors
=this.currentColors
),(this.keepRoundness
||t
)&&(e
.radii
=this.currentRadii
),{_pleroma_theme_version:2,theme:Ee({themeEngineVersion:ce
.a
},this.previewTheme
),source:e
}}},components:{ColorInput:pe
,OpacityInput:he
,RangeInput:me
,ContrastRatio:Le
,ShadowControl:we
,FontControl:ke
,TabSwitcher:a
.a
,Preview:Se
,ExportImport:Pe
,Checkbox:d
.a
},methods:{loadTheme:function(t
,e
){var s
=t
.theme
,a
=t
.source
,n
=t
._pleroma_theme_version
,o
=arguments
.length
>2&&void 0!==arguments
[2]&&arguments
[2];if(this.dismissWarning(),!a
&&!s
)throw new Error("Can't load theme: empty");var i
="localStorage"!==e
||s
.colors
?n:"l1",r
=(s
||{}).themeEngineVersion
,l
=(a
||{}).themeEngineVersion
||2,c
=l
===ce
.a
,u
=void 0!==s
&&void 0!==a
&&l
!==r
,d
=a
&&o
||!s
;c
&&!u
||d
||"l1"===i
||"defaults"===e
||(u
&&"localStorage"===e
?this.themeWarning
={origin:e
,themeEngineVersion:l
,type:"snapshot_source_mismatch"}:s
?c
||(this.themeWarning
={origin:e
,noActionsPossible:!a
,themeEngineVersion:l
,type:"wrong_version"}):this.themeWarning
={origin:e
,noActionsPossible:!0,themeEngineVersion:l
,type:"no_snapshot_old_version"}),this.normalizeLocalState(s
,i
,a
,d
)},forceLoadLocalStorage:function(){this.loadThemeFromLocalStorage(!0)},dismissWarning:function(){this.themeWarning
=void 0,this.tempImportFile
=void 0},forceLoad:function(){switch(this.themeWarning
.origin
){case"localStorage":this.loadThemeFromLocalStorage(!0);break;case"file":this.onImport(this.tempImportFile
,!0)}this.dismissWarning()},forceSnapshot:function(){switch(this.themeWarning
.origin
){case"localStorage":this.loadThemeFromLocalStorage(!1,!0);break;case"file":console
.err("Forcing snapshout from file is not supported yet")}this.dismissWarning()},loadThemeFromLocalStorage:function(){var t
=arguments
.length
>0&&void 0!==arguments
[0]&&arguments
[0],e
=arguments
.length
>1&&void 0!==arguments
[1]&&arguments
[1],s
=this.$store
.getters
.mergedConfig
,a
=s
.customTheme
,n
=s
.customThemeSource
;a
||n
?this.loadTheme({theme:a
,source:e
?a:n
},"localStorage",t
):this.loadTheme(this.$store
.state
.instance
.themeData
,"defaults",t
)},setCustomTheme:function(){this.$store
.dispatch("setOption",{name:"customTheme",value:Ee({themeEngineVersion:ce
.a
},this.previewTheme
)}),this.$store
.dispatch("setOption",{name:"customThemeSource",value:{themeEngineVersion:ce
.a
,shadows:this.shadowsLocal
,fonts:this.fontsLocal
,opacity:this.currentOpacity
,colors:this.currentColors
,radii:this.currentRadii
}})},updatePreviewColorsAndShadows:function(){this.previewColors
=Object(re
.e
)({opacity:this.currentOpacity
,colors:this.currentColors
}),this.previewShadows
=Object(re
.h
)({shadows:this.shadowsLocal
,opacity:this.previewTheme
.opacity
,themeEngineVersion:this.engineVersion
},this.previewColors
.theme
.colors
,this.previewColors
.mod
)},onImport:function(t
){var e
=arguments
.length
>1&&void 0!==arguments
[1]&&arguments
[1];this.tempImportFile
=t
,this.loadTheme(t
,"file",e
)},importValidator:function(t
){var e
=t
._pleroma_theme_version
;return e
>=1||e
<=2},clearAll:function(){this.loadThemeFromLocalStorage()},clearV1:function(){var t
=this;Object
.keys(this.$data
).filter(function(t
){return t
.endsWith("ColorLocal")||t
.endsWith("OpacityLocal")}).filter(function(t
){return!Re
.includes(t
)}).forEach(function(e
){Object(q
.set)(t
.$data
,e
,void 0)})},clearRoundness:function(){var t
=this;Object
.keys(this.$data
).filter(function(t
){return t
.endsWith("RadiusLocal")}).forEach(function(e
){Object(q
.set)(t
.$data
,e
,void 0)})},clearOpacity:function(){var t
=this;Object
.keys(this.$data
).filter(function(t
){return t
.endsWith("OpacityLocal")}).forEach(function(e
){Object(q
.set)(t
.$data
,e
,void 0)})},clearShadows:function(){this.shadowsLocal
={}},clearFonts:function(){this.fontsLocal
={}},normalizeLocalState:function(t
){var e
,s
=this,a
=arguments
.length
>1&&void 0!==arguments
[1]?arguments
[1]:0,n
=arguments
.length
>2?arguments
[2]:void 0,o
=arguments
.length
>3&&void 0!==arguments
[3]&&arguments
[3];void 0!==n
&&(o
||n
.themeEngineVersion
===ce
.a
)?(e
=n
,a
=n
.themeEngineVersion
):e
=t
;var i
=e
.radii
||e
,r
=e
.opacity
,l
=e
.shadows
||{},c
=e
.fonts
||{},u
=e
.themeEngineVersion
?e
.colors
||e:Object(re
.c
)(e
.colors
||e
);if(0===a
&&(e
.version
&&(a
=e
.version
),void 0===u
.text
&&void 0!==u
.fg
&&(a
=1),void 0!==u
.text
&&void 0!==u
.fg
&&(a
=2)),this.engineVersion
=a
,1===a
&&(this.fgColorLocal
=Object(ie
.i
)(u
.btn
),this.textColorLocal
=Object(ie
.i
)(u
.fg
)),!this.keepColor
){this.clearV1();var d
=new Set(1!==a
?Object
.keys(le
.c
):[]);1!==a
&&"l1"!==a
||d
.add("bg").add("link").add("cRed").add("cBlue").add("cGreen").add("cOrange"),d
.forEach(function(t
){var e
=u
[t
],a
=Object(ie
.i
)(u
[t
]);s
[t
+"ColorLocal"]="#aN"===a
?e:a
})}r
&&!this.keepOpacity
&&(this.clearOpacity(),Object
.entries(r
).forEach(function(t
){var e
=D()(t
,2),a
=e
[0],n
=e
[1];null==n
||Number
.isNaN(n
)||(s
[a
+"OpacityLocal"]=n
)})),this.keepRoundness
||(this.clearRoundness(),Object
.entries(i
).forEach(function(t
){var e
=D()(t
,2),a
=e
[0],n
=e
[1],o
=a
.endsWith("Radius")?a
.split("Radius")[0]:a
;s
[o
+"RadiusLocal"]=n
})),this.keepShadows
||(this.clearShadows(),this.shadowsLocal
=2===a
?Object(re
.m
)(l
,this.previewTheme
.opacity
):l
,this.shadowSelected
=this.shadowsAvailable
[0]),this.keepFonts
||(this.clearFonts(),this.fontsLocal
=c
)}},watch:{currentRadii:function(){try{this.previewRadii
=Object(re
.g
)({radii:this.currentRadii
}),this.radiiInvalid
=!1}catch(t
){this.radiiInvalid
=!0,console
.warn(t
)}},shadowsLocal:{handler:function(){if(1!==Object
.getOwnPropertyNames(this.previewColors
).length
)try{this.updatePreviewColorsAndShadows(),this.shadowsInvalid
=!1}catch(t
){this.shadowsInvalid
=!0,console
.warn(t
)}},deep:!0},fontsLocal:{handler:function(){try{this.previewFonts
=Object(re
.f
)({fonts:this.fontsLocal
}),this.fontsInvalid
=!1}catch(t
){this.fontsInvalid
=!0,console
.warn(t
)}},deep:!0},currentColors:function(){try{this.updatePreviewColorsAndShadows(),this.colorsInvalid
=!1,this.shadowsInvalid
=!1}catch(t
){this.colorsInvalid
=!0,this.shadowsInvalid
=!0,console
.warn(t
)}},currentOpacity:function(){try{this.updatePreviewColorsAndShadows()}catch(t
){console
.warn(t
)}},selected:function(){this.dismissWarning(),1===this.selectedVersion
?(this.keepRoundness
||this.clearRoundness(),this.keepShadows
||this.clearShadows(),this.keepOpacity
||this.clearOpacity(),this.keepColor
||(this.clearV1(),this.bgColorLocal
=this.selected
[1],this.fgColorLocal
=this.selected
[2],this.textColorLocal
=this.selected
[3],this.linkColorLocal
=this.selected
[4],this.cRedColorLocal
=this.selected
[5],this.cGreenColorLocal
=this.selected
[6],this.cBlueColorLocal
=this.selected
[7],this.cOrangeColorLocal
=this.selected
[8])):this.selectedVersion
>=2&&this.normalizeLocalState(this.selected
.theme
,2,this.selected
.source
)}}};var Fe=function(t
){s(624)},Ue
=Object(o
.a
)(Be
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("div",{staticClass:"theme-tab"},[s("div",{staticClass:"presets-container"},[s("div",{staticClass:"save-load"},[t
.themeWarning
?s("div",{staticClass:"theme-warning"},[s("div",{staticClass:"alert warning"},[t
._v("\n "+t
._s(t
.themeWarningHelp
)+"\n ")]),t
._v(" "),s("div",{staticClass:"buttons"},["snapshot_source_mismatch"===t
.themeWarning
.type
?[s("button",{staticClass:"btn",on:{click:t
.forceLoad
}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.use_source"))+"\n ")]),t
._v(" "),s("button",{staticClass:"btn",on:{click:t
.forceSnapshot
}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.use_snapshot"))+"\n ")])]:t
.themeWarning
.noActionsPossible
?[s("button",{staticClass:"btn",on:{click:t
.dismissWarning
}},[t
._v("\n "+t
._s(t
.$t("general.dismiss"))+"\n ")])]:[s("button",{staticClass:"btn",on:{click:t
.forceLoad
}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.load_theme"))+"\n ")]),t
._v(" "),s("button",{staticClass:"btn",on:{click:t
.dismissWarning
}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.keep_as_is"))+"\n ")])]],2)]):t
._e(),t
._v(" "),s("ExportImport",{attrs:{"export-object":t
.exportedTheme
,"export-label":t
.$t("settings.export_theme"),"import-label":t
.$t("settings.import_theme"),"import-failed-text":t
.$t("settings.invalid_theme_imported"),"on-import":t
.onImport
,validator:t
.importValidator
}},[s("template",{slot:"before"},[s("div",{staticClass:"presets"},[t
._v("\n "+t
._s(t
.$t("settings.presets"))+"\n "),s("label",{staticClass:"select",attrs:{for:"preset-switcher"}},[s("select",{directives:[{name:"model",rawName:"v-model",value:t
.selected
,expression:"selected"}],staticClass:"preset-switcher",attrs:{id:"preset-switcher"},on:{change:function(e
){var s
=Array
.prototype.filter
.call(e
.target
.options
,function(t
){return t
.selected
}).map(function(t
){return"_value"in t
?t
._value:t
.value
});t
.selected
=e
.target
.multiple
?s:s
[0]}}},t
._l(t
.availableStyles
,function(e
){return s("option",{key:e
.name
,style:{backgroundColor:e
[1]||(e
.theme
||e
.source
).colors
.bg
,color:e
[3]||(e
.theme
||e
.source
).colors
.text
},domProps:{value:e
}},[t
._v("\n "+t
._s(e
[0]||e
.name
)+"\n ")])}),0),t
._v(" "),s("i",{staticClass:"icon-down-open"})])])])],2)],1),t
._v(" "),s("div",{staticClass:"save-load-options"},[s("span",{staticClass:"keep-option"},[s("Checkbox",{model:{value:t
.keepColor
,callback:function(e
){t
.keepColor
=e
},expression:"keepColor"}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.keep_color"))+"\n ")])],1),t
._v(" "),s("span",{staticClass:"keep-option"},[s("Checkbox",{model:{value:t
.keepShadows
,callback:function(e
){t
.keepShadows
=e
},expression:"keepShadows"}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.keep_shadows"))+"\n ")])],1),t
._v(" "),s("span",{staticClass:"keep-option"},[s("Checkbox",{model:{value:t
.keepOpacity
,callback:function(e
){t
.keepOpacity
=e
},expression:"keepOpacity"}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.keep_opacity"))+"\n ")])],1),t
._v(" "),s("span",{staticClass:"keep-option"},[s("Checkbox",{model:{value:t
.keepRoundness
,callback:function(e
){t
.keepRoundness
=e
},expression:"keepRoundness"}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.keep_roundness"))+"\n ")])],1),t
._v(" "),s("span",{staticClass:"keep-option"},[s("Checkbox",{model:{value:t
.keepFonts
,callback:function(e
){t
.keepFonts
=e
},expression:"keepFonts"}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.keep_fonts"))+"\n ")])],1),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.style.switcher.save_load_hint")))])])]),t
._v(" "),s("preview",{style:t
.previewRules
}),t
._v(" "),s("keep-alive",[s("tab-switcher",{key:"style-tweak"},[s("div",{staticClass:"color-container",attrs:{label:t
.$t("settings.style.common_colors._tab_label")}},[s("div",{staticClass:"tab-header"},[s("p",[t
._v(t
._s(t
.$t("settings.theme_help")))]),t
._v(" "),s("div",{staticClass:"tab-header-buttons"},[s("button",{staticClass:"btn",on:{click:t
.clearOpacity
}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.clear_opacity"))+"\n ")]),t
._v(" "),s("button",{staticClass:"btn",on:{click:t
.clearV1
}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.clear_all"))+"\n ")])])]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.theme_help_v2_1")))]),t
._v(" "),s("h4",[t
._v(t
._s(t
.$t("settings.style.common_colors.main")))]),t
._v(" "),s("div",{staticClass:"color-item"},[s("ColorInput",{attrs:{name:"bgColor",label:t
.$t("settings.background")},model:{value:t
.bgColorLocal
,callback:function(e
){t
.bgColorLocal
=e
},expression:"bgColorLocal"}}),t
._v(" "),s("OpacityInput",{attrs:{name:"bgOpacity",fallback:t
.previewTheme
.opacity
.bg
},model:{value:t
.bgOpacityLocal
,callback:function(e
){t
.bgOpacityLocal
=e
},expression:"bgOpacityLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"textColor",label:t
.$t("settings.text")},model:{value:t
.textColorLocal
,callback:function(e
){t
.textColorLocal
=e
},expression:"textColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.bgText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"accentColor",fallback:t
.previewTheme
.colors
.link
,label:t
.$t("settings.accent"),"show-optional-tickbox":void 0!==t
.linkColorLocal
},model:{value:t
.accentColorLocal
,callback:function(e
){t
.accentColorLocal
=e
},expression:"accentColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"linkColor",fallback:t
.previewTheme
.colors
.accent
,label:t
.$t("settings.links"),"show-optional-tickbox":void 0!==t
.accentColorLocal
},model:{value:t
.linkColorLocal
,callback:function(e
){t
.linkColorLocal
=e
},expression:"linkColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.bgLink
}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("ColorInput",{attrs:{name:"fgColor",label:t
.$t("settings.foreground")},model:{value:t
.fgColorLocal
,callback:function(e
){t
.fgColorLocal
=e
},expression:"fgColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"fgTextColor",label:t
.$t("settings.text"),fallback:t
.previewTheme
.colors
.fgText
},model:{value:t
.fgTextColorLocal
,callback:function(e
){t
.fgTextColorLocal
=e
},expression:"fgTextColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"fgLinkColor",label:t
.$t("settings.links"),fallback:t
.previewTheme
.colors
.fgLink
},model:{value:t
.fgLinkColorLocal
,callback:function(e
){t
.fgLinkColorLocal
=e
},expression:"fgLinkColorLocal"}}),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.style.common_colors.foreground_hint")))])],1),t
._v(" "),s("h4",[t
._v(t
._s(t
.$t("settings.style.common_colors.rgbo")))]),t
._v(" "),s("div",{staticClass:"color-item"},[s("ColorInput",{attrs:{name:"cRedColor",label:t
.$t("settings.cRed")},model:{value:t
.cRedColorLocal
,callback:function(e
){t
.cRedColorLocal
=e
},expression:"cRedColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.bgCRed
}}),t
._v(" "),s("ColorInput",{attrs:{name:"cBlueColor",label:t
.$t("settings.cBlue")},model:{value:t
.cBlueColorLocal
,callback:function(e
){t
.cBlueColorLocal
=e
},expression:"cBlueColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.bgCBlue
}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("ColorInput",{attrs:{name:"cGreenColor",label:t
.$t("settings.cGreen")},model:{value:t
.cGreenColorLocal
,callback:function(e
){t
.cGreenColorLocal
=e
},expression:"cGreenColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.bgCGreen
}}),t
._v(" "),s("ColorInput",{attrs:{name:"cOrangeColor",label:t
.$t("settings.cOrange")},model:{value:t
.cOrangeColorLocal
,callback:function(e
){t
.cOrangeColorLocal
=e
},expression:"cOrangeColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.bgCOrange
}})],1),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.theme_help_v2_2")))])]),t
._v(" "),s("div",{staticClass:"color-container",attrs:{label:t
.$t("settings.style.advanced_colors._tab_label")}},[s("div",{staticClass:"tab-header"},[s("p",[t
._v(t
._s(t
.$t("settings.theme_help")))]),t
._v(" "),s("button",{staticClass:"btn",on:{click:t
.clearOpacity
}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.clear_opacity"))+"\n ")]),t
._v(" "),s("button",{staticClass:"btn",on:{click:t
.clearV1
}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.clear_all"))+"\n ")])]),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.post")))]),t
._v(" "),s("ColorInput",{attrs:{name:"postLinkColor",fallback:t
.previewTheme
.colors
.accent
,label:t
.$t("settings.links")},model:{value:t
.postLinkColorLocal
,callback:function(e
){t
.postLinkColorLocal
=e
},expression:"postLinkColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.postLink
}}),t
._v(" "),s("ColorInput",{attrs:{name:"postGreentextColor",fallback:t
.previewTheme
.colors
.cGreen
,label:t
.$t("settings.greentext")},model:{value:t
.postGreentextColorLocal
,callback:function(e
){t
.postGreentextColorLocal
=e
},expression:"postGreentextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.postGreentext
}}),t
._v(" "),s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.alert")))]),t
._v(" "),s("ColorInput",{attrs:{name:"alertError",label:t
.$t("settings.style.advanced_colors.alert_error"),fallback:t
.previewTheme
.colors
.alertError
},model:{value:t
.alertErrorColorLocal
,callback:function(e
){t
.alertErrorColorLocal
=e
},expression:"alertErrorColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"alertErrorText",label:t
.$t("settings.text"),fallback:t
.previewTheme
.colors
.alertErrorText
},model:{value:t
.alertErrorTextColorLocal
,callback:function(e
){t
.alertErrorTextColorLocal
=e
},expression:"alertErrorTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.alertErrorText
,large:"true"}}),t
._v(" "),s("ColorInput",{attrs:{name:"alertWarning",label:t
.$t("settings.style.advanced_colors.alert_warning"),fallback:t
.previewTheme
.colors
.alertWarning
},model:{value:t
.alertWarningColorLocal
,callback:function(e
){t
.alertWarningColorLocal
=e
},expression:"alertWarningColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"alertWarningText",label:t
.$t("settings.text"),fallback:t
.previewTheme
.colors
.alertWarningText
},model:{value:t
.alertWarningTextColorLocal
,callback:function(e
){t
.alertWarningTextColorLocal
=e
},expression:"alertWarningTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.alertWarningText
,large:"true"}}),t
._v(" "),s("ColorInput",{attrs:{name:"alertNeutral",label:t
.$t("settings.style.advanced_colors.alert_neutral"),fallback:t
.previewTheme
.colors
.alertNeutral
},model:{value:t
.alertNeutralColorLocal
,callback:function(e
){t
.alertNeutralColorLocal
=e
},expression:"alertNeutralColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"alertNeutralText",label:t
.$t("settings.text"),fallback:t
.previewTheme
.colors
.alertNeutralText
},model:{value:t
.alertNeutralTextColorLocal
,callback:function(e
){t
.alertNeutralTextColorLocal
=e
},expression:"alertNeutralTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.alertNeutralText
,large:"true"}}),t
._v(" "),s("OpacityInput",{attrs:{name:"alertOpacity",fallback:t
.previewTheme
.opacity
.alert
},model:{value:t
.alertOpacityLocal
,callback:function(e
){t
.alertOpacityLocal
=e
},expression:"alertOpacityLocal"}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.badge")))]),t
._v(" "),s("ColorInput",{attrs:{name:"badgeNotification",label:t
.$t("settings.style.advanced_colors.badge_notification"),fallback:t
.previewTheme
.colors
.badgeNotification
},model:{value:t
.badgeNotificationColorLocal
,callback:function(e
){t
.badgeNotificationColorLocal
=e
},expression:"badgeNotificationColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"badgeNotificationText",label:t
.$t("settings.text"),fallback:t
.previewTheme
.colors
.badgeNotificationText
},model:{value:t
.badgeNotificationTextColorLocal
,callback:function(e
){t
.badgeNotificationTextColorLocal
=e
},expression:"badgeNotificationTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.badgeNotificationText
,large:"true"}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.panel_header")))]),t
._v(" "),s("ColorInput",{attrs:{name:"panelColor",fallback:t
.previewTheme
.colors
.panel
,label:t
.$t("settings.background")},model:{value:t
.panelColorLocal
,callback:function(e
){t
.panelColorLocal
=e
},expression:"panelColorLocal"}}),t
._v(" "),s("OpacityInput",{attrs:{name:"panelOpacity",fallback:t
.previewTheme
.opacity
.panel
,disabled:"transparent"===t
.panelColorLocal
},model:{value:t
.panelOpacityLocal
,callback:function(e
){t
.panelOpacityLocal
=e
},expression:"panelOpacityLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"panelTextColor",fallback:t
.previewTheme
.colors
.panelText
,label:t
.$t("settings.text")},model:{value:t
.panelTextColorLocal
,callback:function(e
){t
.panelTextColorLocal
=e
},expression:"panelTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.panelText
,large:"true"}}),t
._v(" "),s("ColorInput",{attrs:{name:"panelLinkColor",fallback:t
.previewTheme
.colors
.panelLink
,label:t
.$t("settings.links")},model:{value:t
.panelLinkColorLocal
,callback:function(e
){t
.panelLinkColorLocal
=e
},expression:"panelLinkColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.panelLink
,large:"true"}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.top_bar")))]),t
._v(" "),s("ColorInput",{attrs:{name:"topBarColor",fallback:t
.previewTheme
.colors
.topBar
,label:t
.$t("settings.background")},model:{value:t
.topBarColorLocal
,callback:function(e
){t
.topBarColorLocal
=e
},expression:"topBarColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"topBarTextColor",fallback:t
.previewTheme
.colors
.topBarText
,label:t
.$t("settings.text")},model:{value:t
.topBarTextColorLocal
,callback:function(e
){t
.topBarTextColorLocal
=e
},expression:"topBarTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.topBarText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"topBarLinkColor",fallback:t
.previewTheme
.colors
.topBarLink
,label:t
.$t("settings.links")},model:{value:t
.topBarLinkColorLocal
,callback:function(e
){t
.topBarLinkColorLocal
=e
},expression:"topBarLinkColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.topBarLink
}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.inputs")))]),t
._v(" "),s("ColorInput",{attrs:{name:"inputColor",fallback:t
.previewTheme
.colors
.input
,label:t
.$t("settings.background")},model:{value:t
.inputColorLocal
,callback:function(e
){t
.inputColorLocal
=e
},expression:"inputColorLocal"}}),t
._v(" "),s("OpacityInput",{attrs:{name:"inputOpacity",fallback:t
.previewTheme
.opacity
.input
,disabled:"transparent"===t
.inputColorLocal
},model:{value:t
.inputOpacityLocal
,callback:function(e
){t
.inputOpacityLocal
=e
},expression:"inputOpacityLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"inputTextColor",fallback:t
.previewTheme
.colors
.inputText
,label:t
.$t("settings.text")},model:{value:t
.inputTextColorLocal
,callback:function(e
){t
.inputTextColorLocal
=e
},expression:"inputTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.inputText
}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.buttons")))]),t
._v(" "),s("ColorInput",{attrs:{name:"btnColor",fallback:t
.previewTheme
.colors
.btn
,label:t
.$t("settings.background")},model:{value:t
.btnColorLocal
,callback:function(e
){t
.btnColorLocal
=e
},expression:"btnColorLocal"}}),t
._v(" "),s("OpacityInput",{attrs:{name:"btnOpacity",fallback:t
.previewTheme
.opacity
.btn
,disabled:"transparent"===t
.btnColorLocal
},model:{value:t
.btnOpacityLocal
,callback:function(e
){t
.btnOpacityLocal
=e
},expression:"btnOpacityLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"btnTextColor",fallback:t
.previewTheme
.colors
.btnText
,label:t
.$t("settings.text")},model:{value:t
.btnTextColorLocal
,callback:function(e
){t
.btnTextColorLocal
=e
},expression:"btnTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.btnText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"btnPanelTextColor",fallback:t
.previewTheme
.colors
.btnPanelText
,label:t
.$t("settings.style.advanced_colors.panel_header")},model:{value:t
.btnPanelTextColorLocal
,callback:function(e
){t
.btnPanelTextColorLocal
=e
},expression:"btnPanelTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.btnPanelText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"btnTopBarTextColor",fallback:t
.previewTheme
.colors
.btnTopBarText
,label:t
.$t("settings.style.advanced_colors.top_bar")},model:{value:t
.btnTopBarTextColorLocal
,callback:function(e
){t
.btnTopBarTextColorLocal
=e
},expression:"btnTopBarTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.btnTopBarText
}}),t
._v(" "),s("h5",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.pressed")))]),t
._v(" "),s("ColorInput",{attrs:{name:"btnPressedColor",fallback:t
.previewTheme
.colors
.btnPressed
,label:t
.$t("settings.background")},model:{value:t
.btnPressedColorLocal
,callback:function(e
){t
.btnPressedColorLocal
=e
},expression:"btnPressedColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"btnPressedTextColor",fallback:t
.previewTheme
.colors
.btnPressedText
,label:t
.$t("settings.text")},model:{value:t
.btnPressedTextColorLocal
,callback:function(e
){t
.btnPressedTextColorLocal
=e
},expression:"btnPressedTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.btnPressedText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"btnPressedPanelTextColor",fallback:t
.previewTheme
.colors
.btnPressedPanelText
,label:t
.$t("settings.style.advanced_colors.panel_header")},model:{value:t
.btnPressedPanelTextColorLocal
,callback:function(e
){t
.btnPressedPanelTextColorLocal
=e
},expression:"btnPressedPanelTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.btnPressedPanelText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"btnPressedTopBarTextColor",fallback:t
.previewTheme
.colors
.btnPressedTopBarText
,label:t
.$t("settings.style.advanced_colors.top_bar")},model:{value:t
.btnPressedTopBarTextColorLocal
,callback:function(e
){t
.btnPressedTopBarTextColorLocal
=e
},expression:"btnPressedTopBarTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.btnPressedTopBarText
}}),t
._v(" "),s("h5",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.disabled")))]),t
._v(" "),s("ColorInput",{attrs:{name:"btnDisabledColor",fallback:t
.previewTheme
.colors
.btnDisabled
,label:t
.$t("settings.background")},model:{value:t
.btnDisabledColorLocal
,callback:function(e
){t
.btnDisabledColorLocal
=e
},expression:"btnDisabledColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"btnDisabledTextColor",fallback:t
.previewTheme
.colors
.btnDisabledText
,label:t
.$t("settings.text")},model:{value:t
.btnDisabledTextColorLocal
,callback:function(e
){t
.btnDisabledTextColorLocal
=e
},expression:"btnDisabledTextColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"btnDisabledPanelTextColor",fallback:t
.previewTheme
.colors
.btnDisabledPanelText
,label:t
.$t("settings.style.advanced_colors.panel_header")},model:{value:t
.btnDisabledPanelTextColorLocal
,callback:function(e
){t
.btnDisabledPanelTextColorLocal
=e
},expression:"btnDisabledPanelTextColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"btnDisabledTopBarTextColor",fallback:t
.previewTheme
.colors
.btnDisabledTopBarText
,label:t
.$t("settings.style.advanced_colors.top_bar")},model:{value:t
.btnDisabledTopBarTextColorLocal
,callback:function(e
){t
.btnDisabledTopBarTextColorLocal
=e
},expression:"btnDisabledTopBarTextColorLocal"}}),t
._v(" "),s("h5",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.toggled")))]),t
._v(" "),s("ColorInput",{attrs:{name:"btnToggledColor",fallback:t
.previewTheme
.colors
.btnToggled
,label:t
.$t("settings.background")},model:{value:t
.btnToggledColorLocal
,callback:function(e
){t
.btnToggledColorLocal
=e
},expression:"btnToggledColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"btnToggledTextColor",fallback:t
.previewTheme
.colors
.btnToggledText
,label:t
.$t("settings.text")},model:{value:t
.btnToggledTextColorLocal
,callback:function(e
){t
.btnToggledTextColorLocal
=e
},expression:"btnToggledTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.btnToggledText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"btnToggledPanelTextColor",fallback:t
.previewTheme
.colors
.btnToggledPanelText
,label:t
.$t("settings.style.advanced_colors.panel_header")},model:{value:t
.btnToggledPanelTextColorLocal
,callback:function(e
){t
.btnToggledPanelTextColorLocal
=e
},expression:"btnToggledPanelTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.btnToggledPanelText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"btnToggledTopBarTextColor",fallback:t
.previewTheme
.colors
.btnToggledTopBarText
,label:t
.$t("settings.style.advanced_colors.top_bar")},model:{value:t
.btnToggledTopBarTextColorLocal
,callback:function(e
){t
.btnToggledTopBarTextColorLocal
=e
},expression:"btnToggledTopBarTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.btnToggledTopBarText
}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.tabs")))]),t
._v(" "),s("ColorInput",{attrs:{name:"tabColor",fallback:t
.previewTheme
.colors
.tab
,label:t
.$t("settings.background")},model:{value:t
.tabColorLocal
,callback:function(e
){t
.tabColorLocal
=e
},expression:"tabColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"tabTextColor",fallback:t
.previewTheme
.colors
.tabText
,label:t
.$t("settings.text")},model:{value:t
.tabTextColorLocal
,callback:function(e
){t
.tabTextColorLocal
=e
},expression:"tabTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.tabText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"tabActiveTextColor",fallback:t
.previewTheme
.colors
.tabActiveText
,label:t
.$t("settings.text")},model:{value:t
.tabActiveTextColorLocal
,callback:function(e
){t
.tabActiveTextColorLocal
=e
},expression:"tabActiveTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.tabActiveText
}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.borders")))]),t
._v(" "),s("ColorInput",{attrs:{name:"borderColor",fallback:t
.previewTheme
.colors
.border
,label:t
.$t("settings.style.common.color")},model:{value:t
.borderColorLocal
,callback:function(e
){t
.borderColorLocal
=e
},expression:"borderColorLocal"}}),t
._v(" "),s("OpacityInput",{attrs:{name:"borderOpacity",fallback:t
.previewTheme
.opacity
.border
,disabled:"transparent"===t
.borderColorLocal
},model:{value:t
.borderOpacityLocal
,callback:function(e
){t
.borderOpacityLocal
=e
},expression:"borderOpacityLocal"}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.faint_text")))]),t
._v(" "),s("ColorInput",{attrs:{name:"faintColor",fallback:t
.previewTheme
.colors
.faint
,label:t
.$t("settings.text")},model:{value:t
.faintColorLocal
,callback:function(e
){t
.faintColorLocal
=e
},expression:"faintColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"faintLinkColor",fallback:t
.previewTheme
.colors
.faintLink
,label:t
.$t("settings.links")},model:{value:t
.faintLinkColorLocal
,callback:function(e
){t
.faintLinkColorLocal
=e
},expression:"faintLinkColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"panelFaintColor",fallback:t
.previewTheme
.colors
.panelFaint
,label:t
.$t("settings.style.advanced_colors.panel_header")},model:{value:t
.panelFaintColorLocal
,callback:function(e
){t
.panelFaintColorLocal
=e
},expression:"panelFaintColorLocal"}}),t
._v(" "),s("OpacityInput",{attrs:{name:"faintOpacity",fallback:t
.previewTheme
.opacity
.faint
},model:{value:t
.faintOpacityLocal
,callback:function(e
){t
.faintOpacityLocal
=e
},expression:"faintOpacityLocal"}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.underlay")))]),t
._v(" "),s("ColorInput",{attrs:{name:"underlay",label:t
.$t("settings.style.advanced_colors.underlay"),fallback:t
.previewTheme
.colors
.underlay
},model:{value:t
.underlayColorLocal
,callback:function(e
){t
.underlayColorLocal
=e
},expression:"underlayColorLocal"}}),t
._v(" "),s("OpacityInput",{attrs:{name:"underlayOpacity",fallback:t
.previewTheme
.opacity
.underlay
,disabled:"transparent"===t
.underlayOpacityLocal
},model:{value:t
.underlayOpacityLocal
,callback:function(e
){t
.underlayOpacityLocal
=e
},expression:"underlayOpacityLocal"}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.poll")))]),t
._v(" "),s("ColorInput",{attrs:{name:"poll",label:t
.$t("settings.background"),fallback:t
.previewTheme
.colors
.poll
},model:{value:t
.pollColorLocal
,callback:function(e
){t
.pollColorLocal
=e
},expression:"pollColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"pollText",label:t
.$t("settings.text"),fallback:t
.previewTheme
.colors
.pollText
},model:{value:t
.pollTextColorLocal
,callback:function(e
){t
.pollTextColorLocal
=e
},expression:"pollTextColorLocal"}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.icons")))]),t
._v(" "),s("ColorInput",{attrs:{name:"icon",label:t
.$t("settings.style.advanced_colors.icons"),fallback:t
.previewTheme
.colors
.icon
},model:{value:t
.iconColorLocal
,callback:function(e
){t
.iconColorLocal
=e
},expression:"iconColorLocal"}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.highlight")))]),t
._v(" "),s("ColorInput",{attrs:{name:"highlight",label:t
.$t("settings.background"),fallback:t
.previewTheme
.colors
.highlight
},model:{value:t
.highlightColorLocal
,callback:function(e
){t
.highlightColorLocal
=e
},expression:"highlightColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"highlightText",label:t
.$t("settings.text"),fallback:t
.previewTheme
.colors
.highlightText
},model:{value:t
.highlightTextColorLocal
,callback:function(e
){t
.highlightTextColorLocal
=e
},expression:"highlightTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.highlightText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"highlightLink",label:t
.$t("settings.links"),fallback:t
.previewTheme
.colors
.highlightLink
},model:{value:t
.highlightLinkColorLocal
,callback:function(e
){t
.highlightLinkColorLocal
=e
},expression:"highlightLinkColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.highlightLink
}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.popover")))]),t
._v(" "),s("ColorInput",{attrs:{name:"popover",label:t
.$t("settings.background"),fallback:t
.previewTheme
.colors
.popover
},model:{value:t
.popoverColorLocal
,callback:function(e
){t
.popoverColorLocal
=e
},expression:"popoverColorLocal"}}),t
._v(" "),s("OpacityInput",{attrs:{name:"popoverOpacity",fallback:t
.previewTheme
.opacity
.popover
,disabled:"transparent"===t
.popoverOpacityLocal
},model:{value:t
.popoverOpacityLocal
,callback:function(e
){t
.popoverOpacityLocal
=e
},expression:"popoverOpacityLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"popoverText",label:t
.$t("settings.text"),fallback:t
.previewTheme
.colors
.popoverText
},model:{value:t
.popoverTextColorLocal
,callback:function(e
){t
.popoverTextColorLocal
=e
},expression:"popoverTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.popoverText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"popoverLink",label:t
.$t("settings.links"),fallback:t
.previewTheme
.colors
.popoverLink
},model:{value:t
.popoverLinkColorLocal
,callback:function(e
){t
.popoverLinkColorLocal
=e
},expression:"popoverLinkColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.popoverLink
}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.selectedPost")))]),t
._v(" "),s("ColorInput",{attrs:{name:"selectedPost",label:t
.$t("settings.background"),fallback:t
.previewTheme
.colors
.selectedPost
},model:{value:t
.selectedPostColorLocal
,callback:function(e
){t
.selectedPostColorLocal
=e
},expression:"selectedPostColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"selectedPostText",label:t
.$t("settings.text"),fallback:t
.previewTheme
.colors
.selectedPostText
},model:{value:t
.selectedPostTextColorLocal
,callback:function(e
){t
.selectedPostTextColorLocal
=e
},expression:"selectedPostTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.selectedPostText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"selectedPostLink",label:t
.$t("settings.links"),fallback:t
.previewTheme
.colors
.selectedPostLink
},model:{value:t
.selectedPostLinkColorLocal
,callback:function(e
){t
.selectedPostLinkColorLocal
=e
},expression:"selectedPostLinkColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.selectedPostLink
}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.selectedMenu")))]),t
._v(" "),s("ColorInput",{attrs:{name:"selectedMenu",label:t
.$t("settings.background"),fallback:t
.previewTheme
.colors
.selectedMenu
},model:{value:t
.selectedMenuColorLocal
,callback:function(e
){t
.selectedMenuColorLocal
=e
},expression:"selectedMenuColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"selectedMenuText",label:t
.$t("settings.text"),fallback:t
.previewTheme
.colors
.selectedMenuText
},model:{value:t
.selectedMenuTextColorLocal
,callback:function(e
){t
.selectedMenuTextColorLocal
=e
},expression:"selectedMenuTextColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.selectedMenuText
}}),t
._v(" "),s("ColorInput",{attrs:{name:"selectedMenuLink",label:t
.$t("settings.links"),fallback:t
.previewTheme
.colors
.selectedMenuLink
},model:{value:t
.selectedMenuLinkColorLocal
,callback:function(e
){t
.selectedMenuLinkColorLocal
=e
},expression:"selectedMenuLinkColorLocal"}}),t
._v(" "),s("ContrastRatio",{attrs:{contrast:t
.previewContrast
.selectedMenuLink
}})],1),t
._v(" "),s("div",{staticClass:"color-item"},[s("h4",[t
._v(t
._s(t
.$t("chats.chats")))]),t
._v(" "),s("ColorInput",{attrs:{name:"chatBgColor",fallback:t
.previewTheme
.colors
.bg
||1,label:t
.$t("settings.background")},model:{value:t
.chatBgColorLocal
,callback:function(e
){t
.chatBgColorLocal
=e
},expression:"chatBgColorLocal"}}),t
._v(" "),s("h5",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.chat.incoming")))]),t
._v(" "),s("ColorInput",{attrs:{name:"chatMessageIncomingBgColor",fallback:t
.previewTheme
.colors
.bg
||1,label:t
.$t("settings.background")},model:{value:t
.chatMessageIncomingBgColorLocal
,callback:function(e
){t
.chatMessageIncomingBgColorLocal
=e
},expression:"chatMessageIncomingBgColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"chatMessageIncomingTextColor",fallback:t
.previewTheme
.colors
.text
||1,label:t
.$t("settings.text")},model:{value:t
.chatMessageIncomingTextColorLocal
,callback:function(e
){t
.chatMessageIncomingTextColorLocal
=e
},expression:"chatMessageIncomingTextColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"chatMessageIncomingLinkColor",fallback:t
.previewTheme
.colors
.link
||1,label:t
.$t("settings.links")},model:{value:t
.chatMessageIncomingLinkColorLocal
,callback:function(e
){t
.chatMessageIncomingLinkColorLocal
=e
},expression:"chatMessageIncomingLinkColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"chatMessageIncomingBorderLinkColor",fallback:t
.previewTheme
.colors
.fg
||1,label:t
.$t("settings.style.advanced_colors.chat.border")},model:{value:t
.chatMessageIncomingBorderColorLocal
,callback:function(e
){t
.chatMessageIncomingBorderColorLocal
=e
},expression:"chatMessageIncomingBorderColorLocal"}}),t
._v(" "),s("h5",[t
._v(t
._s(t
.$t("settings.style.advanced_colors.chat.outgoing")))]),t
._v(" "),s("ColorInput",{attrs:{name:"chatMessageOutgoingBgColor",fallback:t
.previewTheme
.colors
.bg
||1,label:t
.$t("settings.background")},model:{value:t
.chatMessageOutgoingBgColorLocal
,callback:function(e
){t
.chatMessageOutgoingBgColorLocal
=e
},expression:"chatMessageOutgoingBgColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"chatMessageOutgoingTextColor",fallback:t
.previewTheme
.colors
.text
||1,label:t
.$t("settings.text")},model:{value:t
.chatMessageOutgoingTextColorLocal
,callback:function(e
){t
.chatMessageOutgoingTextColorLocal
=e
},expression:"chatMessageOutgoingTextColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"chatMessageOutgoingLinkColor",fallback:t
.previewTheme
.colors
.link
||1,label:t
.$t("settings.links")},model:{value:t
.chatMessageOutgoingLinkColorLocal
,callback:function(e
){t
.chatMessageOutgoingLinkColorLocal
=e
},expression:"chatMessageOutgoingLinkColorLocal"}}),t
._v(" "),s("ColorInput",{attrs:{name:"chatMessageOutgoingBorderLinkColor",fallback:t
.previewTheme
.colors
.bg
||1,label:t
.$t("settings.style.advanced_colors.chat.border")},model:{value:t
.chatMessageOutgoingBorderColorLocal
,callback:function(e
){t
.chatMessageOutgoingBorderColorLocal
=e
},expression:"chatMessageOutgoingBorderColorLocal"}})],1)]),t
._v(" "),s("div",{staticClass:"radius-container",attrs:{label:t
.$t("settings.style.radii._tab_label")}},[s("div",{staticClass:"tab-header"},[s("p",[t
._v(t
._s(t
.$t("settings.radii_help")))]),t
._v(" "),s("button",{staticClass:"btn",on:{click:t
.clearRoundness
}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.clear_all"))+"\n ")])]),t
._v(" "),s("RangeInput",{attrs:{name:"btnRadius",label:t
.$t("settings.btnRadius"),fallback:t
.previewTheme
.radii
.btn
,max:"16","hard-min":"0"},model:{value:t
.btnRadiusLocal
,callback:function(e
){t
.btnRadiusLocal
=e
},expression:"btnRadiusLocal"}}),t
._v(" "),s("RangeInput",{attrs:{name:"inputRadius",label:t
.$t("settings.inputRadius"),fallback:t
.previewTheme
.radii
.input
,max:"9","hard-min":"0"},model:{value:t
.inputRadiusLocal
,callback:function(e
){t
.inputRadiusLocal
=e
},expression:"inputRadiusLocal"}}),t
._v(" "),s("RangeInput",{attrs:{name:"checkboxRadius",label:t
.$t("settings.checkboxRadius"),fallback:t
.previewTheme
.radii
.checkbox
,max:"16","hard-min":"0"},model:{value:t
.checkboxRadiusLocal
,callback:function(e
){t
.checkboxRadiusLocal
=e
},expression:"checkboxRadiusLocal"}}),t
._v(" "),s("RangeInput",{attrs:{name:"panelRadius",label:t
.$t("settings.panelRadius"),fallback:t
.previewTheme
.radii
.panel
,max:"50","hard-min":"0"},model:{value:t
.panelRadiusLocal
,callback:function(e
){t
.panelRadiusLocal
=e
},expression:"panelRadiusLocal"}}),t
._v(" "),s("RangeInput",{attrs:{name:"avatarRadius",label:t
.$t("settings.avatarRadius"),fallback:t
.previewTheme
.radii
.avatar
,max:"28","hard-min":"0"},model:{value:t
.avatarRadiusLocal
,callback:function(e
){t
.avatarRadiusLocal
=e
},expression:"avatarRadiusLocal"}}),t
._v(" "),s("RangeInput",{attrs:{name:"avatarAltRadius",label:t
.$t("settings.avatarAltRadius"),fallback:t
.previewTheme
.radii
.avatarAlt
,max:"28","hard-min":"0"},model:{value:t
.avatarAltRadiusLocal
,callback:function(e
){t
.avatarAltRadiusLocal
=e
},expression:"avatarAltRadiusLocal"}}),t
._v(" "),s("RangeInput",{attrs:{name:"attachmentRadius",label:t
.$t("settings.attachmentRadius"),fallback:t
.previewTheme
.radii
.attachment
,max:"50","hard-min":"0"},model:{value:t
.attachmentRadiusLocal
,callback:function(e
){t
.attachmentRadiusLocal
=e
},expression:"attachmentRadiusLocal"}}),t
._v(" "),s("RangeInput",{attrs:{name:"tooltipRadius",label:t
.$t("settings.tooltipRadius"),fallback:t
.previewTheme
.radii
.tooltip
,max:"50","hard-min":"0"},model:{value:t
.tooltipRadiusLocal
,callback:function(e
){t
.tooltipRadiusLocal
=e
},expression:"tooltipRadiusLocal"}}),t
._v(" "),s("RangeInput",{attrs:{name:"chatMessageRadius",label:t
.$t("settings.chatMessageRadius"),fallback:t
.previewTheme
.radii
.chatMessage
||2,max:"50","hard-min":"0"},model:{value:t
.chatMessageRadiusLocal
,callback:function(e
){t
.chatMessageRadiusLocal
=e
},expression:"chatMessageRadiusLocal"}})],1),t
._v(" "),s("div",{staticClass:"shadow-container",attrs:{label:t
.$t("settings.style.shadows._tab_label")}},[s("div",{staticClass:"tab-header shadow-selector"},[s("div",{staticClass:"select-container"},[t
._v("\n "+t
._s(t
.$t("settings.style.shadows.component"))+"\n "),s("label",{staticClass:"select",attrs:{for:"shadow-switcher"}},[s("select",{directives:[{name:"model",rawName:"v-model",value:t
.shadowSelected
,expression:"shadowSelected"}],staticClass:"shadow-switcher",attrs:{id:"shadow-switcher"},on:{change:function(e
){var s
=Array
.prototype.filter
.call(e
.target
.options
,function(t
){return t
.selected
}).map(function(t
){return"_value"in t
?t
._value:t
.value
});t
.shadowSelected
=e
.target
.multiple
?s:s
[0]}}},t
._l(t
.shadowsAvailable
,function(e
){return s("option",{key:e
,domProps:{value:e
}},[t
._v("\n "+t
._s(t
.$t("settings.style.shadows.components."+e
))+"\n ")])}),0),t
._v(" "),s("i",{staticClass:"icon-down-open"})])]),t
._v(" "),s("div",{staticClass:"override"},[s("label",{staticClass:"label",attrs:{for:"override"}},[t
._v("\n "+t
._s(t
.$t("settings.style.shadows.override"))+"\n ")]),t
._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t
.currentShadowOverriden
,expression:"currentShadowOverriden"}],staticClass:"input-override",attrs:{id:"override",name:"override",type:"checkbox"},domProps:{checked:Array
.isArray(t
.currentShadowOverriden
)?t
._i(t
.currentShadowOverriden
,null)>-1:t
.currentShadowOverriden
},on:{change:function(e
){var s
=t
.currentShadowOverriden
,a
=e
.target
,n
=!!a
.checked
;if(Array
.isArray(s
)){var o
=t
._i(s
,null);a
.checked
?o
<0&&(t
.currentShadowOverriden
=s
.concat([null])):o
>-1&&(t
.currentShadowOverriden
=s
.slice(0,o
).concat(s
.slice(o
+1)))}else t
.currentShadowOverriden
=n
}}}),t
._v(" "),s("label",{staticClass:"checkbox-label",attrs:{for:"override"}})]),t
._v(" "),s("button",{staticClass:"btn",on:{click:t
.clearShadows
}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.clear_all"))+"\n ")])]),t
._v(" "),s("ShadowControl",{attrs:{ready:!!t
.currentShadowFallback
,fallback:t
.currentShadowFallback
},model:{value:t
.currentShadow
,callback:function(e
){t
.currentShadow
=e
},expression:"currentShadow"}}),t
._v(" "),"avatar"===t
.shadowSelected
||"avatarStatus"===t
.shadowSelected
?s("div",[s("i18n",{attrs:{path:"settings.style.shadows.filter_hint.always_drop_shadow",tag:"p"}},[s("code",[t
._v("filter: drop-shadow()")])]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.style.shadows.filter_hint.avatar_inset")))]),t
._v(" "),s("i18n",{attrs:{path:"settings.style.shadows.filter_hint.drop_shadow_syntax",tag:"p"}},[s("code",[t
._v("drop-shadow")]),t
._v(" "),s("code",[t
._v("spread-radius")]),t
._v(" "),s("code",[t
._v("inset")])]),t
._v(" "),s("i18n",{attrs:{path:"settings.style.shadows.filter_hint.inset_classic",tag:"p"}},[s("code",[t
._v("box-shadow")])]),t
._v(" "),s("p",[t
._v(t
._s(t
.$t("settings.style.shadows.filter_hint.spread_zero")))])],1):t
._e()],1),t
._v(" "),s("div",{staticClass:"fonts-container",attrs:{label:t
.$t("settings.style.fonts._tab_label")}},[s("div",{staticClass:"tab-header"},[s("p",[t
._v(t
._s(t
.$t("settings.style.fonts.help")))]),t
._v(" "),s("button",{staticClass:"btn",on:{click:t
.clearFonts
}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.clear_all"))+"\n ")])]),t
._v(" "),s("FontControl",{attrs:{name:"ui",label:t
.$t("settings.style.fonts.components.interface"),fallback:t
.previewTheme
.fonts
.interface,"no-inherit":"1"},model:{value:t
.fontsLocal
.interface,callback:function(e
){t
.$set(t
.fontsLocal
,"interface",e
)},expression:"fontsLocal.interface"}}),t
._v(" "),s("FontControl",{attrs:{name:"input",label:t
.$t("settings.style.fonts.components.input"),fallback:t
.previewTheme
.fonts
.input
},model:{value:t
.fontsLocal
.input
,callback:function(e
){t
.$set(t
.fontsLocal
,"input",e
)},expression:"fontsLocal.input"}}),t
._v(" "),s("FontControl",{attrs:{name:"post",label:t
.$t("settings.style.fonts.components.post"),fallback:t
.previewTheme
.fonts
.post
},model:{value:t
.fontsLocal
.post
,callback:function(e
){t
.$set(t
.fontsLocal
,"post",e
)},expression:"fontsLocal.post"}}),t
._v(" "),s("FontControl",{attrs:{name:"postCode",label:t
.$t("settings.style.fonts.components.postCode"),fallback:t
.previewTheme
.fonts
.postCode
},model:{value:t
.fontsLocal
.postCode
,callback:function(e
){t
.$set(t
.fontsLocal
,"postCode",e
)},expression:"fontsLocal.postCode"}})],1)])],1),t
._v(" "),s("div",{staticClass:"apply-container"},[s("button",{staticClass:"btn submit",attrs:{disabled:!t
.themeValid
},on:{click:t
.setCustomTheme
}},[t
._v("\n "+t
._s(t
.$t("general.apply"))+"\n ")]),t
._v(" "),s("button",{staticClass:"btn",on:{click:t
.clearAll
}},[t
._v("\n "+t
._s(t
.$t("settings.style.switcher.reset"))+"\n ")])])],1)},[],!1,Fe
,null,null).exports
,Me
={components:{TabSwitcher:a
.a
,DataImportExportTab:m
,MutesAndBlocksTab:nt
,NotificationsTab:it
,FilteringTab:ft
,SecurityTab:Et
,ProfileTab:Qt
,GeneralTab:ae
,VersionTab:oe
,ThemeTab:Ue
},computed:{isLoggedIn:function(){return!!this.$store
.state
.users
.currentUser
}}};var Ve=function(t
){s(591)},De
=Object(o
.a
)(Me
,function(){var t
=this,e
=t
.$createElement
,s
=t
._self
._c
||e
;return s("tab-switcher",{ref:"tabSwitcher",staticClass:"settings_tab-switcher",attrs:{"side-tab-bar":!0,"scrollable-tabs":!0}},[s("div",{attrs:{label:t
.$t("settings.general"),icon:"wrench"}},[s("GeneralTab")],1),t
._v(" "),t
.isLoggedIn
?s("div",{attrs:{label:t
.$t("settings.profile_tab"),icon:"user"}},[s("ProfileTab")],1):t
._e(),t
._v(" "),t
.isLoggedIn
?s("div",{attrs:{label:t
.$t("settings.security_tab"),icon:"lock"}},[s("SecurityTab")],1):t
._e(),t
._v(" "),s("div",{attrs:{label:t
.$t("settings.filtering"),icon:"filter"}},[s("FilteringTab")],1),t
._v(" "),s("div",{attrs:{label:t
.$t("settings.theme"),icon:"brush"}},[s("ThemeTab")],1),t
._v(" "),t
.isLoggedIn
?s("div",{attrs:{label:t
.$t("settings.notifications"),icon:"bell-ringing-o"}},[s("NotificationsTab")],1):t
._e(),t
._v(" "),t
.isLoggedIn
?s("div",{attrs:{label:t
.$t("settings.data_import_export_tab"),icon:"download"}},[s("DataImportExportTab")],1):t
._e(),t
._v(" "),t
.isLoggedIn
?s("div",{attrs:{label:t
.$t("settings.mutes_and_blocks"),fullHeight:!0,icon:"eye-off"}},[s("MutesAndBlocksTab")],1):t
._e(),t
._v(" "),s("div",{attrs:{label:t
.$t("settings.version.title"),icon:"info-circled"}},[s("VersionTab")],1)])},[],!1,Ve
,null,null);e
.default=De
.exports
}}]);