From 56a13d5d2fe55abd8bfc36ca4f96f2ec25a8c05f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 8 Aug 2024 00:07:20 -0600 Subject: [PATCH] Update compiled assets --- public/css/spa.css | 2 +- public/js/admin.js | 2 +- public/mix-manifest.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/css/spa.css b/public/css/spa.css index b1a22b33..9847ed19 100644 --- a/public/css/spa.css +++ b/public/css/spa.css @@ -1 +1 @@ -@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhdzeFaxOedfTDw.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhdXeFaxOedfTDw.woff2) format("woff2");unicode-range:u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhdLeFaxOedfTDw.woff2) format("woff2");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhd7eFaxOedfTDw.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhd_eFaxOedfTDw.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhdHeFaxOedc.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AIxsdP3pBmtF8A.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AIVsdP3pBmtF8A.woff2) format("woff2");unicode-range:u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AIJsdP3pBmtF8A.woff2) format("woff2");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AI5sdP3pBmtF8A.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AI9sdP3pBmtF8A.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AIFsdP3pBms.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}:root{--light:#fff;--dark:#000;--body-bg:#f3f4f6;--body-color:#212529;--nav-bg:#fff;--bg-light:#f8f9fa;--primary:#3b82f6;--light-gray:#f8f9fa;--text-lighter:#94a3b8;--card-bg:#fff;--light-hover-bg:#f9fafb;--btn-light-border:#fff;--input-border:#e2e8f0;--comment-bg:#eff2f5;--border-color:#dee2e6;--card-header-accent:#f9fafb;--dropdown-item-hover-bg:#e9ecef;--dropdown-item-hover-color:#16181b;--dropdown-item-color:#64748b;--dropdown-item-active-color:#334155}@media (prefers-color-scheme:dark){:root{--light:#000;--dark:#fff;--body-bg:#000;--body-color:#9ca3af;--nav-bg:#000;--bg-light:#212124;--light-gray:#212124;--text-lighter:#818181;--card-bg:#161618;--light-hover-bg:#212124;--btn-light-border:#161618;--input-border:#161618;--comment-bg:#212124;--border-color:#212124;--card-header-accent:#212124;--dropdown-item-hover-bg:#000;--dropdown-item-hover-color:#818181;--dropdown-item-color:#64748b;--dropdown-item-active-color:#fff}}.force-light-mode{--light:#fff;--dark:#000;--body-bg:#f3f4f6;--body-color:#212529;--nav-bg:#fff;--bg-light:#f8f9fa;--primary:#3b82f6;--light-gray:#f8f9fa;--text-lighter:#94a3b8;--card-bg:#fff;--light-hover-bg:#f9fafb;--btn-light-border:#fff;--input-border:#e2e8f0;--comment-bg:#eff2f5;--border-color:#dee2e6;--card-header-accent:#f9fafb;--dropdown-item-hover-bg:#e9ecef;--dropdown-item-hover-color:#16181b;--dropdown-item-color:#64748b;--dropdown-item-active-color:#334155}.force-dark-mode{--light:#000;--dark:#fff;--body-bg:#000;--body-color:#9ca3af;--nav-bg:#000;--bg-light:#212124;--light-gray:#212124;--text-lighter:#818181;--card-bg:#161618;--light-hover-bg:#212124;--btn-light-border:#161618;--input-border:#161618;--comment-bg:#212124;--border-color:#212124;--card-header-accent:#212124;--dropdown-item-hover-bg:#000;--dropdown-item-hover-color:#818181;--dropdown-item-color:#64748b;--dropdown-item-active-color:#b3b3b3}body{background:var(--body-bg);color:var(--body-color);font-family:IBM Plex Sans,sans-serif}.web-wrapper{margin-bottom:10rem}.container-fluid{max-width:1440px!important}.jumbotron,.rounded-px{border-radius:18px}.doc-body p:last-child{margin-bottom:0}.navbar-laravel{background-color:var(--nav-bg)}.sticky-top{z-index:2}.navbar-light .navbar-brand,.navbar-light .navbar-brand:hover{color:var(--dark)}.primary{color:var(--primary)}.bg-g-amin{background:#8e2de2;background:linear-gradient(270deg,#4a00e0,#8e2de2)}.text-lighter{color:var(--text-lighter)!important}.text-dark{color:var(--body-color)!important}.text-dark:hover,a.text-dark:hover{color:var(--dark)!important}.badge-primary,.btn-primary{background-color:var(--primary)}.btn-primary{color:#fff!important}.btn-outline-light{border-color:var(--light-gray)}.border{border:1px solid var(--border-color)!important}.border-right{border-color:var(--border-color)!important}.bg-light,.bg-white{background-color:var(--bg-light)!important;border-color:var(--bg-light)!important}.btn-light{background-color:var(--light-gray)}.btn-light,.btn-light:hover{border-color:var(--btn-light-border);color:var(--body-color)}.btn-light:hover{background-color:var(--card-bg)}.autocomplete-input{border:1px solid var(--light-gray)!important;color:var(--body-color)}.autocomplete-result-list{background:var(--light)!important;z-index:2!important}.dropdown-menu,.form-control,span.twitter-typeahead .tt-menu{background-color:var(--card-bg);border:1px solid var(--border-color)!important;color:var(--body-color)}.dropdown-item,.tribute-container li,span.twitter-typeahead .tt-suggestion{color:var(--body-color)}.dropdown-item:focus,.dropdown-item:hover,span.twitter-typeahead .tt-suggestion:focus,span.twitter-typeahead .tt-suggestion:hover{background-color:var(--dropdown-item-hover-bg);color:var(--dropdown-item-hover-color);text-decoration:none}.card,.card-footer,.card-header,.form-control:focus,.list-group-item,.modal-content,.ph-item,.popover,.tribute-container ul{background-color:var(--card-bg)}.badge-light,.breadcrumb,.ph-avatar,.ph-picture,.ph-row div{background-color:var(--light-gray)}.border-bottom,.border-top,.card-header{border-color:var(--border-color)!important}.modal-footer,.modal-header{border-color:var(--border-color)}.compose-action:hover{background-color:var(--light-gray)!important}.dropdown-divider{border-color:var(--dropdown-item-hover-bg)}.metro-nav.flex-column{background-color:var(--card-bg)}.metro-nav.flex-column .nav-item .nav-link:hover{background-color:var(--light-hover-bg)}.child-reply-form .form-control{border-color:var(--input-border);color:var(--body-color)}.ui-menu .btn-group .btn:first-child{border-bottom-left-radius:50rem;border-top-left-radius:50rem}.ui-menu .btn-group .btn:last-child{border-bottom-right-radius:50rem;border-top-right-radius:50rem}.ui-menu .btn-group .btn-primary{font-weight:700}.ui-menu .b-custom-control-lg{padding-bottom:8px}.content-label-wrapper div:not(.content-label){height:100%}.content-label-text{width:80%}@media (min-width:768px){.content-label-text{width:50%}}.compose-modal-component .form-control:focus{color:var(--body-color)}.modal-body .nav-tabs .nav-item.show .nav-link,.modal-body .nav-tabs .nav-link.active{background-color:transparent;border-color:var(--border-color)}.modal-body .nav-tabs .nav-link:focus,.modal-body .nav-tabs .nav-link:hover{border-color:var(--border-color)}.modal-body .form-control:focus{color:var(--body-color)}.tribute-container{border:0}.tribute-container ul{border-color:var(--border-color);margin-top:0}.tribute-container li{border-left:0;border-right:0;border-top:0;font-size:13px;padding:.5rem 1rem}.tribute-container li:not(:last-child){border-bottom:1px solid var(--border-color)}.tribute-container li.highlight,.tribute-container li:hover{background:rgba(44,120,191,.25);color:var(--body-color);font-weight:700}.ft-std{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.timestamp-overlay-badge{color:var(--dark)}.modal-backdrop{opacity:.8}.timeline-status-component .username{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;margin-bottom:-3px;word-break:break-word}@media (min-width:768px){.timeline-status-component .username{font-size:17px}} +@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhdzeFaxOedfTDw.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhdXeFaxOedfTDw.woff2) format("woff2");unicode-range:u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhdLeFaxOedfTDw.woff2) format("woff2");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhd7eFaxOedfTDw.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhd_eFaxOedfTDw.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhdHeFaxOedc.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AIxsdP3pBmtF8A.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AIVsdP3pBmtF8A.woff2) format("woff2");unicode-range:u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AIJsdP3pBmtF8A.woff2) format("woff2");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AI5sdP3pBmtF8A.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AI9sdP3pBmtF8A.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AIFsdP3pBms.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}:root{--light:#fff;--dark:#000;--body-bg:#f3f4f6;--body-color:#212529;--nav-bg:#fff;--bg-light:#f8f9fa;--primary:#3b82f6;--light-gray:#f8f9fa;--text-lighter:#94a3b8;--card-bg:#fff;--light-hover-bg:#f9fafb;--btn-light-border:#fff;--input-border:#e2e8f0;--comment-bg:#eff2f5;--border-color:#dee2e6;--card-header-accent:#f9fafb;--dropdown-item-hover-bg:#e9ecef;--dropdown-item-hover-color:#16181b;--dropdown-item-color:#64748b;--dropdown-item-active-color:#334155}@media (prefers-color-scheme:dark){:root{--light:#000;--dark:#fff;--body-bg:#000;--body-color:#9ca3af;--nav-bg:#000;--bg-light:#212124;--light-gray:#212124;--text-lighter:#818181;--card-bg:#161618;--light-hover-bg:#212124;--btn-light-border:#161618;--input-border:#161618;--comment-bg:#212124;--border-color:#212124;--card-header-accent:#212124;--dropdown-item-hover-bg:#000;--dropdown-item-hover-color:#818181;--dropdown-item-color:#64748b;--dropdown-item-active-color:#fff}}.force-light-mode{--light:#fff;--dark:#000;--body-bg:#f3f4f6;--body-color:#212529;--nav-bg:#fff;--bg-light:#f8f9fa;--primary:#3b82f6;--light-gray:#f8f9fa;--text-lighter:#94a3b8;--card-bg:#fff;--light-hover-bg:#f9fafb;--btn-light-border:#fff;--input-border:#e2e8f0;--comment-bg:#eff2f5;--border-color:#dee2e6;--card-header-accent:#f9fafb;--dropdown-item-hover-bg:#e9ecef;--dropdown-item-hover-color:#16181b;--dropdown-item-color:#64748b;--dropdown-item-active-color:#334155}.force-dark-mode{--light:#000;--dark:#fff;--body-bg:#000;--body-color:#9ca3af;--nav-bg:#000;--bg-light:#212124;--light-gray:#212124;--text-lighter:#818181;--card-bg:#161618;--light-hover-bg:#212124;--btn-light-border:#161618;--input-border:#161618;--comment-bg:#212124;--border-color:#212124;--card-header-accent:#212124;--dropdown-item-hover-bg:#000;--dropdown-item-hover-color:#818181;--dropdown-item-color:#64748b;--dropdown-item-active-color:#b3b3b3}body{background:var(--body-bg);color:var(--body-color);font-family:IBM Plex Sans,sans-serif}.web-wrapper{margin-bottom:10rem}.container-fluid{max-width:1440px!important}.jumbotron,.rounded-px{border-radius:18px}.doc-body p:last-child{margin-bottom:0}.navbar-laravel{background-color:var(--nav-bg)}.sticky-top{z-index:2}.fw-bold{font-weight:700}.navbar-light .navbar-brand,.navbar-light .navbar-brand:hover{color:var(--dark)}.primary{color:var(--primary)}.bg-g-amin{background:#8e2de2;background:linear-gradient(270deg,#4a00e0,#8e2de2)}.text-lighter{color:var(--text-lighter)!important}.text-dark{color:var(--body-color)!important}.text-dark:hover,a.text-dark:hover{color:var(--dark)!important}.badge-primary,.btn-primary{background-color:var(--primary)}.btn-primary{color:#fff!important}.btn-outline-light{border-color:var(--light-gray)}.border{border:1px solid var(--border-color)!important}.border-right{border-color:var(--border-color)!important}.bg-light,.bg-white{background-color:var(--bg-light)!important;border-color:var(--bg-light)!important}.btn-light{background-color:var(--light-gray)}.btn-light,.btn-light:hover{border-color:var(--btn-light-border);color:var(--body-color)}.btn-light:hover{background-color:var(--card-bg)}.autocomplete-input{border:1px solid var(--light-gray)!important;color:var(--body-color)}.autocomplete-result-list{background:var(--light)!important;z-index:2!important}.dropdown-menu,.form-control,span.twitter-typeahead .tt-menu{background-color:var(--card-bg);border:1px solid var(--border-color)!important;color:var(--body-color)}.dropdown-item,.tribute-container li,span.twitter-typeahead .tt-suggestion{color:var(--body-color)}.dropdown-item:focus,.dropdown-item:hover,span.twitter-typeahead .tt-suggestion:focus,span.twitter-typeahead .tt-suggestion:hover{background-color:var(--dropdown-item-hover-bg);color:var(--dropdown-item-hover-color);text-decoration:none}.card,.card-footer,.card-header,.form-control:focus,.list-group-item,.modal-content,.ph-item,.popover,.tribute-container ul{background-color:var(--card-bg)}.badge-light,.breadcrumb,.ph-avatar,.ph-picture,.ph-row div{background-color:var(--light-gray)}.border-bottom,.border-top,.card-header{border-color:var(--border-color)!important}.modal-footer,.modal-header{border-color:var(--border-color)}.compose-action:hover{background-color:var(--light-gray)!important}.dropdown-divider{border-color:var(--dropdown-item-hover-bg)}.metro-nav.flex-column{background-color:var(--card-bg)}.metro-nav.flex-column .nav-item .nav-link:hover{background-color:var(--light-hover-bg)}.child-reply-form .form-control{border-color:var(--input-border);color:var(--body-color)}.ui-menu .btn-group .btn:first-child{border-bottom-left-radius:50rem;border-top-left-radius:50rem}.ui-menu .btn-group .btn:last-child{border-bottom-right-radius:50rem;border-top-right-radius:50rem}.ui-menu .btn-group .btn-primary{font-weight:700}.ui-menu .b-custom-control-lg{padding-bottom:8px}.content-label-wrapper div:not(.content-label){height:100%}.content-label-text{width:80%}@media (min-width:768px){.content-label-text{width:50%}}.compose-modal-component .form-control:focus{color:var(--body-color)}.modal-body .nav-tabs .nav-item.show .nav-link,.modal-body .nav-tabs .nav-link.active{background-color:transparent;border-color:var(--border-color)}.modal-body .nav-tabs .nav-link:focus,.modal-body .nav-tabs .nav-link:hover{border-color:var(--border-color)}.modal-body .form-control:focus{color:var(--body-color)}.tribute-container{border:0}.tribute-container ul{border-color:var(--border-color);margin-top:0}.tribute-container li{border-left:0;border-right:0;border-top:0;font-size:13px;padding:.5rem 1rem}.tribute-container li:not(:last-child){border-bottom:1px solid var(--border-color)}.tribute-container li.highlight,.tribute-container li:hover{background:rgba(44,120,191,.25);color:var(--body-color);font-weight:700}.ft-std{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.timestamp-overlay-badge{color:var(--dark)}.modal-backdrop{opacity:.8}.timeline-status-component .username{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;margin-bottom:-3px;word-break:break-word}@media (min-width:768px){.timeline-status-component .username{font-size:17px}} diff --git a/public/js/admin.js b/public/js/admin.js index 90d4a9b6..109858e8 100644 --- a/public/js/admin.js +++ b/public/js/admin.js @@ -1,2 +1,2 @@ /*! For license information please see admin.js.LICENSE.txt */ -(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[9567],{95366:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(2e4);a(87980);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function n(){n=function(){return e};var t,e={},a=Object.prototype,s=a.hasOwnProperty,o=Object.defineProperty||function(t,e,a){t[e]=a.value},r="function"==typeof Symbol?Symbol:{},l=r.iterator||"@@iterator",c=r.asyncIterator||"@@asyncIterator",d=r.toStringTag||"@@toStringTag";function u(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,a){return t[e]=a}}function m(t,e,a,s){var i=e&&e.prototype instanceof b?e:b,n=Object.create(i.prototype),r=new D(s||[]);return o(n,"_invoke",{value:A(t,a,r)}),n}function p(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}e.wrap=m;var v="suspendedStart",f="suspendedYield",h="executing",g="completed",_={};function b(){}function C(){}function w(){}var y={};u(y,l,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(M([])));k&&k!==a&&s.call(k,l)&&(y=k);var S=w.prototype=b.prototype=Object.create(y);function R(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function a(n,o,r,l){var c=p(t[n],t,o);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==i(u)&&s.call(u,"__await")?e.resolve(u.__await).then((function(t){a("next",t,r,l)}),(function(t){a("throw",t,r,l)})):e.resolve(u).then((function(t){d.value=t,r(d)}),(function(t){return a("throw",t,r,l)}))}l(c.arg)}var n;o(this,"_invoke",{value:function(t,s){function i(){return new e((function(e,i){a(t,s,e,i)}))}return n=n?n.then(i,i):i()}})}function A(e,a,s){var i=v;return function(n,o){if(i===h)throw Error("Generator is already running");if(i===g){if("throw"===n)throw o;return{value:t,done:!0}}for(s.method=n,s.arg=o;;){var r=s.delegate;if(r){var l=I(r,s);if(l){if(l===_)continue;return l}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(i===v)throw i=g,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);i=h;var c=p(e,a,s);if("normal"===c.type){if(i=s.done?g:f,c.arg===_)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(i=g,s.method="throw",s.arg=c.arg)}}}function I(e,a){var s=a.method,i=e.iterator[s];if(i===t)return a.delegate=null,"throw"===s&&e.iterator.return&&(a.method="return",a.arg=t,I(e,a),"throw"===a.method)||"return"!==s&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var n=p(i,e.iterator,a.arg);if("throw"===n.type)return a.method="throw",a.arg=n.arg,a.delegate=null,_;var o=n.arg;return o?o.done?(a[e.resultName]=o.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,_):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,_)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function M(e){if(e||""===e){var a=e[l];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function a(){for(;++n=0;--n){var o=this.tryEntries[n],r=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),j(a),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var s=a.completion;if("throw"===s.type){var i=s.arg;j(a)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,a,s){return this.delegate={iterator:M(e),resultName:a,nextLoc:s},"next"===this.method&&(this.arg=t),_}},e}function o(t,e,a,s,i,n,o){try{var r=t[n](o),l=r.value}catch(t){return void a(t)}r.done?e(l):Promise.resolve(l).then(s,i)}const r={components:{Autocomplete:s.default},data:function(){return{loaded:!1,tabIndex:0,config:{autospam_enabled:null,open:0,closed:0},closedReports:[],closedReportsFetched:!1,closedReportsCursor:null,closedReportsCanLoadMore:!1,showSpamReportModal:!1,showSpamReportModalLoading:!0,viewingSpamReport:void 0,viewingSpamReportLoading:!1,showNonSpamModal:!1,nonSpamAccounts:[],searchLoading:!1,customTokens:[],customTokensFetched:!1,customTokensCanLoadMore:!1,showCreateTokenModal:!1,customTokenForm:{token:void 0,weight:1,category:"spam",note:void 0,active:!0},showEditTokenModal:!1,editCustomToken:{},editCustomTokenForm:{token:void 0,weight:1,category:"spam",note:void 0,active:!0}}},mounted:function(){var t=this;setTimeout((function(){t.loaded=!0,t.fetchConfig()}),1e3)},methods:{toggleTab:function(t){var e=this;this.tabIndex=t,0==t&&setTimeout((function(){e.initChart()}),500),"closed_reports"!==t||this.closedReportsFetched||this.fetchClosedReports(),"manage_tokens"!==t||this.customTokensFetched||this.fetchCustomTokens()},formatCount:function(t){return App.util.format.count(t)},timeAgo:function(t){return t?App.util.format.timeAgo(t):t},fetchConfig:function(){var t=this;axios.post("/i/admin/api/autospam/config").then((function(e){t.config=e.data,t.loaded=!0})).finally((function(){setTimeout((function(){t.initChart()}),100)}))},initChart:function(){new Chart(document.querySelector("#c1-dark"),{type:"line",options:{scales:{yAxes:[{gridLines:{lineWidth:1,color:"#212529",zeroLineColor:"#212529"}}]}},data:{datasets:[{data:this.config.graph}],labels:this.config.graphLabels}})},fetchClosedReports:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/autospam/reports/closed";axios.post(e).then((function(e){t.closedReports=e.data})).finally((function(){t.closedReportsFetched=!0}))},viewSpamReport:function(t){this.viewingSpamReportLoading=!1,this.viewingSpamReport=t,this.showSpamReportModal=!0,setTimeout((function(){pixelfed.readmore()}),500)},autospamPaginate:function(t){event.currentTarget.blur();var e="next"==t?this.closedReports.links.next:this.closedReports.links.prev;this.fetchClosedReports(e)},autospamTrainSpam:function(){event.currentTarget.blur(),axios.post("/i/admin/api/autospam/train").then((function(t){swal("Training Autospam!","A background job has been dispatched to train Autospam!","success"),setTimeout((function(){window.location.reload()}),1e4)})).catch((function(t){422===t.response.status?swal("Error",t.response.data.error,"error"):swal("Error","Oops, an error occured, please try again later","error")}))},autospamTrainNonSpam:function(){this.showNonSpamModal=!0},composeSearch:function(t){var e=this;return t.length<1?[]:axios.post("/i/admin/api/autospam/search/non-spam",{q:t}).then((function(t){return t.data.filter((function(t){return!e.nonSpamAccounts||!e.nonSpamAccounts.length||e.nonSpamAccounts&&-1==e.nonSpamAccounts.map((function(t){return t.id})).indexOf(t.id)}))}))},getTagResultValue:function(t){return t.username},onSearchResultClick:function(t){-1==this.nonSpamAccounts.map((function(t){return t.id})).indexOf(t.id)&&this.nonSpamAccounts.push(t)},autospamTrainNonSpamRemove:function(t){this.nonSpamAccounts.splice(t,1)},autospamTrainNonSpamSubmit:function(){this.showNonSpamModal=!1,axios.post("/i/admin/api/autospam/train/non-spam",{accounts:this.nonSpamAccounts}).then((function(t){swal("Training Autospam!","A background job has been dispatched to train Autospam!","success"),setTimeout((function(){window.location.reload()}),1e4)})).catch((function(t){422===t.response.status?swal("Error",t.response.data.error,"error"):swal("Error","Oops, an error occured, please try again later","error")}))},fetchCustomTokens:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/autospam/tokens/custom";axios.post(e).then((function(e){t.customTokens=e.data})).finally((function(){t.customTokensFetched=!0}))},handleSaveToken:function(){var t=this;axios.post("/i/admin/api/autospam/tokens/store",this.customTokenForm).then((function(t){console.log(t.data)})).catch((function(t){swal("Oops! An Error Occured",t.response.data.message,"error")})).finally((function(){t.customTokenForm={token:void 0,weight:1,category:"spam",note:void 0,active:!0},t.fetchCustomTokens()}))},openEditTokenModal:function(t){event.currentTarget.blur(),this.editCustomToken=t,this.editCustomTokenForm=t,this.showEditTokenModal=!0},handleUpdateToken:function(){axios.post("/i/admin/api/autospam/tokens/update",this.editCustomTokenForm).then((function(t){console.log(t.data)}))},autospamTokenPaginate:function(t){event.currentTarget.blur();var e="next"==t?this.customTokens.next_page_url:this.customTokens.prev_page_url;this.fetchCustomTokens(e)},downloadExport:function(){event.currentTarget.blur(),axios.post("/i/admin/api/autospam/tokens/export",{},{responseType:"blob"}).then((function(t){var e=document.createElement("a");e.setAttribute("download","pixelfed-autospam-export.json");var a=URL.createObjectURL(t.data);e.href=a,e.setAttribute("target","_blank"),e.click(),URL.revokeObjectURL(a)})).catch(function(){var t,e=(t=n().mark((function t(e){var a;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.response.data,!("blob"===e.request.responseType&&e.response.data instanceof Blob&&e.response.data.type&&-1!=e.response.data.type.toLowerCase().indexOf("json"))){t.next=8;break}return t.t0=JSON,t.next=5,e.response.data.text();case 5:t.t1=t.sent,a=t.t0.parse.call(t.t0,t.t1),swal("Export Error",a.error,"error");case 8:case 9:case"end":return t.stop()}}),t)})),function(){var e=this,a=arguments;return new Promise((function(s,i){var n=t.apply(e,a);function r(t){o(n,s,i,r,l,"next",t)}function l(t){o(n,s,i,r,l,"throw",t)}r(void 0)}))});return function(t){return e.apply(this,arguments)}}())},enableAdvanced:function(){event.currentTarget.blur(),!this.config.files.spam.exists||!this.config.files.ham.exists||!this.config.files.combined.exists||this.config.files.spam.size<1e3||this.config.files.ham.size<1e3||this.config.files.combined.size<1e3?swal("Training Required",'Before you can enable Advanced Detection, you need to train the models.\n\n Click on the "Train Autospam" tab and train both categories before proceeding',"error"):swal({title:"Confirm",text:"Are you sure you want to enable Advanced Detection?",icon:"warning",dangerMode:!0,buttons:{cancel:"Cancel",confirm:{text:"Enable",value:"enable"}}}).then((function(t){"enable"===t&&axios.post("/i/admin/api/autospam/config/enable").then((function(t){swal("Success! Advanced Detection is now enabled!\n\n This page will reload in a few seconds!",{icon:"success"}),setTimeout((function(){window.location.reload()}),5e3)})).catch((function(t){swal("Oops!","An error occured, please try again later","error")}))}))},disableAdvanced:function(){event.currentTarget.blur(),swal({title:"Confirm",text:"Are you sure you want to disable Advanced Detection?",icon:"warning",dangerMode:!0,buttons:{cancel:"Cancel",confirm:{text:"Disable",value:"disable"}}}).then((function(t){"disable"===t&&axios.post("/i/admin/api/autospam/config/disable").then((function(t){swal("Success! Advanced Detection is now disabled!\n\n This page will reload in a few seconds!",{icon:"success"}),setTimeout((function(){window.location.reload()}),5e3)})).catch((function(t){swal("Oops!","An error occured, please try again later","error")}))}))},handleImport:function(){event.currentTarget.blur(),swal("Error","You do not have enough data to support importing.","error")}}}},71847:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var s=a(74692);const i={data:function(){return{loaded:!1,initialData:{},tabIndex:1,tabs:[{id:1,title:"Overview",icon:"far fa-home"},{id:3,title:"Server Details",icon:"far fa-info-circle"},{id:4,title:"Admin Contact",icon:"far fa-user-crown"},{id:5,title:"Favourite Posts",icon:"far fa-heart"},{id:6,title:"Privacy Pledge",icon:"far fa-eye-slash"},{id:7,title:"Community Guidelines",icon:"far fa-smile-beam"},{id:8,title:"Feature Requirements",icon:"far fa-bolt"},{id:9,title:"User Testimonials",icon:"far fa-comment-smile"}],form:{summary:"",location:0,contact_account:0,contact_email:"",privacy_pledge:void 0,banner_image:void 0,locale:0},requirements:{activitypub_enabled:void 0,open_registration:void 0,oauth_enabled:void 0,curated_onboarding:void 0},feature_config:[],requirements_validator:[],popularPostsLoaded:!1,popularPosts:[],selectedPopularPosts:[],selectedPosts:[],favouritePostByIdInput:"",favouritePostByIdFetching:!1,communityGuidelines:[],isUploadingBanner:!1,state:{is_eligible:!1,submission_exists:!1,awaiting_approval:!1,is_active:!1,submission_timestamp:void 0},isSubmitting:!1,testimonial:{username:void 0,body:void 0},testimonials:[],isEditingTestimonial:!1,editingTestimonial:void 0}},mounted:function(){this.fetchInitialData()},methods:{toggleTab:function(t){this.tabIndex=t},fetchInitialData:function(){var t=this;axios.get("/i/admin/api/directory/initial-data").then((function(e){t.initialData=e.data,e.data.activitypub_enabled&&(t.requirements.activitypub_enabled=e.data.activitypub_enabled),e.data.open_registration&&(t.requirements.open_registration=e.data.open_registration),e.data.curated_onboarding&&(t.requirements.curated_onboarding=e.data.curated_onboarding),e.data.oauth_enabled&&(t.requirements.oauth_enabled=e.data.oauth_enabled),e.data.summary&&(t.form.summary=e.data.summary),e.data.location&&(t.form.location=e.data.location),e.data.favourite_posts&&(t.selectedPosts=e.data.favourite_posts),e.data.admin&&(t.form.contact_account=e.data.admin),e.data.contact_email&&(t.form.contact_email=e.data.contact_email),e.data.community_guidelines&&(t.communityGuidelines=e.data.community_guidelines),e.data.privacy_pledge&&(t.form.privacy_pledge=e.data.privacy_pledge),e.data.feature_config&&(t.feature_config=e.data.feature_config),e.data.requirements_validator&&(t.requirements_validator=e.data.requirements_validator),e.data.banner_image&&(t.form.banner_image=e.data.banner_image),e.data.primary_locale&&(t.form.primary_locale=e.data.primary_locale),e.data.is_eligible&&(t.state.is_eligible=e.data.is_eligible),e.data.testimonials&&(t.testimonials=e.data.testimonials),e.data.submission_state&&(t.state.is_active=e.data.submission_state.active_submission,t.state.submission_exists=e.data.submission_state.pending_submission,t.state.awaiting_approval=e.data.submission_state.pending_submission)})).then((function(){t.loaded=!0}))},initPopularPosts:function(){var t=this;this.popularPostsLoaded||axios.get("/i/admin/api/directory/popular-posts").then((function(e){t.popularPosts=e.data.filter((function(e){return!t.selectedPosts.map((function(t){return t.id})).includes(e.id)}))})).then((function(){t.popularPostsLoaded=!0}))},formatCount:function(t){return window.App.util.format.count(t)},formatDateTime:function(t){var e=new Date(t);return new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"short"}).format(e)},formatDate:function(t){var e=new Date(t);return new Intl.DateTimeFormat("en-US",{month:"short",year:"numeric"}).format(e)},formatTimestamp:function(t){return window.App.util.format.timeAgo(t)},togglePopularPost:function(t,e){if(this.selectedPosts.length)if(this.selectedPosts.map((function(t){return t.id})).includes(t))this.selectedPosts=this.selectedPosts.filter((function(e){return e.id!=t}));else{if(this.selectedPosts.length>=12)return swal("Oops!","You can only select 12 popular posts","error"),void(event.currentTarget.checked=!1);this.selectedPosts.push(e)}else this.selectedPosts.push(e)},toggleSelectedPost:function(t){this.selectedPosts=this.selectedPosts.filter((function(e){return e.id!==t.id}))},handlePostByIdSearch:function(){var t=this;event.currentTarget.blur(),this.selectedPosts.length>=12?swal("Oops","You can only select 12 posts","error"):(this.favouritePostByIdFetching=!0,axios.post("/i/admin/api/directory/add-by-id",{q:this.favouritePostByIdInput}).then((function(e){t.selectedPosts.map((function(t){return t.id})).includes(e.data.id)?swal("Oops!","You already selected this post!","error"):(t.selectedPosts.push(e.data),t.favouritePostByIdInput="",t.popularPosts=t.popularPosts.filter((function(t){return t.id!=e.data.id})))})).then((function(){t.favouritePostByIdFetching=!1,s("#favposts-1-tab").tab("show")})).catch((function(e){swal("Invalid Post","The post id you added is not valid","error"),t.favouritePostByIdFetching=!1})))},save:function(){axios.post("/i/admin/api/directory/save",{location:this.form.location,summary:this.form.summary,admin_uid:this.form.contact_account,contact_email:this.form.contact_email,favourite_posts:this.selectedPosts.map((function(t){return t.id})),privacy_pledge:this.form.privacy_pledge}).then((function(t){swal("Success!","Successfully saved directory settings","success")})).catch((function(t){swal("Oops!",t.response.data.message,"error")}))},uploadBannerImage:function(){var t=this;if(this.isUploadingBanner=!0,window.confirm("Are you sure you want to update your server banner image?")){var e=new FormData;e.append("banner_image",this.$refs.bannerImageRef.files[0]),axios.post("/i/admin/api/directory/save",e,{headers:{"Content-Type":"multipart/form-data"}}).then((function(e){t.form.banner_image=e.data.banner_image,t.isUploadingBanner=!1})).catch((function(e){swal("Error",e.response.data.message,"error"),t.isUploadingBanner=!1}))}else this.isUploadingBanner=!1},deleteBannerImage:function(){var t=this;window.confirm("Are you sure you want to delete your server banner image?")&&axios.delete("/i/admin/api/directory/banner-image").then((function(e){t.form.banner_image=e.data})).catch((function(t){console.log(t)}))},handleSubmit:function(){var t=this;window.confirm("Are you sure you want to submit your server?")&&(this.isSubmitting=!0,axios.post("/i/admin/api/directory/submit").then((function(e){setTimeout((function(){t.isSubmitting=!1,t.state.is_active=!0,console.log(e.data)}),3e3)})).catch((function(t){swal("Error",t.response.data.message,"error")})))},deleteTestimonial:function(t){var e=this;window.confirm("Are you sure you want to delete the testimonial by "+t.profile.username+"?")&&axios.post("/i/admin/api/directory/testimonial/delete",{profile_id:t.profile.id}).then((function(a){e.testimonials=e.testimonials.filter((function(e){return e.profile.id!=t.profile.id}))}))},editTestimonial:function(t){this.isEditingTestimonial=!0,this.editingTestimonial=t},saveTestimonial:function(){var t,e=this;null===(t=event.currentTarget)||void 0===t||t.blur(),axios.post("/i/admin/api/directory/testimonial/save",{username:this.testimonial.username,body:this.testimonial.body}).then((function(t){e.testimonials.push(t.data),e.testimonial={username:void 0,body:void 0}})).catch((function(t){var e=t.response.data.hasOwnProperty("error")?t.response.data.error:t.response.data.message;swal("Oops!",e,"error")}))},cancelEditTestimonial:function(){var t;null===(t=event.currentTarget)||void 0===t||t.blur(),this.isEditingTestimonial=!1,this.editingTestimonial={}},saveEditTestimonial:function(){var t,e=this;null===(t=event.currentTarget)||void 0===t||t.blur(),axios.post("/i/admin/api/directory/testimonial/update",{profile_id:this.editingTestimonial.profile.id,body:this.editingTestimonial.body}).then((function(t){e.isEditingTestimonial=!1,e.editingTestimonial={}}))}},watch:{selectedPosts:function(t){var e=t.map((function(t){return t.id}));this.popularPosts=this.popularPosts.filter((function(t){return!e.includes(t.id)}))}}}},44107:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var s=a(2e4);a(87980);const i={components:{Autocomplete:s.default},data:function(){return{loaded:!1,tabIndex:0,stats:{total_unique:0,total_posts:0,added_14_days:0,total_banned:0,total_nsfw:0},hashtags:[],pagination:[],sortCol:void 0,sortDir:void 0,trendingTags:[],bannedTags:[],showEditModal:!1,editingHashtag:void 0,editSaved:!1,editSavedTimeout:void 0,searchLoading:!1}},mounted:function(){var t=this;this.fetchStats(),this.fetchHashtags(),this.$root.$on("bv::modal::hidden",(function(e,a){t.editSaved=!1,clearTimeout(t.editSavedTimeout),t.editingHashtag=void 0}))},watch:{editingHashtag:{deep:!0,immediate:!0,handler:function(t,e){null!=t&&null!=e&&this.storeHashtagEdit(t)}}},methods:{fetchStats:function(){var t=this;axios.get("/i/admin/api/hashtags/stats").then((function(e){t.stats=e.data}))},fetchHashtags:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/hashtags/query";axios.get(e).then((function(e){t.hashtags=e.data.data,t.pagination={next:e.data.links.next,prev:e.data.links.prev},t.loaded=!0}))},prettyCount:function(t){return t?t.toLocaleString("en-CA",{compactDisplay:"short",notation:"compact"}):t},timeAgo:function(t){return t?App.util.format.timeAgo(t):t},boolIcon:function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text-muted";return t?''):'')},paginate:function(t){event.currentTarget.blur();var e="next"==t?this.pagination.next:this.pagination.prev;this.fetchHashtags(e)},toggleCol:function(t){this.sortCol=t,this.sortDir?this.sortDir="asc"==this.sortDir?"desc":"asc":this.sortDir="desc";var e="/i/admin/api/hashtags/query?sort="+t+"&dir="+this.sortDir;this.fetchHashtags(e)},buildColumn:function(t,e){var a='';return e==this.sortCol&&(a="desc"==this.sortDir?'':''),"".concat(t," ").concat(a)},toggleTab:function(t){var e=this;if(this.loaded=!1,this.tabIndex=t,0===t)this.fetchHashtags();else if(1===t)axios.get("/api/v1.1/discover/posts/hashtags").then((function(t){e.trendingTags=t.data,e.loaded=!0}));else if(2===t){this.fetchHashtags("/i/admin/api/hashtags/query?action=banned")}else if(3===t){this.fetchHashtags("/i/admin/api/hashtags/query?action=nsfw")}},openEditHashtagModal:function(t){var e=this;this.editSaved=!1,clearTimeout(this.editSavedTimeout),this.$nextTick((function(){axios.get("/i/admin/api/hashtags/get",{params:{id:t.id}}).then((function(t){e.editingHashtag=t.data.data,e.showEditModal=!0}))}))},storeHashtagEdit:function(t,e){var a=this;this.editSaved=!1,t.is_banned&&(t.can_trend||t.can_search)&&swal("Banned Hashtag Limits","Banned hashtags cannot trend or be searchable, to allow those you need to unban the hashtag","error"),axios.post("/i/admin/api/hashtags/update",t).then((function(e){a.editSaved=!0,1!==a.tabIndex&&(a.hashtags=a.hashtags.map((function(a){return a.id==t.id&&(a=e.data.data),a}))),a.editSavedTimeout=setTimeout((function(){a.editSaved=!1}),5e3)})).catch((function(t){swal("Oops!","An error occured, please try again.","error"),console.log(t)}))},composeSearch:function(t){return t.length<1?[]:axios.get("/i/admin/api/hashtags/query",{params:{q:t,sort:"cached_count",dir:"desc"}}).then((function(t){return t.data.data}))},getTagResultValue:function(t){return t.name},onSearchResultClick:function(t){this.openEditHashtagModal(t)},clearTrendingCache:function(){event.currentTarget.blur(),window.confirm("Are you sure you want to clear the trending hashtags cache?")&&axios.post("/i/admin/api/hashtags/clear-trending-cache").then((function(t){swal("Cache Cleared!","Successfully cleared the trending hashtag cache!","success")}))}}}},56310:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>u});var s=a(2e4);a(87980);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function n(){n=function(){return e};var t,e={},a=Object.prototype,s=a.hasOwnProperty,o=Object.defineProperty||function(t,e,a){t[e]=a.value},r="function"==typeof Symbol?Symbol:{},l=r.iterator||"@@iterator",c=r.asyncIterator||"@@asyncIterator",d=r.toStringTag||"@@toStringTag";function u(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,a){return t[e]=a}}function m(t,e,a,s){var i=e&&e.prototype instanceof b?e:b,n=Object.create(i.prototype),r=new D(s||[]);return o(n,"_invoke",{value:A(t,a,r)}),n}function p(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}e.wrap=m;var v="suspendedStart",f="suspendedYield",h="executing",g="completed",_={};function b(){}function C(){}function w(){}var y={};u(y,l,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(M([])));k&&k!==a&&s.call(k,l)&&(y=k);var S=w.prototype=b.prototype=Object.create(y);function R(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function a(n,o,r,l){var c=p(t[n],t,o);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==i(u)&&s.call(u,"__await")?e.resolve(u.__await).then((function(t){a("next",t,r,l)}),(function(t){a("throw",t,r,l)})):e.resolve(u).then((function(t){d.value=t,r(d)}),(function(t){return a("throw",t,r,l)}))}l(c.arg)}var n;o(this,"_invoke",{value:function(t,s){function i(){return new e((function(e,i){a(t,s,e,i)}))}return n=n?n.then(i,i):i()}})}function A(e,a,s){var i=v;return function(n,o){if(i===h)throw Error("Generator is already running");if(i===g){if("throw"===n)throw o;return{value:t,done:!0}}for(s.method=n,s.arg=o;;){var r=s.delegate;if(r){var l=I(r,s);if(l){if(l===_)continue;return l}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(i===v)throw i=g,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);i=h;var c=p(e,a,s);if("normal"===c.type){if(i=s.done?g:f,c.arg===_)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(i=g,s.method="throw",s.arg=c.arg)}}}function I(e,a){var s=a.method,i=e.iterator[s];if(i===t)return a.delegate=null,"throw"===s&&e.iterator.return&&(a.method="return",a.arg=t,I(e,a),"throw"===a.method)||"return"!==s&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var n=p(i,e.iterator,a.arg);if("throw"===n.type)return a.method="throw",a.arg=n.arg,a.delegate=null,_;var o=n.arg;return o?o.done?(a[e.resultName]=o.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,_):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,_)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function M(e){if(e||""===e){var a=e[l];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function a(){for(;++n=0;--n){var o=this.tryEntries[n],r=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),j(a),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var s=a.completion;if("throw"===s.type){var i=s.arg;j(a)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,a,s){return this.delegate={iterator:M(e),resultName:a,nextLoc:s},"next"===this.method&&(this.arg=t),_}},e}function o(t,e,a,s,i,n,o){try{var r=t[n](o),l=r.value}catch(t){return void a(t)}r.done?e(l):Promise.resolve(l).then(s,i)}function r(t){return function(){var e=this,a=arguments;return new Promise((function(s,i){var n=t.apply(e,a);function r(t){o(n,s,i,r,l,"next",t)}function l(t){o(n,s,i,r,l,"throw",t)}r(void 0)}))}}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function c(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/instances/get";axios.get(e).then((function(e){t.instances=e.data.data,t.pagination=c(c({},e.data.links),e.data.meta)})).then((function(){t.$nextTick((function(){t.loaded=!0}))}))},toggleTab:function(t){this.loaded=!1,this.tabIndex=t,this.searchQuery=void 0;var e="/i/admin/api/instances/get?filter="+this.filterMap[t];history.pushState(null,"","/i/admin/instances?filter="+this.filterMap[t]),this.fetchInstances(e)},prettyCount:function(t){return t?t.toLocaleString("en-CA",{compactDisplay:"short",notation:"compact"}):0},formatCount:function(t){return t?t.toLocaleString("en-CA"):0},timeAgo:function(t){return t?App.util.format.timeAgo(t):t},boolIcon:function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text-muted";return t?''):'')},toggleCol:function(t){if(this.filterMap[this.tabIndex]!=t&&!this.searchQuery){this.sortCol=t,this.sortDir?this.sortDir="asc"==this.sortDir?"desc":"asc":this.sortDir="desc";var e=new URL(window.location.origin+"/i/admin/instances");e.searchParams.set("sort",t),e.searchParams.set("dir",this.sortDir),0!=this.tabIndex&&e.searchParams.set("filter",this.filterMap[this.tabIndex]),history.pushState(null,"",e);var a=new URL(window.location.origin+"/i/admin/api/instances/get");a.searchParams.set("sort",t),a.searchParams.set("dir",this.sortDir),0!=this.tabIndex&&a.searchParams.set("filter",this.filterMap[this.tabIndex]),this.fetchInstances(a.toString())}},buildColumn:function(t,e){if(-1!=[1,5,6].indexOf(this.tabIndex)||this.searchQuery&&this.searchQuery.length)return t;if(2===this.tabIndex&&"banned"===e)return t;if(3===this.tabIndex&&"auto_cw"===e)return t;if(4===this.tabIndex&&"unlisted"===e)return t;var a='';return e==this.sortCol&&(a="desc"==this.sortDir?'':''),"".concat(t," ").concat(a)},paginate:function(t){event.currentTarget.blur();var e="next"==t?this.pagination.next:this.pagination.prev,a="next"==t?this.pagination.next_cursor:this.pagination.prev_cursor,s=new URL(window.location.origin+"/i/admin/instances");a&&s.searchParams.set("cursor",a),this.searchQuery&&s.searchParams.set("q",this.searchQuery),this.sortCol&&s.searchParams.set("sort",this.sortCol),this.sortDir&&s.searchParams.set("dir",this.sortDir),history.pushState(null,"",s.toString()),this.fetchInstances(e)},composeSearch:function(t){var e=this;return t.length<1?[]:(this.searchQuery=t,history.pushState(null,"","/i/admin/instances?q="+t),axios.get("/i/admin/api/instances/query",{params:{q:t}}).then((function(t){return t&&t.data?(e.tabIndex=-1,e.instances=t.data.data,e.pagination=c(c({},t.data.links),t.data.meta)):e.fetchInstances(),t.data.data})))},getTagResultValue:function(t){return t.name},onSearchResultClick:function(t){this.openInstanceModal(t.id)},openInstanceModal:function(t){var e=this,a=this.instances.filter((function(e){return e.id===t}))[0];this.refreshedModalStats=!1,this.editingInstanceChanges=!1,this.instanceModalNotes=!1,this.canEditInstance=!1,this.instanceModal=a,this.$nextTick((function(){e.editingInstance=a,e.showInstanceModal=!0,e.canEditInstance=!0}))},showModalNotes:function(){this.instanceModalNotes=!0},saveInstanceModalChanges:function(){var t=this;axios.post("/i/admin/api/instances/update",this.editingInstance).then((function(e){t.showInstanceModal=!1,t.$bvToast.toast("Successfully updated ".concat(e.data.data.domain),{title:"Instance Updated",autoHideDelay:5e3,appendToast:!0,variant:"success"})}))},saveNewInstance:function(){var t=this;axios.post("/i/admin/api/instances/create",this.addNewInstance).then((function(e){t.showInstanceModal=!1,t.instances.unshift(e.data.data)})).catch((function(e){swal("Oops!","An error occured, please try again later.","error"),t.addNewInstance={domain:"",banned:!1,auto_cw:!1,unlisted:!1,notes:void 0}}))},refreshModalStats:function(){var t=this;axios.post("/i/admin/api/instances/refresh-stats",{id:this.instanceModal.id}).then((function(e){t.refreshedModalStats=!0,t.instanceModal=e.data.data,t.editingInstance=e.data.data,t.instances=t.instances.map((function(t){return t.id===e.data.data.id?e.data.data:t}))}))},deleteInstanceModal:function(){var t=this;window.confirm("Are you sure you want to delete this instance? This will not delete posts or profiles from this instance.")&&axios.post("/i/admin/api/instances/delete",{id:this.instanceModal.id}).then((function(e){t.showInstanceModal=!1,t.instances=t.instances.filter((function(e){return e.id!=t.instanceModal.id}))})).then((function(){setTimeout((function(){return t.fetchStats()}),1e3)}))},openImportForm:function(){var t=document.createElement("p");t.classList.add("text-left"),t.classList.add("mb-0"),t.innerHTML='

Import your instance moderation backup.


Import Instructions:

  1. Press OK
  2. Press "Choose File" on Import form input
  3. Select your pixelfed-instances-mod.json file
  4. Review instance moderation actions. Tap on an instance to remove it
  5. Press "Import" button to finish importing
';var e=document.createElement("div");e.appendChild(t),swal({title:"Import Backup",content:e,icon:"info"}),this.showImportForm=!0},downloadBackup:function(t){axios.get("/i/admin/api/instances/download-backup",{responseType:"blob"}).then((function(t){var e=document.createElement("a");e.setAttribute("download","pixelfed-instances-mod.json");var a=URL.createObjectURL(t.data);e.href=a,e.setAttribute("target","_blank"),e.click(),swal("Instance Backup Downloading","Your instance moderation backup is downloading. Use this to import auto_cw, banned and unlisted instances to supported Pixelfed instances.","success")}))},onImportUpload:function(t){var e=this;return r(n().mark((function a(){var s;return n().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.getParsedImport(t.target.files[0]);case 2:if((s=a.sent).hasOwnProperty("version")&&1===s.version){a.next=8;break}return swal("Invalid Backup","We cannot validate this backup. Please try again later.","error"),e.showImportForm=!1,e.$refs.importInput.reset(),a.abrupt("return");case 8:e.importData=s,e.showImportModal=!0;case 10:case"end":return a.stop()}}),a)})))()},getParsedImport:function(t){var e=this;return r(n().mark((function a(){var s,i;return n().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.parseJsonFile(t);case 3:return a.abrupt("return",a.sent);case 6:return a.prev=6,a.t0=a.catch(0),(s=document.createElement("p")).classList.add("text-left"),s.classList.add("mb-0"),s.innerHTML='

An error occured when attempting to parse the import file. Please try again later.


Error message:

'+a.t0.message+"
",(i=document.createElement("div")).appendChild(s),swal({title:"Import Error",content:i,icon:"error"}),a.abrupt("return");case 16:case"end":return a.stop()}}),a,null,[[0,6]])})))()},promisedParseJSON:function(t){return r(n().mark((function e(){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,a){try{e(JSON.parse(t))}catch(t){a(t)}})));case 1:case"end":return e.stop()}}),e)})))()},parseJsonFile:function(t){var e=this;return r(n().mark((function a(){return n().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise((function(a,s){var i=new FileReader;i.onload=function(t){return a(e.promisedParseJSON(t.target.result))},i.onerror=function(t){return s(t)},i.readAsText(t)})));case 1:case"end":return a.stop()}}),a)})))()},filterImportData:function(t,e){switch(t){case"auto_cw":this.importData.auto_cw.splice(e,1);break;case"unlisted":this.importData.unlisted.splice(e,1);break;case"banned":this.importData.banned.splice(e,1)}},completeImport:function(){var t=this;this.showImportForm=!1,axios.post("/i/admin/api/instances/import-data",{banned:this.importData.banned,auto_cw:this.importData.auto_cw,unlisted:this.importData.unlisted}).then((function(t){swal("Import Uploaded","Import successfully uploaded, please allow a few minutes to process.","success")})).then((function(){setTimeout((function(){return t.fetchStats()}),1e3)}))},cancelImport:function(t){if(this.importData.banned.length||this.importData.auto_cw.length||this.importData.unlisted.length){if(!window.confirm("Are you sure you want to cancel importing?"))return void t.preventDefault();this.showImportForm=!1,this.$refs.importInput.value="",this.importData={banned:[],auto_cw:[],unlisted:[]}}},onViewMoreInstance:function(){this.showInstanceModal=!1,window.location.href="/i/admin/instances/show/"+this.instanceModal.id}}}},51839:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(98385),i=a(74692);const n={components:{"admin-report-modal":s.default},data:function(){return{loaded:!1,stats:{total:0,open:0,closed:0,autospam:0,autospam_open:0,remote_open:0},tabIndex:0,reports:[],pagination:{},showReportModal:!1,viewingReport:void 0,viewingReportLoading:!1,autospam:[],autospamPagination:{},autospamLoaded:!1,showSpamReportModal:!1,viewingSpamReport:void 0,viewingSpamReportLoading:!1,remoteReportsLoaded:!1,showRemoteReportModal:void 0,remoteReportModalModel:{}}},mounted:function(){var t=new URLSearchParams(window.location.search);t.has("tab")&&t.has("id")&&"autospam"===t.get("tab")?(this.fetchStats(null,"/i/admin/api/reports/spam/all"),this.fetchSpamReport(t.get("id"))):t.has("tab")&&t.has("id")&&"report"===t.get("tab")?(this.fetchStats(),this.fetchReport(t.get("id"))):(window.history.pushState(null,null,"/i/admin/reports"),this.fetchStats()),this.$root.$on("bv::modal::hide",(function(t,e){window.history.pushState(null,null,"/i/admin/reports")}))},methods:{toggleTab:function(t){switch(t){case 0:this.fetchStats("/i/admin/api/reports/all");break;case 1:this.fetchStats("/i/admin/api/reports/all?filter=closed");break;case 2:this.fetchStats(null,"/i/admin/api/reports/spam/all");break;case 3:this.fetchRemoteReports()}window.history.pushState(null,null,"/i/admin/reports"),this.tabIndex=t},prettyCount:function(t){return t?t.toLocaleString("en-CA",{compactDisplay:"short",notation:"compact"}):t},timeAgo:function(t){return t?App.util.format.timeAgo(t):t},formatDate:function(t){var e=new Date(t);return new Intl.DateTimeFormat("default",{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"}).format(e)},reportLabel:function(t){switch(t.object_type){case"App\\Profile":return"".concat(t.type," Profile");case"App\\Status":return"".concat(t.type," Post");case"App\\Story":return"".concat(t.type," Story")}},fetchStats:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/reports/all",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;axios.get("/i/admin/api/reports/stats").then((function(e){t.stats=e.data})).finally((function(){e?t.fetchReports(e):a&&t.fetchAutospam(a),i('[data-toggle="tooltip"]').tooltip()}))},fetchReports:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/reports/all";axios.get(e).then((function(e){t.reports=e.data.data,t.pagination={next:e.data.links.next,prev:e.data.links.prev}})).finally((function(){t.loaded=!0}))},fetchRemoteReports:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/reports/remote";axios.get(e).then((function(e){t.reports=e.data.data,t.pagination={next:e.data.links.next,prev:e.data.links.prev}})).finally((function(){t.loaded=!0,t.remoteReportsLoaded=!0}))},remoteReportPaginate:function(t){event.currentTarget.blur();var e="next"==t?this.pagination.next:this.pagination.prev;this.fetchRemoteReports(e)},handleCloseRemoteReportModal:function(){this.showRemoteReportModal=!1},showRemoteReport:function(t){this.remoteReportModalModel=t,this.showRemoteReportModal=!0},refreshRemoteReports:function(){var t=this;this.fetchStats(""),this.$nextTick((function(){t.toggleTab(3)}))},paginate:function(t){event.currentTarget.blur();var e="next"==t?this.pagination.next:this.pagination.prev;this.fetchReports(e)},viewReport:function(t){this.viewingReportLoading=!1,this.viewingReport=t,this.showReportModal=!0,window.history.pushState(null,null,"/i/admin/reports?tab=report&id="+t.id),setTimeout((function(){pixelfed.readmore()}),1e3)},handleAction:function(t,e){var a=this;event.currentTarget.blur(),this.viewingReportLoading=!0,"ignore"===e||window.confirm(this.getActionLabel(t,e))?(this.loaded=!1,axios.post("/i/admin/api/reports/handle",{id:this.viewingReport.id,object_id:this.viewingReport.object_id,object_type:this.viewingReport.object_type,action:e,action_type:t}).catch((function(t){swal("Error",t.response.data.error,"error")})).finally((function(){a.viewingReportLoading=!0,a.viewingReport=!1,a.showReportModal=!1,setTimeout((function(){a.fetchStats()}),1e3)}))):this.viewingReportLoading=!1},getActionLabel:function(t,e){if("profile"===t)switch(e){case"ignore":return"Are you sure you want to ignore this profile report?";case"nsfw":return"Are you sure you want to mark this profile as NSFW?";case"unlist":return"Are you sure you want to mark all posts by this profile as unlisted?";case"private":return"Are you sure you want to mark all posts by this profile as private?";case"delete":return"Are you sure you want to delete this profile?"}else if("post"===t)switch(e){case"ignore":return"Are you sure you want to ignore this post report?";case"nsfw":return"Are you sure you want to mark this post as NSFW?";case"unlist":return"Are you sure you want to mark this post as unlisted?";case"private":return"Are you sure you want to mark this post as private?";case"delete":return"Are you sure you want to delete this post?"}else if("story"===t)switch(e){case"ignore":return"Are you sure you want to ignore this story report?";case"delete":return"Are you sure you want to delete this story?";case"delete-all":return"Are you sure you want to delete all stories by this account?"}},fetchAutospam:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/reports/spam/all";axios.get(e).then((function(e){t.autospam=e.data.data,t.autospamPagination={next:e.data.links.next,prev:e.data.links.prev}})).finally((function(){t.autospamLoaded=!0,t.loaded=!0}))},autospamPaginate:function(t){event.currentTarget.blur();var e="next"==t?this.autospamPagination.next:this.autospamPagination.prev;this.fetchAutospam(e)},viewSpamReport:function(t){this.viewingSpamReportLoading=!1,this.viewingSpamReport=t,this.showSpamReportModal=!0,window.history.pushState(null,null,"/i/admin/reports?tab=autospam&id="+t.id),setTimeout((function(){pixelfed.readmore()}),1e3)},getSpamActionLabel:function(t){switch(t){case"mark-all-read":return"Are you sure you want to mark all spam reports by this account as read?";case"mark-all-not-spam":return"Are you sure you want to mark all spam reports by this account as not spam?";case"delete-profile":return"Are you sure you want to delete this profile?"}},handleSpamAction:function(t){var e=this;event.currentTarget.blur(),this.viewingSpamReportLoading=!0,"mark-not-spam"===t||"mark-read"===t||window.confirm(this.getSpamActionLabel(t))?(this.loaded=!1,axios.post("/i/admin/api/reports/spam/handle",{id:this.viewingSpamReport.id,action:t}).catch((function(t){swal("Error",t.response.data.error,"error")})).finally((function(){e.viewingSpamReportLoading=!0,e.viewingSpamReport=!1,e.showSpamReportModal=!1,setTimeout((function(){e.fetchStats(null,"/i/admin/api/reports/spam/all")}),500)}))):this.viewingSpamReportLoading=!1},fetchReport:function(t){var e=this;axios.get("/i/admin/api/reports/get/"+t).then((function(t){e.tabIndex=0,e.viewReport(t.data.data)})).catch((function(t){e.fetchStats(),window.history.pushState(null,null,"/i/admin/reports")}))},fetchSpamReport:function(t){var e=this;axios.get("/i/admin/api/reports/spam/get/"+t).then((function(t){e.tabIndex=2,e.viewSpamReport(t.data.data)})).catch((function(t){e.fetchStats(),window.history.pushState(null,null,"/i/admin/reports")}))}}}},86871:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(8889),i=a(34429),n=a(7210),o=a(62355);const r={components:{"admin-read-more":s.default,"tab-header":i.default,checkbox:n.default,"form-input":o.default},data:function(){return{loaded:!1,initialData:{},tabIndex:1,tabbies:["landing","branding","media","posts","platform","rules","users","storage"],tabs:[{id:1,title:"Overview",icon:"far fa-home"},{id:"landing",title:"Landing",icon:"far fa-info-circle"},{id:"branding",title:"Branding",icon:"far fa-user-crown"},{id:"media",title:"Media",icon:"far fa-image"},{id:"platform",title:"Platform",icon:"far fa-database"},{id:"posts",title:"Posts",icon:"far fa-heart"},{id:"rules",title:"Rules",icon:"far fa-eye-slash"},{id:"storage",title:"Storage",icon:"far fa-hdd"},{id:"users",title:"Users",icon:"far fa-users"}],isSubmitting:!1,isSubmittingTimeout:!1,isSubmittingTimeoutHandler:void 0,features:[],landing:{current_admin:0},branding:[],media:[],mediaTypes:{jpeg:!1,png:!1,gif:!1,webp:!1,avif:!1,heic:!1,mp4:!1,mov:!1},rules:[],users:[],posts:[],platform:[],storage:[],newRule:void 0,isSubmittingNewRule:!1,isDeletingRule:!1,suggestedRules:[],hasDuplicateRules:!1,showAllRules:!1,showDiskConfig:!1}},computed:{maxMediaSizeToMb:{get:function(){return this.media&&this.media.max_photo_size?(this.media.max_photo_size/1e3).toFixed(2)+" MB":"0.00 MB"}},maxAccountSizeToMb:{get:function(){if(!this.users||!this.users.max_account_size)return"0.00 MB";var t=this.users.max_account_size/1024;return t>1e6?(t/1e6).toFixed(1)+"TB":t>1e3?(t/1024).toFixed(2)+"GB":(this.users.max_account_size/1024).toFixed(2)+" MB"}},rulesComputed:{get:function(){return this.rules&&this.rules.length?this.rules.length>2&&!this.showAllRules?this.rules.slice(0,2):this.rules:[]}},suggestedRulesComputed:{get:function(){var t=this;return this.rules&&this.rules.length?this.suggestedRules.filter((function(e){return!t.rules.includes(e)})):this.suggestedRules}},hasDuplicateRulesComputed:{get:function(){if(!this.rules||!this.rules.length)return!1;var t=this.rules;return t.filter((function(e,a){return t.indexOf(e)!==a})).length}},activeMediaTypes:{get:function(){var t="";return this.mediaTypes.jpeg&&(t+="image/jpeg,"),this.mediaTypes.png&&(t+="image/png,"),this.mediaTypes.gif&&(t+="image/gif,"),this.mediaTypes.webp&&(t+="image/webp,"),this.mediaTypes.mp4&&(t+="video/mp4"),t.endsWith(",")&&(t=t.slice(0,-1)),t}}},mounted:function(){this.fetchInitialData();var t=new URL(window.location.href);if(t.searchParams.has("t")){var e=t.searchParams.get("t");this.tabbies.includes(e)?this.tabIndex=e:window.history.pushState(null,null,"/i/admin/settings")}},methods:{toggleTab:function(t){clearTimeout(this.isSubmittingTimeoutHandler),this.isSubmittingTimeout=!1,this.tabIndex=t,this.showAllRules=!1,this.tabbies.includes(t)?window.history.pushState(null,null,"/i/admin/settings?t="+t):window.history.pushState(null,null,"/i/admin/settings")},fetchInitialData:function(){var t=this;axios.get("/i/admin/api/settings/fetch").then((function(e){t.initialData=e.data,t.features=e.data.features,t.landing=e.data.landing,t.branding=e.data.branding,t.media=e.data.media,t.setMediaTypes(),t.rules=e.data.rules,t.users=e.data.users,t.suggestedRules=e.data.suggested_rules,t.posts=e.data.posts,t.platform=e.data.platform,t.storage=e.data.storage})).then((function(){t.loaded=!0}))},setMediaTypes:function(){var t=this,e=this.media.media_types.split(",");e&&e.length&&e.forEach((function(e){var a=e.split("/")[1];["jpeg","png","gif","webp","mp4"].includes(a)&&(t.mediaTypes[a]=!0)}))},formatCount:function(t){return window.App.util.format.count(t)},formatDateTime:function(t){var e=new Date(t);return new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"short"}).format(e)},formatDate:function(t){var e=new Date(t);return new Intl.DateTimeFormat("en-US",{month:"short",year:"numeric"}).format(e)},formatTimestamp:function(t){return window.App.util.format.timeAgo(t)},handleSave:function(t){switch(this.isSubmitting=!0,t){case"overview":return this.saveHome();case"landing":return this.saveLanding();case"branding":return this.saveBranding();case"posts":return this.savePosts();case"media":return this.saveMedia();case"platform":return this.savePlatform();case"users":return this.saveUsers();case"storage":return this.saveStorage()}},handleAddRule:function(t){var e,a=this;null===(e=t.currentTarget)||void 0===e||e.blur(),this.isSubmittingNewRule=!0,axios.post("/i/admin/api/settings/rules/add",{rule:this.newRule}).then((function(t){a.rules.push(a.newRule),a.newRule=void 0,a.isSubmittingNewRule=!1,a.showAllRules=!0})).catch((function(t){var e;t.response.data&&null!==(e=t.response.data)&&void 0!==e&&e.message&&swal("Error",t.response.data.message,"error"),a.isSubmittingNewRule=!1}))},addSuggestedRule:function(t,e){var a;null===(a=e.currentTarget)||void 0===a||a.blur(),this.newRule=t},importAllDefaultRules:function(t){var e,a=this;null===(e=t.currentTarget)||void 0===e||e.blur(),this.isSubmittingNewRule=!0,this.showAllRules=!0;for(var s=function(){var t=a.suggestedRules[i];setTimeout((function(){axios.post("/i/admin/api/settings/rules/add",{rule:t}).then((function(e){a.rules.push(t)}))}),300*i)},i=this.suggestedRules.length-1;i>=0;i--)s();this.isSubmittingNewRule=!1},handleDeleteRule:function(t,e,a){var s,i=this;null===(s=a.currentTarget)||void 0===s||s.blur(),this.isDeletingRule=!0,axios.post("/i/admin/api/settings/rules/delete",{rule:t}).then((function(t){i.isDeletingRule=!1,i.rules=t.data})).catch((function(t){}))},handleDeleteAllRules:function(t){var e,a=this;null===(e=t.currentTarget)||void 0===e||e.blur(),this.isDeletingRule=!0,swal({title:"Confirm",text:"Are you sure you want to delete all rules?",buttons:!0,dangerMode:!0}).then((function(t){!0===t?axios.post("/i/admin/api/settings/rules/delete/all").then((function(t){a.isDeletingRule=!1,a.rules=[]})).catch((function(t){})):a.isDeletingRule=!1}))},removeAutofollow:function(t,e){var a,s=this;null===(a=e.currentTarget)||void 0===a||a.blur(),axios.post("/i/admin/api/settings/autofollow/delete",{username:t}).then((function(t){s.users.admin_autofollow_accounts=t.data.accounts})).catch((function(t){swal("Oops!","An error occurred, please try again later!","error")}))},addAutofollow:function(t){var e,a=this;null===(e=t.currentTarget)||void 0===e||e.blur(),swal({text:"Enter account username",content:"input",button:{text:"Add Autofollow",closeModal:!1}}).then((function(t){if(!t)throw null;axios.post("/i/admin/api/settings/autofollow/add",{username:t}).then((function(e){e.data.accounts.map((function(t){return t.toLowerCase()})).includes(t.toLowerCase())||swal("Oops!","The account you attempted to add does not exist or cannot be added!","error"),a.users.admin_autofollow_accounts=e.data.accounts,swal.stopLoading(),swal.close()})).catch((function(t){t.response.data&&t.response.data.message?swal("Error",t.response.data.message,"error"):swal("Oops!","The account you attempted to add does not exist or cannot be added!","error"),swal.stopLoading(),swal.close()}))}))},saveHome:function(){var t=this;axios.post("/i/admin/api/settings/update/home",{registration_status:this.features.registration_status,cloud_storage:this.features.cloud_storage,activitypub_enabled:this.features.activitypub_enabled,account_migration:this.features.account_migration,mobile_apis:this.features.mobile_apis,stories:this.features.stories,instagram_import:this.features.instagram_import,autospam_enabled:this.features.autospam_enabled}).then((function(e){t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)}))},saveLanding:function(){var t=this;axios.post("/i/admin/api/settings/update/landing",{current_admin:this.landing.current_admin,show_directory:this.landing.show_directory,show_explore:this.landing.show_explore}).then((function(e){t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)}))},saveBranding:function(){var t=this;axios.post("/i/admin/api/settings/update/branding",{name:this.branding.name,short_description:this.branding.short_description,long_description:this.branding.long_description}).then((function(e){t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)}))},savePosts:function(){var t=this;axios.post("/i/admin/api/settings/update/posts",{max_caption_length:this.posts.max_caption_length,max_altext_length:this.posts.max_altext_length}).then((function(e){t.posts=e.data,t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)})).catch((function(e){t.isSubmitting=!1,e.response.data&&e.response.data.message?swal("Error",e.response.data.message,"error"):swal("Oops!","An error occured","error")}))},saveMedia:function(){var t=this;axios.post("/i/admin/api/settings/update/media",{image_quality:this.media.image_quality,max_album_length:this.media.max_album_length,max_photo_size:this.media.max_photo_size,media_types:this.activeMediaTypes,optimize_image:this.media.optimize_image,optimize_video:this.media.optimize_video}).then((function(e){t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)})).catch((function(e){t.isSubmitting=!1,e.response.data&&e.response.data.message?swal("Error",e.response.data.message,"error"):swal("Oops!","An error occured","error")}))},savePlatform:function(){var t=this;axios.post("/i/admin/api/settings/update/platform",{allow_app_registration:this.platform.allow_app_registration,app_registration_rate_limit_attempts:this.platform.app_registration_rate_limit_attempts,app_registration_rate_limit_decay:this.platform.app_registration_rate_limit_decay,app_registration_confirm_rate_limit_attempts:this.platform.app_registration_confirm_rate_limit_attempts,app_registration_confirm_rate_limit_decay:this.platform.app_registration_confirm_rate_limit_decay,allow_post_embeds:this.platform.allow_post_embeds,allow_profile_embeds:this.platform.allow_profile_embeds,captcha_enabled:this.platform.captcha_enabled,captcha_secret:this.platform.captcha_secret,captcha_sitekey:this.platform.captcha_sitekey,captcha_on_login:this.platform.captcha_on_login,captcha_on_register:this.platform.captcha_on_register,custom_emoji_enabled:this.platform.custom_emoji_enabled}).then((function(e){t.platform=e.data,t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)})).catch((function(e){t.isSubmitting=!1,e.response.data&&e.response.data.message?swal("Error",e.response.data.message,"error"):swal("Oops!","An error occured","error")}))},saveUsers:function(){var t=this;axios.post("/i/admin/api/settings/update/users",{require_email_verification:this.users.require_email_verification,enforce_account_limit:this.users.enforce_account_limit,max_account_size:this.users.max_account_size,admin_autofollow:this.users.admin_autofollow,admin_autofollow_accounts:this.users.admin_autofollow_accounts,max_user_blocks:this.users.max_user_blocks,max_user_mutes:this.users.max_user_mutes,max_domain_blocks:this.users.max_domain_blocks}).then((function(e){t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)})).catch((function(e){e.response.data.message?swal("Error",e.response.data.message,"error"):swal("Error","An unexpected error occurred, please try again!","error"),t.isSubmitting=!1}))},saveStorage:function(){var t=this,e=this.showDiskConfig?{primary_disk:this.storage.primary_disk,update_disk:!0,disk_config:this.storage.disk_config}:{primary_disk:this.storage.primary_disk};axios.post("/i/admin/api/settings/update/storage",e).then((function(e){t.features.cloud_storage="cloud"===e.data.primary_disk,t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)})).catch((function(e){if(e.response.data.error)if(e.response.data.s3_vce){var a=document.createElement("div");a.classList.add("text-left"),a.innerHTML=e.response.data.message;var s=document.createElement("div");s.appendChild(a),swal({title:"Invalid S3 Credentials",content:s,icon:"error"})}else swal("Error",e.response.data.message,"error");t.isSubmitting=!1}))},handleChange:function(t,e,a){switch(e){case"features":this.features[a]=t;break;case"landing":this.landing[a]=t;break;case"platform":this.platform[a]=t;break;case"media":this.media[a]=t;break;case"users":this.users[a]=t;break;case"storage":this.storage[a]=t}console.log(t),console.log(a)},handleSubChange:function(t,e,a,s){switch(e){case"features":this.features[a][s]=t;break;case"landing":this.landing[a][s]=t;break;case"platform":this.platform[a][s]=t;break;case"media":this.media[a][s]=t;break;case"users":this.users[a][s]=t;break;case"storage":this.storage[a][s]=t}console.log(t),console.log(a)}},watch:{}}},99697:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(18634),i=a(8889);const n={props:{status:{type:Object}},data:function(){return{showInReplyTo:!1}},components:{"admin-read-more":i.default},methods:{toggleLightbox:function(t){(0,s.default)({el:t.target})},toggleVideoLightbox:function(t,e){(0,s.default)({el:event.target,vidSrc:e})},formatDate:function(t){var e=new Date(t);return new Intl.DateTimeFormat("default",{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"}).format(e)}}}},72173:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{content:{type:String},maxLength:{type:Number,default:140},fontSize:{type:String,default:"13"},step:{type:Boolean,default:!1},stepLimit:{type:Number,default:140},initialLimit:{type:Number,default:10}},computed:{contentText:{get:function(){if(this.step){var t=this.content.length/this.stepLimit;return(1==this.stepIndex||tthis.maxLength&&(this.canExpand=!0),this.expanded?this.content:this.truncate()}}},data:function(){return{expanded:!1,canExpand:!1,canStepExpand:!1,stepIndex:1}},methods:{expand:function(){this.step?(this.stepIndex++,this.canStepExpand=!0):this.expanded=!0},truncate:function(){if(this.content&&this.content.length)return this.content&&this.content.lengththis.stepLimit,this.content.slice(0,this.initialLimit)):this.canStepExpand&&this.stepIndex{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(27707),i=a(8889);const n={props:{open:{type:Boolean,default:!1},model:{type:Object}},components:{"admin-modal-post":s.default,"admin-read-more":i.default},watch:{open:{handler:function(){this.isOpen=this.open},immediate:!0,deep:!0}},data:function(){return{isLoading:!0,isOpen:!1,actions:["mark-read","cw-posts","unlist-posts","private-posts","delete-posts","mark-all-read-by-domain","mark-all-read-by-username","cw-all-posts","unlist-all-posts","private-all-posts"],actionMap:{"cw-posts":"apply content warnings to all post(s) in this report?","unlist-posts":"unlist all post(s) in this report?","delete-posts":"delete all post(s) in this report?","private-posts":"make all post(s) in this report private/followers-only?","mark-all-read-by-domain":"mark all reports by this instance as closed?","mark-all-read-by-username":"mark all reports against this user as closed?","cw-all-posts":"apply content warnings to all post(s) belonging to this account?","unlist-all-posts":"make all post(s) belonging to this account as unlisted?","private-all-posts":"make all post(s) belonging to this account as private?"}}},mounted:function(){var t=this;setTimeout((function(){t.isLoading=!1}),300)},methods:{prettyCount:function(t){return t?t.toLocaleString("en-CA",{compactDisplay:"short",notation:"compact"}):t},timeAgo:function(t){return t?App.util.format.timeAgo(t):t},formatDate:function(t){var e=new Date(t);return new Intl.DateTimeFormat("default",{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"}).format(e)},handleAction:function(t){var e=this;"mark-read"!==t?swal({title:"Confirm",text:"Are you sure you want to "+this.actionMap[t],icon:"warning",buttons:!0,dangerMode:!0}).then((function(a){!0===a&&axios.post("/i/admin/api/reports/remote/handle",{id:e.model.id,action:t}).finally((function(){e.$emit("refresh"),e.$emit("close")}))})):axios.post("/i/admin/api/reports/remote/handle",{id:this.model.id,action:t}).then((function(t){console.log(t.data)})).finally((function(){e.$emit("refresh"),e.$emit("close")}))}}}},4970:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{name:{type:String},value:{type:Boolean},description:{type:String}},computed:{elementId:{get:function(){var t=this.name;return"fec_"+(t=(t=(t=(t=t.toLowerCase()).replace(/[^a-z0-9 -]/g," ")).replace(/\s+/g,"-")).replace(/^-+|-+$/g,""))}}}}},45053:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{name:{type:String},value:{type:String},placeholder:{type:String},description:{type:String},isCard:{type:Boolean,default:!0},isInline:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},computed:{elementId:{get:function(){var t=this.name;return"fec_"+(t=(t=(t=(t=t.toLowerCase()).replace(/[^a-z0-9 -]/g," ")).replace(/\s+/g,"-")).replace(/^-+|-+$/g,""))}}}}},16563:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{title:{type:String},saving:{type:Boolean},saved:{type:Boolean}},computed:{buttonLabel:{get:function(){return this.saved?"Saved":this.saving?"Saving":"Save"}},isSaving:{get:function(){return this.saving}}},methods:{save:function(t){var e;null===(e=t.currentTarget)||void 0===e||e.blur(),this.$emit("save")}}}},69385:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"header bg-primary pb-3 mt-n4"},[e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"header-body"},[e("div",{staticClass:"row align-items-center py-4"},[t._m(0),t._v(" "),e("div",{staticClass:"col-xl-4 col-lg-3 col-md-4"},[e("div",{staticClass:"card card-stats mb-lg-0"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("h5",{staticClass:"card-title text-uppercase text-muted mb-0"},[t._v("Active Autospam")]),t._v(" "),e("span",{staticClass:"h2 font-weight-bold mb-0"},[t._v(t._s(t.formatCount(t.config.open)))])]),t._v(" "),t._m(1)])])])]),t._v(" "),e("div",{staticClass:"col-xl-4 col-lg-3 col-md-4"},[e("div",{staticClass:"card card-stats bg-dark mb-lg-0"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("h5",{staticClass:"card-title text-uppercase text-muted mb-0"},[t._v("Closed Autospam")]),t._v(" "),e("span",{staticClass:"h2 font-weight-bold text-muted mb-0"},[t._v(t._s(t.formatCount(t.config.closed)))])]),t._v(" "),t._m(2)])])])])])])])]),t._v(" "),t.loaded?e("div",{staticClass:"m-n2 m-lg-4"},[e("div",{staticClass:"container-fluid mt-4"},[e("div",{staticClass:"row mb-3 justify-content-between"},[e("div",{staticClass:"col-12"},[e("ul",{staticClass:"nav nav-pills"},[e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:0==t.tabIndex}],on:{click:function(e){return e.preventDefault(),t.toggleTab(0)}}},[t._v("Dashboard")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:"about"==t.tabIndex}],on:{click:function(e){return e.preventDefault(),t.toggleTab("about")}}},[t._v("About / How to Use Autospam")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:"train"==t.tabIndex}],on:{click:function(e){return e.preventDefault(),t.toggleTab("train")}}},[t._v("Train Autospam")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:"closed_reports"==t.tabIndex}],on:{click:function(e){return e.preventDefault(),t.toggleTab("closed_reports")}}},[t._v("Closed Reports")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:"manage_tokens"==t.tabIndex}],on:{click:function(e){return e.preventDefault(),t.toggleTab("manage_tokens")}}},[t._v("Manage Tokens")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:"import_export"==t.tabIndex}],on:{click:function(e){return e.preventDefault(),t.toggleTab("import_export")}}},[t._v("Import/Export")])])])])]),t._v(" "),0===this.tabIndex?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-4"},[null===t.config.autospam_enabled?e("div"):t.config.autospam_enabled?e("div",{staticClass:"card bg-dark",staticStyle:{"min-height":"209px"}},[t._m(3)]):e("div",{staticClass:"card bg-dark",staticStyle:{"min-height":"209px"}},[t._m(4)]),t._v(" "),null===t.config.nlp_enabled?e("div"):t.config.nlp_enabled?e("div",{staticClass:"card bg-dark",staticStyle:{"min-height":"209px"}},[e("div",{staticClass:"card-body text-center"},[t._m(5),t._v(" "),e("p",{staticClass:"lead text-light"},[t._v("Advanced (NLP) Detection Active")]),t._v(" "),e("a",{staticClass:"btn btn-outline-danger btn-block font-weight-bold",class:{disabled:1!=t.config.autospam_enabled},attrs:{href:"#",disabled:1!=t.config.autospam_enabled},on:{click:function(e){return e.preventDefault(),t.disableAdvanced.apply(null,arguments)}}},[t._v("Disable Advanced Detection")])])]):e("div",{staticClass:"card bg-dark",staticStyle:{"min-height":"209px"}},[e("div",{staticClass:"card-body text-center"},[t._m(6),t._v(" "),e("p",{staticClass:"lead text-danger font-weight-bold"},[t._v("Advanced (NLP) Detection Inactive")]),t._v(" "),e("a",{staticClass:"btn btn-primary btn-block font-weight-bold",class:{disabled:1!=t.config.autospam_enabled},attrs:{href:"#",disabled:1!=t.config.autospam_enabled},on:{click:function(e){return e.preventDefault(),t.enableAdvanced.apply(null,arguments)}}},[t._v("Enable Advanced Detection")])])])]),t._v(" "),t._m(7)]):"about"===this.tabIndex?e("div",[t._m(8)]):"train"===this.tabIndex?e("div",[t._m(9),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card bg-dark"},[e("div",{staticClass:"card-header bg-gradient-primary text-white font-weight-bold"},[t._v("Train Spam Posts")]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"d-flex flex-column align-items-center justify-content-center py-4",staticStyle:{gap:"1rem"}},[t._m(10),t._v(" "),e("p",{staticClass:"lead text-lighter"},[t._v("Use existing posts marked as spam to train Autospam")]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-lg font-weight-bold btn-block",class:{disabled:t.config.files.spam.exists},attrs:{disabled:t.config.files.spam.exists},on:{click:function(e){return e.preventDefault(),t.autospamTrainSpam.apply(null,arguments)}}},[t._v("\n\t \t\t\t\t\t\t"+t._s(t.config.files.spam.exists?"Already trained":"Train Spam")+"\n\t \t\t\t\t\t")])])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card bg-dark"},[e("div",{staticClass:"card-header bg-gradient-primary text-white font-weight-bold"},[t._v("Train Non-Spam Posts")]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"d-flex flex-column align-items-center justify-content-center py-4",staticStyle:{gap:"1rem"}},[t._m(11),t._v(" "),e("p",{staticClass:"lead text-lighter"},[t._v("Use posts from trusted users to train non-spam posts")]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-lg font-weight-bold btn-block",class:{disabled:t.config.files.ham.exists},attrs:{disabled:t.config.files.ham.exists},on:{click:function(e){return e.preventDefault(),t.autospamTrainNonSpam.apply(null,arguments)}}},[t._v("\n\t \t\t\t\t\t\t"+t._s(t.config.files.ham.exists?"Already trained":"Train Non-Spam")+"\n\t \t\t\t\t\t")])])])])])])]):"closed_reports"===this.tabIndex?e("div",[t.closedReportsFetched?[e("div",{staticClass:"table-responsive rounded"},[e("table",{staticClass:"table table-dark"},[t._m(12),t._v(" "),e("tbody",t._l(t.closedReports.data,(function(a,s){return e("tr",{key:"closed_reports"+a.id+s},[e("td",{staticClass:"font-weight-bold text-monospace text-muted align-middle"},[t._v("\n\t\t \t"+t._s(a.id)+"\n\t\t ")]),t._v(" "),t._m(13,!0),t._v(" "),e("td",{staticClass:"align-middle"},[a.status&&a.status.account?e("a",{staticClass:"text-white",attrs:{href:"/i/web/profile/".concat(a.status.account.id),target:"_blank"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[e("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:a.status.account.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),t._v(" "),e("div",{staticClass:"d-flex flex-column"},[e("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"14px"}},[t._v("@"+t._s(a.status.account.username))]),t._v(" "),e("div",{staticClass:"d-flex small text-muted mb-0",staticStyle:{gap:"0.5rem"}},[e("span",[t._v(t._s(a.status.account.followers_count)+" Followers")]),t._v(" "),e("span",[t._v("·")]),t._v(" "),e("span",[t._v("Joined "+t._s(t.timeAgo(a.status.account.created_at)))])])])])]):t._e()]),t._v(" "),e("td",{staticClass:"font-weight-bold align-middle"},[t._v(t._s(t.timeAgo(a.created_at)))]),t._v(" "),e("td",{staticClass:"align-middle"},[e("a",{staticClass:"btn btn-primary btn-sm",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.viewSpamReport(a)}}},[t._v("View")])])])})),0)])]),t._v(" "),t.closedReportsFetched&&t.closedReports&&t.closedReports.data.length?e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!t.closedReports.links.prev},on:{click:function(e){return t.autospamPaginate("prev")}}},[t._v("\n\t\t Prev\n\t\t ")]),t._v(" "),e("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!t.closedReports.links.next},on:{click:function(e){return t.autospamPaginate("next")}}},[t._v("\n\t\t Next\n\t\t ")])]):t._e()]:[e("div",{staticClass:"d-flex justify-content-center align-items-center py-5"},[e("b-spinner")],1)]],2):"manage_tokens"===this.tabIndex?e("div",[e("div",{staticClass:"row align-items-center mb-3"},[t._m(14),t._v(" "),e("div",{staticClass:"col-12 col-md-3"},[e("a",{staticClass:"btn btn-primary btn-lg btn-block",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showCreateTokenModal=!0}}},[e("i",{staticClass:"far fa-plus fa-lg mr-1"}),t._v("\n \t\t\t\tCreate New Token\n \t\t\t")])])]),t._v(" "),t.customTokensFetched?[t.customTokens&&t.customTokens.data&&t.customTokens.data.length?[e("div",{staticClass:"table-responsive rounded"},[e("table",{staticClass:"table table-dark"},[t._m(15),t._v(" "),e("tbody",t._l(t.customTokens.data,(function(a,s){return e("tr",{key:"ct"+a.id+s},[e("td",{staticClass:"font-weight-bold text-monospace text-muted align-middle"},[t._v("\n\t\t\t \t"+t._s(a.id)+"\n\t\t\t ")]),t._v(" "),e("td",{staticClass:"align-middle"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(a.token))])]),t._v(" "),e("td",{staticClass:"align-middle"},[e("p",{staticClass:"text-capitalize mb-0"},[t._v(t._s(a.category))])]),t._v(" "),e("td",{staticClass:"align-middle"},[e("p",{staticClass:"text-capitalize mb-0"},[t._v(t._s(a.weight))])]),t._v(" "),e("td",{staticClass:"font-weight-bold align-middle"},[t._v(t._s(t.timeAgo(a.created_at)))]),t._v(" "),e("td",{staticClass:"font-weight-bold align-middle"},[e("a",{staticClass:"btn btn-primary btn-sm font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openEditTokenModal(a)}}},[t._v("Edit")])])])})),0)])]),t._v(" "),t.customTokensFetched&&t.customTokens&&t.customTokens.data.length?e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!t.customTokens.prev_page_url},on:{click:function(e){return t.autospamTokenPaginate("prev")}}},[t._v("\n\t\t\t Prev\n\t\t\t ")]),t._v(" "),e("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!t.customTokens.next_page_url},on:{click:function(e){return t.autospamTokenPaginate("next")}}},[t._v("\n\t\t\t Next\n\t\t\t ")])]):t._e()]:e("div",[t._m(16)])]:[e("div",{staticClass:"d-flex justify-content-center align-items-center py-5"},[e("b-spinner")],1)]],2):"import_export"===this.tabIndex?e("div",[t._m(17),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card bg-dark"},[e("div",{staticClass:"card-header font-weight-bold"},[t._v("Import Training Data")]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"d-flex flex-column align-items-center justify-content-center py-4",staticStyle:{gap:"1rem"}},[t._m(18),t._v(" "),e("p",{staticClass:"lead text-lighter"},[t._v("Make sure the file you are importing is a valid training data export!")]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-lg font-weight-bold btn-block",on:{click:function(e){return e.preventDefault(),t.handleImport.apply(null,arguments)}}},[t._v("Upload Import")])])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card bg-dark"},[e("div",{staticClass:"card-header font-weight-bold"},[t._v("Export Training Data")]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"d-flex flex-column align-items-center justify-content-center py-4",staticStyle:{gap:"1rem"}},[t._m(19),t._v(" "),e("p",{staticClass:"lead text-lighter"},[t._v("Only share training data with people you trust. It can be used by spammers to bypass detection!")]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-lg font-weight-bold btn-block",on:{click:function(e){return e.preventDefault(),t.downloadExport.apply(null,arguments)}}},[t._v("Download Export")])])])])])])]):t._e()])]):e("div",{staticClass:"my-5 text-center"},[e("b-spinner")],1),t._v(" "),e("b-modal",{attrs:{title:"Autospam Post","ok-only":!0,"ok-title":"Close","ok-variant":"outline-primary"},model:{value:t.showSpamReportModal,callback:function(e){t.showSpamReportModal=e},expression:"showSpamReportModal"}},[t.viewingSpamReportLoading?e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("b-spinner")],1):[e("div",{staticClass:"list-group list-group-horizontal mt-3"},[t.viewingSpamReport&&t.viewingSpamReport.status&&t.viewingSpamReport.status.account?e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[e("div",{staticClass:"text-muted small font-weight-bold mt-n1"},[t._v("Reported Account")]),t._v(" "),t.viewingSpamReport.status.account&&t.viewingSpamReport.status.account.id?e("a",{staticClass:"text-primary",attrs:{href:"/i/web/profile/".concat(t.viewingSpamReport.status.account.id),target:"_blank"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[e("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:t.viewingSpamReport.status.account.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),t._v(" "),e("div",{staticClass:"d-flex flex-column"},[e("p",{staticClass:"font-weight-bold mb-0 text-break",class:[t.viewingSpamReport.status.account.is_admin?"text-danger":""],staticStyle:{"font-size":"12px","max-width":"140px","line-height":"16px"}},[t._v("@"+t._s(t.viewingSpamReport.status.account.acct))]),t._v(" "),e("div",{staticClass:"d-flex text-muted mb-0",staticStyle:{"font-size":"10px",gap:"0.5rem"}},[e("span",[t._v(t._s(t.viewingSpamReport.status.account.followers_count)+" Followers")]),t._v(" "),e("span",[t._v("·")]),t._v(" "),e("span",[t._v("Joined "+t._s(t.timeAgo(t.viewingSpamReport.status.account.created_at)))])])])])]):t._e()]):t._e()]),t._v(" "),t.viewingSpamReport&&t.viewingSpamReport.status?e("div",{staticClass:"list-group mt-3"},[t.viewingSpamReport&&t.viewingSpamReport.status&&t.viewingSpamReport.status.media_attachments.length?e("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[e("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[e("div",[t._v("Reported Post")]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.viewingSpamReport.status.url,target:"_blank"}},[t._v("View")])]),t._v(" "),"image"===t.viewingSpamReport.status.media_attachments[0].type?e("img",{staticClass:"rounded",staticStyle:{"object-fit":"cover"},attrs:{src:t.viewingSpamReport.status.media_attachments[0].url,height:"140",onerror:"this.src='/storage/no-preview.png';this.error=null;"}}):"video"===t.viewingSpamReport.status.media_attachments[0].type?e("video",{attrs:{height:"140",controls:"",src:t.viewingSpamReport.status.media_attachments[0].url,onerror:"this.src='/storage/no-preview.png';this.onerror=null;"}}):t._e()]):t._e(),t._v(" "),t.viewingSpamReport&&t.viewingSpamReport.status&&t.viewingSpamReport.status.content_text&&t.viewingSpamReport.status.content_text.length?e("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[e("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[e("div",[t._v("Reported Post Caption")]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.viewingSpamReport.status.url,target:"_blank"}},[t._v("View")])]),t._v(" "),e("p",{staticClass:"mb-0 read-more",staticStyle:{"font-size":"12px","overflow-y":"hidden"}},[t._v(t._s(t.viewingSpamReport.status.content_text))])]):t._e()]):t._e()]],2),t._v(" "),e("b-modal",{attrs:{title:"Train Non-Spam","ok-only":!0,"ok-title":"Close","ok-variant":"outline-primary"},model:{value:t.showNonSpamModal,callback:function(e){t.showNonSpamModal=e},expression:"showNonSpamModal"}},[e("p",{staticClass:"small font-weight-bold"},[t._v("Select trusted accounts to train non-spam posts against!")]),t._v(" "),!t.nonSpamAccounts||t.nonSpamAccounts.length<10?e("autocomplete",{ref:"autocomplete",attrs:{search:t.composeSearch,disabled:t.searchLoading,placeholder:"Search by username","aria-label":"Search by username","get-result-value":t.getTagResultValue},on:{submit:t.onSearchResultClick},scopedSlots:t._u([{key:"result",fn:function(a){var s=a.result,i=a.props;return[e("li",t._b({staticClass:"autocomplete-result d-flex align-items-center",staticStyle:{gap:"0.5rem"}},"li",i,!1),[e("img",{staticClass:"rounded-circle",attrs:{src:s.avatar,width:"32",height:"32",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),t._v(" "),e("div",{staticClass:"font-weight-bold"},[t._v("\n "+t._s(s.username)+"\n ")])])]}}],null,!1,565605044)}):t._e(),t._v(" "),e("div",{staticClass:"list-group mt-3"},t._l(t.nonSpamAccounts,(function(a,s){return e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"d-flex align-items-center justify-content-between"},[e("div",{staticClass:"d-flex flex-row align-items-center",staticStyle:{gap:"0.5rem"}},[e("img",{staticClass:"rounded-circle",attrs:{src:a.avatar,width:"32",height:"32",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),t._v(" "),e("div",{staticClass:"font-weight-bold"},[t._v("\n\t "+t._s(a.username)+"\n\t ")])]),t._v(" "),e("a",{staticClass:"text-danger",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.autospamTrainNonSpamRemove(s)}}},[e("i",{staticClass:"fas fa-trash"})])])])})),0),t._v(" "),t.nonSpamAccounts&&t.nonSpamAccounts.length?e("div",{staticClass:"mt-3"},[e("a",{staticClass:"btn btn-primary btn-lg font-weight-bold btn-block",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.autospamTrainNonSpamSubmit.apply(null,arguments)}}},[t._v("Train non-spam posts on trusted accounts")])]):t._e()],1),t._v(" "),e("b-modal",{attrs:{title:"Create New Token","cancel-title":"Close","cancel-variant":"outline-primary","ok-title":"Save","ok-variant":"primary"},on:{ok:t.handleSaveToken},model:{value:t.showCreateTokenModal,callback:function(e){t.showCreateTokenModal=e},expression:"showCreateTokenModal"}},[e("div",{staticClass:"list-group mt-3"},[e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Token")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customTokenForm.token,expression:"customTokenForm.token"}],staticClass:"form-control",domProps:{value:t.customTokenForm.token},on:{input:function(e){e.target.composing||t.$set(t.customTokenForm,"token",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Weight")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customTokenForm.weight,expression:"customTokenForm.weight"}],staticClass:"form-control",attrs:{type:"number",min:"-128",max:"128",step:"1"},domProps:{value:t.customTokenForm.weight},on:{input:function(e){e.target.composing||t.$set(t.customTokenForm,"weight",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Category")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.customTokenForm.category,expression:"customTokenForm.category"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.customTokenForm,"category",e.target.multiple?a:a[0])}}},[e("option",{attrs:{value:"spam"}},[t._v("Is Spam")]),t._v(" "),e("option",{attrs:{value:"ham"}},[t._v("Is NOT Spam")])])])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Note")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.customTokenForm.note,expression:"customTokenForm.note"}],staticClass:"form-control",domProps:{value:t.customTokenForm.note},on:{input:function(e){e.target.composing||t.$set(t.customTokenForm,"note",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Active")])]),t._v(" "),e("div",{staticClass:"col-8 text-right"},[e("div",{staticClass:"custom-control custom-checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customTokenForm.active,expression:"customTokenForm.active"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"customCheck1"},domProps:{checked:Array.isArray(t.customTokenForm.active)?t._i(t.customTokenForm.active,null)>-1:t.customTokenForm.active},on:{change:function(e){var a=t.customTokenForm.active,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&t.$set(t.customTokenForm,"active",a.concat([null])):n>-1&&t.$set(t.customTokenForm,"active",a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customTokenForm,"active",i)}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"customCheck1"}})])])])])])]),t._v(" "),e("b-modal",{attrs:{title:"Edit Token","cancel-title":"Close","cancel-variant":"outline-primary","ok-title":"Update","ok-variant":"primary"},on:{ok:t.handleUpdateToken},model:{value:t.showEditTokenModal,callback:function(e){t.showEditTokenModal=e},expression:"showEditTokenModal"}},[e("div",{staticClass:"list-group mt-3"},[e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Token")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("input",{staticClass:"form-control",attrs:{disabled:""},domProps:{value:t.editCustomTokenForm.token}})])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Weight")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.editCustomTokenForm.weight,expression:"editCustomTokenForm.weight"}],staticClass:"form-control",attrs:{type:"number",min:"-128",max:"128",step:"1"},domProps:{value:t.editCustomTokenForm.weight},on:{input:function(e){e.target.composing||t.$set(t.editCustomTokenForm,"weight",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Category")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.editCustomTokenForm.category,expression:"editCustomTokenForm.category"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.editCustomTokenForm,"category",e.target.multiple?a:a[0])}}},[e("option",{attrs:{value:"spam"}},[t._v("Is Spam")]),t._v(" "),e("option",{attrs:{value:"ham"}},[t._v("Is NOT Spam")])])])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Note")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.editCustomTokenForm.note,expression:"editCustomTokenForm.note"}],staticClass:"form-control",domProps:{value:t.editCustomTokenForm.note},on:{input:function(e){e.target.composing||t.$set(t.editCustomTokenForm,"note",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Active")])]),t._v(" "),e("div",{staticClass:"col-8 text-right"},[e("div",{staticClass:"custom-control custom-checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.editCustomTokenForm.active,expression:"editCustomTokenForm.active"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"customCheck1"},domProps:{checked:Array.isArray(t.editCustomTokenForm.active)?t._i(t.editCustomTokenForm.active,null)>-1:t.editCustomTokenForm.active},on:{change:function(e){var a=t.editCustomTokenForm.active,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&t.$set(t.editCustomTokenForm,"active",a.concat([null])):n>-1&&t.$set(t.editCustomTokenForm,"active",a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.editCustomTokenForm,"active",i)}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"customCheck1"}})])])])])])])],1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-xl-4 col-lg-6 col-md-4"},[e("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[t._v("Autospam")]),t._v(" "),e("p",{staticClass:"text-lighter"},[t._v("The automated spam detection system")])])},function(){var t=this._self._c;return t("div",{staticClass:"col-auto"},[t("div",{staticClass:"icon icon-shape bg-gradient-primary text-white rounded-circle shadow"},[t("i",{staticClass:"far fa-sensor-alert"})])])},function(){var t=this._self._c;return t("div",{staticClass:"col-auto"},[t("div",{staticClass:"icon icon-shape bg-gradient-primary text-white rounded-circle shadow"},[t("i",{staticClass:"far fa-shield-alt"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body text-center"},[e("p",[e("i",{staticClass:"far fa-check-circle fa-5x text-success"})]),t._v(" "),e("p",{staticClass:"lead text-light mb-0"},[t._v("Autospam Service Operational")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body text-center"},[e("p",[e("i",{staticClass:"far fa-exclamation-circle fa-5x text-danger"})]),t._v(" "),e("p",{staticClass:"lead text-danger font-weight-bold mb-0"},[t._v("Autospam Service Inactive")]),t._v(" "),e("p",{staticClass:"small text-light mb-0"},[t._v("To activate, "),e("a",{attrs:{href:"/i/admin/settings"}},[t._v("click here")]),t._v(" and enable "),e("span",{staticClass:"font-weight-bold"},[t._v("Spam detection")])])])},function(){var t=this._self._c;return t("p",[t("i",{staticClass:"far fa-check-circle fa-5x text-success"})])},function(){var t=this._self._c;return t("p",[t("i",{staticClass:"far fa-exclamation-circle fa-5x text-danger"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-8"},[e("div",{staticClass:"card bg-default"},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h6",{staticClass:"text-light text-uppercase ls-1 mb-1"},[t._v("Stats")]),t._v(" "),e("h5",{staticClass:"h3 text-white mb-0"},[t._v("Autospam Detections")])])])]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"chart"},[e("canvas",{staticClass:"chart-canvas",attrs:{id:"c1-dark"}})])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"card card-body"},[e("h1",[t._v("About Autospam")]),t._v(" "),e("p",{staticClass:"mb-0"},[t._v("To detect and mitigate spam, we built Autospam, an internal tool that uses NLP and other behavioural metrics to classify potential spam posts.")]),t._v(" "),e("hr"),t._v(" "),e("h2",[t._v("Standard Detection")]),t._v(" "),e("p",[t._v('Standard or "Classic" detection works by evaluating several "signals" from the post and it\'s associated account.')]),t._v(" "),e("p",[t._v('Some of the following "signals" may trigger a positive detection from public posts:')]),t._v(" "),e("ul",[e("li",[t._v("Account is less than 6 months old")]),t._v(" "),e("li",[t._v("Account has less than 100 followers")]),t._v(" "),e("li",[t._v("Post contains one or more of: "),e("span",{staticClass:"badge badge-primary"},[t._v("https://")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v("http://")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v("hxxps://")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v("hxxp://")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v("www.")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v(".com")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v(".net")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v(".org")])])]),t._v(" "),e("p",[t._v("If you've marked atleast one positive detection from an account as "),e("span",{staticClass:"font-weight-bold"},[t._v("Not spam")]),t._v(", any future posts they create will skip detection.")]),t._v(" "),e("hr"),t._v(" "),e("h2",[t._v("Advanced Detection")]),t._v(" "),e("p",[t._v("Advanced Detection works by using a statistical method that combines prior knowledge and observed data to estimate an average value. It assigns weights to both the prior knowledge and the observed data, allowing for a more informed and reliable estimation that adapts to new information.")]),t._v(" "),e("p",[t._v("When you train Spam or Not Spam data, the caption is broken up into words (tokens) and are counted (weights) and then stored in the appropriate category (Spam or Not Spam).")]),t._v(" "),e("p",[t._v("The training data is then used to classify spam on future posts (captions) by calculating each token and associated weights and comparing it to known categories (Spam or Not Spam).")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"card card-body"},[e("p",{staticClass:"mb-0"},[t._v("\n\t \t\t\t\tIn order for Autospam to be effective, you need to train it by classifying data as spam or not-spam.\n\t \t\t\t")]),t._v(" "),e("p",{staticClass:"mb-0 small"},[t._v("\n\t \t\t\t\tWe recommend atleast 200 classifications for both spam and not-spam, it is important to train Autospam on both so you get more accurate results.\n\t \t\t\t")])])])])},function(){var t=this._self._c;return t("p",{staticClass:"mb-0"},[t("i",{staticClass:"far fa-sensor-alert fa-5x text-danger"})])},function(){var t=this._self._c;return t("p",{staticClass:"mb-0"},[t("i",{staticClass:"far fa-check-circle fa-5x text-success"})])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("ID")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Type")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Reported Account")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Created")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("View Report")])])])},function(){var t=this._self._c;return t("td",{staticClass:"align-middle"},[t("p",{staticClass:"text-capitalize font-weight-bold mb-0"},[this._v("Autospam Post")])])},function(){var t=this._self._c;return t("div",{staticClass:"col-12 col-md-9"},[t("div",{staticClass:"card card-body mb-0"},[t("p",{staticClass:"mb-0"},[this._v("\n\t \t\t\t\tTokens are used to split paragraphs and sentences into smaller units that can be more easily assigned meaning.\n\t \t\t\t")])])])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("ID")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Token")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Category")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Weight")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Created")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Edit")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card"},[e("div",{staticClass:"card-body text-center py-5"},[e("p",{staticClass:"pt-5"},[e("i",{staticClass:"far fa-inbox fa-4x text-light"})]),t._v(" "),e("p",{staticClass:"lead mb-5"},[t._v("No custom tokens found!")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"card card-body"},[e("p",{staticClass:"mb-0"},[t._v("\n\t \t\t\t\tYou can import and export Spam training data\n\t \t\t\t")]),t._v(" "),e("p",{staticClass:"mb-0 small"},[t._v("\n\t \t\t\t\tWe recommend exercising caution when importing training data from untrusted parties!\n\t \t\t\t")])])])])},function(){var t=this._self._c;return t("p",{staticClass:"mb-0"},[t("i",{staticClass:"far fa-plus-circle fa-5x text-light"})])},function(){var t=this._self._c;return t("p",{staticClass:"mb-0"},[t("i",{staticClass:"far fa-download fa-5x text-light"})])}]},41298:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return t.loaded?e("div",[e("div",{staticClass:"header bg-primary pb-2 mt-n4"},[e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"header-body"},[e("div",{staticClass:"row align-items-center py-4"},[t._m(0),t._v(" "),e("div",{staticClass:"col-lg-6 col-5"},[e("p",{staticClass:"text-right"},[e("button",{staticClass:"btn btn-outline-white btn-lg px-5 py-2",on:{click:t.save}},[t._v("Save changes")])])])])])])]),t._v(" "),e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-3"},[e("div",{staticClass:"nav-wrapper"},[e("div",{staticClass:"nav flex-column nav-pills",attrs:{id:"tabs-icons-text",role:"tablist","aria-orientation":"vertical"}},t._l(t.tabs,(function(a){return e("div",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link mb-sm-3",class:{active:t.tabIndex===a.id},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab(a.id)}}},[e("i",{class:a.icon}),t._v(" "),e("span",{staticClass:"ml-2"},[t._v(t._s(a.title))])])])})),0)])]),t._v(" "),e("div",{staticClass:"col-12 col-md-9"},[e("div",{staticClass:"card shadow mt-3"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"tab-content"},[1===t.tabIndex?e("div",{staticClass:"tab-pane fade show active"},[t.isSubmitting||t.state.awaiting_approval||t.state.is_active?t.isSubmitting||!t.state.awaiting_approval||t.state.is_active?!t.isSubmitting&&t.state.awaiting_approval&&t.state.is_active?e("div",[t._m(3)]):t.isSubmitting||t.state.awaiting_approval||!t.state.is_active?t.isSubmitting?e("div",[e("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[e("b-spinner",{attrs:{variant:"primary"}}),t._v(" "),e("p",{staticClass:"lead my-0 text-primary"},[t._v("Sending submission...")])],1)]):e("div",[t._m(6)]):e("div",[e("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[e("h2",{staticClass:"font-weight-bold"},[t._v("Active Listing")]),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),e("button",{staticClass:"btn btn-primary btn-sm mt-3 font-weight-bold px-5 text-uppercase",on:{click:t.handleSubmit}},[t._v("\n Update my listing on pixelfed.org\n ")])])]):e("div",[t._m(2)]):e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("div",{staticClass:"text-center mb-4"},[t._m(1),t._v(" "),e("p",{staticClass:"display-3 mb-1"},[t._v("Awaiting Submission")]),t._v(" "),t.state.is_eligible||t.state.submission_exists?t.state.is_eligible&&!t.state.submission_exists?e("div",{staticClass:"mb-4"},[e("p",{staticClass:"lead mt-0 text-muted"},[t._v("Your directory listing is ready for submission!")]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-lg font-weight-bold px-5 text-uppercase",on:{click:t.handleSubmit}},[t._v("\n Submit my Server to pixelfed.org\n ")])]):t._e():e("p",{staticClass:"lead mt-0 text-muted"},[t._v("Your directory listing isn't completed yet")])])]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card text-left"},[e("div",{staticClass:"list-group list-group-flush"},[e("div",{staticClass:"list-group-item"},[!0===t.requirements.curated_onboarding?[e("i",{staticClass:"far fa-exclamation-circle text-success"}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n Curated account registration\n ")])]:[e("i",{staticClass:"far",class:[t.requirements.open_registration?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.requirements.open_registration?"Open":"Closed")+" account registration\n ")])]],2),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.requirements.oauth_enabled?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.requirements.oauth_enabled?"Enabled":"Disabled")+" mobile apis/oauth\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.requirements.activitypub_enabled?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.requirements.activitypub_enabled?"Enabled":"Disabled")+" activitypub federation\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.form.summary&&t.form.summary.length&&t.form.location&&t.form.location.length?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.form.summary&&t.form.summary.length&&t.form.location&&t.form.location.length?"Configured":"Missing")+" server details\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.requirements_validator&&0==t.requirements_validator.length?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.requirements_validator&&0==t.requirements_validator.length?"Valid":"Invalid")+" feature requirements\n ")])])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card text-left"},[e("div",{staticClass:"list-group list-group-flush"},[e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.form.contact_account?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.form.contact_account?"Configured":"Missing")+" admin account\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.form.contact_email?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.form.contact_email?"Configured":"Missing")+" contact email\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.selectedPosts&&t.selectedPosts.length?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.selectedPosts&&t.selectedPosts.length?"Configured":"Missing")+" favourite posts\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.form.privacy_pledge?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.form.privacy_pledge?"Configured":"Missing")+" privacy pledge\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.communityGuidelines&&t.communityGuidelines.length?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.communityGuidelines&&t.communityGuidelines.length?"Configured":"Missing")+" community guidelines\n ")])])])])])])]):2===t.tabIndex?e("div",{staticClass:"tab-pane fade show active"},[e("p",{staticClass:"description"},[t._v("Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.")])]):3===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("Server Details")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("Edit your server details to better describe it")]),t._v(" "),e("hr",{staticClass:"mt-0"}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card shadow-none border card-body"},[e("div",{staticClass:"form-group mb-0"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Summary")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.summary,expression:"form.summary"}],staticClass:"form-control form-control-muted",attrs:{id:"form-summary",rows:"3",placeholder:"A descriptive summary of your instance up to 140 characters long. HTML is not allowed."},domProps:{value:t.form.summary},on:{input:function(e){e.target.composing||t.$set(t.form,"summary",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-muted text-right"},[t._v("\n "+t._s(t.form.summary&&t.form.summary.length?t.form.summary.length:0)+"/140\n ")])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card shadow-none border card-body"},[e("div",{staticClass:"form-group mb-0"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Location")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.location,expression:"form.location"}],staticClass:"form-control form-control-muted",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"location",e.target.multiple?a:a[0])}}},[e("option",{attrs:{selected:"",disabled:"",value:"0"}},[t._v("Select the country your server is in")]),t._v(" "),t._l(t.initialData.countries,(function(a){return e("option",{domProps:{value:a}},[t._v(t._s(a))])}))],2),t._v(" "),e("p",{staticClass:"form-text small text-muted"},[t._v("Select the country your server is hosted in, even if you are in a different country")])])])])]),t._v(" "),e("div",{staticClass:"list-group mb-4"},[e("div",{staticClass:"list-group-item"},[e("label",{staticClass:"font-weight-bold mb-0"},[t._v("Server Banner")]),t._v(" "),e("p",{staticClass:"small"},[t._v("Add an optional banner image to your directory listing")]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card mb-0 shadow-none border"},[t.form.banner_image?e("div",[e("a",{attrs:{href:t.form.banner_image,target:"_blank"}},[e("img",{staticClass:"card-img-top",attrs:{src:t.form.banner_image}})])]):e("div",{staticClass:"card-body bg-primary text-white"},[t._m(7),t._v(" "),e("p",{staticClass:"text-center mb-0"},[t._v("No banner image")])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[t.isUploadingBanner?e("div",{staticClass:"text-center"},[e("b-spinner",{attrs:{variant:"primary"}})],1):e("div",{staticClass:"custom-file"},[e("input",{ref:"bannerImageRef",staticClass:"custom-file-input",attrs:{type:"file",id:"banner_image"},on:{change:t.uploadBannerImage}}),t._v(" "),e("label",{staticClass:"custom-file-label",attrs:{for:"banner_image"}},[t._v("Choose file")]),t._v(" "),e("p",{staticClass:"form-text text-muted small mb-0"},[t._v("Must be 1920 by 1080 pixels")]),t._v(" "),t._m(8),t._v(" "),t.form.banner_image&&!t.form.banner_image.endsWith("default.jpg")?e("div",[e("button",{staticClass:"btn btn-danger font-weight-bold btn-block mt-5",on:{click:t.deleteBannerImage}},[t._v("Delete banner image")])]):t._e()])])])])]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card shadow-none border card-body"},[e("div",{staticClass:"form-group mb-0"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Primary Language")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.primary_locale,expression:"form.primary_locale"}],staticClass:"form-control form-control-muted",attrs:{disabled:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"primary_locale",e.target.multiple?a:a[0])}}},t._l(t.initialData.available_languages,(function(a){return e("option",{domProps:{value:a.code}},[t._v(t._s(a.name))])})),0),t._v(" "),t._m(9)])])])])]):4===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("Admin Contact")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("Set a designated admin account and public email address")]),t._v(" "),e("hr",{staticClass:"mt-0"}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[t.initialData.admins.length?e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Designated Admin")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.contact_account,expression:"form.contact_account"}],staticClass:"form-control form-control-muted",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"contact_account",e.target.multiple?a:a[0])}}},[e("option",{attrs:{disabled:"",value:"0"}},[t._v("Select a designated admin")]),t._v(" "),t._l(t.initialData.admins,(function(a,s){return e("option",{key:"pfc-"+a+s,domProps:{value:a.pid}},[t._v(t._s(a.username))])}))],2)]):e("div",{staticClass:"px-3 pb-2 pt-0 border border-danger rounded"},[e("p",{staticClass:"lead font-weight-bold text-danger"},[t._v("No admin(s) found")]),t._v(" "),t._m(10)])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Public Email")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.contact_email,expression:"form.contact_email"}],staticClass:"form-control form-control-muted",attrs:{placeholder:"info@example.org"},domProps:{value:t.form.contact_email},on:{input:function(e){e.target.composing||t.$set(t.form,"contact_email",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-muted"},[t._v("\n Must be a valid email address\n ")])])])])]):5===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("Favourite Posts")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("Show off a few favourite posts from your server")]),t._v(" "),e("hr",{staticClass:"mt-0 mb-1"}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.selectedPosts&&12!==t.selectedPosts.length,expression:"selectedPosts && selectedPosts.length !== 12"}],staticClass:"nav-wrapper"},[e("ul",{staticClass:"nav nav-pills nav-fill flex-column flex-md-row",attrs:{role:"tablist"}},[e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link mb-sm-3 mb-md-0 active",attrs:{id:"favposts-1-tab","data-toggle":"tab",href:"#favposts-1",role:"tab","aria-controls":"favposts-1","aria-selected":"true"}},[t._v(t._s(this.selectedPosts.length?this.selectedPosts.length:"")+" Selected Posts")])]),t._v(" "),t.selectedPosts&&t.selectedPosts.length<12?e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link mb-sm-3 mb-md-0",attrs:{id:"favposts-2-tab","data-toggle":"tab",href:"#favposts-2",role:"tab","aria-controls":"favposts-2","aria-selected":"false"}},[t._v("Add by post id")])]):t._e(),t._v(" "),t.selectedPosts&&t.selectedPosts.length<12?e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link mb-sm-3 mb-md-0",attrs:{id:"favposts-3-tab","data-toggle":"tab",href:"#favposts-3",role:"tab","aria-controls":"favposts-3","aria-selected":"false"},on:{click:t.initPopularPosts}},[t._v("Add by popularity")])]):t._e()])]),t._v(" "),e("div",{staticClass:"tab-content mt-3"},[e("div",{staticClass:"tab-pane fade list-fade-bottom show active",attrs:{id:"favposts-1",role:"tabpanel","aria-labelledby":"favposts-1-tab"}},[t.selectedPosts&&t.selectedPosts.length?e("div",{staticStyle:{"max-height":"520px","overflow-y":"auto"}},[t._l(t.selectedPosts,(function(a){return e("div",{key:"sp-"+a.id,staticClass:"list-group-item border-primary form-control-muted"},[e("div",{staticClass:"media align-items-center"},[e("div",{staticClass:"custom-control custom-checkbox mr-2"},[e("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",checked:"",id:"checkbox-sp-".concat(a.id)},on:{change:function(e){return t.toggleSelectedPost(a)}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"checkbox-sp-".concat(a.id)}})]),t._v(" "),e("img",{staticClass:"border rounded-sm mr-3",staticStyle:{"object-fit":"cover"},attrs:{src:a.media_attachments[0].url,width:"100",height:"100",loading:"lazy"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"lead mt-0 mb-0 font-weight-bold"},[t._v("@"+t._s(a.account.username))]),t._v(" "),e("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[e("span",[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(a.favourites_count)))]),t._v(" Likes")]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("·")]),t._v(" "),e("span",[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(a.account.followers_count)))]),t._v(" Followers")]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("·")]),t._v(" "),e("span",[t._v("Created "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatDateTime(a.created_at)))])])])]),t._v(" "),e("a",{staticClass:"btn btn-outline-primary btn-sm rounded-pill",attrs:{href:a.url,target:"_blank"}},[t._v("View")])])])})),t._v(" "),e("div",{staticClass:"mt-5 mb-5 pt-3"})],2):e("div",[t._m(11)])]),t._v(" "),e("div",{staticClass:"tab-pane fade",attrs:{id:"favposts-2",role:"tabpanel","aria-labelledby":"favposts-2-tab"}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Find and add by post id")]),t._v(" "),e("div",{staticClass:"input-group mb-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.favouritePostByIdInput,expression:"favouritePostByIdInput"}],staticClass:"form-control form-control-muted border",attrs:{type:"number",placeholder:"Post id",min:"1",max:"99999999999999999999",disabled:t.favouritePostByIdFetching},domProps:{value:t.favouritePostByIdInput},on:{input:function(e){e.target.composing||(t.favouritePostByIdInput=e.target.value)}}}),t._v(" "),e("div",{staticClass:"input-group-append"},[t.favouritePostByIdFetching?e("button",{staticClass:"btn btn-outline-primary",attrs:{disabled:""}},[t._m(12)]):e("button",{staticClass:"btn btn-outline-primary",attrs:{type:"button"},on:{click:t.handlePostByIdSearch}},[t._v("\n Search\n ")])])])])]),t._v(" "),t._m(13)])]),t._v(" "),e("div",{staticClass:"tab-pane fade list-fade-bottom mb-0",attrs:{id:"favposts-3",role:"tabpanel","aria-labelledby":"favposts-3-tab"}},[t.popularPostsLoaded?e("div",{staticClass:"list-group",staticStyle:{"max-height":"520px","overflow-y":"auto"}},[t._l(t.popularPosts,(function(a){return e("div",{key:"pp-"+a.id,staticClass:"list-group-item",class:[t.selectedPosts.includes(a)?"border-primary form-control-muted":""]},[e("div",{staticClass:"media align-items-center"},[e("div",{staticClass:"custom-control custom-checkbox mr-2"},[e("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",id:"checkbox-pp-".concat(a.id)},domProps:{checked:t.selectedPosts.includes(a)},on:{change:function(e){return t.togglePopularPost(a.id,a)}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"checkbox-pp-".concat(a.id)}})]),t._v(" "),e("img",{staticClass:"border rounded-sm mr-3",staticStyle:{"object-fit":"cover"},attrs:{src:a.media_attachments[0].url,width:"100",height:"100",loading:"lazy"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"lead mt-0 mb-0 font-weight-bold"},[t._v("@"+t._s(a.account.username))]),t._v(" "),e("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[e("span",[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(a.favourites_count)))]),t._v(" Likes")]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("·")]),t._v(" "),e("span",[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(a.account.followers_count)))]),t._v(" Followers")]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("·")]),t._v(" "),e("span",[t._v("Created "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatDateTime(a.created_at)))])])])]),t._v(" "),e("a",{staticClass:"btn btn-outline-primary btn-sm rounded-pill",attrs:{href:a.url,target:"_blank"}},[t._v("View")])])])})),t._v(" "),e("div",{staticClass:"mt-5 mb-3"})],2):e("div",{staticClass:"text-center py-5"},[t._m(14)])])])]):6===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("Privacy Pledge")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("Pledge to keep you and your data private and securely stored")]),t._v(" "),e("hr",{staticClass:"mt-0"}),t._v(" "),e("p",[t._v("To qualify for the Privacy Pledge, you must abide by the following rules:")]),t._v(" "),t._m(15),t._v(" "),e("p",{staticClass:"small text-muted mb-0"},[t._v("You may use 3rd party services like captchas on specific pages, so long as they are clearly defined in your privacy policy")]),t._v(" "),e("hr"),t._v(" "),e("p"),e("div",{staticClass:"custom-control custom-checkbox mr-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.privacy_pledge,expression:"form.privacy_pledge"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"privacy-pledge"},domProps:{checked:Array.isArray(t.form.privacy_pledge)?t._i(t.form.privacy_pledge,null)>-1:t.form.privacy_pledge},on:{change:function(e){var a=t.form.privacy_pledge,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&t.$set(t.form,"privacy_pledge",a.concat([null])):n>-1&&t.$set(t.form,"privacy_pledge",a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.form,"privacy_pledge",i)}}}),t._v(" "),e("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"privacy-pledge"}},[t._v("I agree to the uphold the Privacy Pledge")])]),t._v(" "),e("p")]):7===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("Community Guidelines")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("A few ground rules to keep your community healthy and safe.")]),t._v(" "),e("hr",{staticClass:"mt-0"}),t._v(" "),t.communityGuidelines&&t.communityGuidelines.length?e("ol",{staticClass:"font-weight-bold"},t._l(t.communityGuidelines,(function(a){return e("li",{staticClass:"text-primary"},[e("span",{staticClass:"lead ml-1 text-dark"},[t._v(t._s(a))])])})),0):e("div",{staticClass:"card bg-primary text-white"},[t._m(16)]),t._v(" "),e("hr"),t._v(" "),t._m(17)]):8===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("Feature Requirements")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("The minimum requirements for Directory inclusion.")]),t._v(" "),e("hr",{staticClass:"mt-0"}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"list-group"},[e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("media_types")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Media Types")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("Allowed MIME types. image/jpeg and image/png by default")]),t._v(" "),t.requirements_validator.hasOwnProperty("media_types")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.media_types[0]))]):t._e()])]),t._v(" "),t.feature_config.optimize_image?e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("image_quality")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Image Quality")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("Image optimization is enabled, the image quality must be a value between 1-100.")]),t._v(" "),t.requirements_validator.hasOwnProperty("image_quality")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.image_quality[0]))]):t._e()])]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("max_photo_size")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Photo Size")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("Max photo upload size in kb. Must be between 15-100 MB.")]),t._v(" "),t.requirements_validator.hasOwnProperty("max_photo_size")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_photo_size[0]))]):t._e()])]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("max_caption_length")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Caption Length")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("The max caption length limit. Must be between 500-10000.")]),t._v(" "),t.requirements_validator.hasOwnProperty("max_caption_length")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_caption_length[0]))]):t._e()])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"list-group"},[e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("max_altext_length")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Alt-text length")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("The alt-text length limit. Must be between 1000-5000.")]),t._v(" "),t.requirements_validator.hasOwnProperty("max_altext_length")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_altext_length[0]))]):t._e()])]),t._v(" "),t.feature_config.enforce_account_limit?e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("max_account_size")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Account Size")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("The account storage limit. Must be 1GB at minimum.")]),t._v(" "),t.requirements_validator.hasOwnProperty("max_account_size")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_account_size[0]))]):t._e()])]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("max_album_length")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Album Length")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("Max photos per album post. Must be between 4-20.")]),t._v(" "),t.requirements_validator.hasOwnProperty("max_album_length")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_album_length[0]))]):t._e()])]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("account_deletion")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Account Deletion")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("Allow users to delete their own account.")]),t._v(" "),t.requirements_validator.hasOwnProperty("account_deletion")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.account_deletion[0]))]):t._e()])])])])])]):9===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("User Testimonials")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("Add testimonials from your users.")]),t._v(" "),e("hr",{staticClass:"mt-0"}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6 list-fade-bottom"},[e("div",{staticClass:"list-group pb-5",staticStyle:{"max-height":"520px","overflow-y":"auto"}},t._l(t.testimonials,(function(a,s){return e("div",{staticClass:"list-group-item",class:[s==t.testimonials.length-1?"mb-5":""]},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3 rounded-circle",attrs:{src:a.profile.avatar,width:"40",h:"40"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("\n "+t._s(a.profile.username)+"\n ")]),t._v(" "),e("p",{staticClass:"small text-muted mt-n1 mb-0"},[t._v("\n Member Since "+t._s(t.formatDate(a.profile.created_at))+"\n ")])])]),t._v(" "),e("div",[e("p",{staticClass:"mb-0 small"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.editTestimonial(a)}}},[t._v("\n Edit\n ")])]),t._v(" "),e("p",{staticClass:"mb-0 small"},[e("a",{staticClass:"text-danger",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteTestimonial(a)}}},[t._v("\n Delete\n ")])])])]),t._v(" "),e("hr",{staticClass:"my-1"}),t._v(" "),e("p",{staticClass:"small font-weight-bold text-muted mb-0 text-center"},[t._v("Testimonial")]),t._v(" "),e("div",{staticClass:"border rounded px-3"},[e("p",{staticClass:"my-2 small",staticStyle:{"white-space":"pre-wrap"},domProps:{innerHTML:t._s(a.body)}})])])})),0)]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[t.isEditingTestimonial?e("div",{staticClass:"card"},[e("div",{staticClass:"card-header font-weight-bold"},[t._v("\n Edit Testimonial\n ")]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Username")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.editingTestimonial.profile.username,expression:"editingTestimonial.profile.username"}],staticClass:"form-control form-control-muted",attrs:{placeholder:"test",disabled:""},domProps:{value:t.editingTestimonial.profile.username},on:{input:function(e){e.target.composing||t.$set(t.editingTestimonial.profile,"username",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Testimonial")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.editingTestimonial.body,expression:"editingTestimonial.body"}],staticClass:"form-control form-control-muted",attrs:{rows:"5"},domProps:{value:t.editingTestimonial.body},on:{input:function(e){e.target.composing||t.$set(t.editingTestimonial,"body",e.target.value)}}}),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("p",{staticClass:"help-text small text-muted mb-0"},[t._v("\n Text only, up to 500 characters\n ")]),t._v(" "),e("p",{staticClass:"help-text small text-muted mb-0"},[t._v("\n "+t._s(t.editingTestimonial.body?t.editingTestimonial.body.length:0)+"/500\n ")])])])]),t._v(" "),e("div",{staticClass:"card-footer"},[e("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"button"},on:{click:t.saveEditTestimonial}},[t._v("\n Save\n ")]),t._v(" "),e("button",{staticClass:"btn btn-secondary btn-block",attrs:{type:"button"},on:{click:t.cancelEditTestimonial}},[t._v("\n Cancel\n ")])])]):e("div",{staticClass:"card"},[t.testimonials.length<10?[e("div",{staticClass:"card-header font-weight-bold"},[t._v("\n Add New Testimonial\n ")]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Username")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.testimonial.username,expression:"testimonial.username"}],staticClass:"form-control form-control-muted",attrs:{placeholder:"test"},domProps:{value:t.testimonial.username},on:{input:function(e){e.target.composing||t.$set(t.testimonial,"username",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-muted"},[t._v("\n Must be a valid user account\n ")])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Testimonial")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.testimonial.body,expression:"testimonial.body"}],staticClass:"form-control form-control-muted",attrs:{rows:"5"},domProps:{value:t.testimonial.body},on:{input:function(e){e.target.composing||t.$set(t.testimonial,"body",e.target.value)}}}),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("p",{staticClass:"help-text small text-muted mb-0"},[t._v("\n Text only, up to 500 characters\n ")]),t._v(" "),e("p",{staticClass:"help-text small text-muted mb-0"},[t._v("\n "+t._s(t.testimonial.body?t.testimonial.body.length:0)+"/500\n ")])])])]),t._v(" "),e("div",{staticClass:"card-footer"},[e("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"button"},on:{click:t.saveTestimonial}},[t._v("Save Testimonial")])])]:[t._m(18)]],2)])])]):t._e()])])])])])])]):e("div",[t._m(19)])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-lg-6 col-7"},[e("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[t._v("Directory")]),t._v(" "),e("p",{staticClass:"h3 text-white font-weight-light"},[t._v("Manage your server listing on pixelfed.org")])])},function(){var t=this._self._c;return t("p",[t("i",{staticClass:"far fa-exclamation-triangle fa-5x text-lighter"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[e("p",{staticClass:"display-3 mb-1"},[t._v("Awaiting Approval")]),t._v(" "),e("p",{staticClass:"text-primary mb-1"},[t._v("Awaiting submission approval from pixelfed.org, please check back later!")]),t._v(" "),e("p",{staticClass:"small text-muted mb-0"},[t._v("If you are still waiting for approval after 24 hours please contact the Pixelfed team.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[e("p",{staticClass:"display-3 mb-1"},[t._v("Awaiting Update Approval")]),t._v(" "),e("p",{staticClass:"text-primary mb-1"},[t._v("Awaiting updated submission approval from pixelfed.org, please check back later!")]),t._v(" "),e("p",{staticClass:"small text-muted mb-0"},[t._v("If you are still waiting for approval after 24 hours please contact the Pixelfed team.")])])},function(){var t=this._self._c;return t("p",{staticClass:"my-3"},[t("i",{staticClass:"far fa-check-circle fa-4x text-success"})])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mt-2 mb-0"},[t._v("Your server directory listing on "),e("a",{staticClass:"font-weight-bold",attrs:{href:"#"}},[t._v("pixelfed.org")]),t._v(" is active")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[e("p",{staticClass:"display-3 mb-1"},[t._v("Oops! An unexpected error occured")]),t._v(" "),e("p",{staticClass:"text-primary mb-1"},[t._v("Ask the Pixelfed team for assistance.")])])},function(){var t=this._self._c;return t("p",{staticClass:"text-center mb-2"},[t("i",{staticClass:"far fa-exclamation-circle fa-2x"})])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"form-text text-muted small mb-0"},[t._v("Must be a "),e("kbd",[t._v("JPEG")]),t._v(" or "),e("kbd",[t._v("PNG")]),t._v(" image no larger than 5MB.")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"form-text text-muted small mb-0"},[t._v("The primary language of your server, to edit this value you need to set the "),e("kbd",[t._v("APP_LOCALE")]),t._v(" .env value")])},function(){var t=this,e=t._self._c;return e("ul",{staticClass:"text-danger"},[e("li",[t._v("Admins must be active")]),t._v(" "),e("li",[t._v("Admins must have 2FA setup and enabled")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body bg-lighter text-center py-5"},[e("p",{staticClass:"text-light mb-1"},[e("i",{staticClass:"far fa-info-circle fa-3x"})]),t._v(" "),e("p",{staticClass:"h2 mb-0"},[t._v("0 posts selected")]),t._v(" "),e("p",{staticClass:"small mb-0"},[t._v("You can select up to 12 favourite posts by id or popularity")])])},function(){var t=this._self._c;return t("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card card-body bg-primary"},[e("div",{staticClass:"d-flex align-items-center text-white"},[e("i",{staticClass:"far fa-info-circle mr-2"}),t._v(" "),e("p",{staticClass:"small mb-0 font-weight-bold"},[t._v("A post id is the numerical id found in post urls")])])])])},function(){var t=this._self._c;return t("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])},function(){var t=this,e=t._self._c;return e("ul",{staticClass:"font-weight-bold"},[e("li",[t._v("No analytics or 3rd party trackers*")]),t._v(" "),e("li",[t._v("User data is not sold to any 3rd parties")]),t._v(" "),e("li",[t._v("Data is stored securely in accordance with industry standards")]),t._v(" "),e("li",[t._v("Admin accounts are protected with 2FA")]),t._v(" "),e("li",[t._v("Follow strict support procedures to keep your accounts safe")]),t._v(" "),e("li",[t._v("Give at least 6 months warning in the event we shut down")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body text-center py-5"},[e("p",{staticClass:"mb-n3"},[e("i",{staticClass:"far fa-exclamation-circle fa-3x"})]),t._v(" "),e("p",{staticClass:"lead mb-0"},[t._v("No Community Guidelines have been set")])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0"},[t._v("You can manage Community Guidelines on the "),e("a",{attrs:{href:"/i/admin/settings"}},[t._v("Settings page")])])},function(){var t=this._self._c;return t("div",{staticClass:"card-body text-center"},[t("p",{staticClass:"lead"},[this._v("You can't add any more testimonials")])])},function(){var t=this._self._c;return t("div",{staticClass:"container my-5 py-5 text-center"},[t("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])])}]},54449:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"header bg-primary pb-3 mt-n4"},[e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"header-body"},[t._m(0),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-2 col-md-6"},[e("div",{staticClass:"mb-3"},[e("h5",{staticClass:"text-light text-uppercase mb-0"},[t._v("Unique Hashtags")]),t._v(" "),e("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[t._v(t._s(t.prettyCount(t.stats.total_unique)))])])]),t._v(" "),e("div",{staticClass:"col-xl-2 col-md-6"},[e("div",{staticClass:"mb-3"},[e("h5",{staticClass:"text-light text-uppercase mb-0"},[t._v("Total Hashtags")]),t._v(" "),e("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[t._v(t._s(t.prettyCount(t.stats.total_posts)))])])]),t._v(" "),e("div",{staticClass:"col-xl-2 col-md-6"},[e("div",{staticClass:"mb-3"},[e("h5",{staticClass:"text-light text-uppercase mb-0"},[t._v("New (past 14 days)")]),t._v(" "),e("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[t._v(t._s(t.prettyCount(t.stats.added_14_days)))])])]),t._v(" "),e("div",{staticClass:"col-xl-2 col-md-6"},[e("div",{staticClass:"mb-3"},[e("h5",{staticClass:"text-light text-uppercase mb-0"},[t._v("Banned Hashtags")]),t._v(" "),e("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[t._v(t._s(t.prettyCount(t.stats.total_banned)))])])]),t._v(" "),e("div",{staticClass:"col-xl-2 col-md-6"},[e("div",{staticClass:"mb-3"},[e("h5",{staticClass:"text-light text-uppercase mb-0"},[t._v("NSFW Hashtags")]),t._v(" "),e("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[t._v(t._s(t.prettyCount(t.stats.total_nsfw)))])])]),t._v(" "),e("div",{staticClass:"col-xl-2 col-md-6"},[e("div",{staticClass:"mb-3"},[e("h5",{staticClass:"text-light text-uppercase mb-0"},[t._v("Clear Trending Cache")]),t._v(" "),e("button",{staticClass:"btn btn-outline-white btn-block btn-sm py-0 mt-1",on:{click:t.clearTrendingCache}},[t._v("Clear Cache")])])])])])])]),t._v(" "),t.loaded?e("div",{staticClass:"m-n2 m-lg-4"},[e("div",{staticClass:"container-fluid mt-4"},[e("div",{staticClass:"row mb-3 justify-content-between"},[e("div",{staticClass:"col-12 col-md-8"},[e("ul",{staticClass:"nav nav-pills"},[e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:0==t.tabIndex}],on:{click:function(e){return t.toggleTab(0)}}},[t._v("All")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:1==t.tabIndex}],on:{click:function(e){return t.toggleTab(1)}}},[t._v("Trending")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:2==t.tabIndex}],on:{click:function(e){return t.toggleTab(2)}}},[t._v("Banned")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:3==t.tabIndex}],on:{click:function(e){return t.toggleTab(3)}}},[t._v("NSFW")])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("autocomplete",{ref:"autocomplete",attrs:{search:t.composeSearch,disabled:t.searchLoading,placeholder:"Search hashtags","aria-label":"Search hashtags","get-result-value":t.getTagResultValue},on:{submit:t.onSearchResultClick},scopedSlots:t._u([{key:"result",fn:function(a){var s=a.result,i=a.props;return[e("li",t._b({staticClass:"autocomplete-result d-flex justify-content-between align-items-center"},"li",i,!1),[e("div",{staticClass:"font-weight-bold",class:{"text-danger":s.is_banned}},[t._v("\n #"+t._s(s.name)+"\n ")]),t._v(" "),e("div",{staticClass:"small text-muted"},[t._v("\n "+t._s(t.prettyCount(s.cached_count))+" posts\n ")])])]}}])})],1)]),t._v(" "),[0,2,3].includes(this.tabIndex)?e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-dark"},[e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("ID","id"))},on:{click:function(e){return t.toggleCol("id")}}}),t._v(" "),e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("Hashtag","name"))},on:{click:function(e){return t.toggleCol("name")}}}),t._v(" "),e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("Count","cached_count"))},on:{click:function(e){return t.toggleCol("cached_count")}}}),t._v(" "),e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("Can Search","can_search"))},on:{click:function(e){return t.toggleCol("can_search")}}}),t._v(" "),e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("Can Trend","can_trend"))},on:{click:function(e){return t.toggleCol("can_trend")}}}),t._v(" "),e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("NSFW","is_nsfw"))},on:{click:function(e){return t.toggleCol("is_nsfw")}}}),t._v(" "),e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("Banned","is_banned"))},on:{click:function(e){return t.toggleCol("is_banned")}}}),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Created")])])]),t._v(" "),e("tbody",t._l(t.hashtags,(function(a,s){var i;return e("tr",[e("td",{staticClass:"font-weight-bold text-monospace text-muted"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openEditHashtagModal(a,s)}}},[t._v("\n "+t._s(a.id)+"\n ")])]),t._v(" "),e("td",{staticClass:"font-weight-bold"},[t._v(t._s(a.name))]),t._v(" "),e("td",{staticClass:"font-weight-bold"},[e("a",{attrs:{href:"/i/web/hashtag/".concat(a.slug)}},[t._v("\n "+t._s(null!==(i=a.cached_count)&&void 0!==i?i:0)+"\n ")])]),t._v(" "),e("td",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.boolIcon(a.can_search,"text-success","text-danger"))}}),t._v(" "),e("td",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.boolIcon(a.can_trend,"text-success","text-danger"))}}),t._v(" "),e("td",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.boolIcon(a.is_nsfw,"text-danger"))}}),t._v(" "),e("td",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.boolIcon(a.is_banned,"text-danger"))}}),t._v(" "),e("td",{staticClass:"font-weight-bold"},[t._v(t._s(t.timeAgo(a.created_at)))])])})),0)])]):t._e(),t._v(" "),[0,2,3].includes(this.tabIndex)?e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!t.pagination.prev},on:{click:function(e){return t.paginate("prev")}}},[t._v("\n Prev\n ")]),t._v(" "),e("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!t.pagination.next},on:{click:function(e){return t.paginate("next")}}},[t._v("\n Next\n ")])]):t._e(),t._v(" "),1==this.tabIndex?e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-dark"},[t._m(1),t._v(" "),e("tbody",t._l(t.trendingTags,(function(a,s){var i;return e("tr",[e("td",{staticClass:"font-weight-bold text-monospace text-muted"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openEditHashtagModal(a,s)}}},[t._v("\n "+t._s(a.id)+"\n ")])]),t._v(" "),e("td",{staticClass:"font-weight-bold"},[t._v(t._s(a.hashtag))]),t._v(" "),e("td",{staticClass:"font-weight-bold"},[e("a",{attrs:{href:"/i/web/hashtag/".concat(a.hashtag)}},[t._v("\n "+t._s(null!==(i=a.total)&&void 0!==i?i:0)+"\n ")])])])})),0)])]):t._e()])]):e("div",{staticClass:"my-5 text-center"},[e("b-spinner")],1),t._v(" "),e("b-modal",{attrs:{title:"Edit Hashtag","ok-only":!0,lazy:!0,static:!0},model:{value:t.showEditModal,callback:function(e){t.showEditModal=e},expression:"showEditModal"}},[t.editingHashtag&&t.editingHashtag.name?e("div",{staticClass:"list-group"},[e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[e("div",{staticClass:"text-muted small"},[t._v("Name")]),t._v(" "),e("div",{staticClass:"font-weight-bold"},[t._v(t._s(t.editingHashtag.name))])]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[e("div",{staticClass:"text-muted small"},[t._v("Total Uses")]),t._v(" "),e("div",{staticClass:"font-weight-bold"},[t._v(t._s(t.editingHashtag.cached_count.toLocaleString("en-CA",{compactDisplay:"short"})))])]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[e("div",{staticClass:"text-muted small"},[t._v("Can Trend")]),t._v(" "),e("div",{staticClass:"mr-n2 mb-1"},[e("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.editingHashtag.can_trend,callback:function(e){t.$set(t.editingHashtag,"can_trend",e)},expression:"editingHashtag.can_trend"}})],1)]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[e("div",{staticClass:"text-muted small"},[t._v("Can Search")]),t._v(" "),e("div",{staticClass:"mr-n2 mb-1"},[e("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.editingHashtag.can_search,callback:function(e){t.$set(t.editingHashtag,"can_search",e)},expression:"editingHashtag.can_search"}})],1)]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[e("div",{staticClass:"text-muted small"},[t._v("Banned")]),t._v(" "),e("div",{staticClass:"mr-n2 mb-1"},[e("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.editingHashtag.is_banned,callback:function(e){t.$set(t.editingHashtag,"is_banned",e)},expression:"editingHashtag.is_banned"}})],1)]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[e("div",{staticClass:"text-muted small"},[t._v("NSFW")]),t._v(" "),e("div",{staticClass:"mr-n2 mb-1"},[e("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.editingHashtag.is_nsfw,callback:function(e){t.$set(t.editingHashtag,"is_nsfw",e)},expression:"editingHashtag.is_nsfw"}})],1)])]):t._e(),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.editingHashtag&&t.editingHashtag.name&&t.editSaved?e("div",[e("p",{staticClass:"text-primary small font-weight-bold text-center mt-1 mb-0"},[t._v("Hashtag changes successfully saved!")])]):t._e()])],1)],1)},i=[function(){var t=this._self._c;return t("div",{staticClass:"row align-items-center py-4"},[t("div",{staticClass:"col-lg-6 col-7"},[t("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[this._v("Hashtags")])])])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("ID")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Hashtag")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Trending Count")])])])}]},38343:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t,e,a,s=this,i=s._self._c;return i("div",[i("div",{staticClass:"header bg-primary pb-3 mt-n4"},[i("div",{staticClass:"container-fluid"},[i("div",{staticClass:"header-body"},[s._m(0),s._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-xl-2 col-md-6"},[i("div",{staticClass:"mb-3"},[i("h5",{staticClass:"text-light text-uppercase mb-0"},[s._v("Total Instances")]),s._v(" "),i("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[s._v(s._s(s.prettyCount(s.stats.total_count)))])])]),s._v(" "),i("div",{staticClass:"col-xl-2 col-md-6"},[i("div",{staticClass:"mb-3"},[i("h5",{staticClass:"text-light text-uppercase mb-0"},[s._v("New (past 14 days)")]),s._v(" "),i("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[s._v(s._s(s.prettyCount(s.stats.new_count)))])])]),s._v(" "),i("div",{staticClass:"col-xl-2 col-md-6"},[i("div",{staticClass:"mb-3"},[i("h5",{staticClass:"text-light text-uppercase mb-0"},[s._v("Banned Instances")]),s._v(" "),i("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[s._v(s._s(s.prettyCount(s.stats.banned_count)))])])]),s._v(" "),i("div",{staticClass:"col-xl-2 col-md-6"},[i("div",{staticClass:"mb-3"},[i("h5",{staticClass:"text-light text-uppercase mb-0"},[s._v("NSFW Instances")]),s._v(" "),i("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[s._v(s._s(s.prettyCount(s.stats.nsfw_count)))])])]),s._v(" "),i("div",{staticClass:"col-xl-2 col-md-6"},[i("div",{staticClass:"mb-3"},[i("button",{staticClass:"btn btn-outline-white btn-block btn-sm mt-1",on:{click:function(t){t.preventDefault(),s.showAddModal=!0}}},[s._v("Create New Instance")]),s._v(" "),s.showImportForm?i("div",[i("div",{staticClass:"form-group mt-3"},[i("div",{staticClass:"custom-file"},[i("input",{ref:"importInput",staticClass:"custom-file-input",attrs:{type:"file",id:"customFile"},on:{change:s.onImportUpload}}),s._v(" "),i("label",{staticClass:"custom-file-label",attrs:{for:"customFile"}},[s._v("Choose file")])])]),s._v(" "),i("p",{staticClass:"mb-0 mt-n3"},[i("a",{staticClass:"text-white font-weight-bold small",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),s.showImportForm=!1}}},[s._v("Cancel")])])]):i("div",{staticClass:"d-flex mt-1"},[i("button",{staticClass:"btn btn-outline-white btn-sm mt-1",on:{click:s.openImportForm}},[s._v("Import")]),s._v(" "),i("button",{staticClass:"btn btn-outline-white btn-block btn-sm mt-1",on:{click:function(t){return s.downloadBackup()}}},[s._v("Download Backup")])])])])])])])]),s._v(" "),s.loaded?i("div",{staticClass:"m-n2 m-lg-4"},[i("div",{staticClass:"container-fluid mt-4"},[i("div",{staticClass:"row mb-3 justify-content-between"},[i("div",{staticClass:"col-12 col-md-8"},[i("ul",{staticClass:"nav nav-pills"},[i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:0==s.tabIndex}],on:{click:function(t){return s.toggleTab(0)}}},[s._v("All")])]),s._v(" "),i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:1==s.tabIndex}],on:{click:function(t){return s.toggleTab(1)}}},[s._v("New")])]),s._v(" "),i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:2==s.tabIndex}],on:{click:function(t){return s.toggleTab(2)}}},[s._v("Banned")])]),s._v(" "),i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:3==s.tabIndex}],on:{click:function(t){return s.toggleTab(3)}}},[s._v("NSFW")])]),s._v(" "),i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:4==s.tabIndex}],on:{click:function(t){return s.toggleTab(4)}}},[s._v("Unlisted")])]),s._v(" "),i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:5==s.tabIndex}],on:{click:function(t){return s.toggleTab(5)}}},[s._v("Most Users")])]),s._v(" "),i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:6==s.tabIndex}],on:{click:function(t){return s.toggleTab(6)}}},[s._v("Most Statuses")])])])]),s._v(" "),i("div",{staticClass:"col-12 col-md-4"},[i("autocomplete",{ref:"autocomplete",attrs:{search:s.composeSearch,disabled:s.searchLoading,defaultValue:s.searchQuery,placeholder:"Search instances by domain","aria-label":"Search instances by domain","get-result-value":s.getTagResultValue},on:{submit:s.onSearchResultClick},scopedSlots:s._u([{key:"result",fn:function(t){var e=t.result,a=t.props;return[i("li",s._b({staticClass:"autocomplete-result d-flex justify-content-between align-items-center"},"li",a,!1),[i("div",{staticClass:"font-weight-bold",class:{"text-danger":e.banned}},[s._v("\n\t\t\t\t\t\t\t\t\t"+s._s(e.domain)+"\n\t\t\t\t\t\t\t\t")]),s._v(" "),i("div",{staticClass:"small text-muted"},[s._v("\n\t\t\t\t\t\t\t\t\t"+s._s(s.prettyCount(e.user_count))+" users\n\t\t\t\t\t\t\t\t")])])]}}])})],1)]),s._v(" "),i("div",{staticClass:"table-responsive"},[i("table",{staticClass:"table table-dark"},[i("thead",{staticClass:"thead-dark"},[i("tr",[i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("ID","id"))},on:{click:function(t){return s.toggleCol("id")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("Domain","domain"))},on:{click:function(t){return s.toggleCol("domain")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("Software","software"))},on:{click:function(t){return s.toggleCol("software")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("User Count","user_count"))},on:{click:function(t){return s.toggleCol("user_count")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("Status Count","status_count"))},on:{click:function(t){return s.toggleCol("status_count")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("Banned","banned"))},on:{click:function(t){return s.toggleCol("banned")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("NSFW","auto_cw"))},on:{click:function(t){return s.toggleCol("auto_cw")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("Unlisted","unlisted"))},on:{click:function(t){return s.toggleCol("unlisted")}}}),s._v(" "),i("th",{attrs:{scope:"col"}},[s._v("Created")])])]),s._v(" "),i("tbody",s._l(s.instances,(function(t,e){return i("tr",[i("td",{staticClass:"font-weight-bold text-monospace text-muted"},[i("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),s.openInstanceModal(t.id)}}},[s._v("\n\t\t\t\t\t\t\t\t\t"+s._s(t.id)+"\n\t\t\t\t\t\t\t\t")])]),s._v(" "),i("td",{staticClass:"font-weight-bold"},[s._v(s._s(t.domain))]),s._v(" "),i("td",{staticClass:"font-weight-bold"},[s._v(s._s(t.software))]),s._v(" "),i("td",{staticClass:"font-weight-bold"},[s._v(s._s(s.prettyCount(t.user_count)))]),s._v(" "),i("td",{staticClass:"font-weight-bold"},[s._v(s._s(s.prettyCount(t.status_count)))]),s._v(" "),i("td",{staticClass:"font-weight-bold",domProps:{innerHTML:s._s(s.boolIcon(t.banned,"text-danger"))}}),s._v(" "),i("td",{staticClass:"font-weight-bold",domProps:{innerHTML:s._s(s.boolIcon(t.auto_cw,"text-danger"))}}),s._v(" "),i("td",{staticClass:"font-weight-bold",domProps:{innerHTML:s._s(s.boolIcon(t.unlisted,"text-danger"))}}),s._v(" "),i("td",{staticClass:"font-weight-bold"},[s._v(s._s(s.timeAgo(t.created_at)))])])})),0)])]),s._v(" "),i("div",{staticClass:"d-flex align-items-center justify-content-center"},[i("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!s.pagination.prev},on:{click:function(t){return s.paginate("prev")}}},[s._v("\n\t\t\t\t\tPrev\n\t\t\t\t")]),s._v(" "),i("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!s.pagination.next},on:{click:function(t){return s.paginate("next")}}},[s._v("\n\t\t\t\t\tNext\n\t\t\t\t")])])])]):i("div",{staticClass:"my-5 text-center"},[i("b-spinner")],1),s._v(" "),i("b-modal",{attrs:{title:"View Instance","header-class":"d-flex align-items-center justify-content-center mb-0 pb-0","ok-title":"Save","ok-disabled":!s.editingInstanceChanges},on:{ok:s.saveInstanceModalChanges},scopedSlots:s._u([{key:"modal-footer",fn:function(){return[i("div",{staticClass:"w-100 d-flex justify-content-between align-items-center"},[i("div",[i("b-button",{attrs:{variant:"outline-danger",size:"sm"},on:{click:s.deleteInstanceModal}},[s._v("\n\t\t\t\t\tDelete\n\t\t\t\t")]),s._v(" "),s.refreshedModalStats?s._e():i("b-button",{attrs:{variant:"outline-primary",size:"sm"},on:{click:s.refreshModalStats}},[s._v("\n\t\t\t\t\tRefresh Stats\n\t\t\t\t")])],1),s._v(" "),i("div",[i("b-button",{attrs:{variant:"link-dark",size:"sm"},on:{click:s.onViewMoreInstance}},[s._v("\n\t\t\t\tView More\n\t\t\t ")]),s._v(" "),i("b-button",{attrs:{variant:"primary"},on:{click:s.saveInstanceModalChanges}},[s._v("\n\t\t\t\tSave\n\t\t\t ")])],1)])]},proxy:!0}]),model:{value:s.showInstanceModal,callback:function(t){s.showInstanceModal=t},expression:"showInstanceModal"}},[s.editingInstance&&s.canEditInstance?i("div",{staticClass:"list-group"},[i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Domain")]),s._v(" "),i("div",{staticClass:"font-weight-bold"},[s._v(s._s(s.editingInstance.domain))])]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[s.editingInstance.software?i("div",[i("div",{staticClass:"text-muted small"},[s._v("Software")]),s._v(" "),i("div",{staticClass:"font-weight-bold"},[s._v(s._s(null!==(t=s.editingInstance.software)&&void 0!==t?t:"Unknown"))])]):s._e(),s._v(" "),i("div",[i("div",{staticClass:"text-muted small"},[s._v("Total Users")]),s._v(" "),i("div",{staticClass:"font-weight-bold"},[s._v(s._s(s.formatCount(null!==(e=s.editingInstance.user_count)&&void 0!==e?e:0)))])]),s._v(" "),i("div",[i("div",{staticClass:"text-muted small"},[s._v("Total Statuses")]),s._v(" "),i("div",{staticClass:"font-weight-bold"},[s._v(s._s(s.formatCount(null!==(a=s.editingInstance.status_count)&&void 0!==a?a:0)))])])]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Banned")]),s._v(" "),i("div",{staticClass:"mr-n2 mb-1"},[i("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:s.editingInstance.banned,callback:function(t){s.$set(s.editingInstance,"banned",t)},expression:"editingInstance.banned"}})],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Apply CW to Media")]),s._v(" "),i("div",{staticClass:"mr-n2 mb-1"},[i("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:s.editingInstance.auto_cw,callback:function(t){s.$set(s.editingInstance,"auto_cw",t)},expression:"editingInstance.auto_cw"}})],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Unlisted")]),s._v(" "),i("div",{staticClass:"mr-n2 mb-1"},[i("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:s.editingInstance.unlisted,callback:function(t){s.$set(s.editingInstance,"unlisted",t)},expression:"editingInstance.unlisted"}})],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex justify-content-between",class:[s.instanceModalNotes?"flex-column gap-2":"align-items-center"]},[i("div",{staticClass:"text-muted small"},[s._v("Notes")]),s._v(" "),i("transition",{attrs:{name:"fade"}},[s.instanceModalNotes?i("div",{staticClass:"w-100"},[i("b-form-textarea",{attrs:{rows:"3","max-rows":"5",maxlength:"500"},model:{value:s.editingInstance.notes,callback:function(t){s.$set(s.editingInstance,"notes",t)},expression:"editingInstance.notes"}}),s._v(" "),i("p",{staticClass:"small text-muted"},[s._v(s._s(s.editingInstance.notes?s.editingInstance.notes.length:0)+"/500")])],1):i("div",{staticClass:"mb-1"},[i("a",{staticClass:"font-weight-bold small",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.showModalNotes()}}},[s._v(s._s(s.editingInstance.notes?"View":"Add"))])])])],1)]):s._e()]),s._v(" "),i("b-modal",{attrs:{title:"Add Instance","ok-title":"Save","ok-disabled":s.addNewInstance.domain.length<2},on:{ok:s.saveNewInstance},model:{value:s.showAddModal,callback:function(t){s.showAddModal=t},expression:"showAddModal"}},[i("div",{staticClass:"list-group"},[i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Domain")]),s._v(" "),i("div",[i("b-form-input",{attrs:{placeholder:"Add domain here"},model:{value:s.addNewInstance.domain,callback:function(t){s.$set(s.addNewInstance,"domain",t)},expression:"addNewInstance.domain"}}),s._v(" "),i("p",{staticClass:"small text-light mb-0"},[s._v("Enter a valid domain without https://")])],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Banned")]),s._v(" "),i("div",{staticClass:"mr-n2 mb-1"},[i("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:s.addNewInstance.banned,callback:function(t){s.$set(s.addNewInstance,"banned",t)},expression:"addNewInstance.banned"}})],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Apply CW to Media")]),s._v(" "),i("div",{staticClass:"mr-n2 mb-1"},[i("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:s.addNewInstance.auto_cw,callback:function(t){s.$set(s.addNewInstance,"auto_cw",t)},expression:"addNewInstance.auto_cw"}})],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Unlisted")]),s._v(" "),i("div",{staticClass:"mr-n2 mb-1"},[i("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:s.addNewInstance.unlisted,callback:function(t){s.$set(s.addNewInstance,"unlisted",t)},expression:"addNewInstance.unlisted"}})],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex flex-column gap-2 justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Notes")]),s._v(" "),i("div",{staticClass:"w-100"},[i("b-form-textarea",{attrs:{rows:"3","max-rows":"5",maxlength:"500",placeholder:"Add optional notes here"},model:{value:s.addNewInstance.notes,callback:function(t){s.$set(s.addNewInstance,"notes",t)},expression:"addNewInstance.notes"}}),s._v(" "),i("p",{staticClass:"small text-muted"},[s._v(s._s(s.addNewInstance.notes?s.addNewInstance.notes.length:0)+"/500")])],1)])])]),s._v(" "),i("b-modal",{attrs:{title:"Import Instance Backup","ok-title":"Import",scrollable:"","ok-disabled":!s.importData||!s.importData.banned.length&&!s.importData.unlisted.length&&!s.importData.auto_cw.length},on:{ok:s.completeImport,cancel:s.cancelImport},model:{value:s.showImportModal,callback:function(t){s.showImportModal=t},expression:"showImportModal"}},[s.showImportModal&&s.importData?i("div",[s.importData.auto_cw&&s.importData.auto_cw.length?i("div",{staticClass:"mb-5"},[i("p",{staticClass:"font-weight-bold text-center my-0"},[s._v("NSFW Instances ("+s._s(s.importData.auto_cw.length)+")")]),s._v(" "),i("p",{staticClass:"small text-center text-muted mb-1"},[s._v("Tap on an instance to remove it.")]),s._v(" "),i("div",{staticClass:"list-group"},s._l(s.importData.auto_cw,(function(t,e){return i("a",{staticClass:"list-group-item d-flex align-items-center justify-content-between",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.filterImportData("auto_cw",e)}}},[s._v("\n\t\t\t\t\t\t"+s._s(t)+"\n\n\t\t\t\t\t\t"),i("span",{staticClass:"badge badge-warning"},[s._v("Auto CW")])])})),0)]):s._e(),s._v(" "),s.importData.unlisted&&s.importData.unlisted.length?i("div",{staticClass:"mb-5"},[i("p",{staticClass:"font-weight-bold text-center my-0"},[s._v("Unlisted Instances ("+s._s(s.importData.unlisted.length)+")")]),s._v(" "),i("p",{staticClass:"small text-center text-muted mb-1"},[s._v("Tap on an instance to remove it.")]),s._v(" "),i("div",{staticClass:"list-group"},s._l(s.importData.unlisted,(function(t,e){return i("a",{staticClass:"list-group-item d-flex align-items-center justify-content-between",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.filterImportData("unlisted",e)}}},[s._v("\n\t\t\t\t\t\t"+s._s(t)+"\n\n\t\t\t\t\t\t"),i("span",{staticClass:"badge badge-primary"},[s._v("Unlisted")])])})),0)]):s._e(),s._v(" "),s.importData.banned&&s.importData.banned.length?i("div",{staticClass:"mb-5"},[i("p",{staticClass:"font-weight-bold text-center my-0"},[s._v("Banned Instances ("+s._s(s.importData.banned.length)+")")]),s._v(" "),i("p",{staticClass:"small text-center text-muted mb-1"},[s._v("Review instances, tap on an instance to remove it.")]),s._v(" "),i("div",{staticClass:"list-group"},s._l(s.importData.banned,(function(t,e){return i("a",{staticClass:"list-group-item d-flex align-items-center justify-content-between",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.filterImportData("banned",e)}}},[s._v("\n\t\t\t\t\t\t"+s._s(t)+"\n\n\t\t\t\t\t\t"),i("span",{staticClass:"badge badge-danger"},[s._v("Banned")])])})),0)]):s._e(),s._v(" "),s.importData.banned.length||s.importData.unlisted.length||s.importData.auto_cw.length?s._e():i("div",[i("div",{staticClass:"text-center"},[i("p",[i("i",{staticClass:"far fa-check-circle fa-4x text-success"})]),s._v(" "),i("p",{staticClass:"lead"},[s._v("Nothing to import!")])])])]):s._e()])],1)},i=[function(){var t=this._self._c;return t("div",{staticClass:"row align-items-center py-4"},[t("div",{staticClass:"col-lg-6 col-7"},[t("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[this._v("Instances")])])])}]},44381:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t,e,a=this,s=a._self._c;return s("div",[s("div",{staticClass:"header bg-primary pb-3 mt-n4"},[s("div",{staticClass:"container-fluid"},[s("div",{staticClass:"header-body"},[a._m(0),a._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-sm-6 col-lg-3"},[s("div",{staticClass:"mb-3"},[s("h5",{staticClass:"text-light text-uppercase mb-0"},[a._v("Active Reports")]),a._v(" "),s("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:a.stats.open+" open reports"}},[a._v("\n "+a._s(a.prettyCount(a.stats.open))+"\n ")])])]),a._v(" "),s("div",{staticClass:"col-12 col-sm-6 col-lg-3"},[s("div",{staticClass:"mb-3"},[s("h5",{staticClass:"text-light text-uppercase mb-0"},[a._v("Active Spam Detections")]),a._v(" "),s("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:a.stats.autospam_open+" open spam detections"}},[a._v(a._s(a.prettyCount(a.stats.autospam_open)))])])]),a._v(" "),s("div",{staticClass:"col-12 col-sm-6 col-lg-3"},[s("div",{staticClass:"mb-3"},[s("h5",{staticClass:"text-light text-uppercase mb-0"},[a._v("Total Reports")]),a._v(" "),s("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:a.stats.total+" total reports"}},[a._v(a._s(a.prettyCount(a.stats.total))+"\n ")])])]),a._v(" "),s("div",{staticClass:"col-12 col-sm-6 col-lg-3"},[s("div",{staticClass:"mb-3"},[s("h5",{staticClass:"text-light text-uppercase mb-0"},[a._v("Total Spam Detections")]),a._v(" "),s("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:a.stats.autospam+" total spam detections"}},[a._v("\n "+a._s(a.prettyCount(a.stats.autospam))+"\n ")])])])])])])]),a._v(" "),a.loaded?s("div",{staticClass:"m-n2 m-lg-4"},[s("div",{staticClass:"container-fluid mt-4"},[s("div",{staticClass:"row mb-3 justify-content-between"},[s("div",{staticClass:"col-12"},[s("ul",{staticClass:"nav nav-pills"},[s("li",{staticClass:"nav-item"},[s("a",{class:["nav-link d-flex align-items-center",{active:0==a.tabIndex}],attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),a.toggleTab(0)}}},[s("span",[a._v("Open Reports")]),a._v(" "),a.stats.open?s("span",{staticClass:"badge badge-sm badge-floating badge-danger border-white ml-2",staticStyle:{"background-color":"red",color:"white","font-size":"11px"}},[a._v("\n "+a._s(a.prettyCount(a.stats.open))+"\n ")]):a._e()])]),a._v(" "),s("li",{staticClass:"nav-item"},[s("a",{class:["nav-link d-flex align-items-center",{active:2==a.tabIndex}],attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),a.toggleTab(2)}}},[s("span",[a._v("Spam Detections")]),a._v(" "),a.stats.autospam_open?s("span",{staticClass:"badge badge-sm badge-floating badge-danger border-white ml-2",staticStyle:{"background-color":"red",color:"white","font-size":"11px"}},[a._v("\n "+a._s(a.prettyCount(a.stats.autospam_open))+"\n ")]):a._e()])]),a._v(" "),s("li",{staticClass:"nav-item"},[s("a",{class:["nav-link d-flex align-items-center",{active:3==a.tabIndex}],attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),a.toggleTab(3)}}},[s("span",[a._v("Remote Reports")]),a._v(" "),a.stats.remote_open?s("span",{staticClass:"badge badge-sm badge-floating badge-danger border-white ml-2",staticStyle:{"background-color":"red",color:"white","font-size":"11px"}},[a._v("\n "+a._s(a.prettyCount(a.stats.remote_open))+"\n ")]):a._e()])]),a._v(" "),s("li",{staticClass:"d-none d-md-block nav-item"},[s("a",{class:["nav-link d-flex align-items-center",{active:1==a.tabIndex}],attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),a.toggleTab(1)}}},[s("span",[a._v("Closed Reports")]),a._v(" "),a.stats.autospam_open?s("span",{staticClass:"badge badge-sm badge-floating badge-secondary border-white ml-2",staticStyle:{"font-size":"11px"}},[a._v("\n "+a._s(a.prettyCount(a.stats.closed))+"\n ")]):a._e()])]),a._v(" "),s("li",{staticClass:"d-none d-md-block nav-item"},[s("a",{staticClass:"nav-link d-flex align-items-center",attrs:{href:"/i/admin/reports/email-verifications"}},[s("span",[a._v("Email Verification Requests")]),a._v(" "),a.stats.email_verification_requests?s("span",{staticClass:"badge badge-sm badge-floating badge-secondary border-white ml-2",staticStyle:{"font-size":"11px"}},[a._v("\n "+a._s(a.prettyCount(a.stats.email_verification_requests))+"\n ")]):a._e()])]),a._v(" "),s("li",{staticClass:"d-none d-md-block nav-item"},[s("a",{staticClass:"nav-link d-flex align-items-center",attrs:{href:"/i/admin/reports/appeals"}},[s("span",[a._v("Appeal Requests")]),a._v(" "),a.stats.appeals?s("span",{staticClass:"badge badge-sm badge-floating badge-secondary border-white ml-2",staticStyle:{"font-size":"11px"}},[a._v("\n "+a._s(a.prettyCount(a.stats.appeals))+"\n ")]):a._e()])])])])]),a._v(" "),[0,1].includes(this.tabIndex)?s("div",{staticClass:"table-responsive rounded"},[a.reports&&a.reports.length?s("table",{staticClass:"table table-dark"},[a._m(1),a._v(" "),s("tbody",a._l(a.reports,(function(t,e){return s("tr",[s("td",{staticClass:"font-weight-bold text-monospace text-muted align-middle"},[s("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),a.viewReport(t)}}},[a._v("\n "+a._s(t.id)+"\n ")])]),a._v(" "),s("td",{staticClass:"align-middle"},[s("p",{staticClass:"text-capitalize font-weight-bold mb-0",domProps:{innerHTML:a._s(a.reportLabel(t))}})]),a._v(" "),s("td",{staticClass:"align-middle"},[t.reported&&t.reported.id?s("a",{staticClass:"text-white",attrs:{href:"/i/web/profile/".concat(t.reported.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:t.reported.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"14px"}},[a._v("@"+a._s(t.reported.username))]),a._v(" "),s("div",{staticClass:"d-flex small text-muted mb-0",staticStyle:{gap:"0.5rem"}},[s("span",[a._v(a._s(t.reported.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(t.reported.created_at)))])])])])]):a._e()]),a._v(" "),s("td",{staticClass:"align-middle"},[t&&t.reporter&&t.reporter.id?s("a",{staticClass:"text-white",attrs:{href:"/i/web/profile/".concat(t.reporter.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:t.reporter.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"14px"}},[a._v("@"+a._s(t.reporter.username))]),a._v(" "),s("div",{staticClass:"d-flex small text-muted mb-0",staticStyle:{gap:"0.5rem"}},[s("span",[a._v(a._s(t.reporter.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(t.reporter.created_at)))])])])])]):a._e()]),a._v(" "),s("td",{staticClass:"font-weight-bold align-middle"},[a._v(a._s(a.timeAgo(t.created_at)))]),a._v(" "),s("td",{staticClass:"align-middle"},[s("a",{staticClass:"btn btn-primary btn-sm",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),a.viewReport(t)}}},[a._v("View")])])])})),0)]):s("div",[s("div",{staticClass:"card card-body p-5"},[s("div",{staticClass:"d-flex justify-content-between align-items-center flex-column"},[a._m(2),a._v(" "),s("p",{staticClass:"lead"},[a._v(a._s(0===a.tabIndex?"No Active Reports Found!":"No Closed Reports Found!"))])])])])]):a._e(),a._v(" "),[0,1].includes(this.tabIndex)&&a.reports.length&&(a.pagination.prev||a.pagination.next)?s("div",{staticClass:"d-flex align-items-center justify-content-center"},[s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!a.pagination.prev},on:{click:function(t){return a.paginate("prev")}}},[a._v("\n Prev\n ")]),a._v(" "),s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!a.pagination.next},on:{click:function(t){return a.paginate("next")}}},[a._v("\n Next\n ")])]):a._e(),a._v(" "),2===this.tabIndex?s("div",{staticClass:"table-responsive rounded"},[a.autospamLoaded?[a.autospam&&a.autospam.length?s("table",{staticClass:"table table-dark"},[a._m(3),a._v(" "),s("tbody",a._l(a.autospam,(function(t,e){return s("tr",[s("td",{staticClass:"font-weight-bold text-monospace text-muted align-middle"},[s("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),a.viewSpamReport(t)}}},[a._v("\n "+a._s(t.id)+"\n ")])]),a._v(" "),a._m(4,!0),a._v(" "),s("td",{staticClass:"align-middle"},[t.status&&t.status.account?s("a",{staticClass:"text-white",attrs:{href:"/i/web/profile/".concat(t.status.account.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:t.status.account.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"14px"}},[a._v("@"+a._s(t.status.account.username))]),a._v(" "),s("div",{staticClass:"d-flex small text-muted mb-0",staticStyle:{gap:"0.5rem"}},[s("span",[a._v(a._s(t.status.account.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(t.status.account.created_at)))])])])])]):a._e()]),a._v(" "),s("td",{staticClass:"font-weight-bold align-middle"},[a._v(a._s(a.timeAgo(t.created_at)))]),a._v(" "),s("td",{staticClass:"align-middle"},[s("a",{staticClass:"btn btn-primary btn-sm",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),a.viewSpamReport(t)}}},[a._v("View")])])])})),0)]):s("div",[a._m(5)])]:s("div",{staticClass:"d-flex align-items-center justify-content-center",staticStyle:{"min-height":"300px"}},[s("b-spinner")],1)],2):a._e(),a._v(" "),2===this.tabIndex&&a.autospamLoaded&&a.autospam&&a.autospam.length?s("div",{staticClass:"d-flex align-items-center justify-content-center"},[s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!a.autospamPagination.prev},on:{click:function(t){return a.autospamPaginate("prev")}}},[a._v("\n Prev\n ")]),a._v(" "),s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!a.autospamPagination.next},on:{click:function(t){return a.autospamPaginate("next")}}},[a._v("\n Next\n ")])]):a._e(),a._v(" "),3===this.tabIndex?s("div",{staticClass:"table-responsive rounded"},[a.reports&&a.reports.length?s("table",{staticClass:"table table-dark"},[a._m(6),a._v(" "),s("tbody",a._l(a.reports,(function(t,e){return s("tr",{key:"remote-reports-".concat(t.id,"-").concat(e)},[s("td",{staticClass:"font-weight-bold text-monospace text-muted align-middle"},[s("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),a.showRemoteReport(t)}}},[a._v("\n "+a._s(t.id)+"\n ")])]),a._v(" "),s("td",{staticClass:"align-middle"},[s("p",{staticClass:"font-weight-bold mb-0"},[a._v(a._s(t.instance))])]),a._v(" "),s("td",{staticClass:"align-middle"},[t.reported&&t.reported.id?s("a",{staticClass:"text-white",attrs:{href:"/i/web/profile/".concat(t.reported.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:t.reported.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"14px"}},[a._v("@"+a._s(t.reported.username))]),a._v(" "),s("div",{staticClass:"d-flex small text-muted mb-0",staticStyle:{gap:"0.5rem"}},[s("span",[a._v(a._s(t.reported.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(t.reported.created_at)))])])])])]):a._e()]),a._v(" "),s("td",{staticClass:"align-middle"},[s("p",{staticClass:"small mb-0 text-wrap",staticStyle:{"max-width":"300px","word-break":"break-all"}},[a._v(a._s(t.message&&t.message.length>120?t.message.slice(0,120)+"...":t.message))])]),a._v(" "),s("td",{staticClass:"font-weight-bold align-middle"},[a._v(a._s(a.timeAgo(t.created_at)))]),a._v(" "),a._m(7,!0)])})),0)]):s("div",[s("div",{staticClass:"card card-body p-5"},[s("div",{staticClass:"d-flex justify-content-between align-items-center flex-column"},[a._m(8),a._v(" "),s("p",{staticClass:"lead"},[a._v(a._s(0===a.tabIndex?"No Active Reports Found!":"No Closed Reports Found!"))])])])])]):a._e(),a._v(" "),3===this.tabIndex&&a.remoteReportsLoaded&&a.reports&&a.reports.length?s("div",{staticClass:"d-flex align-items-center justify-content-center"},[s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!a.pagination.prev},on:{click:function(t){return a.remoteReportPaginate("prev")}}},[a._v("\n Prev\n ")]),a._v(" "),s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!a.pagination.next},on:{click:function(t){return a.remoteReportPaginate("next")}}},[a._v("\n Next\n ")])]):a._e()])]):s("div",{staticClass:"my-5 text-center"},[s("b-spinner")],1),a._v(" "),s("b-modal",{attrs:{title:0===a.tabIndex?"View Report":"Viewing Closed Report","ok-only":!0,"ok-title":"Close","ok-variant":"outline-primary"},model:{value:a.showReportModal,callback:function(t){a.showReportModal=t},expression:"showReportModal"}},[a.viewingReportLoading?s("div",{staticClass:"d-flex align-items-center justify-content-center"},[s("b-spinner")],1):[a.viewingReport?s("div",{staticClass:"list-group"},[s("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[s("div",{staticClass:"text-muted small"},[a._v("Type")]),a._v(" "),s("div",{staticClass:"font-weight-bold text-capitalize",domProps:{innerHTML:a._s(a.reportLabel(a.viewingReport))}})]),a._v(" "),a.viewingReport.admin_seen_at?s("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[s("div",{staticClass:"text-muted small"},[a._v("Report Closed")]),a._v(" "),s("div",{staticClass:"font-weight-bold text-capitalize"},[a._v(a._s(a.formatDate(a.viewingReport.admin_seen_at)))])]):a._e(),a._v(" "),a.viewingReport.reporter_message?s("div",{staticClass:"list-group-item d-flex flex-column",staticStyle:{gap:"10px"}},[s("div",{staticClass:"text-muted small"},[a._v("Message")]),a._v(" "),s("p",{staticClass:"mb-0 read-more",staticStyle:{"font-size":"12px","overflow-y":"hidden"}},[a._v(a._s(a.viewingReport.reporter_message))])]):a._e()]):a._e(),a._v(" "),s("div",{staticClass:"list-group list-group-horizontal mt-3"},[a.viewingReport&&a.viewingReport.reported?s("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"text-muted small font-weight-bold mt-n1"},[a._v("Reported Account")]),a._v(" "),a.viewingReport.reported&&a.viewingReport.reported.id?s("a",{staticClass:"text-primary",attrs:{href:"/i/web/profile/".concat(a.viewingReport.reported.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:a.viewingReport.reported.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0 text-break",class:[a.viewingReport.reported.is_admin?"text-danger":""],staticStyle:{"font-size":"12px","max-width":"140px","line-height":"16px"}},[a._v("@"+a._s(a.viewingReport.reported.acct))]),a._v(" "),s("div",{staticClass:"d-flex text-muted mb-0",staticStyle:{"font-size":"10px",gap:"0.5rem"}},[s("span",[a._v(a._s(a.viewingReport.reported.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(a.viewingReport.reported.created_at)))])])])])]):a._e()]):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.reporter?s("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"text-muted small font-weight-bold mt-n1"},[a._v("Reporter Account")]),a._v(" "),a.viewingReport.reporter&&null!==(t=a.viewingReport.reporter)&&void 0!==t&&t.id?s("a",{staticClass:"text-primary",attrs:{href:"/i/web/profile/".concat(null===(e=a.viewingReport.reporter)||void 0===e?void 0:e.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:a.viewingReport.reporter.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0 text-break",staticStyle:{"font-size":"12px","max-width":"140px","line-height":"16px"}},[a._v("@"+a._s(a.viewingReport.reporter.acct))]),a._v(" "),s("div",{staticClass:"d-flex text-muted mb-0",staticStyle:{"font-size":"10px",gap:"0.5rem"}},[s("span",[a._v(a._s(a.viewingReport.reporter.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(a.viewingReport.reporter.created_at)))])])])])]):a._e()]):a._e()]),a._v(" "),a.viewingReport&&"App\\Status"===a.viewingReport.object_type&&a.viewingReport.status?s("div",{staticClass:"list-group mt-3"},[a.viewingReport&&a.viewingReport.status&&a.viewingReport.status.media_attachments.length?s("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[s("div",[a._v("Reported Post")]),a._v(" "),s("a",{staticClass:"font-weight-bold",attrs:{href:a.viewingReport.status.url,target:"_blank"}},[a._v("View")])]),a._v(" "),"image"===a.viewingReport.status.media_attachments[0].type?s("img",{staticClass:"rounded",staticStyle:{"object-fit":"cover"},attrs:{src:a.viewingReport.status.media_attachments[0].url,height:"140",onerror:"this.src='/storage/no-preview.png';this.error=null;"}}):"video"===a.viewingReport.status.media_attachments[0].type?s("video",{attrs:{height:"140",controls:"",src:a.viewingReport.status.media_attachments[0].url,onerror:"this.src='/storage/no-preview.png';this.onerror=null;"}}):a._e()]):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.status?s("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[s("div",[a._v("Reported Post Caption")]),a._v(" "),s("a",{staticClass:"font-weight-bold",attrs:{href:a.viewingReport.status.url,target:"_blank"}},[a._v("View")])]),a._v(" "),s("p",{staticClass:"mb-0 read-more",staticStyle:{"font-size":"12px","overflow-y":"hidden"}},[a._v(a._s(a.viewingReport.status.content_text))])]):a._e()]):a.viewingReport&&"App\\Story"===a.viewingReport.object_type&&a.viewingReport.story?s("div",{staticClass:"list-group mt-3"},[a.viewingReport&&a.viewingReport.story?s("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[s("div",[a._v("Reported Story")]),a._v(" "),s("a",{staticClass:"font-weight-bold",attrs:{href:a.viewingReport.story.url,target:"_blank"}},[a._v("View")])]),a._v(" "),"photo"===a.viewingReport.story.type?s("img",{staticClass:"rounded",staticStyle:{"object-fit":"cover"},attrs:{src:a.viewingReport.story.media_src,height:"140",onerror:"this.src='/storage/no-preview.png';this.error=null;"}}):"video"===a.viewingReport.story.type?s("video",{attrs:{height:"140",controls:"",src:a.viewingReport.story.media_src,onerror:"this.src='/storage/no-preview.png';this.onerror=null;"}}):a._e()]):a._e()]):a._e(),a._v(" "),a.viewingReport&&null===a.viewingReport.admin_seen_at?s("div",{staticClass:"mt-4"},[a.viewingReport&&"App\\Profile"===a.viewingReport.object_type?s("div",[s("button",{staticClass:"btn btn-dark btn-block rounded-pill",on:{click:function(t){return a.handleAction("profile","ignore")}}},[a._v("Ignore Report")]),a._v(" "),a.viewingReport.reported&&a.viewingReport.reported.id&&!a.viewingReport.reported.is_admin?s("hr",{staticClass:"mt-3 mb-1"}):a._e(),a._v(" "),a.viewingReport.reported&&a.viewingReport.reported.id&&!a.viewingReport.reported.is_admin?s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","nsfw")}}},[a._v("\n Mark all Posts NSFW\n ")]),a._v(" "),s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","unlist")}}},[a._v("\n Unlist all Posts\n ")])]):a._e(),a._v(" "),a.viewingReport.reported&&a.viewingReport.reported.id&&!a.viewingReport.reported.is_admin?s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-2",on:{click:function(t){return a.handleAction("profile","delete")}}},[a._v("\n Delete Profile\n ")]):a._e()]):a.viewingReport&&"App\\Status"===a.viewingReport.object_type?s("div",[s("button",{staticClass:"btn btn-dark btn-block rounded-pill",on:{click:function(t){return a.handleAction("post","ignore")}}},[a._v("Ignore Report")]),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("hr",{staticClass:"mt-3 mb-1"}):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("post","nsfw")}}},[a._v("Mark Post NSFW")]),a._v(" "),"public"===a.viewingReport.status.visibility?s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("post","unlist")}}},[a._v("Unlist Post")]):"unlisted"===a.viewingReport.status.visibility?s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("post","private")}}},[a._v("Make Post Private")]):a._e()]):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","nsfw")}}},[a._v("Make all NSFW")]),a._v(" "),s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","unlist")}}},[a._v("Make all Unlisted")]),a._v(" "),s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","private")}}},[a._v("Make all Private")])]):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("div",[s("hr",{staticClass:"my-2"}),a._v(" "),s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("post","delete")}}},[a._v("Delete Post")]),a._v(" "),s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","delete")}}},[a._v("Delete Account")])])]):a._e()]):a.viewingReport&&"App\\Story"===a.viewingReport.object_type?s("div",[s("button",{staticClass:"btn btn-dark btn-block rounded-pill",on:{click:function(t){return a.handleAction("story","ignore")}}},[a._v("Ignore Report")]),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("hr",{staticClass:"mt-3 mb-1"}):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("div",[s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-danger btn-block rounded-pill mt-0",on:{click:function(t){return a.handleAction("story","delete")}}},[a._v("Delete Story")]),a._v(" "),s("button",{staticClass:"btn btn-outline-danger btn-block rounded-pill mt-0",on:{click:function(t){return a.handleAction("story","delete-all")}}},[a._v("Delete All Stories")])])]):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("div",[s("hr",{staticClass:"my-2"}),a._v(" "),s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-outline-danger btn-sm btn-block rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","delete")}}},[a._v("Delete Account")])])]):a._e()]):a._e()]):a._e()]],2),a._v(" "),s("b-modal",{attrs:{title:"Potential Spam Post Detected","ok-only":!0,"ok-title":"Close","ok-variant":"outline-primary"},model:{value:a.showSpamReportModal,callback:function(t){a.showSpamReportModal=t},expression:"showSpamReportModal"}},[a.viewingSpamReportLoading?s("div",{staticClass:"d-flex align-items-center justify-content-center"},[s("b-spinner")],1):[s("div",{staticClass:"list-group list-group-horizontal mt-3"},[a.viewingSpamReport&&a.viewingSpamReport.status&&a.viewingSpamReport.status.account?s("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"text-muted small font-weight-bold mt-n1"},[a._v("Reported Account")]),a._v(" "),a.viewingSpamReport.status.account&&a.viewingSpamReport.status.account.id?s("a",{staticClass:"text-primary",attrs:{href:"/i/web/profile/".concat(a.viewingSpamReport.status.account.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:a.viewingSpamReport.status.account.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0 text-break",class:[a.viewingSpamReport.status.account.is_admin?"text-danger":""],staticStyle:{"font-size":"12px","max-width":"140px","line-height":"16px"}},[a._v("@"+a._s(a.viewingSpamReport.status.account.acct))]),a._v(" "),s("div",{staticClass:"d-flex text-muted mb-0",staticStyle:{"font-size":"10px",gap:"0.5rem"}},[s("span",[a._v(a._s(a.viewingSpamReport.status.account.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(a.viewingSpamReport.status.account.created_at)))])])])])]):a._e()]):a._e()]),a._v(" "),a.viewingSpamReport&&a.viewingSpamReport.status?s("div",{staticClass:"list-group mt-3"},[a.viewingSpamReport&&a.viewingSpamReport.status&&a.viewingSpamReport.status.media_attachments.length?s("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[s("div",[a._v("Reported Post")]),a._v(" "),s("a",{staticClass:"font-weight-bold",attrs:{href:a.viewingSpamReport.status.url,target:"_blank"}},[a._v("View")])]),a._v(" "),"image"===a.viewingSpamReport.status.media_attachments[0].type?s("img",{staticClass:"rounded",staticStyle:{"object-fit":"cover"},attrs:{src:a.viewingSpamReport.status.media_attachments[0].url,height:"140",onerror:"this.src='/storage/no-preview.png';this.error=null;"}}):"video"===a.viewingSpamReport.status.media_attachments[0].type?s("video",{attrs:{height:"140",controls:"",src:a.viewingSpamReport.status.media_attachments[0].url,onerror:"this.src='/storage/no-preview.png';this.onerror=null;"}}):a._e()]):a._e(),a._v(" "),a.viewingSpamReport&&a.viewingSpamReport.status&&a.viewingSpamReport.status.content_text&&a.viewingSpamReport.status.content_text.length?s("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[s("div",[a._v("Reported Post Caption")]),a._v(" "),s("a",{staticClass:"font-weight-bold",attrs:{href:a.viewingSpamReport.status.url,target:"_blank"}},[a._v("View")])]),a._v(" "),s("p",{staticClass:"mb-0 read-more",staticStyle:{"font-size":"12px","overflow-y":"hidden"}},[a._v(a._s(a.viewingSpamReport.status.content_text))])]):a._e()]):a._e(),a._v(" "),s("div",{staticClass:"mt-4"},[s("div",[s("button",{staticClass:"btn btn-dark btn-block rounded-pill",attrs:{type:"button"},on:{click:function(t){return a.handleSpamAction("mark-read")}}},[a._v("\n Mark as Read\n ")]),a._v(" "),s("button",{staticClass:"btn btn-danger btn-block rounded-pill",attrs:{type:"button"},on:{click:function(t){return a.handleSpamAction("mark-not-spam")}}},[a._v("\n Mark As Not Spam\n ")]),a._v(" "),s("hr",{staticClass:"mt-3 mb-1"}),a._v(" "),s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-dark btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(t){return a.handleSpamAction("mark-all-read")}}},[a._v("\n Mark All As Read\n ")]),a._v(" "),s("button",{staticClass:"btn btn-dark btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(t){return a.handleSpamAction("mark-all-not-spam")}}},[a._v("\n Mark All As Not Spam\n ")])]),a._v(" "),s("div",[s("hr",{staticClass:"my-2"}),a._v(" "),s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(t){return a.handleSpamAction("delete-profile")}}},[a._v("\n Delete Account\n ")])])])])])]],2),a._v(" "),a.showRemoteReportModal?[s("admin-report-modal",{attrs:{open:a.showRemoteReportModal,model:a.remoteReportModalModel},on:{close:function(t){return a.handleCloseRemoteReportModal()},refresh:function(t){return a.refreshRemoteReports()}}})]:a._e()],2)},i=[function(){var t=this._self._c;return t("div",{staticClass:"row align-items-center py-4"},[t("div",{staticClass:"col-lg-6 col-7"},[t("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[this._v("Moderation")])])])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("ID")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Report")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Reported Account")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Reported By")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Created")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("View Report")])])])},function(){var t=this._self._c;return t("p",{staticClass:"mt-3 mb-0"},[t("i",{staticClass:"far fa-check-circle fa-5x text-success"})])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("ID")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Report")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Reported Account")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Created")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("View Report")])])])},function(){var t=this._self._c;return t("td",{staticClass:"align-middle"},[t("p",{staticClass:"text-capitalize font-weight-bold mb-0"},[this._v("Spam Post")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body p-5"},[e("div",{staticClass:"d-flex justify-content-between align-items-center flex-column"},[e("p",{staticClass:"mt-3 mb-0"},[e("i",{staticClass:"far fa-check-circle fa-5x text-success"})]),t._v(" "),e("p",{staticClass:"lead"},[t._v("No Spam Reports Found!")])])])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("ID")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Instance")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Reported Account")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Comment")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Created")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("View Report")])])])},function(){var t=this._self._c;return t("td",{staticClass:"align-middle"},[t("a",{staticClass:"btn btn-primary btn-sm",attrs:{href:"#"}},[this._v("View")])])},function(){var t=this._self._c;return t("p",{staticClass:"mt-3 mb-0"},[t("i",{staticClass:"far fa-check-circle fa-5x text-success"})])}]},79535:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t,e=this,a=e._self._c;return e.loaded?a("div",[e._m(0),e._v(" "),a("div",{staticClass:"container"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-3"},[a("div",{staticClass:"nav-wrapper"},[a("div",{staticClass:"nav flex-column nav-pills",attrs:{id:"tabs-icons-text",role:"tablist","aria-orientation":"vertical"}},e._l(e.tabs,(function(t){return a("div",{staticClass:"nav-item"},[a("a",{staticClass:"nav-link mb-sm-3",class:{active:e.tabIndex===t.id},attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),e.toggleTab(t.id)}}},[a("i",{class:t.icon}),e._v(" "),a("span",{staticClass:"ml-2"},[e._v(e._s(t.title))])])])})),0)])]),e._v(" "),a("div",{staticClass:"col-12 col-md-9"},[a("div",{staticClass:"card shadow mt-3"},[a("div",{staticClass:"card-body"},[a("div",{staticClass:"tab-content"},[1===e.tabIndex?a("div",{staticClass:"tab-pane fade show active"},[a("tab-header",{attrs:{title:"Settings",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("overview")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body",staticStyle:{padding:"1.1rem 1.6rem"}},[a("div",{staticClass:"form-group mb-0"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[e._v("Registration Status")]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.features.registration_status,expression:"features.registration_status"}],staticClass:"form-control form-control-muted",on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));e.$set(e.features,"registration_status",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"open"}},[e._v("Open - Anyone can register")]),e._v(" "),a("option",{attrs:{value:"filtered"}},[e._v("Filtered - Anyone can apply (Curated Onboarding)")]),e._v(" "),a("option",{attrs:{value:"closed"}},[e._v("Closed - Nobody can register")])])])]),e._v(" "),a("checkbox",{attrs:{name:"Cloud Storage",value:e.features.cloud_storage,description:"Store photos and videos on S3 compatible object storage providers."},on:{change:function(t){return e.handleChange(t,"features","cloud_storage")}}}),e._v(" "),a("checkbox",{attrs:{name:"ActivityPub",value:e.features.activitypub_enabled,description:"ActivityPub federation, compatible with Pixelfed, Mastodon and other projects."},on:{change:function(t){return e.handleChange(t,"features","activitypub_enabled")}}}),e._v(" "),a("checkbox",{attrs:{name:"Account Migration",value:e.features.account_migration,description:"Allow local accounts to migrate to other local or remote accounts."},on:{change:function(t){return e.handleChange(t,"features","account_migration")}}})],1),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("checkbox",{attrs:{name:"Mobile APIs",value:e.features.mobile_apis,description:"Enable apis required for official mobile app support and 3rd party apps."},on:{change:function(t){return e.handleChange(t,"features","mobile_apis")}}}),e._v(" "),a("checkbox",{attrs:{name:"Stories",value:e.features.stories,description:"Allow users to share federated ephemeral Stories that disappear after 24 hours."},on:{change:function(t){return e.handleChange(t,"features","stories")}}}),e._v(" "),a("checkbox",{attrs:{name:"Instagram Import",value:e.features.instagram_import,description:"Enable users to use the experimental Instagram Import support."},on:{change:function(t){return e.handleChange(t,"features","instagram_import")}}}),e._v(" "),a("checkbox",{attrs:{name:"Spam detection",value:e.features.autospam_enabled,description:"Detect and remove spam from timelines using the automated Autospam detection."},on:{change:function(t){return e.handleChange(t,"features","autospam_enabled")}}})],1)])],1):"landing"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Landing",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("landing")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body",staticStyle:{padding:"1.1rem 1.6rem"}},[a("div",{staticClass:"form-group mb-0"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[e._v("Admin Account")]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.landing.current_admin,expression:"landing.current_admin"}],staticClass:"form-control form-control-muted",on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));e.$set(e.landing,"current_admin",t.target.multiple?a:a[0])}}},[a("option",{attrs:{disabled:"",value:"0"}},[e._v("Select a designated admin")]),e._v(" "),e._l(e.landing.admins,(function(t,s){return a("option",{key:"pfc-"+t+s,domProps:{value:t.profile_id}},[e._v(e._s(t.username))])}))],2)])]),e._v(" "),a("checkbox",{attrs:{name:"Show Directory",value:e.landing.show_directory,description:"Show the account directory on the landing page for guest users."},on:{change:function(t){return e.handleChange(t,"landing","show_directory")}}})],1),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("checkbox",{attrs:{name:"Show Explore Feed",value:e.landing.show_explore,description:"Show the explore feed of popular posts on the landing page for guest users."},on:{change:function(t){return e.handleChange(t,"landing","show_explore")}}})],1)])],1):"branding"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Branding",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("branding")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-8"},[a("div",{staticClass:"card shadow-none border card-body",staticStyle:{padding:"1.1rem 1.6rem"}},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[e._v("Server Name")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.branding.name,expression:"branding.name"}],staticClass:"form-control form-control-muted",attrs:{placeholder:"Pixelfed"},domProps:{value:e.branding.name},on:{input:function(t){t.target.composing||e.$set(e.branding,"name",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n The instance name used in titles, metadata and apis.\n ")])])]),e._v(" "),a("div",{staticClass:"col-12 col-md-8"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[e._v("Short Description")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.branding.short_description,expression:"branding.short_description"}],staticClass:"form-control form-control-muted",attrs:{placeholder:"Pixelfed",rows:"4"},domProps:{value:e.branding.short_description},on:{input:function(t){t.target.composing||e.$set(e.branding,"short_description",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Short description of instance used on various pages and apis.\n ")])]),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[e._v("Long Description")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.branding.long_description,expression:"branding.long_description"}],staticClass:"form-control form-control-muted",attrs:{placeholder:"Pixelfed",rows:"8"},domProps:{value:e.branding.long_description},on:{input:function(t){t.target.composing||e.$set(e.branding,"long_description",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Longer description of instance used on about page.\n ")])])])])],1):"media"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Media",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("media")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Max Media Size")]),e._v(" "),a("div",{staticClass:"input-group mb-0"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.media.max_photo_size,expression:"media.max_photo_size"}],staticClass:"form-control",attrs:{type:"text",placeholder:"15000","aria-label":"Max media size","aria-describedby":"maxMediaSize"},domProps:{value:e.media.max_photo_size},on:{input:function(t){t.target.composing||e.$set(e.media,"max_photo_size",t.target.value)}}}),e._v(" "),a("div",{staticClass:"input-group-append"},[a("span",{staticClass:"input-group-text",attrs:{id:"maxMediaSize"}},[e._v("= "+e._s(e.maxMediaSizeToMb))])])])]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Maximum file upload size in KB\n ")])]),e._v(" "),a("checkbox",{attrs:{name:"Optimize Images",value:e.media.optimize_image,description:"Enable to optimize images and generate thumbnails for local image media uploads."},on:{change:function(t){return e.handleChange(t,"media","optimize_image")}}}),e._v(" "),a("checkbox",{attrs:{name:"Optimize Video",value:e.media.optimize_video,description:"Enable to generate video thumbnails for local video media uploads."},on:{change:function(t){return e.handleChange(t,"media","optimize_video")}}}),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Media Types")]),e._v(" "),a("div",{staticClass:"list-group"},e._l(e.mediaTypes,(function(t,s){return a("div",{staticClass:"list-group-item py-2"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.mediaTypes[s],expression:"mediaTypes[key]"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:s,id:s},domProps:{checked:Array.isArray(e.mediaTypes[s])?e._i(e.mediaTypes[s],null)>-1:e.mediaTypes[s]},on:{change:function(t){var a=e.mediaTypes[s],i=t.target,n=!!i.checked;if(Array.isArray(a)){var o=e._i(a,null);i.checked?o<0&&e.$set(e.mediaTypes,s,a.concat([null])):o>-1&&e.$set(e.mediaTypes,s,a.slice(0,o).concat(a.slice(o+1)))}else e.$set(e.mediaTypes,s,n)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:s}},[e._v(e._s(s))])])])})),0)]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Supported mime types for media uploads\n ")])])],1),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Photo Album Limit")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.media.max_album_length,expression:"media.max_album_length"}],staticClass:"form-control",attrs:{type:"number",min:"1",max:"20",name:"max_album_length"},domProps:{value:e.media.max_album_length},on:{input:function(t){t.target.composing||e.$set(e.media,"max_album_length",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n The maximum number of photos or videos per album\n ")])]),e._v(" "),a("transition",{attrs:{name:"fade"}},[e.media.optimize_image?a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Image Quality")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.media.image_quality,expression:"media.image_quality"}],staticClass:"form-control",attrs:{type:"number",min:"20",max:"100",name:"image_quality"},domProps:{value:e.media.image_quality},on:{input:function(t){t.target.composing||e.$set(e.media,"image_quality",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Image optimization quality from 0-100%.\n ")])]):e._e()])],1)])],1):"platform"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Platform",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("platform")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("checkbox",{attrs:{name:"Allow Profile Embeds",value:e.platform.allow_profile_embeds,description:"Allow anyone to embed public profiles on other websites."},on:{change:function(t){return e.handleChange(t,"platform","allow_profile_embeds")}}}),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-0"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.allow_app_registration,expression:"platform.allow_app_registration"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"allow_app_registrations",id:"platform1",disabled:"open"!==e.features.registration_status},domProps:{checked:Array.isArray(e.platform.allow_app_registration)?e._i(e.platform.allow_app_registration,null)>-1:e.platform.allow_app_registration},on:{change:function(t){var a=e.platform.allow_app_registration,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&e.$set(e.platform,"allow_app_registration",a.concat([null])):n>-1&&e.$set(e.platform,"allow_app_registration",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.platform,"allow_app_registration",i)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"platform1"}},[e._v("Allow App Registrations")])]),e._v(" "),"open"!==e.features.registration_status?a("p",{staticClass:"mb-0 small text-muted"},[e._v("Requires open registration to be enabled.")]):a("p",{staticClass:"mb-0 small"},[e._v("Allow users to register via the official Pixelfed mobile application.")])])]),e._v(" "),a("checkbox",{attrs:{name:"Custom Emoji",value:e.platform.custom_emoji_enabled,description:"Enable federated custom emoji that is compatible with Mastodon, Pleroma and others."},on:{change:function(t){return e.handleChange(t,"platform","custom_emoji_enabled")}}}),e._v(" "),"open"===e.features.registration_status&&e.features.allow_app_registration?[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("app_registration_rate_limit_attempts")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.app_registration_rate_limit_attempts,expression:"platform.app_registration_rate_limit_attempts"}],staticClass:"form-control",attrs:{type:"number",name:"app_registration_rate_limit_attempts"},domProps:{value:e.platform.app_registration_rate_limit_attempts},on:{input:function(t){t.target.composing||e.$set(e.platform,"app_registration_rate_limit_attempts",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n app_registration_rate_limit_attempts.\n ")])]),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("app_registration_rate_limit_decay")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.app_registration_rate_limit_decay,expression:"platform.app_registration_rate_limit_decay"}],staticClass:"form-control",attrs:{type:"number",name:"app_registration_rate_limit_decay"},domProps:{value:e.platform.app_registration_rate_limit_decay},on:{input:function(t){t.target.composing||e.$set(e.platform,"app_registration_rate_limit_decay",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n app_registration_rate_limit_decay\n ")])])]:e._e()],2),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("checkbox",{attrs:{name:"Allow Post Embeds",value:e.platform.allow_post_embeds,description:"Allow anyone to embed public posts on other websites."},on:{change:function(t){return e.handleChange(t,"platform","allow_post_embeds")}}}),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.captcha_enabled,expression:"platform.captcha_enabled"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"hcaps",id:"hcp"},domProps:{checked:Array.isArray(e.platform.captcha_enabled)?e._i(e.platform.captcha_enabled,null)>-1:e.platform.captcha_enabled},on:{change:function(t){var a=e.platform.captcha_enabled,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&e.$set(e.platform,"captcha_enabled",a.concat([null])):n>-1&&e.$set(e.platform,"captcha_enabled",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.platform,"captcha_enabled",i)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"hcp"}},[e._v("Enable hCaptcha")])])]),e._v(" "),e.platform.captcha_enabled?[a("hr",{staticClass:"my-2"}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"form-group my-1"},[a("label",{staticClass:"text-muted small"},[e._v("hCaptcha Secret")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.captcha_secret,expression:"platform.captcha_secret"}],staticClass:"form-control",attrs:{type:"text",name:"captcha_secret"},domProps:{value:e.platform.captcha_secret},on:{input:function(t){t.target.composing||e.$set(e.platform,"captcha_secret",t.target.value)}}})])]),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"form-group my-1"},[a("label",{staticClass:"text-muted small"},[e._v("hCaptcha Sitekey")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.captcha_sitekey,expression:"platform.captcha_sitekey"}],staticClass:"form-control",attrs:{type:"text",name:"captcha_sitekey"},domProps:{value:e.platform.captcha_sitekey},on:{input:function(t){t.target.composing||e.$set(e.platform,"captcha_sitekey",t.target.value)}}})])])]),e._v(" "),a("hr",{staticClass:"mt-2 mb-4"}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-lg-6"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.captcha_on_login,expression:"platform.captcha_on_login"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"captcha_on_login",id:"captcha_on_login"},domProps:{checked:Array.isArray(e.platform.captcha_on_login)?e._i(e.platform.captcha_on_login,null)>-1:e.platform.captcha_on_login},on:{change:function(t){var a=e.platform.captcha_on_login,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&e.$set(e.platform,"captcha_on_login",a.concat([null])):n>-1&&e.$set(e.platform,"captcha_on_login",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.platform,"captcha_on_login",i)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"captcha_on_login"}},[e._v("Login Captcha")])])]),e._v(" "),a("div",{staticClass:"col-12 col-lg-6"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.captcha_on_register,expression:"platform.captcha_on_register"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"captcha_on_register",id:"captcha_on_register"},domProps:{checked:Array.isArray(e.platform.captcha_on_register)?e._i(e.platform.captcha_on_register,null)>-1:e.platform.captcha_on_register},on:{change:function(t){var a=e.platform.captcha_on_register,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&e.$set(e.platform,"captcha_on_register",a.concat([null])):n>-1&&e.$set(e.platform,"captcha_on_register",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.platform,"captcha_on_register",i)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"captcha_on_register"}},[e._v("Register Captcha")])])])]),e._v(" "),a("hr",{staticClass:"mt-4 mb-2"})]:e._e(),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Enable hCaptcha on login and register pages\n ")])],2),e._v(" "),"open"===e.features.registration_status&&e.features.allow_app_registration?[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("app_registration_confirm_rate_limit_attempts")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.app_registration_confirm_rate_limit_attempts,expression:"platform.app_registration_confirm_rate_limit_attempts"}],staticClass:"form-control",attrs:{type:"number",name:"app_registration_confirm_rate_limit_attempts"},domProps:{value:e.platform.app_registration_confirm_rate_limit_attempts},on:{input:function(t){t.target.composing||e.$set(e.platform,"app_registration_confirm_rate_limit_attempts",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n app_registration_confirm_rate_limit_attempts.\n ")])]),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("app_registration_confirm_rate_limit_decay")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.app_registration_confirm_rate_limit_decay,expression:"platform.app_registration_confirm_rate_limit_decay"}],staticClass:"form-control",attrs:{type:"number",name:"app_registration_confirm_rate_limit_decay"},domProps:{value:e.platform.app_registration_confirm_rate_limit_decay},on:{input:function(t){t.target.composing||e.$set(e.platform,"app_registration_confirm_rate_limit_decay",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n app_registration_confirm_rate_limit_decay.\n ")])])]:e._e()],2)])],1):"posts"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Posts",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("posts")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Max Caption Length")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.posts.max_caption_length,expression:"posts.max_caption_length"}],staticClass:"form-control",attrs:{type:"number",min:"1",max:"10000",name:"max_caption_limit"},domProps:{value:e.posts.max_caption_length},on:{input:function(t){t.target.composing||e.$set(e.posts,"max_caption_length",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n The maximum character count of post captions. We recommend a limit between 500-2000.\n ")])])]),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Max Alttext Length")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.posts.max_altext_length,expression:"posts.max_altext_length"}],staticClass:"form-control",attrs:{type:"number",min:"1",max:"10000",name:"max_altext_length"},domProps:{value:e.posts.max_altext_length},on:{input:function(t){t.target.composing||e.$set(e.posts,"max_altext_length",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n The maximum character count of post media alttext captions. We recommend a limit between 2000-10000.\n ")])])])])],1):"rules"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Rules",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("rules")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 mb-3"},[e.hasDuplicateRulesComputed?a("div",{staticClass:"alert alert-danger"},[a("p",{staticClass:"font-weight-bold mb-0"},[e._v("Duplicate rules detected, you should fix this!")])]):e._e(),e._v(" "),a("div",{staticClass:"position-relative"},[a("div",{staticClass:"card shadow-none border"},[a("div",{staticClass:"card-header py-2 bg-primary text-white font-weight-bold text-center"},[e._v("Active Rules")]),e._v(" "),a("div",{staticClass:"list-group list-group-flush"},[e._l(e.rulesComputed,(function(t,s){return a("div",{staticClass:"list-group-item"},[a("div",{staticClass:"d-flex justify-content-between align-items-start"},[a("div",{staticClass:"d-flex gap-1 align-items-start"},[a("div",{staticClass:"rule-badge"},[a("div",{staticClass:"rule-badge-inner"},[e._v(e._s(s+1))])]),e._v(" "),a("admin-read-more",{key:t,staticClass:"text-dark rule-text",attrs:{content:t,maxLength:140,initialLimit:30,fontSize:"13"}})],1),e._v(" "),a("button",{staticClass:"btn btn-link btn-sm",attrs:{disabled:e.isDeletingRule},on:{click:function(a){return a.preventDefault(),e.handleDeleteRule(t,s,a)}}},[a("i",{staticClass:"fas fa-trash-alt text-danger"})])])])})),e._v(" "),e.rules&&e.rules.length?e._e():a("div",{staticClass:"list-group-item"},[a("p",{staticClass:"text-center mb-0"},[e._v("No rules set!")])])],2)]),e._v(" "),!e.showAllRules&&e.rules.length>2?a("div",{staticClass:"d-flex justify-content-center",staticStyle:{position:"absolute",width:"100%","padding-top":"10rem",bottom:"0",background:"linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255, 1))"}},[a("button",{staticClass:"btn btn-dark font-weight-bold rounded-pill btn-block",on:{click:function(t){t.preventDefault(),e.showAllRules=!0}}},[e._v("Show all rules")])]):e._e()])]),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Add New Rule")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.newRule,expression:"newRule"}],staticClass:"form-control",attrs:{type:"text",name:"new_rule",rows:"5",minlength:"5",maxlength:"1000",placeholder:"Add your new rule here...",disabled:e.isSubmittingNewRule||e.isDeletingRule},domProps:{value:e.newRule},on:{input:function(t){t.target.composing||(e.newRule=t.target.value)}}})]),e._v(" "),a("div",{staticClass:"d-flex justify-content-between align-items-center"},[a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Add a new rule\n ")]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n "+e._s(e.newRule&&e.newRule.length?e.newRule.length:0)+"/1000\n ")])]),e._v(" "),a("hr",{staticClass:"my-2"}),e._v(" "),a("p",{staticClass:"mb-0"},[a("button",{staticClass:"btn btn-primary btn-sm btn-block font-weight-bold rounded-pill",attrs:{disabled:!e.newRule||!e.newRule.length||e.isSubmittingNewRule||e.isDeletingRule},on:{click:function(t){return t.preventDefault(),e.handleAddRule.apply(null,arguments)}}},[e._v("Add Rule")])])]),e._v(" "),e.rules&&e.rules.length?a("button",{staticClass:"btn btn-outline-danger rounded-pill btn-block btn-sm",on:{click:function(t){return t.preventDefault(),e.handleDeleteAllRules.apply(null,arguments)}}},[e._v("Delete all rules")]):e._e()]),e._v(" "),e.suggestedRulesComputed&&e.suggestedRulesComputed.length?a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"border-bottom pb-2 mb-3 d-flex justify-content-between align-items-center"},[a("p",{staticClass:"font-weight-bold mb-0"},[e._v("Suggested Rules")]),e._v(" "),e.rules.length?e._e():a("a",{staticClass:"font-weight-bold small",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.importAllDefaultRules.apply(null,arguments)}}},[e._v("Import All")])]),e._v(" "),a("div",{staticClass:"list-group"},e._l(e.suggestedRulesComputed,(function(t){return a("a",{staticClass:"list-group-item small",attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),e.addSuggestedRule(t,a)}}},[e._v(e._s(t))])})),0)]):e._e()])],1):"storage"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Storage",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("storage")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body",staticStyle:{padding:"1.1rem 1.6rem"}},[a("div",{staticClass:"form-group mb-0"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[e._v("Primary Storage Disk")]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.storage.primary_disk,expression:"storage.primary_disk"}],staticClass:"form-control form-control-muted",on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));e.$set(e.storage,"primary_disk",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"local"}},[e._v("Local")]),e._v(" "),a("option",{attrs:{value:"cloud"}},[e._v("Cloud/S3")])])]),e._v(" "),a("p",{staticClass:"help-text small text-muted mt-2 mb-0"},[e._v("\n The storage disk where avatars and media uploads are stored.\n ")])])]),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card border"},[e._m(1),e._v(" "),e.showDiskConfig?a("div",{staticClass:"card-body"},[a("div",{staticClass:"form-group mb-4 d-flex align-items-center gap-1"},[a("label",{staticClass:"font-weight-bold mb-0",attrs:{for:"form-summary"}},[e._v("Disk")]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.storage.disk_config.driver,expression:"storage.disk_config.driver"}],staticClass:"form-control form-control-muted mb-0",on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));e.$set(e.storage.disk_config,"driver",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"s3"}},[e._v("S3")]),e._v(" "),a("option",{attrs:{value:"spaces"}},[e._v("DigitalOcean Spaces")])])]),e._v(" "),a("form-input",{attrs:{name:"Key",value:e.storage.disk_config.key,description:"",isCard:!1,isInline:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","key")}}}),e._v(" "),a("form-input",{attrs:{name:"Secret",value:e.storage.disk_config.secret,description:"",isCard:!1,isInline:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","secret")}}}),e._v(" "),a("form-input",{attrs:{name:"Region",value:e.storage.disk_config.region,description:"",isCard:!1,isInline:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","region")}}}),e._v(" "),a("form-input",{attrs:{name:"Bucket",value:e.storage.disk_config.bucket,description:"",isCard:!1,isInline:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","bucket")}}}),e._v(" "),a("form-input",{attrs:{name:"Endpoint",value:e.storage.disk_config.endpoint,description:"",isCard:!1,isInline:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","endpoint")}}}),e._v(" "),a("form-input",{attrs:{name:"Visibility",value:e.storage.disk_config.visibility,description:"",isCard:!1,isInline:!0,isDisabled:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","visibility")}}}),e._v(" "),a("form-input",{attrs:{name:"Url",value:e.storage.disk_config.url,description:"",isCard:!1,isInline:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","url")}}})],1):a("div",{staticClass:"card-body"},[a("p",{staticClass:"text-center mb-0"},[a("a",{staticClass:"btn btn-primary bg-gradient-primary shadow-lg rounded-pill",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.showDiskConfig=!0}}},[e._v("\n View/Edit\n ")])])])])])])],1):"users"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Users",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("users")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("checkbox",{attrs:{name:"Require Email Verifications",value:e.users.require_email_verification,description:"Require users to verify their email address is valid before they can use the account."},on:{change:function(t){return e.handleChange(t,"users","require_email_verification")}}}),e._v(" "),a("form-input",{attrs:{name:"Max User Blocks",value:e.users.max_user_blocks.toString(),description:"The max number of account blocks per user."},on:{change:function(t){return e.handleChange(t,"users","max_user_blocks")}}}),e._v(" "),a("form-input",{attrs:{name:"Max User Mutes",value:e.users.max_user_mutes.toString(),description:"The max number of account mutes per user."},on:{change:function(t){return e.handleChange(t,"users","max_user_mutes")}}}),e._v(" "),a("form-input",{attrs:{name:"Max User Domain Blocks",value:e.users.max_domain_blocks.toString(),description:"The max number of domain blocks per user."},on:{change:function(t){return e.handleChange(t,"users","max_domain_blocks")}}})],1),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-0"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.users.enforce_account_limit,expression:"users.enforce_account_limit"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"enforce_account_limit",id:"users2"},domProps:{checked:Array.isArray(e.users.enforce_account_limit)?e._i(e.users.enforce_account_limit,null)>-1:e.users.enforce_account_limit},on:{change:function(t){var a=e.users.enforce_account_limit,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&e.$set(e.users,"enforce_account_limit",a.concat([null])):n>-1&&e.$set(e.users,"enforce_account_limit",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.users,"enforce_account_limit",i)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"users2"}},[e._v("Enforce Account Limit")])]),e._v(" "),a("p",{staticClass:"mb-0 small"},[e._v("Set a storage limit per user account for all uploaded media (photo + video).")])]),e._v(" "),a("transition",{attrs:{name:"fade"}},[e.users.enforce_account_limit?a("div",[a("hr",{staticClass:"my-2"}),e._v(" "),a("div",{staticClass:"form-group mb-1"},[a("div",{staticClass:"input-group mb-0"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.users.max_account_size,expression:"users.max_account_size"}],staticClass:"form-control",attrs:{type:"text",placeholder:"15000","aria-label":"Max account size","aria-describedby":"maxMediaSize"},domProps:{value:e.users.max_account_size},on:{input:function(t){t.target.composing||e.$set(e.users,"max_account_size",t.target.value)}}}),e._v(" "),a("div",{staticClass:"input-group-append"},[a("span",{staticClass:"input-group-text"},[e._v("= "+e._s(e.maxAccountSizeToMb))])])])]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Maximum file storage limit per user account.\n ")])]):e._e()])],1),e._v(" "),a("div",{staticClass:"card shadow-none border"},[a("div",{staticClass:"card-body"},[a("div",{staticClass:"form-group mb-0"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.users.admin_autofollow,expression:"users.admin_autofollow"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"admin_autofollow",id:"users4"},domProps:{checked:Array.isArray(e.users.admin_autofollow)?e._i(e.users.admin_autofollow,null)>-1:e.users.admin_autofollow},on:{change:function(t){var a=e.users.admin_autofollow,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&e.$set(e.users,"admin_autofollow",a.concat([null])):n>-1&&e.$set(e.users,"admin_autofollow",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.users,"admin_autofollow",i)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"users4"}},[e._v("Autofollow Accounts")])]),e._v(" "),a("p",{staticClass:"mb-0 small"},[e._v("Force new accounts to follow accounts you specify below")])])]),e._v(" "),a("transition",{attrs:{name:"fade"}},[e.users.admin_autofollow?a("div",{staticClass:"list-group list-group-flush"},[null!==(t=e.users.admin_autofollow_accounts)&&void 0!==t&&t.length?a("div",e._l(e.users.admin_autofollow_accounts,(function(t){return a("div",{staticClass:"list-group-item"},[a("div",{staticClass:"d-flex justify-content-between align-items-center"},[a("p",{staticClass:"font-weight-bold mb-0"},[e._v("@"+e._s(t))]),e._v(" "),a("button",{staticClass:"btn btn-link p-0",on:{click:function(a){return a.preventDefault(),e.removeAutofollow(t,a)}}},[a("i",{staticClass:"fas fa-trash-alt text-danger"})])])])})),0):a("div",{staticClass:"list-group-item"},[a("p",{staticClass:"text-center mb-0"},[e._v("No autofollow accounts active.")])])]):e._e()]),e._v(" "),a("transition",{attrs:{name:"fade"}},[e.users.admin_autofollow&&e.users.admin_autofollow_accounts&&e.users.admin_autofollow_accounts.length<5?a("div",{staticClass:"card-footer"},[a("button",{staticClass:"btn btn-primary btn-block rounded-pill",on:{click:function(t){return t.preventDefault(),e.addAutofollow.apply(null,arguments)}}},[e._v("Add Autofollow Account")])]):e._e()])],1)])])],1):e._e()])])])])])])]):a("div",[e._m(2)])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"header bg-primary pb-2 mt-n4"},[e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"header-body"},[e("div",{staticClass:"row align-items-center py-4"},[e("div",{staticClass:"col-lg-6 col-7"},[e("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[t._v("Settings")]),t._v(" "),e("p",{staticClass:"h3 text-white font-weight-light"},[t._v("Manage your server settings")])])])])])])},function(){var t=this._self._c;return t("div",{staticClass:"card-header bg-gradient-primary"},[t("p",{staticClass:"text-center mb-0 text-white font-weight-bold"},[this._v("Cloud Disk Config")])])},function(){var t=this._self._c;return t("div",{staticClass:"container my-5 py-5 text-center"},[t("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])])}]},64441:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[t.status.media_attachments&&t.status.media_attachments.length?e("div",{staticClass:"list-group-item",staticStyle:{gap:"1rem",overflow:"hidden"}},[e("div",{staticClass:"text-center text-muted small font-weight-bold mb-3"},[t._v("Reported Post Media")]),t._v(" "),t.status.media_attachments&&t.status.media_attachments.length?e("div",{staticClass:"d-flex flex-grow-1",staticStyle:{gap:"1rem","overflow-x":"auto"}},[t._l(t.status.media_attachments,(function(a){return["image"===a.type?e("img",{staticClass:"rounded",staticStyle:{"object-fit":"cover"},attrs:{src:a.url,width:"70",height:"70",onerror:"this.src='/storage/no-preview.png';this.error=null;"},on:{click:t.toggleLightbox}}):"video"===a.type?e("video",{staticClass:"rounded",attrs:{width:"140",height:"90",playsinline:""},on:{click:function(e){return e.preventDefault(),t.toggleVideoLightbox(e,a.url)}}},[e("source",{attrs:{src:a.url,type:a.mime}})]):t._e()]}))],2):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item d-flex flex-row flex-grow-1",staticStyle:{gap:"1rem"}},[e("div",{staticClass:"flex-grow-1"},[t.status&&t.status.in_reply_to_id&&t.status.parent&&t.status.parent.account?e("div",{staticClass:"mb-3"},[t.showInReplyTo?[e("div",{staticClass:"mt-n1 text-center text-muted small font-weight-bold mb-1"},[t._v("Reply to")]),t._v(" "),e("div",{staticClass:"media",staticStyle:{gap:"1rem"}},[e("img",{staticClass:"rounded-lg",attrs:{src:t.status.parent.account.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),e("div",{staticClass:"d-flex flex-column"},[e("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"11px"}},[e("a",{attrs:{href:"/i/web/profile/".concat(t.status.parent.account.id),target:"_blank"}},[t._v(t._s(t.status.parent.account.acct))])]),t._v(" "),e("admin-read-more",{attrs:{content:t.status.parent.content_text}}),t._v(" "),e("p",{staticClass:"mb-1"},[e("a",{staticClass:"text-muted",staticStyle:{"font-size":"11px"},attrs:{href:"/i/web/post/".concat(t.status.parent.id),target:"_blank"}},[e("i",{staticClass:"far fa-link mr-1"}),t._v(" "+t._s(t.formatDate(t.status.parent.created_at))+"\n ")])])],1)]),t._v(" "),e("hr",{staticClass:"my-1"})]:e("a",{staticClass:"btn btn-dark font-weight-bold btn-block btn-sm",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showInReplyTo=!0}}},[t._v("Show parent post")])],2):t._e(),t._v(" "),e("div",[e("div",{staticClass:"mt-n1 text-center text-muted small font-weight-bold mb-1"},[t._v("Reported Post")]),t._v(" "),e("div",{staticClass:"media",staticStyle:{gap:"1rem"}},[e("img",{staticClass:"rounded-lg",attrs:{src:t.status.account.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),e("div",{staticClass:"d-flex flex-column"},[e("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"11px"}},[e("a",{attrs:{href:"/i/web/profile/".concat(t.status.account.id),target:"_blank"}},[t._v(t._s(t.status.account.acct))])]),t._v(" "),t.status&&t.status.content_text&&t.status.content_text.length?[e("admin-read-more",{attrs:{content:t.status.content_text}})]:[e("admin-read-more",{staticClass:"font-weight-bold text-muted",attrs:{content:"EMPTY CAPTION"}})],t._v(" "),e("p",{staticClass:"mb-0"},[e("a",{staticClass:"text-muted",staticStyle:{"font-size":"11px"},attrs:{href:"/i/web/post/".concat(t.status.id),target:"_blank"}},[e("i",{staticClass:"far fa-link mr-1"}),t._v(" "+t._s(t.formatDate(t.status.created_at))+"\n ")])])],2)])])])])])},i=[]},38391:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"mb-0",style:{"font-size":"".concat(t.fontSize,"px")}},[t._v(t._s(t.contentText))]),t._v(" "),e("p",{staticClass:"mb-0"},[t.canStepExpand||t.canExpand&&!t.expanded?e("a",{staticClass:"font-weight-bold small",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.expand()}}},[t._v("Read more")]):t._e()])])},i=[]},24664:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("b-modal",{attrs:{title:"Remote Report","ok-only":!0,"ok-title":"Close",lazy:!0,scrollable:!0,"ok-variant":"outline-primary"},on:{hide:function(e){return t.$emit("close")}},model:{value:t.isOpen,callback:function(e){t.isOpen=e},expression:"isOpen"}},[t.isLoading?e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("b-spinner")],1):[e("div",{staticClass:"list-group"},[e("div",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[e("div",{staticClass:"text-muted small font-weight-bold"},[t._v("Instance")]),t._v(" "),e("div",{staticClass:"font-weight-bold"},[t._v(t._s(t.model.instance))])]),t._v(" "),t.model.message&&t.model.message.length?e("div",{staticClass:"list-group-item d-flex justify-content-between align-items-center flex-column gap-1"},[e("div",{staticClass:"text-muted small font-weight-bold mb-2"},[t._v("Message")]),t._v(" "),e("div",{staticClass:"text-wrap w-100",staticStyle:{"word-break":"break-all","font-size":"12.5px"}},[e("admin-read-more",{attrs:{content:t.model.message,"font-size":"11",step:!0,"initial-limit":100,stepLimit:1e3}})],1)]):t._e()]),t._v(" "),e("div",{staticClass:"list-group list-group-horizontal mt-3"},[t.model&&t.model.reported?e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between flex-row flex-grow-1",staticStyle:{gap:"0.4rem"}},[e("div",{staticClass:"text-muted small font-weight-bold"},[t._v("Reported Account")]),t._v(" "),e("div",{staticClass:"d-flex justify-content-end flex-grow-1"},[t.model.reported&&t.model.reported.id?e("a",{staticClass:"text-primary",attrs:{href:"/i/web/profile/".concat(t.model.reported.id),target:"_blank"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[e("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:t.model.reported.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),t._v(" "),e("div",{staticClass:"d-flex flex-column"},[e("p",{staticClass:"font-weight-bold mb-0 text-break",class:[t.model.reported.is_admin?"text-danger":""],staticStyle:{"font-size":"12px","max-width":"140px","line-height":"16px"}},[t._v("@"+t._s(t.model.reported.acct))]),t._v(" "),e("div",{staticClass:"d-flex text-muted mb-0",staticStyle:{"font-size":"10px",gap:"0.5rem"}},[e("span",[t._v(t._s(t.prettyCount(t.model.reported.followers_count))+" Followers")]),t._v(" "),e("span",[t._v("·")]),t._v(" "),e("span",[t._v("Joined "+t._s(t.timeAgo(t.model.reported.created_at)))])])])])]):t._e()])]):e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-center flex-column flex-grow-1"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Reported Account Unavailable")]),t._v(" "),e("p",{staticClass:"small mb-0"},[t._v("The reported account may have been deleted, or is otherwise not currently active. You can safely "),e("strong",[t._v("Close Report")]),t._v(" to mark this report as read.")])])]),t._v(" "),t.model&&t.model.statuses&&t.model.statuses.length?e("div",{staticClass:"list-group mt-3"},t._l(t.model.statuses,(function(t,a){return e("admin-modal-post",{key:"admin-modal-post-remote-post:".concat(t.id,":").concat(a),attrs:{status:t}})})),1):t._e(),t._v(" "),e("div",{staticClass:"mt-4"},[e("div",[e("button",{staticClass:"btn btn-dark btn-block rounded-pill",attrs:{type:"button"},on:{click:function(e){return t.handleAction("mark-read")}}},[t._v("\n Close Report\n ")]),t._v(" "),e("button",{staticClass:"btn btn-outline-dark btn-block text-center rounded-pill",staticStyle:{"word-break":"break-all"},attrs:{type:"button"},on:{click:function(e){return t.handleAction("mark-all-read-by-domain")}}},[e("span",{staticClass:"font-weight-light"},[t._v("Close all reports from")]),t._v(" "),e("strong",[t._v(t._s(t.model.instance))])]),t._v(" "),t.model.reported?e("button",{staticClass:"btn btn-outline-dark btn-block rounded-pill flex-grow-1",attrs:{type:"button"},on:{click:function(e){return t.handleAction("mark-all-read-by-username")}}},[e("span",{staticClass:"font-weight-light"},[t._v("Close all reports against")]),t._v(" "),e("strong",[t._v("@"+t._s(t.model.reported.username))])]):t._e(),t._v(" "),t.model&&t.model.statuses&&t.model.statuses.length&&t.model.reported?[e("hr",{staticClass:"mt-3 mb-1"}),t._v(" "),e("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("cw-posts")}}},[t._v("\n Apply CW to Post(s)\n ")]),t._v(" "),e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("unlist-posts")}}},[t._v("\n Unlist Post(s)\n ")])]),t._v(" "),e("div",{staticClass:"d-flex flex-row mt-2"},[e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("private-posts")}}},[t._v("\n Make Post(s) Private\n ")]),t._v(" "),e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("delete-posts")}}},[t._v("\n Delete Post(s)\n ")])])]:t.model&&t.model.statuses&&!t.model.statuses.length&&t.model.reported?[e("hr",{staticClass:"mt-3 mb-1"}),t._v(" "),e("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("cw-all-posts")}}},[t._v("\n Apply CW to all posts\n ")]),t._v(" "),e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("unlist-all-posts")}}},[t._v("\n Unlist all account posts\n ")])]),t._v(" "),e("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("private-all-posts")}}},[t._v("\n Make all posts private\n ")])])]:t._e()],2)])]],2)},i=[]},16231:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card shadow-none border card-body"},[e("div",{staticClass:"form-group mb-0"},[e("div",{staticClass:"custom-control custom-checkbox"},[e("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",name:t.elementId,id:t.elementId},domProps:{checked:t.value},on:{change:function(e){return t.$emit("change",!t.value)}}}),t._v(" "),e("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:t.elementId}},[t._v(t._s(t.name))])]),t._v(" "),e("p",{staticClass:"mt-1 mb-0 small text-muted",domProps:{innerHTML:t._s(t.description)}})])])},i=[]},96858:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{class:[t.isCard?"card shadow-none border card-body":""]},[e("div",{staticClass:"form-group",class:[t.isInline?"d-flex align-items-center gap-1":"mb-1"]},[e("label",{staticClass:"font-weight-bold mb-0",attrs:{for:t.elementId}},[t._v(t._s(t.name))]),t._v(" "),e("input",{staticClass:"form-control form-control-muted mb-0",attrs:{id:t.elementId,placeholder:t.placeholder,disabled:t.isDisabled},domProps:{value:t.value},on:{input:function(e){return t.$emit("change",e.target.value)}}})]),t._v(" "),t.description&&t.description.length?e("p",{staticClass:"help-text small text-muted mb-0",domProps:{innerHTML:t._s(t.description)}}):t._e()])},i=[]},23075:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",{staticStyle:{width:"100px"}}),t._v(" "),e("div",[e("h2",{staticClass:"display-4 mb-0",staticStyle:{"font-weight":"800"}},[t._v(t._s(t.title))])]),t._v(" "),e("div",[e("button",{staticClass:"btn btn-primary rounded-pill font-weight-bold px-5",attrs:{disabled:t.isSaving||t.saved},on:{click:function(e){return e.preventDefault(),t.save.apply(null,arguments)}}},[!0===t.isSaving?[e("b-spinner",{staticClass:"mx-2",attrs:{small:""}})]:[t._v(t._s(t.buttonLabel))]],2)])]),t._v(" "),e("hr",{staticClass:"mt-3"})])},i=[]},36671:(t,e,a)=>{a(74692);a(9901),window._=a(2543),window.Popper=a(48851).default,window.pixelfed=window.pixelfed||{},window.$=a(74692),a(52754),window.axios=a(86425),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",a(63899),window.filesize=a(91139),window.Cookies=a(12215),a(81027),a(66482),window.Chart=a(62477),a(83925),Chart.defaults.global.defaultFontFamily="-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif",Array.from(document.querySelectorAll(".pagination .page-link")).filter((function(t){return"« Previous"===t.textContent||"Next »"===t.textContent})).forEach((function(t){return t.textContent="Next »"===t.textContent?"›":"‹"})),Vue.component("admin-autospam",a(80430).default),Vue.component("admin-directory",a(65465).default),Vue.component("admin-reports",a(13929).default),Vue.component("admin-settings",a(93139).default),Vue.component("instances-component",a(50828).default),Vue.component("hashtag-component",a(47739).default)},83925:(t,e,a)=>{"use strict";var s=a(74692);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}!function(){function t(){s(".sidenav-toggler").addClass("active"),s(".sidenav-toggler").data("action","sidenav-unpin"),s("body").removeClass("g-sidenav-hidden").addClass("g-sidenav-show g-sidenav-pinned"),s("body").append('
1&&(o+=''+i+""),o+=''+a+n+s+""}}}(t,a),a.update()}return window.Chart&&r(Chart,(t={defaults:{global:{responsive:!0,maintainAspectRatio:!1,defaultColor:o.gray[600],defaultFontColor:o.gray[600],defaultFontFamily:n.base,defaultFontSize:13,layout:{padding:0},legend:{display:!1,position:"bottom",labels:{usePointStyle:!0,padding:16}},elements:{point:{radius:0,backgroundColor:o.theme.primary},line:{tension:.4,borderWidth:4,borderColor:o.theme.primary,backgroundColor:o.transparent,borderCapStyle:"rounded"},rectangle:{backgroundColor:o.theme.warning},arc:{backgroundColor:o.theme.primary,borderColor:o.white,borderWidth:4}},tooltips:{enabled:!0,mode:"index",intersect:!1}},doughnut:{cutoutPercentage:83,legendCallback:function(t){var e=t.data,a="";return e.labels.forEach((function(t,s){var i=e.datasets[0].backgroundColor[s];a+='',a+='',a+=t,a+=""})),a}}}},Chart.scaleService.updateScaleDefaults("linear",{gridLines:{borderDash:[2],borderDashOffset:[2],color:o.gray[300],drawBorder:!1,drawTicks:!1,drawOnChartArea:!0,zeroLineWidth:0,zeroLineColor:"rgba(0,0,0,0)",zeroLineBorderDash:[2],zeroLineBorderDashOffset:[2]},ticks:{beginAtZero:!0,padding:10,callback:function(t){if(!(t%10))return t}}}),Chart.scaleService.updateScaleDefaults("category",{gridLines:{drawBorder:!1,drawOnChartArea:!1,drawTicks:!1},ticks:{padding:20},maxBarThickness:10}),t)),e.on({change:function(){var t=s(this);t.is("[data-add]")&&d(t)},click:function(){var t=s(this);t.is("[data-update]")&&u(t)}}),{colors:o,fonts:n,mode:a}}(),b=((r=s(o=".btn-icon-clipboard")).length&&((n=r).tooltip().on("mouseleave",(function(){n.tooltip("hide")})),new ClipboardJS(o).on("success",(function(t){s(t.trigger).attr("title","Copied!").tooltip("_fixTitle").tooltip("show").attr("title","Copy to clipboard").tooltip("_fixTitle"),t.clearSelection()}))),l=s(".navbar-nav, .navbar-nav .nav"),c=s(".navbar .collapse"),d=s(".navbar .dropdown"),c.on({"show.bs.collapse":function(){!function(t){t.closest(l).find(c).not(t).collapse("hide")}(s(this))}}),d.on({"hide.bs.dropdown":function(){!function(t){var e=t.find(".dropdown-menu");e.addClass("close"),setTimeout((function(){e.removeClass("close")}),200)}(s(this))}}),function(){s(".navbar-nav");var t=s(".navbar .navbar-custom-collapse");t.length&&(t.on({"hide.bs.collapse":function(){!function(t){t.addClass("collapsing-out")}(t)}}),t.on({"hidden.bs.collapse":function(){!function(t){t.removeClass("collapsing-out")}(t)}}));var e=0;s(".sidenav-toggler").click((function(){if(1==e)s("body").removeClass("nav-open"),e=0,s(".bodyClick").remove();else{s('
').appendTo("body").click((function(){s("body").removeClass("nav-open"),e=0,s(".bodyClick").remove()})),s("body").addClass("nav-open"),e=1}}))}(),u=s('[data-toggle="popover"]'),m="",u.length&&u.each((function(){!function(t){t.data("color")&&(m="popover-"+t.data("color"));var e={trigger:"focus",template:''};t.popover(e)}(s(this))})),function(){var t=s(".scroll-me, [data-scroll-to], .toc-entry a");function e(t){var e=t.attr("href"),a=t.data("scroll-to-offset")?t.data("scroll-to-offset"):0,i={scrollTop:s(e).offset().top-a};s("html, body").stop(!0,!0).animate(i,600),event.preventDefault()}t.length&&t.on("click",(function(t){e(s(this))}))}(),(p=s('[data-toggle="tooltip"]')).length&&p.tooltip(),(v=s(".form-control")).length&&function(t){t.on("focus blur",(function(t){s(this).parents(".form-group").toggleClass("focused","focus"===t.type)})).trigger("blur")}(v),(f=s("#chart-bars")).length&&function(t){var e=new Chart(t,{type:"bar",data:{labels:["Jul","Aug","Sep","Oct","Nov","Dec"],datasets:[{label:"Sales",data:[25,20,30,22,17,29]}]}});t.data("chart",e)}(f),function(){var t=s("#c1-dark");t.length&&function(t){var e=new Chart(t,{type:"line",options:{scales:{yAxes:[{gridLines:{lineWidth:1,color:_.colors.gray[900],zeroLineColor:_.colors.gray[900]},ticks:{callback:function(t){if(!(t%10))return t}}}]},tooltips:{callbacks:{label:function(t,e){var a=e.datasets[t.datasetIndex].label||"",s=t.yLabel,i="";return e.datasets.length>1&&(i+=a),i+(s+" posts")}}}},data:{labels:["7","6","5","4","3","2","1"],datasets:[{label:"",data:s(".posts-this-week").data("update").data.datasets[0].data}]}});t.data("chart",e)}(t)}(),(h=s(".datepicker")).length&&h.each((function(){!function(t){t.datepicker({disableTouchKeyboard:!0,autoclose:!1})}(s(this))})),function(){if(s(".input-slider-container")[0]&&s(".input-slider-container").each((function(){var t=s(this).find(".input-slider"),e=t.attr("id"),a=t.data("range-value-min"),i=t.data("range-value-max"),n=s(this).find(".range-slider-value"),o=n.attr("id"),r=n.data("range-value-low"),l=document.getElementById(e),c=document.getElementById(o);b.create(l,{start:[parseInt(r)],connect:[!0,!1],range:{min:[parseInt(a)],max:[parseInt(i)]}}),l.noUiSlider.on("update",(function(t,e){c.textContent=t[e]}))})),s("#input-slider-range")[0]){var t=document.getElementById("input-slider-range"),e=document.getElementById("input-slider-range-value-low"),a=document.getElementById("input-slider-range-value-high"),i=[e,a];b.create(t,{start:[parseInt(e.getAttribute("data-range-value-low")),parseInt(a.getAttribute("data-range-value-high"))],connect:!0,range:{min:parseInt(t.getAttribute("data-range-value-min")),max:parseInt(t.getAttribute("data-range-value-max"))}}),t.noUiSlider.on("update",(function(t,e){i[e].textContent=t[e]}))}}());(g=s(".scrollbar-inner")).length&&g.scrollbar().scrollLock()},9901:function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}!function(){var e="object"===("undefined"==typeof window?"undefined":t(window))?window:"object"===("undefined"==typeof self?"undefined":t(self))?self:this,a=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder;e.URL=e.URL||e.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var s=e.Blob,i=URL.createObjectURL,n=URL.revokeObjectURL,o=e.Symbol&&e.Symbol.toStringTag,r=!1,c=!1,d=!!e.ArrayBuffer,u=a&&a.prototype.append&&a.prototype.getBlob;try{r=2===new Blob(["ä"]).size,c=2===new Blob([new Uint8Array([1,2])]).size}catch(t){}function m(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var a=new Uint8Array(t.byteLength);a.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=a.buffer}return e}return t}))}function p(t,e){e=e||{};var s=new a;return m(t).forEach((function(t){s.append(t)})),e.type?s.getBlob(e.type):s.getBlob()}function v(t,e){return new s(m(t),e||{})}e.Blob&&(p.prototype=Blob.prototype,v.prototype=Blob.prototype);var f="function"==typeof TextEncoder?TextEncoder.prototype.encode.bind(new TextEncoder):function(t){for(var a=0,s=t.length,i=e.Uint8Array||Array,n=0,o=Math.max(32,s+(s>>1)+7),r=new i(o>>3<<3);a=55296&&l<=56319){if(a=55296&&l<=56319)continue}if(n+4>r.length){o+=8,o=(o*=1+a/t.length*2)>>3<<3;var d=new Uint8Array(o);d.set(r),r=d}if(4294967168&l){if(4294965248&l)if(4294901760&l){if(4292870144&l)continue;r[n++]=l>>18&7|240,r[n++]=l>>12&63|128,r[n++]=l>>6&63|128}else r[n++]=l>>12&15|224,r[n++]=l>>6&63|128;else r[n++]=l>>6&31|192;r[n++]=63&l|128}else r[n++]=l}return r.slice(0,n)},h="function"==typeof TextDecoder?TextDecoder.prototype.decode.bind(new TextDecoder):function(t){for(var e=t.length,a=[],s=0;s239?4:l>223?3:l>191?2:1;if(s+d<=e)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(i=t[s+1]))&&(r=(31&l)<<6|63&i)>127&&(c=r);break;case 3:i=t[s+1],n=t[s+2],128==(192&i)&&128==(192&n)&&(r=(15&l)<<12|(63&i)<<6|63&n)>2047&&(r<55296||r>57343)&&(c=r);break;case 4:i=t[s+1],n=t[s+2],o=t[s+3],128==(192&i)&&128==(192&n)&&128==(192&o)&&(r=(15&l)<<18|(63&i)<<12|(63&n)<<6|63&o)>65535&&r<1114112&&(c=r)}null===c?(c=65533,d=1):c>65535&&(c-=65536,a.push(c>>>10&1023|55296),c=56320|1023&c),a.push(c),s+=d}var u=a.length,m="";for(s=0;s>2,d=(3&i)<<4|o>>4,u=(15&o)<<2|l>>6,m=63&l;r||(m=64,n||(u=64)),a.push(e[c],e[d],e[u],e[m])}return a.join("")}var s=Object.create||function(t){function e(){}return e.prototype=t,new e};if(d)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function c(a,s){s=null==s?{}:s;for(var i=0,n=(a=a||[]).length;i=e.size&&a.close()}))}})}}catch(t){try{new ReadableStream({}),_=function(t){var e=0;t=this;return new ReadableStream({pull:function(a){return t.slice(e,e+524288).arrayBuffer().then((function(s){e+=s.byteLength;var i=new Uint8Array(s);a.enqueue(i),e==t.size&&a.close()}))}})}}catch(t){try{new Response("").body.getReader().read(),_=function(){return new Response(this).body}}catch(t){_=function(){throw new Error("Include https://github.com/MattiasBuelens/web-streams-polyfill")}}}}b.arrayBuffer||(b.arrayBuffer=function(){var t=new FileReader;return t.readAsArrayBuffer(this),C(t)}),b.text||(b.text=function(){var t=new FileReader;return t.readAsText(this),C(t)}),b.stream||(b.stream=_)}(),function(t){"use strict";var e,a=t.Uint8Array,s=t.HTMLCanvasElement,i=s&&s.prototype,n=/\s*;\s*base64\s*(?:;|$)/i,o="toDataURL",r=function(t){for(var s,i,n=t.length,o=new a(n/4*3|0),r=0,l=0,c=[0,0],d=0,u=0;n--;)i=t.charCodeAt(r++),255!==(s=e[i-43])&&undefined!==s&&(c[1]=c[0],c[0]=i,u=u<<6|s,4===++d&&(o[l++]=u>>>16,61!==c[1]&&(o[l++]=u>>>8),61!==c[0]&&(o[l++]=u),d=0));return o};a&&(e=new a([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),!s||i.toBlob&&i.toBlobHD||(i.toBlob||(i.toBlob=function(t,e){if(e||(e="image/png"),this.mozGetAsFile)t(this.mozGetAsFile("canvas",e));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(e))t(this.msToBlob());else{var s,i=Array.prototype.slice.call(arguments,1),l=this[o].apply(this,i),c=l.indexOf(","),d=l.substring(c+1),u=n.test(l.substring(0,c));Blob.fake?((s=new Blob).encoding=u?"base64":"URI",s.data=d,s.size=d.length):a&&(s=u?new Blob([r(d)],{type:e}):new Blob([decodeURIComponent(d)],{type:e})),t(s)}}),!i.toBlobHD&&i.toDataURLHD?i.toBlobHD=function(){o="toDataURLHD";var t=this.toBlob();return o="toDataURL",t}:i.toBlobHD=i.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)},86700:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".gap-2[data-v-e104c6c0]{gap:1rem}",""]);const n=i},10372:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".rule-badge[data-v-55da510f]{background-color:#fff;border:2px solid var(--primary);border-radius:34px;height:34px;width:34px}.rule-badge[data-v-55da510f],.rule-badge-inner[data-v-55da510f]{align-items:center;display:flex;justify-content:center}.rule-badge-inner[data-v-55da510f]{background-color:var(--primary);border-radius:26px;color:#fff;font-size:13px;font-weight:700;height:26px;width:26px}.rule-text[data-v-55da510f]{font-size:14px;margin-bottom:0;max-width:90%}.gap-1[data-v-55da510f]{gap:1rem}",""]);const n=i},6289:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".gap-1[data-v-a624f3ac]{gap:1rem}",""]);const n=i},35358:(t,e,a)=>{var s={"./af":25177,"./af.js":25177,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":82682,"./ar-sa.js":82682,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":20623,"./en-sg.js":20623,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":52477,"./fo.js":52477,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function i(t){var e=n(t);return a(e)}function n(t){if(!a.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}i.keys=function(){return Object.keys(s)},i.resolve=n,t.exports=i,i.id=35358},55099:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(86700),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},98437:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(10372),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},59542:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(6289),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},80430:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(66196),i=a(45941),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},65465:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(36809),i=a(19990),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},47739:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(77764),i=a(41660),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},50828:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(63152),i=a(32311),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(87974);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,"e104c6c0",null).exports},13929:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(31722),i=a(13398),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},93139:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(21958),i=a(15568),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(93990);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,"55da510f",null).exports},27707:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(67774),i=a(41304),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},8889:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(32754),i=a(64814),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},98385:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(1711),i=a(41094),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},7210:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(90322),i=a(48965),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},62355:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(65781),i=a(62160),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(84835);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,"a624f3ac",null).exports},34429:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(94212),i=a(96634),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},45941:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(95366),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},19990:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(71847),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},41660:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(44107),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},32311:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(56310),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},13398:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(51839),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},15568:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(86871),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},41304:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(99697),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},64814:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(72173),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},41094:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(47835),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},48965:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(4970),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},62160:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(45053),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},96634:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(16563),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},66196:(t,e,a)=>{"use strict";a.r(e);var s=a(69385),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},36809:(t,e,a)=>{"use strict";a.r(e);var s=a(41298),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},77764:(t,e,a)=>{"use strict";a.r(e);var s=a(54449),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},63152:(t,e,a)=>{"use strict";a.r(e);var s=a(38343),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},31722:(t,e,a)=>{"use strict";a.r(e);var s=a(44381),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},21958:(t,e,a)=>{"use strict";a.r(e);var s=a(79535),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},67774:(t,e,a)=>{"use strict";a.r(e);var s=a(64441),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},32754:(t,e,a)=>{"use strict";a.r(e);var s=a(38391),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},1711:(t,e,a)=>{"use strict";a.r(e);var s=a(24664),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},90322:(t,e,a)=>{"use strict";a.r(e);var s=a(16231),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},65781:(t,e,a)=>{"use strict";a.r(e);var s=a(96858),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},94212:(t,e,a)=>{"use strict";a.r(e);var s=a(23075),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},87974:(t,e,a)=>{"use strict";a.r(e);var s=a(55099),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},93990:(t,e,a)=>{"use strict";a.r(e);var s=a(98437),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},84835:(t,e,a)=>{"use strict";a.r(e);var s=a(59542),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)}},t=>{t.O(0,[3660],(()=>{return e=36671,t(t.s=e);var e}));t.O()}]); \ No newline at end of file +(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[9567],{95366:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(2e4);a(87980);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function n(){n=function(){return e};var t,e={},a=Object.prototype,s=a.hasOwnProperty,o=Object.defineProperty||function(t,e,a){t[e]=a.value},r="function"==typeof Symbol?Symbol:{},l=r.iterator||"@@iterator",c=r.asyncIterator||"@@asyncIterator",d=r.toStringTag||"@@toStringTag";function u(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,a){return t[e]=a}}function m(t,e,a,s){var i=e&&e.prototype instanceof b?e:b,n=Object.create(i.prototype),r=new D(s||[]);return o(n,"_invoke",{value:A(t,a,r)}),n}function p(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}e.wrap=m;var v="suspendedStart",f="suspendedYield",h="executing",g="completed",_={};function b(){}function C(){}function w(){}var y={};u(y,l,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(M([])));k&&k!==a&&s.call(k,l)&&(y=k);var S=w.prototype=b.prototype=Object.create(y);function R(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function a(n,o,r,l){var c=p(t[n],t,o);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==i(u)&&s.call(u,"__await")?e.resolve(u.__await).then((function(t){a("next",t,r,l)}),(function(t){a("throw",t,r,l)})):e.resolve(u).then((function(t){d.value=t,r(d)}),(function(t){return a("throw",t,r,l)}))}l(c.arg)}var n;o(this,"_invoke",{value:function(t,s){function i(){return new e((function(e,i){a(t,s,e,i)}))}return n=n?n.then(i,i):i()}})}function A(e,a,s){var i=v;return function(n,o){if(i===h)throw Error("Generator is already running");if(i===g){if("throw"===n)throw o;return{value:t,done:!0}}for(s.method=n,s.arg=o;;){var r=s.delegate;if(r){var l=I(r,s);if(l){if(l===_)continue;return l}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(i===v)throw i=g,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);i=h;var c=p(e,a,s);if("normal"===c.type){if(i=s.done?g:f,c.arg===_)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(i=g,s.method="throw",s.arg=c.arg)}}}function I(e,a){var s=a.method,i=e.iterator[s];if(i===t)return a.delegate=null,"throw"===s&&e.iterator.return&&(a.method="return",a.arg=t,I(e,a),"throw"===a.method)||"return"!==s&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var n=p(i,e.iterator,a.arg);if("throw"===n.type)return a.method="throw",a.arg=n.arg,a.delegate=null,_;var o=n.arg;return o?o.done?(a[e.resultName]=o.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,_):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,_)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function M(e){if(e||""===e){var a=e[l];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function a(){for(;++n=0;--n){var o=this.tryEntries[n],r=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),j(a),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var s=a.completion;if("throw"===s.type){var i=s.arg;j(a)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,a,s){return this.delegate={iterator:M(e),resultName:a,nextLoc:s},"next"===this.method&&(this.arg=t),_}},e}function o(t,e,a,s,i,n,o){try{var r=t[n](o),l=r.value}catch(t){return void a(t)}r.done?e(l):Promise.resolve(l).then(s,i)}const r={components:{Autocomplete:s.default},data:function(){return{loaded:!1,tabIndex:0,config:{autospam_enabled:null,open:0,closed:0},closedReports:[],closedReportsFetched:!1,closedReportsCursor:null,closedReportsCanLoadMore:!1,showSpamReportModal:!1,showSpamReportModalLoading:!0,viewingSpamReport:void 0,viewingSpamReportLoading:!1,showNonSpamModal:!1,nonSpamAccounts:[],searchLoading:!1,customTokens:[],customTokensFetched:!1,customTokensCanLoadMore:!1,showCreateTokenModal:!1,customTokenForm:{token:void 0,weight:1,category:"spam",note:void 0,active:!0},showEditTokenModal:!1,editCustomToken:{},editCustomTokenForm:{token:void 0,weight:1,category:"spam",note:void 0,active:!0}}},mounted:function(){var t=this;setTimeout((function(){t.loaded=!0,t.fetchConfig()}),1e3)},methods:{toggleTab:function(t){var e=this;this.tabIndex=t,0==t&&setTimeout((function(){e.initChart()}),500),"closed_reports"!==t||this.closedReportsFetched||this.fetchClosedReports(),"manage_tokens"!==t||this.customTokensFetched||this.fetchCustomTokens()},formatCount:function(t){return App.util.format.count(t)},timeAgo:function(t){return t?App.util.format.timeAgo(t):t},fetchConfig:function(){var t=this;axios.post("/i/admin/api/autospam/config").then((function(e){t.config=e.data,t.loaded=!0})).finally((function(){setTimeout((function(){t.initChart()}),100)}))},initChart:function(){new Chart(document.querySelector("#c1-dark"),{type:"line",options:{scales:{yAxes:[{gridLines:{lineWidth:1,color:"#212529",zeroLineColor:"#212529"}}]}},data:{datasets:[{data:this.config.graph}],labels:this.config.graphLabels}})},fetchClosedReports:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/autospam/reports/closed";axios.post(e).then((function(e){t.closedReports=e.data})).finally((function(){t.closedReportsFetched=!0}))},viewSpamReport:function(t){this.viewingSpamReportLoading=!1,this.viewingSpamReport=t,this.showSpamReportModal=!0,setTimeout((function(){pixelfed.readmore()}),500)},autospamPaginate:function(t){event.currentTarget.blur();var e="next"==t?this.closedReports.links.next:this.closedReports.links.prev;this.fetchClosedReports(e)},autospamTrainSpam:function(){event.currentTarget.blur(),axios.post("/i/admin/api/autospam/train").then((function(t){swal("Training Autospam!","A background job has been dispatched to train Autospam!","success"),setTimeout((function(){window.location.reload()}),1e4)})).catch((function(t){422===t.response.status?swal("Error",t.response.data.error,"error"):swal("Error","Oops, an error occured, please try again later","error")}))},autospamTrainNonSpam:function(){this.showNonSpamModal=!0},composeSearch:function(t){var e=this;return t.length<1?[]:axios.post("/i/admin/api/autospam/search/non-spam",{q:t}).then((function(t){return t.data.filter((function(t){return!e.nonSpamAccounts||!e.nonSpamAccounts.length||e.nonSpamAccounts&&-1==e.nonSpamAccounts.map((function(t){return t.id})).indexOf(t.id)}))}))},getTagResultValue:function(t){return t.username},onSearchResultClick:function(t){-1==this.nonSpamAccounts.map((function(t){return t.id})).indexOf(t.id)&&this.nonSpamAccounts.push(t)},autospamTrainNonSpamRemove:function(t){this.nonSpamAccounts.splice(t,1)},autospamTrainNonSpamSubmit:function(){this.showNonSpamModal=!1,axios.post("/i/admin/api/autospam/train/non-spam",{accounts:this.nonSpamAccounts}).then((function(t){swal("Training Autospam!","A background job has been dispatched to train Autospam!","success"),setTimeout((function(){window.location.reload()}),1e4)})).catch((function(t){422===t.response.status?swal("Error",t.response.data.error,"error"):swal("Error","Oops, an error occured, please try again later","error")}))},fetchCustomTokens:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/autospam/tokens/custom";axios.post(e).then((function(e){t.customTokens=e.data})).finally((function(){t.customTokensFetched=!0}))},handleSaveToken:function(){var t=this;axios.post("/i/admin/api/autospam/tokens/store",this.customTokenForm).then((function(t){console.log(t.data)})).catch((function(t){swal("Oops! An Error Occured",t.response.data.message,"error")})).finally((function(){t.customTokenForm={token:void 0,weight:1,category:"spam",note:void 0,active:!0},t.fetchCustomTokens()}))},openEditTokenModal:function(t){event.currentTarget.blur(),this.editCustomToken=t,this.editCustomTokenForm=t,this.showEditTokenModal=!0},handleUpdateToken:function(){axios.post("/i/admin/api/autospam/tokens/update",this.editCustomTokenForm).then((function(t){console.log(t.data)}))},autospamTokenPaginate:function(t){event.currentTarget.blur();var e="next"==t?this.customTokens.next_page_url:this.customTokens.prev_page_url;this.fetchCustomTokens(e)},downloadExport:function(){event.currentTarget.blur(),axios.post("/i/admin/api/autospam/tokens/export",{},{responseType:"blob"}).then((function(t){var e=document.createElement("a");e.setAttribute("download","pixelfed-autospam-export.json");var a=URL.createObjectURL(t.data);e.href=a,e.setAttribute("target","_blank"),e.click(),URL.revokeObjectURL(a)})).catch(function(){var t,e=(t=n().mark((function t(e){var a;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.response.data,!("blob"===e.request.responseType&&e.response.data instanceof Blob&&e.response.data.type&&-1!=e.response.data.type.toLowerCase().indexOf("json"))){t.next=8;break}return t.t0=JSON,t.next=5,e.response.data.text();case 5:t.t1=t.sent,a=t.t0.parse.call(t.t0,t.t1),swal("Export Error",a.error,"error");case 8:case 9:case"end":return t.stop()}}),t)})),function(){var e=this,a=arguments;return new Promise((function(s,i){var n=t.apply(e,a);function r(t){o(n,s,i,r,l,"next",t)}function l(t){o(n,s,i,r,l,"throw",t)}r(void 0)}))});return function(t){return e.apply(this,arguments)}}())},enableAdvanced:function(){event.currentTarget.blur(),!this.config.files.spam.exists||!this.config.files.ham.exists||!this.config.files.combined.exists||this.config.files.spam.size<1e3||this.config.files.ham.size<1e3||this.config.files.combined.size<1e3?swal("Training Required",'Before you can enable Advanced Detection, you need to train the models.\n\n Click on the "Train Autospam" tab and train both categories before proceeding',"error"):swal({title:"Confirm",text:"Are you sure you want to enable Advanced Detection?",icon:"warning",dangerMode:!0,buttons:{cancel:"Cancel",confirm:{text:"Enable",value:"enable"}}}).then((function(t){"enable"===t&&axios.post("/i/admin/api/autospam/config/enable").then((function(t){swal("Success! Advanced Detection is now enabled!\n\n This page will reload in a few seconds!",{icon:"success"}),setTimeout((function(){window.location.reload()}),5e3)})).catch((function(t){swal("Oops!","An error occured, please try again later","error")}))}))},disableAdvanced:function(){event.currentTarget.blur(),swal({title:"Confirm",text:"Are you sure you want to disable Advanced Detection?",icon:"warning",dangerMode:!0,buttons:{cancel:"Cancel",confirm:{text:"Disable",value:"disable"}}}).then((function(t){"disable"===t&&axios.post("/i/admin/api/autospam/config/disable").then((function(t){swal("Success! Advanced Detection is now disabled!\n\n This page will reload in a few seconds!",{icon:"success"}),setTimeout((function(){window.location.reload()}),5e3)})).catch((function(t){swal("Oops!","An error occured, please try again later","error")}))}))},handleImport:function(){event.currentTarget.blur(),swal("Error","You do not have enough data to support importing.","error")}}}},71847:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var s=a(74692);const i={data:function(){return{loaded:!1,initialData:{},tabIndex:1,tabs:[{id:1,title:"Overview",icon:"far fa-home"},{id:3,title:"Server Details",icon:"far fa-info-circle"},{id:4,title:"Admin Contact",icon:"far fa-user-crown"},{id:5,title:"Favourite Posts",icon:"far fa-heart"},{id:6,title:"Privacy Pledge",icon:"far fa-eye-slash"},{id:7,title:"Community Guidelines",icon:"far fa-smile-beam"},{id:8,title:"Feature Requirements",icon:"far fa-bolt"},{id:9,title:"User Testimonials",icon:"far fa-comment-smile"}],form:{summary:"",location:0,contact_account:0,contact_email:"",privacy_pledge:void 0,banner_image:void 0,locale:0},requirements:{activitypub_enabled:void 0,open_registration:void 0,oauth_enabled:void 0,curated_onboarding:void 0},feature_config:[],requirements_validator:[],popularPostsLoaded:!1,popularPosts:[],selectedPopularPosts:[],selectedPosts:[],favouritePostByIdInput:"",favouritePostByIdFetching:!1,communityGuidelines:[],isUploadingBanner:!1,state:{is_eligible:!1,submission_exists:!1,awaiting_approval:!1,is_active:!1,submission_timestamp:void 0},isSubmitting:!1,testimonial:{username:void 0,body:void 0},testimonials:[],isEditingTestimonial:!1,editingTestimonial:void 0}},mounted:function(){this.fetchInitialData()},methods:{toggleTab:function(t){this.tabIndex=t},fetchInitialData:function(){var t=this;axios.get("/i/admin/api/directory/initial-data").then((function(e){t.initialData=e.data,e.data.activitypub_enabled&&(t.requirements.activitypub_enabled=e.data.activitypub_enabled),e.data.open_registration&&(t.requirements.open_registration=e.data.open_registration),e.data.curated_onboarding&&(t.requirements.curated_onboarding=e.data.curated_onboarding),e.data.oauth_enabled&&(t.requirements.oauth_enabled=e.data.oauth_enabled),e.data.summary&&(t.form.summary=e.data.summary),e.data.location&&(t.form.location=e.data.location),e.data.favourite_posts&&(t.selectedPosts=e.data.favourite_posts),e.data.admin&&(t.form.contact_account=e.data.admin),e.data.contact_email&&(t.form.contact_email=e.data.contact_email),e.data.community_guidelines&&(t.communityGuidelines=e.data.community_guidelines),e.data.privacy_pledge&&(t.form.privacy_pledge=e.data.privacy_pledge),e.data.feature_config&&(t.feature_config=e.data.feature_config),e.data.requirements_validator&&(t.requirements_validator=e.data.requirements_validator),e.data.banner_image&&(t.form.banner_image=e.data.banner_image),e.data.primary_locale&&(t.form.primary_locale=e.data.primary_locale),e.data.is_eligible&&(t.state.is_eligible=e.data.is_eligible),e.data.testimonials&&(t.testimonials=e.data.testimonials),e.data.submission_state&&(t.state.is_active=e.data.submission_state.active_submission,t.state.submission_exists=e.data.submission_state.pending_submission,t.state.awaiting_approval=e.data.submission_state.pending_submission)})).then((function(){t.loaded=!0}))},initPopularPosts:function(){var t=this;this.popularPostsLoaded||axios.get("/i/admin/api/directory/popular-posts").then((function(e){t.popularPosts=e.data.filter((function(e){return!t.selectedPosts.map((function(t){return t.id})).includes(e.id)}))})).then((function(){t.popularPostsLoaded=!0}))},formatCount:function(t){return window.App.util.format.count(t)},formatDateTime:function(t){var e=new Date(t);return new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"short"}).format(e)},formatDate:function(t){var e=new Date(t);return new Intl.DateTimeFormat("en-US",{month:"short",year:"numeric"}).format(e)},formatTimestamp:function(t){return window.App.util.format.timeAgo(t)},togglePopularPost:function(t,e){if(this.selectedPosts.length)if(this.selectedPosts.map((function(t){return t.id})).includes(t))this.selectedPosts=this.selectedPosts.filter((function(e){return e.id!=t}));else{if(this.selectedPosts.length>=12)return swal("Oops!","You can only select 12 popular posts","error"),void(event.currentTarget.checked=!1);this.selectedPosts.push(e)}else this.selectedPosts.push(e)},toggleSelectedPost:function(t){this.selectedPosts=this.selectedPosts.filter((function(e){return e.id!==t.id}))},handlePostByIdSearch:function(){var t=this;event.currentTarget.blur(),this.selectedPosts.length>=12?swal("Oops","You can only select 12 posts","error"):(this.favouritePostByIdFetching=!0,axios.post("/i/admin/api/directory/add-by-id",{q:this.favouritePostByIdInput}).then((function(e){t.selectedPosts.map((function(t){return t.id})).includes(e.data.id)?swal("Oops!","You already selected this post!","error"):(t.selectedPosts.push(e.data),t.favouritePostByIdInput="",t.popularPosts=t.popularPosts.filter((function(t){return t.id!=e.data.id})))})).then((function(){t.favouritePostByIdFetching=!1,s("#favposts-1-tab").tab("show")})).catch((function(e){swal("Invalid Post","The post id you added is not valid","error"),t.favouritePostByIdFetching=!1})))},save:function(){axios.post("/i/admin/api/directory/save",{location:this.form.location,summary:this.form.summary,admin_uid:this.form.contact_account,contact_email:this.form.contact_email,favourite_posts:this.selectedPosts.map((function(t){return t.id})),privacy_pledge:this.form.privacy_pledge}).then((function(t){swal("Success!","Successfully saved directory settings","success")})).catch((function(t){swal("Oops!",t.response.data.message,"error")}))},uploadBannerImage:function(){var t=this;if(this.isUploadingBanner=!0,window.confirm("Are you sure you want to update your server banner image?")){var e=new FormData;e.append("banner_image",this.$refs.bannerImageRef.files[0]),axios.post("/i/admin/api/directory/save",e,{headers:{"Content-Type":"multipart/form-data"}}).then((function(e){t.form.banner_image=e.data.banner_image,t.isUploadingBanner=!1})).catch((function(e){swal("Error",e.response.data.message,"error"),t.isUploadingBanner=!1}))}else this.isUploadingBanner=!1},deleteBannerImage:function(){var t=this;window.confirm("Are you sure you want to delete your server banner image?")&&axios.delete("/i/admin/api/directory/banner-image").then((function(e){t.form.banner_image=e.data})).catch((function(t){console.log(t)}))},handleSubmit:function(){var t=this;window.confirm("Are you sure you want to submit your server?")&&(this.isSubmitting=!0,axios.post("/i/admin/api/directory/submit").then((function(e){setTimeout((function(){t.isSubmitting=!1,t.state.is_active=!0,console.log(e.data)}),3e3)})).catch((function(t){swal("Error",t.response.data.message,"error")})))},deleteTestimonial:function(t){var e=this;window.confirm("Are you sure you want to delete the testimonial by "+t.profile.username+"?")&&axios.post("/i/admin/api/directory/testimonial/delete",{profile_id:t.profile.id}).then((function(a){e.testimonials=e.testimonials.filter((function(e){return e.profile.id!=t.profile.id}))}))},editTestimonial:function(t){this.isEditingTestimonial=!0,this.editingTestimonial=t},saveTestimonial:function(){var t,e=this;null===(t=event.currentTarget)||void 0===t||t.blur(),axios.post("/i/admin/api/directory/testimonial/save",{username:this.testimonial.username,body:this.testimonial.body}).then((function(t){e.testimonials.push(t.data),e.testimonial={username:void 0,body:void 0}})).catch((function(t){var e=t.response.data.hasOwnProperty("error")?t.response.data.error:t.response.data.message;swal("Oops!",e,"error")}))},cancelEditTestimonial:function(){var t;null===(t=event.currentTarget)||void 0===t||t.blur(),this.isEditingTestimonial=!1,this.editingTestimonial={}},saveEditTestimonial:function(){var t,e=this;null===(t=event.currentTarget)||void 0===t||t.blur(),axios.post("/i/admin/api/directory/testimonial/update",{profile_id:this.editingTestimonial.profile.id,body:this.editingTestimonial.body}).then((function(t){e.isEditingTestimonial=!1,e.editingTestimonial={}}))}},watch:{selectedPosts:function(t){var e=t.map((function(t){return t.id}));this.popularPosts=this.popularPosts.filter((function(t){return!e.includes(t.id)}))}}}},44107:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var s=a(2e4);a(87980);const i={components:{Autocomplete:s.default},data:function(){return{loaded:!1,tabIndex:0,stats:{total_unique:0,total_posts:0,added_14_days:0,total_banned:0,total_nsfw:0},hashtags:[],pagination:[],sortCol:void 0,sortDir:void 0,trendingTags:[],bannedTags:[],showEditModal:!1,editingHashtag:void 0,editSaved:!1,editSavedTimeout:void 0,searchLoading:!1}},mounted:function(){var t=this;this.fetchStats(),this.fetchHashtags(),this.$root.$on("bv::modal::hidden",(function(e,a){t.editSaved=!1,clearTimeout(t.editSavedTimeout),t.editingHashtag=void 0}))},watch:{editingHashtag:{deep:!0,immediate:!0,handler:function(t,e){null!=t&&null!=e&&this.storeHashtagEdit(t)}}},methods:{fetchStats:function(){var t=this;axios.get("/i/admin/api/hashtags/stats").then((function(e){t.stats=e.data}))},fetchHashtags:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/hashtags/query";axios.get(e).then((function(e){t.hashtags=e.data.data,t.pagination={next:e.data.links.next,prev:e.data.links.prev},t.loaded=!0}))},prettyCount:function(t){return t?t.toLocaleString("en-CA",{compactDisplay:"short",notation:"compact"}):t},timeAgo:function(t){return t?App.util.format.timeAgo(t):t},boolIcon:function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text-muted";return t?''):'')},paginate:function(t){event.currentTarget.blur();var e="next"==t?this.pagination.next:this.pagination.prev;this.fetchHashtags(e)},toggleCol:function(t){this.sortCol=t,this.sortDir?this.sortDir="asc"==this.sortDir?"desc":"asc":this.sortDir="desc";var e="/i/admin/api/hashtags/query?sort="+t+"&dir="+this.sortDir;this.fetchHashtags(e)},buildColumn:function(t,e){var a='';return e==this.sortCol&&(a="desc"==this.sortDir?'':''),"".concat(t," ").concat(a)},toggleTab:function(t){var e=this;if(this.loaded=!1,this.tabIndex=t,0===t)this.fetchHashtags();else if(1===t)axios.get("/api/v1.1/discover/posts/hashtags").then((function(t){e.trendingTags=t.data,e.loaded=!0}));else if(2===t){this.fetchHashtags("/i/admin/api/hashtags/query?action=banned")}else if(3===t){this.fetchHashtags("/i/admin/api/hashtags/query?action=nsfw")}},openEditHashtagModal:function(t){var e=this;this.editSaved=!1,clearTimeout(this.editSavedTimeout),this.$nextTick((function(){axios.get("/i/admin/api/hashtags/get",{params:{id:t.id}}).then((function(t){e.editingHashtag=t.data.data,e.showEditModal=!0}))}))},storeHashtagEdit:function(t,e){var a=this;this.editSaved=!1,t.is_banned&&(t.can_trend||t.can_search)&&swal("Banned Hashtag Limits","Banned hashtags cannot trend or be searchable, to allow those you need to unban the hashtag","error"),axios.post("/i/admin/api/hashtags/update",t).then((function(e){a.editSaved=!0,1!==a.tabIndex&&(a.hashtags=a.hashtags.map((function(a){return a.id==t.id&&(a=e.data.data),a}))),a.editSavedTimeout=setTimeout((function(){a.editSaved=!1}),5e3)})).catch((function(t){swal("Oops!","An error occured, please try again.","error"),console.log(t)}))},composeSearch:function(t){return t.length<1?[]:axios.get("/i/admin/api/hashtags/query",{params:{q:t,sort:"cached_count",dir:"desc"}}).then((function(t){return t.data.data}))},getTagResultValue:function(t){return t.name},onSearchResultClick:function(t){this.openEditHashtagModal(t)},clearTrendingCache:function(){event.currentTarget.blur(),window.confirm("Are you sure you want to clear the trending hashtags cache?")&&axios.post("/i/admin/api/hashtags/clear-trending-cache").then((function(t){swal("Cache Cleared!","Successfully cleared the trending hashtag cache!","success")}))}}}},56310:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>u});var s=a(2e4);a(87980);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function n(){n=function(){return e};var t,e={},a=Object.prototype,s=a.hasOwnProperty,o=Object.defineProperty||function(t,e,a){t[e]=a.value},r="function"==typeof Symbol?Symbol:{},l=r.iterator||"@@iterator",c=r.asyncIterator||"@@asyncIterator",d=r.toStringTag||"@@toStringTag";function u(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,a){return t[e]=a}}function m(t,e,a,s){var i=e&&e.prototype instanceof b?e:b,n=Object.create(i.prototype),r=new D(s||[]);return o(n,"_invoke",{value:A(t,a,r)}),n}function p(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}e.wrap=m;var v="suspendedStart",f="suspendedYield",h="executing",g="completed",_={};function b(){}function C(){}function w(){}var y={};u(y,l,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(M([])));k&&k!==a&&s.call(k,l)&&(y=k);var S=w.prototype=b.prototype=Object.create(y);function R(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function a(n,o,r,l){var c=p(t[n],t,o);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==i(u)&&s.call(u,"__await")?e.resolve(u.__await).then((function(t){a("next",t,r,l)}),(function(t){a("throw",t,r,l)})):e.resolve(u).then((function(t){d.value=t,r(d)}),(function(t){return a("throw",t,r,l)}))}l(c.arg)}var n;o(this,"_invoke",{value:function(t,s){function i(){return new e((function(e,i){a(t,s,e,i)}))}return n=n?n.then(i,i):i()}})}function A(e,a,s){var i=v;return function(n,o){if(i===h)throw Error("Generator is already running");if(i===g){if("throw"===n)throw o;return{value:t,done:!0}}for(s.method=n,s.arg=o;;){var r=s.delegate;if(r){var l=I(r,s);if(l){if(l===_)continue;return l}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(i===v)throw i=g,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);i=h;var c=p(e,a,s);if("normal"===c.type){if(i=s.done?g:f,c.arg===_)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(i=g,s.method="throw",s.arg=c.arg)}}}function I(e,a){var s=a.method,i=e.iterator[s];if(i===t)return a.delegate=null,"throw"===s&&e.iterator.return&&(a.method="return",a.arg=t,I(e,a),"throw"===a.method)||"return"!==s&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var n=p(i,e.iterator,a.arg);if("throw"===n.type)return a.method="throw",a.arg=n.arg,a.delegate=null,_;var o=n.arg;return o?o.done?(a[e.resultName]=o.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,_):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,_)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function M(e){if(e||""===e){var a=e[l];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function a(){for(;++n=0;--n){var o=this.tryEntries[n],r=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),j(a),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var s=a.completion;if("throw"===s.type){var i=s.arg;j(a)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,a,s){return this.delegate={iterator:M(e),resultName:a,nextLoc:s},"next"===this.method&&(this.arg=t),_}},e}function o(t,e,a,s,i,n,o){try{var r=t[n](o),l=r.value}catch(t){return void a(t)}r.done?e(l):Promise.resolve(l).then(s,i)}function r(t){return function(){var e=this,a=arguments;return new Promise((function(s,i){var n=t.apply(e,a);function r(t){o(n,s,i,r,l,"next",t)}function l(t){o(n,s,i,r,l,"throw",t)}r(void 0)}))}}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function c(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/instances/get";axios.get(e).then((function(e){t.instances=e.data.data,t.pagination=c(c({},e.data.links),e.data.meta)})).then((function(){t.$nextTick((function(){t.loaded=!0}))}))},toggleTab:function(t){this.loaded=!1,this.tabIndex=t,this.searchQuery=void 0;var e="/i/admin/api/instances/get?filter="+this.filterMap[t];history.pushState(null,"","/i/admin/instances?filter="+this.filterMap[t]),this.fetchInstances(e)},prettyCount:function(t){return t?t.toLocaleString("en-CA",{compactDisplay:"short",notation:"compact"}):0},formatCount:function(t){return t?t.toLocaleString("en-CA"):0},timeAgo:function(t){return t?App.util.format.timeAgo(t):t},boolIcon:function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text-muted";return t?''):'')},toggleCol:function(t){if(this.filterMap[this.tabIndex]!=t&&!this.searchQuery){this.sortCol=t,this.sortDir?this.sortDir="asc"==this.sortDir?"desc":"asc":this.sortDir="desc";var e=new URL(window.location.origin+"/i/admin/instances");e.searchParams.set("sort",t),e.searchParams.set("dir",this.sortDir),0!=this.tabIndex&&e.searchParams.set("filter",this.filterMap[this.tabIndex]),history.pushState(null,"",e);var a=new URL(window.location.origin+"/i/admin/api/instances/get");a.searchParams.set("sort",t),a.searchParams.set("dir",this.sortDir),0!=this.tabIndex&&a.searchParams.set("filter",this.filterMap[this.tabIndex]),this.fetchInstances(a.toString())}},buildColumn:function(t,e){if(-1!=[1,5,6].indexOf(this.tabIndex)||this.searchQuery&&this.searchQuery.length)return t;if(2===this.tabIndex&&"banned"===e)return t;if(3===this.tabIndex&&"auto_cw"===e)return t;if(4===this.tabIndex&&"unlisted"===e)return t;var a='';return e==this.sortCol&&(a="desc"==this.sortDir?'':''),"".concat(t," ").concat(a)},paginate:function(t){event.currentTarget.blur();var e="next"==t?this.pagination.next:this.pagination.prev,a="next"==t?this.pagination.next_cursor:this.pagination.prev_cursor,s=new URL(window.location.origin+"/i/admin/instances");a&&s.searchParams.set("cursor",a),this.searchQuery&&s.searchParams.set("q",this.searchQuery),this.sortCol&&s.searchParams.set("sort",this.sortCol),this.sortDir&&s.searchParams.set("dir",this.sortDir),history.pushState(null,"",s.toString()),this.fetchInstances(e)},composeSearch:function(t){var e=this;return t.length<1?[]:(this.searchQuery=t,history.pushState(null,"","/i/admin/instances?q="+t),axios.get("/i/admin/api/instances/query",{params:{q:t}}).then((function(t){return t&&t.data?(e.tabIndex=-1,e.instances=t.data.data,e.pagination=c(c({},t.data.links),t.data.meta)):e.fetchInstances(),t.data.data})))},getTagResultValue:function(t){return t.name},onSearchResultClick:function(t){this.openInstanceModal(t.id)},openInstanceModal:function(t){var e=this,a=this.instances.filter((function(e){return e.id===t}))[0];this.refreshedModalStats=!1,this.editingInstanceChanges=!1,this.instanceModalNotes=!1,this.canEditInstance=!1,this.instanceModal=a,this.$nextTick((function(){e.editingInstance=a,e.showInstanceModal=!0,e.canEditInstance=!0}))},showModalNotes:function(){this.instanceModalNotes=!0},saveInstanceModalChanges:function(){var t=this;axios.post("/i/admin/api/instances/update",this.editingInstance).then((function(e){t.showInstanceModal=!1,t.$bvToast.toast("Successfully updated ".concat(e.data.data.domain),{title:"Instance Updated",autoHideDelay:5e3,appendToast:!0,variant:"success"})}))},saveNewInstance:function(){var t=this;axios.post("/i/admin/api/instances/create",this.addNewInstance).then((function(e){t.showInstanceModal=!1,t.instances.unshift(e.data.data)})).catch((function(e){swal("Oops!","An error occured, please try again later.","error"),t.addNewInstance={domain:"",banned:!1,auto_cw:!1,unlisted:!1,notes:void 0}}))},refreshModalStats:function(){var t=this;axios.post("/i/admin/api/instances/refresh-stats",{id:this.instanceModal.id}).then((function(e){t.refreshedModalStats=!0,t.instanceModal=e.data.data,t.editingInstance=e.data.data,t.instances=t.instances.map((function(t){return t.id===e.data.data.id?e.data.data:t}))}))},deleteInstanceModal:function(){var t=this;window.confirm("Are you sure you want to delete this instance? This will not delete posts or profiles from this instance.")&&axios.post("/i/admin/api/instances/delete",{id:this.instanceModal.id}).then((function(e){t.showInstanceModal=!1,t.instances=t.instances.filter((function(e){return e.id!=t.instanceModal.id}))})).then((function(){setTimeout((function(){return t.fetchStats()}),1e3)}))},openImportForm:function(){var t=document.createElement("p");t.classList.add("text-left"),t.classList.add("mb-0"),t.innerHTML='

Import your instance moderation backup.


Import Instructions:

  1. Press OK
  2. Press "Choose File" on Import form input
  3. Select your pixelfed-instances-mod.json file
  4. Review instance moderation actions. Tap on an instance to remove it
  5. Press "Import" button to finish importing
';var e=document.createElement("div");e.appendChild(t),swal({title:"Import Backup",content:e,icon:"info"}),this.showImportForm=!0},downloadBackup:function(t){axios.get("/i/admin/api/instances/download-backup",{responseType:"blob"}).then((function(t){var e=document.createElement("a");e.setAttribute("download","pixelfed-instances-mod.json");var a=URL.createObjectURL(t.data);e.href=a,e.setAttribute("target","_blank"),e.click(),swal("Instance Backup Downloading","Your instance moderation backup is downloading. Use this to import auto_cw, banned and unlisted instances to supported Pixelfed instances.","success")}))},onImportUpload:function(t){var e=this;return r(n().mark((function a(){var s;return n().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.getParsedImport(t.target.files[0]);case 2:if((s=a.sent).hasOwnProperty("version")&&1===s.version){a.next=8;break}return swal("Invalid Backup","We cannot validate this backup. Please try again later.","error"),e.showImportForm=!1,e.$refs.importInput.reset(),a.abrupt("return");case 8:e.importData=s,e.showImportModal=!0;case 10:case"end":return a.stop()}}),a)})))()},getParsedImport:function(t){var e=this;return r(n().mark((function a(){var s,i;return n().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.parseJsonFile(t);case 3:return a.abrupt("return",a.sent);case 6:return a.prev=6,a.t0=a.catch(0),(s=document.createElement("p")).classList.add("text-left"),s.classList.add("mb-0"),s.innerHTML='

An error occured when attempting to parse the import file. Please try again later.


Error message:

'+a.t0.message+"
",(i=document.createElement("div")).appendChild(s),swal({title:"Import Error",content:i,icon:"error"}),a.abrupt("return");case 16:case"end":return a.stop()}}),a,null,[[0,6]])})))()},promisedParseJSON:function(t){return r(n().mark((function e(){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,a){try{e(JSON.parse(t))}catch(t){a(t)}})));case 1:case"end":return e.stop()}}),e)})))()},parseJsonFile:function(t){var e=this;return r(n().mark((function a(){return n().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise((function(a,s){var i=new FileReader;i.onload=function(t){return a(e.promisedParseJSON(t.target.result))},i.onerror=function(t){return s(t)},i.readAsText(t)})));case 1:case"end":return a.stop()}}),a)})))()},filterImportData:function(t,e){switch(t){case"auto_cw":this.importData.auto_cw.splice(e,1);break;case"unlisted":this.importData.unlisted.splice(e,1);break;case"banned":this.importData.banned.splice(e,1)}},completeImport:function(){var t=this;this.showImportForm=!1,axios.post("/i/admin/api/instances/import-data",{banned:this.importData.banned,auto_cw:this.importData.auto_cw,unlisted:this.importData.unlisted}).then((function(t){swal("Import Uploaded","Import successfully uploaded, please allow a few minutes to process.","success")})).then((function(){setTimeout((function(){return t.fetchStats()}),1e3)}))},cancelImport:function(t){if(this.importData.banned.length||this.importData.auto_cw.length||this.importData.unlisted.length){if(!window.confirm("Are you sure you want to cancel importing?"))return void t.preventDefault();this.showImportForm=!1,this.$refs.importInput.value="",this.importData={banned:[],auto_cw:[],unlisted:[]}}},onViewMoreInstance:function(){this.showInstanceModal=!1,window.location.href="/i/admin/instances/show/"+this.instanceModal.id}}}},51839:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(98385),i=a(74692);const n={components:{"admin-report-modal":s.default},data:function(){return{loaded:!1,stats:{total:0,open:0,closed:0,autospam:0,autospam_open:0,remote_open:0},tabIndex:0,reports:[],pagination:{},showReportModal:!1,viewingReport:void 0,viewingReportLoading:!1,autospam:[],autospamPagination:{},autospamLoaded:!1,showSpamReportModal:!1,viewingSpamReport:void 0,viewingSpamReportLoading:!1,remoteReportsLoaded:!1,showRemoteReportModal:void 0,remoteReportModalModel:{}}},mounted:function(){var t=new URLSearchParams(window.location.search);t.has("tab")&&t.has("id")&&"autospam"===t.get("tab")?(this.fetchStats(null,"/i/admin/api/reports/spam/all"),this.fetchSpamReport(t.get("id"))):t.has("tab")&&t.has("id")&&"report"===t.get("tab")?(this.fetchStats(),this.fetchReport(t.get("id"))):(window.history.pushState(null,null,"/i/admin/reports"),this.fetchStats()),this.$root.$on("bv::modal::hide",(function(t,e){window.history.pushState(null,null,"/i/admin/reports")}))},methods:{toggleTab:function(t){switch(t){case 0:this.fetchStats("/i/admin/api/reports/all");break;case 1:this.fetchStats("/i/admin/api/reports/all?filter=closed");break;case 2:this.fetchStats(null,"/i/admin/api/reports/spam/all");break;case 3:this.fetchRemoteReports()}window.history.pushState(null,null,"/i/admin/reports"),this.tabIndex=t},prettyCount:function(t){return t?t.toLocaleString("en-CA",{compactDisplay:"short",notation:"compact"}):t},timeAgo:function(t){return t?App.util.format.timeAgo(t):t},formatDate:function(t){var e=new Date(t);return new Intl.DateTimeFormat("default",{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"}).format(e)},reportLabel:function(t){switch(t.object_type){case"App\\Profile":return"".concat(t.type," Profile");case"App\\Status":return"".concat(t.type," Post");case"App\\Story":return"".concat(t.type," Story")}},fetchStats:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/reports/all",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;axios.get("/i/admin/api/reports/stats").then((function(e){t.stats=e.data})).finally((function(){e?t.fetchReports(e):a&&t.fetchAutospam(a),i('[data-toggle="tooltip"]').tooltip()}))},fetchReports:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/reports/all";axios.get(e).then((function(e){t.reports=e.data.data,t.pagination={next:e.data.links.next,prev:e.data.links.prev}})).finally((function(){t.loaded=!0}))},fetchRemoteReports:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/reports/remote";axios.get(e).then((function(e){t.reports=e.data.data,t.pagination={next:e.data.links.next,prev:e.data.links.prev}})).finally((function(){t.loaded=!0,t.remoteReportsLoaded=!0}))},remoteReportPaginate:function(t){event.currentTarget.blur();var e="next"==t?this.pagination.next:this.pagination.prev;this.fetchRemoteReports(e)},handleCloseRemoteReportModal:function(){this.showRemoteReportModal=!1},showRemoteReport:function(t){this.remoteReportModalModel=t,this.showRemoteReportModal=!0},refreshRemoteReports:function(){var t=this;this.fetchStats(""),this.$nextTick((function(){t.toggleTab(3)}))},paginate:function(t){event.currentTarget.blur();var e="next"==t?this.pagination.next:this.pagination.prev;this.fetchReports(e)},viewReport:function(t){this.viewingReportLoading=!1,this.viewingReport=t,this.showReportModal=!0,window.history.pushState(null,null,"/i/admin/reports?tab=report&id="+t.id),setTimeout((function(){pixelfed.readmore()}),1e3)},handleAction:function(t,e){var a=this;event.currentTarget.blur(),this.viewingReportLoading=!0,"ignore"===e||window.confirm(this.getActionLabel(t,e))?(this.loaded=!1,axios.post("/i/admin/api/reports/handle",{id:this.viewingReport.id,object_id:this.viewingReport.object_id,object_type:this.viewingReport.object_type,action:e,action_type:t}).catch((function(t){swal("Error",t.response.data.error,"error")})).finally((function(){a.viewingReportLoading=!0,a.viewingReport=!1,a.showReportModal=!1,setTimeout((function(){a.fetchStats()}),1e3)}))):this.viewingReportLoading=!1},getActionLabel:function(t,e){if("profile"===t)switch(e){case"ignore":return"Are you sure you want to ignore this profile report?";case"nsfw":return"Are you sure you want to mark this profile as NSFW?";case"unlist":return"Are you sure you want to mark all posts by this profile as unlisted?";case"private":return"Are you sure you want to mark all posts by this profile as private?";case"delete":return"Are you sure you want to delete this profile?"}else if("post"===t)switch(e){case"ignore":return"Are you sure you want to ignore this post report?";case"nsfw":return"Are you sure you want to mark this post as NSFW?";case"unlist":return"Are you sure you want to mark this post as unlisted?";case"private":return"Are you sure you want to mark this post as private?";case"delete":return"Are you sure you want to delete this post?"}else if("story"===t)switch(e){case"ignore":return"Are you sure you want to ignore this story report?";case"delete":return"Are you sure you want to delete this story?";case"delete-all":return"Are you sure you want to delete all stories by this account?"}},fetchAutospam:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/i/admin/api/reports/spam/all";axios.get(e).then((function(e){t.autospam=e.data.data,t.autospamPagination={next:e.data.links.next,prev:e.data.links.prev}})).finally((function(){t.autospamLoaded=!0,t.loaded=!0}))},autospamPaginate:function(t){event.currentTarget.blur();var e="next"==t?this.autospamPagination.next:this.autospamPagination.prev;this.fetchAutospam(e)},viewSpamReport:function(t){this.viewingSpamReportLoading=!1,this.viewingSpamReport=t,this.showSpamReportModal=!0,window.history.pushState(null,null,"/i/admin/reports?tab=autospam&id="+t.id),setTimeout((function(){pixelfed.readmore()}),1e3)},getSpamActionLabel:function(t){switch(t){case"mark-all-read":return"Are you sure you want to mark all spam reports by this account as read?";case"mark-all-not-spam":return"Are you sure you want to mark all spam reports by this account as not spam?";case"delete-profile":return"Are you sure you want to delete this profile?"}},handleSpamAction:function(t){var e=this;event.currentTarget.blur(),this.viewingSpamReportLoading=!0,"mark-not-spam"===t||"mark-read"===t||window.confirm(this.getSpamActionLabel(t))?(this.loaded=!1,axios.post("/i/admin/api/reports/spam/handle",{id:this.viewingSpamReport.id,action:t}).catch((function(t){swal("Error",t.response.data.error,"error")})).finally((function(){e.viewingSpamReportLoading=!0,e.viewingSpamReport=!1,e.showSpamReportModal=!1,setTimeout((function(){e.fetchStats(null,"/i/admin/api/reports/spam/all")}),500)}))):this.viewingSpamReportLoading=!1},fetchReport:function(t){var e=this;axios.get("/i/admin/api/reports/get/"+t).then((function(t){e.tabIndex=0,e.viewReport(t.data.data)})).catch((function(t){e.fetchStats(),window.history.pushState(null,null,"/i/admin/reports")}))},fetchSpamReport:function(t){var e=this;axios.get("/i/admin/api/reports/spam/get/"+t).then((function(t){e.tabIndex=2,e.viewSpamReport(t.data.data)})).catch((function(t){e.fetchStats(),window.history.pushState(null,null,"/i/admin/reports")}))}}}},86871:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(8889),i=a(34429),n=a(7210),o=a(62355);const r={components:{"admin-read-more":s.default,"tab-header":i.default,checkbox:n.default,"form-input":o.default},data:function(){return{loaded:!1,initialData:{},tabIndex:1,tabbies:["landing","branding","media","posts","platform","rules","users","storage"],tabs:[{id:1,title:"Overview",icon:"far fa-home"},{id:"landing",title:"Landing",icon:"far fa-info-circle"},{id:"branding",title:"Branding",icon:"far fa-user-crown"},{id:"media",title:"Media",icon:"far fa-image"},{id:"platform",title:"Platform",icon:"far fa-database"},{id:"posts",title:"Posts",icon:"far fa-heart"},{id:"rules",title:"Rules",icon:"far fa-eye-slash"},{id:"storage",title:"Storage",icon:"far fa-hdd"},{id:"users",title:"Users",icon:"far fa-users"}],isSubmitting:!1,isSubmittingTimeout:!1,isSubmittingTimeoutHandler:void 0,features:[],landing:{current_admin:0},branding:[],media:[],mediaTypes:{jpeg:!1,png:!1,gif:!1,webp:!1,avif:!1,heic:!1,mp4:!1,mov:!1},rules:[],users:[],posts:[],platform:[],storage:[],newRule:void 0,isSubmittingNewRule:!1,isDeletingRule:!1,suggestedRules:[],hasDuplicateRules:!1,showAllRules:!1,showDiskConfig:!1}},computed:{maxMediaSizeToMb:{get:function(){return this.media&&this.media.max_photo_size?(this.media.max_photo_size/1e3).toFixed(2)+" MB":"0.00 MB"}},maxAccountSizeToMb:{get:function(){if(!this.users||!this.users.max_account_size)return"0.00 MB";var t=this.users.max_account_size/1024;return t>1e6?(t/1e6).toFixed(1)+"TB":t>1e3?(t/1024).toFixed(2)+"GB":(this.users.max_account_size/1024).toFixed(2)+" MB"}},rulesComputed:{get:function(){return this.rules&&this.rules.length?this.rules.length>2&&!this.showAllRules?this.rules.slice(0,2):this.rules:[]}},suggestedRulesComputed:{get:function(){var t=this;return this.rules&&this.rules.length?this.suggestedRules.filter((function(e){return!t.rules.includes(e)})):this.suggestedRules}},hasDuplicateRulesComputed:{get:function(){if(!this.rules||!this.rules.length)return!1;var t=this.rules;return t.filter((function(e,a){return t.indexOf(e)!==a})).length}},activeMediaTypes:{get:function(){var t="";return this.mediaTypes.jpeg&&(t+="image/jpeg,"),this.mediaTypes.png&&(t+="image/png,"),this.mediaTypes.gif&&(t+="image/gif,"),this.mediaTypes.webp&&(t+="image/webp,"),this.mediaTypes.mp4&&(t+="video/mp4"),t.endsWith(",")&&(t=t.slice(0,-1)),t}}},mounted:function(){this.fetchInitialData();var t=new URL(window.location.href);if(t.searchParams.has("t")){var e=t.searchParams.get("t");this.tabbies.includes(e)?this.tabIndex=e:window.history.pushState(null,null,"/i/admin/settings")}},methods:{toggleTab:function(t){clearTimeout(this.isSubmittingTimeoutHandler),this.isSubmittingTimeout=!1,this.tabIndex=t,this.showAllRules=!1,this.tabbies.includes(t)?window.history.pushState(null,null,"/i/admin/settings?t="+t):window.history.pushState(null,null,"/i/admin/settings")},fetchInitialData:function(){var t=this;axios.get("/i/admin/api/settings/fetch").then((function(e){t.initialData=e.data,t.features=e.data.features,t.landing=e.data.landing,t.branding=e.data.branding,t.media=e.data.media,t.setMediaTypes(),t.rules=e.data.rules,t.users=e.data.users,t.suggestedRules=e.data.suggested_rules,t.posts=e.data.posts,t.platform=e.data.platform,t.storage=e.data.storage})).then((function(){t.loaded=!0}))},setMediaTypes:function(){var t=this,e=this.media.media_types.split(",");e&&e.length&&e.forEach((function(e){var a=e.split("/")[1];["jpeg","png","gif","webp","mp4"].includes(a)&&(t.mediaTypes[a]=!0)}))},formatCount:function(t){return window.App.util.format.count(t)},formatDateTime:function(t){var e=new Date(t);return new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"short"}).format(e)},formatDate:function(t){var e=new Date(t);return new Intl.DateTimeFormat("en-US",{month:"short",year:"numeric"}).format(e)},formatTimestamp:function(t){return window.App.util.format.timeAgo(t)},handleSave:function(t){switch(this.isSubmitting=!0,t){case"overview":return this.saveHome();case"landing":return this.saveLanding();case"branding":return this.saveBranding();case"posts":return this.savePosts();case"media":return this.saveMedia();case"platform":return this.savePlatform();case"users":return this.saveUsers();case"storage":return this.saveStorage()}},handleAddRule:function(t){var e,a=this;null===(e=t.currentTarget)||void 0===e||e.blur(),this.isSubmittingNewRule=!0,axios.post("/i/admin/api/settings/rules/add",{rule:this.newRule}).then((function(t){a.rules.push(a.newRule),a.newRule=void 0,a.isSubmittingNewRule=!1,a.showAllRules=!0})).catch((function(t){var e;t.response.data&&null!==(e=t.response.data)&&void 0!==e&&e.message&&swal("Error",t.response.data.message,"error"),a.isSubmittingNewRule=!1}))},addSuggestedRule:function(t,e){var a;null===(a=e.currentTarget)||void 0===a||a.blur(),this.newRule=t},importAllDefaultRules:function(t){var e,a=this;null===(e=t.currentTarget)||void 0===e||e.blur(),this.isSubmittingNewRule=!0,this.showAllRules=!0;for(var s=function(){var t=a.suggestedRules[i];setTimeout((function(){axios.post("/i/admin/api/settings/rules/add",{rule:t}).then((function(e){a.rules.push(t)}))}),300*i)},i=this.suggestedRules.length-1;i>=0;i--)s();this.isSubmittingNewRule=!1},handleDeleteRule:function(t,e,a){var s,i=this;null===(s=a.currentTarget)||void 0===s||s.blur(),this.isDeletingRule=!0,axios.post("/i/admin/api/settings/rules/delete",{rule:t}).then((function(t){i.isDeletingRule=!1,i.rules=t.data})).catch((function(t){}))},handleDeleteAllRules:function(t){var e,a=this;null===(e=t.currentTarget)||void 0===e||e.blur(),this.isDeletingRule=!0,swal({title:"Confirm",text:"Are you sure you want to delete all rules?",buttons:!0,dangerMode:!0}).then((function(t){!0===t?axios.post("/i/admin/api/settings/rules/delete/all").then((function(t){a.isDeletingRule=!1,a.rules=[]})).catch((function(t){})):a.isDeletingRule=!1}))},removeAutofollow:function(t,e){var a,s=this;null===(a=e.currentTarget)||void 0===a||a.blur(),axios.post("/i/admin/api/settings/autofollow/delete",{username:t}).then((function(t){s.users.admin_autofollow_accounts=t.data.accounts})).catch((function(t){swal("Oops!","An error occurred, please try again later!","error")}))},addAutofollow:function(t){var e,a=this;null===(e=t.currentTarget)||void 0===e||e.blur(),swal({text:"Enter account username",content:"input",button:{text:"Add Autofollow",closeModal:!1}}).then((function(t){if(!t)throw null;axios.post("/i/admin/api/settings/autofollow/add",{username:t}).then((function(e){e.data.accounts.map((function(t){return t.toLowerCase()})).includes(t.toLowerCase())||swal("Oops!","The account you attempted to add does not exist or cannot be added!","error"),a.users.admin_autofollow_accounts=e.data.accounts,swal.stopLoading(),swal.close()})).catch((function(t){t.response.data&&t.response.data.message?swal("Error",t.response.data.message,"error"):swal("Oops!","The account you attempted to add does not exist or cannot be added!","error"),swal.stopLoading(),swal.close()}))}))},saveHome:function(){var t=this;axios.post("/i/admin/api/settings/update/home",{registration_status:this.features.registration_status,cloud_storage:this.features.cloud_storage,activitypub_enabled:this.features.activitypub_enabled,account_migration:this.features.account_migration,mobile_apis:this.features.mobile_apis,stories:this.features.stories,instagram_import:this.features.instagram_import,autospam_enabled:this.features.autospam_enabled,authorized_fetch:this.features.authorized_fetch}).then((function(e){t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)}))},saveLanding:function(){var t=this;axios.post("/i/admin/api/settings/update/landing",{current_admin:this.landing.current_admin,show_directory:this.landing.show_directory,show_explore:this.landing.show_explore}).then((function(e){t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)}))},saveBranding:function(){var t=this;axios.post("/i/admin/api/settings/update/branding",{name:this.branding.name,short_description:this.branding.short_description,long_description:this.branding.long_description}).then((function(e){t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)}))},savePosts:function(){var t=this;axios.post("/i/admin/api/settings/update/posts",{max_caption_length:this.posts.max_caption_length,max_altext_length:this.posts.max_altext_length}).then((function(e){t.posts=e.data,t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)})).catch((function(e){t.isSubmitting=!1,e.response.data&&e.response.data.message?swal("Error",e.response.data.message,"error"):swal("Oops!","An error occured","error")}))},saveMedia:function(){var t=this;axios.post("/i/admin/api/settings/update/media",{image_quality:this.media.image_quality,max_album_length:this.media.max_album_length,max_photo_size:this.media.max_photo_size,media_types:this.activeMediaTypes,optimize_image:this.media.optimize_image,optimize_video:this.media.optimize_video}).then((function(e){t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)})).catch((function(e){t.isSubmitting=!1,e.response.data&&e.response.data.message?swal("Error",e.response.data.message,"error"):swal("Oops!","An error occured","error")}))},savePlatform:function(){var t=this;axios.post("/i/admin/api/settings/update/platform",{allow_app_registration:this.platform.allow_app_registration,app_registration_rate_limit_attempts:this.platform.app_registration_rate_limit_attempts,app_registration_rate_limit_decay:this.platform.app_registration_rate_limit_decay,app_registration_confirm_rate_limit_attempts:this.platform.app_registration_confirm_rate_limit_attempts,app_registration_confirm_rate_limit_decay:this.platform.app_registration_confirm_rate_limit_decay,allow_post_embeds:this.platform.allow_post_embeds,allow_profile_embeds:this.platform.allow_profile_embeds,captcha_enabled:this.platform.captcha_enabled,captcha_secret:this.platform.captcha_secret,captcha_sitekey:this.platform.captcha_sitekey,captcha_on_login:this.platform.captcha_on_login,captcha_on_register:this.platform.captcha_on_register,custom_emoji_enabled:this.platform.custom_emoji_enabled}).then((function(e){t.platform=e.data,t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)})).catch((function(e){t.isSubmitting=!1,e.response.data&&e.response.data.message?swal("Error",e.response.data.message,"error"):swal("Oops!","An error occured","error")}))},saveUsers:function(){var t=this;axios.post("/i/admin/api/settings/update/users",{require_email_verification:this.users.require_email_verification,enforce_account_limit:this.users.enforce_account_limit,max_account_size:this.users.max_account_size,admin_autofollow:this.users.admin_autofollow,admin_autofollow_accounts:this.users.admin_autofollow_accounts,max_user_blocks:this.users.max_user_blocks,max_user_mutes:this.users.max_user_mutes,max_domain_blocks:this.users.max_domain_blocks}).then((function(e){t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)})).catch((function(e){e.response.data.message?swal("Error",e.response.data.message,"error"):swal("Error","An unexpected error occurred, please try again!","error"),t.isSubmitting=!1}))},saveStorage:function(){var t=this,e=this.showDiskConfig?{primary_disk:this.storage.primary_disk,update_disk:!0,disk_config:this.storage.disk_config}:{primary_disk:this.storage.primary_disk};axios.post("/i/admin/api/settings/update/storage",e).then((function(e){t.features.cloud_storage="cloud"===e.data.primary_disk,t.isSubmitting=!1,t.isSubmittingTimeout=!0,t.isSubmittingTimeoutHandler=setTimeout((function(){t.isSubmittingTimeout=!1}),4e3)})).catch((function(e){if(e.response.data.error)if(e.response.data.s3_vce){var a=document.createElement("div");a.classList.add("text-left"),a.innerHTML=e.response.data.message;var s=document.createElement("div");s.appendChild(a),swal({title:"Invalid S3 Credentials",content:s,icon:"error"})}else swal("Error",e.response.data.message,"error");t.isSubmitting=!1}))},handleChange:function(t,e,a){switch(e){case"features":this.features[a]=t;break;case"landing":this.landing[a]=t;break;case"platform":this.platform[a]=t;break;case"media":this.media[a]=t;break;case"users":this.users[a]=t;break;case"storage":this.storage[a]=t}console.log(t),console.log(a)},handleSubChange:function(t,e,a,s){switch(e){case"features":this.features[a][s]=t;break;case"landing":this.landing[a][s]=t;break;case"platform":this.platform[a][s]=t;break;case"media":this.media[a][s]=t;break;case"users":this.users[a][s]=t;break;case"storage":this.storage[a][s]=t}console.log(t),console.log(a)}},watch:{}}},99697:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(18634),i=a(8889);const n={props:{status:{type:Object}},data:function(){return{showInReplyTo:!1}},components:{"admin-read-more":i.default},methods:{toggleLightbox:function(t){(0,s.default)({el:t.target})},toggleVideoLightbox:function(t,e){(0,s.default)({el:event.target,vidSrc:e})},formatDate:function(t){var e=new Date(t);return new Intl.DateTimeFormat("default",{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"}).format(e)}}}},72173:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{content:{type:String},maxLength:{type:Number,default:140},fontSize:{type:String,default:"13"},step:{type:Boolean,default:!1},stepLimit:{type:Number,default:140},initialLimit:{type:Number,default:10}},computed:{contentText:{get:function(){if(this.step){var t=this.content.length/this.stepLimit;return(1==this.stepIndex||tthis.maxLength&&(this.canExpand=!0),this.expanded?this.content:this.truncate()}}},data:function(){return{expanded:!1,canExpand:!1,canStepExpand:!1,stepIndex:1}},methods:{expand:function(){this.step?(this.stepIndex++,this.canStepExpand=!0):this.expanded=!0},truncate:function(){if(this.content&&this.content.length)return this.content&&this.content.lengththis.stepLimit,this.content.slice(0,this.initialLimit)):this.canStepExpand&&this.stepIndex{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(27707),i=a(8889);const n={props:{open:{type:Boolean,default:!1},model:{type:Object}},components:{"admin-modal-post":s.default,"admin-read-more":i.default},watch:{open:{handler:function(){this.isOpen=this.open},immediate:!0,deep:!0}},data:function(){return{isLoading:!0,isOpen:!1,actions:["mark-read","cw-posts","unlist-posts","private-posts","delete-posts","mark-all-read-by-domain","mark-all-read-by-username","cw-all-posts","unlist-all-posts","private-all-posts"],actionMap:{"cw-posts":"apply content warnings to all post(s) in this report?","unlist-posts":"unlist all post(s) in this report?","delete-posts":"delete all post(s) in this report?","private-posts":"make all post(s) in this report private/followers-only?","mark-all-read-by-domain":"mark all reports by this instance as closed?","mark-all-read-by-username":"mark all reports against this user as closed?","cw-all-posts":"apply content warnings to all post(s) belonging to this account?","unlist-all-posts":"make all post(s) belonging to this account as unlisted?","private-all-posts":"make all post(s) belonging to this account as private?"}}},mounted:function(){var t=this;setTimeout((function(){t.isLoading=!1}),300)},methods:{prettyCount:function(t){return t?t.toLocaleString("en-CA",{compactDisplay:"short",notation:"compact"}):t},timeAgo:function(t){return t?App.util.format.timeAgo(t):t},formatDate:function(t){var e=new Date(t);return new Intl.DateTimeFormat("default",{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"}).format(e)},handleAction:function(t){var e=this;"mark-read"!==t?swal({title:"Confirm",text:"Are you sure you want to "+this.actionMap[t],icon:"warning",buttons:!0,dangerMode:!0}).then((function(a){!0===a&&axios.post("/i/admin/api/reports/remote/handle",{id:e.model.id,action:t}).finally((function(){e.$emit("refresh"),e.$emit("close")}))})):axios.post("/i/admin/api/reports/remote/handle",{id:this.model.id,action:t}).then((function(t){console.log(t.data)})).finally((function(){e.$emit("refresh"),e.$emit("close")}))}}}},4970:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{name:{type:String},value:{type:Boolean},description:{type:String}},computed:{elementId:{get:function(){var t=this.name;return"fec_"+(t=(t=(t=(t=t.toLowerCase()).replace(/[^a-z0-9 -]/g," ")).replace(/\s+/g,"-")).replace(/^-+|-+$/g,""))}}}}},45053:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{name:{type:String},value:{type:String},placeholder:{type:String},description:{type:String},isCard:{type:Boolean,default:!0},isInline:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},computed:{elementId:{get:function(){var t=this.name;return"fec_"+(t=(t=(t=(t=t.toLowerCase()).replace(/[^a-z0-9 -]/g," ")).replace(/\s+/g,"-")).replace(/^-+|-+$/g,""))}}}}},16563:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{title:{type:String},saving:{type:Boolean},saved:{type:Boolean}},computed:{buttonLabel:{get:function(){return this.saved?"Saved":this.saving?"Saving":"Save"}},isSaving:{get:function(){return this.saving}}},methods:{save:function(t){var e;null===(e=t.currentTarget)||void 0===e||e.blur(),this.$emit("save")}}}},69385:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"header bg-primary pb-3 mt-n4"},[e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"header-body"},[e("div",{staticClass:"row align-items-center py-4"},[t._m(0),t._v(" "),e("div",{staticClass:"col-xl-4 col-lg-3 col-md-4"},[e("div",{staticClass:"card card-stats mb-lg-0"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("h5",{staticClass:"card-title text-uppercase text-muted mb-0"},[t._v("Active Autospam")]),t._v(" "),e("span",{staticClass:"h2 font-weight-bold mb-0"},[t._v(t._s(t.formatCount(t.config.open)))])]),t._v(" "),t._m(1)])])])]),t._v(" "),e("div",{staticClass:"col-xl-4 col-lg-3 col-md-4"},[e("div",{staticClass:"card card-stats bg-dark mb-lg-0"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("h5",{staticClass:"card-title text-uppercase text-muted mb-0"},[t._v("Closed Autospam")]),t._v(" "),e("span",{staticClass:"h2 font-weight-bold text-muted mb-0"},[t._v(t._s(t.formatCount(t.config.closed)))])]),t._v(" "),t._m(2)])])])])])])])]),t._v(" "),t.loaded?e("div",{staticClass:"m-n2 m-lg-4"},[e("div",{staticClass:"container-fluid mt-4"},[e("div",{staticClass:"row mb-3 justify-content-between"},[e("div",{staticClass:"col-12"},[e("ul",{staticClass:"nav nav-pills"},[e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:0==t.tabIndex}],on:{click:function(e){return e.preventDefault(),t.toggleTab(0)}}},[t._v("Dashboard")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:"about"==t.tabIndex}],on:{click:function(e){return e.preventDefault(),t.toggleTab("about")}}},[t._v("About / How to Use Autospam")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:"train"==t.tabIndex}],on:{click:function(e){return e.preventDefault(),t.toggleTab("train")}}},[t._v("Train Autospam")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:"closed_reports"==t.tabIndex}],on:{click:function(e){return e.preventDefault(),t.toggleTab("closed_reports")}}},[t._v("Closed Reports")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:"manage_tokens"==t.tabIndex}],on:{click:function(e){return e.preventDefault(),t.toggleTab("manage_tokens")}}},[t._v("Manage Tokens")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:"import_export"==t.tabIndex}],on:{click:function(e){return e.preventDefault(),t.toggleTab("import_export")}}},[t._v("Import/Export")])])])])]),t._v(" "),0===this.tabIndex?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-4"},[null===t.config.autospam_enabled?e("div"):t.config.autospam_enabled?e("div",{staticClass:"card bg-dark",staticStyle:{"min-height":"209px"}},[t._m(3)]):e("div",{staticClass:"card bg-dark",staticStyle:{"min-height":"209px"}},[t._m(4)]),t._v(" "),null===t.config.nlp_enabled?e("div"):t.config.nlp_enabled?e("div",{staticClass:"card bg-dark",staticStyle:{"min-height":"209px"}},[e("div",{staticClass:"card-body text-center"},[t._m(5),t._v(" "),e("p",{staticClass:"lead text-light"},[t._v("Advanced (NLP) Detection Active")]),t._v(" "),e("a",{staticClass:"btn btn-outline-danger btn-block font-weight-bold",class:{disabled:1!=t.config.autospam_enabled},attrs:{href:"#",disabled:1!=t.config.autospam_enabled},on:{click:function(e){return e.preventDefault(),t.disableAdvanced.apply(null,arguments)}}},[t._v("Disable Advanced Detection")])])]):e("div",{staticClass:"card bg-dark",staticStyle:{"min-height":"209px"}},[e("div",{staticClass:"card-body text-center"},[t._m(6),t._v(" "),e("p",{staticClass:"lead text-danger font-weight-bold"},[t._v("Advanced (NLP) Detection Inactive")]),t._v(" "),e("a",{staticClass:"btn btn-primary btn-block font-weight-bold",class:{disabled:1!=t.config.autospam_enabled},attrs:{href:"#",disabled:1!=t.config.autospam_enabled},on:{click:function(e){return e.preventDefault(),t.enableAdvanced.apply(null,arguments)}}},[t._v("Enable Advanced Detection")])])])]),t._v(" "),t._m(7)]):"about"===this.tabIndex?e("div",[t._m(8)]):"train"===this.tabIndex?e("div",[t._m(9),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card bg-dark"},[e("div",{staticClass:"card-header bg-gradient-primary text-white font-weight-bold"},[t._v("Train Spam Posts")]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"d-flex flex-column align-items-center justify-content-center py-4",staticStyle:{gap:"1rem"}},[t._m(10),t._v(" "),e("p",{staticClass:"lead text-lighter"},[t._v("Use existing posts marked as spam to train Autospam")]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-lg font-weight-bold btn-block",class:{disabled:t.config.files.spam.exists},attrs:{disabled:t.config.files.spam.exists},on:{click:function(e){return e.preventDefault(),t.autospamTrainSpam.apply(null,arguments)}}},[t._v("\n\t \t\t\t\t\t\t"+t._s(t.config.files.spam.exists?"Already trained":"Train Spam")+"\n\t \t\t\t\t\t")])])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card bg-dark"},[e("div",{staticClass:"card-header bg-gradient-primary text-white font-weight-bold"},[t._v("Train Non-Spam Posts")]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"d-flex flex-column align-items-center justify-content-center py-4",staticStyle:{gap:"1rem"}},[t._m(11),t._v(" "),e("p",{staticClass:"lead text-lighter"},[t._v("Use posts from trusted users to train non-spam posts")]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-lg font-weight-bold btn-block",class:{disabled:t.config.files.ham.exists},attrs:{disabled:t.config.files.ham.exists},on:{click:function(e){return e.preventDefault(),t.autospamTrainNonSpam.apply(null,arguments)}}},[t._v("\n\t \t\t\t\t\t\t"+t._s(t.config.files.ham.exists?"Already trained":"Train Non-Spam")+"\n\t \t\t\t\t\t")])])])])])])]):"closed_reports"===this.tabIndex?e("div",[t.closedReportsFetched?[e("div",{staticClass:"table-responsive rounded"},[e("table",{staticClass:"table table-dark"},[t._m(12),t._v(" "),e("tbody",t._l(t.closedReports.data,(function(a,s){return e("tr",{key:"closed_reports"+a.id+s},[e("td",{staticClass:"font-weight-bold text-monospace text-muted align-middle"},[t._v("\n\t\t \t"+t._s(a.id)+"\n\t\t ")]),t._v(" "),t._m(13,!0),t._v(" "),e("td",{staticClass:"align-middle"},[a.status&&a.status.account?e("a",{staticClass:"text-white",attrs:{href:"/i/web/profile/".concat(a.status.account.id),target:"_blank"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[e("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:a.status.account.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),t._v(" "),e("div",{staticClass:"d-flex flex-column"},[e("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"14px"}},[t._v("@"+t._s(a.status.account.username))]),t._v(" "),e("div",{staticClass:"d-flex small text-muted mb-0",staticStyle:{gap:"0.5rem"}},[e("span",[t._v(t._s(a.status.account.followers_count)+" Followers")]),t._v(" "),e("span",[t._v("·")]),t._v(" "),e("span",[t._v("Joined "+t._s(t.timeAgo(a.status.account.created_at)))])])])])]):t._e()]),t._v(" "),e("td",{staticClass:"font-weight-bold align-middle"},[t._v(t._s(t.timeAgo(a.created_at)))]),t._v(" "),e("td",{staticClass:"align-middle"},[e("a",{staticClass:"btn btn-primary btn-sm",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.viewSpamReport(a)}}},[t._v("View")])])])})),0)])]),t._v(" "),t.closedReportsFetched&&t.closedReports&&t.closedReports.data.length?e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!t.closedReports.links.prev},on:{click:function(e){return t.autospamPaginate("prev")}}},[t._v("\n\t\t Prev\n\t\t ")]),t._v(" "),e("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!t.closedReports.links.next},on:{click:function(e){return t.autospamPaginate("next")}}},[t._v("\n\t\t Next\n\t\t ")])]):t._e()]:[e("div",{staticClass:"d-flex justify-content-center align-items-center py-5"},[e("b-spinner")],1)]],2):"manage_tokens"===this.tabIndex?e("div",[e("div",{staticClass:"row align-items-center mb-3"},[t._m(14),t._v(" "),e("div",{staticClass:"col-12 col-md-3"},[e("a",{staticClass:"btn btn-primary btn-lg btn-block",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showCreateTokenModal=!0}}},[e("i",{staticClass:"far fa-plus fa-lg mr-1"}),t._v("\n \t\t\t\tCreate New Token\n \t\t\t")])])]),t._v(" "),t.customTokensFetched?[t.customTokens&&t.customTokens.data&&t.customTokens.data.length?[e("div",{staticClass:"table-responsive rounded"},[e("table",{staticClass:"table table-dark"},[t._m(15),t._v(" "),e("tbody",t._l(t.customTokens.data,(function(a,s){return e("tr",{key:"ct"+a.id+s},[e("td",{staticClass:"font-weight-bold text-monospace text-muted align-middle"},[t._v("\n\t\t\t \t"+t._s(a.id)+"\n\t\t\t ")]),t._v(" "),e("td",{staticClass:"align-middle"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(a.token))])]),t._v(" "),e("td",{staticClass:"align-middle"},[e("p",{staticClass:"text-capitalize mb-0"},[t._v(t._s(a.category))])]),t._v(" "),e("td",{staticClass:"align-middle"},[e("p",{staticClass:"text-capitalize mb-0"},[t._v(t._s(a.weight))])]),t._v(" "),e("td",{staticClass:"font-weight-bold align-middle"},[t._v(t._s(t.timeAgo(a.created_at)))]),t._v(" "),e("td",{staticClass:"font-weight-bold align-middle"},[e("a",{staticClass:"btn btn-primary btn-sm font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openEditTokenModal(a)}}},[t._v("Edit")])])])})),0)])]),t._v(" "),t.customTokensFetched&&t.customTokens&&t.customTokens.data.length?e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!t.customTokens.prev_page_url},on:{click:function(e){return t.autospamTokenPaginate("prev")}}},[t._v("\n\t\t\t Prev\n\t\t\t ")]),t._v(" "),e("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!t.customTokens.next_page_url},on:{click:function(e){return t.autospamTokenPaginate("next")}}},[t._v("\n\t\t\t Next\n\t\t\t ")])]):t._e()]:e("div",[t._m(16)])]:[e("div",{staticClass:"d-flex justify-content-center align-items-center py-5"},[e("b-spinner")],1)]],2):"import_export"===this.tabIndex?e("div",[t._m(17),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card bg-dark"},[e("div",{staticClass:"card-header font-weight-bold"},[t._v("Import Training Data")]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"d-flex flex-column align-items-center justify-content-center py-4",staticStyle:{gap:"1rem"}},[t._m(18),t._v(" "),e("p",{staticClass:"lead text-lighter"},[t._v("Make sure the file you are importing is a valid training data export!")]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-lg font-weight-bold btn-block",on:{click:function(e){return e.preventDefault(),t.handleImport.apply(null,arguments)}}},[t._v("Upload Import")])])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card bg-dark"},[e("div",{staticClass:"card-header font-weight-bold"},[t._v("Export Training Data")]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"d-flex flex-column align-items-center justify-content-center py-4",staticStyle:{gap:"1rem"}},[t._m(19),t._v(" "),e("p",{staticClass:"lead text-lighter"},[t._v("Only share training data with people you trust. It can be used by spammers to bypass detection!")]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-lg font-weight-bold btn-block",on:{click:function(e){return e.preventDefault(),t.downloadExport.apply(null,arguments)}}},[t._v("Download Export")])])])])])])]):t._e()])]):e("div",{staticClass:"my-5 text-center"},[e("b-spinner")],1),t._v(" "),e("b-modal",{attrs:{title:"Autospam Post","ok-only":!0,"ok-title":"Close","ok-variant":"outline-primary"},model:{value:t.showSpamReportModal,callback:function(e){t.showSpamReportModal=e},expression:"showSpamReportModal"}},[t.viewingSpamReportLoading?e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("b-spinner")],1):[e("div",{staticClass:"list-group list-group-horizontal mt-3"},[t.viewingSpamReport&&t.viewingSpamReport.status&&t.viewingSpamReport.status.account?e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[e("div",{staticClass:"text-muted small font-weight-bold mt-n1"},[t._v("Reported Account")]),t._v(" "),t.viewingSpamReport.status.account&&t.viewingSpamReport.status.account.id?e("a",{staticClass:"text-primary",attrs:{href:"/i/web/profile/".concat(t.viewingSpamReport.status.account.id),target:"_blank"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[e("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:t.viewingSpamReport.status.account.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),t._v(" "),e("div",{staticClass:"d-flex flex-column"},[e("p",{staticClass:"font-weight-bold mb-0 text-break",class:[t.viewingSpamReport.status.account.is_admin?"text-danger":""],staticStyle:{"font-size":"12px","max-width":"140px","line-height":"16px"}},[t._v("@"+t._s(t.viewingSpamReport.status.account.acct))]),t._v(" "),e("div",{staticClass:"d-flex text-muted mb-0",staticStyle:{"font-size":"10px",gap:"0.5rem"}},[e("span",[t._v(t._s(t.viewingSpamReport.status.account.followers_count)+" Followers")]),t._v(" "),e("span",[t._v("·")]),t._v(" "),e("span",[t._v("Joined "+t._s(t.timeAgo(t.viewingSpamReport.status.account.created_at)))])])])])]):t._e()]):t._e()]),t._v(" "),t.viewingSpamReport&&t.viewingSpamReport.status?e("div",{staticClass:"list-group mt-3"},[t.viewingSpamReport&&t.viewingSpamReport.status&&t.viewingSpamReport.status.media_attachments.length?e("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[e("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[e("div",[t._v("Reported Post")]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.viewingSpamReport.status.url,target:"_blank"}},[t._v("View")])]),t._v(" "),"image"===t.viewingSpamReport.status.media_attachments[0].type?e("img",{staticClass:"rounded",staticStyle:{"object-fit":"cover"},attrs:{src:t.viewingSpamReport.status.media_attachments[0].url,height:"140",onerror:"this.src='/storage/no-preview.png';this.error=null;"}}):"video"===t.viewingSpamReport.status.media_attachments[0].type?e("video",{attrs:{height:"140",controls:"",src:t.viewingSpamReport.status.media_attachments[0].url,onerror:"this.src='/storage/no-preview.png';this.onerror=null;"}}):t._e()]):t._e(),t._v(" "),t.viewingSpamReport&&t.viewingSpamReport.status&&t.viewingSpamReport.status.content_text&&t.viewingSpamReport.status.content_text.length?e("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[e("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[e("div",[t._v("Reported Post Caption")]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.viewingSpamReport.status.url,target:"_blank"}},[t._v("View")])]),t._v(" "),e("p",{staticClass:"mb-0 read-more",staticStyle:{"font-size":"12px","overflow-y":"hidden"}},[t._v(t._s(t.viewingSpamReport.status.content_text))])]):t._e()]):t._e()]],2),t._v(" "),e("b-modal",{attrs:{title:"Train Non-Spam","ok-only":!0,"ok-title":"Close","ok-variant":"outline-primary"},model:{value:t.showNonSpamModal,callback:function(e){t.showNonSpamModal=e},expression:"showNonSpamModal"}},[e("p",{staticClass:"small font-weight-bold"},[t._v("Select trusted accounts to train non-spam posts against!")]),t._v(" "),!t.nonSpamAccounts||t.nonSpamAccounts.length<10?e("autocomplete",{ref:"autocomplete",attrs:{search:t.composeSearch,disabled:t.searchLoading,placeholder:"Search by username","aria-label":"Search by username","get-result-value":t.getTagResultValue},on:{submit:t.onSearchResultClick},scopedSlots:t._u([{key:"result",fn:function(a){var s=a.result,i=a.props;return[e("li",t._b({staticClass:"autocomplete-result d-flex align-items-center",staticStyle:{gap:"0.5rem"}},"li",i,!1),[e("img",{staticClass:"rounded-circle",attrs:{src:s.avatar,width:"32",height:"32",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),t._v(" "),e("div",{staticClass:"font-weight-bold"},[t._v("\n "+t._s(s.username)+"\n ")])])]}}],null,!1,565605044)}):t._e(),t._v(" "),e("div",{staticClass:"list-group mt-3"},t._l(t.nonSpamAccounts,(function(a,s){return e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"d-flex align-items-center justify-content-between"},[e("div",{staticClass:"d-flex flex-row align-items-center",staticStyle:{gap:"0.5rem"}},[e("img",{staticClass:"rounded-circle",attrs:{src:a.avatar,width:"32",height:"32",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),t._v(" "),e("div",{staticClass:"font-weight-bold"},[t._v("\n\t "+t._s(a.username)+"\n\t ")])]),t._v(" "),e("a",{staticClass:"text-danger",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.autospamTrainNonSpamRemove(s)}}},[e("i",{staticClass:"fas fa-trash"})])])])})),0),t._v(" "),t.nonSpamAccounts&&t.nonSpamAccounts.length?e("div",{staticClass:"mt-3"},[e("a",{staticClass:"btn btn-primary btn-lg font-weight-bold btn-block",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.autospamTrainNonSpamSubmit.apply(null,arguments)}}},[t._v("Train non-spam posts on trusted accounts")])]):t._e()],1),t._v(" "),e("b-modal",{attrs:{title:"Create New Token","cancel-title":"Close","cancel-variant":"outline-primary","ok-title":"Save","ok-variant":"primary"},on:{ok:t.handleSaveToken},model:{value:t.showCreateTokenModal,callback:function(e){t.showCreateTokenModal=e},expression:"showCreateTokenModal"}},[e("div",{staticClass:"list-group mt-3"},[e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Token")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customTokenForm.token,expression:"customTokenForm.token"}],staticClass:"form-control",domProps:{value:t.customTokenForm.token},on:{input:function(e){e.target.composing||t.$set(t.customTokenForm,"token",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Weight")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customTokenForm.weight,expression:"customTokenForm.weight"}],staticClass:"form-control",attrs:{type:"number",min:"-128",max:"128",step:"1"},domProps:{value:t.customTokenForm.weight},on:{input:function(e){e.target.composing||t.$set(t.customTokenForm,"weight",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Category")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.customTokenForm.category,expression:"customTokenForm.category"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.customTokenForm,"category",e.target.multiple?a:a[0])}}},[e("option",{attrs:{value:"spam"}},[t._v("Is Spam")]),t._v(" "),e("option",{attrs:{value:"ham"}},[t._v("Is NOT Spam")])])])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Note")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.customTokenForm.note,expression:"customTokenForm.note"}],staticClass:"form-control",domProps:{value:t.customTokenForm.note},on:{input:function(e){e.target.composing||t.$set(t.customTokenForm,"note",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Active")])]),t._v(" "),e("div",{staticClass:"col-8 text-right"},[e("div",{staticClass:"custom-control custom-checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customTokenForm.active,expression:"customTokenForm.active"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"customCheck1"},domProps:{checked:Array.isArray(t.customTokenForm.active)?t._i(t.customTokenForm.active,null)>-1:t.customTokenForm.active},on:{change:function(e){var a=t.customTokenForm.active,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&t.$set(t.customTokenForm,"active",a.concat([null])):n>-1&&t.$set(t.customTokenForm,"active",a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customTokenForm,"active",i)}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"customCheck1"}})])])])])])]),t._v(" "),e("b-modal",{attrs:{title:"Edit Token","cancel-title":"Close","cancel-variant":"outline-primary","ok-title":"Update","ok-variant":"primary"},on:{ok:t.handleUpdateToken},model:{value:t.showEditTokenModal,callback:function(e){t.showEditTokenModal=e},expression:"showEditTokenModal"}},[e("div",{staticClass:"list-group mt-3"},[e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Token")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("input",{staticClass:"form-control",attrs:{disabled:""},domProps:{value:t.editCustomTokenForm.token}})])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Weight")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.editCustomTokenForm.weight,expression:"editCustomTokenForm.weight"}],staticClass:"form-control",attrs:{type:"number",min:"-128",max:"128",step:"1"},domProps:{value:t.editCustomTokenForm.weight},on:{input:function(e){e.target.composing||t.$set(t.editCustomTokenForm,"weight",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Category")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.editCustomTokenForm.category,expression:"editCustomTokenForm.category"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.editCustomTokenForm,"category",e.target.multiple?a:a[0])}}},[e("option",{attrs:{value:"spam"}},[t._v("Is Spam")]),t._v(" "),e("option",{attrs:{value:"ham"}},[t._v("Is NOT Spam")])])])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Note")])]),t._v(" "),e("div",{staticClass:"col-8"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.editCustomTokenForm.note,expression:"editCustomTokenForm.note"}],staticClass:"form-control",domProps:{value:t.editCustomTokenForm.note},on:{input:function(e){e.target.composing||t.$set(t.editCustomTokenForm,"note",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"},[e("p",{staticClass:"mb-0 font-weight-bold small"},[t._v("Active")])]),t._v(" "),e("div",{staticClass:"col-8 text-right"},[e("div",{staticClass:"custom-control custom-checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.editCustomTokenForm.active,expression:"editCustomTokenForm.active"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"customCheck1"},domProps:{checked:Array.isArray(t.editCustomTokenForm.active)?t._i(t.editCustomTokenForm.active,null)>-1:t.editCustomTokenForm.active},on:{change:function(e){var a=t.editCustomTokenForm.active,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&t.$set(t.editCustomTokenForm,"active",a.concat([null])):n>-1&&t.$set(t.editCustomTokenForm,"active",a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.editCustomTokenForm,"active",i)}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"customCheck1"}})])])])])])])],1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-xl-4 col-lg-6 col-md-4"},[e("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[t._v("Autospam")]),t._v(" "),e("p",{staticClass:"text-lighter"},[t._v("The automated spam detection system")])])},function(){var t=this._self._c;return t("div",{staticClass:"col-auto"},[t("div",{staticClass:"icon icon-shape bg-gradient-primary text-white rounded-circle shadow"},[t("i",{staticClass:"far fa-sensor-alert"})])])},function(){var t=this._self._c;return t("div",{staticClass:"col-auto"},[t("div",{staticClass:"icon icon-shape bg-gradient-primary text-white rounded-circle shadow"},[t("i",{staticClass:"far fa-shield-alt"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body text-center"},[e("p",[e("i",{staticClass:"far fa-check-circle fa-5x text-success"})]),t._v(" "),e("p",{staticClass:"lead text-light mb-0"},[t._v("Autospam Service Operational")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body text-center"},[e("p",[e("i",{staticClass:"far fa-exclamation-circle fa-5x text-danger"})]),t._v(" "),e("p",{staticClass:"lead text-danger font-weight-bold mb-0"},[t._v("Autospam Service Inactive")]),t._v(" "),e("p",{staticClass:"small text-light mb-0"},[t._v("To activate, "),e("a",{attrs:{href:"/i/admin/settings"}},[t._v("click here")]),t._v(" and enable "),e("span",{staticClass:"font-weight-bold"},[t._v("Spam detection")])])])},function(){var t=this._self._c;return t("p",[t("i",{staticClass:"far fa-check-circle fa-5x text-success"})])},function(){var t=this._self._c;return t("p",[t("i",{staticClass:"far fa-exclamation-circle fa-5x text-danger"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-8"},[e("div",{staticClass:"card bg-default"},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h6",{staticClass:"text-light text-uppercase ls-1 mb-1"},[t._v("Stats")]),t._v(" "),e("h5",{staticClass:"h3 text-white mb-0"},[t._v("Autospam Detections")])])])]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"chart"},[e("canvas",{staticClass:"chart-canvas",attrs:{id:"c1-dark"}})])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"card card-body"},[e("h1",[t._v("About Autospam")]),t._v(" "),e("p",{staticClass:"mb-0"},[t._v("To detect and mitigate spam, we built Autospam, an internal tool that uses NLP and other behavioural metrics to classify potential spam posts.")]),t._v(" "),e("hr"),t._v(" "),e("h2",[t._v("Standard Detection")]),t._v(" "),e("p",[t._v('Standard or "Classic" detection works by evaluating several "signals" from the post and it\'s associated account.')]),t._v(" "),e("p",[t._v('Some of the following "signals" may trigger a positive detection from public posts:')]),t._v(" "),e("ul",[e("li",[t._v("Account is less than 6 months old")]),t._v(" "),e("li",[t._v("Account has less than 100 followers")]),t._v(" "),e("li",[t._v("Post contains one or more of: "),e("span",{staticClass:"badge badge-primary"},[t._v("https://")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v("http://")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v("hxxps://")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v("hxxp://")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v("www.")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v(".com")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v(".net")]),t._v(" "),e("span",{staticClass:"badge badge-primary"},[t._v(".org")])])]),t._v(" "),e("p",[t._v("If you've marked atleast one positive detection from an account as "),e("span",{staticClass:"font-weight-bold"},[t._v("Not spam")]),t._v(", any future posts they create will skip detection.")]),t._v(" "),e("hr"),t._v(" "),e("h2",[t._v("Advanced Detection")]),t._v(" "),e("p",[t._v("Advanced Detection works by using a statistical method that combines prior knowledge and observed data to estimate an average value. It assigns weights to both the prior knowledge and the observed data, allowing for a more informed and reliable estimation that adapts to new information.")]),t._v(" "),e("p",[t._v("When you train Spam or Not Spam data, the caption is broken up into words (tokens) and are counted (weights) and then stored in the appropriate category (Spam or Not Spam).")]),t._v(" "),e("p",[t._v("The training data is then used to classify spam on future posts (captions) by calculating each token and associated weights and comparing it to known categories (Spam or Not Spam).")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"card card-body"},[e("p",{staticClass:"mb-0"},[t._v("\n\t \t\t\t\tIn order for Autospam to be effective, you need to train it by classifying data as spam or not-spam.\n\t \t\t\t")]),t._v(" "),e("p",{staticClass:"mb-0 small"},[t._v("\n\t \t\t\t\tWe recommend atleast 200 classifications for both spam and not-spam, it is important to train Autospam on both so you get more accurate results.\n\t \t\t\t")])])])])},function(){var t=this._self._c;return t("p",{staticClass:"mb-0"},[t("i",{staticClass:"far fa-sensor-alert fa-5x text-danger"})])},function(){var t=this._self._c;return t("p",{staticClass:"mb-0"},[t("i",{staticClass:"far fa-check-circle fa-5x text-success"})])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("ID")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Type")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Reported Account")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Created")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("View Report")])])])},function(){var t=this._self._c;return t("td",{staticClass:"align-middle"},[t("p",{staticClass:"text-capitalize font-weight-bold mb-0"},[this._v("Autospam Post")])])},function(){var t=this._self._c;return t("div",{staticClass:"col-12 col-md-9"},[t("div",{staticClass:"card card-body mb-0"},[t("p",{staticClass:"mb-0"},[this._v("\n\t \t\t\t\tTokens are used to split paragraphs and sentences into smaller units that can be more easily assigned meaning.\n\t \t\t\t")])])])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("ID")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Token")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Category")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Weight")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Created")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Edit")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card"},[e("div",{staticClass:"card-body text-center py-5"},[e("p",{staticClass:"pt-5"},[e("i",{staticClass:"far fa-inbox fa-4x text-light"})]),t._v(" "),e("p",{staticClass:"lead mb-5"},[t._v("No custom tokens found!")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"card card-body"},[e("p",{staticClass:"mb-0"},[t._v("\n\t \t\t\t\tYou can import and export Spam training data\n\t \t\t\t")]),t._v(" "),e("p",{staticClass:"mb-0 small"},[t._v("\n\t \t\t\t\tWe recommend exercising caution when importing training data from untrusted parties!\n\t \t\t\t")])])])])},function(){var t=this._self._c;return t("p",{staticClass:"mb-0"},[t("i",{staticClass:"far fa-plus-circle fa-5x text-light"})])},function(){var t=this._self._c;return t("p",{staticClass:"mb-0"},[t("i",{staticClass:"far fa-download fa-5x text-light"})])}]},41298:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return t.loaded?e("div",[e("div",{staticClass:"header bg-primary pb-2 mt-n4"},[e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"header-body"},[e("div",{staticClass:"row align-items-center py-4"},[t._m(0),t._v(" "),e("div",{staticClass:"col-lg-6 col-5"},[e("p",{staticClass:"text-right"},[e("button",{staticClass:"btn btn-outline-white btn-lg px-5 py-2",on:{click:t.save}},[t._v("Save changes")])])])])])])]),t._v(" "),e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-3"},[e("div",{staticClass:"nav-wrapper"},[e("div",{staticClass:"nav flex-column nav-pills",attrs:{id:"tabs-icons-text",role:"tablist","aria-orientation":"vertical"}},t._l(t.tabs,(function(a){return e("div",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link mb-sm-3",class:{active:t.tabIndex===a.id},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab(a.id)}}},[e("i",{class:a.icon}),t._v(" "),e("span",{staticClass:"ml-2"},[t._v(t._s(a.title))])])])})),0)])]),t._v(" "),e("div",{staticClass:"col-12 col-md-9"},[e("div",{staticClass:"card shadow mt-3"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"tab-content"},[1===t.tabIndex?e("div",{staticClass:"tab-pane fade show active"},[t.isSubmitting||t.state.awaiting_approval||t.state.is_active?t.isSubmitting||!t.state.awaiting_approval||t.state.is_active?!t.isSubmitting&&t.state.awaiting_approval&&t.state.is_active?e("div",[t._m(3)]):t.isSubmitting||t.state.awaiting_approval||!t.state.is_active?t.isSubmitting?e("div",[e("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[e("b-spinner",{attrs:{variant:"primary"}}),t._v(" "),e("p",{staticClass:"lead my-0 text-primary"},[t._v("Sending submission...")])],1)]):e("div",[t._m(6)]):e("div",[e("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[e("h2",{staticClass:"font-weight-bold"},[t._v("Active Listing")]),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),e("button",{staticClass:"btn btn-primary btn-sm mt-3 font-weight-bold px-5 text-uppercase",on:{click:t.handleSubmit}},[t._v("\n Update my listing on pixelfed.org\n ")])])]):e("div",[t._m(2)]):e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("div",{staticClass:"text-center mb-4"},[t._m(1),t._v(" "),e("p",{staticClass:"display-3 mb-1"},[t._v("Awaiting Submission")]),t._v(" "),t.state.is_eligible||t.state.submission_exists?t.state.is_eligible&&!t.state.submission_exists?e("div",{staticClass:"mb-4"},[e("p",{staticClass:"lead mt-0 text-muted"},[t._v("Your directory listing is ready for submission!")]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-lg font-weight-bold px-5 text-uppercase",on:{click:t.handleSubmit}},[t._v("\n Submit my Server to pixelfed.org\n ")])]):t._e():e("p",{staticClass:"lead mt-0 text-muted"},[t._v("Your directory listing isn't completed yet")])])]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card text-left"},[e("div",{staticClass:"list-group list-group-flush"},[e("div",{staticClass:"list-group-item"},[!0===t.requirements.curated_onboarding?[e("i",{staticClass:"far fa-exclamation-circle text-success"}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n Curated account registration\n ")])]:[e("i",{staticClass:"far",class:[t.requirements.open_registration?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.requirements.open_registration?"Open":"Closed")+" account registration\n ")])]],2),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.requirements.oauth_enabled?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.requirements.oauth_enabled?"Enabled":"Disabled")+" mobile apis/oauth\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.requirements.activitypub_enabled?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.requirements.activitypub_enabled?"Enabled":"Disabled")+" activitypub federation\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.form.summary&&t.form.summary.length&&t.form.location&&t.form.location.length?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.form.summary&&t.form.summary.length&&t.form.location&&t.form.location.length?"Configured":"Missing")+" server details\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.requirements_validator&&0==t.requirements_validator.length?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.requirements_validator&&0==t.requirements_validator.length?"Valid":"Invalid")+" feature requirements\n ")])])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card text-left"},[e("div",{staticClass:"list-group list-group-flush"},[e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.form.contact_account?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.form.contact_account?"Configured":"Missing")+" admin account\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.form.contact_email?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.form.contact_email?"Configured":"Missing")+" contact email\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.selectedPosts&&t.selectedPosts.length?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.selectedPosts&&t.selectedPosts.length?"Configured":"Missing")+" favourite posts\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.form.privacy_pledge?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.form.privacy_pledge?"Configured":"Missing")+" privacy pledge\n ")])]),t._v(" "),e("div",{staticClass:"list-group-item"},[e("i",{staticClass:"far",class:[t.communityGuidelines&&t.communityGuidelines.length?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),e("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.communityGuidelines&&t.communityGuidelines.length?"Configured":"Missing")+" community guidelines\n ")])])])])])])]):2===t.tabIndex?e("div",{staticClass:"tab-pane fade show active"},[e("p",{staticClass:"description"},[t._v("Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.")])]):3===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("Server Details")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("Edit your server details to better describe it")]),t._v(" "),e("hr",{staticClass:"mt-0"}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card shadow-none border card-body"},[e("div",{staticClass:"form-group mb-0"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Summary")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.summary,expression:"form.summary"}],staticClass:"form-control form-control-muted",attrs:{id:"form-summary",rows:"3",placeholder:"A descriptive summary of your instance up to 140 characters long. HTML is not allowed."},domProps:{value:t.form.summary},on:{input:function(e){e.target.composing||t.$set(t.form,"summary",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-muted text-right"},[t._v("\n "+t._s(t.form.summary&&t.form.summary.length?t.form.summary.length:0)+"/140\n ")])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card shadow-none border card-body"},[e("div",{staticClass:"form-group mb-0"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Location")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.location,expression:"form.location"}],staticClass:"form-control form-control-muted",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"location",e.target.multiple?a:a[0])}}},[e("option",{attrs:{selected:"",disabled:"",value:"0"}},[t._v("Select the country your server is in")]),t._v(" "),t._l(t.initialData.countries,(function(a){return e("option",{domProps:{value:a}},[t._v(t._s(a))])}))],2),t._v(" "),e("p",{staticClass:"form-text small text-muted"},[t._v("Select the country your server is hosted in, even if you are in a different country")])])])])]),t._v(" "),e("div",{staticClass:"list-group mb-4"},[e("div",{staticClass:"list-group-item"},[e("label",{staticClass:"font-weight-bold mb-0"},[t._v("Server Banner")]),t._v(" "),e("p",{staticClass:"small"},[t._v("Add an optional banner image to your directory listing")]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card mb-0 shadow-none border"},[t.form.banner_image?e("div",[e("a",{attrs:{href:t.form.banner_image,target:"_blank"}},[e("img",{staticClass:"card-img-top",attrs:{src:t.form.banner_image}})])]):e("div",{staticClass:"card-body bg-primary text-white"},[t._m(7),t._v(" "),e("p",{staticClass:"text-center mb-0"},[t._v("No banner image")])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[t.isUploadingBanner?e("div",{staticClass:"text-center"},[e("b-spinner",{attrs:{variant:"primary"}})],1):e("div",{staticClass:"custom-file"},[e("input",{ref:"bannerImageRef",staticClass:"custom-file-input",attrs:{type:"file",id:"banner_image"},on:{change:t.uploadBannerImage}}),t._v(" "),e("label",{staticClass:"custom-file-label",attrs:{for:"banner_image"}},[t._v("Choose file")]),t._v(" "),e("p",{staticClass:"form-text text-muted small mb-0"},[t._v("Must be 1920 by 1080 pixels")]),t._v(" "),t._m(8),t._v(" "),t.form.banner_image&&!t.form.banner_image.endsWith("default.jpg")?e("div",[e("button",{staticClass:"btn btn-danger font-weight-bold btn-block mt-5",on:{click:t.deleteBannerImage}},[t._v("Delete banner image")])]):t._e()])])])])]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card shadow-none border card-body"},[e("div",{staticClass:"form-group mb-0"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Primary Language")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.primary_locale,expression:"form.primary_locale"}],staticClass:"form-control form-control-muted",attrs:{disabled:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"primary_locale",e.target.multiple?a:a[0])}}},t._l(t.initialData.available_languages,(function(a){return e("option",{domProps:{value:a.code}},[t._v(t._s(a.name))])})),0),t._v(" "),t._m(9)])])])])]):4===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("Admin Contact")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("Set a designated admin account and public email address")]),t._v(" "),e("hr",{staticClass:"mt-0"}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[t.initialData.admins.length?e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Designated Admin")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.contact_account,expression:"form.contact_account"}],staticClass:"form-control form-control-muted",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"contact_account",e.target.multiple?a:a[0])}}},[e("option",{attrs:{disabled:"",value:"0"}},[t._v("Select a designated admin")]),t._v(" "),t._l(t.initialData.admins,(function(a,s){return e("option",{key:"pfc-"+a+s,domProps:{value:a.pid}},[t._v(t._s(a.username))])}))],2)]):e("div",{staticClass:"px-3 pb-2 pt-0 border border-danger rounded"},[e("p",{staticClass:"lead font-weight-bold text-danger"},[t._v("No admin(s) found")]),t._v(" "),t._m(10)])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Public Email")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.contact_email,expression:"form.contact_email"}],staticClass:"form-control form-control-muted",attrs:{placeholder:"info@example.org"},domProps:{value:t.form.contact_email},on:{input:function(e){e.target.composing||t.$set(t.form,"contact_email",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-muted"},[t._v("\n Must be a valid email address\n ")])])])])]):5===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("Favourite Posts")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("Show off a few favourite posts from your server")]),t._v(" "),e("hr",{staticClass:"mt-0 mb-1"}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.selectedPosts&&12!==t.selectedPosts.length,expression:"selectedPosts && selectedPosts.length !== 12"}],staticClass:"nav-wrapper"},[e("ul",{staticClass:"nav nav-pills nav-fill flex-column flex-md-row",attrs:{role:"tablist"}},[e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link mb-sm-3 mb-md-0 active",attrs:{id:"favposts-1-tab","data-toggle":"tab",href:"#favposts-1",role:"tab","aria-controls":"favposts-1","aria-selected":"true"}},[t._v(t._s(this.selectedPosts.length?this.selectedPosts.length:"")+" Selected Posts")])]),t._v(" "),t.selectedPosts&&t.selectedPosts.length<12?e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link mb-sm-3 mb-md-0",attrs:{id:"favposts-2-tab","data-toggle":"tab",href:"#favposts-2",role:"tab","aria-controls":"favposts-2","aria-selected":"false"}},[t._v("Add by post id")])]):t._e(),t._v(" "),t.selectedPosts&&t.selectedPosts.length<12?e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link mb-sm-3 mb-md-0",attrs:{id:"favposts-3-tab","data-toggle":"tab",href:"#favposts-3",role:"tab","aria-controls":"favposts-3","aria-selected":"false"},on:{click:t.initPopularPosts}},[t._v("Add by popularity")])]):t._e()])]),t._v(" "),e("div",{staticClass:"tab-content mt-3"},[e("div",{staticClass:"tab-pane fade list-fade-bottom show active",attrs:{id:"favposts-1",role:"tabpanel","aria-labelledby":"favposts-1-tab"}},[t.selectedPosts&&t.selectedPosts.length?e("div",{staticStyle:{"max-height":"520px","overflow-y":"auto"}},[t._l(t.selectedPosts,(function(a){return e("div",{key:"sp-"+a.id,staticClass:"list-group-item border-primary form-control-muted"},[e("div",{staticClass:"media align-items-center"},[e("div",{staticClass:"custom-control custom-checkbox mr-2"},[e("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",checked:"",id:"checkbox-sp-".concat(a.id)},on:{change:function(e){return t.toggleSelectedPost(a)}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"checkbox-sp-".concat(a.id)}})]),t._v(" "),e("img",{staticClass:"border rounded-sm mr-3",staticStyle:{"object-fit":"cover"},attrs:{src:a.media_attachments[0].url,width:"100",height:"100",loading:"lazy"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"lead mt-0 mb-0 font-weight-bold"},[t._v("@"+t._s(a.account.username))]),t._v(" "),e("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[e("span",[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(a.favourites_count)))]),t._v(" Likes")]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("·")]),t._v(" "),e("span",[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(a.account.followers_count)))]),t._v(" Followers")]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("·")]),t._v(" "),e("span",[t._v("Created "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatDateTime(a.created_at)))])])])]),t._v(" "),e("a",{staticClass:"btn btn-outline-primary btn-sm rounded-pill",attrs:{href:a.url,target:"_blank"}},[t._v("View")])])])})),t._v(" "),e("div",{staticClass:"mt-5 mb-5 pt-3"})],2):e("div",[t._m(11)])]),t._v(" "),e("div",{staticClass:"tab-pane fade",attrs:{id:"favposts-2",role:"tabpanel","aria-labelledby":"favposts-2-tab"}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Find and add by post id")]),t._v(" "),e("div",{staticClass:"input-group mb-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.favouritePostByIdInput,expression:"favouritePostByIdInput"}],staticClass:"form-control form-control-muted border",attrs:{type:"number",placeholder:"Post id",min:"1",max:"99999999999999999999",disabled:t.favouritePostByIdFetching},domProps:{value:t.favouritePostByIdInput},on:{input:function(e){e.target.composing||(t.favouritePostByIdInput=e.target.value)}}}),t._v(" "),e("div",{staticClass:"input-group-append"},[t.favouritePostByIdFetching?e("button",{staticClass:"btn btn-outline-primary",attrs:{disabled:""}},[t._m(12)]):e("button",{staticClass:"btn btn-outline-primary",attrs:{type:"button"},on:{click:t.handlePostByIdSearch}},[t._v("\n Search\n ")])])])])]),t._v(" "),t._m(13)])]),t._v(" "),e("div",{staticClass:"tab-pane fade list-fade-bottom mb-0",attrs:{id:"favposts-3",role:"tabpanel","aria-labelledby":"favposts-3-tab"}},[t.popularPostsLoaded?e("div",{staticClass:"list-group",staticStyle:{"max-height":"520px","overflow-y":"auto"}},[t._l(t.popularPosts,(function(a){return e("div",{key:"pp-"+a.id,staticClass:"list-group-item",class:[t.selectedPosts.includes(a)?"border-primary form-control-muted":""]},[e("div",{staticClass:"media align-items-center"},[e("div",{staticClass:"custom-control custom-checkbox mr-2"},[e("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",id:"checkbox-pp-".concat(a.id)},domProps:{checked:t.selectedPosts.includes(a)},on:{change:function(e){return t.togglePopularPost(a.id,a)}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"checkbox-pp-".concat(a.id)}})]),t._v(" "),e("img",{staticClass:"border rounded-sm mr-3",staticStyle:{"object-fit":"cover"},attrs:{src:a.media_attachments[0].url,width:"100",height:"100",loading:"lazy"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"lead mt-0 mb-0 font-weight-bold"},[t._v("@"+t._s(a.account.username))]),t._v(" "),e("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[e("span",[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(a.favourites_count)))]),t._v(" Likes")]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("·")]),t._v(" "),e("span",[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(a.account.followers_count)))]),t._v(" Followers")]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("·")]),t._v(" "),e("span",[t._v("Created "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatDateTime(a.created_at)))])])])]),t._v(" "),e("a",{staticClass:"btn btn-outline-primary btn-sm rounded-pill",attrs:{href:a.url,target:"_blank"}},[t._v("View")])])])})),t._v(" "),e("div",{staticClass:"mt-5 mb-3"})],2):e("div",{staticClass:"text-center py-5"},[t._m(14)])])])]):6===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("Privacy Pledge")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("Pledge to keep you and your data private and securely stored")]),t._v(" "),e("hr",{staticClass:"mt-0"}),t._v(" "),e("p",[t._v("To qualify for the Privacy Pledge, you must abide by the following rules:")]),t._v(" "),t._m(15),t._v(" "),e("p",{staticClass:"small text-muted mb-0"},[t._v("You may use 3rd party services like captchas on specific pages, so long as they are clearly defined in your privacy policy")]),t._v(" "),e("hr"),t._v(" "),e("p"),e("div",{staticClass:"custom-control custom-checkbox mr-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.privacy_pledge,expression:"form.privacy_pledge"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"privacy-pledge"},domProps:{checked:Array.isArray(t.form.privacy_pledge)?t._i(t.form.privacy_pledge,null)>-1:t.form.privacy_pledge},on:{change:function(e){var a=t.form.privacy_pledge,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&t.$set(t.form,"privacy_pledge",a.concat([null])):n>-1&&t.$set(t.form,"privacy_pledge",a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.form,"privacy_pledge",i)}}}),t._v(" "),e("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"privacy-pledge"}},[t._v("I agree to the uphold the Privacy Pledge")])]),t._v(" "),e("p")]):7===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("Community Guidelines")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("A few ground rules to keep your community healthy and safe.")]),t._v(" "),e("hr",{staticClass:"mt-0"}),t._v(" "),t.communityGuidelines&&t.communityGuidelines.length?e("ol",{staticClass:"font-weight-bold"},t._l(t.communityGuidelines,(function(a){return e("li",{staticClass:"text-primary"},[e("span",{staticClass:"lead ml-1 text-dark"},[t._v(t._s(a))])])})),0):e("div",{staticClass:"card bg-primary text-white"},[t._m(16)]),t._v(" "),e("hr"),t._v(" "),t._m(17)]):8===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("Feature Requirements")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("The minimum requirements for Directory inclusion.")]),t._v(" "),e("hr",{staticClass:"mt-0"}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"list-group"},[e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("media_types")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Media Types")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("Allowed MIME types. image/jpeg and image/png by default")]),t._v(" "),t.requirements_validator.hasOwnProperty("media_types")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.media_types[0]))]):t._e()])]),t._v(" "),t.feature_config.optimize_image?e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("image_quality")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Image Quality")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("Image optimization is enabled, the image quality must be a value between 1-100.")]),t._v(" "),t.requirements_validator.hasOwnProperty("image_quality")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.image_quality[0]))]):t._e()])]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("max_photo_size")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Photo Size")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("Max photo upload size in kb. Must be between 15-100 MB.")]),t._v(" "),t.requirements_validator.hasOwnProperty("max_photo_size")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_photo_size[0]))]):t._e()])]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("max_caption_length")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Caption Length")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("The max caption length limit. Must be between 500-10000.")]),t._v(" "),t.requirements_validator.hasOwnProperty("max_caption_length")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_caption_length[0]))]):t._e()])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"list-group"},[e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("max_altext_length")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Alt-text length")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("The alt-text length limit. Must be between 1000-5000.")]),t._v(" "),t.requirements_validator.hasOwnProperty("max_altext_length")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_altext_length[0]))]):t._e()])]),t._v(" "),t.feature_config.enforce_account_limit?e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("max_account_size")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Account Size")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("The account storage limit. Must be 1GB at minimum.")]),t._v(" "),t.requirements_validator.hasOwnProperty("max_account_size")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_account_size[0]))]):t._e()])]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("max_album_length")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Album Length")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("Max photos per album post. Must be between 4-20.")]),t._v(" "),t.requirements_validator.hasOwnProperty("max_album_length")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_album_length[0]))]):t._e()])]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center"},[e("div",[e("i",{staticClass:"far fa-2x mr-4",class:[t.requirements_validator.hasOwnProperty("account_deletion")?"fa-exclamation-circle text-danger":"fa-check-circle text-success"]})]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Account Deletion")]),t._v(" "),e("p",{staticClass:"mb-0 small text-muted"},[t._v("Allow users to delete their own account.")]),t._v(" "),t.requirements_validator.hasOwnProperty("account_deletion")?e("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.account_deletion[0]))]):t._e()])])])])])]):9===t.tabIndex?e("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[e("h2",{staticClass:"display-4 mb-0"},[t._v("User Testimonials")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("Add testimonials from your users.")]),t._v(" "),e("hr",{staticClass:"mt-0"}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6 list-fade-bottom"},[e("div",{staticClass:"list-group pb-5",staticStyle:{"max-height":"520px","overflow-y":"auto"}},t._l(t.testimonials,(function(a,s){return e("div",{staticClass:"list-group-item",class:[s==t.testimonials.length-1?"mb-5":""]},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3 rounded-circle",attrs:{src:a.profile.avatar,width:"40",h:"40"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("\n "+t._s(a.profile.username)+"\n ")]),t._v(" "),e("p",{staticClass:"small text-muted mt-n1 mb-0"},[t._v("\n Member Since "+t._s(t.formatDate(a.profile.created_at))+"\n ")])])]),t._v(" "),e("div",[e("p",{staticClass:"mb-0 small"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.editTestimonial(a)}}},[t._v("\n Edit\n ")])]),t._v(" "),e("p",{staticClass:"mb-0 small"},[e("a",{staticClass:"text-danger",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteTestimonial(a)}}},[t._v("\n Delete\n ")])])])]),t._v(" "),e("hr",{staticClass:"my-1"}),t._v(" "),e("p",{staticClass:"small font-weight-bold text-muted mb-0 text-center"},[t._v("Testimonial")]),t._v(" "),e("div",{staticClass:"border rounded px-3"},[e("p",{staticClass:"my-2 small",staticStyle:{"white-space":"pre-wrap"},domProps:{innerHTML:t._s(a.body)}})])])})),0)]),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[t.isEditingTestimonial?e("div",{staticClass:"card"},[e("div",{staticClass:"card-header font-weight-bold"},[t._v("\n Edit Testimonial\n ")]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Username")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.editingTestimonial.profile.username,expression:"editingTestimonial.profile.username"}],staticClass:"form-control form-control-muted",attrs:{placeholder:"test",disabled:""},domProps:{value:t.editingTestimonial.profile.username},on:{input:function(e){e.target.composing||t.$set(t.editingTestimonial.profile,"username",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Testimonial")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.editingTestimonial.body,expression:"editingTestimonial.body"}],staticClass:"form-control form-control-muted",attrs:{rows:"5"},domProps:{value:t.editingTestimonial.body},on:{input:function(e){e.target.composing||t.$set(t.editingTestimonial,"body",e.target.value)}}}),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("p",{staticClass:"help-text small text-muted mb-0"},[t._v("\n Text only, up to 500 characters\n ")]),t._v(" "),e("p",{staticClass:"help-text small text-muted mb-0"},[t._v("\n "+t._s(t.editingTestimonial.body?t.editingTestimonial.body.length:0)+"/500\n ")])])])]),t._v(" "),e("div",{staticClass:"card-footer"},[e("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"button"},on:{click:t.saveEditTestimonial}},[t._v("\n Save\n ")]),t._v(" "),e("button",{staticClass:"btn btn-secondary btn-block",attrs:{type:"button"},on:{click:t.cancelEditTestimonial}},[t._v("\n Cancel\n ")])])]):e("div",{staticClass:"card"},[t.testimonials.length<10?[e("div",{staticClass:"card-header font-weight-bold"},[t._v("\n Add New Testimonial\n ")]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Username")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.testimonial.username,expression:"testimonial.username"}],staticClass:"form-control form-control-muted",attrs:{placeholder:"test"},domProps:{value:t.testimonial.username},on:{input:function(e){e.target.composing||t.$set(t.testimonial,"username",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-muted"},[t._v("\n Must be a valid user account\n ")])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Testimonial")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.testimonial.body,expression:"testimonial.body"}],staticClass:"form-control form-control-muted",attrs:{rows:"5"},domProps:{value:t.testimonial.body},on:{input:function(e){e.target.composing||t.$set(t.testimonial,"body",e.target.value)}}}),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("p",{staticClass:"help-text small text-muted mb-0"},[t._v("\n Text only, up to 500 characters\n ")]),t._v(" "),e("p",{staticClass:"help-text small text-muted mb-0"},[t._v("\n "+t._s(t.testimonial.body?t.testimonial.body.length:0)+"/500\n ")])])])]),t._v(" "),e("div",{staticClass:"card-footer"},[e("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"button"},on:{click:t.saveTestimonial}},[t._v("Save Testimonial")])])]:[t._m(18)]],2)])])]):t._e()])])])])])])]):e("div",[t._m(19)])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-lg-6 col-7"},[e("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[t._v("Directory")]),t._v(" "),e("p",{staticClass:"h3 text-white font-weight-light"},[t._v("Manage your server listing on pixelfed.org")])])},function(){var t=this._self._c;return t("p",[t("i",{staticClass:"far fa-exclamation-triangle fa-5x text-lighter"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[e("p",{staticClass:"display-3 mb-1"},[t._v("Awaiting Approval")]),t._v(" "),e("p",{staticClass:"text-primary mb-1"},[t._v("Awaiting submission approval from pixelfed.org, please check back later!")]),t._v(" "),e("p",{staticClass:"small text-muted mb-0"},[t._v("If you are still waiting for approval after 24 hours please contact the Pixelfed team.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[e("p",{staticClass:"display-3 mb-1"},[t._v("Awaiting Update Approval")]),t._v(" "),e("p",{staticClass:"text-primary mb-1"},[t._v("Awaiting updated submission approval from pixelfed.org, please check back later!")]),t._v(" "),e("p",{staticClass:"small text-muted mb-0"},[t._v("If you are still waiting for approval after 24 hours please contact the Pixelfed team.")])])},function(){var t=this._self._c;return t("p",{staticClass:"my-3"},[t("i",{staticClass:"far fa-check-circle fa-4x text-success"})])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mt-2 mb-0"},[t._v("Your server directory listing on "),e("a",{staticClass:"font-weight-bold",attrs:{href:"#"}},[t._v("pixelfed.org")]),t._v(" is active")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[e("p",{staticClass:"display-3 mb-1"},[t._v("Oops! An unexpected error occured")]),t._v(" "),e("p",{staticClass:"text-primary mb-1"},[t._v("Ask the Pixelfed team for assistance.")])])},function(){var t=this._self._c;return t("p",{staticClass:"text-center mb-2"},[t("i",{staticClass:"far fa-exclamation-circle fa-2x"})])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"form-text text-muted small mb-0"},[t._v("Must be a "),e("kbd",[t._v("JPEG")]),t._v(" or "),e("kbd",[t._v("PNG")]),t._v(" image no larger than 5MB.")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"form-text text-muted small mb-0"},[t._v("The primary language of your server, to edit this value you need to set the "),e("kbd",[t._v("APP_LOCALE")]),t._v(" .env value")])},function(){var t=this,e=t._self._c;return e("ul",{staticClass:"text-danger"},[e("li",[t._v("Admins must be active")]),t._v(" "),e("li",[t._v("Admins must have 2FA setup and enabled")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body bg-lighter text-center py-5"},[e("p",{staticClass:"text-light mb-1"},[e("i",{staticClass:"far fa-info-circle fa-3x"})]),t._v(" "),e("p",{staticClass:"h2 mb-0"},[t._v("0 posts selected")]),t._v(" "),e("p",{staticClass:"small mb-0"},[t._v("You can select up to 12 favourite posts by id or popularity")])])},function(){var t=this._self._c;return t("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card card-body bg-primary"},[e("div",{staticClass:"d-flex align-items-center text-white"},[e("i",{staticClass:"far fa-info-circle mr-2"}),t._v(" "),e("p",{staticClass:"small mb-0 font-weight-bold"},[t._v("A post id is the numerical id found in post urls")])])])])},function(){var t=this._self._c;return t("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])},function(){var t=this,e=t._self._c;return e("ul",{staticClass:"font-weight-bold"},[e("li",[t._v("No analytics or 3rd party trackers*")]),t._v(" "),e("li",[t._v("User data is not sold to any 3rd parties")]),t._v(" "),e("li",[t._v("Data is stored securely in accordance with industry standards")]),t._v(" "),e("li",[t._v("Admin accounts are protected with 2FA")]),t._v(" "),e("li",[t._v("Follow strict support procedures to keep your accounts safe")]),t._v(" "),e("li",[t._v("Give at least 6 months warning in the event we shut down")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body text-center py-5"},[e("p",{staticClass:"mb-n3"},[e("i",{staticClass:"far fa-exclamation-circle fa-3x"})]),t._v(" "),e("p",{staticClass:"lead mb-0"},[t._v("No Community Guidelines have been set")])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0"},[t._v("You can manage Community Guidelines on the "),e("a",{attrs:{href:"/i/admin/settings"}},[t._v("Settings page")])])},function(){var t=this._self._c;return t("div",{staticClass:"card-body text-center"},[t("p",{staticClass:"lead"},[this._v("You can't add any more testimonials")])])},function(){var t=this._self._c;return t("div",{staticClass:"container my-5 py-5 text-center"},[t("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])])}]},54449:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"header bg-primary pb-3 mt-n4"},[e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"header-body"},[t._m(0),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-2 col-md-6"},[e("div",{staticClass:"mb-3"},[e("h5",{staticClass:"text-light text-uppercase mb-0"},[t._v("Unique Hashtags")]),t._v(" "),e("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[t._v(t._s(t.prettyCount(t.stats.total_unique)))])])]),t._v(" "),e("div",{staticClass:"col-xl-2 col-md-6"},[e("div",{staticClass:"mb-3"},[e("h5",{staticClass:"text-light text-uppercase mb-0"},[t._v("Total Hashtags")]),t._v(" "),e("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[t._v(t._s(t.prettyCount(t.stats.total_posts)))])])]),t._v(" "),e("div",{staticClass:"col-xl-2 col-md-6"},[e("div",{staticClass:"mb-3"},[e("h5",{staticClass:"text-light text-uppercase mb-0"},[t._v("New (past 14 days)")]),t._v(" "),e("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[t._v(t._s(t.prettyCount(t.stats.added_14_days)))])])]),t._v(" "),e("div",{staticClass:"col-xl-2 col-md-6"},[e("div",{staticClass:"mb-3"},[e("h5",{staticClass:"text-light text-uppercase mb-0"},[t._v("Banned Hashtags")]),t._v(" "),e("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[t._v(t._s(t.prettyCount(t.stats.total_banned)))])])]),t._v(" "),e("div",{staticClass:"col-xl-2 col-md-6"},[e("div",{staticClass:"mb-3"},[e("h5",{staticClass:"text-light text-uppercase mb-0"},[t._v("NSFW Hashtags")]),t._v(" "),e("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[t._v(t._s(t.prettyCount(t.stats.total_nsfw)))])])]),t._v(" "),e("div",{staticClass:"col-xl-2 col-md-6"},[e("div",{staticClass:"mb-3"},[e("h5",{staticClass:"text-light text-uppercase mb-0"},[t._v("Clear Trending Cache")]),t._v(" "),e("button",{staticClass:"btn btn-outline-white btn-block btn-sm py-0 mt-1",on:{click:t.clearTrendingCache}},[t._v("Clear Cache")])])])])])])]),t._v(" "),t.loaded?e("div",{staticClass:"m-n2 m-lg-4"},[e("div",{staticClass:"container-fluid mt-4"},[e("div",{staticClass:"row mb-3 justify-content-between"},[e("div",{staticClass:"col-12 col-md-8"},[e("ul",{staticClass:"nav nav-pills"},[e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:0==t.tabIndex}],on:{click:function(e){return t.toggleTab(0)}}},[t._v("All")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:1==t.tabIndex}],on:{click:function(e){return t.toggleTab(1)}}},[t._v("Trending")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:2==t.tabIndex}],on:{click:function(e){return t.toggleTab(2)}}},[t._v("Banned")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("button",{class:["nav-link",{active:3==t.tabIndex}],on:{click:function(e){return t.toggleTab(3)}}},[t._v("NSFW")])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("autocomplete",{ref:"autocomplete",attrs:{search:t.composeSearch,disabled:t.searchLoading,placeholder:"Search hashtags","aria-label":"Search hashtags","get-result-value":t.getTagResultValue},on:{submit:t.onSearchResultClick},scopedSlots:t._u([{key:"result",fn:function(a){var s=a.result,i=a.props;return[e("li",t._b({staticClass:"autocomplete-result d-flex justify-content-between align-items-center"},"li",i,!1),[e("div",{staticClass:"font-weight-bold",class:{"text-danger":s.is_banned}},[t._v("\n #"+t._s(s.name)+"\n ")]),t._v(" "),e("div",{staticClass:"small text-muted"},[t._v("\n "+t._s(t.prettyCount(s.cached_count))+" posts\n ")])])]}}])})],1)]),t._v(" "),[0,2,3].includes(this.tabIndex)?e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-dark"},[e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("ID","id"))},on:{click:function(e){return t.toggleCol("id")}}}),t._v(" "),e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("Hashtag","name"))},on:{click:function(e){return t.toggleCol("name")}}}),t._v(" "),e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("Count","cached_count"))},on:{click:function(e){return t.toggleCol("cached_count")}}}),t._v(" "),e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("Can Search","can_search"))},on:{click:function(e){return t.toggleCol("can_search")}}}),t._v(" "),e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("Can Trend","can_trend"))},on:{click:function(e){return t.toggleCol("can_trend")}}}),t._v(" "),e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("NSFW","is_nsfw"))},on:{click:function(e){return t.toggleCol("is_nsfw")}}}),t._v(" "),e("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:t._s(t.buildColumn("Banned","is_banned"))},on:{click:function(e){return t.toggleCol("is_banned")}}}),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Created")])])]),t._v(" "),e("tbody",t._l(t.hashtags,(function(a,s){var i;return e("tr",[e("td",{staticClass:"font-weight-bold text-monospace text-muted"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openEditHashtagModal(a,s)}}},[t._v("\n "+t._s(a.id)+"\n ")])]),t._v(" "),e("td",{staticClass:"font-weight-bold"},[t._v(t._s(a.name))]),t._v(" "),e("td",{staticClass:"font-weight-bold"},[e("a",{attrs:{href:"/i/web/hashtag/".concat(a.slug)}},[t._v("\n "+t._s(null!==(i=a.cached_count)&&void 0!==i?i:0)+"\n ")])]),t._v(" "),e("td",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.boolIcon(a.can_search,"text-success","text-danger"))}}),t._v(" "),e("td",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.boolIcon(a.can_trend,"text-success","text-danger"))}}),t._v(" "),e("td",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.boolIcon(a.is_nsfw,"text-danger"))}}),t._v(" "),e("td",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.boolIcon(a.is_banned,"text-danger"))}}),t._v(" "),e("td",{staticClass:"font-weight-bold"},[t._v(t._s(t.timeAgo(a.created_at)))])])})),0)])]):t._e(),t._v(" "),[0,2,3].includes(this.tabIndex)?e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!t.pagination.prev},on:{click:function(e){return t.paginate("prev")}}},[t._v("\n Prev\n ")]),t._v(" "),e("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!t.pagination.next},on:{click:function(e){return t.paginate("next")}}},[t._v("\n Next\n ")])]):t._e(),t._v(" "),1==this.tabIndex?e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-dark"},[t._m(1),t._v(" "),e("tbody",t._l(t.trendingTags,(function(a,s){var i;return e("tr",[e("td",{staticClass:"font-weight-bold text-monospace text-muted"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openEditHashtagModal(a,s)}}},[t._v("\n "+t._s(a.id)+"\n ")])]),t._v(" "),e("td",{staticClass:"font-weight-bold"},[t._v(t._s(a.hashtag))]),t._v(" "),e("td",{staticClass:"font-weight-bold"},[e("a",{attrs:{href:"/i/web/hashtag/".concat(a.hashtag)}},[t._v("\n "+t._s(null!==(i=a.total)&&void 0!==i?i:0)+"\n ")])])])})),0)])]):t._e()])]):e("div",{staticClass:"my-5 text-center"},[e("b-spinner")],1),t._v(" "),e("b-modal",{attrs:{title:"Edit Hashtag","ok-only":!0,lazy:!0,static:!0},model:{value:t.showEditModal,callback:function(e){t.showEditModal=e},expression:"showEditModal"}},[t.editingHashtag&&t.editingHashtag.name?e("div",{staticClass:"list-group"},[e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[e("div",{staticClass:"text-muted small"},[t._v("Name")]),t._v(" "),e("div",{staticClass:"font-weight-bold"},[t._v(t._s(t.editingHashtag.name))])]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[e("div",{staticClass:"text-muted small"},[t._v("Total Uses")]),t._v(" "),e("div",{staticClass:"font-weight-bold"},[t._v(t._s(t.editingHashtag.cached_count.toLocaleString("en-CA",{compactDisplay:"short"})))])]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[e("div",{staticClass:"text-muted small"},[t._v("Can Trend")]),t._v(" "),e("div",{staticClass:"mr-n2 mb-1"},[e("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.editingHashtag.can_trend,callback:function(e){t.$set(t.editingHashtag,"can_trend",e)},expression:"editingHashtag.can_trend"}})],1)]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[e("div",{staticClass:"text-muted small"},[t._v("Can Search")]),t._v(" "),e("div",{staticClass:"mr-n2 mb-1"},[e("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.editingHashtag.can_search,callback:function(e){t.$set(t.editingHashtag,"can_search",e)},expression:"editingHashtag.can_search"}})],1)]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[e("div",{staticClass:"text-muted small"},[t._v("Banned")]),t._v(" "),e("div",{staticClass:"mr-n2 mb-1"},[e("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.editingHashtag.is_banned,callback:function(e){t.$set(t.editingHashtag,"is_banned",e)},expression:"editingHashtag.is_banned"}})],1)]),t._v(" "),e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[e("div",{staticClass:"text-muted small"},[t._v("NSFW")]),t._v(" "),e("div",{staticClass:"mr-n2 mb-1"},[e("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.editingHashtag.is_nsfw,callback:function(e){t.$set(t.editingHashtag,"is_nsfw",e)},expression:"editingHashtag.is_nsfw"}})],1)])]):t._e(),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.editingHashtag&&t.editingHashtag.name&&t.editSaved?e("div",[e("p",{staticClass:"text-primary small font-weight-bold text-center mt-1 mb-0"},[t._v("Hashtag changes successfully saved!")])]):t._e()])],1)],1)},i=[function(){var t=this._self._c;return t("div",{staticClass:"row align-items-center py-4"},[t("div",{staticClass:"col-lg-6 col-7"},[t("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[this._v("Hashtags")])])])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("ID")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Hashtag")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Trending Count")])])])}]},38343:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t,e,a,s=this,i=s._self._c;return i("div",[i("div",{staticClass:"header bg-primary pb-3 mt-n4"},[i("div",{staticClass:"container-fluid"},[i("div",{staticClass:"header-body"},[s._m(0),s._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-xl-2 col-md-6"},[i("div",{staticClass:"mb-3"},[i("h5",{staticClass:"text-light text-uppercase mb-0"},[s._v("Total Instances")]),s._v(" "),i("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[s._v(s._s(s.prettyCount(s.stats.total_count)))])])]),s._v(" "),i("div",{staticClass:"col-xl-2 col-md-6"},[i("div",{staticClass:"mb-3"},[i("h5",{staticClass:"text-light text-uppercase mb-0"},[s._v("New (past 14 days)")]),s._v(" "),i("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[s._v(s._s(s.prettyCount(s.stats.new_count)))])])]),s._v(" "),i("div",{staticClass:"col-xl-2 col-md-6"},[i("div",{staticClass:"mb-3"},[i("h5",{staticClass:"text-light text-uppercase mb-0"},[s._v("Banned Instances")]),s._v(" "),i("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[s._v(s._s(s.prettyCount(s.stats.banned_count)))])])]),s._v(" "),i("div",{staticClass:"col-xl-2 col-md-6"},[i("div",{staticClass:"mb-3"},[i("h5",{staticClass:"text-light text-uppercase mb-0"},[s._v("NSFW Instances")]),s._v(" "),i("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size"},[s._v(s._s(s.prettyCount(s.stats.nsfw_count)))])])]),s._v(" "),i("div",{staticClass:"col-xl-2 col-md-6"},[i("div",{staticClass:"mb-3"},[i("button",{staticClass:"btn btn-outline-white btn-block btn-sm mt-1",on:{click:function(t){t.preventDefault(),s.showAddModal=!0}}},[s._v("Create New Instance")]),s._v(" "),s.showImportForm?i("div",[i("div",{staticClass:"form-group mt-3"},[i("div",{staticClass:"custom-file"},[i("input",{ref:"importInput",staticClass:"custom-file-input",attrs:{type:"file",id:"customFile"},on:{change:s.onImportUpload}}),s._v(" "),i("label",{staticClass:"custom-file-label",attrs:{for:"customFile"}},[s._v("Choose file")])])]),s._v(" "),i("p",{staticClass:"mb-0 mt-n3"},[i("a",{staticClass:"text-white font-weight-bold small",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),s.showImportForm=!1}}},[s._v("Cancel")])])]):i("div",{staticClass:"d-flex mt-1"},[i("button",{staticClass:"btn btn-outline-white btn-sm mt-1",on:{click:s.openImportForm}},[s._v("Import")]),s._v(" "),i("button",{staticClass:"btn btn-outline-white btn-block btn-sm mt-1",on:{click:function(t){return s.downloadBackup()}}},[s._v("Download Backup")])])])])])])])]),s._v(" "),s.loaded?i("div",{staticClass:"m-n2 m-lg-4"},[i("div",{staticClass:"container-fluid mt-4"},[i("div",{staticClass:"row mb-3 justify-content-between"},[i("div",{staticClass:"col-12 col-md-8"},[i("ul",{staticClass:"nav nav-pills"},[i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:0==s.tabIndex}],on:{click:function(t){return s.toggleTab(0)}}},[s._v("All")])]),s._v(" "),i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:1==s.tabIndex}],on:{click:function(t){return s.toggleTab(1)}}},[s._v("New")])]),s._v(" "),i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:2==s.tabIndex}],on:{click:function(t){return s.toggleTab(2)}}},[s._v("Banned")])]),s._v(" "),i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:3==s.tabIndex}],on:{click:function(t){return s.toggleTab(3)}}},[s._v("NSFW")])]),s._v(" "),i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:4==s.tabIndex}],on:{click:function(t){return s.toggleTab(4)}}},[s._v("Unlisted")])]),s._v(" "),i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:5==s.tabIndex}],on:{click:function(t){return s.toggleTab(5)}}},[s._v("Most Users")])]),s._v(" "),i("li",{staticClass:"nav-item"},[i("button",{class:["nav-link",{active:6==s.tabIndex}],on:{click:function(t){return s.toggleTab(6)}}},[s._v("Most Statuses")])])])]),s._v(" "),i("div",{staticClass:"col-12 col-md-4"},[i("autocomplete",{ref:"autocomplete",attrs:{search:s.composeSearch,disabled:s.searchLoading,defaultValue:s.searchQuery,placeholder:"Search instances by domain","aria-label":"Search instances by domain","get-result-value":s.getTagResultValue},on:{submit:s.onSearchResultClick},scopedSlots:s._u([{key:"result",fn:function(t){var e=t.result,a=t.props;return[i("li",s._b({staticClass:"autocomplete-result d-flex justify-content-between align-items-center"},"li",a,!1),[i("div",{staticClass:"font-weight-bold",class:{"text-danger":e.banned}},[s._v("\n\t\t\t\t\t\t\t\t\t"+s._s(e.domain)+"\n\t\t\t\t\t\t\t\t")]),s._v(" "),i("div",{staticClass:"small text-muted"},[s._v("\n\t\t\t\t\t\t\t\t\t"+s._s(s.prettyCount(e.user_count))+" users\n\t\t\t\t\t\t\t\t")])])]}}])})],1)]),s._v(" "),i("div",{staticClass:"table-responsive"},[i("table",{staticClass:"table table-dark"},[i("thead",{staticClass:"thead-dark"},[i("tr",[i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("ID","id"))},on:{click:function(t){return s.toggleCol("id")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("Domain","domain"))},on:{click:function(t){return s.toggleCol("domain")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("Software","software"))},on:{click:function(t){return s.toggleCol("software")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("User Count","user_count"))},on:{click:function(t){return s.toggleCol("user_count")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("Status Count","status_count"))},on:{click:function(t){return s.toggleCol("status_count")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("Banned","banned"))},on:{click:function(t){return s.toggleCol("banned")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("NSFW","auto_cw"))},on:{click:function(t){return s.toggleCol("auto_cw")}}}),s._v(" "),i("th",{staticClass:"cursor-pointer",attrs:{scope:"col"},domProps:{innerHTML:s._s(s.buildColumn("Unlisted","unlisted"))},on:{click:function(t){return s.toggleCol("unlisted")}}}),s._v(" "),i("th",{attrs:{scope:"col"}},[s._v("Created")])])]),s._v(" "),i("tbody",s._l(s.instances,(function(t,e){return i("tr",[i("td",{staticClass:"font-weight-bold text-monospace text-muted"},[i("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),s.openInstanceModal(t.id)}}},[s._v("\n\t\t\t\t\t\t\t\t\t"+s._s(t.id)+"\n\t\t\t\t\t\t\t\t")])]),s._v(" "),i("td",{staticClass:"font-weight-bold"},[s._v(s._s(t.domain))]),s._v(" "),i("td",{staticClass:"font-weight-bold"},[s._v(s._s(t.software))]),s._v(" "),i("td",{staticClass:"font-weight-bold"},[s._v(s._s(s.prettyCount(t.user_count)))]),s._v(" "),i("td",{staticClass:"font-weight-bold"},[s._v(s._s(s.prettyCount(t.status_count)))]),s._v(" "),i("td",{staticClass:"font-weight-bold",domProps:{innerHTML:s._s(s.boolIcon(t.banned,"text-danger"))}}),s._v(" "),i("td",{staticClass:"font-weight-bold",domProps:{innerHTML:s._s(s.boolIcon(t.auto_cw,"text-danger"))}}),s._v(" "),i("td",{staticClass:"font-weight-bold",domProps:{innerHTML:s._s(s.boolIcon(t.unlisted,"text-danger"))}}),s._v(" "),i("td",{staticClass:"font-weight-bold"},[s._v(s._s(s.timeAgo(t.created_at)))])])})),0)])]),s._v(" "),i("div",{staticClass:"d-flex align-items-center justify-content-center"},[i("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!s.pagination.prev},on:{click:function(t){return s.paginate("prev")}}},[s._v("\n\t\t\t\t\tPrev\n\t\t\t\t")]),s._v(" "),i("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!s.pagination.next},on:{click:function(t){return s.paginate("next")}}},[s._v("\n\t\t\t\t\tNext\n\t\t\t\t")])])])]):i("div",{staticClass:"my-5 text-center"},[i("b-spinner")],1),s._v(" "),i("b-modal",{attrs:{title:"View Instance","header-class":"d-flex align-items-center justify-content-center mb-0 pb-0","ok-title":"Save","ok-disabled":!s.editingInstanceChanges},on:{ok:s.saveInstanceModalChanges},scopedSlots:s._u([{key:"modal-footer",fn:function(){return[i("div",{staticClass:"w-100 d-flex justify-content-between align-items-center"},[i("div",[i("b-button",{attrs:{variant:"outline-danger",size:"sm"},on:{click:s.deleteInstanceModal}},[s._v("\n\t\t\t\t\tDelete\n\t\t\t\t")]),s._v(" "),s.refreshedModalStats?s._e():i("b-button",{attrs:{variant:"outline-primary",size:"sm"},on:{click:s.refreshModalStats}},[s._v("\n\t\t\t\t\tRefresh Stats\n\t\t\t\t")])],1),s._v(" "),i("div",[i("b-button",{attrs:{variant:"link-dark",size:"sm"},on:{click:s.onViewMoreInstance}},[s._v("\n\t\t\t\tView More\n\t\t\t ")]),s._v(" "),i("b-button",{attrs:{variant:"primary"},on:{click:s.saveInstanceModalChanges}},[s._v("\n\t\t\t\tSave\n\t\t\t ")])],1)])]},proxy:!0}]),model:{value:s.showInstanceModal,callback:function(t){s.showInstanceModal=t},expression:"showInstanceModal"}},[s.editingInstance&&s.canEditInstance?i("div",{staticClass:"list-group"},[i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Domain")]),s._v(" "),i("div",{staticClass:"font-weight-bold"},[s._v(s._s(s.editingInstance.domain))])]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[s.editingInstance.software?i("div",[i("div",{staticClass:"text-muted small"},[s._v("Software")]),s._v(" "),i("div",{staticClass:"font-weight-bold"},[s._v(s._s(null!==(t=s.editingInstance.software)&&void 0!==t?t:"Unknown"))])]):s._e(),s._v(" "),i("div",[i("div",{staticClass:"text-muted small"},[s._v("Total Users")]),s._v(" "),i("div",{staticClass:"font-weight-bold"},[s._v(s._s(s.formatCount(null!==(e=s.editingInstance.user_count)&&void 0!==e?e:0)))])]),s._v(" "),i("div",[i("div",{staticClass:"text-muted small"},[s._v("Total Statuses")]),s._v(" "),i("div",{staticClass:"font-weight-bold"},[s._v(s._s(s.formatCount(null!==(a=s.editingInstance.status_count)&&void 0!==a?a:0)))])])]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Banned")]),s._v(" "),i("div",{staticClass:"mr-n2 mb-1"},[i("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:s.editingInstance.banned,callback:function(t){s.$set(s.editingInstance,"banned",t)},expression:"editingInstance.banned"}})],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Apply CW to Media")]),s._v(" "),i("div",{staticClass:"mr-n2 mb-1"},[i("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:s.editingInstance.auto_cw,callback:function(t){s.$set(s.editingInstance,"auto_cw",t)},expression:"editingInstance.auto_cw"}})],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Unlisted")]),s._v(" "),i("div",{staticClass:"mr-n2 mb-1"},[i("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:s.editingInstance.unlisted,callback:function(t){s.$set(s.editingInstance,"unlisted",t)},expression:"editingInstance.unlisted"}})],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex justify-content-between",class:[s.instanceModalNotes?"flex-column gap-2":"align-items-center"]},[i("div",{staticClass:"text-muted small"},[s._v("Notes")]),s._v(" "),i("transition",{attrs:{name:"fade"}},[s.instanceModalNotes?i("div",{staticClass:"w-100"},[i("b-form-textarea",{attrs:{rows:"3","max-rows":"5",maxlength:"500"},model:{value:s.editingInstance.notes,callback:function(t){s.$set(s.editingInstance,"notes",t)},expression:"editingInstance.notes"}}),s._v(" "),i("p",{staticClass:"small text-muted"},[s._v(s._s(s.editingInstance.notes?s.editingInstance.notes.length:0)+"/500")])],1):i("div",{staticClass:"mb-1"},[i("a",{staticClass:"font-weight-bold small",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.showModalNotes()}}},[s._v(s._s(s.editingInstance.notes?"View":"Add"))])])])],1)]):s._e()]),s._v(" "),i("b-modal",{attrs:{title:"Add Instance","ok-title":"Save","ok-disabled":s.addNewInstance.domain.length<2},on:{ok:s.saveNewInstance},model:{value:s.showAddModal,callback:function(t){s.showAddModal=t},expression:"showAddModal"}},[i("div",{staticClass:"list-group"},[i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Domain")]),s._v(" "),i("div",[i("b-form-input",{attrs:{placeholder:"Add domain here"},model:{value:s.addNewInstance.domain,callback:function(t){s.$set(s.addNewInstance,"domain",t)},expression:"addNewInstance.domain"}}),s._v(" "),i("p",{staticClass:"small text-light mb-0"},[s._v("Enter a valid domain without https://")])],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Banned")]),s._v(" "),i("div",{staticClass:"mr-n2 mb-1"},[i("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:s.addNewInstance.banned,callback:function(t){s.$set(s.addNewInstance,"banned",t)},expression:"addNewInstance.banned"}})],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Apply CW to Media")]),s._v(" "),i("div",{staticClass:"mr-n2 mb-1"},[i("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:s.addNewInstance.auto_cw,callback:function(t){s.$set(s.addNewInstance,"auto_cw",t)},expression:"addNewInstance.auto_cw"}})],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Unlisted")]),s._v(" "),i("div",{staticClass:"mr-n2 mb-1"},[i("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:s.addNewInstance.unlisted,callback:function(t){s.$set(s.addNewInstance,"unlisted",t)},expression:"addNewInstance.unlisted"}})],1)]),s._v(" "),i("div",{staticClass:"list-group-item d-flex flex-column gap-2 justify-content-between"},[i("div",{staticClass:"text-muted small"},[s._v("Notes")]),s._v(" "),i("div",{staticClass:"w-100"},[i("b-form-textarea",{attrs:{rows:"3","max-rows":"5",maxlength:"500",placeholder:"Add optional notes here"},model:{value:s.addNewInstance.notes,callback:function(t){s.$set(s.addNewInstance,"notes",t)},expression:"addNewInstance.notes"}}),s._v(" "),i("p",{staticClass:"small text-muted"},[s._v(s._s(s.addNewInstance.notes?s.addNewInstance.notes.length:0)+"/500")])],1)])])]),s._v(" "),i("b-modal",{attrs:{title:"Import Instance Backup","ok-title":"Import",scrollable:"","ok-disabled":!s.importData||!s.importData.banned.length&&!s.importData.unlisted.length&&!s.importData.auto_cw.length},on:{ok:s.completeImport,cancel:s.cancelImport},model:{value:s.showImportModal,callback:function(t){s.showImportModal=t},expression:"showImportModal"}},[s.showImportModal&&s.importData?i("div",[s.importData.auto_cw&&s.importData.auto_cw.length?i("div",{staticClass:"mb-5"},[i("p",{staticClass:"font-weight-bold text-center my-0"},[s._v("NSFW Instances ("+s._s(s.importData.auto_cw.length)+")")]),s._v(" "),i("p",{staticClass:"small text-center text-muted mb-1"},[s._v("Tap on an instance to remove it.")]),s._v(" "),i("div",{staticClass:"list-group"},s._l(s.importData.auto_cw,(function(t,e){return i("a",{staticClass:"list-group-item d-flex align-items-center justify-content-between",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.filterImportData("auto_cw",e)}}},[s._v("\n\t\t\t\t\t\t"+s._s(t)+"\n\n\t\t\t\t\t\t"),i("span",{staticClass:"badge badge-warning"},[s._v("Auto CW")])])})),0)]):s._e(),s._v(" "),s.importData.unlisted&&s.importData.unlisted.length?i("div",{staticClass:"mb-5"},[i("p",{staticClass:"font-weight-bold text-center my-0"},[s._v("Unlisted Instances ("+s._s(s.importData.unlisted.length)+")")]),s._v(" "),i("p",{staticClass:"small text-center text-muted mb-1"},[s._v("Tap on an instance to remove it.")]),s._v(" "),i("div",{staticClass:"list-group"},s._l(s.importData.unlisted,(function(t,e){return i("a",{staticClass:"list-group-item d-flex align-items-center justify-content-between",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.filterImportData("unlisted",e)}}},[s._v("\n\t\t\t\t\t\t"+s._s(t)+"\n\n\t\t\t\t\t\t"),i("span",{staticClass:"badge badge-primary"},[s._v("Unlisted")])])})),0)]):s._e(),s._v(" "),s.importData.banned&&s.importData.banned.length?i("div",{staticClass:"mb-5"},[i("p",{staticClass:"font-weight-bold text-center my-0"},[s._v("Banned Instances ("+s._s(s.importData.banned.length)+")")]),s._v(" "),i("p",{staticClass:"small text-center text-muted mb-1"},[s._v("Review instances, tap on an instance to remove it.")]),s._v(" "),i("div",{staticClass:"list-group"},s._l(s.importData.banned,(function(t,e){return i("a",{staticClass:"list-group-item d-flex align-items-center justify-content-between",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.filterImportData("banned",e)}}},[s._v("\n\t\t\t\t\t\t"+s._s(t)+"\n\n\t\t\t\t\t\t"),i("span",{staticClass:"badge badge-danger"},[s._v("Banned")])])})),0)]):s._e(),s._v(" "),s.importData.banned.length||s.importData.unlisted.length||s.importData.auto_cw.length?s._e():i("div",[i("div",{staticClass:"text-center"},[i("p",[i("i",{staticClass:"far fa-check-circle fa-4x text-success"})]),s._v(" "),i("p",{staticClass:"lead"},[s._v("Nothing to import!")])])])]):s._e()])],1)},i=[function(){var t=this._self._c;return t("div",{staticClass:"row align-items-center py-4"},[t("div",{staticClass:"col-lg-6 col-7"},[t("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[this._v("Instances")])])])}]},44381:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t,e,a=this,s=a._self._c;return s("div",[s("div",{staticClass:"header bg-primary pb-3 mt-n4"},[s("div",{staticClass:"container-fluid"},[s("div",{staticClass:"header-body"},[a._m(0),a._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-sm-6 col-lg-3"},[s("div",{staticClass:"mb-3"},[s("h5",{staticClass:"text-light text-uppercase mb-0"},[a._v("Active Reports")]),a._v(" "),s("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:a.stats.open+" open reports"}},[a._v("\n "+a._s(a.prettyCount(a.stats.open))+"\n ")])])]),a._v(" "),s("div",{staticClass:"col-12 col-sm-6 col-lg-3"},[s("div",{staticClass:"mb-3"},[s("h5",{staticClass:"text-light text-uppercase mb-0"},[a._v("Active Spam Detections")]),a._v(" "),s("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:a.stats.autospam_open+" open spam detections"}},[a._v(a._s(a.prettyCount(a.stats.autospam_open)))])])]),a._v(" "),s("div",{staticClass:"col-12 col-sm-6 col-lg-3"},[s("div",{staticClass:"mb-3"},[s("h5",{staticClass:"text-light text-uppercase mb-0"},[a._v("Total Reports")]),a._v(" "),s("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:a.stats.total+" total reports"}},[a._v(a._s(a.prettyCount(a.stats.total))+"\n ")])])]),a._v(" "),s("div",{staticClass:"col-12 col-sm-6 col-lg-3"},[s("div",{staticClass:"mb-3"},[s("h5",{staticClass:"text-light text-uppercase mb-0"},[a._v("Total Spam Detections")]),a._v(" "),s("span",{staticClass:"text-white h2 font-weight-bold mb-0 human-size",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:a.stats.autospam+" total spam detections"}},[a._v("\n "+a._s(a.prettyCount(a.stats.autospam))+"\n ")])])])])])])]),a._v(" "),a.loaded?s("div",{staticClass:"m-n2 m-lg-4"},[s("div",{staticClass:"container-fluid mt-4"},[s("div",{staticClass:"row mb-3 justify-content-between"},[s("div",{staticClass:"col-12"},[s("ul",{staticClass:"nav nav-pills"},[s("li",{staticClass:"nav-item"},[s("a",{class:["nav-link d-flex align-items-center",{active:0==a.tabIndex}],attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),a.toggleTab(0)}}},[s("span",[a._v("Open Reports")]),a._v(" "),a.stats.open?s("span",{staticClass:"badge badge-sm badge-floating badge-danger border-white ml-2",staticStyle:{"background-color":"red",color:"white","font-size":"11px"}},[a._v("\n "+a._s(a.prettyCount(a.stats.open))+"\n ")]):a._e()])]),a._v(" "),s("li",{staticClass:"nav-item"},[s("a",{class:["nav-link d-flex align-items-center",{active:2==a.tabIndex}],attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),a.toggleTab(2)}}},[s("span",[a._v("Spam Detections")]),a._v(" "),a.stats.autospam_open?s("span",{staticClass:"badge badge-sm badge-floating badge-danger border-white ml-2",staticStyle:{"background-color":"red",color:"white","font-size":"11px"}},[a._v("\n "+a._s(a.prettyCount(a.stats.autospam_open))+"\n ")]):a._e()])]),a._v(" "),s("li",{staticClass:"nav-item"},[s("a",{class:["nav-link d-flex align-items-center",{active:3==a.tabIndex}],attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),a.toggleTab(3)}}},[s("span",[a._v("Remote Reports")]),a._v(" "),a.stats.remote_open?s("span",{staticClass:"badge badge-sm badge-floating badge-danger border-white ml-2",staticStyle:{"background-color":"red",color:"white","font-size":"11px"}},[a._v("\n "+a._s(a.prettyCount(a.stats.remote_open))+"\n ")]):a._e()])]),a._v(" "),s("li",{staticClass:"d-none d-md-block nav-item"},[s("a",{class:["nav-link d-flex align-items-center",{active:1==a.tabIndex}],attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),a.toggleTab(1)}}},[s("span",[a._v("Closed Reports")]),a._v(" "),a.stats.autospam_open?s("span",{staticClass:"badge badge-sm badge-floating badge-secondary border-white ml-2",staticStyle:{"font-size":"11px"}},[a._v("\n "+a._s(a.prettyCount(a.stats.closed))+"\n ")]):a._e()])]),a._v(" "),s("li",{staticClass:"d-none d-md-block nav-item"},[s("a",{staticClass:"nav-link d-flex align-items-center",attrs:{href:"/i/admin/reports/email-verifications"}},[s("span",[a._v("Email Verification Requests")]),a._v(" "),a.stats.email_verification_requests?s("span",{staticClass:"badge badge-sm badge-floating badge-secondary border-white ml-2",staticStyle:{"font-size":"11px"}},[a._v("\n "+a._s(a.prettyCount(a.stats.email_verification_requests))+"\n ")]):a._e()])]),a._v(" "),s("li",{staticClass:"d-none d-md-block nav-item"},[s("a",{staticClass:"nav-link d-flex align-items-center",attrs:{href:"/i/admin/reports/appeals"}},[s("span",[a._v("Appeal Requests")]),a._v(" "),a.stats.appeals?s("span",{staticClass:"badge badge-sm badge-floating badge-secondary border-white ml-2",staticStyle:{"font-size":"11px"}},[a._v("\n "+a._s(a.prettyCount(a.stats.appeals))+"\n ")]):a._e()])])])])]),a._v(" "),[0,1].includes(this.tabIndex)?s("div",{staticClass:"table-responsive rounded"},[a.reports&&a.reports.length?s("table",{staticClass:"table table-dark"},[a._m(1),a._v(" "),s("tbody",a._l(a.reports,(function(t,e){return s("tr",[s("td",{staticClass:"font-weight-bold text-monospace text-muted align-middle"},[s("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),a.viewReport(t)}}},[a._v("\n "+a._s(t.id)+"\n ")])]),a._v(" "),s("td",{staticClass:"align-middle"},[s("p",{staticClass:"text-capitalize font-weight-bold mb-0",domProps:{innerHTML:a._s(a.reportLabel(t))}})]),a._v(" "),s("td",{staticClass:"align-middle"},[t.reported&&t.reported.id?s("a",{staticClass:"text-white",attrs:{href:"/i/web/profile/".concat(t.reported.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:t.reported.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"14px"}},[a._v("@"+a._s(t.reported.username))]),a._v(" "),s("div",{staticClass:"d-flex small text-muted mb-0",staticStyle:{gap:"0.5rem"}},[s("span",[a._v(a._s(t.reported.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(t.reported.created_at)))])])])])]):a._e()]),a._v(" "),s("td",{staticClass:"align-middle"},[t&&t.reporter&&t.reporter.id?s("a",{staticClass:"text-white",attrs:{href:"/i/web/profile/".concat(t.reporter.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:t.reporter.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"14px"}},[a._v("@"+a._s(t.reporter.username))]),a._v(" "),s("div",{staticClass:"d-flex small text-muted mb-0",staticStyle:{gap:"0.5rem"}},[s("span",[a._v(a._s(t.reporter.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(t.reporter.created_at)))])])])])]):a._e()]),a._v(" "),s("td",{staticClass:"font-weight-bold align-middle"},[a._v(a._s(a.timeAgo(t.created_at)))]),a._v(" "),s("td",{staticClass:"align-middle"},[s("a",{staticClass:"btn btn-primary btn-sm",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),a.viewReport(t)}}},[a._v("View")])])])})),0)]):s("div",[s("div",{staticClass:"card card-body p-5"},[s("div",{staticClass:"d-flex justify-content-between align-items-center flex-column"},[a._m(2),a._v(" "),s("p",{staticClass:"lead"},[a._v(a._s(0===a.tabIndex?"No Active Reports Found!":"No Closed Reports Found!"))])])])])]):a._e(),a._v(" "),[0,1].includes(this.tabIndex)&&a.reports.length&&(a.pagination.prev||a.pagination.next)?s("div",{staticClass:"d-flex align-items-center justify-content-center"},[s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!a.pagination.prev},on:{click:function(t){return a.paginate("prev")}}},[a._v("\n Prev\n ")]),a._v(" "),s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!a.pagination.next},on:{click:function(t){return a.paginate("next")}}},[a._v("\n Next\n ")])]):a._e(),a._v(" "),2===this.tabIndex?s("div",{staticClass:"table-responsive rounded"},[a.autospamLoaded?[a.autospam&&a.autospam.length?s("table",{staticClass:"table table-dark"},[a._m(3),a._v(" "),s("tbody",a._l(a.autospam,(function(t,e){return s("tr",[s("td",{staticClass:"font-weight-bold text-monospace text-muted align-middle"},[s("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),a.viewSpamReport(t)}}},[a._v("\n "+a._s(t.id)+"\n ")])]),a._v(" "),a._m(4,!0),a._v(" "),s("td",{staticClass:"align-middle"},[t.status&&t.status.account?s("a",{staticClass:"text-white",attrs:{href:"/i/web/profile/".concat(t.status.account.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:t.status.account.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"14px"}},[a._v("@"+a._s(t.status.account.username))]),a._v(" "),s("div",{staticClass:"d-flex small text-muted mb-0",staticStyle:{gap:"0.5rem"}},[s("span",[a._v(a._s(t.status.account.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(t.status.account.created_at)))])])])])]):a._e()]),a._v(" "),s("td",{staticClass:"font-weight-bold align-middle"},[a._v(a._s(a.timeAgo(t.created_at)))]),a._v(" "),s("td",{staticClass:"align-middle"},[s("a",{staticClass:"btn btn-primary btn-sm",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),a.viewSpamReport(t)}}},[a._v("View")])])])})),0)]):s("div",[a._m(5)])]:s("div",{staticClass:"d-flex align-items-center justify-content-center",staticStyle:{"min-height":"300px"}},[s("b-spinner")],1)],2):a._e(),a._v(" "),2===this.tabIndex&&a.autospamLoaded&&a.autospam&&a.autospam.length?s("div",{staticClass:"d-flex align-items-center justify-content-center"},[s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!a.autospamPagination.prev},on:{click:function(t){return a.autospamPaginate("prev")}}},[a._v("\n Prev\n ")]),a._v(" "),s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!a.autospamPagination.next},on:{click:function(t){return a.autospamPaginate("next")}}},[a._v("\n Next\n ")])]):a._e(),a._v(" "),3===this.tabIndex?s("div",{staticClass:"table-responsive rounded"},[a.reports&&a.reports.length?s("table",{staticClass:"table table-dark"},[a._m(6),a._v(" "),s("tbody",a._l(a.reports,(function(t,e){return s("tr",{key:"remote-reports-".concat(t.id,"-").concat(e)},[s("td",{staticClass:"font-weight-bold text-monospace text-muted align-middle"},[s("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),a.showRemoteReport(t)}}},[a._v("\n "+a._s(t.id)+"\n ")])]),a._v(" "),s("td",{staticClass:"align-middle"},[s("p",{staticClass:"font-weight-bold mb-0"},[a._v(a._s(t.instance))])]),a._v(" "),s("td",{staticClass:"align-middle"},[t.reported&&t.reported.id?s("a",{staticClass:"text-white",attrs:{href:"/i/web/profile/".concat(t.reported.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:t.reported.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"14px"}},[a._v("@"+a._s(t.reported.username))]),a._v(" "),s("div",{staticClass:"d-flex small text-muted mb-0",staticStyle:{gap:"0.5rem"}},[s("span",[a._v(a._s(t.reported.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(t.reported.created_at)))])])])])]):a._e()]),a._v(" "),s("td",{staticClass:"align-middle"},[s("p",{staticClass:"small mb-0 text-wrap",staticStyle:{"max-width":"300px","word-break":"break-all"}},[a._v(a._s(t.message&&t.message.length>120?t.message.slice(0,120)+"...":t.message))])]),a._v(" "),s("td",{staticClass:"font-weight-bold align-middle"},[a._v(a._s(a.timeAgo(t.created_at)))]),a._v(" "),a._m(7,!0)])})),0)]):s("div",[s("div",{staticClass:"card card-body p-5"},[s("div",{staticClass:"d-flex justify-content-between align-items-center flex-column"},[a._m(8),a._v(" "),s("p",{staticClass:"lead"},[a._v(a._s(0===a.tabIndex?"No Active Reports Found!":"No Closed Reports Found!"))])])])])]):a._e(),a._v(" "),3===this.tabIndex&&a.remoteReportsLoaded&&a.reports&&a.reports.length?s("div",{staticClass:"d-flex align-items-center justify-content-center"},[s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!a.pagination.prev},on:{click:function(t){return a.remoteReportPaginate("prev")}}},[a._v("\n Prev\n ")]),a._v(" "),s("button",{staticClass:"btn btn-primary rounded-pill",attrs:{disabled:!a.pagination.next},on:{click:function(t){return a.remoteReportPaginate("next")}}},[a._v("\n Next\n ")])]):a._e()])]):s("div",{staticClass:"my-5 text-center"},[s("b-spinner")],1),a._v(" "),s("b-modal",{attrs:{title:0===a.tabIndex?"View Report":"Viewing Closed Report","ok-only":!0,"ok-title":"Close","ok-variant":"outline-primary"},model:{value:a.showReportModal,callback:function(t){a.showReportModal=t},expression:"showReportModal"}},[a.viewingReportLoading?s("div",{staticClass:"d-flex align-items-center justify-content-center"},[s("b-spinner")],1):[a.viewingReport?s("div",{staticClass:"list-group"},[s("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[s("div",{staticClass:"text-muted small"},[a._v("Type")]),a._v(" "),s("div",{staticClass:"font-weight-bold text-capitalize",domProps:{innerHTML:a._s(a.reportLabel(a.viewingReport))}})]),a._v(" "),a.viewingReport.admin_seen_at?s("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between"},[s("div",{staticClass:"text-muted small"},[a._v("Report Closed")]),a._v(" "),s("div",{staticClass:"font-weight-bold text-capitalize"},[a._v(a._s(a.formatDate(a.viewingReport.admin_seen_at)))])]):a._e(),a._v(" "),a.viewingReport.reporter_message?s("div",{staticClass:"list-group-item d-flex flex-column",staticStyle:{gap:"10px"}},[s("div",{staticClass:"text-muted small"},[a._v("Message")]),a._v(" "),s("p",{staticClass:"mb-0 read-more",staticStyle:{"font-size":"12px","overflow-y":"hidden"}},[a._v(a._s(a.viewingReport.reporter_message))])]):a._e()]):a._e(),a._v(" "),s("div",{staticClass:"list-group list-group-horizontal mt-3"},[a.viewingReport&&a.viewingReport.reported?s("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"text-muted small font-weight-bold mt-n1"},[a._v("Reported Account")]),a._v(" "),a.viewingReport.reported&&a.viewingReport.reported.id?s("a",{staticClass:"text-primary",attrs:{href:"/i/web/profile/".concat(a.viewingReport.reported.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:a.viewingReport.reported.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0 text-break",class:[a.viewingReport.reported.is_admin?"text-danger":""],staticStyle:{"font-size":"12px","max-width":"140px","line-height":"16px"}},[a._v("@"+a._s(a.viewingReport.reported.acct))]),a._v(" "),s("div",{staticClass:"d-flex text-muted mb-0",staticStyle:{"font-size":"10px",gap:"0.5rem"}},[s("span",[a._v(a._s(a.viewingReport.reported.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(a.viewingReport.reported.created_at)))])])])])]):a._e()]):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.reporter?s("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"text-muted small font-weight-bold mt-n1"},[a._v("Reporter Account")]),a._v(" "),a.viewingReport.reporter&&null!==(t=a.viewingReport.reporter)&&void 0!==t&&t.id?s("a",{staticClass:"text-primary",attrs:{href:"/i/web/profile/".concat(null===(e=a.viewingReport.reporter)||void 0===e?void 0:e.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:a.viewingReport.reporter.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0 text-break",staticStyle:{"font-size":"12px","max-width":"140px","line-height":"16px"}},[a._v("@"+a._s(a.viewingReport.reporter.acct))]),a._v(" "),s("div",{staticClass:"d-flex text-muted mb-0",staticStyle:{"font-size":"10px",gap:"0.5rem"}},[s("span",[a._v(a._s(a.viewingReport.reporter.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(a.viewingReport.reporter.created_at)))])])])])]):a._e()]):a._e()]),a._v(" "),a.viewingReport&&"App\\Status"===a.viewingReport.object_type&&a.viewingReport.status?s("div",{staticClass:"list-group mt-3"},[a.viewingReport&&a.viewingReport.status&&a.viewingReport.status.media_attachments.length?s("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[s("div",[a._v("Reported Post")]),a._v(" "),s("a",{staticClass:"font-weight-bold",attrs:{href:a.viewingReport.status.url,target:"_blank"}},[a._v("View")])]),a._v(" "),"image"===a.viewingReport.status.media_attachments[0].type?s("img",{staticClass:"rounded",staticStyle:{"object-fit":"cover"},attrs:{src:a.viewingReport.status.media_attachments[0].url,height:"140",onerror:"this.src='/storage/no-preview.png';this.error=null;"}}):"video"===a.viewingReport.status.media_attachments[0].type?s("video",{attrs:{height:"140",controls:"",src:a.viewingReport.status.media_attachments[0].url,onerror:"this.src='/storage/no-preview.png';this.onerror=null;"}}):a._e()]):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.status?s("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[s("div",[a._v("Reported Post Caption")]),a._v(" "),s("a",{staticClass:"font-weight-bold",attrs:{href:a.viewingReport.status.url,target:"_blank"}},[a._v("View")])]),a._v(" "),s("p",{staticClass:"mb-0 read-more",staticStyle:{"font-size":"12px","overflow-y":"hidden"}},[a._v(a._s(a.viewingReport.status.content_text))])]):a._e()]):a.viewingReport&&"App\\Story"===a.viewingReport.object_type&&a.viewingReport.story?s("div",{staticClass:"list-group mt-3"},[a.viewingReport&&a.viewingReport.story?s("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[s("div",[a._v("Reported Story")]),a._v(" "),s("a",{staticClass:"font-weight-bold",attrs:{href:a.viewingReport.story.url,target:"_blank"}},[a._v("View")])]),a._v(" "),"photo"===a.viewingReport.story.type?s("img",{staticClass:"rounded",staticStyle:{"object-fit":"cover"},attrs:{src:a.viewingReport.story.media_src,height:"140",onerror:"this.src='/storage/no-preview.png';this.error=null;"}}):"video"===a.viewingReport.story.type?s("video",{attrs:{height:"140",controls:"",src:a.viewingReport.story.media_src,onerror:"this.src='/storage/no-preview.png';this.onerror=null;"}}):a._e()]):a._e()]):a._e(),a._v(" "),a.viewingReport&&null===a.viewingReport.admin_seen_at?s("div",{staticClass:"mt-4"},[a.viewingReport&&"App\\Profile"===a.viewingReport.object_type?s("div",[s("button",{staticClass:"btn btn-dark btn-block rounded-pill",on:{click:function(t){return a.handleAction("profile","ignore")}}},[a._v("Ignore Report")]),a._v(" "),a.viewingReport.reported&&a.viewingReport.reported.id&&!a.viewingReport.reported.is_admin?s("hr",{staticClass:"mt-3 mb-1"}):a._e(),a._v(" "),a.viewingReport.reported&&a.viewingReport.reported.id&&!a.viewingReport.reported.is_admin?s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","nsfw")}}},[a._v("\n Mark all Posts NSFW\n ")]),a._v(" "),s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","unlist")}}},[a._v("\n Unlist all Posts\n ")])]):a._e(),a._v(" "),a.viewingReport.reported&&a.viewingReport.reported.id&&!a.viewingReport.reported.is_admin?s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-2",on:{click:function(t){return a.handleAction("profile","delete")}}},[a._v("\n Delete Profile\n ")]):a._e()]):a.viewingReport&&"App\\Status"===a.viewingReport.object_type?s("div",[s("button",{staticClass:"btn btn-dark btn-block rounded-pill",on:{click:function(t){return a.handleAction("post","ignore")}}},[a._v("Ignore Report")]),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("hr",{staticClass:"mt-3 mb-1"}):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("post","nsfw")}}},[a._v("Mark Post NSFW")]),a._v(" "),"public"===a.viewingReport.status.visibility?s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("post","unlist")}}},[a._v("Unlist Post")]):"unlisted"===a.viewingReport.status.visibility?s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("post","private")}}},[a._v("Make Post Private")]):a._e()]):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","nsfw")}}},[a._v("Make all NSFW")]),a._v(" "),s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","unlist")}}},[a._v("Make all Unlisted")]),a._v(" "),s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","private")}}},[a._v("Make all Private")])]):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("div",[s("hr",{staticClass:"my-2"}),a._v(" "),s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("post","delete")}}},[a._v("Delete Post")]),a._v(" "),s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","delete")}}},[a._v("Delete Account")])])]):a._e()]):a.viewingReport&&"App\\Story"===a.viewingReport.object_type?s("div",[s("button",{staticClass:"btn btn-dark btn-block rounded-pill",on:{click:function(t){return a.handleAction("story","ignore")}}},[a._v("Ignore Report")]),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("hr",{staticClass:"mt-3 mb-1"}):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("div",[s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-danger btn-block rounded-pill mt-0",on:{click:function(t){return a.handleAction("story","delete")}}},[a._v("Delete Story")]),a._v(" "),s("button",{staticClass:"btn btn-outline-danger btn-block rounded-pill mt-0",on:{click:function(t){return a.handleAction("story","delete-all")}}},[a._v("Delete All Stories")])])]):a._e(),a._v(" "),a.viewingReport&&a.viewingReport.reported&&!a.viewingReport.reported.is_admin?s("div",[s("hr",{staticClass:"my-2"}),a._v(" "),s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-outline-danger btn-sm btn-block rounded-pill mt-0",on:{click:function(t){return a.handleAction("profile","delete")}}},[a._v("Delete Account")])])]):a._e()]):a._e()]):a._e()]],2),a._v(" "),s("b-modal",{attrs:{title:"Potential Spam Post Detected","ok-only":!0,"ok-title":"Close","ok-variant":"outline-primary"},model:{value:a.showSpamReportModal,callback:function(t){a.showSpamReportModal=t},expression:"showSpamReportModal"}},[a.viewingSpamReportLoading?s("div",{staticClass:"d-flex align-items-center justify-content-center"},[s("b-spinner")],1):[s("div",{staticClass:"list-group list-group-horizontal mt-3"},[a.viewingSpamReport&&a.viewingSpamReport.status&&a.viewingSpamReport.status.account?s("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"text-muted small font-weight-bold mt-n1"},[a._v("Reported Account")]),a._v(" "),a.viewingSpamReport.status.account&&a.viewingSpamReport.status.account.id?s("a",{staticClass:"text-primary",attrs:{href:"/i/web/profile/".concat(a.viewingSpamReport.status.account.id),target:"_blank"}},[s("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[s("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:a.viewingSpamReport.status.account.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),a._v(" "),s("div",{staticClass:"d-flex flex-column"},[s("p",{staticClass:"font-weight-bold mb-0 text-break",class:[a.viewingSpamReport.status.account.is_admin?"text-danger":""],staticStyle:{"font-size":"12px","max-width":"140px","line-height":"16px"}},[a._v("@"+a._s(a.viewingSpamReport.status.account.acct))]),a._v(" "),s("div",{staticClass:"d-flex text-muted mb-0",staticStyle:{"font-size":"10px",gap:"0.5rem"}},[s("span",[a._v(a._s(a.viewingSpamReport.status.account.followers_count)+" Followers")]),a._v(" "),s("span",[a._v("·")]),a._v(" "),s("span",[a._v("Joined "+a._s(a.timeAgo(a.viewingSpamReport.status.account.created_at)))])])])])]):a._e()]):a._e()]),a._v(" "),a.viewingSpamReport&&a.viewingSpamReport.status?s("div",{staticClass:"list-group mt-3"},[a.viewingSpamReport&&a.viewingSpamReport.status&&a.viewingSpamReport.status.media_attachments.length?s("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[s("div",[a._v("Reported Post")]),a._v(" "),s("a",{staticClass:"font-weight-bold",attrs:{href:a.viewingSpamReport.status.url,target:"_blank"}},[a._v("View")])]),a._v(" "),"image"===a.viewingSpamReport.status.media_attachments[0].type?s("img",{staticClass:"rounded",staticStyle:{"object-fit":"cover"},attrs:{src:a.viewingSpamReport.status.media_attachments[0].url,height:"140",onerror:"this.src='/storage/no-preview.png';this.error=null;"}}):"video"===a.viewingSpamReport.status.media_attachments[0].type?s("video",{attrs:{height:"140",controls:"",src:a.viewingSpamReport.status.media_attachments[0].url,onerror:"this.src='/storage/no-preview.png';this.onerror=null;"}}):a._e()]):a._e(),a._v(" "),a.viewingSpamReport&&a.viewingSpamReport.status&&a.viewingSpamReport.status.content_text&&a.viewingSpamReport.status.content_text.length?s("div",{staticClass:"list-group-item d-flex flex-column flex-grow-1",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"d-flex justify-content-between mt-n1 text-muted small font-weight-bold"},[s("div",[a._v("Reported Post Caption")]),a._v(" "),s("a",{staticClass:"font-weight-bold",attrs:{href:a.viewingSpamReport.status.url,target:"_blank"}},[a._v("View")])]),a._v(" "),s("p",{staticClass:"mb-0 read-more",staticStyle:{"font-size":"12px","overflow-y":"hidden"}},[a._v(a._s(a.viewingSpamReport.status.content_text))])]):a._e()]):a._e(),a._v(" "),s("div",{staticClass:"mt-4"},[s("div",[s("button",{staticClass:"btn btn-dark btn-block rounded-pill",attrs:{type:"button"},on:{click:function(t){return a.handleSpamAction("mark-read")}}},[a._v("\n Mark as Read\n ")]),a._v(" "),s("button",{staticClass:"btn btn-danger btn-block rounded-pill",attrs:{type:"button"},on:{click:function(t){return a.handleSpamAction("mark-not-spam")}}},[a._v("\n Mark As Not Spam\n ")]),a._v(" "),s("hr",{staticClass:"mt-3 mb-1"}),a._v(" "),s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-dark btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(t){return a.handleSpamAction("mark-all-read")}}},[a._v("\n Mark All As Read\n ")]),a._v(" "),s("button",{staticClass:"btn btn-dark btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(t){return a.handleSpamAction("mark-all-not-spam")}}},[a._v("\n Mark All As Not Spam\n ")])]),a._v(" "),s("div",[s("hr",{staticClass:"my-2"}),a._v(" "),s("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[s("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(t){return a.handleSpamAction("delete-profile")}}},[a._v("\n Delete Account\n ")])])])])])]],2),a._v(" "),a.showRemoteReportModal?[s("admin-report-modal",{attrs:{open:a.showRemoteReportModal,model:a.remoteReportModalModel},on:{close:function(t){return a.handleCloseRemoteReportModal()},refresh:function(t){return a.refreshRemoteReports()}}})]:a._e()],2)},i=[function(){var t=this._self._c;return t("div",{staticClass:"row align-items-center py-4"},[t("div",{staticClass:"col-lg-6 col-7"},[t("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[this._v("Moderation")])])])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("ID")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Report")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Reported Account")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Reported By")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Created")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("View Report")])])])},function(){var t=this._self._c;return t("p",{staticClass:"mt-3 mb-0"},[t("i",{staticClass:"far fa-check-circle fa-5x text-success"})])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("ID")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Report")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Reported Account")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Created")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("View Report")])])])},function(){var t=this._self._c;return t("td",{staticClass:"align-middle"},[t("p",{staticClass:"text-capitalize font-weight-bold mb-0"},[this._v("Spam Post")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body p-5"},[e("div",{staticClass:"d-flex justify-content-between align-items-center flex-column"},[e("p",{staticClass:"mt-3 mb-0"},[e("i",{staticClass:"far fa-check-circle fa-5x text-success"})]),t._v(" "),e("p",{staticClass:"lead"},[t._v("No Spam Reports Found!")])])])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-dark"},[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("ID")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Instance")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Reported Account")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Comment")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("Created")]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v("View Report")])])])},function(){var t=this._self._c;return t("td",{staticClass:"align-middle"},[t("a",{staticClass:"btn btn-primary btn-sm",attrs:{href:"#"}},[this._v("View")])])},function(){var t=this._self._c;return t("p",{staticClass:"mt-3 mb-0"},[t("i",{staticClass:"far fa-check-circle fa-5x text-success"})])}]},17349:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t,e=this,a=e._self._c;return e.loaded?a("div",[e._m(0),e._v(" "),a("div",{staticClass:"container"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-3"},[a("div",{staticClass:"nav-wrapper"},[a("div",{staticClass:"nav flex-column nav-pills",attrs:{id:"tabs-icons-text",role:"tablist","aria-orientation":"vertical"}},e._l(e.tabs,(function(t){return a("div",{staticClass:"nav-item"},[a("a",{staticClass:"nav-link mb-sm-3",class:{active:e.tabIndex===t.id},attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),e.toggleTab(t.id)}}},[a("i",{class:t.icon}),e._v(" "),a("span",{staticClass:"ml-2"},[e._v(e._s(t.title))])])])})),0)])]),e._v(" "),a("div",{staticClass:"col-12 col-md-9"},[a("div",{staticClass:"card shadow mt-3"},[a("div",{staticClass:"card-body"},[a("div",{staticClass:"tab-content"},[1===e.tabIndex?a("div",{staticClass:"tab-pane fade show active"},[a("tab-header",{attrs:{title:"Settings",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("overview")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body",staticStyle:{padding:"1.1rem 1.6rem"}},[a("div",{staticClass:"form-group mb-0"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[e._v("Registration Status")]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.features.registration_status,expression:"features.registration_status"}],staticClass:"form-control form-control-muted",on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));e.$set(e.features,"registration_status",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"open"}},[e._v("Open - Anyone can register")]),e._v(" "),a("option",{attrs:{value:"filtered"}},[e._v("Filtered - Anyone can apply (Curated Onboarding)")]),e._v(" "),a("option",{attrs:{value:"closed"}},[e._v("Closed - Nobody can register")])])])]),e._v(" "),a("checkbox",{attrs:{name:"Cloud Storage",value:e.features.cloud_storage,description:"Store photos and videos on S3 compatible object storage providers."},on:{change:function(t){return e.handleChange(t,"features","cloud_storage")}}}),e._v(" "),a("checkbox",{attrs:{name:"ActivityPub",value:e.features.activitypub_enabled,description:"ActivityPub federation, compatible with Pixelfed, Mastodon and other projects."},on:{change:function(t){return e.handleChange(t,"features","activitypub_enabled")}}}),e._v(" "),a("checkbox",{attrs:{name:"Authorized Fetch Mode",value:e.features.authorized_fetch,description:"Strictly enforce domain restrictions by enabling Authorized Fetch mode."},on:{change:function(t){return e.handleChange(t,"features","authorized_fetch")}}}),e._v(" "),a("checkbox",{attrs:{name:"Account Migration",value:e.features.account_migration,description:"Allow local accounts to migrate to other local or remote accounts."},on:{change:function(t){return e.handleChange(t,"features","account_migration")}}})],1),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("checkbox",{attrs:{name:"Mobile APIs",value:e.features.mobile_apis,description:"Enable apis required for official mobile app support and 3rd party apps."},on:{change:function(t){return e.handleChange(t,"features","mobile_apis")}}}),e._v(" "),a("checkbox",{attrs:{name:"Stories",value:e.features.stories,description:"Allow users to share federated ephemeral Stories that disappear after 24 hours."},on:{change:function(t){return e.handleChange(t,"features","stories")}}}),e._v(" "),a("checkbox",{attrs:{name:"Instagram Import",value:e.features.instagram_import,description:"Enable users to use the experimental Instagram Import support."},on:{change:function(t){return e.handleChange(t,"features","instagram_import")}}}),e._v(" "),a("checkbox",{attrs:{name:"Spam detection",value:e.features.autospam_enabled,description:"Detect and remove spam from timelines using the automated Autospam detection."},on:{change:function(t){return e.handleChange(t,"features","autospam_enabled")}}})],1)])],1):"landing"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Landing",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("landing")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body",staticStyle:{padding:"1.1rem 1.6rem"}},[a("div",{staticClass:"form-group mb-0"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[e._v("Admin Account")]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.landing.current_admin,expression:"landing.current_admin"}],staticClass:"form-control form-control-muted",on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));e.$set(e.landing,"current_admin",t.target.multiple?a:a[0])}}},[a("option",{attrs:{disabled:"",value:"0"}},[e._v("Select a designated admin")]),e._v(" "),e._l(e.landing.admins,(function(t,s){return a("option",{key:"pfc-"+t+s,domProps:{value:t.profile_id}},[e._v(e._s(t.username))])}))],2)])]),e._v(" "),a("checkbox",{attrs:{name:"Show Directory",value:e.landing.show_directory,description:"Show the account directory on the landing page for guest users."},on:{change:function(t){return e.handleChange(t,"landing","show_directory")}}})],1),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("checkbox",{attrs:{name:"Show Explore Feed",value:e.landing.show_explore,description:"Show the explore feed of popular posts on the landing page for guest users."},on:{change:function(t){return e.handleChange(t,"landing","show_explore")}}})],1)])],1):"branding"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Branding",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("branding")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-8"},[a("div",{staticClass:"card shadow-none border card-body",staticStyle:{padding:"1.1rem 1.6rem"}},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[e._v("Server Name")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.branding.name,expression:"branding.name"}],staticClass:"form-control form-control-muted",attrs:{placeholder:"Pixelfed"},domProps:{value:e.branding.name},on:{input:function(t){t.target.composing||e.$set(e.branding,"name",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n The instance name used in titles, metadata and apis.\n ")])]),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[e._v("Short Description")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.branding.short_description,expression:"branding.short_description"}],staticClass:"form-control form-control-muted",attrs:{placeholder:"Pixelfed",rows:"4"},domProps:{value:e.branding.short_description},on:{input:function(t){t.target.composing||e.$set(e.branding,"short_description",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Short description of instance used on various pages and apis.\n ")])]),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[e._v("Long Description")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.branding.long_description,expression:"branding.long_description"}],staticClass:"form-control form-control-muted",attrs:{placeholder:"Pixelfed",rows:"8"},domProps:{value:e.branding.long_description},on:{input:function(t){t.target.composing||e.$set(e.branding,"long_description",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Longer description of instance used on about page.\n ")])])]),e._v(" "),e._m(1)])],1):"media"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Media",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("media")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Max Media Size")]),e._v(" "),a("div",{staticClass:"input-group mb-0"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.media.max_photo_size,expression:"media.max_photo_size"}],staticClass:"form-control",attrs:{type:"text",placeholder:"15000","aria-label":"Max media size","aria-describedby":"maxMediaSize"},domProps:{value:e.media.max_photo_size},on:{input:function(t){t.target.composing||e.$set(e.media,"max_photo_size",t.target.value)}}}),e._v(" "),a("div",{staticClass:"input-group-append"},[a("span",{staticClass:"input-group-text",attrs:{id:"maxMediaSize"}},[e._v("= "+e._s(e.maxMediaSizeToMb))])])])]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Maximum file upload size in KB\n ")])]),e._v(" "),a("checkbox",{attrs:{name:"Optimize Images",value:e.media.optimize_image,description:"Enable to optimize images and generate thumbnails for local image media uploads."},on:{change:function(t){return e.handleChange(t,"media","optimize_image")}}}),e._v(" "),a("checkbox",{attrs:{name:"Optimize Video",value:e.media.optimize_video,description:"Enable to generate video thumbnails for local video media uploads."},on:{change:function(t){return e.handleChange(t,"media","optimize_video")}}}),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Media Types")]),e._v(" "),a("div",{staticClass:"list-group"},e._l(e.mediaTypes,(function(t,s){return a("div",{staticClass:"list-group-item py-2"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.mediaTypes[s],expression:"mediaTypes[key]"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:s,id:s},domProps:{checked:Array.isArray(e.mediaTypes[s])?e._i(e.mediaTypes[s],null)>-1:e.mediaTypes[s]},on:{change:function(t){var a=e.mediaTypes[s],i=t.target,n=!!i.checked;if(Array.isArray(a)){var o=e._i(a,null);i.checked?o<0&&e.$set(e.mediaTypes,s,a.concat([null])):o>-1&&e.$set(e.mediaTypes,s,a.slice(0,o).concat(a.slice(o+1)))}else e.$set(e.mediaTypes,s,n)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:s}},[e._v(e._s(s))])])])})),0)]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Supported mime types for media uploads\n ")])])],1),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Photo Album Limit")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.media.max_album_length,expression:"media.max_album_length"}],staticClass:"form-control",attrs:{type:"number",min:"1",max:"20",name:"max_album_length"},domProps:{value:e.media.max_album_length},on:{input:function(t){t.target.composing||e.$set(e.media,"max_album_length",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n The maximum number of photos or videos per album\n ")])]),e._v(" "),a("transition",{attrs:{name:"fade"}},[e.media.optimize_image?a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Image Quality")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.media.image_quality,expression:"media.image_quality"}],staticClass:"form-control",attrs:{type:"number",min:"20",max:"100",name:"image_quality"},domProps:{value:e.media.image_quality},on:{input:function(t){t.target.composing||e.$set(e.media,"image_quality",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Image optimization quality from 0-100%.\n ")])]):e._e()])],1)])],1):"platform"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Platform",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("platform")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("checkbox",{attrs:{name:"Allow Profile Embeds",value:e.platform.allow_profile_embeds,description:"Allow anyone to embed public profiles on other websites."},on:{change:function(t){return e.handleChange(t,"platform","allow_profile_embeds")}}}),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-0"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.allow_app_registration,expression:"platform.allow_app_registration"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"allow_app_registrations",id:"platform1",disabled:"open"!==e.features.registration_status},domProps:{checked:Array.isArray(e.platform.allow_app_registration)?e._i(e.platform.allow_app_registration,null)>-1:e.platform.allow_app_registration},on:{change:function(t){var a=e.platform.allow_app_registration,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&e.$set(e.platform,"allow_app_registration",a.concat([null])):n>-1&&e.$set(e.platform,"allow_app_registration",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.platform,"allow_app_registration",i)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"platform1"}},[e._v("Allow App Registrations")])]),e._v(" "),"open"!==e.features.registration_status?a("p",{staticClass:"mb-0 small text-muted"},[e._v("Requires open registration to be enabled.")]):a("p",{staticClass:"mb-0 small"},[e._v("Allow users to register via the official Pixelfed mobile application.")])])]),e._v(" "),a("checkbox",{attrs:{name:"Custom Emoji",value:e.platform.custom_emoji_enabled,description:"Enable federated custom emoji that is compatible with Mastodon, Pleroma and others."},on:{change:function(t){return e.handleChange(t,"platform","custom_emoji_enabled")}}}),e._v(" "),"open"===e.features.registration_status&&e.features.allow_app_registration?[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("app_registration_rate_limit_attempts")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.app_registration_rate_limit_attempts,expression:"platform.app_registration_rate_limit_attempts"}],staticClass:"form-control",attrs:{type:"number",name:"app_registration_rate_limit_attempts"},domProps:{value:e.platform.app_registration_rate_limit_attempts},on:{input:function(t){t.target.composing||e.$set(e.platform,"app_registration_rate_limit_attempts",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n app_registration_rate_limit_attempts.\n ")])]),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("app_registration_rate_limit_decay")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.app_registration_rate_limit_decay,expression:"platform.app_registration_rate_limit_decay"}],staticClass:"form-control",attrs:{type:"number",name:"app_registration_rate_limit_decay"},domProps:{value:e.platform.app_registration_rate_limit_decay},on:{input:function(t){t.target.composing||e.$set(e.platform,"app_registration_rate_limit_decay",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n app_registration_rate_limit_decay\n ")])])]:e._e()],2),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("checkbox",{attrs:{name:"Allow Post Embeds",value:e.platform.allow_post_embeds,description:"Allow anyone to embed public posts on other websites."},on:{change:function(t){return e.handleChange(t,"platform","allow_post_embeds")}}}),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.captcha_enabled,expression:"platform.captcha_enabled"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"hcaps",id:"hcp"},domProps:{checked:Array.isArray(e.platform.captcha_enabled)?e._i(e.platform.captcha_enabled,null)>-1:e.platform.captcha_enabled},on:{change:function(t){var a=e.platform.captcha_enabled,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&e.$set(e.platform,"captcha_enabled",a.concat([null])):n>-1&&e.$set(e.platform,"captcha_enabled",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.platform,"captcha_enabled",i)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"hcp"}},[e._v("Enable hCaptcha")])])]),e._v(" "),e.platform.captcha_enabled?[a("hr",{staticClass:"my-2"}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"form-group my-1"},[a("label",{staticClass:"text-muted small"},[e._v("hCaptcha Secret")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.captcha_secret,expression:"platform.captcha_secret"}],staticClass:"form-control",attrs:{type:"text",name:"captcha_secret"},domProps:{value:e.platform.captcha_secret},on:{input:function(t){t.target.composing||e.$set(e.platform,"captcha_secret",t.target.value)}}})])]),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"form-group my-1"},[a("label",{staticClass:"text-muted small"},[e._v("hCaptcha Sitekey")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.captcha_sitekey,expression:"platform.captcha_sitekey"}],staticClass:"form-control",attrs:{type:"text",name:"captcha_sitekey"},domProps:{value:e.platform.captcha_sitekey},on:{input:function(t){t.target.composing||e.$set(e.platform,"captcha_sitekey",t.target.value)}}})])])]),e._v(" "),a("hr",{staticClass:"mt-2 mb-4"}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-lg-6"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.captcha_on_login,expression:"platform.captcha_on_login"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"captcha_on_login",id:"captcha_on_login"},domProps:{checked:Array.isArray(e.platform.captcha_on_login)?e._i(e.platform.captcha_on_login,null)>-1:e.platform.captcha_on_login},on:{change:function(t){var a=e.platform.captcha_on_login,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&e.$set(e.platform,"captcha_on_login",a.concat([null])):n>-1&&e.$set(e.platform,"captcha_on_login",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.platform,"captcha_on_login",i)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"captcha_on_login"}},[e._v("Login Captcha")])])]),e._v(" "),a("div",{staticClass:"col-12 col-lg-6"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.captcha_on_register,expression:"platform.captcha_on_register"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"captcha_on_register",id:"captcha_on_register"},domProps:{checked:Array.isArray(e.platform.captcha_on_register)?e._i(e.platform.captcha_on_register,null)>-1:e.platform.captcha_on_register},on:{change:function(t){var a=e.platform.captcha_on_register,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&e.$set(e.platform,"captcha_on_register",a.concat([null])):n>-1&&e.$set(e.platform,"captcha_on_register",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.platform,"captcha_on_register",i)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"captcha_on_register"}},[e._v("Register Captcha")])])])]),e._v(" "),a("hr",{staticClass:"mt-4 mb-2"})]:e._e(),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Enable hCaptcha on login and register pages\n ")])],2),e._v(" "),"open"===e.features.registration_status&&e.features.allow_app_registration?[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("app_registration_confirm_rate_limit_attempts")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.app_registration_confirm_rate_limit_attempts,expression:"platform.app_registration_confirm_rate_limit_attempts"}],staticClass:"form-control",attrs:{type:"number",name:"app_registration_confirm_rate_limit_attempts"},domProps:{value:e.platform.app_registration_confirm_rate_limit_attempts},on:{input:function(t){t.target.composing||e.$set(e.platform,"app_registration_confirm_rate_limit_attempts",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n app_registration_confirm_rate_limit_attempts.\n ")])]),e._v(" "),a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("app_registration_confirm_rate_limit_decay")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.platform.app_registration_confirm_rate_limit_decay,expression:"platform.app_registration_confirm_rate_limit_decay"}],staticClass:"form-control",attrs:{type:"number",name:"app_registration_confirm_rate_limit_decay"},domProps:{value:e.platform.app_registration_confirm_rate_limit_decay},on:{input:function(t){t.target.composing||e.$set(e.platform,"app_registration_confirm_rate_limit_decay",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n app_registration_confirm_rate_limit_decay.\n ")])])]:e._e()],2)])],1):"posts"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Posts",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("posts")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Max Caption Length")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.posts.max_caption_length,expression:"posts.max_caption_length"}],staticClass:"form-control",attrs:{type:"number",min:"1",max:"10000",name:"max_caption_limit"},domProps:{value:e.posts.max_caption_length},on:{input:function(t){t.target.composing||e.$set(e.posts,"max_caption_length",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n The maximum character count of post captions. We recommend a limit between 500-2000.\n ")])])]),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Max Alttext Length")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.posts.max_altext_length,expression:"posts.max_altext_length"}],staticClass:"form-control",attrs:{type:"number",min:"1",max:"10000",name:"max_altext_length"},domProps:{value:e.posts.max_altext_length},on:{input:function(t){t.target.composing||e.$set(e.posts,"max_altext_length",t.target.value)}}})]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n The maximum character count of post media alttext captions. We recommend a limit between 2000-10000.\n ")])])])])],1):"rules"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Rules",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("rules")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 mb-3"},[e.hasDuplicateRulesComputed?a("div",{staticClass:"alert alert-danger"},[a("p",{staticClass:"font-weight-bold mb-0"},[e._v("Duplicate rules detected, you should fix this!")])]):e._e(),e._v(" "),a("div",{staticClass:"position-relative"},[a("div",{staticClass:"card shadow-none border"},[a("div",{staticClass:"card-header py-2 bg-primary text-white font-weight-bold text-center"},[e._v("Active Rules")]),e._v(" "),a("div",{staticClass:"list-group list-group-flush"},[e._l(e.rulesComputed,(function(t,s){return a("div",{staticClass:"list-group-item"},[a("div",{staticClass:"d-flex justify-content-between align-items-start"},[a("div",{staticClass:"d-flex gap-1 align-items-start"},[a("div",{staticClass:"rule-badge"},[a("div",{staticClass:"rule-badge-inner"},[e._v(e._s(s+1))])]),e._v(" "),a("admin-read-more",{key:t,staticClass:"text-dark rule-text",attrs:{content:t,maxLength:140,initialLimit:30,fontSize:"13"}})],1),e._v(" "),a("button",{staticClass:"btn btn-link btn-sm",attrs:{disabled:e.isDeletingRule},on:{click:function(a){return a.preventDefault(),e.handleDeleteRule(t,s,a)}}},[a("i",{staticClass:"fas fa-trash-alt text-danger"})])])])})),e._v(" "),e.rules&&e.rules.length?e._e():a("div",{staticClass:"list-group-item"},[a("p",{staticClass:"text-center mb-0"},[e._v("No rules set!")])])],2)]),e._v(" "),!e.showAllRules&&e.rules.length>2?a("div",{staticClass:"d-flex justify-content-center",staticStyle:{position:"absolute",width:"100%","padding-top":"10rem",bottom:"0",background:"linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255, 1))"}},[a("button",{staticClass:"btn btn-dark font-weight-bold rounded-pill btn-block",on:{click:function(t){t.preventDefault(),e.showAllRules=!0}}},[e._v("Show all rules")])]):e._e()])]),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-1"},[a("label",{staticClass:"font-weight-bold text-muted"},[e._v("Add New Rule")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.newRule,expression:"newRule"}],staticClass:"form-control",attrs:{type:"text",name:"new_rule",rows:"5",minlength:"5",maxlength:"1000",placeholder:"Add your new rule here...",disabled:e.isSubmittingNewRule||e.isDeletingRule},domProps:{value:e.newRule},on:{input:function(t){t.target.composing||(e.newRule=t.target.value)}}})]),e._v(" "),a("div",{staticClass:"d-flex justify-content-between align-items-center"},[a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Add a new rule\n ")]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n "+e._s(e.newRule&&e.newRule.length?e.newRule.length:0)+"/1000\n ")])]),e._v(" "),a("hr",{staticClass:"my-2"}),e._v(" "),a("p",{staticClass:"mb-0"},[a("button",{staticClass:"btn btn-primary btn-sm btn-block font-weight-bold rounded-pill",attrs:{disabled:!e.newRule||!e.newRule.length||e.isSubmittingNewRule||e.isDeletingRule},on:{click:function(t){return t.preventDefault(),e.handleAddRule.apply(null,arguments)}}},[e._v("Add Rule")])])]),e._v(" "),e.rules&&e.rules.length?a("button",{staticClass:"btn btn-outline-danger rounded-pill btn-block btn-sm",on:{click:function(t){return t.preventDefault(),e.handleDeleteAllRules.apply(null,arguments)}}},[e._v("Delete all rules")]):e._e()]),e._v(" "),e.suggestedRulesComputed&&e.suggestedRulesComputed.length?a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"border-bottom pb-2 mb-3 d-flex justify-content-between align-items-center"},[a("p",{staticClass:"font-weight-bold mb-0"},[e._v("Suggested Rules")]),e._v(" "),e.rules.length?e._e():a("a",{staticClass:"font-weight-bold small",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.importAllDefaultRules.apply(null,arguments)}}},[e._v("Import All")])]),e._v(" "),a("div",{staticClass:"list-group"},e._l(e.suggestedRulesComputed,(function(t){return a("a",{staticClass:"list-group-item small",attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),e.addSuggestedRule(t,a)}}},[e._v(e._s(t))])})),0)]):e._e()])],1):"storage"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Storage",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("storage")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body",staticStyle:{padding:"1.1rem 1.6rem"}},[a("div",{staticClass:"form-group mb-0"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[e._v("Primary Storage Disk")]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.storage.primary_disk,expression:"storage.primary_disk"}],staticClass:"form-control form-control-muted",on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));e.$set(e.storage,"primary_disk",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"local"}},[e._v("Local")]),e._v(" "),a("option",{attrs:{value:"cloud"}},[e._v("Cloud/S3")])])]),e._v(" "),a("p",{staticClass:"help-text small text-muted mt-2 mb-0"},[e._v("\n The storage disk where avatars and media uploads are stored.\n ")])])]),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card border"},[e._m(2),e._v(" "),e.showDiskConfig?a("div",{staticClass:"card-body"},[a("div",{staticClass:"form-group mb-4 d-flex align-items-center gap-1"},[a("label",{staticClass:"font-weight-bold mb-0",attrs:{for:"form-summary"}},[e._v("Disk")]),e._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.storage.disk_config.driver,expression:"storage.disk_config.driver"}],staticClass:"form-control form-control-muted mb-0",on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));e.$set(e.storage.disk_config,"driver",t.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"s3"}},[e._v("S3")]),e._v(" "),a("option",{attrs:{value:"spaces"}},[e._v("DigitalOcean Spaces")])])]),e._v(" "),a("form-input",{attrs:{name:"Key",value:e.storage.disk_config.key,description:"",isCard:!1,isInline:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","key")}}}),e._v(" "),a("form-input",{attrs:{name:"Secret",value:e.storage.disk_config.secret,description:"",isCard:!1,isInline:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","secret")}}}),e._v(" "),a("form-input",{attrs:{name:"Region",value:e.storage.disk_config.region,description:"",isCard:!1,isInline:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","region")}}}),e._v(" "),a("form-input",{attrs:{name:"Bucket",value:e.storage.disk_config.bucket,description:"",isCard:!1,isInline:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","bucket")}}}),e._v(" "),a("form-input",{attrs:{name:"Endpoint",value:e.storage.disk_config.endpoint,description:"",isCard:!1,isInline:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","endpoint")}}}),e._v(" "),a("form-input",{attrs:{name:"Visibility",value:e.storage.disk_config.visibility,description:"",isCard:!1,isInline:!0,isDisabled:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","visibility")}}}),e._v(" "),a("form-input",{attrs:{name:"Url",value:e.storage.disk_config.url,description:"",isCard:!1,isInline:!0},on:{change:function(t){return e.handleSubChange(t,"storage","disk_config","url")}}})],1):a("div",{staticClass:"card-body"},[a("p",{staticClass:"text-center mb-0"},[a("a",{staticClass:"btn btn-primary bg-gradient-primary shadow-lg rounded-pill",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.showDiskConfig=!0}}},[e._v("\n View/Edit\n ")])])])])])])],1):"users"===e.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("tab-header",{attrs:{title:"Users",saving:e.isSubmitting,saved:e.isSubmittingTimeout},on:{save:function(t){return e.handleSave("users")}}}),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("checkbox",{attrs:{name:"Require Email Verifications",value:e.users.require_email_verification,description:"Require users to verify their email address is valid before they can use the account."},on:{change:function(t){return e.handleChange(t,"users","require_email_verification")}}}),e._v(" "),a("form-input",{attrs:{name:"Max User Blocks",value:e.users.max_user_blocks.toString(),description:"The max number of account blocks per user."},on:{change:function(t){return e.handleChange(t,"users","max_user_blocks")}}}),e._v(" "),a("form-input",{attrs:{name:"Max User Mutes",value:e.users.max_user_mutes.toString(),description:"The max number of account mutes per user."},on:{change:function(t){return e.handleChange(t,"users","max_user_mutes")}}}),e._v(" "),a("form-input",{attrs:{name:"Max User Domain Blocks",value:e.users.max_domain_blocks.toString(),description:"The max number of domain blocks per user."},on:{change:function(t){return e.handleChange(t,"users","max_domain_blocks")}}})],1),e._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card shadow-none border card-body"},[a("div",{staticClass:"form-group mb-0"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.users.enforce_account_limit,expression:"users.enforce_account_limit"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"enforce_account_limit",id:"users2"},domProps:{checked:Array.isArray(e.users.enforce_account_limit)?e._i(e.users.enforce_account_limit,null)>-1:e.users.enforce_account_limit},on:{change:function(t){var a=e.users.enforce_account_limit,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&e.$set(e.users,"enforce_account_limit",a.concat([null])):n>-1&&e.$set(e.users,"enforce_account_limit",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.users,"enforce_account_limit",i)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"users2"}},[e._v("Enforce Account Limit")])]),e._v(" "),a("p",{staticClass:"mb-0 small"},[e._v("Set a storage limit per user account for all uploaded media (photo + video).")])]),e._v(" "),a("transition",{attrs:{name:"fade"}},[e.users.enforce_account_limit?a("div",[a("hr",{staticClass:"my-2"}),e._v(" "),a("div",{staticClass:"form-group mb-1"},[a("div",{staticClass:"input-group mb-0"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.users.max_account_size,expression:"users.max_account_size"}],staticClass:"form-control",attrs:{type:"text",placeholder:"15000","aria-label":"Max account size","aria-describedby":"maxMediaSize"},domProps:{value:e.users.max_account_size},on:{input:function(t){t.target.composing||e.$set(e.users,"max_account_size",t.target.value)}}}),e._v(" "),a("div",{staticClass:"input-group-append"},[a("span",{staticClass:"input-group-text"},[e._v("= "+e._s(e.maxAccountSizeToMb))])])])]),e._v(" "),a("p",{staticClass:"help-text small text-muted mb-0"},[e._v("\n Maximum file storage limit per user account.\n ")])]):e._e()])],1),e._v(" "),a("div",{staticClass:"card shadow-none border"},[a("div",{staticClass:"card-body"},[a("div",{staticClass:"form-group mb-0"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.users.admin_autofollow,expression:"users.admin_autofollow"}],staticClass:"custom-control-input",attrs:{type:"checkbox",name:"admin_autofollow",id:"users4"},domProps:{checked:Array.isArray(e.users.admin_autofollow)?e._i(e.users.admin_autofollow,null)>-1:e.users.admin_autofollow},on:{change:function(t){var a=e.users.admin_autofollow,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&e.$set(e.users,"admin_autofollow",a.concat([null])):n>-1&&e.$set(e.users,"admin_autofollow",a.slice(0,n).concat(a.slice(n+1)))}else e.$set(e.users,"admin_autofollow",i)}}}),e._v(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"users4"}},[e._v("Autofollow Accounts")])]),e._v(" "),a("p",{staticClass:"mb-0 small"},[e._v("Force new accounts to follow accounts you specify below")])])]),e._v(" "),a("transition",{attrs:{name:"fade"}},[e.users.admin_autofollow?a("div",{staticClass:"list-group list-group-flush"},[null!==(t=e.users.admin_autofollow_accounts)&&void 0!==t&&t.length?a("div",e._l(e.users.admin_autofollow_accounts,(function(t){return a("div",{staticClass:"list-group-item"},[a("div",{staticClass:"d-flex justify-content-between align-items-center"},[a("p",{staticClass:"font-weight-bold mb-0"},[e._v("@"+e._s(t))]),e._v(" "),a("button",{staticClass:"btn btn-link p-0",on:{click:function(a){return a.preventDefault(),e.removeAutofollow(t,a)}}},[a("i",{staticClass:"fas fa-trash-alt text-danger"})])])])})),0):a("div",{staticClass:"list-group-item"},[a("p",{staticClass:"text-center mb-0"},[e._v("No autofollow accounts active.")])])]):e._e()]),e._v(" "),a("transition",{attrs:{name:"fade"}},[e.users.admin_autofollow&&e.users.admin_autofollow_accounts&&e.users.admin_autofollow_accounts.length<5?a("div",{staticClass:"card-footer"},[a("button",{staticClass:"btn btn-primary btn-block rounded-pill",on:{click:function(t){return t.preventDefault(),e.addAutofollow.apply(null,arguments)}}},[e._v("Add Autofollow Account")])]):e._e()])],1)])])],1):e._e()])])])])])])]):a("div",[e._m(3)])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"header bg-primary pb-2 mt-n4"},[e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"header-body"},[e("div",{staticClass:"row align-items-center py-4"},[e("div",{staticClass:"col-lg-6 col-7"},[e("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[t._v("Settings")]),t._v(" "),e("p",{staticClass:"h3 text-white font-weight-light"},[t._v("Manage your server settings")])])])])])])},function(){var t=this._self._c;return t("div",{staticClass:"col-12 col-md-4"},[t("p",[t("a",{staticClass:"btn btn-dark btn-block",attrs:{href:"/i/admin/settings/custom-css"}},[this._v("Edit Custom CSS")])])])},function(){var t=this._self._c;return t("div",{staticClass:"card-header bg-gradient-primary"},[t("p",{staticClass:"text-center mb-0 text-white font-weight-bold"},[this._v("Cloud Disk Config")])])},function(){var t=this._self._c;return t("div",{staticClass:"container my-5 py-5 text-center"},[t("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])])}]},64441:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[t.status.media_attachments&&t.status.media_attachments.length?e("div",{staticClass:"list-group-item",staticStyle:{gap:"1rem",overflow:"hidden"}},[e("div",{staticClass:"text-center text-muted small font-weight-bold mb-3"},[t._v("Reported Post Media")]),t._v(" "),t.status.media_attachments&&t.status.media_attachments.length?e("div",{staticClass:"d-flex flex-grow-1",staticStyle:{gap:"1rem","overflow-x":"auto"}},[t._l(t.status.media_attachments,(function(a){return["image"===a.type?e("img",{staticClass:"rounded",staticStyle:{"object-fit":"cover"},attrs:{src:a.url,width:"70",height:"70",onerror:"this.src='/storage/no-preview.png';this.error=null;"},on:{click:t.toggleLightbox}}):"video"===a.type?e("video",{staticClass:"rounded",attrs:{width:"140",height:"90",playsinline:""},on:{click:function(e){return e.preventDefault(),t.toggleVideoLightbox(e,a.url)}}},[e("source",{attrs:{src:a.url,type:a.mime}})]):t._e()]}))],2):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item d-flex flex-row flex-grow-1",staticStyle:{gap:"1rem"}},[e("div",{staticClass:"flex-grow-1"},[t.status&&t.status.in_reply_to_id&&t.status.parent&&t.status.parent.account?e("div",{staticClass:"mb-3"},[t.showInReplyTo?[e("div",{staticClass:"mt-n1 text-center text-muted small font-weight-bold mb-1"},[t._v("Reply to")]),t._v(" "),e("div",{staticClass:"media",staticStyle:{gap:"1rem"}},[e("img",{staticClass:"rounded-lg",attrs:{src:t.status.parent.account.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),e("div",{staticClass:"d-flex flex-column"},[e("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"11px"}},[e("a",{attrs:{href:"/i/web/profile/".concat(t.status.parent.account.id),target:"_blank"}},[t._v(t._s(t.status.parent.account.acct))])]),t._v(" "),e("admin-read-more",{attrs:{content:t.status.parent.content_text}}),t._v(" "),e("p",{staticClass:"mb-1"},[e("a",{staticClass:"text-muted",staticStyle:{"font-size":"11px"},attrs:{href:"/i/web/post/".concat(t.status.parent.id),target:"_blank"}},[e("i",{staticClass:"far fa-link mr-1"}),t._v(" "+t._s(t.formatDate(t.status.parent.created_at))+"\n ")])])],1)]),t._v(" "),e("hr",{staticClass:"my-1"})]:e("a",{staticClass:"btn btn-dark font-weight-bold btn-block btn-sm",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showInReplyTo=!0}}},[t._v("Show parent post")])],2):t._e(),t._v(" "),e("div",[e("div",{staticClass:"mt-n1 text-center text-muted small font-weight-bold mb-1"},[t._v("Reported Post")]),t._v(" "),e("div",{staticClass:"media",staticStyle:{gap:"1rem"}},[e("img",{staticClass:"rounded-lg",attrs:{src:t.status.account.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),e("div",{staticClass:"d-flex flex-column"},[e("p",{staticClass:"font-weight-bold mb-0",staticStyle:{"font-size":"11px"}},[e("a",{attrs:{href:"/i/web/profile/".concat(t.status.account.id),target:"_blank"}},[t._v(t._s(t.status.account.acct))])]),t._v(" "),t.status&&t.status.content_text&&t.status.content_text.length?[e("admin-read-more",{attrs:{content:t.status.content_text}})]:[e("admin-read-more",{staticClass:"font-weight-bold text-muted",attrs:{content:"EMPTY CAPTION"}})],t._v(" "),e("p",{staticClass:"mb-0"},[e("a",{staticClass:"text-muted",staticStyle:{"font-size":"11px"},attrs:{href:"/i/web/post/".concat(t.status.id),target:"_blank"}},[e("i",{staticClass:"far fa-link mr-1"}),t._v(" "+t._s(t.formatDate(t.status.created_at))+"\n ")])])],2)])])])])])},i=[]},38391:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"mb-0",style:{"font-size":"".concat(t.fontSize,"px")}},[t._v(t._s(t.contentText))]),t._v(" "),e("p",{staticClass:"mb-0"},[t.canStepExpand||t.canExpand&&!t.expanded?e("a",{staticClass:"font-weight-bold small",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.expand()}}},[t._v("Read more")]):t._e()])])},i=[]},24664:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("b-modal",{attrs:{title:"Remote Report","ok-only":!0,"ok-title":"Close",lazy:!0,scrollable:!0,"ok-variant":"outline-primary"},on:{hide:function(e){return t.$emit("close")}},model:{value:t.isOpen,callback:function(e){t.isOpen=e},expression:"isOpen"}},[t.isLoading?e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("b-spinner")],1):[e("div",{staticClass:"list-group"},[e("div",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[e("div",{staticClass:"text-muted small font-weight-bold"},[t._v("Instance")]),t._v(" "),e("div",{staticClass:"font-weight-bold"},[t._v(t._s(t.model.instance))])]),t._v(" "),t.model.message&&t.model.message.length?e("div",{staticClass:"list-group-item d-flex justify-content-between align-items-center flex-column gap-1"},[e("div",{staticClass:"text-muted small font-weight-bold mb-2"},[t._v("Message")]),t._v(" "),e("div",{staticClass:"text-wrap w-100",staticStyle:{"word-break":"break-all","font-size":"12.5px"}},[e("admin-read-more",{attrs:{content:t.model.message,"font-size":"11",step:!0,"initial-limit":100,stepLimit:1e3}})],1)]):t._e()]),t._v(" "),e("div",{staticClass:"list-group list-group-horizontal mt-3"},[t.model&&t.model.reported?e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-between flex-row flex-grow-1",staticStyle:{gap:"0.4rem"}},[e("div",{staticClass:"text-muted small font-weight-bold"},[t._v("Reported Account")]),t._v(" "),e("div",{staticClass:"d-flex justify-content-end flex-grow-1"},[t.model.reported&&t.model.reported.id?e("a",{staticClass:"text-primary",attrs:{href:"/i/web/profile/".concat(t.model.reported.id),target:"_blank"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"0.61rem"}},[e("img",{staticStyle:{"object-fit":"cover","border-radius":"30px"},attrs:{src:t.model.reported.avatar,width:"30",height:"30",onerror:"this.src='/storage/avatars/default.png';this.error=null;"}}),t._v(" "),e("div",{staticClass:"d-flex flex-column"},[e("p",{staticClass:"font-weight-bold mb-0 text-break",class:[t.model.reported.is_admin?"text-danger":""],staticStyle:{"font-size":"12px","max-width":"140px","line-height":"16px"}},[t._v("@"+t._s(t.model.reported.acct))]),t._v(" "),e("div",{staticClass:"d-flex text-muted mb-0",staticStyle:{"font-size":"10px",gap:"0.5rem"}},[e("span",[t._v(t._s(t.prettyCount(t.model.reported.followers_count))+" Followers")]),t._v(" "),e("span",[t._v("·")]),t._v(" "),e("span",[t._v("Joined "+t._s(t.timeAgo(t.model.reported.created_at)))])])])])]):t._e()])]):e("div",{staticClass:"list-group-item d-flex align-items-center justify-content-center flex-column flex-grow-1"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Reported Account Unavailable")]),t._v(" "),e("p",{staticClass:"small mb-0"},[t._v("The reported account may have been deleted, or is otherwise not currently active. You can safely "),e("strong",[t._v("Close Report")]),t._v(" to mark this report as read.")])])]),t._v(" "),t.model&&t.model.statuses&&t.model.statuses.length?e("div",{staticClass:"list-group mt-3"},t._l(t.model.statuses,(function(t,a){return e("admin-modal-post",{key:"admin-modal-post-remote-post:".concat(t.id,":").concat(a),attrs:{status:t}})})),1):t._e(),t._v(" "),e("div",{staticClass:"mt-4"},[e("div",[e("button",{staticClass:"btn btn-dark btn-block rounded-pill",attrs:{type:"button"},on:{click:function(e){return t.handleAction("mark-read")}}},[t._v("\n Close Report\n ")]),t._v(" "),e("button",{staticClass:"btn btn-outline-dark btn-block text-center rounded-pill",staticStyle:{"word-break":"break-all"},attrs:{type:"button"},on:{click:function(e){return t.handleAction("mark-all-read-by-domain")}}},[e("span",{staticClass:"font-weight-light"},[t._v("Close all reports from")]),t._v(" "),e("strong",[t._v(t._s(t.model.instance))])]),t._v(" "),t.model.reported?e("button",{staticClass:"btn btn-outline-dark btn-block rounded-pill flex-grow-1",attrs:{type:"button"},on:{click:function(e){return t.handleAction("mark-all-read-by-username")}}},[e("span",{staticClass:"font-weight-light"},[t._v("Close all reports against")]),t._v(" "),e("strong",[t._v("@"+t._s(t.model.reported.username))])]):t._e(),t._v(" "),t.model&&t.model.statuses&&t.model.statuses.length&&t.model.reported?[e("hr",{staticClass:"mt-3 mb-1"}),t._v(" "),e("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("cw-posts")}}},[t._v("\n Apply CW to Post(s)\n ")]),t._v(" "),e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("unlist-posts")}}},[t._v("\n Unlist Post(s)\n ")])]),t._v(" "),e("div",{staticClass:"d-flex flex-row mt-2"},[e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("private-posts")}}},[t._v("\n Make Post(s) Private\n ")]),t._v(" "),e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("delete-posts")}}},[t._v("\n Delete Post(s)\n ")])])]:t.model&&t.model.statuses&&!t.model.statuses.length&&t.model.reported?[e("hr",{staticClass:"mt-3 mb-1"}),t._v(" "),e("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("cw-all-posts")}}},[t._v("\n Apply CW to all posts\n ")]),t._v(" "),e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("unlist-all-posts")}}},[t._v("\n Unlist all account posts\n ")])]),t._v(" "),e("div",{staticClass:"d-flex flex-row mt-2",staticStyle:{gap:"0.3rem"}},[e("button",{staticClass:"btn btn-outline-danger btn-block btn-sm rounded-pill mt-0",attrs:{type:"button"},on:{click:function(e){return t.handleAction("private-all-posts")}}},[t._v("\n Make all posts private\n ")])])]:t._e()],2)])]],2)},i=[]},16231:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card shadow-none border card-body"},[e("div",{staticClass:"form-group mb-0"},[e("div",{staticClass:"custom-control custom-checkbox"},[e("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",name:t.elementId,id:t.elementId},domProps:{checked:t.value},on:{change:function(e){return t.$emit("change",!t.value)}}}),t._v(" "),e("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:t.elementId}},[t._v(t._s(t.name))])]),t._v(" "),e("p",{staticClass:"mt-1 mb-0 small text-muted",domProps:{innerHTML:t._s(t.description)}})])])},i=[]},96858:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{class:[t.isCard?"card shadow-none border card-body":""]},[e("div",{staticClass:"form-group",class:[t.isInline?"d-flex align-items-center gap-1":"mb-1"]},[e("label",{staticClass:"font-weight-bold mb-0",attrs:{for:t.elementId}},[t._v(t._s(t.name))]),t._v(" "),e("input",{staticClass:"form-control form-control-muted mb-0",attrs:{id:t.elementId,placeholder:t.placeholder,disabled:t.isDisabled},domProps:{value:t.value},on:{input:function(e){return t.$emit("change",e.target.value)}}})]),t._v(" "),t.description&&t.description.length?e("p",{staticClass:"help-text small text-muted mb-0",domProps:{innerHTML:t._s(t.description)}}):t._e()])},i=[]},23075:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",{staticStyle:{width:"100px"}}),t._v(" "),e("div",[e("h2",{staticClass:"display-4 mb-0",staticStyle:{"font-weight":"800"}},[t._v(t._s(t.title))])]),t._v(" "),e("div",[e("button",{staticClass:"btn btn-primary rounded-pill font-weight-bold px-5",attrs:{disabled:t.isSaving||t.saved},on:{click:function(e){return e.preventDefault(),t.save.apply(null,arguments)}}},[!0===t.isSaving?[e("b-spinner",{staticClass:"mx-2",attrs:{small:""}})]:[t._v(t._s(t.buttonLabel))]],2)])]),t._v(" "),e("hr",{staticClass:"mt-3"})])},i=[]},36671:(t,e,a)=>{a(74692);a(9901),window._=a(2543),window.Popper=a(48851).default,window.pixelfed=window.pixelfed||{},window.$=a(74692),a(52754),window.axios=a(86425),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",a(63899),window.filesize=a(91139),window.Cookies=a(12215),a(81027),a(66482),window.Chart=a(62477),a(83925),Chart.defaults.global.defaultFontFamily="-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif",Array.from(document.querySelectorAll(".pagination .page-link")).filter((function(t){return"« Previous"===t.textContent||"Next »"===t.textContent})).forEach((function(t){return t.textContent="Next »"===t.textContent?"›":"‹"})),Vue.component("admin-autospam",a(80430).default),Vue.component("admin-directory",a(65465).default),Vue.component("admin-reports",a(13929).default),Vue.component("admin-settings",a(93139).default),Vue.component("instances-component",a(50828).default),Vue.component("hashtag-component",a(47739).default)},83925:(t,e,a)=>{"use strict";var s=a(74692);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}!function(){function t(){s(".sidenav-toggler").addClass("active"),s(".sidenav-toggler").data("action","sidenav-unpin"),s("body").removeClass("g-sidenav-hidden").addClass("g-sidenav-show g-sidenav-pinned"),s("body").append('
1&&(o+=''+i+""),o+=''+a+n+s+""}}}(t,a),a.update()}return window.Chart&&r(Chart,(t={defaults:{global:{responsive:!0,maintainAspectRatio:!1,defaultColor:o.gray[600],defaultFontColor:o.gray[600],defaultFontFamily:n.base,defaultFontSize:13,layout:{padding:0},legend:{display:!1,position:"bottom",labels:{usePointStyle:!0,padding:16}},elements:{point:{radius:0,backgroundColor:o.theme.primary},line:{tension:.4,borderWidth:4,borderColor:o.theme.primary,backgroundColor:o.transparent,borderCapStyle:"rounded"},rectangle:{backgroundColor:o.theme.warning},arc:{backgroundColor:o.theme.primary,borderColor:o.white,borderWidth:4}},tooltips:{enabled:!0,mode:"index",intersect:!1}},doughnut:{cutoutPercentage:83,legendCallback:function(t){var e=t.data,a="";return e.labels.forEach((function(t,s){var i=e.datasets[0].backgroundColor[s];a+='',a+='',a+=t,a+=""})),a}}}},Chart.scaleService.updateScaleDefaults("linear",{gridLines:{borderDash:[2],borderDashOffset:[2],color:o.gray[300],drawBorder:!1,drawTicks:!1,drawOnChartArea:!0,zeroLineWidth:0,zeroLineColor:"rgba(0,0,0,0)",zeroLineBorderDash:[2],zeroLineBorderDashOffset:[2]},ticks:{beginAtZero:!0,padding:10,callback:function(t){if(!(t%10))return t}}}),Chart.scaleService.updateScaleDefaults("category",{gridLines:{drawBorder:!1,drawOnChartArea:!1,drawTicks:!1},ticks:{padding:20},maxBarThickness:10}),t)),e.on({change:function(){var t=s(this);t.is("[data-add]")&&d(t)},click:function(){var t=s(this);t.is("[data-update]")&&u(t)}}),{colors:o,fonts:n,mode:a}}(),b=((r=s(o=".btn-icon-clipboard")).length&&((n=r).tooltip().on("mouseleave",(function(){n.tooltip("hide")})),new ClipboardJS(o).on("success",(function(t){s(t.trigger).attr("title","Copied!").tooltip("_fixTitle").tooltip("show").attr("title","Copy to clipboard").tooltip("_fixTitle"),t.clearSelection()}))),l=s(".navbar-nav, .navbar-nav .nav"),c=s(".navbar .collapse"),d=s(".navbar .dropdown"),c.on({"show.bs.collapse":function(){!function(t){t.closest(l).find(c).not(t).collapse("hide")}(s(this))}}),d.on({"hide.bs.dropdown":function(){!function(t){var e=t.find(".dropdown-menu");e.addClass("close"),setTimeout((function(){e.removeClass("close")}),200)}(s(this))}}),function(){s(".navbar-nav");var t=s(".navbar .navbar-custom-collapse");t.length&&(t.on({"hide.bs.collapse":function(){!function(t){t.addClass("collapsing-out")}(t)}}),t.on({"hidden.bs.collapse":function(){!function(t){t.removeClass("collapsing-out")}(t)}}));var e=0;s(".sidenav-toggler").click((function(){if(1==e)s("body").removeClass("nav-open"),e=0,s(".bodyClick").remove();else{s('
').appendTo("body").click((function(){s("body").removeClass("nav-open"),e=0,s(".bodyClick").remove()})),s("body").addClass("nav-open"),e=1}}))}(),u=s('[data-toggle="popover"]'),m="",u.length&&u.each((function(){!function(t){t.data("color")&&(m="popover-"+t.data("color"));var e={trigger:"focus",template:''};t.popover(e)}(s(this))})),function(){var t=s(".scroll-me, [data-scroll-to], .toc-entry a");function e(t){var e=t.attr("href"),a=t.data("scroll-to-offset")?t.data("scroll-to-offset"):0,i={scrollTop:s(e).offset().top-a};s("html, body").stop(!0,!0).animate(i,600),event.preventDefault()}t.length&&t.on("click",(function(t){e(s(this))}))}(),(p=s('[data-toggle="tooltip"]')).length&&p.tooltip(),(v=s(".form-control")).length&&function(t){t.on("focus blur",(function(t){s(this).parents(".form-group").toggleClass("focused","focus"===t.type)})).trigger("blur")}(v),(f=s("#chart-bars")).length&&function(t){var e=new Chart(t,{type:"bar",data:{labels:["Jul","Aug","Sep","Oct","Nov","Dec"],datasets:[{label:"Sales",data:[25,20,30,22,17,29]}]}});t.data("chart",e)}(f),function(){var t=s("#c1-dark");t.length&&function(t){var e=new Chart(t,{type:"line",options:{scales:{yAxes:[{gridLines:{lineWidth:1,color:_.colors.gray[900],zeroLineColor:_.colors.gray[900]},ticks:{callback:function(t){if(!(t%10))return t}}}]},tooltips:{callbacks:{label:function(t,e){var a=e.datasets[t.datasetIndex].label||"",s=t.yLabel,i="";return e.datasets.length>1&&(i+=a),i+(s+" posts")}}}},data:{labels:["7","6","5","4","3","2","1"],datasets:[{label:"",data:s(".posts-this-week").data("update").data.datasets[0].data}]}});t.data("chart",e)}(t)}(),(h=s(".datepicker")).length&&h.each((function(){!function(t){t.datepicker({disableTouchKeyboard:!0,autoclose:!1})}(s(this))})),function(){if(s(".input-slider-container")[0]&&s(".input-slider-container").each((function(){var t=s(this).find(".input-slider"),e=t.attr("id"),a=t.data("range-value-min"),i=t.data("range-value-max"),n=s(this).find(".range-slider-value"),o=n.attr("id"),r=n.data("range-value-low"),l=document.getElementById(e),c=document.getElementById(o);b.create(l,{start:[parseInt(r)],connect:[!0,!1],range:{min:[parseInt(a)],max:[parseInt(i)]}}),l.noUiSlider.on("update",(function(t,e){c.textContent=t[e]}))})),s("#input-slider-range")[0]){var t=document.getElementById("input-slider-range"),e=document.getElementById("input-slider-range-value-low"),a=document.getElementById("input-slider-range-value-high"),i=[e,a];b.create(t,{start:[parseInt(e.getAttribute("data-range-value-low")),parseInt(a.getAttribute("data-range-value-high"))],connect:!0,range:{min:parseInt(t.getAttribute("data-range-value-min")),max:parseInt(t.getAttribute("data-range-value-max"))}}),t.noUiSlider.on("update",(function(t,e){i[e].textContent=t[e]}))}}());(g=s(".scrollbar-inner")).length&&g.scrollbar().scrollLock()},9901:function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}!function(){var e="object"===("undefined"==typeof window?"undefined":t(window))?window:"object"===("undefined"==typeof self?"undefined":t(self))?self:this,a=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder;e.URL=e.URL||e.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var s=e.Blob,i=URL.createObjectURL,n=URL.revokeObjectURL,o=e.Symbol&&e.Symbol.toStringTag,r=!1,c=!1,d=!!e.ArrayBuffer,u=a&&a.prototype.append&&a.prototype.getBlob;try{r=2===new Blob(["ä"]).size,c=2===new Blob([new Uint8Array([1,2])]).size}catch(t){}function m(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var a=new Uint8Array(t.byteLength);a.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=a.buffer}return e}return t}))}function p(t,e){e=e||{};var s=new a;return m(t).forEach((function(t){s.append(t)})),e.type?s.getBlob(e.type):s.getBlob()}function v(t,e){return new s(m(t),e||{})}e.Blob&&(p.prototype=Blob.prototype,v.prototype=Blob.prototype);var f="function"==typeof TextEncoder?TextEncoder.prototype.encode.bind(new TextEncoder):function(t){for(var a=0,s=t.length,i=e.Uint8Array||Array,n=0,o=Math.max(32,s+(s>>1)+7),r=new i(o>>3<<3);a=55296&&l<=56319){if(a=55296&&l<=56319)continue}if(n+4>r.length){o+=8,o=(o*=1+a/t.length*2)>>3<<3;var d=new Uint8Array(o);d.set(r),r=d}if(4294967168&l){if(4294965248&l)if(4294901760&l){if(4292870144&l)continue;r[n++]=l>>18&7|240,r[n++]=l>>12&63|128,r[n++]=l>>6&63|128}else r[n++]=l>>12&15|224,r[n++]=l>>6&63|128;else r[n++]=l>>6&31|192;r[n++]=63&l|128}else r[n++]=l}return r.slice(0,n)},h="function"==typeof TextDecoder?TextDecoder.prototype.decode.bind(new TextDecoder):function(t){for(var e=t.length,a=[],s=0;s239?4:l>223?3:l>191?2:1;if(s+d<=e)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(i=t[s+1]))&&(r=(31&l)<<6|63&i)>127&&(c=r);break;case 3:i=t[s+1],n=t[s+2],128==(192&i)&&128==(192&n)&&(r=(15&l)<<12|(63&i)<<6|63&n)>2047&&(r<55296||r>57343)&&(c=r);break;case 4:i=t[s+1],n=t[s+2],o=t[s+3],128==(192&i)&&128==(192&n)&&128==(192&o)&&(r=(15&l)<<18|(63&i)<<12|(63&n)<<6|63&o)>65535&&r<1114112&&(c=r)}null===c?(c=65533,d=1):c>65535&&(c-=65536,a.push(c>>>10&1023|55296),c=56320|1023&c),a.push(c),s+=d}var u=a.length,m="";for(s=0;s>2,d=(3&i)<<4|o>>4,u=(15&o)<<2|l>>6,m=63&l;r||(m=64,n||(u=64)),a.push(e[c],e[d],e[u],e[m])}return a.join("")}var s=Object.create||function(t){function e(){}return e.prototype=t,new e};if(d)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function c(a,s){s=null==s?{}:s;for(var i=0,n=(a=a||[]).length;i=e.size&&a.close()}))}})}}catch(t){try{new ReadableStream({}),_=function(t){var e=0;t=this;return new ReadableStream({pull:function(a){return t.slice(e,e+524288).arrayBuffer().then((function(s){e+=s.byteLength;var i=new Uint8Array(s);a.enqueue(i),e==t.size&&a.close()}))}})}}catch(t){try{new Response("").body.getReader().read(),_=function(){return new Response(this).body}}catch(t){_=function(){throw new Error("Include https://github.com/MattiasBuelens/web-streams-polyfill")}}}}b.arrayBuffer||(b.arrayBuffer=function(){var t=new FileReader;return t.readAsArrayBuffer(this),C(t)}),b.text||(b.text=function(){var t=new FileReader;return t.readAsText(this),C(t)}),b.stream||(b.stream=_)}(),function(t){"use strict";var e,a=t.Uint8Array,s=t.HTMLCanvasElement,i=s&&s.prototype,n=/\s*;\s*base64\s*(?:;|$)/i,o="toDataURL",r=function(t){for(var s,i,n=t.length,o=new a(n/4*3|0),r=0,l=0,c=[0,0],d=0,u=0;n--;)i=t.charCodeAt(r++),255!==(s=e[i-43])&&undefined!==s&&(c[1]=c[0],c[0]=i,u=u<<6|s,4===++d&&(o[l++]=u>>>16,61!==c[1]&&(o[l++]=u>>>8),61!==c[0]&&(o[l++]=u),d=0));return o};a&&(e=new a([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),!s||i.toBlob&&i.toBlobHD||(i.toBlob||(i.toBlob=function(t,e){if(e||(e="image/png"),this.mozGetAsFile)t(this.mozGetAsFile("canvas",e));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(e))t(this.msToBlob());else{var s,i=Array.prototype.slice.call(arguments,1),l=this[o].apply(this,i),c=l.indexOf(","),d=l.substring(c+1),u=n.test(l.substring(0,c));Blob.fake?((s=new Blob).encoding=u?"base64":"URI",s.data=d,s.size=d.length):a&&(s=u?new Blob([r(d)],{type:e}):new Blob([decodeURIComponent(d)],{type:e})),t(s)}}),!i.toBlobHD&&i.toDataURLHD?i.toBlobHD=function(){o="toDataURLHD";var t=this.toBlob();return o="toDataURL",t}:i.toBlobHD=i.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)},86700:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".gap-2[data-v-e104c6c0]{gap:1rem}",""]);const n=i},31006:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".rule-badge[data-v-b3d0940c]{background-color:#fff;border:2px solid var(--primary);border-radius:34px;height:34px;width:34px}.rule-badge[data-v-b3d0940c],.rule-badge-inner[data-v-b3d0940c]{align-items:center;display:flex;justify-content:center}.rule-badge-inner[data-v-b3d0940c]{background-color:var(--primary);border-radius:26px;color:#fff;font-size:13px;font-weight:700;height:26px;width:26px}.rule-text[data-v-b3d0940c]{font-size:14px;margin-bottom:0;max-width:90%}.gap-1[data-v-b3d0940c]{gap:1rem}",""]);const n=i},6289:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".gap-1[data-v-a624f3ac]{gap:1rem}",""]);const n=i},35358:(t,e,a)=>{var s={"./af":25177,"./af.js":25177,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":82682,"./ar-sa.js":82682,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":20623,"./en-sg.js":20623,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":52477,"./fo.js":52477,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function i(t){var e=n(t);return a(e)}function n(t){if(!a.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}i.keys=function(){return Object.keys(s)},i.resolve=n,t.exports=i,i.id=35358},55099:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(86700),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},21935:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(31006),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},59542:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(6289),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},80430:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(66196),i=a(45941),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},65465:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(36809),i=a(19990),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},47739:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(77764),i=a(41660),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},50828:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(63152),i=a(32311),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(87974);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,"e104c6c0",null).exports},13929:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(31722),i=a(13398),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},93139:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(29724),i=a(15568),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(54992);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,"b3d0940c",null).exports},27707:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(67774),i=a(41304),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},8889:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(32754),i=a(64814),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},98385:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(1711),i=a(41094),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},7210:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(90322),i=a(48965),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},62355:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(65781),i=a(62160),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(84835);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,"a624f3ac",null).exports},34429:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(94212),i=a(96634),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},45941:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(95366),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},19990:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(71847),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},41660:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(44107),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},32311:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(56310),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},13398:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(51839),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},15568:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(86871),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},41304:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(99697),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},64814:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(72173),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},41094:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(47835),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},48965:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(4970),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},62160:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(45053),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},96634:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(16563),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},66196:(t,e,a)=>{"use strict";a.r(e);var s=a(69385),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},36809:(t,e,a)=>{"use strict";a.r(e);var s=a(41298),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},77764:(t,e,a)=>{"use strict";a.r(e);var s=a(54449),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},63152:(t,e,a)=>{"use strict";a.r(e);var s=a(38343),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},31722:(t,e,a)=>{"use strict";a.r(e);var s=a(44381),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},29724:(t,e,a)=>{"use strict";a.r(e);var s=a(17349),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},67774:(t,e,a)=>{"use strict";a.r(e);var s=a(64441),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},32754:(t,e,a)=>{"use strict";a.r(e);var s=a(38391),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},1711:(t,e,a)=>{"use strict";a.r(e);var s=a(24664),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},90322:(t,e,a)=>{"use strict";a.r(e);var s=a(16231),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},65781:(t,e,a)=>{"use strict";a.r(e);var s=a(96858),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},94212:(t,e,a)=>{"use strict";a.r(e);var s=a(23075),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},87974:(t,e,a)=>{"use strict";a.r(e);var s=a(55099),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},54992:(t,e,a)=>{"use strict";a.r(e);var s=a(21935),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},84835:(t,e,a)=>{"use strict";a.r(e);var s=a(59542),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)}},t=>{t.O(0,[3660],(()=>{return e=36671,t(t.s=e);var e}));t.O()}]); \ No newline at end of file diff --git a/public/mix-manifest.json b/public/mix-manifest.json index f9484fb5..7fa5e6ca 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -16,7 +16,7 @@ "/js/profile-directory.js": "/js/profile-directory.js?id=1615064235d2acf08d84c3e3d1232d7e", "/js/story-compose.js": "/js/story-compose.js?id=50d723634d8d22db14d630a02774e5b7", "/js/direct.js": "/js/direct.js?id=2f7df211df1b62a0637ed87f2457e918", - "/js/admin.js": "/js/admin.js?id=0c438fd27a3e0ee99d0f2153295bcbfb", + "/js/admin.js": "/js/admin.js?id=fa159e0d221307ffbe6b41e02b8ae662", "/js/spa.js": "/js/spa.js?id=6419704bb22cea66399e3f85a8a8045e", "/js/stories.js": "/js/stories.js?id=f3d502fa937e5fa90d173d5d7aa64e2c", "/js/portfolio.js": "/js/portfolio.js?id=d53caf31d3ef87b47fbc51a31ff943f8", @@ -60,7 +60,7 @@ "/css/app.css": "/css/app.css?id=838b7d90a81e16b8a9adc8644237606a", "/css/portfolio.css": "/css/portfolio.css?id=d98e354f173c6a8b729626384dceaa90", "/css/admin.css": "/css/admin.css?id=20cdb9cce61b0e1bd9fb1aad30efcd2f", - "/css/landing.css": "/css/landing.css?id=ed64a3d176c47703b3c550a03c12f3a8", + "/css/landing.css": "/css/landing.css?id=589f3fa192867727925921b0f68ce022", "/css/spa.css": "/css/spa.css?id=041aed9a146db0e74b2cfe3ad8eaf96c", "/js/vendor.js": "/js/vendor.js?id=708e88525059af7dd812b5266775818b" }