1"use strict";(self.webpackChunkv6_Home=self.webpackChunkv6_Home||[]).push([[5286],{15286:function(e,t,r){r.r(t),r.d(t,{default:function(){return c}});var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"photographer-payment-component"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col"},[r("b-form-group",{attrs:{label:"Select Method",description:"If you are a U.S. based photographer you must use PayPal."}},[r("b-form-radio-group",{attrs:{options:e.payment_type_opts},model:{value:e.payment_type,callback:function(t){e.payment_type=t},expression:"payment_type"}})],1),e._v(" "),r("b-form-group",{attrs:{label:e.l,"invalid-feedback":e.vError("payment_email"),state:e.vState("payment_email")}},[r("b-form-input",{attrs:{state:e.vState("payment_email")},model:{value:e.payment_email,callback:function(t){e.payment_email=t},expression:"payment_email"}})],1),e._v(" "),r("button",{staticClass:"c-btn c-btn-black",attrs:{type:"submit"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.save()}}},[e._v("Save")])],1)]),e._v(" "),r("hr"),e._v(" "),r("div",{staticClass:"mt-4 alert alert-info"},[e._v("Tax Documents are required before any form of payment.")])])};a._withStripped=!0,r(53193);var o=r(60985),i=r(80766),n=r(86664),s=r(45258),p=r(83659),l=r(22183),h={components:{BFormGroup:s.x,BFormRadioGroup:p.Q,BFormInput:l.e},mixins:[o.Z,i.Z,n.Z],props:{inPhotographer:{type:Object,default(){return{}}}},data(){return{payment_type:"paypal",payment_email:"",payment_type_opts:[],v:{validateOnBlur:!1,rules:[{model:"payment_email",rule:"email",msg:["Invalid Email"]}],errors:{payment_email:[]}},isProcessing:!1}},computed:{l(){let e="";const t=this.payment_type_opts.find((e=>e.value==this.payment_type));return t&&(e=t.text+" "),e+"Account Email"}},created(){this.init()},methods:{init(){this.fields().forEach((e=>{this[e]=this.inPhotographer[e]})),this.ready=!0},fields(){return["payment_type","payment_email","payment_type_opts"]},save(){"bank"!=this.payment_type?this.vValidate()&&(this.isProcessing||(this.isProcessing=!0,this.phr_updatePayment({payment_email:this.payment_email,payment_type:this.payment_type}).then((e=>{this.cm_successToast("Payment settings updated");let t=!(!this.payment_email||!this.payment_email.length);this.$emit("toggle-payments-warning",!t)})).catch((e=>{this.cm_catchErrorToast(e)})).finally((()=>{this.isProcessing=!1})))):this.cm_errorToast("Please select a Payment Type")}}},u=(0,r(51900).Z)(h,a,[],!1,null,null,null);u.options.__file="resources/js/components/account/PhotographerPayment.vue";var c=u.exports},60985:function(e,t,r){const a=r(9669);t.Z={methods:{phr_hireModal(e){return a.post("/contributor/api/hire-modal",e)},phr_refreshProfile(e){return a.post("/contributor/api/refresh-profile",e)},phr_updatePayment(e){return a.post("/account/photographer/api/update-payment",e)},phr_distributionSettings(e){return a.post("/account/photographer/api/distribution-settings",e)},phr_stats(e){return a.post("/account/photographer/api/stats",e)},phr_sales(e){return a.post("/account/photographer/api/sales",e)},phr_reporting(e){return a.post("/account/photographer/api/reporting",e)},phr_progress(e){return a.post("/account/photographer/api/progress",e)},phr_balance(e){return a.post("/account/photographer/api/balance",e)},phr_referral(e){return a.post("/account/photographer/api/referral",e)},phr_listTaxDocuments(e){return a.post("/account/photographer/api/list-tax-documents",e)},phr_createTaxDocument(e){return a.post("/account/photographer/api/create-tax-document",e)},phr_updatePrimaryTaxDocument(e){return a.post("/account/photographer/api/update-primary-tax",e)},phr_deleteTaxDocument(e){return a.post("/account/photographer/api/delete-tax-document",e)},phr_updatePhotographerProfile(e){return a.post("/account/photographer/api/update-profile",e,{headers:{"Content-Type":"multipart/form-data"}})},phr_fetchHire(e){return a.post("/account/photographer/api/fetch-hire",e)},phr_updatePhotographerHire(e){return a.post("/account/photographer/api/update-hire",e)},phr_updatePhotographerAvatar(e){return a.post("/account/photographer/api/update-avatar",e,{headers:{"Content-Type":"multipart/form-data"}})},phr_getHeroEdit(e){return a.post("/account/photographer/api/get-hero-edit",e)},phr_updateHero(e){return a.post("/account/photographer/api/update-hero",e)},phr_listEditProfileGalleries(e){return a.post("/account/photographer/api/list-profile-galleries",e)},phr_createProfileGalleries(e){return a.post("/account/photographer/api/create-profile-gallery",e)},phr_updateProfileGallery(e){return a.post("/account/photographer/api/update-profile-gallery",e)},phr_listProductsProfileGallery(e){return a.post("/account/photographer/api/list-products-profile-gallery",e)},phr_toggleProductProfileGallery(e){return a.post("/account/photographer/api/toggle-product-profile-gallery",e)},phr_updateRankProfileGallery(e){return a.post("/account/photographer/api/update-rank-profile-gallery",e)},phr_rankProfileGallery(e){return a.post("/account/photographer/api/rank-profile-gallery",e)},phr_createOrFindSearchLeadProfileGallery(e){return a.post("/account/photographer/api/create-or-find-search-lead-profile-gallery",e)},phr_list(e){return a.post("/admin/photographer/api/list",e)},phr_fetchEdit(e){return a.post("/admin/photographer/api/fetch-edit",e)},phr_fetchProfileEdit(e){return a.post("/admin/photographer/api/fetch-profile-edit",e)},phr_update(e){return a.post("/admin/photographer/api/update",e)},phr_sendPaymentInfoRequestEmail(e){return a.post("/admin/photographer/api/send-payment-info-request-email",e)},phr_dismissAccountingAlert(e){return a.post("/admin/photographer/api/dismiss-accounting-alert",e)},phr_addDemerit(e){return a.post("/admin/photographer/api/add-demerit",e)}
1,phr_setPayoutSuppression(e){return a.post("/admin/photographer/api/set-payout-suppression",e)}}}},14966:function(e,t,r){function a(e,t=!1){var r=!1;return e&&0!=e.length||(r=!0),r?!t:!!e.match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)}function o(e){return!(!e||0===e.length)}function i(e,t=!1){return!(t||e&&0!=e.length)||!!new RegExp("^([A-Za-z0-9_](?:(?:[A-Za-z0-9_]|(?:\\.(?!\\.))){0,28}(?:[A-Za-z0-9_]))?)$").test(e)}function n(e,t=!1){return!(t||e&&0!=e.length)||!!new RegExp("^[a-zA-Z0-9_]{0,15}$").test(e)}function s(e){return/^\+?(0|[1-9]\d*)$/.test(e)}function p(e,t){return"string"==typeof e||e instanceof String?e.length>=t:parseInt(e)>=t}function l(e,t){return parseInt(e)>=t}function h(e,t){return parseInt(e)<=t}function u(e){if("number"==typeof e||"boolean"==typeof e)return!1;if(null==e)return!0;if(void 0!==e.length)return 0==e.length;var t=0;for(var r in e)e.hasOwnProperty(r)&&t++;return 0==t}function c(e){if(!e||e.length<8)return!1;if(!/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(e))return!1;var t=e.split("/"),r=parseInt(t[1],10),a=parseInt(t[0],10),o=parseInt(t[2],10);if(o<1e3||o>2200||0==a||a>12)return!1;var i=[31,28,31,30,31,30,31,31,30,31,30,31];return(o%400==0||o%100!=0&&o%4==0)&&(i[1]=29),r>0&&r<=i[a-1]}r.r(t),r.d(t,{validateDateMDY:function(){return c},validateEmail:function(){return a},validateEmpty:function(){return u},validateInstagram:function(){return i},validateIntMax:function(){return h},validateIntMin:function(){return l},validateInteger:function(){return s},validateMin:function(){return p},validateRequired:function(){return o},validateTwitter:function(){return n}})},80766:function(e,t){var r={methods:{cm_bailing(){window.location.replace("/account/submit/home")},cm_successToast(e){this.$bvToast.toast(e,{variant:"success",solid:!0,noCloseButton:!0,toaster:"b-toaster-bottom-center"})},cm_errorToast(e,t="danger"){this.$bvToast.toast(e,{variant:t,solid:!0,noCloseButton:!0,toaster:"b-toaster-bottom-center"})},cm_hasLaravelErrors(e){return!!e.response?.data?.errors},cm_catchErrorToast(e,t=""){var r="";r=e.response?e.response?.data?.error?e.response.data.error:"Server Error":e.request?"Network Error":"Unknown Error",t&&(r+=" ["+t+"]"),this.cm_errorToast(r)},cm_validateUploadFile(e,t={maxFileSize:5368709120,minFileSize:8}){return e?e.name?e.size?""===e.type?"No directories allowed":t.minFileSize&&e.size<t.minFileSize?"File too small":t.maxFileSize&&e.size>=t.maxFileSize?"File is too large - 5GB Max":"":"Empty File":"File with no name":"No file selected"},cm_validateUploadFile(e,t={maxFileSize:5368709120,minFileSize:8}){return e?e.name?e.size?""===e.type?"No directories allowed":t.minFileSize&&e.size<t.minFileSize?"File too small":t.maxFileSize&&e.size>=t.maxFileSize?"File is too large - 5GB Max":"":"Empty File":"File with no name":"No file selected"}}};t.Z=r},86664:function(e,t,r){var a={methods:{...r(14966),vError(e){return!this.v.errors||this.v.errors.length?"":e in this.v.errors?this.v.errors[e][0]:""},vBlur(e){let t=this.vGetRuleEntryByModel(e);this.v.validateOnBlur?this.vTestRuleEntry(t)?this.vRemoveModelErrors(e):setTimeout((()=>{this.vRemoveModelErrors(e)}),1e4):(this.vTestRuleEntry(t,!1),this.vRemoveModelErrors(e))},vGetAllErrors(e){if(!this.v.errors)throw new Error("V object invalid");return e in this.v.errors?this.v.errors[e]:[]},vState(e){return!this.vGetAllErrors(e).length&&null},vHasExistingError(e,t){let r=this.vGetAllErrors(e);return!!r.length&&r.find((e=>e==t))},vAppendError(e,t=""){if(!this.v.errors)throw new Error("V object invalid");this.vHasExistingError(e,t)||this.v.errors[e].push(t)},vInjectLaravelErrors(e){e&&Object.keys(e).forEach((t=>{this.v.errors.hasOwnProperty(t)&&this.v.errors[t].push(e[t][0])}))},vRemoveModelErrors(e){Object.keys(this.v.errors).forEach((t=>{e==t&&(this.v.errors[e]=[])}))},vFlushErrors(){Object.keys(this.v.errors).forEach((e=>{this.v.errors[e]=[]}))},vGetRuleEntryByModel(e){return this.v.rules.find((t=>t.model==e))},vTestRuleEntry(e,t=!0){var r=!0,a=e.rule.split("|"),o=[],i="",n=!1;return a.forEach((e=>{"required"==e&&(n=!0)})),e.msg&&e.msg.length&&(o=e.msg),a.forEach(((a,s)=>{if("required"==a&&(this.validateRequired(this[e.model])||(t&&(i=o.length?o[s]:"Required",this.vAppendError(e.model,i)),r=!1)),"email"==a&&(this.validateEmail(this[e.model],n)||(t&&(i=o.length?o[s]:"Invalid email address",this.vAppendError(e.model,i)),r=!1)),"multi-email"==a){var p=this[e.model].replace(/\s/g,"").split(",");p.length&&p.forEach((a=>{a.length&&!this.validateEmail(a,n)&&(t&&(i=o.length?o[s]:"Invalid email address",this.vAppendError(e.model,i)),r=!1)}))}if("integer"!=a||this.validateEmpty(this[e.model])||this.validateInteger(this[e.model])||(t&&(i=o.length?o[s]:"Please enter a whole number",this.vAppendError(e.model,i)),r=!1),"instagram"==a&&!this.validateInstagram(this[e.model],n)){if(t){let t="Invalid Instagram name";this[e.model].includes("@")&&(t="Please remove @ symbol"),i=o.length?o[s]:t,this.vAppendError(e.model,i)}r=!1}if("twitter"==a&&!this.validateTwitter(this[e.model],n)){if(t){let t="Invalid Twitter name";this[e.model].includes("@")&&(t="Please remove @ symbol"),i=o.length?o[s]:t,this.vAppendError(e.model,i)}r=!1}if(a.includes(":")){let n=a.split(":");if("intmin"==n[0]&&!this.validateEmpty(this[e.model])&&!this.validateIntMin(this[e.model],n[1])){let a=n[1]+" or above";t&&(i=o.length?o[s]:a,this.vAppendError(e.model,i)),r=!1}if("intmax"==n[0]&&!this.validateEmpty(this[e.model])&&!this.validateIntMax(this[e.model],n[1])){let a=n[1]+" or below";t&&(i=o.length?o[s]:a,this.vAppendError(e.model,i)),r=!1}if("min"==n[0]&&!this.validateEmpty(this[e.model])&&!this.validateMin(this[e.model],n[1])){let a="Please enter at least "+n[1]+" characters";t&&(i=o.length?o[s]:a,this.vAppendError(e.model,i)),r=!1}"confirmed"==n[0]&&this[e.model]!=this[n[1]]&&(t&&(i=o.length?o[s]:"Must match above",this.vAppendError(e.model,i)),r=!1)}})),r},vValidate(){var e=!0;
1return this.vFlushErrors(),this.v.rules.forEach((t=>{this.vTestRuleEntry(t)||(e=!1)})),e}}};t.Z=a}}]);
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.