diff --git a/public/js/compose-classic.js b/public/js/compose-classic.js
index 32f2bd6b2..af8e912ef 100644
--- a/public/js/compose-classic.js
+++ b/public/js/compose-classic.js
@@ -1 +1 @@
-(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[9981],{57723(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>s});var a=i(74692);const s={data:function(){return{config:window.App.config,profile:{},composeText:"",composeTextLength:0,nsfw:!1,filters:[],ids:[],media:[],carouselCursor:0,visibility:"public",mediaDrawer:!1,composeState:"publish",uploading:!1,uploadProgress:0,composeType:!1}},beforeMount:function(){this.fetchProfile()},mounted:function(){this.mediaWatcher(),this.filters=[["1977","filter-1977"],["Aden","filter-aden"],["Amaro","filter-amaro"],["Ashby","filter-ashby"],["Brannan","filter-brannan"],["Brooklyn","filter-brooklyn"],["Charmes","filter-charmes"],["Clarendon","filter-clarendon"],["Crema","filter-crema"],["Dogpatch","filter-dogpatch"],["Earlybird","filter-earlybird"],["Gingham","filter-gingham"],["Ginza","filter-ginza"],["Hefe","filter-hefe"],["Helena","filter-helena"],["Hudson","filter-hudson"],["Inkwell","filter-inkwell"],["Kelvin","filter-kelvin"],["Kuno","filter-juno"],["Lark","filter-lark"],["Lo-Fi","filter-lofi"],["Ludwig","filter-ludwig"],["Maven","filter-maven"],["Mayfair","filter-mayfair"],["Moon","filter-moon"],["Nashville","filter-nashville"],["Perpetua","filter-perpetua"],["Poprocket","filter-poprocket"],["Reyes","filter-reyes"],["Rise","filter-rise"],["Sierra","filter-sierra"],["Skyline","filter-skyline"],["Slumber","filter-slumber"],["Stinson","filter-stinson"],["Sutro","filter-sutro"],["Toaster","filter-toaster"],["Valencia","filter-valencia"],["Vesper","filter-vesper"],["Walden","filter-walden"],["Willow","filter-willow"],["X-Pro II","filter-xpro-ii"]]},methods:{fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(e){t.profile=e.data,1==e.data.locked&&(t.visibility="private")}).catch(function(t){})},addMedia:function(t){var e=a(t.target);e.attr("disabled",""),a('.file-input[name="media"]').trigger("click"),e.blur(),e.removeAttr("disabled")},mediaWatcher:function(){var t=this;a(document).on("change",".file-input",function(e){var i=document.querySelector(".file-input");Array.prototype.forEach.call(i.files,function(e,i){if(t.uploading=!0,t.media&&t.media.length+i>=t.config.uploader.album_limit)swal("Error","You can only upload "+t.config.uploader.album_limit+" photos per album","error");else{var s=e.type,o=t.config.uploader.media_types.split(",");if(-1!=a.inArray(s,o)){var l=new FormData;l.append("file",e);var r={onUploadProgress:function(e){var i=Math.round(100*e.loaded/e.total);t.uploadProgress=i}};axios.post("/api/pixelfed/v1/media",l,r).then(function(e){t.uploadProgress=100,t.ids.push(e.data.id),t.media.push(e.data),setTimeout(function(){t.uploading=!1},1e3)}).catch(function(i){t.uploading=!1,e.value=null,swal("Oops, something went wrong!","An unexpected error occurred.","error")}),e.value=null,t.uploadProgress=0}else swal("Invalid File Type","The file you are trying to add is not a valid mime type. Please upload a "+t.config.uploader.media_types+" only.","error")}})})},toggleFilter:function(t,e){this.media[this.carouselCursor].filter_class=e},updateMedia:function(){this.mediaDrawer=!1},deleteMedia:function(){var t=this;if(0!=window.confirm("Are you sure you want to delete this media?")){var e=this.media[this.carouselCursor].id;axios.delete("/api/pixelfed/v1/media",{params:{id:e}}).then(function(e){1==t.media.length&&(t.mediaDrawer=!1,t.ids=[],t.media=[],t.carouselCursor=0),t.ids.splice(t.carouselCursor,1),t.media.splice(t.carouselCursor,1)}).catch(function(t){swal("Whoops!","An error occured when attempting to delete this, please try again","error")})}},mediaAltText:function(){},mediaLicense:function(){},compose:function(){var t=this.composeState;if(100==this.uploadProgress&&0!=this.ids.length)if(this.composeText.length>this.config.uploader.max_caption_length)swal("Error","Caption is too long","error");else switch(t){case"publish":if(0==this.media.length)return void swal("Whoops!","You need to add media before you can save this!","warning");"Add optional caption..."==this.composeText&&(this.composeText="");var e={media:this.media,caption:this.composeText,visibility:this.visibility,cw:this.nsfw};return void axios.post("/api/local/status/compose",e).then(function(t){var e=t.data;window.location.href=e}).catch(function(t){var e=t.response.data.message?t.response.data.message:"An unexpected error occured.";swal("Oops, something went wrong!",e,"error")});case"delete":return this.mediaDrawer=!1,this.ids=[],this.media=[],this.carouselCursor=0,this.composeText="",this.composeTextLength=0,void a("#composeModal").modal("hide")}},about:function(){var t=document.createElement("div");t.innerHTML='\n\t\t\t\t
Please visit the Sharing Media page for more info.
\n\t\t\t',swal({title:"Compose UI v3",content:t,icon:"info"})},closeModal:function(){this.composeType="",a("#composeModal").modal("hide")},composeMessage:function(){var t=this.config;this.composeType;return t.uploader.media_types.includes("video/mp4")?"Click here to add photos or videos":"Click here to add photos"},createCollection:function(){window.location.href="/i/collections/create"},maxSize:function(){return this.config.uploader.max_photo_size/1e3+" MB"},acceptedFormats:function(){return this.config.uploader.media_types.split(",").map(function(t){return" "+t.split("/")[1]}).toString()}}}},52835(t,e,i){"use strict";i.r(e),i.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",[e("input",{staticClass:"d-none file-input",attrs:{type:"file",name:"media",multiple:"",accept:t.config.uploader.media_types}}),t._v(" "),e("div",{staticClass:"timeline"},[e("div",{staticClass:"card status-card card-md-rounded-0"},[e("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[e("img",{staticClass:"box-shadow",staticStyle:{"border-radius":"32px"},attrs:{src:t.profile.avatar,width:"32px",height:"32px"}}),t._v(" "),e("a",{staticClass:"username font-weight-bold pl-2 text-dark",attrs:{href:t.profile.url}},[t._v("\n\t\t\t\t\t"+t._s(t.profile.username)+"\n\t\t\t\t")]),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("div",{staticClass:"dropdown"},[t._m(0),t._v(" "),e("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[e("div",{staticClass:"dropdown-item small font-weight-bold",on:{click:t.createCollection}},[t._v("Create Collection")]),t._v(" "),e("div",{staticClass:"dropdown-divider"}),t._v(" "),e("div",{staticClass:"dropdown-item small font-weight-bold",on:{click:t.about}},[t._v("About")]),t._v(" "),e("div",{staticClass:"dropdown-item small font-weight-bold",on:{click:t.closeModal}},[t._v("Close")])])])])]),t._v(" "),e("div",{staticClass:"postPresenterContainer"},[t.uploading?e("div",[e("div",{staticClass:"w-100 h-100 bg-light py-5",staticStyle:{"border-bottom":"1px solid #f1f1f1"}},[e("div",{staticClass:"p-5"},[e("b-progress",{attrs:{value:t.uploadProgress,max:100,striped:"",animated:!0}}),t._v(" "),e("p",{staticClass:"text-center mb-0 font-weight-bold"},[t._v("Uploading ... ("+t._s(t.uploadProgress)+"%)")])],1)])]):e("div",[t.ids.length>0&&t.ids.length!=t.config.uploader.album_limit?e("div",{staticClass:"card-header py-2 bg-primary m-2 rounded cursor-pointer",on:{click:function(e){return t.addMedia(e)}}},[t._m(1)]):t._e(),t._v(" "),0==t.ids.length?e("div",{staticClass:"w-100 h-100 bg-light py-5 cursor-pointer",staticStyle:{"border-bottom":"1px solid #f1f1f1"},on:{click:function(e){return t.addMedia(e)}}},[e("div",{staticClass:"p-5"},[e("p",{staticClass:"text-center font-weight-bold"},[t._v(t._s(t.composeMessage()))]),t._v(" "),e("p",{staticClass:"text-muted mb-0 small text-center"},[t._v("Accepted Formats: "),e("b",[t._v(t._s(t.acceptedFormats()))])]),t._v(" "),e("p",{staticClass:"text-muted mb-0 small text-center"},[t._v("Max File Size: "),e("b",[t._v(t._s(t.maxSize()))])]),t._v(" "),e("p",{staticClass:"text-muted mb-0 small text-center"},[t._v("Albums can contain up to "),e("b",[t._v(t._s(t.config.uploader.album_limit))]),t._v(" photos or videos")])])]):t._e(),t._v(" "),t.ids.length>0?e("div",[e("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333"},attrs:{id:"p-carousel",controls:"",indicators:"",background:"#ffffff",interval:0},model:{value:t.carouselCursor,callback:function(e){t.carouselCursor=e},expression:"carouselCursor"}},t._l(t.media,function(i,a){return t.ids.length>0?e("b-carousel-slide",{key:"preview_media_"+a},[e("div",{class:[t.media[a].filter_class?t.media[a].filter_class:""],staticStyle:{display:"flex","min-height":"320px","align-items":"center"},attrs:{slot:"img"},slot:"img"},[e("img",{staticClass:"d-block img-fluid w-100",attrs:{src:i.url,alt:i.description,title:i.description}})])]):t._e()}),1)],1):t._e(),t._v(" "),t.ids.length>0&&"image"==t.media[t.carouselCursor].type?e("div",{staticClass:"bg-dark align-items-center"},[e("ul",{staticClass:"nav media-drawer-filters text-center"},[e("li",{staticClass:"nav-item"},[e("div",{staticClass:"p-1 pt-3"},[e("img",{staticClass:"cursor-pointer",attrs:{src:t.media[t.carouselCursor].url,width:"100px",height:"60px"},on:{click:function(e){return e.preventDefault(),t.toggleFilter(e,null)}}})]),t._v(" "),e("a",{class:[null==t.media[t.carouselCursor].filter_class?"nav-link text-white active":"nav-link text-muted"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleFilter(e,null)}}},[t._v("No Filter")])]),t._v(" "),t._l(t.filters,function(i,a){return e("li",{staticClass:"nav-item"},[e("div",{staticClass:"p-1 pt-3"},[e("img",{class:i[1],attrs:{src:t.media[t.carouselCursor].url,width:"100px",height:"60px"},on:{click:function(e){return e.preventDefault(),t.toggleFilter(e,i[1])}}})]),t._v(" "),e("a",{class:[t.media[t.carouselCursor].filter_class==i[1]?"nav-link text-white active":"nav-link text-muted"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleFilter(e,i[1])}}},[t._v(t._s(i[0]))])])})],2)]):t._e()]),t._v(" "),t.ids.length>0&&-1!=["image","video"].indexOf(t.media[t.carouselCursor].type)?e("div",{staticClass:"bg-lighter p-2 row"},["Image"==t.media[t.carouselCursor].type?e("div",{staticClass:"col-12"},[e("div",{staticClass:"form-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.media[t.carouselCursor].alt,expression:"media[carouselCursor].alt"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Optional image description"},domProps:{value:t.media[t.carouselCursor].alt},on:{input:function(e){e.target.composing||t.$set(t.media[t.carouselCursor],"alt",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.media[t.carouselCursor].license,expression:"media[carouselCursor].license"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Optional media license"},domProps:{value:t.media[t.carouselCursor].license},on:{input:function(e){e.target.composing||t.$set(t.media[t.carouselCursor],"license",e.target.value)}}})])]):t._e(),t._v(" "),e("div",{staticClass:"col-12 text-right pt-2"},[e("button",{staticClass:"btn btn-outline-danger btn-sm font-weight-bold mr-1",on:{click:function(e){return t.deleteMedia()}}},[t._v("Delete Media")])])]):t._e()]),t._v(" "),e("div",{staticClass:"card-body p-0 border-top"},[e("div",{staticClass:"caption"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control mb-0 border-0 rounded-0",attrs:{rows:"3",placeholder:"Add an optional caption"},domProps:{value:t.composeText},on:{input:function(e){e.target.composing||(t.composeText=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"card-footer"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("div",{staticClass:"custom-control custom-switch d-inline mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.nsfw,expression:"nsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"nsfwToggle"},domProps:{checked:Array.isArray(t.nsfw)?t._i(t.nsfw,null)>-1:t.nsfw},on:{change:function(e){var i=t.nsfw,a=e.target,s=!!a.checked;if(Array.isArray(i)){var o=t._i(i,null);a.checked?o<0&&(t.nsfw=i.concat([null])):o>-1&&(t.nsfw=i.slice(0,o).concat(i.slice(o+1)))}else t.nsfw=s}}}),t._v(" "),e("label",{staticClass:"custom-control-label small font-weight-bold text-muted pt-1",attrs:{for:"nsfwToggle"}},[t._v("NSFW")])]),t._v(" "),e("div",{staticClass:"dropdown d-inline"},[e("button",{staticClass:"btn btn-outline-secondary btn-sm py-0 dropdown-toggle",attrs:{type:"button",id:"visibility","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.visibility[0].toUpperCase()+t.visibility.slice(1))+"\n\t\t\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"dropdown-menu",staticStyle:{width:"200px"},attrs:{"aria-labelledby":"visibility"}},[e("a",{class:["public"==t.visibility?"dropdown-item active":"dropdown-item"],attrs:{href:"#","data-id":"public","data-title":"Public"},on:{click:function(e){e.preventDefault(),t.visibility="public"}}},[t._m(2)]),t._v(" "),e("a",{class:["private"==t.visibility?"dropdown-item active":"dropdown-item"],attrs:{href:"#","data-id":"private","data-title":"Followers Only"},on:{click:function(e){e.preventDefault(),t.visibility="private"}}},[t._m(3)]),t._v(" "),e("a",{class:["unlisted"==t.visibility?"dropdown-item active":"dropdown-item"],attrs:{href:"#","data-id":"private","data-title":"Unlisted"},on:{click:function(e){e.preventDefault(),t.visibility="unlisted"}}},[t._m(4)])])])]),t._v(" "),e("div",{staticClass:"small text-muted font-weight-bold"},[t._v("\n\t\t\t\t\t\t"+t._s(t.composeText.length)+" / "+t._s(t.config.uploader.max_caption_length)+"\n\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"pl-md-5"},[e("button",{staticClass:"btn btn-primary btn-sm font-weight-bold px-3",on:{click:function(e){return t.compose()}}},[t._v("Publish")])])])])])])])},s=[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-link text-dark no-caret dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"Post options"}},[t("span",{staticClass:"fas fa-ellipsis-v fa-lg text-muted"})])},function(){var t=this._self._c;return t("p",{staticClass:"text-center mb-0 font-weight-bold text-white"},[t("i",{staticClass:"fas fa-plus mr-1"}),this._v(" Add Photo")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"d-none d-block-sm col-sm-2 px-0 text-center"},[e("i",{staticClass:"fas fa-globe"})]),t._v(" "),e("div",{staticClass:"col-12 col-sm-10 pl-2"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Public")]),t._v(" "),e("p",{staticClass:"small mb-0"},[t._v("Anyone can see")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"d-none d-block-sm col-sm-2 px-0 text-center"},[e("i",{staticClass:"fas fa-lock"})]),t._v(" "),e("div",{staticClass:"col-12 col-sm-10 pl-2"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Followers Only")]),t._v(" "),e("p",{staticClass:"small mb-0"},[t._v("Only followers can see")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"d-none d-block-sm col-sm-2 px-0 text-center"},[e("i",{staticClass:"fas fa-lock"})]),t._v(" "),e("div",{staticClass:"col-12 col-sm-10 pl-2"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Unlisted")]),t._v(" "),e("p",{staticClass:"small mb-0"},[t._v("Not listed on public timelines")])])])}]},29421(t,e,i){Vue.component("compose-classic",i(51155).default)},24141(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>o});var a=i(76798),s=i.n(a)()(function(t){return t[1]});s.push([t.id,".media-drawer-filters[data-v-52c4a7c6]{flex-wrap:unset;overflow-x:scroll}.media-drawer-filters .nav-link[data-v-52c4a7c6]{min-width:100px;padding-bottom:1rem;padding-top:1rem}.media-drawer-filters .active[data-v-52c4a7c6]{color:#fff;font-weight:700}@media (hover:none) and (pointer:coarse){.media-drawer-filters[data-v-52c4a7c6]::-webkit-scrollbar{display:none}}",""]);const o=s},24422(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>r});var a=i(85072),s=i.n(a),o=i(24141),l={insert:"head",singleton:!1};s()(o.default,l);const r=o.default.locals||{}},51155(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>l});var a=i(92310),s=i(54832),o={};for(const t in s)"default"!==t&&(o[t]=()=>s[t]);i.d(e,o);i(50279);const l=(0,i(14486).default)(s.default,a.render,a.staticRenderFns,!1,null,"52c4a7c6",null).exports},54832(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>o});var a=i(57723),s={};for(const t in a)"default"!==t&&(s[t]=()=>a[t]);i.d(e,s);const o=a.default},92310(t,e,i){"use strict";i.r(e);var a=i(52835),s={};for(const t in a)"default"!==t&&(s[t]=()=>a[t]);i.d(e,s)},50279(t,e,i){"use strict";i.r(e);var a=i(24422),s={};for(const t in a)"default"!==t&&(s[t]=()=>a[t]);i.d(e,s)}},t=>{t.O(0,[3660],()=>{return e=29421,t(t.s=e);var e});t.O()}]);
\ No newline at end of file
+(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[9981],{57723(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>s});var a=i(74692);const s={data:function(){return{config:window.App.config,profile:{},composeText:"",composeTextLength:0,nsfw:!1,filters:[],ids:[],media:[],carouselCursor:0,visibility:"public",mediaDrawer:!1,composeState:"publish",uploading:!1,uploadProgress:0,composeType:!1}},beforeMount:function(){this.fetchProfile()},mounted:function(){this.mediaWatcher(),this.filters=[["1977","filter-1977"],["Aden","filter-aden"],["Amaro","filter-amaro"],["Ashby","filter-ashby"],["Brannan","filter-brannan"],["Brooklyn","filter-brooklyn"],["Charmes","filter-charmes"],["Clarendon","filter-clarendon"],["Crema","filter-crema"],["Dogpatch","filter-dogpatch"],["Earlybird","filter-earlybird"],["Gingham","filter-gingham"],["Ginza","filter-ginza"],["Hefe","filter-hefe"],["Helena","filter-helena"],["Hudson","filter-hudson"],["Inkwell","filter-inkwell"],["Kelvin","filter-kelvin"],["Kuno","filter-juno"],["Lark","filter-lark"],["Lo-Fi","filter-lofi"],["Ludwig","filter-ludwig"],["Maven","filter-maven"],["Mayfair","filter-mayfair"],["Moon","filter-moon"],["Nashville","filter-nashville"],["Perpetua","filter-perpetua"],["Poprocket","filter-poprocket"],["Reyes","filter-reyes"],["Rise","filter-rise"],["Sierra","filter-sierra"],["Skyline","filter-skyline"],["Slumber","filter-slumber"],["Stinson","filter-stinson"],["Sutro","filter-sutro"],["Toaster","filter-toaster"],["Valencia","filter-valencia"],["Vesper","filter-vesper"],["Walden","filter-walden"],["Willow","filter-willow"],["X-Pro II","filter-xpro-ii"]]},methods:{fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(e){t.profile=e.data,1==e.data.locked&&(t.visibility="private")}).catch(function(t){})},addMedia:function(t){var e=a(t.target);e.attr("disabled",""),a('.file-input[name="media"]').trigger("click"),e.blur(),e.removeAttr("disabled")},mediaWatcher:function(){var t=this;a(document).on("change",".file-input",function(e){var i=document.querySelector(".file-input");Array.prototype.forEach.call(i.files,function(e,i){if(t.uploading=!0,t.media&&t.media.length+i>=t.config.uploader.album_limit)swal("Error","You can only upload "+t.config.uploader.album_limit+" photos per album","error");else{var s=e.type,o=t.config.uploader.media_types.split(",");if(-1!=a.inArray(s,o)){var r=new FormData;r.append("file",e);var l={onUploadProgress:function(e){var i=Math.round(100*e.loaded/e.total);t.uploadProgress=i}};axios.post("/api/pixelfed/v1/media",r,l).then(function(e){t.uploadProgress=100,t.ids.push(e.data.id),t.media.push(e.data),setTimeout(function(){t.uploading=!1},1e3)}).catch(function(i){t.uploading=!1,e.value=null;var a="An unexpected error occurred.";i.response&&422===i.response.status&&i.response.data?i.response.data.errors?a=Object.values(i.response.data.errors).flat().join("\n"):i.response.data.message&&(a=i.response.data.message):i.response&&i.response.data&&i.response.data.message&&(a=i.response.data.message);swal("Upload Failed",a,"error")}),e.value=null,t.uploadProgress=0}else swal("Invalid File Type","The file you are trying to add is not a valid mime type. Please upload a "+t.config.uploader.media_types+" only.","error")}})})},toggleFilter:function(t,e){this.media[this.carouselCursor].filter_class=e},updateMedia:function(){this.mediaDrawer=!1},deleteMedia:function(){var t=this;if(0!=window.confirm("Are you sure you want to delete this media?")){var e=this.media[this.carouselCursor].id;axios.delete("/api/pixelfed/v1/media",{params:{id:e}}).then(function(e){1==t.media.length&&(t.mediaDrawer=!1,t.ids=[],t.media=[],t.carouselCursor=0),t.ids.splice(t.carouselCursor,1),t.media.splice(t.carouselCursor,1)}).catch(function(t){swal("Whoops!","An error occured when attempting to delete this, please try again","error")})}},mediaAltText:function(){},mediaLicense:function(){},compose:function(){var t=this.composeState;if(100==this.uploadProgress&&0!=this.ids.length)if(this.composeText.length>this.config.uploader.max_caption_length)swal("Error","Caption is too long","error");else switch(t){case"publish":if(0==this.media.length)return void swal("Whoops!","You need to add media before you can save this!","warning");"Add optional caption..."==this.composeText&&(this.composeText="");var e={media:this.media,caption:this.composeText,visibility:this.visibility,cw:this.nsfw};return void axios.post("/api/local/status/compose",e).then(function(t){var e=t.data;window.location.href=e}).catch(function(t){var e=t.response.data.message?t.response.data.message:"An unexpected error occured.";swal("Oops, something went wrong!",e,"error")});case"delete":return this.mediaDrawer=!1,this.ids=[],this.media=[],this.carouselCursor=0,this.composeText="",this.composeTextLength=0,void a("#composeModal").modal("hide")}},about:function(){var t=document.createElement("div");t.innerHTML='\n\t\t\t\tPlease visit the Sharing Media page for more info.
\n\t\t\t',swal({title:"Compose UI v3",content:t,icon:"info"})},closeModal:function(){this.composeType="",a("#composeModal").modal("hide")},composeMessage:function(){var t=this.config;this.composeType;return t.uploader.media_types.includes("video/mp4")?"Click here to add photos or videos":"Click here to add photos"},createCollection:function(){window.location.href="/i/collections/create"},maxSize:function(){return this.config.uploader.max_photo_size/1e3+" MB"},acceptedFormats:function(){return this.config.uploader.media_types.split(",").map(function(t){return" "+t.split("/")[1]}).toString()}}}},21250(t,e,i){"use strict";i.r(e),i.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",[e("input",{staticClass:"d-none file-input",attrs:{type:"file",name:"media",multiple:"",accept:t.config.uploader.media_types}}),t._v(" "),e("div",{staticClass:"timeline"},[e("div",{staticClass:"card status-card card-md-rounded-0"},[e("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[e("img",{staticClass:"box-shadow",staticStyle:{"border-radius":"32px"},attrs:{src:t.profile.avatar,width:"32px",height:"32px"}}),t._v(" "),e("a",{staticClass:"username font-weight-bold pl-2 text-dark",attrs:{href:t.profile.url}},[t._v("\n\t\t\t\t\t"+t._s(t.profile.username)+"\n\t\t\t\t")]),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("div",{staticClass:"dropdown"},[t._m(0),t._v(" "),e("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[e("div",{staticClass:"dropdown-item small font-weight-bold",on:{click:t.createCollection}},[t._v("Create Collection")]),t._v(" "),e("div",{staticClass:"dropdown-divider"}),t._v(" "),e("div",{staticClass:"dropdown-item small font-weight-bold",on:{click:t.about}},[t._v("About")]),t._v(" "),e("div",{staticClass:"dropdown-item small font-weight-bold",on:{click:t.closeModal}},[t._v("Close")])])])])]),t._v(" "),e("div",{staticClass:"postPresenterContainer"},[t.uploading?e("div",[e("div",{staticClass:"w-100 h-100 bg-light py-5",staticStyle:{"border-bottom":"1px solid #f1f1f1"}},[e("div",{staticClass:"p-5"},[e("b-progress",{attrs:{value:t.uploadProgress,max:100,striped:"",animated:!0}}),t._v(" "),e("p",{staticClass:"text-center mb-0 font-weight-bold"},[t._v("Uploading ... ("+t._s(t.uploadProgress)+"%)")])],1)])]):e("div",[t.ids.length>0&&t.ids.length!=t.config.uploader.album_limit?e("div",{staticClass:"card-header py-2 bg-primary m-2 rounded cursor-pointer",on:{click:function(e){return t.addMedia(e)}}},[t._m(1)]):t._e(),t._v(" "),0==t.ids.length?e("div",{staticClass:"w-100 h-100 bg-light py-5 cursor-pointer",staticStyle:{"border-bottom":"1px solid #f1f1f1"},on:{click:function(e){return t.addMedia(e)}}},[e("div",{staticClass:"p-5"},[e("p",{staticClass:"text-center font-weight-bold"},[t._v(t._s(t.composeMessage()))]),t._v(" "),e("p",{staticClass:"text-muted mb-0 small text-center"},[t._v("Accepted Formats: "),e("b",[t._v(t._s(t.acceptedFormats()))])]),t._v(" "),e("p",{staticClass:"text-muted mb-0 small text-center"},[t._v("Max File Size: "),e("b",[t._v(t._s(t.maxSize()))])]),t._v(" "),e("p",{staticClass:"text-muted mb-0 small text-center"},[t._v("Albums can contain up to "),e("b",[t._v(t._s(t.config.uploader.album_limit))]),t._v(" photos or videos")])])]):t._e(),t._v(" "),t.ids.length>0?e("div",[e("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333"},attrs:{id:"p-carousel",controls:"",indicators:"",background:"#ffffff",interval:0},model:{value:t.carouselCursor,callback:function(e){t.carouselCursor=e},expression:"carouselCursor"}},t._l(t.media,function(i,a){return t.ids.length>0?e("b-carousel-slide",{key:"preview_media_"+a},[e("div",{class:[t.media[a].filter_class?t.media[a].filter_class:""],staticStyle:{display:"flex","min-height":"320px","align-items":"center"},attrs:{slot:"img"},slot:"img"},[e("img",{staticClass:"d-block img-fluid w-100",attrs:{src:i.url,alt:i.description,title:i.description}})])]):t._e()}),1)],1):t._e(),t._v(" "),t.ids.length>0&&"image"==t.media[t.carouselCursor].type?e("div",{staticClass:"bg-dark align-items-center"},[e("ul",{staticClass:"nav media-drawer-filters text-center"},[e("li",{staticClass:"nav-item"},[e("div",{staticClass:"p-1 pt-3"},[e("img",{staticClass:"cursor-pointer",attrs:{src:t.media[t.carouselCursor].url,width:"100px",height:"60px"},on:{click:function(e){return e.preventDefault(),t.toggleFilter(e,null)}}})]),t._v(" "),e("a",{class:[null==t.media[t.carouselCursor].filter_class?"nav-link text-white active":"nav-link text-muted"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleFilter(e,null)}}},[t._v("No Filter")])]),t._v(" "),t._l(t.filters,function(i,a){return e("li",{staticClass:"nav-item"},[e("div",{staticClass:"p-1 pt-3"},[e("img",{class:i[1],attrs:{src:t.media[t.carouselCursor].url,width:"100px",height:"60px"},on:{click:function(e){return e.preventDefault(),t.toggleFilter(e,i[1])}}})]),t._v(" "),e("a",{class:[t.media[t.carouselCursor].filter_class==i[1]?"nav-link text-white active":"nav-link text-muted"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleFilter(e,i[1])}}},[t._v(t._s(i[0]))])])})],2)]):t._e()]),t._v(" "),t.ids.length>0&&-1!=["image","video"].indexOf(t.media[t.carouselCursor].type)?e("div",{staticClass:"bg-lighter p-2 row"},["Image"==t.media[t.carouselCursor].type?e("div",{staticClass:"col-12"},[e("div",{staticClass:"form-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.media[t.carouselCursor].alt,expression:"media[carouselCursor].alt"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Optional image description"},domProps:{value:t.media[t.carouselCursor].alt},on:{input:function(e){e.target.composing||t.$set(t.media[t.carouselCursor],"alt",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.media[t.carouselCursor].license,expression:"media[carouselCursor].license"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Optional media license"},domProps:{value:t.media[t.carouselCursor].license},on:{input:function(e){e.target.composing||t.$set(t.media[t.carouselCursor],"license",e.target.value)}}})])]):t._e(),t._v(" "),e("div",{staticClass:"col-12 text-right pt-2"},[e("button",{staticClass:"btn btn-outline-danger btn-sm font-weight-bold mr-1",on:{click:function(e){return t.deleteMedia()}}},[t._v("Delete Media")])])]):t._e()]),t._v(" "),e("div",{staticClass:"card-body p-0 border-top"},[e("div",{staticClass:"caption"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control mb-0 border-0 rounded-0",attrs:{rows:"3",placeholder:"Add an optional caption"},domProps:{value:t.composeText},on:{input:function(e){e.target.composing||(t.composeText=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"card-footer"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("div",{staticClass:"custom-control custom-switch d-inline mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.nsfw,expression:"nsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"nsfwToggle"},domProps:{checked:Array.isArray(t.nsfw)?t._i(t.nsfw,null)>-1:t.nsfw},on:{change:function(e){var i=t.nsfw,a=e.target,s=!!a.checked;if(Array.isArray(i)){var o=t._i(i,null);a.checked?o<0&&(t.nsfw=i.concat([null])):o>-1&&(t.nsfw=i.slice(0,o).concat(i.slice(o+1)))}else t.nsfw=s}}}),t._v(" "),e("label",{staticClass:"custom-control-label small font-weight-bold text-muted pt-1",attrs:{for:"nsfwToggle"}},[t._v("NSFW")])]),t._v(" "),e("div",{staticClass:"dropdown d-inline"},[e("button",{staticClass:"btn btn-outline-secondary btn-sm py-0 dropdown-toggle",attrs:{type:"button",id:"visibility","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.visibility[0].toUpperCase()+t.visibility.slice(1))+"\n\t\t\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"dropdown-menu",staticStyle:{width:"200px"},attrs:{"aria-labelledby":"visibility"}},[e("a",{class:["public"==t.visibility?"dropdown-item active":"dropdown-item"],attrs:{href:"#","data-id":"public","data-title":"Public"},on:{click:function(e){e.preventDefault(),t.visibility="public"}}},[t._m(2)]),t._v(" "),e("a",{class:["private"==t.visibility?"dropdown-item active":"dropdown-item"],attrs:{href:"#","data-id":"private","data-title":"Followers Only"},on:{click:function(e){e.preventDefault(),t.visibility="private"}}},[t._m(3)]),t._v(" "),e("a",{class:["unlisted"==t.visibility?"dropdown-item active":"dropdown-item"],attrs:{href:"#","data-id":"private","data-title":"Unlisted"},on:{click:function(e){e.preventDefault(),t.visibility="unlisted"}}},[t._m(4)])])])]),t._v(" "),e("div",{staticClass:"small text-muted font-weight-bold"},[t._v("\n\t\t\t\t\t\t"+t._s(t.composeText.length)+" / "+t._s(t.config.uploader.max_caption_length)+"\n\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"pl-md-5"},[e("button",{staticClass:"btn btn-primary btn-sm font-weight-bold px-3",on:{click:function(e){return t.compose()}}},[t._v("Publish")])])])])])])])},s=[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-link text-dark no-caret dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"Post options"}},[t("span",{staticClass:"fas fa-ellipsis-v fa-lg text-muted"})])},function(){var t=this._self._c;return t("p",{staticClass:"text-center mb-0 font-weight-bold text-white"},[t("i",{staticClass:"fas fa-plus mr-1"}),this._v(" Add Photo")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"d-none d-block-sm col-sm-2 px-0 text-center"},[e("i",{staticClass:"fas fa-globe"})]),t._v(" "),e("div",{staticClass:"col-12 col-sm-10 pl-2"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Public")]),t._v(" "),e("p",{staticClass:"small mb-0"},[t._v("Anyone can see")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"d-none d-block-sm col-sm-2 px-0 text-center"},[e("i",{staticClass:"fas fa-lock"})]),t._v(" "),e("div",{staticClass:"col-12 col-sm-10 pl-2"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Followers Only")]),t._v(" "),e("p",{staticClass:"small mb-0"},[t._v("Only followers can see")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"d-none d-block-sm col-sm-2 px-0 text-center"},[e("i",{staticClass:"fas fa-lock"})]),t._v(" "),e("div",{staticClass:"col-12 col-sm-10 pl-2"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Unlisted")]),t._v(" "),e("p",{staticClass:"small mb-0"},[t._v("Not listed on public timelines")])])])}]},29421(t,e,i){Vue.component("compose-classic",i(51155).default)},7440(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>o});var a=i(76798),s=i.n(a)()(function(t){return t[1]});s.push([t.id,".media-drawer-filters[data-v-317f6b56]{flex-wrap:unset;overflow-x:scroll}.media-drawer-filters .nav-link[data-v-317f6b56]{min-width:100px;padding-bottom:1rem;padding-top:1rem}.media-drawer-filters .active[data-v-317f6b56]{color:#fff;font-weight:700}@media (hover:none) and (pointer:coarse){.media-drawer-filters[data-v-317f6b56]::-webkit-scrollbar{display:none}}",""]);const o=s},15439(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>l});var a=i(85072),s=i.n(a),o=i(7440),r={insert:"head",singleton:!1};s()(o.default,r);const l=o.default.locals||{}},51155(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>r});var a=i(80359),s=i(54832),o={};for(const t in s)"default"!==t&&(o[t]=()=>s[t]);i.d(e,o);i(7302);const r=(0,i(14486).default)(s.default,a.render,a.staticRenderFns,!1,null,"317f6b56",null).exports},54832(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>o});var a=i(57723),s={};for(const t in a)"default"!==t&&(s[t]=()=>a[t]);i.d(e,s);const o=a.default},80359(t,e,i){"use strict";i.r(e);var a=i(21250),s={};for(const t in a)"default"!==t&&(s[t]=()=>a[t]);i.d(e,s)},7302(t,e,i){"use strict";i.r(e);var a=i(15439),s={};for(const t in a)"default"!==t&&(s[t]=()=>a[t]);i.d(e,s)}},t=>{t.O(0,[3660],()=>{return e=29421,t(t.s=e);var e});t.O()}]);
\ No newline at end of file
diff --git a/public/js/compose.chunk.2c9141ff4969e238.js b/public/js/compose.chunk.2c9141ff4969e238.js
deleted file mode 100644
index 36d43994e..000000000
--- a/public/js/compose.chunk.2c9141ff4969e238.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! For license information please see compose.chunk.2c9141ff4969e238.js.LICENSE.txt */
-"use strict";(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[9124],{66517(t,e,a){a.r(e),a.d(e,{default:()=>n});var s=a(5787),i=a(28772),o=a(19324);const n={components:{drawer:s.default,sidebar:i.default,"compose-modal":o.default},data:function(){return{isLoaded:!1,profile:void 0}},mounted:function(){this.profile=window._sharedData.user,this.isLoaded=!0},methods:{closeModal:function(){this.$router.push("/i/web")}}}},50371(t,e,a){a.r(e),a.d(e,{default:()=>s});const s={data:function(){return{user:window._sharedData.user}}}},84154(t,e,a){a.r(e),a.d(e,{default:()=>s});const s={props:["user"],data:function(){return{loaded:!1,avatarUpdateIndex:0,avatarUpdateFile:void 0,avatarUpdatePreview:void 0}},methods:{open:function(){this.$refs.avatarUpdateModal.show()},avatarUpdateClose:function(){this.$refs.avatarUpdateModal.hide(),this.avatarUpdateIndex=0,this.avatarUpdateFile=void 0},avatarUpdateClear:function(){this.avatarUpdateIndex=0,this.avatarUpdateFile=void 0},avatarUpdateStep:function(t){this.$refs.avatarUpdateRef.click(),this.avatarUpdateIndex=t},handleAvatarUpdate:function(){var t=this,e=event.target.files;Array.prototype.forEach.call(e,function(e,a){t.avatarUpdateFile=e,t.avatarUpdatePreview=URL.createObjectURL(e),t.avatarUpdateIndex=1})},handleDrop:function(t){t.preventDefault();var e=this;if(t.dataTransfer.items){for(var a=0;al});var s=a(95353),i=a(90414);function o(t){return o="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},o(t)}function n(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 r(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var s=a.call(t,e||"default");if("object"!=o(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const l={props:{user:{type:Object,default:function(){return{avatar:"/storage/avatars/default.jpg",username:!1,display_name:"",following_count:0,followers_count:0}}},links:{type:Array,default:function(){return[{name:"Discover",path:"/i/web/discover",icon:"fas fa-compass"},{name:"Groups",path:"/i/web/groups",icon:"far fa-user-friends"},{name:"Videos",path:"/i/web/videos",icon:"far fa-video"}]}}},components:{UpdateAvatar:i.default},computed:function(t){for(var e=1;e)?/g,function(e){var a=e.slice(1,e.length-1),s=t.getCustomEmoji.filter(function(t){return t.shortcode==a});return s.length?'
'):e})}return a},gotoMyProfile:function(){var t=this.user;this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:t}})},formatCount:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"compact";return new Intl.NumberFormat(e,{notation:a,compactDisplay:"short"}).format(t)},updateAvatar:function(){event.currentTarget.blur(),this.$refs.avatarUpdate.open()},createNewPost:function(){this.$refs.createPostModal.show()},goToFeed:function(t){var e=this.$route.path;switch(t){case"home":"/i/web"==e?this.$emit("refresh"):this.$router.push("/i/web");break;case"local":"/i/web/timeline/local"==e?this.$emit("refresh"):this.$router.push({name:"timeline",params:{scope:"local"}});break;case"global":"/i/web/timeline/global"==e?this.$emit("refresh"):this.$router.push({name:"timeline",params:{scope:"global"}})}}}}},28320(t,e,a){a.r(e),a.d(e,{default:()=>C});var s=a(91584),i=(a(49551),a(2e4)),o=(a(73718),a(79288)),n=a(4717),r=a(67794),l=a(74692);function c(t){return c="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},c(t)}function d(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(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 u(t){for(var e=1;et.length)&&(e=t.length);for(var a=0,s=Array(e);a3?(i=f===s)&&(l=o[(r=o[4])?5:(r=3,3)],o[4]=o[5]=t):o[0]<=m&&((i=a<2&&ms||s>f)&&(o[4]=a,o[5]=s,u.n=f,r=0))}if(i||a>1)return n;throw p=!0,s}return function(i,d,f){if(c>1)throw TypeError("Generator is already running");for(p&&1===d&&m(d,f),r=d,l=f;(e=r<2?t:l)||!p;){o||(r?r<3?(r>1&&(u.n=-1),m(r,l)):u.n=l:u.v=l);try{if(c=2,o){if(r||(i="next"),e=o[i]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,r<2&&(r=0)}else 1===r&&(e=o.return)&&e.call(o),r<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),r=1);o=t}else if((e=(p=u.n<0)?l:a.call(s,u))!==n)break}catch(e){o=t,r=1,l=e}finally{c=1}}return{value:e,done:p}}}(a,i,o),!0),c}var n={};function r(){}function l(){}function c(){}e=Object.getPrototypeOf;var d=[][s]?e(e([][s]())):(b(e={},s,function(){return this}),e),p=c.prototype=r.prototype=Object.create(d);function u(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,b(t,i,"GeneratorFunction")),t.prototype=Object.create(p),t}return l.prototype=c,b(p,"constructor",c),b(c,"constructor",l),l.displayName="GeneratorFunction",b(c,i,"GeneratorFunction"),b(p),b(p,i,"Generator"),b(p,s,function(){return this}),b(p,"toString",function(){return"[object Generator]"}),(g=function(){return{w:o,m:u}})()}function b(t,e,a,s){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}b=function(t,e,a,s){function o(e,a){b(t,e,function(t){return this._invoke(e,a,t)})}e?i?i(t,e,{value:a,enumerable:!s,configurable:!s,writable:!s}):t[e]=a:(o("next",0),o("throw",1),o("return",2))},b(t,e,a,s)}function _(t,e,a,s,i,o,n){try{var r=t[o](n),l=r.value}catch(t){return void a(t)}r.done?e(l):Promise.resolve(l).then(s,i)}function y(t){return function(){var e=this,a=arguments;return new Promise(function(s,i){var o=t.apply(e,a);function n(t){_(o,s,i,n,r,"next",t)}function r(t){_(o,s,i,n,r,"throw",t)}n(void 0)})}}const C={components:{VueCropper:s.default,Autocomplete:i.default,VueTribute:o.default,MediaEditorPreview:n.MediaEditorPreview,MediaEditorFilterMenu:n.MediaEditorFilterMenu},data:function(){return{config:window.App.config,pageLoading:!1,profile:window._sharedData.curUser,composeText:"",composeTextLength:0,nsfw:!1,ids:[],media:[],files:[],carouselCursor:0,uploading:!1,uploadProgress:100,mode:"photo",modes:["photo","video","plain"],page:1,composeState:"publish",visibility:"public",visibilityTag:"Public",place:!1,commentsDisabled:!1,optimizeMedia:!0,mediaCropped:!1,pageTitle:"",cropper:{aspectRatio:1,viewMode:1,zoomable:!0,zoom:0},namedPages:["cropPhoto","tagPeople","addLocation","advancedSettings","visibility","altText","addToCollection","schedulePost","mediaMetadata","addToStory","editMedia","cameraRoll","tagPeopleHelp","textOptions","licensePicker"],cameraRollMedia:[],taggedUsernames:[],taggedPeopleSearch:null,textMode:!1,tributeSettings:{noMatchTemplate:function(){return null},collection:[{trigger:"@",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/mention",{params:{q:t}}).then(function(t){e(t.data)}).catch(function(t){})}},{trigger:"#",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/hashtag",{params:{q:t}}).then(function(t){e(t.data)}).catch(function(t){})}}]},availableLicenses:[{id:1,name:"All Rights Reserved",title:""},{id:5,name:"Public Domain Work",title:""},{id:6,name:"Public Domain Dedication (CC0)",title:"CC0"},{id:11,name:"Attribution",title:"CC BY"},{id:12,name:"Attribution-ShareAlike",title:"CC BY-SA"},{id:13,name:"Attribution-NonCommercial",title:"CC BY-NC"},{id:14,name:"Attribution-NonCommercial-ShareAlike",title:"CC BY-NC-SA"},{id:15,name:"Attribution-NoDerivs",title:"CC BY-ND"},{id:16,name:"Attribution-NonCommercial-NoDerivs",title:"CC BY-NC-ND"}],licenseIndex:0,video:{title:"",description:""},composeSettings:{default_license:null,media_descriptions:!1},licenseId:1,licenseTitle:null,maxAltTextLength:140,pollOptionModel:null,pollOptions:[],pollExpiry:1440,postingPoll:!1,collections:[],collectionsSelected:[],collectionsLoaded:!1,collectionsPage:1,collectionsCanLoadMore:!1,spoilerText:void 0,isPosting:!1}},created:function(){var t=this;try{this.editor=new n.MediaEditor({effects:r.filterEffects,onEdit:function(e,a){var s=a.effect,i=a.intensity,o=a.crop;if(!(e>=t.files.length)){var n=t.files[e];t.$set(n,"editState",{effect:s,intensity:i,crop:o})}},onRenderPreview:function(e,a){if(!(e>=t.files.length)){var s=t.files[e].editState,i=t.media[e];s&&(s.crop||-1!==s.effect)?i.preview_url=a:i.preview_url=i.url}}})}catch(t){}},computed:{spoilerTextLength:function(){return this.spoilerText?this.spoilerText.length:0}},beforeMount:function(){var t=this;axios.get("/api/compose/v0/settings").then(function(e){t.composeSettings=e.data,t.licenseId=t.composeSettings.default_license,t.maxAltTextLength=e.data.max_altext_length,t.licenseId>10&&(t.licenseTitle=t.availableLicenses.filter(function(e){return e.id==t.licenseId}).map(function(t){return t.title})[0]),t.fetchProfile()})},destroyed:function(){this.media.forEach(function(t){URL.revokeObjectURL(t.url),URL.revokeObjectURL(t.preview_url)}),this.files.length=this.media.length=0,this.editor=void 0},methods:{timeAgo:function(t){return App.util.format.timeAgo(t)},formatBytes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!+t)return"0 Bytes";var a=e<0?0:e,s=Math.floor(Math.log(t)/Math.log(1024));return"".concat(parseFloat((t/Math.pow(1024,s)).toFixed(a))," ").concat(["Bytes","KB","MB","GB","TB"][s])},defineErrorMessage:function(t){var e;return e=t.response?t.response.data.message?t.response.data.message:"An unexpected error occured.":t.message,swal("Oops, something went wrong!",e,"error")},fetchProfile:function(){var t=this,e={public:"Public",private:"Followers Only",unlisted:"Unlisted"};if(window._sharedData.curUser.id){if(this.profile=window._sharedData.curUser,this.composeSettings&&this.composeSettings.hasOwnProperty("default_scope")&&this.composeSettings.default_scope){var a=this.composeSettings.default_scope;this.visibility=a,this.visibilityTag=e[a]}1==this.profile.locked&&(this.visibility="private",this.visibilityTag="Followers Only")}else axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(a){if(window._sharedData.currentUser=a.data,t.profile=a.data,t.composeSettings&&t.composeSettings.hasOwnProperty("default_scope")&&t.composeSettings.default_scope){var s=t.composeSettings.default_scope;t.visibility=s,t.visibilityTag=e[s]}1==t.profile.locked&&(t.visibility="private",t.visibilityTag="Followers Only")}).catch(function(t){})},addMedia:function(t){var e=l(t.target);e.attr("disabled",""),l('.file-input[name="media"]').trigger("click"),e.blur(),e.removeAttr("disabled")},addText:function(t){this.pageTitle="New Text Post",this.page="addText",this.textMode=!0,this.mode="text"},onInputFile:function(t){var e=this,a=t.target,s=Array.from(a.files);a.value=null;var i=this;s.forEach(function(t,a){if(i.media&&i.media.length>=i.config.uploader.album_limit)return swal("Error","You can only upload "+i.config.uploader.album_limit+" photos per album","error"),void(i.page=2);var s=i.config.uploader.media_types.split(",");if(-1==l.inArray(t.type,s))return swal("Invalid File Type","The file you are trying to add is not a valid mime type. Please upload a "+i.config.uploader.media_types+" only.","error"),void(i.page=2);var o=t.type.replace(/\/.*/,""),n=URL.createObjectURL(t),r="image"===o?URL.createObjectURL(t):"/storage/no-preview.png";e.files.push({file:t,editState:void 0}),e.media.push({url:n,preview_url:r,type:o})}),this.media.length?this.page=3:this.page=2},mediaUpload:function(){var t=this;return y(g().m(function e(){var a;return g().w(function(e){for(;;)switch(e.n){case 0:return t.uploading=!0,a=t.files.map(function(){var e=y(g().m(function e(a,s){var i,o,n,r,l,c,d;return g().w(function(e){for(;;)switch(e.n){case 0:if(i=a.file,"image"!==(o=t.media[s]).type||!a.editState){e.n=3;break}if(n=a.editState,r=a.cropperBlob,!t.editor||-1===n.effect&&!n.crop){e.n=2;break}return e.n=1,t.editor.toBlob(s);case 1:i=e.v,e.n=3;break;case 2:r&&(i=r);case 3:return(l=new FormData).append("file",i),c={onUploadProgress:function(t){var e=Math.round(100*t.loaded/t.total);d.uploadProgress=e}},d=t,e.n=4,axios.post("/api/compose/v0/media/upload",l,c).then(function(t){d.uploadProgress=100,d.ids.push(t.data.id),Object.assign(o,t.data),setTimeout(function(){d.page=3},300)}).catch(function(t){switch(t.response.status){case 403:swal("Account size limit reached","Contact your admin for assistance.","error"),d.page=2;break;case 413:swal("File is too large","The file you uploaded has the size of "+d.formatBytes(i.size)+". Unfortunately, only images up to "+d.formatBytes(1024*d.config.uploader.max_photo_size)+" are supported.\nPlease resize the file and try again.","error"),d.page=2;break;case 451:swal("Banned Content","This content has been banned and cannot be uploaded.","error"),d.page=2;break;case 429:swal("Limit Reached","You can upload up to 250 photos or videos per day and you've reached that limit. Please try again later.","error"),d.page=2;break;case 500:swal("Error",t.response.data.message,"error"),d.page=2;break;default:swal("Oops, something went wrong!","An unexpected error occurred.","error"),d.page=2}throw t});case 4:return e.a(2)}},e)}));return function(t,a){return e.apply(this,arguments)}}()),e.n=1,Promise.all(a).finally(function(){t.uploadProgress=0,t.uploading=!1});case 1:return e.a(2)}},e)}))()},deleteMedia:function(){var t=this;return y(g().m(function e(){var a,s;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(0!=window.confirm("Are you sure you want to delete this media?")){e.n=1;break}return e.a(2);case 1:if(!(s=t.media[t.carouselCursor].id)){e.n=5;break}return e.p=2,e.n=3,axios.delete("/api/compose/v0/media/delete",{params:{id:s}});case 3:e.n=5;break;case 4:return e.p=4,e.v,swal("Whoops!","An error occured when attempting to delete this, please try again","error"),e.a(2);case 5:t.ids.splice(t.carouselCursor,1),t.media.splice(t.carouselCursor,1),URL.revokeObjectURL(null===(a=t.files[t.carouselCursor])||void 0===a?void 0:a.url),t.files.splice(t.carouselCursor,1),0==t.media.length?(t.ids=[],t.media=[],t.carouselCursor=0):t.carouselCursor=0;case 6:return e.a(2)}},e,null,[[2,4]])}))()},mediaReorder:function(t){var e=this.carouselCursor,a=e+("prev"===t?-1:1);if(!(a<0||a>=this.media.length)){var s=f(this.files.splice(e,1),1)[0],i=f(this.media.splice(e,1),1)[0],o=f(this.ids.splice(e,1),1)[0];this.files.splice(a,0,s),this.media.splice(a,0,i),this.ids.splice(a,0,o),this.carouselCursor=a}},compose:function(){var t=this;return y(g().m(function e(){var a,s,i;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(a=t.composeState,0!=t.files.length){e.n=1;break}return e.a(2);case 1:if(!(t.composeText.length>t.config.uploader.max_caption_length)){e.n=2;break}return swal("Error","Caption is too long","error"),e.a(2);case 2:i=a,e.n="publish"===i?3:"delete"===i?10:11;break;case 3:return t.isPosting=!0,e.p=4,e.n=5,t.mediaUpload().finally(function(){return t.isPosting=!1});case 5:e.n=7;break;case 6:return e.p=6,e.v,t.isPosting=!1,e.a(2);case 7:if(!0!==t.composeSettings.media_descriptions){e.n=8;break}if(!t.media.filter(function(t){return!t.hasOwnProperty("alt")||t.alt.length<2}).length){e.n=8;break}return swal("Missing media descriptions","You have enabled mandatory media descriptions. Please add media descriptions under Advanced settings to proceed. For more information, please see the media settings page.","warning"),t.isPosting=!1,e.a(2);case 8:if(0!=t.media.length){e.n=9;break}return swal("Whoops!","You need to add media before you can save this!","warning"),e.a(2);case 9:return"Add optional caption..."==t.composeText&&(t.composeText=""),s={media:t.media,caption:t.composeText,visibility:t.visibility,cw:t.nsfw,comments_disabled:t.commentsDisabled,place:t.place,tagged:t.taggedUsernames,optimize_media:t.optimizeMedia,license:t.licenseId,video:t.video,spoiler_text:t.spoilerText},t.collectionsSelected.length&&(s.collections=t.collectionsSelected.map(function(e){return t.collections[e].id})),axios.post("/api/compose/v0/publish",s).then(function(t){"/i/web/compose"===location.pathname&&t.data&&t.data.length?location.href="/i/web/post/"+t.data.split("/").slice(-1)[0]:location.href=t.data}).catch(function(e){if(400===e.response.status)"Must contain a single photo or video or multiple photos."==e.response.data.error?swal("Wrong types of mixed media","The album must contain a single photo or video or multiple photos.","error"):t.defineErrorMessage(e);else t.defineErrorMessage(e)}).finally(function(){t.isPosting=!1}),e.a(2);case 10:return t.ids=[],t.media=[],t.carouselCursor=0,t.composeText="",t.composeTextLength=0,l("#composeModal").modal("hide"),e.a(2);case 11:return e.a(2)}},e,null,[[4,6]])}))()},composeTextPost:function(){var t=this.composeState;if(this.composeText.length>this.config.uploader.max_caption_length)swal("Error","Caption is too long","error");else switch(t){case"publish":var e={caption:this.composeText,visibility:this.visibility,cw:this.nsfw,comments_disabled:this.commentsDisabled,place:this.place,tagged:this.taggedUsernames};return void axios.post("/api/compose/v0/publish/text",e).then(function(t){var e=t.data;window.location.href=e}).catch(function(t){var e=t.response.data.message?t.response.data.message:"An unexpected error occured.";swal("Oops, something went wrong!",e,"error")});case"delete":return this.ids=[],this.media=[],this.carouselCursor=0,this.composeText="",this.composeTextLength=0,void l("#composeModal").modal("hide")}},closeModal:function(){l("#composeModal").modal("hide"),this.$emit("close")},goBack:function(){switch(this.pageTitle="",this.mode){case"photo":switch(this.page){case"addText":case"video-2":this.page=1;break;case"textOptions":this.page="addText";break;case"cropPhoto":case"editMedia":this.page=2;break;case"tagPeopleHelp":this.showTagCard();break;case"licensePicker":this.page=3;break;default:-1!=this.namedPages.indexOf(this.page)?this.page=3:this.page--}break;case"video":this.page,this.page="video-2";break;default:switch(this.page){case"addText":case"video-2":this.page=1;break;case"textOptions":this.page="addText";break;case"cropPhoto":case"editMedia":this.page=2;break;case"tagPeopleHelp":this.showTagCard();break;case"licensePicker":this.page=3;break;default:-1!=this.namedPages.indexOf(this.page)?this.page="text"==this.mode?"addText":3:"text"==this.mode||this.page--}}},nextPage:function(){var t=this;switch(this.pageTitle="",this.page){case 1:this.page=2;break;case"cropPhoto":var e=this.files[this.carouselCursor],a=this.$refs.cropper,s=u(u({},e.editState),{},{crop:a.getData()});this.editor?this.editor.setEditState(this.carouselCursor,s):a.getCroppedCanvas().toBlob(function(a){var s=t.media[t.carouselCursor].media;e.croppedBlob=a,URL.revokeObjectURL(s.preview_url),s.preview_url=URL.createObjectURL(a)}),this.page=2;break;case 2:case 3:this.page++}},rotate:function(){this.$refs.cropper.rotate(90)},changeAspect:function(t){this.cropper.aspectRatio=t,this.$refs.cropper.setAspectRatio(t)},showTagCard:function(){this.pageTitle="Tag People",this.page="tagPeople"},showTagHelpCard:function(){this.pageTitle="About Tag People",this.page="tagPeopleHelp"},showLocationCard:function(){this.pageTitle="Add Location",this.page="addLocation"},showAdvancedSettingsCard:function(){this.pageTitle="Advanced Settings",this.page="advancedSettings"},locationSearch:function(t){if(t.length<1)return[];return axios.get("/api/compose/v0/search/location",{params:{q:t}}).then(function(t){return t.data})},getResultValue:function(t){return t.name+", "+t.country},onSubmitLocation:function(t){switch(this.place=t,this.mode){case"photo":this.pageTitle="",this.page=3;break;case"video":this.pageTitle="Edit Video Details",this.page="video-2";break;case"text":this.pageTitle="New Text Post",this.page="addText"}},showVisibilityCard:function(){this.pageTitle="Post Visibility",this.page="visibility"},showAddToStoryCard:function(){this.pageTitle="Add to Story",this.page="addToStory"},showCropPhotoCard:function(){this.pageTitle="Edit Photo",this.page="cropPhoto"},toggleVisibility:function(t){switch(this.visibility=t,this.visibilityTag={public:"Public",private:"Followers Only",unlisted:"Unlisted"}[t],this.mode){case"photo":this.pageTitle="",this.page=3;break;case"video":this.pageTitle="Edit Video Details",this.page="video-2";break;case"text":this.pageTitle="New Text Post",this.page="addText"}},showMediaDescriptionsCard:function(){this.pageTitle="Media Descriptions",this.page="altText"},showAddToCollectionsCard:function(){this.pageTitle="Add to Collection",this.page="addToCollection"},showSchedulePostCard:function(){this.pageTitle="Schedule Post",this.page="schedulePost"},showEditMediaCard:function(){this.pageTitle="Edit Media",this.page="editMedia"},fetchCameraRollDrafts:function(){var t=this;axios.get("/api/pixelfed/local/drafts").then(function(e){t.cameraRollMedia=e.data})},tagSearch:function(t){if(t.length<1)return[];var e=this;return axios.get("/api/compose/v0/search/tag",{params:{q:t}}).then(function(t){if(t.data.length)return t.data.filter(function(t){return 0==e.taggedUsernames.filter(function(e){return e.id==t.id}).length})})},getTagResultValue:function(t){return t.name},onTagSubmitLocation:function(t){this.taggedUsernames.filter(function(e){return e.id==t.id}).length||(this.taggedUsernames.push(t),this.$refs.autocomplete.value="")},untagUsername:function(t){this.taggedUsernames.splice(t,1)},showTextOptions:function(){this.page="textOptions",this.pageTitle="Text Post Options"},showLicenseCard:function(){this.pageTitle="Select a License",this.page="licensePicker"},toggleLicense:function(t){var e=this;switch(this.licenseId=t.id,this.licenseId>10?this.licenseTitle=this.availableLicenses.filter(function(t){return t.id==e.licenseId}).map(function(t){return t.title})[0]:this.licenseTitle=null,this.mode){case"photo":this.pageTitle="",this.page=3;break;case"video":this.pageTitle="Edit Video Details",this.page="video-2";break;case"text":this.pageTitle="New Text Post",this.page="addText"}},newPoll:function(){this.page="poll"},savePollOption:function(){-1==this.pollOptions.indexOf(this.pollOptionModel)?(this.pollOptions.push(this.pollOptionModel),this.pollOptionModel=null):this.pollOptionModel=null},deletePollOption:function(t){this.pollOptions.splice(t,1)},postNewPoll:function(){var t=this;this.postingPoll=!0,axios.post("/api/compose/v0/poll",{caption:this.composeText,cw:!1,visibility:this.visibility,comments_disabled:!1,expiry:this.pollExpiry,pollOptions:this.pollOptions}).then(function(e){if(!e.data.hasOwnProperty("url"))return swal("Oops!","An error occured while attempting to create this poll. Please refresh the page and try again.","error"),void(t.postingPoll=!1);window.location.href=e.data.url}).catch(function(e){if(e.response.data.hasOwnProperty("error")&&"Duplicate detected."==e.response.data.error)return t.postingPoll=!1,void swal("Oops!","The poll you are trying to create is similar to an existing poll you created. Please make the poll question (caption) unique.","error");t.postingPoll=!1,swal("Oops!","An error occured while attempting to create this poll. Please refresh the page and try again.","error")})},filesize:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){return filesize(1024*t,{round:0})}),showCollectionCard:function(){this.pageTitle="Add to Collection(s)",this.page="addToCollection",this.collectionsLoaded||this.fetchCollections()},fetchCollections:function(){var t=this;axios.get("/api/local/profile/collections/".concat(this.profile.id)).then(function(e){t.collections=e.data,t.collectionsLoaded=!0,t.collectionsCanLoadMore=9==e.data.length,t.collectionsPage++})},toggleCollectionItem:function(t){if(this.collectionsSelected.includes(t))this.collectionsSelected=this.collectionsSelected.filter(function(e){return e!=t});else{if(7==this.collectionsSelected.length)return void swal("Oops!","You can only share to 5 collections.","info");this.collectionsSelected.push(t)}},clearSelectedCollections:function(){this.collectionsSelected=[],this.pageTitle="Compose",this.page=3},loadMoreCollections:function(){var t=this;this.collectionsCanLoadMore=!1,axios.get("/api/local/profile/collections/".concat(this.profile.id),{params:{page:this.collectionsPage}}).then(function(e){var a,s=t.collections.map(function(t){return t.id}),i=e.data.filter(function(t){return!s.includes(t.id)});i&&i.length&&((a=t.collections).push.apply(a,d(i)),t.collectionsPage++,t.collectionsCanLoadMore=!0)})}},watch:{files:function(t){this.editor.setSources(t.map(function(t){return t.file}))}}}},32463(t,e,a){a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"web-wrapper"},[t.isLoaded?e("div",{staticClass:"container-fluid mt-3"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-3 d-md-block"},[e("sidebar",{attrs:{user:t.profile}})],1),t._v(" "),e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-8 offset-md-1"},[e("compose-modal",{on:{close:t.closeModal}})],1)])])]),t._v(" "),e("drawer")],1):t._e()])},i=[]},69831(t,e,a){a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-drawer-component"},[e("div",{staticClass:"mobile-footer-spacer d-block d-sm-none mt-5"}),t._v(" "),e("div",{staticClass:"mobile-footer d-block d-sm-none fixed-bottom"},[e("div",{staticClass:"card card-body rounded-0 px-0 pt-2 pb-3 box-shadow",staticStyle:{"border-top":"1px solid var(--border-color)"}},[e("ul",{staticClass:"nav nav-pills nav-fill d-flex align-items-middle"},[e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link text-dark",attrs:{to:"/i/web"}},[e("p",[e("i",{staticClass:"far fa-home fa-lg"})]),t._v(" "),e("p",{staticClass:"nav-link-label"},[e("span",[t._v("Home")])])])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link text-dark",attrs:{to:"/i/web/timeline/local"}},[e("p",[e("i",{staticClass:"far fa-stream fa-lg"})]),t._v(" "),e("p",{staticClass:"nav-link-label"},[e("span",[t._v("Local")])])])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link text-dark",attrs:{to:"/i/web/compose"}},[e("p",[e("i",{staticClass:"far fa-plus-circle fa-lg"})]),t._v(" "),e("p",{staticClass:"nav-link-label"},[e("span",[t._v("New")])])])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link text-dark",attrs:{to:"/i/web/notifications"}},[e("p",[e("i",{staticClass:"far fa-bell fa-lg"})]),t._v(" "),e("p",{staticClass:"nav-link-label"},[e("span",[t._v("Alerts")])])])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link text-dark",attrs:{to:"/i/web/profile/"+t.user.id}},[e("p",[e("i",{staticClass:"far fa-user fa-lg"})]),t._v(" "),e("p",{staticClass:"nav-link-label"},[e("span",[t._v("Profile")])])])],1)])])])])},i=[]},67153(t,e,a){a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("b-modal",{ref:"avatarUpdateModal",attrs:{centered:"","hide-footer":"","header-class":"py-2","body-class":"p-0","title-class":"w-100 text-center pl-4 font-weight-bold","title-tag":"p",title:"Upload Avatar"}},[e("input",{ref:"avatarUpdateRef",staticClass:"d-none",attrs:{type:"file",accept:"image/jpg,image/png"},on:{change:function(e){return t.handleAvatarUpdate()}}}),t._v(" "),e("div",{staticClass:"d-flex align-items-center justify-content-center"},[0===t.avatarUpdateIndex?e("div",{staticClass:"py-5 user-select-none cursor-pointer",on:{drop:t.handleDrop,dragover:t.handleDrop,click:function(e){return t.avatarUpdateStep(0)}}},[e("p",{staticClass:"text-center primary"},[e("i",{staticClass:"fal fa-cloud-upload fa-3x"})]),t._v(" "),e("p",{staticClass:"text-center lead"},[t._v("Drag photo here or click here")]),t._v(" "),e("p",{staticClass:"text-center small text-muted mb-0"},[t._v("Must be a "),e("strong",[t._v("png")]),t._v(" or "),e("strong",[t._v("jpg")]),t._v(" image up to 2MB")])]):1===t.avatarUpdateIndex?e("div",{staticClass:"w-100 p-5"},[e("div",{staticClass:"d-md-flex justify-content-between align-items-center"},[e("div",{staticClass:"text-center mb-4"},[e("p",{staticClass:"small font-weight-bold",staticStyle:{opacity:"0.7"}},[t._v("Current")]),t._v(" "),e("img",{staticClass:"shadow",staticStyle:{width:"150px",height:"150px","object-fit":"cover","border-radius":"18px",opacity:"0.7"},attrs:{src:t.user.avatar}})]),t._v(" "),e("div",{staticClass:"text-center mb-4"},[e("p",{staticClass:"font-weight-bold"},[t._v("New")]),t._v(" "),e("img",{staticClass:"shadow",staticStyle:{width:"220px",height:"220px","object-fit":"cover","border-radius":"18px"},attrs:{src:t.avatarUpdatePreview}})])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("button",{staticClass:"btn btn-light font-weight-bold btn-block mr-3",on:{click:function(e){return t.avatarUpdateClear()}}},[t._v("Clear")]),t._v(" "),e("button",{staticClass:"btn btn-primary primary font-weight-bold btn-block mt-0",on:{click:function(e){return t.confirmUpload()}}},[t._v("Upload")])])]):t._e()])])},i=[]},30916(t,e,a){a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-component sticky-top d-none d-md-block"},[e("div",{staticClass:"card shadow-sm mb-3",staticStyle:{"border-radius":"15px"}},[e("div",{staticClass:"card-body p-2"},[e("div",{staticClass:"media user-card user-select-none"},[e("div",{staticStyle:{position:"relative"}},[e("img",{staticClass:"avatar shadow cursor-pointer",attrs:{src:t.user.avatar,draggable:"false",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"},on:{click:function(e){return t.gotoMyProfile()}}}),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm avatar-update-btn",on:{click:function(e){return t.updateAvatar()}}},[e("span",{staticClass:"avatar-update-btn-icon"})])]),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"display-name",domProps:{innerHTML:t._s(t.getDisplayName())}}),t._v(" "),e("p",{staticClass:"username primary"},[t._v("@"+t._s(t.user.username))]),t._v(" "),e("p",{staticClass:"stats"},[e("span",{staticClass:"stats-following"},[e("span",{staticClass:"following-count"},[t._v(t._s(t.formatCount(t.user.following_count)))]),t._v(" Following\n\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"stats-followers"},[e("span",{staticClass:"followers-count"},[t._v(t._s(t.formatCount(t.user.followers_count)))]),t._v(" Followers\n\t\t\t\t\t\t\t")])])])])])]),t._v(" "),e("div",{staticClass:"btn-group btn-group-lg btn-block mb-4"},[e("router-link",{staticClass:"btn btn-primary btn-block font-weight-bold",attrs:{to:"/i/web/compose"}},[e("i",{staticClass:"fal fa-arrow-circle-up mr-1"}),t._v(" "+t._s(t.$t("navmenu.compose"))+" Post\n\t\t\t")]),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"dropdown-menu dropdown-menu-right"},[e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"/i/collections/create"}},[t._v("Create Collection")]),t._v(" "),t.hasStories?e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"/i/stories/new"}},[t._v(t._s(t.$t("navmenu.createStory")))]):t._e(),t._v(" "),e("div",{staticClass:"dropdown-divider"}),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"/settings/home"}},[t._v("Account Settings")])])],1),t._v(" "),e("div",{staticClass:"sidebar-sticky shadow-sm"},[e("ul",{staticClass:"nav flex-column"},[e("li",{staticClass:"nav-item"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("a",{staticClass:"nav-link text-center",class:["/i/web"==t.$route.path?"router-link-exact-active active":""],attrs:{href:"/i/web"},on:{click:function(e){return e.preventDefault(),t.goToFeed("home")}}},[t._m(1),t._v(" "),e("div",{staticClass:"small"},[t._v(t._s(t.$t("navmenu.homeFeed")))])]),t._v(" "),t.hasLocalTimeline?e("a",{staticClass:"nav-link text-center",class:["/i/web/timeline/local"==t.$route.path?"router-link-exact-active active":""],attrs:{href:"/i/web/timeline/local"},on:{click:function(e){return e.preventDefault(),t.goToFeed("local")}}},[t._m(2),t._v(" "),e("div",{staticClass:"small"},[t._v(t._s(t.$t("navmenu.localFeed")))])]):t._e(),t._v(" "),t.hasNetworkTimeline?e("a",{staticClass:"nav-link text-center",class:["/i/web/timeline/global"==t.$route.path?"router-link-exact-active active":""],attrs:{href:"/i/web/timeline/global"},on:{click:function(e){return e.preventDefault(),t.goToFeed("global")}}},[t._m(3),t._v(" "),e("div",{staticClass:"small"},[t._v(t._s(t.$t("navmenu.globalFeed")))])]):t._e()]),t._v(" "),e("hr",{staticClass:"mb-0",staticStyle:{"margin-top":"-5px",opacity:"0.4"}})]),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link",attrs:{to:"/i/web/discover"}},[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-compass"})]),t._v("\n "+t._s(t.$t("navmenu.discover"))+"\n ")])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link d-flex justify-content-between align-items-center",attrs:{to:"/i/web/direct"}},[e("span",[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-envelope"})]),t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("navmenu.directMessages"))+"\n\t\t\t\t\t\t")])])],1),t._v(" "),t.hasGroups?e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link",attrs:{to:"/groups/feed"}},[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-layer-group"})]),t._v("\n "+t._s(t.$t("navmenu.groups"))+"\n ")])],1):t._e(),t._v(" "),t.hasLiveStreams?e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link d-flex justify-content-between align-items-center",attrs:{to:"/i/web/livestreams"}},[e("span",[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-record-vinyl"})]),t._v("\n\t\t\t\t\t\t\tLivestreams\n\t\t\t\t\t\t")])])],1):t._e(),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link d-flex justify-content-between align-items-center",attrs:{to:"/i/web/notifications"}},[e("span",[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-bell"})]),t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("navmenu.notifications"))+"\n\t\t\t\t\t\t")])])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("hr",{staticClass:"mt-n1",staticStyle:{opacity:"0.4","margin-bottom":"0"}}),t._v(" "),e("router-link",{staticClass:"nav-link",attrs:{to:"/i/web/profile/"+t.user.id}},[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-user"})]),t._v("\n "+t._s(t.$t("navmenu.profile"))+"\n ")])],1),t._v(" "),t.user.is_admin?e("li",{staticClass:"nav-item"},[e("hr",{staticClass:"mt-n1",staticStyle:{opacity:"0.4","margin-bottom":"0"}}),t._v(" "),e("a",{staticClass:"nav-link",attrs:{href:"/i/admin/dashboard"}},[t._m(4),t._v("\n "+t._s(t.$t("navmenu.admin"))+"\n ")])]):t._e(),t._v(" "),e("li",{staticClass:"nav-item"},[e("hr",{staticClass:"mt-n1",staticStyle:{opacity:"0.4","margin-bottom":"0"}}),t._v(" "),e("a",{staticClass:"nav-link",attrs:{href:"/?force_old_ui=1"}},[t._m(5),t._v("\n "+t._s(t.$t("navmenu.backToPreviousDesign"))+"\n ")])])])]),t._v(" "),e("div",{staticClass:"sidebar-attribution pr-3 d-flex flex-wrap justify-content-between align-items-center",staticStyle:{gap:"5px"}},[e("router-link",{attrs:{to:"/i/web/language"}},[e("i",{staticClass:"fal fa-language fa-2x",attrs:{alt:"Select a language"}})]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/site/help"}},[t._v(t._s(t.$t("navmenu.help")))]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/site/privacy"}},[t._v(t._s(t.$t("navmenu.privacy")))]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/site/terms"}},[t._v(t._s(t.$t("navmenu.terms")))]),t._v(" "),t.showLegalNoticeLink?e("a",{staticClass:"font-weight-bold",attrs:{href:"/site/legal-notice"}},[t._v(t._s(t.$t("navmenu.legalNotice")))]):t._e(),t._v(" "),e("a",{staticClass:"font-weight-bold powered-by",attrs:{href:"https://pixelfed.org"}},[t._v("Powered by Pixelfed")])],1),t._v(" "),e("update-avatar",{ref:"avatarUpdate",attrs:{user:t.user}})],1)},i=[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-outline-primary dropdown-toggle dropdown-toggle-split",attrs:{type:"button","data-toggle":"dropdown","aria-expanded":"false"}},[t("span",{staticClass:"sr-only"},[this._v("Toggle Dropdown")])])},function(){var t=this._self._c;return t("div",{staticClass:"icon text-lighter"},[t("i",{staticClass:"far fa-home fa-lg"})])},function(){var t=this._self._c;return t("div",{staticClass:"icon text-lighter"},[t("i",{staticClass:"fas fa-stream fa-lg"})])},function(){var t=this._self._c;return t("div",{staticClass:"icon text-lighter"},[t("i",{staticClass:"far fa-globe fa-lg"})])},function(){var t=this._self._c;return t("span",{staticClass:"icon text-lighter"},[t("i",{staticClass:"far fa-tools"})])},function(){var t=this._self._c;return t("span",{staticClass:"icon text-lighter"},[t("i",{staticClass:"fas fa-chevron-left"})])}]},18999(t,e,a){a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"compose-modal-component"},[e("input",{staticClass:"w-100 h-100 d-none file-input",attrs:{type:"file",id:"pf-dz",name:"media",multiple:"",accept:t.config.uploader.media_types},on:{input:t.onInputFile}}),t._v(" "),e("canvas",{staticClass:"d-none",attrs:{id:"pr_canvas"}}),t._v(" "),e("img",{staticClass:"d-none",attrs:{id:"pr_img"}}),t._v(" "),e("div",{staticClass:"timeline"},[t.uploading?e("div",[e("div",{staticClass:"card status-card card-md-rounded-0 w-100 h-100 bg-light py-3",staticStyle:{"border-bottom":"1px solid #f1f1f1"}},[e("div",{staticClass:"p-5 mt-2"},[e("b-progress",{attrs:{value:t.uploadProgress,max:100,striped:"",animated:!0}}),t._v(" "),e("p",{staticClass:"text-center mb-0 font-weight-bold"},[t._v("Uploading ... ("+t._s(t.uploadProgress)+"%)")])],1)])]):"cameraRoll"==t.page?e("div",[e("div",{staticClass:"card status-card card-md-rounded-0",staticStyle:{display:"flex"}},[t._m(0),t._v(" "),e("div",{staticClass:"h-100 card-body p-0 border-top",staticStyle:{width:"100%","min-height":"400px"}},[t.cameraRollMedia.length>0?e("div",{staticClass:"row p-0 m-0"},t._l(t.cameraRollMedia,function(t,a){return e("div",{class:[0==a?"col-12 p-0":"col-3 p-0"]},[e("div",{staticClass:"card info-overlay p-0 rounded-0 shadow-none border"},[e("div",{staticClass:"square"},[e("img",{staticClass:"square-content",attrs:{src:t.preview_url}})])])])}),0):e("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center"},[e("span",{staticClass:"w-100 h-100"},[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"}},[t._v("Upload")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return t.fetchCameraRollDrafts()}}},[t._v("Load Camera Roll")])])])])])]):"poll"==t.page?e("div",[e("div",{staticClass:"card status-card card-md-rounded-0",staticStyle:{display:"flex"}},[e("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between bg-white"},[t._m(1),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("\n New Poll\n ")]),t._v(" "),t.postingPoll?e("span",[t._m(2)]):!t.postingPoll&&t.pollOptions.length>1&&t.composeText.length?e("button",{staticClass:"btn btn-primary btn-sm font-weight-bold",on:{click:t.postNewPoll}},[e("span",[t._v("Create Poll")])]):e("span",{staticClass:"font-weight-bold text-lighter"},[t._v("\n Create Poll\n ")])]),t._v(" "),e("div",{staticClass:"h-100 card-body p-0 border-top",staticStyle:{width:"100%","min-height":"400px"}},[e("div",{staticClass:"border-bottom mt-2"},[e("div",{staticClass:"media px-3"},[e("img",{staticClass:"rounded-circle",attrs:{src:t.profile.avatar,width:"42px",height:"42px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small d-none"},[t._v("Caption")]),t._v(" "),e("vue-tribute",{attrs:{options:t.tributeSettings}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control border-0 rounded-0 no-focus",attrs:{rows:"3",placeholder:"Write a poll question..."},domProps:{value:t.composeText},on:{keyup:function(e){t.composeTextLength=t.composeText.length},input:function(e){e.target.composing||(t.composeText=e.target.value)}}})]),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(t.composeTextLength)+"/"+t._s(t.config.uploader.max_caption_length))])],1)])])]),t._v(" "),e("div",{staticClass:"p-3"},[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n Poll Options\n ")]),t._v(" "),t.pollOptions.length<4?e("div",{staticClass:"form-group mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptionModel,expression:"pollOptionModel"}],staticClass:"form-control rounded-pill",attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptionModel},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.savePollOption.apply(null,arguments)},input:function(e){e.target.composing||(t.pollOptionModel=e.target.value)}}})]):t._e(),t._v(" "),t._l(t.pollOptions,function(a,s){return e("div",{staticClass:"form-group mb-4 d-flex align-items-center",staticStyle:{"max-width":"400px",position:"relative"}},[e("span",{staticClass:"font-weight-bold mr-2",staticStyle:{position:"absolute",left:"10px"}},[t._v(t._s(s+1)+".")]),t._v(" "),t.pollOptions[s].length<50?e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[s],expression:"pollOptions[index]"}],staticClass:"form-control rounded-pill",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptions[s]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,s,e.target.value)}}}):e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[s],expression:"pollOptions[index]"}],staticClass:"form-control",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{placeholder:"Add a poll option, press enter to save",rows:"3"},domProps:{value:t.pollOptions[s]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,s,e.target.value)}}}),t._v(" "),e("button",{staticClass:"btn btn-danger btn-sm rounded-pill font-weight-bold",staticStyle:{position:"absolute",right:"5px"},on:{click:function(e){return t.deletePollOption(s)}}},[e("i",{staticClass:"fas fa-trash"}),t._v(" Delete\n ")])])}),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n Poll Expiry\n ")]),t._v(" "),e("div",{staticClass:"form-group"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.pollExpiry,expression:"pollExpiry"}],staticClass:"form-control rounded-pill",staticStyle:{width:"200px"},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.pollExpiry=e.target.multiple?a:a[0]}}},[e("option",{attrs:{value:"60"}},[t._v("1 hour")]),t._v(" "),e("option",{attrs:{value:"360"}},[t._v("6 hours")]),t._v(" "),e("option",{attrs:{value:"1440",selected:""}},[t._v("24 hours")]),t._v(" "),e("option",{attrs:{value:"10080"}},[t._v("7 days")])])])]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n Poll Visibility\n ")]),t._v(" "),e("div",{staticClass:"form-group"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.visibility,expression:"visibility"}],staticClass:"form-control rounded-pill",staticStyle:{"max-width":"200px"},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.visibility=e.target.multiple?a:a[0]}}},[e("option",{attrs:{value:"public"}},[t._v("Public")]),t._v(" "),e("option",{attrs:{value:"private"}},[t._v("Followers Only")])])])])])],2)])])]):e("div",[e("div",{staticClass:"card status-card card-md-rounded-0 w-100 h-100",staticStyle:{display:"flex"}},[e("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between bg-white"},[e("div",[1==t.page?e("a",{staticClass:"font-weight-bold text-decoration-none text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.closeModal()}}},[e("i",{staticClass:"fas fa-times fa-lg"}),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.pageTitle))])]):2==t.page?e("span",[t.config.uploader.album_limit>t.media.length?e("button",{staticClass:"btn btn-outline-primary btn-sm font-weight-bold",attrs:{id:"cm-add-media-btn"},on:{click:function(e){return e.preventDefault(),t.addMedia.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-plus"})]):e("button",{staticClass:"btn btn-outline-secondary btn-sm font-weight-bold",attrs:{disabled:""}},[e("i",{staticClass:"fas fa-plus"})]),t._v(" "),e("b-tooltip",{attrs:{target:"cm-add-media-btn",triggers:"hover"}},[t._v("\n Upload another photo or video\n ")])],1):3==t.page?e("span",[e("a",{staticClass:"text-lighter text-decoration-none mr-3 d-flex align-items-center",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goBack()}}},[e("i",{staticClass:"fas fa-long-arrow-alt-left fa-lg mr-2"}),t._v(" "),e("span",{staticClass:"btn btn-outline-secondary btn-sm px-2 py-0 disabled",attrs:{disabled:""}},[t._v(t._s(t.media.length))])]),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.pageTitle))])]):e("span",[e("a",{staticClass:"text-lighter text-decoration-none mr-3",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goBack()}}},[e("i",{staticClass:"fas fa-long-arrow-alt-left fa-lg"})])]),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.pageTitle))])]),t._v(" "),2==t.page?e("div",[1==t.media.length?e("a",{staticClass:"text-center text-dark",attrs:{href:"#",title:"Crop & Resize",id:"cm-crop-btn"},on:{click:function(e){return e.preventDefault(),t.showCropPhotoCard.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-crop-alt fa-lg"})]):t._e(),t._v(" "),e("b-tooltip",{attrs:{target:"cm-crop-btn",triggers:"hover"}},[t._v("\n Crop & Resize\n ")])],1):t._e(),t._v(" "),e("div",[t.pageLoading?e("span",[t._m(3)]):e("span",[!t.pageLoading&&t.page>1&&t.page<=2||1==t.page&&0!=t.ids.length||"cropPhoto"==t.page?e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.nextPage.apply(null,arguments)}}},[t._v("Next")]):t._e(),t._v(" "),t.pageLoading||3!=t.page?t._e():[t.isPosting?e("b-spinner",{attrs:{small:""}}):e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.compose()}}},[t._v("Post")])],t._v(" "),t.pageLoading||"addText"!=t.page?t._e():e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.composeTextPost()}}},[t._v("Post")]),t._v(" "),t.pageLoading||"video-2"!=t.page?t._e():e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.compose()}}},[t._v("Post")])],2)])]),t._v(" "),e("div",{staticClass:"card-body p-0 border-top"},["licensePicker"==t.page?e("div",{staticClass:"w-100 h-100",staticStyle:{"min-height":"280px"}},[e("div",{staticClass:"list-group list-group-flush"},t._l(t.availableLicenses,function(a,s){return e("div",{staticClass:"list-group-item cursor-pointer",class:{"text-primary":t.licenseId===a.id,"font-weight-bold":t.licenseId===a.id},on:{click:function(e){return t.toggleLicense(a)}}},[t._v("\n "+t._s(a.name)+"\n ")])}),0)]):"textOptions"==t.page?e("div",{staticClass:"w-100 h-100",staticStyle:{"min-height":"280px"}}):"addText"==t.page?e("div",{staticClass:"w-100 h-100",staticStyle:{"min-height":"280px"}},[e("div",{staticClass:"mt-2"},[e("div",{staticClass:"media px-3"},[e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small d-none"},[t._v("Body")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control border-0 rounded-0 no-focus",staticStyle:{"font-size":"18px",resize:"none"},attrs:{rows:"7",placeholder:"What's happening?"},domProps:{value:t.composeText},on:{keyup:function(e){t.composeTextLength=t.composeText.length},input:function(e){e.target.composing||(t.composeText=e.target.value)}}}),t._v(" "),e("div",{staticClass:"border-bottom"}),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0 font-weight-bold"},[t._v(t._s(t.composeTextLength)+"/"+t._s(t.config.uploader.max_caption_length))]),t._v(" "),e("p",{staticClass:"mb-0 mt-2"},[e("a",{staticClass:"btn btn-primary rounded-pill mr-2",staticStyle:{height:"37px"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showTextOptions()}}},[e("i",{staticClass:"fas fa-palette px-3 text-white"})]),t._v(" "),e("a",{staticClass:"btn rounded-pill mx-3 d-inline-flex align-items-center",class:[t.nsfw?"btn-danger":"btn-outline-lighter"],staticStyle:{height:"37px"},attrs:{href:"#",title:"Mark as sensitive/not safe for work"},on:{click:function(e){e.preventDefault(),t.nsfw=!t.nsfw}}},[e("i",{staticClass:"far fa-flag px-3"}),t._v(" "),e("span",{staticClass:"text-muted small font-weight-bold"})]),t._v(" "),e("a",{staticClass:"btn btn-outline-lighter rounded-pill d-inline-flex align-items-center",staticStyle:{height:"37px"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[e("i",{staticClass:"fas fa-eye mr-2"}),t._v(" "),e("span",{staticClass:"text-muted small font-weight-bold"},[t._v(t._s(t.visibilityTag))])])])])])])])]):1==t.page?e("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center",staticStyle:{"min-height":"400px"}},[e("div",{staticClass:"text-center"},[0==t.media.length?e("div",{staticClass:"card my-md-3 shadow-none border compose-action text-decoration-none text-dark"},[e("div",{staticClass:"card-body py-2",on:{click:function(e){return e.preventDefault(),t.addMedia.apply(null,arguments)}}},[e("div",{staticClass:"media"},[t._m(4),t._v(" "),e("div",{staticClass:"media-body text-left"},[t._m(5),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Share up to "+t._s(t.config.uploader.album_limit)+" photos or videos")]),t._v(" "),e("p",{staticClass:"mb-0 text-muted small"},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.config.uploader.media_types.split(",").map(function(t){return t.split("/")[1]}).join(", ")))]),t._v(" allowed up to "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.filesize(t.config.uploader.max_photo_size)))])])])])])]):t._e(),t._v(" "),t._e(),t._v(" "),1==t.config.features.stories?e("a",{staticClass:"card my-md-3 shadow-none border compose-action text-decoration-none text-dark",attrs:{href:"/i/stories/new"}},[t._m(7)]):t._e(),t._v(" "),t._e(),t._v(" "),t._m(9),t._v(" "),t._m(10)])]):"cropPhoto"==t.page?e("div",{staticClass:"w-100 h-100"},[t.media.length>0?e("div",[e("vue-cropper",{ref:"cropper",attrs:{relativeZoom:t.cropper.zoom,aspectRatio:t.cropper.aspectRatio,viewMode:t.cropper.viewMode,zoomable:t.cropper.zoomable,rotatable:!0,src:t.media[t.carouselCursor].url}})],1):t._e()]):2==t.page?e("div",{staticClass:"w-100 h-100"},[1==t.media.length?e("div",["image"===t.media[0].type?[e("media-editor-preview",{staticClass:"media-editor",attrs:{editor:t.editor,sourceIndex:0}}),t._v(" "),e("hr"),t._v(" "),e("media-editor-filter-menu",{staticClass:"media-editor",attrs:{editor:t.editor,sourceIndex:0}})]:e("img",{staticClass:"d-block img-fluid w-100",attrs:{src:"/storage/no-preview.png",alt:t.media[t.carouselCursor].description,title:t.media[t.carouselCursor].description}})],2):t.media.length>1?e("div",{staticClass:"d-flex-inline px-2 pt-2"},[e("ul",{staticClass:"nav media-drawer-filters text-center pb-3"},[e("li",{staticClass:"nav-item mx-md-4"},[t._v("ย ")]),t._v(" "),t._l(t.media,function(a,s){return e("li",{key:s+(t.ids[s]||a.url||""),staticClass:"nav-item mx-md-4"},[e("div",{staticClass:"nav-link",staticStyle:{display:"block",width:"300px",height:"300px"},on:{click:function(e){t.carouselCursor=s}}},[e("div",{class:[a.filter_class?a.filter_class:""],staticStyle:{width:"100%",height:"100%",display:"block"}},["image"===a.type?e("media-editor-preview",{staticClass:"media-editor",class:"rounded "+[s==t.carouselCursor?" border border-primary shadow":""],staticStyle:{width:"100%",height:"100%"},attrs:{editor:t.editor,sourceIndex:s}}):e("img",{staticClass:"d-block img-fluid w-100",attrs:{src:"/storage/no-preview.png",alt:t.media[t.carouselCursor].description,title:t.media[t.carouselCursor].description}})],1)]),t._v(" "),s==t.carouselCursor?e("div",{staticClass:"text-center mb-0 small text-lighter font-weight-bold pt-2"},[e("button",{staticClass:"btn btn-link",on:{click:function(e){return t.mediaReorder("prev")}}},[e("i",{staticClass:"far fa-chevron-circle-left"})]),t._v(" "),e("span",{staticClass:"cursor-pointer",on:{click:function(e){return e.preventDefault(),t.showCropPhotoCard.apply(null,arguments)}}},[t._v("Crop")]),t._v(" "),e("span",{staticClass:"cursor-pointer px-3",on:{click:function(e){return e.preventDefault(),t.showEditMediaCard()}}},[t._v("Edit")]),t._v(" "),e("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.deleteMedia()}}},[t._v("Delete")]),t._v(" "),e("button",{staticClass:"btn btn-link",on:{click:function(e){return t.mediaReorder("next")}}},[e("i",{staticClass:"far fa-chevron-circle-right"})])]):t._e()])}),t._v(" "),e("li",{staticClass:"nav-item mx-md-4"},[t._v("ย ")])],2),t._v(" "),e("hr"),t._v(" "),"image"==t.media[t.carouselCursor].type?e("div",{staticClass:"align-items-center px-2 pt-2"},[e("media-editor-filter-menu",{staticClass:"media-editor",attrs:{editor:t.editor,sourceIndex:t.carouselCursor}})],1):t._e()]):e("div",[e("p",{staticClass:"mb-0 p-5 text-center font-weight-bold"},[t._v("An error occured, please refresh the page.")])])]):3==t.page?e("div",{staticClass:"w-100 h-100"},[e("div",{staticClass:"border-bottom mt-2"},[e("div",{staticClass:"media px-3"},[e("img",{staticClass:"mr-2",attrs:{src:t.media[0].preview_url,width:"42px",height:"42px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small d-none"},[t._v("Caption")]),t._v(" "),e("vue-tribute",{attrs:{options:t.tributeSettings}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control border-0 rounded-0 no-focus",attrs:{rows:"3",placeholder:"Write a caption..."},domProps:{value:t.composeText},on:{keyup:function(e){t.composeTextLength=t.composeText.length},input:function(e){e.target.composing||(t.composeText=e.target.value)}}})]),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(t.composeTextLength)+"/"+t._s(t.config.uploader.max_caption_length))])],1)])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer d-flex justify-content-between",on:{click:function(e){return t.showMediaDescriptionsCard()}}},[e("span",[t._v("Alt Text")]),t._v(" "),e("span",[t.media&&t.media.filter(function(t){return t.alt}).length==t.media.length?e("i",{staticClass:"fas fa-check-circle fa-lg text-success"}):e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])]),t._v(" "),e("div",{staticClass:"border-bottom px-4 mb-0 py-2"},[e("div",{staticClass:"d-flex justify-content-between"},[t._m(11),t._v(" "),e("div",[e("div",{staticClass:"custom-control custom-switch",staticStyle:{"z-index":"9999"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.nsfw,expression:"nsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"asnsfw"},domProps:{checked:Array.isArray(t.nsfw)?t._i(t.nsfw,null)>-1:t.nsfw},on:{change:function(e){var a=t.nsfw,s=e.target,i=!!s.checked;if(Array.isArray(a)){var o=t._i(a,null);s.checked?o<0&&(t.nsfw=a.concat([null])):o>-1&&(t.nsfw=a.slice(0,o).concat(a.slice(o+1)))}else t.nsfw=i}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"asnsfw"}})])])]),t._v(" "),t.nsfw?e("div",[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.spoilerText,expression:"spoilerText"}],staticClass:"form-control mt-3",attrs:{placeholder:"Add an optional content warning or spoiler text",maxlength:"140"},domProps:{value:t.spoilerText},on:{input:function(e){e.target.composing||(t.spoilerText=e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(t.spoilerTextLength)+"/140")])]):t._e()]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showTagCard()}}},[t._v("Tag people")])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showCollectionCard()}}},[t._m(12),t._v(" "),e("span",{staticClass:"float-right"},[t.collectionsSelected.length?e("span",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px 5px","text-transform":"uppercase"},attrs:{href:"#",disabled:""}},[t._v("\n "+t._s(t.collectionsSelected.length)+"\n ")]):t._e(),t._v(" "),t._m(13)])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showLicenseCard()}}},[e("span",[t._v("Add license")]),t._v(" "),e("span",{staticClass:"float-right"},[t.licenseTitle?e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#",disabled:""},on:{click:function(e){return e.preventDefault(),t.showLicenseCard()}}},[t._v(t._s(t.licenseTitle))]):t._e(),t._v(" "),e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showLicenseCard()}}},[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[t.place?e("p",{staticClass:"px-4 mb-0 py-2"},[e("span",{staticClass:"text-lighter"},[t._v("Location:")]),t._v(" "+t._s(t.place.name)+", "+t._s(t.place.country)+"\n "),e("span",{staticClass:"float-right"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-2",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showLocationCard()}}},[t._v("Edit")]),t._v(" "),e("a",{staticClass:"btn btn-outline-secondary btn-sm small",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.place=!1}}},[t._v("Remove")])])]):e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showLocationCard()}}},[t._v("Add location")])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2"},[e("span",[t._v("Audience")]),t._v(" "),e("span",{staticClass:"float-right"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#",disabled:""},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[t._v(t._s(t.visibilityTag))]),t._v(" "),e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])])]),t._v(" "),e("div",{staticStyle:{"min-height":"200px"}},[e("p",{staticClass:"px-4 mb-0 py-2 small font-weight-bold text-muted cursor-pointer",on:{click:function(e){return t.showAdvancedSettingsCard()}}},[t._v("Advanced settings")])])]):"tagPeople"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("autocomplete",{directives:[{name:"show",rawName:"v-show",value:t.taggedUsernames.length<10,expression:"taggedUsernames.length < 10"}],ref:"autocomplete",attrs:{search:t.tagSearch,placeholder:"@pixelfed","aria-label":"Search usernames","get-result-value":t.getTagResultValue},on:{submit:t.onTagSubmitLocation}}),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:t.taggedUsernames.length<10,expression:"taggedUsernames.length < 10"}],staticClass:"font-weight-bold text-muted small"},[t._v("You can tag "+t._s(10-t.taggedUsernames.length)+" more "+t._s(9==t.taggedUsernames.length?"person":"people")+"!")]),t._v(" "),e("p",{staticClass:"font-weight-bold text-center mt-3"},[t._v("Tagged People")]),t._v(" "),e("div",{staticClass:"list-group"},[t._l(t.taggedUsernames,function(a,s){return e("div",{staticClass:"list-group-item d-flex justify-content-between"},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-2 rounded-circle border",attrs:{src:a.avatar,width:"24px",height:"24px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(a.name))])])]),t._v(" "),e("div",{staticClass:"custom-control custom-switch"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.privacy,expression:"tag.privacy"}],staticClass:"custom-control-input disabled",attrs:{type:"checkbox",id:"cci-tagged-privacy-switch"+s,disabled:""},domProps:{checked:Array.isArray(a.privacy)?t._i(a.privacy,null)>-1:a.privacy},on:{change:function(e){var s=a.privacy,i=e.target,o=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&t.$set(a,"privacy",s.concat([null])):n>-1&&t.$set(a,"privacy",s.slice(0,n).concat(s.slice(n+1)))}else t.$set(a,"privacy",o)}}}),t._v(" "),e("label",{staticClass:"custom-control-label font-weight-bold text-lighter",attrs:{for:"cci-tagged-privacy-switch"+s}},[t._v(t._s(a.privacy?"Public":"Private"))]),t._v(" "),e("a",{staticClass:"ml-3",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.untagUsername(s)}}},[e("i",{staticClass:"fas fa-times text-muted"})])])])}),t._v(" "),0==t.taggedUsernames.length?e("div",{staticClass:"list-group-item p-3"},[e("p",{staticClass:"text-center mb-0 font-weight-bold text-lighter"},[t._v("Search usernames to tag.")])]):t._e()],2),t._v(" "),e("p",{staticClass:"font-weight-bold text-center small text-muted pt-3 mb-0"},[t._v("When you tag someone, they are sent a notification."),e("br"),t._v("For more information on tagging, "),e("a",{staticClass:"text-primary",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showTagHelpCard()}}},[t._v("click here")]),t._v(".")])],1):"tagPeopleHelp"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("p",{staticClass:"mb-0 text-center py-3 px-2 lead"},[t._v("Tagging someone is like mentioning them, with the option to make it private between you.")]),t._v(" "),e("p",{staticClass:"mb-3 py-3 px-2 font-weight-lighter"},[t._v("\n You can choose to tag someone in public or private mode. Public mode will allow others to see who you tagged in the post and private mode tagged users will not be shown to others.\n ")])]):"addLocation"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("p",{staticClass:"mb-0"},[t._v("Add Location")]),t._v(" "),e("autocomplete",{attrs:{search:t.locationSearch,placeholder:"Search locations ...","aria-label":"Search locations ...","get-result-value":t.getResultValue},on:{submit:t.onSubmitLocation}})],1):"advancedSettings"==t.page?e("div",{staticClass:"w-100 h-100"},[e("div",{staticClass:"list-group list-group-flush"},[e("div",{staticClass:"list-group-item d-flex justify-content-between"},[t._m(14),t._v(" "),e("div",[e("div",{staticClass:"custom-control custom-switch",staticStyle:{"z-index":"9999"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.commentsDisabled,expression:"commentsDisabled"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"asdisablecomments"},domProps:{checked:Array.isArray(t.commentsDisabled)?t._i(t.commentsDisabled,null)>-1:t.commentsDisabled},on:{change:function(e){var a=t.commentsDisabled,s=e.target,i=!!s.checked;if(Array.isArray(a)){var o=t._i(a,null);s.checked?o<0&&(t.commentsDisabled=a.concat([null])):o>-1&&(t.commentsDisabled=a.slice(0,o).concat(a.slice(o+1)))}else t.commentsDisabled=i}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"asdisablecomments"}})])])]),t._v(" "),e("a",{staticClass:"list-group-item",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showMediaDescriptionsCard()}}},[t._m(15)])])]):"visibility"==t.page?e("div",{staticClass:"w-100 h-100"},[e("div",{staticClass:"list-group list-group-flush"},[t.profile.locked?t._e():e("div",{staticClass:"list-group-item lead cursor-pointer",class:{"text-primary":"public"==t.visibility},on:{click:function(e){return t.toggleVisibility("public")}}},[t._v("\n Public\n ")]),t._v(" "),t.profile.locked?t._e():e("div",{staticClass:"list-group-item lead cursor-pointer",class:{"text-primary":"unlisted"==t.visibility},on:{click:function(e){return t.toggleVisibility("unlisted")}}},[t._v("\n Unlisted\n ")]),t._v(" "),e("div",{staticClass:"list-group-item lead cursor-pointer",class:{"text-primary":"private"==t.visibility},on:{click:function(e){return t.toggleVisibility("private")}}},[t._v("\n Followers Only\n ")])])]):"altText"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[t._l(t.media,function(a,s){return e("div",[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3",attrs:{src:a.preview_url,width:"50px",height:"50px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:a.alt,expression:"m.alt"}],staticClass:"form-control",attrs:{placeholder:"Add a media description here...",maxlength:t.maxAltTextLength,rows:"4"},domProps:{value:a.alt},on:{input:function(e){e.target.composing||t.$set(a,"alt",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(a.alt?a.alt.length:0)+"/"+t._s(t.maxAltTextLength))])])]),t._v(" "),e("hr")])}),t._v(" "),e("p",{staticClass:"d-flex justify-content-between mb-0"},[e("button",{staticClass:"btn btn-link text-muted font-weight-bold text-decoration-none",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Save")])])],2):"addToCollection"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[t.collectionsLoaded&&t.collections.length?e("div",{staticClass:"list-group mb-3 collections-list-group"},[t._l(t.collections,function(a,s){return e("div",{staticClass:"list-group-item cursor-pointer compose-action border",class:{active:t.collectionsSelected.includes(s)},on:{click:function(e){return t.toggleCollectionItem(s)}}},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3",attrs:{src:a.thumb,alt:"",width:"50px",height:"50px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("h5",{staticClass:"mt-0"},[t._v(t._s(a.title))]),t._v(" "),e("p",{staticClass:"mb-0 text-muted small"},[e("span",[t._v(t._s(a.post_count)+" Posts")]),t._v(" "),e("span",[t._v("ยท")]),t._v(" "),"draft"===a.visibility?e("span",{staticClass:"primary"},[e("i",{staticClass:"far fa-lock fa-sm"}),t._v(" "+t._s(t.$t("profile.draft")))]):e("span",[t._v("Created "+t._s(t.timeago(a.published_at))+" ago")])])])])])}),t._v(" "),t.collectionsCanLoadMore?e("button",{staticClass:"btn btn-light btn-block font-weight-bold mt-3",on:{click:t.loadMoreCollections}},[t._v("\n Load more\n ")]):t._e()],2):t._e(),t._v(" "),e("p",{staticClass:"d-flex justify-content-between mb-0"},[e("button",{staticClass:"btn btn-link text-muted font-weight-bold text-decoration-none",attrs:{type:"button"},on:{click:function(e){return t.clearSelectedCollections()}}},[t._v("Clear")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Save")])])]):"schedulePost"==t.page||"mediaMetadata"==t.page||"addToStory"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("p",{staticClass:"text-center lead text-muted mb-0 py-5"},[t._v("This feature is not available yet.")])]):"editMedia"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3",attrs:{src:t.media[t.carouselCursor].preview_url,width:"50px",height:"50px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small"},[t._v("Media Description")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.media[t.carouselCursor].alt,expression:"media[carouselCursor].alt"}],staticClass:"form-control",attrs:{placeholder:"Add a media description here...",maxlength:t.config.uploader.max_altext_length},domProps:{value:t.media[t.carouselCursor].alt},on:{input:function(e){e.target.composing||t.$set(t.media[t.carouselCursor],"alt",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-muted mb-0 d-flex justify-content-between"},[e("span",[t._v("Describe your photo for people with visual impairments.")]),t._v(" "),e("span",[t._v(t._s(t.media[t.carouselCursor].alt?t.media[t.carouselCursor].alt.length:0)+"/"+t._s(t.config.uploader.max_altext_length))])])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small"},[t._v("License")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.licenseId,expression:"licenseId"}],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.licenseId=e.target.multiple?a:a[0]}}},t._l(t.availableLicenses,function(a,s){return e("option",{domProps:{value:a.id,selected:a.id==t.licenseId}},[t._v("\n "+t._s(a.name)+"\n ")])}),0)])])]),t._v(" "),e("hr"),t._v(" "),e("p",{staticClass:"d-flex justify-content-between mb-0"},[e("button",{staticClass:"btn btn-link text-muted font-weight-bold text-decoration-none",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Save")])])]):"video-2"==t.page?e("div",{staticClass:"w-100 h-100"},[t.video.title.length?e("div",{staticClass:"border-bottom"},[e("div",{staticClass:"media p-3"},[e("img",{staticClass:"mr-2",attrs:{src:t.media[0].preview_url,width:"100px",height:"70px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-1"},[t._v(t._s(t.video.title?t.video.title.slice(0,70):"Untitled"))]),t._v(" "),e("p",{staticClass:"mb-0 text-muted small"},[t._v(t._s(t.video.description?t.video.description.slice(0,90):"No description"))])])])]):t._e(),t._v(" "),e("div",{staticClass:"border-bottom d-flex justify-content-between px-4 mb-0 py-2"},[t._m(16),t._v(" "),e("div",[e("div",{staticClass:"custom-control custom-switch",staticStyle:{"z-index":"9999"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.nsfw,expression:"nsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"asnsfw"},domProps:{checked:Array.isArray(t.nsfw)?t._i(t.nsfw,null)>-1:t.nsfw},on:{change:function(e){var a=t.nsfw,s=e.target,i=!!s.checked;if(Array.isArray(a)){var o=t._i(a,null);s.checked?o<0&&(t.nsfw=a.concat([null])):o>-1&&(t.nsfw=a.slice(0,o).concat(a.slice(o+1)))}else t.nsfw=i}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"asnsfw"}})])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showLicenseCard()}}},[t._v("Add license")])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2"},[e("span",[t._v("Audience")]),t._v(" "),e("span",{staticClass:"float-right"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#",disabled:""},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[t._v(t._s(t.visibilityTag))]),t._v(" "),e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])])]),t._v(" "),e("div",{staticClass:"p-3"},[e("div",{staticClass:"form-group"},[e("p",{staticClass:"small font-weight-bold text-muted mb-0"},[t._v("Title")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.video.title,expression:"video.title"}],staticClass:"form-control",attrs:{placeholder:"Add a good title"},domProps:{value:t.video.title},on:{input:function(e){e.target.composing||t.$set(t.video,"title",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text mb-0 small text-muted"},[t._v(t._s(t.video.title.length)+"/70")])]),t._v(" "),e("div",{staticClass:"form-group mb-0"},[e("p",{staticClass:"small font-weight-bold text-muted mb-0"},[t._v("Description")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.video.description,expression:"video.description"}],staticClass:"form-control",attrs:{placeholder:"Add an optional description",maxlength:"5000",rows:"5"},domProps:{value:t.video.description},on:{input:function(e){e.target.composing||t.$set(t.video,"description",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text mb-0 small text-muted"},[t._v(t._s(t.video.description.length)+"/5000")])])])]):t._e()]),t._v(" "),"cropPhoto"==t.page?e("div",{staticClass:"card-footer bg-white d-flex justify-content-between"},[e("div",[e("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.rotate}},[e("i",{staticClass:"fas fa-redo"})])]),t._v(" "),e("div",[e("div",{staticClass:"d-inline-block button-group"},[e("button",{class:"btn font-weight-bold "+[t.cropper.aspectRatio==16/9?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(16/9)}}},[t._v("16:9")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[t.cropper.aspectRatio==4/3?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(4/3)}}},[t._v("4:3")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[1.5==t.cropper.aspectRatio?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(1.5)}}},[t._v("3:2")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[1==t.cropper.aspectRatio?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(1)}}},[t._v("1:1")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[t.cropper.aspectRatio==2/3?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(2/3)}}},[t._v("2:3")])])])]):t._e()])])])])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between bg-white"},[e("span",{staticClass:"pr-3"},[e("i",{staticClass:"fas fa-cog fa-lg text-muted"})]),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("\n Camera Roll\n ")]),t._v(" "),e("span",{staticClass:"text-primary font-weight-bold"},[t._v("Upload")])])},function(){var t=this._self._c;return t("span",{staticClass:"pr-3"},[t("i",{staticClass:"fas fa-info-circle fa-lg text-primary"})])},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._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._self._c;return t("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%","background-color":"#008DF5"}},[t("i",{staticClass:"fal fa-bolt text-white fa-lg"})])},function(){var t=this._self._c;return t("p",{staticClass:"mb-0"},[t("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[this._v("New Post")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"2px solid #008DF5"}},[e("i",{staticClass:"far fa-edit text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Text Post")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Share a text only post")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body py-2"},[e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"1px solid #008DF5"}},[e("i",{staticClass:"fas fa-history text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Story")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Add to your story")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body py-2"},[e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"2px solid #008DF5"}},[e("i",{staticClass:"fas fa-poll-h text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Poll")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Create a poll")])])])])},function(){var t=this,e=t._self._c;return e("a",{staticClass:"card my-md-3 shadow-none border compose-action text-decoration-none text-dark",attrs:{href:"/i/collections/create"}},[e("div",{staticClass:"card-body py-2"},[e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"1px solid #008DF5"}},[e("i",{staticClass:"fal fa-images text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Collection")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("New collection of posts")])])])])])},function(){var t=this._self._c;return t("p",{staticClass:"py-3"},[t("a",{staticClass:"font-weight-bold",attrs:{href:"/site/help"}},[this._v("Help")])])},function(){var t=this._self._c;return t("div",[t("div",{staticClass:"text-dark"},[this._v("Sensitive/NSFW Media")])])},function(){var t=this,e=t._self._c;return e("span",[t._v("Add to Collection "),e("span",{staticClass:"ml-2 badge badge-primary"},[t._v("NEW")])])},function(){var t=this._self._c;return t("span",{staticClass:"text-decoration-none"},[t("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])},function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"text-dark"},[t._v("Turn off commenting")]),t._v(" "),e("p",{staticClass:"text-muted small mb-0"},[t._v("Disables comments for this post, you can change this later.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("div",{staticClass:"text-dark"},[t._v("Media Descriptions")]),t._v(" "),e("p",{staticClass:"text-muted small mb-0"},[t._v("Describe your photos for people with visual impairments.")])]),t._v(" "),e("div",[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])},function(){var t=this._self._c;return t("div",[t("div",{staticClass:"text-dark"},[this._v("Contains NSFW Media")])])}]},67794(t,e,a){a.r(e),a.d(e,{filterEffects:()=>s});var s=[{name:"1984",ops:[{type:"sepia",intensity:.5},{type:"hue_rotate",angle:-30},{type:"adjust_color",brightness:0,contrast:0,saturation:.4}]},{name:"Azen",ops:[{type:"sepia",intensity:.2},{type:"adjust_color",brightness:.15,contrast:0,saturation:.4}]},{name:"Astairo",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.2,contrast:.1,saturation:.3}]},{name:"Grasbee",ops:[{type:"sepia",intensity:.5},{type:"adjust_color",brightness:0,contrast:.2,saturation:.8}]},{name:"Bookrun",ops:[{type:"sepia",intensity:.4},{type:"adjust_color",brightness:.1,contrast:.25,saturation:-.1},{type:"hue_rotate",angle:-2}]},{name:"Borough",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.25,contrast:.25,saturation:0},{type:"hue_rotate",angle:5}]},{name:"Farms",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.25,contrast:.25,saturation:.35},{type:"hue_rotate",angle:-5}]},{name:"Hairsadone",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.25,contrast:.25,saturation:0},{type:"hue_rotate",angle:5}]},{name:"Cleana",ops:[{type:"sepia",intensity:.5},{type:"adjust_color",brightness:.25,contrast:.15,saturation:-.1},{type:"hue_rotate",angle:-2}]},{name:"Catpatch",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:0,contrast:.5,saturation:.1}]},{name:"Earlyworm",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.25,contrast:.15,saturation:-.1},{type:"hue_rotate",angle:-5}]},{name:"Plaid",ops:[{type:"adjust_color",brightness:.1,contrast:.1,saturation:0}]},{name:"Kyo",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.2,contrast:.15,saturation:.35},{type:"hue_rotate",angle:-5}]},{name:"Yefe",ops:[{type:"sepia",intensity:.4},{type:"adjust_color",brightness:.2,contrast:.5,saturation:.4},{type:"hue_rotate",angle:-10}]},{name:"Godess",ops:[{type:"sepia",intensity:.5},{type:"adjust_color",brightness:.05,contrast:.05,saturation:.35}]},{name:"Yards",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.2,contrast:.2,saturation:.05},{type:"hue_rotate",angle:-15}]},{name:"Quill",ops:[{type:"adjust_color",brightness:.25,contrast:-.15,saturation:-1}]},{name:"Juno",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.15,contrast:.15,saturation:.8}]},{name:"Rankine",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.1,contrast:.5,saturation:0},{type:"hue_rotate",angle:-10}]},{name:"Mark",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.3,contrast:.2,saturation:.25}]},{name:"Chill",ops:[{type:"adjust_color",brightness:0,contrast:.5,saturation:.1}]},{name:"Van",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.05,contrast:.05,saturation:1}]},{name:"Apache",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.05,contrast:.05,saturation:.75}]},{name:"May",ops:[{type:"adjust_color",brightness:.15,contrast:.1,saturation:.1}]},{name:"Ceres",ops:[{type:"adjust_color",brightness:.4,contrast:-.05,saturation:-1},{type:"sepia",intensity:.35}]},{name:"Knoxville",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:-.1,contrast:.5,saturation:0},{type:"hue_rotate",angle:-15}]},{name:"Felicity",ops:[{type:"adjust_color",brightness:.25,contrast:.1,saturation:.1}]},{name:"Sandblast",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.2,contrast:0,saturation:0}]},{name:"Daisy",ops:[{type:"sepia",intensity:.75},{type:"adjust_color",brightness:.25,contrast:-.25,saturation:.4}]},{name:"Elevate",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.2,contrast:.25,saturation:-.1}]},{name:"Nevada",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:-.1,contrast:.5,saturation:0},{type:"hue_rotate",angle:-15}]},{name:"Futura",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.25,contrast:.25,saturation:.2}]},{name:"Sleepy",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.25,contrast:.25,saturation:.2}]},{name:"Steward",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.25,contrast:.1,saturation:.25}]},{name:"Savoy",ops:[{type:"sepia",intensity:.4},{type:"adjust_color",brightness:.2,contrast:-.1,saturation:.4},{type:"hue_rotate",angle:-10}]},{name:"Blaze",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:-.05,contrast:.5,saturation:0},{type:"hue_rotate",angle:-15}]},{name:"Apricot",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.1,contrast:.1,saturation:0}]},{name:"Gloming",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.15,contrast:.2,saturation:.3}]},{name:"Walter",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.25,contrast:-.2,saturation:.4}]},{name:"Poplar",ops:[{type:"adjust_color",brightness:.2,contrast:-.15,saturation:-.95},{type:"sepia",intensity:.5}]},{name:"Xenon",ops:[{type:"sepia",intensity:.45},{type:"adjust_color",brightness:.75,contrast:.25,saturation:.3},{type:"hue_rotate",angle:-5}]}]},39005(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(76798),i=a.n(s)()(function(t){return t[1]});i.push([t.id,".app-drawer-component .nav-link{padding:.5rem .1rem}.app-drawer-component .nav-link.active{background-color:transparent}.app-drawer-component .nav-link.router-link-exact-active{background-color:transparent;color:var(--primary)!important}.app-drawer-component .nav-link p{margin-bottom:0}.app-drawer-component .nav-link-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:10px;font-weight:700;margin-top:0;opacity:.6;text-transform:uppercase}",""]);const o=i},66318(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(76798),i=a.n(s)()(function(t){return t[1]});i.push([t.id,'.sidebar-component .sidebar-sticky{background-color:var(--card-bg);border-radius:15px}.sidebar-component.sticky-top{top:90px}.sidebar-component .nav{overflow:auto}.sidebar-component .nav-item .nav-link{color:#9ca3af;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-weight:500;margin-bottom:5px;padding-left:14px}.sidebar-component .nav-item .nav-link:hover{background-color:var(--light-hover-bg)}.sidebar-component .nav-item .nav-link .icon{display:inline-block;text-align:center;width:40px}.sidebar-component .nav-item .router-link-exact-active{color:var(--primary);font-weight:700;padding-left:14px}.sidebar-component .nav-item .router-link-exact-active:not(.text-center){border-left:4px solid var(--primary);padding-left:10px}.sidebar-component .nav-item .router-link-exact-active .icon{color:var(--primary)!important}.sidebar-component .nav-item:first-child .nav-link .small{font-weight:700}.sidebar-component .nav-item:first-child .nav-link:first-child{border-top-left-radius:15px}.sidebar-component .nav-item:first-child .nav-link:last-child{border-top-right-radius:15px}.sidebar-component .nav-item:is(:last-child) .nav-link{border-bottom-left-radius:15px;border-bottom-right-radius:15px;margin-bottom:0}.sidebar-component .sidebar-heading{font-size:.75rem;text-transform:uppercase}.sidebar-component .user-card{align-items:center}.sidebar-component .user-card .avatar{border:1px solid var(--border-color);border-radius:15px;height:75px;margin-right:.8rem;width:75px}.sidebar-component .user-card .avatar-update-btn{background:hsla(0,0%,100%,.9);border:1px solid #dee2e6!important;border-radius:50rem;bottom:0;height:20px;padding:0;position:absolute;right:12px;width:20px}.sidebar-component .user-card .avatar-update-btn-icon{-webkit-font-smoothing:antialiased;display:inline-block;font-family:Font Awesome\\ 5 Free;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-rendering:auto}.sidebar-component .user-card .avatar-update-btn-icon:before{content:"\\f013"}.sidebar-component .user-card .username{font-size:13px;font-weight:600;margin-bottom:0}.sidebar-component .user-card .display-name{color:var(--body-color);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;font-weight:800!important;line-height:.8;margin-bottom:0;-webkit-user-select:all;-moz-user-select:all;user-select:all;word-break:break-all}.sidebar-component .user-card .stats{font-size:12px;margin-bottom:0;margin-top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.sidebar-component .user-card .stats .stats-following{margin-right:.8rem}.sidebar-component .user-card .stats .followers-count,.sidebar-component .user-card .stats .following-count{font-weight:800}.sidebar-component .btn-primary{background-color:var(--primary)}.sidebar-component .btn-primary.router-link-exact-active{cursor:unset;opacity:.5;pointer-events:none}.sidebar-component .sidebar-sitelinks{display:flex;justify-content:space-between;margin-top:1rem;padding:0 2rem}.sidebar-component .sidebar-sitelinks a{color:#b8c2cc;font-size:12px}.sidebar-component .sidebar-sitelinks .active{color:#212529;font-weight:600}.sidebar-component .sidebar-attribution{color:#b8c2cc;font-size:10px;margin-top:.5rem;padding-left:2rem}.sidebar-component .sidebar-attribution a{color:#b8c2cc!important}.sidebar-component .sidebar-attribution a.powered-by{opacity:.5}',""]);const o=i},42615(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(76798),i=a.n(s)()(function(t){return t[1]});i.push([t.id,".compose-modal-component .media-drawer-filters{flex-wrap:unset;overflow-x:auto}.compose-modal-component .media-drawer-filters .nav-link{min-width:100px;padding-bottom:1rem;padding-top:1rem}.compose-modal-component .media-drawer-filters .active{color:#fff;font-weight:700}@media (hover:none) and (pointer:coarse){.compose-modal-component .media-drawer-filters::-webkit-scrollbar{display:none}}.compose-modal-component .no-focus{border-color:none;box-shadow:none;outline:0}.compose-modal-component a.list-group-item{text-decoration:none}.compose-modal-component a.list-group-item:hover{background-color:#f8f9fa;text-decoration:none}.compose-modal-component .compose-action:hover{background-color:#f8f9fa;cursor:pointer}.compose-modal-component .collections-list-group{max-height:500px;overflow-y:auto}.compose-modal-component .collections-list-group .list-group-item.active{background-color:#dbeafe!important;border-color:#60a5fa!important;color:#212529}.compose-modal-component .media-editor{--height-menu-row:5rem;--gap-preview:0rem;--height-menu-row-scroll:10rem;--color-bg-button:transparent;--color-bg-preview:transparent;--color-bg-button-hover:var(--light-gray);--color-bg-acc:var(--card-bg);--color-fnt-default:var(--body-color);--color-fnt-acc:var(--text-lighter);--color-scrollbar-thumb:var(--light-gray);--color-scrollbar-both:var(--light-gray) transparent;--color-slider-thumb:var(--text-lighter);--color-slider-progress:var(--light-gray);--color-slider-track:var(--light);--color-crop-outline:var(--light-gray);--color-crop-dashed:#ffffffde;--color-crop-overlay:#00000082;background-color:transparent;border:none!important;box-shadow:none!important;font-size:12px}",""]);const o=i},74688(t,e,a){a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),o=a(39005),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},31009(t,e,a){a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),o=a(66318),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},94586(t,e,a){a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),o=a(42615),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},46537(t,e,a){a.r(e),a.d(e,{default:()=>n});var s=a(22358),i=a(6422),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);a.d(e,o);const n=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},5787(t,e,a){a.r(e),a.d(e,{default:()=>n});var s=a(16286),i=a(80260),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);a.d(e,o);a(89069);const n=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},90414(t,e,a){a.r(e),a.d(e,{default:()=>n});var s=a(82704),i=a(55597),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);a.d(e,o);const n=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},28772(t,e,a){a.r(e),a.d(e,{default:()=>n});var s=a(22699),i=a(75223),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);a.d(e,o);a(43550);const n=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},19324(t,e,a){a.r(e),a.d(e,{default:()=>n});var s=a(7114),i=a(50427),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);a.d(e,o);a(30023);const n=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},6422(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(66517),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const o=s.default},80260(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(50371),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const o=s.default},55597(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(84154),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const o=s.default},75223(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(79318),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const o=s.default},50427(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(28320),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const o=s.default},22358(t,e,a){a.r(e);var s=a(32463),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},16286(t,e,a){a.r(e);var s=a(69831),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},82704(t,e,a){a.r(e);var s=a(67153),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},22699(t,e,a){a.r(e);var s=a(30916),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},7114(t,e,a){a.r(e);var s=a(18999),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},89069(t,e,a){a.r(e);var s=a(74688),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},43550(t,e,a){a.r(e);var s=a(31009),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},30023(t,e,a){a.r(e);var s=a(94586),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)}}]);
\ No newline at end of file
diff --git a/public/js/compose.chunk.cb3781f6e49426e4.js b/public/js/compose.chunk.cb3781f6e49426e4.js
new file mode 100644
index 000000000..f8f05295c
--- /dev/null
+++ b/public/js/compose.chunk.cb3781f6e49426e4.js
@@ -0,0 +1,2 @@
+/*! For license information please see compose.chunk.cb3781f6e49426e4.js.LICENSE.txt */
+"use strict";(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[9124],{66517(t,e,a){a.r(e),a.d(e,{default:()=>n});var s=a(5787),i=a(28772),o=a(19324);const n={components:{drawer:s.default,sidebar:i.default,"compose-modal":o.default},data:function(){return{isLoaded:!1,profile:void 0}},mounted:function(){this.profile=window._sharedData.user,this.isLoaded=!0},methods:{closeModal:function(){this.$router.push("/i/web")}}}},50371(t,e,a){a.r(e),a.d(e,{default:()=>s});const s={data:function(){return{user:window._sharedData.user}}}},84154(t,e,a){a.r(e),a.d(e,{default:()=>s});const s={props:["user"],data:function(){return{loaded:!1,avatarUpdateIndex:0,avatarUpdateFile:void 0,avatarUpdatePreview:void 0}},methods:{open:function(){this.$refs.avatarUpdateModal.show()},avatarUpdateClose:function(){this.$refs.avatarUpdateModal.hide(),this.avatarUpdateIndex=0,this.avatarUpdateFile=void 0},avatarUpdateClear:function(){this.avatarUpdateIndex=0,this.avatarUpdateFile=void 0},avatarUpdateStep:function(t){this.$refs.avatarUpdateRef.click(),this.avatarUpdateIndex=t},handleAvatarUpdate:function(){var t=this,e=event.target.files;Array.prototype.forEach.call(e,function(e,a){t.avatarUpdateFile=e,t.avatarUpdatePreview=URL.createObjectURL(e),t.avatarUpdateIndex=1})},handleDrop:function(t){t.preventDefault();var e=this;if(t.dataTransfer.items){for(var a=0;al});var s=a(95353),i=a(90414);function o(t){return o="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},o(t)}function n(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 r(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var s=a.call(t,e||"default");if("object"!=o(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const l={props:{user:{type:Object,default:function(){return{avatar:"/storage/avatars/default.jpg",username:!1,display_name:"",following_count:0,followers_count:0}}},links:{type:Array,default:function(){return[{name:"Discover",path:"/i/web/discover",icon:"fas fa-compass"},{name:"Groups",path:"/i/web/groups",icon:"far fa-user-friends"},{name:"Videos",path:"/i/web/videos",icon:"far fa-video"}]}}},components:{UpdateAvatar:i.default},computed:function(t){for(var e=1;e)?/g,function(e){var a=e.slice(1,e.length-1),s=t.getCustomEmoji.filter(function(t){return t.shortcode==a});return s.length?'
'):e})}return a},gotoMyProfile:function(){var t=this.user;this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:t}})},formatCount:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"compact";return new Intl.NumberFormat(e,{notation:a,compactDisplay:"short"}).format(t)},updateAvatar:function(){event.currentTarget.blur(),this.$refs.avatarUpdate.open()},createNewPost:function(){this.$refs.createPostModal.show()},goToFeed:function(t){var e=this.$route.path;switch(t){case"home":"/i/web"==e?this.$emit("refresh"):this.$router.push("/i/web");break;case"local":"/i/web/timeline/local"==e?this.$emit("refresh"):this.$router.push({name:"timeline",params:{scope:"local"}});break;case"global":"/i/web/timeline/global"==e?this.$emit("refresh"):this.$router.push({name:"timeline",params:{scope:"global"}})}}}}},28320(t,e,a){a.r(e),a.d(e,{default:()=>C});var s=a(91584),i=(a(49551),a(2e4)),o=(a(73718),a(79288)),n=a(4717),r=a(67794),l=a(74692);function c(t){return c="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},c(t)}function d(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(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 u(t){for(var e=1;et.length)&&(e=t.length);for(var a=0,s=Array(e);a3?(i=f===s)&&(l=o[(r=o[4])?5:(r=3,3)],o[4]=o[5]=t):o[0]<=m&&((i=a<2&&ms||s>f)&&(o[4]=a,o[5]=s,u.n=f,r=0))}if(i||a>1)return n;throw p=!0,s}return function(i,d,f){if(c>1)throw TypeError("Generator is already running");for(p&&1===d&&m(d,f),r=d,l=f;(e=r<2?t:l)||!p;){o||(r?r<3?(r>1&&(u.n=-1),m(r,l)):u.n=l:u.v=l);try{if(c=2,o){if(r||(i="next"),e=o[i]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,r<2&&(r=0)}else 1===r&&(e=o.return)&&e.call(o),r<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),r=1);o=t}else if((e=(p=u.n<0)?l:a.call(s,u))!==n)break}catch(e){o=t,r=1,l=e}finally{c=1}}return{value:e,done:p}}}(a,i,o),!0),c}var n={};function r(){}function l(){}function c(){}e=Object.getPrototypeOf;var d=[][s]?e(e([][s]())):(b(e={},s,function(){return this}),e),p=c.prototype=r.prototype=Object.create(d);function u(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,b(t,i,"GeneratorFunction")),t.prototype=Object.create(p),t}return l.prototype=c,b(p,"constructor",c),b(c,"constructor",l),l.displayName="GeneratorFunction",b(c,i,"GeneratorFunction"),b(p),b(p,i,"Generator"),b(p,s,function(){return this}),b(p,"toString",function(){return"[object Generator]"}),(g=function(){return{w:o,m:u}})()}function b(t,e,a,s){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}b=function(t,e,a,s){function o(e,a){b(t,e,function(t){return this._invoke(e,a,t)})}e?i?i(t,e,{value:a,enumerable:!s,configurable:!s,writable:!s}):t[e]=a:(o("next",0),o("throw",1),o("return",2))},b(t,e,a,s)}function _(t,e,a,s,i,o,n){try{var r=t[o](n),l=r.value}catch(t){return void a(t)}r.done?e(l):Promise.resolve(l).then(s,i)}function y(t){return function(){var e=this,a=arguments;return new Promise(function(s,i){var o=t.apply(e,a);function n(t){_(o,s,i,n,r,"next",t)}function r(t){_(o,s,i,n,r,"throw",t)}n(void 0)})}}const C={components:{VueCropper:s.default,Autocomplete:i.default,VueTribute:o.default,MediaEditorPreview:n.MediaEditorPreview,MediaEditorFilterMenu:n.MediaEditorFilterMenu},data:function(){return{config:window.App.config,pageLoading:!1,profile:window._sharedData.curUser,composeText:"",composeTextLength:0,nsfw:!1,ids:[],media:[],files:[],carouselCursor:0,uploading:!1,uploadProgress:100,mode:"photo",modes:["photo","video","plain"],page:1,composeState:"publish",visibility:"public",visibilityTag:"Public",place:!1,commentsDisabled:!1,optimizeMedia:!0,mediaCropped:!1,pageTitle:"",cropper:{aspectRatio:1,viewMode:1,zoomable:!0,zoom:0},namedPages:["cropPhoto","tagPeople","addLocation","advancedSettings","visibility","altText","addToCollection","schedulePost","mediaMetadata","addToStory","editMedia","cameraRoll","tagPeopleHelp","textOptions","licensePicker"],cameraRollMedia:[],taggedUsernames:[],taggedPeopleSearch:null,textMode:!1,tributeSettings:{noMatchTemplate:function(){return null},collection:[{trigger:"@",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/mention",{params:{q:t}}).then(function(t){e(t.data)}).catch(function(t){})}},{trigger:"#",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/hashtag",{params:{q:t}}).then(function(t){e(t.data)}).catch(function(t){})}}]},availableLicenses:[{id:1,name:"All Rights Reserved",title:""},{id:5,name:"Public Domain Work",title:""},{id:6,name:"Public Domain Dedication (CC0)",title:"CC0"},{id:11,name:"Attribution",title:"CC BY"},{id:12,name:"Attribution-ShareAlike",title:"CC BY-SA"},{id:13,name:"Attribution-NonCommercial",title:"CC BY-NC"},{id:14,name:"Attribution-NonCommercial-ShareAlike",title:"CC BY-NC-SA"},{id:15,name:"Attribution-NoDerivs",title:"CC BY-ND"},{id:16,name:"Attribution-NonCommercial-NoDerivs",title:"CC BY-NC-ND"}],licenseIndex:0,video:{title:"",description:""},composeSettings:{default_license:null,media_descriptions:!1},licenseId:1,licenseTitle:null,maxAltTextLength:140,pollOptionModel:null,pollOptions:[],pollExpiry:1440,postingPoll:!1,collections:[],collectionsSelected:[],collectionsLoaded:!1,collectionsPage:1,collectionsCanLoadMore:!1,spoilerText:void 0,isPosting:!1}},created:function(){var t=this;try{this.editor=new n.MediaEditor({effects:r.filterEffects,onEdit:function(e,a){var s=a.effect,i=a.intensity,o=a.crop;if(!(e>=t.files.length)){var n=t.files[e];t.$set(n,"editState",{effect:s,intensity:i,crop:o})}},onRenderPreview:function(e,a){if(!(e>=t.files.length)){var s=t.files[e].editState,i=t.media[e];s&&(s.crop||-1!==s.effect)?i.preview_url=a:i.preview_url=i.url}}})}catch(t){}},computed:{spoilerTextLength:function(){return this.spoilerText?this.spoilerText.length:0}},beforeMount:function(){var t=this;axios.get("/api/compose/v0/settings").then(function(e){t.composeSettings=e.data,t.licenseId=t.composeSettings.default_license,t.maxAltTextLength=e.data.max_altext_length,t.licenseId>10&&(t.licenseTitle=t.availableLicenses.filter(function(e){return e.id==t.licenseId}).map(function(t){return t.title})[0]),t.fetchProfile()})},destroyed:function(){this.media.forEach(function(t){URL.revokeObjectURL(t.url),URL.revokeObjectURL(t.preview_url)}),this.files.length=this.media.length=0,this.editor=void 0},methods:{timeAgo:function(t){return App.util.format.timeAgo(t)},formatBytes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!+t)return"0 Bytes";var a=e<0?0:e,s=Math.floor(Math.log(t)/Math.log(1024));return"".concat(parseFloat((t/Math.pow(1024,s)).toFixed(a))," ").concat(["Bytes","KB","MB","GB","TB"][s])},defineErrorMessage:function(t){var e;return e=t.response?t.response.data.message?t.response.data.message:"An unexpected error occured.":t.message,swal("Oops, something went wrong!",e,"error")},fetchProfile:function(){var t=this,e={public:"Public",private:"Followers Only",unlisted:"Unlisted"};if(window._sharedData.curUser.id){if(this.profile=window._sharedData.curUser,this.composeSettings&&this.composeSettings.hasOwnProperty("default_scope")&&this.composeSettings.default_scope){var a=this.composeSettings.default_scope;this.visibility=a,this.visibilityTag=e[a]}1==this.profile.locked&&(this.visibility="private",this.visibilityTag="Followers Only")}else axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(a){if(window._sharedData.currentUser=a.data,t.profile=a.data,t.composeSettings&&t.composeSettings.hasOwnProperty("default_scope")&&t.composeSettings.default_scope){var s=t.composeSettings.default_scope;t.visibility=s,t.visibilityTag=e[s]}1==t.profile.locked&&(t.visibility="private",t.visibilityTag="Followers Only")}).catch(function(t){})},addMedia:function(t){var e=l(t.target);e.attr("disabled",""),l('.file-input[name="media"]').trigger("click"),e.blur(),e.removeAttr("disabled")},addText:function(t){this.pageTitle="New Text Post",this.page="addText",this.textMode=!0,this.mode="text"},onInputFile:function(t){var e=this,a=t.target,s=Array.from(a.files);a.value=null;var i=this;s.forEach(function(t,a){if(i.media&&i.media.length>=i.config.uploader.album_limit)return swal("Error","You can only upload "+i.config.uploader.album_limit+" photos per album","error"),void(i.page=2);var s=i.config.uploader.media_types.split(",");if(-1==l.inArray(t.type,s))return swal("Invalid File Type","The file you are trying to add is not a valid mime type. Please upload a "+i.config.uploader.media_types+" only.","error"),void(i.page=2);var o=t.type.replace(/\/.*/,""),n=URL.createObjectURL(t),r="image"===o?URL.createObjectURL(t):"/storage/no-preview.png";e.files.push({file:t,editState:void 0}),e.media.push({url:n,preview_url:r,type:o})}),this.media.length?this.page=3:this.page=2},mediaUpload:function(){var t=this;return y(g().m(function e(){var a;return g().w(function(e){for(;;)switch(e.n){case 0:return t.uploading=!0,a=t.files.map(function(){var e=y(g().m(function e(a,s){var i,o,n,r,l,c,d;return g().w(function(e){for(;;)switch(e.n){case 0:if(i=a.file,"image"!==(o=t.media[s]).type||!a.editState){e.n=3;break}if(n=a.editState,r=a.cropperBlob,!t.editor||-1===n.effect&&!n.crop){e.n=2;break}return e.n=1,t.editor.toBlob(s);case 1:i=e.v,e.n=3;break;case 2:r&&(i=r);case 3:return(l=new FormData).append("file",i),c={onUploadProgress:function(t){var e=Math.round(100*t.loaded/t.total);d.uploadProgress=e}},d=t,e.n=4,axios.post("/api/compose/v0/media/upload",l,c).then(function(t){d.uploadProgress=100,d.ids.push(t.data.id),Object.assign(o,t.data),setTimeout(function(){d.page=3},300)}).catch(function(t){switch(t.response.status){case 403:swal("Account size limit reached","Contact your admin for assistance.","error"),d.page=2;break;case 413:swal("File is too large","The file you uploaded has the size of "+d.formatBytes(i.size)+". Unfortunately, only images up to "+d.formatBytes(1024*d.config.uploader.max_photo_size)+" are supported.\nPlease resize the file and try again.","error"),d.page=2;break;case 422:var e="";if(t.response.data&&t.response.data.errors){var s=t.response.data.errors,o=Object.values(s).flat();e=(a.file.name?a.file.name+":\n":"")+o.join("\n")}else e=t.response.data&&t.response.data.message?(a.file.name?a.file.name+": ":"")+t.response.data.message:"A validation error occurred.";swal("Upload Failed",e,"error"),d.page=2;break;case 451:swal("Banned Content","This content has been banned and cannot be uploaded.","error"),d.page=2;break;case 429:swal("Limit Reached","You can upload up to 250 photos or videos per day and you've reached that limit. Please try again later.","error"),d.page=2;break;case 500:swal("Error",t.response.data.message,"error"),d.page=2;break;default:var n="An unexpected error occurred.";t.response&&t.response.data&&t.response.data.message&&(n=(a.file.name?a.file.name+": ":"")+t.response.data.message),swal("Oops, something went wrong!",n,"error"),d.page=2}throw t});case 4:return e.a(2)}},e)}));return function(t,a){return e.apply(this,arguments)}}()),e.n=1,Promise.all(a).finally(function(){t.uploadProgress=0,t.uploading=!1});case 1:return e.a(2)}},e)}))()},deleteMedia:function(){var t=this;return y(g().m(function e(){var a,s;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(0!=window.confirm("Are you sure you want to delete this media?")){e.n=1;break}return e.a(2);case 1:if(!(s=t.media[t.carouselCursor].id)){e.n=5;break}return e.p=2,e.n=3,axios.delete("/api/compose/v0/media/delete",{params:{id:s}});case 3:e.n=5;break;case 4:return e.p=4,e.v,swal("Whoops!","An error occured when attempting to delete this, please try again","error"),e.a(2);case 5:t.ids.splice(t.carouselCursor,1),t.media.splice(t.carouselCursor,1),URL.revokeObjectURL(null===(a=t.files[t.carouselCursor])||void 0===a?void 0:a.url),t.files.splice(t.carouselCursor,1),0==t.media.length?(t.ids=[],t.media=[],t.carouselCursor=0):t.carouselCursor=0;case 6:return e.a(2)}},e,null,[[2,4]])}))()},mediaReorder:function(t){var e=this.carouselCursor,a=e+("prev"===t?-1:1);if(!(a<0||a>=this.media.length)){var s=f(this.files.splice(e,1),1)[0],i=f(this.media.splice(e,1),1)[0],o=f(this.ids.splice(e,1),1)[0];this.files.splice(a,0,s),this.media.splice(a,0,i),this.ids.splice(a,0,o),this.carouselCursor=a}},compose:function(){var t=this;return y(g().m(function e(){var a,s,i;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(a=t.composeState,0!=t.files.length){e.n=1;break}return e.a(2);case 1:if(!(t.composeText.length>t.config.uploader.max_caption_length)){e.n=2;break}return swal("Error","Caption is too long","error"),e.a(2);case 2:i=a,e.n="publish"===i?3:"delete"===i?10:11;break;case 3:return t.isPosting=!0,e.p=4,e.n=5,t.mediaUpload().finally(function(){return t.isPosting=!1});case 5:e.n=7;break;case 6:return e.p=6,e.v,t.isPosting=!1,e.a(2);case 7:if(!0!==t.composeSettings.media_descriptions){e.n=8;break}if(!t.media.filter(function(t){return!t.hasOwnProperty("alt")||t.alt.length<2}).length){e.n=8;break}return swal("Missing media descriptions","You have enabled mandatory media descriptions. Please add media descriptions under Advanced settings to proceed. For more information, please see the media settings page.","warning"),t.isPosting=!1,e.a(2);case 8:if(0!=t.media.length){e.n=9;break}return swal("Whoops!","You need to add media before you can save this!","warning"),e.a(2);case 9:return"Add optional caption..."==t.composeText&&(t.composeText=""),s={media:t.media,caption:t.composeText,visibility:t.visibility,cw:t.nsfw,comments_disabled:t.commentsDisabled,place:t.place,tagged:t.taggedUsernames,optimize_media:t.optimizeMedia,license:t.licenseId,video:t.video,spoiler_text:t.spoilerText},t.collectionsSelected.length&&(s.collections=t.collectionsSelected.map(function(e){return t.collections[e].id})),axios.post("/api/compose/v0/publish",s).then(function(t){"/i/web/compose"===location.pathname&&t.data&&t.data.length?location.href="/i/web/post/"+t.data.split("/").slice(-1)[0]:location.href=t.data}).catch(function(e){if(400===e.response.status)"Must contain a single photo or video or multiple photos."==e.response.data.error?swal("Wrong types of mixed media","The album must contain a single photo or video or multiple photos.","error"):t.defineErrorMessage(e);else t.defineErrorMessage(e)}).finally(function(){t.isPosting=!1}),e.a(2);case 10:return t.ids=[],t.media=[],t.carouselCursor=0,t.composeText="",t.composeTextLength=0,l("#composeModal").modal("hide"),e.a(2);case 11:return e.a(2)}},e,null,[[4,6]])}))()},composeTextPost:function(){var t=this.composeState;if(this.composeText.length>this.config.uploader.max_caption_length)swal("Error","Caption is too long","error");else switch(t){case"publish":var e={caption:this.composeText,visibility:this.visibility,cw:this.nsfw,comments_disabled:this.commentsDisabled,place:this.place,tagged:this.taggedUsernames};return void axios.post("/api/compose/v0/publish/text",e).then(function(t){var e=t.data;window.location.href=e}).catch(function(t){var e=t.response.data.message?t.response.data.message:"An unexpected error occured.";swal("Oops, something went wrong!",e,"error")});case"delete":return this.ids=[],this.media=[],this.carouselCursor=0,this.composeText="",this.composeTextLength=0,void l("#composeModal").modal("hide")}},closeModal:function(){l("#composeModal").modal("hide"),this.$emit("close")},goBack:function(){switch(this.pageTitle="",this.mode){case"photo":switch(this.page){case"addText":case"video-2":this.page=1;break;case"textOptions":this.page="addText";break;case"cropPhoto":case"editMedia":this.page=2;break;case"tagPeopleHelp":this.showTagCard();break;case"licensePicker":this.page=3;break;default:-1!=this.namedPages.indexOf(this.page)?this.page=3:this.page--}break;case"video":this.page,this.page="video-2";break;default:switch(this.page){case"addText":case"video-2":this.page=1;break;case"textOptions":this.page="addText";break;case"cropPhoto":case"editMedia":this.page=2;break;case"tagPeopleHelp":this.showTagCard();break;case"licensePicker":this.page=3;break;default:-1!=this.namedPages.indexOf(this.page)?this.page="text"==this.mode?"addText":3:"text"==this.mode||this.page--}}},nextPage:function(){var t=this;switch(this.pageTitle="",this.page){case 1:this.page=2;break;case"cropPhoto":var e=this.files[this.carouselCursor],a=this.$refs.cropper,s=u(u({},e.editState),{},{crop:a.getData()});this.editor?this.editor.setEditState(this.carouselCursor,s):a.getCroppedCanvas().toBlob(function(a){var s=t.media[t.carouselCursor].media;e.croppedBlob=a,URL.revokeObjectURL(s.preview_url),s.preview_url=URL.createObjectURL(a)}),this.page=2;break;case 2:case 3:this.page++}},rotate:function(){this.$refs.cropper.rotate(90)},changeAspect:function(t){this.cropper.aspectRatio=t,this.$refs.cropper.setAspectRatio(t)},showTagCard:function(){this.pageTitle="Tag People",this.page="tagPeople"},showTagHelpCard:function(){this.pageTitle="About Tag People",this.page="tagPeopleHelp"},showLocationCard:function(){this.pageTitle="Add Location",this.page="addLocation"},showAdvancedSettingsCard:function(){this.pageTitle="Advanced Settings",this.page="advancedSettings"},locationSearch:function(t){if(t.length<1)return[];return axios.get("/api/compose/v0/search/location",{params:{q:t}}).then(function(t){return t.data})},getResultValue:function(t){return t.name+", "+t.country},onSubmitLocation:function(t){switch(this.place=t,this.mode){case"photo":this.pageTitle="",this.page=3;break;case"video":this.pageTitle="Edit Video Details",this.page="video-2";break;case"text":this.pageTitle="New Text Post",this.page="addText"}},showVisibilityCard:function(){this.pageTitle="Post Visibility",this.page="visibility"},showAddToStoryCard:function(){this.pageTitle="Add to Story",this.page="addToStory"},showCropPhotoCard:function(){this.pageTitle="Edit Photo",this.page="cropPhoto"},toggleVisibility:function(t){switch(this.visibility=t,this.visibilityTag={public:"Public",private:"Followers Only",unlisted:"Unlisted"}[t],this.mode){case"photo":this.pageTitle="",this.page=3;break;case"video":this.pageTitle="Edit Video Details",this.page="video-2";break;case"text":this.pageTitle="New Text Post",this.page="addText"}},showMediaDescriptionsCard:function(){this.pageTitle="Media Descriptions",this.page="altText"},showAddToCollectionsCard:function(){this.pageTitle="Add to Collection",this.page="addToCollection"},showSchedulePostCard:function(){this.pageTitle="Schedule Post",this.page="schedulePost"},showEditMediaCard:function(){this.pageTitle="Edit Media",this.page="editMedia"},fetchCameraRollDrafts:function(){var t=this;axios.get("/api/pixelfed/local/drafts").then(function(e){t.cameraRollMedia=e.data})},tagSearch:function(t){if(t.length<1)return[];var e=this;return axios.get("/api/compose/v0/search/tag",{params:{q:t}}).then(function(t){if(t.data.length)return t.data.filter(function(t){return 0==e.taggedUsernames.filter(function(e){return e.id==t.id}).length})})},getTagResultValue:function(t){return t.name},onTagSubmitLocation:function(t){this.taggedUsernames.filter(function(e){return e.id==t.id}).length||(this.taggedUsernames.push(t),this.$refs.autocomplete.value="")},untagUsername:function(t){this.taggedUsernames.splice(t,1)},showTextOptions:function(){this.page="textOptions",this.pageTitle="Text Post Options"},showLicenseCard:function(){this.pageTitle="Select a License",this.page="licensePicker"},toggleLicense:function(t){var e=this;switch(this.licenseId=t.id,this.licenseId>10?this.licenseTitle=this.availableLicenses.filter(function(t){return t.id==e.licenseId}).map(function(t){return t.title})[0]:this.licenseTitle=null,this.mode){case"photo":this.pageTitle="",this.page=3;break;case"video":this.pageTitle="Edit Video Details",this.page="video-2";break;case"text":this.pageTitle="New Text Post",this.page="addText"}},newPoll:function(){this.page="poll"},savePollOption:function(){-1==this.pollOptions.indexOf(this.pollOptionModel)?(this.pollOptions.push(this.pollOptionModel),this.pollOptionModel=null):this.pollOptionModel=null},deletePollOption:function(t){this.pollOptions.splice(t,1)},postNewPoll:function(){var t=this;this.postingPoll=!0,axios.post("/api/compose/v0/poll",{caption:this.composeText,cw:!1,visibility:this.visibility,comments_disabled:!1,expiry:this.pollExpiry,pollOptions:this.pollOptions}).then(function(e){if(!e.data.hasOwnProperty("url"))return swal("Oops!","An error occured while attempting to create this poll. Please refresh the page and try again.","error"),void(t.postingPoll=!1);window.location.href=e.data.url}).catch(function(e){if(e.response.data.hasOwnProperty("error")&&"Duplicate detected."==e.response.data.error)return t.postingPoll=!1,void swal("Oops!","The poll you are trying to create is similar to an existing poll you created. Please make the poll question (caption) unique.","error");t.postingPoll=!1,swal("Oops!","An error occured while attempting to create this poll. Please refresh the page and try again.","error")})},filesize:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){return filesize(1024*t,{round:0})}),showCollectionCard:function(){this.pageTitle="Add to Collection(s)",this.page="addToCollection",this.collectionsLoaded||this.fetchCollections()},fetchCollections:function(){var t=this;axios.get("/api/local/profile/collections/".concat(this.profile.id)).then(function(e){t.collections=e.data,t.collectionsLoaded=!0,t.collectionsCanLoadMore=9==e.data.length,t.collectionsPage++})},toggleCollectionItem:function(t){if(this.collectionsSelected.includes(t))this.collectionsSelected=this.collectionsSelected.filter(function(e){return e!=t});else{if(7==this.collectionsSelected.length)return void swal("Oops!","You can only share to 5 collections.","info");this.collectionsSelected.push(t)}},clearSelectedCollections:function(){this.collectionsSelected=[],this.pageTitle="Compose",this.page=3},loadMoreCollections:function(){var t=this;this.collectionsCanLoadMore=!1,axios.get("/api/local/profile/collections/".concat(this.profile.id),{params:{page:this.collectionsPage}}).then(function(e){var a,s=t.collections.map(function(t){return t.id}),i=e.data.filter(function(t){return!s.includes(t.id)});i&&i.length&&((a=t.collections).push.apply(a,d(i)),t.collectionsPage++,t.collectionsCanLoadMore=!0)})}},watch:{files:function(t){this.editor.setSources(t.map(function(t){return t.file}))}}}},32463(t,e,a){a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"web-wrapper"},[t.isLoaded?e("div",{staticClass:"container-fluid mt-3"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-3 d-md-block"},[e("sidebar",{attrs:{user:t.profile}})],1),t._v(" "),e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-8 offset-md-1"},[e("compose-modal",{on:{close:t.closeModal}})],1)])])]),t._v(" "),e("drawer")],1):t._e()])},i=[]},69831(t,e,a){a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-drawer-component"},[e("div",{staticClass:"mobile-footer-spacer d-block d-sm-none mt-5"}),t._v(" "),e("div",{staticClass:"mobile-footer d-block d-sm-none fixed-bottom"},[e("div",{staticClass:"card card-body rounded-0 px-0 pt-2 pb-3 box-shadow",staticStyle:{"border-top":"1px solid var(--border-color)"}},[e("ul",{staticClass:"nav nav-pills nav-fill d-flex align-items-middle"},[e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link text-dark",attrs:{to:"/i/web"}},[e("p",[e("i",{staticClass:"far fa-home fa-lg"})]),t._v(" "),e("p",{staticClass:"nav-link-label"},[e("span",[t._v("Home")])])])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link text-dark",attrs:{to:"/i/web/timeline/local"}},[e("p",[e("i",{staticClass:"far fa-stream fa-lg"})]),t._v(" "),e("p",{staticClass:"nav-link-label"},[e("span",[t._v("Local")])])])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link text-dark",attrs:{to:"/i/web/compose"}},[e("p",[e("i",{staticClass:"far fa-plus-circle fa-lg"})]),t._v(" "),e("p",{staticClass:"nav-link-label"},[e("span",[t._v("New")])])])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link text-dark",attrs:{to:"/i/web/notifications"}},[e("p",[e("i",{staticClass:"far fa-bell fa-lg"})]),t._v(" "),e("p",{staticClass:"nav-link-label"},[e("span",[t._v("Alerts")])])])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link text-dark",attrs:{to:"/i/web/profile/"+t.user.id}},[e("p",[e("i",{staticClass:"far fa-user fa-lg"})]),t._v(" "),e("p",{staticClass:"nav-link-label"},[e("span",[t._v("Profile")])])])],1)])])])])},i=[]},67153(t,e,a){a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("b-modal",{ref:"avatarUpdateModal",attrs:{centered:"","hide-footer":"","header-class":"py-2","body-class":"p-0","title-class":"w-100 text-center pl-4 font-weight-bold","title-tag":"p",title:"Upload Avatar"}},[e("input",{ref:"avatarUpdateRef",staticClass:"d-none",attrs:{type:"file",accept:"image/jpg,image/png"},on:{change:function(e){return t.handleAvatarUpdate()}}}),t._v(" "),e("div",{staticClass:"d-flex align-items-center justify-content-center"},[0===t.avatarUpdateIndex?e("div",{staticClass:"py-5 user-select-none cursor-pointer",on:{drop:t.handleDrop,dragover:t.handleDrop,click:function(e){return t.avatarUpdateStep(0)}}},[e("p",{staticClass:"text-center primary"},[e("i",{staticClass:"fal fa-cloud-upload fa-3x"})]),t._v(" "),e("p",{staticClass:"text-center lead"},[t._v("Drag photo here or click here")]),t._v(" "),e("p",{staticClass:"text-center small text-muted mb-0"},[t._v("Must be a "),e("strong",[t._v("png")]),t._v(" or "),e("strong",[t._v("jpg")]),t._v(" image up to 2MB")])]):1===t.avatarUpdateIndex?e("div",{staticClass:"w-100 p-5"},[e("div",{staticClass:"d-md-flex justify-content-between align-items-center"},[e("div",{staticClass:"text-center mb-4"},[e("p",{staticClass:"small font-weight-bold",staticStyle:{opacity:"0.7"}},[t._v("Current")]),t._v(" "),e("img",{staticClass:"shadow",staticStyle:{width:"150px",height:"150px","object-fit":"cover","border-radius":"18px",opacity:"0.7"},attrs:{src:t.user.avatar}})]),t._v(" "),e("div",{staticClass:"text-center mb-4"},[e("p",{staticClass:"font-weight-bold"},[t._v("New")]),t._v(" "),e("img",{staticClass:"shadow",staticStyle:{width:"220px",height:"220px","object-fit":"cover","border-radius":"18px"},attrs:{src:t.avatarUpdatePreview}})])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("button",{staticClass:"btn btn-light font-weight-bold btn-block mr-3",on:{click:function(e){return t.avatarUpdateClear()}}},[t._v("Clear")]),t._v(" "),e("button",{staticClass:"btn btn-primary primary font-weight-bold btn-block mt-0",on:{click:function(e){return t.confirmUpload()}}},[t._v("Upload")])])]):t._e()])])},i=[]},30916(t,e,a){a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-component sticky-top d-none d-md-block"},[e("div",{staticClass:"card shadow-sm mb-3",staticStyle:{"border-radius":"15px"}},[e("div",{staticClass:"card-body p-2"},[e("div",{staticClass:"media user-card user-select-none"},[e("div",{staticStyle:{position:"relative"}},[e("img",{staticClass:"avatar shadow cursor-pointer",attrs:{src:t.user.avatar,draggable:"false",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"},on:{click:function(e){return t.gotoMyProfile()}}}),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm avatar-update-btn",on:{click:function(e){return t.updateAvatar()}}},[e("span",{staticClass:"avatar-update-btn-icon"})])]),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"display-name",domProps:{innerHTML:t._s(t.getDisplayName())}}),t._v(" "),e("p",{staticClass:"username primary"},[t._v("@"+t._s(t.user.username))]),t._v(" "),e("p",{staticClass:"stats"},[e("span",{staticClass:"stats-following"},[e("span",{staticClass:"following-count"},[t._v(t._s(t.formatCount(t.user.following_count)))]),t._v(" Following\n\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"stats-followers"},[e("span",{staticClass:"followers-count"},[t._v(t._s(t.formatCount(t.user.followers_count)))]),t._v(" Followers\n\t\t\t\t\t\t\t")])])])])])]),t._v(" "),e("div",{staticClass:"btn-group btn-group-lg btn-block mb-4"},[e("router-link",{staticClass:"btn btn-primary btn-block font-weight-bold",attrs:{to:"/i/web/compose"}},[e("i",{staticClass:"fal fa-arrow-circle-up mr-1"}),t._v(" "+t._s(t.$t("navmenu.compose"))+" Post\n\t\t\t")]),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"dropdown-menu dropdown-menu-right"},[e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"/i/collections/create"}},[t._v("Create Collection")]),t._v(" "),t.hasStories?e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"/i/stories/new"}},[t._v(t._s(t.$t("navmenu.createStory")))]):t._e(),t._v(" "),e("div",{staticClass:"dropdown-divider"}),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"/settings/home"}},[t._v("Account Settings")])])],1),t._v(" "),e("div",{staticClass:"sidebar-sticky shadow-sm"},[e("ul",{staticClass:"nav flex-column"},[e("li",{staticClass:"nav-item"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("a",{staticClass:"nav-link text-center",class:["/i/web"==t.$route.path?"router-link-exact-active active":""],attrs:{href:"/i/web"},on:{click:function(e){return e.preventDefault(),t.goToFeed("home")}}},[t._m(1),t._v(" "),e("div",{staticClass:"small"},[t._v(t._s(t.$t("navmenu.homeFeed")))])]),t._v(" "),t.hasLocalTimeline?e("a",{staticClass:"nav-link text-center",class:["/i/web/timeline/local"==t.$route.path?"router-link-exact-active active":""],attrs:{href:"/i/web/timeline/local"},on:{click:function(e){return e.preventDefault(),t.goToFeed("local")}}},[t._m(2),t._v(" "),e("div",{staticClass:"small"},[t._v(t._s(t.$t("navmenu.localFeed")))])]):t._e(),t._v(" "),t.hasNetworkTimeline?e("a",{staticClass:"nav-link text-center",class:["/i/web/timeline/global"==t.$route.path?"router-link-exact-active active":""],attrs:{href:"/i/web/timeline/global"},on:{click:function(e){return e.preventDefault(),t.goToFeed("global")}}},[t._m(3),t._v(" "),e("div",{staticClass:"small"},[t._v(t._s(t.$t("navmenu.globalFeed")))])]):t._e()]),t._v(" "),e("hr",{staticClass:"mb-0",staticStyle:{"margin-top":"-5px",opacity:"0.4"}})]),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link",attrs:{to:"/i/web/discover"}},[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-compass"})]),t._v("\n "+t._s(t.$t("navmenu.discover"))+"\n ")])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link d-flex justify-content-between align-items-center",attrs:{to:"/i/web/direct"}},[e("span",[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-envelope"})]),t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("navmenu.directMessages"))+"\n\t\t\t\t\t\t")])])],1),t._v(" "),t.hasGroups?e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link",attrs:{to:"/groups/feed"}},[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-layer-group"})]),t._v("\n "+t._s(t.$t("navmenu.groups"))+"\n ")])],1):t._e(),t._v(" "),t.hasLiveStreams?e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link d-flex justify-content-between align-items-center",attrs:{to:"/i/web/livestreams"}},[e("span",[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-record-vinyl"})]),t._v("\n\t\t\t\t\t\t\tLivestreams\n\t\t\t\t\t\t")])])],1):t._e(),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link d-flex justify-content-between align-items-center",attrs:{to:"/i/web/notifications"}},[e("span",[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-bell"})]),t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("navmenu.notifications"))+"\n\t\t\t\t\t\t")])])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("hr",{staticClass:"mt-n1",staticStyle:{opacity:"0.4","margin-bottom":"0"}}),t._v(" "),e("router-link",{staticClass:"nav-link",attrs:{to:"/i/web/profile/"+t.user.id}},[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-user"})]),t._v("\n "+t._s(t.$t("navmenu.profile"))+"\n ")])],1),t._v(" "),t.user.is_admin?e("li",{staticClass:"nav-item"},[e("hr",{staticClass:"mt-n1",staticStyle:{opacity:"0.4","margin-bottom":"0"}}),t._v(" "),e("a",{staticClass:"nav-link",attrs:{href:"/i/admin/dashboard"}},[t._m(4),t._v("\n "+t._s(t.$t("navmenu.admin"))+"\n ")])]):t._e(),t._v(" "),e("li",{staticClass:"nav-item"},[e("hr",{staticClass:"mt-n1",staticStyle:{opacity:"0.4","margin-bottom":"0"}}),t._v(" "),e("a",{staticClass:"nav-link",attrs:{href:"/?force_old_ui=1"}},[t._m(5),t._v("\n "+t._s(t.$t("navmenu.backToPreviousDesign"))+"\n ")])])])]),t._v(" "),e("div",{staticClass:"sidebar-attribution pr-3 d-flex flex-wrap justify-content-between align-items-center",staticStyle:{gap:"5px"}},[e("router-link",{attrs:{to:"/i/web/language"}},[e("i",{staticClass:"fal fa-language fa-2x",attrs:{alt:"Select a language"}})]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/site/help"}},[t._v(t._s(t.$t("navmenu.help")))]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/site/privacy"}},[t._v(t._s(t.$t("navmenu.privacy")))]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/site/terms"}},[t._v(t._s(t.$t("navmenu.terms")))]),t._v(" "),t.showLegalNoticeLink?e("a",{staticClass:"font-weight-bold",attrs:{href:"/site/legal-notice"}},[t._v(t._s(t.$t("navmenu.legalNotice")))]):t._e(),t._v(" "),e("a",{staticClass:"font-weight-bold powered-by",attrs:{href:"https://pixelfed.org"}},[t._v("Powered by Pixelfed")])],1),t._v(" "),e("update-avatar",{ref:"avatarUpdate",attrs:{user:t.user}})],1)},i=[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-outline-primary dropdown-toggle dropdown-toggle-split",attrs:{type:"button","data-toggle":"dropdown","aria-expanded":"false"}},[t("span",{staticClass:"sr-only"},[this._v("Toggle Dropdown")])])},function(){var t=this._self._c;return t("div",{staticClass:"icon text-lighter"},[t("i",{staticClass:"far fa-home fa-lg"})])},function(){var t=this._self._c;return t("div",{staticClass:"icon text-lighter"},[t("i",{staticClass:"fas fa-stream fa-lg"})])},function(){var t=this._self._c;return t("div",{staticClass:"icon text-lighter"},[t("i",{staticClass:"far fa-globe fa-lg"})])},function(){var t=this._self._c;return t("span",{staticClass:"icon text-lighter"},[t("i",{staticClass:"far fa-tools"})])},function(){var t=this._self._c;return t("span",{staticClass:"icon text-lighter"},[t("i",{staticClass:"fas fa-chevron-left"})])}]},47907(t,e,a){a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"compose-modal-component"},[e("input",{staticClass:"w-100 h-100 d-none file-input",attrs:{type:"file",id:"pf-dz",name:"media",multiple:"",accept:t.config.uploader.media_types},on:{input:t.onInputFile}}),t._v(" "),e("canvas",{staticClass:"d-none",attrs:{id:"pr_canvas"}}),t._v(" "),e("img",{staticClass:"d-none",attrs:{id:"pr_img"}}),t._v(" "),e("div",{staticClass:"timeline"},[t.uploading?e("div",[e("div",{staticClass:"card status-card card-md-rounded-0 w-100 h-100 bg-light py-3",staticStyle:{"border-bottom":"1px solid #f1f1f1"}},[e("div",{staticClass:"p-5 mt-2"},[e("b-progress",{attrs:{value:t.uploadProgress,max:100,striped:"",animated:!0}}),t._v(" "),e("p",{staticClass:"text-center mb-0 font-weight-bold"},[t._v("Uploading ... ("+t._s(t.uploadProgress)+"%)")])],1)])]):"cameraRoll"==t.page?e("div",[e("div",{staticClass:"card status-card card-md-rounded-0",staticStyle:{display:"flex"}},[t._m(0),t._v(" "),e("div",{staticClass:"h-100 card-body p-0 border-top",staticStyle:{width:"100%","min-height":"400px"}},[t.cameraRollMedia.length>0?e("div",{staticClass:"row p-0 m-0"},t._l(t.cameraRollMedia,function(t,a){return e("div",{class:[0==a?"col-12 p-0":"col-3 p-0"]},[e("div",{staticClass:"card info-overlay p-0 rounded-0 shadow-none border"},[e("div",{staticClass:"square"},[e("img",{staticClass:"square-content",attrs:{src:t.preview_url}})])])])}),0):e("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center"},[e("span",{staticClass:"w-100 h-100"},[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"}},[t._v("Upload")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return t.fetchCameraRollDrafts()}}},[t._v("Load Camera Roll")])])])])])]):"poll"==t.page?e("div",[e("div",{staticClass:"card status-card card-md-rounded-0",staticStyle:{display:"flex"}},[e("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between bg-white"},[t._m(1),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("\n New Poll\n ")]),t._v(" "),t.postingPoll?e("span",[t._m(2)]):!t.postingPoll&&t.pollOptions.length>1&&t.composeText.length?e("button",{staticClass:"btn btn-primary btn-sm font-weight-bold",on:{click:t.postNewPoll}},[e("span",[t._v("Create Poll")])]):e("span",{staticClass:"font-weight-bold text-lighter"},[t._v("\n Create Poll\n ")])]),t._v(" "),e("div",{staticClass:"h-100 card-body p-0 border-top",staticStyle:{width:"100%","min-height":"400px"}},[e("div",{staticClass:"border-bottom mt-2"},[e("div",{staticClass:"media px-3"},[e("img",{staticClass:"rounded-circle",attrs:{src:t.profile.avatar,width:"42px",height:"42px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small d-none"},[t._v("Caption")]),t._v(" "),e("vue-tribute",{attrs:{options:t.tributeSettings}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control border-0 rounded-0 no-focus",attrs:{rows:"3",placeholder:"Write a poll question..."},domProps:{value:t.composeText},on:{keyup:function(e){t.composeTextLength=t.composeText.length},input:function(e){e.target.composing||(t.composeText=e.target.value)}}})]),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(t.composeTextLength)+"/"+t._s(t.config.uploader.max_caption_length))])],1)])])]),t._v(" "),e("div",{staticClass:"p-3"},[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n Poll Options\n ")]),t._v(" "),t.pollOptions.length<4?e("div",{staticClass:"form-group mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptionModel,expression:"pollOptionModel"}],staticClass:"form-control rounded-pill",attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptionModel},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.savePollOption.apply(null,arguments)},input:function(e){e.target.composing||(t.pollOptionModel=e.target.value)}}})]):t._e(),t._v(" "),t._l(t.pollOptions,function(a,s){return e("div",{staticClass:"form-group mb-4 d-flex align-items-center",staticStyle:{"max-width":"400px",position:"relative"}},[e("span",{staticClass:"font-weight-bold mr-2",staticStyle:{position:"absolute",left:"10px"}},[t._v(t._s(s+1)+".")]),t._v(" "),t.pollOptions[s].length<50?e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[s],expression:"pollOptions[index]"}],staticClass:"form-control rounded-pill",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptions[s]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,s,e.target.value)}}}):e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[s],expression:"pollOptions[index]"}],staticClass:"form-control",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{placeholder:"Add a poll option, press enter to save",rows:"3"},domProps:{value:t.pollOptions[s]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,s,e.target.value)}}}),t._v(" "),e("button",{staticClass:"btn btn-danger btn-sm rounded-pill font-weight-bold",staticStyle:{position:"absolute",right:"5px"},on:{click:function(e){return t.deletePollOption(s)}}},[e("i",{staticClass:"fas fa-trash"}),t._v(" Delete\n ")])])}),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n Poll Expiry\n ")]),t._v(" "),e("div",{staticClass:"form-group"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.pollExpiry,expression:"pollExpiry"}],staticClass:"form-control rounded-pill",staticStyle:{width:"200px"},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.pollExpiry=e.target.multiple?a:a[0]}}},[e("option",{attrs:{value:"60"}},[t._v("1 hour")]),t._v(" "),e("option",{attrs:{value:"360"}},[t._v("6 hours")]),t._v(" "),e("option",{attrs:{value:"1440",selected:""}},[t._v("24 hours")]),t._v(" "),e("option",{attrs:{value:"10080"}},[t._v("7 days")])])])]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n Poll Visibility\n ")]),t._v(" "),e("div",{staticClass:"form-group"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.visibility,expression:"visibility"}],staticClass:"form-control rounded-pill",staticStyle:{"max-width":"200px"},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.visibility=e.target.multiple?a:a[0]}}},[e("option",{attrs:{value:"public"}},[t._v("Public")]),t._v(" "),e("option",{attrs:{value:"private"}},[t._v("Followers Only")])])])])])],2)])])]):e("div",[e("div",{staticClass:"card status-card card-md-rounded-0 w-100 h-100",staticStyle:{display:"flex"}},[e("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between bg-white"},[e("div",[1==t.page?e("a",{staticClass:"font-weight-bold text-decoration-none text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.closeModal()}}},[e("i",{staticClass:"fas fa-times fa-lg"}),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.pageTitle))])]):2==t.page?e("span",[t.config.uploader.album_limit>t.media.length?e("button",{staticClass:"btn btn-outline-primary btn-sm font-weight-bold",attrs:{id:"cm-add-media-btn"},on:{click:function(e){return e.preventDefault(),t.addMedia.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-plus"})]):e("button",{staticClass:"btn btn-outline-secondary btn-sm font-weight-bold",attrs:{disabled:""}},[e("i",{staticClass:"fas fa-plus"})]),t._v(" "),e("b-tooltip",{attrs:{target:"cm-add-media-btn",triggers:"hover"}},[t._v("\n Upload another photo or video\n ")])],1):3==t.page?e("span",[e("a",{staticClass:"text-lighter text-decoration-none mr-3 d-flex align-items-center",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goBack()}}},[e("i",{staticClass:"fas fa-long-arrow-alt-left fa-lg mr-2"}),t._v(" "),e("span",{staticClass:"btn btn-outline-secondary btn-sm px-2 py-0 disabled",attrs:{disabled:""}},[t._v(t._s(t.media.length))])]),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.pageTitle))])]):e("span",[e("a",{staticClass:"text-lighter text-decoration-none mr-3",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goBack()}}},[e("i",{staticClass:"fas fa-long-arrow-alt-left fa-lg"})])]),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.pageTitle))])]),t._v(" "),2==t.page?e("div",[1==t.media.length?e("a",{staticClass:"text-center text-dark",attrs:{href:"#",title:"Crop & Resize",id:"cm-crop-btn"},on:{click:function(e){return e.preventDefault(),t.showCropPhotoCard.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-crop-alt fa-lg"})]):t._e(),t._v(" "),e("b-tooltip",{attrs:{target:"cm-crop-btn",triggers:"hover"}},[t._v("\n Crop & Resize\n ")])],1):t._e(),t._v(" "),e("div",[t.pageLoading?e("span",[t._m(3)]):e("span",[!t.pageLoading&&t.page>1&&t.page<=2||1==t.page&&0!=t.ids.length||"cropPhoto"==t.page?e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.nextPage.apply(null,arguments)}}},[t._v("Next")]):t._e(),t._v(" "),t.pageLoading||3!=t.page?t._e():[t.isPosting?e("b-spinner",{attrs:{small:""}}):e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.compose()}}},[t._v("Post")])],t._v(" "),t.pageLoading||"addText"!=t.page?t._e():e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.composeTextPost()}}},[t._v("Post")]),t._v(" "),t.pageLoading||"video-2"!=t.page?t._e():e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.compose()}}},[t._v("Post")])],2)])]),t._v(" "),e("div",{staticClass:"card-body p-0 border-top"},["licensePicker"==t.page?e("div",{staticClass:"w-100 h-100",staticStyle:{"min-height":"280px"}},[e("div",{staticClass:"list-group list-group-flush"},t._l(t.availableLicenses,function(a,s){return e("div",{staticClass:"list-group-item cursor-pointer",class:{"text-primary":t.licenseId===a.id,"font-weight-bold":t.licenseId===a.id},on:{click:function(e){return t.toggleLicense(a)}}},[t._v("\n "+t._s(a.name)+"\n ")])}),0)]):"textOptions"==t.page?e("div",{staticClass:"w-100 h-100",staticStyle:{"min-height":"280px"}}):"addText"==t.page?e("div",{staticClass:"w-100 h-100",staticStyle:{"min-height":"280px"}},[e("div",{staticClass:"mt-2"},[e("div",{staticClass:"media px-3"},[e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small d-none"},[t._v("Body")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control border-0 rounded-0 no-focus",staticStyle:{"font-size":"18px",resize:"none"},attrs:{rows:"7",placeholder:"What's happening?"},domProps:{value:t.composeText},on:{keyup:function(e){t.composeTextLength=t.composeText.length},input:function(e){e.target.composing||(t.composeText=e.target.value)}}}),t._v(" "),e("div",{staticClass:"border-bottom"}),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0 font-weight-bold"},[t._v(t._s(t.composeTextLength)+"/"+t._s(t.config.uploader.max_caption_length))]),t._v(" "),e("p",{staticClass:"mb-0 mt-2"},[e("a",{staticClass:"btn btn-primary rounded-pill mr-2",staticStyle:{height:"37px"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showTextOptions()}}},[e("i",{staticClass:"fas fa-palette px-3 text-white"})]),t._v(" "),e("a",{staticClass:"btn rounded-pill mx-3 d-inline-flex align-items-center",class:[t.nsfw?"btn-danger":"btn-outline-lighter"],staticStyle:{height:"37px"},attrs:{href:"#",title:"Mark as sensitive/not safe for work"},on:{click:function(e){e.preventDefault(),t.nsfw=!t.nsfw}}},[e("i",{staticClass:"far fa-flag px-3"}),t._v(" "),e("span",{staticClass:"text-muted small font-weight-bold"})]),t._v(" "),e("a",{staticClass:"btn btn-outline-lighter rounded-pill d-inline-flex align-items-center",staticStyle:{height:"37px"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[e("i",{staticClass:"fas fa-eye mr-2"}),t._v(" "),e("span",{staticClass:"text-muted small font-weight-bold"},[t._v(t._s(t.visibilityTag))])])])])])])])]):1==t.page?e("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center",staticStyle:{"min-height":"400px"}},[e("div",{staticClass:"text-center"},[0==t.media.length?e("div",{staticClass:"card my-md-3 shadow-none border compose-action text-decoration-none text-dark"},[e("div",{staticClass:"card-body py-2",on:{click:function(e){return e.preventDefault(),t.addMedia.apply(null,arguments)}}},[e("div",{staticClass:"media"},[t._m(4),t._v(" "),e("div",{staticClass:"media-body text-left"},[t._m(5),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Share up to "+t._s(t.config.uploader.album_limit)+" photos or videos")]),t._v(" "),e("p",{staticClass:"mb-0 text-muted small"},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.config.uploader.media_types.split(",").map(function(t){return t.split("/")[1]}).join(", ")))]),t._v(" allowed up to "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.filesize(t.config.uploader.max_photo_size)))])])])])])]):t._e(),t._v(" "),t._e(),t._v(" "),1==t.config.features.stories?e("a",{staticClass:"card my-md-3 shadow-none border compose-action text-decoration-none text-dark",attrs:{href:"/i/stories/new"}},[t._m(7)]):t._e(),t._v(" "),t._e(),t._v(" "),t._m(9),t._v(" "),t._m(10)])]):"cropPhoto"==t.page?e("div",{staticClass:"w-100 h-100"},[t.media.length>0?e("div",[e("vue-cropper",{ref:"cropper",attrs:{relativeZoom:t.cropper.zoom,aspectRatio:t.cropper.aspectRatio,viewMode:t.cropper.viewMode,zoomable:t.cropper.zoomable,rotatable:!0,src:t.media[t.carouselCursor].url}})],1):t._e()]):2==t.page?e("div",{staticClass:"w-100 h-100"},[1==t.media.length?e("div",["image"===t.media[0].type?[e("media-editor-preview",{staticClass:"media-editor",attrs:{editor:t.editor,sourceIndex:0}}),t._v(" "),e("hr"),t._v(" "),e("media-editor-filter-menu",{staticClass:"media-editor",attrs:{editor:t.editor,sourceIndex:0}})]:e("img",{staticClass:"d-block img-fluid w-100",attrs:{src:"/storage/no-preview.png",alt:t.media[t.carouselCursor].description,title:t.media[t.carouselCursor].description}})],2):t.media.length>1?e("div",{staticClass:"d-flex-inline px-2 pt-2"},[e("ul",{staticClass:"nav media-drawer-filters text-center pb-3"},[e("li",{staticClass:"nav-item mx-md-4"},[t._v("ย ")]),t._v(" "),t._l(t.media,function(a,s){return e("li",{key:s+(t.ids[s]||a.url||""),staticClass:"nav-item mx-md-4"},[e("div",{staticClass:"nav-link",staticStyle:{display:"block",width:"300px",height:"300px"},on:{click:function(e){t.carouselCursor=s}}},[e("div",{class:[a.filter_class?a.filter_class:""],staticStyle:{width:"100%",height:"100%",display:"block"}},["image"===a.type?e("media-editor-preview",{staticClass:"media-editor",class:"rounded "+[s==t.carouselCursor?" border border-primary shadow":""],staticStyle:{width:"100%",height:"100%"},attrs:{editor:t.editor,sourceIndex:s}}):e("img",{staticClass:"d-block img-fluid w-100",attrs:{src:"/storage/no-preview.png",alt:t.media[t.carouselCursor].description,title:t.media[t.carouselCursor].description}})],1)]),t._v(" "),s==t.carouselCursor?e("div",{staticClass:"text-center mb-0 small text-lighter font-weight-bold pt-2"},[e("button",{staticClass:"btn btn-link",on:{click:function(e){return t.mediaReorder("prev")}}},[e("i",{staticClass:"far fa-chevron-circle-left"})]),t._v(" "),e("span",{staticClass:"cursor-pointer",on:{click:function(e){return e.preventDefault(),t.showCropPhotoCard.apply(null,arguments)}}},[t._v("Crop")]),t._v(" "),e("span",{staticClass:"cursor-pointer px-3",on:{click:function(e){return e.preventDefault(),t.showEditMediaCard()}}},[t._v("Edit")]),t._v(" "),e("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.deleteMedia()}}},[t._v("Delete")]),t._v(" "),e("button",{staticClass:"btn btn-link",on:{click:function(e){return t.mediaReorder("next")}}},[e("i",{staticClass:"far fa-chevron-circle-right"})])]):t._e()])}),t._v(" "),e("li",{staticClass:"nav-item mx-md-4"},[t._v("ย ")])],2),t._v(" "),e("hr"),t._v(" "),"image"==t.media[t.carouselCursor].type?e("div",{staticClass:"align-items-center px-2 pt-2"},[e("media-editor-filter-menu",{staticClass:"media-editor",attrs:{editor:t.editor,sourceIndex:t.carouselCursor}})],1):t._e()]):e("div",[e("p",{staticClass:"mb-0 p-5 text-center font-weight-bold"},[t._v("An error occured, please refresh the page.")])])]):3==t.page?e("div",{staticClass:"w-100 h-100"},[e("div",{staticClass:"border-bottom mt-2"},[e("div",{staticClass:"media px-3"},[e("img",{staticClass:"mr-2",attrs:{src:t.media[0].preview_url,width:"42px",height:"42px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small d-none"},[t._v("Caption")]),t._v(" "),e("vue-tribute",{attrs:{options:t.tributeSettings}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control border-0 rounded-0 no-focus",attrs:{rows:"3",placeholder:"Write a caption..."},domProps:{value:t.composeText},on:{keyup:function(e){t.composeTextLength=t.composeText.length},input:function(e){e.target.composing||(t.composeText=e.target.value)}}})]),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(t.composeTextLength)+"/"+t._s(t.config.uploader.max_caption_length))])],1)])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer d-flex justify-content-between",on:{click:function(e){return t.showMediaDescriptionsCard()}}},[e("span",[t._v("Alt Text")]),t._v(" "),e("span",[t.media&&t.media.filter(function(t){return t.alt}).length==t.media.length?e("i",{staticClass:"fas fa-check-circle fa-lg text-success"}):e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])]),t._v(" "),e("div",{staticClass:"border-bottom px-4 mb-0 py-2"},[e("div",{staticClass:"d-flex justify-content-between"},[t._m(11),t._v(" "),e("div",[e("div",{staticClass:"custom-control custom-switch",staticStyle:{"z-index":"9999"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.nsfw,expression:"nsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"asnsfw"},domProps:{checked:Array.isArray(t.nsfw)?t._i(t.nsfw,null)>-1:t.nsfw},on:{change:function(e){var a=t.nsfw,s=e.target,i=!!s.checked;if(Array.isArray(a)){var o=t._i(a,null);s.checked?o<0&&(t.nsfw=a.concat([null])):o>-1&&(t.nsfw=a.slice(0,o).concat(a.slice(o+1)))}else t.nsfw=i}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"asnsfw"}})])])]),t._v(" "),t.nsfw?e("div",[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.spoilerText,expression:"spoilerText"}],staticClass:"form-control mt-3",attrs:{placeholder:"Add an optional content warning or spoiler text",maxlength:"140"},domProps:{value:t.spoilerText},on:{input:function(e){e.target.composing||(t.spoilerText=e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(t.spoilerTextLength)+"/140")])]):t._e()]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showTagCard()}}},[t._v("Tag people")])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showCollectionCard()}}},[t._m(12),t._v(" "),e("span",{staticClass:"float-right"},[t.collectionsSelected.length?e("span",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px 5px","text-transform":"uppercase"},attrs:{href:"#",disabled:""}},[t._v("\n "+t._s(t.collectionsSelected.length)+"\n ")]):t._e(),t._v(" "),t._m(13)])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showLicenseCard()}}},[e("span",[t._v("Add license")]),t._v(" "),e("span",{staticClass:"float-right"},[t.licenseTitle?e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#",disabled:""},on:{click:function(e){return e.preventDefault(),t.showLicenseCard()}}},[t._v(t._s(t.licenseTitle))]):t._e(),t._v(" "),e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showLicenseCard()}}},[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[t.place?e("p",{staticClass:"px-4 mb-0 py-2"},[e("span",{staticClass:"text-lighter"},[t._v("Location:")]),t._v(" "+t._s(t.place.name)+", "+t._s(t.place.country)+"\n "),e("span",{staticClass:"float-right"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-2",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showLocationCard()}}},[t._v("Edit")]),t._v(" "),e("a",{staticClass:"btn btn-outline-secondary btn-sm small",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.place=!1}}},[t._v("Remove")])])]):e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showLocationCard()}}},[t._v("Add location")])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2"},[e("span",[t._v("Audience")]),t._v(" "),e("span",{staticClass:"float-right"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#",disabled:""},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[t._v(t._s(t.visibilityTag))]),t._v(" "),e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])])]),t._v(" "),e("div",{staticStyle:{"min-height":"200px"}},[e("p",{staticClass:"px-4 mb-0 py-2 small font-weight-bold text-muted cursor-pointer",on:{click:function(e){return t.showAdvancedSettingsCard()}}},[t._v("Advanced settings")])])]):"tagPeople"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("autocomplete",{directives:[{name:"show",rawName:"v-show",value:t.taggedUsernames.length<10,expression:"taggedUsernames.length < 10"}],ref:"autocomplete",attrs:{search:t.tagSearch,placeholder:"@pixelfed","aria-label":"Search usernames","get-result-value":t.getTagResultValue},on:{submit:t.onTagSubmitLocation}}),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:t.taggedUsernames.length<10,expression:"taggedUsernames.length < 10"}],staticClass:"font-weight-bold text-muted small"},[t._v("You can tag "+t._s(10-t.taggedUsernames.length)+" more "+t._s(9==t.taggedUsernames.length?"person":"people")+"!")]),t._v(" "),e("p",{staticClass:"font-weight-bold text-center mt-3"},[t._v("Tagged People")]),t._v(" "),e("div",{staticClass:"list-group"},[t._l(t.taggedUsernames,function(a,s){return e("div",{staticClass:"list-group-item d-flex justify-content-between"},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-2 rounded-circle border",attrs:{src:a.avatar,width:"24px",height:"24px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(a.name))])])]),t._v(" "),e("div",{staticClass:"custom-control custom-switch"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.privacy,expression:"tag.privacy"}],staticClass:"custom-control-input disabled",attrs:{type:"checkbox",id:"cci-tagged-privacy-switch"+s,disabled:""},domProps:{checked:Array.isArray(a.privacy)?t._i(a.privacy,null)>-1:a.privacy},on:{change:function(e){var s=a.privacy,i=e.target,o=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&t.$set(a,"privacy",s.concat([null])):n>-1&&t.$set(a,"privacy",s.slice(0,n).concat(s.slice(n+1)))}else t.$set(a,"privacy",o)}}}),t._v(" "),e("label",{staticClass:"custom-control-label font-weight-bold text-lighter",attrs:{for:"cci-tagged-privacy-switch"+s}},[t._v(t._s(a.privacy?"Public":"Private"))]),t._v(" "),e("a",{staticClass:"ml-3",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.untagUsername(s)}}},[e("i",{staticClass:"fas fa-times text-muted"})])])])}),t._v(" "),0==t.taggedUsernames.length?e("div",{staticClass:"list-group-item p-3"},[e("p",{staticClass:"text-center mb-0 font-weight-bold text-lighter"},[t._v("Search usernames to tag.")])]):t._e()],2),t._v(" "),e("p",{staticClass:"font-weight-bold text-center small text-muted pt-3 mb-0"},[t._v("When you tag someone, they are sent a notification."),e("br"),t._v("For more information on tagging, "),e("a",{staticClass:"text-primary",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showTagHelpCard()}}},[t._v("click here")]),t._v(".")])],1):"tagPeopleHelp"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("p",{staticClass:"mb-0 text-center py-3 px-2 lead"},[t._v("Tagging someone is like mentioning them, with the option to make it private between you.")]),t._v(" "),e("p",{staticClass:"mb-3 py-3 px-2 font-weight-lighter"},[t._v("\n You can choose to tag someone in public or private mode. Public mode will allow others to see who you tagged in the post and private mode tagged users will not be shown to others.\n ")])]):"addLocation"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("p",{staticClass:"mb-0"},[t._v("Add Location")]),t._v(" "),e("autocomplete",{attrs:{search:t.locationSearch,placeholder:"Search locations ...","aria-label":"Search locations ...","get-result-value":t.getResultValue},on:{submit:t.onSubmitLocation}})],1):"advancedSettings"==t.page?e("div",{staticClass:"w-100 h-100"},[e("div",{staticClass:"list-group list-group-flush"},[e("div",{staticClass:"list-group-item d-flex justify-content-between"},[t._m(14),t._v(" "),e("div",[e("div",{staticClass:"custom-control custom-switch",staticStyle:{"z-index":"9999"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.commentsDisabled,expression:"commentsDisabled"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"asdisablecomments"},domProps:{checked:Array.isArray(t.commentsDisabled)?t._i(t.commentsDisabled,null)>-1:t.commentsDisabled},on:{change:function(e){var a=t.commentsDisabled,s=e.target,i=!!s.checked;if(Array.isArray(a)){var o=t._i(a,null);s.checked?o<0&&(t.commentsDisabled=a.concat([null])):o>-1&&(t.commentsDisabled=a.slice(0,o).concat(a.slice(o+1)))}else t.commentsDisabled=i}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"asdisablecomments"}})])])]),t._v(" "),e("a",{staticClass:"list-group-item",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showMediaDescriptionsCard()}}},[t._m(15)])])]):"visibility"==t.page?e("div",{staticClass:"w-100 h-100"},[e("div",{staticClass:"list-group list-group-flush"},[t.profile.locked?t._e():e("div",{staticClass:"list-group-item lead cursor-pointer",class:{"text-primary":"public"==t.visibility},on:{click:function(e){return t.toggleVisibility("public")}}},[t._v("\n Public\n ")]),t._v(" "),t.profile.locked?t._e():e("div",{staticClass:"list-group-item lead cursor-pointer",class:{"text-primary":"unlisted"==t.visibility},on:{click:function(e){return t.toggleVisibility("unlisted")}}},[t._v("\n Unlisted\n ")]),t._v(" "),e("div",{staticClass:"list-group-item lead cursor-pointer",class:{"text-primary":"private"==t.visibility},on:{click:function(e){return t.toggleVisibility("private")}}},[t._v("\n Followers Only\n ")])])]):"altText"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[t._l(t.media,function(a,s){return e("div",[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3",attrs:{src:a.preview_url,width:"50px",height:"50px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:a.alt,expression:"m.alt"}],staticClass:"form-control",attrs:{placeholder:"Add a media description here...",maxlength:t.maxAltTextLength,rows:"4"},domProps:{value:a.alt},on:{input:function(e){e.target.composing||t.$set(a,"alt",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(a.alt?a.alt.length:0)+"/"+t._s(t.maxAltTextLength))])])]),t._v(" "),e("hr")])}),t._v(" "),e("p",{staticClass:"d-flex justify-content-between mb-0"},[e("button",{staticClass:"btn btn-link text-muted font-weight-bold text-decoration-none",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Save")])])],2):"addToCollection"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[t.collectionsLoaded&&t.collections.length?e("div",{staticClass:"list-group mb-3 collections-list-group"},[t._l(t.collections,function(a,s){return e("div",{staticClass:"list-group-item cursor-pointer compose-action border",class:{active:t.collectionsSelected.includes(s)},on:{click:function(e){return t.toggleCollectionItem(s)}}},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3",attrs:{src:a.thumb,alt:"",width:"50px",height:"50px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("h5",{staticClass:"mt-0"},[t._v(t._s(a.title))]),t._v(" "),e("p",{staticClass:"mb-0 text-muted small"},[e("span",[t._v(t._s(a.post_count)+" Posts")]),t._v(" "),e("span",[t._v("ยท")]),t._v(" "),"draft"===a.visibility?e("span",{staticClass:"primary"},[e("i",{staticClass:"far fa-lock fa-sm"}),t._v(" "+t._s(t.$t("profile.draft")))]):e("span",[t._v("Created "+t._s(t.timeago(a.published_at))+" ago")])])])])])}),t._v(" "),t.collectionsCanLoadMore?e("button",{staticClass:"btn btn-light btn-block font-weight-bold mt-3",on:{click:t.loadMoreCollections}},[t._v("\n Load more\n ")]):t._e()],2):t._e(),t._v(" "),e("p",{staticClass:"d-flex justify-content-between mb-0"},[e("button",{staticClass:"btn btn-link text-muted font-weight-bold text-decoration-none",attrs:{type:"button"},on:{click:function(e){return t.clearSelectedCollections()}}},[t._v("Clear")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Save")])])]):"schedulePost"==t.page||"mediaMetadata"==t.page||"addToStory"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("p",{staticClass:"text-center lead text-muted mb-0 py-5"},[t._v("This feature is not available yet.")])]):"editMedia"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3",attrs:{src:t.media[t.carouselCursor].preview_url,width:"50px",height:"50px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small"},[t._v("Media Description")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.media[t.carouselCursor].alt,expression:"media[carouselCursor].alt"}],staticClass:"form-control",attrs:{placeholder:"Add a media description here...",maxlength:t.config.uploader.max_altext_length},domProps:{value:t.media[t.carouselCursor].alt},on:{input:function(e){e.target.composing||t.$set(t.media[t.carouselCursor],"alt",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-muted mb-0 d-flex justify-content-between"},[e("span",[t._v("Describe your photo for people with visual impairments.")]),t._v(" "),e("span",[t._v(t._s(t.media[t.carouselCursor].alt?t.media[t.carouselCursor].alt.length:0)+"/"+t._s(t.config.uploader.max_altext_length))])])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small"},[t._v("License")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.licenseId,expression:"licenseId"}],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.licenseId=e.target.multiple?a:a[0]}}},t._l(t.availableLicenses,function(a,s){return e("option",{domProps:{value:a.id,selected:a.id==t.licenseId}},[t._v("\n "+t._s(a.name)+"\n ")])}),0)])])]),t._v(" "),e("hr"),t._v(" "),e("p",{staticClass:"d-flex justify-content-between mb-0"},[e("button",{staticClass:"btn btn-link text-muted font-weight-bold text-decoration-none",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Save")])])]):"video-2"==t.page?e("div",{staticClass:"w-100 h-100"},[t.video.title.length?e("div",{staticClass:"border-bottom"},[e("div",{staticClass:"media p-3"},[e("img",{staticClass:"mr-2",attrs:{src:t.media[0].preview_url,width:"100px",height:"70px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-1"},[t._v(t._s(t.video.title?t.video.title.slice(0,70):"Untitled"))]),t._v(" "),e("p",{staticClass:"mb-0 text-muted small"},[t._v(t._s(t.video.description?t.video.description.slice(0,90):"No description"))])])])]):t._e(),t._v(" "),e("div",{staticClass:"border-bottom d-flex justify-content-between px-4 mb-0 py-2"},[t._m(16),t._v(" "),e("div",[e("div",{staticClass:"custom-control custom-switch",staticStyle:{"z-index":"9999"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.nsfw,expression:"nsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"asnsfw"},domProps:{checked:Array.isArray(t.nsfw)?t._i(t.nsfw,null)>-1:t.nsfw},on:{change:function(e){var a=t.nsfw,s=e.target,i=!!s.checked;if(Array.isArray(a)){var o=t._i(a,null);s.checked?o<0&&(t.nsfw=a.concat([null])):o>-1&&(t.nsfw=a.slice(0,o).concat(a.slice(o+1)))}else t.nsfw=i}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"asnsfw"}})])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showLicenseCard()}}},[t._v("Add license")])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2"},[e("span",[t._v("Audience")]),t._v(" "),e("span",{staticClass:"float-right"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#",disabled:""},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[t._v(t._s(t.visibilityTag))]),t._v(" "),e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])])]),t._v(" "),e("div",{staticClass:"p-3"},[e("div",{staticClass:"form-group"},[e("p",{staticClass:"small font-weight-bold text-muted mb-0"},[t._v("Title")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.video.title,expression:"video.title"}],staticClass:"form-control",attrs:{placeholder:"Add a good title"},domProps:{value:t.video.title},on:{input:function(e){e.target.composing||t.$set(t.video,"title",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text mb-0 small text-muted"},[t._v(t._s(t.video.title.length)+"/70")])]),t._v(" "),e("div",{staticClass:"form-group mb-0"},[e("p",{staticClass:"small font-weight-bold text-muted mb-0"},[t._v("Description")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.video.description,expression:"video.description"}],staticClass:"form-control",attrs:{placeholder:"Add an optional description",maxlength:"5000",rows:"5"},domProps:{value:t.video.description},on:{input:function(e){e.target.composing||t.$set(t.video,"description",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text mb-0 small text-muted"},[t._v(t._s(t.video.description.length)+"/5000")])])])]):t._e()]),t._v(" "),"cropPhoto"==t.page?e("div",{staticClass:"card-footer bg-white d-flex justify-content-between"},[e("div",[e("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.rotate}},[e("i",{staticClass:"fas fa-redo"})])]),t._v(" "),e("div",[e("div",{staticClass:"d-inline-block button-group"},[e("button",{class:"btn font-weight-bold "+[t.cropper.aspectRatio==16/9?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(16/9)}}},[t._v("16:9")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[t.cropper.aspectRatio==4/3?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(4/3)}}},[t._v("4:3")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[1.5==t.cropper.aspectRatio?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(1.5)}}},[t._v("3:2")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[1==t.cropper.aspectRatio?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(1)}}},[t._v("1:1")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[t.cropper.aspectRatio==2/3?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(2/3)}}},[t._v("2:3")])])])]):t._e()])])])])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between bg-white"},[e("span",{staticClass:"pr-3"},[e("i",{staticClass:"fas fa-cog fa-lg text-muted"})]),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("\n Camera Roll\n ")]),t._v(" "),e("span",{staticClass:"text-primary font-weight-bold"},[t._v("Upload")])])},function(){var t=this._self._c;return t("span",{staticClass:"pr-3"},[t("i",{staticClass:"fas fa-info-circle fa-lg text-primary"})])},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._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._self._c;return t("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%","background-color":"#008DF5"}},[t("i",{staticClass:"fal fa-bolt text-white fa-lg"})])},function(){var t=this._self._c;return t("p",{staticClass:"mb-0"},[t("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[this._v("New Post")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"2px solid #008DF5"}},[e("i",{staticClass:"far fa-edit text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Text Post")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Share a text only post")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body py-2"},[e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"1px solid #008DF5"}},[e("i",{staticClass:"fas fa-history text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Story")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Add to your story")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body py-2"},[e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"2px solid #008DF5"}},[e("i",{staticClass:"fas fa-poll-h text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Poll")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Create a poll")])])])])},function(){var t=this,e=t._self._c;return e("a",{staticClass:"card my-md-3 shadow-none border compose-action text-decoration-none text-dark",attrs:{href:"/i/collections/create"}},[e("div",{staticClass:"card-body py-2"},[e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"1px solid #008DF5"}},[e("i",{staticClass:"fal fa-images text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Collection")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("New collection of posts")])])])])])},function(){var t=this._self._c;return t("p",{staticClass:"py-3"},[t("a",{staticClass:"font-weight-bold",attrs:{href:"/site/help"}},[this._v("Help")])])},function(){var t=this._self._c;return t("div",[t("div",{staticClass:"text-dark"},[this._v("Sensitive/NSFW Media")])])},function(){var t=this,e=t._self._c;return e("span",[t._v("Add to Collection "),e("span",{staticClass:"ml-2 badge badge-primary"},[t._v("NEW")])])},function(){var t=this._self._c;return t("span",{staticClass:"text-decoration-none"},[t("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])},function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"text-dark"},[t._v("Turn off commenting")]),t._v(" "),e("p",{staticClass:"text-muted small mb-0"},[t._v("Disables comments for this post, you can change this later.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("div",{staticClass:"text-dark"},[t._v("Media Descriptions")]),t._v(" "),e("p",{staticClass:"text-muted small mb-0"},[t._v("Describe your photos for people with visual impairments.")])]),t._v(" "),e("div",[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])},function(){var t=this._self._c;return t("div",[t("div",{staticClass:"text-dark"},[this._v("Contains NSFW Media")])])}]},67794(t,e,a){a.r(e),a.d(e,{filterEffects:()=>s});var s=[{name:"1984",ops:[{type:"sepia",intensity:.5},{type:"hue_rotate",angle:-30},{type:"adjust_color",brightness:0,contrast:0,saturation:.4}]},{name:"Azen",ops:[{type:"sepia",intensity:.2},{type:"adjust_color",brightness:.15,contrast:0,saturation:.4}]},{name:"Astairo",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.2,contrast:.1,saturation:.3}]},{name:"Grasbee",ops:[{type:"sepia",intensity:.5},{type:"adjust_color",brightness:0,contrast:.2,saturation:.8}]},{name:"Bookrun",ops:[{type:"sepia",intensity:.4},{type:"adjust_color",brightness:.1,contrast:.25,saturation:-.1},{type:"hue_rotate",angle:-2}]},{name:"Borough",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.25,contrast:.25,saturation:0},{type:"hue_rotate",angle:5}]},{name:"Farms",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.25,contrast:.25,saturation:.35},{type:"hue_rotate",angle:-5}]},{name:"Hairsadone",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.25,contrast:.25,saturation:0},{type:"hue_rotate",angle:5}]},{name:"Cleana",ops:[{type:"sepia",intensity:.5},{type:"adjust_color",brightness:.25,contrast:.15,saturation:-.1},{type:"hue_rotate",angle:-2}]},{name:"Catpatch",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:0,contrast:.5,saturation:.1}]},{name:"Earlyworm",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.25,contrast:.15,saturation:-.1},{type:"hue_rotate",angle:-5}]},{name:"Plaid",ops:[{type:"adjust_color",brightness:.1,contrast:.1,saturation:0}]},{name:"Kyo",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.2,contrast:.15,saturation:.35},{type:"hue_rotate",angle:-5}]},{name:"Yefe",ops:[{type:"sepia",intensity:.4},{type:"adjust_color",brightness:.2,contrast:.5,saturation:.4},{type:"hue_rotate",angle:-10}]},{name:"Godess",ops:[{type:"sepia",intensity:.5},{type:"adjust_color",brightness:.05,contrast:.05,saturation:.35}]},{name:"Yards",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.2,contrast:.2,saturation:.05},{type:"hue_rotate",angle:-15}]},{name:"Quill",ops:[{type:"adjust_color",brightness:.25,contrast:-.15,saturation:-1}]},{name:"Juno",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.15,contrast:.15,saturation:.8}]},{name:"Rankine",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.1,contrast:.5,saturation:0},{type:"hue_rotate",angle:-10}]},{name:"Mark",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.3,contrast:.2,saturation:.25}]},{name:"Chill",ops:[{type:"adjust_color",brightness:0,contrast:.5,saturation:.1}]},{name:"Van",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.05,contrast:.05,saturation:1}]},{name:"Apache",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.05,contrast:.05,saturation:.75}]},{name:"May",ops:[{type:"adjust_color",brightness:.15,contrast:.1,saturation:.1}]},{name:"Ceres",ops:[{type:"adjust_color",brightness:.4,contrast:-.05,saturation:-1},{type:"sepia",intensity:.35}]},{name:"Knoxville",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:-.1,contrast:.5,saturation:0},{type:"hue_rotate",angle:-15}]},{name:"Felicity",ops:[{type:"adjust_color",brightness:.25,contrast:.1,saturation:.1}]},{name:"Sandblast",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.2,contrast:0,saturation:0}]},{name:"Daisy",ops:[{type:"sepia",intensity:.75},{type:"adjust_color",brightness:.25,contrast:-.25,saturation:.4}]},{name:"Elevate",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.2,contrast:.25,saturation:-.1}]},{name:"Nevada",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:-.1,contrast:.5,saturation:0},{type:"hue_rotate",angle:-15}]},{name:"Futura",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.25,contrast:.25,saturation:.2}]},{name:"Sleepy",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.25,contrast:.25,saturation:.2}]},{name:"Steward",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.25,contrast:.1,saturation:.25}]},{name:"Savoy",ops:[{type:"sepia",intensity:.4},{type:"adjust_color",brightness:.2,contrast:-.1,saturation:.4},{type:"hue_rotate",angle:-10}]},{name:"Blaze",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:-.05,contrast:.5,saturation:0},{type:"hue_rotate",angle:-15}]},{name:"Apricot",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.1,contrast:.1,saturation:0}]},{name:"Gloming",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.15,contrast:.2,saturation:.3}]},{name:"Walter",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.25,contrast:-.2,saturation:.4}]},{name:"Poplar",ops:[{type:"adjust_color",brightness:.2,contrast:-.15,saturation:-.95},{type:"sepia",intensity:.5}]},{name:"Xenon",ops:[{type:"sepia",intensity:.45},{type:"adjust_color",brightness:.75,contrast:.25,saturation:.3},{type:"hue_rotate",angle:-5}]}]},39005(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(76798),i=a.n(s)()(function(t){return t[1]});i.push([t.id,".app-drawer-component .nav-link{padding:.5rem .1rem}.app-drawer-component .nav-link.active{background-color:transparent}.app-drawer-component .nav-link.router-link-exact-active{background-color:transparent;color:var(--primary)!important}.app-drawer-component .nav-link p{margin-bottom:0}.app-drawer-component .nav-link-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:10px;font-weight:700;margin-top:0;opacity:.6;text-transform:uppercase}",""]);const o=i},66318(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(76798),i=a.n(s)()(function(t){return t[1]});i.push([t.id,'.sidebar-component .sidebar-sticky{background-color:var(--card-bg);border-radius:15px}.sidebar-component.sticky-top{top:90px}.sidebar-component .nav{overflow:auto}.sidebar-component .nav-item .nav-link{color:#9ca3af;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-weight:500;margin-bottom:5px;padding-left:14px}.sidebar-component .nav-item .nav-link:hover{background-color:var(--light-hover-bg)}.sidebar-component .nav-item .nav-link .icon{display:inline-block;text-align:center;width:40px}.sidebar-component .nav-item .router-link-exact-active{color:var(--primary);font-weight:700;padding-left:14px}.sidebar-component .nav-item .router-link-exact-active:not(.text-center){border-left:4px solid var(--primary);padding-left:10px}.sidebar-component .nav-item .router-link-exact-active .icon{color:var(--primary)!important}.sidebar-component .nav-item:first-child .nav-link .small{font-weight:700}.sidebar-component .nav-item:first-child .nav-link:first-child{border-top-left-radius:15px}.sidebar-component .nav-item:first-child .nav-link:last-child{border-top-right-radius:15px}.sidebar-component .nav-item:is(:last-child) .nav-link{border-bottom-left-radius:15px;border-bottom-right-radius:15px;margin-bottom:0}.sidebar-component .sidebar-heading{font-size:.75rem;text-transform:uppercase}.sidebar-component .user-card{align-items:center}.sidebar-component .user-card .avatar{border:1px solid var(--border-color);border-radius:15px;height:75px;margin-right:.8rem;width:75px}.sidebar-component .user-card .avatar-update-btn{background:hsla(0,0%,100%,.9);border:1px solid #dee2e6!important;border-radius:50rem;bottom:0;height:20px;padding:0;position:absolute;right:12px;width:20px}.sidebar-component .user-card .avatar-update-btn-icon{-webkit-font-smoothing:antialiased;display:inline-block;font-family:Font Awesome\\ 5 Free;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-rendering:auto}.sidebar-component .user-card .avatar-update-btn-icon:before{content:"\\f013"}.sidebar-component .user-card .username{font-size:13px;font-weight:600;margin-bottom:0}.sidebar-component .user-card .display-name{color:var(--body-color);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;font-weight:800!important;line-height:.8;margin-bottom:0;-webkit-user-select:all;-moz-user-select:all;user-select:all;word-break:break-all}.sidebar-component .user-card .stats{font-size:12px;margin-bottom:0;margin-top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.sidebar-component .user-card .stats .stats-following{margin-right:.8rem}.sidebar-component .user-card .stats .followers-count,.sidebar-component .user-card .stats .following-count{font-weight:800}.sidebar-component .btn-primary{background-color:var(--primary)}.sidebar-component .btn-primary.router-link-exact-active{cursor:unset;opacity:.5;pointer-events:none}.sidebar-component .sidebar-sitelinks{display:flex;justify-content:space-between;margin-top:1rem;padding:0 2rem}.sidebar-component .sidebar-sitelinks a{color:#b8c2cc;font-size:12px}.sidebar-component .sidebar-sitelinks .active{color:#212529;font-weight:600}.sidebar-component .sidebar-attribution{color:#b8c2cc;font-size:10px;margin-top:.5rem;padding-left:2rem}.sidebar-component .sidebar-attribution a{color:#b8c2cc!important}.sidebar-component .sidebar-attribution a.powered-by{opacity:.5}',""]);const o=i},12155(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(76798),i=a.n(s)()(function(t){return t[1]});i.push([t.id,".compose-modal-component .media-drawer-filters{flex-wrap:unset;overflow-x:auto}.compose-modal-component .media-drawer-filters .nav-link{min-width:100px;padding-bottom:1rem;padding-top:1rem}.compose-modal-component .media-drawer-filters .active{color:#fff;font-weight:700}@media (hover:none) and (pointer:coarse){.compose-modal-component .media-drawer-filters::-webkit-scrollbar{display:none}}.compose-modal-component .no-focus{border-color:none;box-shadow:none;outline:0}.compose-modal-component a.list-group-item{text-decoration:none}.compose-modal-component a.list-group-item:hover{background-color:#f8f9fa;text-decoration:none}.compose-modal-component .compose-action:hover{background-color:#f8f9fa;cursor:pointer}.compose-modal-component .collections-list-group{max-height:500px;overflow-y:auto}.compose-modal-component .collections-list-group .list-group-item.active{background-color:#dbeafe!important;border-color:#60a5fa!important;color:#212529}.compose-modal-component .media-editor{--height-menu-row:5rem;--gap-preview:0rem;--height-menu-row-scroll:10rem;--color-bg-button:transparent;--color-bg-preview:transparent;--color-bg-button-hover:var(--light-gray);--color-bg-acc:var(--card-bg);--color-fnt-default:var(--body-color);--color-fnt-acc:var(--text-lighter);--color-scrollbar-thumb:var(--light-gray);--color-scrollbar-both:var(--light-gray) transparent;--color-slider-thumb:var(--text-lighter);--color-slider-progress:var(--light-gray);--color-slider-track:var(--light);--color-crop-outline:var(--light-gray);--color-crop-dashed:#ffffffde;--color-crop-overlay:#00000082;background-color:transparent;border:none!important;box-shadow:none!important;font-size:12px}",""]);const o=i},74688(t,e,a){a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),o=a(39005),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},31009(t,e,a){a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),o=a(66318),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},79890(t,e,a){a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),o=a(12155),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},46537(t,e,a){a.r(e),a.d(e,{default:()=>n});var s=a(22358),i=a(6422),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);a.d(e,o);const n=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},5787(t,e,a){a.r(e),a.d(e,{default:()=>n});var s=a(16286),i=a(80260),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);a.d(e,o);a(89069);const n=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},90414(t,e,a){a.r(e),a.d(e,{default:()=>n});var s=a(82704),i=a(55597),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);a.d(e,o);const n=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},28772(t,e,a){a.r(e),a.d(e,{default:()=>n});var s=a(22699),i=a(75223),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);a.d(e,o);a(43550);const n=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},19324(t,e,a){a.r(e),a.d(e,{default:()=>n});var s=a(79226),i=a(50427),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);a.d(e,o);a(79051);const n=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},6422(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(66517),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const o=s.default},80260(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(50371),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const o=s.default},55597(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(84154),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const o=s.default},75223(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(79318),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const o=s.default},50427(t,e,a){a.r(e),a.d(e,{default:()=>o});var s=a(28320),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const o=s.default},22358(t,e,a){a.r(e);var s=a(32463),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},16286(t,e,a){a.r(e);var s=a(69831),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},82704(t,e,a){a.r(e);var s=a(67153),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},22699(t,e,a){a.r(e);var s=a(30916),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},79226(t,e,a){a.r(e);var s=a(47907),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},89069(t,e,a){a.r(e);var s=a(74688),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},43550(t,e,a){a.r(e);var s=a(31009),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},79051(t,e,a){a.r(e);var s=a(79890),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)}}]);
\ No newline at end of file
diff --git a/public/js/compose.chunk.2c9141ff4969e238.js.LICENSE.txt b/public/js/compose.chunk.cb3781f6e49426e4.js.LICENSE.txt
similarity index 100%
rename from public/js/compose.chunk.2c9141ff4969e238.js.LICENSE.txt
rename to public/js/compose.chunk.cb3781f6e49426e4.js.LICENSE.txt
diff --git a/public/js/compose.js b/public/js/compose.js
index f9d6b5671..2f1da4d52 100644
--- a/public/js/compose.js
+++ b/public/js/compose.js
@@ -1,2 +1,2 @@
/*! For license information please see compose.js.LICENSE.txt */
-(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[5666],{28320(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>C});var s=i(91584),a=(i(49551),i(2e4)),o=(i(73718),i(79288)),n=i(4717),r=i(67794),l=i(74692);function c(t){return c="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},c(t)}function d(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,s)}return i}function u(t){for(var e=1;et.length)&&(e=t.length);for(var i=0,s=Array(e);i3?(a=h===s)&&(l=o[(r=o[4])?5:(r=3,3)],o[4]=o[5]=t):o[0]<=m&&((a=i<2&&ms||s>h)&&(o[4]=i,o[5]=s,u.n=h,r=0))}if(a||i>1)return n;throw p=!0,s}return function(a,d,h){if(c>1)throw TypeError("Generator is already running");for(p&&1===d&&m(d,h),r=d,l=h;(e=r<2?t:l)||!p;){o||(r?r<3?(r>1&&(u.n=-1),m(r,l)):u.n=l:u.v=l);try{if(c=2,o){if(r||(a="next"),e=o[a]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,r<2&&(r=0)}else 1===r&&(e=o.return)&&e.call(o),r<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),r=1);o=t}else if((e=(p=u.n<0)?l:i.call(s,u))!==n)break}catch(e){o=t,r=1,l=e}finally{c=1}}return{value:e,done:p}}}(i,a,o),!0),c}var n={};function r(){}function l(){}function c(){}e=Object.getPrototypeOf;var d=[][s]?e(e([][s]())):(b(e={},s,function(){return this}),e),p=c.prototype=r.prototype=Object.create(d);function u(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,b(t,a,"GeneratorFunction")),t.prototype=Object.create(p),t}return l.prototype=c,b(p,"constructor",c),b(c,"constructor",l),l.displayName="GeneratorFunction",b(c,a,"GeneratorFunction"),b(p),b(p,a,"Generator"),b(p,s,function(){return this}),b(p,"toString",function(){return"[object Generator]"}),(g=function(){return{w:o,m:u}})()}function b(t,e,i,s){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}b=function(t,e,i,s){function o(e,i){b(t,e,function(t){return this._invoke(e,i,t)})}e?a?a(t,e,{value:i,enumerable:!s,configurable:!s,writable:!s}):t[e]=i:(o("next",0),o("throw",1),o("return",2))},b(t,e,i,s)}function y(t,e,i,s,a,o,n){try{var r=t[o](n),l=r.value}catch(t){return void i(t)}r.done?e(l):Promise.resolve(l).then(s,a)}function _(t){return function(){var e=this,i=arguments;return new Promise(function(s,a){var o=t.apply(e,i);function n(t){y(o,s,a,n,r,"next",t)}function r(t){y(o,s,a,n,r,"throw",t)}n(void 0)})}}const C={components:{VueCropper:s.default,Autocomplete:a.default,VueTribute:o.default,MediaEditorPreview:n.MediaEditorPreview,MediaEditorFilterMenu:n.MediaEditorFilterMenu},data:function(){return{config:window.App.config,pageLoading:!1,profile:window._sharedData.curUser,composeText:"",composeTextLength:0,nsfw:!1,ids:[],media:[],files:[],carouselCursor:0,uploading:!1,uploadProgress:100,mode:"photo",modes:["photo","video","plain"],page:1,composeState:"publish",visibility:"public",visibilityTag:"Public",place:!1,commentsDisabled:!1,optimizeMedia:!0,mediaCropped:!1,pageTitle:"",cropper:{aspectRatio:1,viewMode:1,zoomable:!0,zoom:0},namedPages:["cropPhoto","tagPeople","addLocation","advancedSettings","visibility","altText","addToCollection","schedulePost","mediaMetadata","addToStory","editMedia","cameraRoll","tagPeopleHelp","textOptions","licensePicker"],cameraRollMedia:[],taggedUsernames:[],taggedPeopleSearch:null,textMode:!1,tributeSettings:{noMatchTemplate:function(){return null},collection:[{trigger:"@",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/mention",{params:{q:t}}).then(function(t){e(t.data)}).catch(function(t){})}},{trigger:"#",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/hashtag",{params:{q:t}}).then(function(t){e(t.data)}).catch(function(t){})}}]},availableLicenses:[{id:1,name:"All Rights Reserved",title:""},{id:5,name:"Public Domain Work",title:""},{id:6,name:"Public Domain Dedication (CC0)",title:"CC0"},{id:11,name:"Attribution",title:"CC BY"},{id:12,name:"Attribution-ShareAlike",title:"CC BY-SA"},{id:13,name:"Attribution-NonCommercial",title:"CC BY-NC"},{id:14,name:"Attribution-NonCommercial-ShareAlike",title:"CC BY-NC-SA"},{id:15,name:"Attribution-NoDerivs",title:"CC BY-ND"},{id:16,name:"Attribution-NonCommercial-NoDerivs",title:"CC BY-NC-ND"}],licenseIndex:0,video:{title:"",description:""},composeSettings:{default_license:null,media_descriptions:!1},licenseId:1,licenseTitle:null,maxAltTextLength:140,pollOptionModel:null,pollOptions:[],pollExpiry:1440,postingPoll:!1,collections:[],collectionsSelected:[],collectionsLoaded:!1,collectionsPage:1,collectionsCanLoadMore:!1,spoilerText:void 0,isPosting:!1}},created:function(){var t=this;try{this.editor=new n.MediaEditor({effects:r.filterEffects,onEdit:function(e,i){var s=i.effect,a=i.intensity,o=i.crop;if(!(e>=t.files.length)){var n=t.files[e];t.$set(n,"editState",{effect:s,intensity:a,crop:o})}},onRenderPreview:function(e,i){if(!(e>=t.files.length)){var s=t.files[e].editState,a=t.media[e];s&&(s.crop||-1!==s.effect)?a.preview_url=i:a.preview_url=a.url}}})}catch(t){}},computed:{spoilerTextLength:function(){return this.spoilerText?this.spoilerText.length:0}},beforeMount:function(){var t=this;axios.get("/api/compose/v0/settings").then(function(e){t.composeSettings=e.data,t.licenseId=t.composeSettings.default_license,t.maxAltTextLength=e.data.max_altext_length,t.licenseId>10&&(t.licenseTitle=t.availableLicenses.filter(function(e){return e.id==t.licenseId}).map(function(t){return t.title})[0]),t.fetchProfile()})},destroyed:function(){this.media.forEach(function(t){URL.revokeObjectURL(t.url),URL.revokeObjectURL(t.preview_url)}),this.files.length=this.media.length=0,this.editor=void 0},methods:{timeAgo:function(t){return App.util.format.timeAgo(t)},formatBytes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!+t)return"0 Bytes";var i=e<0?0:e,s=Math.floor(Math.log(t)/Math.log(1024));return"".concat(parseFloat((t/Math.pow(1024,s)).toFixed(i))," ").concat(["Bytes","KB","MB","GB","TB"][s])},defineErrorMessage:function(t){var e;return e=t.response?t.response.data.message?t.response.data.message:"An unexpected error occured.":t.message,swal("Oops, something went wrong!",e,"error")},fetchProfile:function(){var t=this,e={public:"Public",private:"Followers Only",unlisted:"Unlisted"};if(window._sharedData.curUser.id){if(this.profile=window._sharedData.curUser,this.composeSettings&&this.composeSettings.hasOwnProperty("default_scope")&&this.composeSettings.default_scope){var i=this.composeSettings.default_scope;this.visibility=i,this.visibilityTag=e[i]}1==this.profile.locked&&(this.visibility="private",this.visibilityTag="Followers Only")}else axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(i){if(window._sharedData.currentUser=i.data,t.profile=i.data,t.composeSettings&&t.composeSettings.hasOwnProperty("default_scope")&&t.composeSettings.default_scope){var s=t.composeSettings.default_scope;t.visibility=s,t.visibilityTag=e[s]}1==t.profile.locked&&(t.visibility="private",t.visibilityTag="Followers Only")}).catch(function(t){})},addMedia:function(t){var e=l(t.target);e.attr("disabled",""),l('.file-input[name="media"]').trigger("click"),e.blur(),e.removeAttr("disabled")},addText:function(t){this.pageTitle="New Text Post",this.page="addText",this.textMode=!0,this.mode="text"},onInputFile:function(t){var e=this,i=t.target,s=Array.from(i.files);i.value=null;var a=this;s.forEach(function(t,i){if(a.media&&a.media.length>=a.config.uploader.album_limit)return swal("Error","You can only upload "+a.config.uploader.album_limit+" photos per album","error"),void(a.page=2);var s=a.config.uploader.media_types.split(",");if(-1==l.inArray(t.type,s))return swal("Invalid File Type","The file you are trying to add is not a valid mime type. Please upload a "+a.config.uploader.media_types+" only.","error"),void(a.page=2);var o=t.type.replace(/\/.*/,""),n=URL.createObjectURL(t),r="image"===o?URL.createObjectURL(t):"/storage/no-preview.png";e.files.push({file:t,editState:void 0}),e.media.push({url:n,preview_url:r,type:o})}),this.media.length?this.page=3:this.page=2},mediaUpload:function(){var t=this;return _(g().m(function e(){var i;return g().w(function(e){for(;;)switch(e.n){case 0:return t.uploading=!0,i=t.files.map(function(){var e=_(g().m(function e(i,s){var a,o,n,r,l,c,d;return g().w(function(e){for(;;)switch(e.n){case 0:if(a=i.file,"image"!==(o=t.media[s]).type||!i.editState){e.n=3;break}if(n=i.editState,r=i.cropperBlob,!t.editor||-1===n.effect&&!n.crop){e.n=2;break}return e.n=1,t.editor.toBlob(s);case 1:a=e.v,e.n=3;break;case 2:r&&(a=r);case 3:return(l=new FormData).append("file",a),c={onUploadProgress:function(t){var e=Math.round(100*t.loaded/t.total);d.uploadProgress=e}},d=t,e.n=4,axios.post("/api/compose/v0/media/upload",l,c).then(function(t){d.uploadProgress=100,d.ids.push(t.data.id),Object.assign(o,t.data),setTimeout(function(){d.page=3},300)}).catch(function(t){switch(t.response.status){case 403:swal("Account size limit reached","Contact your admin for assistance.","error"),d.page=2;break;case 413:swal("File is too large","The file you uploaded has the size of "+d.formatBytes(a.size)+". Unfortunately, only images up to "+d.formatBytes(1024*d.config.uploader.max_photo_size)+" are supported.\nPlease resize the file and try again.","error"),d.page=2;break;case 451:swal("Banned Content","This content has been banned and cannot be uploaded.","error"),d.page=2;break;case 429:swal("Limit Reached","You can upload up to 250 photos or videos per day and you've reached that limit. Please try again later.","error"),d.page=2;break;case 500:swal("Error",t.response.data.message,"error"),d.page=2;break;default:swal("Oops, something went wrong!","An unexpected error occurred.","error"),d.page=2}throw t});case 4:return e.a(2)}},e)}));return function(t,i){return e.apply(this,arguments)}}()),e.n=1,Promise.all(i).finally(function(){t.uploadProgress=0,t.uploading=!1});case 1:return e.a(2)}},e)}))()},deleteMedia:function(){var t=this;return _(g().m(function e(){var i,s;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(0!=window.confirm("Are you sure you want to delete this media?")){e.n=1;break}return e.a(2);case 1:if(!(s=t.media[t.carouselCursor].id)){e.n=5;break}return e.p=2,e.n=3,axios.delete("/api/compose/v0/media/delete",{params:{id:s}});case 3:e.n=5;break;case 4:return e.p=4,e.v,swal("Whoops!","An error occured when attempting to delete this, please try again","error"),e.a(2);case 5:t.ids.splice(t.carouselCursor,1),t.media.splice(t.carouselCursor,1),URL.revokeObjectURL(null===(i=t.files[t.carouselCursor])||void 0===i?void 0:i.url),t.files.splice(t.carouselCursor,1),0==t.media.length?(t.ids=[],t.media=[],t.carouselCursor=0):t.carouselCursor=0;case 6:return e.a(2)}},e,null,[[2,4]])}))()},mediaReorder:function(t){var e=this.carouselCursor,i=e+("prev"===t?-1:1);if(!(i<0||i>=this.media.length)){var s=h(this.files.splice(e,1),1)[0],a=h(this.media.splice(e,1),1)[0],o=h(this.ids.splice(e,1),1)[0];this.files.splice(i,0,s),this.media.splice(i,0,a),this.ids.splice(i,0,o),this.carouselCursor=i}},compose:function(){var t=this;return _(g().m(function e(){var i,s,a;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(i=t.composeState,0!=t.files.length){e.n=1;break}return e.a(2);case 1:if(!(t.composeText.length>t.config.uploader.max_caption_length)){e.n=2;break}return swal("Error","Caption is too long","error"),e.a(2);case 2:a=i,e.n="publish"===a?3:"delete"===a?10:11;break;case 3:return t.isPosting=!0,e.p=4,e.n=5,t.mediaUpload().finally(function(){return t.isPosting=!1});case 5:e.n=7;break;case 6:return e.p=6,e.v,t.isPosting=!1,e.a(2);case 7:if(!0!==t.composeSettings.media_descriptions){e.n=8;break}if(!t.media.filter(function(t){return!t.hasOwnProperty("alt")||t.alt.length<2}).length){e.n=8;break}return swal("Missing media descriptions","You have enabled mandatory media descriptions. Please add media descriptions under Advanced settings to proceed. For more information, please see the media settings page.","warning"),t.isPosting=!1,e.a(2);case 8:if(0!=t.media.length){e.n=9;break}return swal("Whoops!","You need to add media before you can save this!","warning"),e.a(2);case 9:return"Add optional caption..."==t.composeText&&(t.composeText=""),s={media:t.media,caption:t.composeText,visibility:t.visibility,cw:t.nsfw,comments_disabled:t.commentsDisabled,place:t.place,tagged:t.taggedUsernames,optimize_media:t.optimizeMedia,license:t.licenseId,video:t.video,spoiler_text:t.spoilerText},t.collectionsSelected.length&&(s.collections=t.collectionsSelected.map(function(e){return t.collections[e].id})),axios.post("/api/compose/v0/publish",s).then(function(t){"/i/web/compose"===location.pathname&&t.data&&t.data.length?location.href="/i/web/post/"+t.data.split("/").slice(-1)[0]:location.href=t.data}).catch(function(e){if(400===e.response.status)"Must contain a single photo or video or multiple photos."==e.response.data.error?swal("Wrong types of mixed media","The album must contain a single photo or video or multiple photos.","error"):t.defineErrorMessage(e);else t.defineErrorMessage(e)}).finally(function(){t.isPosting=!1}),e.a(2);case 10:return t.ids=[],t.media=[],t.carouselCursor=0,t.composeText="",t.composeTextLength=0,l("#composeModal").modal("hide"),e.a(2);case 11:return e.a(2)}},e,null,[[4,6]])}))()},composeTextPost:function(){var t=this.composeState;if(this.composeText.length>this.config.uploader.max_caption_length)swal("Error","Caption is too long","error");else switch(t){case"publish":var e={caption:this.composeText,visibility:this.visibility,cw:this.nsfw,comments_disabled:this.commentsDisabled,place:this.place,tagged:this.taggedUsernames};return void axios.post("/api/compose/v0/publish/text",e).then(function(t){var e=t.data;window.location.href=e}).catch(function(t){var e=t.response.data.message?t.response.data.message:"An unexpected error occured.";swal("Oops, something went wrong!",e,"error")});case"delete":return this.ids=[],this.media=[],this.carouselCursor=0,this.composeText="",this.composeTextLength=0,void l("#composeModal").modal("hide")}},closeModal:function(){l("#composeModal").modal("hide"),this.$emit("close")},goBack:function(){switch(this.pageTitle="",this.mode){case"photo":switch(this.page){case"addText":case"video-2":this.page=1;break;case"textOptions":this.page="addText";break;case"cropPhoto":case"editMedia":this.page=2;break;case"tagPeopleHelp":this.showTagCard();break;case"licensePicker":this.page=3;break;default:-1!=this.namedPages.indexOf(this.page)?this.page=3:this.page--}break;case"video":this.page,this.page="video-2";break;default:switch(this.page){case"addText":case"video-2":this.page=1;break;case"textOptions":this.page="addText";break;case"cropPhoto":case"editMedia":this.page=2;break;case"tagPeopleHelp":this.showTagCard();break;case"licensePicker":this.page=3;break;default:-1!=this.namedPages.indexOf(this.page)?this.page="text"==this.mode?"addText":3:"text"==this.mode||this.page--}}},nextPage:function(){var t=this;switch(this.pageTitle="",this.page){case 1:this.page=2;break;case"cropPhoto":var e=this.files[this.carouselCursor],i=this.$refs.cropper,s=u(u({},e.editState),{},{crop:i.getData()});this.editor?this.editor.setEditState(this.carouselCursor,s):i.getCroppedCanvas().toBlob(function(i){var s=t.media[t.carouselCursor].media;e.croppedBlob=i,URL.revokeObjectURL(s.preview_url),s.preview_url=URL.createObjectURL(i)}),this.page=2;break;case 2:case 3:this.page++}},rotate:function(){this.$refs.cropper.rotate(90)},changeAspect:function(t){this.cropper.aspectRatio=t,this.$refs.cropper.setAspectRatio(t)},showTagCard:function(){this.pageTitle="Tag People",this.page="tagPeople"},showTagHelpCard:function(){this.pageTitle="About Tag People",this.page="tagPeopleHelp"},showLocationCard:function(){this.pageTitle="Add Location",this.page="addLocation"},showAdvancedSettingsCard:function(){this.pageTitle="Advanced Settings",this.page="advancedSettings"},locationSearch:function(t){if(t.length<1)return[];return axios.get("/api/compose/v0/search/location",{params:{q:t}}).then(function(t){return t.data})},getResultValue:function(t){return t.name+", "+t.country},onSubmitLocation:function(t){switch(this.place=t,this.mode){case"photo":this.pageTitle="",this.page=3;break;case"video":this.pageTitle="Edit Video Details",this.page="video-2";break;case"text":this.pageTitle="New Text Post",this.page="addText"}},showVisibilityCard:function(){this.pageTitle="Post Visibility",this.page="visibility"},showAddToStoryCard:function(){this.pageTitle="Add to Story",this.page="addToStory"},showCropPhotoCard:function(){this.pageTitle="Edit Photo",this.page="cropPhoto"},toggleVisibility:function(t){switch(this.visibility=t,this.visibilityTag={public:"Public",private:"Followers Only",unlisted:"Unlisted"}[t],this.mode){case"photo":this.pageTitle="",this.page=3;break;case"video":this.pageTitle="Edit Video Details",this.page="video-2";break;case"text":this.pageTitle="New Text Post",this.page="addText"}},showMediaDescriptionsCard:function(){this.pageTitle="Media Descriptions",this.page="altText"},showAddToCollectionsCard:function(){this.pageTitle="Add to Collection",this.page="addToCollection"},showSchedulePostCard:function(){this.pageTitle="Schedule Post",this.page="schedulePost"},showEditMediaCard:function(){this.pageTitle="Edit Media",this.page="editMedia"},fetchCameraRollDrafts:function(){var t=this;axios.get("/api/pixelfed/local/drafts").then(function(e){t.cameraRollMedia=e.data})},tagSearch:function(t){if(t.length<1)return[];var e=this;return axios.get("/api/compose/v0/search/tag",{params:{q:t}}).then(function(t){if(t.data.length)return t.data.filter(function(t){return 0==e.taggedUsernames.filter(function(e){return e.id==t.id}).length})})},getTagResultValue:function(t){return t.name},onTagSubmitLocation:function(t){this.taggedUsernames.filter(function(e){return e.id==t.id}).length||(this.taggedUsernames.push(t),this.$refs.autocomplete.value="")},untagUsername:function(t){this.taggedUsernames.splice(t,1)},showTextOptions:function(){this.page="textOptions",this.pageTitle="Text Post Options"},showLicenseCard:function(){this.pageTitle="Select a License",this.page="licensePicker"},toggleLicense:function(t){var e=this;switch(this.licenseId=t.id,this.licenseId>10?this.licenseTitle=this.availableLicenses.filter(function(t){return t.id==e.licenseId}).map(function(t){return t.title})[0]:this.licenseTitle=null,this.mode){case"photo":this.pageTitle="",this.page=3;break;case"video":this.pageTitle="Edit Video Details",this.page="video-2";break;case"text":this.pageTitle="New Text Post",this.page="addText"}},newPoll:function(){this.page="poll"},savePollOption:function(){-1==this.pollOptions.indexOf(this.pollOptionModel)?(this.pollOptions.push(this.pollOptionModel),this.pollOptionModel=null):this.pollOptionModel=null},deletePollOption:function(t){this.pollOptions.splice(t,1)},postNewPoll:function(){var t=this;this.postingPoll=!0,axios.post("/api/compose/v0/poll",{caption:this.composeText,cw:!1,visibility:this.visibility,comments_disabled:!1,expiry:this.pollExpiry,pollOptions:this.pollOptions}).then(function(e){if(!e.data.hasOwnProperty("url"))return swal("Oops!","An error occured while attempting to create this poll. Please refresh the page and try again.","error"),void(t.postingPoll=!1);window.location.href=e.data.url}).catch(function(e){if(e.response.data.hasOwnProperty("error")&&"Duplicate detected."==e.response.data.error)return t.postingPoll=!1,void swal("Oops!","The poll you are trying to create is similar to an existing poll you created. Please make the poll question (caption) unique.","error");t.postingPoll=!1,swal("Oops!","An error occured while attempting to create this poll. Please refresh the page and try again.","error")})},filesize:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){return filesize(1024*t,{round:0})}),showCollectionCard:function(){this.pageTitle="Add to Collection(s)",this.page="addToCollection",this.collectionsLoaded||this.fetchCollections()},fetchCollections:function(){var t=this;axios.get("/api/local/profile/collections/".concat(this.profile.id)).then(function(e){t.collections=e.data,t.collectionsLoaded=!0,t.collectionsCanLoadMore=9==e.data.length,t.collectionsPage++})},toggleCollectionItem:function(t){if(this.collectionsSelected.includes(t))this.collectionsSelected=this.collectionsSelected.filter(function(e){return e!=t});else{if(7==this.collectionsSelected.length)return void swal("Oops!","You can only share to 5 collections.","info");this.collectionsSelected.push(t)}},clearSelectedCollections:function(){this.collectionsSelected=[],this.pageTitle="Compose",this.page=3},loadMoreCollections:function(){var t=this;this.collectionsCanLoadMore=!1,axios.get("/api/local/profile/collections/".concat(this.profile.id),{params:{page:this.collectionsPage}}).then(function(e){var i,s=t.collections.map(function(t){return t.id}),a=e.data.filter(function(t){return!s.includes(t.id)});a&&a.length&&((i=t.collections).push.apply(i,d(a)),t.collectionsPage++,t.collectionsCanLoadMore=!0)})}},watch:{files:function(t){this.editor.setSources(t.map(function(t){return t.file}))}}}},18999(t,e,i){"use strict";i.r(e),i.d(e,{render:()=>s,staticRenderFns:()=>a});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"compose-modal-component"},[e("input",{staticClass:"w-100 h-100 d-none file-input",attrs:{type:"file",id:"pf-dz",name:"media",multiple:"",accept:t.config.uploader.media_types},on:{input:t.onInputFile}}),t._v(" "),e("canvas",{staticClass:"d-none",attrs:{id:"pr_canvas"}}),t._v(" "),e("img",{staticClass:"d-none",attrs:{id:"pr_img"}}),t._v(" "),e("div",{staticClass:"timeline"},[t.uploading?e("div",[e("div",{staticClass:"card status-card card-md-rounded-0 w-100 h-100 bg-light py-3",staticStyle:{"border-bottom":"1px solid #f1f1f1"}},[e("div",{staticClass:"p-5 mt-2"},[e("b-progress",{attrs:{value:t.uploadProgress,max:100,striped:"",animated:!0}}),t._v(" "),e("p",{staticClass:"text-center mb-0 font-weight-bold"},[t._v("Uploading ... ("+t._s(t.uploadProgress)+"%)")])],1)])]):"cameraRoll"==t.page?e("div",[e("div",{staticClass:"card status-card card-md-rounded-0",staticStyle:{display:"flex"}},[t._m(0),t._v(" "),e("div",{staticClass:"h-100 card-body p-0 border-top",staticStyle:{width:"100%","min-height":"400px"}},[t.cameraRollMedia.length>0?e("div",{staticClass:"row p-0 m-0"},t._l(t.cameraRollMedia,function(t,i){return e("div",{class:[0==i?"col-12 p-0":"col-3 p-0"]},[e("div",{staticClass:"card info-overlay p-0 rounded-0 shadow-none border"},[e("div",{staticClass:"square"},[e("img",{staticClass:"square-content",attrs:{src:t.preview_url}})])])])}),0):e("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center"},[e("span",{staticClass:"w-100 h-100"},[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"}},[t._v("Upload")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return t.fetchCameraRollDrafts()}}},[t._v("Load Camera Roll")])])])])])]):"poll"==t.page?e("div",[e("div",{staticClass:"card status-card card-md-rounded-0",staticStyle:{display:"flex"}},[e("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between bg-white"},[t._m(1),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("\n New Poll\n ")]),t._v(" "),t.postingPoll?e("span",[t._m(2)]):!t.postingPoll&&t.pollOptions.length>1&&t.composeText.length?e("button",{staticClass:"btn btn-primary btn-sm font-weight-bold",on:{click:t.postNewPoll}},[e("span",[t._v("Create Poll")])]):e("span",{staticClass:"font-weight-bold text-lighter"},[t._v("\n Create Poll\n ")])]),t._v(" "),e("div",{staticClass:"h-100 card-body p-0 border-top",staticStyle:{width:"100%","min-height":"400px"}},[e("div",{staticClass:"border-bottom mt-2"},[e("div",{staticClass:"media px-3"},[e("img",{staticClass:"rounded-circle",attrs:{src:t.profile.avatar,width:"42px",height:"42px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small d-none"},[t._v("Caption")]),t._v(" "),e("vue-tribute",{attrs:{options:t.tributeSettings}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control border-0 rounded-0 no-focus",attrs:{rows:"3",placeholder:"Write a poll question..."},domProps:{value:t.composeText},on:{keyup:function(e){t.composeTextLength=t.composeText.length},input:function(e){e.target.composing||(t.composeText=e.target.value)}}})]),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(t.composeTextLength)+"/"+t._s(t.config.uploader.max_caption_length))])],1)])])]),t._v(" "),e("div",{staticClass:"p-3"},[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n Poll Options\n ")]),t._v(" "),t.pollOptions.length<4?e("div",{staticClass:"form-group mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptionModel,expression:"pollOptionModel"}],staticClass:"form-control rounded-pill",attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptionModel},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.savePollOption.apply(null,arguments)},input:function(e){e.target.composing||(t.pollOptionModel=e.target.value)}}})]):t._e(),t._v(" "),t._l(t.pollOptions,function(i,s){return e("div",{staticClass:"form-group mb-4 d-flex align-items-center",staticStyle:{"max-width":"400px",position:"relative"}},[e("span",{staticClass:"font-weight-bold mr-2",staticStyle:{position:"absolute",left:"10px"}},[t._v(t._s(s+1)+".")]),t._v(" "),t.pollOptions[s].length<50?e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[s],expression:"pollOptions[index]"}],staticClass:"form-control rounded-pill",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptions[s]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,s,e.target.value)}}}):e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[s],expression:"pollOptions[index]"}],staticClass:"form-control",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{placeholder:"Add a poll option, press enter to save",rows:"3"},domProps:{value:t.pollOptions[s]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,s,e.target.value)}}}),t._v(" "),e("button",{staticClass:"btn btn-danger btn-sm rounded-pill font-weight-bold",staticStyle:{position:"absolute",right:"5px"},on:{click:function(e){return t.deletePollOption(s)}}},[e("i",{staticClass:"fas fa-trash"}),t._v(" Delete\n ")])])}),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n Poll Expiry\n ")]),t._v(" "),e("div",{staticClass:"form-group"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.pollExpiry,expression:"pollExpiry"}],staticClass:"form-control rounded-pill",staticStyle:{width:"200px"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.pollExpiry=e.target.multiple?i:i[0]}}},[e("option",{attrs:{value:"60"}},[t._v("1 hour")]),t._v(" "),e("option",{attrs:{value:"360"}},[t._v("6 hours")]),t._v(" "),e("option",{attrs:{value:"1440",selected:""}},[t._v("24 hours")]),t._v(" "),e("option",{attrs:{value:"10080"}},[t._v("7 days")])])])]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n Poll Visibility\n ")]),t._v(" "),e("div",{staticClass:"form-group"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.visibility,expression:"visibility"}],staticClass:"form-control rounded-pill",staticStyle:{"max-width":"200px"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.visibility=e.target.multiple?i:i[0]}}},[e("option",{attrs:{value:"public"}},[t._v("Public")]),t._v(" "),e("option",{attrs:{value:"private"}},[t._v("Followers Only")])])])])])],2)])])]):e("div",[e("div",{staticClass:"card status-card card-md-rounded-0 w-100 h-100",staticStyle:{display:"flex"}},[e("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between bg-white"},[e("div",[1==t.page?e("a",{staticClass:"font-weight-bold text-decoration-none text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.closeModal()}}},[e("i",{staticClass:"fas fa-times fa-lg"}),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.pageTitle))])]):2==t.page?e("span",[t.config.uploader.album_limit>t.media.length?e("button",{staticClass:"btn btn-outline-primary btn-sm font-weight-bold",attrs:{id:"cm-add-media-btn"},on:{click:function(e){return e.preventDefault(),t.addMedia.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-plus"})]):e("button",{staticClass:"btn btn-outline-secondary btn-sm font-weight-bold",attrs:{disabled:""}},[e("i",{staticClass:"fas fa-plus"})]),t._v(" "),e("b-tooltip",{attrs:{target:"cm-add-media-btn",triggers:"hover"}},[t._v("\n Upload another photo or video\n ")])],1):3==t.page?e("span",[e("a",{staticClass:"text-lighter text-decoration-none mr-3 d-flex align-items-center",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goBack()}}},[e("i",{staticClass:"fas fa-long-arrow-alt-left fa-lg mr-2"}),t._v(" "),e("span",{staticClass:"btn btn-outline-secondary btn-sm px-2 py-0 disabled",attrs:{disabled:""}},[t._v(t._s(t.media.length))])]),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.pageTitle))])]):e("span",[e("a",{staticClass:"text-lighter text-decoration-none mr-3",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goBack()}}},[e("i",{staticClass:"fas fa-long-arrow-alt-left fa-lg"})])]),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.pageTitle))])]),t._v(" "),2==t.page?e("div",[1==t.media.length?e("a",{staticClass:"text-center text-dark",attrs:{href:"#",title:"Crop & Resize",id:"cm-crop-btn"},on:{click:function(e){return e.preventDefault(),t.showCropPhotoCard.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-crop-alt fa-lg"})]):t._e(),t._v(" "),e("b-tooltip",{attrs:{target:"cm-crop-btn",triggers:"hover"}},[t._v("\n Crop & Resize\n ")])],1):t._e(),t._v(" "),e("div",[t.pageLoading?e("span",[t._m(3)]):e("span",[!t.pageLoading&&t.page>1&&t.page<=2||1==t.page&&0!=t.ids.length||"cropPhoto"==t.page?e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.nextPage.apply(null,arguments)}}},[t._v("Next")]):t._e(),t._v(" "),t.pageLoading||3!=t.page?t._e():[t.isPosting?e("b-spinner",{attrs:{small:""}}):e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.compose()}}},[t._v("Post")])],t._v(" "),t.pageLoading||"addText"!=t.page?t._e():e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.composeTextPost()}}},[t._v("Post")]),t._v(" "),t.pageLoading||"video-2"!=t.page?t._e():e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.compose()}}},[t._v("Post")])],2)])]),t._v(" "),e("div",{staticClass:"card-body p-0 border-top"},["licensePicker"==t.page?e("div",{staticClass:"w-100 h-100",staticStyle:{"min-height":"280px"}},[e("div",{staticClass:"list-group list-group-flush"},t._l(t.availableLicenses,function(i,s){return e("div",{staticClass:"list-group-item cursor-pointer",class:{"text-primary":t.licenseId===i.id,"font-weight-bold":t.licenseId===i.id},on:{click:function(e){return t.toggleLicense(i)}}},[t._v("\n "+t._s(i.name)+"\n ")])}),0)]):"textOptions"==t.page?e("div",{staticClass:"w-100 h-100",staticStyle:{"min-height":"280px"}}):"addText"==t.page?e("div",{staticClass:"w-100 h-100",staticStyle:{"min-height":"280px"}},[e("div",{staticClass:"mt-2"},[e("div",{staticClass:"media px-3"},[e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small d-none"},[t._v("Body")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control border-0 rounded-0 no-focus",staticStyle:{"font-size":"18px",resize:"none"},attrs:{rows:"7",placeholder:"What's happening?"},domProps:{value:t.composeText},on:{keyup:function(e){t.composeTextLength=t.composeText.length},input:function(e){e.target.composing||(t.composeText=e.target.value)}}}),t._v(" "),e("div",{staticClass:"border-bottom"}),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0 font-weight-bold"},[t._v(t._s(t.composeTextLength)+"/"+t._s(t.config.uploader.max_caption_length))]),t._v(" "),e("p",{staticClass:"mb-0 mt-2"},[e("a",{staticClass:"btn btn-primary rounded-pill mr-2",staticStyle:{height:"37px"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showTextOptions()}}},[e("i",{staticClass:"fas fa-palette px-3 text-white"})]),t._v(" "),e("a",{staticClass:"btn rounded-pill mx-3 d-inline-flex align-items-center",class:[t.nsfw?"btn-danger":"btn-outline-lighter"],staticStyle:{height:"37px"},attrs:{href:"#",title:"Mark as sensitive/not safe for work"},on:{click:function(e){e.preventDefault(),t.nsfw=!t.nsfw}}},[e("i",{staticClass:"far fa-flag px-3"}),t._v(" "),e("span",{staticClass:"text-muted small font-weight-bold"})]),t._v(" "),e("a",{staticClass:"btn btn-outline-lighter rounded-pill d-inline-flex align-items-center",staticStyle:{height:"37px"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[e("i",{staticClass:"fas fa-eye mr-2"}),t._v(" "),e("span",{staticClass:"text-muted small font-weight-bold"},[t._v(t._s(t.visibilityTag))])])])])])])])]):1==t.page?e("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center",staticStyle:{"min-height":"400px"}},[e("div",{staticClass:"text-center"},[0==t.media.length?e("div",{staticClass:"card my-md-3 shadow-none border compose-action text-decoration-none text-dark"},[e("div",{staticClass:"card-body py-2",on:{click:function(e){return e.preventDefault(),t.addMedia.apply(null,arguments)}}},[e("div",{staticClass:"media"},[t._m(4),t._v(" "),e("div",{staticClass:"media-body text-left"},[t._m(5),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Share up to "+t._s(t.config.uploader.album_limit)+" photos or videos")]),t._v(" "),e("p",{staticClass:"mb-0 text-muted small"},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.config.uploader.media_types.split(",").map(function(t){return t.split("/")[1]}).join(", ")))]),t._v(" allowed up to "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.filesize(t.config.uploader.max_photo_size)))])])])])])]):t._e(),t._v(" "),t._e(),t._v(" "),1==t.config.features.stories?e("a",{staticClass:"card my-md-3 shadow-none border compose-action text-decoration-none text-dark",attrs:{href:"/i/stories/new"}},[t._m(7)]):t._e(),t._v(" "),t._e(),t._v(" "),t._m(9),t._v(" "),t._m(10)])]):"cropPhoto"==t.page?e("div",{staticClass:"w-100 h-100"},[t.media.length>0?e("div",[e("vue-cropper",{ref:"cropper",attrs:{relativeZoom:t.cropper.zoom,aspectRatio:t.cropper.aspectRatio,viewMode:t.cropper.viewMode,zoomable:t.cropper.zoomable,rotatable:!0,src:t.media[t.carouselCursor].url}})],1):t._e()]):2==t.page?e("div",{staticClass:"w-100 h-100"},[1==t.media.length?e("div",["image"===t.media[0].type?[e("media-editor-preview",{staticClass:"media-editor",attrs:{editor:t.editor,sourceIndex:0}}),t._v(" "),e("hr"),t._v(" "),e("media-editor-filter-menu",{staticClass:"media-editor",attrs:{editor:t.editor,sourceIndex:0}})]:e("img",{staticClass:"d-block img-fluid w-100",attrs:{src:"/storage/no-preview.png",alt:t.media[t.carouselCursor].description,title:t.media[t.carouselCursor].description}})],2):t.media.length>1?e("div",{staticClass:"d-flex-inline px-2 pt-2"},[e("ul",{staticClass:"nav media-drawer-filters text-center pb-3"},[e("li",{staticClass:"nav-item mx-md-4"},[t._v("ย ")]),t._v(" "),t._l(t.media,function(i,s){return e("li",{key:s+(t.ids[s]||i.url||""),staticClass:"nav-item mx-md-4"},[e("div",{staticClass:"nav-link",staticStyle:{display:"block",width:"300px",height:"300px"},on:{click:function(e){t.carouselCursor=s}}},[e("div",{class:[i.filter_class?i.filter_class:""],staticStyle:{width:"100%",height:"100%",display:"block"}},["image"===i.type?e("media-editor-preview",{staticClass:"media-editor",class:"rounded "+[s==t.carouselCursor?" border border-primary shadow":""],staticStyle:{width:"100%",height:"100%"},attrs:{editor:t.editor,sourceIndex:s}}):e("img",{staticClass:"d-block img-fluid w-100",attrs:{src:"/storage/no-preview.png",alt:t.media[t.carouselCursor].description,title:t.media[t.carouselCursor].description}})],1)]),t._v(" "),s==t.carouselCursor?e("div",{staticClass:"text-center mb-0 small text-lighter font-weight-bold pt-2"},[e("button",{staticClass:"btn btn-link",on:{click:function(e){return t.mediaReorder("prev")}}},[e("i",{staticClass:"far fa-chevron-circle-left"})]),t._v(" "),e("span",{staticClass:"cursor-pointer",on:{click:function(e){return e.preventDefault(),t.showCropPhotoCard.apply(null,arguments)}}},[t._v("Crop")]),t._v(" "),e("span",{staticClass:"cursor-pointer px-3",on:{click:function(e){return e.preventDefault(),t.showEditMediaCard()}}},[t._v("Edit")]),t._v(" "),e("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.deleteMedia()}}},[t._v("Delete")]),t._v(" "),e("button",{staticClass:"btn btn-link",on:{click:function(e){return t.mediaReorder("next")}}},[e("i",{staticClass:"far fa-chevron-circle-right"})])]):t._e()])}),t._v(" "),e("li",{staticClass:"nav-item mx-md-4"},[t._v("ย ")])],2),t._v(" "),e("hr"),t._v(" "),"image"==t.media[t.carouselCursor].type?e("div",{staticClass:"align-items-center px-2 pt-2"},[e("media-editor-filter-menu",{staticClass:"media-editor",attrs:{editor:t.editor,sourceIndex:t.carouselCursor}})],1):t._e()]):e("div",[e("p",{staticClass:"mb-0 p-5 text-center font-weight-bold"},[t._v("An error occured, please refresh the page.")])])]):3==t.page?e("div",{staticClass:"w-100 h-100"},[e("div",{staticClass:"border-bottom mt-2"},[e("div",{staticClass:"media px-3"},[e("img",{staticClass:"mr-2",attrs:{src:t.media[0].preview_url,width:"42px",height:"42px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small d-none"},[t._v("Caption")]),t._v(" "),e("vue-tribute",{attrs:{options:t.tributeSettings}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control border-0 rounded-0 no-focus",attrs:{rows:"3",placeholder:"Write a caption..."},domProps:{value:t.composeText},on:{keyup:function(e){t.composeTextLength=t.composeText.length},input:function(e){e.target.composing||(t.composeText=e.target.value)}}})]),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(t.composeTextLength)+"/"+t._s(t.config.uploader.max_caption_length))])],1)])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer d-flex justify-content-between",on:{click:function(e){return t.showMediaDescriptionsCard()}}},[e("span",[t._v("Alt Text")]),t._v(" "),e("span",[t.media&&t.media.filter(function(t){return t.alt}).length==t.media.length?e("i",{staticClass:"fas fa-check-circle fa-lg text-success"}):e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])]),t._v(" "),e("div",{staticClass:"border-bottom px-4 mb-0 py-2"},[e("div",{staticClass:"d-flex justify-content-between"},[t._m(11),t._v(" "),e("div",[e("div",{staticClass:"custom-control custom-switch",staticStyle:{"z-index":"9999"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.nsfw,expression:"nsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"asnsfw"},domProps:{checked:Array.isArray(t.nsfw)?t._i(t.nsfw,null)>-1:t.nsfw},on:{change:function(e){var i=t.nsfw,s=e.target,a=!!s.checked;if(Array.isArray(i)){var o=t._i(i,null);s.checked?o<0&&(t.nsfw=i.concat([null])):o>-1&&(t.nsfw=i.slice(0,o).concat(i.slice(o+1)))}else t.nsfw=a}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"asnsfw"}})])])]),t._v(" "),t.nsfw?e("div",[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.spoilerText,expression:"spoilerText"}],staticClass:"form-control mt-3",attrs:{placeholder:"Add an optional content warning or spoiler text",maxlength:"140"},domProps:{value:t.spoilerText},on:{input:function(e){e.target.composing||(t.spoilerText=e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(t.spoilerTextLength)+"/140")])]):t._e()]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showTagCard()}}},[t._v("Tag people")])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showCollectionCard()}}},[t._m(12),t._v(" "),e("span",{staticClass:"float-right"},[t.collectionsSelected.length?e("span",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px 5px","text-transform":"uppercase"},attrs:{href:"#",disabled:""}},[t._v("\n "+t._s(t.collectionsSelected.length)+"\n ")]):t._e(),t._v(" "),t._m(13)])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showLicenseCard()}}},[e("span",[t._v("Add license")]),t._v(" "),e("span",{staticClass:"float-right"},[t.licenseTitle?e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#",disabled:""},on:{click:function(e){return e.preventDefault(),t.showLicenseCard()}}},[t._v(t._s(t.licenseTitle))]):t._e(),t._v(" "),e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showLicenseCard()}}},[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[t.place?e("p",{staticClass:"px-4 mb-0 py-2"},[e("span",{staticClass:"text-lighter"},[t._v("Location:")]),t._v(" "+t._s(t.place.name)+", "+t._s(t.place.country)+"\n "),e("span",{staticClass:"float-right"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-2",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showLocationCard()}}},[t._v("Edit")]),t._v(" "),e("a",{staticClass:"btn btn-outline-secondary btn-sm small",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.place=!1}}},[t._v("Remove")])])]):e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showLocationCard()}}},[t._v("Add location")])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2"},[e("span",[t._v("Audience")]),t._v(" "),e("span",{staticClass:"float-right"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#",disabled:""},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[t._v(t._s(t.visibilityTag))]),t._v(" "),e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])])]),t._v(" "),e("div",{staticStyle:{"min-height":"200px"}},[e("p",{staticClass:"px-4 mb-0 py-2 small font-weight-bold text-muted cursor-pointer",on:{click:function(e){return t.showAdvancedSettingsCard()}}},[t._v("Advanced settings")])])]):"tagPeople"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("autocomplete",{directives:[{name:"show",rawName:"v-show",value:t.taggedUsernames.length<10,expression:"taggedUsernames.length < 10"}],ref:"autocomplete",attrs:{search:t.tagSearch,placeholder:"@pixelfed","aria-label":"Search usernames","get-result-value":t.getTagResultValue},on:{submit:t.onTagSubmitLocation}}),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:t.taggedUsernames.length<10,expression:"taggedUsernames.length < 10"}],staticClass:"font-weight-bold text-muted small"},[t._v("You can tag "+t._s(10-t.taggedUsernames.length)+" more "+t._s(9==t.taggedUsernames.length?"person":"people")+"!")]),t._v(" "),e("p",{staticClass:"font-weight-bold text-center mt-3"},[t._v("Tagged People")]),t._v(" "),e("div",{staticClass:"list-group"},[t._l(t.taggedUsernames,function(i,s){return e("div",{staticClass:"list-group-item d-flex justify-content-between"},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-2 rounded-circle border",attrs:{src:i.avatar,width:"24px",height:"24px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(i.name))])])]),t._v(" "),e("div",{staticClass:"custom-control custom-switch"},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.privacy,expression:"tag.privacy"}],staticClass:"custom-control-input disabled",attrs:{type:"checkbox",id:"cci-tagged-privacy-switch"+s,disabled:""},domProps:{checked:Array.isArray(i.privacy)?t._i(i.privacy,null)>-1:i.privacy},on:{change:function(e){var s=i.privacy,a=e.target,o=!!a.checked;if(Array.isArray(s)){var n=t._i(s,null);a.checked?n<0&&t.$set(i,"privacy",s.concat([null])):n>-1&&t.$set(i,"privacy",s.slice(0,n).concat(s.slice(n+1)))}else t.$set(i,"privacy",o)}}}),t._v(" "),e("label",{staticClass:"custom-control-label font-weight-bold text-lighter",attrs:{for:"cci-tagged-privacy-switch"+s}},[t._v(t._s(i.privacy?"Public":"Private"))]),t._v(" "),e("a",{staticClass:"ml-3",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.untagUsername(s)}}},[e("i",{staticClass:"fas fa-times text-muted"})])])])}),t._v(" "),0==t.taggedUsernames.length?e("div",{staticClass:"list-group-item p-3"},[e("p",{staticClass:"text-center mb-0 font-weight-bold text-lighter"},[t._v("Search usernames to tag.")])]):t._e()],2),t._v(" "),e("p",{staticClass:"font-weight-bold text-center small text-muted pt-3 mb-0"},[t._v("When you tag someone, they are sent a notification."),e("br"),t._v("For more information on tagging, "),e("a",{staticClass:"text-primary",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showTagHelpCard()}}},[t._v("click here")]),t._v(".")])],1):"tagPeopleHelp"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("p",{staticClass:"mb-0 text-center py-3 px-2 lead"},[t._v("Tagging someone is like mentioning them, with the option to make it private between you.")]),t._v(" "),e("p",{staticClass:"mb-3 py-3 px-2 font-weight-lighter"},[t._v("\n You can choose to tag someone in public or private mode. Public mode will allow others to see who you tagged in the post and private mode tagged users will not be shown to others.\n ")])]):"addLocation"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("p",{staticClass:"mb-0"},[t._v("Add Location")]),t._v(" "),e("autocomplete",{attrs:{search:t.locationSearch,placeholder:"Search locations ...","aria-label":"Search locations ...","get-result-value":t.getResultValue},on:{submit:t.onSubmitLocation}})],1):"advancedSettings"==t.page?e("div",{staticClass:"w-100 h-100"},[e("div",{staticClass:"list-group list-group-flush"},[e("div",{staticClass:"list-group-item d-flex justify-content-between"},[t._m(14),t._v(" "),e("div",[e("div",{staticClass:"custom-control custom-switch",staticStyle:{"z-index":"9999"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.commentsDisabled,expression:"commentsDisabled"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"asdisablecomments"},domProps:{checked:Array.isArray(t.commentsDisabled)?t._i(t.commentsDisabled,null)>-1:t.commentsDisabled},on:{change:function(e){var i=t.commentsDisabled,s=e.target,a=!!s.checked;if(Array.isArray(i)){var o=t._i(i,null);s.checked?o<0&&(t.commentsDisabled=i.concat([null])):o>-1&&(t.commentsDisabled=i.slice(0,o).concat(i.slice(o+1)))}else t.commentsDisabled=a}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"asdisablecomments"}})])])]),t._v(" "),e("a",{staticClass:"list-group-item",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showMediaDescriptionsCard()}}},[t._m(15)])])]):"visibility"==t.page?e("div",{staticClass:"w-100 h-100"},[e("div",{staticClass:"list-group list-group-flush"},[t.profile.locked?t._e():e("div",{staticClass:"list-group-item lead cursor-pointer",class:{"text-primary":"public"==t.visibility},on:{click:function(e){return t.toggleVisibility("public")}}},[t._v("\n Public\n ")]),t._v(" "),t.profile.locked?t._e():e("div",{staticClass:"list-group-item lead cursor-pointer",class:{"text-primary":"unlisted"==t.visibility},on:{click:function(e){return t.toggleVisibility("unlisted")}}},[t._v("\n Unlisted\n ")]),t._v(" "),e("div",{staticClass:"list-group-item lead cursor-pointer",class:{"text-primary":"private"==t.visibility},on:{click:function(e){return t.toggleVisibility("private")}}},[t._v("\n Followers Only\n ")])])]):"altText"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[t._l(t.media,function(i,s){return e("div",[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3",attrs:{src:i.preview_url,width:"50px",height:"50px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:i.alt,expression:"m.alt"}],staticClass:"form-control",attrs:{placeholder:"Add a media description here...",maxlength:t.maxAltTextLength,rows:"4"},domProps:{value:i.alt},on:{input:function(e){e.target.composing||t.$set(i,"alt",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(i.alt?i.alt.length:0)+"/"+t._s(t.maxAltTextLength))])])]),t._v(" "),e("hr")])}),t._v(" "),e("p",{staticClass:"d-flex justify-content-between mb-0"},[e("button",{staticClass:"btn btn-link text-muted font-weight-bold text-decoration-none",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Save")])])],2):"addToCollection"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[t.collectionsLoaded&&t.collections.length?e("div",{staticClass:"list-group mb-3 collections-list-group"},[t._l(t.collections,function(i,s){return e("div",{staticClass:"list-group-item cursor-pointer compose-action border",class:{active:t.collectionsSelected.includes(s)},on:{click:function(e){return t.toggleCollectionItem(s)}}},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3",attrs:{src:i.thumb,alt:"",width:"50px",height:"50px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("h5",{staticClass:"mt-0"},[t._v(t._s(i.title))]),t._v(" "),e("p",{staticClass:"mb-0 text-muted small"},[e("span",[t._v(t._s(i.post_count)+" Posts")]),t._v(" "),e("span",[t._v("ยท")]),t._v(" "),"draft"===i.visibility?e("span",{staticClass:"primary"},[e("i",{staticClass:"far fa-lock fa-sm"}),t._v(" "+t._s(t.$t("profile.draft")))]):e("span",[t._v("Created "+t._s(t.timeago(i.published_at))+" ago")])])])])])}),t._v(" "),t.collectionsCanLoadMore?e("button",{staticClass:"btn btn-light btn-block font-weight-bold mt-3",on:{click:t.loadMoreCollections}},[t._v("\n Load more\n ")]):t._e()],2):t._e(),t._v(" "),e("p",{staticClass:"d-flex justify-content-between mb-0"},[e("button",{staticClass:"btn btn-link text-muted font-weight-bold text-decoration-none",attrs:{type:"button"},on:{click:function(e){return t.clearSelectedCollections()}}},[t._v("Clear")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Save")])])]):"schedulePost"==t.page||"mediaMetadata"==t.page||"addToStory"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("p",{staticClass:"text-center lead text-muted mb-0 py-5"},[t._v("This feature is not available yet.")])]):"editMedia"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3",attrs:{src:t.media[t.carouselCursor].preview_url,width:"50px",height:"50px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small"},[t._v("Media Description")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.media[t.carouselCursor].alt,expression:"media[carouselCursor].alt"}],staticClass:"form-control",attrs:{placeholder:"Add a media description here...",maxlength:t.config.uploader.max_altext_length},domProps:{value:t.media[t.carouselCursor].alt},on:{input:function(e){e.target.composing||t.$set(t.media[t.carouselCursor],"alt",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-muted mb-0 d-flex justify-content-between"},[e("span",[t._v("Describe your photo for people with visual impairments.")]),t._v(" "),e("span",[t._v(t._s(t.media[t.carouselCursor].alt?t.media[t.carouselCursor].alt.length:0)+"/"+t._s(t.config.uploader.max_altext_length))])])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small"},[t._v("License")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.licenseId,expression:"licenseId"}],staticClass:"form-control",on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.licenseId=e.target.multiple?i:i[0]}}},t._l(t.availableLicenses,function(i,s){return e("option",{domProps:{value:i.id,selected:i.id==t.licenseId}},[t._v("\n "+t._s(i.name)+"\n ")])}),0)])])]),t._v(" "),e("hr"),t._v(" "),e("p",{staticClass:"d-flex justify-content-between mb-0"},[e("button",{staticClass:"btn btn-link text-muted font-weight-bold text-decoration-none",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Save")])])]):"video-2"==t.page?e("div",{staticClass:"w-100 h-100"},[t.video.title.length?e("div",{staticClass:"border-bottom"},[e("div",{staticClass:"media p-3"},[e("img",{staticClass:"mr-2",attrs:{src:t.media[0].preview_url,width:"100px",height:"70px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-1"},[t._v(t._s(t.video.title?t.video.title.slice(0,70):"Untitled"))]),t._v(" "),e("p",{staticClass:"mb-0 text-muted small"},[t._v(t._s(t.video.description?t.video.description.slice(0,90):"No description"))])])])]):t._e(),t._v(" "),e("div",{staticClass:"border-bottom d-flex justify-content-between px-4 mb-0 py-2"},[t._m(16),t._v(" "),e("div",[e("div",{staticClass:"custom-control custom-switch",staticStyle:{"z-index":"9999"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.nsfw,expression:"nsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"asnsfw"},domProps:{checked:Array.isArray(t.nsfw)?t._i(t.nsfw,null)>-1:t.nsfw},on:{change:function(e){var i=t.nsfw,s=e.target,a=!!s.checked;if(Array.isArray(i)){var o=t._i(i,null);s.checked?o<0&&(t.nsfw=i.concat([null])):o>-1&&(t.nsfw=i.slice(0,o).concat(i.slice(o+1)))}else t.nsfw=a}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"asnsfw"}})])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showLicenseCard()}}},[t._v("Add license")])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2"},[e("span",[t._v("Audience")]),t._v(" "),e("span",{staticClass:"float-right"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#",disabled:""},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[t._v(t._s(t.visibilityTag))]),t._v(" "),e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])])]),t._v(" "),e("div",{staticClass:"p-3"},[e("div",{staticClass:"form-group"},[e("p",{staticClass:"small font-weight-bold text-muted mb-0"},[t._v("Title")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.video.title,expression:"video.title"}],staticClass:"form-control",attrs:{placeholder:"Add a good title"},domProps:{value:t.video.title},on:{input:function(e){e.target.composing||t.$set(t.video,"title",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text mb-0 small text-muted"},[t._v(t._s(t.video.title.length)+"/70")])]),t._v(" "),e("div",{staticClass:"form-group mb-0"},[e("p",{staticClass:"small font-weight-bold text-muted mb-0"},[t._v("Description")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.video.description,expression:"video.description"}],staticClass:"form-control",attrs:{placeholder:"Add an optional description",maxlength:"5000",rows:"5"},domProps:{value:t.video.description},on:{input:function(e){e.target.composing||t.$set(t.video,"description",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text mb-0 small text-muted"},[t._v(t._s(t.video.description.length)+"/5000")])])])]):t._e()]),t._v(" "),"cropPhoto"==t.page?e("div",{staticClass:"card-footer bg-white d-flex justify-content-between"},[e("div",[e("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.rotate}},[e("i",{staticClass:"fas fa-redo"})])]),t._v(" "),e("div",[e("div",{staticClass:"d-inline-block button-group"},[e("button",{class:"btn font-weight-bold "+[t.cropper.aspectRatio==16/9?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(16/9)}}},[t._v("16:9")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[t.cropper.aspectRatio==4/3?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(4/3)}}},[t._v("4:3")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[1.5==t.cropper.aspectRatio?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(1.5)}}},[t._v("3:2")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[1==t.cropper.aspectRatio?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(1)}}},[t._v("1:1")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[t.cropper.aspectRatio==2/3?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(2/3)}}},[t._v("2:3")])])])]):t._e()])])])])},a=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between bg-white"},[e("span",{staticClass:"pr-3"},[e("i",{staticClass:"fas fa-cog fa-lg text-muted"})]),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("\n Camera Roll\n ")]),t._v(" "),e("span",{staticClass:"text-primary font-weight-bold"},[t._v("Upload")])])},function(){var t=this._self._c;return t("span",{staticClass:"pr-3"},[t("i",{staticClass:"fas fa-info-circle fa-lg text-primary"})])},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._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._self._c;return t("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%","background-color":"#008DF5"}},[t("i",{staticClass:"fal fa-bolt text-white fa-lg"})])},function(){var t=this._self._c;return t("p",{staticClass:"mb-0"},[t("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[this._v("New Post")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"2px solid #008DF5"}},[e("i",{staticClass:"far fa-edit text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Text Post")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Share a text only post")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body py-2"},[e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"1px solid #008DF5"}},[e("i",{staticClass:"fas fa-history text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Story")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Add to your story")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body py-2"},[e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"2px solid #008DF5"}},[e("i",{staticClass:"fas fa-poll-h text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Poll")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Create a poll")])])])])},function(){var t=this,e=t._self._c;return e("a",{staticClass:"card my-md-3 shadow-none border compose-action text-decoration-none text-dark",attrs:{href:"/i/collections/create"}},[e("div",{staticClass:"card-body py-2"},[e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"1px solid #008DF5"}},[e("i",{staticClass:"fal fa-images text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Collection")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("New collection of posts")])])])])])},function(){var t=this._self._c;return t("p",{staticClass:"py-3"},[t("a",{staticClass:"font-weight-bold",attrs:{href:"/site/help"}},[this._v("Help")])])},function(){var t=this._self._c;return t("div",[t("div",{staticClass:"text-dark"},[this._v("Sensitive/NSFW Media")])])},function(){var t=this,e=t._self._c;return e("span",[t._v("Add to Collection "),e("span",{staticClass:"ml-2 badge badge-primary"},[t._v("NEW")])])},function(){var t=this._self._c;return t("span",{staticClass:"text-decoration-none"},[t("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])},function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"text-dark"},[t._v("Turn off commenting")]),t._v(" "),e("p",{staticClass:"text-muted small mb-0"},[t._v("Disables comments for this post, you can change this later.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("div",{staticClass:"text-dark"},[t._v("Media Descriptions")]),t._v(" "),e("p",{staticClass:"text-muted small mb-0"},[t._v("Describe your photos for people with visual impairments.")])]),t._v(" "),e("div",[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])},function(){var t=this._self._c;return t("div",[t("div",{staticClass:"text-dark"},[this._v("Contains NSFW Media")])])}]},67794(t,e,i){"use strict";i.r(e),i.d(e,{filterEffects:()=>s});var s=[{name:"1984",ops:[{type:"sepia",intensity:.5},{type:"hue_rotate",angle:-30},{type:"adjust_color",brightness:0,contrast:0,saturation:.4}]},{name:"Azen",ops:[{type:"sepia",intensity:.2},{type:"adjust_color",brightness:.15,contrast:0,saturation:.4}]},{name:"Astairo",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.2,contrast:.1,saturation:.3}]},{name:"Grasbee",ops:[{type:"sepia",intensity:.5},{type:"adjust_color",brightness:0,contrast:.2,saturation:.8}]},{name:"Bookrun",ops:[{type:"sepia",intensity:.4},{type:"adjust_color",brightness:.1,contrast:.25,saturation:-.1},{type:"hue_rotate",angle:-2}]},{name:"Borough",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.25,contrast:.25,saturation:0},{type:"hue_rotate",angle:5}]},{name:"Farms",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.25,contrast:.25,saturation:.35},{type:"hue_rotate",angle:-5}]},{name:"Hairsadone",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.25,contrast:.25,saturation:0},{type:"hue_rotate",angle:5}]},{name:"Cleana",ops:[{type:"sepia",intensity:.5},{type:"adjust_color",brightness:.25,contrast:.15,saturation:-.1},{type:"hue_rotate",angle:-2}]},{name:"Catpatch",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:0,contrast:.5,saturation:.1}]},{name:"Earlyworm",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.25,contrast:.15,saturation:-.1},{type:"hue_rotate",angle:-5}]},{name:"Plaid",ops:[{type:"adjust_color",brightness:.1,contrast:.1,saturation:0}]},{name:"Kyo",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.2,contrast:.15,saturation:.35},{type:"hue_rotate",angle:-5}]},{name:"Yefe",ops:[{type:"sepia",intensity:.4},{type:"adjust_color",brightness:.2,contrast:.5,saturation:.4},{type:"hue_rotate",angle:-10}]},{name:"Godess",ops:[{type:"sepia",intensity:.5},{type:"adjust_color",brightness:.05,contrast:.05,saturation:.35}]},{name:"Yards",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.2,contrast:.2,saturation:.05},{type:"hue_rotate",angle:-15}]},{name:"Quill",ops:[{type:"adjust_color",brightness:.25,contrast:-.15,saturation:-1}]},{name:"Juno",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.15,contrast:.15,saturation:.8}]},{name:"Rankine",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.1,contrast:.5,saturation:0},{type:"hue_rotate",angle:-10}]},{name:"Mark",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.3,contrast:.2,saturation:.25}]},{name:"Chill",ops:[{type:"adjust_color",brightness:0,contrast:.5,saturation:.1}]},{name:"Van",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.05,contrast:.05,saturation:1}]},{name:"Apache",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.05,contrast:.05,saturation:.75}]},{name:"May",ops:[{type:"adjust_color",brightness:.15,contrast:.1,saturation:.1}]},{name:"Ceres",ops:[{type:"adjust_color",brightness:.4,contrast:-.05,saturation:-1},{type:"sepia",intensity:.35}]},{name:"Knoxville",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:-.1,contrast:.5,saturation:0},{type:"hue_rotate",angle:-15}]},{name:"Felicity",ops:[{type:"adjust_color",brightness:.25,contrast:.1,saturation:.1}]},{name:"Sandblast",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.2,contrast:0,saturation:0}]},{name:"Daisy",ops:[{type:"sepia",intensity:.75},{type:"adjust_color",brightness:.25,contrast:-.25,saturation:.4}]},{name:"Elevate",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.2,contrast:.25,saturation:-.1}]},{name:"Nevada",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:-.1,contrast:.5,saturation:0},{type:"hue_rotate",angle:-15}]},{name:"Futura",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.25,contrast:.25,saturation:.2}]},{name:"Sleepy",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.25,contrast:.25,saturation:.2}]},{name:"Steward",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.25,contrast:.1,saturation:.25}]},{name:"Savoy",ops:[{type:"sepia",intensity:.4},{type:"adjust_color",brightness:.2,contrast:-.1,saturation:.4},{type:"hue_rotate",angle:-10}]},{name:"Blaze",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:-.05,contrast:.5,saturation:0},{type:"hue_rotate",angle:-15}]},{name:"Apricot",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.1,contrast:.1,saturation:0}]},{name:"Gloming",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.15,contrast:.2,saturation:.3}]},{name:"Walter",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.25,contrast:-.2,saturation:.4}]},{name:"Poplar",ops:[{type:"adjust_color",brightness:.2,contrast:-.15,saturation:-.95},{type:"sepia",intensity:.5}]},{name:"Xenon",ops:[{type:"sepia",intensity:.45},{type:"adjust_color",brightness:.75,contrast:.25,saturation:.3},{type:"hue_rotate",angle:-5}]}]},43532(t,e,i){Vue.component("compose-modal",i(19324).default)},42615(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>o});var s=i(76798),a=i.n(s)()(function(t){return t[1]});a.push([t.id,".compose-modal-component .media-drawer-filters{flex-wrap:unset;overflow-x:auto}.compose-modal-component .media-drawer-filters .nav-link{min-width:100px;padding-bottom:1rem;padding-top:1rem}.compose-modal-component .media-drawer-filters .active{color:#fff;font-weight:700}@media (hover:none) and (pointer:coarse){.compose-modal-component .media-drawer-filters::-webkit-scrollbar{display:none}}.compose-modal-component .no-focus{border-color:none;box-shadow:none;outline:0}.compose-modal-component a.list-group-item{text-decoration:none}.compose-modal-component a.list-group-item:hover{background-color:#f8f9fa;text-decoration:none}.compose-modal-component .compose-action:hover{background-color:#f8f9fa;cursor:pointer}.compose-modal-component .collections-list-group{max-height:500px;overflow-y:auto}.compose-modal-component .collections-list-group .list-group-item.active{background-color:#dbeafe!important;border-color:#60a5fa!important;color:#212529}.compose-modal-component .media-editor{--height-menu-row:5rem;--gap-preview:0rem;--height-menu-row-scroll:10rem;--color-bg-button:transparent;--color-bg-preview:transparent;--color-bg-button-hover:var(--light-gray);--color-bg-acc:var(--card-bg);--color-fnt-default:var(--body-color);--color-fnt-acc:var(--text-lighter);--color-scrollbar-thumb:var(--light-gray);--color-scrollbar-both:var(--light-gray) transparent;--color-slider-thumb:var(--text-lighter);--color-slider-progress:var(--light-gray);--color-slider-track:var(--light);--color-crop-outline:var(--light-gray);--color-crop-dashed:#ffffffde;--color-crop-overlay:#00000082;background-color:transparent;border:none!important;box-shadow:none!important;font-size:12px}",""]);const o=a},94586(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>r});var s=i(85072),a=i.n(s),o=i(42615),n={insert:"head",singleton:!1};a()(o.default,n);const r=o.default.locals||{}},19324(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>n});var s=i(7114),a=i(50427),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);i.d(e,o);i(30023);const n=(0,i(14486).default)(a.default,s.render,s.staticRenderFns,!1,null,null,null).exports},50427(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>o});var s=i(28320),a={};for(const t in s)"default"!==t&&(a[t]=()=>s[t]);i.d(e,a);const o=s.default},7114(t,e,i){"use strict";i.r(e);var s=i(18999),a={};for(const t in s)"default"!==t&&(a[t]=()=>s[t]);i.d(e,a)},30023(t,e,i){"use strict";i.r(e);var s=i(94586),a={};for(const t in s)"default"!==t&&(a[t]=()=>s[t]);i.d(e,a)}},t=>{t.O(0,[3660],()=>{return e=43532,t(t.s=e);var e});t.O()}]);
\ No newline at end of file
+(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[5666],{28320(t,e,a){"use strict";a.r(e),a.d(e,{default:()=>C});var s=a(91584),i=(a(49551),a(2e4)),o=(a(73718),a(79288)),n=a(4717),r=a(67794),l=a(74692);function c(t){return c="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},c(t)}function d(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(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 u(t){for(var e=1;et.length)&&(e=t.length);for(var a=0,s=Array(e);a3?(i=h===s)&&(l=o[(r=o[4])?5:(r=3,3)],o[4]=o[5]=t):o[0]<=m&&((i=a<2&&ms||s>h)&&(o[4]=a,o[5]=s,u.n=h,r=0))}if(i||a>1)return n;throw p=!0,s}return function(i,d,h){if(c>1)throw TypeError("Generator is already running");for(p&&1===d&&m(d,h),r=d,l=h;(e=r<2?t:l)||!p;){o||(r?r<3?(r>1&&(u.n=-1),m(r,l)):u.n=l:u.v=l);try{if(c=2,o){if(r||(i="next"),e=o[i]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,r<2&&(r=0)}else 1===r&&(e=o.return)&&e.call(o),r<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),r=1);o=t}else if((e=(p=u.n<0)?l:a.call(s,u))!==n)break}catch(e){o=t,r=1,l=e}finally{c=1}}return{value:e,done:p}}}(a,i,o),!0),c}var n={};function r(){}function l(){}function c(){}e=Object.getPrototypeOf;var d=[][s]?e(e([][s]())):(b(e={},s,function(){return this}),e),p=c.prototype=r.prototype=Object.create(d);function u(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,b(t,i,"GeneratorFunction")),t.prototype=Object.create(p),t}return l.prototype=c,b(p,"constructor",c),b(c,"constructor",l),l.displayName="GeneratorFunction",b(c,i,"GeneratorFunction"),b(p),b(p,i,"Generator"),b(p,s,function(){return this}),b(p,"toString",function(){return"[object Generator]"}),(g=function(){return{w:o,m:u}})()}function b(t,e,a,s){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}b=function(t,e,a,s){function o(e,a){b(t,e,function(t){return this._invoke(e,a,t)})}e?i?i(t,e,{value:a,enumerable:!s,configurable:!s,writable:!s}):t[e]=a:(o("next",0),o("throw",1),o("return",2))},b(t,e,a,s)}function y(t,e,a,s,i,o,n){try{var r=t[o](n),l=r.value}catch(t){return void a(t)}r.done?e(l):Promise.resolve(l).then(s,i)}function _(t){return function(){var e=this,a=arguments;return new Promise(function(s,i){var o=t.apply(e,a);function n(t){y(o,s,i,n,r,"next",t)}function r(t){y(o,s,i,n,r,"throw",t)}n(void 0)})}}const C={components:{VueCropper:s.default,Autocomplete:i.default,VueTribute:o.default,MediaEditorPreview:n.MediaEditorPreview,MediaEditorFilterMenu:n.MediaEditorFilterMenu},data:function(){return{config:window.App.config,pageLoading:!1,profile:window._sharedData.curUser,composeText:"",composeTextLength:0,nsfw:!1,ids:[],media:[],files:[],carouselCursor:0,uploading:!1,uploadProgress:100,mode:"photo",modes:["photo","video","plain"],page:1,composeState:"publish",visibility:"public",visibilityTag:"Public",place:!1,commentsDisabled:!1,optimizeMedia:!0,mediaCropped:!1,pageTitle:"",cropper:{aspectRatio:1,viewMode:1,zoomable:!0,zoom:0},namedPages:["cropPhoto","tagPeople","addLocation","advancedSettings","visibility","altText","addToCollection","schedulePost","mediaMetadata","addToStory","editMedia","cameraRoll","tagPeopleHelp","textOptions","licensePicker"],cameraRollMedia:[],taggedUsernames:[],taggedPeopleSearch:null,textMode:!1,tributeSettings:{noMatchTemplate:function(){return null},collection:[{trigger:"@",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/mention",{params:{q:t}}).then(function(t){e(t.data)}).catch(function(t){})}},{trigger:"#",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/hashtag",{params:{q:t}}).then(function(t){e(t.data)}).catch(function(t){})}}]},availableLicenses:[{id:1,name:"All Rights Reserved",title:""},{id:5,name:"Public Domain Work",title:""},{id:6,name:"Public Domain Dedication (CC0)",title:"CC0"},{id:11,name:"Attribution",title:"CC BY"},{id:12,name:"Attribution-ShareAlike",title:"CC BY-SA"},{id:13,name:"Attribution-NonCommercial",title:"CC BY-NC"},{id:14,name:"Attribution-NonCommercial-ShareAlike",title:"CC BY-NC-SA"},{id:15,name:"Attribution-NoDerivs",title:"CC BY-ND"},{id:16,name:"Attribution-NonCommercial-NoDerivs",title:"CC BY-NC-ND"}],licenseIndex:0,video:{title:"",description:""},composeSettings:{default_license:null,media_descriptions:!1},licenseId:1,licenseTitle:null,maxAltTextLength:140,pollOptionModel:null,pollOptions:[],pollExpiry:1440,postingPoll:!1,collections:[],collectionsSelected:[],collectionsLoaded:!1,collectionsPage:1,collectionsCanLoadMore:!1,spoilerText:void 0,isPosting:!1}},created:function(){var t=this;try{this.editor=new n.MediaEditor({effects:r.filterEffects,onEdit:function(e,a){var s=a.effect,i=a.intensity,o=a.crop;if(!(e>=t.files.length)){var n=t.files[e];t.$set(n,"editState",{effect:s,intensity:i,crop:o})}},onRenderPreview:function(e,a){if(!(e>=t.files.length)){var s=t.files[e].editState,i=t.media[e];s&&(s.crop||-1!==s.effect)?i.preview_url=a:i.preview_url=i.url}}})}catch(t){}},computed:{spoilerTextLength:function(){return this.spoilerText?this.spoilerText.length:0}},beforeMount:function(){var t=this;axios.get("/api/compose/v0/settings").then(function(e){t.composeSettings=e.data,t.licenseId=t.composeSettings.default_license,t.maxAltTextLength=e.data.max_altext_length,t.licenseId>10&&(t.licenseTitle=t.availableLicenses.filter(function(e){return e.id==t.licenseId}).map(function(t){return t.title})[0]),t.fetchProfile()})},destroyed:function(){this.media.forEach(function(t){URL.revokeObjectURL(t.url),URL.revokeObjectURL(t.preview_url)}),this.files.length=this.media.length=0,this.editor=void 0},methods:{timeAgo:function(t){return App.util.format.timeAgo(t)},formatBytes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!+t)return"0 Bytes";var a=e<0?0:e,s=Math.floor(Math.log(t)/Math.log(1024));return"".concat(parseFloat((t/Math.pow(1024,s)).toFixed(a))," ").concat(["Bytes","KB","MB","GB","TB"][s])},defineErrorMessage:function(t){var e;return e=t.response?t.response.data.message?t.response.data.message:"An unexpected error occured.":t.message,swal("Oops, something went wrong!",e,"error")},fetchProfile:function(){var t=this,e={public:"Public",private:"Followers Only",unlisted:"Unlisted"};if(window._sharedData.curUser.id){if(this.profile=window._sharedData.curUser,this.composeSettings&&this.composeSettings.hasOwnProperty("default_scope")&&this.composeSettings.default_scope){var a=this.composeSettings.default_scope;this.visibility=a,this.visibilityTag=e[a]}1==this.profile.locked&&(this.visibility="private",this.visibilityTag="Followers Only")}else axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(a){if(window._sharedData.currentUser=a.data,t.profile=a.data,t.composeSettings&&t.composeSettings.hasOwnProperty("default_scope")&&t.composeSettings.default_scope){var s=t.composeSettings.default_scope;t.visibility=s,t.visibilityTag=e[s]}1==t.profile.locked&&(t.visibility="private",t.visibilityTag="Followers Only")}).catch(function(t){})},addMedia:function(t){var e=l(t.target);e.attr("disabled",""),l('.file-input[name="media"]').trigger("click"),e.blur(),e.removeAttr("disabled")},addText:function(t){this.pageTitle="New Text Post",this.page="addText",this.textMode=!0,this.mode="text"},onInputFile:function(t){var e=this,a=t.target,s=Array.from(a.files);a.value=null;var i=this;s.forEach(function(t,a){if(i.media&&i.media.length>=i.config.uploader.album_limit)return swal("Error","You can only upload "+i.config.uploader.album_limit+" photos per album","error"),void(i.page=2);var s=i.config.uploader.media_types.split(",");if(-1==l.inArray(t.type,s))return swal("Invalid File Type","The file you are trying to add is not a valid mime type. Please upload a "+i.config.uploader.media_types+" only.","error"),void(i.page=2);var o=t.type.replace(/\/.*/,""),n=URL.createObjectURL(t),r="image"===o?URL.createObjectURL(t):"/storage/no-preview.png";e.files.push({file:t,editState:void 0}),e.media.push({url:n,preview_url:r,type:o})}),this.media.length?this.page=3:this.page=2},mediaUpload:function(){var t=this;return _(g().m(function e(){var a;return g().w(function(e){for(;;)switch(e.n){case 0:return t.uploading=!0,a=t.files.map(function(){var e=_(g().m(function e(a,s){var i,o,n,r,l,c,d;return g().w(function(e){for(;;)switch(e.n){case 0:if(i=a.file,"image"!==(o=t.media[s]).type||!a.editState){e.n=3;break}if(n=a.editState,r=a.cropperBlob,!t.editor||-1===n.effect&&!n.crop){e.n=2;break}return e.n=1,t.editor.toBlob(s);case 1:i=e.v,e.n=3;break;case 2:r&&(i=r);case 3:return(l=new FormData).append("file",i),c={onUploadProgress:function(t){var e=Math.round(100*t.loaded/t.total);d.uploadProgress=e}},d=t,e.n=4,axios.post("/api/compose/v0/media/upload",l,c).then(function(t){d.uploadProgress=100,d.ids.push(t.data.id),Object.assign(o,t.data),setTimeout(function(){d.page=3},300)}).catch(function(t){switch(t.response.status){case 403:swal("Account size limit reached","Contact your admin for assistance.","error"),d.page=2;break;case 413:swal("File is too large","The file you uploaded has the size of "+d.formatBytes(i.size)+". Unfortunately, only images up to "+d.formatBytes(1024*d.config.uploader.max_photo_size)+" are supported.\nPlease resize the file and try again.","error"),d.page=2;break;case 422:var e="";if(t.response.data&&t.response.data.errors){var s=t.response.data.errors,o=Object.values(s).flat();e=(a.file.name?a.file.name+":\n":"")+o.join("\n")}else e=t.response.data&&t.response.data.message?(a.file.name?a.file.name+": ":"")+t.response.data.message:"A validation error occurred.";swal("Upload Failed",e,"error"),d.page=2;break;case 451:swal("Banned Content","This content has been banned and cannot be uploaded.","error"),d.page=2;break;case 429:swal("Limit Reached","You can upload up to 250 photos or videos per day and you've reached that limit. Please try again later.","error"),d.page=2;break;case 500:swal("Error",t.response.data.message,"error"),d.page=2;break;default:var n="An unexpected error occurred.";t.response&&t.response.data&&t.response.data.message&&(n=(a.file.name?a.file.name+": ":"")+t.response.data.message),swal("Oops, something went wrong!",n,"error"),d.page=2}throw t});case 4:return e.a(2)}},e)}));return function(t,a){return e.apply(this,arguments)}}()),e.n=1,Promise.all(a).finally(function(){t.uploadProgress=0,t.uploading=!1});case 1:return e.a(2)}},e)}))()},deleteMedia:function(){var t=this;return _(g().m(function e(){var a,s;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(0!=window.confirm("Are you sure you want to delete this media?")){e.n=1;break}return e.a(2);case 1:if(!(s=t.media[t.carouselCursor].id)){e.n=5;break}return e.p=2,e.n=3,axios.delete("/api/compose/v0/media/delete",{params:{id:s}});case 3:e.n=5;break;case 4:return e.p=4,e.v,swal("Whoops!","An error occured when attempting to delete this, please try again","error"),e.a(2);case 5:t.ids.splice(t.carouselCursor,1),t.media.splice(t.carouselCursor,1),URL.revokeObjectURL(null===(a=t.files[t.carouselCursor])||void 0===a?void 0:a.url),t.files.splice(t.carouselCursor,1),0==t.media.length?(t.ids=[],t.media=[],t.carouselCursor=0):t.carouselCursor=0;case 6:return e.a(2)}},e,null,[[2,4]])}))()},mediaReorder:function(t){var e=this.carouselCursor,a=e+("prev"===t?-1:1);if(!(a<0||a>=this.media.length)){var s=h(this.files.splice(e,1),1)[0],i=h(this.media.splice(e,1),1)[0],o=h(this.ids.splice(e,1),1)[0];this.files.splice(a,0,s),this.media.splice(a,0,i),this.ids.splice(a,0,o),this.carouselCursor=a}},compose:function(){var t=this;return _(g().m(function e(){var a,s,i;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(a=t.composeState,0!=t.files.length){e.n=1;break}return e.a(2);case 1:if(!(t.composeText.length>t.config.uploader.max_caption_length)){e.n=2;break}return swal("Error","Caption is too long","error"),e.a(2);case 2:i=a,e.n="publish"===i?3:"delete"===i?10:11;break;case 3:return t.isPosting=!0,e.p=4,e.n=5,t.mediaUpload().finally(function(){return t.isPosting=!1});case 5:e.n=7;break;case 6:return e.p=6,e.v,t.isPosting=!1,e.a(2);case 7:if(!0!==t.composeSettings.media_descriptions){e.n=8;break}if(!t.media.filter(function(t){return!t.hasOwnProperty("alt")||t.alt.length<2}).length){e.n=8;break}return swal("Missing media descriptions","You have enabled mandatory media descriptions. Please add media descriptions under Advanced settings to proceed. For more information, please see the media settings page.","warning"),t.isPosting=!1,e.a(2);case 8:if(0!=t.media.length){e.n=9;break}return swal("Whoops!","You need to add media before you can save this!","warning"),e.a(2);case 9:return"Add optional caption..."==t.composeText&&(t.composeText=""),s={media:t.media,caption:t.composeText,visibility:t.visibility,cw:t.nsfw,comments_disabled:t.commentsDisabled,place:t.place,tagged:t.taggedUsernames,optimize_media:t.optimizeMedia,license:t.licenseId,video:t.video,spoiler_text:t.spoilerText},t.collectionsSelected.length&&(s.collections=t.collectionsSelected.map(function(e){return t.collections[e].id})),axios.post("/api/compose/v0/publish",s).then(function(t){"/i/web/compose"===location.pathname&&t.data&&t.data.length?location.href="/i/web/post/"+t.data.split("/").slice(-1)[0]:location.href=t.data}).catch(function(e){if(400===e.response.status)"Must contain a single photo or video or multiple photos."==e.response.data.error?swal("Wrong types of mixed media","The album must contain a single photo or video or multiple photos.","error"):t.defineErrorMessage(e);else t.defineErrorMessage(e)}).finally(function(){t.isPosting=!1}),e.a(2);case 10:return t.ids=[],t.media=[],t.carouselCursor=0,t.composeText="",t.composeTextLength=0,l("#composeModal").modal("hide"),e.a(2);case 11:return e.a(2)}},e,null,[[4,6]])}))()},composeTextPost:function(){var t=this.composeState;if(this.composeText.length>this.config.uploader.max_caption_length)swal("Error","Caption is too long","error");else switch(t){case"publish":var e={caption:this.composeText,visibility:this.visibility,cw:this.nsfw,comments_disabled:this.commentsDisabled,place:this.place,tagged:this.taggedUsernames};return void axios.post("/api/compose/v0/publish/text",e).then(function(t){var e=t.data;window.location.href=e}).catch(function(t){var e=t.response.data.message?t.response.data.message:"An unexpected error occured.";swal("Oops, something went wrong!",e,"error")});case"delete":return this.ids=[],this.media=[],this.carouselCursor=0,this.composeText="",this.composeTextLength=0,void l("#composeModal").modal("hide")}},closeModal:function(){l("#composeModal").modal("hide"),this.$emit("close")},goBack:function(){switch(this.pageTitle="",this.mode){case"photo":switch(this.page){case"addText":case"video-2":this.page=1;break;case"textOptions":this.page="addText";break;case"cropPhoto":case"editMedia":this.page=2;break;case"tagPeopleHelp":this.showTagCard();break;case"licensePicker":this.page=3;break;default:-1!=this.namedPages.indexOf(this.page)?this.page=3:this.page--}break;case"video":this.page,this.page="video-2";break;default:switch(this.page){case"addText":case"video-2":this.page=1;break;case"textOptions":this.page="addText";break;case"cropPhoto":case"editMedia":this.page=2;break;case"tagPeopleHelp":this.showTagCard();break;case"licensePicker":this.page=3;break;default:-1!=this.namedPages.indexOf(this.page)?this.page="text"==this.mode?"addText":3:"text"==this.mode||this.page--}}},nextPage:function(){var t=this;switch(this.pageTitle="",this.page){case 1:this.page=2;break;case"cropPhoto":var e=this.files[this.carouselCursor],a=this.$refs.cropper,s=u(u({},e.editState),{},{crop:a.getData()});this.editor?this.editor.setEditState(this.carouselCursor,s):a.getCroppedCanvas().toBlob(function(a){var s=t.media[t.carouselCursor].media;e.croppedBlob=a,URL.revokeObjectURL(s.preview_url),s.preview_url=URL.createObjectURL(a)}),this.page=2;break;case 2:case 3:this.page++}},rotate:function(){this.$refs.cropper.rotate(90)},changeAspect:function(t){this.cropper.aspectRatio=t,this.$refs.cropper.setAspectRatio(t)},showTagCard:function(){this.pageTitle="Tag People",this.page="tagPeople"},showTagHelpCard:function(){this.pageTitle="About Tag People",this.page="tagPeopleHelp"},showLocationCard:function(){this.pageTitle="Add Location",this.page="addLocation"},showAdvancedSettingsCard:function(){this.pageTitle="Advanced Settings",this.page="advancedSettings"},locationSearch:function(t){if(t.length<1)return[];return axios.get("/api/compose/v0/search/location",{params:{q:t}}).then(function(t){return t.data})},getResultValue:function(t){return t.name+", "+t.country},onSubmitLocation:function(t){switch(this.place=t,this.mode){case"photo":this.pageTitle="",this.page=3;break;case"video":this.pageTitle="Edit Video Details",this.page="video-2";break;case"text":this.pageTitle="New Text Post",this.page="addText"}},showVisibilityCard:function(){this.pageTitle="Post Visibility",this.page="visibility"},showAddToStoryCard:function(){this.pageTitle="Add to Story",this.page="addToStory"},showCropPhotoCard:function(){this.pageTitle="Edit Photo",this.page="cropPhoto"},toggleVisibility:function(t){switch(this.visibility=t,this.visibilityTag={public:"Public",private:"Followers Only",unlisted:"Unlisted"}[t],this.mode){case"photo":this.pageTitle="",this.page=3;break;case"video":this.pageTitle="Edit Video Details",this.page="video-2";break;case"text":this.pageTitle="New Text Post",this.page="addText"}},showMediaDescriptionsCard:function(){this.pageTitle="Media Descriptions",this.page="altText"},showAddToCollectionsCard:function(){this.pageTitle="Add to Collection",this.page="addToCollection"},showSchedulePostCard:function(){this.pageTitle="Schedule Post",this.page="schedulePost"},showEditMediaCard:function(){this.pageTitle="Edit Media",this.page="editMedia"},fetchCameraRollDrafts:function(){var t=this;axios.get("/api/pixelfed/local/drafts").then(function(e){t.cameraRollMedia=e.data})},tagSearch:function(t){if(t.length<1)return[];var e=this;return axios.get("/api/compose/v0/search/tag",{params:{q:t}}).then(function(t){if(t.data.length)return t.data.filter(function(t){return 0==e.taggedUsernames.filter(function(e){return e.id==t.id}).length})})},getTagResultValue:function(t){return t.name},onTagSubmitLocation:function(t){this.taggedUsernames.filter(function(e){return e.id==t.id}).length||(this.taggedUsernames.push(t),this.$refs.autocomplete.value="")},untagUsername:function(t){this.taggedUsernames.splice(t,1)},showTextOptions:function(){this.page="textOptions",this.pageTitle="Text Post Options"},showLicenseCard:function(){this.pageTitle="Select a License",this.page="licensePicker"},toggleLicense:function(t){var e=this;switch(this.licenseId=t.id,this.licenseId>10?this.licenseTitle=this.availableLicenses.filter(function(t){return t.id==e.licenseId}).map(function(t){return t.title})[0]:this.licenseTitle=null,this.mode){case"photo":this.pageTitle="",this.page=3;break;case"video":this.pageTitle="Edit Video Details",this.page="video-2";break;case"text":this.pageTitle="New Text Post",this.page="addText"}},newPoll:function(){this.page="poll"},savePollOption:function(){-1==this.pollOptions.indexOf(this.pollOptionModel)?(this.pollOptions.push(this.pollOptionModel),this.pollOptionModel=null):this.pollOptionModel=null},deletePollOption:function(t){this.pollOptions.splice(t,1)},postNewPoll:function(){var t=this;this.postingPoll=!0,axios.post("/api/compose/v0/poll",{caption:this.composeText,cw:!1,visibility:this.visibility,comments_disabled:!1,expiry:this.pollExpiry,pollOptions:this.pollOptions}).then(function(e){if(!e.data.hasOwnProperty("url"))return swal("Oops!","An error occured while attempting to create this poll. Please refresh the page and try again.","error"),void(t.postingPoll=!1);window.location.href=e.data.url}).catch(function(e){if(e.response.data.hasOwnProperty("error")&&"Duplicate detected."==e.response.data.error)return t.postingPoll=!1,void swal("Oops!","The poll you are trying to create is similar to an existing poll you created. Please make the poll question (caption) unique.","error");t.postingPoll=!1,swal("Oops!","An error occured while attempting to create this poll. Please refresh the page and try again.","error")})},filesize:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){return filesize(1024*t,{round:0})}),showCollectionCard:function(){this.pageTitle="Add to Collection(s)",this.page="addToCollection",this.collectionsLoaded||this.fetchCollections()},fetchCollections:function(){var t=this;axios.get("/api/local/profile/collections/".concat(this.profile.id)).then(function(e){t.collections=e.data,t.collectionsLoaded=!0,t.collectionsCanLoadMore=9==e.data.length,t.collectionsPage++})},toggleCollectionItem:function(t){if(this.collectionsSelected.includes(t))this.collectionsSelected=this.collectionsSelected.filter(function(e){return e!=t});else{if(7==this.collectionsSelected.length)return void swal("Oops!","You can only share to 5 collections.","info");this.collectionsSelected.push(t)}},clearSelectedCollections:function(){this.collectionsSelected=[],this.pageTitle="Compose",this.page=3},loadMoreCollections:function(){var t=this;this.collectionsCanLoadMore=!1,axios.get("/api/local/profile/collections/".concat(this.profile.id),{params:{page:this.collectionsPage}}).then(function(e){var a,s=t.collections.map(function(t){return t.id}),i=e.data.filter(function(t){return!s.includes(t.id)});i&&i.length&&((a=t.collections).push.apply(a,d(i)),t.collectionsPage++,t.collectionsCanLoadMore=!0)})}},watch:{files:function(t){this.editor.setSources(t.map(function(t){return t.file}))}}}},47907(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:"compose-modal-component"},[e("input",{staticClass:"w-100 h-100 d-none file-input",attrs:{type:"file",id:"pf-dz",name:"media",multiple:"",accept:t.config.uploader.media_types},on:{input:t.onInputFile}}),t._v(" "),e("canvas",{staticClass:"d-none",attrs:{id:"pr_canvas"}}),t._v(" "),e("img",{staticClass:"d-none",attrs:{id:"pr_img"}}),t._v(" "),e("div",{staticClass:"timeline"},[t.uploading?e("div",[e("div",{staticClass:"card status-card card-md-rounded-0 w-100 h-100 bg-light py-3",staticStyle:{"border-bottom":"1px solid #f1f1f1"}},[e("div",{staticClass:"p-5 mt-2"},[e("b-progress",{attrs:{value:t.uploadProgress,max:100,striped:"",animated:!0}}),t._v(" "),e("p",{staticClass:"text-center mb-0 font-weight-bold"},[t._v("Uploading ... ("+t._s(t.uploadProgress)+"%)")])],1)])]):"cameraRoll"==t.page?e("div",[e("div",{staticClass:"card status-card card-md-rounded-0",staticStyle:{display:"flex"}},[t._m(0),t._v(" "),e("div",{staticClass:"h-100 card-body p-0 border-top",staticStyle:{width:"100%","min-height":"400px"}},[t.cameraRollMedia.length>0?e("div",{staticClass:"row p-0 m-0"},t._l(t.cameraRollMedia,function(t,a){return e("div",{class:[0==a?"col-12 p-0":"col-3 p-0"]},[e("div",{staticClass:"card info-overlay p-0 rounded-0 shadow-none border"},[e("div",{staticClass:"square"},[e("img",{staticClass:"square-content",attrs:{src:t.preview_url}})])])])}),0):e("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center"},[e("span",{staticClass:"w-100 h-100"},[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"}},[t._v("Upload")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return t.fetchCameraRollDrafts()}}},[t._v("Load Camera Roll")])])])])])]):"poll"==t.page?e("div",[e("div",{staticClass:"card status-card card-md-rounded-0",staticStyle:{display:"flex"}},[e("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between bg-white"},[t._m(1),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("\n New Poll\n ")]),t._v(" "),t.postingPoll?e("span",[t._m(2)]):!t.postingPoll&&t.pollOptions.length>1&&t.composeText.length?e("button",{staticClass:"btn btn-primary btn-sm font-weight-bold",on:{click:t.postNewPoll}},[e("span",[t._v("Create Poll")])]):e("span",{staticClass:"font-weight-bold text-lighter"},[t._v("\n Create Poll\n ")])]),t._v(" "),e("div",{staticClass:"h-100 card-body p-0 border-top",staticStyle:{width:"100%","min-height":"400px"}},[e("div",{staticClass:"border-bottom mt-2"},[e("div",{staticClass:"media px-3"},[e("img",{staticClass:"rounded-circle",attrs:{src:t.profile.avatar,width:"42px",height:"42px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small d-none"},[t._v("Caption")]),t._v(" "),e("vue-tribute",{attrs:{options:t.tributeSettings}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control border-0 rounded-0 no-focus",attrs:{rows:"3",placeholder:"Write a poll question..."},domProps:{value:t.composeText},on:{keyup:function(e){t.composeTextLength=t.composeText.length},input:function(e){e.target.composing||(t.composeText=e.target.value)}}})]),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(t.composeTextLength)+"/"+t._s(t.config.uploader.max_caption_length))])],1)])])]),t._v(" "),e("div",{staticClass:"p-3"},[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n Poll Options\n ")]),t._v(" "),t.pollOptions.length<4?e("div",{staticClass:"form-group mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptionModel,expression:"pollOptionModel"}],staticClass:"form-control rounded-pill",attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptionModel},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.savePollOption.apply(null,arguments)},input:function(e){e.target.composing||(t.pollOptionModel=e.target.value)}}})]):t._e(),t._v(" "),t._l(t.pollOptions,function(a,s){return e("div",{staticClass:"form-group mb-4 d-flex align-items-center",staticStyle:{"max-width":"400px",position:"relative"}},[e("span",{staticClass:"font-weight-bold mr-2",staticStyle:{position:"absolute",left:"10px"}},[t._v(t._s(s+1)+".")]),t._v(" "),t.pollOptions[s].length<50?e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[s],expression:"pollOptions[index]"}],staticClass:"form-control rounded-pill",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptions[s]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,s,e.target.value)}}}):e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[s],expression:"pollOptions[index]"}],staticClass:"form-control",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{placeholder:"Add a poll option, press enter to save",rows:"3"},domProps:{value:t.pollOptions[s]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,s,e.target.value)}}}),t._v(" "),e("button",{staticClass:"btn btn-danger btn-sm rounded-pill font-weight-bold",staticStyle:{position:"absolute",right:"5px"},on:{click:function(e){return t.deletePollOption(s)}}},[e("i",{staticClass:"fas fa-trash"}),t._v(" Delete\n ")])])}),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n Poll Expiry\n ")]),t._v(" "),e("div",{staticClass:"form-group"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.pollExpiry,expression:"pollExpiry"}],staticClass:"form-control rounded-pill",staticStyle:{width:"200px"},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.pollExpiry=e.target.multiple?a:a[0]}}},[e("option",{attrs:{value:"60"}},[t._v("1 hour")]),t._v(" "),e("option",{attrs:{value:"360"}},[t._v("6 hours")]),t._v(" "),e("option",{attrs:{value:"1440",selected:""}},[t._v("24 hours")]),t._v(" "),e("option",{attrs:{value:"10080"}},[t._v("7 days")])])])]),t._v(" "),e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n Poll Visibility\n ")]),t._v(" "),e("div",{staticClass:"form-group"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.visibility,expression:"visibility"}],staticClass:"form-control rounded-pill",staticStyle:{"max-width":"200px"},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.visibility=e.target.multiple?a:a[0]}}},[e("option",{attrs:{value:"public"}},[t._v("Public")]),t._v(" "),e("option",{attrs:{value:"private"}},[t._v("Followers Only")])])])])])],2)])])]):e("div",[e("div",{staticClass:"card status-card card-md-rounded-0 w-100 h-100",staticStyle:{display:"flex"}},[e("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between bg-white"},[e("div",[1==t.page?e("a",{staticClass:"font-weight-bold text-decoration-none text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.closeModal()}}},[e("i",{staticClass:"fas fa-times fa-lg"}),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.pageTitle))])]):2==t.page?e("span",[t.config.uploader.album_limit>t.media.length?e("button",{staticClass:"btn btn-outline-primary btn-sm font-weight-bold",attrs:{id:"cm-add-media-btn"},on:{click:function(e){return e.preventDefault(),t.addMedia.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-plus"})]):e("button",{staticClass:"btn btn-outline-secondary btn-sm font-weight-bold",attrs:{disabled:""}},[e("i",{staticClass:"fas fa-plus"})]),t._v(" "),e("b-tooltip",{attrs:{target:"cm-add-media-btn",triggers:"hover"}},[t._v("\n Upload another photo or video\n ")])],1):3==t.page?e("span",[e("a",{staticClass:"text-lighter text-decoration-none mr-3 d-flex align-items-center",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goBack()}}},[e("i",{staticClass:"fas fa-long-arrow-alt-left fa-lg mr-2"}),t._v(" "),e("span",{staticClass:"btn btn-outline-secondary btn-sm px-2 py-0 disabled",attrs:{disabled:""}},[t._v(t._s(t.media.length))])]),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.pageTitle))])]):e("span",[e("a",{staticClass:"text-lighter text-decoration-none mr-3",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goBack()}}},[e("i",{staticClass:"fas fa-long-arrow-alt-left fa-lg"})])]),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.pageTitle))])]),t._v(" "),2==t.page?e("div",[1==t.media.length?e("a",{staticClass:"text-center text-dark",attrs:{href:"#",title:"Crop & Resize",id:"cm-crop-btn"},on:{click:function(e){return e.preventDefault(),t.showCropPhotoCard.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-crop-alt fa-lg"})]):t._e(),t._v(" "),e("b-tooltip",{attrs:{target:"cm-crop-btn",triggers:"hover"}},[t._v("\n Crop & Resize\n ")])],1):t._e(),t._v(" "),e("div",[t.pageLoading?e("span",[t._m(3)]):e("span",[!t.pageLoading&&t.page>1&&t.page<=2||1==t.page&&0!=t.ids.length||"cropPhoto"==t.page?e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.nextPage.apply(null,arguments)}}},[t._v("Next")]):t._e(),t._v(" "),t.pageLoading||3!=t.page?t._e():[t.isPosting?e("b-spinner",{attrs:{small:""}}):e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.compose()}}},[t._v("Post")])],t._v(" "),t.pageLoading||"addText"!=t.page?t._e():e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.composeTextPost()}}},[t._v("Post")]),t._v(" "),t.pageLoading||"video-2"!=t.page?t._e():e("a",{staticClass:"font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.compose()}}},[t._v("Post")])],2)])]),t._v(" "),e("div",{staticClass:"card-body p-0 border-top"},["licensePicker"==t.page?e("div",{staticClass:"w-100 h-100",staticStyle:{"min-height":"280px"}},[e("div",{staticClass:"list-group list-group-flush"},t._l(t.availableLicenses,function(a,s){return e("div",{staticClass:"list-group-item cursor-pointer",class:{"text-primary":t.licenseId===a.id,"font-weight-bold":t.licenseId===a.id},on:{click:function(e){return t.toggleLicense(a)}}},[t._v("\n "+t._s(a.name)+"\n ")])}),0)]):"textOptions"==t.page?e("div",{staticClass:"w-100 h-100",staticStyle:{"min-height":"280px"}}):"addText"==t.page?e("div",{staticClass:"w-100 h-100",staticStyle:{"min-height":"280px"}},[e("div",{staticClass:"mt-2"},[e("div",{staticClass:"media px-3"},[e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small d-none"},[t._v("Body")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control border-0 rounded-0 no-focus",staticStyle:{"font-size":"18px",resize:"none"},attrs:{rows:"7",placeholder:"What's happening?"},domProps:{value:t.composeText},on:{keyup:function(e){t.composeTextLength=t.composeText.length},input:function(e){e.target.composing||(t.composeText=e.target.value)}}}),t._v(" "),e("div",{staticClass:"border-bottom"}),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0 font-weight-bold"},[t._v(t._s(t.composeTextLength)+"/"+t._s(t.config.uploader.max_caption_length))]),t._v(" "),e("p",{staticClass:"mb-0 mt-2"},[e("a",{staticClass:"btn btn-primary rounded-pill mr-2",staticStyle:{height:"37px"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showTextOptions()}}},[e("i",{staticClass:"fas fa-palette px-3 text-white"})]),t._v(" "),e("a",{staticClass:"btn rounded-pill mx-3 d-inline-flex align-items-center",class:[t.nsfw?"btn-danger":"btn-outline-lighter"],staticStyle:{height:"37px"},attrs:{href:"#",title:"Mark as sensitive/not safe for work"},on:{click:function(e){e.preventDefault(),t.nsfw=!t.nsfw}}},[e("i",{staticClass:"far fa-flag px-3"}),t._v(" "),e("span",{staticClass:"text-muted small font-weight-bold"})]),t._v(" "),e("a",{staticClass:"btn btn-outline-lighter rounded-pill d-inline-flex align-items-center",staticStyle:{height:"37px"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[e("i",{staticClass:"fas fa-eye mr-2"}),t._v(" "),e("span",{staticClass:"text-muted small font-weight-bold"},[t._v(t._s(t.visibilityTag))])])])])])])])]):1==t.page?e("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center",staticStyle:{"min-height":"400px"}},[e("div",{staticClass:"text-center"},[0==t.media.length?e("div",{staticClass:"card my-md-3 shadow-none border compose-action text-decoration-none text-dark"},[e("div",{staticClass:"card-body py-2",on:{click:function(e){return e.preventDefault(),t.addMedia.apply(null,arguments)}}},[e("div",{staticClass:"media"},[t._m(4),t._v(" "),e("div",{staticClass:"media-body text-left"},[t._m(5),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Share up to "+t._s(t.config.uploader.album_limit)+" photos or videos")]),t._v(" "),e("p",{staticClass:"mb-0 text-muted small"},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.config.uploader.media_types.split(",").map(function(t){return t.split("/")[1]}).join(", ")))]),t._v(" allowed up to "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.filesize(t.config.uploader.max_photo_size)))])])])])])]):t._e(),t._v(" "),t._e(),t._v(" "),1==t.config.features.stories?e("a",{staticClass:"card my-md-3 shadow-none border compose-action text-decoration-none text-dark",attrs:{href:"/i/stories/new"}},[t._m(7)]):t._e(),t._v(" "),t._e(),t._v(" "),t._m(9),t._v(" "),t._m(10)])]):"cropPhoto"==t.page?e("div",{staticClass:"w-100 h-100"},[t.media.length>0?e("div",[e("vue-cropper",{ref:"cropper",attrs:{relativeZoom:t.cropper.zoom,aspectRatio:t.cropper.aspectRatio,viewMode:t.cropper.viewMode,zoomable:t.cropper.zoomable,rotatable:!0,src:t.media[t.carouselCursor].url}})],1):t._e()]):2==t.page?e("div",{staticClass:"w-100 h-100"},[1==t.media.length?e("div",["image"===t.media[0].type?[e("media-editor-preview",{staticClass:"media-editor",attrs:{editor:t.editor,sourceIndex:0}}),t._v(" "),e("hr"),t._v(" "),e("media-editor-filter-menu",{staticClass:"media-editor",attrs:{editor:t.editor,sourceIndex:0}})]:e("img",{staticClass:"d-block img-fluid w-100",attrs:{src:"/storage/no-preview.png",alt:t.media[t.carouselCursor].description,title:t.media[t.carouselCursor].description}})],2):t.media.length>1?e("div",{staticClass:"d-flex-inline px-2 pt-2"},[e("ul",{staticClass:"nav media-drawer-filters text-center pb-3"},[e("li",{staticClass:"nav-item mx-md-4"},[t._v("ย ")]),t._v(" "),t._l(t.media,function(a,s){return e("li",{key:s+(t.ids[s]||a.url||""),staticClass:"nav-item mx-md-4"},[e("div",{staticClass:"nav-link",staticStyle:{display:"block",width:"300px",height:"300px"},on:{click:function(e){t.carouselCursor=s}}},[e("div",{class:[a.filter_class?a.filter_class:""],staticStyle:{width:"100%",height:"100%",display:"block"}},["image"===a.type?e("media-editor-preview",{staticClass:"media-editor",class:"rounded "+[s==t.carouselCursor?" border border-primary shadow":""],staticStyle:{width:"100%",height:"100%"},attrs:{editor:t.editor,sourceIndex:s}}):e("img",{staticClass:"d-block img-fluid w-100",attrs:{src:"/storage/no-preview.png",alt:t.media[t.carouselCursor].description,title:t.media[t.carouselCursor].description}})],1)]),t._v(" "),s==t.carouselCursor?e("div",{staticClass:"text-center mb-0 small text-lighter font-weight-bold pt-2"},[e("button",{staticClass:"btn btn-link",on:{click:function(e){return t.mediaReorder("prev")}}},[e("i",{staticClass:"far fa-chevron-circle-left"})]),t._v(" "),e("span",{staticClass:"cursor-pointer",on:{click:function(e){return e.preventDefault(),t.showCropPhotoCard.apply(null,arguments)}}},[t._v("Crop")]),t._v(" "),e("span",{staticClass:"cursor-pointer px-3",on:{click:function(e){return e.preventDefault(),t.showEditMediaCard()}}},[t._v("Edit")]),t._v(" "),e("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.deleteMedia()}}},[t._v("Delete")]),t._v(" "),e("button",{staticClass:"btn btn-link",on:{click:function(e){return t.mediaReorder("next")}}},[e("i",{staticClass:"far fa-chevron-circle-right"})])]):t._e()])}),t._v(" "),e("li",{staticClass:"nav-item mx-md-4"},[t._v("ย ")])],2),t._v(" "),e("hr"),t._v(" "),"image"==t.media[t.carouselCursor].type?e("div",{staticClass:"align-items-center px-2 pt-2"},[e("media-editor-filter-menu",{staticClass:"media-editor",attrs:{editor:t.editor,sourceIndex:t.carouselCursor}})],1):t._e()]):e("div",[e("p",{staticClass:"mb-0 p-5 text-center font-weight-bold"},[t._v("An error occured, please refresh the page.")])])]):3==t.page?e("div",{staticClass:"w-100 h-100"},[e("div",{staticClass:"border-bottom mt-2"},[e("div",{staticClass:"media px-3"},[e("img",{staticClass:"mr-2",attrs:{src:t.media[0].preview_url,width:"42px",height:"42px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small d-none"},[t._v("Caption")]),t._v(" "),e("vue-tribute",{attrs:{options:t.tributeSettings}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control border-0 rounded-0 no-focus",attrs:{rows:"3",placeholder:"Write a caption..."},domProps:{value:t.composeText},on:{keyup:function(e){t.composeTextLength=t.composeText.length},input:function(e){e.target.composing||(t.composeText=e.target.value)}}})]),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(t.composeTextLength)+"/"+t._s(t.config.uploader.max_caption_length))])],1)])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer d-flex justify-content-between",on:{click:function(e){return t.showMediaDescriptionsCard()}}},[e("span",[t._v("Alt Text")]),t._v(" "),e("span",[t.media&&t.media.filter(function(t){return t.alt}).length==t.media.length?e("i",{staticClass:"fas fa-check-circle fa-lg text-success"}):e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])]),t._v(" "),e("div",{staticClass:"border-bottom px-4 mb-0 py-2"},[e("div",{staticClass:"d-flex justify-content-between"},[t._m(11),t._v(" "),e("div",[e("div",{staticClass:"custom-control custom-switch",staticStyle:{"z-index":"9999"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.nsfw,expression:"nsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"asnsfw"},domProps:{checked:Array.isArray(t.nsfw)?t._i(t.nsfw,null)>-1:t.nsfw},on:{change:function(e){var a=t.nsfw,s=e.target,i=!!s.checked;if(Array.isArray(a)){var o=t._i(a,null);s.checked?o<0&&(t.nsfw=a.concat([null])):o>-1&&(t.nsfw=a.slice(0,o).concat(a.slice(o+1)))}else t.nsfw=i}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"asnsfw"}})])])]),t._v(" "),t.nsfw?e("div",[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.spoilerText,expression:"spoilerText"}],staticClass:"form-control mt-3",attrs:{placeholder:"Add an optional content warning or spoiler text",maxlength:"140"},domProps:{value:t.spoilerText},on:{input:function(e){e.target.composing||(t.spoilerText=e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(t.spoilerTextLength)+"/140")])]):t._e()]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showTagCard()}}},[t._v("Tag people")])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showCollectionCard()}}},[t._m(12),t._v(" "),e("span",{staticClass:"float-right"},[t.collectionsSelected.length?e("span",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px 5px","text-transform":"uppercase"},attrs:{href:"#",disabled:""}},[t._v("\n "+t._s(t.collectionsSelected.length)+"\n ")]):t._e(),t._v(" "),t._m(13)])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showLicenseCard()}}},[e("span",[t._v("Add license")]),t._v(" "),e("span",{staticClass:"float-right"},[t.licenseTitle?e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#",disabled:""},on:{click:function(e){return e.preventDefault(),t.showLicenseCard()}}},[t._v(t._s(t.licenseTitle))]):t._e(),t._v(" "),e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showLicenseCard()}}},[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[t.place?e("p",{staticClass:"px-4 mb-0 py-2"},[e("span",{staticClass:"text-lighter"},[t._v("Location:")]),t._v(" "+t._s(t.place.name)+", "+t._s(t.place.country)+"\n "),e("span",{staticClass:"float-right"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-2",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showLocationCard()}}},[t._v("Edit")]),t._v(" "),e("a",{staticClass:"btn btn-outline-secondary btn-sm small",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.place=!1}}},[t._v("Remove")])])]):e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showLocationCard()}}},[t._v("Add location")])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2"},[e("span",[t._v("Audience")]),t._v(" "),e("span",{staticClass:"float-right"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#",disabled:""},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[t._v(t._s(t.visibilityTag))]),t._v(" "),e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])])]),t._v(" "),e("div",{staticStyle:{"min-height":"200px"}},[e("p",{staticClass:"px-4 mb-0 py-2 small font-weight-bold text-muted cursor-pointer",on:{click:function(e){return t.showAdvancedSettingsCard()}}},[t._v("Advanced settings")])])]):"tagPeople"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("autocomplete",{directives:[{name:"show",rawName:"v-show",value:t.taggedUsernames.length<10,expression:"taggedUsernames.length < 10"}],ref:"autocomplete",attrs:{search:t.tagSearch,placeholder:"@pixelfed","aria-label":"Search usernames","get-result-value":t.getTagResultValue},on:{submit:t.onTagSubmitLocation}}),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:t.taggedUsernames.length<10,expression:"taggedUsernames.length < 10"}],staticClass:"font-weight-bold text-muted small"},[t._v("You can tag "+t._s(10-t.taggedUsernames.length)+" more "+t._s(9==t.taggedUsernames.length?"person":"people")+"!")]),t._v(" "),e("p",{staticClass:"font-weight-bold text-center mt-3"},[t._v("Tagged People")]),t._v(" "),e("div",{staticClass:"list-group"},[t._l(t.taggedUsernames,function(a,s){return e("div",{staticClass:"list-group-item d-flex justify-content-between"},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-2 rounded-circle border",attrs:{src:a.avatar,width:"24px",height:"24px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(a.name))])])]),t._v(" "),e("div",{staticClass:"custom-control custom-switch"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.privacy,expression:"tag.privacy"}],staticClass:"custom-control-input disabled",attrs:{type:"checkbox",id:"cci-tagged-privacy-switch"+s,disabled:""},domProps:{checked:Array.isArray(a.privacy)?t._i(a.privacy,null)>-1:a.privacy},on:{change:function(e){var s=a.privacy,i=e.target,o=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&t.$set(a,"privacy",s.concat([null])):n>-1&&t.$set(a,"privacy",s.slice(0,n).concat(s.slice(n+1)))}else t.$set(a,"privacy",o)}}}),t._v(" "),e("label",{staticClass:"custom-control-label font-weight-bold text-lighter",attrs:{for:"cci-tagged-privacy-switch"+s}},[t._v(t._s(a.privacy?"Public":"Private"))]),t._v(" "),e("a",{staticClass:"ml-3",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.untagUsername(s)}}},[e("i",{staticClass:"fas fa-times text-muted"})])])])}),t._v(" "),0==t.taggedUsernames.length?e("div",{staticClass:"list-group-item p-3"},[e("p",{staticClass:"text-center mb-0 font-weight-bold text-lighter"},[t._v("Search usernames to tag.")])]):t._e()],2),t._v(" "),e("p",{staticClass:"font-weight-bold text-center small text-muted pt-3 mb-0"},[t._v("When you tag someone, they are sent a notification."),e("br"),t._v("For more information on tagging, "),e("a",{staticClass:"text-primary",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showTagHelpCard()}}},[t._v("click here")]),t._v(".")])],1):"tagPeopleHelp"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("p",{staticClass:"mb-0 text-center py-3 px-2 lead"},[t._v("Tagging someone is like mentioning them, with the option to make it private between you.")]),t._v(" "),e("p",{staticClass:"mb-3 py-3 px-2 font-weight-lighter"},[t._v("\n You can choose to tag someone in public or private mode. Public mode will allow others to see who you tagged in the post and private mode tagged users will not be shown to others.\n ")])]):"addLocation"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("p",{staticClass:"mb-0"},[t._v("Add Location")]),t._v(" "),e("autocomplete",{attrs:{search:t.locationSearch,placeholder:"Search locations ...","aria-label":"Search locations ...","get-result-value":t.getResultValue},on:{submit:t.onSubmitLocation}})],1):"advancedSettings"==t.page?e("div",{staticClass:"w-100 h-100"},[e("div",{staticClass:"list-group list-group-flush"},[e("div",{staticClass:"list-group-item d-flex justify-content-between"},[t._m(14),t._v(" "),e("div",[e("div",{staticClass:"custom-control custom-switch",staticStyle:{"z-index":"9999"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.commentsDisabled,expression:"commentsDisabled"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"asdisablecomments"},domProps:{checked:Array.isArray(t.commentsDisabled)?t._i(t.commentsDisabled,null)>-1:t.commentsDisabled},on:{change:function(e){var a=t.commentsDisabled,s=e.target,i=!!s.checked;if(Array.isArray(a)){var o=t._i(a,null);s.checked?o<0&&(t.commentsDisabled=a.concat([null])):o>-1&&(t.commentsDisabled=a.slice(0,o).concat(a.slice(o+1)))}else t.commentsDisabled=i}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"asdisablecomments"}})])])]),t._v(" "),e("a",{staticClass:"list-group-item",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showMediaDescriptionsCard()}}},[t._m(15)])])]):"visibility"==t.page?e("div",{staticClass:"w-100 h-100"},[e("div",{staticClass:"list-group list-group-flush"},[t.profile.locked?t._e():e("div",{staticClass:"list-group-item lead cursor-pointer",class:{"text-primary":"public"==t.visibility},on:{click:function(e){return t.toggleVisibility("public")}}},[t._v("\n Public\n ")]),t._v(" "),t.profile.locked?t._e():e("div",{staticClass:"list-group-item lead cursor-pointer",class:{"text-primary":"unlisted"==t.visibility},on:{click:function(e){return t.toggleVisibility("unlisted")}}},[t._v("\n Unlisted\n ")]),t._v(" "),e("div",{staticClass:"list-group-item lead cursor-pointer",class:{"text-primary":"private"==t.visibility},on:{click:function(e){return t.toggleVisibility("private")}}},[t._v("\n Followers Only\n ")])])]):"altText"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[t._l(t.media,function(a,s){return e("div",[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3",attrs:{src:a.preview_url,width:"50px",height:"50px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:a.alt,expression:"m.alt"}],staticClass:"form-control",attrs:{placeholder:"Add a media description here...",maxlength:t.maxAltTextLength,rows:"4"},domProps:{value:a.alt},on:{input:function(e){e.target.composing||t.$set(a,"alt",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-right text-muted mb-0"},[t._v(t._s(a.alt?a.alt.length:0)+"/"+t._s(t.maxAltTextLength))])])]),t._v(" "),e("hr")])}),t._v(" "),e("p",{staticClass:"d-flex justify-content-between mb-0"},[e("button",{staticClass:"btn btn-link text-muted font-weight-bold text-decoration-none",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Save")])])],2):"addToCollection"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[t.collectionsLoaded&&t.collections.length?e("div",{staticClass:"list-group mb-3 collections-list-group"},[t._l(t.collections,function(a,s){return e("div",{staticClass:"list-group-item cursor-pointer compose-action border",class:{active:t.collectionsSelected.includes(s)},on:{click:function(e){return t.toggleCollectionItem(s)}}},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3",attrs:{src:a.thumb,alt:"",width:"50px",height:"50px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("h5",{staticClass:"mt-0"},[t._v(t._s(a.title))]),t._v(" "),e("p",{staticClass:"mb-0 text-muted small"},[e("span",[t._v(t._s(a.post_count)+" Posts")]),t._v(" "),e("span",[t._v("ยท")]),t._v(" "),"draft"===a.visibility?e("span",{staticClass:"primary"},[e("i",{staticClass:"far fa-lock fa-sm"}),t._v(" "+t._s(t.$t("profile.draft")))]):e("span",[t._v("Created "+t._s(t.timeago(a.published_at))+" ago")])])])])])}),t._v(" "),t.collectionsCanLoadMore?e("button",{staticClass:"btn btn-light btn-block font-weight-bold mt-3",on:{click:t.loadMoreCollections}},[t._v("\n Load more\n ")]):t._e()],2):t._e(),t._v(" "),e("p",{staticClass:"d-flex justify-content-between mb-0"},[e("button",{staticClass:"btn btn-link text-muted font-weight-bold text-decoration-none",attrs:{type:"button"},on:{click:function(e){return t.clearSelectedCollections()}}},[t._v("Clear")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Save")])])]):"schedulePost"==t.page||"mediaMetadata"==t.page||"addToStory"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("p",{staticClass:"text-center lead text-muted mb-0 py-5"},[t._v("This feature is not available yet.")])]):"editMedia"==t.page?e("div",{staticClass:"w-100 h-100 p-3"},[e("div",{staticClass:"media"},[e("img",{staticClass:"mr-3",attrs:{src:t.media[t.carouselCursor].preview_url,width:"50px",height:"50px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small"},[t._v("Media Description")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.media[t.carouselCursor].alt,expression:"media[carouselCursor].alt"}],staticClass:"form-control",attrs:{placeholder:"Add a media description here...",maxlength:t.config.uploader.max_altext_length},domProps:{value:t.media[t.carouselCursor].alt},on:{input:function(e){e.target.composing||t.$set(t.media[t.carouselCursor],"alt",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-muted mb-0 d-flex justify-content-between"},[e("span",[t._v("Describe your photo for people with visual impairments.")]),t._v(" "),e("span",[t._v(t._s(t.media[t.carouselCursor].alt?t.media[t.carouselCursor].alt.length:0)+"/"+t._s(t.config.uploader.max_altext_length))])])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted small"},[t._v("License")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.licenseId,expression:"licenseId"}],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.licenseId=e.target.multiple?a:a[0]}}},t._l(t.availableLicenses,function(a,s){return e("option",{domProps:{value:a.id,selected:a.id==t.licenseId}},[t._v("\n "+t._s(a.name)+"\n ")])}),0)])])]),t._v(" "),e("hr"),t._v(" "),e("p",{staticClass:"d-flex justify-content-between mb-0"},[e("button",{staticClass:"btn btn-link text-muted font-weight-bold text-decoration-none",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.goBack()}}},[t._v("Save")])])]):"video-2"==t.page?e("div",{staticClass:"w-100 h-100"},[t.video.title.length?e("div",{staticClass:"border-bottom"},[e("div",{staticClass:"media p-3"},[e("img",{staticClass:"mr-2",attrs:{src:t.media[0].preview_url,width:"100px",height:"70px"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-1"},[t._v(t._s(t.video.title?t.video.title.slice(0,70):"Untitled"))]),t._v(" "),e("p",{staticClass:"mb-0 text-muted small"},[t._v(t._s(t.video.description?t.video.description.slice(0,90):"No description"))])])])]):t._e(),t._v(" "),e("div",{staticClass:"border-bottom d-flex justify-content-between px-4 mb-0 py-2"},[t._m(16),t._v(" "),e("div",[e("div",{staticClass:"custom-control custom-switch",staticStyle:{"z-index":"9999"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.nsfw,expression:"nsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"asnsfw"},domProps:{checked:Array.isArray(t.nsfw)?t._i(t.nsfw,null)>-1:t.nsfw},on:{change:function(e){var a=t.nsfw,s=e.target,i=!!s.checked;if(Array.isArray(a)){var o=t._i(a,null);s.checked?o<0&&(t.nsfw=a.concat([null])):o>-1&&(t.nsfw=a.slice(0,o).concat(a.slice(o+1)))}else t.nsfw=i}}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"asnsfw"}})])])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2 cursor-pointer",on:{click:function(e){return t.showLicenseCard()}}},[t._v("Add license")])]),t._v(" "),e("div",{staticClass:"border-bottom"},[e("p",{staticClass:"px-4 mb-0 py-2"},[e("span",[t._v("Audience")]),t._v(" "),e("span",{staticClass:"float-right"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm small mr-3 mt-n1 disabled",staticStyle:{"font-size":"10px",padding:"3px","text-transform":"uppercase"},attrs:{href:"#",disabled:""},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[t._v(t._s(t.visibilityTag))]),t._v(" "),e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showVisibilityCard()}}},[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])])]),t._v(" "),e("div",{staticClass:"p-3"},[e("div",{staticClass:"form-group"},[e("p",{staticClass:"small font-weight-bold text-muted mb-0"},[t._v("Title")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.video.title,expression:"video.title"}],staticClass:"form-control",attrs:{placeholder:"Add a good title"},domProps:{value:t.video.title},on:{input:function(e){e.target.composing||t.$set(t.video,"title",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text mb-0 small text-muted"},[t._v(t._s(t.video.title.length)+"/70")])]),t._v(" "),e("div",{staticClass:"form-group mb-0"},[e("p",{staticClass:"small font-weight-bold text-muted mb-0"},[t._v("Description")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.video.description,expression:"video.description"}],staticClass:"form-control",attrs:{placeholder:"Add an optional description",maxlength:"5000",rows:"5"},domProps:{value:t.video.description},on:{input:function(e){e.target.composing||t.$set(t.video,"description",e.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text mb-0 small text-muted"},[t._v(t._s(t.video.description.length)+"/5000")])])])]):t._e()]),t._v(" "),"cropPhoto"==t.page?e("div",{staticClass:"card-footer bg-white d-flex justify-content-between"},[e("div",[e("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.rotate}},[e("i",{staticClass:"fas fa-redo"})])]),t._v(" "),e("div",[e("div",{staticClass:"d-inline-block button-group"},[e("button",{class:"btn font-weight-bold "+[t.cropper.aspectRatio==16/9?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(16/9)}}},[t._v("16:9")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[t.cropper.aspectRatio==4/3?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(4/3)}}},[t._v("4:3")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[1.5==t.cropper.aspectRatio?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(1.5)}}},[t._v("3:2")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[1==t.cropper.aspectRatio?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(1)}}},[t._v("1:1")]),t._v(" "),e("button",{class:"btn font-weight-bold "+[t.cropper.aspectRatio==2/3?"btn-primary":"btn-light"],on:{click:function(e){return e.preventDefault(),t.changeAspect(2/3)}}},[t._v("2:3")])])])]):t._e()])])])])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between bg-white"},[e("span",{staticClass:"pr-3"},[e("i",{staticClass:"fas fa-cog fa-lg text-muted"})]),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("\n Camera Roll\n ")]),t._v(" "),e("span",{staticClass:"text-primary font-weight-bold"},[t._v("Upload")])])},function(){var t=this._self._c;return t("span",{staticClass:"pr-3"},[t("i",{staticClass:"fas fa-info-circle fa-lg text-primary"})])},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._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._self._c;return t("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%","background-color":"#008DF5"}},[t("i",{staticClass:"fal fa-bolt text-white fa-lg"})])},function(){var t=this._self._c;return t("p",{staticClass:"mb-0"},[t("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[this._v("New Post")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"2px solid #008DF5"}},[e("i",{staticClass:"far fa-edit text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Text Post")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Share a text only post")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body py-2"},[e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"1px solid #008DF5"}},[e("i",{staticClass:"fas fa-history text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Story")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Add to your story")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-body py-2"},[e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"2px solid #008DF5"}},[e("i",{staticClass:"fas fa-poll-h text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Poll")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("Create a poll")])])])])},function(){var t=this,e=t._self._c;return e("a",{staticClass:"card my-md-3 shadow-none border compose-action text-decoration-none text-dark",attrs:{href:"/i/collections/create"}},[e("div",{staticClass:"card-body py-2"},[e("div",{staticClass:"media"},[e("div",{staticClass:"mr-3 align-items-center justify-content-center",staticStyle:{display:"inline-flex",width:"40px",height:"40px","border-radius":"100%",border:"1px solid #008DF5"}},[e("i",{staticClass:"fal fa-images text-primary fa-lg"})]),t._v(" "),e("div",{staticClass:"media-body text-left"},[e("p",{staticClass:"mb-0"},[e("span",{staticClass:"h5 mt-0 font-weight-bold text-primary"},[t._v("New Collection")]),t._v(" "),e("sup",{staticClass:"float-right mt-2"},[e("span",{staticClass:"btn btn-outline-lighter p-1 btn-sm font-weight-bold py-0",staticStyle:{"font-size":"10px","line-height":"0.6"}},[t._v("BETA")])])]),t._v(" "),e("p",{staticClass:"mb-0 text-muted"},[t._v("New collection of posts")])])])])])},function(){var t=this._self._c;return t("p",{staticClass:"py-3"},[t("a",{staticClass:"font-weight-bold",attrs:{href:"/site/help"}},[this._v("Help")])])},function(){var t=this._self._c;return t("div",[t("div",{staticClass:"text-dark"},[this._v("Sensitive/NSFW Media")])])},function(){var t=this,e=t._self._c;return e("span",[t._v("Add to Collection "),e("span",{staticClass:"ml-2 badge badge-primary"},[t._v("NEW")])])},function(){var t=this._self._c;return t("span",{staticClass:"text-decoration-none"},[t("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])},function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"text-dark"},[t._v("Turn off commenting")]),t._v(" "),e("p",{staticClass:"text-muted small mb-0"},[t._v("Disables comments for this post, you can change this later.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("div",{staticClass:"text-dark"},[t._v("Media Descriptions")]),t._v(" "),e("p",{staticClass:"text-muted small mb-0"},[t._v("Describe your photos for people with visual impairments.")])]),t._v(" "),e("div",[e("i",{staticClass:"fas fa-chevron-right fa-lg text-lighter"})])])},function(){var t=this._self._c;return t("div",[t("div",{staticClass:"text-dark"},[this._v("Contains NSFW Media")])])}]},67794(t,e,a){"use strict";a.r(e),a.d(e,{filterEffects:()=>s});var s=[{name:"1984",ops:[{type:"sepia",intensity:.5},{type:"hue_rotate",angle:-30},{type:"adjust_color",brightness:0,contrast:0,saturation:.4}]},{name:"Azen",ops:[{type:"sepia",intensity:.2},{type:"adjust_color",brightness:.15,contrast:0,saturation:.4}]},{name:"Astairo",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.2,contrast:.1,saturation:.3}]},{name:"Grasbee",ops:[{type:"sepia",intensity:.5},{type:"adjust_color",brightness:0,contrast:.2,saturation:.8}]},{name:"Bookrun",ops:[{type:"sepia",intensity:.4},{type:"adjust_color",brightness:.1,contrast:.25,saturation:-.1},{type:"hue_rotate",angle:-2}]},{name:"Borough",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.25,contrast:.25,saturation:0},{type:"hue_rotate",angle:5}]},{name:"Farms",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.25,contrast:.25,saturation:.35},{type:"hue_rotate",angle:-5}]},{name:"Hairsadone",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.25,contrast:.25,saturation:0},{type:"hue_rotate",angle:5}]},{name:"Cleana",ops:[{type:"sepia",intensity:.5},{type:"adjust_color",brightness:.25,contrast:.15,saturation:-.1},{type:"hue_rotate",angle:-2}]},{name:"Catpatch",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:0,contrast:.5,saturation:.1}]},{name:"Earlyworm",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.25,contrast:.15,saturation:-.1},{type:"hue_rotate",angle:-5}]},{name:"Plaid",ops:[{type:"adjust_color",brightness:.1,contrast:.1,saturation:0}]},{name:"Kyo",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.2,contrast:.15,saturation:.35},{type:"hue_rotate",angle:-5}]},{name:"Yefe",ops:[{type:"sepia",intensity:.4},{type:"adjust_color",brightness:.2,contrast:.5,saturation:.4},{type:"hue_rotate",angle:-10}]},{name:"Godess",ops:[{type:"sepia",intensity:.5},{type:"adjust_color",brightness:.05,contrast:.05,saturation:.35}]},{name:"Yards",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.2,contrast:.2,saturation:.05},{type:"hue_rotate",angle:-15}]},{name:"Quill",ops:[{type:"adjust_color",brightness:.25,contrast:-.15,saturation:-1}]},{name:"Juno",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.15,contrast:.15,saturation:.8}]},{name:"Rankine",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.1,contrast:.5,saturation:0},{type:"hue_rotate",angle:-10}]},{name:"Mark",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.3,contrast:.2,saturation:.25}]},{name:"Chill",ops:[{type:"adjust_color",brightness:0,contrast:.5,saturation:.1}]},{name:"Van",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.05,contrast:.05,saturation:1}]},{name:"Apache",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.05,contrast:.05,saturation:.75}]},{name:"May",ops:[{type:"adjust_color",brightness:.15,contrast:.1,saturation:.1}]},{name:"Ceres",ops:[{type:"adjust_color",brightness:.4,contrast:-.05,saturation:-1},{type:"sepia",intensity:.35}]},{name:"Knoxville",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:-.1,contrast:.5,saturation:0},{type:"hue_rotate",angle:-15}]},{name:"Felicity",ops:[{type:"adjust_color",brightness:.25,contrast:.1,saturation:.1}]},{name:"Sandblast",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.2,contrast:0,saturation:0}]},{name:"Daisy",ops:[{type:"sepia",intensity:.75},{type:"adjust_color",brightness:.25,contrast:-.25,saturation:.4}]},{name:"Elevate",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.2,contrast:.25,saturation:-.1}]},{name:"Nevada",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:-.1,contrast:.5,saturation:0},{type:"hue_rotate",angle:-15}]},{name:"Futura",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.25,contrast:.25,saturation:.2}]},{name:"Sleepy",ops:[{type:"sepia",intensity:.15},{type:"adjust_color",brightness:.25,contrast:.25,saturation:.2}]},{name:"Steward",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.25,contrast:.1,saturation:.25}]},{name:"Savoy",ops:[{type:"sepia",intensity:.4},{type:"adjust_color",brightness:.2,contrast:-.1,saturation:.4},{type:"hue_rotate",angle:-10}]},{name:"Blaze",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:-.05,contrast:.5,saturation:0},{type:"hue_rotate",angle:-15}]},{name:"Apricot",ops:[{type:"sepia",intensity:.25},{type:"adjust_color",brightness:.1,contrast:.1,saturation:0}]},{name:"Gloming",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.15,contrast:.2,saturation:.3}]},{name:"Walter",ops:[{type:"sepia",intensity:.35},{type:"adjust_color",brightness:.25,contrast:-.2,saturation:.4}]},{name:"Poplar",ops:[{type:"adjust_color",brightness:.2,contrast:-.15,saturation:-.95},{type:"sepia",intensity:.5}]},{name:"Xenon",ops:[{type:"sepia",intensity:.45},{type:"adjust_color",brightness:.75,contrast:.25,saturation:.3},{type:"hue_rotate",angle:-5}]}]},43532(t,e,a){Vue.component("compose-modal",a(19324).default)},12155(t,e,a){"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(76798),i=a.n(s)()(function(t){return t[1]});i.push([t.id,".compose-modal-component .media-drawer-filters{flex-wrap:unset;overflow-x:auto}.compose-modal-component .media-drawer-filters .nav-link{min-width:100px;padding-bottom:1rem;padding-top:1rem}.compose-modal-component .media-drawer-filters .active{color:#fff;font-weight:700}@media (hover:none) and (pointer:coarse){.compose-modal-component .media-drawer-filters::-webkit-scrollbar{display:none}}.compose-modal-component .no-focus{border-color:none;box-shadow:none;outline:0}.compose-modal-component a.list-group-item{text-decoration:none}.compose-modal-component a.list-group-item:hover{background-color:#f8f9fa;text-decoration:none}.compose-modal-component .compose-action:hover{background-color:#f8f9fa;cursor:pointer}.compose-modal-component .collections-list-group{max-height:500px;overflow-y:auto}.compose-modal-component .collections-list-group .list-group-item.active{background-color:#dbeafe!important;border-color:#60a5fa!important;color:#212529}.compose-modal-component .media-editor{--height-menu-row:5rem;--gap-preview:0rem;--height-menu-row-scroll:10rem;--color-bg-button:transparent;--color-bg-preview:transparent;--color-bg-button-hover:var(--light-gray);--color-bg-acc:var(--card-bg);--color-fnt-default:var(--body-color);--color-fnt-acc:var(--text-lighter);--color-scrollbar-thumb:var(--light-gray);--color-scrollbar-both:var(--light-gray) transparent;--color-slider-thumb:var(--text-lighter);--color-slider-progress:var(--light-gray);--color-slider-track:var(--light);--color-crop-outline:var(--light-gray);--color-crop-dashed:#ffffffde;--color-crop-overlay:#00000082;background-color:transparent;border:none!important;box-shadow:none!important;font-size:12px}",""]);const o=i},79890(t,e,a){"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),o=a(12155),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},19324(t,e,a){"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(79226),i=a(50427),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);a.d(e,o);a(79051);const n=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},50427(t,e,a){"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(28320),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const o=s.default},79226(t,e,a){"use strict";a.r(e);var s=a(47907),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},79051(t,e,a){"use strict";a.r(e);var s=a(79890),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)}},t=>{t.O(0,[3660],()=>{return e=43532,t(t.s=e);var e});t.O()}]);
\ No newline at end of file
diff --git a/public/js/developers.js b/public/js/developers.js
index 49d50e1d2..dc30227bd 100644
--- a/public/js/developers.js
+++ b/public/js/developers.js
@@ -1 +1 @@
-(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[755],{60621(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={data:function(){return{tokens:[]}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getTokens()},getTokens:function(){var t=this;axios.get("/oauth/tokens").then(function(e){t.tokens=e.data})},revoke:function(t){var e=this;axios.delete("/oauth/tokens/"+t.id).then(function(t){e.getTokens()})}}}},76860(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(74692);function n(t){return n="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},n(t)}const o={data:function(){return{clients:[],createForm:{errors:[],name:"",redirect:""},editForm:{errors:[],name:"",redirect:""}}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getClients(),a("#modal-create-client").on("shown.bs.modal",function(){a("#create-client-name").focus()}),a("#modal-edit-client").on("shown.bs.modal",function(){a("#edit-client-name").focus()})},getClients:function(){var t=this;axios.get("/oauth/clients").then(function(e){t.clients=e.data})},showCreateClientForm:function(){a("#modal-create-client").modal("show")},store:function(){this.persistClient("post","/oauth/clients",this.createForm,"#modal-create-client")},edit:function(t){this.editForm.id=t.id,this.editForm.name=t.name,this.editForm.redirect=t.redirect,a("#modal-edit-client").modal("show")},update:function(){this.persistClient("put","/oauth/clients/"+this.editForm.id,this.editForm,"#modal-edit-client")},persistClient:function(t,e,s,o){var r=this;s.errors=[],axios[t](e,s).then(function(t){r.getClients(),s.name="",s.redirect="",s.errors=[],a(o).modal("hide")}).catch(function(t){"object"===n(t.response.data)?s.errors=_.flatten(_.toArray(t.response.data.errors)):s.errors=["Something went wrong. Please try again."]})},destroy:function(t){var e=this;axios.delete("/oauth/clients/"+t.id).then(function(t){e.getClients()})}}}},88838(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(74692);function n(t){return n="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},n(t)}const o={data:function(){return{accessToken:null,tokens:[],scopes:[],form:{name:"",scopes:[],errors:[]}}},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getTokens(),this.getScopes(),a("#modal-create-token").on("shown.bs.modal",function(){a("#create-token-name").focus()})},getScopeBadge:function(t){switch(t){case"*":case"write":case"follow":case"admin:read":case"admin:read:domain_blocks":case"admin:write":case"admin:write:domain_blocks":return"badge-danger";case"read":return"badge-secondary";case"push":return"badge-info"}},getTokens:function(){var t=this;axios.get("/oauth/personal-access-tokens").then(function(e){t.tokens=e.data})},getScopes:function(){var t=this;axios.get("/oauth/scopes").then(function(e){t.scopes=e.data})},showCreateTokenForm:function(){a("#modal-create-token").modal("show")},store:function(){var t=this;this.accessToken=null,this.form.errors=[],axios.post("/oauth/personal-access-tokens",this.form).then(function(e){t.form.name="",t.form.scopes=[],t.form.errors=[],t.tokens.push(e.data.token),t.showAccessToken(e.data.accessToken)}).catch(function(e){"object"===n(e.response.data)?t.form.errors=_.flatten(_.toArray(e.response.data.errors)):t.form.errors=["Something went wrong. Please try again."]})},toggleScope:function(t){this.scopeIsAssigned(t)?this.form.scopes=_.reject(this.form.scopes,function(e){return e===t}):this.form.scopes.push(t)},scopeIsAssigned:function(t){return _.indexOf(this.form.scopes,t)>=0},showAccessToken:function(t){a("#modal-create-token").modal("hide"),this.accessToken=t,a("#modal-access-token").modal("show")},revoke:function(t){var e=this;swal({title:"Confirm token deletion",text:"Are you sure you want to delete this token? Any applications using it will stop working immediately.",icon:"warning",dangerMode:!0,buttons:!0}).then(function(s){s&&axios.delete("/oauth/personal-access-tokens/"+t.id).then(function(){e.getTokens()})})},renew:function(t){var e=this;swal({title:"Confirm token renewal",text:"Are you sure you want to renew this token? Any applications using it will stop working immediately, a new token will be generated and only shown once.",icon:"warning",dangerMode:!0,buttons:!0}).then(function(s){s&&(e.accessToken=null,axios.post("/oauth/personal-access-tokens/"+t.id+"/renew").then(function(t){e.tokens=e.tokens.filter(function(e){return e.id!==t.data.renewedTokenId}),e.tokens.push(t.data.token),e.showAccessToken(t.data.accessToken)}).catch(function(t){alert("Unable to renew this token. Please try again.")}))})},formatDate:function(t){if(!t)return"";var e=new Date(t);return isNaN(e.getTime())?t:e.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric"})},isExpired:function(t){return!!t.expires_at&&new Date(t.expires_at).getTime()a,staticRenderFns:()=>n});var a=function(){var t=this,e=t._self._c;return e("div",[t.tokens.length>0?e("div",[e("div",{staticClass:"card card-default mb-4"},[e("div",{staticClass:"card-header font-weight-bold bg-white"},[t._v("Authorized Applications")]),t._v(" "),e("div",{staticClass:"card-body"},[e("table",{staticClass:"table table-borderless mb-0"},[t._m(0),t._v(" "),e("tbody",t._l(t.tokens,function(s){return e("tr",[e("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(s.client.name)+"\n ")]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[s.scopes.length>0?e("span",[t._v("\n "+t._s(s.scopes.join(", "))+"\n ")]):t._e()]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[e("a",{staticClass:"action-link text-danger",on:{click:function(e){return t.revoke(s)}}},[t._v("\n Revoke\n ")])])])}),0)])])])]):t._e()])},n=[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Scopes")]),t._v(" "),e("th")])])}]},47665(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>n});var a=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"card card-default mb-4"},[e("div",{staticClass:"card-header font-weight-bold bg-white"},[e("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[e("span",[t._v("\n OAuth Clients\n ")]),t._v(" "),e("a",{staticClass:"action-link",attrs:{tabindex:"-1"},on:{click:t.showCreateClientForm}},[t._v("\n Create New Client\n ")])])]),t._v(" "),e("div",{staticClass:"card-body"},[0===t.clients.length?e("p",{staticClass:"mb-0 font-weight-bold text-center lead p-5"},[t._v("\n You have not created any OAuth clients.\n ")]):t._e(),t._v(" "),t.clients.length>0?e("table",{staticClass:"table table-borderless mb-0"},[t._m(0),t._v(" "),e("tbody",t._l(t.clients,function(s){return e("tr",[e("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(s.id)+"\n ")]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(s.name)+"\n ")]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[e("code",[t._v(t._s(s.secret))])]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[e("a",{staticClass:"btn btn-outline-secondary btn-sm py-1",attrs:{tabindex:"-1"},on:{click:function(e){return t.edit(s)}}},[t._v("\n Edit\n ")])]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[e("a",{staticClass:"btn btn-outline-danger btn-sm py-1",attrs:{href:""},on:{click:function(e){return t.destroy(s)}}},[t._v("\n Delete\n ")])])])}),0)]):t._e()])]),t._v(" "),e("div",{staticClass:"modal fade",attrs:{id:"modal-create-client",tabindex:"-1",role:"dialog"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),e("div",{staticClass:"modal-body"},[t.createForm.errors.length>0?e("div",{staticClass:"alert alert-danger"},[t._m(2),t._v(" "),e("br"),t._v(" "),e("ul",t._l(t.createForm.errors,function(s){return e("li",[t._v("\n "+t._s(s)+"\n ")])}),0)]):t._e(),t._v(" "),e("form",{attrs:{role:"form"}},[e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Name")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.createForm.name,expression:"createForm.name"}],staticClass:"form-control",attrs:{id:"create-client-name",type:"text",autocomplete:"off"},domProps:{value:t.createForm.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.store.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.createForm,"name",e.target.value)}}}),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n Something your users will recognize and trust.\n ")])])]),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Redirect URL")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.createForm.redirect,expression:"createForm.redirect"}],staticClass:"form-control",attrs:{type:"text",name:"redirect"},domProps:{value:t.createForm.redirect},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.store.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.createForm,"redirect",e.target.value)}}}),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n Your application's authorization callback URL.\n ")])])]),t._v(" "),t._m(5)])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-secondary font-weight-bold",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:t.store}},[t._v("\n Create\n ")])])])])]),t._v(" "),e("div",{staticClass:"modal fade",attrs:{id:"modal-edit-client",tabindex:"-1",role:"dialog"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content"},[t._m(6),t._v(" "),e("div",{staticClass:"modal-body"},[t.editForm.errors.length>0?e("div",{staticClass:"alert alert-danger"},[t._m(7),t._v(" "),e("br"),t._v(" "),e("ul",t._l(t.editForm.errors,function(s){return e("li",[t._v("\n "+t._s(s)+"\n ")])}),0)]):t._e(),t._v(" "),e("form",{attrs:{role:"form"}},[e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Name")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.editForm.name,expression:"editForm.name"}],staticClass:"form-control",attrs:{id:"edit-client-name",type:"text"},domProps:{value:t.editForm.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.editForm,"name",e.target.value)}}}),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n Something your users will recognize and trust.\n ")])])]),t._v(" "),e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Redirect URL")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.editForm.redirect,expression:"editForm.redirect"}],staticClass:"form-control",attrs:{type:"text",name:"redirect"},domProps:{value:t.editForm.redirect},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.editForm,"redirect",e.target.value)}}}),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n Your application's authorization callback URL.\n ")])])])])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.update}},[t._v("\n Save Changes\n ")])])])])])])},n=[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Client ID")]),t._v(" "),e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Secret")]),t._v(" "),e("th"),t._v(" "),e("th")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title"},[t._v("\n Create Client\n ")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("ร")])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0"},[e("strong",[t._v("Whoops!")]),t._v(" Something went wrong!")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Description")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("textarea",{staticClass:"form-control",attrs:{rows:"3"}}),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n A brief description of your app\n ")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Website")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("input",{staticClass:"form-control",attrs:{type:"text",autocomplete:"off"}}),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n Your website url\n ")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Scopes")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("div",{staticClass:"custom-control custom-switch"},[e("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",id:"customSwitch1"}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"customSwitch1"}},[t._v("Read")])]),t._v(" "),e("div",{staticClass:"custom-control custom-switch"},[e("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",id:"customSwitch2"}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"customSwitch2"}},[t._v("Write")])]),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n Your application's scopes.\n ")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title"},[t._v("\n Edit Client\n ")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("ร")])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0"},[e("strong",[t._v("Whoops!")]),t._v(" Something went wrong!")])}]},29834(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>n});var a=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",{staticClass:"card card-default mb-4"},[e("div",{staticClass:"card-header font-weight-bold bg-white"},[e("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[e("span",[t._v("\n Personal Access Tokens\n ")]),t._v(" "),e("a",{staticClass:"action-link",attrs:{tabindex:"-1"},on:{click:t.showCreateTokenForm}},[t._v("\n Create New Token\n ")])])]),t._v(" "),e("div",{staticClass:"card-body"},[0===t.tokens.length?e("p",{staticClass:"mb-0"},[t._v("\n You have not created any personal access tokens.\n ")]):t._e(),t._v(" "),t.tokens.length>0?e("table",{staticClass:"table table-borderless mb-0"},[t._m(0),t._v(" "),e("tbody",t._l(t.tokens,function(s){return e("tr",{key:s.id},[e("td",{staticStyle:{"vertical-align":"middle"}},[e("div",{staticClass:"font-weight-bold"},[t._v(t._s(s.name))]),t._v(" "),s.created_at?e("small",{staticClass:"text-muted",staticStyle:{"font-size":"12px"}},[t._v("\n Created "+t._s(t.formatDate(s.created_at))+"\n ")]):t._e()]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[s.scopes&&s.scopes.length>0?t._l(s.scopes,function(s){return e("span",{key:s,staticClass:"badge mr-1 mb-1",class:t.getScopeBadge(s)},[t._v("\n "+t._s("*"===s?"all scopes":s)+"\n ")])}):e("span",{staticClass:"text-muted"},[t._v("โ")])],2),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[s.expires_at?e("span",{class:{"text-danger":t.isExpired(s)},staticStyle:{"font-size":"12px"},attrs:{title:t.formatDate(s.expires_at)}},[t._v("\n "+t._s(t.formatDate(s.expires_at))+"\n "),t.isExpired(s)?e("span",{staticClass:"font-weight-bold"},[t._v("(expired)")]):t._e()]):e("span",{staticClass:"text-muted text-xs"},[t._v("\n Never\n ")])]),t._v(" "),e("td",{staticClass:"d-flex"},[e("a",{staticClass:"btn btn-warning btn-sm",staticStyle:{"font-weight":"bold"},on:{click:function(e){return t.renew(s)}}},[t._v("\n Renew\n ")]),t._v(" "),e("span",{staticClass:"mx-1"}),t._v(" "),e("a",{staticClass:"btn btn-danger btn-sm",staticStyle:{"font-weight":"bold"},on:{click:function(e){return t.revoke(s)}}},[t._v("\n Delete\n ")])])])}),0)]):t._e()])])]),t._v(" "),e("div",{staticClass:"modal fade",attrs:{id:"modal-create-token",tabindex:"-1",role:"dialog"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),e("div",{staticClass:"modal-body"},[t.form.errors.length>0?e("div",{staticClass:"alert alert-danger"},[t._m(2),t._v(" "),e("br"),t._v(" "),e("ul",t._l(t.form.errors,function(s,a){return e("li",{key:a},[t._v("\n "+t._s(s)+"\n ")])}),0)]):t._e(),t._v(" "),e("form",{attrs:{role:"form"},on:{submit:function(e){return e.preventDefault(),t.store.apply(null,arguments)}}},[e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-4 col-form-label"},[t._v("Name")]),t._v(" "),e("div",{staticClass:"col-md-6"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",attrs:{id:"create-token-name",type:"text",name:"name",autocomplete:"off"},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}})])]),t._v(" "),t.scopes.length>0?e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-4 col-form-label"},[t._v("Scopes")]),t._v(" "),e("div",{staticClass:"col-md-6"},t._l(t.scopes,function(s){return e("div",{key:s.id},[e("div",{staticClass:"checkbox"},[e("label",[e("input",{attrs:{type:"checkbox"},domProps:{checked:t.scopeIsAssigned(s.id)},on:{click:function(e){return t.toggleScope(s.id)}}}),t._v("\n\n "+t._s(s.id)+"\n ")]),t._v(" "),s.description?e("small",{staticClass:"text-muted d-block ml-4"},[t._v("\n "+t._s(s.description)+"\n ")]):t._e()])])}),0)]):t._e()])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-secondary font-weight-bold",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:t.store}},[t._v("\n Create\n ")])])])])]),t._v(" "),e("div",{staticClass:"modal fade",attrs:{id:"modal-access-token",tabindex:"-1",role:"dialog"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content"},[t._m(3),t._v(" "),e("div",{staticClass:"modal-body"},[e("p",[t._v("\n Here is your new personal access token. This is the only time it will be shown so don't lose it!\n You may now use this token to make API requests.\n ")]),t._v(" "),e("textarea",{staticClass:"form-control",attrs:{rows:"10",readonly:""}},[t._v(t._s(t.accessToken))])]),t._v(" "),t._m(4)])])])])},n=[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Scopes")]),t._v(" "),e("th",[t._v("Expires")]),t._v(" "),e("th")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title"},[t._v("\n Create Token\n ")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("ร")])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0"},[e("strong",[t._v("Whoops!")]),t._v(" Something went wrong!")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title"},[t._v("\n Personal Access Token\n ")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("ร")])])},function(){var t=this._self._c;return t("div",{staticClass:"modal-footer"},[t("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[this._v("Close")])])}]},15905(t,e,s){Vue.component("passport-clients",s(19308).default),Vue.component("passport-authorized-clients",s(22593).default),Vue.component("passport-personal-access-tokens",s(87036).default)},13025(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(76798),n=s.n(a)()(function(t){return t[1]});n.push([t.id,".action-link[data-v-1b737fda]{cursor:pointer}",""]);const o=n},49921(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(76798),n=s.n(a)()(function(t){return t[1]});n.push([t.id,".action-link[data-v-d71fe564]{cursor:pointer}",""]);const o=n},44180(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(76798),n=s.n(a)()(function(t){return t[1]});n.push([t.id,".action-link[data-v-58e8e72c]{cursor:pointer}",""]);const o=n},19318(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(85072),n=s.n(a),o=s(13025),r={insert:"head",singleton:!1};n()(o.default,r);const i=o.default.locals||{}},37622(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(85072),n=s.n(a),o=s(49921),r={insert:"head",singleton:!1};n()(o.default,r);const i=o.default.locals||{}},13181(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(85072),n=s.n(a),o=s(44180),r={insert:"head",singleton:!1};n()(o.default,r);const i=o.default.locals||{}},22593(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93638),n=s(83382),o={};for(const t in n)"default"!==t&&(o[t]=()=>n[t]);s.d(e,o);s(703);const r=(0,s(14486).default)(n.default,a.render,a.staticRenderFns,!1,null,"1b737fda",null).exports},19308(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(28004),n=s(71991),o={};for(const t in n)"default"!==t&&(o[t]=()=>n[t]);s.d(e,o);s(54019);const r=(0,s(14486).default)(n.default,a.render,a.staticRenderFns,!1,null,"d71fe564",null).exports},87036(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(98433),n=s(38335),o={};for(const t in n)"default"!==t&&(o[t]=()=>n[t]);s.d(e,o);s(88798);const r=(0,s(14486).default)(n.default,a.render,a.staticRenderFns,!1,null,"58e8e72c",null).exports},83382(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(60621),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);const o=a.default},71991(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(76860),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);const o=a.default},38335(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(88838),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);const o=a.default},93638(t,e,s){"use strict";s.r(e);var a=s(41671),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},28004(t,e,s){"use strict";s.r(e);var a=s(47665),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},98433(t,e,s){"use strict";s.r(e);var a=s(29834),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},703(t,e,s){"use strict";s.r(e);var a=s(19318),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},54019(t,e,s){"use strict";s.r(e);var a=s(37622),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},88798(t,e,s){"use strict";s.r(e);var a=s(13181),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)}},t=>{t.O(0,[3660],()=>{return e=15905,t(t.s=e);var e});t.O()}]);
\ No newline at end of file
+(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[755],{60621(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={data:function(){return{tokens:[]}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getTokens()},getTokens:function(){var t=this;axios.get("/oauth/tokens").then(function(e){t.tokens=e.data})},revoke:function(t){var e=this;axios.delete("/oauth/tokens/"+t.id).then(function(t){e.getTokens()})}}}},76860(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(74692);function n(t){return n="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},n(t)}const o={data:function(){return{clients:[],newClientId:"",newClientSecret:"",createForm:{errors:[],name:"",redirect:""},editForm:{errors:[],name:"",redirect:""}}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getClients(),a("#modal-create-client").on("shown.bs.modal",function(){a("#create-client-name").focus()}),a("#modal-edit-client").on("shown.bs.modal",function(){a("#edit-client-name").focus()})},getClients:function(){var t=this;axios.get("/oauth/clients").then(function(e){t.clients=e.data})},showCreateClientForm:function(){a("#modal-create-client").modal("show")},store:function(){this.persistClient("post","/oauth/clients",this.createForm,"#modal-create-client")},edit:function(t){this.editForm.id=t.id,this.editForm.name=t.name,this.editForm.redirect=t.redirect,a("#modal-edit-client").modal("show")},update:function(){this.persistClient("put","/oauth/clients/"+this.editForm.id,this.editForm,"#modal-edit-client")},persistClient:function(t,e,s,o){var i=this;s.errors=[],axios[t](e,s).then(function(e){"post"===t&&e.data.plain_secret&&(i.newClientId=e.data.id,i.newClientSecret=e.data.plain_secret),i.getClients(),s.name="",s.redirect="",s.errors=[],a(o).modal("hide"),"post"===t&&i.newClientSecret&&i.$nextTick(function(){a("#modal-client-secret").modal("show")})}).catch(function(t){"object"===n(t.response.data)?s.errors=_.flatten(_.toArray(t.response.data.errors)):s.errors=["Something went wrong. Please try again."]})},copySecret:function(){navigator.clipboard?navigator.clipboard.writeText(this.newClientSecret):(this.$refs.secretInput.select(),document.execCommand("copy"))},destroy:function(t){var e=this;confirm("Are you sure you want to delete this OAuth client? Any applications using it will stop working immediately.")&&axios.delete("/oauth/clients/"+t.id).then(function(t){e.getClients()}).catch(function(t){t.response&&t.response.data&&t.response.data.error?alert(t.response.data.error):alert("Failed to delete client. Please try again.")})}}}},88838(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(74692);function n(t){return n="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},n(t)}const o={data:function(){return{accessToken:null,tokens:[],scopes:[],form:{name:"",scopes:[],errors:[]}}},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getTokens(),this.getScopes(),a("#modal-create-token").on("shown.bs.modal",function(){a("#create-token-name").focus()})},getScopeBadge:function(t){switch(t){case"*":case"write":case"follow":case"admin:read":case"admin:read:domain_blocks":case"admin:write":case"admin:write:domain_blocks":return"badge-danger";case"read":return"badge-secondary";case"push":return"badge-info"}},getTokens:function(){var t=this;axios.get("/oauth/personal-access-tokens").then(function(e){t.tokens=e.data})},getScopes:function(){var t=this;axios.get("/oauth/scopes").then(function(e){t.scopes=e.data})},showCreateTokenForm:function(){a("#modal-create-token").modal("show")},store:function(){var t=this;this.accessToken=null,this.form.errors=[],axios.post("/oauth/personal-access-tokens",this.form).then(function(e){t.form.name="",t.form.scopes=[],t.form.errors=[],t.tokens.push(e.data.token),t.showAccessToken(e.data.accessToken)}).catch(function(e){"object"===n(e.response.data)?t.form.errors=_.flatten(_.toArray(e.response.data.errors)):t.form.errors=["Something went wrong. Please try again."]})},toggleScope:function(t){this.scopeIsAssigned(t)?this.form.scopes=_.reject(this.form.scopes,function(e){return e===t}):this.form.scopes.push(t)},scopeIsAssigned:function(t){return _.indexOf(this.form.scopes,t)>=0},showAccessToken:function(t){a("#modal-create-token").modal("hide"),this.accessToken=t,a("#modal-access-token").modal("show")},revoke:function(t){var e=this;swal({title:"Confirm token deletion",text:"Are you sure you want to delete this token? Any applications using it will stop working immediately.",icon:"warning",dangerMode:!0,buttons:!0}).then(function(s){s&&axios.delete("/oauth/personal-access-tokens/"+t.id).then(function(){e.getTokens()})})},renew:function(t){var e=this;swal({title:"Confirm token renewal",text:"Are you sure you want to renew this token? Any applications using it will stop working immediately, a new token will be generated and only shown once.",icon:"warning",dangerMode:!0,buttons:!0}).then(function(s){s&&(e.accessToken=null,axios.post("/oauth/personal-access-tokens/"+t.id+"/renew").then(function(t){e.tokens=e.tokens.filter(function(e){return e.id!==t.data.renewedTokenId}),e.tokens.push(t.data.token),e.showAccessToken(t.data.accessToken)}).catch(function(t){alert("Unable to renew this token. Please try again.")}))})},formatDate:function(t){if(!t)return"";var e=new Date(t);return isNaN(e.getTime())?t:e.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric"})},isExpired:function(t){return!!t.expires_at&&new Date(t.expires_at).getTime()a,staticRenderFns:()=>n});var a=function(){var t=this,e=t._self._c;return e("div",[t.tokens.length>0?e("div",[e("div",{staticClass:"card card-default mb-4"},[e("div",{staticClass:"card-header font-weight-bold bg-white"},[t._v("Authorized Applications")]),t._v(" "),e("div",{staticClass:"card-body"},[e("table",{staticClass:"table table-borderless mb-0"},[t._m(0),t._v(" "),e("tbody",t._l(t.tokens,function(s){return e("tr",[e("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(s.client.name)+"\n ")]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[s.scopes.length>0?e("span",[t._v("\n "+t._s(s.scopes.join(", "))+"\n ")]):t._e()]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[e("a",{staticClass:"action-link text-danger",on:{click:function(e){return t.revoke(s)}}},[t._v("\n Revoke\n ")])])])}),0)])])])]):t._e()])},n=[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Scopes")]),t._v(" "),e("th")])])}]},77711(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>n});var a=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"card card-default mb-4"},[e("div",{staticClass:"card-header font-weight-bold bg-white"},[e("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[e("span",[t._v("\n OAuth Clients\n ")]),t._v(" "),e("a",{staticClass:"action-link",attrs:{tabindex:"-1"},on:{click:t.showCreateClientForm}},[t._v("\n Create New Client\n ")])])]),t._v(" "),e("div",{staticClass:"card-body"},[0===t.clients.length?e("p",{staticClass:"mb-0 font-weight-bold text-center lead p-5"},[t._v("\n You have not created any OAuth clients.\n ")]):t._e(),t._v(" "),t.clients.length>0?e("table",{staticClass:"table table-borderless mb-0"},[t._m(0),t._v(" "),e("tbody",t._l(t.clients,function(s){return e("tr",[e("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(s.id)+"\n ")]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(s.name)+"\n ")]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[s.plain_secret?e("code",[t._v(t._s(s.plain_secret))]):e("span",{staticClass:"text-muted font-italic"},[t._v("Hidden (only shown at creation)")])]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[e("a",{staticClass:"btn btn-outline-secondary btn-sm py-1",attrs:{tabindex:"-1"},on:{click:function(e){return t.edit(s)}}},[t._v("\n Edit\n ")])]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[e("a",{staticClass:"btn btn-outline-danger btn-sm py-1",attrs:{href:""},on:{click:function(e){return t.destroy(s)}}},[t._v("\n Delete\n ")])])])}),0)]):t._e()])]),t._v(" "),e("div",{staticClass:"modal fade",attrs:{id:"modal-client-secret",tabindex:"-1",role:"dialog"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),e("div",{staticClass:"modal-body"},[t._m(2),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Client ID")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",readonly:""},domProps:{value:t.newClientId}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Client Secret")]),t._v(" "),e("div",{staticClass:"input-group"},[e("input",{ref:"secretInput",staticClass:"form-control",attrs:{type:"text",readonly:""},domProps:{value:t.newClientSecret}}),t._v(" "),e("div",{staticClass:"input-group-append"},[e("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.copySecret}},[t._v("\n Copy\n ")])])])])]),t._v(" "),t._m(3)])])]),t._v(" "),e("div",{staticClass:"modal fade",attrs:{id:"modal-create-client",tabindex:"-1",role:"dialog"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content"},[t._m(4),t._v(" "),e("div",{staticClass:"modal-body"},[t.createForm.errors.length>0?e("div",{staticClass:"alert alert-danger"},[t._m(5),t._v(" "),e("br"),t._v(" "),e("ul",t._l(t.createForm.errors,function(s){return e("li",[t._v("\n "+t._s(s)+"\n ")])}),0)]):t._e(),t._v(" "),e("form",{attrs:{role:"form"}},[e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Name")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.createForm.name,expression:"createForm.name"}],staticClass:"form-control",attrs:{id:"create-client-name",type:"text",autocomplete:"off"},domProps:{value:t.createForm.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.store.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.createForm,"name",e.target.value)}}}),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n Something your users will recognize and trust.\n ")])])]),t._v(" "),t._m(6),t._v(" "),t._m(7),t._v(" "),e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Redirect URL")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.createForm.redirect,expression:"createForm.redirect"}],staticClass:"form-control",attrs:{type:"text",name:"redirect"},domProps:{value:t.createForm.redirect},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.store.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.createForm,"redirect",e.target.value)}}}),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n Your application's authorization callback URL.\n ")])])]),t._v(" "),t._m(8)])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-secondary font-weight-bold",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:t.store}},[t._v("\n Create\n ")])])])])]),t._v(" "),e("div",{staticClass:"modal fade",attrs:{id:"modal-edit-client",tabindex:"-1",role:"dialog"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content"},[t._m(9),t._v(" "),e("div",{staticClass:"modal-body"},[t.editForm.errors.length>0?e("div",{staticClass:"alert alert-danger"},[t._m(10),t._v(" "),e("br"),t._v(" "),e("ul",t._l(t.editForm.errors,function(s){return e("li",[t._v("\n "+t._s(s)+"\n ")])}),0)]):t._e(),t._v(" "),e("form",{attrs:{role:"form"}},[e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Name")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.editForm.name,expression:"editForm.name"}],staticClass:"form-control",attrs:{id:"edit-client-name",type:"text"},domProps:{value:t.editForm.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.editForm,"name",e.target.value)}}}),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n Something your users will recognize and trust.\n ")])])]),t._v(" "),e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Redirect URL")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.editForm.redirect,expression:"editForm.redirect"}],staticClass:"form-control",attrs:{type:"text",name:"redirect"},domProps:{value:t.editForm.redirect},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.editForm,"redirect",e.target.value)}}}),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n Your application's authorization callback URL.\n ")])])])])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.update}},[t._v("\n Save Changes\n ")])])])])])])},n=[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Client ID")]),t._v(" "),e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Secret")]),t._v(" "),e("th"),t._v(" "),e("th")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title"},[t._v("\n Client Created\n ")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("ร")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"alert alert-warning"},[e("strong",[t._v("Important:")]),t._v(" Copy your client secret now. It will not be shown again.\n ")])},function(){var t=this._self._c;return t("div",{staticClass:"modal-footer"},[t("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button","data-dismiss":"modal"}},[this._v("Done")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title"},[t._v("\n Create Client\n ")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("ร")])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0"},[e("strong",[t._v("Whoops!")]),t._v(" Something went wrong!")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Description")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("textarea",{staticClass:"form-control",attrs:{rows:"3"}}),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n A brief description of your app\n ")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Website")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("input",{staticClass:"form-control",attrs:{type:"text",autocomplete:"off"}}),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n Your website url\n ")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-3 col-form-label"},[t._v("Scopes")]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("div",{staticClass:"custom-control custom-switch"},[e("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",id:"customSwitch1"}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"customSwitch1"}},[t._v("Read")])]),t._v(" "),e("div",{staticClass:"custom-control custom-switch"},[e("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",id:"customSwitch2"}}),t._v(" "),e("label",{staticClass:"custom-control-label",attrs:{for:"customSwitch2"}},[t._v("Write")])]),t._v(" "),e("span",{staticClass:"form-text text-muted"},[t._v("\n Your application's scopes.\n ")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title"},[t._v("\n Edit Client\n ")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("ร")])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0"},[e("strong",[t._v("Whoops!")]),t._v(" Something went wrong!")])}]},29834(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>n});var a=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",{staticClass:"card card-default mb-4"},[e("div",{staticClass:"card-header font-weight-bold bg-white"},[e("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[e("span",[t._v("\n Personal Access Tokens\n ")]),t._v(" "),e("a",{staticClass:"action-link",attrs:{tabindex:"-1"},on:{click:t.showCreateTokenForm}},[t._v("\n Create New Token\n ")])])]),t._v(" "),e("div",{staticClass:"card-body"},[0===t.tokens.length?e("p",{staticClass:"mb-0"},[t._v("\n You have not created any personal access tokens.\n ")]):t._e(),t._v(" "),t.tokens.length>0?e("table",{staticClass:"table table-borderless mb-0"},[t._m(0),t._v(" "),e("tbody",t._l(t.tokens,function(s){return e("tr",{key:s.id},[e("td",{staticStyle:{"vertical-align":"middle"}},[e("div",{staticClass:"font-weight-bold"},[t._v(t._s(s.name))]),t._v(" "),s.created_at?e("small",{staticClass:"text-muted",staticStyle:{"font-size":"12px"}},[t._v("\n Created "+t._s(t.formatDate(s.created_at))+"\n ")]):t._e()]),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[s.scopes&&s.scopes.length>0?t._l(s.scopes,function(s){return e("span",{key:s,staticClass:"badge mr-1 mb-1",class:t.getScopeBadge(s)},[t._v("\n "+t._s("*"===s?"all scopes":s)+"\n ")])}):e("span",{staticClass:"text-muted"},[t._v("โ")])],2),t._v(" "),e("td",{staticStyle:{"vertical-align":"middle"}},[s.expires_at?e("span",{class:{"text-danger":t.isExpired(s)},staticStyle:{"font-size":"12px"},attrs:{title:t.formatDate(s.expires_at)}},[t._v("\n "+t._s(t.formatDate(s.expires_at))+"\n "),t.isExpired(s)?e("span",{staticClass:"font-weight-bold"},[t._v("(expired)")]):t._e()]):e("span",{staticClass:"text-muted text-xs"},[t._v("\n Never\n ")])]),t._v(" "),e("td",{staticClass:"d-flex"},[e("a",{staticClass:"btn btn-warning btn-sm",staticStyle:{"font-weight":"bold"},on:{click:function(e){return t.renew(s)}}},[t._v("\n Renew\n ")]),t._v(" "),e("span",{staticClass:"mx-1"}),t._v(" "),e("a",{staticClass:"btn btn-danger btn-sm",staticStyle:{"font-weight":"bold"},on:{click:function(e){return t.revoke(s)}}},[t._v("\n Delete\n ")])])])}),0)]):t._e()])])]),t._v(" "),e("div",{staticClass:"modal fade",attrs:{id:"modal-create-token",tabindex:"-1",role:"dialog"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),e("div",{staticClass:"modal-body"},[t.form.errors.length>0?e("div",{staticClass:"alert alert-danger"},[t._m(2),t._v(" "),e("br"),t._v(" "),e("ul",t._l(t.form.errors,function(s,a){return e("li",{key:a},[t._v("\n "+t._s(s)+"\n ")])}),0)]):t._e(),t._v(" "),e("form",{attrs:{role:"form"},on:{submit:function(e){return e.preventDefault(),t.store.apply(null,arguments)}}},[e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-4 col-form-label"},[t._v("Name")]),t._v(" "),e("div",{staticClass:"col-md-6"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",attrs:{id:"create-token-name",type:"text",name:"name",autocomplete:"off"},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}})])]),t._v(" "),t.scopes.length>0?e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-md-4 col-form-label"},[t._v("Scopes")]),t._v(" "),e("div",{staticClass:"col-md-6"},t._l(t.scopes,function(s){return e("div",{key:s.id},[e("div",{staticClass:"checkbox"},[e("label",[e("input",{attrs:{type:"checkbox"},domProps:{checked:t.scopeIsAssigned(s.id)},on:{click:function(e){return t.toggleScope(s.id)}}}),t._v("\n\n "+t._s(s.id)+"\n ")]),t._v(" "),s.description?e("small",{staticClass:"text-muted d-block ml-4"},[t._v("\n "+t._s(s.description)+"\n ")]):t._e()])])}),0)]):t._e()])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-secondary font-weight-bold",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:t.store}},[t._v("\n Create\n ")])])])])]),t._v(" "),e("div",{staticClass:"modal fade",attrs:{id:"modal-access-token",tabindex:"-1",role:"dialog"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content"},[t._m(3),t._v(" "),e("div",{staticClass:"modal-body"},[e("p",[t._v("\n Here is your new personal access token. This is the only time it will be shown so don't lose it!\n You may now use this token to make API requests.\n ")]),t._v(" "),e("textarea",{staticClass:"form-control",attrs:{rows:"10",readonly:""}},[t._v(t._s(t.accessToken))])]),t._v(" "),t._m(4)])])])])},n=[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Scopes")]),t._v(" "),e("th",[t._v("Expires")]),t._v(" "),e("th")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title"},[t._v("\n Create Token\n ")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("ร")])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0"},[e("strong",[t._v("Whoops!")]),t._v(" Something went wrong!")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title"},[t._v("\n Personal Access Token\n ")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("ร")])])},function(){var t=this._self._c;return t("div",{staticClass:"modal-footer"},[t("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[this._v("Close")])])}]},15905(t,e,s){Vue.component("passport-clients",s(19308).default),Vue.component("passport-authorized-clients",s(22593).default),Vue.component("passport-personal-access-tokens",s(87036).default)},13025(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(76798),n=s.n(a)()(function(t){return t[1]});n.push([t.id,".action-link[data-v-1b737fda]{cursor:pointer}",""]);const o=n},70683(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(76798),n=s.n(a)()(function(t){return t[1]});n.push([t.id,".action-link[data-v-23c8a322]{cursor:pointer}",""]);const o=n},44180(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(76798),n=s.n(a)()(function(t){return t[1]});n.push([t.id,".action-link[data-v-58e8e72c]{cursor:pointer}",""]);const o=n},19318(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(85072),n=s.n(a),o=s(13025),i={insert:"head",singleton:!1};n()(o.default,i);const r=o.default.locals||{}},99268(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(85072),n=s.n(a),o=s(70683),i={insert:"head",singleton:!1};n()(o.default,i);const r=o.default.locals||{}},13181(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(85072),n=s.n(a),o=s(44180),i={insert:"head",singleton:!1};n()(o.default,i);const r=o.default.locals||{}},22593(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(93638),n=s(83382),o={};for(const t in n)"default"!==t&&(o[t]=()=>n[t]);s.d(e,o);s(703);const i=(0,s(14486).default)(n.default,a.render,a.staticRenderFns,!1,null,"1b737fda",null).exports},19308(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(57634),n=s(71991),o={};for(const t in n)"default"!==t&&(o[t]=()=>n[t]);s.d(e,o);s(2969);const i=(0,s(14486).default)(n.default,a.render,a.staticRenderFns,!1,null,"23c8a322",null).exports},87036(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(98433),n=s(38335),o={};for(const t in n)"default"!==t&&(o[t]=()=>n[t]);s.d(e,o);s(88798);const i=(0,s(14486).default)(n.default,a.render,a.staticRenderFns,!1,null,"58e8e72c",null).exports},83382(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(60621),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);const o=a.default},71991(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(76860),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);const o=a.default},38335(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(88838),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);const o=a.default},93638(t,e,s){"use strict";s.r(e);var a=s(41671),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},57634(t,e,s){"use strict";s.r(e);var a=s(77711),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},98433(t,e,s){"use strict";s.r(e);var a=s(29834),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},703(t,e,s){"use strict";s.r(e);var a=s(19318),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},2969(t,e,s){"use strict";s.r(e);var a=s(99268),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},88798(t,e,s){"use strict";s.r(e);var a=s(13181),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)}},t=>{t.O(0,[3660],()=>{return e=15905,t(t.s=e);var e});t.O()}]);
\ No newline at end of file
diff --git a/public/js/groups.js b/public/js/groups.js
index 4793cbec7..9f0df1b05 100644
--- a/public/js/groups.js
+++ b/public/js/groups.js
@@ -1 +1 @@
-(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[7610],{19933(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(18115),o=s(71307),i=s(49139);const r={props:{groupId:{type:String},path:{type:String}},data:function(){return{tab:"home"}},components:{"groups-home":a.default,"create-group":i.default,"group-feed":o.default},mounted:function(){this.groupId&&(this.tab="show")},methods:{switchTab:function(t){this.tab=t}}}},22681(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(71347),o=s(69104),i=s(40482),r=s(62181);const n={components:{"text-input":a.default,"select-input":o.default,"text-area-input":i.default,"checkbox-input":r.default},data:function(){return{hide:!0,name:null,page:1,maxPage:1,description:null,membership:"placeholder",submitting:!1,categories:[],category:"",limit:{name:{max:60},description:{max:500}},configuration:{types:{text:!0,photos:!0,videos:!0,polls:!0},federation:!0,adult:!1,discoverable:!1,autospam:!1,dms:!1,slowjoin:{enabled:!1,age:90,limit:{post:1,comment:20,threads:2,likes:5,hashtags:5,mentions:1,autolinks:1}}},hasConfirmed:!1,permissionChecked:!1,membershipCategories:[{key:"Public",value:"public"}]}},mounted:function(){this.permissionCheck(),this.fetchCategories()},methods:{permissionCheck:function(){var t=this;axios.post("/api/v0/groups/permission/create").then(function(e){0==e.data.permission?(swal("Limit reached","You cannot create any more groups","error"),t.hide=!0):t.hide=!1,t.permissionChecked=!0})},submit:function(t){t.preventDefault(),this.submitting=!0,axios.post("/api/v0/groups/create",{name:this.name,description:this.description,membership:this.membership}).then(function(t){console.log(t.data),window.location.href=t.data.url}).catch(function(t){console.log(t.response)})},fetchCategories:function(){var t=this;axios.get("/api/v0/groups/categories/list").then(function(e){t.categories=e.data.map(function(t){return{key:t,value:t}})})},createGroup:function(){axios.post("/api/v0/groups/create",{name:this.name,description:this.description,membership:this.membership,configuration:this.configuration}).then(function(t){console.log(t.data),location.href=t.data.url})},handleUpdate:function(t,e){this[t]=e}}}},72233(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>h});var a=s(79984),o=s(17108),i=s(95002),r=s(13094),n=s(58753),l=s(94559),c=s(19413),d=s(49268),u=s(33457),p=s(52505);function f(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?m(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);s1&&void 0!==arguments[1]&&arguments[1],s=new Date(t);return e?s.toDateString()+" ยท "+s.toLocaleTimeString():s.toDateString()},switchTab:function(t){window.scrollTo(0,0),"feed"==t&&this.permalinkMode&&(this.permalinkMode=!1,this.fetchFeed());var e="feed"==t?this.group.url:this.group.url+"/"+t;history.pushState(t,null,e),this.tab=t},joinGroup:function(){var t=this;this.requestingMembership=!0,axios.post("/api/v0/groups/"+this.groupId+"/join").then(function(e){t.requestingMembership=!1,t.group=e.data,t.fetchGroup(),t.fetchFeed()}).catch(function(e){var s=e.response;422==s.status&&(t.tab="feed",history.pushState("",null,t.group.url),t.requestingMembership=!1,swal("Oops!",s.data.error,"error"))})},cancelJoinRequest:function(){var t=this;window.confirm("Are you sure you want to cancel your request to join this group?")&&axios.post("/api/v0/groups/"+this.groupId+"/cjr").then(function(e){t.requestingMembership=!1}).catch(function(t){var e=t.response;422==e.status&&swal("Oops!",e.data.error,"error")})},leaveGroup:function(){var t=this;window.confirm("Are you sure you want to leave this group? Any content you shared will remain accessible. You won't be able to rejoin for 24 hours.")&&axios.post("/api/v0/groups/"+this.groupId+"/leave").then(function(e){t.tab="feed",history.pushState("",null,t.group.url),t.feed=[],t.isMember=!1,t.isAdmin=!1,t.group.self.role=null,t.group.self.is_member=!1})},pushNewStatus:function(t){this.feed.unshift(t)},commentFocus:function(t){this.feed[t].showCommentDrawer=!0},statusDelete:function(t){this.feed.splice(t,1)},infiniteFeed:function(t){var e=this;if(this.feed.length<3)t.complete();else{var s="/api/v0/groups/"+this.groupId+"/feed";axios.get(s,{params:{limit:6,max_id:this.maxId}}).then(function(s){if(s.data.length){var a,o,i=s.data.filter(function(t){return-1==e.ids.indexOf(t.id)});e.maxId=i[i.length-1].id,(a=e.feed).push.apply(a,f(i)),(o=e.ids).push.apply(o,f(i.map(function(t){return t.id}))),setTimeout(function(){e.initObservers()},1e3),t.loaded()}else t.complete()})}},decrementModCounter:function(t){var e=this.atabs.moderation_count;0!=e&&(this.atabs.moderation_count=e-t)},setModCounter:function(t){this.atabs.moderation_count=t},decrementJoinRequestCount:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this.atabs.request_count;this.atabs.request_count=e-t},incrementMemberCount:function(){var t=this.group.member_count;this.group.member_count=t+1},copyLink:function(){window.App.util.clipboard(this.group.url),this.$bvToast.toast("Succesfully copied group url to clipboard",{title:"Success",variant:"success",autoHideDelay:5e3})},reportGroup:function(){var t=this;swal("Report Group","Are you sure you want to report this group?").then(function(e){e&&(location.href="/i/report?id=".concat(t.group.id,"&type=group"))})},showSearchModal:function(){event.currentTarget.blur(),this.$refs.searchModal.open()},showInviteModal:function(){event.currentTarget.blur(),this.$refs.inviteModal.open()},showLikesModal:function(t){var e=this;this.likesId=this.feed[t].id,axios.get("/api/v0/groups/"+this.groupId+"/likes/"+this.likesId).then(function(t){e.likes=t.data,e.likesPage++,e.$refs.likeBox.show()})},infiniteLikesHandler:function(t){var e=this;this.likes.length<3?t.complete():axios.get("/api/v0/groups/"+this.groupId+"/likes/"+this.likesId,{params:{page:this.likesPage}}).then(function(s){var a;s.data.length>0?((a=e.likes).push.apply(a,f(s.data)),e.likesPage++,10!=s.data.length?t.complete():t.loaded()):t.complete()})}}}},2118(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["id"],data:function(){return{loadingStatus:"Determining invite eligibility",tab:"initial",profile:{},group:{},showMore:!1}},mounted:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(e){t.profile=e.data,t.fetchGroup()}).catch(function(e){return 403===e.response.status?void(t.tab="login"):void(t.tab="error")})},methods:{fetchGroup:function(){var t=this;axios.get("/api/v0/groups/".concat(this.id)).then(function(e){t.group=e.data,t.loadingStatus="Checking group invitations",t.checkForInvitation()}).catch(function(e){t.tab="error"})},checkForInvitation:function(){var t=this;axios.post("/api/v0/groups/".concat(this.group.id,"/invite/check")).then(function(e){t.tab=1==e.data.can_join?"form":"notinvited"}).catch(function(e){422===e.response.status&&"Already a member"===e.response.data.error?t.tab="existingmember":t.tab="error"})},prettyCount:function(t){return App.util.format.count(t)},timeago:function(t){return App.util.format.timeAgo(t)},showMoreInfo:function(){event.currentTarget.blur(),this.showMore=!this.showMore},acceptInvite:function(){var t=this;event.currentTarget.blur(),this.tab="loading",axios.post("/api/v0/groups/".concat(this.group.id,"/invite/accept")).then(function(t){setTimeout(function(){location.href=t.data.next_url},2e3)}).catch(function(e){t.tab="error"})},declineInvite:function(){var t=this;event.currentTarget.blur(),this.tab="loading",axios.post("/api/v0/groups/".concat(this.group.id,"/invite/decline")).then(function(t){location.href=t.data.next_url}).catch(function(e){t.tab="error"})}}}},20258(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(95002),o=s(74692);const i={props:{pg:{type:String},pp:{type:String}},components:{"group-status":a.default},data:function(){return{currentProfile:{},roleTitle:"Member",group:{},profile:{},feed:[],ids:[],feedLoaded:!1,feedEmpty:!1,page:1,canIntersect:!1,commonIntersects:[]}},beforeMount:function(){o("body").css("background-color","#f0f2f5"),this.group=JSON.parse(this.pg),this.profile=JSON.parse(this.pp),"founder"==this.profile.group.role&&(this.roleTitle="Admin")},mounted:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(e){t.currentProfile=e.data,t.fetchInitialFeed(),e.data.id!=t.profile.id&&t.fetchCommonIntersections()}),this.$nextTick(function(){o('[data-toggle="tooltip"]').tooltip()})},methods:{fetchInitialFeed:function(){var t=this;axios.get("/api/v0/groups/".concat(this.group.id,"/user/").concat(this.profile.id,"/feed")).then(function(e){t.feed=e.data.filter(function(e){return"reply:text"!=e.pf_type||e.account.id!=t.profile.id}),t.feedLoaded=!0,t.feedEmpty=0==t.feed.length,t.page++})},infiniteFeed:function(t){var e=this;0!=this.feed.length?axios.get("/api/v0/groups/".concat(this.group.id,"/user/").concat(this.profile.id,"/feed"),{params:{page:this.page}}).then(function(s){if(s.data.length){var a=s.data.filter(function(t){return"reply:text"!=t.pf_type||t.account.id!=e.profile.id}),o=e;a.forEach(function(t){-1==o.ids.indexOf(t.id)&&(o.ids.push(t.id),o.feed.push(t))}),t.loaded(),e.page++}else t.complete()}):t.complete()},fetchCommonIntersections:function(){var t=this;axios.get("/api/v0/groups/member/intersect/common",{params:{gid:this.group.id,pid:this.profile.id}}).then(function(e){t.commonIntersects=e.data,t.canIntersect=e.data.groups.length||e.data.topics.length})}}}},39786(t,e,s){"use strict";function a(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);si});const i={props:{groupId:{type:String}},data:function(){return{initalLoad:!1,profile:void 0,group:{},isMember:!1,isAdmin:!1,changed:!1,savingChanges:!1,categories:[],category:"General",tab:"home",tabs:["home","customize","interactions","blocked","advanced","limits","blocked:import"],interactionLog:[],interactionLogPage:1,interactionLogInitialLoad:!1,interactionLogShowMore:!0,blockedInitialLoad:!1,blockedInstances:["facebook.com","instagram.com"],blockedUsers:["mark@facebook.com","user@example.org","troll"],moderatedInstances:["pawoo.net","pixelfed.com"],importBlocksData:{},importBlocksUploaded:!1,membershipDescription:{all:"Anyone can join your group",local:"Only local users can join your group",private:"Only users you approve can join your group"},advanced:{}}},beforeMount:function(){var t=this;axios.get("/api/v0/groups/categories/list").then(function(e){t.categories=e.data})},mounted:function(){var t=this,e=new URLSearchParams(window.location.search);e.has("tab")&&this.tabs.includes(e.get("tab"))&&(this.tab=e.get("tab"),this.toggleTab(this.tab)),axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(e){t.profile=e.data,axios.get("/api/v0/groups/"+t.groupId).then(function(e){t.group=e.data,t.initalLoad=!0,t.isMember=e.data.self.is_member,t.isAdmin=["founder","admin"].includes(e.data.self.role),t.advanced=e.data.config,t.category=e.data.category.name})})},methods:{timestampFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=new Date(t);return e?s.toDateString()+" ยท "+s.toLocaleTimeString():s.toDateString()},timeago:function(t){return window.App.util.format.timeAgo(t)},sidToUrl:function(t){return"/groups/".concat(this.groupId,"/p/").concat(t)},submit:function(){var t=this;this.savingChanges=!0;var e=new FormData;e.append("category",this.category),e.append("membership",this.group.membership),e.append("discoverable",this.advanced.discoverable),e.append("activitypub",this.advanced.activitypub),e.append("is_nsfw",this.advanced.is_nsfw),this.group.description&&e.append("description",this.group.description),this.$refs.avatarInput&&e.append("avatar",this.$refs.avatarInput.files[0]),this.$refs.headerInput&&e.append("header",this.$refs.headerInput.files[0]),axios.post("/api/v0/groups/"+this.group.id+"/settings",e).then(function(e){t.savingChanges=!1,t.group=e.data,swal("Updated!","Successfully updated group settings.","success")}).catch(function(e){t.savingChanges=!1,console.log(e.response),swal("Oops!","An error occured while attempting to save changes. Please try again later.","error")})},toggleTab:function(t){switch(event&&event.currentTarget.blur(),t){case"home":default:this.tab="home",history.pushState(null,null,"/groups/".concat(this.groupId,"/settings"));break;case"customize":this.tab="customize",history.pushState(null,null,"/groups/".concat(this.groupId,"/settings?tab=customize"));break;case"limits":this.tab="limits",history.pushState(null,null,"/groups/".concat(this.groupId,"/settings?tab=limits"));break;case"interactions":this.interactionLogInitialLoad||this.loadInteractions(),this.tab="interactions",history.pushState(null,null,"/groups/".concat(this.groupId,"/settings?tab=interactions"));break;case"blocked":this.blockedInitialLoad||this.loadBlocks(),this.tab="blocked",history.pushState(null,null,"/groups/".concat(this.groupId,"/settings?tab=blocked"));break;case"advanced":this.tab="advanced",history.pushState(null,null,"/groups/".concat(this.groupId,"/settings?tab=advanced"))}},loadInteractions:function(){var t=this;axios.get("/api/v0/groups/"+this.groupId+"/admin/interactions").then(function(e){t.interactionLog=e.data,t.interactionLogPage++,t.interactionLogInitialLoad=!0})},loadMoreInteractions:function(){var t=this;axios.get("/api/v0/groups/"+this.groupId+"/admin/interactions",{params:{page:this.interactionLogPage}}).then(function(e){var s;0!=e.data.length?((s=t.interactionLog).push.apply(s,a(e.data)),t.interactionLogPage++):t.interactionLogShowMore=!1})},loadBlocks:function(){var t=this;axios.get("/api/v0/groups/".concat(this.groupId,"/admin/blocks")).then(function(e){t.blockedInstances=e.data.instances,t.blockedUsers=e.data.users,t.moderatedInstances=e.data.moderated,t.blockedInitialLoad=!0})},blockAction:function(t){var e=this,s="user"==t?"user":"instance domain";swal({text:"Which ".concat(s,"?"),content:{element:"input",attributes:{placeholder:"user"==s?"pixelfed":"pixelfed.org"}},button:{text:"Next",closeModal:!1}}).then(function(e){if(!e)throw null;return"user"!==t&&e.startsWith("http")?(swal("Oops!","Please enter the instance domain (eg: pixelfed.social)","error"),null):e}).then(function(s){return axios.post("/api/v0/groups/"+e.groupId+"/admin/mbs",{type:"user"==t?"user":"instance",item:s}).then(function(t){return t.data?s:(swal.stopLoading(),swal.close(),null)}).catch(function(t){return swal.stopLoading(),swal.close(),null})}).then(function(s){s?swal({title:"Are you sure?",text:"moderate"===t?"Manually approve all membership requests from ".concat(s):"Limiting ".concat(s," will purge and reject all interactions with this group"),icon:"warning",buttons:!0,dangerMode:!0}).then(function(a){a&&axios.post("/api/v0/groups/"+e.groupId+"/admin/blocks/add",{item:s,type:t}).then(function(a){switch(t){case"instance":e.blockedInstances.push(s);break;case"user":e.blockedUsers.push(s);break;case"moderate":e.moderatedInstances.push(s)}})}):e.$bvToast.toast("Invalid ".concat(t,", please try again"),{title:"Error",variant:"danger",autoHideDelay:5e3})})},reportUrl:function(t){return"/groups/".concat(this.groupId,"/moderation?tab=view&id=").concat(t)},memberInteractionUrl:function(t){return"/groups/".concat(this.groupId,"/members?a=il&pid=").concat(t)},handleDeleteAvatar:function(){var t=this;window.confirm("Are you sure you want to delete your group avatar image?")&&(this.savingChanges=!0,axios.post("/api/v0/groups/"+this.group.id+"/settings/delete-avatar").then(function(e){t.savingChanges=!1,t.group=e.data}))},handleDeleteHeader:function(){var t=this;window.confirm("Are you sure you want to delete your group header image?")&&(this.savingChanges=!0,axios.post("/api/v0/groups/"+this.group.id+"/settings/delete-header").then(function(e){t.savingChanges=!1,t.group=e.data}))},undoBlock:function(t,e){var s=this,a="moderate"==t?"unblock ".concat(e,"?"):"allow anyone to join without approval from ".concat(e,"?");swal({title:"Confirm",text:"Are you sure you want to ".concat(a),buttons:{cancel:{text:"Cancel",value:null,visible:!0,className:"",closeModal:!0},confirm:{text:"Proceed",value:!0,visible:!0,className:"",closeModal:!0}}}).then(function(a){a&&axios.post("/api/v0/groups/".concat(s.groupId,"/admin/blocks/undo"),{item:e,type:t}).then(function(a){switch(t){case"instance":s.blockedInstances=s.blockedInstances.filter(function(t){return t!=e});break;case"user":s.blockedUsers=s.blockedUsers.filter(function(t){return t!=e});break;case"moderate":s.moderatedInstances=s.moderatedInstances.filter(function(t){return t!=e})}})})},exportBlocks:function(){event.currentTarget.blur(),axios({url:"/api/v0/groups/"+this.groupId+"/admin/blocks/export",method:"POST",responseType:"blob"}).then(function(t){var e=window.URL.createObjectURL(new Blob([t.data])),s=document.createElement("a");s.href=e,s.setAttribute("download","pixelfed-group-blocks-".concat(Date.now(),".json")),document.body.appendChild(s),s.click()})},deleteGroup:function(){var t=this;axios.post("/api/v0/groups/delete",{gid:this.groupId}).then(function(e){location.href="/groups/".concat(t.groupId)})}}}},95727(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>p});var a=s(95002),o=s(90637),i=s(54048),r=s(57397),n=s(65603),l=s(27403),c=s(5799),d=s(49139),u=s(2e4);s(73718);const p={data:function(){return{initialLoad:!1,config:{},groups:[],profile:{},tab:null,searchQuery:void 0}},components:{"autocomplete-input":u.default,"group-status":a.default,"self-discover":i.default,"self-groups":r.default,"self-feed":o.default,"self-notifications":n.default,"self-invitations":l.default,"self-remote-search":c.default,"create-group":d.default},mounted:function(){this.fetchConfig()},methods:{init:function(){document.querySelectorAll("footer").forEach(function(t){return t.parentNode.removeChild(t)}),document.querySelectorAll(".mobile-footer-spacer").forEach(function(t){return t.parentNode.removeChild(t)}),document.querySelectorAll(".mobile-footer").forEach(function(t){return t.parentNode.removeChild(t)}),this.initialLoad=!0},fetchConfig:function(){var t=this;axios.get("/api/v0/groups/config").then(function(e){t.config=e.data,t.fetchProfile()})},fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(e){t.profile=e.data,t.init(),window._sharedData.curUser=e.data,window.App.util.navatar()})},fetchSelfGroups:function(){var t=this;axios.get("/api/v0/groups/self/list").then(function(e){t.groups=e.data})},switchTab:function(t){event.currentTarget.blur(),window.scrollTo(0,0),this.tab=t,"feed"!=t?history.pushState(null,null,"/groups/home?ct="+t):history.pushState(null,null,"/groups/home")},autocompleteSearch:function(t){var e=this;return!t||t.length<2?((this.tab="searchresults")&&(this.tab="feed"),[]):(this.searchQuery=t,t.startsWith("http")?new URL(t).hostname==location.hostname?(location.href=t,[]):[]:t.startsWith("#")?(this.$bvToast.toast(t,{title:"Hashtag detected",variant:"info",autoHideDelay:5e3}),[]):axios.post("/api/v0/groups/search/global",{q:t,v:"0.2"}).then(function(t){return e.searchLoading=!1,t.data}).catch(function(t){return 422===t.response.status&&e.$bvToast.toast(t.response.data.error.message,{title:"Cannot display search results",variant:"danger",autoHideDelay:5e3}),[]}))},getSearchResultValue:function(t){return t.name},onSearchSubmit:function(t){if(t.length<1)return[];location.href=t.url},truncateName:function(t){return t.length<24?t:t.substr(0,23)+"..."}}}},68717(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(7764),o=s(66536);function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);s0&&(t.children={feed:[],can_load_more:!0}),t});t.feed=s,t.isLoaded=!0,t.maxReplyId=e.data[e.data.length-1].id,3==t.feed.length&&(t.canLoadMore=!0)}).catch(function(e){t.isLoaded=!0})},loadMoreComments:function(){var t=this;this.isLoadingMore=!0,axios.get("/api/v0/groups/comments",{params:{gid:this.groupId,sid:this.status.id,limit:3,max_id:this.maxReplyId}}).then(function(e){var s;if(e.data[e.data.length-1].id==t.maxReplyId)return t.isLoadingMore=!1,void(t.canLoadMore=!1);(s=t.feed).push.apply(s,i(e.data)),setTimeout(function(){t.isLoadingMore=!1},500),t.maxReplyId=e.data[e.data.length-1].id,e.data.length>0?t.canLoadMore=!0:t.canLoadMore=!1}).catch(function(e){t.isLoadingMore=!1,t.canLoadMore=!1})},storeComment:function(t){var e,s=this;null===(e=t.currentTarget)||void 0===e||e.blur(),axios.post("/api/v0/groups/comment",{gid:this.groupId,sid:this.status.id,content:this.replyContent}).then(function(t){s.replyContent=null,s.feed.unshift(t.data)}).catch(function(t){422==t.response.status?(s.isUploading=!1,s.uploadProgress=0,swal("Oops!",t.response.data.error,"error")):(s.isUploading=!1,s.uploadProgress=0,swal("Oops!","An error occured while processing your request, please try again later","error"))})},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)},readMore:function(){this.readMoreCursor=this.readMoreCursor+200},likeComment:function(t,e,s){s.target.blur();var a=!t.favourited;this.feed[e].favourited=a,t.favourited=a,axios.post("/api/v0/groups/comment/".concat(a?"like":"unlike"),{sid:t.id,gid:this.groupId})},deleteComment:function(t){var e=this;0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/api/v0/groups/comment/delete",{gid:this.groupId,id:this.feed[t].id}).then(function(s){e.feed.splice(t,1)}).catch(function(t){console.log(t.response),swal("Error","Something went wrong. Please try again later.","error")})},uploadImage:function(){this.$refs.fileInput.click()},handleImageUpload:function(){var t=this;if(this.$refs.fileInput.files.length){this.isUploading=!0;var e=this,s=new FormData;s.append("gid",this.groupId),s.append("sid",this.status.id),s.append("photo",this.$refs.fileInput.files[0]),axios.post("/api/v0/groups/comment/photo",s,{onUploadProgress:function(t){e.uploadProgress=Math.floor(t.loaded/t.total*100)}}).then(function(e){t.isUploading=!1,t.uploadProgress=0,t.feed.unshift(e.data)}).catch(function(e){422==e.response.status?(t.isUploading=!1,t.uploadProgress=0,swal("Oops!",e.response.data.error,"error")):(t.isUploading=!1,t.uploadProgress=0,swal("Oops!","An error occured while processing your request, please try again later","error"))})}},lightbox:function(t){this.lightboxStatus=t.media_attachments[0],this.$refs.lightboxModal.show()},hideLightbox:function(){this.lightboxStatus=null,this.$refs.lightboxModal.hide()},blurhashWidth:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?30:20},blurhashHeight:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?20:30},getMediaSource:function(t){var e=t.media_attachments[0];return e.preview_url.endsWith("storage/no-preview.png")?e.url:e.preview_url},replyToChild:function(t,e){var s=this;if(this.replyChildId==t.id)return this.replyChildId=null,void(this.replyChildIndex=null);this.childReplyContent=null,this.replyChildId=t.id,this.replyCursorId=t.id,this.replyChildIndex=e,t.hasOwnProperty("replies_loaded")&&t.replies_loaded,this.$nextTick(function(){s.fetchChildReplies(t,e)})},fetchChildReplies:function(t,e){var s=this;axios.get("/api/v0/groups/comments",{params:{gid:this.groupId,sid:t.id,cid:this.replyCursorId,limit:3}}).then(function(t){s.feed[e].hasOwnProperty("children")?(s.feed[e].children.feed.push(t.data),s.feed[e].children.can_load_more=3==t.data.length):s.feed[e].children={feed:t.data,can_load_more:3==t.data.length},s.replyChildMinId=t.data[t.data.length-1].id,s.$nextTick(function(){s.feed[e].replies_loaded=!0})}).catch(function(t){s.feed[e].children.can_load_more=!1})},storeChildComment:function(t){var e=this;this.postingChildComment=!0,axios.post("/api/v0/groups/comment",{gid:this.groupId,sid:this.status.id,cid:this.replyChildId,content:this.childReplyContent}).then(function(s){e.childReplyContent=null,e.postingChildComment=!1,e.feed[t].children.feed.push(s.data)}).catch(function(t){422==t.response.status?swal("Oops!",t.response.data.error,"error"):swal("Oops!","An error occured while processing your request, please try again later","error")})},loadMoreChildComments:function(t,e){var s=this;this.loadingChildComments=!0,axios.get("/api/v0/groups/comments",{params:{gid:this.groupId,sid:t.id,max_id:this.replyChildMinId,cid:1,limit:3}}).then(function(t){var a;s.feed[e].hasOwnProperty("children")?((a=s.feed[e].children.feed).push.apply(a,i(t.data)),s.feed[e].children.can_load_more=3==t.data.length):s.feed[e].children={feed:t.data,can_load_more:3==t.data.length};s.replyChildMinId=t.data[t.data.length-1].id,s.feed[e].replies_loaded=!0,s.loadingChildComments=!1}).catch(function(t){})}}}},78828(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(7764);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);s0?t.canLoadMore=!0:t.canLoadMore=!1}).catch(function(e){t.isLoadingMore=!1,t.canLoadMore=!1})},storeComment:function(){var t=this;axios.post("/api/v0/groups/comment",{gid:this.groupId,sid:this.status.id,content:this.replyContent}).then(function(e){t.replyContent=null,t.feed.unshift(e.data)}).catch(function(e){422==e.response.status?(t.isUploading=!1,t.uploadProgress=0,swal("Oops!",e.response.data.error,"error")):(t.isUploading=!1,t.uploadProgress=0,swal("Oops!","An error occured while processing your request, please try again later","error"))})},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)},readMore:function(){this.readMoreCursor=this.readMoreCursor+200},likeComment:function(t,e,s){s.target.blur();var a=!t.favourited;this.feed[e].favourited=a,t.favourited=a,axios.post("/api/v0/groups/like",{sid:t.id,gid:this.groupId})},deleteComment:function(t){var e=this;0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/api/v0/groups/status/delete",{gid:this.groupId,id:this.feed[t].id}).then(function(s){e.feed.splice(t,1)}).catch(function(t){console.log(t.response),swal("Error","Something went wrong. Please try again later.","error")})},uploadImage:function(){this.$refs.fileInput.click()},handleImageUpload:function(){var t=this;if(this.$refs.fileInput.files.length){this.isUploading=!0;var e=this,s=new FormData;s.append("gid",this.groupId),s.append("sid",this.status.id),s.append("photo",this.$refs.fileInput.files[0]),axios.post("/api/v0/groups/comment/photo",s,{onUploadProgress:function(t){e.uploadProgress=Math.floor(t.loaded/t.total*100)}}).then(function(e){t.isUploading=!1,t.uploadProgress=0,t.feed.unshift(e.data)}).catch(function(e){422==e.response.status?(t.isUploading=!1,t.uploadProgress=0,swal("Oops!",e.response.data.error,"error")):(t.isUploading=!1,t.uploadProgress=0,swal("Oops!","An error occured while processing your request, please try again later","error"))})}},lightbox:function(t){this.lightboxStatus=t.media_attachments[0],this.$refs.lightboxModal.show()},hideLightbox:function(){this.lightboxStatus=null,this.$refs.lightboxModal.hide()},blurhashWidth:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?30:20},blurhashHeight:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?20:30},getMediaSource:function(t){var e=t.media_attachments[0];return e.preview_url.endsWith("storage/no-preview.png")?e.url:e.preview_url},replyToChild:function(t,e){this.replyChildId!=t.id?(this.childReplyContent=null,this.replyChildId=t.id,t.hasOwnProperty("replies_loaded")&&t.replies_loaded||this.fetchChildReplies(t,e)):this.replyChildId=null},fetchChildReplies:function(t,e){var s=this;axios.get("/api/v0/groups/comments",{params:{gid:this.groupId,sid:t.id,cid:1,limit:3}}).then(function(t){var a;s.feed[e].hasOwnProperty("children")?((a=s.feed[e].children.feed).push.apply(a,o(t.data)),s.feed[e].children.can_load_more=3==t.data.length):s.feed[e].children={feed:t.data,can_load_more:3==t.data.length};s.feed[e].replies_loaded=!0}).catch(function(t){})},storeChildComment:function(){var t=this;this.postingChildComment=!0,axios.post("/api/v0/groups/comment",{gid:this.groupId,sid:this.status.id,cid:this.replyChildId,content:this.childReplyContent}).then(function(e){t.childReplyContent=null,t.postingChildComment=!1}).catch(function(t){422==t.response.status?swal("Oops!",t.response.data.error,"error"):swal("Oops!","An error occured while processing your request, please try again later","error")}),console.log(this.replyChildId)}}}},15961(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(74692);const o={props:{status:{type:Object},profile:{type:Object},type:{type:String,default:"status",validator:function(t){return["status","comment","profile"].includes(t)}},groupId:{type:String}},data:function(){return{ctxMenuStatus:!1,ctxMenuRelationship:!1,ctxEmbedPayload:!1,copiedEmbed:!1,replySending:!1,ctxEmbedShowCaption:!0,ctxEmbedShowLikes:!1,ctxEmbedCompactMode:!1,confirmModalTitle:"Are you sure?",confirmModalIdentifer:null,confirmModalType:!1}},methods:{open:function(){this.ctxMenu()},ctxMenu:function(){var t=this;this.ctxMenuStatus=this.status,this.ctxEmbedPayload=window.App.util.embed.post(this.status.url),this.status.account.id==this.profile.id?(this.ctxMenuRelationship=!1,this.$refs.ctxModal.show()):axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.status.account.id}}).then(function(e){t.ctxMenuRelationship=e.data[0],t.$refs.ctxModal.show()})},closeCtxMenu:function(){this.copiedEmbed=!1,this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.closeModals()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeModals()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;window.location.href=this.statusUrl(t),this.closeCtxMenu()},ctxMenuGoToProfile:function(){var t=this.ctxMenuStatus;window.location.href=this.profileUrl(t),this.closeCtxMenu()},ctxMenuFollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then(function(e){var s=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout(function(){swal("Follow successful!","You are now following "+s,"success")},500)})},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then(function(e){var s=t.ctxMenuStatus.account.acct;"home"==t.scope&&(t.feed=t.feed.filter(function(e){return e.account.id!=t.ctxMenuStatus.account.id})),t.closeCtxMenu(),setTimeout(function(){swal("Unfollow successful!","You are no longer following "+s,"success")},500)})},ctxMenuReportPost:function(){this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},ctxMenuEmbed:function(){this.closeModals(),this.$refs.ctxEmbedModal.show()},ctxMenuShare:function(){this.$refs.ctxModal.hide(),this.$refs.ctxShareModal.show()},closeCtxShareMenu:function(){this.$refs.ctxShareModal.hide(),this.$refs.ctxModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.ctxEmbedShowCaption=!0,this.ctxEmbedShowLikes=!1,this.ctxEmbedCompactMode=!1,this.$refs.ctxEmbedModal.hide()},ctxModMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModOtherMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.show()},ctxModMenu:function(){this.$refs.ctxModal.hide()},ctxModMenuClose:function(){this.closeModals()},ctxModOtherMenuClose:function(){this.closeModals(),this.$refs.ctxModModal.show()},formatCount:function(t){return App.util.format.count(t)},openCtxReportOtherMenu:function(){var t=this.ctxMenuStatus;this.closeCtxMenu(),this.ctxMenuStatus=t,this.$refs.ctxReportOther.show()},ctxReportMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxModal.show()},ctxReportOtherMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},sendReport:function(t){var e=this,s=this.ctxMenuStatus.id;swal({title:"Confirm Report",text:"Are you sure you want to report this post?",icon:"warning",buttons:!0,dangerMode:!0}).then(function(a){a?axios.post("/api/v0/groups/".concat(e.groupId,"/report/create"),{type:t,id:s}).then(function(t){e.closeCtxMenu(),swal("Report Sent!","We have successfully received your report.","success")}).catch(function(t){422==t.response.status?swal("Oops!",t.response.data.error,"error"):swal("Oops!","There was an issue reporting this post.","error")}):e.closeCtxMenu()})},closeModals:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.hide(),this.$refs.ctxShareModal.hide(),this.$refs.ctxEmbedModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.$refs.ctxConfirm.hide()},openCtxStatusModal:function(){this.closeModals(),this.$refs.ctxStatusModal.show()},openConfirmModal:function(){this.closeModals(),this.$refs.ctxConfirm.show()},closeConfirmModal:function(){this.closeModals(),this.confirmModalTitle="Are you sure?",this.confirmModalType=!1,this.confirmModalIdentifer=null},confirmModalConfirm:function(){var t=this;if("post.delete"===this.confirmModalType)axios.post("/i/delete",{type:"status",item:this.confirmModalIdentifer}).then(function(e){t.feed=t.feed.filter(function(e){return e.id!=t.confirmModalIdentifer}),t.closeConfirmModal()}).catch(function(e){t.closeConfirmModal(),swal("Error","Something went wrong. Please try again later.","error")});this.closeConfirmModal()},confirmModalCancel:function(){this.closeConfirmModal()},moderatePost:function(t,e,s){var a=this,o=(t.account.username,t.id,""),i=this;switch(e){case"addcw":o="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!0,i.closeModals(),i.ctxModMenuClose()}).catch(function(t){swal("Error","Something went wrong, please try again later.","error"),i.closeModals(),i.ctxModMenuClose()})});break;case"remcw":o="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!1,i.closeModals(),i.ctxModMenuClose()}).catch(function(t){swal("Error","Something went wrong, please try again later.","error"),i.closeModals(),i.ctxModMenuClose()})});break;case"unlist":o="Are you sure you want to unlist this post?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(e){a.feed=a.feed.filter(function(e){return e.id!=t.id}),swal("Success","Successfully unlisted post","success"),i.closeModals(),i.ctxModMenuClose()}).catch(function(t){i.closeModals(),i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")})});break;case"spammer":o="Are you sure you want to mark this user as a spammer? All existing and future posts will be unlisted on timelines and a content warning will be applied.",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(t){swal("Success","Successfully marked account as spammer","success"),i.closeModals(),i.ctxModMenuClose()}).catch(function(t){i.closeModals(),i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")})})}},shareStatus:function(t,e){0!=a("body").hasClass("loggedIn")&&(this.closeModals(),axios.post("/i/share",{item:t.id}).then(function(e){t.reblogs_count=e.data.count,t.reblogged=!t.reblogged,t.reblogged?swal("Success","You shared this post","success"):swal("Success","You unshared this post","success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")}))},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},deletePost:function(t){var e=this;0!=a("body").hasClass("loggedIn")&&0!=this.ownerOrAdmin(t)&&0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/i/delete",{type:"status",item:t.id}).then(function(s){e.$emit("status-delete",t.id),e.closeModals()}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},archivePost:function(t){var e=this;0!=window.confirm("Are you sure you want to archive this post?")&&axios.post("/api/pixelfed/v2/status/"+t.id+"/archive").then(function(s){e.$emit("status-delete",t.id),e.closeModals()})},unarchivePost:function(t){var e=this;0!=window.confirm("Are you sure you want to unarchive this post?")&&axios.post("/api/pixelfed/v2/status/"+t.id+"/unarchive").then(function(t){e.closeModals()})}}}},3891(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{label:{type:String},inputText:{type:String},val:{type:String},helpText:{type:String},strongText:{type:Boolean,default:!0}},data:function(){return{value:this.val}},watch:{value:function(t,e){this.$emit("update",t)}}}},35334(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{label:{type:String},placeholder:{type:String},categories:{type:Array},val:{type:String},helpText:{type:String},hasLimit:{type:Boolean,default:!1},maxLimit:{type:Number,default:40},largeInput:{type:Boolean,default:!1}},data:function(){return{value:this.val?this.val:""}},watch:{value:function(t,e){this.$emit("update",t)}}}},87844(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{label:{type:String},placeholder:{type:String},val:{type:String},helpText:{type:String},hasLimit:{type:Boolean,default:!1},maxLimit:{type:Number,default:40},largeInput:{type:Boolean,default:!1},rows:{type:Number,default:4}},data:function(){return{value:this.val}},watch:{value:function(t,e){this.$emit("update",t)}}}},45065(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{label:{type:String},placeholder:{type:String},val:{type:String},helpText:{type:String},hasLimit:{type:Boolean,default:!1},maxLimit:{type:Number,default:40},largeInput:{type:Boolean,default:!1}},data:function(){return{value:this.val}},watch:{value:function(t,e){this.$emit("update",t)}}}},91446(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{profile:{type:Object},groupId:{type:String}},data:function(){return{config:window.App.config,composeText:void 0,tab:null,placeholder:"Write something...",allowPhoto:!0,allowVideo:!0,allowPolls:!0,allowEvent:!0,pollOptionModel:null,pollOptions:[],pollExpiry:1440,uploadProgress:0,isUploading:!1,isPosting:!1,photoName:void 0,videoName:void 0}},methods:{newPost:function(){var t=this;if(!this.isPosting){this.isPosting=!0;var e=this,s="text",a=new FormData;switch(a.append("group_id",this.groupId),this.composeText&&this.composeText.length&&a.append("caption",this.composeText),this.tab){case"poll":if(!this.pollOptions||this.pollOptions.length<2||this.pollOptions.length>4)return void swal("Oops!","A poll must have 2-4 choices.","error");if(!this.composeText||this.composeText.length<5)return void swal("Oops!","A poll question must be at least 5 characters.","error");for(var o=0;o0&&void 0!==arguments[0])||arguments[0])&&event.currentTarget.blur(),this.tab=null,this.$refs.photoInput.value=null,this.photoName=null,this.$refs.videoInput.value=null,this.videoName=null}}}},15426(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{group:{type:Object}},methods:{timestampFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=new Date(t);return e?s.toDateString()+" ยท "+s.toLocaleTimeString():s.toDateString()}}}},51796(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(2e4);s(73718);const o={props:{group:{type:Object},profile:{type:Object}},components:{"autocomplete-input":a.default},data:function(){return{query:"",recent:[],loaded:!1,usernames:[],isSubmitting:!1}},methods:{open:function(){this.$refs.modal.show()},close:function(){this.$refs.modal.hide()},autocompleteSearch:function(t){var e=this;return t&&0!=t.length?axios.post("/api/v0/groups/search/invite/friends",{q:t,g:this.group.id,v:"0.2"}).then(function(t){return t.data.filter(function(t){return-1==e.usernames.map(function(t){return t.username}).indexOf(t.username)})}):[]},getSearchResultValue:function(t){return t.username},onSearchSubmit:function(t){this.usernames.push(t),this.$refs.autocomplete.value=""},removeUsername:function(t){event.currentTarget.blur(),this.usernames.splice(t,1)},submitInvites:function(){var t=this;this.isSubmitting=!0,event.currentTarget.blur(),axios.post("/api/v0/groups/search/invite/friends/send",{g:this.group.id,uids:this.usernames.map(function(t){return t.id})}).then(function(e){t.usernames=[],t.isSubmitting=!1,t.close(),swal("Success","Successfully sent invite(s)","success")}).catch(function(e){t.usernames=[],t.isSubmitting=!1,422===e.response.status?swal("Error",e.response.data.error,"error"):swal("Oops!","An error occured, please try again later","error"),t.close()})}}}},68902(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{group:{type:Object},compact:{type:Boolean,default:!1},showStats:{type:Boolean,default:!1},truncateTitleLength:{type:Number,default:19},truncateDescriptionLength:{type:Number,default:22}},data:function(){return{titleLength:40,descriptionLength:60}},mounted:function(){this.compact&&(this.titleLength=19,this.descriptionLength=22),19!=this.truncateTitleLength&&(this.titleLength=this.truncateTitleLength),22!=this.truncateDescriptionLength&&(this.descriptionLength=this.truncateDescriptionLength)},methods:{prettyCount:function(t){return App.util.format.count(t)},truncate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:140;return t.length<=e?t:t.substr(0,e)+" ..."}}}},43599(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(7764),o=s(69513);const i={props:{groupId:{type:String},status:{type:Object},profile:{type:Object}},components:{"read-more":a.default,"comment-drawer":o.default},data:function(){return{loaded:!1}},mounted:function(){this.init()},methods:{init:function(){this.loaded=!0,this.$refs.modal.show()},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)}}}},89905(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(2e4);s(73718);const o={props:{group:{type:Object},profile:{type:Object}},components:{autocomplete:a.default},data:function(){return{query:"",recent:[],loaded:!1}},methods:{open:function(){this.fetchRecent(),this.$refs.modal.show()},close:function(){this.$refs.modal.hide()},fetchRecent:function(){var t=this;axios.get("/api/v0/groups/search/getrec",{params:{g:this.group.id}}).then(function(e){t.recent=e.data})},autocompleteSearch:function(t){return!t||t.length<2?[]:axios.post("/api/v0/groups/search/lac",{q:t,g:this.group.id,v:"0.2"}).then(function(t){return t.data})},getSearchResultValue:function(t){return t.username},onSearchSubmit:function(t){if(t.length<1)return[];axios.post("/api/v0/groups/search/addrec",{g:this.group.id,q:{value:t.username,action:t.url}}).then(function(e){location.href=t.url})},viewMyActivity:function(){location.href="/groups/".concat(this.group.id,"/user/").concat(this.profile.id,"?rf=group_search")},viewGroupSearch:function(){location.href="/groups/home?ct=gsearch&rf=group_search&rfid=".concat(this.group.id)},addToRecentSearches:function(){}}}},6234(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>g});var a=s(69513),o=s(84125),i=s(78841),r=s(21466),n=s(98051),l=s(37128),c=s(61518),d=s(79427),u=s(42013),p=s(93934),f=s(40798),m=s(76746);function h(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?v(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);s@'+o+"";case"from":return a+' from '+o+"";case"custom":return a+' '+s+" "+o+""}},lightbox:function(t){window.location.href=t.media_attachments[0].url},likeStatus:function(t,e){e.currentTarget.blur();var s=t.favourites_count,a=t.favourited?"unlike":"like";axios.post("/api/v0/groups/status/"+a,{sid:t.id,gid:this.groupId}).then(function(o){t.favourited=a,t.favourites_count=a?s+1:s-1,t.favourited=a,t.favourited&&setTimeout(function(){e.target.classList.add("animate__animated","animate__bounce")},100)}).catch(function(t){422==t.response.status?swal("Error",t.response.data.error,"error"):swal("Error","Something went wrong, please try again later.","error")}),window.navigator.vibrate(200)},commentFocus:function(t){t.target.blur(),this.showCommentDrawer=!this.showCommentDrawer},commentSubmit:function(t,e){var s=this;this.replySending=!0;var a=t.id,o=this.replyText,i=this.config.uploader.max_caption_length;if(o.length>i)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+i+" characters or less.","error");axios.post("/i/comment",{item:a,comment:o,sensitive:this.replyNsfw}).then(function(t){s.replyText="",s.replies.push(t.data.entity),s.$refs.replyModal.hide()}),this.replySending=!1},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},ctxMenu:function(){this.$refs.contextMenu.open()},timeAgo:function(t){return App.util.format.timeAgo(t)},statusDeleted:function(t){this.$emit("status-delete")},showPostModal:function(){this.showModal=!0,this.$refs.modal.init()},showLikesModal:function(t){t&&t.hasOwnProperty("currentTarget")&&t.currentTarget().blur(),this.$emit("likes-modal")},infiniteLikesHandler:function(t){var e=this;axios.get("/api/v0/groups/"+this.groupId+"/likes/"+this.status.id,{params:{page:this.likesPage}}).then(function(s){var a,o=s.data;o.data.length>0?((a=e.likes).push.apply(a,h(o.data)),e.likesPage++,t.loaded()):t.complete()})}}}},96895(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={}},70714(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{group:{type:Object}}}},9125(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{group:{type:Object},isAdmin:{type:Boolean,default:!1},isMember:{type:Boolean,default:!1}},data:function(){return{requestingMembership:!1}},methods:{joinGroup:function(){var t=this;this.requestingMembership=!0,axios.post("/api/v0/groups/"+this.group.id+"/join").then(function(e){t.requestingMembership=!1,t.$emit("refresh")}).catch(function(e){var s=e.response;422==s.status&&(t.requestingMembership=!1,swal("Oops!",s.data.error,"error"))})},cancelJoinRequest:function(){var t=this;window.confirm("Are you sure you want to cancel your request to join this group?")&&axios.post("/api/v0/groups/"+this.group.id+"/cjr").then(function(e){t.requestingMembership=!1,t.$emit("refresh")}).catch(function(t){var e=t.response;422==e.status&&swal("Oops!",e.data.error,"error")})},leaveGroup:function(){var t=this;window.confirm("Are you sure you want to leave this group? Any content you shared will remain accessible. You won't be able to rejoin for 24 hours.")&&axios.post("/api/v0/groups/"+this.group.id+"/leave").then(function(e){t.$emit("refresh")})}}}},11493(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(94559);const o={props:{group:{type:Object},isAdmin:{type:Boolean,default:!1},isMember:{type:Boolean,default:!1},atabs:{type:Object},profile:{type:Object}},components:{"search-modal":a.default},methods:{showSearchModal:function(){event.currentTarget.blur(),this.$refs.searchModal.open()}}}},79270(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{status:{type:Object},cursorLimit:{type:Number,default:200}},data:function(){return{fullContent:null,content:null,cursor:200}},mounted:function(){this.cursor=this.cursorLimit,this.fullContent=this.status.content,this.content=this.status.content.substr(0,this.cursor)},methods:{readMore:function(){this.cursor=this.cursor+200,this.content=this.fullContent.substr(0,this.cursor)}}}},93350(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(75386);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);so});var a=s(95002);const o={props:{profile:{type:Object}},data:function(){return{feed:[],ids:[],page:1,tab:"feed",initalLoad:!1,emptyFeed:!0}},components:{"group-status":a.default},mounted:function(){this.fetchFeed()},methods:{fetchFeed:function(){var t=this;axios.get("/api/v0/groups/self/feed",{params:{initial:!0}}).then(function(e){t.page++,t.feed=e.data,t.emptyFeed=0===t.feed.length,t.initalLoad=!0})},infiniteFeed:function(t){var e=this;this.feed.length<2||this.page>5?t.complete():axios.get("/api/v0/groups/self/feed",{params:{page:this.page}}).then(function(s){if(s.data.length){var a=s.data,o=e;a.forEach(function(t){-1==o.ids.indexOf(t.id)&&(o.ids.push(t.id),o.feed.push(t))}),t.loaded(),e.page++}else t.complete()})},switchTab:function(t){this.tab=t},gotoDiscover:function(){this.$emit("switchtab","discover")}}}},7755(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(75386);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);sa});const a={}},93543(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={data:function(){return{notifications:[],initialLoad:!1,loading:!0,page:1}},mounted:function(){this.fetchNotifications()},methods:{fetchNotifications:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(t){window._sharedData.curUser=t.data,window.App.util.navatar()}),axios.get("/api/v0/groups/self/notifications").then(function(e){var s=e.data.filter(function(t){return!("share"==t.type&&!t.status)&&(!("comment"==t.type&&!t.status)&&(!("mention"==t.type&&!t.status)&&(!("favourite"==t.type&&!t.status)&&!("follow"==t.type&&!t.account))))});t.notifications=s})},truncate:function(t){return t.length<=15?t:t.slice(0,15)+"..."},timeAgo:function(t){var e=Date.parse(t),s=Math.floor((new Date-e)/1e3),a=Math.floor(s/31536e3);return a>=1?a+"y":(a=Math.floor(s/604800))>=1?a+"w":(a=Math.floor(s/86400))>=1?a+"d":(a=Math.floor(s/3600))>=1?a+"h":(a=Math.floor(s/60))>=1?a+"m":Math.floor(s)+"s"},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},followProfile:function(t){var e=this,s=t.account.id;axios.post("/i/follow",{item:s}).then(function(t){e.notifications.map(function(t){t.account.id===s&&(t.relationship.following=!0)})}).catch(function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")})},viewContext:function(t){switch(t.type){case"follow":return t.account.url;case"mention":case"like":case"favourite":case"comment":return t.status.url;case"tagged":return t.tagged.post_url;case"direct":return"/account/direct/t/"+t.account.id}return"/"},getProfileUrl:function(t){return 1==t.local?t.url:"/i/web/profile/_/"+t.id},getPostUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id}}}},60217(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={data:function(){return{q:void 0}}}},33664(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{group:{type:Object},status:{type:Object},profile:{type:Object},showGroupHeader:{type:Boolean,default:!1},showGroupChevron:{type:Boolean,default:!1}},data:function(){return{reportTypes:[{key:"spam",title:"It's spam"},{key:"sensitive",title:"Nudity or sexual activity"},{key:"abusive",title:"Bullying or harassment"},{key:"underage",title:"I think this account is underage"},{key:"violence",title:"Violence or dangerous organizations"},{key:"copyright",title:"Copyright infringement"},{key:"impersonation",title:"Impersonation"},{key:"scam",title:"Scam or fraud"},{key:"terrorism",title:"Terrorism or terrorism-related content"}]}},methods:{formatCount:function(t){return App.util.format.count(t)},statusUrl:function(){return"/groups/"+this.status.gid+"/p/"+this.status.id},profileUrl:function(){return"/groups/"+this.status.gid+"/user/"+this.status.account.id},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)},statusCardUsernameFormat:function(t){if(1==t.account.local)return t.account.username;var e=window.App.config.username.remote.format,s=window.App.config.username.remote.custom,a=t.account.username,o=document.createElement("a");switch(o.href=t.account.url,o=o.hostname,e){case"@":default:return a+'@'+o+"";case"from":return a+' from '+o+"";case"custom":return a+' '+s+" "+o+""}},sendReport:function(t){var e=this,s=document.createElement("div");s.classList.add("list-group"),this.reportTypes.forEach(function(t){var e=document.createElement("button");e.classList.add("list-group-item","small"),e.innerHTML=t.title,e.onclick=function(){document.dispatchEvent(new CustomEvent("reportOption",{detail:{key:t.key,title:t.title}}))},s.appendChild(e)});var a=document.createElement("div");a.appendChild(s),swal({title:"Report Content",icon:"warning",content:a,buttons:!1}),document.addEventListener("reportOption",function(t){console.log(t.detail),e.showConfirmation(t.detail)},{once:!0})},showConfirmation:function(t){var e=this;console.log(t),swal({title:"Confirmation",text:"You selected ".concat(t.title,". Do you want to proceed?"),icon:"info",buttons:!0}).then(function(s){s?axios.post("/api/v0/groups/".concat(e.status.gid,"/report/create"),{type:t.key,id:e.status.id}).then(function(t){swal("Confirmed!","Your report has been submitted.","success")}):swal("Cancelled","Your report was not submitted.","error")})},onDelete:function(){var t=this;swal({title:"Delete Post Confirmation",text:"Are you sure you want to delete this post?",icon:"warning",dangerMode:!0,buttons:!0}).then(function(e){e&&axios.post("/api/v0/groups/status/delete",{id:t.status.id,gid:t.status.gid}).then(function(e){t.$emit("delete",t.status)}).catch(function(t){console.log(t)})})}}}},75e3(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(69513);const o={props:{showCommentDrawer:{type:Boolean},permalinkMode:{type:Boolean},childContext:{type:Object},status:{type:Object},profile:{type:Object},groupId:{type:String}},components:{"comment-drawer":a.default}}},33422(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["status"]}},36639(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(18634);const o={props:["status"],data:function(){return{sensitive:this.status.sensitive,cursor:0}},created:function(){},beforeDestroy:function(){},methods:{toggleContentWarning:function(t){this.$emit("togglecw")},toggleLightbox:function(t){(0,a.default)({el:t.target,gallery:"#carousel-"+this.status.id,position:this.$refs.carousel.currentPage})},altText:function(t){var e=t.description;return e||"Photo was not tagged with any alt text."},keypressNavigation:function(t){var e=this.$refs.carousel;if("37"==t.keyCode){t.preventDefault();var s="backward";e.advancePage(s),e.$emit("navigation-click",s)}if("39"==t.keyCode){t.preventDefault();var a="forward";e.advancePage(a),e.$emit("navigation-click",a)}}}}},9266(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(18634);const o={props:{status:{type:Object},isFiltered:{type:Boolean,default:!1}},data:function(){return{sensitive:this.status.sensitive}},methods:{altText:function(t){var e=t.media_attachments[0].description;return e||"Photo was not tagged with any alt text."},toggleContentWarning:function(t){this.$emit("togglecw")},toggleLightbox:function(t){(0,a.default)({el:t.target})},width:function(){if(this.status.media_attachments[0].meta&&this.status.media_attachments[0].meta.original&&this.status.media_attachments[0].meta.original.width)return this.status.media_attachments[0].meta.original.width},height:function(){if(this.status.media_attachments[0].meta&&this.status.media_attachments[0].meta.original&&this.status.media_attachments[0].meta.original.height)return this.status.media_attachments[0].meta.original.height}}}},35986(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["status"]}},25189(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["status"],methods:{altText:function(t){var e=t.media_attachments[0].description;return e||"Video was not tagged with any alt text."},playOrPause:function(t){var e=t.target;1==e.getAttribute("playing")?(e.removeAttribute("playing"),e.pause()):(e.setAttribute("playing",1),e.play())},toggleContentWarning:function(t){this.$emit("togglecw")},poster:function(){var t=this.status.media_attachments[0].preview_url;if(!t.endsWith("no-preview.jpg")&&!t.endsWith("no-preview.png"))return t}}}},70384(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(74692);const o={props:["status","profile"],data:function(){return{ctxMenuStatus:!1,ctxMenuRelationship:!1,ctxEmbedPayload:!1,copiedEmbed:!1,replySending:!1,ctxEmbedShowCaption:!0,ctxEmbedShowLikes:!1,ctxEmbedCompactMode:!1,confirmModalTitle:"Are you sure?",confirmModalIdentifer:null,confirmModalType:!1}},watch:{ctxEmbedShowCaption:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)}},methods:{open:function(){this.ctxMenu()},ctxMenu:function(){var t=this;this.ctxMenuStatus=this.status,this.ctxEmbedPayload=window.App.util.embed.post(this.status.url),this.status.account.id==this.profile.id?(this.ctxMenuRelationship=!1,this.$refs.ctxModal.show()):axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.status.account.id}}).then(function(e){t.ctxMenuRelationship=e.data[0],t.$refs.ctxModal.show()})},closeCtxMenu:function(){this.copiedEmbed=!1,this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.closeModals()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeModals()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;window.location.href=this.statusUrl(t),this.closeCtxMenu()},ctxMenuGoToProfile:function(){var t=this.ctxMenuStatus;window.location.href=this.profileUrl(t),this.closeCtxMenu()},ctxMenuReportPost:function(){this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},ctxMenuEmbed:function(){this.closeModals(),this.$refs.ctxEmbedModal.show()},ctxMenuShare:function(){this.$refs.ctxModal.hide(),this.$refs.ctxShareModal.show()},closeCtxShareMenu:function(){this.$refs.ctxShareModal.hide(),this.$refs.ctxModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.ctxEmbedShowCaption=!0,this.ctxEmbedShowLikes=!1,this.ctxEmbedCompactMode=!1,this.$refs.ctxEmbedModal.hide()},ctxModMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModOtherMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.show()},ctxModMenu:function(){this.$refs.ctxModal.hide()},ctxModMenuClose:function(){this.closeModals()},ctxModOtherMenuClose:function(){this.closeModals(),this.$refs.ctxModModal.show()},formatCount:function(t){return App.util.format.count(t)},openCtxReportOtherMenu:function(){var t=this.ctxMenuStatus;this.closeCtxMenu(),this.ctxMenuStatus=t,this.$refs.ctxReportOther.show()},ctxReportMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxModal.show()},ctxReportOtherMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},sendReport:function(t){var e=this,s=this.ctxMenuStatus.id;swal({title:"Confirm Report",text:"Are you sure you want to report this post?",icon:"warning",buttons:!0,dangerMode:!0}).then(function(a){a?axios.post("/i/report/",{report:t,type:"post",id:s}).then(function(t){e.closeCtxMenu(),swal("Report Sent!","We have successfully received your report.","success")}).catch(function(t){swal("Oops!","There was an issue reporting this post.","error")}):e.closeCtxMenu()})},closeModals:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.hide(),this.$refs.ctxShareModal.hide(),this.$refs.ctxEmbedModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.$refs.ctxConfirm.hide()},openCtxStatusModal:function(){this.closeModals(),this.$refs.ctxStatusModal.show()},openConfirmModal:function(){this.closeModals(),this.$refs.ctxConfirm.show()},closeConfirmModal:function(){this.closeModals(),this.confirmModalTitle="Are you sure?",this.confirmModalType=!1,this.confirmModalIdentifer=null},confirmModalConfirm:function(){var t=this;if("post.delete"===this.confirmModalType)axios.post("/i/delete",{type:"status",item:this.confirmModalIdentifer}).then(function(e){t.feed=t.feed.filter(function(e){return e.id!=t.confirmModalIdentifer}),t.closeConfirmModal()}).catch(function(e){t.closeConfirmModal(),swal("Error","Something went wrong. Please try again later.","error")});this.closeConfirmModal()},confirmModalCancel:function(){this.closeConfirmModal()},moderatePost:function(t,e,s){var a=this,o=(t.account.username,t.id,""),i=this;switch(e){case"addcw":o="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!0,i.closeModals(),i.ctxModMenuClose()}).catch(function(t){swal("Error","Something went wrong, please try again later.","error"),i.closeModals(),i.ctxModMenuClose()})});break;case"remcw":o="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!1,i.closeModals(),i.ctxModMenuClose()}).catch(function(t){swal("Error","Something went wrong, please try again later.","error"),i.closeModals(),i.ctxModMenuClose()})});break;case"unlist":o="Are you sure you want to unlist this post?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(e){a.feed=a.feed.filter(function(e){return e.id!=t.id}),swal("Success","Successfully unlisted post","success"),i.closeModals(),i.ctxModMenuClose()}).catch(function(t){i.closeModals(),i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")})});break;case"spammer":o="Are you sure you want to mark this user as a spammer? All existing and future posts will be unlisted on timelines and a content warning will be applied.",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(t){swal("Success","Successfully marked account as spammer","success"),i.closeModals(),i.ctxModMenuClose()}).catch(function(t){i.closeModals(),i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")})})}},shareStatus:function(t,e){0!=a("body").hasClass("loggedIn")&&(this.closeModals(),axios.post("/i/share",{item:t.id}).then(function(e){t.reblogs_count=e.data.count,t.reblogged=!t.reblogged,t.reblogged?swal("Success","You shared this post","success"):swal("Success","You unshared this post","success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")}))},statusUrl:function(t){return 1==t.account.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.account.local?t.account.url:"/i/web/profile/_/"+t.account.id},deletePost:function(t){var e=this;0!=a("body").hasClass("loggedIn")&&0!=this.ownerOrAdmin(t)&&0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/i/delete",{type:"status",item:t.id}).then(function(s){e.$emit("status-delete",t.id),e.closeModals()}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},archivePost:function(t){var e=this;0!=window.confirm("Are you sure you want to archive this post?")&&axios.post("/api/pixelfed/v2/status/"+t.id+"/archive").then(function(s){e.$emit("status-delete",t.id),e.closeModals()})},unarchivePost:function(t){var e=this;0!=window.confirm("Are you sure you want to unarchive this post?")&&axios.post("/api/pixelfed/v2/status/"+t.id+"/unarchive").then(function(t){e.closeModals()})}}}},78615(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(53744),o=s(74692);const i={props:{reactions:{type:Object},status:{type:Object},profile:{type:Object},showBorder:{type:Boolean,default:!0},showBorderTop:{type:Boolean,default:!1},fetchState:{type:Boolean,default:!1}},components:{"context-menu":a.default},data:function(){return{authenticated:!1,tab:"vote",selectedIndex:null,refreshTimeout:void 0,activeRefreshTimeout:!1,refreshingResults:!1}},mounted:function(){var t=this;this.fetchState?axios.get("/api/v1/polls/"+this.status.poll.id).then(function(e){t.status.poll=e.data,e.data.voted&&(t.selectedIndex=e.data.own_votes[0],t.tab="voted"),t.status.poll.expired=new Date(t.status.poll.expires_at)r});var a=s(53744),o=s(78841),i=s(74692);const r={props:{status:{type:Object},recommended:{type:Boolean,default:!1},reactionBar:{type:Boolean,default:!0},hasTopBorder:{type:Boolean,default:!1},size:{type:String,validator:function(t){return["regular","small"].includes(t)},default:"regular"}},components:{"context-menu":a.default,"poll-card":o.default},data:function(){return{config:window.App.config,profile:{},loading:!0,replies:[],replyId:null,lightboxMedia:!1,showSuggestions:!0,showReadMore:!0,replyStatus:{},replyText:"",replyNsfw:!1,emoji:window.App.util.emoji,content:void 0}},mounted:function(){var t=this;this.profile=window._sharedData.curUser,this.content=this.status.content,this.status.emojis.forEach(function(e){var s='
');t.content=t.content.replace(":".concat(e.shortcode,":"),s)})},methods:{formatCount:function(t){return App.util.format.count(t)},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)},statusCardUsernameFormat:function(t){if(1==t.account.local)return t.account.username;var e=window.App.config.username.remote.format,s=window.App.config.username.remote.custom,a=t.account.username,o=document.createElement("a");switch(o.href=t.account.url,o=o.hostname,e){case"@":default:return a+'@'+o+"";case"from":return a+' from '+o+"";case"custom":return a+' '+s+" "+o+""}},lightbox:function(t){window.location.href=t.media_attachments[0].url},likeStatus:function(t,e){if(0!=i("body").hasClass("loggedIn")){var s=t.favourites_count;t.favourited=!t.favourited,axios.post("/i/like",{item:t.id}).then(function(e){t.favourites_count=e.data.count,t.favourited=!!t.favourited}).catch(function(e){t.favourited=!!t.favourited,t.favourites_count=s,swal("Error","Something went wrong, please try again later.","error")}),window.navigator.vibrate(200),t.favourited&&setTimeout(function(){e.target.classList.add("animate__animated","animate__bounce")},100)}},commentFocus:function(t,e){this.$emit("comment-focus",t)},commentSubmit:function(t,e){var s=this;this.replySending=!0;var a=t.id,o=this.replyText,i=this.config.uploader.max_caption_length;if(o.length>i)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+i+" characters or less.","error");axios.post("/i/comment",{item:a,comment:o,sensitive:this.replyNsfw}).then(function(t){s.replyText="",s.replies.push(t.data.entity),s.$refs.replyModal.hide()}),this.replySending=!1},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},ctxMenu:function(){this.$refs.contextMenu.open()},timeAgo:function(t){return App.util.format.timeAgo(t)},statusDeleted:function(t){this.$emit("status-delete",t)}}}},93409(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-component"},["home"===t.tab?e("div",[e("groups-home")],1):t._e(),t._v(" "),"createGroup"===t.tab?e("div",[e("create-group")],1):t._e(),t._v(" "),"show"===t.tab?e("div",[e("group-feed",{attrs:{"group-id":t.groupId,path:t.path}})],1):t._e()])},o=[]},92192(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"create-group-component col-12 col-md-9",staticStyle:{height:"100vh - 51px !important",overflow:"hidden"}},[t.hide?t._e():e("div",{staticClass:"row h-100 bg-lighter"},[e("div",{staticClass:"col-12 col-md-8 border-left"},[t._m(0),t._v(" "),e("div",{staticClass:"px-2 mb-5"},[e("div",{staticClass:"mt-4"},[e("text-input",{attrs:{label:"Group Name",value:t.name,hasLimit:!0,maxLimit:t.limit.name.max,placeholder:"Add your group name",helpText:"Alphanumeric characters only, you can change this later.",largeInput:!0},on:{update:function(e){return t.handleUpdate("name",e)}}}),t._v(" "),e("hr"),t._v(" "),e("select-input",{attrs:{label:"Group Type",value:t.membership,categories:t.membershipCategories,placeholder:"Select a type",helpText:"Select the membership type, you can change this later."},on:{update:function(e){return t.handleUpdate("membership",e)}}}),t._v(" "),e("hr"),t._v(" "),e("select-input",{attrs:{label:"Group Category",value:t.category,categories:t.categories,placeholder:"Select a category",helpText:"Choose the most relevant category to improve discovery and visibility"},on:{update:function(e){return t.handleUpdate("category",e)}}}),t._v(" "),e("hr"),t._v(" "),e("text-area-input",{attrs:{label:"Group Description",value:t.description,hasLimit:!0,maxLimit:t.limit.description.max,placeholder:"Describe your groups purpose in a few words",helpText:"Describe your groups purpose in a few words, you can change this later."},on:{update:function(e){return t.handleUpdate("description",e)}}}),t._v(" "),e("hr"),t._v(" "),e("checkbox-input",{attrs:{label:"Adult Content",inputText:"Allow Adult Content",value:t.configuration.adult,helpText:"Groups that allow adult content should enable this or risk suspension or deletion by instance admins. Illegal content is prohibited. You can change this later."}}),t._v(" "),e("hr"),t._v(" "),e("checkbox-input",{attrs:{label:"",inputText:"I agree to the the Community Guidelines and Terms of Use and will administrate this group according to the rules set by this server. I understand that failure to abide by these terms may lead to the suspension of this group, and my account.",value:t.hasConfirmed,strongText:!1},on:{update:function(e){return t.handleUpdate("hasConfirmed",e)}}}),t._v(" "),e("button",{staticClass:"btn btn-primary btn-block font-weight-bold rounded-pill mt-4",attrs:{disabled:!t.hasConfirmed},on:{click:t.createGroup}},[t._v("\n Create Group\n ")])],1)])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4 bg-white"})])])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg-dark p-5 mx-n3"},[e("p",{staticClass:"h1 font-weight-bold text-light mb-2"},[t._v("Create Group")]),t._v(" "),e("p",{staticClass:"text-lighter mb-0"},[t._v("Create a new federated Group that is compatible with other Pixelfed and Lemmy servers")])])}]},91057(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-feed-component"},[t.initalLoad?e("div",[e("div",{staticClass:"mb-3 border-bottom"},[e("div",{staticClass:"container-xl"},[e("group-banner",{attrs:{group:t.group}}),t._v(" "),e("group-header-details",{attrs:{group:t.group,isAdmin:t.isAdmin,isMember:t.isMember},on:{refresh:t.handleRefresh}}),t._v(" "),e("group-nav-tabs",{attrs:{group:t.group,isAdmin:t.isAdmin,isMember:t.isMember,atabs:t.atabs}})],1)]),t._v(" "),e("div",{staticClass:"container-xl group-feed-component-body"},[e("div",{staticClass:"row mb-5"},[e("div",{staticClass:"col-12 col-md-7 mt-3"},[t.group.self.is_member?e("div",[t.initalLoad?e("group-compose",{attrs:{profile:t.profile,"group-id":t.groupId},on:{"new-status":t.pushNewStatus}}):t._e(),t._v(" "),0==t.feed.length?e("div",{staticClass:"mt-3"},[t._m(0)]):e("div",{staticClass:"group-timeline"},[e("p",{staticClass:"font-weight-bold mb-1"},[t._v("Recent Posts")]),t._v(" "),t._l(t.feed,function(s,a){return e("group-status",{key:"gs:"+s.id+a,attrs:{prestatus:s,profile:t.profile,"group-id":t.groupId},on:{"comment-focus":function(e){return t.commentFocus(a)},"status-delete":function(e){return t.statusDelete(a)},"likes-modal":function(e){return t.showLikesModal(a)}}})}),t._v(" "),e("b-modal",{ref:"likeBox",attrs:{size:"sm",centered:"","hide-footer":"",title:"Likes","body-class":"list-group-flush p-0"}},[e("div",{staticClass:"list-group py-1",staticStyle:{"max-height":"300px","overflow-y":"auto"}},[t._l(t.likes,function(s,a){return e("div",{key:"modal_likes_"+a,staticClass:"list-group-item border-top-0 border-left-0 border-right-0 py-2",class:{"border-bottom-0":a+1==t.likes.length}},[e("div",{staticClass:"media align-items-center"},[e("a",{attrs:{href:s.url}},[e("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:s.avatar,alt:s.username+"โs avatar",width:"30px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg';"}})]),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[e("a",{staticClass:"font-weight-bold text-dark",attrs:{href:s.url}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(s.username)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),s.local?e("p",{staticClass:"text-muted mb-0 text-truncate",staticStyle:{"font-size":"14px"}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(s.display_name)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t")]):e("p",{staticClass:"text-muted mb-0 text-truncate mr-3",staticStyle:{"font-size":"14px"},attrs:{title:s.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(s.acct.split("@")[0]))]),e("span",{staticClass:"text-lighter"},[t._v("@"+t._s(s.acct.split("@")[1]))])])])])])}),t._v(" "),e("infinite-loading",{attrs:{distance:800,spinner:"spiral"},on:{infinite:t.infiniteLikesHandler}},[e("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),e("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),t.feed.length>2?e("div",{attrs:{distance:800}},[e("infinite-loading",{on:{infinite:t.infiniteFeed}},[e("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),e("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()],2)],1):e("div",[t._m(1)])]),t._v(" "),e("div",{staticClass:"col-12 col-md-5"},[e("group-info-card",{attrs:{group:t.group}})],1)]),t._v(" "),e("search-modal",{ref:"searchModal",attrs:{group:t.group,profile:t.profile}}),t._v(" "),e("invite-modal",{ref:"inviteModal",attrs:{group:t.group,profile:t.profile}})],1)]):e("div",[e("p",{staticClass:"text-center mt-5 pt-5 font-weight-bold"},[t._v("Loading...")])])])},o=[function(){var t=this._self._c;return t("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center",staticStyle:{height:"200px"}},[t("p",{staticClass:"font-weight-bold mb-0"},[this._v("No posts yet!")])])},function(){var t=this._self._c;return t("div",{staticClass:"card card-body mt-3 shadow-none border d-flex align-items-center justify-content-center",staticStyle:{height:"100px"}},[t("p",{staticClass:"lead mb-0"},[this._v("Join to participate in this group.")])])}]},62959(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-invite-component"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-center mt-5"},[e("div",{staticClass:"col-12 col-md-7"},[e("div",{staticClass:"card shadow-none border",staticStyle:{"min-height":"300px"}},[e("div",{staticClass:"card-body d-flex justify-content-center align-items-center"},[e("transition-group",{attrs:{name:"fade"}},["initial"===t.tab?e("div",{key:"initial"},[e("p",{staticClass:"text-center mb-1"},[e("b-spinner",{attrs:{variant:"lighter"}})],1),t._v(" "),e("p",{staticClass:"text-center small text-muted mb-0"},[t._v(t._s(t.loadingStatus))])]):"loading"===t.tab?e("div",{key:"loading"},[e("p",{staticClass:"text-center mb-1"},[e("b-spinner",{attrs:{variant:"lighter"}})],1)]):"login"===t.tab?e("div",{key:"login"},[e("p",{staticClass:"text-center mb-0"},[t._v("Please "),e("a",{attrs:{href:"/login"}},[t._v("login")]),t._v(" to continue")])]):"form"===t.tab?e("div",{key:"form"},[e("div",{staticClass:"d-flex justify-content-center align-items-center flex-column"},[e("p",{staticClass:"text-center h4 font-weight-bold"},[e("a",{attrs:{href:"#"}},[t._v("@dansup")]),t._v(" invited you to join")]),t._v(" "),e("div",{staticClass:"card my-3 shadow-none border",staticStyle:{width:"300px"}},[t.group.metadata&&t.group.metadata.hasOwnProperty("header")?e("img",{staticClass:"card-img-top",staticStyle:{width:"100%",height:"100px","object-fit":"cover"},attrs:{src:t.group.metadata.header.url}}):e("div",{staticClass:"card-img-top",staticStyle:{width:"100px",height:"100px",padding:"5px"}},[e("div",{staticClass:"bg-primary d-flex align-items-center justify-content-center",staticStyle:{width:"100%",height:"100%"}},[e("i",{staticClass:"fal fa-users text-white fa-lg"})])]),t._v(" "),e("div",{staticClass:"card-body"},[e("p",{staticClass:"h5 font-weight-bold mb-1 text-dark"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.group.name||"Untitled Group")+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.showMore?e("p",{staticClass:"text-muted small mb-1"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.group.description)+"\n\t\t\t\t\t\t\t\t\t\t\t")]):t._e()]),t._v(" "),e("p",{staticClass:"mb-1"},[e("span",{staticClass:"text-muted mr-2"},[e("i",{staticClass:"far fa-users fa-sm text-lighter mr-1"}),t._v(" "),e("span",{staticClass:"small font-weight-bold"},[t._v(t._s(t.prettyCount(t.group.member_count))+" Members")])]),t._v(" "),t.group.local?t._e():e("span",{staticClass:"remote-label ml-2"},[e("i",{staticClass:"fal fa-globe"}),t._v(" Remote\n\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.showMore?e("div",[e("p",{staticClass:"text-muted small mb-1"},[e("i",{staticClass:"far fa-tag fa-sm text-lighter mr-2"}),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("Category: "+t._s(t.group.category.name))])]),t._v(" "),e("p",{staticClass:"text-muted small mb-1"},[e("i",{staticClass:"far fa-clock fa-sm text-lighter mr-2"}),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("Created "+t._s(t.timeago(t.group.created_at))+" ago")])])]):t._e()])],1)])]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("button",{staticClass:"btn btn-light border-lighter font-weight-bold btn-sm",on:{click:t.showMoreInfo}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.showMore?"Less":"More")+" info\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("div",[e("button",{staticClass:"btn btn-light font-weight-bold btn-sm",on:{click:t.declineInvite}},[t._v("Decline")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold btn-sm",on:{click:t.acceptInvite}},[t._v("Accept")])])])]):"existingmember"===t.tab?e("div",{key:"existingmember"},[e("p",{staticClass:"text-center mb-0"},[t._v("You already are a member of this group")]),t._v(" "),e("p",{staticClass:"text-center mb-0"},[e("a",{staticClass:"font-weight-bold",attrs:{href:t.group.url}},[t._v("View Group")])])]):"notinvited"===t.tab?e("div",{key:"notinvited"},[e("p",{staticClass:"text-center mb-0"},[t._v("We cannot find an active invitation for your account.")])]):"error"===t.tab?e("div",{key:"error"},[e("p",{staticClass:"text-center mb-0"},[t._v("An unknown error occured. Please try again later.")])]):e("div",{key:"unknown"},[e("p",{staticClass:"text-center mb-0"},[t._v("An unknown error occured. Please try again later.")])])])],1)])])])])])},o=[]},80311(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-profile-component w-100 h-100"},[e("div",{staticClass:"bg-white mb-3 border-bottom"},[e("div",{staticClass:"container-xl header"},[e("div",{staticClass:"header-jumbotron"}),t._v(" "),e("div",{staticClass:"header-profile-card"},[e("img",{staticClass:"avatar",attrs:{src:t.profile.avatar,onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),t._v(" "),e("p",{staticClass:"name"},[t._v("\n\t\t\t\t\t"+t._s(t.profile.display_name)+"\n\t\t\t\t")]),t._v(" "),e("p",{staticClass:"username text-muted"},[t.profile.local?e("span",[t._v("@"+t._s(t.profile.username))]):e("span",[t._v(t._s(t.profile.acct))]),t._v(" "),t.profile.is_admin?e("span",{staticClass:"text-danger ml-1",attrs:{title:"Site administrator","data-toggle":"tooltip","data-placement":"bottom"}},[e("i",{staticClass:"far fa-users-crown"})]):t._e()])]),t._v(" "),e("div",{staticClass:"header-navbar"},[e("div"),t._v(" "),e("div",[t.currentProfile.id===t.profile.id?e("a",{staticClass:"btn btn-light font-weight-bold mr-2",attrs:{href:"/settings/home"}},[e("i",{staticClass:"fas fa-edit mr-1"}),t._v(" Edit Profile\n\t\t\t\t\t")]):t._e(),t._v(" "),t.profile.relationship.following?e("a",{staticClass:"btn btn-primary font-weight-bold mr-2",attrs:{href:t.profile.url}},[e("i",{staticClass:"far fa-comment-alt-dots mr-1"}),t._v(" Message\n\t\t\t\t\t")]):t._e(),t._v(" "),t.profile.relationship.following?e("a",{staticClass:"btn btn-light font-weight-bold mr-2",attrs:{href:t.profile.url}},[e("i",{staticClass:"fas fa-user-check mr-1"}),t._v(" "+t._s(t.profile.relationship.followed_by?"Friends":"Following")+"\n\t\t\t\t\t")]):t._e(),t._v(" "),t.profile.relationship.following?t._e():e("a",{staticClass:"btn btn-light font-weight-bold mr-2",attrs:{href:t.profile.url}},[e("i",{staticClass:"fas fa-user mr-1"}),t._v(" View Main Profile\n\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"dropdown"},[t._m(0),t._v(" "),e("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"amenu"}},[t.currentProfile.id!=t.profile.id?e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"/i/report?type=user&id=".concat(t.profile.id)}},[t._v("Report")]):t._e(),t._v(" "),t.currentProfile.id==t.profile.id?e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"}},[t._v("Leave Group")]):t._e()])])])])])]),t._v(" "),e("div",{staticClass:"w-100 h-100 group-profile-feed"},[e("div",{staticClass:"container-xl"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-5"},[e("div",{staticClass:"card card-body shadow-sm infolet"},[e("h5",{staticClass:"font-weight-bold mb-3"},[t._v("Intro")]),t._v(" "),t.profile.local?t._e():e("div",{staticClass:"media mb-3 align-items-center"},[t._m(1),t._v(" "),e("div",{staticClass:"media-body"},[t._v("\n\t\t\t\t\t\t\t\tRemote member from "),e("strong",[t._v(t._s(t.profile.acct.split("@")[1]))])])]),t._v(" "),e("div",{staticClass:"media align-items-center"},[t._m(2),t._v(" "),e("div",{staticClass:"media-body"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.roleTitle)+" of "),e("strong",[t._v(t._s(t.group.name))]),t._v(" since "+t._s(t.profile.group.joined)+"\n\t\t\t\t\t\t\t")])])]),t._v(" "),t.canIntersect?e("div",{staticClass:"card card-body shadow-sm infolet"},[e("h5",{staticClass:"font-weight-bold mb-3"},[t._v("Things in Common")]),t._v(" "),t.commonIntersects.friends.length?t._m(4):t._e(),t._v(" "),t._m(5),t._v(" "),t.commonIntersects.groups.length?e("div",{staticClass:"media mb-3 align-items-center"},[t._m(6),t._v(" "),e("div",{staticClass:"media-body"},[t._v("\n\t\t\t\t\t\t\t\tAlso member of "),e("a",{staticClass:"text-dark font-weight-bold",attrs:{href:t.commonIntersects.groups[0].url}},[t._v(t._s(t.commonIntersects.groups[0].name))]),t._v(" and "+t._s(t.commonIntersects.groups_count)+" other groups\n\t\t\t\t\t\t\t")])]):t._e(),t._v(" "),t.commonIntersects.topics.length?e("div",{staticClass:"media mb-0 align-items-center"},[t._m(7),t._v(" "),e("div",{staticClass:"media-body"},[t._v("\n\t\t\t\t\t\t\t\tAlso interested in topics containing\n\t\t\t\t\t\t\t\t"),t._l(t.commonIntersects.topics,function(s,a){return e("span",[t.commonIntersects.topics.length-1==a?e("span",[t._v(" and ")]):t._e(),e("a",{staticClass:"font-weight-bold text-dark",attrs:{href:s.url}},[t._v("#"+t._s(s.name))]),t.commonIntersects.topics.length>a+2?e("span",[t._v(", ")]):t._e()])}),t._v(" hashtags\n\t\t\t\t\t\t\t")],2)]):t._e()]):t._e()]),t._v(" "),e("div",{staticClass:"col-12 col-md-7"},[t._m(8),t._v(" "),t.feedEmpty?e("div",{staticClass:"pt-5 text-center"},[e("h5",[t._v("No New Posts")]),t._v(" "),e("p",[t._v(t._s(t.profile.username)+" hasn't posted anything yet in "),e("strong",[t._v(t._s(t.group.name))]),t._v(".")]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.group.url}},[t._v("Go Back")])]):t._e(),t._v(" "),t.feedLoaded?e("div",{staticClass:"mt-2"},[t._l(t.feed,function(s,a){return e("group-status",{key:"gps:"+s.id,attrs:{permalinkMode:!0,showGroupChevron:!0,group:t.group,prestatus:s,profile:t.profile,"group-id":t.group.id}})}),t._v(" "),t.feed.length>=1?e("div",{attrs:{distance:800}},[e("infinite-loading",{on:{infinite:t.infiniteFeed}},[e("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),e("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()],2):t._e()])])])])])},o=[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-light font-weight-bold dropdown-toggle",attrs:{type:"button",id:"amenu","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t("i",{staticClass:"fas fa-ellipsis-h"})])},function(){var t=this._self._c;return t("div",{staticClass:"media-icon"},[t("i",{staticClass:"far fa-globe",attrs:{title:"User is from a remote server","data-toggle":"tooltip","data-placement":"bottom"}})])},function(){var t=this._self._c;return t("div",{staticClass:"media-icon"},[t("i",{staticClass:"fas fa-users",attrs:{title:"User joined group on this date","data-toggle":"tooltip","data-placement":"bottom"}})])},function(){var t=this._self._c;return t("div",{staticClass:"media-icon"},[t("i",{staticClass:"far fa-user-friends"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"media mb-3 align-items-center"},[t._m(3),t._v(" "),e("div",{staticClass:"media-body"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.commonIntersects.friends_count)+" mutual friend"),t.commonIntersects.friends.length>1?e("span",[t._v("s")]):t._e(),t._v(" including\n\t\t\t\t\t\t\t\t"),t._l(t.commonIntersects.friends,function(s,a){return e("span",[e("a",{staticClass:"text-dark font-weight-bold",attrs:{href:s.url}},[t._v(t._s(s.acct))]),t.commonIntersects.friends.length>a+1?e("span",[t._v(", ")]):e("span")])})],2)])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"media mb-3 align-items-center"},[e("div",{staticClass:"media-icon"},[e("i",{staticClass:"fas fa-home"})]),t._v(" "),e("div",{staticClass:"media-body"},[t._v("\n\t\t\t\t\t\t\t\tLives in "),e("strong",[t._v("Canada")])])])},function(){var t=this._self._c;return t("div",{staticClass:"media-icon"},[t("i",{staticClass:"fas fa-users"})])},function(){var t=this._self._c;return t("div",{staticClass:"media-icon"},[t("i",{staticClass:"far fa-thumbs-up fa-lg text-lighter"})])},function(){var t=this._self._c;return t("div",{staticClass:"card card-body shadow-sm"},[t("h5",{staticClass:"font-weight-bold mb-0"},[this._v("Group Posts")])])}]},54299(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-settings-component"},[t.initalLoad?e("div",[e("div",{staticClass:"bg-white mb-3 border-bottom"},[e("div",{staticClass:"container"},[e("div",{staticClass:"col-12 group-settings-component-header"},[e("div",[e("h1",{staticClass:"font-weight-bold mb-4"},[t._v("Group Settings")]),t._v(" "),e("p",{staticClass:"text-muted mb-0"},[t._m(0),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("\n\t\t\t\t\t\t\t\tยท\n\t\t\t\t\t\t\t")]),t._v(" "),e("span",[t._v(t._s(1==t.group.member_count?t.group.member_count+" Member":t.group.member_count+" Members"))]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("\n\t\t\t\t\t\t\t\tยท\n\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"text-lighter"},[t._v("ID:"+t._s(t.group.id))])])]),t._v(" "),e("div",[t.isAdmin?e("a",{staticClass:"mr-2 btn btn-outline-secondary rounded-pill cta-btn font-weight-bold",attrs:{href:t.group.url}},[e("i",{staticClass:"fas fa-chevron-left mr-1"}),t._v(" Back to Group\n\t\t\t\t\t\t")]):t._e(),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold rounded-pill px-4",attrs:{disabled:t.savingChanges},on:{click:t.submit}},[t._v("\n\t\t\t\t\t\t\tSave Changes\n\t\t\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"col-12"},[e("ul",{staticClass:"nav nav-tabs border-bottom-0 font-weight-bold small"},[e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"home"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab("home")}}},[t._v("\n\t\t\t\t\t\t\t\tGeneral\n\t\t\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"customize"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab("customize")}}},[t._v("\n\t\t\t\t\t\t\t\tCustomize\n\t\t\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"blocked"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab("blocked")}}},[t._v("\n\t\t\t\t\t\t\t\tDomain/User Blocks\n\t\t\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"interactions"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab("interactions")}}},[t._v("\n\t\t\t\t\t\t\t\tInteractions\n\t\t\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"limits"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab("limits")}}},[t._v("\n\t\t\t\t\t\t\t\tLimits\n\t\t\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"advanced"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab("advanced")}}},[t._v("\n\t\t\t\t\t\t\t\tAdvanced\n\t\t\t\t\t\t\t")])])])])])]),t._v(" "),e("div",{staticClass:"container-xl pt-3"},["home"==t.tab?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6 offset-md-3"},[e("div",{},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Name")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{disabled:""},domProps:{value:t.group.name}}),t._v(" "),e("p",{staticClass:"form-text small text-muted"},[t._v("You cannot change a groups name at this time.")])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Category")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.category,expression:"category"}],staticClass:"custom-select",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.category=e.target.multiple?s:s[0]}}},[e("option",{attrs:{value:"",selected:"",disabled:""}},[t._v("Select a category")]),t._v(" "),t._l(t.categories,function(s){return e("option",{domProps:{value:s}},[t._v(t._s(s))])})],2),t._v(" "),e("p",{staticClass:"form-text small text-muted"},[t._v("Choose the most relevant category to improve discovery and visibility")])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Description")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.group.description,expression:"group.description"}],staticClass:"form-control",staticStyle:{resize:"none"},attrs:{rows:"4"},domProps:{value:t.group.description},on:{input:function(e){e.target.composing||t.$set(t.group,"description",e.target.value)}}}),t._v(" "),e("span",{staticClass:"form-text small text-muted font-weight-bold text-right"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.group.description?t.group.description.length:0)+"/500\n\t\t\t\t\t\t\t")]),t._v(" "),e("p",{staticClass:"form-text small text-muted"},[t._v("A plain text description of your group. Be as descriptive as possible to give potential members a better idea of what to expect.")])])])])]):t._e(),t._v(" "),"customize"==t.tab?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6 offset-md-3"},[e("div",{},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Avatar Photo")]),t._v(" "),t.group.metadata&&t.group.metadata.hasOwnProperty("avatar")?e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("img",{staticClass:"rounded-circle border",staticStyle:{"object-fit":"cover"},attrs:{src:t.group.metadata.avatar.url,width:"100",height:"100"}}),t._v(" "),e("p",{staticClass:"mb-0 mt-2 text-lighter"},[e("a",{staticClass:"text-muted font-weight-bold",attrs:{href:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\tPreview\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"mx-1"},[t._v("ยท")]),t._v(" "),e("a",{staticClass:"text-muted font-weight-bold",attrs:{href:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\tUpdate\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"mx-1"},[t._v("ยท")]),t._v(" "),e("a",{staticClass:"text-danger font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.handleDeleteAvatar()}}},[t._v("\n\t\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t\t")])])]):e("div",[e("div",{staticClass:"custom-file"},[e("input",{ref:"avatarInput",staticClass:"custom-file-input",attrs:{type:"file"}}),t._v(" "),e("label",{staticClass:"custom-file-label",attrs:{for:"avatarInput"}},[t._v("Choose file")])]),t._v(" "),e("p",{staticClass:"form-text small text-muted"},[t._v("Must be jpeg or png format, up to 2MB")])])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Header Photo")]),t._v(" "),t.group.metadata&&t.group.metadata.hasOwnProperty("header")?e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("img",{staticClass:"rounded border",staticStyle:{"object-fit":"cover"},attrs:{src:t.group.metadata.header.url,width:"200",height:"100"}}),t._v(" "),e("p",{staticClass:"mb-0 mt-2 text-lighter"},[e("a",{staticClass:"text-muted font-weight-bold",attrs:{href:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\tPreview\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"mx-1"},[t._v("ยท")]),t._v(" "),e("a",{staticClass:"text-muted font-weight-bold",attrs:{href:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\tUpdate\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"mx-1"},[t._v("ยท")]),t._v(" "),e("a",{staticClass:"text-danger font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.handleDeleteHeader()}}},[t._v("\n\t\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t\t")])])]):e("div",[e("div",{staticClass:"custom-file"},[e("input",{ref:"headerInput",staticClass:"custom-file-input",attrs:{type:"file"}}),t._v(" "),e("label",{staticClass:"custom-file-label",attrs:{for:"headerInput"}},[t._v("Choose file")])]),t._v(" "),e("p",{staticClass:"form-text small text-muted"},[t._v("Must be jpeg or png format, up to 10MB")])])])])])]):t._e(),t._v(" "),"interactions"==t.tab?e("div",{staticClass:"row"},[t._m(1),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"list-group"},[t._l(t.interactionLog,function(s,a){return e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"media align-items-center"},[e("img",{staticClass:"rounded-circle border mr-3",attrs:{src:s.profile.avatar,width:"32",height:"32",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(s.profile.username))]),t._v(" "),"group:comment:created"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tcommented on a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.sidToUrl(s.metadata.status_id)}},[t._v("post")])]):"group:joined"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tjoined the group\n\t\t\t\t\t\t\t\t\t")]):"group:like"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tliked a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.sidToUrl(s.metadata.status_id)}},[t._v("post")])]):"group:settings:updated"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tupdated the "),e("a",{staticClass:"font-weight-bold",attrs:{href:""}},[t._v("group settings")])]):"group:status:created"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tcreated a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.sidToUrl(s.metadata.status_id)}},[t._v("post")])]):"group:status:deleted"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tdeleted a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.sidToUrl(s.metadata.status_id)}},[t._v("post")])]):"group:unlike"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tunliked a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.sidToUrl(s.metadata.status_id)}},[t._v("post")])]):"group:admin:block:instance"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tblocked "),e("span",{staticClass:"font-weight-bold text-primary"},[t._v(t._s(s.metadata.domain))])]):"group:admin:block:user"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tblocked "),e("a",{staticClass:"font-weight-bold text-primary",attrs:{href:"/"+s.metadata.username}},[t._v(t._s(s.metadata.username))])]):"group:report:create"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tcreated a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.reportUrl(s.metadata.report_id)}},[t._v("report")]),t._v(" about "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/"+s.metadata.username}},[t._v(t._s(s.metadata.username))]),t._v("'s "),e("a",{staticClass:"font-weight-bold",attrs:{href:s.metadata.url}},[t._v("post")])]):"group:moderation:action"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\thandled a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.reportUrl(s.metadata.report_id)}},[t._v("mod report")]),t._v(" regarding "),e("a",{staticClass:"font-weight-bold",attrs:{href:s.metadata.status_url}},[t._v("this post")])]):"group:member-limits:updated"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tupdated "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.memberInteractionUrl(s.metadata.profile_id)}},[t._v("interaction limits")]),t._v(" for "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/"+s.metadata.username}},[t._v(t._s(s.metadata.username))])]):e("span",[t._v(t._s(s.type))]),t._v(" "),e("div",{staticClass:"float-right text-muted small font-weight-bold"},[t._v(t._s(t.timeago(s.created_at)))])])])])}),t._v(" "),t.interactionLogShowMore?e("div",{staticClass:"list-group-item"},[e("button",{staticClass:"btn btn-light font-weight-bold btn-block",on:{click:t.loadMoreInteractions}},[t._v("Load more")])]):t._e()],2)]),t._v(" "),t._m(2)]):t._e(),t._v(" "),"blocked"==t.tab?e("div",{staticClass:"row"},[t._m(3),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card mb-3"},[e("div",{staticClass:"card-header text-muted font-weight-bold small"},[t._v("Blocked Instances")]),t._v(" "),e("div",{staticClass:"list-group list-group-flush"},[t._l(t.blockedInstances,function(s){return e("div",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[e("div",[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(s)+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-light",on:{click:function(e){return e.preventDefault(),t.undoBlock("instance",s)}}},[e("i",{staticClass:"far fa-trash-alt text-lighter"})])])}),t._v(" "),3==t.blockedInstances.length?e("div",{staticClass:"list-group-item"},[e("p",{staticClass:"mb-0 small font-weight-bold text-lighter text-center"},[t._v("View All")])]):t._e()],2)]),t._v(" "),e("div",{staticClass:"card mb-3"},[e("div",{staticClass:"card-header text-muted font-weight-bold small"},[t._v("Blocked Users")]),t._v(" "),e("div",{staticClass:"list-group list-group-flush"},[t._l(t.blockedUsers,function(s){return e("div",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[e("div",[e("img",{staticClass:"rounded-circle border mr-3",attrs:{src:"/storage/avatars/default.jpg",width:"32",height:"32"}}),t._v(t._s(s)+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-light",on:{click:function(e){return e.preventDefault(),t.undoBlock("user",s)}}},[e("i",{staticClass:"far fa-trash-alt text-lighter"})])])}),t._v(" "),3==t.blockedUsers.length?e("div",{staticClass:"list-group-item"},[e("p",{staticClass:"mb-0 small font-weight-bold text-lighter text-center"},[t._v("View All")])]):t._e()],2)]),t._v(" "),e("div",{staticClass:"card mb-3"},[e("div",{staticClass:"card-header text-muted font-weight-bold small"},[t._v("Moderated Join Requests")]),t._v(" "),e("div",{staticClass:"list-group list-group-flush"},t._l(t.moderatedInstances,function(s){return e("div",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[e("div",[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(s)+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-light",on:{click:function(e){return e.preventDefault(),t.undoBlock("moderate",s)}}},[e("i",{staticClass:"far fa-trash-alt text-lighter"})])])}),0)])]),t._v(" "),e("div",{staticClass:"col-12 col-md-3"},[e("button",{staticClass:"btn btn-light border btn-block font-weight-bold",on:{click:function(e){return e.preventDefault(),t.blockAction("instance")}}},[t._v("Block Instance")]),t._v(" "),e("button",{staticClass:"btn btn-light border btn-block font-weight-bold",on:{click:function(e){return e.preventDefault(),t.blockAction("user")}}},[t._v("Block User")]),t._v(" "),e("button",{staticClass:"btn btn-light border btn-block font-weight-bold",on:{click:function(e){return e.preventDefault(),t.blockAction("moderate")}}},[t._v("Moderate Join Requests")]),t._v(" "),e("hr"),t._v(" "),e("button",{staticClass:"btn btn-light border btn-block font-weight-bold"},[t._v("Import")]),t._v(" "),e("button",{staticClass:"btn btn-light border btn-block font-weight-bold",on:{click:function(e){return e.preventDefault(),t.exportBlocks()}}},[t._v("Export")])])]):t._e(),t._v(" "),"advanced"==t.tab?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6 offset-md-3"},[e("div",{staticClass:"mt-3"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Membership")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.group.membership,expression:"group.membership"}],staticClass:"form-control rounded-pill",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.group,"membership",e.target.multiple?s:s[0])}}},[e("option",{attrs:{value:"all"}},[t._v("Public")]),t._v(" "),e("option",{attrs:{value:"private"}},[t._v("Private")]),t._v(" "),e("option",{attrs:{value:"local"}},[t._v("Local")])]),t._v(" "),e("p",{staticClass:"help-text mt-1"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.membershipDescription[t.group.membership])+"\n\t\t\t\t\t\t\t")])])]),t._v(" "),e("hr"),t._v(" "),"local"!==t.group.membership?e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-12"},[e("div",{staticClass:"mb-1"},[e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.advanced.activitypub,expression:"advanced.activitypub"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.advanced.activitypub)?t._i(t.advanced.activitypub,null)>-1:t.advanced.activitypub},on:{change:function(e){var s=t.advanced.activitypub,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&t.$set(t.advanced,"activitypub",s.concat([null])):i>-1&&t.$set(t.advanced,"activitypub",s.slice(0,i).concat(s.slice(i+1)))}else t.$set(t.advanced,"activitypub",o)}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold text-dark text-capitalize ml-1"},[t._v("Enable ActivityPub")])])]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.advanced.activitypub?t._e():e("div",{staticClass:"alert alert-info mt-2"},[e("div",{staticClass:"media align-items-center"},[e("i",{staticClass:"far fa-exclamation-circle fa-2x mr-3"}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Federation Warning")]),t._v(" "),e("p",{staticClass:"small mb-0",staticStyle:{"font-weight":"600"}},[t._v("Groups that choose to disable federation later will lose remote content and members and cannot re-enable federation for 24 hours. You can change this later")])])])])])],1)]):t._e(),t._v(" "),"local"!==t.group.membership?e("hr"):t._e(),t._v(" "),e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-12"},[e("div",{staticClass:"mb-1"},[e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.advanced.is_nsfw,expression:"advanced.is_nsfw"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.advanced.is_nsfw)?t._i(t.advanced.is_nsfw,null)>-1:t.advanced.is_nsfw},on:{change:function(e){var s=t.advanced.is_nsfw,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&t.$set(t.advanced,"is_nsfw",s.concat([null])):i>-1&&t.$set(t.advanced,"is_nsfw",s.slice(0,i).concat(s.slice(i+1)))}else t.$set(t.advanced,"is_nsfw",o)}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold text-dark text-capitalize ml-1"},[t._v("Allow adult content (18+)")])])]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.advanced.is_nsfw?t._e():e("div",{staticClass:"alert alert-info mt-2"},[e("div",{staticClass:"media align-items-center"},[e("i",{staticClass:"far fa-exclamation-circle fa-2x mr-3"}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Adult Content Warning")]),t._v(" "),e("p",{staticClass:"small mb-0",staticStyle:{"font-weight":"600"}},[t._v("Groups that allow adult content should enable this or risk suspension or deletion by instance admins. Illegal content is prohibited. You can change this later")])])])])])],1)]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-12"},[e("div",{staticClass:"mb-1"},[e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.advanced.discoverable,expression:"advanced.discoverable"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.advanced.discoverable)?t._i(t.advanced.discoverable,null)>-1:t.advanced.discoverable},on:{change:function(e){var s=t.advanced.discoverable,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&t.$set(t.advanced,"discoverable",s.concat([null])):i>-1&&t.$set(t.advanced,"discoverable",s.slice(0,i).concat(s.slice(i+1)))}else t.$set(t.advanced,"discoverable",o)}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold text-dark text-capitalize ml-1"},[t._v("Make group discoverable")])]),t._v(" "),t._m(4)])]),t._v(" "),e("hr")]),t._v(" "),t.group.member_count>=25?e("div",{staticClass:"form-group row"},[t._m(5),t._v(" "),e("hr")]):t._e(),t._v(" "),t.group.member_count>=25?e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-12"},[e("div",{staticClass:"mb-1"},[t._m(6),t._v(" "),e("p",{staticClass:"help-text small text-muted"},[e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tAllow "+t._s("local"==t.group.membership?"local users":"private"==t.group.membership?"members":"anyone")+" to "),e("a",{attrs:{href:"#"}},[t._v("direct message")]),t._v(" group admins. The direct message inbox is separate from your own account.\n\t\t\t\t\t\t\t\t\t")])])])]),t._v(" "),e("hr")]):t._e(),t._v(" "),e("h4",{staticClass:"font-weight-bold pt-3"},[t._v("Danger Zone")]),t._v(" "),e("div",{staticClass:"mb-4 border rounded border-danger"},[e("ul",{staticClass:"list-group mb-0 pb-0"},[t._m(7),t._v(" "),e("li",{staticClass:"list-group-item border-left-0 border-right-0 py-3 d-flex justify-content-between"},[t._m(8),t._v(" "),e("div",[e("button",{staticClass:"btn btn-outline-danger font-weight-bold py-1",on:{click:t.deleteGroup}},[t._v("Delete Group")])])])])])])]):t._e(),t._v(" "),"limits"==t.tab?e("div",{staticClass:"row"},[t._m(9)]):t._e()])]):e("div",[e("p",{staticClass:"text-center mt-5 pt-5 font-weight-bold"},[t._v("Loading...")])])])},o=[function(){var t=this,e=t._self._c;return e("span",[e("i",{staticClass:"fas fa-globe mr-1"}),t._v("\n\t\t\t\t\t\t\t\t"+t._s("all"==t.group.membership?"Public Group":"Private Group")+"\n\t\t\t\t\t\t\t")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-3"},[e("p",{staticClass:"lead"},[t._v("The "),e("strong",[t._v("Interaction Log")]),t._v(" displays all member activities relating to this group.")]),t._v(" "),e("p",{staticClass:"lead"},[t._v("You may see logs from blocked, deleted and remote accounts.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-3"},[e("p",{staticClass:"font-weight-bold small"},[t._v("SEARCH")]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"form-control rounded-pill",attrs:{placeholder:"Search username, type or url"}})]),t._v(" "),e("hr"),t._v(" "),e("p",{staticClass:"font-weight-bold small"},[t._v("ACTIVITIES")]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",checked:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tJoined Group\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",checked:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tLeft Group\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",checked:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tPosts\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",checked:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tComments\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",checked:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tLikes\n\t\t\t\t\t\t")])]),t._v(" "),e("hr"),t._v(" "),e("p",{staticClass:"font-weight-bold small"},[t._v("FILTERS")]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",value:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tLocal members only\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",value:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tRemote members only\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",value:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tBlocked members only\n\t\t\t\t\t\t")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-3"},[e("p",{staticClass:"h5"},[t._v("Blocked Instances & Users")]),t._v(" "),e("p",[t._v("Fine-grained control over who can join and interact with your group")]),t._v(" "),e("p",[t._v("Blocking an instance will revoke membership from users on that instance and prevent other users on that instance from joining")]),t._v(" "),e("p",[t._v("Blocking a user will revoke membership and remove all interactions from that user")]),t._v(" "),e("p",[t._v("Moderating an instance will require all new membership requests from that instance to be approved by a group admin before the specific user can join")])])},function(){var t=this._self._c;return t("p",{staticClass:"help-text small text-muted"},[t("span",[this._v("\n\t\t\t\t\t\t\t\t\t\tBeing discoverable means that your group appears in search results, on the discover page and can be used in group recommendations\n\t\t\t\t\t\t\t\t\t")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-sm-12"},[e("div",{staticClass:"mb-1"},[e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold text-dark text-capitalize ml-1"},[t._v("Enable spam detection")])]),t._v(" "),e("p",{staticClass:"help-text small text-muted"},[e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tDetect and temporarily remove content classified as spam from new members until it can be reviewed by a group admin. "),e("strong",[t._v("We do not recommend enabling this unless you have or expect periodic spam as it may produce false-positives and reduce member experience & retention.")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold text-dark text-capitalize ml-1"},[t._v("Enable admin direct messages")])])},function(){var t=this,e=t._self._c;return e("li",{staticClass:"list-group-item border-left-0 border-right-0 py-3 d-flex justify-content-between disabled"},[e("div",[e("p",{staticClass:"font-weight-bold mb-1"},[t._v("Temporarily Disable Group")]),t._v(" "),e("p",{staticClass:"mb-0 small"},[t._v("Not available")])]),t._v(" "),e("div",[e("a",{staticClass:"btn btn-outline-danger font-weight-bold py-1",attrs:{href:"#"}},[t._v("Disable")])])])},function(){var t=this,e=t._self._c;return e("div",[e("p",{staticClass:"font-weight-bold mb-1"},[t._v("Delete Group")]),t._v(" "),e("p",{staticClass:"mb-0 small"},[t._v("Once you delete your group, there is no going back.")])])},function(){var t=this._self._c;return t("div",{staticClass:"col-12 col-md-6 offset-md-3"},[t("div",{staticClass:"mt-3"})])}]},36826(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"groups-home-component w-100 h-100"},[t.initialLoad?e("div",{staticClass:"row border-bottom m-0 p-0"},[e("div",{staticClass:"col-2 shadow",staticStyle:{height:"100vh",background:"#fff",top:"51px",overflow:"hidden","z-index":"1",position:"sticky"}},[e("div",{staticClass:"p-1"},[t._m(0),t._v(" "),e("div",{staticClass:"mb-3"},[e("autocomplete",{ref:"autocomplete",attrs:{search:t.autocompleteSearch,placeholder:"Search groups by name","aria-label":"Search groups by name","get-result-value":t.getSearchResultValue,debounceTime:700},on:{submit:t.onSearchSubmit},scopedSlots:t._u([{key:"result",fn:function(s){var a=s.result,o=s.props;return[e("li",t._b({staticClass:"autocomplete-result"},"li",o,!1),[e("div",{staticClass:"media align-items-center"},[a.local&&a.metadata&&a.metadata.hasOwnProperty("header")&&a.metadata.header.hasOwnProperty("url")?e("img",{attrs:{src:a.metadata.header.url,width:"32",height:"32"}}):e("div",{staticClass:"icon-placeholder"},[e("i",{staticClass:"fal fa-user-friends"})]),t._v(" "),e("div",{staticClass:"media-body text-truncate mr-3"},[e("p",{staticClass:"result-name mb-n1 font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.truncateName(a.name))+"\n\t\t\t\t\t\t\t\t\t\t\t"),a.verified?e("span",{staticClass:"fa-stack ml-n2",attrs:{title:"Verified Group","data-toggle":"tooltip"}},[e("i",{staticClass:"fas fa-circle fa-stack-1x fa-lg",staticStyle:{color:"#22a7f0cc","font-size":"18px"}}),t._v(" "),e("i",{staticClass:"fas fa-check fa-stack-1x text-white",staticStyle:{"font-size":"10px"}})]):t._e()]),t._v(" "),e("p",{staticClass:"mb-0 text-muted",staticStyle:{"font-size":"10px"}},[a.local?t._e():e("span",{attrs:{title:"Remote Group"}},[e("i",{staticClass:"far fa-globe"})]),t._v(" "),a.local?t._e():e("span",[t._v("ยท")]),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(a.member_count)+" members")])])])])])]}}],null,!1,2331368480)})],1),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"feed"==t.tab},on:{click:function(e){return t.switchTab("feed")}}},[t._m(1),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tYour Feed\n\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"discover"==t.tab},on:{click:function(e){return t.switchTab("discover")}}},[t._m(2),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tDiscover\n\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"mygroups"==t.tab},on:{click:function(e){return t.switchTab("mygroups")}}},[t._m(3),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tMy Groups\n\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"notifications"==t.tab},on:{click:function(e){return t.switchTab("notifications")}}},[t._m(4),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tYour Notifications\n\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"remotesearch"==t.tab},on:{click:function(e){return t.switchTab("remotesearch")}}},[t._m(5),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tFind a remote group\n\t\t\t\t\t")])]),t._v(" "),t.config&&t.config.limits.user.create.new?e("button",{staticClass:"btn btn-primary btn-block rounded-pill font-weight-bold mt-3",attrs:{disabled:"creategroup"==t.tab},on:{click:function(e){return t.switchTab("creategroup")}}},[e("i",{staticClass:"fas fa-plus mr-2"}),t._v(" Create New Group\n\t\t\t\t")]):t._e(),t._v(" "),e("hr"),t._v(" "),t._l(t.groups,function(s){return e("div",{staticClass:"ml-2"},[e("div",{staticClass:"card shadow-sm border text-decoration-none text-dark"},[s.metadata&&s.metadata.hasOwnProperty("header")?e("img",{staticClass:"card-img-top",staticStyle:{width:"100%",height:"auto","object-fit":"cover","max-height":"160px"},attrs:{src:s.metadata.header.url}}):e("div",{staticClass:"bg-primary",staticStyle:{width:"100%",height:"160px"}}),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"lead font-weight-bold d-flex align-items-top",staticStyle:{height:"60px"}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(s.name)+"\n\t\t\t\t\t\t\t\t"),s.verified?e("span",{staticClass:"fa-stack ml-n2 mt-n2"},[e("i",{staticClass:"fas fa-circle fa-stack-1x fa-lg",staticStyle:{color:"#22a7f0cc","font-size":"18px"}}),t._v(" "),e("i",{staticClass:"fas fa-check fa-stack-1x text-white",staticStyle:{"font-size":"10px"}})]):t._e()]),t._v(" "),e("div",{staticClass:"text-muted font-weight-light d-flex justify-content-between"},[e("span",[t._v(t._s(s.member_count)+" Members")]),t._v(" "),e("span",{staticClass:"rounded",staticStyle:{"font-size":"12px",padding:"2px 5px",color:"rgba(75, 119, 190, 1)",background:"rgba(137, 196, 244, 0.2)",border:"1px solid rgba(137, 196, 244, 0.3)","font-weight":"400","text-transform":"capitalize"}},[t._v(t._s(s.self.role))])]),t._v(" "),e("hr"),t._v(" "),e("p",{staticClass:"mb-0"},[e("a",{staticClass:"btn btn-light btn-block border rounded-lg font-weight-bold",attrs:{href:s.url}},[t._v("View Group")])])])])])})],2)]),t._v(" "),e("keep-alive",[e("transition",{attrs:{name:"fade"}},["feed"==t.tab?e("self-feed",{attrs:{profile:t.profile},on:{switchtab:t.switchTab}}):t._e(),t._v(" "),"discover"==t.tab?e("self-discover",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"notifications"==t.tab?e("self-notifications",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"invitations"==t.tab?e("self-invitations",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"remotesearch"==t.tab?e("self-remote-search",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"mygroups"==t.tab?e("self-groups",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"creategroup"==t.tab?e("create-group",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"gsearch"==t.tab?e("div",[e("div",{staticClass:"col-12 px-5"},[e("div",{staticClass:"my-4"},[e("p",{staticClass:"h1 font-weight-bold mb-1"},[t._v("Group Search")]),t._v(" "),e("p",{staticClass:"lead text-muted mb-0"},[t._v("Search and explore groups.")])]),t._v(" "),e("div",{staticClass:"media align-items-center text-lighter"},[e("i",{staticClass:"far fa-chevron-left fa-lg mr-3"}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"lead mb-0"},[t._v("Use the search bar on the side menu")])])])])]):t._e()],1)],1)],1):e("div",{staticClass:"row justify-content-center mt-5"},[e("b-spinner")],1)])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-between align-items-center py-3"},[e("p",{staticClass:"h2 font-weight-bold mb-0"},[t._v("Groups")]),t._v(" "),e("a",{staticClass:"btn btn-light px-2 rounded-circle",attrs:{href:"/settings/home"}},[e("i",{staticClass:"fas fa-cog fa-lg"})])])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"fas fa-list"})])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"fas fa-compass"})])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"fas fa-list"})])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"far fa-bell"})])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"fas fa-search-plus"})])}]},59296(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t,e,s=this,a=s._self._c;return a("div",{staticClass:"comment-drawer-component"},[a("input",{ref:"fileInput",staticClass:"d-none",attrs:{type:"file",accept:"image/jpeg,image/png"},on:{change:s.handleImageUpload}}),s._v(" "),s.hide?a("div"):s.isLoaded?a("div",{staticClass:"border-top"},[a("div",{staticClass:"my-3"},s._l(s.feed,function(t,e){return a("div",{key:"cdf"+e+t.id,staticClass:"media media-status align-items-top"},[s.replyChildId==t.id?a("a",{staticClass:"comment-border-link",attrs:{href:"#comment-1"},on:{click:function(e){return e.preventDefault(),s.replyToChild(t)}}},[a("span",{staticClass:"sr-only"},[s._v("Jump to comment-"+s._s(e))])]):s._e(),s._v(" "),a("a",{attrs:{href:t.account.url}},[a("img",{staticClass:"rounded-circle media-avatar border",attrs:{src:t.account.avatar,width:"32",height:"32",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),s._v(" "),a("div",{staticClass:"media-body"},[t.media_attachments.length?a("div",[a("p",{staticClass:"media-body-comment-username"},[a("a",{attrs:{href:t.account.url}},[s._v("\n\t\t\t\t\t\t\t\t\t"+s._s(t.account.acct)+"\n\t\t\t\t\t\t\t\t")])]),s._v(" "),a("div",{staticClass:"bh-comment",on:{click:function(e){return s.lightbox(t)}}},[a("blur-hash-image",{staticClass:"img-fluid rounded-lg border shadow",attrs:{width:s.blurhashWidth(t),height:s.blurhashHeight(t),punch:1,hash:t.media_attachments[0].blurhash,src:s.getMediaSource(t)}})],1)]):a("div",{staticClass:"media-body-comment"},[a("p",{staticClass:"media-body-comment-username"},[a("a",{attrs:{href:t.account.url}},[s._v("\n\t\t\t\t\t\t\t\t\t"+s._s(t.account.acct)+"\n\t\t\t\t\t\t\t\t")])]),s._v(" "),a("read-more",{attrs:{status:t}})],1),s._v(" "),a("p",{staticClass:"media-body-reactions"},[s.profile?a("a",{staticClass:"font-weight-bold",class:[t.favourited?"text-primary":"text-muted"],attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),s.likeComment(t,e,a)}}},[s._v("\n\t\t\t\t\t\t\t\t\t"+s._s(t.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t\t")]):s._e(),s._v(" "),a("span",{staticClass:"mx-1"},[s._v("ยท")]),s._v(" "),a("a",{staticClass:"text-muted font-weight-bold",attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),s.replyToChild(t,e)}}},[s._v("Reply")]),s._v(" "),s.profile?a("span",{staticClass:"mx-1"},[s._v("ยท")]):s._e(),s._v(" "),s._o(a("a",{staticClass:"font-weight-bold text-muted",attrs:{href:t.url}},[s._v("\n\t\t\t\t\t\t\t\t"+s._s(s.shortTimestamp(t.created_at))+"\n\t\t\t\t\t\t\t")]),0,"cdf"+e+t.id),s._v(" "),s.profile&&t.account.id===s.profile.id?a("span",[a("span",{staticClass:"mx-1"},[s._v("ยท")]),s._v(" "),a("a",{staticClass:"font-weight-bold text-lighter",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.deleteComment(e)}}},[s._v("\n\t\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t\t")])]):s._e()]),s._v(" "),s.replyChildIndex==e&&t.hasOwnProperty("children")&&t.children.hasOwnProperty("feed")&&t.children.feed.length?a("div",s._l(t.children.feed,function(t,e){return a("comment-post",{key:"scp_"+e+"_"+t.id,attrs:{status:t,profile:s.profile,commentBorderArrow:!0}})}),1):s._e(),s._v(" "),s.replyChildIndex==e&&t.hasOwnProperty("children")&&t.children.hasOwnProperty("can_load_more")&&1==t.children.can_load_more?a("a",{staticClass:"text-muted font-weight-bold mt-1 mb-0",staticStyle:{"font-size":"13px"},attrs:{href:"#",disabled:s.loadingChildComments},on:{click:function(a){return a.preventDefault(),s.loadMoreChildComments(t,e)}}},[a("div",{staticClass:"comment-border-arrow"}),s._v(" "),a("i",{staticClass:"far fa-long-arrow-right mr-1"}),s._v("\n\t\t\t\t\t\t\t"+s._s(s.loadingChildComments?"Loading":"Load")+" more comments\n\t\t\t\t\t\t")]):s.replyChildIndex!==e&&t.hasOwnProperty("children")&&t.children.hasOwnProperty("can_load_more")&&1==t.children.can_load_more&&t.reply_count>0&&!s.loadingChildComments?a("a",{staticClass:"text-muted font-weight-bold mt-1 mb-0",staticStyle:{"font-size":"13px"},attrs:{href:"#",disabled:s.loadingChildComments},on:{click:function(a){return a.preventDefault(),s.replyToChild(t,e)}}},[a("i",{staticClass:"far fa-long-arrow-right mr-1"}),s._v("\n\t\t\t\t\t\t\t"+s._s(s.loadingChildComments?"Loading":"Load")+" more comments\n\t\t\t\t\t\t")]):s._e(),s._v(" "),s.replyChildId==t.id?a("div",{staticClass:"mt-3 mb-3 d-flex align-items-top reply-form child-reply-form"},[a("div",{staticClass:"comment-border-arrow"}),s._v(" "),a("img",{staticClass:"rounded-circle mr-2 border",attrs:{src:s.avatar,width:"38",height:"38",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),s._v(" "),s.isUploading?a("div",{staticClass:"w-100"},[a("p",{staticClass:"font-weight-light mb-1"},[s._v("Uploading image ...")]),s._v(" "),a("div",{staticClass:"progress rounded-pill",staticStyle:{height:"10px"}},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:{width:s.uploadProgress+"%"},attrs:{role:"progressbar","aria-valuenow":s.uploadProgress,"aria-valuemin":"0","aria-valuemax":"100"}})])]):a("div",{staticClass:"reply-form-input"},[a("input",{directives:[{name:"model",rawName:"v-model",value:s.childReplyContent,expression:"childReplyContent"}],staticClass:"form-control bg-light border-lighter rounded-pill",attrs:{placeholder:"Write a comment....",disabled:s.postingChildComment},domProps:{value:s.childReplyContent},on:{keyup:function(t){return!t.type.indexOf("key")&&s._k(t.keyCode,"enter",13,t.key,"Enter")?null:s.storeChildComment(e)},input:function(t){t.target.composing||(s.childReplyContent=t.target.value)}}})])]):s._e()])])}),0),s._v(" "),s.canLoadMore?a("button",{staticClass:"btn btn-link btn-sm text-muted mb-2",attrs:{disabled:s.isLoadingMore},on:{click:s.loadMoreComments}},[s.isLoadingMore?a("div",{staticClass:"spinner-border spinner-border-sm text-muted",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[s._v("Loading...")])]):a("span",[s._v("\n\t\t\t\t\tLoad more comments ...\n\t\t\t\t")])]):s._e(),s._v(" "),s.profile&&s.canReply?a("div",{staticClass:"mt-3 mb-n3"},[a("div",{staticClass:"d-flex align-items-top reply-form cdrawer-reply-form"},[a("img",{staticClass:"rounded-circle mr-2 border",attrs:{src:s.avatar,width:"38",height:"38",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),s._v(" "),s.isUploading?a("div",{staticClass:"w-100"},[a("p",{staticClass:"font-weight-light small text-muted mb-1"},[s._v("Uploading image ...")]),s._v(" "),a("div",{staticClass:"progress rounded-pill",staticStyle:{height:"10px"}},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:{width:s.uploadProgress+"%"},attrs:{role:"progressbar","aria-valuenow":s.uploadProgress,"aria-valuemin":"0","aria-valuemax":"100"}})])]):a("div",{staticClass:"w-100"},[a("div",{staticClass:"reply-form-input"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:s.replyContent,expression:"replyContent"}],staticClass:"form-control bg-light border-lighter",attrs:{placeholder:"Write a comment....",rows:s.replyContent&&s.replyContent.length>40?4:1},domProps:{value:s.replyContent},on:{input:function(t){t.target.composing||(s.replyContent=t.target.value)}}}),s._v(" "),a("div",{staticClass:"reply-form-input-actions"},[a("button",{staticClass:"btn btn-link text-muted px-1 mr-2",on:{click:s.uploadImage}},[a("i",{staticClass:"far fa-image fa-lg"})])])]),s._v(" "),a("div",{staticClass:"d-flex justify-content-between reply-form-menu"},[a("div",{staticClass:"char-counter"},[a("span",[s._v(s._s(null!==(t=null===(e=s.replyContent)||void 0===e?void 0:e.length)&&void 0!==t?t:0))]),s._v(" "),a("span",[s._v("/")]),s._v(" "),a("span",[s._v("500")])])])]),s._v(" "),a("button",{staticClass:"btn btn-link btn-sm font-weight-bold align-self-center ml-3 mb-3",on:{click:s.storeComment}},[s._v("Post")])])]):s._e()]):a("div",{staticClass:"border-top d-flex justify-content-center py-3"},[s._m(0)]),s._v(" "),a("b-modal",{ref:"lightboxModal",attrs:{id:"lightbox","hide-header":!0,"hide-footer":!0,centered:"",size:"lg","body-class":"p-0","content-class":"bg-transparent border-0"}},[s.lightboxStatus?a("div",{on:{click:s.hideLightbox}},[a("img",{staticStyle:{width:"100%","max-height":"90vh","object-fit":"contain"},attrs:{src:s.lightboxStatus.url}})]):s._e()])],1)},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e("div",{staticClass:"spinner-border text-lighter",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[t._v("Loading...")])]),t._v(" "),e("p",{staticClass:"text-muted"},[t._v("Loading Comments ...")])])}]},16560(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"comment-post-component"},[e("div",{staticClass:"media media-status align-items-top mt-3"},[t.commentBorderArrow?e("div",{staticClass:"comment-border-arrow"}):t._e(),t._v(" "),e("a",{attrs:{href:t.status.account.url}},[e("img",{staticClass:"rounded-circle media-avatar border",attrs:{src:t.status.account.avatar,width:"32",height:"32",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),t._v(" "),e("div",{staticClass:"media-body"},[t.status.media_attachments.length?e("div",[e("p",{staticClass:"media-body-comment-username"},[e("a",{attrs:{href:t.status.account.url}},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"bh-comment",on:{click:function(e){return t.lightbox(t.status)}}},[e("blur-hash-image",{staticClass:"img-fluid rounded-lg border shadow",attrs:{width:t.blurhashWidth(t.status),height:t.blurhashHeight(t.status),punch:1,hash:t.status.media_attachments[0].blurhash,src:t.getMediaSource(t.status)}})],1)]):e("div",{staticClass:"media-body-comment"},[e("p",{staticClass:"media-body-comment-username"},[e("a",{attrs:{href:t.status.account.url}},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t\t")])]),t._v(" "),e("read-more",{attrs:{status:t.status}})],1),t._v(" "),e("p",{staticClass:"media-body-reactions"},[t.profile?e("a",{staticClass:"font-weight-bold",class:[t.status.favourited?"text-primary":"text-muted"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.likeComment(t.status,t.index,e)}}},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.favourited?"Liked":"Like")+"\n\t\t\t\t\t")]):t._e(),t._v(" "),t.profile?e("span",{staticClass:"mx-1"},[t._v("ยท")]):t._e(),t._v(" "),t._m(0),t._v(" "),t.profile&&t.status.account.id===t.profile.id?e("span",[e("span",{staticClass:"mx-1"},[t._v("ยท")]),t._v(" "),e("a",{staticClass:"font-weight-bold text-lighter",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteComment(t.index)}}},[t._v("\n\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t")])]):t._e()])])])])},o=[function(){var t=this;return(0,t._self._c)("a",{staticClass:"font-weight-bold text-muted",attrs:{href:t.status.url}},[t._v("\n\t\t\t\t\t"+t._s(t.shortTimestamp(t.status.created_at))+"\n\t\t\t\t")])}]},57442(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"context-menu-component modal-stack"},[e("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("View Post")]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.status&&t.status.account.id!=t.profile.id?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("Report")]):t._e(),t._v(" "),t.status&&(t.profile.is_admin||t.profile.id==t.status.account.id)&&"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxModModal",attrs:{id:"ctx-mod-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"unlist")}}},[t._v("Unlist from Timelines")]),t._v(" "),t.status.sensitive?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"addcw")}}},[t._v("Add Content Warning")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"spammer")}}},[t._v("\n\t\t\t\tMark as Spammer"),e("br"),t._v(" "),e("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxModOtherModal",attrs:{id:"ctx-mod-other-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxShareModal",attrs:{id:"ctx-share-modal",title:"Share","hide-footer":"","hide-header":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded text-center"}},[e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),e("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[e("div",[e("div",{staticClass:"form-group"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedPayload,expression:"ctxEmbedPayload"}],staticClass:"form-control disabled text-monospace",staticStyle:{"overflow-y":"hidden",border:"1px solid #efefef","font-size":"12px","line-height":"18px",margin:"0 0 7px",resize:"none"},attrs:{rows:"8",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[e("div",{staticClass:"form-check mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowCaption,expression:"ctxEmbedShowCaption"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowCaption)?t._i(t.ctxEmbedShowCaption,null)>-1:t.ctxEmbedShowCaption},on:{change:function(e){var s=t.ctxEmbedShowCaption,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.ctxEmbedShowCaption=s.concat([null])):i>-1&&(t.ctxEmbedShowCaption=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedShowCaption=o}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Caption\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowLikes,expression:"ctxEmbedShowLikes"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowLikes)?t._i(t.ctxEmbedShowLikes,null)>-1:t.ctxEmbedShowLikes},on:{change:function(e){var s=t.ctxEmbedShowLikes,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.ctxEmbedShowLikes=s.concat([null])):i>-1&&(t.ctxEmbedShowLikes=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedShowLikes=o}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Likes\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedCompactMode,expression:"ctxEmbedCompactMode"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.ctxEmbedCompactMode)?t._i(t.ctxEmbedCompactMode,null)>-1:t.ctxEmbedCompactMode},on:{change:function(e){var s=t.ctxEmbedCompactMode,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.ctxEmbedCompactMode=s.concat([null])):i>-1&&(t.ctxEmbedCompactMode=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedCompactMode=o}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tCompact Mode\n\t\t\t\t\t")])])]),t._v(" "),e("hr"),t._v(" "),e("button",{class:t.copiedEmbed?"btn btn-primary btn-block btn-sm py-1 font-weight-bold disabed":"btn btn-primary btn-block btn-sm py-1 font-weight-bold",attrs:{disabled:t.copiedEmbed},on:{click:t.ctxCopyEmbed}},[t._v(t._s(t.copiedEmbed?"Embed Code Copied!":"Copy Embed Code"))]),t._v(" "),e("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),e("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),e("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group text-center"},[e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("sensitive")}}},[t._v("Sensitive Content")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("abusive")}}},[t._v("Abusive or Harmful")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxReportOther",attrs:{id:"ctx-report-other","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group text-center"},[e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("underage")}}},[t._v("Underage Account")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("copyright")}}},[t._v("Copyright Infringement")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("scam")}}},[t._v("Scam or Fraud")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[e("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),e("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[e("button",{staticClass:"btn btn-outline-lighter border-left-0 border-top-0 border-bottom-0 border-right py-2",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalCancel()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-outline-lighter border-0",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalConfirm()}}},[t._v("Confirm")])])])],1)},o=[]},88291(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-3"},[e("label",{staticClass:"col-form-label text-left"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{staticClass:"col-sm-9"},[e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.value)?t._i(t.value,null)>-1:t.value},on:{change:function(e){var s=t.value,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.value=s.concat([null])):i>-1&&(t.value=s.slice(0,i).concat(s.slice(i+1)))}else t.value=o}}}),t._v(" "),e("label",{staticClass:"form-check-label ml-1",class:[t.strongText?"font-weight-bold text-capitalize text-dark":"small text-muted"]},[t._v("\n "+t._s(t.inputText)+"\n ")])]),t._v(" "),t.helpText?e("div",{staticClass:"help-text small text-muted d-flex flex-row justify-content-between gap-3"},[t.helpText?e("div",[t._v(t._s(t.helpText))]):t._e()]):t._e()])])},o=[]},20285(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-3"},[e("label",{staticClass:"col-form-label text-left"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{staticClass:"col-sm-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"custom-select",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.value=e.target.multiple?s:s[0]}}},[e("option",{attrs:{value:"",selected:"",disabled:""}},[t._v(t._s(t.placeholder))]),t._v(" "),t._l(t.categories,function(s){return e("option",{domProps:{value:s.value}},[t._v(t._s(s.key))])})],2),t._v(" "),t.helpText||t.hasLimit?e("div",{staticClass:"help-text small text-muted d-flex flex-row justify-content-between gap-3"},[t.helpText?e("div",[t._v(t._s(t.helpText))]):t._e(),t._v(" "),t.hasLimit?e("div",{staticClass:"font-weight-bold text-dark"},[t._v("\n "+t._s(t.value?t.value.length:0)+"/"+t._s(t.maxLimit)+"\n ")]):t._e()]):t._e()])])},o=[]},80171(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-3"},[e("label",{staticClass:"col-form-label text-left"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{staticClass:"col-sm-9"},[t.hasLimit?e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:{"form-control-lg":t.largeInput},staticStyle:{resize:"none"},attrs:{type:"text",placeholder:t.placeholder,maxlength:t.maxLimit,rows:t.rows},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}):e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:{"form-control-lg":t.largeInput},staticStyle:{resize:"none"},attrs:{type:"text",placeholder:t.placeholder,rows:t.rows},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),t.helpText||t.hasLimit?e("div",{staticClass:"help-text small text-muted d-flex flex-row justify-content-between gap-3"},[t.helpText?e("div",[t._v(t._s(t.helpText))]):t._e(),t._v(" "),t.hasLimit?e("div",{staticClass:"font-weight-bold text-dark"},[t._v("\n "+t._s(t.value?t.value.length:0)+"/"+t._s(t.maxLimit)+"\n ")]):t._e()]):t._e()])])},o=[]},47545(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-3"},[e("label",{staticClass:"col-form-label text-left"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{staticClass:"col-sm-9"},[t.hasLimit?e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:{"form-control-lg":t.largeInput},attrs:{type:"text",placeholder:t.placeholder,maxlength:t.maxLimit},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:{"form-control-lg":t.largeInput},attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),t.helpText||t.hasLimit?e("div",{staticClass:"help-text small text-muted d-flex flex-row justify-content-between gap-3"},[t.helpText?e("div",[t._v(t._s(t.helpText))]):t._e(),t._v(" "),t.hasLimit?e("div",{staticClass:"font-weight-bold text-dark"},[t._v("\n "+t._s(t.value?t.value.length:0)+"/"+t._s(t.maxLimit)+"\n ")]):t._e()]):t._e()])])},o=[]},54968(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-compose-form"},[e("input",{ref:"photoInput",staticClass:"d-none file-input",attrs:{id:"photoInput",type:"file",accept:"image/jpeg,image/png"},on:{change:t.handlePhotoChange}}),t._v(" "),e("input",{ref:"videoInput",staticClass:"d-none file-input",attrs:{id:"videoInput",type:"file",accept:"video/mp4"},on:{change:t.handleVideoChange}}),t._v(" "),e("div",{staticClass:"card card-body border mb-3 shadow-sm rounded-lg"},[e("div",{staticClass:"media align-items-top"},[t.profile?e("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.profile.avatar,width:"42px",height:"42px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}):t._e(),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"d-block",staticStyle:{"min-height":"80px"}},[t.isUploading?e("div",{staticClass:"w-100"},[e("p",{staticClass:"font-weight-light mb-1"},[t._v("Uploading media ...")]),t._v(" "),e("div",{staticClass:"progress rounded-pill",staticStyle:{height:"4px"}},[e("div",{staticClass:"progress-bar",style:{width:t.uploadProgress+"%"},attrs:{role:"progressbar","aria-valuenow":t.uploadProgress,"aria-valuemin":"0","aria-valuemax":"100"}})])]):e("div",{staticClass:"form-group mb-3"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control",class:{"form-control-lg":!t.composeText||t.composeText.length<40,"rounded-pill":!t.composeText||t.composeText.length<40,"bg-light":!t.composeText||t.composeText.length<40,"border-0":!t.composeText||t.composeText.length<40},staticStyle:{resize:"none"},attrs:{rows:!t.composeText||t.composeText.length<40?1:5,placeholder:t.placeholder},domProps:{value:t.composeText},on:{input:function(e){e.target.composing||(t.composeText=e.target.value)}}}),t._v(" "),t.composeText?e("div",{staticClass:"small text-muted mt-1",staticStyle:{"min-height":"20px"}},[e("span",{staticClass:"float-right font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.composeText?t.composeText.length:0)+"/500\n\t\t\t\t\t\t\t")])]):t._e()])]),t._v(" "),t.tab?e("div",{staticClass:"tab"},["poll"===t.tab?e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n\t\t\t\t\t\t\tPoll Options\n\t\t\t\t\t\t")]),t._v(" "),t.pollOptions.length<4?e("div",{staticClass:"form-group mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptionModel,expression:"pollOptionModel"}],staticClass:"form-control rounded-pill",attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptionModel},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.savePollOption.apply(null,arguments)},input:function(e){e.target.composing||(t.pollOptionModel=e.target.value)}}})]):t._e(),t._v(" "),t._l(t.pollOptions,function(s,a){return e("div",{staticClass:"form-group mb-4 d-flex align-items-center",staticStyle:{"max-width":"400px",position:"relative"}},[e("span",{staticClass:"font-weight-bold mr-2",staticStyle:{position:"absolute",left:"10px"}},[t._v(t._s(a+1)+".")]),t._v(" "),t.pollOptions[a].length<50?e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[a],expression:"pollOptions[index]"}],staticClass:"form-control rounded-pill",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptions[a]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,a,e.target.value)}}}):e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[a],expression:"pollOptions[index]"}],staticClass:"form-control",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{placeholder:"Add a poll option, press enter to save",rows:"3"},domProps:{value:t.pollOptions[a]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,a,e.target.value)}}}),t._v(" "),e("button",{staticClass:"btn btn-danger btn-sm rounded-pill font-weight-bold",staticStyle:{position:"absolute",right:"5px"},on:{click:function(e){return t.deletePollOption(a)}}},[e("i",{staticClass:"fas fa-trash"}),t._v(" Delete\n\t\t\t\t\t\t\t")])])}),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n\t\t\t\t\t\t\t\t\tPoll Expiry\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"form-group"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.pollExpiry,expression:"pollExpiry"}],staticClass:"form-control rounded-pill",staticStyle:{width:"200px"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.pollExpiry=e.target.multiple?s:s[0]}}},[e("option",{attrs:{value:"60"}},[t._v("1 hour")]),t._v(" "),e("option",{attrs:{value:"360"}},[t._v("6 hours")]),t._v(" "),e("option",{attrs:{value:"1440",selected:""}},[t._v("24 hours")]),t._v(" "),e("option",{attrs:{value:"10080"}},[t._v("7 days")])])])])])],2):t._e()]):t._e(),t._v(" "),t.isUploading?t._e():e("div",{},[e("div",[t.photoName&&t.photoName.length?e("div",{staticClass:"bg-light rounded-pill mb-4 py-2"},[e("div",{staticClass:"media align-items-center"},[t._m(0),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"mb-0 font-weight-bold text-muted"},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.photoName)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-link font-weight-bold text-decoration-none",on:{click:function(e){return e.preventDefault(),t.clearFileInputs.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t")])])]):t._e(),t._v(" "),t.videoName&&t.videoName.length?e("div",{staticClass:"bg-light rounded-pill mb-4 py-2"},[e("div",{staticClass:"media align-items-center"},[t._m(1),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"mb-0 font-weight-bold text-muted"},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.videoName)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-link font-weight-bold text-decoration-none",on:{click:function(e){return e.preventDefault(),t.clearFileInputs.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t")])])]):t._e()]),t._v(" "),e("div",[e("button",{staticClass:"btn btn-light border font-weight-bold py-1 px-2 rounded-lg mr-3",attrs:{disabled:t.photoName||t.videoName},on:{click:function(e){return t.switchTab("photo")}}},[e("i",{staticClass:"fal fa-image mr-2"}),t._v(" "),e("span",[t._v("Add Photo")])])])])])]),t._v(" "),!t.isUploading&&t.composeText&&t.composeText.length>1||!t.isUploading&&["photo","video"].includes(t.tab)?e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-primary font-weight-bold float-right px-5 rounded-pill mt-3",attrs:{disabled:t.isPosting},on:{click:function(e){return t.newPost()}}},[t.isPosting?e("span",[t._m(2)]):e("span",[t._v("Post")])])]):t._e()])])},o=[function(){var t=this._self._c;return t("span",{staticClass:"d-flex align-items-center justify-content-center bg-primary mx-3",staticStyle:{width:"40px",height:"40px","border-radius":"50px",opacity:"0.6"}},[t("i",{staticClass:"fal fa-image fa-lg text-white"})])},function(){var t=this._self._c;return t("span",{staticClass:"d-flex align-items-center justify-content-center bg-primary mx-3",staticStyle:{width:"40px",height:"40px","border-radius":"50px",opacity:"0.6"}},[t("i",{staticClass:"fal fa-video fa-lg text-white"})])},function(){var t=this._self._c;return t("div",{staticClass:"spinner-border text-white spinner-border-sm",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])}]},26177(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-info-card"},[e("div",{staticClass:"card card-body mt-3 shadow-none border rounded-lg"},[e("p",{staticClass:"title"},[t._v("About")]),t._v(" "),t.group.description&&t.group.description.length>1?e("p",{staticClass:"description",domProps:{innerHTML:t._s(t.group.description)}}):e("p",{staticClass:"description"},[t._v("This group does not have a description.")])]),t._v(" "),e("div",{staticClass:"card card-body mt-3 shadow-none border rounded-lg"},["all"==t.group.membership?e("div",{staticClass:"fact"},[t._m(0),t._v(" "),t._m(1)]):t._e(),t._v(" "),"private"==t.group.membership?e("div",{staticClass:"fact"},[t._m(2),t._v(" "),t._m(3)]):t._e(),t._v(" "),1==t.group.config.discoverable?e("div",{staticClass:"fact"},[t._m(4),t._v(" "),t._m(5)]):t._e(),t._v(" "),0==t.group.config.discoverable?e("div",{staticClass:"fact"},[t._m(6),t._v(" "),t._m(7)]):t._e(),t._v(" "),e("div",{staticClass:"fact"},[t._m(8),t._v(" "),e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v(t._s(t.group.category.name))]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Category")])])]),t._v(" "),e("p",{staticClass:"mb-0 font-weight-light text-lighter"},[t._v("Created: "+t._s(t.timestampFormat(t.group.created_at)))])])])},o=[function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-globe fa-lg"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Public")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Anyone can see who's in the group and what they post.")])])},function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-lock fa-lg"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Private")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Only members can see who's in the group and what they post.")])])},function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-eye fa-lg"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Visible")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Anyone can find this group.")])])},function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-eye-slash fa-lg"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Hidden")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Only members can find this group.")])])},function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-users fa-lg"})])}]},22224(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-invite-modal"},[e("b-modal",{ref:"modal",attrs:{"hide-header":"","hide-footer":"",centered:"",rounded:"","body-class":"rounded group-invite-modal-wrapper"}},[e("div",{staticClass:"text-center py-3 d-flex align-items-center flex-column"},[e("div",{staticClass:"bg-light rounded-circle d-flex justify-content-center align-items-center mb-3",staticStyle:{width:"100px",height:"100px"}},[e("i",{staticClass:"far fa-user-plus fa-2x text-lighter"})]),t._v(" "),e("p",{staticClass:"h4 font-weight-bold mb-0"},[t._v("Invite Friends")])]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.usernames.length<5?e("div",{staticClass:"d-flex justify-content-between mt-1"},[e("autocomplete",{ref:"autocomplete",staticStyle:{width:"100%"},attrs:{search:t.autocompleteSearch,placeholder:"Search friends by username","aria-label":"Search this group","get-result-value":t.getSearchResultValue,debounceTime:700},on:{submit:t.onSearchSubmit},scopedSlots:t._u([{key:"result",fn:function(s){var a=s.result,o=s.props;return[e("li",t._b({staticClass:"autocomplete-result"},"li",o,!1),[e("div",{staticClass:"text-truncate"},[e("p",{staticClass:"result-name mb-0 font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(a.username)+"\n\t\t\t\t\t\t\t\t")])])])]}}],null,!1,3929251)}),t._v(" "),e("button",{staticClass:"btn btn-light border rounded-circle text-lighter ml-3",staticStyle:{width:"52px",height:"50px"},on:{click:t.close}},[e("i",{staticClass:"fal fa-times fa-lg"})])],1):t._e()]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.usernames.length?e("div",{staticClass:"pt-3"},t._l(t.usernames,function(s,a){return e("div",{staticClass:"py-1"},[e("div",{staticClass:"media align-items-center"},[e("img",{staticClass:"rounded-circle border mr-3",attrs:{src:"/storage/avatars/default.jpg",width:"45",height:"45"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"lead mb-0"},[t._v(t._s(s.username))])]),t._v(" "),e("button",{staticClass:"btn btn-link text-lighter btn-sm",on:{click:function(e){return t.removeUsername(a)}}},[e("i",{staticClass:"far fa-times-circle fa-lg"})])])])}),0):t._e()]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.usernames&&t.usernames.length?e("button",{staticClass:"btn btn-primary btn-lg btn-block font-weight-bold rounded font-weight-bold mt-3",on:{click:t.submitInvites}},[t._v("Invite")]):t._e()]),t._v(" "),e("div",{staticClass:"text-center pt-3 small"},[e("p",{staticClass:"mb-0"},[t._v("You can invite up to 5 friends at a time, and 20 friends in total.")])])],1)],1)},o=[]},25012(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-list-card"},[e("div",{staticClass:"media"},[e("div",{staticClass:"media align-items-center"},[t.group.metadata&&t.group.metadata.hasOwnProperty("header")?e("img",{staticClass:"mr-3 border rounded group-header-img",class:{compact:t.compact},attrs:{src:t.group.metadata.header.url}}):e("div",{staticClass:"mr-3 border rounded group-header-img",class:{compact:t.compact}},[t._m(0)]),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-0 text-dark",staticStyle:{"font-size":"16px"}},[t._v("\n\t\t\t\t\t"+t._s(t.truncate(t.group.name||"Untitled Group",t.titleLength))+"\n\t\t\t\t")]),t._v(" "),e("p",{staticClass:"text-muted mb-1",staticStyle:{"font-size":"12px"}},[t._v("\n\t\t\t\t\t"+t._s(t.truncate(t.group.short_description,t.descriptionLength))+"\n\t\t\t\t")]),t._v(" "),t.showStats?e("p",{staticClass:"mb-0 small text-lighter"},[e("span",[e("i",{staticClass:"far fa-users"}),t._v(" "),e("span",{staticClass:"small font-weight-bold"},[t._v(t._s(t.prettyCount(t.group.member_count)))])]),t._v(" "),t.group.local?t._e():e("span",{staticClass:"remote-label ml-3"},[e("i",{staticClass:"fal fa-globe"}),t._v(" Remote\n\t\t\t\t\t")]),t._v(" "),t.group.hasOwnProperty("admin")&&t.group.admin.hasOwnProperty("username")?e("span",{staticClass:"ml-3"},[e("i",{staticClass:"fal fa-user-crown"}),t._v(" "),e("span",{staticClass:"small font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t@"+t._s(t.group.admin.username)+"\n\t\t\t\t\t\t")])]):t._e()]):t._e()])])])])},o=[function(){var t=this._self._c;return t("div",{staticClass:"bg-primary d-flex align-items-center justify-content-center rounded",staticStyle:{width:"100%",height:"100%"}},[t("i",{staticClass:"fal fa-users text-white fa-lg"})])}]},64954(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-post-modal"},[e("b-modal",{ref:"modal",attrs:{size:"xl","hide-footer":"","hide-header":"",centered:"","body-class":"gpm p-0"}},[e("div",{staticClass:"d-flex"},[e("div",{staticClass:"gpm-media"},[e("img",{attrs:{src:t.status.media_attachments[0].preview_url}})]),t._v(" "),e("div",{staticClass:"p-3",staticStyle:{width:"30%"}},[e("div",{staticClass:"media align-items-center mb-2"},[e("a",{attrs:{href:t.status.account.url}},[e("img",{staticClass:"rounded-circle media-avatar border mr-2",attrs:{src:t.status.account.avatar,width:"32",height:"32"}})]),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"media-body-comment"},[e("p",{staticClass:"media-body-comment-username mb-n1"},[e("a",{staticClass:"text-dark text-decoration-none font-weight-bold",attrs:{href:t.status.account.url}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),e("p",{staticClass:"media-body-comment-timestamp mb-0"},[e("a",{staticClass:"font-weight-light text-muted small",attrs:{href:t.status.url}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.shortTimestamp(t.status.created_at))+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"text-lighter",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[t._v("ยท")]),t._v(" "),e("span",{staticClass:"text-muted small"},[e("i",{staticClass:"fas fa-globe"})])])])]),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"}},[e("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),e("read-more",{attrs:{status:t.status}}),t._v(" "),e("div",{staticClass:"border-top border-bottom mt-3"},[e("div",{staticClass:"d-flex justify-content-between",staticStyle:{padding:"8px 5px"}},[e("button",{staticClass:"btn btn-link py-0 text-decoration-none btn-sm",class:{"font-weight-bold":t.status.favourited,"text-primary":t.status.favourited,"text-muted":!t.status.favourited}},[e("i",{staticClass:"far fa-heart mr-1"}),t._v("\n\t\t\t\t\t\t\t"+t._s(t.status.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none btn-sm text-muted"},[e("i",{staticClass:"far fa-comment cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\tComment\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none btn-sm",attrs:{disabled:""}},[e("i",{staticClass:"fas fa-external-link-alt cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\tShare\n\t\t\t\t\t\t")])])])],1)])])],1)},o=[]},83560(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t,e,s,a=this,o=a._self._c;return o("div",{staticClass:"group-search-modal"},[o("b-modal",{ref:"modal",attrs:{"hide-header":"","hide-footer":"",centered:"",rounded:"","body-class":"rounded group-search-modal-wrapper"}},[o("div",{staticClass:"d-flex justify-content-between"},[o("autocomplete",{ref:"autocomplete",staticStyle:{width:"100%"},attrs:{search:a.autocompleteSearch,placeholder:"Search this group","aria-label":"Search this group","get-result-value":a.getSearchResultValue,debounceTime:700},on:{submit:a.onSearchSubmit},scopedSlots:a._u([{key:"result",fn:function(t){var e=t.result,s=t.props;return[o("li",a._b({staticClass:"autocomplete-result"},"li",s,!1),[o("div",{staticClass:"text-truncate"},[o("p",{staticClass:"result-name mb-0 font-weight-bold"},[a._v("\n\t\t\t\t\t\t\t\t\t"+a._s(e.username)+"\n\t\t\t\t\t\t\t\t")])])])]}}])}),a._v(" "),o("button",{staticClass:"btn btn-light border rounded-circle text-lighter ml-3",staticStyle:{width:"52px",height:"50px"},on:{click:a.close}},[o("i",{staticClass:"fal fa-times fa-lg"})])],1),a._v(" "),a.recent&&a.recent.length?o("div",{staticClass:"pt-5"},[o("h5",{staticClass:"mb-2"},[a._v("Recent Searches")]),a._v(" "),a._l(a.recent,function(t,e){return o("a",{staticClass:"media align-items-center text-decoration-none text-dark",attrs:{href:t.action}},[o("div",{staticClass:"bg-light rounded-circle mr-3 border d-flex justify-content-center align-items-center",staticStyle:{width:"40px",height:"40px"}},[o("i",{staticClass:"far fa-search"})]),a._v(" "),o("div",{staticClass:"media-body"},[o("p",{staticClass:"mb-0"},[a._v(a._s(t.value))])])])})],2):a._e(),a._v(" "),o("div",{staticClass:"pt-5"},[o("h5",{staticClass:"mb-2"},[a._v("Explore This Group")]),a._v(" "),o("div",{staticClass:"media align-items-center",on:{click:a.viewMyActivity}},[o("img",{staticClass:"mr-3 border rounded-circle",attrs:{src:null===(t=a.profile)||void 0===t?void 0:t.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),a._v(" "),o("div",{staticClass:"media-body"},[o("p",{staticClass:"mb-0"},[a._v(a._s((null===(e=a.profile)||void 0===e?void 0:e.display_name)||(null===(s=a.profile)||void 0===s?void 0:s.username)))]),a._v(" "),o("p",{staticClass:"mb-0 small text-muted"},[a._v("See your group activity.")])])]),a._v(" "),o("div",{staticClass:"media align-items-center",on:{click:a.viewGroupSearch}},[o("div",{staticClass:"bg-light rounded-circle mr-3 border d-flex justify-content-center align-items-center",staticStyle:{width:"40px",height:"40px"}},[o("i",{staticClass:"far fa-search"})]),a._v(" "),o("div",{staticClass:"media-body"},[o("p",{staticClass:"mb-0"},[a._v("Search all groups")])])])])])],1)},o=[]},91648(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"status-card-component",class:{"status-card-sm":t.loaded&&"small"===t.size}},[t.loaded?e("div",{staticClass:"shadow-none mb-3"},["poll"!==t.status.pf_type?e("div",{staticClass:"card shadow-sm",class:{"border-top-0":!t.hasTopBorder},staticStyle:{"border-radius":"18px !important"}},[1==t.parentUnavailable?e("parent-unavailable",{attrs:{"permalink-mode":t.permalinkMode,"permalink-status":t.childContext,status:t.status,profile:t.profile,"group-id":t.groupId}}):e("div",{staticClass:"card-body pb-0"},[e("group-post-header",{attrs:{group:t.group,status:t.status,profile:t.profile,showGroupHeader:t.showGroupHeader,showGroupChevron:t.showGroupChevron},on:{delete:t.statusDeleted}}),t._v(" "),e("div",[e("div",[e("div",{staticClass:"pl-2"},[t.status.sensitive&&t.status.content.length?e("div",{staticClass:"card card-body shadow-none border bg-light py-2 my-2 text-center user-select-none cursor-pointer",on:{click:function(e){t.status.sensitive=!1}}},[e("div",{staticClass:"media justify-content-center align-items-center"},[e("div",{staticClass:"mx-3"},[e("i",{staticClass:"far fa-exclamation-triangle fa-2x text-lighter"})]),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Warning, may contain sensitive content. ")]),t._v(" "),e("p",{staticClass:"mb-0 text-lighter small text-center font-weight-bold"},[t._v("Click to view")])])])]):[e("p",{staticClass:"pt-2 text-break",staticStyle:{"font-size":"15px"},domProps:{innerHTML:t._s(t.renderedCaption)}})],t._v(" "),"photo"===t.status.pf_type?e("photo-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{lightbox:t.showPostModal,togglecw:function(e){t.status.sensitive=!1},click:t.showPostModal}}):"video"===t.status.pf_type?e("video-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}}):"photo:album"===t.status.pf_type?e("photo-album-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}}):"video:album"===t.status.pf_type?e("video-album-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}}):"photo:video:album"===t.status.pf_type?e("mixed-album-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}}):t._e(),t._v(" "),t.status.favourites_count||t.status.reply_count?e("div",{staticClass:"border-top my-0"},[e("div",{staticClass:"d-flex justify-content-between py-2",staticStyle:{"font-size":"14px"}},[t.status.favourites_count?e("button",{staticClass:"btn btn-light py-0 text-decoration-none text-dark",staticStyle:{"font-size":"12px","font-weight":"600"},on:{click:function(e){return t.showLikesModal(e)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.status.favourites_count)+" "+t._s(1==t.status.favourites_count?"Like":"Likes")+"\n\t\t\t\t\t\t\t\t\t\t")]):t._e(),t._v(" "),t.status.reply_count?e("button",{staticClass:"btn btn-light py-0 text-decoration-none text-dark",staticStyle:{"font-size":"12px","font-weight":"600"},on:{click:function(e){return t.commentFocus(e)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.status.reply_count)+" "+t._s(1==t.status.reply_count?"Comment":"Comments")+"\n\t\t\t\t\t\t\t\t\t\t")]):t._e()])]):t._e(),t._v(" "),t.profile?e("div",{staticClass:"border-top my-0"},[e("div",{staticClass:"d-flex justify-content-between py-2 px-4"},[e("div",[e("button",{staticClass:"btn btn-link py-0 text-decoration-none",class:{"font-weight-bold":t.status.favourited,"text-primary":t.status.favourited,"text-muted":!t.status.favourited},attrs:{id:"lr__"+t.status.id},on:{click:function(e){return t.likeStatus(t.status,e)}}},[e("i",{staticClass:"far fa-heart mr-1"}),t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.status.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none text-muted",on:{click:function(e){return t.commentFocus(e)}}},[e("i",{staticClass:"far fa-comment cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\t\t\t\t\tComment\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none",attrs:{disabled:""}},[e("i",{staticClass:"fas fa-external-link-alt cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\t\t\t\t\tShare\n\t\t\t\t\t\t\t\t\t\t")])])]):t._e(),t._v(" "),t.showCommentDrawer?e("comment-drawer",{attrs:{"permalink-mode":t.permalinkMode,"permalink-status":t.childContext,status:t.status,profile:t.profile,"group-id":t.groupId}}):t._e()],2)])])],1)],1):e("div",{staticClass:"border"},[e("poll-card",{attrs:{status:t.status,profile:t.profile,showBorder:!1},on:{"status-delete":t.statusDeleted}}),t._v(" "),e("div",{staticClass:"bg-white",staticStyle:{padding:"0 1.25rem"}},[t.profile?e("div",{staticClass:"border-top my-0"},[e("div",{staticClass:"d-flex justify-content-between py-2 px-4"},[e("div",[e("button",{staticClass:"btn btn-link py-0 text-decoration-none",class:{"font-weight-bold":t.status.favourited,"text-primary":t.status.favourited,"text-muted":!t.status.favourited},attrs:{id:"lr__"+t.status.id},on:{click:function(e){return t.likeStatus(t.status,e)}}},[e("i",{staticClass:"far fa-heart mr-1"}),t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("b-popover",{attrs:{target:"lr__"+t.status.id,triggers:"hover",placement:"top"},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("Popover Title")]},proxy:!0}],null,!1,4088088860)},[t._v("\n\t\t\t\t\t\t\t\t\tI am popover "),e("b",[t._v("component")]),t._v(" content!\n\t\t\t\t\t\t\t\t")])],1),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none text-muted",on:{click:function(e){return t.commentFocus(e)}}},[e("i",{staticClass:"far fa-comment cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\t\tComment\n\t\t\t\t\t\t\t")]),t._v(" "),t._m(0)])]):t._e(),t._v(" "),t.showCommentDrawer?e("comment-drawer",{attrs:{"permalink-mode":t.permalinkMode,"permalink-status":t.childContext,profile:t.profile,status:t.status,"group-id":t.groupId}}):t._e()],1)],1),t._v(" "),t.profile?e("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile,"group-id":t.groupId},on:{"status-delete":t.statusDeleted}}):t._e(),t._v(" "),t.showModal?e("post-modal",{ref:"modal",attrs:{status:t.status,profile:t.profile,groupId:t.groupId}}):t._e()],1):e("div",{staticClass:"card card-body shadow-none border mb-3",staticStyle:{height:"200px"}},[t._m(1)])])},o=[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-link py-0 text-decoration-none",attrs:{disabled:""}},[t("i",{staticClass:"fas fa-external-link-alt cursor-pointer text-muted mr-1"}),this._v("\n\t\t\t\t\t\t\t\tShare\n\t\t\t\t\t\t\t")])},function(){var t=this._self._c;return t("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center"},[t("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])])}]},52809(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){return(0,this._self._c)("div")},o=[]},2011(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-md-5",staticStyle:{"background-color":"#fff"}},[t.group.metadata&&t.group.metadata.hasOwnProperty("header")?e("img",{staticClass:"header-image",attrs:{src:t.group.metadata.header.url}}):e("div",{staticClass:"header-jumbotron"})])},o=[]},11568(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 group-feed-component-header px-3 px-md-5"},[e("div",{staticClass:"media align-items-end"},[t.group.metadata&&t.group.metadata.hasOwnProperty("avatar")?e("img",{staticClass:"bg-white mx-4 rounded-circle border shadow p-1",staticStyle:{"object-fit":"cover"},style:{"margin-top":t.group.metadata&&t.group.metadata.hasOwnProperty("header")&&t.group.metadata.header.url?"-100px":"0"},attrs:{src:t.group.metadata.avatar.url,width:"169",height:"169"}}):t._e(),t._v(" "),t.group&&t.group.name?e("div",{staticClass:"media-body px-3"},[e("h3",{staticClass:"d-flex align-items-start"},[e("span",[t._v(t._s(t.group.name.slice(0,118)))]),t._v(" "),t.group.verified?e("sup",{staticClass:"fa-stack ml-n2",attrs:{title:"Verified Group","data-toggle":"tooltip"}},[e("i",{staticClass:"fas fa-circle fa-stack-1x fa-lg",staticStyle:{color:"#22a7f0cc","font-size":"18px"}}),t._v(" "),e("i",{staticClass:"fas fa-check fa-stack-1x text-white",staticStyle:{"font-size":"10px"}})]):t._e()]),t._v(" "),e("p",{staticClass:"text-muted mb-0",staticStyle:{"font-weight":"300"}},[e("span",[e("i",{staticClass:"fas fa-globe mr-1"}),t._v("\n "+t._s("all"==t.group.membership?"Public Group":"Private Group")+"\n ")]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("\n ยท\n ")]),t._v(" "),e("span",[t._v(t._s(1==t.group.member_count?t.group.member_count+" Member":t.group.member_count+" Members"))]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("\n ยท\n ")]),t._v(" "),t.group.local?e("span",{staticClass:"rounded member-label"},[t._v("Local")]):e("span",{staticClass:"rounded remote-label"},[t._v("Remote")]),t._v(" "),t.group.self&&t.group.self.hasOwnProperty("role")&&t.group.self.role?e("span",[e("span",{staticClass:"mx-2"},[t._v("\n ยท\n ")]),t._v(" "),e("span",{staticClass:"rounded member-label"},[t._v(t._s(t.group.self.role))])]):t._e()])]):e("div",{staticClass:"media-body"},[t._m(0)])]),t._v(" "),t.group&&t.group.self?e("div",[t.isMember||t.group.self.is_requested?!t.isMember&&t.group.self.is_requested?e("button",{staticClass:"btn btn-light border cta-btn font-weight-bold",on:{click:function(e){return e.preventDefault(),t.cancelJoinRequest.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-user-clock mr-1"}),t._v(" Requested to Join\n ")]):t.isAdmin||!t.isMember||t.group.self.is_requested?t._e():e("button",{staticClass:"btn btn-light border cta-btn font-weight-bold",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.leaveGroup.apply(null,arguments)}}},[e("i",{staticClass:"fas sign-out-alt mr-1"}),t._v(" Leave Group\n ")]):e("button",{staticClass:"btn btn-primary cta-btn font-weight-bold",attrs:{disabled:t.requestingMembership},on:{click:t.joinGroup}},[t.requestingMembership?e("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[t._v("Loading...")])]):e("span",[t._v("\n "+t._s("all"==t.group.membership?"Join":"Request Membership")+"\n ")])])]):t._e()])},o=[function(){var t=this._self._c;return t("h3",{staticClass:"d-flex align-items-start"},[t("span",[this._v("Loading...")])])}]},17859(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t,e,s,a,o,i=this,r=i._self._c;return r("div",[r("div",{staticClass:"col-12 border-top group-feed-component-menu px-5"},[r("ul",{staticClass:"nav font-weight-bold group-feed-component-menu-nav"},[r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id,"/about")}},[i._v("About")])],1),i._v(" "),r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id),exact:""}},[i._v("Feed")])],1),i._v(" "),null!==(t=i.group)&&void 0!==t&&t.self&&i.group.self.is_member?r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id,"/topics")}},[i._v("Topics")])],1):i._e(),i._v(" "),null!==(e=i.group)&&void 0!==e&&e.self&&i.group.self.is_member?r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id,"/members")}},[i._v("\n Members\n "),i.group.self.is_member&&i.isAdmin&&i.atabs.request_count?r("span",{staticClass:"badge badge-danger rounded-pill ml-2",staticStyle:{height:"20px",padding:"4px 8px","font-size":"11px"}},[i._v(i._s(i.atabs.request_count))]):i._e()])],1):i._e(),i._v(" "),null!==(s=i.group)&&void 0!==s&&s.self&&i.group.self.is_member?r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id,"/media")}},[i._v("Media")])],1):i._e(),i._v(" "),null!==(a=i.group)&&void 0!==a&&a.self&&i.group.self.is_member&&i.isAdmin?r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link d-flex align-items-top",attrs:{to:"/groups/".concat(i.group.id,"/moderation")}},[r("span",{staticClass:"mr-2"},[i._v("Moderation")]),i._v(" "),i.atabs.moderation_count?r("span",{staticClass:"badge badge-danger rounded-pill",staticStyle:{height:"20px",padding:"4px 8px","font-size":"11px"}},[i._v(i._s(i.atabs.moderation_count))]):i._e()])],1):i._e()]),i._v(" "),r("div",[null!==(o=i.group)&&void 0!==o&&o.self&&i.group.self.is_member?r("button",{staticClass:"btn btn-light btn-sm border px-3 rounded-pill mr-2",on:{click:i.showSearchModal}},[r("i",{staticClass:"far fa-search"})]):i._e(),i._v(" "),r("div",{staticClass:"dropdown d-inline"},[i._m(0),i._v(" "),r("div",{staticClass:"dropdown-menu dropdown-menu-right"},[r("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),i.copyLink.apply(null,arguments)}}},[i._v("\n Copy Group Link\n ")]),i._v(" "),r("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),i.showInviteModal.apply(null,arguments)}}},[i._v("\n Invite friends\n ")]),i._v(" "),i.isAdmin?i._e():r("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),i.reportGroup.apply(null,arguments)}}},[i._v("\n Report Group\n ")]),i._v(" "),i.isAdmin?r("a",{staticClass:"dropdown-item",attrs:{href:i.group.url+"/settings"}},[i._v("\n Settings\n ")]):i._e()])])])]),i._v(" "),r("search-modal",{ref:"searchModal",attrs:{group:i.group,profile:i.profile}})],1)},o=[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-light btn-sm border px-3 rounded-pill dropdown-toggle",attrs:{"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t("i",{staticClass:"far fa-cog"})])}]},30832(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"read-more-component",staticStyle:{"word-break":"break-all"}},[t.status.content.length<200?e("div",{domProps:{innerHTML:t._s(t.content)}}):e("div",[e("span",{domProps:{innerHTML:t._s(t.content)}}),t._v(" "),200==t.cursor||t.fullContent.length>t.cursor?e("a",{staticClass:"font-weight-bold text-muted",staticStyle:{display:"block","white-space":"nowrap"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.readMore.apply(null,arguments)}}},[e("i",{staticClass:"d-none fas fa-caret-down"}),t._v(" Read more...\n\t\t")]):t._e()])])},o=[]},48511(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"self-discover-component col-12 col-md-9 bg-lighter border-left mb-4"},[t._m(0),t._v(" "),"home"===t.tab?e("div",{staticClass:"px-5"},[e("div",{staticClass:"row mb-4 pt-5"},[e("div",{staticClass:"col-12 col-md-4"},[e("h4",{staticClass:"font-weight-bold"},[t._v("Popular")]),t._v(" "),e("div",{staticClass:"list-group list-group-scroll"},t._l(t.popularGroups,function(t,s){return e("a",{staticClass:"list-group-item p-1",attrs:{href:t.url}},[e("group-list-card",{attrs:{group:t,compact:!0}})],1)}),0)]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"card card-body shadow-none bg-mantle text-light",staticStyle:{"margin-top":"33px"}},[e("h3",{staticClass:"mb-4 font-weight-lighter"},[t._v("Discover communities and topics based on your interests")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light font-weight-light btn-block",on:{click:function(e){return t.toggleTab("categories")}}},[t._v("Browse Categories")])])]),t._v(" "),t._m(1)]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("h4",{staticClass:"font-weight-bold"},[t._v("New")]),t._v(" "),e("div",{staticClass:"list-group list-group-scroll"},t._l(t.newGroups,function(t,s){return e("a",{staticClass:"list-group-item p-1",attrs:{href:t.url}},[e("group-list-card",{attrs:{group:t,compact:!0}})],1)}),0)])]),t._v(" "),e("div",{staticClass:"jumbotron mb-4 text-light bg-black",staticStyle:{"margin-top":"5rem"}},[e("div",{staticClass:"container"},[e("h1",{staticClass:"display-4"},[t._v("Across the Fediverse")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light",on:{click:function(e){return t.toggleTab("fediverseGroups")}}},[t._v("\n \t\t\tExplore fediverse groups "),e("i",{staticClass:"fal fa-chevron-right ml-2"})])]),t._v(" "),e("hr",{staticClass:"my-4"}),t._v(" "),t._m(2)])]),t._v(" "),t._m(3),t._v(" "),t._m(4)]):t._e(),t._v(" "),"categories"===t.tab?e("div",{staticClass:"px-5"},[e("div",{staticClass:"row my-4 justify-content-center"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"title mb-4"},[e("span",[t._v("Categories")]),t._v(" "),e("button",{staticClass:"btn btn-light font-weight-bold",on:{click:function(e){return t.toggleTab("home")}}},[t._v("Go Back")])]),t._v(" "),e("div",{staticClass:"list-group"},t._l(t.categories,function(s,a){return e("div",{key:"rec:"+s.id+":"+a,staticClass:"list-group-item",on:{click:function(e){return t.selectCategory(a)}}},[e("p",{staticClass:"mb-0 font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(s)+"\n\t\t\t\t\t\t\t\t"),t._m(5,!0)])])}),0)])])]):t._e(),t._v(" "),"category"===t.tab?e("div",{staticClass:"px-5"},[e("div",{staticClass:"row my-4 justify-content-center"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"title mb-4"},[e("div",[e("div",{staticClass:"mb-n2 small text-uppercase text-lighter"},[t._v("Categories")]),t._v(" "),e("span",[t._v(t._s(t.categories[t.activeCategoryIndex]))])]),t._v(" "),e("button",{staticClass:"btn btn-light font-weight-bold",on:{click:function(e){return t.toggleTab("categories")}}},[t._v("Go Back")])]),t._v(" "),t.categoryGroupsLoaded?e("div",[e("div",{staticClass:"list-group"},[t._l(t.categoryGroups,function(t,s){return e("a",{staticClass:"list-group-item p-1",attrs:{href:t.url}},[e("group-list-card",{attrs:{group:t,showStats:!0}})],1)}),t._v(" "),t.categoryGroupsCanLoadMore?e("div",{staticClass:"list-group-item"},[e("button",{staticClass:"btn btn-light font-weight-bold btn-block",on:{click:t.fetchCategoryGroups}},[t._v("\n\t\t\t\t\t\t\t\t\tLoad more\n\t\t\t\t\t\t\t\t")])]):t._e()],2),t._v(" "),0===t.categoryGroups.length?e("div",{staticClass:"mt-3"},[t._m(6)]):t._e()]):e("div",[e("div",{staticClass:"card card-body shadow-none border justify-content-center flex-row"},[e("b-spinner")],1)])])])]):t._e(),t._v(" "),"fediverseGroups"===t.tab?e("div",{staticClass:"px-5"},[e("div",{staticClass:"row my-4 justify-content-center"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"title mb-4"},[e("span",[t._v("Fediverse Groups")]),t._v(" "),e("button",{staticClass:"btn btn-light font-weight-bold",on:{click:function(e){return t.toggleTab("home")}}},[t._v("Go Back")])]),t._v(" "),t._m(7)])])]):t._e()])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-5"},[e("div",{staticClass:"jumbotron my-4 text-light bg-mantle"},[e("div",{staticClass:"container"},[e("h1",{staticClass:"display-4"},[t._v("Discover")]),t._v(" "),e("p",{staticClass:"lead mb-0"},[t._v("Explore group communities and topics")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body shadow-none bg-light text-dark border",staticStyle:{"margin-top":"20px"}},[e("p",{staticClass:"lead mb-4 text-muted font-weight-lighter mb-1"},[t._v("Browse Public Groups")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-light border font-weight-light btn-block"},[t._v("Group Directory")])])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"lead"},[t._v("We're in the early stages of Group federation, and working with other projects to support cross-platform compatibility. "),e("a",{attrs:{href:"#"}},[t._v("Learn more about group federation "),e("i",{staticClass:"fal fa-chevron-right ml-2 fa-sm"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row my-4 py-5"},[e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"card card-body shadow-none bg-light",staticStyle:{border:"1px solid #E5E7EB"}},[e("p",{staticClass:"text-center text-lighter"},[e("i",{staticClass:"fal fa-lightbulb fa-4x"})]),t._v(" "),e("p",{staticClass:"text-center lead mb-0"},[t._v("What's New")])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"card card-body shadow-none bg-light",staticStyle:{border:"1px solid #E5E7EB"}},[e("p",{staticClass:"text-center text-lighter"},[e("i",{staticClass:"fal fa-clipboard-list-check fa-4x"})]),t._v(" "),e("p",{staticClass:"text-center lead mb-0"},[t._v("User Guide")])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"card card-body shadow-none bg-light",staticStyle:{border:"1px solid #E5E7EB"}},[e("p",{staticClass:"text-center text-lighter"},[e("i",{staticClass:"fal fa-question-circle fa-4x"})]),t._v(" "),e("p",{staticClass:"text-center lead mb-0"},[t._v("Groups Help")])])])])},function(){var t=this._self._c;return t("p",{staticClass:"text-lighter",staticStyle:{"font-size":"9px"}},[t("span",{staticClass:"font-weight-bold mr-1"},[this._v("Groups v0.0.1")])])},function(){var t=this._self._c;return t("span",{staticClass:"float-right"},[t("i",{staticClass:"fal fa-chevron-right"})])},function(){var t=this._self._c;return t("div",{staticClass:"bg-white border text-center p-3"},[t("p",{staticClass:"font-weight-light mb-0"},[this._v("No groups found in this category")])])},function(){var t=this._self._c;return t("div",{staticClass:"mt-3"},[t("div",{staticClass:"bg-white border text-center p-3"},[t("p",{staticClass:"font-weight-light mb-0"},[this._v("No fediverse groups found")])])])}]},92300(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-9",staticStyle:{overflow:"hidden"}},[t._m(0),t._v(" "),e("div",{staticClass:"row h-100 bg-light justify-content-center"},[e("div",{staticClass:"col-12 col-md-10 col-lg-6"},[t.emptyFeed?e("div",{staticClass:"mt-5"},[e("h1",{staticClass:"font-weight-bold"},[t._v("Welcome to Pixelfed Groups!")]),t._v(" "),e("p",{staticClass:"lead"},[t._v("Groups are a way to participate in like minded communities and topics.")]),t._v(" "),e("hr",{staticClass:"my-4"}),t._v(" "),t._m(1),t._v(" "),e("p",{staticClass:"text-center mb-0"},[e("router-link",{staticClass:"btn btn-primary btn-lg rounded-pill",attrs:{to:"/groups/discover"}},[t._v("\n Discover Groups\n ")])],1)]):e("div",[e("div",{staticClass:"my-3"},[t._l(t.feed,function(s,a){return e("group-status",{key:"gs:"+s.id+a,attrs:{prestatus:s,profile:t.profile,"show-group-header":!0,group:s.group,"group-id":s.group.id}})}),t._v(" "),t.feed.length>2?e("div",[e("infinite-loading",{attrs:{distance:800},on:{infinite:t.infiniteFeed}},[e("div",{staticClass:"my-3",attrs:{slot:"no-more"},slot:"no-more"},[e("p",{staticClass:"lead font-weight-bold pt-5"},[t._v("You have reached the end of this feed")]),t._v(" "),e("div",{staticStyle:{height:"10rem"}})]),t._v(" "),e("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()],2)])])])])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row bg-light justify-content-center"},[e("div",{staticClass:"col-12 flex-shrink-1"},[e("div",{staticClass:"my-4 px-3"},[e("p",{staticClass:"h1 font-weight-bold mb-1"},[t._v("Groups Feed")]),t._v(" "),e("p",{staticClass:"lead text-muted mb-0"},[t._v("Recent posts from your groups")])])])])},function(){var t=this,e=t._self._c;return e("p",[t._v("Anyone can create and manage their own group as long as it abides by our "),e("a",{attrs:{href:"/site/kb/community-guidelines",target:"_blank"}},[t._v("community guidelines")]),t._v(".")])}]},54479(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"my-groups-component"},[e("div",{staticClass:"list-container"},[t.isLoaded?e("div",[e("div",{staticClass:"list-group"},t._l(t.groups,function(t,s){return e("a",{key:"rec:"+t.id+":"+s,staticClass:"list-group-item text-decoration-none",attrs:{href:t.url}},[e("group-list-card",{attrs:{group:t,truncateDescriptionLength:140,showStats:!0}})],1)}),0),t._v(" "),t.canLoadMore?e("p",[e("button",{staticClass:"btn btn-primary btn-block font-weight-bold mt-3",attrs:{disabled:t.loadingMore},on:{click:function(e){return e.preventDefault(),t.loadMore.apply(null,arguments)}}},[t._v("\n \t\tLoad more\n \t")])]):t._e()]):e("div",{staticClass:"d-flex justify-content-center"},[e("b-spinner")],1)])])},o=[]},75891(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){this._self._c;return this._m(0)},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-9",staticStyle:{height:"100vh - 51px !important",overflow:"hidden"}},[e("div",{staticClass:"row h-100"},[e("div",{staticClass:"col-12 col-md-8 bg-lighter border-left"},[e("div",{staticClass:"p-4 mb-4"},[e("p",{staticClass:"h4 font-weight-bold mb-1 text-center"},[t._v("Group Invitations")])]),t._v(" "),e("div",{staticClass:"p-4 mb-4"},[e("p",{staticClass:"font-weight-bold text-center text-muted"},[t._v("You don't have any group invites")])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4 bg-white border-left"},[e("div",{staticClass:"p-4"},[e("div",{staticClass:"bg-light rounded-lg border p-3"},[e("p",{staticClass:"lead font-weight-bold mb-0"},[t._v("Send Invite")]),t._v(" "),e("p",{staticClass:"mb-3"},[t._v("Invite friends to your groups")]),t._v(" "),e("div",{staticClass:"form-group",staticStyle:{position:"relative"}},[e("span",{staticStyle:{position:"absolute",top:"50%",transform:"translateY(-50%)",left:"15px","padding-right":"5px"}},[e("i",{staticClass:"fas fa-search text-lighter"})]),t._v(" "),e("input",{staticClass:"form-control bg-white rounded-pill",staticStyle:{"padding-left":"40px"},attrs:{placeholder:"Search username..."}})])])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"p-4 mb-2"},[e("p",{staticClass:"h4 font-weight-bold mb-1 text-center"},[t._v("Invitations Sent")])]),t._v(" "),e("div",{staticClass:"px-4 mb-4"},[e("p",{staticClass:"font-weight-bold text-center text-muted"},[t._v("You have not sent any group invites")])])])])])}]},25836(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-notification-component col-12 col-md-9",staticStyle:{height:"100vh - 51px !important",overflow:"hidden"}},[e("div",{staticClass:"row h-100 bg-white"},[e("div",{staticClass:"col-12 col-md-8 border-left"},[e("div",{staticClass:"px-5"},[t._m(0),t._v(" "),t._l(t.notifications,function(s,a){return t.notifications.length>0?e("div",{staticClass:"nitem card card-body shadow-none mb-3 py-2 px-0 rounded-pill",staticStyle:{"background-color":"#F3F4F6"}},[e("div",{staticClass:"media align-items-center px-3"},[e("img",{staticClass:"mr-3 rounded-circle",staticStyle:{border:"1px solid #ccc"},attrs:{src:s.account.avatar,alt:"",width:"32px",height:"32px"}}),t._v(" "),e("div",{staticClass:"media-body"},["group:like"==s.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{attrs:{href:t.getProfileUrl(s.account),"data-placement":"bottom","data-toggle":"tooltip",title:s.account.username}},[t._v(t._s(0==s.account.local?"@":"")+t._s(t.truncate(s.account.username)))]),t._v(" liked your "),e("a",{attrs:{href:t.getPostUrl(s.status)}},[t._v("post")]),t._v(" in "),e("a",{attrs:{href:s.group.url}},[t._v(t._s(s.group.name))])])]):"group:comment"==s.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(s.account),title:s.account.username}},[t._v(t._s(0==s.account.local?"@":"")+t._s(t.truncate(s.account.username)))]),t._v(" commented on your "),e("a",{staticClass:"font-weight-bold",attrs:{href:s.status.url}},[t._v("post")]),t._v(" in "),e("a",{attrs:{href:s.group.url}},[t._v(t._s(s.group.name))])])]):"mention"==s.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{attrs:{href:t.getProfileUrl(s.account),"data-placement":"bottom","data-toggle":"tooltip",title:s.account.username}},[t._v(t._s(0==s.account.local?"@":"")+t._s(t.truncate(s.account.username)))]),t._v(" "),e("a",{attrs:{href:t.mentionUrl(s.status)}},[t._v("mentioned")]),t._v(" you.\n\t\t\t\t\t\t\t\t\t")])]):"group.join.approved"==s.type?e("div",[e("p",{staticClass:"my-0"},[t._v("\n\t\t\t\t\t\t\t\t\t\tYour application to join "),e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:s.group.url,title:s.group.name}},[t._v(t._s(t.truncate(s.group.name)))]),t._v(" was approved!\n\t\t\t\t\t\t\t\t\t")])]):"group.join.rejected"==s.type?e("div",[e("p",{staticClass:"my-0"},[t._v("\n\t\t\t\t\t\t\t\t\t\tYour application to join "),e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:s.group.url,title:s.group.name}},[t._v(t._s(t.truncate(s.group.name)))]),t._v(" was rejected. You can re-apply to join in 6 months.\n\t\t\t\t\t\t\t\t\t")])]):e("div",[e("p",{staticClass:"my-0"},[t._v("Cannot display notification")])])]),t._v(" "),e("div",[e("div",{staticClass:"align-items-center text-muted"},[e("span",{staticClass:"small",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:s.created_at}},[t._v(t._s(t.timeAgo(s.created_at)))]),t._v(" "),e("span",[t._v("ยท")]),t._v(" "),t._m(1,!0)])])])]):t._e()})],2)]),t._v(" "),e("div",{staticClass:"col-12 col-md-4 border-left bg-light"})])])},o=[function(){var t=this._self._c;return t("div",{staticClass:"my-4"},[t("p",{staticClass:"h1 font-weight-bold mb-1"},[this._v("Group Notifications")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"dropdown d-inline"},[e("a",{staticClass:"dropdown-toggle text-lighter",attrs:{href:"#",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e("i",{staticClass:"far fa-cog fa-sm"})]),t._v(" "),e("div",{staticClass:"dropdown-menu dropdown-menu-right"},[e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"}},[t._v("Dismiss")]),t._v(" "),e("div",{staticClass:"dropdown-divider"}),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"}},[t._v("Help")]),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"}},[t._v("Report")])])])}]},5328(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-9",staticStyle:{height:"100vh - 51px !important",overflow:"hidden"}},[e("div",{staticClass:"row h-100 bg-lighter"},[e("div",{staticClass:"col-12 col-md-8 border-left"},[t._m(0),t._v(" "),e("div",{staticClass:"mb-5"},[e("div",{staticClass:"p-4 mb-4"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Group URL")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.q,expression:"q"}],staticClass:"form-control form-control-lg rounded-pill bg-white border",attrs:{type:"text",placeholder:"https://pixelfed.social/groups/328323406233735168"},domProps:{value:t.q},on:{input:function(e){e.target.composing||(t.q=e.target.value)}}})]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-block btn-lg rounded-pill font-weight-bold"},[t._v("Search")])])])]),t._v(" "),t._m(1)])])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-center"},[e("div",{staticClass:"p-4 mb-4"},[e("p",{staticClass:"h4 font-weight-bold mb-1"},[t._v("Find a Remote Group")]),t._v(" "),e("p",{staticClass:"lead text-muted"},[t._v("Search and explore remote federated groups.")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-4 bg-white border-left"},[e("div",{staticClass:"my-4"},[e("h4",{staticClass:"font-weight-bold"},[t._v("Tips")]),t._v(" "),e("ul",{staticClass:"pl-3"},[e("li",{staticClass:"font-weight-bold"},[t._v("Some remote groups are not supported*")]),t._v(" "),e("li",[t._v("Read and comply with group rules defined by group admins")]),t._v(" "),e("li",[t._v("Use the full "),e("span",{staticClass:"font-weight-bold"},[t._v("Group URL")]),t._v(" including "),e("code",[t._v("https://")])]),t._v(" "),e("li",[t._v("Joining private groups requires manual approval from group admins, you will recieve a notification when your membership is approved")]),t._v(" "),e("li",[t._v("Inviting people to remote groups is not supported yet")]),t._v(" "),e("li",[t._v("Your group membership may be terminated at any time by group admins")])]),t._v(" "),e("p",{staticClass:"small"},[t._v("* Some remote groups may not be compatible, we are working to support other group implementations")])])])}]},48375(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t,e,s=this,a=s._self._c;return a("div",{staticClass:"group-post-header media"},[s.showGroupHeader?a("div",{staticClass:"mb-1",staticStyle:{position:"relative"}},[s.group.hasOwnProperty("metadata")&&(s.group.metadata.hasOwnProperty("avatar")||s.group.metadata.hasOwnProperty("header"))?a("img",{staticClass:"rounded-lg box-shadow mr-2",staticStyle:{"object-fit":"cover"},attrs:{src:s.group.metadata.hasOwnProperty("header")?s.group.metadata.header.url:s.group.metadata.avatar.url,width:"52",height:"52",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}}):a("span",{staticClass:"d-block rounded-lg box-shadow mr-2 bg-primary",staticStyle:{width:"52px",height:"52px"}}),s._v(" "),a("img",{staticClass:"rounded-circle box-shadow border mr-2",staticStyle:{position:"absolute",bottom:"-4px",right:"-4px"},attrs:{src:s.status.account.avatar,width:"36",height:"36",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]):a("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:s.status.account.avatar,width:"42",height:"42",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}}),s._v(" "),a("div",{staticClass:"media-body"},[a("div",{staticClass:"pl-2 d-flex align-items-top"},[a("div",[a("p",{staticClass:"mb-0"},[s.showGroupHeader&&s.group?a("router-link",{staticClass:"group-name-link username",attrs:{to:"/groups/".concat(s.status.gid)}},[s._v("\n "+s._s(s.group.name)+"\n ")]):a("router-link",{staticClass:"group-name-link username",attrs:{to:"/groups/".concat(s.status.gid,"/user/").concat(null===(t=s.status)||void 0===t?void 0:t.account.id)},domProps:{innerHTML:s._s(s.statusCardUsernameFormat(s.status))}},[s._v("\n Loading...\n ")]),s._v(" "),s.showGroupChevron?a("span",[s._m(0),s._v(" "),a("span",[a("router-link",{staticClass:"group-name-link",attrs:{to:"/groups/".concat(s.status.gid)}},[s._v("\n "+s._s(s.group.name)+"\n ")])],1)]):s._e()],1),s._v(" "),a("p",{staticClass:"mb-0 mt-n1"},[s.showGroupHeader&&s.group?a("span",{staticStyle:{"font-size":"13px"}},[a("router-link",{staticClass:"group-name-link-small username",attrs:{to:"/groups/".concat(s.status.gid,"/user/").concat(null===(e=s.status)||void 0===e?void 0:e.account.id)},domProps:{innerHTML:s._s(s.statusCardUsernameFormat(s.status))}},[s._v("\n Loading...\n ")]),s._v(" "),a("span",{staticClass:"text-lighter",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[s._v("ยท")]),s._v(" "),a("router-link",{staticClass:"font-weight-light text-muted",attrs:{to:"/groups/".concat(s.status.gid,"/p/").concat(s.status.id)}},[s._v("\n "+s._s(s.shortTimestamp(s.status.created_at))+"\n ")]),s._v(" "),a("span",{staticClass:"text-lighter",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[s._v("ยท")]),s._v(" "),s._m(1)],1):a("span",[a("router-link",{staticClass:"font-weight-light text-muted small",attrs:{to:"/groups/".concat(s.status.gid,"/p/").concat(s.status.id)}},[s._v("\n "+s._s(s.shortTimestamp(s.status.created_at))+"\n ")]),s._v(" "),a("span",{staticClass:"text-lighter",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[s._v("ยท")]),s._v(" "),s._m(2)],1)])]),s._v(" "),s.profile?a("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[a("div",{staticClass:"dropdown"},[s._m(3),s._v(" "),a("div",{staticClass:"dropdown-menu dropdown-menu-right"},[a("a",{staticClass:"dropdown-item",attrs:{href:s.statusUrl()}},[s._v("View Post")]),s._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:s.profileUrl()}},[s._v("View Profile")]),s._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.sendReport()}}},[s._v("Report")]),s._v(" "),a("div",{staticClass:"dropdown-divider"}),s._v(" "),a("a",{staticClass:"dropdown-item text-danger",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.onDelete()}}},[s._v("Delete")])])])]):s._e()])])])},o=[function(){var t=this._self._c;return t("span",{staticClass:"text-muted",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[t("i",{staticClass:"fas fa-caret-right"})])},function(){var t=this._self._c;return t("span",{staticClass:"text-muted"},[t("i",{staticClass:"fas fa-globe"})])},function(){var t=this._self._c;return t("span",{staticClass:"text-muted small"},[t("i",{staticClass:"fas fa-globe"})])},function(){var t=this._self._c;return t("button",{staticClass:"btn btn-link dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-expanded":"false"}},[t("span",{staticClass:"fas fa-ellipsis-h text-lighter"})])}]},70560(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card shadow-sm",staticStyle:{"border-radius":"18px !important"}},[e("div",{staticClass:"card-body pb-0"},[t._m(0),t._v(" "),e("div",[t.showCommentDrawer?e("comment-drawer",{attrs:{"permalink-mode":t.permalinkMode,"permalink-status":t.childContext,status:t.status,profile:t.profile,"group-id":t.groupId,"can-reply":!1}}):t._e()],1)])])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body border shadow-none mb-3",staticStyle:{"background-color":"#E5E7EB"}},[e("div",{staticClass:"media p-md-4"},[e("div",{staticClass:"mr-4 pt-2"},[e("i",{staticClass:"fas fa-lock fa-2x"})]),t._v(" "),e("div",{staticClass:"media-body",staticStyle:{"max-width":"320px"}},[e("p",{staticClass:"lead font-weight-bold mb-1"},[t._v("This content isn't available right now")]),t._v(" "),e("p",{staticClass:"mb-0",staticStyle:{"font-size":"12px","letter-spacing":"-0.3px"}},[t._v("When this happens, it's usually because the owner only shared it with a small group of people, changed who can see it, or it's been deleted.")])])])])}]},18389(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",[e("details",{staticClass:"details-animated"},[e("summary",[e("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.status.spoiler_text?t.status.spoiler_text:"CW / NSFW / Hidden Media"))]),t._v(" "),e("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),e("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,function(s,a){return e("b-carousel-slide",{key:s.id+"-media"},["video"==s.type?e("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:s.description,width:"100%",height:"100%"},slot:"img"},[e("source",{attrs:{src:s.url,type:s.mime}})]):"image"==s.type?e("div",{attrs:{slot:"img",title:s.description},slot:"img"},[e("img",{class:s.filter_class+" d-block img-fluid w-100",attrs:{src:s.url,alt:s.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):e("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])}),1)],1)]):e("div",{staticClass:"w-100 h-100 p-0"},[e("carousel",{ref:"carousel",staticClass:"p-0 m-0",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb"}},t._l(t.status.media_attachments,function(s,a){return e("slide",{key:"px-carousel-"+s.id+"-"+a,staticClass:"w-100 h-100 d-block mx-auto text-center",staticStyle:{background:"#000",display:"flex","align-items":"center"}},["video"==s.type?e("video",{staticClass:"embed-responsive-item",attrs:{preload:"none",controls:"",loop:"",title:s.description,width:"100%",height:"100%"}},[e("source",{attrs:{src:s.url,type:s.mime}})]):"image"==s.type?e("div",{attrs:{title:s.description}},[e("img",{class:s.filter_class+" img-fluid w-100",attrs:{src:s.url,alt:s.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):e("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])}),1)],1)},o=[]},28691(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",{staticClass:"content-label-wrapper"},[e("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),e("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),e("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This album may contain sensitive content.")+"\n\t\t")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),e("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):e("div",{staticClass:"w-100 h-100 p-0 album-wrapper"},[e("carousel",{ref:"carousel",staticClass:"p-0 m-0",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb",id:"carousel-"+t.status.id}},t._l(t.status.media_attachments,function(s,a){return e("slide",{key:"px-carousel-"+s.id+"-"+a,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:s.description}},[e("img",{staticClass:"img-fluid w-100 p-0",attrs:{src:s.url,alt:t.altText(s),loading:"lazy","data-bp":s.url,onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})])}),1),t._v(" "),e("div",{staticClass:"album-overlay"},[!t.status.sensitive&&t.sensitive?e("p",{staticStyle:{"margin-top":"0",padding:"10px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",top:"0",right:"0","border-top-left-radius":"5px",cursor:"pointer",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"},on:{click:function(e){t.status.sensitive=!0}}},[e("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),e("p",{staticStyle:{"margin-top":"0",padding:"10px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",left:"0",top:"0","border-bottom-right-radius":"5px",cursor:"pointer",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"},on:{click:function(e){return e.preventDefault(),t.toggleLightbox.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-expand fa-lg"})]),t._v(" "),t.status.media_attachments[0].license?e("p",{staticStyle:{"margin-bottom":"0",padding:"0 5px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",bottom:"0",right:"0","border-top-left-radius":"5px",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"}},[e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.account.url}},[t._v("@"+t._s(t.status.account.username))]),t._v(" licensed under "),e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.media_attachments[0].license.url}},[t._v(t._s(t.status.media_attachments[0].license.title))])]):t._e()])],1)},o=[function(){var t=this._self._c;return t("p",{staticClass:"text-center"},[t("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},20671(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",{staticClass:"content-label-wrapper"},[e("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),e("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n "+t._s(t.isFiltered?"Filtered Content":"Sensitive Content")+"\n ")]),t._v(" "),e("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n "+t._s(t.status.spoiler_text?t.status.spoiler_text:"This post may contain sensitive content.")+"\n ")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),e("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):e("div",[e("div",{staticStyle:{position:"relative"},attrs:{title:t.status.media_attachments[0].description}},[e("img",{staticClass:"card-img-top",attrs:{src:t.status.media_attachments[0].url,loading:"lazy",alt:t.altText(t.status),width:t.width(),height:t.height(),onerror:"this.onerror=null;this.src='/storage/no-preview.png'"},on:{click:function(e){return e.preventDefault(),t.toggleLightbox.apply(null,arguments)}}}),t._v(" "),!t.status.sensitive&&t.sensitive?e("p",{staticClass:"sensitive-curtain",on:{click:function(e){t.status.sensitive=!0}}},[e("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?e("p",{staticClass:"photo-license"},[e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.account.url}},[t._v("@"+t._s(t.status.account.username))]),t._v(" licensed under "),e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.media_attachments[0].license.url}},[t._v(t._s(t.status.media_attachments[0].license.title))])]):t._e()])])},o=[function(){var t=this._self._c;return t("p",{staticClass:"text-center"},[t("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},12024(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",[e("details",{staticClass:"details-animated"},[e("summary",[e("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.status.spoiler_text?t.status.spoiler_text:"CW / NSFW / Hidden Media"))]),t._v(" "),e("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),e("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,function(t,s){return e("b-carousel-slide",{key:t.id+"-media"},[e("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[e("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)]):e("div",[e("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,function(t,s){return e("b-carousel-slide",{key:t.id+"-media"},[e("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[e("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)},o=[]},75593(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",{staticClass:"content-label-wrapper"},[e("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),e("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),e("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This post may contain sensitive content.")+"\n\t\t")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),e("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):e("div",{staticClass:"embed-responsive embed-responsive-16by9"},[e("video",{staticClass:"video",attrs:{controls:"",playsinline:"","webkit-playsinline":"",preload:"metadata",loop:"","data-id":t.status.id,poster:t.poster()}},[e("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},o=[function(){var t=this._self._c;return t("p",{staticClass:"text-center"},[t("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},45322(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-stack"},[e("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("View Post")]):t._e(),t._v(" "),"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToProfile()}}},[t._v("View Profile")]):t._e(),t._v(" "),"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuShare()}}},[t._v("Share")]):t._e(),t._v(" "),t.status&&t.profile&&1==t.profile.is_admin&&"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxModMenuShow()}}},[t._v("Moderation Tools")]):t._e(),t._v(" "),t.status&&t.status.account.id!=t.profile.id?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("Report")]):t._e(),t._v(" "),t.status&&t.profile.id==t.status.account.id&&"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.archivePost(t.status)}}},[t._v("Archive")]):t._e(),t._v(" "),t.status&&t.profile.id==t.status.account.id&&"archived"==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.unarchivePost(t.status)}}},[t._v("Unarchive")]):t._e(),t._v(" "),t.status&&(t.profile.is_admin||t.profile.id==t.status.account.id)&&"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxModModal",attrs:{id:"ctx-mod-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"unlist")}}},[t._v("Unlist from Timelines")]),t._v(" "),t.status.sensitive?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"addcw")}}},[t._v("Add Content Warning")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"spammer")}}},[t._v("\n\t\t\t\tMark as Spammer"),e("br"),t._v(" "),e("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxModOtherModal",attrs:{id:"ctx-mod-other-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxShareModal",attrs:{id:"ctx-share-modal",title:"Share","hide-footer":"","hide-header":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded text-center"}},[e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.shareStatus(t.status,e)}}},[t._v(t._s(t.status.reblogged?"Unshare":"Share")+" to Followers")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.status&&1==t.status.local&&!t.status.in_reply_to_id?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v("Embed")]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),e("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[e("div",[e("div",{staticClass:"form-group"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedPayload,expression:"ctxEmbedPayload"}],staticClass:"form-control disabled text-monospace",staticStyle:{"overflow-y":"hidden",border:"1px solid #efefef","font-size":"12px","line-height":"18px",margin:"0 0 7px",resize:"none"},attrs:{rows:"8",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[e("div",{staticClass:"form-check mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowCaption,expression:"ctxEmbedShowCaption"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowCaption)?t._i(t.ctxEmbedShowCaption,null)>-1:t.ctxEmbedShowCaption},on:{change:function(e){var s=t.ctxEmbedShowCaption,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.ctxEmbedShowCaption=s.concat([null])):i>-1&&(t.ctxEmbedShowCaption=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedShowCaption=o}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Caption\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowLikes,expression:"ctxEmbedShowLikes"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowLikes)?t._i(t.ctxEmbedShowLikes,null)>-1:t.ctxEmbedShowLikes},on:{change:function(e){var s=t.ctxEmbedShowLikes,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.ctxEmbedShowLikes=s.concat([null])):i>-1&&(t.ctxEmbedShowLikes=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedShowLikes=o}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Likes\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedCompactMode,expression:"ctxEmbedCompactMode"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.ctxEmbedCompactMode)?t._i(t.ctxEmbedCompactMode,null)>-1:t.ctxEmbedCompactMode},on:{change:function(e){var s=t.ctxEmbedCompactMode,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.ctxEmbedCompactMode=s.concat([null])):i>-1&&(t.ctxEmbedCompactMode=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedCompactMode=o}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tCompact Mode\n\t\t\t\t\t")])])]),t._v(" "),e("hr"),t._v(" "),e("button",{class:t.copiedEmbed?"btn btn-primary btn-block btn-sm py-1 font-weight-bold disabed":"btn btn-primary btn-block btn-sm py-1 font-weight-bold",attrs:{disabled:t.copiedEmbed},on:{click:t.ctxCopyEmbed}},[t._v(t._s(t.copiedEmbed?"Embed Code Copied!":"Copy Embed Code"))]),t._v(" "),e("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),e("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),e("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group text-center"},[e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("sensitive")}}},[t._v("Sensitive Content")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("abusive")}}},[t._v("Abusive or Harmful")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxReportOther",attrs:{id:"ctx-report-other","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group text-center"},[e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("underage")}}},[t._v("Underage Account")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("copyright")}}},[t._v("Copyright Infringement")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("scam")}}},[t._v("Scam or Fraud")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[e("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),e("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[e("button",{staticClass:"btn btn-outline-lighter border-left-0 border-top-0 border-bottom-0 border-right py-2",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalCancel()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-outline-lighter border-0",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalConfirm()}}},[t._v("Confirm")])])])],1)},o=[]},28995(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"card shadow-none rounded-0",class:{border:t.showBorder,"border-top-0":!t.showBorderTop}},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"media"},[e("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",alt:"avatar"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"pl-2 d-flex align-items-top"},[e("a",{staticClass:"username font-weight-bold text-dark text-decoration-none text-break",attrs:{href:"#"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"px-1 text-lighter"},[t._v("\n\t\t\t\t\t\t\tยท\n\t\t\t\t\t\t")]),t._v(" "),e("a",{staticClass:"font-weight-bold text-lighter",attrs:{href:t.statusUrl(t.status)}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.shortTimestamp(t.status.created_at))+"\n\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"d-none d-md-block px-1 text-lighter"},[t._v("\n\t\t\t\t\t\t\tยท\n\t\t\t\t\t\t")]),t._v(" "),t._m(0),t._v(" "),e("span",{staticClass:"d-none d-md-block px-1 text-lighter"},[t._v("\n\t\t\t\t\t\t\tยท\n\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"d-none d-md-block px-1 text-lighter font-weight-bold"},[t.status.poll.expired?e("span",[t._v("\n\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t")]):e("span",[t._v("\n\t\t\t\t\t\t\t\tCloses in "+t._s(t.shortTimestampAhead(t.status.poll.expires_at))+"\n\t\t\t\t\t\t\t")])]),t._v(" "),e("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[e("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),e("div",{staticClass:"pl-2"},[e("div",{staticClass:"poll py-3"},[e("div",{staticClass:"pt-2 text-break d-flex align-items-center mb-3",staticStyle:{"font-size":"17px"}},[t._m(1),t._v(" "),e("span",{staticClass:"font-weight-bold ml-3",domProps:{innerHTML:t._s(t.status.content)}})]),t._v(" "),e("div",{staticClass:"mb-2"},["vote"===t.tab?e("div",[t._l(t.status.poll.options,function(s,a){return e("p",[e("button",{staticClass:"btn btn-block lead rounded-pill",class:[a==t.selectedIndex?"btn-primary":"btn-outline-primary"],attrs:{disabled:!t.authenticated},on:{click:function(e){return t.selectOption(a)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(s.title)+"\n\t\t\t\t\t\t\t\t\t\t")])])}),t._v(" "),null!=t.selectedIndex?e("p",{staticClass:"text-right"},[e("button",{staticClass:"btn btn-primary btn-sm font-weight-bold px-3",on:{click:function(e){return t.submitVote()}}},[t._v("Vote")])]):t._e()],2):"voted"===t.tab?e("div",t._l(t.status.poll.options,function(s,a){return e("div",{staticClass:"mb-3"},[e("button",{staticClass:"btn btn-block lead rounded-pill",class:[a==t.selectedIndex?"btn-primary":"btn-outline-secondary"],attrs:{disabled:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(s.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"font-weight-bold"},[e("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(s))+"%")]),t._v(" "),e("span",{staticClass:"small text-lighter"},[t._v("("+t._s(s.votes_count)+" "+t._s(1==s.votes_count?"vote":"votes")+")")])])])}),0):"results"===t.tab?e("div",t._l(t.status.poll.options,function(s,a){return e("div",{staticClass:"mb-3"},[e("button",{staticClass:"btn btn-outline-secondary btn-block lead rounded-pill",attrs:{disabled:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(s.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"font-weight-bold"},[e("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(s))+"%")]),t._v(" "),e("span",{staticClass:"small text-lighter"},[t._v("("+t._s(s.votes_count)+" "+t._s(1==s.votes_count?"vote":"votes")+")")])])])}),0):t._e()]),t._v(" "),e("div",[e("p",{staticClass:"mb-0 small text-lighter font-weight-bold d-flex justify-content-between"},[e("span",[t._v(t._s(t.status.poll.votes_count)+" votes")]),t._v(" "),"results"!=t.tab&&t.authenticated&&!t.activeRefreshTimeout&&1!=t.status.poll.expired&&t.status.poll.voted?e("a",{staticClass:"text-lighter",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.refreshResults()}}},[t._v("Refresh Results")]):t._e(),t._v(" "),"results"!=t.tab&&t.authenticated&&t.refreshingResults?e("span",{staticClass:"text-lighter"},[t._m(2)]):t._e()])]),t._v(" "),e("div",[e("span",{staticClass:"d-block d-md-none small text-lighter font-weight-bold"},[t.status.poll.expired?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t\t\t")]):e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tCloses in "+t._s(t.shortTimestampAhead(t.status.poll.expires_at))+"\n\t\t\t\t\t\t\t\t\t")])])])])])])])])]),t._v(" "),e("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},o=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"d-none d-md-block px-1 text-primary font-weight-bold"},[e("i",{staticClass:"fas fa-poll-h"}),t._v(" Poll "),e("sup",{staticClass:"text-lighter"},[t._v("BETA")])])},function(){var t=this._self._c;return t("span",{staticClass:"btn btn-primary px-2 py-1"},[t("i",{staticClass:"fas fa-poll-h fa-lg"})])},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...")])])}]},73386(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"status-card-component",class:{"status-card-sm":"small"===t.size}},["text"===t.status.pf_type?e("div",{staticClass:"card shadow-none border rounded-0",class:{"border-top-0":!t.hasTopBorder}},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"media"},[e("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"pl-2 d-flex align-items-top"},[e("a",{staticClass:"username font-weight-bold text-dark text-decoration-none text-break",attrs:{href:t.profileUrl(t.status)},domProps:{innerHTML:t._s(t.statusCardUsernameFormat(t.status))}}),t._v(" "),e("span",{staticClass:"px-1 text-lighter"},[t._v("\n\t\t\t\t\t\t\tยท\n\t\t\t\t\t\t")]),t._v(" "),e("a",{staticClass:"font-weight-bold text-lighter",attrs:{href:t.statusUrl(t.status)}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.shortTimestamp(t.status.created_at))+"\n\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[e("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),e("div",{staticClass:"pl-2"},[t.status.sensitive?e("details",[e("summary",{staticClass:"mb-2 font-weight-bold text-muted"},[t._v("Content Warning")]),t._v(" "),e("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}})]):e("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}}),t._v(" "),e("p",{staticClass:"mb-0"},[e("i",{staticClass:"fa-heart fa-lg cursor-pointer mr-3",class:{"far text-muted":!t.status.favourited,"fas text-danger":t.status.favourited},on:{click:function(e){return t.likeStatus(t.status,e)}}}),t._v(" "),e("i",{staticClass:"far fa-comment cursor-pointer text-muted fa-lg mr-3",on:{click:function(e){return t.commentFocus(t.status,e)}}})])])])])])]):"poll"===t.status.pf_type?e("div",[e("poll-card",{attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1):e("div",{staticClass:"card rounded-0 border-top-0 status-card card-md-rounded-0 shadow-none border"},[t.status?e("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[e("div",[e("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]),t._v(" "),e("div",{staticClass:"pl-2"},[e("a",{staticClass:"username font-weight-bold text-dark text-decoration-none text-break",attrs:{href:t.profileUrl(t.status)},domProps:{innerHTML:t._s(t.statusCardUsernameFormat(t.status))}}),t._v(" "),t.status.account.is_admin?e("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[e("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),e("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[t.status.place?e("a",{staticClass:"small text-decoration-none text-muted",attrs:{href:"/discover/places/"+t.status.place.id+"/"+t.status.place.slug,title:"Location","data-toggle":"tooltip"}},[e("i",{staticClass:"fas fa-map-marked-alt"}),t._v(" "+t._s(t.status.place.name)+", "+t._s(t.status.place.country))]):t._e()])]),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[e("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]):t._e(),t._v(" "),e("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video:album"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):e("div",{staticClass:"w-100"},[e("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])]),t._v(" "),e("div",{staticClass:"card-body"},[t.reactionBar?e("div",{staticClass:"reactions my-1 pb-2"},[t.status.favourited?e("h3",{staticClass:"fas fa-heart text-danger pr-3 m-0 cursor-pointer",attrs:{title:"Like"},on:{click:function(e){return t.likeStatus(t.status,e)}}}):e("h3",{staticClass:"fal fa-heart pr-3 m-0 like-btn text-dark cursor-pointer",attrs:{title:"Like"},on:{click:function(e){return t.likeStatus(t.status,e)}}}),t._v(" "),t.status.comments_disabled?t._e():e("h3",{staticClass:"fal fa-comment text-dark pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(e){return t.commentFocus(t.status,e)}}}),t._v(" "),t.status.taggedPeople.length?e("span",{staticClass:"float-right"},[e("span",{staticClass:"font-weight-light small",staticStyle:{color:"#718096"}},[e("i",{staticClass:"far fa-user",attrs:{"data-toggle":"tooltip",title:"Tagged People"}}),t._v(" "),t._l(t.status.taggedPeople,function(t,s){return e("span",{staticClass:"mr-n2"},[e("a",{attrs:{href:"/"+t.username}},[e("img",{staticClass:"border rounded-circle",attrs:{src:t.avatar,width:"20px",height:"20px","data-toggle":"tooltip",title:"@"+t.username,alt:"Avatar"}})])])})],2)]):t._e()]):t._e(),t._v(" "),t.status.liked_by.username&&t.status.liked_by.username!==t.profile.username?e("div",{staticClass:"likes mb-1"},[e("span",{staticClass:"like-count"},[t._v("Liked by\n\t\t\t\t\t"),e("a",{staticClass:"font-weight-bold text-dark",attrs:{href:t.status.liked_by.url}},[t._v(t._s(t.status.liked_by.username))]),t._v(" "),1==t.status.liked_by.others?e("span",[t._v("\n\t\t\t\t\t\tand "),t.status.liked_by.total_count_pretty?e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.liked_by.total_count_pretty))]):t._e(),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("others")])]):t._e()])]):t._e(),t._v(" "),"text"!=t.status.pf_type?e("div",{staticClass:"caption"},[t.status.sensitive?t._e():e("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[e("span",{staticClass:"username font-weight-bold"},[e("bdi",[e("a",{staticClass:"text-dark",attrs:{href:t.profileUrl(t.status)}},[t._v(t._s(t.status.account.username))])])]),t._v(" "),e("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.content)}})])]):t._e(),t._v(" "),e("div",{staticClass:"timestamp mt-2"},[e("p",{staticClass:"small mb-0"},["archived"!=t.status.visibility?e("a",{staticClass:"text-muted text-uppercase",attrs:{href:t.statusUrl(t.status)}},[e("timeago",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],attrs:{datetime:t.status.created_at,"auto-update":60,"converter-options":{includeSeconds:!0},title:t.timestampFormat(t.status.created_at)}})],1):e("span",{staticClass:"text-muted text-uppercase"},[t._v("\n\t\t\t\t\t\tPosted "),e("timeago",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],attrs:{datetime:t.status.created_at,"auto-update":60,"converter-options":{includeSeconds:!0},title:t.timestampFormat(t.status.created_at)}})],1),t._v(" "),t.recommended?e("span",[e("span",{staticClass:"px-1"},[t._v("ยท")]),t._v(" "),e("span",{staticClass:"text-muted"},[t._v("Based on popular and trending content")])]):t._e()])])])]),t._v(" "),e("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},o=[]},74050(t,e,s){Vue.component("group-component",s(17547).default),Vue.component("groups-home",s(18115).default),Vue.component("group-feed",s(71307).default),Vue.component("group-settings",s(13480).default),Vue.component("group-profile",s(17346).default),Vue.component("groups-invite",s(1544).default)},37365(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".card-img-top[data-v-7066737e]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-7066737e]{position:relative}.content-label[data-v-7066737e]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}.album-wrapper[data-v-7066737e]{position:relative}",""]);const i=o},13373(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".card-img-top[data-v-46f39310]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-46f39310]{position:relative}.content-label[data-v-46f39310]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}.sensitive-curtain[data-v-46f39310]{cursor:pointer;margin-top:0;padding:10px;top:0}.photo-license[data-v-46f39310],.sensitive-curtain[data-v-46f39310]{background:linear-gradient(0deg,rgba(0,0,0,.5),rgba(0,0,0,.5));border-top-left-radius:5px;color:#fff;font-size:10px;position:absolute;right:0;text-align:right}.photo-license[data-v-46f39310]{bottom:0;margin-bottom:0;padding:0 5px}",""]);const i=o},83853(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".content-label-wrapper[data-v-7871d23c]{position:relative}.content-label[data-v-7871d23c]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const i=o},91491(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-component-hero{align-items:center;background-color:#fff;border:1px solid #dee2e6;border-top:0;display:flex;justify-content:space-between;padding:1rem}.group-component-hero h3{margin-bottom:0}",""]);const i=o},53400(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,'.create-group-component .submit-button{width:130px}.create-group-component .multistep{counter-reset:step;margin-bottom:30px;margin-top:30px;overflow:hidden;padding-left:0;text-align:center}.create-group-component .multistep li{color:#b8c2cc;float:left;font-size:9px;font-weight:700;list-style-type:none;position:relative;text-transform:uppercase;width:20%}.create-group-component .multistep li.active{color:#000}.create-group-component .multistep li:before{background:#f3f4f6;border-radius:25px;color:#b8c2cc;content:counter(step);counter-increment:step;display:block;font-size:12px;height:24px;line-height:26px;margin:0 auto 10px;transition:background .4s;width:24px}.create-group-component .multistep li:after{background:#dee2e6;content:"";height:2px;left:-50%;position:absolute;top:11px;transition:background .4s;width:100%;z-index:-1}.create-group-component .multistep li:first-child:after{content:none}.create-group-component .multistep li.active:after,.create-group-component .multistep li.active:before{background:#2c78bf;color:#fff;transition:background .4s}.create-group-component .col-form-label{font-weight:600;text-align:right}',""]);const i=o},55407(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-feed-component-header{align-items:flex-end;background-color:transparent;display:flex;justify-content:space-between;padding:1rem 0}.group-feed-component-header .cta-btn{width:190px}.group-feed-component .header-jumbotron{background-color:#f3f4f6;border-bottom-left-radius:20px;border-bottom-right-radius:20px;height:320px}.group-feed-component-menu{align-items:center;display:flex;justify-content:space-between;padding:0}.group-feed-component-menu-nav .nav-item .nav-link{color:#6c757d;padding-bottom:1rem;padding-top:1rem}.group-feed-component-menu-nav .nav-item .nav-link.active{border-bottom:2px solid #2c78bf;color:#2c78bf}.group-feed-component-menu-nav:not(last-child) .nav-item{margin-right:14px}.group-feed-component-body{min-height:40vh}.group-feed-component .member-label{background:rgba(137,196,244,.2);border:1px solid rgba(137,196,244,.3);color:#4b77be;font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}.group-feed-component .dropdown-item{font-weight:600}.group-feed-component .remote-label{background:#fef3c7;border:1px solid #fcd34d;color:#b45309;font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}",""]);const i=o},59167(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-invite-component .btn-light{border-color:#e5e7eb}",""]);const i=o},73967(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-profile-component{background-color:#f0f2f5}.group-profile-component .header-jumbotron{background-color:#f3f4f6;border-bottom-left-radius:20px;border-bottom-right-radius:20px;height:320px}.group-profile-component .header-profile-card{align-items:center;display:flex;flex-direction:column;justify-content:center}.group-profile-component .header-profile-card .avatar{border-radius:50%;height:170px;margin-bottom:20px;margin-top:-150px;width:170px}.group-profile-component .header-profile-card .name{font-size:30px;font-weight:700;line-height:30px;margin-bottom:6px;text-align:center}.group-profile-component .header-profile-card .username{font-size:16px;font-weight:500;text-align:center}.group-profile-component .header-navbar{align-items:center;border-top:1px solid #f3f4f6;display:flex;height:60px;justify-content:space-between}.group-profile-component .header-navbar .dropdown{display:inline-block}.group-profile-component .header-navbar .dropdown-toggle:after{display:none}.group-profile-component .group-profile-feed{min-height:500px}.group-profile-component .infolet{margin-bottom:1rem}.group-profile-component .infolet .media-icon{display:flex;justify-content:center;margin-right:10px;width:30px}.group-profile-component .infolet .media-icon i{color:#d1d5db!important;font-size:1.1rem}.group-profile-component .btn-light{border-color:#f3f4f6}",""]);const i=o},19827(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-settings-component-header{align-items:flex-end;background-color:#fff;display:flex;justify-content:space-between;padding:2rem 1rem 1rem}.group-settings-component-header .cta-btn{min-width:140px}",""]);const i=o},91626(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".groups-home-component{font-family:var(--font-family-sans-serif)}.groups-home-component .group-nav-btn{background-color:transparent;border-color:transparent;border-radius:1.5rem;color:#6c757d;display:block;justify-content:flex-start;margin-bottom:.3rem;padding-bottom:.3rem;padding-left:0;padding-top:.3rem;text-align:left;width:100%}.groups-home-component .group-nav-btn.active{background-color:#eff6ff!important;border:1px solid #dbeafe!important;color:#212529}.groups-home-component .group-nav-btn.active .group-nav-btn-icon{background-color:#2c78bf!important;color:#fff!important}.groups-home-component .group-nav-btn-icon{align-items:center;background-color:#e5e7eb;border-radius:17px;display:inline-flex;height:35px;justify-content:center;margin:auto .3rem;padding:12px;width:35px}.groups-home-component .group-nav-btn-name{display:inline-block;font-weight:700;margin-left:.3rem}.groups-home-component .autocomplete-input{background-color:#f8f9fa!important;border-color:transparent;border-radius:50rem;color:#495057;font-size:.9rem;height:2.375rem}.groups-home-component .autocomplete-input:focus,.groups-home-component .autocomplete-input[aria-expanded=true]{box-shadow:none}.groups-home-component .autocomplete-result{background:none;padding:12px}.groups-home-component .autocomplete-result:focus,.groups-home-component .autocomplete-result:hover{background-color:#eff6ff!important}.groups-home-component .autocomplete-result .media img{border-radius:4px;margin-right:.6rem;-o-object-fit:cover;object-fit:cover}.groups-home-component .autocomplete-result .media .icon-placeholder{align-items:center;background-color:#2c78bf;border-radius:4px;color:#fff;display:flex;height:32px;justify-content:center;margin-right:.6rem;width:32px}.groups-home-component .autocomplete-result-list{padding-bottom:0}.groups-home-component .fade-enter-active,.groups-home-component .fade-leave-active{transition:opacity .2s}.groups-home-component .fade-enter,.groups-home-component .fade-leave-to{opacity:0}",""]);const i=o},92520(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,'.comment-drawer-component .media{position:relative}.comment-drawer-component .media .comment-border-link{background-clip:padding-box;background-color:#e5e7eb;border-left:4px solid transparent;border-right:4px solid transparent;display:block;height:calc(100% - 100px);left:11px;position:absolute;top:40px;width:10px}.comment-drawer-component .media .comment-border-link:hover{background-color:#bfdbfe}.comment-drawer-component .media .child-reply-form{position:relative}.comment-drawer-component .media .comment-border-arrow{background-clip:padding-box;background-color:#e5e7eb;border-bottom:2px solid transparent;border-left:4px solid transparent;border-right:4px solid transparent;display:block;height:29px;left:-33px;position:absolute;top:-6px;width:10px}.comment-drawer-component .media .comment-border-arrow:after{background-color:#e5e7eb;content:"";display:block;height:2px;left:2px;position:absolute;top:25px;width:15px}.comment-drawer-component .media-status{margin-bottom:1.3rem}.comment-drawer-component .media-avatar{margin-right:12px}.comment-drawer-component .media-body-comment{background-color:var(--comment-bg);border-radius:.9rem;padding:.4rem .7rem;width:-moz-fit-content;width:fit-content}.comment-drawer-component .media-body-comment-username{color:#000;font-size:14px;font-weight:700!important;margin-bottom:.25rem!important}.comment-drawer-component .media-body-comment-username a{color:#000;text-decoration:none}.comment-drawer-component .media-body-comment-content{font-size:16px;margin-bottom:0}.comment-drawer-component .media-body-reactions{color:#b8c2cc!important;font-size:12px;margin-bottom:0!important;margin-top:.25rem!important}.comment-drawer-component .load-more-comments{font-weight:500}.comment-drawer-component .reply-form{margin-bottom:2rem}.comment-drawer-component .reply-form-input{flex:1;position:relative}.comment-drawer-component .reply-form-input textarea{border-radius:10px}.comment-drawer-component .reply-form-input .form-control{padding-right:100px;resize:none}.comment-drawer-component .reply-form-input-actions{position:absolute;right:10px;top:50%;transform:translateY(-50%)}.comment-drawer-component .reply-form .btn{text-decoration:none}.comment-drawer-component .reply-form-menu{margin-top:5px}.comment-drawer-component .reply-form-menu .char-counter{color:var(--muted);font-size:10px}.comment-drawer-component .bh-comment,.comment-drawer-component .bh-comment img,.comment-drawer-component .bh-comment span{height:auto;max-height:260px!important;max-width:160px!important;width:100%}.comment-drawer-component .bh-comment img{-o-object-fit:cover;object-fit:cover}',""]);const i=o},34682(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,"",""]);const i=o},20082(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,"",""]);const i=o},92155(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-info-card .title[data-v-9d095298]{font-size:16px;font-weight:700}.group-info-card .description[data-v-9d095298]{color:#6c757d;font-size:15px;font-weight:400;margin-bottom:0;white-space:break-spaces}.group-info-card .fact[data-v-9d095298]{align-items:center;display:flex;margin-bottom:1.5rem}.group-info-card .fact-body[data-v-9d095298]{flex:1}.group-info-card .fact-icon[data-v-9d095298]{text-align:center;width:50px}.group-info-card .fact-title[data-v-9d095298]{font-size:17px;font-weight:500;margin-bottom:0}.group-info-card .fact-subtitle[data-v-9d095298]{color:#6c757d;font-size:14px;margin-bottom:0}",""]);const i=o},25730(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-invite-modal-wrapper .media{border-radius:10px;cursor:pointer;height:60px;padding:10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.group-invite-modal-wrapper .media:hover{background-color:#e5e7eb}",""]);const i=o},42500(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-list-card .member-label[data-v-102531e6]{background:rgba(137,196,244,.2);border:1px solid rgba(137,196,244,.3);border-radius:3px;color:#4b77be}.group-list-card .member-label[data-v-102531e6],.group-list-card .remote-label[data-v-102531e6]{font-size:9px;font-weight:500;padding:2px 5px;text-transform:capitalize}.group-list-card .remote-label[data-v-102531e6]{background:#fef3c7;border:1px solid #fcd34d;border-radius:3px;color:#b45309}.group-list-card .group-header-img[data-v-102531e6]{height:60px;-o-object-fit:cover;object-fit:cover;padding:0;width:60px}.group-list-card .group-header-img.compact[data-v-102531e6]{height:42.5px;width:42.5px}",""]);const i=o},46262(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".gpm-media{display:flex;width:70%}.gpm-media img{background-color:#000;height:auto;max-height:70vh;-o-object-fit:contain;object-fit:contain;width:100%}.gpm .comment-drawer-component .my-3{max-height:46vh;overflow:auto}.gpm .cdrawer-reply-form{bottom:0;margin-bottom:1rem!important;min-width:310px;position:absolute}",""]);const i=o},14868(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-search-modal-wrapper .media{border-radius:10px;cursor:pointer;height:60px;padding:10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.group-search-modal-wrapper .media:hover{background-color:#e5e7eb}",""]);const i=o},9218(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".status-card-component .status-content{font-size:17px}.status-card-component.status-card-sm .status-content{font-size:14px}.status-card-component.status-card-sm .fa-lg{font-size:unset;line-height:unset;vertical-align:unset}.reaction-bar{border:1px solid #f3f4f6!important;left:-50px!important;max-width:unset;width:auto}.reaction-bar .popover-body{padding:2px}.reaction-bar .arrow{display:none}.reaction-bar img{width:48px}",""]);const i=o},27161(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".header-image[data-v-63bf412f]{border:1px solid var(--light);border-bottom-left-radius:5px;border-bottom-right-radius:5px;height:auto;margin-bottom:0;margin-top:-1px;max-height:220px;-o-object-fit:cover;object-fit:cover;width:100%}@media (min-width:768px){.header-image[data-v-63bf412f]{max-height:420px}}.header-jumbotron[data-v-63bf412f]{background-color:#f3f4f6;border-bottom-left-radius:20px;border-bottom-right-radius:20px;height:320px}",""]);const i=o},73788(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-feed-component-header{align-items:flex-end;background-color:transparent;display:flex;justify-content:space-between;padding:1rem 0}.group-feed-component-header .cta-btn{width:190px}.group-feed-component .member-label{background:rgba(137,196,244,.2);border:1px solid rgba(137,196,244,.3);color:#4b77be;font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}.group-feed-component .dropdown-item{font-weight:600}.group-feed-component .remote-label{background:#fef3c7;border:1px solid #fcd34d;color:#b45309;font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}",""]);const i=o},6777(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-feed-component-menu{align-items:center;display:flex;justify-content:space-between;padding:0}.group-feed-component-menu-nav .nav-item .nav-link{color:#6c757d;padding-bottom:1rem;padding-top:1rem}.group-feed-component-menu-nav .nav-item .nav-link.active{border-bottom:2px solid #2c78bf;color:#2c78bf}.group-feed-component-menu-nav:not(last-child) .nav-item{margin-right:14px}",""]);const i=o},37575(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".self-discover-component .list-group-item{text-decoration:none}.self-discover-component .list-group-item:hover{background-color:#f3f4f6}.self-discover-component .bg-mantle{background:linear-gradient(45deg,#24c6dc,#514a9d)}.self-discover-component .bg-black{background-color:#000}.self-discover-component .bg-black hr{border-top:1px solid hsla(0,0%,100%,.12)}.self-discover-component .title{align-items:center;display:flex;justify-content:space-between}.self-discover-component .title span{font-size:24px;font-weight:600}.self-discover-component .title .btn{border:1px solid #e5e7eb}",""]);const i=o},58967(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".my-groups-component .list-container[data-v-04397ac0]{margin-bottom:30vh}.my-groups-component .member-label[data-v-04397ac0]{background:rgba(137,196,244,.2);border:1px solid rgba(137,196,244,.3);border-radius:3px;color:#4b77be}.my-groups-component .member-label[data-v-04397ac0],.my-groups-component .remote-label[data-v-04397ac0]{font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}.my-groups-component .remote-label[data-v-04397ac0]{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:3px;color:#4b5563}",""]);const i=o},26140(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,'.group-notification-component .dropdown-toggle:after{content:"";display:none}.group-notification-component .nitem a{color:#000;font-weight:700!important}.group-notification-component .nitem a:focus,.group-notification-component .nitem a:hover{color:#121416!important}',""]);const i=o},32845(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-post-header .btn[data-v-29a27e2f]::focus{box-shadow:none}.group-post-header .dropdown-toggle[data-v-29a27e2f]:after{display:none}.group-post-header .group-name-link[data-v-29a27e2f]{font-size:16px}.group-post-header .group-name-link[data-v-29a27e2f],.group-post-header .group-name-link-small[data-v-29a27e2f]{word-wrap:break-word!important;color:var(--body-color)!important;font-weight:600;text-decoration:none;word-break:break-word!important}.group-post-header .group-name-link-small[data-v-29a27e2f]{font-size:14px}",""]);const i=o},9952(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".status-card-component .status-content{font-size:17px}.status-card-component.status-card-sm .status-content{font-size:14px}.status-card-component.status-card-sm .fa-lg{font-size:unset;line-height:unset;vertical-align:unset}",""]);const i=o},47754(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(37365),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},3456(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(13373),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},33844(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(83853),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},61276(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(91491),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},37063(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(53400),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},59240(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(55407),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},13968(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(59167),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},55726(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(73967),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},31124(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(19827),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},32327(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(91626),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},34969(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(92520),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},80403(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(34682),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},92509(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(20082),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},2298(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(92155),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},83441(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(25730),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},21969(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(42500),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},54077(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(46262),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},87495(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(14868),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},45023(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(9218),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},69590(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(27161),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},48509(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(73788),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},33864(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(6777),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},61492(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(37575),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},32524(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(58967),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},4709(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(26140),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},96246(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(32845),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},67679(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(9952),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},17547(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(64330),o=s(32608),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(29203);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},49139(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(15763),o=s(40720),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(45576);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},71307(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(31846),o=s(35236),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(87359);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},1544(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(54888),o=s(79051),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(71855);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},17346(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(56814),o=s(47953),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(53855);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},13480(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(7004),o=s(44515),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(52035);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},18115(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(51147),o=s(91036),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(58618);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},69513(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(99873),o=s(96046),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(92664);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},66536(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(47173),o=s(7059),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(94378);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},84125(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(22515),o=s(60586),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},62181(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(33988),o=s(72934),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},69104(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(49782),o=s(22903),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},40482(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(4552),o=s(60473),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},71347(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(87362),o=s(77548),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},17108(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(73143),o=s(22899),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(94594);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},13094(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(15476),o=s(98281),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(24107);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"9d095298",null).exports},19413(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(35343),o=s(75337),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(4114);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},75386(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(8953),o=s(69309),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(61620);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"102531e6",null).exports},42013(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(2133),o=s(65638),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(29030);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},94559(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(9339),o=s(84552),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(32196);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},95002(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(91689),o=s(60481),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(1202);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},58753(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(40710),o=s(72122),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},49268(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(19748),o=s(85083),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(53257);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"63bf412f",null).exports},52505(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(97741),o=s(36962),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(12012);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},33457(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(89014),o=s(18458),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(3625);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},7764(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(8751),o=s(6723),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},54048(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(80580),o=s(33759),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(73591);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},90637(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(84667),o=s(44778),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},57397(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(53056),o=s(73622),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(21319);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"04397ac0",null).exports},27403(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(17702),o=s(10912),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},65603(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(59037),o=s(65968),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(64012);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},5799(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(76407),o=s(71880),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},76746(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(82368),o=s(28725),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(58781);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"29a27e2f",null).exports},40798(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(97299),o=s(84381),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},21466(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(63476),o=s(95509),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},98051(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(37086),o=s(90660),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(11415);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"7066737e",null).exports},37128(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(3388),o=s(2815),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(69207);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"46f39310",null).exports},61518(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(99521),o=s(4777),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},79427(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(17962),o=s(6452),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(75475);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"7871d23c",null).exports},53744(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(29375),o=s(21663),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},78841(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(8044),o=s(24966),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},79984(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(44897),o=s(203),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(13808);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},32608(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(19933),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},40720(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(22681),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},35236(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(72233),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},79051(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(2118),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},47953(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(20258),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},44515(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(39786),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},91036(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(95727),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},96046(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(68717),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},7059(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(78828),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},60586(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(15961),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},72934(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(3891),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},22903(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(35334),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},60473(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(87844),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},77548(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(45065),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},22899(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(91446),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},98281(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(15426),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},75337(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(51796),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},69309(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(68902),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},65638(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(43599),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},84552(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(89905),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},60481(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(6234),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},72122(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(96895),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},85083(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(70714),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},36962(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(9125),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},18458(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(11493),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},6723(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(79270),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},33759(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(93350),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},44778(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(34015),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},73622(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(7755),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},10912(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(26751),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},65968(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(93543),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},71880(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(60217),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},28725(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(33664),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},84381(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(75e3),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},95509(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(33422),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},90660(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(36639),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},2815(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(9266),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},4777(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(35986),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},6452(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(25189),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},21663(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(70384),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},24966(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(78615),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},203(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(47898),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},64330(t,e,s){"use strict";s.r(e);var a=s(93409),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},15763(t,e,s){"use strict";s.r(e);var a=s(92192),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},31846(t,e,s){"use strict";s.r(e);var a=s(91057),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},54888(t,e,s){"use strict";s.r(e);var a=s(62959),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},56814(t,e,s){"use strict";s.r(e);var a=s(80311),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},7004(t,e,s){"use strict";s.r(e);var a=s(54299),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},51147(t,e,s){"use strict";s.r(e);var a=s(36826),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},99873(t,e,s){"use strict";s.r(e);var a=s(59296),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},47173(t,e,s){"use strict";s.r(e);var a=s(16560),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},22515(t,e,s){"use strict";s.r(e);var a=s(57442),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},33988(t,e,s){"use strict";s.r(e);var a=s(88291),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},49782(t,e,s){"use strict";s.r(e);var a=s(20285),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},4552(t,e,s){"use strict";s.r(e);var a=s(80171),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},87362(t,e,s){"use strict";s.r(e);var a=s(47545),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},73143(t,e,s){"use strict";s.r(e);var a=s(54968),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},15476(t,e,s){"use strict";s.r(e);var a=s(26177),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},35343(t,e,s){"use strict";s.r(e);var a=s(22224),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},8953(t,e,s){"use strict";s.r(e);var a=s(25012),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},2133(t,e,s){"use strict";s.r(e);var a=s(64954),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},9339(t,e,s){"use strict";s.r(e);var a=s(83560),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},91689(t,e,s){"use strict";s.r(e);var a=s(91648),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},40710(t,e,s){"use strict";s.r(e);var a=s(52809),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},19748(t,e,s){"use strict";s.r(e);var a=s(2011),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},97741(t,e,s){"use strict";s.r(e);var a=s(11568),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},89014(t,e,s){"use strict";s.r(e);var a=s(17859),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},8751(t,e,s){"use strict";s.r(e);var a=s(30832),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},80580(t,e,s){"use strict";s.r(e);var a=s(48511),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},84667(t,e,s){"use strict";s.r(e);var a=s(92300),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},53056(t,e,s){"use strict";s.r(e);var a=s(54479),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},17702(t,e,s){"use strict";s.r(e);var a=s(75891),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},59037(t,e,s){"use strict";s.r(e);var a=s(25836),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},76407(t,e,s){"use strict";s.r(e);var a=s(5328),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},82368(t,e,s){"use strict";s.r(e);var a=s(48375),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},97299(t,e,s){"use strict";s.r(e);var a=s(70560),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},63476(t,e,s){"use strict";s.r(e);var a=s(18389),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},37086(t,e,s){"use strict";s.r(e);var a=s(28691),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},3388(t,e,s){"use strict";s.r(e);var a=s(20671),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},99521(t,e,s){"use strict";s.r(e);var a=s(12024),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},17962(t,e,s){"use strict";s.r(e);var a=s(75593),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},29375(t,e,s){"use strict";s.r(e);var a=s(45322),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},8044(t,e,s){"use strict";s.r(e);var a=s(28995),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},44897(t,e,s){"use strict";s.r(e);var a=s(73386),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},11415(t,e,s){"use strict";s.r(e);var a=s(47754),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},69207(t,e,s){"use strict";s.r(e);var a=s(3456),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},75475(t,e,s){"use strict";s.r(e);var a=s(33844),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},29203(t,e,s){"use strict";s.r(e);var a=s(61276),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},45576(t,e,s){"use strict";s.r(e);var a=s(37063),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},87359(t,e,s){"use strict";s.r(e);var a=s(59240),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},71855(t,e,s){"use strict";s.r(e);var a=s(13968),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},53855(t,e,s){"use strict";s.r(e);var a=s(55726),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},52035(t,e,s){"use strict";s.r(e);var a=s(31124),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},58618(t,e,s){"use strict";s.r(e);var a=s(32327),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},92664(t,e,s){"use strict";s.r(e);var a=s(34969),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},94378(t,e,s){"use strict";s.r(e);var a=s(80403),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},94594(t,e,s){"use strict";s.r(e);var a=s(92509),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},24107(t,e,s){"use strict";s.r(e);var a=s(2298),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},4114(t,e,s){"use strict";s.r(e);var a=s(83441),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},61620(t,e,s){"use strict";s.r(e);var a=s(21969),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},29030(t,e,s){"use strict";s.r(e);var a=s(54077),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},32196(t,e,s){"use strict";s.r(e);var a=s(87495),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},1202(t,e,s){"use strict";s.r(e);var a=s(45023),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},53257(t,e,s){"use strict";s.r(e);var a=s(69590),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},12012(t,e,s){"use strict";s.r(e);var a=s(48509),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},3625(t,e,s){"use strict";s.r(e);var a=s(33864),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},73591(t,e,s){"use strict";s.r(e);var a=s(61492),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},21319(t,e,s){"use strict";s.r(e);var a=s(32524),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},64012(t,e,s){"use strict";s.r(e);var a=s(4709),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},58781(t,e,s){"use strict";s.r(e);var a=s(96246),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},13808(t,e,s){"use strict";s.r(e);var a=s(67679),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)}},t=>{t.O(0,[3660],()=>{return e=74050,t(t.s=e);var e});t.O()}]);
\ No newline at end of file
+(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[7610],{19933(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(18115),o=s(71307),i=s(49139);const r={props:{groupId:{type:String},path:{type:String}},data:function(){return{tab:"home"}},components:{"groups-home":a.default,"create-group":i.default,"group-feed":o.default},mounted:function(){this.groupId&&(this.tab="show")},methods:{switchTab:function(t){this.tab=t}}}},22681(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(71347),o=s(69104),i=s(40482),r=s(62181);const n={components:{"text-input":a.default,"select-input":o.default,"text-area-input":i.default,"checkbox-input":r.default},data:function(){return{hide:!0,name:null,page:1,maxPage:1,description:null,membership:"placeholder",submitting:!1,categories:[],category:"",limit:{name:{max:60},description:{max:500}},configuration:{types:{text:!0,photos:!0,videos:!0,polls:!0},federation:!0,adult:!1,discoverable:!1,autospam:!1,dms:!1,slowjoin:{enabled:!1,age:90,limit:{post:1,comment:20,threads:2,likes:5,hashtags:5,mentions:1,autolinks:1}}},hasConfirmed:!1,permissionChecked:!1,membershipCategories:[{key:"Public",value:"public"}]}},mounted:function(){this.permissionCheck(),this.fetchCategories()},methods:{permissionCheck:function(){var t=this;axios.post("/api/v0/groups/permission/create").then(function(e){0==e.data.permission?(swal("Limit reached","You cannot create any more groups","error"),t.hide=!0):t.hide=!1,t.permissionChecked=!0})},submit:function(t){t.preventDefault(),this.submitting=!0,axios.post("/api/v0/groups/create",{name:this.name,description:this.description,membership:this.membership}).then(function(t){console.log(t.data),window.location.href=t.data.url}).catch(function(t){console.log(t.response)})},fetchCategories:function(){var t=this;axios.get("/api/v0/groups/categories/list").then(function(e){t.categories=e.data.map(function(t){return{key:t,value:t}})})},createGroup:function(){axios.post("/api/v0/groups/create",{name:this.name,description:this.description,membership:this.membership,configuration:this.configuration}).then(function(t){console.log(t.data),location.href=t.data.url})},handleUpdate:function(t,e){this[t]=e}}}},72233(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>h});var a=s(79984),o=s(17108),i=s(95002),r=s(13094),n=s(58753),l=s(94559),c=s(19413),d=s(49268),u=s(33457),p=s(52505);function f(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?m(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);s1&&void 0!==arguments[1]&&arguments[1],s=new Date(t);return e?s.toDateString()+" ยท "+s.toLocaleTimeString():s.toDateString()},switchTab:function(t){window.scrollTo(0,0),"feed"==t&&this.permalinkMode&&(this.permalinkMode=!1,this.fetchFeed());var e="feed"==t?this.group.url:this.group.url+"/"+t;history.pushState(t,null,e),this.tab=t},joinGroup:function(){var t=this;this.requestingMembership=!0,axios.post("/api/v0/groups/"+this.groupId+"/join").then(function(e){t.requestingMembership=!1,t.group=e.data,t.fetchGroup(),t.fetchFeed()}).catch(function(e){var s=e.response;422==s.status&&(t.tab="feed",history.pushState("",null,t.group.url),t.requestingMembership=!1,swal("Oops!",s.data.error,"error"))})},cancelJoinRequest:function(){var t=this;window.confirm("Are you sure you want to cancel your request to join this group?")&&axios.post("/api/v0/groups/"+this.groupId+"/cjr").then(function(e){t.requestingMembership=!1}).catch(function(t){var e=t.response;422==e.status&&swal("Oops!",e.data.error,"error")})},leaveGroup:function(){var t=this;window.confirm("Are you sure you want to leave this group? Any content you shared will remain accessible. You won't be able to rejoin for 24 hours.")&&axios.post("/api/v0/groups/"+this.groupId+"/leave").then(function(e){t.tab="feed",history.pushState("",null,t.group.url),t.feed=[],t.isMember=!1,t.isAdmin=!1,t.group.self.role=null,t.group.self.is_member=!1})},pushNewStatus:function(t){this.feed.unshift(t)},commentFocus:function(t){this.feed[t].showCommentDrawer=!0},statusDelete:function(t){this.feed.splice(t,1)},infiniteFeed:function(t){var e=this;if(this.feed.length<3)t.complete();else{var s="/api/v0/groups/"+this.groupId+"/feed";axios.get(s,{params:{limit:6,max_id:this.maxId}}).then(function(s){if(s.data.length){var a,o,i=s.data.filter(function(t){return-1==e.ids.indexOf(t.id)});e.maxId=i[i.length-1].id,(a=e.feed).push.apply(a,f(i)),(o=e.ids).push.apply(o,f(i.map(function(t){return t.id}))),setTimeout(function(){e.initObservers()},1e3),t.loaded()}else t.complete()})}},decrementModCounter:function(t){var e=this.atabs.moderation_count;0!=e&&(this.atabs.moderation_count=e-t)},setModCounter:function(t){this.atabs.moderation_count=t},decrementJoinRequestCount:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this.atabs.request_count;this.atabs.request_count=e-t},incrementMemberCount:function(){var t=this.group.member_count;this.group.member_count=t+1},copyLink:function(){window.App.util.clipboard(this.group.url),this.$bvToast.toast("Succesfully copied group url to clipboard",{title:"Success",variant:"success",autoHideDelay:5e3})},reportGroup:function(){var t=this;swal("Report Group","Are you sure you want to report this group?").then(function(e){e&&(location.href="/i/report?id=".concat(t.group.id,"&type=group"))})},showSearchModal:function(){event.currentTarget.blur(),this.$refs.searchModal.open()},showInviteModal:function(){event.currentTarget.blur(),this.$refs.inviteModal.open()},showLikesModal:function(t){var e=this;this.likesId=this.feed[t].id,axios.get("/api/v0/groups/"+this.groupId+"/likes/"+this.likesId).then(function(t){e.likes=t.data,e.likesPage++,e.$refs.likeBox.show()})},infiniteLikesHandler:function(t){var e=this;this.likes.length<3?t.complete():axios.get("/api/v0/groups/"+this.groupId+"/likes/"+this.likesId,{params:{page:this.likesPage}}).then(function(s){var a;s.data.length>0?((a=e.likes).push.apply(a,f(s.data)),e.likesPage++,10!=s.data.length?t.complete():t.loaded()):t.complete()})}}}},2118(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["id"],data:function(){return{loadingStatus:"Determining invite eligibility",tab:"initial",profile:{},group:{},showMore:!1}},mounted:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(e){t.profile=e.data,t.fetchGroup()}).catch(function(e){return 403===e.response.status?void(t.tab="login"):void(t.tab="error")})},methods:{fetchGroup:function(){var t=this;axios.get("/api/v0/groups/".concat(this.id)).then(function(e){t.group=e.data,t.loadingStatus="Checking group invitations",t.checkForInvitation()}).catch(function(e){t.tab="error"})},checkForInvitation:function(){var t=this;axios.post("/api/v0/groups/".concat(this.group.id,"/invite/check")).then(function(e){t.tab=1==e.data.can_join?"form":"notinvited"}).catch(function(e){422===e.response.status&&"Already a member"===e.response.data.error?t.tab="existingmember":t.tab="error"})},prettyCount:function(t){return App.util.format.count(t)},timeago:function(t){return App.util.format.timeAgo(t)},showMoreInfo:function(){event.currentTarget.blur(),this.showMore=!this.showMore},acceptInvite:function(){var t=this;event.currentTarget.blur(),this.tab="loading",axios.post("/api/v0/groups/".concat(this.group.id,"/invite/accept")).then(function(t){setTimeout(function(){location.href=t.data.next_url},2e3)}).catch(function(e){t.tab="error"})},declineInvite:function(){var t=this;event.currentTarget.blur(),this.tab="loading",axios.post("/api/v0/groups/".concat(this.group.id,"/invite/decline")).then(function(t){location.href=t.data.next_url}).catch(function(e){t.tab="error"})}}}},20258(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(95002),o=s(74692);const i={props:{pg:{type:String},pp:{type:String}},components:{"group-status":a.default},data:function(){return{currentProfile:{},roleTitle:"Member",group:{},profile:{},feed:[],ids:[],feedLoaded:!1,feedEmpty:!1,page:1,canIntersect:!1,commonIntersects:[]}},beforeMount:function(){o("body").css("background-color","#f0f2f5"),this.group=JSON.parse(this.pg),this.profile=JSON.parse(this.pp),"founder"==this.profile.group.role&&(this.roleTitle="Admin")},mounted:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(e){t.currentProfile=e.data,t.fetchInitialFeed(),e.data.id!=t.profile.id&&t.fetchCommonIntersections()}),this.$nextTick(function(){o('[data-toggle="tooltip"]').tooltip()})},methods:{fetchInitialFeed:function(){var t=this;axios.get("/api/v0/groups/".concat(this.group.id,"/user/").concat(this.profile.id,"/feed")).then(function(e){t.feed=e.data.filter(function(e){return"reply:text"!=e.pf_type||e.account.id!=t.profile.id}),t.feedLoaded=!0,t.feedEmpty=0==t.feed.length,t.page++})},infiniteFeed:function(t){var e=this;0!=this.feed.length?axios.get("/api/v0/groups/".concat(this.group.id,"/user/").concat(this.profile.id,"/feed"),{params:{page:this.page}}).then(function(s){if(s.data.length){var a=s.data.filter(function(t){return"reply:text"!=t.pf_type||t.account.id!=e.profile.id}),o=e;a.forEach(function(t){-1==o.ids.indexOf(t.id)&&(o.ids.push(t.id),o.feed.push(t))}),t.loaded(),e.page++}else t.complete()}):t.complete()},fetchCommonIntersections:function(){var t=this;axios.get("/api/v0/groups/member/intersect/common",{params:{gid:this.group.id,pid:this.profile.id}}).then(function(e){t.commonIntersects=e.data,t.canIntersect=e.data.groups.length||e.data.topics.length})}}}},39786(t,e,s){"use strict";function a(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);si});const i={props:{groupId:{type:String}},data:function(){return{initalLoad:!1,profile:void 0,group:{},isMember:!1,isAdmin:!1,changed:!1,savingChanges:!1,categories:[],category:"General",tab:"home",tabs:["home","customize","interactions","blocked","advanced","limits","blocked:import"],interactionLog:[],interactionLogPage:1,interactionLogInitialLoad:!1,interactionLogShowMore:!0,blockedInitialLoad:!1,blockedInstances:["facebook.com","instagram.com"],blockedUsers:["mark@facebook.com","user@example.org","troll"],moderatedInstances:["pawoo.net","pixelfed.com"],importBlocksData:{},importBlocksUploaded:!1,membershipDescription:{all:"Anyone can join your group",local:"Only local users can join your group",private:"Only users you approve can join your group"},advanced:{}}},beforeMount:function(){var t=this;axios.get("/api/v0/groups/categories/list").then(function(e){t.categories=e.data})},mounted:function(){var t=this,e=new URLSearchParams(window.location.search);e.has("tab")&&this.tabs.includes(e.get("tab"))&&(this.tab=e.get("tab"),this.toggleTab(this.tab)),axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(e){t.profile=e.data,axios.get("/api/v0/groups/"+t.groupId).then(function(e){t.group=e.data,t.initalLoad=!0,t.isMember=e.data.self.is_member,t.isAdmin=["founder","admin"].includes(e.data.self.role),t.advanced=e.data.config,t.category=e.data.category.name})})},methods:{timestampFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=new Date(t);return e?s.toDateString()+" ยท "+s.toLocaleTimeString():s.toDateString()},timeago:function(t){return window.App.util.format.timeAgo(t)},sidToUrl:function(t){return"/groups/".concat(this.groupId,"/p/").concat(t)},submit:function(){var t=this;this.savingChanges=!0;var e=new FormData;e.append("category",this.category),e.append("membership",this.group.membership),e.append("discoverable",this.advanced.discoverable),e.append("activitypub",this.advanced.activitypub),e.append("is_nsfw",this.advanced.is_nsfw),this.group.description&&e.append("description",this.group.description),this.$refs.avatarInput&&e.append("avatar",this.$refs.avatarInput.files[0]),this.$refs.headerInput&&e.append("header",this.$refs.headerInput.files[0]),axios.post("/api/v0/groups/"+this.group.id+"/settings",e).then(function(e){t.savingChanges=!1,t.group=e.data,swal("Updated!","Successfully updated group settings.","success")}).catch(function(e){t.savingChanges=!1,console.log(e.response),swal("Oops!","An error occured while attempting to save changes. Please try again later.","error")})},toggleTab:function(t){switch(event&&event.currentTarget.blur(),t){case"home":default:this.tab="home",history.pushState(null,null,"/groups/".concat(this.groupId,"/settings"));break;case"customize":this.tab="customize",history.pushState(null,null,"/groups/".concat(this.groupId,"/settings?tab=customize"));break;case"limits":this.tab="limits",history.pushState(null,null,"/groups/".concat(this.groupId,"/settings?tab=limits"));break;case"interactions":this.interactionLogInitialLoad||this.loadInteractions(),this.tab="interactions",history.pushState(null,null,"/groups/".concat(this.groupId,"/settings?tab=interactions"));break;case"blocked":this.blockedInitialLoad||this.loadBlocks(),this.tab="blocked",history.pushState(null,null,"/groups/".concat(this.groupId,"/settings?tab=blocked"));break;case"advanced":this.tab="advanced",history.pushState(null,null,"/groups/".concat(this.groupId,"/settings?tab=advanced"))}},loadInteractions:function(){var t=this;axios.get("/api/v0/groups/"+this.groupId+"/admin/interactions").then(function(e){t.interactionLog=e.data,t.interactionLogPage++,t.interactionLogInitialLoad=!0})},loadMoreInteractions:function(){var t=this;axios.get("/api/v0/groups/"+this.groupId+"/admin/interactions",{params:{page:this.interactionLogPage}}).then(function(e){var s;0!=e.data.length?((s=t.interactionLog).push.apply(s,a(e.data)),t.interactionLogPage++):t.interactionLogShowMore=!1})},loadBlocks:function(){var t=this;axios.get("/api/v0/groups/".concat(this.groupId,"/admin/blocks")).then(function(e){t.blockedInstances=e.data.instances,t.blockedUsers=e.data.users,t.moderatedInstances=e.data.moderated,t.blockedInitialLoad=!0})},blockAction:function(t){var e=this,s="user"==t?"user":"instance domain";swal({text:"Which ".concat(s,"?"),content:{element:"input",attributes:{placeholder:"user"==s?"pixelfed":"pixelfed.org"}},button:{text:"Next",closeModal:!1}}).then(function(e){if(!e)throw null;return"user"!==t&&e.startsWith("http")?(swal("Oops!","Please enter the instance domain (eg: pixelfed.social)","error"),null):e}).then(function(s){return axios.post("/api/v0/groups/"+e.groupId+"/admin/mbs",{type:"user"==t?"user":"instance",item:s}).then(function(t){return t.data?s:(swal.stopLoading(),swal.close(),null)}).catch(function(t){return swal.stopLoading(),swal.close(),null})}).then(function(s){s?swal({title:"Are you sure?",text:"moderate"===t?"Manually approve all membership requests from ".concat(s):"Limiting ".concat(s," will purge and reject all interactions with this group"),icon:"warning",buttons:!0,dangerMode:!0}).then(function(a){a&&axios.post("/api/v0/groups/"+e.groupId+"/admin/blocks/add",{item:s,type:t}).then(function(a){switch(t){case"instance":e.blockedInstances.push(s);break;case"user":e.blockedUsers.push(s);break;case"moderate":e.moderatedInstances.push(s)}})}):e.$bvToast.toast("Invalid ".concat(t,", please try again"),{title:"Error",variant:"danger",autoHideDelay:5e3})})},reportUrl:function(t){return"/groups/".concat(this.groupId,"/moderation?tab=view&id=").concat(t)},memberInteractionUrl:function(t){return"/groups/".concat(this.groupId,"/members?a=il&pid=").concat(t)},handleDeleteAvatar:function(){var t=this;window.confirm("Are you sure you want to delete your group avatar image?")&&(this.savingChanges=!0,axios.post("/api/v0/groups/"+this.group.id+"/settings/delete-avatar").then(function(e){t.savingChanges=!1,t.group=e.data}))},handleDeleteHeader:function(){var t=this;window.confirm("Are you sure you want to delete your group header image?")&&(this.savingChanges=!0,axios.post("/api/v0/groups/"+this.group.id+"/settings/delete-header").then(function(e){t.savingChanges=!1,t.group=e.data}))},undoBlock:function(t,e){var s=this,a="moderate"==t?"unblock ".concat(e,"?"):"allow anyone to join without approval from ".concat(e,"?");swal({title:"Confirm",text:"Are you sure you want to ".concat(a),buttons:{cancel:{text:"Cancel",value:null,visible:!0,className:"",closeModal:!0},confirm:{text:"Proceed",value:!0,visible:!0,className:"",closeModal:!0}}}).then(function(a){a&&axios.post("/api/v0/groups/".concat(s.groupId,"/admin/blocks/undo"),{item:e,type:t}).then(function(a){switch(t){case"instance":s.blockedInstances=s.blockedInstances.filter(function(t){return t!=e});break;case"user":s.blockedUsers=s.blockedUsers.filter(function(t){return t!=e});break;case"moderate":s.moderatedInstances=s.moderatedInstances.filter(function(t){return t!=e})}})})},exportBlocks:function(){event.currentTarget.blur(),axios({url:"/api/v0/groups/"+this.groupId+"/admin/blocks/export",method:"POST",responseType:"blob"}).then(function(t){var e=window.URL.createObjectURL(new Blob([t.data])),s=document.createElement("a");s.href=e,s.setAttribute("download","pixelfed-group-blocks-".concat(Date.now(),".json")),document.body.appendChild(s),s.click()})},deleteGroup:function(){var t=this;axios.post("/api/v0/groups/delete",{gid:this.groupId}).then(function(e){location.href="/groups/".concat(t.groupId)})}}}},95727(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>p});var a=s(95002),o=s(90637),i=s(54048),r=s(57397),n=s(65603),l=s(27403),c=s(5799),d=s(49139),u=s(2e4);s(73718);const p={data:function(){return{initialLoad:!1,config:{},groups:[],profile:{},tab:null,searchQuery:void 0}},components:{"autocomplete-input":u.default,"group-status":a.default,"self-discover":i.default,"self-groups":r.default,"self-feed":o.default,"self-notifications":n.default,"self-invitations":l.default,"self-remote-search":c.default,"create-group":d.default},mounted:function(){this.fetchConfig()},methods:{init:function(){document.querySelectorAll("footer").forEach(function(t){return t.parentNode.removeChild(t)}),document.querySelectorAll(".mobile-footer-spacer").forEach(function(t){return t.parentNode.removeChild(t)}),document.querySelectorAll(".mobile-footer").forEach(function(t){return t.parentNode.removeChild(t)}),this.initialLoad=!0},fetchConfig:function(){var t=this;axios.get("/api/v0/groups/config").then(function(e){t.config=e.data,t.fetchProfile()})},fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(e){t.profile=e.data,t.init(),window._sharedData.curUser=e.data,window.App.util.navatar()})},fetchSelfGroups:function(){var t=this;axios.get("/api/v0/groups/self/list").then(function(e){t.groups=e.data})},switchTab:function(t){event.currentTarget.blur(),window.scrollTo(0,0),this.tab=t,"feed"!=t?history.pushState(null,null,"/groups/home?ct="+t):history.pushState(null,null,"/groups/home")},autocompleteSearch:function(t){var e=this;return!t||t.length<2?((this.tab="searchresults")&&(this.tab="feed"),[]):(this.searchQuery=t,t.startsWith("http")?new URL(t).hostname==location.hostname?(location.href=t,[]):[]:t.startsWith("#")?(this.$bvToast.toast(t,{title:"Hashtag detected",variant:"info",autoHideDelay:5e3}),[]):axios.post("/api/v0/groups/search/global",{q:t,v:"0.2"}).then(function(t){return e.searchLoading=!1,t.data}).catch(function(t){return 422===t.response.status&&e.$bvToast.toast(t.response.data.error.message,{title:"Cannot display search results",variant:"danger",autoHideDelay:5e3}),[]}))},getSearchResultValue:function(t){return t.name},onSearchSubmit:function(t){if(t.length<1)return[];location.href=t.url},truncateName:function(t){return t.length<24?t:t.substr(0,23)+"..."}}}},68717(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(7764),o=s(66536);function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);s0&&(t.children={feed:[],can_load_more:!0}),t});t.feed=s,t.isLoaded=!0,t.maxReplyId=e.data[e.data.length-1].id,3==t.feed.length&&(t.canLoadMore=!0)}).catch(function(e){t.isLoaded=!0})},loadMoreComments:function(){var t=this;this.isLoadingMore=!0,axios.get("/api/v0/groups/comments",{params:{gid:this.groupId,sid:this.status.id,limit:3,max_id:this.maxReplyId}}).then(function(e){var s;if(e.data[e.data.length-1].id==t.maxReplyId)return t.isLoadingMore=!1,void(t.canLoadMore=!1);(s=t.feed).push.apply(s,i(e.data)),setTimeout(function(){t.isLoadingMore=!1},500),t.maxReplyId=e.data[e.data.length-1].id,e.data.length>0?t.canLoadMore=!0:t.canLoadMore=!1}).catch(function(e){t.isLoadingMore=!1,t.canLoadMore=!1})},storeComment:function(t){var e,s=this;null===(e=t.currentTarget)||void 0===e||e.blur(),axios.post("/api/v0/groups/comment",{gid:this.groupId,sid:this.status.id,content:this.replyContent}).then(function(t){s.replyContent=null,s.feed.unshift(t.data)}).catch(function(t){422==t.response.status?(s.isUploading=!1,s.uploadProgress=0,swal("Oops!",t.response.data.error,"error")):(s.isUploading=!1,s.uploadProgress=0,swal("Oops!","An error occured while processing your request, please try again later","error"))})},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)},readMore:function(){this.readMoreCursor=this.readMoreCursor+200},likeComment:function(t,e,s){s.target.blur();var a=!t.favourited;this.feed[e].favourited=a,t.favourited=a,axios.post("/api/v0/groups/comment/".concat(a?"like":"unlike"),{sid:t.id,gid:this.groupId})},deleteComment:function(t){var e=this;0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/api/v0/groups/comment/delete",{gid:this.groupId,id:this.feed[t].id}).then(function(s){e.feed.splice(t,1)}).catch(function(t){console.log(t.response),swal("Error","Something went wrong. Please try again later.","error")})},uploadImage:function(){this.$refs.fileInput.click()},handleImageUpload:function(){var t=this;if(this.$refs.fileInput.files.length){this.isUploading=!0;var e=this,s=new FormData;s.append("gid",this.groupId),s.append("sid",this.status.id),s.append("photo",this.$refs.fileInput.files[0]),axios.post("/api/v0/groups/comment/photo",s,{onUploadProgress:function(t){e.uploadProgress=Math.floor(t.loaded/t.total*100)}}).then(function(e){t.isUploading=!1,t.uploadProgress=0,t.feed.unshift(e.data)}).catch(function(e){422==e.response.status?(t.isUploading=!1,t.uploadProgress=0,swal("Oops!",e.response.data.error,"error")):(t.isUploading=!1,t.uploadProgress=0,swal("Oops!","An error occured while processing your request, please try again later","error"))})}},lightbox:function(t){this.lightboxStatus=t.media_attachments[0],this.$refs.lightboxModal.show()},hideLightbox:function(){this.lightboxStatus=null,this.$refs.lightboxModal.hide()},blurhashWidth:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?30:20},blurhashHeight:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?20:30},getMediaSource:function(t){var e=t.media_attachments[0];return e.preview_url.endsWith("storage/no-preview.png")?e.url:e.preview_url},replyToChild:function(t,e){var s=this;if(this.replyChildId==t.id)return this.replyChildId=null,void(this.replyChildIndex=null);this.childReplyContent=null,this.replyChildId=t.id,this.replyCursorId=t.id,this.replyChildIndex=e,t.hasOwnProperty("replies_loaded")&&t.replies_loaded,this.$nextTick(function(){s.fetchChildReplies(t,e)})},fetchChildReplies:function(t,e){var s=this;axios.get("/api/v0/groups/comments",{params:{gid:this.groupId,sid:t.id,cid:this.replyCursorId,limit:3}}).then(function(t){s.feed[e].hasOwnProperty("children")?(s.feed[e].children.feed.push(t.data),s.feed[e].children.can_load_more=3==t.data.length):s.feed[e].children={feed:t.data,can_load_more:3==t.data.length},s.replyChildMinId=t.data[t.data.length-1].id,s.$nextTick(function(){s.feed[e].replies_loaded=!0})}).catch(function(t){s.feed[e].children.can_load_more=!1})},storeChildComment:function(t){var e=this;this.postingChildComment=!0,axios.post("/api/v0/groups/comment",{gid:this.groupId,sid:this.status.id,cid:this.replyChildId,content:this.childReplyContent}).then(function(s){e.childReplyContent=null,e.postingChildComment=!1,e.feed[t].children.feed.push(s.data)}).catch(function(t){422==t.response.status?swal("Oops!",t.response.data.error,"error"):swal("Oops!","An error occured while processing your request, please try again later","error")})},loadMoreChildComments:function(t,e){var s=this;this.loadingChildComments=!0,axios.get("/api/v0/groups/comments",{params:{gid:this.groupId,sid:t.id,max_id:this.replyChildMinId,cid:1,limit:3}}).then(function(t){var a;s.feed[e].hasOwnProperty("children")?((a=s.feed[e].children.feed).push.apply(a,i(t.data)),s.feed[e].children.can_load_more=3==t.data.length):s.feed[e].children={feed:t.data,can_load_more:3==t.data.length};s.replyChildMinId=t.data[t.data.length-1].id,s.feed[e].replies_loaded=!0,s.loadingChildComments=!1}).catch(function(t){})}}}},78828(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(7764);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);s0?t.canLoadMore=!0:t.canLoadMore=!1}).catch(function(e){t.isLoadingMore=!1,t.canLoadMore=!1})},storeComment:function(){var t=this;axios.post("/api/v0/groups/comment",{gid:this.groupId,sid:this.status.id,content:this.replyContent}).then(function(e){t.replyContent=null,t.feed.unshift(e.data)}).catch(function(e){422==e.response.status?(t.isUploading=!1,t.uploadProgress=0,swal("Oops!",e.response.data.error,"error")):(t.isUploading=!1,t.uploadProgress=0,swal("Oops!","An error occured while processing your request, please try again later","error"))})},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)},readMore:function(){this.readMoreCursor=this.readMoreCursor+200},likeComment:function(t,e,s){s.target.blur();var a=!t.favourited;this.feed[e].favourited=a,t.favourited=a,axios.post("/api/v0/groups/like",{sid:t.id,gid:this.groupId})},deleteComment:function(t){var e=this;0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/api/v0/groups/status/delete",{gid:this.groupId,id:this.feed[t].id}).then(function(s){e.feed.splice(t,1)}).catch(function(t){console.log(t.response),swal("Error","Something went wrong. Please try again later.","error")})},uploadImage:function(){this.$refs.fileInput.click()},handleImageUpload:function(){var t=this;if(this.$refs.fileInput.files.length){this.isUploading=!0;var e=this,s=new FormData;s.append("gid",this.groupId),s.append("sid",this.status.id),s.append("photo",this.$refs.fileInput.files[0]),axios.post("/api/v0/groups/comment/photo",s,{onUploadProgress:function(t){e.uploadProgress=Math.floor(t.loaded/t.total*100)}}).then(function(e){t.isUploading=!1,t.uploadProgress=0,t.feed.unshift(e.data)}).catch(function(e){422==e.response.status?(t.isUploading=!1,t.uploadProgress=0,swal("Oops!",e.response.data.error,"error")):(t.isUploading=!1,t.uploadProgress=0,swal("Oops!","An error occured while processing your request, please try again later","error"))})}},lightbox:function(t){this.lightboxStatus=t.media_attachments[0],this.$refs.lightboxModal.show()},hideLightbox:function(){this.lightboxStatus=null,this.$refs.lightboxModal.hide()},blurhashWidth:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?30:20},blurhashHeight:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?20:30},getMediaSource:function(t){var e=t.media_attachments[0];return e.preview_url.endsWith("storage/no-preview.png")?e.url:e.preview_url},replyToChild:function(t,e){this.replyChildId!=t.id?(this.childReplyContent=null,this.replyChildId=t.id,t.hasOwnProperty("replies_loaded")&&t.replies_loaded||this.fetchChildReplies(t,e)):this.replyChildId=null},fetchChildReplies:function(t,e){var s=this;axios.get("/api/v0/groups/comments",{params:{gid:this.groupId,sid:t.id,cid:1,limit:3}}).then(function(t){var a;s.feed[e].hasOwnProperty("children")?((a=s.feed[e].children.feed).push.apply(a,o(t.data)),s.feed[e].children.can_load_more=3==t.data.length):s.feed[e].children={feed:t.data,can_load_more:3==t.data.length};s.feed[e].replies_loaded=!0}).catch(function(t){})},storeChildComment:function(){var t=this;this.postingChildComment=!0,axios.post("/api/v0/groups/comment",{gid:this.groupId,sid:this.status.id,cid:this.replyChildId,content:this.childReplyContent}).then(function(e){t.childReplyContent=null,t.postingChildComment=!1}).catch(function(t){422==t.response.status?swal("Oops!",t.response.data.error,"error"):swal("Oops!","An error occured while processing your request, please try again later","error")}),console.log(this.replyChildId)}}}},15961(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(74692);const o={props:{status:{type:Object},profile:{type:Object},type:{type:String,default:"status",validator:function(t){return["status","comment","profile"].includes(t)}},groupId:{type:String}},data:function(){return{ctxMenuStatus:!1,ctxMenuRelationship:!1,ctxEmbedPayload:!1,copiedEmbed:!1,replySending:!1,ctxEmbedShowCaption:!0,ctxEmbedShowLikes:!1,ctxEmbedCompactMode:!1,confirmModalTitle:"Are you sure?",confirmModalIdentifer:null,confirmModalType:!1}},methods:{open:function(){this.ctxMenu()},ctxMenu:function(){var t=this;this.ctxMenuStatus=this.status,this.ctxEmbedPayload=window.App.util.embed.post(this.status.url),this.status.account.id==this.profile.id?(this.ctxMenuRelationship=!1,this.$refs.ctxModal.show()):axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.status.account.id}}).then(function(e){t.ctxMenuRelationship=e.data[0],t.$refs.ctxModal.show()})},closeCtxMenu:function(){this.copiedEmbed=!1,this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.closeModals()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeModals()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;window.location.href=this.statusUrl(t),this.closeCtxMenu()},ctxMenuGoToProfile:function(){var t=this.ctxMenuStatus;window.location.href=this.profileUrl(t),this.closeCtxMenu()},ctxMenuFollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then(function(e){var s=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout(function(){swal("Follow successful!","You are now following "+s,"success")},500)})},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then(function(e){var s=t.ctxMenuStatus.account.acct;"home"==t.scope&&(t.feed=t.feed.filter(function(e){return e.account.id!=t.ctxMenuStatus.account.id})),t.closeCtxMenu(),setTimeout(function(){swal("Unfollow successful!","You are no longer following "+s,"success")},500)})},ctxMenuReportPost:function(){this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},ctxMenuEmbed:function(){this.closeModals(),this.$refs.ctxEmbedModal.show()},ctxMenuShare:function(){this.$refs.ctxModal.hide(),this.$refs.ctxShareModal.show()},closeCtxShareMenu:function(){this.$refs.ctxShareModal.hide(),this.$refs.ctxModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.ctxEmbedShowCaption=!0,this.ctxEmbedShowLikes=!1,this.ctxEmbedCompactMode=!1,this.$refs.ctxEmbedModal.hide()},ctxModMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModOtherMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.show()},ctxModMenu:function(){this.$refs.ctxModal.hide()},ctxModMenuClose:function(){this.closeModals()},ctxModOtherMenuClose:function(){this.closeModals(),this.$refs.ctxModModal.show()},formatCount:function(t){return App.util.format.count(t)},openCtxReportOtherMenu:function(){var t=this.ctxMenuStatus;this.closeCtxMenu(),this.ctxMenuStatus=t,this.$refs.ctxReportOther.show()},ctxReportMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxModal.show()},ctxReportOtherMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},sendReport:function(t){var e=this,s=this.ctxMenuStatus.id;swal({title:"Confirm Report",text:"Are you sure you want to report this post?",icon:"warning",buttons:!0,dangerMode:!0}).then(function(a){a?axios.post("/api/v0/groups/".concat(e.groupId,"/report/create"),{type:t,id:s}).then(function(t){e.closeCtxMenu(),swal("Report Sent!","We have successfully received your report.","success")}).catch(function(t){422==t.response.status?swal("Oops!",t.response.data.error,"error"):swal("Oops!","There was an issue reporting this post.","error")}):e.closeCtxMenu()})},closeModals:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.hide(),this.$refs.ctxShareModal.hide(),this.$refs.ctxEmbedModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.$refs.ctxConfirm.hide()},openCtxStatusModal:function(){this.closeModals(),this.$refs.ctxStatusModal.show()},openConfirmModal:function(){this.closeModals(),this.$refs.ctxConfirm.show()},closeConfirmModal:function(){this.closeModals(),this.confirmModalTitle="Are you sure?",this.confirmModalType=!1,this.confirmModalIdentifer=null},confirmModalConfirm:function(){var t=this;if("post.delete"===this.confirmModalType)axios.post("/i/delete",{type:"status",item:this.confirmModalIdentifer}).then(function(e){t.feed=t.feed.filter(function(e){return e.id!=t.confirmModalIdentifer}),t.closeConfirmModal()}).catch(function(e){t.closeConfirmModal(),swal("Error","Something went wrong. Please try again later.","error")});this.closeConfirmModal()},confirmModalCancel:function(){this.closeConfirmModal()},moderatePost:function(t,e,s){var a=this,o=(t.account.username,t.id,""),i=this;switch(e){case"addcw":o="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!0,i.closeModals(),i.ctxModMenuClose()}).catch(function(t){swal("Error","Something went wrong, please try again later.","error"),i.closeModals(),i.ctxModMenuClose()})});break;case"remcw":o="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!1,i.closeModals(),i.ctxModMenuClose()}).catch(function(t){swal("Error","Something went wrong, please try again later.","error"),i.closeModals(),i.ctxModMenuClose()})});break;case"unlist":o="Are you sure you want to unlist this post?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(e){a.feed=a.feed.filter(function(e){return e.id!=t.id}),swal("Success","Successfully unlisted post","success"),i.closeModals(),i.ctxModMenuClose()}).catch(function(t){i.closeModals(),i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")})});break;case"spammer":o="Are you sure you want to mark this user as a spammer? All existing and future posts will be unlisted on timelines and a content warning will be applied.",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(t){swal("Success","Successfully marked account as spammer","success"),i.closeModals(),i.ctxModMenuClose()}).catch(function(t){i.closeModals(),i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")})})}},shareStatus:function(t,e){0!=a("body").hasClass("loggedIn")&&(this.closeModals(),axios.post("/i/share",{item:t.id}).then(function(e){t.reblogs_count=e.data.count,t.reblogged=!t.reblogged,t.reblogged?swal("Success","You shared this post","success"):swal("Success","You unshared this post","success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")}))},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},deletePost:function(t){var e=this;0!=a("body").hasClass("loggedIn")&&0!=this.ownerOrAdmin(t)&&0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/i/delete",{type:"status",item:t.id}).then(function(s){e.$emit("status-delete",t.id),e.closeModals()}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},archivePost:function(t){var e=this;0!=window.confirm("Are you sure you want to archive this post?")&&axios.post("/api/pixelfed/v2/status/"+t.id+"/archive").then(function(s){e.$emit("status-delete",t.id),e.closeModals()})},unarchivePost:function(t){var e=this;0!=window.confirm("Are you sure you want to unarchive this post?")&&axios.post("/api/pixelfed/v2/status/"+t.id+"/unarchive").then(function(t){e.closeModals()})}}}},3891(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{label:{type:String},inputText:{type:String},val:{type:String},helpText:{type:String},strongText:{type:Boolean,default:!0}},data:function(){return{value:this.val}},watch:{value:function(t,e){this.$emit("update",t)}}}},35334(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{label:{type:String},placeholder:{type:String},categories:{type:Array},val:{type:String},helpText:{type:String},hasLimit:{type:Boolean,default:!1},maxLimit:{type:Number,default:40},largeInput:{type:Boolean,default:!1}},data:function(){return{value:this.val?this.val:""}},watch:{value:function(t,e){this.$emit("update",t)}}}},87844(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{label:{type:String},placeholder:{type:String},val:{type:String},helpText:{type:String},hasLimit:{type:Boolean,default:!1},maxLimit:{type:Number,default:40},largeInput:{type:Boolean,default:!1},rows:{type:Number,default:4}},data:function(){return{value:this.val}},watch:{value:function(t,e){this.$emit("update",t)}}}},45065(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{label:{type:String},placeholder:{type:String},val:{type:String},helpText:{type:String},hasLimit:{type:Boolean,default:!1},maxLimit:{type:Number,default:40},largeInput:{type:Boolean,default:!1}},data:function(){return{value:this.val}},watch:{value:function(t,e){this.$emit("update",t)}}}},91446(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{profile:{type:Object},groupId:{type:String}},data:function(){return{config:window.App.config,composeText:void 0,tab:null,placeholder:"Write something...",allowPhoto:!0,allowVideo:!0,allowPolls:!0,allowEvent:!0,pollOptionModel:null,pollOptions:[],pollExpiry:1440,uploadProgress:0,isUploading:!1,isPosting:!1,photoName:void 0,videoName:void 0}},methods:{newPost:function(){var t=this;if(!this.isPosting){this.isPosting=!0;var e=this,s="text",a=new FormData;switch(a.append("group_id",this.groupId),this.composeText&&this.composeText.length&&a.append("caption",this.composeText),this.tab){case"poll":if(!this.pollOptions||this.pollOptions.length<2||this.pollOptions.length>4)return void swal("Oops!","A poll must have 2-4 choices.","error");if(!this.composeText||this.composeText.length<5)return void swal("Oops!","A poll question must be at least 5 characters.","error");for(var o=0;o0&&void 0!==arguments[0])||arguments[0])&&event.currentTarget.blur(),this.tab=null,this.$refs.photoInput.value=null,this.photoName=null,this.$refs.videoInput.value=null,this.videoName=null}}}},15426(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{group:{type:Object}},methods:{timestampFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=new Date(t);return e?s.toDateString()+" ยท "+s.toLocaleTimeString():s.toDateString()}}}},51796(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(2e4);s(73718);const o={props:{group:{type:Object},profile:{type:Object}},components:{"autocomplete-input":a.default},data:function(){return{query:"",recent:[],loaded:!1,usernames:[],isSubmitting:!1}},methods:{open:function(){this.$refs.modal.show()},close:function(){this.$refs.modal.hide()},autocompleteSearch:function(t){var e=this;return t&&0!=t.length?axios.post("/api/v0/groups/search/invite/friends",{q:t,g:this.group.id,v:"0.2"}).then(function(t){return t.data.filter(function(t){return-1==e.usernames.map(function(t){return t.username}).indexOf(t.username)})}):[]},getSearchResultValue:function(t){return t.username},onSearchSubmit:function(t){this.usernames.push(t),this.$refs.autocomplete.value=""},removeUsername:function(t){event.currentTarget.blur(),this.usernames.splice(t,1)},submitInvites:function(){var t=this;this.isSubmitting=!0,event.currentTarget.blur(),axios.post("/api/v0/groups/search/invite/friends/send",{g:this.group.id,uids:this.usernames.map(function(t){return t.id})}).then(function(e){t.usernames=[],t.isSubmitting=!1,t.close(),swal("Success","Successfully sent invite(s)","success")}).catch(function(e){t.usernames=[],t.isSubmitting=!1,422===e.response.status?swal("Error",e.response.data.error,"error"):swal("Oops!","An error occured, please try again later","error"),t.close()})}}}},68902(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{group:{type:Object},compact:{type:Boolean,default:!1},showStats:{type:Boolean,default:!1},truncateTitleLength:{type:Number,default:19},truncateDescriptionLength:{type:Number,default:22}},data:function(){return{titleLength:40,descriptionLength:60}},mounted:function(){this.compact&&(this.titleLength=19,this.descriptionLength=22),19!=this.truncateTitleLength&&(this.titleLength=this.truncateTitleLength),22!=this.truncateDescriptionLength&&(this.descriptionLength=this.truncateDescriptionLength)},methods:{prettyCount:function(t){return App.util.format.count(t)},truncate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:140;return t.length<=e?t:t.substr(0,e)+" ..."}}}},43599(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(7764),o=s(69513);const i={props:{groupId:{type:String},status:{type:Object},profile:{type:Object}},components:{"read-more":a.default,"comment-drawer":o.default},data:function(){return{loaded:!1}},mounted:function(){this.init()},methods:{init:function(){this.loaded=!0,this.$refs.modal.show()},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)}}}},89905(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(2e4);s(73718);const o={props:{group:{type:Object},profile:{type:Object}},components:{autocomplete:a.default},data:function(){return{query:"",recent:[],loaded:!1}},methods:{open:function(){this.fetchRecent(),this.$refs.modal.show()},close:function(){this.$refs.modal.hide()},fetchRecent:function(){var t=this;axios.get("/api/v0/groups/search/getrec",{params:{g:this.group.id}}).then(function(e){t.recent=e.data})},autocompleteSearch:function(t){return!t||t.length<2?[]:axios.post("/api/v0/groups/search/lac",{q:t,g:this.group.id,v:"0.2"}).then(function(t){return t.data})},getSearchResultValue:function(t){return t.username},onSearchSubmit:function(t){if(t.length<1)return[];axios.post("/api/v0/groups/search/addrec",{g:this.group.id,q:{value:t.username,action:t.url}}).then(function(e){location.href=t.url})},viewMyActivity:function(){location.href="/groups/".concat(this.group.id,"/user/").concat(this.profile.id,"?rf=group_search")},viewGroupSearch:function(){location.href="/groups/home?ct=gsearch&rf=group_search&rfid=".concat(this.group.id)},addToRecentSearches:function(){}}}},6234(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>g});var a=s(69513),o=s(84125),i=s(78841),r=s(21466),n=s(98051),l=s(37128),c=s(61518),d=s(79427),u=s(42013),p=s(93934),f=s(40798),m=s(76746);function h(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?v(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);s@'+o+"";case"from":return a+' from '+o+"";case"custom":return a+' '+s+" "+o+""}},lightbox:function(t){window.location.href=t.media_attachments[0].url},likeStatus:function(t,e){e.currentTarget.blur();var s=t.favourites_count,a=t.favourited?"unlike":"like";axios.post("/api/v0/groups/status/"+a,{sid:t.id,gid:this.groupId}).then(function(o){t.favourited=a,t.favourites_count=a?s+1:s-1,t.favourited=a,t.favourited&&setTimeout(function(){e.target.classList.add("animate__animated","animate__bounce")},100)}).catch(function(t){422==t.response.status?swal("Error",t.response.data.error,"error"):swal("Error","Something went wrong, please try again later.","error")}),window.navigator.vibrate(200)},commentFocus:function(t){t.target.blur(),this.showCommentDrawer=!this.showCommentDrawer},commentSubmit:function(t,e){var s=this;this.replySending=!0;var a=t.id,o=this.replyText,i=this.config.uploader.max_caption_length;if(o.length>i)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+i+" characters or less.","error");axios.post("/i/comment",{item:a,comment:o,sensitive:this.replyNsfw}).then(function(t){s.replyText="",s.replies.push(t.data.entity),s.$refs.replyModal.hide()}),this.replySending=!1},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},ctxMenu:function(){this.$refs.contextMenu.open()},timeAgo:function(t){return App.util.format.timeAgo(t)},statusDeleted:function(t){this.$emit("status-delete")},showPostModal:function(){this.showModal=!0,this.$refs.modal.init()},showLikesModal:function(t){t&&t.hasOwnProperty("currentTarget")&&t.currentTarget().blur(),this.$emit("likes-modal")},infiniteLikesHandler:function(t){var e=this;axios.get("/api/v0/groups/"+this.groupId+"/likes/"+this.status.id,{params:{page:this.likesPage}}).then(function(s){var a,o=s.data;o.data.length>0?((a=e.likes).push.apply(a,h(o.data)),e.likesPage++,t.loaded()):t.complete()})}}}},96895(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={}},70714(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{group:{type:Object}}}},9125(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{group:{type:Object},isAdmin:{type:Boolean,default:!1},isMember:{type:Boolean,default:!1}},data:function(){return{requestingMembership:!1}},methods:{joinGroup:function(){var t=this;this.requestingMembership=!0,axios.post("/api/v0/groups/"+this.group.id+"/join").then(function(e){t.requestingMembership=!1,t.$emit("refresh")}).catch(function(e){var s=e.response;422==s.status&&(t.requestingMembership=!1,swal("Oops!",s.data.error,"error"))})},cancelJoinRequest:function(){var t=this;window.confirm("Are you sure you want to cancel your request to join this group?")&&axios.post("/api/v0/groups/"+this.group.id+"/cjr").then(function(e){t.requestingMembership=!1,t.$emit("refresh")}).catch(function(t){var e=t.response;422==e.status&&swal("Oops!",e.data.error,"error")})},leaveGroup:function(){var t=this;window.confirm("Are you sure you want to leave this group? Any content you shared will remain accessible. You won't be able to rejoin for 24 hours.")&&axios.post("/api/v0/groups/"+this.group.id+"/leave").then(function(e){t.$emit("refresh")})}}}},11493(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(94559);const o={props:{group:{type:Object},isAdmin:{type:Boolean,default:!1},isMember:{type:Boolean,default:!1},atabs:{type:Object},profile:{type:Object}},components:{"search-modal":a.default},methods:{showSearchModal:function(){event.currentTarget.blur(),this.$refs.searchModal.open()}}}},79270(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{status:{type:Object},cursorLimit:{type:Number,default:200}},data:function(){return{fullContent:null,content:null,cursor:200}},mounted:function(){this.cursor=this.cursorLimit,this.fullContent=this.status.content,this.content=this.status.content.substr(0,this.cursor)},methods:{readMore:function(){this.cursor=this.cursor+200,this.content=this.fullContent.substr(0,this.cursor)}}}},93350(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(75386);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);so});var a=s(95002);const o={props:{profile:{type:Object}},data:function(){return{feed:[],ids:[],page:1,tab:"feed",initalLoad:!1,emptyFeed:!0}},components:{"group-status":a.default},mounted:function(){this.fetchFeed()},methods:{fetchFeed:function(){var t=this;axios.get("/api/v0/groups/self/feed",{params:{initial:!0}}).then(function(e){t.page++,t.feed=e.data,t.emptyFeed=0===t.feed.length,t.initalLoad=!0})},infiniteFeed:function(t){var e=this;this.feed.length<2||this.page>5?t.complete():axios.get("/api/v0/groups/self/feed",{params:{page:this.page}}).then(function(s){if(s.data.length){var a=s.data,o=e;a.forEach(function(t){-1==o.ids.indexOf(t.id)&&(o.ids.push(t.id),o.feed.push(t))}),t.loaded(),e.page++}else t.complete()})},switchTab:function(t){this.tab=t},gotoDiscover:function(){this.$emit("switchtab","discover")}}}},7755(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(75386);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=Array(e);sa});const a={}},93543(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={data:function(){return{notifications:[],initialLoad:!1,loading:!0,page:1}},mounted:function(){this.fetchNotifications()},methods:{fetchNotifications:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then(function(t){window._sharedData.curUser=t.data,window.App.util.navatar()}),axios.get("/api/v0/groups/self/notifications").then(function(e){var s=e.data.filter(function(t){return!("share"==t.type&&!t.status)&&(!("comment"==t.type&&!t.status)&&(!("mention"==t.type&&!t.status)&&(!("favourite"==t.type&&!t.status)&&!("follow"==t.type&&!t.account))))});t.notifications=s})},truncate:function(t){return t.length<=15?t:t.slice(0,15)+"..."},timeAgo:function(t){var e=Date.parse(t),s=Math.floor((new Date-e)/1e3),a=Math.floor(s/31536e3);return a>=1?a+"y":(a=Math.floor(s/604800))>=1?a+"w":(a=Math.floor(s/86400))>=1?a+"d":(a=Math.floor(s/3600))>=1?a+"h":(a=Math.floor(s/60))>=1?a+"m":Math.floor(s)+"s"},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},followProfile:function(t){var e=this,s=t.account.id;axios.post("/i/follow",{item:s}).then(function(t){e.notifications.map(function(t){t.account.id===s&&(t.relationship.following=!0)})}).catch(function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")})},viewContext:function(t){switch(t.type){case"follow":return t.account.url;case"mention":case"like":case"favourite":case"comment":return t.status.url;case"tagged":return t.tagged.post_url;case"direct":return"/account/direct/t/"+t.account.id}return"/"},getProfileUrl:function(t){return 1==t.local?t.url:"/i/web/profile/_/"+t.id},getPostUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id}}}},60217(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={data:function(){return{q:void 0}}}},33664(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{group:{type:Object},status:{type:Object},profile:{type:Object},showGroupHeader:{type:Boolean,default:!1},showGroupChevron:{type:Boolean,default:!1}},data:function(){return{reportTypes:[{key:"spam",title:"It's spam"},{key:"sensitive",title:"Nudity or sexual activity"},{key:"abusive",title:"Bullying or harassment"},{key:"underage",title:"I think this account is underage"},{key:"violence",title:"Violence or dangerous organizations"},{key:"copyright",title:"Copyright infringement"},{key:"impersonation",title:"Impersonation"},{key:"scam",title:"Scam or fraud"},{key:"terrorism",title:"Terrorism or terrorism-related content"}]}},methods:{formatCount:function(t){return App.util.format.count(t)},statusUrl:function(){return"/groups/"+this.status.gid+"/p/"+this.status.id},profileUrl:function(){return"/groups/"+this.status.gid+"/user/"+this.status.account.id},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)},statusCardUsernameFormat:function(t){if(1==t.account.local)return t.account.username;var e=window.App.config.username.remote.format,s=window.App.config.username.remote.custom,a=t.account.username,o=document.createElement("a");switch(o.href=t.account.url,o=o.hostname,e){case"@":default:return a+'@'+o+"";case"from":return a+' from '+o+"";case"custom":return a+' '+s+" "+o+""}},sendReport:function(t){var e=this,s=document.createElement("div");s.classList.add("list-group"),this.reportTypes.forEach(function(t){var e=document.createElement("button");e.classList.add("list-group-item","small"),e.innerHTML=t.title,e.onclick=function(){document.dispatchEvent(new CustomEvent("reportOption",{detail:{key:t.key,title:t.title}}))},s.appendChild(e)});var a=document.createElement("div");a.appendChild(s),swal({title:"Report Content",icon:"warning",content:a,buttons:!1}),document.addEventListener("reportOption",function(t){console.log(t.detail),e.showConfirmation(t.detail)},{once:!0})},showConfirmation:function(t){var e=this;console.log(t),swal({title:"Confirmation",text:"You selected ".concat(t.title,". Do you want to proceed?"),icon:"info",buttons:!0}).then(function(s){s?axios.post("/api/v0/groups/".concat(e.status.gid,"/report/create"),{type:t.key,id:e.status.id}).then(function(t){swal("Confirmed!","Your report has been submitted.","success")}):swal("Cancelled","Your report was not submitted.","error")})},onDelete:function(){var t=this;swal({title:"Delete Post Confirmation",text:"Are you sure you want to delete this post?",icon:"warning",dangerMode:!0,buttons:!0}).then(function(e){e&&axios.post("/api/v0/groups/status/delete",{id:t.status.id,gid:t.status.gid}).then(function(e){t.$emit("delete",t.status)}).catch(function(t){console.log(t)})})}}}},75e3(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(69513);const o={props:{showCommentDrawer:{type:Boolean},permalinkMode:{type:Boolean},childContext:{type:Object},status:{type:Object},profile:{type:Object},groupId:{type:String}},components:{"comment-drawer":a.default}}},33422(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["status"]}},36639(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(18634);const o={props:["status"],data:function(){return{sensitive:this.status.sensitive,cursor:0}},created:function(){},beforeDestroy:function(){},methods:{toggleContentWarning:function(t){this.$emit("togglecw")},toggleLightbox:function(t){(0,a.default)({el:t.target,gallery:"#carousel-"+this.status.id,position:this.$refs.carousel.currentPage})},altText:function(t){var e=t.description;return e||"Photo was not tagged with any alt text."},keypressNavigation:function(t){var e=this.$refs.carousel;if("37"==t.keyCode){t.preventDefault();var s="backward";e.advancePage(s),e.$emit("navigation-click",s)}if("39"==t.keyCode){t.preventDefault();var a="forward";e.advancePage(a),e.$emit("navigation-click",a)}}}}},9266(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(18634);const o={props:{status:{type:Object},isFiltered:{type:Boolean,default:!1}},data:function(){return{sensitive:this.status.sensitive}},methods:{altText:function(t){var e=t.media_attachments[0].description;return e||"Photo was not tagged with any alt text."},toggleContentWarning:function(t){this.$emit("togglecw")},toggleLightbox:function(t){(0,a.default)({el:t.target})},width:function(){if(this.status.media_attachments[0].meta&&this.status.media_attachments[0].meta.original&&this.status.media_attachments[0].meta.original.width)return this.status.media_attachments[0].meta.original.width},height:function(){if(this.status.media_attachments[0].meta&&this.status.media_attachments[0].meta.original&&this.status.media_attachments[0].meta.original.height)return this.status.media_attachments[0].meta.original.height}}}},35986(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["status"]}},25189(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["status"],methods:{altText:function(t){var e=t.media_attachments[0].description;return e||"Video was not tagged with any alt text."},playOrPause:function(t){var e=t.target;1==e.getAttribute("playing")?(e.removeAttribute("playing"),e.pause()):(e.setAttribute("playing",1),e.play())},toggleContentWarning:function(t){this.$emit("togglecw")},poster:function(){var t=this.status.media_attachments[0].preview_url;if(!t.endsWith("no-preview.jpg")&&!t.endsWith("no-preview.png"))return t}}}},70384(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(74692);const o={props:["status","profile"],data:function(){return{ctxMenuStatus:!1,ctxMenuRelationship:!1,ctxEmbedPayload:!1,copiedEmbed:!1,replySending:!1,ctxEmbedShowCaption:!0,ctxEmbedShowLikes:!1,ctxEmbedCompactMode:!1,confirmModalTitle:"Are you sure?",confirmModalIdentifer:null,confirmModalType:!1}},watch:{ctxEmbedShowCaption:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)}},methods:{open:function(){this.ctxMenu()},ctxMenu:function(){var t=this;this.ctxMenuStatus=this.status,this.ctxEmbedPayload=window.App.util.embed.post(this.status.url),this.status.account.id==this.profile.id?(this.ctxMenuRelationship=!1,this.$refs.ctxModal.show()):axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.status.account.id}}).then(function(e){t.ctxMenuRelationship=e.data[0],t.$refs.ctxModal.show()})},closeCtxMenu:function(){this.copiedEmbed=!1,this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.closeModals()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeModals()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;window.location.href=this.statusUrl(t),this.closeCtxMenu()},ctxMenuGoToProfile:function(){var t=this.ctxMenuStatus;window.location.href=this.profileUrl(t),this.closeCtxMenu()},ctxMenuReportPost:function(){this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},ctxMenuEmbed:function(){this.closeModals(),this.$refs.ctxEmbedModal.show()},ctxMenuShare:function(){this.$refs.ctxModal.hide(),this.$refs.ctxShareModal.show()},closeCtxShareMenu:function(){this.$refs.ctxShareModal.hide(),this.$refs.ctxModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.ctxEmbedShowCaption=!0,this.ctxEmbedShowLikes=!1,this.ctxEmbedCompactMode=!1,this.$refs.ctxEmbedModal.hide()},ctxModMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModOtherMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.show()},ctxModMenu:function(){this.$refs.ctxModal.hide()},ctxModMenuClose:function(){this.closeModals()},ctxModOtherMenuClose:function(){this.closeModals(),this.$refs.ctxModModal.show()},formatCount:function(t){return App.util.format.count(t)},openCtxReportOtherMenu:function(){var t=this.ctxMenuStatus;this.closeCtxMenu(),this.ctxMenuStatus=t,this.$refs.ctxReportOther.show()},ctxReportMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxModal.show()},ctxReportOtherMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},sendReport:function(t){var e=this,s=this.ctxMenuStatus.id;swal({title:"Confirm Report",text:"Are you sure you want to report this post?",icon:"warning",buttons:!0,dangerMode:!0}).then(function(a){a?axios.post("/i/report/",{report:t,type:"post",id:s}).then(function(t){e.closeCtxMenu(),swal("Report Sent!","We have successfully received your report.","success")}).catch(function(t){swal("Oops!","There was an issue reporting this post.","error")}):e.closeCtxMenu()})},closeModals:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.hide(),this.$refs.ctxShareModal.hide(),this.$refs.ctxEmbedModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.$refs.ctxConfirm.hide()},openCtxStatusModal:function(){this.closeModals(),this.$refs.ctxStatusModal.show()},openConfirmModal:function(){this.closeModals(),this.$refs.ctxConfirm.show()},closeConfirmModal:function(){this.closeModals(),this.confirmModalTitle="Are you sure?",this.confirmModalType=!1,this.confirmModalIdentifer=null},confirmModalConfirm:function(){var t=this;if("post.delete"===this.confirmModalType)axios.post("/i/delete",{type:"status",item:this.confirmModalIdentifer}).then(function(e){t.feed=t.feed.filter(function(e){return e.id!=t.confirmModalIdentifer}),t.closeConfirmModal()}).catch(function(e){t.closeConfirmModal(),swal("Error","Something went wrong. Please try again later.","error")});this.closeConfirmModal()},confirmModalCancel:function(){this.closeConfirmModal()},moderatePost:function(t,e,s){var a=this,o=(t.account.username,t.id,""),i=this;switch(e){case"addcw":o="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!0,i.closeModals(),i.ctxModMenuClose()}).catch(function(t){swal("Error","Something went wrong, please try again later.","error"),i.closeModals(),i.ctxModMenuClose()})});break;case"remcw":o="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!1,i.closeModals(),i.ctxModMenuClose()}).catch(function(t){swal("Error","Something went wrong, please try again later.","error"),i.closeModals(),i.ctxModMenuClose()})});break;case"unlist":o="Are you sure you want to unlist this post?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(e){a.feed=a.feed.filter(function(e){return e.id!=t.id}),swal("Success","Successfully unlisted post","success"),i.closeModals(),i.ctxModMenuClose()}).catch(function(t){i.closeModals(),i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")})});break;case"spammer":o="Are you sure you want to mark this user as a spammer? All existing and future posts will be unlisted on timelines and a content warning will be applied.",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0}).then(function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then(function(t){swal("Success","Successfully marked account as spammer","success"),i.closeModals(),i.ctxModMenuClose()}).catch(function(t){i.closeModals(),i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")})})}},shareStatus:function(t,e){0!=a("body").hasClass("loggedIn")&&(this.closeModals(),axios.post("/i/share",{item:t.id}).then(function(e){t.reblogs_count=e.data.count,t.reblogged=!t.reblogged,t.reblogged?swal("Success","You shared this post","success"):swal("Success","You unshared this post","success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")}))},statusUrl:function(t){return 1==t.account.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.account.local?t.account.url:"/i/web/profile/_/"+t.account.id},deletePost:function(t){var e=this;0!=a("body").hasClass("loggedIn")&&0!=this.ownerOrAdmin(t)&&0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/i/delete",{type:"status",item:t.id}).then(function(s){e.$emit("status-delete",t.id),e.closeModals()}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},archivePost:function(t){var e=this;0!=window.confirm("Are you sure you want to archive this post?")&&axios.post("/api/pixelfed/v2/status/"+t.id+"/archive").then(function(s){e.$emit("status-delete",t.id),e.closeModals()})},unarchivePost:function(t){var e=this;0!=window.confirm("Are you sure you want to unarchive this post?")&&axios.post("/api/pixelfed/v2/status/"+t.id+"/unarchive").then(function(t){e.closeModals()})}}}},78615(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(53744),o=s(74692);const i={props:{reactions:{type:Object},status:{type:Object},profile:{type:Object},showBorder:{type:Boolean,default:!0},showBorderTop:{type:Boolean,default:!1},fetchState:{type:Boolean,default:!1}},components:{"context-menu":a.default},data:function(){return{authenticated:!1,tab:"vote",selectedIndex:null,refreshTimeout:void 0,activeRefreshTimeout:!1,refreshingResults:!1}},mounted:function(){var t=this;this.fetchState?axios.get("/api/v1/polls/"+this.status.poll.id).then(function(e){t.status.poll=e.data,e.data.voted&&(t.selectedIndex=e.data.own_votes[0],t.tab="voted"),t.status.poll.expired=new Date(t.status.poll.expires_at)r});var a=s(53744),o=s(78841),i=s(74692);const r={props:{status:{type:Object},recommended:{type:Boolean,default:!1},reactionBar:{type:Boolean,default:!0},hasTopBorder:{type:Boolean,default:!1},size:{type:String,validator:function(t){return["regular","small"].includes(t)},default:"regular"}},components:{"context-menu":a.default,"poll-card":o.default},data:function(){return{config:window.App.config,profile:{},loading:!0,replies:[],replyId:null,lightboxMedia:!1,showSuggestions:!0,showReadMore:!0,replyStatus:{},replyText:"",replyNsfw:!1,emoji:window.App.util.emoji,content:void 0}},mounted:function(){var t=this;this.profile=window._sharedData.curUser,this.content=this.status.content,this.status.emojis.forEach(function(e){var s='
');t.content=t.content.replace(":".concat(e.shortcode,":"),s)})},methods:{formatCount:function(t){return App.util.format.count(t)},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)},statusCardUsernameFormat:function(t){if(1==t.account.local)return t.account.username;var e=window.App.config.username.remote.format,s=window.App.config.username.remote.custom,a=t.account.username,o=document.createElement("a");switch(o.href=t.account.url,o=o.hostname,e){case"@":default:return a+'@'+o+"";case"from":return a+' from '+o+"";case"custom":return a+' '+s+" "+o+""}},lightbox:function(t){window.location.href=t.media_attachments[0].url},likeStatus:function(t,e){if(0!=i("body").hasClass("loggedIn")){var s=t.favourites_count;t.favourited=!t.favourited,axios.post("/i/like",{item:t.id}).then(function(e){t.favourites_count=e.data.count,t.favourited=!!t.favourited}).catch(function(e){t.favourited=!!t.favourited,t.favourites_count=s,swal("Error","Something went wrong, please try again later.","error")}),window.navigator.vibrate(200),t.favourited&&setTimeout(function(){e.target.classList.add("animate__animated","animate__bounce")},100)}},commentFocus:function(t,e){this.$emit("comment-focus",t)},commentSubmit:function(t,e){var s=this;this.replySending=!0;var a=t.id,o=this.replyText,i=this.config.uploader.max_caption_length;if(o.length>i)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+i+" characters or less.","error");axios.post("/i/comment",{item:a,comment:o,sensitive:this.replyNsfw}).then(function(t){s.replyText="",s.replies.push(t.data.entity),s.$refs.replyModal.hide()}),this.replySending=!1},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},ctxMenu:function(){this.$refs.contextMenu.open()},timeAgo:function(t){return App.util.format.timeAgo(t)},statusDeleted:function(t){this.$emit("status-delete",t)}}}},93409(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-component"},["home"===t.tab?e("div",[e("groups-home")],1):t._e(),t._v(" "),"createGroup"===t.tab?e("div",[e("create-group")],1):t._e(),t._v(" "),"show"===t.tab?e("div",[e("group-feed",{attrs:{"group-id":t.groupId,path:t.path}})],1):t._e()])},o=[]},92192(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"create-group-component col-12 col-md-9",staticStyle:{height:"100vh - 51px !important",overflow:"hidden"}},[t.hide?t._e():e("div",{staticClass:"row h-100 bg-lighter"},[e("div",{staticClass:"col-12 col-md-8 border-left"},[t._m(0),t._v(" "),e("div",{staticClass:"px-2 mb-5"},[e("div",{staticClass:"mt-4"},[e("text-input",{attrs:{label:"Group Name",value:t.name,hasLimit:!0,maxLimit:t.limit.name.max,placeholder:"Add your group name",helpText:"Alphanumeric characters only, you can change this later.",largeInput:!0},on:{update:function(e){return t.handleUpdate("name",e)}}}),t._v(" "),e("hr"),t._v(" "),e("select-input",{attrs:{label:"Group Type",value:t.membership,categories:t.membershipCategories,placeholder:"Select a type",helpText:"Select the membership type, you can change this later."},on:{update:function(e){return t.handleUpdate("membership",e)}}}),t._v(" "),e("hr"),t._v(" "),e("select-input",{attrs:{label:"Group Category",value:t.category,categories:t.categories,placeholder:"Select a category",helpText:"Choose the most relevant category to improve discovery and visibility"},on:{update:function(e){return t.handleUpdate("category",e)}}}),t._v(" "),e("hr"),t._v(" "),e("text-area-input",{attrs:{label:"Group Description",value:t.description,hasLimit:!0,maxLimit:t.limit.description.max,placeholder:"Describe your groups purpose in a few words",helpText:"Describe your groups purpose in a few words, you can change this later."},on:{update:function(e){return t.handleUpdate("description",e)}}}),t._v(" "),e("hr"),t._v(" "),e("checkbox-input",{attrs:{label:"Adult Content",inputText:"Allow Adult Content",value:t.configuration.adult,helpText:"Groups that allow adult content should enable this or risk suspension or deletion by instance admins. Illegal content is prohibited. You can change this later."}}),t._v(" "),e("hr"),t._v(" "),e("checkbox-input",{attrs:{label:"",inputText:"I agree to the the Community Guidelines and Terms of Use and will administrate this group according to the rules set by this server. I understand that failure to abide by these terms may lead to the suspension of this group, and my account.",value:t.hasConfirmed,strongText:!1},on:{update:function(e){return t.handleUpdate("hasConfirmed",e)}}}),t._v(" "),e("button",{staticClass:"btn btn-primary btn-block font-weight-bold rounded-pill mt-4",attrs:{disabled:!t.hasConfirmed},on:{click:t.createGroup}},[t._v("\n Create Group\n ")])],1)])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4 bg-white"})])])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg-dark p-5 mx-n3"},[e("p",{staticClass:"h1 font-weight-bold text-light mb-2"},[t._v("Create Group")]),t._v(" "),e("p",{staticClass:"text-lighter mb-0"},[t._v("Create a new federated Group that is compatible with other Pixelfed and Lemmy servers")])])}]},91057(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-feed-component"},[t.initalLoad?e("div",[e("div",{staticClass:"mb-3 border-bottom"},[e("div",{staticClass:"container-xl"},[e("group-banner",{attrs:{group:t.group}}),t._v(" "),e("group-header-details",{attrs:{group:t.group,isAdmin:t.isAdmin,isMember:t.isMember},on:{refresh:t.handleRefresh}}),t._v(" "),e("group-nav-tabs",{attrs:{group:t.group,isAdmin:t.isAdmin,isMember:t.isMember,atabs:t.atabs}})],1)]),t._v(" "),e("div",{staticClass:"container-xl group-feed-component-body"},[e("div",{staticClass:"row mb-5"},[e("div",{staticClass:"col-12 col-md-7 mt-3"},[t.group.self.is_member?e("div",[t.initalLoad?e("group-compose",{attrs:{profile:t.profile,"group-id":t.groupId},on:{"new-status":t.pushNewStatus}}):t._e(),t._v(" "),0==t.feed.length?e("div",{staticClass:"mt-3"},[t._m(0)]):e("div",{staticClass:"group-timeline"},[e("p",{staticClass:"font-weight-bold mb-1"},[t._v("Recent Posts")]),t._v(" "),t._l(t.feed,function(s,a){return e("group-status",{key:"gs:"+s.id+a,attrs:{prestatus:s,profile:t.profile,"group-id":t.groupId},on:{"comment-focus":function(e){return t.commentFocus(a)},"status-delete":function(e){return t.statusDelete(a)},"likes-modal":function(e){return t.showLikesModal(a)}}})}),t._v(" "),e("b-modal",{ref:"likeBox",attrs:{size:"sm",centered:"","hide-footer":"",title:"Likes","body-class":"list-group-flush p-0"}},[e("div",{staticClass:"list-group py-1",staticStyle:{"max-height":"300px","overflow-y":"auto"}},[t._l(t.likes,function(s,a){return e("div",{key:"modal_likes_"+a,staticClass:"list-group-item border-top-0 border-left-0 border-right-0 py-2",class:{"border-bottom-0":a+1==t.likes.length}},[e("div",{staticClass:"media align-items-center"},[e("a",{attrs:{href:s.url}},[e("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:s.avatar,alt:s.username+"โs avatar",width:"30px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg';"}})]),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[e("a",{staticClass:"font-weight-bold text-dark",attrs:{href:s.url}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(s.username)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),s.local?e("p",{staticClass:"text-muted mb-0 text-truncate",staticStyle:{"font-size":"14px"}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(s.display_name)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t")]):e("p",{staticClass:"text-muted mb-0 text-truncate mr-3",staticStyle:{"font-size":"14px"},attrs:{title:s.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(s.acct.split("@")[0]))]),e("span",{staticClass:"text-lighter"},[t._v("@"+t._s(s.acct.split("@")[1]))])])])])])}),t._v(" "),e("infinite-loading",{attrs:{distance:800,spinner:"spiral"},on:{infinite:t.infiniteLikesHandler}},[e("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),e("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),t.feed.length>2?e("div",{attrs:{distance:800}},[e("infinite-loading",{on:{infinite:t.infiniteFeed}},[e("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),e("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()],2)],1):e("div",[t._m(1)])]),t._v(" "),e("div",{staticClass:"col-12 col-md-5"},[e("group-info-card",{attrs:{group:t.group}})],1)]),t._v(" "),e("search-modal",{ref:"searchModal",attrs:{group:t.group,profile:t.profile}}),t._v(" "),e("invite-modal",{ref:"inviteModal",attrs:{group:t.group,profile:t.profile}})],1)]):e("div",[e("p",{staticClass:"text-center mt-5 pt-5 font-weight-bold"},[t._v("Loading...")])])])},o=[function(){var t=this._self._c;return t("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center",staticStyle:{height:"200px"}},[t("p",{staticClass:"font-weight-bold mb-0"},[this._v("No posts yet!")])])},function(){var t=this._self._c;return t("div",{staticClass:"card card-body mt-3 shadow-none border d-flex align-items-center justify-content-center",staticStyle:{height:"100px"}},[t("p",{staticClass:"lead mb-0"},[this._v("Join to participate in this group.")])])}]},62959(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-invite-component"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-center mt-5"},[e("div",{staticClass:"col-12 col-md-7"},[e("div",{staticClass:"card shadow-none border",staticStyle:{"min-height":"300px"}},[e("div",{staticClass:"card-body d-flex justify-content-center align-items-center"},[e("transition-group",{attrs:{name:"fade"}},["initial"===t.tab?e("div",{key:"initial"},[e("p",{staticClass:"text-center mb-1"},[e("b-spinner",{attrs:{variant:"lighter"}})],1),t._v(" "),e("p",{staticClass:"text-center small text-muted mb-0"},[t._v(t._s(t.loadingStatus))])]):"loading"===t.tab?e("div",{key:"loading"},[e("p",{staticClass:"text-center mb-1"},[e("b-spinner",{attrs:{variant:"lighter"}})],1)]):"login"===t.tab?e("div",{key:"login"},[e("p",{staticClass:"text-center mb-0"},[t._v("Please "),e("a",{attrs:{href:"/login"}},[t._v("login")]),t._v(" to continue")])]):"form"===t.tab?e("div",{key:"form"},[e("div",{staticClass:"d-flex justify-content-center align-items-center flex-column"},[e("p",{staticClass:"text-center h4 font-weight-bold"},[e("a",{attrs:{href:"#"}},[t._v("@dansup")]),t._v(" invited you to join")]),t._v(" "),e("div",{staticClass:"card my-3 shadow-none border",staticStyle:{width:"300px"}},[t.group.metadata&&t.group.metadata.hasOwnProperty("header")?e("img",{staticClass:"card-img-top",staticStyle:{width:"100%",height:"100px","object-fit":"cover"},attrs:{src:t.group.metadata.header.url}}):e("div",{staticClass:"card-img-top",staticStyle:{width:"100px",height:"100px",padding:"5px"}},[e("div",{staticClass:"bg-primary d-flex align-items-center justify-content-center",staticStyle:{width:"100%",height:"100%"}},[e("i",{staticClass:"fal fa-users text-white fa-lg"})])]),t._v(" "),e("div",{staticClass:"card-body"},[e("p",{staticClass:"h5 font-weight-bold mb-1 text-dark"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.group.name||"Untitled Group")+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.showMore?e("p",{staticClass:"text-muted small mb-1"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.group.description)+"\n\t\t\t\t\t\t\t\t\t\t\t")]):t._e()]),t._v(" "),e("p",{staticClass:"mb-1"},[e("span",{staticClass:"text-muted mr-2"},[e("i",{staticClass:"far fa-users fa-sm text-lighter mr-1"}),t._v(" "),e("span",{staticClass:"small font-weight-bold"},[t._v(t._s(t.prettyCount(t.group.member_count))+" Members")])]),t._v(" "),t.group.local?t._e():e("span",{staticClass:"remote-label ml-2"},[e("i",{staticClass:"fal fa-globe"}),t._v(" Remote\n\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.showMore?e("div",[e("p",{staticClass:"text-muted small mb-1"},[e("i",{staticClass:"far fa-tag fa-sm text-lighter mr-2"}),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("Category: "+t._s(t.group.category.name))])]),t._v(" "),e("p",{staticClass:"text-muted small mb-1"},[e("i",{staticClass:"far fa-clock fa-sm text-lighter mr-2"}),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("Created "+t._s(t.timeago(t.group.created_at))+" ago")])])]):t._e()])],1)])]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("button",{staticClass:"btn btn-light border-lighter font-weight-bold btn-sm",on:{click:t.showMoreInfo}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.showMore?"Less":"More")+" info\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("div",[e("button",{staticClass:"btn btn-light font-weight-bold btn-sm",on:{click:t.declineInvite}},[t._v("Decline")]),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold btn-sm",on:{click:t.acceptInvite}},[t._v("Accept")])])])]):"existingmember"===t.tab?e("div",{key:"existingmember"},[e("p",{staticClass:"text-center mb-0"},[t._v("You already are a member of this group")]),t._v(" "),e("p",{staticClass:"text-center mb-0"},[e("a",{staticClass:"font-weight-bold",attrs:{href:t.group.url}},[t._v("View Group")])])]):"notinvited"===t.tab?e("div",{key:"notinvited"},[e("p",{staticClass:"text-center mb-0"},[t._v("We cannot find an active invitation for your account.")])]):"error"===t.tab?e("div",{key:"error"},[e("p",{staticClass:"text-center mb-0"},[t._v("An unknown error occured. Please try again later.")])]):e("div",{key:"unknown"},[e("p",{staticClass:"text-center mb-0"},[t._v("An unknown error occured. Please try again later.")])])])],1)])])])])])},o=[]},80311(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-profile-component w-100 h-100"},[e("div",{staticClass:"bg-white mb-3 border-bottom"},[e("div",{staticClass:"container-xl header"},[e("div",{staticClass:"header-jumbotron"}),t._v(" "),e("div",{staticClass:"header-profile-card"},[e("img",{staticClass:"avatar",attrs:{src:t.profile.avatar,onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),t._v(" "),e("p",{staticClass:"name"},[t._v("\n\t\t\t\t\t"+t._s(t.profile.display_name)+"\n\t\t\t\t")]),t._v(" "),e("p",{staticClass:"username text-muted"},[t.profile.local?e("span",[t._v("@"+t._s(t.profile.username))]):e("span",[t._v(t._s(t.profile.acct))]),t._v(" "),t.profile.is_admin?e("span",{staticClass:"text-danger ml-1",attrs:{title:"Site administrator","data-toggle":"tooltip","data-placement":"bottom"}},[e("i",{staticClass:"far fa-users-crown"})]):t._e()])]),t._v(" "),e("div",{staticClass:"header-navbar"},[e("div"),t._v(" "),e("div",[t.currentProfile.id===t.profile.id?e("a",{staticClass:"btn btn-light font-weight-bold mr-2",attrs:{href:"/settings/home"}},[e("i",{staticClass:"fas fa-edit mr-1"}),t._v(" Edit Profile\n\t\t\t\t\t")]):t._e(),t._v(" "),t.profile.relationship.following?e("a",{staticClass:"btn btn-primary font-weight-bold mr-2",attrs:{href:t.profile.url}},[e("i",{staticClass:"far fa-comment-alt-dots mr-1"}),t._v(" Message\n\t\t\t\t\t")]):t._e(),t._v(" "),t.profile.relationship.following?e("a",{staticClass:"btn btn-light font-weight-bold mr-2",attrs:{href:t.profile.url}},[e("i",{staticClass:"fas fa-user-check mr-1"}),t._v(" "+t._s(t.profile.relationship.followed_by?"Friends":"Following")+"\n\t\t\t\t\t")]):t._e(),t._v(" "),t.profile.relationship.following?t._e():e("a",{staticClass:"btn btn-light font-weight-bold mr-2",attrs:{href:t.profile.url}},[e("i",{staticClass:"fas fa-user mr-1"}),t._v(" View Main Profile\n\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"dropdown"},[t._m(0),t._v(" "),e("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"amenu"}},[t.currentProfile.id!=t.profile.id?e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"/i/report?type=user&id=".concat(t.profile.id)}},[t._v("Report")]):t._e(),t._v(" "),t.currentProfile.id==t.profile.id?e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"}},[t._v("Leave Group")]):t._e()])])])])])]),t._v(" "),e("div",{staticClass:"w-100 h-100 group-profile-feed"},[e("div",{staticClass:"container-xl"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-5"},[e("div",{staticClass:"card card-body shadow-sm infolet"},[e("h5",{staticClass:"font-weight-bold mb-3"},[t._v("Intro")]),t._v(" "),t.profile.local?t._e():e("div",{staticClass:"media mb-3 align-items-center"},[t._m(1),t._v(" "),e("div",{staticClass:"media-body"},[t._v("\n\t\t\t\t\t\t\t\tRemote member from "),e("strong",[t._v(t._s(t.profile.acct.split("@")[1]))])])]),t._v(" "),e("div",{staticClass:"media align-items-center"},[t._m(2),t._v(" "),e("div",{staticClass:"media-body"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.roleTitle)+" of "),e("strong",[t._v(t._s(t.group.name))]),t._v(" since "+t._s(t.profile.group.joined)+"\n\t\t\t\t\t\t\t")])])]),t._v(" "),t.canIntersect?e("div",{staticClass:"card card-body shadow-sm infolet"},[e("h5",{staticClass:"font-weight-bold mb-3"},[t._v("Things in Common")]),t._v(" "),t.commonIntersects.friends.length?t._m(4):t._e(),t._v(" "),t._m(5),t._v(" "),t.commonIntersects.groups.length?e("div",{staticClass:"media mb-3 align-items-center"},[t._m(6),t._v(" "),e("div",{staticClass:"media-body"},[t._v("\n\t\t\t\t\t\t\t\tAlso member of "),e("a",{staticClass:"text-dark font-weight-bold",attrs:{href:t.commonIntersects.groups[0].url}},[t._v(t._s(t.commonIntersects.groups[0].name))]),t._v(" and "+t._s(t.commonIntersects.groups_count)+" other groups\n\t\t\t\t\t\t\t")])]):t._e(),t._v(" "),t.commonIntersects.topics.length?e("div",{staticClass:"media mb-0 align-items-center"},[t._m(7),t._v(" "),e("div",{staticClass:"media-body"},[t._v("\n\t\t\t\t\t\t\t\tAlso interested in topics containing\n\t\t\t\t\t\t\t\t"),t._l(t.commonIntersects.topics,function(s,a){return e("span",[t.commonIntersects.topics.length-1==a?e("span",[t._v(" and ")]):t._e(),e("a",{staticClass:"font-weight-bold text-dark",attrs:{href:s.url}},[t._v("#"+t._s(s.name))]),t.commonIntersects.topics.length>a+2?e("span",[t._v(", ")]):t._e()])}),t._v(" hashtags\n\t\t\t\t\t\t\t")],2)]):t._e()]):t._e()]),t._v(" "),e("div",{staticClass:"col-12 col-md-7"},[t._m(8),t._v(" "),t.feedEmpty?e("div",{staticClass:"pt-5 text-center"},[e("h5",[t._v("No New Posts")]),t._v(" "),e("p",[t._v(t._s(t.profile.username)+" hasn't posted anything yet in "),e("strong",[t._v(t._s(t.group.name))]),t._v(".")]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.group.url}},[t._v("Go Back")])]):t._e(),t._v(" "),t.feedLoaded?e("div",{staticClass:"mt-2"},[t._l(t.feed,function(s,a){return e("group-status",{key:"gps:"+s.id,attrs:{permalinkMode:!0,showGroupChevron:!0,group:t.group,prestatus:s,profile:t.profile,"group-id":t.group.id}})}),t._v(" "),t.feed.length>=1?e("div",{attrs:{distance:800}},[e("infinite-loading",{on:{infinite:t.infiniteFeed}},[e("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),e("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()],2):t._e()])])])])])},o=[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-light font-weight-bold dropdown-toggle",attrs:{type:"button",id:"amenu","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t("i",{staticClass:"fas fa-ellipsis-h"})])},function(){var t=this._self._c;return t("div",{staticClass:"media-icon"},[t("i",{staticClass:"far fa-globe",attrs:{title:"User is from a remote server","data-toggle":"tooltip","data-placement":"bottom"}})])},function(){var t=this._self._c;return t("div",{staticClass:"media-icon"},[t("i",{staticClass:"fas fa-users",attrs:{title:"User joined group on this date","data-toggle":"tooltip","data-placement":"bottom"}})])},function(){var t=this._self._c;return t("div",{staticClass:"media-icon"},[t("i",{staticClass:"far fa-user-friends"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"media mb-3 align-items-center"},[t._m(3),t._v(" "),e("div",{staticClass:"media-body"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.commonIntersects.friends_count)+" mutual friend"),t.commonIntersects.friends.length>1?e("span",[t._v("s")]):t._e(),t._v(" including\n\t\t\t\t\t\t\t\t"),t._l(t.commonIntersects.friends,function(s,a){return e("span",[e("a",{staticClass:"text-dark font-weight-bold",attrs:{href:s.url}},[t._v(t._s(s.acct))]),t.commonIntersects.friends.length>a+1?e("span",[t._v(", ")]):e("span")])})],2)])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"media mb-3 align-items-center"},[e("div",{staticClass:"media-icon"},[e("i",{staticClass:"fas fa-home"})]),t._v(" "),e("div",{staticClass:"media-body"},[t._v("\n\t\t\t\t\t\t\t\tLives in "),e("strong",[t._v("Canada")])])])},function(){var t=this._self._c;return t("div",{staticClass:"media-icon"},[t("i",{staticClass:"fas fa-users"})])},function(){var t=this._self._c;return t("div",{staticClass:"media-icon"},[t("i",{staticClass:"far fa-thumbs-up fa-lg text-lighter"})])},function(){var t=this._self._c;return t("div",{staticClass:"card card-body shadow-sm"},[t("h5",{staticClass:"font-weight-bold mb-0"},[this._v("Group Posts")])])}]},54299(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-settings-component"},[t.initalLoad?e("div",[e("div",{staticClass:"bg-white mb-3 border-bottom"},[e("div",{staticClass:"container"},[e("div",{staticClass:"col-12 group-settings-component-header"},[e("div",[e("h1",{staticClass:"font-weight-bold mb-4"},[t._v("Group Settings")]),t._v(" "),e("p",{staticClass:"text-muted mb-0"},[t._m(0),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("\n\t\t\t\t\t\t\t\tยท\n\t\t\t\t\t\t\t")]),t._v(" "),e("span",[t._v(t._s(1==t.group.member_count?t.group.member_count+" Member":t.group.member_count+" Members"))]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("\n\t\t\t\t\t\t\t\tยท\n\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"text-lighter"},[t._v("ID:"+t._s(t.group.id))])])]),t._v(" "),e("div",[t.isAdmin?e("a",{staticClass:"mr-2 btn btn-outline-secondary rounded-pill cta-btn font-weight-bold",attrs:{href:t.group.url}},[e("i",{staticClass:"fas fa-chevron-left mr-1"}),t._v(" Back to Group\n\t\t\t\t\t\t")]):t._e(),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold rounded-pill px-4",attrs:{disabled:t.savingChanges},on:{click:t.submit}},[t._v("\n\t\t\t\t\t\t\tSave Changes\n\t\t\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"col-12"},[e("ul",{staticClass:"nav nav-tabs border-bottom-0 font-weight-bold small"},[e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"home"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab("home")}}},[t._v("\n\t\t\t\t\t\t\t\tGeneral\n\t\t\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"customize"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab("customize")}}},[t._v("\n\t\t\t\t\t\t\t\tCustomize\n\t\t\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"blocked"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab("blocked")}}},[t._v("\n\t\t\t\t\t\t\t\tDomain/User Blocks\n\t\t\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"interactions"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab("interactions")}}},[t._v("\n\t\t\t\t\t\t\t\tInteractions\n\t\t\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"limits"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab("limits")}}},[t._v("\n\t\t\t\t\t\t\t\tLimits\n\t\t\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"advanced"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab("advanced")}}},[t._v("\n\t\t\t\t\t\t\t\tAdvanced\n\t\t\t\t\t\t\t")])])])])])]),t._v(" "),e("div",{staticClass:"container-xl pt-3"},["home"==t.tab?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6 offset-md-3"},[e("div",{},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Name")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{disabled:""},domProps:{value:t.group.name}}),t._v(" "),e("p",{staticClass:"form-text small text-muted"},[t._v("You cannot change a groups name at this time.")])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Category")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.category,expression:"category"}],staticClass:"custom-select",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.category=e.target.multiple?s:s[0]}}},[e("option",{attrs:{value:"",selected:"",disabled:""}},[t._v("Select a category")]),t._v(" "),t._l(t.categories,function(s){return e("option",{domProps:{value:s}},[t._v(t._s(s))])})],2),t._v(" "),e("p",{staticClass:"form-text small text-muted"},[t._v("Choose the most relevant category to improve discovery and visibility")])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Description")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.group.description,expression:"group.description"}],staticClass:"form-control",staticStyle:{resize:"none"},attrs:{rows:"4"},domProps:{value:t.group.description},on:{input:function(e){e.target.composing||t.$set(t.group,"description",e.target.value)}}}),t._v(" "),e("span",{staticClass:"form-text small text-muted font-weight-bold text-right"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.group.description?t.group.description.length:0)+"/500\n\t\t\t\t\t\t\t")]),t._v(" "),e("p",{staticClass:"form-text small text-muted"},[t._v("A plain text description of your group. Be as descriptive as possible to give potential members a better idea of what to expect.")])])])])]):t._e(),t._v(" "),"customize"==t.tab?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6 offset-md-3"},[e("div",{},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Avatar Photo")]),t._v(" "),t.group.metadata&&t.group.metadata.hasOwnProperty("avatar")?e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("img",{staticClass:"rounded-circle border",staticStyle:{"object-fit":"cover"},attrs:{src:t.group.metadata.avatar.url,width:"100",height:"100"}}),t._v(" "),e("p",{staticClass:"mb-0 mt-2 text-lighter"},[e("a",{staticClass:"text-muted font-weight-bold",attrs:{href:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\tPreview\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"mx-1"},[t._v("ยท")]),t._v(" "),e("a",{staticClass:"text-muted font-weight-bold",attrs:{href:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\tUpdate\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"mx-1"},[t._v("ยท")]),t._v(" "),e("a",{staticClass:"text-danger font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.handleDeleteAvatar()}}},[t._v("\n\t\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t\t")])])]):e("div",[e("div",{staticClass:"custom-file"},[e("input",{ref:"avatarInput",staticClass:"custom-file-input",attrs:{type:"file"}}),t._v(" "),e("label",{staticClass:"custom-file-label",attrs:{for:"avatarInput"}},[t._v("Choose file")])]),t._v(" "),e("p",{staticClass:"form-text small text-muted"},[t._v("Must be jpeg or png format, up to 2MB")])])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Header Photo")]),t._v(" "),t.group.metadata&&t.group.metadata.hasOwnProperty("header")?e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("img",{staticClass:"rounded border",staticStyle:{"object-fit":"cover"},attrs:{src:t.group.metadata.header.url,width:"200",height:"100"}}),t._v(" "),e("p",{staticClass:"mb-0 mt-2 text-lighter"},[e("a",{staticClass:"text-muted font-weight-bold",attrs:{href:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\tPreview\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"mx-1"},[t._v("ยท")]),t._v(" "),e("a",{staticClass:"text-muted font-weight-bold",attrs:{href:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\tUpdate\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"mx-1"},[t._v("ยท")]),t._v(" "),e("a",{staticClass:"text-danger font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.handleDeleteHeader()}}},[t._v("\n\t\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t\t")])])]):e("div",[e("div",{staticClass:"custom-file"},[e("input",{ref:"headerInput",staticClass:"custom-file-input",attrs:{type:"file"}}),t._v(" "),e("label",{staticClass:"custom-file-label",attrs:{for:"headerInput"}},[t._v("Choose file")])]),t._v(" "),e("p",{staticClass:"form-text small text-muted"},[t._v("Must be jpeg or png format, up to 10MB")])])])])])]):t._e(),t._v(" "),"interactions"==t.tab?e("div",{staticClass:"row"},[t._m(1),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"list-group"},[t._l(t.interactionLog,function(s,a){return e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"media align-items-center"},[e("img",{staticClass:"rounded-circle border mr-3",attrs:{src:s.profile.avatar,width:"32",height:"32",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(s.profile.username))]),t._v(" "),"group:comment:created"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tcommented on a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.sidToUrl(s.metadata.status_id)}},[t._v("post")])]):"group:joined"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tjoined the group\n\t\t\t\t\t\t\t\t\t")]):"group:like"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tliked a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.sidToUrl(s.metadata.status_id)}},[t._v("post")])]):"group:settings:updated"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tupdated the "),e("a",{staticClass:"font-weight-bold",attrs:{href:""}},[t._v("group settings")])]):"group:status:created"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tcreated a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.sidToUrl(s.metadata.status_id)}},[t._v("post")])]):"group:status:deleted"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tdeleted a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.sidToUrl(s.metadata.status_id)}},[t._v("post")])]):"group:unlike"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tunliked a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.sidToUrl(s.metadata.status_id)}},[t._v("post")])]):"group:admin:block:instance"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tblocked "),e("span",{staticClass:"font-weight-bold text-primary"},[t._v(t._s(s.metadata.domain))])]):"group:admin:block:user"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tblocked "),e("a",{staticClass:"font-weight-bold text-primary",attrs:{href:"/"+s.metadata.username}},[t._v(t._s(s.metadata.username))])]):"group:report:create"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tcreated a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.reportUrl(s.metadata.report_id)}},[t._v("report")]),t._v(" about "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/"+s.metadata.username}},[t._v(t._s(s.metadata.username))]),t._v("'s "),e("a",{staticClass:"font-weight-bold",attrs:{href:s.metadata.url}},[t._v("post")])]):"group:moderation:action"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\thandled a "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.reportUrl(s.metadata.report_id)}},[t._v("mod report")]),t._v(" regarding "),e("a",{staticClass:"font-weight-bold",attrs:{href:s.metadata.status_url}},[t._v("this post")])]):"group:member-limits:updated"==s.type?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tupdated "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.memberInteractionUrl(s.metadata.profile_id)}},[t._v("interaction limits")]),t._v(" for "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/"+s.metadata.username}},[t._v(t._s(s.metadata.username))])]):e("span",[t._v(t._s(s.type))]),t._v(" "),e("div",{staticClass:"float-right text-muted small font-weight-bold"},[t._v(t._s(t.timeago(s.created_at)))])])])])}),t._v(" "),t.interactionLogShowMore?e("div",{staticClass:"list-group-item"},[e("button",{staticClass:"btn btn-light font-weight-bold btn-block",on:{click:t.loadMoreInteractions}},[t._v("Load more")])]):t._e()],2)]),t._v(" "),t._m(2)]):t._e(),t._v(" "),"blocked"==t.tab?e("div",{staticClass:"row"},[t._m(3),t._v(" "),e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"card mb-3"},[e("div",{staticClass:"card-header text-muted font-weight-bold small"},[t._v("Blocked Instances")]),t._v(" "),e("div",{staticClass:"list-group list-group-flush"},[t._l(t.blockedInstances,function(s){return e("div",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[e("div",[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(s)+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-light",on:{click:function(e){return e.preventDefault(),t.undoBlock("instance",s)}}},[e("i",{staticClass:"far fa-trash-alt text-lighter"})])])}),t._v(" "),3==t.blockedInstances.length?e("div",{staticClass:"list-group-item"},[e("p",{staticClass:"mb-0 small font-weight-bold text-lighter text-center"},[t._v("View All")])]):t._e()],2)]),t._v(" "),e("div",{staticClass:"card mb-3"},[e("div",{staticClass:"card-header text-muted font-weight-bold small"},[t._v("Blocked Users")]),t._v(" "),e("div",{staticClass:"list-group list-group-flush"},[t._l(t.blockedUsers,function(s){return e("div",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[e("div",[e("img",{staticClass:"rounded-circle border mr-3",attrs:{src:"/storage/avatars/default.jpg",width:"32",height:"32"}}),t._v(t._s(s)+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-light",on:{click:function(e){return e.preventDefault(),t.undoBlock("user",s)}}},[e("i",{staticClass:"far fa-trash-alt text-lighter"})])])}),t._v(" "),3==t.blockedUsers.length?e("div",{staticClass:"list-group-item"},[e("p",{staticClass:"mb-0 small font-weight-bold text-lighter text-center"},[t._v("View All")])]):t._e()],2)]),t._v(" "),e("div",{staticClass:"card mb-3"},[e("div",{staticClass:"card-header text-muted font-weight-bold small"},[t._v("Moderated Join Requests")]),t._v(" "),e("div",{staticClass:"list-group list-group-flush"},t._l(t.moderatedInstances,function(s){return e("div",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[e("div",[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(s)+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-light",on:{click:function(e){return e.preventDefault(),t.undoBlock("moderate",s)}}},[e("i",{staticClass:"far fa-trash-alt text-lighter"})])])}),0)])]),t._v(" "),e("div",{staticClass:"col-12 col-md-3"},[e("button",{staticClass:"btn btn-light border btn-block font-weight-bold",on:{click:function(e){return e.preventDefault(),t.blockAction("instance")}}},[t._v("Block Instance")]),t._v(" "),e("button",{staticClass:"btn btn-light border btn-block font-weight-bold",on:{click:function(e){return e.preventDefault(),t.blockAction("user")}}},[t._v("Block User")]),t._v(" "),e("button",{staticClass:"btn btn-light border btn-block font-weight-bold",on:{click:function(e){return e.preventDefault(),t.blockAction("moderate")}}},[t._v("Moderate Join Requests")]),t._v(" "),e("hr"),t._v(" "),e("button",{staticClass:"btn btn-light border btn-block font-weight-bold"},[t._v("Import")]),t._v(" "),e("button",{staticClass:"btn btn-light border btn-block font-weight-bold",on:{click:function(e){return e.preventDefault(),t.exportBlocks()}}},[t._v("Export")])])]):t._e(),t._v(" "),"advanced"==t.tab?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-6 offset-md-3"},[e("div",{staticClass:"mt-3"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold"},[t._v("Membership")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.group.membership,expression:"group.membership"}],staticClass:"form-control rounded-pill",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.group,"membership",e.target.multiple?s:s[0])}}},[e("option",{attrs:{value:"all"}},[t._v("Public")]),t._v(" "),e("option",{attrs:{value:"private"}},[t._v("Private")]),t._v(" "),e("option",{attrs:{value:"local"}},[t._v("Local")])]),t._v(" "),e("p",{staticClass:"help-text mt-1"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.membershipDescription[t.group.membership])+"\n\t\t\t\t\t\t\t")])])]),t._v(" "),e("hr"),t._v(" "),"local"!==t.group.membership?e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-12"},[e("div",{staticClass:"mb-1"},[e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.advanced.activitypub,expression:"advanced.activitypub"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.advanced.activitypub)?t._i(t.advanced.activitypub,null)>-1:t.advanced.activitypub},on:{change:function(e){var s=t.advanced.activitypub,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&t.$set(t.advanced,"activitypub",s.concat([null])):i>-1&&t.$set(t.advanced,"activitypub",s.slice(0,i).concat(s.slice(i+1)))}else t.$set(t.advanced,"activitypub",o)}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold text-dark text-capitalize ml-1"},[t._v("Enable ActivityPub")])])]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.advanced.activitypub?t._e():e("div",{staticClass:"alert alert-info mt-2"},[e("div",{staticClass:"media align-items-center"},[e("i",{staticClass:"far fa-exclamation-circle fa-2x mr-3"}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Federation Warning")]),t._v(" "),e("p",{staticClass:"small mb-0",staticStyle:{"font-weight":"600"}},[t._v("Groups that choose to disable federation later will lose remote content and members and cannot re-enable federation for 24 hours. You can change this later")])])])])])],1)]):t._e(),t._v(" "),"local"!==t.group.membership?e("hr"):t._e(),t._v(" "),e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-12"},[e("div",{staticClass:"mb-1"},[e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.advanced.is_nsfw,expression:"advanced.is_nsfw"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.advanced.is_nsfw)?t._i(t.advanced.is_nsfw,null)>-1:t.advanced.is_nsfw},on:{change:function(e){var s=t.advanced.is_nsfw,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&t.$set(t.advanced,"is_nsfw",s.concat([null])):i>-1&&t.$set(t.advanced,"is_nsfw",s.slice(0,i).concat(s.slice(i+1)))}else t.$set(t.advanced,"is_nsfw",o)}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold text-dark text-capitalize ml-1"},[t._v("Allow adult content (18+)")])])]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.advanced.is_nsfw?t._e():e("div",{staticClass:"alert alert-info mt-2"},[e("div",{staticClass:"media align-items-center"},[e("i",{staticClass:"far fa-exclamation-circle fa-2x mr-3"}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Adult Content Warning")]),t._v(" "),e("p",{staticClass:"small mb-0",staticStyle:{"font-weight":"600"}},[t._v("Groups that allow adult content should enable this or risk suspension or deletion by instance admins. Illegal content is prohibited. You can change this later")])])])])])],1)]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-12"},[e("div",{staticClass:"mb-1"},[e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.advanced.discoverable,expression:"advanced.discoverable"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.advanced.discoverable)?t._i(t.advanced.discoverable,null)>-1:t.advanced.discoverable},on:{change:function(e){var s=t.advanced.discoverable,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&t.$set(t.advanced,"discoverable",s.concat([null])):i>-1&&t.$set(t.advanced,"discoverable",s.slice(0,i).concat(s.slice(i+1)))}else t.$set(t.advanced,"discoverable",o)}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold text-dark text-capitalize ml-1"},[t._v("Make group discoverable")])]),t._v(" "),t._m(4)])]),t._v(" "),e("hr")]),t._v(" "),t.group.member_count>=25?e("div",{staticClass:"form-group row"},[t._m(5),t._v(" "),e("hr")]):t._e(),t._v(" "),t.group.member_count>=25?e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-12"},[e("div",{staticClass:"mb-1"},[t._m(6),t._v(" "),e("p",{staticClass:"help-text small text-muted"},[e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tAllow "+t._s("local"==t.group.membership?"local users":"private"==t.group.membership?"members":"anyone")+" to "),e("a",{attrs:{href:"#"}},[t._v("direct message")]),t._v(" group admins. The direct message inbox is separate from your own account.\n\t\t\t\t\t\t\t\t\t")])])])]),t._v(" "),e("hr")]):t._e(),t._v(" "),e("h4",{staticClass:"font-weight-bold pt-3"},[t._v("Danger Zone")]),t._v(" "),e("div",{staticClass:"mb-4 border rounded border-danger"},[e("ul",{staticClass:"list-group mb-0 pb-0"},[t._m(7),t._v(" "),e("li",{staticClass:"list-group-item border-left-0 border-right-0 py-3 d-flex justify-content-between"},[t._m(8),t._v(" "),e("div",[e("button",{staticClass:"btn btn-outline-danger font-weight-bold py-1",on:{click:t.deleteGroup}},[t._v("Delete Group")])])])])])])]):t._e(),t._v(" "),"limits"==t.tab?e("div",{staticClass:"row"},[t._m(9)]):t._e()])]):e("div",[e("p",{staticClass:"text-center mt-5 pt-5 font-weight-bold"},[t._v("Loading...")])])])},o=[function(){var t=this,e=t._self._c;return e("span",[e("i",{staticClass:"fas fa-globe mr-1"}),t._v("\n\t\t\t\t\t\t\t\t"+t._s("all"==t.group.membership?"Public Group":"Private Group")+"\n\t\t\t\t\t\t\t")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-3"},[e("p",{staticClass:"lead"},[t._v("The "),e("strong",[t._v("Interaction Log")]),t._v(" displays all member activities relating to this group.")]),t._v(" "),e("p",{staticClass:"lead"},[t._v("You may see logs from blocked, deleted and remote accounts.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-3"},[e("p",{staticClass:"font-weight-bold small"},[t._v("SEARCH")]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"form-control rounded-pill",attrs:{placeholder:"Search username, type or url"}})]),t._v(" "),e("hr"),t._v(" "),e("p",{staticClass:"font-weight-bold small"},[t._v("ACTIVITIES")]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",checked:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tJoined Group\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",checked:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tLeft Group\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",checked:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tPosts\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",checked:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tComments\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",checked:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tLikes\n\t\t\t\t\t\t")])]),t._v(" "),e("hr"),t._v(" "),e("p",{staticClass:"font-weight-bold small"},[t._v("FILTERS")]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",value:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tLocal members only\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",value:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tRemote members only\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",value:"",id:"filter1"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold",attrs:{for:"filter1"}},[t._v("\n\t\t\t\t\t\t\tBlocked members only\n\t\t\t\t\t\t")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-3"},[e("p",{staticClass:"h5"},[t._v("Blocked Instances & Users")]),t._v(" "),e("p",[t._v("Fine-grained control over who can join and interact with your group")]),t._v(" "),e("p",[t._v("Blocking an instance will revoke membership from users on that instance and prevent other users on that instance from joining")]),t._v(" "),e("p",[t._v("Blocking a user will revoke membership and remove all interactions from that user")]),t._v(" "),e("p",[t._v("Moderating an instance will require all new membership requests from that instance to be approved by a group admin before the specific user can join")])])},function(){var t=this._self._c;return t("p",{staticClass:"help-text small text-muted"},[t("span",[this._v("\n\t\t\t\t\t\t\t\t\t\tBeing discoverable means that your group appears in search results, on the discover page and can be used in group recommendations\n\t\t\t\t\t\t\t\t\t")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-sm-12"},[e("div",{staticClass:"mb-1"},[e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold text-dark text-capitalize ml-1"},[t._v("Enable spam detection")])]),t._v(" "),e("p",{staticClass:"help-text small text-muted"},[e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tDetect and temporarily remove content classified as spam from new members until it can be reviewed by a group admin. "),e("strong",[t._v("We do not recommend enabling this unless you have or expect periodic spam as it may produce false-positives and reduce member experience & retention.")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox"}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-bold text-dark text-capitalize ml-1"},[t._v("Enable admin direct messages")])])},function(){var t=this,e=t._self._c;return e("li",{staticClass:"list-group-item border-left-0 border-right-0 py-3 d-flex justify-content-between disabled"},[e("div",[e("p",{staticClass:"font-weight-bold mb-1"},[t._v("Temporarily Disable Group")]),t._v(" "),e("p",{staticClass:"mb-0 small"},[t._v("Not available")])]),t._v(" "),e("div",[e("a",{staticClass:"btn btn-outline-danger font-weight-bold py-1",attrs:{href:"#"}},[t._v("Disable")])])])},function(){var t=this,e=t._self._c;return e("div",[e("p",{staticClass:"font-weight-bold mb-1"},[t._v("Delete Group")]),t._v(" "),e("p",{staticClass:"mb-0 small"},[t._v("Once you delete your group, there is no going back.")])])},function(){var t=this._self._c;return t("div",{staticClass:"col-12 col-md-6 offset-md-3"},[t("div",{staticClass:"mt-3"})])}]},36826(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"groups-home-component w-100 h-100"},[t.initialLoad?e("div",{staticClass:"row border-bottom m-0 p-0"},[e("div",{staticClass:"col-2 shadow",staticStyle:{height:"100vh",background:"#fff",top:"51px",overflow:"hidden","z-index":"1",position:"sticky"}},[e("div",{staticClass:"p-1"},[t._m(0),t._v(" "),e("div",{staticClass:"mb-3"},[e("autocomplete",{ref:"autocomplete",attrs:{search:t.autocompleteSearch,placeholder:"Search groups by name","aria-label":"Search groups by name","get-result-value":t.getSearchResultValue,debounceTime:700},on:{submit:t.onSearchSubmit},scopedSlots:t._u([{key:"result",fn:function(s){var a=s.result,o=s.props;return[e("li",t._b({staticClass:"autocomplete-result"},"li",o,!1),[e("div",{staticClass:"media align-items-center"},[a.local&&a.metadata&&a.metadata.hasOwnProperty("header")&&a.metadata.header.hasOwnProperty("url")?e("img",{attrs:{src:a.metadata.header.url,width:"32",height:"32"}}):e("div",{staticClass:"icon-placeholder"},[e("i",{staticClass:"fal fa-user-friends"})]),t._v(" "),e("div",{staticClass:"media-body text-truncate mr-3"},[e("p",{staticClass:"result-name mb-n1 font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.truncateName(a.name))+"\n\t\t\t\t\t\t\t\t\t\t\t"),a.verified?e("span",{staticClass:"fa-stack ml-n2",attrs:{title:"Verified Group","data-toggle":"tooltip"}},[e("i",{staticClass:"fas fa-circle fa-stack-1x fa-lg",staticStyle:{color:"#22a7f0cc","font-size":"18px"}}),t._v(" "),e("i",{staticClass:"fas fa-check fa-stack-1x text-white",staticStyle:{"font-size":"10px"}})]):t._e()]),t._v(" "),e("p",{staticClass:"mb-0 text-muted",staticStyle:{"font-size":"10px"}},[a.local?t._e():e("span",{attrs:{title:"Remote Group"}},[e("i",{staticClass:"far fa-globe"})]),t._v(" "),a.local?t._e():e("span",[t._v("ยท")]),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(a.member_count)+" members")])])])])])]}}],null,!1,2331368480)})],1),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"feed"==t.tab},on:{click:function(e){return t.switchTab("feed")}}},[t._m(1),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tYour Feed\n\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"discover"==t.tab},on:{click:function(e){return t.switchTab("discover")}}},[t._m(2),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tDiscover\n\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"mygroups"==t.tab},on:{click:function(e){return t.switchTab("mygroups")}}},[t._m(3),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tMy Groups\n\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"notifications"==t.tab},on:{click:function(e){return t.switchTab("notifications")}}},[t._m(4),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tYour Notifications\n\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"remotesearch"==t.tab},on:{click:function(e){return t.switchTab("remotesearch")}}},[t._m(5),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tFind a remote group\n\t\t\t\t\t")])]),t._v(" "),t.config&&t.config.limits.user.create.new?e("button",{staticClass:"btn btn-primary btn-block rounded-pill font-weight-bold mt-3",attrs:{disabled:"creategroup"==t.tab},on:{click:function(e){return t.switchTab("creategroup")}}},[e("i",{staticClass:"fas fa-plus mr-2"}),t._v(" Create New Group\n\t\t\t\t")]):t._e(),t._v(" "),e("hr"),t._v(" "),t._l(t.groups,function(s){return e("div",{staticClass:"ml-2"},[e("div",{staticClass:"card shadow-sm border text-decoration-none text-dark"},[s.metadata&&s.metadata.hasOwnProperty("header")?e("img",{staticClass:"card-img-top",staticStyle:{width:"100%",height:"auto","object-fit":"cover","max-height":"160px"},attrs:{src:s.metadata.header.url}}):e("div",{staticClass:"bg-primary",staticStyle:{width:"100%",height:"160px"}}),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"lead font-weight-bold d-flex align-items-top",staticStyle:{height:"60px"}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(s.name)+"\n\t\t\t\t\t\t\t\t"),s.verified?e("span",{staticClass:"fa-stack ml-n2 mt-n2"},[e("i",{staticClass:"fas fa-circle fa-stack-1x fa-lg",staticStyle:{color:"#22a7f0cc","font-size":"18px"}}),t._v(" "),e("i",{staticClass:"fas fa-check fa-stack-1x text-white",staticStyle:{"font-size":"10px"}})]):t._e()]),t._v(" "),e("div",{staticClass:"text-muted font-weight-light d-flex justify-content-between"},[e("span",[t._v(t._s(s.member_count)+" Members")]),t._v(" "),e("span",{staticClass:"rounded",staticStyle:{"font-size":"12px",padding:"2px 5px",color:"rgba(75, 119, 190, 1)",background:"rgba(137, 196, 244, 0.2)",border:"1px solid rgba(137, 196, 244, 0.3)","font-weight":"400","text-transform":"capitalize"}},[t._v(t._s(s.self.role))])]),t._v(" "),e("hr"),t._v(" "),e("p",{staticClass:"mb-0"},[e("a",{staticClass:"btn btn-light btn-block border rounded-lg font-weight-bold",attrs:{href:s.url}},[t._v("View Group")])])])])])})],2)]),t._v(" "),e("keep-alive",[e("transition",{attrs:{name:"fade"}},["feed"==t.tab?e("self-feed",{attrs:{profile:t.profile},on:{switchtab:t.switchTab}}):t._e(),t._v(" "),"discover"==t.tab?e("self-discover",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"notifications"==t.tab?e("self-notifications",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"invitations"==t.tab?e("self-invitations",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"remotesearch"==t.tab?e("self-remote-search",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"mygroups"==t.tab?e("self-groups",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"creategroup"==t.tab?e("create-group",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"gsearch"==t.tab?e("div",[e("div",{staticClass:"col-12 px-5"},[e("div",{staticClass:"my-4"},[e("p",{staticClass:"h1 font-weight-bold mb-1"},[t._v("Group Search")]),t._v(" "),e("p",{staticClass:"lead text-muted mb-0"},[t._v("Search and explore groups.")])]),t._v(" "),e("div",{staticClass:"media align-items-center text-lighter"},[e("i",{staticClass:"far fa-chevron-left fa-lg mr-3"}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"lead mb-0"},[t._v("Use the search bar on the side menu")])])])])]):t._e()],1)],1)],1):e("div",{staticClass:"row justify-content-center mt-5"},[e("b-spinner")],1)])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-between align-items-center py-3"},[e("p",{staticClass:"h2 font-weight-bold mb-0"},[t._v("Groups")]),t._v(" "),e("a",{staticClass:"btn btn-light px-2 rounded-circle",attrs:{href:"/settings/home"}},[e("i",{staticClass:"fas fa-cog fa-lg"})])])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"fas fa-list"})])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"fas fa-compass"})])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"fas fa-list"})])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"far fa-bell"})])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"fas fa-search-plus"})])}]},59296(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t,e,s=this,a=s._self._c;return a("div",{staticClass:"comment-drawer-component"},[a("input",{ref:"fileInput",staticClass:"d-none",attrs:{type:"file",accept:"image/jpeg,image/png"},on:{change:s.handleImageUpload}}),s._v(" "),s.hide?a("div"):s.isLoaded?a("div",{staticClass:"border-top"},[a("div",{staticClass:"my-3"},s._l(s.feed,function(t,e){return a("div",{key:"cdf"+e+t.id,staticClass:"media media-status align-items-top"},[s.replyChildId==t.id?a("a",{staticClass:"comment-border-link",attrs:{href:"#comment-1"},on:{click:function(e){return e.preventDefault(),s.replyToChild(t)}}},[a("span",{staticClass:"sr-only"},[s._v("Jump to comment-"+s._s(e))])]):s._e(),s._v(" "),a("a",{attrs:{href:t.account.url}},[a("img",{staticClass:"rounded-circle media-avatar border",attrs:{src:t.account.avatar,width:"32",height:"32",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),s._v(" "),a("div",{staticClass:"media-body"},[t.media_attachments.length?a("div",[a("p",{staticClass:"media-body-comment-username"},[a("a",{attrs:{href:t.account.url}},[s._v("\n\t\t\t\t\t\t\t\t\t"+s._s(t.account.acct)+"\n\t\t\t\t\t\t\t\t")])]),s._v(" "),a("div",{staticClass:"bh-comment",on:{click:function(e){return s.lightbox(t)}}},[a("blur-hash-image",{staticClass:"img-fluid rounded-lg border shadow",attrs:{width:s.blurhashWidth(t),height:s.blurhashHeight(t),punch:1,hash:t.media_attachments[0].blurhash,src:s.getMediaSource(t)}})],1)]):a("div",{staticClass:"media-body-comment"},[a("p",{staticClass:"media-body-comment-username"},[a("a",{attrs:{href:t.account.url}},[s._v("\n\t\t\t\t\t\t\t\t\t"+s._s(t.account.acct)+"\n\t\t\t\t\t\t\t\t")])]),s._v(" "),a("read-more",{attrs:{status:t}})],1),s._v(" "),a("p",{staticClass:"media-body-reactions"},[s.profile?a("a",{staticClass:"font-weight-bold",class:[t.favourited?"text-primary":"text-muted"],attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),s.likeComment(t,e,a)}}},[s._v("\n\t\t\t\t\t\t\t\t\t"+s._s(t.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t\t")]):s._e(),s._v(" "),a("span",{staticClass:"mx-1"},[s._v("ยท")]),s._v(" "),a("a",{staticClass:"text-muted font-weight-bold",attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),s.replyToChild(t,e)}}},[s._v("Reply")]),s._v(" "),s.profile?a("span",{staticClass:"mx-1"},[s._v("ยท")]):s._e(),s._v(" "),s._o(a("a",{staticClass:"font-weight-bold text-muted",attrs:{href:t.url}},[s._v("\n\t\t\t\t\t\t\t\t"+s._s(s.shortTimestamp(t.created_at))+"\n\t\t\t\t\t\t\t")]),0,"cdf"+e+t.id),s._v(" "),s.profile&&t.account.id===s.profile.id?a("span",[a("span",{staticClass:"mx-1"},[s._v("ยท")]),s._v(" "),a("a",{staticClass:"font-weight-bold text-lighter",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.deleteComment(e)}}},[s._v("\n\t\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t\t")])]):s._e()]),s._v(" "),s.replyChildIndex==e&&t.hasOwnProperty("children")&&t.children.hasOwnProperty("feed")&&t.children.feed.length?a("div",s._l(t.children.feed,function(t,e){return a("comment-post",{key:"scp_"+e+"_"+t.id,attrs:{status:t,profile:s.profile,commentBorderArrow:!0}})}),1):s._e(),s._v(" "),s.replyChildIndex==e&&t.hasOwnProperty("children")&&t.children.hasOwnProperty("can_load_more")&&1==t.children.can_load_more?a("a",{staticClass:"text-muted font-weight-bold mt-1 mb-0",staticStyle:{"font-size":"13px"},attrs:{href:"#",disabled:s.loadingChildComments},on:{click:function(a){return a.preventDefault(),s.loadMoreChildComments(t,e)}}},[a("div",{staticClass:"comment-border-arrow"}),s._v(" "),a("i",{staticClass:"far fa-long-arrow-right mr-1"}),s._v("\n\t\t\t\t\t\t\t"+s._s(s.loadingChildComments?"Loading":"Load")+" more comments\n\t\t\t\t\t\t")]):s.replyChildIndex!==e&&t.hasOwnProperty("children")&&t.children.hasOwnProperty("can_load_more")&&1==t.children.can_load_more&&t.reply_count>0&&!s.loadingChildComments?a("a",{staticClass:"text-muted font-weight-bold mt-1 mb-0",staticStyle:{"font-size":"13px"},attrs:{href:"#",disabled:s.loadingChildComments},on:{click:function(a){return a.preventDefault(),s.replyToChild(t,e)}}},[a("i",{staticClass:"far fa-long-arrow-right mr-1"}),s._v("\n\t\t\t\t\t\t\t"+s._s(s.loadingChildComments?"Loading":"Load")+" more comments\n\t\t\t\t\t\t")]):s._e(),s._v(" "),s.replyChildId==t.id?a("div",{staticClass:"mt-3 mb-3 d-flex align-items-top reply-form child-reply-form"},[a("div",{staticClass:"comment-border-arrow"}),s._v(" "),a("img",{staticClass:"rounded-circle mr-2 border",attrs:{src:s.avatar,width:"38",height:"38",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),s._v(" "),s.isUploading?a("div",{staticClass:"w-100"},[a("p",{staticClass:"font-weight-light mb-1"},[s._v("Uploading image ...")]),s._v(" "),a("div",{staticClass:"progress rounded-pill",staticStyle:{height:"10px"}},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:{width:s.uploadProgress+"%"},attrs:{role:"progressbar","aria-valuenow":s.uploadProgress,"aria-valuemin":"0","aria-valuemax":"100"}})])]):a("div",{staticClass:"reply-form-input"},[a("input",{directives:[{name:"model",rawName:"v-model",value:s.childReplyContent,expression:"childReplyContent"}],staticClass:"form-control bg-light border-lighter rounded-pill",attrs:{placeholder:"Write a comment....",disabled:s.postingChildComment},domProps:{value:s.childReplyContent},on:{keyup:function(t){return!t.type.indexOf("key")&&s._k(t.keyCode,"enter",13,t.key,"Enter")?null:s.storeChildComment(e)},input:function(t){t.target.composing||(s.childReplyContent=t.target.value)}}})])]):s._e()])])}),0),s._v(" "),s.canLoadMore?a("button",{staticClass:"btn btn-link btn-sm text-muted mb-2",attrs:{disabled:s.isLoadingMore},on:{click:s.loadMoreComments}},[s.isLoadingMore?a("div",{staticClass:"spinner-border spinner-border-sm text-muted",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[s._v("Loading...")])]):a("span",[s._v("\n\t\t\t\t\tLoad more comments ...\n\t\t\t\t")])]):s._e(),s._v(" "),s.profile&&s.canReply?a("div",{staticClass:"mt-3 mb-n3"},[a("div",{staticClass:"d-flex align-items-top reply-form cdrawer-reply-form"},[a("img",{staticClass:"rounded-circle mr-2 border",attrs:{src:s.avatar,width:"38",height:"38",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),s._v(" "),s.isUploading?a("div",{staticClass:"w-100"},[a("p",{staticClass:"font-weight-light small text-muted mb-1"},[s._v("Uploading image ...")]),s._v(" "),a("div",{staticClass:"progress rounded-pill",staticStyle:{height:"10px"}},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:{width:s.uploadProgress+"%"},attrs:{role:"progressbar","aria-valuenow":s.uploadProgress,"aria-valuemin":"0","aria-valuemax":"100"}})])]):a("div",{staticClass:"w-100"},[a("div",{staticClass:"reply-form-input"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:s.replyContent,expression:"replyContent"}],staticClass:"form-control bg-light border-lighter",attrs:{placeholder:"Write a comment....",rows:s.replyContent&&s.replyContent.length>40?4:1},domProps:{value:s.replyContent},on:{input:function(t){t.target.composing||(s.replyContent=t.target.value)}}}),s._v(" "),a("div",{staticClass:"reply-form-input-actions"},[a("button",{staticClass:"btn btn-link text-muted px-1 mr-2",on:{click:s.uploadImage}},[a("i",{staticClass:"far fa-image fa-lg"})])])]),s._v(" "),a("div",{staticClass:"d-flex justify-content-between reply-form-menu"},[a("div",{staticClass:"char-counter"},[a("span",[s._v(s._s(null!==(t=null===(e=s.replyContent)||void 0===e?void 0:e.length)&&void 0!==t?t:0))]),s._v(" "),a("span",[s._v("/")]),s._v(" "),a("span",[s._v("500")])])])]),s._v(" "),a("button",{staticClass:"btn btn-link btn-sm font-weight-bold align-self-center ml-3 mb-3",on:{click:s.storeComment}},[s._v("Post")])])]):s._e()]):a("div",{staticClass:"border-top d-flex justify-content-center py-3"},[s._m(0)]),s._v(" "),a("b-modal",{ref:"lightboxModal",attrs:{id:"lightbox","hide-header":!0,"hide-footer":!0,centered:"",size:"lg","body-class":"p-0","content-class":"bg-transparent border-0"}},[s.lightboxStatus?a("div",{on:{click:s.hideLightbox}},[a("img",{staticStyle:{width:"100%","max-height":"90vh","object-fit":"contain"},attrs:{src:s.lightboxStatus.url}})]):s._e()])],1)},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e("div",{staticClass:"spinner-border text-lighter",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[t._v("Loading...")])]),t._v(" "),e("p",{staticClass:"text-muted"},[t._v("Loading Comments ...")])])}]},16560(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"comment-post-component"},[e("div",{staticClass:"media media-status align-items-top mt-3"},[t.commentBorderArrow?e("div",{staticClass:"comment-border-arrow"}):t._e(),t._v(" "),e("a",{attrs:{href:t.status.account.url}},[e("img",{staticClass:"rounded-circle media-avatar border",attrs:{src:t.status.account.avatar,width:"32",height:"32",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),t._v(" "),e("div",{staticClass:"media-body"},[t.status.media_attachments.length?e("div",[e("p",{staticClass:"media-body-comment-username"},[e("a",{attrs:{href:t.status.account.url}},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"bh-comment",on:{click:function(e){return t.lightbox(t.status)}}},[e("blur-hash-image",{staticClass:"img-fluid rounded-lg border shadow",attrs:{width:t.blurhashWidth(t.status),height:t.blurhashHeight(t.status),punch:1,hash:t.status.media_attachments[0].blurhash,src:t.getMediaSource(t.status)}})],1)]):e("div",{staticClass:"media-body-comment"},[e("p",{staticClass:"media-body-comment-username"},[e("a",{attrs:{href:t.status.account.url}},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t\t")])]),t._v(" "),e("read-more",{attrs:{status:t.status}})],1),t._v(" "),e("p",{staticClass:"media-body-reactions"},[t.profile?e("a",{staticClass:"font-weight-bold",class:[t.status.favourited?"text-primary":"text-muted"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.likeComment(t.status,t.index,e)}}},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.favourited?"Liked":"Like")+"\n\t\t\t\t\t")]):t._e(),t._v(" "),t.profile?e("span",{staticClass:"mx-1"},[t._v("ยท")]):t._e(),t._v(" "),t._m(0),t._v(" "),t.profile&&t.status.account.id===t.profile.id?e("span",[e("span",{staticClass:"mx-1"},[t._v("ยท")]),t._v(" "),e("a",{staticClass:"font-weight-bold text-lighter",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteComment(t.index)}}},[t._v("\n\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t")])]):t._e()])])])])},o=[function(){var t=this;return(0,t._self._c)("a",{staticClass:"font-weight-bold text-muted",attrs:{href:t.status.url}},[t._v("\n\t\t\t\t\t"+t._s(t.shortTimestamp(t.status.created_at))+"\n\t\t\t\t")])}]},57442(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"context-menu-component modal-stack"},[e("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("View Post")]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.status&&t.status.account.id!=t.profile.id?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("Report")]):t._e(),t._v(" "),t.status&&(t.profile.is_admin||t.profile.id==t.status.account.id)&&"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxModModal",attrs:{id:"ctx-mod-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"unlist")}}},[t._v("Unlist from Timelines")]),t._v(" "),t.status.sensitive?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"addcw")}}},[t._v("Add Content Warning")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"spammer")}}},[t._v("\n\t\t\t\tMark as Spammer"),e("br"),t._v(" "),e("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxModOtherModal",attrs:{id:"ctx-mod-other-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxShareModal",attrs:{id:"ctx-share-modal",title:"Share","hide-footer":"","hide-header":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded text-center"}},[e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),e("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[e("div",[e("div",{staticClass:"form-group"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedPayload,expression:"ctxEmbedPayload"}],staticClass:"form-control disabled text-monospace",staticStyle:{"overflow-y":"hidden",border:"1px solid #efefef","font-size":"12px","line-height":"18px",margin:"0 0 7px",resize:"none"},attrs:{rows:"8",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[e("div",{staticClass:"form-check mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowCaption,expression:"ctxEmbedShowCaption"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowCaption)?t._i(t.ctxEmbedShowCaption,null)>-1:t.ctxEmbedShowCaption},on:{change:function(e){var s=t.ctxEmbedShowCaption,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.ctxEmbedShowCaption=s.concat([null])):i>-1&&(t.ctxEmbedShowCaption=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedShowCaption=o}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Caption\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowLikes,expression:"ctxEmbedShowLikes"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowLikes)?t._i(t.ctxEmbedShowLikes,null)>-1:t.ctxEmbedShowLikes},on:{change:function(e){var s=t.ctxEmbedShowLikes,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.ctxEmbedShowLikes=s.concat([null])):i>-1&&(t.ctxEmbedShowLikes=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedShowLikes=o}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Likes\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedCompactMode,expression:"ctxEmbedCompactMode"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.ctxEmbedCompactMode)?t._i(t.ctxEmbedCompactMode,null)>-1:t.ctxEmbedCompactMode},on:{change:function(e){var s=t.ctxEmbedCompactMode,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.ctxEmbedCompactMode=s.concat([null])):i>-1&&(t.ctxEmbedCompactMode=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedCompactMode=o}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tCompact Mode\n\t\t\t\t\t")])])]),t._v(" "),e("hr"),t._v(" "),e("button",{class:t.copiedEmbed?"btn btn-primary btn-block btn-sm py-1 font-weight-bold disabed":"btn btn-primary btn-block btn-sm py-1 font-weight-bold",attrs:{disabled:t.copiedEmbed},on:{click:t.ctxCopyEmbed}},[t._v(t._s(t.copiedEmbed?"Embed Code Copied!":"Copy Embed Code"))]),t._v(" "),e("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),e("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),e("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group text-center"},[e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("sensitive")}}},[t._v("Sensitive Content")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("abusive")}}},[t._v("Abusive or Harmful")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxReportOther",attrs:{id:"ctx-report-other","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group text-center"},[e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("underage")}}},[t._v("Underage Account")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("copyright")}}},[t._v("Copyright Infringement")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("scam")}}},[t._v("Scam or Fraud")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[e("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),e("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[e("button",{staticClass:"btn btn-outline-lighter border-left-0 border-top-0 border-bottom-0 border-right py-2",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalCancel()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-outline-lighter border-0",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalConfirm()}}},[t._v("Confirm")])])])],1)},o=[]},88291(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-3"},[e("label",{staticClass:"col-form-label text-left"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{staticClass:"col-sm-9"},[e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.value)?t._i(t.value,null)>-1:t.value},on:{change:function(e){var s=t.value,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.value=s.concat([null])):i>-1&&(t.value=s.slice(0,i).concat(s.slice(i+1)))}else t.value=o}}}),t._v(" "),e("label",{staticClass:"form-check-label ml-1",class:[t.strongText?"font-weight-bold text-capitalize text-dark":"small text-muted"]},[t._v("\n "+t._s(t.inputText)+"\n ")])]),t._v(" "),t.helpText?e("div",{staticClass:"help-text small text-muted d-flex flex-row justify-content-between gap-3"},[t.helpText?e("div",[t._v(t._s(t.helpText))]):t._e()]):t._e()])])},o=[]},20285(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-3"},[e("label",{staticClass:"col-form-label text-left"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{staticClass:"col-sm-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"custom-select",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.value=e.target.multiple?s:s[0]}}},[e("option",{attrs:{value:"",selected:"",disabled:""}},[t._v(t._s(t.placeholder))]),t._v(" "),t._l(t.categories,function(s){return e("option",{domProps:{value:s.value}},[t._v(t._s(s.key))])})],2),t._v(" "),t.helpText||t.hasLimit?e("div",{staticClass:"help-text small text-muted d-flex flex-row justify-content-between gap-3"},[t.helpText?e("div",[t._v(t._s(t.helpText))]):t._e(),t._v(" "),t.hasLimit?e("div",{staticClass:"font-weight-bold text-dark"},[t._v("\n "+t._s(t.value?t.value.length:0)+"/"+t._s(t.maxLimit)+"\n ")]):t._e()]):t._e()])])},o=[]},80171(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-3"},[e("label",{staticClass:"col-form-label text-left"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{staticClass:"col-sm-9"},[t.hasLimit?e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:{"form-control-lg":t.largeInput},staticStyle:{resize:"none"},attrs:{type:"text",placeholder:t.placeholder,maxlength:t.maxLimit,rows:t.rows},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}):e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:{"form-control-lg":t.largeInput},staticStyle:{resize:"none"},attrs:{type:"text",placeholder:t.placeholder,rows:t.rows},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),t.helpText||t.hasLimit?e("div",{staticClass:"help-text small text-muted d-flex flex-row justify-content-between gap-3"},[t.helpText?e("div",[t._v(t._s(t.helpText))]):t._e(),t._v(" "),t.hasLimit?e("div",{staticClass:"font-weight-bold text-dark"},[t._v("\n "+t._s(t.value?t.value.length:0)+"/"+t._s(t.maxLimit)+"\n ")]):t._e()]):t._e()])])},o=[]},47545(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-3"},[e("label",{staticClass:"col-form-label text-left"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{staticClass:"col-sm-9"},[t.hasLimit?e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:{"form-control-lg":t.largeInput},attrs:{type:"text",placeholder:t.placeholder,maxlength:t.maxLimit},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:{"form-control-lg":t.largeInput},attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),t.helpText||t.hasLimit?e("div",{staticClass:"help-text small text-muted d-flex flex-row justify-content-between gap-3"},[t.helpText?e("div",[t._v(t._s(t.helpText))]):t._e(),t._v(" "),t.hasLimit?e("div",{staticClass:"font-weight-bold text-dark"},[t._v("\n "+t._s(t.value?t.value.length:0)+"/"+t._s(t.maxLimit)+"\n ")]):t._e()]):t._e()])])},o=[]},54968(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-compose-form"},[e("input",{ref:"photoInput",staticClass:"d-none file-input",attrs:{id:"photoInput",type:"file",accept:"image/jpeg,image/png"},on:{change:t.handlePhotoChange}}),t._v(" "),e("input",{ref:"videoInput",staticClass:"d-none file-input",attrs:{id:"videoInput",type:"file",accept:"video/mp4"},on:{change:t.handleVideoChange}}),t._v(" "),e("div",{staticClass:"card card-body border mb-3 shadow-sm rounded-lg"},[e("div",{staticClass:"media align-items-top"},[t.profile?e("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.profile.avatar,width:"42px",height:"42px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}):t._e(),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"d-block",staticStyle:{"min-height":"80px"}},[t.isUploading?e("div",{staticClass:"w-100"},[e("p",{staticClass:"font-weight-light mb-1"},[t._v("Uploading media ...")]),t._v(" "),e("div",{staticClass:"progress rounded-pill",staticStyle:{height:"4px"}},[e("div",{staticClass:"progress-bar",style:{width:t.uploadProgress+"%"},attrs:{role:"progressbar","aria-valuenow":t.uploadProgress,"aria-valuemin":"0","aria-valuemax":"100"}})])]):e("div",{staticClass:"form-group mb-3"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control",class:{"form-control-lg":!t.composeText||t.composeText.length<40,"rounded-pill":!t.composeText||t.composeText.length<40,"bg-light":!t.composeText||t.composeText.length<40,"border-0":!t.composeText||t.composeText.length<40},staticStyle:{resize:"none"},attrs:{rows:!t.composeText||t.composeText.length<40?1:5,placeholder:t.placeholder},domProps:{value:t.composeText},on:{input:function(e){e.target.composing||(t.composeText=e.target.value)}}}),t._v(" "),t.composeText?e("div",{staticClass:"small text-muted mt-1",staticStyle:{"min-height":"20px"}},[e("span",{staticClass:"float-right font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.composeText?t.composeText.length:0)+"/500\n\t\t\t\t\t\t\t")])]):t._e()])]),t._v(" "),t.tab?e("div",{staticClass:"tab"},["poll"===t.tab?e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n\t\t\t\t\t\t\tPoll Options\n\t\t\t\t\t\t")]),t._v(" "),t.pollOptions.length<4?e("div",{staticClass:"form-group mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptionModel,expression:"pollOptionModel"}],staticClass:"form-control rounded-pill",attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptionModel},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.savePollOption.apply(null,arguments)},input:function(e){e.target.composing||(t.pollOptionModel=e.target.value)}}})]):t._e(),t._v(" "),t._l(t.pollOptions,function(s,a){return e("div",{staticClass:"form-group mb-4 d-flex align-items-center",staticStyle:{"max-width":"400px",position:"relative"}},[e("span",{staticClass:"font-weight-bold mr-2",staticStyle:{position:"absolute",left:"10px"}},[t._v(t._s(a+1)+".")]),t._v(" "),t.pollOptions[a].length<50?e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[a],expression:"pollOptions[index]"}],staticClass:"form-control rounded-pill",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptions[a]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,a,e.target.value)}}}):e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[a],expression:"pollOptions[index]"}],staticClass:"form-control",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{placeholder:"Add a poll option, press enter to save",rows:"3"},domProps:{value:t.pollOptions[a]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,a,e.target.value)}}}),t._v(" "),e("button",{staticClass:"btn btn-danger btn-sm rounded-pill font-weight-bold",staticStyle:{position:"absolute",right:"5px"},on:{click:function(e){return t.deletePollOption(a)}}},[e("i",{staticClass:"fas fa-trash"}),t._v(" Delete\n\t\t\t\t\t\t\t")])])}),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n\t\t\t\t\t\t\t\t\tPoll Expiry\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"form-group"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.pollExpiry,expression:"pollExpiry"}],staticClass:"form-control rounded-pill",staticStyle:{width:"200px"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.pollExpiry=e.target.multiple?s:s[0]}}},[e("option",{attrs:{value:"60"}},[t._v("1 hour")]),t._v(" "),e("option",{attrs:{value:"360"}},[t._v("6 hours")]),t._v(" "),e("option",{attrs:{value:"1440",selected:""}},[t._v("24 hours")]),t._v(" "),e("option",{attrs:{value:"10080"}},[t._v("7 days")])])])])])],2):t._e()]):t._e(),t._v(" "),t.isUploading?t._e():e("div",{},[e("div",[t.photoName&&t.photoName.length?e("div",{staticClass:"bg-light rounded-pill mb-4 py-2"},[e("div",{staticClass:"media align-items-center"},[t._m(0),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"mb-0 font-weight-bold text-muted"},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.photoName)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-link font-weight-bold text-decoration-none",on:{click:function(e){return e.preventDefault(),t.clearFileInputs.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t")])])]):t._e(),t._v(" "),t.videoName&&t.videoName.length?e("div",{staticClass:"bg-light rounded-pill mb-4 py-2"},[e("div",{staticClass:"media align-items-center"},[t._m(1),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"mb-0 font-weight-bold text-muted"},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.videoName)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-link font-weight-bold text-decoration-none",on:{click:function(e){return e.preventDefault(),t.clearFileInputs.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t")])])]):t._e()]),t._v(" "),e("div",[e("button",{staticClass:"btn btn-light border font-weight-bold py-1 px-2 rounded-lg mr-3",attrs:{disabled:t.photoName||t.videoName},on:{click:function(e){return t.switchTab("photo")}}},[e("i",{staticClass:"fal fa-image mr-2"}),t._v(" "),e("span",[t._v("Add Photo")])])])])])]),t._v(" "),!t.isUploading&&t.composeText&&t.composeText.length>1||!t.isUploading&&["photo","video"].includes(t.tab)?e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-primary font-weight-bold float-right px-5 rounded-pill mt-3",attrs:{disabled:t.isPosting},on:{click:function(e){return t.newPost()}}},[t.isPosting?e("span",[t._m(2)]):e("span",[t._v("Post")])])]):t._e()])])},o=[function(){var t=this._self._c;return t("span",{staticClass:"d-flex align-items-center justify-content-center bg-primary mx-3",staticStyle:{width:"40px",height:"40px","border-radius":"50px",opacity:"0.6"}},[t("i",{staticClass:"fal fa-image fa-lg text-white"})])},function(){var t=this._self._c;return t("span",{staticClass:"d-flex align-items-center justify-content-center bg-primary mx-3",staticStyle:{width:"40px",height:"40px","border-radius":"50px",opacity:"0.6"}},[t("i",{staticClass:"fal fa-video fa-lg text-white"})])},function(){var t=this._self._c;return t("div",{staticClass:"spinner-border text-white spinner-border-sm",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])}]},26177(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-info-card"},[e("div",{staticClass:"card card-body mt-3 shadow-none border rounded-lg"},[e("p",{staticClass:"title"},[t._v("About")]),t._v(" "),t.group.description&&t.group.description.length>1?e("p",{staticClass:"description",domProps:{innerHTML:t._s(t.group.description)}}):e("p",{staticClass:"description"},[t._v("This group does not have a description.")])]),t._v(" "),e("div",{staticClass:"card card-body mt-3 shadow-none border rounded-lg"},["all"==t.group.membership?e("div",{staticClass:"fact"},[t._m(0),t._v(" "),t._m(1)]):t._e(),t._v(" "),"private"==t.group.membership?e("div",{staticClass:"fact"},[t._m(2),t._v(" "),t._m(3)]):t._e(),t._v(" "),1==t.group.config.discoverable?e("div",{staticClass:"fact"},[t._m(4),t._v(" "),t._m(5)]):t._e(),t._v(" "),0==t.group.config.discoverable?e("div",{staticClass:"fact"},[t._m(6),t._v(" "),t._m(7)]):t._e(),t._v(" "),e("div",{staticClass:"fact"},[t._m(8),t._v(" "),e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v(t._s(t.group.category.name))]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Category")])])]),t._v(" "),e("p",{staticClass:"mb-0 font-weight-light text-lighter"},[t._v("Created: "+t._s(t.timestampFormat(t.group.created_at)))])])])},o=[function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-globe fa-lg"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Public")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Anyone can see who's in the group and what they post.")])])},function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-lock fa-lg"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Private")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Only members can see who's in the group and what they post.")])])},function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-eye fa-lg"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Visible")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Anyone can find this group.")])])},function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-eye-slash fa-lg"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Hidden")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Only members can find this group.")])])},function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-users fa-lg"})])}]},22224(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-invite-modal"},[e("b-modal",{ref:"modal",attrs:{"hide-header":"","hide-footer":"",centered:"",rounded:"","body-class":"rounded group-invite-modal-wrapper"}},[e("div",{staticClass:"text-center py-3 d-flex align-items-center flex-column"},[e("div",{staticClass:"bg-light rounded-circle d-flex justify-content-center align-items-center mb-3",staticStyle:{width:"100px",height:"100px"}},[e("i",{staticClass:"far fa-user-plus fa-2x text-lighter"})]),t._v(" "),e("p",{staticClass:"h4 font-weight-bold mb-0"},[t._v("Invite Friends")])]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.usernames.length<5?e("div",{staticClass:"d-flex justify-content-between mt-1"},[e("autocomplete",{ref:"autocomplete",staticStyle:{width:"100%"},attrs:{search:t.autocompleteSearch,placeholder:"Search friends by username","aria-label":"Search this group","get-result-value":t.getSearchResultValue,debounceTime:700},on:{submit:t.onSearchSubmit},scopedSlots:t._u([{key:"result",fn:function(s){var a=s.result,o=s.props;return[e("li",t._b({staticClass:"autocomplete-result"},"li",o,!1),[e("div",{staticClass:"text-truncate"},[e("p",{staticClass:"result-name mb-0 font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(a.username)+"\n\t\t\t\t\t\t\t\t")])])])]}}],null,!1,3929251)}),t._v(" "),e("button",{staticClass:"btn btn-light border rounded-circle text-lighter ml-3",staticStyle:{width:"52px",height:"50px"},on:{click:t.close}},[e("i",{staticClass:"fal fa-times fa-lg"})])],1):t._e()]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.usernames.length?e("div",{staticClass:"pt-3"},t._l(t.usernames,function(s,a){return e("div",{staticClass:"py-1"},[e("div",{staticClass:"media align-items-center"},[e("img",{staticClass:"rounded-circle border mr-3",attrs:{src:"/storage/avatars/default.jpg",width:"45",height:"45"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"lead mb-0"},[t._v(t._s(s.username))])]),t._v(" "),e("button",{staticClass:"btn btn-link text-lighter btn-sm",on:{click:function(e){return t.removeUsername(a)}}},[e("i",{staticClass:"far fa-times-circle fa-lg"})])])])}),0):t._e()]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.usernames&&t.usernames.length?e("button",{staticClass:"btn btn-primary btn-lg btn-block font-weight-bold rounded font-weight-bold mt-3",on:{click:t.submitInvites}},[t._v("Invite")]):t._e()]),t._v(" "),e("div",{staticClass:"text-center pt-3 small"},[e("p",{staticClass:"mb-0"},[t._v("You can invite up to 5 friends at a time, and 20 friends in total.")])])],1)],1)},o=[]},25012(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-list-card"},[e("div",{staticClass:"media"},[e("div",{staticClass:"media align-items-center"},[t.group.metadata&&t.group.metadata.hasOwnProperty("header")?e("img",{staticClass:"mr-3 border rounded group-header-img",class:{compact:t.compact},attrs:{src:t.group.metadata.header.url}}):e("div",{staticClass:"mr-3 border rounded group-header-img",class:{compact:t.compact}},[t._m(0)]),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-0 text-dark",staticStyle:{"font-size":"16px"}},[t._v("\n\t\t\t\t\t"+t._s(t.truncate(t.group.name||"Untitled Group",t.titleLength))+"\n\t\t\t\t")]),t._v(" "),e("p",{staticClass:"text-muted mb-1",staticStyle:{"font-size":"12px"}},[t._v("\n\t\t\t\t\t"+t._s(t.truncate(t.group.short_description,t.descriptionLength))+"\n\t\t\t\t")]),t._v(" "),t.showStats?e("p",{staticClass:"mb-0 small text-lighter"},[e("span",[e("i",{staticClass:"far fa-users"}),t._v(" "),e("span",{staticClass:"small font-weight-bold"},[t._v(t._s(t.prettyCount(t.group.member_count)))])]),t._v(" "),t.group.local?t._e():e("span",{staticClass:"remote-label ml-3"},[e("i",{staticClass:"fal fa-globe"}),t._v(" Remote\n\t\t\t\t\t")]),t._v(" "),t.group.hasOwnProperty("admin")&&t.group.admin.hasOwnProperty("username")?e("span",{staticClass:"ml-3"},[e("i",{staticClass:"fal fa-user-crown"}),t._v(" "),e("span",{staticClass:"small font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t@"+t._s(t.group.admin.username)+"\n\t\t\t\t\t\t")])]):t._e()]):t._e()])])])])},o=[function(){var t=this._self._c;return t("div",{staticClass:"bg-primary d-flex align-items-center justify-content-center rounded",staticStyle:{width:"100%",height:"100%"}},[t("i",{staticClass:"fal fa-users text-white fa-lg"})])}]},64954(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-post-modal"},[e("b-modal",{ref:"modal",attrs:{size:"xl","hide-footer":"","hide-header":"",centered:"","body-class":"gpm p-0"}},[e("div",{staticClass:"d-flex"},[e("div",{staticClass:"gpm-media"},[e("img",{attrs:{src:t.status.media_attachments[0].preview_url}})]),t._v(" "),e("div",{staticClass:"p-3",staticStyle:{width:"30%"}},[e("div",{staticClass:"media align-items-center mb-2"},[e("a",{attrs:{href:t.status.account.url}},[e("img",{staticClass:"rounded-circle media-avatar border mr-2",attrs:{src:t.status.account.avatar,width:"32",height:"32"}})]),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"media-body-comment"},[e("p",{staticClass:"media-body-comment-username mb-n1"},[e("a",{staticClass:"text-dark text-decoration-none font-weight-bold",attrs:{href:t.status.account.url}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),e("p",{staticClass:"media-body-comment-timestamp mb-0"},[e("a",{staticClass:"font-weight-light text-muted small",attrs:{href:t.status.url}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.shortTimestamp(t.status.created_at))+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"text-lighter",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[t._v("ยท")]),t._v(" "),e("span",{staticClass:"text-muted small"},[e("i",{staticClass:"fas fa-globe"})])])])]),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"}},[e("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),e("read-more",{attrs:{status:t.status}}),t._v(" "),e("div",{staticClass:"border-top border-bottom mt-3"},[e("div",{staticClass:"d-flex justify-content-between",staticStyle:{padding:"8px 5px"}},[e("button",{staticClass:"btn btn-link py-0 text-decoration-none btn-sm",class:{"font-weight-bold":t.status.favourited,"text-primary":t.status.favourited,"text-muted":!t.status.favourited}},[e("i",{staticClass:"far fa-heart mr-1"}),t._v("\n\t\t\t\t\t\t\t"+t._s(t.status.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none btn-sm text-muted"},[e("i",{staticClass:"far fa-comment cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\tComment\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none btn-sm",attrs:{disabled:""}},[e("i",{staticClass:"fas fa-external-link-alt cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\tShare\n\t\t\t\t\t\t")])])])],1)])])],1)},o=[]},83560(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t,e,s,a=this,o=a._self._c;return o("div",{staticClass:"group-search-modal"},[o("b-modal",{ref:"modal",attrs:{"hide-header":"","hide-footer":"",centered:"",rounded:"","body-class":"rounded group-search-modal-wrapper"}},[o("div",{staticClass:"d-flex justify-content-between"},[o("autocomplete",{ref:"autocomplete",staticStyle:{width:"100%"},attrs:{search:a.autocompleteSearch,placeholder:"Search this group","aria-label":"Search this group","get-result-value":a.getSearchResultValue,debounceTime:700},on:{submit:a.onSearchSubmit},scopedSlots:a._u([{key:"result",fn:function(t){var e=t.result,s=t.props;return[o("li",a._b({staticClass:"autocomplete-result"},"li",s,!1),[o("div",{staticClass:"text-truncate"},[o("p",{staticClass:"result-name mb-0 font-weight-bold"},[a._v("\n\t\t\t\t\t\t\t\t\t"+a._s(e.username)+"\n\t\t\t\t\t\t\t\t")])])])]}}])}),a._v(" "),o("button",{staticClass:"btn btn-light border rounded-circle text-lighter ml-3",staticStyle:{width:"52px",height:"50px"},on:{click:a.close}},[o("i",{staticClass:"fal fa-times fa-lg"})])],1),a._v(" "),a.recent&&a.recent.length?o("div",{staticClass:"pt-5"},[o("h5",{staticClass:"mb-2"},[a._v("Recent Searches")]),a._v(" "),a._l(a.recent,function(t,e){return o("a",{staticClass:"media align-items-center text-decoration-none text-dark",attrs:{href:t.action}},[o("div",{staticClass:"bg-light rounded-circle mr-3 border d-flex justify-content-center align-items-center",staticStyle:{width:"40px",height:"40px"}},[o("i",{staticClass:"far fa-search"})]),a._v(" "),o("div",{staticClass:"media-body"},[o("p",{staticClass:"mb-0"},[a._v(a._s(t.value))])])])})],2):a._e(),a._v(" "),o("div",{staticClass:"pt-5"},[o("h5",{staticClass:"mb-2"},[a._v("Explore This Group")]),a._v(" "),o("div",{staticClass:"media align-items-center",on:{click:a.viewMyActivity}},[o("img",{staticClass:"mr-3 border rounded-circle",attrs:{src:null===(t=a.profile)||void 0===t?void 0:t.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),a._v(" "),o("div",{staticClass:"media-body"},[o("p",{staticClass:"mb-0"},[a._v(a._s((null===(e=a.profile)||void 0===e?void 0:e.display_name)||(null===(s=a.profile)||void 0===s?void 0:s.username)))]),a._v(" "),o("p",{staticClass:"mb-0 small text-muted"},[a._v("See your group activity.")])])]),a._v(" "),o("div",{staticClass:"media align-items-center",on:{click:a.viewGroupSearch}},[o("div",{staticClass:"bg-light rounded-circle mr-3 border d-flex justify-content-center align-items-center",staticStyle:{width:"40px",height:"40px"}},[o("i",{staticClass:"far fa-search"})]),a._v(" "),o("div",{staticClass:"media-body"},[o("p",{staticClass:"mb-0"},[a._v("Search all groups")])])])])])],1)},o=[]},91648(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"status-card-component",class:{"status-card-sm":t.loaded&&"small"===t.size}},[t.loaded?e("div",{staticClass:"shadow-none mb-3"},["poll"!==t.status.pf_type?e("div",{staticClass:"card shadow-sm",class:{"border-top-0":!t.hasTopBorder},staticStyle:{"border-radius":"18px !important"}},[1==t.parentUnavailable?e("parent-unavailable",{attrs:{"permalink-mode":t.permalinkMode,"permalink-status":t.childContext,status:t.status,profile:t.profile,"group-id":t.groupId}}):e("div",{staticClass:"card-body pb-0"},[e("group-post-header",{attrs:{group:t.group,status:t.status,profile:t.profile,showGroupHeader:t.showGroupHeader,showGroupChevron:t.showGroupChevron},on:{delete:t.statusDeleted}}),t._v(" "),e("div",[e("div",[e("div",{staticClass:"pl-2"},[t.status.sensitive&&t.status.content.length?e("div",{staticClass:"card card-body shadow-none border bg-light py-2 my-2 text-center user-select-none cursor-pointer",on:{click:function(e){t.status.sensitive=!1}}},[e("div",{staticClass:"media justify-content-center align-items-center"},[e("div",{staticClass:"mx-3"},[e("i",{staticClass:"far fa-exclamation-triangle fa-2x text-lighter"})]),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Warning, may contain sensitive content. ")]),t._v(" "),e("p",{staticClass:"mb-0 text-lighter small text-center font-weight-bold"},[t._v("Click to view")])])])]):[e("p",{staticClass:"pt-2 text-break",staticStyle:{"font-size":"15px"},domProps:{innerHTML:t._s(t.renderedCaption)}})],t._v(" "),"photo"===t.status.pf_type?e("photo-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{lightbox:t.showPostModal,togglecw:function(e){t.status.sensitive=!1},click:t.showPostModal}}):"video"===t.status.pf_type?e("video-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}}):"photo:album"===t.status.pf_type?e("photo-album-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}}):"video:album"===t.status.pf_type?e("video-album-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}}):"photo:video:album"===t.status.pf_type?e("mixed-album-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}}):t._e(),t._v(" "),t.status.favourites_count||t.status.reply_count?e("div",{staticClass:"border-top my-0"},[e("div",{staticClass:"d-flex justify-content-between py-2",staticStyle:{"font-size":"14px"}},[t.status.favourites_count?e("button",{staticClass:"btn btn-light py-0 text-decoration-none text-dark",staticStyle:{"font-size":"12px","font-weight":"600"},on:{click:function(e){return t.showLikesModal(e)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.status.favourites_count)+" "+t._s(1==t.status.favourites_count?"Like":"Likes")+"\n\t\t\t\t\t\t\t\t\t\t")]):t._e(),t._v(" "),t.status.reply_count?e("button",{staticClass:"btn btn-light py-0 text-decoration-none text-dark",staticStyle:{"font-size":"12px","font-weight":"600"},on:{click:function(e){return t.commentFocus(e)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.status.reply_count)+" "+t._s(1==t.status.reply_count?"Comment":"Comments")+"\n\t\t\t\t\t\t\t\t\t\t")]):t._e()])]):t._e(),t._v(" "),t.profile?e("div",{staticClass:"border-top my-0"},[e("div",{staticClass:"d-flex justify-content-between py-2 px-4"},[e("div",[e("button",{staticClass:"btn btn-link py-0 text-decoration-none",class:{"font-weight-bold":t.status.favourited,"text-primary":t.status.favourited,"text-muted":!t.status.favourited},attrs:{id:"lr__"+t.status.id},on:{click:function(e){return t.likeStatus(t.status,e)}}},[e("i",{staticClass:"far fa-heart mr-1"}),t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.status.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none text-muted",on:{click:function(e){return t.commentFocus(e)}}},[e("i",{staticClass:"far fa-comment cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\t\t\t\t\tComment\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none",attrs:{disabled:""}},[e("i",{staticClass:"fas fa-external-link-alt cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\t\t\t\t\tShare\n\t\t\t\t\t\t\t\t\t\t")])])]):t._e(),t._v(" "),t.showCommentDrawer?e("comment-drawer",{attrs:{"permalink-mode":t.permalinkMode,"permalink-status":t.childContext,status:t.status,profile:t.profile,"group-id":t.groupId}}):t._e()],2)])])],1)],1):e("div",{staticClass:"border"},[e("poll-card",{attrs:{status:t.status,profile:t.profile,showBorder:!1},on:{"status-delete":t.statusDeleted}}),t._v(" "),e("div",{staticClass:"bg-white",staticStyle:{padding:"0 1.25rem"}},[t.profile?e("div",{staticClass:"border-top my-0"},[e("div",{staticClass:"d-flex justify-content-between py-2 px-4"},[e("div",[e("button",{staticClass:"btn btn-link py-0 text-decoration-none",class:{"font-weight-bold":t.status.favourited,"text-primary":t.status.favourited,"text-muted":!t.status.favourited},attrs:{id:"lr__"+t.status.id},on:{click:function(e){return t.likeStatus(t.status,e)}}},[e("i",{staticClass:"far fa-heart mr-1"}),t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("b-popover",{attrs:{target:"lr__"+t.status.id,triggers:"hover",placement:"top"},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("Popover Title")]},proxy:!0}],null,!1,4088088860)},[t._v("\n\t\t\t\t\t\t\t\t\tI am popover "),e("b",[t._v("component")]),t._v(" content!\n\t\t\t\t\t\t\t\t")])],1),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none text-muted",on:{click:function(e){return t.commentFocus(e)}}},[e("i",{staticClass:"far fa-comment cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\t\tComment\n\t\t\t\t\t\t\t")]),t._v(" "),t._m(0)])]):t._e(),t._v(" "),t.showCommentDrawer?e("comment-drawer",{attrs:{"permalink-mode":t.permalinkMode,"permalink-status":t.childContext,profile:t.profile,status:t.status,"group-id":t.groupId}}):t._e()],1)],1),t._v(" "),t.profile?e("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile,"group-id":t.groupId},on:{"status-delete":t.statusDeleted}}):t._e(),t._v(" "),t.showModal?e("post-modal",{ref:"modal",attrs:{status:t.status,profile:t.profile,groupId:t.groupId}}):t._e()],1):e("div",{staticClass:"card card-body shadow-none border mb-3",staticStyle:{height:"200px"}},[t._m(1)])])},o=[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-link py-0 text-decoration-none",attrs:{disabled:""}},[t("i",{staticClass:"fas fa-external-link-alt cursor-pointer text-muted mr-1"}),this._v("\n\t\t\t\t\t\t\t\tShare\n\t\t\t\t\t\t\t")])},function(){var t=this._self._c;return t("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center"},[t("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])])}]},52809(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){return(0,this._self._c)("div")},o=[]},2011(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-md-5",staticStyle:{"background-color":"#fff"}},[t.group.metadata&&t.group.metadata.hasOwnProperty("header")?e("img",{staticClass:"header-image",attrs:{src:t.group.metadata.header.url}}):e("div",{staticClass:"header-jumbotron"})])},o=[]},11568(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 group-feed-component-header px-3 px-md-5"},[e("div",{staticClass:"media align-items-end"},[t.group.metadata&&t.group.metadata.hasOwnProperty("avatar")?e("img",{staticClass:"bg-white mx-4 rounded-circle border shadow p-1",staticStyle:{"object-fit":"cover"},style:{"margin-top":t.group.metadata&&t.group.metadata.hasOwnProperty("header")&&t.group.metadata.header.url?"-100px":"0"},attrs:{src:t.group.metadata.avatar.url,width:"169",height:"169"}}):t._e(),t._v(" "),t.group&&t.group.name?e("div",{staticClass:"media-body px-3"},[e("h3",{staticClass:"d-flex align-items-start"},[e("span",[t._v(t._s(t.group.name.slice(0,118)))]),t._v(" "),t.group.verified?e("sup",{staticClass:"fa-stack ml-n2",attrs:{title:"Verified Group","data-toggle":"tooltip"}},[e("i",{staticClass:"fas fa-circle fa-stack-1x fa-lg",staticStyle:{color:"#22a7f0cc","font-size":"18px"}}),t._v(" "),e("i",{staticClass:"fas fa-check fa-stack-1x text-white",staticStyle:{"font-size":"10px"}})]):t._e()]),t._v(" "),e("p",{staticClass:"text-muted mb-0",staticStyle:{"font-weight":"300"}},[e("span",[e("i",{staticClass:"fas fa-globe mr-1"}),t._v("\n "+t._s("all"==t.group.membership?"Public Group":"Private Group")+"\n ")]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("\n ยท\n ")]),t._v(" "),e("span",[t._v(t._s(1==t.group.member_count?t.group.member_count+" Member":t.group.member_count+" Members"))]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("\n ยท\n ")]),t._v(" "),t.group.local?e("span",{staticClass:"rounded member-label"},[t._v("Local")]):e("span",{staticClass:"rounded remote-label"},[t._v("Remote")]),t._v(" "),t.group.self&&t.group.self.hasOwnProperty("role")&&t.group.self.role?e("span",[e("span",{staticClass:"mx-2"},[t._v("\n ยท\n ")]),t._v(" "),e("span",{staticClass:"rounded member-label"},[t._v(t._s(t.group.self.role))])]):t._e()])]):e("div",{staticClass:"media-body"},[t._m(0)])]),t._v(" "),t.group&&t.group.self?e("div",[t.isMember||t.group.self.is_requested?!t.isMember&&t.group.self.is_requested?e("button",{staticClass:"btn btn-light border cta-btn font-weight-bold",on:{click:function(e){return e.preventDefault(),t.cancelJoinRequest.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-user-clock mr-1"}),t._v(" Requested to Join\n ")]):t.isAdmin||!t.isMember||t.group.self.is_requested?t._e():e("button",{staticClass:"btn btn-light border cta-btn font-weight-bold",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.leaveGroup.apply(null,arguments)}}},[e("i",{staticClass:"fas sign-out-alt mr-1"}),t._v(" Leave Group\n ")]):e("button",{staticClass:"btn btn-primary cta-btn font-weight-bold",attrs:{disabled:t.requestingMembership},on:{click:t.joinGroup}},[t.requestingMembership?e("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[t._v("Loading...")])]):e("span",[t._v("\n "+t._s("all"==t.group.membership?"Join":"Request Membership")+"\n ")])])]):t._e()])},o=[function(){var t=this._self._c;return t("h3",{staticClass:"d-flex align-items-start"},[t("span",[this._v("Loading...")])])}]},17859(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t,e,s,a,o,i=this,r=i._self._c;return r("div",[r("div",{staticClass:"col-12 border-top group-feed-component-menu px-5"},[r("ul",{staticClass:"nav font-weight-bold group-feed-component-menu-nav"},[r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id,"/about")}},[i._v("About")])],1),i._v(" "),r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id),exact:""}},[i._v("Feed")])],1),i._v(" "),null!==(t=i.group)&&void 0!==t&&t.self&&i.group.self.is_member?r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id,"/topics")}},[i._v("Topics")])],1):i._e(),i._v(" "),null!==(e=i.group)&&void 0!==e&&e.self&&i.group.self.is_member?r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id,"/members")}},[i._v("\n Members\n "),i.group.self.is_member&&i.isAdmin&&i.atabs.request_count?r("span",{staticClass:"badge badge-danger rounded-pill ml-2",staticStyle:{height:"20px",padding:"4px 8px","font-size":"11px"}},[i._v(i._s(i.atabs.request_count))]):i._e()])],1):i._e(),i._v(" "),null!==(s=i.group)&&void 0!==s&&s.self&&i.group.self.is_member?r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id,"/media")}},[i._v("Media")])],1):i._e(),i._v(" "),null!==(a=i.group)&&void 0!==a&&a.self&&i.group.self.is_member&&i.isAdmin?r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link d-flex align-items-top",attrs:{to:"/groups/".concat(i.group.id,"/moderation")}},[r("span",{staticClass:"mr-2"},[i._v("Moderation")]),i._v(" "),i.atabs.moderation_count?r("span",{staticClass:"badge badge-danger rounded-pill",staticStyle:{height:"20px",padding:"4px 8px","font-size":"11px"}},[i._v(i._s(i.atabs.moderation_count))]):i._e()])],1):i._e()]),i._v(" "),r("div",[null!==(o=i.group)&&void 0!==o&&o.self&&i.group.self.is_member?r("button",{staticClass:"btn btn-light btn-sm border px-3 rounded-pill mr-2",on:{click:i.showSearchModal}},[r("i",{staticClass:"far fa-search"})]):i._e(),i._v(" "),r("div",{staticClass:"dropdown d-inline"},[i._m(0),i._v(" "),r("div",{staticClass:"dropdown-menu dropdown-menu-right"},[r("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),i.copyLink.apply(null,arguments)}}},[i._v("\n Copy Group Link\n ")]),i._v(" "),r("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),i.showInviteModal.apply(null,arguments)}}},[i._v("\n Invite friends\n ")]),i._v(" "),i.isAdmin?i._e():r("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),i.reportGroup.apply(null,arguments)}}},[i._v("\n Report Group\n ")]),i._v(" "),i.isAdmin?r("a",{staticClass:"dropdown-item",attrs:{href:i.group.url+"/settings"}},[i._v("\n Settings\n ")]):i._e()])])])]),i._v(" "),r("search-modal",{ref:"searchModal",attrs:{group:i.group,profile:i.profile}})],1)},o=[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-light btn-sm border px-3 rounded-pill dropdown-toggle",attrs:{"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t("i",{staticClass:"far fa-cog"})])}]},30832(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"read-more-component",staticStyle:{"word-break":"break-all"}},[t.status.content.length<200?e("div",{domProps:{innerHTML:t._s(t.content)}}):e("div",[e("span",{domProps:{innerHTML:t._s(t.content)}}),t._v(" "),200==t.cursor||t.fullContent.length>t.cursor?e("a",{staticClass:"font-weight-bold text-muted",staticStyle:{display:"block","white-space":"nowrap"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.readMore.apply(null,arguments)}}},[e("i",{staticClass:"d-none fas fa-caret-down"}),t._v(" Read more...\n\t\t")]):t._e()])])},o=[]},48511(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"self-discover-component col-12 col-md-9 bg-lighter border-left mb-4"},[t._m(0),t._v(" "),"home"===t.tab?e("div",{staticClass:"px-5"},[e("div",{staticClass:"row mb-4 pt-5"},[e("div",{staticClass:"col-12 col-md-4"},[e("h4",{staticClass:"font-weight-bold"},[t._v("Popular")]),t._v(" "),e("div",{staticClass:"list-group list-group-scroll"},t._l(t.popularGroups,function(t,s){return e("a",{staticClass:"list-group-item p-1",attrs:{href:t.url}},[e("group-list-card",{attrs:{group:t,compact:!0}})],1)}),0)]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"card card-body shadow-none bg-mantle text-light",staticStyle:{"margin-top":"33px"}},[e("h3",{staticClass:"mb-4 font-weight-lighter"},[t._v("Discover communities and topics based on your interests")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light font-weight-light btn-block",on:{click:function(e){return t.toggleTab("categories")}}},[t._v("Browse Categories")])])]),t._v(" "),t._m(1)]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("h4",{staticClass:"font-weight-bold"},[t._v("New")]),t._v(" "),e("div",{staticClass:"list-group list-group-scroll"},t._l(t.newGroups,function(t,s){return e("a",{staticClass:"list-group-item p-1",attrs:{href:t.url}},[e("group-list-card",{attrs:{group:t,compact:!0}})],1)}),0)])]),t._v(" "),e("div",{staticClass:"jumbotron mb-4 text-light bg-black",staticStyle:{"margin-top":"5rem"}},[e("div",{staticClass:"container"},[e("h1",{staticClass:"display-4"},[t._v("Across the Fediverse")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light",on:{click:function(e){return t.toggleTab("fediverseGroups")}}},[t._v("\n \t\t\tExplore fediverse groups "),e("i",{staticClass:"fal fa-chevron-right ml-2"})])]),t._v(" "),e("hr",{staticClass:"my-4"}),t._v(" "),t._m(2)])]),t._v(" "),t._m(3),t._v(" "),t._m(4)]):t._e(),t._v(" "),"categories"===t.tab?e("div",{staticClass:"px-5"},[e("div",{staticClass:"row my-4 justify-content-center"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"title mb-4"},[e("span",[t._v("Categories")]),t._v(" "),e("button",{staticClass:"btn btn-light font-weight-bold",on:{click:function(e){return t.toggleTab("home")}}},[t._v("Go Back")])]),t._v(" "),e("div",{staticClass:"list-group"},t._l(t.categories,function(s,a){return e("div",{key:"rec:"+s.id+":"+a,staticClass:"list-group-item",on:{click:function(e){return t.selectCategory(a)}}},[e("p",{staticClass:"mb-0 font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(s)+"\n\t\t\t\t\t\t\t\t"),t._m(5,!0)])])}),0)])])]):t._e(),t._v(" "),"category"===t.tab?e("div",{staticClass:"px-5"},[e("div",{staticClass:"row my-4 justify-content-center"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"title mb-4"},[e("div",[e("div",{staticClass:"mb-n2 small text-uppercase text-lighter"},[t._v("Categories")]),t._v(" "),e("span",[t._v(t._s(t.categories[t.activeCategoryIndex]))])]),t._v(" "),e("button",{staticClass:"btn btn-light font-weight-bold",on:{click:function(e){return t.toggleTab("categories")}}},[t._v("Go Back")])]),t._v(" "),t.categoryGroupsLoaded?e("div",[e("div",{staticClass:"list-group"},[t._l(t.categoryGroups,function(t,s){return e("a",{staticClass:"list-group-item p-1",attrs:{href:t.url}},[e("group-list-card",{attrs:{group:t,showStats:!0}})],1)}),t._v(" "),t.categoryGroupsCanLoadMore?e("div",{staticClass:"list-group-item"},[e("button",{staticClass:"btn btn-light font-weight-bold btn-block",on:{click:t.fetchCategoryGroups}},[t._v("\n\t\t\t\t\t\t\t\t\tLoad more\n\t\t\t\t\t\t\t\t")])]):t._e()],2),t._v(" "),0===t.categoryGroups.length?e("div",{staticClass:"mt-3"},[t._m(6)]):t._e()]):e("div",[e("div",{staticClass:"card card-body shadow-none border justify-content-center flex-row"},[e("b-spinner")],1)])])])]):t._e(),t._v(" "),"fediverseGroups"===t.tab?e("div",{staticClass:"px-5"},[e("div",{staticClass:"row my-4 justify-content-center"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"title mb-4"},[e("span",[t._v("Fediverse Groups")]),t._v(" "),e("button",{staticClass:"btn btn-light font-weight-bold",on:{click:function(e){return t.toggleTab("home")}}},[t._v("Go Back")])]),t._v(" "),t._m(7)])])]):t._e()])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-5"},[e("div",{staticClass:"jumbotron my-4 text-light bg-mantle"},[e("div",{staticClass:"container"},[e("h1",{staticClass:"display-4"},[t._v("Discover")]),t._v(" "),e("p",{staticClass:"lead mb-0"},[t._v("Explore group communities and topics")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body shadow-none bg-light text-dark border",staticStyle:{"margin-top":"20px"}},[e("p",{staticClass:"lead mb-4 text-muted font-weight-lighter mb-1"},[t._v("Browse Public Groups")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-light border font-weight-light btn-block"},[t._v("Group Directory")])])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"lead"},[t._v("We're in the early stages of Group federation, and working with other projects to support cross-platform compatibility. "),e("a",{attrs:{href:"#"}},[t._v("Learn more about group federation "),e("i",{staticClass:"fal fa-chevron-right ml-2 fa-sm"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row my-4 py-5"},[e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"card card-body shadow-none bg-light",staticStyle:{border:"1px solid #E5E7EB"}},[e("p",{staticClass:"text-center text-lighter"},[e("i",{staticClass:"fal fa-lightbulb fa-4x"})]),t._v(" "),e("p",{staticClass:"text-center lead mb-0"},[t._v("What's New")])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"card card-body shadow-none bg-light",staticStyle:{border:"1px solid #E5E7EB"}},[e("p",{staticClass:"text-center text-lighter"},[e("i",{staticClass:"fal fa-clipboard-list-check fa-4x"})]),t._v(" "),e("p",{staticClass:"text-center lead mb-0"},[t._v("User Guide")])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"card card-body shadow-none bg-light",staticStyle:{border:"1px solid #E5E7EB"}},[e("p",{staticClass:"text-center text-lighter"},[e("i",{staticClass:"fal fa-question-circle fa-4x"})]),t._v(" "),e("p",{staticClass:"text-center lead mb-0"},[t._v("Groups Help")])])])])},function(){var t=this._self._c;return t("p",{staticClass:"text-lighter",staticStyle:{"font-size":"9px"}},[t("span",{staticClass:"font-weight-bold mr-1"},[this._v("Groups v0.0.1")])])},function(){var t=this._self._c;return t("span",{staticClass:"float-right"},[t("i",{staticClass:"fal fa-chevron-right"})])},function(){var t=this._self._c;return t("div",{staticClass:"bg-white border text-center p-3"},[t("p",{staticClass:"font-weight-light mb-0"},[this._v("No groups found in this category")])])},function(){var t=this._self._c;return t("div",{staticClass:"mt-3"},[t("div",{staticClass:"bg-white border text-center p-3"},[t("p",{staticClass:"font-weight-light mb-0"},[this._v("No fediverse groups found")])])])}]},92300(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-9",staticStyle:{overflow:"hidden"}},[t._m(0),t._v(" "),e("div",{staticClass:"row h-100 bg-light justify-content-center"},[e("div",{staticClass:"col-12 col-md-10 col-lg-6"},[t.emptyFeed?e("div",{staticClass:"mt-5"},[e("h1",{staticClass:"font-weight-bold"},[t._v("Welcome to Pixelfed Groups!")]),t._v(" "),e("p",{staticClass:"lead"},[t._v("Groups are a way to participate in like minded communities and topics.")]),t._v(" "),e("hr",{staticClass:"my-4"}),t._v(" "),t._m(1),t._v(" "),e("p",{staticClass:"text-center mb-0"},[e("router-link",{staticClass:"btn btn-primary btn-lg rounded-pill",attrs:{to:"/groups/discover"}},[t._v("\n Discover Groups\n ")])],1)]):e("div",[e("div",{staticClass:"my-3"},[t._l(t.feed,function(s,a){return e("group-status",{key:"gs:"+s.id+a,attrs:{prestatus:s,profile:t.profile,"show-group-header":!0,group:s.group,"group-id":s.group.id}})}),t._v(" "),t.feed.length>2?e("div",[e("infinite-loading",{attrs:{distance:800},on:{infinite:t.infiniteFeed}},[e("div",{staticClass:"my-3",attrs:{slot:"no-more"},slot:"no-more"},[e("p",{staticClass:"lead font-weight-bold pt-5"},[t._v("You have reached the end of this feed")]),t._v(" "),e("div",{staticStyle:{height:"10rem"}})]),t._v(" "),e("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()],2)])])])])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row bg-light justify-content-center"},[e("div",{staticClass:"col-12 flex-shrink-1"},[e("div",{staticClass:"my-4 px-3"},[e("p",{staticClass:"h1 font-weight-bold mb-1"},[t._v("Groups Feed")]),t._v(" "),e("p",{staticClass:"lead text-muted mb-0"},[t._v("Recent posts from your groups")])])])])},function(){var t=this,e=t._self._c;return e("p",[t._v("Anyone can create and manage their own group as long as it abides by our "),e("a",{attrs:{href:"/site/kb/community-guidelines",target:"_blank"}},[t._v("community guidelines")]),t._v(".")])}]},54479(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"my-groups-component"},[e("div",{staticClass:"list-container"},[t.isLoaded?e("div",[e("div",{staticClass:"list-group"},t._l(t.groups,function(t,s){return e("a",{key:"rec:"+t.id+":"+s,staticClass:"list-group-item text-decoration-none",attrs:{href:t.url}},[e("group-list-card",{attrs:{group:t,truncateDescriptionLength:140,showStats:!0}})],1)}),0),t._v(" "),t.canLoadMore?e("p",[e("button",{staticClass:"btn btn-primary btn-block font-weight-bold mt-3",attrs:{disabled:t.loadingMore},on:{click:function(e){return e.preventDefault(),t.loadMore.apply(null,arguments)}}},[t._v("\n \t\tLoad more\n \t")])]):t._e()]):e("div",{staticClass:"d-flex justify-content-center"},[e("b-spinner")],1)])])},o=[]},75891(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){this._self._c;return this._m(0)},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-9",staticStyle:{height:"100vh - 51px !important",overflow:"hidden"}},[e("div",{staticClass:"row h-100"},[e("div",{staticClass:"col-12 col-md-8 bg-lighter border-left"},[e("div",{staticClass:"p-4 mb-4"},[e("p",{staticClass:"h4 font-weight-bold mb-1 text-center"},[t._v("Group Invitations")])]),t._v(" "),e("div",{staticClass:"p-4 mb-4"},[e("p",{staticClass:"font-weight-bold text-center text-muted"},[t._v("You don't have any group invites")])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4 bg-white border-left"},[e("div",{staticClass:"p-4"},[e("div",{staticClass:"bg-light rounded-lg border p-3"},[e("p",{staticClass:"lead font-weight-bold mb-0"},[t._v("Send Invite")]),t._v(" "),e("p",{staticClass:"mb-3"},[t._v("Invite friends to your groups")]),t._v(" "),e("div",{staticClass:"form-group",staticStyle:{position:"relative"}},[e("span",{staticStyle:{position:"absolute",top:"50%",transform:"translateY(-50%)",left:"15px","padding-right":"5px"}},[e("i",{staticClass:"fas fa-search text-lighter"})]),t._v(" "),e("input",{staticClass:"form-control bg-white rounded-pill",staticStyle:{"padding-left":"40px"},attrs:{placeholder:"Search username..."}})])])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"p-4 mb-2"},[e("p",{staticClass:"h4 font-weight-bold mb-1 text-center"},[t._v("Invitations Sent")])]),t._v(" "),e("div",{staticClass:"px-4 mb-4"},[e("p",{staticClass:"font-weight-bold text-center text-muted"},[t._v("You have not sent any group invites")])])])])])}]},25836(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-notification-component col-12 col-md-9",staticStyle:{height:"100vh - 51px !important",overflow:"hidden"}},[e("div",{staticClass:"row h-100 bg-white"},[e("div",{staticClass:"col-12 col-md-8 border-left"},[e("div",{staticClass:"px-5"},[t._m(0),t._v(" "),t._l(t.notifications,function(s,a){return t.notifications.length>0?e("div",{staticClass:"nitem card card-body shadow-none mb-3 py-2 px-0 rounded-pill",staticStyle:{"background-color":"#F3F4F6"}},[e("div",{staticClass:"media align-items-center px-3"},[e("img",{staticClass:"mr-3 rounded-circle",staticStyle:{border:"1px solid #ccc"},attrs:{src:s.account.avatar,alt:"",width:"32px",height:"32px"}}),t._v(" "),e("div",{staticClass:"media-body"},["group:like"==s.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{attrs:{href:t.getProfileUrl(s.account),"data-placement":"bottom","data-toggle":"tooltip",title:s.account.username}},[t._v(t._s(0==s.account.local?"@":"")+t._s(t.truncate(s.account.username)))]),t._v(" liked your "),e("a",{attrs:{href:t.getPostUrl(s.status)}},[t._v("post")]),t._v(" in "),e("a",{attrs:{href:s.group.url}},[t._v(t._s(s.group.name))])])]):"group:comment"==s.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(s.account),title:s.account.username}},[t._v(t._s(0==s.account.local?"@":"")+t._s(t.truncate(s.account.username)))]),t._v(" commented on your "),e("a",{staticClass:"font-weight-bold",attrs:{href:s.status.url}},[t._v("post")]),t._v(" in "),e("a",{attrs:{href:s.group.url}},[t._v(t._s(s.group.name))])])]):"mention"==s.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{attrs:{href:t.getProfileUrl(s.account),"data-placement":"bottom","data-toggle":"tooltip",title:s.account.username}},[t._v(t._s(0==s.account.local?"@":"")+t._s(t.truncate(s.account.username)))]),t._v(" "),e("a",{attrs:{href:t.mentionUrl(s.status)}},[t._v("mentioned")]),t._v(" you.\n\t\t\t\t\t\t\t\t\t")])]):"group.join.approved"==s.type?e("div",[e("p",{staticClass:"my-0"},[t._v("\n\t\t\t\t\t\t\t\t\t\tYour application to join "),e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:s.group.url,title:s.group.name}},[t._v(t._s(t.truncate(s.group.name)))]),t._v(" was approved!\n\t\t\t\t\t\t\t\t\t")])]):"group.join.rejected"==s.type?e("div",[e("p",{staticClass:"my-0"},[t._v("\n\t\t\t\t\t\t\t\t\t\tYour application to join "),e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:s.group.url,title:s.group.name}},[t._v(t._s(t.truncate(s.group.name)))]),t._v(" was rejected. You can re-apply to join in 6 months.\n\t\t\t\t\t\t\t\t\t")])]):e("div",[e("p",{staticClass:"my-0"},[t._v("Cannot display notification")])])]),t._v(" "),e("div",[e("div",{staticClass:"align-items-center text-muted"},[e("span",{staticClass:"small",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:s.created_at}},[t._v(t._s(t.timeAgo(s.created_at)))]),t._v(" "),e("span",[t._v("ยท")]),t._v(" "),t._m(1,!0)])])])]):t._e()})],2)]),t._v(" "),e("div",{staticClass:"col-12 col-md-4 border-left bg-light"})])])},o=[function(){var t=this._self._c;return t("div",{staticClass:"my-4"},[t("p",{staticClass:"h1 font-weight-bold mb-1"},[this._v("Group Notifications")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"dropdown d-inline"},[e("a",{staticClass:"dropdown-toggle text-lighter",attrs:{href:"#",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e("i",{staticClass:"far fa-cog fa-sm"})]),t._v(" "),e("div",{staticClass:"dropdown-menu dropdown-menu-right"},[e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"}},[t._v("Dismiss")]),t._v(" "),e("div",{staticClass:"dropdown-divider"}),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"}},[t._v("Help")]),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"}},[t._v("Report")])])])}]},5328(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-9",staticStyle:{height:"100vh - 51px !important",overflow:"hidden"}},[e("div",{staticClass:"row h-100 bg-lighter"},[e("div",{staticClass:"col-12 col-md-8 border-left"},[t._m(0),t._v(" "),e("div",{staticClass:"mb-5"},[e("div",{staticClass:"p-4 mb-4"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Group URL")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.q,expression:"q"}],staticClass:"form-control form-control-lg rounded-pill bg-white border",attrs:{type:"text",placeholder:"https://pixelfed.social/groups/328323406233735168"},domProps:{value:t.q},on:{input:function(e){e.target.composing||(t.q=e.target.value)}}})]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-block btn-lg rounded-pill font-weight-bold"},[t._v("Search")])])])]),t._v(" "),t._m(1)])])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-center"},[e("div",{staticClass:"p-4 mb-4"},[e("p",{staticClass:"h4 font-weight-bold mb-1"},[t._v("Find a Remote Group")]),t._v(" "),e("p",{staticClass:"lead text-muted"},[t._v("Search and explore remote federated groups.")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-4 bg-white border-left"},[e("div",{staticClass:"my-4"},[e("h4",{staticClass:"font-weight-bold"},[t._v("Tips")]),t._v(" "),e("ul",{staticClass:"pl-3"},[e("li",{staticClass:"font-weight-bold"},[t._v("Some remote groups are not supported*")]),t._v(" "),e("li",[t._v("Read and comply with group rules defined by group admins")]),t._v(" "),e("li",[t._v("Use the full "),e("span",{staticClass:"font-weight-bold"},[t._v("Group URL")]),t._v(" including "),e("code",[t._v("https://")])]),t._v(" "),e("li",[t._v("Joining private groups requires manual approval from group admins, you will recieve a notification when your membership is approved")]),t._v(" "),e("li",[t._v("Inviting people to remote groups is not supported yet")]),t._v(" "),e("li",[t._v("Your group membership may be terminated at any time by group admins")])]),t._v(" "),e("p",{staticClass:"small"},[t._v("* Some remote groups may not be compatible, we are working to support other group implementations")])])])}]},48375(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t,e,s=this,a=s._self._c;return a("div",{staticClass:"group-post-header media"},[s.showGroupHeader?a("div",{staticClass:"mb-1",staticStyle:{position:"relative"}},[s.group.hasOwnProperty("metadata")&&(s.group.metadata.hasOwnProperty("avatar")||s.group.metadata.hasOwnProperty("header"))?a("img",{staticClass:"rounded-lg box-shadow mr-2",staticStyle:{"object-fit":"cover"},attrs:{src:s.group.metadata.hasOwnProperty("header")?s.group.metadata.header.url:s.group.metadata.avatar.url,width:"52",height:"52",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}}):a("span",{staticClass:"d-block rounded-lg box-shadow mr-2 bg-primary",staticStyle:{width:"52px",height:"52px"}}),s._v(" "),a("img",{staticClass:"rounded-circle box-shadow border mr-2",staticStyle:{position:"absolute",bottom:"-4px",right:"-4px"},attrs:{src:s.status.account.avatar,width:"36",height:"36",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]):a("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:s.status.account.avatar,width:"42",height:"42",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}}),s._v(" "),a("div",{staticClass:"media-body"},[a("div",{staticClass:"pl-2 d-flex align-items-top"},[a("div",[a("p",{staticClass:"mb-0"},[s.showGroupHeader&&s.group?a("router-link",{staticClass:"group-name-link username",attrs:{to:"/groups/".concat(s.status.gid)}},[s._v("\n "+s._s(s.group.name)+"\n ")]):a("router-link",{staticClass:"group-name-link username",attrs:{to:"/groups/".concat(s.status.gid,"/user/").concat(null===(t=s.status)||void 0===t?void 0:t.account.id)},domProps:{innerHTML:s._s(s.statusCardUsernameFormat(s.status))}},[s._v("\n Loading...\n ")]),s._v(" "),s.showGroupChevron?a("span",[s._m(0),s._v(" "),a("span",[a("router-link",{staticClass:"group-name-link",attrs:{to:"/groups/".concat(s.status.gid)}},[s._v("\n "+s._s(s.group.name)+"\n ")])],1)]):s._e()],1),s._v(" "),a("p",{staticClass:"mb-0 mt-n1"},[s.showGroupHeader&&s.group?a("span",{staticStyle:{"font-size":"13px"}},[a("router-link",{staticClass:"group-name-link-small username",attrs:{to:"/groups/".concat(s.status.gid,"/user/").concat(null===(e=s.status)||void 0===e?void 0:e.account.id)},domProps:{innerHTML:s._s(s.statusCardUsernameFormat(s.status))}},[s._v("\n Loading...\n ")]),s._v(" "),a("span",{staticClass:"text-lighter",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[s._v("ยท")]),s._v(" "),a("router-link",{staticClass:"font-weight-light text-muted",attrs:{to:"/groups/".concat(s.status.gid,"/p/").concat(s.status.id)}},[s._v("\n "+s._s(s.shortTimestamp(s.status.created_at))+"\n ")]),s._v(" "),a("span",{staticClass:"text-lighter",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[s._v("ยท")]),s._v(" "),s._m(1)],1):a("span",[a("router-link",{staticClass:"font-weight-light text-muted small",attrs:{to:"/groups/".concat(s.status.gid,"/p/").concat(s.status.id)}},[s._v("\n "+s._s(s.shortTimestamp(s.status.created_at))+"\n ")]),s._v(" "),a("span",{staticClass:"text-lighter",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[s._v("ยท")]),s._v(" "),s._m(2)],1)])]),s._v(" "),s.profile?a("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[a("div",{staticClass:"dropdown"},[s._m(3),s._v(" "),a("div",{staticClass:"dropdown-menu dropdown-menu-right"},[a("a",{staticClass:"dropdown-item",attrs:{href:s.statusUrl()}},[s._v("View Post")]),s._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:s.profileUrl()}},[s._v("View Profile")]),s._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.sendReport()}}},[s._v("Report")]),s._v(" "),a("div",{staticClass:"dropdown-divider"}),s._v(" "),a("a",{staticClass:"dropdown-item text-danger",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),s.onDelete()}}},[s._v("Delete")])])])]):s._e()])])])},o=[function(){var t=this._self._c;return t("span",{staticClass:"text-muted",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[t("i",{staticClass:"fas fa-caret-right"})])},function(){var t=this._self._c;return t("span",{staticClass:"text-muted"},[t("i",{staticClass:"fas fa-globe"})])},function(){var t=this._self._c;return t("span",{staticClass:"text-muted small"},[t("i",{staticClass:"fas fa-globe"})])},function(){var t=this._self._c;return t("button",{staticClass:"btn btn-link dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-expanded":"false"}},[t("span",{staticClass:"fas fa-ellipsis-h text-lighter"})])}]},70560(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card shadow-sm",staticStyle:{"border-radius":"18px !important"}},[e("div",{staticClass:"card-body pb-0"},[t._m(0),t._v(" "),e("div",[t.showCommentDrawer?e("comment-drawer",{attrs:{"permalink-mode":t.permalinkMode,"permalink-status":t.childContext,status:t.status,profile:t.profile,"group-id":t.groupId,"can-reply":!1}}):t._e()],1)])])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body border shadow-none mb-3",staticStyle:{"background-color":"#E5E7EB"}},[e("div",{staticClass:"media p-md-4"},[e("div",{staticClass:"mr-4 pt-2"},[e("i",{staticClass:"fas fa-lock fa-2x"})]),t._v(" "),e("div",{staticClass:"media-body",staticStyle:{"max-width":"320px"}},[e("p",{staticClass:"lead font-weight-bold mb-1"},[t._v("This content isn't available right now")]),t._v(" "),e("p",{staticClass:"mb-0",staticStyle:{"font-size":"12px","letter-spacing":"-0.3px"}},[t._v("When this happens, it's usually because the owner only shared it with a small group of people, changed who can see it, or it's been deleted.")])])])])}]},18389(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",[e("details",{staticClass:"details-animated"},[e("summary",[e("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.status.spoiler_text?t.status.spoiler_text:"CW / NSFW / Hidden Media"))]),t._v(" "),e("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),e("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,function(s,a){return e("b-carousel-slide",{key:s.id+"-media"},["video"==s.type?e("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:s.description,width:"100%",height:"100%"},slot:"img"},[e("source",{attrs:{src:s.url,type:s.mime}})]):"image"==s.type?e("div",{attrs:{slot:"img",title:s.description},slot:"img"},[e("img",{class:s.filter_class+" d-block img-fluid w-100",attrs:{src:s.url,alt:s.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):e("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])}),1)],1)]):e("div",{staticClass:"w-100 h-100 p-0"},[e("carousel",{ref:"carousel",staticClass:"p-0 m-0",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb"}},t._l(t.status.media_attachments,function(s,a){return e("slide",{key:"px-carousel-"+s.id+"-"+a,staticClass:"w-100 h-100 d-block mx-auto text-center",staticStyle:{background:"#000",display:"flex","align-items":"center"}},["video"==s.type?e("video",{staticClass:"embed-responsive-item",attrs:{preload:"none",controls:"",loop:"",title:s.description,width:"100%",height:"100%"}},[e("source",{attrs:{src:s.url,type:s.mime}})]):"image"==s.type?e("div",{attrs:{title:s.description}},[e("img",{class:s.filter_class+" img-fluid w-100",attrs:{src:s.url,alt:s.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):e("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])}),1)],1)},o=[]},28691(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",{staticClass:"content-label-wrapper"},[e("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),e("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),e("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This album may contain sensitive content.")+"\n\t\t")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),e("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):e("div",{staticClass:"w-100 h-100 p-0 album-wrapper"},[e("carousel",{ref:"carousel",staticClass:"p-0 m-0",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb",id:"carousel-"+t.status.id}},t._l(t.status.media_attachments,function(s,a){return e("slide",{key:"px-carousel-"+s.id+"-"+a,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:s.description}},[e("img",{staticClass:"img-fluid w-100 p-0",attrs:{src:s.url,alt:t.altText(s),loading:"lazy","data-bp":s.url,onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})])}),1),t._v(" "),e("div",{staticClass:"album-overlay"},[!t.status.sensitive&&t.sensitive?e("p",{staticStyle:{"margin-top":"0",padding:"10px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",top:"0",right:"0","border-top-left-radius":"5px",cursor:"pointer",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"},on:{click:function(e){t.status.sensitive=!0}}},[e("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),e("p",{staticStyle:{"margin-top":"0",padding:"10px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",left:"0",top:"0","border-bottom-right-radius":"5px",cursor:"pointer",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"},on:{click:function(e){return e.preventDefault(),t.toggleLightbox.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-expand fa-lg"})]),t._v(" "),t.status.media_attachments[0].license?e("p",{staticStyle:{"margin-bottom":"0",padding:"0 5px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",bottom:"0",right:"0","border-top-left-radius":"5px",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"}},[e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.account.url}},[t._v("@"+t._s(t.status.account.username))]),t._v(" licensed under "),e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.media_attachments[0].license.url}},[t._v(t._s(t.status.media_attachments[0].license.title))])]):t._e()])],1)},o=[function(){var t=this._self._c;return t("p",{staticClass:"text-center"},[t("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},20671(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",{staticClass:"content-label-wrapper"},[e("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),e("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n "+t._s(t.isFiltered?"Filtered Content":"Sensitive Content")+"\n ")]),t._v(" "),e("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n "+t._s(t.status.spoiler_text?t.status.spoiler_text:"This post may contain sensitive content.")+"\n ")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),e("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):e("div",[e("div",{staticStyle:{position:"relative"},attrs:{title:t.status.media_attachments[0].description}},[e("img",{staticClass:"card-img-top",attrs:{src:t.status.media_attachments[0].url,loading:"lazy",alt:t.altText(t.status),width:t.width(),height:t.height(),onerror:"this.onerror=null;this.src='/storage/no-preview.png'"},on:{click:function(e){return e.preventDefault(),t.toggleLightbox.apply(null,arguments)}}}),t._v(" "),!t.status.sensitive&&t.sensitive?e("p",{staticClass:"sensitive-curtain",on:{click:function(e){t.status.sensitive=!0}}},[e("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?e("p",{staticClass:"photo-license"},[e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.account.url}},[t._v("@"+t._s(t.status.account.username))]),t._v(" licensed under "),e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.media_attachments[0].license.url}},[t._v(t._s(t.status.media_attachments[0].license.title))])]):t._e()])])},o=[function(){var t=this._self._c;return t("p",{staticClass:"text-center"},[t("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},12024(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",[e("details",{staticClass:"details-animated"},[e("summary",[e("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.status.spoiler_text?t.status.spoiler_text:"CW / NSFW / Hidden Media"))]),t._v(" "),e("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),e("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,function(t,s){return e("b-carousel-slide",{key:t.id+"-media"},[e("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[e("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)]):e("div",[e("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,function(t,s){return e("b-carousel-slide",{key:t.id+"-media"},[e("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[e("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)},o=[]},75593(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",{staticClass:"content-label-wrapper"},[e("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),e("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),e("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This post may contain sensitive content.")+"\n\t\t")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),e("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):e("div",{staticClass:"embed-responsive embed-responsive-16by9"},[e("video",{staticClass:"video",attrs:{controls:"",playsinline:"","webkit-playsinline":"",preload:"metadata",loop:"","data-id":t.status.id,poster:t.poster()}},[e("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},o=[function(){var t=this._self._c;return t("p",{staticClass:"text-center"},[t("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},45322(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-stack"},[e("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("View Post")]):t._e(),t._v(" "),"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToProfile()}}},[t._v("View Profile")]):t._e(),t._v(" "),"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuShare()}}},[t._v("Share")]):t._e(),t._v(" "),t.status&&t.profile&&1==t.profile.is_admin&&"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxModMenuShow()}}},[t._v("Moderation Tools")]):t._e(),t._v(" "),t.status&&t.status.account.id!=t.profile.id?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("Report")]):t._e(),t._v(" "),t.status&&t.profile.id==t.status.account.id&&"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.archivePost(t.status)}}},[t._v("Archive")]):t._e(),t._v(" "),t.status&&t.profile.id==t.status.account.id&&"archived"==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.unarchivePost(t.status)}}},[t._v("Unarchive")]):t._e(),t._v(" "),t.status&&(t.profile.is_admin||t.profile.id==t.status.account.id)&&"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxModModal",attrs:{id:"ctx-mod-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"unlist")}}},[t._v("Unlist from Timelines")]),t._v(" "),t.status.sensitive?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"addcw")}}},[t._v("Add Content Warning")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"spammer")}}},[t._v("\n\t\t\t\tMark as Spammer"),e("br"),t._v(" "),e("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxModOtherModal",attrs:{id:"ctx-mod-other-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxShareModal",attrs:{id:"ctx-share-modal",title:"Share","hide-footer":"","hide-header":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded text-center"}},[e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.shareStatus(t.status,e)}}},[t._v(t._s(t.status.reblogged?"Unshare":"Share")+" to Followers")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.status&&1==t.status.local&&!t.status.in_reply_to_id?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v("Embed")]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),e("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[e("div",[e("div",{staticClass:"form-group"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedPayload,expression:"ctxEmbedPayload"}],staticClass:"form-control disabled text-monospace",staticStyle:{"overflow-y":"hidden",border:"1px solid #efefef","font-size":"12px","line-height":"18px",margin:"0 0 7px",resize:"none"},attrs:{rows:"8",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[e("div",{staticClass:"form-check mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowCaption,expression:"ctxEmbedShowCaption"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowCaption)?t._i(t.ctxEmbedShowCaption,null)>-1:t.ctxEmbedShowCaption},on:{change:function(e){var s=t.ctxEmbedShowCaption,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.ctxEmbedShowCaption=s.concat([null])):i>-1&&(t.ctxEmbedShowCaption=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedShowCaption=o}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Caption\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowLikes,expression:"ctxEmbedShowLikes"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowLikes)?t._i(t.ctxEmbedShowLikes,null)>-1:t.ctxEmbedShowLikes},on:{change:function(e){var s=t.ctxEmbedShowLikes,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.ctxEmbedShowLikes=s.concat([null])):i>-1&&(t.ctxEmbedShowLikes=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedShowLikes=o}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Likes\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedCompactMode,expression:"ctxEmbedCompactMode"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.ctxEmbedCompactMode)?t._i(t.ctxEmbedCompactMode,null)>-1:t.ctxEmbedCompactMode},on:{change:function(e){var s=t.ctxEmbedCompactMode,a=e.target,o=!!a.checked;if(Array.isArray(s)){var i=t._i(s,null);a.checked?i<0&&(t.ctxEmbedCompactMode=s.concat([null])):i>-1&&(t.ctxEmbedCompactMode=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedCompactMode=o}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tCompact Mode\n\t\t\t\t\t")])])]),t._v(" "),e("hr"),t._v(" "),e("button",{class:t.copiedEmbed?"btn btn-primary btn-block btn-sm py-1 font-weight-bold disabed":"btn btn-primary btn-block btn-sm py-1 font-weight-bold",attrs:{disabled:t.copiedEmbed},on:{click:t.ctxCopyEmbed}},[t._v(t._s(t.copiedEmbed?"Embed Code Copied!":"Copy Embed Code"))]),t._v(" "),e("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),e("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),e("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group text-center"},[e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("sensitive")}}},[t._v("Sensitive Content")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("abusive")}}},[t._v("Abusive or Harmful")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxReportOther",attrs:{id:"ctx-report-other","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group text-center"},[e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("underage")}}},[t._v("Underage Account")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("copyright")}}},[t._v("Copyright Infringement")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("scam")}}},[t._v("Scam or Fraud")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[e("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),e("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[e("button",{staticClass:"btn btn-outline-lighter border-left-0 border-top-0 border-bottom-0 border-right py-2",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalCancel()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-outline-lighter border-0",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalConfirm()}}},[t._v("Confirm")])])])],1)},o=[]},28995(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"card shadow-none rounded-0",class:{border:t.showBorder,"border-top-0":!t.showBorderTop}},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"media"},[e("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",alt:"avatar"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"pl-2 d-flex align-items-top"},[e("a",{staticClass:"username font-weight-bold text-dark text-decoration-none text-break",attrs:{href:"#"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"px-1 text-lighter"},[t._v("\n\t\t\t\t\t\t\tยท\n\t\t\t\t\t\t")]),t._v(" "),e("a",{staticClass:"font-weight-bold text-lighter",attrs:{href:t.statusUrl(t.status)}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.shortTimestamp(t.status.created_at))+"\n\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"d-none d-md-block px-1 text-lighter"},[t._v("\n\t\t\t\t\t\t\tยท\n\t\t\t\t\t\t")]),t._v(" "),t._m(0),t._v(" "),e("span",{staticClass:"d-none d-md-block px-1 text-lighter"},[t._v("\n\t\t\t\t\t\t\tยท\n\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"d-none d-md-block px-1 text-lighter font-weight-bold"},[t.status.poll.expired?e("span",[t._v("\n\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t")]):e("span",[t._v("\n\t\t\t\t\t\t\t\tCloses in "+t._s(t.shortTimestampAhead(t.status.poll.expires_at))+"\n\t\t\t\t\t\t\t")])]),t._v(" "),e("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[e("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),e("div",{staticClass:"pl-2"},[e("div",{staticClass:"poll py-3"},[e("div",{staticClass:"pt-2 text-break d-flex align-items-center mb-3",staticStyle:{"font-size":"17px"}},[t._m(1),t._v(" "),e("span",{staticClass:"font-weight-bold ml-3",domProps:{innerHTML:t._s(t.status.content)}})]),t._v(" "),e("div",{staticClass:"mb-2"},["vote"===t.tab?e("div",[t._l(t.status.poll.options,function(s,a){return e("p",[e("button",{staticClass:"btn btn-block lead rounded-pill",class:[a==t.selectedIndex?"btn-primary":"btn-outline-primary"],attrs:{disabled:!t.authenticated},on:{click:function(e){return t.selectOption(a)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(s.title)+"\n\t\t\t\t\t\t\t\t\t\t")])])}),t._v(" "),null!=t.selectedIndex?e("p",{staticClass:"text-right"},[e("button",{staticClass:"btn btn-primary btn-sm font-weight-bold px-3",on:{click:function(e){return t.submitVote()}}},[t._v("Vote")])]):t._e()],2):"voted"===t.tab?e("div",t._l(t.status.poll.options,function(s,a){return e("div",{staticClass:"mb-3"},[e("button",{staticClass:"btn btn-block lead rounded-pill",class:[a==t.selectedIndex?"btn-primary":"btn-outline-secondary"],attrs:{disabled:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(s.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"font-weight-bold"},[e("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(s))+"%")]),t._v(" "),e("span",{staticClass:"small text-lighter"},[t._v("("+t._s(s.votes_count)+" "+t._s(1==s.votes_count?"vote":"votes")+")")])])])}),0):"results"===t.tab?e("div",t._l(t.status.poll.options,function(s,a){return e("div",{staticClass:"mb-3"},[e("button",{staticClass:"btn btn-outline-secondary btn-block lead rounded-pill",attrs:{disabled:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(s.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"font-weight-bold"},[e("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(s))+"%")]),t._v(" "),e("span",{staticClass:"small text-lighter"},[t._v("("+t._s(s.votes_count)+" "+t._s(1==s.votes_count?"vote":"votes")+")")])])])}),0):t._e()]),t._v(" "),e("div",[e("p",{staticClass:"mb-0 small text-lighter font-weight-bold d-flex justify-content-between"},[e("span",[t._v(t._s(t.status.poll.votes_count)+" votes")]),t._v(" "),"results"!=t.tab&&t.authenticated&&!t.activeRefreshTimeout&&1!=t.status.poll.expired&&t.status.poll.voted?e("a",{staticClass:"text-lighter",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.refreshResults()}}},[t._v("Refresh Results")]):t._e(),t._v(" "),"results"!=t.tab&&t.authenticated&&t.refreshingResults?e("span",{staticClass:"text-lighter"},[t._m(2)]):t._e()])]),t._v(" "),e("div",[e("span",{staticClass:"d-block d-md-none small text-lighter font-weight-bold"},[t.status.poll.expired?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t\t\t")]):e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tCloses in "+t._s(t.shortTimestampAhead(t.status.poll.expires_at))+"\n\t\t\t\t\t\t\t\t\t")])])])])])])])])]),t._v(" "),e("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},o=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"d-none d-md-block px-1 text-primary font-weight-bold"},[e("i",{staticClass:"fas fa-poll-h"}),t._v(" Poll "),e("sup",{staticClass:"text-lighter"},[t._v("BETA")])])},function(){var t=this._self._c;return t("span",{staticClass:"btn btn-primary px-2 py-1"},[t("i",{staticClass:"fas fa-poll-h fa-lg"})])},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...")])])}]},73386(t,e,s){"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"status-card-component",class:{"status-card-sm":"small"===t.size}},["text"===t.status.pf_type?e("div",{staticClass:"card shadow-none border rounded-0",class:{"border-top-0":!t.hasTopBorder}},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"media"},[e("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"pl-2 d-flex align-items-top"},[e("a",{staticClass:"username font-weight-bold text-dark text-decoration-none text-break",attrs:{href:t.profileUrl(t.status)},domProps:{innerHTML:t._s(t.statusCardUsernameFormat(t.status))}}),t._v(" "),e("span",{staticClass:"px-1 text-lighter"},[t._v("\n\t\t\t\t\t\t\tยท\n\t\t\t\t\t\t")]),t._v(" "),e("a",{staticClass:"font-weight-bold text-lighter",attrs:{href:t.statusUrl(t.status)}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.shortTimestamp(t.status.created_at))+"\n\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[e("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),e("div",{staticClass:"pl-2"},[t.status.sensitive?e("details",[e("summary",{staticClass:"mb-2 font-weight-bold text-muted"},[t._v("Content Warning")]),t._v(" "),e("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}})]):e("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}}),t._v(" "),e("p",{staticClass:"mb-0"},[e("i",{staticClass:"fa-heart fa-lg cursor-pointer mr-3",class:{"far text-muted":!t.status.favourited,"fas text-danger":t.status.favourited},on:{click:function(e){return t.likeStatus(t.status,e)}}}),t._v(" "),e("i",{staticClass:"far fa-comment cursor-pointer text-muted fa-lg mr-3",on:{click:function(e){return t.commentFocus(t.status,e)}}})])])])])])]):"poll"===t.status.pf_type?e("div",[e("poll-card",{attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1):e("div",{staticClass:"card rounded-0 border-top-0 status-card card-md-rounded-0 shadow-none border"},[t.status?e("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[e("div",[e("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]),t._v(" "),e("div",{staticClass:"pl-2"},[e("a",{staticClass:"username font-weight-bold text-dark text-decoration-none text-break",attrs:{href:t.profileUrl(t.status)},domProps:{innerHTML:t._s(t.statusCardUsernameFormat(t.status))}}),t._v(" "),t.status.account.is_admin?e("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[e("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),e("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[t.status.place?e("a",{staticClass:"small text-decoration-none text-muted",attrs:{href:"/discover/places/"+t.status.place.id+"/"+t.status.place.slug,title:"Location","data-toggle":"tooltip"}},[e("i",{staticClass:"fas fa-map-marked-alt"}),t._v(" "+t._s(t.status.place.name)+", "+t._s(t.status.place.country))]):t._e()])]),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[e("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]):t._e(),t._v(" "),e("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video:album"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):e("div",{staticClass:"w-100"},[e("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])]),t._v(" "),e("div",{staticClass:"card-body"},[t.reactionBar?e("div",{staticClass:"reactions my-1 pb-2"},[t.status.favourited?e("h3",{staticClass:"fas fa-heart text-danger pr-3 m-0 cursor-pointer",attrs:{title:"Like"},on:{click:function(e){return t.likeStatus(t.status,e)}}}):e("h3",{staticClass:"fal fa-heart pr-3 m-0 like-btn text-dark cursor-pointer",attrs:{title:"Like"},on:{click:function(e){return t.likeStatus(t.status,e)}}}),t._v(" "),t.status.comments_disabled?t._e():e("h3",{staticClass:"fal fa-comment text-dark pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(e){return t.commentFocus(t.status,e)}}}),t._v(" "),t.status.taggedPeople.length?e("span",{staticClass:"float-right"},[e("span",{staticClass:"font-weight-light small",staticStyle:{color:"#718096"}},[e("i",{staticClass:"far fa-user",attrs:{"data-toggle":"tooltip",title:"Tagged People"}}),t._v(" "),t._l(t.status.taggedPeople,function(t,s){return e("span",{staticClass:"mr-n2"},[e("a",{attrs:{href:"/"+t.username}},[e("img",{staticClass:"border rounded-circle",attrs:{src:t.avatar,width:"20px",height:"20px","data-toggle":"tooltip",title:"@"+t.username,alt:"Avatar"}})])])})],2)]):t._e()]):t._e(),t._v(" "),t.status.liked_by.username&&t.status.liked_by.username!==t.profile.username?e("div",{staticClass:"likes mb-1"},[e("span",{staticClass:"like-count"},[t._v("Liked by\n\t\t\t\t\t"),e("a",{staticClass:"font-weight-bold text-dark",attrs:{href:t.status.liked_by.url}},[t._v(t._s(t.status.liked_by.username))]),t._v(" "),1==t.status.liked_by.others?e("span",[t._v("\n\t\t\t\t\t\tand "),t.status.liked_by.total_count_pretty?e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.liked_by.total_count_pretty))]):t._e(),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("others")])]):t._e()])]):t._e(),t._v(" "),"text"!=t.status.pf_type?e("div",{staticClass:"caption"},[t.status.sensitive?t._e():e("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[e("span",{staticClass:"username font-weight-bold"},[e("bdi",[e("a",{staticClass:"text-dark",attrs:{href:t.profileUrl(t.status)}},[t._v(t._s(t.status.account.username))])])]),t._v(" "),e("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.content)}})])]):t._e(),t._v(" "),e("div",{staticClass:"timestamp mt-2"},[e("p",{staticClass:"small mb-0"},["archived"!=t.status.visibility?e("a",{staticClass:"text-muted text-uppercase",attrs:{href:t.statusUrl(t.status)}},[e("timeago",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],attrs:{datetime:t.status.created_at,"auto-update":60,"converter-options":{includeSeconds:!0},title:t.timestampFormat(t.status.created_at)}})],1):e("span",{staticClass:"text-muted text-uppercase"},[t._v("\n\t\t\t\t\t\tPosted "),e("timeago",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],attrs:{datetime:t.status.created_at,"auto-update":60,"converter-options":{includeSeconds:!0},title:t.timestampFormat(t.status.created_at)}})],1),t._v(" "),t.recommended?e("span",[e("span",{staticClass:"px-1"},[t._v("ยท")]),t._v(" "),e("span",{staticClass:"text-muted"},[t._v("Based on popular and trending content")])]):t._e()])])])]),t._v(" "),e("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},o=[]},74050(t,e,s){Vue.component("group-component",s(17547).default),Vue.component("groups-home",s(18115).default),Vue.component("group-feed",s(71307).default),Vue.component("group-settings",s(13480).default),Vue.component("group-profile",s(17346).default),Vue.component("groups-invite",s(1544).default)},37365(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".card-img-top[data-v-7066737e]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-7066737e]{position:relative}.content-label[data-v-7066737e]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}.album-wrapper[data-v-7066737e]{position:relative}",""]);const i=o},13373(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".card-img-top[data-v-46f39310]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-46f39310]{position:relative}.content-label[data-v-46f39310]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}.sensitive-curtain[data-v-46f39310]{cursor:pointer;margin-top:0;padding:10px;top:0}.photo-license[data-v-46f39310],.sensitive-curtain[data-v-46f39310]{background:linear-gradient(0deg,rgba(0,0,0,.5),rgba(0,0,0,.5));border-top-left-radius:5px;color:#fff;font-size:10px;position:absolute;right:0;text-align:right}.photo-license[data-v-46f39310]{bottom:0;margin-bottom:0;padding:0 5px}",""]);const i=o},83853(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".content-label-wrapper[data-v-7871d23c]{position:relative}.content-label[data-v-7871d23c]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const i=o},91491(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-component-hero{align-items:center;background-color:#fff;border:1px solid #dee2e6;border-top:0;display:flex;justify-content:space-between;padding:1rem}.group-component-hero h3{margin-bottom:0}",""]);const i=o},53400(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,'.create-group-component .submit-button{width:130px}.create-group-component .multistep{counter-reset:step;margin-bottom:30px;margin-top:30px;overflow:hidden;padding-left:0;text-align:center}.create-group-component .multistep li{color:#b8c2cc;float:left;font-size:9px;font-weight:700;list-style-type:none;position:relative;text-transform:uppercase;width:20%}.create-group-component .multistep li.active{color:#000}.create-group-component .multistep li:before{background:#f3f4f6;border-radius:25px;color:#b8c2cc;content:counter(step);counter-increment:step;display:block;font-size:12px;height:24px;line-height:26px;margin:0 auto 10px;transition:background .4s;width:24px}.create-group-component .multistep li:after{background:#dee2e6;content:"";height:2px;left:-50%;position:absolute;top:11px;transition:background .4s;width:100%;z-index:-1}.create-group-component .multistep li:first-child:after{content:none}.create-group-component .multistep li.active:after,.create-group-component .multistep li.active:before{background:#2c78bf;color:#fff;transition:background .4s}.create-group-component .col-form-label{font-weight:600;text-align:right}',""]);const i=o},55407(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-feed-component-header{align-items:flex-end;background-color:transparent;display:flex;justify-content:space-between;padding:1rem 0}.group-feed-component-header .cta-btn{width:190px}.group-feed-component .header-jumbotron{background-color:#f3f4f6;border-bottom-left-radius:20px;border-bottom-right-radius:20px;height:320px}.group-feed-component-menu{align-items:center;display:flex;justify-content:space-between;padding:0}.group-feed-component-menu-nav .nav-item .nav-link{color:#6c757d;padding-bottom:1rem;padding-top:1rem}.group-feed-component-menu-nav .nav-item .nav-link.active{border-bottom:2px solid #2c78bf;color:#2c78bf}.group-feed-component-menu-nav:not(last-child) .nav-item{margin-right:14px}.group-feed-component-body{min-height:40vh}.group-feed-component .member-label{background:rgba(137,196,244,.2);border:1px solid rgba(137,196,244,.3);color:#4b77be;font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}.group-feed-component .dropdown-item{font-weight:600}.group-feed-component .remote-label{background:#fef3c7;border:1px solid #fcd34d;color:#b45309;font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}",""]);const i=o},59167(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-invite-component .btn-light{border-color:#e5e7eb}",""]);const i=o},73967(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-profile-component{background-color:#f0f2f5}.group-profile-component .header-jumbotron{background-color:#f3f4f6;border-bottom-left-radius:20px;border-bottom-right-radius:20px;height:320px}.group-profile-component .header-profile-card{align-items:center;display:flex;flex-direction:column;justify-content:center}.group-profile-component .header-profile-card .avatar{border-radius:50%;height:170px;margin-bottom:20px;margin-top:-150px;width:170px}.group-profile-component .header-profile-card .name{font-size:30px;font-weight:700;line-height:30px;margin-bottom:6px;text-align:center}.group-profile-component .header-profile-card .username{font-size:16px;font-weight:500;text-align:center}.group-profile-component .header-navbar{align-items:center;border-top:1px solid #f3f4f6;display:flex;height:60px;justify-content:space-between}.group-profile-component .header-navbar .dropdown{display:inline-block}.group-profile-component .header-navbar .dropdown-toggle:after{display:none}.group-profile-component .group-profile-feed{min-height:500px}.group-profile-component .infolet{margin-bottom:1rem}.group-profile-component .infolet .media-icon{display:flex;justify-content:center;margin-right:10px;width:30px}.group-profile-component .infolet .media-icon i{color:#d1d5db!important;font-size:1.1rem}.group-profile-component .btn-light{border-color:#f3f4f6}",""]);const i=o},19827(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-settings-component-header{align-items:flex-end;background-color:#fff;display:flex;justify-content:space-between;padding:2rem 1rem 1rem}.group-settings-component-header .cta-btn{min-width:140px}",""]);const i=o},91626(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".groups-home-component{font-family:var(--font-family-sans-serif)}.groups-home-component .group-nav-btn{background-color:transparent;border-color:transparent;border-radius:1.5rem;color:#6c757d;display:block;justify-content:flex-start;margin-bottom:.3rem;padding-bottom:.3rem;padding-left:0;padding-top:.3rem;text-align:left;width:100%}.groups-home-component .group-nav-btn.active{background-color:#eff6ff!important;border:1px solid #dbeafe!important;color:#212529}.groups-home-component .group-nav-btn.active .group-nav-btn-icon{background-color:#2c78bf!important;color:#fff!important}.groups-home-component .group-nav-btn-icon{align-items:center;background-color:#e5e7eb;border-radius:17px;display:inline-flex;height:35px;justify-content:center;margin:auto .3rem;padding:12px;width:35px}.groups-home-component .group-nav-btn-name{display:inline-block;font-weight:700;margin-left:.3rem}.groups-home-component .autocomplete-input{background-color:#f8f9fa!important;border-color:transparent;border-radius:50rem;color:#495057;font-size:.9rem;height:2.375rem}.groups-home-component .autocomplete-input:focus,.groups-home-component .autocomplete-input[aria-expanded=true]{box-shadow:none}.groups-home-component .autocomplete-result{background:none;padding:12px}.groups-home-component .autocomplete-result:focus,.groups-home-component .autocomplete-result:hover{background-color:#eff6ff!important}.groups-home-component .autocomplete-result .media img{border-radius:4px;margin-right:.6rem;-o-object-fit:cover;object-fit:cover}.groups-home-component .autocomplete-result .media .icon-placeholder{align-items:center;background-color:#2c78bf;border-radius:4px;color:#fff;display:flex;height:32px;justify-content:center;margin-right:.6rem;width:32px}.groups-home-component .autocomplete-result-list{padding-bottom:0}.groups-home-component .fade-enter-active,.groups-home-component .fade-leave-active{transition:opacity .2s}.groups-home-component .fade-enter,.groups-home-component .fade-leave-to{opacity:0}",""]);const i=o},92520(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,'.comment-drawer-component .media{position:relative}.comment-drawer-component .media .comment-border-link{background-clip:padding-box;background-color:#e5e7eb;border-left:4px solid transparent;border-right:4px solid transparent;display:block;height:calc(100% - 100px);left:11px;position:absolute;top:40px;width:10px}.comment-drawer-component .media .comment-border-link:hover{background-color:#bfdbfe}.comment-drawer-component .media .child-reply-form{position:relative}.comment-drawer-component .media .comment-border-arrow{background-clip:padding-box;background-color:#e5e7eb;border-bottom:2px solid transparent;border-left:4px solid transparent;border-right:4px solid transparent;display:block;height:29px;left:-33px;position:absolute;top:-6px;width:10px}.comment-drawer-component .media .comment-border-arrow:after{background-color:#e5e7eb;content:"";display:block;height:2px;left:2px;position:absolute;top:25px;width:15px}.comment-drawer-component .media-status{margin-bottom:1.3rem}.comment-drawer-component .media-avatar{margin-right:12px}.comment-drawer-component .media-body-comment{background-color:var(--comment-bg);border-radius:.9rem;padding:.4rem .7rem;width:-moz-fit-content;width:fit-content}.comment-drawer-component .media-body-comment-username{color:#000;font-size:14px;font-weight:700!important;margin-bottom:.25rem!important}.comment-drawer-component .media-body-comment-username a{color:#000;text-decoration:none}.comment-drawer-component .media-body-comment-content{font-size:16px;margin-bottom:0}.comment-drawer-component .media-body-reactions{color:#b8c2cc!important;font-size:12px;margin-bottom:0!important;margin-top:.25rem!important}.comment-drawer-component .load-more-comments{font-weight:500}.comment-drawer-component .reply-form{margin-bottom:2rem}.comment-drawer-component .reply-form-input{flex:1;position:relative}.comment-drawer-component .reply-form-input textarea{border-radius:10px}.comment-drawer-component .reply-form-input .form-control{padding-right:100px;resize:none}.comment-drawer-component .reply-form-input-actions{position:absolute;right:10px;top:50%;transform:translateY(-50%)}.comment-drawer-component .reply-form .btn{text-decoration:none}.comment-drawer-component .reply-form-menu{margin-top:5px}.comment-drawer-component .reply-form-menu .char-counter{color:var(--muted);font-size:10px}.comment-drawer-component .bh-comment,.comment-drawer-component .bh-comment img,.comment-drawer-component .bh-comment span{height:auto;max-height:260px!important;max-width:160px!important;width:100%}.comment-drawer-component .bh-comment img{-o-object-fit:cover;object-fit:cover}',""]);const i=o},34682(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,"",""]);const i=o},20082(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,"",""]);const i=o},92155(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-info-card .title[data-v-9d095298]{font-size:16px;font-weight:700}.group-info-card .description[data-v-9d095298]{color:#6c757d;font-size:15px;font-weight:400;margin-bottom:0;white-space:break-spaces}.group-info-card .fact[data-v-9d095298]{align-items:center;display:flex;margin-bottom:1.5rem}.group-info-card .fact-body[data-v-9d095298]{flex:1}.group-info-card .fact-icon[data-v-9d095298]{text-align:center;width:50px}.group-info-card .fact-title[data-v-9d095298]{font-size:17px;font-weight:500;margin-bottom:0}.group-info-card .fact-subtitle[data-v-9d095298]{color:#6c757d;font-size:14px;margin-bottom:0}",""]);const i=o},25730(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-invite-modal-wrapper .media{border-radius:10px;cursor:pointer;height:60px;padding:10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.group-invite-modal-wrapper .media:hover{background-color:#e5e7eb}",""]);const i=o},42500(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-list-card .member-label[data-v-102531e6]{background:rgba(137,196,244,.2);border:1px solid rgba(137,196,244,.3);border-radius:3px;color:#4b77be}.group-list-card .member-label[data-v-102531e6],.group-list-card .remote-label[data-v-102531e6]{font-size:9px;font-weight:500;padding:2px 5px;text-transform:capitalize}.group-list-card .remote-label[data-v-102531e6]{background:#fef3c7;border:1px solid #fcd34d;border-radius:3px;color:#b45309}.group-list-card .group-header-img[data-v-102531e6]{height:60px;-o-object-fit:cover;object-fit:cover;padding:0;width:60px}.group-list-card .group-header-img.compact[data-v-102531e6]{height:42.5px;width:42.5px}",""]);const i=o},46262(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".gpm-media{display:flex;width:70%}.gpm-media img{background-color:#000;height:auto;max-height:70vh;-o-object-fit:contain;object-fit:contain;width:100%}.gpm .comment-drawer-component .my-3{max-height:46vh;overflow:auto}.gpm .cdrawer-reply-form{bottom:0;margin-bottom:1rem!important;min-width:310px;position:absolute}",""]);const i=o},14868(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-search-modal-wrapper .media{border-radius:10px;cursor:pointer;height:60px;padding:10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.group-search-modal-wrapper .media:hover{background-color:#e5e7eb}",""]);const i=o},9218(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".status-card-component .status-content{font-size:17px}.status-card-component.status-card-sm .status-content{font-size:14px}.status-card-component.status-card-sm .fa-lg{font-size:unset;line-height:unset;vertical-align:unset}.reaction-bar{border:1px solid #f3f4f6!important;left:-50px!important;max-width:unset;width:auto}.reaction-bar .popover-body{padding:2px}.reaction-bar .arrow{display:none}.reaction-bar img{width:48px}",""]);const i=o},27161(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".header-image[data-v-63bf412f]{border:1px solid var(--light);border-bottom-left-radius:5px;border-bottom-right-radius:5px;height:auto;margin-bottom:0;margin-top:-1px;max-height:220px;-o-object-fit:cover;object-fit:cover;width:100%}@media (min-width:768px){.header-image[data-v-63bf412f]{max-height:420px}}.header-jumbotron[data-v-63bf412f]{background-color:#f3f4f6;border-bottom-left-radius:20px;border-bottom-right-radius:20px;height:320px}",""]);const i=o},73788(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-feed-component-header{align-items:flex-end;background-color:transparent;display:flex;justify-content:space-between;padding:1rem 0}.group-feed-component-header .cta-btn{width:190px}.group-feed-component .member-label{background:rgba(137,196,244,.2);border:1px solid rgba(137,196,244,.3);color:#4b77be;font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}.group-feed-component .dropdown-item{font-weight:600}.group-feed-component .remote-label{background:#fef3c7;border:1px solid #fcd34d;color:#b45309;font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}",""]);const i=o},6777(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-feed-component-menu{align-items:center;display:flex;justify-content:space-between;padding:0}.group-feed-component-menu-nav .nav-item .nav-link{color:#6c757d;padding-bottom:1rem;padding-top:1rem}.group-feed-component-menu-nav .nav-item .nav-link.active{border-bottom:2px solid #2c78bf;color:#2c78bf}.group-feed-component-menu-nav:not(last-child) .nav-item{margin-right:14px}",""]);const i=o},37575(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".self-discover-component .list-group-item{text-decoration:none}.self-discover-component .list-group-item:hover{background-color:#f3f4f6}.self-discover-component .bg-mantle{background:linear-gradient(45deg,#24c6dc,#514a9d)}.self-discover-component .bg-black{background-color:#000}.self-discover-component .bg-black hr{border-top:1px solid hsla(0,0%,100%,.12)}.self-discover-component .title{align-items:center;display:flex;justify-content:space-between}.self-discover-component .title span{font-size:24px;font-weight:600}.self-discover-component .title .btn{border:1px solid #e5e7eb}",""]);const i=o},58967(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".my-groups-component .list-container[data-v-04397ac0]{margin-bottom:30vh}.my-groups-component .member-label[data-v-04397ac0]{background:rgba(137,196,244,.2);border:1px solid rgba(137,196,244,.3);border-radius:3px;color:#4b77be}.my-groups-component .member-label[data-v-04397ac0],.my-groups-component .remote-label[data-v-04397ac0]{font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}.my-groups-component .remote-label[data-v-04397ac0]{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:3px;color:#4b5563}",""]);const i=o},26140(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,'.group-notification-component .dropdown-toggle:after{content:"";display:none}.group-notification-component .nitem a{color:#000;font-weight:700!important}.group-notification-component .nitem a:focus,.group-notification-component .nitem a:hover{color:#121416!important}',""]);const i=o},32845(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".group-post-header .btn[data-v-29a27e2f]::focus{box-shadow:none}.group-post-header .dropdown-toggle[data-v-29a27e2f]:after{display:none}.group-post-header .group-name-link[data-v-29a27e2f]{font-size:16px}.group-post-header .group-name-link[data-v-29a27e2f],.group-post-header .group-name-link-small[data-v-29a27e2f]{word-wrap:break-word!important;color:var(--body-color)!important;font-weight:600;text-decoration:none;word-break:break-word!important}.group-post-header .group-name-link-small[data-v-29a27e2f]{font-size:14px}",""]);const i=o},9952(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(76798),o=s.n(a)()(function(t){return t[1]});o.push([t.id,".status-card-component .status-content{font-size:17px}.status-card-component.status-card-sm .status-content{font-size:14px}.status-card-component.status-card-sm .fa-lg{font-size:unset;line-height:unset;vertical-align:unset}",""]);const i=o},47754(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(37365),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},3456(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(13373),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},33844(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(83853),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},61276(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(91491),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},37063(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(53400),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},59240(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(55407),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},13968(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(59167),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},55726(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(73967),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},31124(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(19827),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},32327(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(91626),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},34969(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(92520),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},80403(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(34682),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},92509(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(20082),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},2298(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(92155),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},83441(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(25730),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},21969(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(42500),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},54077(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(46262),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},87495(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(14868),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},45023(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(9218),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},69590(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(27161),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},48509(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(73788),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},33864(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(6777),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},61492(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(37575),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},32524(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(58967),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},4709(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(26140),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},96246(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(32845),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},67679(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(9952),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},17547(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(64330),o=s(32608),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(29203);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},49139(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(15763),o=s(40720),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(45576);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},71307(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(31846),o=s(35236),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(87359);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},1544(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(54888),o=s(1432),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(71855);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},17346(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(56814),o=s(47953),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(53855);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},13480(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(7004),o=s(44515),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(52035);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},18115(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(51147),o=s(91036),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(58618);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},69513(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(99873),o=s(96046),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(92664);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},66536(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(47173),o=s(7059),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(94378);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},84125(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(22515),o=s(60586),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},62181(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(33988),o=s(72934),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},69104(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(49782),o=s(22903),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},40482(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(4552),o=s(60473),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},71347(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(87362),o=s(77548),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},17108(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(73143),o=s(22899),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(94594);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},13094(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(15476),o=s(98281),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(24107);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"9d095298",null).exports},19413(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(35343),o=s(75337),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(4114);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},75386(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(8953),o=s(69309),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(61620);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"102531e6",null).exports},42013(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(2133),o=s(65638),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(29030);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},94559(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(9339),o=s(84552),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(32196);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},95002(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(91689),o=s(60481),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(1202);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},58753(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(40710),o=s(72122),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},49268(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(19748),o=s(85083),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(53257);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"63bf412f",null).exports},52505(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(97741),o=s(36962),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(12012);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},33457(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(89014),o=s(18458),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(3625);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},7764(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(8751),o=s(6723),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},54048(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(80580),o=s(33759),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(73591);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},90637(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(84667),o=s(44778),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},57397(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(53056),o=s(73622),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(21319);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"04397ac0",null).exports},27403(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(17702),o=s(10912),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},65603(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(59037),o=s(65968),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(64012);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},5799(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(76407),o=s(71880),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},76746(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(82368),o=s(28725),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(58781);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"29a27e2f",null).exports},40798(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(97299),o=s(84381),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},21466(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(63476),o=s(95509),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},98051(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(37086),o=s(90660),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(11415);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"7066737e",null).exports},37128(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(3388),o=s(2815),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(69207);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"46f39310",null).exports},61518(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(99521),o=s(4777),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},79427(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(17962),o=s(6452),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(75475);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,"7871d23c",null).exports},53744(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(29375),o=s(21663),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},78841(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(8044),o=s(24966),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},79984(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(44897),o=s(203),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(13808);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},32608(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(19933),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},40720(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(22681),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},35236(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(72233),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},1432(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(2118),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},47953(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(20258),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},44515(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(39786),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},91036(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(95727),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},96046(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(68717),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},7059(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(78828),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},60586(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(15961),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},72934(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(3891),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},22903(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(35334),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},60473(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(87844),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},77548(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(45065),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},22899(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(91446),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},98281(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(15426),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},75337(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(51796),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},69309(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(68902),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},65638(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(43599),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},84552(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(89905),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},60481(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(6234),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},72122(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(96895),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},85083(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(70714),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},36962(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(9125),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},18458(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(11493),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},6723(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(79270),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},33759(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(93350),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},44778(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(34015),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},73622(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(7755),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},10912(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(26751),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},65968(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(93543),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},71880(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(60217),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},28725(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(33664),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},84381(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(75e3),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},95509(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(33422),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},90660(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(36639),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},2815(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(9266),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},4777(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(35986),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},6452(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(25189),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},21663(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(70384),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},24966(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(78615),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},203(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(47898),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},64330(t,e,s){"use strict";s.r(e);var a=s(93409),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},15763(t,e,s){"use strict";s.r(e);var a=s(92192),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},31846(t,e,s){"use strict";s.r(e);var a=s(91057),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},54888(t,e,s){"use strict";s.r(e);var a=s(62959),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},56814(t,e,s){"use strict";s.r(e);var a=s(80311),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},7004(t,e,s){"use strict";s.r(e);var a=s(54299),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},51147(t,e,s){"use strict";s.r(e);var a=s(36826),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},99873(t,e,s){"use strict";s.r(e);var a=s(59296),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},47173(t,e,s){"use strict";s.r(e);var a=s(16560),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},22515(t,e,s){"use strict";s.r(e);var a=s(57442),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},33988(t,e,s){"use strict";s.r(e);var a=s(88291),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},49782(t,e,s){"use strict";s.r(e);var a=s(20285),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},4552(t,e,s){"use strict";s.r(e);var a=s(80171),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},87362(t,e,s){"use strict";s.r(e);var a=s(47545),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},73143(t,e,s){"use strict";s.r(e);var a=s(54968),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},15476(t,e,s){"use strict";s.r(e);var a=s(26177),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},35343(t,e,s){"use strict";s.r(e);var a=s(22224),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},8953(t,e,s){"use strict";s.r(e);var a=s(25012),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},2133(t,e,s){"use strict";s.r(e);var a=s(64954),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},9339(t,e,s){"use strict";s.r(e);var a=s(83560),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},91689(t,e,s){"use strict";s.r(e);var a=s(91648),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},40710(t,e,s){"use strict";s.r(e);var a=s(52809),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},19748(t,e,s){"use strict";s.r(e);var a=s(2011),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},97741(t,e,s){"use strict";s.r(e);var a=s(11568),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},89014(t,e,s){"use strict";s.r(e);var a=s(17859),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},8751(t,e,s){"use strict";s.r(e);var a=s(30832),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},80580(t,e,s){"use strict";s.r(e);var a=s(48511),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},84667(t,e,s){"use strict";s.r(e);var a=s(92300),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},53056(t,e,s){"use strict";s.r(e);var a=s(54479),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},17702(t,e,s){"use strict";s.r(e);var a=s(75891),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},59037(t,e,s){"use strict";s.r(e);var a=s(25836),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},76407(t,e,s){"use strict";s.r(e);var a=s(5328),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},82368(t,e,s){"use strict";s.r(e);var a=s(48375),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},97299(t,e,s){"use strict";s.r(e);var a=s(70560),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},63476(t,e,s){"use strict";s.r(e);var a=s(18389),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},37086(t,e,s){"use strict";s.r(e);var a=s(28691),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},3388(t,e,s){"use strict";s.r(e);var a=s(20671),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},99521(t,e,s){"use strict";s.r(e);var a=s(12024),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},17962(t,e,s){"use strict";s.r(e);var a=s(75593),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},29375(t,e,s){"use strict";s.r(e);var a=s(45322),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},8044(t,e,s){"use strict";s.r(e);var a=s(28995),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},44897(t,e,s){"use strict";s.r(e);var a=s(73386),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},11415(t,e,s){"use strict";s.r(e);var a=s(47754),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},69207(t,e,s){"use strict";s.r(e);var a=s(3456),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},75475(t,e,s){"use strict";s.r(e);var a=s(33844),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},29203(t,e,s){"use strict";s.r(e);var a=s(61276),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},45576(t,e,s){"use strict";s.r(e);var a=s(37063),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},87359(t,e,s){"use strict";s.r(e);var a=s(59240),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},71855(t,e,s){"use strict";s.r(e);var a=s(13968),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},53855(t,e,s){"use strict";s.r(e);var a=s(55726),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},52035(t,e,s){"use strict";s.r(e);var a=s(31124),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},58618(t,e,s){"use strict";s.r(e);var a=s(32327),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},92664(t,e,s){"use strict";s.r(e);var a=s(34969),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},94378(t,e,s){"use strict";s.r(e);var a=s(80403),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},94594(t,e,s){"use strict";s.r(e);var a=s(92509),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},24107(t,e,s){"use strict";s.r(e);var a=s(2298),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},4114(t,e,s){"use strict";s.r(e);var a=s(83441),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},61620(t,e,s){"use strict";s.r(e);var a=s(21969),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},29030(t,e,s){"use strict";s.r(e);var a=s(54077),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},32196(t,e,s){"use strict";s.r(e);var a=s(87495),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},1202(t,e,s){"use strict";s.r(e);var a=s(45023),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},53257(t,e,s){"use strict";s.r(e);var a=s(69590),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},12012(t,e,s){"use strict";s.r(e);var a=s(48509),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},3625(t,e,s){"use strict";s.r(e);var a=s(33864),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},73591(t,e,s){"use strict";s.r(e);var a=s(61492),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},21319(t,e,s){"use strict";s.r(e);var a=s(32524),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},64012(t,e,s){"use strict";s.r(e);var a=s(4709),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},58781(t,e,s){"use strict";s.r(e);var a=s(96246),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},13808(t,e,s){"use strict";s.r(e);var a=s(67679),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)}},t=>{t.O(0,[3660],()=>{return e=74050,t(t.s=e);var e});t.O()}]);
\ No newline at end of file
diff --git a/public/js/manifest.js b/public/js/manifest.js
index ff0c579b0..3b2f135ff 100644
--- a/public/js/manifest.js
+++ b/public/js/manifest.js
@@ -1 +1 @@
-(()=>{"use strict";var e,r,o,a={},t={};function c(e){var r=t[e];if(void 0!==r)return r.exports;var o=t[e]={id:e,loaded:!1,exports:{}};return a[e].call(o.exports,o,o.exports,c),o.loaded=!0,o.exports}c.m=a,e=[],c.O=(r,o,a,t)=>{if(!o){var n=1/0;for(f=0;f=t)&&Object.keys(c.O).every(e=>c.O[e](o[s]))?o.splice(s--,1):(d=!1,t0&&e[f-1][2]>t;f--)e[f]=e[f-1];e[f]=[o,a,t]},c.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return c.d(r,{a:r}),r},c.d=(e,r)=>{for(var o in r)c.o(r,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((r,o)=>(c.f[o](e,r),r),[])),c.u=e=>"js/"+{529:"groups-page",1179:"daci.chunk",1240:"discover~myhashtags.chunk",1645:"profile~following.bundle",2156:"dms.chunk",2822:"group.create",2966:"discover~hashtag.bundle",3688:"discover~serverfeed.chunk",4951:"home.chunk",6250:"discover~settings.chunk",6438:"groups-page-media",6535:"discover.chunk",6740:"discover~memories.chunk",6791:"groups-page-members",7206:"groups-page-topics",7342:"groups-post",7399:"dms~message.chunk",7413:"error404.bundle",7521:"discover~findfriends.chunk",7744:"notifications.chunk",8087:"profile.chunk",8119:"i18n.bundle",8257:"groups-page-about",8408:"post.chunk",8977:"profile~followers.bundle",9124:"compose.chunk",9231:"groups-profile",9919:"changelog.bundle"}[e]+"."+{529:"2826b7d8bc08bf22",1179:"4e7adc83fb3e6c26",1240:"b1170e28d46614b1",1645:"30a324bbbe437db7",2156:"13a1bf15db918fb7",2822:"82affc4a7b5983b0",2966:"43d7fefd51744728",3688:"b46e1b4180b850db",4951:"478a11db7f8bcc5b",6250:"a99d878b83352bea",6438:"f3be2d8b0ca59cdf",6535:"0a3c5b36cedbad42",6740:"3da68f4ee0598a4c",6791:"a2d12bc765ad0f38",7206:"7bee36f3edc0de92",7342:"aca9f85bd8b36f70",7399:"ca55c5d89171edc4",7413:"c408e3fce0f80bcb",7521:"271194c07b172af4",7744:"d2559e00a1a30220",8087:"0edce32375cf0e7a",8119:"9ffc0aacc1ff49e5",8257:"dfb2744b2a28d4c5",8408:"57be46e07bc9aee6",8977:"8381cac06885ce77",9124:"2c9141ff4969e238",9231:"924132e02f73d082",9919:"f97c6c2fdd203b90"}[e]+".js",c.miniCssF=e=>({2305:"css/portfolio",2540:"css/landing",3364:"css/admin",4370:"css/profile",6952:"css/appdark",8252:"css/app",8759:"css/spa"}[e]+".css"),c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},o="pixelfed:",c.l=(e,a,t,n)=>{if(r[e])r[e].push(a);else{var d,s;if(void 0!==t)for(var i=document.getElementsByTagName("script"),f=0;f{d.onerror=d.onload=null,clearTimeout(b);var t=r[e];if(delete r[e],d.parentNode&&d.parentNode.removeChild(d),t&&t.forEach(e=>e(a)),o)return o(a)},b=setTimeout(u.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=u.bind(null,d.onerror),d.onload=u.bind(null,d.onload),s&&document.head.appendChild(d)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={461:0,6952:0,8252:0,2305:0,3364:0,2540:0,4370:0,8759:0};c.f.j=(r,o)=>{var a=c.o(e,r)?e[r]:void 0;if(0!==a)if(a)o.push(a[2]);else if(/^((69|82)52|2305|2540|3364|4370|461|8759)$/.test(r))e[r]=0;else{var t=new Promise((o,t)=>a=e[r]=[o,t]);o.push(a[2]=t);var n=c.p+c.u(r),d=new Error;c.l(n,o=>{if(c.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var t=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;d.message="Loading chunk "+r+" failed.\n("+t+": "+n+")",d.name="ChunkLoadError",d.type=t,d.request=n,a[1](d)}},"chunk-"+r,r)}},c.O.j=r=>0===e[r];var r=(r,o)=>{var a,t,[n,d,s]=o,i=0;if(n.some(r=>0!==e[r])){for(a in d)c.o(d,a)&&(c.m[a]=d[a]);if(s)var f=s(c)}for(r&&r(o);i{"use strict";var e,r,o,a={},t={};function c(e){var r=t[e];if(void 0!==r)return r.exports;var o=t[e]={id:e,loaded:!1,exports:{}};return a[e].call(o.exports,o,o.exports,c),o.loaded=!0,o.exports}c.m=a,e=[],c.O=(r,o,a,t)=>{if(!o){var n=1/0;for(f=0;f=t)&&Object.keys(c.O).every(e=>c.O[e](o[s]))?o.splice(s--,1):(d=!1,t0&&e[f-1][2]>t;f--)e[f]=e[f-1];e[f]=[o,a,t]},c.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return c.d(r,{a:r}),r},c.d=(e,r)=>{for(var o in r)c.o(r,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((r,o)=>(c.f[o](e,r),r),[])),c.u=e=>"js/"+{529:"groups-page",1179:"daci.chunk",1240:"discover~myhashtags.chunk",1645:"profile~following.bundle",2156:"dms.chunk",2822:"group.create",2966:"discover~hashtag.bundle",3688:"discover~serverfeed.chunk",4951:"home.chunk",6250:"discover~settings.chunk",6438:"groups-page-media",6535:"discover.chunk",6740:"discover~memories.chunk",6791:"groups-page-members",7206:"groups-page-topics",7342:"groups-post",7399:"dms~message.chunk",7413:"error404.bundle",7521:"discover~findfriends.chunk",7744:"notifications.chunk",8087:"profile.chunk",8119:"i18n.bundle",8257:"groups-page-about",8408:"post.chunk",8977:"profile~followers.bundle",9124:"compose.chunk",9231:"groups-profile",9919:"changelog.bundle"}[e]+"."+{529:"2826b7d8bc08bf22",1179:"4e7adc83fb3e6c26",1240:"b1170e28d46614b1",1645:"30a324bbbe437db7",2156:"13a1bf15db918fb7",2822:"82affc4a7b5983b0",2966:"43d7fefd51744728",3688:"b46e1b4180b850db",4951:"478a11db7f8bcc5b",6250:"a99d878b83352bea",6438:"f3be2d8b0ca59cdf",6535:"0a3c5b36cedbad42",6740:"3da68f4ee0598a4c",6791:"a2d12bc765ad0f38",7206:"7bee36f3edc0de92",7342:"aca9f85bd8b36f70",7399:"ca55c5d89171edc4",7413:"c408e3fce0f80bcb",7521:"271194c07b172af4",7744:"d2559e00a1a30220",8087:"0edce32375cf0e7a",8119:"9ffc0aacc1ff49e5",8257:"dfb2744b2a28d4c5",8408:"57be46e07bc9aee6",8977:"8381cac06885ce77",9124:"cb3781f6e49426e4",9231:"924132e02f73d082",9919:"f97c6c2fdd203b90"}[e]+".js",c.miniCssF=e=>({2305:"css/portfolio",2540:"css/landing",3364:"css/admin",4370:"css/profile",6952:"css/appdark",8252:"css/app",8759:"css/spa"}[e]+".css"),c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},o="pixelfed:",c.l=(e,a,t,n)=>{if(r[e])r[e].push(a);else{var d,s;if(void 0!==t)for(var i=document.getElementsByTagName("script"),f=0;f{d.onerror=d.onload=null,clearTimeout(b);var t=r[e];if(delete r[e],d.parentNode&&d.parentNode.removeChild(d),t&&t.forEach(e=>e(a)),o)return o(a)},b=setTimeout(u.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=u.bind(null,d.onerror),d.onload=u.bind(null,d.onload),s&&document.head.appendChild(d)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={461:0,6952:0,8252:0,2305:0,3364:0,2540:0,4370:0,8759:0};c.f.j=(r,o)=>{var a=c.o(e,r)?e[r]:void 0;if(0!==a)if(a)o.push(a[2]);else if(/^((69|82)52|2305|2540|3364|4370|461|8759)$/.test(r))e[r]=0;else{var t=new Promise((o,t)=>a=e[r]=[o,t]);o.push(a[2]=t);var n=c.p+c.u(r),d=new Error;c.l(n,o=>{if(c.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var t=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;d.message="Loading chunk "+r+" failed.\n("+t+": "+n+")",d.name="ChunkLoadError",d.type=t,d.request=n,a[1](d)}},"chunk-"+r,r)}},c.O.j=r=>0===e[r];var r=(r,o)=>{var a,t,[n,d,s]=o,i=0;if(n.some(r=>0!==e[r])){for(a in d)c.o(d,a)&&(c.m[a]=d[a]);if(s)var f=s(c)}for(r&&r(o);i