PageSourceSearch

https://agda.com.au/wp-content/themes/agda/dist/frontend/assets/account-dashboard-mC2fJqNu.js

js agda.com.au collected 2026-10-02 03:39:47 UTC 3,790 bytes, 2 lines download raw bytes

1import{j as e,t as p,o as x,as as h,B as r,M as n}from"./entry.client-BF1tJIhu.js";import{L as u}from"./LoadingResults-BL-vfXql.js";import{u as b,R as f}from"./RequireAuth-BfwyEzJr.js";import{f as a}from"./dates-D-wmKt_5.js";import{S as j}from"./Transition-BTIyssUe.js";import{R as y}from"./ResultList-DH3pAUG_.js";import{A as N}from"./ArticleCard-BdNvmt8s.js";import{N as g}from"./Note-TNu4FQb-.js";import"./LoadingSensor-BfQ9saTp.js";import"./NoResults-B0C5vLHC.js";import"./ChipList-DQRPHu-0.js";import"./RouteFlipped-B4cBB0q3.js";import"./ResponsiveImage-CSPuaRWh.js";function v(i){return e.jsx("div",{className:p("bg-grey-light px-4 pb-3 pt-2 border-t border-black",i.className),children:i.children})}function M(i){return b(),e.jsx(f,{children:e.jsx(j,{children:e.jsxs("div",{className:"grid-auto pt-8 pb-10",children:[e.jsx("div",{className:"col-span-12 pb-10",children:e.jsx(R,{})}),e.jsxs("div",{className:"col-span-12 pt-3",children:[e.jsxs("h4",{className:"type-title-l-medium pb-4 mb-5 border-b flex items-center gap-2","data-transition":"fade",children:[e.jsx(x,{className:"size-[1em]"}),e.jsx("div",{children:"Latest Members Only Content"})]}),e.jsx(y,{mode:"card",items:i.latestMemberOnlyContent??[],hasNextPage:!1,loading:!1,loadingNextPage:!1,component:N,dynamicSizing:!0,keyField:"uri",mobileMode:"row"})]})]})})})}M.displayName="View(account/account-dashboard)";function D(i){var l,m,c,o,d;const s=(l=i.customer)==null?void 0:l.memberStatus;if(!s)return null;const t=[];return s.expiryDate&&s.expiresSoon&&s.requiresAction&&!s.nextBillDate?t.push(`Your membership will expire on ${a(s.expiryDate)}.`):s.expiryDate&&!s.expired&&t.push(`Valid till ${a(s.expiryDate)}. `),s.nextBillDate?t.push(`Next payment is ${a(s.nextBillDate)}. `):s.expired&&(s.expiryDate?t.push(`Membership expired ${a(s.expiryDate)}.`):t.push("Membership expired.")),e.jsxs("div",{className:"stack-y-3",children:[e.jsxs("div",{className:"stack-y-1",children:[e.jsx("p",{className:"type-title-xs-medium",children:"Membership no."}),e.jsx("p",{className:p("type-title-xs-roman",s.expired?"line-through":""),children:s.memberNumber}),!s.isActive&&!s.plan?e.jsx(g,{danger:!0,children:"You do not have an active membership"}):null,!!s.since&&e.jsxs("div",{className:"type-ui-s-roman text-grey-mid",children:["Member since ",a(s.since)]})]}),e.jsxs("div",{className:"stack-y-1",children:[!!((m=s.plan)!=null&&m.name)&&e.jsxs(e.Fragment,{children:[e.jsxs("p",{className:"type-title-xs-medium",children:[s.plan.name.replace(/\s+Membership$/,"")," Membership"]}),e.jsx("p",{className:"type-title-xs-roman",children:s.price})]}),t.length>0&&e.jsx("div",{className:"type-ui-s-roman text-grey-mid",children:t.join("")})]}),e.jsxs("div",{className:"mt-3 flex gap-1",children:[s.expired||s.needsPayment?e.jsx(r,{href:n.renew(),variant:"outline",children:"Renew Membership"}):s.needsPayment?e.jsx(r,{href:n.account("billing"),variant:"outline",children:"Update Payment"}):e.jsx(r,{href:n.account("membership"),children:"Manage membership"}),((d=(o=(c=i.customer)==null?void 0:c.latestMembership)==null?void 0:o.plan)==null?void 0:d.slug)==="design-business"&&s.isActive&&e.jsx(r,{variant:"outline",href:n.account("team"),children:"Manage team"})]})]})}function R(){var t;const i=h(void 0),s=(t=i.data)==null?void 0:t.customer;return i.isLoading?e.jsx(u,{}):s?e.jsxs("div",{"data-transition":"children/fade",children:[e.jsxs("h1",{className:"type-title-xl-medium px-5 text-center",children:["Hi, ",s.firstName]}),e.jsx("div",{className:"flex gap-4 justify-center mt-5",children:e.jsxs(v,{className:"w-full max-w-[300px]",children:[e.jsx("div",{className:"type-ui-s-roman-caps mb-3",children:"Membership"}),e.jsx(D,{...i.data})]})})]}):null}export{M as default};
2//# sourceMappingURL=account-dashboard-mC2fJqNu.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.