PageSourceSearch

https://www.wahoovpn.com/en/chunk-MBK3W5BW.js

js wahoovpn.com collected 2026-10-02 16:06:05 UTC 9,195 bytes, 1 lines download raw bytes

1import{a as Ie}from"./chunk-PDUG55WM.js";import{a as de}from"./chunk-NQPI3OUC.js";import{a as ae}from"./chunk-EXVELBC3.js";import{j as le}from"./chunk-XNVM4BBC.js";import{g as oe,h as Ee,i as re,m as Ae}from"./chunk-L62KUKXP.js";import{$a as _e,B as q,Cb as a,Db as R,Eb as I,Ja as ee,N as p,Ob as S,Pb as T,S as m,T as g,Tb as F,Wa as te,Xa as s,Ya as f,_a as ne,ab as c,bb as t,cb as e,da as Q,db as C,h as K,hb as ie,m as V,nb as i,oa as Z,rb as u,s as j,tb as L,u as J,wa as r}from"./chunk-IGVTPZGW.js";import{a as H,b as W}from"./chunk-WQTH3522.js";function Te(n,_){n&1&&(t(0,"div",31),C(1,"div",33)(2,"div",34)(3,"div",35),e());}function Fe(n,_){n&1&&(t(0,"section",32)(1,"p",36),i(2,4),e()());}function se(n,_){n&1&&(t(0,"span"),i(1,17),e());}function fe(n,_){n&1&&(t(0,"span"),i(1,18),e());}function Re(n,_){n&1&&(t(0,"span"),i(1,19),e());}function Le(n,_){n&1&&(t(0,"span"),i(1,20),e());}function pe(n,_){n&1&&(t(0,"span",70),i(1,21),e());}function me(n,_){n&1&&(t(0,"span",66),i(1,22),e());}function ge(n,_){if(n&1&&(t(0,"tr",63)(1,"td",64)(2,"div",65),a(3),e(),t(4,"div",66),a(5),e()(),t(6,"td",67),a(7),S(8,"number"),e(),t(9,"td",68),a(10),S(11,"number"),e(),t(12,"td",69)(13,"div"),a(14),S(15,"date"),e(),s(16,pe,2,0,"span",70)(17,me,2,0,"span",66),e()()),n&2){let o=_.$implicit;r(3),R(o.orderId),r(2),R(o.planSku),r(2),I(" $",T(8,6,o.orderAmount,"0.2-2")," "),r(3),I(" $",T(11,9,o.reward,"0.2-2")," "),r(4),R(T(15,12,o.redeemableAt,"mediumDate")),r(2),f(o.redeemable?16:17);}}function ce(n,_){n&1&&(t(0,"tr")(1,"td",71),i(2,23),e()());}function Ce(n,_){if(n&1){let o=ie();t(0,"div",37)(1,"section",38)(2,"div",39)(3,"h2",40),i(4,5),e()(),t(5,"div",41)(6,"div")(7,"p",42),i(8,6),e(),t(9,"div",43)(10,"div",44),a(11),e(),t(12,"button",45),u("click",function(){m(o);let l=L();return g(l.copyToClipboard(l.referralCode(),"code"));}),s(13,se,2,0,"span")(14,fe,2,0,"span"),e()()(),t(15,"div")(16,"p",42),i(17,7),e(),t(18,"div",43)(19,"div",46),a(20),e(),t(21,"button",47),u("click",function(){m(o);let l=L();return g(l.copyToClipboard(l.referralLink(),"link"));}),s(22,Re,2,0,"span")(23,Le,2,0,"span"),e()()()()(),t(24,"section",48),C(25,"div",49),t(26,"div",50)(27,"p",51),i(28,8),e(),t(29,"p",52),a(30),S(31,"number"),e(),t(32,"div",53)(33,"p",51),i(34,9),e(),t(35,"p",54),a(36),S(37,"number"),e()(),t(38,"div",53)(39,"p",51),i(40,10),e(),t(41,"p",54),a(42),e()()()()(),t(43,"section",55)(44,"div",56)(45,"div")(46,"h2",40),i(47,11),e(),t(48,"p",27),i(49,12),e(
1)()(),t(50,"div",57)(51,"table",58)(52,"thead",59)(53,"tr")(54,"th",60),i(55,13),e(),t(56,"th",61),i(57,14),e(),t(58,"th",61),i(59,15),e(),t(60,"th",61),i(61,16),e()()(),t(62,"tbody",62),ne(63,ge,18,15,"tr",63,te().purchaseTrackBy,!0,ce,3,0,"tr"),e()()()();}if(n&2){let o,d,l,A=L();r(11),I(" ",A.referralCode()||"-"," "),r(),c("disabled",!A.referralCode()),r(),f(A.copiedId()==="code"?13:14),r(7),I(" ",A.referralLink()||"-"," "),r(),c("disabled",!A.referralLink()),r(),f(A.copiedId()==="link"?22:23),r(8),I("$",T(31,10,((o=A.affiliateInfo())==null?null:o.balance)||0,"0.2-2")),r(6),I("$",T(37,13,((d=A.affiliateInfo())==null?null:d.redeemableBalance)||0,"0.2-2")),r(6),R(((l=A.affiliateInfo())==null?null:l.referrals)||0),r(21),_e(A.purchases());}}var Se=class n{appService=p(Ie);platformId=p(Z);affiliateState=de(j({userInfo:this.appService.getUserInfo(),affiliateInfo:this.appService.getAffiliateInfo()}).pipe(V(_=>W(H({},_),{loading:!1,error:!1})),J(()=>K({userInfo:void 0,affiliateInfo:void 0,loading:!1,error:!0})),q({userInfo:void 0,affiliateInfo:void 0,loading:!0,error:!1})),{initialValue:{userInfo:void 0,affiliateInfo:void 0,loading:!0,error:!1}});userInfo=F(()=>this.affiliateState().userInfo);affiliateInfo=F(()=>this.affiliateState().affiliateInfo);copiedId=Q(null);referralCode=F(()=>this.userInfo()?.username??"");referralLink=F(()=>{let _=this.referralCode();return _?`${ae.domain}/login?ref=${encodeURIComponent(_)}`:"";});purchases=F(()=>this.affiliateInfo()?.purchases??[]);copyToClipboard(_,o){!Ae(this.platformId)||!_||(navigator.clipboard.writeText(_),this.copiedId.set(o),setTimeout(()=>{this.copiedId.set(null);},2e3));}purchaseTrackBy(_,o){return o.orderId;}static ɵfac=function(o){return new(o||n)();};static ɵcmp=ee({type:n,selectors:[["app-user-affiliate"]],decls:15,vars:1,consts:()=>{let _;_="Affiliate";let o;o=" Share your personal link and track your affiliate balance. ";let d;d=" Redeem rewards ";let l;l=" Program details ";let A;A="Unable to load affiliate data.";let P;P="Personal share";let M;M=" Referral code ";let N;N=" Referral link ";let U;U="Commission balance";let O;O="Redeemable after delay";let x;x="Referrals";let $;$="Affiliate history";let b;b=" Referred purchases and the commission earned from each order. ";let y;y="Recommended order";let G;G=" Order amount ";let h;h="Reward";let v;v="Redeemable on";let D;D="Copied";let k;k="Copy code";let w;w="Copied";let X;X="Copy link";let B;B=" Ready ";let z;z=" Pending ";let Y;return Y=" No referred purchases yet. ",[_,o,d,l,A,P,M,N,U,O,x,$,b,y,G,h,v,D,k,w,X,B,z,Y,[1,"space-y-6"],[1,"flex","flex-col","sm:flex-row","sm:items-center","sm:justify-between","gap-4"],[1,"text-2xl","font-bold","text-main"],[1,"text-sm","text-muted","mt-1"],[1,"flex","flex-col","sm:flex-row","gap-3"],["routerLink","/user/affiliate/redeem",1,"inline-flex","items-center","justify-center","px-4","py-2","rounded-xl","bg-blue-600","text-white","text-sm","font-medium","hover:bg-blue-700","transition-colors"],["routerLink","/affiliate",1,"inline-flex","items-center","justify-center","px-4","py-2","rounded-xl","border","border-gray-200","dark:border-gray-700","text-sm","font-medium","text-main","hover:bg-white/60","dark:hover:bg-white/5","transition-colors"],[1,"grid","grid-cols-1","lg:grid-cols-3","gap-6","animate-pulse"],[1,"bg-card/50","backdrop-blur-md","rounded-2xl","border","border-white/20","dark:border-gray-700","shadow-sm","p-6"],[1,"lg:col-span-2","h-56","rounded-2xl","bg-gray-100","dark:bg-gray-800"],[1,"h-56","rounded-2xl","bg-gray-100","dark:bg-gray-800"],[1,"lg:col-span-3","h-64","rounded-2xl","bg-gray-100","dark:bg-gray-800"],[1,"font-medium","text-main"],[1,"grid","grid-cols-1","lg:grid-cols-3","gap-6"],[1,"lg:col-span-2","bg-card/50","backdrop-blur-md","rounded-2xl","border","border-white/20","dark:border-gray-700","shadow-sm","overflow-hidden"],[1,"p-5","border-b","border-gray-100","dark:border-gray-700"],[1,"font-semibold","text-main"],[1,"p-5","space-y-5"],[1,"text-xs","uppercase","tracking-wide","font-semibold","text-muted"],[1,"mt-2","flex","flex-col","sm:flex-row","gap-3"],[1,"flex-1","px-4","py-3","rounded-xl","bg-page","border","border-gray-200","dark:border-gray-700","font-mono","text-main"],["type","button",1,"px-4","py-3","rounded-xl","bg-blue-600","text-white","font-medium","hover:bg-blue-700","transition-colors","disabled:opacity-50",3,"click","disabled"],[1,"flex-1","px-4","py-3","rounded-xl","bg-page","border","border-gray-200","dark:border-gray-700","font-mono","text-sm","text-main","break-all"],["type","button",1,"px-4","py-3","rounded-xl","bg-purple-600","text-white","font-medium","hover:bg-purple-700","transition-colors","disabled:opacity-50",3,"click","disabled"],[1,"bg-gradient-to-br","from-purple-600","to-pink-600","rounded-2xl","p-6","text-white","shadow-lg","relative","overflow-hidden"],[1,"absolute","top-0","right-0","-mt-6","-mr-6","w-28","h-28","bg-white/20","rounded-full","blur-xl"],[1,"relative","z-10"],[1,"text-sm","text-purple-100"],[1,"text-4xl","font-extrabold","mt-2"],[1,"mt-6","pt-5","border-t","border-white/20"],[1,"text-3xl","font-bold","mt-1"],[1,"bg-card/50","backdrop-blur-md","rounded-2xl","border","border-white/20","dark:border-gray-700","shadow-sm","overflow-hidden"],[1,"p-5","border-b","border-gray-100","dark:border-gray-700","flex","flex-col","sm:flex-row","sm:items-center","sm:justify-between","gap-2"],[1,"overflow-x-auto"],[1,"w-full","text-left","text-sm","text-muted"],[1,"bg-gray-50/50","dark:bg-gray-700/50","text-xs","uppercase","text-gray-700","dark:text-gray-300"],["scope","col",1,"px-6","py-4","font-semibold"],["scope","col",1,"px-6","py-4","font-semibold","text-right"],[1,"divi
1de-y","divide-gray-100","dark:divide-gray-700"],[1,"hover:bg-white/50","dark:hover:bg-gray-700/30","transition-colors"],[1,"px-6","py-4","whitespace-nowrap"],[1,"font-mono","text-xs","text-main"],[1,"text-xs","text-muted"],[1,"px-6","py-4","whitespace-nowrap","text-right","font-medium","text-main"],[1,"px-6","py-4","whitespace-nowrap","text-right","font-semibold","text-green-600","dark:text-green-400"],[1,"px-6","py-4","whitespace-nowrap","text-right"],[1,"text-xs","text-green-600","dark:text-green-400"],["colspan","4",1,"px-6","py-8","text-center","text-muted"]];},template:function(o,d){o&1&&(t(0,"div",24)(1,"div",25)(2,"div")(3,"h1",26),i(4,0),e(),t(5,"p",27),i(6,1),e()(),t(7,"div",28)(8,"a",29),i(9,2),e(),t(10,"a",30),i(11,3),e()()(),s(12,Te,4,0,"div",31)(13,Fe,3,0,"section",32)(14,Ce,66,16),e()),o&2&&(r(12),f(d.affiliateState().loading?12:d.affiliateState().error?13:14));},dependencies:[re,le,Ee,oe],encapsulation:2});};export{Se as UserAffiliateComponent};/**i18n:cd52e61ae1ae77e72a003e8087de8719724994b15c4e52b93306df199d1fc094*/

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.