(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["/js/memoryprofile"],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/MemoryProfile.vue?vue&type=script&lang=js&": /*!*******************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/MemoryProfile.vue?vue&type=script&lang=js& ***! \*******************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var vue_masonry_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-masonry-css */ "./node_modules/vue-masonry-css/dist/vue-masonry.es2015.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { 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 _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ __webpack_exports__["default"] = ({ props: ['profile-id', 'profile-layout', 'profile-settings', 'profile-username'], data: function data() { return { ids: [], profile: {}, user: false, timeline: [], timelinePage: 1, min_id: 0, max_id: 0, loading: true, owner: false, layout: this.profileLayout, mode: 'grid', modes: ['grid', 'collections', 'bookmarks'], modalStatus: false, relationship: {}, followers: [], followerCursor: 1, followerMore: true, following: [], followingCursor: 1, followingMore: true, warning: false, sponsorList: [], bookmarks: [], bookmarksPage: 2, collections: [], collectionsPage: 2, isMobile: false, ctxEmbedPayload: null, copiedEmbed: false, hasStory: null, followingModalSearch: null, followingModalSearchCache: null, followingModalTab: 'following', bookmarksLoading: true, page: 'home', pages: ['home', 'collections', 'places', 'saved', 'likes', '404'], likesCursor: 1, likesTimeline: [] }; }, beforeMount: function beforeMount() { this.fetchRelationships(); this.fetchProfile(); var u = new URLSearchParams(window.location.search); var forceMetro = localStorage.getItem('pf_metro_ui.exp.forceMetro') == 'true'; if (forceMetro == true || u.has('ui') && u.get('ui') == 'metro' && this.layout != 'metro') { this.layout = 'metro'; } if (u.has('ui') && u.get('ui') == 'moment' && this.layout != 'moment') { Vue.use(vue_masonry_css__WEBPACK_IMPORTED_MODULE_0__["default"]); this.layout = 'moment'; } if (this.layout == 'metro' && u.has('t')) { if (this.modes.indexOf(u.get('t')) != -1) { if (u.get('t') == 'bookmarks') { return; } this.mode = u.get('t'); } } }, mounted: function mounted() { var _this = this; var u = new URLSearchParams(window.location.search); if (u.has('md') && u.get('md') == 'followers') { this.followersModal(); } if (u.has('md') && u.get('md') == 'following') { this.followingModal(); } if (document.querySelectorAll('body')[0].classList.contains('loggedIn') == true) { axios.get('/api/pixelfed/v1/accounts/verify_credentials').then(function (res) { _this.user = res.data; window._sharedData.curUser = res.data; window.App.util.navatar(); if (res.data.id == _this.profileId || _this.relationship.following == true) { axios.get('/api/web/stories/v1/exists/' + _this.profileId).then(function (res) { _this.hasStory = res.data == true; }); } }); } if (window.outerWidth < 576) { $('nav.navbar').hide(); this.isMobile = true; } $('body').css('background', '#d4d4d4'); }, updated: function updated() { $('[data-toggle="tooltip"]').tooltip(); }, methods: { fetchProfile: function fetchProfile() { var _this2 = this; axios.get('/api/pixelfed/v1/accounts/' + this.profileId).then(function (res) { _this2.profile = res.data; }).then(function (res) { _this2.fetchPosts(); }); }, fetchPosts: function fetchPosts() { var _this3 = this; var apiUrl = '/api/pixelfed/v1/accounts/' + this.profileId + '/statuses'; axios.get(apiUrl, { params: { limit: 12, only_media: true, min_id: 1 } }).then(function (res) { var data = res.data.filter(function (status) { return status.media_attachments.length > 0; }); var ids = data.map(function (status) { return status.id; }); _this3.ids = ids; _this3.min_id = Math.max.apply(Math, _toConsumableArray(ids)); _this3.max_id = Math.min.apply(Math, _toConsumableArray(ids)); _this3.modalStatus = _.first(res.data); _this3.timelineCache = data; _this3.timeline = data; _this3.ownerCheck(); if (document.querySelectorAll('body')[0].classList.contains('loggedIn')) { _this3.fetchLikes(); } _this3.loading = false; //this.loadSponsor(); })["catch"](function (err) { swal('Oops, something went wrong', 'Please release the page.', 'error'); }); }, ownerCheck: function ownerCheck() { if ($('body').hasClass('loggedIn') == false) { this.owner = false; return; } this.owner = this.profile.id === this.user.id; }, infiniteTimeline: function infiniteTimeline($state) { var _this4 = this; if (this.loading || this.timeline.length < 9) { $state.complete(); return; } var apiUrl = '/api/pixelfed/v1/accounts/' + this.profileId + '/statuses'; axios.get(apiUrl, { params: { only_media: true, max_id: this.max_id } }).then(function (res) { if (res.data.length && _this4.loading == false) { var data = res.data; var self = _this4; data.forEach(function (d) { if (self.ids.indexOf(d.id) == -1) { self.timeline.push(d); self.ids.push(d.id); } }); var max = Math.min.apply(Math, _toConsumableArray(_this4.ids)); if (max == _this4.max_id) { $state.complete(); return; } _this4.min_id = Math.max.apply(Math, _toConsumableArray(_this4.ids)); _this4.max_id = max; $state.loaded(); _this4.loading = false; } else { $state.complete(); } }); }, previewUrl: function previewUrl(status) { return status.sensitive ? '/storage/no-preview.png?v=' + new Date().getTime() : status.media_attachments[0].preview_url; }, previewBackground: function previewBackground(status) { var preview = this.previewUrl(status); return 'background-image: url(' + preview + ');'; }, switchMode: function switchMode(mode) { var _this5 = this; this.page = _.indexOf(this.pages, mode) ? mode : 'home'; if (this.page == 'saved' && this.bookmarks.length == 0) { axios.get('/api/local/bookmarks').then(function (res) { _this5.bookmarks = res.data; _this5.bookmarksLoading = false; }); } if (this.page == 'collections' && this.collections.length == 0) { axios.get('/api/local/profile/collections/' + this.profileId).then(function (res) { _this5.collections = res.data; }); } }, reportProfile: function reportProfile() { var id = this.profile.id; window.location.href = '/i/report?type=user&id=' + id; }, reportUrl: function reportUrl(status) { var type = status.in_reply_to ? 'comment' : 'post'; var id = status.id; return '/i/report?type=' + type + '&id=' + id; }, commentFocus: function commentFocus(status, $event) { var el = event.target; var card = el.parentElement.parentElement.parentElement; var comments = card.getElementsByClassName('comments')[0]; if (comments.children.length == 0) { comments.classList.add('mb-2'); this.fetchStatusComments(status, card); } var footer = card.querySelectorAll('.card-footer')[0]; var input = card.querySelectorAll('.status-reply-input')[0]; if (footer.classList.contains('d-none') == true) { footer.classList.remove('d-none'); input.focus(); } else { footer.classList.add('d-none'); input.blur(); } }, likeStatus: function likeStatus(status, $event) { if ($('body').hasClass('loggedIn') == false) { return; } axios.post('/i/like', { item: status.id }).then(function (res) { status.favourites_count = res.data.count; if (status.favourited == true) { status.favourited = false; } else { status.favourited = true; } })["catch"](function (err) { swal('Error', 'Something went wrong, please try again later.', 'error'); }); }, shareStatus: function shareStatus(status, $event) { if ($('body').hasClass('loggedIn') == false) { return; } axios.post('/i/share', { item: status.id }).then(function (res) { status.reblogs_count = res.data.count; if (status.reblogged == true) { status.reblogged = false; } else { status.reblogged = true; } })["catch"](function (err) { swal('Error', 'Something went wrong, please try again later.', 'error'); }); }, timestampFormat: function timestampFormat(timestamp) { var ts = new Date(timestamp); return ts.toDateString() + ' ' + ts.toLocaleTimeString(); }, editUrl: function editUrl(status) { return status.url + '/edit'; }, redirect: function redirect(url) { window.location.href = url; return; }, remoteRedirect: function remoteRedirect(url) { window.location.href = window.App.config.site.url + '/i/redirect?url=' + encodeURIComponent(url); return; }, replyUrl: function replyUrl(status) { var username = this.profile.username; var id = status.account.id == this.profile.id ? status.id : status.in_reply_to_id; return '/p/' + username + '/' + id; }, mentionUrl: function mentionUrl(status) { var username = status.account.username; var id = status.id; return '/p/' + username + '/' + id; }, statusOwner: function statusOwner(status) { var sid = status.account.id; var uid = this.profile.id; if (sid == uid) { return true; } else { return false; } }, fetchRelationships: function fetchRelationships() { var _this6 = this; if (document.querySelectorAll('body')[0].classList.contains('loggedIn') == false) { return; } axios.get('/api/pixelfed/v1/accounts/relationships', { params: { 'id[]': this.profileId } }).then(function (res) { if (res.data.length) { _this6.relationship = res.data[0]; if (res.data[0].blocking == true) { _this6.warning = true; } } }); }, muteProfile: function muteProfile() { var _this7 = this; var status = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; if ($('body').hasClass('loggedIn') == false) { return; } var id = this.profileId; axios.post('/i/mute', { type: 'user', item: id }).then(function (res) { _this7.fetchRelationships(); _this7.$refs.visitorContextMenu.hide(); swal('Success', 'You have successfully muted ' + _this7.profile.acct, 'success'); })["catch"](function (err) { swal('Error', 'Something went wrong. Please try again later.', 'error'); }); }, unmuteProfile: function unmuteProfile() { var _this8 = this; var status = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; if ($('body').hasClass('loggedIn') == false) { return; } var id = this.profileId; axios.post('/i/unmute', { type: 'user', item: id }).then(function (res) { _this8.fetchRelationships(); _this8.$refs.visitorContextMenu.hide(); swal('Success', 'You have successfully unmuted ' + _this8.profile.acct, 'success'); })["catch"](function (err) { swal('Error', 'Something went wrong. Please try again later.', 'error'); }); }, blockProfile: function blockProfile() { var _this9 = this; var status = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; if ($('body').hasClass('loggedIn') == false) { return; } var id = this.profileId; axios.post('/i/block', { type: 'user', item: id }).then(function (res) { _this9.warning = true; _this9.fetchRelationships(); _this9.$refs.visitorContextMenu.hide(); swal('Success', 'You have successfully blocked ' + _this9.profile.acct, 'success'); })["catch"](function (err) { swal('Error', 'Something went wrong. Please try again later.', 'error'); }); }, unblockProfile: function unblockProfile() { var _this10 = this; var status = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; if ($('body').hasClass('loggedIn') == false) { return; } var id = this.profileId; axios.post('/i/unblock', { type: 'user', item: id }).then(function (res) { _this10.fetchRelationships(); _this10.$refs.visitorContextMenu.hide(); swal('Success', 'You have successfully unblocked ' + _this10.profile.acct, 'success'); })["catch"](function (err) { swal('Error', 'Something went wrong. Please try again later.', 'error'); }); }, deletePost: function deletePost(status, index) { var _this11 = this; if ($('body').hasClass('loggedIn') == false || status.account.id !== this.profile.id) { return; } axios.post('/i/delete', { type: 'status', item: status.id }).then(function (res) { _this11.timeline.splice(index, 1); swal('Success', 'You have successfully deleted this post', 'success'); })["catch"](function (err) { swal('Error', 'Something went wrong. Please try again later.', 'error'); }); }, followProfile: function followProfile() { var _this12 = this; if ($('body').hasClass('loggedIn') == false) { window.location.href = encodeURI('/login?next=/' + this.profileUsername + '/'); return; } axios.post('/i/follow', { item: this.profileId }).then(function (res) { _this12.$refs.visitorContextMenu.hide(); if (_this12.relationship.following) { _this12.profile.followers_count--; if (_this12.profile.locked == true) { window.location.href = '/'; } } else { _this12.profile.followers_count++; } _this12.relationship.following = !_this12.relationship.following; })["catch"](function (err) { if (err.response.data.message) { swal('Error', err.response.data.message, 'error'); } }); }, followingModal: function followingModal() { var _this13 = this; if ($('body').hasClass('loggedIn') == false) { window.location.href = encodeURI('/login?next=/' + this.profileUsername + '/'); return; } if (this.profileSettings.following.list == false) { return; } if (this.followingCursor > 1) { this.$refs.followingModal.show(); return; } else { axios.get('/api/pixelfed/v1/accounts/' + this.profileId + '/following', { params: { page: this.followingCursor } }).then(function (res) { _this13.following = res.data; _this13.followingModalSearchCache = res.data; _this13.followingCursor++; if (res.data.length < 10) { _this13.followingMore = false; } }); this.$refs.followingModal.show(); return; } }, followersModal: function followersModal() { var _this14 = this; if ($('body').hasClass('loggedIn') == false) { window.location.href = encodeURI('/login?next=/' + this.profileUsername + '/'); return; } if (this.profileSettings.followers.list == false) { return; } if (this.followerCursor > 1) { this.$refs.followerModal.show(); return; } else { axios.get('/api/pixelfed/v1/accounts/' + this.profileId + '/followers', { params: { page: this.followerCursor } }).then(function (res) { var _this14$followers; (_this14$followers = _this14.followers).push.apply(_this14$followers, _toConsumableArray(res.data)); _this14.followerCursor++; if (res.data.length < 10) { _this14.followerMore = false; } }); this.$refs.followerModal.show(); return; } }, followingLoadMore: function followingLoadMore() { var _this15 = this; if ($('body').hasClass('loggedIn') == false) { window.location.href = encodeURI('/login?next=/' + this.profile.username + '/'); return; } axios.get('/api/pixelfed/v1/accounts/' + this.profile.id + '/following', { params: { page: this.followingCursor, fbu: this.followingModalSearch } }).then(function (res) { if (res.data.length > 0) { var _this15$following; (_this15$following = _this15.following).push.apply(_this15$following, _toConsumableArray(res.data)); _this15.followingCursor++; _this15.followingModalSearchCache = _this15.following; } if (res.data.length < 10) { _this15.followingModalSearchCache = _this15.following; _this15.followingMore = false; } }); }, followersLoadMore: function followersLoadMore() { var _this16 = this; if ($('body').hasClass('loggedIn') == false) { return; } axios.get('/api/pixelfed/v1/accounts/' + this.profile.id + '/followers', { params: { page: this.followerCursor } }).then(function (res) { if (res.data.length > 0) { var _this16$followers; (_this16$followers = _this16.followers).push.apply(_this16$followers, _toConsumableArray(res.data)); _this16.followerCursor++; } if (res.data.length < 10) { _this16.followerMore = false; } }); }, visitorMenu: function visitorMenu() { this.$refs.visitorContextMenu.show(); }, followModalAction: function followModalAction(id, index) { var _this17 = this; var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'following'; axios.post('/i/follow', { item: id }).then(function (res) { if (type == 'following') { _this17.following.splice(index, 1); _this17.profile.following_count--; } })["catch"](function (err) { if (err.response.data.message) { swal('Error', err.response.data.message, 'error'); } }); }, momentBackground: function momentBackground() { var c = 'w-100 h-100 mt-n3 '; if (this.profile.header_bg) { c += this.profile.header_bg == 'default' ? 'bg-pixelfed' : 'bg-moment-' + this.profile.header_bg; } else { c += 'bg-pixelfed'; } return c; }, loadSponsor: function loadSponsor() { var _this18 = this; axios.get('/api/local/profile/sponsor/' + this.profileId).then(function (res) { _this18.sponsorList = res.data; }); }, showSponsorModal: function showSponsorModal() { this.$refs.sponsorModal.show(); }, goBack: function goBack() { if (window.history.length > 2) { window.history.back(); return; } else { window.location.href = '/'; return; } }, copyProfileLink: function copyProfileLink() { var url = window.App.config.site.url + '/' + this.profileUsername + '/'; navigator.clipboard.writeText(url); this.$refs.visitorContextMenu.hide(); }, formatCount: function formatCount(count) { return App.util.format.count(count); }, statusUrl: function statusUrl(status) { return status.url; if (status.local == true) { return status.url; } return '/i/web/post/_/' + status.account.id + '/' + status.id; }, profileUrl: function profileUrl(status) { return status.url; if (status.local == true) { return status.account.url; } return '/i/web/profile/_/' + status.account.id; }, showEmbedProfileModal: function showEmbedProfileModal() { this.ctxEmbedPayload = window.App.util.embed.profile(this.profile.url); this.$refs.visitorContextMenu.hide(); this.$refs.embedModal.show(); }, ctxCopyEmbed: function ctxCopyEmbed() { navigator.clipboard.writeText(this.ctxEmbedPayload); this.$refs.embedModal.hide(); this.$refs.visitorContextMenu.hide(); }, storyRedirect: function storyRedirect() { window.location.href = '/stories/' + this.profileUsername; }, followingModalSearchHandler: function followingModalSearchHandler() { var _this19 = this; var self = this; var q = this.followingModalSearch; if (q.length == 0) { this.following = this.followingModalSearchCache; this.followingModalSearch = null; } if (q.length > 0) { var url = '/api/pixelfed/v1/accounts/' + self.profileId + '/following?page=1&fbu=' + q; axios.get(url).then(function (res) { _this19.following = res.data; })["catch"](function (err) { self.following = self.followingModalSearchCache; self.followingModalSearch = null; }); } }, pageUrl: function pageUrl() { var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'home'; switch (page) { case 'home': return this.profile.url; break; case 'collections': return this.profile.url + '?p=collections'; break; case 'places': return this.profile.url + '?p=places'; break; case 'saved': return this.profile.url + '?p=saved'; break; case 'likes': return this.profile.url + '?p=likes'; break; default: return this.profile.url; break; } }, navigateToPage: function navigateToPage() { var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'home'; this.page = page; if (page == 'collections') { this.switchMode('collections'); } if (page == 'likes') { this.switchMode('likes'); } if (page == 'saved') { this.switchMode('saved'); } }, truncate: function truncate(str) { var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 24; return _.truncate(str, { length: len }); }, timeago: function timeago(time) { return window.App.util.format.timeAgo(time); }, fetchLikes: function fetchLikes() { var self = this; var apiUrl = '/api/pixelfed/v1/favourites'; axios.get(apiUrl, { params: { page: this.likesCursor } }).then(function (res) { if (res.data.length) { var data = res.data.filter(function (r) { return r.media_attachments && r.media_attachments.length; }); self.likesTimeline = data; self.likesCursor = 2; } }); }, infiniteLikes: function infiniteLikes($state) { var self = this; var apiUrl = '/api/pixelfed/v1/favourites'; axios.get(apiUrl, { params: { page: this.likesCursor } }).then(function (res) { if (res.data.length) { var data = res.data; data.forEach(function (d) { if (d.media_attachments && d.media_attachments.length) { self.likesTimeline.push(d); } }); self.likesCursor++; $state.loaded(); } else { $state.complete(); } }); } } }); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/PostMenu.vue?vue&type=script&lang=js&": /*!**************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/PostMenu.vue?vue&type=script&lang=js& ***! \**************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ __webpack_exports__["default"] = ({ props: ['feed', 'status', 'profile', 'size', 'modal'], data: function data() { return { activeSession: false }; }, mounted: function mounted() { var el = document.querySelector('body'); this.activeSession = el.classList.contains('loggedIn') ? true : false; }, methods: { reportUrl: function reportUrl(status) { var type = status.in_reply_to ? 'comment' : 'post'; var id = status.id; return '/i/report?type=' + type + '&id=' + id; }, timestampFormat: function timestampFormat(timestamp) { var ts = new Date(timestamp); return ts.toDateString() + ' ' + ts.toLocaleTimeString(); }, editUrl: function editUrl(status) { return status.url + '/edit'; }, redirect: function redirect(url) { window.location.href = url; return; }, replyUrl: function replyUrl(status) { var username = this.profile.username; var id = status.account.id == this.profile.id ? status.id : status.in_reply_to_id; return '/p/' + username + '/' + id; }, mentionUrl: function mentionUrl(status) { var username = status.account.username; var id = status.id; return '/p/' + username + '/' + id; }, statusOwner: function statusOwner(status) { var sid = parseInt(status.account.id); var uid = parseInt(this.profile.id); if (sid == uid) { return true; } else { return false; } }, deletePost: function deletePost() { this.$emit('deletePost'); $('#mt_pid_' + this.status.id).modal('hide'); }, hidePost: function hidePost(status) { status.sensitive = true; $('#mt_pid_' + status.id).modal('hide'); }, moderatePost: function moderatePost(status, action, $event) { var username = status.account.username; switch (action) { case 'autocw': var msg = 'Are you sure you want to enforce CW for ' + username + ' ?'; swal({ title: 'Confirm', text: msg, icon: 'warning', buttons: true, dangerMode: true }); break; case 'suspend': msg = 'Are you sure you want to suspend the account of ' + username + ' ?'; swal({ title: 'Confirm', text: msg, icon: 'warning', buttons: true, dangerMode: true }); break; } }, muteProfile: function muteProfile(status) { if ($('body').hasClass('loggedIn') == false) { return; } axios.post('/i/mute', { type: 'user', item: status.account.id }).then(function (res) { swal('Success', 'You have successfully muted ' + status.account.acct, 'success'); })["catch"](function (err) { swal('Error', 'Something went wrong. Please try again later.', 'error'); }); }, blockProfile: function blockProfile(status) { if ($('body').hasClass('loggedIn') == false) { return; } axios.post('/i/block', { type: 'user', item: status.account.id }).then(function (res) { swal('Success', 'You have successfully blocked ' + status.account.acct, 'success'); })["catch"](function (err) { swal('Error', 'Something went wrong. Please try again later.', 'error'); }); }, statusUrl: function statusUrl(status) { if (status.local == true) { return status.url; } return '/i/web/post/_/' + status.account.id + '/' + status.id; }, profileUrl: function profileUrl(status) { if (status.local == true) { return status.account.url; } return '/i/web/profile/_/' + status.account.id; }, closeModal: function closeModal() { $('#mt_pid_' + this.status.id).modal('hide'); } } }); /***/ }), /***/ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css&": /*!**************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/css-loader??ref--8-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css& ***! \**************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false); // imports // module exports.push([module.i, "\n.o-square[data-v-ebc1967e] {\n\tmax-width: 320px;\n}\n.o-portrait[data-v-ebc1967e] {\n\tmax-width: 320px;\n}\n.o-landscape[data-v-ebc1967e] {\n\tmax-width: 320px;\n}\n.post-icon[data-v-ebc1967e] {\n\tcolor: #fff;\n\tposition:relative;\n\tmargin-top: 10px;\n\tz-index: 9;\n\topacity: 0.6;\n\ttext-shadow: 3px 3px 16px #272634;\n}\n.font-size-16px[data-v-ebc1967e] {\n\tfont-size: 16px;\n}\n.profile-website[data-v-ebc1967e] {\n\tcolor: #003569;\n\ttext-decoration: none;\n\tfont-weight: 600;\n}\n.nav-topbar .nav-link[data-v-ebc1967e] {\n\tcolor: #999;\n}\n.nav-topbar .nav-link .small[data-v-ebc1967e] {\n\tfont-weight: 600;\n}\n.has-story[data-v-ebc1967e] {\n\twidth: 84px;\n\theight: 84px;\n\tborder-radius: 50%;\n\tpadding: 4px;\n\tbackground: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.has-story img[data-v-ebc1967e] {\n\twidth: 76px;\n\theight: 76px;\n\tborder-radius: 50%;\n\tpadding: 6px;\n\tbackground: #fff;\n}\n.has-story-lg[data-v-ebc1967e] {\n\twidth: 159px;\n\theight: 159px;\n\tborder-radius: 50%;\n\tpadding: 4px;\n\tbackground: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.has-story-lg img[data-v-ebc1967e] {\n\twidth: 150px;\n\theight: 150px;\n\tborder-radius: 50%;\n\tpadding: 6px;\n\tbackground:#fff;\n}\n.no-focus[data-v-ebc1967e] {\n\tborder-color: none;\n\toutline: 0;\n\tbox-shadow: none;\n}\n.modal-tab-active[data-v-ebc1967e] {\n\tborder-bottom: 1px solid #08d;\n}\n.bg-primary[data-v-ebc1967e] {\n\tbackground: rgb(91,128,160);\n\tbackground: linear-gradient(180deg, rgba(91,128,160,1) 0%, rgba(62,100,135,1) 100%);\n}\n.bg-dark[data-v-ebc1967e] {\n\tbackground: #191919;\n}\n.font-logo[data-v-ebc1967e] {\n\tfont-family: 'Coming Soon';\n}\n.text-white[data-v-ebc1967e] {\n\tcolor: #999999;\n}\n.navbar[data-v-ebc1967e] {\n\tpadding: 0;\n}\n.nav-card[data-v-ebc1967e] {\n\theight: 53px;\n\tborder-left: 1px solid #4a6c8a;\n\tborder-right: 1px solid #4a6c8a;\n}\n.nav-card[data-v-ebc1967e]::after {\n\theight: 53px;\n\tborder-left: 1px solid #55748f;\n\tborder-right: 1px solid #55748f;\n}\n@media (min-width: 1200px) {\n.container[data-v-ebc1967e] {\n\t\tmax-width: 1030px;\n}\n}\n.btn-primary[data-v-ebc1967e] {\n\tfont-size: 13px;\n\tfont-weight: 500 !important;\n\tbackground: rgb(91,128,160);\n\tbackground: linear-gradient(180deg, rgba(91,128,160,1) 0%, rgba(62,100,135,1) 100%);\n\tborder-color: #456a8b;\n}\n.btn-lighter[data-v-ebc1967e] {\n\tfont-size: 13px;\n\tfont-weight: 500 !important;\n\tbackground: rgb(250,250,250);\n\tbackground: linear-gradient(180deg, rgba(250,250,250,1) 0%, rgba(236,236,236,1) 100%);\n\tborder-color: #cccccc;\n\tcolor: #999999;\n}\n.btn-lighter .lead[data-v-ebc1967e] {\n\tcolor: #272727;\n}\n.img-cover[data-v-ebc1967e] {\n\t-o-object-fit: cover;\n\t object-fit: cover;\n}\n.dropdown-toggle[data-v-ebc1967e]::after {\n\tdisplay:none;\n}\n", ""]); // exports /***/ }), /***/ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css&": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/css-loader??ref--8-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css& ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false); // imports // module exports.push([module.i, "\n.text-lighter[data-v-bb77b854] {\n\tcolor:#B8C2CC !important;\n}\n.modal-body[data-v-bb77b854] {\n\tpadding: 0;\n}\n", ""]); // exports /***/ }), /***/ "./node_modules/css-loader/lib/css-base.js": /*!*************************************************!*\ !*** ./node_modules/css-loader/lib/css-base.js ***! \*************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ // css base code, injected by the css-loader module.exports = function(useSourceMap) { var list = []; // return the list of modules as css string list.toString = function toString() { return this.map(function (item) { var content = cssWithMappingToString(item, useSourceMap); if(item[2]) { return "@media " + item[2] + "{" + content + "}"; } else { return content; } }).join(""); }; // import a list of modules into the list list.i = function(modules, mediaQuery) { if(typeof modules === "string") modules = [[null, modules, ""]]; var alreadyImportedModules = {}; for(var i = 0; i < this.length; i++) { var id = this[i][0]; if(typeof id === "number") alreadyImportedModules[id] = true; } for(i = 0; i < modules.length; i++) { var item = modules[i]; // skip already imported module // this implementation is not 100% perfect for weird media query combinations // when a module is imported multiple times with different media queries. // I hope this will never occur (Hey this way we have smaller bundles) if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { if(mediaQuery && !item[2]) { item[2] = mediaQuery; } else if(mediaQuery) { item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; } list.push(item); } } }; return list; }; function cssWithMappingToString(item, useSourceMap) { var content = item[1] || ''; var cssMapping = item[3]; if (!cssMapping) { return content; } if (useSourceMap && typeof btoa === 'function') { var sourceMapping = toComment(cssMapping); var sourceURLs = cssMapping.sources.map(function (source) { return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */' }); return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); } return [content].join('\n'); } // Adapted from convert-source-map (MIT) function toComment(sourceMap) { // eslint-disable-next-line no-undef var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; return '/*# ' + data + ' */'; } /***/ }), /***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css&": /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/style-loader!./node_modules/css-loader??ref--8-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css& ***! \******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__(/*! !../../../../node_modules/css-loader??ref--8-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--8-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css& */ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css&"); if(typeof content === 'string') content = [[module.i, content, '']]; var transform; var insertInto; var options = {"hmr":true} options.transform = transform options.insertInto = undefined; var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options); if(content.locals) module.exports = content.locals; if(false) {} /***/ }), /***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/style-loader!./node_modules/css-loader??ref--8-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__(/*! !../../../../node_modules/css-loader??ref--8-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--8-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css& */ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css&"); if(typeof content === 'string') content = [[module.i, content, '']]; var transform; var insertInto; var options = {"hmr":true} options.transform = transform options.insertInto = undefined; var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options); if(content.locals) module.exports = content.locals; if(false) {} /***/ }), /***/ "./node_modules/style-loader/lib/addStyles.js": /*!****************************************************!*\ !*** ./node_modules/style-loader/lib/addStyles.js ***! \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var stylesInDom = {}; var memoize = function (fn) { var memo; return function () { if (typeof memo === "undefined") memo = fn.apply(this, arguments); return memo; }; }; var isOldIE = memoize(function () { // Test for IE <= 9 as proposed by Browserhacks // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // Tests for existence of standard globals is to allow style-loader // to operate correctly into non-standard environments // @see https://github.com/webpack-contrib/style-loader/issues/177 return window && document && document.all && !window.atob; }); var getTarget = function (target, parent) { if (parent){ return parent.querySelector(target); } return document.querySelector(target); }; var getElement = (function (fn) { var memo = {}; return function(target, parent) { // If passing function in options, then use it for resolve "head" element. // Useful for Shadow Root style i.e // { // insertInto: function () { return document.querySelector("#foo").shadowRoot } // } if (typeof target === 'function') { return target(); } if (typeof memo[target] === "undefined") { var styleTarget = getTarget.call(this, target, parent); // Special case to return head of iframe instead of iframe itself if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { try { // This will throw an exception if access to iframe is blocked // due to cross-origin restrictions styleTarget = styleTarget.contentDocument.head; } catch(e) { styleTarget = null; } } memo[target] = styleTarget; } return memo[target] }; })(); var singleton = null; var singletonCounter = 0; var stylesInsertedAtTop = []; var fixUrls = __webpack_require__(/*! ./urls */ "./node_modules/style-loader/lib/urls.js"); module.exports = function(list, options) { if (typeof DEBUG !== "undefined" && DEBUG) { if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment"); } options = options || {}; options.attrs = typeof options.attrs === "object" ? options.attrs : {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of