1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];if(null!=t)for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:eden":!0});var a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="9de51a59-4fbb-4ada-942d-993f88115b03",e._sentryDebugIdIdentifier="sentry-dbid-9de51a59-4fbb-4ada-942d-993f88115b03")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[397],{12749:(e,a,t)=>{"use strict";t.d(a,{M:()=>i});var s=t(27549),r=t(3379);let l=e=>"object"==typeof e&&null!==e&&"name"in e&&"AbortError"===e.name,i=({copyOnly:e=!1,onSuccess:a,onError:t})=>{let i=(0,r.useRef)(!1),n=(0,r.useCallback)(async e=>{try{await (0,s.lWL)(e),a?.()}catch{t?.()}},[t,a]),d=(0,r.useCallback)(async(e,s)=>{let r=!1;try{await navigator.clipboard.write([new s({"text/plain":navigator.share({text:e}).then(()=>(r=!0,e)).catch(a=>{if(l(a))return r=!0,new Blob([e],{type:"text/plain"});throw a})})]),a?.()}catch{r||t?.()}},[t,a]);return(0,r.useCallback)(async s=>{if(!i.current){i.current=!0;try{if(!e&&navigator.canShare&&navigator.share){let e=globalThis.ClipboardItem;if("function"==typeof navigator.clipboard?.write&&e)await d(s,e);else try{await navigator.share({text:s}),a?.()}catch(e){l(e)?await n(s):t?.()}return}await n(s)}finally{i.current=!1}}},[e,n,t,a,d])}},15397:(e,a,t)=>{"use strict";t.d(a,{x:()=>n});var s=t(27707),r=t(22921),l=t(3379),i=t(76981);let n=({children:e,className:a})=>{let t=(0,l.useContext)(i._);return(0,s.jsx)("div",{className:(0,r.cn)("flex flex-col grow min-w-0 md:min-w-80 infloww:inflowwmd:min-w-80 items-center md:rounded-md infloww:inflowwmd:rounded-md bg-background-primary [scrollbar-gutter:stable]",t&&"min-h-0 overflow-auto",a),"data-sentry-component":"ContentContainer","data-sentry-source-file":"ContentContainer.tsx",children:e})}},19630:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s={src:"/_next/static/media/wallet-coin-3d-light.8d75ebe6.webp",height:560,width:560,blurDataURL:"data:image/webp;base64,UklGRsAAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSD8AAAABcFvbthJdyCGmAkohd63EHaogphFCCiF1l/GpISImAP/SVU5+MMcjAHiXTR4NiPExc5YCmO3jUQJAUTvUx3cAVlA4IFoAAACwAQCdASoIAAgAAkA4JZACdAEbwIZAAP7m3He1HJjGRrGhW/Mk7689WiBuJvF+nHDqtpWnsGhO0ekMqlGBGQ/Pg7zFdER1YnqO2qOTuvwiY10/QsIBz7IAAAA=",blurWidth:8,blurHeight:8}},34198:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(92027);let r=(e,a)=>(0,s.bq)({event_name:"affiliates_clicked_element",event_properties:{element:e,...a}})},47243:(e,a,t)=>{"use strict";t.d(a,{O:()=>n});var s=t(27707),r=t(22921),l=t(68516);let i={24:{name:"typography-body-small-14px-regular",handle:"typography-description-12px-regular",handleClassName:"text-content-secondary"},32:{name:"typography-body-small-14px-regular",handle:"typography-description-12px-regular",handleClassName:"text-content-secondary"},48:{name:"typography-body-default-16px-semibold",handle:"typography-body-small-14px-regular",handleClassName:"text-content-primary"}},n=({displayName:e,handle:a,avatarUrl:t,avatarFallback:n,showAvatar:d=!0,showPresenceDot:o=!1,leadingBadge:c,trailingBadge:f,disabled:m=!1,nameClassName:x,avatarSize:u=32,className:h})=>{let p=i[u];return(0,s.jsxs)("div",{className:(0,r.cn)("flex min-w-0 items-center gap-2",h),"data-sentry-component":"UserListIdentity","data-sentry-source-file":"UserListIdentity.tsx",children:[c&&(0,s.jsx)("span",{className:"shrink-0 whitespace-nowrap",children:c}),d&&(0,s.jsx)(l.eu,{src:t,alt:e,fallback:n,size:u,onlineIndicator:o,className:m?"opacity-50":void 0}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-col text-left",children:[(0,s.jsx)("span",{className:(0,r.cn)(x??p.name,"truncate",m?"text-content-tertiary":"text-content-primary"),children:e}),a&&(0,s.jsxs)("span",{className:(0,r.cn)(p.handle,"truncate",m?"text-content-tertiary":p.handleClassName),children:["@",a]})]}),f&&(0,s.jsx)("span",{className:"shrink-0 whitespace-nowrap",children:f})]})}},67381:(e,a,t)=>{"use strict";t.d(a,{w:()=>h});var s=t(27707),r=t(84078),l=t(22149),i=t(22921),n=t(75654),d=t(30476),o=t(5606),c=t(794),f=t(47243);let m={left:"text-left",center:"text-center",right:"text-right"};function x(e,a){if(void 0!==e||void 0!==a)return{width:e,minWidth:a}}function u(e){return e.tooltip?(0,s.jsxs)(r.m_,{"data-sentry-element":"Tooltip","data-sentry-component":"headerLabel","data-sentry-source-file":"UserList.tsx",children:[(0,s.jsx)(r.k$,{asChild:!0,"data-sentry-element":"TooltipTrigger","data-sentry-source-file":"UserList.tsx",children:(0,s.jsx)("span",{children:e.header})}),(0,s.jsx)(r.ZI,{"data-sentry-element":"TooltipContent","data-sentry-source-file":"UserList.tsx",children:e.tooltip})]}):e.header}function h({rows:e,getIdentity:a,identityHeader:t,identitySortId:h,identityWidth:p,columns:y,getRowKey:g,orderBy:b,onOrderByChange:A,search:j,searchAlign:w="end",onRowClick:v,rowActions:N,actionsLabel:C="Actions",leadingCell:_,leadingLabel:k,isLoading:E=!1,emptyState:O,noResultsState:L,title:B,titleTooltip:S,headerActions:I,sortL
1abelClassName:D,headerLabelClassName:P,mobileVariant:F="cards",renderMobileCard:T,mobileSortLabel:R,mobileCardVariant:U="bordered"}){let M=!E&&0===e.length,z=!!j?.value,$=M&&z?L??(0,s.jsx)("span",{children:"No results found"}):O,H=e=>{if(!A)return;let a=b?.column===e&&"desc"===b.direction?"asc":"desc";A({column:e,direction:a})},Q=e=>{v&&!a(e).disabled&&v(e)},W=e=>P?(0,s.jsx)("span",{className:P,children:e}):e,q=y.filter(e=>e.mobileLabel),G=!!(B||j||I),J=[...h?[{id:h,label:t}]:[],...y.filter(e=>e.sortable).map(e=>({id:e.id,label:e.mobileLabel??e.header}))],K="cards"===F&&!!R&&!!A&&J.length>0;return(0,s.jsxs)("div",{className:"flex flex-col gap-4","data-sentry-component":"UserList","data-sentry-source-file":"UserList.tsx",children:[G&&(0,s.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:flex-wrap md:items-center md:justify-between",children:[B&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"typography-body-default-16px-semibold text-content-secondary",children:B}),S&&(0,s.jsxs)(r.m_,{children:[(0,s.jsx)(r.k$,{asChild:!0,children:(0,s.jsx)("span",{className:"text-icons-tertiary",children:(0,s.jsx)(l.m,{size:16})})}),(0,s.jsx)(r.ZI,{children:S})]})]}),(0,s.jsxs)("div",{className:(0,i.cn)("flex flex-1 flex-row items-center gap-2","start"===w?"flex-nowrap md:justify-between":"flex-wrap md:justify-end"),children:[j&&(0,s.jsx)(n.L,{size:"40",className:"min-w-0 flex-1 basis-[140px] md:max-w-[375px]",value:j.value,onChange:e=>j.onChange(e.target.value),onClear:()=>j.onChange(""),placeholder:j.placeholder,"aria-label":j.placeholder}),(I||K)&&(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[I,K&&(0,s.jsx)(d.l6,{"aria-label":R,className:"min-w-0 md:hidden",value:b?.column??"",onValueChange:e=>A?.({column:e,direction:b?.direction??"desc"}),size:"40",children:(0,s.jsx)(d.gC,{children:J.map(e=>(0,s.jsx)(d.eb,{value:e.id,children:e.label},e.id))})})]})]})]}),M?$:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Lj,{className:(0,i.cn)("cards"===F&&"hidden md:flex"),children:(0,s.jsx)(o.Rz,{children:(0,s.jsxs)(o.XI,{children:[(0,s.jsx)(o.A0,{children:(0,s.jsxs)(o.Hj,{children:[_&&(0,s.jsx)(o.nd,{intent:"checkbox",children:(0,s.jsx)("span",{className:"sr-only",children:k})}),(0,s.jsx)(o.nd,{style:x(p,p),className:"text-left",children:h?(0,s.jsx)("button",{type:"button",className:"inline-flex items-center gap-1 border-none bg-transparent p-0 cursor-pointer",onClick:()=>H(h),children:(0,s.jsx)(o.zU,{className:D,direction:b?.column===h?b.direction:null,children:W(t)})}):W(t)}),y.map(e=>(0,s.jsx)(o.nd,{style:x(e.width,e.minWidth),className:m[e.align??"center"],children:e.sortable?(0,s.jsx)("button",{type:"button",className:(0,i.cn)("inline-flex items-center gap-1 border-none bg-transparent p-0 cursor-pointer","right"===e.align&&"ml-auto","center"===e.align&&"mx-auto"),onClick:()=>H(e.id),children:(0,s.jsx)(o.zU,{className:D,direction:b?.column===e.id?b.direction:null,children:W(u(e))})}):W(u(e))},e.id)),N&&(0,s.jsx)(o.nd,{className:"w-px whitespace-nowrap text-right",children:(0,s.jsx)("span",{className:"sr-only",children:C})})]})}),(0,s.jsx)(o.BF,{children:E?Array.from({length:3},(e,a)=>(0,s.jsxs)(o.Hj,{"aria-hidden":!0,children:[_&&(0,s.jsx)(o.nA,{}),(0,s.jsx)(o.nA,{className:"text-left",style:x(p,p),children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(c.E,{variant:"circular",width:32,height:32}),(0,s.jsx)(c.E,{width:120})]})}),y.map(e=>(0,s.jsx)(o.nA,{className:m[e.align??"center"],children:(0,s.jsx)(c.E,{width:50,className:"ml-auto mr-auto"})},e.id)),N&&(0,s.jsx)(o.nA,{className:"w-px whitespace-nowrap text-right",children:(0,s.jsx)(c.E,{variant:"circular",width:32,height:32})})]},`skeleton-${a}`)):e.map((e,t)=>{let r=a(e);return(0,s.jsxs)(o.Hj,{className:(0,i.cn)(v&&!r.disabled&&"cursor-pointer"),onClick:()=>Q(e),children:[_&&(0,s.jsx)(o.nA,{className:"w-12 text-center",children:_(e)}),(0,s.jsx)(o.nA,{className:"text-left",style:x(p,p),children:(0,s.jsx)(f.O,{...r,avatarSize:32})}),y.map(a=>(0,s.jsx)(o.nA,{className:m[a.align??"center"],children:a.cell(e)},a.id)),N&&(0,s.jsx)(o.nA,{className:"w-px whitespace-nowrap text-right",children:N(e)})]},g(e,t))})})]})})}),"cards"===F&&(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col md:hidden","flat"===U?"divide-y divide-border-primary":"gap-3"),children:E?Array.from({length:3},(e,a)=>
1(0,s.jsx)("div",{"aria-hidden":!0,className:(0,i.cn)("flex flex-col gap-3","flat"===U?"py-3":"rounded-lg border border-border-primary bg-surface-primary p-4"),children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(c.E,{variant:"circular",width:40,height:40}),(0,s.jsx)(c.E,{width:140})]})},`skeleton-card-${a}`)):e.map((e,t)=>{let r=a(e);return(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col gap-3","flat"===U?"py-3":"rounded-lg border border-border-primary bg-surface-primary p-4",v&&!r.disabled&&"cursor-pointer"),onClick:()=>Q(e),children:T?T(e):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex items-center justify-between gap-2",children:(0,s.jsx)(f.O,{...r,avatarSize:32})}),q.map(a=>(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)("span",{className:"typography-body-small-14px-regular text-content-tertiary",children:a.mobileLabel}),(0,s.jsx)("span",{className:"typography-body-small-14px-regular text-content-primary",children:a.cell(e)})]},a.id)),N&&(0,s.jsx)("div",{className:"flex items-center justify-end gap-2",children:N(e)})]})},g(e,t))})})]})]})}},67764:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSP:()=>eM,default:()=>ez});var s=t(27707),r=t(53972),l=t(39216),i=t(38460),n=t(57194),d=t(56469),o=t(89298),c=t(2838),f=t(6603),m=t.n(f),x=t(3379),u=t(84961),h=t(6744),p=t(78057),y=t(42408),g=t(32180),b=t(22254),A=t(15397),j=t(74871),w=t(76981),v=t(794),N=t(33954),C=t(22921);let _=({value:e,label:a,action:t,className:r})=>(0,s.jsxs)("div",{className:(0,C.cn)("flex items-center justify-between gap-4",r),"data-sentry-component":"AffiliateHero","data-sentry-source-file":"AffiliateHero.tsx",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{className:"typography-header-heading-xl text-content-primary",children:e}),(0,s.jsx)("span",{className:"typography-body-small-14px-semibold text-content-tertiary",children:a})]}),t]});var k=t(27549),E=t(37495),O=t(67935),L=t(43796),B=t(87633);let S=({title:e,subtitle:a,data:t,loading:r})=>(0,s.jsx)(L.d,{className:"overflow-hidden bg-background-primary border-neutral-alphas-200 rounded-lg",title:e,subtitle:a,loading:r,"data-sentry-element":"ChartCard","data-sentry-component":"AffiliateInsightCard","data-sentry-source-file":"AffiliateInsightCards.tsx",children:t.length>0&&(0,s.jsx)(B.E,{data:t})}),I=({title:e,detail:a,className:t})=>(0,s.jsxs)("div",{className:(0,C.cn)("flex flex-col gap-2 rounded-lg p-4 border border-neutral-alphas-200 bg-background-primary",t),"data-sentry-component":"InsightsMobileCard","data-sentry-source-file":"AffiliateInsightCards.tsx",children:[(0,s.jsx)("p",{className:"typography-body-default-16px-semibold",children:e}),(0,s.jsx)("h2",{className:"typography-header-heading-lg",children:a})]}),D=()=>{let{t:e}=(0,u.B)(),a=(0,O.A)(),{data:t,isFetching:r}=N.i.affiliateLinks.dashboardInsights.useQuery(),l=t?.earnings.map(e=>e.gross)??[],i=t?.fansReferred.map(e=>e.fans)??[],n=[{title:e("affiliates-your-earnings"),subtitle:(0,E.$g)((0,k.czq)(l)),data:l},{title:e("affiliates-fans-referred"),subtitle:String((0,k.czq)(i)),data:i}];return a?(0,s.jsx)("div",{className:"grid w-full grid-cols-1 md:grid-cols-2 gap-4","data-sentry-component":"AffiliateDashboardInsights","data-sentry-source-file":"AffiliateDashboardInsights.tsx",children:n.map(e=>(0,s.jsx)(S,{...e,loading:r},e.title))}):(0,s.jsx)("div",{className:"mt-4",children:n.map(e=>(0,s.jsx)(I,{title:e.title,detail:e.subtitle,className:"mb-2"},e.title))})};var P=t(93572),F=t(19630),T=t(43418),R=t(3842);let U=()=>{let{t:e}=(0,u.B)();return(0,s.jsx)("div",{className:"flex w-full flex-col items-center py-4","data-sentry-component":"AffiliateTableNoResults","data-sentry-source-file":"AffiliateTableStates.tsx",children:(0,s.jsx)("p",{className:"typography-body-default-16px-regular text-content-secondary",children:e("affiliates-table-no-search-results")})})},M=({imageSrc:e,content:a,action:t})=>{let{t:r}=(0,u.B)();return(0,s.jsxs)("div",{className:"flex w-full flex-col items-center","data-sentry-component":"AffiliateTableEmptyState","data-sentry-source-file":"AffiliateTableStates.tsx",children:[(0,s.jsx)(R.F,{variant:"info",className:"my-4 w-full max-w-[480px]","data-sentry-element":"Alert","data-sentry-source-file":"AffiliateTableStates.tsx",children:r("affiliates-offer-zero-info")}),(0,s.jsxs)("div",{className:"mb-4 flex max-w-[480px] flex-col gap-4",children:[(0,s.jsx)("img",{src:e,alt:"","aria-hidden":"true",className:"object-contain self-center max-w-[200px] max-h-[200px]"}),(0,s.jsx)("h2",{className:"typography-header-heading-lg",children:r("affiliates-offer-zero-title")}),(0,s.jsx)("p",{className:"typography-body-default-16px-regular text-content-secondary",children:a}),t]})]})};var z=t(15250),$=t(84078),H=t(97870),Q=t(85354),W=t(67381),q=t(23488),G=t(12749),J=t(81573),K=t(75021),Z=t(91694);let V=(e,a,t)=>"string"==typeof e&&"string"==typeof a?"desc"===t?e.localeCompare(a):a.localeCompare(e):(0,Z.y)(Number(e),Number(a),t);var Y=t(34198),X=t(68376),ee=t(23188),ea=t(32753),et=t(82108),es=t(92027),er=t(23245),el=t(16410);let ei=({creatorUuid:e,linkId:a,onClose:t,onSuccess:l})=>{let{t:i}=(0,u.B)(),{showErrorToast:n,showSuccessToast:d}=(0,J.d)(),{mutateAsync:o}=N.i.affiliateLinks.deleteLink.useMutation({onError:()=>n(i("links-delete-dialog-error")),onSuccess:()=>{d(i("links-delete-dialog-success")),t(),l?.()}});return(0,s.jsx)(er.N,{open:!0,onClose:e=>{(0,es.bq)({event_name:"affiliates_clicked_element",event_properties:{element:p.CP.DISABLE_LINK_CLOSE}}),e?.stopPropagation(),t()},title:i("are-you-sure"),"data-sentry-element":"FVDialog","data-sentry-component":"DeleteLinkDialog","data-sentry-source-file":"DeleteLinkDialog.tsx",children:(0,s.jsxs)(el.g,{"data-sentry-element":"FVDialogContent","data-sentry-source-file":"DeleteLinkDialog.tsx",children:[(0,s.jsx)("p",{className:"typography-body-default-16px-regular text-center",children:i("affiliate-links-delete-dialog-content")}),(0,s.jsx)(r.$,{className:"mb-4 mt-6 w-full bg-error-content",onClick:async t=>{(0,es.bq)({event_name:"affiliates_clicked_element",event_properties:{element:p.CP.DISABLE_LINK_CONFIRM}}),t?.stopPropagation(),await o({creatorUuid:e,linkId:a})},"data-sentry-element":"Button","data-sentry-source-file":"DeleteLinkDialog.tsx",children:i("disable")}),(0,s.jsx)(r.$,{className:"w-full",variant:"secondary",onClick:e=>{(0,es.bq)({event_name:"affiliates_clicked_element",event_properties:{element:p.CP.DISABLE_LINK_CANCEL}}),e?.stopPropagation(),t()},"data-sentry-element":"Button","data-sentry-source-file":"DeleteLinkDialog.tsx",children:i("cancel")})]})})},en=({creatorUuid:e,linkId:a,refetch:t})=>{let{t:r}=(0,u.B)(),[l,i]=(0,x.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(X.rI,{onOpenChange:e=>{(0,es.bq)({event_name:"affiliates_clicked_element",event_properties:{element:e?p.CP.ACTIONS_OPEN:p.CP.ACTIONS_CLOSE}})},"data-sentry-element":"DropdownMenu","data-sentry-source-file":"ActionsPop
1over.tsx",children:[(0,s.jsx)(X.ty,{asChild:!0,onClick:e=>e.stopPropagation(),"data-sentry-element":"DropdownMenuTrigger","data-sentry-source-file":"ActionsPopover.tsx",children:(0,s.jsx)(H.K,{size:"32",variant:"tertiary","aria-label":r("links-table-label-actions"),icon:(0,s.jsx)(ee.F,{}),"data-sentry-element":"IconButton","data-sentry-source-file":"ActionsPopover.tsx"})}),(0,s.jsx)(X.SQ,{onClick:e=>e.stopPropagation(),onCloseAutoFocus:e=>e.preventDefault(),onInteractOutside:e=>e.stopPropagation(),"data-sentry-element":"DropdownMenuContent","data-sentry-source-file":"ActionsPopover.tsx",children:(0,s.jsx)(ea._2,{destructive:!0,onSelect:()=>{(0,es.bq)({event_name:"affiliates_clicked_element",event_properties:{element:p.CP.DISABLE_LINK_OPEN}}),i(!0)},leadingIcon:(0,s.jsx)(et.b,{}),"data-sentry-element":"DropdownMenuItem","data-sentry-source-file":"ActionsPopover.tsx",children:r("affiliates-disable-link")})})]}),l&&(0,s.jsx)(ei,{creatorUuid:e,linkId:a,onClose:()=>i(!1),onSuccess:t})]})};var ed=function(e){return e.CREATOR="creator",e.FANS_REFERRED="fansReferred",e.OFFER_PERCENTAGE="offerPercentage",e.MY_EARNINGS="myEarnings",e}(ed||{});let eo={creator:e=>e.creator.displayName,fansReferred:e=>e.fansReferredCount,offerPercentage:e=>e.offerPercentage,myEarnings:e=>e.totalGross},ec=({affiliates:e,isFetching:a,refetch:t,headerActions:r,emptyState:l,noResultsState:i})=>{let{t:n}=(0,u.B)(),{showErrorToast:d,showSuccessToast:o}=(0,J.d)(),c=(0,G.M)({copyOnly:!0,onError:()=>d(n("share-fail")),onSuccess:()=>o(n("copy-success"))}),[f,h]=(0,x.useState)({column:"myEarnings",direction:"desc"}),[g,b]=(0,x.useState)(""),A=(0,x.useMemo)(()=>[...e??[]].filter(({creator:{displayName:e}})=>e.toLowerCase().includes(g.toLowerCase())).sort((e,a)=>V(eo[f.column](e),eo[f.column](a),f.direction)),[e,f,g]),j=[{id:"fansReferred",header:n("affiliates-dashboard-fans"),align:"center",sortable:!0,mobileLabel:n("affiliates-dashboard-fans"),width:140,minWidth:140,cell:e=>e.fansReferredCount},{id:"offerPercentage",header:n("affiliates-offer-table-offer"),align:"center",sortable:!0,mobileLabel:n("affiliates-offer-table-offer"),width:110,minWidth:110,cell:e=>(0,s.jsx)(K.L,{percentage:e.offerPercentage})},{id:"myEarnings",header:n("affiliates-dashboard-earnings"),align:"center",sortable:!0,mobileLabel:n("affiliates-dashboard-earnings"),width:140,minWidth:140,cell:e=>(0,E.$g)(e.totalGross)}];return(0,s.jsx)(W.w,{rows:A,getIdentity:e=>({displayName:e.creator.displayName,avatarUrl:e.creator.avatarUri?.url,avatarFallback:(0,k.JJz)(e.creator.displayName),trailingBadge:e.isExpired?(0,s.jsx)(z.E,{variant:"default",children:n("expired")}):void 0,disabled:e.isDisabled,showPresenceDot:!1}),identityHeader:n("creator_one"),identitySortId:"creator",identityWidth:280,columns:j,getRowKey:(e,a)=>`${e.creator.uuid}-${a}`,orderBy:f,onOrderByChange:e=>h({column:e.column,direction:e.direction}),search:{value:g,onChange:b,placeholder:n("search")},onRowClick:async e=>{(0,Y.A)(p.CP.CREATOR_PROFILE),await m().push((0,y.L_m)(e.creator.handle))},rowActions:e=>(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)($.m_,{children:[(0,s.jsx)($.k$,{asChild:!0,children:(0,s.jsx)(H.K,{disabled:e.isDisabled,variant:"tertiary",size:"32","aria-label":n("copy-link"),icon:(0,s.jsx)(Q.T,{}),onClick:async a=>{(0,Y.A)(p.CP.COPY_LINK),a.stopPropagation(),await c(`${q._.NEXT_PUBLIC_EDEN_BASE_URL}${(0,y.QZ_)(e.creator.handle,e.url)}`)}})}),(0,s.jsx)($.ZI,{children:n("copy-link")})]}),(0,s.jsx)(en,{creatorUuid:e.creator.uuid,linkId:e.url,refetch:t})]}),actionsLabel:n("links-table-label-actions"),isLoading:a,emptyState:l,noResultsState:i,title:n("affiliates-dashboard-table-title"),headerActions:r,sortLabelClassName:"[&>span]:border-b-0 [&>span]:pb-0",mobileVariant:"cards","data-sentry-element":"UserList","data-sentry-component":"DashboardTable","data-sentry-source-file":"DashboardTable.tsx"})},ef=({affiliates:e,isFetching:a,refetch:t})=>{let{t:r}=(0,u.B)(),l=(0,T.h)()?P.A:F.A;return(0,s.jsx)(ec,{affiliates:e,isFetching:a,refetch:t,noResultsState:(0,s.jsx)(U,{}),emptyState:(0,s.jsx)(M,{imageSrc:l.src,content:r("affiliates-dashboard-zero-content")}),"data-sentry-element":"DashboardTable","data-sentry-component":"DashboardOverview","data-sentry-source-file":"DashboardOverview.tsx"})},em=({browseOffersButton:e})=>{let{t:a}
1=(0,u.B)(),{data:t,isFetching:r,refetch:l}=N.i.affiliateLinks.getAffiliates.useQuery(),i=t?.filter(({isDisabled:e,isExpired:a})=>!e&&!a).length??0;return(0,s.jsxs)("div",{className:"w-full px-4 flex flex-col gap-8","data-sentry-component":"AffiliateDashboardTab","data-sentry-source-file":"AffiliateDashboardTab.tsx",children:[(0,s.jsx)(_,{value:void 0===t?(0,s.jsx)(v.E,{width:40,height:40}):i,label:a("affiliates-active-offers"),action:e,"data-sentry-element":"AffiliateHero","data-sentry-source-file":"AffiliateDashboardTab.tsx"}),(0,s.jsx)(D,{"data-sentry-element":"AffiliateDashboardInsights","data-sentry-source-file":"AffiliateDashboardTab.tsx"}),(0,s.jsx)(ef,{affiliates:t,isFetching:r,refetch:async()=>{await l()},"data-sentry-element":"DashboardOverview","data-sentry-source-file":"AffiliateDashboardTab.tsx"})]})};var ex=t(46115),eu=t(89252);let eh=({className:e})=>{let{t:a}=(0,u.B)();return(0,s.jsx)(g.t,{target:"_blank",to:eu.I0,className:e,"data-sentry-element":"FVLink","data-sentry-component":"HowItWorksButton","data-sentry-source-file":"HowItWorksButton.tsx",children:(0,s.jsx)(r.$,{onClick:()=>(0,Y.A)(p.CP.HOW_IT_WORKS),size:"32",variant:"secondary",rightIcon:(0,s.jsx)(ex.Q,{className:"size-4"}),"data-sentry-element":"Button","data-sentry-source-file":"HowItWorksButton.tsx",children:a("affiliates-how-it-works")})})};var ep=t(74834),ey=t(55582),eg=t(82590);let eb=({onPercentageChange:e,percentage:a,onEnabledChange:t,enabled:r,actionButton:l,withToggleDescription:i,className:n})=>{let{t:d}=(0,u.B)(),[o,c]=(0,x.useState)(!1);return(0,s.jsxs)("div",{className:(0,C.cn)("w-full rounded-md border border-neutral-alphas-200 p-6 bg-surface-primary",n),"data-sentry-component":"AffiliateOfferBox","data-sentry-source-file":"AffiliateOfferBox.tsx",children:[(0,s.jsx)(ey.b,{checked:r,onCheckedChange:t,label:d("affiliates-allow"),"data-sentry-element":"SwitchField","data-sentry-source-file":"AffiliateOfferBox.tsx"}),i&&(0,s.jsx)("span",{className:"typography-description-12px-regular max-w-[calc(100%-40px)] text-content-secondary",children:d("affiliates-edit-toggle-description")}),(0,s.jsx)(eg.A,{className:"mt-4",inputMode:"numeric",label:d("affiliates-activate-modal-input-title"),type:"number",leftIcon:"%",min:5,max:50,onChange:a=>{let t=Number(a.target.value);c(t<5||t>50),e(""===a.target.value?void 0:t)},value:a,helperText:d("affiliates-activate-modal-input-helper"),"data-sentry-element":"TextField","data-sentry-source-file":"AffiliateOfferBox.tsx"}),o&&(0,s.jsx)("div",{className:"typography-description-12px-regular text-error-content mt-1",children:d("affiliates-activate-modal-input-error")}),l]})},eA=({refreshOffer:e})=>{let{t:a}=(0,u.B)(),t=(0,O.A)(),{showErrorToast:l}=(0,J.d)(),[i,n]=(0,x.useState)(50),[d,o]=(0,x.useState)(!0),{mutateAsync:c}=N.i.affiliateOffer.updateOffer.useMutation({onError:()=>l(a("affiliates-offer-update-error"))}),f=async()=>{(0,es.bq)({event_name:"affiliates_clicked_element",event_properties:{element:p.CP.OFFER_PUBLISH_ZERO_STATE,is_enabled:d,offer_percentage:i}});try{await c({is_enabled:d,offer_percentage:i}),await e()}catch{}};return(0,s.jsxs)("div",{className:"mx-auto my-6 flex max-w-[432px] flex-col items-center justify-center p-4","data-sentry-component":"AffiliateOfferZeroState","data-sentry-source-file":"AffiliateOfferZeroState.tsx",children:[(0,s.jsx)("div",{className:(0,C.cn)("mb-4 flex w-full justify-between",t?"gap-6":"gap-2"),children:(0,s.jsxs)("div",{className:"w-min",children:[(0,s.jsx)("span",{className:"typography-header-heading-lg mr-2",children:a("affiliates-collaborate-and")}),(0,s.jsx)("span",{className:"typography-header-heading-lg",children:a("affiliates-earn")})]})}),(0,s.jsx)("p",{className:"typography-body-default-16px-regular",children:a("affiliates-zero-state-subtitle")}),(0,s.jsx)(eb,{className:"mt-8",onEnabledChange:e=>{(0,es.bq)({event_name:"affiliates_clicked_element",event_properties:{element:e?p.CP.OFFER_ENABLE_ZERO_STATE:p.CP.OFFER_DISABLE_ZERO_STATE,offer_already_enabled:!0}}),o(e)},enabled:d,percentage:i,onPercentageChange:n,actionButton:(0,s.jsx)(r.$,{variant:"brand",onClick:f,className:"mt-4",disabled:!i||i<5||i>50,...!t&&{size:"32"},children:a("affiliates-publish")}),"data-sentry-element":"AffiliateOfferBox","data-sentry-source-file":"AffiliateOfferZeroState.tsx"})]})},ej=()=>{let{t:e}
1=(0,u.B)(),a=(0,O.A)(),{data:t,isFetching:r}=N.i.affiliateOffer.offerInsights.useQuery(),l=t?.earnings.map(e=>e.price)??[],i=t?.fansReferred.map(e=>e.fans)??[],n=t?.affiliateLinksCountByDate.map(({linksCount:e})=>e)??[],d=[{title:e("affiliates-total-earnings"),subtitle:(0,E.$g)((0,k.czq)(l)),data:l},{title:e("affiliates-fans"),subtitle:String((0,k.czq)(i)),data:i},{title:e("affiliates-graph-title"),subtitle:String((0,k.czq)(n)),data:n}];return a?(0,s.jsx)("div",{className:"grid w-full grid-cols-1 md:grid-cols-3 gap-4","data-sentry-component":"AffiliateOfferInsights","data-sentry-source-file":"AffiliateOfferInsights.tsx",children:d.map(e=>(0,s.jsx)(S,{...e,loading:r},e.title))}):(0,s.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:d.map(e=>(0,s.jsx)(I,{title:e.title,detail:e.subtitle,className:"grow"},e.title))})};var ew=t(49576);let ev=({className:e,withIcon:a})=>{let{t}=(0,u.B)(),{showErrorToast:l,showSuccessToast:i}=(0,J.d)(),n=(0,G.M)({copyOnly:!0,onError:()=>l(t("share-fail")),onSuccess:()=>i(t("copy-success"))}),d=(0,ew.h)(),{data:o}=N.i.affiliateOffer.getCurrentOffer.useQuery();return o?.is_enabled?(0,s.jsx)(r.$,{variant:a?"secondary":"brand",size:"32",className:(0,C.cn)(e),onClick:async()=>{(0,es.bq)({event_name:"affiliates_clicked_element",event_properties:{element:p.CP.COPY_OFFER}}),await n(`${q._.NEXT_PUBLIC_EDEN_BASE_URL}${(0,y.L_m)(d.handle)}?${h.P6}`)},rightIcon:a?(0,s.jsx)(Q.T,{}):void 0,"data-sentry-element":"Button","data-sentry-component":"CopyOfferButton","data-sentry-source-file":"CopyOfferButton.tsx",children:t("affiliates-copy-offer")}):null};var eN=t(74354),eC=t(32644),e_=t(26970),ek=t(70783);let eE=({open:e,onClose:a,offerPercentage:t,isEnabled:l,refreshOffer:i})=>{let{t:n}=(0,u.B)(),d=(0,O.A)(),{showErrorToast:o}=(0,J.d)(),[c,f]=(0,x.useState)(t),[m,h]=(0,x.useState)(!1);(0,x.useEffect)(()=>{e&&f(t)},[e,t]);let{mutateAsync:y}=N.i.affiliateOffer.updateOffer.useMutation({onError:()=>o(n("affiliates-offer-update-error"))}),g=void 0===c||c<5||c>50,b=async()=>{if(!g){(0,Y.A)(p.CP.OFFER_UPDATE,{is_enabled:l,offer_percentage:c}),h(!0);try{await y({is_enabled:l,offer_percentage:c}),await i(),a()}catch{}finally{h(!1)}}};return(0,s.jsx)(e_._s,{open:e,onOpenChange:e=>!e&&a(),"data-sentry-element":"Drawer","data-sentry-component":"EditOfferDrawer","data-sentry-source-file":"EditOfferDrawer.tsx",children:(0,s.jsxs)(e_.zj,{position:d?"right":"bottom",size:d?"md":"full",className:d?"bg-background-primary flex flex-col w-full max-w-[441px] pt-8 px-10 gap-0":"bg-background-primary flex flex-col rounded-t-2xl pt-4 px-4 gap-0","data-sentry-element":"DrawerContent","data-sentry-source-file":"EditOfferDrawer.tsx",children:[(0,s.jsxs)("div",{className:"flex h-10 items-center justify-between gap-4",children:[(0,s.jsx)(e_.gk,{className:"typography-header-heading-xs text-content-primary truncate","data-sentry-element":"DrawerTitle","data-sentry-source-file":"EditOfferDrawer.tsx",children:n("affiliates-activate-modal-input-title")}),(0,s.jsx)(e_.cp,{asChild:!0,"data-sentry-element":"DrawerClose","data-sentry-source-file":"EditOfferDrawer.tsx",children:(0,s.jsx)(H.K,{icon:(0,s.jsx)(ek.U,{}),"aria-label":n("close"),variant:"tertiary",size:"32",className:"shrink-0","data-sentry-element":"IconButton","data-sentry-source-file":"EditOfferDrawer.tsx"})})]}),(0,s.jsx)("p",{className:"typography-body-small-14px-regular text-content-secondary mt-2",children:n("affiliates-activate-modal-input-helper")}),(0,s.jsx)(eg.A,{className:"mt-6",inputMode:"numeric",label:n("affiliates-activate-modal-input-title"),type:"number",leftIcon:"%",min:5,max:50,onChange:e=>f(""===e.target.value?void 0:Number(e.target.value)),value:c,"data-sentry-element":"TextField","data-sentry-source-file":"EditOfferDrawer.tsx"}),void 0!==c&&g&&(0,s.jsx)("div",{className:"typography-description-12px-regular text-error-content mt-1",children:n("affiliates-activate-modal-input-error")}),(0,s.jsx)(r.$,{variant:"secondary",className:"mt-6",fullWidth:!0,onClick:b,disabled:g||c===t,loading:m,"data-sentry-element":"Button","data-sentry-source-file":"EditOfferDrawer.tsx",children:n("affiliates-percentage-drawer-save")}
1)]})})},eO="/_next/static/media/affiliates-yield-banner-bg.2fd4db68.jpg",eL=({isEnabled:e,offerPercentage:a,refreshOffer:t,isFetching:r})=>{let{t:l}=(0,u.B)(),{showErrorToast:i}=(0,J.d)(),[n,d]=(0,x.useState)(!1),[o,c]=(0,x.useState)(!1),{mutateAsync:f}=N.i.affiliateOffer.updateOffer.useMutation({onError:()=>i(l("affiliates-offer-update-error"))}),m=async s=>{(0,Y.A)(s?p.CP.OFFER_ENABLE:p.CP.OFFER_DISABLE,{offer_already_enabled:e}),c(!0);try{await f({is_enabled:s,offer_percentage:a}),await t()}catch{}finally{c(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative flex w-full items-center justify-between overflow-hidden rounded-md p-4",children:[(0,s.jsx)("img",{src:eO,alt:"","aria-hidden":!0,className:"pointer-events-none absolute inset-0 size-full rounded-md object-cover"}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-md bg-content-always-black/50","aria-hidden":!0}),(0,s.jsxs)("div",{className:"relative flex min-w-0 flex-1 items-center justify-between gap-4",children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-col justify-center",children:[(0,s.jsx)("span",{className:"typography-body-small-14px-semibold text-content-always-white",children:l("affiliates-allow")}),(0,s.jsx)("span",{className:"typography-description-12px-regular text-content-always-white",children:l("affiliates-edit-toggle-description")})]}),(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,s.jsxs)("span",{className:"inline-flex h-8 items-center justify-center rounded-full bg-buttons-always-white-default px-3 typography-body-small-14px-semibold text-content-always-black",children:[a,"%"]}),(0,s.jsx)(eN.d,{checked:e,disabled:o||r,onCheckedChange:m,"aria-label":l("affiliates-allow"),"data-sentry-element":"Switch","data-sentry-source-file":"OfferInfo.tsx"}),(0,s.jsx)("button",{type:"button",className:"flex size-6 shrink-0 items-center justify-center text-content-always-white","aria-label":l("edit"),onClick:()=>{(0,Y.A)(p.CP.OFFER_EDIT,{offer_already_enabled:e}),d(!0)},children:(0,s.jsx)(eC.v,{className:"size-6","data-sentry-element":"ChevronRightIcon","data-sentry-source-file":"OfferInfo.tsx"})})]})]})]}),!e&&(0,s.jsx)(R.F,{variant:"info",className:"mt-4 w-full",children:l("affiliates-offer-info")}),(0,s.jsx)(eE,{open:n,onClose:()=>d(!1),offerPercentage:a,isEnabled:e,refreshOffer:t,"data-sentry-element":"EditOfferDrawer","data-sentry-source-file":"OfferInfo.tsx"})]})};var eB=t(88471),eS=function(e){return e.AFFILIATE="affiliate",e.OFFER="offer",e.SUBS="subs",e.CLICKS="clicks",e.MY$="my$",e.AFFILIATE$="affiliate$",e}(eS||{});let eI={affiliate:e=>e.affiliate.displayName,offer:e=>e.offerPercentage,subs:e=>e.subscriptions,clicks:e=>e.impressions,my$:e=>e.earnings,affiliate$:e=>e.affiliateEarnings},eD=({acceptedOffers:e,isFetching:a,headerActions:t,emptyState:r,noResultsState:l})=>{let[i,n]=(0,x.useState)({column:"my$",direction:"asc"}),[d,o]=(0,x.useState)(""),{t:c}=(0,u.B)(),f=(0,x.useMemo)(()=>[...e??[]].filter(({affiliate:{displayName:e}})=>e.toLowerCase().includes(d.toLowerCase())).sort((e,a)=>V(eI[i.column](e),eI[i.column](a),i.direction)),[e,i,d]),h=[{id:"offer",header:c("affiliates-offer-table-offer"),align:"center",sortable:!0,mobileLabel:c("affiliates-offer-table-offer"),cell:e=>(0,s.jsx)(K.L,{percentage:e.offerPercentage})},{id:"subs",header:c("subs"),align:"center",sortable:!0,mobileLabel:c("subs"),cell:e=>e.subscriptions},{id:"clicks",header:c("clicks"),align:"center",sortable:!0,mobileLabel:c("clicks"),cell:e=>e.impressions},{id:"my$",header:c("affiliates-offer-table-my"),align:"center",sortable:!0,mobileLabel:c("affiliates-offer-table-my"),cell:e=>(0,E.$g)(e.earnings)},{id:"affiliate$",header:c("affiliates-offer-table-affiliate"),align:"center",sortable:!0,mobileLabel:c("affiliates-offer-table-affiliate"),cell:e=>(0,E.$g)(e.affiliateEarnings)}];return(0,s.jsx)(W.w,{rows:f,getIdentity:e=>({displayName:e.affiliate.displayName,handle:e.affiliate.handle,avatarUrl:e.affiliate.avatarUri?.url,avatarFallback:(0,k.JJz)(e.affiliate.displayName),showPresenceDot:!1}),identityHeader:c("affiliate"),identitySortId:"affiliate",identityWidth:367,columns:h,getRowKey:(e,a)=>`${e.affiliate.uuid}-${a}`,orderBy:i,onOrderByChange:e=>
1{(0,Y.A)(p.CP.MY_OFFER_TABLE_SORT,{column:e.column,direction:e.direction}),n({column:e.column,direction:e.direction})},search:{value:d,onChange:o,placeholder:c("search")},onRowClick:async e=>{(0,Y.A)(p.CP.AFFILIATE_PROFILE),await m().push((0,y.L_m)(e.affiliate.handle))},isLoading:a,emptyState:r,noResultsState:l,title:c("affiliates-offer-table-title"),headerActions:t,sortLabelClassName:"[&>span]:border-b-0 [&>span]:pb-0",mobileVariant:"scroll","data-sentry-element":"UserList","data-sentry-component":"OfferTable","data-sentry-source-file":"OfferTable.tsx"})},eP=({acceptedOffers:e,isFetching:a})=>{let{t}=(0,u.B)();return(0,s.jsx)(eD,{acceptedOffers:e,isFetching:a,noResultsState:(0,s.jsx)(U,{}),emptyState:(0,s.jsx)(M,{imageSrc:eB.A.src,content:t("affiliates-offer-zero-content"),action:(0,s.jsx)(ev,{})}),"data-sentry-element":"OfferTable","data-sentry-component":"OfferOverview","data-sentry-source-file":"OfferOverview.tsx"})},eF=({browseOffersButton:e})=>{let{t:a}=(0,u.B)(),{data:t,refetch:r,isLoading:l,isFetching:i}=N.i.affiliateOffer.getCurrentOffer.useQuery(),{data:n,isFetching:d}=N.i.affiliateOffer.getAcceptedOffers.useQuery(),o=async()=>{await r()};if(l)return(0,s.jsx)(ep.a,{show:!0,center:!0});if(!t)return(0,s.jsx)(eA,{refreshOffer:o});let{is_enabled:c,offer_percentage:f}=t,m=n?.length===0&&!d,x=n?.length??0;return(0,s.jsxs)("div",{className:"flex w-full flex-col gap-8 px-4","data-sentry-component":"MyAffiliateOfferTab","data-sentry-source-file":"MyAffiliateOfferTab.tsx",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,s.jsx)(_,{value:x,label:a("affiliates-active-offers"),action:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(ev,{withIcon:!0}),e]}),"data-sentry-element":"AffiliateHero","data-sentry-source-file":"MyAffiliateOfferTab.tsx"}),(0,s.jsx)(eL,{isEnabled:c,offerPercentage:f,refreshOffer:o,isFetching:i,"data-sentry-element":"OfferInfo","data-sentry-source-file":"MyAffiliateOfferTab.tsx"})]}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[!m&&(0,s.jsx)(ej,{}),(0,s.jsx)(eP,{acceptedOffers:n,isFetching:d,"data-sentry-element":"OfferOverview","data-sentry-source-file":"MyAffiliateOfferTab.tsx"})]})]})},eT="my-offer",eR="dashboard",eU=()=>{let{t:e}=(0,u.B)(),a=(0,f.useRouter)(),t=(0,b.l)(),[m,v]=(0,x.useState)(eT);(0,x.useEffect)(()=>{let{pathname:e,query:{[h.s2]:t,...s}}=a;t===h.bT&&(v(eR),a.replace({pathname:e,query:s},void 0,{shallow:!0}))},[a]);let N=(0,s.jsx)(g.t,{to:y.zT8,children:(0,s.jsx)(r.$,{onClick:()=>(0,Y.A)(p.CP.BROWSE_OFFERS),size:"32",variant:"primary",className:"w-max",children:e("browse-offers")})}),C=(0,s.jsx)("div",{className:"w-full",children:(0,s.jsxs)(l.t,{value:m,onValueChange:e=>{(0,Y.A)(e===eT?p.CP.TAB_MY_OFFER:p.CP.TAB_DASHBOARD),v(e)},className:"flex w-full flex-col",children:[(0,s.jsxs)("div",{className:"mb-8 flex w-full items-center justify-between gap-4 border-b border-border-primary",children:[(0,s.jsxs)(i.j,{alignLeft:!0,className:"min-w-0 flex-1 shadow-none",children:[(0,s.jsx)(n.X,{value:eT,children:e("affiliates-my-offer")}),(0,s.jsx)(n.X,{value:eR,children:e("affiliates-dashboard")})]}),(0,s.jsx)(eh,{className:"hidden shrink-0 sm:block"})]}),(0,s.jsx)(eh,{className:"mb-4 flex w-full justify-center sm:hidden"}),(0,s.jsx)(d.a,{value:eT,className:"self-stretch",children:(0,s.jsx)(eF,{browseOffersButton:N})}),(0,s.jsx)(d.a,{value:eR,className:"self-stretch",children:(0,s.jsx)(em,{browseOffersButton:N})})]})});return t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.G.ContentHeader,{children:(0,s.jsx)(c.G.ContentHeader.Title,{children:(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[e("drawer-affiliates"),(0,s.jsx)(o.a,{variant:"beta",children:"Beta"})]})})}),C]}):(0,s.jsx)(w.L,{fullHeight:!0,"data-sentry-element":"PageContainer","data-sentry-component":"AffiliateLinksPage","data-sentry-source-file":"AffiliateLinksPage.tsx",children:(0,s.jsxs)(A.x,{"data-sentry-element":"ContentContainer","data-sentry-source-file":"AffiliateLinksPage.tsx",children:[(0,s.jsx)(j.$,{"data-sentry-element":"FlexHeader","data-sentry-source-file":"AffiliateLinksPage.tsx",children:(0,s.jsxs)("div",{className:"flex w-full items-center justify-start gap-2",children:[(0,s.jsx)("h1",{className:"typography-header-heading-xs text-[22px] leading-[20px]",children:e("drawer-affiliates")}),(0,s.jsx)(o.a,{variant:"beta","data-sentry-element":"Pill","data-sentry-source-file":"AffiliateLinksPage.tsx",children:"Beta"})]})}),C]})})};eU.appShell={preset:"wide"};var eM=!0;let ez=eU},74871:(e,a,t)=>{"use strict";t.d(a,{$:()=>d});var s=t(27707),r=t(22921),l=t(6603),i=t(22254),n=t(11709);let d=({children:e,className:a,style:t,...d})=>{let o=(0,l.useRouter)(),c=(0,i.l)()&&(0,n.D)(o.pathname);return(0,s.jsx)("div",{...d,className:(0,r.cn)("flex px-6 py-4 items-center gap-2 sticky top-0 z-[3] w-full min-h-[52px] max-h-[52px] md:min-
1h-16 md:max-h-16 infloww:inflowwmd:min-h-16 infloww:inflowwmd:max-h-16 bg-background-primary",!c&&"md:rounded-t-lg infloww:inflowwmd:rounded-t-lg border-b border-neutral-alphas-200",a),style:t,"data-sentry-component":"FlexHeader","data-sentry-source-file":"FlexHeader.tsx",children:e})}},75021:(e,a,t)=>{"use strict";t.d(a,{L:()=>l});var s=t(27707),r=t(89298);let l=({percentage:e,className:a})=>(0,s.jsxs)(r.a,{variant:"beta",className:a,"data-sentry-element":"Pill","data-sentry-component":"OfferPercentPill","data-sentry-source-file":"OfferPercentPill.tsx",children:[e,"%"]})},81514:(e,a,t)=>{"use strict";t.d(a,{q:()=>s});var s=function(e){return e.ASC="asc",e.DESC="desc",e}({})},86301:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/affiliate-links",function(){return t(67764)}])},87633:(e,a,t)=>{"use strict";t.d(a,{E:()=>d});var s=t(27707),r=t(18503),l=t(58733),i=t(85713);let n={value:{color:"var(--color-special-chart-teal)"}},d=({data:e})=>{let a=e.map((e,a)=>({index:a,value:e}));return(0,s.jsx)(r.a,{config:n,className:"h-8 w-full block aspect-auto","data-sentry-element":"ChartContainer","data-sentry-component":"SparkLine","data-sentry-source-file":"SparkLine.tsx",children:(0,s.jsx)(l.b,{data:a,"data-sentry-element":"LineChart","data-sentry-source-file":"SparkLine.tsx",children:(0,s.jsx)(i.N1,{type:"monotone",dataKey:"value",stroke:"var(--color-value)",strokeWidth:2,dot:!1,style:{filter:"drop-shadow(0 10px 3px color-mix(in srgb, var(--color-special-chart-teal) 50%, transparent))"},"data-sentry-element":"Line","data-sentry-source-file":"SparkLine.tsx"})})})}},88471:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s={src:"/_next/static/media/profile-liked-empty-state.bc19a069.webp",height:600,width:600,blurDataURL:"data:image/webp;base64,UklGRsAAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSD8AAAABYBTbdpPHsI8AevGBFRSgoKnq3QKTJc1HTwKIiIgJgEQAAhiUVSUb3YH91tPfFvyFSB7GWCoD/s4oAQCvUAAAVlA4IFoAAADwAQCdASoIAAgAAkA4JbACdAD0Zj5xzAAA/q1FDQFl6nDrB6+knOYfdbY4qUIp1OxxjaaN+uNXl4TumImOvfXcFh34x76mBSuHfo/3S76GjsS/tMPxtuedAAA=",blurWidth:8,blurHeight:8}},91694:(e,a,t)=>{"use strict";t.d(a,{y:()=>r});var s=t(81514);let r=(e,a,t)=>t===s.q.DESC?e-a:a-e},93572:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s={src:"/_next/static/media/wallet-coin-3d-dark.15e0e125.webp",height:560,width:560,blurDataURL:"data:image/webp;base64,UklGRrYAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSEEAAAAAAAAAAjQBAAAAFQls/zEAAACB61FLGgAAAAA647v/fwAAAE9/yv+ZAAAM25+cnwkAAAAAJdzrBQAAAAAAAAAAAABWUDggTgAAAJABAJ0BKggACAACQDglAABLRZPyyAD+9rRMPELDLuxven7aW/98DVxEmj27ZdISMDg+6qEEUBn4pOE79/gxscfhiF/UWpna+P/1HyAAAA==",blurWidth:8,blurHeight:8}}},e=>{e.O(0,[9702,1874,6220,8916,5186,9787,6970,4752,7010,8719,9888,5557,2674,2838,476,6755,3976,2646,8057,1573,8930,607,4076,6981,636,6593,8792],()=>e(e.s=86301)),_N_E=e.O()}]);
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.