PageSourceSearch

https://app.targetinternet.com/assets/UpgradeBenchmark.87a88fc7.js

js targetinternet.com collected 2026-10-02 02:47:35 UTC 9,376 bytes, 1 lines download raw bytes

1import{_ as k,d as w,b as C,x as U,o as u,f as y,w as l,c as e,M as r,am as v,O as g,R as i,z as B,k as p,t as h,J as x,b8 as T,bc as A,b9 as _,bm as V,B as d,i as f,F,y as M,as as N,bn as I,n as Y}from"./index.fbd140df.js";import{u as R}from"./CorporateAdminStore.0a50d713.js";import{v as q}from"./validation.09d5a345.js";import{f as O}from"./currency.915a6336.js";import{V as b}from"./VAlert.167d45a8.js";const P={name:"SettingsTeamUpgrade",data(){return{appStore:w(),userStore:C(),toastStore:U(),corporateAdminStore:R(),email_sent:!1,loading:!1,options:{user_count:10,billing_method:"credit_card",billing_cycle:"annual",company_name:"",company_address:"",po_number:"",tax_ref:"",company_registration_no:""},priceMap:{1:{monthly:3e3,annual:2500},50:{monthly:2e3,annual:2e3},100:{monthly:1833,annual:1833},150:{monthly:1750,annual:1750},200:{monthly:1600,annual:1600},250:{monthly:1500,annual:1500},300:{monthly:1429,annual:1429},350:{monthly:1375,annual:1375},400:{monthly:1333,annual:1333},450:{monthly:1300,annual:1300},500:{monthly:1273,annual:1273},550:{monthly:1250,annual:1250},600:{monthly:1231,annual:1231},650:{monthly:1214,annual:1214},700:{monthly:1188,annual:1188},800:{monthly:667,annual:667},1500:{monthly:625,annual:625},2e3:{monthly:575,annual:575},3e3:{monthly:525,annual:525},4e3:{monthly:500,annual:500},5e3:{monthly:475,annual:475},6e3:{monthly:450,annual:450},7e3:{monthly:425,annual:425},8e3:{monthly:400,annual:400},9e3:{monthly:375,annual:375}}}},watch:{"options.billing_method":function(n){n==="invoice"&&(this.options.billing_cycle="annual")},"options.user_count":function(n){n>25&&(this.options.billing_cycle="annual",this.options.billing_method="invoice")}},mounted(){(this.userStore.is_individual||!this.userStore.user.corporate.benchmark_offer)&&this.$router.push({name:"SettingsAccount"}),this.corporateAdminStore.getBilling(this.userStore.user.corporate_id).finally(()=>{var n,o;this.loading=!1,this.options.user_count=(o=(n=this.corporateAdminStore.billing)==null?void 0:n.licences)==null?void 0:o.allocated})},computed:{min(){var n,o;return(o=(n=this.corporateAdminStore.billing)==null?void 0:n.licences)==null?void 0:o.allocated},total(){const o=this.priceForUsers()[this.options.billing_cycle]*this.options.user_count;return this.options.billing_cycle==="annual",o},saving(){const n=this.priceForUsers(),o=this.options.billing_cycle==="annual"?"monthly":"annual",c=n[o]*this.options.user_count,m=o==="annual"?c*12:c;return(this.total*12-m*12)*-1},billing_cycles(){return this.options.billing_method==="credit_card"&&this.options.user_count<=25?[{title:"Monthly",value:"monthly"},{title:"Yearly",value:"annual"}]:[{title:"Yearly",value:"annual"}]},billing_methods(){return this.options.user_count<=25?[{title:"Credit card",value:"credit_card"},{title:"Invoice",value:"invoice"}]:[{title:"Invoice",value:"invoice"}]}},methods:{validationRules:q,formatCurrency:O,priceForUsers(){const n=Object.keys(this.priceMap).map(Number);n.sort((c,m)=>c-m);let o=n[0];for(let c=0;c<n.length;c++){const m=n[c];if(this.options.user_count>m)o=m;else break}return this.priceMap[o]},async submit(){const{valid:n}=await this.$refs.form.validate();n&&(this.loading=!0,this.options.billing_method==="invoice"||this.options.user_count>25?this.corporateAdminStore.upgradeBenchmark(this.options).then(()=>{this.email_sent=!0,this.loading=!1}).finally(()=>{this.loading=!1}):this.corporateAdminStore.upgradeBenchmark(this.userStore.user.corporate.id,this.options).then(o=>{window.location.href=o.data.url}).finally(()=>{this.loading=!1}))}}},j={class:"bg-blue"},z=r("h2",null,"Benchmark upgrade",-1),D={class:"mt-5"},E=r("p",null,"Upgrade to a premium team account to access all features. Invite users, customise the portal with your brand colours and logo, team reports, and create custom certificates. Your team will also be able to access all content including courses.",-1),J=r("p",null,[p("Find out more about "),r("a",{href:"https://targetinternet.com/online-digital-marketing-elearning-training-teams/",target:"_blank"},"team accounts"),p(".")],-1),K=r("p",null,"Thank you for requesting to convert your account to a team account. We will create your account and invoice you shortly.",-1),L=r("p",null,"For teams larger than 25 users we will need to set up your account manually. Please complete the following information and a member of the our team will be in touch.",-1),W=r("p",null,"If you choose to pay via invoice, your company information will be submitted to our accounts team. Your account set up will be once your first invoice is paid.",-1),G=r("p",null,"Billing by invoice is only available on an annual billing cycle.",-1),H={ke
1y:0},Q=r("h6",{class:"d-inline"},"(per month)",-1),X={key:1},Z=r("h6",{class:"d-inline"},"(per year)",-1),$={key:2},ee={key:3},oe=r("p",{class:"mt-10"},"If you have a current subscription to Target Internet, it will now be replaced with this team subscription. Billing charges will be pro-rata to account for payments you have already made in the current billing cycle. Free trials will not be carried over to team accounts.",-1);function le(n,o,c,m,t,a){const S=Y("font-shape");return u(),y(I,{class:"fill-height"},{default:l(()=>[e(N,{class:"fill-height"},{default:l(()=>[r("div",j,[e(v,null,{default:l(()=>[e(g,{align:"center"},{default:l(()=>[e(i,{cols:"auto"},{default:l(()=>[e(B,{onClick:o[0]||(o[0]=s=>t.appStore.settingsSidebar=!t.appStore.settingsSidebar)},{default:l(()=>[p(h(t.appStore.settingsSidebar?"mdi-arrow-collapse-left":"mdi-arrow-collapse-right"),1)]),_:1})]),_:1}),e(i,{cols:"auto"},{default:l(()=>[z]),_:1}),e(x)]),_:1})]),_:1})]),e(v,{class:"pt-10"},{default:l(()=>[e(g,null,{default:l(()=>[e(i,{cols:"12",md:"4",class:"pe-15"},{default:l(()=>[r("h2",D,[e(S,{shape:"random",color:"pink"}),p("Team")]),E,J]),_:1}),e(i,{cols:"12",md:"8",class:"pt-10"},{default:l(()=>[t.email_sent?(u(),y(b,{key:0,type:"success",variant:"flat"},{default:l(()=>[K]),_:1})):(u(),y(T,{key:1,ref:"form",onSubmit:A(a.submit,["prevent"])},{default:l(()=>[e(g,null,{default:l(()=>[e(i,{cols:"12"},{default:l(()=>[e(g,null,{default:l(()=>[e(i,{cols:"12"},{default:l(()=>[r("p",null,"You currently have "+h(a.min)+" licence in use. You can add more now, or you can do it later when you invite new users.",1)]),_:1}),e(i,{cols:"12",md:"6"},{default:l(()=>[e(_,{modelValue:t.options.user_count,"onUpdate:modelValue":o[1]||(o[1]=s=>t.options.user_count=s),type:"number",min:"1",label:"Number of users",hint:"This includes yourself",rules:a.validationRules("Users",["required","min:1"])},null,8,["modelValue","rules"])]),_:1}),e(i,{cols:"12",md:"6"},{default:l(()=>[e(V,{modelValue:t.options.billing_method,"onUpdate:modelValue":o[2]||(o[2]=s=>t.options.billing_method=s),items:a.billing_methods,label:"Billing method"},null,8,["modelValue","items"])]),_:1}),t.options.user_count>25?(u(),y(i,{key:0,cols:"12"},{default:l(()=>[e(b,{type:"info",variant:"outlined"},{default:l(()=>[L]),_:1})]),_:1})):d("",!0),t.options.billing_method==="invoice"?(u(),y(i,{key:1,cols:"12"},{default:l(()=>[e(b,{type:"info",variant:"outlined"},{default:l(()=>[W,G]),_:1})]),_:1})):d("",!0),e(i,{cols:"12",md:"6"},{default:l(()=>[e(V,{modelValue:t.options.billing_cycle,"onUpdate:modelValue":o[3]||(o[3]=s=>t.options.billing_cycle=s),items:a.billing_cycles,label:"Billing cycle"},null,8,["modelValue","items"])]),_:1}),t.options.billing_method==="invoice"?(u(),f(F,{key:2},[e(i,{cols:"12"},{default:l(()=>[e(_,{modelValue:t.options.company_name,"onUpdate:modelValue":o[4]||(o[4]=s=>t.options.company_name=s),label:"Company name",rules:t.options.billing_method==="invoice"?a.validationRules("Company name",["required"]):[]},null,8,["modelValue","rules"])]),_:1}),e(i,{cols:"12"},{default:l(()=>[e(_,{modelValue:t.options.company_address,"onUpdate:modelValue":o[5]||(o[5]=s=>t.options.company_address=s),label:"Company address",rules:t.options.billing_method==="invoice"?a.validationRules("Company address",["required"]):[]},null,8,["modelValue","rules"])]),_:1}),e(i,{cols:"12"},{default:l(()=>[e(_,{modelValue:t.options.company_registration_no,"onUpdate:modelValue":o[6]||(o[6]=s=>t.options.company_registration_no=s),label:"Company registration number"},null,8,["modelValue"])]),_:1}),e(i,{cols:"12"},{default:l(()=>[e(_,{modelValue:t.options.tax_ref,"onUpdate:modelValue":o[7]||(o[7]=s=>t.options.tax_ref=s),label:"VAT / Tax reference"},null,8,["modelValue"])]),_:1}),e(i,{cols:"12"},{default:l(()=>[e(_,{modelValue:t.options.po_number,"onUpdate:modelValue":o[8]||(o[8]=s=>t.options.po_number=s),label:"PO Number"},null,8,["modelValue"])]),_:1})],64)):d("",!0)]),_:1})]),_:1}),e(i,{cols:"12"},{default:l(()=>[t.options.billing_cycle==="monthly"?(u(),f("h3",H,[p("Total "+h(a.formatCurrency(a.total))+" ",1),Q])):d("",!0),t.options.billing_cycle==="annual"?(u(),f("h3",X,[p("Total "+h(a.formatCurrency(a.total*12))+" ",1),Z])):d("",!0),t.options.billing_cycle==="annual"?(u(),f("h5",$,"You've saved "+h(a.formatCurrency(a.saving))+"!",1)):d("",!0),t.options.billing_cycle==="monthly"?(u(),f("h5",ee,"Save "+h(a.formatCurrency(a.saving))+" by paying yearly",1)):d("",!0),oe]),_:1}),e(i,{cols:"12"},{default:l(()=>[e(M,{onClick:a.submit,loading:t.loading},{default:l(()=>[p("Next")]),_:1},8,["onClick","loading"])]),_:1})]),_:1})]),_:1},8,["onSubmit"]))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const re=k(P,[["render",le]]);export{re as default};

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.