PageSourceSearch

https://acapitalgroup.com/static/js/6775.8ddb156f.chunk.js

js acapitalgroup.com collected 2026-10-09 03:53:38 UTC 10,091 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[6775],{71283(e,a,t){t.d(a,{A:()=>f});var s=t(5544),l=t(9950),c=t(81473),r=t(32033),n=t(56822),o=t(42989),d=t(15924),i=t(19201),x=t(86311),m=t(81830),p=t(31641),h=t(66987),u=t(44414);const y=(e,a)=>"var(--ma-".concat(e,", ").concat(a,")");function f(e){let a=e.asModal,t=void 0!==a&&a,f=e.trigger,b=void 0===f?null:f,g=e.compact,j=void 0!==g&&g;const w=(0,l.useState)(null),N=(0,s.A)(w,2),v=N[0],C=N[1],A=(0,l.useState)(!0),k=(0,s.A)(A,2),R=k[0],S=k[1],L=(0,l.useState)(!1),U=(0,s.A)(L,2),F=U[0],O=U[1],G=(0,l.useState)(""),I=(0,s.A)(G,2),T=I[0],M=I[1],_=(0,l.useState)(!1),E=(0,s.A)(_,2),K=E[0],P=E[1],Y=(0,l.useRef)(null),z=(0,l.useState)(!1),D=(0,s.A)(z,2),q=D[0],B=D[1];(0,l.useEffect)(()=>{B(!(!Y.current||!Y.current.closest(".ma2-scope")))},[]),(0,l.useEffect)(()=>{c.F_.getIcalInfo().then(e=>C(e.data)).catch(()=>r.oR.error("Failed to load subscription URL")).finally(()=>S(!1))},[]);const H="undefined"!==typeof window?window.location.origin:"",J=v?function(e,a){const t=(e||"")+a;return{webcal:(e||"").replace(/^https?:\/\//,"webcal://")+a,https:t,googleAdd:"https://calendar.google.com/calendar/r?cid=".concat(encodeURIComponent(t))}}(H,v.path):null,Q=async(e,a)=>{try{await navigator.clipboard.writeText(a),M(e),r.oR.success("Copied to clipboard"),setTimeout(()=>M(""),1800)}catch(t){r.oR.error("Copy failed \u2014 select and copy manually")}},V=(0,u.jsx)("div",{className:"space-y-4 min-w-0","data-testid":"calendar-sync-card",children:R?(0,u.jsx)("div",{className:"flex justify-center py-6",children:(0,u.jsx)(o.A,{className:"w-5 h-5 animate-spin",style:{color:y("text-muted","#6b7280")}})}):v&&J?(0,u.jsxs)(u.Fragment,{children:[!j&&(0,u.jsx)("p",{className:"text-xs",style:{color:y("text-secondary","#9ca3af")},children:"Subscribe once and every booked mentorship session + registered event flows straight into your calendar app. Updates automatically."}),(0,u.jsxs)("div",{children:[(0,u.jsx)("label",{className:"text-[11px] uppercase tracking-wider",style:{color:y("text-muted","#6b7280")},children:"Your personal subscription URL"}),(0,u.jsxs)("div",{className:"mt-1 flex items-start gap-2 p-2 rounded text-xs font-mono min-w-0",style:{backgroundColor:y("input-bg","#0d0f14"),border:"1px solid ".concat(y("input-border","rgba(255,255,255,0.1)")),color:y("text-primary","#fff")},children:[(0,u.jsx)("span",{className:"flex-1 min-w-0 break-all leading-relaxed","data-testid":"ical-url",children:J.https}),(0,u.jsx)("button",{onClick:()=>Q("https",J.https),className:"shrink-0 p-1 rounded hover:opacity-80",style:{color:y("accent","#c9a84c")},"data-testid":"copy-ical-url",title:"Copy URL",children:"https"===T?(0,u.jsx)(x.A,{className:"w-4 h-4"}):(0,u.jsx)(m.A,{className:"w-4 h-4"})})]}),(0,u.jsx)("p",{className:"text-[11px] mt-1",style:{color:y("text-muted","#6b7280")},children:"Keep this URL private \u2014 anyone with it can see your schedule."})]}),(0,u.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2 min-w-0",children:[(0,u.jsxs)("a",{href:J.googleAdd,target:"_blank",rel:"noopener noreferrer",className:"min-w-0 flex items-center justify-center gap-2 py-2 px-3 rounded text-xs font-medium text-center leading-tight transition-opacity hover:opacity-90",style:{backgroundColor:y("accent","#c9a84c"),color:y("button-text","#0d0f14")},"data-testid":"add-to-google",children:[(0,u.jsx)(p.A,{className:"w-3.5 h-3.5"})," Add to Google Calendar"]}),(0,u.jsxs)("a",{href:J.webcal,className:"min-w-0 flex items-center justify-center gap-2 py-2 px-3 rounded text-xs font-medium text-center leading-tight transition-opacity hover:opacity-90",style:{backgroundColor:y("accent","#c9a84c"),color:y("button-text","#0d0f14")},"data-testid":"add-to-apple",children:[(0,u.jsx)(p.A,{className:"w-3.5 h-3.5"})," Add to Apple Calendar"]}),(0,u.jsxs)("button",{onClick:()=>Q("webcal",J.webcal),className:"min-w-0 flex items-center justify-center gap-2 py-2 px-3 rounded text-xs font-medium text-center leading-tight transition-opacity hover:opacity-90",style:{backgroundColor:y("card-bg","#13161e"),color:y("text-primary","#fff"),border:"1px solid ".concat(y("input-border","rgba(255,255,255,0.1)"))},"data-testid":"copy-webcal",children:["webcal"===T?(0,u.jsx)(x.A,{className:"w-3.5 h-3.5"}):(0,u.jsx)(m.A,{className:"w-3.5 h-3.5"})," Copy webcal://"]})]}),!j&&(0,u.jsxs)("details",{className:"text-xs",style:{color:y("text-secondary","#9ca3af")},children:[(0,u.jsx)("summary",{className:"cursor-pointer hover:opacity-80 py-1","data-testid":"sync-instructions-toggle",children:"Manual setup instructions"}),(0,u.jsxs)("div",{className:"mt-2 space-y-3 pl-2 border-l",style:{borderColor:y("input-border","rgba(255,255,255,0.1)")},children:[(0,u.jsxs)("div",{children:[(0,u.jsx)("p",{className:"font-semibold",style:{color:y("text-primary","#fff")},children:"Google Calendar (web)"}),(0,u.jsxs)("ol",{className:"list-decimal list-inside space-y-0.5 mt-1",children:[(0,u.jsx)("li",{children:'Open calendar.google.com \u2192 left sidebar \u2192 "Other calendars" \u2192 "+" \u2192 "From URL".'}),(0,u.jsx)("li",{children:'Paste the URL above and click "Add calendar".'})]})]}),(0,u.jsxs)("div",{children:[(0,u.jsx)("p",{className:"font-semibold",style:{color:y("text-primary","#fff")},children:"Apple Calendar (macOS/iOS)"}),(0,u.jsxs)("ol",{className:"list-decimal list-inside space-y-0.5 mt-1",children:[(0,u.jsx)("li",{children:"macOS: Calendar \u2192 File \u2192 New Calendar Subscription \u2192 paste URL."}),(0,u.jsx)("li",{children:"iOS: Settings \u2192 Calendar \u2192 Accounts \u2192 Add Account \u2192 Other \u2192 Add Subscribed Calendar."})]})]}),(0,u.jsxs)("div",{children:[(0,u.jsx)("p",{className:"font-semibold",style:{color:y("text-primary","#fff")},children:"Outlook"}),(0,u.jsx)("ol",{className:"list-decimal list-inside space-y-0.5 mt-1",children:(0,u.jsx)("li",{children:"Calendar \u2192 Add calendar \u2192 Subscribe from web \u2192 paste URL."})})]})]})]}),(0,u.jsx)("div",{className:"pt-2",style:{borderTop:"1px solid ".concat(y("input-border","rgba(255,255,255,0.1)"))},children:K?(0,u.jsxs)("div",{className:"flex items-start gap-2 p-3 rounded",style:{backgroundColor:y("input-bg","#0d0f14"),border:"1px solid ".concat(y("input-border","rgba(255,255,255,0.1)"))},children:[(0,u.jsx)(d.A,{className:"w-4 h-4 flex-shrink-0 mt-0.5 text-amber-400"}),(0,u.jsxs)("div",{className:"flex-1 text-xs",style:{color:y("text-secondary","#9ca3af")},children:[(0,u.jsxs)("p",{children:["Generating a new URL will ",(0,u.jsx)("strong",{style:{color:y("text-primary","#fff")},children:"immediately stop"})," the current subscription in all calendar apps. You will have to re-subscribe with the new URL everywhere. Continue?"]}),(0,u.jsxs)("div",{className:"flex gap-2 mt-2",children:[(0,u.jsx)("button",{onClick:async()=>{O(!0);try{const e=await c.F_.regenerateIcal();C(e.data),P(!1),r.oR.success("New URL generated \u2014 old one is now inactive.")}catch(e){r.oR.error("Failed to regenerate")}finally{O(!1)}},disabled:F,className:"px-3 py-1 rounded text-xs font-medium disabled:opacity-50",style:{backgroundColor:"#dc2626",color:"#fff"},"data-testid":"confirm-regenerate",children:F?(0,u.jsx)(o.A,{className:"w-3 h-3 animate-spin inline"}):"Regenerate now"}),(0,u.jsx)("button",{onClick:()=>P(!1),className:"px-3 py-1 rounded text-xs",style:{color:y("text-secondary","#9ca3af")},children:"Cancel"})]})]})]}):(0,u.jsxs)("button",{onClick:()=>P(!0),className:"text-xs flex items-center gap-1.5 hover:underline",style:{color:y("text-muted","#6b7280")},"data-testid":"regenerate-btn",children:[(0,u.jsx)(h.A,{className:"w-3 h-3"})," Regenerate URL (if compromised)"]})})]}):(0,u.jsx)("p",{className:"text-sm",style:{color:y("text-muted","#6b7280")},children:"Could not load. Try refreshing."})});if(!t)return V;const W="w-[calc(100vw-2rem)] sm:w-full sm:max-w-[560px] max-h-[85vh] overflow-y-auto overflow-x-hidden";return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("span",{ref:Y,hidden:!0,"aria-hidden":"true"}),(0,u.jsxs)(n.lG,{children:[(0,u.jsx)(n.zM,{asChild:!0,children:b}),q?(0,u.jsxs)(n.Cf,{className:"ma2-modal ma2-scope ".concat(W),"data-testid":"calendar-sync-dialog",children:[(0,u.jsx)(n.c7,{className:"ma2-modal-header",children:(0,u.jsxs)(n.L3,{className:"ma2-modal-title flex items-center gap-2",children:[(0,u.jsx)(i.A,{className:"w-4 h-4",style:{color:y("accent","#0ab39c")}})," Calendar Sync"]})}),(0,u.jsx)("div",{className:"ma2-modal-body",children:V})]}):(0,u.jsxs)(n.Cf,{className:W,style:{backgroundColor:y("card-bg","#13161e"),border:"1px solid ".concat(y("input-border","rgba(255,255,255,0.1)")),color:y("text-primary","#fff")},"data-testid":"calendar-sync-dialog",children:[(0,u.jsx)(n.c7,{children:(0,u.jsxs)(n.L3,{className:"flex items-center gap-2",style:{color:y("text-primary","#fff")},children:[(0,u.jsx)(i.A,{className:"w-4 h-4",style:{color:y("accent","#c9a84c")}})," Calendar Sync"]})}),V]})]})]})}},6775(e,a,t){t.r(a),t.d(a,{default:()=>o});t(9950);var s=t(87348),l=t(19201),c=t(71283),r=t(44414);const n=(e,a)=>"var(--ma-".concat(e,", ").concat(a,")");function o(){const e=(0,s.KC)()||{},a=e.sectionLabel?e.sectionLabel("calendar-sync","Calendar Sync"):"Calendar Sync";return(0,r.jsxs)("div",{className:"max-w-3xl","data-testid":"calendar-sync-page",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,r.jsx)(l.A,{className:"w-6 h-6",style:{color:n("accent","#c9a84c")}}),(0,r.jsx)("h1",{className:"text-2xl font-bold",style:{color:n("text-primary","#fff"),fontFamily:"Playfair Display, serif"},"data-testid":"calendar-sync-title",children:a})]}),(0,r.jsx)("p",{className:"text-sm mb-6",style:{color:n("text-secondary","#9ca3af")},children:"Subscribe to your personal feed and every booked mentorship session + registered event shows up in Google Calendar, Apple Calendar, or Outlook \u2014 automatically, on all your devices."}),(0,r.jsx)("div",{className:"rounded-lg p-5",style:{backgroundColor:n("card-bg","#13161e"),border:"1px solid ".concat(n("card-border","rgba(255,255,255,0.05)"))},children:(0,r.jsx)(c.A,{})})]})}}}]);

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.