From 240e36ed45a05a6f9fa77c99b9167c809d650c0a Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 30 Jan 2021 18:14:04 -0700 Subject: [PATCH 1/4] Update AP helpers --- app/Util/ActivityPub/Helpers.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index 2291b977..3f37f44b 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -326,16 +326,15 @@ class Helpers { if(isset($activity['object']['attributedTo'])) { $actorDomain = parse_url($activity['object']['attributedTo'], PHP_URL_HOST); if(!self::validateUrl($activity['object']['attributedTo']) || - $idDomain !== $actorDomain) + $idDomain !== $actorDomain || + $actorDomain !== $urlDomain + ) { return; } } - if( - $idDomain !== $urlDomain || - $actorDomain !== $urlDomain - ) { + if($idDomain !== $urlDomain) { return; } From 7768e8448580d18480ac3b6dc149eff4bb1ad1aa Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 30 Jan 2021 18:15:34 -0700 Subject: [PATCH 2/4] Update Timeline.vue, fix hashtag status previews --- resources/assets/js/components/Timeline.vue | 27 ++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index 71f94bd6..35e37196 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -79,14 +79,35 @@
-
+
+
+
+ + + +
+
+ +
+
+ +
- {{tag.status.like_count}} + {{formatCount(tag.status.favourites_count)}} - {{tag.status.share_count}} + {{formatCount(tag.status.reply_count)}}
From 55248ef092f21af3831046ae3049458dc8b98ea3 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 30 Jan 2021 18:16:26 -0700 Subject: [PATCH 3/4] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e28c0c8c..01b293c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ - Updated Blurhash util, add default hash for invalid media. ([38a37c15](https://github.com/pixelfed/pixelfed/commit/38a37c15)) - Updated VideoThumbnail job, generate blurhash for videos. ([896452c7](https://github.com/pixelfed/pixelfed/commit/896452c7)) - Updated MediaTransformers, add default blurhash attribute. ([3f14a4c4](https://github.com/pixelfed/pixelfed/commit/3f14a4c4)) +- Updated Timeline.vue, fix hashtag status previews. ([7768e844](https://github.com/pixelfed/pixelfed/commit/7768e844)) ## [v0.10.10 (2021-01-28)](https://github.com/pixelfed/pixelfed/compare/v0.10.9...v0.10.10) ### Added From 69d7f7e452d23cb836a270df5944121b787e59e2 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 30 Jan 2021 18:16:40 -0700 Subject: [PATCH 4/4] Update compiled assets --- public/js/timeline.js | 2 +- public/mix-manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/timeline.js b/public/js/timeline.js index eea9a2a4..88c6aa1c 100644 --- a/public/js/timeline.js +++ b/public/js/timeline.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"2Jpm":function(t,e,n){"use strict";n.r(e);var i={props:["status"],methods:{playOrPause:function(t){var e=t.target;1==e.getAttribute("playing")?(e.removeAttribute("playing"),e.pause()):(e.setAttribute("playing",1),e.play())}}},s=n("KHd+"),a=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1==t.status.sensitive?n("div",[n("details",{staticClass:"details-animated"},[n("summary",[n("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(" "),n("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),n("div",{staticClass:"embed-responsive embed-responsive-1by1"},[n("video",{staticClass:"video",attrs:{preload:"none",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id},on:{click:function(e){return t.playOrPause(e)}}},[n("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])])]):n("div",{staticClass:"embed-responsive embed-responsive-16by9"},[n("video",{staticClass:"video",attrs:{controls:"",preload:"metadata",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id}},[n("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])}),[],!1,null,null,null);e.default=a.exports},"3GYK":function(t,e,n){"use strict";var i=n("d6It");n.n(i).a},6:function(t,e,n){t.exports=n("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 n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var s,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:(s=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:i+a.replace(/^\.\//,""),"url("+JSON.stringify(s)+")")}))}},"9wGH":function(t,e,n){"use strict";n.r(e);var i={props:["status"]},s=n("KHd+"),a=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1==t.status.sensitive?n("div",[n("details",{staticClass:"details-animated"},[n("summary",[n("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(" "),n("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),n("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 n("b-carousel-slide",{key:t.id+"-media"},[n("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[n("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):n("div",[n("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 n("b-carousel-slide",{key:t.id+"-media"},[n("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[n("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)}),[],!1,null,null,null);e.default=a.exports},B6o4:function(t,e,n){"use strict";var i=n("CcmX");n.n(i).a},BF29:function(t,e,n){var i=n("Oa72");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},BUee:function(t,e,n){var i=n("DAU9");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},CcmX:function(t,e,n){var i=n("YG3N");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},DAU9:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n#storyContainer .story {\n\tmargin-right: 2rem;\n\twidth: 100%;\n\tmax-width: 60px;\n}\n.stories.carousel .story > .item-link > .item-preview {\n\theight: 60px;\n}\n#zuck-modal.with-effects {\n\twidth: 100%;\n}\n.stories.carousel .story > .item-link > .info .name {\n\tfont-weight: 500;\n\tfont-size: 11px;\n}\n.stories.carousel .story > .item-link > .info {\n}\n",""])},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var s=(o=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),a=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[n].concat(a).concat([s]).join("\n")}var o;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},s=0;s40&&(this.loading=!1,t.complete());var n=!1;switch(this.scope){case"home":n="/api/pixelfed/v1/timelines/home";break;case"local":n="/api/pixelfed/v1/timelines/public";break;case"network":n="/api/pixelfed/v1/timelines/network"}axios.get(n,{params:{max_id:this.max_id,limit:6}}).then((function(n){if(n.data.length&&0==e.loading){var s=n.data,a=e;s.forEach((function(t,e){-1==a.ids.indexOf(t.id)&&(a.feed.push(t),a.ids.push(t.id),axios.post("/api/status/view",{status_id:t.id,profile_id:t.account.id}))})),e.min_id=Math.max.apply(Math,i(e.ids)).toString(),e.max_id=Math.min.apply(Math,i(e.ids)).toString(),e.page+=1,t.loaded(),e.loading=!1}else t.complete()})).catch((function(n){e.loading=!1,t.complete()}))}},reportUrl:function(t){return"/i/report?type="+(t.in_reply_to?"comment":"post")+"&id="+t.id},commentFocus:function(t,e){t.comments_disabled||(this.status&&this.status.id==t.id?this.$refs.replyModal.show():(this.status=t,this.replies={},this.replyStatus={},this.replyText="",this.replyId=t.id,this.replyStatus=t,this.$refs.replyModal.show(),this.fetchStatusComments(t,"")))},likeStatus:function(t,e){if(0!=$("body").hasClass("loggedIn")){var n=t.favourites_count;t.favourited=!t.favourited,axios.post("/i/like",{item:t.id}).then((function(e){t.favourites_count=e.data.count})).catch((function(e){t.favourited=!t.favourited,t.favourites_count=n,swal("Error","Something went wrong, please try again later.","error")})),window.navigator.vibrate(200),t.favourited&&setTimeout((function(){e.target.classList.add("animate__animated","animate__bounce")}),100)}},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()},redirect:function(t){window.location.href=t},statusOwner:function(t){return t.account.id==this.profile.id},fetchStatusComments:function(t,e){var n=this;axios.get("/api/v2/status/"+t.id+"/replies").then((function(t){var e=t.data.filter((function(t){return 0==t.sensitive}));n.replies=_.reverse(e),setTimeout((function(){document.querySelectorAll(".timeline .card-body .comments .comment-body a").forEach((function(t,e){t.href=App.util.format.rewriteLinks(t)}))}),500)})).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(n){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(n){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){var e=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(n){e.feed=e.feed.filter((function(e){return e.id!=t.id})),e.$refs.ctxModal.hide()})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},commentSubmit:function(t,e){var n=this;this.replySending=!0;var i=t.id,s=this.replyText,a=this.config.uploader.max_caption_length;if(s.length>a)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+a+" characters or less.","error");axios.post("/i/comment",{item:i,comment:s,sensitive:this.replyNsfw}).then((function(t){n.replyText="",n.replies.unshift(t.data.entity),n.$refs.replyModal.hide()})),this.replySending=!1},moderatePost:function(t,e,n){var i=this,s=(t.account.username,""),a=this;switch(e){case"addcw":s="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(n){n&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!0,a.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),a.ctxModMenuClose()}))}));break;case"remcw":s="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(n){n&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!1,a.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),a.ctxModMenuClose()}))}));break;case"unlist":s="Are you sure you want to unlist this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(n){n&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){i.feed=i.feed.filter((function(e){return e.id!=t.id})),swal("Success","Successfully unlisted post","success"),a.ctxModMenuClose()})).catch((function(t){a.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}))}},followingModal:function(){var t=this;this.following.length>0||(axios.get("/api/pixelfed/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||(axios.get("/api/pixelfed/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/pixelfed/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor}}).then((function(e){var n;e.data.length>0&&((n=t.following).push.apply(n,i(e.data)),t.followingCursor++);e.data.length<10&&(t.followingMore=!1)}))},followersLoadMore:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then((function(e){var n;e.data.length>0&&((n=t.followers).push.apply(n,i(e.data)),t.followerCursor++);e.data.length<10&&(t.followerMore=!1)}))},lightbox:function(t){window.location.href=t.media_attachments[0].url},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){},followAction:function(t){var e=this,n=t.account.id;axios.post("/i/follow",{item:n}).then((function(i){e.feed.forEach((function(t){t.account.id==n&&(t.account.relationship.following=!t.account.relationship.following)}));var s=t.account.acct;t.account.relationship.following?swal("Follow successful!","You are now following "+s,"success"):swal("Unfollow successful!","You are no longer following "+s,"success")})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},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())},refreshSuggestions:function(){},fetchHashtagPosts:function(){var t=this;axios.get("/api/local/discover/tag/list").then((function(e){var n=e.data;if(0!=n.length){var i=n[Math.floor(Math.random(),n.length)];t.hashtagPostsName=i,axios.get("/api/v2/discover/tag",{params:{hashtag:i}}).then((function(e){e.data.tags.length>3&&(t.showHashtagPosts=!0,t.hashtagPosts=e.data.tags.splice(0,3))}))}}))},ctxMenu:function(t){var e=this;this.ctxMenuStatus=t,this.ctxEmbedPayload=window.App.util.embed.post(t.url),t.account.id==this.profile.id?(this.ctxMenuRelationship=!1,this.$refs.ctxModal.show()):axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":t.account.id}}).then((function(t){e.ctxMenuRelationship=t.data[0],e.$refs.ctxModal.show()}))},closeCtxMenu:function(t){this.copiedEmbed=!1,this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeCtxMenu()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;window.location.href=this.statusUrl(t),this.closeCtxMenu()},ctxMenuFollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var n=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+n,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var n=t.ctxMenuStatus.account.acct;"home"==t.scope&&(t.feed=t.feed.filter((function(e){return e.account.id!=t.ctxMenuStatus.account.id}))),t.closeCtxMenu(),setTimeout((function(){swal("Unfollow successful!","You are no longer following "+n,"success")}),500)}))},ctxMenuReportPost:function(){window.location.href="/i/report?type=post&id="+this.ctxMenuStatus.id},ctxMenuEmbed:function(){this.$refs.ctxModal.hide(),this.$refs.ctxEmbedModal.show()},ctxMenuShare:function(){this.$refs.ctxModal.hide(),this.$refs.ctxShareModal.show()},closeCtxShareMenu:function(){this.$refs.ctxShareModal.hide(),this.$refs.ctxModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.ctxEmbedShowCaption=!0,this.ctxEmbedShowLikes=!1,this.ctxEmbedCompactMode=!1,this.$refs.ctxEmbedModal.hide()},ctxModMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModMenu:function(){this.$refs.ctxModal.hide()},ctxModMenuClose:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide()},formatCount:function(t){return App.util.format.count(t)},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},statusCardUsernameFormat:function(t){if(1==t.account.local)return t.account.username;var e=window.App.config.username.remote.format,n=window.App.config.username.remote.custom,i=t.account.username,s=document.createElement("a");switch(s.href=t.account.url,s=s.hostname,e){case"@":return i+'@'+s+"";case"from":return i+' from '+s+"";case"custom":return i+' '+n+" "+s+"";default:return i+'@'+s+""}},previewUrl:function(t){return t.sensitive?"/storage/no-preview.png?v="+(new Date).getTime():t.media_attachments[0].preview_url},previewBackground:function(t){return"background-image: url("+this.previewUrl(t)+");"},trimCaption:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;return _.truncate(t,{length:e})},hasStory:function(){var t=this;axios.get("/api/stories/v0/exists/"+this.profile.id).then((function(e){t.userStory=e.data}))},rtw:function(){var t=this;this.mpPoller=setInterval((function(){var e=!1;switch(t.mpCount++,t.mpCount>10&&(t.mpInterval=3e4),t.mpCount>50&&(t.mpInterval=3e5),t.scope){case"home":e="/api/pixelfed/v1/timelines/home";break;case"local":e="/api/pixelfed/v1/timelines/public";break;case"network":e="/api/pixelfed/v1/timelines/network"}axios.get(e,{params:{max_id:0,limit:20}}).then((function(e){var n=t,s=t.feed.map((function(t){return t.id})),a=e.data.filter((function(t){return t.id>n.min_id&&-1==s.indexOf(t.id)})),o=a.map((function(t){return t.id}));Math.max.apply(Math,i(o)).toString()>t.min_id&&(t.morePostsAvailable=!0,t.mpData=a)}))}),this.mpInterval)},syncNewPosts:function(){var t,e=this.mpData,n=e.map((function(t){return t.id}));this.min_id=Math.max.apply(Math,i(n)).toString(),this.max_id=Math.min.apply(Math,i(n)).toString(),(t=this.feed).unshift.apply(t,i(e)),this.morePostsAvailable=!1,this.mpData=null},switchFeedLayout:function(t){this.loading=!0,this.layout=t;var e=this;setTimeout((function(){e.loading=!1}),500)},labelRedirect:function(t){var e="/i/redirect?url="+encodeURI(this.config.features.label.covid.url);window.location.href=e}},beforeDestroy:function(){clearInterval(this.mpInterval)}},a=(n("Uxyw"),n("KHd+")),o=Object(a.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},["feed"===t.layout?n("div",{staticClass:"row"},[1==t.morePostsAvailable?n("div",{staticClass:"col-12 mt-5 pt-3 mb-3 fixed-top"},[n("p",{staticClass:"text-center"},[n("button",{staticClass:"btn btn-dark px-4 rounded-pill font-weight-bold shadow",on:{click:t.syncNewPosts}},[t._v("Load New Posts")])])]):t._e(),t._v(" "),n("div",{staticClass:"d-none col-12 pl-3 pl-md-0 pt-3 pl-0"},[n("div",{staticClass:"d-none d-md-flex justify-content-between align-items-center"},[n("p",{staticClass:"lead text-muted mb-0"},[n("i",{class:["home"==t.scope?"fas fa-home":"fas fa-stream"]}),t._v("   "+t._s("local"==t.scope?"Public":"Home")+" Timeline")]),t._v(" "),n("p",{staticClass:"mb-0"},[n("span",{staticClass:"btn-group"},[n("a",{class:["feed"==t.layout?"btn btn-sm btn-outline-primary font-weight-bold text-decoration-none":"btn btn-sm btn-outline-lighter font-weight-light text-decoration-none"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchFeedLayout("feed")}}},[n("i",{staticClass:"fas fa-list"})]),t._v(" "),n("a",{class:["feed"!==t.layout?"btn btn-sm btn-outline-primary font-weight-bold text-decoration-none":"btn btn-sm btn-outline-lighter font-weight-light text-decoration-none"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchFeedLayout("grid")}}},[n("i",{staticClass:"fas fa-th"})])])]),t._v(" "),t._m(0)]),t._v(" "),n("hr")]),t._v(" "),n("div",{staticClass:"col-md-8 col-lg-8 px-0 mb-sm-3 timeline order-2 order-md-1"},[n("div",{staticStyle:{"margin-top":"-2px"}},[t.config.features.stories?n("story-component"):t._e()],1),t._v(" "),n("div",[t.loading?n("div",{staticClass:"text-center",staticStyle:{"padding-top":"10px"}},[t._m(1)]):t._e(),t._v(" "),t._l(t.feed,(function(e,i){return n("div",{key:i+"-"+e.id,attrs:{"data-status-id":e.id}},[0==i&&t.showTips&&!t.loading?n("div",{staticClass:"my-4 card-tips"},[n("announcements-card",{on:{"show-tips":function(e){t.showTips=e}}})],1):t._e(),t._v(" "),2==i&&1==t.showSuggestions&&t.suggestions.length?n("div",{staticClass:"card mb-sm-4 status-card card-md-rounded-0 shadow-none border"},[n("div",{staticClass:"card-header d-flex align-items-center justify-content-between bg-white border-0 pb-0"},[n("h6",{staticClass:"text-muted font-weight-bold mb-0"},[t._v("Suggestions For You")]),t._v(" "),n("span",{staticClass:"cursor-pointer text-muted",on:{click:t.hideSuggestions}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),n("div",{staticClass:"card-body row mx-0"},t._l(t.suggestions,(function(e,i){return n("div",{staticClass:"col-12 col-md-4 mb-3"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-body text-center pt-3"},[n("p",{staticClass:"mb-0"},[n("a",{attrs:{href:"/"+e.username}},[n("img",{staticClass:"img-fluid rounded-circle cursor-pointer",attrs:{src:e.avatar,width:"45px",height:"45px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})])]),t._v(" "),n("div",{staticClass:"py-3"},[n("p",{staticClass:"font-weight-bold text-dark cursor-pointer mb-0"},[n("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"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),n("p",{staticClass:"small text-muted mb-0"},[t._v(t._s(e.message))])]),t._v(" "),n("p",{staticClass:"mb-0"},[n("a",{staticClass:"btn btn-primary btn-block font-weight-bold py-0",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.expRecFollow(e.id,i)}}},[t._v("Follow")])])])])])})),0)]):t._e(),t._v(" "),4==i&&t.showHashtagPosts&&t.hashtagPosts.length?n("div",{staticClass:"card mb-sm-4 status-card card-md-rounded-0 shadow-none border"},[n("div",{staticClass:"card-header d-flex align-items-center justify-content-between bg-white border-0 pb-0"},[n("span"),t._v(" "),n("h6",{staticClass:"text-muted font-weight-bold mb-0"},[n("a",{attrs:{href:"/discover/tags/"+t.hashtagPostsName+"?src=tr"}},[t._v("#"+t._s(t.hashtagPostsName))])]),t._v(" "),n("span",{staticClass:"cursor-pointer text-muted",on:{click:function(e){t.showHashtagPosts=!1}}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),n("div",{staticClass:"card-body row mx-0"},t._l(t.hashtagPosts,(function(e,i){return n("div",{staticClass:"col-4 p-0 p-sm-2 p-md-3 hashtag-post-square"},[n("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:e.status.url}},[n("div",{class:[e.status.filter?"square "+e.status.filter:"square"]},[n("div",{staticClass:"square-content",style:"background-image: url("+e.status.thumb+")"}),t._v(" "),n("div",{staticClass:"info-overlay-text"},[n("h5",{staticClass:"text-white m-auto font-weight-bold"},[n("span",{staticClass:"pr-4"},[n("span",{staticClass:"far fa-heart fa-lg pr-1"}),t._v(" "+t._s(e.status.like_count)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),n("span",[n("span",{staticClass:"fas fa-retweet fa-lg pr-1"}),t._v(" "+t._s(e.status.share_count)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t")])])])])])])})),0)]):t._e(),t._v(" "),n("div",{class:0==i?"card mb-sm-4 status-card card-md-rounded-0 shadow-none border mt-md-4":"card mb-sm-4 status-card card-md-rounded-0 shadow-none border"},[e?n("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[n("div",[n("img",{staticClass:"rounded-circle box-shadow",attrs:{src:e.account.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]),t._v(" "),n("div",{staticClass:"pl-2"},[n("a",{staticClass:"username font-weight-bold text-dark text-decoration-none",attrs:{href:t.profileUrl(e)},domProps:{innerHTML:t._s(t.statusCardUsernameFormat(e))}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\tLoading...\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e.account.is_admin?n("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[n("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),n("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),n("div",{staticClass:"d-flex align-items-center"},[e.place?n("a",{staticClass:"small text-decoration-none text-muted",attrs:{href:"/discover/places/"+e.place.id+"/"+e.place.slug,title:"Location","data-toggle":"tooltip"}},[n("i",{staticClass:"fas fa-map-marked-alt"}),t._v(" "+t._s(e.place.name)+", "+t._s(e.place.country))]):t._e()])]),t._v(" "),n("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[n("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(n){return t.ctxMenu(e)}}},[n("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),n("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]):t._e(),t._v(" "),n("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},[t.config.ab.top&&"text"===e.pf_type?n("div",{staticClass:"w-100"},[n("div",{staticClass:"w-100 card-img-top border-bottom rounded-0",staticStyle:{"background-image":"url(/storage/textimg/bg_1.jpg)","background-size":"cover",width:"100%",height:"540px"}},[n("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center"},[n("p",{staticClass:"text-center text-break h3 px-5 font-weight-bold",domProps:{innerHTML:t._s(e.content)}})])])]):"photo"===e.pf_type?n("div",{staticClass:"w-100"},[n("photo-presenter",{attrs:{status:e},on:{lightbox:t.lightbox}})],1):"video"===e.pf_type?n("div",{staticClass:"w-100"},[n("video-presenter",{attrs:{status:e}})],1):"photo:album"===e.pf_type?n("div",{staticClass:"w-100"},[n("photo-album-presenter",{attrs:{status:e},on:{lightbox:t.lightbox}})],1):"video:album"===e.pf_type?n("div",{staticClass:"w-100"},[n("video-album-presenter",{attrs:{status:e}})],1):"photo:video:album"===e.pf_type?n("div",{staticClass:"w-100"},[n("mixed-album-presenter",{attrs:{status:e},on:{lightbox:t.lightbox}})],1):n("div",{staticClass:"w-100"},[n("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])]),t._v(" "),t.config.features.label.covid.enabled&&e.label&&1==e.label.covid?n("div",{staticClass:"card-body border-top border-bottom py-2 cursor-pointer pr-2",on:{click:function(e){return t.labelRedirect()}}},[n("p",{staticClass:"font-weight-bold d-flex justify-content-between align-items-center mb-0"},[n("span",[n("i",{staticClass:"fas fa-info-circle mr-2"}),t._v("\n\t\t\t\t\t\t\t\t\tFor information about COVID-19, "+t._s(t.config.features.label.covid.org)+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),t._m(2,!0)])]):t._e(),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"reactions my-1 pb-2"},[e.favourited?n("h3",{staticClass:"fas fa-heart text-danger pr-3 m-0 cursor-pointer",attrs:{title:"Like"},on:{click:function(n){return t.likeStatus(e,n)}}}):n("h3",{staticClass:"far fa-heart pr-3 m-0 like-btn text-lighter cursor-pointer",attrs:{title:"Like"},on:{click:function(n){return t.likeStatus(e,n)}}}),t._v(" "),e.comments_disabled?t._e():n("h3",{staticClass:"far fa-comment text-lighter pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(n){return t.commentFocus(e,n)}}}),t._v(" "),"public"==e.visibility?n("h3",{class:[e.reblogged?"fas fa-retweet pr-3 m-0 text-primary cursor-pointer":"fas fa-retweet pr-3 m-0 text-lighter share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:function(n){return t.shareStatus(e,n)}}}):t._e(),t._v(" "),n("h3",{staticClass:"fas fa-expand pr-3 m-0 cursor-pointer text-lighter",on:{click:function(n){return t.lightbox(e)}}}),t._v(" "),e.taggedPeople.length?n("span",{staticClass:"float-right"},[n("span",{staticClass:"font-weight-light small",staticStyle:{color:"#718096"}},[n("i",{staticClass:"far fa-user",attrs:{"data-toggle":"tooltip",title:"Tagged People"}}),t._v(" "),t._l(e.taggedPeople,(function(t,e){return n("span",{staticClass:"mr-n2"},[n("a",{attrs:{href:"/"+t.username}},[n("img",{staticClass:"border rounded-circle",attrs:{src:t.avatar,width:"20px",height:"20px","data-toggle":"tooltip",title:"@"+t.username,alt:"Avatar"}})])])}))],2)]):t._e()]),t._v(" "),1==t.expLc(e)?n("div",{staticClass:"likes font-weight-bold"},[n("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(" "),"text"!=e.pf_type?n("div",{staticClass:"caption"},[n("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[n("span",{staticClass:"username font-weight-bold"},[n("bdi",[n("a",{staticClass:"text-dark",attrs:{href:t.profileUrl(e)}},[t._v(t._s(e.account.username))])])]),t._v(" "),n("span",{staticClass:"status-content",domProps:{innerHTML:t._s(e.content)}})])]):t._e(),t._v(" "),e.id!=t.replyId||e.comments_disabled?t._e():n("div",{staticClass:"comments"},t._l(t.replies,(function(e,i){return n("p",{staticClass:"mb-0 d-flex justify-content-between align-items-top read-more mt-2",staticStyle:{"overflow-y":"hidden"}},[n("span",[n("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:t.profileUrl(e)}},[t._v(t._s(e.account.username))]),t._v(" "),n("span",{staticClass:"comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),n("span",{staticClass:"mb-0",staticStyle:{"min-width":"38px"}},[n("span",{on:{click:function(n){return t.likeStatus(e,n)}}},[n("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger cursor-pointer":"far fa-heart fa-sm text-lighter cursor-pointer"]})]),t._v(" "),n("span",{staticClass:"text-lighter pl-2 cursor-pointer",on:{click:function(n){return t.ctxMenu(e)}}},[n("span",{staticClass:"fas fa-ellipsis-v text-lighter"})])])])})),0),t._v(" "),n("div",{staticClass:"timestamp mt-2"},[n("p",{staticClass:"small text-uppercase mb-0"},[n("a",{staticClass:"text-muted",attrs:{href:t.statusUrl(e)}},[n("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(" "),!t.loading&&t.feed.length?n("div",[n("div",{staticClass:"card shadow-none"},[n("div",{staticClass:"card-body"},[n("infinite-loading",{attrs:{distance:800},on:{infinite:t.infiniteTimeline}},[n("div",{staticClass:"font-weight-bold",attrs:{slot:"no-more"},slot:"no-more"},[t._v("No more posts to load")]),t._v(" "),n("div",{staticClass:"font-weight-bold",attrs:{slot:"no-results"},slot:"no-results"},[t._v("No more posts to load")])])],1)])]):t._e(),t._v(" "),t.loading||"home"!=t.scope||0!=t.feed.length?t._e():n("div",[n("div",{staticClass:"card shadow-none border"},[n("div",{staticClass:"card-body text-center"},[n("p",{staticClass:"h2 font-weight-lighter p-5"},[t._v("Hello, "+t._s(t.profile.acct))]),t._v(" "),t._m(3),t._v(" "),n("p",{staticClass:"h3 font-weight-lighter p-5"},[t._v("Start following people to build your timeline.")]),t._v(" "),t._m(4)])])])],2)]),t._v(" "),n("div",{staticClass:"col-md-4 col-lg-4 my-4 order-1 order-md-2 d-none d-md-block"},[n("div",[n("div",{staticClass:"mb-4"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}]},[n("div",{staticClass:"pb-2"},[n("div",{staticClass:"media d-flex align-items-center"},[n("a",{staticClass:"mr-3",attrs:{href:t.userStory?"/stories/"+t.profile.acct:t.profile.url}},[t.userStory?n("div",{staticClass:"has-story cursor-pointer shadow-sm",on:{click:function(e){return t.storyRedirect()}}},[n("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.profile.avatar,width:"64px",height:"64px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]):n("div",[n("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.profile.avatar,width:"64px",height:"64px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})])]),t._v(" "),n("div",{staticClass:"media-body d-flex justify-content-between word-break"},[n("div",[n("p",{staticClass:"mb-0 px-0 font-weight-bold"},[n("a",{staticClass:"text-dark",attrs:{href:t.profile.url}},[t._v(t._s(t.profile.username||"loading..."))])]),t._v(" "),n("p",{staticClass:"my-0 text-muted pb-0"},[t._v(t._s(t.profile.display_name||"loading..."))])]),t._v(" "),t._m(5)])])])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1==t.modes.notify&&!t.loading,expression:"modes.notify == true && !loading"}],staticClass:"mb-4"},[n("notification-card")],1),t._v(" "),n("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"},[n("div",{staticClass:"card shadow-none border"},[n("div",{staticClass:"card-header bg-white d-flex align-items-center justify-content-between"},[n("a",{ref:"suggestionRefresh",staticClass:"small text-muted cursor-pointer",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.refreshSuggestions(e)}}},[n("i",{staticClass:"fas fa-sync-alt"})]),t._v(" "),n("div",{staticClass:"small text-dark text-uppercase font-weight-bold"},[t._v("Suggestions")]),t._v(" "),n("div",{staticClass:"small text-muted cursor-pointer",on:{click:t.hideSuggestions}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),n("div",{staticClass:"card-body pt-0"},t._l(t.suggestions,(function(e,i){return n("div",{staticClass:"media align-items-center mt-3"},[n("a",{attrs:{href:"/"+e.username}},[n("img",{staticClass:"rounded-circle mr-3",attrs:{src:e.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]),t._v(" "),n("div",{staticClass:"media-body"},[n("p",{staticClass:"mb-0 font-weight-bold small"},[n("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(" "),n("p",{staticClass:"mb-0 small text-muted"},[t._v(t._s(e.message))])]),t._v(" "),n("a",{staticClass:"font-weight-bold small",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.expRecFollow(e.id,i)}}},[t._v("Follow")])])})),0)])]),t._v(" "),t._m(6)])])]):n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 pl-3 pl-md-0 pt-3 pl-0"},[n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("p",{staticClass:"lead text-muted mb-0"},[n("i",{class:["home"==t.scope?"fas fa-home":"fas fa-stream"]}),t._v("   "+t._s("local"==t.scope?"Public":"Home")+" Timeline")]),t._v(" "),n("p",{staticClass:"mb-0"},[n("span",{staticClass:"btn-group"},[n("a",{class:["feed"==t.layout?"btn btn-sm btn-outline-primary font-weight-bold text-decoration-none":"btn btn-sm btn-outline-lighter font-weight-light text-decoration-none"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchFeedLayout("feed")}}},[n("i",{staticClass:"fas fa-list"})]),t._v(" "),n("a",{class:["feed"!==t.layout?"btn btn-sm btn-outline-primary font-weight-bold text-decoration-none":"btn btn-sm btn-outline-lighter font-weight-light text-decoration-none"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchFeedLayout("grid")}}},[n("i",{staticClass:"fas fa-th"})])])]),t._v(" "),t._m(7)]),t._v(" "),n("hr")]),t._v(" "),t._l(t.feed,(function(e,i){return n("div",{key:i+"-"+e.id,staticClass:"col-12 col-md-4 p-1 p-md-3 mb-3"},[n("a",{staticClass:"card info-overlay card-md-border-0 shadow-sm border border-light",attrs:{href:t.statusUrl(e)}},[n("div",{class:[e.sensitive?"square":"square "+e.media_attachments[0].filter_class]},["photo:album"==e.pf_type?n("span",{staticClass:"float-right mr-3 post-icon"},[n("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==e.pf_type?n("span",{staticClass:"float-right mr-3 post-icon"},[n("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==e.pf_type?n("span",{staticClass:"float-right mr-3 post-icon"},[n("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),n("div",{staticClass:"square-content",style:t.previewBackground(e)}),t._v(" "),n("div",{staticClass:"info-overlay-text px-4"},[n("p",{staticClass:"text-white m-auto text-center"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.trimCaption(e.content_text))+"\n\t\t\t\t\t\t\t\t")])])])]),t._v(" "),n("div",{staticClass:"py-3 media align-items-center"},[n("a",{staticClass:"text-decoration-none",attrs:{href:e.account.url}},[n("img",{staticClass:"mr-3 rounded-circle shadow-sm",attrs:{src:e.account.avatar,alt:e.account.username+" 's avatar",width:"30px",height:"30px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),t._v(" "),n("div",{staticClass:"media-body"},[n("p",{staticClass:"mb-0 font-weight-bold small"},[n("a",{staticClass:"text-dark",attrs:{href:e.account.url}},[t._v(t._s(e.account.username))])]),t._v(" "),n("p",{staticClass:"mb-0",staticStyle:{"line-height":"0.7"}},[n("a",{staticClass:"small text-lighter",attrs:{href:t.statusUrl(e)}},[n("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(" "),n("div",{staticClass:"ml-3"},[n("p",{staticClass:"mb-0"},[t.statusOwner(e)?n("span",{staticClass:"font-weight-bold small"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e(),t._v(" "),n("span",{staticClass:"px-2"},[n("i",{class:[e.favourited?"fas fa-heart text-danger cursor-pointer":"far fa-heart like-btn text-lighter cursor-pointer"],on:{click:function(n){return t.likeStatus(e,n)}}})]),t._v(" "),n("span",{staticClass:"mr-2 cursor-pointer"},[n("i",{staticClass:"fas fa-ellipsis-v",on:{click:function(n){return t.ctxMenu(e)}}})])])])])])}))],2),t._v(" "),!t.loading&&t.feed.length?n("div",[n("infinite-loading",{attrs:{distance:800},on:{infinite:t.infiniteTimeline}},[n("div",{staticClass:"font-weight-bold",attrs:{slot:"no-more"},slot:"no-more"},[t._v("No more posts to load")]),t._v(" "),n("div",{staticClass:"font-weight-bold",attrs:{slot:"no-results"},slot:"no-results"},[t._v("No more posts to load")])])],1):t._e()])]),t._v(" "),n("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[n("div",{staticClass:"list-group text-center"},[t.ctxMenuStatus&&t.ctxMenuStatus.account.id!=t.profile.id?n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("Report")]):t._e(),t._v(" "),t.ctxMenuStatus&&t.ctxMenuStatus.account.id!=t.profile.id&&t.ctxMenuRelationship&&t.ctxMenuRelationship.following?n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.ctxMenuUnfollow()}}},[t._v("Unfollow")]):t._e(),t._v(" "),t.ctxMenuStatus&&t.ctxMenuStatus.account.id!=t.profile.id&&t.ctxMenuRelationship&&!t.ctxMenuRelationship.following?n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-primary",on:{click:function(e){return t.ctxMenuFollow()}}},[t._v("Follow")]):t._e(),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("Go to post")]),t._v(" "),t.ctxMenuStatus&&1==t.ctxMenuStatus.local&&!t.ctxMenuStatus.in_reply_to_id?n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v("Embed")]):t._e(),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.profile&&1==t.profile.is_admin?n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxModMenuShow()}}},[t._v("Moderation Tools")]):t._e(),t._v(" "),t.ctxMenuStatus&&(t.profile.is_admin||t.profile.id==t.ctxMenuStatus.account.id)?n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.deletePost(t.ctxMenuStatus)}}},[t._v("Delete")]):t._e(),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),n("b-modal",{ref:"ctxModModal",attrs:{id:"ctx-mod-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[n("div",{staticClass:"list-group text-center"},[n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.ctxMenuStatus,"unlist")}}},[t._v("Unlist from Timelines")]),t._v(" "),t.ctxMenuStatus.sensitive?n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.ctxMenuStatus,"remcw")}}},[t._v("Remove Content Warning")]):n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.ctxMenuStatus,"addcw")}}},[t._v("Add Content Warning")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),n("b-modal",{ref:"ctxShareModal",attrs:{id:"ctx-share-modal",title:"Share","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded text-center"}},[n("div",{staticClass:"list-group-item rounded cursor-pointer border-top-0"},[t._v("Email")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer"},[t._v("Facebook")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer"},[t._v("Mastodon")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer"},[t._v("Pinterest")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer"},[t._v("Pixelfed")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer"},[t._v("Twitter")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer"},[t._v("VK")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),n("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[n("div",[n("div",{staticClass:"form-group"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedPayload,expression:"ctxEmbedPayload"}],staticClass:"form-control disabled text-monospace",staticStyle:{"overflow-y":"hidden",border:"1px solid #efefef","font-size":"12px","line-height":"18px",margin:"0 0 7px",resize:"none"},attrs:{rows:"8",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[n("div",{staticClass:"form-check mr-3"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowCaption,expression:"ctxEmbedShowCaption"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowCaption)?t._i(t.ctxEmbedShowCaption,null)>-1:t.ctxEmbedShowCaption},on:{change:function(e){var n=t.ctxEmbedShowCaption,i=e.target,s=!!i.checked;if(Array.isArray(n)){var a=t._i(n,null);i.checked?a<0&&(t.ctxEmbedShowCaption=n.concat([null])):a>-1&&(t.ctxEmbedShowCaption=n.slice(0,a).concat(n.slice(a+1)))}else t.ctxEmbedShowCaption=s}}}),t._v(" "),n("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\tShow Caption\n\t\t\t")])]),t._v(" "),n("div",{staticClass:"form-check mr-3"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowLikes,expression:"ctxEmbedShowLikes"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowLikes)?t._i(t.ctxEmbedShowLikes,null)>-1:t.ctxEmbedShowLikes},on:{change:function(e){var n=t.ctxEmbedShowLikes,i=e.target,s=!!i.checked;if(Array.isArray(n)){var a=t._i(n,null);i.checked?a<0&&(t.ctxEmbedShowLikes=n.concat([null])):a>-1&&(t.ctxEmbedShowLikes=n.slice(0,a).concat(n.slice(a+1)))}else t.ctxEmbedShowLikes=s}}}),t._v(" "),n("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\tShow Likes\n\t\t\t")])]),t._v(" "),n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedCompactMode,expression:"ctxEmbedCompactMode"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.ctxEmbedCompactMode)?t._i(t.ctxEmbedCompactMode,null)>-1:t.ctxEmbedCompactMode},on:{change:function(e){var n=t.ctxEmbedCompactMode,i=e.target,s=!!i.checked;if(Array.isArray(n)){var a=t._i(n,null);i.checked?a<0&&(t.ctxEmbedCompactMode=n.concat([null])):a>-1&&(t.ctxEmbedCompactMode=n.slice(0,a).concat(n.slice(a+1)))}else t.ctxEmbedCompactMode=s}}}),t._v(" "),n("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\tCompact Mode\n\t\t\t")])])]),t._v(" "),n("hr"),t._v(" "),n("button",{class:t.copiedEmbed?"btn btn-primary btn-block btn-sm py-1 font-weight-bold disabed":"btn btn-primary btn-block btn-sm py-1 font-weight-bold",attrs:{disabled:t.copiedEmbed},on:{click:t.ctxCopyEmbed}},[t._v(t._s(t.copiedEmbed?"Embed Code Copied!":"Copy Embed Code"))]),t._v(" "),n("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),n("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),n("b-modal",{ref:"lightboxModal",attrs:{id:"lightbox","hide-header":"","hide-footer":"",centered:"",size:"lg","body-class":"p-0"}},[t.lightboxMedia?n("div",{staticClass:"w-100 h-100",class:t.lightboxMedia.filter_class},[n("img",{staticStyle:{"max-height":"100%","max-width":"100%"},attrs:{src:t.lightboxMedia.url,alt:"lightbox media"}})]):t._e()]),t._v(" "),n("b-modal",{ref:"replyModal",attrs:{id:"ctx-reply-modal","hide-footer":"",centered:"",rounded:"","title-html":t.replyStatus.account?"Reply to "+t.replyStatus.account.username+"":"","title-tag":"p","title-class":"font-weight-bold text-muted",size:"md","body-class":"p-2 rounded"}},[n("div",[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control",staticStyle:{border:"none","font-size":"18px",resize:"none","white-space":"pre-wrap",outline:"none"},attrs:{rows:"4",placeholder:"Reply here ..."},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}}),t._v(" "),n("div",{staticClass:"border-top border-bottom my-2"},[n("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},t._l(t.emoji,(function(e){return n("li",{staticClass:"nav-item",on:{click:function(e){return t.emojiReaction(t.status)}}},[t._v(t._s(e))])})),0)]),t._v(" "),n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("div",[n("span",{staticClass:"pl-2 small text-muted font-weight-bold text-monospace"},[n("span",{class:[t.replyText.length>t.config.uploader.max_caption_length?"text-danger":"text-dark"]},[t._v(t._s(t.replyText.length>t.config.uploader.max_caption_length?t.config.uploader.max_caption_length-t.replyText.length:t.replyText.length))]),t._v("/"+t._s(t.config.uploader.max_caption_length)+"\n\t\t\t")])]),t._v(" "),n("div",{staticClass:"d-flex align-items-center"},[n("div",{staticClass:"custom-control custom-switch mr-3"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.replyNsfw,expression:"replyNsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"replyModalCWSwitch"},domProps:{checked:Array.isArray(t.replyNsfw)?t._i(t.replyNsfw,null)>-1:t.replyNsfw},on:{change:function(e){var n=t.replyNsfw,i=e.target,s=!!i.checked;if(Array.isArray(n)){var a=t._i(n,null);i.checked?a<0&&(t.replyNsfw=n.concat([null])):a>-1&&(t.replyNsfw=n.slice(0,a).concat(n.slice(a+1)))}else t.replyNsfw=s}}}),t._v(" "),n("label",{class:[t.replyNsfw?"custom-control-label font-weight-bold text-dark":"custom-control-label text-lighter"],attrs:{for:"replyModalCWSwitch"}},[t._v("Mark as NSFW")])]),t._v(" "),n("button",{staticClass:"btn btn-primary btn-sm py-2 px-4 lead text-uppercase font-weight-bold",attrs:{disabled:0==t.replyText.length},on:{click:function(e){return e.preventDefault(),t.commentSubmit(t.status,e)}}},[t._v("\n\t\t\t\t\t"+t._s(1==t.replySending?"POSTING":"POST")+"\n\t\t\t\t")])])])])])],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 d-none d-md-block"},[e("a",{staticClass:"btn btn-block btn-primary btn-sm font-weight-bold",attrs:{href:"/i/compose","data-toggle":"modal","data-target":"#composeModal"}},[this._v("\n\t\t\t\t\t\t\tNew Post\n\t\t\t\t\t\t")])])},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("span",[e("i",{staticClass:"fas fa-chevron-right text-lighter"})])},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:"ml-2"},[e("a",{staticClass:"text-muted",attrs:{href:"/settings/home"}},[e("i",{staticClass:"fas fa-cog fa-lg"}),this._v(" "),e("span",{staticClass:"sr-only"},[this._v("User Settings")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",[n("div",{staticClass:"container pb-5"},[n("p",{staticClass:"mb-0 text-uppercase font-weight-bold text-muted small"},[n("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/about"}},[t._v("About")]),t._v(" "),n("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/help"}},[t._v("Help")]),t._v(" "),n("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/language"}},[t._v("Language")]),t._v(" "),n("a",{staticClass:"text-dark pr-2",attrs:{href:"/discover/profiles"}},[t._v("Profiles")]),t._v(" "),n("a",{staticClass:"text-dark pr-2",attrs:{href:"/discover/places"}},[t._v("Places")]),t._v(" "),n("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/privacy"}},[t._v("Privacy")]),t._v(" "),n("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/terms"}},[t._v("Terms")])]),t._v(" "),n("p",{staticClass:"mb-0 text-uppercase font-weight-bold text-muted small"},[n("a",{staticClass:"text-muted",attrs:{href:"http://pixelfed.org",rel:"noopener",title:"","data-toggle":"tooltip"}},[t._v("Powered by Pixelfed")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 d-none d-md-block"},[e("a",{staticClass:"btn btn-block btn-primary btn-sm font-weight-bold",attrs:{href:"/i/compose","data-toggle":"modal","data-target":"#composeModal"}},[this._v("\n\t\t\t\t\t\t\t\tNew Post\n\t\t\t\t\t\t\t")])])}],!1,null,"46ce28a6",null);e.default=o.exports},KqaD:function(t,e,n){Vue.component("notification-card",n("x6yo").default),Vue.component("photo-presenter",n("d+I4").default),Vue.component("video-presenter",n("2Jpm").default),Vue.component("photo-album-presenter",n("Mrqh").default),Vue.component("video-album-presenter",n("9wGH").default),Vue.component("mixed-album-presenter",n("exej").default),Vue.component("post-menu",n("yric").default),Vue.component("timeline",n("KhVi").default),Vue.component("announcements-card",n("hoKv").default),Vue.component("story-component",n("oDnJ").default)},Mrqh:function(t,e,n){"use strict";n.r(e);var i={props:["status"],data:function(){return{cursor:0}},created:function(){},beforeDestroy:function(){},methods:{loadSensitive:function(){this.$refs.carousel.onResize(),this.$refs.carousel.goToPage(0)},altText:function(t){var e=t.description;return e||"Photo was not tagged with any alt text."},keypressNavigation:function(t){var e=this.$refs.carousel;if("37"==t.keyCode){t.preventDefault();e.advancePage("backward"),e.$emit("navigation-click","backward")}if("39"==t.keyCode){t.preventDefault();e.advancePage("forward"),e.$emit("navigation-click","forward")}}}},s=(n("B6o4"),n("KHd+")),a=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1==t.status.sensitive?n("div",[n("details",{staticClass:"details-animated"},[n("summary",{on:{click:t.loadSensitive}},[n("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(" "),n("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),n("carousel",{ref:"carousel",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb"}},t._l(t.status.media_attachments,(function(e,i){return n("slide",{key:"px-carousel-"+e.id+"-"+i,staticClass:"w-100 h-100 d-block mx-auto text-center",attrs:{title:e.description}},[n("img",{class:e.filter_class+" img-fluid",attrs:{src:e.url,alt:t.altText(e),onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})])})),1)],1)]):n("div",{staticClass:"w-100 h-100 p-0"},[n("carousel",{ref:"carousel",staticClass:"p-0 m-0",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb"}},t._l(t.status.media_attachments,(function(e,i){return n("slide",{key:"px-carousel-"+e.id+"-"+i,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:e.description}},[n("img",{class:e.filter_class+" img-fluid w-100 p-0",attrs:{src:e.url,alt:t.altText(e),onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})])})),1)],1)}),[],!1,null,"6949ea70",null);e.default=a.exports},N0po:function(t,e,n){var i=n("US+e");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},Oa72:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n#storyContainer > .story[data-v-42243767] {\n\tmargin-right: 3rem;\n}\n",""])},OizH:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.text-lighter[data-v-0ed43037] {\n\tcolor:#B8C2CC !important;\n}\n.modal-body[data-v-0ed43037] {\n\tpadding: 0;\n}\n",""])},Re5X:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.postPresenterContainer[data-v-46ce28a6] {\n\tdisplay: -webkit-box;\n\tdisplay: flex;\n\t-webkit-box-align: center;\n\t align-items: center;\n\tbackground: #fff;\n}\n.word-break[data-v-46ce28a6] {\n\tword-break: break-all;\n}\n.small .custom-control-label[data-v-46ce28a6] {\n\tpadding-top: 3px;\n}\n.reply-btn[data-v-46ce28a6] {\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-46ce28a6] {\n\tfont-size: 1.2rem;\n\tpadding: 9px;\n\tcursor: pointer;\n}\n.emoji-reactions[data-v-46ce28a6]::-webkit-scrollbar {\n\twidth: 0px;\n\theight: 0px;\n\tbackground: transparent;\n}\n.reply-btn[disabled][data-v-46ce28a6] {\n\topacity: .3;\n\tcolor: #3897f0;\n}\n.has-story[data-v-46ce28a6] {\n\twidth: 64px;\n\theight: 64px;\n\tborder-radius: 50%;\n\tpadding: 2px;\n\tbackground: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.has-story img[data-v-46ce28a6] {\n\twidth: 60px;\n\theight: 60px;\n\tborder-radius: 50%;\n\tpadding: 3px;\n\tbackground: #fff;\n}\n.has-story.has-story-sm[data-v-46ce28a6] {\n\twidth: 32px;\n\theight: 32px;\n\tborder-radius: 50%;\n\tpadding: 2px;\n\tbackground: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.has-story.has-story-sm img[data-v-46ce28a6] {\n\twidth: 28px;\n\theight: 28px;\n\tborder-radius: 50%;\n\tpadding: 3px;\n\tbackground: #fff;\n}\n#ctx-reply-modal .form-control[data-v-46ce28a6]:focus {\n\tborder: none;\n\toutline: 0;\n\tbox-shadow: none;\n}\n",""])},"US+e":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.fade-enter-active[data-v-267be4b0], .fade-leave-active[data-v-267be4b0] {\n -webkit-transition: opacity .5s;\n transition: opacity .5s;\n}\n.fade-enter[data-v-267be4b0], .fade-leave-to[data-v-267be4b0] {\n opacity: 0;\n}\n",""])},Uxyw:function(t,e,n){"use strict";var i=n("jDw0");n.n(i).a},YG3N:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-6949ea70] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n",""])},"aET+":function(t,e,n){var i,s,a={},o=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===s&&(s=i.apply(this,arguments)),s}),r=function(t,e){return e?e.querySelector(t):document.querySelector(t)},l=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var i=r.call(this,t,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}}(),c=null,d=0,u=[],m=n("9tPo");function p(t,e){for(var n=0;n=0&&u.splice(e,1)}function g(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 n.nc}();i&&(t.attrs.nonce=i)}return b(e,t.attrs),h(t,e),e}function b(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function w(t,e){var n,i,s,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 o=d++;n=c||(c=g(e)),i=_.bind(null,n,o,!1),s=_.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",b(e,t.attrs),h(t,e),e}(e),i=C.bind(null,n,e),s=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),i=k.bind(null,n),s=function(){v(n)});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 s()}}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 n=f(t,e);return p(n,e),function(t){for(var i=[],s=0;s
\n \n \n \n \n \n \n \n
    \n
    `,timelineStoryItem(t){const e=["id","seen","src","link","linkText","time","type","length","preview"];let n=`\n href="${s(t,"src")}"\n data-link="${s(t,"link")}"\n data-linkText="${s(t,"linkText")}"\n data-time="${s(t,"time")}"\n data-type="${s(t,"type")}"\n data-length="${s(t,"length")}"\n `;for(const i in t)-1===e.indexOf(i)&&(n+=` data-${i}="${t[i]}"`);return`\n \n `},viewerItem:(t,e)=>`
    \n
    \n
    \n ${u("backButton")?'':""}\n\n \n \n \n\n
    \n ${s(t,"name")}\n ${s(t,"timeAgo")}\n
    \n
    \n\n
    \n ${s(e,"timeAgo")}\n \n ×\n
    \n
    \n\n
    \n
    \n
    \n\n ${u("paginationArrows")?'
    \n \n \n
    ':""}\n
    `,viewerItemPointer:(t,e,n)=>`\n \n `,viewerItemBody:(t,e,n)=>`
    \n ${"video"===s(n,"type")?`\n ${u("language","unmute")}`:`\n `}\n\n ${s(n,"link")?`\n ${s(n,"linkText")&&""!==s(n,"linkText")?s(n,"linkText"):u("language","visitLink")}\n `:""}\n
    `},language:{unmute:"Touch to unmute",keyboardTip:"Press space to see next",visitLink:"Visit link",time:{ago:"ago",hour:"hour ago",hours:"hours ago",minute:"minute ago",minutes:"minutes ago",fromnow:"from now",seconds:"seconds ago",yesterday:"yesterday",tomorrow:"tomorrow",days:"days ago"}}},b=(()=>{let t=i("#zuck-modal");var e,o;t||d.hasModal||(d.hasModal=!0,t=document.createElement("div"),t.id="zuck-modal",u("cubeEffect")&&(t.className="with-cube"),t.innerHTML='
    ',t.style.display="none",t.setAttribute("tabIndex","1"),t.onkeyup=({keyCode:t})=>{const e=t;27===e?b.close():13!==e&&32!==e||b.next()},u("openEffect")&&t.classList.add("with-effects"),u("rtl")&&t.classList.add("rtl"),o=()=>{t.classList.contains("closed")&&(g.innerHTML="",t.style.display="none",t.classList.remove("closed"),t.classList.remove("animated"))},(e=t).transitionEndEvent||(e.transitionEndEvent=!0,r(e,o,"TransitionEnd")),document.body.appendChild(t));const g=i("#zuck-modal-content"),w=function(t){const e=i("#zuck-modal");let n="",s="",a=0;const o=i("#zuck-modal-slider-"+v),r={previous:i("#zuck-modal .story-viewer.previous"),next:i("#zuck-modal .story-viewer.next"),viewing:i("#zuck-modal .story-viewer.viewing")};if((!r.previous&&!t||!r.next&&t)&&!u("rtl"))return!1;t?(n="next",s="previous"):(n="previous",s="next");u("cubeEffect")?"previous"===n?a=e.slideWidth:"next"===n&&(a=-1*e.slideWidth):a=-1*f(r[n])[0],p(o,a,600,null),setTimeout(()=>{if(u("rtl")){const t=n;n=s,s=t}if(""!==n&&r[n]&&""!==s){const t=r[n].getAttribute("data-story-id");d.internalData.currentStory=t;const e=i("#zuck-modal .story-viewer."+s);e&&e.parentNode.removeChild(e),r.viewing&&(r.viewing.classList.add("stopped"),r.viewing.classList.add(s),r.viewing.classList.remove("viewing")),r[n]&&(r[n].classList.remove("stopped"),r[n].classList.remove(n),r[n].classList.add("viewing"));const a=x(n);a&&M(a,n);const c=d.internalData.currentStory;let m=i(`#zuck-modal [data-story-id="${c}"]`);if(m){m=m.querySelectorAll("[data-index].active");const t=m[0].firstElementChild;d.data[c].currentItem=parseInt(m[0].getAttribute("data-index"),10),m[0].innerHTML=``,l(m[0].firstElementChild,()=>{d.nextItem(!1)})}if(p(o,"0",0,null),m){const e=i(`#zuck-modal .story-viewer[data-story-id="${t}"]`);_(e,[m[0],m[1]],!0)}u("callbacks","onView")(d.internalData.currentStory)}},650)},M=function(t,e,n){const o=i("#zuck-modal-slider-"+v),r=s(t,"items");t.timeAgo=r&&r[0]?h(s(r[0],"time")):"";let m="",p="";const f=s(t,"id"),g=document.createElement("div"),w=s(t,"currentItem")||0;if(i(`#zuck-modal .story-viewer[data-story-id="${f}"]`))return!1;g.className="slides",a(r,(e,n)=>{n.timeAgo=h(s(n,"time")),w>e&&(t.items[e].timeAgo=n.timeAgo,t.items[e].seen=!0,n.seen=!0),p+=u("template","viewerItemPointer")(e,w,n),m+=u("template","viewerItemBody")(e,w,n)}),g.innerHTML=m;const x=g.querySelector("video"),y=function(t){t.muted?C.classList.add("muted"):C.classList.remove("muted")};x&&(x.onwaiting=t=>{x.paused&&(C.classList.add("paused"),C.classList.add("loading"))},x.onplay=()=>{y(x),C.classList.remove("stopped"),C.classList.remove("paused"),C.classList.remove("loading")},x.onload=x.onplaying=x.oncanplay=()=>{y(x),C.classList.remove("loading")},x.onvolumechange=()=>{y(x)});const k=document.createElement("div");k.innerHTML=u("template","viewerItem")(t,w);const C=k.firstElementChild;C.className=`story-viewer muted ${e} ${n?"":"stopped"} ${u("backButton")?"with-back-button":""}`,C.setAttribute("data-story-id",f),C.querySelector(".slides-pointers .wrap").innerHTML=p,a(C.querySelectorAll(".close, .back"),(t,e)=>{e.onclick=t=>{t.preventDefault(),b.close()}}),C.appendChild(g),"viewing"===e&&_(C,C.querySelectorAll(`[data-index="${w}"].active`),!1),a(C.querySelectorAll(".slides-pointers [data-index] > b"),(t,e)=>{l(e,()=>{d.nextItem(!1)})}),"previous"===e?c(o,C):o.appendChild(C)};return{show(t,e){const s=i("#zuck-modal");u("callbacks","onOpen")(t,(function(){g.innerHTML=`
    `;const e=d.data[t],a=e.currentItem||0;!function(t){const e=i("#zuck-modal"),s=t;let a={},o=null,r=null,l=null,c=null,m=null;const h=function(t){const n=i("#zuck-modal .viewing");if("A"===t.target.nodeName)return;const d=t.touches?t.touches[0]:t,u=f(i("#zuck-modal .story-viewer.viewing"));e.slideWidth=i("#zuck-modal .story-viewer").offsetWidth,e.slideHeight=i("#zuck-modal .story-viewer").offsetHeight,a={x:u[0],y:u[1]};const p=d.clientX,h=d.clientY;o={x:p,y:h,time:Date.now(),valid:!0},h<80||h>e.slideHeight-80?o.valid=!1:(t.preventDefault(),r=void 0,l={},s.addEventListener("mousemove",v),s.addEventListener("mouseup",g),s.addEventListener("mouseleave",g),s.addEventListener("touchmove",v),s.addEventListener("touchend",g),n&&n.classList.add("paused"),k(),c=setTimeout(()=>{n.classList.add("longPress")},600),m=setTimeout(()=>{clearInterval(m),m=!1},250))},v=function(t){const e=t.touches?t.touches[0]:t,n=e.clientX,i=e.clientY;o&&o.valid&&(l={x:n-o.x,y:i-o.y},void 0===r&&(r=!!(r||Math.abs(l.x)25||Math.abs(l.x)>e.slideWidth/3,y=l.x<0,k=i(y?"#zuck-modal .story-viewer.next":"#zuck-modal .story-viewer.previous"),S=y&&!k||!y&&!k;if(o&&!o.valid);else{l&&(r||(x&&!S?w(y):p(s,a.x,300)),o=void 0,s.removeEventListener("mousemove",v),s.removeEventListener("mouseup",g),s.removeEventListener("mouseleave",g),s.removeEventListener("touchmove",v),s.removeEventListener("touchend",g));const e=d.internalData.currentVideoElement;if(c&&clearInterval(c),f&&(_(f,f.querySelectorAll(".active"),!1),f.classList.remove("longPress"),f.classList.remove("paused")),m){clearInterval(m),m=!1;const s=function(){y||(h.x>n.screen.availWidth/3||!u("previousTap")?u("rtl")?d.navigateItem("previous",t):d.navigateItem("next",t):u("rtl")?d.navigateItem("next",t):d.navigateItem("previous",t))},a=i("#zuck-modal .viewing");if(!a||!e)return s(),!1;a.classList.contains("muted")?C(e,a):s()}}};s.addEventListener("touchstart",h),s.addEventListener("mousedown",h)}(i("#zuck-modal-slider-"+v)),d.internalData.currentStory=t,e.currentItem=a,u("backNative")&&(n.location.hash="#!"+v);const o=x("previous");o&&M(o,"previous"),M(e,"viewing",!0);const r=x("next");r&&M(r,"next"),u("autoFullScreen")&&s.classList.add("fullscreen");const l=function(){s.classList.contains("fullscreen")&&u("autoFullScreen")&&n.screen.availWidth<=1024&&m(s),s.focus()};if(u("openEffect")){const e=i(`#${v} [data-id="${t}"] .item-preview`),n=f(e);s.style.marginLeft=n[0]+e.offsetWidth/2+"px",s.style.marginTop=n[1]+e.offsetHeight/2+"px",s.style.display="block",s.slideWidth=i("#zuck-modal .story-viewer").offsetWidth,setTimeout(()=>{s.classList.add("animated")},10),setTimeout(()=>{l()},300)}else s.style.display="block",s.slideWidth=i("#zuck-modal .story-viewer").offsetWidth,l();u("callbacks","onView")(t)}))},next(t){u("callbacks","onEnd")(d.internalData.currentStory,(function(){const t=d.internalData.currentStory,e=i(`#${v} [data-id="${t}"]`);e&&(e.classList.add("seen"),d.data[t].seen=!0,d.internalData.seenItems[t]=!0,S("seenItems",d.internalData.seenItems),y()),i("#zuck-modal .story-viewer.next")?u("rtl")?w(!1):w(!0):b.close()}))},close(){const t=i("#zuck-modal");u("callbacks","onClose")(d.internalData.currentStory,(function(){u("backNative")&&(n.location.hash=""),m(t,!0),u("openEffect")?t.classList.add("closed"):(g.innerHTML="",t.style.display="none")}))}}})(),w=function(t,e){const n=t.getAttribute("data-id");let i=!1;d.internalData.seenItems[n]&&(i=!0);try{d.data[n]||(d.data[n]={}),d.data[n].id=n,d.data[n].photo=t.getAttribute("data-photo"),d.data[n].name=t.querySelector(".name").innerText,d.data[n].link=t.querySelector(".item-link").getAttribute("href"),d.data[n].lastUpdated=t.getAttribute("data-last-updated"),d.data[n].seen=i,d.data[n].items||(d.data[n].items=[],d.data[n].noItems=!0)}catch(t){d.data[n]={items:[]}}t.onclick=t=>{t.preventDefault(),b.show(n)};const s=u("callbacks","onDataUpdate");s&&s(d.data,()=>{})},x=function(t){const e=d.internalData.currentStory,n=t+"ElementSibling";if(e){const t=i(`#${v} [data-id="${e}"]`)[n];if(t){const e=t.getAttribute("data-id");return d.data[e]||!1}}return!1},y=function(){a(document.querySelectorAll(`#${v} .story.seen`),(t,e)=>{const n=d.data[e.getAttribute("data-id")],i=e.parentNode;u("reactive")||i.removeChild(e),d.update(n,!0)})},_=function(t,e,n){const i=e[1],s=e[0];if(!i||!s)return!1;const a=d.internalData.currentVideoElement;if(a&&a.pause(),"video"===i.getAttribute("data-type")){const e=i.getElementsByTagName("video")[0];if(!e)return d.internalData.currentVideoElement=!1,!1;const a=function(){e.duration&&o(s.getElementsByTagName("b")[0].style,"AnimationDuration",e.duration+"s")};a(),e.addEventListener("loadedmetadata",a),d.internalData.currentVideoElement=e,e.play(),n&&n.target&&C(e,t)}else d.internalData.currentVideoElement=!1},k=function(){const t=d.internalData.currentVideoElement;if(t)try{t.pause()}catch(t){}},C=function(t,e){t.muted=!1,t.volume=1,t.removeAttribute("muted"),t.play(),t.paused&&(t.muted=!0,t.play()),e&&e.classList.remove("paused")},S=function(t,e){try{if(u("localStorage")){const i=`zuck-${v}-${t}`;n.localStorage[i]=JSON.stringify(e)}}catch(t){}},M=function(t){if(u("localStorage")){const e=`zuck-${v}-${t}`;return!!n.localStorage[e]&&JSON.parse(n.localStorage[e])}return!1};d.data=u("stories")||{},d.internalData={},d.internalData.seenItems=M("seenItems")||{},d.add=d.update=(e,n)=>{const o=s(e,"id"),r=i(`#${v} [data-id="${o}"]`),l=s(e,"items");let m,p=!1;if(l[0]&&(p=l[0].preview||""),!0===d.internalData.seenItems[o]&&(e.seen=!0),e.currentPreview=p,r)m=r;else{const t=document.createElement("div");t.innerHTML=u("template","timelineItem")(e),m=t.firstElementChild}!1===e.seen&&(d.internalData.seenItems[o]=!1,S("seenItems",d.internalData.seenItems)),m.setAttribute("data-id",o),m.setAttribute("data-photo",s(e,"photo")),m.setAttribute("data-last-updated",s(e,"lastUpdated")),w(m),r||u("reactive")||(n?t.appendChild(m):c(t,m)),a(l,(t,e)=>{d.addItem(o,e,n)}),n||y()},d.next=()=>{b.next()},d.remove=t=>{const e=i(`#${v} > [data-id="${t}"]`);e.parentNode.removeChild(e)},d.addItem=(t,e,n)=>{const o=i(`#${v} > [data-id="${t}"]`);if(!u("reactive")){const t=document.createElement("li"),i=o.querySelectorAll(".items")[0];t.className=s(e,"seen")?"seen":"",t.setAttribute("data-id",s(e,"id")),t.innerHTML=u("template","timelineStoryItem")(e),n?i.appendChild(t):c(i,t)}!function(t,e){const n=t.getAttribute("data-id"),i=document.querySelectorAll(`#${v} [data-id="${n}"] .items > li`),s=[];if(!u("reactive")||e){a(i,(t,{firstElementChild:e})=>{const n=e,i=n.firstElementChild,a={id:n.getAttribute("data-id"),src:n.getAttribute("href"),length:n.getAttribute("data-length"),type:n.getAttribute("data-type"),time:n.getAttribute("data-time"),link:n.getAttribute("data-link"),linkText:n.getAttribute("data-linkText"),preview:i.getAttribute("src")},o=n.attributes,r=["data-id","href","data-length","data-type","data-time","data-link","data-linktext"];for(let t=0;t{})}}(o)},d.removeItem=(e,n)=>{const s=i(`#${v} > [data-id="${e}"] [data-id="${n}"]`);u("reactive")||t.parentNode.removeChild(s)},d.navigateItem=d.nextItem=(t,e)=>{const n=d.internalData.currentStory,s=d.data[n].currentItem,o=i(`#zuck-modal .story-viewer[data-story-id="${n}"]`),r="previous"===t?-1:1;if(!o||1===o.touchMove)return!1;const l=o.querySelectorAll(`[data-index="${s}"]`),c=l[0],m=l[1],p=s+r,f=o.querySelectorAll(`[data-index="${p}"]`),v=f[0],g=f[1];if(o&&v&&g){const i=function(){"previous"===t?(c.classList.remove("seen"),m.classList.remove("seen")):(c.classList.add("seen"),m.classList.add("seen")),c.classList.remove("active"),m.classList.remove("active"),v.classList.remove("seen"),v.classList.add("active"),g.classList.remove("seen"),g.classList.add("active"),a(o.querySelectorAll(".time"),(t,e)=>{e.innerText=h(g.getAttribute("data-time"))}),d.data[n].currentItem=d.data[n].currentItem+r,_(o,f,e)};let s=u("callbacks","onNavigateItem");s=u("callbacks",s?"onNavigateItem":"onNextItem"),s(n,g.getAttribute("data-story-id"),i)}else o&&"previous"!==t&&b.next(e)};return function(){if(t&&t.querySelector(".story")&&a(t.querySelectorAll(".story"),(t,e)=>{w(e)}),u("backNative")&&(n.location.hash==="#!"+v&&(n.location.hash=""),n.addEventListener("popstate",t=>{n.location.hash!=="#!"+v&&(n.location.hash="")},!1)),!u("reactive")){const t=M("seenItems");a(Object.keys(t),(e,n)=>{d.data[n]&&(d.data[n].seen=t[n])})}a(u("stories"),(t,e)=>{d.add(e,!0)}),y();const e=u("avatars")?"user-icon":"story-preview",i=u("list")?"list":"carousel",s=u("rtl")?"rtl":"";return t.className+=` stories ${e} ${i} ${(""+u("skin")).toLowerCase()} ${s}`,d}()};return d.buildTimelineItem=(t,e,n,i,s,o)=>{const r={id:t,photo:e,name:n,link:i,lastUpdated:s,items:[]};return a(o,(t,e)=>{r.items.push(d.buildStoryItem.apply(d,e))}),r},d.buildItem=d.buildStoryItem=(t,e,n,i,s,a,o,r,l)=>({id:t,type:e,length:n,src:i,preview:s,link:a,linkText:o,seen:r,time:l}),t.exports&&(e=t.exports=d),e.ZuckJS=d,d})(window||{})},x6yo:function(t,e,n){"use strict";n.r(e);function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e5?t.complete():axios.get("/api/pixelfed/v1/notifications",{params:{page:this.notificationCursor}}).then((function(n){if(n.data.length){var s,a=n.data.filter((function(t){return!("share"==t.type&&!status)&&!_.find(e.notifications,{id:t.id})}));(s=e.notifications).push.apply(s,i(a)),e.notificationCursor++,t.loaded()}else t.complete()}))},truncate:function(t){return t.length<=15?t:t.slice(0,15)+"..."},timeAgo:function(t){return window.App.util.format.timeAgo(t)},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/pixelfed/v1/notifications").then((function(t){var n=t.data.filter((function(t){return!("share"==t.type||e.notificationMaxId>=t.id)}));if(n.length){var s,a=n.map((function(t){return t.id}));e.notificationMaxId=Math.max.apply(Math,i(a)),(s=e.notifications).unshift.apply(s,i(n));var o=new Audio("/static/beep.mp3");o.volume=.7,o.play(),$(".notification-card .far.fa-bell").addClass("fas text-danger").removeClass("far text-muted")}}))}),t)},refreshNotifications:function(){var t=this;axios.get("/api/pixelfed/v1/notifications").then((function(e){var n=e.data.filter((function(e){return!("share"==e.type||t.notificationMaxId>=e.id)}));if(n.length>0){var i=n.map((function(t){return t.id})),s=Math.max(i);if(s<=t.notificationMaxId)return;t.notificationMaxId=s,t.notifications=n;var a=new Audio("/static/beep.mp3");a.volume=.7,a.play()}}))},fetchFollowRequests:function(){var t=this;1==window._sharedData.curUser.locked&&axios.get("/account/follow-requests.json").then((function(e){t.followRequests=e.data}))},redirect:function(t){window.location.href=t},notificationPreview:function(t){return t.status.hasOwnProperty("media_attachments")&&t.status.media_attachments.length?t.status.media_attachments[0].preview_url:"/storage/no-preview.png"}}},a=n("KHd+"),o=Object(a.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("transition",{attrs:{name:"fade"}},[n("div",{staticClass:"card notification-card shadow-none border"},[n("div",{staticClass:"card-body loader text-center",staticStyle:{height:"200px"}},[n("div",{staticClass:"spinner-border",attrs:{role:"status"}},[n("span",{staticClass:"sr-only"},[t._v("Loading...")])])]),t._v(" "),t.notifications.length>0?n("div",{staticClass:"card-body px-0 py-0 contents",staticStyle:{"max-height":"240px","overflow-y":"scroll"}},[t.profile.locked?n("div",{staticClass:"media align-items-center mt-n2 px-3 py-2 border-bottom border-lighter bg-light cursor-pointer",on:{click:function(e){return t.redirect("/account/follow-requests")}}},[n("div",{staticClass:"media-body font-weight-light pt-2 small d-flex align-items-center justify-content-between"},[n("p",{staticClass:"mb-0 text-lighter"},[n("i",{staticClass:"fas fa-cog text-light"})]),t._v(" "),n("p",{staticClass:"text-center pt-1 mb-1 text-dark font-weight-bold"},[n("strong",[t._v(t._s(t.followRequests.count))]),t._v(" Follow Requests")]),t._v(" "),n("p",{staticClass:"mb-0 text-lighter"},[n("i",{staticClass:"fas fa-chevron-right"})])])]):t._e(),t._v(" "),t._l(t.notifications,(function(e,i){return t.notifications.length>0?n("div",{staticClass:"media align-items-center px-3 py-2 border-bottom border-light"},[n("img",{staticClass:"mr-2 rounded-circle",staticStyle:{border:"1px solid #ccc"},attrs:{src:e.account.avatar,alt:"",width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png';"}}),t._v(" "),n("div",{staticClass:"media-body font-weight-light small"},["favourite"==e.type?n("div",[n("p",{staticClass:"my-0"},[n("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" liked your \n\t\t\t\t\t\t\t\t"),e.status.hasOwnProperty("media_attachments")?n("span",[n("a",{staticClass:"font-weight-bold",attrs:{href:e.status.url,id:"fvn-"+e.id}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t\t\t\t"),n("b-popover",{attrs:{target:"fvn-"+e.id,title:"",triggers:"hover",placement:"top",boundary:"window"}},[n("img",{staticStyle:{"object-fit":"cover"},attrs:{src:t.notificationPreview(e),width:"100px",height:"100px"}})])],1):n("span",[n("a",{staticClass:"font-weight-bold",attrs:{href:e.status.url}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t\t\t")])])]):"comment"==e.type?n("div",[n("p",{staticClass:"my-0"},[n("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" commented on your "),n("a",{staticClass:"font-weight-bold",attrs:{href:e.status.url}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t\t")])]):"mention"==e.type?n("div",[n("p",{staticClass:"my-0"},[n("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" "),n("a",{staticClass:"font-weight-bold",attrs:{href:t.mentionUrl(e.status)}},[t._v("mentioned")]),t._v(" you.\n\t\t\t\t\t\t\t")])]):"follow"==e.type?n("div",[n("p",{staticClass:"my-0"},[n("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" followed you.\n\t\t\t\t\t\t\t")])]):"share"==e.type?n("div",[n("p",{staticClass:"my-0"},[n("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" shared your "),n("a",{staticClass:"font-weight-bold",attrs:{href:e.status.url}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t\t")])]):"modlog"==e.type?n("div",[n("p",{staticClass:"my-0"},[n("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" updated a "),n("a",{staticClass:"font-weight-bold",attrs:{href:e.modlog.url}},[t._v("modlog")]),t._v(".\n\t\t\t\t\t\t\t")])]):"tagged"==e.type?n("div",[n("p",{staticClass:"my-0"},[n("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" tagged you in a "),n("a",{staticClass:"font-weight-bold",attrs:{href:e.tagged.post_url}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t\t")])]):"direct"==e.type?n("div",[n("p",{staticClass:"my-0"},[n("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username)))]),t._v(" sent a "),n("a",{staticClass:"font-weight-bold",attrs:{href:"/account/direct/t/"+e.account.id}},[t._v("dm")]),t._v(".\n\t\t\t\t\t\t\t")])]):n("div",[n("p",{staticClass:"my-0"},[t._v("\n\t\t\t\t\t\t\t\tWe cannot display this notification at this time.\n\t\t\t\t\t\t\t")])])]),t._v(" "),n("div",{staticClass:"small text-muted font-weight-bold",attrs:{title:e.created_at}},[t._v(t._s(t.timeAgo(e.created_at)))])]):t._e()})),t._v(" "),t.notifications.length?n("div",[n("infinite-loading",{on:{infinite:t.infiniteNotifications}},[n("div",{staticClass:"font-weight-bold",attrs:{slot:"no-results"},slot:"no-results"}),t._v(" "),n("div",{staticClass:"font-weight-bold",attrs:{slot:"no-more"},slot:"no-more"})])],1):t._e(),t._v(" "),0==t.notifications.length?n("div",{staticClass:"text-lighter text-center py-3"},[n("p",{staticClass:"mb-0"},[n("i",{staticClass:"fas fa-inbox fa-3x"})]),t._v(" "),n("p",{staticClass:"mb-0 small font-weight-bold"},[t._v("0 Notifications!")])]):t._e()],2):t._e()])])],1)}),[],!1,null,"5d6e94fe",null);e.default=o.exports},yric:function(t,e,n){"use strict";n.r(e);var i={props:["feed","status","profile","size","modal"],data:function(){return{activeSession:!1}},mounted:function(){var t=document.querySelector("body");this.activeSession=!!t.classList.contains("loggedIn")},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")},hidePost:function(t){t.sensitive=!0,$("#mt_pid_"+t.id).modal("hide")},moderatePost:function(t,e,n){var i=t.account.username;switch(e){case"autocw":var s="Are you sure you want to enforce CW for "+i+" ?";swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":s="Are you sure you want to suspend the account of "+i+" ?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0})}},muteProfile:function(t){0!=$("body").hasClass("loggedIn")&&axios.post("/i/mute",{type:"user",item:t.account.id}).then((function(e){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){0!=$("body").hasClass("loggedIn")&&axios.post("/i/block",{type:"user",item:t.account.id}).then((function(e){swal("Success","You have successfully blocked "+t.account.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))}}},s=(n("jXBh"),n("KHd+")),a=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",["true"!=t.modal?n("div",{staticClass:"dropdown"},[n("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"}},[n("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),n("div",{staticClass:"dropdown-menu dropdown-menu-right"},[n("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Go to post")]),t._v(" "),1==t.activeSession&&0==t.statusOwner(t.status)?n("span",[n("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl(t.status)}},[t._v("Report")])]):t._e(),t._v(" "),1==t.activeSession&&1==t.statusOwner(t.status)?n("span",[n("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return e.preventDefault(),t.muteProfile(t.status)}}},[t._v("Mute Profile")]),t._v(" "),n("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return e.preventDefault(),t.blockProfile(t.status)}}},[t._v("Block Profile")])]):t._e(),t._v(" "),1==t.activeSession&&1==t.profile.is_admin?n("span",[n("div",{staticClass:"dropdown-divider"}),t._v(" "),n("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(" "),n("div",{staticClass:"dropdown-divider"}),t._v(" "),n("h6",{staticClass:"dropdown-header"},[t._v("Mod Tools")]),t._v(" "),n("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"autocw")}}},[n("p",{staticClass:"mb-0"},[t._v("Enforce CW")]),t._v(" "),t._m(0)]),t._v(" "),n("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"noautolink")}}},[n("p",{staticClass:"mb-0"},[t._v("No Autolinking")]),t._v(" "),t._m(1)]),t._v(" "),n("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"unlisted")}}},[n("p",{staticClass:"mb-0"},[t._v("Unlisted Posts")]),t._v(" "),t._m(2)]),t._v(" "),n("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"disable")}}},[n("p",{staticClass:"mb-0"},[t._v("Disable Account")]),t._v(" "),t._m(3)]),t._v(" "),n("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"suspend")}}},[n("p",{staticClass:"mb-0"},[t._v("Suspend Account")]),t._v(" "),t._m(4)])]):t._e()])]):t._e(),t._v(" "),"true"==t.modal?n("div",[n("span",{attrs:{"data-toggle":"modal","data-target":"#mt_pid_"+t.status.id}},[n("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),n("div",{staticClass:"modal",attrs:{tabindex:"-1",role:"dialog",id:"mt_pid_"+t.status.id}},[n("div",{staticClass:"modal-dialog modal-sm",attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-body text-center"},[n("div",{staticClass:"list-group text-dark"},[n("a",{staticClass:"list-group-item text-dark text-decoration-none",attrs:{href:t.status.url}},[t._v("Go to post")]),t._v(" "),n("a",{staticClass:"list-group-item text-dark text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.hidePost(t.status)}}},[t._v("Hide")]),t._v(" "),1!=t.activeSession||t.statusOwner(t.status)?t._e():n("a",{staticClass:"list-group-item text-danger font-weight-bold text-decoration-none",attrs:{href:t.reportUrl(t.status)}},[t._v("Report")]),t._v(" "),1==t.activeSession&&1==t.statusOwner(t.status)||1==t.profile.is_admin?n("div",{staticClass:"list-group-item text-danger font-weight-bold cursor-pointer",on:{click:function(e){return e.preventDefault(),t.deletePost(e)}}},[t._v("Delete")]):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.")])}],!1,null,"0ed43037",null);e.default=a.exports},zm0X:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"@-webkit-keyframes zuckSlideTime {\n 0% {\n max-width: 0;\n }\n 100% {\n max-width: 100%;\n }\n}\n\n@keyframes zuckSlideTime {\n 0% {\n max-width: 0;\n }\n 100% {\n max-width: 100%;\n }\n}\n\n@-webkit-keyframes zuckLoading {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes zuckLoading {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n#zuck-modal {\n outline: 0 !important;\n overflow: hidden;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.75);\n z-index: 100000;\n font-size: 14px;\n font-family: inherit;\n}\n#zuck-modal-content,\n#zuck-modal-content .story-viewer,\n#zuck-modal-content .story-viewer > .slides,\n#zuck-modal-content .story-viewer > .slides > * {\n width: 100vw;\n height: 100%;\n top: 0;\n bottom: 0;\n position: absolute;\n overflow: hidden;\n}\n#zuck-modal * {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n outline: 0;\n}\n\n#zuck-modal.with-effects {\n -webkit-transform: scale(0.01);\n transform: scale(0.01);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n -webkit-transition: 0.25s;\n transition: 0.25s;\n}\n#zuck-modal.with-effects.animated {\n -webkit-transform: scale(1);\n transform: scale(1);\n border-radius: 0;\n margin-top: 0 !important;\n margin-left: 0 !important;\n}\n#zuck-modal.with-effects.closed {\n -webkit-transform: translateY(100%);\n transform: translateY(100%);\n}\n\n#zuck-modal .slider {\n width: 300vw;\n height: 100%;\n top: 0;\n bottom: 0;\n left: -100vw;\n position: absolute;\n}\n#zuck-modal .slider > * {\n width: 100vw;\n height: 100%;\n top: 0;\n bottom: 0;\n position: absolute;\n}\n#zuck-modal .slider > .previous {\n left: 0;\n}\n#zuck-modal .slider > .viewing {\n left: 100vw;\n}\n#zuck-modal .slider > .next {\n left: 200vw;\n}\n#zuck-modal .slider.animated {\n -webkit-transition: -webkit-transform 0.25s linear;\n transition: -webkit-transform 0.25s linear;\n transition: transform 0.25s linear;\n transition: transform 0.25s linear, -webkit-transform 0.25s linear;\n}\n\n#zuck-modal.with-cube #zuck-modal-content {\n -webkit-perspective: 1000vw;\n perspective: 1000vw;\n -webkit-transform: scale(0.95);\n transform: scale(0.95);\n -webkit-perspective-origin: 50% 50%;\n perspective-origin: 50% 50%;\n overflow: visible;\n -webkit-transition: 0.3s;\n transition: 0.3s;\n}\n#zuck-modal.with-cube .slider {\n -webkit-transform-style: preserve-3d;\n transform-style: preserve-3d;\n -webkit-transform: rotateY(0deg);\n transform: rotateY(0deg);\n}\n#zuck-modal.with-cube .slider > .previous {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n left: 100vw;\n -webkit-transform: rotateY(270deg) translateX(-50%);\n transform: rotateY(270deg) translateX(-50%);\n -webkit-transform-origin: center left;\n transform-origin: center left;\n}\n#zuck-modal.with-cube .slider > .viewing {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n left: 100vw;\n -webkit-transform: translateZ(50vw);\n transform: translateZ(50vw);\n}\n#zuck-modal.with-cube .slider > .next {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n left: 100vw;\n -webkit-transform: rotateY(-270deg) translateX(50%);\n transform: rotateY(-270deg) translateX(50%);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n#zuck-modal-content .story-viewer.paused.longPress .head,\n#zuck-modal-content .story-viewer.paused.longPress .slides-pointers,\n#zuck-modal-content .story-viewer.paused.longPress .tip {\n opacity: 0;\n}\n#zuck-modal-content .story-viewer.viewing:not(.paused):not(.stopped) .slides-pointers > * > .active > b {\n -webkit-animation-play-state: running;\n animation-play-state: running;\n}\n#zuck-modal-content .story-viewer.next {\n z-index: 10;\n}\n#zuck-modal-content .story-viewer.viewing {\n z-index: 5;\n}\n#zuck-modal-content .story-viewer.previous {\n z-index: 0;\n}\n#zuck-modal-content .story-viewer.muted .tip.muted,\n#zuck-modal-content .story-viewer.loading .head .loading {\n display: block;\n}\n#zuck-modal-content .story-viewer.loading .head .right .time,\n#zuck-modal-content .story-viewer.loading .head .right .close {\n display: none;\n}\n\n#zuck-modal-content .story-viewer .slides-pagination span {\n position: absolute;\n top: 50vh;\n font-size: 48px;\n color: #fff;\n line-height: 48px;\n width: 48px;\n margin: 6px;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n z-index: 1;\n text-align: center;\n}\n\n#zuck-modal-content .story-viewer .slides-pagination .previous {\n left: 0;\n}\n\n#zuck-modal-content .story-viewer .slides-pagination .next {\n right: 0;\n}\n\n#zuck-modal-content .story-viewer .slides-pointers {\n display: table;\n table-layout: fixed;\n border-spacing: 6px;\n border-collapse: separate;\n position: absolute;\n width: 100vh;\n top: 0;\n left: calc(50vw - 50vh);\n right: calc(50vw - 50vh);\n z-index: 100020;\n}\n#zuck-modal-content .story-viewer .slides-pointers > * {\n display: table-row;\n}\n#zuck-modal-content .story-viewer .slides-pointers > * > * {\n display: table-cell;\n background: rgba(255, 255, 255, 0.5);\n border-radius: 2px;\n}\n#zuck-modal-content .story-viewer .slides-pointers > * > .seen {\n background: #fff;\n}\n#zuck-modal-content .story-viewer .slides-pointers > * > * > b {\n background: #fff;\n width: auto;\n max-width: 0;\n height: 2px;\n display: block;\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n -webkit-animation-play-state: paused;\n animation-play-state: paused;\n border-radius: 2px;\n}\n#zuck-modal-content .story-viewer .slides-pointers > * > .active > b {\n -webkit-animation-name: zuckSlideTime;\n animation-name: zuckSlideTime;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n}\n\n#zuck-modal-content .story-viewer .head {\n position: absolute;\n height: 56px;\n left: 0;\n right: 0;\n line-height: 56px;\n z-index: 100010;\n color: #fff;\n font-size: 14px;\n text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35), 1px 0 1px rgba(0, 0, 0, 0.35);\n padding: 6px 12px;\n}\n#zuck-modal-content .story-viewer .head .item-preview {\n overflow: hidden;\n vertical-align: top;\n background-size: cover;\n width: 42px;\n height: 42px;\n display: inline-block;\n margin-right: 9px;\n border-radius: 50%;\n vertical-align: middle;\n background-repeat: no-repeat;\n background-position: center;\n}\n#zuck-modal-content .story-viewer .head .item-preview img {\n display: block;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n background-size: cover;\n background-position: center;\n -o-object-fit: cover;\n object-fit: cover;\n}\n#zuck-modal-content .story-viewer .head .time {\n opacity: 0.75;\n font-weight: 500;\n font-size: 13px;\n}\n#zuck-modal-content .story-viewer .head .left {\n line-height: 1 !important;\n display: inline-block;\n margin: 6px 0;\n}\n#zuck-modal-content .story-viewer .head .left .info {\n display: inline-block;\n max-width: 30vw;\n vertical-align: middle;\n}\n#zuck-modal-content .story-viewer .head .left .info > * {\n width: 100%;\n display: inline-block;\n line-height: 21px;\n}\n#zuck-modal-content .story-viewer .head .left .info .name {\n font-weight: 500;\n}\n#zuck-modal-content .story-viewer .head .right {\n float: right;\n}\n#zuck-modal-content .story-viewer .head .right .close,\n#zuck-modal-content .story-viewer .head .back {\n font-size: 42px;\n width: 48px;\n height: 48px;\n line-height: 48px;\n cursor: pointer;\n text-align: center;\n}\n#zuck-modal-content .story-viewer .head .left .back {\n display: none;\n width: 24px;\n margin: -9px -6px 0 -6px;\n}\n#zuck-modal-content .story-viewer .head .right .time {\n display: none;\n}\n#zuck-modal-content .story-viewer .head .loading {\n display: none;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n margin: 9px 0;\n border: 4px solid rgba(255, 255, 255, 0.2);\n box-sizing: border-box;\n border-top-color: #fff;\n -webkit-animation: zuckLoading 1s infinite linear;\n animation: zuckLoading 1s infinite linear;\n}\n\n#zuck-modal-content .story-viewer .head,\n#zuck-modal-content .story-viewer .slides-pointers,\n#zuck-modal-content .story-viewer .tip {\n -webkit-transition: opacity 0.5s;\n transition: opacity 0.5s;\n}\n\n#zuck-modal-content .story-viewer .slides .item {\n display: none;\n overflow: hidden;\n background: #000;\n}\n#zuck-modal-content .story-viewer .slides .item:before {\n z-index: 4;\n background: transparent;\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n}\n#zuck-modal-content .story-viewer .slides .item > .media {\n height: 100%;\n position: absolute;\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n margin: auto;\n}\n#zuck-modal-content .story-viewer .slides .item.active,\n#zuck-modal-content .story-viewer .slides .item.active .tip.link {\n display: block;\n}\n\n#zuck-modal-content .story-viewer .tip {\n z-index: 5;\n text-decoration: none;\n display: none;\n border-radius: 24px;\n background: rgba(0, 0, 0, 0.5);\n font-size: 16px;\n position: absolute;\n bottom: 24px;\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n z-index: 1000;\n color: #fff;\n text-align: center;\n text-transform: uppercase;\n font-weight: 500;\n padding: 12px 24px;\n}\n\n\n#zuck-modal.rtl {\n direction: rtl;\n left: auto;\n right: 0;\n}\n#zuck-modal.rtl.with-effects {\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n#zuck-modal.rtl.with-effects.animated {\n margin-left: auto !important;\n margin-right: 0 !important;\n}\n#zuck-modal.rtl .slider {\n left: auto;\n right: -100vw;\n}\n#zuck-modal.rtl .slider > .previous {\n left: auto;\n right: 0;\n -webkit-transform: rotateY(-270deg) translateX(50%);\n transform: rotateY(-270deg) translateX(50%);\n}\n#zuck-modal.rtl .slider > .viewing {\n left: auto;\n right: 100vw;\n}\n#zuck-modal.rtl .slider > .next {\n left: auto;\n right: 200vw;\n}\n#zuck-modal.rtl.with-cube .slider > .previous {\n left: auto;\n right: 100vw;\n -webkit-transform-origin: center right;\n transform-origin: center right;\n}\n#zuck-modal.rtl.with-cube .slider > .viewing {\n left: auto;\n right: 100vw;\n -webkit-transform: translateZ(50vw);\n transform: translateZ(50vw);\n}\n#zuck-modal.rtl.with-cube .slider > .next {\n left: auto;\n right: 100vw;\n -webkit-transform-origin: top left;\n transform-origin: top left;\n -webkit-transform: rotateY(270deg) translateX(-50%);\n transform: rotateY(270deg) translateX(-50%);\n}\n#zuck-modal.rtl #zuck-modal-content .story-viewer .slides-pagination .previous {\n left: auto;\n right: 0;\n}\n#zuck-modal.rtl #zuck-modal-content .story-viewer .slides-pagination .next {\n right: auto;\n left: 0;\n}\n#zuck-modal.rtl #zuck-modal-content .story-viewer .head .item-preview {\n margin-right: auto;\n margin-left: 9px;\n}\n#zuck-modal.rtl #zuck-modal-content .story-viewer .head .right {\n float: left;\n}\n#zuck-modal.rtl #zuck-modal-content .story-viewer .tip {\n left: auto;\n right: 50%;\n -webkit-transform: translateX(50%);\n transform: translateX(50%);\n}\n\n@media (max-width: 1024px) {\n #zuck-modal-content .story-viewer .head {\n top: 3px;\n }\n #zuck-modal-content .story-viewer .head .loading {\n width: 24px;\n height: 24px;\n margin: 6px 0;\n }\n #zuck-modal-content .story-viewer .head .item-preview {\n width: 30px;\n height: 30px;\n margin-right: 9px;\n }\n #zuck-modal-content .story-viewer .head .left {\n font-size: 15px;\n margin: 15px 0;\n }\n #zuck-modal-content .story-viewer .head .left > div {\n line-height: 30px;\n }\n #zuck-modal-content .story-viewer .head .right .time {\n display: block;\n white-space: nowrap;\n font-size: 15px;\n margin: 15px 0;\n line-height: 30px;\n }\n #zuck-modal-content .story-viewer .head .left > .back {\n display: none;\n background: transparent;\n z-index: 20;\n visibility: visible;\n position: absolute;\n height: 42px;\n width: 24px;\n line-height: 36px;\n text-align: left;\n vertical-align: top;\n text-shadow: none;\n }\n\n #zuck-modal-content .story-viewer.with-back-button .head .left > .back {\n display: block;\n }\n #zuck-modal-content .story-viewer.with-back-button .head .left .item-preview {\n margin-left: 18px;\n }\n\n #zuck-modal-content .story-viewer .slides-pointers {\n width: 100vw;\n left: 0;\n right: 0;\n }\n\n #zuck-modal-content .story-viewer .tip {\n font-size: 14px;\n padding: 6px 12px;\n }\n #zuck-modal-content .story-viewer .head .left .time,\n #zuck-modal-content .story-viewer .head .right .close {\n display: none;\n }\n\n #zuck-modal.rtl #zuck-modal-content .story-viewer .head .item-preview {\n margin-right: auto;\n margin-left: 9px;\n }\n #zuck-modal.rtl #zuck-modal-content .story-viewer .head .left > .back {\n text-align: right;\n }\n #zuck-modal.rtl #zuck-modal-content .story-viewer.with-back-button .head .left .item-preview {\n margin-left: auto;\n margin-right: 18px;\n }\n}\n\n.stories.carousel {\n white-space: nowrap;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n overflow-scrolling: touch;\n}\n.stories.carousel::-webkit-scrollbar {\n width: 0px;\n background: transparent;\n}\n.stories.carousel .story {\n display: inline-block;\n width: 18vw;\n max-width: 90px;\n margin: 0 6px;\n vertical-align: top;\n}\n.stories.carousel .story:first-child {\n margin-left: 0;\n}\n.stories.carousel .story:last-child {\n margin-right: 0;\n}\n\n.stories.carousel .story > .item-link {\n text-align: center;\n display: block;\n}\n.stories.carousel .story > .item-link:active > .item-preview {\n -webkit-transform: scale(0.9);\n transform: scale(0.9);\n}\n.stories.carousel .story > .item-link > .item-preview {\n display: block;\n box-sizing: border-box;\n font-size: 0;\n max-height: 90px;\n height: 18vw;\n overflow: hidden;\n -webkit-transition: -webkit-transform 0.2s;\n transition: -webkit-transform 0.2s;\n transition: transform 0.2s;\n transition: transform 0.2s, -webkit-transform 0.2s;\n}\n.stories.carousel .story > .item-link > .item-preview img {\n display: block;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n background-size: cover;\n background-position: center;\n -o-object-fit: cover;\n object-fit: cover;\n}\n.stories.carousel .story > .item-link > .info {\n display: inline-block;\n margin-top: 0.5em;\n line-height: 1.2em;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.stories.carousel .story > .item-link > .info .name {\n font-weight: 300;\n}\n.stories.carousel .story > .item-link > .info .time {\n display: none;\n}\n.stories.carousel .story > .items {\n display: none;\n}\n\n.stories.list {\n white-space: nowrap;\n overflow: auto;\n}\n.stories.list .story {\n display: block;\n width: auto;\n margin: 6px;\n padding-bottom: 6px;\n}\n\n.stories.list .story > .item-link {\n text-align: left;\n display: block;\n}\n.stories.list .story > .item-link > .item-preview {\n height: 42px;\n width: 42px;\n max-width: 42px;\n margin-right: 12px;\n vertical-align: top;\n display: inline-block;\n box-sizing: border-box;\n font-size: 0;\n overflow: hidden;\n}\n.stories.list .story > .item-link > .item-preview img {\n display: block;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n background-size: cover;\n background-position: center;\n}\n.stories.list .story > .item-link > .info {\n display: inline-block;\n line-height: 1.6em;\n overflow: hidden;\n text-overflow: ellipsis;\n vertical-align: top;\n}\n.stories.list .story > .item-link > .info .name {\n font-weight: 500;\n display: block;\n}\n.stories.list .story > .item-link > .info .time {\n display: inline-block;\n}\n.stories.list .story > .items {\n display: none;\n}\n\n.stories.rtl {\n direction: rtl;\n}\n.stories.rtl.carousel .story:first-child {\n margin-left: auto;\n margin-right: 0;\n}\n.stories.rtl.carousel .story:last-child {\n margin-right: auto;\n margin-left: 0;\n}\n.stories.rtl.list .story > .item-link {\n text-align: right;\n}\n.stories.rtl.list .story > .item-link > .item-preview {\n margin-right: auto;\n margin-left: 12px;\n}\n/*\n zuck.js\n https://github.com/ramon82/zuck.js\n MIT License\n*/\n",""])}},[[6,0]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"1j9n":function(t,e,n){"use strict";var i=n("VDSh");n.n(i).a},"2Jpm":function(t,e,n){"use strict";n.r(e);var i={props:["status"],methods:{playOrPause:function(t){var e=t.target;1==e.getAttribute("playing")?(e.removeAttribute("playing"),e.pause()):(e.setAttribute("playing",1),e.play())}}},s=n("KHd+"),a=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1==t.status.sensitive?n("div",[n("details",{staticClass:"details-animated"},[n("summary",[n("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(" "),n("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),n("div",{staticClass:"embed-responsive embed-responsive-1by1"},[n("video",{staticClass:"video",attrs:{preload:"none",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id},on:{click:function(e){return t.playOrPause(e)}}},[n("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])])]):n("div",{staticClass:"embed-responsive embed-responsive-16by9"},[n("video",{staticClass:"video",attrs:{controls:"",preload:"metadata",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id}},[n("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])}),[],!1,null,null,null);e.default=a.exports},"3GYK":function(t,e,n){"use strict";var i=n("d6It");n.n(i).a},6:function(t,e,n){t.exports=n("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 n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var s,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:(s=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:i+a.replace(/^\.\//,""),"url("+JSON.stringify(s)+")")}))}},"9wGH":function(t,e,n){"use strict";n.r(e);var i={props:["status"]},s=n("KHd+"),a=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1==t.status.sensitive?n("div",[n("details",{staticClass:"details-animated"},[n("summary",[n("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(" "),n("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),n("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 n("b-carousel-slide",{key:t.id+"-media"},[n("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[n("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):n("div",[n("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 n("b-carousel-slide",{key:t.id+"-media"},[n("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[n("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)}),[],!1,null,null,null);e.default=a.exports},B6o4:function(t,e,n){"use strict";var i=n("CcmX");n.n(i).a},BF29:function(t,e,n){var i=n("Oa72");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},BUee:function(t,e,n){var i=n("DAU9");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},CcmX:function(t,e,n){var i=n("YG3N");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},DAU9:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n#storyContainer .story {\n\tmargin-right: 2rem;\n\twidth: 100%;\n\tmax-width: 60px;\n}\n.stories.carousel .story > .item-link > .item-preview {\n\theight: 60px;\n}\n#zuck-modal.with-effects {\n\twidth: 100%;\n}\n.stories.carousel .story > .item-link > .info .name {\n\tfont-weight: 500;\n\tfont-size: 11px;\n}\n.stories.carousel .story > .item-link > .info {\n}\n",""])},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var s=(o=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),a=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[n].concat(a).concat([s]).join("\n")}var o;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},s=0;s40&&(this.loading=!1,t.complete());var n=!1;switch(this.scope){case"home":n="/api/pixelfed/v1/timelines/home";break;case"local":n="/api/pixelfed/v1/timelines/public";break;case"network":n="/api/pixelfed/v1/timelines/network"}axios.get(n,{params:{max_id:this.max_id,limit:6}}).then((function(n){if(n.data.length&&0==e.loading){var s=n.data,a=e;s.forEach((function(t,e){-1==a.ids.indexOf(t.id)&&(a.feed.push(t),a.ids.push(t.id),axios.post("/api/status/view",{status_id:t.id,profile_id:t.account.id}))})),e.min_id=Math.max.apply(Math,i(e.ids)).toString(),e.max_id=Math.min.apply(Math,i(e.ids)).toString(),e.page+=1,t.loaded(),e.loading=!1}else t.complete()})).catch((function(n){e.loading=!1,t.complete()}))}},reportUrl:function(t){return"/i/report?type="+(t.in_reply_to?"comment":"post")+"&id="+t.id},commentFocus:function(t,e){t.comments_disabled||(this.status&&this.status.id==t.id?this.$refs.replyModal.show():(this.status=t,this.replies={},this.replyStatus={},this.replyText="",this.replyId=t.id,this.replyStatus=t,this.$refs.replyModal.show(),this.fetchStatusComments(t,"")))},likeStatus:function(t,e){if(0!=$("body").hasClass("loggedIn")){var n=t.favourites_count;t.favourited=!t.favourited,axios.post("/i/like",{item:t.id}).then((function(e){t.favourites_count=e.data.count})).catch((function(e){t.favourited=!t.favourited,t.favourites_count=n,swal("Error","Something went wrong, please try again later.","error")})),window.navigator.vibrate(200),t.favourited&&setTimeout((function(){e.target.classList.add("animate__animated","animate__bounce")}),100)}},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()},redirect:function(t){window.location.href=t},statusOwner:function(t){return t.account.id==this.profile.id},fetchStatusComments:function(t,e){var n=this;axios.get("/api/v2/status/"+t.id+"/replies").then((function(t){var e=t.data.filter((function(t){return 0==t.sensitive}));n.replies=_.reverse(e),setTimeout((function(){document.querySelectorAll(".timeline .card-body .comments .comment-body a").forEach((function(t,e){t.href=App.util.format.rewriteLinks(t)}))}),500)})).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(n){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(n){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){var e=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(n){e.feed=e.feed.filter((function(e){return e.id!=t.id})),e.$refs.ctxModal.hide()})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},commentSubmit:function(t,e){var n=this;this.replySending=!0;var i=t.id,s=this.replyText,a=this.config.uploader.max_caption_length;if(s.length>a)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+a+" characters or less.","error");axios.post("/i/comment",{item:i,comment:s,sensitive:this.replyNsfw}).then((function(t){n.replyText="",n.replies.unshift(t.data.entity),n.$refs.replyModal.hide()})),this.replySending=!1},moderatePost:function(t,e,n){var i=this,s=(t.account.username,""),a=this;switch(e){case"addcw":s="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(n){n&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!0,a.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),a.ctxModMenuClose()}))}));break;case"remcw":s="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(n){n&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!1,a.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),a.ctxModMenuClose()}))}));break;case"unlist":s="Are you sure you want to unlist this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(n){n&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){i.feed=i.feed.filter((function(e){return e.id!=t.id})),swal("Success","Successfully unlisted post","success"),a.ctxModMenuClose()})).catch((function(t){a.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}))}},followingModal:function(){var t=this;this.following.length>0||(axios.get("/api/pixelfed/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||(axios.get("/api/pixelfed/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/pixelfed/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor}}).then((function(e){var n;e.data.length>0&&((n=t.following).push.apply(n,i(e.data)),t.followingCursor++);e.data.length<10&&(t.followingMore=!1)}))},followersLoadMore:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then((function(e){var n;e.data.length>0&&((n=t.followers).push.apply(n,i(e.data)),t.followerCursor++);e.data.length<10&&(t.followerMore=!1)}))},lightbox:function(t){window.location.href=t.media_attachments[0].url},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){},followAction:function(t){var e=this,n=t.account.id;axios.post("/i/follow",{item:n}).then((function(i){e.feed.forEach((function(t){t.account.id==n&&(t.account.relationship.following=!t.account.relationship.following)}));var s=t.account.acct;t.account.relationship.following?swal("Follow successful!","You are now following "+s,"success"):swal("Unfollow successful!","You are no longer following "+s,"success")})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},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())},refreshSuggestions:function(){},fetchHashtagPosts:function(){var t=this;axios.get("/api/local/discover/tag/list").then((function(e){var n=e.data;if(0!=n.length){var i=n[Math.floor(Math.random(),n.length)];t.hashtagPostsName=i,axios.get("/api/v2/discover/tag",{params:{hashtag:i}}).then((function(e){e.data.tags.length>3&&(t.showHashtagPosts=!0,t.hashtagPosts=e.data.tags.splice(0,3))}))}}))},ctxMenu:function(t){var e=this;this.ctxMenuStatus=t,this.ctxEmbedPayload=window.App.util.embed.post(t.url),t.account.id==this.profile.id?(this.ctxMenuRelationship=!1,this.$refs.ctxModal.show()):axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":t.account.id}}).then((function(t){e.ctxMenuRelationship=t.data[0],e.$refs.ctxModal.show()}))},closeCtxMenu:function(t){this.copiedEmbed=!1,this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeCtxMenu()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;window.location.href=this.statusUrl(t),this.closeCtxMenu()},ctxMenuFollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var n=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+n,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var n=t.ctxMenuStatus.account.acct;"home"==t.scope&&(t.feed=t.feed.filter((function(e){return e.account.id!=t.ctxMenuStatus.account.id}))),t.closeCtxMenu(),setTimeout((function(){swal("Unfollow successful!","You are no longer following "+n,"success")}),500)}))},ctxMenuReportPost:function(){window.location.href="/i/report?type=post&id="+this.ctxMenuStatus.id},ctxMenuEmbed:function(){this.$refs.ctxModal.hide(),this.$refs.ctxEmbedModal.show()},ctxMenuShare:function(){this.$refs.ctxModal.hide(),this.$refs.ctxShareModal.show()},closeCtxShareMenu:function(){this.$refs.ctxShareModal.hide(),this.$refs.ctxModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.ctxEmbedShowCaption=!0,this.ctxEmbedShowLikes=!1,this.ctxEmbedCompactMode=!1,this.$refs.ctxEmbedModal.hide()},ctxModMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModMenu:function(){this.$refs.ctxModal.hide()},ctxModMenuClose:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide()},formatCount:function(t){return App.util.format.count(t)},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},statusCardUsernameFormat:function(t){if(1==t.account.local)return t.account.username;var e=window.App.config.username.remote.format,n=window.App.config.username.remote.custom,i=t.account.username,s=document.createElement("a");switch(s.href=t.account.url,s=s.hostname,e){case"@":return i+'@'+s+"";case"from":return i+' from '+s+"";case"custom":return i+' '+n+" "+s+"";default:return i+'@'+s+""}},previewUrl:function(t){return t.sensitive?"/storage/no-preview.png?v="+(new Date).getTime():t.media_attachments[0].preview_url},previewBackground:function(t){return"background-image: url("+this.previewUrl(t)+");"},trimCaption:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;return _.truncate(t,{length:e})},hasStory:function(){var t=this;axios.get("/api/stories/v0/exists/"+this.profile.id).then((function(e){t.userStory=e.data}))},rtw:function(){var t=this;this.mpPoller=setInterval((function(){var e=!1;switch(t.mpCount++,t.mpCount>10&&(t.mpInterval=3e4),t.mpCount>50&&(t.mpInterval=3e5),t.scope){case"home":e="/api/pixelfed/v1/timelines/home";break;case"local":e="/api/pixelfed/v1/timelines/public";break;case"network":e="/api/pixelfed/v1/timelines/network"}axios.get(e,{params:{max_id:0,limit:20}}).then((function(e){var n=t,s=t.feed.map((function(t){return t.id})),a=e.data.filter((function(t){return t.id>n.min_id&&-1==s.indexOf(t.id)})),o=a.map((function(t){return t.id}));Math.max.apply(Math,i(o)).toString()>t.min_id&&(t.morePostsAvailable=!0,t.mpData=a)}))}),this.mpInterval)},syncNewPosts:function(){var t,e=this.mpData,n=e.map((function(t){return t.id}));this.min_id=Math.max.apply(Math,i(n)).toString(),this.max_id=Math.min.apply(Math,i(n)).toString(),(t=this.feed).unshift.apply(t,i(e)),this.morePostsAvailable=!1,this.mpData=null},switchFeedLayout:function(t){this.loading=!0,this.layout=t;var e=this;setTimeout((function(){e.loading=!1}),500)},labelRedirect:function(t){var e="/i/redirect?url="+encodeURI(this.config.features.label.covid.url);window.location.href=e}},beforeDestroy:function(){clearInterval(this.mpInterval)}},a=(n("1j9n"),n("KHd+")),o=Object(a.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},["feed"===t.layout?n("div",{staticClass:"row"},[1==t.morePostsAvailable?n("div",{staticClass:"col-12 mt-5 pt-3 mb-3 fixed-top"},[n("p",{staticClass:"text-center"},[n("button",{staticClass:"btn btn-dark px-4 rounded-pill font-weight-bold shadow",on:{click:t.syncNewPosts}},[t._v("Load New Posts")])])]):t._e(),t._v(" "),n("div",{staticClass:"d-none col-12 pl-3 pl-md-0 pt-3 pl-0"},[n("div",{staticClass:"d-none d-md-flex justify-content-between align-items-center"},[n("p",{staticClass:"lead text-muted mb-0"},[n("i",{class:["home"==t.scope?"fas fa-home":"fas fa-stream"]}),t._v("   "+t._s("local"==t.scope?"Public":"Home")+" Timeline")]),t._v(" "),n("p",{staticClass:"mb-0"},[n("span",{staticClass:"btn-group"},[n("a",{class:["feed"==t.layout?"btn btn-sm btn-outline-primary font-weight-bold text-decoration-none":"btn btn-sm btn-outline-lighter font-weight-light text-decoration-none"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchFeedLayout("feed")}}},[n("i",{staticClass:"fas fa-list"})]),t._v(" "),n("a",{class:["feed"!==t.layout?"btn btn-sm btn-outline-primary font-weight-bold text-decoration-none":"btn btn-sm btn-outline-lighter font-weight-light text-decoration-none"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchFeedLayout("grid")}}},[n("i",{staticClass:"fas fa-th"})])])]),t._v(" "),t._m(0)]),t._v(" "),n("hr")]),t._v(" "),n("div",{staticClass:"col-md-8 col-lg-8 px-0 mb-sm-3 timeline order-2 order-md-1"},[n("div",{staticStyle:{"margin-top":"-2px"}},[t.config.features.stories?n("story-component"):t._e()],1),t._v(" "),n("div",[t.loading?n("div",{staticClass:"text-center",staticStyle:{"padding-top":"10px"}},[t._m(1)]):t._e(),t._v(" "),t._l(t.feed,(function(e,i){return n("div",{key:i+"-"+e.id,attrs:{"data-status-id":e.id}},[0==i&&t.showTips&&!t.loading?n("div",{staticClass:"my-4 card-tips"},[n("announcements-card",{on:{"show-tips":function(e){t.showTips=e}}})],1):t._e(),t._v(" "),2==i&&1==t.showSuggestions&&t.suggestions.length?n("div",{staticClass:"card mb-sm-4 status-card card-md-rounded-0 shadow-none border"},[n("div",{staticClass:"card-header d-flex align-items-center justify-content-between bg-white border-0 pb-0"},[n("h6",{staticClass:"text-muted font-weight-bold mb-0"},[t._v("Suggestions For You")]),t._v(" "),n("span",{staticClass:"cursor-pointer text-muted",on:{click:t.hideSuggestions}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),n("div",{staticClass:"card-body row mx-0"},t._l(t.suggestions,(function(e,i){return n("div",{staticClass:"col-12 col-md-4 mb-3"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-body text-center pt-3"},[n("p",{staticClass:"mb-0"},[n("a",{attrs:{href:"/"+e.username}},[n("img",{staticClass:"img-fluid rounded-circle cursor-pointer",attrs:{src:e.avatar,width:"45px",height:"45px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})])]),t._v(" "),n("div",{staticClass:"py-3"},[n("p",{staticClass:"font-weight-bold text-dark cursor-pointer mb-0"},[n("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"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),n("p",{staticClass:"small text-muted mb-0"},[t._v(t._s(e.message))])]),t._v(" "),n("p",{staticClass:"mb-0"},[n("a",{staticClass:"btn btn-primary btn-block font-weight-bold py-0",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.expRecFollow(e.id,i)}}},[t._v("Follow")])])])])])})),0)]):t._e(),t._v(" "),4==i&&t.showHashtagPosts&&t.hashtagPosts.length?n("div",{staticClass:"card mb-sm-4 status-card card-md-rounded-0 shadow-none border"},[n("div",{staticClass:"card-header d-flex align-items-center justify-content-between bg-white border-0 pb-0"},[n("span"),t._v(" "),n("h6",{staticClass:"text-muted font-weight-bold mb-0"},[n("a",{attrs:{href:"/discover/tags/"+t.hashtagPostsName+"?src=tr"}},[t._v("#"+t._s(t.hashtagPostsName))])]),t._v(" "),n("span",{staticClass:"cursor-pointer text-muted",on:{click:function(e){t.showHashtagPosts=!1}}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),n("div",{staticClass:"card-body row mx-0"},t._l(t.hashtagPosts,(function(e,i){return n("div",{staticClass:"col-4 p-0 p-sm-2 p-md-3 hashtag-post-square"},[n("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:e.status.url}},[n("div",{class:[e.status.filter?"square "+e.status.filter:"square"]},[e.status.sensitive?n("div",{staticClass:"square-content"},[t._m(2,!0),t._v(" "),n("blur-hash-canvas",{attrs:{width:"32",height:"32",hash:e.status.media_attachments[0].blurhash}})],1):n("div",{staticClass:"square-content"},[n("blur-hash-image",{attrs:{width:"32",height:"32",hash:e.status.media_attachments[0].blurhash,src:e.status.media_attachments[0].preview_url}})],1),t._v(" "),n("div",{staticClass:"info-overlay-text"},[n("h5",{staticClass:"text-white m-auto font-weight-bold"},[n("span",{staticClass:"pr-4"},[n("span",{staticClass:"far fa-heart fa-lg pr-1"}),t._v(" "+t._s(t.formatCount(e.status.favourites_count))+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),n("span",[n("span",{staticClass:"far fa-comment fa-lg pr-1"}),t._v(" "+t._s(t.formatCount(e.status.reply_count))+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t")])])])])])])})),0)]):t._e(),t._v(" "),n("div",{class:0==i?"card mb-sm-4 status-card card-md-rounded-0 shadow-none border mt-md-4":"card mb-sm-4 status-card card-md-rounded-0 shadow-none border"},[e?n("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[n("div",[n("img",{staticClass:"rounded-circle box-shadow",attrs:{src:e.account.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]),t._v(" "),n("div",{staticClass:"pl-2"},[n("a",{staticClass:"username font-weight-bold text-dark text-decoration-none",attrs:{href:t.profileUrl(e)},domProps:{innerHTML:t._s(t.statusCardUsernameFormat(e))}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\tLoading...\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e.account.is_admin?n("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[n("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),n("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),n("div",{staticClass:"d-flex align-items-center"},[e.place?n("a",{staticClass:"small text-decoration-none text-muted",attrs:{href:"/discover/places/"+e.place.id+"/"+e.place.slug,title:"Location","data-toggle":"tooltip"}},[n("i",{staticClass:"fas fa-map-marked-alt"}),t._v(" "+t._s(e.place.name)+", "+t._s(e.place.country))]):t._e()])]),t._v(" "),n("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[n("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(n){return t.ctxMenu(e)}}},[n("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),n("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]):t._e(),t._v(" "),n("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},[t.config.ab.top&&"text"===e.pf_type?n("div",{staticClass:"w-100"},[n("div",{staticClass:"w-100 card-img-top border-bottom rounded-0",staticStyle:{"background-image":"url(/storage/textimg/bg_1.jpg)","background-size":"cover",width:"100%",height:"540px"}},[n("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center"},[n("p",{staticClass:"text-center text-break h3 px-5 font-weight-bold",domProps:{innerHTML:t._s(e.content)}})])])]):"photo"===e.pf_type?n("div",{staticClass:"w-100"},[n("photo-presenter",{attrs:{status:e},on:{lightbox:t.lightbox}})],1):"video"===e.pf_type?n("div",{staticClass:"w-100"},[n("video-presenter",{attrs:{status:e}})],1):"photo:album"===e.pf_type?n("div",{staticClass:"w-100"},[n("photo-album-presenter",{attrs:{status:e},on:{lightbox:t.lightbox}})],1):"video:album"===e.pf_type?n("div",{staticClass:"w-100"},[n("video-album-presenter",{attrs:{status:e}})],1):"photo:video:album"===e.pf_type?n("div",{staticClass:"w-100"},[n("mixed-album-presenter",{attrs:{status:e},on:{lightbox:t.lightbox}})],1):n("div",{staticClass:"w-100"},[n("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])]),t._v(" "),t.config.features.label.covid.enabled&&e.label&&1==e.label.covid?n("div",{staticClass:"card-body border-top border-bottom py-2 cursor-pointer pr-2",on:{click:function(e){return t.labelRedirect()}}},[n("p",{staticClass:"font-weight-bold d-flex justify-content-between align-items-center mb-0"},[n("span",[n("i",{staticClass:"fas fa-info-circle mr-2"}),t._v("\n\t\t\t\t\t\t\t\t\tFor information about COVID-19, "+t._s(t.config.features.label.covid.org)+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),t._m(3,!0)])]):t._e(),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"reactions my-1 pb-2"},[e.favourited?n("h3",{staticClass:"fas fa-heart text-danger pr-3 m-0 cursor-pointer",attrs:{title:"Like"},on:{click:function(n){return t.likeStatus(e,n)}}}):n("h3",{staticClass:"far fa-heart pr-3 m-0 like-btn text-lighter cursor-pointer",attrs:{title:"Like"},on:{click:function(n){return t.likeStatus(e,n)}}}),t._v(" "),e.comments_disabled?t._e():n("h3",{staticClass:"far fa-comment text-lighter pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(n){return t.commentFocus(e,n)}}}),t._v(" "),"public"==e.visibility?n("h3",{class:[e.reblogged?"fas fa-retweet pr-3 m-0 text-primary cursor-pointer":"fas fa-retweet pr-3 m-0 text-lighter share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:function(n){return t.shareStatus(e,n)}}}):t._e(),t._v(" "),n("h3",{staticClass:"fas fa-expand pr-3 m-0 cursor-pointer text-lighter",on:{click:function(n){return t.lightbox(e)}}}),t._v(" "),e.taggedPeople.length?n("span",{staticClass:"float-right"},[n("span",{staticClass:"font-weight-light small",staticStyle:{color:"#718096"}},[n("i",{staticClass:"far fa-user",attrs:{"data-toggle":"tooltip",title:"Tagged People"}}),t._v(" "),t._l(e.taggedPeople,(function(t,e){return n("span",{staticClass:"mr-n2"},[n("a",{attrs:{href:"/"+t.username}},[n("img",{staticClass:"border rounded-circle",attrs:{src:t.avatar,width:"20px",height:"20px","data-toggle":"tooltip",title:"@"+t.username,alt:"Avatar"}})])])}))],2)]):t._e()]),t._v(" "),1==t.expLc(e)?n("div",{staticClass:"likes font-weight-bold"},[n("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(" "),"text"!=e.pf_type?n("div",{staticClass:"caption"},[n("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[n("span",{staticClass:"username font-weight-bold"},[n("bdi",[n("a",{staticClass:"text-dark",attrs:{href:t.profileUrl(e)}},[t._v(t._s(e.account.username))])])]),t._v(" "),n("span",{staticClass:"status-content",domProps:{innerHTML:t._s(e.content)}})])]):t._e(),t._v(" "),e.id!=t.replyId||e.comments_disabled?t._e():n("div",{staticClass:"comments"},t._l(t.replies,(function(e,i){return n("p",{staticClass:"mb-0 d-flex justify-content-between align-items-top read-more mt-2",staticStyle:{"overflow-y":"hidden"}},[n("span",[n("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:t.profileUrl(e)}},[t._v(t._s(e.account.username))]),t._v(" "),n("span",{staticClass:"comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),n("span",{staticClass:"mb-0",staticStyle:{"min-width":"38px"}},[n("span",{on:{click:function(n){return t.likeStatus(e,n)}}},[n("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger cursor-pointer":"far fa-heart fa-sm text-lighter cursor-pointer"]})]),t._v(" "),n("span",{staticClass:"text-lighter pl-2 cursor-pointer",on:{click:function(n){return t.ctxMenu(e)}}},[n("span",{staticClass:"fas fa-ellipsis-v text-lighter"})])])])})),0),t._v(" "),n("div",{staticClass:"timestamp mt-2"},[n("p",{staticClass:"small text-uppercase mb-0"},[n("a",{staticClass:"text-muted",attrs:{href:t.statusUrl(e)}},[n("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(" "),!t.loading&&t.feed.length?n("div",[n("div",{staticClass:"card shadow-none"},[n("div",{staticClass:"card-body"},[n("infinite-loading",{attrs:{distance:800},on:{infinite:t.infiniteTimeline}},[n("div",{staticClass:"font-weight-bold",attrs:{slot:"no-more"},slot:"no-more"},[t._v("No more posts to load")]),t._v(" "),n("div",{staticClass:"font-weight-bold",attrs:{slot:"no-results"},slot:"no-results"},[t._v("No more posts to load")])])],1)])]):t._e(),t._v(" "),t.loading||"home"!=t.scope||0!=t.feed.length?t._e():n("div",[n("div",{staticClass:"card shadow-none border"},[n("div",{staticClass:"card-body text-center"},[n("p",{staticClass:"h2 font-weight-lighter p-5"},[t._v("Hello, "+t._s(t.profile.acct))]),t._v(" "),t._m(4),t._v(" "),n("p",{staticClass:"h3 font-weight-lighter p-5"},[t._v("Start following people to build your timeline.")]),t._v(" "),t._m(5)])])])],2)]),t._v(" "),n("div",{staticClass:"col-md-4 col-lg-4 my-4 order-1 order-md-2 d-none d-md-block"},[n("div",[n("div",{staticClass:"mb-4"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}]},[n("div",{staticClass:"pb-2"},[n("div",{staticClass:"media d-flex align-items-center"},[n("a",{staticClass:"mr-3",attrs:{href:t.userStory?"/stories/"+t.profile.acct:t.profile.url}},[t.userStory?n("div",{staticClass:"has-story cursor-pointer shadow-sm",on:{click:function(e){return t.storyRedirect()}}},[n("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.profile.avatar,width:"64px",height:"64px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]):n("div",[n("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.profile.avatar,width:"64px",height:"64px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})])]),t._v(" "),n("div",{staticClass:"media-body d-flex justify-content-between word-break"},[n("div",[n("p",{staticClass:"mb-0 px-0 font-weight-bold"},[n("a",{staticClass:"text-dark",attrs:{href:t.profile.url}},[t._v(t._s(t.profile.username||"loading..."))])]),t._v(" "),n("p",{staticClass:"my-0 text-muted pb-0"},[t._v(t._s(t.profile.display_name||"loading..."))])]),t._v(" "),t._m(6)])])])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1==t.modes.notify&&!t.loading,expression:"modes.notify == true && !loading"}],staticClass:"mb-4"},[n("notification-card")],1),t._v(" "),n("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"},[n("div",{staticClass:"card shadow-none border"},[n("div",{staticClass:"card-header bg-white d-flex align-items-center justify-content-between"},[n("a",{ref:"suggestionRefresh",staticClass:"small text-muted cursor-pointer",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.refreshSuggestions(e)}}},[n("i",{staticClass:"fas fa-sync-alt"})]),t._v(" "),n("div",{staticClass:"small text-dark text-uppercase font-weight-bold"},[t._v("Suggestions")]),t._v(" "),n("div",{staticClass:"small text-muted cursor-pointer",on:{click:t.hideSuggestions}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),n("div",{staticClass:"card-body pt-0"},t._l(t.suggestions,(function(e,i){return n("div",{staticClass:"media align-items-center mt-3"},[n("a",{attrs:{href:"/"+e.username}},[n("img",{staticClass:"rounded-circle mr-3",attrs:{src:e.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]),t._v(" "),n("div",{staticClass:"media-body"},[n("p",{staticClass:"mb-0 font-weight-bold small"},[n("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(" "),n("p",{staticClass:"mb-0 small text-muted"},[t._v(t._s(e.message))])]),t._v(" "),n("a",{staticClass:"font-weight-bold small",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.expRecFollow(e.id,i)}}},[t._v("Follow")])])})),0)])]),t._v(" "),t._m(7)])])]):n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 pl-3 pl-md-0 pt-3 pl-0"},[n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("p",{staticClass:"lead text-muted mb-0"},[n("i",{class:["home"==t.scope?"fas fa-home":"fas fa-stream"]}),t._v("   "+t._s("local"==t.scope?"Public":"Home")+" Timeline")]),t._v(" "),n("p",{staticClass:"mb-0"},[n("span",{staticClass:"btn-group"},[n("a",{class:["feed"==t.layout?"btn btn-sm btn-outline-primary font-weight-bold text-decoration-none":"btn btn-sm btn-outline-lighter font-weight-light text-decoration-none"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchFeedLayout("feed")}}},[n("i",{staticClass:"fas fa-list"})]),t._v(" "),n("a",{class:["feed"!==t.layout?"btn btn-sm btn-outline-primary font-weight-bold text-decoration-none":"btn btn-sm btn-outline-lighter font-weight-light text-decoration-none"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchFeedLayout("grid")}}},[n("i",{staticClass:"fas fa-th"})])])]),t._v(" "),t._m(8)]),t._v(" "),n("hr")]),t._v(" "),t._l(t.feed,(function(e,i){return n("div",{key:i+"-"+e.id,staticClass:"col-12 col-md-4 p-1 p-md-3 mb-3"},[n("a",{staticClass:"card info-overlay card-md-border-0 shadow-sm border border-light",attrs:{href:t.statusUrl(e)}},[n("div",{class:[e.sensitive?"square":"square "+e.media_attachments[0].filter_class]},["photo:album"==e.pf_type?n("span",{staticClass:"float-right mr-3 post-icon"},[n("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==e.pf_type?n("span",{staticClass:"float-right mr-3 post-icon"},[n("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==e.pf_type?n("span",{staticClass:"float-right mr-3 post-icon"},[n("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),n("div",{staticClass:"square-content",style:t.previewBackground(e)}),t._v(" "),n("div",{staticClass:"info-overlay-text px-4"},[n("p",{staticClass:"text-white m-auto text-center"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.trimCaption(e.content_text))+"\n\t\t\t\t\t\t\t\t")])])])]),t._v(" "),n("div",{staticClass:"py-3 media align-items-center"},[n("a",{staticClass:"text-decoration-none",attrs:{href:e.account.url}},[n("img",{staticClass:"mr-3 rounded-circle shadow-sm",attrs:{src:e.account.avatar,alt:e.account.username+" 's avatar",width:"30px",height:"30px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),t._v(" "),n("div",{staticClass:"media-body"},[n("p",{staticClass:"mb-0 font-weight-bold small"},[n("a",{staticClass:"text-dark",attrs:{href:e.account.url}},[t._v(t._s(e.account.username))])]),t._v(" "),n("p",{staticClass:"mb-0",staticStyle:{"line-height":"0.7"}},[n("a",{staticClass:"small text-lighter",attrs:{href:t.statusUrl(e)}},[n("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(" "),n("div",{staticClass:"ml-3"},[n("p",{staticClass:"mb-0"},[t.statusOwner(e)?n("span",{staticClass:"font-weight-bold small"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e(),t._v(" "),n("span",{staticClass:"px-2"},[n("i",{class:[e.favourited?"fas fa-heart text-danger cursor-pointer":"far fa-heart like-btn text-lighter cursor-pointer"],on:{click:function(n){return t.likeStatus(e,n)}}})]),t._v(" "),n("span",{staticClass:"mr-2 cursor-pointer"},[n("i",{staticClass:"fas fa-ellipsis-v",on:{click:function(n){return t.ctxMenu(e)}}})])])])])])}))],2),t._v(" "),!t.loading&&t.feed.length?n("div",[n("infinite-loading",{attrs:{distance:800},on:{infinite:t.infiniteTimeline}},[n("div",{staticClass:"font-weight-bold",attrs:{slot:"no-more"},slot:"no-more"},[t._v("No more posts to load")]),t._v(" "),n("div",{staticClass:"font-weight-bold",attrs:{slot:"no-results"},slot:"no-results"},[t._v("No more posts to load")])])],1):t._e()])]),t._v(" "),n("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[n("div",{staticClass:"list-group text-center"},[t.ctxMenuStatus&&t.ctxMenuStatus.account.id!=t.profile.id?n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("Report")]):t._e(),t._v(" "),t.ctxMenuStatus&&t.ctxMenuStatus.account.id!=t.profile.id&&t.ctxMenuRelationship&&t.ctxMenuRelationship.following?n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.ctxMenuUnfollow()}}},[t._v("Unfollow")]):t._e(),t._v(" "),t.ctxMenuStatus&&t.ctxMenuStatus.account.id!=t.profile.id&&t.ctxMenuRelationship&&!t.ctxMenuRelationship.following?n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-primary",on:{click:function(e){return t.ctxMenuFollow()}}},[t._v("Follow")]):t._e(),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("Go to post")]),t._v(" "),t.ctxMenuStatus&&1==t.ctxMenuStatus.local&&!t.ctxMenuStatus.in_reply_to_id?n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v("Embed")]):t._e(),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.profile&&1==t.profile.is_admin?n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxModMenuShow()}}},[t._v("Moderation Tools")]):t._e(),t._v(" "),t.ctxMenuStatus&&(t.profile.is_admin||t.profile.id==t.ctxMenuStatus.account.id)?n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.deletePost(t.ctxMenuStatus)}}},[t._v("Delete")]):t._e(),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),n("b-modal",{ref:"ctxModModal",attrs:{id:"ctx-mod-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[n("div",{staticClass:"list-group text-center"},[n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.ctxMenuStatus,"unlist")}}},[t._v("Unlist from Timelines")]),t._v(" "),t.ctxMenuStatus.sensitive?n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.ctxMenuStatus,"remcw")}}},[t._v("Remove Content Warning")]):n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.ctxMenuStatus,"addcw")}}},[t._v("Add Content Warning")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),n("b-modal",{ref:"ctxShareModal",attrs:{id:"ctx-share-modal",title:"Share","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded text-center"}},[n("div",{staticClass:"list-group-item rounded cursor-pointer border-top-0"},[t._v("Email")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer"},[t._v("Facebook")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer"},[t._v("Mastodon")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer"},[t._v("Pinterest")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer"},[t._v("Pixelfed")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer"},[t._v("Twitter")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer"},[t._v("VK")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),n("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[n("div",[n("div",{staticClass:"form-group"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedPayload,expression:"ctxEmbedPayload"}],staticClass:"form-control disabled text-monospace",staticStyle:{"overflow-y":"hidden",border:"1px solid #efefef","font-size":"12px","line-height":"18px",margin:"0 0 7px",resize:"none"},attrs:{rows:"8",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[n("div",{staticClass:"form-check mr-3"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowCaption,expression:"ctxEmbedShowCaption"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowCaption)?t._i(t.ctxEmbedShowCaption,null)>-1:t.ctxEmbedShowCaption},on:{change:function(e){var n=t.ctxEmbedShowCaption,i=e.target,s=!!i.checked;if(Array.isArray(n)){var a=t._i(n,null);i.checked?a<0&&(t.ctxEmbedShowCaption=n.concat([null])):a>-1&&(t.ctxEmbedShowCaption=n.slice(0,a).concat(n.slice(a+1)))}else t.ctxEmbedShowCaption=s}}}),t._v(" "),n("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\tShow Caption\n\t\t\t")])]),t._v(" "),n("div",{staticClass:"form-check mr-3"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowLikes,expression:"ctxEmbedShowLikes"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowLikes)?t._i(t.ctxEmbedShowLikes,null)>-1:t.ctxEmbedShowLikes},on:{change:function(e){var n=t.ctxEmbedShowLikes,i=e.target,s=!!i.checked;if(Array.isArray(n)){var a=t._i(n,null);i.checked?a<0&&(t.ctxEmbedShowLikes=n.concat([null])):a>-1&&(t.ctxEmbedShowLikes=n.slice(0,a).concat(n.slice(a+1)))}else t.ctxEmbedShowLikes=s}}}),t._v(" "),n("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\tShow Likes\n\t\t\t")])]),t._v(" "),n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedCompactMode,expression:"ctxEmbedCompactMode"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.ctxEmbedCompactMode)?t._i(t.ctxEmbedCompactMode,null)>-1:t.ctxEmbedCompactMode},on:{change:function(e){var n=t.ctxEmbedCompactMode,i=e.target,s=!!i.checked;if(Array.isArray(n)){var a=t._i(n,null);i.checked?a<0&&(t.ctxEmbedCompactMode=n.concat([null])):a>-1&&(t.ctxEmbedCompactMode=n.slice(0,a).concat(n.slice(a+1)))}else t.ctxEmbedCompactMode=s}}}),t._v(" "),n("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\tCompact Mode\n\t\t\t")])])]),t._v(" "),n("hr"),t._v(" "),n("button",{class:t.copiedEmbed?"btn btn-primary btn-block btn-sm py-1 font-weight-bold disabed":"btn btn-primary btn-block btn-sm py-1 font-weight-bold",attrs:{disabled:t.copiedEmbed},on:{click:t.ctxCopyEmbed}},[t._v(t._s(t.copiedEmbed?"Embed Code Copied!":"Copy Embed Code"))]),t._v(" "),n("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),n("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),n("b-modal",{ref:"lightboxModal",attrs:{id:"lightbox","hide-header":"","hide-footer":"",centered:"",size:"lg","body-class":"p-0"}},[t.lightboxMedia?n("div",{staticClass:"w-100 h-100",class:t.lightboxMedia.filter_class},[n("img",{staticStyle:{"max-height":"100%","max-width":"100%"},attrs:{src:t.lightboxMedia.url,alt:"lightbox media"}})]):t._e()]),t._v(" "),n("b-modal",{ref:"replyModal",attrs:{id:"ctx-reply-modal","hide-footer":"",centered:"",rounded:"","title-html":t.replyStatus.account?"Reply to "+t.replyStatus.account.username+"":"","title-tag":"p","title-class":"font-weight-bold text-muted",size:"md","body-class":"p-2 rounded"}},[n("div",[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control",staticStyle:{border:"none","font-size":"18px",resize:"none","white-space":"pre-wrap",outline:"none"},attrs:{rows:"4",placeholder:"Reply here ..."},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}}),t._v(" "),n("div",{staticClass:"border-top border-bottom my-2"},[n("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},t._l(t.emoji,(function(e){return n("li",{staticClass:"nav-item",on:{click:function(e){return t.emojiReaction(t.status)}}},[t._v(t._s(e))])})),0)]),t._v(" "),n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("div",[n("span",{staticClass:"pl-2 small text-muted font-weight-bold text-monospace"},[n("span",{class:[t.replyText.length>t.config.uploader.max_caption_length?"text-danger":"text-dark"]},[t._v(t._s(t.replyText.length>t.config.uploader.max_caption_length?t.config.uploader.max_caption_length-t.replyText.length:t.replyText.length))]),t._v("/"+t._s(t.config.uploader.max_caption_length)+"\n\t\t\t")])]),t._v(" "),n("div",{staticClass:"d-flex align-items-center"},[n("div",{staticClass:"custom-control custom-switch mr-3"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.replyNsfw,expression:"replyNsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"replyModalCWSwitch"},domProps:{checked:Array.isArray(t.replyNsfw)?t._i(t.replyNsfw,null)>-1:t.replyNsfw},on:{change:function(e){var n=t.replyNsfw,i=e.target,s=!!i.checked;if(Array.isArray(n)){var a=t._i(n,null);i.checked?a<0&&(t.replyNsfw=n.concat([null])):a>-1&&(t.replyNsfw=n.slice(0,a).concat(n.slice(a+1)))}else t.replyNsfw=s}}}),t._v(" "),n("label",{class:[t.replyNsfw?"custom-control-label font-weight-bold text-dark":"custom-control-label text-lighter"],attrs:{for:"replyModalCWSwitch"}},[t._v("Mark as NSFW")])]),t._v(" "),n("button",{staticClass:"btn btn-primary btn-sm py-2 px-4 lead text-uppercase font-weight-bold",attrs:{disabled:0==t.replyText.length},on:{click:function(e){return e.preventDefault(),t.commentSubmit(t.status,e)}}},[t._v("\n\t\t\t\t\t"+t._s(1==t.replySending?"POSTING":"POST")+"\n\t\t\t\t")])])])])])],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 d-none d-md-block"},[e("a",{staticClass:"btn btn-block btn-primary btn-sm font-weight-bold",attrs:{href:"/i/compose","data-toggle":"modal","data-target":"#composeModal"}},[this._v("\n\t\t\t\t\t\t\tNew Post\n\t\t\t\t\t\t")])])},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("div",{staticClass:"info-overlay-text-label"},[e("h5",{staticClass:"text-white m-auto font-weight-bold"},[e("span",[e("span",{staticClass:"far fa-eye-slash fa-lg p-2 d-flex-inline"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",[e("i",{staticClass:"fas fa-chevron-right text-lighter"})])},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:"ml-2"},[e("a",{staticClass:"text-muted",attrs:{href:"/settings/home"}},[e("i",{staticClass:"fas fa-cog fa-lg"}),this._v(" "),e("span",{staticClass:"sr-only"},[this._v("User Settings")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",[n("div",{staticClass:"container pb-5"},[n("p",{staticClass:"mb-0 text-uppercase font-weight-bold text-muted small"},[n("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/about"}},[t._v("About")]),t._v(" "),n("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/help"}},[t._v("Help")]),t._v(" "),n("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/language"}},[t._v("Language")]),t._v(" "),n("a",{staticClass:"text-dark pr-2",attrs:{href:"/discover/profiles"}},[t._v("Profiles")]),t._v(" "),n("a",{staticClass:"text-dark pr-2",attrs:{href:"/discover/places"}},[t._v("Places")]),t._v(" "),n("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/privacy"}},[t._v("Privacy")]),t._v(" "),n("a",{staticClass:"text-dark pr-2",attrs:{href:"/site/terms"}},[t._v("Terms")])]),t._v(" "),n("p",{staticClass:"mb-0 text-uppercase font-weight-bold text-muted small"},[n("a",{staticClass:"text-muted",attrs:{href:"http://pixelfed.org",rel:"noopener",title:"","data-toggle":"tooltip"}},[t._v("Powered by Pixelfed")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 d-none d-md-block"},[e("a",{staticClass:"btn btn-block btn-primary btn-sm font-weight-bold",attrs:{href:"/i/compose","data-toggle":"modal","data-target":"#composeModal"}},[this._v("\n\t\t\t\t\t\t\t\tNew Post\n\t\t\t\t\t\t\t")])])}],!1,null,"935557cc",null);e.default=o.exports},KqaD:function(t,e,n){Vue.component("notification-card",n("x6yo").default),Vue.component("photo-presenter",n("d+I4").default),Vue.component("video-presenter",n("2Jpm").default),Vue.component("photo-album-presenter",n("Mrqh").default),Vue.component("video-album-presenter",n("9wGH").default),Vue.component("mixed-album-presenter",n("exej").default),Vue.component("post-menu",n("yric").default),Vue.component("timeline",n("KhVi").default),Vue.component("announcements-card",n("hoKv").default),Vue.component("story-component",n("oDnJ").default)},Mrqh:function(t,e,n){"use strict";n.r(e);var i={props:["status"],data:function(){return{cursor:0}},created:function(){},beforeDestroy:function(){},methods:{loadSensitive:function(){this.$refs.carousel.onResize(),this.$refs.carousel.goToPage(0)},altText:function(t){var e=t.description;return e||"Photo was not tagged with any alt text."},keypressNavigation:function(t){var e=this.$refs.carousel;if("37"==t.keyCode){t.preventDefault();e.advancePage("backward"),e.$emit("navigation-click","backward")}if("39"==t.keyCode){t.preventDefault();e.advancePage("forward"),e.$emit("navigation-click","forward")}}}},s=(n("B6o4"),n("KHd+")),a=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1==t.status.sensitive?n("div",[n("details",{staticClass:"details-animated"},[n("summary",{on:{click:t.loadSensitive}},[n("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(" "),n("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),n("carousel",{ref:"carousel",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb"}},t._l(t.status.media_attachments,(function(e,i){return n("slide",{key:"px-carousel-"+e.id+"-"+i,staticClass:"w-100 h-100 d-block mx-auto text-center",attrs:{title:e.description}},[n("img",{class:e.filter_class+" img-fluid",attrs:{src:e.url,alt:t.altText(e),onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})])})),1)],1)]):n("div",{staticClass:"w-100 h-100 p-0"},[n("carousel",{ref:"carousel",staticClass:"p-0 m-0",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb"}},t._l(t.status.media_attachments,(function(e,i){return n("slide",{key:"px-carousel-"+e.id+"-"+i,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:e.description}},[n("img",{class:e.filter_class+" img-fluid w-100 p-0",attrs:{src:e.url,alt:t.altText(e),onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})])})),1)],1)}),[],!1,null,"6949ea70",null);e.default=a.exports},N0po:function(t,e,n){var i=n("US+e");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},Oa72:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n#storyContainer > .story[data-v-42243767] {\n\tmargin-right: 3rem;\n}\n",""])},OizH:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.text-lighter[data-v-0ed43037] {\n\tcolor:#B8C2CC !important;\n}\n.modal-body[data-v-0ed43037] {\n\tpadding: 0;\n}\n",""])},"US+e":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.fade-enter-active[data-v-267be4b0], .fade-leave-active[data-v-267be4b0] {\n -webkit-transition: opacity .5s;\n transition: opacity .5s;\n}\n.fade-enter[data-v-267be4b0], .fade-leave-to[data-v-267be4b0] {\n opacity: 0;\n}\n",""])},VDSh:function(t,e,n){var i=n("fwP1");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},YG3N:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-6949ea70] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n",""])},"aET+":function(t,e,n){var i,s,a={},o=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===s&&(s=i.apply(this,arguments)),s}),r=function(t,e){return e?e.querySelector(t):document.querySelector(t)},l=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var i=r.call(this,t,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}}(),c=null,d=0,u=[],m=n("9tPo");function p(t,e){for(var n=0;n=0&&u.splice(e,1)}function g(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 n.nc}();i&&(t.attrs.nonce=i)}return b(e,t.attrs),h(t,e),e}function b(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function w(t,e){var n,i,s,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 o=d++;n=c||(c=g(e)),i=_.bind(null,n,o,!1),s=_.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",b(e,t.attrs),h(t,e),e}(e),i=C.bind(null,n,e),s=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),i=k.bind(null,n),s=function(){v(n)});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 s()}}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 n=f(t,e);return p(n,e),function(t){for(var i=[],s=0;s