PageSourceSearch

https://swellr-v1.lovable.app/assets/AffiliateSettings-AsovNbUd.js

js swellr-v1.lovable.app collected 2026-10-03 03:41:45 UTC 42,287 bytes, 11 lines download raw bytes

1import{j as e}from"./vendor-motion-RceBBME-.js";import{r as j}from"./vendor-react-Cpi2Ks0G.js";import{T as je,a as pe,b as P,c as A}from"./tabs-G_WLgzjx.js";import{C as f,d as g,a as v,b as N,c as C}from"./card-nKswJroL.js";import{B as l}from"./button-BiJAJ1Tz.js";import{I as x}from"./input-BECoW2S1.js";import{L as a}from"./label-B39E-Xp_.js";import{S as b}from"./switch-Cy8C8RPJ.js";import{S as Y}from"./separator-B2kxtEih.js";import{B as L}from"./badge-BQCCM2eH.js";import{S as D,a as T,b as E,c as I,d as r}from"./select-DiCednQ_.js";import{T as fe}from"./textarea-DatjbmWi.js";import{D as re,f as le,a as ie,b as te,c as de,d as ne,e as ce}from"./dialog-pvc1kmrl.js";import{A as z,g as _,a as H,b as J,c as q,d as K,e as G,h as Z,f as Q}from"./alert-dialog-Cimx-Se3.js";import{c as oe,a as me,J as h}from"./index-CuHhDV_q.js";import{a as $,A as W}from"./aiSubscriptionStore-CaJSm9m8.js";import{v as ge}from"./verified-self-_hurnbXB.js";import{a as ve,v as Ne}from"./verified-shield-silver-Bhho9Wcj.js";import{C as ee}from"./credit-card-KtK6uEtZ.js";import{S as ye}from"./shield-check-HQjEh3BS.js";import{C as X}from"./circle-check-DETR54tX.js";import{C as be}from"./crown-C3UJCeZU.js";import{Z as we}from"./zap-qlJeuE4A.js";import{R as Ce}from"./receipt-BKJqlKh5.js";import{D as U}from"./download-B7iqmZp5.js";import{U as Se}from"./user-JKtgybiw.js";import{K as ke}from"./key-round-tmga_iTa.js";import{S as xe}from"./shield-DNoAOhUy.js";import{S as Pe}from"./smartphone-CKRLx2PB.js";import{P as Ae}from"./phone-Ct6lXhsz.js";import{B as he}from"./BarChart-Ce0nIzDN.js";import{P as De}from"./plus-B2icQ6RX.js";import{T as Te}from"./trash-2-1rROh1e2.js";import{L as ue}from"./lock-Bn15UC86.js";import{C as se}from"./clock-BmNZo1cH.js";import{B as Ee}from"./briefcase-C_p8xf8x.js";import{F as ae}from"./file-text-TCW5NLt7.js";import{P as Ie}from"./palette-BQmHVaOU.js";import{E as Le}from"./eye-BoHPKfBp.js";import{T as Me}from"./triangle-alert-C4IVyoL4.js";import{C as Re}from"./circle-x-CV5evaY5.js";import{D as Ve}from"./dollar-sign-s4Z8pbwq.js";import{U as We}from"./users-Dp-2fWVf.js";import{P as Fe}from"./package-74liJvYp.js";import{M as Xe}from"./megaphone-AUfOczPg.js";import"./vendor-ui-yq6YCGL7.js";import"./index-CtLszrr5.js";import"./index-DzV9ckze.js";import"./index-BV2lXKv2.js";import"./index-BdQq_4o_.js";import"./chevron-down-IJubUJQM.js";import"./chevron-up-DMNzfOqp.js";import"./check-DqHYiXQ9.js";import"./vendor-query-CHQx1s1n.js";import"./vendor-router-CP1d-ni5.js";import"./value-3LWPH8SZ.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Ye=oe("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const Ue=oe("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]),F={verified:{name:"Verified",price:5,badge:ge,color:"from-emerald-500 to-green-600",perks:["Green Verified badge","Trust signal across Swellr","Faster program approvals"]},plus:{name:"Verified Plus",price:19,badge:ve,color:"from-blue-500 to-indigo-600",perks:["Everything in Verified","Audience verification badge","Priority program matching"]},pro:{name:"Verified Pro",price:49,badge:Ne,color:"from-slate-400 to-slate-600",perks:["Everything in Plus","Silver Shield credential","Top-of-network visibility","Concierge support"]}},Be=[{id:"INV-1042",date:"Apr 1, 2026",amount:34,items:"Verified + AI Pro"},{id:"INV-1031",date:"Mar 1, 2026",amount:34,items:"Verified + AI Pro"},{id:"INV-1019",date:"Feb 1, 2026",amount:5,items:"Verified"}],Oe=()=>{const[t,d]=j.useState(()=>localStorage.getItem("swellr_verified_tier")||"verified"),[o,i]=j.useState(()=>$.get().tier),u=s=>{d(s),localStorage.setItem("swellr_verified_tier",s),h.success(s==="none"?"Verified subscription canceled":`Switched to ${F[s].name}`)},n=s=>{i(s),s==="free"?($.set({tier:"free"}),h.success("AI subscription canceled")):($.upgrade(s),h.success(`Upgraded to ${W[s].name}`))},c=(t!=="none"?F[t].price:0)+(o!=="free"?W[o].price:0);return e.jsxs("div",{className:"space-y-6",children:[e.jsx(f,{className:"rounded-3xl border-primary/20 bg-gradient-to-br from-primary/5 via-purple-500/5 to-pink-500/5",children:e.jsxs(g,{className:"p-5 sm:p-6 flex items-center justify-between gap-4 flex-col sm:flex-row",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"h-11 w-11 rounded-xl bg-primary/15 flex items-center justify-center shrink-0",children:e.jsx(ee,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Current monthly billing"}),e.jsxs("div",{className:"text-2xl sm:text-3xl font-bold text-slate-800 dark:text-slate-100",children:["$",c,e.jsx("span",{className:"text-sm font-normal text-muted-foreground",children:"/mo"})]}),e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:"Next charge May 1, 2026 · Visa •••• 4242"})]})]}),e.jsx(l,{variant:"outline",className:"rounded-xl",children:"Update payment method"})]})}),e.jsxs(f,{className:"rounded-3xl",children:[e.jsx(v,{children:e.jsxs("div",{className:"flex items-start justify-between flex-wrap gap-3",children:[e.jsxs("div",{children:[e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(ye,{className:"h-5 w-5 text-green-600"}),"Verified Subscription"]}),e.jsx(C,{children:"Trust badges, faster approvals, and premium network visibility."})]}),t!=="none"&&e.jsxs(L,{className:"bg-green-100 text-green-700 border-green-300",children:[e.jsx(X,{className:"h-3 w-3 mr-1"})," Active — ",F[t].name]})]})}),e.jsxs(g,{className:"space-y-4",children:[e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 sm:gap-4",children:Object.keys(F).map(s=>{const p=F[s],y=t===s;return e.jsxs("div",{className:`relative rounded-2xl border p-4 transition-all ${y?"border-primary ring-2 ring-primary/20 bg-primary/5":"border-border hover:border-primary/40"}`,children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("img",{src:p.badge,alt:p.name,className:"h-10 w-10 drop-shadow-sm"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-slate-800 dark:text-slate-100",children:p.name}),e.jsxs("div",{className:"text-sm text-muted-foreground",children:["$",p.price,"/mo"]})]})]}),e.jsx("ul",{className:"space-y-1.5 mb-4",children:p.perks.map(S=>e.jsxs("li",{className:"text-xs text-muted-foreground flex items-start gap-1.5",children:[e.jsx(X,{className:"h-3 w-3 text-green-500 mt-0.5 shrink-0"}),S]},S))}),e.jsx(l,{size:"sm",variant:y?"secondary":"default",className:"w-full rounded-xl",onClick:()=>u(s),disabled:y,children:y?"Current plan":t==="none"?"Subscribe":"Switch"})]},s)})}),t!=="none"&&e.jsx("div",{className:"flex justify-end",children:e.jsx(l,{variant:"ghost",size:"sm",className:"text-muted-foreground",onClick:()=>u("none"),children:"Cancel Verified subscription"})})]})]}),e.jsxs(f,{className:"rounded-3xl",children:[e.jsx(v,{children:e.jsxs("div",{className:"flex items-start justify-between flex-wrap gap-3",children:[e.jsxs("div",{children:[e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(me,{className:"h-5 w-5 text-primary"}),"AI Credits Subscription"]}),e.jsx(C,{children:"Unlock AI content, coaching, forecasting, and autonomous campaigns."})]}),o!=="free"&&e.jsxs(L,{className:"bg-primary/15 text-primary border-primary/30",children:[o==="elite"?e.jsx(be,{className:"h-3 w-3 mr-1"}):e.jsx(we,{className:"h-3 w-3 mr-1"}),"Active — ",W[o].name]})]})}),e.jsx(g,{className:"space-y-4",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 sm:gap-4",children:Object.keys(W).map(s=>{const p=W[s],y=o===s;return e.jsxs("div",{className:`relative rounded-2xl border p-4 transition-all ${y?"border-primary ring-2 ring-primary/20 bg-primary/5":"border-border hover:border-primary/40"}`,children:[e.jsx("div",{className:"font-semibold text-slate-800 dark:text-slate-100",children:p.name}),e.jsx("div",{className:"text-sm text-muted-foreground mb-3",children:p.price===0?"Free":`$${p.price}/mo`}),e.jsx("ul",{className:"space-y-1.5 mb-4 min-h-[80px]",children:p.features.slice(0,4).map(S=>e.jsxs("li",{className:"text-xs text-muted-foreground flex items-start gap-1.5",children:[e.jsx(X,{className:"h-3 w-3 text-green-500 mt-0.5 shrink-0"}),S]},S))}),e.jsx(l,{size:"sm",variant:y?"secondary":"default",className:"w-full rounded-xl",onClick:()=>n(s),disabled:y,children:y?"Current plan":s==="free"?"Downgrade":"Subscribe"})]},s)})})})]}),e.jsxs(f,{className:"rounded-3xl",children:[e.jsxs(v,{children:[e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(Ce,{className:"h-5 w-5 text-muted-foreground"}),"Billing History"]}),e.jsx(C,{children:"Download past invoices and receipts."})]}),e.jsx(g,{children:e.jsx("div",{className:"divide-y",children:Be.map(s=>e.jsxs("div",{className:"flex items-center justify-between py-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"font-medium text-slate-800 dark:text-slate-100",children:s.id}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[s.date," · ",s.items]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("span",{className:"font-semibold text-slate-800 dark:text-slate-100",children:["$",s.amount,".00"]}),e.jsx(l,{variant:"ghost",size:"sm",className:"rounded-lg",children:e.jsx(U,{className:"h-4 w-4"})})]})]},s.id))})})]})]})},$e=[{id:"p1",name:"10X Health Affiliate",brand:"10X Health",status:"active",joinedAt:"2024-08-12",commissionRate:"20%"},{id:"p2",name:"Swellr Recruiting Network",brand:"Swellr",status:"active",joinedAt:"2024-09-01",commissionRate:"$50 / signup"}
11,{id:"p3",name:"EventWave Partner",brand:"EventWave",status:"pending",joinedAt:"2024-10-22",commissionRate:"15%"},{id:"p4",name:"Acme Wellness",brand:"Acme",status:"cancelled",joinedAt:"2024-03-04",commissionRate:"12%"}],ze=[{id:"a1",type:"bank",label:"Chase Checking",detail:"****4421",primary:!0},{id:"a2",type:"paypal",label:"PayPal",detail:"[email protected]",primary:!1}],aa=()=>{const[t,d]=j.useState("account");return e.jsxs("div",{className:"space-y-6 px-1 sm:p-4 md:p-6 max-w-7xl mx-auto",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold text-slate-800",children:"Settings"}),e.jsx("p",{className:"text-sm sm:text-base text-muted-foreground mt-1",children:"Manage your account, payouts, programs, taxes, and notifications"})]}),e.jsxs(je,{value:t,onValueChange:d,className:"space-y-6",children:[e.jsx("div",{className:"overflow-x-auto overflow-y-hidden -mx-1 px-1",children:e.jsxs(pe,{className:"inline-flex w-auto md:grid md:w-full md:grid-cols-8 rounded-xl",children:[e.jsx(P,{value:"account",children:"Account"}),e.jsx(P,{value:"security",children:"Security"}),e.jsx(P,{value:"billing",children:"Billing"}),e.jsx(P,{value:"payouts",children:"Payouts"}),e.jsx(P,{value:"programs",children:"Programs"}),e.jsx(P,{value:"tax",children:"Tax & W-9"}),e.jsx(P,{value:"notifications",children:"Notifications"}),e.jsx(P,{value:"preferences",children:"Preferences"})]})}),e.jsx(A,{value:"account",children:e.jsx(_e,{})}),e.jsx(A,{value:"security",children:e.jsx(He,{})}),e.jsx(A,{value:"billing",children:e.jsx(Oe,{})}),e.jsx(A,{value:"payouts",children:e.jsx(Je,{})}),e.jsx(A,{value:"programs",children:e.jsx(qe,{})}),e.jsx(A,{value:"tax",children:e.jsx(Ke,{})}),e.jsx(A,{value:"notifications",children:e.jsx(Ze,{})}),e.jsx(A,{value:"preferences",children:e.jsx(Qe,{})})]})]})},_e=()=>e.jsxs(f,{className:"rounded-3xl",children:[e.jsxs(v,{children:[e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(Se,{className:"h-5 w-5"})," Account Information"]}),e.jsx(C,{children:"Update your personal details and contact information"})]}),e.jsxs(g,{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"First Name"}),e.jsx(x,{defaultValue:"RJ"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Last Name"}),e.jsx(x,{defaultValue:""})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Display Name (shown on leaderboards)"}),e.jsx(x,{defaultValue:"RJ"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Email"}),e.jsx(x,{type:"email",defaultValue:"[email protected]"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Phone"}),e.jsx(x,{defaultValue:"+1 (555) 123-4567"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Bio"}),e.jsx(fe,{placeholder:"Tell brands about yourself, your audience, and your niche...",rows:3})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Time Zone"}),e.jsxs(D,{defaultValue:"america/los_angeles",children:[e.jsx(T,{children:e.jsx(E,{})}),e.jsxs(I,{children:[e.jsx(r,{value:"america/los_angeles",children:"Pacific (Los Angeles)"}),e.jsx(r,{value:"america/denver",children:"Mountain (Denver)"}),e.jsx(r,{value:"america/chicago",children:"Central (Chicago)"}),e.jsx(r,{value:"america/new_york",children:"Eastern (New York)"}),e.jsx(r,{value:"europe/london",children:"London"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Country"}),e.jsx(x,{defaultValue:"United States"})]})]}),e.jsx(l,{onClick:()=>h.success("Account info saved"),children:"Save Changes"})]})]}),He=()=>{const[t,d]=j.useState(!0),[o,i]=j.useState(!0),[u,n]=j.useState(!1);return e.jsxs("div",{className:"space-y-6",children:[e.jsxs(f,{className:"rounded-3xl",children:[e.jsxs(v,{children:[e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(ke,{className:"h-5 w-5"})," Password"]}),e.jsx(C,{children:"Use a strong, unique password"})]}),e.jsxs(g,{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Current Password"}),e.jsx(x,{type:u?"text":"password",placeholder:"••••••••"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"New Password"}),e.jsx(x,{type:u?"text":"password",placeholder:"••••••••"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Confirm New Password"}),e.jsx(x,{type:u?"text":"password",placeholder:"••••••••"})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(b,{checked:u,onCheckedChange:n,id:"show-pwd"}),e.jsx(a,{htmlFor:"show-pwd",className:"text-sm",children:"Show passwords"})]}),e.jsx(l,{onClick:()=>h.success("Password updated"),children:"Update Password"})]})]})]}),e.jsxs(f,{className:"rounded-3xl",children:[e.jsxs(v,{children:[e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(xe,{className:"h-5 w-5"})," Two-Factor Authentication"]}),e.jsx(C,{children:"Add an extra layer of security to your account"})]}),e.jsxs(g,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-xl",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Pe,{className:"h-5 w-5 text-blue-600"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold",children:"Authenticator App"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Use Google Authenticator, Authy, or 1Password"})]})]}),e.jsx(b,{checked:t,onCheckedChange:c=>{d(c),h.success(c?"2FA enabled":"2FA disabled")}})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-xl",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Ae,{className:"h-5 w-5 text-emerald-600"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold",children:"SMS Backup"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive codes via text message"})]})]}),e.jsx(b,{defaultChecked:!0})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-xl",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(he,{className:"h-5 w-5 text-amber-600"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold",children:"Login Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Email me when a new device signs in"})]})]}),e.jsx(b,{checked:o,onCheckedChange:i})]}),e.jsx(Y,{}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold mb-2",children:"Active Sessions"}),e.jsx("div",{className:"space-y-2",children:[{device:"MacBook Pro · Chrome",location:"Los Angeles, CA",current:!0},{device:"iPhone 15 · Safari",location:"Los Angeles, CA",current:!1}].map((c,s)=>e.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"text-sm font-medium",children:[c.device," ",c.current&&e.jsx(L,{variant:"secondary",className:"ml-2",children:"Current"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:c.location})]}),!c.current&&e.jsx(l,{variant:"ghost",size:"sm",onClick:()=>h.success("Session revoked"),children:"Revoke"})]},s))})]})]})]})]})},Je=()=>{const[t,d]=j.useState(ze),[o,i]=j.useState(!1),[u,n]=j.useState("bank"),[c,s]=j.useState(""),[p,y]=j.useState(""),S=()=>
11{if(!c||!p){h.error("Fill in all fields");return}d(m=>[...m,{id:`a${Date.now()}`,type:u,label:c,detail:p,primary:!1}]),s(""),y(""),i(!1),h.success("Payout method added")},B=m=>{d(R=>R.map(M=>({...M,primary:M.id===m}))),h.success("Primary payout updated")},O=m=>{d(R=>R.filter(M=>M.id!==m)),h.success("Payout method removed")};return e.jsxs(f,{className:"rounded-3xl",children:[e.jsxs(v,{className:"flex flex-row items-center justify-between",children:[e.jsxs("div",{children:[e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(ee,{className:"h-5 w-5"})," Linked Payout Accounts"]}),e.jsx(C,{children:"Manage where your commissions are paid"})]}),e.jsxs(re,{open:o,onOpenChange:i,children:[e.jsx(le,{asChild:!0,children:e.jsxs(l,{className:"justify-center",children:[e.jsx(De,{className:"h-4 w-4 mr-1"})," Add"]})}),e.jsxs(ie,{children:[e.jsxs(te,{children:[e.jsx(de,{children:"Add Payout Method"}),e.jsx(ne,{children:"Securely link a new payout account"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Type"}),e.jsxs(D,{value:u,onValueChange:m=>n(m),children:[e.jsx(T,{children:e.jsx(E,{})}),e.jsxs(I,{children:[e.jsx(r,{value:"bank",children:"Bank Account (ACH)"}),e.jsx(r,{value:"paypal",children:"PayPal"}),e.jsx(r,{value:"venmo",children:"Venmo"}),e.jsx(r,{value:"wise",children:"Wise (International)"}),e.jsx(r,{value:"crypto",children:"Crypto Wallet (USDC)"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Label"}),e.jsx(x,{value:c,onChange:m=>s(m.target.value),placeholder:"e.g. Chase Checking"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:u==="bank"?"Account Number (last 4)":u==="crypto"?"Wallet Address":"Email / Handle"}),e.jsx(x,{value:p,onChange:m=>y(m.target.value),placeholder:"••••"})]})]}),e.jsxs(ce,{children:[e.jsx(l,{variant:"outline",onClick:()=>i(!1),children:"Cancel"}),e.jsx(l,{onClick:S,children:"Add Securely"})]})]})]})]}),e.jsxs(g,{className:"space-y-3",children:[t.length===0&&e.jsx("p",{className:"text-sm text-muted-foreground text-center py-6",children:"No payout methods yet. Add one to get paid."}),t.map(m=>e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 p-4 border rounded-xl",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("div",{className:"h-10 w-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:e.jsx(ee,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("p",{className:"font-semibold truncate",children:m.label}),m.primary&&e.jsx(L,{children:"Primary"})]}),e.jsxs("p",{className:"text-sm text-muted-foreground capitalize truncate",children:[m.type," · ",m.detail]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 sm:flex-shrink-0",children:[!m.primary&&e.jsx(l,{variant:"outline",size:"sm",onClick:()=>B(m.id),className:"flex-1 sm:flex-none",children:"Set Primary"}),e.jsx(l,{variant:"ghost",size:"sm",onClick:()=>O(m.id),children:e.jsx(Te,{className:"h-4 w-4 text-destructive"})})]})]},m.id)),e.jsxs("div",{className:"mt-4 p-4 bg-muted/40 rounded-xl flex gap-3",children:[e.jsx(ue,{className:"h-5 w-5 text-muted-foreground flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"All payout details are encrypted and processed via Tipalti / Trolley. We never store full account numbers."})]})]})]})},qe=()=>{const[t,d]=j.useState($e),o=n=>{d(c=>c.map(s=>s.id===n?{...s,status:"cancelled"}:s)),h.success("You have left the program")},i=n=>{d(c=>c.map(s=>s.id===n?{...s,status:"pending"}:s)),h.success("Application resubmitted")},u=[{key:"active",title:"Current Programs",description:"Programs you are actively promoting",icon:e.jsx(X,{className:"h-5 w-5 text-emerald-600"})},{key:"pending",title:"Pending Approval",description:"Awaiting brand review",icon:e.jsx(se,{className:"h-5 w-5 text-amber-600"})},{key:"cancelled",title:"Cancelled / Past Programs",description:"You can reapply anytime",icon:e.jsx(Re,{className:"h-5 w-5 text-rose-600"})}];return e.jsx("div",{className:"space-y-6",children:u.map(n=>{const c=t.filter(s=>s.status===n.key);return e.jsxs(f,{className:"rounded-3xl",children:[e.jsxs(v,{children:[e.jsxs(N,{className:"flex items-center gap-2",children:[n.icon," ",n.title," ",e.jsx(L,{variant:"secondary",children:c.length})]}),e.jsx(C,{children:n.description})]}),e.jsxs(g,{className:"space-y-3",children:[c.length===0&&e.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:"None"}),c.map(s=>e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-xl",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:s.name}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[s.brand," · ",s.commissionRate," · Joined ",new Date(s.joinedAt).toLocaleDateString()]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[n.key==="active"&&e.jsxs(z,{children:[e.jsx(_,{asChild:!0,children:e.jsx(l,{variant:"outline",size:"sm",children:"Leave Program"})}
11),e.jsxs(H,{children:[e.jsxs(J,{children:[e.jsxs(q,{children:["Leave ",s.name,"?"]}),e.jsx(K,{children:"You'll lose access to assets and links. Pending commissions will still be paid out per the brand's policy."})]}),e.jsxs(G,{children:[e.jsx(Z,{children:"Cancel"}),e.jsx(Q,{onClick:()=>o(s.id),children:"Leave Program"})]})]})]}),n.key==="pending"&&e.jsxs(l,{variant:"ghost",size:"sm",disabled:!0,children:[e.jsx(se,{className:"h-4 w-4 mr-1"})," Awaiting"]}),n.key==="cancelled"&&e.jsxs(l,{size:"sm",onClick:()=>i(s.id),children:[e.jsx(Ue,{className:"h-4 w-4 mr-1"})," Reapply"]})]})]},s.id))]})]},n.key)})})},Ke=()=>{const[t,d]=j.useState(!1),[o,i]=j.useState(!1),[u,n]=j.useState("individual"),[c,s]=j.useState(""),p=j.useRef(null),[y,S]=j.useState(!1),B=w=>{const V=p.current;if(!V)return;const k=V.getContext("2d");k&&(S(!0),k.beginPath(),k.moveTo(w.nativeEvent.offsetX,w.nativeEvent.offsetY))},O=w=>{if(!y)return;const V=p.current;if(!V)return;const k=V.getContext("2d");k&&(k.lineWidth=2,k.lineCap="round",k.strokeStyle="#0f172a",k.lineTo(w.nativeEvent.offsetX,w.nativeEvent.offsetY),k.stroke())},m=()=>S(!1),R=()=>{const w=p.current;w&&w.getContext("2d")?.clearRect(0,0,w.width,w.height)},M=()=>{if(!c.trim()){h.error("Please type your full legal name to sign");return}i(!0),d(!1),h.success("W-9 submitted securely")};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs(f,{className:"rounded-3xl",children:[e.jsxs(v,{children:[e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(Ee,{className:"h-5 w-5"})," Tax Information"]}),e.jsx(C,{children:"Required for IRS reporting (1099-NEC) on US earnings over $600/year"})]}),e.jsxs(g,{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Legal Name"}),e.jsx(x,{defaultValue:"RJ Smith"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Business / Company Name (optional)"}),e.jsx(x,{defaultValue:"Cyber Inc"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Federal Tax Classification"}),e.jsxs(D,{value:u,onValueChange:n,children:[e.jsx(T,{children:e.jsx(E,{})}),e.jsxs(I,{children:[e.jsx(r,{value:"individual",children:"Individual / Sole Proprietor"}),e.jsx(r,{value:"llc-single",children:"Single-Member LLC"}),e.jsx(r,{value:"llc-c",children:"LLC (C-Corp)"}),e.jsx(r,{value:"llc-s",children:"LLC (S-Corp)"}),e.jsx(r,{value:"c-corp",children:"C Corporation"}),e.jsx(r,{value:"s-corp",children:"S Corporation"}),e.jsx(r,{value:"partnership",children:"Partnership"})]})]})]}),e.jsx(Y,{}),e.jsx("h4",{className:"font-semibold",children:"Mailing Address"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Street Address"}),e.jsx(x,{defaultValue:"",placeholder:"123 Main St"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"City"}),e.jsx(x,{placeholder:"Los Angeles"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"State"}),e.jsx(x,{placeholder:"CA"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"ZIP"}),e.jsx(x,{placeholder:"90001"})]})]}),e.jsx(l,{onClick:()=>h.success("Tax info saved"),children:"Save Tax Info"})]})]}),e.jsxs(f,{className:"rounded-3xl border-2 border-primary/20",children:[e.jsxs(v,{children:[e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(ae,{className:"h-5 w-5"})," Form W-9 (Digital)",o?e.jsx(L,{className:"bg-emerald-100 text-emerald-700",children:"Submitted"}):e.jsx(L,{variant:"destructive",children:"Required"})]}),e.jsx(C,{children:"Securely submit your SSN or EIN. Encrypted at rest, never visible to brands."})]}),e.jsx(g,{className:"space-y-3",children:o?e.jsxs("div",{className:"flex items-center justify-between p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(X,{className:"h-6 w-6 text-emerald-600"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-emerald-900",children:"W-9 on file"}),e.jsxs("p",{className:"text-xs text-emerald-700",children:["Submitted ",new Date().toLocaleDateString()]})]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(l,{variant:"outline",size:"sm",children:[e.jsx(U,{className:"h-4 w-4 mr-1"})," Download"]}),e.jsx(l,{variant:"ghost",size:"sm",onClick:()=>i(!1),children:"Update"})]})]}):e.jsxs(re,{open:t,onOpenChange:d,children:[e.jsx(le,{asChild:!0,children:e.jsxs(l,{className:"w-full",children:[e.jsx(ae,{className:"h-4 w-4 mr-2"})," Complete Digital W-9"]})}),e.jsxs(ie,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[e.jsxs(te,{children:[e.jsx(de,{children:"IRS Form W-9 · Request for Taxpayer ID"}),e.jsx(ne,{children:"All fields encrypted. Only used for IRS 1099 reporting."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Name (as shown on tax return) *"}),e.jsx(x,{placeholder:"Full legal name"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Business N
11ame (if different)"}),e.jsx(x,{})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"SSN (Individual) *"}),e.jsx(x,{type:"password",placeholder:"XXX-XX-XXXX",maxLength:11})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"OR EIN (Business)"}),e.jsx(x,{type:"password",placeholder:"XX-XXXXXXX",maxLength:10})]})]}),e.jsxs("div",{className:"p-3 bg-amber-50 border border-amber-200 rounded-lg flex gap-2",children:[e.jsx(ue,{className:"h-4 w-4 text-amber-700 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-xs text-amber-900",children:"Your tax ID is encrypted with AES-256 and only decrypted for end-of-year 1099 generation."})]}),e.jsx(Y,{}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Certification & Signature *"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Under penalties of perjury, I certify that the number shown is correct, I am not subject to backup withholding, and I am a U.S. person."}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{className:"text-xs",children:"Type your full legal name to sign"}),e.jsx(x,{value:c,onChange:w=>s(w.target.value),placeholder:"Full legal name",className:"font-serif italic text-lg"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{className:"text-xs",children:"Or draw your signature"}),e.jsx("div",{className:"border-2 border-dashed rounded-lg bg-white",children:e.jsx("canvas",{ref:p,width:500,height:120,className:"w-full cursor-crosshair touch-none",onMouseDown:B,onMouseMove:O,onMouseUp:m,onMouseLeave:m})}),e.jsx(l,{variant:"ghost",size:"sm",onClick:R,children:"Clear Signature"})]})]})]}),e.jsxs(ce,{children:[e.jsx(l,{variant:"outline",onClick:()=>d(!1),children:"Cancel"}),e.jsx(l,{onClick:M,children:"Submit Securely"})]})]})]})})]})]})},Ge=({label:t,defaultOn:d})=>{const[o,i]=j.useState(d);return e.jsxs("button",{type:"button",onClick:()=>i(u=>!u),"aria-pressed":o,className:`inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-xs font-medium transition-colors ${o?"bg-primary text-primary-foreground border-primary":"bg-background text-muted-foreground border-border hover:bg-muted/50"}`,children:[e.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${o?"bg-primary-foreground":"bg-muted-foreground/40"}`}),t]})},Ze=()=>{const t=[{title:"Earnings & Sales",icon:e.jsx(Ve,{className:"h-5 w-5 text-emerald-600"}),items:[{id:"sale",label:"New Sale",desc:"When a referral converts into a sale",defEmail:!0,defSms:!0,defPush:!0},{id:"commission",label:"Commission Earned",desc:"Anytime a commission is credited to your account",defEmail:!0,defSms:!1,defPush:!0},{id:"payment",label:"Payment Sent",desc:"When a payout is processed",defEmail:!0,defSms:!0,defPush:!0},{id:"chargeback",label:"Chargeback / Refund",desc:"When a sale is reversed",defEmail:!0,defSms:!1,defPush:!0},{id:"milestone",label:"Earnings Milestones",desc:"First $100, $1K, $10K, etc.",defEmail:!0,defSms:!1,defPush:!0}]}
11,{title:"Referrals & Network",icon:e.jsx(We,{className:"h-5 w-5 text-blue-600"}),items:[{id:"new-ref",label:"New Referral Click",desc:"Daily summary of link activity",defEmail:!1,defSms:!1,defPush:!1},{id:"sub-affiliate",label:"Sub-Affiliate Joined",desc:"When someone signs up under you",defEmail:!0,defSms:!1,defPush:!0},{id:"sub-sale",label:"Sub-Affiliate Sale",desc:"When your downline earns a commission",defEmail:!0,defSms:!1,defPush:!1}]},{title:"Programs & Inventory",icon:e.jsx(Fe,{className:"h-5 w-5 text-purple-600"}),items:[{id:"approved",label:"Program Approval",desc:"When a brand approves your application",defEmail:!0,defSms:!0,defPush:!0},{id:"denied",label:"Program Decision",desc:"Approval or rejection updates",defEmail:!0,defSms:!1,defPush:!0},{id:"new-product",label:"New Product / Inventory",desc:"When a brand adds new products to promote",defEmail:!0,defSms:!1,defPush:!0},{id:"price-change",label:"Commission Rate Change",desc:"When a brand updates payout rates",defEmail:!0,defSms:!1,defPush:!0},{id:"program-paused",label:"Program Status Change",desc:"When a program pauses or ends",defEmail:!0,defSms:!0,defPush:!0}]},{title:"Marketplace & Promotions",icon:e.jsx(Xe,{className:"h-5 w-5 text-amber-600"}),items:[{id:"new-marketplace",label:"New Marketplace Offers",desc:"New brands and programs you can join",defEmail:!0,defSms:!1,defPush:!0},{id:"recommended",label:"Recommended for You",desc:"AI-matched programs based on your audience",defEmail:!0,defSms:!1,defPush:!1},{id:"bonus-events",label:"Bonus Events & Contests",desc:"Limited-time commission boosts and leaderboards",defEmail:!0,defSms:!1,defPush:!0},{id:"platform-news",label:"Platform News & Tips",desc:"Product updates, training, and best practices",defEmail:!1,defSms:!1,defPush:!1}]},{title:"Security & Account",icon:e.jsx(xe,{className:"h-5 w-5 text-rose-600"}),items:[{id:"login",label:"New Device Login",desc:"Alerts for new sign-ins",defEmail:!0,defSms:!0,defPush:!0},{id:"pwd-change",label:"Password Changes",desc:"Anytime your password is updated",defEmail:!0,defSms:!0,defPush:!1},{id:"tax-doc",label:"Tax Documents Ready",desc:"When 1099s are available to download",defEmail:!0,defSms:!1,defPush:!0}]}];return e.jsxs(f,{className:"rounded-3xl",children:[e.jsxs(v,{children:[e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(he,{className:"h-5 w-5"})," Notification Preferences"]}),e.jsx(C,{children:"Choose how you want to hear from us across email, SMS, and in-app push"})]}),e.jsxs(g,{className:"space-y-8",children:[t.map((d,o)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[d.icon,e.jsx("h3",{className:"font-semibold text-lg",children:d.title})]}),e.jsxs("div",{className:"border rounded-xl overflow-hidden",children:[e.jsxs("div",{className:"hidden sm:grid grid-cols-12 px-4 py-2 bg-muted/40 text-xs font-semibold text-muted-foreground",children:[e.jsx("div",{className:"col-span-6",children:"Event"}),e.jsx("div",{className:"col-span-2 text-center",children:"Email"}),e.jsx("div",{className:"col-span-2 text-center",children:"SMS"}),e.jsx("div",{className:"col-span-2 text-center",children:"Push"})]}),d.items.map((i,u)=>e.jsxs("div",{className:`px-4 py-3 ${u!==d.items.length-1?"border-b":""}`,children:[e.jsxs("div",{className:"hidden sm:grid grid-cols-12 items-center",children:[e.jsxs("div",{className:"col-span-6",children:[e.jsx("p",{className:"font-medium text-sm",children:i.label}),e.jsx("p",{className:"text-xs text-muted-foreground",children:i.desc})]}),e.jsx("div",{className:"col-span-2 flex justify-center",children:e.jsx(b,{defaultChecked:i.defEmail})}),e.jsx("div",{className:"col-span-2 flex justify-center",children:e.jsx(b,{defaultChecked:i.defSms})}),e.jsx("div",{className:"col-span-2 flex justify-center",children:e.jsx(b,{defaultChecked:i.defPush})})]}),e.jsxs("div",{className:"sm:hidden space-y-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:i.label}),e.jsx("p",{className:"text-xs text-muted-foreground",children:i.desc})]}),e.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:[{label:"Email",def:i.defEmail},{label:"SMS",def:i.defSms},{label:"Push",def:i.defPush}].map(n=>e.jsx(Ge,{label:n.label,defaultOn:n.def},n.label))})]})]},i.id))]})]},o)),e.jsx(Y,{}),e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-xl",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(se,{className:"h-5 w-5 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Qu
11iet Hours"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Pause SMS & push between 10pm – 7am local time"})]})]}),e.jsx(b,{defaultChecked:!0})]}),e.jsx(l,{onClick:()=>h.success("Notification preferences saved"),children:"Save Preferences"})]})]})},Qe=()=>{const[t,d]=j.useState("");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs(f,{className:"rounded-3xl",children:[e.jsx(v,{children:e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(Ie,{className:"h-5 w-5"})," Appearance & Language"]})}),e.jsxs(g,{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Theme"}),e.jsxs(D,{defaultValue:"system",children:[e.jsx(T,{children:e.jsx(E,{})}),e.jsxs(I,{children:[e.jsx(r,{value:"light",children:"Light"}),e.jsx(r,{value:"dark",children:"Dark"}),e.jsx(r,{value:"system",children:"Match System"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(a,{className:"flex items-center gap-1",children:[e.jsx(Ye,{className:"h-4 w-4"})," Language"]}),e.jsxs(D,{defaultValue:"en",children:[e.jsx(T,{children:e.jsx(E,{})}),e.jsxs(I,{children:[e.jsx(r,{value:"en",children:"English"}),e.jsx(r,{value:"es",children:"Español"}),e.jsx(r,{value:"fr",children:"Français"}),e.jsx(r,{value:"de",children:"Deutsch"}),e.jsx(r,{value:"pt",children:"Português"})]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Currency Display"}),e.jsxs(D,{defaultValue:"usd",children:[e.jsx(T,{children:e.jsx(E,{})}),e.jsxs(I,{children:[e.jsx(r,{value:"usd",children:"USD ($)"}),e.jsx(r,{value:"eur",children:"EUR (€)"}),e.jsx(r,{value:"gbp",children:"GBP (£)"}),e.jsx(r,{value:"cad",children:"CAD (C$)"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{children:"Date Format"}),e.jsxs(D,{defaultValue:"us",children:[e.jsx(T,{children:e.jsx(E,{})}),e.jsxs(I,{children:[e.jsx(r,{value:"us",children:"MM/DD/YYYY"}),e.jsx(r,{value:"iso",children:"YYYY-MM-DD"}),e.jsx(r,{value:"eu",children:"DD/MM/YYYY"})]})]})]})]})]})]}),e.jsxs(f,{className:"rounded-3xl",children:[e.jsx(v,{children:e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(Le,{className:"h-5 w-5"})," Privacy & Visibility"]})}),e.jsxs(g,{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-xl",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Show on Public Leaderboards"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Display your name and rank publicly"})]}),e.jsx(b,{defaultChecked:!0})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-xl",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Discoverable in Marketplace"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Let brands invite you to programs"})]}),e.jsx(b,{defaultChecked:!0})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-xl",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Share Anonymous Performance Data"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Help improve AI recommendations"})]}),e.jsx(b,{defaultChecked:!0})]})]})]}),e.jsxs(f,{className:"rounded-3xl",children:[e.jsx(v,{children:e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(me,{className:"h-5 w-5"})," AI Assistant"]})}),e.jsxs(g,{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-xl",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Performance Coach Suggestions"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Receive proactive AI tips to grow your earnings"})]}),e.jsx(b,{defaultChecked:!0})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-xl",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Auto-Generated Marketing Copy"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Pre-write social posts when new products launch"})]}),e.jsx(b,{defaultChecked:!0})]})]})]}),e.jsxs(f,{className:"rounded-3xl",children:[e.jsx(v,{children:e.jsxs(N,{className:"flex items-center gap-2",children:[e.jsx(U,{className:"h-5 w-5"})," Your Data"]})}),e.jsxs(g,{className:"space-y-3",children:[e.jsxs(l,{variant:"outline",onClick:()=>h.success("Export queued — we'll email you a download link"),children:[e.jsx(U,{className:"h-4 w-4 mr-2"})," Export All My Data"]}),e.jsxs(l,{variant:"outline",onClick:()=>h.success("Tax documents ready"),children:[e.jsx(ae,{className:"h-4 w-4 mr-2"})," Download Tax Documents"]})]})]}),e.jsxs(f,{className:"rounded-3xl border-destructive/30",children:[e.jsxs(v,{children:[e.jsxs(N,{className:"flex items-center gap-2 text-destructive",children:[e.jsx(Me,{className:"h-5 w-5"})," Danger Zone"]}),e.jsx(C,{children:"Permanent actions that cannot be undone"})]}),e.jsxs(g,{className:"space-y-3",children:[e.jsxs(z,{children:[e.jsx(_,{asChild:!0,children:e.jsx(l,{variant:"outline",children:"Pause All Programs Temporarily"})}
11),e.jsxs(H,{children:[e.jsxs(J,{children:[e.jsx(q,{children:"Pause all programs?"}),e.jsx(K,{children:'Your tracking links will return a "paused" page until you resume. Existing commissions are preserved.'})]}),e.jsxs(G,{children:[e.jsx(Z,{children:"Cancel"}),e.jsx(Q,{onClick:()=>h.success("All programs paused"),children:"Pause"})]})]})]}),e.jsxs(z,{children:[e.jsx(_,{asChild:!0,children:e.jsx(l,{variant:"destructive",children:"Delete My Account"})}),e.jsxs(H,{children:[e.jsxs(J,{children:[e.jsx(q,{children:"Delete your account?"}),e.jsxs(K,{children:["This permanently removes your profile, links, and history. Pending commissions will still be paid out. Type ",e.jsx("strong",{children:"DELETE"})," to confirm."]})]}),e.jsx(x,{value:t,onChange:o=>d(o.target.value),placeholder:"Type DELETE"}),e.jsxs(G,{children:[e.jsx(Z,{children:"Cancel"}),e.jsx(Q,{disabled:t!=="DELETE",onClick:()=>h.success("Account deletion scheduled"),children:"Permanently Delete"})]})]})]})]})]})]})};export{aa as AffiliateSettings,aa 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.