1"use strict";(globalThis["webpackChunkubi"]=globalThis["webpackChunkubi"]||[]).push([[456],{4456:(e,t,l)=>{l.r(t),l.d(t,{default:()=>L});var i=l(3673),n=l(2323);const a={class:"row"},s=(0,i._)("div",{class:"text-subtitle2 text-gray"}," Add your ubix wallet to this field to activate your referral link ",-1),o={key:0,class:"row q-py-md"},d=(0,i._)("div",{class:"text-h6"},"My Links",-1),u={class:"text-h6"};function r(e,t,l,r,c,p){const v=(0,i.up)("q-btn"),m=(0,i.up)("q-input"),h=(0,i.up)("q-space"),g=(0,i.up)("q-table"),b=(0,i.up)("q-page");return(0,i.wg)(),(0,i.j4)(b,{class:"q-pa-md"},{default:(0,i.w5)((()=>[(0,i._)("div",a,[(0,i.Wm)(m,{class:"grayInput grayInputColor nonPadding q-px-sm halfWidthMin bitUpHeight",borderless:"",modelValue:e.wallet,"onUpdate:modelValue":t[0]||(t[0]=t=>e.wallet=t),label:"Wallet Address","stack-label":""},{append:(0,i.w5)((()=>[(0,i.Wm)(v,{class:"roundedBtn",label:"Save",color:"primary",onClick:e.saveWallet},null,8,["onClick"])])),_:1},8,["modelValue"])]),s,e.wallet?((0,i.wg)(),(0,i.iD)("div",o,[(0,i.Wm)(m,{class:"grayInput grayInputColor nonPadding q-px-sm halfWidthMin bitUpHeight",borderless:"",modelValue:e.inviteLink,"onUpdate:modelValue":t[1]||(t[1]=t=>e.inviteLink=t),label:"Invite link","stack-label":""},{append:(0,i.w5)((()=>[(0,i.Wm)(v,{label:"Copy",icon:"content_copy",color:"primary",class:"roundedBtn",onClick:e.copy},null,8,["onClick"])])),_:1},8,["modelValue"])])):(0,i.kq)("",!0),(0,i._)("div",null,[(0,i.Wm)(g,{class:"basicTable",title:"My Links",rows:e.rows,columns:e.columns,"row-key":"date",flat:""},{top:(0,i.w5)((()=>[d,(0,i.Wm)(h),(0,i._)("div",u,"Invited users count: "+(0,n.zw)(e.invitedCount),1)])),_:1},8,["rows","columns"])])])),_:1})}var c=l(1959),p=l(6868),v=l.n(p),m=l(7291);const h=[{name:"date",required:!0,label:"Registration date",align:"left",field:"date",sortable:!0},{name:"nickname",align:"center",label:"Nickname",field:"nickname",sortable:!0},{name:"email",label:"Email",field:"email",sortable:!0},{name:"bonus",label:"Bonus",field:"bonus"}],g=(0,i.aZ)({name:"AffiliateProgram",setup(){return{columns:h,inviteLink:(0,c.iH)(null),wallet:(0,c.iH)(null),rows:(0,c.iH)([]),invitedCount:(0,c.iH)(0)}},computed:{},methods:{getWallet(){m.d.getWallet().then((e=>{this.wallet=e}))},getInviteLink(){m.d.getInviteLink().then((e=>
1{this.inviteLink=window.location.host+"/login?inviteCode="+e.inviteCode}))},getInvitedList(){m.d.getInviteList().then((e=>{this.rows=e}))},getInvitedCount(){m.d.getInviteCount().then((e=>{this.invitedCount=e}))},saveWallet(){m.d.saveWallet({wallet:this.wallet}).then((()=>{v()(this.$q,"positive")})).catch((e=>{v()(this.$q,"negative","Unsuccessful",e)}))},copy(){this.inviteLink&&(navigator.clipboard.writeText(this.inviteLink),v()(this.$q,"positive","Successfully copied"))}},created(){this.getWallet(),this.getInviteLink(),this.getInvitedList(),this.getInvitedCount()}});var b=l(4260),k=l(4379),w=l(4689),y=l(2165),f=l(6429),C=l(2025),I=l(7518),W=l.n(I);const q=(0,b.Z)(g,[["render",r]]),L=q;W()(g,"components",{QPage:k.Z,QInput:w.Z,QBtn:y.Z,QTable:f.Z,QSpace:C.Z})}}]);
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.