PageSourceSearch

https://www.theconradapp.com/assets/subscriptions-page-Tdm53a_C.js

js theconradapp.com collected 2026-10-10 02:44:55 UTC 3,112 bytes, 2 lines download raw bytes

1import{r as c,j as e}from"./__vite-browser-external-CPRS3umU.js";import{u as j,a5 as g,p as d,af as N,ag as o,ah as w,a2 as v,ae as i}from"./main-DVHLog1p.js";import{B as I}from"./index-DK6wvB33.js";import{u as P,g as M}from"./use-preferred-interest-hRgZyy6o.js";try{let s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="8f31fa98-24f8-442b-9c1a-a48d3eb3c02f",s._sentryDebugIdIdentifier="sentry-dbid-8f31fa98-24f8-442b-9c1a-a48d3eb3c02f")}catch{}const S=()=>{const s=j(),{data:t}=g(),[m,l]=c.useState(!1),{handleInterestRequest:f,PreferredInterestDialog:u}=P(),x=[{label:"Settings",href:"/settings"},{label:"Your Membership"}],a=t==null?void 0:t.subscription;if(c.useEffect(()=>{t&&!a&&s(d.subscriptions.getHref())},[t,a,s]),!a||!t)return null;const b=async()=>{try{const{billingPortalUrl:n}=await M();window.location.href=n}catch(n){console.error("Failed to open billing portal:",n)}},y=a.plan||N.ROOKIE,p=a.currentPeriodEnd?o(new Date(a.currentPeriodEnd),"d MMMM yyyy"):"N/A",r=a.createdAt?o(new Date(a.createdAt),"MMMM yyyy"):null,h=async()=>{try{l(!0),await f(t.companyName)}finally{l(!1)}};return e.jsxs("div",{className:"mx-auto w-full p-6",children:[e.jsx("div",{className:"my-6",children:e.jsx(I,{items:x})}),e.jsxs("div",{className:"mx-auto max-w-2xl",children:[e.jsx(w,{className:"mb-6 p-6",children:e.jsxs("div",{className:"mb-2 flex items-center gap-3",children:[e.jsx("div",{className:"flex size-12 items-center justify-center rounded-md bg-background",children:e.jsx(v,{className:"size-7"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-semibold",children:y}),r&&e.jsxs("p",{className:"text-sm text-muted",children:["Member since ",r]})]})]})}),e.jsxs("div",{className:"flex flex-col divide-y",children:[e.jsxs("div",{className:"flex items-center justify-between py-4",children:[e.jsx("div",{className:"text-base",children:"Next billing date"}),e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"mr-3 text-muted",children:p})})]}),e.jsxs("button",{type:"button",onClick:b,className:"flex w-full items-center justify-between py-4 text-left",children:[e.jsx("span",{className:"text-base",children:"Billing history & Payment details"}),e.jsx(i,{className:"size-5 text-muted"})]}),e.jsxs("button",{type:"button",onClick:()=>s(d.subscriptions.getHref()),className:"flex w-full items-center justify-between py-4 text-left",children:[e.jsx("span",{className:"text-base",children:"See available memberships"}),e.jsx(i,{className:"size-5 text-muted"})]}),e.jsxs("button",{type:"button",onClick:h,className:"flex w-full items-center justify-between py-4 text-left",disabled:m,children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-base",children:"Get your broker to pay for you"}),e.jsx("p",{className:"text-sm text-muted",children:"Request Conrad Preferred membership"})]}),e.jsx(i,{className:"size-5 text-muted"})]})]})]}),u()]})};export{S as default};
2//# sourceMappingURL=subscriptions-page-Tdm53a_C.js.map

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.