mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 13:33:18 +00:00
1 line
No EOL
28 KiB
JavaScript
Vendored
1 line
No EOL
28 KiB
JavaScript
Vendored
!function(t){var e={};function o(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,o),s.l=!0,s.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)o.d(n,s,function(e){return t[e]}.bind(null,s));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o(o.s=4)}({"25Ec":function(t,e,o){"use strict";var n=o("bRof");o.n(n).a},"2wtg":function(t,e,o){Vue.component("profile",o("EHjT").default)},4:function(t,e,o){t.exports=o("2wtg")},"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,n=o+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("/")?o+a:n+a.replace(/^\.\//,""),"url("+JSON.stringify(s)+")")})}},EHjT:function(t,e,o){"use strict";o.r(e);function n(t){return function(t){if(Array.isArray(t)){for(var e=0,o=new Array(t.length);e<t.length;e++)o[e]=t[e];return o}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var s={props:["profile-id","profile-settings"],data:function(){return{profile:{},user:{},timeline:[],timelinePage:2,min_id:0,max_id:0,loading:!0,owner:!1,mode:"grid",modes:["grid","list","masonry"],modalStatus:!1,relationship:{},followers:[],followerCursor:1,followerMore:!0,following:[],followingCursor:1,followingMore:!0}},beforeMount:function(){this.fetchProfile()},mounted:function(){},updated:function(){},methods:{fetchProfile:function(){var t=this;axios.get("/api/v1/accounts/"+this.profileId).then(function(e){t.profile=e.data}),axios.get("/api/v1/accounts/verify_credentials").then(function(e){t.user=e.data}),axios.get("/api/v1/accounts/relationships",{params:{"id[]":this.profileId}}).then(function(e){t.relationship=e.data[0]});var e="/api/v1/accounts/"+this.profileId+"/statuses";axios.get(e,{params:{only_media:!0,min_id:1}}).then(function(e){var o=e.data;t.timeline=o;var s=o.map(function(t){return t.id});t.min_id=Math.max.apply(Math,n(s)),t.max_id=Math.min.apply(Math,n(s)),t.modalStatus=_.first(e.data),t.loading=!1,t.ownerCheck()}).catch(function(t){swal("Oops, something went wrong","Please release the page.","error")})},ownerCheck:function(){this.owner=this.profile.id===this.user.id},infiniteTimeline:function(t){var e=this,o="/api/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 s,a=o.data;(s=e.timeline).push.apply(s,n(a));var i=a.map(function(t){return t.id});e.max_id=Math.min.apply(Math,n(i)),e.loading=!1,t.loaded()}else t.complete()})},previewUrl:function(t){return t.media_attachments[0].preview_url},previewBackground:function(t){return"background-image: url("+this.previewUrl(t)+");"},switchMode:function(t){this.mode=_.indexOf(this.modes,t)?t:"grid","masonry"==this.mode&&$(".masonry").masonry({columnWidth:200,itemSelector:".masonry-item"})},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,n=o.getElementsByClassName("comments")[0];0==n.children.length&&(n.classList.add("mb-2"),this.fetchStatusComments(t,o));var s=o.querySelectorAll(".card-footer")[0],a=o.querySelectorAll(".status-reply-input")[0];1==s.classList.contains("d-none")?(s.classList.remove("d-none"),a.focus()):(s.classList.add("d-none"),a.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},replyUrl:function(t){return"/p/"+this.profile.username+"/"+(t.account.id==this.profile.id?t.id:t.in_reply_to_id)},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},statusOwner:function(t){return t.account.id==this.profile.id},fetchStatusComments:function(t,e){axios.get("/api/v2/status/"+t.id+"/replies").then(function(t){var o=e.querySelectorAll(".comments")[0];t.data.forEach(function(t,e){var n=document.createElement("a");n.classList.add("font-weight-bold"),n.classList.add("text-dark"),n.classList.add("mr-2"),n.setAttribute("href",t.account.url),n.textContent=t.account.username;var s=document.createElement("span");s.innerHTML=t.content;var a=document.createElement("p");a.classList.add("read-more"),a.classList.add("mb-0"),a.appendChild(n),a.appendChild(s),o.appendChild(a)})}).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(o){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(o){e.feed=e.feed.filter(function(e){return e.account.id!==t.account.id}),swal("Success","You have successfully blocked "+t.account.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},deletePost:function(t,e){var 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.feed.splice(e,1),swal("Success","You have successfully deleted this post","success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},commentSubmit:function(t,e){var o=this,n=t.id,s=e.target,a=$(s).find('input[name="comment"]'),i=a.val(),r=s.parentElement.parentElement.getElementsByClassName("comments")[0];axios.post("/i/comment",{item:n,comment:i}).then(function(t){a.val(""),a.blur();var e=document.createElement("a");e.classList.add("font-weight-bold"),e.classList.add("text-dark"),e.classList.add("mr-2"),e.setAttribute("href",o.user.url),e.textContent=o.user.username;var n=document.createElement("span");n.innerHTML=i;var s=document.createElement("p");s.classList.add("read-more"),s.classList.add("mb-0"),s.appendChild(e),s.appendChild(n),r.insertBefore(s,r.firstChild)})},statusModal:function(t){this.modalStatus=t,this.$refs.statusModalRef.show()},masonryOrientation:function(t){var e=t.media_attachments[0].orientation;return e||(e="square"),e},followProfile:function(){var t=this;axios.post("/i/follow",{item:this.profileId}).then(function(e){t.relationship.following?(t.profile.followers_count--,1==t.profile.locked&&(window.location.href="/")):t.profile.followers_count++,t.relationship.following=!t.relationship.following})},followingModal:function(){var t=this;0!=this.profileSettings.following.list&&(this.following.length>0?this.$refs.followingModal.show():(axios.get("/api/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor}}).then(function(e){t.following=e.data,t.followingCursor++,e.data.length<10&&(t.followingMore=!1)}),this.$refs.followingModal.show()))},followersModal:function(){var t=this;0!=this.profileSettings.followers.list&&(this.followers.length>0?this.$refs.followerModal.show():(axios.get("/api/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then(function(e){t.followers=e.data,t.followerCursor++,e.data.length<10&&(t.followerMore=!1)}),this.$refs.followerModal.show()))},followingLoadMore:function(){var t=this;axios.get("/api/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor}}).then(function(e){var o;e.data.length>0&&((o=t.following).push.apply(o,n(e.data)),t.followingCursor++);e.data.length<10&&(t.followingMore=!1)})},followersLoadMore:function(){var t=this;axios.get("/api/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then(function(e){var o;e.data.length>0&&((o=t.followers).push.apply(o,n(e.data)),t.followerCursor++);e.data.length<10&&(t.followerMore=!1)})}}},a=(o("25Ec"),o("KHd+")),i=Object(a.a)(s,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[t.loading?o("div",{staticClass:"d-flex justify-content-center py-5 my-5"},[o("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]):t._e(),t._v(" "),t.loading?t._e():o("div",[o("div",{staticClass:"bg-white py-5 border-bottom"},[o("div",{staticClass:"container"},[o("div",{staticClass:"row"},[o("div",{staticClass:"col-12 col-md-4 d-flex"},[o("div",{staticClass:"profile-avatar mx-auto"},[o("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.profile.avatar,width:"172px",height:"172px"}})])]),t._v(" "),o("div",{staticClass:"col-12 col-md-8 d-flex align-items-center"},[o("div",{staticClass:"profile-details"},[o("div",{staticClass:"username-bar pb-2 d-flex align-items-center"},[o("span",{staticClass:"font-weight-ultralight h1"},[t._v(t._s(t.profile.username))]),t._v(" "),t.profile.is_admin?o("span",{staticClass:"pl-4"},[o("span",{staticClass:"btn btn-outline-secondary font-weight-bold py-0"},[t._v("ADMIN")])]):t._e(),t._v(" "),o("span",{staticClass:"pl-4"},[o("a",{staticClass:"fas fa-rss fa-lg text-muted",attrs:{href:"/users/"+t.profile.username+".atom"}})]),t._v(" "),t.owner?o("span",{staticClass:"pl-4"},[o("a",{staticClass:"fas fa-cog fa-lg text-muted",attrs:{href:"/settings/home"}})]):t._e(),t._v(" "),t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?o("span",[1==t.relationship.following?o("span",{staticClass:"pl-4"},[o("button",{staticClass:"btn btn-outline-secondary font-weight-bold px-4 py-0",attrs:{type:"button"},on:{click:function(e){return t.followProfile()}}},[t._v("Unfollow")])]):t._e(),t._v(" "),t.relationship.following?t._e():o("span",{staticClass:"pl-4"},[o("button",{staticClass:"btn btn-primary font-weight-bold px-4 py-0",attrs:{type:"button"},on:{click:function(e){return t.followProfile()}}},[t._v("Follow")])])]):t._e()]),t._v(" "),o("div",{staticClass:"profile-stats pb-3 d-inline-flex lead"},[o("div",{staticClass:"font-weight-light pr-5"},[o("a",{staticClass:"text-dark",attrs:{href:t.profile.url}},[o("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.statuses_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\tPosts\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),t.profileSettings.followers.count?o("div",{staticClass:"font-weight-light pr-5"},[o("a",{staticClass:"text-dark cursor-pointer",on:{click:function(e){return t.followersModal()}}},[o("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.followers_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\tFollowers\n\t\t\t\t\t\t\t\t\t")])]):t._e(),t._v(" "),t.profileSettings.following.count?o("div",{staticClass:"font-weight-light"},[o("a",{staticClass:"text-dark cursor-pointer",on:{click:function(e){return t.followingModal()}}},[o("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.following_count))]),t._v("\n\t\t\t\t\t\t\t\t\t\tFollowing\n\t\t\t\t\t\t\t\t\t")])]):t._e()]),t._v(" "),o("p",{staticClass:"lead mb-0 d-flex align-items-center"},[o("span",{staticClass:"font-weight-bold pr-3"},[t._v(t._s(t.profile.display_name))])]),t._v(" "),t.profile.note?o("div",{staticClass:"mb-0 lead",domProps:{innerHTML:t._s(t.profile.note)}}):t._e(),t._v(" "),t.profile.website?o("p",{staticClass:"mb-0"},[o("a",{staticClass:"font-weight-bold",attrs:{href:t.profile.website,rel:"me external nofollow noopener",target:"_blank"}},[t._v(t._s(t.profile.website))])]):t._e()])])])])]),t._v(" "),o("div",[o("ul",{staticClass:"nav nav-topbar d-flex justify-content-center border-0"},[o("li",{staticClass:"nav-item"},[o("a",{class:"grid"==this.mode?"nav-link font-weight-bold text-uppercase active":"nav-link font-weight-bold text-uppercase",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("grid")}}},[o("i",{staticClass:"fas fa-th"})])]),t._v(" "),o("li",{staticClass:"nav-item"},[o("a",{class:"list"==this.mode?"nav-link font-weight-bold text-uppercase active":"nav-link font-weight-bold text-uppercase",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("list")}}},[o("i",{staticClass:"fas fa-th-list"})])]),t._v(" "),t.owner?o("li",{staticClass:"nav-item"},[o("a",{staticClass:"nav-link font-weight-bold text-uppercase",attrs:{href:t.profile.url+"/saved"}},[t._v("Saved")])]):t._e()])]),t._v(" "),o("div",{staticClass:"container"},[o("div",{staticClass:"profile-timeline mt-2 mt-md-4"},["grid"==t.mode?o("div",{staticClass:"row"},t._l(t.timeline,function(e,n){return o("div",{staticClass:"col-4 p-0 p-sm-2 p-md-3"},[o("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:e.url}},[o("div",{staticClass:"square"},["photo:album"==e.pf_type?o("span",{staticClass:"float-right mr-3 post-icon"},[o("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==e.pf_type?o("span",{staticClass:"float-right mr-3 post-icon"},[o("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==e.pf_type?o("span",{staticClass:"float-right mr-3 post-icon"},[o("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),o("div",{staticClass:"square-content",style:t.previewBackground(e)}),t._v(" "),o("div",{staticClass:"info-overlay-text"},[o("h5",{staticClass:"text-white m-auto font-weight-bold"},[o("span",[o("span",{staticClass:"far fa-heart fa-lg p-2 d-flex-inline"}),t._v(" "),o("span",{staticClass:"d-flex-inline"},[t._v(t._s(e.favourites_count))])]),t._v(" "),o("span",[o("span",{staticClass:"fas fa-retweet fa-lg p-2 d-flex-inline"}),t._v(" "),o("span",{staticClass:"d-flex-inline"},[t._v(t._s(e.reblogs_count))])])])])])])])}),0):t._e(),t._v(" "),"list"==t.mode?o("div",{staticClass:"row"},[o("div",{staticClass:"col-md-8 col-lg-8 offset-md-2 pt-2 px-0 my-3 timeline"},t._l(t.timeline,function(e,n){return o("div",{key:e.id,staticClass:"card mb-4 status-card card-md-rounded-0",attrs:{"data-status-id":e.id}},[o("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[o("img",{staticStyle:{"border-radius":"32px"},attrs:{src:e.account.avatar,width:"32px",height:"32px"}}),t._v(" "),o("a",{staticClass:"username font-weight-bold pl-2 text-dark",attrs:{href:e.account.url}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.account.username)+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),o("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[o("div",{staticClass:"dropdown"},[t._m(0,!0),t._v(" "),o("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[o("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:e.url}},[t._v("Go to post")]),t._v(" "),o("span",{class:[t.statusOwner(e)?"d-none":""]},[o("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl(e)}},[t._v("Report")]),t._v(" "),o("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(o){return t.muteProfile(e)}}},[t._v("Mute Profile")]),t._v(" "),o("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(o){return t.blockProfile(e)}}},[t._v("Block Profile")])]),t._v(" "),o("span",{class:[t.statusOwner(e)?"":"d-none"]},[o("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.editUrl(e)}},[t._v("Edit")]),t._v(" "),o("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:function(o){return t.deletePost(e)}}},[t._v("Delete")])])])])])]),t._v(" "),o("div",{staticClass:"postPresenterContainer"},["photo"===e.pf_type?o("div",{staticClass:"w-100"},[o("photo-presenter",{attrs:{status:e}})],1):"video"===e.pf_type?o("div",{staticClass:"w-100"},[o("video-presenter",{attrs:{status:e}})],1):"photo:album"===e.pf_type?o("div",{staticClass:"w-100"},[o("photo-album-presenter",{attrs:{status:e}})],1):"video:album"===e.pf_type?o("div",{staticClass:"w-100"},[o("video-album-presenter",{attrs:{status:e}})],1):"photo:video:album"===e.pf_type?o("div",{staticClass:"w-100"},[o("mixed-album-presenter",{attrs:{status:e}})],1):o("div",{staticClass:"w-100"},[o("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])]),t._v(" "),o("div",{staticClass:"card-body"},[o("div",{staticClass:"reactions my-1"},[o("h3",{class:[e.favourited?"fas fa-heart text-danger pr-3 m-0 cursor-pointer":"far fa-heart pr-3 m-0 like-btn cursor-pointer"],attrs:{title:"Like"},on:{click:function(o){return t.likeStatus(e,o)}}}),t._v(" "),o("h3",{staticClass:"far fa-comment pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(o){return t.commentFocus(e,o)}}}),t._v(" "),o("h3",{class:[e.reblogged?"far fa-share-square pr-3 m-0 text-primary cursor-pointer":"far fa-share-square pr-3 m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:function(o){return t.shareStatus(e,o)}}})]),t._v(" "),o("div",{staticClass:"likes font-weight-bold"},[o("span",{staticClass:"like-count"},[t._v(t._s(e.favourites_count))]),t._v(" "+t._s(1==e.favourites_count?"like":"likes")+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),o("div",{staticClass:"caption"},[o("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[o("span",{staticClass:"username font-weight-bold"},[o("bdi",[o("a",{staticClass:"text-dark",attrs:{href:e.account.url}},[t._v(t._s(e.account.username))])])]),t._v(" "),o("span",{domProps:{innerHTML:t._s(e.content)}})])]),t._v(" "),o("div",{staticClass:"comments"}),t._v(" "),o("div",{staticClass:"timestamp pt-1"},[o("p",{staticClass:"small text-uppercase mb-0"},[o("a",{staticClass:"text-muted",attrs:{href:e.url}},[o("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(" "),o("div",{staticClass:"card-footer bg-white d-none"},[o("form",{on:{submit:function(o){return o.preventDefault(),t.commentSubmit(e,o)}}},[o("input",{attrs:{type:"hidden",name:"item",value:""}}),t._v(" "),o("input",{staticClass:"form-control status-reply-input",attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off"}})])])])}),0)]):t._e(),t._v(" "),"masonry"==t.mode?o("div",{staticClass:"masonry-grid"},t._l(t.timeline,function(e,n){return o("div",{staticClass:"d-inline p-0 p-sm-2 p-md-3 masonry-item"},[o("a",{attrs:{href:e.url},on:{click:function(o){return o.preventDefault(),t.statusModal(e)}}},[o("img",{class:"o-"+t.masonryOrientation(e),attrs:{src:t.previewUrl(e)}})])])}),0):t._e(),t._v(" "),t.timeline.length?o("div",[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):t._e()])])]),t._v(" "),o("b-modal",{ref:"followingModal",attrs:{id:"following-modal","hide-footer":"",centered:"",title:"Following","body-class":"list-group-flush p-0"}},[o("div",{staticClass:"list-group"},[t._l(t.following,function(e,n){return o("div",{key:"following_"+n,staticClass:"list-group-item border-0"},[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"}})]),t._v(" "),o("div",{staticClass:"media-body"},[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._s(e.username)+"\n ")])]),t._v(" "),o("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])])])])}),t._v(" "),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._v(" "),o("b-modal",{ref:"followerModal",attrs:{id:"follower-modal","hide-footer":"",centered:"",title:"Followers","body-class":"list-group-flush p-0"}},[o("div",{staticClass:"list-group"},[t._l(t.followers,function(e,n){return o("div",{key:"follower_"+n,staticClass:"list-group-item border-0"},[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"}})]),t._v(" "),o("div",{staticClass:"media-body"},[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._s(e.username)+"\n ")])]),t._v(" "),o("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])])])])}),t._v(" "),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)])],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-link text-dark no-caret dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"Post options"}},[e("span",{staticClass:"fas fa-ellipsis-v fa-lg text-muted"})])}],!1,null,"60670eae",null);e.default=i.exports},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]||"",n=t[3];if(!n)return o;if(e&&"function"==typeof btoa){var s=(i=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),a=n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"});return[o].concat(a).concat([s]).join("\n")}var i;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 n={},s=0;s<this.length;s++){var a=this[s][0];"number"==typeof a&&(n[a]=!0)}for(s=0;s<t.length;s++){var i=t[s];"number"==typeof i[0]&&n[i[0]]||(o&&!i[2]?i[2]=o:o&&(i[2]="("+i[2]+") and ("+o+")"),e.push(i))}},e}},"KHd+":function(t,e,o){"use strict";function n(t,e,o,n,s,a,i,r){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=o,c._compiled=!0),n&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),i?(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__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=l):s&&(l=r?function(){s.call(this,this.$root.$options.shadowRoot)}:s),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 f=c.beforeCreate;c.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:c}}o.d(e,"a",function(){return n})},"aET+":function(t,e,o){var n,s,a={},i=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===s&&(s=n.apply(this,arguments)),s}),r=function(t){var e={};return function(t,o){if("function"==typeof t)return t();if(void 0===e[t]){var n=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,o);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),l=null,c=0,d=[],f=o("9tPo");function u(t,e){for(var o=0;o<t.length;o++){var n=t[o],s=a[n.id];if(s){s.refs++;for(var i=0;i<s.parts.length;i++)s.parts[i](n.parts[i]);for(;i<n.parts.length;i++)s.parts.push(w(n.parts[i],e))}else{var r=[];for(i=0;i<n.parts.length;i++)r.push(w(n.parts[i],e));a[n.id]={id:n.id,refs:1,parts:r}}}}function p(t,e){for(var o=[],n={},s=0;s<t.length;s++){var a=t[s],i=e.base?a[0]+e.base:a[0],r={css:a[1],media:a[2],sourceMap:a[3]};n[i]?n[i].parts.push(r):o.push(n[i]={id:i,parts:[r]})}return o}function m(t,e){var o=r(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 n=d[d.length-1];if("top"===t.insertAt)n?n.nextSibling?o.insertBefore(e,n.nextSibling):o.appendChild(e):o.insertBefore(e,o.firstChild),d.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 s=r(t.insertAt.before,o);o.insertBefore(e,s)}}function h(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=d.indexOf(t);e>=0&&d.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=function(){0;return o.nc}();n&&(t.attrs.nonce=n)}return g(e,t.attrs),m(t,e),e}function g(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}function w(t,e){var o,n,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 i=c++;o=l||(l=v(e)),n=C.bind(null,o,i,!1),s=C.bind(null,o,i,!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",g(e,t.attrs),m(t,e),e}(e),n=function(t,e,o){var n=o.css,s=o.sourceMap,a=void 0===e.convertToAbsoluteUrls&&s;(e.convertToAbsoluteUrls||a)&&(n=f(n));s&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */");var i=new Blob([n],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(i),r&&URL.revokeObjectURL(r)}.bind(null,o,e),s=function(){h(o),o.href&&URL.revokeObjectURL(o.href)}):(o=v(e),n=function(t,e){var o=e.css,n=e.media;n&&t.setAttribute("media",n);if(t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}.bind(null,o),s=function(){h(o)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(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=i()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var o=p(t,e);return u(o,e),function(t){for(var n=[],s=0;s<o.length;s++){var i=o[s];(r=a[i.id]).refs--,n.push(r)}t&&u(p(t,e),e);for(s=0;s<n.length;s++){var r;if(0===(r=n[s]).refs){for(var l=0;l<r.parts.length;l++)r.parts[l]();delete a[r.id]}}}};var _,b=(_=[],function(t,e){return _[t]=e,_.filter(Boolean).join("\n")});function C(t,e,o,n){var s=o?"":n.css;if(t.styleSheet)t.styleSheet.cssText=b(e,s);else{var a=document.createTextNode(s),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(a,i[e]):t.appendChild(a)}}},bRof:function(t,e,o){var n=o("nrh7");"string"==typeof n&&(n=[[t.i,n,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};o("aET+")(n,s);n.locals&&(t.exports=n.locals)},nrh7:function(t,e,o){(t.exports=o("I1BE")(!1)).push([t.i,"\n.o-square[data-v-60670eae] {\n\tmax-width: 320px;\n}\n.o-portrait[data-v-60670eae] {\n\tmax-width: 320px;\n}\n.o-landscape[data-v-60670eae] {\n\tmax-width: 320px;\n}\n.post-icon[data-v-60670eae] {\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",""])}}); |