pixelfed/public/js/memoryprofile.js
2021-02-15 20:33:21 -07:00

1 line
No EOL
58 KiB
JavaScript
Vendored
Raw Blame History

This file contains ambiguous Unicode characters

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

(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{24:function(t,e,o){t.exports=o("Gq1z")},"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 o=e.protocol+"//"+e.host,i=o+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var n,s=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(s)?t:(n=0===s.indexOf("//")?s:0===s.indexOf("/")?o+s:i+s.replace(/^\.\//,""),"url("+JSON.stringify(n)+")")}))}},Gq1z:function(t,e,o){Vue.component("post-menu",o("yric").default),Vue.component("memory-profile",o("Yca9").default)},H5IC:function(t,e,o){var i=o("RKqB");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};o("aET+")(i,n);i.locals&&(t.exports=i.locals)},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=function(t,e){var o=t[1]||"",i=t[3];if(!i)return o;if(e&&"function"==typeof btoa){var n=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),s=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[o].concat(s).concat([n]).join("\n")}var a;return[o].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},n=0;n<this.length;n++){var s=this[n][0];"number"==typeof s&&(i[s]=!0)}for(n=0;n<t.length;n++){var a=t[n];"number"==typeof a[0]&&i[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),e.push(a))}},e}},"KHd+":function(t,e,o){"use strict";function i(t,e,o,i,n,s,a,r){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=o,c._compiled=!0),i&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):n&&(l=r?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:c}}o.d(e,"a",(function(){return i}))},OizH:function(t,e,o){(t.exports=o("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",""])},RKqB:function(t,e,o){(t.exports=o("I1BE")(!1)).push([t.i,"\n.o-square[data-v-23eb3e68] {\n\tmax-width: 320px;\n}\n.o-portrait[data-v-23eb3e68] {\n\tmax-width: 320px;\n}\n.o-landscape[data-v-23eb3e68] {\n\tmax-width: 320px;\n}\n.post-icon[data-v-23eb3e68] {\n\tcolor: #fff;\n\tposition:relative;\n\tmargin-top: 10px;\n\tz-index: 9;\n\topacity: 0.6;\n\ttext-shadow: 3px 3px 16px #272634;\n}\n.font-size-16px[data-v-23eb3e68] {\n\tfont-size: 16px;\n}\n.profile-website[data-v-23eb3e68] {\n\tcolor: #003569;\n\ttext-decoration: none;\n\tfont-weight: 600;\n}\n.nav-topbar .nav-link[data-v-23eb3e68] {\n\tcolor: #999;\n}\n.nav-topbar .nav-link .small[data-v-23eb3e68] {\n\tfont-weight: 600;\n}\n.has-story[data-v-23eb3e68] {\n\twidth: 84px;\n\theight: 84px;\n\tborder-radius: 50%;\n\tpadding: 4px;\n\tbackground: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.has-story img[data-v-23eb3e68] {\n\twidth: 76px;\n\theight: 76px;\n\tborder-radius: 50%;\n\tpadding: 6px;\n\tbackground: #fff;\n}\n.has-story-lg[data-v-23eb3e68] {\n\twidth: 159px;\n\theight: 159px;\n\tborder-radius: 50%;\n\tpadding: 4px;\n\tbackground: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.has-story-lg img[data-v-23eb3e68] {\n\twidth: 150px;\n\theight: 150px;\n\tborder-radius: 50%;\n\tpadding: 6px;\n\tbackground:#fff;\n}\n.no-focus[data-v-23eb3e68] {\n\tborder-color: none;\n\toutline: 0;\n\tbox-shadow: none;\n}\n.modal-tab-active[data-v-23eb3e68] {\n\tborder-bottom: 1px solid #08d;\n}\n.bg-primary[data-v-23eb3e68] {\n\tbackground: rgb(91,128,160);\n\tbackground: linear-gradient(180deg, rgba(91,128,160,1) 0%, rgba(62,100,135,1) 100%);\n}\n.bg-dark[data-v-23eb3e68] {\n\tbackground: #191919;\n}\n.font-logo[data-v-23eb3e68] {\n\tfont-family: 'Coming Soon';\n}\n.text-white[data-v-23eb3e68] {\n\tcolor: #999999;\n}\n.navbar[data-v-23eb3e68] {\n\tpadding: 0;\n}\n.nav-card[data-v-23eb3e68] {\n\theight: 53px;\n\tborder-left: 1px solid #4a6c8a;\n\tborder-right: 1px solid #4a6c8a;\n}\n.nav-card[data-v-23eb3e68]::after {\n\theight: 53px;\n\tborder-left: 1px solid #55748f;\n\tborder-right: 1px solid #55748f;\n}\n@media (min-width: 1200px) {\n.container[data-v-23eb3e68] {\n\t\tmax-width: 1030px;\n}\n}\n.btn-primary[data-v-23eb3e68] {\n\tfont-size: 13px;\n\tfont-weight: 500 !important;\n\tbackground: rgb(91,128,160);\n\tbackground: linear-gradient(180deg, rgba(91,128,160,1) 0%, rgba(62,100,135,1) 100%);\n\tborder-color: #456a8b;\n}\n.btn-lighter[data-v-23eb3e68] {\n\tfont-size: 13px;\n\tfont-weight: 500 !important;\n\tbackground: rgb(250,250,250);\n\tbackground: linear-gradient(180deg, rgba(250,250,250,1) 0%, rgba(236,236,236,1) 100%);\n\tborder-color: #cccccc;\n\tcolor: #999999;\n}\n.btn-lighter .lead[data-v-23eb3e68] {\n\tcolor: #272727;\n}\n.img-cover[data-v-23eb3e68] {\n\t-o-object-fit: cover;\n\t object-fit: cover;\n}\n.dropdown-toggle[data-v-23eb3e68]::after {\n\tdisplay:none;\n}\n",""])},Yca9:function(t,e,o){"use strict";o.r(e);var i=o("la7V");function n(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}var a={props:["profile-id","profile-layout","profile-settings","profile-username"],data:function(){return{ids:[],profile:{},user:!1,timeline:[],timelinePage:1,min_id:0,max_id:0,loading:!0,owner:!1,layout:this.profileLayout,mode:"grid",modes:["grid","collections","bookmarks"],modalStatus:!1,relationship:{},followers:[],followerCursor:1,followerMore:!0,following:[],followingCursor:1,followingMore:!0,warning:!1,sponsorList:[],bookmarks:[],bookmarksPage:2,collections:[],collectionsPage:2,isMobile:!1,ctxEmbedPayload:null,copiedEmbed:!1,hasStory:null,followingModalSearch:null,followingModalSearchCache:null,followingModalTab:"following",bookmarksLoading:!0,page:"home",pages:["home","collections","places","saved","likes","404"],likesCursor:1,likesTimeline:[]}},beforeMount:function(){this.fetchRelationships(),this.fetchProfile();var t=new URLSearchParams(window.location.search);if((1==("true"==localStorage.getItem("pf_metro_ui.exp.forceMetro"))||t.has("ui")&&"metro"==t.get("ui")&&"metro"!=this.layout)&&(this.layout="metro"),t.has("ui")&&"moment"==t.get("ui")&&"moment"!=this.layout&&(Vue.use(i.a),this.layout="moment"),"metro"==this.layout&&t.has("t")&&-1!=this.modes.indexOf(t.get("t"))){if("bookmarks"==t.get("t"))return;this.mode=t.get("t")}},mounted:function(){var t=this,e=new URLSearchParams(window.location.search);e.has("md")&&"followers"==e.get("md")&&this.followersModal(),e.has("md")&&"following"==e.get("md")&&this.followingModal(),1==document.querySelectorAll("body")[0].classList.contains("loggedIn")&&axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.user=e.data,window._sharedData.curUser=e.data,window.App.util.navatar(),e.data.id!=t.profileId&&1!=t.relationship.following||axios.get("/api/stories/v0/exists/"+t.profileId).then((function(e){t.hasStory=1==e.data}))})),window.outerWidth<576&&($("nav.navbar").hide(),this.isMobile=!0),$("body").css("background","#d4d4d4")},updated:function(){$('[data-toggle="tooltip"]').tooltip()},methods:{fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/"+this.profileId).then((function(e){t.profile=e.data})).then((function(e){t.fetchPosts()}))},fetchPosts:function(){var t=this,e="/api/pixelfed/v1/accounts/"+this.profileId+"/statuses";axios.get(e,{params:{limit:12,only_media:!0,min_id:1}}).then((function(e){var o=e.data.filter((function(t){return t.media_attachments.length>0})),i=o.map((function(t){return t.id}));t.ids=i,t.min_id=Math.max.apply(Math,n(i)),t.max_id=Math.min.apply(Math,n(i)),t.modalStatus=_.first(e.data),t.timelineCache=o,t.timeline=o,t.ownerCheck(),document.querySelectorAll("body")[0].classList.contains("loggedIn")&&t.fetchLikes(),t.loading=!1})).catch((function(t){swal("Oops, something went wrong","Please release the page.","error")}))},ownerCheck:function(){0!=$("body").hasClass("loggedIn")?this.owner=this.profile.id===this.user.id:this.owner=!1},infiniteTimeline:function(t){var e=this;if(this.loading||this.timeline.length<9)t.complete();else{var o="/api/pixelfed/v1/accounts/"+this.profileId+"/statuses";axios.get(o,{params:{only_media:!0,max_id:this.max_id}}).then((function(o){if(o.data.length&&0==e.loading){var i=o.data,s=e;i.forEach((function(t){-1==s.ids.indexOf(t.id)&&(s.timeline.push(t),s.ids.push(t.id))}));var a=Math.min.apply(Math,n(e.ids));if(a==e.max_id)return void t.complete();e.min_id=Math.max.apply(Math,n(e.ids)),e.max_id=a,t.loaded(),e.loading=!1}else t.complete()}))}},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)+");"},switchMode:function(t){var e=this;this.page=_.indexOf(this.pages,t)?t:"home","saved"==this.page&&0==this.bookmarks.length&&axios.get("/api/local/bookmarks").then((function(t){e.bookmarks=t.data,e.bookmarksLoading=!1})),"collections"==this.page&&0==this.collections.length&&axios.get("/api/local/profile/collections/"+this.profileId).then((function(t){e.collections=t.data}))},reportProfile:function(){var t=this.profile.id;window.location.href="/i/report?type=user&id="+t},reportUrl:function(t){return"/i/report?type="+(t.in_reply_to?"comment":"post")+"&id="+t.id},commentFocus:function(t,e){var o=event.target.parentElement.parentElement.parentElement,i=o.getElementsByClassName("comments")[0];0==i.children.length&&(i.classList.add("mb-2"),this.fetchStatusComments(t,o));var n=o.querySelectorAll(".card-footer")[0],s=o.querySelectorAll(".status-reply-input")[0];1==n.classList.contains("d-none")?(n.classList.remove("d-none"),s.focus()):(n.classList.add("d-none"),s.blur())},likeStatus:function(t,e){0!=$("body").hasClass("loggedIn")&&axios.post("/i/like",{item:t.id}).then((function(e){t.favourites_count=e.data.count,1==t.favourited?t.favourited=!1:t.favourited=!0})).catch((function(t){swal("Error","Something went wrong, please try again later.","error")}))},shareStatus:function(t,e){0!=$("body").hasClass("loggedIn")&&axios.post("/i/share",{item:t.id}).then((function(e){t.reblogs_count=e.data.count,1==t.reblogged?t.reblogged=!1:t.reblogged=!0})).catch((function(t){swal("Error","Something went wrong, please try again later.","error")}))},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},editUrl:function(t){return t.url+"/edit"},redirect:function(t){window.location.href=t},remoteRedirect:function(t){window.location.href=window.App.config.site.url+"/i/redirect?url="+encodeURIComponent(t)},replyUrl:function(t){return"/p/"+this.profile.username+"/"+(t.account.id==this.profile.id?t.id:t.in_reply_to_id)},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},statusOwner:function(t){return t.account.id==this.profile.id},fetchRelationships:function(){var t=this;0!=document.querySelectorAll("body")[0].classList.contains("loggedIn")&&axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.profileId}}).then((function(e){e.data.length&&(t.relationship=e.data[0],1==e.data[0].blocking&&(t.warning=!0))}))},muteProfile:function(){var t=this;if(0!=$("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/mute",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully muted "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))}},unmuteProfile:function(){var t=this;if(0!=$("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/unmute",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unmuted "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))}},blockProfile:function(){var t=this;if(0!=$("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/block",{type:"user",item:e}).then((function(e){t.warning=!0,t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully blocked "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))}},unblockProfile:function(){var t=this;if(0!=$("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/unblock",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unblocked "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))}},deletePost:function(t,e){var o=this;0!=$("body").hasClass("loggedIn")&&t.account.id===this.profile.id&&axios.post("/i/delete",{type:"status",item:t.id}).then((function(t){o.timeline.splice(e,1),swal("Success","You have successfully deleted this post","success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},followProfile:function(){var t=this;0!=$("body").hasClass("loggedIn")?axios.post("/i/follow",{item:this.profileId}).then((function(e){t.$refs.visitorContextMenu.hide(),t.relationship.following?(t.profile.followers_count--,1==t.profile.locked&&(window.location.href="/")):t.profile.followers_count++,t.relationship.following=!t.relationship.following})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")})):window.location.href=encodeURI("/login?next=/"+this.profileUsername+"/")},followingModal:function(){var t=this;if(0!=$("body").hasClass("loggedIn")){if(0!=this.profileSettings.following.list)return this.followingCursor>1||axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/following",{params:{page:this.followingCursor}}).then((function(e){t.following=e.data,t.followingModalSearchCache=e.data,t.followingCursor++,e.data.length<10&&(t.followingMore=!1)})),void this.$refs.followingModal.show()}else window.location.href=encodeURI("/login?next=/"+this.profileUsername+"/")},followersModal:function(){var t=this;if(0!=$("body").hasClass("loggedIn")){if(0!=this.profileSettings.followers.list)return this.followerCursor>1||axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/followers",{params:{page:this.followerCursor}}).then((function(e){var o;(o=t.followers).push.apply(o,n(e.data)),t.followerCursor++,e.data.length<10&&(t.followerMore=!1)})),void this.$refs.followerModal.show()}else window.location.href=encodeURI("/login?next=/"+this.profileUsername+"/")},followingLoadMore:function(){var t=this;0!=$("body").hasClass("loggedIn")?axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor,fbu:this.followingModalSearch}}).then((function(e){var o;e.data.length>0&&((o=t.following).push.apply(o,n(e.data)),t.followingCursor++,t.followingModalSearchCache=t.following);e.data.length<10&&(t.followingModalSearchCache=t.following,t.followingMore=!1)})):window.location.href=encodeURI("/login?next=/"+this.profile.username+"/")},followersLoadMore:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then((function(e){var o;e.data.length>0&&((o=t.followers).push.apply(o,n(e.data)),t.followerCursor++);e.data.length<10&&(t.followerMore=!1)}))},visitorMenu:function(){this.$refs.visitorContextMenu.show()},followModalAction:function(t,e){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"following";axios.post("/i/follow",{item:t}).then((function(t){"following"==i&&(o.following.splice(e,1),o.profile.following_count--)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},momentBackground:function(){var t="w-100 h-100 mt-n3 ";return this.profile.header_bg?t+="default"==this.profile.header_bg?"bg-pixelfed":"bg-moment-"+this.profile.header_bg:t+="bg-pixelfed",t},loadSponsor:function(){var t=this;axios.get("/api/local/profile/sponsor/"+this.profileId).then((function(e){t.sponsorList=e.data}))},showSponsorModal:function(){this.$refs.sponsorModal.show()},goBack:function(){return window.history.length>2?void window.history.back():void(window.location.href="/")},copyProfileLink:function(){var t=window.App.config.site.url+"/"+this.profileUsername+"/";navigator.clipboard.writeText(t),this.$refs.visitorContextMenu.hide()},formatCount:function(t){return App.util.format.count(t)},statusUrl:function(t){return t.url},profileUrl:function(t){return t.url},showEmbedProfileModal:function(){this.ctxEmbedPayload=window.App.util.embed.profile(this.profile.url),this.$refs.visitorContextMenu.hide(),this.$refs.embedModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.$refs.embedModal.hide(),this.$refs.visitorContextMenu.hide()},storyRedirect:function(){window.location.href="/stories/"+this.profileUsername},followingModalSearchHandler:function(){var t=this,e=this,o=this.followingModalSearch;if(0==o.length&&(this.following=this.followingModalSearchCache,this.followingModalSearch=null),o.length>0){var i="/api/pixelfed/v1/accounts/"+e.profileId+"/following?page=1&fbu="+o;axios.get(i).then((function(e){t.following=e.data})).catch((function(t){e.following=e.followingModalSearchCache,e.followingModalSearch=null}))}},pageUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"home";switch(t){case"home":return this.profile.url;case"collections":return this.profile.url+"?p=collections";case"places":return this.profile.url+"?p=places";case"saved":return this.profile.url+"?p=saved";case"likes":return this.profile.url+"?p=likes";default:return this.profile.url}},navigateToPage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"home";this.page=t,"collections"==t&&this.switchMode("collections"),"likes"==t&&this.switchMode("likes"),"saved"==t&&this.switchMode("saved")},truncate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;return _.truncate(t,{length:e})},timeago:function(t){return window.App.util.format.timeAgo(t)},fetchLikes:function(){var t=this;axios.get("/api/pixelfed/v1/favourites",{params:{page:this.likesCursor}}).then((function(e){if(e.data.length){var o=e.data.filter((function(t){return t.media_attachments&&t.media_attachments.length}));t.likesTimeline=o,t.likesCursor=2}}))},infiniteLikes:function(t){var e=this;axios.get("/api/pixelfed/v1/favourites",{params:{page:this.likesCursor}}).then((function(o){o.data.length?(o.data.forEach((function(t){t.media_attachments&&t.media_attachments.length&&e.likesTimeline.push(t)})),e.likesCursor++,t.loaded()):t.complete()}))}}},r=(o("tM7S"),o("KHd+")),l=Object(r.a)(a,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"w-100 h-100"},[t.isMobile?o("div",{staticClass:"bg-white p-3 border-bottom"},[o("div",{staticClass:"d-flex justify-content-between align-items-center"},[o("div",{staticClass:"cursor-pointer",on:{click:t.goBack}},[o("i",{staticClass:"fas fa-chevron-left fa-lg"})]),t._v(" "),o("div",{staticClass:"font-weight-bold"},[t._v("\n\t\t\t\t"+t._s(this.profileUsername)+"\t\t\t\t\t\t\t\t\n\n\t\t\t")]),t._v(" "),o("div",[o("a",{staticClass:"fas fa-ellipsis-v fa-lg text-muted text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.visitorMenu(e)}}})])])]):t._e(),t._v(" "),t.relationship&&t.relationship.blocking&&t.warning?o("div",{staticClass:"bg-white pt-3 border-bottom"},[o("div",{staticClass:"container"},[o("p",{staticClass:"text-center font-weight-bold"},[t._v("You are blocking this account")]),t._v(" "),o("p",{staticClass:"text-center font-weight-bold"},[t._v("Click "),o("a",{staticClass:"cursor-pointer",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.warning=!1}}},[t._v("here")]),t._v(" to view profile")])])]):t._e(),t._v(" "),t.loading?o("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[o("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]):t._e(),t._v(" "),t.loading||t.warning?t._e():o("div",[0==t.timeline.length||t.timeline.length<8?o("div",{staticClass:"bg-dark",staticStyle:{height:"100px"}}):o("div",{staticClass:"bg-dark",staticStyle:{height:"400px"}},[o("div",{staticClass:"container"},[o("div",{staticClass:"d-flex overflow-hidden"},[o("div",{},[o("img",{staticClass:"border border-dark img-cover",attrs:{src:t.timelineCache[0].media_attachments[0].preview_url,width:"200px",height:"200px"}}),t._v(" "),o("img",{staticClass:"border border-dark img-cover",attrs:{src:t.timelineCache[1].media_attachments[0].preview_url,width:"200px",height:"200px"}})]),t._v(" "),t.timelineCache.length>6?o("div",{},[o("img",{staticClass:"border border-dark img-cover",attrs:{src:t.timelineCache[2].media_attachments[0].preview_url,width:"400px",height:"400px"}})]):t._e(),t._v(" "),t.timelineCache.length>7?o("div",{},[o("img",{staticClass:"border border-dark img-cover",attrs:{src:t.timelineCache[3].media_attachments[0].preview_url,width:"200px",height:"200px"}}),t._v(" "),o("img",{staticClass:"border border-dark img-cover",attrs:{src:t.timelineCache[4].media_attachments[0].preview_url,width:"200px",height:"200px"}})]):t._e(),t._v(" "),t.timelineCache.length>7?o("div",{},[o("img",{staticClass:"border border-dark img-cover",attrs:{src:t.timelineCache[5].media_attachments[0].preview_url,width:"200px",height:"200px"}}),t._v(" "),o("img",{staticClass:"border border-dark img-cover",attrs:{src:t.timelineCache[6].media_attachments[0].preview_url,width:"200px",height:"200px"}})]):t._e()])])]),t._v(" "),o("div",{staticClass:"container"},[o("div",{staticClass:"d-flex justify-content-between align-items-center pt-2 px-2",staticStyle:{width:"100%","min-height":"153px",background:"#f6f6f6",border:"1px solid #d9d9d9","z-index":"99999"}},[o("div",{},[o("div",{staticClass:"d-inline-block",staticStyle:{width:"8rem","margin-top":"-70px"}},[o("div",{staticClass:"border rounded mb-3 bg-white p-1"},[o("img",{staticClass:"img-fluid rounded",attrs:{src:t.profile.avatar}})]),t._v(" "),1==t.owner?o("a",{staticClass:"btn btn-primary btn-block font-weight-bold p-1",attrs:{href:"/settings/home"}},[t._v("Edit Profile")]):1==t.relationship.following?o("button",{staticClass:"btn btn-primary btn-block font-weight-bold p-1",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.followProfile()}}},[t._v("Unfollow")]):o("button",{staticClass:"btn btn-primary btn-block font-weight-bold p-1",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.followProfile()}}},[t._v("Follow")])]),t._v(" "),t.profile.local?o("div",{staticClass:"d-inline-block ml-3",staticStyle:{"max-width":"400px"}},[o("p",{staticClass:"h3 font-weight-bold mb-1"},[t._v("@"+t._s(t.profile.username))]),t._v(" "),o("p",{staticClass:"mb-0"},[o("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.display_name))])]),t._v(" "),o("p",{staticClass:"text-muted small mb-0"},[t._v(t._s(t.profile.note))]),t._v(" "),o("p",{staticClass:"mb-0"},[o("a",{staticClass:"font-weight-bold small",staticStyle:{color:"rgba(62,100,135,1)"},attrs:{href:t.profile.website},on:{click:function(e){return e.preventDefault(),t.remoteRedirect(t.profile.website)}}},[t._v(t._s(t.truncate(t.profile.website,40)))])])]):o("div",{staticClass:"d-inline-block ml-3",staticStyle:{"max-width":"400px"}},[o("p",{staticClass:"h3 font-weight-bold mb-1"},[t._v(t._s(t.profile.username))]),t._v(" "),o("p",{staticClass:"mb-2"},[o("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.display_name))])]),t._v(" "),t._m(0)])]),t._v(" "),o("div",{staticClass:"d-md-none"},[o("div",{staticClass:"d-block btn btn-lighter btn-sm px-3 py-1 border mb-1",on:{click:function(e){return t.followingModal()}}},[o("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.profile.following_count))]),t._v(" "),o("p",{staticClass:"mb-0 mt-n1 text-muted font-weight-bold text-uppercase small"},[t._v("following")])]),t._v(" "),o("div",{staticClass:"d-block btn btn-lighter btn-sm px-3 py-1 border",on:{click:function(e){return t.followersModal()}}},[o("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.profile.followers_count))]),t._v(" "),o("p",{staticClass:"mb-0 mt-n1 text-muted font-weight-bold text-uppercase small"},[t._v("followers")])])]),t._v(" "),o("div",{staticClass:"d-none d-md-block"},[o("div",{staticClass:"btn-group"},[o("div",{staticClass:"btn btn-lighter px-4 py-2 border"},[o("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.profile.statuses_count))]),t._v(" "),o("p",{staticClass:"mb-0 mt-n1 text-muted font-weight-bold text-uppercase small"},[t._v("posts")])]),t._v(" "),o("div",{staticClass:"btn btn-lighter px-4 py-2 border",on:{click:function(e){return t.followingModal()}}},[o("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.profile.following_count))]),t._v(" "),o("p",{staticClass:"mb-0 mt-n1 text-muted font-weight-bold text-uppercase small"},[t._v("following")])]),t._v(" "),o("div",{staticClass:"btn btn-lighter px-4 py-2 border",on:{click:function(e){return t.followersModal()}}},[o("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.profile.followers_count))]),t._v(" "),o("p",{staticClass:"mb-0 mt-n1 text-muted font-weight-bold text-uppercase small"},[t._v("followers")])])])])])]),t._v(" "),o("div",{staticClass:"container"},[o("nav",{staticClass:"navbar navbar-dark bg-primary",staticStyle:{"border-color":"#456a8b"}},[o("div",{staticClass:"container d-flex justify-content-center align-items-center"},[o("div",{staticClass:"nav-card px-3",staticStyle:{"padding-top":"14px"}},[o("a",{class:["home"==t.page?"d-md-none font-weight-bold text-white mx-2 small":"d-md-none font-weight-bold text-lighter mx-2 small"],attrs:{href:t.pageUrl()},on:{click:function(e){return e.preventDefault(),t.navigateToPage("home")}}},[o("i",{staticClass:"fas fa-th"})]),t._v(" "),o("a",{class:["home"==t.page?"d-none d-md-inline font-weight-bold text-white mx-2 small":"d-none d-md-inline font-weight-bold text-lighter mx-2 small"],attrs:{href:t.pageUrl()},on:{click:function(e){return e.preventDefault(),t.navigateToPage("home")}}},[t._v("\n\t\t\t\t\t\t\tPOSTS\n\t\t\t\t\t\t")])]),t._v(" "),o("div",{staticClass:"nav-card px-3",staticStyle:{"padding-top":"14px"}},[o("a",{class:["collections"==t.page?"d-md-none font-weight-bold text-white mx-2 small":"d-md-none font-weight-bold text-lighter mx-2 small"],attrs:{href:t.pageUrl("collections")},on:{click:function(e){return e.preventDefault(),t.navigateToPage("collections")}}},[o("i",{staticClass:"fas fa-images"})]),t._v(" "),o("a",{class:["collections"==t.page?"d-none d-md-inline font-weight-bold text-white mx-2 small":"d-none d-md-inline font-weight-bold text-lighter mx-2 small"],attrs:{href:t.pageUrl("collections")},on:{click:function(e){return e.preventDefault(),t.navigateToPage("collections")}}},[t._v("\n\t\t\t\t\t\t\tCOLLECTIONS\n\t\t\t\t\t\t")])]),t._v(" "),1==t.owner?o("div",{staticClass:"nav-card px-3",staticStyle:{"padding-top":"14px"}},[o("a",{class:["saved"==t.page?"d-md-none font-weight-bold text-white mx-2 small":"d-md-none font-weight-bold text-lighter mx-2 small"],attrs:{href:t.pageUrl("saved")},on:{click:function(e){return e.preventDefault(),t.navigateToPage("saved")}}},[o("i",{staticClass:"fas fa-bookmark"})]),t._v(" "),o("a",{class:["saved"==t.page?"d-none d-md-inline font-weight-bold text-white mx-2 small":"d-none d-md-inline font-weight-bold text-lighter mx-2 small"],attrs:{href:t.pageUrl("saved")},on:{click:function(e){return e.preventDefault(),t.navigateToPage("saved")}}},[t._v("\n\t\t\t\t\t\t\tSAVED\n\t\t\t\t\t\t")])]):t._e(),t._v(" "),1==t.owner?o("div",{staticClass:"nav-card px-3",staticStyle:{"padding-top":"14px"}},[o("a",{class:["likes"==t.page?"d-md-none font-weight-bold text-white mx-2 small":"d-md-none font-weight-bold text-lighter mx-2 small"],attrs:{href:t.pageUrl("likes")},on:{click:function(e){return e.preventDefault(),t.navigateToPage("likes")}}},[o("i",{staticClass:"fas fa-heart"})]),t._v(" "),o("a",{class:["likes"==t.page?"d-none d-md-inline font-weight-bold text-white mx-2 small":"d-none d-md-inline font-weight-bold text-lighter mx-2 small"],attrs:{href:t.pageUrl("likes")},on:{click:function(e){return e.preventDefault(),t.navigateToPage("likes")}}},[t._v("\n\t\t\t\t\t\t\tLIKES\n\t\t\t\t\t\t")])]):t._e(),t._v(" "),o("div",{staticClass:"nav-card px-3",staticStyle:{"padding-top":"14px"}},[o("span",{staticClass:"mx-2 text-lighter cursor-pointer",on:{click:function(e){return t.visitorMenu()}}},[o("i",{staticClass:"fas fa-cog"})])])])])]),t._v(" "),o("div",{staticClass:"container"},[o("div",{staticClass:"border overflow-hidden",staticStyle:{background:"#eaeaea","min-height":"40vh"}},["collections"==t.page?o("div",{staticClass:"row pl-2 pr-3 mt-3"},[t._m(1),t._v(" "),t._l(t.collections,(function(e,i){return t.collections.length?o("div",{key:"cmtl-"+e.id,staticClass:"col-12 col-md-3 mb-3 mx-0"},[o("a",{staticClass:"text-decoration-none",attrs:{href:e.url}},[o("img",{staticClass:"bg-white p-2 rounded border img-cover",attrs:{src:e.thumb,width:"100%",height:"230px",onerror:"this.onerror=null;this.src='/storage/no-preview.png';"}}),t._v(" "),o("div",{staticClass:"d-flex justify-content-between px-1 small text-muted font-weight-bold pt-1"},[o("span",{staticClass:"text-truncate mr-3"},[t._v(t._s(e.title))]),t._v(" "),o("span",[t._v(t._s(t.timeago(e.published_at)))])])])]):t._e()}))],2):t.owner&&"saved"==t.page?o("div",{staticClass:"row pl-2 pr-3 mt-3"},[t._m(2),t._v(" "),t._l(t.bookmarks,(function(e,i){return t.bookmarks.length?o("div",{key:"cmtl-"+e.id,staticClass:"col-12 col-md-3 mb-3 mx-0"},[o("a",{staticClass:"text-decoration-none",attrs:{href:e.url}},[o("img",{staticClass:"bg-white p-2 rounded border img-cover",attrs:{src:e.media_attachments[0].preview_url,width:"100%",height:"230px",onerror:"this.onerror=null;this.src='/storage/no-preview.png';"}}),t._v(" "),o("div",{staticClass:"d-flex justify-content-between px-1 small text-muted font-weight-bold pt-1"},[o("span",{staticClass:"text-truncate mr-3"}),t._v(" "),o("span",[t._v(t._s(t.timeago(e.created_at)))])])])]):t._e()}))],2):"places"==t.page?o("div",{staticClass:"row pl-2 pr-3 mt-3"},[t._m(3)]):"likes"==t.page?o("div",{staticClass:"row pl-2 pr-3 mt-3"},[t._l(t.likesTimeline,(function(e,i){return t.likesTimeline.length?o("div",{key:"pmltl-"+e.id,staticClass:"col-12 col-md-3 mb-3 mx-0"},[o("a",{staticClass:"text-decoration-none",attrs:{href:e.url}},[o("img",{staticClass:"bg-white p-2 rounded border img-cover",attrs:{src:e.media_attachments[0].preview_url,width:"100%",height:"230px",onerror:"this.onerror=null;this.src='/storage/no-preview.png';"}}),t._v(" "),o("div",{staticClass:"d-flex justify-content-between px-1 small text-muted font-weight-bold pt-1"},[o("span",[t._v(t._s(e.favourites_count)+" "+t._s(1==e.favourites_count?"like":"likes"))]),t._v(" "),o("span",[t._v(t._s(t.timeago(e.created_at)))])])])]):t._e()})),t._v(" "),t.likesTimeline.length?o("div",{staticClass:"col-12"},[o("infinite-loading",{on:{infinite:t.infiniteLikes}},[o("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),o("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):o("div",{staticClass:"col-12 mt-5 pt-5 mx-0"},[t._m(4),t._v(" "),o("p",{staticClass:"lead text-center mb-0 font-weight-bold text-muted"},[t._v("No liked posts found")])])],2):o("div",{staticClass:"row pl-2 pr-3 mt-3"},[t._l(t.timeline,(function(e,i){return t.timeline.length?o("div",{key:"pmtl-"+e.id,staticClass:"col-12 col-md-3 mb-3 mx-0"},[o("a",{staticClass:"text-decoration-none",attrs:{href:e.url}},[o("img",{staticClass:"bg-white p-2 rounded border img-cover",attrs:{src:e.media_attachments[0].preview_url,width:"100%",height:"230px",onerror:"this.onerror=null;this.src='/storage/no-preview.png';"}}),t._v(" "),o("div",{staticClass:"d-flex justify-content-between px-1 small text-muted font-weight-bold pt-1"},[o("span",[t._v(t._s(e.favourites_count)+" "+t._s(1==e.favourites_count?"like":"likes"))]),t._v(" "),o("span",[t._v(t._s(t.timeago(e.created_at)))])])])]):t._e()})),t._v(" "),t.timeline.length?o("div",{staticClass:"col-12"},[o("infinite-loading",{on:{infinite:t.infiniteTimeline}},[o("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),o("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):o("div",{staticClass:"col-12 mt-5 pt-5 mx-0"},[t._m(5),t._v(" "),o("p",{staticClass:"lead text-center mb-0 font-weight-bold text-muted"},[t._v("\n\t\t\t\t\t\t\t\tNo posts found\n\t\t\t\t\t\t\t")])])],2)])])]),t._v(" "),t.profile&&t.following?o("b-modal",{ref:"followingModal",attrs:{id:"following-modal","hide-footer":"",centered:"",scrollable:"",title:"Following","body-class":"list-group-flush py-3 px-0","dialog-class":"follow-modal"}},[t.loading?t._e():o("div",{staticClass:"list-group",staticStyle:{"min-height":"60vh"}},[1==t.owner?o("div",{staticClass:"list-group-item border-0 pt-0 px-0 mt-n2 mb-3"},[o("span",{staticClass:"d-flex px-4 pb-0 align-items-center"},[o("i",{staticClass:"fas fa-search text-lighter"}),t._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:t.followingModalSearch,expression:"followingModalSearch"}],staticClass:"form-control border-0 shadow-0 no-focus",attrs:{type:"text",placeholder:"Search Following..."},domProps:{value:t.followingModalSearch},on:{keyup:t.followingModalSearchHandler,input:function(e){e.target.composing||(t.followingModalSearch=e.target.value)}}})])]):t._e(),t._v(" "),1==t.owner?o("div",{staticClass:"btn-group rounded-0 mt-n3 mb-3 border-top",attrs:{role:"group","aria-label":"Following"}}):o("div",{staticClass:"btn-group rounded-0 mt-n3 mb-3",attrs:{role:"group","aria-label":"Following"}}),t._v(" "),t._l(t.following,(function(e,i){return o("div",{key:"following_"+i,staticClass:"list-group-item border-0 py-1"},[o("div",{staticClass:"media"},[o("a",{attrs:{href:e.url}},[o("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"s avatar",width:"30px",loading:"lazy"}})]),t._v(" "),o("div",{staticClass:"media-body text-truncate"},[o("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[o("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t")])]),t._v(" "),e.local?o("p",{staticClass:"text-muted mb-0 text-truncate",staticStyle:{"font-size":"14px"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.display_name)+"\n\t\t\t\t\t\t")]):o("p",{staticClass:"text-muted mb-0 text-truncate mr-3",staticStyle:{"font-size":"14px"},attrs:{title:e.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[o("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.acct.split("@")[0]))]),o("span",{staticClass:"text-lighter"},[t._v("@"+t._s(e.acct.split("@")[1]))])])]),t._v(" "),t.owner?o("div",[o("a",{staticClass:"btn btn-outline-dark btn-sm font-weight-bold",attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),t.followModalAction(e.id,i,"following")}}},[t._v("Following")])]):t._e()])])})),t._v(" "),t.followingModalSearch&&0==t.following.length?o("div",{staticClass:"list-group-item border-0"},[o("div",{staticClass:"list-group-item border-0 pt-5"},[o("p",{staticClass:"p-3 text-center mb-0 lead"},[t._v("No Results Found")])])]):t._e(),t._v(" "),t.following.length>0&&t.followingMore?o("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followingLoadMore()}}},[o("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2)]):t._e(),t._v(" "),o("b-modal",{ref:"followerModal",attrs:{id:"follower-modal","hide-footer":"",centered:"",scrollable:"",title:"Followers","body-class":"list-group-flush py-3 px-0","dialog-class":"follow-modal"}},[o("div",{staticClass:"list-group"},[0==t.followers.length?o("div",{staticClass:"list-group-item border-0"},[o("p",{staticClass:"text-center mb-0 font-weight-bold text-muted py-5"},[o("span",{staticClass:"text-dark"},[t._v(t._s(t.profileUsername))]),t._v(" has no followers yet")])]):t._e(),t._v(" "),t._l(t.followers,(function(e,i){return o("div",{key:"follower_"+i,staticClass:"list-group-item border-0 py-1"},[o("div",{staticClass:"media mb-0"},[o("a",{attrs:{href:e.url}},[o("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"s avatar",width:"30px",height:"30px",loading:"lazy"}})]),t._v(" "),o("div",{staticClass:"media-body mb-0"},[o("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[o("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t")])]),t._v(" "),o("p",{staticClass:"text-secondary mb-0",staticStyle:{"font-size":"13px"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.display_name)+"\n\t\t\t\t\t\t")])])])])})),t._v(" "),t.followers.length&&t.followerMore?o("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followersLoadMore()}}},[o("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2)]),t._v(" "),o("b-modal",{ref:"visitorContextMenu",attrs:{id:"visitor-context-menu","hide-footer":"","hide-header":"",centered:"",size:"sm","body-class":"list-group-flush p-0"}},[t.relationship?o("div",{staticClass:"list-group"},[o("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.copyProfileLink}},[t._v("\n\t\t\t\tCopy Link\n\t\t\t")]),t._v(" "),0==t.profile.locked?o("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.showEmbedProfileModal}},[t._v("\n\t\t\t\tEmbed\n\t\t\t")]):t._e(),t._v(" "),!t.user||t.owner||t.relationship.following?t._e():o("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.followProfile}},[t._v("\n\t\t\t\tFollow\n\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.following?o("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.followProfile}},[t._v("\n\t\t\t\tUnfollow\n\t\t\t")]):t._e(),t._v(" "),!t.user||t.owner||t.relationship.muting?t._e():o("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.muteProfile}},[t._v("\n\t\t\t\tMute\n\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.muting?o("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.unmuteProfile}},[t._v("\n\t\t\t\tUnmute\n\t\t\t")]):t._e(),t._v(" "),t.user&&!t.owner?o("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.reportProfile}},[t._v("\n\t\t\t\tReport User\n\t\t\t")]):t._e(),t._v(" "),!t.user||t.owner||t.relationship.blocking?t._e():o("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.blockProfile}},[t._v("\n\t\t\t\tBlock\n\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.blocking?o("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.unblockProfile}},[t._v("\n\t\t\t\tUnblock\n\t\t\t")]):t._e(),t._v(" "),t.user&&t.owner?o("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:function(e){return t.redirect("/settings/home")}}},[t._v("\n\t\t\t\tSettings\n\t\t\t")]):t._e(),t._v(" "),o("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:function(e){return t.redirect("/users/"+t.profileUsername+".atom")}}},[t._v("\n\t\t\t\tAtom Feed\n\t\t\t")]),t._v(" "),o("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-muted font-weight-bold",on:{click:function(e){return t.$refs.visitorContextMenu.hide()}}},[t._v("\n\t\t\t\tClose\n\t\t\t")])]):t._e()]),t._v(" "),o("b-modal",{ref:"sponsorModal",attrs:{id:"sponsor-modal","hide-footer":"",title:"Sponsor "+t.profileUsername,centered:"",size:"md","body-class":"px-5"}},[o("div",[o("p",{staticClass:"font-weight-bold"},[t._v("External Links")]),t._v(" "),t.sponsorList.patreon?o("p",{staticClass:"pt-2"},[o("a",{staticClass:"font-weight-bold",attrs:{href:"https://"+t.sponsorList.patreon,rel:"nofollow"}},[t._v(t._s(t.sponsorList.patreon))])]):t._e(),t._v(" "),t.sponsorList.liberapay?o("p",{staticClass:"pt-2"},[o("a",{staticClass:"font-weight-bold",attrs:{href:"https://"+t.sponsorList.liberapay,rel:"nofollow"}},[t._v(t._s(t.sponsorList.liberapay))])]):t._e(),t._v(" "),t.sponsorList.opencollective?o("p",{staticClass:"pt-2"},[o("a",{staticClass:"font-weight-bold",attrs:{href:"https://"+t.sponsorList.opencollective,rel:"nofollow"}},[t._v(t._s(t.sponsorList.opencollective))])]):t._e()])]),t._v(" "),o("b-modal",{ref:"embedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[o("div",[o("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:"6",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}}),t._v(" "),o("hr"),t._v(" "),o("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(" "),o("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),o("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])])],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small"},[e("span",{staticClass:"border rounded",staticStyle:{"padding-top":"3px","padding-bottom":"3px","border-color":"rgba(62,100,135,1) !important"}},[e("span",{staticClass:"font-weight-bold rounded px-2",staticStyle:{color:"rgba(62,100,135,1)"}},[this._v("REMOTE")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"d-none col-12 mt-5 pt-5 mx-0"},[e("p",{staticClass:"lead text-center text-lighter"},[e("i",{staticClass:"fas fa-images fa-4x"})]),this._v(" "),e("p",{staticClass:"lead text-center mb-0 font-weight-bold text-muted"},[this._v("No collections found")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"d-none col-12 mt-5 pt-5 mx-0"},[e("p",{staticClass:"lead text-center text-lighter"},[e("i",{staticClass:"far fa-bookmark fa-4x"})]),this._v(" "),e("p",{staticClass:"lead text-center mb-0 font-weight-bold text-muted"},[this._v("No saved posts found")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12 mt-5 pt-5 mx-0"},[e("p",{staticClass:"lead text-center text-lighter"},[e("i",{staticClass:"fas fa-map-marker-alt fa-4x"})]),this._v(" "),e("p",{staticClass:"lead text-center mb-0 font-weight-bold text-muted"},[this._v("No tagged places found")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"lead text-center text-lighter"},[e("i",{staticClass:"far fa-heart fa-4x"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"lead text-center text-lighter"},[e("i",{staticClass:"far fa-image fa-4x"})])}],!1,null,"23eb3e68",null);e.default=l.exports},"aET+":function(t,e,o){var i,n,s={},a=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===n&&(n=i.apply(this,arguments)),n}),r=function(t,e){return e?e.querySelector(t):document.querySelector(t)},l=function(t){var e={};return function(t,o){if("function"==typeof t)return t();if(void 0===e[t]){var i=r.call(this,t,o);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=[],f=o("9tPo");function p(t,e){for(var o=0;o<t.length;o++){var i=t[o],n=s[i.id];if(n){n.refs++;for(var a=0;a<n.parts.length;a++)n.parts[a](i.parts[a]);for(;a<i.parts.length;a++)n.parts.push(w(i.parts[a],e))}else{var r=[];for(a=0;a<i.parts.length;a++)r.push(w(i.parts[a],e));s[i.id]={id:i.id,refs:1,parts:r}}}}function h(t,e){for(var o=[],i={},n=0;n<t.length;n++){var s=t[n],a=e.base?s[0]+e.base:s[0],r={css:s[1],media:s[2],sourceMap:s[3]};i[a]?i[a].parts.push(r):o.push(i[a]={id:a,parts:[r]})}return o}function m(t,e){var o=l(t.insertInto);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=u[u.length-1];if("top"===t.insertAt)i?i.nextSibling?o.insertBefore(e,i.nextSibling):o.appendChild(e):o.insertBefore(e,o.firstChild),u.push(e);else if("bottom"===t.insertAt)o.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var n=l(t.insertAt.before,o);o.insertBefore(e,n)}}function g(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=u.indexOf(t);e>=0&&u.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=function(){0;return o.nc}();i&&(t.attrs.nonce=i)}return b(e,t.attrs),m(t,e),e}function b(t,e){Object.keys(e).forEach((function(o){t.setAttribute(o,e[o])}))}function w(t,e){var o,i,n,s;if(e.transform&&t.css){if(!(s="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=s}if(e.singleton){var a=d++;o=c||(c=v(e)),i=C.bind(null,o,a,!1),n=C.bind(null,o,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=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),m(t,e),e}(e),i=k.bind(null,o,e),n=function(){g(o),o.href&&URL.revokeObjectURL(o.href)}):(o=v(e),i=y.bind(null,o),n=function(){g(o)});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 n()}}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=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var o=h(t,e);return p(o,e),function(t){for(var i=[],n=0;n<o.length;n++){var a=o[n];(r=s[a.id]).refs--,i.push(r)}t&&p(h(t,e),e);for(n=0;n<i.length;n++){var r;if(0===(r=i[n]).refs){for(var l=0;l<r.parts.length;l++)r.parts[l]();delete s[r.id]}}}};var _,x=(_=[],function(t,e){return _[t]=e,_.filter(Boolean).join("\n")});function C(t,e,o,i){var n=o?"":i.css;if(t.styleSheet)t.styleSheet.cssText=x(e,n);else{var s=document.createTextNode(n),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(s,a[e]):t.appendChild(s)}}function y(t,e){var o=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}function k(t,e,o){var i=o.css,n=o.sourceMap,s=void 0===e.convertToAbsoluteUrls&&n;(e.convertToAbsoluteUrls||s)&&(i=f(i)),n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var a=new Blob([i],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(a),r&&URL.revokeObjectURL(r)}},jXBh:function(t,e,o){"use strict";o("mrrf")},la7V:function(t,e,o){"use strict";var i={tag:{type:[String],default:"div"},cols:{type:[Object,Number,String],default:2},gutter:{type:[Object,Number,String],default:0},css:{type:[Boolean],default:!0},columnTag:{type:[String],default:"div"},columnClass:{type:[String,Array,Object],default:function(){return[]}},columnAttr:{type:[Object],default:function(){return{}}}},n=function(t,e){if(parseInt(t)>-1)return t;if("object"!=typeof t)return 0;var o=1/0,i=t.default||0;for(var n in t){var s=parseInt(n),a=t[s],r=parseInt(a);if(!isNaN(s)&&!isNaN(r))e<=s&&s<o&&(o=s,i=a)}return i},s={props:i,data:function(){return{displayColumns:2,displayGutter:0}},mounted:function(){var t=this;this.$nextTick((function(){t.reCalculate()})),window&&window.addEventListener("resize",this.reCalculate)},updated:function(){var t=this;this.$nextTick((function(){t.reCalculate()}))},beforeDestroy:function(){window&&window.removeEventListener("resize",this.reCalculate)},methods:{reCalculate:function(){var t=this.windowWidth;this.windowWidth=(window?window.innerWidth:null)||1/0,t!==this.windowWidth&&(this._reCalculateColumnCount(this.windowWidth),this._reCalculateGutterSize(this.windowWidth))},_reCalculateGutterSize:function(t){this.displayGutter=n(this.gutter,t)},_reCalculateColumnCount:function(t){var e=n(this.cols,t);e=Math.max(1,Number(e)||0),this.displayColumns=e},_getChildItemsInColumnsArray:function(){var t=[],e=this.$slots.default||[];1===e.length&&e[0].componentOptions&&"transition-group"==e[0].componentOptions.tag&&(e=e[0].componentOptions.children);for(var o=0,i=0;o<e.length;o++,i++)if(e[o].tag){var n=i%this.displayColumns;t[n]||(t[n]=[]),t[n].push(e[o])}else i--;return t}},render:function(t){var e=this,o=this._getChildItemsInColumnsArray(),i=parseInt(this.displayGutter)===1*this.displayGutter?this.displayGutter+"px":this.displayGutter,n={boxSizing:"border-box",backgroundClip:"padding-box",width:100/this.displayColumns+"%",border:"0 solid transparent",borderLeftWidth:i},s=o.map((function(i,s){return t(e.columnTag,{key:s+"-"+o.length,style:e.css?n:null,class:e.columnClass,attrs:e.columnAttr},i)})),a={display:["-webkit-box","-ms-flexbox","flex"],marginLeft:"-"+i};return t(this.tag,this.css?{style:a}:null,s)}},a=function(){};a.install=function(t,e){a.installed||(e&&e.name?t.component(e.name,s):t.component("masonry",s))},"undefined"!=typeof window&&window.Vue&&window.Vue.use(a),e.a=a},mrrf:function(t,e,o){var i=o("OizH");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};o("aET+")(i,n);i.locals&&(t.exports=i.locals)},tM7S:function(t,e,o){"use strict";o("H5IC")},yric:function(t,e,o){"use strict";o.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,o){var i=t.account.username;switch(e){case"autocw":var n="Are you sure you want to enforce CW for "+i+" ?";swal({title:"Confirm",text:n,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":n="Are you sure you want to suspend the account of "+i+" ?",swal({title:"Confirm",text:n,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")}))}}},n=(o("jXBh"),o("KHd+")),s=Object(n.a)(i,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",["true"!=t.modal?o("div",{staticClass:"dropdown"},[o("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"}},[o("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),o("div",{staticClass:"dropdown-menu dropdown-menu-right"},[o("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)?o("span",[o("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)?o("span",[o("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(" "),o("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?o("span",[o("div",{staticClass:"dropdown-divider"}),t._v(" "),o("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(" "),o("div",{staticClass:"dropdown-divider"}),t._v(" "),o("h6",{staticClass:"dropdown-header"},[t._v("Mod Tools")]),t._v(" "),o("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"autocw")}}},[o("p",{staticClass:"mb-0"},[t._v("Enforce CW")]),t._v(" "),t._m(0)]),t._v(" "),o("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"noautolink")}}},[o("p",{staticClass:"mb-0"},[t._v("No Autolinking")]),t._v(" "),t._m(1)]),t._v(" "),o("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"unlisted")}}},[o("p",{staticClass:"mb-0"},[t._v("Unlisted Posts")]),t._v(" "),t._m(2)]),t._v(" "),o("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"disable")}}},[o("p",{staticClass:"mb-0"},[t._v("Disable Account")]),t._v(" "),t._m(3)]),t._v(" "),o("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"suspend")}}},[o("p",{staticClass:"mb-0"},[t._v("Suspend Account")]),t._v(" "),t._m(4)])]):t._e()])]):t._e(),t._v(" "),"true"==t.modal?o("div",[o("span",{attrs:{"data-toggle":"modal","data-target":"#mt_pid_"+t.status.id}},[o("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),o("div",{staticClass:"modal",attrs:{tabindex:"-1",role:"dialog",id:"mt_pid_"+t.status.id}},[o("div",{staticClass:"modal-dialog modal-sm",attrs:{role:"document"}},[o("div",{staticClass:"modal-content"},[o("div",{staticClass:"modal-body text-center"},[o("div",{staticClass:"list-group text-dark"},[o("a",{staticClass:"list-group-item text-dark text-decoration-none",attrs:{href:t.status.url}},[t._v("Go to post")]),t._v(" "),o("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():o("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?o("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=s.exports}},[[24,0]]]);