PageSourceSearch

https://skytechgaming.com/_nuxt/DwhXJ7ML.js

js skytechgaming.com collected 2026-09-25 18:18:36 UTC 51,189 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B59uTEGF.js","./D4iNppRB.js"])))=>i.map(i=>d[i]);
2import{A as p,C as S,Ct as Te,D as ee,Et as ot,It as s,J as lt,O as ie,Ot as A,S as M,Z as c,_t as I,an as V,b as u,cn as o,et as ce,gt as P,j as it,k as D,p as Q,sn as K,tt as Se,w as _,x as t}from"./D4iNppRB.js";import{A as $e,P as nt,j as E}from"./jouS0Q8B.js";import{t as dt}from"./BUDLPX_m.js";import{t as Ce}from"./q_CXofJD.js";import{F as ut,i as ct,k as mt,t as xt}from"#entry";import{t as ne}from"./DTSTXpRn2.js";import{t as ft}from"./B5fAIHaJ2.js";import{t as vt}from"./BUM_9Jng.js";import{t as pt}from"./CZQR2TpS.js";var bt={},gt={class:"bg-surface-700 overflow-hidden border border-white/[0.07] rounded-3.5 flex flex-col place-content-between transition-colors duration-200 hover:border-white/12"};function ht(C,Z){return c(),_("div",gt,[Se(C.$slots,"cardBody"),Se(C.$slots,"cardFooter")])}var _t=Object.assign(ct(bt,[["render",ht]]),{__name:"CommonCard"}),yt={class:"flex items-center justify-between border-t border-white/[0.07] px-4 sm:px-0"},wt={class:"-mt-px flex w-0 flex-1"},kt=["disabled"],Pt={class:"hidden md:-mt-px md:flex"},Tt={key:0,class:"inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-surface-text2"},St=["onClick"],$t={class:"-mt-px flex w-0 flex-1 justify-end"},Ct=["disabled"],Mt={__name:"CommonPagination",props:{currentPage:{type:Number,required:!0},totalPages:{type:Number,required:!0},maxDisplayPages:{type:Number,default:7}},emits:["page-change"],setup(C,{emit:Z}){const w=C,te=Z,ae=u(()=>{const m=[];let d=Math.max(1,w.currentPage-Math.floor(w.maxDisplayPages/2));const O=Math.min(w.totalPages,d+w.maxDisplayPages-1);O-d+1<w.maxDisplayPages&&(d=Math.max(1,O-w.maxDisplayPages+1)),d>1&&(m.push(1),d>2&&m.push("..."));for(let b=d;b<=O;b++)m.push(b);return O<w.totalPages&&(O<w.totalPages-1&&m.push("..."),m.push(w.totalPages)),m}),W=m=>{m>=1&&m<=w.totalPages&&te("page-change",m)};return(m,d)=>{const O=Ce;return c(),_("nav",yt,[t("div",wt,[t("button",{disabled:C.currentPage<=1,class:"inline-flex items-center border-t-2 border-transparent pr-1 pt-4 text-sm font-medium text-surface-text2 hover:border-white/12 hover:text-gray-100 disabled:opacity-50 disabled:cursor-not-allowed",onClick:d[0]||(d[0]=b=>W(C.currentPage-1))},[p(O,{name:"heroicons:arrow-long-left",class:"mr-3 h-5 w-5"}),d[2]||(d[2]=D(" Previous ",-1))],8,kt)]),t("div",Pt,[(c(!0),_(Q,null,ce(s(ae),b=>(c(),_(Q,{key:b},[b==="..."?(c(),_("span",Tt," ... ")):(c(),_("button",{key:1,class:V(["inline-flex items-center border-t-2 px-4 pt-4 text-sm font-medium",C.currentPage===b?"border-accent text-accent-light":"border-transparent text-surface-text2 hover:border-white/12 hover:text-gray-100"]),onClick:z=>W(b)},o(b),11,St))],64))),128))]),t("div",$t,[t("button",{disabled:C.currentPage>=C.totalPages,class:"inline-flex items-center border-t-2 border-transparent pl-1 pt-4 text-sm font-medium text-surface-text2 hover:border-white/12 hover:text-gray-100 disabled:opacity-50 disabled:cursor-not-allowed",onClick:d[1]||(d[1]=b=>W(C.currentPage+1))},[d[3]||(d[3]=D(" Next ",-1)),p(O,{name:"heroicons:arrow-long-right",class:"ml-3 h-5 w-5"})],8,Ct)])])}}},qt=it(()=>dt(()=>import("./B59uTEGF.js").then(C=>C.default||C),__vite__mapDeps([0,1]),import.meta.url)),Dt={class:"mt-3.5"},Ot={class:"mt-3.5"},Nt={class:"block text-xs text-[#aeb6c6] mb-1 font-semibold"},Vt={class:"mt-3.5"},Rt={class:"block text-xs text-[#aeb6c6] mb-1 font-semibold"},At={class:"grid grid-cols-2 gap-2"},Lt={class:"mt-2.5"},Bt={class:"mt-2.5"},It={class:"mt-2.5"},jt={class:"mt-2.5"},Et=["innerHTML"],Ft={class:"mb-6 text-slate-50"},Yt={class:"bg-linear-to-br from-[rgba(236,176,59,0.16)] to-[rgba(59,130,246,0.08)] border border-white/10 rounded-3xl p-5 shadow-[0_14px_35px_rgba(0,0,0,0.22)]"},Ut={class:"grid grid-cols-[minmax(0,1fr)_minmax(390px,430px)] gap-5.5 items-start mb-3.5 max-[900px]:grid-cols-1"},Ht={class:"max-w-170 max-[900px]:max-w-none"},Qt={class:"grid grid-cols-2 gap-3.5 max-[900px]:grid-cols-1"},Wt={class:"bg-white/6 border border-white/9 rounded-2xl px-4.5 pt-4.5 pb-3.5 text-center max-[900px]:text-left max-[900px]:w-full"},zt={class:"text-[32px] block my-1 text-[#ecb03b]"},Gt={class:"text-[13px] text-[#dce1eb]"},Kt={class:"bg-white/6 border border-white/9 rounded-2xl px-4.5 pt-4.5 pb-3.5 text-center max-[900px]:text-left max-[900px]:w-full"},Zt={class:"text-[32px] block my-1 text-green-500"},Jt={class:"grid grid-cols-1 gap-x-3 gap-y-1.5 mt-2.5 text-left"},Xt={class:"flex flex-col text-[11px] text-[#aeb6c6]"},ea={class:"text-[13px] text-white m-0"},ta={class:"flex flex-col text-[11px] text-[#aeb6c6]"},aa={class:"text-[13px] text-white m-0"},sa={class:"flex flex-col text-[11px] text-[#aeb6c6]"},ra={class:"text-[13px] text-white m-0"},oa={class:"flex flex-col text-[11px] text-[#aeb6c6]"},la={class:"text-[13px] text-white m-0"},ia={class:"mt-2.5 text-xs text-[#ecb03b] font-semibold"},na={class:"grid grid-cols-2 gap-3.5 max-[900px]:grid-cols-1"},da={class:"bg-white/4 border border-white/[0.07] rounded-3.5 p-4 text-[13px] leading-[1.55] text-[#dce1eb] col-span-full"},ua={class:"mt-2 text-[#dce1eb]"},ca={class:"grid grid-cols-2 gap-4.5 mt-4.5 max-[900px]:grid-cols-1"},ma={class:"bg-[rgba(15,16,31,0.82)] border border-white/8 rounded-4.5 p-5.5"},xa={class:"m-0 mb-2.5 text-base font-bold"},fa=["innerHTML"],va={class:"flex gap-3 mb-4.5"},pa={class:"flex-1"},ba={class:"flex justify-between text-xs mb-1 text-[#aeb6c6]"},ga={class:"text-white"},ha={class:"bg-white/8 rounded-md h-2.5 overflow-hidden"},_a={class:"flex-1"},ya={class:"flex justify-between text-xs mb-1 text-[#aeb6c6]"},wa={class:"text-white"},ka={class:"bg-white/8 rounded-md h-2.5 overflow-hidden"},Pa={class:"flex-1"},Ta={class:"flex justify-between text-xs mb-1 text-[#aeb6c6]"},Sa={class:"text-white"},$a={class:"bg-white/8 rounded-md h-2.5 overflow-hidden"},Ca={class:"flex justify-between text-[13px] mb-1.5 text-[#aeb6c6]"},Ma={class:"text-white"},qa={class:"bg-white/8 rounded-md h-2.5 overflow-hidden"},Da={class:"flex justify-between text-[13px] mb-1.5 text-[#aeb6c6] mt-4"},Oa={class:"text-white"},Na={class:"bg-white/8 rounded-md h-2.5 overflow-hidden"},Va={class:"grid grid-cols-2 gap-2.5 my-4"},Ra={class:"bg-surface-700 rounded-2.5 py-2.5 px-3.5 text-xs text-[#aeb6c6] border border-white/[0.07]"},Aa={class:"block text-white mt-0.5 text-sm"},La={class:"bg-surface-700 rounded-2.5 py-2.5 px-3.5 text-xs text-[#aeb6c6] border border-white/[0.07]"},Ba={class:"block text-white mt-0.5 text-sm"},Ia={class:"grid md:grid-cols-4 gap-2.5 mt-2.5 max-[900px]:grid-cols-1"},ja={class:"text-xs text-[#aeb6c6] bg-surface-700 rounded-2.5 py-2.5 px-3.5 border border-white/[0.07]"},Ea={class:"block text-white text-lg mt-0.5"},Fa={class:"text-xs text-[#aeb6c6] bg-surface-700 rounded-2.5 py-2.5 px-3.5 border border-white/[0.07]"},Ya={class:"block text-white text-lg mt-0.5"},Ua={class:"text-xs text-[#aeb6c6] bg-surface-700 rounded-2.5 py-2.5 px-3.5 border border-white/[0.07]"},Ha={class:"block text-white text-lg mt-0.5"},Qa={class:"text-xs text-[#aeb6c6] bg-surface-700 rounded-2.5 py-2.5 px-3.5 border border-white/[0.07]"},Wa={class:"block text-white text-lg mt-0.5"},za={class:"bg-[rgba(15,16,31,0.82)] border border-white/8 rounded-4.5 p-4.5"},Ga={class:"flex flex-col gap-2"},Ka={class:"flex items-center gap-2.5"},Za={class:"text-sm font-semibold text-white"},Ja=["title"],Xa={class:"text-[11px] text-[#aeb6c6] mt-0.5"},es={class:"text-xl font-extrabold text-[#ecb03b]"},ts={class:"grid gap-5 grid-cols-1 mb-10 md:grid-cols-2 lg:grid-cols-3"},as={class:"px-4 py-5 md:p-6 flex items-center"},ss={class:"shrink-0 text-surface-text2"},rs={class:"flex-1 ml-4 w-0"},os={class:"flex items-center gap-1"},ls={key:0,class:"flex items-baseline"},is={class:"text-3xl leading-8 font-semibold text-gray-100"},ns={class:"text-base"},ds={key:1},us={class:"bg-surface-600 px-4 py-4 md:px-6 text-sm leading-5 border-t border-white/[0.07]"},cs={class:"px-4 py-5 md:p-6 flex items-center"},ms={class:"shrink-0 text-surface-text2"},xs={class:"flex-1 ml-4 w-0"},fs={key:0,class:"flex items-baseline"},vs={class:"text-3xl leading-8 font-semibold text-gray-100"},ps={class:"text-base"},bs={key:1},gs={class:"bg-surface-600 px-4 py-4 md:px-6 text-sm leading-5 border-t border-white/[0.07]"},hs={class:"px-4 py-5 md:p-6 flex items-center"},_s={class:"shrink-0 text-surface-text2"},ys={class:"flex-1 ml-4 w-0"},ws={class:"flex"},ks={class:"text-3xl leading-8 font-semibold text-gray-100"},Ps={class:"text-base"},Ts={class:"grid gap-5 grid-cols-1 mb-10 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"},Ss={class:"px-4 py-5 md:p-6 flex items-center"},$s={class:"shrink-0 text-surface-text2"},Cs={class:"flex-1 ml-4 w-0"},Ms={key:0,class:"flex items-baseline"},qs={class:"flex"},Ds={class:"text-3xl leading-8 font-semibold text-gray-100"},Os={class:"text-base"},Ns={key:1},Vs={class:"bg-surface-600 px-4 py-4 md:px-6 text-sm leading-5 border-t border-white/[0.07]"},Rs={class:"px-4 py-5 md:p-6 flex items-center"},As={class:"shrink-0 text-surface-text2"},Ls={class:"flex-1 ml-4 w-0"},Bs={key:0,class:"flex items-baseline"},Is={class:"text-3xl leading-8 font-semibold text-gray-100"},js={class:"text-base"},Es={key:1},Fs={class:"bg-surface-600 px-4 py-4 md:px-6 text-sm leading-5 border-t border-white/[0.07]"},Ys={class:"px-4 py-5 md:p-6 flex items-center"},Us={class:"shrink-0 text-surface-text2"},Hs={class:"flex-1 ml-4 w-0"},Qs={class:"flex"},Ws={class:"text-3xl leading-8 font-semibold text-gray-100"},zs={class:"text-base"},Gs={key:0},Ks={key:0,class:"mt-6"}
2,Zs={key:1},Js={class:"mt-24"},Xs={class:"grid gap-5 grid-cols-1 mb-10 md:grid-cols-2 lg:grid-cols-4"},er={class:"px-4 py-5 md:p-6 flex items-center"},tr={class:"flex-1 ml-4 w-0"},ar={class:"flex items-baseline"},sr={class:"text-3xl leading-8 font-semibold text-gray-100"},rr={class:"px-4 py-5 md:p-6 flex items-center"},or={class:"flex-1 ml-4 w-0"},lr={class:"flex items-baseline"},ir={class:"text-3xl leading-8 font-semibold text-gray-100"},nr={class:"px-4 py-5 md:p-6 flex items-center"},dr={class:"flex-1 ml-4 w-0"},ur={class:"flex items-baseline"},cr={class:"text-3xl leading-8 font-semibold text-gray-100"},mr={class:"px-4 py-5 md:p-6 flex items-center"},xr={class:"flex-1 ml-4 w-0"},fr={class:"flex items-baseline"},vr={class:"text-3xl leading-8 font-semibold text-gray-100"},pr={class:"grid gap-5 grid-cols-1 mb-10 md:grid-cols-2 lg:grid-cols-4"},br={class:"px-4 py-5 md:p-6 flex items-center"},gr={class:"flex-1 ml-4 w-0"},hr={class:"flex items-baseline"},_r={class:"text-3xl leading-8 font-semibold text-gray-100"},yr={class:"px-4 py-5 md:p-6 flex items-center"},wr={class:"flex-1 ml-4 w-0"},kr={class:"flex items-baseline"},Pr={class:"text-3xl leading-8 font-semibold text-gray-100"},Tr={key:1,class:"mb-7 text-surface-text2"},Sr={class:"mt-10"},$r={class:"sm:flex"},Cr={class:"max-w-xs w-64 sm:mr-2"},Mr=["value"],qr={style:{height:"608px"}},N=150,de=.25,ue=20,jr={__name:"index",setup(C){const Z=u(()=>!1),w=ft(),{getAffiliateOverViewApi:te,getAffiliateStatisticsApi:ae,getAffiliateGraphsApi:W}=xt(),m=A(null),d=A(!1),O=A(!1),b=A("custom"),z=[{name:"Starter Partner",rate:2,score:0,minSales:0,review:!1},{name:"Growth Partner",rate:3,score:5,minSales:4,review:!1},{name:"Pro Partner",rate:4,score:10,minSales:8,review:!1},{name:"Elite Partner",rate:5,score:20,minSales:15,review:!0}],me=u(()=>{const a=m.value;return a&&!d.value&&a.tiers?a.tiers.map(e=>({name:e.name,rate:e.commission,description:e.description,is_current:e.is_current,achieved:e.achieved,review:e.requires_review})):z}),Me={starter:{monthlySales:0,qualifiedClicks:13,visits:13,payoutSales:0,avgOrderValue:1800,allTimeSales:0,allTimeVisits:13},growth:{monthlySales:4,qualifiedClicks:150,visits:620,payoutSales:5,avgOrderValue:1800,allTimeSales:9,allTimeVisits:1600},pro:{monthlySales:8,qualifiedClicks:300,visits:2100,payoutSales:10,avgOrderValue:1800,allTimeSales:28,allTimeVisits:6200},elite:{monthlySales:15,qualifiedClicks:750,visits:6500,payoutSales:20,avgOrderValue:1800,allTimeSales:70,allTimeVisits:18500}},v=ot({monthlySales:0,qualifiedClicks:13,visits:13,payoutSales:0,avgOrderValue:1800,allTimeSales:0,allTimeVisits:13});function x(a){return Number(a||0).toLocaleString()}function L(a){return"$"+Number(a||0).toLocaleString(void 0,{maximumFractionDigits:0})}function qe(a,e){return!a||a.score<=0||e<=0?0:Math.floor(a.score*de)}function xe(a,e,r){a=Math.max(0,Number(a)||0),e=Math.max(0,Number(e)||0);const l=Math.floor(e/N),f=qe(r,a),i=Math.min(l,f),T=Math.max(0,l-i);return{rawTrafficPoints:l,trafficPoints:i,ignoredTrafficPoints:T,ignoredClicks:T*N,trafficPointCap:f,score:a+i}}const q=u(()=>{const a=m.value;return a&&!d.value&&a.next_goal?a.next_goal.stats.actual_sales:Math.max(0,Number(v.monthlySales)||0)}),F=u(()=>{const a=m.value;return a&&!d.value&&a.next_goal?a.next_goal.stats.qualified_clicks:Math.max(0,Number(v.qualifiedClicks)||0)}),$=u(()=>{const a=m.value;if(a&&!d.value)return{name:a.current_tier.name,rate:a.current_tier.commission};for(let e=z.length-1;e>=0;e--){const r=z[e];if(xe(q.value,F.value,r).score>=r.score&&q.value>=r.minSales)return r}return z[0]}),k=u(()=>{const a=m.value;if(a&&!d.value&&a.next_goal)return{name:a.next_goal.tier_name,rate:a.next_goal.commission,score:a.next_goal.progress.next_tier.required,minSales:a.next_goal.progress.current_sales.required,review:!1};const e=me.value,r=e.findIndex(l=>l.name===$.value.name);return e[Math.min(r+1,e.length-1)]}),y=u(()=>{const a=m.value;if(a&&!d.value&&a.next_goal){const e=a.next_goal;return{rawTrafficPoints:e.stats.traffic_boost_used,trafficPoints:e.progress.traffic_boost.current,ignoredTrafficPoints:0,ignoredClicks:e.stats.clicks_over_limit,trafficPointCap:e.progress.traffic_boost.max,score:e.progress.next_tier.current}}return xe(q.value,F.value,k.value)}),Y=u(()=>{const a=m.value;return a&&!d.value&&a.next_goal?a.next_goal.progress.current_sales.required:Math.max(0,k.value.minSales||0)}),j=u(()=>{const a=m.value;return a&&!d.value&&a.next_goal?a.next_goal.progress.traffic_boost.max:Math.max(0,y.value.trafficPointCap||0)}),R=u(()=>{const a=m.value;if(a&&!d.value&&a.next_goal){const e=a.next_goal.progress.next_tier;return Math.max(0,e.required-e.current)}return Math.max(0,k.value.score-y.value.score)}),U=u(()=>{const a=m.value;if(a&&!d.value&&a.next_goal){const e=a.next_goal.progress.current_sales;return Math.max(0,e.required-e.current)}return Math.max(0,k.value.minSales-q.value)}),De=u(()=>{const a=m.value;return a&&!d.value&&a.estimated_next_payout?a.estimated_next_payout.sales_getting_paid:Math.max(0,Number(v.payoutSales)||0)}),fe=u(()=>Math.max(0,Number(v.payoutSales)||0)*Math.max(0,Number(v.avgOrderValue)||0)),J=u(()=>{const a=m.value;return a&&!d.value&&a.estimated_next_payout?a.estimated_next_payout.amount:fe.value*($.value.rate/100)}),se=u(()=>{const a=m.value;return a&&!d.value&&a.estimated_next_payout?a.estimated_next_payout.at_next_tier.amount:fe.value*(k.value.rate/100)}),ve=u(()=>{const a=m.value;return a&&!d.value&&a.estimated_next_payout?a.estimated_next_payout.at_next_tier.diff:Math.max(0,se.value-J.value)}),re=u(()=>{const a=new Date;return a.getDate()===1?new Date(a.getFullYear(),a.getMonth(),1):new Date(a.getFullYear(),a.getMonth()+1,
21)}),oe=u(()=>{const a=m.value;return a&&!d.value&&a.estimated_next_payout?a.estimated_next_payout.payout_date:re.value.toLocaleDateString("en-US",{month:"long",day:"numeric"})}),pe=u(()=>{const a=m.value;return a&&!d.value&&a.estimated_next_payout?a.estimated_next_payout.paying_sales_from:new Date(re.value.getFullYear(),re.value.getMonth()-2,1).toLocaleDateString("en-US",{month:"long"})}),Oe=u(()=>G(Y.value?q.value/Y.value*100:100)),Ne=u(()=>G(j.value?y.value.trafficPoints/j.value*100:100)),Ve=u(()=>G(k.value.score?y.value.score/k.value.score*100:100)),Re=u(()=>G(Y.value?q.value/Y.value*100:100)),Ae=u(()=>G(j.value?y.value.trafficPoints/j.value*100:100));function G(a){return Math.max(0,Math.min(100,a))}const Le=u(()=>$.value.name===k.value.name?"Highest public tier unlocked":`Next goal: ${k.value.name} - ${k.value.rate}%`),Be=u(()=>{const a=m.value;if(a&&!d.value&&a.next_goal){const r=a.next_goal.to_unlock_by_sales;return r===0?"Sales target reached":`${x(r)} more sales`}const e=Math.max(0,k.value.score-q.value);return e===0?"Sales target reached":`${x(e)} more sales`}),Ie=u(()=>{const a=m.value;return a&&!d.value&&a.next_goal?a.next_goal.traffic_boost_maxed?"Traffic boost maxed":`${x(N-(a.next_goal.stats.qualified_clicks%N||N))} qualified clicks for +1 boost`:Math.max(0,j.value-y.value.trafficPoints)===0?"Traffic boost maxed":`${x(N-(F.value%N||N))} qualified clicks for +1 boost`}),je=u(()=>{if($.value.name===k.value.name)return"Highest public tier unlocked";const a=m.value;if(a&&!d.value&&a.estimated_next_payout){const e=a.estimated_next_payout.at_next_tier;return`At ${e.rate}%: ${L(e.amount)} (+${L(e.diff)})`}return`At ${k.value.rate}%: ${L(se.value)} (+${L(ve.value)})`}),Ee=u(()=>{const a=m.value;if(a&&!d.value&&a.next_goal)return`<strong>Next step:</strong> ${a.next_goal.next_step_message}`;if($.value.name===k.value.name)return"<strong>Highest public tier unlocked.</strong> Keep your sales active to maintain this commission level.";if(U.value>0)return`<strong>Next step:</strong> you need ${x(U.value)} more sale${U.value===1?"":"s"} to meet the sales requirement for ${k.value.name}.`;const e=Math.max(0,j.value-y.value.trafficPoints);if(R.value>0&&e>0){const r=Math.ceil(R.value)*N;return`<strong>Next step:</strong> you need ${x(R.value)} more sale${R.value===1?"":"s"} or about ${x(Math.min(r,e*N))} qualified clicks to boost toward ${k.value.name}.`}return R.value>0?`<strong>Next step:</strong> traffic boost is maxed for this tier, so you need ${x(R.value)} more sale${R.value===1?"":"s"} to reach ${k.value.name}.`:`<strong>Ready for next level.</strong> Requirements are met for ${k.value.name}.`}),Fe=u(()=>`Estimated ${oe.value} payout: <strong>${L(J.value)}</strong><br/><span style="color:#aeb6c6">Previous sales getting paid: ${x(v.payoutSales)} x estimated ASP ${L(v.avgOrderValue)} x current rolling rate ${$.value.rate}%</span><br/><span style="color:#8f98ab">Estimate only. Real payout is based on actual validated sales and order values.</span>`),Ye=u(()=>U.value>0||y.value.ignoredTrafficPoints>0||y.value.trafficPoints>=y.value.trafficPointCap&&y.value.trafficPointCap>0&&R.value>0||q.value===0&&F.value>0),Ue=u(()=>{let a="";R.value>0&&(a+=` Needs ${x(R.value)} more sales/traffic boost points.`),U.value>0&&(a+=` Needs ${x(U.value)} more actual sales before traffic boost can apply.`),y.value.ignoredTrafficPoints>0&&(a+=` ${x(y.value.ignoredTrafficPoints)} traffic boost points were not counted because traffic can only cover 25% of this tier requirement.`),y.value.trafficPoints>=y.value.trafficPointCap&&y.value.trafficPointCap>0&&R.value>0&&(a+=" Traffic boost is maxed for this tier; the rest must come from actual sales."),q.value===0&&F.value>0&&(a+=" Traffic-only performance cannot unlock paid commission tiers."),a||(a=" Requirements met for this public tier.");const e=$.value.name===k.value.name?" Highest public tier unlocked.":` Next tier would estimate ${L(se.value)}, which is +${L(ve.value)} more.`;return`Preview result: ${$.value.name} at ${$.value.rate}%. Current sales: ${x(q.value)} set the rate. Previous sales getting paid: ${x(v.payoutSales)}. Traffic boost used: ${x(y.value.trafficPoints)} of max ${x(y.value.trafficPointCap)} for the next target tier. Estimated payout: ${L(J.value)}.`+e+a});function He(a){if(a.description)return a.description;if(a.score===0)return"Default starting tier. No sales or traffic requirement needed.";const e=Math.floor(a.score*de),r=e*N;return`Need ${a.score} total. You can reach this with ${a.score} actual sales, or ${a.minSales} actual sales plus ${r} qualified clicks. Traffic can only cover ${e} point${e===1?"":"s"} max${a.review?" and the tier still needs review":""}.`}function Qe(a){if(a.description)return a.description;if(a.score===0)return"Default starting tier";const e=Math.floor(a.score*de)*N,r=a.review?" + review":"";return`${a.score} sales OR ${a.minSales} sales + ${e} qualified clicks${r}`}function We(){const a=Me[b.value];a&&Object.assign(v,a)}const ze=[{id:"reference",title:"Reference",type:"string"},{id:"amount",title:"Amount",type:"number"},{id:"description",title:"Description",type:"string"},{id:"status",title:"Status",type:"string"},{id:"date",title:"Date",type:"date"}],g=A({}),h=A({}),X=A([]),le=A(1),be=u(()=>Math.max(1,Math.ceil(X.value.length/ue))),Ge=u(()=>{const a=(le.value-1)*ue;return X.value.slice(a,a+ue)}),Ke=a=>{le.value=a},B=A({}),Ze=u(()=>B.value&&typeof B.value=="object"&&Object.keys(B.value).length>0),ge=A([]),he=a=>{const e=w(),r=e.startOf("week");if(a){const l=[],f=e.diff(r,"day")+1;for(let i=0;i<f;
2i++)l.push(r.add(i,"day").format("DD/MMMM"));return l}else{const l=r.subtract(1,"week"),f=[];for(let i=0;i<7;i++)f.push(l.add(i,"day").format("DD/MMMM"));return f}},_e=a=>{const e=w(),r=[];if(a){const l=e.startOf("quarter"),f=e.diff(l,"month")+1;for(let i=0;i<f;i++)r.push(l.add(i,"month").format("MMMM/YYYY"))}else{const l=e.startOf("quarter").subtract(1,"quarter");for(let f=0;f<3;f++)r.push(l.add(f,"month").format("MMMM/YYYY"))}return r},ye=a=>{const e=w(),r=a?e.year():e.subtract(1,"year").year(),l=a?e.month()+1:12,f=[];for(let i=0;i<l;i++)f.push(w().year(r).month(i).format("MMMM/YYYY"));return f},we=()=>Array.from({length:24},(a,e)=>w().startOf("day").add(e,"hour").format("h:00a").toLowerCase()),ke=a=>{const e=w(),r=a?e:e.subtract(1,"month"),l=a?e.date():r.daysInMonth(),f=r.format("MMMM"),i=[];for(let T=1;T<=l;T++)i.push(`${String(T).padStart(2,"0")}/${f}`);return i},Je=a=>{switch(a){case"today":case"yesterday":return we();case"this_week":return he(!0);case"last_week":return he(!1);case"this_month":return ke(!0);case"last_month":return ke(!1);case"this_quarter":return _e(!0);case"last_quarter":return _e(!1);case"this_year":return ye(!0);case"last_year":return ye(!1);default:return we()}},Xe=[{key:"today",label:"Today"},{key:"yesterday",label:"Yesterday"},{key:"this_week",label:"This Week"},{key:"last_week",label:"Last Week"},{key:"this_month",label:"This Month"},{key:"last_month",label:"Last Month"},{key:"this_quarter",label:"This Quarter"},{key:"last_quarter",label:"Last Quarter"},{key:"this_year",label:"This Year"},{key:"last_year",label:"Last Year"}],H=A("today"),Pe=u(()=>{const a=tt(H.value),e=Je(H.value),r=at(a,e,H.value);return{labels:e,datasets:[{label:"Unpaid Referral Earnings",data:r.unpaid,borderColor:"#f59e0b",borderWidth:2,backgroundColor:"transparent",tension:.3},{label:"Pending Referral Earnings",data:r.pending,borderColor:"#3d8bff",borderWidth:2,backgroundColor:"transparent",tension:.3},{label:"Rejected Referral Earnings",data:r.rejected,borderColor:"#ef4444",borderWidth:2,backgroundColor:"transparent",tension:.3},{label:"Paid Referral Earnings",data:r.paid,borderColor:"#22c55e",borderWidth:2,backgroundColor:"transparent",tension:.3}]}}),et=u(()=>{const a=Math.max(...Object.values(Pe.value.datasets).flatMap(e=>e.data).filter(e=>e!==null));return{responsive:!0,maintainAspectRatio:!1,scales:{y:{beginAtZero:!0,ticks:{callback:e=>`$${e.toLocaleString()}`,stepSize:Math.ceil(a/5/100)*100,color:"#8a91a8"},grid:{drawBorder:!1,color:"rgba(255,255,255,0.07)"}},x:{ticks:{color:"#8a91a8"},grid:{drawBorder:!1,color:"rgba(255,255,255,0.07)"}}},plugins:{legend:{position:"top",align:"center",labels:{color:"#8a91a8"}},tooltip:{callbacks:{label:e=>`${e.dataset.label}: $${e.raw.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}`}}},elements:{point:{radius:4},line:{borderWidth:2}}}}),tt=a=>{const e=w();let r,l;switch(a){case"today":r=e.startOf("day"),l=e.endOf("day");break;case"yesterday":r=e.subtract(1,"day").startOf("day"),l=e.subtract(1,"day").endOf("day");break;case"this_week":r=e.startOf("week"),l=e;break;case"last_week":r=e.subtract(1,"week").startOf("week"),l=e.subtract(1,"week").endOf("week");break;case"this_month":r=e.startOf("month"),l=e;break;case"last_month":r=e.subtract(1,"month").startOf("month"),l=e.subtract(1,"month").endOf("month");break;case"this_quarter":r=e.startOf("quarter"),l=e;break;case"last_quarter":r=e.subtract(1,"quarter").startOf("quarter"),l=e.subtract(1,"quarter").endOf("quarter");break;case"this_year":r=e.startOf("year"),l=e;break;case"last_year":r=e.subtract(1,"year").startOf("year"),l=e.subtract(1,"year").endOf("year");break;default:r=e.startOf("day"),l=e.endOf("day")}return ge.value.filter(f=>w(f.date).isBetween(r,l,null,"[]"))},at=(a,e,r)=>{const l={unpaid:new Array(e.length).fill(0),pending:new Array(e.length).fill(0),rejected:new Array(e.length).fill(0),paid:new Array(e.length).fill(0)};return a.forEach(f=>{const i=w(f.date);let T=0;switch(r){case"today":case"yesterday":T=i.hour();break;case"this_week":case"last_week":T=i.day();break;case"this_month":case"last_month":T=i.date()-1;break;case"this_quarter":case"last_quarter":T=i.month()%3;break;case"this_year":case"last_year":T=i.month()}T>=0&&T<e.length&&(l[f.status][T]+=f.price)}),l};return lt(async()=>{const[a,e,r]=await Promise.allSettled([te(),ae(),W()]);if(a.status==="fulfilled"){const l=a.value;g.value=l.last_30_days??{},h.value=l.all_times??{},mt.info("overviewResult",l),l.commission_progress&&(m.value=l.commission_progress);const f=l.recent_referral_activity.map(i=>({reference:i.reference,amount:ne(i.amount),description:i.description,status:i.status,date:i.date}));X.value=f}else console.error(a.reason?.data?.error??"Failed to get recent referral activity.");if(e.status==="fulfilled"){const l=e.value;B.value=l!==null&&typeof l=="object"&&!Array.isArray(l)?l:{}}else console.error(e.reason?.data?.error??e.reason?.data?.message??"Failed to get statistics.");r.status==="fulfilled"?ge.value=r.value.affiliate_orders??[]:console.error(r.reason?.data?.message??"Failed to get graphs data.")}),(a,e)=>{const r=Ce,l=vt,f=ut,i=_t,T=pt,st=Mt,rt=qt;return c(),_("div",null,[s(Z)?(c(),_(Q,{key:0},[t("button",{class:"fixed top-20 right-5.5 z-1100 border border-[rgba(236,176,59,0.35)] text-black bg-[#ecb03b] py-2 px-4.5 rounded-[22px] font-semibold shadow-[0_14px_35px_rgba(0,0,0,0.35)] curs
2or-pointer max-[900px]:right-3",type:"button",onClick:e[0]||(e[0]=n=>d.value=!s(d))}," Preview Controls "),t("div",{class:V(["fixed top-33 right-5.5 z-1100 bg-[#1e2235] border border-white/10 rounded-4.5 py-5.5 px-5 w-85 max-h-[calc(100vh-160px)] overflow-y-auto shadow-[0_25px_60px_rgba(0,0,0,0.5)] text-white max-[900px]:right-3 max-[900px]:w-[calc(100vw-24px)]",s(d)?"block":"hidden"])},[e[27]||(e[27]=t("h4",{class:"m-0 mb-1 text-base font-extrabold text-white"},"Commission Preview",-1)),e[28]||(e[28]=t("p",{class:"m-0 mb-3.5 text-[#aeb6c6] text-xs"}," Pick a demo profile or adjust the numbers manually to preview the full dashboard. ",-1)),t("div",Dt,[e[22]||(e[22]=t("label",{class:"block text-xs text-[#aeb6c6] mb-1 font-semibold"},"Demo Profile",-1)),I(t("select",{"onUpdate:modelValue":e[1]||(e[1]=n=>Te(b)?b.value=n:null),class:"w-full bg-white/[0.07] border border-white/12 rounded-lg text-white py-1.5 px-2.5 text-[13px]",onChange:We},[...e[21]||(e[21]=[ie('<option value="custom">Custom / manual</option><option value="starter">Starter Partner demo</option><option value="growth">Growth Partner demo</option><option value="pro">Pro Partner demo</option><option value="elite">Elite Partner demo</option>',5)])],544),[[$e,s(b)]])]),t("div",Ot,[t("label",Nt,"Current sales (last 30 days): "+o(s(v).monthlySales),1),I(t("input",{"onUpdate:modelValue":e[2]||(e[2]=n=>s(v).monthlySales=n),type:"range",min:"0",max:"60",class:"w-full accent-[#ecb03b]",onInput:e[3]||(e[3]=n=>b.value="custom")},null,544),[[E,s(v).monthlySales,void 0,{number:!0}]]),I(t("input",{"onUpdate:modelValue":e[4]||(e[4]=n=>s(v).monthlySales=n),type:"number",min:"0",max:"60",class:"w-20 bg-white/[0.07] border border-white/12 rounded-lg text-white py-1 px-2 text-[13px] mt-1",onInput:e[5]||(e[5]=n=>b.value="custom")},null,544),[[E,s(v).monthlySales,void 0,{number:!0}]])]),t("div",Vt,[t("label",Rt,"Qualified Clicks: "+o(s(v).qualifiedClicks),1),I(t("input",{"onUpdate:modelValue":e[6]||(e[6]=n=>s(v).qualifiedClicks=n),type:"range",min:"0",max:"20000",step:"50",class:"w-full accent-[#ecb03b]",onInput:e[7]||(e[7]=n=>b.value="custom")},null,544),[[E,s(v).qualifiedClicks,void 0,{number:!0}]]),I(t("input",{"onUpdate:modelValue":e[8]||(e[8]=n=>s(v).qualifiedClicks=n),type:"number",min:"0",max:"20000",step:"50",class:"w-20 bg-white/[0.07] border border-white/12 rounded-lg text-white py-1 px-2 text-[13px] mt-1",onInput:e[9]||(e[9]=n=>b.value="custom")},null,544),[[E,s(v).qualifiedClicks,void 0,{number:!0}]])]),t("div",At,[t("div",Lt,[e[23]||(e[23]=t("label",{class:"block text-xs text-[#aeb6c6] mb-1 font-semibold"},"Visits",-1)),I(t("input",{"onUpdate:modelValue":e[10]||(e[10]=n=>s(v).visits=n),type:"number",class:"w-20 bg-white/[0.07] border border-white/12 rounded-lg text-white py-1 px-2 text-[13px] mt-1",onInput:e[11]||(e[11]=n=>b.value="custom")},null,544),[[E,s(v).visits,void 0,{number:!0}]])]),t("div",Bt,[e[24]||(e[24]=t("label",{class:"block text-xs text-[#aeb6c6] mb-1 font-semibold"},"Previous sales getting paid",-1)),I(t("input",{"onUpdate:modelValue":e[12]||(e[12]=n=>s(v).payoutSales=n),type:"number",class:"w-20 bg-white/[0.07] border border-white/12 rounded-lg text-white py-1 px-2 text-[13px] mt-1",onInput:e[13]||(e[13]=n=>b.value="custom")},null,544),[[E,s(v).payoutSales,void 0,{number:!0}]])]),t("div",It,[e[25]||(e[25]=t("label",{class:"block text-xs text-[#aeb6c6] mb-1 font-semibold"},"Avg order $",-1)),I(t("input",{"onUpdate:modelValue":e[14]||(e[14]=n=>s(v).avgOrderValue=n),type:"number",class:"w-20 bg-white/[0.07] border border-white/12 rounded-lg text-white py-1 px-2 text-[13px] mt-1",onInput:e[15]||(e[15]=n=>b.value="custom")},null,544),[[E,s(v).avgOrderValue,void 0,{number:!0}]])]),t("div",jt,[e[26]||(e[26]=t("label",{class:"block text-xs text-[#aeb6c6] mb-1 font-semibold"},"All-time visits",-1)),I(t("input",{"onUpdate:modelValue":e[16]||(e[16]=n=>s(v).allTimeVisits=n),type:"number",class:"w-20 bg-white/[0.07] border border-white/12 rounded-lg text-white py-1 px-2 text-[13px] mt-1",onInput:e[17]||(e[17]=n=>b.value="custom")},null,544),[[E,s(v).allTimeVisits,void 0,{number:!0}]])])]),e[29]||(e[29]=t("div",{class:"mt-3 rounded-3.5 bg-[rgba(236,176,59,0.1)] border border-[rgba(236,176,59,0.2)] py-3 px-3.5 text-xs leading-[1.45] text-[#dce1eb]"}," Current sales decide the rolling commission rate. Previous sales are the validated sales from the payout month that will be paid using that current rate. ",-1)),t("div",{class:"mt-3 rounded-3.5 bg-green-500/10 border border-green-500/20 py-3 px-3.5 text-xs leading-snug [&_strong]:text-white [&_strong]:text-base",innerHTML:s(Fe)},null,8,Et),t("div",{class:V(["mt-3.5 rounded-3.5 bg-[rgba(236,176,59,0.1)] border border-[rgba(236,176,59,0.2)] py-3 px-3.5 text-xs leading-[1.45]",s(Ye)?"bg-red-500/12 border-red-500/35!":""])},o(s(Ue)),3),e[30]||(e[30]=t("div",{class:"mt-3.5 rounded-3.5 bg-white/4 border border-white/8 py-3 px-3.5 text-xs leading-[1.55] text-[#dce1eb]"},[t("strong",{class:"text-white text-[13px]"},"Traffic quality rules"),t("ul",{class:"mt-1.5 mb-0 pl-4 list-disc space-y-1"},[t("li",null,"0 actual sales = traffic boost points do not count."),t("li",null,"Traffic boost can cover max 25% of the target tier requirement."),t("li",null,"Growth Partner max traffic boost 1 point, Pro Partner max 2, Elite Partner max 5."),t("li",null,"With max traffic boost: Growth still needs 4 sales, Pro needs 8, Elite needs 15 + review.")])],-1))],2)],64)):S("",!0),t("section",Ft,[t("div",Yt,[t("div",Ut,[t("div",Ht,[e[31]||(e[31]=t("div",{class:"text-xs tracking-[0.08em] uppercase text-[#ecb03b] font-bold mb-1.5"}," Commission progress ",-1)),e[32]||(e[32]=t("h2",{class:"text-[28px] font-extrabold leading-[1.2] m-0 mb-2.5 max-[900px]:text-[22px]"}," Your path to the next affiliate commission tier ",-1)),e[33]||(e[33]=t("p",{class:"text-[#aeb6c6] text-sm leading-[1.6] m-0 mb
2-3.5"}," Track your current commission level, next goal, and what is needed to unlock the next payout percentage. Traffic can help tier review, but commissions are only paid on completed sales. ",-1)),t("button",{class:"bg-[rgba(236,176,59,0.15)] border border-[rgba(236,176,59,0.35)] text-[#ecb03b] py-1.75 px-4.5 rounded-[22px] text-[13px] font-semibold cursor-pointer transition-colors hover:bg-[rgba(236,176,59,0.28)]",type:"button",onClick:e[18]||(e[18]=n=>O.value=!s(O))}," How does this work? ")]),t("div",Qt,[t("div",Wt,[e[34]||(e[34]=t("span",{class:"text-xs text-[#aeb6c6] uppercase tracking-[0.04em]"},"Current commission level",-1)),t("strong",zt,o(s($).rate)+"%",1),t("div",Gt,o(s($).name),1)]),t("div",Kt,[e[39]||(e[39]=t("span",{class:"text-xs text-[#aeb6c6] uppercase tracking-[0.04em]"},[D(" Estimated next payout "),t("span",{class:"text-[11px] text-[#8a91a8] cursor-help ml-0.75",title:"This is only an estimate based on Skytech average selling price. The real payout will be based on the affiliate actual validated sales and order values."},"(i)")],-1)),t("strong",Zt,o(L(s(J))),1),t("div",Jt,[t("div",Xt,[e[35]||(e[35]=t("span",null,"Payout date",-1)),t("strong",ea,o(s(oe)),1)]),t("div",ta,[e[36]||(e[36]=t("span",null,"Paying sales from",-1)),t("strong",aa,o(s(pe)),1)]),t("div",sa,[e[37]||(e[37]=t("span",null,"Sales getting paid",-1)),t("strong",ra,o(x(s(De))),1)]),t("div",oa,[e[38]||(e[38]=t("span",null,"Rate used",-1)),t("strong",la,o(s($).rate)+"%",1)])]),t("div",ia,o(s(je)),1)])])]),t("div",{class:V(["mt-4.5 p-5 bg-black/18 rounded-2xl border border-white/6",s(O)?"block":"hidden"])},[e[50]||(e[50]=t("h3",{class:"m-0 mb-3 text-lg"},"How this works",-1)),t("div",na,[e[49]||(e[49]=ie('<div class="bg-white/4 border border-white/[0.07] rounded-3.5 p-4 text-[13px] leading-[1.55] text-[#dce1eb]"><strong>Simple rule</strong><br> Actual sales count first. Qualified traffic can add points, but traffic can only cover up to 25% of the tier requirement. <div class="bg-black/25 rounded-lg py-1.5 px-3 font-mono text-xs text-[#ecb03b] mt-2"> Traffic Points = FLOOR(Qualified Clicks / 150) </div><div class="bg-black/25 rounded-lg py-1.5 px-3 font-mono text-xs text-[#ecb03b] mt-1"> Traffic Used = MIN(Traffic Points, Tier Requirement x 25%) </div><div class="bg-black/25 rounded-lg py-1.5 px-3 font-mono text-xs text-[#ecb03b] mt-1"> Tier Total = Actual Sales + Traffic Used </div><div class="mt-2 text-[#aeb6c6]"><strong>FLOOR</strong> means round down to a full number. Example: 320 clicks / 150 = 2.13, so it counts as 2 traffic boost points. </div></div><div class="bg-white/4 border border-white/[0.07] rounded-3.5 p-4 text-[13px] leading-[1.55] text-[#dce1eb]"><strong>Quality rule</strong><br> Clicks cannot unlock higher commission by themselves. Traffic can only help with a small part of the tier. <div class="mt-2 text-[#aeb6c6]"><strong>Qualified traffic:</strong> real customers can visit your URL multiple times and those visits can count. But repeated spam from one IP/device, bot patterns, or abnormal spikes, like 1,000 clicks in one day and then only 5-10 clicks the next days, may be flagged as fraudulent and removed. </div><table class="w-full mt-2.5 border-collapse text-xs"><thead><tr><th class="py-1.25 px-2 border border-white/8 text-left bg-white/4 text-[#aeb6c6]"> Tier </th><th class="py-1.25 px-2 border border-white/8 text-left bg-white/4 text-[#aeb6c6]"> Tier Total </th><th class="py-1.25 px-2 border border-white/8 text-left bg-white/4 text-[#aeb6c6]"> Traffic Max </th><th class="py-1.25 px-2 border border-white/8 text-left bg-white/4 text-[#aeb6c6]"> How to reach it </th></tr></thead><tbody><tr><td class="py-1.25 px-2 border border-white/8 text-left">Growth Partner 3%</td><td class="py-1.25 px-2 border border-white/8 text-left">5</td><td class="py-1.25 px-2 border border-white/8 text-left">1</td><td class="py-1.25 px-2 border border-white/8 text-left"> 5 sales OR 4 sales + 150 clicks </td></tr><tr><td class="py-1.25 px-2 border border-white/8 text-left">Pro Partner 4%</td><td class="py-1.25 px-2 border border-white/8 text-left">10</td><td class="py-1.25 px-2 border border-white/8 text-left">2</td><td class="py-1.25 px-2 border border-white/8 text-left"> 10 sales OR 8 sales + 300 clicks </td></tr><tr><td class="py-1.25 px-2 border border-white/8 text-left">Elite Partner 5%</td><td class="py-1.25 px-2 border border-white/8 text-left">20</td><td class="py-1.25 px-2 border border-white/8 text-left">5</td><td class="py-1.25 px-2 border border-white/8 text-left"> 20 sales OR 15 sales + 750 clicks + review </td></tr></tbody></table></div>',2)),t("div",da,[e[45]||(e[45]=t("strong",null,"Payout rule",-1)),e[46]||(e[46]=t("br",null,null,-1)),e[47]||(e[47]=D(" Payouts are paid after the validation period, but the commission percentage uses the affiliate's current rolling commission level when the payout is processed. ",-1)),t("div",ua,[e[40]||(e[40]=t("strong",null,"Current timeline example:",-1)),e[41]||(e[41]=D(" the next scheduled payout is ",-1)),t("strong",null,o(s(oe)),1),e[42]||(e[42]=D(". It pays validated ",-1)),t("strong",null,o(s(pe)),1),e[43]||(e[43]=D(" sales from the previous payout month, using your current rolling commission rate on payout day. Current preview rate: ",-1)),t("strong",null,o(s($).rate)+"%",1),e[44]||(e[44]=D(". ",-1))]),e[48]||(e[48]=t("div",{class:"mt-1.5 text-[#aeb6c6] text-xs"}," Simple rule: payout month is delayed for validation, but the commission % is based on the affiliate's current rolling tier when the payout is processed. ",-1))])])],2),t("div",ca,[t("div",ma,[t("h3",xa,o(s(Le)),1),t("div",{class:"mb-3.5 text-[13px] text-[#dce1eb] leading-normal",innerHTML:s(Ee)},null,8,fa),t("div",va,[t("div",pa,[t("div",ba,[e[51]||(e[51]=t("span",null,"Current sales",-1)),t("strong",ga,o(x(s(q)))+" / "+o(x(s(Y))),1)]),t("div",ha,[t("div",{class:"h-full rounded-md bg-linear-to-r from-[#ecb03b] to-[#f59e0b] transition-[width] duration-400",style:K({width:s(Oe)+"%"})},null,4)])]),t("div",_a,[t("div",ya,[e[52]||(e[52]=t("span",null,"Traffic boost",-1)),t("strong",wa,o(x(s(y).trafficPoints))+" / "+o(x(s(j))),1)]),t("div",ka,[t("div",{class:"h-full rounded-md bg-linear-to-r from-[#ecb03b] to-[#f59e0b] transition-[width] duration-400",style:K({width:s(Ne)+"%"})},null,4)])]),t("div",Pa,[t("div",Ta,[e[53]||(e[53]=t("span",null,"Next tier",-1)),t("strong",Sa,o(x(s(y).score))+" / "+o(x(s(k).score)),1
2)]),t("div",$a,[t("div",{class:"h-full rounded-md bg-linear-to-r from-[#ecb03b] to-[#f59e0b] transition-[width] duration-400",style:K({width:s(Ve)+"%"})},null,4)])])]),t("div",Ca,[e[54]||(e[54]=t("span",null,"Current sales needed",-1)),t("strong",Ma,o(x(s(q)))+" / "+o(x(s(Y)))+" sales",1)]),t("div",qa,[t("div",{class:"h-full rounded-md bg-linear-to-r from-[#ecb03b] to-[#f59e0b] transition-[width] duration-400",style:K({width:s(Re)+"%"})},null,4)]),t("div",Da,[e[55]||(e[55]=t("span",null,"Traffic boost available",-1)),t("strong",Oa,o(x(s(y).trafficPoints))+" / "+o(x(s(j)))+" traffic boost points",1)]),t("div",Na,[t("div",{class:"h-full rounded-md bg-linear-to-r from-[#ecb03b] to-[#f59e0b] transition-[width] duration-400",style:K({width:s(Ae)+"%"})},null,4)]),t("div",Va,[t("div",Ra,[e[56]||(e[56]=t("span",null,"To unlock by sales",-1)),t("strong",Aa,o(s(Be)),1)]),t("div",La,[e[57]||(e[57]=t("span",null,"Traffic boost needed",-1)),t("strong",Ba,o(s(Ie)),1)])]),t("div",Ia,[t("div",ja,[e[58]||(e[58]=t("span",null,"Actual sales",-1)),t("strong",Ea,o(x(s(q))),1)]),t("div",Fa,[e[59]||(e[59]=t("span",null,"Qualified clicks",-1)),t("strong",Ya,o(x(s(F))),1)]),t("div",Ua,[e[60]||(e[60]=t("span",null,"Traffic boost used",-1)),t("strong",Ha,"+"+o(x(s(y).trafficPoints)),1)]),t("div",Qa,[e[61]||(e[61]=t("span",null,"Clicks over limit",-1)),t("strong",Wa,o(x(s(y).ignoredClicks)),1)])])]),t("div",za,[e[62]||(e[62]=t("h3",{class:"m-0 mb-2.5 text-base font-bold"},"Commission tiers",-1)),t("div",Ga,[(c(!0),_(Q,null,ce(s(me),n=>(c(),_("div",{key:n.name,class:V(["flex items-center justify-between border rounded-xl py-3 px-4 transition-colors",n.is_current||n.name===s($).name?"border-[#ecb03b] bg-[rgba(236,176,59,0.08)]":"bg-white/3 border-white/6"])},[t("div",Ka,[t("span",{class:V(["w-2.5 h-2.5 rounded-full",n.is_current||n.name===s($).name?"bg-[#ecb03b]":"bg-white/15"])},null,2),t("div",null,[t("div",Za,[D(o(n.name)+" ",1),t("span",{class:"text-[11px] text-[#8a91a8] cursor-help ml-0.75",title:He(n)},"(i)",8,Ja)]),t("div",Xa,o(Qe(n)),1)])]),t("div",es,o(n.rate)+"%",1)],2))),128))])])]),e[63]||(e[63]=ie('<div class="flex flex-wrap gap-2 mt-4.5"><span class="bg-white/5 border border-white/8 rounded-4.5 py-1.5 px-3.5 text-[11px] text-[#aeb6c6]">150 qualified clicks = 1 traffic boost point for tier review</span><span class="bg-white/5 border border-white/8 rounded-4.5 py-1.5 px-3.5 text-[11px] text-[#aeb6c6]">Traffic boost can cover max 25% of each tier requirement</span><span class="bg-white/5 border border-white/8 rounded-4.5 py-1.5 px-3.5 text-[11px] text-[#aeb6c6]">Payouts use the current rolling commission rate when processed</span><span class="bg-white/5 border border-white/8 rounded-4.5 py-1.5 px-3.5 text-[11px] text-[#aeb6c6]">Duplicate, bot, self, VPN, refresh, or spam clicks do not qualify</span><span class="bg-white/5 border border-white/8 rounded-4.5 py-1.5 px-3.5 text-[11px] text-[#aeb6c6]">Higher tiers require minimum actual sales</span><span class="bg-white/5 border border-white/8 rounded-4.5 py-1.5 px-3.5 text-[11px] text-[#aeb6c6]">Customer discount: 3% on eligible affiliate orders</span></div>',1))])]),t("section",null,[e[71]||(e[71]=t("h3",{class:"text-base font-semibold leading-6 text-gray-100 mb-2"},"Last 30 days",-1)),t("div",ts,[p(i,{class:"overflow-visible"},ee({cardBody:P(()=>[t("div",as,[t("div",ss,[p(r,{class:"h-8 w-8",name:"lucide-lab:dollar-sign-circle"})]),t("div",rs,[t("div",null,[t("div",os,[e[64]||(e[64]=t("span",{class:"text-base leading-5 font-medium text-surface-text2 truncate flex items-center gap-1"},"Referrals",-1)),p(l,{description:"This shows the number of payouts completed."})]),s(g).referrals?(c(),_("div",ls,[t("div",is,o(s(g).referrals.value),1),t("div",{class:V(["ml-2 flex text-2xl leading-5 font-semibold self-end",{"text-green-500":s(g).referrals.percentage_change>0,"text-red-500":s(g).referrals.percentage_change<0}])},[s(g).referrals.percentage_change>0?(c(),M(r,{key:0,name:"material-symbols:arrow-upward-rounded"})):S("",!0),s(g).referrals.percentage_change<0?(c(),M(r,{key:1,name:"material-symbols:arrow-downward-rounded"})):S("",!0),t("span",ns,o(s(g).referrals.percentage_change)+" % ",1)],2)])):(c(),_("div",ds,[...e[65]||(e[65]=[t("p",null,"No data",-1)])]))])])])]),_:2},[s(g).referrals?{name:"cardFooter",fn:P(()=>[t("div",us,[p(f,{class:"font-medium text-accent-light hover:text-accent transition ease-in-out duration-150",to:"/affiliate-dashboard/revenue"},{default:P(()=>[...e[66]||(e[66]=[D(" View all ",-1)])]),_:1})])]),key:"0"}:void 0]),1024),p(i,null,ee({cardBody:P(()=>[t("div",cs,[t("div",ms,[p(r,{class:"h-8 w-8",name:"majesticons:cursor-click-line"})]),t("div",xs,[t("div",null,[e[68]||(e[68]=t("div",{class:"text-base leading-5 font-medium text-surface-text2 truncate"},"Visits",-1)),s(g).visits?(c(),_("div",fs,[t("div",vs,o(s(g).visits.value),1),t("div",{class:V(["ml-2 flex text-2xl leading-5 font-semibold self-end",{"text-green-500":s(g).visits.percentage_change>0,"text-red-500":s(g).visits.percentage_change<0}])},[s(g).visits.percentage_change>0?(c(),M(r,{key:0,name:"material-symbols:arrow-upward-rounded"})):S("",!0),s(g).visits.percentage_change<0?(c(),M(r,{key:1,name:"material-symbols:arrow-downward-rounded"})):S("",!0),t("span",ps,o(s(g).visits.percentage_change)+" % ",1)],2)])):(c(),_("div",bs,[...e[67]||(e[67]=[t("p",null,"No data",-1)])]))])])])]),_:2},[s(g).visits?{name:"cardFooter",fn:P(()=>[t("div",gs,[p(f,{class:"font-medium text-accent-light hover:text-accent transition ease-in-out duration-150",to:"/affiliate-dashboard/tracking"},{default:P(()=>[...e[69]||(e[69]=[D(" View all ",-1)])]),_:1})])]),key:"0"}:void 0]),1024),s(g).conversion_rate?(c(),M(i,{key:0},{cardBody:P(()=>[t("div",hs,[t("div",_s,[p(r,{class:"h-8 w-8",name:"mingcute:balance-line"}
2)]),t("div",ys,[t("div",null,[e[70]||(e[70]=t("div",{class:"text-base leading-5 font-medium text-surface-text2 truncate"}," Conversion Rate ",-1)),t("div",ws,[t("div",ks,o(s(g).conversion_rate.value)+"% ",1),t("div",{class:V(["ml-2 flex text-2xl leading-5 font-semibold self-end",{"text-green-500":s(g).conversion_rate.percentage_change>0,"text-red-500":s(g).conversion_rate.percentage_change<0}])},[s(g).conversion_rate.percentage_change>0?(c(),M(r,{key:0,name:"material-symbols:arrow-upward-rounded"})):S("",!0),s(g).conversion_rate.percentage_change<0?(c(),M(r,{key:1,name:"material-symbols:arrow-downward-rounded"})):S("",!0),t("span",Ps,o(s(g).conversion_rate.percentage_change)+" % ",1)],2)])])])])]),_:1})):S("",!0)])]),t("section",null,[e[79]||(e[79]=t("h3",{class:"text-base font-semibold leading-6 text-gray-100 mb-2"},"All-time",-1)),t("div",Ts,[p(i,null,ee({cardBody:P(()=>[t("div",Ss,[t("div",$s,[p(r,{class:"h-8 w-8",name:"lucide-lab:dollar-sign-circle"})]),t("div",Cs,[t("div",null,[e[73]||(e[73]=t("div",{class:"text-base leading-5 font-medium text-surface-text2 truncate"},"Referrals",-1)),s(h).referrals?(c(),_("div",Ms,[t("div",qs,[t("div",Ds,o(s(h).referrals.value),1),t("div",{class:V(["ml-2 flex text-2xl leading-5 font-semibold self-end",{"text-green-500":s(h).referrals.percentage_change>0,"text-red-500":s(h).referrals.percentage_change<0}])},[s(h).referrals.percentage_change>0?(c(),M(r,{key:0,name:"material-symbols:arrow-upward-rounded"})):S("",!0),s(h).referrals.percentage_change<0?(c(),M(r,{key:1,name:"material-symbols:arrow-downward-rounded"})):S("",!0),t("span",Os,o(s(h).referrals.percentage_change)+" % ",1)],2)])])):(c(),_("div",Ns,[...e[72]||(e[72]=[t("p",null,"No data",-1)])]))])])])]),_:2},[s(h).referrals?{name:"cardFooter",fn:P(()=>[t("div",Vs,[p(f,{class:"font-medium text-accent-light hover:text-accent transition ease-in-out duration-150",to:"/affiliate-dashboard/revenue"},{default:P(()=>[...e[74]||(e[74]=[D(" View all ",-1)])]),_:1})])]),key:"0"}:void 0]),1024),p(i,null,ee({cardBody:P(()=>[t("div",Rs,[t("div",As,[p(r,{class:"h-8 w-8",name:"majesticons:cursor-click-line"})]),t("div",Ls,[t("div",null,[e[76]||(e[76]=t("div",{class:"text-base leading-5 font-medium text-surface-text2 truncate"},"Visits",-1)),s(h).visits?(c(),_("div",Bs,[t("div",Is,o(s(h).visits.value),1),t("div",{class:V(["ml-2 flex text-2xl leading-5 font-semibold self-end",{"text-green-500":s(h).visits.percentage_change>0,"text-red-500":s(h).visits.percentage_change<0}])},[s(h).visits.percentage_change>0?(c(),M(r,{key:0,name:"material-symbols:arrow-upward-rounded"})):S("",!0),s(h).visits.percentage_change<0?(c(),M(r,{key:1,name:"material-symbols:arrow-downward-rounded"})):S("",!0),t("span",js,o(s(h).visits.percentage_change)+" % ",1)],2)])):(c(),_("div",Es,[...e[75]||(e[75]=[t("p",null,"No data",-1)])]))])])])]),_:2},[s(h).visits?{name:"cardFooter",fn:P(()=>[t("div",Fs,[p(f,{class:"font-medium text-accent-light hover:text-accent transition ease-in-out duration-150",to:"/affiliate-dashboard/tracking"},{default:P(()=>[...e[77]||(e[77]=[D(" View all ",-1)])]),_:1})])]),key:"0"}:void 0]),1024),s(h).conversion_rate?(c(),M(i,{key:0},{cardBody:P(()=>[t("div",Ys,[t("div",Us,[p(r,{class:"h-8 w-8",name:"mingcute:balance-line"})]),t("div",Hs,[t("div",null,[e[78]||(e[78]=t("div",{class:"text-base leading-5 font-medium text-surface-text2 truncate"}," Conversion Rate ",-1)),t("div",Qs,[t("div",Ws,o(s(h).conversion_rate.value)+"% ",1),t("div",{class:V(["ml-2 flex text-2xl leading-5 font-semibold self-end",{"text-green-500":s(h).conversion_rate.percentage_change>0,"text-red-500":s(h).conversion_rate.percentage_change<0}])},[s(h).conversion_rate.percentage_change>0?(c(),M(r,{key:0,name:"material-symbols:arrow-upward-rounded"})):S("",!0),s(h).conversion_rate.percentage_change<0?(c(),M(r,{key:1,name:"material-symbols:arrow-downward-rounded"})):S("",!0),t("span",zs,o(s(h).conversion_rate.percentage_change)+" % ",1)],2)])])])])]),_:1})):S("",!0)])]),t("section",null,[e[80]||(e[80]=t("h3",{class:"text-base font-semibold leading-6 text-gray-100 mb-7"},"Recent referral activity",-1)),s(X).length?(c(),_("div",Gs,[p(T,{schema:ze,rows:s(Ge),"allow-sorting":!1},null,8,["rows"]),s(be)>1?(c(),_("div",Ks,[p(st,{"current-page":s(le),"total-pages":s(be),onPageChange:Ke},null,8,["current-page","total-pages"])])):S("",!0)])):(c(),_("p",Zs,"No data"))]),t("section",Js,[e[87]||(e[87]=t("h3",{class:"font-semibold leading-6 text-gray-100 mb-4 text-base"},"Statistics",-1)),s(Ze)?(c(),_(Q,{key:0},[t("div",Xs,[p(i,null,{cardBody:P(()=>[t("div",er,[t("div",tr,[t("div",null,[e[81]||(e[81]=t("div",{class:"text-base leading-5 font-medium text-surface-text2 truncate"}," Unpaid referrals ",-1)),t("div",ar,[t("div",sr,o(s(B).unpaid_referrals),1)])])])])]),_:1}),p(i,null,{cardBody:P(()=>[t("div",rr,[t("div",or,[t("div",null,[e[82]||(e[82]=t("div",{class:"text-base leading-5 font-medium text-surface-text2 truncate"}," Paid referrals ",-1)),t("div",lr,[t("div",ir,o(s(B).paid_referrals),1)])])])])]),_:1}),p(i,null,{cardBody:P(()=>[t("div",nr,[t("div",dr,[t("div",null,[e[83]||(e[83]=t("div",{class:"text-base leading-5 font-medium text-surface-text2 truncate"},"Visits",-1)),t("div",ur,[t("div",cr,o(s(B).visits),1)])])])])]),_:1}),p(i,null,{cardBody:P(()=>[t("div",mr,[t("div",xr,[t("div",null,[e[84]||(e[84]=t("div",{class:"text-base leading-5 font-medium text-surface-text2 truncate"}," Conversion rate ",-1)),t("div",fr,[t("div",vr,o(s(B).conversion_rate)+"% ",1)])])])])]),_:1})]),t("div",pr,[p(i,null,{cardBody:P(()=>[t("div",br,[t("div",gr,[t("div",null,[e[85]||(e[85]=t("div",{class:"text-base leading-5 font-medium text-surface-text2 truncate"}," Unpaid earnings ",-1)),t("div",hr,[t("div",_r,o(("toCurrency"in a?a.toCurrency:s(ne))(s(B).unpaid_referrals_price)),1)])])])])]),_:1}),p(i,null,{cardBody:P(()=>[t("div",yr,[t("div",wr,[t("div",null,[e[86]||(e[86]=t("div",{class:"text-base leading-5 font-medium text-surface-text2 truncate"}," Paid earnings ",-1)),t("div",kr,[t("div",Pr,o(("toCurrency"in a?a.toCurrency:s(ne))(s(B).paid_referrals_price)),1)])])])])]),_:1})])],64)):(c(),_("p",Tr,"No data yet."))]),t("section",Sr,[e[88]||(e[88]=t("h2",{class:"text-base font-semibold leading-6 text-gray-100 mb-3"},"Earnings",-1)),t("form",{class:"mb-4",onSubmit:e[20]||(e[20]=nt(()=>{},["prevent"]))},[t("div",$r,[t("div",Cr,[I(t("select",{"onUpdate:modelValue":e[19]||(e[19]=n=>
2Te(H)?H.value=n:null),class:"block md:text-sm md:leading-5 w-full py-2 px-3 border rounded-lg transition-[border-color,opacity] duration-150 ease-in-out bg-surface-700 border-white/12 text-gray-100 focus:border-accent focus:ring-3 focus:ring-offset-0 focus:ring-accent/30 h-full"},[(c(),_(Q,null,ce(Xe,n=>t("option",{key:n.key,value:n.key},o(n.label),9,Mr)),64))],512),[[$e,s(H)]])])])],32),t("div",qr,[p(rt,{data:s(Pe),options:s(et)},null,8,["data","options"])])])])}}};export{jr 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.