2024-07-10 06:11:42 +00:00
|
|
|
|
"use strict";(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([["/js/portfolio"],{"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioPost.vue?vue&type=script&lang=js":
|
|
|
|
|
/*!**************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioPost.vue?vue&type=script&lang=js ***!
|
|
|
|
|
\**************************************************************************************************************************************************************************************************************/(t,e,o)=>{function s(t){return s="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},s(t)}function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var t,e={},o=Object.prototype,n=o.hasOwnProperty,i=Object.defineProperty||function(t,e,o){t[e]=o.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(t,e,o){return Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,o){return t[e]=o}}function f(t,e,o,s){var r=e&&e.prototype instanceof y?e:y,n=Object.create(r.prototype),a=new T(s||[]);return i(n,"_invoke",{value:L(t,o,a)}),n}function p(t,e,o){try{return{type:"normal",arg:t.call(e,o)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",v="suspendedYield",m="executing",g="completed",b={};function y(){}function _(){}function w(){}var x={};d(x,l,(function(){return this}));var C=Object.getPrototypeOf,P=C&&C(C(I([])));P&&P!==o&&n.call(P,l)&&(x=P);var j=w.prototype=y.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function o(r,i,a,l){var c=p(t[r],t,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==s(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,a,l)}),(function(t){o("throw",t,a,l)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,r){o(t,s,e,r)}))}return r=r?r.then(n,n):n()}})}function L(e,o,s){var r=h;return function(n,i){if(r===m)throw Error("Generator is already running");if(r===g){if("throw"===n)throw i;return{value:t,done:!0}}for(s.method=n,s.arg=i;;){var a=s.delegate;if(a){var l=O(a,s);if(l){if(l===b)continue;return l}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(r===h)throw r=g,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);r=m;var c=p(e,o,s);if("normal"===c.type){if(r=s.done?g:v,c.arg===b)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(r=g,s.method="throw",s.arg=c.arg)}}}function O(e,o){var s=o.method,r=e.iterator[s];if(r===t)return o.delegate=null,"throw"===s&&e.iterator.return&&(o.method="return",o.arg=t,O(e,o),"throw"===o.method)||"return"!==s&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+s+"' method")),b;var n=p(r,e.iterator,o.arg);if("throw"===n.type)return o.method="throw",o.arg=n.arg,o.delegate=null,b;var i=n.arg;return i?i.done?(o[e.resultName]=i.value,o.next=e.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,b):i:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,b)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function I(e){if(e||""===e){var o=e[l];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function o(){for(;++r<e.length;)if(n.call(e,r))return o.value=e[r],o.done=!1,o;return o.value=t,o.done=!0,o};return i.next=i}}throw new TypeError(s(e)+" is not iterable")}return _.prototype=w,i(j,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:_,configurable:!0}),_.displayName=d(w,u,"GeneratorFunction"),e.isGeneratorFunction=f
|
|
|
|
|
/*!*****************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioProfile.vue?vue&type=script&lang=js ***!
|
|
|
|
|
\*****************************************************************************************************************************************************************************************************************/(t,e,o)=>{o.r(e),o.d(e,{default:()=>l});o(/*! @fancyapps/fancybox/dist/jquery.fancybox.js */"./node_modules/@fancyapps/fancybox/dist/jquery.fancybox.js"),o(/*! @fancyapps/fancybox/dist/jquery.fancybox.css */"./node_modules/@fancyapps/fancybox/dist/jquery.fancybox.css");var s=o(/*! jquery */"./node_modules/jquery/dist/jquery.js");function r(t){return r="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},r(t)}function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return e};var t,e={},o=Object.prototype,s=o.hasOwnProperty,i=Object.defineProperty||function(t,e,o){t[e]=o.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(t,e,o){return Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,o){return t[e]=o}}function f(t,e,o,s){var r=e&&e.prototype instanceof y?e:y,n=Object.create(r.prototype),a=new T(s||[]);return i(n,"_invoke",{value:L(t,o,a)}),n}function p(t,e,o){try{return{type:"normal",arg:t.call(e,o)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",v="suspendedYield",m="executing",g="completed",b={};function y(){}function _(){}function w(){}var x={};d(x,l,(function(){return this}));var C=Object.getPrototypeOf,P=C&&C(C(I([])));P&&P!==o&&s.call(P,l)&&(x=P);var j=w.prototype=y.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function o(n,i,a,l){var c=p(t[n],t,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&s.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,a,l)}),(function(t){o("throw",t,a,l)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,l)}))}l(c.arg)}var n;i(this,"_invoke",{value:function(t,s){function r(){return new e((function(e,r){o(t,s,e,r)}))}return n=n?n.then(r,r):r()}})}function L(e,o,s){var r=h;return function(n,i){if(r===m)throw Error("Generator is already running");if(r===g){if("throw"===n)throw i;return{value:t,done:!0}}for(s.method=n,s.arg=i;;){var a=s.delegate;if(a){var l=O(a,s);if(l){if(l===b)continue;return l}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(r===h)throw r=g,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);r=m;var c=p(e,o,s);if("normal"===c.type){if(r=s.done?g:v,c.arg===b)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(r=g,s.method="throw",s.arg=c.arg)}}}function O(e,o){var s=o.method,r=e.iterator[s];if(r===t)return o.delegate=null,"throw"===s&&e.iterator.return&&(o.method="return",o.arg=t,O(e,o),"throw"===o.method)||"return"!==s&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+s+"' method")),b;var n=p(r,e.iterator,o.arg);if("throw"===n.type)return o.method="throw",o.arg=n.arg,o.delegate=null,b;var i=n.arg;return i?i.done?(o[e.resultName]=i.value,o.next=e.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,b):i:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,b)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function I(e){if(e||""===e){var o=e[l];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function o(){for(;++n<
|
|
|
|
|
/*!******************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioSettings.vue?vue&type=script&lang=js ***!
|
|
|
|
|
\******************************************************************************************************************************************************************************************************************/(t,e,o)=>{o.r(e),o.d(e,{default:()=>s});const s={data:function(){return{loading:!0,tabIndex:"Configure",tabs:["Configure","Customize","View Portfolio"],user:void 0,settings:void 0,recentPostsLoaded:!1,rpStart:0,recentPosts:[],recentPostsPage:void 0,selectedRecentPosts:[],isSavingCurated:!1,canSaveCurated:!1,customizeSettings:[],skipWatch:!1,profileSourceOptions:[{value:null,text:"Please select an option",disabled:!0},{value:"recent",text:"Most recent posts"}],profileLayoutOptions:[{value:null,text:"Please select an option",disabled:!0},{value:"grid",text:"Grid"},{value:"masonry",text:"Masonry"},{value:"album",text:"Album"}],profileLayoutColorSchemeOptions:[{value:null,text:"Please select an option",disabled:!0},{value:"light",text:"Light mode"},{value:"dark",text:"Dark mode"},{value:"custom",text:"Custom color scheme",disabled:!0}],profileLayoutFeedOrder:[{value:"oldest",text:"Oldest first"},{value:"recent",text:"Recent first"}]}},computed:{prevClass:function(){return 0===this.rpStart?"fa fa-arrow-circle-left fa-3x text-dark":"fa fa-arrow-circle-left fa-3x text-muted cursor-pointer"},nextClass:function(){return this.rpStart>this.recentPosts.length-9?"fa fa-arrow-circle-right fa-3x text-dark":"fa fa-arrow-circle-right fa-3x text-muted cursor-pointer"}},watch:{settings:{deep:!0,immediate:!0,handler:function(t,e){this.loading||this.skipWatch||(e.show_timestamp||(this.settings.show_link=!1),this.updateSettings())}}},mounted:function(){this.fetchUser()},methods:{fetchUser:function(){var t=this;axios.get("/api/v1/accounts/verify_credentials").then((function(e){t.user=e.data,e.data.statuses_count>0?t.profileSourceOptions=[{value:null,text:"Please select an option",disabled:!0},{value:"recent",text:"Most recent posts"},{value:"custom",text:"Curated posts"}]:setTimeout((function(){t.settings.active=!1,t.settings.profile_source="recent",t.tabIndex="Configure"}),1e3)})),axios.post(this.apiPath("/api/portfolio/self/settings.json")).then((function(e){t.settings=e.data,t.updateTabs(),e.data.metadata&&e.data.metadata.posts&&(t.selectedRecentPosts=e.data.metadata.posts),"dark"!=e.data.color_scheme&&("light"===e.data.color_scheme?t.updateBackgroundColor("#ffffff"):(e.data.hasOwnProperty("background_color")&&t.updateBackgroundColor(e.data.background_color),e.data.hasOwnProperty("text_color")&&t.updateTextColor(e.data.text_color)))})).then((function(){t.initCustomizeSettings()})).then((function(){var e=new URL(window.location);if(e.searchParams.has("tab")){var o=e.searchParams.get("tab");-1!==("custom"===t.settings.profile_source?["curate","customize","share"]:["customize","share"]).indexOf(o)&&t.toggleTab(o.slice(0,1).toUpperCase()+o.slice(1))}})).then((function(){setTimeout((function(){t.loading=!1}),500)}))},apiPath:function(t){return t},toggleTab:function(t){if("Curate"!==t||this.recentPostsLoaded||this.loadRecentPosts(),this.tabIndex=t,this.rpStart=0,"Configure"==t){var e=new URL(window.location);e.searchParams.delete("tab"),window.history.pushState({},"",e)}else{if("View Portfolio"==t)return this.tabIndex="Configure",void(window.location.href="https://".concat(window._portfolio.domain).concat(window._portfolio.path,"/").concat(this.user.username));var o=new URL(window.location);o.searchParams.set("tab",t.toLowerCase()),window.history.pushState({},"",o)}},updateTabs:function(){"custom"===this.settings.profile_source?this.tabs=["Configure","Curate","Customize","View Portfolio"]:this.tabs=["Configure","Customize","View Portfolio"]},updateSettings:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.skipWatch||axios.post(this.apiPath("/api/portfolio/self/update-settings.json"),this.settings).then((function(o){t.updateTabs(),e||t.$bvToast.toast("Your settings have been successfully updated!",{variant:"dark",title:"Settings Updated",autoHideDelay:2e3,appendToast:!1})}))},loadRecentPosts:function()
|
|
|
|
|
/*!*************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioPost.vue?vue&type=template&id=0a982161 ***!
|
|
|
|
|
\*************************************************************************************************************************************************************************************************************************************************************************************************/(t,e,o)=>{o.r(e),o.d(e,{render:()=>s,staticRenderFns:()=>r});var s=function(){var t=this,e=t._self._c;return e("div",[t.loading?e("div",{staticClass:"container"},[e("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"100vh"}},[e("b-spinner")],1)]):e("div",[e("div",{staticClass:"container mb-5"},[e("div",{staticClass:"row mt-3"},[e("div",{staticClass:"col-12 mb-4"},[e("div",{staticClass:"d-flex justify-content-center"},[e("img",{staticClass:"img-fluid mb-4",staticStyle:{"max-height":"80vh","object-fit":"contain"},attrs:{src:t.post.media_attachments[0].url}})])]),t._v(" "),e("div",{staticClass:"col-12 mb-4"},[t.settings.show_captions&&t.post.content_text?e("p",[t._v(t._s(t.post.content_text))]):t._e(),t._v(" "),e("div",{staticClass:"d-md-flex justify-content-between align-items-center"},[e("p",{staticClass:"small"},[t._v("by "),e("a",{staticClass:"font-weight-bold link-color",attrs:{href:t.profileUrl()}},[t._v("@"+t._s(t.profile.username))])]),t._v(" "),t.settings.show_license&&t.post.media_attachments[0].license?e("p",{staticClass:"small"},[t._v("Licensed under "+t._s(t.post.media_attachments[0].license.title))]):t._e(),t._v(" "),t.settings.show_location&&t.post.place?e("p",{staticClass:"small text-muted"},[t._v(t._s(t.post.place.name)+", "+t._s(t.post.place.country))]):t._e(),t._v(" "),t.settings.show_timestamp?e("p",{staticClass:"small"},[t.settings.show_link?e("a",{staticClass:"font-weight-bold link-color",staticStyle:{"z-index":"2"},attrs:{href:t.post.url}},[t._v("\n "+t._s(t.formatDate(t.post.created_at))+"\n ")]):e("span",{staticClass:"user-select-none"},[t._v("\n "+t._s(t.formatDate(t.post.created_at))+"\n ")])]):t._e()])])])]),t._v(" "),e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"d-flex fixed-bottom p-3 justify-content-between align-items-center"},[t.user?e("a",{staticClass:"logo-mark logo-mark-sm mb-0 p-1",attrs:{href:"/"}},[e("span",{staticClass:"text-gradient-primary"},[t._v("portfolio")])]):e("span",{staticClass:"logo-mark logo-mark-sm mb-0 p-1"},[e("span",{staticClass:"text-gradient-primary"},[t._v("portfolio")])]),t._v(" "),t.user&&t.user.id===t.profile.id?e("p",{staticClass:"text-center mb-0"},[e("a",{staticClass:"text-muted",attrs:{href:t.settingsUrl}},[e("i",{staticClass:"far fa-cog fa-lg"})])]):t._e()])])])])])])},r=[];s._withStripped=!0},"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioProfile.vue?vue&type=template&id=4bd60610":
|
|
|
|
|
/*!****************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioProfile.vue?vue&type=template&id=4bd60610 ***!
|
|
|
|
|
\****************************************************************************************************************************************************************************************************************************************************************************************************/(t,e,o)=>{o.r(e),o.d(e,{render:()=>s,staticRenderFns:()=>r});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"w-100 h-100"},[t.loading?e("div",{staticClass:"container"},[e("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"100vh"}},[e("b-spinner")],1)]):e("div",{staticClass:"container"},[e("div",{staticClass:"row py-5"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"d-flex align-items-center flex-column"},[t.settings.show_avatar?e("img",{staticClass:"rounded-circle shadow",attrs:{src:t.profile.avatar,width:"60",height:"60",onerror:"this.src='/storage/avatars/default.png?v=0';this.onerror=null;"}}):t._e(),t._v(" "),e("div",{staticClass:"py-3 text-center",staticStyle:{"max-width":"60%"}},[e("h1",{staticClass:"font-weight-bold"},[t._v(t._s(t.profile.username))]),t._v(" "),t.settings.show_bio?e("p",{staticClass:"font-weight-light mb-0 text-break"},[t._v(t._s(t.profile.note_text))]):t._e()]),t._v(" "),t.settings.show_profile_button||t.settings.rss_enabled&&t.settings.show_rss_button?e("div",{staticClass:"pb-3 text-center d-flex flex-column flex-sm-row",staticStyle:{"max-width":"60%",gap:"1rem"}},[t.settings.show_profile_button?e("a",{staticClass:"btn btn-outline-primary btn-custom-color",attrs:{href:t.profile.url,target:"_blank"}},[t._v("\n \t\tView Profile\n \t")]):t._e(),t._v(" "),t.settings.rss_enabled&&t.settings.show_rss_button?e("a",{staticClass:"btn btn-outline-primary btn-custom-color",attrs:{href:t.settings.rss_feed_url,target:"_blank"}},[e("i",{staticClass:"far fa-rss"}),t._v(" RSS\n \t")]):t._e()]):t._e()])])]),t._v(" "),e("div",{staticClass:"container mb-5 pb-5"},[e("div",{class:["masonry"===t.settings.profile_layout?"card-columns":"row"],attrs:{id:"portContainer"}},["grid"===t.settings.profile_layout?t._l(t.feed,(function(o,s){return e("div",{staticClass:"col-12 col-md-4 mb-1 p-1"},[e("div",{staticClass:"square"},[e("a",{attrs:{href:t.postUrl(o)}},[e("div",{staticClass:"lazy-img"},[e("blur-hash-canvas",{staticClass:"square-content pr-1",attrs:{width:"32",height:"32",hash:o.media_attachments[0].blurhash}}),t._v(" "),e("img",{staticClass:"square-content pr-1 img-placeholder",staticStyle:{overflow:"hidden","object-fit":"cover","z-index":"-1"},attrs:{src:"","data-src":o.media_attachments[0].url,width:"100%",height:"300",loading:"lazy"}})],1)])])])})):"album"===t.settings.profile_layout?e("div",{staticClass:"col-12 mb-1 p-1"},[e("div",{staticClass:"d-flex justify-content-center"},[e("p",{staticClass:"text-color font-weight-bold"},[t._v(t._s(t.albumIndex+1)+" "),e("span",{staticClass:"font-weight-light"},[t._v("/")]),t._v(" "+t._s(t.feed.length))])]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center"},[0===t.albumIndex?e("span",[e("i",{staticClass:"fa fa-arrow-circle-left fa-3x text-color-lighter"})]):e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.albumPrev()}}},[e("i",{staticClass:"fa fa-arrow-circle-left fa-3x text-color"})]),t._v(" "),e("transition",{attrs:{name:"slide-fade"}},[e("a",{key:t.albumIndex,staticClass:"mx-4",attrs:{href:t.postUrl(t.feed[t.albumIndex])}},[e("img",{staticClass:"user-select-none",staticStyle:{height:"60vh",overflow:"hidden","object-fit":"contain"},attrs:{src:t.feed[t.albumIndex].media_attachments[0].url,width:"100%",draggable:!1}})])]),t._v(" "),t.albumIndex===t.feed.length-1?e("span",[e("i",{staticClass:"fa fa-arrow-circle-right fa-3x text-color-lighter"})]):e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.albumNext()}}},[e("i",{staticClass:"fa fa-arrow-circle-right fa-3x text-color"})])],1)]):"masonry"===t.settings.profile_layout?e("div",{staticClass:"col-12 p-0 m-0"},t._l(t.f
|
|
|
|
|
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioSettings.vue?vue&type=template&id=42118ee4 ***!
|
|
|
|
|
\*****************************************************************************************************************************************************************************************************************************************************************************************************/(t,e,o)=>{o.r(e),o.d(e,{render:()=>s,staticRenderFns:()=>r});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"portfolio-settings px-3"},[t.loading?e("div",{staticClass:"d-flex justify-content-center align-items-center py-5"},[e("b-spinner",{attrs:{variant:"primary"}})],1):e("div",{staticClass:"row justify-content-center mb-5 pb-5"},[e("div",{staticClass:"col-12 col-md-8 bg-dark py-2 rounded"},[e("ul",{staticClass:"nav nav-pills nav-fill"},t._l(t.tabs,(function(o,s){return e("li",{staticClass:"nav-item",class:{disabled:0!==s&&!t.settings.active}},[0===s||t.settings.active?e("a",{staticClass:"nav-link",class:{active:o===t.tabIndex},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleTab(o)}}},[t._v(t._s(o))]):e("span",{staticClass:"nav-link"},[t._v(t._s(o))])])})),0)]),t._v(" "),e("transition",{attrs:{name:"slide-fade"}},["Configure"===t.tabIndex?e("div",{key:"0",staticClass:"col-12 col-md-8 bg-dark mt-3 py-2 rounded"},[t.user.statuses_count?t._e():e("div",{staticClass:"alert alert-danger"},[e("p",{staticClass:"mb-0 small font-weight-bold"},[t._v("You don't have any public posts, once you share public posts you can enable your portfolio.")])]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center py-2"},[e("div",{staticClass:"setting-label"},[e("p",{staticClass:"lead mb-0"},[t._v("Portfolio Enabled")]),t._v(" "),e("p",{staticClass:"small mb-0 text-muted"},[t._v("You must enable your portfolio before you or anyone can view it.")])]),t._v(" "),e("div",{staticClass:"setting-switch mt-n1"},[e("b-form-checkbox",{attrs:{name:"check-button",size:"lg",switch:"",disabled:!t.user.statuses_count},model:{value:t.settings.active,callback:function(e){t.$set(t.settings,"active",e)},expression:"settings.active"}})],1)]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center py-2"},[e("div",{staticClass:"setting-label",staticStyle:{"max-width":"50%"}},[e("p",{staticClass:"mb-0"},[t._v("Portfolio Source")]),t._v(" "),e("p",{staticClass:"small mb-0 text-muted"},[t._v("Choose how you want to populate your portfolio, select Most Recent posts to automatically update your portfolio with recent posts or Curated Posts to select specific posts for your portfolio.")])]),t._v(" "),e("div",{staticClass:"ml-3"},[e("b-form-select",{attrs:{options:t.profileSourceOptions,disabled:!t.user.statuses_count},model:{value:t.settings.profile_source,callback:function(e){t.$set(t.settings,"profile_source",e)},expression:"settings.profile_source"}})],1)])]):"Curate"===t.tabIndex?e("div",{key:"1",staticClass:"col-12 col-md-8 mt-3 py-2 px-0"},[t.recentPostsLoaded?[e("div",{staticClass:"mt-n2 mb-4"},[e("p",{staticClass:"text-muted small"},[t._v("Select up to 100 photos from your 100 most recent posts. You can only select public photo posts, videos are not supported at this time.")]),t._v(" "),e("div",{staticClass:"d-flex align-items-center justify-content-between"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Selected "+t._s(t.selectedRecentPosts.length)+"/100")]),t._v(" "),e("div",[e("button",{staticClass:"btn btn-link font-weight-bold mr-3 text-decoration-none",attrs:{disabled:!t.selectedRecentPosts.length},on:{click:t.clearSelected}},[t._v("\n Clear selected\n ")]),t._v(" "),e("button",{staticClass:"btn btn-primary py-0 font-weight-bold",staticStyle:{width:"150px"},attrs:{disabled:!t.canSaveCurated},on:{click:function(e){return t.saveCurated()}}},[t.isSavingCurated?e("b-spinner",{attrs:{small:""}}):[t._v("Save")]],2)])])]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",{on:{click:t.recentPostsPrev}},[e("i",{class:t.prevClass})]),t._v(
|
|
|
|
|
/*!******************************************!*\
|
|
|
|
|
!*** ./resources/assets/js/portfolio.js ***!
|
|
|
|
|
\******************************************/(t,e,o)=>{o.r(e);var s=o(/*! vue */"./node_modules/vue/dist/vue.esm.js"),r=o(/*! bootstrap-vue */"./node_modules/bootstrap-vue/esm/index.js"),n=o(/*! vue-blurhash */"./node_modules/vue-blurhash/dist/vue-blurhash.common.js"),i=o.n(n);o(/*! vue-blurhash/dist/vue-blurhash.css */"./node_modules/vue-blurhash/dist/vue-blurhash.css");window.Vue=s.default,s.default.use(r.default),s.default.use(i()),s.default.component("portfolio-post",o(/*! ./components/PortfolioPost.vue */"./resources/assets/js/components/PortfolioPost.vue").default),s.default.component("portfolio-profile",o(/*! ./components/PortfolioProfile.vue */"./resources/assets/js/components/PortfolioProfile.vue").default),s.default.component("portfolio-settings",o(/*! ./components/PortfolioSettings.vue */"./resources/assets/js/components/PortfolioSettings.vue").default)},"./resources/assets/js/components/PortfolioPost.vue":
|
|
|
|
|
/*!**********************************************************!*\
|
|
|
|
|
!*** ./resources/assets/js/components/PortfolioPost.vue ***!
|
|
|
|
|
\**********************************************************/(t,e,o)=>{o.r(e),o.d(e,{default:()=>a});var s=o(/*! ./PortfolioPost.vue?vue&type=template&id=0a982161 */"./resources/assets/js/components/PortfolioPost.vue?vue&type=template&id=0a982161"),r=o(/*! ./PortfolioPost.vue?vue&type=script&lang=js */"./resources/assets/js/components/PortfolioPost.vue?vue&type=script&lang=js"),n={};for(const t in r)"default"!==t&&(n[t]=()=>r[t]);o.d(e,n);var i=(0,o(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */"./node_modules/vue-loader/lib/runtime/componentNormalizer.js").default)(r.default,s.render,s.staticRenderFns,!1,null,null,null);i.options.__file="resources/assets/js/components/PortfolioPost.vue";const a=i.exports},"./resources/assets/js/components/PortfolioProfile.vue":
|
|
|
|
|
/*!*************************************************************!*\
|
|
|
|
|
!*** ./resources/assets/js/components/PortfolioProfile.vue ***!
|
|
|
|
|
\*************************************************************/(t,e,o)=>{o.r(e),o.d(e,{default:()=>a});var s=o(/*! ./PortfolioProfile.vue?vue&type=template&id=4bd60610 */"./resources/assets/js/components/PortfolioProfile.vue?vue&type=template&id=4bd60610"),r=o(/*! ./PortfolioProfile.vue?vue&type=script&lang=js */"./resources/assets/js/components/PortfolioProfile.vue?vue&type=script&lang=js"),n={};for(const t in r)"default"!==t&&(n[t]=()=>r[t]);o.d(e,n);var i=(0,o(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */"./node_modules/vue-loader/lib/runtime/componentNormalizer.js").default)(r.default,s.render,s.staticRenderFns,!1,null,null,null);i.options.__file="resources/assets/js/components/PortfolioProfile.vue";const a=i.exports},"./resources/assets/js/components/PortfolioSettings.vue":
|
|
|
|
|
/*!**************************************************************!*\
|
|
|
|
|
!*** ./resources/assets/js/components/PortfolioSettings.vue ***!
|
|
|
|
|
\**************************************************************/(t,e,o)=>{o.r(e),o.d(e,{default:()=>a});var s=o(/*! ./PortfolioSettings.vue?vue&type=template&id=42118ee4 */"./resources/assets/js/components/PortfolioSettings.vue?vue&type=template&id=42118ee4"),r=o(/*! ./PortfolioSettings.vue?vue&type=script&lang=js */"./resources/assets/js/components/PortfolioSettings.vue?vue&type=script&lang=js"),n={};for(const t in r)"default"!==t&&(n[t]=()=>r[t]);o.d(e,n);var i=(0,o(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */"./node_modules/vue-loader/lib/runtime/componentNormalizer.js").default)(r.default,s.render,s.staticRenderFns,!1,null,null,null);i.options.__file="resources/assets/js/components/PortfolioSettings.vue";const a=i.exports},"./resources/assets/js/components/PortfolioPost.vue?vue&type=script&lang=js":
|
|
|
|
|
/*!**********************************************************************************!*\
|
|
|
|
|
!*** ./resources/assets/js/components/PortfolioPost.vue?vue&type=script&lang=js ***!
|
|
|
|
|
\**********************************************************************************/(t,e,o)=>{o.r(e),o.d(e,{default:()=>n});var s=o(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PortfolioPost.vue?vue&type=script&lang=js */"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioPost.vue?vue&type=script&lang=js"),r={};for(const t in s)"default"!==t&&(r[t]=()=>s[t]);o.d(e,r);const n=s.default},"./resources/assets/js/components/PortfolioProfile.vue?vue&type=script&lang=js":
|
|
|
|
|
/*!*************************************************************************************!*\
|
|
|
|
|
!*** ./resources/assets/js/components/PortfolioProfile.vue?vue&type=script&lang=js ***!
|
|
|
|
|
\*************************************************************************************/(t,e,o)=>{o.r(e),o.d(e,{default:()=>n});var s=o(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PortfolioProfile.vue?vue&type=script&lang=js */"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioProfile.vue?vue&type=script&lang=js"),r={};for(const t in s)"default"!==t&&(r[t]=()=>s[t]);o.d(e,r);const n=s.default},"./resources/assets/js/components/PortfolioSettings.vue?vue&type=script&lang=js":
|
|
|
|
|
/*!**************************************************************************************!*\
|
|
|
|
|
!*** ./resources/assets/js/components/PortfolioSettings.vue?vue&type=script&lang=js ***!
|
|
|
|
|
\**************************************************************************************/(t,e,o)=>{o.r(e),o.d(e,{default:()=>n});var s=o(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PortfolioSettings.vue?vue&type=script&lang=js */"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioSettings.vue?vue&type=script&lang=js"),r={};for(const t in s)"default"!==t&&(r[t]=()=>s[t]);o.d(e,r);const n=s.default},"./resources/assets/js/components/PortfolioPost.vue?vue&type=template&id=0a982161":
|
|
|
|
|
/*!****************************************************************************************!*\
|
|
|
|
|
!*** ./resources/assets/js/components/PortfolioPost.vue?vue&type=template&id=0a982161 ***!
|
|
|
|
|
\****************************************************************************************/(t,e,o)=>{o.r(e);var s=o(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PortfolioPost.vue?vue&type=template&id=0a982161 */"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioPost.vue?vue&type=template&id=0a982161"),r={};for(const t in s)"default"!==t&&(r[t]=()=>s[t]);o.d(e,r)},"./resources/assets/js/components/PortfolioProfile.vue?vue&type=template&id=4bd60610":
|
|
|
|
|
/*!*******************************************************************************************!*\
|
|
|
|
|
!*** ./resources/assets/js/components/PortfolioProfile.vue?vue&type=template&id=4bd60610 ***!
|
|
|
|
|
\*******************************************************************************************/(t,e,o)=>{o.r(e);var s=o(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PortfolioProfile.vue?vue&type=template&id=4bd60610 */"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioProfile.vue?vue&type=template&id=4bd60610"),r={};for(const t in s)"default"!==t&&(r[t]=()=>s[t]);o.d(e,r)},"./resources/assets/js/components/PortfolioSettings.vue?vue&type=template&id=42118ee4":
|
|
|
|
|
/*!********************************************************************************************!*\
|
|
|
|
|
!*** ./resources/assets/js/components/PortfolioSettings.vue?vue&type=template&id=42118ee4 ***!
|
|
|
|
|
\********************************************************************************************/(t,e,o)=>{o.r(e);var s=o(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PortfolioSettings.vue?vue&type=template&id=42118ee4 */"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/PortfolioSettings.vue?vue&type=template&id=42118ee4"),r={};for(const t in s)"default"!==t&&(r[t]=()=>s[t]);o.d(e,r)}},t=>{t.O(0,["/js/vendor"],(()=>{return e="./resources/assets/js/portfolio.js",t(t.s=e);var e}));t.O()}]);
|