(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[3891],{75948(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>u});vari=o(77387),a=o(25100);functions(e){returns="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},s(e)}functionn(e){returnfunction(e){if(Array.isArray(e))returnr(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||function(e,t){if(e){if("string"==typeofe)returnr(e,t);varo={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void0}}(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionr(e,t){(null==t||t>e.length)&&(t=e.length);for(varo=0,i=Array(t);o<t;o++)i[o]=e[o];returni}functionl(e,t){varo=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,i)}returno}functiond(e){for(vart=1;t<arguments.length;t++){varo=null!=arguments[t]?arguments[t]:{};t%2?l(Object(o),!0).forEach(function(t){c(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}returne}functionc(e,t,o){return(t=function(e){vart=function(e,t){if("object"!=s(e)||!e)returne;varo=e[Symbol.toPrimitive];if(void0!==o){vari=o.call(e,t||"default");if("object"!=s(i))returni;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))ine?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}constu={components:{"user-card":i.default,intersect:a.default},data:function(){return{loading:!0,config:window.pfl,pagination:void0,feed:[],isEmpty:!1,canLoadMore:!1,isIntersecting:!1,isLoadingMore:!1}},beforeMount:function(){0==this.config.show_directory&&this.$router.push("/")},mounted:function(){this.init()},methods:{init:function(){vare=this;axios.get("/api/landing/v1/directory").then(function(t){t.data.data.length||(e.isEmpty=!0),e.feed=t.data.data,e.pagination=d(d({},t.data.links),t.data.meta)}).finally(function(){e.canLoadMore=!0,e.$nextTick(function(){e.loading=!1})})},enterIntersect:function(e){vart=this;!this.isIntersecting&&this.pagination.next_cursor&&(this.isIntersecting=!0,this.isLoadingMore=!0,axios.get("/api/landing/v1/directory",{params:{cursor:this.pagination.next_cursor}}).then(function(e){varo;(o=t.feed).push.apply(o,n(e.data.data)),t.pagination=d(d({},e.data.links),e.data.meta)}).finally(function(){t.pagination.next_cursor?t.canLoadMore=!0:t.canLoadMore=!1,t.isLoadingMore=!1,t.isIntersecting=!1}),console.log(e))}}}},22912(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>i});consti={components:{"post-card":o(42060).default},data:function(){return{loading:!0,config:window.pfl,isFetching:!1,range:"daily",ranges:["daily","monthly","yearly"],rangeIndex:0,feed:[]}},beforeMount:function(){0==this.config.show_explore_feed&&this.$router.push("/")},mounted:function(){this.init()},methods:{init:function(){vare=this;axios.get("/api/pixelfed/v2/discover/posts/trending?range=daily").then(function(t){t&&t.data.length>3?(e.feed=t.data,e.loading=!1):(e.rangeIndex++,e.fetchTrending())})},fetchTrending:function(){vare=this;this.isFetching||this.rangeIndex>=3||(this.isFetching=!0,axios.get("/api/pixelfed/v2/discover/posts/trending",{params:{range:this.ranges[this.rangeIndex]}}).then(function(t){t&&t.data.length&&t.data.length>3?(e.feed=t.data,e.loading=!1):(e.rangeIndex++,e.isFetching=!1,e.fetchTrending())}))}}}},62626(e,t,o){"usestri