=t.config.uploader.album_limit)swal("Error","You can only upload "+t.config.uploader.album_limit+" photos per album","error");else{var r=e.type,o=t.config.uploader.media_types.split(",");if(-1!=$.inArray(r,o)){var n=new FormData;n.append("file",e);var a={onUploadProgress:function(e){var i=Math.round(100*e.loaded/e.total);t.uploadProgress=i}};axios.post("/api/v1/media",n,a).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 photo?")){var e=this.media[this.carouselCursor].id;axios.delete("/api/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(){switch(this.composeState){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 t={media:this.media,caption:this.composeText,visibility:this.visibility,cw:this.nsfw};return void axios.post("/api/v2/status/compose",t).then(function(t){var e=t.data;window.location.href=e}).catch(function(t){swal("Oops, something went wrong!","An unexpected error occurred.","error")});case"delete":return this.mediaDrawer=!1,this.ids=[],this.media=[],this.carouselCursor=0,this.composeText="",this.composeTextLength=0,void $("#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(){$("#composeModal").modal("hide")}}},o=(i("jWd6"),i("KHd+")),n=Object(o.a)(r,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("input",{staticClass:"d-none file-input",attrs:{type:"file",name:"media",multiple:"",accept:t.config.uploader.media_types}}),t._v(" "),i("div",{staticClass:"timeline"},[i("div",{staticClass:"card status-card card-md-rounded-0"},[i("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[i("img",{staticClass:"box-shadow",staticStyle:{"border-radius":"32px"},attrs:{src:t.profile.avatar,width:"32px",height:"32px"}}),t._v(" "),i("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(" "),i("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[i("div",{staticClass:"dropdown"},[t._m(0),t._v(" "),i("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.media.length>0,expression:"media.length > 0"}],staticClass:"dropdown-item small font-weight-bold",on:{click:function(e){t.mediaDrawer=!t.mediaDrawer}}},[t._v(t._s(t.mediaDrawer?"Hide":"Show")+" Media Toolbar")]),t._v(" "),i("div",{staticClass:"dropdown-item small font-weight-bold",on:{click:t.about}},[t._v("About")]),t._v(" "),i("a",{staticClass:"dropdown-item small font-weight-bold",attrs:{href:"/i/compose"}},[t._v("Classic Compose UI")]),t._v(" "),i("div",{staticClass:"dropdown-divider"}),t._v(" "),i("div",{staticClass:"dropdown-item small font-weight-bold",on:{click:t.closeModal}},[t._v("Close")])])])])]),t._v(" "),i("div",{staticClass:"postPresenterContainer"},[t.uploading?i("div",[i("div",{staticClass:"w-100 h-100 bg-light py-5",staticStyle:{"border-bottom":"1px solid #f1f1f1"}},[i("div",{staticClass:"p-5"},[i("b-progress",{attrs:{value:t.uploadProgress,max:100,striped:"",animated:!0}}),t._v(" "),i("p",{staticClass:"text-center mb-0 font-weight-bold"},[t._v("Uploading ... ("+t._s(t.uploadProgress)+"%)")])],1)])]):i("div",[t.ids.length>0&&t.ids.length!=t.config.uploader.album_limit?i("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?i("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)}}},[i("p",{staticClass:"text-center mb-0 font-weight-bold p-5"},[t._v("Click here to add photos")])]):t._e(),t._v(" "),t.ids.length>0?i("div",[i("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(e,r){return t.ids.length>0?i("b-carousel-slide",{key:"preview_media_"+r},[i("div",{class:[t.media[r].filter_class?t.media[r].filter_class:""],staticStyle:{display:"flex","min-height":"320px","align-items":"center"},attrs:{slot:"img"},slot:"img"},[i("img",{staticClass:"d-block img-fluid w-100",attrs:{src:e.url,alt:e.description,title:e.description}})])]):t._e()}),1)],1):t._e(),t._v(" "),t.ids.length>0?i("div",{staticClass:"bg-dark align-items-center"},[i("ul",{staticClass:"nav media-drawer-filters text-center"},[i("li",{staticClass:"nav-item"},[i("div",{staticClass:"p-1 pt-3"},[i("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(" "),i("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(e,r){return i("li",{staticClass:"nav-item"},[i("div",{staticClass:"p-1 pt-3"},[i("div",{class:e[1],on:{click:function(i){return i.preventDefault(),t.toggleFilter(i,e[1])}}},[i("img",{attrs:{src:t.media[t.carouselCursor].url,width:"100px",height:"60px"}})])]),t._v(" "),i("a",{class:[t.media[t.carouselCursor].filter_class==e[1]?"nav-link text-white active":"nav-link text-muted"],attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),t.toggleFilter(i,e[1])}}},[t._v(t._s(e[0]))])])})],2)]):t._e()]),t._v(" "),t.mediaDrawer?i("div",{staticClass:"bg-lighter p-2 row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"form-group"},[i("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(" "),i("div",{staticClass:"form-group"},[i("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._v(" "),i("div",{staticClass:"col-12 text-right pt-2"},[i("button",{staticClass:"btn btn-outline-danger btn-sm font-weight-bold mr-1",on:{click:function(e){return t.deleteMedia()}}},[t._v("Delete Photo")]),t._v(" "),i("button",{staticClass:"btn btn-outline-secondary btn-sm font-weight-bold",on:{click:function(e){return t.updateMedia()}}},[t._v("Hide Media Toolbar")])])]):t._e()]),t._v(" "),i("div",{staticClass:"card-body p-0"},[i("div",{staticClass:"caption"},[i("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(" "),i("div",{staticClass:"card-footer"},[i("div",{staticClass:"d-flex justify-content-between align-items-center"},[i("div",[i("div",{staticClass:"custom-control custom-switch d-inline mr-3"},[i("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,r=e.target,o=!!r.checked;if(Array.isArray(i)){var n=t._i(i,null);r.checked?n<0&&(t.nsfw=i.concat([null])):n>-1&&(t.nsfw=i.slice(0,n).concat(i.slice(n+1)))}else t.nsfw=o}}}),t._v(" "),i("label",{staticClass:"custom-control-label small font-weight-bold text-muted pt-1",attrs:{for:"nsfwToggle"}},[t._v("NSFW")])]),t._v(" "),i("div",{staticClass:"dropdown d-inline"},[i("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(" "),i("div",{staticClass:"dropdown-menu",staticStyle:{width:"200px"},attrs:{"aria-labelledby":"visibility"}},[i("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(" "),i("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(" "),i("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(" "),i("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(" "),i("div",{staticClass:"pl-md-5"},[i("div",{staticClass:"btn-group"},[i("button",{staticClass:"btn btn-primary btn-sm font-weight-bold",attrs:{type:"button"},on:{click:function(e){return t.compose()}}},[t._v(t._s(t.composeState[0].toUpperCase()+t.composeState.slice(1)))]),t._v(" "),t._m(5),t._v(" "),i("div",{staticClass:"dropdown-menu dropdown-menu-right"},[i("a",{class:["publish"==t.composeState?"dropdown-item font-weight-bold active":"dropdown-item font-weight-bold "],attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.composeState="publish"}}},[t._v("Publish now")])])])])])]),t._v(" "),t._m(6)])])])},[function(){var t=this.$createElement,e=this._self._c||t;return e("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"}},[e("span",{staticClass:"fas fa-ellipsis-v fa-lg text-muted"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center mb-0 font-weight-bold text-white"},[e("i",{staticClass:"fas fa-plus mr-1"}),this._v(" Add Photo")])},function(){var t=this.$createElement,e=this._self._c||t;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"})]),this._v(" "),e("div",{staticClass:"col-12 col-sm-10 pl-2"},[e("p",{staticClass:"font-weight-bold mb-0"},[this._v("Public")]),this._v(" "),e("p",{staticClass:"small mb-0"},[this._v("Anyone can see")])])])},function(){var t=this.$createElement,e=this._self._c||t;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"})]),this._v(" "),e("div",{staticClass:"col-12 col-sm-10 pl-2"},[e("p",{staticClass:"font-weight-bold mb-0"},[this._v("Followers Only")]),this._v(" "),e("p",{staticClass:"small mb-0"},[this._v("Only followers can see")])])])},function(){var t=this.$createElement,e=this._self._c||t;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"})]),this._v(" "),e("div",{staticClass:"col-12 col-sm-10 pl-2"},[e("p",{staticClass:"font-weight-bold mb-0"},[this._v("Unlisted")]),this._v(" "),e("p",{staticClass:"small mb-0"},[this._v("Not listed on public timelines")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-primary btn-sm dropdown-toggle dropdown-toggle-split",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e("span",{staticClass:"sr-only"},[this._v("Toggle Dropdown")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-footer py-1"},[e("p",{staticClass:"text-center mb-0 font-weight-bold text-muted small"},[this._v("Having issues? You can also use the "),e("a",{attrs:{href:"/i/compose"}},[this._v("Classic Compose UI")]),this._v(".")])])}],!1,null,"6533954a",null);e.default=n.exports}});
\ No newline at end of file
diff --git a/public/js/profile.js b/public/js/profile.js
index 4d010790e..cea44b206 100644
--- a/public/js/profile.js
+++ b/public/js/profile.js
@@ -1 +1 @@
-!function(t){var e={};function s(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,s),o.l=!0,o.exports}s.m=t,s.c=e,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)s.d(i,o,function(e){return t[e]}.bind(null,o));return i},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/",s(s.s=4)}({"2Jpm":function(t,e,s){"use strict";s.r(e);var i={props:["status"]},o=s("KHd+"),a=Object(o.a)(i,function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("video",{staticClass:"video",attrs:{preload:"none",controls:"",loop:""}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])])]):s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("video",{staticClass:"video",attrs:{preload:"none",controls:"",loop:""}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},[],!1,null,null,null);e.default=a.exports},"2wtg":function(t,e,s){Vue.component("photo-presenter",s("d+I4").default),Vue.component("video-presenter",s("2Jpm").default),Vue.component("photo-album-presenter",s("Mrqh").default),Vue.component("video-album-presenter",s("9wGH").default),Vue.component("mixed-album-presenter",s("exej").default),Vue.component("post-menu",s("yric").default),Vue.component("profile",s("EHjT").default)},4:function(t,e,s){t.exports=s("2wtg")},"4khY":function(t,e,s){var i=s("V/1n");"string"==typeof i&&(i=[[t.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(i,o);i.locals&&(t.exports=i.locals)},"7EBT":function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.o-square[data-v-7d56cf21] {\n\tmax-width: 320px;\n}\n.o-portrait[data-v-7d56cf21] {\n\tmax-width: 320px;\n}\n.o-landscape[data-v-7d56cf21] {\n\tmax-width: 320px;\n}\n.post-icon[data-v-7d56cf21] {\n\tcolor: #fff;\n\tposition:relative;\n\tmargin-top: 10px;\n\tz-index: 9;\n\topacity: 0.6;\n\ttext-shadow: 3px 3px 16px #272634;\n}\n",""])},"9tPo":function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var s=e.protocol+"//"+e.host,i=s+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o,a=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(a)?t:(o=0===a.indexOf("//")?a:0===a.indexOf("/")?s+a:i+a.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},"9wGH":function(t,e,s){"use strict";s.r(e);var i={props:["status"]},o=s("KHd+"),a=Object(o.a)(i,function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)]):s("div",[s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)},[],!1,null,null,null);e.default=a.exports},"DE3+":function(t,e,s){var i=s("7EBT");"string"==typeof i&&(i=[[t.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(i,o);i.locals&&(t.exports=i.locals)},EHjT:function(t,e,s){"use strict";s.r(e);function i(t){return function(t){if(Array.isArray(t)){for(var e=0,s=new Array(t.length);e0&&void 0!==arguments[0]&&arguments[0];if(0!=$("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/mute",{type:"user",item:e}).then(function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully muted "+t.profile.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})}},unmuteProfile:function(){var t=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0!=$("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/unmute",{type:"user",item:e}).then(function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unmuted "+t.profile.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})}},blockProfile:function(){var t=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0!=$("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/block",{type:"user",item:e}).then(function(e){t.warning=!0,t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully blocked "+t.profile.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})}},unblockProfile:function(){var t=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0!=$("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/unblock",{type:"user",item:e}).then(function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unblocked "+t.profile.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})}},deletePost:function(t,e){var s=this;0!=$("body").hasClass("loggedIn")&&t.account.id===this.profile.id&&axios.post("/i/delete",{type:"status",item:t.id}).then(function(t){s.timeline.splice(e,1),swal("Success","You have successfully deleted this post","success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},commentSubmit:function(t,e){var s=this;if(0!=$("body").hasClass("loggedIn")){var i=t.id,o=e.target,a=$(o).find('input[name="comment"]'),n=a.val(),r=o.parentElement.parentElement.getElementsByClassName("comments")[0];axios.post("/i/comment",{item:i,comment:n}).then(function(t){a.val(""),a.blur();var e=document.createElement("a");e.classList.add("font-weight-bold"),e.classList.add("text-dark"),e.classList.add("mr-2"),e.setAttribute("href",s.user.url),e.textContent=s.user.username;var i=document.createElement("span");i.innerHTML=n;var o=document.createElement("p");o.classList.add("read-more"),o.classList.add("mb-0"),o.appendChild(e),o.appendChild(i),r.insertBefore(o,r.firstChild)})}},statusModal:function(t){this.modalStatus=t,this.$refs.statusModalRef.show()},masonryOrientation:function(t){var e=t.media_attachments[0].orientation;return e||(e="square"),e},followProfile:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/follow",{item:this.profileId}).then(function(e){t.$refs.visitorContextMenu.hide(),t.relationship.following?(t.profile.followers_count--,1==t.profile.locked&&(window.location.href="/")):t.profile.followers_count++,t.relationship.following=!t.relationship.following})},followingModal:function(){var t=this;0!=$("body").hasClass("loggedIn")?0!=this.profileSettings.following.list&&(this.following.length>0?this.$refs.followingModal.show():(axios.get("/api/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor}}).then(function(e){t.following=e.data,t.followingCursor++,e.data.length<10&&(t.followingMore=!1)}),this.$refs.followingModal.show())):window.location.href=encodeURI("/login?next=/"+this.profile.username+"/")},followersModal:function(){var t=this;0!=$("body").hasClass("loggedIn")?0!=this.profileSettings.followers.list&&(this.followers.length>0?this.$refs.followerModal.show():(axios.get("/api/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then(function(e){t.followers=e.data,t.followerCursor++,e.data.length<10&&(t.followerMore=!1)}),this.$refs.followerModal.show())):window.location.href=encodeURI("/login?next=/"+this.profile.username+"/")},followingLoadMore:function(){var t=this;0!=$("body").hasClass("loggedIn")?axios.get("/api/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor}}).then(function(e){var s;e.data.length>0&&((s=t.following).push.apply(s,i(e.data)),t.followingCursor++);e.data.length<10&&(t.followingMore=!1)}):window.location.href=encodeURI("/login?next=/"+this.profile.username+"/")},followersLoadMore:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.get("/api/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then(function(e){var s;e.data.length>0&&((s=t.followers).push.apply(s,i(e.data)),t.followerCursor++);e.data.length<10&&(t.followerMore=!1)})},visitorMenu:function(){0!=$("body").hasClass("loggedIn")&&this.$refs.visitorContextMenu.show()},followModalAction:function(t,e){var s=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"following";axios.post("/i/follow",{item:t}).then(function(t){"following"==i&&(s.following.splice(e,1),s.profile.following_count--)})}}},a=(s("pA1R"),s("KHd+")),n=Object(a.a)(o,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-100 h-100"},[t.relationship&&t.relationship.blocking&&t.warning?s("div",{staticClass:"bg-white pt-3 border-bottom"},[s("div",{staticClass:"container"},[s("p",{staticClass:"text-center font-weight-bold"},[t._v("You are blocking this account")]),t._v(" "),s("p",{staticClass:"text-center font-weight-bold"},[t._v("Click "),s("a",{staticClass:"cursor-pointer",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.warning=!1}}},[t._v("here")]),t._v(" to view profile")])])]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[s("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]):t._e(),t._v(" "),t.loading||t.warning?t._e():s("div",["metro"==t.profileLayout?s("div",[s("div",{staticClass:"bg-white py-5 border-bottom"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-md-4 d-flex"},[s("div",{staticClass:"profile-avatar mx-md-auto"},[s("div",{staticClass:"d-block d-md-none"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-5"},[s("img",{staticClass:"rounded-circle box-shadow mr-5",attrs:{src:t.profile.avatar,width:"77px",height:"77px"}})]),t._v(" "),s("div",{staticClass:"col-7 pl-2"},[s("p",{staticClass:"align-middle"},[s("span",{staticClass:"font-weight-ultralight h3 mb-0"},[t._v(t._s(t.profile.username))]),t._v(" "),!t.loading&&t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?s("span",{staticClass:"float-right mb-0"},[s("a",{staticClass:"fas fa-cog fa-lg text-muted text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.visitorMenu(e)}}})]):t._e()]),t._v(" "),!t.loading&&t.profile.id==t.user.id&&t.user.hasOwnProperty("id")?s("p",[s("a",{staticClass:"btn btn-outline-dark py-0 px-4 mt-3",attrs:{href:"/settings/home"}},[t._v("Edit Profile")])]):t._e(),t._v(" "),t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?s("div",[1==t.relationship.following?s("p",{staticClass:"mt-3 mb-0"},[s("button",{staticClass:"btn btn-outline-dark font-weight-bold px-4 py-0",attrs:{type:"button","data-toggle":"tooltip",title:"Unfollow"},on:{click:function(e){return t.followProfile()}}},[t._v("Unfollow")])]):t._e(),t._v(" "),t.relationship.following?t._e():s("p",{staticClass:"mt-3 mb-0"},[s("button",{staticClass:"btn btn-outline-dark font-weight-bold px-4 py-0",attrs:{type:"button","data-toggle":"tooltip",title:"Follow"},on:{click:function(e){return t.followProfile()}}},[t._v("Follow")])])]):t._e()])])]),t._v(" "),s("div",{staticClass:"d-none d-md-block"},[s("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.profile.avatar,width:"172px",height:"172px"}})])])]),t._v(" "),s("div",{staticClass:"col-12 col-md-8 d-flex align-items-center"},[s("div",{staticClass:"profile-details"},[s("div",{staticClass:"d-none d-md-flex username-bar pb-2 align-items-center"},[s("span",{staticClass:"font-weight-ultralight h3"},[t._v(t._s(t.profile.username))]),t._v(" "),t.profile.is_admin?s("span",{staticClass:"pl-4"},[s("span",{staticClass:"btn btn-outline-secondary font-weight-bold py-0"},[t._v("ADMIN")])]):t._e(),t._v(" "),s("span",{staticClass:"pl-4"},[s("a",{staticClass:"fas fa-rss fa-lg text-muted text-decoration-none",attrs:{href:"/users/"+t.profile.username+".atom"}})]),t._v(" "),t.owner&&t.user.hasOwnProperty("id")?s("span",{staticClass:"pl-4"},[s("a",{staticClass:"fas fa-cog fa-lg text-muted text-decoration-none",attrs:{href:"/settings/home"}})]):t._e(),t._v(" "),!t.owner&&t.user.hasOwnProperty("id")?s("span",{staticClass:"pl-4"},[s("a",{staticClass:"fas fa-cog fa-lg text-muted text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.visitorMenu(e)}}})]):t._e(),t._v(" "),t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?s("span",[1==t.relationship.following?s("span",{staticClass:"pl-4"},[s("button",{staticClass:"btn btn-outline-secondary font-weight-bold btn-sm",attrs:{type:"button","data-toggle":"tooltip",title:"Unfollow"},on:{click:function(e){return t.followProfile()}}},[s("i",{staticClass:"fas fa-user-minus"})])]):t._e(),t._v(" "),t.relationship.following?t._e():s("span",{staticClass:"pl-4"},[s("button",{staticClass:"btn btn-primary font-weight-bold btn-sm",attrs:{type:"button","data-toggle":"tooltip",title:"Follow"},on:{click:function(e){return t.followProfile()}}},[s("i",{staticClass:"fas fa-user-plus"})])])]):t._e()]),t._v(" "),s("div",{staticClass:"d-none d-md-inline-flex profile-stats pb-3 lead"},[s("div",{staticClass:"font-weight-light pr-5"},[s("a",{staticClass:"text-dark",attrs:{href:t.profile.url}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.statuses_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\t\tPosts\n\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),t.profileSettings.followers.count?s("div",{staticClass:"font-weight-light pr-5"},[s("a",{staticClass:"text-dark cursor-pointer",on:{click:function(e){return t.followersModal()}}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.followers_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\t\tFollowers\n\t\t\t\t\t\t\t\t\t\t")])]):t._e(),t._v(" "),t.profileSettings.following.count?s("div",{staticClass:"font-weight-light"},[s("a",{staticClass:"text-dark cursor-pointer",on:{click:function(e){return t.followingModal()}}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.following_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\t\tFollowing\n\t\t\t\t\t\t\t\t\t\t")])]):t._e()]),t._v(" "),s("p",{staticClass:"lead mb-0 d-flex align-items-center pt-3"},[s("span",{staticClass:"font-weight-bold pr-3"},[t._v(t._s(t.profile.display_name))])]),t._v(" "),t.profile.note?s("div",{staticClass:"mb-0 lead",domProps:{innerHTML:t._s(t.profile.note)}}):t._e(),t._v(" "),t.profile.website?s("p",{staticClass:"mb-0"},[s("a",{staticClass:"font-weight-bold",attrs:{href:t.profile.website,rel:"me external nofollow noopener",target:"_blank"}},[t._v(t._s(t.profile.website))])]):t._e()])])])])]),t._v(" "),s("div",{staticClass:"d-block d-md-none bg-white my-0 py-2 border-bottom"},[s("ul",{staticClass:"nav d-flex justify-content-center"},[s("li",{staticClass:"nav-item"},[s("div",{staticClass:"font-weight-light"},[s("span",{staticClass:"text-dark text-center"},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.profile.statuses_count))]),t._v(" "),s("p",{staticClass:"text-muted mb-0"},[t._v("Posts")])])])]),t._v(" "),s("li",{staticClass:"nav-item px-5"},[t.profileSettings.followers.count?s("div",{staticClass:"font-weight-light"},[s("a",{staticClass:"text-dark cursor-pointer text-center",on:{click:function(e){return t.followersModal()}}},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.profile.followers_count))]),t._v(" "),s("p",{staticClass:"text-muted mb-0"},[t._v("Followers")])])]):t._e()]),t._v(" "),s("li",{staticClass:"nav-item"},[t.profileSettings.following.count?s("div",{staticClass:"font-weight-light"},[s("a",{staticClass:"text-dark cursor-pointer text-center",on:{click:function(e){return t.followingModal()}}},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.profile.following_count))]),t._v(" "),s("p",{staticClass:"text-muted mb-0"},[t._v("Following")])])]):t._e()])])]),t._v(" "),s("div",{staticClass:"bg-white"},[s("ul",{staticClass:"nav nav-topbar d-flex justify-content-center border-0"},[s("li",{staticClass:"nav-item"},[s("a",{class:"grid"==this.mode?"nav-link font-weight-bold text-uppercase text-primary":"nav-link font-weight-bold text-uppercase",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("grid")}}},[s("i",{staticClass:"fas fa-th fa-lg"})])]),t._v(" "),s("li",{staticClass:"nav-item px-3"},[s("a",{class:"list"==this.mode?"nav-link font-weight-bold text-uppercase text-primary":"nav-link font-weight-bold text-uppercase",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("list")}}},[s("i",{staticClass:"fas fa-th-list fa-lg"})])]),t._v(" "),t.owner?s("li",{staticClass:"nav-item"},[s("a",{staticClass:"nav-link font-weight-bold text-uppercase",attrs:{href:t.profile.url+"/saved"}},[t._v("Saved")])]):t._e()])]),t._v(" "),s("div",{staticClass:"container"},[s("div",{staticClass:"profile-timeline mt-md-4"},["grid"==t.mode?s("div",{staticClass:"row"},t._l(t.timeline,function(e,i){return s("div",{staticClass:"col-4 p-0 p-sm-2 p-md-3 p-xs-1"},[s("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:e.url}},[s("div",{staticClass:"square"},["photo:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),s("div",{staticClass:"square-content",style:t.previewBackground(e)}),t._v(" "),s("div",{staticClass:"info-overlay-text"},[s("h5",{staticClass:"text-white m-auto font-weight-bold"},[s("span",[s("span",{staticClass:"far fa-heart fa-lg p-2 d-flex-inline"}),t._v(" "),s("span",{staticClass:"d-flex-inline"},[t._v(t._s(e.favourites_count))])]),t._v(" "),s("span",[s("span",{staticClass:"fas fa-retweet fa-lg p-2 d-flex-inline"}),t._v(" "),s("span",{staticClass:"d-flex-inline"},[t._v(t._s(e.reblogs_count))])])])])])])])}),0):t._e(),t._v(" "),"list"==t.mode?s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-8 col-lg-8 offset-md-2 px-0 mb-3 timeline"},t._l(t.timeline,function(e,i){return s("div",{key:e.id,staticClass:"card status-card card-md-rounded-0 my-sm-2 my-md-3 my-lg-4",attrs:{"data-status-id":e.id}},[s("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[s("img",{staticStyle:{"border-radius":"32px"},attrs:{src:e.account.avatar,width:"32px",height:"32px"}}),t._v(" "),s("a",{staticClass:"username font-weight-bold pl-2 text-dark",attrs:{href:e.account.url}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.account.username)+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),t.user.hasOwnProperty("id")?s("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("div",{staticClass:"dropdown"},[t._m(0,!0),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:e.url}},[t._v("Go to post")]),t._v(" "),e.account.id!=t.user.id?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl(e)}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.muteProfile(e)}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.blockProfile(e)}}},[t._v("Block Profile")])]):t._e(),t._v(" "),e.account.id==t.user.id||1==t.user.is_admin?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.editUrl(e)}},[t._v("Edit")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:function(s){return t.deletePost(e)}}},[t._v("Delete")])]):t._e()])])]):t._e()]),t._v(" "),s("div",{staticClass:"postPresenterContainer"},["photo"===e.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:e}})],1):"video"===e.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:e}})],1):"photo:album"===e.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:e}})],1):"video:album"===e.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:e}})],1):"photo:video:album"===e.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:e}})],1):s("div",{staticClass:"w-100"},[s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])]),t._v(" "),s("div",{staticClass:"card-body"},[t.user.hasOwnProperty("id")?s("div",{staticClass:"reactions my-1"},[s("h3",{class:[e.favourited?"fas fa-heart text-danger pr-3 m-0 cursor-pointer":"far fa-heart pr-3 m-0 like-btn cursor-pointer"],attrs:{title:"Like"},on:{click:function(s){return t.likeStatus(e,s)}}}),t._v(" "),s("h3",{staticClass:"far fa-comment pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(s){return t.commentFocus(e,s)}}}),t._v(" "),s("h3",{class:[e.reblogged?"far fa-share-square pr-3 m-0 text-primary cursor-pointer":"far fa-share-square pr-3 m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:function(s){return t.shareStatus(e,s)}}})]):t._e(),t._v(" "),s("div",{staticClass:"likes font-weight-bold"},[s("span",{staticClass:"like-count"},[t._v(t._s(e.favourites_count))]),t._v(" "+t._s(1==e.favourites_count?"like":"likes")+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"caption"},[s("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"username font-weight-bold"},[s("bdi",[s("a",{staticClass:"text-dark",attrs:{href:e.account.url}},[t._v(t._s(e.account.username))])])]),t._v(" "),s("span",{domProps:{innerHTML:t._s(e.content)}})])]),t._v(" "),s("div",{staticClass:"comments"}),t._v(" "),s("div",{staticClass:"timestamp pt-1"},[s("p",{staticClass:"small text-uppercase mb-0"},[s("a",{staticClass:"text-muted",attrs:{href:e.url}},[s("timeago",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],attrs:{datetime:e.created_at,"auto-update":60,"converter-options":{includeSeconds:!0},title:t.timestampFormat(e.created_at)}})],1)])])]),t._v(" "),s("div",{staticClass:"card-footer bg-white d-none"},[s("form",{on:{submit:function(s){return s.preventDefault(),t.commentSubmit(e,s)}}},[s("input",{attrs:{type:"hidden",name:"item",value:""}}),t._v(" "),s("input",{staticClass:"form-control status-reply-input",attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off"}})])])])}),0)]):t._e(),t._v(" "),"masonry"==t.mode?s("div",{staticClass:"masonry-grid"},t._l(t.timeline,function(e,i){return s("div",{staticClass:"d-inline p-0 p-sm-2 p-md-3 masonry-item"},[s("a",{attrs:{href:e.url},on:{click:function(s){return s.preventDefault(),t.statusModal(e)}}},[s("img",{class:"o-"+t.masonryOrientation(e),attrs:{src:t.previewUrl(e)}})])])}),0):t._e(),t._v(" "),t.timeline.length?s("div",[s("infinite-loading",{on:{infinite:t.infiniteTimeline}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()])])]):t._e(),t._v(" "),"moment"==t.profileLayout?s("div",[s("div",{staticClass:"w-100 h-100 mt-n3 bg-pixelfed",staticStyle:{width:"100%","min-height":"274px"}}),t._v(" "),s("div",{staticClass:"bg-white border-bottom"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 row mx-0"},[s("div",{staticClass:"col-4"}),t._v(" "),s("div",{staticClass:"col-4 text-center"},[s("div",{staticClass:"d-block d-md-none"},[s("img",{staticClass:"rounded-circle box-shadow",staticStyle:{"margin-top":"-60px",border:"5px solid #fff"},attrs:{src:t.profile.avatar,width:"110px",height:"110px"}})]),t._v(" "),s("div",{staticClass:"d-none d-md-block"},[s("img",{staticClass:"rounded-circle box-shadow",staticStyle:{"margin-top":"-90px",border:"5px solid #fff"},attrs:{src:t.profile.avatar,width:"172px",height:"172px"}})])]),t._v(" "),s("div",{staticClass:"col-4 text-right mt-2"},[s("span",{staticClass:"d-none d-md-inline-block pl-4"},[s("a",{staticClass:"fas fa-rss fa-lg text-muted text-decoration-none",attrs:{href:"/users/"+t.profile.username+".atom"}})]),t._v(" "),t.owner?s("span",{staticClass:"pl-md-4 pl-sm-2"},[s("a",{staticClass:"fas fa-cog fa-lg text-muted text-decoration-none",attrs:{href:"/settings/home"}})]):t._e(),t._v(" "),t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?s("span",{staticClass:"pl-md-4 pl-sm-2"},[s("a",{staticClass:"fas fa-cog fa-lg text-muted text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.visitorMenu(e)}}})]):t._e(),t._v(" "),t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?s("span",[1==t.relationship.following?s("span",{staticClass:"pl-md-4 pl-sm-2"},[s("button",{staticClass:"btn btn-outline-secondary font-weight-bold btn-sm",attrs:{type:"button","data-toggle":"tooltip",title:"Unfollow"},on:{click:function(e){return e.preventDefault(),t.followProfile()}}},[t._v("Unfollow")])]):s("span",{staticClass:"pl-md-4 pl-sm-2"},[s("button",{staticClass:"btn btn-primary font-weight-bold btn-sm",attrs:{type:"button","data-toggle":"tooltip",title:"Follow"},on:{click:function(e){return e.preventDefault(),t.followProfile()}}},[t._v("Follow")])])]):t._e()])]),t._v(" "),s("div",{staticClass:"col-12 text-center"},[s("div",{staticClass:"profile-details my-3"},[s("p",{staticClass:"font-weight-ultralight h2 text-center"},[t._v(t._s(t.profile.username))]),t._v(" "),t.profile.note?s("div",{staticClass:"text-center text-muted p-3",domProps:{innerHTML:t._s(t.profile.note)}}):t._e(),t._v(" "),s("div",{staticClass:"pb-3 text-muted text-center"},[s("a",{staticClass:"text-lighter",attrs:{href:t.profile.url}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.statuses_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\tPosts\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),t.profileSettings.followers.count?s("a",{staticClass:"text-lighter cursor-pointer px-3",on:{click:function(e){return t.followersModal()}}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.followers_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\tFollowers\n\t\t\t\t\t\t\t\t\t")]):t._e(),t._v(" "),t.profileSettings.following.count?s("a",{staticClass:"text-lighter cursor-pointer",on:{click:function(e){return t.followingModal()}}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.following_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\tFollowing\n\t\t\t\t\t\t\t\t\t")]):t._e()])])])])])]),t._v(" "),s("div",{staticClass:"container-fluid"},[s("div",{staticClass:"profile-timeline mt-md-4"},["grid"==t.mode?s("div",{staticClass:"card-columns"},t._l(t.timeline,function(e,i){return s("div",{staticClass:"p-sm-2 p-md-3"},[s("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:e.url}},[s("img",{staticClass:"img-fluid w-100",attrs:{src:t.previewUrl(e)}})])])}),0):t._e(),t._v(" "),t.timeline.length?s("div",[s("infinite-loading",{on:{infinite:t.infiniteTimeline}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()])])]):t._e()]),t._v(" "),s("b-modal",{ref:"followingModal",attrs:{id:"following-modal","hide-footer":"",centered:"",title:"Following","body-class":"list-group-flush p-0"}},[s("div",{staticClass:"list-group"},[t._l(t.following,function(e,i){return s("div",{key:"following_"+i,staticClass:"list-group-item border-0"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",loading:"lazy"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n "+t._s(e.username)+"\n ")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])]),t._v(" "),t.owner?s("div",[s("a",{staticClass:"btn btn-outline-secondary btn-sm",attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.followModalAction(e.id,i,"following")}}},[t._v("Unfollow")])]):t._e()])])}),t._v(" "),0==t.following.length?s("div",{staticClass:"list-group-item border-0"},[s("div",{staticClass:"list-group-item border-0"},[s("p",{staticClass:"p-3 text-center mb-0 lead"},[t._v("You are not following anyone.")])])]):t._e(),t._v(" "),t.followingMore?s("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followingLoadMore()}}},[s("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2)]),t._v(" "),s("b-modal",{ref:"followerModal",attrs:{id:"follower-modal","hide-footer":"",centered:"",title:"Followers","body-class":"list-group-flush p-0"}},[s("div",{staticClass:"list-group"},[t._l(t.followers,function(e,i){return s("div",{key:"follower_"+i,staticClass:"list-group-item border-0"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",loading:"lazy"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n "+t._s(e.username)+"\n ")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])])])])}),t._v(" "),t.followerMore?s("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followersLoadMore()}}},[s("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2)]),t._v(" "),s("b-modal",{ref:"visitorContextMenu",attrs:{id:"visitor-context-menu","hide-footer":"","hide-header":"",centered:"",size:"sm","body-class":"list-group-flush p-0"}},[t.relationship?s("div",{staticClass:"list-group"},[t.owner||t.relationship.following?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded text-primary",on:{click:t.followProfile}},[t._v("\n \tFollow\n ")]),t._v(" "),!t.owner&&t.relationship.following?s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded",on:{click:t.followProfile}},[t._v("\n \tUnfollow\n ")]):t._e(),t._v(" "),t.owner||t.relationship.muting?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded",on:{click:t.muteProfile}},[t._v("\n \tMute\n ")]),t._v(" "),!t.owner&&t.relationship.muting?s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded",on:{click:t.unmuteProfile}},[t._v("\n \tUnmute\n ")]):t._e(),t._v(" "),t.owner?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded text-danger",on:{click:t.reportProfile}},[t._v("\n \tReport User\n ")]),t._v(" "),t.owner||t.relationship.blocking?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded text-danger",on:{click:t.blockProfile}},[t._v("\n \tBlock\n ")]),t._v(" "),!t.owner&&t.relationship.blocking?s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded text-danger",on:{click:t.unblockProfile}},[t._v("\n \tUnblock\n ")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded text-muted",on:{click:function(e){return t.$refs.visitorContextMenu.hide()}}},[t._v("\n \tClose\n ")])]):t._e()])],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("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"}},[e("span",{staticClass:"fas fa-ellipsis-v fa-lg text-muted"})])}],!1,null,"7d56cf21",null);e.default=n.exports},Ht21:function(t,e,s){"use strict";var i=s("IJk2");s.n(i).a},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var s=function(t,e){var s=t[1]||"",i=t[3];if(!i)return s;if(e&&"function"==typeof btoa){var o=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[s].concat(a).concat([o]).join("\n")}var n;return[s].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+s+"}":s}).join("")},e.i=function(t,s){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},o=0;o=0&&d.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=function(){0;return s.nc}();i&&(t.attrs.nonce=i)}return g(e,t.attrs),m(t,e),e}function g(t,e){Object.keys(e).forEach(function(s){t.setAttribute(s,e[s])})}function _(t,e){var s,i,o,a;if(e.transform&&t.css){if(!(a="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=a}if(e.singleton){var n=c++;s=l||(l=v(e)),i=C.bind(null,s,n,!1),o=C.bind(null,s,n,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(s=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),m(t,e),e}(e),i=function(t,e,s){var i=s.css,o=s.sourceMap,a=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||a)&&(i=u(i));o&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var n=new Blob([i],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(n),r&&URL.revokeObjectURL(r)}.bind(null,s,e),o=function(){h(s),s.href&&URL.revokeObjectURL(s.href)}):(s=v(e),i=function(t,e){var s=e.css,i=e.media;i&&t.setAttribute("media",i);if(t.styleSheet)t.styleSheet.cssText=s;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(s))}}.bind(null,s),o=function(){h(s)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=n()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var s=p(t,e);return f(s,e),function(t){for(var i=[],o=0;o0&&void 0!==arguments[0]&&arguments[0];if(0!=$("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/mute",{type:"user",item:e}).then(function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully muted "+t.profile.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})}},unmuteProfile:function(){var t=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0!=$("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/unmute",{type:"user",item:e}).then(function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unmuted "+t.profile.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})}},blockProfile:function(){var t=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0!=$("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/block",{type:"user",item:e}).then(function(e){t.warning=!0,t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully blocked "+t.profile.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})}},unblockProfile:function(){var t=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0!=$("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/unblock",{type:"user",item:e}).then(function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unblocked "+t.profile.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})}},deletePost:function(t,e){var s=this;0!=$("body").hasClass("loggedIn")&&t.account.id===this.profile.id&&axios.post("/i/delete",{type:"status",item:t.id}).then(function(t){s.timeline.splice(e,1),swal("Success","You have successfully deleted this post","success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},commentSubmit:function(t,e){var s=this;if(0!=$("body").hasClass("loggedIn")){var i=t.id,o=e.target,a=$(o).find('input[name="comment"]'),n=a.val(),r=o.parentElement.parentElement.getElementsByClassName("comments")[0];axios.post("/i/comment",{item:i,comment:n}).then(function(t){a.val(""),a.blur();var e=document.createElement("a");e.classList.add("font-weight-bold"),e.classList.add("text-dark"),e.classList.add("mr-2"),e.setAttribute("href",s.user.url),e.textContent=s.user.username;var i=document.createElement("span");i.innerHTML=n;var o=document.createElement("p");o.classList.add("read-more"),o.classList.add("mb-0"),o.appendChild(e),o.appendChild(i),r.insertBefore(o,r.firstChild)})}},statusModal:function(t){this.modalStatus=t,this.$refs.statusModalRef.show()},masonryOrientation:function(t){var e=t.media_attachments[0].orientation;return e||(e="square"),e},followProfile:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/follow",{item:this.profileId}).then(function(e){t.$refs.visitorContextMenu.hide(),t.relationship.following?(t.profile.followers_count--,1==t.profile.locked&&(window.location.href="/")):t.profile.followers_count++,t.relationship.following=!t.relationship.following})},followingModal:function(){var t=this;0!=$("body").hasClass("loggedIn")?0!=this.profileSettings.following.list&&(this.following.length>0?this.$refs.followingModal.show():(axios.get("/api/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor}}).then(function(e){t.following=e.data,t.followingCursor++,e.data.length<10&&(t.followingMore=!1)}),this.$refs.followingModal.show())):window.location.href=encodeURI("/login?next=/"+this.profile.username+"/")},followersModal:function(){var t=this;0!=$("body").hasClass("loggedIn")?0!=this.profileSettings.followers.list&&(this.followers.length>0?this.$refs.followerModal.show():(axios.get("/api/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then(function(e){t.followers=e.data,t.followerCursor++,e.data.length<10&&(t.followerMore=!1)}),this.$refs.followerModal.show())):window.location.href=encodeURI("/login?next=/"+this.profile.username+"/")},followingLoadMore:function(){var t=this;0!=$("body").hasClass("loggedIn")?axios.get("/api/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor}}).then(function(e){var s;e.data.length>0&&((s=t.following).push.apply(s,i(e.data)),t.followingCursor++);e.data.length<10&&(t.followingMore=!1)}):window.location.href=encodeURI("/login?next=/"+this.profile.username+"/")},followersLoadMore:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.get("/api/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then(function(e){var s;e.data.length>0&&((s=t.followers).push.apply(s,i(e.data)),t.followerCursor++);e.data.length<10&&(t.followerMore=!1)})},visitorMenu:function(){0!=$("body").hasClass("loggedIn")&&this.$refs.visitorContextMenu.show()},followModalAction:function(t,e){var s=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"following";axios.post("/i/follow",{item:t}).then(function(t){"following"==i&&(s.following.splice(e,1),s.profile.following_count--)})},momentBackground:function(){var t="w-100 h-100 mt-n3 ";return this.profile.header_bg?t+="default"==this.profile.header_bg?"bg-pixelfed":"bg-moment-"+this.profile.header_bg:t+="bg-pixelfed",t}}},a=(s("c8MF"),s("KHd+")),n=Object(a.a)(o,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-100 h-100"},[t.relationship&&t.relationship.blocking&&t.warning?s("div",{staticClass:"bg-white pt-3 border-bottom"},[s("div",{staticClass:"container"},[s("p",{staticClass:"text-center font-weight-bold"},[t._v("You are blocking this account")]),t._v(" "),s("p",{staticClass:"text-center font-weight-bold"},[t._v("Click "),s("a",{staticClass:"cursor-pointer",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.warning=!1}}},[t._v("here")]),t._v(" to view profile")])])]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[s("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]):t._e(),t._v(" "),t.loading||t.warning?t._e():s("div",["metro"==t.profileLayout?s("div",[s("div",{staticClass:"bg-white py-5 border-bottom"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-md-4 d-flex"},[s("div",{staticClass:"profile-avatar mx-md-auto"},[s("div",{staticClass:"d-block d-md-none"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-5"},[s("img",{staticClass:"rounded-circle box-shadow mr-5",attrs:{src:t.profile.avatar,width:"77px",height:"77px"}})]),t._v(" "),s("div",{staticClass:"col-7 pl-2"},[s("p",{staticClass:"align-middle"},[s("span",{staticClass:"font-weight-ultralight h3 mb-0"},[t._v(t._s(t.profile.username))]),t._v(" "),!t.loading&&t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?s("span",{staticClass:"float-right mb-0"},[s("a",{staticClass:"fas fa-cog fa-lg text-muted text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.visitorMenu(e)}}})]):t._e()]),t._v(" "),!t.loading&&t.profile.id==t.user.id&&t.user.hasOwnProperty("id")?s("p",[s("a",{staticClass:"btn btn-outline-dark py-0 px-4 mt-3",attrs:{href:"/settings/home"}},[t._v("Edit Profile")])]):t._e(),t._v(" "),t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?s("div",[1==t.relationship.following?s("p",{staticClass:"mt-3 mb-0"},[s("button",{staticClass:"btn btn-outline-dark font-weight-bold px-4 py-0",attrs:{type:"button","data-toggle":"tooltip",title:"Unfollow"},on:{click:function(e){return t.followProfile()}}},[t._v("Unfollow")])]):t._e(),t._v(" "),t.relationship.following?t._e():s("p",{staticClass:"mt-3 mb-0"},[s("button",{staticClass:"btn btn-outline-dark font-weight-bold px-4 py-0",attrs:{type:"button","data-toggle":"tooltip",title:"Follow"},on:{click:function(e){return t.followProfile()}}},[t._v("Follow")])])]):t._e()])])]),t._v(" "),s("div",{staticClass:"d-none d-md-block"},[s("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.profile.avatar,width:"172px",height:"172px"}})])])]),t._v(" "),s("div",{staticClass:"col-12 col-md-8 d-flex align-items-center"},[s("div",{staticClass:"profile-details"},[s("div",{staticClass:"d-none d-md-flex username-bar pb-2 align-items-center"},[s("span",{staticClass:"font-weight-ultralight h3"},[t._v(t._s(t.profile.username))]),t._v(" "),t.profile.is_admin?s("span",{staticClass:"pl-4"},[s("span",{staticClass:"btn btn-outline-secondary font-weight-bold py-0"},[t._v("ADMIN")])]):t._e(),t._v(" "),s("span",{staticClass:"pl-4"},[s("a",{staticClass:"fas fa-rss fa-lg text-muted text-decoration-none",attrs:{href:"/users/"+t.profile.username+".atom"}})]),t._v(" "),t.owner&&t.user.hasOwnProperty("id")?s("span",{staticClass:"pl-4"},[s("a",{staticClass:"fas fa-cog fa-lg text-muted text-decoration-none",attrs:{href:"/settings/home"}})]):t._e(),t._v(" "),!t.owner&&t.user.hasOwnProperty("id")?s("span",{staticClass:"pl-4"},[s("a",{staticClass:"fas fa-cog fa-lg text-muted text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.visitorMenu(e)}}})]):t._e(),t._v(" "),t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?s("span",[1==t.relationship.following?s("span",{staticClass:"pl-4"},[s("button",{staticClass:"btn btn-outline-secondary font-weight-bold btn-sm",attrs:{type:"button","data-toggle":"tooltip",title:"Unfollow"},on:{click:function(e){return t.followProfile()}}},[s("i",{staticClass:"fas fa-user-minus"})])]):t._e(),t._v(" "),t.relationship.following?t._e():s("span",{staticClass:"pl-4"},[s("button",{staticClass:"btn btn-primary font-weight-bold btn-sm",attrs:{type:"button","data-toggle":"tooltip",title:"Follow"},on:{click:function(e){return t.followProfile()}}},[s("i",{staticClass:"fas fa-user-plus"})])])]):t._e()]),t._v(" "),s("div",{staticClass:"d-none d-md-inline-flex profile-stats pb-3 lead"},[s("div",{staticClass:"font-weight-light pr-5"},[s("a",{staticClass:"text-dark",attrs:{href:t.profile.url}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.statuses_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\t\tPosts\n\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),t.profileSettings.followers.count?s("div",{staticClass:"font-weight-light pr-5"},[s("a",{staticClass:"text-dark cursor-pointer",on:{click:function(e){return t.followersModal()}}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.followers_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\t\tFollowers\n\t\t\t\t\t\t\t\t\t\t")])]):t._e(),t._v(" "),t.profileSettings.following.count?s("div",{staticClass:"font-weight-light"},[s("a",{staticClass:"text-dark cursor-pointer",on:{click:function(e){return t.followingModal()}}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.following_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\t\tFollowing\n\t\t\t\t\t\t\t\t\t\t")])]):t._e()]),t._v(" "),s("p",{staticClass:"lead mb-0 d-flex align-items-center pt-3"},[s("span",{staticClass:"font-weight-bold pr-3"},[t._v(t._s(t.profile.display_name))])]),t._v(" "),t.profile.note?s("div",{staticClass:"mb-0 lead",domProps:{innerHTML:t._s(t.profile.note)}}):t._e(),t._v(" "),t.profile.website?s("p",{staticClass:"mb-0"},[s("a",{staticClass:"font-weight-bold",attrs:{href:t.profile.website,rel:"me external nofollow noopener",target:"_blank"}},[t._v(t._s(t.profile.website))])]):t._e()])])])])]),t._v(" "),s("div",{staticClass:"d-block d-md-none bg-white my-0 py-2 border-bottom"},[s("ul",{staticClass:"nav d-flex justify-content-center"},[s("li",{staticClass:"nav-item"},[s("div",{staticClass:"font-weight-light"},[s("span",{staticClass:"text-dark text-center"},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.profile.statuses_count))]),t._v(" "),s("p",{staticClass:"text-muted mb-0"},[t._v("Posts")])])])]),t._v(" "),s("li",{staticClass:"nav-item px-5"},[t.profileSettings.followers.count?s("div",{staticClass:"font-weight-light"},[s("a",{staticClass:"text-dark cursor-pointer text-center",on:{click:function(e){return t.followersModal()}}},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.profile.followers_count))]),t._v(" "),s("p",{staticClass:"text-muted mb-0"},[t._v("Followers")])])]):t._e()]),t._v(" "),s("li",{staticClass:"nav-item"},[t.profileSettings.following.count?s("div",{staticClass:"font-weight-light"},[s("a",{staticClass:"text-dark cursor-pointer text-center",on:{click:function(e){return t.followingModal()}}},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.profile.following_count))]),t._v(" "),s("p",{staticClass:"text-muted mb-0"},[t._v("Following")])])]):t._e()])])]),t._v(" "),s("div",{staticClass:"bg-white"},[s("ul",{staticClass:"nav nav-topbar d-flex justify-content-center border-0"},[s("li",{staticClass:"nav-item"},[s("a",{class:"grid"==this.mode?"nav-link font-weight-bold text-uppercase text-primary":"nav-link font-weight-bold text-uppercase",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("grid")}}},[s("i",{staticClass:"fas fa-th fa-lg"})])]),t._v(" "),s("li",{staticClass:"nav-item px-3"},[s("a",{class:"list"==this.mode?"nav-link font-weight-bold text-uppercase text-primary":"nav-link font-weight-bold text-uppercase",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("list")}}},[s("i",{staticClass:"fas fa-th-list fa-lg"})])]),t._v(" "),t.owner?s("li",{staticClass:"nav-item"},[s("a",{staticClass:"nav-link font-weight-bold text-uppercase",attrs:{href:t.profile.url+"/saved"}},[t._v("Saved")])]):t._e()])]),t._v(" "),s("div",{staticClass:"container"},[s("div",{staticClass:"profile-timeline mt-md-4"},["grid"==t.mode?s("div",{staticClass:"row"},t._l(t.timeline,function(e,i){return s("div",{staticClass:"col-4 p-0 p-sm-2 p-md-3 p-xs-1"},[s("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:e.url}},[s("div",{staticClass:"square"},["photo:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),s("div",{staticClass:"square-content",style:t.previewBackground(e)}),t._v(" "),s("div",{staticClass:"info-overlay-text"},[s("h5",{staticClass:"text-white m-auto font-weight-bold"},[s("span",[s("span",{staticClass:"far fa-heart fa-lg p-2 d-flex-inline"}),t._v(" "),s("span",{staticClass:"d-flex-inline"},[t._v(t._s(e.favourites_count))])]),t._v(" "),s("span",[s("span",{staticClass:"fas fa-retweet fa-lg p-2 d-flex-inline"}),t._v(" "),s("span",{staticClass:"d-flex-inline"},[t._v(t._s(e.reblogs_count))])])])])])])])}),0):t._e(),t._v(" "),"list"==t.mode?s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-8 col-lg-8 offset-md-2 px-0 mb-3 timeline"},t._l(t.timeline,function(e,i){return s("div",{key:e.id,staticClass:"card status-card card-md-rounded-0 my-sm-2 my-md-3 my-lg-4",attrs:{"data-status-id":e.id}},[s("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[s("img",{staticStyle:{"border-radius":"32px"},attrs:{src:e.account.avatar,width:"32px",height:"32px"}}),t._v(" "),s("a",{staticClass:"username font-weight-bold pl-2 text-dark",attrs:{href:e.account.url}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.account.username)+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),t.user.hasOwnProperty("id")?s("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("div",{staticClass:"dropdown"},[t._m(0,!0),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:e.url}},[t._v("Go to post")]),t._v(" "),e.account.id!=t.user.id?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl(e)}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.muteProfile(e)}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.blockProfile(e)}}},[t._v("Block Profile")])]):t._e(),t._v(" "),e.account.id==t.user.id||1==t.user.is_admin?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.editUrl(e)}},[t._v("Edit")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:function(s){return t.deletePost(e)}}},[t._v("Delete")])]):t._e()])])]):t._e()]),t._v(" "),s("div",{staticClass:"postPresenterContainer"},["photo"===e.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:e}})],1):"video"===e.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:e}})],1):"photo:album"===e.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:e}})],1):"video:album"===e.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:e}})],1):"photo:video:album"===e.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:e}})],1):s("div",{staticClass:"w-100"},[s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])]),t._v(" "),s("div",{staticClass:"card-body"},[t.user.hasOwnProperty("id")?s("div",{staticClass:"reactions my-1"},[s("h3",{class:[e.favourited?"fas fa-heart text-danger pr-3 m-0 cursor-pointer":"far fa-heart pr-3 m-0 like-btn cursor-pointer"],attrs:{title:"Like"},on:{click:function(s){return t.likeStatus(e,s)}}}),t._v(" "),s("h3",{staticClass:"far fa-comment pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(s){return t.commentFocus(e,s)}}}),t._v(" "),s("h3",{class:[e.reblogged?"far fa-share-square pr-3 m-0 text-primary cursor-pointer":"far fa-share-square pr-3 m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:function(s){return t.shareStatus(e,s)}}})]):t._e(),t._v(" "),s("div",{staticClass:"likes font-weight-bold"},[s("span",{staticClass:"like-count"},[t._v(t._s(e.favourites_count))]),t._v(" "+t._s(1==e.favourites_count?"like":"likes")+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"caption"},[s("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"username font-weight-bold"},[s("bdi",[s("a",{staticClass:"text-dark",attrs:{href:e.account.url}},[t._v(t._s(e.account.username))])])]),t._v(" "),s("span",{domProps:{innerHTML:t._s(e.content)}})])]),t._v(" "),s("div",{staticClass:"comments"}),t._v(" "),s("div",{staticClass:"timestamp pt-1"},[s("p",{staticClass:"small text-uppercase mb-0"},[s("a",{staticClass:"text-muted",attrs:{href:e.url}},[s("timeago",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],attrs:{datetime:e.created_at,"auto-update":60,"converter-options":{includeSeconds:!0},title:t.timestampFormat(e.created_at)}})],1)])])]),t._v(" "),s("div",{staticClass:"card-footer bg-white d-none"},[s("form",{on:{submit:function(s){return s.preventDefault(),t.commentSubmit(e,s)}}},[s("input",{attrs:{type:"hidden",name:"item",value:""}}),t._v(" "),s("input",{staticClass:"form-control status-reply-input",attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off"}})])])])}),0)]):t._e(),t._v(" "),"masonry"==t.mode?s("div",{staticClass:"masonry-grid"},t._l(t.timeline,function(e,i){return s("div",{staticClass:"d-inline p-0 p-sm-2 p-md-3 masonry-item"},[s("a",{attrs:{href:e.url},on:{click:function(s){return s.preventDefault(),t.statusModal(e)}}},[s("img",{class:"o-"+t.masonryOrientation(e),attrs:{src:t.previewUrl(e)}})])])}),0):t._e(),t._v(" "),t.timeline.length?s("div",[s("infinite-loading",{on:{infinite:t.infiniteTimeline}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()])])]):t._e(),t._v(" "),"moment"==t.profileLayout?s("div",[s("div",{class:t.momentBackground(),staticStyle:{width:"100%","min-height":"274px"}}),t._v(" "),s("div",{staticClass:"bg-white border-bottom"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 row mx-0"},[s("div",{staticClass:"col-4"}),t._v(" "),s("div",{staticClass:"col-4 text-center"},[s("div",{staticClass:"d-block d-md-none"},[s("img",{staticClass:"rounded-circle box-shadow",staticStyle:{"margin-top":"-60px",border:"5px solid #fff"},attrs:{src:t.profile.avatar,width:"110px",height:"110px"}})]),t._v(" "),s("div",{staticClass:"d-none d-md-block"},[s("img",{staticClass:"rounded-circle box-shadow",staticStyle:{"margin-top":"-90px",border:"5px solid #fff"},attrs:{src:t.profile.avatar,width:"172px",height:"172px"}})])]),t._v(" "),s("div",{staticClass:"col-4 text-right mt-2"},[s("span",{staticClass:"d-none d-md-inline-block pl-4"},[s("a",{staticClass:"fas fa-rss fa-lg text-muted text-decoration-none",attrs:{href:"/users/"+t.profile.username+".atom"}})]),t._v(" "),t.owner?s("span",{staticClass:"pl-md-4 pl-sm-2"},[s("a",{staticClass:"fas fa-cog fa-lg text-muted text-decoration-none",attrs:{href:"/settings/home"}})]):t._e(),t._v(" "),t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?s("span",{staticClass:"pl-md-4 pl-sm-2"},[s("a",{staticClass:"fas fa-cog fa-lg text-muted text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.visitorMenu(e)}}})]):t._e(),t._v(" "),t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?s("span",[1==t.relationship.following?s("span",{staticClass:"pl-md-4 pl-sm-2"},[s("button",{staticClass:"btn btn-outline-secondary font-weight-bold btn-sm",attrs:{type:"button","data-toggle":"tooltip",title:"Unfollow"},on:{click:function(e){return e.preventDefault(),t.followProfile()}}},[t._v("Unfollow")])]):s("span",{staticClass:"pl-md-4 pl-sm-2"},[s("button",{staticClass:"btn btn-primary font-weight-bold btn-sm",attrs:{type:"button","data-toggle":"tooltip",title:"Follow"},on:{click:function(e){return e.preventDefault(),t.followProfile()}}},[t._v("Follow")])])]):t._e()])]),t._v(" "),s("div",{staticClass:"col-12 text-center"},[s("div",{staticClass:"profile-details my-3"},[s("p",{staticClass:"font-weight-ultralight h2 text-center"},[t._v(t._s(t.profile.username))]),t._v(" "),t.profile.note?s("div",{staticClass:"text-center text-muted p-3",domProps:{innerHTML:t._s(t.profile.note)}}):t._e(),t._v(" "),s("div",{staticClass:"pb-3 text-muted text-center"},[s("a",{staticClass:"text-lighter",attrs:{href:t.profile.url}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.statuses_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\tPosts\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),t.profileSettings.followers.count?s("a",{staticClass:"text-lighter cursor-pointer px-3",on:{click:function(e){return t.followersModal()}}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.followers_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\tFollowers\n\t\t\t\t\t\t\t\t\t")]):t._e(),t._v(" "),t.profileSettings.following.count?s("a",{staticClass:"text-lighter cursor-pointer",on:{click:function(e){return t.followingModal()}}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.following_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\tFollowing\n\t\t\t\t\t\t\t\t\t")]):t._e()])])])])])]),t._v(" "),s("div",{staticClass:"container-fluid"},[s("div",{staticClass:"profile-timeline mt-md-4"},["grid"==t.mode?s("div",{staticClass:"card-columns"},t._l(t.timeline,function(e,i){return s("div",{staticClass:"p-sm-2 p-md-3"},[s("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:e.url}},[s("img",{staticClass:"img-fluid w-100",attrs:{src:t.previewUrl(e)}})])])}),0):t._e(),t._v(" "),t.timeline.length?s("div",[s("infinite-loading",{on:{infinite:t.infiniteTimeline}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()])])]):t._e()]),t._v(" "),s("b-modal",{ref:"followingModal",attrs:{id:"following-modal","hide-footer":"",centered:"",title:"Following","body-class":"list-group-flush p-0"}},[s("div",{staticClass:"list-group"},[t._l(t.following,function(e,i){return s("div",{key:"following_"+i,staticClass:"list-group-item border-0"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",loading:"lazy"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n "+t._s(e.username)+"\n ")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])]),t._v(" "),t.owner?s("div",[s("a",{staticClass:"btn btn-outline-secondary btn-sm",attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.followModalAction(e.id,i,"following")}}},[t._v("Unfollow")])]):t._e()])])}),t._v(" "),0==t.following.length?s("div",{staticClass:"list-group-item border-0"},[s("div",{staticClass:"list-group-item border-0"},[s("p",{staticClass:"p-3 text-center mb-0 lead"},[t._v("You are not following anyone.")])])]):t._e(),t._v(" "),t.followingMore?s("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followingLoadMore()}}},[s("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2)]),t._v(" "),s("b-modal",{ref:"followerModal",attrs:{id:"follower-modal","hide-footer":"",centered:"",title:"Followers","body-class":"list-group-flush p-0"}},[s("div",{staticClass:"list-group"},[t._l(t.followers,function(e,i){return s("div",{key:"follower_"+i,staticClass:"list-group-item border-0"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",loading:"lazy"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n "+t._s(e.username)+"\n ")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])])])])}),t._v(" "),t.followerMore?s("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followersLoadMore()}}},[s("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2)]),t._v(" "),s("b-modal",{ref:"visitorContextMenu",attrs:{id:"visitor-context-menu","hide-footer":"","hide-header":"",centered:"",size:"sm","body-class":"list-group-flush p-0"}},[t.relationship?s("div",{staticClass:"list-group"},[t.owner||t.relationship.following?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded text-primary",on:{click:t.followProfile}},[t._v("\n \tFollow\n ")]),t._v(" "),!t.owner&&t.relationship.following?s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded",on:{click:t.followProfile}},[t._v("\n \tUnfollow\n ")]):t._e(),t._v(" "),t.owner||t.relationship.muting?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded",on:{click:t.muteProfile}},[t._v("\n \tMute\n ")]),t._v(" "),!t.owner&&t.relationship.muting?s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded",on:{click:t.unmuteProfile}},[t._v("\n \tUnmute\n ")]):t._e(),t._v(" "),t.owner?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded text-danger",on:{click:t.reportProfile}},[t._v("\n \tReport User\n ")]),t._v(" "),t.owner||t.relationship.blocking?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded text-danger",on:{click:t.blockProfile}},[t._v("\n \tBlock\n ")]),t._v(" "),!t.owner&&t.relationship.blocking?s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded text-danger",on:{click:t.unblockProfile}},[t._v("\n \tUnblock\n ")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item cursor-pointer text-center font-weight-bold lead rounded text-muted",on:{click:function(e){return t.$refs.visitorContextMenu.hide()}}},[t._v("\n \tClose\n ")])]):t._e()])],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("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"}},[e("span",{staticClass:"fas fa-ellipsis-v fa-lg text-muted"})])}],!1,null,"043e0fcc",null);e.default=n.exports},Ht21:function(t,e,s){"use strict";var i=s("IJk2");s.n(i).a},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var s=function(t,e){var s=t[1]||"",i=t[3];if(!i)return s;if(e&&"function"==typeof btoa){var o=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[s].concat(a).concat([o]).join("\n")}var n;return[s].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+s+"}":s}).join("")},e.i=function(t,s){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},o=0;o=0&&d.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=function(){0;return s.nc}();i&&(t.attrs.nonce=i)}return g(e,t.attrs),m(t,e),e}function g(t,e){Object.keys(e).forEach(function(s){t.setAttribute(s,e[s])})}function _(t,e){var s,i,o,a;if(e.transform&&t.css){if(!(a="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=a}if(e.singleton){var n=c++;s=l||(l=v(e)),i=C.bind(null,s,n,!1),o=C.bind(null,s,n,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(s=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),m(t,e),e}(e),i=function(t,e,s){var i=s.css,o=s.sourceMap,a=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||a)&&(i=u(i));o&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var n=new Blob([i],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(n),r&&URL.revokeObjectURL(r)}.bind(null,s,e),o=function(){h(s),s.href&&URL.revokeObjectURL(s.href)}):(s=v(e),i=function(t,e){var s=e.css,i=e.media;i&&t.setAttribute("media",i);if(t.styleSheet)t.styleSheet.cssText=s;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(s))}}.bind(null,s),o=function(){h(s)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=n()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var s=p(t,e);return f(s,e),function(t){for(var i=[],o=0;o0?((i=e.likes).push.apply(i,a(n.data)),e.likesPage++,t.loaded()):t.complete()})},infiniteSharesHandler:function(t){var e=this;axios.get("/api/v2/shares/profile/"+this.statusUsername+"/status/"+this.statusId,{params:{page:this.sharesPage}}).then(function(s){var i,n=s.data;n.data.length>0?((i=e.shares).push.apply(i,a(n.data)),e.sharesPage++,t.loaded()):t.complete()})},likeStatus:function(t){var e=this;0!=$("body").hasClass("loggedIn")?axios.post("/i/like",{item:this.status.id}).then(function(t){if(e.status.favourites_count=t.data.count,1==e.reactions.liked){e.reactions.liked=!1;var s=e.user.id;e.likes=e.likes.filter(function(t){return t.id!==s})}else{e.reactions.liked=!0;var a=e.user;e.likes.push(a)}}).catch(function(t){console.error(t),swal("Error","Something went wrong, please try again later.","error")}):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},shareStatus:function(){var t=this;0!=$("body").hasClass("loggedIn")?axios.post("/i/share",{item:this.status.id}).then(function(e){if(t.status.reblogs_count=e.data.count,1==t.reactions.shared){t.reactions.shared=!1;var s=t.user.id;t.shares=t.shares.filter(function(t){return t.id!==s})}else{t.reactions.shared=!0;var a=t.user;t.shares.push(a)}}).catch(function(t){console.error(t),swal("Error","Something went wrong, please try again later.","error")}):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},bookmarkStatus:function(){var t=this;0!=$("body").hasClass("loggedIn")?axios.post("/i/bookmark",{item:this.status.id}).then(function(e){1==t.reactions.bookmarked?t.reactions.bookmarked=!1:t.reactions.bookmarked=!0}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")}):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},muteProfile:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/mute",{type:"user",item:this.status.account.id}).then(function(e){swal("Success","You have successfully muted "+t.status.account.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},blockProfile:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/block",{type:"user",item:this.status.account.id}).then(function(e){swal("Success","You have successfully blocked "+t.status.account.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},deletePost:function(t){if(this.ownerOrAdmin()&&confirm("Are you sure you want to delete this post?")){if(0==$("body").hasClass("loggedIn"))return;axios.post("/i/delete",{type:"status",item:this.status.id}).then(function(t){swal("Success","You have successfully deleted this post","success"),window.location.href="/"}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})}},owner:function(){return this.user.id===this.status.account.id},admin:function(){return 1==this.user.is_admin},ownerOrAdmin:function(){return this.owner()||this.admin()},lightbox:function(t){this.lightboxMedia=t,this.$refs.lightboxModal.show()},postReply:function(){var t=this;if(0==this.replyText.length||this.replyText.trim()=="@"+this.status.account.acct)return t.replyText=null,void $('textarea[name="comment"]').blur();var e={item:this.replyingToId,comment:this.replyText};axios.post("/i/comment",e).then(function(e){var s=e.data.entity;if(s.in_reply_to_id==t.status.id){t.results.push(s);var a=$(".status-comments")[0];a.scrollTop=a.clientHeight}t.replyText=""})},deleteComment:function(t,e){var s=this;axios.post("/i/delete",{type:"comment",item:t}).then(function(t){s.results.splice(e,1)}).catch(function(t){swal("Something went wrong!","Please try again later","error")})},l:function(t){return t.length<10?t:t.substr(0,10)+"..."},replyFocus:function(t){this.replyingToId=t.id,this.reply_to_profile_id=t.account.id,this.replyText="@"+t.account.username+" ",$('textarea[name="comment"]').focus()},fetchComments:function(){var t=this,e="/api/v2/comments/"+this.statusUsername+"/status/"+this.statusId;axios.get(e).then(function(e){t.results=_.reverse(e.data.data),t.pagination=e.data.meta.pagination,t.results.length>0&&$(".load-more-link").removeClass("d-none"),$(".postCommentsLoader").addClass("d-none"),$(".postCommentsContainer").removeClass("d-none")}).catch(function(t){if(t.response)switch(t.response.status){case 401:$(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");break;default:$(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}else $(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")})},loadMore:function(t){var e=this;if(t.preventDefault(),1!=this.pagination.total_pages&&this.pagination.current_page!=this.pagination.total_pages){$(".postCommentsLoader").removeClass("d-none");var s=this.pagination.links.next;axios.get(s).then(function(t){var s=t.data.data;$(".postCommentsLoader").addClass("d-none");for(var a=0;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"},emojiReaction:function(){var t=event.target.innerText;0==this.replyText.length?(this.reply_to_profile_id=this.status.account.id,this.replyText="@"+this.status.account.username+" "+t,$('textarea[name="comment"]').focus()):(this.reply_to_profile_id=this.status.account.id,this.replyText+=t,$('textarea[name="comment"]').focus())},toggleCommentVisibility:function(){if(0!=this.ownerOrAdmin()){var t=this.status.comments_disabled,e=this;1==t?axios.post("/i/visibility",{item:e.status.id,disableComments:!1}).then(function(t){window.location.href=e.status.url}).catch(function(t){}):axios.post("/i/visibility",{item:e.status.id,disableComments:!0}).then(function(t){e.status.comments_disabled=!1,e.showComments=!1}).catch(function(t){})}},fetchRelationships:function(){var t=this;0!=document.querySelectorAll("body")[0].classList.contains("loggedIn")?axios.get("/api/v1/accounts/relationships",{params:{"id[]":this.statusProfileId}}).then(function(e){if(null!=e.data[0])return t.relationship=e.data[0],1==e.data[0].blocking?(t.loaded=!0,void(t.warning=!0)):void t.fetchData();t.fetchData()}):this.fetchData()},visibilityModal:function(){switch(this.status.visibility){case"public":swal("Public Post","This post is visible to everyone.","info");break;case"unlisted":swal("Unlisted Post","This post is visible on profiles and with a direct links. It is not displayed on timelines.","info");break;case"private":swal("Private Post","This post is only visible to followers.","info")}},toggleReplies:function(t){if(t.thread)t.thread=!1;else{if(t.replies.length>0)return void(t.thread=!0);var e="/api/v2/comments/"+t.account.username+"/status/"+t.id;axios.get(e).then(function(e){t.replies=_.reverse(e.data.data),t.thread=!0})}}}},n=(s("23Eh"),s("hVVw"),s("KHd+")),o=Object(n.a)(i,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.loaded?t._e():s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[s("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]),t._v(" "),t.loaded&&t.warning?s("div",{staticClass:"bg-white pt-3 border-bottom"},[s("div",{staticClass:"container"},[s("p",{staticClass:"text-center font-weight-bold"},[t._v("You are blocking this account")]),t._v(" "),s("p",{staticClass:"text-center font-weight-bold"},[t._v("Click "),s("a",{staticClass:"cursor-pointer",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.warning=!1,t.fetchData()}}},[t._v("here")]),t._v(" to view this status")])])]):t._e(),t._v(" "),t.loaded&&0==t.warning?s("div",{staticClass:"postComponent"},["metro"==t.profileLayout?s("div",{staticClass:"container px-0"},[s("div",{staticClass:"card card-md-rounded-0 status-container orientation-unknown"},[s("div",{staticClass:"row px-0 mx-0"},[s("div",{staticClass:"d-flex d-md-none align-items-center justify-content-between card-header bg-white w-100"},[s("a",{staticClass:"d-flex align-items-center status-username text-truncate",attrs:{href:t.statusProfileUrl,"data-toggle":"tooltip","data-placement":"bottom",title:t.statusUsername}},[s("div",{staticClass:"status-avatar mr-2"},[s("img",{staticStyle:{"border-radius":"12px"},attrs:{src:t.statusAvatar,width:"24px",height:"24px"}})]),t._v(" "),s("div",{staticClass:"username"},[s("span",{staticClass:"username-link font-weight-bold text-dark"},[t._v(t._s(t.statusUsername))])])]),t._v(" "),0!=t.user?s("div",{staticClass:"float-right"},[s("div",{staticClass:"post-actions"},[s("div",{staticClass:"dropdown"},[t._m(0),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[t.owner()?t._e():s("div",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl()}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(e){return t.muteProfile()}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(e){return t.blockProfile()}}},[t._v("Block Profile")])]),t._v(" "),t.ownerOrAdmin()?s("div",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleCommentVisibility(e)}}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.editUrl()}},[t._v("Edit")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")])]):t._e()])])])]):t._e()]),t._v(" "),s("div",{staticClass:"col-12 col-md-8 px-0 mx-0"},[s("div",{staticClass:"postPresenterContainer d-none d-flex justify-content-center align-items-center"},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):s("div",{staticClass:"w-100"},[s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])])]),t._v(" "),s("div",{staticClass:"col-12 col-md-4 px-0 d-flex flex-column border-left border-md-left-0"},[s("div",{staticClass:"d-md-flex d-none align-items-center justify-content-between card-header py-3 bg-white"},[s("a",{staticClass:"d-flex align-items-center status-username text-truncate",attrs:{href:t.statusProfileUrl,"data-toggle":"tooltip","data-placement":"bottom",title:t.statusUsername}},[s("div",{staticClass:"status-avatar mr-2"},[s("img",{staticStyle:{"border-radius":"12px"},attrs:{src:t.statusAvatar,width:"24px",height:"24px"}})]),t._v(" "),s("div",{staticClass:"username"},[s("span",{staticClass:"username-link font-weight-bold text-dark"},[t._v(t._s(t.statusUsername))])])]),t._v(" "),s("div",{staticClass:"float-right"},[s("div",{staticClass:"post-actions"},[0!=t.user?s("div",{staticClass:"dropdown"},[t._m(1),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[t.owner()?t._e():s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl()}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:t.muteProfile}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:t.blockProfile}},[t._v("Block Profile")])]),t._v(" "),t.ownerOrAdmin()?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleCommentVisibility(e)}}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.editUrl()}},[t._v("Edit")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:t.deletePost}},[t._v("Delete")])]):t._e()])]):t._e()])])]),t._v(" "),s("div",{staticClass:"d-flex flex-md-column flex-column-reverse h-100"},[s("div",{staticClass:"card-body status-comments pb-5"},[s("div",{staticClass:"status-comment"},[s("p",{staticClass:"mb-1 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"font-weight-bold pr-1"},[t._v(t._s(t.statusUsername))]),t._v(" "),s("span",{staticClass:"comment-text",attrs:{id:t.status.id+"-status-readmore"},domProps:{innerHTML:t._s(t.status.content)}})]),t._v(" "),t.showComments?s("div",[t._m(2),t._v(" "),s("div",{staticClass:"postCommentsContainer d-none pt-3"},[t.status.reply_count>10?s("p",{staticClass:"mb-1 text-center load-more-link d-none"},[s("a",{staticClass:"text-muted",attrs:{href:"#"},on:{click:t.loadMore}},[t._v("Load more comments")])]):t._e(),t._v(" "),s("div",{staticClass:"comments",attrs:{"data-min-id":"0","data-max-id":"0"}},t._l(t.results,function(e,a){return s("div",{staticClass:"pb-3"},[s("p",{staticClass:"d-flex justify-content-between align-items-top read-more",staticStyle:{"overflow-y":"hidden"}},[s("span",[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break",domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",{staticClass:"pl-2",staticStyle:{"min-width":"38px"}},[s("span",{on:{click:function(s){return t.likeReply(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})]),t._v(" "),s("post-menu",{staticClass:"d-inline-block pl-2",attrs:{status:e,profile:t.user,size:"sm",modal:"true"},on:{deletePost:function(s){return t.deleteComment(e.id,a)}}})],1)]),t._v(" "),s("p",{},[s("span",{staticClass:"text-muted mr-3",staticStyle:{width:"20px"},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),t._v(" "),e.favourites_count?s("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e(),t._v(" "),s("span",{staticClass:"text-muted comment-reaction font-weight-bold cursor-pointer",on:{click:function(s){return t.replyFocus(e)}}},[t._v("Reply")])]),t._v(" "),e.reply_count>0?s("div",{staticClass:"cursor-pointer",staticStyle:{"margin-left":"30px"},on:{click:function(s){return t.toggleReplies(e)}}},[s("span",{staticClass:"show-reply-bar"}),t._v(" "),s("span",{staticClass:"comment-reaction font-weight-bold text-muted"},[t._v(t._s(e.thread?"Hide":"View")+" Replies ("+t._s(e.reply_count)+")")])]):t._e(),t._v(" "),1==e.thread?s("div",{staticClass:"comment-thread"},t._l(e.replies,function(e,a){return s("p",{staticClass:"d-flex justify-content-between align-items-top read-more pb-3",staticStyle:{"overflow-y":"hidden"}},[s("span",[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(e.account.username))]),t._v(" "),s("span",{staticClass:"text-break",domProps:{innerHTML:t._s(e.content)}})])])}),0):t._e()])}),0)])]):t._e()])]),t._v(" "),s("div",{staticClass:"card-body flex-grow-0 py-1"},[s("div",{staticClass:"reactions my-1"},[s("h3",{class:[t.reactions.liked?"fas fa-heart text-danger pr-3 m-0 cursor-pointer":"far fa-heart pr-3 m-0 like-btn cursor-pointer"],attrs:{title:"Like"},on:{click:t.likeStatus}}),t._v(" "),t.status.comments_disabled?t._e():s("h3",{staticClass:"far fa-comment pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(e){return t.replyFocus(t.status)}}}),t._v(" "),s("h3",{class:[t.reactions.shared?"far fa-share-square pr-3 m-0 text-primary cursor-pointer":"far fa-share-square pr-3 m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:t.shareStatus}}),t._v(" "),s("h3",{class:[t.reactions.bookmarked?"fas fa-bookmark text-warning m-0 float-right cursor-pointer":"far fa-bookmark m-0 float-right cursor-pointer"],attrs:{title:"Bookmark"},on:{click:t.bookmarkStatus}})]),t._v(" "),s("div",{staticClass:"reaction-counts font-weight-bold mb-0"},[s("span",{staticStyle:{cursor:"pointer"},on:{click:t.likesModal}},[s("span",{staticClass:"like-count"},[t._v(t._s(t.status.favourites_count||0))]),t._v(" likes\n ")]),t._v(" "),s("span",{staticClass:"float-right",staticStyle:{cursor:"pointer"},on:{click:t.sharesModal}},[s("span",{staticClass:"share-count pl-4"},[t._v(t._s(t.status.reblogs_count||0))]),t._v(" shares\n ")])]),t._v(" "),s("div",{staticClass:"timestamp pt-2 d-flex align-items-bottom justify-content-between"},[s("a",{staticClass:"small text-muted",attrs:{href:t.statusUrl}},[t._v("\n "+t._s(t.timestampFormat())+"\n ")]),t._v(" "),s("span",{staticClass:"small text-muted text-capitalize cursor-pointer",on:{click:t.visibilityModal}},[t._v(t._s(t.status.visibility))])])])]),t._v(" "),t.showComments&&0!==t.user.length?s("div",{staticClass:"card-footer bg-white px-2 py-0"},[s("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},[s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😂")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("💯")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("❤️")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("🙌")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("👏")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😍")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😯")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😢")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😅")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😁")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("🙂")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😎")])])]):t._e(),t._v(" "),t.showComments?s("div",{staticClass:"card-footer bg-white sticky-md-bottom p-0"},[0==t.user.length?s("div",{staticClass:"comment-form-guest p-3"},[s("a",{attrs:{href:"/login"}},[t._v("Login")]),t._v(" to like or comment.\n ")]):s("form",{staticClass:"border-0 rounded-0 align-middle",attrs:{method:"post",action:"/i/comment","data-id":t.statusId,"data-truncate":"false"}},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control border-0 rounded-0",staticStyle:{height:"56px","line-height":"18px","max-height":"80px",resize:"none","padding-right":"4.2rem"},attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off",autocorrect:"off"},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}}),t._v(" "),s("input",{staticClass:"d-inline-block btn btn-link font-weight-bold reply-btn text-decoration-none",attrs:{type:"button",value:"Post"},on:{click:function(e){return e.preventDefault(),t.postReply(e)}}})])]):t._e()])])])]):t._e(),t._v(" "),"moment"==t.profileLayout?s("div",{staticClass:"momentui"},[s("div",{staticClass:"bg-dark mt-md-n4"},[s("div",{staticClass:"container"},[s("div",{staticClass:"postPresenterContainer d-none d-flex justify-content-center align-items-center bg-dark"},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):s("div",{staticClass:"w-100"},[s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])])])]),t._v(" "),s("div",{staticClass:"bg-white"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row py-5"},[s("div",{staticClass:"col-12 col-md-8"},[s("div",{staticClass:"reactions py-2"},[s("h3",{class:[t.reactions.liked?"fas fa-heart text-danger pr-3 m-0 cursor-pointer":"far fa-heart pr-3 m-0 like-btn cursor-pointer"],attrs:{title:"Like"},on:{click:t.likeStatus}}),t._v(" "),t.status.comments_disabled?t._e():s("h3",{staticClass:"far fa-comment pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(e){return t.replyFocus(t.status)}}}),t._v(" "),s("h3",{class:[t.reactions.shared?"far fa-share-square pr-3 m-0 text-primary float-right cursor-pointer":"far fa-share-square pr-3 m-0 share-btn float-right cursor-pointer"],attrs:{title:"Share"},on:{click:t.shareStatus}})]),t._v(" "),s("div",{staticClass:"reaction-counts font-weight-bold mb-0"},[s("span",{staticStyle:{cursor:"pointer"},on:{click:t.likesModal}},[s("span",{staticClass:"like-count"},[t._v(t._s(t.status.favourites_count||0))]),t._v(" likes\n ")]),t._v(" "),s("span",{staticClass:"float-right",staticStyle:{cursor:"pointer"},on:{click:t.sharesModal}},[s("span",{staticClass:"share-count pl-4"},[t._v(t._s(t.status.reblogs_count||0))]),t._v(" shares\n ")])]),t._v(" "),s("hr"),t._v(" "),s("div",{staticClass:"media align-items-center"},[s("img",{staticClass:"rounded-circle shadow-lg mr-3",attrs:{src:t.statusAvatar,alt:"avatar",width:"72px",height:"72px"}}),t._v(" "),s("div",{staticClass:"media-body lead"},[t._v("\n by "),s("a",{attrs:{href:t.statusProfileUrl}},[t._v(t._s(t.statusUsername))])])]),t._v(" "),s("hr"),t._v(" "),s("div",[s("p",{staticClass:"lead"},[s("i",{staticClass:"far fa-clock"}),t._v(" "+t._s(t.timestampFormat()))]),t._v(" "),s("div",{staticClass:"lead",domProps:{innerHTML:t._s(t.status.content)}})])]),t._v(" "),s("div",{staticClass:"col-12 col-md-4"},[t.status.comments_disabled?s("div",{staticClass:"bg-light p-5 text-center lead"},[s("p",{staticClass:"mb-0"},[t._v("Comments have been disabled on this post.")])]):t._e()])])])])]):t._e()]):t._e(),t._v(" "),s("b-modal",{ref:"likesModal",attrs:{id:"l-modal","hide-footer":"",centered:"",title:"Likes","body-class":"list-group-flush p-0"}},[s("div",{staticClass:"list-group"},[t._l(t.likes,function(e,a){return s("div",{key:"modal_likes_"+a,staticClass:"list-group-item border-0"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n "+t._s(e.username)+"\n ")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])])])])}),t._v(" "),s("infinite-loading",{attrs:{spinner:"spiral"},on:{infinite:t.infiniteLikesHandler}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),s("b-modal",{ref:"sharesModal",attrs:{id:"s-modal","hide-footer":"",centered:"",title:"Shares","body-class":"list-group-flush p-0"}},[s("div",{staticClass:"list-group"},[t._l(t.shares,function(e,a){return s("div",{key:"modal_shares_"+a,staticClass:"list-group-item border-0"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"d-inline-block"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n "+t._s(e.username)+"\n ")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])]),t._v(" "),s("p",{staticClass:"float-right"})])])])}),t._v(" "),s("infinite-loading",{attrs:{spinner:"spiral"},on:{infinite:t.infiniteSharesHandler}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),s("b-modal",{ref:"lightboxModal",attrs:{id:"lightbox","hide-header":!0,"hide-footer":!0,centered:"",size:"lg","body-class":"p-0"}},[t.lightboxMedia?s("div",{class:t.lightboxMedia.filter_class},[s("img",{staticClass:"img-fluid",staticStyle:{"min-height":"100%","min-width":"100%"},attrs:{src:t.lightboxMedia.url}})]):t._e()])],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("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"}},[e("span",{staticClass:"fas fa-ellipsis-v text-muted"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("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"}},[e("span",{staticClass:"fas fa-ellipsis-v text-muted"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"postCommentsLoader text-center"},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])])}],!1,null,"5878060b",null);e.default=o.exports},"9tPo":function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var s=e.protocol+"//"+e.host,a=s+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i,n=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(n)?t:(i=0===n.indexOf("//")?n:0===n.indexOf("/")?s+n:a+n.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},"9wGH":function(t,e,s){"use strict";s.r(e);var a={props:["status"]},i=s("KHd+"),n=Object(i.a)(a,function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)]):s("div",[s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)},[],!1,null,null,null);e.default=n.exports},"CJs/":function(t,e,s){Vue.component("photo-presenter",s("d+I4").default),Vue.component("video-presenter",s("2Jpm").default),Vue.component("photo-album-presenter",s("Mrqh").default),Vue.component("video-album-presenter",s("9wGH").default),Vue.component("mixed-album-presenter",s("exej").default),Vue.component("post-menu",s("yric").default),Vue.component("post-component",s("6ZA0").default)},Ht21:function(t,e,s){"use strict";var a=s("IJk2");s.n(a).a},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var s=function(t,e){var s=t[1]||"",a=t[3];if(!a)return s;if(e&&"function"==typeof btoa){var i=(o=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),n=a.sources.map(function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"});return[s].concat(n).concat([i]).join("\n")}var o;return[s].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+s+"}":s}).join("")},e.i=function(t,s){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;i=0&&d.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var a=function(){0;return s.nc}();a&&(t.attrs.nonce=a)}return _(e,t.attrs),f(t,e),e}function _(t,e){Object.keys(e).forEach(function(s){t.setAttribute(s,e[s])})}function g(t,e){var s,a,i,n;if(e.transform&&t.css){if(!(n="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=n}if(e.singleton){var o=c++;s=l||(l=v(e)),a=C.bind(null,s,o,!1),i=C.bind(null,s,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(s=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",_(e,t.attrs),f(t,e),e}(e),a=function(t,e,s){var a=s.css,i=s.sourceMap,n=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||n)&&(a=u(a));i&&(a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([a],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(o),r&&URL.revokeObjectURL(r)}.bind(null,s,e),i=function(){h(s),s.href&&URL.revokeObjectURL(s.href)}):(s=v(e),a=function(t,e){var s=e.css,a=e.media;a&&t.setAttribute("media",a);if(t.styleSheet)t.styleSheet.cssText=s;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(s))}}.bind(null,s),i=function(){h(s)});return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=o()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var s=p(t,e);return m(s,e),function(t){for(var a=[],i=0;i0?((i=e.likes).push.apply(i,a(n.data)),e.likesPage++,t.loaded()):t.complete()})},infiniteSharesHandler:function(t){var e=this;axios.get("/api/v2/shares/profile/"+this.statusUsername+"/status/"+this.statusId,{params:{page:this.sharesPage}}).then(function(s){var i,n=s.data;n.data.length>0?((i=e.shares).push.apply(i,a(n.data)),e.sharesPage++,t.loaded()):t.complete()})},likeStatus:function(t){var e=this;0!=$("body").hasClass("loggedIn")?axios.post("/i/like",{item:this.status.id}).then(function(t){if(e.status.favourites_count=t.data.count,1==e.reactions.liked){e.reactions.liked=!1;var s=e.user.id;e.likes=e.likes.filter(function(t){return t.id!==s})}else{e.reactions.liked=!0;var a=e.user;e.likes.push(a)}}).catch(function(t){console.error(t),swal("Error","Something went wrong, please try again later.","error")}):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},shareStatus:function(){var t=this;0!=$("body").hasClass("loggedIn")?axios.post("/i/share",{item:this.status.id}).then(function(e){if(t.status.reblogs_count=e.data.count,1==t.reactions.shared){t.reactions.shared=!1;var s=t.user.id;t.shares=t.shares.filter(function(t){return t.id!==s})}else{t.reactions.shared=!0;var a=t.user;t.shares.push(a)}}).catch(function(t){console.error(t),swal("Error","Something went wrong, please try again later.","error")}):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},bookmarkStatus:function(){var t=this;0!=$("body").hasClass("loggedIn")?axios.post("/i/bookmark",{item:this.status.id}).then(function(e){1==t.reactions.bookmarked?t.reactions.bookmarked=!1:t.reactions.bookmarked=!0}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")}):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},muteProfile:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/mute",{type:"user",item:this.status.account.id}).then(function(e){swal("Success","You have successfully muted "+t.status.account.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},blockProfile:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/block",{type:"user",item:this.status.account.id}).then(function(e){swal("Success","You have successfully blocked "+t.status.account.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},deletePost:function(t){if(this.ownerOrAdmin()&&confirm("Are you sure you want to delete this post?")){if(0==$("body").hasClass("loggedIn"))return;axios.post("/i/delete",{type:"status",item:this.status.id}).then(function(t){swal("Success","You have successfully deleted this post","success"),window.location.href="/"}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})}},owner:function(){return this.user.id===this.status.account.id},admin:function(){return 1==this.user.is_admin},ownerOrAdmin:function(){return this.owner()||this.admin()},lightbox:function(t){this.lightboxMedia=t,this.$refs.lightboxModal.show()},postReply:function(){var t=this;if(0==this.replyText.length||this.replyText.trim()=="@"+this.status.account.acct)return t.replyText=null,void $('textarea[name="comment"]').blur();var e={item:this.replyingToId,comment:this.replyText};axios.post("/i/comment",e).then(function(e){var s=e.data.entity;if(s.in_reply_to_id==t.status.id){t.results.push(s);var a=$(".status-comments")[0];a.scrollTop=a.clientHeight}t.replyText=""})},deleteComment:function(t,e){var s=this;axios.post("/i/delete",{type:"comment",item:t}).then(function(t){s.results.splice(e,1)}).catch(function(t){swal("Something went wrong!","Please try again later","error")})},l:function(t){return t.length<10?t:t.substr(0,10)+"..."},replyFocus:function(t){this.replyingToId=t.id,this.reply_to_profile_id=t.account.id,this.replyText="@"+t.account.username+" ",$('textarea[name="comment"]').focus()},fetchComments:function(){var t=this,e="/api/v2/comments/"+this.statusUsername+"/status/"+this.statusId;axios.get(e).then(function(e){t.results=_.reverse(e.data.data),t.pagination=e.data.meta.pagination,t.results.length>0&&$(".load-more-link").removeClass("d-none"),$(".postCommentsLoader").addClass("d-none"),$(".postCommentsContainer").removeClass("d-none")}).catch(function(t){if(t.response)switch(t.response.status){case 401:$(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");break;default:$(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}else $(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")})},loadMore:function(t){var e=this;if(t.preventDefault(),1!=this.pagination.total_pages&&this.pagination.current_page!=this.pagination.total_pages){$(".postCommentsLoader").removeClass("d-none");var s=this.pagination.links.next;axios.get(s).then(function(t){var s=t.data.data;$(".postCommentsLoader").addClass("d-none");for(var a=0;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"},emojiReaction:function(){var t=event.target.innerText;0==this.replyText.length?(this.reply_to_profile_id=this.status.account.id,this.replyText=t+" ",$('textarea[name="comment"]').focus()):(this.reply_to_profile_id=this.status.account.id,this.replyText+=t+" ",$('textarea[name="comment"]').focus())},toggleCommentVisibility:function(){if(0!=this.ownerOrAdmin()){var t=this.status.comments_disabled,e=this;1==t?axios.post("/i/visibility",{item:e.status.id,disableComments:!1}).then(function(t){window.location.href=e.status.url}).catch(function(t){}):axios.post("/i/visibility",{item:e.status.id,disableComments:!0}).then(function(t){e.status.comments_disabled=!1,e.showComments=!1}).catch(function(t){})}},fetchRelationships:function(){var t=this;0!=document.querySelectorAll("body")[0].classList.contains("loggedIn")?axios.get("/api/v1/accounts/relationships",{params:{"id[]":this.statusProfileId}}).then(function(e){if(null!=e.data[0])return t.relationship=e.data[0],1==e.data[0].blocking?(t.loaded=!0,void(t.warning=!0)):void t.fetchData();t.fetchData()}):this.fetchData()},visibilityModal:function(){switch(this.status.visibility){case"public":swal("Public Post","This post is visible to everyone.","info");break;case"unlisted":swal("Unlisted Post","This post is visible on profiles and with a direct links. It is not displayed on timelines.","info");break;case"private":swal("Private Post","This post is only visible to followers.","info")}},toggleReplies:function(t){if(t.thread)t.thread=!1;else{if(t.replies.length>0)return void(t.thread=!0);var e="/api/v2/comments/"+t.account.username+"/status/"+t.id;axios.get(e).then(function(e){t.replies=_.reverse(e.data.data),t.thread=!0})}}}},n=(s("yuUu"),s("hVVw"),s("KHd+")),o=Object(n.a)(i,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.loaded?t._e():s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[s("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]),t._v(" "),t.loaded&&t.warning?s("div",{staticClass:"bg-white pt-3 border-bottom"},[s("div",{staticClass:"container"},[s("p",{staticClass:"text-center font-weight-bold"},[t._v("You are blocking this account")]),t._v(" "),s("p",{staticClass:"text-center font-weight-bold"},[t._v("Click "),s("a",{staticClass:"cursor-pointer",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.warning=!1,t.fetchData()}}},[t._v("here")]),t._v(" to view this status")])])]):t._e(),t._v(" "),t.loaded&&0==t.warning?s("div",{staticClass:"postComponent"},["metro"==t.profileLayout?s("div",{staticClass:"container px-0"},[s("div",{staticClass:"card card-md-rounded-0 status-container orientation-unknown"},[s("div",{staticClass:"row px-0 mx-0"},[s("div",{staticClass:"d-flex d-md-none align-items-center justify-content-between card-header bg-white w-100"},[s("a",{staticClass:"d-flex align-items-center status-username text-truncate",attrs:{href:t.statusProfileUrl,"data-toggle":"tooltip","data-placement":"bottom",title:t.statusUsername}},[s("div",{staticClass:"status-avatar mr-2"},[s("img",{staticStyle:{"border-radius":"12px"},attrs:{src:t.statusAvatar,width:"24px",height:"24px"}})]),t._v(" "),s("div",{staticClass:"username"},[s("span",{staticClass:"username-link font-weight-bold text-dark"},[t._v(t._s(t.statusUsername))])])]),t._v(" "),0!=t.user?s("div",{staticClass:"float-right"},[s("div",{staticClass:"post-actions"},[s("div",{staticClass:"dropdown"},[t._m(0),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[t.owner()?t._e():s("div",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl()}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(e){return t.muteProfile()}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(e){return t.blockProfile()}}},[t._v("Block Profile")])]),t._v(" "),t.ownerOrAdmin()?s("div",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleCommentVisibility(e)}}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.editUrl()}},[t._v("Edit")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")])]):t._e()])])])]):t._e()]),t._v(" "),s("div",{staticClass:"col-12 col-md-8 px-0 mx-0"},[s("div",{staticClass:"postPresenterContainer d-none d-flex justify-content-center align-items-center"},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):s("div",{staticClass:"w-100"},[s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])])]),t._v(" "),s("div",{staticClass:"col-12 col-md-4 px-0 d-flex flex-column border-left border-md-left-0"},[s("div",{staticClass:"d-md-flex d-none align-items-center justify-content-between card-header py-3 bg-white"},[s("a",{staticClass:"d-flex align-items-center status-username text-truncate",attrs:{href:t.statusProfileUrl,"data-toggle":"tooltip","data-placement":"bottom",title:t.statusUsername}},[s("div",{staticClass:"status-avatar mr-2"},[s("img",{staticStyle:{"border-radius":"12px"},attrs:{src:t.statusAvatar,width:"24px",height:"24px"}})]),t._v(" "),s("div",{staticClass:"username"},[s("span",{staticClass:"username-link font-weight-bold text-dark"},[t._v(t._s(t.statusUsername))])])]),t._v(" "),s("div",{staticClass:"float-right"},[s("div",{staticClass:"post-actions"},[0!=t.user?s("div",{staticClass:"dropdown"},[t._m(1),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[t.owner()?t._e():s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl()}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:t.muteProfile}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:t.blockProfile}},[t._v("Block Profile")])]),t._v(" "),t.ownerOrAdmin()?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleCommentVisibility(e)}}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.editUrl()}},[t._v("Edit")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:t.deletePost}},[t._v("Delete")])]):t._e()])]):t._e()])])]),t._v(" "),s("div",{staticClass:"d-flex flex-md-column flex-column-reverse h-100"},[s("div",{staticClass:"card-body status-comments pb-5"},[s("div",{staticClass:"status-comment"},[s("p",{staticClass:"mb-1 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"font-weight-bold pr-1"},[t._v(t._s(t.statusUsername))]),t._v(" "),s("span",{staticClass:"comment-text",attrs:{id:t.status.id+"-status-readmore"},domProps:{innerHTML:t._s(t.status.content)}})]),t._v(" "),t.showComments?s("div",[t._m(2),t._v(" "),s("div",{staticClass:"postCommentsContainer d-none pt-3"},[t.status.reply_count>10?s("p",{staticClass:"mb-1 text-center load-more-link d-none"},[s("a",{staticClass:"text-muted",attrs:{href:"#"},on:{click:t.loadMore}},[t._v("Load more comments")])]):t._e(),t._v(" "),s("div",{staticClass:"comments",attrs:{"data-min-id":"0","data-max-id":"0"}},t._l(t.results,function(e,a){return s("div",{staticClass:"pb-3"},[s("p",{staticClass:"d-flex justify-content-between align-items-top read-more",staticStyle:{"overflow-y":"hidden"}},[s("span",[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break",domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",{staticClass:"pl-2",staticStyle:{"min-width":"38px"}},[s("span",{on:{click:function(s){return t.likeReply(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})]),t._v(" "),s("post-menu",{staticClass:"d-inline-block pl-2",attrs:{status:e,profile:t.user,size:"sm",modal:"true"},on:{deletePost:function(s){return t.deleteComment(e.id,a)}}})],1)]),t._v(" "),s("p",{},[s("span",{staticClass:"text-muted mr-3",staticStyle:{width:"20px"},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),t._v(" "),e.favourites_count?s("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e(),t._v(" "),s("span",{staticClass:"text-muted comment-reaction font-weight-bold cursor-pointer",on:{click:function(s){return t.replyFocus(e)}}},[t._v("Reply")])]),t._v(" "),e.reply_count>0?s("div",{staticClass:"cursor-pointer",staticStyle:{"margin-left":"30px"},on:{click:function(s){return t.toggleReplies(e)}}},[s("span",{staticClass:"show-reply-bar"}),t._v(" "),s("span",{staticClass:"comment-reaction font-weight-bold text-muted"},[t._v(t._s(e.thread?"Hide":"View")+" Replies ("+t._s(e.reply_count)+")")])]):t._e(),t._v(" "),1==e.thread?s("div",{staticClass:"comment-thread"},t._l(e.replies,function(e,a){return s("p",{staticClass:"d-flex justify-content-between align-items-top read-more pb-3",staticStyle:{"overflow-y":"hidden"}},[s("span",[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(e.account.username))]),t._v(" "),s("span",{staticClass:"text-break",domProps:{innerHTML:t._s(e.content)}})])])}),0):t._e()])}),0)])]):t._e()])]),t._v(" "),s("div",{staticClass:"card-body flex-grow-0 py-1"},[s("div",{staticClass:"reactions my-1"},[s("h3",{class:[t.reactions.liked?"fas fa-heart text-danger pr-3 m-0 cursor-pointer":"far fa-heart pr-3 m-0 like-btn cursor-pointer"],attrs:{title:"Like"},on:{click:t.likeStatus}}),t._v(" "),t.status.comments_disabled?t._e():s("h3",{staticClass:"far fa-comment pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(e){return t.replyFocus(t.status)}}}),t._v(" "),s("h3",{class:[t.reactions.shared?"far fa-share-square pr-3 m-0 text-primary cursor-pointer":"far fa-share-square pr-3 m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:t.shareStatus}}),t._v(" "),s("h3",{class:[t.reactions.bookmarked?"fas fa-bookmark text-warning m-0 float-right cursor-pointer":"far fa-bookmark m-0 float-right cursor-pointer"],attrs:{title:"Bookmark"},on:{click:t.bookmarkStatus}})]),t._v(" "),s("div",{staticClass:"reaction-counts font-weight-bold mb-0"},[s("span",{staticStyle:{cursor:"pointer"},on:{click:t.likesModal}},[s("span",{staticClass:"like-count"},[t._v(t._s(t.status.favourites_count||0))]),t._v(" likes\n ")]),t._v(" "),s("span",{staticClass:"float-right",staticStyle:{cursor:"pointer"},on:{click:t.sharesModal}},[s("span",{staticClass:"share-count pl-4"},[t._v(t._s(t.status.reblogs_count||0))]),t._v(" shares\n ")])]),t._v(" "),s("div",{staticClass:"timestamp pt-2 d-flex align-items-bottom justify-content-between"},[s("a",{staticClass:"small text-muted",attrs:{href:t.statusUrl}},[t._v("\n "+t._s(t.timestampFormat())+"\n ")]),t._v(" "),s("span",{staticClass:"small text-muted text-capitalize cursor-pointer",on:{click:t.visibilityModal}},[t._v(t._s(t.status.visibility))])])])]),t._v(" "),t.showComments&&0!==t.user.length?s("div",{staticClass:"card-footer bg-white px-2 py-0"},[s("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},[s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😂")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("💯")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("❤️")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("🙌")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("👏")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😍")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😯")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😢")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😅")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😁")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("🙂")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😎")])])]):t._e(),t._v(" "),t.showComments?s("div",{staticClass:"card-footer bg-white sticky-md-bottom p-0"},[0==t.user.length?s("div",{staticClass:"comment-form-guest p-3"},[s("a",{attrs:{href:"/login"}},[t._v("Login")]),t._v(" to like or comment.\n ")]):s("form",{staticClass:"border-0 rounded-0 align-middle",attrs:{method:"post",action:"/i/comment","data-id":t.statusId,"data-truncate":"false"}},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control border-0 rounded-0",staticStyle:{height:"56px","line-height":"18px","max-height":"80px",resize:"none","padding-right":"4.2rem"},attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off",autocorrect:"off"},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}}),t._v(" "),s("input",{staticClass:"d-inline-block btn btn-link font-weight-bold reply-btn text-decoration-none",attrs:{type:"button",value:"Post"},on:{click:function(e){return e.preventDefault(),t.postReply(e)}}})])]):t._e()])])])]):t._e(),t._v(" "),"moment"==t.profileLayout?s("div",{staticClass:"momentui"},[s("div",{staticClass:"bg-dark mt-md-n4"},[s("div",{staticClass:"container"},[s("div",{staticClass:"postPresenterContainer d-none d-flex justify-content-center align-items-center bg-dark"},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):s("div",{staticClass:"w-100"},[s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])])])]),t._v(" "),s("div",{staticClass:"bg-white"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row py-5"},[s("div",{staticClass:"col-12 col-md-8"},[s("div",{staticClass:"reactions py-2"},[s("h3",{class:[t.reactions.liked?"fas fa-heart text-danger pr-3 m-0 cursor-pointer":"far fa-heart pr-3 m-0 like-btn cursor-pointer"],attrs:{title:"Like"},on:{click:t.likeStatus}}),t._v(" "),t.status.comments_disabled?t._e():s("h3",{staticClass:"far fa-comment pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(e){return t.replyFocus(t.status)}}}),t._v(" "),s("h3",{class:[t.reactions.shared?"far fa-share-square pr-3 m-0 text-primary float-right cursor-pointer":"far fa-share-square pr-3 m-0 share-btn float-right cursor-pointer"],attrs:{title:"Share"},on:{click:t.shareStatus}})]),t._v(" "),s("div",{staticClass:"reaction-counts font-weight-bold mb-0"},[s("span",{staticStyle:{cursor:"pointer"},on:{click:t.likesModal}},[s("span",{staticClass:"like-count"},[t._v(t._s(t.status.favourites_count||0))]),t._v(" likes\n ")]),t._v(" "),s("span",{staticClass:"float-right",staticStyle:{cursor:"pointer"},on:{click:t.sharesModal}},[s("span",{staticClass:"share-count pl-4"},[t._v(t._s(t.status.reblogs_count||0))]),t._v(" shares\n ")])]),t._v(" "),s("hr"),t._v(" "),s("div",{staticClass:"media align-items-center"},[s("img",{staticClass:"rounded-circle shadow-lg mr-3",attrs:{src:t.statusAvatar,alt:"avatar",width:"72px",height:"72px"}}),t._v(" "),s("div",{staticClass:"media-body lead"},[t._v("\n by "),s("a",{attrs:{href:t.statusProfileUrl}},[t._v(t._s(t.statusUsername))])])]),t._v(" "),s("hr"),t._v(" "),s("div",[s("p",{staticClass:"lead"},[s("i",{staticClass:"far fa-clock"}),t._v(" "+t._s(t.timestampFormat()))]),t._v(" "),s("div",{staticClass:"lead",domProps:{innerHTML:t._s(t.status.content)}})])]),t._v(" "),s("div",{staticClass:"col-12 col-md-4"},[t.status.comments_disabled?s("div",{staticClass:"bg-light p-5 text-center lead"},[s("p",{staticClass:"mb-0"},[t._v("Comments have been disabled on this post.")])]):t._e()])])])])]):t._e()]):t._e(),t._v(" "),s("b-modal",{ref:"likesModal",attrs:{id:"l-modal","hide-footer":"",centered:"",title:"Likes","body-class":"list-group-flush p-0"}},[s("div",{staticClass:"list-group"},[t._l(t.likes,function(e,a){return s("div",{key:"modal_likes_"+a,staticClass:"list-group-item border-0"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n "+t._s(e.username)+"\n ")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])])])])}),t._v(" "),s("infinite-loading",{attrs:{spinner:"spiral"},on:{infinite:t.infiniteLikesHandler}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),s("b-modal",{ref:"sharesModal",attrs:{id:"s-modal","hide-footer":"",centered:"",title:"Shares","body-class":"list-group-flush p-0"}},[s("div",{staticClass:"list-group"},[t._l(t.shares,function(e,a){return s("div",{key:"modal_shares_"+a,staticClass:"list-group-item border-0"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"d-inline-block"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n "+t._s(e.username)+"\n ")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])]),t._v(" "),s("p",{staticClass:"float-right"})])])])}),t._v(" "),s("infinite-loading",{attrs:{spinner:"spiral"},on:{infinite:t.infiniteSharesHandler}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),s("b-modal",{ref:"lightboxModal",attrs:{id:"lightbox","hide-header":!0,"hide-footer":!0,centered:"",size:"lg","body-class":"p-0"}},[t.lightboxMedia?s("div",{class:t.lightboxMedia.filter_class},[s("img",{staticClass:"img-fluid",staticStyle:{"min-height":"100%","min-width":"100%"},attrs:{src:t.lightboxMedia.url}})]):t._e()])],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("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"}},[e("span",{staticClass:"fas fa-ellipsis-v text-muted"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("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"}},[e("span",{staticClass:"fas fa-ellipsis-v text-muted"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"postCommentsLoader text-center"},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])])}],!1,null,"11b5e4cf",null);e.default=o.exports},"9tPo":function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var s=e.protocol+"//"+e.host,a=s+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i,n=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(n)?t:(i=0===n.indexOf("//")?n:0===n.indexOf("/")?s+n:a+n.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},"9wGH":function(t,e,s){"use strict";s.r(e);var a={props:["status"]},i=s("KHd+"),n=Object(i.a)(a,function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)]):s("div",[s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)},[],!1,null,null,null);e.default=n.exports},"CJs/":function(t,e,s){Vue.component("photo-presenter",s("d+I4").default),Vue.component("video-presenter",s("2Jpm").default),Vue.component("photo-album-presenter",s("Mrqh").default),Vue.component("video-album-presenter",s("9wGH").default),Vue.component("mixed-album-presenter",s("exej").default),Vue.component("post-menu",s("yric").default),Vue.component("post-component",s("6ZA0").default)},EkSU:function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.status-comments[data-v-11b5e4cf],\n.reactions[data-v-11b5e4cf] {\n background: #fff;\n}\n.postPresenterContainer[data-v-11b5e4cf] {\n background: #fff;\n}\n@media(min-width: 720px) {\n.postPresenterContainer[data-v-11b5e4cf] {\n min-height: 600px;\n}\n}\n[data-v-11b5e4cf]::-webkit-scrollbar {\n width: 0px;\n background: transparent;\n}\n.reply-btn[data-v-11b5e4cf] {\n position: absolute;\n bottom: 12px;\n right: 20px;\n width: 60px;\n text-align: center;\n border-radius: 0 3px 3px 0;\n}\n.text-lighter[data-v-11b5e4cf] {\n color:#B8C2CC !important;\n}\n.text-break[data-v-11b5e4cf] {\n overflow-wrap: break-word;\n}\n.comments p[data-v-11b5e4cf] {\n margin-bottom: 0;\n}\n.comment-reaction[data-v-11b5e4cf] {\n font-size: 80%;\n}\n.show-reply-bar[data-v-11b5e4cf] {\n display: inline-block;\n border-bottom: 1px solid #999;\n height: 0;\n margin-right: 16px;\n vertical-align: middle;\n width: 24px;\n}\n.comment-thread[data-v-11b5e4cf] {\n margin: 4px 0 0 40px;\n width: calc(100% - 40px);\n}\n.emoji-reactions .nav-item[data-v-11b5e4cf] {\n font-size: 1.2rem;\n padding: 9px;\n cursor: pointer;\n}\n.emoji-reactions[data-v-11b5e4cf]::-webkit-scrollbar {\n width: 0px;\n height: 0px;\n background: transparent;\n}\n",""])},Ht21:function(t,e,s){"use strict";var a=s("IJk2");s.n(a).a},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var s=function(t,e){var s=t[1]||"",a=t[3];if(!a)return s;if(e&&"function"==typeof btoa){var i=(o=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),n=a.sources.map(function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"});return[s].concat(n).concat([i]).join("\n")}var o;return[s].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+s+"}":s}).join("")},e.i=function(t,s){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;i=0&&d.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var a=function(){0;return s.nc}();a&&(t.attrs.nonce=a)}return _(e,t.attrs),f(t,e),e}function _(t,e){Object.keys(e).forEach(function(s){t.setAttribute(s,e[s])})}function g(t,e){var s,a,i,n;if(e.transform&&t.css){if(!(n="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=n}if(e.singleton){var o=c++;s=l||(l=v(e)),a=C.bind(null,s,o,!1),i=C.bind(null,s,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(s=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",_(e,t.attrs),f(t,e),e}(e),a=function(t,e,s){var a=s.css,i=s.sourceMap,n=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||n)&&(a=u(a));i&&(a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([a],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(o),r&&URL.revokeObjectURL(r)}.bind(null,s,e),i=function(){h(s),s.href&&URL.revokeObjectURL(s.href)}):(s=v(e),a=function(t,e){var s=e.css,a=e.media;a&&t.setAttribute("media",a);if(t.styleSheet)t.styleSheet.cssText=s;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(s))}}.bind(null,s),i=function(){h(s)});return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=o()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var s=p(t,e);return m(s,e),function(t){for(var a=[],i=0;i767&&t.fetchProfile()})},mounted:function(){0!=$('link[data-stylesheet="dark"]').length&&(this.modes.dark=!0),this.$nextTick(function(){$('[data-toggle="tooltip"]').tooltip()})},updated:function(){pixelfed.readmore()},methods:{fetchProfile:function(){var t=this;axios.get("/api/v1/accounts/verify_credentials").then(function(e){t.profile=e.data,1==t.profile.is_admin&&(t.modes.mod=!0),$(".profile-card .loader").addClass("d-none"),$(".profile-card .contents").removeClass("d-none"),$(".profile-card .card-footer").removeClass("d-none")}).catch(function(t){swal("Oops, something went wrong","Please reload the page.","error")})},fetchTimelineApi:function(){var t=this,e=!1;switch(this.scope){case"home":e="/api/v1/timelines/home";break;case"local":e="/api/v1/timelines/public";break;case"network":e="/api/v1/timelines/network"}axios.get(e,{params:{max_id:this.max_id,limit:6}}).then(function(e){var s,i=e.data;(s=t.feed).push.apply(s,a(i));var o=i.map(function(t){return t.id});t.min_id=Math.max.apply(Math,a(o)),t.max_id=Math.min.apply(Math,a(o)),$(".timeline .pagination").removeClass("d-none"),t.loading=!1,window.outerWidth>767&&t.expRec()}).catch(function(t){})},infiniteTimeline:function(t){var e=this;if(!this.loading){var s=!1;switch(this.scope){case"home":s="/api/v1/timelines/home";break;case"local":s="/api/v1/timelines/public";break;case"network":s="/api/v1/timelines/network"}axios.get(s,{params:{max_id:this.max_id,limit:6}}).then(function(s){if(s.data.length&&0==e.loading){var i,o=s.data;(i=e.feed).push.apply(i,a(o));var n=o.map(function(t){return t.id});e.min_id=Math.max.apply(Math,a(n)),e.max_id=Math.min.apply(Math,a(n)),e.page+=1,t.loaded(),e.loading=!1}else t.complete()})}},loadMore:function(t){var e=this,s="home"==this.scope?"/api/v1/timelines/home":"/api/v1/timelines/public";t.target.innerText="Loading...",axios.get(s,{params:{page:this.page}}).then(function(s){if(s.data.length&&0==e.loading){var i,o=s.data,n=o.map(function(t){return t.id});e.min_id=Math.min.apply(Math,a(n)),1==e.page&&(e.max_id=Math.max.apply(Math,a(n))),(i=e.feed).push.apply(i,a(o)),e.page+=1,e.loading=!1,t.target.innerText="Load more posts"}})},reportUrl:function(t){return"/i/report?type="+(t.in_reply_to?"comment":"post")+"&id="+t.id},commentFocus:function(t,e){this.replyId==t.id||t.comments_disabled||(this.replies={},this.replyId=t.id,this.fetchStatusComments(t,""))},likeStatus:function(t,e){0!=$("body").hasClass("loggedIn")&&axios.post("/i/like",{item:t.id}).then(function(e){t.favourites_count=e.data.count,t.favourited=!t.favourited}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})},shareStatus:function(t,e){0!=$("body").hasClass("loggedIn")&&axios.post("/i/share",{item:t.id}).then(function(e){t.reblogs_count=e.data.count,t.reblogged=!t.reblogged}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},editUrl:function(t){return t.url+"/edit"},redirect:function(t){window.location.href=t},replyUrl:function(t){return"/p/"+this.profile.username+"/"+(t.account.id==this.profile.id?t.id:t.in_reply_to_id)},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},statusOwner:function(t){return t.account.id==this.profile.id},fetchStatusComments:function(t,e){var s=this;axios.get("/api/v2/status/"+t.id+"/replies").then(function(t){var e=t.data;s.replies=_.reverse(e)}).catch(function(t){})},muteProfile:function(t){var e=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/mute",{type:"user",item:t.account.id}).then(function(s){e.feed=e.feed.filter(function(e){return e.account.id!==t.account.id}),swal("Success","You have successfully muted "+t.account.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},blockProfile:function(t){var e=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/block",{type:"user",item:t.account.id}).then(function(s){e.feed=e.feed.filter(function(e){return e.account.id!==t.account.id}),swal("Success","You have successfully blocked "+t.account.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},deletePost:function(t,e){var s=this;0!=$("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(t){s.feed.splice(e,1),swal("Success","You have successfully deleted this post","success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},commentSubmit:function(t,e){var s=this,a=t.id,i=e.target,o=$(i).find('input[name="comment"]').val();i.parentElement.parentElement.getElementsByClassName("comments")[0];axios.post("/i/comment",{item:a,comment:o}).then(function(t){i.reset(),i.blur(),s.replies.push(t.data.entity)})},moderatePost:function(t,e,s){var a=t.account.username;switch(console.log("action: "+e+" status id"+t.id),e){case"autocw":var i="Are you sure you want to enforce CW for "+a+" ?";swal({title:"Confirm",text:i,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 enforced CW for "+a,"success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})});break;case"noautolink":i="Are you sure you want to disable auto linking for "+a+" ?",swal({title:"Confirm",text:i,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 disabled autolinking for "+a,"success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})});break;case"unlisted":i="Are you sure you want to unlist from timelines for "+a+" ?",swal({title:"Confirm",text:i,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 unlisted for "+a,"success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})});break;case"disable":i="Are you sure you want to disable "+a+"’s account ?",swal({title:"Confirm",text:i,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 disabled "+a+"’s account","success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})});break;case"suspend":i="Are you sure you want to suspend "+a+"’s account ?",swal({title:"Confirm",text:i,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 suspend "+a+"’s account","success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})})}},toggleOptionsMenu:function(){this.optionMenuState=!this.optionMenuState},modeModToggle:function(){this.modes.mod=!this.modes.mod},modeNotifyToggle:function(){this.modes.notify=!this.modes.notify},modeDarkToggle:function(){var t=this;1==this.modes.dark?axios.post("/i/metro/dark-mode",{mode:"light"}).then(function(e){$("link[data-stylesheet=dark]").attr("data-stylesheet","light").attr("href","/css/app.css?v="+Date.now()),t.modes.dark=!1}):axios.post("/i/metro/dark-mode",{mode:"dark"}).then(function(e){$("link[data-stylesheet=light]").attr("data-stylesheet","dark").attr("href","/css/appdark.css?v="+Date.now()),t.modes.dark=!0})},modeInfiniteToggle:function(){this.modes.infinite=!this.modes.infinite},followingModal:function(){var t=this;this.following.length>0?this.$refs.followingModal.show():(axios.get("/api/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor}}).then(function(e){t.following=e.data,t.followingCursor++}),res.data.length<10&&(this.followingMore=!1),this.$refs.followingModal.show())},followersModal:function(){var t=this;this.followers.length>0?this.$refs.followerModal.show():(axios.get("/api/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then(function(e){t.followers=e.data,t.followerCursor++}),res.data.length<10&&(this.followerMore=!1),this.$refs.followerModal.show())},followingLoadMore:function(){var t=this;axios.get("/api/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor}}).then(function(e){var s;e.data.length>0&&((s=t.following).push.apply(s,a(e.data)),t.followingCursor++);e.data.length<10&&(t.followingMore=!1)})},followersLoadMore:function(){var t=this;axios.get("/api/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then(function(e){var s;e.data.length>0&&((s=t.followers).push.apply(s,a(e.data)),t.followerCursor++);e.data.length<10&&(t.followerMore=!1)})},lightbox:function(t){this.lightboxMedia=t,this.$refs.lightboxModal.show()},expLc:function(t){return 0==this.config.ab.lc||1==this.statusOwner(t)},expRec:function(){var t=this;0!=this.config.ab.rec&&axios.get("/api/local/exp/rec").then(function(e){t.suggestions=e.data})},expRecFollow:function(t,e){var s=this;0!=this.config.ab.rec&&axios.post("/i/follow",{item:t}).then(function(t){s.suggestions.splice(e,1)})},followModalAction:function(t,e){var s=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"following";axios.post("/i/follow",{item:t}).then(function(t){"following"==a&&s.following.splice(e,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()}}},o=(s("N3KT"),s("KHd+")),n=Object(o.a)(i,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-8 col-lg-8 pt-sm-2 px-0 my-sm-3 timeline order-2 order-md-1"},[s("div",{staticStyle:{"padding-top":"10px"}},[t.loading?s("div",{staticClass:"text-center"},[t._m(0)]):t._e(),t._v(" "),t._l(t.feed,function(e,a){return s("div",{key:a+"-"+e.id,staticClass:"card mb-sm-4 status-card card-md-rounded-0",attrs:{"data-status-id":e.id}},[s("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[s("img",{staticStyle:{"border-radius":"32px"},attrs:{src:e.account.avatar,width:"32px",height:"32px"}}),t._v(" "),s("a",{staticClass:"username font-weight-bold pl-2 text-dark",attrs:{href:e.account.url}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.account.username)+"\n\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[t._m(1,!0),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right"},[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:e.url}},[t._v("Go to post")]),t._v(" "),0==t.statusOwner(e)?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl(e)}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.muteProfile(e)}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.blockProfile(e)}}},[t._v("Block Profile")])]):t._e(),t._v(" "),1==t.statusOwner(e)?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:function(s){return t.deletePost(e)}}},[t._v("Delete")])]):t._e(),t._v(" "),1==t.profile.is_admin&&1==t.modes.mod?s("span",[s("div",{staticClass:"dropdown-divider"}),t._v(" "),t.statusOwner(e)?t._e():s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:function(s){return t.deletePost(e)}}},[t._v("Delete")]),t._v(" "),s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("h6",{staticClass:"dropdown-header"},[t._v("Mod Tools")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.moderatePost(e,"autocw")}}},[s("p",{staticClass:"mb-0",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:"Adds a CW to every post made by this account."}},[t._v("Enforce CW")])]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.moderatePost(e,"noautolink")}}},[s("p",{staticClass:"mb-0",attrs:{title:"Do not transform mentions, hashtags or urls into HTML."}},[t._v("No Autolinking")])]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.moderatePost(e,"unlisted")}}},[s("p",{staticClass:"mb-0",attrs:{title:"Removes account from public/network timelines."}},[t._v("Unlisted Posts")])]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.moderatePost(e,"disable")}}},[s("p",{staticClass:"mb-0",attrs:{title:"Temporarily disable account until next time user log in."}},[t._v("Disable Account")])]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.moderatePost(e,"suspend")}}},[s("p",{staticClass:"mb-0",attrs:{title:"This prevents any new interactions, without deleting existing data."}},[t._v("Suspend Account")])])]):t._e()])])]),t._v(" "),s("div",{staticClass:"postPresenterContainer"},["photo"===e.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:e},on:{lightbox:t.lightbox}})],1):"video"===e.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:e}})],1):"photo:album"===e.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:e},on:{lightbox:t.lightbox}})],1):"video:album"===e.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:e}})],1):"photo:video:album"===e.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:e},on:{lightbox:t.lightbox}})],1):s("div",{staticClass:"w-100"},[s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])]),t._v(" "),s("div",{staticClass:"card-body"},[s("div",{staticClass:"reactions my-1"},[s("h3",{class:[e.favourited?"fas fa-heart text-danger pr-3 m-0 cursor-pointer":"far fa-heart pr-3 m-0 like-btn cursor-pointer"],attrs:{title:"Like"},on:{click:function(s){return t.likeStatus(e,s)}}}),t._v(" "),e.comments_disabled?t._e():s("h3",{staticClass:"far fa-comment pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(s){return t.commentFocus(e,s)}}}),t._v(" "),s("h3",{class:[e.reblogged?"far fa-share-square pr-3 m-0 text-primary cursor-pointer":"far fa-share-square pr-3 m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:function(s){return t.shareStatus(e,s)}}})]),t._v(" "),1==t.expLc(e)?s("div",{staticClass:"likes font-weight-bold"},[s("span",{staticClass:"like-count"},[t._v(t._s(e.favourites_count))]),t._v(" "+t._s(1==e.favourites_count?"like":"likes")+"\n\t\t\t\t\t\t")]):t._e(),t._v(" "),s("div",{staticClass:"caption"},[s("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"username font-weight-bold"},[s("bdi",[s("a",{staticClass:"text-dark",attrs:{href:e.account.url}},[t._v(t._s(e.account.username))])])]),t._v(" "),s("span",{domProps:{innerHTML:t._s(e.content)}})])]),t._v(" "),e.id!=t.replyId||e.comments_disabled?t._e():s("div",{staticClass:"comments"},t._l(t.replies,function(e,a){return s("p",{staticClass:"mb-0 d-flex justify-content-between align-items-top read-more",staticStyle:{"overflow-y":"hidden"}},[s("span",[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url}},[t._v(t._s(e.account.username))]),t._v(" "),s("span",{domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",{staticClass:"mb-0",staticStyle:{"min-width":"38px"}},[s("span",{on:{click:function(s){return t.likeStatus(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})]),t._v(" "),s("post-menu",{staticClass:"d-inline-flex pl-2",attrs:{status:e,profile:t.profile,size:"sm",modal:"true",feed:t.feed}})],1)])}),0),t._v(" "),s("div",{staticClass:"timestamp mt-2"},[s("p",{staticClass:"small text-uppercase mb-0"},[s("a",{staticClass:"text-muted",attrs:{href:e.url}},[s("timeago",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],attrs:{datetime:e.created_at,"auto-update":60,"converter-options":{includeSeconds:!0},title:t.timestampFormat(e.created_at)}})],1)])])]),t._v(" "),e.id==t.replyId?s("div",{staticClass:"card-footer bg-white"},[s("form",{on:{submit:function(s){return s.preventDefault(),t.commentSubmit(e,s)}}},[s("input",{attrs:{type:"hidden",name:"item",value:""}}),t._v(" "),s("input",{staticClass:"form-control status-reply-input",attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off"}})])]):t._e()])}),t._v(" "),1==t.modes.infinite&&!t.loading&&t.feed.length>0?s("div",[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("infinite-loading",{attrs:{distance:800},on:{infinite:t.infiniteTimeline}},[s("div",{staticClass:"font-weight-bold",attrs:{slot:"no-more"},slot:"no-more"},[t._v("No more posts to load")]),t._v(" "),s("div",{staticClass:"font-weight-bold",attrs:{slot:"no-results"},slot:"no-results"},[t._v("No posts found")])])],1)])]):t._e(),t._v(" "),0==t.modes.infinite&&!t.loading&&t.feed.length>0?s("div",{staticClass:"pagination"},[s("p",{staticClass:"btn btn-outline-secondary font-weight-bold btn-block",on:{click:t.loadMore}},[t._v("Load more posts")])]):t._e(),t._v(" "),t.loading||"home"!=t.scope||0!=t.feed.length?t._e():s("div",[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body text-center"},[s("p",{staticClass:"h2 font-weight-lighter p-5"},[t._v("Hello, "+t._s(t.profile.acct))]),t._v(" "),t._m(2),t._v(" "),s("p",{staticClass:"h3 font-weight-lighter p-5"},[t._v("Start following people to build your timeline.")]),t._v(" "),t._m(3)])])])],2)]),t._v(" "),s("div",{staticClass:"col-md-4 col-lg-4 pt-2 my-3 order-1 order-md-2 d-none d-md-block"},[s("div",{staticClass:"position-sticky",staticStyle:{top:"68px"}},[s("div",{staticClass:"mb-4"},[s("div",{},[s("div",{},[s("div",{staticClass:"media d-flex align-items-center"},[s("a",{attrs:{href:t.profile.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:t.profile.avatar||"/storage/avatars/default.png",alt:"avatar",width:"64px",height:"64px"}})]),t._v(" "),s("div",{staticClass:"media-body d-flex justify-content-between word-break"},[s("div",[s("p",{staticClass:"mb-0 px-0 font-weight-bold"},[s("a",{staticClass:"text-dark",attrs:{href:t.profile.url}},[t._v(t._s(t.profile.username||"loading..."))])]),t._v(" "),s("p",{staticClass:"my-0 text-muted pb-0"},[t._v(t._s(t.profile.display_name||"loading..."))])]),t._v(" "),s("div",{staticClass:"ml-2"},[s("a",{class:[1==t.optionMenuState?"text-primary":"text-muted"],on:{click:function(e){return t.toggleOptionsMenu()}}},[s("i",{staticClass:"fas fa-cog fa-lg"})])])])])])])]),t._v(" "),1==t.optionMenuState?s("div",{staticClass:"mb-4"},[s("div",{staticClass:"card options-card"},[s("div",{staticClass:"card-body small"},[t.profile.is_admin?s("div",{staticClass:"custom-control custom-switch mb-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.modes.mod,expression:"modes.mod"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"mode-mod"},domProps:{checked:Array.isArray(t.modes.mod)?t._i(t.modes.mod,null)>-1:t.modes.mod},on:{click:function(e){return t.modeModToggle()},change:function(e){var s=t.modes.mod,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&t.$set(t.modes,"mod",s.concat([null])):o>-1&&t.$set(t.modes,"mod",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.modes,"mod",i)}}}),t._v(" "),s("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"mode-mod"}},[t._v("Moderator Mode")])]):t._e(),t._v(" "),s("div",{staticClass:"custom-control custom-switch"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.modes.infinite,expression:"modes.infinite"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"mode-infinite"},domProps:{checked:Array.isArray(t.modes.infinite)?t._i(t.modes.infinite,null)>-1:t.modes.infinite},on:{click:function(e){return t.modeInfiniteToggle()},change:function(e){var s=t.modes.infinite,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&t.$set(t.modes,"infinite",s.concat([null])):o>-1&&t.$set(t.modes,"infinite",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.modes,"infinite",i)}}}),t._v(" "),s("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"mode-infinite"}},[t._v("Enable Infinite Scroll")])]),t._v(" "),s("hr"),t._v(" "),s("p",{staticClass:"font-weight-bold"},[t._v("BETA FEATURES")]),t._v(" "),t._m(4)])])]):t._e(),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:1==t.modes.notify,expression:"modes.notify == true"}],staticClass:"mb-4"},[s("notification-card")],1),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.suggestions.length&&t.config.ab&&1==t.config.ab.rec,expression:"suggestions.length && config.ab && config.ab.rec == true"}],staticClass:"mb-4"},[s("div",{staticClass:"card"},[t._m(5),t._v(" "),s("div",{staticClass:"card-body pt-0"},t._l(t.suggestions,function(e,a){return s("div",{staticClass:"media align-items-center mt-3"},[s("a",{attrs:{href:"/"+e.username}},[s("img",{staticClass:"rounded-circle mr-3",attrs:{src:e.avatar,width:"32px",height:"32px"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0 font-weight-bold small"},[s("a",{staticClass:"text-decoration-none text-dark",attrs:{href:"/"+e.username}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),s("p",{staticClass:"mb-0 small text-muted"},[t._v(t._s(e.message))])]),t._v(" "),s("a",{staticClass:"font-weight-bold small",attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.expRecFollow(e.id,a)}}},[t._v("Follow")])])}),0)])]),t._v(" "),t._m(6)])])]),t._v(" "),s("b-modal",{ref:"lightboxModal",attrs:{id:"lightbox","hide-header":"","hide-footer":"",centered:"",size:"lg","body-class":"p-0"}},[t.lightboxMedia?s("div",{class:t.lightboxMedia.filter_class},[s("img",{staticClass:"img-fluid",staticStyle:{"min-height":"100%","min-width":"100%"},attrs:{src:t.lightboxMedia.url}})]):t._e()])],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-link text-dark no-caret dropdown-toggle py-0",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"Post options"}},[e("span",{staticClass:"fas fa-ellipsis-v fa-lg text-muted"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-lighter"},[e("i",{staticClass:"fas fa-camera-retro fa-5x"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"btn btn-primary font-weight-bold py-0",attrs:{href:"/discover"}},[this._v("Discover new people and posts")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"alert alert-primary font-weight-bold text-center"},[this._v("Experimental features have been moved to the "),e("a",{attrs:{href:"/settings/labs"}},[this._v("Labs")]),this._v(" settings page.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header bg-white text-center"},[e("div",{staticClass:"small text-dark text-uppercase font-weight-bold"},[this._v("Suggestions")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("footer",[s("div",{staticClass:"container pb-5"},[s("p",{staticClass:"mb-0 text-uppercase font-weight-bold text-muted small"},[s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/about"}},[t._v("About Us")]),t._v(" "),s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/help"}},[t._v("Help")]),t._v(" "),s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/open-source"}},[t._v("Open Source")]),t._v(" "),s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/language"}},[t._v("Language")]),t._v(" "),s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/terms"}},[t._v("Terms")]),t._v(" "),s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/privacy"}},[t._v("Privacy")]),t._v(" "),s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/platform"}},[t._v("API")])]),t._v(" "),s("p",{staticClass:"mb-0 text-uppercase font-weight-bold text-muted small"},[s("a",{staticClass:"text-muted",attrs:{href:"http://pixelfed.org",rel:"noopener",title:"","data-toggle":"tooltip"}},[t._v("Powered by PixelFed")])])])])}],!1,null,"68705ff2",null);e.default=n.exports},KqaD:function(t,e,s){Vue.component("notification-card",s("x6yo").default),Vue.component("photo-presenter",s("d+I4").default),Vue.component("video-presenter",s("2Jpm").default),Vue.component("photo-album-presenter",s("Mrqh").default),Vue.component("video-album-presenter",s("9wGH").default),Vue.component("mixed-album-presenter",s("exej").default),Vue.component("post-menu",s("yric").default),Vue.component("timeline",s("KhVi").default)},Mrqh:function(t,e,s){"use strict";s.r(e);var a={props:["status"],data:function(){return{cursor:0}}},i=(s("kAaE"),s("KHd+")),o=Object(i.a)(a,function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","min-height":"330px",display:"flex","align-items":"center"},attrs:{id:t.status.id+"-carousel",controls:"",background:"#ffffff",interval:0},model:{value:t.cursor,callback:function(e){t.cursor=e},expression:"cursor"}},[t._l(t.status.media_attachments,function(e,a){return s("b-carousel-slide",{key:e.id},[s("div",{class:e.filter_class+" d-block mx-auto text-center",staticStyle:{"max-height":"600px"},attrs:{slot:"img"},on:{click:function(e){return t.$emit("lightbox",t.status.media_attachments[a])}},slot:"img"},[s("img",{staticClass:"img-fluid",staticStyle:{"max-height":"600px"},attrs:{src:e.url,alt:e.description,title:e.description,loading:"lazy"},on:{click:function(e){return t.$emit("lightbox",t.status.media_attachments[a])}}})])])}),t._v(" "),s("span",{staticClass:"badge badge-dark box-shadow",staticStyle:{position:"absolute",top:"10px",right:"10px"}},[t._v("\n\t\t\t\t"+t._s(t.cursor+1)+" / "+t._s(t.status.media_attachments.length)+"\n\t\t\t")])],2)],1)]):s("div",[s("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","min-height":"330px",display:"flex","align-items":"center"},attrs:{id:t.status.id+"-carousel",controls:"",background:"#ffffff",interval:0},model:{value:t.cursor,callback:function(e){t.cursor=e},expression:"cursor"}},[t._l(t.status.media_attachments,function(e,a){return s("b-carousel-slide",{key:e.id,attrs:{alt:e.description,title:e.description}},[s("div",{class:e.filter_class+" d-block mx-auto text-center",staticStyle:{"max-height":"600px"},attrs:{slot:"img"},on:{click:function(e){return t.$emit("lightbox",t.status.media_attachments[a])}},slot:"img"},[s("img",{staticClass:"img-fluid",staticStyle:{"max-height":"600px"},attrs:{src:e.url,loading:"lazy"}})])])}),t._v(" "),s("span",{staticClass:"badge badge-dark box-shadow",staticStyle:{position:"absolute",top:"10px",right:"10px"}},[t._v("\n\t\t\t"+t._s(t.cursor+1)+" / "+t._s(t.status.media_attachments.length)+"\n\t\t")])],2)],1)},[],!1,null,"8db4cfae",null);e.default=o.exports},N3KT:function(t,e,s){"use strict";var a=s("+xi7");s.n(a).a},U94k:function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-34cc44d8] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n",""])},"V/1n":function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-8db4cfae] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n",""])},YqIb:function(t,e,s){var a=s("U94k");"string"==typeof a&&(a=[[t.i,a,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(a,i);a.locals&&(t.exports=a.locals)},"aET+":function(t,e,s){var a,i,o={},n=(a=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=a.apply(this,arguments)),i}),r=function(t){var e={};return function(t,s){if("function"==typeof t)return t();if(void 0===e[t]){var a=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,s);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(t){a=null}e[t]=a}return e[t]}}(),l=null,c=0,d=[],u=s("9tPo");function f(t,e){for(var s=0;s=0&&d.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var a=function(){0;return s.nc}();a&&(t.attrs.nonce=a)}return g(e,t.attrs),p(t,e),e}function g(t,e){Object.keys(e).forEach(function(s){t.setAttribute(s,e[s])})}function _(t,e){var s,a,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var n=c++;s=l||(l=v(e)),a=x.bind(null,s,n,!1),i=x.bind(null,s,n,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(s=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),p(t,e),e}(e),a=function(t,e,s){var a=s.css,i=s.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(a=u(a));i&&(a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var n=new Blob([a],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(n),r&&URL.revokeObjectURL(r)}.bind(null,s,e),i=function(){h(s),s.href&&URL.revokeObjectURL(s.href)}):(s=v(e),a=function(t,e){var s=e.css,a=e.media;a&&t.setAttribute("media",a);if(t.styleSheet)t.styleSheet.cssText=s;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(s))}}.bind(null,s),i=function(){h(s)});return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=n()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var s=m(t,e);return f(s,e),function(t){for(var a=[],i=0;i767&&this.fetchNotifications()},updated:function(){$('[data-toggle="tooltip"]').tooltip()},methods:{fetchNotifications:function(){var t=this;axios.get("/api/v1/notifications").then(function(e){var s=e.data.filter(function(t){return!("share"==t.type&&!status)});t.notifications=s,$(".notification-card .loader").addClass("d-none"),$(".notification-card .contents").removeClass("d-none")})},infiniteNotifications:function(t){var e=this;this.notificationCursor>10?t.complete():axios.get("/api/v1/notifications",{params:{page:this.notificationCursor}}).then(function(s){if(s.data.length){var i,o=s.data.filter(function(t){return!("share"==t.type&&!status)});(i=e.notifications).push.apply(i,a(o)),e.notificationCursor++,t.loaded()}else t.complete()})},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}}},o=s("KHd+"),n=Object(o.a)(i,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"card notification-card"},[t._m(0),t._v(" "),t._m(1),t._v(" "),s("div",{staticClass:"card-body pt-2 px-0 contents",staticStyle:{"max-height":"230px","overflow-y":"scroll"}},[t._l(t.notifications,function(e,a){return t.notifications.length>0?s("div",{staticClass:"media mb-4 align-items-center px-3"},[s("img",{staticClass:"mr-2 rounded-circle",staticStyle:{border:"1px solid #ccc"},attrs:{src:e.account.avatar,alt:"",width:"32px",height:"32px"}}),t._v(" "),s("div",{staticClass:"media-body font-weight-light small"},["favourite"==e.type?s("div",[s("p",{staticClass:"my-0"},[s("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,"data-placement":"bottom","data-toggle":"tooltip",title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" liked your "),s("a",{staticClass:"font-weight-bold",attrs:{href:e.status.url}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t")])]):"comment"==e.type?s("div",[s("p",{staticClass:"my-0"},[s("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,"data-placement":"bottom","data-toggle":"tooltip",title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" commented on your "),s("a",{staticClass:"font-weight-bold",attrs:{href:e.status.url}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t")])]):"mention"==e.type?s("div",[s("p",{staticClass:"my-0"},[s("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,"data-placement":"bottom","data-toggle":"tooltip",title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" "),s("a",{staticClass:"font-weight-bold",attrs:{href:t.mentionUrl(e.status)}},[t._v("mentioned")]),t._v(" you.\n\t\t\t\t\t\t")])]):"follow"==e.type?s("div",[s("p",{staticClass:"my-0"},[s("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,"data-placement":"bottom","data-toggle":"tooltip",title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" followed you.\n\t\t\t\t\t\t")])]):"share"==e.type?s("div",[s("p",{staticClass:"my-0"},[s("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,"data-placement":"bottom","data-toggle":"tooltip",title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" shared your "),s("a",{staticClass:"font-weight-bold",attrs:{href:e.status.reblog.url}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t")])]):t._e()]),t._v(" "),s("div",{staticClass:"small text-muted",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:e.created_at}},[t._v(t._s(t.timeAgo(e.created_at)))])]):t._e()}),t._v(" "),t.notifications.length?s("div",[s("infinite-loading",{on:{infinite:t.infiniteNotifications}},[s("div",{staticClass:"font-weight-bold",attrs:{slot:"no-results"},slot:"no-results"}),t._v(" "),s("div",{staticClass:"font-weight-bold",attrs:{slot:"no-more"},slot:"no-more"})])],1):t._e(),t._v(" "),0==t.notifications.length?s("div",{staticClass:"text-lighter text-center py-3"},[t._m(2),t._v(" "),s("p",{staticClass:"mb-0 small font-weight-bold"},[t._v("0 Notifications!")])]):t._e()],2)])])},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header bg-white"},[e("p",{staticClass:"mb-0 d-flex align-items-center justify-content-between"},[e("span",[e("i",{staticClass:"far fa-bell fa-lg text-muted"})]),this._v(" "),e("span",{staticClass:"small text-dark text-uppercase font-weight-bold"},[this._v("Alerts")]),this._v(" "),e("a",{staticClass:"text-decoration-none text-muted",attrs:{href:"/account/activity"}},[e("i",{staticClass:"fas fa-inbox fa-lg"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-body loader text-center",staticStyle:{height:"230px"}},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0"},[e("i",{staticClass:"fas fa-inbox fa-3x"})])}],!1,null,"25713347",null);e.default=n.exports},yric:function(t,e,s){"use strict";s.r(e);var a={props:["feed","status","profile","size","modal"],methods:{reportUrl:function(t){return"/i/report?type="+(t.in_reply_to?"comment":"post")+"&id="+t.id},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},editUrl:function(t){return t.url+"/edit"},redirect:function(t){window.location.href=t},replyUrl:function(t){return"/p/"+this.profile.username+"/"+(t.account.id==this.profile.id?t.id:t.in_reply_to_id)},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},statusOwner:function(t){return parseInt(t.account.id)==parseInt(this.profile.id)},deletePost:function(){this.$emit("deletePost"),$("#mt_pid_"+this.status.id).modal("hide")},moderatePost:function(t,e,s){var a=t.account.username;switch(e){case"autocw":var i="Are you sure you want to enforce CW for "+a+" ?";swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":i="Are you sure you want to suspend the account of "+a+" ?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0})}}}},i=(s("Ht21"),s("KHd+")),o=Object(i.a)(a,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",["true"!=t.modal?s("div",{staticClass:"dropdown"},[s("button",{staticClass:"btn btn-link text-dark no-caret dropdown-toggle py-0",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"Post options"}},[s("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right"},[s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Go to post")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",attrs:{href:"#"}},[t._v("Share")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",attrs:{href:"#"}},[t._v("Embed")]),t._v(" "),0==t.statusOwner(t.status)?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl(t.status)}},[t._v("Report")])]):t._e(),t._v(" "),1==t.statusOwner(t.status)?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.muteProfile(t.status)}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.blockProfile(t.status)}}},[t._v("Block Profile")])]):t._e(),t._v(" "),1==t.profile.is_admin?s("span",[s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-danger text-decoration-none",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")]),t._v(" "),s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("h6",{staticClass:"dropdown-header"},[t._v("Mod Tools")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"autocw")}}},[s("p",{staticClass:"mb-0"},[t._v("Enforce CW")]),t._v(" "),t._m(0)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"noautolink")}}},[s("p",{staticClass:"mb-0"},[t._v("No Autolinking")]),t._v(" "),t._m(1)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"unlisted")}}},[s("p",{staticClass:"mb-0"},[t._v("Unlisted Posts")]),t._v(" "),t._m(2)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"disable")}}},[s("p",{staticClass:"mb-0"},[t._v("Disable Account")]),t._v(" "),t._m(3)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"suspend")}}},[s("p",{staticClass:"mb-0"},[t._v("Suspend Account")]),t._v(" "),t._m(4)])]):t._e()])]):t._e(),t._v(" "),"true"==t.modal?s("div",[s("span",{attrs:{"data-toggle":"modal","data-target":"#mt_pid_"+t.status.id}},[s("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),s("div",{staticClass:"modal",attrs:{tabindex:"-1",role:"dialog",id:"mt_pid_"+t.status.id}},[s("div",{staticClass:"modal-dialog modal-sm",attrs:{role:"document"}},[s("div",{staticClass:"modal-content"},[s("div",{staticClass:"modal-body"},[s("div",{staticClass:"list-group"},[s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Go to post")]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Share")]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Embed")]),t._v(" "),0==t.statusOwner(t.status)?s("span",[s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:t.reportUrl(t.status)}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.muteProfile(t.status)}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.blockProfile(t.status)}}},[t._v("Block Profile")])]):t._e(),t._v(" "),1==t.statusOwner(t.status)||1==t.profile.is_admin?s("span",[s("a",{staticClass:"list-group-item font-weight-bold text-danger text-decoration-none",on:{click:t.deletePost}},[t._v("Delete")])]):t._e(),t._v(" "),1==t.profile.is_admin?s("span",[s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"autocw")}}},[s("p",{staticClass:"mb-0"},[t._v("Enforce CW")]),t._v(" "),t._m(5)]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"noautolink")}}},[s("p",{staticClass:"mb-0"},[t._v("No Autolinking")]),t._v(" "),t._m(6)]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"unlisted")}}},[s("p",{staticClass:"mb-0"},[t._v("Unlisted Posts")]),t._v(" "),t._m(7)]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"disable")}}},[s("p",{staticClass:"mb-0"},[t._v("Disable Account")]),t._v(" "),t._m(8)]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"suspend")}}},[s("p",{staticClass:"mb-0"},[t._v("Suspend Account")]),t._v(" "),t._m(9)])]):t._e()])])])])])]):t._e()])},[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Adds a CW to every post "),e("br"),this._v(" made by this account.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Do not transform mentions, "),e("br"),this._v(" hashtags or urls into HTML.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Removes account from "),e("br"),this._v(" public/network timelines.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Temporarily disable account "),e("br"),this._v(" until next time user log in.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("This prevents any new interactions, "),e("br"),this._v(" without deleting existing data.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Adds a CW to every post "),e("br"),this._v(" made by this account.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Do not transform mentions, "),e("br"),this._v(" hashtags or urls into HTML.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Removes account from "),e("br"),this._v(" public/network timelines.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Temporarily disable account "),e("br"),this._v(" until next time user log in.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("This prevents any new interactions, "),e("br"),this._v(" without deleting existing data.")])}],!1,null,"40fdc9a4",null);e.default=o.exports}});
\ No newline at end of file
+!function(t){var e={};function s(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,s),a.l=!0,a.exports}s.m=t,s.c=e,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)s.d(i,a,function(e){return t[e]}.bind(null,a));return i},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/",s(s.s=6)}({"2Jpm":function(t,e,s){"use strict";s.r(e);var i={props:["status"]},a=s("KHd+"),o=Object(a.a)(i,function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("video",{staticClass:"video",attrs:{preload:"none",controls:"",loop:""}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])])]):s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("video",{staticClass:"video",attrs:{preload:"none",controls:"",loop:""}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},[],!1,null,null,null);e.default=o.exports},"4khY":function(t,e,s){var i=s("V/1n");"string"==typeof i&&(i=[[t.i,i,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(i,a);i.locals&&(t.exports=i.locals)},6:function(t,e,s){t.exports=s("KqaD")},"9tPo":function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var s=e.protocol+"//"+e.host,i=s+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var a,o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(a=0===o.indexOf("//")?o:0===o.indexOf("/")?s+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")})}},"9wGH":function(t,e,s){"use strict";s.r(e);var i={props:["status"]},a=s("KHd+"),o=Object(a.a)(i,function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)]):s("div",[s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)},[],!1,null,null,null);e.default=o.exports},AD4z:function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.postPresenterContainer[data-v-71162255] {\n\tdisplay: flex;\n\talign-items: center;\n\tbackground: #fff;\n}\n.word-break[data-v-71162255] {\n\tword-break: break-all;\n}\n.small .custom-control-label[data-v-71162255] {\n\tpadding-top: 3px;\n}\n.reply-btn[data-v-71162255] {\n\tposition: absolute;\n\tbottom: 12px;\n\tright: 20px;\n\twidth: 60px;\n\ttext-align: center;\n\tborder-radius: 0 3px 3px 0;\n}\n.emoji-reactions .nav-item[data-v-71162255] {\n\tfont-size: 1.2rem;\n\tpadding: 9px;\n\tcursor: pointer;\n}\n.emoji-reactions[data-v-71162255]::-webkit-scrollbar {\n\twidth: 0px;\n\theight: 0px;\n\tbackground: transparent;\n}\n",""])},HClz:function(t,e,s){"use strict";var i=s("MGqI");s.n(i).a},Ht21:function(t,e,s){"use strict";var i=s("IJk2");s.n(i).a},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var s=function(t,e){var s=t[1]||"",i=t[3];if(!i)return s;if(e&&"function"==typeof btoa){var a=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),o=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[s].concat(o).concat([a]).join("\n")}var n;return[s].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+s+"}":s}).join("")},e.i=function(t,s){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},a=0;a767&&t.fetchProfile()})},mounted:function(){0!=$('link[data-stylesheet="dark"]').length&&(this.modes.dark=!0),"false"==localStorage.getItem("pf_metro_ui.exp.rec")?this.showSuggestions=!1:this.showSuggestions=!0,"false"==localStorage.getItem("pf_metro_ui.exp.rm")?this.showReadMore=!1:this.showReadMore=!0,this.$nextTick(function(){$('[data-toggle="tooltip"]').tooltip()})},updated:function(){1==this.showReadMore&&pixelfed.readmore()},methods:{fetchProfile:function(){var t=this;axios.get("/api/v1/accounts/verify_credentials").then(function(e){t.profile=e.data,1==t.profile.is_admin&&(t.modes.mod=!0),$(".profile-card .loader").addClass("d-none"),$(".profile-card .contents").removeClass("d-none"),$(".profile-card .card-footer").removeClass("d-none")}).catch(function(t){swal("Oops, something went wrong","Please reload the page.","error")})},fetchTimelineApi:function(){var t=this,e=!1;switch(this.scope){case"home":e="/api/v1/timelines/home";break;case"local":e="/api/v1/timelines/public";break;case"network":e="/api/v1/timelines/network"}axios.get(e,{params:{max_id:this.max_id,limit:6}}).then(function(e){var s,a=e.data;(s=t.feed).push.apply(s,i(a));var o=a.map(function(t){return t.id});t.min_id=Math.max.apply(Math,i(o)),t.max_id=Math.min.apply(Math,i(o)),$(".timeline .pagination").removeClass("d-none"),t.loading=!1,t.expRec()}).catch(function(t){})},infiniteTimeline:function(t){var e=this;if(!this.loading){var s=!1;switch(this.scope){case"home":s="/api/v1/timelines/home";break;case"local":s="/api/v1/timelines/public";break;case"network":s="/api/v1/timelines/network"}axios.get(s,{params:{max_id:this.max_id,limit:6}}).then(function(s){if(s.data.length&&0==e.loading){var a,o=s.data;(a=e.feed).push.apply(a,i(o));var n=o.map(function(t){return t.id});e.min_id=Math.max.apply(Math,i(n)),e.max_id=Math.min.apply(Math,i(n)),e.page+=1,t.loaded(),e.loading=!1}else t.complete()})}},loadMore:function(t){var e=this,s="home"==this.scope?"/api/v1/timelines/home":"/api/v1/timelines/public";t.target.innerText="Loading...",axios.get(s,{params:{page:this.page}}).then(function(s){if(s.data.length&&0==e.loading){var a,o=s.data,n=o.map(function(t){return t.id});e.min_id=Math.min.apply(Math,i(n)),1==e.page&&(e.max_id=Math.max.apply(Math,i(n))),(a=e.feed).push.apply(a,i(o)),e.page+=1,e.loading=!1,t.target.innerText="Load more posts"}})},reportUrl:function(t){return"/i/report?type="+(t.in_reply_to?"comment":"post")+"&id="+t.id},commentFocus:function(t,e){this.replyId==t.id||t.comments_disabled||(this.replies={},this.replyStatus={},this.replyText="",this.replyId=t.id,this.replyStatus=t,this.fetchStatusComments(t,""))},likeStatus:function(t,e){0!=$("body").hasClass("loggedIn")&&axios.post("/i/like",{item:t.id}).then(function(e){t.favourites_count=e.data.count,t.favourited=!t.favourited}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})},shareStatus:function(t,e){0!=$("body").hasClass("loggedIn")&&axios.post("/i/share",{item:t.id}).then(function(e){t.reblogs_count=e.data.count,t.reblogged=!t.reblogged}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},editUrl:function(t){return t.url+"/edit"},redirect:function(t){window.location.href=t},replyUrl:function(t){return"/p/"+this.profile.username+"/"+(t.account.id==this.profile.id?t.id:t.in_reply_to_id)},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},statusOwner:function(t){return t.account.id==this.profile.id},fetchStatusComments:function(t,e){var s=this;axios.get("/api/v2/status/"+t.id+"/replies").then(function(t){var e=t.data;s.replies=_.reverse(e)}).catch(function(t){})},muteProfile:function(t){var e=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/mute",{type:"user",item:t.account.id}).then(function(s){e.feed=e.feed.filter(function(e){return e.account.id!==t.account.id}),swal("Success","You have successfully muted "+t.account.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},blockProfile:function(t){var e=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/block",{type:"user",item:t.account.id}).then(function(s){e.feed=e.feed.filter(function(e){return e.account.id!==t.account.id}),swal("Success","You have successfully blocked "+t.account.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},deletePost:function(t,e){var s=this;0!=$("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(t){s.feed.splice(e,1),swal("Success","You have successfully deleted this post","success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},commentSubmit:function(t,e){var s=this,i=t.id,a=this.replyText;axios.post("/i/comment",{item:i,comment:a}).then(function(t){s.replyText="",s.replies.push(t.data.entity)})},moderatePost:function(t,e,s){var i=t.account.username;switch(console.log("action: "+e+" status id"+t.id),e){case"autocw":var a="Are you sure you want to enforce CW for "+i+" ?";swal({title:"Confirm",text:a,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 enforced CW for "+i,"success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})});break;case"noautolink":a="Are you sure you want to disable auto linking for "+i+" ?",swal({title:"Confirm",text:a,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 disabled autolinking for "+i,"success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})});break;case"unlisted":a="Are you sure you want to unlist from timelines for "+i+" ?",swal({title:"Confirm",text:a,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 unlisted for "+i,"success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})});break;case"disable":a="Are you sure you want to disable "+i+"’s account ?",swal({title:"Confirm",text:a,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 disabled "+i+"’s account","success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})});break;case"suspend":a="Are you sure you want to suspend "+i+"’s account ?",swal({title:"Confirm",text:a,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 suspend "+i+"’s account","success")}).catch(function(t){swal("Error","Something went wrong, please try again later.","error")})})}},toggleOptionsMenu:function(){this.optionMenuState=!this.optionMenuState},modeModToggle:function(){this.modes.mod=!this.modes.mod},modeNotifyToggle:function(){this.modes.notify=!this.modes.notify},modeDarkToggle:function(){var t=this;1==this.modes.dark?axios.post("/i/metro/dark-mode",{mode:"light"}).then(function(e){$("link[data-stylesheet=dark]").attr("data-stylesheet","light").attr("href","/css/app.css?v="+Date.now()),t.modes.dark=!1}):axios.post("/i/metro/dark-mode",{mode:"dark"}).then(function(e){$("link[data-stylesheet=light]").attr("data-stylesheet","dark").attr("href","/css/appdark.css?v="+Date.now()),t.modes.dark=!0})},modeInfiniteToggle:function(){this.modes.infinite=!this.modes.infinite},followingModal:function(){var t=this;this.following.length>0?this.$refs.followingModal.show():(axios.get("/api/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor}}).then(function(e){t.following=e.data,t.followingCursor++}),res.data.length<10&&(this.followingMore=!1),this.$refs.followingModal.show())},followersModal:function(){var t=this;this.followers.length>0?this.$refs.followerModal.show():(axios.get("/api/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then(function(e){t.followers=e.data,t.followerCursor++}),res.data.length<10&&(this.followerMore=!1),this.$refs.followerModal.show())},followingLoadMore:function(){var t=this;axios.get("/api/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor}}).then(function(e){var s;e.data.length>0&&((s=t.following).push.apply(s,i(e.data)),t.followingCursor++);e.data.length<10&&(t.followingMore=!1)})},followersLoadMore:function(){var t=this;axios.get("/api/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then(function(e){var s;e.data.length>0&&((s=t.followers).push.apply(s,i(e.data)),t.followerCursor++);e.data.length<10&&(t.followerMore=!1)})},lightbox:function(t){this.lightboxMedia=t,this.$refs.lightboxModal.show()},expLc:function(t){return 0==this.config.ab.lc||1==this.statusOwner(t)},expRec:function(){var t=this;0!=this.config.ab.rec&&axios.get("/api/local/exp/rec").then(function(e){t.suggestions=e.data})},expRecFollow:function(t,e){var s=this;0!=this.config.ab.rec&&axios.post("/i/follow",{item:t}).then(function(t){s.suggestions.splice(e,1)})},followModalAction:function(t,e){var s=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"following";axios.post("/i/follow",{item:t}).then(function(t){"following"==i&&s.following.splice(e,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()},hideSuggestions:function(){localStorage.setItem("pf_metro_ui.exp.rec",!1),this.showSuggestions=!1},emojiReaction:function(t){var e=event.target.innerText;0==this.replyText.length?(this.replyText=e+" ",$('textarea[name="comment"]').focus()):(this.replyText+=e+" ",$('textarea[name="comment"]').focus())}}},o=(s("HClz"),s("KHd+")),n=Object(o.a)(a,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-8 col-lg-8 pt-sm-2 px-0 my-sm-3 timeline order-2 order-md-1"},[s("div",{staticStyle:{"padding-top":"10px"}},[t.loading?s("div",{staticClass:"text-center"},[t._m(0)]):t._e(),t._v(" "),t._l(t.feed,function(e,i){return s("div",{key:i+"-"+e.id,attrs:{"data-status-id":e.id}},[2==i&&1==t.showSuggestions&&t.suggestions.length?s("div",{staticClass:"card mb-sm-4 status-card card-md-rounded-0"},[s("div",{staticClass:"card-header d-flex align-items-center justify-content-between bg-white border-0 pb-0"},[s("h6",{staticClass:"text-muted font-weight-bold mb-0"},[t._v("Suggestions For You")]),t._v(" "),s("span",{staticClass:"cursor-pointer text-muted",on:{click:t.hideSuggestions}},[s("i",{staticClass:"fas fa-times"})])]),t._v(" "),s("div",{staticClass:"card-body row mx-0"},t._l(t.suggestions,function(e,i){return s("div",{staticClass:"col-12 col-md-4 mb-3"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body text-center pt-3"},[s("p",{staticClass:"mb-0"},[s("a",{attrs:{href:"/"+e.username}},[s("img",{staticClass:"img-fluid rounded-circle cursor-pointer",attrs:{src:e.avatar,width:"45px",height:"45px"}})])]),t._v(" "),s("div",{staticClass:"py-3"},[s("p",{staticClass:"font-weight-bold text-dark cursor-pointer mb-0"},[s("a",{staticClass:"text-decoration-none text-dark",attrs:{href:"/"+e.username}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),s("p",{staticClass:"small text-muted mb-0"},[t._v(t._s(e.message))])]),t._v(" "),s("p",{staticClass:"mb-0"},[s("a",{staticClass:"btn btn-primary btn-block font-weight-bold py-0",attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.expRecFollow(e.id,i)}}},[t._v("Follow")])])])])])}),0)]):t._e(),t._v(" "),s("div",{staticClass:"card mb-sm-4 status-card card-md-rounded-0"},[s("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[s("img",{staticStyle:{"border-radius":"32px"},attrs:{src:e.account.avatar,width:"32px",height:"32px"}}),t._v(" "),s("a",{staticClass:"username font-weight-bold pl-2 text-dark",attrs:{href:e.account.url}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.account.username)+"\n\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[t._m(1,!0),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right"},[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:e.url}},[t._v("Go to post")]),t._v(" "),0==t.statusOwner(e)?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl(e)}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.muteProfile(e)}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.blockProfile(e)}}},[t._v("Block Profile")])]):t._e(),t._v(" "),1==t.statusOwner(e)?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:function(s){return t.deletePost(e)}}},[t._v("Delete")])]):t._e(),t._v(" "),1==t.profile.is_admin&&1==t.modes.mod?s("span",[s("div",{staticClass:"dropdown-divider"}),t._v(" "),t.statusOwner(e)?t._e():s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:function(s){return t.deletePost(e)}}},[t._v("Delete")]),t._v(" "),s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("h6",{staticClass:"dropdown-header"},[t._v("Mod Tools")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.moderatePost(e,"autocw")}}},[s("p",{staticClass:"mb-0",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:"Adds a CW to every post made by this account."}},[t._v("Enforce CW")])]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.moderatePost(e,"noautolink")}}},[s("p",{staticClass:"mb-0",attrs:{title:"Do not transform mentions, hashtags or urls into HTML."}},[t._v("No Autolinking")])]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.moderatePost(e,"unlisted")}}},[s("p",{staticClass:"mb-0",attrs:{title:"Removes account from public/network timelines."}},[t._v("Unlisted Posts")])]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.moderatePost(e,"disable")}}},[s("p",{staticClass:"mb-0",attrs:{title:"Temporarily disable account until next time user log in."}},[t._v("Disable Account")])]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(s){return t.moderatePost(e,"suspend")}}},[s("p",{staticClass:"mb-0",attrs:{title:"This prevents any new interactions, without deleting existing data."}},[t._v("Suspend Account")])])]):t._e()])])]),t._v(" "),s("div",{staticClass:"postPresenterContainer"},["photo"===e.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:e},on:{lightbox:t.lightbox}})],1):"video"===e.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:e}})],1):"photo:album"===e.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:e},on:{lightbox:t.lightbox}})],1):"video:album"===e.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:e}})],1):"photo:video:album"===e.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:e},on:{lightbox:t.lightbox}})],1):s("div",{staticClass:"w-100"},[s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])]),t._v(" "),s("div",{staticClass:"card-body"},[s("div",{staticClass:"reactions my-1"},[s("h3",{class:[e.favourited?"fas fa-heart text-danger pr-3 m-0 cursor-pointer":"far fa-heart pr-3 m-0 like-btn cursor-pointer"],attrs:{title:"Like"},on:{click:function(s){return t.likeStatus(e,s)}}}),t._v(" "),e.comments_disabled?t._e():s("h3",{staticClass:"far fa-comment pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(s){return t.commentFocus(e,s)}}}),t._v(" "),s("h3",{class:[e.reblogged?"far fa-share-square pr-3 m-0 text-primary cursor-pointer":"far fa-share-square pr-3 m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:function(s){return t.shareStatus(e,s)}}})]),t._v(" "),1==t.expLc(e)?s("div",{staticClass:"likes font-weight-bold"},[s("span",{staticClass:"like-count"},[t._v(t._s(e.favourites_count))]),t._v(" "+t._s(1==e.favourites_count?"like":"likes")+"\n\t\t\t\t\t\t\t")]):t._e(),t._v(" "),s("div",{staticClass:"caption"},[s("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"username font-weight-bold"},[s("bdi",[s("a",{staticClass:"text-dark",attrs:{href:e.account.url}},[t._v(t._s(e.account.username))])])]),t._v(" "),s("span",{domProps:{innerHTML:t._s(e.content)}})])]),t._v(" "),e.id!=t.replyId||e.comments_disabled?t._e():s("div",{staticClass:"comments"},t._l(t.replies,function(e,i){return s("p",{staticClass:"mb-0 d-flex justify-content-between align-items-top read-more",staticStyle:{"overflow-y":"hidden"}},[s("span",[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url}},[t._v(t._s(e.account.username))]),t._v(" "),s("span",{domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",{staticClass:"mb-0",staticStyle:{"min-width":"38px"}},[s("span",{on:{click:function(s){return t.likeStatus(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})]),t._v(" "),s("post-menu",{staticClass:"d-inline-flex pl-2",attrs:{status:e,profile:t.profile,size:"sm",modal:"true",feed:t.feed}})],1)])}),0),t._v(" "),s("div",{staticClass:"timestamp mt-2"},[s("p",{staticClass:"small text-uppercase mb-0"},[s("a",{staticClass:"text-muted",attrs:{href:e.url}},[s("timeago",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],attrs:{datetime:e.created_at,"auto-update":60,"converter-options":{includeSeconds:!0},title:t.timestampFormat(e.created_at)}})],1)])])]),t._v(" "),e.id!=t.replyId||e.comments_disabled?t._e():s("div",{staticClass:"card-footer bg-white px-2 py-0"},[s("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},[s("li",{staticClass:"nav-item",on:{click:function(s){return t.emojiReaction(e)}}},[t._v("😂")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:function(s){return t.emojiReaction(e)}}},[t._v("💯")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:function(s){return t.emojiReaction(e)}}},[t._v("❤️")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:function(s){return t.emojiReaction(e)}}},[t._v("🙌")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:function(s){return t.emojiReaction(e)}}},[t._v("👏")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:function(s){return t.emojiReaction(e)}}},[t._v("😍")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:function(s){return t.emojiReaction(e)}}},[t._v("😯")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:function(s){return t.emojiReaction(e)}}},[t._v("😢")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:function(s){return t.emojiReaction(e)}}},[t._v("😅")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:function(s){return t.emojiReaction(e)}}},[t._v("😁")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:function(s){return t.emojiReaction(e)}}},[t._v("🙂")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:function(s){return t.emojiReaction(e)}}},[t._v("😎")])])]),t._v(" "),e.id!=t.replyId||e.comments_disabled?t._e():s("div",{staticClass:"card-footer bg-white sticky-md-bottom p-0"},[s("form",{staticClass:"border-0 rounded-0 align-middle",attrs:{method:"post",action:"/i/comment","data-id":e.id,"data-truncate":"false"}},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control border-0 rounded-0",staticStyle:{height:"56px","line-height":"18px","max-height":"80px",resize:"none","padding-right":"4.2rem"},attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off",autocorrect:"off"},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}}),t._v(" "),s("input",{staticClass:"d-inline-block btn btn-link font-weight-bold reply-btn text-decoration-none",attrs:{type:"button",value:"Post"},on:{click:function(s){return s.preventDefault(),t.commentSubmit(e,s)}}})])])])])}),t._v(" "),1==t.modes.infinite&&!t.loading&&t.feed.length>0?s("div",[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("infinite-loading",{attrs:{distance:800},on:{infinite:t.infiniteTimeline}},[s("div",{staticClass:"font-weight-bold",attrs:{slot:"no-more"},slot:"no-more"},[t._v("No more posts to load")]),t._v(" "),s("div",{staticClass:"font-weight-bold",attrs:{slot:"no-results"},slot:"no-results"},[t._v("No posts found")])])],1)])]):t._e(),t._v(" "),0==t.modes.infinite&&!t.loading&&t.feed.length>0?s("div",{staticClass:"pagination"},[s("p",{staticClass:"btn btn-outline-secondary font-weight-bold btn-block",on:{click:t.loadMore}},[t._v("Load more posts")])]):t._e(),t._v(" "),t.loading||"home"!=t.scope||0!=t.feed.length?t._e():s("div",[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body text-center"},[s("p",{staticClass:"h2 font-weight-lighter p-5"},[t._v("Hello, "+t._s(t.profile.acct))]),t._v(" "),t._m(2),t._v(" "),s("p",{staticClass:"h3 font-weight-lighter p-5"},[t._v("Start following people to build your timeline.")]),t._v(" "),t._m(3)])])])],2)]),t._v(" "),s("div",{staticClass:"col-md-4 col-lg-4 pt-2 my-3 order-1 order-md-2 d-none d-md-block"},[s("div",{staticClass:"position-sticky",staticStyle:{top:"68px"}},[s("div",{staticClass:"mb-4"},[s("div",{},[s("div",{},[s("div",{staticClass:"media d-flex align-items-center"},[s("a",{attrs:{href:t.profile.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:t.profile.avatar||"/storage/avatars/default.png",alt:"avatar",width:"64px",height:"64px"}})]),t._v(" "),s("div",{staticClass:"media-body d-flex justify-content-between word-break"},[s("div",[s("p",{staticClass:"mb-0 px-0 font-weight-bold"},[s("a",{staticClass:"text-dark",attrs:{href:t.profile.url}},[t._v(t._s(t.profile.username||"loading..."))])]),t._v(" "),s("p",{staticClass:"my-0 text-muted pb-0"},[t._v(t._s(t.profile.display_name||"loading..."))])]),t._v(" "),s("div",{staticClass:"ml-2"},[s("a",{class:[1==t.optionMenuState?"text-primary":"text-muted"],on:{click:function(e){return t.toggleOptionsMenu()}}},[s("i",{staticClass:"fas fa-cog fa-lg"})])])])])])])]),t._v(" "),1==t.optionMenuState?s("div",{staticClass:"mb-4"},[s("div",{staticClass:"card options-card"},[s("div",{staticClass:"card-body small"},[t.profile.is_admin?s("div",{staticClass:"custom-control custom-switch mb-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.modes.mod,expression:"modes.mod"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"mode-mod"},domProps:{checked:Array.isArray(t.modes.mod)?t._i(t.modes.mod,null)>-1:t.modes.mod},on:{click:function(e){return t.modeModToggle()},change:function(e){var s=t.modes.mod,i=e.target,a=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&t.$set(t.modes,"mod",s.concat([null])):o>-1&&t.$set(t.modes,"mod",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.modes,"mod",a)}}}),t._v(" "),s("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"mode-mod"}},[t._v("Moderator Mode")])]):t._e(),t._v(" "),s("div",{staticClass:"custom-control custom-switch"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.modes.infinite,expression:"modes.infinite"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"mode-infinite"},domProps:{checked:Array.isArray(t.modes.infinite)?t._i(t.modes.infinite,null)>-1:t.modes.infinite},on:{click:function(e){return t.modeInfiniteToggle()},change:function(e){var s=t.modes.infinite,i=e.target,a=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&t.$set(t.modes,"infinite",s.concat([null])):o>-1&&t.$set(t.modes,"infinite",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.modes,"infinite",a)}}}),t._v(" "),s("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"mode-infinite"}},[t._v("Enable Infinite Scroll")])]),t._v(" "),s("hr"),t._v(" "),s("p",{staticClass:"font-weight-bold"},[t._v("BETA FEATURES")]),t._v(" "),t._m(4)])])]):t._e(),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:1==t.modes.notify,expression:"modes.notify == true"}],staticClass:"mb-4"},[s("notification-card")],1),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:1==t.showSuggestions&&t.suggestions.length&&t.config.ab&&1==t.config.ab.rec,expression:"showSuggestions == true && suggestions.length && config.ab && config.ab.rec == true"}],staticClass:"mb-4"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-header bg-white d-flex align-items-center justify-content-between"},[s("div"),t._v(" "),s("div",{staticClass:"small text-dark text-uppercase font-weight-bold"},[t._v("Suggestions")]),t._v(" "),s("div",{staticClass:"small text-muted cursor-pointer",on:{click:t.hideSuggestions}},[s("i",{staticClass:"fas fa-times"})])]),t._v(" "),s("div",{staticClass:"card-body pt-0"},t._l(t.suggestions,function(e,i){return s("div",{staticClass:"media align-items-center mt-3"},[s("a",{attrs:{href:"/"+e.username}},[s("img",{staticClass:"rounded-circle mr-3",attrs:{src:e.avatar,width:"32px",height:"32px"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0 font-weight-bold small"},[s("a",{staticClass:"text-decoration-none text-dark",attrs:{href:"/"+e.username}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),s("p",{staticClass:"mb-0 small text-muted"},[t._v(t._s(e.message))])]),t._v(" "),s("a",{staticClass:"font-weight-bold small",attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.expRecFollow(e.id,i)}}},[t._v("Follow")])])}),0)])]),t._v(" "),t._m(5)])])]),t._v(" "),s("b-modal",{ref:"lightboxModal",attrs:{id:"lightbox","hide-header":"","hide-footer":"",centered:"",size:"lg","body-class":"p-0"}},[t.lightboxMedia?s("div",{class:t.lightboxMedia.filter_class},[s("img",{staticClass:"img-fluid",staticStyle:{"min-height":"100%","min-width":"100%"},attrs:{src:t.lightboxMedia.url}})]):t._e()])],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-link text-dark no-caret dropdown-toggle py-0",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"Post options"}},[e("span",{staticClass:"fas fa-ellipsis-v fa-lg text-muted"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-lighter"},[e("i",{staticClass:"fas fa-camera-retro fa-5x"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"btn btn-primary font-weight-bold py-0",attrs:{href:"/discover"}},[this._v("Discover new people and posts")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"alert alert-primary font-weight-bold text-center"},[this._v("Experimental features have been moved to the "),e("a",{attrs:{href:"/settings/labs"}},[this._v("Labs")]),this._v(" settings page.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("footer",[s("div",{staticClass:"container pb-5"},[s("p",{staticClass:"mb-0 text-uppercase font-weight-bold text-muted small"},[s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/about"}},[t._v("About Us")]),t._v(" "),s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/help"}},[t._v("Help")]),t._v(" "),s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/open-source"}},[t._v("Open Source")]),t._v(" "),s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/language"}},[t._v("Language")]),t._v(" "),s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/terms"}},[t._v("Terms")]),t._v(" "),s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/privacy"}},[t._v("Privacy")]),t._v(" "),s("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/platform"}},[t._v("API")])]),t._v(" "),s("p",{staticClass:"mb-0 text-uppercase font-weight-bold text-muted small"},[s("a",{staticClass:"text-muted",attrs:{href:"http://pixelfed.org",rel:"noopener",title:"","data-toggle":"tooltip"}},[t._v("Powered by PixelFed")])])])])}],!1,null,"71162255",null);e.default=n.exports},KqaD:function(t,e,s){Vue.component("notification-card",s("x6yo").default),Vue.component("photo-presenter",s("d+I4").default),Vue.component("video-presenter",s("2Jpm").default),Vue.component("photo-album-presenter",s("Mrqh").default),Vue.component("video-album-presenter",s("9wGH").default),Vue.component("mixed-album-presenter",s("exej").default),Vue.component("post-menu",s("yric").default),Vue.component("timeline",s("KhVi").default)},MGqI:function(t,e,s){var i=s("AD4z");"string"==typeof i&&(i=[[t.i,i,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(i,a);i.locals&&(t.exports=i.locals)},Mrqh:function(t,e,s){"use strict";s.r(e);var i={props:["status"],data:function(){return{cursor:0}}},a=(s("kAaE"),s("KHd+")),o=Object(a.a)(i,function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","min-height":"330px",display:"flex","align-items":"center"},attrs:{id:t.status.id+"-carousel",controls:"",background:"#ffffff",interval:0},model:{value:t.cursor,callback:function(e){t.cursor=e},expression:"cursor"}},[t._l(t.status.media_attachments,function(e,i){return s("b-carousel-slide",{key:e.id},[s("div",{class:e.filter_class+" d-block mx-auto text-center",staticStyle:{"max-height":"600px"},attrs:{slot:"img"},on:{click:function(e){return t.$emit("lightbox",t.status.media_attachments[i])}},slot:"img"},[s("img",{staticClass:"img-fluid",staticStyle:{"max-height":"600px"},attrs:{src:e.url,alt:e.description,title:e.description,loading:"lazy"},on:{click:function(e){return t.$emit("lightbox",t.status.media_attachments[i])}}})])])}),t._v(" "),s("span",{staticClass:"badge badge-dark box-shadow",staticStyle:{position:"absolute",top:"10px",right:"10px"}},[t._v("\n\t\t\t\t"+t._s(t.cursor+1)+" / "+t._s(t.status.media_attachments.length)+"\n\t\t\t")])],2)],1)]):s("div",[s("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","min-height":"330px",display:"flex","align-items":"center"},attrs:{id:t.status.id+"-carousel",controls:"",background:"#ffffff",interval:0},model:{value:t.cursor,callback:function(e){t.cursor=e},expression:"cursor"}},[t._l(t.status.media_attachments,function(e,i){return s("b-carousel-slide",{key:e.id,attrs:{alt:e.description,title:e.description}},[s("div",{class:e.filter_class+" d-block mx-auto text-center",staticStyle:{"max-height":"600px"},attrs:{slot:"img"},on:{click:function(e){return t.$emit("lightbox",t.status.media_attachments[i])}},slot:"img"},[s("img",{staticClass:"img-fluid",staticStyle:{"max-height":"600px"},attrs:{src:e.url,loading:"lazy"}})])])}),t._v(" "),s("span",{staticClass:"badge badge-dark box-shadow",staticStyle:{position:"absolute",top:"10px",right:"10px"}},[t._v("\n\t\t\t"+t._s(t.cursor+1)+" / "+t._s(t.status.media_attachments.length)+"\n\t\t")])],2)],1)},[],!1,null,"8db4cfae",null);e.default=o.exports},U94k:function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-34cc44d8] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n",""])},"V/1n":function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-8db4cfae] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n",""])},YqIb:function(t,e,s){var i=s("U94k");"string"==typeof i&&(i=[[t.i,i,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(i,a);i.locals&&(t.exports=i.locals)},"aET+":function(t,e,s){var i,a,o={},n=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===a&&(a=i.apply(this,arguments)),a}),r=function(t){var e={};return function(t,s){if("function"==typeof t)return t();if(void 0===e[t]){var i=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,s);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}}(),l=null,c=0,d=[],u=s("9tPo");function f(t,e){for(var s=0;s=0&&d.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=function(){0;return s.nc}();i&&(t.attrs.nonce=i)}return g(e,t.attrs),p(t,e),e}function g(t,e){Object.keys(e).forEach(function(s){t.setAttribute(s,e[s])})}function _(t,e){var s,i,a,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var n=c++;s=l||(l=v(e)),i=x.bind(null,s,n,!1),a=x.bind(null,s,n,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(s=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),p(t,e),e}(e),i=function(t,e,s){var i=s.css,a=s.sourceMap,o=void 0===e.convertToAbsoluteUrls&&a;(e.convertToAbsoluteUrls||o)&&(i=u(i));a&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var n=new Blob([i],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(n),r&&URL.revokeObjectURL(r)}.bind(null,s,e),a=function(){h(s),s.href&&URL.revokeObjectURL(s.href)}):(s=v(e),i=function(t,e){var s=e.css,i=e.media;i&&t.setAttribute("media",i);if(t.styleSheet)t.styleSheet.cssText=s;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(s))}}.bind(null,s),a=function(){h(s)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else a()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=n()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var s=m(t,e);return f(s,e),function(t){for(var i=[],a=0;a767&&this.fetchNotifications()},updated:function(){$('[data-toggle="tooltip"]').tooltip()},methods:{fetchNotifications:function(){var t=this;axios.get("/api/v1/notifications").then(function(e){var s=e.data.filter(function(t){return!("share"==t.type&&!status)}),a=e.data.map(function(t){return t.id});t.notificationMaxId=Math.max.apply(Math,i(a)),t.notifications=s,$(".notification-card .loader").addClass("d-none"),$(".notification-card .contents").removeClass("d-none"),t.notificationPoll()})},infiniteNotifications:function(t){var e=this;this.notificationCursor>10?t.complete():axios.get("/api/v1/notifications",{params:{page:this.notificationCursor}}).then(function(s){if(s.data.length){var a,o=s.data.filter(function(t){return!("share"==t.type&&!status)});(a=e.notifications).push.apply(a,i(o)),e.notificationCursor++,t.loaded()}else t.complete()})},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),i=Math.floor(s/31536e3);return i>=1?i+"y":(i=Math.floor(s/604800))>=1?i+"w":(i=Math.floor(s/86400))>=1?i+"d":(i=Math.floor(s/3600))>=1?i+"h":(i=Math.floor(s/60))>=1?i+"m":Math.floor(s)+"s"},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},notificationPoll:function(){var t=this.notifications.length>5?15e3:12e4,e=this;setInterval(function(){axios.get("/api/v1/notifications").then(function(t){var s=t.data.filter(function(t){return!("share"==t.type||e.notificationMaxId>=t.id)});if(s.length){var a,o=s.map(function(t){return t.id});e.notificationMaxId=Math.max.apply(Math,i(o)),(a=e.notifications).unshift.apply(a,i(s));var n=new Audio("/static/beep.mp3");n.volume=.7,n.play(),$(".notification-card .far.fa-bell").addClass("fas text-danger").removeClass("far text-muted")}})},t)}}},o=s("KHd+"),n=Object(o.a)(a,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"card notification-card"},[t._m(0),t._v(" "),t._m(1),t._v(" "),s("div",{staticClass:"card-body pt-2 px-0 contents",staticStyle:{"max-height":"230px","overflow-y":"scroll"}},[t._l(t.notifications,function(e,i){return t.notifications.length>0?s("div",{staticClass:"media mb-4 align-items-center px-3"},[s("img",{staticClass:"mr-2 rounded-circle",staticStyle:{border:"1px solid #ccc"},attrs:{src:e.account.avatar,alt:"",width:"32px",height:"32px"}}),t._v(" "),s("div",{staticClass:"media-body font-weight-light small"},["favourite"==e.type?s("div",[s("p",{staticClass:"my-0"},[s("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,"data-placement":"bottom","data-toggle":"tooltip",title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" liked your "),s("a",{staticClass:"font-weight-bold",attrs:{href:e.status.url}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t")])]):"comment"==e.type?s("div",[s("p",{staticClass:"my-0"},[s("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,"data-placement":"bottom","data-toggle":"tooltip",title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" commented on your "),s("a",{staticClass:"font-weight-bold",attrs:{href:e.status.url}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t")])]):"mention"==e.type?s("div",[s("p",{staticClass:"my-0"},[s("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,"data-placement":"bottom","data-toggle":"tooltip",title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" "),s("a",{staticClass:"font-weight-bold",attrs:{href:t.mentionUrl(e.status)}},[t._v("mentioned")]),t._v(" you.\n\t\t\t\t\t\t")])]):"follow"==e.type?s("div",[s("p",{staticClass:"my-0"},[s("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,"data-placement":"bottom","data-toggle":"tooltip",title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" followed you.\n\t\t\t\t\t\t")])]):"share"==e.type?s("div",[s("p",{staticClass:"my-0"},[s("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,"data-placement":"bottom","data-toggle":"tooltip",title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" shared your "),s("a",{staticClass:"font-weight-bold",attrs:{href:e.status.reblog.url}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t")])]):t._e()]),t._v(" "),s("div",{staticClass:"small text-muted",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:e.created_at}},[t._v(t._s(t.timeAgo(e.created_at)))])]):t._e()}),t._v(" "),t.notifications.length?s("div",[s("infinite-loading",{on:{infinite:t.infiniteNotifications}},[s("div",{staticClass:"font-weight-bold",attrs:{slot:"no-results"},slot:"no-results"}),t._v(" "),s("div",{staticClass:"font-weight-bold",attrs:{slot:"no-more"},slot:"no-more"})])],1):t._e(),t._v(" "),0==t.notifications.length?s("div",{staticClass:"text-lighter text-center py-3"},[t._m(2),t._v(" "),s("p",{staticClass:"mb-0 small font-weight-bold"},[t._v("0 Notifications!")])]):t._e()],2)])])},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header bg-white"},[e("p",{staticClass:"mb-0 d-flex align-items-center justify-content-between"},[e("span",[e("i",{staticClass:"far fa-bell fa-lg text-muted"})]),this._v(" "),e("span",{staticClass:"small text-dark text-uppercase font-weight-bold"},[this._v("Alerts")]),this._v(" "),e("a",{staticClass:"text-decoration-none text-muted",attrs:{href:"/account/activity"}},[e("i",{staticClass:"fas fa-inbox fa-lg"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-body loader text-center",staticStyle:{height:"230px"}},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0"},[e("i",{staticClass:"fas fa-inbox fa-3x"})])}],!1,null,"050a3d1d",null);e.default=n.exports},yric:function(t,e,s){"use strict";s.r(e);var i={props:["feed","status","profile","size","modal"],methods:{reportUrl:function(t){return"/i/report?type="+(t.in_reply_to?"comment":"post")+"&id="+t.id},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},editUrl:function(t){return t.url+"/edit"},redirect:function(t){window.location.href=t},replyUrl:function(t){return"/p/"+this.profile.username+"/"+(t.account.id==this.profile.id?t.id:t.in_reply_to_id)},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},statusOwner:function(t){return parseInt(t.account.id)==parseInt(this.profile.id)},deletePost:function(){this.$emit("deletePost"),$("#mt_pid_"+this.status.id).modal("hide")},moderatePost:function(t,e,s){var i=t.account.username;switch(e){case"autocw":var a="Are you sure you want to enforce CW for "+i+" ?";swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":a="Are you sure you want to suspend the account of "+i+" ?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0})}}}},a=(s("Ht21"),s("KHd+")),o=Object(a.a)(i,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",["true"!=t.modal?s("div",{staticClass:"dropdown"},[s("button",{staticClass:"btn btn-link text-dark no-caret dropdown-toggle py-0",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"Post options"}},[s("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right"},[s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Go to post")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",attrs:{href:"#"}},[t._v("Share")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",attrs:{href:"#"}},[t._v("Embed")]),t._v(" "),0==t.statusOwner(t.status)?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl(t.status)}},[t._v("Report")])]):t._e(),t._v(" "),1==t.statusOwner(t.status)?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.muteProfile(t.status)}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.blockProfile(t.status)}}},[t._v("Block Profile")])]):t._e(),t._v(" "),1==t.profile.is_admin?s("span",[s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-danger text-decoration-none",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")]),t._v(" "),s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("h6",{staticClass:"dropdown-header"},[t._v("Mod Tools")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"autocw")}}},[s("p",{staticClass:"mb-0"},[t._v("Enforce CW")]),t._v(" "),t._m(0)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"noautolink")}}},[s("p",{staticClass:"mb-0"},[t._v("No Autolinking")]),t._v(" "),t._m(1)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"unlisted")}}},[s("p",{staticClass:"mb-0"},[t._v("Unlisted Posts")]),t._v(" "),t._m(2)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"disable")}}},[s("p",{staticClass:"mb-0"},[t._v("Disable Account")]),t._v(" "),t._m(3)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"suspend")}}},[s("p",{staticClass:"mb-0"},[t._v("Suspend Account")]),t._v(" "),t._m(4)])]):t._e()])]):t._e(),t._v(" "),"true"==t.modal?s("div",[s("span",{attrs:{"data-toggle":"modal","data-target":"#mt_pid_"+t.status.id}},[s("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),s("div",{staticClass:"modal",attrs:{tabindex:"-1",role:"dialog",id:"mt_pid_"+t.status.id}},[s("div",{staticClass:"modal-dialog modal-sm",attrs:{role:"document"}},[s("div",{staticClass:"modal-content"},[s("div",{staticClass:"modal-body"},[s("div",{staticClass:"list-group"},[s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Go to post")]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Share")]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Embed")]),t._v(" "),0==t.statusOwner(t.status)?s("span",[s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:t.reportUrl(t.status)}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.muteProfile(t.status)}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.blockProfile(t.status)}}},[t._v("Block Profile")])]):t._e(),t._v(" "),1==t.statusOwner(t.status)||1==t.profile.is_admin?s("span",[s("a",{staticClass:"list-group-item font-weight-bold text-danger text-decoration-none",on:{click:t.deletePost}},[t._v("Delete")])]):t._e(),t._v(" "),1==t.profile.is_admin?s("span",[s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"autocw")}}},[s("p",{staticClass:"mb-0"},[t._v("Enforce CW")]),t._v(" "),t._m(5)]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"noautolink")}}},[s("p",{staticClass:"mb-0"},[t._v("No Autolinking")]),t._v(" "),t._m(6)]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"unlisted")}}},[s("p",{staticClass:"mb-0"},[t._v("Unlisted Posts")]),t._v(" "),t._m(7)]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"disable")}}},[s("p",{staticClass:"mb-0"},[t._v("Disable Account")]),t._v(" "),t._m(8)]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"suspend")}}},[s("p",{staticClass:"mb-0"},[t._v("Suspend Account")]),t._v(" "),t._m(9)])]):t._e()])])])])])]):t._e()])},[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Adds a CW to every post "),e("br"),this._v(" made by this account.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Do not transform mentions, "),e("br"),this._v(" hashtags or urls into HTML.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Removes account from "),e("br"),this._v(" public/network timelines.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Temporarily disable account "),e("br"),this._v(" until next time user log in.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("This prevents any new interactions, "),e("br"),this._v(" without deleting existing data.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Adds a CW to every post "),e("br"),this._v(" made by this account.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Do not transform mentions, "),e("br"),this._v(" hashtags or urls into HTML.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Removes account from "),e("br"),this._v(" public/network timelines.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Temporarily disable account "),e("br"),this._v(" until next time user log in.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("This prevents any new interactions, "),e("br"),this._v(" without deleting existing data.")])}],!1,null,"40fdc9a4",null);e.default=o.exports}});
\ No newline at end of file
diff --git a/public/mix-manifest.json b/public/mix-manifest.json
index 0cc43901d..6f425d310 100644
--- a/public/mix-manifest.json
+++ b/public/mix-manifest.json
@@ -1,15 +1,15 @@
{
"/js/activity.js": "/js/activity.js?id=7915246c3bc2b7e9770e",
"/js/app.js": "/js/app.js?id=1f05f00eec0e86f49dd4",
- "/css/app.css": "/css/app.css?id=b407fd02a5b7526f85b4",
- "/css/appdark.css": "/css/appdark.css?id=b4a7cf4f8dd06abe699e",
+ "/css/app.css": "/css/app.css?id=3a974ff74b6b5905a73c",
+ "/css/appdark.css": "/css/appdark.css?id=107806a000e2ca675a3c",
"/css/landing.css": "/css/landing.css?id=d3610108213e88dc080c",
"/js/components.js": "/js/components.js?id=25d082643150ee79150c",
- "/js/compose.js": "/js/compose.js?id=4d8c53b4575f463214f2",
+ "/js/compose.js": "/js/compose.js?id=9ca175b3e11908bd592f",
"/js/developers.js": "/js/developers.js?id=1359f11c7349301903f8",
"/js/discover.js": "/js/discover.js?id=75fb12b06ee23fa05186",
- "/js/profile.js": "/js/profile.js?id=b267c34e3f9168a8b307",
+ "/js/profile.js": "/js/profile.js?id=6386a007bdb1796dcc80",
"/js/search.js": "/js/search.js?id=0d3d080dc05f4f49b204",
- "/js/status.js": "/js/status.js?id=bf48fe9060a74d1180f2",
- "/js/timeline.js": "/js/timeline.js?id=ded47e282e9b3339c1fd"
+ "/js/status.js": "/js/status.js?id=a95243f92346f1724a35",
+ "/js/timeline.js": "/js/timeline.js?id=265d634706cec1b2653d"
}
diff --git a/resources/assets/js/components/ComposeModal.vue b/resources/assets/js/components/ComposeModal.vue
index e57369896..62762b549 100644
--- a/resources/assets/js/components/ComposeModal.vue
+++ b/resources/assets/js/components/ComposeModal.vue
@@ -34,10 +34,10 @@
-
+ + {{reply.account.username}} + + + + +
+
+
+