(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{17:function(t,e,n){t.exports=n("ntcu")},"356t":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.dims[data-v-1cd970d6] {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\tbackground: rgba(0,0,0,.68);\n\tz-index: 300;\n}\n",""])},"9oUW":function(t,e,n){"use strict";vari=n("RdSV");n.n(i).a},"9tPo":function(t,e){t.exports=function(t){vare="undefined"!=typeofwindow&&window.location;if(!e)thrownewError("fixUrls requires window.location");if(!t||"string"!=typeoft)returnt;varn=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");returnt.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){varo,r=e.trim().replace(/^"(.*)"$/,function(t,e){returne}).replace(/^'(.*)'$/,function(t,e){returne});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?t:(o=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:i+r.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},BzCV:function(t,e,n){"use strict";n.r(e);vari=n("la7V");Vue.use(i.a);varo={props:["collection-id","collection-title","collection-description","collection-visibility","profile-id","profile-username"],data:function(){return{loaded:!1,posts:[],currentUser:!1,owner:!1,title:this.collectionTitle,description:this.collectionDescription,visibility:this.collectionVisibility,photoId:""}},beforeMount:function(){this.fetchCurrentUser(),this.fetchItems()},mounted:function(){},methods:{fetchCurrentUser:function(){vart=this;1==document.querySelectorAll("body")[0].classList.contains("loggedIn")&&axios.get("/api/v1/accounts/verify_credentials").then(function(e){t.currentUser=e.data,t.owner=t.currentUser.id==t.profileId})},fetchItems:function(){vart=this;axios.get("/api/local/collection/items/"+this.collectionId).then(function(e){t.posts=e.data,t.loaded=!0})},previewUrl:function(t){returnt.sensitive?"/storage/no-preview.png?v="+(newDate).getTime():t.media_attachments[0].preview_url},previewBackground:function(t){return"background-image: url("+this.previewUrl(t)+");"},addToCollection:function(){this.$refs.addPhotoModal.show()},pushId:function(){vart=this;if(this.posts.length>=18)swal("Error","You can only add 18 posts per collection","error");else{vare=this.photoId,n=window.location.origin,i=e.split("/");e.slice(0,n.length)!==n&&(swal("Invalid URL","You can only add posts from this instance","error"),this.photoId=""),e.slice(0,n.length+3)===n+"/p/"&&6===i.length||(swal("Invalid URL","Invalid URL","error"),this.photoId=""),axios.post("/api/local/collection/item",{collection_id:this.collectionId,post_id:i[5]}).then(function(t){location.reload()}).catch(function(e){swal("Invalid URL","The post you entered was invalid","error"),t.photoId=""})}},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="/"}))},updateCollection:function(){this.$refs.editModal.hide(),axios.post("/api/local/collection/"+this.collectionId,{title:this.title,description:this.description,visibility:this.visibility}).then(function(t){console.log(t.data)})}}},r=(n("9oUW"),n("KHd+")),s=Object(r.a)(o,function(){vart=this,e=t.$createElement,n=t._self._c||e;returnn("div",{staticClass:"w-100 h-100"},[t.loaded?t._e():n("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[n("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]),t._v(" "),t.loaded?n("div",{staticClass:"row mt-3"},[n("div",{staticClass:"col-12 p-0 mb-3"},[n("picture",{staticClass:"d-flex align-items-center justify-content-center"},[n("div",{staticClass:"dims"}),t._v(" "),n("div",{staticClass:"text-white",staticStyle:{"z-index":"500",position:"absolute"}},[n("p",{staticClass:"display-4 text-center pt-3"},[t._v(t._s(t.title||"Untitled Collection"))]),t._v(" "),n("p",{staticClass:"lead text-center mb-3"},[t._v(t._s(t.description))]),t._v(" "),n("p",{staticClass:"text-center"},[t._