"use strict";(self["webpackChunkfirstbase_founder_app"]=self["webpackChunkfirstbase_founder_app"]||[]).push([[647],{25629:function(s,o,t){t.r(o),t.d(o,{default:function(){return b}});var e=function(){var s=this,o=s._self._c;return o("page-transition",[s.orderLoading||s.loading?o("content-loader"):o("div",{staticClass:"founder-app-referral-page"},[o("base-title",{staticClass:"founder-app-referral-page__title",attrs:{level:3,large:""}},[s._v(" Get up to "),o("span",{staticClass:"founder-app-referral-page__highlight"},[s._v(" $450 ")]),s._v(" in commissions for each friend you refer to Firstbase. "),o("b",[s._v("We've increased commissions")]),s._v(" to the highest level ever so that you can earn "),o("b",[s._v("even more money")]),s._v("! ")]),o("base-subhead",{staticClass:"founder-app-referral-page__subhead"},[s._v(" Once your referral has used your coupon code, you will receive an email with instructions on how to claim your pending commissions. ")]),o("base-divider",{staticClass:"founder-app-referral-page__item"}),s._l(s.coupons,(function(t,e){return o("div",{key:e,staticClass:"coupons-list"},[t?o("div",{staticClass:"coupons-list__item"},[o("div",{staticClass:"coupons-list__item--title"},[s._v(" "+s._s(t.name)+" ")]),o("div",{staticClass:"coupons-list__item--subtitle"},[s._v(" Share one of the coupons with your friend to receive the reward. ")]),s._l(t.plans,(function(e,a){return o("div",{key:a,staticClass:"coupons-list-plans"},[e.name?o("div",{staticClass:"coupons-list-plans__name"},[s._v(" "+s._s(e.name)+" ")]):s._e(),o("div",{staticClass:"coupons-list-plans__earns"},[o("base-icon",{staticClass:"coupons-list-plans__earns--bill",attrs:{icon:["fal","money-bill-wave-alt"]}}),s._v(" Earn "),e.hasUpTo?o("span",[s._v("up to")]):s._e(),s._v(" $"+s._s(e.yourEarn)+" USD "),o("base-icon",{staticClass:"coupons-list-plans__earns--arrow",attrs:{icon:["fas","arrow-right"]}}),s._v(" Your friend earns "),e.hasUpTo?o("span",[s._v("up to")]):s._e(),s._v(" $"+s._s(e.friendEarn)+" off ")],1),o("div",{staticClass:"coupons-list-plans__coupon-code"},[o("div",{staticClass:"coupons-list-plans__coupon-code--coupon"},[s._v(" "+s._s(e.coupon)+" ")]),o("base-button",{staticClass:"coupons-list-plans__coupon-code--copy-link",attrs:{text:"",link:"",target:"_self"},on:{click:function(o){return s.copyCoupon(e.coupon)}}},[s._v(" Copy Code "),o("base-icon",{attrs:{icon:["far","clipboard-list"]}})],1)],1),t.descriptionBelow?o("div",{staticClass:"coupons-list-plans__description-below"},s._l(t.descriptionBelow,(function(t,e){return o("p",{key:e},[s._v(" "+s._s(t)+" ")])})),0):s._e()])}))],2):s._e()])}))],2)],1)},a=[],n=t(86080),i=(t(76265),t(41211)),r=t(30941),c=t(75279),l=t(31950),p=t(20450),u=t(41164),d=t(40436),_=t(25572),h=t(70655),f=t(92072),m={name:"CompanyReferral",mixins:[i.Z],data:()=>({loading:!1}),components:{BaseDivider:r.Z,ContentLoader:c.pO,PageTransition:l.Z,BaseTitle:p.Z,BaseSubhead:u.Z,BaseButton:_.Z,BaseIcon:d.Z},computed:{coupons(){const s={name:"Firstbase Accounting™",plans:[(0,n.Z)({name:!1,yourEarn:"200*",friendEarn:"50"},this.$store.getters[`coupon/${f.i8}`])],descriptionBelow:["*Annual plans only"]},o={name:"Firstbase Start™",plans:[(0,n.Z)({name:!1,yourEarn:"65",friendEarn:"10"},this.$store.getters[`coupon/${f.WJ}`])]},t={name:"Firstbase Mailroom™",plans:[(0,n.Z)({name:!1,yourEarn:"125*",friendEarn:"50*",hasUpTo:!0},this.$store.getters[`coupon/${f.KM}`])],descriptionBelow:["*Mailroom Premium: $125 USD if paid yearly / $65 USD if paid monthly","*Mailroom Basic $65 USD if paid yearly / $45 USD if paid monthly"]},e={name:"Firstbase Agent™",plans:[(0,n.Z)({name:"Light Plan",yourEarn:"30",friendEarn:"10"},this.$store.getters[`coupon/${f.Rn}`]),(0,n.Z)({name:"Autopilot Plan",yourEarn:"65",friendEarn:"10"},this.$store.getters[`coupon/${f.OW}`]),(0,n.Z)({name:"Payroll Plan",yourEarn:"125",friendEarn:"10"},this.$store.getters[`coupon/${f.RN}`])]};return[s,o,t,e]}},async mounted(){await Promise.all([this.$store.dispatch(`coupon/${h.zm}`),this.$store.dispatch(`coupon/${h.ZE}`),this.$store.dispatch(`coupon/${h.AI}`),this.$store.dispatch(`coupon/${h.AI}`),this.$store.dispatch(`coupon/${h.yh}`),this.$store.dispatch(`coupon/${h._6}`),this.$store.dispatch(`coupon/${h.j2}`)])},methods:{async copyCoupon(s){try{await navigator.clipboard.writeText(s),await this.$notification.success("Coupon copied",{timeout:1500})}catch(o){await this.$notification.error("Error copy to clipboard",{timeout:4e3}),await Promise.reject(o)}}}},v=m,y=t(1001),$=(0,y.Z)(v,e,a,!1,null,null,null),b=$.exports}}]);