PageSourceSearch

https://www.wuxiaworld.com/assets/sponsorships.Ds4zY7rX.min.js

js wuxiaworld.com collected 2026-09-24 08:40:59 UTC 20,830 bytes, 13 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0daccbed-21e2-5d6c-ab5c-2f8d0a05dd25")}catch(e){}}();
3import{s as X,t as oe}from"./react.DV6_eVDT.min.js";import{It as le,S as G,_ as ie,h as J,x as ce}from"./auth.-To66sjS.min.js";import{f as de,i as R,u as me}from"./api.BiMiMY5t.min.js";import{m as Z,t as z}from"./dist.DMGjdrqP.min.js";import{j as S}from"./contains.Ay07w7M-.min.js";import{i as j,n as pe}from"./http.DDKEEI-O.min.js";import{o as ee,t as he}from"./grpc.qgvKf2ZU.min.js";import{S as ue,h as fe,p as xe,t as q,u as H}from"./utils.DJXLqB_G.min.js";import{n as e,r as n,t as P}from"./emotion-react-jsx-runtime.browser.esm.DAIxDqBb.min.js";import{dn as ge,un as ve}from"./createSimplePaletteValueFilter.BkLc10i8.min.js";import{t as be}from"./Skeleton.vzdLMEUZ.min.js";import{o as ye}from"./Modal.Cbq7F8gs.min.js";import{t as E}from"./Button.CGlnNnHA.min.js";import{t as Ne}from"./Close.CazPXBuU.min.js";import{o as $,t as Ce}from"./context.D2S1x6br.min.js";import{i as we,n as Se,r as ke,t as Pe}from"./DialogTitle.9wAyTwqZ.min.js";import{a as Ie,i as Ae,n as De,o as Me,r as Te,t as _}from"./TableRow.SIHTgsTh.min.js";import{t as Q}from"./bundle-mjs.BkDLl5xg.min.js";import{a as Ee,i as _e,r as Be}from"./novels.dEa_ozTG.min.js";import{t as Oe}from"./query.progress.C3gIMDr0.min.js";import{t as Re}from"./billing.client.BGaYe9Wz.min.js";import{At as U,Dt as qe,Et as B,Gt as Fe,Ht as Qe,Jn as ae,Lr as Ge,Pn as je,Rr as He,Rt as Y,Wn as $e,Xn as Ue,bn as Ye,en as Le,kn as te,kt as We,pr as se,qn as Ke,t as Ve,xn as Xe,yn as ne}from"./main.pmPWxjBM.min.js";import{t as Je}from"./Collapse.C_bJpQ3K.min.js";import{t as Ze}from"./constants.nJYXe0K0.min.js";var L=1/0,ze=17976931348623157e292;function ea(a){return a?(a=He(a),a===L||a===-L?(a<0?-1:1)*ze:a===a?a:0):a===0?a:0}function aa(a){var t=ea(a),s=t%1;return t===t?s?t-s:t:0}var ta=Math.ceil,sa=Math.max;function na(a,t,s){(s?Ge(a,t,s):t===void 0)?t=1:t=sa(aa(t),0);var o=a==null?0:a.length;if(!o||t<1)return[];for(var l=0,c=0,d=Array(ta(o/t));l<o;)d[c++]=le(a,l,l+=t);return d}var r=X(oe()),W,K;function F(){return F=Object.assign?Object.assign.bind():function(a){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},F.apply(null,arguments)}var ra=function(t){return r.createElement("svg",F({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),W||(W=r.createElement("circle",{cx:10,cy:10,r:8,fill:"#F19C38"})),K||(K=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.459 6.771a.73.73 0 0 1-.82 1.207 2.438 2.438 0 0 0-1.375-.42c-1.334 0-2.405 1.055-2.405 2.333 0 1.278 1.072 2.332 2.405 2.332.402 0 .78-.092 1.13-.273a.73.73 0 0 1 .67 1.296 3.903 3.903 0 0 1-1.066.367v.44a.73.73 0 0 1-1.46 0v-.44C7.759 13.28 6.4 11.743 6.4 9.89c0-1.852 1.358-3.388 3.139-3.72v-.44a.729.729 0 1 1 1.459 0v.441c.239.044.474.11.704.201m.757.4a3.882 3.882 0 0 0-.757-.4",fill:"#fff"})))},oa=X(me(),1);function la({errorMessage:a,open:t,onClose:s}){const o=Z(),l=(0,r.useCallback)(()=>{s?.()},[s]),c=(0,r.useCallback)(()=>{l(),o("/manage/subscriptions/billing")},[o,l]),d=(0,r.useCallback)(()=>{l(),window.open("https://support.wuxiaworld.com/","_blank","noopener noreferrer")},[l]);return e(ye,{children:n(we,{open:t,onClose:l,className:"max-h-full max-w-full overflow-auto",slotProps:{backdrop:{className:"bg-black/80"},paper:{className:"w-full max-w-[800px] rounded-10"}},children:[n(Pe,{className:"flex items-center justify-between py-[20px] pl-[20px] pr-[11px]",children:[e("span",{className:"text-[21px] font-bold",children:"Payment Error"}),e(Ne,{onClick:l,className:"cursor-pointer text-[#777]"})]}),e(Se,{children:n("div",{className:"styled-scrollbar flex h-full w-full flex-col gap-10 overflow-auto text-[#666] dark:text-[#BDBDBD]",children:[a&&e("div",{children:a}),e("div",{children:"This may be due to one of the following common reasons:"}),e("div",{children:n("ul",{className:"list-disc pl-20",children:[e("li",{className:"p-2",children:"Insufficient Funds: There may not be enough balance available."}),e("li",{className:"p-2",children:"Expired or Invalid Card: The card you provided might be expired or contain outdated information."}),e("li",{className:"p-2",children:"Bank Declined Transaction: Your bank may have temporarily blocked the charge for security or other reasons."})]})}),e("div",{children:"Please double-check your card details. If you prefer, you can also try again later. If you want to use a different card, please contact support."})]})}),n(ke,{className:"flex flex-col !gap-[10px] px-[20px] py-[10px] sm:flex-row",children:[e(E,{className:"min-h-[36px] min-w-[94px] !text-[13px] !font-semibold",variant:"contained",onClick:d,children:"Contact us"}),e(E,{className:"min-h-[36px] min-w-[94px] !text-[13px] !font-semibold",variant:"contained",onClick:c,children:"Check saved cards"}),e(E,{className:"min-h-[36px] min-w-[94px] !text-[13px] !font-semibold",variant:"contained",onClick:l,children:"Ok"})]})]})})}function ia({subscriptions:a,queryStatus:t}){const s=se(ae.downSm,{noSsr:!0}),[o,l]=(0,r.useState)(1),c=(0,r.useCallback)((h,u)=>{l(u)},[]),d=s?5:10,p=na(a,d)[o-1],i=(0,r.useMemo)(()=>Math.ceil((a?.length||0)/d),[a?.length,d]);return n("div",{className:"sm:px-40",children:[e("div",{className:"font-set-sb18 sm:font-set-sb24 border-y border-gray-250 p-16 text-gray-t0 dark:border-gray-800 sm:border-y-0 sm:py-24 sm:pl-0",children:"Championed Novels"}),s&&n("div",{className:"grid",children:[p?.map(h=>e(V,{subscription:h},h.id)),a&&(a?.length||0)===0&&e("div",{className:"px-[16px] pt-[20px]",children:"No records foun
3d"})]}),!s&&e(Te,{className:"max-h-[235px] sm:max-h-[450px]",children:n(Me,{className:"sm:max-h-full",size:"small",stickyHeader:!0,children:[e(De,{className:"font-set-sb13 border-y border-gray-250 bg-gray-container-base text-gray-550 dark:border-gray-800 dark:text-gray-500",children:n(_,{className:"h-38",children:[e(y,{children:"#"}),e(y,{children:"Novel"}),e(y,{children:"Extra Chapters"}),e(y,{children:"Tier"}),e(y,{children:"Price"}),e(y,{children:"Active Until"}),e(y,{children:" "})]})}),n(Ie,{children:[p?.map((h,u)=>n(_,{className:"h-38",children:[e(b,{className:"font-semibold",children:(o-1)*d+u+1}),e(V,{subscription:h})]},h.id)),a&&(a?.length||0)===0&&e(_,{className:"h-38",children:e(b,{colSpan:8,children:"No records found"})})]})]})}),e("div",{className:"px-20 py-20 sm:px-0 sm:pb-60 sm:pt-15",children:e(te,{count:i,page:o,onChange:c})}),e(Oe,{status:t})]})}var b=(0,r.memo)(function({className:t,...s}){return e(Ae,{className:Q("border-b border-gray-250 !px-[16px] leading-tight dark:border-gray-800",t),...s})}),y=(0,r.memo)(function({className:t,children:s}){return e("th",{className:S("px-16 text-left",t),children:s})}),V=(0,r.memo)(function({subscription:t}){const{requestConfirmation:s}=Ce(),[o,l]=(0,r.useState)({isOpen:!1,errorMessage:void 0}),[c,d]=(0,r.useState)(!1),p=se(ae.downSm,{noSsr:!0}),i=t.plan?.plan.oneofKind==="sponsor"?t.plan?.plan:void 0,h=Z(),{grpcRequest:u}=pe(),N=de(),C=i?`/manage/subscriptions/sponsorships/${i?.sponsor?.novelInfo?.slug}`:"",M=(0,r.useCallback)(()=>{h(C)},[h,C]),I=(0,r.useCallback)(async()=>{if(t.externalId){if(t.defaultPaymentMethod?.cardDetails?.last4)try{const f=`We’re about to retry your subscription payment using the card ending in ${t.defaultPaymentMethod.cardDetails.last4}. If you confirm, we’ll charge the outstanding amount right away and your subscription will stay active without interruption. 
4Do you want to proceed?`;await s("Confirmation Needed",f,"Yes","No",!1)}catch{return}try{d(!0);const f=ie.create({subscriptionId:t.externalId?.value,paymentGateway:t.paymentGateway});(await u(J,v=>v.chargeOutstandingSubscription,f)).success?(j("Successfully charged the outstanding subscription.",{type:"success"}),await N.invalidateQueries(["subscriptions"])):l({isOpen:!0,errorMessage:void 0})}catch(f){f instanceof he?l({isOpen:!0,errorMessage:f.response?.description}):j(f.message,{type:"error",bodyClassName:"text-red-800"})}finally{d(!1)}}},[t,u,N,s]),A=(0,r.useCallback)(()=>{l({isOpen:!1,errorMessage:void 0})},[]);if(i?.oneofKind!=="sponsor")return null;const g=t.isOutstanding?.value??!1;let m=i.sponsor?.advanceChapterCount.toLocaleString();return m==="-1"&&(m="Unlimited"),n(P,{children:[p&&e(P,{children:n("div",{className:"break-word max-w-full border-b border-gray-250 px-20 py-15 dark:border-gray-800",children:[n("button",{type:"button",className:"flex max-w-full cursor-pointer flex-row items-center border-0 bg-transparent p-0 text-left",onClick:M,children:[n("div",{className:"flex-1 text-ellipsis pr-[20px]",children:[n("div",{className:"font-set-r12 pb-3 text-gray-550",children:["Active until"," ",e("span",{className:S("",{"text-red-800 font-bold":g}),children:g?"Past due":(0,oa.default)(fe(t.billingPeriod?.periodEnd))?.format("MM/DD/YYYY")})]}),e("div",{className:"font-set-sb16 pb-5 text-gray-t0",children:e("span",{className:"line-clamp-1",children:i.sponsor?.novelInfo?.name})}),e("div",{className:"font-set-r13 pb-4 text-gray-550",children:e("span",{className:"line-clamp-1",children:i.sponsor.name})}),e("div",{className:"font-set-r13 text-gray-550",children:q(i.sponsor.price)})]}),n("div",{children:[e("div",{className:"font-set-b18 pb-2 text-center font-bold text-gray-t0",children:m}),e("div",{className:"font-set-r12 whitespace-nowrap text-center text-gray-550",children:"Chapters"})]})]}),e("div",{className:"mt-10 flex flex-row flex-wrap items-baseline",children:g&&n(P,{children:[e($,{className:"mr-10 !text-[10px] font-normal",spinner:c,disabled:c,onClick:I,children:"Retry payment"}),e(U,{plan:i.sponsor,currentSubscription:t??null,renderChampionPlan:Y})]})})]})}),!p&&n(P,{children:[e(b,{children:e(z,{to:`/manage/subscriptions/sponsorships/${i.sponsor?.novelInfo?.slug}`,className:"underline",children:i.sponsor?.novelInfo?.name})}),e(b,{children:m}),e(b,{children:i.sponsor.name}),e(b,{children:q(i.sponsor.price)}),e(b,{className:S("",{"text-red-800 font-bold":g}),children:g?"Past due":xe(t.billingPeriod?.periodEnd)}),e(b,{children:g&&n("div",{className:"flex flex-row flex-wrap items-baseline",children:[e($,{className:"mr-10 !text-[12px] font-normal",spinner:c,disabled:c,onClick:I,children:"Retry payment"}),e(U,{plan:i.sponsor,currentSubscription:t??null,renderChampionPlan:Y})]})})]}),e(la,{errorMessage:o.errorMessage,open:o.isOpen,onClose:A})]})});
4function ca({novelId:a,sponsorPlans:t,subscriptions:s}){const o=(0,r.useMemo)(()=>s?.find(l=>l.plan?.plan.oneofKind==="sponsor"&&l.plan.plan.sponsor.novelInfo?.id===a),[a,s]);return e(We,{novelId:a,sponsorPlans:t,onSelectPlan:(0,r.useCallback)(async()=>{},[]),currentSubscription:o||null})}function x({children:a,...t}){const[s,o]=(0,r.useState)(!1);return e(D.Provider,{value:{expanded:s,setExpanded:o},children:e("div",{...t,children:a})})}var D=(0,r.createContext)({}),da=({children:a,className:t,...s})=>{const{expanded:o,setExpanded:l}=(0,r.useContext)(D);return e("button",{className:"w-full",onClick:()=>l(!o),...s,children:e("div",{className:Q("flex w-full items-center text-left",t),children:a})})},ma=({children:a,className:t})=>{const{expanded:s}=(0,r.useContext)(D);return e(Je,{className:t,expanded:s,children:pa(a,{expanded:s})})},pa=(a,t)=>typeof a=="function"?a(t):a,ha=({children:a,classes:t,...s})=>{const{expanded:o}=(0,r.useContext)(D);return e("div",{className:Q(S("flex h-full transition-transform",o?`rotate-180 ${t?.rootExpanded}`:t?.root)),...s,children:a})};x.Button=da;x.Panel=ma;x.Icon=ha;function ua({onChange:a,value:t,classes:s}){return n("div",{className:"flex h-44 rounded-full bg-gray-100 dark:bg-gray-950",children:[e("label",{className:"p-14",htmlFor:"search-input",children:e(Ve,{className:"h-16 w-16 text-gray-500"})}),e("input",{className:S("font-set-sb15 grow bg-transparent pr-14 text-gray-500 placeholder:text-gray-500",s?.input),id:"search-input",placeholder:"Search",type:"text",onChange:a,value:t})]})}function fa({subscriptions:a}){const t=(0,r.useRef)(null),[s,o]=(0,r.useState)(null),[l]=Qe(s,200),[c,d]=(0,r.useState)(1),[p,i]=(0,r.useState)(!1),h=10,{data:u,isFetching:N}=R(Ke,m=>m.getSponsorNovels,ee(Be,{sortBy:_e.Name,sortDirection:Ee.ASC,excludeMySponsored:!0,filters:[...l?[{filter:{oneofKind:"name",name:l}}]:[]],pageInfo:{page:c,count:h}}),["sponsorNovels",c,h,l],{staleTime:Number.POSITIVE_INFINITY,keepPreviousData:!0,showModalOnError:!0}),C=(0,r.useMemo)(()=>Math.ceil((u?.pageInfo?.total||0)/h),[u?.pageInfo?.total,h]),M=(0,r.useCallback)(async(m,f)=>{H(()=>{d(f),i(!0)}),t.current&&await je(t.current,{verticalOffset:-150})},[]);(0,r.useEffect)(()=>{i(m=>m&&!1)},[u]);const I=(0,r.useCallback)(m=>{H(()=>{d(1),o(m.target.value)})},[]),A=p&&N||!u,g=(0,r.useMemo)(()=>u?.items.reduce((m,f)=>{const v=f.sponsorInfo.plans;if(v.sort((w,k)=>w.advanceChapterCount===-1?1:k.advanceChapterCount===-1?-1:w.advanceChapterCount-k.advanceChapterCount),v.length>0){const w=v[v.length-1];let k=w;if(w?.advanceChapterCount===-1&&v.length>1){const T=v.filter(re=>re.advanceChapterCount>0);T.length>0&&(k=T[T.length-1])}m.push({novel:f,maxAdvChapters:k?.advanceChapterCount,hasUnlimitedPlan:w?.advanceChapterCount===-1})}else m.push({novel:f});return m},[])||[],[u?.items]);return n("div",{className:"sm:px-40",children:[n("div",{className:"flex flex-col px-20 sm:flex-row sm:items-center sm:px-0 sm:pb-16 sm:pt-40",children:[e("h2",{className:"font-set-sb18 sm:font-set-sb24 pb-16 pt-24 text-gray-t0 sm:py-0",children:"Available Novels"}),e("div",{className:"pb-20 sm:ml-auto sm:pb-0",children:e(ua,{onChange:I,value:s??"",classes:{input:"w-106 focus:w-200 transition-[width] duration-300"}})})]}),n("div",{children:[n("div",{className:"divide-y divide-gray-250 border-y border-gray-250 dark:divide-gray-800 dark:border-gray-800 sm:divide-y-0 sm:border-y-0",ref:t,children:[A&&e(va,{count:h}),!A&&g.map(m=>e("div",{className:"sm:pb-10",children:e(xa,{subscriptions:a||[],novel:m.novel,maxAdvChapter:m.maxAdvChapters})},m.novel.id))]}),e("div",{className:"px-20 pb-60 pt-20 sm:px-0",children:e(te,{count:C,page:c,onChange:M})})]})]})}var xa=({subscriptions:a,novel:t,maxAdvChapter:s})=>{const{coverUrl:o,coverBlurHash:l,hasAnyChampionPlans:c,championTiers:d,championDescHtml:p}=$e(t),i=(d||[]).length,{name:h,id:u}=t,N=Xe(p||"",{removeTags:["hr","img"],transform:{p:Ye}});return n(x,{className:"dark:bg-gray-850 sm:rounded-12 sm:shadow-ww-text-container",children:[n(x.Button,{className:"px-20 py-10 sm:px-10",children:[n("div",{className:"flex items-center space-x-12",children:[e(Le,{className:"shrink-0",innerClassName:"rounded-4",src:o,blurHash:l,width:34,he
4ight:48,lazy:!0}),n("div",{children:[e("h4",{className:"font-set-b16 pb-4 text-gray-t0",children:h}),c&&n("div",{className:"font-set-sb15 flex text-gray-desc",children:[`${i} Tier${i>1?"s":""}`,e(ga,{}),s===0?e("div",{children:"All chapters"}):e("div",{children:`${s} Advance`})]})]})]}),e("div",{className:"ml-auto",children:e(x.Icon,{classes:{root:"text-gray-500",rootExpanded:"text-blue-600"},children:e(ne,{className:"h-16 w-16 rotate-180"})})})]}),e(x.Panel,{className:"border-t border-gray-250 px-20 py-10 dark:border-gray-800 sm:px-10",children:({expanded:C})=>n("div",{children:[p&&e("div",{className:"font-set-r13 text-gray-t3",children:N}),C&&e(ca,{novelId:u,sponsorPlans:d,subscriptions:a}),!c&&e("div",{className:"font-set-r13 text-gray-t3",children:"This novel doesn’t have any subscription tiers available yet! Please check again at a later date."})]})})]})},ga=()=>e("div",{className:"flex items-center px-5",children:e("div",{className:"h-3 w-3 rounded-full bg-gray-600"})}),O=(0,r.memo)(function({className:t,...s}){return e(be,{className:S("bg-[#ffffff] dark:bg-[#2a2a2a]",t),...s})}),va=(0,r.memo)(function({count:t=4}){return e("div",{className:"my-[20px] flex flex-col space-y-[1px] md:space-y-[24px]",children:Array.from({length:t},(s,o)=>`champion-novel-placeholder-${o}`).map(s=>e("div",{className:"bg-linear-to-b h-[68.8px] from-[#f5f5f5] to-[#f5f5f5] px-[16px] py-[13px] dark:from-[#333] dark:to-[#333] md:rounded-[10px]",children:n("div",{className:"flex flex-row items-center space-x-[12px]",children:[e("div",{children:e(O,{className:"mx-auto h-[42px] w-[42px] rounded-[6px]",variant:"rectangular",animation:"pulse"})}),n("div",{className:"flex-1",children:[e(O,{className:"h-[15px] w-[40%] max-w-[100%]",variant:"rectangular",animation:"wave"}),e(O,{className:"mt-[5px] h-[15px] w-[60%] max-w-[100%]",variant:"rectangular",animation:"wave"})]})]})},s))})});ve();function ba(){return e("div",{className:"grid grid-cols-[repeat(3,minmax(0,160px))] justify-center space-x-10 px-20 sm:flex sm:space-x-13",children:Na.map(a=>ge(ya,{...a,key:a.title}))})}var ya=({imgSrc:a,imgAlt:t,title:s,desc:o})=>n("div",{className:"flex flex-1 flex-col items-center space-y-6 rounded-12 bg-gray-100 p-4 pb-16 text-center xs:min-h-[160px] xs:p-10 sm:min-h-[170px] sm:max-w-[170px]",children:[e("img",{className:"h-48 w-48 sm:h-64 sm:w-64",src:a,alt:t}),e("h1",{className:"font-set-b15 whitespace-pre-line text-gray-900 xs:font-set-b16 sm:font-set-b18 sm:whitespace-normal",children:s}),e("h3",{className:"font-set-m12 whitespace-pre-line text-gray-600 xs:font-set-m13 sm:font-set-m15",children:o})]}),Na=[{imgSrc:"/images/[email protected]",imgAlt:"free access benefit icon",title:`Free
5 Access`,desc:`All Published
6 Chapters`},{imgSrc:"/images/[email protected]",imgAlt:"advanced access benefit icon",title:`Early
7 Access`,desc:`Advance
8 Chapters`},{imgSrc:"/images/[email protected]",imgAlt:"sneak Peeks benefit icon",title:`Sneak
9 Peeks`,desc:`Upcoming
10 Novels`}];function Ca(){return n(B,{children:[e(B.TitleSection,{className:"px-24",children:n("div",{className:"flex h-full flex-col justify-end sm:items-center",children:[e("img",{className:"h-32 w-140 sm:h-40 sm:w-174",src:"/images/[email protected]",alt:"champion logo"}),e("h1",{className:"font-set-b24 pb-4 text-white sm:font-set-b32 sm:pb-13",children:"Champion your favorite stories!"})]})}),n(B.ContentSection,{children:[e("h4",{className:"font-set-m14 px-24 text-gray-400 sm:font-set-m16 sm:text-center",children:"Subscribe to your favorite stories and be rewarded for it!"}),e("div",{className:"py-32 sm:pt-40 sm:pb-35",children:e(ba,{})})]})]})}function wa(){return e(qe,{className:"bg-gray-300 dark:bg-gray-950",children:n("div",{className:"px-20 pt-24 pb-20 text-center",children:[e("h1",{className:"font-set-sb18 text-gray-t1",children:"Champion FAQ"}),e("div",{className:"mx-auto max-w-[530px] py-16 text-left sm:pt-24",children:Ze.map(a=>n(x,{className:"mb-10 rounded-12 bg-gray-container-base last:mb-0",children:[n(x.Button,{className:"font-set-sb14 py-10 px-12 text-gray-t2",children:[a.q,e("div",{className:"ml-auto pl-8",children:e(x.Icon,{children:e(ne,{className:"h-16 w-16 rotate-180 text-gray-500"})})})]}),e(x.Panel,{className:"font-set-r13 px-12 pb-10 text-gray-t3",children:a.a})]},a.q))}),e(z,{to:"/manage/subscriptions/faq",className:"font-set-sb15 text-gray-700 hover:underline dark:text-gray-500",children:"Visit our full FAQ to learn more"})]})})}function Sa(){const{user:a,isLegacy:t}=Fe(),{data:s,...o}=R(J,p=>p.getSubscriptions,ee(ce,{type:G.Sponsor}),["subscriptions",G.Sponsor,a?.id],{keepPreviousData:!0,showModalOnError:!0}),{data:l}=R(Re,p=>p.getPaymentMethods,ue.create(),["payment-methods",a?.id],{staleTime:0,keepPreviousData:!0,refetchOnMount:!0,refetchOnWindowFocus:!1}),c=(0,r.useMemo)(()=>s?.items?.filter(p=>p.active),[s?.items]),d=(0,r.useMemo)(()=>l?.items?q(l.items.find(p=>p.id?.value==="credits")?.balance):"...",[l]);return n("div",{className:"mx-auto max-w-[1024px]",children:[n("div",{className:"pb-24 text-center",children:[e("h1",{className:"font-set-sb21 pb-20 text-gray-t0 sm:font-set-sb32 sm:pb-22",children:"Champion"}),e("h4",{className:"font-set-r14 pb-12 text-gray-t2 sm:font-set-r15 sm:pb-16",children:"Support your favourite translators!"}),!!t&&n("div",{className:"inline-flex items-center space-x-6 text-gray-t2",children:[e("div",{className:"font-set-sb14 sm:font-set-sb18",children:"Site Credits"}),n("div",{className:"flex items-center space-x-3",children:[e(ra,{}),e("div",{className:"font-set-sb16 sm:font-set-sb18",children:d})]})]})]}),n("div",{className:"-mx-20 sm:-mx-30",children:[e(ia,{subscriptions:c,queryStatus:o.status}),e(Ca,{}),e(wa,{}),e(fa,{subscriptions:c})]})]})}function Va(){return n(P,{children:[e(Ue,{defer:!1,children:e("title",{children:"Champion"})}),e(Sa,{})]})}
10export{Va as default};
11
12//# sourceMappingURL=sponsorships.Ds4zY7rX.min.js.map
13//# debugId=0daccbed-21e2-5d6c-ab5c-2f8d0a05dd25

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.