PageSourceSearch

https://acapitalgroup.com/static/js/1611.19ae2882.chunk.js

js acapitalgroup.com collected 2026-10-09 03:53:44 UTC 6,616 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[1611],{61611(e,s,t){t.r(s),t.d(s,{default:()=>g});var a=t(5544),r=t(9950),c=t(52167),l=t(87348),n=t(81473),o=t(20340),d=t(32033),i=t(42989),u=t(45462),x=t(86009),m=t(67143),p=t(99438),b=t(29975),f=t(44414);const h=(e,s)=>"var(--ma-".concat(e,", ").concat(s,")"),y=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"usd";try{return new Intl.NumberFormat(void 0,{style:"currency",currency:(s||"usd").toUpperCase()}).format((e||0)/100)}catch(t){return"$".concat(((e||0)/100).toFixed(2))}};function g(){const e=(0,l.g)().id,s=(0,l.Zp)(),t=(0,r.useState)(null),g=(0,a.A)(t,2),j=g[0],N=g[1],v=(0,r.useState)(!0),_=(0,a.A)(v,2),w=_[0],k=_[1],C=(0,r.useState)(!1),A=(0,a.A)(C,2),S=A[0],B=A[1],F=(0,l.KC)()||{},M=F.sectionLabel?F.sectionLabel("bundles","Session Bundles"):"Session Bundles";(0,r.useEffect)(()=>{n.F_.getBundle(e).then(e=>N(e.data)).catch(()=>{d.oR.error("Bundle not found"),s("/my-account/bundles")}).finally(()=>k(!1))},[e,s]);if(w)return(0,f.jsx)("div",{className:"flex justify-center py-12",children:(0,f.jsx)(i.A,{className:"w-6 h-6 animate-spin",style:{color:h("text-muted","#6b7280")}})});if(!j)return null;const E=Math.max(0,j.session_count*(j.single_session_value_cents||0)-j.price_cents),I=!j.mentor_id;return(0,f.jsxs)("div",{"data-testid":"bundle-detail-page",className:"max-w-full overflow-x-hidden",children:[(0,f.jsxs)(l.N_,{to:"/my-account/bundles",className:"inline-flex items-center gap-1 text-xs mb-4 hover:opacity-80",style:{color:h("text-secondary","#9ca3af")},"data-testid":"back-to-bundles",children:[(0,f.jsx)(u.A,{className:"w-3 h-3"})," Back to ",M]}),j.banner_url&&(0,f.jsx)("div",{className:"w-full h-56 sm:h-72 rounded-lg overflow-hidden mb-6","data-testid":"bundle-detail-banner",children:(0,f.jsx)("img",{src:j.banner_url,alt:j.name,className:"w-full h-full object-cover"})}),(0,f.jsxs)("div",{className:"flex items-start justify-between gap-4 flex-wrap mb-4",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{className:"flex items-center gap-2 mb-2",children:I?(0,f.jsx)("span",{className:"text-[10px] px-2 py-0.5 rounded",style:{backgroundColor:h("accent","#c9a84c")+"20",color:h("accent","#c9a84c")},children:"Global"}):(0,f.jsxs)("span",{className:"text-[10px] px-2 py-0.5 rounded bg-blue-500/15 text-blue-400 flex items-center gap-1",children:[(0,f.jsx)(b.A,{className:"w-2.5 h-2.5"})," ",j.mentor_name||"Mentor"]})}),(0,f.jsx)("h1",{className:"text-3xl font-bold",style:{color:h("text-primary","#fff"),fontFamily:"'DM Serif Display', serif"},children:j.name})]}),(0,f.jsxs)("button",{onClick:async()=>{if(j){B(!0);try{var e;const s=localStorage.getItem("auth_token"),t=await c.A.post("".concat("https://acapitalgroup.com","/api/member/bundles/checkout/").concat(j.id),{origin_url:window.location.origin},{headers:{Authorization:"Bearer ".concat(s)}});if(null!==(e=t.data)&&void 0!==e&&e.url)return void(window.location.href=t.data.url);d.oR.error("Checkout failed")}catch(a){var s,t;d.oR.error((null===(s=a.response)||void 0===s||null===(t=s.data)||void 0===t?void 0:t.detail)||"Error")}finally{B(!1)}}},disabled:S,className:"px-5 py-2.5 rounded text-sm font-medium flex items-center gap-2 disabled:opacity-50",style:{backgroundColor:h("button-bg","#c9a84c"),color:h("button-text","#0d0f14")},"data-testid":"bundle-detail-buy",children:[S?(0,f.jsx)(i.A,{className:"w-4 h-4 animate-spin"}):(0,f.jsx)(p.A,{className:"w-4 h-4"}),"Buy ",y(j.price_cents,j.currency)]})]}),(0,f.jsxs)("div",{className:"grid sm:grid-cols-3 gap-3 mb-6",children:[(0,f.jsxs)("div",{className:"p-4 rounded-lg",style:{backgroundColor:h("card-bg","#13161e"),border:"1px solid ".concat(h("card-border","rgba(255,255,255,0.05)"))},"data-testid":"bundle-stat-price",children:[(0,f.jsx)("p",{className:"text-[11px] uppercase tracking-wider mb-1",style:{color:h("text-muted","#6b7280")},children:"Price"}),(0,f.jsx)("p",{className:"text-xl font-bold",style:{color:h("text-primary","#fff")},children:y(j.price_cents,j.currency)})]}),(0,f.jsxs)("div",{className:"p-4 rounded-lg",style:{backgroundColor:h("card-bg","#13161e"),border:"1px solid ".concat(h("card-border","rgba(255,255,255,0.05)"))},"data-testid":"bundle-stat-sessions",children:[(0,f.jsx)("p",{className:"text-[11px] uppercase tracking-wider mb-1",style:{color:h("text-muted","#6b7280")},children:"Sessions included"}),(0,f.jsxs)("p",{className:"text-xl font-bold flex items-center gap-1.5",style:{color:h("text-primary","#fff")},children:[(0,f.jsx)(m.A,{className:"w-4 h-4"}),j.session_count]})]}),E>0?(0,f.jsxs)("div",{className:"p-4 rounded-lg",style:{backgroundColor:h("card-bg","#13161e"),border:"1px solid ".concat(h("accent","#c9a84c"))},"data-testid":"bundle-stat-savings",children:[(0,f.jsx)("p",{className:"text-[11px] uppercase tracking-wider mb-1",style:{color:h("text-muted","#6b7280")},children:"Savings"}),(0,f.jsxs)("p",{className:"text-xl font-bold flex items-center gap-1.5",style:{color:h("accent","#c9a84c")},children:[(0,f.jsx)(x.A,{className:"w-4 h-4"}),y(E,j.currency)]}),(0,f.jsxs)("p",{className:"text-[10px] mt-0.5",style:{color:h("text-muted","#6b7280")},children:["vs ",j.session_count,"\xd7 single sessions"]})]}):(0,f.jsxs)("div",{className:"p-4 rounded-lg",style:{backgroundColor:h("card-bg","#13161e"),border:"1px solid ".concat(h("card-border","rgba(255,255,255,0.05)"))},"data-testid":"bundle-stat-currency",children:[(0,f.jsx)("p",{className:"text-[11px] uppercase tracking-wider mb-1",style:{color:h("text-muted","#6b7280")},children:"Currency"}),(0,f.jsx)("p",{className:"text-xl font-bold uppercase",style:{color:h("text-primary","#fff")},children:j.currency||"usd"})]})]}),j.single_session_value_cents>0&&(0,f.jsxs)("div",{className:"mb-6 p-3 rounded text-xs",style:{backgroundColor:h("input-bg","#0d0f14"),color:h("text-secondary","#9ca3af")},children:["Equivalent of ",(0,f.jsx)("strong",{style:{color:h("text-primary","#fff")},children:y(j.single_session_value_cents,j.currency)})," per single session."]}),j.description&&(0,f.jsxs)("div",{className:"rounded-lg p-6 mb-6",style:{backgroundColor:h("card-bg","#13161e"),border:"1px solid ".concat(h("card-border","rgba(255,255,255,0.05)"))},children:[(0,f.jsx)("h2",{className:"text-sm font-semibold mb-3 uppercase tracking-wider",style:{color:h("text-secondary","#9ca3af")},children:"About this bundle"}),(0,f.jsx)("div",{className:"rich-text-content [&_p]:!text-inherit [&_ul]:!pl-4 [&_ol]:!pl-4",style:{color:h("text-primary","#fff")},"data-testid":"bundle-detail-description",dangerouslySetInnerHTML:{__html:(0,o.F)(j.description)}})]})]})}}}]);

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.