pixelfed/public/js/discover-llsjbikoc.js
2022-10-17 02:00:24 -06:00

1 line
29 KiB
JavaScript
Vendored

"use strict";(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[731],{1411:(t,e,a)=>{a.r(e),a.d(e,{default:()=>f});var i=a(42755),s=a(88231),n=a(78375),r=a(56899),o=a(92614),l=a(51436),d=a(53343),c=a(89601);const f={components:{drawer:i.default,sidebar:s.default,rightbar:n.default,discover:r.default,"news-slider":o.default,"discover-spotlight":l.default,"daily-trending":d.default,"grid-card":c.default},data:function(){return{isLoaded:!1,profile:void 0,config:{},tab:"index",popularAccounts:[],followingIndex:void 0}},updated:function(){},mounted:function(){this.profile=window._sharedData.user,this.fetchConfig()},methods:{fetchConfig:function(){var t=this;axios.get("/api/pixelfed/v2/discover/meta").then((function(e){t.config=e.data,t.isLoaded=!0,window._sharedData.discoverMeta=e.data}))},fetchPopularAccounts:function(){},followProfile:function(t){var e=this;event.currentTarget.blur(),this.followingIndex=t;var a=this.popularAccounts[t].id;axios.post("/api/v1/accounts/"+a+"/follow").then((function(a){e.followingIndex=void 0,e.popularAccounts.splice(t,1)})).catch((function(t){e.followingIndex=void 0,swal("Oops!","An error occured when attempting to follow this account.","error")}))},goToProfile:function(t){this.$router.push({path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:this.profile}})},toggleTab:function(t){this.tab=t,setTimeout((function(){window.scrollTo({top:0,behavior:"smooth"})}),300)},openManageModal:function(){event.currentTarget.blur(),swal("Settings","Discover settings here","info")}}}},20581:(t,e,a)=>{a.r(e),a.d(e,{default:()=>i});const i={data:function(){return{isLoaded:!1,initialFetch:!1,trending:[]}},mounted:function(){this.initialFetch||this.fetchTrending()},methods:{fetchTrending:function(){var t=this;axios.get("/api/pixelfed/v2/discover/posts/trending",{params:{range:"daily"}}).then((function(e){t.trending=e.data.filter((function(t){return"photo"===t.pf_type})).slice(0,9),t.isLoaded=!0,t.initialFetch=!0}))},gotoPost:function(t){this.$router.push("/i/web/post/"+t)},viewMore:function(){this.$emit("btn-click","trending")}}}},79383:(t,e,a)=>{a.r(e),a.d(e,{default:()=>i});const i={data:function(){return{isLoaded:!1}},mounted:function(){var t=this;setTimeout((function(){t.isLoaded=!0}),1e3)}}},86453:(t,e,a)=>{a.r(e),a.d(e,{default:()=>i});const i={props:{small:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},subtitle:{type:String},title:{type:String},buttonText:{type:String},buttonLink:{type:String},buttonEvent:{type:Boolean,default:!1},iconClass:{type:String}},methods:{handleLink:function(){1!=this.buttonEvent?this.buttonLink&&null!=this.buttonLink?this.$router.push(this.buttonLink):swal("Oops","This is embarassing, we cannot redirect you to the proper page at the moment","warning"):this.$emit("btn-click")}}}},69812:(t,e,a)=>{a.r(e),a.d(e,{default:()=>i});const i={}},27908:(t,e,a)=>{a.r(e),a.d(e,{default:()=>i});const i={props:{profile:{type:Object}},data:function(){return{loading:!0,trending:[],range:"daily",breadcrumbItems:[{text:"Discover",href:"/i/web/discover"},{text:"Trending",active:!0}]}},mounted:function(){this.loadTrending()},methods:{fetchData:function(){var t=this;axios.get("/api/pixelfed/v2/discover/posts").then((function(e){t.posts=e.data.posts.filter((function(t){return null!=t})),t.recommendedLoading=!1}))},loadTrending:function(){var t=this;this.loading=!0,axios.get("/api/pixelfed/v2/discover/posts/trending",{params:{range:this.range}}).then((function(e){var a=e.data.filter((function(t){return null!==t}));t.trending=a.filter((function(t){return 0==t.sensitive})),"daily"==t.range&&0==a.length&&(t.range="yearly",t.loadTrending()),t.loading=!1}))},formatCount:function(t){return App.util.format.count(t)},goToPost:function(t){this.$router.push({name:"post",params:{id:t.id,cachedStatus:t,cachedProfile:this.profile}})},rangeToggle:function(t){event.currentTarget.blur(),this.range=t,this.loadTrending()}}}},52230:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(23645),s=a.n(i)()((function(t){return t[1]}));s.push([t.id,'.card-img[data-v-b270da6e]{position:relative}.card-img img[data-v-b270da6e]{border-radius:10px;height:200px;-o-object-fit:cover;object-fit:cover;width:100%}.card-img[data-v-b270da6e]:after,.card-img[data-v-b270da6e]:before{background:rgba(0,0,0,.2);border-radius:10px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:2}.card-img .title[data-v-b270da6e]{bottom:5px;color:#fff;font-size:40px;font-weight:700;left:10px;position:absolute;z-index:3}.card-img.big img[data-v-b270da6e]{height:300px}.font-default[data-v-b270da6e]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;letter-spacing:-.7px}.bg-stellar[data-v-b270da6e]{background:#7474bf;background:linear-gradient(90deg,#348ac7,#7474bf)}.bg-berry[data-v-b270da6e]{background:#5433ff;background:linear-gradient(90deg,#acb6e5,#86fde8)}.bg-midnight[data-v-b270da6e]{background:#232526;background:linear-gradient(90deg,#414345,#232526)}.media-body[data-v-b270da6e]{margin-right:.5rem}.avatar[data-v-b270da6e]{border-radius:15px}.username[data-v-b270da6e]{word-wrap:break-word!important;font-size:14px;line-height:14px;margin-bottom:2px;word-break:break-word!important}.display-name[data-v-b270da6e]{font-size:12px}.display-name[data-v-b270da6e],.follower-count[data-v-b270da6e]{word-wrap:break-word!important;margin-bottom:0;word-break:break-word!important}.follower-count[data-v-b270da6e]{font-size:10px}.follow[data-v-b270da6e]{background-color:var(--primary);border-radius:18px;font-weight:600;padding:5px 15px}',""]);const n=s},43339:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(23645),s=a.n(i)()((function(t){return t[1]}));s.push([t.id,".discover-daily-trending .bg-stellar{background:#7474bf;background:linear-gradient(90deg,#348ac7,#7474bf)}.discover-daily-trending .font-default{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;letter-spacing:-.7px}",""]);const n=s},36303:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(23645),s=a.n(i)()((function(t){return t[1]}));s.push([t.id,".discover-spotlight{overflow:hidden}.discover-spotlight .card-body{min-height:322px}.discover-spotlight .font-default{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;letter-spacing:-.7px}.discover-spotlight .bg-stellar{background:#7474bf;background:linear-gradient(90deg,#348ac7,#7474bf)}.discover-spotlight .bg-berry{background:#5433ff;background:linear-gradient(90deg,#acb6e5,#86fde8)}.discover-spotlight .bg-midnight{background:#232526;background:linear-gradient(90deg,#414345,#232526)}",""]);const n=s},82279:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(23645),s=a.n(i)()((function(t){return t[1]}));s.push([t.id,".discover-grid-card{width:100%}.discover-grid-card-body{background:#f8f9fa;border-radius:8px;color:#212529;overflow:hidden;padding:3rem 3rem 0;text-align:center;width:100%}.discover-grid-card-body .section-copy{margin-bottom:1rem;margin-top:1rem;padding-bottom:1rem;padding-top:1rem}.discover-grid-card-body .section-copy .subtitle{color:#6c757d;font-size:16px;margin-bottom:0}.discover-grid-card-body .section-copy .btn,.discover-grid-card-body .section-copy .subtitle,.discover-grid-card-body .section-copy .title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;letter-spacing:-.7px}.discover-grid-card-body .section-icon{align-items:center;background:#232526;background:linear-gradient(90deg,#414345,#232526);border-radius:21px 21px 0 0;box-shadow:0 .125rem .25rem rgba(0,0,0,.08)!important;display:flex;height:300px;justify-content:center;margin-left:auto;margin-right:auto;width:80%}.discover-grid-card-body .section-icon i{color:#fff;font-size:10rem}.discover-grid-card-body.small .section-icon{height:120px}.discover-grid-card-body.small .section-icon i{font-size:4rem}.discover-grid-card-body.dark{background:#232526;background:linear-gradient(90deg,#414345,#232526);color:#fff}.discover-grid-card-body.dark .section-icon{background:#f8f9fa;color:#fff}.discover-grid-card-body.dark .section-icon i{color:#232526}.discover-grid-card-body.dark .btn-outline-dark{border-color:#f8f9fa;color:#f8f9fa}",""]);const n=s},4242:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(23645),s=a.n(i)()((function(t){return t[1]}));s.push([t.id,".discover-news-slider{background-color:#e0f2fe;position:relative}",""]);const n=s},94052:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(23645),s=a.n(i)()((function(t){return t[1]}));s.push([t.id,".discover-feed-component .font-default{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;letter-spacing:-.7px}.discover-feed-component .info-overlay,.discover-feed-component .square-next .info-overlay-text,.discover-feed-component .square-next img{border-radius:15px!important}.discover-feed-component .trending-range .btn:hover:not(.btn-danger){background-color:#fca5a5}.discover-feed-component .info-overlay-text-field{font-size:13.5px;margin-bottom:2px}@media(min-width:768px){.discover-feed-component .info-overlay-text-field{font-size:20px;margin-bottom:15px}}",""]);const n=s},20758:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var i=a(93379),s=a.n(i),n=a(52230),r={insert:"head",singleton:!1};s()(n.default,r);const o=n.default.locals||{}},28643:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var i=a(93379),s=a.n(i),n=a(43339),r={insert:"head",singleton:!1};s()(n.default,r);const o=n.default.locals||{}},56937:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var i=a(93379),s=a.n(i),n=a(36303),r={insert:"head",singleton:!1};s()(n.default,r);const o=n.default.locals||{}},2714:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var i=a(93379),s=a.n(i),n=a(82279),r={insert:"head",singleton:!1};s()(n.default,r);const o=n.default.locals||{}},630:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var i=a(93379),s=a.n(i),n=a(4242),r={insert:"head",singleton:!1};s()(n.default,r);const o=n.default.locals||{}},95139:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var i=a(93379),s=a.n(i),n=a(94052),r={insert:"head",singleton:!1};s()(n.default,r);const o=n.default.locals||{}},14235:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var i=a(9977),s=a(71008),n={};for(const t in s)"default"!==t&&(n[t]=()=>s[t]);a.d(e,n);a(3713);const r=(0,a(51900).default)(s.default,i.render,i.staticRenderFns,!1,null,"b270da6e",null).exports},53343:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var i=a(20667),s=a(30657),n={};for(const t in s)"default"!==t&&(n[t]=()=>s[t]);a.d(e,n);a(71620);const r=(0,a(51900).default)(s.default,i.render,i.staticRenderFns,!1,null,null,null).exports},51436:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var i=a(39294),s=a(37301),n={};for(const t in s)"default"!==t&&(n[t]=()=>s[t]);a.d(e,n);a(89779);const r=(0,a(51900).default)(s.default,i.render,i.staticRenderFns,!1,null,null,null).exports},89601:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var i=a(73252),s=a(27470),n={};for(const t in s)"default"!==t&&(n[t]=()=>s[t]);a.d(e,n);a(15155);const r=(0,a(51900).default)(s.default,i.render,i.staticRenderFns,!1,null,null,null).exports},92614:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var i=a(99531),s=a(15115),n={};for(const t in s)"default"!==t&&(n[t]=()=>s[t]);a.d(e,n);a(32700);const r=(0,a(51900).default)(s.default,i.render,i.staticRenderFns,!1,null,null,null).exports},56899:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var i=a(36818),s=a(13728),n={};for(const t in s)"default"!==t&&(n[t]=()=>s[t]);a.d(e,n);a(65169);const r=(0,a(51900).default)(s.default,i.render,i.staticRenderFns,!1,null,null,null).exports},71008:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(1411),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s);const n=i.default},30657:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(20581),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s);const n=i.default},37301:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(79383),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s);const n=i.default},27470:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(86453),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s);const n=i.default},15115:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(69812),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s);const n=i.default},13728:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(27908),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s);const n=i.default},3713:(t,e,a)=>{a.r(e);var i=a(20758),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},71620:(t,e,a)=>{a.r(e);var i=a(28643),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},89779:(t,e,a)=>{a.r(e);var i=a(56937),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},15155:(t,e,a)=>{a.r(e);var i=a(2714),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},32700:(t,e,a)=>{a.r(e);var i=a(630),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},65169:(t,e,a)=>{a.r(e);var i=a(95139),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},9977:(t,e,a)=>{a.r(e);var i=a(46160),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},20667:(t,e,a)=>{a.r(e);var i=a(17842),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},39294:(t,e,a)=>{a.r(e);var i=a(89764),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},73252:(t,e,a)=>{a.r(e);var i=a(18645),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},99531:(t,e,a)=>{a.r(e);var i=a(62436),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},36818:(t,e,a)=>{a.r(e);var i=a(42829),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},46160:(t,e,a)=>{a.r(e),a.d(e,{render:()=>i,staticRenderFns:()=>s});var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"web-wrapper"},[t.isLoaded?a("div",{staticClass:"container-fluid mt-3"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-4 col-lg-3"},[a("sidebar",{attrs:{user:t.profile}})],1),t._v(" "),"index"==t.tab?a("div",{staticClass:"col-md-8 col-lg-9 mt-n4"},[t.profile.is_admin?a("div",{staticClass:"d-md-flex my-md-3"},[a("grid-card",{attrs:{dark:!0,title:"Hello "+t.profile.username,subtitle:"Welcome to the new Discover experience! Only admins can see this","button-text":"Manage Discover Settings","button-link":"/i/web/discover/settings","icon-class":"fal fa-cog",small:!0}})],1):t._e(),t._v(" "),a("daily-trending",{on:{"btn-click":function(e){return t.toggleTab("trending")}}}),t._v(" "),a("div",{staticClass:"d-md-flex my-md-3"},[t.config.hashtags.enabled?a("grid-card",{attrs:{dark:!0,title:"My Hashtags",subtitle:"Explore posts tagged with hashtags you follow","button-text":"Explore Posts","button-link":"/i/web/discover/my-hashtags","icon-class":"fal fa-hashtag",small:!1}}):t._e(),t._v(" "),t.config.memories.enabled?a("grid-card",{attrs:{title:"My Memories",subtitle:"A distant look back","button-text":"View Memories","button-link":"/i/web/discover/my-memories","icon-class":"fal fa-history",small:!1}}):t._e()],1),t._v(" "),a("div",{staticClass:"d-md-flex my-md-3"},[t.config.insights.enabled?a("grid-card",{attrs:{title:"Account Insights",subtitle:"Get a rich overview of your account activity and interactions","button-text":"View Account Insights","icon-class":"fal fa-user-circle","button-link":"/i/web/discover/account-insights",small:!1}}):t._e(),t._v(" "),t.config.friends.enabled?a("grid-card",{attrs:{dark:!0,title:"Find Friends",subtitle:"Find accounts to follow based on common interests","button-text":"Find Friends & Followers","button-link":"/i/web/discover/find-friends","icon-class":"fal fa-user-plus",small:!1}}):t._e()],1),t._v(" "),a("div",{staticClass:"d-md-flex my-md-3"},[t.config.server.enabled&&t.config.server.domains&&t.config.server.domains.length?a("grid-card",{attrs:{dark:!0,title:"Server Timelines",subtitle:"Browse timelines of a specific remote instance","button-text":"Browse Server Feeds","icon-class":"fal fa-list","button-link":"/i/web/discover/server-timelines",small:!1}}):t._e()],1)],1):"trending"==t.tab?a("div",{staticClass:"col-md-8 col-lg-9 mt-n4"},[a("discover",{attrs:{profile:t.profile}})],1):"popular-places"==t.tab?a("div",{staticClass:"col-md-8 col-lg-9 mt-n4"},[t._m(0)]):t._e()]),t._v(" "),a("drawer")],1):t._e()])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"mt-3 mb-5 section-explore"},[a("div",{staticClass:"profile-timeline"},[a("div",{staticClass:"row p-0 mt-5"},[a("div",{staticClass:"col-12 mb-4 d-flex justify-content-between align-items-center"},[a("p",{staticClass:"d-block d-md-none h1 font-weight-bold mb-0 font-default"},[t._v("Popular Places")]),t._v(" "),a("p",{staticClass:"d-none d-md-block display-4 font-weight-bold mb-0 font-default"},[t._v("Popular Places")])])])]),t._v(" "),a("div",{staticClass:"row mt-5"},[a("div",{staticClass:"col-12 col-md-12 mb-3"},[a("div",{staticClass:"card-img big"},[a("img",{attrs:{src:"/img/places/nyc.jpg"}}),t._v(" "),a("div",{staticClass:"title font-default"},[t._v("New York City")])])]),t._v(" "),a("div",{staticClass:"col-12 col-md-6 mb-3"},[a("div",{staticClass:"card-img"},[a("img",{attrs:{src:"/img/places/edmonton.jpg"}}),t._v(" "),a("div",{staticClass:"title font-default"},[t._v("Edmonton")])])]),t._v(" "),a("div",{staticClass:"col-12 col-md-6 mb-3"},[a("div",{staticClass:"card-img"},[a("img",{attrs:{src:"/img/places/paris.jpg"}}),t._v(" "),a("div",{staticClass:"title font-default"},[t._v("Paris")])])]),t._v(" "),a("div",{staticClass:"col-12 col-md-4 mb-3"},[a("div",{staticClass:"card-img"},[a("img",{attrs:{src:"/img/places/london.jpg"}}),t._v(" "),a("div",{staticClass:"title font-default"},[t._v("London")])])]),t._v(" "),a("div",{staticClass:"col-12 col-md-4 mb-3"},[a("div",{staticClass:"card-img"},[a("img",{attrs:{src:"/img/places/vancouver.jpg"}}),t._v(" "),a("div",{staticClass:"title font-default"},[t._v("Vancouver")])])]),t._v(" "),a("div",{staticClass:"col-12 col-md-4 mb-3"},[a("div",{staticClass:"card-img"},[a("img",{attrs:{src:"/img/places/toronto.jpg"}}),t._v(" "),a("div",{staticClass:"title font-default"},[t._v("Toronto")])])])])])}]},17842:(t,e,a)=>{a.r(e),a.d(e,{render:()=>i,staticRenderFns:()=>s});var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"discover-daily-trending"},[a("div",{staticClass:"card bg-stellar"},[a("div",{staticClass:"card-body m-5"},[a("div",{staticClass:"row d-flex align-items-center"},[a("div",{staticClass:"col-12 col-md-5"},[a("p",{staticClass:"font-default text-light mb-0"},[t._v("Popular and trending posts")]),t._v(" "),a("h1",{staticClass:"display-4 font-default text-white",staticStyle:{"font-weight":"700"}},[t._v("Daily Trending")]),t._v(" "),a("button",{staticClass:"btn btn-outline-light rounded-pill",on:{click:function(e){return t.viewMore()}}},[t._v("View more trending posts")])]),t._v(" "),a("div",{staticClass:"col-12 col-md-7"},[t.isLoaded?a("div",{staticClass:"row"},t._l(t.trending,(function(e,i){return a("div",{staticClass:"col-4"},[a("a",{attrs:{href:e.url},on:{click:function(a){return a.preventDefault(),t.gotoPost(e.id)}}},[a("img",{staticClass:"shadow m-1",staticStyle:{"object-fit":"cover","border-radius":"8px"},attrs:{src:e.media_attachments[0].url,width:"170",height:"170"}})])])})),0):a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 d-flex justify-content-center"},[a("b-spinner",{attrs:{type:"grow",variant:"light"}})],1)])])])])])])},s=[]},89764:(t,e,a)=>{a.r(e),a.d(e,{render:()=>i,staticRenderFns:()=>s});var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"discover-spotlight"},[a("div",{staticClass:"card bg-dark text-white"},[a("div",{staticClass:"card-body my-5 p-5 w-100 h-100 d-flex justify-content-center align-items-center"},[a("transition",{attrs:{"enter-active-class":"animate__animated animate__fadeInDownBig","leave-active-class":"animate__animated animate__fadeOutDownBig",mode:"out-in"}},[t.isLoaded?a("div",{staticClass:"row"},[a("div",{staticClass:"col-5"},[a("h1",{staticClass:"display-3 font-default mb-3",staticStyle:{"line-height":"1","font-weight":"600"}},[t._v("\n\t\t\t\t\t\t\tSpotlight\n\t\t\t\t\t\t")]),t._v(" "),a("h1",{staticClass:"display-5 font-default",staticStyle:{"line-height":"1"}},[a("span",{staticClass:"text-muted",staticStyle:{"line-height":"0.8","font-weight":"200","letter-spacing":"-1.2px"}},[t._v("\n\t\t\t\t\t\t\t\tCommunity curated\n\t\t\t\t\t\t\t\tcollection of creators\n\t\t\t\t\t\t\t")])]),t._v(" "),a("p",{staticClass:"lead font-default mt-4"},[t._v("This weeks collection is curated by "),a("span",{staticClass:"primary"},[t._v("@dansup")])])]),t._v(" "),a("div",{staticClass:"col-7 d-flex justify-content-between"},[a("div",{staticClass:"text-center mr-4"},[a("h5",{staticClass:"font-default mb-2"},[t._v("@dansup")]),t._v(" "),a("img",{staticClass:"avatar shadow cursor-pointer",attrs:{src:"https://pixelfed.test/storage/avatars/321493203255693312/skvft7.jpg?v=33",draggable:"false",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';",width:"160",height:"160"}}),t._v(" "),a("button",{staticClass:"btn btn-outline-light btn-sm rounded-pill py-1 mt-2 font-default"},[t._v("View Profile")])]),t._v(" "),a("div",{staticClass:"text-center mr-4"},[a("h5",{staticClass:"font-default mb-2"},[t._v("@dansup")]),t._v(" "),a("img",{staticClass:"avatar shadow cursor-pointer",attrs:{src:"https://pixelfed.test/storage/avatars/321493203255693312/skvft7.jpg?v=33",draggable:"false",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';",width:"160",height:"160"}}),t._v(" "),a("button",{staticClass:"btn btn-outline-light btn-sm rounded-pill py-1 mt-2 font-default"},[t._v("View Profile")])]),t._v(" "),a("div",{staticClass:"text-center"},[a("h5",{staticClass:"font-default mb-2"},[t._v("@dansup")]),t._v(" "),a("img",{staticClass:"avatar shadow cursor-pointer",attrs:{src:"https://pixelfed.test/storage/avatars/321493203255693312/skvft7.jpg?v=33",draggable:"false",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';",width:"160",height:"160"}}),t._v(" "),a("button",{staticClass:"btn btn-outline-light btn-sm rounded-pill py-1 mt-2 font-default"},[t._v("View Profile")])])])]):t._e()]),t._v(" "),t.isLoaded?t._e():a("div",{},[a("b-spinner",{attrs:{type:"grow"}})],1)],1)])])},s=[]},18645:(t,e,a)=>{a.r(e),a.d(e,{render:()=>i,staticRenderFns:()=>s});var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"discover-grid-card"},[a("div",{staticClass:"discover-grid-card-body",class:{dark:t.dark,small:t.small}},[a("div",{staticClass:"section-copy"},[a("p",{staticClass:"subtitle"},[t._v(t._s(t.subtitle))]),t._v(" "),a("h1",{staticClass:"title"},[t._v(t._s(t.title))]),t._v(" "),t.buttonText?a("button",{staticClass:"btn btn-outline-dark rounded-pill py-1",on:{click:function(e){return e.preventDefault(),t.handleLink()}}},[t._v(t._s(t.buttonText))]):t._e()]),t._v(" "),a("div",{staticClass:"section-icon"},[a("i",{class:t.iconClass})])])])},s=[]},62436:(t,e,a)=>{a.r(e),a.d(e,{render:()=>i,staticRenderFns:()=>s});var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"rounded-3 overflow-hidden discover-news-slider"},[a("div",{staticClass:"row align-items-center"},[t._m(0),t._v(" "),a("div",{staticClass:"col-lg-6 col-md-7 offset-xl-1"},[a("div",{staticClass:"position-relative d-flex flex-column align-items-center justify-content-center h-100"},[a("svg",{staticClass:"d-none d-md-block position-absolute top-50 start-0 translate-middle-y",staticStyle:{"min-width":"868px"},attrs:{width:"868",height:"868",viewBox:"0 0 868 868",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("circle",{attrs:{opacity:"0.15",cx:"434",cy:"434",r:"434",fill:"#7dd3fc"}})]),t._v(" "),t._m(1)])])]),t._v(" "),t._m(2)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xl-4 col-md-5 offset-lg-1"},[a("div",{staticClass:"pt-5 pb-3 pb-md-5 px-4 px-lg-0"},[a("p",{staticClass:"lead mb-3",staticStyle:{"font-family":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif","letter-spacing":"-0.7px","font-weight":"300","font-size":"20px"}},[t._v("Introducing")]),t._v(" "),a("h2",{staticClass:"h1 pb-0 mb-3",staticStyle:{"font-family":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif","letter-spacing":"-1px","font-weight":"700"}},[t._v("Emoji "),a("span",{staticClass:"primary"},[t._v("Reactions")])]),t._v(" "),a("p",{staticClass:"lead",staticStyle:{"font-family":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif","letter-spacing":"-0.7px","font-weight":"400","font-size":"17px","line-height":"15px"}},[t._v("\n\t\t\t\t\tA new way to interact with content,"),a("br"),t._v(" now available!\n\t\t\t\t")]),t._v(" "),a("a",{staticClass:"btn btn-primary primary btn-sm",attrs:{href:"#"}},[t._v("Learn more "),a("i",{staticClass:"far fa-chevron-right fa-sm ml-2"})])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"d-flex"},[a("img",{staticClass:"position-relative zindex-3 mb-2 my-lg-4",attrs:{src:"/img/remoji/hushed_face.gif",width:"100",alt:"Illustration"}}),t._v(" "),a("img",{staticClass:"position-relative zindex-3 mb-2 my-lg-4",attrs:{src:"/img/remoji/thumbs_up.gif",width:"100",alt:"Illustration"}}),t._v(" "),a("img",{staticClass:"position-relative zindex-3 mb-2 my-lg-4",attrs:{src:"/img/remoji/sparkling_heart.gif",width:"100",alt:"Illustration"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{position:"absolute",left:"50%",transform:"translateX(-50%)",bottom:"10px"}},[a("div",{staticClass:"d-flex"},[a("button",{staticClass:"btn btn-link p-0"},[a("i",{staticClass:"far fa-dot-circle"})]),t._v(" "),a("button",{staticClass:"btn btn-link p-0 mx-2"},[a("i",{staticClass:"far fa-circle"})]),t._v(" "),a("button",{staticClass:"btn btn-link p-0"},[a("i",{staticClass:"far fa-circle"})])])])}]},42829:(t,e,a)=>{a.r(e),a.d(e,{render:()=>i,staticRenderFns:()=>s});var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"discover-feed-component"},[a("section",{staticClass:"mt-3 mb-5 section-explore"},[a("b-breadcrumb",{staticClass:"font-default",attrs:{items:t.breadcrumbItems}}),t._v(" "),a("div",{staticClass:"profile-timeline"},[a("div",{staticClass:"row p-0 mt-5"},[a("div",{staticClass:"col-12 mb-4 d-flex justify-content-between align-items-center"},[a("p",{staticClass:"d-block d-md-none h1 font-weight-bold mb-0 font-default"},[t._v("Trending")]),t._v(" "),a("p",{staticClass:"d-none d-md-block display-4 font-weight-bold mb-0 font-default"},[t._v("Trending")]),t._v(" "),a("div",[a("div",{staticClass:"btn-group trending-range"},[a("button",{class:"daily"==t.range?"btn py-1 font-weight-bold px-3 text-uppercase btn-sm btn-danger":"btn py-1 font-weight-bold px-3 text-uppercase btn-sm btn-outline-danger",on:{click:function(e){return t.rangeToggle("daily")}}},[t._v("Today")]),t._v(" "),a("button",{class:"monthly"==t.range?"btn py-1 font-weight-bold px-3 text-uppercase btn-sm btn-danger":"btn py-1 font-weight-bold px-3 text-uppercase btn-sm btn-outline-danger",on:{click:function(e){return t.rangeToggle("monthly")}}},[t._v("This month")]),t._v(" "),a("button",{class:"yearly"==t.range?"btn py-1 font-weight-bold px-3 text-uppercase btn-sm btn-danger":"btn py-1 font-weight-bold px-3 text-uppercase btn-sm btn-outline-danger",on:{click:function(e){return t.rangeToggle("yearly")}}},[t._v("This year")])])])])]),t._v(" "),t.loading?a("div",{staticClass:"row p-0 px-lg-3"},[a("div",{staticClass:"col-12 d-flex align-items-center justify-content-center",staticStyle:{"min-height":"40vh"}},[a("b-spinner",{attrs:{size:"lg"}})],1)]):a("div",{staticClass:"row p-0 px-lg-3"},t._l(t.trending,(function(e,i){return t.trending.length?a("div",{staticClass:"col-6 col-lg-4 col-xl-3 p-1"},[a("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:e.url},on:{click:function(a){return a.preventDefault(),t.goToPost(e)}}},[a("div",{staticClass:"square square-next"},[e.sensitive?a("div",{staticClass:"square-content"},[t._m(0,!0),t._v(" "),a("blur-hash-canvas",{attrs:{width:"32",height:"32",hash:e.media_attachments[0].blurhash}})],1):a("div",{staticClass:"square-content"},[a("blur-hash-image",{attrs:{width:"32",height:"32",hash:e.media_attachments[0].blurhash,src:e.media_attachments[0].preview_url}})],1),t._v(" "),a("div",{staticClass:"info-overlay-text"},[a("div",{staticClass:"text-white m-auto"},[a("p",{staticClass:"info-overlay-text-field font-weight-bold"},[a("span",{staticClass:"far fa-heart fa-lg p-2 d-flex-inline"}),t._v(" "),a("span",{staticClass:"d-flex-inline"},[t._v(t._s(t.formatCount(e.favourites_count)))])]),t._v(" "),a("p",{staticClass:"info-overlay-text-field font-weight-bold"},[a("span",{staticClass:"far fa-comment fa-lg p-2 d-flex-inline"}),t._v(" "),a("span",{staticClass:"d-flex-inline"},[t._v(t._s(t.formatCount(e.reply_count)))])]),t._v(" "),a("p",{staticClass:"mb-0 info-overlay-text-field font-weight-bold"},[a("span",{staticClass:"far fa-sync fa-lg p-2 d-flex-inline"}),t._v(" "),a("span",{staticClass:"d-flex-inline"},[t._v(t._s(t.formatCount(e.reblogs_count)))])])])])])])]):a("div",{staticClass:"col-12 d-flex align-items-center justify-content-center bg-light border",staticStyle:{"min-height":"40vh"}},[a("div",{staticClass:"h2"},[t._v("No posts found :(")])])})),0)])],1)])},s=[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"})])])])}]}}]);