(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[2737],{40300(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>i});vara=s(76777);consti={props:{feed:{type:Array,required:!0},canLoadMore:{type:Boolean,default:!1},withLinks:{type:Boolean,default:!1},withOverlay:{type:Boolean,default:!0},autoPlay:{type:Boolean,default:!1},autoPlayInterval:{type:Number,default:function(){return5e3}}},data:function(){return{glideInstance:null}},mounted:function(){this.initGlide()},computed:{webfinger:{get:function(){if(this.feed&&this.feed.length){vart=this.feed[0].account,e=newURL(t.url).host;return"@".concat(t.username,"@").concat(e)}return""}}},methods:{initGlide:function(){this.glideInstance=newa.default(this.$refs.glide,{type:"carousel",startAt:0,perView:1,gap:0,hoverpause:!1,autoplay:!!this.autoPlay&&this.autoPlayInterval,keyboard:!0}),this.glideInstance.on("run.after",this.checkForPagination),this.glideInstance.mount()},checkForPagination:function(){this.glideInstance.index===this.feed.length-1&&this.canLoadMore&&this.$emit("load-more")},loadMore:function(){this.$emit("load-more")},formatDate:function(t){vare,s=arguments.length>1&&void0!==arguments[1]?arguments[1]:navigator.language;if("string"==typeoft){if(e=newDate(t),isNaN(e.getTime()))thrownewError("Invalid date string. Please provide a valid ISO 8601 format.")}else{if(!(tinstanceofDate))thrownewError("Invalid input. Please provide a Date object or an ISO 8601 string.");e=t}returnnewIntl.DateTimeFormat(s,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).format(e)},updateGlide:function(){vart=this;this.$nextTick(function(){t.glideInstance&&t.glideInstance.update()})}},watch:{feed:function(){this.updateGlide()}}}},86052(t,e,s){"use strict";s.r(e),s.d(e,{default:()=>u});vara=s(84498),i=s(342);functiono(t){returnfunction(t){if(Array.isArray(t))returnn(t)}(t)||function(t){if("undefined"!=typeofSymbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])returnArray.from(t)}(t)||function(t,e){if(t){if("string"==typeoft)returnn(t,e);vars={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?n(t,e):void0}}(t)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionn(t,e){(null==e||e>t.length)&&(e=t.length);for(vars=0,a=Array(e);s<e;s++)a[s]=t[s];returna}functionr(){vart,e,s="function"==typeofSymbol?Symbol:{},a=s.iterator||"@@iterator",i=s.toStringTag||"@@toStringTag";functiono(s,a,i,o){varr=a&&a.prototypeinstanceofc?a:c,d=Object.create(r.prototype);returnl(d,"_invoke",function(s,a,i){varo,r,l,c=0,d=i||[],u=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,s){returno=e,r=0,l=t,f.n=s,n}};functionp(s,a){for(r=s,l=a,e=0;!u&&c&&!i&&e<d.length;e++){vari,o=d[e],p=f.p,h=o[2];s>3?(i=h===a)&&(l=o[(r=o[4])?5:(r=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=s<2&&p<o[1])?(r=0,f.v=a,f.n=o[1]):p<h&&(i=s<3||o[0]>a||a>h)&&(o[4]=s,o[5]=a,f.n=h,r=0))}if(i||s>1)returnn;throwu=!0,a}returnfunction(i,d,h){if(c>1)throwTypeError("Generator is already running");for(u&&1===d&&p(d,h),r=d,l=h;(e=r<2?t:l)||!u;){o||(r?r<3?(r>1&&(f.n=-1),p(r,l)):f.n=l:f.v=l);try{if(c=2,o){if(r||(i="next"),e=o[i]){if(!(e=e.call(o,l)))throwTypeError("iterator result is not an object");if(!e.done)returne;l=e.value,r<2&&(r=0)}else1===r&&(e=o.return)&&e.call(o),r<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),r=1);o=t}elseif((e=(u=f.n<0)?l:s.call(a,f))!==n)break}catch(e){o=t,r=1,l=e}finally{c=1}}return{value:e,done:u}}}(s,i,o),!0),d}varn={};functionc(){}functiond(){}functionu(){}e=Object.getPrototypeOf;varf=[][a]?e(e([][a]())):(l(e={},a,function(){returnthis}),e),p=u.prototype=c.prototype=Object.create(f);functionh(t){returnObject.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,l(t,i,"GeneratorFunction")),t.prototype=Object.create(p),t}returnd.prototype=u,l(p,"constru