From a8907114dc06a709766ca84f88eed5196cc8ecc9 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 26 Jun 2022 19:12:50 -0600 Subject: [PATCH] Add live player view --- public/js/collectioncompose.js | 2 +- public/js/collections.js | 2 +- public/js/home-ojtjadoml.js | 2 +- public/js/installer.js | 2 ++ public/js/live-player.js | 1 + public/js/spa.js | 2 +- public/js/vendor.js | 2 +- public/mix-manifest.json | 12 ++++++---- resources/assets/js/live-player.js | 4 ++++ resources/views/live/player.blade.php | 33 +++++++++++++++++++++++++++ routes/web.php | 1 + 11 files changed, 53 insertions(+), 10 deletions(-) create mode 100644 public/js/installer.js create mode 100644 public/js/live-player.js create mode 100644 resources/assets/js/live-player.js create mode 100644 resources/views/live/player.blade.php diff --git a/public/js/collectioncompose.js b/public/js/collectioncompose.js index 60a393b6c..8331bf956 100644 --- a/public/js/collectioncompose.js +++ b/public/js/collectioncompose.js @@ -1 +1 @@ -(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[597],{30323:(t,i,e)=>{"use strict";e.r(i),e.d(i,{default:()=>s});const s={props:["collection-id","profile-id"],data:function(){return{config:window.App.config,loaded:!1,limit:8,step:1,title:"",description:"",collection:{title:"",description:"",visibility:"draft"},id:"",posts:[],tab:"add",tabs:["all","add","order"],recentPosts:[],selectedPost:""}},beforeMount:function(){var t=this;axios.get("/api/local/collection/"+this.collectionId).then((function(i){t.collection=i.data}))},mounted:function(){this.fetchRecentPosts(),this.fetchItems(),axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(t){window._sharedData.curUser=t.data,window.App.util.navatar()}))},methods:{addToIds:function(t){var i=this;axios.post("/api/local/collection/item",{collection_id:this.collectionId,post_id:t}).then((function(t){i.fetchItems(),i.fetchRecentPosts(),i.tab="all",i.id=""})).catch((function(t){swal("Invalid URL","The post you entered was invalid","error"),i.id=""}))},fetchItems:function(){var t=this;axios.get("/api/local/collection/items/"+this.collectionId).then((function(i){t.posts=i.data,t.loaded=!0}))},addId:function(){var t=this.config.uploader.max_collection_length;if(this.posts.length>=t)swal("Error","You can only add "+t+" posts per collection","error");else{var i=this.id,e=window.location.origin,s=i.split("/");i.slice(0,e.length)!==e&&(swal("Invalid URL","You can only add posts from this instance","error"),this.id=""),i.slice(0,e.length+3)===e+"/p/"&&6===s.length||(swal("Invalid URL","Invalid URL","error"),this.id=""),this.addToIds(s[5])}},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)+");background-size:cover;"},fetchRecentPosts:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/statuses",{params:{only_media:!0,min_id:1}}).then((function(i){t.recentPosts=i.data.filter((function(i){var e=t.posts.map((function(t){return t.id}));return"public"==i.visibility&&0==i.sensitive&&-1==e.indexOf(i.id)})).slice(0,3)}))},selectPost:function(t){this.selectedPost=t.id,this.id=t.url},publish:function(){0!=this.posts.length?axios.post("/api/local/collection/"+this.collectionId+"/publish",{title:this.collection.title,description:this.collection.description,visibility:this.collection.visibility}).then((function(t){window.location.href=t.data.url})).catch((function(t){swal("Something went wrong","There was a problem with your request, please try again later.","error")})):swal("Error","You cannot publish an empty collection")},save:function(){axios.post("/api/local/collection/"+this.collectionId,{title:this.collection.title,description:this.collection.description,visibility:this.collection.visibility}).then((function(t){swal("Saved!","You have successfully saved this collection.","success")}))},deleteCollection:function(){window.confirm("Are you sure you want to delete this collection?")&&axios.delete("/api/local/collection/"+this.collectionId).then((function(t){window.location.href="/"}))}}}},19860:(t,i,e)=>{Vue.component("collection-compose",e(95277).default)},95277:(t,i,e)=>{"use strict";e.r(i),e.d(i,{default:()=>a});var s=e(61639),o=e(57725),l={};for(const t in o)"default"!==t&&(l[t]=()=>o[t]);e.d(i,l);const a=(0,e(51900).default)(o.default,s.render,s.staticRenderFns,!1,null,null,null).exports},57725:(t,i,e)=>{"use strict";e.r(i),e.d(i,{default:()=>l});var s=e(30323),o={};for(const t in s)"default"!==t&&(o[t]=()=>s[t]);e.d(i,o);const l=s.default},61639:(t,i,e)=>{"use strict";e.r(i);var s=e(75695),o={};for(const t in s)"default"!==t&&(o[t]=()=>s[t]);e.d(i,o)},75695:(t,i,e)=>{"use strict";e.r(i),e.d(i,{render:()=>s,staticRenderFns:()=>o});var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"container"},[t.loaded?e("div",{staticClass:"row"},[t._m(0),t._v(" "),e("div",{staticClass:"col-12 col-md-4 pt-3"},[e("div",{staticClass:"card rounded-0 shadow-none border ",staticStyle:{"min-height":"440px"}},[e("div",{staticClass:"card-body"},[e("div",[e("form",[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"title"}},[t._v("Title")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.collection.title,expression:"collection.title"}],staticClass:"form-control",attrs:{type:"text",id:"title",placeholder:"Collection Title"},domProps:{value:t.collection.title},on:{input:function(i){i.target.composing||t.$set(t.collection,"title",i.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"description"}},[t._v("Description")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.collection.description,expression:"collection.description"}],staticClass:"form-control",attrs:{id:"description",placeholder:"Example description here",rows:"3"},domProps:{value:t.collection.description},on:{input:function(i){i.target.composing||t.$set(t.collection,"description",i.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"visibility"}},[t._v("Visibility")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.collection.visibility,expression:"collection.visibility"}],staticClass:"custom-select",on:{change:function(i){var e=Array.prototype.filter.call(i.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.collection,"visibility",i.target.multiple?e:e[0])}}},[e("option",{attrs:{value:"public"}},[t._v("Public")]),t._v(" "),e("option",{attrs:{value:"private"}},[t._v("Followers Only")]),t._v(" "),e("option",{attrs:{value:"draft"}},[t._v("Draft")])])])]),t._v(" "),e("hr"),t._v(" "),e("p",[t.posts.length>0&&"draft"!=t.collection.visibility?e("button",{staticClass:"btn btn-primary font-weight-bold btn-block",attrs:{type:"button"},on:{click:t.publish}},[t._v("Publish")]):e("button",{staticClass:"btn btn-primary font-weight-bold btn-block disabled",attrs:{type:"button",disabled:""}},[t._v("Publish")])]),t._v(" "),e("p",[e("button",{staticClass:"btn btn-outline-primary font-weight-bold btn-block",attrs:{type:"button"},on:{click:t.save}},[t._v("Save")])]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-secondary font-weight-bold btn-block",attrs:{type:"button"},on:{click:t.deleteCollection}},[t._v("Delete")])])])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-8 pt-3"},[e("div",[e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item"},[e("a",{class:["add"==t.tab?"nav-link font-weight-bold bg-white active":"nav-link font-weight-bold text-muted"],attrs:{href:"#"},on:{click:function(i){i.preventDefault(),t.tab="add"}}},[t._v("Add Posts")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{class:["all"==t.tab?"nav-link font-weight-bold bg-white active":"nav-link font-weight-bold text-muted"],attrs:{href:"#"},on:{click:function(i){i.preventDefault(),t.tab="all"}}},[t._v("Preview")])])])]),t._v(" "),e("div",{staticClass:"card rounded-0 shadow-none border border-top-0"},[e("div",{staticClass:"card-body",staticStyle:{height:"460px","overflow-y":"auto"}},["all"==t.tab?e("div",{staticClass:"row"},t._l(t.posts,(function(i,s){return e("div",{staticClass:"col-4 p-1"},[e("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:i.url}},[e("div",{staticClass:"square"},["photo:album"==i.pf_type?e("span",{staticClass:"float-right mr-3 post-icon"},[e("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==i.pf_type?e("span",{staticClass:"float-right mr-3 post-icon"},[e("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==i.pf_type?e("span",{staticClass:"float-right mr-3 post-icon"},[e("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),e("div",{staticClass:"square-content",style:t.previewBackground(i)}),t._v(" "),e("div",{staticClass:"info-overlay-text"},[e("h5",{staticClass:"text-white m-auto font-weight-bold"},[e("span",[e("span",{staticClass:"far fa-heart fa-lg p-2 d-flex-inline"}),t._v(" "),e("span",{staticClass:"d-flex-inline"},[t._v(t._s(i.favourites_count))])]),t._v(" "),e("span",[e("span",{staticClass:"fas fa-retweet fa-lg p-2 d-flex-inline"}),t._v(" "),e("span",{staticClass:"d-flex-inline"},[t._v(t._s(i.reblogs_count))])])])])])])])})),0):t._e(),t._v(" "),"add"==t.tab?e("div",[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"title"}},[t._v("Add Post by URL")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.id,expression:"id"}],staticClass:"form-control",attrs:{type:"text",placeholder:"https://pixelfed.dev/p/admin/1"},domProps:{value:t.id},on:{input:function(i){i.target.composing||(t.id=i.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-muted"},[t._v("Only local, public posts can be added")])]),t._v(" "),e("div",{staticClass:"form-group pt-4"},[e("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"title"}},[t._v("Add Recent Post")]),t._v(" "),e("div",t._l(t.recentPosts,(function(i,s){return e("div",{class:[t.selectedPost==i.id?"box-shadow border border-warning d-inline-block m-1":"d-inline-block m-1"],on:{click:function(e){return t.selectPost(i)}}},[e("div",{staticClass:"cursor-pointer",style:"width: 175px; height: 175px; "+t.previewBackground(i)})])})),0)]),t._v(" "),e("hr"),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold btn-block",attrs:{type:"button"},on:{click:t.addId}},[t._v("Add Post")])]):t._e(),t._v(" "),"order"==t.tab?e("div"):t._e()])])])]):t._e()])},o=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"col-12 col-md-6 offset-md-3 pt-5"},[e("div",{staticClass:"text-center pb-4"},[e("h1",[t._v("Create Collection")])])])}]}},t=>{t.O(0,[898],(()=>{return i=19860,t(t.s=i);var i}));t.O()}]); \ No newline at end of file +(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[597],{30323:(t,i,e)=>{"use strict";e.r(i),e.d(i,{default:()=>s});const s={props:["collection-id","profile-id"],data:function(){return{config:window.App.config,loaded:!1,limit:8,step:1,title:"",description:"",collection:{title:"",description:"",visibility:"draft"},id:"",posts:[],tab:"add",tabs:["all","add","order"],recentPosts:[],selectedPost:""}},beforeMount:function(){var t=this;axios.get("/api/local/collection/"+this.collectionId).then((function(i){t.collection=i.data}))},mounted:function(){this.fetchRecentPosts(),this.fetchItems(),axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(t){window._sharedData.curUser=t.data,window.App.util.navatar()}))},methods:{addToIds:function(t){var i=this;axios.post("/api/local/collection/item",{collection_id:this.collectionId,post_id:t}).then((function(t){i.fetchItems(),i.fetchRecentPosts(),i.tab="all",i.id=""})).catch((function(t){swal("Invalid URL","The post you entered was invalid","error"),i.id=""}))},fetchItems:function(){var t=this;axios.get("/api/local/collection/items/"+this.collectionId).then((function(i){t.posts=i.data,t.loaded=!0}))},addId:function(){var t=this.config.uploader.max_collection_length;if(this.posts.length>=t)swal("Error","You can only add "+t+" posts per collection","error");else{var i=this.id,e=window.location.origin,s=i.split("/");if(i.slice(0,e.length)!==e&&(swal("Invalid URL","You can only add posts from this instance","error"),this.id=""),i.includes("/i/web/post/")){var o=s[s.length-1];return console.log("adding "+o),void this.addToIds(o)}swal("Invalid URL","Invalid URL","error"),this.id=""}},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)+");background-size:cover;"},fetchRecentPosts:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/statuses",{params:{only_media:!0,min_id:1}}).then((function(i){t.recentPosts=i.data.filter((function(i){var e=t.posts.map((function(t){return t.id}));return"public"==i.visibility&&0==i.sensitive&&-1==e.indexOf(i.id)})).slice(0,3)}))},selectPost:function(t){this.selectedPost=t.id,this.id=t.url},publish:function(){0!=this.posts.length?axios.post("/api/local/collection/"+this.collectionId+"/publish",{title:this.collection.title,description:this.collection.description,visibility:this.collection.visibility}).then((function(t){window.location.href=t.data.url})).catch((function(t){swal("Something went wrong","There was a problem with your request, please try again later.","error")})):swal("Error","You cannot publish an empty collection")},save:function(){axios.post("/api/local/collection/"+this.collectionId,{title:this.collection.title,description:this.collection.description,visibility:this.collection.visibility}).then((function(t){swal("Saved!","You have successfully saved this collection.","success")}))},deleteCollection:function(){window.confirm("Are you sure you want to delete this collection?")&&axios.delete("/api/local/collection/"+this.collectionId).then((function(t){window.location.href="/"}))}}}},19860:(t,i,e)=>{Vue.component("collection-compose",e(95277).default)},95277:(t,i,e)=>{"use strict";e.r(i),e.d(i,{default:()=>a});var s=e(82972),o=e(57725),l={};for(const t in o)"default"!==t&&(l[t]=()=>o[t]);e.d(i,l);const a=(0,e(51900).default)(o.default,s.render,s.staticRenderFns,!1,null,null,null).exports},57725:(t,i,e)=>{"use strict";e.r(i),e.d(i,{default:()=>l});var s=e(30323),o={};for(const t in s)"default"!==t&&(o[t]=()=>s[t]);e.d(i,o);const l=s.default},82972:(t,i,e)=>{"use strict";e.r(i);var s=e(99264),o={};for(const t in s)"default"!==t&&(o[t]=()=>s[t]);e.d(i,o)},99264:(t,i,e)=>{"use strict";e.r(i),e.d(i,{render:()=>s,staticRenderFns:()=>o});var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"container"},[t.loaded?e("div",{staticClass:"row"},[t._m(0),t._v(" "),e("div",{staticClass:"col-12 col-md-4 pt-3"},[e("div",{staticClass:"card rounded-0 shadow-none border ",staticStyle:{"min-height":"440px"}},[e("div",{staticClass:"card-body"},[e("div",[e("form",[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"title"}},[t._v("Title")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.collection.title,expression:"collection.title"}],staticClass:"form-control",attrs:{type:"text",id:"title",placeholder:"Collection Title"},domProps:{value:t.collection.title},on:{input:function(i){i.target.composing||t.$set(t.collection,"title",i.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"description"}},[t._v("Description")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.collection.description,expression:"collection.description"}],staticClass:"form-control",attrs:{id:"description",placeholder:"Example description here",rows:"3"},domProps:{value:t.collection.description},on:{input:function(i){i.target.composing||t.$set(t.collection,"description",i.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"visibility"}},[t._v("Visibility")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.collection.visibility,expression:"collection.visibility"}],staticClass:"custom-select",on:{change:function(i){var e=Array.prototype.filter.call(i.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.collection,"visibility",i.target.multiple?e:e[0])}}},[e("option",{attrs:{value:"public"}},[t._v("Public")]),t._v(" "),e("option",{attrs:{value:"private"}},[t._v("Followers Only")]),t._v(" "),e("option",{attrs:{value:"draft"}},[t._v("Draft")])])])]),t._v(" "),e("hr"),t._v(" "),e("p",[t.posts.length>0&&"draft"!=t.collection.visibility?e("button",{staticClass:"btn btn-primary font-weight-bold btn-block",attrs:{type:"button"},on:{click:t.publish}},[t._v("Publish")]):e("button",{staticClass:"btn btn-primary font-weight-bold btn-block disabled",attrs:{type:"button",disabled:""}},[t._v("Publish")])]),t._v(" "),e("p",[e("button",{staticClass:"btn btn-outline-primary font-weight-bold btn-block",attrs:{type:"button"},on:{click:t.save}},[t._v("Save")])]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-secondary font-weight-bold btn-block",attrs:{type:"button"},on:{click:t.deleteCollection}},[t._v("Delete")])])])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-8 pt-3"},[e("div",[e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item"},[e("a",{class:["add"==t.tab?"nav-link font-weight-bold bg-white active":"nav-link font-weight-bold text-muted"],attrs:{href:"#"},on:{click:function(i){i.preventDefault(),t.tab="add"}}},[t._v("Add Posts")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{class:["all"==t.tab?"nav-link font-weight-bold bg-white active":"nav-link font-weight-bold text-muted"],attrs:{href:"#"},on:{click:function(i){i.preventDefault(),t.tab="all"}}},[t._v("Preview")])])])]),t._v(" "),e("div",{staticClass:"card rounded-0 shadow-none border border-top-0"},[e("div",{staticClass:"card-body",staticStyle:{height:"460px","overflow-y":"auto"}},["all"==t.tab?e("div",{staticClass:"row"},t._l(t.posts,(function(i,s){return e("div",{staticClass:"col-4 p-1"},[e("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:i.url}},[e("div",{staticClass:"square"},["photo:album"==i.pf_type?e("span",{staticClass:"float-right mr-3 post-icon"},[e("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==i.pf_type?e("span",{staticClass:"float-right mr-3 post-icon"},[e("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==i.pf_type?e("span",{staticClass:"float-right mr-3 post-icon"},[e("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),e("div",{staticClass:"square-content",style:t.previewBackground(i)}),t._v(" "),e("div",{staticClass:"info-overlay-text"},[e("h5",{staticClass:"text-white m-auto font-weight-bold"},[e("span",[e("span",{staticClass:"far fa-heart fa-lg p-2 d-flex-inline"}),t._v(" "),e("span",{staticClass:"d-flex-inline"},[t._v(t._s(i.favourites_count))])]),t._v(" "),e("span",[e("span",{staticClass:"fas fa-retweet fa-lg p-2 d-flex-inline"}),t._v(" "),e("span",{staticClass:"d-flex-inline"},[t._v(t._s(i.reblogs_count))])])])])])])])})),0):t._e(),t._v(" "),"add"==t.tab?e("div",[e("div",{staticClass:"form-group"},[e("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"title"}},[t._v("Add Post by URL")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.id,expression:"id"}],staticClass:"form-control",attrs:{type:"text",placeholder:"https://pixelfed.dev/p/admin/1"},domProps:{value:t.id},on:{input:function(i){i.target.composing||(t.id=i.target.value)}}}),t._v(" "),e("p",{staticClass:"help-text small text-muted"},[t._v("Only local, public posts can be added")])]),t._v(" "),e("div",{staticClass:"form-group pt-4"},[e("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"title"}},[t._v("Add Recent Post")]),t._v(" "),e("div",t._l(t.recentPosts,(function(i,s){return e("div",{class:[t.selectedPost==i.id?"box-shadow border border-warning d-inline-block m-1":"d-inline-block m-1"],on:{click:function(e){return t.selectPost(i)}}},[e("div",{staticClass:"cursor-pointer",style:"width: 175px; height: 175px; "+t.previewBackground(i)})])})),0)]),t._v(" "),e("hr"),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold btn-block",attrs:{type:"button"},on:{click:t.addId}},[t._v("Add Post")])]):t._e(),t._v(" "),"order"==t.tab?e("div"):t._e()])])])]):t._e()])},o=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"col-12 col-md-6 offset-md-3 pt-5"},[e("div",{staticClass:"text-center pb-4"},[e("h1",[t._v("Create Collection")])])])}]}},t=>{t.O(0,[898],(()=>{return i=19860,t(t.s=i);var i}));t.O()}]); \ No newline at end of file diff --git a/public/js/collections.js b/public/js/collections.js index 7f94cc972..1844df2a0 100644 --- a/public/js/collections.js +++ b/public/js/collections.js @@ -1 +1 @@ -(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[33],{98379:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>n});i(82364);function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))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 i=0,o=new Array(e);i9&&(t.canLoadMore=!0),t.fetchCurrentUser()}))},fetchCurrentUser:function(){var t=this;1==document.querySelectorAll("body")[0].classList.contains("loggedIn")?axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.user=e.data,t.owner=t.user.id==t.profileId,window._sharedData.curUser=e.data,window.App.util.navatar(),t.fetchItems()})):this.fetchItems()},fetchItems:function(){var t=this;axios.get("/api/local/collection/items/"+this.collectionId,{params:{page:this.page}}).then((function(e){var i;if(0==e.data.length)return console.log("no items found"),t.loaded=!0,t.isIntersecting=!1,void(t.canLoadMore=!1);var s=e.data.filter((function(e){return-1==t.ids.indexOf(e.id)}));(i=t.posts).push.apply(i,o(s)),t.ids=t.posts.map((function(t){return t.id})),t.loaded=!0,t.isIntersecting=!1,0==s.length&&(t.canLoadMore=!1)}))},previewUrl:function(t){return t&&t.sensitive?"/storage/no-preview.png?v="+(new Date).getTime():t.media_attachments[0].url},previewBackground:function(t){return"background-image: url("+this.previewUrl(t)+");"},addToCollection:function(){var t=this;this.loadingPostList=!0,0==this.postsList.length?axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/statuses",{params:{min_id:1,limit:24}}).then((function(e){t.postsList=e.data.filter((function(e){return-1==t.ids.indexOf(e.id)})).splice(0,9),t.loadingPostList=!1,t.$refs.addPhotoModal.show()})).catch((function(e){t.loadingPostList=!1,swal("An Error Occured","We cannot process your request at this time, please try again later.","error")})):(this.$refs.addPhotoModal.show(),this.loadingPostList=!1)},pushId:function(){var t=this,e=this.config.uploader.max_collection_length,i=this;if(this.posts.length>=e)swal("Error","You can only add "+e+" posts per collection","error");else{var s=this.photoId,n=window.location.origin,a=s.split("/");s.slice(0,n.length)!==n&&(swal("Invalid URL","You can only add posts from this instance","error"),this.photoId=""),s.slice(0,n.length+3)===n+"/p/"&&6===a.length||(swal("Invalid URL","Invalid URL","error"),this.photoId=""),axios.post("/api/local/collection/item",{collection_id:this.collectionId,post_id:a[5]}).then((function(t){var e;(e=i.ids).push.apply(e,o(a[5]))})).catch((function(e){swal("Invalid URL","The post you entered was invalid","error"),t.photoId=""})),i.$refs.addPhotoModal.hide()}},editCollection:function(){this.$refs.editModal.show()},deleteCollection:function(){0!=this.owner&&(window.confirm("Are you sure you want to delete this collection?")&&axios.delete("/api/local/collection/"+this.collectionId).then((function(t){window.location.href="/"})))},publishCollection:function(){0!=this.owner&&(window.confirm("Are you sure you want to publish this collection?")&&axios.post("/api/local/collection/"+this.collectionId+"/publish",{title:this.title,description:this.description,visibility:this.visibility}).then((function(t){console.log(t.data)})))},updateCollection:function(){var t=this;this.closeModals(),axios.post("/api/local/collection/"+this.collectionId,{title:this.title,description:this.description,visibility:this.visibility}).then((function(e){t.collection=e.data}))},showEditPhotosModal:function(){this.$refs.editModal.hide(),this.$refs.editPhotosModal.show()},markPhotoForDeletion:function(t){-1==this.markedForDeletion.indexOf(t)?this.markedForDeletion.push(t):this.markedForDeletion=this.markedForDeletion.filter((function(e){return e!=t}))},confirmDeletion:function(){var t=this,e=this;window.confirm("Are you sure you want to delete this?")&&(this.markedForDeletion.forEach((function(i){axios.delete("/api/local/collection/item",{params:{collection_id:e.collectionId,post_id:i}}).then((function(o){e.removeItem(i),t.collection.post_count=t.collection.post_count-1,t.closeModals()})).catch((function(t){swal("Oops!","An error occured with your request, please try again later.","error")}))})),this.markedForDeletion=[])},removeItem:function(t){this.posts=this.posts.filter((function(e){return e.id!=t}))},addRecentId:function(t){var e=this;axios.post("/api/local/collection/item",{collection_id:this.collectionId,post_id:t.id}).then((function(t){e.closeModals(),e.posts.push(t.data),e.collection.post_count++})).catch((function(t){swal("Oops!","An error occured, please try selecting another post.","error"),e.photoId=""}))},timeago:function(t){return App.util.format.timeAgo(t)},closeModals:function(){this.$refs.editModal.hide(),this.$refs.addPhotoModal.hide(),this.$refs.editPhotosModal.hide()},getPreviewUrl:function(t){if(!t.media_attachments||!t.media_attachments.length)return"/storage/no-preview.png";var e=t.media_attachments[0];return e.preview_url.endsWith("storage/no-preview.png")?"image"===e.type?e.url:"/storage/no-preview.png":e.preview_url}}}},55386:(t,e,i)=>{Vue.component("collection-component",i(44051).default)},1023:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>n});var o=i(23645),s=i.n(o)()((function(t){return t[1]}));s.push([t.id,".dims[data-v-84d54b88]{background:rgba(0,0,0,.68);bottom:0;left:0;position:absolute;right:0;top:0;z-index:300}.scrollbar-hidden[data-v-84d54b88]::-webkit-scrollbar{display:none}.delete-border[data-v-84d54b88]{border:4px solid red}.delete-border .square-content[data-v-84d54b88]{background-blend-mode:screen;background-color:red}.info-overlay-text-field[data-v-84d54b88]{font-size:13.5px;margin-bottom:2px}@media(min-width:768px){.info-overlay-text-field[data-v-84d54b88]{font-size:20px;margin-bottom:15px}}.feed .card.info-overlay[data-v-84d54b88]{margin-bottom:2rem}",""]);const n=s},49490:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>l});var o=i(93379),s=i.n(o),n=i(1023),a={insert:"head",singleton:!1};s()(n.default,a);const l=n.default.locals||{}},44051:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});var o=i(46381),s=i(33195),n={};for(const t in s)"default"!==t&&(n[t]=()=>s[t]);i.d(e,n);i(70249);const a=(0,i(51900).default)(s.default,o.render,o.staticRenderFns,!1,null,"84d54b88",null).exports},33195:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>n});var o=i(98379),s={};for(const t in o)"default"!==t&&(s[t]=()=>o[t]);i.d(e,s);const n=o.default},70249:(t,e,i)=>{"use strict";i.r(e);var o=i(49490),s={};for(const t in o)"default"!==t&&(s[t]=()=>o[t]);i.d(e,s)},46381:(t,e,i)=>{"use strict";i.r(e);var o=i(24271),s={};for(const t in o)"default"!==t&&(s[t]=()=>o[t]);i.d(e,s)},24271:(t,e,i)=>{"use strict";i.r(e),i.d(e,{render:()=>o,staticRenderFns:()=>s});var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"w-100 h-100"},[t.loaded?t._e():i("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[i("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]),t._v(" "),t.loaded?i("div",{staticClass:"row mt-3"},[i("div",{staticClass:"col-12 p-0 mb-3"},[t.owner&&!t.collection.published_at?i("div",[t._m(0)]):t._e()]),t._v(" "),i("div",{staticClass:"col-12 p-0 mb-3"},[i("picture",{staticClass:"d-flex align-items-center justify-content-center"},[i("div",{staticClass:"dims"}),t._v(" "),i("div",{staticClass:"text-white",staticStyle:{"z-index":"500",position:"absolute"}},[i("p",{staticClass:"display-4 text-center pt-3"},[t._v(t._s(t.title||"Untitled Collection"))]),t._v(" "),i("p",{staticClass:"lead text-center mb-3"},[t._v(t._s(t.description))]),t._v(" "),i("p",{staticClass:"text-center"},[t.owner&&"public"!=t.collection.visibility?i("span",["draft"==t.collection.visibility?i("span",{staticClass:"btn btn-outline-light btn-sm text-capitalize py-0",staticStyle:{"font-size":"10px"}},[i("i",{staticClass:"far fa-lock"}),t._v(" Draft\n\t\t\t\t\t\t\t")]):"private"==t.collection.visibility?i("span",{staticClass:"btn btn-outline-light btn-sm text-capitalize py-0",staticStyle:{"font-size":"10px"}},[t._v("\n\t\t\t\t\t\t\t\tFollowers Only\n\t\t\t\t\t\t\t")]):t._e(),t._v(" "),i("span",[t._v("·")])]):t._e(),t._v(" "),i("span",[t._v(t._s(t.collection.post_count)+" photos")]),t._v(" "),i("span",[t._v("·")]),t._v(" "),i("span",[t._v("by "),i("a",{staticClass:"font-weight-bold text-white",attrs:{href:"/"+t.profileUsername}},[t._v(t._s(t.profileUsername))])])]),t._v(" "),1==t.owner?i("p",{staticClass:"pt-3 text-center"},[i("span",[i("button",{staticClass:"btn btn-outline-light btn-sm",attrs:{onclick:"this.blur();"},on:{click:function(e){return e.preventDefault(),t.addToCollection.apply(null,arguments)}}},[0==t.loadingPostList?i("span",[t._v("Add Photo")]):i("span",{staticClass:"px-4"},[t._m(1)])]),t._v("\n\t\t\t\t\t\t\t    \n\t\t\t\t\t\t\t"),i("button",{staticClass:"btn btn-outline-light btn-sm",attrs:{onclick:"this.blur();"},on:{click:function(e){return e.preventDefault(),t.editCollection.apply(null,arguments)}}},[t._v("Edit")]),t._v("\n\t\t\t\t\t\t\t    \n\t\t\t\t\t\t\t"),i("button",{staticClass:"btn btn-outline-light btn-sm",on:{click:function(e){return e.preventDefault(),t.deleteCollection.apply(null,arguments)}}},[t._v("Delete")])])]):t._e()]),t._v(" "),t.posts&&t.posts.length?i("img",{staticStyle:{width:"100%",height:"400px","object-fit":"cover"},attrs:{src:t.previewUrl(t.posts[0]),alt:""}}):i("div",{staticClass:"bg-info",staticStyle:{width:"100%",height:"400px"}})])]),t._v(" "),i("div",{staticClass:"col-12 p-0"},[t.posts&&t.posts.length>0?i("div",{staticClass:"row px-3 px-md-0"},[t._l(t.posts,(function(e,o){return i("div",{staticClass:"col-6 col-md-4 feed"},[e.hasOwnProperty("pf_type")&&"video"==e.pf_type?i("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.statusUrl(e)}},[i("div",{staticClass:"square"},[i("div",{staticClass:"square-content"},[t._m(2,!0),t._v(" "),i("blur-hash-canvas",{staticClass:"rounded",attrs:{width:"32",height:"32",hash:e.media_attachments[0].blurhash}})],1)])]):e.sensitive?i("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.statusUrl(e)}},[i("div",{staticClass:"square"},[i("div",{staticClass:"square-content"},[t._m(3,!0),t._v(" "),i("blur-hash-canvas",{staticClass:"rounded",attrs:{width:"32",height:"32",hash:e.media_attachments[0].blurhash}})],1)])]):i("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.statusUrl(e)}},[i("div",{staticClass:"square"},[i("div",{staticClass:"square-content"},[i("blur-hash-image",{staticClass:"rounded",attrs:{width:"32",height:"32",hash:e.media_attachments[0].blurhash,src:t.previewUrl(e)}})],1)])])])})),t._v(" "),t.canLoadMore?i("div",{staticClass:"col-12"},[i("intersect",{on:{enter:t.enterIntersect}},[i("div",{staticClass:"card card-body shadow-none border"},[i("div",{staticClass:"d-flex justify-content-center align-items-center flex-column"},[i("b-spinner",{attrs:{variant:"muted"}}),t._v(" "),i("p",{staticClass:"text-lighter small mt-2 mb-0"},[t._v("Loading more...")])],1)])])],1):t._e()],2):t._e()])]):t._e(),t._v(" "),i("b-modal",{ref:"editModal",attrs:{id:"edit-modal","hide-footer":"",centered:"",title:"Edit Collection","body-class":""}},[i("form",[i("div",{staticClass:"form-group"},[i("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"title"}},[t._v("Title")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],staticClass:"form-control",attrs:{type:"text",id:"title",placeholder:"Untitled Collection"},domProps:{value:t.title},on:{input:function(e){e.target.composing||(t.title=e.target.value)}}})]),t._v(" "),i("div",{staticClass:"form-group"},[i("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"description"}},[t._v("Description")]),t._v(" "),i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.description,expression:"description"}],staticClass:"form-control",attrs:{id:"description",placeholder:"Add a description here ...",rows:"3"},domProps:{value:t.description},on:{input:function(e){e.target.composing||(t.description=e.target.value)}}})]),t._v(" "),i("div",{staticClass:"form-group"},[i("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"visibility"}},[t._v("Visibility")]),t._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.visibility,expression:"visibility"}],staticClass:"custom-select",on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.visibility=e.target.multiple?i:i[0]}}},[i("option",{attrs:{value:"public"}},[t._v("Public")]),t._v(" "),i("option",{attrs:{value:"private"}},[t._v("Followers Only")]),t._v(" "),i("option",{attrs:{value:"draft"}},[t._v("Draft")])])]),t._v(" "),i("div",{staticClass:"d-flex justify-content-between align-items-center pt-3"},[i("a",{staticClass:"text-primary font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showEditPhotosModal.apply(null,arguments)}}},[t._v("\n\t\t\t\t\tEdit Photos\n\t\t\t\t")]),t._v(" "),t.collection.published_at?i("div",[i("button",{staticClass:"btn btn-primary btn-sm py-1 font-weight-bold px-3 float-right",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.updateCollection.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\tSave\n\t\t\t\t\t")])]):i("div",{staticClass:"float-right"},[i("button",{staticClass:"btn btn-outline-primary btn-sm py-1 font-weight-bold px-3",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.publishCollection.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\tPublish\n\t\t\t\t\t")]),t._v(" "),i("button",{staticClass:"btn btn-primary btn-sm py-1 font-weight-bold px-3",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.updateCollection.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\tSave\n\t\t\t\t\t")])])])])]),t._v(" "),i("b-modal",{ref:"addPhotoModal",attrs:{id:"add-photo-modal","hide-footer":"",centered:"",title:"Add Photo","body-class":"m-3"}},[i("div",{staticClass:"form-group"},[i("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"title"}},[t._v("Add Recent Post")]),t._v(" "),t.postsList.length>0?i("div",{staticClass:"row m-1"},[t._l(t.postsList,(function(e,o){return i("div",{key:"postList-"+o,staticClass:"col-4 p-1 cursor-pointer",on:{click:function(i){return t.addRecentId(e)}}},[i("div",{staticClass:"square border"},[i("div",{staticClass:"square-content",style:"background-image: url("+t.getPreviewUrl(e)+");"})])])})),t._v(" "),i("div",{staticClass:"col-12"},[i("hr")])],2):t._e()]),t._v(" "),i("form",[i("div",{staticClass:"form-group"},[i("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"title"}},[t._v("Add Post by URL")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.photoId,expression:"photoId"}],staticClass:"form-control",attrs:{type:"text",placeholder:"https://pixelfed.dev/p/admin/1"},domProps:{value:t.photoId},on:{input:function(e){e.target.composing||(t.photoId=e.target.value)}}}),t._v(" "),i("p",{staticClass:"help-text small text-muted"},[t._v("Only local, public posts can be added")])]),t._v(" "),i("button",{staticClass:"btn btn-primary btn-sm py-1 font-weight-bold px-3 float-right",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.pushId.apply(null,arguments)}}},[t.addingPostToCollection?i("span",{staticClass:"px-4"},[i("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[i("span",{staticClass:"sr-only"},[t._v("Loading...")])])]):i("span",[t._v("\n\t\t\t\t\tAdd Photo\n\t\t\t\t")])])])]),t._v(" "),i("b-modal",{ref:"editPhotosModal",attrs:{id:"edit-photos-modal","hide-footer":"",centered:"",title:"Edit Collection Photos","body-class":"m-3"}},[i("div",{staticClass:"form-group"},[i("p",{staticClass:"font-weight-bold text-dark text-center"},[t._v("Select a Photo to Delete")]),t._v(" "),t.posts.length>0?i("div",{staticClass:"row m-1 scrollbar-hidden",staticStyle:{"max-height":"350px","overflow-y":"auto"}},t._l(t.posts,(function(e,o){return i("div",{key:"plm-"+o,staticClass:"col-4 p-1 cursor-pointer"},[i("div",{class:[-1==t.markedForDeletion.indexOf(e.id)?"square":"square delete-border"],on:{click:function(i){return t.markPhotoForDeletion(e.id)}}},[i("div",{staticClass:"square-content",style:"background-image: url("+e.media_attachments[0].url+");"})])])})),0):t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.markedForDeletion.length>0,expression:"markedForDeletion.length > 0"}]},[i("button",{staticClass:"btn btn-primary font-weight-bold py-0 btn-block mb-0 mt-4",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmDeletion.apply(null,arguments)}}},[t._v("Delete "+t._s(t.markedForDeletion.length)+" "+t._s(1==t.markedForDeletion.length?"photo":"photos"))])])])])],1)},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"alert alert-danger d-flex justify-content-center"},[i("div",{staticClass:"media align-items-center"},[i("i",{staticClass:"far fa-exclamation-triangle fa-3x mr-3"}),t._v(" "),i("div",{staticClass:"media-body"},[i("p",{staticClass:"font-weight-bold mb-0"},[t._v("\n\t\t\t\t\t\t\t\tThis collection is unpublished.\n\t\t\t\t\t\t\t")]),t._v(" "),i("p",{staticClass:"small mb-0"},[t._v("\n\t\t\t\t\t\t\t\tThis collection is not visible to anyone else until you publish it. "),i("br"),t._v("\n\t\t\t\t\t\t\t\tTo publish, click on the "),i("strong",[t._v("Edit")]),t._v(" button and then click on the "),i("strong",[t._v("Publish")]),t._v(" button.\n\t\t\t\t\t\t\t")])])])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[i("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"info-overlay-text-label rounded"},[e("h5",{staticClass:"text-white m-auto font-weight-bold"},[e("span",[e("span",{staticClass:"far fa-video fa-2x p-2 d-flex-inline"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"info-overlay-text-label rounded"},[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"})])])])}]}},t=>{t.O(0,[898],(()=>{return e=55386,t(t.s=e);var e}));t.O()}]); \ No newline at end of file +(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[33],{98379:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>n});i(82364);function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))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 i=0,o=new Array(e);i9&&(t.canLoadMore=!0),t.fetchCurrentUser()}))},fetchCurrentUser:function(){var t=this;1==document.querySelectorAll("body")[0].classList.contains("loggedIn")?axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.user=e.data,t.owner=t.user.id==t.profileId,window._sharedData.curUser=e.data,window.App.util.navatar(),t.fetchItems()})):this.fetchItems()},fetchItems:function(){var t=this;axios.get("/api/local/collection/items/"+this.collectionId,{params:{page:this.page}}).then((function(e){var i;if(0==e.data.length)return console.log("no items found"),t.loaded=!0,t.isIntersecting=!1,void(t.canLoadMore=!1);var s=e.data.filter((function(e){return-1==t.ids.indexOf(e.id)}));(i=t.posts).push.apply(i,o(s)),t.ids=t.posts.map((function(t){return t.id})),t.loaded=!0,t.isIntersecting=!1,0==s.length&&(t.canLoadMore=!1)}))},previewUrl:function(t){return t&&t.sensitive?"/storage/no-preview.png?v="+(new Date).getTime():t.media_attachments[0].url},previewBackground:function(t){return"background-image: url("+this.previewUrl(t)+");"},addToCollection:function(){var t=this;this.loadingPostList=!0,0==this.postsList.length?axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/statuses",{params:{min_id:1,limit:24}}).then((function(e){t.postsList=e.data.filter((function(e){return-1==t.ids.indexOf(e.id)})).splice(0,9),t.loadingPostList=!1,t.$refs.addPhotoModal.show()})).catch((function(e){t.loadingPostList=!1,swal("An Error Occured","We cannot process your request at this time, please try again later.","error")})):(this.$refs.addPhotoModal.show(),this.loadingPostList=!1)},pushId:function(){var t=this,e=this.config.uploader.max_collection_length,i=this;if(this.posts.length>=e)swal("Error","You can only add "+e+" posts per collection","error");else{var s=this.photoId,n=window.location.origin,a=s.split("/");if(s.slice(0,n.length)!==n&&(swal("Invalid URL","You can only add posts from this instance","error"),this.photoId=""),!s.includes("/i/web/post/")&&!s.includes("/p/"))return swal("Invalid URL","Invalid URL","error"),void(this.photoId="");var l=a[a.length-1].split("?")[0];axios.post("/api/local/collection/item",{collection_id:this.collectionId,post_id:l}).then((function(t){var e;(e=i.ids).push.apply(e,o(l)),i.posts.push(t.data),i.collection.post_count++,i.id=""})).catch((function(e){swal("Invalid URL","The post you entered was invalid","error"),t.photoId=""})),i.$refs.addPhotoModal.hide()}},editCollection:function(){this.$refs.editModal.show()},deleteCollection:function(){0!=this.owner&&(window.confirm("Are you sure you want to delete this collection?")&&axios.delete("/api/local/collection/"+this.collectionId).then((function(t){window.location.href="/"})))},publishCollection:function(){0!=this.owner&&(window.confirm("Are you sure you want to publish this collection?")&&axios.post("/api/local/collection/"+this.collectionId+"/publish",{title:this.title,description:this.description,visibility:this.visibility}).then((function(t){console.log(t.data)})))},updateCollection:function(){var t=this;this.closeModals(),axios.post("/api/local/collection/"+this.collectionId,{title:this.title,description:this.description,visibility:this.visibility}).then((function(e){t.collection=e.data}))},showEditPhotosModal:function(){this.$refs.editModal.hide(),this.$refs.editPhotosModal.show()},markPhotoForDeletion:function(t){-1==this.markedForDeletion.indexOf(t)?this.markedForDeletion.push(t):this.markedForDeletion=this.markedForDeletion.filter((function(e){return e!=t}))},confirmDeletion:function(){var t=this,e=this;window.confirm("Are you sure you want to delete this?")&&(this.markedForDeletion.forEach((function(i){axios.delete("/api/local/collection/item",{params:{collection_id:e.collectionId,post_id:i}}).then((function(o){e.removeItem(i),t.collection.post_count=t.collection.post_count-1,t.closeModals()})).catch((function(t){swal("Oops!","An error occured with your request, please try again later.","error")}))})),this.markedForDeletion=[])},removeItem:function(t){this.posts=this.posts.filter((function(e){return e.id!=t}))},addRecentId:function(t){var e=this;axios.post("/api/local/collection/item",{collection_id:this.collectionId,post_id:t.id}).then((function(t){e.closeModals(),e.posts.push(t.data),e.collection.post_count++})).catch((function(t){swal("Oops!","An error occured, please try selecting another post.","error"),e.photoId=""}))},timeago:function(t){return App.util.format.timeAgo(t)},closeModals:function(){this.$refs.editModal.hide(),this.$refs.addPhotoModal.hide(),this.$refs.editPhotosModal.hide()},getPreviewUrl:function(t){if(!t.media_attachments||!t.media_attachments.length)return"/storage/no-preview.png";var e=t.media_attachments[0];return e.preview_url.endsWith("storage/no-preview.png")?"image"===e.type?e.url:"/storage/no-preview.png":e.preview_url}}}},55386:(t,e,i)=>{Vue.component("collection-component",i(44051).default)},81179:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>n});var o=i(23645),s=i.n(o)()((function(t){return t[1]}));s.push([t.id,".dims[data-v-131480fb]{background:rgba(0,0,0,.68);bottom:0;left:0;position:absolute;right:0;top:0;z-index:300}.scrollbar-hidden[data-v-131480fb]::-webkit-scrollbar{display:none}.delete-border[data-v-131480fb]{border:4px solid red}.delete-border .square-content[data-v-131480fb]{background-blend-mode:screen;background-color:red}.info-overlay-text-field[data-v-131480fb]{font-size:13.5px;margin-bottom:2px}@media(min-width:768px){.info-overlay-text-field[data-v-131480fb]{font-size:20px;margin-bottom:15px}}.feed .card.info-overlay[data-v-131480fb]{margin-bottom:2rem}",""]);const n=s},61675:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>l});var o=i(93379),s=i.n(o),n=i(81179),a={insert:"head",singleton:!1};s()(n.default,a);const l=n.default.locals||{}},44051:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});var o=i(59193),s=i(33195),n={};for(const t in s)"default"!==t&&(n[t]=()=>s[t]);i.d(e,n);i(7734);const a=(0,i(51900).default)(s.default,o.render,o.staticRenderFns,!1,null,"131480fb",null).exports},33195:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>n});var o=i(98379),s={};for(const t in o)"default"!==t&&(s[t]=()=>o[t]);i.d(e,s);const n=o.default},7734:(t,e,i)=>{"use strict";i.r(e);var o=i(61675),s={};for(const t in o)"default"!==t&&(s[t]=()=>o[t]);i.d(e,s)},59193:(t,e,i)=>{"use strict";i.r(e);var o=i(19827),s={};for(const t in o)"default"!==t&&(s[t]=()=>o[t]);i.d(e,s)},19827:(t,e,i)=>{"use strict";i.r(e),i.d(e,{render:()=>o,staticRenderFns:()=>s});var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"w-100 h-100"},[t.loaded?t._e():i("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[i("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]),t._v(" "),t.loaded?i("div",{staticClass:"row mt-3"},[i("div",{staticClass:"col-12 p-0 mb-3"},[t.owner&&!t.collection.published_at?i("div",[t._m(0)]):t._e()]),t._v(" "),i("div",{staticClass:"col-12 p-0 mb-3"},[i("picture",{staticClass:"d-flex align-items-center justify-content-center"},[i("div",{staticClass:"dims"}),t._v(" "),i("div",{staticClass:"text-white",staticStyle:{"z-index":"500",position:"absolute"}},[i("p",{staticClass:"display-4 text-center pt-3"},[t._v(t._s(t.title||"Untitled Collection"))]),t._v(" "),i("p",{staticClass:"lead text-center mb-3"},[t._v(t._s(t.description))]),t._v(" "),i("p",{staticClass:"text-center"},[t.owner&&"public"!=t.collection.visibility?i("span",["draft"==t.collection.visibility?i("span",{staticClass:"btn btn-outline-light btn-sm text-capitalize py-0",staticStyle:{"font-size":"10px"}},[i("i",{staticClass:"far fa-lock"}),t._v(" Draft\n\t\t\t\t\t\t\t")]):"private"==t.collection.visibility?i("span",{staticClass:"btn btn-outline-light btn-sm text-capitalize py-0",staticStyle:{"font-size":"10px"}},[t._v("\n\t\t\t\t\t\t\t\tFollowers Only\n\t\t\t\t\t\t\t")]):t._e(),t._v(" "),i("span",[t._v("·")])]):t._e(),t._v(" "),i("span",[t._v(t._s(t.collection.post_count)+" photos")]),t._v(" "),i("span",[t._v("·")]),t._v(" "),i("span",[t._v("by "),i("a",{staticClass:"font-weight-bold text-white",attrs:{href:"/"+t.profileUsername}},[t._v(t._s(t.profileUsername))])])]),t._v(" "),1==t.owner?i("p",{staticClass:"pt-3 text-center"},[i("span",[i("button",{staticClass:"btn btn-outline-light btn-sm",attrs:{onclick:"this.blur();"},on:{click:function(e){return e.preventDefault(),t.addToCollection.apply(null,arguments)}}},[0==t.loadingPostList?i("span",[t._v("Add Photo")]):i("span",{staticClass:"px-4"},[t._m(1)])]),t._v("\n\t\t\t\t\t\t\t    \n\t\t\t\t\t\t\t"),i("button",{staticClass:"btn btn-outline-light btn-sm",attrs:{onclick:"this.blur();"},on:{click:function(e){return e.preventDefault(),t.editCollection.apply(null,arguments)}}},[t._v("Edit")]),t._v("\n\t\t\t\t\t\t\t    \n\t\t\t\t\t\t\t"),i("button",{staticClass:"btn btn-outline-light btn-sm",on:{click:function(e){return e.preventDefault(),t.deleteCollection.apply(null,arguments)}}},[t._v("Delete")])])]):t._e()]),t._v(" "),t.posts&&t.posts.length?i("img",{staticStyle:{width:"100%",height:"400px","object-fit":"cover"},attrs:{src:t.previewUrl(t.posts[0]),alt:""}}):i("div",{staticClass:"bg-info",staticStyle:{width:"100%",height:"400px"}})])]),t._v(" "),i("div",{staticClass:"col-12 p-0"},[t.posts&&t.posts.length>0?i("div",{staticClass:"row px-3 px-md-0"},[t._l(t.posts,(function(e,o){return i("div",{staticClass:"col-6 col-md-4 feed"},[e.hasOwnProperty("pf_type")&&"video"==e.pf_type?i("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.statusUrl(e)}},[i("div",{staticClass:"square"},[i("div",{staticClass:"square-content"},[t._m(2,!0),t._v(" "),i("blur-hash-canvas",{staticClass:"rounded",attrs:{width:"32",height:"32",hash:e.media_attachments[0].blurhash}})],1)])]):e.sensitive?i("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.statusUrl(e)}},[i("div",{staticClass:"square"},[i("div",{staticClass:"square-content"},[t._m(3,!0),t._v(" "),i("blur-hash-canvas",{staticClass:"rounded",attrs:{width:"32",height:"32",hash:e.media_attachments[0].blurhash}})],1)])]):i("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.statusUrl(e)}},[i("div",{staticClass:"square"},[i("div",{staticClass:"square-content"},[i("blur-hash-image",{staticClass:"rounded",attrs:{width:"32",height:"32",hash:e.media_attachments[0].blurhash,src:t.previewUrl(e)}})],1)])])])})),t._v(" "),t.canLoadMore?i("div",{staticClass:"col-12"},[i("intersect",{on:{enter:t.enterIntersect}},[i("div",{staticClass:"card card-body shadow-none border"},[i("div",{staticClass:"d-flex justify-content-center align-items-center flex-column"},[i("b-spinner",{attrs:{variant:"muted"}}),t._v(" "),i("p",{staticClass:"text-lighter small mt-2 mb-0"},[t._v("Loading more...")])],1)])])],1):t._e()],2):t._e()])]):t._e(),t._v(" "),i("b-modal",{ref:"editModal",attrs:{id:"edit-modal","hide-footer":"",centered:"",title:"Edit Collection","body-class":""}},[i("form",[i("div",{staticClass:"form-group"},[i("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"title"}},[t._v("Title")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],staticClass:"form-control",attrs:{type:"text",id:"title",placeholder:"Untitled Collection"},domProps:{value:t.title},on:{input:function(e){e.target.composing||(t.title=e.target.value)}}})]),t._v(" "),i("div",{staticClass:"form-group"},[i("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"description"}},[t._v("Description")]),t._v(" "),i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.description,expression:"description"}],staticClass:"form-control",attrs:{id:"description",placeholder:"Add a description here ...",rows:"3"},domProps:{value:t.description},on:{input:function(e){e.target.composing||(t.description=e.target.value)}}})]),t._v(" "),i("div",{staticClass:"form-group"},[i("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"visibility"}},[t._v("Visibility")]),t._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.visibility,expression:"visibility"}],staticClass:"custom-select",on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.visibility=e.target.multiple?i:i[0]}}},[i("option",{attrs:{value:"public"}},[t._v("Public")]),t._v(" "),i("option",{attrs:{value:"private"}},[t._v("Followers Only")]),t._v(" "),i("option",{attrs:{value:"draft"}},[t._v("Draft")])])]),t._v(" "),i("div",{staticClass:"d-flex justify-content-between align-items-center pt-3"},[i("a",{staticClass:"text-primary font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showEditPhotosModal.apply(null,arguments)}}},[t._v("\n\t\t\t\t\tEdit Photos\n\t\t\t\t")]),t._v(" "),t.collection.published_at?i("div",[i("button",{staticClass:"btn btn-primary btn-sm py-1 font-weight-bold px-3 float-right",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.updateCollection.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\tSave\n\t\t\t\t\t")])]):i("div",{staticClass:"float-right"},[i("button",{staticClass:"btn btn-outline-primary btn-sm py-1 font-weight-bold px-3",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.publishCollection.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\tPublish\n\t\t\t\t\t")]),t._v(" "),i("button",{staticClass:"btn btn-primary btn-sm py-1 font-weight-bold px-3",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.updateCollection.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\tSave\n\t\t\t\t\t")])])])])]),t._v(" "),i("b-modal",{ref:"addPhotoModal",attrs:{id:"add-photo-modal","hide-footer":"",centered:"",title:"Add Photo","body-class":"m-3"}},[i("div",{staticClass:"form-group"},[i("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"title"}},[t._v("Add Recent Post")]),t._v(" "),t.postsList.length>0?i("div",{staticClass:"row m-1"},[t._l(t.postsList,(function(e,o){return i("div",{key:"postList-"+o,staticClass:"col-4 p-1 cursor-pointer",on:{click:function(i){return t.addRecentId(e)}}},[i("div",{staticClass:"square border"},[i("div",{staticClass:"square-content",style:"background-image: url("+t.getPreviewUrl(e)+");"})])])})),t._v(" "),i("div",{staticClass:"col-12"},[i("hr")])],2):t._e()]),t._v(" "),i("form",[i("div",{staticClass:"form-group"},[i("label",{staticClass:"font-weight-bold text-muted",attrs:{for:"title"}},[t._v("Add Post by URL")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.photoId,expression:"photoId"}],staticClass:"form-control",attrs:{type:"text",placeholder:"https://pixelfed.dev/p/admin/1"},domProps:{value:t.photoId},on:{input:function(e){e.target.composing||(t.photoId=e.target.value)}}}),t._v(" "),i("p",{staticClass:"help-text small text-muted"},[t._v("Only local, public posts can be added")])]),t._v(" "),i("button",{staticClass:"btn btn-primary btn-sm py-1 font-weight-bold px-3 float-right",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.pushId.apply(null,arguments)}}},[t.addingPostToCollection?i("span",{staticClass:"px-4"},[i("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[i("span",{staticClass:"sr-only"},[t._v("Loading...")])])]):i("span",[t._v("\n\t\t\t\t\tAdd Photo\n\t\t\t\t")])])])]),t._v(" "),i("b-modal",{ref:"editPhotosModal",attrs:{id:"edit-photos-modal","hide-footer":"",centered:"",title:"Edit Collection Photos","body-class":"m-3"}},[i("div",{staticClass:"form-group"},[i("p",{staticClass:"font-weight-bold text-dark text-center"},[t._v("Select a Photo to Delete")]),t._v(" "),t.posts.length>0?i("div",{staticClass:"row m-1 scrollbar-hidden",staticStyle:{"max-height":"350px","overflow-y":"auto"}},t._l(t.posts,(function(e,o){return i("div",{key:"plm-"+o,staticClass:"col-4 p-1 cursor-pointer"},[i("div",{class:[-1==t.markedForDeletion.indexOf(e.id)?"square":"square delete-border"],on:{click:function(i){return t.markPhotoForDeletion(e.id)}}},[i("div",{staticClass:"square-content",style:"background-image: url("+e.media_attachments[0].url+");"})])])})),0):t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.markedForDeletion.length>0,expression:"markedForDeletion.length > 0"}]},[i("button",{staticClass:"btn btn-primary font-weight-bold py-0 btn-block mb-0 mt-4",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmDeletion.apply(null,arguments)}}},[t._v("Delete "+t._s(t.markedForDeletion.length)+" "+t._s(1==t.markedForDeletion.length?"photo":"photos"))])])])])],1)},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"alert alert-danger d-flex justify-content-center"},[i("div",{staticClass:"media align-items-center"},[i("i",{staticClass:"far fa-exclamation-triangle fa-3x mr-3"}),t._v(" "),i("div",{staticClass:"media-body"},[i("p",{staticClass:"font-weight-bold mb-0"},[t._v("\n\t\t\t\t\t\t\t\tThis collection is unpublished.\n\t\t\t\t\t\t\t")]),t._v(" "),i("p",{staticClass:"small mb-0"},[t._v("\n\t\t\t\t\t\t\t\tThis collection is not visible to anyone else until you publish it. "),i("br"),t._v("\n\t\t\t\t\t\t\t\tTo publish, click on the "),i("strong",[t._v("Edit")]),t._v(" button and then click on the "),i("strong",[t._v("Publish")]),t._v(" button.\n\t\t\t\t\t\t\t")])])])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[i("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"info-overlay-text-label rounded"},[e("h5",{staticClass:"text-white m-auto font-weight-bold"},[e("span",[e("span",{staticClass:"far fa-video fa-2x p-2 d-flex-inline"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"info-overlay-text-label rounded"},[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"})])])])}]}},t=>{t.O(0,[898],(()=>{return e=55386,t(t.s=e);var e}));t.O()}]); \ No newline at end of file diff --git a/public/js/home-ojtjadoml.js b/public/js/home-ojtjadoml.js index 4669d69b0..255d05444 100644 --- a/public/js/home-ojtjadoml.js +++ b/public/js/home-ojtjadoml.js @@ -1 +1 @@ -"use strict";(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[319],{23006:(t,e,s)=>{s.r(e),s.d(e,{default:()=>l});var o=s(42755),i=s(88231),n=s(78375),a=s(55197),r=(s(73459),s(66915));const l={props:{scope:{type:String,default:"home"}},components:{drawer:o.default,sidebar:i.default,timeline:a.default,rightbar:n.default,"story-carousel":r.default},data:function(){return{isLoaded:!1,profile:void 0,recommended:[],trending:[]}},mounted:function(){this.init()},watch:{$route:"init"},methods:{init:function(){this.profile=window._sharedData.user,this.isLoaded=!0},updateProfile:function(t){this.profile=Object.assign(this.profile,t)}}}},77366:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(26535),i=s(74338),n=s(37846),a=s(81104);const r={props:{status:{type:Object},profile:{type:Object},reactionBar:{type:Boolean,default:!0},useDropdownMenu:{type:Boolean,default:!1}},components:{"comment-drawer":o.default,"post-content":n.default,"post-header":i.default,"post-reactions":a.default},data:function(){return{key:1,menuLoading:!0,sensitive:!1,showCommentDrawer:!1,isReblogging:!1,isBookmarking:!1,owner:!1,admin:!1,license:!1}},mounted:function(){var t=this;this.license=!(!this.status.media_attachments||!this.status.media_attachments.length)&&this.status.media_attachments.filter((function(t){return t.hasOwnProperty("license")&&t.license&&t.license.hasOwnProperty("id")})).map((function(t){return t.license}))[0],this.admin=window._sharedData.user.is_admin,this.owner=this.status.account.id==window._sharedData.user.id,this.status.reply_count&&this.autoloadComments&&setTimeout((function(){t.showCommentDrawer=!0}),1e3)},computed:{hideCounts:{get:function(){return 1==this.$store.state.hideCounts}},fixedHeight:{get:function(){return 1==this.$store.state.fixedHeight}},autoloadComments:{get:function(){return 1==this.$store.state.autoloadComments}},newReactions:{get:function(){return this.$store.state.newReactions}}},watch:{status:{deep:!0,immediate:!0,handler:function(t,e){this.isBookmarking=!1}}},methods:{openMenu:function(){this.$emit("menu")},like:function(){this.$emit("like")},unlike:function(){this.$emit("unlike")},showLikes:function(){this.$emit("likes-modal")},showShares:function(){this.$emit("shares-modal")},showComments:function(){this.showCommentDrawer=!this.showCommentDrawer},copyLink:function(){event.currentTarget.blur(),App.util.clipboard(this.status.url)},shareToOther:function(){navigator.canShare?navigator.share({url:this.status.url}).then((function(){return console.log("Share was successful.")})).catch((function(t){return console.log("Sharing failed",t)})):swal("Not supported","Your current device does not support native sharing.","error")},counterChange:function(t){this.$emit("counter-change",t)},showCommentLikes:function(t){this.$emit("comment-likes-modal",t)},shareStatus:function(){this.$emit("share")},unshareStatus:function(){this.$emit("unshare")},handleReport:function(t){this.$emit("handle-report",t)},follow:function(){this.$emit("follow")},unfollow:function(){this.$emit("unfollow")},handleReblog:function(){var t=this;this.isReblogging=!0,this.status.reblogged?this.$emit("unshare"):this.$emit("share"),setTimeout((function(){t.isReblogging=!1}),5e3)},handleBookmark:function(){var t=this;event.currentTarget.blur(),this.isBookmarking=!0,this.$emit("bookmark"),setTimeout((function(){t.isBookmarking=!1}),5e3)},getStatusAvatar:function(){return window._sharedData.user.id==this.status.account.id?window._sharedData.user.avatar:this.status.account.avatar},openModTools:function(){this.$emit("mod-tools")}}}},62744:(t,e,s)=>{s.r(e),s.d(e,{default:()=>o});const o={props:{status:{type:Object,default:{}}},data:function(){return{statusId:void 0,tabIndex:0,showFull:!1}},methods:{open:function(){this.$refs.modal.show()},close:function(){var t=this;this.$refs.modal.hide(),setTimeout((function(){t.tabIndex=0}),1e3)},handleReason:function(t){var e=this;this.tabIndex=2,axios.post("/i/report",{id:this.status.id,report:t,type:"post"}).then((function(t){e.tabIndex=3})).catch((function(t){e.tabIndex=5}))}}}},16890:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(22583);const i={props:{profile:{type:Object}},components:{"profile-card":o.default},data:function(){return{popularAccounts:[],newlyFollowed:0}},mounted:function(){this.fetchPopularAccounts()},methods:{fetchPopularAccounts:function(){var t=this;axios.get("/api/pixelfed/discover/accounts/popular").then((function(e){t.popularAccounts=e.data}))},follow:function(t){var e=this;axios.post("/api/v1/accounts/"+this.popularAccounts[t].id+"/follow").then((function(t){e.newlyFollowed++,e.$store.commit("updateRelationship",[t.data]),e.$emit("update-profile",{following_count:e.profile.following_count+1})}))},unfollow:function(t){var e=this;axios.post("/api/v1/accounts/"+this.popularAccounts[t].id+"/unfollow").then((function(t){e.newlyFollowed--,e.$store.commit("updateRelationship",[t.data]),e.$emit("update-profile",{following_count:e.profile.following_count-1})}))}}}},25356:(t,e,s)=>{s.r(e),s.d(e,{default:()=>l});var o=s(15235),i=s(80979),n=s(22583),a=s(38287),r=s(4268);const l={props:{status:{type:Object}},components:{VueTribute:o.default,ReadMore:i.default,ProfileHoverCard:n.default,CommentReplyForm:r.default,CommentReplies:a.default},data:function(){return{profile:window._sharedData.user,ids:[],feed:[],sortIndex:0,sorts:["all","newest","popular"],replyContent:void 0,nextUrl:void 0,canLoadMore:!1,isPostingReply:!1,showReplyOptions:!1,feedLoading:!1,isUploading:!1,uploadProgress:0,lightboxStatus:null,settings:{expanded:!1,sensitive:!1},tributeSettings:{noMatchTemplate:null,collection:[{trigger:"@",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/mention",{params:{q:t}}).then((function(t){e(t.data)})).catch((function(t){e(),console.log(t)}))}},{trigger:"#",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/hashtag",{params:{q:t}}).then((function(t){e(t.data)})).catch((function(t){e(),console.log(t)}))}}]},showEmptyRepliesRefresh:!1,commentReplyIndex:void 0}},mounted:function(){this.fetchContext()},computed:{hideCounts:{get:function(){return 1==this.$store.state.hideCounts}}},methods:{fetchContext:function(){var t=this;axios.get("/api/v2/statuses/"+this.status.id+"/replies",{params:{limit:3}}).then((function(e){e.data.next&&(t.nextUrl=e.data.next,t.canLoadMore=!0),e.data.data.forEach((function(e){t.ids.push(e.id),t.feed.push(e)})),e.data&&e.data.data&&(e.data.data.length||!t.status.reply_count)||(t.showEmptyRepliesRefresh=!0)}))},fetchMore:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;axios.get(this.nextUrl,{params:{limit:e,sort:this.sorts[this.sortIndex]}}).then((function(e){t.feedLoading=!1,e.data.next||(t.canLoadMore=!1),t.nextUrl=e.data.next,e.data.data.forEach((function(e){-1==t.ids.indexOf(e.id)&&(t.ids.push(e.id),t.feed.push(e))}))}))},fetchSortedFeed:function(){var t=this;axios.get("/api/v2/statuses/"+this.status.id+"/replies",{params:{limit:3,sort:this.sorts[this.sortIndex]}}).then((function(e){t.feed=e.data.data,t.nextUrl=e.data.next,t.feedLoading=!1}))},forceRefresh:function(){var t=this;axios.get("/api/v2/statuses/"+this.status.id+"/replies",{params:{limit:3,refresh_cache:!0}}).then((function(e){e.data.next&&(t.nextUrl=e.data.next,t.canLoadMore=!0),e.data.data.forEach((function(e){t.ids.push(e.id),t.feed.push(e)})),t.showEmptyRepliesRefresh=!1}))},timeago:function(t){return App.util.format.timeAgo(t)},prettyCount:function(t){return App.util.format.count(t)},goToPost:function(t){this.$router.push({name:"post",path:"/i/web/post/".concat(t.id),params:{id:t.id,cachedStatus:t,cachedProfile:this.profile}})},goToProfile:function(t){this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:this.profile}})},storeComment:function(){var t=this;this.isPostingReply=!0,axios.post("/api/v1/statuses",{status:this.replyContent,in_reply_to_id:this.status.id,sensitive:this.settings.sensitive}).then((function(e){t.replyContent=void 0,t.isPostingReply=!1,t.ids.push(e.data.id),t.feed.push(e.data),t.$emit("counter-change","comment-increment")}))},toggleSort:function(t){this.$refs.sortMenu.hide(),this.feedLoading=!0,this.sortIndex=t,this.fetchSortedFeed()},deleteComment:function(t){var e=this;event.currentTarget.blur(),window.confirm(this.$t("menu.deletePostConfirm"))&&axios.post("/i/delete",{type:"status",item:this.feed[t].id}).then((function(s){e.feed.splice(t,1),e.fetchMore(1),e.$emit("counter-change","comment-decrement")})).catch((function(t){}))},showLikesModal:function(t){this.$emit("show-likes",this.feed[t])},reportComment:function(t){this.$emit("handle-report",this.feed[t])},likeComment:function(t){event.currentTarget.blur();var e=this.feed[t],s=e.favourites_count,o=e.favourited;this.feed[t].favourited=!this.feed[t].favourited,this.feed[t].favourites_count=o?s-1:s+1,axios.post("/api/v1/statuses/"+e.id+"/"+(o?"unfavourite":"favourite")).then((function(t){}))},toggleShowReplyOptions:function(){event.currentTarget.blur(),this.showReplyOptions=!this.showReplyOptions},replyUpload:function(){event.currentTarget.blur(),this.$refs.fileInput.click()},handleImageUpload:function(){var t=this;if(this.$refs.fileInput.files.length){this.isUploading=!0;var e=new FormData;e.append("file",this.$refs.fileInput.files[0]),axios.post("/api/v1/media",e).then((function(e){axios.post("/api/v1/statuses",{media_ids:[e.data.id],in_reply_to_id:t.status.id,sensitive:t.settings.sensitive}).then((function(e){t.feed.push(e.data)}))}))}},lightbox:function(t){this.lightboxStatus=t.media_attachments[0],this.$refs.lightboxModal.show()},hideLightbox:function(){this.lightboxStatus=null,this.$refs.lightboxModal.hide()},blurhashWidth:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?30:20},blurhashHeight:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?20:30},getMediaSource:function(t){var e=t.media_attachments[0];return e.preview_url.endsWith("storage/no-preview.png")?e.url:e.preview_url},toggleReplyExpand:function(){event.currentTarget.blur(),this.settings.expanded=!this.settings.expanded},toggleCommentReply:function(t){this.commentReplyIndex=t,this.showCommentReplies(t)},showCommentReplies:function(t){if(this.feed[t].hasOwnProperty("replies_show")&&this.feed[t].replies_show)return this.feed[t].replies_show=!1,void(this.commentReplyIndex=void 0);this.feed[t].replies_show=!0,this.commentReplyIndex=t,this.fetchCommentReplies(t)},hideCommentReplies:function(t){this.commentReplyIndex=void 0,this.feed[t].replies_show=!1},fetchCommentReplies:function(t){var e=this;axios.get("/api/v2/statuses/"+this.feed[t].id+"/replies",{params:{limit:3}}).then((function(s){e.feed[t].replies=s.data.data}))},getPostAvatar:function(t){return this.profile.id==t.account.id?window._sharedData.user.avatar:t.account.avatar},follow:function(t){var e=this;axios.post("/api/v1/accounts/"+this.feed[t].account.id+"/follow").then((function(s){e.$store.commit("updateRelationship",[s.data]),e.feed[t].account.followers_count=e.feed[t].account.followers_count+1,window._sharedData.user.following_count=window._sharedData.user.following_count+1}))},unfollow:function(t){var e=this;axios.post("/api/v1/accounts/"+this.feed[t].account.id+"/unfollow").then((function(s){e.$store.commit("updateRelationship",[s.data]),e.feed[t].account.followers_count=e.feed[t].account.followers_count-1,window._sharedData.user.following_count=window._sharedData.user.following_count-1}))},handleCounterChange:function(t){this.$emit("counter-change",t)},pushCommentReply:function(t,e){this.feed[t].hasOwnProperty("replies")?this.feed[t].replies.push(e):this.feed[t].replies=[e],this.feed[t].reply_count++},replyCounterChange:function(t,e){switch(e){case"comment-increment":this.feed[t].reply_count=this.feed[t].reply_count+1;break;case"comment-decrement":this.feed[t].reply_count=this.feed[t].reply_count-1}}}}},90427:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(80979);const i={props:{status:{type:Object},feed:{type:Array}},components:{ReadMore:o.default},data:function(){return{loading:!0,profile:window._sharedData.user,ids:[],nextUrl:void 0,canLoadMore:!1}},watch:{feed:{deep:!0,immediate:!0,handler:function(t,e){this.loading=!1}}},methods:{fetchContext:function(){var t=this;axios.get("/api/v2/statuses/"+this.status.id+"/replies",{params:{limit:3}}).then((function(e){e.data.next&&(t.nextUrl=e.data.next,t.canLoadMore=!0),e.data.data.forEach((function(e){t.ids.push(e.id),t.feed.push(e)})),e.data&&e.data.data&&(e.data.data.length||!t.status.reply_count)||(t.showEmptyRepliesRefresh=!0)}))},fetchMore:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;axios.get(this.nextUrl,{params:{limit:e,sort:this.sorts[this.sortIndex]}}).then((function(e){t.feedLoading=!1,e.data.next||(t.canLoadMore=!1),t.nextUrl=e.data.next,e.data.data.forEach((function(e){-1==t.ids.indexOf(e.id)&&(t.ids.push(e.id),t.feed.push(e))}))}))},fetchSortedFeed:function(){var t=this;axios.get("/api/v2/statuses/"+this.status.id+"/replies",{params:{limit:3,sort:this.sorts[this.sortIndex]}}).then((function(e){t.feed=e.data.data,t.nextUrl=e.data.next,t.feedLoading=!1}))},forceRefresh:function(){var t=this;axios.get("/api/v2/statuses/"+this.status.id+"/replies",{params:{limit:3,refresh_cache:!0}}).then((function(e){e.data.next&&(t.nextUrl=e.data.next,t.canLoadMore=!0),e.data.data.forEach((function(e){t.ids.push(e.id),t.feed.push(e)})),t.showEmptyRepliesRefresh=!1}))},timeago:function(t){return App.util.format.timeAgo(t)},prettyCount:function(t){return App.util.format.count(t)},goToPost:function(t){this.$router.push({name:"post",path:"/i/web/post/".concat(t.id),params:{id:t.id,cachedStatus:t,cachedProfile:this.profile}})},goToProfile:function(t){this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:this.profile}})},storeComment:function(){var t=this;this.isPostingReply=!0,axios.post("/api/v1/statuses",{status:this.replyContent,in_reply_to_id:this.status.id,sensitive:this.settings.sensitive}).then((function(e){t.replyContent=void 0,t.isPostingReply=!1,t.ids.push(e.data.id),t.feed.push(e.data),t.$emit("counter-change","comment-increment")}))},toggleSort:function(t){this.$refs.sortMenu.hide(),this.feedLoading=!0,this.sortIndex=t,this.fetchSortedFeed()},deleteComment:function(t){var e=this;event.currentTarget.blur(),window.confirm(this.$t("menu.deletePostConfirm"))&&axios.post("/i/delete",{type:"status",item:this.feed[t].id}).then((function(s){e.feed.splice(t,1),e.$emit("counter-change","comment-decrement"),e.fetchMore(1)})).catch((function(t){}))},showLikesModal:function(t){this.$emit("show-likes",this.feed[t])},reportComment:function(t){this.$emit("handle-report",this.feed[t])},likeComment:function(t){event.currentTarget.blur();var e=this.feed[t],s=e.favourites_count,o=e.favourited;this.feed[t].favourited=!this.feed[t].favourited,this.feed[t].favourites_count=o?s-1:s+1,axios.post("/api/v1/statuses/"+e.id+"/"+(o?"unfavourite":"favourite")).then((function(t){}))},toggleShowReplyOptions:function(){event.currentTarget.blur(),this.showReplyOptions=!this.showReplyOptions},replyUpload:function(){event.currentTarget.blur(),this.$refs.fileInput.click()},handleImageUpload:function(){var t=this;if(this.$refs.fileInput.files.length){this.isUploading=!0;var e=new FormData;e.append("file",this.$refs.fileInput.files[0]),axios.post("/api/v1/media",e).then((function(e){axios.post("/api/v1/statuses",{media_ids:[e.data.id],in_reply_to_id:t.status.id,sensitive:t.settings.sensitive}).then((function(e){t.feed.push(e.data)}))}))}},lightbox:function(t){this.lightboxStatus=t.media_attachments[0],this.$refs.lightboxModal.show()},hideLightbox:function(){this.lightboxStatus=null,this.$refs.lightboxModal.hide()},blurhashWidth:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?30:20},blurhashHeight:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?20:30},getMediaSource:function(t){var e=t.media_attachments[0];return e.preview_url.endsWith("storage/no-preview.png")?e.url:e.preview_url},toggleReplyExpand:function(){event.currentTarget.blur(),this.settings.expanded=!this.settings.expanded},toggleCommentReply:function(t){this.commentReplyIndex=t}}}},27830:(t,e,s)=>{s.r(e),s.d(e,{default:()=>o});const o={props:{parentId:{type:String}},data:function(){return{isPostingReply:!1,replyContent:"",profile:window._sharedData.user,sensitive:!1}},methods:{storeComment:function(){var t=this;this.isPostingReply=!0,axios.post("/api/v1/statuses",{status:this.replyContent,in_reply_to_id:this.parentId,sensitive:this.sensitive}).then((function(e){t.replyContent=void 0,t.isPostingReply=!1,t.$emit("new-comment",e.data),t.$emit("counter-change","comment-increment")}))}}}},36765:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(19755);const i={props:["status","profile"],data:function(){return{ctxMenuStatus:!1,ctxMenuRelationship:!1,ctxEmbedPayload:!1,copiedEmbed:!1,replySending:!1,ctxEmbedShowCaption:!0,ctxEmbedShowLikes:!1,ctxEmbedCompactMode:!1,confirmModalTitle:"Are you sure?",confirmModalIdentifer:null,confirmModalType:!1}},watch:{ctxEmbedShowCaption:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)}},methods:{open:function(){this.ctxMenu()},openModMenu:function(){this.$refs.ctxModModal.show()},ctxMenu:function(){this.ctxMenuStatus=this.status,this.ctxEmbedPayload=window.App.util.embed.post(this.status.url),this.ctxMenuRelationship=!1,this.$refs.ctxModal.show()},closeCtxMenu:function(){this.copiedEmbed=!1,this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.closeModals()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeModals()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;this.statusUrl(t),this.closeCtxMenu()},ctxMenuGoToProfile:function(){var t=this.ctxMenuStatus;this.profileUrl(t),this.closeCtxMenu()},ctxMenuFollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+s,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=t.ctxMenuStatus.account.acct;"home"==t.scope&&(t.feed=t.feed.filter((function(e){return e.account.id!=t.ctxMenuStatus.account.id}))),t.closeCtxMenu(),setTimeout((function(){swal("Unfollow successful!","You are no longer following "+s,"success")}),500)}))},ctxMenuReportPost:function(){this.$refs.ctxModal.hide(),this.$emit("report-modal",this.ctxMenuStatus)},ctxMenuEmbed:function(){this.closeModals(),this.$refs.ctxEmbedModal.show()},ctxMenuShare:function(){this.$refs.ctxModal.hide(),this.$refs.ctxShareModal.show()},closeCtxShareMenu:function(){this.$refs.ctxShareModal.hide(),this.$refs.ctxModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.ctxEmbedShowCaption=!0,this.ctxEmbedShowLikes=!1,this.ctxEmbedCompactMode=!1,this.$refs.ctxEmbedModal.hide()},ctxModMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModOtherMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.show()},ctxModMenu:function(){this.$refs.ctxModal.hide()},ctxModMenuClose:function(){this.closeModals()},ctxModOtherMenuClose:function(){this.closeModals(),this.$refs.ctxModModal.show()},formatCount:function(t){return App.util.format.count(t)},openCtxReportOtherMenu:function(){var t=this.ctxMenuStatus;this.closeCtxMenu(),this.ctxMenuStatus=t,this.$refs.ctxReportOther.show()},ctxReportMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxModal.show()},ctxReportOtherMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},sendReport:function(t){var e=this,s=this.ctxMenuStatus.id;swal({title:this.$t("menu.confirmReport"),text:this.$t("menu.confirmReportText"),icon:"warning",buttons:!0,dangerMode:!0}).then((function(o){o?axios.post("/i/report/",{report:t,type:"post",id:s}).then((function(t){e.closeCtxMenu(),swal(e.$t("menu.reportSent"),e.$t("menu.reportSentText"),"success")})).catch((function(t){swal(e.$t("common.oops"),e.$t("menu.reportSentError"),"error")})):e.closeCtxMenu()}))},closeModals:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.hide(),this.$refs.ctxShareModal.hide(),this.$refs.ctxEmbedModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.$refs.ctxConfirm.hide()},openCtxStatusModal:function(){this.closeModals(),this.$refs.ctxStatusModal.show()},openConfirmModal:function(){this.closeModals(),this.$refs.ctxConfirm.show()},closeConfirmModal:function(){this.closeModals(),this.confirmModalTitle="Are you sure?",this.confirmModalType=!1,this.confirmModalIdentifer=null},confirmModalConfirm:function(){var t=this;if("post.delete"===this.confirmModalType)axios.post("/i/delete",{type:"status",item:this.confirmModalIdentifer}).then((function(e){t.feed=t.feed.filter((function(e){return e.id!=t.confirmModalIdentifer})),t.closeConfirmModal()})).catch((function(e){t.closeConfirmModal(),swal(t.$t("common.error"),t.$t("common.errorMsg"),"error")}));this.closeConfirmModal()},confirmModalCancel:function(){this.closeConfirmModal()},moderatePost:function(t,e,s){var o=this,i=(t.account.username,t.id,""),n=this;switch(e){case"addcw":i=this.$t("menu.modAddCWConfirm"),swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(t){swal(o.$t("common.success"),o.$t("menu.modCWSuccess"),"success"),o.$emit("moderate","addcw"),n.closeModals(),n.ctxModMenuClose()})).catch((function(t){n.closeModals(),n.ctxModMenuClose(),swal(o.$t("common.error"),o.$t("common.errorMsg"),"error")}))}));break;case"remcw":i=this.$t("menu.modRemoveCWConfirm"),swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(t){swal(o.$t("common.success"),o.$t("menu.modRemoveCWSuccess"),"success"),o.$emit("moderate","remcw"),n.closeModals(),n.ctxModMenuClose()})).catch((function(t){n.closeModals(),n.ctxModMenuClose(),swal(o.$t("common.error"),o.$t("common.errorMsg"),"error")}))}));break;case"unlist":i=this.$t("menu.modUnlistConfirm"),swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(t){o.$emit("moderate","unlist"),swal(o.$t("common.success"),o.$t("menu.modUnlistSuccess"),"success"),n.closeModals(),n.ctxModMenuClose()})).catch((function(t){n.closeModals(),n.ctxModMenuClose(),swal(o.$t("common.error"),o.$t("common.errorMsg"),"error")}))}));break;case"spammer":i=this.$t("menu.modMarkAsSpammerConfirm"),swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(t){o.$emit("moderate","spammer"),swal(o.$t("common.success"),o.$t("menu.modMarkAsSpammerSuccess"),"success"),n.closeModals(),n.ctxModMenuClose()})).catch((function(t){n.closeModals(),n.ctxModMenuClose(),swal(o.$t("common.error"),o.$t("common.errorMsg"),"error")}))}))}},shareStatus:function(t,e){var s=this;0!=o("body").hasClass("loggedIn")&&(this.closeModals(),axios.post("/i/share",{item:t.id}).then((function(e){t.reblogs_count=e.data.count,t.reblogged=!t.reblogged})).catch((function(t){swal(s.$t("common.error"),s.$t("common.errorMsg"),"error")})))},statusUrl:function(t){if(1!=t.account.local)return this.$route.params.hasOwnProperty("id")?void(location.href=t.url):void this.$router.push({name:"post",path:"/i/web/post/".concat(t.id),params:{id:t.id,cachedStatus:t,cachedProfile:this.profile}});this.$router.push({name:"post",path:"/i/web/post/".concat(t.id),params:{id:t.id,cachedStatus:t,cachedProfile:this.profile}})},profileUrl:function(t){this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.account.id),params:{id:t.account.id,cachedProfile:t.account,cachedUser:this.profile}})},deletePost:function(t){var e=this;0!=this.ownerOrAdmin(t)&&0!=window.confirm(this.$t("menu.deletePostConfirm"))&&axios.post("/i/delete",{type:"status",item:t.id}).then((function(t){e.$emit("delete"),e.closeModals()})).catch((function(t){swal(e.$t("common.error"),e.$t("common.errorMsg"),"error")}))},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},archivePost:function(t){var e=this;0!=window.confirm(this.$t("menu.archivePostConfirm"))&&axios.post("/api/pixelfed/v2/status/"+t.id+"/archive").then((function(s){e.$emit("status-delete",t.id),e.$emit("archived",t.id),e.closeModals()}))},unarchivePost:function(t){var e=this;0!=window.confirm(this.$t("menu.unarchivePostConfirm"))&&axios.post("/api/pixelfed/v2/status/"+t.id+"/unarchive").then((function(s){e.$emit("unarchived",t.id),e.closeModals()}))}}}},57170:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(78423),i=s(48510);const n={props:{status:{type:Object},profile:{type:Object}},components:{intersect:o.default,"like-placeholder":i.default},data:function(){return{isOpen:!1,isLoading:!0,canLoadMore:!0,isFetchingMore:!1,likes:[],ids:[],page:1,isUpdatingFollowState:!1,followStateIndex:void 0}},methods:{clear:function(){this.isOpen=!1,this.isLoading=!0,this.canLoadMore=!0,this.isFetchingMore=!1,this.likes=[],this.ids=[],this.page=1},fetchLikes:function(){var t=this;axios.get("/api/v1/statuses/"+this.status.id+"/favourited_by",{params:{limit:10}}).then((function(e){t.ids=e.data.map((function(t){return t.id})),t.likes=e.data,t.page++,t.isLoading=!1}))},open:function(){this.page>1&&this.clear(),this.isOpen=!0,this.fetchLikes(),this.$refs.likesModal.show()},enterIntersect:function(){var t=this;this.isFetchingMore||(this.isFetchingMore=!0,axios.get("/api/v1/statuses/"+this.status.id+"/favourited_by",{params:{limit:10,page:this.page}}).then((function(e){return e.data&&e.data.length?(e.data.forEach((function(e){-1==t.ids.indexOf(e.id)&&(t.ids.push(e.id),t.likes.push(e))})),e.data.length<2?(t.canLoadMore=!1,void(t.isFetchingMore=!1)):(t.page++,void(t.isFetchingMore=!1))):(t.canLoadMore=!1,void(t.isFetchingMore=!1))})))},getUsername:function(t){return t.display_name?t.display_name:t.username},goToProfile:function(t){this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:this.profile}})},handleFollow:function(t){var e=this;event.currentTarget.blur(),this.followStateIndex=t,this.isUpdatingFollowState=!0;var s=this.likes[t];axios.post("/api/v1/accounts/"+s.id+"/follow").then((function(s){e.likes[t].follows=!0,e.followStateIndex=void 0,e.isUpdatingFollowState=!1}))},handleUnfollow:function(t){var e=this;event.currentTarget.blur(),this.followStateIndex=t,this.isUpdatingFollowState=!0;var s=this.likes[t];axios.post("/api/v1/accounts/"+s.id+"/unfollow").then((function(s){e.likes[t].follows=!1,e.followStateIndex=void 0,e.isUpdatingFollowState=!1}))}}}},86609:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(99347);const i={props:["status"],components:{"read-more":s(80979).default},data:function(){return{key:1,sensitive:!1}},computed:{fixedHeight:{get:function(){return 1==this.$store.state.fixedHeight}}},methods:{toggleLightbox:function(t){(0,o.default)({el:t.target})},toggleContentWarning:function(){this.key++,this.sensitive=!0,this.status.sensitive=!this.status.sensitive}}}},42325:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(22583);const i={props:{status:{type:Object},profile:{type:Object},useDropdownMenu:{type:Boolean,default:!1}},components:{"profile-hover-card":o.default},data:function(){return{menuLoading:!0,owner:!1,admin:!1,license:!1}},methods:{timeago:function(t){var e=App.util.format.timeAgo(t);return e.endsWith("s")||e.endsWith("m")||e.endsWith("h")?e:new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"}).format(new Date(t))},openMenu:function(){this.$emit("menu")},scopeIcon:function(t){switch(t){case"public":default:return"far fa-globe";case"unlisted":return"far fa-lock-open";case"private":return"far fa-lock"}},scopeTitle:function(t){switch(t){case"public":return"Visible to everyone";case"unlisted":return"Hidden from public feeds";case"private":return"Only visible to followers";default:return""}},goToPost:function(){location.pathname.split("/").pop()!=this.status.id?this.$router.push({name:"post",path:"/i/web/post/".concat(this.status.id),params:{id:this.status.id,cachedStatus:this.status,cachedProfile:this.profile}}):location.href=this.status.local?this.status.url+"?fs=1":this.status.url},goToProfile:function(){var t=this;this.$nextTick((function(){t.$router.push({name:"profile",path:"/i/web/profile/".concat(t.status.account.id),params:{id:t.status.account.id,cachedProfile:t.status.account,cachedUser:t.profile}})}))},toggleContentWarning:function(){this.key++,this.sensitive=!0,this.status.sensitive=!this.status.sensitive},like:function(){event.currentTarget.blur(),this.status.favourited?this.$emit("unlike"):this.$emit("like")},toggleMenu:function(t){var e=this;setTimeout((function(){e.menuLoading=!1}),500)},closeMenu:function(t){setTimeout((function(){t.target.parentNode.firstElementChild.blur()}),100)},showLikes:function(){event.currentTarget.blur(),this.$emit("likes-modal")},showShares:function(){event.currentTarget.blur(),this.$emit("shares-modal")},showComments:function(){event.currentTarget.blur(),this.showCommentDrawer=!this.showCommentDrawer},copyLink:function(){event.currentTarget.blur(),App.util.clipboard(this.status.url)},shareToOther:function(){navigator.canShare?navigator.share({url:this.status.url}).then((function(){return console.log("Share was successful.")})).catch((function(t){return console.log("Sharing failed",t)})):swal("Not supported","Your current device does not support native sharing.","error")},counterChange:function(t){this.$emit("counter-change",t)},showCommentLikes:function(t){this.$emit("comment-likes-modal",t)},shareStatus:function(){this.$emit("share")},unshareStatus:function(){this.$emit("unshare")},handleReport:function(t){this.$emit("handle-report",t)},follow:function(){this.$emit("follow")},unfollow:function(){this.$emit("unfollow")},handleReblog:function(){var t=this;this.isReblogging=!0,this.status.reblogged?this.$emit("unshare"):this.$emit("share"),setTimeout((function(){t.isReblogging=!1}),5e3)},handleBookmark:function(){var t=this;event.currentTarget.blur(),this.isBookmarking=!0,this.$emit("bookmark"),setTimeout((function(){t.isBookmarking=!1}),5e3)},getStatusAvatar:function(){return window._sharedData.user.id==this.status.account.id?window._sharedData.user.avatar:this.status.account.avatar},openModTools:function(){this.$emit("mod-tools")}}}},98844:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(26535),i=s(22583);const n={props:{status:{type:Object},profile:{type:Object},admin:{type:Boolean,default:!1}},components:{"comment-drawer":o.default,"profile-hover-card":i.default},data:function(){return{key:1,menuLoading:!0,sensitive:!1,isReblogging:!1,isBookmarking:!1,owner:!1,license:!1}},computed:{hideCounts:{get:function(){return 1==this.$store.state.hideCounts}},autoloadComments:{get:function(){return 1==this.$store.state.autoloadComments}},newReactions:{get:function(){return this.$store.state.newReactions}},likesCount:function(){return this.status.favourites_count},replyCount:function(){return this.status.reply_count}},methods:{count:function(t){return App.util.format.count(t)},like:function(){event.currentTarget.blur(),this.status.favourited?this.$emit("unlike"):this.$emit("like")},showLikes:function(){event.currentTarget.blur(),this.$emit("likes-modal")},showShares:function(){event.currentTarget.blur(),this.$emit("shares-modal")},showComments:function(){event.currentTarget.blur(),this.$emit("toggle-comments")},copyLink:function(){event.currentTarget.blur(),App.util.clipboard(this.status.url)},shareToOther:function(){navigator.canShare?navigator.share({url:this.status.url}).then((function(){return console.log("Share was successful.")})).catch((function(t){return console.log("Sharing failed",t)})):swal("Not supported","Your current device does not support native sharing.","error")},counterChange:function(t){this.$emit("counter-change",t)},showCommentLikes:function(t){this.$emit("comment-likes-modal",t)},handleReblog:function(){var t=this;this.isReblogging=!0,this.status.reblogged?this.$emit("unshare"):this.$emit("share"),setTimeout((function(){t.isReblogging=!1}),5e3)},handleBookmark:function(){var t=this;event.currentTarget.blur(),this.isBookmarking=!0,this.$emit("bookmark"),setTimeout((function(){t.isBookmarking=!1}),5e3)},getStatusAvatar:function(){return window._sharedData.user.id==this.status.account.id?window._sharedData.user.avatar:this.status.account.avatar},openModTools:function(){this.$emit("mod-tools")}}}},66286:(t,e,s)=>{s.r(e),s.d(e,{default:()=>o});const o={props:{status:{type:Object},cursorLimit:{type:Number,default:200}},data:function(){return{preRender:void 0,fullContent:null,content:null,cursor:200}},mounted:function(){this.rewriteLinks()},methods:{readMore:function(){this.cursor=this.cursor+200,this.content=this.fullContent.substr(0,this.cursor)},rewriteLinks:function(){var t=this,e=this.status.content,s=document.createElement("div");s.innerHTML=e,s.querySelectorAll('a[class*="hashtag"]').forEach((function(t){var e=t.innerText;"#"==e.substr(0,1)&&(e=e.substr(1)),t.removeAttribute("target"),t.setAttribute("href","/i/web/hashtag/"+e)})),s.querySelectorAll('a:not(.hashtag)[class*="mention"], a:not(.hashtag)[class*="list-slug"]').forEach((function(e){var s=e.innerText;if("@"==s.substr(0,1)&&(s=s.substr(1)),0==t.status.account.local&&!s.includes("@")){var o=document.createElement("a");o.href=t.status.account.url,s=s+"@"+o.hostname}e.removeAttribute("target"),e.setAttribute("href","/i/web/username/"+s)})),this.content=s.outerHTML,this.injectCustomEmoji()},injectCustomEmoji:function(){var t=this;this.status.emojis.forEach((function(e){var s=''.concat(e.shortcode,'');t.content=t.content.replace(":".concat(e.shortcode,":"),s)}))}}}},95159:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(78423),i=s(48510);const n={props:{status:{type:Object},profile:{type:Object}},components:{intersect:o.default,"like-placeholder":i.default},data:function(){return{isOpen:!1,isLoading:!0,canLoadMore:!0,isFetchingMore:!1,likes:[],ids:[],page:1,isUpdatingFollowState:!1,followStateIndex:void 0}},methods:{clear:function(){this.isOpen=!1,this.isLoading=!0,this.canLoadMore=!0,this.isFetchingMore=!1,this.likes=[],this.ids=[],this.page=1},fetchLikes:function(){var t=this;axios.get("/api/v1/statuses/"+this.status.id+"/reblogged_by",{params:{limit:10}}).then((function(e){t.ids=e.data.map((function(t){return t.id})),t.likes=e.data,t.page++,t.isLoading=!1}))},open:function(){this.page>1&&this.clear(),this.isOpen=!0,this.fetchLikes(),this.$refs.likesModal.show()},enterIntersect:function(){var t=this;this.isFetchingMore||(this.isFetchingMore=!0,axios.get("/api/v1/statuses/"+this.status.id+"/reblogged_by",{params:{limit:10,page:this.page}}).then((function(e){return e.data&&e.data.length?(e.data.forEach((function(e){-1==t.ids.indexOf(e.id)&&(t.ids.push(e.id),t.likes.push(e))})),e.data.length<2?(t.canLoadMore=!1,void(t.isFetchingMore=!1)):(t.page++,void(t.isFetchingMore=!1))):(t.canLoadMore=!1,void(t.isFetchingMore=!1))})))},getUsername:function(t){return t.display_name?t.display_name:t.username},goToProfile:function(t){this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:this.profile}})},handleFollow:function(t){var e=this;event.currentTarget.blur(),this.followStateIndex=t,this.isUpdatingFollowState=!0;var s=this.likes[t];axios.post("/api/v1/accounts/"+s.id+"/follow").then((function(s){e.likes[t].follows=!0,e.followStateIndex=void 0,e.isUpdatingFollowState=!1}))},handleUnfollow:function(t){var e=this;event.currentTarget.blur(),this.followStateIndex=t,this.isUpdatingFollowState=!0;var s=this.likes[t];axios.post("/api/v1/accounts/"+s.id+"/unfollow").then((function(s){e.likes[t].follows=!1,e.followStateIndex=void 0,e.isUpdatingFollowState=!1}))}}}},50371:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(80979),i=s(20629);function n(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,o)}return s}function a(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const r={props:{profile:{type:Object}},components:{ReadMore:o.default},data:function(){return{user:window._sharedData.user,bio:void 0,isLoading:!1,relationship:void 0}},mounted:function(){var t=this;this.rewriteLinks(),this.relationship=this.$store.getters.getRelationship(this.profile.id),this.relationship||this.profile.id==this.user.id||axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.profile.id}}).then((function(e){t.relationship=e.data[0],t.$store.commit("updateRelationship",e.data)}))},computed:function(t){for(var e=1;e)?/g,(function(e){var s=e.slice(1,e.length-1),o=t.getCustomEmoji.filter((function(t){return t.shortcode==s}));return o.length?''.concat(o[0].shortcode,''):e}))}return s},getUsername:function(){return this.profile.acct},formatCount:function(t){return App.util.format.count(t)},goToProfile:function(){this.$router.push({name:"profile",path:"/i/web/profile/".concat(this.profile.id),params:{id:this.profile.id,cachedProfile:this.profile,cachedUser:this.user}})},rewriteLinks:function(){var t=this,e=this.profile.note,s=document.createElement("div");s.innerHTML=e,s.querySelectorAll('a[class*="hashtag"]').forEach((function(t){var e=t.innerText;"#"==e.substr(0,1)&&(e=e.substr(1)),t.removeAttribute("target"),t.setAttribute("href","/i/web/hashtag/"+e)})),s.querySelectorAll('a:not(.hashtag)[class*="mention"], a:not(.hashtag)[class*="list-slug"]').forEach((function(e){var s=e.innerText;if("@"==s.substr(0,1)&&(s=s.substr(1)),0==t.profile.local&&!s.includes("@")){var o=document.createElement("a");o.href=t.profile.url,s=s+"@"+o.hostname}e.removeAttribute("target"),e.setAttribute("href","/i/web/username/"+s)})),this.bio=s.outerHTML},performFollow:function(){var t=this;this.isLoading=!0,this.$emit("follow"),setTimeout((function(){t.relationship.following=!0,t.isLoading=!1}),1e3)},performUnfollow:function(){var t=this;this.isLoading=!0,this.$emit("unfollow"),setTimeout((function(){t.relationship.following=!1,t.isLoading=!1}),1e3)}}}},66842:(t,e,s)=>{s.r(e),s.d(e,{default:()=>o});const o={props:{profile:{type:Object}},data:function(){return{canShow:!1,stories:[]}},mounted:function(){this.fetchStories()},methods:{fetchStories:function(){var t=this;axios.get("/api/web/stories/v1/recent").then((function(e){e.data&&e.data.length&&(t.stories=e.data,t.canShow=!0)}))}}}},61672:(t,e,s)=>{s.r(e),s.d(e,{default:()=>m});var o=s(45836),i=s(99247),n=s(78423),a=s(8829),r=s(5327),l=s(31823),c=s(21917),d=s(57166),u=s(44898);function p(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return h(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 h(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,o=new Array(e);se.id&&(t.max_id=e.id),t.ids.push(e.id),t.feed.push(e),e&&e.hasOwnProperty("relationship")&&t.$store.commit("updateRelationship",[e.relationship]))})),t.isFetchingMore=!1}),100)}))}},tryToLoadMore:function(){var t=this;this.loadMoreAttempts++,this.loadMoreAttempts>=3?this.showLoadMore=!1:(this.showLoadMore=!1,this.canLoadMore=!0,this.loadMoreTimeout=setTimeout((function(){t.canLoadMore=!1,t.showLoadMore=!0}),5e3))},likeStatus:function(t){var e=this,s=this.feed[t],o=(s.favourited,s.favourites_count);this.feed[t].favourites_count=o+1,this.feed[t].favourited=!s.favourited,axios.post("/api/v1/statuses/"+s.id+"/favourite").then((function(t){})).catch((function(s){e.feed[t].favourites_count=o,e.feed[t].favourited=!1;var i=document.createElement("p");i.classList.add("text-left"),i.classList.add("mb-0"),i.innerHTML='We limit certain interactions to keep our community healthy and it appears that you have reached that limit. Please try again later.';var n=document.createElement("div");n.appendChild(i),429===s.response.status&&swal({title:"Too many requests",content:n,icon:"warning",buttons:{confirm:{text:"OK",value:!1,visible:!0,className:"bg-transparent primary",closeModal:!0}}}).then((function(t){"more"==t&&(location.href="/site/contact")}))}))},unlikeStatus:function(t){var e=this,s=this.feed[t],o=(s.favourited,s.favourites_count);this.feed[t].favourites_count=o-1,this.feed[t].favourited=!s.favourited,axios.post("/api/v1/statuses/"+s.id+"/unfavourite").then((function(t){})).catch((function(s){e.feed[t].favourites_count=o,e.feed[t].favourited=!1}))},openContextMenu:function(t){var e=this;this.postIndex=t,this.showMenu=!0,this.$nextTick((function(){e.$refs.contextMenu.open()}))},handleModTools:function(t){var e=this;this.postIndex=t,this.showMenu=!0,this.$nextTick((function(){e.$refs.contextMenu.openModMenu()}))},openLikesModal:function(t){var e=this;this.postIndex=t,this.likesModalPost=this.feed[this.postIndex],this.showLikesModal=!0,this.$nextTick((function(){e.$refs.likesModal.open()}))},openSharesModal:function(t){var e=this;this.postIndex=t,this.sharesModalPost=this.feed[this.postIndex],this.showSharesModal=!0,this.$nextTick((function(){e.$refs.sharesModal.open()}))},commitModeration:function(t){var e=this.postIndex;switch(t){case"addcw":this.feed[e].sensitive=!0;break;case"remcw":this.feed[e].sensitive=!1;break;case"unlist":this.feed.splice(e,1);break;case"spammer":var s=this.feed[e].account.id;this.feed=this.feed.filter((function(t){return t.account.id!=s}))}},deletePost:function(){this.feed.splice(this.postIndex,1)},counterChange:function(t,e){switch(e){case"comment-increment":this.feed[t].reply_count=this.feed[t].reply_count+1;break;case"comment-decrement":this.feed[t].reply_count=this.feed[t].reply_count-1}},openCommentLikesModal:function(t){var e=this;this.likesModalPost=t,this.showLikesModal=!0,this.$nextTick((function(){e.$refs.likesModal.open()}))},shareStatus:function(t){var e=this,s=this.feed[t],o=(s.reblogged,s.reblogs_count);this.feed[t].reblogs_count=o+1,this.feed[t].reblogged=!s.reblogged,axios.post("/api/v1/statuses/"+s.id+"/reblog").then((function(t){})).catch((function(s){e.feed[t].reblogs_count=o,e.feed[t].reblogged=!1}))},unshareStatus:function(t){var e=this,s=this.feed[t],o=(s.reblogged,s.reblogs_count);this.feed[t].reblogs_count=o-1,this.feed[t].reblogged=!s.reblogged,axios.post("/api/v1/statuses/"+s.id+"/unreblog").then((function(t){})).catch((function(s){e.feed[t].reblogs_count=o,e.feed[t].reblogged=!1}))},handleReport:function(t){var e=this;this.reportedStatusId=t.id,this.$nextTick((function(){e.reportedStatus=t,e.$refs.reportModal.open()}))},handleBookmark:function(t){var e=this,s=this.feed[t];axios.post("/i/bookmark",{item:s.id}).then((function(o){e.feed[t].bookmarked=!s.bookmarked})).catch((function(t){e.$bvToast.toast("Cannot bookmark post at this time.",{title:"Bookmark Error",variant:"danger",autoHideDelay:5e3})}))},follow:function(t){var e=this;axios.post("/api/v1/accounts/"+this.feed[t].account.id+"/follow").then((function(s){e.$store.commit("updateRelationship",[s.data]),e.updateProfile({following_count:e.profile.following_count+1}),e.feed[t].account.followers_count=e.feed[t].account.followers_count+1})).catch((function(s){swal("Oops!","An error occured when attempting to follow this account.","error"),e.feed[t].relationship.following=!1}))},unfollow:function(t){var e=this;axios.post("/api/v1/accounts/"+this.feed[t].account.id+"/unfollow").then((function(s){e.$store.commit("updateRelationship",[s.data]),e.updateProfile({following_count:e.profile.following_count-1}),e.feed[t].account.followers_count=e.feed[t].account.followers_count-1})).catch((function(s){swal("Oops!","An error occured when attempting to unfollow this account.","error"),e.feed[t].relationship.following=!0}))},updateProfile:function(t){this.$emit("update-profile",t)}},beforeDestroy:function(){clearTimeout(this.loadMoreTimeout)}}},77413:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".avatar[data-v-5ae68d74]{border-radius:15px}.username[data-v-5ae68d74]{margin-bottom:-6px}.btn-white[data-v-5ae68d74]{background-color:#fff;border:1px solid #f3f4f6}.sidebar[data-v-5ae68d74]{top:90px}",""]);const n=i},90998:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,'.timeline-status-component{margin-bottom:1rem}.timeline-status-component .btn:focus{box-shadow:none!important}.timeline-status-component .avatar{border-radius:15px}.timeline-status-component .username{margin-bottom:-6px;word-break:break-word}@media(min-width:768px){.timeline-status-component .username{font-size:18px}}.timeline-status-component .VueCarousel-wrapper .VueCarousel-slide img{-o-object-fit:contain;object-fit:contain}.timeline-status-component .status-text{z-index:3}.timeline-status-component .reaction-liked-by,.timeline-status-component .status-text.py-0{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.timeline-status-component .reaction-liked-by{font-size:11px;font-weight:600}.timeline-status-component .location,.timeline-status-component .timestamp,.timeline-status-component .visibility{color:#94a3b8;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.timeline-status-component .invisible{display:none}.timeline-status-component .blurhash-wrapper img{border-radius:0;-o-object-fit:cover;object-fit:cover}.timeline-status-component .blurhash-wrapper canvas{border-radius:0}.timeline-status-component .content-label-wrapper{background-color:#000;border-radius:0;height:400px;overflow:hidden;position:relative;width:100%}.timeline-status-component .content-label-wrapper canvas,.timeline-status-component .content-label-wrapper img{cursor:pointer;max-height:400px}.timeline-status-component .content-label{align-items:center;background:rgba(0,0,0,.2);border-radius:0;display:flex;flex-direction:column;height:100%;justify-content:center;margin:0;position:absolute;width:100%;z-index:2}.timeline-status-component .rounded-bottom{border-bottom-left-radius:15px!important;border-bottom-right-radius:15px!important}.timeline-status-component .card-footer .media{position:relative}.timeline-status-component .card-footer .media .comment-border-link{background-clip:padding-box;background-color:#e5e7eb;border-left:4px solid transparent;border-right:4px solid transparent;display:block;height:calc(100% - 100px);left:11px;position:absolute;top:40px;width:10px}.timeline-status-component .card-footer .media .comment-border-link:hover{background-color:#bfdbfe}.timeline-status-component .card-footer .media .child-reply-form{position:relative}.timeline-status-component .card-footer .media .comment-border-arrow{background-clip:padding-box;background-color:#e5e7eb;border-bottom:2px solid transparent;border-left:4px solid transparent;border-right:4px solid transparent;display:block;height:29px;left:-33px;position:absolute;top:-6px;width:10px}.timeline-status-component .card-footer .media .comment-border-arrow:after{background-color:#e5e7eb;content:"";display:block;height:2px;left:2px;position:absolute;top:25px;width:15px}.timeline-status-component .card-footer .media-status{margin-bottom:1.3rem}.timeline-status-component .card-footer .media-avatar{border-radius:8px;margin-right:12px}.timeline-status-component .card-footer .media-body-comment{background-color:var(--comment-bg);border-radius:.9rem;padding:.4rem .7rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.timeline-status-component .card-footer .media-body-comment-username{color:var(--body-color);font-size:14px;font-weight:700!important;margin-bottom:.25rem!important}.timeline-status-component .card-footer .media-body-comment-username a{color:var(--body-color);text-decoration:none}.timeline-status-component .card-footer .media-body-comment-content{font-size:16px;margin-bottom:0}.timeline-status-component .card-footer .media-body-reactions{color:#b8c2cc!important;font-size:12px;margin-bottom:0!important;margin-top:.4rem!important}.timeline-status-component .fixedHeight{max-height:400px}.timeline-status-component .fixedHeight .VueCarousel-wrapper{border-radius:15px}.timeline-status-component .fixedHeight .VueCarousel-slide img{max-height:400px}.timeline-status-component .fixedHeight .blurhash-wrapper img{background-color:transparent;height:400px;max-height:400px;-o-object-fit:contain;object-fit:contain}.timeline-status-component .fixedHeight .blurhash-wrapper canvas{max-height:400px}.timeline-status-component .fixedHeight .content-label-wrapper{border-radius:15px}.timeline-status-component .fixedHeight .content-label{border-radius:0;height:400px}',""]);const n=i},21451:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".timeline-onboarding .profile-hover-card-inner{width:100%}.timeline-onboarding .profile-hover-card-inner .d-flex{max-width:100%!important}",""]);const n=i},25506:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,'.post-comment-drawer-feed{margin-bottom:1rem}.post-comment-drawer-feed .sort-menu .dropdown{border-radius:18px}.post-comment-drawer-feed .sort-menu .dropdown-menu{padding:0}.post-comment-drawer-feed .sort-menu .dropdown-item:active{background-color:inherit}.post-comment-drawer-feed .sort-menu .title{color:var(--dropdown-item-color)}.post-comment-drawer-feed .sort-menu .description{color:var(--dropdown-item-color);font-size:12px;margin-bottom:0}.post-comment-drawer-feed .sort-menu .active .title{color:var(--dropdown-item-active-color);font-weight:600}.post-comment-drawer-feed .sort-menu .active .description{color:var(--dropdown-item-active-color)}.post-comment-drawer-feed-loader{align-items:center;display:flex;height:200px;justify-content:center}.post-comment-drawer .media-body-comment{min-width:240px;position:relative}.post-comment-drawer .media-body-wrapper .media-body-comment{padding:.7rem}.post-comment-drawer .media-body-wrapper .media-body-likes-count{background-color:var(--body-bg);border-radius:15px;bottom:-10px;font-size:12px;font-weight:600;padding:1px 8px;position:absolute;right:-5px;text-decoration:none;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;z-index:3}.post-comment-drawer .media-body-wrapper .media-body-likes-count i{margin-right:3px}.post-comment-drawer .media-body-wrapper .media-body-likes-count .count{color:#334155}.post-comment-drawer .media-body-show-replies{font-size:13px;margin-bottom:5px;margin-top:-5px}.post-comment-drawer .media-body-show-replies a{align-items:center;display:flex;text-decoration:none}.post-comment-drawer .media-body-show-replies-icon{text-rendering:auto;display:inline-block;font-family:Font Awesome\\ 5 Free;font-style:normal;font-variant:normal;font-weight:400;line-height:1;margin-right:.25rem;padding-left:.5rem;text-decoration:none;transform:rotate(90deg)}.post-comment-drawer .media-body-show-replies-icon:before{content:""}.post-comment-drawer .media-body-show-replies-label{padding-top:9px}.post-comment-drawer-loadmore{font-size:.7875rem}.post-comment-drawer .reply-form-input{flex:1;position:relative}.post-comment-drawer .reply-form-input-actions{position:absolute;right:10px;top:50%;transform:translateY(-50%)}.post-comment-drawer .reply-form-input-actions.open{top:85%;transform:translateY(-85%)}.post-comment-drawer .child-reply-form{position:relative}.post-comment-drawer .bh-comment{height:auto;max-height:260px!important;max-width:160px!important;position:relative;width:100%}.post-comment-drawer .bh-comment .img-fluid,.post-comment-drawer .bh-comment canvas{border-radius:8px!important}.post-comment-drawer .bh-comment img,.post-comment-drawer .bh-comment span{height:auto;max-height:260px!important;max-width:160px!important;width:100%}.post-comment-drawer .bh-comment img{border-radius:8px;-o-object-fit:cover;object-fit:cover}.post-comment-drawer .bh-comment .sensitive-warning{background:rgba(0,0,0,.4);border-radius:8px;color:#fff;cursor:pointer;left:50%;padding:5px;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.post-comment-drawer .v-tribute{width:100%}',""]);const n=i},84582:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".profile-hover-card{border:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;overflow:hidden;padding:.5rem;width:300px}.profile-hover-card .avatar{border-radius:15px;box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important;margin-bottom:.5rem}.profile-hover-card .display-name{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:16px;font-weight:800;font-weight:800!important;line-height:.8;margin-bottom:2px;margin-top:5px;max-width:240px;-webkit-user-select:all;-moz-user-select:all;user-select:all;word-break:break-word}.profile-hover-card .display-name a{color:var(--body-color);text-decoration:none}.profile-hover-card .username{font-size:12px;font-weight:700;margin-bottom:.6rem;margin-top:0;max-width:240px;overflow:hidden;-webkit-user-select:all;-moz-user-select:all;user-select:all;word-break:break-word}.profile-hover-card .username-link{color:var(--text-lighter);margin-right:4px;text-decoration:none}.profile-hover-card .username-follows-you{margin:4px 0}.profile-hover-card .username-follows-you span{background-color:var(--comment-bg);border-radius:6px;color:var(--dropdown-item-color);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:12px;font-weight:500;line-height:16px;padding:2px 4px}.profile-hover-card .pronouns{color:#9ca3af;font-size:11px;font-weight:600;margin-bottom:.6rem;margin-top:-.8rem}.profile-hover-card .bio{color:var(--body-color);font-size:12px;line-height:1.2;margin-bottom:0;max-height:60px;max-width:240px;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.profile-hover-card .bio .invisible{display:none}.profile-hover-card .stats{color:var(--body-color);font-size:14px;margin-bottom:0;margin-top:.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.profile-hover-card .stats .stats-following{margin-right:.8rem}.profile-hover-card .stats .followers-count,.profile-hover-card .stats .following-count{font-weight:800}.profile-hover-card .btn.rounded-pill{min-width:80px}",""]);const n=i},5791:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".story-carousel-component .story-wrapper{background:#b24592;background:linear-gradient(90deg,#b24592,#f15f79);border-radius:15px;display:block;height:200px;margin-bottom:1rem;position:relative;width:100%}.story-carousel-component .story-wrapper .username{color:#fff}.story-carousel-component .story-wrapper .avatar{border-radius:6px;margin-bottom:5px}",""]);const n=i},31425:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),n=s(77413),a={insert:"head",singleton:!1};i()(n.default,a);const r=n.default.locals||{}},94901:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),n=s(90998),a={insert:"head",singleton:!1};i()(n.default,a);const r=n.default.locals||{}},9305:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),n=s(21451),a={insert:"head",singleton:!1};i()(n.default,a);const r=n.default.locals||{}},61191:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),n=s(25506),a={insert:"head",singleton:!1};i()(n.default,a);const r=n.default.locals||{}},56823:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),n=s(84582),a={insert:"head",singleton:!1};i()(n.default,a);const r=n.default.locals||{}},44303:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),n=s(5791),a={insert:"head",singleton:!1};i()(n.default,a);const r=n.default.locals||{}},98489:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(57394),i=s(94509),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);s(26715);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,"5ae68d74",null).exports},45836:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(89673);const i=(0,s(51900).default)({},o.render,o.staticRenderFns,!1,null,null,null).exports},99247:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(10326),i=s(41081),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);s(43956);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},21917:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(12350),i=s(35181),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},57166:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(51339);const i=(0,s(51900).default)({},o.render,o.staticRenderFns,!1,null,null,null).exports},44898:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(95735),i=s(8993),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);s(27423);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},26535:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(99220),i=s(55862),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);s(42659);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},38287:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(66339),i=s(63106),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},4268:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(50309),i=s(78789),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},8829:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(15278),i=s(12422),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},48510:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(98223);const i=(0,s(51900).default)({},o.render,o.staticRenderFns,!1,null,null,null).exports},5327:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(19986),i=s(40423),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},37846:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(39875),i=s(18988),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},74338:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(84177),i=s(8622),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},81104:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(26385),i=s(36875),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},80979:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(17386),i=s(20516),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},31823:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(20458),i=s(22917),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},22583:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(32900),i=s(81498),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);s(60970);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},66915:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(78208),i=s(39707),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);s(87757);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},55197:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(88890),i=s(89707),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},94509:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23006),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},41081:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(77366),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},35181:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(62744),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},8993:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(16890),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},55862:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(25356),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},63106:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(90427),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},78789:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(27830),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},12422:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(36765),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},40423:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(57170),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},18988:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(86609),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},8622:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(42325),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},36875:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(98844),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},20516:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(66286),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},22917:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(95159),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},81498:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(50371),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},39707:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(66842),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},89707:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(61672),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},26715:(t,e,s)=>{s.r(e);var o=s(31425),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},43956:(t,e,s)=>{s.r(e);var o=s(94901),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},27423:(t,e,s)=>{s.r(e);var o=s(9305),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},42659:(t,e,s)=>{s.r(e);var o=s(61191),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},60970:(t,e,s)=>{s.r(e);var o=s(56823),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},87757:(t,e,s)=>{s.r(e);var o=s(44303),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},57394:(t,e,s)=>{s.r(e);var o=s(54944),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},89673:(t,e,s)=>{s.r(e);var o=s(20454),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},10326:(t,e,s)=>{s.r(e);var o=s(8954),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},12350:(t,e,s)=>{s.r(e);var o=s(4493),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},51339:(t,e,s)=>{s.r(e);var o=s(99451),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},95735:(t,e,s)=>{s.r(e);var o=s(72311),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},99220:(t,e,s)=>{s.r(e);var o=s(90215),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},66339:(t,e,s)=>{s.r(e);var o=s(49209),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},50309:(t,e,s)=>{s.r(e);var o=s(64084),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},15278:(t,e,s)=>{s.r(e);var o=s(94122),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},98223:(t,e,s)=>{s.r(e);var o=s(72729),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},19986:(t,e,s)=>{s.r(e);var o=s(51364),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},39875:(t,e,s)=>{s.r(e);var o=s(53458),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},84177:(t,e,s)=>{s.r(e);var o=s(24514),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},26385:(t,e,s)=>{s.r(e);var o=s(64295),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},17386:(t,e,s)=>{s.r(e);var o=s(20512),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},20458:(t,e,s)=>{s.r(e);var o=s(34392),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},32900:(t,e,s)=>{s.r(e);var o=s(47455),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},78208:(t,e,s)=>{s.r(e);var o=s(78823),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},88890:(t,e,s)=>{s.r(e);var o=s(98381),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},54944:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"web-wrapper"},[t.isLoaded?s("div",{staticClass:"container-fluid mt-3"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-4 col-lg-3"},[s("sidebar",{attrs:{user:t.profile}})],1),t._v(" "),s("div",{staticClass:"col-md-8 col-lg-6 px-0"},[s("story-carousel",{attrs:{profile:t.profile}}),t._v(" "),s("timeline",{key:t.scope,attrs:{profile:t.profile,scope:t.scope},on:{"update-profile":t.updateProfile}})],1),t._v(" "),s("div",{staticClass:"d-none d-lg-block col-lg-3"},[s("rightbar",{staticClass:"sticky-top sidebar"})],1)]),t._v(" "),s("drawer")],1):s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"calc(100vh - 58px)"}},[s("b-spinner")],1)])},i=[]},20454:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"ph-item border-0 shadow-sm",staticStyle:{"border-radius":"15px","margin-bottom":"1rem"}},[s("div",{staticClass:"ph-col-12"},[s("div",{staticClass:"ph-row align-items-center"},[s("div",{staticClass:"ph-avatar mr-3 d-flex",staticStyle:{width:"50px",height:"60px","border-radius":"15px"}}),t._v(" "),s("div",{staticClass:"ph-col-6 big"})]),t._v(" "),s("div",{staticClass:"empty"}),t._v(" "),s("div",{staticClass:"empty"}),t._v(" "),s("div",{staticClass:"ph-picture"}),t._v(" "),s("div",{staticClass:"ph-row"},[s("div",{staticClass:"ph-col-12 empty"}),t._v(" "),s("div",{staticClass:"ph-col-12 big"}),t._v(" "),s("div",{staticClass:"ph-col-12 empty"}),t._v(" "),s("div",{staticClass:"ph-col-12"})])])])}]},8954:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"timeline-status-component"},[s("div",{staticClass:"card shadow-sm",staticStyle:{"border-radius":"15px"}},[s("post-header",{attrs:{profile:t.profile,status:t.status},on:{menu:t.openMenu,follow:t.follow,unfollow:t.unfollow}}),t._v(" "),s("post-content",{attrs:{profile:t.profile,status:t.status}}),t._v(" "),t.reactionBar?s("post-reactions",{attrs:{status:t.status,profile:t.profile,admin:t.admin},on:{like:t.like,unlike:t.unlike,share:t.shareStatus,unshare:t.unshareStatus,"likes-modal":t.showLikes,"shares-modal":t.showShares,"toggle-comments":t.showComments,bookmark:t.handleBookmark,"mod-tools":t.openModTools}}):t._e(),t._v(" "),t.showCommentDrawer?s("div",{staticClass:"card-footer rounded-bottom border-0",staticStyle:{background:"rgba(0,0,0,0.02)","z-index":"3"}},[s("comment-drawer",{attrs:{status:t.status,profile:t.profile},on:{"handle-report":t.handleReport,"counter-change":t.counterChange,"show-likes":t.showCommentLikes,follow:t.follow,unfollow:t.unfollow}})],1):t._e()],1)])},i=[]},4493:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("b-modal",{ref:"modal",attrs:{centered:"","hide-header":"","hide-footer":"",scrollable:"","body-class":"p-md-5 user-select-none"}},[0===t.tabIndex?s("div",[s("h2",{staticClass:"text-center font-weight-bold"},[t._v(t._s(t.$t("report.report")))]),t._v(" "),s("p",{staticClass:"text-center"},[t._v(t._s(t.$t("menu.confirmReportText")))]),t._v(" "),t.status&&t.status.hasOwnProperty("account")?s("div",{staticClass:"card shadow-none rounded-lg border my-4"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("img",{staticClass:"mr-3 rounded",staticStyle:{"border-radius":"8px"},attrs:{src:t.status.account.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"h5 primary font-weight-bold mb-1"},[t._v("\n\t\t\t\t\t\t\t@"+t._s(t.status.account.acct)+"\n\t\t\t\t\t\t")]),t._v(" "),t.status.hasOwnProperty("pf_type")&&"text"==t.status.pf_type?s("div",[t.status.content_text.length<=140?s("p",{staticClass:"mb-0"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.status.content_text)+"\n\t\t\t\t\t\t\t")]):s("p",{staticClass:"mb-0"},[t.showFull?s("span",[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.content_text)+"\n\t\t\t\t\t\t\t\t\t"),s("a",{staticClass:"font-weight-bold primary ml-1",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showFull=!1}}},[t._v("Show less")])]):s("span",[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.content_text.substr(0,140)+" ...")+"\n\t\t\t\t\t\t\t\t\t"),s("a",{staticClass:"font-weight-bold primary ml-1",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showFull=!0}}},[t._v("Show full post")])])])]):t.status.hasOwnProperty("pf_type")&&"photo"==t.status.pf_type?s("div",[s("div",{staticClass:"w-100 rounded-lg d-flex justify-content-center mt-3",staticStyle:{background:"#000","max-height":"150px"}},[s("img",{staticClass:"rounded-lg shadow",staticStyle:{width:"100%","max-height":"150px","object-fit":"contain"},attrs:{src:t.status.media_attachments[0].url}})]),t._v(" "),t.status.content_text?s("p",{staticClass:"mt-3 mb-0"},[t.showFull?s("span",[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.content_text)+"\n\t\t\t\t\t\t\t\t\t"),s("a",{staticClass:"font-weight-bold primary ml-1",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showFull=!1}}},[t._v("Show less")])]):s("span",[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.content_text.substr(0,80)+" ...")+"\n\t\t\t\t\t\t\t\t\t"),s("a",{staticClass:"font-weight-bold primary ml-1",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showFull=!0}}},[t._v("Show full post")])])]):t._e()]):t._e()])])])]):t._e(),t._v(" "),s("p",{staticClass:"text-right mb-0 mb-md-n3"},[s("button",{staticClass:"btn btn-light px-3 py-2 mr-3 font-weight-bold",on:{click:t.close}},[t._v(t._s(t.$t("common.cancel")))]),t._v(" "),s("button",{staticClass:"btn btn-primary px-3 py-2 font-weight-bold",staticStyle:{"background-color":"#3B82F6"},on:{click:function(e){t.tabIndex=1}}},[t._v(t._s(t.$t("common.proceed")))])])]):1===t.tabIndex?s("div",[s("h2",{staticClass:"text-center font-weight-bold"},[t._v(t._s(t.$t("report.report")))]),t._v(" "),s("p",{staticClass:"text-center"},[t._v("\n\t\t\t"+t._s(t.$t("report.selectReason"))+"\n\t\t")]),t._v(" "),s("div",{staticClass:"mt-4"},[s("button",{staticClass:"btn btn-light btn-block rounded-pill font-weight-bold text-danger",on:{click:function(e){return t.handleReason("spam")}}},[t._v(t._s(t.$t("menu.spam")))]),t._v(" "),0==t.status.sensitive?s("button",{staticClass:"btn btn-light btn-block rounded-pill font-weight-bold text-danger",on:{click:function(e){return t.handleReason("sensitive")}}},[t._v("Adult or "+t._s(t.$t("menu.sensitive")))]):t._e(),t._v(" "),s("button",{staticClass:"btn btn-light btn-block rounded-pill font-weight-bold text-danger",on:{click:function(e){return t.handleReason("abusive")}}},[t._v(t._s(t.$t("menu.abusive")))]),t._v(" "),s("button",{staticClass:"btn btn-light btn-block rounded-pill font-weight-bold",on:{click:function(e){return t.handleReason("underage")}}},[t._v(t._s(t.$t("menu.underageAccount")))]),t._v(" "),s("button",{staticClass:"btn btn-light btn-block rounded-pill font-weight-bold",on:{click:function(e){return t.handleReason("copyright")}}},[t._v(t._s(t.$t("menu.copyrightInfringement")))]),t._v(" "),s("button",{staticClass:"btn btn-light btn-block rounded-pill font-weight-bold",on:{click:function(e){return t.handleReason("impersonation")}}},[t._v(t._s(t.$t("menu.impersonation")))]),t._v(" "),s("button",{staticClass:"btn btn-light btn-block rounded-pill mt-md-5",on:{click:function(e){t.tabIndex=0}}},[t._v("Go back")])])]):2===t.tabIndex?s("div",[s("div",{staticClass:"my-4 text-center"},[s("b-spinner"),t._v(" "),s("p",{staticClass:"small mb-0"},[t._v(t._s(t.$t("report.sendingReport"))+" ...")])],1)]):3===t.tabIndex?s("div",[s("div",{staticClass:"my-4"},[s("h2",{staticClass:"text-center font-weight-bold mb-3"},[t._v(t._s(t.$t("report.reported")))]),t._v(" "),s("p",{staticClass:"text-center py-2"},[s("span",{staticClass:"fa-stack fa-4x text-success"},[s("i",{staticClass:"far fa-check fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fal fa-circle fa-stack-2x"})])]),t._v(" "),s("p",{staticClass:"lead text-center"},[t._v(t._s(t.$t("report.thanksMsg")))]),t._v(" "),s("hr"),t._v(" "),s("p",{staticClass:"text-center"},[t._v(t._s(t.$t("report.contactAdminMsg"))+", "),s("a",{staticClass:"font-weight-bold primary",attrs:{href:"/site/contact"}},[t._v(t._s(t.$t("common.clickHere")))]),t._v(".")])]),t._v(" "),s("p",{staticClass:"text-center mb-0 mb-md-n3"},[s("button",{staticClass:"btn btn-light btn-block rounded-pill px-3 py-2 mr-3 font-weight-bold",on:{click:t.close}},[t._v(t._s(t.$t("common.close")))])])]):5===t.tabIndex?s("div",[s("div",{staticClass:"my-4"},[s("h2",{staticClass:"text-center font-weight-bold mb-3"},[t._v(t._s(t.$t("common.oops")))]),t._v(" "),s("p",{staticClass:"text-center py-2"},[s("span",{staticClass:"fa-stack fa-3x text-danger"},[s("i",{staticClass:"far fa-times fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fal fa-circle fa-stack-2x"})])]),t._v(" "),s("p",{staticClass:"lead text-center"},[t._v(t._s(t.$t("common.errorMsg")))]),t._v(" "),s("hr"),t._v(" "),s("p",{staticClass:"text-center"},[t._v(t._s(t.$t("report.contactAdminMsg"))+", "),s("a",{staticClass:"font-weight-bold primary",attrs:{href:"/site/contact"}},[t._v(t._s(t.$t("common.clickHere")))]),t._v(".")])]),t._v(" "),s("p",{staticClass:"text-center mb-0 mb-md-n3"},[s("button",{staticClass:"btn btn-light btn-block rounded-pill px-3 py-2 mr-3 font-weight-bold",on:{click:t.close}},[t._v(t._s(t.$t("common.close")))])])]):t._e()])},i=[]},99451:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card card-body shadow-sm mb-3",staticStyle:{"border-radius":"15px"}},[s("img",{staticClass:"img-fluid",staticStyle:{"max-height":"300px",opacity:"0.6"},attrs:{src:"/img/illustrations/dk-nature-man-monochrome.svg"}}),t._v(" "),s("p",{staticClass:"lead mb-0 text-center"},[t._v("This feed is empty")])])}]},72311:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"timeline-onboarding"},[s("div",{staticClass:"card card-body shadow-sm mb-3 p-5",staticStyle:{"border-radius":"15px"}},[s("h1",{staticClass:"text-center mb-4"},[t._v("✨ "+t._s(t.$t("timeline.onboarding.welcome")))]),t._v(" "),s("p",{staticClass:"text-center mb-3",staticStyle:{"font-size":"22px"}},[t._v("\n\t\t\t"+t._s(t.$t("timeline.onboarding.thisIsYourHomeFeed"))+"\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center lead"},[t._v(t._s(t.$t("timeline.onboarding.letUsHelpYouFind")))]),t._v(" "),t.newlyFollowed?s("p",{staticClass:"text-center mb-0"},[s("a",{staticClass:"btn btn-primary btn-lg primary font-weight-bold rounded-pill px-4",attrs:{href:"/i/web",onclick:"location.reload()"}},[t._v("\n\t\t\t\t"+t._s(t.$t("timeline.onboarding.refreshFeed"))+"\n\t\t\t")])]):t._e()]),t._v(" "),s("div",{staticClass:"row"},t._l(t.popularAccounts,(function(e,o){return s("div",{staticClass:"col-12 col-md-6 mb-3"},[s("div",{staticClass:"card shadow-sm border-0 rounded-px"},[s("div",{staticClass:"card-body p-2"},[s("profile-card",{key:"pfc"+o,staticClass:"w-100",attrs:{profile:e},on:{follow:function(e){return t.follow(o)},unfollow:function(e){return t.unfollow(o)}}})],1)])])})),0)])},i=[]},90215:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"post-comment-drawer"},[s("input",{ref:"fileInput",staticClass:"d-none",attrs:{type:"file",accept:"image/jpeg,image/png"},on:{change:t.handleImageUpload}}),t._v(" "),s("div",{staticClass:"post-comment-drawer-feed"},[t.feed.length&&t.feed.length>=1?s("div",{staticClass:"mb-2 sort-menu"},[s("b-dropdown",{ref:"sortMenu",attrs:{size:"sm",variant:"link","toggle-class":"text-decoration-none text-dark font-weight-bold","no-caret":""},scopedSlots:t._u([{key:"button-content",fn:function(){return[t._v("\n\t\t\t\t\tShow "+t._s(t.sorts[t.sortIndex])+" comments "),s("i",{staticClass:"far fa-chevron-down ml-1"})]},proxy:!0}],null,!1,497908856)},[t._v(" "),s("b-dropdown-item",{class:{active:0===t.sortIndex},attrs:{href:"#"},on:{click:function(e){return t.toggleSort(0)}}},[s("p",{staticClass:"title mb-0"},[t._v("All")]),t._v(" "),s("p",{staticClass:"description"},[t._v("All comments in chronological order")])]),t._v(" "),s("b-dropdown-item",{class:{active:1===t.sortIndex},attrs:{href:"#"},on:{click:function(e){return t.toggleSort(1)}}},[s("p",{staticClass:"title mb-0"},[t._v("Newest")]),t._v(" "),s("p",{staticClass:"description"},[t._v("Newest comments appear first")])]),t._v(" "),s("b-dropdown-item",{class:{active:2===t.sortIndex},attrs:{href:"#"},on:{click:function(e){return t.toggleSort(2)}}},[s("p",{staticClass:"title mb-0"},[t._v("Popular")]),t._v(" "),s("p",{staticClass:"description"},[t._v("The most relevant comments appear first")])])],1)],1):t._e(),t._v(" "),t.feedLoading?s("div",{staticClass:"post-comment-drawer-feed-loader"},[s("b-spinner")],1):s("div",[s("transition-group",{attrs:{tag:"div","enter-active-class":"animate__animated animate__fadeIn","leave-active-class":"animate__animated animate__fadeOut",mode:"out-in"}},t._l(t.feed,(function(e,o){return s("div",{key:"cd:"+e.id+":"+o,staticClass:"media media-status align-items-top mb-3"},[s("a",{attrs:{href:"#l"}},[s("img",{staticClass:"shadow-sm media-avatar border",attrs:{src:t.getPostAvatar(e),width:"40",height:"40",draggable:"false",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"media-body-wrapper"},[e.media_attachments.length?s("div",[s("p",{staticClass:"media-body-comment-username"},[s("a",{attrs:{href:e.account.url},on:{click:function(s){return s.preventDefault(),t.goToProfile(e.account)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.account.acct)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e.sensitive?s("div",{staticClass:"bh-comment",on:{click:function(t){e.sensitive=!1}}},[s("blur-hash-image",{staticClass:"img-fluid border shadow",attrs:{width:t.blurhashWidth(e),height:t.blurhashHeight(e),punch:1,hash:e.media_attachments[0].blurhash}}),t._v(" "),s("div",{staticClass:"sensitive-warning"},[s("p",{staticClass:"mb-0"},[s("i",{staticClass:"far fa-eye-slash fa-lg"})]),t._v(" "),s("p",{staticClass:"mb-0 small"},[t._v("Click to view")])])],1):s("div",{staticClass:"bh-comment"},[s("div",{on:{click:function(s){return t.lightbox(e)}}},[s("blur-hash-image",{staticClass:"img-fluid border shadow",attrs:{width:t.blurhashWidth(e),height:t.blurhashHeight(e),punch:1,hash:e.media_attachments[0].blurhash,src:t.getMediaSource(e)}})],1),t._v(" "),e.favourites_count&&!t.hideCounts?s("button",{staticClass:"btn btn-link media-body-likes-count shadow-sm",on:{click:function(e){return e.preventDefault(),t.showLikesModal(o)}}},[s("i",{staticClass:"far fa-thumbs-up primary"}),t._v(" "),s("span",{staticClass:"count"},[t._v(t._s(t.prettyCount(e.favourites_count)))])]):t._e()])]):s("div",{staticClass:"media-body-comment"},[s("p",{staticClass:"media-body-comment-username"},[s("a",{attrs:{href:e.account.url,id:"acpop_"+e.id,tabindex:"0"},on:{click:function(s){return s.preventDefault(),t.goToProfile(e.account)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.account.acct)+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("b-popover",{attrs:{target:"acpop_"+e.id,triggers:"hover",placement:"bottom","custom-class":"shadow border-0 rounded-px",delay:750}},[s("profile-hover-card",{attrs:{profile:e.account},on:{follow:function(e){return t.follow(o)},unfollow:function(e){return t.unfollow(o)}}})],1)],1),t._v(" "),e.sensitive?s("span",[s("p",{staticClass:"mb-0"},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("common.sensitiveContentWarning"))+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("a",{staticClass:"small font-weight-bold primary",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.sensitive=!1}}},[t._v("Show")])]):s("read-more",{attrs:{status:e}}),t._v(" "),e.favourites_count&&!t.hideCounts?s("button",{staticClass:"btn btn-link media-body-likes-count shadow-sm",on:{click:function(e){return e.preventDefault(),t.showLikesModal(o)}}},[s("i",{staticClass:"far fa-thumbs-up primary"}),t._v(" "),s("span",{staticClass:"count"},[t._v(t._s(t.prettyCount(e.favourites_count)))])]):t._e()],1)]),t._v(" "),s("p",{staticClass:"media-body-reactions"},[s("button",{staticClass:"btn btn-link font-weight-bold btn-sm p-0",class:[e.favourited?"primary":"text-muted"],on:{click:function(e){return t.likeComment(o)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t")]),t._v(" "),"public"!=e.visibility?[s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),"unlisted"===e.visibility?s("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip:hover.bottom",arg:"hover",modifiers:{bottom:!0}}],staticClass:"text-lighter",attrs:{title:"This post is unlisted on timelines"}},[s("i",{staticClass:"far fa-unlock fa-sm"})]):"private"===e.visibility?s("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip:hover.bottom",arg:"hover",modifiers:{bottom:!0}}],staticClass:"text-muted",attrs:{title:"This post is only visible to followers of this account"}},[s("i",{staticClass:"far fa-lock fa-sm"})]):t._e()]:t._e(),t._v(" "),s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:e.url},on:{click:function(e){return e.preventDefault(),t.toggleCommentReply(o)}}},[t._v("\n\t\t\t\t\t\t\t\tReply\n\t\t\t\t\t\t\t")]),t._v(" "),s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),t._o(s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:e.url},on:{click:function(s){return s.preventDefault(),t.goToPost(e)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.timeago(e.created_at))+"\n\t\t\t\t\t\t\t")]),0,"cd:"+e.id+":"+o),t._v(" "),t.profile&&e.account.id===t.profile.id?s("span",[s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteComment(o)}}},[t._v("\n\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t")])]):s("span",[s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.reportComment(o)}}},[t._v("\n\t\t\t\t\t\t\t\t\tReport\n\t\t\t\t\t\t\t\t")])])],2),t._v(" "),e.reply_count?[e.replies.replies_show||t.commentReplyIndex===o?s("div",{staticClass:"media-body-show-replies"},[s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.hideCommentReplies(o)}}},[s("i",{staticClass:"media-body-show-replies-icon"}),t._v(" "),s("span",{staticClass:"media-body-show-replies-label"},[t._v("Hide "+t._s(t.prettyCount(e.reply_count))+" replies")])])]):s("div",{staticClass:"media-body-show-replies"},[s("a",{staticClass:"font-weight-bold primary",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showCommentReplies(o)}}},[s("i",{staticClass:"media-body-show-replies-icon"}),t._v(" "),s("span",{staticClass:"media-body-show-replies-label"},[t._v("Show "+t._s(t.prettyCount(e.reply_count))+" replies")])])])]:t._e(),t._v(" "),e.replies_show?s("comment-replies",{staticClass:"mt-3",attrs:{status:e,feed:t.feed[o].replies},on:{"counter-change":function(e){return t.replyCounterChange(o,e)}}}):t._e(),t._v(" "),1==e.replies_show&&t.commentReplyIndex==o&&t.feed[o].reply_count>3?s("div",[s("div",{staticClass:"media-body-show-replies mt-n3"},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.goToPost(e)}}},[s("i",{staticClass:"media-body-show-replies-icon"}),t._v(" "),s("span",{staticClass:"media-body-show-replies-label"},[t._v("View full thread")])])])]):t._e(),t._v(" "),t.commentReplyIndex==o?s("comment-reply-form",{attrs:{"parent-id":e.id},on:{"new-comment":function(e){return t.pushCommentReply(o,e)},"counter-change":t.handleCounterChange}}):t._e()],2)])})),0)],1)]),t._v(" "),!t.feedLoading&&t.canLoadMore?s("div",{staticClass:"post-comment-drawer-loadmore"},[s("p",[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.fetchMore()}}},[t._v("Load more comments…")])])]):t._e(),t._v(" "),t.showEmptyRepliesRefresh?s("div",{staticClass:"post-comment-drawer-loadmore"},[s("p",{staticClass:"text-center mb-4"},[s("a",{staticClass:"btn btn-outline-primary font-weight-bold rounded-pill",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.forceRefresh()}}},[s("i",{staticClass:"far fa-sync mr-2"}),t._v(" Refresh\n\t\t\t")])])]):t._e(),t._v(" "),s("div",{staticClass:"d-flex align-items-top reply-form child-reply-form"},[s("img",{staticClass:"shadow-sm media-avatar border",attrs:{src:t.profile.avatar,width:"40",height:"40"}}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.settings.expanded,expression:"!settings.expanded"}],staticClass:"w-100"},[s("vue-tribute",{attrs:{options:t.tributeSettings}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.replyContent,expression:"replyContent"}],staticClass:"form-control bg-light rounded-pill shadow-sm",staticStyle:{"padding-right":"140px"},attrs:{placeholder:"Write a comment....",disabled:t.isPostingReply},domProps:{value:t.replyContent},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.storeComment.apply(null,arguments)},input:function(e){e.target.composing||(t.replyContent=e.target.value)}}})])],1),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.settings.expanded,expression:"settings.expanded"}],staticClass:"w-100"},[s("vue-tribute",{attrs:{options:t.tributeSettings}},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyContent,expression:"replyContent"}],staticClass:"form-control bg-light rounded-sm shadow-sm",staticStyle:{resize:"none","padding-right":"140px"},attrs:{placeholder:"Write a comment....",rows:"5",disabled:t.isPostingReply},domProps:{value:t.replyContent},on:{input:function(e){e.target.composing||(t.replyContent=e.target.value)}}})])],1),t._v(" "),s("div",{staticClass:"reply-form-input-actions",class:{open:t.settings.expanded}},[s("button",{staticClass:"btn btn-link text-muted px-1 mr-2",on:{click:function(e){return t.replyUpload()}}},[s("i",{staticClass:"far fa-image fa-lg"})]),t._v(" "),s("button",{staticClass:"btn btn-link text-muted px-1 mr-2",on:{click:function(e){return t.toggleReplyExpand()}}},[s("i",{staticClass:"far fa-text-size fa-lg"})]),t._v(" "),s("button",{staticClass:"btn btn-link text-muted px-1 small font-weight-bold py-0 rounded-pill text-decoration-none",on:{click:t.toggleShowReplyOptions}},[s("i",{staticClass:"far fa-ellipsis-h"})])])]),t._v(" "),t.showReplyOptions?s("div",{staticClass:"child-reply-form-options mt-2",staticStyle:{"margin-left":"60px"}},[s("b-form-checkbox",{attrs:{switch:""},model:{value:t.settings.sensitive,callback:function(e){t.$set(t.settings,"sensitive",e)},expression:"settings.sensitive"}},[t._v("\n\t\t\t"+t._s(t.$t("common.sensitive"))+"\n\t\t")])],1):t._e(),t._v(" "),t.replyContent&&t.replyContent.length?s("div",{staticClass:"text-right mt-2"},[s("button",{staticClass:"btn btn-primary btn-sm font-weight-bold primary rounded-pill px-4",on:{click:t.storeComment}},[t._v(t._s(t.$t("common.comment")))])]):t._e(),t._v(" "),s("b-modal",{ref:"lightboxModal",attrs:{id:"lightbox","hide-header":!0,"hide-footer":!0,centered:"",size:"lg","body-class":"p-0","content-class":"bg-transparent border-0"}},[t.lightboxStatus?s("div",{on:{click:t.hideLightbox}},[s("img",{staticStyle:{width:"100%","max-height":"90vh","object-fit":"contain"},attrs:{src:t.lightboxStatus.url}})]):t._e()])],1)},i=[]},49209:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"comment-replies-component"},[t.loading?s("div",{staticClass:"mt-n2"},[t._m(0)]):[s("transition-group",{attrs:{tag:"div","enter-active-class":"animate__animated animate__fadeIn","leave-active-class":"animate__animated animate__fadeOut",mode:"out-in"}},t._l(t.feed,(function(e,o){return s("div",{key:"cd:"+e.id+":"+o},[s("div",{staticClass:"media media-status align-items-top mb-3"},[s("a",{attrs:{href:"#l"}},[s("img",{staticClass:"shadow-sm media-avatar border",attrs:{src:e.account.avatar,width:"40",height:"40",draggable:"false",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"media-body-wrapper"},[e.media_attachments.length?s("div",[s("p",{staticClass:"media-body-comment-username"},[s("a",{attrs:{href:e.account.url},on:{click:function(s){return s.preventDefault(),t.goToProfile(e.account)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.account.acct)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e.sensitive?s("div",{staticClass:"bh-comment",on:{click:function(t){e.sensitive=!1}}},[s("blur-hash-image",{staticClass:"img-fluid border shadow",attrs:{width:t.blurhashWidth(e),height:t.blurhashHeight(e),punch:1,hash:e.media_attachments[0].blurhash}}),t._v(" "),s("div",{staticClass:"sensitive-warning"},[s("p",{staticClass:"mb-0"},[s("i",{staticClass:"far fa-eye-slash fa-lg"})]),t._v(" "),s("p",{staticClass:"mb-0 small"},[t._v("Click to view")])])],1):s("div",{staticClass:"bh-comment"},[s("div",{on:{click:function(s){return t.lightbox(e)}}},[s("blur-hash-image",{staticClass:"img-fluid border shadow",attrs:{width:t.blurhashWidth(e),height:t.blurhashHeight(e),punch:1,hash:e.media_attachments[0].blurhash,src:t.getMediaSource(e)}})],1),t._v(" "),e.favourites_count?s("button",{staticClass:"btn btn-link media-body-likes-count shadow-sm",on:{click:function(e){return e.preventDefault(),t.showLikesModal(o)}}},[s("i",{staticClass:"far fa-thumbs-up primary"}),t._v(" "),s("span",{staticClass:"count"},[t._v(t._s(t.prettyCount(e.favourites_count)))])]):t._e()])]):s("div",{staticClass:"media-body-comment"},[s("p",{staticClass:"media-body-comment-username"},[s("a",{attrs:{href:e.account.url},on:{click:function(s){return s.preventDefault(),t.goToProfile(e.account)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.account.acct)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e.sensitive?s("span",[s("p",{staticClass:"mb-0"},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("common.sensitiveContentWarning"))+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("a",{staticClass:"small font-weight-bold primary",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.sensitive=!1}}},[t._v("Show")])]):s("read-more",{attrs:{status:e}}),t._v(" "),e.favourites_count?s("button",{staticClass:"btn btn-link media-body-likes-count shadow-sm",on:{click:function(e){return e.preventDefault(),t.showLikesModal(o)}}},[s("i",{staticClass:"far fa-thumbs-up primary"}),t._v(" "),s("span",{staticClass:"count"},[t._v(t._s(t.prettyCount(e.favourites_count)))])]):t._e()],1)]),t._v(" "),s("p",{staticClass:"media-body-reactions"},[s("button",{staticClass:"btn btn-link font-weight-bold btn-sm p-0",class:[e.favourited?"primary":"text-muted"],on:{click:function(e){return t.likeComment(o)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t")]),t._v(" "),s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),t._o(s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:e.url},on:{click:function(s){return s.preventDefault(),t.goToPost(e)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.timeago(e.created_at))+"\n\t\t\t\t\t\t\t")]),0,"cd:"+e.id+":"+o),t._v(" "),t.profile&&e.account.id===t.profile.id?s("span",[s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteComment(o)}}},[t._v("\n\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t")])]):s("span",[s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.reportComment(o)}}},[t._v("\n\t\t\t\t\t\t\t\t\tReport\n\t\t\t\t\t\t\t\t")])])])])])])})),0)]],2)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"ph-item border-0 mb-0 p-0 bg-transparent",staticStyle:{"border-radius":"15px","margin-left":"-14px"}},[s("div",{staticClass:"ph-col-12 mb-0"},[s("div",{staticClass:"ph-row align-items-center mt-0"},[s("div",{staticClass:"ph-avatar mr-3 d-flex",staticStyle:{"min-width":"40px",width:"40px!important",height:"40px!important","border-radius":"8px"}}),t._v(" "),s("div",{staticClass:"ph-col-6"})])])])}]},64084:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-flex align-items-top reply-form child-reply-form my-3"},[s("img",{staticClass:"shadow-sm media-avatar border",attrs:{src:t.profile.avatar,width:"40",height:"40"}}),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.replyContent,expression:"replyContent"}],staticClass:"form-control bg-light rounded-pill shadow-sm",staticStyle:{"border-color":"#e2e8f0 !important"},attrs:{placeholder:"Write a comment....",disabled:t.isPostingReply},domProps:{value:t.replyContent},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.storeComment.apply(null,arguments)},input:function(e){e.target.composing||(t.replyContent=e.target.value)}}})])},i=[]},94122:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-stack"},[s("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.viewPost"))+"\n\t\t\t")]):t._e(),t._v(" "),"archived"!==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToProfile()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.viewProfile"))+"\n\t\t\t")]):t._e(),t._v(" "),"archived"!==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuShare()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("common.share"))+"\n\t\t\t")]):t._e(),t._v(" "),t.status&&t.profile&&1==t.profile.is_admin&&"archived"!==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxModMenuShow()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.moderationTools"))+"\n\t\t\t")]):t._e(),t._v(" "),t.status&&t.status.account.id!=t.profile.id?s("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.report"))+"\n\t\t\t")]):t._e(),t._v(" "),t.status&&t.profile.id==t.status.account.id&&"archived"!==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.archivePost(t.status)}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.archive"))+"\n\t\t\t")]):t._e(),t._v(" "),t.status&&t.profile.id==t.status.account.id&&"archived"==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.unarchivePost(t.status)}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.unarchive"))+"\n\t\t\t")]):t._e(),t._v(" "),t.status&&(t.profile.is_admin||t.profile.id==t.status.account.id)&&"archived"!==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("\n\t\t\t\t"+t._s(t.$t("common.delete"))+"\n\t\t\t")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("common.cancel"))+"\n\t\t\t")])])]),t._v(" "),s("b-modal",{ref:"ctxModModal",attrs:{id:"ctx-mod-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("menu.moderationTools"))+"\n\t\t\t\t")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("menu.selectOneOption"))+"\n\t\t\t\t")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"unlist")}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.unlistFromTimelines"))+"\n\t\t\t")]),t._v(" "),t.status.sensitive?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.removeCW"))+"\n\t\t\t")]):s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"addcw")}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.addCW"))+"\n\t\t\t")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"spammer")}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.markAsSpammer"))),s("br"),t._v(" "),s("span",{staticClass:"small"},[t._v(t._s(t.$t("menu.markAsSpammerText")))])]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("common.cancel"))+"\n\t\t\t")])])]),t._v(" "),s("b-modal",{ref:"ctxModOtherModal",attrs:{id:"ctx-mod-other-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v(t._s(t.$t("menu.moderationTools")))]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v(t._s(t.$t("menu.selectOneOption")))]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v(t._s(t.$t("common.cancel")))])])]),t._v(" "),s("b-modal",{ref:"ctxShareModal",attrs:{id:"ctx-share-modal",title:"Share","hide-footer":"","hide-header":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded text-center"}},[s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.shareStatus(t.status,e)}}},[t._v(t._s(t.status.reblogged?"Unshare":"Share")+" "+t._s(t.$t("menu.toFollowers")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v(t._s(t.$t("common.copyLink")))]),t._v(" "),t.status&&1==t.status.local&&!t.status.in_reply_to_id?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v(t._s(t.$t("menu.embed")))]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v(t._s(t.$t("common.cancel")))])]),t._v(" "),s("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[s("div",[s("div",{staticClass:"form-group"},[s("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:"8",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[s("div",{staticClass:"form-check mr-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowCaption,expression:"ctxEmbedShowCaption"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowCaption)?t._i(t.ctxEmbedShowCaption,null)>-1:t.ctxEmbedShowCaption},on:{change:function(e){var s=t.ctxEmbedShowCaption,o=e.target,i=!!o.checked;if(Array.isArray(s)){var n=t._i(s,null);o.checked?n<0&&(t.ctxEmbedShowCaption=s.concat([null])):n>-1&&(t.ctxEmbedShowCaption=s.slice(0,n).concat(s.slice(n+1)))}else t.ctxEmbedShowCaption=i}}}),t._v(" "),s("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\t"+t._s(t.$t("menu.showCaption"))+"\n\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"form-check mr-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowLikes,expression:"ctxEmbedShowLikes"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowLikes)?t._i(t.ctxEmbedShowLikes,null)>-1:t.ctxEmbedShowLikes},on:{change:function(e){var s=t.ctxEmbedShowLikes,o=e.target,i=!!o.checked;if(Array.isArray(s)){var n=t._i(s,null);o.checked?n<0&&(t.ctxEmbedShowLikes=s.concat([null])):n>-1&&(t.ctxEmbedShowLikes=s.slice(0,n).concat(s.slice(n+1)))}else t.ctxEmbedShowLikes=i}}}),t._v(" "),s("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\t"+t._s(t.$t("menu.showLikes"))+"\n\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"form-check"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedCompactMode,expression:"ctxEmbedCompactMode"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.ctxEmbedCompactMode)?t._i(t.ctxEmbedCompactMode,null)>-1:t.ctxEmbedCompactMode},on:{change:function(e){var s=t.ctxEmbedCompactMode,o=e.target,i=!!o.checked;if(Array.isArray(s)){var n=t._i(s,null);o.checked?n<0&&(t.ctxEmbedCompactMode=s.concat([null])):n>-1&&(t.ctxEmbedCompactMode=s.slice(0,n).concat(s.slice(n+1)))}else t.ctxEmbedCompactMode=i}}}),t._v(" "),s("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\t"+t._s(t.$t("menu.compactMode"))+"\n\t\t\t\t\t")])])]),t._v(" "),s("hr"),t._v(" "),s("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(" "),s("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v(t._s(t.$t("menu.embedConfirmText"))+" "),s("a",{attrs:{href:"/site/terms"}},[t._v(t._s(t.$t("site.terms")))])])])]),t._v(" "),s("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v(t._s(t.$t("menu.report")))]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v(t._s(t.$t("menu.selectOneOption")))]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v(t._s(t.$t("menu.spam")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("sensitive")}}},[t._v(t._s(t.$t("menu.sensitive")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("abusive")}}},[t._v(t._s(t.$t("menu.abusive")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v(t._s(t.$t("common.other")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v(t._s(t.$t("common.cancel")))])])]),t._v(" "),s("b-modal",{ref:"ctxReportOther",attrs:{id:"ctx-report-other","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v(t._s(t.$t("menu.report")))]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v(t._s(t.$t("menu.selectOneOption")))]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("underage")}}},[t._v(t._s(t.$t("menu.underageAccount")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("copyright")}}},[t._v(t._s(t.$t("menu.copyrightInfringement")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v(t._s(t.$t("menu.impersonation")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("scam")}}},[t._v(t._s(t.$t("menu.scamOrFraud")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v(t._s(t.$t("common.cancel")))])])]),t._v(" "),s("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[s("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),s("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[s("button",{staticClass:"btn btn-outline-lighter border-left-0 border-top-0 border-bottom-0 border-right py-2",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalCancel()}}},[t._v(t._s(t.$t("common.cancel")))]),t._v(" "),s("button",{staticClass:"btn btn-outline-lighter border-0",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalConfirm()}}},[t._v("Confirm")])])])],1)},i=[]},72729:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"list-group-item border-left-0 border-right-0 px-3"},[s("div",{staticClass:"ph-item border-0 p-0 m-0 align-items-center"},[s("div",{staticClass:"p-0 mb-0",staticStyle:{flex:"unset"}},[s("div",{staticClass:"ph-avatar",staticStyle:{"min-width":"40px !important",width:"40px !important",height:"40px"}})]),t._v(" "),s("div",{staticClass:"ph-col-9 mb-0"},[s("div",{staticClass:"ph-row"},[s("div",{staticClass:"ph-col-12"}),t._v(" "),s("div",{staticClass:"ph-col-12"})])])])])}]},51364:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("b-modal",{ref:"likesModal",attrs:{centered:"",size:"md",scrollable:!0,"hide-footer":"","header-class":"py-2","body-class":"p-0","title-class":"w-100 text-center pl-4 font-weight-bold","title-tag":"p",title:t.$t("common.likes")}},[t.isLoading?s("div",{staticClass:"likes-loader list-group border-top-0",staticStyle:{"max-height":"500px"}},[s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder")],1):s("div",[t.likes.length?s("div",{staticClass:"list-group",staticStyle:{"max-height":"500px"}},[t._l(t.likes,(function(e,o){return s("div",{staticClass:"list-group-item border-left-0 border-right-0 px-3",class:[0===o?"border-top-0":""]},[s("div",{staticClass:"media align-items-center"},[s("img",{staticClass:"mr-3 shadow-sm",staticStyle:{"border-radius":"8px"},attrs:{src:e.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0 text-truncate"},[s("a",{staticClass:"text-dark font-weight-bold text-decoration-none",attrs:{href:e.url},on:{click:function(s){return s.preventDefault(),t.goToProfile(e)}}},[t._v(t._s(t.getUsername(e)))])]),t._v(" "),s("p",{staticClass:"mb-0 mt-n1 text-dark font-weight-bold small text-break"},[t._v("@"+t._s(e.acct))])]),t._v(" "),s("div",[e.follows?s("button",{staticClass:"btn btn-outline-muted rounded-pill btn-sm font-weight-bold",staticStyle:{width:"110px"},attrs:{disabled:t.isUpdatingFollowState},on:{click:function(e){return t.handleUnfollow(o)}}},[t.isUpdatingFollowState&&t.followStateIndex===o?s("span",[s("b-spinner",{attrs:{small:""}})],1):s("span",[t._v("Following")])]):e.follows?t._e():s("button",{staticClass:"btn btn-primary rounded-pill btn-sm font-weight-bold",staticStyle:{width:"110px"},attrs:{disabled:t.isUpdatingFollowState},on:{click:function(e){return t.handleFollow(o)}}},[t.isUpdatingFollowState&&t.followStateIndex===o?s("span",[s("b-spinner",{attrs:{small:""}})],1):s("span",[t._v("Follow")])])])])])})),t._v(" "),t.canLoadMore?s("div",[s("intersect",{on:{enter:t.enterIntersect}},[s("like-placeholder",{staticClass:"border-top-0"})],1),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder")],1):t._e()],2):s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"140px"}},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.$t("post.noLikes")))])])])])],1)},i=[]},53458:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"timeline-status-component-content"},["poll"===t.status.pf_type?s("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}}):t.fixedHeight?s("div",{staticClass:"card-body p-0"},["photo"===t.status.pf_type?s("div",{class:{fixedHeight:t.fixedHeight}},[1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\t\t\t\t"+t._s(t.$t("common.sensitiveContent"))+"\n\t\t\t\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:t.$t("common.sensitiveContentWarning"))+"\n\t\t\t\t\t")]),t._v(" "),s("p",{staticClass:"mb-0"},[s("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),s("blur-hash-image",{staticClass:"blurhash-wrapper",attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash}})],1):s("div",{staticClass:"content-label-wrapper",staticStyle:{position:"relative",width:"100%",height:"400px",overflow:"hidden","z-index":"1"},on:{click:function(e){return e.preventDefault(),t.toggleLightbox.apply(null,arguments)}}},[s("img",{staticStyle:{position:"absolute",width:"105%",height:"410px","object-fit":"cover","z-index":"1",top:"0",left:"0",filter:"brightness(0.35) blur(6px)",margin:"-5px"},attrs:{src:t.status.media_attachments[0].url}}),t._v(" "),s("blur-hash-image",{key:t.key,staticClass:"blurhash-wrapper",staticStyle:{width:"100%",position:"absolute","z-index":"9",top:"0:left:0"},attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,src:t.status.media_attachments[0].url}}),t._v(" "),!t.status.sensitive&&t.sensitive?s("p",{staticStyle:{"margin-top":"0",padding:"10px",color:"#000","font-size":"10px","text-align":"right",position:"absolute",top:"0",right:"0","border-radius":"11px",cursor:"pointer",background:"rgba(255, 255, 255,.5)"},on:{click:function(e){t.status.sensitive=!0}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e()],1)]):"video"===t.status.pf_type?[1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(1),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\t\t\t\tSensitive Content\n\t\t\t\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This post may contain sensitive content.")+"\n\t\t\t\t\t")]),t._v(" "),s("p",{staticClass:"mb-0"},[s("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){t.status.sensitive=!1}}},[t._v("See Post")])])])]):s("video",{staticClass:"card-img-top shadow",class:{fixedHeight:t.fixedHeight},staticStyle:{"border-radius":"15px","object-fit":"contain","background-color":"#000"},attrs:{controls:""}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])]:"photo:album"===t.status.pf_type?s("div",{staticClass:"card-img-top shadow",staticStyle:{"border-radius":"15px"}},[s("photo-album-presenter",{class:{fixedHeight:t.fixedHeight},staticStyle:{"border-radius":"15px !important","object-fit":"contain","background-color":"#000",overflow:"hidden"},attrs:{status:t.status},on:{lightbox:t.toggleLightbox,togglecw:function(e){return t.toggleContentWarning()}}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"card-img-top shadow",staticStyle:{"border-radius":"15px"}},[s("mixed-album-presenter",{class:{fixedHeight:t.fixedHeight},staticStyle:{"border-radius":"15px !important","object-fit":"contain","background-color":"#000",overflow:"hidden","align-items":"center"},attrs:{status:t.status},on:{lightbox:t.toggleLightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"text"===t.status.pf_type?s("div"):s("div",{staticClass:"bg-light rounded-lg d-flex align-items-center justify-content-center",staticStyle:{height:"400px"}},[s("div",[t._m(2),t._v(" "),s("p",{staticClass:"lead text-center mb-0"},[t._v("\n\t\t\t\t\tCannot display post\n\t\t\t\t")]),t._v(" "),s("p",{staticClass:"small text-center mb-0"},[t._v("\n\t\t\t\t\t"+t._s(t.status.pf_type)+":"+t._s(t.status.id)+"\n\t\t\t\t")])])])],2):s("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.toggleLightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.toggleLightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.toggleLightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):t._e()]),t._v(" "),t.status.content&&!t.status.sensitive?s("div",{staticClass:"card-body status-text",class:["text"===t.status.pf_type?"py-0":"pb-0"]},[s("p",[s("read-more",{attrs:{status:t.status,"cursor-limit":300}})],1)]):t._e()])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle fa-4x"})])}]},24514:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card-header border-0",staticStyle:{"border-top-left-radius":"15px","border-top-right-radius":"15px"}},[s("div",{staticClass:"media align-items-center"},[s("a",{staticClass:"mr-3",attrs:{href:t.status.account.url},on:{click:function(e){return e.preventDefault(),t.goToProfile()}}},[s("img",{staticStyle:{"border-radius":"15px"},attrs:{src:t.getStatusAvatar(),width:"50",height:"50",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"font-weight-bold username"},[s("a",{staticClass:"primary",attrs:{href:t.status.account.url,id:"apop_"+t.status.id},on:{click:function(e){return e.preventDefault(),t.goToProfile.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t")]),t._v(" "),s("b-popover",{attrs:{target:"apop_"+t.status.id,triggers:"hover",placement:"bottom","custom-class":"shadow border-0 rounded-px"}},[s("profile-hover-card",{attrs:{profile:t.status.account},on:{follow:t.follow,unfollow:t.unfollow}})],1)],1),t._v(" "),s("p",{staticClass:"text-lighter mb-0",staticStyle:{"font-size":"13px"}},[t.status.account.is_admin?s("span",[s("span",{staticClass:"badge badge-light text-danger user-select-none",attrs:{title:"Admin account"}},[t._v("ADMIN")]),t._v(" "),s("span",{staticClass:"mx-1 text-lighter"},[t._v("·")])]):t._e(),t._v(" "),s("a",{staticClass:"timestamp text-lighter",attrs:{href:t.status.url,title:t.status.created_at},on:{click:function(e){return e.preventDefault(),t.goToPost()}}},[t._v("\n\t\t\t\t\t"+t._s(t.timeago(t.status.created_at))+"\n\t\t\t\t")]),t._v(" "),s("span",{staticClass:"mx-1 text-lighter"},[t._v("·")]),t._v(" "),s("span",{staticClass:"visibility",attrs:{title:t.scopeTitle(t.status.visibility)}},[s("i",{class:t.scopeIcon(t.status.visibility)})]),t._v(" "),t.license?s("span",[s("span",{staticClass:"mx-1 text-lighter user-select-none"},[t._v("·")]),t._v(" "),t.license.id<7?s("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],staticClass:"visibility user-select-none",attrs:{title:"This work is licensed under a "+t.license.title+" license"}},[t._v(t._s(t.license.title))]):s("a",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],staticClass:"visibility user-select-none",attrs:{title:"This work is licensed under a "+t.license.title+" license",href:t.license.url,target:"_blank"}},[t._v(t._s(t.license.title))])]):t._e(),t._v(" "),t.status.place&&t.status.place.hasOwnProperty("name")?s("span",[s("span",{staticClass:"mx-1 text-lighter"},[t._v("·")]),t._v(" "),s("span",{staticClass:"location"},[s("i",{staticClass:"far fa-map-marker-alt"}),t._v(" "+t._s(t.status.place.name)+", "+t._s(t.status.place.country))])]):t._e()])]),t._v(" "),t.useDropdownMenu?s("b-dropdown",{attrs:{"no-caret":"",right:"",variant:"link","toggle-class":"text-lighter",html:""}},[s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.$t("menu.viewPost")))])]),t._v(" "),s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.$t("common.copyLink")))])]),t._v(" "),t.status.local?s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.$t("menu.embed")))])]):t._e(),t._v(" "),t.owner?t._e():s("b-dropdown-divider"),t._v(" "),t.owner?t._e():s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.$t("menu.report")))]),t._v(" "),s("p",{staticClass:"small text-muted mb-0"},[t._v("Report content that violate our rules")])]),t._v(" "),!t.owner&&t.status.hasOwnProperty("relationship")?s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.status.relationship.muting?"Unmute":"Mute"))]),t._v(" "),s("p",{staticClass:"small text-muted mb-0"},[t._v("Hide posts from this account in your feeds")])]):t._e(),t._v(" "),!t.owner&&t.status.hasOwnProperty("relationship")?s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold text-danger"},[t._v(t._s(t.status.relationship.blocking?"Unblock":"Block"))]),t._v(" "),s("p",{staticClass:"small text-muted mb-0"},[t._v("Restrict all content from this account")])]):t._e(),t._v(" "),t.owner||t.admin?s("b-dropdown-divider"):t._e(),t._v(" "),t.owner||t.admin?s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold text-danger"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("common.delete"))+"\n\t\t\t\t")])]):t._e()],1):s("button",{staticClass:"btn btn-link text-lighter",on:{click:t.openMenu}},[s("i",{staticClass:"far fa-ellipsis-v fa-lg"})])],1)])},i=[]},64295:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"px-3 my-3",staticStyle:{"z-index":"3"}},[(t.status.favourites_count||t.status.reblogs_count)&&(t.status.hasOwnProperty("liked_by")&&t.status.liked_by.url||t.status.hasOwnProperty("reblogs_count")&&t.status.reblogs_count)?s("div",{staticClass:"mb-0 d-flex justify-content-between"},[!t.hideCounts&&t.status.favourites_count?s("p",{staticClass:"mb-2 reaction-liked-by"},[t._v("\n\t\t\tLiked by\n\t\t\t"),1==t.status.favourites_count&&1==t.status.favourited?s("span",{staticClass:"font-weight-bold"},[t._v("me")]):s("span",[s("router-link",{staticClass:"primary font-weight-bold",attrs:{to:"/i/web/profile/"+t.status.liked_by.id}},[t._v("@"+t._s(t.status.liked_by.username))]),t._v(" "),t.status.liked_by.others||t.status.favourites_count>1?s("span",[t._v("\n\t\t\t\t\tand "),s("a",{staticClass:"primary font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showLikes()}}},[t._v(t._s(t.count(t.status.favourites_count-1))+" others")])]):t._e()],1)]):t._e(),t._v(" "),!t.hideCounts&&t.status.reblogs_count?s("p",{staticClass:"mb-2 reaction-liked-by"},[t._v("\n\t\t\tShared by\n\t\t\t"),1==t.status.reblogs_count&&1==t.status.reblogged?s("span",{staticClass:"font-weight-bold"},[t._v("me")]):s("a",{staticClass:"primary font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showShares()}}},[t._v("\n\t\t\t\t"+t._s(t.count(t.status.reblogs_count))+" "+t._s(t.status.reblogs_count>1?"others":"other")+"\n\t\t\t")])]):t._e()]):t._e(),t._v(" "),s("div",{staticClass:"d-flex justify-content-between",staticStyle:{"font-size":"14px !important"}},[s("div",[s("button",{staticClass:"btn btn-light font-weight-bold rounded-pill mr-2",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.like()}}},[t.status.favourited?s("span",{staticClass:"primary"},[s("i",{staticClass:"fas fa-heart mr-md-1 text-danger fa-lg"})]):s("span",[s("i",{staticClass:"far fa-heart mr-md-2"})]),t._v(" "),t.likesCount&&!t.hideCounts?s("span",[t._v("\n\t\t\t\t\t"+t._s(t.count(t.likesCount))+"\n\t\t\t\t\t"),s("span",{staticClass:"d-none d-md-inline"},[t._v(t._s(1==t.likesCount?t.$t("common.like"):t.$t("common.likes")))])]):s("span",[s("span",{staticClass:"d-none d-md-inline"},[t._v(t._s(t.$t("common.like")))])])]),t._v(" "),s("button",{staticClass:"btn btn-light font-weight-bold rounded-pill mr-2 px-3",attrs:{type:"button"},on:{click:function(e){return t.showComments()}}},[s("i",{staticClass:"far fa-comment mr-md-2"}),t._v(" "),t.replyCount&&!t.hideCounts?s("span",[t._v("\n\t\t\t\t\t"+t._s(t.count(t.replyCount))+"\n\t\t\t\t\t"),s("span",{staticClass:"d-none d-md-inline"},[t._v(t._s(1==t.replyCount?t.$t("common.comment"):t.$t("common.comments")))])]):s("span",[s("span",{staticClass:"d-none d-md-inline"},[t._v(t._s(t.$t("common.comment")))])])])]),t._v(" "),s("div",[s("button",{staticClass:"btn btn-light font-weight-bold rounded-pill mr-3",attrs:{type:"button",disabled:t.isReblogging},on:{click:function(e){return t.handleReblog()}}},[t.isReblogging?s("span",[s("b-spinner",{attrs:{variant:"warning",small:""}})],1):s("span",[1==t.status.reblogged?s("i",{staticClass:"fas fa-retweet fa-lg text-warning"}):s("i",{staticClass:"far fa-retweet"}),t._v(" "),t.status.reblogs_count&&!t.hideCounts?s("span",{staticClass:"ml-md-2"},[t._v("\n\t\t\t\t\t\t"+t._s(t.count(t.status.reblogs_count))+"\n\t\t\t\t\t")]):t._e()])]),t._v(" "),s("button",{staticClass:"btn btn-light font-weight-bold rounded-pill",attrs:{type:"button",disabled:t.isBookmarking},on:{click:function(e){return t.handleBookmark()}}},[t.isBookmarking?s("span",[s("b-spinner",{attrs:{variant:"warning",small:""}})],1):s("span",[t.status.hasOwnProperty("bookmarked_at")||t.status.hasOwnProperty("bookmarked")&&1==t.status.bookmarked?s("i",{staticClass:"fas fa-bookmark fa-lg text-warning"}):s("i",{staticClass:"far fa-bookmark"})])]),t._v(" "),t.admin?s("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"ml-3 btn btn-light font-weight-bold rounded-pill",attrs:{type:"button",title:"Moderation Tools"},on:{click:function(e){return t.openModTools()}}},[s("i",{staticClass:"far fa-user-crown"})]):t._e()])])])},i=[]},20512:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"read-more-component",staticStyle:{"word-break":"break-word"}},[s("div",{domProps:{innerHTML:t._s(t.content)}})])},i=[]},34392:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("b-modal",{ref:"likesModal",attrs:{centered:"",size:"md",scrollable:!0,"hide-footer":"","header-class":"py-2","body-class":"p-0","title-class":"w-100 text-center pl-4 font-weight-bold","title-tag":"p",title:"Shared By"}},[t.isLoading?s("div",{staticClass:"likes-loader list-group border-top-0",staticStyle:{"max-height":"500px"}},[s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder")],1):s("div",[t.likes.length?s("div",{staticClass:"list-group",staticStyle:{"max-height":"500px"}},[t._l(t.likes,(function(e,o){return s("div",{staticClass:"list-group-item border-left-0 border-right-0 px-3",class:[0===o?"border-top-0":""]},[s("div",{staticClass:"media align-items-center"},[s("img",{staticClass:"mr-3 shadow-sm",staticStyle:{"border-radius":"8px"},attrs:{src:e.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0 text-truncate"},[s("a",{staticClass:"text-dark font-weight-bold text-decoration-none",attrs:{href:e.url},on:{click:function(s){return s.preventDefault(),t.goToProfile(e)}}},[t._v(t._s(t.getUsername(e)))])]),t._v(" "),s("p",{staticClass:"mb-0 mt-n1 text-dark font-weight-bold small text-break"},[t._v("@"+t._s(e.acct))])]),t._v(" "),s("div")])])})),t._v(" "),t.canLoadMore?s("div",[s("intersect",{on:{enter:t.enterIntersect}},[s("like-placeholder",{staticClass:"border-top-0"})],1),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder")],1):t._e()],2):s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"140px"}},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v("Nobody has shared this yet!")])])])])],1)},i=[]},47455:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"profile-hover-card"},[s("div",{staticClass:"profile-hover-card-inner"},[s("div",{staticClass:"d-flex justify-content-between align-items-start",staticStyle:{"max-width":"240px"}},[s("a",{attrs:{href:t.profile.url},on:{click:function(e){return e.preventDefault(),t.goToProfile()}}},[s("img",{staticClass:"avatar",attrs:{src:t.profile.avatar,width:"50",height:"50",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})]),t._v(" "),t.user.id==t.profile.id?s("div",[s("a",{staticClass:"btn btn-outline-primary px-3 py-1 font-weight-bold rounded-pill",attrs:{href:"/settings/home"}},[t._v("Edit Profile")])]):t._e(),t._v(" "),t.user.id!=t.profile.id&&t.relationship?s("div",[t.relationship.following?s("button",{staticClass:"btn btn-outline-primary px-3 py-1 font-weight-bold rounded-pill",attrs:{disabled:t.isLoading},on:{click:function(e){return t.performUnfollow()}}},[t.isLoading?s("span",[s("b-spinner",{attrs:{small:""}})],1):s("span",[t._v("Following")])]):s("div",[t.relationship.requested?s("button",{staticClass:"btn btn-primary primary px-3 py-1 font-weight-bold rounded-pill",attrs:{disabled:""}},[t._v("Follow Requested")]):s("button",{staticClass:"btn btn-primary primary px-3 py-1 font-weight-bold rounded-pill",attrs:{disabled:t.isLoading},on:{click:function(e){return t.performFollow()}}},[t.isLoading?s("span",[s("b-spinner",{attrs:{small:""}})],1):s("span",[t._v("Follow")])])])]):t._e()]),t._v(" "),s("p",{staticClass:"display-name"},[s("a",{attrs:{href:t.profile.url},domProps:{innerHTML:t._s(t.getDisplayName())},on:{click:function(e){return e.preventDefault(),t.goToProfile()}}},[t._v("\n\t\t\t\t"+t._s(t.profile.display_name?t.profile.display_name:t.profile.username)+"\n\t\t\t")])]),t._v(" "),s("div",{staticClass:"username"},[s("a",{staticClass:"username-link",attrs:{href:t.profile.url},on:{click:function(e){return e.preventDefault(),t.goToProfile()}}},[t._v("\n\t\t\t\t@"+t._s(t.getUsername())+"\n\t\t\t")]),t._v(" "),t.user.id!=t.profile.id&&t.relationship&&t.relationship.followed_by?s("p",{staticClass:"username-follows-you"},[s("span",[t._v("Follows You")])]):t._e()]),t._v(" "),t.profile.hasOwnProperty("pronouns")&&t.profile.pronouns&&t.profile.pronouns.length?s("p",{staticClass:"pronouns"},[t._v("\n\t\t\t"+t._s(t.profile.pronouns.join(", "))+"\n\t\t")]):t._e(),t._v(" "),s("p",{staticClass:"bio",domProps:{innerHTML:t._s(t.bio)}}),t._v(" "),s("p",{staticClass:"stats"},[s("span",{staticClass:"stats-following"},[s("span",{staticClass:"following-count"},[t._v(t._s(t.formatCount(t.profile.following_count)))]),t._v(" Following\n\t\t\t")]),t._v(" "),s("span",{staticClass:"stats-followers"},[s("span",{staticClass:"followers-count"},[t._v(t._s(t.formatCount(t.profile.followers_count)))]),t._v(" Followers\n\t\t\t")])])])])},i=[]},78823:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"story-carousel-component"},[t.canShow?s("div",{staticClass:"d-flex pb-2",staticStyle:{"overflow-y":"auto","z-index":"3"}},[s("a",{staticClass:"col-4 col-lg-3 col-xl-2 px-1 text-dark text-decoration-none",staticStyle:{"max-width":"120px"},attrs:{href:"/i/stories/new"}},[s("div",{staticClass:"story-wrapper text-white shadow-sm d-flex flex-column align-items-center justify-content-between mb-3",staticStyle:{width:"100%",height:"200px","border-radius":"15px"}},[s("p",{staticClass:"mb-0"}),t._v(" "),t._m(0),t._v(" "),s("p",{staticClass:"font-weight-bold"},[t._v(t._s(t.$t("story.add")))])])]),t._v(" "),t._l(t.stories,(function(e,o){return s("a",{staticClass:"col-4 col-lg-3 col-xl-2 px-1 story",staticStyle:{"max-width":"120px"},attrs:{href:e.url}},[e.latest&&"photo"==e.latest.type?s("div",{staticClass:"shadow-sm story-wrapper",style:{background:"linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.4)), url("+e.latest.preview_url+")",backgroundSize:"cover",backgroundPosition:"center"}},[s("div",{staticClass:"px-2",staticStyle:{display:"block",width:"100%",bottom:"0",position:"absolute"}},[s("p",{staticClass:"mt-3 mb-0"},[s("img",{staticClass:"avatar",attrs:{src:e.avatar,width:"30",height:"30",draggable:"false",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("p",{staticClass:"mb-0"}),t._v(" "),s("p",{staticClass:"username font-weight-bold small text-truncate"},[t._v("\n\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t")])])]):s("div",{staticClass:"shadow-sm story-wrapper"},[s("div",{staticClass:"px-2",staticStyle:{display:"block",width:"100%",bottom:"0",position:"absolute"}},[s("p",{staticClass:"mt-3 mb-0"},[s("img",{staticClass:"avatar",attrs:{src:e.avatar,width:"30",height:"30"}})]),t._v(" "),s("p",{staticClass:"mb-0"}),t._v(" "),s("p",{staticClass:"username font-weight-bold small text-truncate"},[t._v("\n\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t")])])])])}))],2):t._e()])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0"},[e("i",{staticClass:"fal fa-plus-circle fa-2x"})])}]},98381:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"timeline-section-component"},[t.isLoaded?s("div",[t._l(t.feed,(function(e,o){return s("status",{key:"pf_feed:"+e.id+o,attrs:{status:e,profile:t.profile},on:{like:function(e){return t.likeStatus(o)},unlike:function(e){return t.unlikeStatus(o)},share:function(e){return t.shareStatus(o)},unshare:function(e){return t.unshareStatus(o)},menu:function(e){return t.openContextMenu(o)},"counter-change":function(e){return t.counterChange(o,e)},"likes-modal":function(e){return t.openLikesModal(o)},"shares-modal":function(e){return t.openSharesModal(o)},follow:function(e){return t.follow(o)},unfollow:function(e){return t.unfollow(o)},"comment-likes-modal":t.openCommentLikesModal,"handle-report":t.handleReport,bookmark:function(e){return t.handleBookmark(o)},"mod-tools":function(e){return t.handleModTools(o)}}})})),t._v(" "),t.showLoadMore?s("div",{staticClass:"text-center"},[s("button",{staticClass:"btn btn-primary rounded-pill font-weight-bold",on:{click:t.tryToLoadMore}},[t._v("\n\t\t\t\tLoad more\n\t\t\t")])]):t._e(),t._v(" "),t.canLoadMore?s("div",[s("intersect",{on:{enter:t.enterIntersect}},[s("status-placeholder",{staticStyle:{"margin-bottom":"10rem"}})],1)],1):t._e(),t._v(" "),!t.isLoaded&&t.feed.length&&t.endFeedReached?s("div",{staticStyle:{"margin-bottom":"50vh"}},[t._m(0)]):t._e(),t._v(" "),"home"!=t.scope||t.feed.length?t._e():s("timeline-onboarding",{attrs:{profile:t.profile},on:{"update-profile":t.updateProfile}}),t._v(" "),t.isLoaded&&"home"!==t.scope&&!t.feed.length?s("empty-timeline"):t._e()],2):s("div",[s("status-placeholder"),t._v(" "),s("status-placeholder"),t._v(" "),s("status-placeholder"),t._v(" "),s("status-placeholder")],1),t._v(" "),t.showMenu?s("context-menu",{ref:"contextMenu",attrs:{status:t.feed[t.postIndex],profile:t.profile},on:{moderate:t.commitModeration,delete:t.deletePost,"report-modal":t.handleReport}}):t._e(),t._v(" "),t.showLikesModal?s("likes-modal",{ref:"likesModal",attrs:{status:t.likesModalPost,profile:t.profile}}):t._e(),t._v(" "),t.showSharesModal?s("shares-modal",{ref:"sharesModal",attrs:{status:t.sharesModalPost,profile:t.profile}}):t._e(),t._v(" "),s("report-modal",{key:t.reportedStatusId,ref:"reportModal",attrs:{status:t.reportedStatus}})],1)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card card-body shadow-sm mb-3",staticStyle:{"border-radius":"15px"}},[s("p",{staticClass:"display-4 text-center"},[t._v("✨")]),t._v(" "),s("p",{staticClass:"lead mb-0 text-center"},[t._v("You have reached the end of this feed")])])}]}}]); \ No newline at end of file +"use strict";(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[319],{23006:(t,e,s)=>{s.r(e),s.d(e,{default:()=>l});var o=s(42755),i=s(88231),n=s(78375),a=s(55197),r=(s(73459),s(66915));const l={props:{scope:{type:String,default:"home"}},components:{drawer:o.default,sidebar:i.default,timeline:a.default,rightbar:n.default,"story-carousel":r.default},data:function(){return{isLoaded:!1,profile:void 0,recommended:[],trending:[]}},mounted:function(){this.init()},watch:{$route:"init"},methods:{init:function(){this.profile=window._sharedData.user,this.isLoaded=!0},updateProfile:function(t){this.profile=Object.assign(this.profile,t)}}}},77366:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(26535),i=s(74338),n=s(37846),a=s(81104);const r={props:{status:{type:Object},profile:{type:Object},reactionBar:{type:Boolean,default:!0},useDropdownMenu:{type:Boolean,default:!1}},components:{"comment-drawer":o.default,"post-content":n.default,"post-header":i.default,"post-reactions":a.default},data:function(){return{key:1,menuLoading:!0,sensitive:!1,showCommentDrawer:!1,isReblogging:!1,isBookmarking:!1,owner:!1,admin:!1,license:!1}},mounted:function(){var t=this;this.license=!(!this.status.media_attachments||!this.status.media_attachments.length)&&this.status.media_attachments.filter((function(t){return t.hasOwnProperty("license")&&t.license&&t.license.hasOwnProperty("id")})).map((function(t){return t.license}))[0],this.admin=window._sharedData.user.is_admin,this.owner=this.status.account.id==window._sharedData.user.id,this.status.reply_count&&this.autoloadComments&&setTimeout((function(){t.showCommentDrawer=!0}),1e3)},computed:{hideCounts:{get:function(){return 1==this.$store.state.hideCounts}},fixedHeight:{get:function(){return 1==this.$store.state.fixedHeight}},autoloadComments:{get:function(){return 1==this.$store.state.autoloadComments}},newReactions:{get:function(){return this.$store.state.newReactions}}},watch:{status:{deep:!0,immediate:!0,handler:function(t,e){this.isBookmarking=!1}}},methods:{openMenu:function(){this.$emit("menu")},like:function(){this.$emit("like")},unlike:function(){this.$emit("unlike")},showLikes:function(){this.$emit("likes-modal")},showShares:function(){this.$emit("shares-modal")},showComments:function(){this.showCommentDrawer=!this.showCommentDrawer},copyLink:function(){event.currentTarget.blur(),App.util.clipboard(this.status.url)},shareToOther:function(){navigator.canShare?navigator.share({url:this.status.url}).then((function(){return console.log("Share was successful.")})).catch((function(t){return console.log("Sharing failed",t)})):swal("Not supported","Your current device does not support native sharing.","error")},counterChange:function(t){this.$emit("counter-change",t)},showCommentLikes:function(t){this.$emit("comment-likes-modal",t)},shareStatus:function(){this.$emit("share")},unshareStatus:function(){this.$emit("unshare")},handleReport:function(t){this.$emit("handle-report",t)},follow:function(){this.$emit("follow")},unfollow:function(){this.$emit("unfollow")},handleReblog:function(){var t=this;this.isReblogging=!0,this.status.reblogged?this.$emit("unshare"):this.$emit("share"),setTimeout((function(){t.isReblogging=!1}),5e3)},handleBookmark:function(){var t=this;event.currentTarget.blur(),this.isBookmarking=!0,this.$emit("bookmark"),setTimeout((function(){t.isBookmarking=!1}),5e3)},getStatusAvatar:function(){return window._sharedData.user.id==this.status.account.id?window._sharedData.user.avatar:this.status.account.avatar},openModTools:function(){this.$emit("mod-tools")}}}},62744:(t,e,s)=>{s.r(e),s.d(e,{default:()=>o});const o={props:{status:{type:Object,default:{}}},data:function(){return{statusId:void 0,tabIndex:0,showFull:!1}},methods:{open:function(){this.$refs.modal.show()},close:function(){var t=this;this.$refs.modal.hide(),setTimeout((function(){t.tabIndex=0}),1e3)},handleReason:function(t){var e=this;this.tabIndex=2,axios.post("/i/report",{id:this.status.id,report:t,type:"post"}).then((function(t){e.tabIndex=3})).catch((function(t){e.tabIndex=5}))}}}},16890:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(22583);const i={props:{profile:{type:Object}},components:{"profile-card":o.default},data:function(){return{popularAccounts:[],newlyFollowed:0}},mounted:function(){this.fetchPopularAccounts()},methods:{fetchPopularAccounts:function(){var t=this;axios.get("/api/pixelfed/discover/accounts/popular").then((function(e){t.popularAccounts=e.data}))},follow:function(t){var e=this;axios.post("/api/v1/accounts/"+this.popularAccounts[t].id+"/follow").then((function(t){e.newlyFollowed++,e.$store.commit("updateRelationship",[t.data]),e.$emit("update-profile",{following_count:e.profile.following_count+1})}))},unfollow:function(t){var e=this;axios.post("/api/v1/accounts/"+this.popularAccounts[t].id+"/unfollow").then((function(t){e.newlyFollowed--,e.$store.commit("updateRelationship",[t.data]),e.$emit("update-profile",{following_count:e.profile.following_count-1})}))}}}},25356:(t,e,s)=>{s.r(e),s.d(e,{default:()=>l});var o=s(15235),i=s(80979),n=s(22583),a=s(38287),r=s(4268);const l={props:{status:{type:Object}},components:{VueTribute:o.default,ReadMore:i.default,ProfileHoverCard:n.default,CommentReplyForm:r.default,CommentReplies:a.default},data:function(){return{profile:window._sharedData.user,ids:[],feed:[],sortIndex:0,sorts:["all","newest","popular"],replyContent:void 0,nextUrl:void 0,canLoadMore:!1,isPostingReply:!1,showReplyOptions:!1,feedLoading:!1,isUploading:!1,uploadProgress:0,lightboxStatus:null,settings:{expanded:!1,sensitive:!1},tributeSettings:{noMatchTemplate:null,collection:[{trigger:"@",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/mention",{params:{q:t}}).then((function(t){e(t.data)})).catch((function(t){e(),console.log(t)}))}},{trigger:"#",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/hashtag",{params:{q:t}}).then((function(t){e(t.data)})).catch((function(t){e(),console.log(t)}))}}]},showEmptyRepliesRefresh:!1,commentReplyIndex:void 0}},mounted:function(){this.fetchContext()},computed:{hideCounts:{get:function(){return 1==this.$store.state.hideCounts}}},methods:{fetchContext:function(){var t=this;axios.get("/api/v2/statuses/"+this.status.id+"/replies",{params:{limit:3}}).then((function(e){e.data.next&&(t.nextUrl=e.data.next,t.canLoadMore=!0),e.data.data.forEach((function(e){t.ids.push(e.id),t.feed.push(e)})),e.data&&e.data.data&&(e.data.data.length||!t.status.reply_count)||(t.showEmptyRepliesRefresh=!0)}))},fetchMore:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;axios.get(this.nextUrl,{params:{limit:e,sort:this.sorts[this.sortIndex]}}).then((function(e){t.feedLoading=!1,e.data.next||(t.canLoadMore=!1),t.nextUrl=e.data.next,e.data.data.forEach((function(e){-1==t.ids.indexOf(e.id)&&(t.ids.push(e.id),t.feed.push(e))}))}))},fetchSortedFeed:function(){var t=this;axios.get("/api/v2/statuses/"+this.status.id+"/replies",{params:{limit:3,sort:this.sorts[this.sortIndex]}}).then((function(e){t.feed=e.data.data,t.nextUrl=e.data.next,t.feedLoading=!1}))},forceRefresh:function(){var t=this;axios.get("/api/v2/statuses/"+this.status.id+"/replies",{params:{limit:3,refresh_cache:!0}}).then((function(e){e.data.next&&(t.nextUrl=e.data.next,t.canLoadMore=!0),e.data.data.forEach((function(e){t.ids.push(e.id),t.feed.push(e)})),t.showEmptyRepliesRefresh=!1}))},timeago:function(t){return App.util.format.timeAgo(t)},prettyCount:function(t){return App.util.format.count(t)},goToPost:function(t){this.$router.push({name:"post",path:"/i/web/post/".concat(t.id),params:{id:t.id,cachedStatus:t,cachedProfile:this.profile}})},goToProfile:function(t){this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:this.profile}})},storeComment:function(){var t=this;this.isPostingReply=!0,axios.post("/api/v1/statuses",{status:this.replyContent,in_reply_to_id:this.status.id,sensitive:this.settings.sensitive}).then((function(e){t.replyContent=void 0,t.isPostingReply=!1,t.ids.push(e.data.id),t.feed.push(e.data),t.$emit("counter-change","comment-increment")}))},toggleSort:function(t){this.$refs.sortMenu.hide(),this.feedLoading=!0,this.sortIndex=t,this.fetchSortedFeed()},deleteComment:function(t){var e=this;event.currentTarget.blur(),window.confirm(this.$t("menu.deletePostConfirm"))&&axios.post("/i/delete",{type:"status",item:this.feed[t].id}).then((function(s){e.feed.splice(t,1),e.fetchMore(1),e.$emit("counter-change","comment-decrement")})).catch((function(t){}))},showLikesModal:function(t){this.$emit("show-likes",this.feed[t])},reportComment:function(t){this.$emit("handle-report",this.feed[t])},likeComment:function(t){event.currentTarget.blur();var e=this.feed[t],s=e.favourites_count,o=e.favourited;this.feed[t].favourited=!this.feed[t].favourited,this.feed[t].favourites_count=o?s-1:s+1,axios.post("/api/v1/statuses/"+e.id+"/"+(o?"unfavourite":"favourite")).then((function(t){}))},toggleShowReplyOptions:function(){event.currentTarget.blur(),this.showReplyOptions=!this.showReplyOptions},replyUpload:function(){event.currentTarget.blur(),this.$refs.fileInput.click()},handleImageUpload:function(){var t=this;if(this.$refs.fileInput.files.length){this.isUploading=!0;var e=new FormData;e.append("file",this.$refs.fileInput.files[0]),axios.post("/api/v1/media",e).then((function(e){axios.post("/api/v1/statuses",{media_ids:[e.data.id],in_reply_to_id:t.status.id,sensitive:t.settings.sensitive}).then((function(e){t.feed.push(e.data)}))}))}},lightbox:function(t){this.lightboxStatus=t.media_attachments[0],this.$refs.lightboxModal.show()},hideLightbox:function(){this.lightboxStatus=null,this.$refs.lightboxModal.hide()},blurhashWidth:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?30:20},blurhashHeight:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?20:30},getMediaSource:function(t){var e=t.media_attachments[0];return e.preview_url.endsWith("storage/no-preview.png")?e.url:e.preview_url},toggleReplyExpand:function(){event.currentTarget.blur(),this.settings.expanded=!this.settings.expanded},toggleCommentReply:function(t){this.commentReplyIndex=t,this.showCommentReplies(t)},showCommentReplies:function(t){if(this.feed[t].hasOwnProperty("replies_show")&&this.feed[t].replies_show)return this.feed[t].replies_show=!1,void(this.commentReplyIndex=void 0);this.feed[t].replies_show=!0,this.commentReplyIndex=t,this.fetchCommentReplies(t)},hideCommentReplies:function(t){this.commentReplyIndex=void 0,this.feed[t].replies_show=!1},fetchCommentReplies:function(t){var e=this;axios.get("/api/v2/statuses/"+this.feed[t].id+"/replies",{params:{limit:3}}).then((function(s){e.feed[t].replies=s.data.data}))},getPostAvatar:function(t){return this.profile.id==t.account.id?window._sharedData.user.avatar:t.account.avatar},follow:function(t){var e=this;axios.post("/api/v1/accounts/"+this.feed[t].account.id+"/follow").then((function(s){e.$store.commit("updateRelationship",[s.data]),e.feed[t].account.followers_count=e.feed[t].account.followers_count+1,window._sharedData.user.following_count=window._sharedData.user.following_count+1}))},unfollow:function(t){var e=this;axios.post("/api/v1/accounts/"+this.feed[t].account.id+"/unfollow").then((function(s){e.$store.commit("updateRelationship",[s.data]),e.feed[t].account.followers_count=e.feed[t].account.followers_count-1,window._sharedData.user.following_count=window._sharedData.user.following_count-1}))},handleCounterChange:function(t){this.$emit("counter-change",t)},pushCommentReply:function(t,e){this.feed[t].hasOwnProperty("replies")?this.feed[t].replies.push(e):this.feed[t].replies=[e],this.feed[t].reply_count++},replyCounterChange:function(t,e){switch(e){case"comment-increment":this.feed[t].reply_count=this.feed[t].reply_count+1;break;case"comment-decrement":this.feed[t].reply_count=this.feed[t].reply_count-1}}}}},90427:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(80979);const i={props:{status:{type:Object},feed:{type:Array}},components:{ReadMore:o.default},data:function(){return{loading:!0,profile:window._sharedData.user,ids:[],nextUrl:void 0,canLoadMore:!1}},watch:{feed:{deep:!0,immediate:!0,handler:function(t,e){this.loading=!1}}},methods:{fetchContext:function(){var t=this;axios.get("/api/v2/statuses/"+this.status.id+"/replies",{params:{limit:3}}).then((function(e){e.data.next&&(t.nextUrl=e.data.next,t.canLoadMore=!0),e.data.data.forEach((function(e){t.ids.push(e.id),t.feed.push(e)})),e.data&&e.data.data&&(e.data.data.length||!t.status.reply_count)||(t.showEmptyRepliesRefresh=!0)}))},fetchMore:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;axios.get(this.nextUrl,{params:{limit:e,sort:this.sorts[this.sortIndex]}}).then((function(e){t.feedLoading=!1,e.data.next||(t.canLoadMore=!1),t.nextUrl=e.data.next,e.data.data.forEach((function(e){-1==t.ids.indexOf(e.id)&&(t.ids.push(e.id),t.feed.push(e))}))}))},fetchSortedFeed:function(){var t=this;axios.get("/api/v2/statuses/"+this.status.id+"/replies",{params:{limit:3,sort:this.sorts[this.sortIndex]}}).then((function(e){t.feed=e.data.data,t.nextUrl=e.data.next,t.feedLoading=!1}))},forceRefresh:function(){var t=this;axios.get("/api/v2/statuses/"+this.status.id+"/replies",{params:{limit:3,refresh_cache:!0}}).then((function(e){e.data.next&&(t.nextUrl=e.data.next,t.canLoadMore=!0),e.data.data.forEach((function(e){t.ids.push(e.id),t.feed.push(e)})),t.showEmptyRepliesRefresh=!1}))},timeago:function(t){return App.util.format.timeAgo(t)},prettyCount:function(t){return App.util.format.count(t)},goToPost:function(t){this.$router.push({name:"post",path:"/i/web/post/".concat(t.id),params:{id:t.id,cachedStatus:t,cachedProfile:this.profile}})},goToProfile:function(t){this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:this.profile}})},storeComment:function(){var t=this;this.isPostingReply=!0,axios.post("/api/v1/statuses",{status:this.replyContent,in_reply_to_id:this.status.id,sensitive:this.settings.sensitive}).then((function(e){t.replyContent=void 0,t.isPostingReply=!1,t.ids.push(e.data.id),t.feed.push(e.data),t.$emit("counter-change","comment-increment")}))},toggleSort:function(t){this.$refs.sortMenu.hide(),this.feedLoading=!0,this.sortIndex=t,this.fetchSortedFeed()},deleteComment:function(t){var e=this;event.currentTarget.blur(),window.confirm(this.$t("menu.deletePostConfirm"))&&axios.post("/i/delete",{type:"status",item:this.feed[t].id}).then((function(s){e.feed.splice(t,1),e.$emit("counter-change","comment-decrement"),e.fetchMore(1)})).catch((function(t){}))},showLikesModal:function(t){this.$emit("show-likes",this.feed[t])},reportComment:function(t){this.$emit("handle-report",this.feed[t])},likeComment:function(t){event.currentTarget.blur();var e=this.feed[t],s=e.favourites_count,o=e.favourited;this.feed[t].favourited=!this.feed[t].favourited,this.feed[t].favourites_count=o?s-1:s+1,axios.post("/api/v1/statuses/"+e.id+"/"+(o?"unfavourite":"favourite")).then((function(t){}))},toggleShowReplyOptions:function(){event.currentTarget.blur(),this.showReplyOptions=!this.showReplyOptions},replyUpload:function(){event.currentTarget.blur(),this.$refs.fileInput.click()},handleImageUpload:function(){var t=this;if(this.$refs.fileInput.files.length){this.isUploading=!0;var e=new FormData;e.append("file",this.$refs.fileInput.files[0]),axios.post("/api/v1/media",e).then((function(e){axios.post("/api/v1/statuses",{media_ids:[e.data.id],in_reply_to_id:t.status.id,sensitive:t.settings.sensitive}).then((function(e){t.feed.push(e.data)}))}))}},lightbox:function(t){this.lightboxStatus=t.media_attachments[0],this.$refs.lightboxModal.show()},hideLightbox:function(){this.lightboxStatus=null,this.$refs.lightboxModal.hide()},blurhashWidth:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?30:20},blurhashHeight:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?20:30},getMediaSource:function(t){var e=t.media_attachments[0];return e.preview_url.endsWith("storage/no-preview.png")?e.url:e.preview_url},toggleReplyExpand:function(){event.currentTarget.blur(),this.settings.expanded=!this.settings.expanded},toggleCommentReply:function(t){this.commentReplyIndex=t}}}},27830:(t,e,s)=>{s.r(e),s.d(e,{default:()=>o});const o={props:{parentId:{type:String}},data:function(){return{isPostingReply:!1,replyContent:"",profile:window._sharedData.user,sensitive:!1}},methods:{storeComment:function(){var t=this;this.isPostingReply=!0,axios.post("/api/v1/statuses",{status:this.replyContent,in_reply_to_id:this.parentId,sensitive:this.sensitive}).then((function(e){t.replyContent=void 0,t.isPostingReply=!1,t.$emit("new-comment",e.data),t.$emit("counter-change","comment-increment")}))}}}},36765:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(19755);const i={props:["status","profile"],data:function(){return{ctxMenuStatus:!1,ctxMenuRelationship:!1,ctxEmbedPayload:!1,copiedEmbed:!1,replySending:!1,ctxEmbedShowCaption:!0,ctxEmbedShowLikes:!1,ctxEmbedCompactMode:!1,confirmModalTitle:"Are you sure?",confirmModalIdentifer:null,confirmModalType:!1}},watch:{ctxEmbedShowCaption:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)}},methods:{open:function(){this.ctxMenu()},openModMenu:function(){this.$refs.ctxModModal.show()},ctxMenu:function(){this.ctxMenuStatus=this.status,this.ctxEmbedPayload=window.App.util.embed.post(this.status.url),this.ctxMenuRelationship=!1,this.$refs.ctxModal.show()},closeCtxMenu:function(){this.copiedEmbed=!1,this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.closeModals()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeModals()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;this.statusUrl(t),this.closeCtxMenu()},ctxMenuGoToProfile:function(){var t=this.ctxMenuStatus;this.profileUrl(t),this.closeCtxMenu()},ctxMenuFollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+s,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=t.ctxMenuStatus.account.acct;"home"==t.scope&&(t.feed=t.feed.filter((function(e){return e.account.id!=t.ctxMenuStatus.account.id}))),t.closeCtxMenu(),setTimeout((function(){swal("Unfollow successful!","You are no longer following "+s,"success")}),500)}))},ctxMenuReportPost:function(){this.$refs.ctxModal.hide(),this.$emit("report-modal",this.ctxMenuStatus)},ctxMenuEmbed:function(){this.closeModals(),this.$refs.ctxEmbedModal.show()},ctxMenuShare:function(){this.$refs.ctxModal.hide(),this.$refs.ctxShareModal.show()},closeCtxShareMenu:function(){this.$refs.ctxShareModal.hide(),this.$refs.ctxModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.ctxEmbedShowCaption=!0,this.ctxEmbedShowLikes=!1,this.ctxEmbedCompactMode=!1,this.$refs.ctxEmbedModal.hide()},ctxModMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModOtherMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.show()},ctxModMenu:function(){this.$refs.ctxModal.hide()},ctxModMenuClose:function(){this.closeModals()},ctxModOtherMenuClose:function(){this.closeModals(),this.$refs.ctxModModal.show()},formatCount:function(t){return App.util.format.count(t)},openCtxReportOtherMenu:function(){var t=this.ctxMenuStatus;this.closeCtxMenu(),this.ctxMenuStatus=t,this.$refs.ctxReportOther.show()},ctxReportMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxModal.show()},ctxReportOtherMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},sendReport:function(t){var e=this,s=this.ctxMenuStatus.id;swal({title:this.$t("menu.confirmReport"),text:this.$t("menu.confirmReportText"),icon:"warning",buttons:!0,dangerMode:!0}).then((function(o){o?axios.post("/i/report/",{report:t,type:"post",id:s}).then((function(t){e.closeCtxMenu(),swal(e.$t("menu.reportSent"),e.$t("menu.reportSentText"),"success")})).catch((function(t){swal(e.$t("common.oops"),e.$t("menu.reportSentError"),"error")})):e.closeCtxMenu()}))},closeModals:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.hide(),this.$refs.ctxShareModal.hide(),this.$refs.ctxEmbedModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.$refs.ctxConfirm.hide()},openCtxStatusModal:function(){this.closeModals(),this.$refs.ctxStatusModal.show()},openConfirmModal:function(){this.closeModals(),this.$refs.ctxConfirm.show()},closeConfirmModal:function(){this.closeModals(),this.confirmModalTitle="Are you sure?",this.confirmModalType=!1,this.confirmModalIdentifer=null},confirmModalConfirm:function(){var t=this;if("post.delete"===this.confirmModalType)axios.post("/i/delete",{type:"status",item:this.confirmModalIdentifer}).then((function(e){t.feed=t.feed.filter((function(e){return e.id!=t.confirmModalIdentifer})),t.closeConfirmModal()})).catch((function(e){t.closeConfirmModal(),swal(t.$t("common.error"),t.$t("common.errorMsg"),"error")}));this.closeConfirmModal()},confirmModalCancel:function(){this.closeConfirmModal()},moderatePost:function(t,e,s){var o=this,i=(t.account.username,t.id,""),n=this;switch(e){case"addcw":i=this.$t("menu.modAddCWConfirm"),swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(t){swal(o.$t("common.success"),o.$t("menu.modCWSuccess"),"success"),o.$emit("moderate","addcw"),n.closeModals(),n.ctxModMenuClose()})).catch((function(t){n.closeModals(),n.ctxModMenuClose(),swal(o.$t("common.error"),o.$t("common.errorMsg"),"error")}))}));break;case"remcw":i=this.$t("menu.modRemoveCWConfirm"),swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(t){swal(o.$t("common.success"),o.$t("menu.modRemoveCWSuccess"),"success"),o.$emit("moderate","remcw"),n.closeModals(),n.ctxModMenuClose()})).catch((function(t){n.closeModals(),n.ctxModMenuClose(),swal(o.$t("common.error"),o.$t("common.errorMsg"),"error")}))}));break;case"unlist":i=this.$t("menu.modUnlistConfirm"),swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(t){o.$emit("moderate","unlist"),swal(o.$t("common.success"),o.$t("menu.modUnlistSuccess"),"success"),n.closeModals(),n.ctxModMenuClose()})).catch((function(t){n.closeModals(),n.ctxModMenuClose(),swal(o.$t("common.error"),o.$t("common.errorMsg"),"error")}))}));break;case"spammer":i=this.$t("menu.modMarkAsSpammerConfirm"),swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(t){o.$emit("moderate","spammer"),swal(o.$t("common.success"),o.$t("menu.modMarkAsSpammerSuccess"),"success"),n.closeModals(),n.ctxModMenuClose()})).catch((function(t){n.closeModals(),n.ctxModMenuClose(),swal(o.$t("common.error"),o.$t("common.errorMsg"),"error")}))}))}},shareStatus:function(t,e){var s=this;0!=o("body").hasClass("loggedIn")&&(this.closeModals(),axios.post("/i/share",{item:t.id}).then((function(e){t.reblogs_count=e.data.count,t.reblogged=!t.reblogged})).catch((function(t){swal(s.$t("common.error"),s.$t("common.errorMsg"),"error")})))},statusUrl:function(t){if(1!=t.account.local)return this.$route.params.hasOwnProperty("id")?void(location.href=t.url):void this.$router.push({name:"post",path:"/i/web/post/".concat(t.id),params:{id:t.id,cachedStatus:t,cachedProfile:this.profile}});this.$router.push({name:"post",path:"/i/web/post/".concat(t.id),params:{id:t.id,cachedStatus:t,cachedProfile:this.profile}})},profileUrl:function(t){this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.account.id),params:{id:t.account.id,cachedProfile:t.account,cachedUser:this.profile}})},deletePost:function(t){var e=this;0!=this.ownerOrAdmin(t)&&0!=window.confirm(this.$t("menu.deletePostConfirm"))&&axios.post("/i/delete",{type:"status",item:t.id}).then((function(t){e.$emit("delete"),e.closeModals()})).catch((function(t){swal(e.$t("common.error"),e.$t("common.errorMsg"),"error")}))},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},archivePost:function(t){var e=this;0!=window.confirm(this.$t("menu.archivePostConfirm"))&&axios.post("/api/pixelfed/v2/status/"+t.id+"/archive").then((function(s){e.$emit("status-delete",t.id),e.$emit("archived",t.id),e.closeModals()}))},unarchivePost:function(t){var e=this;0!=window.confirm(this.$t("menu.unarchivePostConfirm"))&&axios.post("/api/pixelfed/v2/status/"+t.id+"/unarchive").then((function(s){e.$emit("unarchived",t.id),e.closeModals()}))}}}},57170:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(78423),i=s(48510);const n={props:{status:{type:Object},profile:{type:Object}},components:{intersect:o.default,"like-placeholder":i.default},data:function(){return{isOpen:!1,isLoading:!0,canLoadMore:!0,isFetchingMore:!1,likes:[],ids:[],page:1,isUpdatingFollowState:!1,followStateIndex:void 0}},methods:{clear:function(){this.isOpen=!1,this.isLoading=!0,this.canLoadMore=!0,this.isFetchingMore=!1,this.likes=[],this.ids=[],this.page=1},fetchLikes:function(){var t=this;axios.get("/api/v1/statuses/"+this.status.id+"/favourited_by",{params:{limit:10}}).then((function(e){t.ids=e.data.map((function(t){return t.id})),t.likes=e.data,t.page++,t.isLoading=!1}))},open:function(){this.page>1&&this.clear(),this.isOpen=!0,this.fetchLikes(),this.$refs.likesModal.show()},enterIntersect:function(){var t=this;this.isFetchingMore||(this.isFetchingMore=!0,axios.get("/api/v1/statuses/"+this.status.id+"/favourited_by",{params:{limit:10,page:this.page}}).then((function(e){return e.data&&e.data.length?(e.data.forEach((function(e){-1==t.ids.indexOf(e.id)&&(t.ids.push(e.id),t.likes.push(e))})),e.data.length<2?(t.canLoadMore=!1,void(t.isFetchingMore=!1)):(t.page++,void(t.isFetchingMore=!1))):(t.canLoadMore=!1,void(t.isFetchingMore=!1))})))},getUsername:function(t){return t.display_name?t.display_name:t.username},goToProfile:function(t){this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:this.profile}})},handleFollow:function(t){var e=this;event.currentTarget.blur(),this.followStateIndex=t,this.isUpdatingFollowState=!0;var s=this.likes[t];axios.post("/api/v1/accounts/"+s.id+"/follow").then((function(s){e.likes[t].follows=!0,e.followStateIndex=void 0,e.isUpdatingFollowState=!1}))},handleUnfollow:function(t){var e=this;event.currentTarget.blur(),this.followStateIndex=t,this.isUpdatingFollowState=!0;var s=this.likes[t];axios.post("/api/v1/accounts/"+s.id+"/unfollow").then((function(s){e.likes[t].follows=!1,e.followStateIndex=void 0,e.isUpdatingFollowState=!1}))}}}},86609:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(99347);const i={props:["status"],components:{"read-more":s(80979).default},data:function(){return{key:1,sensitive:!1}},computed:{fixedHeight:{get:function(){return 1==this.$store.state.fixedHeight}}},methods:{toggleLightbox:function(t){(0,o.default)({el:t.target})},toggleContentWarning:function(){this.key++,this.sensitive=!0,this.status.sensitive=!this.status.sensitive}}}},42325:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(22583);const i={props:{status:{type:Object},profile:{type:Object},useDropdownMenu:{type:Boolean,default:!1}},components:{"profile-hover-card":o.default},data:function(){return{menuLoading:!0,owner:!1,admin:!1,license:!1}},methods:{timeago:function(t){var e=App.util.format.timeAgo(t);return e.endsWith("s")||e.endsWith("m")||e.endsWith("h")?e:new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"}).format(new Date(t))},openMenu:function(){this.$emit("menu")},scopeIcon:function(t){switch(t){case"public":default:return"far fa-globe";case"unlisted":return"far fa-lock-open";case"private":return"far fa-lock"}},scopeTitle:function(t){switch(t){case"public":return"Visible to everyone";case"unlisted":return"Hidden from public feeds";case"private":return"Only visible to followers";default:return""}},goToPost:function(){location.pathname.split("/").pop()!=this.status.id?this.$router.push({name:"post",path:"/i/web/post/".concat(this.status.id),params:{id:this.status.id,cachedStatus:this.status,cachedProfile:this.profile}}):location.href=this.status.local?this.status.url+"?fs=1":this.status.url},goToProfile:function(){var t=this;this.$nextTick((function(){t.$router.push({name:"profile",path:"/i/web/profile/".concat(t.status.account.id),params:{id:t.status.account.id,cachedProfile:t.status.account,cachedUser:t.profile}})}))},toggleContentWarning:function(){this.key++,this.sensitive=!0,this.status.sensitive=!this.status.sensitive},like:function(){event.currentTarget.blur(),this.status.favourited?this.$emit("unlike"):this.$emit("like")},toggleMenu:function(t){var e=this;setTimeout((function(){e.menuLoading=!1}),500)},closeMenu:function(t){setTimeout((function(){t.target.parentNode.firstElementChild.blur()}),100)},showLikes:function(){event.currentTarget.blur(),this.$emit("likes-modal")},showShares:function(){event.currentTarget.blur(),this.$emit("shares-modal")},showComments:function(){event.currentTarget.blur(),this.showCommentDrawer=!this.showCommentDrawer},copyLink:function(){event.currentTarget.blur(),App.util.clipboard(this.status.url)},shareToOther:function(){navigator.canShare?navigator.share({url:this.status.url}).then((function(){return console.log("Share was successful.")})).catch((function(t){return console.log("Sharing failed",t)})):swal("Not supported","Your current device does not support native sharing.","error")},counterChange:function(t){this.$emit("counter-change",t)},showCommentLikes:function(t){this.$emit("comment-likes-modal",t)},shareStatus:function(){this.$emit("share")},unshareStatus:function(){this.$emit("unshare")},handleReport:function(t){this.$emit("handle-report",t)},follow:function(){this.$emit("follow")},unfollow:function(){this.$emit("unfollow")},handleReblog:function(){var t=this;this.isReblogging=!0,this.status.reblogged?this.$emit("unshare"):this.$emit("share"),setTimeout((function(){t.isReblogging=!1}),5e3)},handleBookmark:function(){var t=this;event.currentTarget.blur(),this.isBookmarking=!0,this.$emit("bookmark"),setTimeout((function(){t.isBookmarking=!1}),5e3)},getStatusAvatar:function(){return window._sharedData.user.id==this.status.account.id?window._sharedData.user.avatar:this.status.account.avatar},openModTools:function(){this.$emit("mod-tools")}}}},98844:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(26535),i=s(22583);const n={props:{status:{type:Object},profile:{type:Object},admin:{type:Boolean,default:!1}},components:{"comment-drawer":o.default,"profile-hover-card":i.default},data:function(){return{key:1,menuLoading:!0,sensitive:!1,isReblogging:!1,isBookmarking:!1,owner:!1,license:!1}},computed:{hideCounts:{get:function(){return 1==this.$store.state.hideCounts}},autoloadComments:{get:function(){return 1==this.$store.state.autoloadComments}},newReactions:{get:function(){return this.$store.state.newReactions}},likesCount:function(){return this.status.favourites_count},replyCount:function(){return this.status.reply_count}},methods:{count:function(t){return App.util.format.count(t)},like:function(){event.currentTarget.blur(),this.status.favourited?this.$emit("unlike"):this.$emit("like")},showLikes:function(){event.currentTarget.blur(),this.$emit("likes-modal")},showShares:function(){event.currentTarget.blur(),this.$emit("shares-modal")},showComments:function(){event.currentTarget.blur(),this.$emit("toggle-comments")},copyLink:function(){event.currentTarget.blur(),App.util.clipboard(this.status.url)},shareToOther:function(){navigator.canShare?navigator.share({url:this.status.url}).then((function(){return console.log("Share was successful.")})).catch((function(t){return console.log("Sharing failed",t)})):swal("Not supported","Your current device does not support native sharing.","error")},counterChange:function(t){this.$emit("counter-change",t)},showCommentLikes:function(t){this.$emit("comment-likes-modal",t)},handleReblog:function(){var t=this;this.isReblogging=!0,this.status.reblogged?this.$emit("unshare"):this.$emit("share"),setTimeout((function(){t.isReblogging=!1}),5e3)},handleBookmark:function(){var t=this;event.currentTarget.blur(),this.isBookmarking=!0,this.$emit("bookmark"),setTimeout((function(){t.isBookmarking=!1}),5e3)},getStatusAvatar:function(){return window._sharedData.user.id==this.status.account.id?window._sharedData.user.avatar:this.status.account.avatar},openModTools:function(){this.$emit("mod-tools")}}}},66286:(t,e,s)=>{s.r(e),s.d(e,{default:()=>o});const o={props:{status:{type:Object},cursorLimit:{type:Number,default:200}},data:function(){return{preRender:void 0,fullContent:null,content:null,cursor:200}},mounted:function(){this.rewriteLinks()},methods:{readMore:function(){this.cursor=this.cursor+200,this.content=this.fullContent.substr(0,this.cursor)},rewriteLinks:function(){var t=this,e=this.status.content,s=document.createElement("div");s.innerHTML=e,s.querySelectorAll('a[class*="hashtag"]').forEach((function(t){var e=t.innerText;"#"==e.substr(0,1)&&(e=e.substr(1)),t.removeAttribute("target"),t.setAttribute("href","/i/web/hashtag/"+e)})),s.querySelectorAll('a:not(.hashtag)[class*="mention"], a:not(.hashtag)[class*="list-slug"]').forEach((function(e){var s=e.innerText;if("@"==s.substr(0,1)&&(s=s.substr(1)),0==t.status.account.local&&!s.includes("@")){var o=document.createElement("a");o.href=t.status.account.url,s=s+"@"+o.hostname}e.removeAttribute("target"),e.setAttribute("href","/i/web/username/"+s)})),this.content=s.outerHTML,this.injectCustomEmoji()},injectCustomEmoji:function(){var t=this;this.status.emojis.forEach((function(e){var s=''.concat(e.shortcode,'');t.content=t.content.replace(":".concat(e.shortcode,":"),s)}))}}}},95159:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(78423),i=s(48510);const n={props:{status:{type:Object},profile:{type:Object}},components:{intersect:o.default,"like-placeholder":i.default},data:function(){return{isOpen:!1,isLoading:!0,canLoadMore:!0,isFetchingMore:!1,likes:[],ids:[],page:1,isUpdatingFollowState:!1,followStateIndex:void 0}},methods:{clear:function(){this.isOpen=!1,this.isLoading=!0,this.canLoadMore=!0,this.isFetchingMore=!1,this.likes=[],this.ids=[],this.page=1},fetchLikes:function(){var t=this;axios.get("/api/v1/statuses/"+this.status.id+"/reblogged_by",{params:{limit:10}}).then((function(e){t.ids=e.data.map((function(t){return t.id})),t.likes=e.data,t.page++,t.isLoading=!1}))},open:function(){this.page>1&&this.clear(),this.isOpen=!0,this.fetchLikes(),this.$refs.likesModal.show()},enterIntersect:function(){var t=this;this.isFetchingMore||(this.isFetchingMore=!0,axios.get("/api/v1/statuses/"+this.status.id+"/reblogged_by",{params:{limit:10,page:this.page}}).then((function(e){return e.data&&e.data.length?(e.data.forEach((function(e){-1==t.ids.indexOf(e.id)&&(t.ids.push(e.id),t.likes.push(e))})),e.data.length<2?(t.canLoadMore=!1,void(t.isFetchingMore=!1)):(t.page++,void(t.isFetchingMore=!1))):(t.canLoadMore=!1,void(t.isFetchingMore=!1))})))},getUsername:function(t){return t.display_name?t.display_name:t.username},goToProfile:function(t){this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:this.profile}})},handleFollow:function(t){var e=this;event.currentTarget.blur(),this.followStateIndex=t,this.isUpdatingFollowState=!0;var s=this.likes[t];axios.post("/api/v1/accounts/"+s.id+"/follow").then((function(s){e.likes[t].follows=!0,e.followStateIndex=void 0,e.isUpdatingFollowState=!1}))},handleUnfollow:function(t){var e=this;event.currentTarget.blur(),this.followStateIndex=t,this.isUpdatingFollowState=!0;var s=this.likes[t];axios.post("/api/v1/accounts/"+s.id+"/unfollow").then((function(s){e.likes[t].follows=!1,e.followStateIndex=void 0,e.isUpdatingFollowState=!1}))}}}},50371:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(80979),i=s(20629);function n(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,o)}return s}function a(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const r={props:{profile:{type:Object}},components:{ReadMore:o.default},data:function(){return{user:window._sharedData.user,bio:void 0,isLoading:!1,relationship:void 0}},mounted:function(){var t=this;this.rewriteLinks(),this.relationship=this.$store.getters.getRelationship(this.profile.id),this.relationship||this.profile.id==this.user.id||axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.profile.id}}).then((function(e){t.relationship=e.data[0],t.$store.commit("updateRelationship",e.data)}))},computed:function(t){for(var e=1;e)?/g,(function(e){var s=e.slice(1,e.length-1),o=t.getCustomEmoji.filter((function(t){return t.shortcode==s}));return o.length?''.concat(o[0].shortcode,''):e}))}return s},getUsername:function(){return this.profile.acct},formatCount:function(t){return App.util.format.count(t)},goToProfile:function(){this.$router.push({name:"profile",path:"/i/web/profile/".concat(this.profile.id),params:{id:this.profile.id,cachedProfile:this.profile,cachedUser:this.user}})},rewriteLinks:function(){var t=this,e=this.profile.note,s=document.createElement("div");s.innerHTML=e,s.querySelectorAll('a[class*="hashtag"]').forEach((function(t){var e=t.innerText;"#"==e.substr(0,1)&&(e=e.substr(1)),t.removeAttribute("target"),t.setAttribute("href","/i/web/hashtag/"+e)})),s.querySelectorAll('a:not(.hashtag)[class*="mention"], a:not(.hashtag)[class*="list-slug"]').forEach((function(e){var s=e.innerText;if("@"==s.substr(0,1)&&(s=s.substr(1)),0==t.profile.local&&!s.includes("@")){var o=document.createElement("a");o.href=t.profile.url,s=s+"@"+o.hostname}e.removeAttribute("target"),e.setAttribute("href","/i/web/username/"+s)})),this.bio=s.outerHTML},performFollow:function(){var t=this;this.isLoading=!0,this.$emit("follow"),setTimeout((function(){t.relationship.following=!0,t.isLoading=!1}),1e3)},performUnfollow:function(){var t=this;this.isLoading=!0,this.$emit("unfollow"),setTimeout((function(){t.relationship.following=!1,t.isLoading=!1}),1e3)}}}},66842:(t,e,s)=>{s.r(e),s.d(e,{default:()=>o});const o={props:{profile:{type:Object}},data:function(){return{canShow:!1,stories:[]}},mounted:function(){this.fetchStories()},methods:{fetchStories:function(){var t=this;axios.get("/api/web/stories/v1/recent").then((function(e){e.data&&e.data.length&&(t.stories=e.data,t.canShow=!0)}))}}}},61672:(t,e,s)=>{s.r(e),s.d(e,{default:()=>m});var o=s(45836),i=s(99247),n=s(78423),a=s(8829),r=s(5327),l=s(31823),c=s(21917),d=s(57166),u=s(44898);function p(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return h(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 h(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,o=new Array(e);se.id&&(t.max_id=e.id),t.ids.push(e.id),t.feed.push(e),e&&e.hasOwnProperty("relationship")&&t.$store.commit("updateRelationship",[e.relationship]))})),t.isFetchingMore=!1}),100)}))}},tryToLoadMore:function(){var t=this;this.loadMoreAttempts++,this.loadMoreAttempts>=3&&(this.showLoadMore=!1),this.showLoadMore=!1,this.canLoadMore=!0,this.loadMoreTimeout=setTimeout((function(){t.canLoadMore=!1,t.showLoadMore=!0}),5e3)},likeStatus:function(t){var e=this,s=this.feed[t],o=(s.favourited,s.favourites_count);this.feed[t].favourites_count=o+1,this.feed[t].favourited=!s.favourited,axios.post("/api/v1/statuses/"+s.id+"/favourite").then((function(t){})).catch((function(s){e.feed[t].favourites_count=o,e.feed[t].favourited=!1;var i=document.createElement("p");i.classList.add("text-left"),i.classList.add("mb-0"),i.innerHTML='We limit certain interactions to keep our community healthy and it appears that you have reached that limit. Please try again later.';var n=document.createElement("div");n.appendChild(i),429===s.response.status&&swal({title:"Too many requests",content:n,icon:"warning",buttons:{confirm:{text:"OK",value:!1,visible:!0,className:"bg-transparent primary",closeModal:!0}}}).then((function(t){"more"==t&&(location.href="/site/contact")}))}))},unlikeStatus:function(t){var e=this,s=this.feed[t],o=(s.favourited,s.favourites_count);this.feed[t].favourites_count=o-1,this.feed[t].favourited=!s.favourited,axios.post("/api/v1/statuses/"+s.id+"/unfavourite").then((function(t){})).catch((function(s){e.feed[t].favourites_count=o,e.feed[t].favourited=!1}))},openContextMenu:function(t){var e=this;this.postIndex=t,this.showMenu=!0,this.$nextTick((function(){e.$refs.contextMenu.open()}))},handleModTools:function(t){var e=this;this.postIndex=t,this.showMenu=!0,this.$nextTick((function(){e.$refs.contextMenu.openModMenu()}))},openLikesModal:function(t){var e=this;this.postIndex=t,this.likesModalPost=this.feed[this.postIndex],this.showLikesModal=!0,this.$nextTick((function(){e.$refs.likesModal.open()}))},openSharesModal:function(t){var e=this;this.postIndex=t,this.sharesModalPost=this.feed[this.postIndex],this.showSharesModal=!0,this.$nextTick((function(){e.$refs.sharesModal.open()}))},commitModeration:function(t){var e=this.postIndex;switch(t){case"addcw":this.feed[e].sensitive=!0;break;case"remcw":this.feed[e].sensitive=!1;break;case"unlist":this.feed.splice(e,1);break;case"spammer":var s=this.feed[e].account.id;this.feed=this.feed.filter((function(t){return t.account.id!=s}))}},deletePost:function(){this.feed.splice(this.postIndex,1)},counterChange:function(t,e){switch(e){case"comment-increment":this.feed[t].reply_count=this.feed[t].reply_count+1;break;case"comment-decrement":this.feed[t].reply_count=this.feed[t].reply_count-1}},openCommentLikesModal:function(t){var e=this;this.likesModalPost=t,this.showLikesModal=!0,this.$nextTick((function(){e.$refs.likesModal.open()}))},shareStatus:function(t){var e=this,s=this.feed[t],o=(s.reblogged,s.reblogs_count);this.feed[t].reblogs_count=o+1,this.feed[t].reblogged=!s.reblogged,axios.post("/api/v1/statuses/"+s.id+"/reblog").then((function(t){})).catch((function(s){e.feed[t].reblogs_count=o,e.feed[t].reblogged=!1}))},unshareStatus:function(t){var e=this,s=this.feed[t],o=(s.reblogged,s.reblogs_count);this.feed[t].reblogs_count=o-1,this.feed[t].reblogged=!s.reblogged,axios.post("/api/v1/statuses/"+s.id+"/unreblog").then((function(t){})).catch((function(s){e.feed[t].reblogs_count=o,e.feed[t].reblogged=!1}))},handleReport:function(t){var e=this;this.reportedStatusId=t.id,this.$nextTick((function(){e.reportedStatus=t,e.$refs.reportModal.open()}))},handleBookmark:function(t){var e=this,s=this.feed[t];axios.post("/i/bookmark",{item:s.id}).then((function(o){e.feed[t].bookmarked=!s.bookmarked})).catch((function(t){e.$bvToast.toast("Cannot bookmark post at this time.",{title:"Bookmark Error",variant:"danger",autoHideDelay:5e3})}))},follow:function(t){var e=this;axios.post("/api/v1/accounts/"+this.feed[t].account.id+"/follow").then((function(s){e.$store.commit("updateRelationship",[s.data]),e.updateProfile({following_count:e.profile.following_count+1}),e.feed[t].account.followers_count=e.feed[t].account.followers_count+1})).catch((function(s){swal("Oops!","An error occured when attempting to follow this account.","error"),e.feed[t].relationship.following=!1}))},unfollow:function(t){var e=this;axios.post("/api/v1/accounts/"+this.feed[t].account.id+"/unfollow").then((function(s){e.$store.commit("updateRelationship",[s.data]),e.updateProfile({following_count:e.profile.following_count-1}),e.feed[t].account.followers_count=e.feed[t].account.followers_count-1})).catch((function(s){swal("Oops!","An error occured when attempting to unfollow this account.","error"),e.feed[t].relationship.following=!0}))},updateProfile:function(t){this.$emit("update-profile",t)}},beforeDestroy:function(){clearTimeout(this.loadMoreTimeout)}}},77413:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".avatar[data-v-5ae68d74]{border-radius:15px}.username[data-v-5ae68d74]{margin-bottom:-6px}.btn-white[data-v-5ae68d74]{background-color:#fff;border:1px solid #f3f4f6}.sidebar[data-v-5ae68d74]{top:90px}",""]);const n=i},90998:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,'.timeline-status-component{margin-bottom:1rem}.timeline-status-component .btn:focus{box-shadow:none!important}.timeline-status-component .avatar{border-radius:15px}.timeline-status-component .username{margin-bottom:-6px;word-break:break-word}@media(min-width:768px){.timeline-status-component .username{font-size:18px}}.timeline-status-component .VueCarousel-wrapper .VueCarousel-slide img{-o-object-fit:contain;object-fit:contain}.timeline-status-component .status-text{z-index:3}.timeline-status-component .reaction-liked-by,.timeline-status-component .status-text.py-0{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.timeline-status-component .reaction-liked-by{font-size:11px;font-weight:600}.timeline-status-component .location,.timeline-status-component .timestamp,.timeline-status-component .visibility{color:#94a3b8;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.timeline-status-component .invisible{display:none}.timeline-status-component .blurhash-wrapper img{border-radius:0;-o-object-fit:cover;object-fit:cover}.timeline-status-component .blurhash-wrapper canvas{border-radius:0}.timeline-status-component .content-label-wrapper{background-color:#000;border-radius:0;height:400px;overflow:hidden;position:relative;width:100%}.timeline-status-component .content-label-wrapper canvas,.timeline-status-component .content-label-wrapper img{cursor:pointer;max-height:400px}.timeline-status-component .content-label{align-items:center;background:rgba(0,0,0,.2);border-radius:0;display:flex;flex-direction:column;height:100%;justify-content:center;margin:0;position:absolute;width:100%;z-index:2}.timeline-status-component .rounded-bottom{border-bottom-left-radius:15px!important;border-bottom-right-radius:15px!important}.timeline-status-component .card-footer .media{position:relative}.timeline-status-component .card-footer .media .comment-border-link{background-clip:padding-box;background-color:#e5e7eb;border-left:4px solid transparent;border-right:4px solid transparent;display:block;height:calc(100% - 100px);left:11px;position:absolute;top:40px;width:10px}.timeline-status-component .card-footer .media .comment-border-link:hover{background-color:#bfdbfe}.timeline-status-component .card-footer .media .child-reply-form{position:relative}.timeline-status-component .card-footer .media .comment-border-arrow{background-clip:padding-box;background-color:#e5e7eb;border-bottom:2px solid transparent;border-left:4px solid transparent;border-right:4px solid transparent;display:block;height:29px;left:-33px;position:absolute;top:-6px;width:10px}.timeline-status-component .card-footer .media .comment-border-arrow:after{background-color:#e5e7eb;content:"";display:block;height:2px;left:2px;position:absolute;top:25px;width:15px}.timeline-status-component .card-footer .media-status{margin-bottom:1.3rem}.timeline-status-component .card-footer .media-avatar{border-radius:8px;margin-right:12px}.timeline-status-component .card-footer .media-body-comment{background-color:var(--comment-bg);border-radius:.9rem;padding:.4rem .7rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.timeline-status-component .card-footer .media-body-comment-username{color:var(--body-color);font-size:14px;font-weight:700!important;margin-bottom:.25rem!important}.timeline-status-component .card-footer .media-body-comment-username a{color:var(--body-color);text-decoration:none}.timeline-status-component .card-footer .media-body-comment-content{font-size:16px;margin-bottom:0}.timeline-status-component .card-footer .media-body-reactions{color:#b8c2cc!important;font-size:12px;margin-bottom:0!important;margin-top:.4rem!important}.timeline-status-component .fixedHeight{max-height:400px}.timeline-status-component .fixedHeight .VueCarousel-wrapper{border-radius:15px}.timeline-status-component .fixedHeight .VueCarousel-slide img{max-height:400px}.timeline-status-component .fixedHeight .blurhash-wrapper img{background-color:transparent;height:400px;max-height:400px;-o-object-fit:contain;object-fit:contain}.timeline-status-component .fixedHeight .blurhash-wrapper canvas{max-height:400px}.timeline-status-component .fixedHeight .content-label-wrapper{border-radius:15px}.timeline-status-component .fixedHeight .content-label{border-radius:0;height:400px}',""]);const n=i},21451:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".timeline-onboarding .profile-hover-card-inner{width:100%}.timeline-onboarding .profile-hover-card-inner .d-flex{max-width:100%!important}",""]);const n=i},25506:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,'.post-comment-drawer-feed{margin-bottom:1rem}.post-comment-drawer-feed .sort-menu .dropdown{border-radius:18px}.post-comment-drawer-feed .sort-menu .dropdown-menu{padding:0}.post-comment-drawer-feed .sort-menu .dropdown-item:active{background-color:inherit}.post-comment-drawer-feed .sort-menu .title{color:var(--dropdown-item-color)}.post-comment-drawer-feed .sort-menu .description{color:var(--dropdown-item-color);font-size:12px;margin-bottom:0}.post-comment-drawer-feed .sort-menu .active .title{color:var(--dropdown-item-active-color);font-weight:600}.post-comment-drawer-feed .sort-menu .active .description{color:var(--dropdown-item-active-color)}.post-comment-drawer-feed-loader{align-items:center;display:flex;height:200px;justify-content:center}.post-comment-drawer .media-body-comment{min-width:240px;position:relative}.post-comment-drawer .media-body-wrapper .media-body-comment{padding:.7rem}.post-comment-drawer .media-body-wrapper .media-body-likes-count{background-color:var(--body-bg);border-radius:15px;bottom:-10px;font-size:12px;font-weight:600;padding:1px 8px;position:absolute;right:-5px;text-decoration:none;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;z-index:3}.post-comment-drawer .media-body-wrapper .media-body-likes-count i{margin-right:3px}.post-comment-drawer .media-body-wrapper .media-body-likes-count .count{color:#334155}.post-comment-drawer .media-body-show-replies{font-size:13px;margin-bottom:5px;margin-top:-5px}.post-comment-drawer .media-body-show-replies a{align-items:center;display:flex;text-decoration:none}.post-comment-drawer .media-body-show-replies-icon{text-rendering:auto;display:inline-block;font-family:Font Awesome\\ 5 Free;font-style:normal;font-variant:normal;font-weight:400;line-height:1;margin-right:.25rem;padding-left:.5rem;text-decoration:none;transform:rotate(90deg)}.post-comment-drawer .media-body-show-replies-icon:before{content:""}.post-comment-drawer .media-body-show-replies-label{padding-top:9px}.post-comment-drawer-loadmore{font-size:.7875rem}.post-comment-drawer .reply-form-input{flex:1;position:relative}.post-comment-drawer .reply-form-input-actions{position:absolute;right:10px;top:50%;transform:translateY(-50%)}.post-comment-drawer .reply-form-input-actions.open{top:85%;transform:translateY(-85%)}.post-comment-drawer .child-reply-form{position:relative}.post-comment-drawer .bh-comment{height:auto;max-height:260px!important;max-width:160px!important;position:relative;width:100%}.post-comment-drawer .bh-comment .img-fluid,.post-comment-drawer .bh-comment canvas{border-radius:8px!important}.post-comment-drawer .bh-comment img,.post-comment-drawer .bh-comment span{height:auto;max-height:260px!important;max-width:160px!important;width:100%}.post-comment-drawer .bh-comment img{border-radius:8px;-o-object-fit:cover;object-fit:cover}.post-comment-drawer .bh-comment .sensitive-warning{background:rgba(0,0,0,.4);border-radius:8px;color:#fff;cursor:pointer;left:50%;padding:5px;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.post-comment-drawer .v-tribute{width:100%}',""]);const n=i},84582:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".profile-hover-card{border:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;overflow:hidden;padding:.5rem;width:300px}.profile-hover-card .avatar{border-radius:15px;box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important;margin-bottom:.5rem}.profile-hover-card .display-name{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:16px;font-weight:800;font-weight:800!important;line-height:.8;margin-bottom:2px;margin-top:5px;max-width:240px;-webkit-user-select:all;-moz-user-select:all;user-select:all;word-break:break-word}.profile-hover-card .display-name a{color:var(--body-color);text-decoration:none}.profile-hover-card .username{font-size:12px;font-weight:700;margin-bottom:.6rem;margin-top:0;max-width:240px;overflow:hidden;-webkit-user-select:all;-moz-user-select:all;user-select:all;word-break:break-word}.profile-hover-card .username-link{color:var(--text-lighter);margin-right:4px;text-decoration:none}.profile-hover-card .username-follows-you{margin:4px 0}.profile-hover-card .username-follows-you span{background-color:var(--comment-bg);border-radius:6px;color:var(--dropdown-item-color);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:12px;font-weight:500;line-height:16px;padding:2px 4px}.profile-hover-card .pronouns{color:#9ca3af;font-size:11px;font-weight:600;margin-bottom:.6rem;margin-top:-.8rem}.profile-hover-card .bio{color:var(--body-color);font-size:12px;line-height:1.2;margin-bottom:0;max-height:60px;max-width:240px;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.profile-hover-card .bio .invisible{display:none}.profile-hover-card .stats{color:var(--body-color);font-size:14px;margin-bottom:0;margin-top:.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.profile-hover-card .stats .stats-following{margin-right:.8rem}.profile-hover-card .stats .followers-count,.profile-hover-card .stats .following-count{font-weight:800}.profile-hover-card .btn.rounded-pill{min-width:80px}",""]);const n=i},5791:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".story-carousel-component .story-wrapper{background:#b24592;background:linear-gradient(90deg,#b24592,#f15f79);border-radius:15px;display:block;height:200px;margin-bottom:1rem;position:relative;width:100%}.story-carousel-component .story-wrapper .username{color:#fff}.story-carousel-component .story-wrapper .avatar{border-radius:6px;margin-bottom:5px}",""]);const n=i},31425:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),n=s(77413),a={insert:"head",singleton:!1};i()(n.default,a);const r=n.default.locals||{}},94901:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),n=s(90998),a={insert:"head",singleton:!1};i()(n.default,a);const r=n.default.locals||{}},9305:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),n=s(21451),a={insert:"head",singleton:!1};i()(n.default,a);const r=n.default.locals||{}},61191:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),n=s(25506),a={insert:"head",singleton:!1};i()(n.default,a);const r=n.default.locals||{}},56823:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),n=s(84582),a={insert:"head",singleton:!1};i()(n.default,a);const r=n.default.locals||{}},44303:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),n=s(5791),a={insert:"head",singleton:!1};i()(n.default,a);const r=n.default.locals||{}},98489:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(57394),i=s(94509),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);s(26715);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,"5ae68d74",null).exports},45836:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(89673);const i=(0,s(51900).default)({},o.render,o.staticRenderFns,!1,null,null,null).exports},99247:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(10326),i=s(41081),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);s(43956);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},21917:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(12350),i=s(35181),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},57166:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(51339);const i=(0,s(51900).default)({},o.render,o.staticRenderFns,!1,null,null,null).exports},44898:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(95735),i=s(8993),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);s(27423);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},26535:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(99220),i=s(55862),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);s(42659);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},38287:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(66339),i=s(63106),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},4268:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(50309),i=s(78789),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},8829:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(15278),i=s(12422),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},48510:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var o=s(98223);const i=(0,s(51900).default)({},o.render,o.staticRenderFns,!1,null,null,null).exports},5327:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(19986),i=s(40423),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},37846:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(39875),i=s(18988),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},74338:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(84177),i=s(8622),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},81104:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(26385),i=s(36875),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},80979:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(17386),i=s(20516),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},31823:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(20458),i=s(22917),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},22583:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(32900),i=s(81498),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);s(60970);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},66915:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(78208),i=s(39707),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);s(87757);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},55197:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var o=s(29167),i=s(89707),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);s.d(e,n);const a=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},94509:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(23006),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},41081:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(77366),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},35181:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(62744),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},8993:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(16890),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},55862:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(25356),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},63106:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(90427),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},78789:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(27830),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},12422:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(36765),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},40423:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(57170),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},18988:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(86609),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},8622:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(42325),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},36875:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(98844),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},20516:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(66286),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},22917:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(95159),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},81498:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(50371),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},39707:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(66842),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},89707:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var o=s(61672),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const n=o.default},26715:(t,e,s)=>{s.r(e);var o=s(31425),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},43956:(t,e,s)=>{s.r(e);var o=s(94901),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},27423:(t,e,s)=>{s.r(e);var o=s(9305),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},42659:(t,e,s)=>{s.r(e);var o=s(61191),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},60970:(t,e,s)=>{s.r(e);var o=s(56823),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},87757:(t,e,s)=>{s.r(e);var o=s(44303),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},57394:(t,e,s)=>{s.r(e);var o=s(54944),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},89673:(t,e,s)=>{s.r(e);var o=s(20454),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},10326:(t,e,s)=>{s.r(e);var o=s(8954),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},12350:(t,e,s)=>{s.r(e);var o=s(4493),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},51339:(t,e,s)=>{s.r(e);var o=s(99451),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},95735:(t,e,s)=>{s.r(e);var o=s(72311),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},99220:(t,e,s)=>{s.r(e);var o=s(90215),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},66339:(t,e,s)=>{s.r(e);var o=s(49209),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},50309:(t,e,s)=>{s.r(e);var o=s(64084),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},15278:(t,e,s)=>{s.r(e);var o=s(94122),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},98223:(t,e,s)=>{s.r(e);var o=s(72729),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},19986:(t,e,s)=>{s.r(e);var o=s(51364),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},39875:(t,e,s)=>{s.r(e);var o=s(53458),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},84177:(t,e,s)=>{s.r(e);var o=s(24514),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},26385:(t,e,s)=>{s.r(e);var o=s(64295),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},17386:(t,e,s)=>{s.r(e);var o=s(20512),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},20458:(t,e,s)=>{s.r(e);var o=s(34392),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},32900:(t,e,s)=>{s.r(e);var o=s(47455),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},78208:(t,e,s)=>{s.r(e);var o=s(78823),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},29167:(t,e,s)=>{s.r(e);var o=s(31680),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},54944:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"web-wrapper"},[t.isLoaded?s("div",{staticClass:"container-fluid mt-3"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-4 col-lg-3"},[s("sidebar",{attrs:{user:t.profile}})],1),t._v(" "),s("div",{staticClass:"col-md-8 col-lg-6 px-0"},[s("story-carousel",{attrs:{profile:t.profile}}),t._v(" "),s("timeline",{key:t.scope,attrs:{profile:t.profile,scope:t.scope},on:{"update-profile":t.updateProfile}})],1),t._v(" "),s("div",{staticClass:"d-none d-lg-block col-lg-3"},[s("rightbar",{staticClass:"sticky-top sidebar"})],1)]),t._v(" "),s("drawer")],1):s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"calc(100vh - 58px)"}},[s("b-spinner")],1)])},i=[]},20454:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"ph-item border-0 shadow-sm",staticStyle:{"border-radius":"15px","margin-bottom":"1rem"}},[s("div",{staticClass:"ph-col-12"},[s("div",{staticClass:"ph-row align-items-center"},[s("div",{staticClass:"ph-avatar mr-3 d-flex",staticStyle:{width:"50px",height:"60px","border-radius":"15px"}}),t._v(" "),s("div",{staticClass:"ph-col-6 big"})]),t._v(" "),s("div",{staticClass:"empty"}),t._v(" "),s("div",{staticClass:"empty"}),t._v(" "),s("div",{staticClass:"ph-picture"}),t._v(" "),s("div",{staticClass:"ph-row"},[s("div",{staticClass:"ph-col-12 empty"}),t._v(" "),s("div",{staticClass:"ph-col-12 big"}),t._v(" "),s("div",{staticClass:"ph-col-12 empty"}),t._v(" "),s("div",{staticClass:"ph-col-12"})])])])}]},8954:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"timeline-status-component"},[s("div",{staticClass:"card shadow-sm",staticStyle:{"border-radius":"15px"}},[s("post-header",{attrs:{profile:t.profile,status:t.status},on:{menu:t.openMenu,follow:t.follow,unfollow:t.unfollow}}),t._v(" "),s("post-content",{attrs:{profile:t.profile,status:t.status}}),t._v(" "),t.reactionBar?s("post-reactions",{attrs:{status:t.status,profile:t.profile,admin:t.admin},on:{like:t.like,unlike:t.unlike,share:t.shareStatus,unshare:t.unshareStatus,"likes-modal":t.showLikes,"shares-modal":t.showShares,"toggle-comments":t.showComments,bookmark:t.handleBookmark,"mod-tools":t.openModTools}}):t._e(),t._v(" "),t.showCommentDrawer?s("div",{staticClass:"card-footer rounded-bottom border-0",staticStyle:{background:"rgba(0,0,0,0.02)","z-index":"3"}},[s("comment-drawer",{attrs:{status:t.status,profile:t.profile},on:{"handle-report":t.handleReport,"counter-change":t.counterChange,"show-likes":t.showCommentLikes,follow:t.follow,unfollow:t.unfollow}})],1):t._e()],1)])},i=[]},4493:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("b-modal",{ref:"modal",attrs:{centered:"","hide-header":"","hide-footer":"",scrollable:"","body-class":"p-md-5 user-select-none"}},[0===t.tabIndex?s("div",[s("h2",{staticClass:"text-center font-weight-bold"},[t._v(t._s(t.$t("report.report")))]),t._v(" "),s("p",{staticClass:"text-center"},[t._v(t._s(t.$t("menu.confirmReportText")))]),t._v(" "),t.status&&t.status.hasOwnProperty("account")?s("div",{staticClass:"card shadow-none rounded-lg border my-4"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("img",{staticClass:"mr-3 rounded",staticStyle:{"border-radius":"8px"},attrs:{src:t.status.account.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"h5 primary font-weight-bold mb-1"},[t._v("\n\t\t\t\t\t\t\t@"+t._s(t.status.account.acct)+"\n\t\t\t\t\t\t")]),t._v(" "),t.status.hasOwnProperty("pf_type")&&"text"==t.status.pf_type?s("div",[t.status.content_text.length<=140?s("p",{staticClass:"mb-0"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.status.content_text)+"\n\t\t\t\t\t\t\t")]):s("p",{staticClass:"mb-0"},[t.showFull?s("span",[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.content_text)+"\n\t\t\t\t\t\t\t\t\t"),s("a",{staticClass:"font-weight-bold primary ml-1",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showFull=!1}}},[t._v("Show less")])]):s("span",[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.content_text.substr(0,140)+" ...")+"\n\t\t\t\t\t\t\t\t\t"),s("a",{staticClass:"font-weight-bold primary ml-1",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showFull=!0}}},[t._v("Show full post")])])])]):t.status.hasOwnProperty("pf_type")&&"photo"==t.status.pf_type?s("div",[s("div",{staticClass:"w-100 rounded-lg d-flex justify-content-center mt-3",staticStyle:{background:"#000","max-height":"150px"}},[s("img",{staticClass:"rounded-lg shadow",staticStyle:{width:"100%","max-height":"150px","object-fit":"contain"},attrs:{src:t.status.media_attachments[0].url}})]),t._v(" "),t.status.content_text?s("p",{staticClass:"mt-3 mb-0"},[t.showFull?s("span",[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.content_text)+"\n\t\t\t\t\t\t\t\t\t"),s("a",{staticClass:"font-weight-bold primary ml-1",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showFull=!1}}},[t._v("Show less")])]):s("span",[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.content_text.substr(0,80)+" ...")+"\n\t\t\t\t\t\t\t\t\t"),s("a",{staticClass:"font-weight-bold primary ml-1",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showFull=!0}}},[t._v("Show full post")])])]):t._e()]):t._e()])])])]):t._e(),t._v(" "),s("p",{staticClass:"text-right mb-0 mb-md-n3"},[s("button",{staticClass:"btn btn-light px-3 py-2 mr-3 font-weight-bold",on:{click:t.close}},[t._v(t._s(t.$t("common.cancel")))]),t._v(" "),s("button",{staticClass:"btn btn-primary px-3 py-2 font-weight-bold",staticStyle:{"background-color":"#3B82F6"},on:{click:function(e){t.tabIndex=1}}},[t._v(t._s(t.$t("common.proceed")))])])]):1===t.tabIndex?s("div",[s("h2",{staticClass:"text-center font-weight-bold"},[t._v(t._s(t.$t("report.report")))]),t._v(" "),s("p",{staticClass:"text-center"},[t._v("\n\t\t\t"+t._s(t.$t("report.selectReason"))+"\n\t\t")]),t._v(" "),s("div",{staticClass:"mt-4"},[s("button",{staticClass:"btn btn-light btn-block rounded-pill font-weight-bold text-danger",on:{click:function(e){return t.handleReason("spam")}}},[t._v(t._s(t.$t("menu.spam")))]),t._v(" "),0==t.status.sensitive?s("button",{staticClass:"btn btn-light btn-block rounded-pill font-weight-bold text-danger",on:{click:function(e){return t.handleReason("sensitive")}}},[t._v("Adult or "+t._s(t.$t("menu.sensitive")))]):t._e(),t._v(" "),s("button",{staticClass:"btn btn-light btn-block rounded-pill font-weight-bold text-danger",on:{click:function(e){return t.handleReason("abusive")}}},[t._v(t._s(t.$t("menu.abusive")))]),t._v(" "),s("button",{staticClass:"btn btn-light btn-block rounded-pill font-weight-bold",on:{click:function(e){return t.handleReason("underage")}}},[t._v(t._s(t.$t("menu.underageAccount")))]),t._v(" "),s("button",{staticClass:"btn btn-light btn-block rounded-pill font-weight-bold",on:{click:function(e){return t.handleReason("copyright")}}},[t._v(t._s(t.$t("menu.copyrightInfringement")))]),t._v(" "),s("button",{staticClass:"btn btn-light btn-block rounded-pill font-weight-bold",on:{click:function(e){return t.handleReason("impersonation")}}},[t._v(t._s(t.$t("menu.impersonation")))]),t._v(" "),s("button",{staticClass:"btn btn-light btn-block rounded-pill mt-md-5",on:{click:function(e){t.tabIndex=0}}},[t._v("Go back")])])]):2===t.tabIndex?s("div",[s("div",{staticClass:"my-4 text-center"},[s("b-spinner"),t._v(" "),s("p",{staticClass:"small mb-0"},[t._v(t._s(t.$t("report.sendingReport"))+" ...")])],1)]):3===t.tabIndex?s("div",[s("div",{staticClass:"my-4"},[s("h2",{staticClass:"text-center font-weight-bold mb-3"},[t._v(t._s(t.$t("report.reported")))]),t._v(" "),s("p",{staticClass:"text-center py-2"},[s("span",{staticClass:"fa-stack fa-4x text-success"},[s("i",{staticClass:"far fa-check fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fal fa-circle fa-stack-2x"})])]),t._v(" "),s("p",{staticClass:"lead text-center"},[t._v(t._s(t.$t("report.thanksMsg")))]),t._v(" "),s("hr"),t._v(" "),s("p",{staticClass:"text-center"},[t._v(t._s(t.$t("report.contactAdminMsg"))+", "),s("a",{staticClass:"font-weight-bold primary",attrs:{href:"/site/contact"}},[t._v(t._s(t.$t("common.clickHere")))]),t._v(".")])]),t._v(" "),s("p",{staticClass:"text-center mb-0 mb-md-n3"},[s("button",{staticClass:"btn btn-light btn-block rounded-pill px-3 py-2 mr-3 font-weight-bold",on:{click:t.close}},[t._v(t._s(t.$t("common.close")))])])]):5===t.tabIndex?s("div",[s("div",{staticClass:"my-4"},[s("h2",{staticClass:"text-center font-weight-bold mb-3"},[t._v(t._s(t.$t("common.oops")))]),t._v(" "),s("p",{staticClass:"text-center py-2"},[s("span",{staticClass:"fa-stack fa-3x text-danger"},[s("i",{staticClass:"far fa-times fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fal fa-circle fa-stack-2x"})])]),t._v(" "),s("p",{staticClass:"lead text-center"},[t._v(t._s(t.$t("common.errorMsg")))]),t._v(" "),s("hr"),t._v(" "),s("p",{staticClass:"text-center"},[t._v(t._s(t.$t("report.contactAdminMsg"))+", "),s("a",{staticClass:"font-weight-bold primary",attrs:{href:"/site/contact"}},[t._v(t._s(t.$t("common.clickHere")))]),t._v(".")])]),t._v(" "),s("p",{staticClass:"text-center mb-0 mb-md-n3"},[s("button",{staticClass:"btn btn-light btn-block rounded-pill px-3 py-2 mr-3 font-weight-bold",on:{click:t.close}},[t._v(t._s(t.$t("common.close")))])])]):t._e()])},i=[]},99451:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card card-body shadow-sm mb-3",staticStyle:{"border-radius":"15px"}},[s("img",{staticClass:"img-fluid",staticStyle:{"max-height":"300px",opacity:"0.6"},attrs:{src:"/img/illustrations/dk-nature-man-monochrome.svg"}}),t._v(" "),s("p",{staticClass:"lead mb-0 text-center"},[t._v("This feed is empty")])])}]},72311:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"timeline-onboarding"},[s("div",{staticClass:"card card-body shadow-sm mb-3 p-5",staticStyle:{"border-radius":"15px"}},[s("h1",{staticClass:"text-center mb-4"},[t._v("✨ "+t._s(t.$t("timeline.onboarding.welcome")))]),t._v(" "),s("p",{staticClass:"text-center mb-3",staticStyle:{"font-size":"22px"}},[t._v("\n\t\t\t"+t._s(t.$t("timeline.onboarding.thisIsYourHomeFeed"))+"\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center lead"},[t._v(t._s(t.$t("timeline.onboarding.letUsHelpYouFind")))]),t._v(" "),t.newlyFollowed?s("p",{staticClass:"text-center mb-0"},[s("a",{staticClass:"btn btn-primary btn-lg primary font-weight-bold rounded-pill px-4",attrs:{href:"/i/web",onclick:"location.reload()"}},[t._v("\n\t\t\t\t"+t._s(t.$t("timeline.onboarding.refreshFeed"))+"\n\t\t\t")])]):t._e()]),t._v(" "),s("div",{staticClass:"row"},t._l(t.popularAccounts,(function(e,o){return s("div",{staticClass:"col-12 col-md-6 mb-3"},[s("div",{staticClass:"card shadow-sm border-0 rounded-px"},[s("div",{staticClass:"card-body p-2"},[s("profile-card",{key:"pfc"+o,staticClass:"w-100",attrs:{profile:e},on:{follow:function(e){return t.follow(o)},unfollow:function(e){return t.unfollow(o)}}})],1)])])})),0)])},i=[]},90215:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"post-comment-drawer"},[s("input",{ref:"fileInput",staticClass:"d-none",attrs:{type:"file",accept:"image/jpeg,image/png"},on:{change:t.handleImageUpload}}),t._v(" "),s("div",{staticClass:"post-comment-drawer-feed"},[t.feed.length&&t.feed.length>=1?s("div",{staticClass:"mb-2 sort-menu"},[s("b-dropdown",{ref:"sortMenu",attrs:{size:"sm",variant:"link","toggle-class":"text-decoration-none text-dark font-weight-bold","no-caret":""},scopedSlots:t._u([{key:"button-content",fn:function(){return[t._v("\n\t\t\t\t\tShow "+t._s(t.sorts[t.sortIndex])+" comments "),s("i",{staticClass:"far fa-chevron-down ml-1"})]},proxy:!0}],null,!1,497908856)},[t._v(" "),s("b-dropdown-item",{class:{active:0===t.sortIndex},attrs:{href:"#"},on:{click:function(e){return t.toggleSort(0)}}},[s("p",{staticClass:"title mb-0"},[t._v("All")]),t._v(" "),s("p",{staticClass:"description"},[t._v("All comments in chronological order")])]),t._v(" "),s("b-dropdown-item",{class:{active:1===t.sortIndex},attrs:{href:"#"},on:{click:function(e){return t.toggleSort(1)}}},[s("p",{staticClass:"title mb-0"},[t._v("Newest")]),t._v(" "),s("p",{staticClass:"description"},[t._v("Newest comments appear first")])]),t._v(" "),s("b-dropdown-item",{class:{active:2===t.sortIndex},attrs:{href:"#"},on:{click:function(e){return t.toggleSort(2)}}},[s("p",{staticClass:"title mb-0"},[t._v("Popular")]),t._v(" "),s("p",{staticClass:"description"},[t._v("The most relevant comments appear first")])])],1)],1):t._e(),t._v(" "),t.feedLoading?s("div",{staticClass:"post-comment-drawer-feed-loader"},[s("b-spinner")],1):s("div",[s("transition-group",{attrs:{tag:"div","enter-active-class":"animate__animated animate__fadeIn","leave-active-class":"animate__animated animate__fadeOut",mode:"out-in"}},t._l(t.feed,(function(e,o){return s("div",{key:"cd:"+e.id+":"+o,staticClass:"media media-status align-items-top mb-3"},[s("a",{attrs:{href:"#l"}},[s("img",{staticClass:"shadow-sm media-avatar border",attrs:{src:t.getPostAvatar(e),width:"40",height:"40",draggable:"false",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"media-body-wrapper"},[e.media_attachments.length?s("div",[s("p",{staticClass:"media-body-comment-username"},[s("a",{attrs:{href:e.account.url},on:{click:function(s){return s.preventDefault(),t.goToProfile(e.account)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.account.acct)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e.sensitive?s("div",{staticClass:"bh-comment",on:{click:function(t){e.sensitive=!1}}},[s("blur-hash-image",{staticClass:"img-fluid border shadow",attrs:{width:t.blurhashWidth(e),height:t.blurhashHeight(e),punch:1,hash:e.media_attachments[0].blurhash}}),t._v(" "),s("div",{staticClass:"sensitive-warning"},[s("p",{staticClass:"mb-0"},[s("i",{staticClass:"far fa-eye-slash fa-lg"})]),t._v(" "),s("p",{staticClass:"mb-0 small"},[t._v("Click to view")])])],1):s("div",{staticClass:"bh-comment"},[s("div",{on:{click:function(s){return t.lightbox(e)}}},[s("blur-hash-image",{staticClass:"img-fluid border shadow",attrs:{width:t.blurhashWidth(e),height:t.blurhashHeight(e),punch:1,hash:e.media_attachments[0].blurhash,src:t.getMediaSource(e)}})],1),t._v(" "),e.favourites_count&&!t.hideCounts?s("button",{staticClass:"btn btn-link media-body-likes-count shadow-sm",on:{click:function(e){return e.preventDefault(),t.showLikesModal(o)}}},[s("i",{staticClass:"far fa-thumbs-up primary"}),t._v(" "),s("span",{staticClass:"count"},[t._v(t._s(t.prettyCount(e.favourites_count)))])]):t._e()])]):s("div",{staticClass:"media-body-comment"},[s("p",{staticClass:"media-body-comment-username"},[s("a",{attrs:{href:e.account.url,id:"acpop_"+e.id,tabindex:"0"},on:{click:function(s){return s.preventDefault(),t.goToProfile(e.account)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.account.acct)+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("b-popover",{attrs:{target:"acpop_"+e.id,triggers:"hover",placement:"bottom","custom-class":"shadow border-0 rounded-px",delay:750}},[s("profile-hover-card",{attrs:{profile:e.account},on:{follow:function(e){return t.follow(o)},unfollow:function(e){return t.unfollow(o)}}})],1)],1),t._v(" "),e.sensitive?s("span",[s("p",{staticClass:"mb-0"},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("common.sensitiveContentWarning"))+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("a",{staticClass:"small font-weight-bold primary",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.sensitive=!1}}},[t._v("Show")])]):s("read-more",{attrs:{status:e}}),t._v(" "),e.favourites_count&&!t.hideCounts?s("button",{staticClass:"btn btn-link media-body-likes-count shadow-sm",on:{click:function(e){return e.preventDefault(),t.showLikesModal(o)}}},[s("i",{staticClass:"far fa-thumbs-up primary"}),t._v(" "),s("span",{staticClass:"count"},[t._v(t._s(t.prettyCount(e.favourites_count)))])]):t._e()],1)]),t._v(" "),s("p",{staticClass:"media-body-reactions"},[s("button",{staticClass:"btn btn-link font-weight-bold btn-sm p-0",class:[e.favourited?"primary":"text-muted"],on:{click:function(e){return t.likeComment(o)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t")]),t._v(" "),"public"!=e.visibility?[s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),"unlisted"===e.visibility?s("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip:hover.bottom",arg:"hover",modifiers:{bottom:!0}}],staticClass:"text-lighter",attrs:{title:"This post is unlisted on timelines"}},[s("i",{staticClass:"far fa-unlock fa-sm"})]):"private"===e.visibility?s("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip:hover.bottom",arg:"hover",modifiers:{bottom:!0}}],staticClass:"text-muted",attrs:{title:"This post is only visible to followers of this account"}},[s("i",{staticClass:"far fa-lock fa-sm"})]):t._e()]:t._e(),t._v(" "),s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:e.url},on:{click:function(e){return e.preventDefault(),t.toggleCommentReply(o)}}},[t._v("\n\t\t\t\t\t\t\t\tReply\n\t\t\t\t\t\t\t")]),t._v(" "),s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),t._o(s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:e.url},on:{click:function(s){return s.preventDefault(),t.goToPost(e)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.timeago(e.created_at))+"\n\t\t\t\t\t\t\t")]),0,"cd:"+e.id+":"+o),t._v(" "),t.profile&&e.account.id===t.profile.id?s("span",[s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteComment(o)}}},[t._v("\n\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t")])]):s("span",[s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.reportComment(o)}}},[t._v("\n\t\t\t\t\t\t\t\t\tReport\n\t\t\t\t\t\t\t\t")])])],2),t._v(" "),e.reply_count?[e.replies.replies_show||t.commentReplyIndex===o?s("div",{staticClass:"media-body-show-replies"},[s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.hideCommentReplies(o)}}},[s("i",{staticClass:"media-body-show-replies-icon"}),t._v(" "),s("span",{staticClass:"media-body-show-replies-label"},[t._v("Hide "+t._s(t.prettyCount(e.reply_count))+" replies")])])]):s("div",{staticClass:"media-body-show-replies"},[s("a",{staticClass:"font-weight-bold primary",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showCommentReplies(o)}}},[s("i",{staticClass:"media-body-show-replies-icon"}),t._v(" "),s("span",{staticClass:"media-body-show-replies-label"},[t._v("Show "+t._s(t.prettyCount(e.reply_count))+" replies")])])])]:t._e(),t._v(" "),e.replies_show?s("comment-replies",{staticClass:"mt-3",attrs:{status:e,feed:t.feed[o].replies},on:{"counter-change":function(e){return t.replyCounterChange(o,e)}}}):t._e(),t._v(" "),1==e.replies_show&&t.commentReplyIndex==o&&t.feed[o].reply_count>3?s("div",[s("div",{staticClass:"media-body-show-replies mt-n3"},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.goToPost(e)}}},[s("i",{staticClass:"media-body-show-replies-icon"}),t._v(" "),s("span",{staticClass:"media-body-show-replies-label"},[t._v("View full thread")])])])]):t._e(),t._v(" "),t.commentReplyIndex==o?s("comment-reply-form",{attrs:{"parent-id":e.id},on:{"new-comment":function(e){return t.pushCommentReply(o,e)},"counter-change":t.handleCounterChange}}):t._e()],2)])})),0)],1)]),t._v(" "),!t.feedLoading&&t.canLoadMore?s("div",{staticClass:"post-comment-drawer-loadmore"},[s("p",[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.fetchMore()}}},[t._v("Load more comments…")])])]):t._e(),t._v(" "),t.showEmptyRepliesRefresh?s("div",{staticClass:"post-comment-drawer-loadmore"},[s("p",{staticClass:"text-center mb-4"},[s("a",{staticClass:"btn btn-outline-primary font-weight-bold rounded-pill",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.forceRefresh()}}},[s("i",{staticClass:"far fa-sync mr-2"}),t._v(" Refresh\n\t\t\t")])])]):t._e(),t._v(" "),s("div",{staticClass:"d-flex align-items-top reply-form child-reply-form"},[s("img",{staticClass:"shadow-sm media-avatar border",attrs:{src:t.profile.avatar,width:"40",height:"40"}}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.settings.expanded,expression:"!settings.expanded"}],staticClass:"w-100"},[s("vue-tribute",{attrs:{options:t.tributeSettings}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.replyContent,expression:"replyContent"}],staticClass:"form-control bg-light rounded-pill shadow-sm",staticStyle:{"padding-right":"140px"},attrs:{placeholder:"Write a comment....",disabled:t.isPostingReply},domProps:{value:t.replyContent},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.storeComment.apply(null,arguments)},input:function(e){e.target.composing||(t.replyContent=e.target.value)}}})])],1),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.settings.expanded,expression:"settings.expanded"}],staticClass:"w-100"},[s("vue-tribute",{attrs:{options:t.tributeSettings}},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyContent,expression:"replyContent"}],staticClass:"form-control bg-light rounded-sm shadow-sm",staticStyle:{resize:"none","padding-right":"140px"},attrs:{placeholder:"Write a comment....",rows:"5",disabled:t.isPostingReply},domProps:{value:t.replyContent},on:{input:function(e){e.target.composing||(t.replyContent=e.target.value)}}})])],1),t._v(" "),s("div",{staticClass:"reply-form-input-actions",class:{open:t.settings.expanded}},[s("button",{staticClass:"btn btn-link text-muted px-1 mr-2",on:{click:function(e){return t.replyUpload()}}},[s("i",{staticClass:"far fa-image fa-lg"})]),t._v(" "),s("button",{staticClass:"btn btn-link text-muted px-1 mr-2",on:{click:function(e){return t.toggleReplyExpand()}}},[s("i",{staticClass:"far fa-text-size fa-lg"})]),t._v(" "),s("button",{staticClass:"btn btn-link text-muted px-1 small font-weight-bold py-0 rounded-pill text-decoration-none",on:{click:t.toggleShowReplyOptions}},[s("i",{staticClass:"far fa-ellipsis-h"})])])]),t._v(" "),t.showReplyOptions?s("div",{staticClass:"child-reply-form-options mt-2",staticStyle:{"margin-left":"60px"}},[s("b-form-checkbox",{attrs:{switch:""},model:{value:t.settings.sensitive,callback:function(e){t.$set(t.settings,"sensitive",e)},expression:"settings.sensitive"}},[t._v("\n\t\t\t"+t._s(t.$t("common.sensitive"))+"\n\t\t")])],1):t._e(),t._v(" "),t.replyContent&&t.replyContent.length?s("div",{staticClass:"text-right mt-2"},[s("button",{staticClass:"btn btn-primary btn-sm font-weight-bold primary rounded-pill px-4",on:{click:t.storeComment}},[t._v(t._s(t.$t("common.comment")))])]):t._e(),t._v(" "),s("b-modal",{ref:"lightboxModal",attrs:{id:"lightbox","hide-header":!0,"hide-footer":!0,centered:"",size:"lg","body-class":"p-0","content-class":"bg-transparent border-0"}},[t.lightboxStatus?s("div",{on:{click:t.hideLightbox}},[s("img",{staticStyle:{width:"100%","max-height":"90vh","object-fit":"contain"},attrs:{src:t.lightboxStatus.url}})]):t._e()])],1)},i=[]},49209:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"comment-replies-component"},[t.loading?s("div",{staticClass:"mt-n2"},[t._m(0)]):[s("transition-group",{attrs:{tag:"div","enter-active-class":"animate__animated animate__fadeIn","leave-active-class":"animate__animated animate__fadeOut",mode:"out-in"}},t._l(t.feed,(function(e,o){return s("div",{key:"cd:"+e.id+":"+o},[s("div",{staticClass:"media media-status align-items-top mb-3"},[s("a",{attrs:{href:"#l"}},[s("img",{staticClass:"shadow-sm media-avatar border",attrs:{src:e.account.avatar,width:"40",height:"40",draggable:"false",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"media-body-wrapper"},[e.media_attachments.length?s("div",[s("p",{staticClass:"media-body-comment-username"},[s("a",{attrs:{href:e.account.url},on:{click:function(s){return s.preventDefault(),t.goToProfile(e.account)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.account.acct)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e.sensitive?s("div",{staticClass:"bh-comment",on:{click:function(t){e.sensitive=!1}}},[s("blur-hash-image",{staticClass:"img-fluid border shadow",attrs:{width:t.blurhashWidth(e),height:t.blurhashHeight(e),punch:1,hash:e.media_attachments[0].blurhash}}),t._v(" "),s("div",{staticClass:"sensitive-warning"},[s("p",{staticClass:"mb-0"},[s("i",{staticClass:"far fa-eye-slash fa-lg"})]),t._v(" "),s("p",{staticClass:"mb-0 small"},[t._v("Click to view")])])],1):s("div",{staticClass:"bh-comment"},[s("div",{on:{click:function(s){return t.lightbox(e)}}},[s("blur-hash-image",{staticClass:"img-fluid border shadow",attrs:{width:t.blurhashWidth(e),height:t.blurhashHeight(e),punch:1,hash:e.media_attachments[0].blurhash,src:t.getMediaSource(e)}})],1),t._v(" "),e.favourites_count?s("button",{staticClass:"btn btn-link media-body-likes-count shadow-sm",on:{click:function(e){return e.preventDefault(),t.showLikesModal(o)}}},[s("i",{staticClass:"far fa-thumbs-up primary"}),t._v(" "),s("span",{staticClass:"count"},[t._v(t._s(t.prettyCount(e.favourites_count)))])]):t._e()])]):s("div",{staticClass:"media-body-comment"},[s("p",{staticClass:"media-body-comment-username"},[s("a",{attrs:{href:e.account.url},on:{click:function(s){return s.preventDefault(),t.goToProfile(e.account)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.account.acct)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e.sensitive?s("span",[s("p",{staticClass:"mb-0"},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("common.sensitiveContentWarning"))+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("a",{staticClass:"small font-weight-bold primary",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.sensitive=!1}}},[t._v("Show")])]):s("read-more",{attrs:{status:e}}),t._v(" "),e.favourites_count?s("button",{staticClass:"btn btn-link media-body-likes-count shadow-sm",on:{click:function(e){return e.preventDefault(),t.showLikesModal(o)}}},[s("i",{staticClass:"far fa-thumbs-up primary"}),t._v(" "),s("span",{staticClass:"count"},[t._v(t._s(t.prettyCount(e.favourites_count)))])]):t._e()],1)]),t._v(" "),s("p",{staticClass:"media-body-reactions"},[s("button",{staticClass:"btn btn-link font-weight-bold btn-sm p-0",class:[e.favourited?"primary":"text-muted"],on:{click:function(e){return t.likeComment(o)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t")]),t._v(" "),s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),t._o(s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:e.url},on:{click:function(s){return s.preventDefault(),t.goToPost(e)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.timeago(e.created_at))+"\n\t\t\t\t\t\t\t")]),0,"cd:"+e.id+":"+o),t._v(" "),t.profile&&e.account.id===t.profile.id?s("span",[s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteComment(o)}}},[t._v("\n\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t")])]):s("span",[s("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),s("a",{staticClass:"font-weight-bold text-muted",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.reportComment(o)}}},[t._v("\n\t\t\t\t\t\t\t\t\tReport\n\t\t\t\t\t\t\t\t")])])])])])])})),0)]],2)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"ph-item border-0 mb-0 p-0 bg-transparent",staticStyle:{"border-radius":"15px","margin-left":"-14px"}},[s("div",{staticClass:"ph-col-12 mb-0"},[s("div",{staticClass:"ph-row align-items-center mt-0"},[s("div",{staticClass:"ph-avatar mr-3 d-flex",staticStyle:{"min-width":"40px",width:"40px!important",height:"40px!important","border-radius":"8px"}}),t._v(" "),s("div",{staticClass:"ph-col-6"})])])])}]},64084:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-flex align-items-top reply-form child-reply-form my-3"},[s("img",{staticClass:"shadow-sm media-avatar border",attrs:{src:t.profile.avatar,width:"40",height:"40"}}),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.replyContent,expression:"replyContent"}],staticClass:"form-control bg-light rounded-pill shadow-sm",staticStyle:{"border-color":"#e2e8f0 !important"},attrs:{placeholder:"Write a comment....",disabled:t.isPostingReply},domProps:{value:t.replyContent},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.storeComment.apply(null,arguments)},input:function(e){e.target.composing||(t.replyContent=e.target.value)}}})])},i=[]},94122:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-stack"},[s("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.viewPost"))+"\n\t\t\t")]):t._e(),t._v(" "),"archived"!==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToProfile()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.viewProfile"))+"\n\t\t\t")]):t._e(),t._v(" "),"archived"!==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuShare()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("common.share"))+"\n\t\t\t")]):t._e(),t._v(" "),t.status&&t.profile&&1==t.profile.is_admin&&"archived"!==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxModMenuShow()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.moderationTools"))+"\n\t\t\t")]):t._e(),t._v(" "),t.status&&t.status.account.id!=t.profile.id?s("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.report"))+"\n\t\t\t")]):t._e(),t._v(" "),t.status&&t.profile.id==t.status.account.id&&"archived"!==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.archivePost(t.status)}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.archive"))+"\n\t\t\t")]):t._e(),t._v(" "),t.status&&t.profile.id==t.status.account.id&&"archived"==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.unarchivePost(t.status)}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.unarchive"))+"\n\t\t\t")]):t._e(),t._v(" "),t.status&&(t.profile.is_admin||t.profile.id==t.status.account.id)&&"archived"!==t.status.visibility?s("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("\n\t\t\t\t"+t._s(t.$t("common.delete"))+"\n\t\t\t")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("common.cancel"))+"\n\t\t\t")])])]),t._v(" "),s("b-modal",{ref:"ctxModModal",attrs:{id:"ctx-mod-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("menu.moderationTools"))+"\n\t\t\t\t")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("menu.selectOneOption"))+"\n\t\t\t\t")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"unlist")}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.unlistFromTimelines"))+"\n\t\t\t")]),t._v(" "),t.status.sensitive?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.removeCW"))+"\n\t\t\t")]):s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"addcw")}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.addCW"))+"\n\t\t\t")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"spammer")}}},[t._v("\n\t\t\t\t"+t._s(t.$t("menu.markAsSpammer"))),s("br"),t._v(" "),s("span",{staticClass:"small"},[t._v(t._s(t.$t("menu.markAsSpammerText")))])]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("\n\t\t\t\t"+t._s(t.$t("common.cancel"))+"\n\t\t\t")])])]),t._v(" "),s("b-modal",{ref:"ctxModOtherModal",attrs:{id:"ctx-mod-other-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v(t._s(t.$t("menu.moderationTools")))]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v(t._s(t.$t("menu.selectOneOption")))]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v(t._s(t.$t("common.cancel")))])])]),t._v(" "),s("b-modal",{ref:"ctxShareModal",attrs:{id:"ctx-share-modal",title:"Share","hide-footer":"","hide-header":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded text-center"}},[s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.shareStatus(t.status,e)}}},[t._v(t._s(t.status.reblogged?"Unshare":"Share")+" "+t._s(t.$t("menu.toFollowers")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v(t._s(t.$t("common.copyLink")))]),t._v(" "),t.status&&1==t.status.local&&!t.status.in_reply_to_id?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v(t._s(t.$t("menu.embed")))]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v(t._s(t.$t("common.cancel")))])]),t._v(" "),s("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[s("div",[s("div",{staticClass:"form-group"},[s("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:"8",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[s("div",{staticClass:"form-check mr-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowCaption,expression:"ctxEmbedShowCaption"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowCaption)?t._i(t.ctxEmbedShowCaption,null)>-1:t.ctxEmbedShowCaption},on:{change:function(e){var s=t.ctxEmbedShowCaption,o=e.target,i=!!o.checked;if(Array.isArray(s)){var n=t._i(s,null);o.checked?n<0&&(t.ctxEmbedShowCaption=s.concat([null])):n>-1&&(t.ctxEmbedShowCaption=s.slice(0,n).concat(s.slice(n+1)))}else t.ctxEmbedShowCaption=i}}}),t._v(" "),s("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\t"+t._s(t.$t("menu.showCaption"))+"\n\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"form-check mr-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowLikes,expression:"ctxEmbedShowLikes"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowLikes)?t._i(t.ctxEmbedShowLikes,null)>-1:t.ctxEmbedShowLikes},on:{change:function(e){var s=t.ctxEmbedShowLikes,o=e.target,i=!!o.checked;if(Array.isArray(s)){var n=t._i(s,null);o.checked?n<0&&(t.ctxEmbedShowLikes=s.concat([null])):n>-1&&(t.ctxEmbedShowLikes=s.slice(0,n).concat(s.slice(n+1)))}else t.ctxEmbedShowLikes=i}}}),t._v(" "),s("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\t"+t._s(t.$t("menu.showLikes"))+"\n\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"form-check"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedCompactMode,expression:"ctxEmbedCompactMode"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.ctxEmbedCompactMode)?t._i(t.ctxEmbedCompactMode,null)>-1:t.ctxEmbedCompactMode},on:{change:function(e){var s=t.ctxEmbedCompactMode,o=e.target,i=!!o.checked;if(Array.isArray(s)){var n=t._i(s,null);o.checked?n<0&&(t.ctxEmbedCompactMode=s.concat([null])):n>-1&&(t.ctxEmbedCompactMode=s.slice(0,n).concat(s.slice(n+1)))}else t.ctxEmbedCompactMode=i}}}),t._v(" "),s("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\t"+t._s(t.$t("menu.compactMode"))+"\n\t\t\t\t\t")])])]),t._v(" "),s("hr"),t._v(" "),s("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(" "),s("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v(t._s(t.$t("menu.embedConfirmText"))+" "),s("a",{attrs:{href:"/site/terms"}},[t._v(t._s(t.$t("site.terms")))])])])]),t._v(" "),s("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v(t._s(t.$t("menu.report")))]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v(t._s(t.$t("menu.selectOneOption")))]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v(t._s(t.$t("menu.spam")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("sensitive")}}},[t._v(t._s(t.$t("menu.sensitive")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("abusive")}}},[t._v(t._s(t.$t("menu.abusive")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v(t._s(t.$t("common.other")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v(t._s(t.$t("common.cancel")))])])]),t._v(" "),s("b-modal",{ref:"ctxReportOther",attrs:{id:"ctx-report-other","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v(t._s(t.$t("menu.report")))]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v(t._s(t.$t("menu.selectOneOption")))]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("underage")}}},[t._v(t._s(t.$t("menu.underageAccount")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("copyright")}}},[t._v(t._s(t.$t("menu.copyrightInfringement")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v(t._s(t.$t("menu.impersonation")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("scam")}}},[t._v(t._s(t.$t("menu.scamOrFraud")))]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v(t._s(t.$t("common.cancel")))])])]),t._v(" "),s("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[s("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),s("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[s("button",{staticClass:"btn btn-outline-lighter border-left-0 border-top-0 border-bottom-0 border-right py-2",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalCancel()}}},[t._v(t._s(t.$t("common.cancel")))]),t._v(" "),s("button",{staticClass:"btn btn-outline-lighter border-0",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalConfirm()}}},[t._v("Confirm")])])])],1)},i=[]},72729:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"list-group-item border-left-0 border-right-0 px-3"},[s("div",{staticClass:"ph-item border-0 p-0 m-0 align-items-center"},[s("div",{staticClass:"p-0 mb-0",staticStyle:{flex:"unset"}},[s("div",{staticClass:"ph-avatar",staticStyle:{"min-width":"40px !important",width:"40px !important",height:"40px"}})]),t._v(" "),s("div",{staticClass:"ph-col-9 mb-0"},[s("div",{staticClass:"ph-row"},[s("div",{staticClass:"ph-col-12"}),t._v(" "),s("div",{staticClass:"ph-col-12"})])])])])}]},51364:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("b-modal",{ref:"likesModal",attrs:{centered:"",size:"md",scrollable:!0,"hide-footer":"","header-class":"py-2","body-class":"p-0","title-class":"w-100 text-center pl-4 font-weight-bold","title-tag":"p",title:t.$t("common.likes")}},[t.isLoading?s("div",{staticClass:"likes-loader list-group border-top-0",staticStyle:{"max-height":"500px"}},[s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder")],1):s("div",[t.likes.length?s("div",{staticClass:"list-group",staticStyle:{"max-height":"500px"}},[t._l(t.likes,(function(e,o){return s("div",{staticClass:"list-group-item border-left-0 border-right-0 px-3",class:[0===o?"border-top-0":""]},[s("div",{staticClass:"media align-items-center"},[s("img",{staticClass:"mr-3 shadow-sm",staticStyle:{"border-radius":"8px"},attrs:{src:e.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0 text-truncate"},[s("a",{staticClass:"text-dark font-weight-bold text-decoration-none",attrs:{href:e.url},on:{click:function(s){return s.preventDefault(),t.goToProfile(e)}}},[t._v(t._s(t.getUsername(e)))])]),t._v(" "),s("p",{staticClass:"mb-0 mt-n1 text-dark font-weight-bold small text-break"},[t._v("@"+t._s(e.acct))])]),t._v(" "),s("div",[e.follows?s("button",{staticClass:"btn btn-outline-muted rounded-pill btn-sm font-weight-bold",staticStyle:{width:"110px"},attrs:{disabled:t.isUpdatingFollowState},on:{click:function(e){return t.handleUnfollow(o)}}},[t.isUpdatingFollowState&&t.followStateIndex===o?s("span",[s("b-spinner",{attrs:{small:""}})],1):s("span",[t._v("Following")])]):e.follows?t._e():s("button",{staticClass:"btn btn-primary rounded-pill btn-sm font-weight-bold",staticStyle:{width:"110px"},attrs:{disabled:t.isUpdatingFollowState},on:{click:function(e){return t.handleFollow(o)}}},[t.isUpdatingFollowState&&t.followStateIndex===o?s("span",[s("b-spinner",{attrs:{small:""}})],1):s("span",[t._v("Follow")])])])])])})),t._v(" "),t.canLoadMore?s("div",[s("intersect",{on:{enter:t.enterIntersect}},[s("like-placeholder",{staticClass:"border-top-0"})],1),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder")],1):t._e()],2):s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"140px"}},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.$t("post.noLikes")))])])])])],1)},i=[]},53458:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"timeline-status-component-content"},["poll"===t.status.pf_type?s("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}}):t.fixedHeight?s("div",{staticClass:"card-body p-0"},["photo"===t.status.pf_type?s("div",{class:{fixedHeight:t.fixedHeight}},[1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\t\t\t\t"+t._s(t.$t("common.sensitiveContent"))+"\n\t\t\t\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:t.$t("common.sensitiveContentWarning"))+"\n\t\t\t\t\t")]),t._v(" "),s("p",{staticClass:"mb-0"},[s("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),s("blur-hash-image",{staticClass:"blurhash-wrapper",attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash}})],1):s("div",{staticClass:"content-label-wrapper",staticStyle:{position:"relative",width:"100%",height:"400px",overflow:"hidden","z-index":"1"},on:{click:function(e){return e.preventDefault(),t.toggleLightbox.apply(null,arguments)}}},[s("img",{staticStyle:{position:"absolute",width:"105%",height:"410px","object-fit":"cover","z-index":"1",top:"0",left:"0",filter:"brightness(0.35) blur(6px)",margin:"-5px"},attrs:{src:t.status.media_attachments[0].url}}),t._v(" "),s("blur-hash-image",{key:t.key,staticClass:"blurhash-wrapper",staticStyle:{width:"100%",position:"absolute","z-index":"9",top:"0:left:0"},attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,src:t.status.media_attachments[0].url}}),t._v(" "),!t.status.sensitive&&t.sensitive?s("p",{staticStyle:{"margin-top":"0",padding:"10px",color:"#000","font-size":"10px","text-align":"right",position:"absolute",top:"0",right:"0","border-radius":"11px",cursor:"pointer",background:"rgba(255, 255, 255,.5)"},on:{click:function(e){t.status.sensitive=!0}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e()],1)]):"video"===t.status.pf_type?[1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(1),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\t\t\t\tSensitive Content\n\t\t\t\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This post may contain sensitive content.")+"\n\t\t\t\t\t")]),t._v(" "),s("p",{staticClass:"mb-0"},[s("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){t.status.sensitive=!1}}},[t._v("See Post")])])])]):s("video",{staticClass:"card-img-top shadow",class:{fixedHeight:t.fixedHeight},staticStyle:{"border-radius":"15px","object-fit":"contain","background-color":"#000"},attrs:{controls:""}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])]:"photo:album"===t.status.pf_type?s("div",{staticClass:"card-img-top shadow",staticStyle:{"border-radius":"15px"}},[s("photo-album-presenter",{class:{fixedHeight:t.fixedHeight},staticStyle:{"border-radius":"15px !important","object-fit":"contain","background-color":"#000",overflow:"hidden"},attrs:{status:t.status},on:{lightbox:t.toggleLightbox,togglecw:function(e){return t.toggleContentWarning()}}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"card-img-top shadow",staticStyle:{"border-radius":"15px"}},[s("mixed-album-presenter",{class:{fixedHeight:t.fixedHeight},staticStyle:{"border-radius":"15px !important","object-fit":"contain","background-color":"#000",overflow:"hidden","align-items":"center"},attrs:{status:t.status},on:{lightbox:t.toggleLightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"text"===t.status.pf_type?s("div"):s("div",{staticClass:"bg-light rounded-lg d-flex align-items-center justify-content-center",staticStyle:{height:"400px"}},[s("div",[t._m(2),t._v(" "),s("p",{staticClass:"lead text-center mb-0"},[t._v("\n\t\t\t\t\tCannot display post\n\t\t\t\t")]),t._v(" "),s("p",{staticClass:"small text-center mb-0"},[t._v("\n\t\t\t\t\t"+t._s(t.status.pf_type)+":"+t._s(t.status.id)+"\n\t\t\t\t")])])])],2):s("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.toggleLightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.toggleLightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.toggleLightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):t._e()]),t._v(" "),t.status.content&&!t.status.sensitive?s("div",{staticClass:"card-body status-text",class:["text"===t.status.pf_type?"py-0":"pb-0"]},[s("p",[s("read-more",{attrs:{status:t.status,"cursor-limit":300}})],1)]):t._e()])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle fa-4x"})])}]},24514:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card-header border-0",staticStyle:{"border-top-left-radius":"15px","border-top-right-radius":"15px"}},[s("div",{staticClass:"media align-items-center"},[s("a",{staticClass:"mr-3",attrs:{href:t.status.account.url},on:{click:function(e){return e.preventDefault(),t.goToProfile()}}},[s("img",{staticStyle:{"border-radius":"15px"},attrs:{src:t.getStatusAvatar(),width:"50",height:"50",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"font-weight-bold username"},[s("a",{staticClass:"primary",attrs:{href:t.status.account.url,id:"apop_"+t.status.id},on:{click:function(e){return e.preventDefault(),t.goToProfile.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t")]),t._v(" "),s("b-popover",{attrs:{target:"apop_"+t.status.id,triggers:"hover",placement:"bottom","custom-class":"shadow border-0 rounded-px"}},[s("profile-hover-card",{attrs:{profile:t.status.account},on:{follow:t.follow,unfollow:t.unfollow}})],1)],1),t._v(" "),s("p",{staticClass:"text-lighter mb-0",staticStyle:{"font-size":"13px"}},[t.status.account.is_admin?s("span",[s("span",{staticClass:"badge badge-light text-danger user-select-none",attrs:{title:"Admin account"}},[t._v("ADMIN")]),t._v(" "),s("span",{staticClass:"mx-1 text-lighter"},[t._v("·")])]):t._e(),t._v(" "),s("a",{staticClass:"timestamp text-lighter",attrs:{href:t.status.url,title:t.status.created_at},on:{click:function(e){return e.preventDefault(),t.goToPost()}}},[t._v("\n\t\t\t\t\t"+t._s(t.timeago(t.status.created_at))+"\n\t\t\t\t")]),t._v(" "),s("span",{staticClass:"mx-1 text-lighter"},[t._v("·")]),t._v(" "),s("span",{staticClass:"visibility",attrs:{title:t.scopeTitle(t.status.visibility)}},[s("i",{class:t.scopeIcon(t.status.visibility)})]),t._v(" "),t.license?s("span",[s("span",{staticClass:"mx-1 text-lighter user-select-none"},[t._v("·")]),t._v(" "),t.license.id<7?s("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],staticClass:"visibility user-select-none",attrs:{title:"This work is licensed under a "+t.license.title+" license"}},[t._v(t._s(t.license.title))]):s("a",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],staticClass:"visibility user-select-none",attrs:{title:"This work is licensed under a "+t.license.title+" license",href:t.license.url,target:"_blank"}},[t._v(t._s(t.license.title))])]):t._e(),t._v(" "),t.status.place&&t.status.place.hasOwnProperty("name")?s("span",[s("span",{staticClass:"mx-1 text-lighter"},[t._v("·")]),t._v(" "),s("span",{staticClass:"location"},[s("i",{staticClass:"far fa-map-marker-alt"}),t._v(" "+t._s(t.status.place.name)+", "+t._s(t.status.place.country))])]):t._e()])]),t._v(" "),t.useDropdownMenu?s("b-dropdown",{attrs:{"no-caret":"",right:"",variant:"link","toggle-class":"text-lighter",html:""}},[s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.$t("menu.viewPost")))])]),t._v(" "),s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.$t("common.copyLink")))])]),t._v(" "),t.status.local?s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.$t("menu.embed")))])]):t._e(),t._v(" "),t.owner?t._e():s("b-dropdown-divider"),t._v(" "),t.owner?t._e():s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.$t("menu.report")))]),t._v(" "),s("p",{staticClass:"small text-muted mb-0"},[t._v("Report content that violate our rules")])]),t._v(" "),!t.owner&&t.status.hasOwnProperty("relationship")?s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.status.relationship.muting?"Unmute":"Mute"))]),t._v(" "),s("p",{staticClass:"small text-muted mb-0"},[t._v("Hide posts from this account in your feeds")])]):t._e(),t._v(" "),!t.owner&&t.status.hasOwnProperty("relationship")?s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold text-danger"},[t._v(t._s(t.status.relationship.blocking?"Unblock":"Block"))]),t._v(" "),s("p",{staticClass:"small text-muted mb-0"},[t._v("Restrict all content from this account")])]):t._e(),t._v(" "),t.owner||t.admin?s("b-dropdown-divider"):t._e(),t._v(" "),t.owner||t.admin?s("b-dropdown-item",[s("p",{staticClass:"mb-0 font-weight-bold text-danger"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("common.delete"))+"\n\t\t\t\t")])]):t._e()],1):s("button",{staticClass:"btn btn-link text-lighter",on:{click:t.openMenu}},[s("i",{staticClass:"far fa-ellipsis-v fa-lg"})])],1)])},i=[]},64295:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"px-3 my-3",staticStyle:{"z-index":"3"}},[(t.status.favourites_count||t.status.reblogs_count)&&(t.status.hasOwnProperty("liked_by")&&t.status.liked_by.url||t.status.hasOwnProperty("reblogs_count")&&t.status.reblogs_count)?s("div",{staticClass:"mb-0 d-flex justify-content-between"},[!t.hideCounts&&t.status.favourites_count?s("p",{staticClass:"mb-2 reaction-liked-by"},[t._v("\n\t\t\tLiked by\n\t\t\t"),1==t.status.favourites_count&&1==t.status.favourited?s("span",{staticClass:"font-weight-bold"},[t._v("me")]):s("span",[s("router-link",{staticClass:"primary font-weight-bold",attrs:{to:"/i/web/profile/"+t.status.liked_by.id}},[t._v("@"+t._s(t.status.liked_by.username))]),t._v(" "),t.status.liked_by.others||t.status.favourites_count>1?s("span",[t._v("\n\t\t\t\t\tand "),s("a",{staticClass:"primary font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showLikes()}}},[t._v(t._s(t.count(t.status.favourites_count-1))+" others")])]):t._e()],1)]):t._e(),t._v(" "),!t.hideCounts&&t.status.reblogs_count?s("p",{staticClass:"mb-2 reaction-liked-by"},[t._v("\n\t\t\tShared by\n\t\t\t"),1==t.status.reblogs_count&&1==t.status.reblogged?s("span",{staticClass:"font-weight-bold"},[t._v("me")]):s("a",{staticClass:"primary font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showShares()}}},[t._v("\n\t\t\t\t"+t._s(t.count(t.status.reblogs_count))+" "+t._s(t.status.reblogs_count>1?"others":"other")+"\n\t\t\t")])]):t._e()]):t._e(),t._v(" "),s("div",{staticClass:"d-flex justify-content-between",staticStyle:{"font-size":"14px !important"}},[s("div",[s("button",{staticClass:"btn btn-light font-weight-bold rounded-pill mr-2",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.like()}}},[t.status.favourited?s("span",{staticClass:"primary"},[s("i",{staticClass:"fas fa-heart mr-md-1 text-danger fa-lg"})]):s("span",[s("i",{staticClass:"far fa-heart mr-md-2"})]),t._v(" "),t.likesCount&&!t.hideCounts?s("span",[t._v("\n\t\t\t\t\t"+t._s(t.count(t.likesCount))+"\n\t\t\t\t\t"),s("span",{staticClass:"d-none d-md-inline"},[t._v(t._s(1==t.likesCount?t.$t("common.like"):t.$t("common.likes")))])]):s("span",[s("span",{staticClass:"d-none d-md-inline"},[t._v(t._s(t.$t("common.like")))])])]),t._v(" "),s("button",{staticClass:"btn btn-light font-weight-bold rounded-pill mr-2 px-3",attrs:{type:"button"},on:{click:function(e){return t.showComments()}}},[s("i",{staticClass:"far fa-comment mr-md-2"}),t._v(" "),t.replyCount&&!t.hideCounts?s("span",[t._v("\n\t\t\t\t\t"+t._s(t.count(t.replyCount))+"\n\t\t\t\t\t"),s("span",{staticClass:"d-none d-md-inline"},[t._v(t._s(1==t.replyCount?t.$t("common.comment"):t.$t("common.comments")))])]):s("span",[s("span",{staticClass:"d-none d-md-inline"},[t._v(t._s(t.$t("common.comment")))])])])]),t._v(" "),s("div",[s("button",{staticClass:"btn btn-light font-weight-bold rounded-pill mr-3",attrs:{type:"button",disabled:t.isReblogging},on:{click:function(e){return t.handleReblog()}}},[t.isReblogging?s("span",[s("b-spinner",{attrs:{variant:"warning",small:""}})],1):s("span",[1==t.status.reblogged?s("i",{staticClass:"fas fa-retweet fa-lg text-warning"}):s("i",{staticClass:"far fa-retweet"}),t._v(" "),t.status.reblogs_count&&!t.hideCounts?s("span",{staticClass:"ml-md-2"},[t._v("\n\t\t\t\t\t\t"+t._s(t.count(t.status.reblogs_count))+"\n\t\t\t\t\t")]):t._e()])]),t._v(" "),s("button",{staticClass:"btn btn-light font-weight-bold rounded-pill",attrs:{type:"button",disabled:t.isBookmarking},on:{click:function(e){return t.handleBookmark()}}},[t.isBookmarking?s("span",[s("b-spinner",{attrs:{variant:"warning",small:""}})],1):s("span",[t.status.hasOwnProperty("bookmarked_at")||t.status.hasOwnProperty("bookmarked")&&1==t.status.bookmarked?s("i",{staticClass:"fas fa-bookmark fa-lg text-warning"}):s("i",{staticClass:"far fa-bookmark"})])]),t._v(" "),t.admin?s("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"ml-3 btn btn-light font-weight-bold rounded-pill",attrs:{type:"button",title:"Moderation Tools"},on:{click:function(e){return t.openModTools()}}},[s("i",{staticClass:"far fa-user-crown"})]):t._e()])])])},i=[]},20512:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"read-more-component",staticStyle:{"word-break":"break-word"}},[s("div",{domProps:{innerHTML:t._s(t.content)}})])},i=[]},34392:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("b-modal",{ref:"likesModal",attrs:{centered:"",size:"md",scrollable:!0,"hide-footer":"","header-class":"py-2","body-class":"p-0","title-class":"w-100 text-center pl-4 font-weight-bold","title-tag":"p",title:"Shared By"}},[t.isLoading?s("div",{staticClass:"likes-loader list-group border-top-0",staticStyle:{"max-height":"500px"}},[s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder")],1):s("div",[t.likes.length?s("div",{staticClass:"list-group",staticStyle:{"max-height":"500px"}},[t._l(t.likes,(function(e,o){return s("div",{staticClass:"list-group-item border-left-0 border-right-0 px-3",class:[0===o?"border-top-0":""]},[s("div",{staticClass:"media align-items-center"},[s("img",{staticClass:"mr-3 shadow-sm",staticStyle:{"border-radius":"8px"},attrs:{src:e.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0 text-truncate"},[s("a",{staticClass:"text-dark font-weight-bold text-decoration-none",attrs:{href:e.url},on:{click:function(s){return s.preventDefault(),t.goToProfile(e)}}},[t._v(t._s(t.getUsername(e)))])]),t._v(" "),s("p",{staticClass:"mb-0 mt-n1 text-dark font-weight-bold small text-break"},[t._v("@"+t._s(e.acct))])]),t._v(" "),s("div")])])})),t._v(" "),t.canLoadMore?s("div",[s("intersect",{on:{enter:t.enterIntersect}},[s("like-placeholder",{staticClass:"border-top-0"})],1),t._v(" "),s("like-placeholder"),t._v(" "),s("like-placeholder")],1):t._e()],2):s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"140px"}},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v("Nobody has shared this yet!")])])])])],1)},i=[]},47455:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"profile-hover-card"},[s("div",{staticClass:"profile-hover-card-inner"},[s("div",{staticClass:"d-flex justify-content-between align-items-start",staticStyle:{"max-width":"240px"}},[s("a",{attrs:{href:t.profile.url},on:{click:function(e){return e.preventDefault(),t.goToProfile()}}},[s("img",{staticClass:"avatar",attrs:{src:t.profile.avatar,width:"50",height:"50",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})]),t._v(" "),t.user.id==t.profile.id?s("div",[s("a",{staticClass:"btn btn-outline-primary px-3 py-1 font-weight-bold rounded-pill",attrs:{href:"/settings/home"}},[t._v("Edit Profile")])]):t._e(),t._v(" "),t.user.id!=t.profile.id&&t.relationship?s("div",[t.relationship.following?s("button",{staticClass:"btn btn-outline-primary px-3 py-1 font-weight-bold rounded-pill",attrs:{disabled:t.isLoading},on:{click:function(e){return t.performUnfollow()}}},[t.isLoading?s("span",[s("b-spinner",{attrs:{small:""}})],1):s("span",[t._v("Following")])]):s("div",[t.relationship.requested?s("button",{staticClass:"btn btn-primary primary px-3 py-1 font-weight-bold rounded-pill",attrs:{disabled:""}},[t._v("Follow Requested")]):s("button",{staticClass:"btn btn-primary primary px-3 py-1 font-weight-bold rounded-pill",attrs:{disabled:t.isLoading},on:{click:function(e){return t.performFollow()}}},[t.isLoading?s("span",[s("b-spinner",{attrs:{small:""}})],1):s("span",[t._v("Follow")])])])]):t._e()]),t._v(" "),s("p",{staticClass:"display-name"},[s("a",{attrs:{href:t.profile.url},domProps:{innerHTML:t._s(t.getDisplayName())},on:{click:function(e){return e.preventDefault(),t.goToProfile()}}},[t._v("\n\t\t\t\t"+t._s(t.profile.display_name?t.profile.display_name:t.profile.username)+"\n\t\t\t")])]),t._v(" "),s("div",{staticClass:"username"},[s("a",{staticClass:"username-link",attrs:{href:t.profile.url},on:{click:function(e){return e.preventDefault(),t.goToProfile()}}},[t._v("\n\t\t\t\t@"+t._s(t.getUsername())+"\n\t\t\t")]),t._v(" "),t.user.id!=t.profile.id&&t.relationship&&t.relationship.followed_by?s("p",{staticClass:"username-follows-you"},[s("span",[t._v("Follows You")])]):t._e()]),t._v(" "),t.profile.hasOwnProperty("pronouns")&&t.profile.pronouns&&t.profile.pronouns.length?s("p",{staticClass:"pronouns"},[t._v("\n\t\t\t"+t._s(t.profile.pronouns.join(", "))+"\n\t\t")]):t._e(),t._v(" "),s("p",{staticClass:"bio",domProps:{innerHTML:t._s(t.bio)}}),t._v(" "),s("p",{staticClass:"stats"},[s("span",{staticClass:"stats-following"},[s("span",{staticClass:"following-count"},[t._v(t._s(t.formatCount(t.profile.following_count)))]),t._v(" Following\n\t\t\t")]),t._v(" "),s("span",{staticClass:"stats-followers"},[s("span",{staticClass:"followers-count"},[t._v(t._s(t.formatCount(t.profile.followers_count)))]),t._v(" Followers\n\t\t\t")])])])])},i=[]},78823:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"story-carousel-component"},[t.canShow?s("div",{staticClass:"d-flex pb-2",staticStyle:{"overflow-y":"auto","z-index":"3"}},[s("a",{staticClass:"col-4 col-lg-3 col-xl-2 px-1 text-dark text-decoration-none",staticStyle:{"max-width":"120px"},attrs:{href:"/i/stories/new"}},[s("div",{staticClass:"story-wrapper text-white shadow-sm d-flex flex-column align-items-center justify-content-between mb-3",staticStyle:{width:"100%",height:"200px","border-radius":"15px"}},[s("p",{staticClass:"mb-0"}),t._v(" "),t._m(0),t._v(" "),s("p",{staticClass:"font-weight-bold"},[t._v(t._s(t.$t("story.add")))])])]),t._v(" "),t._l(t.stories,(function(e,o){return s("a",{staticClass:"col-4 col-lg-3 col-xl-2 px-1 story",staticStyle:{"max-width":"120px"},attrs:{href:e.url}},[e.latest&&"photo"==e.latest.type?s("div",{staticClass:"shadow-sm story-wrapper",style:{background:"linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.4)), url("+e.latest.preview_url+")",backgroundSize:"cover",backgroundPosition:"center"}},[s("div",{staticClass:"px-2",staticStyle:{display:"block",width:"100%",bottom:"0",position:"absolute"}},[s("p",{staticClass:"mt-3 mb-0"},[s("img",{staticClass:"avatar",attrs:{src:e.avatar,width:"30",height:"30",draggable:"false",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("p",{staticClass:"mb-0"}),t._v(" "),s("p",{staticClass:"username font-weight-bold small text-truncate"},[t._v("\n\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t")])])]):s("div",{staticClass:"shadow-sm story-wrapper"},[s("div",{staticClass:"px-2",staticStyle:{display:"block",width:"100%",bottom:"0",position:"absolute"}},[s("p",{staticClass:"mt-3 mb-0"},[s("img",{staticClass:"avatar",attrs:{src:e.avatar,width:"30",height:"30"}})]),t._v(" "),s("p",{staticClass:"mb-0"}),t._v(" "),s("p",{staticClass:"username font-weight-bold small text-truncate"},[t._v("\n\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t")])])])])}))],2):t._e()])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0"},[e("i",{staticClass:"fal fa-plus-circle fa-2x"})])}]},31680:(t,e,s)=>{s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"timeline-section-component"},[t.isLoaded?s("div",[t._l(t.feed,(function(e,o){return s("status",{key:"pf_feed:"+e.id+o,attrs:{status:e,profile:t.profile},on:{like:function(e){return t.likeStatus(o)},unlike:function(e){return t.unlikeStatus(o)},share:function(e){return t.shareStatus(o)},unshare:function(e){return t.unshareStatus(o)},menu:function(e){return t.openContextMenu(o)},"counter-change":function(e){return t.counterChange(o,e)},"likes-modal":function(e){return t.openLikesModal(o)},"shares-modal":function(e){return t.openSharesModal(o)},follow:function(e){return t.follow(o)},unfollow:function(e){return t.unfollow(o)},"comment-likes-modal":t.openCommentLikesModal,"handle-report":t.handleReport,bookmark:function(e){return t.handleBookmark(o)},"mod-tools":function(e){return t.handleModTools(o)}}})})),t._v(" "),t.showLoadMore?s("div",{staticClass:"text-center"},[s("button",{staticClass:"btn btn-primary rounded-pill font-weight-bold",on:{click:t.tryToLoadMore}},[t._v("\n\t\t\t\tLoad more\n\t\t\t")])]):t._e(),t._v(" "),t.canLoadMore?s("div",[s("intersect",{on:{enter:t.enterIntersect}},[s("status-placeholder",{staticStyle:{"margin-bottom":"10rem"}})],1)],1):t._e(),t._v(" "),!t.isLoaded&&t.feed.length&&t.endFeedReached?s("div",{staticStyle:{"margin-bottom":"50vh"}},[t._m(0)]):t._e(),t._v(" "),"home"!=t.scope||t.feed.length?t._e():s("timeline-onboarding",{attrs:{profile:t.profile},on:{"update-profile":t.updateProfile}}),t._v(" "),t.isLoaded&&"home"!==t.scope&&!t.feed.length?s("empty-timeline"):t._e()],2):s("div",[s("status-placeholder"),t._v(" "),s("status-placeholder"),t._v(" "),s("status-placeholder"),t._v(" "),s("status-placeholder")],1),t._v(" "),t.showMenu?s("context-menu",{ref:"contextMenu",attrs:{status:t.feed[t.postIndex],profile:t.profile},on:{moderate:t.commitModeration,delete:t.deletePost,"report-modal":t.handleReport}}):t._e(),t._v(" "),t.showLikesModal?s("likes-modal",{ref:"likesModal",attrs:{status:t.likesModalPost,profile:t.profile}}):t._e(),t._v(" "),t.showSharesModal?s("shares-modal",{ref:"sharesModal",attrs:{status:t.sharesModalPost,profile:t.profile}}):t._e(),t._v(" "),s("report-modal",{key:t.reportedStatusId,ref:"reportModal",attrs:{status:t.reportedStatus}})],1)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card card-body shadow-sm mb-3",staticStyle:{"border-radius":"15px"}},[s("p",{staticClass:"display-4 text-center"},[t._v("✨")]),t._v(" "),s("p",{staticClass:"lead mb-0 text-center"},[t._v("You have reached the end of this feed")])])}]}}]); \ No newline at end of file diff --git a/public/js/installer.js b/public/js/installer.js new file mode 100644 index 000000000..1c0b4aa2f --- /dev/null +++ b/public/js/installer.js @@ -0,0 +1,2 @@ +/*! For license information please see installer.js.LICENSE.txt */ +(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[496],{51668:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});const i={data:function(){return{proceedCheck:!1}},computed:{adminUsername:{get:function(){return this.$store.state.config.admin_username},set:function(t){this.$store.commit("setConfigValue",{key:"admin_username",value:t})}},adminEmail:{get:function(){return this.$store.state.config.admin_email},set:function(t){this.$store.commit("setConfigValue",{key:"admin_email",value:t})}},adminPassword:{get:function(){return this.$store.state.config.admin_password},set:function(t){this.$store.commit("setConfigValue",{key:"admin_password",value:t})}}},watch:{$route:"init"},mounted:function(){this.init()},methods:{init:function(){void 0!==this.$store.state.config.requirements||this.$router.push("/installer")},proceed:function(){var t=this;this.proceedCheck=!0,setTimeout((function(){t.proceedCheck=!1,t.$router.push("/installer/review")}),750)}}}},14890:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});const i={data:function(){return{isLoaded:!1,proceedCheck:!1,step:1}},computed:{domain:{get:function(){return this.$store.state.config.domain},set:function(t){this.$store.commit("setConfigValue",{key:"domain",value:t})}},name:{get:function(){return this.$store.state.config.name},set:function(t){this.$store.commit("setConfigValue",{key:"name",value:t})}},description:{get:function(){return this.$store.state.config.description},set:function(t){this.$store.commit("setConfigValue",{key:"description",value:t})}},db_driver:{get:function(){return this.$store.state.config.db_driver},set:function(t){this.$store.commit("setConfigValue",{key:"db_driver",value:t})}},db_port:{get:function(){return this.$store.state.config.db_port},set:function(t){this.$store.commit("setConfigValue",{key:"db_port",value:t})}},db_host:{get:function(){return this.$store.state.config.db_host},set:function(t){this.$store.commit("setConfigValue",{key:"db_host",value:t})}},db_name:{get:function(){return this.$store.state.config.db_name},set:function(t){this.$store.commit("setConfigValue",{key:"db_name",value:t})}},db_username:{get:function(){return this.$store.state.config.db_username},set:function(t){this.$store.commit("setConfigValue",{key:"db_username",value:t})}},db_password:{get:function(){return this.$store.state.config.db_password},set:function(t){this.$store.commit("setConfigValue",{key:"db_password",value:t})}}},watch:{$route:"init"},mounted:function(){this.init()},methods:{init:function(){var t=this;void 0!==this.$store.state.config.requirements?(this.domain&&this.name&&this.description||(this.step=1),this.precheckDatabase(!1)&&(this.step=2),setTimeout((function(){t.isLoaded=!0}),300)):this.$router.push("/installer")},goBack:function(){1!==this.step?this.step--:this.$router.push("/installer/requirements")},checkFields:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;switch(t){case 1:if(!this.domain||!this.name||!this.description)return void this.throwNotComplete();this.step=2;break;case 2:if(!(this.db_driver&&this.db_host&&this.db_port&&this.db_name&&this.db_username&&this.db_password))return void this.throwNotComplete();this.precheckDatabase()}},proceed:function(){var t=this;switch(this.step){case 1:this.proceedCheck=!0,setTimeout((function(){t.proceedCheck=!1,t.checkFields(1)}),750);break;case 2:this.proceedCheck=!0,setTimeout((function(){t.proceedCheck=!1,t.checkFields(2)}),750)}},throwNotComplete:function(){swal("Oops!","Please fill out the fields on this page before proceeding!","warning")},precheckDatabase:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];axios.post("/installer/precheck/database",{db_driver:this.db_driver,db_host:this.db_host,db_port:this.db_port,db_user:this.db_user,db_name:this.db_name,db_username:this.db_username,db_password:this.db_password}).then((function(s){if(!e)return!0;t.proceedCheck=!0,setTimeout((function(){t.proceedCheck=!1,t.$router.push("/installer/services")}),750)})).catch((function(t){if(e){if(t.hasOwnProperty("error")){var s=t.error;if(s.startsWith("SQLSTATE[08006] [7]")||s.startsWith("SQLSTATE[HY000] [1045]")){var i=document.createElement("p");i.classList.add("text-left"),i.innerHTML='The database credentials you provided are incorrect.
Please re-check them and try again.
';var a=document.createElement("div");a.appendChild(i),swal({title:"Database Authentication Error",content:a,icon:"error"})}}if(t.response&&t.response.data&&t.response.data.error){var o=t.response.data.error;if(o.startsWith("SQLSTATE[08006] [7]")||o.startsWith("SQLSTATE[HY000] [1045]")){var r=document.createElement("p");r.classList.add("text-left"),r.innerHTML='The database credentials you provided are incorrect.
Please re-check them and try again.
';var n=document.createElement("div");n.appendChild(r),swal({title:"Database Authentication Error",content:n,icon:"error"})}}console.log(t.response)}}))}}}},84967:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});const i={data:function(){return{proceedCheck:!1,features:[{state:!0,name:"ActivityPub",description:"ActivityPub federation, compatible with Pixelfed, Mastodon and other projects."},{state:!1,name:"Stories",description:"Allow users to share ephemeral Stories."},{state:!1,name:"Spam detection",description:"Detect and remove spam from timelines."}]}},computed:{openRegistration:{get:function(){return this.$store.state.config.features.open_registration},set:function(t){this.updateFeature("open_registration",t)}},activitypub:{get:function(){return this.$store.state.config.features.activitypub},set:function(t){this.updateFeature("activitypub",t)}},atom:{get:function(){return this.$store.state.config.features.atom},set:function(t){this.updateFeature("atom",t)}},stories:{get:function(){return this.$store.state.config.features.stories},set:function(t){this.updateFeature("stories",t)}}},watch:{$route:"init"},mounted:function(){this.init()},methods:{init:function(){void 0!==this.$store.state.config.requirements||this.$router.push("/installer")},updateFeature:function(t,e){var s=this.$store.state.config.features;s[t]=e,this.$store.commit("setConfigValue",{key:"features",value:s})},proceed:function(){var t=this;this.proceedCheck=!0,setTimeout((function(){t.proceedCheck=!1,t.$router.push("/installer/media")}),750)}}}},37702:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});const i={}},91517:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});const i={data:function(){return{proceedCheck:!1,showCustom:{uploadSize:!1},mimes:{jpeg:!0,png:!0,gif:!1,webp:!1,mp4:!1}}},computed:{systemMaxUploadSize:{get:function(){var t=this.prettyToReal(this.$store.state.config.requirements.php.post_max_size.actual),e=this.prettyToReal(this.$store.state.config.requirements.php.upload_max_filesize.actual),s=(t>=t?t:e)/1024/1024;return s>50?50:s}},optimizeMedia:{get:function(){return this.$store.state.config.optimize_media},set:function(t){this.$store.commit("setConfigValue",{key:"optimize_media",value:t})}},maxUploadSize:{get:function(){var t=this.$store.state.config.max_upload_size;return t>this.systemMaxUploadSize?t>15?15:this.systemMaxUploadSize:t},set:function(t){this.$store.commit("setConfigValue",{key:"max_upload_size",value:t})}},imageQuality:{get:function(){return this.$store.state.config.image_quality},set:function(t){this.$store.commit("setConfigValue",{key:"image_quality",value:t})}}},watch:{$route:"init"},mounted:function(){this.init()},methods:{init:function(){null!=this.$store.state.config.requirements||this.$router.push("/installer")},prettyToReal:function(t){var e=t.slice(-1),s=t.slice(0,-1),i=1;switch(e){case"K":i=1024;break;case"M":i=1048576;break;case"G":i=1073741824}return s*i},proceed:function(){var t=this;this.proceedCheck=!0,this.setMimes(),setTimeout((function(){t.proceedCheck=!1,t.$router.push("/installer/administration")}),750)},setMimes:function(){var t=[];this.mimes.jpeg&&t.push("image/jpeg"),this.mimes.png&&t.push("image/png"),this.mimes.gif&&t.push("image/gif"),this.mimes.gif&&t.push("image/webp"),this.mimes.mp4&&t.push("video/mp4"),t.length&&this.$store.commit("setConfigValue",{key:"mime_types",value:t})}}}},75568:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});const i={data:function(){return{r:[],proceedCheck:!1}},mounted:function(){this.fetchRequirements()},methods:{fetchRequirements:function(){var t=this;axios.get("/installer/api/requirements").then((function(e){t.r=e.data,t.$store.commit("setConfigValue",{key:"requirements",value:e.data})}))},renderState:function(t){return t?"far fa-check-circle text-success":"far fa-times-circle text-danger"},prettyToReal:function(t){var e=t.slice(-1),s=t.slice(0,-1),i=1;switch(e){case"K":i=1024;break;case"M":i=1048576;break;case"G":i=1073741824}return s*i},compareVals:function(t,e){var s=this.prettyToReal(t);return this.prettyToReal(e)>=s},proceed:function(){var t=this;this.proceedCheck=!0,setTimeout((function(){t.proceedCheck=!1,t.$router.push("/installer/environment")}),750)}}}},71766:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});const i={data:function(){return{initialLoad:!1,proceedCheck:!1}},computed:{config:{get:function(){return this.$store.state.config}},administrator:{get:function(){var t=this.$store.state.config;return t.admin_email&&t.admin_password&&t.admin_username}},database:{get:function(){var t=this.$store.state.config;return!!(t.db_name&&t.db_port&&t.db_host&&t.db_driver&&t.db_username)}}},watch:{$route:"init"},mounted:function(){this.init()},methods:{init:function(){if(!this.initialLoad)if(void 0!==this.$store.state.config.requirements){if(!this.config.name||!this.config.db_username||!this.config.domain){if(!this.config.name||!this.config.domain)return void this.$router.push("/installer/environment");swal("Error","You have not completed the installation process, please go back and ensure all fields are filled out.","error")}this.initialLoad=!0}else this.$router.push("/installer")},proceed:function(){var t=this;this.proceedCheck=!0,axios.post("/installer/store",this.config).then((function(e){t.proceedCheck=!1,localStorage.clear(),window.location="/login?fi=1&hb=jp"})).catch((function(e){t.proceedCheck=!1;var s=e.response.data.hasOwnProperty("error")?e.response.data.error:e.response.data;swal("Error",s,"error")}))}}}},79038:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});const i={data:function(){return{isLoaded:!1,step:1,proceedCheck:!1}},computed:{cache_driver:{get:function(){return this.$store.state.config.cache_driver},set:function(t){this.$store.commit("setConfigValue",{key:"cache_driver",value:t})}},redis_scheme:{get:function(){return this.$store.state.config.redis_scheme},set:function(t){this.$store.commit("setConfigValue",{key:"redis_scheme",value:t})}},redis_host:{get:function(){return this.$store.state.config.redis_host},set:function(t){this.$store.commit("setConfigValue",{key:"redis_host",value:t})}},redis_port:{get:function(){return this.$store.state.config.redis_port},set:function(t){this.$store.commit("setConfigValue",{key:"redis_port",value:t})}},redis_password:{get:function(){return this.$store.state.config.redis_password},set:function(t){this.$store.commit("setConfigValue",{key:"redis_password",value:t})}},queueLink:{get:function(){return"database"===this.queueDriver?"https://laravel.com/docs/8.x/queues#supervisor-configuration":"https://laravel.com/docs/8.x/horizon#deploying-horizon"}},queueDriver:{get:function(){return this.$store.state.config.queue_driver},set:function(t){this.$store.commit("setConfigValue",{key:"queue_driver",value:t})}},queueConfirm:{get:function(){return this.$store.state.config.queue_confirm},set:function(t){this.$store.commit("setConfigValue",{key:"queue_confirm",value:t})}},mailAddressVerify:{get:function(){return this.$store.state.config.mail_address_verify},set:function(t){this.$store.commit("setConfigValue",{key:"mail_address_verify",value:t})}},mailDriver:{get:function(){return this.$store.state.config.mail_driver},set:function(t){this.$store.commit("setConfigValue",{key:"mail_driver",value:t})}},mailHost:{get:function(){return this.$store.state.config.mail_host},set:function(t){this.$store.commit("setConfigValue",{key:"mail_host",value:t})}},mailPort:{get:function(){return this.$store.state.config.mail_port},set:function(t){this.$store.commit("setConfigValue",{key:"mail_port",value:t})}},mailUsername:{get:function(){return this.$store.state.config.mail_username},set:function(t){this.$store.commit("setConfigValue",{key:"mail_username",value:t})}},mailPassword:{get:function(){return this.$store.state.config.mail_password},set:function(t){this.$store.commit("setConfigValue",{key:"mail_password",value:t})}},mailgunDomain:{get:function(){return this.$store.state.config.mailgun_domain},set:function(t){this.$store.commit("setConfigValue",{key:"mailgun_domain",value:t})}},mailgunSecret:{get:function(){return this.$store.state.config.mailgun_secret},set:function(t){this.$store.commit("setConfigValue",{key:"mailgun_secret",value:t})}},mailgunEndpoint:{get:function(){return this.$store.state.config.mailgun_endpoint},set:function(t){this.$store.commit("setConfigValue",{key:"mailgun_endpoint",value:t})}}},watch:{$route:"init"},mounted:function(){this.init()},methods:{init:function(){var t=this;void 0!==this.$store.state.config.requirements?(this.queueConfirm&&(this.step=3),setTimeout((function(){t.isLoaded=!0}),300)):this.$router.push("/installer")},goBack:function(){1!==this.step?this.step--:this.$router.push("/installer/environment")},checkFields:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;switch(t){case 1:this.step=2;break;case 2:if(!this.queueConfirm)return void this.throwNotComplete("You need to confirm that manual action is required to setup the job queue");this.step=3}},proceed:function(){var t=this;switch(this.step){case 1:this.checkFields(1);break;case 2:this.checkFields(2);break;case 3:this.proceedCheck=!0,setTimeout((function(){t.proceedCheck=!1,t.$router.push("/installer/features")}),750)}},throwNotComplete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Please fill out the fields on this page before proceeding!";swal("Oops!",t,"warning")}}}},99720:(t,e,s)=>{"use strict";s.r(e);var i=s(70538),a=s(78345),o=s(20629),r=s(83678),n=s(25518),l=s(30306),c=s.n(l),d=s(7398),u=s.n(d),m=s(92987),f=s(37409),p=s.n(f),v=s(74870),h=s.n(v),_=s(82364),g=s(17152),b=(s(82711),s(46737),s(5572)),y=s(91283),C=s(16563),w=s(23501),x=s(17851),k=s(99248),$=s(75880),P=s(91572),S=(s(19755),s(19755));s(86807),window.Vue=i.default,window.pftxt=s(47711),window.filesize=s(42317),window._=s(96486),window.Popper=s(28981).default,window.pixelfed=window.pixelfed||{},window.$=s(19755),s(43734),window.axios=s(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",s(90717),window.blurhash=s(43985),S('[data-toggle="tooltip"]').tooltip(),i.default.use(a.default),i.default.use(o.default),i.default.use(h()),i.default.use(p()),i.default.use(n.default),i.default.use(c()),i.default.use(u()),i.default.use(_.default),i.default.use(g.default),i.default.use(m.default,{name:"Timeago",locale:"en"});var R=new a.default({mode:"history",linkActiveClass:"active",routes:[{path:"/installer",component:b.default},{path:"/installer/requirements",component:y.default},{path:"/installer/environment",component:C.default},{path:"/installer/services",component:w.default},{path:"/installer/features",component:k.default},{path:"/installer/media",component:x.default},{path:"/installer/administration",component:$.default},{path:"/installer/review",component:P.default},{path:"/installer/*",component:b.default,props:!0}],scrollBehavior:function(t,e,s){return t.hash?{selector:"[id='".concat(t.hash.slice(1),"']")}:{x:0,y:0}}});function A(t,e){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="pfi."+t,a=window.localStorage;if(1==s)return["mime_types","requirements"].includes(t)?void a.setItem(i,JSON.stringify(e)):void a.setItem(i,e);if(a.getItem(i)){if(["mime_types","requirements"].includes(t))return JSON.parse(a.getItem(i));var o=a.getItem(i);return o}return e}var M=new o.default.Store({state:{version:1,config:{requirements:void 0,domain:A("domain",void 0),name:A("name","pixelfed"),description:A("description",void 0),db_driver:A("db_driver","mysql"),db_name:A("db_name","pixelfed"),db_port:A("db_port","3306"),db_host:A("db_host","localhost"),db_username:A("db_username",void 0),db_password:A("db_password",void 0),cache_driver:A("cache_driver","database"),redis_scheme:A("redis_scheme","tcp"),redis_host:A("redis_host","127.0.0.1"),redis_port:A("redis_port",6379),redis_password:A("redis_password",void 0),mail_driver:A("mail_driver",0),mailgun_endpoint:A("mailgun_endpoint","api.mailgun.net"),mailgun_domain:A("mailgun_domain",void 0),mailgun_secret:A("mailgun_secret",void 0),mail_host:A("mail_host",void 0),mail_port:A("mail_port",587),mail_username:A("mail_username",void 0),mail_password:A("mail_password",void 0),mail_address_verify:A("mail_address_verify",!0),queue_driver:A("queue_driver","database"),queue_confirm:A("queue_confirm",!1),filesystem:A("filesystem","local"),optimize_media:A("optimize_media",!1),max_upload_size:A("max_upload_size",5),image_quality:A("image_quality",80),mime_types:A("mime_types",["image/jpeg","image/png"]),features:{open_registration:A("open_registration",!1),activitypub:A("activitypub",!0),atom:A("atom",!0),stories:A("stories",!1)},admin_username:A("admin_username",void 0),admin_password:A("admin_password",void 0),admin_email:A("admin_email",void 0),compose:{max_caption_length:150,max_album_length:4}}},getters:{getVersion:function(t){return t.version},getConfig:function(t){return t.config}},mutations:{setVersion:function(t,e){t.version=e},setConfig:function(t,e){t.config=e},setConfigValue:function(t,e){t.config[e.key]=e.value,A(e.key,e.value,!0)}}});(0,r.sync)(M,R);new i.default({el:"#content",router:R,store:M});window.App=window.App||{};console.log("%cStop!","color:red; font-size:60px; font-weight: bold; -webkit-text-stroke: 1px black;"),console.log('%cThis is a browser feature intended for developers. If someone told you to copy and paste something here to enable a Pixelfed feature or "hack" someone\'s account, it is a scam and will give them access to your Pixelfed account.',"font-size: 18px;")},86807:function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}!function(){var e="object"===("undefined"==typeof window?"undefined":t(window))?window:"object"===("undefined"==typeof self?"undefined":t(self))?self:this,s=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder;e.URL=e.URL||e.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var i=e.Blob,a=URL.createObjectURL,o=URL.revokeObjectURL,r=e.Symbol&&e.Symbol.toStringTag,n=!1,c=!1,d=!!e.ArrayBuffer,u=s&&s.prototype.append&&s.prototype.getBlob;try{n=2===new Blob(["ä"]).size,c=2===new Blob([new Uint8Array([1,2])]).size}catch(t){}function m(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var s=new Uint8Array(t.byteLength);s.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=s.buffer}return e}return t}))}function f(t,e){e=e||{};var i=new s;return m(t).forEach((function(t){i.append(t)})),e.type?i.getBlob(e.type):i.getBlob()}function p(t,e){return new i(m(t),e||{})}e.Blob&&(f.prototype=Blob.prototype,p.prototype=Blob.prototype);var v="function"==typeof TextEncoder?TextEncoder.prototype.encode.bind(new TextEncoder):function(t){for(var s=0,i=t.length,a=e.Uint8Array||Array,o=0,r=Math.max(32,i+(i>>1)+7),n=new a(r>>3<<3);s=55296&&l<=56319){if(s=55296&&l<=56319)continue}if(o+4>n.length){r+=8,r=(r*=1+s/t.length*2)>>3<<3;var d=new Uint8Array(r);d.set(n),n=d}if(0!=(4294967168&l)){if(0==(4294965248&l))n[o++]=l>>6&31|192;else if(0==(4294901760&l))n[o++]=l>>12&15|224,n[o++]=l>>6&63|128;else{if(0!=(4292870144&l))continue;n[o++]=l>>18&7|240,n[o++]=l>>12&63|128,n[o++]=l>>6&63|128}n[o++]=63&l|128}else n[o++]=l}return n.slice(0,o)},h="function"==typeof TextDecoder?TextDecoder.prototype.decode.bind(new TextDecoder):function(t){for(var e=t.length,s=[],i=0;i239?4:l>223?3:l>191?2:1;if(i+d<=e)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(a=t[i+1]))&&(n=(31&l)<<6|63&a)>127&&(c=n);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(n=(15&l)<<12|(63&a)<<6|63&o)>2047&&(n<55296||n>57343)&&(c=n);break;case 4:a=t[i+1],o=t[i+2],r=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&r)&&(n=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&r)>65535&&n<1114112&&(c=n)}null===c?(c=65533,d=1):c>65535&&(c-=65536,s.push(c>>>10&1023|55296),c=56320|1023&c),s.push(c),i+=d}var u=s.length,m="";for(i=0;i>2,d=(3&a)<<4|r>>4,u=(15&r)<<2|l>>6,m=63&l;n||(m=64,o||(u=64)),s.push(e[c],e[d],e[u],e[m])}return s.join("")}var i=Object.create||function(t){function e(){}return e.prototype=t,new e};if(d)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function c(s,i){i=null==i?{}:i;for(var a=0,o=(s=s||[]).length;a=e.size&&s.close()}))}})}}catch(t){try{new ReadableStream({}),g=function(t){var e=0;t=this;return new ReadableStream({pull:function(s){return t.slice(e,e+524288).arrayBuffer().then((function(i){e+=i.byteLength;var a=new Uint8Array(i);s.enqueue(a),e==t.size&&s.close()}))}})}}catch(t){try{new Response("").body.getReader().read(),g=function(){return new Response(this).body}}catch(t){g=function(){throw new Error("Include https://github.com/MattiasBuelens/web-streams-polyfill")}}}}b.arrayBuffer||(b.arrayBuffer=function(){var t=new FileReader;return t.readAsArrayBuffer(this),y(t)}),b.text||(b.text=function(){var t=new FileReader;return t.readAsText(this),y(t)}),b.stream||(b.stream=g)}(),function(t){"use strict";var e,s=t.Uint8Array,i=t.HTMLCanvasElement,a=i&&i.prototype,o=/\s*;\s*base64\s*(?:;|$)/i,r="toDataURL",n=function(t){for(var i,a,o=t.length,r=new s(o/4*3|0),n=0,l=0,c=[0,0],d=0,u=0;o--;)a=t.charCodeAt(n++),255!==(i=e[a-43])&&undefined!==i&&(c[1]=c[0],c[0]=a,u=u<<6|i,4===++d&&(r[l++]=u>>>16,61!==c[1]&&(r[l++]=u>>>8),61!==c[0]&&(r[l++]=u),d=0));return r};s&&(e=new s([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),!i||a.toBlob&&a.toBlobHD||(a.toBlob||(a.toBlob=function(t,e){if(e||(e="image/png"),this.mozGetAsFile)t(this.mozGetAsFile("canvas",e));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(e))t(this.msToBlob());else{var i,a=Array.prototype.slice.call(arguments,1),l=this[r].apply(this,a),c=l.indexOf(","),d=l.substring(c+1),u=o.test(l.substring(0,c));Blob.fake?((i=new Blob).encoding=u?"base64":"URI",i.data=d,i.size=d.length):s&&(i=u?new Blob([n(d)],{type:e}):new Blob([decodeURIComponent(d)],{type:e})),t(i)}}),!a.toBlobHD&&a.toDataURLHD?a.toBlobHD=function(){r="toDataURLHD";var t=this.toBlob();return r="toDataURL",t}:a.toBlobHD=a.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)},4777:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(23645),a=s.n(i)()((function(t){return t[1]}));a.push([t.id,".review-card[data-v-4726333c]{align-items:center;background-color:#f8f9fa!important;border:none;box-shadow:none;display:flex;flex-direction:row;font-size:1.3rem;justify-content:space-between;margin-bottom:1rem}.review-card div[data-v-4726333c]:last-child{font-weight:700}",""]);const o=a},84101:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var i=s(93379),a=s.n(i),o=s(4777),r={insert:"head",singleton:!1};a()(o.default,r);const n=o.default.locals||{}},75880:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(11396),a=s(63689),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,null,null).exports},16563:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(72476),a=s(54185),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,null,null).exports},99248:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(8245),a=s(59372),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,null,null).exports},5572:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(96780),a=s(79692),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,null,null).exports},17851:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(57695),a=s(66953),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,null,null).exports},91283:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(47846),a=s(44819),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,null,null).exports},91572:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(48966),a=s(9674),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);s(36639);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,"4726333c",null).exports},23501:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(6796),a=s(75893),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,null,null).exports},63689:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(51668),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const o=i.default},54185:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(14890),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const o=i.default},59372:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(84967),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const o=i.default},79692:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(37702),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const o=i.default},66953:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(91517),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const o=i.default},44819:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(75568),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const o=i.default},9674:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(71766),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const o=i.default},75893:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(79038),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const o=i.default},36639:(t,e,s)=>{"use strict";s.r(e);var i=s(84101),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},11396:(t,e,s)=>{"use strict";s.r(e);var i=s(52106),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},72476:(t,e,s)=>{"use strict";s.r(e);var i=s(64731),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},8245:(t,e,s)=>{"use strict";s.r(e);var i=s(30910),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},96780:(t,e,s)=>{"use strict";s.r(e);var i=s(81053),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},57695:(t,e,s)=>{"use strict";s.r(e);var i=s(6151),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},47846:(t,e,s)=>{"use strict";s.r(e);var i=s(65490),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},48966:(t,e,s)=>{"use strict";s.r(e);var i=s(15901),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},6796:(t,e,s)=>{"use strict";s.r(e);var i=s(20080),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},52106:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card card-body rounded-lg border d-flex justify-content-between",staticStyle:{"min-height":"80vh"}},[s("div",{staticClass:"m-5 text-dark"},[s("p",{staticClass:"h3 font-weight-bold"},[t._v("Administration")]),t._v(" "),s("p",{staticClass:"lead"},[t._v("Optionally configure an administrator account")]),t._v(" "),s("hr"),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Username")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.adminUsername,expression:"adminUsername"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"admin"},domProps:{value:t.adminUsername},on:{input:function(e){e.target.composing||(t.adminUsername=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Email")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.adminEmail,expression:"adminEmail"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"john.appleseed@example.org"},domProps:{value:t.adminEmail},on:{input:function(e){e.target.composing||(t.adminEmail=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Password")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.adminPassword,expression:"adminPassword"}],staticClass:"form-control form-control-lg",domProps:{value:t.adminPassword},on:{input:function(e){e.target.composing||(t.adminPassword=e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"mx-5"},[s("p",{staticClass:"d-flex justify-content-between"},[s("router-link",{staticClass:"btn btn-light",attrs:{to:"/installer/media"}},[t._v("\n\t\t\t\tBack\n\t\t\t")]),t._v(" "),s("button",{staticClass:"btn btn-primary",attrs:{disabled:t.proceedCheck},on:{click:t.proceed}},[t.proceedCheck?s("b-spinner",{attrs:{small:""}}):s("span",[t._v("Proceed")])],1)],1)])])},a=[]},64731:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card card-body rounded-lg border d-flex justify-content-between",staticStyle:{"min-height":"80vh"}},[t.isLoaded?[s("div",{staticClass:"m-5 text-dark"},[s("p",{staticClass:"h3 font-weight-bold"},[t._v("Environment")]),t._v(" "),s("hr"),t._v(" "),1===t.step?[s("div",{staticClass:"form-group mb-4"},[s("label",{staticClass:"font-weight-bold"},[t._v("Domain")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.domain,expression:"domain"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"pixelfed.org"},domProps:{value:t.domain},on:{input:function(e){e.target.composing||(t.domain=e.target.value)}}}),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("The domain of your instance. You can change this later.")])]),t._v(" "),s("div",{staticClass:"form-group mb-4"},[s("label",{staticClass:"font-weight-bold"},[t._v("Site Name")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"Pixelfed"},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}}),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("The name of your instance. You can change this later.")])]),t._v(" "),s("div",{staticClass:"form-group mb-4"},[s("label",{staticClass:"font-weight-bold"},[t._v("Description")]),t._v(" "),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.description,expression:"description"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"Photographers wanted...",rows:"2"},domProps:{value:t.description},on:{input:function(e){e.target.composing||(t.description=e.target.value)}}}),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("A brief description of your instance. You can change this later.")])])]:t._e(),t._v(" "),2===t.step?[s("p",{staticClass:"small font-weight-bold text-muted"},[t._v("DATABASE")]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Database Driver")]),t._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:t.db_driver,expression:"db_driver"}],staticClass:"form-control form-control-lg",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.db_driver=e.target.multiple?s:s[0]}}},[s("option",{attrs:{value:"mysql"}},[t._v("MySQL")]),t._v(" "),s("option",{attrs:{value:"pgsql"}},[t._v("Postgres")])])]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Database Host")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.db_host,expression:"db_host"}],staticClass:"form-control form-control-lg",attrs:{name:"db_host",placeholder:"localhost"},domProps:{value:t.db_host},on:{input:function(e){e.target.composing||(t.db_host=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Database Port")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.db_port,expression:"db_port"}],staticClass:"form-control form-control-lg",attrs:{name:"db_port",placeholder:"3306"},domProps:{value:t.db_port},on:{input:function(e){e.target.composing||(t.db_port=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Database Name")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.db_name,expression:"db_name"}],staticClass:"form-control form-control-lg",attrs:{name:"db_name",placeholder:"pixelfed"},domProps:{value:t.db_name},on:{input:function(e){e.target.composing||(t.db_name=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Database Username")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.db_username,expression:"db_username"}],staticClass:"form-control form-control-lg",attrs:{name:"db_username",placeholder:"pixelfed"},domProps:{value:t.db_username},on:{input:function(e){e.target.composing||(t.db_username=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Database Password")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.db_password,expression:"db_password"}],staticClass:"form-control form-control-lg",attrs:{name:"db_password"},domProps:{value:t.db_password},on:{input:function(e){e.target.composing||(t.db_password=e.target.value)}}})])]:t._e()],2),t._v(" "),s("div",{staticClass:"mx-5"},[s("p",{staticClass:"d-flex justify-content-between"},[s("button",{staticClass:"btn btn-light",on:{click:t.goBack}},[t._v("\n\t\t\t\t\tBack\n\t\t\t\t")]),t._v(" "),s("button",{staticClass:"btn btn-primary",attrs:{disabled:t.proceedCheck},on:{click:t.proceed}},[t.proceedCheck?s("b-spinner",{attrs:{small:""}}):s("span",[t._v("Proceed")])],1)])])]:[s("div",{staticClass:"d-flex justify-content-center"},[s("div",{staticClass:"text-center"},[s("b-spinner",{attrs:{type:"grow"}}),t._v(" "),s("p",{staticClass:"small text-lighter"},[t._v("Loading...")])],1)])]],2)},a=[]},30910:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card card-body rounded-lg border d-flex justify-content-between",staticStyle:{"min-height":"80vh"}},[s("div",{staticClass:"m-5 text-dark"},[s("p",{staticClass:"h3 font-weight-bold"},[t._v("Features")]),t._v(" "),s("hr"),t._v(" "),s("div",{staticClass:"form-group"},[s("b-form-checkbox",{attrs:{switch:""},model:{value:t.openRegistration,callback:function(e){t.openRegistration=e},expression:"openRegistration"}},[t._v("\n\t\t\t\tOpen Registration\n\t\t\t")]),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("\n\t\t\t\tAllow anyone to create a new account.\n\t\t\t")])],1),t._v(" "),s("div",{staticClass:"form-group"},[s("b-form-checkbox",{attrs:{switch:""},model:{value:t.activitypub,callback:function(e){t.activitypub=e},expression:"activitypub"}},[t._v("\n\t\t\t\tActivitypub\n\t\t\t")]),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("\n\t\t\t\tActivityPub federation, compatible with Pixelfed, Mastodon and other projects.\n\t\t\t")])],1),t._v(" "),s("div",{staticClass:"form-group"},[s("b-form-checkbox",{attrs:{switch:""},model:{value:t.atom,callback:function(e){t.atom=e},expression:"atom"}},[t._v("\n\t\t\t\tAtom Feeds\n\t\t\t")]),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("\n\t\t\t\tEnable atom feeds for every user.\n\t\t\t")])],1),t._v(" "),s("div",{staticClass:"form-group"},[s("b-form-checkbox",{attrs:{switch:""},model:{value:t.stories,callback:function(e){t.stories=e},expression:"stories"}},[t._v("\n\t\t\t\tStories\n\t\t\t")]),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("\n\t\t\t\tAllow users to share ephemeral Stories to their followers that disappear after 24 hours.\n\t\t\t")])],1)]),t._v(" "),s("div",{staticClass:"mx-5"},[s("p",{staticClass:"d-flex justify-content-between"},[s("router-link",{staticClass:"btn btn-light",attrs:{to:"/installer/services"}},[t._v("\n\t\t\t\tBack\n\t\t\t")]),t._v(" "),s("button",{staticClass:"btn btn-primary",attrs:{disabled:t.proceedCheck},on:{click:t.proceed}},[t.proceedCheck?s("b-spinner",{attrs:{small:""}}):s("span",[t._v("Proceed")])],1)],1)])])},a=[]},81053:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card card-body rounded-lg border d-flex align-items-center justify-content-center",staticStyle:{"min-height":"80vh"}},[s("div",{staticClass:"m-5"},[s("p",{staticClass:"h1 font-weight-light"},[t._v("Welcome to the Pixelfed Installer")]),t._v(" "),s("p",{staticClass:"lead"},[t._v("You are moments away from an ethical and decentralized photo sharing experience!\n\t\t")]),t._v(" "),s("hr"),t._v(" "),s("p",{staticClass:"d-flex justify-content-between"},[s("router-link",{staticClass:"btn btn-primary",attrs:{to:"/installer/requirements"}},[t._v("\n\t\t\t\tProceed\n\t\t\t")])],1)])])},a=[]},6151:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card card-body rounded-lg border d-flex justify-content-between",staticStyle:{"min-height":"80vh"}},[s("div",{staticClass:"m-5 text-dark"},[s("p",{staticClass:"h3 font-weight-bold"},[t._v("Media")]),t._v(" "),s("hr"),t._v(" "),s("div",{staticClass:"form-group mb-4",staticStyle:{"max-width":"50%"}},[s("label",{staticClass:"font-weight-bold"},[t._v("Max Upload Size")]),t._v(" "),t.showCustom.uploadSize?[s("div",{staticClass:"input-group"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.maxUploadSize,expression:"maxUploadSize"}],staticClass:"form-control form-control-lg",attrs:{type:"number",placeholder:"5"},domProps:{value:t.maxUploadSize},on:{input:function(e){e.target.composing||(t.maxUploadSize=e.target.value)}}}),t._v(" "),t._m(0)]),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("\n\t\t\t\t\tThe maximum file size for photo and video uploads. "),s("br"),t._v("\n\t\t\t\t\tClick "),s("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showCustom.uploadSize=!1}}},[t._v("here")]),t._v(" to use a recommended limit.\n\t\t\t\t")])]:[s("input",{directives:[{name:"model",rawName:"v-model",value:t.maxUploadSize,expression:"maxUploadSize"}],staticClass:"custom-range",attrs:{type:"range",min:"5",max:t.systemMaxUploadSize,step:"1"},domProps:{value:t.maxUploadSize},on:{__r:function(e){t.maxUploadSize=e.target.value}}}),t._v(" "),s("div",{staticClass:"d-flex justify-content-between mb-3 mt-n1"},[s("div",{staticClass:"text-muted"},[t._v("Min: 5MB")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[t._v(t._s(t.maxUploadSize)+"MB")]),t._v(" "),s("div",{staticClass:"text-muted"},[t._v("Max: "+t._s(t.systemMaxUploadSize)+"MB")])]),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("\n\t\t\t\t\tThe maximum file size for photo and video uploads. "),s("br"),t._v("\n\t\t\t\t\tClick "),s("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showCustom.uploadSize=!0}}},[t._v("here")]),t._v(" to set a custom value.\n\t\t\t\t")])]],2),t._v(" "),s("div",{staticClass:"form-group mb-4"},[s("p",{staticClass:"font-weight-bold"},[t._v("Allowed Media Types")]),t._v(" "),s("div",{staticClass:"d-flex justify-content-between mb-5"},[s("b-form-checkbox",{model:{value:t.mimes.jpeg,callback:function(e){t.$set(t.mimes,"jpeg",e)},expression:"mimes.jpeg"}},[s("span",{staticClass:"border border-dark px-1 rounded font-weight-bold user-select-none"},[t._v("JPEG")])]),t._v(" "),s("b-form-checkbox",{model:{value:t.mimes.png,callback:function(e){t.$set(t.mimes,"png",e)},expression:"mimes.png"}},[s("span",{staticClass:"border border-dark px-1 rounded font-weight-bold user-select-none"},[t._v("PNG")])]),t._v(" "),s("b-form-checkbox",{model:{value:t.mimes.gif,callback:function(e){t.$set(t.mimes,"gif",e)},expression:"mimes.gif"}},[s("span",{staticClass:"border border-dark px-1 rounded font-weight-bold user-select-none"},[t._v("GIF")])]),t._v(" "),s("b-form-checkbox",{model:{value:t.mimes.webp,callback:function(e){t.$set(t.mimes,"webp",e)},expression:"mimes.webp"}},[s("span",{staticClass:"border border-dark px-1 rounded font-weight-bold user-select-none"},[t._v("WebP")])]),t._v(" "),s("b-form-checkbox",{model:{value:t.mimes.mp4,callback:function(e){t.$set(t.mimes,"mp4",e)},expression:"mimes.mp4"}},[s("span",{staticClass:"border border-dark px-1 rounded font-weight-bold user-select-none"},[t._v("MP4")])])],1)]),t._v(" "),s("div",{staticClass:"form-group mb-4",staticStyle:{"max-width":"50%"}},[s("b-form-checkbox",{model:{value:t.optimizeMedia,callback:function(e){t.optimizeMedia=e},expression:"optimizeMedia"}},[t._v("\n\t\t\t\tOptimize Media\n\t\t\t")]),t._v(" "),t._m(1)],1),t._v(" "),t.optimizeMedia?[s("div",{staticClass:"form-group mb-4",staticStyle:{"max-width":"50%"}},[s("label",{staticClass:"font-weight-bold"},[t._v("Image Quality")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.imageQuality,expression:"imageQuality"}],staticClass:"custom-range",attrs:{type:"range",min:"50",max:"100",step:"1"},domProps:{value:t.imageQuality},on:{__r:function(e){t.imageQuality=e.target.value}}}),t._v(" "),s("div",{staticClass:"d-flex justify-content-between mb-3 mt-n1"},[s("div",{staticClass:"text-muted"},[t._v("Min: 50%")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[t._v(t._s(t.imageQuality)+"%")]),t._v(" "),s("div",{staticClass:"text-muted"},[t._v("Max: 100%")])]),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("\n\t\t\t\t\tLower values use less disk space but result in lower quality photos.\n\t\t\t\t")])])]:t._e()],2),t._v(" "),s("div",{staticClass:"mx-5"},[s("p",{staticClass:"d-flex justify-content-between"},[s("router-link",{staticClass:"btn btn-light",attrs:{to:"/installer/features"}},[t._v("\n\t\t\t\tBack\n\t\t\t")]),t._v(" "),s("button",{staticClass:"btn btn-primary",attrs:{disabled:t.proceedCheck},on:{click:t.proceed}},[t.proceedCheck?s("b-spinner",{attrs:{small:""}}):s("span",[t._v("Proceed")])],1)],1)])])},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"input-group-append"},[s("span",{staticClass:"border-0 bg-lighter input-group-text font-weight-bold"},[t._v("MB")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"help-text small text-muted"},[t._v("\n\t\t\t\tUse less disk space by optimizing photos. "),s("br"),t._v(" "),s("strong",[t._v("Requires additional dependencies")])])}]},65490:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card card-body rounded-lg border d-flex justify-content-between",staticStyle:{"min-height":"80vh"}},[s("div",{staticClass:"pt-5 mx-5"},[s("p",{staticClass:"h1 font-weight-light"},[t._v("Compatibility Check")]),t._v(" "),t._m(0),t._v(" "),s("hr"),t._v(" "),s("div",{staticClass:"row justify-content-center mb-3"},[s("div",{staticClass:"col-6"},[s("div",{staticClass:"list-group my-3"},[t.r.permissions?s("div",{staticClass:"list-group-item"},[s("div",{directives:[{name:"b-toggle",rawName:"v-b-toggle.permissions",modifiers:{permissions:!0}}],staticClass:"font-weight-bold d-flex justify-content-between"},[s("p",{staticClass:"mb-0"},[t._v("Storage Permissions")]),t._v(" "),t._m(1)]),t._v(" "),s("b-collapse",{attrs:{id:"permissions"}},[s("ul",{staticClass:"pt-3 list-unstyled"},t._l(t.r.permissions,(function(e){return s("li",{staticClass:"mb-2"},[s("div",{staticClass:"text-break d-flex align-items-center"},[s("span",{staticClass:"mr-2"},[s("i",{class:t.renderState(e.writable)})]),t._v(" "),s("span",{staticClass:"small",class:[e.writable?"":"text-danger font-weight-bold"]},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.path)+"\n\t\t\t\t\t\t\t\t\t\t")])])])})),0)])],1):t._e(),t._v(" "),t.r.php?s("div",{staticClass:"list-group-item d-flex justify-content-between"},[s("div",{staticClass:"font-weight-bold"},[s("p",{staticClass:"mb-0"},[t._v("PHP")]),t._v(" "),s("p",{staticClass:"small mb-n1"},[t._v("Min Version: "+t._s(t.r.php.min_version))])]),t._v(" "),s("div",{staticClass:"text-right"},[s("p",{staticClass:"mb-0"},[s("i",{staticClass:"fa-lg",class:t.renderState(t.r.php.supported)})]),t._v(" "),s("p",{staticClass:"small mb-0 font-weight-bold"},[t._v(t._s(t.r.php.version))])])]):t._e(),t._v(" "),t.r.php?s("div",{staticClass:"list-group-item"},[s("div",{directives:[{name:"b-toggle",rawName:"v-b-toggle.php-extensions",modifiers:{"php-extensions":!0}}],staticClass:"font-weight-bold d-flex justify-content-between"},[s("p",{staticClass:"mb-0"},[t._v("PHP Extensions")]),t._v(" "),t._m(2)]),t._v(" "),s("b-collapse",{attrs:{id:"php-extensions"}},[s("ul",{staticClass:"pl-3 pt-3"},t._l(t.r.php.extensions,(function(e){return s("li",[s("span",{staticClass:"mr-2"},[s("i",{class:t.renderState(e.loaded)})]),t._v(" "),s("span",{class:[e.loaded?"":"text-danger font-weight-bold"]},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t\t\t\t\t")])])})),0)])],1):t._e(),t._v(" "),t.r.php?s("div",{staticClass:"list-group-item d-flex justify-content-between"},[s("div",{staticClass:"font-weight-bold"},[s("p",{staticClass:"mb-0"},[t._v("PHP memory_limit")]),t._v(" "),s("p",{staticClass:"small mb-n1"},[t._v("Recommended: "+t._s(t.r.php.memory_limit.recommended))])]),t._v(" "),s("div",{staticClass:"text-right"},[s("p",{staticClass:"mb-0"},[s("i",{staticClass:"fa-lg",class:t.renderState(t.compareVals(t.r.php.memory_limit.recommended,t.r.php.memory_limit.actual))})]),t._v(" "),s("p",{staticClass:"small mb-0 font-weight-bold"},[t._v(t._s(t.r.php.memory_limit.actual))])])]):t._e(),t._v(" "),t.r.php?s("div",{staticClass:"list-group-item d-flex justify-content-between"},[s("div",{staticClass:"font-weight-bold"},[s("p",{staticClass:"mb-0"},[t._v("PHP upload_max_filesize")]),t._v(" "),s("p",{staticClass:"small mb-n1"},[t._v("Recommended: "+t._s(t.r.php.upload_max_filesize.recommended))])]),t._v(" "),s("div",{staticClass:"text-right"},[s("p",{staticClass:"mb-0"},[s("i",{staticClass:"fa-lg",class:t.renderState(t.compareVals(t.r.php.upload_max_filesize.recommended,t.r.php.upload_max_filesize.actual))})]),t._v(" "),s("p",{staticClass:"small mb-0 font-weight-bold"},[t._v(t._s(t.r.php.upload_max_filesize.actual))])])]):t._e(),t._v(" "),t.r.php?s("div",{staticClass:"list-group-item d-flex justify-content-between"},[s("div",{staticClass:"font-weight-bold"},[s("p",{staticClass:"mb-0"},[t._v("PHP upload_max_filesize")]),t._v(" "),s("p",{staticClass:"small mb-n1"},[t._v("Recommended: "+t._s(t.r.php.post_max_size.recommended))])]),t._v(" "),s("div",{staticClass:"text-right"},[s("p",{staticClass:"mb-0"},[s("i",{staticClass:"fa-lg",class:t.renderState(t.compareVals(t.r.php.post_max_size.recommended,t.r.php.post_max_size.actual))})]),t._v(" "),s("p",{staticClass:"small mb-0 font-weight-bold"},[t._v(t._s(t.r.php.post_max_size.actual))])])]):t._e()])])])]),t._v(" "),s("div",{staticClass:"mx-5"},[s("p",{staticClass:"d-flex justify-content-between"},[s("router-link",{staticClass:"btn btn-light",attrs:{to:"/installer"}},[t._v("\n\t\t\t\tBack\n\t\t\t")]),t._v(" "),s("button",{staticClass:"btn btn-primary",attrs:{disabled:t.proceedCheck},on:{click:t.proceed}},[t.proceedCheck?s("b-spinner",{attrs:{small:""}}):s("span",[t._v("Proceed")])],1)],1)])])},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"lead"},[t._v("We will perform a compatibility check to make sure you have everything you need to run "),s("span",{staticClass:"font-weight-bold"},[t._v("Pixelfed")]),t._v(".")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",[e("i",{staticClass:"far fa-chevron-down"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",[e("i",{staticClass:"far fa-chevron-down"})])}]},15901:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card card-body rounded-lg border d-flex justify-content-between",staticStyle:{"min-height":"80vh"}},[s("div",{staticClass:"pt-5 mx-5"},[s("p",{staticClass:"h1 font-weight-light"},[t._v("Review")]),t._v(" "),s("p",{staticClass:"lead"},[t._v("Confirm these details are correct before proceeding with installation.")]),t._v(" "),s("hr"),t._v(" "),s("div",{staticClass:"card card-body review-card bg-light"},[s("div",{staticClass:"text-lighter"},[t._v("domain")]),t._v(" "),s("div",[t._v(t._s(t.config.domain))])]),t._v(" "),s("div",{staticClass:"card card-body review-card"},[s("div",{staticClass:"text-lighter"},[t._v("name")]),t._v(" "),s("div",[t._v(t._s(t.config.name))])]),t._v(" "),s("div",{staticClass:"card card-body review-card"},[s("div",{staticClass:"text-lighter"},[t._v("database")]),t._v(" "),s("div",[s("i",{class:[t.database?"far fa-check-circle text-success":"far fa-times-circle text-danger"]})])]),t._v(" "),s("div",{staticClass:"card card-body review-card"},[s("div",{staticClass:"text-lighter"},[t._v("federation")]),t._v(" "),s("div",[s("i",{class:[t.config.features.activitypub?"far fa-check-circle text-success":"far fa-times-circle text-danger"]})])]),t._v(" "),s("div",{staticClass:"card card-body review-card"},[s("div",{staticClass:"text-lighter"},[t._v("administrator account")]),t._v(" "),s("div",[s("i",{class:[t.administrator?"far fa-check-circle text-success":"far fa-times-circle text-danger"]})])])]),t._v(" "),s("div",{staticClass:"mx-5"},[s("p",{staticClass:"d-flex justify-content-between"},[s("router-link",{staticClass:"btn btn-light",attrs:{to:"/installer/administration"}},[t._v("\n\t\t\t\tBack\n\t\t\t")]),t._v(" "),s("button",{staticClass:"btn btn-primary",attrs:{disabled:t.proceedCheck},on:{click:t.proceed}},[t.proceedCheck?s("b-spinner",{attrs:{small:""}}):s("span",[t._v("Install")])],1)],1)])])},a=[]},20080:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card card-body rounded-lg border d-flex justify-content-between",staticStyle:{"min-height":"80vh"}},[t.isLoaded?[s("div",{staticClass:"m-5 text-dark"},[s("p",{staticClass:"h3 font-weight-bold"},[t._v("Services")]),t._v(" "),s("hr"),t._v(" "),1===t.step?[s("p",{staticClass:"small font-weight-bold text-muted"},[t._v("CACHE")]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Cache Driver")]),t._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:t.cache_driver,expression:"cache_driver"}],staticClass:"form-control form-control-lg",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.cache_driver=e.target.multiple?s:s[0]}}},[s("option",{attrs:{value:"database"}},[t._v("Database")]),t._v(" "),s("option",{attrs:{value:"redis"}},[t._v("Redis")])])]),t._v(" "),"redis"===t.cache_driver?[s("div",{staticClass:"form-group"},[s("label",[t._v("Redis Scheme")]),t._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:t.redis_scheme,expression:"redis_scheme"}],staticClass:"form-control form-control-lg",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.redis_scheme=e.target.multiple?s:s[0]}}},[s("option",{attrs:{value:"tcp"}},[t._v("tcp")]),t._v(" "),s("option",{attrs:{value:"tls"}},[t._v("tls")])])]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Redis Host")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.redis_host,expression:"redis_host"}],staticClass:"form-control form-control-lg",domProps:{value:t.redis_host},on:{input:function(e){e.target.composing||(t.redis_host=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Redis Port")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.redis_port,expression:"redis_port"}],staticClass:"form-control form-control-lg",domProps:{value:t.redis_port},on:{input:function(e){e.target.composing||(t.redis_port=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",[t._v("Redis Password")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.redis_password,expression:"redis_password"}],staticClass:"form-control form-control-lg",domProps:{value:t.redis_password},on:{input:function(e){e.target.composing||(t.redis_password=e.target.value)}}})])]:t._e()]:t._e(),t._v(" "),2===t.step?[s("div",{staticClass:"form-group mb-4"},[s("label",{staticClass:"font-weight-bold"},[t._v("Job Queue Driver")]),t._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:t.queueDriver,expression:"queueDriver"}],staticClass:"form-control form-control-lg",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.queueDriver=e.target.multiple?s:s[0]}}},[s("option",{attrs:{value:"database"}},[t._v("Database")]),t._v(" "),s("option",{attrs:{value:"redis"}},[t._v("Redis/Horizon (Max performance)")])]),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("\n\t\t\t\t\t\tThe job queue is responsible for performing resource intensive operations in the background, like optimizing photos to use less storage or delivering new posts to followers.\n\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"alert alert-danger"},[s("div",{staticClass:"media align-items-center"},[s("i",{staticClass:"far fa-info-circle fa-3x mr-4"}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"lead font-weight-bold mb-0"},[t._v("Manual Action Required")]),t._v(" "),s("p",[t._v("\n\t\t\t\t\t\t\t\tThe job queue needs to be configured manually using CLI access to your server. For more information, click "),s("a",{attrs:{href:t.queueLink}},[t._v("here")]),t._v(".\n\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"form-group mb-0"},[s("b-form-checkbox",{model:{value:t.queueConfirm,callback:function(e){t.queueConfirm=e},expression:"queueConfirm"}},[t._v("\n\t\t\t\t\t\t\t\t\tI understand that I need to manually configure the job queue for proper functionality\n\t\t\t\t\t\t\t\t")])],1)])])])]:t._e(),t._v(" "),3===t.step?[s("div",{staticClass:"form-group mb-4"},[s("label",{staticClass:"font-weight-bold"},[t._v("Mail")]),t._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:t.mailDriver,expression:"mailDriver"}],staticClass:"form-control form-control-lg",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.mailDriver=e.target.multiple?s:s[0]}}},[s("option",{attrs:{value:"0"}},[t._v("Setup later")]),t._v(" "),s("option",{attrs:{value:"mailgun"}},[t._v("Mailgun")]),t._v(" "),s("option",{attrs:{value:"smtp"}},[t._v("SMTP")])]),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("\n\t\t\t\t\t\tThe mail driver is used to send confirmation + password reset emails.\n\t\t\t\t\t")])]),t._v(" "),"mailgun"===t.mailDriver?[s("hr"),t._v(" "),s("div",{staticClass:"form-group mb-4"},[s("label",{staticClass:"font-weight-bold"},[t._v("Mailgun Domain")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.mailgunDomain,expression:"mailgunDomain"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"pixelfed.org"},domProps:{value:t.mailgunDomain},on:{input:function(e){e.target.composing||(t.mailgunDomain=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group mb-4"},[s("label",{staticClass:"font-weight-bold"},[t._v("Mailgun Secret")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.mailgunSecret,expression:"mailgunSecret"}],staticClass:"form-control form-control-lg",domProps:{value:t.mailgunSecret},on:{input:function(e){e.target.composing||(t.mailgunSecret=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group mb-4"},[s("label",{staticClass:"font-weight-bold"},[t._v("Mailgun Endpoint")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.mailgunEndpoint,expression:"mailgunEndpoint"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"api.eu.mailgun.net"},domProps:{value:t.mailgunEndpoint},on:{input:function(e){e.target.composing||(t.mailgunEndpoint=e.target.value)}}}),t._v(" "),t._m(0)]),t._v(" "),s("hr")]:t._e(),t._v(" "),"smtp"===t.mailDriver?[s("hr"),t._v(" "),s("div",{staticClass:"form-group mb-4"},[s("label",{staticClass:"font-weight-bold"},[t._v("Mail Host")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.mailHost,expression:"mailHost"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"pixelfed.org"},domProps:{value:t.mailHost},on:{input:function(e){e.target.composing||(t.mailHost=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group mb-4"},[s("label",{staticClass:"font-weight-bold"},[t._v("Mail Port")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.mailPort,expression:"mailPort"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"pixelfed.org"},domProps:{value:t.mailPort},on:{input:function(e){e.target.composing||(t.mailPort=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group mb-4"},[s("label",{staticClass:"font-weight-bold"},[t._v("Mail Username")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.mailUsername,expression:"mailUsername"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"pixelfed.org"},domProps:{value:t.mailUsername},on:{input:function(e){e.target.composing||(t.mailUsername=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"form-group mb-4"},[s("label",{staticClass:"font-weight-bold"},[t._v("Mail Password")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.mailPassword,expression:"mailPassword"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"pixelfed.org"},domProps:{value:t.mailPassword},on:{input:function(e){e.target.composing||(t.mailPassword=e.target.value)}}})]),t._v(" "),s("hr")]:t._e(),t._v(" "),0!=t.mailDriver?s("div",{staticClass:"form-group mb-4"},[s("b-form-checkbox",{model:{value:t.mailAddressVerify,callback:function(e){t.mailAddressVerify=e},expression:"mailAddressVerify"}},[t._v("\n\t\t\t\t\t\tRequire email validation\n\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"help-text small text-muted"},[t._v("\n\t\t\t\t\t\tRequire new accounts to validate their email address before they can use this service.\n\t\t\t\t\t")])],1):t._e()]:t._e()],2),t._v(" "),s("div",{staticClass:"mx-5"},[s("p",{staticClass:"d-flex justify-content-between"},[s("button",{staticClass:"btn btn-light",on:{click:t.goBack}},[t._v("\n\t\t\t\t\tBack\n\t\t\t\t")]),t._v(" "),s("button",{staticClass:"btn btn-primary",attrs:{disabled:t.proceedCheck},on:{click:t.proceed}},[t.proceedCheck?s("b-spinner",{attrs:{small:""}}):s("span",[t._v("Proceed")])],1)])])]:[s("div",{staticClass:"d-flex justify-content-center"},[s("div",{staticClass:"text-center"},[s("b-spinner",{attrs:{type:"grow"}}),t._v(" "),s("p",{staticClass:"small text-lighter"},[t._v("Loading...")])],1)])]],2)},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"help-text small text-muted"},[t._v("If you are not using the United States "),s("a",{attrs:{href:"https://documentation.mailgun.com/en/latest/api-intro.html#mailgun-regions"}},[t._v("Mailgun region")]),t._v(", you may define your region's endpoint")])}]}},t=>{t.O(0,[898],(()=>{return e=99720,t(t.s=e);var e}));t.O()}]); \ No newline at end of file diff --git a/public/js/live-player.js b/public/js/live-player.js new file mode 100644 index 000000000..f0dcfecd7 --- /dev/null +++ b/public/js/live-player.js @@ -0,0 +1 @@ +(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[479],{19455:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>f});s(22362);var i=s(21443),a=s.n(i),n=s(67631),r=s.n(n),o=s(78657),d=s(52526),l=s(23952),c=s(80041),u=s(39169),m=s(65981);const f={props:{id:{type:String}},components:{"stream-loading":o.default,"stream-offline":d.default,"profile-card":l.default,"stream-info-card":c.default,"stream-comments":u.default,"settings-card":m.default},data:function(){return{enabled:!0,isLoaded:!1,user:void 0,profile:void 0,stream:{name:"Offline",description:void 0},streamState:"loading",streamSource:void 0,showSettingsCard:!1}},mounted:function(){this.fetchProfile()},methods:{fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/"+this.id).then((function(e){t.profile=e.data,t.user=e.data,t.fetchAuthState()}))},fetchAuthState:function(){var t=this;axios.get("/api/v1/accounts/verify_credentials").then((function(e){window._sharedData.curUser=e.data,window._sharedData.user=e.data,t.fetchInitialStreamState(!0)})).catch((function(e){t.fetchInitialStreamState(!1)}))},fetchInitialStreamState:function(t){var e=this,s=1==t?"/api/live/accounts/stream":"/api/live/accounts/stream/guest";axios.get(s,{params:{profile_id:this.profile.id}}).then((function(t){if(e.isLoaded=!0,t.data&&t.data.hls_url&&t.data.hls_url.length){e.stream=t.data;var s=t.data.hls_url;axios.head(t.data.hls_url).then((function(t){e.streamState="ready",e.streamSource=s,e.initVideo()})).catch((function(t){e.streamState="offline"}))}else e.streamState="offline"})).catch((function(t){e.isLoaded=!0}))},initVideo:function(){var t=this;this.$nextTick((function(){var e=t.$refs.liveVid,s=(new(a())(e,{controls:["play","mute","volume","fullscreen"]}),t.streamSource);if(r().isSupported())try{var i=new(r());i.loadSource(s),i.attachMedia(e),window.hls=i}catch(t){console.log("Error loading manifest")}else e.src=s}))},openSettings:function(){this.showSettingsCard=!this.showSettingsCard},closeSettings:function(){this.showSettingsCard=!1}}}},1791:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});const i={props:{profile:{type:Object},stream:{type:Object},showSettings:{type:Boolean,default:!1}},computed:{isOwner:function(){return window._sharedData.user.id===this.profile.id&&this.stream.hls_url}},methods:{openSettings:function(){event.currentTarget.blur(),this.$emit("settings")}}}},40038:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});const i={props:{profile:{type:Object},stream:{type:Object}},data:function(){return{hasChanged:!1}},watch:{stream:{deep:!0,handler:function(t,e){this.hasChanged=JSON.stringify(t)===JSON.stringify(this.getOriginal)}}},computed:{getOriginal:function(){return this.originalStream}},mounted:function(){this.originalStream=this.stream},methods:{closeSettings:function(){event.currentTarget.blur(),this.$emit("close")},updateSettings:function(){var t=this;event.currentTarget.blur(),axios.post("/api/live/stream/edit",{name:this.stream.name,description:this.stream.description}).then((function(e){t.$emit("close")}))}}}},53282:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var i=s(84554);window.Pusher=s(86606),window.Echo=new i.default({broadcaster:"pusher",key:window._pushr.key,wsHost:window.location.hostname,wsPort:6001,wssPort:6001,disableStats:!0,enabledTransports:["ws","wss"],forceTLS:!0});const a={props:{profile:{type:Object},stream:{type:Object}},data:function(){return{user:{id:-1},comment:void 0,comments:[],state:"loading",modMode:!1,viewerCount:1,isBannedFromChat:!1,commentMenuIndex:void 0,commentMenuObject:void 0,pinnedMessage:void 0,commentFormDisabled:!1,isUnpinning:!1,formError:void 0}},computed:{isOwner:function(){return!!window._sharedData.curUser&&window._sharedData.curUser.id==this.profile.id}},mounted:function(){this.user=window._sharedData.curUser?window._sharedData.curUser:{id:-1},this.fetchComments(),this.bootWebsockets()},methods:{addComment:function(t){var e=this;t.currentTarget.blur(),this.commentFormDisabled=!0,axios.post("/api/live/chat/message",{profile_id:this.profile.id,message:this.comment}).then((function(t){e.comment=void 0,setTimeout((function(){e.commentFormDisabled=!1}),1e3)})).catch((function(t){e.formError=t.response.data.errors.message[0],setTimeout((function(){e.formError=void 0}),5e3),e.commentFormDisabled=!1}))},fetchComments:function(){var t=this;axios.get("/api/live/chat/latest",{params:{profile_id:this.profile.id}}).then((function(e){t.comments=e.data,t.state=t.stream.hls_url?"loaded":"offline"}))},toggleModMode:function(){event.currentTarget.blur(),this.modMode=!this.modMode},deleteComment:function(t){var e=this;event.currentTarget.blur(),axios.post("/api/live/chat/delete",{profile_id:this.profile.id,message:this.comments[t]}).then((function(s){e.comments.splice(t,1),e.commentMenuObject&&e.closeMenu()}))},banUser:function(t){confirm("Are you sure you want to ban this user? This will remove all messages from them and prevent them from commenting again.");axios.post("/api/live/chat/ban-user",{profile_id:this.comments[t].pid})},bootWebsockets:function(){var t=this;window.Echo.private("live.chat.".concat(this.profile.id)).listen(".chat.new-message",(function(e){t.comments.unshift(e.msg)})).listen(".chat.delete-message",(function(e){t.comments=t.comments.filter((function(t){return t.id!=e.id}))})).listen(".chat.ban-user",(function(e){t.comments=t.comments.filter((function(t){return t.pid!=e.id})),e.id==window._sharedData.curUser.id&&(t.isBannedFromChat=!0)})).listen(".chat.pin-message",(function(e){t.pinnedMessage=e})).listen(".chat.unpin-message",(function(e){t.pinnedMessage=void 0})),window.Echo.join("live.presence.".concat(this.profile.id)).here((function(e){t.viewerCount=e.length})).joining((function(e){t.viewerCount++})).leaving((function(e){t.viewerCount--}))},openMenu:function(t){var e=this;event.currentTarget.blur(),this.commentMenuIndex=t,this.commentMenuObject=this.comments[t],this.$nextTick((function(){return e.$refs.commentMenu.show()}))},closeMenu:function(){var t=this;this.$nextTick((function(){t.$refs.commentMenu.hide(),t.commentMenuIndex=void 0,t.commentMenuObject=void 0}))},pinMessage:function(t){this.closeMenu(),axios.post("/api/live/chat/pin",{profile_id:this.profile.id,message:this.comments[t]})},unpinMessage:function(){var t=this;this.isUnpinning=!0,axios.post("/api/live/chat/unpin",{profile_id:this.profile.id,message:this.pinnedMessage}).then((function(e){t.pinnedMessage=void 0,setTimeout((function(){t.isUnpinning=!1}),2e3)}))}}}},96690:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});const i={props:{profile:{type:Object},stream:{type:Object}}}},62831:(t,e,s)=>{Vue.component("live-player",s(27365).default)},89954:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var i=s(23645),a=s.n(i)()((function(t){return t[1]}));a.push([t.id,".livestream-player .plyr--video{border-radius:20px;box-shadow:0 1rem 3rem rgba(0,0,0,.18)!important}.livestream-player .header-badge{margin-bottom:1rem}.livestream-player .header-badge .live-badge{border:2px solid #fff;border-radius:10px;color:#fff;font-size:14px;font-weight:700;margin-left:1rem;padding:5px 10px}",""]);const n=a},9091:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var i=s(23645),a=s.n(i)()((function(t){return t[1]}));a.push([t.id,".media[data-v-656eef2a]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.media .btn-outline-primary[data-v-656eef2a]{background-color:transparent;border-color:var(--primary);color:var(--primary)}.media-body[data-v-656eef2a]{color:#fff}",""]);const n=a},84866:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var i=s(23645),a=s.n(i)()((function(t){return t[1]}));a.push([t.id,".livestream-settings{border-bottom-left-radius:10px;border-bottom-right-radius:10px}.livestream-settings,.livestream-settings .card-header{border-top-left-radius:10px;border-top-right-radius:10px}.livestream-settings .card-footer{border-bottom-left-radius:10px;border-bottom-right-radius:10px}",""]);const n=a},94783:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var i=s(23645),a=s.n(i)()((function(t){return t[1]}));a.push([t.id,".live-chat{border-bottom-left-radius:10px;border-bottom-right-radius:10px;border-top-left-radius:10px;border-top-right-radius:10px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;margin-left:10px;max-width:400px;min-width:300px}.live-chat .form-control{color:var(--body-color)}.live-chat .card-header{border-top-left-radius:10px;border-top-right-radius:10px}.live-chat .card-footer{border-bottom-left-radius:10px;border-bottom-right-radius:10px}.live-chat-msg{font-size:13px}.live-chat .pinned-msg{background-color:rgba(253,224,71,.1);border:1px solid rgba(253,224,71,.3);border-radius:2px}.live-chat .pinned-msg .live-chat-msg{margin:10px 4px}",""]);const n=a},20740:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(93379),a=s.n(i),n=s(89954),r={insert:"head",singleton:!1};a()(n.default,r);const o=n.default.locals||{}},78126:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(93379),a=s.n(i),n=s(9091),r={insert:"head",singleton:!1};a()(n.default,r);const o=n.default.locals||{}},79368:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(93379),a=s.n(i),n=s(84866),r={insert:"head",singleton:!1};a()(n.default,r);const o=n.default.locals||{}},65696:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var i=s(93379),a=s.n(i),n=s(94783),r={insert:"head",singleton:!1};a()(n.default,r);const o=n.default.locals||{}},27365:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(63622),a=s(10640),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);s(22204);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,null,null).exports},23952:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(51638),a=s(1965),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);s(13832);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,"656eef2a",null).exports},65981:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(40194),a=s(94319),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);s(7128);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,null,null).exports},39169:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(33185),a=s(5346),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);s(66949);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,null,null).exports},80041:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var i=s(27628),a=s(25417),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);const r=(0,s(51900).default)(a.default,i.render,i.staticRenderFns,!1,null,null,null).exports},78657:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var i=s(32494);const a=(0,s(51900).default)({},i.render,i.staticRenderFns,!1,null,null,null).exports},52526:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var i=s(54548);const a=(0,s(51900).default)({},i.render,i.staticRenderFns,!1,null,null,null).exports},10640:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var i=s(19455),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=i.default},1965:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var i=s(1791),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=i.default},94319:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var i=s(40038),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=i.default},5346:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var i=s(53282),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=i.default},25417:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var i=s(96690),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=i.default},22204:(t,e,s)=>{"use strict";s.r(e);var i=s(20740),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},13832:(t,e,s)=>{"use strict";s.r(e);var i=s(78126),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},7128:(t,e,s)=>{"use strict";s.r(e);var i=s(79368),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},66949:(t,e,s)=>{"use strict";s.r(e);var i=s(65696),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},63622:(t,e,s)=>{"use strict";s.r(e);var i=s(57111),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},51638:(t,e,s)=>{"use strict";s.r(e);var i=s(45290),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},40194:(t,e,s)=>{"use strict";s.r(e);var i=s(87183),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},33185:(t,e,s)=>{"use strict";s.r(e);var i=s(36491),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},27628:(t,e,s)=>{"use strict";s.r(e);var i=s(45361),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},32494:(t,e,s)=>{"use strict";s.r(e);var i=s(53331),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},54548:(t,e,s)=>{"use strict";s.r(e);var i=s(79366),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a)},57111:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"livestream-player web-wrapper"},[t.isLoaded?s("div",{staticClass:"container-fluid mt-3"},[t.enabled?s("div",{staticClass:"row justify-content-center"},[s("div",{staticClass:"col-md-8"},[t._m(0),t._v(" "),s("div",{staticClass:"d-block d-md-flex justify-content-center"},[s("div",{staticStyle:{"min-width":"300px","min-height":"80vh",position:"relative"}},[s("div",{staticStyle:{width:"100%",position:"absolute",top:"0",left:"0","z-index":"2",padding:"10px 0 4px 10px","background-color":"rgba(0,0,0,0.3)"}},[s("profile-card",{attrs:{profile:t.profile,stream:t.stream,showSettings:t.showSettingsCard},on:{settings:t.openSettings}})],1),t._v(" "),s("div",{staticStyle:{width:"100%",position:"absolute",top:"0"}},["loading"===t.streamState?s("stream-loading"):"offline"===t.streamState?s("stream-offline"):"ready"===t.streamState?s("div",{staticClass:"d-flex"},[s("div",{staticStyle:{width:"100%"}},[t._m(1)])]):t._e()],1)]),t._v(" "),"ready"===t.streamState?s("stream-comments",{attrs:{profile:t.profile,stream:t.stream}}):t._e()],1)])]):s("div",[s("p",{staticClass:"font-weight-bold text-center"},[t._v("Live Streaming is not enabled on this instance.")]),t._v(" "),s("p",{staticClass:"text-center"},[s("router-link",{staticClass:"btn btn-primary rounded-pill font-weight-bold",attrs:{to:"/i/web?x=1&src=hls"}},[t._v("Go back home")])],1)])]):t._e()])},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-flex justify-content-center header-badge"},[s("div",{staticClass:"media align-items-center"},[s("a",{attrs:{href:"/"}},[s("img",{attrs:{src:"/img/pixelfed-icon-color.png",width:"50"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"live-badge"},[t._v("Live")])])])])},function(){var t=this.$createElement;return(this._self._c||t)("video",{ref:"liveVid",attrs:{id:"lplyr",playsinline:"",controls:""}})}]},45290:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"media mb-2 align-items-center"},[s("img",{staticClass:"rounded-circle mr-2",attrs:{src:t.profile.avatar,width:"40"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"lead font-weight-bold mb-n2"},[t._v(t._s(t.stream.name))]),t._v(" "),s("div",{staticClass:"small"},[t._v("\n\t\t\tby "),s("span",[t._v("@"+t._s(t.profile.acct))])])])])},a=[]},87183:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card shadow-sm livestream-settings"},[s("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between"},[s("div",{staticClass:"align-items-center"},[s("button",{staticClass:"btn btn-link btn-sm mr-2",on:{click:t.closeSettings}},[s("i",{staticClass:"fas fa-chevron-left"})]),t._v(" "),s("span",{staticClass:"mb-0 font-weight-bold"},[t._v("Livestream Settings")])]),t._v(" "),s("button",{staticClass:"btn btn-primary btn-sm font-weight-bold rounded-pill mb-0",attrs:{disabled:!t.hasChanged},on:{click:t.updateSettings}},[t._v("Save")])]),t._v(" "),s("div",{staticClass:"card-body"},[s("div",{staticClass:"form-group"},[s("label",{staticClass:"font-weight-bold",attrs:{for:"streamName"}},[t._v("Stream Name")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.stream.name,expression:"stream.name"}],staticClass:"form-control",attrs:{type:"text",id:"streamName"},domProps:{value:t.stream.name},on:{input:function(e){e.target.composing||t.$set(t.stream,"name",e.target.value)}}}),t._v(" "),s("div",{staticClass:"help-text small text-muted d-flex justify-content-between"},[s("div",[t._v("An optional stream name")]),t._v(" "),s("div",[t._v(t._s(t.stream.name?t.stream.name.length:0)+"/80")])])]),t._v(" "),s("hr"),t._v(" "),s("div",{staticClass:"form-group"},[s("label",{staticClass:"font-weight-bold",attrs:{for:"streamDescription"}},[t._v("Description")]),t._v(" "),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.stream.description,expression:"stream.description"}],staticClass:"form-control",attrs:{id:"streamDescription",rows:"3"},domProps:{value:t.stream.description},on:{input:function(e){e.target.composing||t.$set(t.stream,"description",e.target.value)}}}),t._v(" "),s("div",{staticClass:"help-text small text-muted d-flex justify-content-between"},[s("div",[t._v("An optional description")]),t._v(" "),s("div",[t._v(t._s(t.stream.description?t.stream.description.length:0)+"/140")])])]),t._v(" "),s("hr"),t._v(" "),t._m(0)])])},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"custom-control custom-checkbox"},[s("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",id:"streamChat",checked:"",disabled:""}}),t._v(" "),s("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"streamChat"}},[t._v("Enable live chat")])])}]},36491:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card shadow-sm live-chat"},[s("div",{staticClass:"card-header d-inline-flex align-items-center justify-content-between"},[s("p",{staticClass:"mb-0 font-weight-bold"},[t._v("Live Chat")]),t._v(" "),s("div",[t.isOwner?s("button",{staticClass:"btn btn-sm rounded-pill",class:[t.modMode?"btn-danger font-weight-bold":"btn-light"],on:{click:t.toggleModMode}},[s("i",{staticClass:"far fa-badge-sheriff"}),t._v(" Moderate\n\t\t\t")]):t._e(),t._v(" "),s("button",{staticClass:"btn btn-dark disabled btn-sm rounded-pill"},[s("i",{staticClass:"far fa-user"}),t._v(" "),s("span",{staticClass:"font-weight-bold ml-1"},[t._v(t._s(t.viewerCount))])])])]),t._v(" "),s("div",{staticClass:"card-body d-flex flex-column-reverse pl-0 pr-1",staticStyle:{height:"40vh","overflow-y":"auto"}},["loaded"===t.state?t._l(t.comments,(function(e,i){return s("div",{staticClass:"media rounded-lg p-1 live-chat-msg align-items-start"},[t.modMode?[s("a",{staticClass:"text-danger mr-2",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteComment(i)}}},[s("i",{staticClass:"far fa-map-pin"})]),t._v(" "),e.pid!=t.profile.id?s("a",{staticClass:"text-danger mr-2",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.banUser(i)}}},[s("i",{staticClass:"far fa-ban"})]):t._e()]:t._e(),t._v(" "),s("img",{staticClass:"rounded-circle mr-1",attrs:{src:e.avatar,width:"20"}}),t._v(" "),s("div",{staticClass:"media-body"},[e.pid===t.profile.id?[s("span",{staticClass:"font-weight-bold",style:{color:"red"}},[t._v(t._s(e.username))]),t._v(":\n\t\t\t\t\t")]:[s("span",{staticClass:"font-weight-bold primary"},[t._v(t._s(e.username))]),t._v(":\n\t\t\t\t\t")],t._v(" "),s("span",{staticClass:"ml-1 text-break"},[t._v("\n\t\t\t\t\t\t"+t._s(e.text)+"\n\t\t\t\t\t")])],2),t._v(" "),s("button",{staticClass:"btn btn-light btn-sm ml-1",on:{click:function(e){return t.openMenu(i)}}},[s("i",{staticClass:"fas fa-ellipsis-v text-lighter"})])],2)})):"loading"===t.state?[s("div",{staticClass:"text-center"},[s("b-spinner",{attrs:{type:"grow"}}),t._v(" "),s("p",{staticClass:"font-weight-bold mb-0"},[t._v("Loading comments...")])],1)]:"offline"===t.state?s("div",{staticClass:"align-items-center"},[t._m(0)]):t._e()],2),t._v(" "),t.pinnedMessage?[s("div",{staticClass:"card-body d-flex pl-0 pr-1 mt-n3 py-0 mb-3 align-items-start pinned-msg"},[s("div",{staticClass:"media rounded-lg p-1 live-chat-msg"},[s("img",{staticClass:"rounded-circle mr-1",attrs:{src:t.pinnedMessage.avatar,width:"20"}}),t._v(" "),s("div",{staticClass:"media-body"},[t.pinnedMessage.pid===t.profile.id?[s("span",{staticClass:"font-weight-bold",style:{color:"red"}},[t._v(t._s(t.pinnedMessage.username))]),t._v(":\n\t\t\t\t\t")]:[s("span",{staticClass:"font-weight-bold primary"},[t._v(t._s(t.pinnedMessage.username))]),t._v(":\n\t\t\t\t\t")],t._v(" "),s("span",{staticClass:"ml-1 text-break"},[t._v("\n\t\t\t\t\t\t"+t._s(t.pinnedMessage.text)+"\n\t\t\t\t\t")])],2)])]),t._v(" "),t.isOwner?s("div",{staticClass:"mb-3 mt-n4"},[s("button",{staticClass:"btn btn-dark btn-sm font-weight-bold small text-muted rounded-pill",attrs:{disabled:t.isUnpinning},on:{click:function(e){return t.unpinMessage()}}},[s("i",{staticClass:"far fa-times-circle mr-1"}),t._v("Remove pin\n\t\t\t")])]):t._e()]:t._e(),t._v(" "),"loaded"===t.state?s("div",{staticClass:"card-body pt-0 px-2 pb-2"},[t.isBannedFromChat?s("div",[t._m(1)]):[s("div",{staticClass:"d-flex"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.comment,expression:"comment"}],staticClass:"form-control rounded-pill bg-light",attrs:{type:"text",placeholder:"Add a comment...",disabled:t.commentFormDisabled},domProps:{value:t.comment},on:{input:function(e){e.target.composing||(t.comment=e.target.value)}}}),t._v(" "),s("button",{staticClass:"btn btn-primary rounded-circle ml-2",attrs:{disabled:t.commentFormDisabled},on:{click:t.addComment}},[s("i",{staticClass:"far fa-paper-plane"})])]),t._v(" "),t.formError?s("p",{staticClass:"text-danger font-weight-bold mb-0 small mt-1"},[t._v(t._s(t.formError))]):t._e()]],2):t._e(),t._v(" "),t.commentMenuObject?s("b-modal",{ref:"commentMenu",attrs:{size:"sm","hide-header":"","hide-footer":"",centered:"","return-focus":"body","body-class":"list-group list-group-flush p-0 text-center"}},[t.commentMenuIndex?s("div",{staticClass:"list-group-item border-dark bg-dark p-4"},[s("div",{staticClass:"media rounded-lg p-1 live-chat-msg text-left"},[s("img",{staticClass:"rounded-circle mr-1",attrs:{src:t.comments[t.commentMenuIndex].avatar,width:"20"}}),t._v(" "),s("div",{staticClass:"media-body"},[t.comments[t.commentMenuIndex].pid===t.profile.id?[s("span",{staticClass:"font-weight-bold",style:{color:"red"}},[t._v(t._s(t.comments[t.commentMenuIndex].username))]),t._v(":\n\t\t\t\t\t")]:[s("span",{staticClass:"font-weight-bold primary"},[t._v(t._s(t.comments[t.commentMenuIndex].username))]),t._v(":\n\t\t\t\t\t")],t._v(" "),s("span",{staticClass:"ml-1 text-break"},[t._v("\n\t\t\t\t\t\t"+t._s(t.comments[t.commentMenuIndex].text)+"\n\t\t\t\t\t")])],2)])]):t._e(),t._v(" "),t.isOwner||t.commentMenuObject.pid===t.user.id?t._e():s("li",{staticClass:"list-group-item border-dark"},[t._v("Report")]),t._v(" "),t.isOwner?s("a",{staticClass:"list-group-item border-dark text-warning text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.pinMessage(t.commentMenuIndex)}}},[t._v("\n\t\t\tPin\n\t\t")]):t._e(),t._v(" "),t.isOwner?s("a",{staticClass:"list-group-item border-dark text-danger text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.banUser(t.commentMenuIndex)}}},[t._v("\n\t\t\tBan User\n\t\t")]):t._e(),t._v(" "),t.isOwner||t.commentMenuObject.pid==t.user.id?s("a",{staticClass:"list-group-item border-dark text-danger text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteComment(t.commentMenuIndex)}}},[t._v("\n\t\t\tDelete\n\t\t")]):t._e()]):t._e()],2)},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"text-center"},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v("Comments are disabled as the stream is offline")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"font-weight-bold mb-0 small"},[t._v("\n\t\t\t\tBanned from this live stream chat by the streamer. For more info, visit the "),s("a",{attrs:{href:"/site/kb/stories"}},[t._v("help center")])])}]},45361:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.stream.description&&t.stream.description.length?s("div",{staticClass:"card mt-3 shadow-none"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("div",{staticClass:"media-body"},[s("div",{staticClass:"text-muted"},[t._v("\n\t\t\t\t\t"+t._s(t.stream.description)+"\n\t\t\t\t")])])])])]):t._e()},a=[]},53331:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-light d-flex align-items-center justify-content-center",staticStyle:{"min-height":"385px","border-radius":"20px"}},[s("div",{staticClass:"text-center"},[s("b-spinner",{attrs:{type:"grow"}}),t._v(" "),s("p",{staticClass:"font-weight-bold mb-0"},[t._v("Loading stream...")])],1)])},a=[]},79366:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>i,staticRenderFns:()=>a});var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-dark text-light d-flex align-items-center justify-content-center",staticStyle:{"min-height":"600px","border-radius":"20px"}},[s("div",{staticClass:"text-center"},[s("p",[s("i",{staticClass:"far fa-eye-slash fa-3x"})]),t._v(" "),s("p",{staticClass:"lead font-weight-bold mb-0"},[t._v("Stream offline")])])])}]}},t=>{t.O(0,[898],(()=>{return e=62831,t(t.s=e);var e}));t.O()}]); \ No newline at end of file diff --git a/public/js/spa.js b/public/js/spa.js index 44f7bf7fb..7dd24f800 100644 --- a/public/js/spa.js +++ b/public/js/spa.js @@ -1,2 +1,2 @@ /*! For license information please see spa.js.LICENSE.txt */ -(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[269],{6340:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={components:{sidebar:a(88231).default},data:function(){return{isLoaded:!1,profile:void 0,instance:void 0,nodeinfo:void 0,config:window.App.config}},mounted:function(){this.fetchUserData()},methods:{fetchUserData:function(){this.profile=window._sharedData.user,this.fetchInstance()},fetchInstance:function(){var t=this;axios.get("/api/v1/instance").then((function(e){t.instance=e.data,t.fetchNodeinfo()}))},fetchNodeinfo:function(){var t=this;axios.get("/api/nodeinfo/2.0.json").then((function(e){t.nodeinfo=e.data,t.isLoaded=!0}))}}}},51209:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var o=a(42755),s=a(88231);const i={components:{drawer:o.default,sidebar:s.default},data:function(){return{isLoaded:!1,profile:void 0,instance:void 0,nodeinfo:void 0,config:window.App.config}},mounted:function(){this.profile=window._sharedData.user}}},7212:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={components:{sidebar:a(88231).default},data:function(){return{isLoaded:!1,profile:void 0}},mounted:function(){this.profile=window._sharedData.user,this.isLoaded=!0}}},45595:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>c});var o=a(42755),s=a(78423),i=a(88231),n=a(78375);function r(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return l(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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,o=new Array(e);a{"use strict";a.r(e),a.d(e,{default:()=>o});const o={data:function(){return{posts:[],profile:[]}},mounted:function(){this.init()},methods:{init:function(){var t=this;axios.get("/i/hc/category",{params:{id:1}}).then((function(e){t.profile=e.data})),axios.get("/i/hc/category",{params:{id:2}}).then((function(e){t.posts=e.data}))}}}},32854:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={data:function(){return{isLoaded:!1,article:void 0,related:[]}},mounted:function(){this.init()},methods:{init:function(){this.fetchArticle()},fetchArticle:function(){var t=this;axios.get("/i/hc/get",{params:{id:this.$route.params.id}}).then((function(e){t.isLoaded=!0,t.article=e.data})).catch((function(e){t.$router.push("/i/web/404")}))}}}},33555:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var o=a(42755),s=a(88231);const i={components:{drawer:o.default,sidebar:s.default},data:function(){return{isLoaded:!1,profile:void 0,locale:"en",langs:["en","ar","ca","de","el","es","eu","fr","he","gd","gl","id","it","ja","nl","pl","pt","ru","uk","vi"]}},mounted:function(){this.profile=window._sharedData.user,this.isLoaded=!0,this.locale=this.$i18n.locale},watch:{locale:function(t){this.loadLang(t)}},methods:{fullName:function(t){return new Intl.DisplayNames([t],{type:"language"}).of(t)},localeName:function(t){return new Intl.DisplayNames([this.$i18n.locale],{type:"language"}).of(t)},loadLang:function(t){var e=this;axios.post("/api/pixelfed/web/change-language.json",{v:.1,l:t}).then((function(a){e.$i18n.locale=t}))}}}},16568:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={components:{drawer:a(42755).default}}},32343:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={components:{sidebar:a(88231).default},data:function(){return{isLoaded:!1,profile:void 0,page:void 0}},mounted:function(){this.fetchPage()},methods:{fetchPage:function(){var t=this;axios.get("/i/doc/privacy.json").then((function(e){t.page=e.data,t.fetchUserData()}))},fetchUserData:function(){this.profile=window._sharedData.user,this.isLoaded=!0}}}},16661:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={components:{sidebar:a(88231).default},data:function(){return{isLoaded:!1,profile:void 0,page:void 0}},mounted:function(){this.fetchPage()},methods:{fetchPage:function(){var t=this;axios.get("/i/doc/terms.json").then((function(e){t.page=e.data,t.fetchUserData()}))},fetchUserData:function(){this.profile=window._sharedData.user,this.isLoaded=!0}}}},48274:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={data:function(){return{user:window._sharedData.user}}}},26930:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={props:["user"],data:function(){return{loaded:!1,avatarUpdateIndex:0,avatarUpdateFile:void 0,avatarUpdatePreview:void 0}},methods:{open:function(){this.$refs.avatarUpdateModal.show()},avatarUpdateClose:function(){this.$refs.avatarUpdateModal.hide(),this.avatarUpdateIndex=0,this.avatarUpdateFile=void 0},avatarUpdateClear:function(){this.avatarUpdateIndex=0,this.avatarUpdateFile=void 0},avatarUpdateStep:function(t){this.$refs.avatarUpdateRef.click(),this.avatarUpdateIndex=t},handleAvatarUpdate:function(){var t=this,e=event.target.files;Array.prototype.forEach.call(e,(function(e,a){t.avatarUpdateFile=e,t.avatarUpdatePreview=URL.createObjectURL(e),t.avatarUpdateIndex=1}))},handleDrop:function(t){t.preventDefault();var e=this;if(t.dataTransfer.items){for(var a=0;a{"use strict";a.r(e),a.d(e,{default:()=>n});var o=a(29655);a(14348);function s(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return i(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,o=new Array(e);a1&&void 0!==arguments[1]?arguments[1]:30;return t.length<=e?t:t.slice(0,e)+"..."},logout:function(){axios.post("/logout").then((function(t){location.href="/"})).catch((function(t){location.href="/"}))},openUserInterfaceSettings:function(){event.currentTarget.blur(),this.$refs.uis.show()},toggleUi:function(t){event.currentTarget.blur(),this.uiColorScheme=t},toggleProfileLayout:function(t){event.currentTarget.blur(),this.profileLayout=t}}}},33588:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={props:{small:{type:Boolean,default:!1}}}},84196:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={components:{notifications:a(73459).default},data:function(){return{profile:{}}},mounted:function(){this.profile=window._sharedData.user}}},77671:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});var o=a(20629),s=a(68296),i=a(76429);function n(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const l={props:{user:{type:Object,default:function(){return{avatar:"/storage/avatars/default.jpg",username:!1,display_name:"",following_count:0,followers_count:0}}},links:{type:Array,default:function(){return[{name:"Discover",path:"/i/web/discover",icon:"fas fa-compass"},{name:"Groups",path:"/i/web/groups",icon:"far fa-user-friends"},{name:"Videos",path:"/i/web/videos",icon:"far fa-video"}]}}},components:{ComposeSimple:s.default,UpdateAvatar:i.default},computed:function(t){for(var e=1;e)?/g,(function(e){var a=e.slice(1,e.length-1),o=t.getCustomEmoji.filter((function(t){return t.shortcode==a}));return o.length?''.concat(o[0].shortcode,''):e}))}return a},gotoMyProfile:function(){var t=this.user;this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:t}})},formatCount:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"compact";return new Intl.NumberFormat(e,{notation:a,compactDisplay:"short"}).format(t)},updateAvatar:function(){event.currentTarget.blur(),this.$refs.avatarUpdate.open()},createNewPost:function(){this.$refs.createPostModal.show()}}}},3366:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={data:function(){return{user:{},step:"firstLoad"}},mounted:function(){this.user=window._sharedData.user},methods:{toggleStep:function(t){this.step=t}}}},58338:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var o=a(73128),s=a(78423);function i(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return n(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 n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,o=new Array(e);a{"use strict";a.r(e),a.d(e,{default:()=>s});var o=a(19755);const s={data:function(){return{announcements:[],announcement:{},cursor:0,showNext:!0,showPrev:!1}},mounted:function(){this.fetchAnnouncements()},updated:function(){o('[data-toggle="tooltip"]').tooltip()},methods:{fetchAnnouncements:function(){var t=this,e=JSON.parse(window.localStorage.getItem("metro-tips-closed"));axios.get("/api/pixelfed/v1/newsroom/timeline").then((function(a){t.announcements=a.data.filter((function(t){return!e||-1==e.indexOf(t.id)})),t.announcement=t.announcements[0],1==t.announcements.length&&(t.showNext=!1)}))},loadNext:function(){this.showNext&&(this.cursor+=1,this.announcement=this.announcements[this.cursor],this.cursor+1==this.announcements.length&&(this.showNext=!1),this.cursor>=1&&(this.showPrev=!0))},loadPrev:function(){this.showPrev&&(this.cursor-=1,this.announcement=this.announcements[this.cursor],0==this.cursor&&(this.showPrev=!1),this.cursor1})).catch((function(t){swal("Oops, Something went wrong","There was a problem with your request, please try again later.","error")}))}}}},2962:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var o=a(19755);function s(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return i(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,o=new Array(e);a5?t.complete():axios.get("/api/pixelfed/v1/notifications",{params:{max_id:this.notificationMaxId}}).then((function(a){if(a.data.length){var o,i=a.data.filter((function(t){return!("share"==t.type&&!t.status)&&(!("comment"==t.type&&!t.status)&&(!("mention"==t.type&&!t.status)&&(!("favourite"==t.type&&!t.status)&&(!("follow"==t.type&&!t.account)&&!_.find(e.notifications,{id:t.id})))))})),n=i.map((function(t){return t.id}));e.notificationMaxId=Math.min.apply(Math,s(n)),(o=e.notifications).push.apply(o,s(i)),e.notificationCursor++,t.loaded()}else t.complete()}))},truncate:function(t){return t.length<=15?t:t.slice(0,15)+"..."},timeAgo:function(t){return window.App.util.format.timeAgo(t)},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},notificationPoll:function(){var t=this.notifications.length>5?15e3:12e4,e=this;setInterval((function(){axios.get("/api/pixelfed/v1/notifications").then((function(t){var a=t.data.filter((function(t){return!("share"==t.type||e.notificationMaxId>=t.id)}));if(a.length){var i,n=a.map((function(t){return t.id}));e.notificationMaxId=Math.max.apply(Math,s(n)),(i=e.notifications).unshift.apply(i,s(a));var r=new Audio("/static/beep.mp3");r.volume=.7,r.play(),o(".notification-card .far.fa-bell").addClass("fas text-danger").removeClass("far text-muted")}}))}),t)},fetchFollowRequests:function(){var t=this;1==window._sharedData.curUser.locked&&axios.get("/account/follow-requests.json").then((function(e){t.followRequests=e.data}))},redirect:function(t){window.location.href=t},notificationPreview:function(t){return t.status&&t.status.hasOwnProperty("media_attachments")&&t.status.media_attachments.length?t.status.media_attachments[0].preview_url:"/storage/no-preview.png"},getProfileUrl:function(t){return 1==t.local?t.url:"/i/web/profile/_/"+t.id},getPostUrl:function(t){if(t)return t.hasOwnProperty("local")&&1!=t.local?"/i/web/post/_/"+t.account.id+"/"+t.id:t.url},refreshNotifications:function(){this.loading=!0,this.attemptedRefresh=!0,this.fetchNotifications()}}}},14425:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});var o=a(19755);const s={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"),o("#mt_pid_"+this.status.id).modal("hide")},hidePost:function(t){t.sensitive=!0,o("#mt_pid_"+t.id).modal("hide")},moderatePost:function(t,e,a){var o=t.account.username;switch(e){case"autocw":var s="Are you sure you want to enforce CW for "+o+" ?";swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":s="Are you sure you want to suspend the account of "+o+" ?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0})}},muteProfile:function(t){0!=o("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!=o("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")}))},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},closeModal:function(){o("#mt_pid_"+this.status.id).modal("hide")}}}},58206:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={props:["list","scope"],data:function(){return{loading:!0,show:!0,stories:{}}},mounted:function(){this.fetchStories()},methods:{fetchStories:function(){var t=this;axios.get("/api/web/stories/v1/recent").then((function(e){e.data;e.data.length?(t.stories=e.data,t.loading=!1):t.show=!1})).catch((function(e){t.loading=!1,t.$bvToast.toast("Cannot load stories. Please try again later.",{title:"Error",variant:"danger",autoHideDelay:5e3}),t.show=!1}))},showStory:function(t){var e;switch(this.scope){case"home":e="/?t=1";break;case"local":e="/?t=2";break;case"network":e="/?t=3"}window.location.href=this.stories[t].url+e},systemStory:function(){window.location.href="/i/_platform/stories/whats-new"}}}},7768:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={props:["status"]}},10578:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});var o=a(99347);const s={props:["status"],data:function(){return{sensitive:this.status.sensitive,cursor:0}},created:function(){},beforeDestroy:function(){},methods:{toggleContentWarning:function(t){this.$emit("togglecw")},toggleLightbox:function(t){(0,o.default)({el:t.target,gallery:"#carousel-"+this.status.id,position:this.$refs.carousel.currentPage})},altText:function(t){var e=t.description;return e||"Photo was not tagged with any alt text."},keypressNavigation:function(t){var e=this.$refs.carousel;if("37"==t.keyCode){t.preventDefault();var a="backward";e.advancePage(a),e.$emit("navigation-click",a)}if("39"==t.keyCode){t.preventDefault();var o="forward";e.advancePage(o),e.$emit("navigation-click",o)}}}}},15464:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});var o=a(99347);const s={props:["status"],data:function(){return{sensitive:this.status.sensitive}},mounted:function(){},methods:{altText:function(t){var e=t.media_attachments[0].description;return e||"Photo was not tagged with any alt text."},toggleContentWarning:function(t){this.$emit("togglecw")},toggleLightbox:function(t){(0,o.default)({el:t.target})},width:function(){if(this.status.media_attachments[0].meta&&this.status.media_attachments[0].meta.original&&this.status.media_attachments[0].meta.original.width)return this.status.media_attachments[0].meta.original.width},height:function(){if(this.status.media_attachments[0].meta&&this.status.media_attachments[0].meta.original&&this.status.media_attachments[0].meta.original.height)return this.status.media_attachments[0].meta.original.height}}}},63049:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={props:["status"]}},67223:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});const o={props:["status"],methods:{altText:function(t){var e=t.media_attachments[0].description;return e||"Video was not tagged with any alt text."},playOrPause:function(t){var e=t.target;1==e.getAttribute("playing")?(e.removeAttribute("playing"),e.pause()):(e.setAttribute("playing",1),e.play())},toggleContentWarning:function(t){this.$emit("togglecw")}}}},86807:function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}!function(){var e="object"===("undefined"==typeof window?"undefined":t(window))?window:"object"===("undefined"==typeof self?"undefined":t(self))?self:this,a=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder;e.URL=e.URL||e.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var o=e.Blob,s=URL.createObjectURL,i=URL.revokeObjectURL,n=e.Symbol&&e.Symbol.toStringTag,r=!1,c=!1,d=!!e.ArrayBuffer,u=a&&a.prototype.append&&a.prototype.getBlob;try{r=2===new Blob(["ä"]).size,c=2===new Blob([new Uint8Array([1,2])]).size}catch(t){}function m(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var a=new Uint8Array(t.byteLength);a.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=a.buffer}return e}return t}))}function p(t,e){e=e||{};var o=new a;return m(t).forEach((function(t){o.append(t)})),e.type?o.getBlob(e.type):o.getBlob()}function f(t,e){return new o(m(t),e||{})}e.Blob&&(p.prototype=Blob.prototype,f.prototype=Blob.prototype);var h="function"==typeof TextEncoder?TextEncoder.prototype.encode.bind(new TextEncoder):function(t){for(var a=0,o=t.length,s=e.Uint8Array||Array,i=0,n=Math.max(32,o+(o>>1)+7),r=new s(n>>3<<3);a=55296&&l<=56319){if(a=55296&&l<=56319)continue}if(i+4>r.length){n+=8,n=(n*=1+a/t.length*2)>>3<<3;var d=new Uint8Array(n);d.set(r),r=d}if(0!=(4294967168&l)){if(0==(4294965248&l))r[i++]=l>>6&31|192;else if(0==(4294901760&l))r[i++]=l>>12&15|224,r[i++]=l>>6&63|128;else{if(0!=(4292870144&l))continue;r[i++]=l>>18&7|240,r[i++]=l>>12&63|128,r[i++]=l>>6&63|128}r[i++]=63&l|128}else r[i++]=l}return r.slice(0,i)},v="function"==typeof TextDecoder?TextDecoder.prototype.decode.bind(new TextDecoder):function(t){for(var e=t.length,a=[],o=0;o239?4:l>223?3:l>191?2:1;if(o+d<=e)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(s=t[o+1]))&&(r=(31&l)<<6|63&s)>127&&(c=r);break;case 3:s=t[o+1],i=t[o+2],128==(192&s)&&128==(192&i)&&(r=(15&l)<<12|(63&s)<<6|63&i)>2047&&(r<55296||r>57343)&&(c=r);break;case 4:s=t[o+1],i=t[o+2],n=t[o+3],128==(192&s)&&128==(192&i)&&128==(192&n)&&(r=(15&l)<<18|(63&s)<<12|(63&i)<<6|63&n)>65535&&r<1114112&&(c=r)}null===c?(c=65533,d=1):c>65535&&(c-=65536,a.push(c>>>10&1023|55296),c=56320|1023&c),a.push(c),o+=d}var u=a.length,m="";for(o=0;o>2,d=(3&s)<<4|n>>4,u=(15&n)<<2|l>>6,m=63&l;r||(m=64,i||(u=64)),a.push(e[c],e[d],e[u],e[m])}return a.join("")}var o=Object.create||function(t){function e(){}return e.prototype=t,new e};if(d)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};function c(a,o){o=null==o?{}:o;for(var s=0,i=(a=a||[]).length;s=e.size&&a.close()}))}})}}catch(t){try{new ReadableStream({}),b=function(t){var e=0;t=this;return new ReadableStream({pull:function(a){return t.slice(e,e+524288).arrayBuffer().then((function(o){e+=o.byteLength;var s=new Uint8Array(o);a.enqueue(s),e==t.size&&a.close()}))}})}}catch(t){try{new Response("").body.getReader().read(),b=function(){return new Response(this).body}}catch(t){b=function(){throw new Error("Include https://github.com/MattiasBuelens/web-streams-polyfill")}}}}w.arrayBuffer||(w.arrayBuffer=function(){var t=new FileReader;return t.readAsArrayBuffer(this),y(t)}),w.text||(w.text=function(){var t=new FileReader;return t.readAsText(this),y(t)}),w.stream||(w.stream=b)}(),function(t){"use strict";var e,a=t.Uint8Array,o=t.HTMLCanvasElement,s=o&&o.prototype,i=/\s*;\s*base64\s*(?:;|$)/i,n="toDataURL",r=function(t){for(var o,s,i=t.length,n=new a(i/4*3|0),r=0,l=0,c=[0,0],d=0,u=0;i--;)s=t.charCodeAt(r++),255!==(o=e[s-43])&&undefined!==o&&(c[1]=c[0],c[0]=s,u=u<<6|o,4===++d&&(n[l++]=u>>>16,61!==c[1]&&(n[l++]=u>>>8),61!==c[0]&&(n[l++]=u),d=0));return n};a&&(e=new a([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),!o||s.toBlob&&s.toBlobHD||(s.toBlob||(s.toBlob=function(t,e){if(e||(e="image/png"),this.mozGetAsFile)t(this.mozGetAsFile("canvas",e));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(e))t(this.msToBlob());else{var o,s=Array.prototype.slice.call(arguments,1),l=this[n].apply(this,s),c=l.indexOf(","),d=l.substring(c+1),u=i.test(l.substring(0,c));Blob.fake?((o=new Blob).encoding=u?"base64":"URI",o.data=d,o.size=d.length):a&&(o=u?new Blob([r(d)],{type:e}):new Blob([decodeURIComponent(d)],{type:e})),t(o)}}),!s.toBlobHD&&s.toDataURLHD?s.toBlobHD=function(){n="toDataURLHD";var t=this.toBlob();return n="toDataURL",t}:s.toBlobHD=s.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)},43248:(t,e,a)=>{"use strict";a.r(e);var o=a(70538),s=a(78345),i=a(20629),n=a(83678),r=a(25518),l=a(30306),c=a.n(l),d=a(7398),u=a.n(d),m=a(92987),p=a(37409),f=a.n(p),h=a(74870),v=a.n(h),g=a(82364),b=a(17152),w=(a(82711),a(46737),a(48266)),y=a(42390),C=a(94421),_=a(72179),k=a(88041),x=a(51414),S=a(30469),P=a(52182),A=a(27228),M=a(63836),F=(a(19755),a(19755));function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}a(86807),window.Vue=o.default,window.pftxt=a(47711),window.filesize=a(42317),window._=a(96486),window.Popper=a(28981).default,window.pixelfed=window.pixelfed||{},window.$=a(19755),a(43734),window.axios=a(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",a(90717),window.blurhash=a(43985),F('[data-toggle="tooltip"]').tooltip();var z=document.head.querySelector('meta[name="csrf-token"]');z?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=z.content:console.error("CSRF token not found."),o.default.use(s.default),o.default.use(i.default),o.default.use(v()),o.default.use(f()),o.default.use(r.default),o.default.use(c()),o.default.use(u()),o.default.use(g.default),o.default.use(b.default),o.default.use(m.default,{name:"Timeago",locale:"en"}),o.default.component("navbar",a(65429).default),o.default.component("notification-card",a(91500).default),o.default.component("photo-presenter",a(23251).default),o.default.component("video-presenter",a(53973).default),o.default.component("photo-album-presenter",a(33872).default),o.default.component("video-album-presenter",a(76644).default),o.default.component("mixed-album-presenter",a(57374).default),o.default.component("post-menu",a(4086).default),o.default.component("announcements-card",a(35057).default),o.default.component("story-component",a(69141).default);var R=function(){return Promise.all([a.e(898),a.e(319)]).then(a.bind(a,98489))},j=new s.default({mode:"history",linkActiveClass:"active",routes:[{path:"/i/web/timeline/:scope",name:"timeline",component:R,props:!0},{path:"/i/web/post/:id",name:"post",component:function(){return Promise.all([a.e(898),a.e(132)]).then(a.bind(a,12118))},props:!0},{path:"/i/web/profile/:id",name:"profile",component:function(){return Promise.all([a.e(898),a.e(620)]).then(a.bind(a,70595))},props:!0},{path:"/i/web/discover",component:function(){return a.e(417).then(a.bind(a,14235))}},{path:"/i/web/compose",component:function(){return Promise.all([a.e(898),a.e(500)]).then(a.bind(a,55763))}},{path:"/i/web/notifications",component:function(){return a.e(863).then(a.bind(a,73209))}},{path:"/i/web/direct/thread/:accountId",component:function(){return a.e(43).then(a.bind(a,17360))},props:!0},{path:"/i/web/direct",component:function(){return a.e(888).then(a.bind(a,59502))}},{path:"/i/web/kb/:id",name:"kb",component:_.default,props:!0},{path:"/i/web/hashtag/:id",name:"hashtag",component:w.default,props:!0},{path:"/i/web/help",component:C.default},{path:"/i/web/about",component:k.default},{path:"/i/web/contact",component:x.default},{path:"/i/web/language",component:S.default},{path:"/i/web/privacy",component:P.default},{path:"/i/web/terms",component:A.default},{path:"/i/web/whats-new",component:M.default},{path:"/i/web/discover/my-memories",component:function(){return Promise.all([a.e(898),a.e(566)]).then(a.bind(a,7765))}},{path:"/i/web/discover/my-hashtags",component:function(){return Promise.all([a.e(898),a.e(935)]).then(a.bind(a,33354))}},{path:"/i/web/discover/account-insights",component:function(){return Promise.all([a.e(898),a.e(97)]).then(a.bind(a,15021))}},{path:"/i/web/discover/find-friends",component:function(){return Promise.all([a.e(898),a.e(340)]).then(a.bind(a,66897))}},{path:"/i/web/discover/server-timelines",component:function(){return Promise.all([a.e(898),a.e(575)]).then(a.bind(a,72906))}},{path:"/i/web/discover/settings",component:function(){return Promise.all([a.e(898),a.e(545)]).then(a.bind(a,81555))}},{path:"/i/web",component:R,props:!0},{path:"/i/web/*",component:y.default,props:!0}],scrollBehavior:function(t,e,a){return t.hash?{selector:"[id='".concat(t.hash.slice(1),"']")}:{x:0,y:0}}});function L(t,e){var a="pf_m2s."+t,o=window.localStorage;if(o.getItem(a)){var s=o.getItem(a);return["pl","color-scheme"].includes(t)?s:["true",!0].includes(s)}return e}var U=new i.default.Store({state:{version:1,hideCounts:L("hc",!1),autoloadComments:L("ac",!0),newReactions:L("nr",!0),fixedHeight:L("fh",!1),profileLayout:L("pl","grid"),showDMPrivacyWarning:L("dmpwarn",!0),relationships:{},emoji:[],colorScheme:L("color-scheme","system")},getters:{getVersion:function(t){return t.version},getHideCounts:function(t){return t.hideCounts},getAutoloadComments:function(t){return t.autoloadComments},getNewReactions:function(t){return t.newReactions},getFixedHeight:function(t){return t.fixedHeight},getProfileLayout:function(t){return t.profileLayout},getRelationship:function(t){return function(e){return t.relationships[e]}},getCustomEmoji:function(t){return t.emoji},getColorScheme:function(t){return t.colorScheme},getShowDMPrivacyWarning:function(t){return t.showDMPrivacyWarning}},mutations:{setVersion:function(t,e){t.version=e},setHideCounts:function(t,e){localStorage.setItem("pf_m2s.hc",e),t.hideCounts=e},setAutoloadComments:function(t,e){localStorage.setItem("pf_m2s.ac",e),t.autoloadComments=e},setNewReactions:function(t,e){localStorage.setItem("pf_m2s.nr",e),t.newReactions=e},setFixedHeight:function(t,e){localStorage.setItem("pf_m2s.fh",e),t.fixedHeight=e},setProfileLayout:function(t,e){localStorage.setItem("pf_m2s.pl",e),t.profileLayout=e},updateRelationship:function(t,e){e.forEach((function(e){o.default.set(t.relationships,e.id,e)}))},updateCustomEmoji:function(t,e){t.emoji=e},setColorScheme:function(t,e){if(t.colorScheme!=e){localStorage.setItem("pf_m2s.color-scheme",e),t.colorScheme=e;var a="system"==e?"":"light"==e?"force-light-mode":"force-dark-mode";if(document.querySelector("body").className=a,"system"!=a){var o="force-dark-mode"==a?{dark_mode:"on"}:{};axios.post("/settings/labs",o)}}},setShowDMPrivacyWarning:function(t,e){localStorage.setItem("pf_m2s.dmpwarn",e),t.showDMPrivacyWarning=e}}}),W={en:a(54414),ar:a(48509),ca:a(14392),de:a(88133),el:a(70448),es:a(32464),eu:a(23455),fr:a(86956),he:a(28863),gd:a(40388),gl:a(90187),id:a(14706),it:a(71268),ja:a(3752),nl:a(6048),pl:a(13470),pt:a(39719),ru:a(11319),uk:a(90510),vi:a(20119)},E=document.querySelector("html").getAttribute("lang"),I=new b.default({locale:E,fallbackLocale:"en",messages:W});(0,n.sync)(U,j);new o.default({el:"#content",i18n:I,router:j,store:U});if(axios.get("/api/v1/custom_emojis").then((function(t){t&&t.data&&t.data.length&&U.commit("updateCustomEmoji",t.data)})),U.state.colorScheme){var D="system"==U.state.colorScheme?"":"light"==U.state.colorScheme?"force-light-mode":"force-dark-mode";"system"!=D&&(document.querySelector("body").className=D)}pixelfed.readmore=function(){F(".read-more").each((function(t,e){var a=F(this),o=a.attr("data-readmore");"undefined"!==T(o)&&!1!==o||a.readmore({collapsedHeight:45,heightMargin:48,moreLink:'Show more',lessLink:'Show less'})}))};try{document.createEvent("TouchEvent"),F("body").addClass("touch")}catch(t){}window.App=window.App||{},window.App.util={compose:{post:function(){var t=window.location.pathname;["/","/timeline/public"].includes(t)?F("#composeModal").modal("show"):window.location.href="/?a=co"},circle:function(){console.log("Unsupported method.")},collection:function(){console.log("Unsupported method.")},loop:function(){console.log("Unsupported method.")},story:function(){console.log("Unsupported method.")}},time:function(){return new Date},version:1,format:{count:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"compact";return t<1?0:new Intl.NumberFormat(e,{notation:a,compactDisplay:"short"}).format(t)},timeAgo:function(t){var e=Date.parse(t),a=Math.floor((new Date-e)/1e3),o=Math.floor(a/63072e3);return o<0?"0s":o>=1?o+"y":(o=Math.floor(a/604800))>=1?o+"w":(o=Math.floor(a/86400))>=1?o+"d":(o=Math.floor(a/3600))>=1?o+"h":(o=Math.floor(a/60))>=1?o+"m":Math.floor(a)+"s"},timeAhead:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=Date.parse(t),o=a-Date.parse(new Date),s=Math.floor(o/1e3),i=Math.floor(s/63072e3);return i>=1?i+(e?"y":" years"):(i=Math.floor(s/604800))>=1?i+(e?"w":" weeks"):(i=Math.floor(s/86400))>=1?i+(e?"d":" days"):(i=Math.floor(s/3600))>=1?i+(e?"h":" hours"):(i=Math.floor(s/60))>=1?i+(e?"m":" minutes"):Math.floor(s)+(e?"s":" seconds")},rewriteLinks:function(t){var e=t.innerText;return t.href.startsWith(window.location.origin)?t.href:e=1==e.startsWith("#")?"/discover/tags/"+e.substr(1)+"?src=rph":1==e.startsWith("@")?"/"+t.innerText+"?src=rpp":"/i/redirect?url="+encodeURIComponent(e)}},filters:[["1977","filter-1977"],["Aden","filter-aden"],["Amaro","filter-amaro"],["Ashby","filter-ashby"],["Brannan","filter-brannan"],["Brooklyn","filter-brooklyn"],["Charmes","filter-charmes"],["Clarendon","filter-clarendon"],["Crema","filter-crema"],["Dogpatch","filter-dogpatch"],["Earlybird","filter-earlybird"],["Gingham","filter-gingham"],["Ginza","filter-ginza"],["Hefe","filter-hefe"],["Helena","filter-helena"],["Hudson","filter-hudson"],["Inkwell","filter-inkwell"],["Kelvin","filter-kelvin"],["Kuno","filter-juno"],["Lark","filter-lark"],["Lo-Fi","filter-lofi"],["Ludwig","filter-ludwig"],["Maven","filter-maven"],["Mayfair","filter-mayfair"],["Moon","filter-moon"],["Nashville","filter-nashville"],["Perpetua","filter-perpetua"],["Poprocket","filter-poprocket"],["Reyes","filter-reyes"],["Rise","filter-rise"],["Sierra","filter-sierra"],["Skyline","filter-skyline"],["Slumber","filter-slumber"],["Stinson","filter-stinson"],["Sutro","filter-sutro"],["Toaster","filter-toaster"],["Valencia","filter-valencia"],["Vesper","filter-vesper"],["Walden","filter-walden"],["Willow","filter-willow"],["X-Pro II","filter-xpro-ii"]],filterCss:{"filter-1977":"sepia(.5) hue-rotate(-30deg) saturate(1.4)","filter-aden":"sepia(.2) brightness(1.15) saturate(1.4)","filter-amaro":"sepia(.35) contrast(1.1) brightness(1.2) saturate(1.3)","filter-ashby":"sepia(.5) contrast(1.2) saturate(1.8)","filter-brannan":"sepia(.4) contrast(1.25) brightness(1.1) saturate(.9) hue-rotate(-2deg)","filter-brooklyn":"sepia(.25) contrast(1.25) brightness(1.25) hue-rotate(5deg)","filter-charmes":"sepia(.25) contrast(1.25) brightness(1.25) saturate(1.35) hue-rotate(-5deg)","filter-clarendon":"sepia(.15) contrast(1.25) brightness(1.25) hue-rotate(5deg)","filter-crema":"sepia(.5) contrast(1.25) brightness(1.15) saturate(.9) hue-rotate(-2deg)","filter-dogpatch":"sepia(.35) saturate(1.1) contrast(1.5)","filter-earlybird":"sepia(.25) contrast(1.25) brightness(1.15) saturate(.9) hue-rotate(-5deg)","filter-gingham":"contrast(1.1) brightness(1.1)","filter-ginza":"sepia(.25) contrast(1.15) brightness(1.2) saturate(1.35) hue-rotate(-5deg)","filter-hefe":"sepia(.4) contrast(1.5) brightness(1.2) saturate(1.4) hue-rotate(-10deg)","filter-helena":"sepia(.5) contrast(1.05) brightness(1.05) saturate(1.35)","filter-hudson":"sepia(.25) contrast(1.2) brightness(1.2) saturate(1.05) hue-rotate(-15deg)","filter-inkwell":"brightness(1.25) contrast(.85) grayscale(1)","filter-kelvin":"sepia(.15) contrast(1.5) brightness(1.1) hue-rotate(-10deg)","filter-juno":"sepia(.35) contrast(1.15) brightness(1.15) saturate(1.8)","filter-lark":"sepia(.25) contrast(1.2) brightness(1.3) saturate(1.25)","filter-lofi":"saturate(1.1) contrast(1.5)","filter-ludwig":"sepia(.25) contrast(1.05) brightness(1.05) saturate(2)","filter-maven":"sepia(.35) contrast(1.05) brightness(1.05) saturate(1.75)","filter-mayfair":"contrast(1.1) brightness(1.15) saturate(1.1)","filter-moon":"brightness(1.4) contrast(.95) saturate(0) sepia(.35)","filter-nashville":"sepia(.25) contrast(1.5) brightness(.9) hue-rotate(-15deg)","filter-perpetua":"contrast(1.1) brightness(1.25) saturate(1.1)","filter-poprocket":"sepia(.15) brightness(1.2)","filter-reyes":"sepia(.75) contrast(.75) brightness(1.25) saturate(1.4)","filter-rise":"sepia(.25) contrast(1.25) brightness(1.2) saturate(.9)","filter-sierra":"sepia(.25) contrast(1.5) brightness(.9) hue-rotate(-15deg)","filter-skyline":"sepia(.15) contrast(1.25) brightness(1.25) saturate(1.2)","filter-slumber":"sepia(.35) contrast(1.25) saturate(1.25)","filter-stinson":"sepia(.35) contrast(1.25) brightness(1.1) saturate(1.25)","filter-sutro":"sepia(.4) contrast(1.2) brightness(.9) saturate(1.4) hue-rotate(-10deg)","filter-toaster":"sepia(.25) contrast(1.5) brightness(.95) hue-rotate(-15deg)","filter-valencia":"sepia(.25) contrast(1.1) brightness(1.1)","filter-vesper":"sepia(.35) contrast(1.15) brightness(1.2) saturate(1.3)","filter-walden":"sepia(.35) contrast(.8) brightness(1.25) saturate(1.4)","filter-willow":"brightness(1.2) contrast(.85) saturate(.05) sepia(.2)","filter-xpro-ii":"sepia(.45) contrast(1.25) brightness(1.75) saturate(1.3) hue-rotate(-5deg)"},emoji:["😂","💯","❤️","🙌","👏","👌","😍","😯","😢","😅","😁","🙂","😎","😀","🤣","😃","😄","😆","😉","😊","😋","😘","😗","😙","😚","🤗","🤩","🤔","🤨","😐","😑","😶","🙄","😏","😣","😥","😮","🤐","😪","😫","😴","😌","😛","😜","😝","🤤","😒","😓","😔","😕","🙃","🤑","😲","🙁","😖","😞","😟","😤","😭","😦","😧","😨","😩","🤯","😬","😰","😱","😳","🤪","😵","😡","😠","🤬","😷","🤒","🤕","🤢","🤮","🤧","😇","🤠","🤡","🤥","🤫","🤭","🧐","🤓","😈","👿","👹","👺","💀","👻","👽","🤖","💩","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🤲","👐","🤝","👍","👎","👊","✊","🤛","🤜","🤞","✌️","🤟","🤘","👈","👉","👆","👇","☝️","✋","🤚","🖐","🖖","👋","🤙","💪","🖕","✍️","🙏","💍","💄","💋","👄","👅","👂","👃","👣","👁","👀","🧠","🗣","👤","👥"],embed:{post:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"full",s=t+"/embed?";return s+=e?"caption=true&":"caption=false&",s+=a?"likes=true&":"likes=false&",' + +@endpush + +@push('meta') + +@endpush + +@push('styles') + + +@endpush diff --git a/routes/web.php b/routes/web.php index bfea6b275..a64fe8c9b 100644 --- a/routes/web.php +++ b/routes/web.php @@ -540,6 +540,7 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact Route::get('p/{username}/{id}.json', 'StatusController@showObject'); Route::get('p/{username}/{id}', 'StatusController@show'); Route::get('{username}/embed', 'ProfileController@embed'); + Route::get('{username}/live', 'LiveStreamController@showProfilePlayer'); Route::get('@{username}@{domain}', 'SiteController@legacyWebfingerRedirect'); Route::get('@{username}', 'SiteController@legacyProfileRedirect'); Route::get('{username}', 'ProfileController@show');