pixelfed/public/js/admin.js
2022-11-13 20:11:07 -07:00

2 lines
75 KiB
JavaScript
Vendored
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see admin.js.LICENSE.txt */
(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[467],{88852:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var s=a(19755);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},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.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)}))}}}},19675:(t,e,a)=>{a(19755);a(86807),window._=a(96486),window.Popper=a(28981).default,window.pixelfed=window.pixelfed||{},window.$=a(19755),a(43734),window.axios=a(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",a(90717),window.filesize=a(42317),window.Cookies=a(36808),a(20154),a(80981),window.Chart=a(17757),a(1922),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-directory",a(78877).default)},1922:(t,e,a)=>{"use strict";var s=a(19755);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('<div class="backdrop d-xl-none" data-action="sidenav-unpin" data-target='+s("#sidenav-main").data("target")+" />"),Cookies.set("sidenav-state","pinned")}function e(){s(".sidenav-toggler").removeClass("active"),s(".sidenav-toggler").data("action","sidenav-pin"),s("body").removeClass("g-sidenav-pinned").addClass("g-sidenav-hidden"),s("body").find(".backdrop").remove(),Cookies.set("sidenav-state","unpinned")}var a=Cookies.get("sidenav-state")?Cookies.get("sidenav-state"):"pinned";s(window).width()>1200&&("pinned"==a&&t(),"unpinned"==Cookies.get("sidenav-state")&&e(),s(window).resize((function(){s("body").hasClass("g-sidenav-show")&&!s("body").hasClass("g-sidenav-pinned")&&s("body").removeClass("g-sidenav-show").addClass("g-sidenav-hidden")}))),s(window).width()<1200&&(s("body").removeClass("g-sidenav-hide").addClass("g-sidenav-hidden"),s("body").removeClass("g-sidenav-show"),s(window).resize((function(){s("body").hasClass("g-sidenav-show")&&!s("body").hasClass("g-sidenav-pinned")&&s("body").removeClass("g-sidenav-show").addClass("g-sidenav-hidden")}))),s("body").on("click","[data-action]",(function(a){a.preventDefault();var i=s(this),n=i.data("action");i.data("target");switch(n){case"sidenav-pin":t();break;case"sidenav-unpin":e();break;case"search-show":i.data("target"),s("body").removeClass("g-navbar-search-show").addClass("g-navbar-search-showing"),setTimeout((function(){s("body").removeClass("g-navbar-search-showing").addClass("g-navbar-search-show")}),150),setTimeout((function(){s("body").addClass("g-navbar-search-shown")}),300);break;case"search-close":i.data("target"),s("body").removeClass("g-navbar-search-shown"),setTimeout((function(){s("body").removeClass("g-navbar-search-show").addClass("g-navbar-search-hiding")}),150),setTimeout((function(){s("body").removeClass("g-navbar-search-hiding").addClass("g-navbar-search-hidden")}),300),setTimeout((function(){s("body").removeClass("g-navbar-search-hidden")}),500)}})),s(".sidenav").on("mouseenter",(function(){s("body").hasClass("g-sidenav-pinned")||s("body").removeClass("g-sidenav-hide").removeClass("g-sidenav-hidden").addClass("g-sidenav-show")})),s(".sidenav").on("mouseleave",(function(){s("body").hasClass("g-sidenav-pinned")||(s("body").removeClass("g-sidenav-show").addClass("g-sidenav-hide"),setTimeout((function(){s("body").removeClass("g-sidenav-hide").addClass("g-sidenav-hidden")}),300))})),s(window).on("load resize",(function(){s("body").height()<800&&(s("body").css("min-height","100vh"),s("#footer-main").addClass("footer-auto-bottom"))}))}();var n,o,r,l,c,d,u,m,v,p,f,b,h,g=function(){var t,e=s('[data-toggle="chart"]'),a="light",n={base:"Open Sans"},o={gray:{100:"#f6f9fc",200:"#e9ecef",300:"#dee2e6",400:"#ced4da",500:"#adb5bd",600:"#8898aa",700:"#525f7f",800:"#32325d",900:"#212529"},theme:{default:"#172b4d",primary:"#5e72e4",secondary:"#f4f5f7",info:"#11cdef",success:"#2dce89",danger:"#f5365c",warning:"#fb6340"},black:"#12263F",white:"#FFFFFF",transparent:"transparent"};function r(t,e){for(var a in e)"object"!==i(e[a])?t[a]=e[a]:r(t[a],e[a])}function l(t,e){for(var a in e)Array.isArray(e[a])?e[a].forEach((function(e){t[a].push(e)})):l(t[a],e[a])}function c(t,e){for(var a in e)Array.isArray(e[a])?e[a].forEach((function(e){t[a].pop()})):c(t[a],e[a])}function d(t){var e=t.data("add"),a=s(t.data("target")).data("chart");t.is(":checked")?(l(a,e),a.update()):(c(a,e),a.update())}function u(t){var e=t.data("update"),a=s(t.data("target")).data("chart");r(a,e),function(t,e){if(void 0!==t.data("prefix")||void 0!==t.data("prefix")){var a=t.data("prefix")?t.data("prefix"):"",s=t.data("suffix")?t.data("suffix"):"";e.options.scales.yAxes[0].ticks.callback=function(t){if(!(t%10))return a+t+s},e.options.tooltips.callbacks.label=function(t,e){var i=e.datasets[t.datasetIndex].label||"",n=t.yLabel,o="";return e.datasets.length>1&&(o+='<span class="popover-body-label mr-auto">'+i+"</span>"),o+='<span class="popover-body-value">'+a+n+s+"</span>"}}}(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+='<span class="chart-legend-item">',a+='<i class="chart-legend-indicator" style="background-color: '+i+'"></i>',a+=t,a+="</span>"})),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}}(),_=((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('<div class="bodyClick"></div>').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:'<div class="popover '+m+'" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'};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))}))}(),(v=s('[data-toggle="tooltip"]')).length&&v.tooltip(),(p=s(".form-control")).length&&function(t){t.on("focus blur",(function(t){s(this).parents(".form-group").toggleClass("focused","focus"===t.type)})).trigger("blur")}(p),(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:g.colors.gray[900],zeroLineColor:g.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)}(),(b=s(".datepicker")).length&&b.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);_.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];_.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]}))}}());(h=s(".scrollbar-inner")).length&&h.scrollbar().scrollLock()},86807: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 v(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 p(t,e){return new s(m(t),e||{})}e.Blob&&(v.prototype=Blob.prototype,p.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<s;){var l=t.charCodeAt(a++);if(l>=55296&&l<=56319){if(a<s){var c=t.charCodeAt(a);56320==(64512&c)&&(++a,l=((1023&l)<<10)+(1023&c)+65536)}if(l>=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(0!=(4294967168&l)){if(0==(4294965248&l))r[n++]=l>>6&31|192;else if(0==(4294901760&l))r[n++]=l>>12&15|224,r[n++]=l>>6&63|128;else{if(0!=(4292870144&l))continue;r[n++]=l>>18&7|240,r[n++]=l>>12&63|128,r[n++]=l>>6&63|128}r[n++]=63&l|128}else r[n++]=l}return r.slice(0,n)},b="function"==typeof TextDecoder?TextDecoder.prototype.decode.bind(new TextDecoder):function(t){for(var e=t.length,a=[],s=0;s<e;){var i,n,o,r,l=t[s],c=null,d=l>239?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<u;)m+=String.fromCharCode.apply(String,a.slice(s,s+=4096));return m};function h(){var t=!!e.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,a=e.XMLHttpRequest&&e.XMLHttpRequest.prototype.send;t&&a&&(XMLHttpRequest.prototype.send=function(t){t instanceof Blob?(this.setRequestHeader("Content-Type",t.type),a.call(this,t)):a.call(this,t)});try{new File([],"")}catch(t){try{var s=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name.replace(///g, ":");this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date();this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();e.File=s}catch(t){s=function(t,e,a){var s=new Blob(t,a),i=a&&void 0!==a.lastModified?new Date(a.lastModified):new Date;return s.name=e.replace(/\//g,":"),s.lastModifiedDate=i,s.lastModified=+i,s.toString=function(){return"[object File]"},o&&(s[o]="File"),s};e.File=s}}}r?(h(),e.Blob=c?e.Blob:p):u?(h(),e.Blob=v):function(){function t(t){for(var e=new Array(t.byteLength),a=new Uint8Array(t),s=e.length;s--;)e[s]=a[s];return e}function a(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=[],s=0;s<t.length;s+=3){var i=t[s],n=s+1<t.length,o=n?t[s+1]:0,r=s+2<t.length,l=r?t[s+2]:0,c=i>>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<n;i++){var o=a[i];o instanceof c?a[i]=o._buffer:"string"==typeof o?a[i]=f(o):d&&(ArrayBuffer.prototype.isPrototypeOf(o)||r(o))?a[i]=t(o):d&&(u=o)&&DataView.prototype.isPrototypeOf(u)?a[i]=t(o.buffer):a[i]=f(String(o))}var u;this._buffer=e.Uint8Array?function(t){for(var e=0,a=t.length;a--;)e+=t[a].length;var s=new Uint8Array(e),i=0;for(a=0,l=t.length;a<l;a++){var n=t[a];s.set(n,i),i+=n.byteLength||n.length}return s}(a):[].concat.apply([],a),this.size=this._buffer.length,this.type=s.type||"",/[^\u0020-\u007E]/.test(this.type)?this.type="":this.type=this.type.toLowerCase()}function u(t,e,a){a=a||{};var s=c.call(this,t,a)||this;return s.name=e.replace(/\//g,":"),s.lastModifiedDate=a.lastModified?new Date(a.lastModified):new Date,s.lastModified=+s.lastModifiedDate,s}if(c.prototype.arrayBuffer=function(){return Promise.resolve(this._buffer)},c.prototype.text=function(){return Promise.resolve(b(this._buffer))},c.prototype.slice=function(t,e,a){return new c([this._buffer.slice(t||0,e||this._buffer.length)],{type:a})},c.prototype.toString=function(){return"[object Blob]"},u.prototype=s(c.prototype),u.prototype.constructor=u,Object.setPrototypeOf)Object.setPrototypeOf(u,c);else try{u.__proto__=c}catch(t){}function m(){if(!(this instanceof m))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var t=document.createDocumentFragment();this.addEventListener=t.addEventListener,this.dispatchEvent=function(e){var a=this["on"+e.type];"function"==typeof a&&a(e),t.dispatchEvent(e)},this.removeEventListener=t.removeEventListener}function v(t,e,a){if(!(e instanceof c))throw new TypeError("Failed to execute '"+a+"' on 'FileReader': parameter 1 is not of type 'Blob'.");t.result="",setTimeout((function(){this.readyState=m.LOADING,t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend"))}))}u.prototype.toString=function(){return"[object File]"},m.EMPTY=0,m.LOADING=1,m.DONE=2,m.prototype.error=null,m.prototype.onabort=null,m.prototype.onerror=null,m.prototype.onload=null,m.prototype.onloadend=null,m.prototype.onloadstart=null,m.prototype.onprogress=null,m.prototype.readAsDataURL=function(t){v(this,t,"readAsDataURL"),this.result="data:"+t.type+";base64,"+a(t._buffer)},m.prototype.readAsText=function(t){v(this,t,"readAsText"),this.result=b(t._buffer)},m.prototype.readAsArrayBuffer=function(t){v(this,t,"readAsText"),this.result=(t._buffer.buffer||t._buffer).slice()},m.prototype.abort=function(){},URL.createObjectURL=function(t){return t instanceof c?"data:"+t.type+";base64,"+a(t._buffer):i.call(URL,t)},URL.revokeObjectURL=function(t){n&&n.call(URL,t)};var p=e.XMLHttpRequest&&e.XMLHttpRequest.prototype.send;p&&(XMLHttpRequest.prototype.send=function(t){t instanceof c?(this.setRequestHeader("Content-Type",t.type),p.call(this,b(t._buffer))):p.call(this,t)}),e.FileReader=m,e.File=u,e.Blob=c}(),o&&(File.prototype[o]="File",Blob.prototype[o]="Blob",FileReader.prototype[o]="FileReader");var g,_=e.Blob.prototype;function y(t){return new Promise((function(e,a){t.onload=t.onerror=function(s){t.onload=t.onerror=null,"load"===s.type?e(t.result||t):a(new Error("Failed to read the blob/file"))}}))}try{new ReadableStream({type:"bytes"}),g=function(){var t=0,e=this;return new ReadableStream({type:"bytes",autoAllocateChunkSize:524288,pull:function(a){var s=a.byobRequest.view;return e.slice(t,t+s.byteLength).arrayBuffer().then((function(i){var n=new Uint8Array(i),o=n.byteLength;t+=o,s.set(n),a.byobRequest.respond(o),t>=e.size&&a.close()}))}})}}catch(t){try{new ReadableStream({}),g=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(),g=function(){return new Response(this).body}}catch(t){g=function(){throw new Error("Include https://github.com/MattiasBuelens/web-streams-polyfill")}}}}_.arrayBuffer||(_.arrayBuffer=function(){var t=new FileReader;return t.readAsArrayBuffer(this),y(t)}),_.text||(_.text=function(){var t=new FileReader;return t.readAsText(this),y(t)}),_.stream||(_.stream=g)}(),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)},46700:(t,e,a)=>{var s={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":37524,"./fr-ca.js":37524,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":27884,"./gom-deva.js":27884,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":10490,"./se.js":10490,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":85893,"./ss.js":85893,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};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=46700},78877:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(10185),i=a(66992),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(51900).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},66992:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(88852),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},10185:(t,e,a)=>{"use strict";a.r(e);var s=a(44857),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},44857:(t,e,a)=>{"use strict";a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.loaded?a("div",[a("div",{staticClass:"header bg-primary pb-2 mt-n4"},[a("div",{staticClass:"container-fluid"},[a("div",{staticClass:"header-body"},[a("div",{staticClass:"row align-items-center py-4"},[t._m(0),t._v(" "),a("div",{staticClass:"col-lg-6 col-5"},[a("p",{staticClass:"text-right"},[a("button",{staticClass:"btn btn-outline-white btn-lg px-5 py-2",on:{click:t.save}},[t._v("Save changes")])])])])])])]),t._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"}},t._l(t.tabs,(function(e){return a("div",{staticClass:"nav-item"},[a("a",{staticClass:"nav-link mb-sm-3",class:{active:t.tabIndex===e.id},attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),t.toggleTab(e.id)}}},[a("i",{class:e.icon}),t._v(" "),a("span",{staticClass:"ml-2"},[t._v(t._s(e.title))])])])})),0)])]),t._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===t.tabIndex?a("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?a("div",[t._m(3)]):t.isSubmitting||t.state.awaiting_approval||!t.state.is_active?t.isSubmitting?a("div",[a("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[a("b-spinner",{attrs:{variant:"primary"}}),t._v(" "),a("p",{staticClass:"lead my-0 text-primary"},[t._v("Sending submission...")])],1)]):a("div",[t._m(6)]):a("div",[a("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[a("h2",{staticClass:"font-weight-bold"},[t._v("Active Listing")]),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),a("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 ")])])]):a("div",[t._m(2)]):a("div",{staticClass:"d-flex align-items-center justify-content-center"},[a("div",{staticClass:"text-center mb-4"},[t._m(1),t._v(" "),a("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?a("div",{staticClass:"mb-4"},[a("p",{staticClass:"lead mt-0 text-muted"},[t._v("Your directory listing is ready for submission!")]),t._v(" "),a("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():a("p",{staticClass:"lead mt-0 text-muted"},[t._v("Your directory listing isn't completed yet")])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card text-left"},[a("div",{staticClass:"list-group list-group-flush"},[a("div",{staticClass:"list-group-item"},[a("i",{staticClass:"far",class:[t.requirements.open_registration?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),a("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.requirements.open_registration?"Open":"Closed")+" account registration\n ")])]),t._v(" "),a("div",{staticClass:"list-group-item"},[a("i",{staticClass:"far",class:[t.requirements.oauth_enabled?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),a("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.requirements.oauth_enabled?"Enabled":"Disabled")+" mobile apis/oauth\n ")])]),t._v(" "),a("div",{staticClass:"list-group-item"},[a("i",{staticClass:"far",class:[t.requirements.activitypub_enabled?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),a("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.requirements.activitypub_enabled?"Enabled":"Disabled")+" activitypub federation\n ")])]),t._v(" "),a("div",{staticClass:"list-group-item"},[a("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(" "),a("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(" "),a("div",{staticClass:"list-group-item"},[a("i",{staticClass:"far",class:[t.requirements_validator&&0==t.requirements_validator.length?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),a("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(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card text-left"},[a("div",{staticClass:"list-group list-group-flush"},[a("div",{staticClass:"list-group-item"},[a("i",{staticClass:"far",class:[t.form.contact_account?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),a("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.form.contact_account?"Configured":"Missing")+" admin account\n ")])]),t._v(" "),a("div",{staticClass:"list-group-item"},[a("i",{staticClass:"far",class:[t.form.contact_email?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),a("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.form.contact_email?"Configured":"Missing")+" contact email\n ")])]),t._v(" "),a("div",{staticClass:"list-group-item"},[a("i",{staticClass:"far",class:[t.selectedPosts&&t.selectedPosts.length?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),a("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.selectedPosts&&t.selectedPosts.length?"Configured":"Missing")+" favourite posts\n ")])]),t._v(" "),a("div",{staticClass:"list-group-item"},[a("i",{staticClass:"far",class:[t.form.privacy_pledge?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),a("span",{staticClass:"ml-2 font-weight-bold"},[t._v("\n "+t._s(t.form.privacy_pledge?"Configured":"Missing")+" privacy pledge\n ")])]),t._v(" "),a("div",{staticClass:"list-group-item"},[a("i",{staticClass:"far",class:[t.communityGuidelines&&t.communityGuidelines.length?"fa-check-circle text-success":"fa-exclamation-circle text-danger"]}),t._v(" "),a("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?a("div",{staticClass:"tab-pane fade show active"},[a("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?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("h2",{staticClass:"display-4 mb-0"},[t._v("Server Details")]),t._v(" "),a("p",{staticClass:"small text-muted"},[t._v("Edit your server details to better describe it")]),t._v(" "),a("hr",{staticClass:"mt-0"}),t._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-0"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Summary")]),t._v(" "),a("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(" "),a("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(" "),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("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Location")]),t._v(" "),a("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])}}},[a("option",{attrs:{selected:"",disabled:"",value:"0"}},[t._v("Select the country your server is in")]),t._v(" "),t._l(t.initialData.countries,(function(e){return a("option",{domProps:{value:e}},[t._v(t._s(e))])}))],2),t._v(" "),a("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(" "),a("div",{staticClass:"list-group mb-4"},[a("div",{staticClass:"list-group-item"},[a("label",{staticClass:"font-weight-bold mb-0"},[t._v("Server Banner")]),t._v(" "),a("p",{staticClass:"small"},[t._v("Add an optional banner image to your directory listing")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card mb-0 shadow-none border"},[t.form.banner_image?a("div",[a("a",{attrs:{href:t.form.banner_image,target:"_blank"}},[a("img",{staticClass:"card-img-top",attrs:{src:t.form.banner_image}})])]):a("div",{staticClass:"card-body bg-primary text-white"},[t._m(7),t._v(" "),a("p",{staticClass:"text-center mb-0"},[t._v("No banner image")])])])]),t._v(" "),a("div",{staticClass:"col-12 col-md-6"},[t.isUploadingBanner?a("div",{staticClass:"text-center"},[a("b-spinner",{attrs:{variant:"primary"}})],1):a("div",{staticClass:"custom-file"},[a("input",{ref:"bannerImageRef",staticClass:"custom-file-input",attrs:{type:"file",id:"banner_image"},on:{change:t.uploadBannerImage}}),t._v(" "),a("label",{staticClass:"custom-file-label",attrs:{for:"banner_image"}},[t._v("Choose file")]),t._v(" "),a("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")?a("div",[a("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(" "),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-0"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Primary Language")]),t._v(" "),a("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(e){return a("option",{domProps:{value:e.code}},[t._v(t._s(e.name))])})),0),t._v(" "),t._m(9)])])])])]):4===t.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("h2",{staticClass:"display-4 mb-0"},[t._v("Admin Contact")]),t._v(" "),a("p",{staticClass:"small text-muted"},[t._v("Set a designated admin account and public email address")]),t._v(" "),a("hr",{staticClass:"mt-0"}),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[t.initialData.admins.length?a("div",{staticClass:"form-group"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Designated Admin")]),t._v(" "),a("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])}}},[a("option",{attrs:{disabled:"",value:"0"}},[t._v("Select a designated admin")]),t._v(" "),t._l(t.initialData.admins,(function(e,s){return a("option",{key:"pfc-"+e+s,domProps:{value:e.pid}},[t._v(t._s(e.username))])}))],2)]):a("div",{staticClass:"px-3 pb-2 pt-0 border border-danger rounded"},[a("p",{staticClass:"lead font-weight-bold text-danger"},[t._v("No admin(s) found")]),t._v(" "),t._m(10)])]),t._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Public Email")]),t._v(" "),a("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(" "),a("p",{staticClass:"help-text small text-muted"},[t._v("\n Must be a valid email address\n ")])])])])]):5===t.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("h2",{staticClass:"display-4 mb-0"},[t._v("Favourite Posts")]),t._v(" "),a("p",{staticClass:"small text-muted"},[t._v("Show off a few favourite posts from your server")]),t._v(" "),a("hr",{staticClass:"mt-0 mb-1"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.selectedPosts&&12!==t.selectedPosts.length,expression:"selectedPosts && selectedPosts.length !== 12"}],staticClass:"nav-wrapper"},[a("ul",{staticClass:"nav nav-pills nav-fill flex-column flex-md-row",attrs:{role:"tablist"}},[a("li",{staticClass:"nav-item"},[a("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?a("li",{staticClass:"nav-item"},[a("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?a("li",{staticClass:"nav-item"},[a("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(" "),a("div",{staticClass:"tab-content mt-3"},[a("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?a("div",{staticStyle:{"max-height":"520px","overflow-y":"auto"}},[t._l(t.selectedPosts,(function(e){return a("div",{key:"sp-"+e.id,staticClass:"list-group-item border-primary form-control-muted"},[a("div",{staticClass:"media align-items-center"},[a("div",{staticClass:"custom-control custom-checkbox mr-2"},[a("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",checked:"",id:"checkbox-sp-"+e.id},on:{change:function(a){return t.toggleSelectedPost(e)}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"checkbox-sp-"+e.id}})]),t._v(" "),a("img",{staticClass:"border rounded-sm mr-3",staticStyle:{"object-fit":"cover"},attrs:{src:e.media_attachments[0].url,width:"100",height:"100",loading:"lazy"}}),t._v(" "),a("div",{staticClass:"media-body"},[a("p",{staticClass:"lead mt-0 mb-0 font-weight-bold"},[t._v("@"+t._s(e.account.username))]),t._v(" "),a("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[a("span",[a("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(e.favourites_count)))]),t._v(" Likes")]),t._v(" "),a("span",{staticClass:"mx-2"},[t._v("·")]),t._v(" "),a("span",[a("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(e.account.followers_count)))]),t._v(" Followers")]),t._v(" "),a("span",{staticClass:"mx-2"},[t._v("·")]),t._v(" "),a("span",[t._v("Created "),a("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatDateTime(e.created_at)))])])])]),t._v(" "),a("a",{staticClass:"btn btn-outline-primary btn-sm rounded-pill",attrs:{href:e.url,target:"_blank"}},[t._v("View")])])])})),t._v(" "),a("div",{staticClass:"mt-5 mb-5 pt-3"})],2):a("div",[t._m(11)])]),t._v(" "),a("div",{staticClass:"tab-pane fade",attrs:{id:"favposts-2",role:"tabpanel","aria-labelledby":"favposts-2-tab"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"font-weight-bold"},[t._v("Find and add by post id")]),t._v(" "),a("div",{staticClass:"input-group mb-3"},[a("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(" "),a("div",{staticClass:"input-group-append"},[t.favouritePostByIdFetching?a("button",{staticClass:"btn btn-outline-primary",attrs:{disabled:""}},[t._m(12)]):a("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(" "),a("div",{staticClass:"tab-pane fade list-fade-bottom mb-0",attrs:{id:"favposts-3",role:"tabpanel","aria-labelledby":"favposts-3-tab"}},[t.popularPostsLoaded?a("div",{staticClass:"list-group",staticStyle:{"max-height":"520px","overflow-y":"auto"}},[t._l(t.popularPosts,(function(e){return a("div",{key:"pp-"+e.id,staticClass:"list-group-item",class:[t.selectedPosts.includes(e)?"border-primary form-control-muted":""]},[a("div",{staticClass:"media align-items-center"},[a("div",{staticClass:"custom-control custom-checkbox mr-2"},[a("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",id:"checkbox-pp-"+e.id},domProps:{checked:t.selectedPosts.includes(e)},on:{change:function(a){return t.togglePopularPost(e.id,e)}}}),t._v(" "),a("label",{staticClass:"custom-control-label",attrs:{for:"checkbox-pp-"+e.id}})]),t._v(" "),a("img",{staticClass:"border rounded-sm mr-3",staticStyle:{"object-fit":"cover"},attrs:{src:e.media_attachments[0].url,width:"100",height:"100",loading:"lazy"}}),t._v(" "),a("div",{staticClass:"media-body"},[a("p",{staticClass:"lead mt-0 mb-0 font-weight-bold"},[t._v("@"+t._s(e.account.username))]),t._v(" "),a("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[a("span",[a("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(e.favourites_count)))]),t._v(" Likes")]),t._v(" "),a("span",{staticClass:"mx-2"},[t._v("·")]),t._v(" "),a("span",[a("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(e.account.followers_count)))]),t._v(" Followers")]),t._v(" "),a("span",{staticClass:"mx-2"},[t._v("·")]),t._v(" "),a("span",[t._v("Created "),a("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatDateTime(e.created_at)))])])])]),t._v(" "),a("a",{staticClass:"btn btn-outline-primary btn-sm rounded-pill",attrs:{href:e.url,target:"_blank"}},[t._v("View")])])])})),t._v(" "),a("div",{staticClass:"mt-5 mb-3"})],2):a("div",{staticClass:"text-center py-5"},[t._m(14)])])])]):6===t.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("h2",{staticClass:"display-4 mb-0"},[t._v("Privacy Pledge")]),t._v(" "),a("p",{staticClass:"small text-muted"},[t._v("Pledge to keep you and your data private and securely stored")]),t._v(" "),a("hr",{staticClass:"mt-0"}),t._v(" "),a("p",[t._v("To qualify for the Privacy Pledge, you must abide by the following rules:")]),t._v(" "),t._m(15),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("p"),a("div",{staticClass:"custom-control custom-checkbox mr-2"},[a("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(" "),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"privacy-pledge"}},[t._v("I agree to the uphold the Privacy Pledge")])]),t._v(" "),a("p")]):7===t.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("h2",{staticClass:"display-4 mb-0"},[t._v("Community Guidelines")]),t._v(" "),a("p",{staticClass:"small text-muted"},[t._v("A few ground rules to keep your community healthy and safe.")]),t._v(" "),a("hr",{staticClass:"mt-0"}),t._v(" "),t.communityGuidelines&&t.communityGuidelines.length?a("ol",{staticClass:"font-weight-bold"},t._l(t.communityGuidelines,(function(e){return a("li",{staticClass:"text-primary"},[a("span",{staticClass:"lead ml-1 text-dark"},[t._v(t._s(e))])])})),0):a("div",{staticClass:"card bg-primary text-white"},[t._m(16)]),t._v(" "),a("hr"),t._v(" "),t._m(17)]):8===t.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("h2",{staticClass:"display-4 mb-0"},[t._v("Feature Requirements")]),t._v(" "),a("p",{staticClass:"small text-muted"},[t._v("The minimum requirements for Directory inclusion.")]),t._v(" "),a("hr",{staticClass:"mt-0"}),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"list-group"},[a("div",{staticClass:"list-group-item d-flex align-items-center"},[a("div",[a("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(" "),a("div",[a("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Media Types")]),t._v(" "),a("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")?a("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?a("div",{staticClass:"list-group-item d-flex align-items-center"},[a("div",[a("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(" "),a("div",[a("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Image Quality")]),t._v(" "),a("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")?a("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(" "),a("div",{staticClass:"list-group-item d-flex align-items-center"},[a("div",[a("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(" "),a("div",[a("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Photo Size")]),t._v(" "),a("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")?a("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_photo_size[0]))]):t._e()])]),t._v(" "),a("div",{staticClass:"list-group-item d-flex align-items-center"},[a("div",[a("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(" "),a("div",[a("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Caption Length")]),t._v(" "),a("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")?a("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_caption_length[0]))]):t._e()])])])]),t._v(" "),a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"list-group"},[a("div",{staticClass:"list-group-item d-flex align-items-center"},[a("div",[a("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(" "),a("div",[a("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Alt-text length")]),t._v(" "),a("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")?a("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?a("div",{staticClass:"list-group-item d-flex align-items-center"},[a("div",[a("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(" "),a("div",[a("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Account Size")]),t._v(" "),a("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")?a("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(" "),a("div",{staticClass:"list-group-item d-flex align-items-center"},[a("div",[a("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(" "),a("div",[a("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Max Album Length")]),t._v(" "),a("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")?a("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.max_album_length[0]))]):t._e()])]),t._v(" "),a("div",{staticClass:"list-group-item d-flex align-items-center"},[a("div",[a("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(" "),a("div",[a("p",{staticClass:"font-weight-bold text-dark my-0"},[t._v("Account Deletion")]),t._v(" "),a("p",{staticClass:"mb-0 small text-muted"},[t._v("Allow users to delete their own account.")]),t._v(" "),t.requirements_validator.hasOwnProperty("account_deletion")?a("p",{staticClass:"mb-0 text-danger font-weight-bold"},[t._v(t._s(t.requirements_validator.account_deletion[0]))]):t._e()])])])])])]):9===t.tabIndex?a("div",{staticClass:"tab-pane fade show active",attrs:{role:"tabpanel"}},[a("h2",{staticClass:"display-4 mb-0"},[t._v("User Testimonials")]),t._v(" "),a("p",{staticClass:"small text-muted"},[t._v("Add testimonials from your users.")]),t._v(" "),a("hr",{staticClass:"mt-0"}),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-md-6 list-fade-bottom"},[a("div",{staticClass:"list-group pb-5",staticStyle:{"max-height":"520px","overflow-y":"auto"}},t._l(t.testimonials,(function(e,s){return a("div",{staticClass:"list-group-item",class:[s==t.testimonials.length-1?"mb-5":""]},[a("div",{staticClass:"d-flex justify-content-between align-items-center"},[a("div",{staticClass:"media"},[a("img",{staticClass:"mr-3 rounded-circle",attrs:{src:e.profile.avatar,width:"40",h:"40"}}),t._v(" "),a("div",{staticClass:"media-body"},[a("p",{staticClass:"font-weight-bold mb-0"},[t._v("\n "+t._s(e.profile.username)+"\n ")]),t._v(" "),a("p",{staticClass:"small text-muted mt-n1 mb-0"},[t._v("\n Member Since "+t._s(t.formatDate(e.profile.created_at))+"\n ")])])]),t._v(" "),a("div",[a("p",{staticClass:"mb-0 small"},[a("a",{attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),t.editTestimonial(e)}}},[t._v("\n Edit\n ")])]),t._v(" "),a("p",{staticClass:"mb-0 small"},[a("a",{staticClass:"text-danger",attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),t.deleteTestimonial(e)}}},[t._v("\n Delete\n ")])])])]),t._v(" "),a("hr",{staticClass:"my-1"}),t._v(" "),a("p",{staticClass:"small font-weight-bold text-muted mb-0 text-center"},[t._v("Testimonial")]),t._v(" "),a("div",{staticClass:"border rounded px-3"},[a("p",{staticClass:"my-2 small",staticStyle:{"white-space":"pre-wrap"},domProps:{innerHTML:t._s(e.body)}})])])})),0)]),t._v(" "),a("div",{staticClass:"col-12 col-md-6"},[t.isEditingTestimonial?a("div",{staticClass:"card"},[a("div",{staticClass:"card-header font-weight-bold"},[t._v("\n Edit Testimonial\n ")]),t._v(" "),a("div",{staticClass:"card-body"},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Username")]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Testimonial")]),t._v(" "),a("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(" "),a("div",{staticClass:"d-flex justify-content-between"},[a("p",{staticClass:"help-text small text-muted mb-0"},[t._v("\n Text only, up to 500 characters\n ")]),t._v(" "),a("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(" "),a("div",{staticClass:"card-footer"},[a("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"button"},on:{click:t.saveEditTestimonial}},[t._v("\n Save\n ")]),t._v(" "),a("button",{staticClass:"btn btn-secondary btn-block",attrs:{type:"button"},on:{click:t.cancelEditTestimonial}},[t._v("\n Cancel\n ")])])]):a("div",{staticClass:"card"},[t.testimonials.length<10?[a("div",{staticClass:"card-header font-weight-bold"},[t._v("\n Add New Testimonial\n ")]),t._v(" "),a("div",{staticClass:"card-body"},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Username")]),t._v(" "),a("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(" "),a("p",{staticClass:"help-text small text-muted"},[t._v("\n Must be a valid user account\n ")])]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"font-weight-bold",attrs:{for:"form-summary"}},[t._v("Testimonial")]),t._v(" "),a("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(" "),a("div",{staticClass:"d-flex justify-content-between"},[a("p",{staticClass:"help-text small text-muted mb-0"},[t._v("\n Text only, up to 500 characters\n ")]),t._v(" "),a("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(" "),a("div",{staticClass:"card-footer"},[a("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"button"},on:{click:t.saveTestimonial}},[t._v("Save Testimonial")])])]:[t._m(18)]],2)])])]):t._e()])])])])])])]):a("div",[t._m(19)])},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-lg-6 col-7"},[a("p",{staticClass:"display-1 text-white d-inline-block mb-0"},[t._v("Directory")]),t._v(" "),a("p",{staticClass:"h3 text-white font-weight-light"},[t._v("Manage your server listing on pixelfed.org")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("i",{staticClass:"far fa-exclamation-triangle fa-5x text-lighter"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[a("p",{staticClass:"display-3 mb-1"},[t._v("Awaiting Approval")]),t._v(" "),a("p",{staticClass:"text-primary mb-1"},[t._v("Awaiting submission approval from pixelfed.org, please check back later!")]),t._v(" "),a("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.$createElement,a=t._self._c||e;return a("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[a("p",{staticClass:"display-3 mb-1"},[t._v("Awaiting Update Approval")]),t._v(" "),a("p",{staticClass:"text-primary mb-1"},[t._v("Awaiting updated submission approval from pixelfed.org, please check back later!")]),t._v(" "),a("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.$createElement,e=this._self._c||t;return e("p",{staticClass:"my-3"},[e("i",{staticClass:"far fa-check-circle fa-4x text-success"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",{staticClass:"mt-2 mb-0"},[t._v("Your server directory listing on "),a("a",{staticClass:"font-weight-bold",attrs:{href:"#"}},[t._v("pixelfed.org")]),t._v(" is active")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center py-5"},[a("p",{staticClass:"display-3 mb-1"},[t._v("Oops! An unexpected error occured")]),t._v(" "),a("p",{staticClass:"text-primary mb-1"},[t._v("Ask the Pixelfed team for assistance.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center mb-2"},[e("i",{staticClass:"far fa-exclamation-circle fa-2x"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",{staticClass:"form-text text-muted small mb-0"},[t._v("Must be a "),a("kbd",[t._v("JPEG")]),t._v(" or "),a("kbd",[t._v("PNG")]),t._v(" image no larger than 5MB.")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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 "),a("kbd",[t._v("APP_LOCALE")]),t._v(" .env value")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"text-danger"},[a("li",[t._v("Admins must be active")]),t._v(" "),a("li",[t._v("Admins must have 2FA setup and enabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card card-body bg-lighter text-center py-5"},[a("p",{staticClass:"text-light mb-1"},[a("i",{staticClass:"far fa-info-circle fa-3x"})]),t._v(" "),a("p",{staticClass:"h2 mb-0"},[t._v("0 posts selected")]),t._v(" "),a("p",{staticClass:"small mb-0"},[t._v("You can select up to 12 favourite posts by id or popularity")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-12 col-md-6"},[a("div",{staticClass:"card card-body bg-primary"},[a("div",{staticClass:"d-flex align-items-center text-white"},[a("i",{staticClass:"far fa-info-circle mr-2"}),t._v(" "),a("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,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"font-weight-bold"},[a("li",[t._v("No analytics or 3rd party trackers*")]),t._v(" "),a("li",[t._v("User data is not sold to any 3rd parties")]),t._v(" "),a("li",[t._v("Data is stored securely in accordance with industry standards")]),t._v(" "),a("li",[t._v("Admin accounts are protected with 2FA")]),t._v(" "),a("li",[t._v("Follow strict support procedures to keep your accounts safe")]),t._v(" "),a("li",[t._v("Give at least 6 months warning in the event we shut down")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card-body text-center py-5"},[a("p",{staticClass:"mb-n3"},[a("i",{staticClass:"far fa-exclamation-circle fa-3x"})]),t._v(" "),a("p",{staticClass:"lead mb-0"},[t._v("No Community Guidelines have been set")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",{staticClass:"mb-0"},[t._v("You can manage Community Guidelines on the "),a("a",{attrs:{href:"/i/admin/settings"}},[t._v("Settings page")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card-body text-center"},[a("p",{staticClass:"lead"},[t._v("You can't add any more testimonials")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container my-5 py-5 text-center"},[a("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])])}]}},t=>{t.O(0,[898],(()=>{return e=19675,t(t.s=e);var e}));t.O()}]);