1"use strict";(self.webpackChunkv6_Home=self.webpackChunkv6_Home||[]).push([[7917],{97794:function(t,e,a){a.d(e,{o:function(){return c}});var s=a(70538),i=a(69558),n=a(94689),o=a(12299),r=a(20451),l=(0,r.y2)({columns:(0,r.pi)(o.U5,!1),deck:(0,r.pi)(o.U5,!1),tag:(0,r.pi)(o.N0,"div")},n.CB),c=s.default.extend({name:n.CB,functional:!0,props:l,render:function(t,e){var a=e.props,s=e.data,n=e.children;return t(a.tag,(0,i.b)(s,{class:a.deck?"card-deck":a.columns?"card-columns":"card-group"}),n)}})},84941:function(t,e,a){a.d(e,{Z:function(){return s}});var s=function(){}},83177:function(t,e,a){a.d(e,{Z:function(){return o}});var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"info-thumbs-component"},t._l(t.items,(function(e,s){return a("div",{key:"info-thumb-"+s,staticClass:"thumb-con"},[a("a",{attrs:{href:"#"},on:{click:function(a){return a.stopPropagation(),a.preventDefault(),t.clicked(e)}}},[a("img",{attrs:{src:e.thumb_url,loading:"lazy"}})]),t._v(" "),a("div",{staticClass:"attr"},[a("div",[t._t("l",(function(){return[t._v(t._s(e.product_id))]}),{item:e})],2),t._v(" "),a("div",[t._t("r",null,{item:e})],2)])])})),0)};s._withStripped=!0;var i={props:{items:{type:Array,default:[]}},data(){return{}},methods:{clicked(t){t.url?window.location.href=t.url:this.$emit("clicked",t)}}},n=(0,a(51900).Z)(i,s,[],!1,null,null,null);n.options.__file="resources/js/components/account/InfoThumbs.vue";var o=n.exports},68053:function(t,e,a){a.r(e),a.d(e,{default:function(){return W}});var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"photographer-stats-component"},[a("div",{staticClass:"inner"},[a("div",{staticClass:"container"},[a("div",{staticClass:"boxes"},[a("div",{staticClass:"box box__earnings",class:{active:t.showSalesContextMenu}},[a("div",{staticClass:"overlay-menu"},[a("div",{staticClass:"title-con"},[a("div",{staticClass:"title"},[t._v("Total Earnings")]),t._v(" "),a("a",{staticClass:"closeBtn",attrs:{href:"#"},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.toggleSalesContextMenu()}}},[a("b-icon",{attrs:{icon:"x"}})],1)]),t._v(" "),t._m(0)]),t._v(" "),a("div",{staticClass:"title-con"},[a("div",{staticClass:"title"},[t._v("Total Earnings")]),t._v(" "),a("b-icon",{attrs:{icon:"list"},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.toggleSalesContextMenu()}}})],1),t._v(" "),a("div",{staticClass:"num"},[t._v(t._s(t.displayNumbers.earnings_total)+"Â ")]),t._v(" "),a("div",{ref:"earningsChart",staticClass:"chart"})]),t._v(" "),a("PhotographerBalance",{attrs:{balance:t.balance,has_accounting_complete:t.has_accounting_complete,pending_payment_amt:t.pending_payment_amt,is_last_payment_failed:t.is_last_payment_failed,payment_history:t.payment_history}}),t._v(" "),a("div",{staticClass:"box box__portfolio",class:{active:t.showPortfolioContextMenu}},[a("div",{staticClass:"overlay-menu"},[a("div",{staticClass:"title-con"},[a("div",{staticClass:"title"},[t._v("Portfolio")]),t._v(" "),a("a",{staticClass:"closeBtn",attrs:{href:"#"},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.togglePortfolioContextMenu()}}},[a("b-icon",{attrs:{icon:"x"}})],1)]),t._v(" "),t._m(1)]),t._v(" "),a("div",{staticClass:"title-con"},[a("div",{staticClass:"title"},[t._v("Portfolio")]),t._v(" "),a("b-icon",{attrs:{icon:"list"},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.togglePortfolioContextMenu()}}})],1),t._v(" "),a("div",{staticClass:"num"},[t._v(t._s(t.displayNumbers.contributions_total)+"Â ")]),t._v(" "),a("div",{ref:"portfolioChart",staticClass:"chart"})])],1),t._v(" "),t.top_sellers.length?a("div",{staticClass:"best-sellers-wrap"},[a("div",{staticClass:"title"},[t._v("BEST SELLERS")]),t._v(" "),a("ProductMobileCarouselDesktopGallery",{attrs:{products:t.top_sellers}}),t._v(" "),a("hr")],1):t._e(),t._v(" "),a("div",{staticClass:"achi-wrap"},[a("Achievement",{attrs:{achievements:t.achievements}})],1),t._v(" "),a("hr"),t._v(" "),a("div",{staticClass:"title mt-4"},[t._v("KNOWLEDGE BASE")])]),t._v(" "),a("div",{staticClass:"faq-wrap"},[a("PhotographerKnowledgeBase",{attrs:{videos:t.faq_videos,faqs:t.faqs}})],1)])])};s._withStripped=!0;var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"photographer-knowledge-base-component"},[a("div",{staticClass:"mb-2"},[a("squarethumbs",{attrs:{items:t.videos,youtube:!0,class_name:"faq-video"}})],1),t._v(" "),a("div",{staticClass:"mb-2"},[a("squarethumbs",{attrs:{items:t.faqs}})],1)])};i._withStripped=!0;var n=a(49193),o=a(97794),r={components:{BCard:n._,BCardGroup:o.o},props:{faqs:{type:Array,default(){return[]}},videos:{type:Array,default(){return[]}}},data(){return{}},methods:{cardClick(t){window.open(t.url,"_blank")}}},l=a(51900),c=(0,l.Z)(r,i,[],!1,null,null,null);
1c.options.__file="resources/js/components/account/PhotographerKnowledgeBase.vue";var u=c.exports,d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-m-carousel-d-gallery-component"},[a("div",{ref:t.id,staticClass:"track"},t._l(t.filteredProducts,(function(e){return a("div",{key:e.id,staticClass:"con",attrs:{role:"button",tabindex:"0","aria-label":e.headline||"View product"},on:{click:function(a){return a.stopPropagation(),a.preventDefault(),t.c(e)},keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.c(e)}}},[a("img",{attrs:{src:t.getAssetable(e,"image-thumb-x-300","url"),alt:e.headline||""}})])})),0)])};d._withStripped=!0;var h={mixins:[{methods:{getAssetable:a(17470).Q}}],props:{id:{type:String,default:"track1"},products:{type:Array,default(){return[]}}},data(){return{currentBreakpoint:null}},mounted(){this.checkBreakpoint(),window.addEventListener("resize",this.onWindowResize)},beforeUnmount(){window.removeEventListener("resize",this.onWindowResize)},computed:{filteredProducts(){return"xs"===this.currentBreakpoint||"sm"===this.currentBreakpoint?this.products:"md"===this.currentBreakpoint?this.products.slice(0,6):"lg"===this.currentBreakpoint?this.products.slice(0,8):"xl"===this.currentBreakpoint?this.products.slice(0,9):(this.currentBreakpoint,this.products.slice(0,10))}},methods:{c(t){this.$emit("clicked",t)},getBootstrapBreakpoint(){const t=window.innerWidth;return t<576?"xs":t<768?"sm":t<992?"md":t<1200?"lg":t<1394?"xl":"xxl"},checkBreakpoint(){const t=this.getBootstrapBreakpoint();t!==this.currentBreakpoint&&(this.currentBreakpoint=t)},onWindowResize(){this.checkBreakpoint()}}},m=(0,l.Z)(h,d,[],!1,null,null,null);m.options.__file="resources/js/components/front/ProductMobileCarouselDesktopGallery.vue";var _=m.exports,v=a(60985),p=a(80766),f=a(26034),g=a(43022),C=a(58887),b=a(51015),y=a(39218),w=a(83177),k=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"box box__balance"},[a("div",{staticClass:"title"},[t._v("BALANCE")]),t._v(" "),t.showPendingPayment?a("a",{staticClass:"alert-badge s",attrs:{href:"#"},on:{click:function(e){t.showPaymentModal=!0}}},[a("b-icon",{attrs:{variant:"success",icon:"cash-stack"}})],1):t._e(),t._v(" "),t.showGeneric?a("a",{staticClass:"alert-icon i",attrs:{href:"#"},on:{click:function(e){t.showGenericModal=!0}}},[a("b-icon",{attrs:{icon:"info"}})],1):t._e(),t._v(" "),t.showFailedAccounting?a("a",{staticClass:"alert-icon f",attrs:{href:"#"},on:{click:function(e){t.showFailedAcctngModal=!0}}},[a("b-icon",{attrs:{icon:"exclamation-triangle"}})],1):t._e(),t._v(" "),t.showFailedPayment?a("a",{staticClass:"alert-icon f",attrs:{href:"#"},on:{click:function(e){t.showFailedPaymentModal=!0}}},[a("b-icon",{attrs:{icon:"exclamation-triangle"}})],1):t._e(),t._v(" "),a("div",{ref:"theGuage",staticClass:"guage-con"},[t.ready?a("ChartCircle",{key:t.resizeCounter,attrs:{value:t.balance,max:50,color:t.colorGuageChart}}):t._e()],1),t._v(" "),a("b-modal",{attrs:{title:"Balance","ok-only":""},model:{value:t.showGenericModal,callback:function(e){t.showGenericModal=e},expression:"showGenericModal"}},[a("p",[t._v("Payments go out on the 25th of the month when your balance reaches $50.")])]),t._v(" "),a("b-modal",{attrs:{title:"You Are Eligible for a Payout","ok-only":""},model:{value:t.showPaymentModal,callback:function(e){t.showPaymentModal=e},expression:"showPaymentModal"}},[a("p",[t._v("A payment for $"+t._s(t.pending_payment_amt)+" will go out on the 25th of the month.")])]),t._v(" "),a("b-modal",{attrs:{title:"Missing Payment Information","ok-only":""},model:{value:t.showFailedAcctngModal,callback:function(e){t.showFailedAcctngModal=e},expression:"showFailedAcctngModal"}},[a("p",[t._v("In order to get paid you must complete the following:")]),t._v(" "),a("p",[t._v("1. Payment information")]),t._v(" "),a("div",[a("a",{staticClass:"c-btn c-btn-black",attrs:{href:"/account/settings/payments"}},[t._v("Edit Payment Info")])]),t._v(" "),a("p",{staticClass:"mt-4"},[t._v("2. Tax documentation")]),t._v(" "),a("div",[a("a",{staticClass:"c-btn c-btn-black",attrs:{href:"/account/settings/tax"}},[t._v("Edit Tax Documents")])])]),t._v(" "),a("b-modal",{attrs:{title:"Failed Payment","ok-only":""},model:{value:t.showFailedPaymentModal,callback:function(e){t.showFailedPaymentModal=e},expression:"showFailedPaymentModal"}},[a("p",[t._v("There was an issue processing your last payment.")]),t._v(" "),a("p",[a("strong",[t._v("Please double check:")]
1)]),t._v(" "),a("p",[t._v("1. Payment information (PayPal or Payoneer account details).")]),t._v(" "),a("div",{staticClass:"mb-4"},[a("a",{staticClass:" c-btn c-btn-black",attrs:{href:"/account/settings/payments"}},[t._v("Edit Payment Info")])]),t._v(" "),a("p",[t._v("2. Your tax documentation.")]),t._v(" "),a("div",{staticClass:"mb-4"},[a("a",{staticClass:" c-btn c-btn-black",attrs:{href:"/account/settings/tax"}},[t._v("Edit Tax Documents")])]),t._v(" "),a("p",[a("strong",[t._v("Other common reasons a payment might fail include:")])]),t._v(" "),a("p",{staticClass:"mb-0"},[t._v(" ⢠Incorrect account details (like a typo in your email)")]),t._v(" "),a("p",{staticClass:"mb-0"},[t._v(" ⢠Account verification issues on PayPal or Payoneer's end")]),t._v(" "),a("p",{staticClass:"mb-0"},[t._v(" ⢠Country restrictions or unsupported currencies")]),t._v(" "),a("p",{staticClass:"mb-0"},[t._v(" ⢠Limits on the receiving account or account not set up to receive certain types of payments")]),t._v(" "),a("p",{staticClass:"mt-4"},[a("strong",[t._v("We will attempt to pay your balance next month.")])])])],1)};k._withStripped=!0;var x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chart-guage-component"},[a("svg",{staticClass:"gauge",attrs:{viewBox:t.viewBox,preserveAspectRatio:"xMidYMid meet"}},[a("circle",{staticClass:"dial",attrs:{cx:"50",cy:"50",r:t.radius,fill:"none"}}),t._v(" "),a("path",{staticClass:"value",attrs:{fill:"none",stroke:t.gaugeStroke,d:t.valuePath}}),t._v(" "),a("g",{staticClass:"text-container"},[a("text",{staticClass:"value-text",attrs:{x:"50",y:"50","text-anchor":"middle","alignment-baseline":"middle","dominant-baseline":"central"}},[t._v("\n $"+t._s(t.displayLabel)+"\n ")])])])])};x._withStripped=!0;var P={name:"ChartCircle",props:{value:{type:Number,default:0},min:{type:Number,default:0},max:{type:Number,default:50},color:{type:Function,default:t=>"#666"},duration:{type:Number,default:2},radius:{type:Number,default:40},viewBox:{type:String,default:"0 0 100 100"}},data(){return{currentValue:this.value}},computed:{displayLabel(){return Number(this.currentValue).toFixed(2)},gaugeStroke(){return this.color(this.currentValue)},valuePath(){const t=Math.min(this.currentValue/this.max,1);if(t>=1)return this.getFullCirclePath();const e=270-360*t;return this.getArcPath(270,e)}},watch:{value(t,e){this.animateValue(e,t,this.duration)}},mounted(){this.animateValue(this.min,this.value,this.duration)},methods:{animateValue(t,e,a){const s=60*a;let i=1;const n=e-t,o=()=>{const e=i/s,a=n*(r=e,(r/=.5)<1?.5*Math.pow(r,3):.5*(Math.pow(r-2,3)+2))+t;var r;this.currentValue=a,i+=1,e<1?window.requestAnimationFrame(o):this.currentValue=this.value};window.requestAnimationFrame(o)},getCartesian(t,e,a,s){const i=s*Math.PI/180;return{x:Math.round(1e3*(t+a*Math.cos(i)))/1e3,y:Math.round(1e3*(e+a*Math.sin(i)))/1e3}},getArcPath(t,e){const a=this.getCartesian(50,50,this.radius,t),s=this.getCartesian(50,50,this.radius,e);let i=t-e;i<0&&(i+=360);const n=i>180?1:0;return["M",a.x,a.y,"A",this.radius,this.radius,0,n,0,s.x,s.y].join(" ")},getFullCirclePath(){const t=this.getCartesian(50,50,this.radius,270),e=this.getCartesian(50,50,this.radius,90),a=this.getCartesian(50,50,this.radius,270.1);return["M",t.x,t.y,"A",this.radius,this.radius,0,0,0,e.x,e.y,"A",this.radius,this.radius,0,0,0,a.x,a.y].join(" ")}}},M=(0,l.Z)(P,x,[],!1,null,null,null);M.options.__file="resources/js/components/account/ChartCircle.vue";var B=M.exports,A=a(81165),S=a(20296),F=a.n(S),E={props:{balance:{type:Number,default:0},has_accounting_complete:{type:Number,default:0},pending_payment_amt:{type:Number,default:0},is_last_payment_failed:{type:Number,default:0},payment_history:{type:Array,default:()=>[]}},mixins:[],components:{BModal:A.N,ChartCircle:B,BIcon:g.H,BIconExclamationTriangle:y.Sbj,BIconCashStack:y.ah9,BIconInfo:y.gOI},data(){return{ready:!1,currentValue:0,resizeCounter:0,showGenericModal:!1,showPaymentModal:!1,showFailedAcctngModal:!1,showFailedPaymentModal:!1}},computed:{showGeneric(){return!this.showPendingPayment&&!this.show
1FailedAccounting&&!this.showFailedPayment},showPendingPayment(){return this.pending_payment_amt&&this.has_accounting_complete&&!this.is_last_payment_failed},showFailedAccounting(){return this.balance&&!this.has_accounting_complete&&!this.is_last_payment_failed},showFailedPayment(){return this.is_last_payment_failed}},created(){this.currentValue=this.balance,setTimeout((()=>{this.ready=!0,this.animateValue(0,this.balance,1)}),700)},mounted(){const t=(t=!0)=>{const e=this.$refs.theGuage;if(e){const t=e.clientHeight;e.style.height=`${t}px`}t||this.animateValue(0,this.balance,1)};t(!0);const e=F()((()=>{t(!1),this.resizeCounter+=1}),250);window.addEventListener("resize",e),this._debouncedResize=e},beforeUnmount(){this._debouncedResize&&window.removeEventListener("resize",this._debouncedResize)},methods:{colorGuageChart(t){return this.showFailedAccounting||this.showFailedPayment?"#dc3545":t<=25?"#FFBDBE":t<50?"#3DB4C6":"#00B327"},animateValue(t,e,a){const s=60*a;let i=1;const n=e-t,o=()=>{const e=i/s,a=n*(r=e,(r/=.5)<1?.5*Math.pow(r,3):.5*(Math.pow(r-2,3)+2))+t;var r;this.currentValue=a.toFixed(2),i+=1,e<1?window.requestAnimationFrame(o):this.currentValue=this.balance.toFixed(2)};window.requestAnimationFrame(o)}}},N=(0,l.Z)(E,k,[],!1,null,null,null);N.options.__file="resources/js/components/account/PhotographerBalance.vue";var D=N.exports,q={data(){return{displayNumbers:{},frames:{}}},methods:{animateNumber(t,e,a=1500,s=!1){this.displayNumbers[t],this.$set(this.displayNumbers,t,0),this.$set(this.frames,t,null);const i=this.displayNumbers[t],n=performance.now(),o=r=>{if(!this||!this.displayNumbers)return;const l=r-n,c=Math.max(0,Math.min(l/a,1)),u=c*(2-c);if(s){const a=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(i+(e-i)*u);this.$set(this.displayNumbers,t,a)}else this.$set(this.displayNumbers,t,Math.floor(i+(e-i)*u));c<1&&(this.frames[t]=requestAnimationFrame(o))};cancelAnimationFrame(this.frames[t]),this.frames[t]=requestAnimationFrame(o)}},beforeDestroy(){this.frames&&Object.values(this.frames).forEach(cancelAnimationFrame)}},$=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"achievement-component"},[a("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showAll.apply(null,arguments)}}},[a("div",{staticClass:"top"},[a("div",{staticClass:"title"},[t._v("MY ACHIEVEMENTS")]),t._v(" "),a("div",{staticClass:"new"},[t.unreadCount?a("span",{staticClass:"badge badge-success"},[t._v(t._s(t.unreadCount)+" New")]):t._e()])]),t._v(" "),a("div",{staticClass:"mantle"},t._l(t.achievements.user,(function(e){return a("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],key:e.id,staticClass:"achievement",class:{locked:null==e.gifted_at,gifted:null!=e.gifted_at&&null!=e.read_at,new:null!=e.gifted_at&&null==e.read_at},attrs:{href:"#",title:e.title},on:{click:function(a){return a.stopPropagation(),a.preventDefault(),t.showSingle(e)}}},[a("img",{attrs:{src:e.icon_url}})])})),0),t._v(" "),a("div",{staticClass:"all-link"},[a("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showAll.apply(null,arguments)}}},[t._v("Show All")])])]),t._v(" "),a("b-modal",{attrs:{id:"single-achievement-modal","dialog-class":"single-achievement-modal",scrollable:"",title:"Achievement","ok-only":""}},[a("div",[a("div",{staticClass:"h"},[t._v(t._s(t.focused.title))]),t._v(" "),a("div",{staticClass:"t",domProps:{innerHTML:t._s(t.focused.tooltip)}}),t._v(" "),a("div",{staticClass:"achievement",class:{locked:null==t.focused.gifted_at}},[a("img",{attrs:{src:t.focused.icon_url}})]),t._v(" "),a("div",{staticClass:"date"},[null==t.focused.gifted_at?[t._v("Locked")]:[t._v("Unlocked on: "+t._s(t.focused.gifted_at))]],2)])]),t._v(" "),a("b-modal",{attrs:{id:"all-achievements-modal","dialog-class":"all-achievements-modal",scrollable:"",title:"Achievements","ok-only":"",size:"xl"}},[a("div",{staticClass:"all-achievements-con"},t._l(t.achievements.categories,(function(e){return a("div",{key:"cat-"+e.id,staticClass:"category"},[a("div",{staticClass:"subheadline"},[a("h2",{staticClass:"title"},[t._v(t._s(e.title))])]),t._v(" "),a("div",{staticClass:"pro-hide-con"},[5==e.id&&t.showProAd?a("div",{staticClass:"pro-hide"},[a("div",{staticClass:"pro-hide-cta"},[a("div",{staticClass:"l"},[a("div",{staticClass:"headline"},[t._v("Upgrade Now")]),t._v(" "),a("div",{staticClass:"support"},[t._v("Unlock Pro Achievements")])]),t._v(" "),a("div",{staticClass:"r"},[a("a",{attrs:{href:t.subLandingUrl}},[t._v("Get Pro")])])])]):t._e(),t._v(" "),a("div",{staticClass:"items"},t._l(e.achievements,(function(e){return a("div",{key:"all-"+e.id,staticClass:"item",class:{locked:null==e.gifted_at}},[a("div",{staticClass:"l"},[a("a",{staticClass:"achievement",class:{locked:null==e.gifted_at},attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),t.showSingle(e)}}},[a("img",{attrs:{src:e.icon_url}})])]),t._v(" "),a("div",{staticClass:"r"},[a("div",{staticClass:"h"},[t._v(t._s(e.title))]),t._v(" "),null!=e.gifted_at?a("div",{staticClass:"date"},[t._v("Unlocked: "+t._s(e.gifted_at))]):t._e()])])})),0)])])})),0)])],1)};$._withStripped=!0;var I=a(70538);const G=a(9669);var L={methods:{acr_read(t){return G.post("/account/achievement/api/read",t)},acr_adminInit(t){return G.post("/admin/achievement/api/init",t)},acr_adminToggle(t){return G.post("/admin/achievement/api/toggle",t)}}},T=a(50075),V=a(5870),z=a(53193);I.default.use(T.k);var R={directives:{"b-tooltip":V.o},props:{realm:{type:String,default:"front"},achievements:{type:Object,default(){return{user:[],categories:[]}}}},components:{},mixins:[L],data(){return{focused:{}}},computed:{unreadCount(){return this.achievements.user.filter((t=>null!=t.gifted_at&&null==t.read_at)).length},showProAd(){return"front"==this.realm&&!z.h.isUserSubscribed()}},created(){this.debug=!1,this.subLandingUrl="/mission"},mounted(){setTimeout((()=>{this.achievements.user.filter((t=>null!=t.gifted_at&&null==t.read_at)).length&&"front"==this.realm&&this.acr_read()}),3e3)},methods:{showSingle(t){this.focused=t,this.$bvModal.show("single-achievement-modal")},showAll(t){this.$bvModal.show("all-achievements-modal")}}},U=(0,l.Z)(R,$,[],!1,null,null,null);
1U.options.__file="resources/js/components/account/Achievement.vue";var Z=U.exports,j={props:{progress:{type:Number,default:7}},components:{PhotographerKnowledgeBase:u,ProductMobileCarouselDesktopGallery:_,PhotographerBalance:D,BBadge:f.k,BIcon:g.H,BTabs:C.M,BTab:b.L,BIconCaretUpFill:y.knd,BIconCaretDownFill:y.XZe,BIconHeart:y.Ryo,BIconList:y.Gbt,BIconX:y.uR$,InfoThumbs:w.Z,Achievement:Z},mixins:[q,p.Z,v.Z],data(){return{earnings_total:0,earnings_chart:[],balance:0,has_accounting_complete:0,pending_payment_amt:0,is_last_payment_failed:0,payment_history:[],contributions_total:0,contributions_chart:[],achievements:{user:[],categories:[]},showSalesContextMenu:!1,showPortfolioContextMenu:!1,faq_videos:[],faqs:[],sales_stat_msg:null,recent_sales:[],top_sellers:[],showChartsRow:!1,showSalesChart:!1,showContributionsChart:!1,showSales:!1}},created(){this.debug=!1,this.stat_up_icon="caret-up-fill",this.stat_down_icon="caret-down-fill"},mounted(){this.init()},computed:{},methods:{toggleSalesContextMenu(){this.showSalesContextMenu=!this.showSalesContextMenu},togglePortfolioContextMenu(){this.showPortfolioContextMenu=!this.showPortfolioContextMenu},init(){this.phr_stats({}).then((t=>{this.earnings_total=t.data.earnings_total,this.earnings_chart=t.data.earnings_chart,this.balance=parseFloat(t.data.balance)||0,this.has_accounting_complete=t.data.has_accounting_complete||0,this.pending_payment_amt=parseFloat(t.data.pending_payment_amt)||0,this.is_last_payment_failed=t.data.is_last_payment_failed||0,this.payment_history=t.data.payment_history||[],this.contributions_total=t.data.contributions_total,this.contributions_chart=t.data.contributions_chart,this.achievements=t.data.achievements,this.top_sellers=t.data.top_sellers,this.recent_sales=t.data.recent_sales,this.faq_videos=t.data.faq_videos,this.faqs=t.data.faqs,this.startSequence(),window.addEventListener("resize",F()((()=>{this.startSequence()}),250))}))},startSequence(){const t=window.innerWidth<768;let e=this.contributions_chart;t&&(e=this.contributions_chart.slice(0,9)),this.animateNumber("earnings_total",this.earnings_total,800,!0),this.drawChart(this.$refs.earningsChart,this.earnings_chart),setTimeout((()=>{this.animateNumber("contributions_total",this.contributions_total,800),this.drawChart(this.$refs.portfolioChart,e)}),2e3)},drawChart(t,e){const a=document.createElement("canvas"),s=window.devicePixelRatio||1,i=t.offsetWidth,n=t.offsetHeight;a.width=i*s,a.height=n*s,a.style.width=i+"px",a.style.height=n+"px";const o=t.querySelector("canvas");o&&t.removeChild(o),t.appendChild(a);const r=a.getContext("2d");r.scale(s,s);const l=window.innerWidth<768?8:5,c=Math.min(30,(i-l*(e.length-1))/e.length),u=Math.max(...e),d=c*e.length+l*(e.length-1),h=i-d,m=Date.now(),_=()=>{const t=Date.now()-m,a=Math.min(t/1e3,1);r.clearRect(0,0,i,n),e.forEach(((t,e)=>{const s=10*e/1e3,i=Math.min(Math.max((a-s)/(1-s),0),1),o=t/u*n*i,d=h+e*(c+l),m=n-o,_=r.createLinearGradient(0,m,0,n);_.addColorStop(0,"#00B327"),_.addColorStop(.69,"#3DB4C6"),_.addColorStop(1,"#FFBDBE"),r.fillStyle=_,r.fillRect(d,m,c,o)})),a<1&&requestAnimationFrame(_)};_()}}},H=(0,l.Z)(j,s,[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",[a("li",[a("a",{attrs:{href:"/account/reporting/sales"}},[t._v("View Sales Reporting")])]),t._v(" "),a("li",[a("a",{attrs:{href:"/account/settings/payments"}},[t._v("Manage Payout")])]),t._v(" "),a("li",[a("a",{attrs:{href:"/account/settings/tax"}},[t._v("Tax Documents")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",[a("li",[a("a",{attrs:{href:"/account/submit/home"}},[t._v("Submit Content")])]),t._v(" "),a("li",[a("a",{attrs:{href:"/account/portfolio"}},[t._v("Portfolio Manager")])]),t._v(" "),a("li",[a("a",{attrs:{href:"/account/settings/distribution"}},[t._v("Distribution Control")])])])}],!1,null,null,null);H.options.__file="resources/js/components/account/PhotographerStats.vue";var W=H.exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.