PageSourceSearch

https://seniorplanet.org/assets/index-oXloxxpZ.js

js seniorplanet.org collected 2026-09-24 17:33:45 UTC 353,646 bytes, 37 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["RichTextEditor-CXWaLGI-.js","vendors-a116b42b.js","assets/vendors-0hB-WQSq.css"])))=>i.map(i=>d[i]);
2import{C as Mn,j as e,A as hl,u as Dn,r as m,a as pl,B as Mt,h as jt,i as de,p as Is,I as Qe,b as Ge,T as Fs,f as Oe,c as ht,d as si,l as _,e as S,g as Ce,k as Ne,m as dt,n as te,o as E,q as Vs,s as fl,R as Un,t as Hn,v as ti,w as ni,P as Fn,x as qn,y as $,L as $n,z as qs,D as xl,E as u,F as ai,G as Ct,H as ri,J as zn,K as L,M as Nt,N as Je,O as R,Q as ii,S as Te,U as Ae,V as gl,W as zt,X as jl,Y as Gn,Z as Sn,_ as gs,$ as Vn,a0 as Cl,a1 as Nl,a2 as Bs,a3 as os,a4 as Y,a5 as _l,a6 as Sl,a7 as oi,a8 as En,a9 as ve,aa as F,ab as El,ac as bl,ad as U,ae as $e,af as Tl,ag as cs,ah as ci,ai as _t,aj as Al,ak as yl,al as Ws,am as Il,an as Pl,ao as vl,ap as Ll,aq as js,ar as Rl,as as Q,at as He,au as Ol,av as ke,aw as we,ax as wl,ay as li,az as di,aA as kl,aB as Ml,aC as Dl,aD as Ul,aE as ui,aF as Bn,aG as Hl,aH as qe,aI as Fl,aJ as ql,aK as Wn,aL as $l,aM as Pe,aN as Ie,aO as zl,aP as Gt,aQ as Yn,aR as mi,aS as ts,aT as Zn,aU as Gl,aV as Vl,aW as bn,aX as Tn,aY as Vt,aZ as _e,a_ as ye,a$ as ue,b0 as Qn,b1 as hi,b2 as pi,b3 as fi,b4 as xi,b5 as Bl,b6 as Wl,b7 as Yl,b8 as Zl,b9 as Ql,ba as lt,bb as gi,bc as pt,bd as ji,be as Kl,bf as Xl,bg as ge,bh as Jl,bi as Bt,bj as ed,bk as ar,bl as sd,bm as td,bn as nd,bo as ad,bp as rd,bq as Ci,br as id,bs as od,bt as cd,bu as Ni,bv as D,bw as _i,bx as ld,by as dd,bz as ud,bA as md,bB as rr,bC as hd,bD as Kn,bE as pd,bF as fd,bG as Si,bH as xd,bI as Ei,bJ as gd,bK as jd,bL as Cd,bM as Nd,bN as _d,bO as Sd,bP as Ed,bQ as bd,bR as Td,bS as G,bT as Ad,bU as yd,bV as Id,bW as Pd,bX as vd,bY as Ld,bZ as Rd,b_ as Od,b$ as wd,c0 as kd}from"../vendors-a116b42b.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]="f645df87-3f7d-4108-9949-0b61fc52f92f",s._sentryDebugIdIdentifier="sentry-dbid-f645df87-3f7d-4108-9949-0b61fc52f92f")}catch{}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function Md(s){return String(s).trim().toLowerCase()==="true"}function Dd(){return!1}const ir=Md(void 0),ae={NAME:"name",EMAIL:"email",TEXT:"text",MULTI_CHOICE:"multi_choice",QUIZ:"quiz",TEXTAREA:"textarea",CONSENT:"consent",PHONE:"phone",POLL:"poll",FILE_UPLOAD:"fileupload"},or={TRANSPARENT:"Transparent",LIGHT_GRAY:"Light Gray"},An={article:"savedArticleIds",podcast:"savedPodcastIds",video:"savedVideoIds",puzzle:"savedPuzzleIds",quiz:"savedQuizIds"},re={ACCORDION:"accordion",BUTTON_LIST:"button_list",CALL_TO_ACTION:"call_to_action",CARD_GRID:"card_grid",CAROUSEL:"carousel",CLICK_AND_PLEDGE:"click_and_pledge",CONTENT_GRID:"content_grid",CONTENT_INDEX:"content_index",EVENT_CONTENT_CAROUSEL:"event_content_carousel",FEATURED_BLOCKS:"featured_blocks",FORM:"form",GALLERY:"gallery",GLOSSARY:"glossary",ICON_AND_TEXT_GRID:"icon_and_text_grid",IMAGE_AND_TEXT_BLOCK:"image_and_text_block",LOCATIONS:"locations",MARQUEE:"marquee",OFFERINGS:"offerings",QUIZ:"quiz",TABS:"tabs",TESTIMONIALS:"testimonials",TEXT_BLOCK:"text_block",TRAINERS:"trainers",VIDEO:"video"},ie={UPCOMING_ONLINE_CLASSES:"upcoming_online_classes",UPCOMING_IN_PERSON_CLASSES:"upcoming_in_person_classes",UPCOMING_MULTI_WEEK_COURSES:"upcoming_multi_week_courses",MY_UPCOMING_CLASSES:"my_upcoming_classes",LATEST_CONTENT:"latest_content",LATEST_ARTICLES:"latest_articles",FEATURED_ARTICLES:"featured_articles",SUGGESTED_ARTICLES:"suggested_articles",LATEST_VIDEOS:"latest_videos",CATEGORIES:"categories",TOPICS:"topics"},V={ARTICLE:"article",IN_PERSON_CLASS:"in_person_class",MULTI_WEEK_COURSE:"multi_week_course",ONLINE_CLASS:"online_class",PAGE:"page",PODCAST:"podcast",VIDEO:"video"},Xn=[V.IN_PERSON_CLASS,V.MULTI_WEEK_COURSE,V.ONLINE_CLASS],Ud=[V.PAGE,V.PODCAST,V.VIDEO],bi=Xn.join(","),Ti=5,Ai=1,yi=15,Hd=Math.ceil(yi/2),Es={DOMAIN:"login.seniorplanet.org",AUDIENCE:"senior-planet-api-prod",WEB_CLIENT_ID:"CTFp61CcoeD9HOOd6rADmi5B3m8xWuz7",NATIVE_CLIENT_ID:void 0,PACKAG
2E_ID:"app.seniorplanet.org"},Ii={API_KEY:"AIzaSyCa0rZmz1X_RLJxETheN5dztGuh9Mbt8Dc",MAP_ID:"12e3dc82e6fefd3bf1f65db2",DEFAULT_ZOOM:11,USA_CENTER:{lat:39.8283,lng:-98.5795},USA_ZOOM:4,MIN_ZOOM:4,FIT_BOUNDS_PADDING:64},Pt={TEXT_AND_IMAGE:"Text and Image",VIDEO:"Video"},ss={ONLINE:"Virtual",IN_PERSON:"In-Person",BOTH:"both"},Fd=[{key:"Online",value:ss.ONLINE},{key:"In-Person",value:ss.IN_PERSON},{key:"Both",value:ss.BOTH}],fs={DARK_RED:"#6a100b",LIGHTEST_MELON:"#fec7c2",MID_RED:"#a7130f",PRIMARY_RED:"#ec1300",WATERMELON:"#fe5e54"},qd=[fs.DARK_RED,fs.LIGHTEST_MELON,fs.MID_RED,fs.PRIMARY_RED,fs.WATERMELON],$d={options:{mask:[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/]}},zd=[{menuLabel:"Upcoming Classes",menuItems:[{menuItemLabel:"Online",menuItemAction:"upcomingOnlineClasses",countKey:"upcomingOnlineClasses"},{menuItemLabel:"In-Person",menuItemAction:"upcomingInPersonClasses",countKey:"upcomingInPersonClasses"}]},{menuLabel:"Attended Classes",menuItems:[{menuItemLabel:"Online",menuItemAction:"attendedOnlineClasses",countKey:"attendedOnlineClasses"},{menuItemLabel:"In-Person",menuItemAction:"attendedInPersonClasses",countKey:"attendedInPersonClasses"}]},{menuLabel:"Saved Content",menuItems:[{menuItemLabel:"Articles",menuItemAction:"savedArticles",countKey:"savedArticleIds"},{menuItemLabel:"Podcast",menuItemAction:"savedPodcasts",countKey:"savedPodcastIds"},{menuItemLabel:"Videos",menuItemAction:"savedVideos",countKey:"savedVideoIds"},{menuItemLabel:"Puzzles",menuItemAction:"savedPuzzles",countKey:"savedPuzzleIds"},{menuItemLabel:"Quizzes",menuItemAction:"savedQuizzes",countKey:"savedQuizIds"}]},{menuLabel:"Account",menuItems:[{menuItemLabel:"Profile Settings",menuItemAction:"profileSettings"}]}],Gd={profile_settings:"profileSettings"},Vd={account_signup_completed:{required:[],optional:["signupSource","userId","user_type"]},class_registration_started:{required:["contentType"],optional:["programId","classId","cta","user_type"]},class_registration_completed:{required:["contentType","status"],optional:["programId","classId","user_type"]},class_search:{required:["class_type"],optional:["query","user_type"]},global_search:{required:["query"],optional:["search_scope","user_type"]},click_link_zoomsite:{required:["classId","contentType"],optional:["programId","linkType","user_type"]},video_start:{required:["videoId"],optional:["videoTitle","user_type"]},video_complete:{required:["videoId"],optional:["videoTitle","user_type"]},video_progress:{required:["videoId","video_percent"],optional:["videoTitle","user_type"]},form_gravity:{required:["gravityFormId"],optional:["formName","user_type"]},virtualPageView:{required:["pagePath","pageTitle"],optional:["previousPath","user_type"]}},ps={ALL:"all",ARTICLE:"article",CLASS:bi,PODCAST:"podcast",VIDEO:"video",PAGE:"page"},Bd=[{value:ps.ALL,label:"All"},{value:ps.ARTICLE,label:"Articles"},{value:ps.CLASS,label:"Classes"},{value:ps.PODCAST,label:"Podcast"},{value:ps.VIDEO,label:"Videos"},{value:ps.PAGE,label:"Pages"}],ns={DESKTOP:"(min-width: 1200px)",TABLET:"(min-width: 768px)"},TC=500,H={LABEL:"label",MENU_ITEM:"menuItem"},Le={AUTHORIZED_USER:"authorizedUser",EXTERNAL_LINK:"externalLink",DROPDOWN:"dropdown",NESTED_DROPDOWN:"nestedDropdown"},cr=12,Wd=15,Yd=3,Zd=1,Dt=["new-featured"],Jn=3,Qd=2,Kd=4,Pi="toast-anchor",lr=6e3,vi=["Health & Wellness","Technology","New & Trending","Social Connection","Life & Culture","Work & Money","Creativity"],Xd=5,Jd=8,Li={options:{mask:/^[a-zA-Z0-9\s-]{0,10}$/}},ea={options:{mask:[/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/]}},sa=/^(\+?\d{1,3})?[-.\s]?(\(?\d{1,4}\)?)[-.\s]?\d{1,4}[-.\s]?\d{1,9}$/,eu=["newspc.mystagingwebsite.com","community.seniorplanet.org"],su="27WSlMW2ByQ",tu="LQx0oVG2RTw",Ut=()=>Mn.isNativePlatform(),nu=s=>{window.history.replaceState({},document.title,(s==null?void 0:s.returnTo)??window.location.pathname)},au=Ut()?`${Es.PACKAGE_ID}://${Es.DOMAIN}/capacitor/${Es.PACKAGE_ID}`:window.location.origin;function ru({children:s}){return e.jsxs(hl,{domain:Es.DOMAIN,clientId:Ut()?Es.NATIVE_CLIENT_ID:Es.WEB_CLIENT_ID,authorizationParams:{redirect_uri:au,audience:Es.AUDIENCE,scope:"openid profile email offline_access read:user_profile update:user_profile"},onRedirectCallback:nu,useRefreshTokens:!0,useRefreshTokensFallback:!Ut(),cacheLocation:"localstorage",children:[e.jsx(iu,{}),s]})}function iu(){const{handleRedirectCallback:s}=Dn();return m.useEffect(()=>{if(!Ut())return;const t=pl.addListener("appUrlOpen",async({url:n})=>{n.includes("state")&&(n.includes("code")||n.includes("error"))&&await s(n),await Mt.close()});return()=>{t.remove()}},[s]),null}function as(s){const t=m.useMemo(()=>window.matchMedia(s),[s]),[n,a]=m.useState(t.matches);return m.useEffect(()=>{const r=()=>a(t.matches);return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[t]),n}const Wt=s=>s.endsWith("/")?s.slice(0,-1):s,N=(...s)=>{if(s.length===0)return null;const t=jt(s);return de(t)?null:(t.startsWith("/")||(s[0]=`/${t}`),s.join("/"))}
2,pe=(...s)=>N(...s),M=(s,t)=>{const n=new URL(s,window.location.origin);return t.forEach((a,r)=>{n.searchParams.append(r,a)}),`${n.pathname}${n.search}`},w={AUTHOR:"author",CONTENT_TYPE:"content_type",EXACT_TITLE:"exact_title",EXCLUDE:"exclude[]",HOUR_RANGE:"hour_range[]",INCLUDE:"include[]",LOCATION_ID:"location_id",LOCATION_SLUG:"location_slug",PAGE:"page",PER_PAGE:"per_page",QUERY:"query",SEASON:"season",START_DATE_RANGE:"start_date_range[]",TAGS:"tags[]",EXCLUDED_TAGS:"excluded_tags[]",TOPICS:"topics[]"},yn={ALL:"explore-hub"},Yt={AARP_TERMS_OF_SERVICE:"https://www.aarp.org/privacy/",OATS_LICENSING:"https://oats.org/licensing",SENIOR_PLANET_COMMUNITY:"https://community.seniorplanet.org",SENIOR_PLANET_PRODUCTION_WEBSITE:"https://www.seniorplanet.org"},dr={en:"https://cms.seniorplanet.org/wp-content/uploads/2020/03/Zoom.pdf",es:"https://cms.seniorplanet.org/wp-content/uploads/2020/03/Zoom.pdf"},Rs={NEW_YORK_CITY:"New York City",NORTH_COUNTRY_NEW_YORK:"North Country, NY",MONTGOMERY_COUNTY_MARYLAND:"Montgomery County, MD",DENVER_COLORADO:"Denver, CO",SAN_ANTONIO_TEXAS:"San Antonio, TX",MIAMI_FLORIDA:"Miami, FL"},ou={[Rs.DENVER_COLORADO]:"colorado",[Rs.MIAMI_FLORIDA]:"miami",[Rs.MONTGOMERY_COUNTY_MARYLAND]:"montgomery-county",[Rs.NEW_YORK_CITY]:"new-york-city",[Rs.NORTH_COUNTRY_NEW_YORK]:"north-country",[Rs.SAN_ANTONIO_TEXAS]:"san-antonio"},Ri=["national"],x={ACCOUNT_CREATION_COMPLETE:"account-creation-complete",ARTICLES:"articles",COMMUNITY:"community",COMPONENT_GUIDE:"component-guide",DASHBOARD:"my-dashboard",ERROR_404:"404",FINAL_DETAILS:"final-details",GROUPS:"groups",HOME:"/",IN_PERSON_CLASSES:"in-person-classes",INTERNAL_TECH_HELP_BOOKING:"internal-tech-help-booking",LOCATIONS:"locations",LOGGED_OUT:"logged-out",MULTI_WEEK_COURSES:"multi-week-courses",ONLINE_CLASSES:"classes",PAGE_SLUG:":pageSlug",PARTNER_LOCATIONS_MAP:"find-a-location",PODCASTS:"podcast",PREFERENCES_AND_GOALS:"preferences-and-goals",PROCESSING_ACCOUNT_CREATION:"processing-account-creation",PUZZLES:"puzzles",QUIZZES:"quizzes",REQUEST_GROUP:"request-group",ROOT:"/",SEARCH_RESULTS:"search-results",SETUP_PERSONAL_PROFILE:"setup-personal-profile",SIGN_UP:"sign-up",SLUG:":slug",TRAINERS:"trainers",VIDEOS:"videos"},cu={article:x.ARTICLES,podcast:x.PODCASTS,video:x.VIDEOS},In=s=>cu[s]||Is(s),lu=Object.values(x),be={ARTICLE_ID:":articleId",CLASS_ID:":classId",COURSE_ID:":courseId",GROUP_ID:":groupId",LOCATION_ID:":locationId",PODCAST_ID:":podcastId",PUZZLE_ID:":puzzleId",QUIZ_ID:":quizId",TRAINER_ID:":trainerId",VIDEO_ID:":videoId"},Z={ABOUT_US:"about",ATT_CONNECTED_LEARNING:"att-connected-learning-resources",CHINESE_ONLINE_CLASSES:"chinese",COMMUNITY_REQUEST_GROUP:"community-request-group",CONTACT_US:"contact",DONATE:"donate",GLOSSARY:"glossary",HOME_PAGE:"homepage",HOTLINE:"hotline",LOCATIONS:"locations",NEWSLETTER:"newsletters",ON_DEMAND_LEARNING:"on-demand",PODCASTS:"podcast",PLANNED_GIVING:"planned-giving",QUIZZES_AND_GAMES:"quizzes-games",SPANISH_ONLINE_CLASSES:"espanol",TRAINERS:"trainers",VIDEOS:"videos",VOLUNTEER:"volunteer",WAYS_TO_GIVE:"ways-to-give",ZOOM:"zoom"},I={AUTHOR:"author",CONTENT_TYPE:"content_type",PAGE:"page",QUERY:"query",SEASON:"season",START_DATE_RANGE:"start_date_range",TAG:"tag",TIME_OF_DAY:"time_of_day",TOPIC:"topic",ZIP:"zip",TAB:"tab",REDIRECT_URI:"redirect_uri"};function du({children:s}){return e.jsx("div",{className:"content-container",children:s})}const vt={DAILY:"DAILY",MONTHLY:"MONTHLY",WEEKLY:"WEEKLY",YEARLY:"YEARLY"},_s={MONDAY:"MO",TUESDAY:"TU",WEDNESDAY:"WE",THURSDAY:"TH",FRIDAY:"FR",SATURDAY:"SA",SUNDAY:"SU"},uu={[_s.MONDAY]:new Date(2024,0,1),[_s.TUESDAY]:new Date(2024,0,2),[_s.WEDNESDAY]:new Date(2024,0,3),[_s.THURSDAY]:new Date(2024,0,4),[_s.FRIDAY]:new Date(2024,0,5),[_s.SATURDAY]:new Date(2024,0,6),[_s.SUNDAY]:new Date(2024,0,7)},mu={WEEKDAY_OPEN:"2025-01-01T14:00:00Z",WEEKDAY_CLOSE:"2025-02-01T01:00:00Z",SATURDAY_OPEN:"2025-01-01T14:00:00Z",SATURDAY_CLOSE:"2025-02-01T19:00:00Z"},$s="888-713-3495",hu="America/New_York",rs={BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,CONFLICT:409,UNPROCESSABLE_ENTITY:422},ur={BY_SET_POSITION:"setpos",BY_MONTH_DAYS:"monthdays"},mr={INPUT:"Input",RADIO_GROUP:"Yes/No Radio"},pu={author:{type:"name",key:"author"},canonical:null,description:{type:"name",key:"description",fallback:"ogDescription"},robots:{type:"name",key:"robots"},title:null,twitterCard:{type:"name",key:"twitter:card"},twitterCreator:{type:"name",key:"twitter:creator"},twitterDescription:{type:"name",key:"twitter:description"},twitterImage:{type:"name",key:"twitter:image"},twitterSite:{type:"name",key:"twitter:site"},twitterTitle:{type:"name",key:"twitter:title"},articleModifiedTime:{type:"property",key:"article:modified_time"},articlePublishedTime:{type:"property",key:"article:published_time"},articlePublisher:{type:"property",key:"article:publisher"},ogDescription:{type:"property",key:"og:description"},ogImage:{type:"property",key:"og:image"},ogImageHeight:{type:"property",key:"og:image:height"},ogImageType:{type:"property",key:"og:image:type"},ogImageWidth:{type:"property",key:"og:image:width"},ogLocale:{type:"property",key:"og:locale"},ogSiteName:{type:"property",key:"og:site_name"},ogTitle:{type:"property",key:"og:title"},ogType:{type:"property",key:"og:type"},ogUrl:null},fu={Morning:[6,12],Afternoon:[12,18],Evening:[18,24]},xu=[{key:"Morning",value:"Morning"},{key:"Afternoon",value:"Afternoon"},{key:"Evening",value:"Evening"}],gu=[{key:"Yes",value:"yes"},{key:"No",value:"no"}
2],hr=[{text:"ENVEJECER CON ACTITUD",lang:"es"},{text:"AGING WITH ATTITUDE",lang:"en"},{text:"隨態度而老",lang:"zh"}];function ju(){const s=m.useMemo(()=>Cu(),[]);return e.jsx(Qe,{className:"help-banner",color:"dark-red",lines:"none",children:e.jsxs(Ge,{children:["Need help? Call our hotline at"," ",e.jsx("a",{href:`tel:${$s}`,children:$s}),", MON-FRI ",s.WEEKDAY_OPEN,"-",s.WEEKDAY_CLOSE," / SAT ",s.SATURDAY_OPEN,"-",s.SATURDAY_CLOSE]})})}function Cu(){const s=Intl.DateTimeFormat().resolvedOptions().timeZone;try{const t={};for(const[n,a]of Object.entries(mu)){const i=new Fs(a,hu).withTimeZone(s);t[n]=Oe(i,"haaa")}return t}catch{return{WEEKDAY_OPEN:"9am ET",WEEKDAY_CLOSE:"8pm ET",SATURDAY_OPEN:"9am ET",SATURDAY_CLOSE:"2pm ET"}}}function St(s=[]){return s.join(",")}function Ys(){const s=new Date,t=ht(s,{representation:"date"}),n=ht(si(s,Ai),{representation:"date"});return{startDate:t,endDate:n}}const ta=_.createPostRequest("CREATE_COMMENT",(s,t)=>({url:`/api/articles/${t}/comments`,body:{comment:s}})),Oi=_.createPostRequest("CREATE_USER_ACCOUNT",s=>({url:"/api/user_accounts",body:{userAccount:s}})),wi=_.createRequest("FETCH_GROUP",(s,t)=>({bearerToken:s,url:`/api/community_groups/${t}`})),ki=_.createPostRequest("CREATE_GROUP_POST",(s,t,n)=>({bearerToken:s,url:"/api/community_posts",body:{community_post:t},headers:{"Idempotency-Key":n},onFailure:a=>a})),Nu=_.createPostRequest("SEARCH_GROUP_MEMBERS",(s,t,n,a=1)=>({bearerToken:s,url:`/api/community_groups/${t}/members/search`,body:{search:n,page:a},onFailure:r=>r})),Mi=_.createRequest("FETCH_ALTERNATE_IN_PERSON_CLASS_TIMES",(s,t,n)=>{if(!t)throw new Error("exactTitle is required for fetchAlternateInPersonClassTimes");const a=new URLSearchParams;s&&a.append(w.EXCLUDE,s),a.append(w.EXACT_TITLE,t),n&&a.append(w.LOCATION_ID,n);const{startDate:r,endDate:i}=Ys();return a.append(w.START_DATE_RANGE,r),a.append(w.START_DATE_RANGE,i),a.append(w.PER_PAGE,Ti),{url:M("/api/in_person_classes",a)}}),Di=_.createRequest("FETCH_ALTERNATE_ONLINE_CLASS_TIMES",(s,t)=>{if(!t)throw new Error("exactTitle is required for fetchAlternateOnlineClassTimes");const n=new URLSearchParams;s&&n.append(w.EXCLUDE,s),n.append(w.EXACT_TITLE,t);const{startDate:a,endDate:r}=Ys();return n.append(w.START_DATE_RANGE,a),n.append(w.START_DATE_RANGE,r),n.append(w.PER_PAGE,Ti),{url:M("/api/online_classes",n)}}),Ui=_.createRequest("FETCH_ARTICLE_BY_SLUG",s=>({url:`/api/articles/${s}`})),na=_.createRequest("FETCH_ARTICLES",s=>({url:M("/api/articles",s)})),We=_.createRequest("FETCH_RELATED_ARTICLES",(s,t)=>{const n=new URLSearchParams;return t&&t.length>0&&t.forEach(a=>{n.append(w.TOPICS,a)}),s&&n.append(w.EXCLUDE,s),{url:M("/api/articles",n)}}),Hi=_.createRequest("FETCH_SAVED_ARTICLES",s=>{const t=new URLSearchParams;return S(s)||s.forEach(n=>{t.append(w.INCLUDE,n)}),{url:M("/api/articles",t)}}),Fi=_.createRequest("FETCH_AUTHORS",()=>({url:"/api/authors"})),_u=_.createRequest("FETCH_CATEGORIES",()=>({url:"/api/categories"})),qi=_.createRequest("FETCH_HOME_PAGE",s=>{const t={url:`/api/pages/${Z.HOME_PAGE}`};return s&&(t.bearerToken=s),t}),$i=_.createRequest("FETCH_IN_PERSON_CLASS",s=>({url:`/api/in_person_classes/${s}`})),zi=_.createRequest("FETCH_IN_PERSON_CLASSES",s=>(console.log("dispatching fetchInPersonClasses with criteria: ",s),{url:M("/api/in_person_classes",s)})),Su=_.createRequest("FETCH_UPCOMING_REGISTERED_ONLINE_CLASSES",s=>({url:"/api/online_classes",query:{salesforceObjectIds:St(s)}})),Eu=_.createRequest("FETCH_UPCOMING_REGISTERED_IN_PERSON_CLASSES",s=>({url:"/api/in_person_classes",query:{salesforceObjectIds:St(s)}})),bu=_.createRequest("FETCH_UPCOMING_REGISTERED_MULTI_WEEK_COURSES",s=>({url:"/api/multi_week_courses",query:{salesforceObjectIds:St(s)}})),Gi=_.createRequest("FETCH_LOCATION_BY_SLUG",s=>({url:`/api/locations/${s}`})),Vi=_.createRequest("FETCH_LOCATIONS_PAGE",()=>({url:`/api/pages/${Z.LOCATIONS}`})),Bi=_.createRequest("FETCH_MULTI_WEEK_COURSE",s=>({url:`/api/multi_week_courses/${s}`})),Wi=_.createRequest("FETCH_MULTI_WEEK_COURSES",s=>(console.log("dispatching fetchMultiWeekCourses with criteria: ",s),{url:M("/api/multi_week_courses",s)}
2)),Yi=_.createRequest("FETCH_ONLINE_CLASS",s=>({url:`/api/online_classes/${s}`})),Zi=_.createRequest("FETCH_ONLINE_CLASSES",s=>(console.log("dispatching fetchOnlineClasses with criteria: ",s),{url:M("/api/online_classes",s)})),Qi=_.createRequest("FETCH_PODCASTS_PAGE",()=>({url:`/api/pages/${Z.PODCASTS}`})),Ki=_.createRequest("FETCH_PODCASTS",s=>({url:M("/api/podcasts",s)})),Xi=_.createRequest("FETCH_PODCAST_BY_SLUG",s=>({url:`/api/podcasts/${s}`})),Ji=_.createRequest("FETCH_PODCAST_SEARCH_FILTERS",()=>({url:"/api/podcast_search_filters"})),eo=_.createRequest("FETCH_SAVED_PODCASTS",s=>{const t=new URLSearchParams;return S(s)||s.forEach(n=>{t.append(w.INCLUDE,n)}),{url:M("/api/podcasts",t)}}),so=_.createRequest("FETCH_PUZZLES",(s=1)=>({url:"/api/puzzles",query:{page:s}})),to=_.createRequest("FETCH_PUZZLE_BY_SLUG",s=>({url:`/api/puzzles/${s}`})),no=_.createRequest("FETCH_RELATED_IN_PERSON_CLASSES",(s,t,n)=>{const a=new URLSearchParams;t&&a.append(w.LOCATION_ID,t),n&&n.length>0&&n.forEach(o=>{a.append(w.TOPICS,o)}),s&&a.append(w.EXCLUDE,s);const{startDate:r,endDate:i}=Ys();return a.append(w.START_DATE_RANGE,r),a.append(w.START_DATE_RANGE,i),{url:M("/api/in_person_classes",a)}}),Zt=_.createRequest("FETCH_RELATED_ONLINE_CLASSES",(s,t)=>{const n=new URLSearchParams;t&&t.length>0&&t.forEach(i=>{n.append(w.TOPICS,i)}),s&&n.append(w.EXCLUDE,s);const{startDate:a,endDate:r}=Ys();return n.append(w.START_DATE_RANGE,a),n.append(w.START_DATE_RANGE,r),{url:M("/api/online_classes",n)}}),ao=_.createRequest("FETCH_TOPICS",()=>({url:"/api/topics"})),ro=_.createRequest("FETCH_TRAINER_BY_SLUG",s=>({url:`/api/trainers/${s}`})),io=_.createRequest("FETCH_TRAINER_CLASSES",s=>({url:`/api/trainers/${s}/classes`})),oo=_.createRequest("FETCH_UPCOMING_IN_PERSON_CLASSES",s=>({url:"/api/in_person_classes",query:{locationId:s}})),Pn=_.createRequest("FETCH_PAGE_BY_SLUG",(s,t)=>({bearerToken:t,url:`/api/pages/${s}`})),co=_.createRequest("FETCH_QUIZZES",(s=1)=>({url:"/api/quizzes",query:{page:s}})),lo=_.createRequest("FETCH_QUIZ_BY_SLUG",s=>({url:`/api/quizzes/${s}`})),uo=_.createRequest("FETCH_SAVED_VIDEOS",s=>{const t=new URLSearchParams;return S(s)||s.forEach(n=>{t.append(w.INCLUDE,n)}),{url:M("/api/videos",t)}}),mo=_.createRequest("FETCH_SAVED_PUZZLES",s=>({url:"/api/puzzles",query:{include:St(s)}})),ho=_.createRequest("FETCH_SAVED_QUIZZES",s=>({url:"/api/quizzes",query:{include:St(s)}})),po=_.createRequest("FETCH_TRAINER_INDEX",()=>({url:`/api/pages/${Z.TRAINERS}`})),fo=_.createRequest("FETCH_VIDEO_INDEX",()=>({url:`/api/pages/${Z.VIDEOS}`})),xo=_.createRequest("FETCH_VIDEOS",s=>(console.log("fetching videos with params: ",s),{url:M("/api/videos",s)})),go=_.createRequest("FETCH_VIDEO_BY_SLUG",s=>({url:`/api/videos/${s}`})),jo=_.createRequest("FETCH_RELATED_VIDEOS",(s,t)=>{const n=new URLSearchParams;return t&&t.length>0&&t.forEach(a=>{n.append(w.TOPICS,a)}),s&&n.append(w.EXCLUDE,s),{url:M("/api/videos",n)}}),Qt=_.createRequest("FETCH_USER_PROFILE",s=>({bearerToken:s,url:"/api/profile"})),Co=_.createRequest("FETCH_LOCATION_OPTIONS",()=>({url:"/api/location_options"})),vn=_.createRequest("FETCH_USER_PROFILE_FORM_OPTIONS",()=>({url:"/api/user_profile_form_options"})),Tu=_.createPatchRequest("UPDATE_PROFILE",(s,t)=>({bearerToken:s,url:"/api/profile",body:{profile:t}})),Au=_.createPostRequest("INITIALIZE_USER_PROFILE",({initializationToken:s,bearerToken:t,profile:n})=>({url:"/api/profile/initialize_profile",bearerToken:t,body:{initialization_token:s,profile:n}})),yu=_.createPostRequest("SUBMIT_GRAVITY_FORM_ENTRY",s=>({url:"/api/gravity_form_entries",body:s,overrideHeaders:!0,headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}})),Zs=s=>s instanceof URLSearchParams?{url:M("/api/search",s)}:{url:"/api/search",query:s},aa=_.createRequest("SEARCH",s=>Zs(s)),Iu=_.createRequest("SEARCH_ARTICLES",s=>Zs(s)),No=_.createRequest("SEARCH_IN_PERSON_CLASSES",s=>Zs(s)),_o=_.createRequest("SEARCH_MULTI_WEEK_COURSES",s=>Zs(s)),So=_.createRequest("SEARCH_ONLINE_CLASSES",s=>Zs(s)),Eo=_.createRequest("SEARCH_VIDEOS",s=>Zs(s)),bo=_.createRequest("SEARCH_PARTNER_SITES",s=>({url:S(s)?"/api/partner_sites":M("/api/partner_sites",new URLSearchParams({zip:s}))})),To=_.createPostRequest("ADD_SAVED_CONTENT",(s,t,n)=>({url:"/api/saved_content",bearerToken:n,body:{saved_content:{type:s,id:t}}})),Ao=_.createDeleteRequest("REMOVE_SAVED_CONTENT",(s,t,n)=>({url:"/api/saved_content",bearerToken:n,body:{saved_content:{type:s,id:t}}})),Pu=_.createPostRequest("CREATE_REGISTRATION",s=>({url:"/api/registrations",body:{registration:s}})),yo=_.createPostRequest("CREATE_PROGRAM_REMINDER",(s,t)=>({url:"/api/program_reminders",bearerToken:t,body:{programReminder:{programId:s}}}));function Io(s,t){return[...s].sort((n,a)=>{const r=t.indexOf(n.name),i=t.indexOf(a.name);return r!==-1&&i!==-1?r-i:r!==-1?-1:i!==-1?1:0})}const ra="global",vu={categories:null,topics:null,podcastSearchFilters:null,totalCategories:0,totalTopics:0,isSearchOpen:!1,userProfile:null},Po=Ce({name:ra,initialState:vu,reducers:{updateUpcomingInPersonClasses:(s,t)=>{s.userProfile&&(s.userProfile.upcomingInPersonClasses=t.payload)},updateUpcomingOnlineClasses:(s,t)=>{s.userProfile&&(s.userProfile.upcomingOnlineClasses=t.payload)},updateRegistrationsAndReminders:(s,t)=>{s.userProfile&&(s.userProfile.registrationsAndReminders=t.payload)},setUserHasLoggedIn:s=>{var t;(t=s.userProfile)!=null&&t.userAccount&&(s.userProfile.userAccount.hasLoggedIn=!0)}},extraReducers:s=>{s.addCase(Qt,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.userProfile=n.attributes})),s.addCase(_u,_.handleSuccess((t,{payload:{data:{data:n,meta:a}}})=>{t.categories=n.map(({attributes:r})=>r),t.totalCategories=a})),s.addCase(ao,_.handleSuccess((t,{payload:{data:{data:n,meta:a}}})=>{t.topics=n.map(({attributes:r})=>r).filter(({slug:r})=>!Dt.includes(r)),t.totalTopics=a-Dt.length})),s.addCase(Ji,_.handleSuccess((t,n)=>{const a=n.payload.data;t.podcastSearchFilters=a})),s.addCase(To,_.handleSuccess((t,{payload:{data:n}})=>{if(t.userProfile&&n.savedContent){const{type:a,id:r}=n.savedContent,i=An[a];if(i){const o=t.userProfile[i];o&&!o.includes(r)&&o.push(r)}}})),s.addCase(Ao,_.handleSuccess((t,{payload:{data:n}})=>{if(t.userProfile&&n.savedContent){const{type:a,id:r}=n.savedContent,i=An[a];if(i){const o=t.userProfile[i];o&&(t.userProfile[i]=o.filter(c=>c!==r))}}}))}}),Ye=Ne.selectorForSlice(`root.${ra}`),q={categories:Ye("categories"),topics:Ye("topics"),podcastSearchFilters:Ye("podcastSearchFilters"),totalCategories:Ye("totalCategories"),totalTopics:Ye("totalTopics"),isSearchOpen:Ye("isSearchOpen"),userProfile:Ye
2("userProfile"),registrationsAndReminders:dt([Ye("userProfile")],s=>(s==null?void 0:s.registrationsAndReminders)||[]),upcomingInPersonClasses:dt([Ye("userProfile")],s=>(s==null?void 0:s.upcomingInPersonClasses)||[]),upcomingOnlineClasses:dt([Ye("userProfile")],s=>(s==null?void 0:s.upcomingOnlineClasses)||[])};q.primaryTopics=dt([q.topics],s=>{if(S(s))return null;const t=s.filter(({parent:n})=>n===0);return Io(t,vi)});q.topicsWithSubtopics=dt([q.topics],s=>{if(S(s))return null;const t=s.filter(({parent:a})=>a===0);return Io(t,vi).map(a=>({...a,subtopics:s.filter(r=>r.parent===a.id)}))});const{updateUpcomingInPersonClasses:vo,updateUpcomingOnlineClasses:ia,updateRegistrationsAndReminders:Lu,setUserHasLoggedIn:pr}=Po.actions,Ru=Po.reducer;function oa(){const s=te();return m.useCallback((n,{direction:a="forward",action:r="push",target:i="_self"}={})=>{n.startsWith("http")?window.open(n,i):s.push(n,a,r)},[s])}function Lo({isAuthenticated:s=!1,topics:t,topicsWithSubtopics:n}){return[Ou(s),wu(t),Du(n||[]),Hu(n||[]),qu(),$u()]}function Ou(s){return s?{menuType:Le.AUTHORIZED_USER,menuLabel:"My Profile",menuKey:"authorizedUser",menuItems:[[{menuItemType:H.MENU_ITEM,menuItemLabel:"My Dashboard",menuItemLink:N(x.DASHBOARD)},{menuItemType:H.MENU_ITEM,menuItemLabel:"Log out",menuItemLink:N(x.LOGGED_OUT)}]]}:{}}function wu(s){return{menuType:Le.DROPDOWN,menuLabel:"Classes",menuKey:"classes",menuItems:[[{menuItemType:H.LABEL,menuItemLabel:"Online Classes"},{menuItemType:H.MENU_ITEM,menuItemLabel:"All",menuItemLink:N(x.ONLINE_CLASSES),menuItemClass:"callout"},...ku(s)],[{menuItemType:H.LABEL,menuItemLabel:"In-Person Classes"},...Mu(),{menuItemType:H.MENU_ITEM,menuItemLabel:"Explore all locations",menuItemLink:N(x.LOCATIONS),menuItemClass:"callout"}]]}}function ku(s){return[...s.map(n=>{const a=new URLSearchParams;return a.append("topic",n.id),{menuItemType:H.MENU_ITEM,menuItemLabel:n.name,menuItemLink:M(N(x.ONLINE_CLASSES),a)}}),{menuItemType:H.MENU_ITEM,menuItemLabel:"Clases en español",menuItemLink:pe(Z.SPANISH_ONLINE_CLASSES),menuItemClass:"callout"},{menuItemType:H.MENU_ITEM,menuItemLabel:"中文活動",menuItemLink:pe(Z.CHINESE_ONLINE_CLASSES),menuItemClass:"callout"}]}function Mu(){return Object.entries(ou).filter(([,s])=>!Ri.includes(s)).map(([s,t])=>({menuItemType:H.MENU_ITEM,menuItemLabel:s,menuItemLink:N(x.LOCATIONS,t)}))}function Du(s){return{menuType:Le.NESTED_DROPDOWN,menuLabel:"Explore",menuKey:"explore",menuItems:[{menuItemType:H.LABEL,menuItemLabel:"Topics"},{menuItemType:H.MENU_ITEM,menuItemLabel:"All",menuItemLink:N(yn.ALL),menuItemClass:"callout"},...Uu(s)]}}function Uu(s){return s.map(t=>({menuItemType:H.MENU_ITEM,menuItemLabel:t.name,menuItemLink:N(t.slug),subtopics:t.subtopics.map(n=>({menuItemType:H.MENU_ITEM,menuItemLabel:n.name,menuItemLink:N(n.slug)}))}))}function Hu(s){return{menuType:Le.NESTED_DROPDOWN,menuLabel:"Articles",menuKey:"articles",menuItems:[{menuItemType:H.LABEL,menuItemLabel:"Topics"},{menuItemType:H.MENU_ITEM,menuItemLabel:"All",menuItemLink:N(x.ARTICLES),menuItemClass:"callout"},...Fu(s)]}}function Fu(s){return s.map(t=>{const n=new URLSearchParams;return n.append("topic",t.id),{menuItemType:H.MENU_ITEM,menuItemLabel:t.name,menuItemLink:M(N(x.ARTICLES),n),subtopics:t.subtopics.map(a=>{const r=new URLSearchParams;return r.append("topic",a.id),{menuItemType:H.MENU_ITEM,menuItemLabel:a.name,menuItemLink:M(N(x.ARTICLES),r)}})}})}function qu(){return{menuType:Le.DROPDOWN,menuLabel:"Resources",menuKey:"resources",menuItems:[[{menuItemType:H.LABEL,menuItemLabel:"Learn"},{menuItemType:H.MENU_ITEM,menuItemLabel:"Podcast",menuItemLink:N(x.PODCASTS)},{menuItemType:H.MENU_ITEM,menuItemLabel:"On-Demand Learning",menuItemLink:pe(Z.ON_DEMAND_LEARNING)},{menuItemType:H.MENU_ITEM,menuItemLabel:"Videos",menuItemLink:N(x.VIDEOS)},{menuItemType:H.MENU_ITEM,menuItemLabel:"How to Use Zoom",menuItemLink:pe(Z.ZOOM)},{menuItemType:H.MENU_ITEM,menuItemLabel:"Quizzes and Games",menuItemLink:pe(Z.QUIZZES_AND_GAMES)},{menuItemType:H.MENU_ITEM,menuItemLabel:"Tech Terms Glossary",menuItemLink:pe(Z.GLOSSARY)},{menuItemType:H.MENU_ITEM,menuItemLabel:"AT&T Connected Learning® Resources",menuItemLink:pe(Z.ATT_CONNECTED_LEARNING)}],[{menuItemType:H.LABEL,menuItemLabel:"Get Involved"},{menuItemType:H.MENU_ITEM,menuItemLabel:"About Us",menuItemLink:pe(Z.ABOUT_US)},{menuItemType:H.MENU_ITEM,menuItemLabel:"Newsletter",menuItemLink:pe(Z.NEWSLETTER)},{menuItemType:H.MENU_ITEM,menuItemLabel:"Volunteer",menuItemLink:pe(Z.VOLUNTEER)},{menuItemType:H.MENU_ITEM,menuItemLabel:"Ways to Give",menuItemLink:pe(Z.WAYS_TO_GIVE)},{menuItemType:H.MENU_ITEM,menuItemLabel:"Planned Giving",menuItemLink:pe(Z.PLANNED_GIVING)},{menuItemType:H.MENU_ITEM,menuItemLabel:"Donate",menuItemLink:pe(Z.DONATE)}],[{menuItemType:H.LABEL,menuItemLabel:"Find Support"},{menuItemType:H.MENU_ITEM,menuItemLabel:"Hotline",menuItemLink:N(Z.HOTLINE)},{menuItemType:H.MENU_ITEM,menuItemLabel:"Contact Us",menuItemLink:pe(Z.CONTACT_US)}]]}}function $u(){return{menuType:Le.EXTERNAL_LINK,menuLabel:"Community",menuUrl:Yt.SENIOR_PLANET_COMMUNITY}}function zu(){const s=E(q.primaryTopics),t=E(q.topicsWithSubtopics),n=oa();return e.jsx(Vs,{className:"desktop-navigation",children:Lo({topics:s,topicsWithSubtopics:t}).map(a=>{switch(a.menuType){case Le.DROPDOWN:return e.jsx(Gu,{menu:a,navigateTo:n},a.menuLabel);
2case Le.NESTED_DROPDOWN:return e.jsx(Vu,{menu:a,navigateTo:n},a.menuLabel);case Le.EXTERNAL_LINK:return e.jsx(Wu,{menu:a,navigateTo:n},a.menuLabel);default:return null}})})}function Gu({menu:s,navigateTo:t}){return e.jsxs(Un,{children:[e.jsxs(Hn,{className:"menu-trigger",children:[s.menuLabel,e.jsx(ti,{className:"dropdown-icon dropdown-icon--closed",size:"16",color:"#2b2a2c"}),e.jsx(ni,{className:"dropdown-icon dropdown-icon--open",size:"16",color:"#2b2a2c"})]}),e.jsx(Fn,{children:e.jsx(qn,{className:"dropdown-content",sideOffset:25,children:s.menuItems.map((n,a)=>e.jsx("div",{className:"dropdown-content__sub-menu",children:n.map(r=>e.jsx(Yu,{menuItem:r,navigateTo:t},r.menuItemLabel))},`${s.menuLabel}-${a}`))})})]})}function Vu({menu:s,navigateTo:t}){const[n,a]=m.useState(null),r=o=>{var c;((c=o.subtopics)==null?void 0:c.length)>0&&a(o)},i=()=>{a(null)};return e.jsxs(Un,{onOpenChange:()=>a(null),children:[e.jsxs(Hn,{className:"menu-trigger",children:[s.menuLabel,e.jsx(ti,{className:"dropdown-icon dropdown-icon--closed",size:"16",color:"#2b2a2c"}),e.jsx(ni,{className:"dropdown-icon dropdown-icon--open",size:"16",color:"#2b2a2c"})]}),e.jsx(Fn,{children:e.jsxs(qn,{className:"dropdown-content dropdown-content--nested",sideOffset:25,children:[e.jsx("div",{className:"dropdown-content__sub-menu dropdown-content__topics-column",children:s.menuItems.map(o=>e.jsx(Bu,{menuItem:o,navigateTo:t,onHighlight:()=>r(o),isHovered:(n==null?void 0:n.menuItemLabel)===o.menuItemLabel},o.menuItemLabel))}),e.jsx("div",{className:$("dropdown-content__sub-menu","dropdown-content__subtopics-column",{"dropdown-content__subtopics-column--visible":n}),onMouseLeave:i,children:n&&e.jsxs(e.Fragment,{children:[e.jsx($n,{children:n.menuItemLabel}),n.subtopics.map(o=>e.jsx(qs,{className:"dropdown-item",onSelect:()=>t(o.menuItemLink,{direction:"root"}),children:o.menuItemLabel},o.menuItemLabel)),e.jsxs(qs,{className:"dropdown-item callout",onSelect:()=>t(n.menuItemLink,{direction:"root"}),children:["Explore all ",n.menuItemLabel]})]})})]})})]})}function Bu({menuItem:s,navigateTo:t,onHighlight:n,isHovered:a}){var r,i;switch(s.menuItemType){case H.LABEL:return e.jsx($n,{children:s.menuItemLabel});case H.MENU_ITEM:return e.jsxs(qs,{className:$("dropdown-item","dropdown-item--nested",s.menuItemClass,{"dropdown-item--has-subtopics":((r=s.subtopics)==null?void 0:r.length)>0,"dropdown-item--hovered":a}),onMouseEnter:n,onFocus:n,onSelect:()=>t(s.menuItemLink,{direction:"root"}),children:[s.menuItemLabel,((i=s.subtopics)==null?void 0:i.length)>0&&e.jsx(xl,{size:"14",color:"#4c4c4c"})]})}}function Wu({menu:s,navigateTo:t}){return e.jsxs("button",{className:"menu-trigger",onClick:()=>t(s.menuUrl,{target:"_blank"}),children:[s.menuLabel,e.jsx(fl,{className:"external-launch-icon",size:"16",color:"#ec1300"})]})}function Yu({menuItem:s,navigateTo:t}){switch(s.menuItemType){case H.LABEL:return e.jsx($n,{children:s.menuItemLabel});case H.MENU_ITEM:return e.jsx(qs,{className:$("dropdown-item",s.menuItemClass),onSelect:()=>t(s.menuItemLink,{direction:"root"}),children:s.menuItemLabel})}}const Zu=u.shape({description:u.string,id:u.number.isRequired,name:u.string.isRequired,parent:u.number,slug:u.string.isRequired,taxonomy:u.string});u.arrayOf(Zu);const Ke=u.shape({id:u.number.isRequired,slug:u.string.isRequired,altText:u.string.isRequired,link:u.string.isRequired,url:u.string.isRequired}),Ro=u.shape({question:u.string.isRequired,questionType:u.string.isRequired,required:u.bool.isRequired,responseFormat:u.string.isRequired}),Qu=u.arrayOf(Ro),Oo=u.shape({question:u.string.isRequired,questionType:u.string.isRequired,required:u.bool.isRequired,responseFormat:u.string.isRequired,salesforceFieldName:u.string.isRequired,salesforceObjectName:u.string.isRequired}),Ku=u.arrayOf(Oo);u.arrayOf(u.oneOfType([Ro,Oo]));const Xu=u.shape({resourceTitle:u.string,resourceUrl:u.string.isRequired}),Ju=u.shape({id:u.number.isRequired,name:u.string.isRequired,slug:u.string.isRequired}),em=u.arrayOf(Ju),wo=u.shape({id:u.number.isRequired,name:u.string.isRequired,parent:u.number,slug:u.string.isRequired,thumbnail_image:u.shape({altText:u.string.isRequired,url:u.string.isRequired})}),sm=u.arrayOf(wo),tm=u.shape({id:u.number.isRequired,slug:u.string.isRequired,nameHtml:u.string.isRequired,bioHtml:u.string,featuredImage:Ke,email:u.string,phone:u.string,website:u.string});u.shape({video:u.shape({title:u.string.isRequired,videoId:u.string.isRequired}),header:u.string.isRequired,description:u.string.isRequired});const nm=u.shape({id:u.number.isRequired,venue:u.string.isRequired,slug:u.string.isRequired,city:u.string.isRequired,state:u.string.isRequired,country:u.string.isRequired,zip:u.string.isRequired,address:u.string.isRequired}),ko=u.shape({image:Ke,header:u.string.isRequired,description:u.string,text:u.string,link:u.string,linkIcon:Ke});u.shape({eyebrow:u.string.isRequired,header:u.string.isRequired,contentCards:u.arrayOf(ko)});const am=u.shape({zoomLink:u.string.isRequired,zoomMeetingId:u.string.isRequired,zoomPhoneNumber:u.string.isRequired}),ca=u.shape({hasCapacity:u.bool,id:u.number.isRequired,contentType:u.string.isRequired,slug:u.string.isRequired,status:u.string.isRequired,titleHtml:u.string.isRequired,contentHtml:u.string.isRequired,excerptHtml:u.string.isRequired,createdAt:u.string.isRequired,editedAt:u.string.isRequired,location:u.string.isRequired,tags:em,featuredImage:Ke,classStart:u.string.isRequired,classEnd:u.string.isRequired,registration_required:u.bool.isRequired,freeformRegistrationQuestions:Qu,salesforceRegistrationQuestions:Ku,resources:u.arrayOf(Xu),topics:sm,trainer:tm,venue:nm}),rm=u.shape({...ca,seriesId:u.number,zoom:am}),im=u.shape({...ca,seriesId:u.number,venue:u.shape({venue:u.string.isRequired,slug:u.string.isRequired,city:u.string.isRequired,state:u.string.isRequired,country:u.string.isRequired,zip:u.string.isRequired,address:u.string.isRequired})}),om=u.shape({...ca,allOccurences:u.arrayOf(u.string),duration:u.number,frequency:u.string,weekdays:u.arrayOf(u.string),monthdays:u.arrayOf(u.string),setbypos:u.arrayOf(u.string),byweekday:u.arrayOf(u.string),monthlyBy:u.string,occurenceCount:u.number,courseHasPrerequisites:u.bool,prerequisitesDescriptionHtml:u.string}),fr=u.oneOfType([rm,im,om]);u.oneOfType([u.func,u.elementType]);u.arrayOf(u.oneOfType([u.string,u.number,u.bool,u.shape({key:u.string.isRequired,value:u.oneOfType([u.string,u.number,u.bool]).isRequired})]));const Ln=u.shape({id:u.oneOfType([u.string,u.number]).isRequired,contentHtml:u.string.isRequired,date:u.string.isRequired,authorName:u.string.isRequired});
2u.shape({...Ln,replies:u.arrayOf(Ln)});u.shape({id:u.oneOfType([u.string,u.number]).isRequired,name:u.string.isRequired});u.shape({id:u.oneOfType([u.string,u.number]).isRequired,slug:u.string.isRequired,status:u.string.isRequired,titleHtml:u.string.isRequired,contentHtml:u.string.isRequired,excerptHtml:u.string.isRequired,commentStatus:u.string.isRequired,createdAt:u.string.isRequired,editedAt:u.string.isRequired,authorId:u.oneOfType([u.string,u.number]).isRequired,topics:u.arrayOf(wo).isRequired,featuredImage:u.shape({id:u.oneOfType([u.string,u.number]).isRequired,link:u.string.isRequired,alt:u.string.isRequired}),comments:u.arrayOf(Ln).isRequired});const cm=u.shape({backgroundColor:u.string.isRequired,type:u.string.isRequired,image:Ke,video:u.string,text:u.string.isRequired,footnote:u.string,mediaPlacement:u.oneOf(["Left","Right"]).isRequired});u.shape({id:u.oneOfType([u.string,u.number]).isRequired,type:u.string.isRequired,videoId:u.string.isRequired,title:u.string,description:u.string,backgroundColor:u.string});const lm=u.shape({header:u.string.isRequired,images:u.arrayOf(Ke)}),dm=u.shape({eyebrow:u.string.isRequired,header:u.string.isRequired,contentCards:u.arrayOf(ko)});u.oneOf(["Image","Icon"]);u.oneOf(["1","2","3","4","5"]);u.oneOf(["True","False"]);u.oneOf(["None","Light Gray"]);const um=u.shape({header:u.string.isRequired,slides:u.arrayOf(cm)}),mm=u.shape({youtubeVideoId:u.string.isRequired,textHtml:u.string.isRequired}),hm=u.shape({text:u.string.isRequired,mapImage:Ke}),pm=u.shape({staffMembers:u.arrayOf(u.shape({name:u.string.isRequired,title:u.string.isRequired,image:u.string.isRequired,bioHtml:u.string.isRequired}))});u.shape({id:u.oneOfType([u.string,u.number]).isRequired,slug:u.string.isRequired,titleHtml:u.string.isRequired,address:u.string.isRequired,city:u.string.isRequired,state:u.string.isRequired,zip:u.string.isRequired,mainPhone:u.string.isRequired,hours:u.string.isRequired,centerName:u.string.isRequired,featuredImage:Ke,inPersonClasses:u.arrayOf(fr),multiWeekClasses:u.arrayOf(fr),gallery:lm,cardGrid:dm,carousel:um,aboutTheLocation:mm,visitUs:hm,meetTheStaff:pm,thumbnailImage:u.shape({alt:u.string.isRequired,url:u.string.isRequired}),banner:u.string});u.shape({id:u.oneOfType([u.string,u.number]).isRequired,contentType:u.string.isRequired,data:u.object.isRequired});u.shape({id:u.oneOfType([u.string,u.number]).isRequired,titleHtml:u.string.isRequired,featuredImage:Ke,link:u.string.isRequired});const fm=u.shape({id:u.oneOfType([u.string,u.number]).isRequired,name:u.string,street:u.string,city:u.string,state:u.string,postalCode:u.string,phone:u.string,website:u.string,email:u.string,latitude:u.number,longitude:u.number}),xm=u.arrayOf(fm);u.shape({articleModifiedTime:u.string,articlePublishedTime:u.string,articlePublisher:u.string,author:u.string,canonical:u.string,description:u.string,ogDescription:u.string,ogImage:u.object,ogImageWidth:u.number,ogImageHeight:u.number,ogImageType:u.string,ogLocale:u.string,ogSiteName:u.string,ogTitle:u.string,ogType:u.string,ogUrl:u.string,robots:u.string,schema:u.oneOfType([u.object,u.array]),title:u.string,twitterCard:u.string,twitterCreator:u.string,twitterDescription:u.string,twitterImage:Ke,twitterSite:u.string,twitterTitle:u.string});function Kt(s){return s?s+"Error":""}function gm(s,t){return`${t}(${jm(s)})`}function jm(s){if(typeof s=="string")return s;if(s)return s.displayName||s.name||"Component"}function Cm(s){return!s||typeof s!="string"?s:s.split(".").pop()}function Nm(s){return ai(Cm(s))}function _m(s){return!!(s&&s.stopPropagation&&s.preventDefault)}function xr({fieldName:s,customEventHandler:t,defaultEventHandler:n}){return function(r){var o;const i=_m(r)?r:{target:{name:s,value:r}};((o=i.detail)==null?void 0:o.checked)!=null&&(i.target.value=i.detail.checked),n(i),t&&t(i)}}function ls(){return s=>{function t({onChange:n,onBlur:a,name:r,label:i,...o}){const[c,l]=Ct({name:r,...o}),d=i??Nm(r);!d&&!o["aria-label"]&&!o["aria-labelledby"]&&Dd();const h=xr({fieldName:c.name,customEventHandler:n,defaultEventHandler:c.onChange}),p=l.error&&l.touched;return e.jsx(s,{name:c.name,value:c.value,label:d,onIonInput:h,onIonChange:h,onIonBlur:xr({fieldName:c.name,customEventHandler:a,defaultEventHandler:c.onBlur}),isTouched:l.touched,error:l.error,"aria-describedby":p?Kt(r):void 0,...o})}return t.displayName=gm(s,"withFormikAdapter"),t}}function Sm({children:s,name:t,label:n="",isTouched:a,error:r="",labelComponent:i=null,labelProps:o={},className:c="",...l}
2){return e.jsxs(ri,{className:$(c,{"ion-invalid":r&&a,"ion-touched":a}),name:t,label:i||n===!1?void 0:n,errorText:a?r:"",...zn(l,"aria-describedby"),children:[i&&e.jsx("div",{slot:"label",children:e.jsx(i,{...o,children:n})}),s]})}const Ht=ls()(Sm);function ds({submitting:s,className:t="",children:n="Submit",...a}){return e.jsxs(L,{type:"submit",className:$(t,{"in-progress":s}),onClick:s?Nt:void 0,...a,children:[n,s&&e.jsx(Je,{size:"small"})]})}function Qs({...s}){return e.jsx(Ht,{className:"searchbar-with-integrated-submit",clearInput:!0,label:!1,...s,children:e.jsx(ds,{"aria-label":"Search",fill:"solid",color:"primary",slot:"end",children:e.jsx(R,{icon:ii,slot:"icon-only"})})})}function Mo({initialValues:s,onSubmit:t}){const n=async(a,{resetForm:r})=>{await t(a),r()};return e.jsx(Te,{initialValues:s,onSubmit:n,children:e.jsx(Ae,{className:"global-search-form",noValidate:!0,children:e.jsx(Qs,{"aria-label":"Search Senior Planet",name:"search",placeholder:"Search Senior Planet..."})})})}function Em({onAction:s=Nt}){return e.jsx(L,{className:"join-for-free",fill:"solid",shape:"round",color:"primary",routerLink:N(x.SIGN_UP),onClick:s,children:"Sign Up For Free"})}const gr=()=>Mn.isNativePlatform();function K(){const{getAccessTokenSilently:s,isAuthenticated:t,isLoading:n,loginWithRedirect:a,logout:r,user:i}=Dn(),o=m.useCallback(({returnTo:d=window.location.pathname}={})=>a({appState:{returnTo:d},async openUrl(h){gr()?await Mt.open({url:h,windowName:"_self"}):window.location.assign(h)}}),[a]),c=m.useCallback(({returnTo:d=window.location.origin}={})=>r({logoutParams:{returnTo:d},async openUrl(h){gr()?await Mt.open({url:h,windowName:"_self"}):window.location.replace(h)}}),[r]);return{getToken:m.useCallback(d=>s(d),[s]),isAuthenticated:t,isLoading:n,login:o,signOut:c,user:i}}function Ks({asLink:s=!1,onAction:t=Nt,...n}){const{login:a}=K(),r=m.useCallback(()=>{a()},[a]);return e.jsx(L,{className:$("sign-in",{"sign-in__link":s}),fill:s?"clear":"outline",shape:"round",color:"primary",onClick:()=>{r(),t()},...n,children:"Sign In"})}function Do({onAction:s=Nt}){return e.jsxs("div",{className:"unauthorized-user-actions",children:[e.jsx(Ks,{onAction:s}),e.jsx(Em,{onAction:s})]})}function bm({onAction:s}){const{isAuthenticated:t}=K();return t?null:e.jsx(Do,{onAction:s})}let jr=null,Uo="anonymous";function Tm(s){Uo=s==="authenticated"?"authenticated":"anonymous"}function la(){return typeof window<"u"&&!!window.dataLayer}function Am(s){la()&&window.dataLayer.push(s)}function ym(s={}){return Object.entries(s).reduce((t,[n,a])=>{if(a==null)return t;if(typeof a=="string"){const r=a.trim();return r&&(t[n]=r),t}return t[n]=a,t},{})}function Im(s,t){const n=Vd[s];if(!n)return!0;const a=n.required.filter(r=>t[r]===void 0);return a.length===0?!0:(console.warn(`GTM: Event "${s}" missing required params: ${a.join(", ")}`),!1)}function Pm(s,t,n){const a=n||jr,r={pagePath:s,pageTitle:document.title,...a&&{previousPath:a}};je("virtualPageView",r),jr=s}function je(s,t={}){const a={...ym(t),user_type:Uo};if(!Im(s,a))return;const i={event:s,...a};la()?Am(i):console.log("GTM (disabled):",s,a)}function Ho(s){return S(s)?"*":s.split(" ").filter(Boolean).map(t=>jt(t).toUpperCase()).join("")}const rt="main";function vm(){var T;const[s,t]=m.useState(rt),[n,a]=m.useState(null),r=oa(),i=m.useRef(null),{isAuthenticated:o,user:c}=K(),l=E(q.primaryTopics),d=E(q.topicsWithSubtopics),h=m.useMemo(()=>Lo({isAuthenticated:o,topics:l,topicsWithSubtopics:d}),[o,l,d]),p=m.useCallback(()=>{var C;t(rt),a(null),(C=i.current)==null||C.close()},[]),f=m.useCallback(()=>{n?a(null):t(rt)},[n]),g=m.useCallback(C=>{t(C),a(null)},[]),j=m.useCallback(C=>{a(C)},[]),b=m.useCallback(({search:C})=>{const A=C==null?void 0:C.trim();if(!S(A)){je("global_search",{query:A,search_scope:"global_header_mobile"});const y=new URLSearchParams;y.set("query",A),r(M(x.SEARCH_RESULTS,y)),p()}},[r,p]),P=m.useCallback((C,{target:A="_self"}={})=>{r(C,{direction:"root",target:A}),p()},[p,r]);return e.jsx(gl,{contentId:"main-content",ref:i,side:"start",children:e.jsxs(zt,{children:[e.jsx("div",{className:"mobile-menu-toggle",children:e.jsxs(L,{className:"mobile-menu-button",fill:"clear",onClick:p,children:[e.jsx(R,{icon:jl,slot:"icon-only",color:"primary"}),"Close"]})}),s===rt?e.jsx(Om,{closeMenu:p,navigationData:h,onMenuSelect:g,onNavigate:P,onSearch:b,user:c}):n?e.jsx(km,{menuLabel:(T=h.find(C=>C.menuKey===s))==null?void 0:T.menuLabel,subtopic:n,onBack:f,onNavigate:P}):e.jsx(wm,{menu:h.find(C=>C.menuKey===s),onBack:f,onNavigate:P,onSubtopicSelect:j,showBackButton:s!==rt})]})})}function Lm(){return e.jsx(Cl,{className:"mobile-menu-toggle",children:e.jsxs(L,{className:"mobile-menu-button",fill:"clear",color:"black",children:[e.jsx(R,{icon:Nl,slot:"start",color:"primary"}),"Menu"]})})}const Rm={search:""};
2function Om({closeMenu:s,navigationData:t,onMenuSelect:n,onNavigate:a,onSearch:r,user:i}){const o=(i==null?void 0:i.name)||(i==null?void 0:i.email);return e.jsxs(e.Fragment,{children:[e.jsx(Mo,{initialValues:Rm,onSubmit:r}),e.jsx(bm,{onAction:s}),e.jsx(Gn,{lines:"none",className:"mobile-main-menu",children:t.map(c=>{const{menuKey:l}=c;switch(c.menuType){case Le.EXTERNAL_LINK:return e.jsxs(Qe,{className:"mobile-menu-item mobile-menu-item__external",button:!0,detail:!1,onClick:()=>a(c.menuUrl,{target:"_blank"}),children:[e.jsx(Ge,{children:c.menuLabel}),e.jsx(R,{className:"mobile-menu-item mobile-menu-item__external-icon",icon:gs,slot:"end",color:"primary"})]},c.menuLabel);case Le.AUTHORIZED_USER:return e.jsxs(Qe,{className:"mobile-menu-item mobile-menu-item__authorized-user",button:!0,detail:!1,onClick:()=>n(l),children:[e.jsx(L,{className:"user-actions__trigger",fill:"solid",shape:"round",children:Ho(o)}),e.jsx(Ge,{children:c.menuLabel}),e.jsx(R,{icon:Sn,slot:"end"})]},c.menuLabel);case Le.DROPDOWN:case Le.NESTED_DROPDOWN:return e.jsxs(Qe,{className:"mobile-menu-item mobile-menu-item__has-submenu",button:!0,detail:!1,onClick:()=>n(l),children:[e.jsx(Ge,{children:c.menuLabel}),e.jsx(R,{icon:Sn,slot:"end",size:"small"})]},c.menuLabel);default:return null}})})]})}function wm({menu:s,onBack:t,onNavigate:n,onSubtopicSelect:a,showBackButton:r}){if(!s)return null;const i=s.menuType===Le.NESTED_DROPDOWN;return e.jsxs("div",{className:"mobile-submenu",children:[e.jsxs("div",{className:"mobile-submenu-header",children:[r&&e.jsx("div",{className:"mobile-submenu-back-button-container",children:e.jsxs(L,{fill:"clear",onClick:t,className:"mobile-submenu-back-button",color:"primary",children:[e.jsx(R,{icon:Vn,slot:"icon-only",color:"primary"}),"Back menu button"]})}),e.jsx("h2",{className:"mobile-submenu-title",children:s.menuLabel})]}),e.jsx(Gn,{lines:"none",className:"mobile-submenu-list",children:i?e.jsx("div",{className:"mobile-submenu-group",children:s.menuItems.map((o,c)=>{var l;switch(o.menuItemType){case H.LABEL:return e.jsx("div",{className:"mobile-submenu-label",children:o.menuItemLabel},c);case H.MENU_ITEM:{const d=((l=o.subtopics)==null?void 0:l.length)>0;return e.jsxs(Qe,{button:!0,detail:!1,onClick:()=>d?a(o):n(o.menuItemLink),className:`mobile-submenu-item ${o.menuItemClass||""}`,children:[e.jsx(Ge,{children:o.menuItemLabel}),d&&e.jsx(R,{icon:Sn,slot:"end",size:"small"})]},c)}default:return null}})}):s.menuItems.map((o,c)=>e.jsx("div",{className:"mobile-submenu-group",children:o.map((l,d)=>{switch(l.menuItemType){case H.LABEL:return e.jsx("div",{className:"mobile-submenu-label",children:l.menuItemLabel},d);case H.MENU_ITEM:return e.jsx(Qe,{button:!0,detail:!1,onClick:()=>n(l.menuItemLink),className:`mobile-submenu-item ${l.menuItemClass||""}`,children:e.jsx(Ge,{children:l.menuItemLabel})},d);default:return null}})},c))})]})}function km({menuLabel:s,subtopic:t,onBack:n,onNavigate:a}){return t?e.jsxs("div",{className:"mobile-submenu",children:[e.jsxs("div",{className:"mobile-submenu-header",children:[e.jsx("div",{className:"mobile-submenu-back-button-container",children:e.jsxs(L,{fill:"clear",onClick:n,className:"mobile-submenu-back-button",color:"primary",children:[e.jsx(R,{icon:Vn,slot:"icon-only",color:"primary"}),"Back to ",s]})}),e.jsx("h2",{className:"mobile-submenu-title",children:t.menuItemLabel})]}),e.jsx(Gn,{lines:"none",className:"mobile-submenu-list",children:e.jsxs("div",{className:"mobile-submenu-group",children:[e.jsx(Qe,{button:!0,detail:!1,onClick:()=>a(t.menuItemLink),className:"mobile-submenu-item mobile-submenu-item--view-all",children:e.jsxs(Ge,{children:["Explore all ",t.menuItemLabel]})}),t.subtopics.map((r,i)=>e.jsx(Qe,{button:!0,detail:!1,onClick:()=>a(r.menuItemLink),className:"mobile-submenu-item",children:e.jsx(Ge,{children:r.menuItemLabel})},i))]})})]}):null}function Mm(){const[s,t]=m.useState(!1),n=te();if(!as(ns.DESKTOP))return null;const i=o=>{var l;const c=(l=o.search)==null?void 0:l.trim();c&&(je("global_search",{query:c,search_scope:"global_header_desktop"}),n.push(`/search-results?query=${encodeURIComponent(c)}`)),t(!1)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"global-search-container",children:e.jsx(L,{fill:"clear",size:"small",onClick:()=>t(!0),className:$("global-search-icon-button",{"global-search-open":s}),"aria-label":s?"Close search":"Open search","aria-expanded":s,"aria-controls":"desktop-search-bar",children:e.jsx(R,{icon:Bs,slot:"icon-only"})})}),e.jsx(os,{isOpen:s,onDidDismiss:()=>t(!1),className:$("modal","global-search-modal"),"aria-labelledby":"desktop-search-bar",children:e.jsx("div",{className:"global-search-modal__content",id:"desktop-search-bar",role:"search",children:e.jsx(Mo,{initialValues:{search:""},onSubmit:i})})})]})}function Dm(){const s=oa(),{user:t}=K(),n=(t==null?void 0:t.name)||(t==null?void 0:t.email);return e.jsxs(Un,{className:"user-actions",children:[e.jsx(Hn,{asChild:!0,children:e.jsx(L,{className:"user-actions__trigger",fill:"solid",shape:"round",children:Ho(n)})}),e.jsx(Fn,{children:e.jsxs(qn,{className:"user-actions__dropdown-content",align:"end",sideOffset:8,children:[e.jsx(qs,{className:"user-actions__dropdown-item",onSelect:()=>s(N(x.DASHBOARD)),children:"My Dashboard"}),e.jsx(qs,{className:"user-actions__dropdown-item",onSelect:()=>s(N(x.LOGGED_OUT)),children:"Log out"})]})})]})}function Um(){const{isAuthenticated:s}=K();return s?e.jsx(Dm,{}):e.jsx(Do,{})}function Hm(){return e.jsxs(Vs,{className:"toolbar-actions",slot:"end",children:[e.jsx(Mm,{}),e.jsx(Um,{}),e.jsx(Lm,{})]})}const Fm=s=>m.createElement("svg",{width:753,height:92,viewBox:"0 0 753 92",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},m.createElement("g",{clipPath:"url(#clip0_2615_2600)"},m.createElement("path",{d:"M740.555 77.5685C740.555 75.2132 739.309 73.5216 736.931 73.5216H735.339V81.597H736.931C739.166 81.597 740.555 80.0852 740.555 77.5685ZM717.619 77.5685C717.619 75.4206 716.538 73.5216 713.549 73.5216H712.408V81.597H713.563C716.253 81.597 717.633 80.0667 717.633 77.5685M693.358 82.3759L690.953 75.923L688.506 82.3759C688.617 82.3759 689.937 82.21 690.953 82.21C691.757 82.2183 692.561 82.2738 693.358 82.3759ZM673.853 82.5142L671.439 75.8493L669.08 82.2331C669.48 82.2331 669.907 82.2054 670.367 82.2054C671.536 82.1994 672.704 82.3028 673.853 82.5142ZM748.64 77.5685C748.64 82.1777 744.988 85.1783 738.982 85.1783H735.362V91.5944H719.017L712.408 82.8737V91.5898H696.638L694.904 86.81C693.6 86.5771 692.278 86.4583 690.953 86.4551C689.609 86.4622 688.268 86.5762 686.943 86.7962L685.163 91.5898H677.123L675.799 87.9439C677.286 88.3196 678.711 88.9079 680.03 89.6908L680.366 88.8657C677.476 87.2325 674.209 86.39 670.892 86.4228C667.125 86.4228 664.729 87.3447 660.815 87.3447C656.921 87.3391 653.111 86.2094 649.841 84.0906L651.534 79.9423C651.971 80.228 656.197 82.9659 661.068 82.9659C661.891 82.9659 662.599 82.9198 663.262 82.8553L668.541 69.9495H677.312L682.537 83.5236L688.056 69.9495H696.84L704.53 89.9212V69.9679H715.034C722.177 69.9679 725.677 73.2543 725.677 77.5824C725.677 81.9104 722.273 83.5743 721.33 84.0122L727.498 90.7094V69.9679H738.959C745.297 69.9679 748.617 73.1944 748.617 77.5824M667.056 87.5244H667.111L665.598 91.6174H659.619L661.077 88.1098H661.132C663.126 88.0934 665.115 87.8974 667.074 87.5244H667.056Z",fill:"#EC1300"}),m.createElement("path",{d:"M750.434 72.0698H750.714C751.036 72.0698 751.307 71.9499 751.307 71.6503C751.307 71.4337 751.151 71.2217 750.714 71.2217C750.621 71.2148 750.527 71.2148 750.434 71.2217V72.0698ZM750.434 73.4249H750.043V70.9774C750.271 70.94 750.501 70.92 750.733 70.9174C750.998 70.8996 751.263 70.964 751.491 71.1018C751.568 71.162 751.629 71.2402 751.668 71.3294C751.707 71.4186 751.724 71.5162 751.717 71.6134C751.717 71.7491 751.671 71.8808 751.588 71.9877C751.505 72.0946 751.388 72.1705 751.257 72.2034V72.2265C751.468 72.2633 751.616 72.4569 751.666 72.8211C751.688 73.0284 751.739 73.2317 751.818 73.4249H751.413C751.322 73.2274 751.266 73.0151 751.248 72.798C751.244 72.7344 751.227 72.6723 751.198 72.6155C751.169 72.5588 751.129 72.5087 751.079 72.4685C751.03 72.4282 750.973 72.3986 750.912 72.3815C750.85 72.3645 750.786 72.3603 750.723 72.3694H750.452L750.434 73.4249ZM750.838 70.2952C750.472 70.2796 750.109 70.3743 749.796 70.5671C749.483 70.76 749.235 71.0421 749.084 71.3774C748.933 71.7126 748.885 72.0855 748.947 72.4481C749.009 72.8108 749.178 73.1466 749.431 73.4123C749.685 73.678 750.013 73.8616 750.372 73.9393C750.73 74.017 751.104 73.9854 751.445 73.8484C751.786 73.7115 752.078 73.4755 752.284 73.1709C752.489 72.8662 752.6 72.5068 752.6 72.1389C752.61 71.6604 752.43 71.1976 752.1 70.852C751.769 70.5063 751.316 70.3061 750.838 70.2952ZM750.838 69.9541C751.273 69.9514 751.699 70.0781 752.061 70.3182C752.424 70.5583 752.707 70.901 752.875 71.3028C753.043 71.7046 753.089 72.1473 753.005 72.5748C752.922 73.0023 752.713 73.3954 752.407 73.704C752.1 74.0127 751.709 74.2231 751.282 74.3086C750.856 74.394 750.414 74.3506 750.013 74.1839C749.611 74.0172 749.268 73.7347 749.027 73.3723C748.786 73.0098 748.657 72.5837 748.658 72.1481C748.655 71.8597 748.709 71.5735 748.817 71.3063C748.925 71.039 749.085 70.7961 749.288 70.5918C749.491 70.3874 749.733 70.2258 749.999 70.1163C750.265 70.0068 750.551 69.9516 750.838 69.9541Z",fill:"#EC1300"}),m.createElement("path",{d:"M565.047 70.6224H577.506V72.3878H566.988V79.8086H576.774V81.5739H566.988V91.4699H565.047V70.6224ZM581.383 70.6224H586.851C587.121 70.6224 587.494 70.6317 587.969 70.
26501C588.481 70.676 588.991 70.7361 589.496 70.8299C590.067 70.9306 590.627 71.085 591.17 71.2908C591.732 71.4999 592.25 71.8126 592.697 72.2126C593.167 72.6553 593.547 73.1862 593.814 73.7751C594.136 74.4998 594.293 75.2869 594.274 76.0798C594.304 76.9344 594.128 77.7836 593.759 78.5549C593.444 79.1658 593.004 79.703 592.467 80.1313C591.951 80.5303 591.368 80.8346 590.747 81.0301C590.161 81.2154 589.561 81.3526 588.953 81.4403L595.005 91.4515H592.802L586.957 81.5555H583.342V91.4515H581.401L581.383 70.6224ZM583.324 79.8086H587.463C588.306 79.8364 589.146 79.7067 589.942 79.426C590.498 79.2298 591.004 78.9153 591.427 78.5042C591.76 78.1645 592.007 77.7507 592.149 77.2966C592.267 76.9139 592.33 76.5168 592.338 76.1166C592.33 75.7179 592.267 75.3223 592.149 74.9413C592.008 74.4868 591.761 74.0727 591.427 73.7337C591.003 73.324 590.497 73.0097 589.942 72.8118C589.146 72.5312 588.306 72.4015 587.463 72.4293H583.324V79.8086ZM597.457 81.0485C597.439 79.5487 597.707 78.0592 598.248 76.6605C598.749 75.372 599.499 74.1956 600.455 73.199C601.417 72.2108 602.573 71.4339 603.85 70.9174C606.658 69.8126 609.78 69.8126 612.588 70.9174C613.864 71.435 615.02 72.2119 615.982 73.199C616.937 74.1959 617.686 75.3723 618.185 76.6605C618.726 78.0592 618.994 79.5487 618.976 81.0485C618.992 82.5526 618.724 84.0462 618.185 85.4503C617.688 86.7424 616.939 87.9223 615.982 88.921C615.022 89.907 613.865 90.6796 612.588 91.1888C609.776 92.2739 606.662 92.2739 603.85 91.1888C602.572 90.6807 601.415 89.9079 600.455 88.921C599.497 87.9226 598.746 86.7427 598.248 85.4503C597.707 84.0404 597.439 82.5404 597.457 81.0301V81.0485ZM599.398 81.0485C599.386 82.2818 599.594 83.5072 600.014 84.6667C600.4 85.7476 600.999 86.7398 601.775 87.5844C602.549 88.4181 603.489 89.0793 604.535 89.5248C606.883 90.4711 609.504 90.4711 611.852 89.5248C612.897 89.0785 613.837 88.4175 614.612 87.5844C615.388 86.7388 615.988 85.747 616.378 84.6667C617.2 82.3233 617.2 79.7691 616.378 77.4256C615.988 76.3453 615.388 75.3536 614.612 74.508C613.836 73.6749 612.897 73.0125 611.852 72.5629C609.503 71.6229 606.884 71.6229 604.535 72.5629C603.49 73.0118 602.55 73.6743 601.775 74.508C600.999 75.3526 600.4 76.3448 600.014 77.4256C599.596 78.5807 599.387 79.8014 599.398 81.0301V81.0485ZM623.106 70.6224H626.018L633.597 88.1375L641.176 70.6224H643.936V91.4699H641.995V73.093H641.94L634.002 91.4699H633.151L625.102 73.093H625.043V91.4699H623.102L623.106 70.6224ZM24.4077 59.4635C15.4178 59.4969 6.72997 56.2139 0 50.2405L7.47821 41.2617C12.6569 45.5437 18.0563 48.2631 24.656 48.2631C29.8301 48.2631 32.9345 46.2028 32.9345 42.8289V42.6629C32.9345 39.4365 30.9661 37.8048 21.3492 35.3343C9.77779 32.3659 2.29957 29.1579 2.29957 17.7086V17.5427C2.29957 7.08437 10.6838 0.165932 22.4346 0.165932C30.8189 0.165932 37.966 2.79779 43.8023 7.49459L37.2531 17.0495C32.1572 13.505 27.135 11.3663 22.2967 11.3663C17.4584 11.3663 14.8966 13.588 14.8966 16.3904V16.5563C14.8966 20.3451 17.3618 21.5804 27.3143 24.1339C38.9548 27.1806 45.5316 31.3796 45.5316 41.4277V41.5936C45.5316 53.0429 36.8162 59.4635 24.4077 59.4635ZM63.4544 58.6431V0.986372H106.847V12.2697H76.0331V23.9679H103.168V35.2513H76.0331V47.3828H107.261V58.6661L63.4544 58.6431ZM166.015 58.6431L138.135 21.9906V58.6431H125.644V0.986372H137.317L164.272 36.4774V0.986372H176.764V58.6431H166.015ZM196.089 58.6431V0.986372H208.746V58.6431H196.089ZM256.701 59.6295C238.949 59.6295 226.209 46.3687 226.209 29.9784V29.8124C226.209 13.4267 239.114 0 256.867 0C274.62 0 287.336 13.2745 287.336 29.6511V29.8124C287.336 46.2028 274.436 59.6295 256.683 59.6295H256.701ZM274.109 29.8124C274.109 19.9303 266.879 11.6936 256.688 11.6936C246.496 11.6936 239.427 19.7643 239.427 29.6695V29.8309C239.427 39.7176 246.661 47.9543 256.853 47.9543C267.045 47.9543 274.109 39.8836 274.109 29.9784V29.8124ZM339.734 58.6431L327.409 40.2062H317.461V58.6431H304.804V0.986372H331.102C344.66 0.986372 352.796 8.15371 352.796 20.0132V20.1884C352.796 29.4944 347.783 35.3435 340.47 38.0583L354.521 58.6523L339.734 58.6431ZM339.983 20.6723C339.983 15.2381 336.202 12.4357 330.035 12.4357H317.461V28.992H330.279C336.441 28.992 339.978 25.6964 339.978 20.8383L339.983 20.6723ZM409.453 41.3447H399.836V58.6431H387.184V0.986372H410.704C424.428 0.986372 432.729 9.14008 432.729 20.9212
2V21.0826C432.711 34.4263 422.358 41.3447 409.453 41.3447ZM419.902 21.1655C419.902 15.4824 415.956 12.4357 409.628 12.4357H399.836V30.0613H409.862C416.191 30.0613 419.893 26.2725 419.893 21.3315L419.902 21.1655ZM446.527 58.6431V0.986372H459.184V47.1108H487.864V58.6339L446.527 58.6431ZM614.46 58.6431L586.598 21.9906V58.6431H574.107V0.986372H585.775L612.735 36.4774V0.986372H625.227V58.6431H614.46ZM645.454 58.6431V0.986372H688.846V12.2697H658.032V23.9679H685.167V35.2513H658.032V47.3828H689.26V58.6661L645.454 58.6431ZM735.5 12.6846V58.6431H722.848V12.6846H705.344V0.986372H753.009V12.6846H735.5ZM542.299 45.7188L547.561 58.6569H560.797L536.132 0.580761H524.459L499.789 58.6569H512.699L517.961 45.7234L530.13 15.805L542.299 45.7188Z",fill:"#5E5E5E"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_2615_2600"},m.createElement("rect",{width:753,height:92,fill:"white"}))));function qm({slot:s="start"}){return e.jsx("div",{slot:s,className:"logo-container",children:e.jsx(Y,{routerLink:N(x.HOME),children:e.jsx(Fm,{"aria-label":"Senior Planet logo"})})})}function $m(){return e.jsxs(_l,{children:[e.jsx(qm,{}),e.jsx(zu,{}),e.jsx(Hm,{})]})}function zm(){return e.jsxs(Sl,{className:$("global-header","ion-no-border"),children:[e.jsx(ju,{}),e.jsx($m,{})]})}const Gm="data:image/svg+xml,%3csvg%20width='96'%20height='96'%20viewBox='0%200%2096%2096'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='48'%20cy='48'%20r='48'%20fill='%23EC1300'/%3e%3cpath%20d='M81.969%2035.6236C79.8747%2029.9698%2076.4014%2024.9287%2071.8643%2020.9581C67.3272%2016.9874%2061.8702%2014.213%2055.9887%2012.8867C50.1073%2011.5604%2043.9876%2011.7242%2038.1855%2013.3633C32.3834%2015.0024%2027.0827%2018.0649%2022.7646%2022.2726C19.3203%2025.6389%2016.5957%2029.6698%2014.7563%2034.1209C11.1721%2042.804%2011.0802%2052.5359%2014.4997%2061.2852C16.7488%2066.9821%2020.4149%2072.0105%2025.1507%2075.8943C29.8866%2079.7781%2035.5354%2082.3888%2041.5623%2083.4791C43.6984%2083.8652%2045.8648%2084.0602%2048.0355%2084.0617C53.0859%2084.0621%2058.0796%2082.997%2062.6904%2080.936L61.4559%2078.1618C55.4323%2080.786%2048.7599%2081.5423%2042.3019%2080.3329C35.8438%2079.1235%2029.8972%2076.0041%2025.2313%2071.3783C20.5655%2066.7524%2017.395%2060.8328%2016.1301%2054.3854C14.8652%2047.938%2015.5641%2041.2594%2018.1363%2035.2135C20.7085%2029.1676%2025.0357%2024.0326%2030.5581%2020.4728C36.0805%2016.913%2042.544%2015.0922%2049.1126%2015.2459C55.6811%2015.3997%2062.0524%2017.5209%2067.4022%2021.3351C72.752%2025.1494%2076.8343%2030.4812%2079.1208%2036.6408C81.7864%2043.87%2082.7204%2053.5891%2077.3499%2059.193C74.608%2062.0551%2071.1402%2063.3266%2067.0436%2062.9752C65.3788%2062.8174%2063.7406%2062.45%2062.1679%2061.8817L62.3991%2061.6505C65.3369%2058.7138%2067.2467%2054.906%2067.8435%2050.7952C68.4404%2046.6843%2067.6923%2042.4907%2065.711%2038.8397C63.7297%2035.1887%2060.6212%2032.2761%2056.8492%2030.5362C53.0772%2028.7963%2048.8438%2028.3223%2044.7804%2029.185C42.9608%2028.0682%2041.0597%2027.0899%2039.0932%2026.2582C34.992%2024.5613%2031.7415%2024.6839%2029.9406%2026.6004C27.5178%2029.1804%2029.039%2033.4181%2030.1718%2035.7137C30.6788%2036.7479%2031.2406%2037.779%2031.8571%2038.807C29.7935%2042.5894%2029.0565%2046.954%2029.7636%2051.2042C30.4708%2055.4544%2032.5813%2059.3453%2035.7584%2062.2557C38.9355%2065.1662%2042.996%2066.9284%2047.2917%2067.2612C51.5875%2067.594%2055.871%2066.4782%2059.4584%2064.0918C61.785%2065.1165%2064.2594%2065.7657%2066.7893%2066.0153C67.3118%2066.0615%2067.8273%2066.0823%2068.336%2066.0823C70.4325%2066.1071%2072.5112%2065.6958%2074.4403%2064.8743C76.3693%2064.0529%2078.1065%2062.8393%2079.5415%2061.3107C82.547%2058.1781%2084.1398%2053.9289%2084.2832%2048.6833C84.3941%2044.6098%2083.5734%2039.9699%2081.969%2035.6236ZM32.16%2028.688C32.8165%2027.9944%2034.6845%2027.7193%2037.9396%2029.0718C38.8829%2029.4602%2039.8639%2029.9225%2040.8826%2030.4589C38.7492%2031.4163%2036.8085%2032.7552%2035.1561%2034.4099C34.6514%2034.9145%2034.1744%2035.4463%2033.7274%2036.0027C33.4315%2035.4664%2033.1518%2034.9269%2032.8882%2034.3844C31.6074%2031.7697%2031.3254%2029.5827%2032.16%2028.688ZM37.3039%2059.5236C35.0296%2057.2443%2033.4823%2054.3417%2032.8576%2051.183C32.2329%2048.0242%2032.559%2044.7512%2033.7945%2041.7778C35.534%2044.199%2037.4315%2046.5028%2039.4747%2048.674C43.8683%2053.4566%2048.8274%2057.6868%2054.2429%2061.2714C54.8416%2061.6644%2055.5098%2062.0759%2056.2334%2062.4851C53.1712%2064.0582%2049.6891%2064.6196%2046.2877%2064.0887C42.8864%2063.5578%2039.741%2061.9619%2037.3039%2059.5305V59.5236ZM59.0978%2060.5917C57.9928%2060.0373%2056.9206%2059.4197%2055.8866%2058.7422C50.6827%2055.2918%2045.9164%2051.2233%2041.6918%2046.6257C39.3937%2044.1971%2037.2983%2041.5845%2035.4266%2038.8139C36.7095%2036.9576%2038.3652%2035.389%2040.2881%2034.2081C42.2109%2033.0273%2044.3587%2032.26%2046.5946%2031.9554C48.8304%2031.6507%2051.1052%2031.8154%2053.2739%2032.4387C55.4426%2033.0621%2057.4576%2034.1306%2059.1904%2035.576C60.9232%2037.0214%2062.3358%2038.8121%2063.338%2040.8338C64.3403%2042.8555%2064.9103%2045.0639%2065.0117%2047.3181C65.113%2049.5723%2064.7435%2051.8229%2063.9267%2053.9264C63.1099%2056.0299%2061.8637%2057.9401%2060.2676%2059.5352C59.893%2059.9066%2059.5031%2060.2588%2059.0978%2060.5917Z'%20fill='white'/%3e%3c/svg%3e",Vm="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2016C0%207.16344%207.16344%200%2016%200C24.8366%200%2032%207.16344%2032%2016C32%2024.8366%2024.8366%2032%2016%2032C7.16344%2032%200%2024.8366%200%2016Z'%20fill='%23FF0000'/%3e%3cpath%20d='M24.1768%2012.0483C23.9805%2011.2943%2023.4022%2010.7005%2022.6679%2010.499C21.3371%2010.1328%2016.0001%2010.1328%2016.0001%2010.1328C16.0001%2010.1328%2010.6632%2010.1328%209.3323%2010.499C8.59795%2010.7005%208.01962%2011.2943%207.82335%2012.0483C7.4668%2013.4148%207.4668%2016.2661%207.4668%2016.2661C7.4668%2016.2661%207.4668%2019.1174%207.82335%2020.484C8.01962%2021.238%208.59795%2021.8318%209.3323%2022.0334C10.6632%2022.3995%2016.0001%2022.3995%2016.0001%2022.3995C16.0001%2022.3995%2021.3371%2022.3995%2022.6679%2022.0334C23.4022%2021.8318%2023.9805%2021.238%2024.1768%2020.484C24.5335%2019.1174%2024.5335%2016.2661%2024.5335%2016.2661C24.5335%2016.2661%2024.5335%2013.4148%2024.1768%2012.0483'%20fill='white'/%3e%3cpath%20d='M14.4004%2019.2005V13.8672L18.6671%2016.534L14.4004%2019.2005Z'%20fill='%23FF0000'/%3e%3c/svg%3e",Bm="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2016C0%207.16344%207.16344%200%2016%200C24.8366%200%2032%207.16344%2032%2016C32%2024.8366%2024.8366%2032%2016%2032C7.16344%2032%200%2024.8366%200%2016Z'%20fill='%23C32AA3'/%3e%3cmask%20id='mask0_6365_22540'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='32'%20height='32'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2016C0%207.16344%207.16344%200%2016%200C24.8366%200%2032%207.16344%2032%2016C32%2024.8366%2024.8366%2032%2016%2032C7.16344%2032%200%2024.8366%200%2016Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_6365_22540)'%3e%3cpath%20d='M15.999%207.46484C18.3166%207.46485%2018.6065%207.47518%2019.5166%207.5166C20.425%207.55821%2021.0459%207.70207%2021.5898%207.91309C22.1514%208.13082%2022.6261%208.42204%2023.1006%208.89648C23.5752%209.37077%2023.8673%209.847%2024.0859%2010.4082C24.2957%2010.9508%2024.4388%2011.5711%2024.4814%2012.4795C24.5223%2013.3897%2024.5332%2013.6807%2024.5332%2015.998C24.5332%2018.3156%2024.5223%2018.6064%2024.4814%2019.5166C24.4388%2020.4242%2024.2956%2021.0444%2024.0859%2021.5869C23.8673%2022.148%2023.5752%2022.6243%2023.1006%2023.0986C22.6264%2023.5733%2022.1509%2023.866%2021.5898%2024.084C21.047%2024.295%2020.4259%2024.4389%2019.5176%2024.4805C18.6075%2024.5219%2018.3174%2024.5312%2016%2024.5312C13.6826%2024.5312%2013.3917%2024.5219%2012.4814%2024.4805C11.5733%2024.4389%2010.953%2024.295%2010.4102%2024.084C9.84932%2023.866%209.37351%2023.5732%208.89941%2023.0986C8.42492%2022.6243%208.13317%2022.1482%207.91504%2021.5869C7.70421%2021.0444%207.56033%2020.424%207.51855%2019.5156C7.47732%2018.6057%207.4668%2018.3153%207.4668%2015.998C7.4668%2013.6807%207.47784%2013.3897%207.51855%2012.4795C7.55944%2011.5714%207.70348%2010.951%207.91504%2010.4082C8.1337%209.84724%208.42482%209.37073%208.89941%208.89648C9.37365%208.4221%209.84999%208.13102%2010.4111%207.91309C10.9537%207.70206%2011.574%207.5582%2012.4824%207.5166C13.3923%207.47519%2013.6833%207.46485%2015.999%207.46484ZM15.2344%209C13.6443%209.00178%2013.3386%209.01231%2012.5518%209.04785C11.7199
2%209.08607%2011.2676%209.22448%2010.9668%209.3418C10.5686%209.4968%2010.284%209.68188%209.98535%209.98047C9.68672%2010.2791%209.50134%2010.5638%209.34668%2010.9619C9.22988%2011.2627%209.09078%2011.7149%209.05273%2012.5469C9.01186%2013.4462%209.00391%2013.7157%209.00391%2015.9941C9.00391%2018.2725%209.01185%2018.5429%209.05273%2019.4424C9.09061%2020.2743%209.22988%2020.7259%209.34668%2021.0264C9.50167%2021.4247%209.68678%2021.7082%209.98535%2022.0068C10.284%2022.3055%2010.5686%2022.4908%2010.9668%2022.6455C11.2678%2022.7623%2011.7198%2022.9011%2012.5518%2022.9395C13.451%2022.9803%2013.7218%2022.9893%2016%2022.9893C18.2776%2022.9893%2018.5481%2022.9803%2019.4473%2022.9395C20.2793%2022.9014%2020.7318%2022.7628%2021.0322%2022.6455C21.4306%2022.4908%2021.714%2022.3055%2022.0127%2022.0068C22.3112%2021.7085%2022.4968%2021.4253%2022.6514%2021.0273C22.7681%2020.7269%2022.9072%2020.2751%2022.9453%2019.4434C22.9862%2018.5438%2022.9951%2018.2732%2022.9951%2015.9961C22.9951%2013.7189%2022.9862%2013.4483%2022.9453%2012.5488C22.9075%2011.717%2022.7682%2011.2653%2022.6514%2010.9648C22.4963%2010.5666%2022.3114%2010.2821%2022.0127%209.9834C21.7142%209.68473%2021.4305%209.49939%2021.0322%209.34473C20.7314%209.22793%2020.2793%209.08883%2019.4473%209.05078C18.548%209.00991%2018.2776%209.00195%2016%209.00195C15.7153%209.00195%2015.4615%209.0016%2015.2344%209.00195V9ZM16.001%2011.6172C18.4209%2011.6172%2020.3826%2013.5791%2020.3828%2015.999C20.3828%2018.4191%2018.4211%2020.3809%2016.001%2020.3809C13.5811%2020.3806%2011.6191%2018.419%2011.6191%2015.999C11.6194%2013.5793%2013.5812%2011.6174%2016.001%2011.6172ZM16.001%2013.1562C14.4299%2013.1562%2013.1562%2014.4299%2013.1562%2016.001C13.1564%2017.5717%2014.43%2018.8447%2016.001%2018.8447C17.5716%2018.8446%2018.8446%2017.5716%2018.8447%2016.001C18.8447%2014.43%2017.5717%2013.1564%2016.001%2013.1562ZM20.5557%2010.4219C21.1208%2010.4221%2021.5791%2010.8811%2021.5791%2011.4463C21.5789%2012.0113%2021.1207%2012.4695%2020.5557%2012.4697C19.9905%2012.4697%2019.5315%2012.0114%2019.5312%2011.4463C19.5312%2010.8808%2019.9903%2010.4219%2020.5557%2010.4219Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Wm="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='32'%20height='32'%20rx='16'%20fill='black'/%3e%3cpath%20d='M20.8134%208H23.1135L18.0884%2014.3538L24%2023H19.3713L15.7459%2017.7562L11.5977%2023H9.2962L14.671%2016.2038L9%208H13.7462L17.0232%2012.7931L20.8134%208ZM20.0061%2021.4769H21.2806L13.0537%209.44308H11.686L20.0061%2021.4769Z'%20fill='white'/%3e%3c/svg%3e",Ym="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2016C0%207.16344%207.16344%200%2016%200C24.8366%200%2032%207.16344%2032%2016C32%2024.8366%2024.8366%2032%2016%2032C7.16344%2032%200%2024.8366%200%2016Z'%20fill='%233B5998'/%3e%3cpath%20d='M17.6686%2025.4077V16.7028H20.0715L20.39%2013.7031H17.6686L17.6727%2012.2017C17.6727%2011.4193%2017.747%2011.0001%2018.8708%2011.0001H20.373V8H17.9697C15.083%208%2014.067%209.4552%2014.067%2011.9024V13.7034H12.2676V16.7031H14.067V25.4077H17.6686Z'%20fill='white'/%3e%3c/svg%3e";function da({startColor:s=fs.LIGHTEST_MELON,middleColor:t=fs.WATERMELON,endColor:n=fs.MID_RED}){return e.jsxs("div",{className:"color-bar",children:[e.jsx("div",{className:"color-bar__start",style:{backgroundColor:s}}),e.jsx("div",{className:"color-bar__middle",style:{backgroundColor:t}}),e.jsx("div",{className:"color-bar__end",style:{backgroundColor:n}})]})}function Fo({...s}){return e.jsx(L,{routerLink:N(Z.NEWSLETTER),...s,children:"Sign Up Now"})}function Zm(){return e.jsxs(e.Fragment,{children:[e.jsx(da,{}),e.jsxs(oi,{className:"newsletter-notice newsletter-block-container",children:[e.jsxs(En,{sizeLg:"9",size:"12",children:[e.jsxs("div",{children:[e.jsx(ve,{children:e.jsx("span",{className:"text title bold",children:"Don't be a stranger! "})}),e.jsx(ve,{children:e.jsx("span",{className:"text title",children:"Sign up for our newsletter"})})]}),e.jsx("div",{children:e.jsx(ve,{children:e.jsx("p",{className:"text subtitle",children:"Stay informed about the latest Senior Planet programs, benefits, events and more."})})})]}),e.jsx(En,{sizeLg:"3",size:"12",children:e.jsx(Fo,{shape:"round",fill:"outline",className:"sign-up",color:"white"})})]})]})}const Qm="/assets/award-image-1-DUH_-Mam.png",Km="/assets/award-image-2-4gCKlu-i.png",Xm="/assets/award-image-3-8MZB6XBQ.png",Jm="/assets/award-image-4-XEMFUwua.jpg",eh="/assets/award-image-5-BhCwn3uq.jpg";function sh(){return e.jsxs("div",{className:"awards-and-certificates",children:[e.jsx("h2",{className:"title",children:"Awards & Certificates"}),e.jsxs("div",{className:"awards-and-certificates-list",children:[e.jsx(F,{src:Qm,alt:"Webby Award Honoree 2021"}),e.jsx(F,{src:Km,alt:"Anthem Awards 2022 Winner"}),e.jsx(F,{src:Xm,alt:"Communicator Awards Excellence"}),e.jsx(F,{src:Jm,alt:"2024 AVA Digital Awards Platinum"}),e.jsx(F,{src:eh,alt:"Charity Navigator Four-Star rating"})]})]})}function th(){const{login:s,isAuthenticated:t}=K(),n=E(q.primaryTopics);return e.jsx(El,{children:e.jsxs(bl,{className:"footer-container",children:[e.jsx(Zm,{}),e.jsxs("div",{className:"main-footer-content",children:[e.jsxs("div",{className:"footer-block-container",children:[e.jsxs("div",{className:"footer-block-detail
2s",children:[e.jsx(F,{src:Gm,alt:"Senior Planet icon",className:"senior-planet-icon"}),e.jsx("h2",{className:"title",children:"Who We Are"}),e.jsx("p",{className:"text",children:"We're a distinctive, diverse collection of people aged 60 and older who are busy changing the way we age by embracing opportunities to reshape our lives, connect with and help one another, and change the world for the better —all while learning, growing, and having fun!"}),e.jsxs("div",{className:"social-icons-block",children:[e.jsx(Y,{href:"https://www.youtube.com/@seniorplanet",target:"_blank",children:e.jsx(F,{src:Vm,alt:"YouTube",className:"social-icon"})}),e.jsx(Y,{href:"https://www.instagram.com/senior.planet/",target:"_blank",children:e.jsx(F,{src:Bm,alt:"Instagram",className:"social-icon"})}),e.jsx(Y,{href:"https://twitter.com/seniorplanet",target:"_blank",children:e.jsx(F,{src:Wm,alt:"X (Twitter)",className:"social-icon"})}),e.jsx(Y,{href:"https://www.facebook.com/seniorplanet",target:"_blank",children:e.jsx(F,{src:Ym,alt:"Facebook",className:"social-icon"})})]}),e.jsx(sh,{})]}),e.jsxs("div",{className:"links-block",children:[e.jsxs("div",{className:"links-block-item",children:[e.jsx(ve,{children:e.jsx("h2",{className:"title",children:"Website"})}),e.jsx("div",{className:"link",children:e.jsx(Y,{routerLink:N(x.ROOT),children:"Home"})}),e.jsx("div",{className:"link",children:e.jsx(Y,{routerLink:N(x.ONLINE_CLASSES),children:"Online Classes"})}),e.jsx("div",{className:"link",children:e.jsx(Y,{routerLink:N(x.LOCATIONS),children:"In-person Classes"})}),e.jsx("div",{className:"link",children:e.jsx(Y,{routerLink:pe(yn.ALL),children:"Explore"})}),e.jsx("div",{className:"link",children:e.jsx(Y,{routerLink:N(x.ARTICLES),children:"Articles"})}),e.jsx("div",{className:"link",children:e.jsx(Y,{routerLink:pe(Z.ABOUT_US),children:"About Us"})}),!t&&e.jsx("div",{className:"link",children:e.jsx(L,{className:"link-button ion-no-padding",fill:"clear",onClick:()=>s(),children:"Login"})}),!t&&e.jsx("div",{className:"link",children:e.jsx(Y,{href:"/sign-up",children:"Sign up for free"})}),e.jsx("div",{className:"link",children:e.jsx(Y,{routerLink:N(x.SEARCH_RESULTS),children:"Search"})})]}),e.jsxs("div",{className:"links-block-item",children:[e.jsx(ve,{children:e.jsx("h2",{className:"title",children:"Topics"})}),e.jsx("div",{className:"link",children:e.jsx(Y,{routerLink:pe(yn.ALL),children:"All Topics"})}),n==null?void 0:n.map(a=>e.jsx("div",{className:"link",children:e.jsx(Y,{routerLink:pe(a.slug),children:a.name})},a.id))]}),e.jsxs("div",{className:"links-block-item",children:[e.jsx(ve,{children:e.jsx("h2",{className:"title",children:"Help"})}),e.jsx("div",{className:"link",children:e.jsx(Y,{routerLink:pe(Z.HOTLINE),children:"Hotline"})}),e.jsx("div",{className:"link",children:e.jsx(Y,{routerLink:pe(Z.CONTACT_US),children:"Contact Us"})})]}),e.jsxs("div",{className:"links-block-item",children:[e.jsx(ve,{children:e.jsx("h2",{className:"title",children:"Legal"})}),e.jsx("div",{className:"link",children:e.jsx(Y,{href:"https://www.aarp.org/about-aarp/terms-of-service/",target:"_blank",children:"Terms"})}),e.jsx("div",{className:"link",children:e.jsx(Y,{href:"https://www.aarp.org/privacy/",target:"_blank",children:"Privacy Notice"})})]})]})]}),e.jsx(oi,{className:"footer-copyright-block-container",children:e.jsx(En,{children:e.jsxs("p",{children:["© ",new Date().getFullYear()," Senior Planet. All rights reserved."]})})})]})]})})}const ua="user-accounts",Cr={finalDetails:null,locationOptions:null,personalProfile:null,preferencesAndGoals:null,redirectUri:null,userAccount:null,userAccountIdentifiers:null},qo=Ce({name:ua,initialState:Cr,reducers:{resetUserAccount:s=>{const{finalDetails:t,locationOptions:n,personalProfile:a,preferencesAndGoals:r,redirectUri:i,userAccount:o,userAccountIdentifiers:c}=Cr;s.finalDetails=t,s.locationOptions=n,s.personalProfile=a,s.preferencesAndGoals=r,s.redirectUri=i,s.userAccount=o,s.userAccountIdentifiers=c},setFinalDetails:(s,t)=>{s.finalDetails=t.payload},setPersonalProfile:(s,t)=>{s.personalProfile=t.payload},setRedirectUri:(s,t)=>{s.redirectUri=t.payload},setPreferencesAndGoals:(s,t)=>{s.preferencesAndGoals=t.payload},setUserAccount:(s,t)=>{s.userAccount=t.payload},setUserAccountIdentifiers:(s,t)=>{s.userAccountIdentifiers=t.payload}},extraReducers:s=>{s.addCase(Oi,_.handleSuccess((t,{payload:{data:{data:n,initializationToken:a}}})=>{t.userAccountIdentifiers={...n.attributes,initializationToken:a}})),s.addCase(Co,_.handleSuccess((t,{payload:{data:n}})=>{t.locationOptions=n.data}))}}),Ss=Ne.selectorForSlice(`root.${ua}`),Re={finalDetails:Ss("finalDetails"),locationOptions:Ss("locationOptions"),personalProfile:Ss("personalProfile"),preferencesAndGoals:Ss("preferencesAndGoals"),redirectUri:Ss("redirectUri"),userAccount:Ss("userAccount"),userAccountIdentifiers:Ss("userAccountIdentifiers")},{resetUserAccount:nh,setFinalDetails:ah,setPersonalProfile:rh,setPreferencesAndGoals:ih,setRedirectUri:oh,setUserAccount:$o,setUserAccountIdentifiers:ch}=qo.actions,lh=qo.reducer;function zo(){const s=document.querySelector("#page-content");s==null||s.scrollToTop(0)}function dh(){var a;const s=(a=window.location.hash)==null?void 0:a.replace(/^#/,"").trim();if(!s)return!1;let t;try{t=decodeURIComponent(s)}catch{return!1}if(t==="page-content")return zo(),!0;const n=document.getElementById(t);return n?(n.scrollIntoView({behavior:"instant",block:"start"}),!0):!1}function Nr(){if(!window.location.hash)return;const s=40,t=50;let n=0;const a=()=>{dh()||(n+=1,n<s&&setTimeout(a,t))};a()}function J({children:s}){var o;const t=U(),n=$e(),a=E(q.userProfile),r=N(x.INTERNAL_TECH_HELP_BOOKING),i=n.pathname===r;return Tl(()=>{if(window.location.hash){Nr();return}zo()},[]),m.useEffect(()=>{n.hash&&Nr()},[n.pathname,n.hash]),!i&&(a!=null&&a.id)&&((o=a.userAccount)==null?void 0:o.hasLoggedIn)===!1?(a.userAccount&&(t($o({cellPhone:a.userAccount.cellPhone,email:a.userAccount.email,firstName:a.userAccount.firstName,lastName:a.userAccount.lastName})),t(ch(a.userAccount))),e.jsx(cs,{to:N(x.SIGN_UP,x.SETUP_PERSONAL_PROFILE)})):e.jsxs(ci,{children:[e.jsx("a",{href:"#page-content",className:"skip-nav-link",children:"Skip to main content"}),e.jsx(zm,{}),e.jsxs(zt,{id:"page-content",children:[e.jsx(du,{children:s}),e.jsx(th,{})]})]})}const ma="home",uh={homePage:null},Go=Ce({name:ma,initialState:uh,reducers:{clearHomePage(s){s.homePage=null}},extraReducers:s=>{s.addCase(qi,_.handleSuccess((t,n)=>{t.homePage=n.payload.data.data.attributes}))}}),mh=Ne.selectorForSlice(`root.${ma}`),hh={homePage:mh("homePage")},{clearHomePage:ph}=Go.actions,fh=Go.reducer,xh={};function Vo(){const{signOut:s}=K(),t=U();return m.useEffect(()=>{t(ph()),s()},[t,s]),null}Vo.propTypes=_t(xh);function gh(){const{width:s,height:t}=Al();return e.jsx(e.Fragment,{children:e.jsx(yl,{colors:qd,height:t,numberOfPieces:600,recycle:!1,width:s})})}function Et(){return e.jsx(Ws,{defer:!1,children:e.jsx("meta",{name:"robots",content:"noindex, nofollow"})})}const jh=0,_r=1,Ch=2,mn=[10,25,50,75];function Nh(){var s;return typeof window>"u"||(s=window.YT)!=null&&s.Player?Promise.resolve():new Promise(t=>{var o,c;const n=window.onYouTubeIframeAPIReady;if(window.onYouTubeIframeAPIReady=()=>{n==null||n(),t()},document.querySelector('script[src*="youtube.com/iframe_api"]')){if((o=window.YT)!=null&&o.Player){t();return}const l=setInterval(()=>{var d;(d=window.YT)!=null&&d.Player&&(clearInterval(l),t())},100);setTimeout(()=>{clearInterval(l),t()},5e3);return}const r=document.createElement("script");r.src="https://www.youtube.com/iframe_api";const i=document.getElementsByTagName("script")[0];(c=i==null?void 0:i.parentNode)==null||c.insertBefore(r,i)})}function _h(s){const[t,n]=s.split(":").map(Number);return`${n/t*100}%`}function bt({allowFullScreen:s,aspectRatio:t="16:9",title:n,videoId:a}){const r=m.useRef(null),i=m.useRef(null),o=m.useRef(!1),c=m.useRef(!1),l=m.useRef(0),d=m.useRef(null),[h,p]=t.split(":").map(Number),f=_h(t),g={"--aspect-ratio":`${h} / ${p}`,"--aspect-ratio-decimal":h/p,"--padding-bottom":f};return m.useEffect(()=>{let j=!0;const b=r.current;if(b)return Nh().then(()=>{var T;if(!j||!((T=window.YT)!=null&&T.Player))return;const P=new window.YT.Player(b,{videoId:a,height:"100%",width:"100%",playerVars:{autoplay:0,enablejsapi:1,origin:window.location.origin,...s!==!1&&{fs:1}},events:{onStateChange(C){const A=C.data;if(A===_r&&!o.current&&(o.current=!0,je("video_start",{videoId:a,videoTitle:n})),A===_r){if(d.current)return;d.current=setInterval(()=>{const y=i.current;if(!(y!=null&&y.getCurrentTime)||!(y!=null&&y.getDuration))return;const k=y.getDuration();if(!k)return;const O=y.getCurrentTime(),B=Math.floor(O/k*100);let ee=l.current;for(;ee<mn.length&&B>=mn[ee];)je("video_progress",{videoId:a,video_percent:mn[ee],videoTitle:n}),ee+=1;l.current=ee},1e3)}A===Ch&&d.current&&(clearInterval(d.current),d.current=null),A===jh&&!c.current&&(c.current=!0,d.current&&(clearInterval(d.current),d.current=null),je("video_complete",{videoId:a,videoTitle:n}))}}});i.current=P}),()=>{var P;j=!1,d.current&&(clearInterval(d.current),d.current=null),(P=i.current)!=null&&P.destroy&&(i.current.destroy(),i.current=null)}},[a,s,n]),m.useEffect(()=>{o.current=!1,c.current=!1,l.current=0},[a]),e.jsx("div",{className:"youtube-viewer",style:g,children:e.jsx("div",{ref:r,className:"youtube-viewer__player","aria-label":n})})}function Bo(s){return Il.sanitize(s,{ADD_TAGS:["iframe"],ADD_ATTR:["src","frameborder","allowfullscreen","width","height","style","title","scrolling","seamless","target"],ALLOWED_URI_REGEXP:/^(?:(?:(?
2:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))/i})}const Sr="bp-suggestions-mention";function v({as:s="div",documentHtml:t}){const n=Bo(t),a=Sh(n),r=s;return e.jsx(r,{className:"rich-text-document",dangerouslySetInnerHTML:{__html:a}})}function Sh(s){if(!(s!=null&&s.includes(Sr)))return s;const t=document.createElement("template");return t.innerHTML=s,t.content.querySelectorAll(`a.${Sr}`).forEach(n=>{const a=document.createElement("span");a.className="mention-pill",a.textContent=n.textContent,n.replaceWith(a)}),t.innerHTML}function Eh(s){return s==null?void 0:String(s).trim()||void 0}function oe({targetId:s}){const t=Eh(s);return t?e.jsx("div",{id:t,className:"flexible-block-jump-target","aria-hidden":"true",tabIndex:-1}):null}function ha({backgroundColor:s,header:t,targetId:n,youtubeVideoId:a}){const[r,i]=m.useState(t||"Video"),[o,c]=m.useState("16:9");m.useEffect(()=>{a&&fetch(`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${a}&format=json`).then(d=>d.ok?d.json():Promise.reject()).then(d=>{i(d.title),d.width&&d.height&&c(`${d.width}:${d.height}`)}).catch(()=>{})},[a]);let l=$("video-wrapper",{"bg-white":s==="White","bg-light-gray":s==="Light Gray","bg-dune":s==="Dune"});return e.jsxs("section",{className:l,children:[e.jsx(oe,{targetId:n}),e.jsxs("div",{className:"video-block-container",children:[e.jsx(bh,{header:t}),e.jsx(bt,{title:r,videoId:a,allowFullScreen:!0,aspectRatio:o})]})]})}function bh({header:s}){return S(s)?null:e.jsx("header",{children:e.jsx(v,{as:"h2",documentHtml:s})})}function X({seo:s,schema:t}){if(S(s))return null;const{title:n}=s,a=Th(s),r=t??s.schema;return e.jsxs(Ws,{defer:!1,children:[e.jsx("title",{children:n}),e.jsx("link",{rel:"canonical",href:a}),e.jsx("meta",{property:"og:url",content:a}),Ah(s),r!=null&&e.jsx("script",{type:"application/ld+json",children:JSON.stringify(typeof r=="string"?JSON.parse(r):r)})]})}function Th(s){const t=(s==null?void 0:s.canonical)||(s==null?void 0:s.ogUrl);if(t)try{return new URL(t,window.location.origin).toString()}catch{return t}const{protocol:n,host:a,pathname:r}=window.location;return`${n}//${a}${r}`}function Ah(s){return Object.entries(s).map(([t,n],a)=>{const r=pu[t];if(!r)return null;const i=n||(r.fallback?s[r.fallback]:null);if(!i)return null;const{key:o,type:c}=r;return e.jsx("meta",{[c]:o,content:i},a)}).filter(Boolean)}const Wo="/assets/senior-planet-community-logo-CfSkM3jN.png",Xt="/assets/senior-planet-logo-WySASFG_.svg",Yo=m.createContext(null);function xe(){const s=m.useContext(Yo);if(s===null)throw new Error("useAnnouncer must be used within an AnnouncerProvider");return s}class ze{constructor({description:t,title:n}){this.description=t,this.ogDescription=t,this.ogTitle=n,this.title=n}}function yh(){const{isAuthenticated:s}=K(),{announcePolite:t}=xe(),n=E(Re.redirectUri),a=E(Re.userAccount);if(m.useEffect(()=>{t(n?"You're all set! Your account has been created. Use the sign-in button to open Senior Planet Community.":"You're all set! Your account has been created successfully. Welcome to Senior Planet!")},[t,n]),m.useEffect(()=>{S(a)||je("account_signup_completed",{signupSource:"client_app"})},[a]),S(a))return e.jsx(cs,{to:N(x.SIGN_UP)});const r=new ze({description:"Congratulations—your Senior Planet account is ready! Discover upcoming classes, inspiring stories, and tools to help you stay connected and engaged.",title:"Welcome to Senior Planet! | Account Created Successfully"});return e.jsxs("div",{className:"creating-account-container",children:[e.jsx(Et,{}),e.jsx(X,{seo:r}),n?e.jsx(F,{src:Wo,alt:"Senior Planet Community logo",className:"creating-account-container__senior-planet-logo"}):e.jsx(F,{src:Xt,alt:"Senior Planet logo",className:"creating-account-container__senior-planet-logo"}),e.jsx("div",{className:"creating-account-container__content",children:e.jsxs("div",{className:"account-creation-complete",children:[e.jsx(ha,{youtubeVideoId:n?tu:su}),e.jsxs("div",{className:"account-creation-complete__message-content",children:[e.jsx("h1",{children:"You're all set!"}),n?e.jsx("p",{children:"Welcome aboard! Your account is all set up and ready. Click the red button below to sign in to Senior Planet Community."}):e.jsx("p",{children:"Welcome aboard! Your account is all set up and ready. Click the button below to start exploring."})]}),e.jsx("div",{className:"account-creation-complete__actions",children:n?e.jsx(L,{fill:"solid",color:"primary",shape:"round",href:n,children:"Sign In to Senior Planet Community"}):e.jsxs(e.Fragment,{children:[!s&&e.jsx(Ks,{fill:"solid"}),e.jsx(L,{fill:"clear",color:"dark",routerLink:N(x.HOME),routerDirection:"root",routerOptions:{replace:!0}
2,children:"Return to seniorplanet.org"})]})})]})}),e.jsx(gh,{})]})}function ce(){const{search:s}=$e();return m.useMemo(()=>new URLSearchParams(s),[s])}const pa="articles",Er={allArticles:null,authors:[],currentArticle:null,requestedArticleSlug:null,relatedArticles:null,relatedOnlineClasses:null,totalArticles:null},Zo=Ce({name:pa,initialState:Er,reducers:{clearCurrentArticle(s){s.currentArticle=null},setRequestedArticleSlug(s,t){s.requestedArticleSlug=t.payload},resetArticles(){return Er},clearArticles(s){s.allArticles=null,s.totalArticles=null}},extraReducers:s=>{s.addCase(ta,_.handleSuccess(()=>{})).addCase(na,_.handleSuccess((t,{payload:{data:{data:n,meta:a}}})=>{t.allArticles=n.map(({attributes:r})=>r),t.totalArticles=Number(a.total)})).addCase(We,_.handleSuccess((t,n)=>{const a=n.payload.data;t.relatedArticles=a.data.map(r=>r.attributes)})).addCase(Ui,_.handleSuccess((t,n)=>{const r=n.payload.data.data.attributes;t.requestedArticleSlug&&r.slug!==t.requestedArticleSlug||(t.currentArticle=r)})).addCase(Fi,_.handleSuccess((t,n)=>{const a=n.payload.data;t.authors=a.data.map(r=>r.attributes)})).addCase(Iu,_.handleSuccess((t,{payload:{data:{data:n,meta:a}}})=>{t.allArticles=n.map(({attributes:r})=>r.data),t.totalArticles=Number(a.total)})).addCase(Zt,_.handleSuccess((t,n)=>{const a=n.payload.data;t.relatedOnlineClasses=a.data.map(r=>r.attributes)}))}}),Os=Ne.selectorForSlice(`root.${pa}`),Ts={allArticles:Os("allArticles"),relatedArticles:Os("relatedArticles"),relatedOnlineClasses:Os("relatedOnlineClasses"),totalArticles:Os("totalArticles"),currentArticle:Os("currentArticle"),authors:Os("authors")},{clearArticles:Ih,clearCurrentArticle:Ph,resetArticles:AC,setRequestedArticleSlug:vh}=Zo.actions,Lh=Zo.reducer;function Ps({HeadingComponent:s,subHeading:t}){return e.jsxs("div",{className:"section-heading",children:[e.jsx(s,{className:"section-heading__heading"}),t&&e.jsx("p",{className:"section-heading__subheading",children:t})]})}function Tt({alt:s,imageSrc:t}){return e.jsx(F,{alt:s,src:t,className:"full-bleed-image"})}function z({withOptionalIndicator:s=!1,style:t}){return e.jsx("hr",{className:$("section-divider",{"with-optional-indicator":s}),style:t})}const Rh="/assets/articles-header-rta8Xkpl.png";function Oh(){return e.jsxs("header",{className:"header-container",children:[e.jsxs("div",{className:"header",children:[e.jsx(wh,{}),e.jsx(Tt,{alt:"Articles header image",imageSrc:Rh})]}),e.jsx(z,{fullWidth:!0})]})}function wh(){return e.jsx("div",{className:"index-heading index-heading-block-container",children:e.jsx(Ps,{HeadingComponent:kh,subHeading:"Explore stories, tips, and insights designed to help older adults stay engaged, informed, and connected. From technology and health to arts and community life, discover resources that inspire learning and spark curiosity."})})}function kh(){return e.jsxs("h1",{children:["Senior Planet ",e.jsx("b",{children:"Articles"})]})}function Jt(s){return s.map(t=>typeof t=="object"?t:{key:t,value:t})}function Cs({isTouched:s,name:t,error:n=""}){return!n||!s?null:e.jsx(Pl,{className:"input-error",color:"danger",id:Kt(t),children:n})}function Mh({name:s,options:t,label:n="",isTouched:a,error:r="",labelComponent:i=null,labelProps:o={},className:c="",...l}){const d=Jt(t);return e.jsxs(e.Fragment,{children:[e.jsxs(vl,{className:$(c,{"ion-invalid":r,"ion-touched":a}),name:s,label:i||n===!1?void 0:n,justify:"start",...l,children:[i&&e.jsx("div",{slot:"label",children:e.jsx(i,{...o,children:n})}),d.map(({key:h,value:p})=>e.jsx(Ll,{value:p,children:h},p))]}),e.jsx(Cs,{isTouched:a,error:r,name:s})]})}const ys=ls()(Mh),Dh=js({query:Q(),author:Q(),topics:Rl().of(Q())});function Uh({initialValues:s,onSubmit:t,authorOptions:n,categoryOptions:a,onClearFilters:r}){return e.jsx(Te,{initialValues:s,validationSchema:Dh,onSubmit:t,validateOnBlur:!1,enableReinitialize:!0,children:e.jsxs(Ae,{className:"search-content-form",noValidate:!0,children:[e.jsx(Qs,{name:"query",placeholder:"Search by keyword...",showClearButton:"focus"}),e.jsx(Hh,{authorOptions:n,categoryOptions:a,onClearFilters:r}),e.jsx(Fh,{authorOptions:n,categoryOptions:a,onClearFilters:r})]})})}function Hh({authorOptions:s,categoryOptions:t,onClearFilters:n}){return e.jsxs("div",{className:"tablet-desktop-content-filter",children:[e.jsx(Qo,{authorOptions:s,categoryOptions:t}),e.jsx(L,{fill:"clear",color:"off-black",onClick:n,children:"Clear all"})]})}function Fh({authorOptions:s,categoryOptions:t,onClearFilters:n}){const[a,r]=m.useState(!1);function i(){r(!a)}return e.jsxs("div",{className:"mobile-content-filter",children:[e.jsxs(L,{expand:"block",fill:"outline",color:"primary",onClick:i,children:[a?"Hide":"Show"," advanced filters"]}),a&&e.jsxs("div",{className:"advanced-criteria-container",children:[e.jsx(Qo,{authorOptions:s,categoryOptions:t}),e.jsx(L,{fill:"clear",color:"off-black",onClick:n,children:"Clear all"})]})]})}function Qo({authorOptions:s,categoryOptions:t}){const{submitForm:n}=He(),a=()=>{n()};return e.jsxs(e.Fragment,{children:[e.jsx(ys,{name:"topics",label:"Topic:",multiple:!0,options:[...t.map(r=>
2({key:r.name,value:r.id}))],placeholder:"All",onChange:a,okText:"Apply"}),e.jsx(ys,{name:"author",label:"Author:",options:[{key:"All",value:""},...s.map(r=>({key:r.name,value:r.id.toString()}))],placeholder:"All",onChange:a,okText:"Apply"})]})}function qh(s){const t=s.get(I.AUTHOR)||"",n=s.get(I.QUERY)||"",a=s.getAll(I.TAG)||[],r=s.getAll(I.TOPIC)||[];return{author:t,query:n,tags:a.map(i=>Number(i)),topics:r.map(i=>Number(i))}}function $h(s){const{author:t,query:n,tags:a,topics:r}=s,i=new URLSearchParams;return S(t)||i.append(I.AUTHOR,t),S(n)||i.append(I.QUERY,n),S(a)||a.forEach(o=>{i.append(I.TAG,o)}),S(r)||r.forEach(o=>{i.append(I.TOPIC,o)}),i.set(I.PAGE,1),i}function zh({topics:s,authors:t}){const n=ce(),a=te(),r=m.useCallback(()=>{a.push(N(x.ARTICLES),"root","replace")},[a]),i=m.useCallback(o=>{var d;const c=(d=o.query)==null?void 0:d.trim();c&&je("global_search",{query:c,search_scope:"articles"});const l=$h(o);a.push(M(N(x.ARTICLES),l))},[a]);return e.jsxs("div",{id:"criteria",className:"index-criteria",children:[e.jsxs("div",{className:"section-heading",children:[e.jsx("h2",{children:"All Articles"}),e.jsx("p",{className:"section-heading__subheading",children:"Explore the wide range of articles and topic types at Senior Planet. Browse by topics or search for your perfect fit."})]}),e.jsx(Uh,{initialValues:qh(n),onClearFilters:r,onSubmit:i,authorOptions:t,categoryOptions:s})]})}function Xs({tags:s,interactive:t=!1}){const[n,a]=m.useState(!1),r=2,i=s.length>r,o=n?s:s.slice(0,r);return e.jsxs("div",{className:"content-tags",children:[o.map(c=>e.jsx(Ol,{className:"content-tag",children:c.name},c.id)),i&&!n&&(t?e.jsx("button",{className:"content-tags-expand",onClick:()=>a(!0),type:"button",children:"..."}):e.jsx("span",{className:"content-tags-expand","aria-hidden":"true",children:"..."})),t&&i&&n&&e.jsx("button",{className:"content-tags-collapse",onClick:()=>a(!1),type:"button",children:"Show less"})]})}function Ko(s){return Oe(s,"LLLL d, yyyy")}const es="/assets/image-placeholder-BudSqcMk.jpg";function As({createdAt:s,editedAt:t,slug:n,featuredImage:a,topics:r,titleHtml:i,excerptHtml:o,authorName:c}){const d=Ko(t||s);return e.jsxs(ke,{className:"content-card",routerLink:N(x.ARTICLES,n),children:[e.jsx("div",{className:"content-image",children:e.jsx(F,{src:(a==null?void 0:a.url)||es,alt:(a==null?void 0:a.altText)||""})}),e.jsxs(we,{children:[e.jsxs("div",{className:"content-header",children:[e.jsx(Xs,{tags:r}),e.jsxs("div",{className:"content-body",children:[e.jsx(v,{as:"h2",documentHtml:i}),e.jsx(v,{as:"p",documentHtml:o})]})]}),e.jsxs("div",{className:"article-card-meta",children:[e.jsx(ve,{color:"medium",className:"article-card-date",children:d}),e.jsxs(ve,{color:"dark",className:"article-card-author",children:["By ",c]})]})]})]})}function vs({currentPage:s,onPageChange:t,totalItems:n,itemsPerPage:a=yi}){const r=Math.ceil(n/a);return e.jsxs("div",{className:"pagination",children:[e.jsx(Bh,{currentPage:s,itemsPerPage:a,totalItems:n}),e.jsx(wl,{breakLabel:"...",containerClassName:"pagination__container",forcePage:s-1,marginPagesDisplayed:Zd,nextLabel:e.jsx(Gh,{}),onPageChange:t,pageCount:r,pageRangeDisplayed:Yd,previousLabel:e.jsx(Vh,{})})]})}function Gh(){return e.jsx("div",{className:"pagination__next-label",children:e.jsx(R,{icon:di})})}function Vh(){return e.jsx("div",{className:"pagination__previous-label",children:e.jsx(R,{icon:li})})}function Bh({currentPage:s,itemsPerPage:t,totalItems:n}){const a=(s-1)*t+1,r=Math.min(a+t-1,n);return e.jsxs("div",{className:"paginator__current-page-and-total",children:[e.jsxs("span",{children:["Showing ",a,"–",r," of"," "]}),e.jsx("span",{children:n})]})}function Wh(s){return s.has(I.AUTHOR)||s.has(I.QUERY)||s.has(I.TOPIC)}function Yh({currentPage:s,onPageChange:t}){const n=ce(),{announcePolite:a}=xe(),r=m.useRef(null),i=E(Ts.allArticles),o=E(Ts.totalArticles);function c(d){const{selected:h}=d,p=h+1;t(p)}const l=Wh(n);return m.useEffect(()=>{i&&i!==r.current&&(r.current=i,l&&(i.length===0?a("No articles found matching your filters"):a(`Showing ${o} ${Is("article",o)}`)))},[i,o,l,a]),de(i)?l?e.jsx("section",{className:"content-index",children:e.jsx("div",{className:"content-index-cards"})}):null:e.jsxs("section",{className:"content-index",children:[i.length>0&&e.jsx("div",{className:"content-index-cards",children:i.map(d=>{const h=d.data?d.data:d;return e.jsx(As,{...h},d.id)})}),i.length===0&&l&&e.jsxs("div",{className:"search-results-empty",children:[e.jsx(R,{icon:Bs,color:"primary",size:"large"}),e.jsxs("div",{className:"text-block",children:[e.jsx("h3",{children:"No results found"}),e.jsx("p",{children:"Try adjusting your search to find what you're looking for"})]})]}),i.length>0&&e.jsx(vs,{currentPage:s,onPageChange:c,totalItems:o})]})}const Zh=8e3;function le(s,t=Zh){const n=!de(s);m.useEffect(()=>{if(n){window.prerenderReady=!0;return}window.prerenderReady=!1;const a=setTimeout(()=>{window.prerenderReady=!0},t);return()=>{clearTimeout(a)}},[n,t])}function Ns(){return m.useCallback((t,n="smooth",a="end")=>{const r=document.querySelector(t);r&&r.scrollIntoView({behavior:n,block:a})},[])}function Qh(){const s=E(q.topics),t=E(Ts.authors),n=te(),a=ce(),r=Ns();le(!0),m.useEffect(()=>{a.size>0&&r("#criteria","instant","start")},[r,a]);const i=new ze({description:"Explore inspiring stories, tech how-tos, and wellness insights for older adults. Stay informed and empowered with Senior Planet's latest articles.",title:"Senior Planet Articles - Tech Tips, Health, and Lifestyle for Older Adults"});function o(c){a.delete(I.PAGE),a.append(I.PAGE,c),n.push(M(N(x.ARTICLES),a))}return e.jsxs("div",{className:"index-wrapper",children:[e.jsx(X,{seo:i}),e.jsx(Oh,{}),e.jsxs("section",{className:"index-block-container",children:[e.jsx(zh,{topics:s,authors:t}),e.jsx(Yh,{currentPage:a.get(I.PAGE)||1,onPageChange:o})]})]})}function Kh({name:s,label:t="",isTouched:n,error:a="",labelComponent:r=null,labelProps:i={},className:o="",...c}){return e.jsx(kl,{className:$(o,{"ion-invalid":a,"ion-touched":n}),name:s,label:r||t===!1?void 0:t,errorText:a,...zn(c,"aria-describedby"),children:r&&e.jsx("div",{slot:"label",children:e.jsx(r,{...i,children:t})})})}const Xo=ls()(Kh),Xh=js({content:Q().required("Comment content is required").max(500,"Comment cannot exceed 500 characters"),authorName:Q().required("Name is required"),authorEmail:Q().email("Invalid email address").required("Email is required"),parent:Ml().integer().nullable()});function Jo({initialValues:s,onSubmit:t,isReply:n=!1}){const a=async(r,{resetForm:i})=>{await t(r),i()};return e.jsx(Te,{initialValues:s,validationSchema:Xh,onSubmit:a,validateOnChange:!1,validateOnBlur:!1,validateOnMount:!1,children:e.jsx(Jh,{isReply:n})})}function Jh({isReply:s}){const{isSubmitting:t,validateField:n,setFieldTouched:a,errors:r,submitCount:i}=He(),{announceAssertive:o}=xe(),c=m.useRef(0);return m.useEffect(()=>{if(i>c.current&&!S(r)){const l=Object.keys(r).length;o(`Form has ${l} ${l===1?"error":"errors"}. Please review and correct.`)}c.current=i},[i,r,o]),e.jsxs(Ae,{noValidate:!0,className:"comment-form",children:[e.jsx("div",{className:"comment-form__field",children:e.jsx(Xo,{name:"content",placeholder:s?"Enter reply":"Enter comment",required:!0,autoGrow:!0,rows:6,label:s?"Reply":"Comment",counter:!0,maxlength:500,labelPlacement:"stacked",counterFormatter:(l,d)=>`${d-l} characters remaining`,onBlur:()=>{a("content",!0),n("content")}})}),e.jsxs("div",{className:"comment-form__row",children:[e.jsx("div",{className:"comment-form__field",children:e.jsx(Ht,{name:"authorName",type:"text",placeholder:"Enter name",required:!0,label:"Name",labelPlacement:"stacked",onBlur:()=>{a("authorName",!0),n("authorName")}})}),e.jsxs("div",{className:"comment-form__field",children:[e.jsx(Ht,{name:"authorEmail",type:"email",placeholder:"Enter email",required:!0,label:"Email",labelPlacement:"stacked",onBlur:()=>{a("authorEmail",!0),n("authorEmail")}}),e.jsx("p",{className:"comment-form__email-note",children:"Your email address will not be published."})]})]}),e.jsx(Dl,{type:"hidden",name:"parent"}),e.jsx(ds,{submitting:t,fill:"solid",color:"primary",children:s?"Post Reply":"Post Comment"}),!s&&e.jsx("div",{className:"comment-form__policy",children:e.jsxs("p",{children:["Senior Planet's comments are open for all readers/sub
2scribers; we love hearing from you! However, some comments are not welcome here as violations of our ",e.jsx("a",{href:"/comment-policy",children:"Comment Policy"}),". If you would like to express a comment about Senior Planet locations or programs, please contact"," ",e.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),". Want to continue the conversation? Start your own discussion on this topic on"," ",e.jsx("a",{href:"https://community.seniorplanet.org/",target:"_blank",rel:"noopener noreferrer",children:"Senior Planet Community"}),"."]})})]})}function us(){const[s]=Ul(),{announcePolite:t,announceAssertive:n}=xe(),a=m.useCallback((l,d,h)=>{s({message:l,color:d,duration:h||1e4,position:"bottom",positionAnchor:Pi})},[s]),r=m.useCallback((l,d)=>{a(l,"success",d),t(l)},[a,t]),i=m.useCallback((l,d=lr)=>{a(l,"danger",d),n(l)},[a,n]),o=m.useCallback((l,d)=>{a(l,"tertiary",d),t(l)},[a,t]),c=m.useCallback((l,d=lr)=>{a(l,"warning",d),n(l)},[a,n]);return{showSuccessToast:r,showErrorToast:i,showInfoToast:o,showWarningToast:c}}function ec(s){var t;return(t=s.errors)==null?void 0:t.map(n=>n.title).join(". ")}
2function ep({name:s}){return e.jsx("div",{className:"user-icon",children:s})}function sc({comment:s,articleId:t}){const n=U(),{showSuccessToast:a,showErrorToast:r}=us(),[i,o]=m.useState(!1),c=Ko(s.date),l=s.replies,d=s.parent||s.id,h=async p=>{try{await n(ta(p,t)),o(!1),a("Thank you! Your comment has been submitted and will appear after approval by moderator.")}catch(f){const g=ec(f)||"Failed to post comment. Please try again.";r(g)}};return e.jsxs("div",{className:"comment",children:[e.jsx(ep,{name:jt(s.authorName).toUpperCase()}),e.jsxs(ke,{children:[e.jsxs(ui,{children:[e.jsx(ve,{className:"comment__author",children:e.jsx("strong",{children:s.authorName})}),e.jsx(ve,{color:"medium",className:"comment__date",children:c})]}),e.jsx(we,{children:e.jsx(v,{as:"div",documentHtml:s.contentHtml})}),e.jsx(L,{onClick:()=>o(!0),fill:"clear",children:"Reply"}),!S(l)&&e.jsx(we,{children:l.map(p=>e.jsx(sc,{comment:p,articleId:t},p.id))}),i&&e.jsx(Jo,{initialValues:{content:"",authorName:"",authorEmail:"",parent:d},isReply:!0,onSubmit:h})]})]})}function sp({article:s}){const t=U(),{showSuccessToast:n,showErrorToast:a}=us(),[r,i]=m.useState(5),o=s.comments,c=o.slice(0,r),l=o.length>r,d=async p=>{try{await t(ta(p,s.id)),n("Thank you! Your comment has been submitted and will appear after approval by moderator.")}catch(f){const g=ec(f)||"Failed to post comment. Please try again.";a(g)}},h=()=>{i(p=>p+5)};return e.jsxs("section",{className:"comments-section",children:[e.jsxs("header",{children:[e.jsx("h2",{children:"Comments"}),e.jsx(Jo,{initialValues:{content:"",authorName:"",authorEmail:"",parent:0},onSubmit:d})]}),!S(o)&&e.jsx(z,{}),e.jsx("div",{className:"comments-list",children:c.map(p=>e.jsx(sc,{comment:p,articleId:s.id},p.id))}),l&&e.jsx("div",{className:"load-more-container",children:e.jsx(L,{fill:"outline",color:"primary",onClick:h,children:"Load more comments"})})]})}const tc=7;function br(s,t,n){return Math.min(Math.max(s,t),n)}function tp(s,t,n=tc){if(s<=0)return[];const a=br(t,0,s-1),r=Math.min(n,s);if(s<=r)return Array.from({length:s},(c,l)=>({index:l,edgeLevel:0}));const i=Math.floor(r/2),o=br(a-i,0,s-r);return Array.from({length:r},(c,l)=>{const d=l===0||l===r-1?2:l===1||l===r-2?1:0;return{index:o+l,edgeLevel:d}})}function is({title:s,description:t,seeAllLink:n,children:a,className:r,innerClassName:i,showNavigation:o=!0,showPagination:c=!0,onSlideChange:l,slidesPerView:d="auto",loop:h=!1,uniqueId:p}){const f=m.useId(),g=p?`${p}-${f}`:f,[j,b]=m.useState(null),[P,T]=m.useState(0),C=m.useMemo(()=>m.Children.count(a),[a]),A=m.useMemo(()=>tp(C,P,tc),[C,P]),y=O=>{const B=h?O.realIndex:O.activeIndex;T(B),l==null||l(O)},k=O=>{if(j){if(h&&typeof j.slideToLoop=="function"){j.slideToLoop(O);return}j.slideTo(O)}};return e.jsx("section",{className:`slider ${r||""}`,children:e.jsxs("div",{className:i||"",children:[e.jsxs("div",{className:"slider__header",children:[e.jsxs("div",{className:"slider__title-section",children:[typeof s=="string"?e.jsx("header",{className:"slider__title",children:e.jsx(v,{documentHtml:s,as:"h2"})}):e.jsx("h2",{className:"slider__title",children:s}),t&&e.jsx(v,{documentHtml:t})]}),e.jsxs("div",{className:"slider__controls",children:[n&&e.jsx(L,{fill:"outline",color:"primary",routerLink:n,className:"slider__see-all",children:"See all"}),o&&e.jsxs("div",{className:"slider__nav-buttons",children:[e.jsx("button",{className:`slider__nav-button slider__nav-button--prev slider__nav-button--prev-${g}`,"aria-label":"Previous slide",children:e.jsx(R,{icon:li})}),e.jsx("button",{className:`slider__nav-button slider__nav-button--next slider__nav-button--next-${g}`,"aria-label":"Next slide",children:e.jsx(R,{icon:di})})]})]})]}),e.jsxs("div",{className:"slider__content",children:[e.jsx(Bn,{modules:[Hl],navigation:{prevEl:`.slider__nav-button--prev-${g}`,nextEl:`.slider__nav-button--next-${g}`},pagination:!1,slidesPerView:d,spaceBetween:30,className:"slider__items",loop:h,onSwiper:b,onSlideChange:y,children:a}),c&&C>1&&e.jsx("div",{className:"slider__pagination","aria-label":"Slider pagination",children:A.map(({index:O,edgeLevel:B})=>e.jsx("button",{type:"button",className:["slider__pagination-dot",O===P?"slider__pagination-dot--active":"",B===2?"slider__pagination-dot--edge-2":"",B===1?"slider__pagination-dot--edge-1":""].filter(
2Boolean).join(" "),"aria-label":`Go to slide ${O+1} of ${C}`,"aria-current":O===P?"true":void 0,onClick:()=>k(O)},`slider-dot-${O}`))})]})]})})}function Js({relatedArticles:s,seeAllRelatedArticlesLink:t}){return S(s)?null:e.jsx("div",{className:"related-articles slider-block-container",children:e.jsx(is,{seeAllLink:t,title:"Related articles",uniqueId:"related-articles",children:s.map(n=>{const a=n.data?n.data:n;return e.jsx(qe,{children:e.jsx(As,{...a})},`related-article-${a.id}`)})})})}function en({trainer:s}){if(S(s))return null;const{nameHtml:t,featuredImage:n,slug:a}=s,r=N(x.TRAINERS,a);return e.jsxs(Qe,{className:"trainer-avatar",lines:"none",children:[n&&e.jsx(Fl,{slot:"start",children:e.jsx(F,{src:n.url,alt:n.altText})}),e.jsxs(Ge,{children:[e.jsx("span",{children:"Trainer:"}),e.jsx("br",{}),e.jsx("span",{children:e.jsx(ql,{to:r,children:e.jsx(v,{as:"b",documentHtml:t})})})]})]})}const np={"classes.dateAndTime":"Date and Time","classes.classDescription":"Class Description","classes.resources":"Resources","classes.downloadHere":"Download here","classes.openResource":"Open resource","classes.location":"Location","classes.dateRangeTo":"to","classes.trainer":"Trainer","classes.otherAvailableTimes":"Other available times","classes.seeAll":"See all","classes.upcomingInPersonClasses":"Upcoming In-Person Classes","classes.shareEvent":"Share Event:","classes.onlineByPhone":"Online/By Phone","classes.register":"Register","classes.registerAndJoin":"Register and Join","classes.joinWaitlist":"Join Waitlist","classes.registeredMessage":"You are registered for this class.","classes.waitlistedMessage":"You are on the waitlist for this class. Someone from Senior Planet will contact you if a spot becomes available.","classes.signUpSuccessful":"Sign Up Successful","classes.registrationSuccessMessage":"You have successfully registered for this class.","classes.waitlistSuccessMessage":"You have successfully joined the waitlist for this class.","classes.viewAllClassesPrompt":`If you'd like to view all your classes, select the "View All My Classes" button below.`,"classes.viewAllMyClasses":"View All My Classes","classes.close":"Close","classes.registerForClass":"Register for a Class","classes.joinWaitlistForClass":"Join Waitlist for a Class","classes.remindMe":"Remind Me","classes.emailReminderSignedUp":"You are signed up for email reminders.","classes.getEmailReminder":"Get Email Reminder","classes.createAccountPrompt":"Create an account and join our vibrant community to get reminders on classes and unlock a more personalized experience.","classes.meetingId":"Meeting ID: {zoomMeetingId}","classes.callInByPhone":"Call-in by phone: {zoomPhoneNumber}","classes.zoomHelp.title":"Need help using Zoom?","classes.zoomHelp.instructionalPdf":"Instructional PDF","classes.zoomHelp.techTipVideo":"Tech Tip Video","classes.zoomHelp.hotlineMessage":"Questions about this program? Need help joining us online? Call the toll-free Senior Planet Hotline at {phoneNumber}.","classes.inPersonHelp.hotlineMessage":"Questions about this program? Call the toll-free Senior Planet Hotline at {phoneNumber}.","classes.frequency.daily":"Daily","classes.frequency.monthly":"Monthly","classes.frequency.yearly":"Yearly","classes.frequency.eachMonth":"{ordinalDays} {weekdays} each month","classes.frequency.ofEachMonth":"{ordinalDays} of each month","calendar.addToGoogleCalendar":"Add to Google Calendar","calendar.addToAppleCalendar":"Add to Apple Calendar","calendar.addToOutlookCalendar":"Add to Outlook Calendar","calendar.addToOutlookWebCalendar":"Add to Outlook Web Calendar","location.backToMainPage":"Back to main page","location.titleClasses":"{title} <b>Classes</b>","location.viewClassSchedule":"View Class Schedule","location.aboutUs":"About Us","location.freeInPersonClasses":"Free In-Person Classes","location.aboutTheProgram":"About the <b>program</b>","location.hostedIn":"Hosted in <b>{centerName}</b>","location.learnMore":"Learn More","location.allClasses":"All Classes","location.exploreClasses":"Explore the wide range of classes at our {title} location. Browse by topic, date, and time of day to find the perfect fit for you.","location.meetTheStaff":"Meet the <b>staff</b>","partnerLocationsMap.pageTitle":"Find a Senior Planet Licensed Site - Senior Planet from AARP","partnerLocationsMap.pageHeading":"Find a Senior Planet Licensed Site","partnerLocationsMap.seoDescription":"Find Senior Planet licensed partner sites on a map, search by zip code to view sites within 50 miles, and get directions.","partnerLocationsMap.searchLabel":"Zip code","partnerLocationsMap.searchPlaceholder":"Enter a 5-digit zip code","partnerLocationsMap.searchButton":"Search","partnerLocationsMap.zipRequired":"Zip code is required","partnerLocationsMap.zipInvali
2d":"Enter a valid 5-digit zip code","partnerLocationsMap.emptyStateHeading":"Find a Senior Planet Licensed Site","partnerLocationsMap.emptyStateBody":"These locations are part of our <licensingLink>licensing program</licensingLink>. Contact these sites directly for class details. To find classes at Senior Planet centers, visit our <centersLink>locations page</centersLink>.","partnerLocationsMap.allLocationsHint":"Showing all {count} partner locations. Enter your zip code to view sites within 50 miles.","partnerLocationsMap.allLocationsAnnounce":"Showing all {count} partner locations.","partnerLocationsMap.noResultsHeading":"No partner sites found","partnerLocationsMap.noResultsBody":"No partner sites found near {zip}. Try another zip code.","partnerLocationsMap.noResultsAnnounce":"No partner sites found near {zip}","partnerLocationsMap.resultsHeading":"Partner locations","partnerLocationsMap.resultCount":"{count, plural, one {# partner location found near {zip}} other {# partner locations found near {zip}}}","partnerLocationsMap.getDirections":"Get Directions","partnerLocationsMap.visitWebsite":"Visit website","partnerLocationsMap.listTab":"List","partnerLocationsMap.mapTab":"Map","partnerLocationsMap.loading":"Loading locations...","partnerLocationsMap.mapUnavailable":"The map is currently unavailable."},ap={"classes.dateAndTime":"Fecha y hora","classes.classDescription":"Descripción de la clase","classes.resources":"Recursos","classes.downloadHere":"Download here","classes.openResource":"Abrir recurso","classes.location":"Ubicación","classes.dateRangeTo":"a","classes.trainer":"Instructor / Instru
2ctora","classes.otherAvailableTimes":"Otros horarios disponibles","classes.seeAll":"Ver todos","classes.upcomingInPersonClasses":"Upcoming In-Person Classes","classes.shareEvent":"Compartir evento:","classes.onlineByPhone":"En línea/Por teléfono","classes.register":"Registrarse","classes.registerAndJoin":"Register and Join","classes.joinWaitlist":"Join Waitlist","classes.registeredMessage":"You are registered for this class.","classes.waitlistedMessage":"You are on the waitlist for this class. Someone from Senior Planet will contact you if a spot becomes available.","classes.signUpSuccessful":"Sign Up Successful","classes.registrationSuccessMessage":"You have successfully registered for this class.","classes.waitlistSuccessMessage":"You have successfully joined the waitlist for this class.","classes.viewAllClassesPrompt":`If you'd like to view all your classes, select the "View All My Classes" button below.`,"classes.viewAllMyClasses":"View All My Classes","classes.close":"Close","classes.registerForClass":"Register for a Class","classes.joinWaitlistForClass":"Join Waitlist for a Class","classes.remindMe":"Recuérdame","classes.emailReminderSignedUp":"You are signed up for email reminders.","classes.getEmailReminder":"Recibir recordatorio por correo electrónico","classes.createAccountPrompt":"Create an account and join our vibrant community to get reminders on classes and unlock a more personalized experience.","classes.meetingId":"ID de la reunión: {zoomMeetingId}","classes.callInByPhone":"O únase a la reunión de Zoom por teléfono: {zoomPhoneNumber}","classes.zoomHelp.title":"¿Necesita ayuda para unirse a Zoom?","classes.zoomHelp.instructionalPdf":"Folleto de instrucciones","classes.zoomHelp.techTipVideo":"Video","classes.zoomHelp.hotlineMessage":"¿Tiene preguntas sobre este programa? ¿Necesita ayuda para unirse a un programa en línea? Llame a la línea directa gratuita de Senior Planet al {phoneNumber}.","classes.inPersonHelp.hotlineMessage":"¿Tiene preguntas sobre este programa? Llame a la línea directa gratuita de Senior Planet al {phoneNumber}.","classes.frequency.daily":"Daily","classes.frequency.monthly":"Monthly","classes.frequency.yearly":"Yearly","classes.frequency.eachMonth":"{ordinalDays} {weekdays} each month","classes.frequency.ofEachMonth":"{ordinalDays} of each month","calendar.addToGoogleCalendar":"Agregar al calendario de Google","calendar.addToAppleCalendar":"Agregar al calendario de Apple","calendar.addToOutlookCalendar":"Agregar al calendario de Outlook","calendar.addToOutlookWebCalendar":"Agregar al calendario de Outlook Web","location.backToMainPage":"Volver a la página principal","location.titleClasses":"<b>Clases</b> en {title}","location.viewClassSchedule":"Ver horario de clases","location.aboutUs":"Sobre nosotros","location.freeInPersonClasses":"Clases presenciales gratuitas","location.aboutTheProgram":"Sobre el <b>programa</b>","location.hostedIn":"Programadas en <b>{centerName}</b>","location.learnMore":"Más información","location.allClasses":"Todas las clases","location.exploreClasses":"Explore la variedad de clases en nuestro centro de {title}. Busque por tema, fecha y hora para encontrar la opción perfecta para usted.","location.meetTheStaff":"Conozca al <b>personal</b>"},rp={"classes.dateAndTime":"日期 & 時間","classes.classDescription":"課程描述","classes.resources":"資源","classes.downloadHere":"Download here","classes.openResource":"打開資源","classes.location":"Location","classes.dateRangeTo":"to","classes.trainer":"培訓人員","classes.otherAvailableTimes":"Other available times","classes.seeAll":"See all","classes.upcomingInPersonClasses":"Upcoming In-Person Classes","classes.shareEvent":"分享此活動:","classes.onlineByPhone":"線上課程 / 電話參與","classes.register":"Register","classes.registerAndJoin":"Register and Join","classes.joinWaitlist":"Join Waitlist","classes.registeredMessage":"You are registered for this class.","classes.waitlistedMessage":"You are on the waitlist for this class. Someone from Senior Planet will contact you if a spot becomes available.","classes.signUpSuccessful":"Sign Up Successful","classes.registrationSuccessMessage":"You have successfully registered for this class.","classes.waitlistSuccessMessage":"You have successfully joined the waitlist for this class.","classes.viewAllClassesPrompt":`If you'd like to view all your classes, select the "View All My Classes" button below.`,"classes.viewAllMyClasse
2s":"View All My Classes","classes.close":"Close","classes.registerForClass":"Register for a Class","classes.joinWaitlistForClass":"Join Waitlist for a Class","classes.remindMe":"Remind Me","classes.emailReminderSignedUp":"You are signed up for email reminders.","classes.getEmailReminder":"Get Email Reminder","classes.createAccountPrompt":"Create an account and join our vibrant community to get reminders on classes and unlock a more personalized experience.","classes.meetingId":"會議號: {zoomMeetingId}","classes.callInByPhone":"或者使用電話進入 Zoom: {zoomPhoneNumber}","classes.zoomHelp.title":"Need help using Zoom?","classes.zoomHelp.instructionalPdf":"Instructional PDF","classes.zoomHelp.techTipVideo":"Tech Tip Video","classes.zoomHelp.hotlineMessage":"關於課程有任何疑問?參加我們的網上課程過程中需要幫助?請撥打免費 Senior Planet 科技熱線:{phoneNumber}。","classes.inPersonHelp.hotlineMessage":"關於課程有任何疑問?請撥打免費 Senior Planet 科技熱線:{phoneNumber}。","classes.frequency.daily":"Daily","classes.frequency.monthly":"Monthly","classes.frequency.yearly":"Yearly","classes.frequency.eachMonth":"{ordinalDays} {weekdays} each month","classes.frequency.ofEachMonth":"{ordinalDays} of each month","calendar.addToGoogleCalendar":"加入谷歌日曆","calendar.addToAppleCalendar":"加入蘋果日曆","calendar.addToOutlookCalendar":"Add to Outlook Calendar","calendar.addToOutlookWebCalendar":"Add to Outlook Web Calendar"},fe={ENGLISH:"en",SPANISH:"es",CHINESE:"zh"},Tr={[fe.SPANISH]:"en-espanol",[fe.CHINESE]:"chinese"},ip={[fe.SPANISH]:663,[fe.CHINESE]:750},Ar={[fe.ENGLISH]:np,[fe.SPANISH]:ap,[fe.CHINESE]:rp};function nc(s=[]){if(!s||!Array.isArray(s))return fe.ENGLISH;const t=s.map(n=>n.slug);return t.includes(Tr[fe.SPANISH])?fe.SPANISH:t.includes(Tr[fe.CHINESE])?fe.CHINESE:fe.ENGLISH}function fa(s){return Ar[s]||Ar[fe.ENGLISH]}function At({children:s,classDetail:t}){const n=(t==null?void 0:t.tags)||[],a=nc(n),r=fa(a);return e.jsx(Wn,{locale:a,messages:r,defaultLocale:fe.ENGLISH,children:s})}function xa({featuredImage:s}){if(!s)return null;const{url:t,alt:n,altText:a}=s;return e.jsx("div",{className:"content-image",children:e.jsx(F,{src:t,alt:n||a})})}function yr(s){const t=Number(s);if(t<0)return"last";let n="th";return t%10==1&&t%100!=11?n="st":t%10==2&&t%100!=12?n="nd":t%10==3&&t%100!=13&&(n="rd"),`${t}${n}`}const Ir=Intl.DateTimeFormat().resolvedOptions().timeZone;function sn(s){const{contentType:t,venue:n}=s;return t===V.ONLINE_CLASS?Ir:$l.lookup(n==null?void 0:n.zip)??Ir}function ga(s,t){var n;try{return(n=new Intl.DateTimeFormat("en-US",{timeZoneName:"short",timeZone:t}).formatToParts(s).find(a=>a.type==="timeZoneName"))==null?void 0:n.value}catch{return""}}function ac(s){return s&&s.charAt(0).toUpperCase()+s.slice(1)}function Lt(s,t){if(!s||s.length===0)return"";if(s.length===1)return s[0];const n=t==="es"?"y":"&";return s.length===2?`${s[0]} ${n} ${s[1]}`:`${s.slice(0,-1).join(", ")}, ${n} ${s[s.length-1]}`}function et({classDetail:s}){const t=Pe(),{contentType:n,venue:a}=s,r=n===V.MULTI_WEEK_COURSE,o=n===V.ONLINE_CLASS?t.formatMessage({id:"classes.onlineByPhone"}):a==null?void 0:a.venue;return e.jsxs("div",{className:"meeting-date-time",children:[r?e.jsx(cp,{classDetail:s}):e.jsx(op,{classDetail:s}),e.jsx(ja,{children:"·"}),e.jsx("span",{children:o})]})}function ja({children:s}){return e.jsx("span",{"aria-hidden":"true",className:"separator",children:s})}function op({classDetail:s}){const t=Pe(),{classStart:n}=s,a=Ie(n),r=sn(s),i=new Fs(a.getTime(),r),o=ga(a,r),c=ac(t.formatDate(a,{weekday:"long",month:"long",day:"numeric",timeZone:r})),l=Oe(i,"h:mm a");return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"icon-and-text",children:[e.jsx(R,{icon:Gt,size:"small",color:"primary"}),e.jsx("span",{children:c})]}),e.jsx(ja,{children:"·"}),e.jsxs("div",{className:"icon-and-text",children:[e.jsx(R,{icon:Yn,size:"small",color:"primary"}),e.jsxs("span",{children:[l," ",o]})]})]})}function cp({classDetail:s}){const t=Pe(),{classStart:n,classEnd:a,duration:r}=s,i=Ie(n),o=Ie(a),c=zl(i,r),l=sn(s),d=ga(i,l),h=lp({classDetail:s}),p=t.formatMessage({id:"classes.dateRangeTo"}),f=t.formatDate(i,{month:"long",day:"numeric",year:"numeric",timeZone:l}),g=t.formatDate(o,{month:"long",day:"numeric",year:"numeric",timeZone:l}),j=new Fs(i.getTime(),l),b=new Fs(c.getTime(),l),P=Oe(j,"h:mm a"),T=Oe(b,"h:mm a");return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"icon-and-text",children:[e.jsx(R,{icon:Gt,size:"small",color:"primary"}),e.jsxs("span",{children:[f," ",p," ",g]})]}),e.jsx(ja,{children:"·"}),e.jsxs("div",{className:"icon-and-text",children:[e.jsx(R,{icon:Yn,size:"small",color:"primary"}),e.jsxs("span",{children:[h,", ",P," - ",T," ",d]})]})]})}function lp({classDetail:s}){const t=Pe(),{locale:n}=t,{frequency:a}=s,r=i=>{const o=uu[i];return ac(t.formatDate(o,{weekday:"long"}))};switch(a){case vt.DAILY:return t.formatMessage({id:"classes.frequency.daily"});case vt.WEEKLY:{const{weekdays:i}=s,o=i.map(r);return Lt(o,n)}case vt.MONTHLY:{const{monthlyBy:i}=s;if(i===ur.BY_SET_POSITION){const{bysetpos:o,byweekday:c}=s,l=o.map(h=>yr(h)),d=c.map(r);return t.formatMessage({id:"classes.frequency.eachMonth"},{ordinalDays:Lt(l,n),weekdays:Lt(d,n)})}if(i===ur.BY_MONTH_DAYS){const{monthdays:o}
2=s,c=o.map(l=>yr(l));return t.formatMessage({id:"classes.frequency.ofEachMonth"},{ordinalDays:Lt(c,n)})}return t.formatMessage({id:"classes.frequency.monthly"})}case vt.YEARLY:return t.formatMessage({id:"classes.frequency.yearly"});default:throw new Error(`Unknown frequency: ${a} found for course ${s.title}`)}}function Pr(s){if(S(s))return"";const t=mi(ts(s));return Zn(t).replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+|-+$/g,"")}function Ls(s){const{id:t,contentType:n,slug:a,titleHtml:r}=s;if(n===V.ONLINE_CLASS){const d=Pr(r);return N(x.ONLINE_CLASSES,d,t)}const{location:i}=s,{slug:o}=i,c=N(x.LOCATIONS,o);if(n===V.MULTI_WEEK_COURSE)return N(c,x.MULTI_WEEK_COURSES,a,t);const l=Pr(r);return N(c,x.IN_PERSON_CLASSES,l,t)}function Ze({id:s,contentType:t,slug:n,location:a,excerptHtml:r,featuredImage:i,titleHtml:o,trainer:c,classStart:l,classEnd:d,duration:h,frequency:p,weekdays:f,monthlyBy:g,bysetpos:j,byweekday:b,monthdays:P,title:T,tags:C,venue:A}){const y={id:s,contentType:t,slug:n,location:a,excerptHtml:r,featuredImage:i,titleHtml:o,trainer:c,classStart:l,classEnd:d,duration:h,frequency:p,weekdays:f,monthlyBy:g,bysetpos:j,byweekday:b,monthdays:P,title:T,tags:C,venue:A},k=Ls(y);return e.jsx(At,{classDetail:y,children:e.jsxs(ke,{className:"content-card",routerLink:k,children:[e.jsx(xa,{featuredImage:i}),e.jsxs(we,{children:[e.jsxs("div",{className:"content-header",children:[e.jsx(et,{classDetail:y}),e.jsxs("div",{className:"content-body",children:[e.jsx(v,{as:"h2",documentHtml:o}),e.jsx(v,{as:"p",documentHtml:r})]})]}),e.jsx(en,{trainer:c})]})]})})}function yt({relatedClasses:s,seeAllRelatedClassesLink:t,title:n="Related classes"}){if(S(s))return null;const a=t?N(t):null;return e.jsx("section",{className:"related-classes slider-block-container",children:e.jsx(is,{seeAllLink:a,title:n,uniqueId:"related-classes",children:s.map(r=>{const i=r.data?r.data:r;return e.jsx(qe,{children:e.jsx(Ze,{...i})},`related-class-${i.id}`)})})})}function ne({message:s,spinner:t="crescent"}){return e.jsxs("div",{className:"loading-modal",children:[e.jsx(Je,{name:t}),s&&e.jsx("p",{children:s})]})}function dp({subject:s}){let n=`mailto:?body=${encodeURIComponent(`Hello.
3
4Check out this Senior Planet content I thought you might like: ${window.location.href}`)}`;if(s){const a=encodeURIComponent(s);n+=`&subject=${a}`}return e.jsxs(L,{fill:"outline",color:"primary",href:n,size:"small",children:[e.jsx(R,{icon:Gl,size:"small",slot:"start"}),"Email"]})}function up(){return e.jsx(L,{children:e.jsx(R,{slot:"icon-only",icon:Vl})})}const mp="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1089_573)'%3e%3cpath%20d='M32%2016C32%207.16352%2024.8365%200%2016%200C7.16352%200%200%207.16352%200%2016C0%2023.5034%205.16608%2029.7997%2012.135%2031.529V20.8896H8.83584V16H12.135V13.8931C12.135%208.44736%2014.5997%205.9232%2019.9462%205.9232C20.96%205.9232%2022.7091%206.12224%2023.4246%206.32064V10.7526C23.047%2010.713%2022.391%2010.6931%2021.5763%2010.6931C18.953%2010.6931%2017.9392%2011.687%2017.9392%2014.2707V16H23.1654L22.2675%2020.8896H17.9392V31.8829C25.8618%2030.9261%2032.0006%2024.1805%2032.0006%2016H32Z'%20fill='%230866FF'/%3e%3cpath%20d='M22.2666%2020.8902L23.1646%2016.0006H17.9383V14.2713C17.9383%2011.6877%2018.9521%2010.6937%2021.5754%2010.6937C22.3902%2010.6937%2023.0462%2010.7136%2023.4238%2010.7533V6.32127C22.7082%206.12223%2020.9591%205.92383%2019.9454%205.92383C14.5988%205.92383%2012.1342%208.44799%2012.1342%2013.8937V16.0006H8.83496V20.8902H12.1342V31.5296C13.3719%2031.8368%2014.6666%2032.0006%2015.9991%2032.0006C16.6551%2032.0006%2017.3022%2031.9603%2017.9377%2031.8835V20.8902H22.266H22.2666Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1089_573'%3e%3crect%20width='32'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function hp(){const s=()=>{const t=encodeURIComponent(window.location.href);window.open(`https://www.facebook.com/sharer/sharer.php?u=${t}`,"_blank")};return e.jsx(L,{className:"share-button",fill:"clear",size:"small",onClick:s,children:e.jsx(R,{slot:"icon-only",icon:mp})})}const pp="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M24.4347%202.53906H28.9327L19.106%2013.7704L30.6663%2029.0537H21.6147L14.5251%2019.7844L6.41294%2029.0537H1.91225L12.4229%2017.0405L1.33301%202.53906H10.6145L17.0229%2011.0115L24.4347%202.53906ZM22.8561%2026.3614H25.3485L9.2602%205.08991H6.58562L22.8561%2026.3614Z'%20fill='black'/%3e%3c/svg%3e";function fp(){const s=()=>{const t=encodeURIComponent(window.location.href),n=encodeURIComponent("Check out this content on Senior Planet!");window.open(`https://x.com/intent/tweet?url=${t}&text=${n}`,"_blank","noopener,noreferrer")};return e.jsx(L,{className:"share-button",fill:"clear",size:"small",onClick:s,children:e.jsx(R,{slot:"icon-only",icon:pp})})}function Ve({contentTitle:s,title:t="Share:"}){return e.jsxs("div",{className:"share-content",children:[e.jsx("p",{className:"share-content__title",children:t}),e.jsx(xp,{contentTitle:s})]})}function xp({contentTitle:s}){const t=bn("hybrid");return e.jsx("div",{className:"share-content__buttons",children:t?e.jsx(up,{}):e.jsxs(e.Fragment,{children:[e.jsx(hp,{}),e.jsx(fp,{}),e.jsx(dp,{subject:s})]})})}function tn({...s}){return e.jsx(L,{color:"primary",fill:"solid",routerLink:N(x.SIGN_UP),...s,children:"Create Free Account"})}function gp(s,t){return!Array.isArray(s)||s.length===0?!1:s.some(n=>String(n)===String(t))}function Xe({contentType:s,contentId:t}){const[n,a]=m.useState(!1),[r,i]=m.useState(!1),o=m.useRef(null),c=U(),{getToken:l,isAuthenticated:d}=K(),{showErrorToast:h}=us(),{announcePolite:p}=xe(),f=E(q.userProfile),g=(()=>
4{if(!f)return!1;const b=An[s];if(!b)return!1;const P=f[b];return P?gp(P,t):!1})();m.useEffect(()=>{o.current!==null&&o.current!==g&&p(g?"Content saved to your dashboard":"Content removed from your dashboard"),o.current=g},[g,p]);const j=async()=>{if(!d){i(!0);return}a(!0);try{const b=await l();g?await c(Ao(s,t,b)):await c(To(s,t,b))}catch{h("There was an issue. Please try again later.")}finally{a(!1)}};return e.jsxs(e.Fragment,{children:[g?e.jsxs("div",{className:"saved-to-profile",children:[e.jsxs("div",{className:"text-block",children:[e.jsx(R,{icon:Tn,size:"large",color:"green"}),e.jsx("p",{children:"Saved to your dashboard!"})]}),e.jsx(L,{fill:"outline",color:"dark",size:"small",onClick:j,disabled:n,children:n?"Removing...":"Unsave"})]}):e.jsx(L,{fill:"solid",color:"primary",onClick:j,disabled:n,children:n?"Saving...":"Save"}),e.jsx(jp,{isOpen:r,onClose:()=>i(!1)})]})}function jp({isOpen:s,onClose:t}){return e.jsxs(os,{className:$("modal","save-to-profile-modal"),isOpen:s,onDidDismiss:t,children:[e.jsxs("header",{children:[e.jsx("h2",{children:"Save to Profile"}),e.jsx(Vs,{slot:"end",children:e.jsx(L,{fill:"clear",size:"large",onClick:t,iconOnly:!0,"aria-label":"Close",children:e.jsx(R,{icon:Vt,slot:"icon-only"})})})]}),e.jsx("div",{className:"modal__content",children:e.jsxs("div",{className:"save-to-profile-modal__content",children:[e.jsx("p",{children:"Create an account or login to your existing account to save content to your profile, to join our vibrant community, and to unlock a more personalized experience."}),e.jsx(tn,{}),e.jsx(z,{withOptionalIndicator:!0}),e.jsx(Ks,{onAction:t})]})})]})}function xs(s){if(S(s))return"";const t=mi(ts(s));return Cp(t)}function Cp(s){return s.replace(/[\u2018\u2019]/g,"'").replace(/[\u201C\u201D]/g,'"').replace(/\u2013|\u2014/g,"-").replace(/\u2026/g,"...").replace(/\u00A0/g," ")}function rc(){const{isAuthenticated:s}=K();return s?null:e.jsxs("div",{className:"account-signup",children:[e.jsx(da,{}),e.jsxs("div",{className:"account-signup__content",children:[e.jsxs("p",{className:"title",children:[e.jsx("b",{children:"Interested in personalized content?"})," Sign up for free"]}),e.jsx("p",{className:"description",children:"Create an account and join our vibrant community to get reminders on classes and unlock a more personalized experience."}),e.jsx(tn,{fill:"outline",color:"primary"})]})]})}function ms({tags:s=[],topics:t=[]}){const n=new URLSearchParams;return S(s)||s.forEach(a=>{n.append(I.TAG,a)}),S(t)||t.forEach(a=>{n.append(I.TOPIC,a)}),n}function Se({status:s,id:t}){return null}function Np(){const{articleId:s}=_e(),t=E(Ts.currentArticle),n=E(Ts.relatedArticles),a=E(Ts.relatedOnlineClasses),r=U();le(t);const i=m.useCallback(async()=>{if(S(s))return;r(vh(s)),r(Ph());const{data:f}=await r(Ui(s)),{id:g,topics:j}=f.attributes;S(j)||(r(We(g,ye(j,"id"))),r(Zt(null,ye(j,"id"))))},[r,s]);if(ue(()=>{i()},[i]),!t)return e.jsx(ne,{});const{topics:o}=t,c=ye(o,"id"),l=ms({topics:c}),d=M(N(x.ARTICLES),l),h=xs(t.titleHtml),p=M(N(x.ONLINE_CLASSES),l);return e.jsxs(e.Fragment,{children:[e.jsx(X,{seo:t.seo}),e.jsx(Se,{status:t.status,id:t.id}),e.jsxs("article",{className:"show-block-container",children:[e.jsxs("header",{className:"show-header",children:[t.topics&&t.topics.length>0&&e.jsx(Xs,{tags:t.topics}),e.jsx(v,{as:"h1",documentHtml:t.titleHtml}),e.jsx(z,{})]}),e.jsxs("div",{className:"show-content",children:[e.jsxs("div",{className:"featured-image-and-description",children:[t.featuredImage&&e.jsx("div",{className:"show-featured-image",children:e.jsx(Tt,{imageSrc:t.featuredImage.url,alt:t.featuredImage.alt})}),e.jsxs("div",{className:"show-sidebar",children:[e.jsx(Xe,{contentType:"article",contentId:t.id}),e.jsx(z,{}),e.jsxs("div",{className:"meta-info",children:[e.jsx("p",{className:"meta-info-date",children:Oe(Ie(t.createdAt),"MMMM d, yyyy")}),e.jsxs("p",{className:"meta-info-author",children:["By ",t.authorName]})]}),e.jsx(z,{}),e.jsx(Ve,{contentTitle:h})]}),e.jsx("div",{className:"rich-text",children:e.jsx(v,{as:"div",documentHtml:t.contentHtml})}),e.jsx(rc,{}),e.jsx(z,{}),e.jsx(sp,{article:t})]}),e.jsxs("aside",{className:"show-sidebar",children:[e.jsx(Xe,{contentType:"article",contentId:t.id}),e.jsx(z,{}),e.jsxs("div",{className:"meta-info",children:[e.jsx("p",{className:"meta-info-date",children:Oe(Ie(t.createdAt),"MMMM d, yyyy")}),e.jsxs("p",{className:"meta-info-author",children:["By ",t.authorName]})]}),e.jsx(z,{}),e.jsx(Ve,{contentTitle:h})]})]})]}),e.jsx("section",{className:"slider-wrapper bg-white",children:e.jsx(Js,{relatedArticles:n,seeAllRelatedArticlesLink:d})}),e.jsx(yt,{relatedClasses:a,seeAllRelatedClassesLink:p})]})}function _p({queryParams:s}){const t=s.get(I.AUTHOR)||"",n=s.get(I.QUERY)||"",a=s.get(I.PAGE)||1,r=s.getAll(I.TAG)||[],i=s.getAll(I.TOPIC)||[],o=new URLSearchParams;return o.set(w.CONTENT_TYPE,V.ARTICLE),o.set(w.PAGE,a),S(t)||o.set(w.AUTHOR,t),S(n)||o.append(w.QUERY,n),S(r)||r.forEach(c=>{o.append(w.TAGS,c)}
4),S(i)||i.forEach(c=>{o.append(w.TOPICS,c)}),o}function Sp({children:s}){const t=U(),n=ce(),a=m.useRef(null),r=E(Ts.allArticles),i=Wt(location.pathname)===N(x.ARTICLES);ue(()=>{t(Fi())},[t]);const o=m.useCallback(()=>{t(Ih());const c=_p({queryParams:n});t(na(c))},[t,n]);return m.useEffect(()=>{var h;if(!i)return;const c=n.toString(),l=(h=a.current)==null?void 0:h.toString();c!==l&&(o(),a.current=n)},[n,i,o]),de(r)?e.jsx(ne,{message:"Loading articles..."}):s}function hn({children:s}){const{isAuthenticated:t,isLoading:n,login:a}=K();return m.useEffect(()=>{!n&&!t&&a({returnTo:N(x.HOME)})},[n,t,a]),e.jsxs(e.Fragment,{children:[e.jsx(Ws,{defer:!1,children:e.jsx("meta",{name:"robots",content:"noindex, nofollow"})}),n&&e.jsx(ne,{}),t&&s]})}function he({children:s,name:t,label:n,optional:a=!1,required:r=!1,...i}){const o=`${t}-input`,c=`${t}-label`;return e.jsxs("div",{className:"stacked-label-input",children:[e.jsxs("label",{className:"stacked-label-input__label",id:c,children:[n,r&&e.jsx("span",{className:"stacked-label-input__required","aria-hidden":"true",children:" *"}),a&&e.jsx("span",{className:"stacked-label-input__optional",children:" - Optional"})]}),e.jsx(Ht,{className:"stacked-label-input__input",id:o,inputId:o,"aria-labelledby":c,label:!1,name:t,...i,children:s})]})}function Ep({children:s,name:t,label:n,optional:a=!1,required:r=!1,...i}){const o=`${t}-textarea`,c=`${t}-label`;return e.jsxs("div",{className:"stacked-label-textarea",children:[e.jsxs("label",{className:"stacked-label-textarea__label",id:c,children:[n,r&&e.jsx("span",{className:"stacked-label-textarea__required","aria-hidden":"true",children:" *"}),a&&e.jsx("span",{className:"stacked-label-textarea__optional",children:" - Optional"})]}),e.jsx(Xo,{className:"stacked-label-textarea__textarea",id:o,inputId:o,"aria-labelledby":c,label:!1,name:t,...i,children:s})]})}function bp({name:s,options:t,isTouched:n,onIonChange:a,onIonBlur:r,onIonInput:i,value:o=[],label:c="",error:l="",labelProps:d={},checkboxInputProps:h={},fieldsetClassName:p="",optional:f=!1,required:g=!1,...j}){const b=Jt(t),P=T=>function(C){const y=C.detail.checked?hi([T.value],o):pi([T.value],o);return a(y)};return e.jsxs(e.Fragment,{children:[e.jsxs("fieldset",{className:$("checkbox-group",p),...j,children:[c&&e.jsxs("legend",{...d,children:[c,f&&e.jsx("span",{className:"checkbox-group__optional",children:" - Optional"}),g&&e.jsx("span",{className:"checkbox-group__required","aria-hidden":"true",children:" *"})]}),b.map(T=>e.jsx(Qn,{name:`${s}.${T.value}`,checked:o.includes(T.value),onIonChange:P(T),onIonBlur:r,onIonInput:i,...h,children:T.key},T.value))]}),e.jsx(Cs,{isTouched:n,error:l,name:s})]})}const nn=ls()(bp);function Tp({name:s,options:t,label:n="",isTouched:a,error:r="",labelComponent:i=Ge,labelProps:o={},radioInputProps:c={},required:l=!1,...d}){const h=n&&!d["aria-label"]?`label-${s}`:void 0,p=Jt(t);return e.jsxs(e.Fragment,{children:[e.jsxs(fi,{name:s,"aria-labelledby":h,...d,children:[n&&e.jsx("div",{children:e.jsxs(i,{id:h,...o,children:[n,l&&e.jsx("span",{className:"radio-group__required","aria-hidden":"true",children:" *"})]})}),p.map(({key:f,value:g})=>e.jsx(xi,{value:g,...c,children:f},g))]}),e.jsx(Cs,{isTouched:a,error:r,name:s})]})}const an=ls()(Tp);function Ca({name:s}){const[,t,n]=Ct(s),a=i=>{n.setValue(i),i&&n.setTouched(!0)},r=t.touched&&t.error&&!t.value;return e.jsxs("div",{className:"captcha-field",children:[e.jsx(Bl,{sitekey:"6LfWPdsrAAAAAHglJ_zJNLxgQFx5mFH4GEK2R-Xo",onChange:a}),r&&e.jsx("div",{className:"captcha-field__error",style:{color:"red",marginTop:"0.5rem",fontSize:"0.875rem"},children:t.error})]})}function Ft(s){return s instanceof File}const Na=!S("6LfWPdsrAAAAAHglJ_zJNLxgQFx5mFH4GEK2R-Xo"),Ap={[ae.NAME]:Up,[ae.EMAIL]:Hp,[ae.TEXT]:Fp,[ae.MULTI_CHOICE]:$p,[ae.QUIZ]:zp,[ae.TEXTAREA]:Gp,[ae.CONSENT]:qp,[ae.PHONE]:Vp,[ae.POLL]:Bp,[ae.FILE_UPLOAD]:Wp},yp=/^input_(\d+)$/;function Ip(s){return!s.inputs||!Array.isArray(s.inputs)?{}:s.inputs.reduce((t,n,a)=>{const r=n.id;n.label&&(t[n.label]=r);const i=s.choices&&s.choices[a];return i&&(i.value!=null&&(t[i.value]=r),i.text!=null&&(t[i.text]=r)),t},{})}function Pp(s,t){const n=Wl(t||[],r=>String(r.id)),a=Yl(Object.entries(s),([r,i])=>{const o=r.match(yp);if(o&&Ql(i)){const c=Ip(n[o[1]]||{});if(!S(c))return i.map(l=>{const d=c[l];return d?[`input_${d}`,l]:null}
4).filter(Boolean)}return[[r,i]]});return Zl(a)}function vp(s){var n;return!s||typeof s!="string"?"":((n=new DOMParser().parseFromString(s,"text/html").body.textContent)==null?void 0:n.trim())??""}function Lp(s){var n;if(!((n=s.inputs)!=null&&n.length))return null;const t=s.inputs.find(a=>String(a.id).endsWith(".1"));return(t==null?void 0:t.id)??null}function Rp(s){var n;if(!((n=s.inputs)!=null&&n.length))return null;const t=s.inputs.find(a=>String(a.id).endsWith(".2"));return(t==null?void 0:t.id)??null}function Op(s,t){var a,r;const n={...s};for(const i of t||[]){if(i.type!==ae.CONSENT)continue;const o=Lp(i),c=Rp(i);if(!o||!c)continue;const l=`input_${o}`,d=((r=(a=i.choices)==null?void 0:a[0])==null?void 0:r.value)!=null?String(i.choices[0].value):"1";if(n[l]!==d)continue;const h=vp(i.checkboxLabel||""),p=String(i.descriptionPlaceholder||"").trim();n[`input_${c}`]=h||p||""}return n}function wp(s,t){const n=new FormData;return n.append("form_id",s),n.append("gravity_form_entry[field_values]",""),n.append("gravity_form_entry[source_page]","1"),n.append("gravity_form_entry[target_page]","0"),Object.entries(t).forEach(([a,r])=>{const i=`gravity_form_entry[${a}]`;Ft(r)?n.append(i,r,r.name):Array.isArray(r)?r.forEach(o=>{n.append(`${i}[]`,o)}):n.append(i,r)}),n}function kp(s){const t={};return s.forEach(n=>{switch(n.type){case ae.NAME:n.inputs&&Array.isArray(n.inputs)&&n.inputs.forEach(a=>{const r=`input_${a.id}`;t[r]=""});break;case ae.EMAIL:t[`input_${n.id}`]="";break;case ae.TEXT:t[`input_${n.id}`]="";break;case ae.MULTI_CHOICE:t[`input_${n.id}`]=[];break;case ae.CONSENT:t[`input_${n.id}`]=[];break;case ae.QUIZ:t[`input_${n.id}`]="";break;case ae.TEXTAREA:t[`input_${n.id}`]="";break;case ae.PHONE:t[`input_${n.id}`]="";break;case ae.POLL:t[`input_${n.id}`]=n.poll_field_type==="checkbox"?[]:"";break;case ae.FILE_UPLOAD:t[`input_${n.id}`]=null;break;default:t[`input_${n.id}`]=""}}),Na&&(t["g-recaptcha-response"]=""),t}function Mp({fields:s,button:t,gravityFormId:n,initialValues:a,onSubmit:r,onSuccess:i,onError:o}){const c=U(),{showSuccessToast:l,showErrorToast:d}=us(),{announcePolite:h}=xe(),[p,f]=m.useState(null),g=m.useRef(null),j=S(a)?kp(s):a;m.useEffect(()=>{if(p&&g.current){h("Form submitted successfully. Please review the confirmation message.");const T=g.current.closest("ion-content");T&&T.scrollToTop?T.scrollToTop(300):g.current.scrollIntoView({behavior:"smooth",block:"start"})}},[p,h]);const b=T=>{const C={};return s.forEach(A=>{if(A.isRequired)switch(A.type){case ae.NAME:A.inputs&&Array.isArray(A.inputs)&&A.inputs.forEach(y=>{if(y.isHidden)return;const k=`input_${y.id}`;if(S(T[k])){const O=y.customLabel||y.label;C[k]=`${O} is required`}});break;case ae.MULTI_CHOICE:{const y=`input_${A.id}`;(S(T[y])||Array.isArray(T[y])&&T[y].length===0)&&(C[y]=`${A.label||"This field"} is required`);break}case ae.CONSENT:{const y=`input_${A.id}`;(S(T[y])||Array.isArray(T[y])&&T[y].length===0)&&(C[y]=`${A.label||"This field"} is required`);break}case ae.POLL:{const y=`input_${A.id}`,k=T[y];A.poll_field_type==="checkbox"?(!Array.isArray(k)||k.length===0)&&(C[y]=`${A.label||"This field"} is required`):S(k)&&(C[y]=`${A.label||"This field"} is required`);break}case ae.FILE_UPLOAD:{const y=`input_${A.id}`,k=T[y];Ft(k)||(C[y]=`${A.label||"This field"} is required`);break}default:{const y=`input_${A.id}`;S(T[y])&&(C[y]=`${A.label||"This field"} is required`)}}}),Na&&S(T["g-recaptcha-response"])&&(C["g-recaptcha-response"]="Please complete the captcha verification"),C},P=async(T,{setSubmitting:C,resetForm:A,setFieldError:y})=>{if(r){r(T,{setSubmitting:C,resetForm:A,setFieldError:y});return}try{const k=parseInt(n,10);if(!k){console.warn("No gravity form ID provided"),d("Form configuration is missing. Please try again later.");return}const O=Object.entries(T).reduce((Me,[De,Ue])=>((Ft(Ue)||!S(Ue))&&(Me[De]=Ue),Me),{}),B=Op(Pp(O,s),s),ee=wp(k,B),Ee=await c(yu(ee));je("form_gravity",{gravityFormId:k,formName:t==null?void 0:t.text}),Ee.confirmationType==="message"&&Ee.confirmationMessage?(f(Ee.confirmationMessage),A(),i==null||i(Ee)):(l("Form submitted successfully!"),A(),i==null||i(Ee))}catch(k){d("An error occurred while submitting the form. Please try again."),o==null||o(k)}finally{C(!1)}};return p?e.jsx("div",{className:"dynamic-form-confirmation",ref:g,children:e.jsx(v,{as:"div",documentHtml:p})}):e.jsx(Te,{enableReinitialize:!0,initialValues:j,validate:b,onSubmit:P,children:e.jsx(Dp,{fields:s,button:t})})}function Dp({fields:s,button:t}){const{isSubmitting:n,errors:a,submitCount:r}=He(),{announceAssertive:i}=xe(),o=m.useRef(0);return m.useEffect(()=>{if(r>o.current&&!S(a)){const c=Object.keys(a).length;i(`Form has ${c} ${c===1?"error":"errors"}. Please review and correct.`)}o.current=r},[r,a,i]),e.jsxs(Ae,{className:"dynamic-form",noValidate:!0,children:[s.map(c=>{const l=Ap[c.type];return l?e.jsx(l,{field:c},c.id):(console.warn(`No input component found for field type: ${c.type}`),null)}),Na&&e.jsx(Ca,{name:"g-recaptcha-response"}),t&&e.jsx(ds,{className:"dynamic-form__submit",color:"primary",fill:"solid",submitting:n,disabled:n,children:t.text||"Submit"})]})}function Up({field:s}){return!s.inputs||!Array.isArray(s.inputs)?null:e.jsxs("div",{className:"name-inputs-group",children:[s.label&&e.jsxs("label",{className:"name-inputs-group__label",children:[s.label,s.isRequired&&e.jsx("span",{className:"name-inputs-group__required","aria-hidden":"true",children:" *"})]}),e.jsx("div",{className:"name-inputs-group__fields",children:s.inputs.map(t=>{if(t.isHidden)return null;const n=`input_${t.id}`;if(t.choices&&Array.isArray(t.choices)){const i=t.choices.map(o=>({key:o.text,value:o.value}));return e.jsx(an,{name:[n],label:t.label,options:i,className:"name-inputs-group__radio",required:s.isRequired,radioInputProps:{labelPlacement:"end"}},t.id)}const a=t.customLabel||t.label,r=t.customPlaceholder||`Enter ${a.toLowerCase()}`;return e.jsx(he,{label:a,name:[n],placeholder:r,autoComplete:t.autocompleteAttribute,className:"name-inputs-group__input",required:s.isRequired},t.id)})})]})}function Hp({field:s}){const t=`input_${s.id}`;
4return e.jsx(he,{label:s.label||"Email",name:t,type:"email",placeholder:s.placeholder||"Enter email",autoComplete:s.autocompleteAttribute||"email",required:s.isRequired,className:"email-input"})}function Fp({field:s}){const t=`input_${s.id}`;return e.jsx(he,{label:s.label||"Text",name:t,type:"text",placeholder:s.placeholder||"",autoComplete:s.autocompleteAttribute||"",required:s.isRequired,className:"text-input",maxLength:s.maxLength||void 0})}function qp({field:s}){var p;const t=`input_${s.id}`,[n,a,r]=Ct(t);if(!s.choices||!Array.isArray(s.choices))return null;const i=((p=s.choices[0])==null?void 0:p.value)!=null?String(s.choices[0].value):"1",o=Array.isArray(n.value)?n.value:[],c=o.includes(i),l=s.labelPlacement==="hidden_label",d=s.checkboxLabel||"",h=f=>{const j=f.detail.checked?hi([i],o):pi([i],o);r.setValue(j)};return e.jsxs("fieldset",{className:$("dynamic-form-consent","checkbox-group"),children:[s.label&&e.jsxs("legend",{className:l?"sr-only":void 0,children:[s.label,s.isRequired&&e.jsx("span",{className:"checkbox-group__required","aria-hidden":"true",children:" *"})]}),e.jsx(Qn,{name:`${t}.${i}`,checked:c,onIonChange:h,onIonBlur:n.onBlur,labelPlacement:"end","aria-describedby":a.error&&a.touched?Kt(t):void 0,children:e.jsx(v,{as:"span",documentHtml:d})}),e.jsx(Cs,{isTouched:a.touched,error:a.error,name:t})]})}function $p({field:s}){if(!s.choices||!Array.isArray(s.choices))return null;const t=`input_${s.id}`,n=s.choices.map(a=>({key:a.text,value:a.value}));return s.inputType==="checkbox"?e.jsx(nn,{className:"checkbox-group",checkboxInputProps:{labelPlacement:"end"},label:s.label,name:t,options:n,required:s.isRequired}):e.jsx(an,{className:"multi-choice-input multi-choice-input--radio",label:s.label,name:t,options:n,required:s.isRequired,radioInputProps:{labelPlacement:"end"}})}function zp({field:s}){if(!s.choices||!Array.isArray(s.choices))return null;const t=`input_${s.id}`,n=s.choices.map(a=>({key:a.text,value:a.value}));return e.jsx(an,{className:"quiz-input",label:s.label,name:t,options:n,required:s.isRequired})}function Gp({field:s}){const t=`input_${s.id}`;return e.jsx(Ep,{label:s.label||"Message",name:t,placeholder:s.placeholder||"Enter message",required:s.isRequired,className:"textarea-input",rows:s.size==="large"?6:4,maxlength:s.maxLength||void 0})}function Vp({field:s}){const t=`input_${s.id}`;return e.jsx(he,{label:s.label||"Phone",name:t,type:"tel",placeholder:s.placeholder||"Enter phone number",autoComplete:s.autocompleteAttribute||"tel",required:s.isRequired,className:"phone-input"})}function Bp({field:s}){if(!s.choices||!Array.isArray(s.choices))return null;const t=`input_${s.id}`,n=s.choices.map(a=>({key:a.text,value:a.value}));return s.poll_field_type==="checkbox"?e.jsx(nn,{className:"poll-input poll-input--checkbox",checkboxInputProps:{labelPlacement:"end"},label:s.label,name:t,options:n,required:s.isRequired}):e.jsx(an,{className:"poll-input poll-input--radio",label:s.label,name:t,options:n,required:s.isRequired,radioInputProps:{labelPlacement:"end"}})}function Wp({field:s}){const t=`input_${s.id}`,[n,a,r]=Ct(t),i=m.useRef(null),o=s.allowedExtensions||"",c=o?o.split(",").map(T=>`.${T.trim()}`).join(","):void 0,l=T=>{var A;const C=((A=T.target.files)==null?void 0:A[0])||null;r.setValue(C)},d=()=>{r.setTouched(!0)},h=n.value,f=Ft(h)?h.name:"No file chosen",g=!!(a.error&&a.touched),j=s.description?`${t}-description`:void 0,b=g?Kt(t):void 0,P=[j,b].filter(Boolean).join(" ")||void 0;return e.jsxs("div",{className:"file-upload-input",children:[s.label&&e.jsxs("span",{className:"file-upload-input__label",id:`${t}-label`,children:[s.label,s.isRequired&&e.jsx("span",{className:"file-upload-input__required","aria-hidden":"true",children:" *"})]}),e.jsxs("div",{className:$("file-upload-input__control",{"file-upload-input__control--invalid":g}),children:[e.jsx("input",{ref:i,id:t,name:t,type:"file",accept:c,onChange:l,onBlur:d,className:"file-upload-input__input","aria-labelledby":s.label?`${t}-label`:void 0,"aria-describedby":P}),e.jsx("label",{htmlFor:t,className:"file-upload-input__button",children:"Choose File"}),e.jsx("span",{className:"file-upload-input__status","aria-live":"polite",children:f})]}),s.description&&e.jsx("p",{className:"file-upload-input__description",id:j,children:s.description}),e.jsx(Cs,{isTouched:a.touched,error:a.error,name:t})]})}const Yp="data:image/svg+xml,%3csvg%20width='168'%20height='140'%20viewBox='0%200%20168%20140'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M44.0991%204.43357C21.9624%2092.5816%20146.374%20115.725%20155.456%2081.8298C167.346%2037.4574%2035.2702%2037.3835%2016.7535%20106.489M16.7535%20106.489L38.8353%2097.1027M16.7535%20106.489L3.26781%2090.6327'%20stroke='%23A7130F'%20stroke-width='6'%20stroke-linecap='round'/%3e%3c/svg%3e";function _a({fields:s,button:t,gravityFormId:n,targetId:a,eyebrow:r,header:i,formHeader:o,visualA
4ccent:c,formCallout:l,backgroundColor:d,formFootnote:h,...p}){return e.jsxs("section",{className:`gravity-form-wrapper ${c?"visual-accent":""}`,...p,children:[e.jsx(oe,{targetId:a}),e.jsxs("div",{className:$("gravity-form-block-container",{"inner-bg-light-gray":d===or.LIGHT_GRAY,"inner-bg-none":d===or.TRANSPARENT}),children:[i&&e.jsxs("header",{children:[r&&e.jsx("span",{className:"eyebrow",children:r}),e.jsx(v,{documentHtml:i,as:"h2"})]}),c&&e.jsx("img",{src:Yp,alt:"Accent Arrow",className:"accent-arrow"}),e.jsxs("div",{className:"gravity-form",children:[o&&e.jsx("h2",{className:"gravity-form__header",children:o}),e.jsx(Mp,{fields:s,button:t,gravityFormId:n}),h&&e.jsx("div",{className:"gravity-form__footnote",children:e.jsx(v,{documentHtml:h,as:"div"})})]}),(l==null?void 0:l.headerCallout)&&e.jsxs("div",{className:"gravity-form-callout",children:[e.jsx(da,{}),e.jsxs("div",{className:"text-block",children:[e.jsx("h3",{children:l.headerCallout}),l.calloutText&&e.jsx(v,{documentHtml:l.calloutText,as:"div"})]})]})]})]})}function Be({children:s,url:t,target:n,...a}){const r=t.startsWith("http"),i=t.startsWith("mailto");return r||i?e.jsx(L,{href:t,target:n,rel:n==="_blank"?"noopener noreferrer":void 0,...a,children:s}):e.jsx(L,{routerLink:t,...a,children:s})}function Sa({image:s,header:t,description:n,text:a,link:r,linkIcon:i}){return e.jsxs("div",{className:"content-card",children:[s&&e.jsx("div",{className:"image-block",children:e.jsx(F,{className:"content-card__image",src:(s==null?void 0:s.url)||s,alt:(s==null?void 0:s.alt)||""})}),e.jsxs("div",{className:"content-card__content",children:[t&&e.jsx("h3",{children:t}),n||a&&e.jsx("p",{children:n||a})]}),r&&e.jsxs(Be,{url:r.url,target:r.target,color:"primary",fill:"outline",children:[i&&e.jsx(F,{className:"icon",src:i.url,alt:i.alt||""}),r.title]})]})}function Ea({topBadge:s,eyebrow:t,targetId:n,header:a,subtext:r,cards:i=[],imageType:o="Image",cardColumns:c="3",visualAccents:l="False",backgroundColor:d="None",innerBackgroundColor:h="None",textAlignment:p="Left",button:f=""}){return S(i)?null:e.jsxs("section",{className:$("grid-cards-wrapper",{"icon-type":o==="Icon","image-type":o!=="Icon",[`columns-${c}`]:!0,"visual-accent":l===!0,"no-visual-accent":l!==!0,"text-centered":p==="Centered","text-left":p!=="Centered","bg-light-gray":d==="Light Gray","bg-none":d!=="Light Gray"}),children:[e.jsx(oe,{targetId:n}),e.jsxs("div",{className:$("grid-cards-block-container",{"inner-bg-light-gray":h==="Light Gray","bg-none":h!=="Light Gray"}),children:[s&&e.jsx("span",{className:"top-badge",children:s}),a&&e.jsxs("header",{children:[t&&e.jsx("span",{className:"eyebrow",children:t}),e.jsx(v,{documentHtml:a,as:"h2"}),r&&e.jsx(v,{documentHtml:r})]}),e.jsx("div",{className:"grid-cards__content",children:i.map((g,j)=>e.jsx(Sa,{...g,imageType:o},`card-grid-${j}`))}),(f==null?void 0:f.url)&&e.jsx("div",{className:"button-container",children:e.jsx(Be,{url:f.url,target:f.target,color:"primary",fill:"solid",children:f.title})})]})]})}function Zp({slide:s}){return e.jsxs(ke,{className:`testimonial-card media-${s.mediaPlacement.toLowerCase()}`,children:[e.jsxs(we,{children:[e.jsx(ve,{className:"main-text",children:e.jsx(v,{documentHtml:s.text,as:"p"})}),e.jsx(ui,{className:"footnote",children:e.jsx(ve,{children:s.footnote})})]}),s.image&&e.jsx("div",{className:"image-block",children:e.jsx(F,{src:typeof s.image=="string"?s.image:s.image.url,alt:typeof s.image=="string"?"":s.image.alt||s.image.altText||""})})]})}function Qp({slide:s}){return e.jsx(ke,{className:"video-slide",children:e.jsx(we,{children:e.jsx(bt,{title:s.title||"Video",videoId:s.youtubeVideoId,allowFullScreen:!0,aspectRatio:"16:9"})})})}function ic({header:s,slides:t,targetId:n}){const[a,r]=m.useState(!1),[i,o]=m.useState(0);if(m.useEffect(()=>{const g=()=>{r(window.innerWidth<768)};return g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[]),S(t))return null;const c=t.filter(g=>g.type===Pt.TEXT_AND_IMAGE||g.type===Pt.VIDEO),l=(g,j)=>{switch(g.type){case Pt.TEXT_AND_IMAGE:return e.jsx(qe,{children:e.jsx(Zp,{slide:g})},`carousel-slide-${j}`);case Pt.VIDEO:return e.jsx(qe,{children:e.jsx(Qp,{slide:g},g.id)},`carousel-slide-${j}`);default:return null}}
4,d=c.length===1?"single-slide":"",p=i===c.length-1&&c.length>1?"last-slide":"",f=g=>{o(g.activeIndex)};return e.jsxs("section",{className:`carousel-wrapper ${d} ${p}`,children:[e.jsx(oe,{targetId:n}),e.jsx("div",{className:"carousel-block-container",children:e.jsx(is,{title:s,uniqueId:"carousel",showPagination:a,showNavigation:c.length>1,onSlideChange:f,children:c.map(l)})})]})}function oc({items:s,targetId:t}){const a=(s==null?void 0:s.map(i=>{const o=hr.find(c=>c.text===i);return{text:i,lang:(o==null?void 0:o.lang)||"en"}}))||hr,r=[...a,...a,...a];return e.jsxs("section",{className:"marquee-wrapper",role:"banner","aria-label":"Senior Planet slogans",tabIndex:"-1",children:[e.jsx(oe,{targetId:t}),e.jsx("div",{className:"sr-only",children:a.map((i,o)=>e.jsx("p",{lang:i.lang,children:i.text},`sr-${o}`))}),e.jsx("div",{className:"marquee__track","aria-hidden":"true",children:r.map((i,o)=>e.jsxs(lt.Fragment,{children:[e.jsx("p",{className:"marquee__slogan",lang:i.lang,children:i.text}),o!==r.length-1&&e.jsx("span",{className:"marquee__dot",children:"•"})]},o))})]})}function cc({id:s,image:t,title:n,link:a}){return e.jsx(L,{routerLink:a,className:"clickable-card",children:e.jsxs("div",{className:"clickable-block-inner",children:[e.jsx("div",{className:"content-image",children:e.jsx(F,{src:(t==null?void 0:t.url)||es,alt:(t==null?void 0:t.altText)||n})}),e.jsxs("div",{className:"content-card-content",children:[e.jsx(v,{documentHtml:n,as:"h2"}),e.jsx(R,{icon:gs,color:"primary"})]})]})},s)}function It(s){if(!s)return"";const{address:t,zip:n,city:a,state:r}=s,i=t?`${t.trim()}, `:"",o=a?`${a.trim()}`:"",c=r?`${r.trim()}`:"",l=o&&c?`${o}, ${c}`:"",d=n?` ${n.trim()}`:"";return`${i}${l}${d}`}function Kp({eyebrow:s,header:t,targetId:n,locationCollection:a,button:r}){var l,d;const{isAuthenticated:i}=K(),o=a[0],c=It(o);return e.jsx(e.Fragment,{children:i?e.jsxs("section",{className:"location-wrapper",children:[e.jsx(oe,{targetId:n}),e.jsxs("div",{className:"location-block-container",children:[e.jsxs("div",{className:"text-block",children:[e.jsx(v,{documentHtml:o.titleHtml,as:"h2"}),e.jsx("p",{children:`Check out the latest happenings and classes at your local ${o.titleHtml} Center.`}),e.jsx("p",{children:e.jsx("strong",{children:c})}),e.jsxs(L,{routerLink:N(x.LOCATIONS,o.slug),color:"primary",fill:"solid",children:["Explore upcoming classes ",e.jsx(R,{icon:gs})]})]}),e.jsxs("div",{className:"image-block",children:[e.jsx(F,{src:(l=o.thumbnailImage)==null?void 0:l.url,alt:(d=o.thumbnailImage)==null?void 0:d.alt}),e.jsxs("h3",{children:[o.centerName," Center"]})]})]})]}):e.jsxs("section",{className:"locations-wrapper",children:[e.jsx(oe,{targetId:n}),e.jsxs("div",{className:"locations-block-container",children:[t&&e.jsxs("header",{children:[s&&e.jsx("span",{className:"eyebrow",children:s}),e.jsx(v,{documentHtml:t,as:"h2"})]}),e.jsx("div",{className:"content-index",children:e.jsx("div",{className:"content-index-cards",children:a.map(h=>e.jsx(cc,{id:h.id,image:h.thumbnailImage,title:h.titleHtml,link:h.link||`/locations/${h.slug}`},h.id))})}),r.url&&e.jsx("div",{className:"button-container",children:e.jsx(Be,{url:r.url,target:r.target,color:"primary",fill:"outline",children:r.title})})]})]})})}function Xp({header:s="Let's find your community",targetId:t,image:n,button:a,subtext:r}){return e.jsxs("section",{className:"call-to-action-wrapper",children:[e.jsx(oe,{targetId:t}),e.jsx("div",{className:"call-to-action-block-container",children:e.jsxs("div",{className:"text-block",children:[e.jsx(v,{documentHtml:s,as:"h2"}),r&&e.jsx(v,{documentHtml:r}),(n==null?void 0:n.url)&&e.jsx(F,{src:n.url,alt:n.alt}),(a==null?void 0:a.url)&&e.jsxs(Be,{url:a.url,target:a.target,color:"primary-dark",fill:"solid",size:"large",children:[a.title," ",e.jsx(R,{icon:gs})]})]})})]})}const Jp={type:"Carousel"};function qt({header:s,targetId:t,images:n,type:a,description:r}){if(S(n))return null;const i=c=>typeof c=="string"?c:c.url,o=c=>typeof c=="string"?"":c.alt||c.altText||"";return a==="Single Row"?e.jsxs("section",{className:"gallery-wrapper",children:[e.jsx(oe,{targetId:t}),e.jsxs("div",{className:"gallery gallery--single-row",children:[s&&e.jsx("header",{children:e.jsx(v,{documentHtml:s,as:"h2"})}),r&&e.jsx(v,{documentHtml:r}),e.jsx("div",{className:"gallery__single-row-content",children:n.slice(0,Xd).map((c,l)=>e.jsx("div",{className:"gallery__single-row-item",children:e.jsx(F,{src:i(c),alt:o(c)})},`gallery-${l}`))})]})]}):e.jsxs("section",{className:"gallery-wrapper",children:[e.jsx(oe,{targetId:t}),e.jsx("div",{className:"gallery gallery--carousel",children:e.jsx(is,{title:s,uniqueId:"gallery",loop:!0,children:n.slice(0,Jd).map((c,l)=>e.jsx(qe,{children:e.jsx(F,{src:i(c),alt:o(c)})},`gallery-${l}`))})})]})}qt.defaultProps=Jp;function e2({blocks:s,targetId:t}){return e.jsxs("section",{className:"featured-wrapper",children:[e.jsx(oe,{targetId:t}),e.jsx("div",{className:"featured-block-container",children:e.jsx("div",{className:"featured__items",children:s.map(n=>e.jsx("div",{className:"featured__item",children:e.jsx(L,{routerLink:`/${n.pathname}
4`,fill:"clear",expand:"full",children:e.jsxs("div",{className:"featured__item-content-outer",children:[e.jsxs("div",{className:"featured__item-content",children:[e.jsx("span",{children:n.topic}),e.jsx(v,{documentHtml:n.title,as:"h2"})]}),e.jsxs("p",{children:[n.linkText," ",e.jsx(R,{icon:gi})]})]})})},n.id))})})]})}function s2(s){const t=s.contentType;return t===V.ONLINE_CLASS||t===V.IN_PERSON_CLASS?Ls(s.data):t===V.PAGE?s.data.slug:`/${In(t)}/${s.data.slug}`}function t2({header:s,targetId:t,cards:n}){return e.jsxs("section",{className:"offerings-wrapper grid-cards-wrapper columns-3",children:[e.jsx(oe,{targetId:t}),e.jsxs("div",{className:"grid-cards-block-container",children:[s&&e.jsx("header",{children:e.jsx(v,{documentHtml:s,as:"h2"})}),e.jsx("div",{className:"grid-cards__content",children:n.map((a,r)=>{var i,o,c,l;return e.jsxs(ke,{className:"content-card",routerLink:s2(a),children:[e.jsx("div",{className:"image-block",children:e.jsx(F,{className:"content-card__image",src:((i=a.data.featuredImage)==null?void 0:i.url)||((o=a.data.image)==null?void 0:o.url)||es,alt:((c=a.data.featuredImage)==null?void 0:c.altText)||((l=a.data.image)==null?void 0:l.altText)||""})}),e.jsx("div",{className:"content-card__content",children:e.jsx(v,{documentHtml:a.data.titleHtml||a.data.title,as:"h3"})})]},`card-grid-${r}`)})})]})]})}function vr({slug:s,thumbnailImage:t,name:n}){return e.jsxs(ke,{className:"content-card",routerLink:N(s),children:[e.jsx("div",{className:"content-image",children:e.jsx(F,{src:(t==null?void 0:t.url)||es,alt:(t==null?void 0:t.altText)||n})}),e.jsxs(we,{children:[e.jsx("h3",{children:n}),e.jsx(R,{icon:gs,color:"primary"})]})]})}function ft({slug:s,tags:t,topics:n,title:a,titleHtml:r,image:i}){return e.jsxs(ke,{className:"content-card video-card",routerLink:N(x.VIDEOS,s),role:"link",children:[e.jsx("div",{className:"content-image",children:e.jsx(F,{src:(i==null?void 0:i.link)||es,alt:(i==null?void 0:i.altText)||""})}),e.jsx(we,{children:e.jsxs("div",{className:"content-header",children:[e.jsx(Xs,{tags:n||t||[]}),e.jsx("div",{className:"content-body",children:e.jsx(v,{as:"h3",documentHtml:r||a})})]})})]})}const n2={[ie.UPCOMING_ONLINE_CLASSES]:Ze,[ie.UPCOMING_IN_PERSON_CLASSES]:Ze,[ie.UPCOMING_MULTI_WEEK_COURSES]:Ze,[ie.MY_UPCOMING_CLASSES]:Ze,[ie.LATEST_CONTENT]:Sa,[ie.LATEST_ARTICLES]:As,[ie.FEATURED_ARTICLES]:As,[ie.SUGGESTED_ARTICLES]:As,[ie.LATEST_VIDEOS]:ft,[ie.POPULAR_VIDEOS]:ft,[ie.CATEGORIES]:vr,[ie.TOPICS]:vr},a2={[ie.UPCOMING_ONLINE_CLASSES]:x.ONLINE_CLASSES,[ie.UPCOMING_IN_PERSON_CLASSES]:x.IN_PERSON_CLASSES,[ie.UPCOMING_MULTI_WEEK_COURSES]:x.MULTI_WEEK_COURSES,[ie.MY_UPCOMING_CLASSES]:x.IN_PERSON_CLASSES,[ie.LATEST_CONTENT]:x.CONTENT,[ie.LATEST_ARTICLES]:x.ARTICLES,[ie.FEATURED_ARTICLES]:x.ARTICLES,[ie.SUGGESTED_ARTICLES]:x.ARTICLES,[ie.LATEST_VIDEOS]:x.VIDEOS,[ie.POPULAR_VIDEOS]:x.VIDEOS};function r2({header:s,targetId:t,text:n,type:a,topics:r,tags:i,eventContent:o,backgroundColor:c="None"}){if(S(o))return null;const l=pt(n2,a,Sa),d=!S(i)&&S(r)||a===ie.CATEGORIES||a===ie.TOPICS?null:a===ie.MY_UPCOMING_CLASSES?N(x.DASHBOARD):M(pt(a2,a),ms({tags:i,topics:r}));return e.jsxs("section",{className:$("event-content-carousel",{"bg-white":c==="White","bg-light-gray":c==="Light Gray","bg-dune":c==="Dune",[`type-${a.replace(/_/g,"-")}`]:a}),children:[e.jsx(oe,{targetId:t}),e.jsx("div",{className:"slider-block-container",children:e.jsx(is,{title:s||"",description:n,seeAllLink:d,uniqueId:"event-content-carousel",children:o.map((h,p)=>{const f=h.data?h.data:h;return e.jsx(qe,{children:e.jsx(l,{...f})},`event-content-${p}`)})})})]})}const i2=({header:s,targetId:t,buttons:n=[]})=>S(n)?null:e.jsxs("section",{className:"button-list-wrapper",children:[e.jsx(oe,{targetId:t}),e.jsxs("div",{className:"button-list-block-container",children:[s&&e.jsx("header",{children:e.jsx(v,{documentHtml:s,as:"h2"})}),e.jsx("div",{className:"button-list-items",children:n.map(a=>e.jsx("div",{className:"button-list-item",children:e.jsx(Be,{url:a.url,target:a.target,color:"primary",fill:"outline",children:a.title})},a.id))})]})]});function o2({dataGuid:s}){const t=m.useRef(null),n=m.useCallback((l,d=5e3)=>new Promise((h,p)=>{const f=document.querySelector(l);
4if(f){h(f);return}const g=new MutationObserver((j,b)=>{const P=document.querySelector(l);P&&(b.disconnect(),h(P))});g.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>{g.disconnect(),p(new Error(`Element ${l} not found within ${d}ms`))},d)}),[]),a=m.useCallback((l,d=5e3)=>new Promise((h,p)=>{if(window[l]){h(window[l]);return}const f=setInterval(()=>{window[l]&&(clearInterval(f),h(window[l]))},100);setTimeout(()=>{clearInterval(f),p(new Error(`Global ${l} not available within ${d}ms`))},d)}),[]),r=m.useCallback((l,d={})=>new Promise((h,p)=>{const f=document.createElement("script");f.src=l,Object.entries(d).forEach(([g,j])=>{f.setAttribute(g,j)}),f.onload=()=>h(f),f.onerror=()=>p(new Error(`Failed to load script: ${l}`)),document.body.appendChild(f)}),[]),i=m.useCallback(()=>{try{window.iFrameResize({checkOrigin:["https://connect.clickandpledge.com","https://resources.connect.clickandpledge.com"],log:!1,enablePublicMethods:!0,autoResize:!0,heightCalculationMethod:"bodyScroll"},"#CnP_inlineiframe")}catch{}},[]),o=m.useCallback(()=>{const l=d=>{if((d.origin==="https://connect.clickandpledge.com"||d.origin==="https://resources.connect.clickandpledge.com")&&typeof d.data=="string"&&d.data.includes("iFrameSizer"))return!0};return window.addEventListener("message",l),()=>{window.removeEventListener("message",l)}},[]),c=m.useCallback(async()=>{if(!(!s||typeof window>"u"))try{const l=o();if(t.current=l,await a("jQuery",5e3),document.querySelector("script.CnP_formloader"))return;await r("https://resources.connect.clickandpledge.com/Library/iframe-1.0.0.min.js?638907034775715352",{class:"CnP_formloader","data-guid":s,"data-title":"Donate to OATS"}),await a("iFrameResize",3e3),await n("#CnP_inlineiframe",3e3),i()}catch{}},[s,o,a,n,r,i]);return m.useEffect(()=>(c(),()=>{t.current&&(t.current(),t.current=null)}),[c]),s?e.jsx("div",{id:"CnP_inlineform"}):e.jsx(ne,{})}function ba(s,t,n){return`Season ${s} | Episode ${t}: ${n}`}function Ta(s,t,n){const a=[s,t,n].filter(r=>r&&r.trim()!=="").join(", ");return a?`Guest: ${a}`:""}function Lr(s){return!Array.isArray(s)||s.length===0?s:[...s].sort((t,n)=>{const a=Number(t.season)||0,r=Number(n.season)||0,i=Number(t.episode)||0,o=Number(n.episode)||0;return r!==a?r-a:o-i})}function lc(s){if(!s)return"";const t=s.replace(/<img[^>]*>/gi,"").replace(/<a[^>]*>(.*?)<\/a>/gi,"$1").replace(/\s*style\s*=\s*["'][^"']*["']/gi,"").replace(/\s+/g," ").trim(),n=300;if(t.length<=n)return t;const a=t.substring(0,n),r=a.lastIndexOf(" ");return r>n*.8?a.substring(0,r)+"...":a+"..."}const Aa="podcasts",c2={podcastsPage:null,podcasts:null,podcast:null,totalPodcasts:null,relatedArticles:null,totalPages:null},dc=Ce({name:Aa,initialState:c2,reducers:{clearPodcast(s){s.podcast=null,s.relatedArticles=null},resetPodcastsPage(s){s.podcastsPage=null}},extraReducers:s=>{s.addCase(Qi,_.handleSuccess((t,n)=>{t.podcastsPage=n.payload.data.data.attributes})),s.addCase(Ki,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{const r=n.map(i=>i.attributes);t.podcasts=Lr(r),t.totalPodcasts=Number(a)})),s.addCase(aa,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a,totalPages:r}}}})=>{const i=n.map(o=>o.attributes);t.podcasts=Lr(i),t.totalPodcasts=Number(a),t.totalPages=Number(r)})),s.addCase(Xi,_.handleSuccess((t,n)=>{t.podcast=n.payload.data.data.attributes})),s.addCase(We,_.handleSuccess((t,n)=>{t.relatedArticles=n.payload.data.data.map(a=>a.attributes)}))}}),ws=Ne.selectorForSlice(`root.${Aa}`),xt={podcasts:ws("podcasts"),podcast:ws("podcast"),podcastsPage:ws("podcastsPage"),totalPodcasts:ws("totalPodcasts"),relatedArticles:ws("relatedArticles"),totalPages:ws("totalPages")},{clearPodcast:l2,resetPodcastsPage:d2}=dc.actions,u2=dc.reducer;function m2(){const s=U(),t=ce(),n=$e(),a=te(),r=m.useRef(null),i=E(xt.podcasts),o=E(xt.totalPodcasts),c=t.get(I.PAGE)||1,l=m.useCallback(p=>{const{selected:f}=p,g=f+1,j=new URLSearchParams(t);j.delete(I.PAGE),j.append(I.PAGE,g),a.push(M(N(x.PODCASTS),j))},[t,a]),d=Wt(n.pathname)===N(x.PODCASTS),h=m.useCallback(()=>{var j;const p=((j=t.get(I.QUERY))==null?void 0:j.trim())||"",f=t.get(I.SEASON)||"",g=new URLSearchParams;g.set(w.CONTENT_TYPE,"podcast"),g.set(w.PAGE,c),g.set(w.PER_PAGE,3),p&&g.set(w.QUERY,p),f&&g.set(w.SEASON,f),s(Ki(g))},[s,t,c]);return m.useEffect(()=>{var j;if(!d)return;const p=t.toString(),f=(j=r.current)==null?void 0:j.toString();p!==f&&(h(),r.current=t)},[t,d,h]),{podcasts:i,totalPodcasts:o,currentPage:c,isLoading:de(i),isOnIndexPage:d,handlePageChange:l,fetchPodcasts:h}}function h2({titleHtml:s,season:t,episode:n,guest:a,guestTitle:r,guestCompany:i,contentHtml:o,transistorUrl:c,slug:l}){return e.jsx(ke,{className:"content-card podcast-card",routerLink:N(x.PODCASTS,l),role:"link",children:e.jsx(we,{children:e.jsx("div",{className:"content-header",children:e.jsxs("div",{className:"content-body",children:[e.jsx(v,{as:"h3",documentHtml:ba(t,n,s)}),e.jsx(v,{as:"p",documentHtml:Ta(a,r,i)}),e.jsx(v,{as:"div",documentHtml:lc(o)}),e.jsx("iframe",{src:c,title:`${s} Podcast`,style:{height:"180px",width:"100%",marginTop:"1rem"},frameBorder:"0",scrolling:"no",seamless:!0})]})})})})}function p2({initialValues:s,onClearFilters:t,onSubmit:n}){var i;const a=E(q.podcastSearchFilters),r=((i=a==null?void 0:a.seasons)==null?void 0:i.map(o=>({key:`Season ${o.label}`,value:o.value})))||[];return e.jsx(Te,{enableReinitialize:!0,initialValues:s,onSubmit:n,children:e.jsxs(Ae,{className:"podcast-search-form",noValidate:!0,children:[e.jsx(Qs,{name:"query",placeholder:"Search podcasts by keyword..."}),e.jsx(f2,{seasonOptions:r,onClearFilters:t}),e.jsx(x2,{seasonOptions:r,onClearFilters:t})]})})}function f2({seasonOptions:s,onClearFilters:t}){return e.jsxs("div",{className:"tablet-desktop-podcast-filter",children:[e.jsx(uc,{seasonOptions:s}),e.jsx(L,{fill:"clear",color:"off-black",onClick:t,children:"Clear all"})]})}function x2({seasonOptions:s,onClearFilters:t}){const[n,a]=m.useState(!1);function r(){a(!n)}return e.jsxs("div",{className:"mobile-podcast-filter",children:[e.jsxs(L,{expand:"block",fill:"outline",color:"primary",onClick:r,children:[n?"Hide":"Show"," advanced filters"]}),n&&e.jsxs("div",{className:"advanced-criteria-container",children:[e.jsx(uc,{seasonOptions:s}),e.jsx(L,{fill:"clear",color:"off-black",onClick:t,children:"Clear all"})]})]})}function uc({seasonOptions:s}){const{submitForm:t}=He();return e.jsx(e.Fragment,{children:e.jsx(ys,{interfaceOptions:{cssClass:"select-alert"},label:"Season: ",name:"season",options:s,placeholder:"All seasons",onChange:t,okText:"Apply"})})}function g2({header:s,subtext:t}){const{podcasts:n,isLoading:a,totalPodcasts:r,currentPage:i,handlePageChange:o}=m2(),c=ce(),l=te(),d=Ns(),{announcePolite:h}=xe(),p=m.useRef(null),f={query:c.get(I.QUERY)||"",season:c.get(I.SEASON)||""};m.useEffect(()=>{c.size>0&&d("#podcast-criteria","instant","start")},[d,c,n]),m.useEffect(()=>{!a&&n&&n!==p.current&&(p.current=n,h(r===0?"No podcasts found matching your search":`Found ${r} ${Is("podcast",r)}`))},[a,n,r,h]);const g=m.useCallback(()=>{l.push(N(x.PODCASTS),"root","replace")},[l]),j=b=>{var A;const P=(A=b.query)==null?void 0:A.trim(),T=new URLSearchParams;P&&(je("global_search",{query:P,search_scope:"podcasts"}),T.set(I.QUERY,P)),b.season&&T.set(I.SEASON,b.season),T.toString()&&T.set(I.PAGE,"1");const C=M(N(x.PODCASTS),T);l.push(C)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{id:"podcast-criteria",className:"index-criteria",children:e.jsxs("header",{className:"section-heading",children:[e.jsx("h2",{children:s}),t&&e.jsx(v,{documentHtml:t})]})}),e.jsx(p2,{initialValues:f,onClearFilters:g,onSubmit:j}),a?e.jsx(Je,{}):e.jsx("div",{className:"podcast-cards",children:n&&r>0?e.jsxs(e.Fragment,{children:[n.map(b=>e.jsx(h2,{...b.data},b.data.id)),e.jsx(vs,{currentPage:i,onPageChange:o,totalItems:r,itemsPerPage:3})]}):e.jsxs("div",{className:"search-results-empty",children:[e.jsx(R,{icon:Bs,color:"primary",size:"large"}),e.jsxs("div",{className:"text-block",children:[e.jsx("h3",{children:"No podcasts found"}),e.jsx("p",{children:"Try adjusting your search to find what you're looking for"})]})]})})]})}const ya="quizzes",j2={quizzes:null,quiz:null,totalQuizzes:null,currentPage:1},mc=Ce({name:ya,initialState:j2,reducers:{clearQuiz(s){s.quiz=null},setCurrentPage(s,t){s.currentPage=t.payload}},extraReducers:s=>{s.addCase(co,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{t.quizzes=n.map(r=>r.attributes),t.totalQuizzes=a})),s.addCase(lo,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.quiz=n.attributes}))}}),Rt=Ne.selectorForSlice(`root.${ya}`),kt={quizzes:Rt("quizzes"),quiz:Rt("quiz"),totalQuizzes:Rt("totalQuizzes"),currentPage:Rt("currentPage")},{clearQuiz:C2,setCurrentPage:Rr}=mc.actions,N2=mc.reducer;function _2(){const s=U(),t=E(kt.quizzes),n=E(kt.totalQuizzes),a=E(kt.currentPage),r=Ns(),i=m.useCallback(o=>{const{selected:c}=o,l=c+1;s(Rr(l)),r("#quiz-criteria","smooth","start")},[s,r]);return m.useEffect(()=>{s(co(a))},[s,a]),{quizzes:t,totalQuizzes:n,currentPage:a,isLoading:de(t)&&a===1,handlePageChange:i,setCurrentPage:o=>s(Rr(o))}}function S2({id:s,featuredImage:t,titleHtml:n,slug:a}){return e.jsx(cc,{id:s,image:t,title:n,link:N(x.QUIZZES,a),className:"quiz-card"})}function E2({header:s,subtext:t}){const{quizzes:n,totalQuizzes:a,currentPage:r,isLoading:i,handlePageChange:o}=_2(),{announcePolite:c}=xe(),l=m.useRef(null);return m.useEffect(()=>{!i&&n&&n!==l.current&&(l.current=n,S(n)?c("No quizzes found"):c(`Showing ${a} ${Is("quiz",a)}`))},[i,n,a,c]),e.jsxs(e.Fragment,{children:[e.jsx("div",{id:"quiz-criteria",className:"index-criteria",children:e.jsxs("header",{className:"section-heading",children:[e.jsx("h2",{children:s}),t&&e.jsx(v,{documentHtml:t})]})}),i?e.jsx(Je,{}):e.jsxs("section",{className:"content-index quiz-index",children:[e.jsx("div",{className:"content-index-cards",children:S(n)?e.jsx("div",{className:"empty-state",children:e.jsx("p",{children:"No quizzes found."})}):n.map(d=>e.jsx(S2,{...d},d.id))}),a>0&&e.jsx(vs,{currentPage:r,onPageChange:o,totalItems:a,itemsPerPage:6})]})]})}const Ia="puzzles",b2={puzzles:null,puzzle:null,totalPuzzles:null,currentPage:1,relatedArticles:null},hc=Ce({name:Ia,initialState:b2,reducers:{clearPuzzle(s){s.puzzle=null,s.relatedArticles=null},setCurrentPage(s,t){s.currentPage=t.payload}},extraReducers:s=>{s.addCase(so,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{t.puzzles=n.map(r=>r.attributes),t.totalPuzzles=a})),s.addCase(to,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.puzzle=n.attributes})),s.addCase(We,_.handleSuccess((t,n)=>{const a=n.payload.data;t.relatedArticles=a.data.map(r=>r.attributes)}))}}),it=Ne.selectorForSlice(`root.${Ia}`),ut={puzzles:it("puzzles"),puzzle:it("puzzle"),totalPuzzles:it("totalPuzzles"),currentPage:it("currentPage"),relatedArticles:it("relatedArticles")},{clearPuzzle:T2,setCurrentPage:Or}=hc.actions,A2=hc.reducer;function y2(){const s=U(),t=E(ut.puzzles),n=E(ut.totalPuzzles),a=E(ut.currentPage),r=Ns(),i=m.useCallback(o=>{const{selected:c}=o,l=c+1;s(Or(l)),r("#puzzle-criteria","smooth","start")},[s,r]);return m.useEffect(()=>
4{s(so(a))},[s,a]),{puzzles:t,totalPuzzles:n,currentPage:a,isLoading:de(t)&&a===1,handlePageChange:i,setCurrentPage:o=>s(Or(o))}}function I2(s){if(!s)return"";const t=document.createElement("div");t.innerHTML=s;const n=t.querySelector("p");if(n)return n.outerHTML;const a=t.textContent||t.innerText||"",r=a.split(".")[0]+(a.includes(".")?".":"");return r?`<p>${r}</p>`:""}function pc({slug:s,featuredImage:t,topics:n,titleHtml:a,contentHtml:r}){return e.jsxs(ke,{className:"content-card",routerLink:N(x.PUZZLES,s),children:[e.jsx("div",{className:"content-image",children:e.jsx(F,{src:(t==null?void 0:t.link)||es,alt:(t==null?void 0:t.altText)||""})}),e.jsx(we,{children:e.jsxs("div",{className:"content-header",children:[e.jsx(Xs,{tags:n}),e.jsxs("div",{className:"content-body",children:[e.jsx(v,{as:"h2",documentHtml:a}),e.jsx(v,{as:"div",documentHtml:I2(r)})]})]})})]})}function P2({header:s,subtext:t}){const{puzzles:n,totalPuzzles:a,currentPage:r,isLoading:i,handlePageChange:o}=y2(),{announcePolite:c}=xe(),l=m.useRef(null);return m.useEffect(()=>{!i&&n&&n!==l.current&&(l.current=n,S(n)?c("No puzzles found"):c(`Showing ${a} ${Is("puzzle",a)}`))},[i,n,a,c]),e.jsxs(e.Fragment,{children:[e.jsx("div",{id:"puzzle-criteria",className:"index-criteria",children:e.jsxs("header",{className:"section-heading",children:[e.jsx("h2",{children:s}),t&&e.jsx(v,{documentHtml:t})]})}),i?e.jsx(Je,{}):e.jsxs("section",{className:"content-index",children:[e.jsx("div",{className:"content-index-cards",children:S(n)?e.jsx("div",{className:"empty-state",children:e.jsx("p",{children:"No puzzles found."})}):n.map(d=>e.jsx(pc,{...d},d.id))}),a>0&&e.jsx(vs,{currentPage:r,onPageChange:o,totalItems:a,itemsPerPage:6})]})]})}function v2({initialValues:s,onClearFilters:t,onSubmit:n}){const a=E(q.topics);return e.jsx(Te,{enableReinitialize:!0,initialValues:s,onSubmit:n,children:e.jsxs(Ae,{className:"video-search-form",noValidate:!0,children:[e.jsx(Qs,{name:"query",placeholder:"Search by keyword..."}),e.jsx(L2,{onClearFilters:t,topics:a}),e.jsx(R2,{onClearFilters:t,topics:a})]})})}function L2({onClearFilters:s,topics:t}){return e.jsxs("div",{className:"tablet-desktop-video-filter",children:[e.jsx(fc,{topics:t}),e.jsx(L,{fill:"clear",color:"off-black",onClick:s,children:"Clear all"})]})}function R2({onClearFilters:s,topics:t}){const[n,a]=m.useState(!1);function r(){a(!n)}return e.jsxs("div",{className:"mobile-video-filter",children:[e.jsxs(L,{expand:"block",fill:"outline",color:"primary",onClick:r,children:[n?"Hide":"Show"," advanced filters"]}),n&&e.jsxs("div",{className:"advanced-criteria-container",children:[e.jsx(fc,{topics:t}),e.jsx(L,{fill:"clear",color:"off-black",onClick:s,children:"Clear all"})]})]})}function fc({topics:s}){const{submitForm:t}=He(),n=()=>{t()};return e.jsx(e.Fragment,{children:e.jsx(ys,{interfaceOptions:{cssClass:"select-alert"},label:"Topic: ",multiple:!0,name:"topics",options:O2(s),placeholder:"All",onChange:n,okText:"Apply"})})}function O2(s){return s.map(t=>({key:t.name,value:t.id}))}const Pa="videos",w2={relatedVideos:null,totalVideos:null,video:null,videos:null,videoIndex:null},xc=Ce({name:Pa,initialState:w2,reducers:{clearVideo(s){s.video=null,s.relatedVideos=null},clearVideoIndex(s){s.videoIndex=null},clearVideos(s){s.totalVideos=null,s.videos=null}},extraReducers:s=>{s.addCase(xo,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{t.videos=n.map(r=>r.attributes),t.totalVideos=a})),s.addCase(fo,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.videoIndex=n.attributes})),s.addCase(go,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.video=n.attributes})),s.addCase(jo,_.handleSuccess((t,n)=>{const a=n.payload.data;t.relatedVideos=a.data.map(r=>r.attributes)})),s.addCase(Eo,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{t.videos=n.map(r=>r.attributes),t.totalVideos=a}))}}),ot=Ne.selectorForSlice(`root.${Pa}`),gt={relatedVideos:ot("relatedVideos"),totalVideos:ot("totalVideos"),video:ot("video"),videoIndex:ot("videoIndex"),videos:ot("videos")},{clearVideo:k2,clearVideoIndex:M2,clearVideos:D2}=xc.actions,U2=xc.reducer;function H2(s){return s.has(I.QUERY)||s.has(I.TOPIC)}function F2({queryParams:s}){const t=s.get(I.QUERY)||"",n=s.get(I.PAGE)||1,a=s.getAll(I.TAG)||[],r=s.getAll(I.TOPIC)||[],i=new URLSearchParams;return i.set(w.CONTENT_TYPE,V.VIDEO),i.set(w.PAGE,n),S(t)||i.append(w.QUERY,t),S(a)||a.forEach(o=>{i.append(w.TAGS,o)}),S(r)||r.forEach(o=>{i.append(w.TOPICS,o)}),i}function q2({onPageChange:s}){const t=m.useRef(null),n=U(),a=ce(),r=$e(),i=E(gt.videos),o=E(gt.totalVideos),c=Wt(r.pathname)===N(x.VIDEOS),l=m.useCallback(h=>{const{selected:p}=h,f=p+1;s(f)},[s]),d=m.useCallback(()=>{n(D2());const h=F2({queryParams:a});H2(a)?n(Eo(h)):n(xo(h))},[n,a]);return m.useEffect(()=>{var g;if(!c)return;const h=a.toString(),p=(g=t.current)==null?void 0:g.toString();h!==p&&(d(),t.current=a)},[a,c,d]),{videos:i,isLoading:de(i),totalVideos:o,currentPage:a.get(I.PAGE)||1,handlePageChange:l}}function $2(s){const t=s.get(I.QUERY)||"",n=s.getAll(I.TAG)||[],a=s.getAll(I.TOPIC)||[];return{query:t,tags:n.map(r=>Number(r)),topics:a.map(r=>Number(r))}}function z2(s){const{query:t,tags:n,topics:a}=s,r=new URLSearchParams;
4return S(t)||r.append(I.QUERY,t),S(n)||n.forEach(i=>{r.append(I.TAG,i)}),S(a)||a.forEach(i=>{r.append(I.TOPIC,i)}),r.set(I.PAGE,1),r}function G2({header:s,subtext:t}){const n=ce(),a=te(),r=Ns(),i=m.useCallback(()=>{a.push(N(x.VIDEOS),"root","replace")},[a]),o=m.useCallback(f=>{n.delete(I.PAGE),n.append(I.PAGE,f),a.push(M(N(x.VIDEOS),n))},[n,a]),{videos:c,isLoading:l,totalVideos:d,currentPage:h,handlePageChange:p}=q2({onPageChange:o});return m.useEffect(()=>{n.size>0&&r("#video-criteria","instant","start")},[r,n,c]),e.jsxs(e.Fragment,{children:[e.jsx("div",{id:"video-criteria",className:"index-criteria",children:e.jsxs("header",{className:"section-heading",children:[e.jsx("h2",{children:s}),t&&e.jsx(v,{documentHtml:t})]})}),e.jsx(v2,{initialValues:$2(n),onClearFilters:i,onSubmit:f=>{var b;const g=(b=f.query)==null?void 0:b.trim();g&&je("global_search",{query:g,search_scope:"videos"});const j=z2(f);a.push(M(N(x.VIDEOS),j))}}),e.jsxs("section",{className:"content-index",children:[l?e.jsx(Je,{name:"dots"}):e.jsx(e.Fragment,{children:c&&c.length>0?e.jsx("div",{className:"content-index-cards",children:c.map(f=>e.jsx(ft,{...f.data},f.data.id))}):e.jsxs("div",{className:"search-results-empty",children:[e.jsx(R,{icon:Bs,color:"primary",size:"large"}),e.jsxs("div",{className:"text-block",children:[e.jsx("h3",{children:"No Videos found"}),e.jsx("p",{children:"Try adjusting your search to find what you're looking for"})]})]})}),d>0&&e.jsx(vs,{currentPage:h,onPageChange:p,totalItems:d})]})]})}function V2({header:s,subtext:t,contentType:n,targetId:a}){return e.jsxs("section",{className:"content-index-wrapper",children:[e.jsx(oe,{targetId:a}),e.jsxs("div",{className:"content-index-block-container",children:[(n==="Podcasts"||n==="Podcast")&&e.jsx(g2,{header:s,subtext:t}),n==="Quizzes"&&e.jsx(E2,{header:s,subtext:t}),n==="Puzzles"&&e.jsx(P2,{header:s,subtext:t}),n==="Videos"&&e.jsx(G2,{header:s,subtext:t})]})]})}function B2({image:s,youtubeVideoId:t,header:n,targetId:a,subtext:r,imagePosition:i,backgroundColor:o,button:c,visualAccents:l}){const[d,h]=m.useState("About the Location");m.useEffect(()=>{t&&fetch(`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${t}&format=json`).then(f=>f.ok?f.json():Promise.reject()).then(f=>h(f.title)).catch(()=>{})},[t]);let p=$("image-and-text-block-wrapper",{"image-position-right":i==="Right","image-position-left":i==="Left","bg-white":o==="White","bg-light-gray":o==="Light Gray","bg-dune":o==="Dune","visual-accent":l});return e.jsxs("section",{className:p,children:[e.jsx(oe,{targetId:a}),e.jsxs("div",{className:"image-and-text-block-container",children:[e.jsx("div",{className:"image-block",children:t?e.jsx(bt,{title:d,videoId:t}):s&&e.jsx("img",{src:s.url,alt:s.alt})}),e.jsxs("div",{className:"text-block rich-text",children:[n&&e.jsx(v,{documentHtml:n,as:"h2"}),e.jsx(v,{documentHtml:r,as:"div"}),(c==null?void 0:c.url)&&e.jsxs(Be,{url:c.url,target:c.target,color:"primary",fill:"outline",children:[c.title," ",e.jsx(R,{icon:gi})]})]})]})]})}function gc({item:s,contentType:t}){const n=s.titleHtml||s.title,a=s.excerptHtml||s.description,r=s.featuredImage||s.image,i=In(t==="Manual"?s.contentType:t),o=t===V.PAGE?N(s.slug):N(i,s.slug);return e.jsxs(ke,{className:"content-card",children:[e.jsx(Y,{routerLink:o,"aria-hidden":"true",tabIndex:-1,children:e.jsx("div",{className:"content-image",children:e.jsx(F,{src:(r==null?void 0:r.url)||es,alt:(r==null?void 0:r.altText)||n})})}),e.jsx(we,{children:e.jsxs("div",{className:"content-header",children:[s.topics&&s.topics.length>0&&e.jsx("ul",{className:"content-tags",children:s.topics.map((c,l)=>e.jsx("li",{children:c.name},l))}),e.jsxs("div",{className:"content-body",children:[e.jsx(Y,{routerLink:o,children:e.jsx(v,{as:"h3",documentHtml:n})}),e.jsx(v,{as:"p",documentHtml:a})]})]})})]},s.id)}const W2={columns:2,itemsToShow:4};function jc({header:s,targetId:t,subtext:n,columns:a,backgroundColor:r,itemsToShow:i,content:o,contentType:c,tags:l,topics:d}){const[h,p]=m.useState(i),f=h<o.length,g=o.slice(0,h),j=()=>{p(T=>Math.min(T+i,o.length))},b=c==="manual"?null:M(`/${c}`,ms({tags:l,topics:d}));let P=$("content-grid-wrapper",{"bg-white":r==="White","bg-light-gray":r==="Light Gray","bg-dune":r==="Dune"});return e.jsxs("section",{className:`${P} columns-${a}`,children:[e.jsx(oe,{targetId:t}),e.jsxs("div",{className:"content-grid-block-container",children:[s&&e.jsxs("header",{children:[e.jsxs("div",{className:"text-block",children:[e.jsx(v,{documentHtml:s,as:"h2"}),n&&e.jsx(v,{documentHtml:n})]}),b&&S(l)&&e.jsx(L,{routerLink:b,color:"primary",fill:"outline","aria-label":`View all ${s}`,children:"View all"})]}),e.jsx("div",{className:"content-grid-items",children:g.map(T=>{const C=T.data||T;return e.jsx(gc,{item:C,contentType:T.contentType||c},C.id)})}),f&&e.jsx("div",{className:"load-more-container",children:e.jsx(L,{color:"primary",fill:"outline",onClick:j,className:"load-more-button",children:"Load More"})})]})]})}jc.defaultProps=W2;function Y2({header:s,targetId:t,summaries:n}){const a=i=>{const c=i.replace(/<[^>]*>/g,"").trim().split(/\s+/);return c[c.length-1]||""},r=[...n].sort((i,o)=>{const c=a(i.nameHtml).toLowerCase(),l=a(o.nameHtml).toLowerCase();return c.localeCompare(l)});return e.jsxs("section",{className:"trainers-wrapper",children:[e.jsx(oe,{targetId:t}),s&&e.jsx("header",{children:e.jsx("h2",{children:s})}),e.jsx("div",{className:"trainers-block-container",children:e.jsx("div",{className:"clickable-blocks",children:r.map(i=>{var o,c;return e.jsx(L,{routerLink:N(x.TRAINERS,i.slug),className:"clickable-block",children:e.jsxs("div",{className:"clickable-block-inner",children:[e.jsx("div",{className:"image-block",children:e.jsx(F,{src:(o=i.featuredImage)==null?void 0:o.url,alt:(c=i.featuredImage)==null?void 0:c.altText})}),e.jsxs("div",{className:"text-block",children:[e.jsx("h3",{children:i.nameHtml}),e.jsx(R,{icon:gs,color:"primary"})]})]})},i.id)})})})]})}const Z2=({header:s,targetId:t,items:n=[]})=>!n||n.length===0?null:e.jsxs("section",{className:"icon-and-text-grid-wrapper",children:[e.jsx(oe,{targetId:t}),e.jsxs("div",{className:"icon-and-text-grid-block-container",children:[s&&e.jsx("header",{children:e.jsx("h2",{children:s})}),e.jsx("div",{className:"icon-and-text-grid-items",children:n.map((a,r)=>
4e.jsx("div",{className:"icon-and-text-grid-item",children:a.link?a.link.url.startsWith("#")?e.jsx("a",{href:a.link.url,children:e.jsx(pn,{iconAndTextGridItem:a})}):e.jsx(Y,{routerLink:a.link.url,children:e.jsx(pn,{iconAndTextGridItem:a})}):e.jsx(pn,{iconAndTextGridItem:a})},`icon-and-text-grid-item-${r}`))})]})]});function pn({iconAndTextGridItem:s}){return e.jsxs("div",{className:"icon-and-text-grid-item-inner",children:[s.icon&&e.jsx("div",{className:"icon-block",children:e.jsx("img",{src:s.icon.url,alt:s.icon.alt||"",className:"icon"})}),(s.header||s.text)&&e.jsxs("div",{className:"text-block",children:[s.header&&e.jsx("h3",{children:s.header}),s.text&&e.jsx("p",{children:s.text})]})]})}const Ot=(s,t,n)=>s?`${s}-${t}-${n}`:`${t}-${n}`;function Cc({tabIds:s,defaultTabId:t,namespace:n=""}){const[a,r]=m.useState(t),[i,o]=m.useState(null),c=m.useRef({});m.useEffect(()=>{var f;i&&((f=c.current[i.tabId])==null||f.focus())},[i]);const l=(f,{moveFocus:g=!1}={})=>{r(f),g&&o({tabId:f})},d=(f,g)=>{const j=s.indexOf(g);if(j!==-1)switch(f.key){case"Enter":case" ":f.preventDefault(),l(g);break;case"ArrowRight":case"ArrowDown":{f.preventDefault();const b=(j+1)%s.length;l(s[b],{moveFocus:!0});break}case"ArrowLeft":case"ArrowUp":{f.preventDefault();const b=(j-1+s.length)%s.length;l(s[b],{moveFocus:!0});break}case"Home":f.preventDefault(),l(s[0],{moveFocus:!0});break;case"End":f.preventDefault(),l(s[s.length-1],{moveFocus:!0});break}};return{activeTabId:a,selectTab:l,getTabProps:f=>{const g=f===a;return{id:Ot(n,"tab",f),role:"tab",type:"button","aria-selected":g,"aria-controls":Ot(n,"tabpanel",f),tabIndex:g?0:-1,ref:j=>{c.current[f]=j},onClick:()=>l(f),onKeyDown:j=>d(j,f)}},getTabPanelProps:()=>({role:"tabpanel",id:Ot(n,"tabpanel",a),"aria-labelledby":Ot(n,"tab",a)})}}function Q2({header:s,targetId:t,tabItems:n=[],tabLabel:a="",defaultTab:r}){const i=n.map((f,g)=>({...f,id:f.id||g.toString(),label:f.label||f.tabName})),o=m.useId(),{activeTabId:c,getTabProps:l,getTabPanelProps:d}=Cc({tabIds:i.map(f=>f.id),defaultTabId:r||(i.length>0?i[0].id:null),namespace:o}),h=i.find(f=>f.id===c),p=i.length>1;return h?e.jsxs("section",{className:"tabs-wrapper",children:[e.jsx(oe,{targetId:t}),s&&e.jsx("div",{className:"tabs-block-container",children:e.jsx("header",{children:e.jsx(v,{documentHtml:s,as:"h2"})})}),p&&e.jsx("div",{className:"tabs-nav",role:"tablist","aria-label":"Language selection",children:e.jsxs("div",{className:"tabs-nav-inner",children:[e.jsxs("span",{className:"tabs-nav-label",children:[a,":"]}),i.map(f=>e.jsx("button",{className:$("tabs-nav-item",{active:c===f.id}),...l(f.id),children:f.label},f.id))]})}),e.jsx("div",{className:"tabs-block-container",children:e.jsx("div",{className:"tabs-content",...d(),children:e.jsx("div",{className:"tabs-content-list",children:h.content.map((f,g)=>e.jsx("div",{className:"tabs-content-item",children:e.jsxs("div",{className:"tabs-content-item-inner",children:[f.image&&e.jsx("div",{className:"tabs-content-image",children:e.jsx("img",{src:f.image.url,alt:f.image.alt,className:"tabs-content-image-img"})}),e.jsxs("div",{className:"tabs-content-text",children:[e.jsxs("div",{className:"tabs-content-text-inner",children:[e.jsx("h3",{className:"tabs-content-item-title",children:f.header}),f.text&&e.jsx("div",{className:"tabs-content-item-description rich-text",children:e.jsx(v,{documentHtml:f.text,as:"div"})})]}),f.link&&e.jsx(Be,{color:"primary",fill:"outline",url:f.link.url,target:f.link.target,children:f.link.title})]})]})},f.id||g))})})})]}):null}function Nc({testimonials:s,header:t,targetId:n}){const[a,r]=m.useState(!1);m.useEffect(()=>{const o=()=>{r(window.innerWidth<768)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]);const i=(o,c)=>e.jsx("div",{className:"testimonials__item",children:e.jsxs("div",{className:"testimonials__content",children:[e.jsxs("blockquote",{children:["“",o.quote,"”"]}),(o.author||o.citation)&&e.jsx("cite",{className:"testimonials__author",children:e.jsxs("p",{children:[o.author&&e.jsx("span",{className:"testimonials__author-name",children:o.author}),o.citation&&e.jsx("span",{className:"testimonials__author-since",children:o.citation})]})})]})},`testimonial-${c}`);return e.jsxs("section",{className:"testimonials-wrapper",children:[e.jsx(oe,{targetId:n}),e.jsxs("div",{className:"testimonials-block-container",children:[t&&e.jsx("header",{children:e.jsx(v,{documentHtml:t,as:"h2"})}),e.jsx("div",{className:"testimonials__items",children:a?e.jsx(Bn,{modules:[ji],pagination:{clickable:!0,dynamicBullets:!1},slidesPerView:1,spaceBetween:4,className:"testimonials__swiper",autoHeight:!0,children:s.map((o,c)=>e.jsx(qe,{children:i(o)},`testimonial-${c}`))}):s.map((o,c)=>
4i(o,c))})]})]})}function K2({text:s,backgroundColor:t,targetId:n}){return e.jsxs("section",{className:$("text-block-wrapper",{"bg-light-gray":t==="Light Gray","bg-transparent":t==="Transparent"||t==="None","bg-white":t==="White","bg-dune":t==="Dune","bg-red":t==="Red"}),children:[e.jsx(oe,{targetId:n}),e.jsx("div",{className:"text-block-container rich-text",children:s&&e.jsx(v,{documentHtml:s})})]})}const wr=(s,t)=>`${s}-${Date.now()}-${t}`,X2=({isExpanded:s})=>e.jsx("div",{className:`accordion__arrow ${s?"accordion__arrow--expanded":""}`,children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:"false",children:e.jsx("path",{d:"M19.92 8.95L13.4 15.47C12.63 16.24 11.37 16.24 10.6 15.47L4.08 8.95",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})}),J2=({accordionHeader:s,accordionDescription:t,isExpanded:n,onToggle:a,onKeyDown:r,index:i,buttonId:o,contentId:c})=>{const l=d=>{d.key==="Enter"||d.key===" "?(d.preventDefault(),a()):r(d)};return e.jsxs("div",{className:"accordion__item",children:[e.jsxs(L,{id:o,onClick:a,onKeyDown:l,className:"accordion__button","aria-expanded":n?"true":"false","aria-controls":c,"aria-describedby":`accordion-description-${i}`,type:"button",fill:"clear",children:[e.jsx("h3",{className:"accordion__question",id:`accordion-header-${i}`,children:s}),e.jsx(X2,{isExpanded:n})]}),e.jsx("div",{id:c,className:"accordion__content",role:"region","aria-labelledby":o,hidden:!n,children:e.jsx("div",{className:"accordion__answer rich-text",id:`accordion-description-${i}`,children:e.jsx(v,{documentHtml:t,as:"div"})})})]})},_c=({header:s,items:t=[],targetId:n})=>{const a=lt.useId().replace(/:/g,""),r=s?`accordion-heading-${a}`:void 0,i=S(t)?[]:t,[o,c]=lt.useState(new Set),[l]=lt.useState(()=>i.map((j,b)=>({buttonId:wr("accordion-button",b),contentId:wr("accordion-content",b)}))),d=j=>{const b=new Set(o);b.has(j)?b.delete(j):b.add(j),c(b)},h=j=>{const b=j.target,T=b.closest(".accordion__items").querySelectorAll(".accordion__button"),C=Array.from(T).indexOf(b);let A,y;switch(j.key){case"ArrowDown":j.preventDefault(),A=(C+1)%T.length,T[A].focus();break;case"ArrowUp":j.preventDefault(),y=(C-1+T.length)%T.length,T[y].focus();break;case"Home":j.preventDefault(),T[0].focus();break;case"End":j.preventDefault(),T[T.length-1].focus();break}},[p,f]=lt.useState(!1),g=p?i:i.slice(0,5);return e.jsxs("section",{className:"accordion-wrapper","aria-label":s||"Accordion",children:[e.jsx(oe,{targetId:n}),e.jsxs("div",{className:"accordion-block-container",children:[s&&e.jsx("header",{children:e.jsx("h2",{id:r,children:s})}),e.jsx("div",{className:"accordion__items",role:"group","aria-labelledby":s?r:void 0,children:g.map((j,b)=>{var P,T,C;return e.jsx(J2,{accordionHeader:j.header,accordionDescription:j.descriptionHtml,isExpanded:o.has(b),onToggle:()=>d(b),onKeyDown:h,index:b,buttonId:(P=l[b])==null?void 0:P.buttonId,contentId:(T=l[b])==null?void 0:T.contentId},((C=l[b])==null?void 0:C.buttonId)||b)})}),!p&&i.length>5&&e.jsx("div",{className:"accordion__load-more",children:e.jsx(L,{onClick:()=>f(!0),fill:"outline",color:"primary","aria-label":`Show ${i.length-5} more accordion items`,children:"Load more"})})]})]})},ef=s=>s.replace(/[^a-zA-Z0-9\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-"),sf=["#","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function tf({group:s,targetId:t}){const[n,a]=m.useState(""),[r,i]=m.useState(s||[]),[o,c]=m.useState(!1),[l,d]=m.useState(""),[h,p]=m.useState(!1),f=m.useRef(null);m.useEffect(()=>{s&&i(s)},[s]);const g=(C=n)=>{if(!s||!Array.isArray(s))return;if(!C.trim()){i(s);return}const A=s.map(y=>{const k=y.items?y.items.filter(O=>{const B=O.term&&O.term.toLowerCase().includes(C.toLowerCase()),ee=O.description&&O.description.toLowerCase().includes(C.toLowerCase());return B||ee}):[];return{...y,items:k}}).filter(y=>y.items.length>0);i(A),C.trim()&&A.length>0&&setTimeout(()=>{const y=A[0];y&&y.header&&(d(y.header),j(y.header))},100)},j=m.useCallback(C=>{const A=document.getElementById(`section-${C}`);if(A){const y=document.querySelector(".glossary-header"),B=(y?y.offsetHeight:0)+20;A.style.scrollMarginTop=`${B}px`,A.scrollIntoView({behavior:"smooth",block:"start"})}else setTimeout(()=>{j(C)},300)},[]);m.useEffect(()=>{const C=()=>{const A=window.location.hash;if(A.startsWith("#section-")){const y=A.replace("#section-","");s.some(O=>O.header===y&&O.items&&O.items.length>0)&&(d(y),setTimeout(()=>{j(y)},100))}};return C(),window.addEventListener("hashchange",C),()=>{window.removeEventListener("hashchange",C)}},[j,s]);const b=(C,A)=>{C.preventDefault(),d(A),r.some(k=>k.header===A)?j(A):(a(""),i(s),setTimeout(()=>{j(A)},200)),window.location.hash=`section-${A}`},P=()=>{d("");const C=document.getElementById("top");C?C.scrollIntoView({behavior:"smooth",block:"start"}):window.scrollTo({top:0,behavior:"smooth"})};m.useEffect(()=>{const C=document.createElement("div");C.style.height="1px",C.style.position="absolute",C.style.top="0",C.style.left="0",C.style.width="100%",C.style.pointerEvents="none",C.id="scroll-sentinel";const A=document.querySelector(".glossary");if(A){A.insertBefore(C,A.firstChild);const y=new IntersectionObserver(k=>
4{k.forEach(O=>{const B=!O.isIntersecting;p(B),c(!!B)})},{root:null,rootMargin:"0px",threshold:[0,1]});return y.observe(C),()=>{y.disconnect(),C.parentNode&&C.parentNode.removeChild(C)}}},[]),m.useEffect(()=>{const C=[],A=document.querySelector(".glossary-header"),O=(A?A.offsetHeight:60)+20;return r.forEach(B=>{const ee=document.getElementById(`section-${B.header}`);if(ee){const Ee=new IntersectionObserver(Me=>{Me.forEach(De=>{De.isIntersecting&&De.intersectionRatio>.5&&d(B.header)})},{root:null,rootMargin:`-${O}px 0px -${O}px 0px`,threshold:[.5]});Ee.observe(ee),C.push(Ee)}}),()=>{C.forEach(B=>B.disconnect())}},[r]),m.useEffect(()=>{const C=()=>{};return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[]);const T=C=>{C.key==="Enter"&&g()};return e.jsxs("section",{id:"top",className:"glossary",children:[e.jsx(oe,{targetId:t}),e.jsx("div",{className:`glossary-header ${h?"scrolled":""}`,ref:f,children:e.jsxs("div",{className:"glossary-header-container",children:[e.jsxs("div",{className:"search-section",children:[e.jsxs("div",{className:"search-input-container",children:[e.jsx(R,{icon:Bs,className:"search-icon"}),e.jsx("input",{type:"text",placeholder:"Search terms or definitions...",value:n,onChange:C=>{a(C.target.value),g(C.target.value)},onKeyPress:T,className:"search-input"})]}),e.jsx("button",{onClick:()=>g(),className:"search-button",children:"Search"})]}),e.jsxs("div",{className:"alphabet-navigation",children:[sf.map(C=>{const A=s.some(O=>O.header===C&&O.items&&O.items.length>0),y=l===C,k=r.some(O=>O.header===C&&O.items&&O.items.length>0);return e.jsx("a",{href:`#section-${C}`,onClick:O=>b(O,C),className:`alphabet-button ${A?"":"disabled"} ${y?"active":""} ${k?"":"hidden-section"}`,...A?{}:{"aria-disabled":"true",onClick:O=>O.preventDefault(),style:{pointerEvents:"none"}},children:C},C)}),e.jsx("div",{className:"alphabet-divider"}),e.jsx(L,{className:"submit-term-button",href:"#contact",color:"primary",fill:"outline",children:"Submit a term"})]})]})}),e.jsxs("div",{className:"glossary-block-container",children:[r.length===0?e.jsx("div",{className:"no-results",children:e.jsxs("p",{children:['No terms found matching "',n,'". Try a different search term.']})}):r.filter(C=>C.items&&C.items.length>0).map(C=>e.jsxs("div",{id:`section-${C.header}`,className:"glossary-section",children:[e.jsxs("div",{className:"section-header",children:[e.jsx("h2",{className:"section-letter",children:C.header}),e.jsxs("span",{className:"term-count",children:[C.items.length," term",C.items.length!==1?"s":""]})]}),e.jsx("div",{className:"terms-grid",children:C.items.map((A,y)=>e.jsxs("div",{id:ef(A.term),className:"term-card",children:[e.jsx("h3",{className:"term-title",children:A.term}),e.jsx("div",{className:"term-description",dangerouslySetInnerHTML:{__html:A.description}})]},y))})]},C.header)),o&&e.jsx("div",{className:"back-to-top",children:e.jsxs(L,{onClick:P,color:"primary",fill:"outline",children:[e.jsx(R,{icon:Kl}),"Back to top"]})})]})]})}function Sc({typeformId:s,title:t="Typeform",height:n="700px",width:a="100%"}){const r=t.replace(/<[^>]*>/g,"").trim();return e.jsx("div",{className:"quiz-iframe",children:e.jsx(Xl.Widget,{id:s,style:{width:a,height:n},iframeProps:{title:r},inlineOnMobile:!0})})}function nf({typeformId:s,title:t="Quiz",header:n,targetId:a,subtext:r}){return e.jsxs("section",{className:"quiz-wrapper",children:[e.jsx(oe,{targetId:a}),e.jsxs("div",{className:"quiz-block-container",children:[n&&e.jsxs("header",{children:[e.jsx(v,{documentHtml:n,as:"h2"}),r&&e.jsx(v,{documentHtml:r})]}),e.jsx(Sc,{typeformId:s,title:t})]})]})}const af={[re.ACCORDION]:_c,[re.BUTTON_LIST]:i2,[re.CALL_TO_ACTION]:Xp,[re.CARD_GRID]:Ea,[re.CAROUSEL]:ic,[re.FEATURED_BLOCKS]:e2,[re.GALLERY]:qt,[re.GLOSSARY]:tf,[re.CLICK_AND_PLEDGE]:o2,[re.CONTENT_GRID]:jc,[re.CONTENT_INDEX]:V2,[re.EVENT_CONTENT_CAROUSEL]:r2,[re.FORM]:_a,[re.GALLERY]:qt,[re.ICON_AND_TEXT_GRID]:Z2,[re.IMAGE_AND_TEXT_BLOCK]:B2,[re.LOCATIONS]:Kp,[re.MARQUEE]:oc,[re.OFFERINGS]:t2,[re.QUIZ]:nf,[re.TABS]:Q2,[re.TESTIMONIALS]:Nc,[re.TEXT_BLOCK]:K2,[re.TRAINERS]:Y2,[re.VIDEO]:ha};function st({acfComponents:s,isAuthenticated:t}){return!s||!Array.isArray(s)?null:e.jsx(e.Fragment,{children:s.map((n,a)=>{const{componentType:r,id:i,...o}=n,c=pt(af,r),l=i||`${r}-${a}`;return c?e.jsx(c,{...o,isAuthenticated:t},l):(console.warn(`Component not found for type: ${r}`),e.jsxs("div",{className:"unknown-component",children:[e.jsxs("h3",{children:["Component: ",r]}),e.jsx("p",{children:"Component not implemented yet"}),e.jsxs("details",{children:[e.jsx("summary",{children:"Component Data"}),e.jsx("pre",{children:JSON.stringify(o,null,2)})]})]},l))})})}function tt({type:s,headerHtml:t,subtext:n,button:a,buttonSecondary:r,featuredImage:i}){return e.jsx(e.Fragment,{children:t&&e.jsxs("header",{className:$("header-wrapper",{"text-only":s==="Text Only","single-image":s==="Single Image"}),children:[e.jsxs("div",{className:"header-block-outer",children:[e.jsx("div",{className:"header-block-container",children:e.jsxs("div",{className:"text-block",children:[e.jsx(v,{documentHtml:t,as:"h1"}),e.jsx(v,{documentHtml:n,as:"div"}),(a||r)&&e.jsxs("div",{className:"button-container",children:[(a==null?void 0:a.url)&&e.jsx(Be,{url:a.url,target:a.target,color:"primary",fill:"solid",size:"large",children:a.title}),(r==null?void 0:r.url)&&e.jsx(Be,{url:r.url,target:r.target,color:"secondary",fill:"solid",size:"large",children:r.title})]})]})}),s==="Single Image"&&i&&e.jsxs("div",{className:"media-block",children:[i&&e.jsx(Tt,{imageSrc:i.url||i.link,alt:i.altText||i.alt||"Featured image"}),e.jsx(z,{fullWidth:!0})]})]}),s==="Single Image"&&e.jsx(z,{fullWidth:!0})]})})}const rf={"sports-talk":74,"finance-tips":15,"book-lovers-club":12,"advocacy-chat":20};function of(s){return rf[s]}function va({children:s}){return e.jsx("div",{className:"community-layout community-block-container",children:s})}function cf(){return e.jsxs(va,{children:[e.jsx("p",{className:"sr-only",role:"status",children:"Loading group…"}),e.jsxs("div",{className:"group-show group-skeleton","aria-hidden":"true",children:[e.jsx(ge,{animated:!0,className:"group-skeleton__back-link"}),e.jsxs("div",{className:"group-skeleton__header",children:[e.jsx(ge,{animated:!0,className:"group-skeleton__cover"}),e.jsxs("div",{className:"group-skeleton__header-body",children:[e.jsx("div",{className:"group-skeleton__avatar-wrap",children:e.jsx(ge,{animated:!0,className:"group-skeleton__avatar"})}),e.jsxs("div",{className:"group-skeleton__identity",children:[e.jsx(ge,{animated:!0,className:"group-skeleton__meta"}),e.jsx(ge,{animated:!0,className:"group-skeleton__name"})]}),e.jsxs("div",{className:"group-skeleton__actions",children:[e.jsx(ge,{animated:!0,className:"group-skeleton__pill"}),e.jsx(ge,{animated:!0,className:"group-skeleton__pill group-skeleton__pill--wide"})]}),e.jsxs("div",{className:"group-skeleton__desc",children:[e.jsx(ge,{animated:!0,className:"group-skeleton__desc-line"}),e.jsx(ge,{animated:!0,className:"group-skeleton__desc-line group-skeleton__desc-line--short"})]})]})]}),e.jsxs("div",{className:"group-skeleton__tabs",children:[e.jsxs("div",{className:"group-skeleton__tab-list",children:[e.jsx(ge,{animated:!0,className:"group-skeleton__tab"}),e.jsx(ge,{animated:!0,className:"group-skeleton__tab"}),e.jsx(ge,{animated:!0,className:"group-skeleton__tab"}),e.jsx(ge,{animated:!0,className:"group-skeleton__tab"})]}),e.jsxs("div",{className:"group-skeleton__panel",children:[e.jsxs("div",{className:"group-skeleton__composer",children:[e.jsx(ge,{animated:!0,className:"group-skeleton__composer-avatar"}),e.jsx(ge,{animated:!0,className:"group-skeleton__composer-pill"})]}),e.jsxs("div",{className:"post-card group-skeleton__post",children:[e.jsx(ge,{animated:!0,className:"group-skeleton__post-meta"}),e.jsx(ge,{animated:!0,className:"group-skeleton__post-title"}),e.jsx(ge,{animated:!0,className:"group-skeleton__post-line"}),e.jsx(ge,{animated:!0,className:"group-skeleton__post-line group-skeleton__post-line--short"})]})]})]})]})]})}const La="communities",kr={group:null},Ec=Ce({name:La,initialState:kr,reducers:{resetGroup(s){s.group=kr.group}},extraReducers:s=>{s.addCase(wi,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.group={id:Number(n.id),...n.attributes}})),s.addCase(ki,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.group&&(t.group.posts=[hf(n.attributes),...t.group.posts??[]])}))}}),Mr=Ne.selectorForSlice(`root.${La}`),Rn={group:Mr("group"),isMember:Mr("group.isMember")},{resetGroup:lf}=Ec.actions,df=Ec.reducer;function uf(s,{title:t,content:n}){const a=t.trim();
4return{related_group:s.id,content_html:Bo(n),...a?{title:a}:{}}}function mf(s){return s&&(s.nickname||[s.firstName,s.lastName].filter(Boolean).join(" "))||"Member"}function hf(s){return{id:s.id,title:s.title||"",content:s.contentHtml,authorName:mf(s.member),timeLabel:Jl(new Date(s.createdAt),{addSuffix:!0})}}function pf({children:s}){const t=U(),{getToken:n}=K(),a=E(Rn.group),[r,i]=m.useState(!1),{groupId:o}=_e(),c=of(o);return m.useEffect(()=>{if(de(c))return;t(lf()),i(!1);async function l(){try{const d=await n();await t(wi(d,c))}catch(d){d instanceof Bt.HttpError&&(d.status===rs.NOT_FOUND||d.status===rs.BAD_REQUEST)||i(!0)}}l()},[t,n,c]),de(c)?e.jsx(cs,{to:N(x.ERROR_404)}):r?e.jsx(va,{children:e.jsx("div",{className:"group-show",children:e.jsx("p",{className:"group-show__load-error",role:"alert",children:"Sorry, we couldn’t load this group. Please try again."})})}):de(a)?e.jsx(cf,{}):s}const ff="/assets/login-image-1-ORzW2iNL.jpg",xf="/assets/login-image-2-BxCKziUk.jpg",gf="/assets/login-image-3-BpMJYnsw.jpg",jf="/assets/login-image-4-Bm33QBgo.jpg",Cf="/assets/login-image-5-Be6wLSFc.jpg";function rn({children:s,className:t,withBackground:n=!0,withBorder:a=!0,withScroll:r=!1}){return e.jsx("div",{className:$("panel-content-container",t,{"with-background":n,"with-border":a,"with-scroll":r}),children:s})}function on({children:s}){return e.jsx("div",{className:"side-by-side-content-container",children:s})}function Nf({"aria-label":s,children:t,name:n,isTouched:a,error:r="",label:i,labelPlacement:o,...c}){return e.jsxs("div",{className:"checkbox",children:[e.jsxs("div",{className:"checkbox__label",children:[e.jsx(Qn,{id:n,name:n,"aria-label":s,...c}),e.jsx("label",{htmlFor:n,children:t})]}),e.jsx(Cs,{isTouched:a,error:r,name:n})]})}const _f=ls()(Nf);function Sf({children:s,name:t,label:n="",isTouched:a,error:r="",labelComponent:i=null,labelProps:o={},className:c="",maskOptions:l={},...d}){const h=ed(l);return e.jsxs(ri,{ref:async p=>{if(!p)return;const f=await p.getInputElement();h(f)},className:$(c,{"ion-invalid":r,"ion-touched":a}),name:t,label:i||n===!1?void 0:n,errorText:r,...zn(d,"aria-describedby"),children:[i&&e.jsx("div",{slot:"label",children:e.jsx(i,{...o,children:n})}),s]})}const Ef=ls()(Sf);function zs({children:s,name:t,label:n,maskOptions:a,optional:r=!1,hint:i="",...o}){const c=`${t}-input`,l=`${t}-label`;return e.jsxs("div",{className:"stacked-label-input",children:[e.jsxs("label",{className:"stacked-label-input__label",id:l,tabIndex:-1,children:[n,r&&e.jsx("span",{className:"stacked-label-input__optional",children:" - Optional"})]}),e.jsx(Ef,{className:"stacked-label-input__input",id:c,inputId:c,"aria-labelledby":l,label:!1,maskOptions:a,name:t,...o,children:s}),e.jsx("p",{className:"stacked-label-input__hint",children:i})]})}const bf=!S("6LfWPdsrAAAAAHglJ_zJNLxgQFx5mFH4GEK2R-Xo");function Tf({initialValues:s,onSubmit:t,validationSchema:n}){const a=(r,i)=>{var c,l;const o={...r,firstName:(c=r.firstName)==null?void 0:c.trim(),lastName:(l=r.lastName)==null?void 0:l.trim()};return t(o,i)};return e.jsx(Te,{initialValues:s,onSubmit:a,validateOnBlur:!0,validateOnChange:!0,validationSchema:n,children:e.jsx(Af,{})})}function Af(){const[s,t]=m.useState(!1),{isSubmitting:n,errors:a,submitCount:r}=He(),{announceAssertive:i}=xe(),o=m.useRef(0),c=()=>{t(!s)};return m.useEffect(()=>{if(r>o.current&&!S(a)){const l=Object.keys(a).length;i(`Form has ${l} ${l===1?"error":"errors"}. Please review and correct.`)}o.current=r},[r,a,i]),e.jsxs(Ae,{className:"create-account-form",noValidate:!0,children:[e.jsx(he,{fill:"outline",label:"First Name",name:"firstName",placeholder:"Enter first name"}),e.jsx(he,{fill:"outline",label:"Last Name",name:"lastName",placeholder:"Enter last name"}),e.jsx(he,{fill:"outline",label:"Email",name:"email",placeholder:"Enter email"}),e.jsx(zs,{fill:"outline",label:"Cell Phone",maskOptions:ea,name:"cellPhone",placeholder:"Enter cell phone",optional:!0}),e.jsx(he,{fill:"outline",label:"Password",name:"password",placeholder:"Enter password",type:s?"text":"password",children:e.jsx(ar,{slot:"end",tabIndex:-1,onClick:c})}),e.jsx(he,{fill:"outline",label:"Confirm Password",name:"passwordConfirmation",placeholder:"Re-enter password",type:s?"text":"password",children:e.jsx(ar,{slot:"end",tabIndex:-1,onClick:c})}),e.jsxs(_f,{"aria-label":"I agree to the Terms of Service and Privacy Policy",labelPlacement:"end",mode:"md",
4name:"termsAgreement",required:!0,children:["By providing the email address and password above, you agree to our"," ",e.jsx("a",{href:Yt.AARP_TERMS_OF_SERVICE,target:"_blank",rel:"noopener noreferrer",children:"Terms of Service and Privacy Policy"}),"."]}),bf&&e.jsx(Ca,{name:"captcha"}),e.jsx(ds,{fill:"solid",color:"primary",submitting:n,children:"Create Free Account"})]})}function On(s){try{const{hostname:t,protocol:n}=new URL(s);return n!=="https:"?!1:eu.some(a=>t===a||t.endsWith(`.${a}`))}catch{return!1}}const bc=!S("6LfWPdsrAAAAAHglJ_zJNLxgQFx5mFH4GEK2R-Xo"),yf=js({firstName:Q().required("First name is required").test("not-empty-or-spaces","First name cannot be empty or contain only spaces",s=>s&&s.trim().length>0).test("no-and-word",'First name cannot contain the word "and"',s=>!/\band\b/i.test(s)).test("no-ampersands-slashes-or-plus","First name cannot contain ampersands (&), slashes (/), or plus signs (+)",s=>!/[&/+]/.test(s)),lastName:Q().required("Last name is required"),email:Q().email("Invalid email address").required("Email is required"),cellPhone:Q().nullable().test("is-valid-phone","Phone number is invalid",s=>{if(!s)return!0;const t=s.replace(/\D/g,"");return t?t.length===10&&sa.test(s):!0}),password:Q().test("password-requirements","Password is invalid",function(s){const t=[];s||t.push("Password is required"),(!s||s.length<cr)&&t.push(`Password must be at least ${cr} characters`),s&&/\s/.test(s)&&t.push("Password cannot contain spaces");let n=0;return s&&/[a-z]/.test(s)&&n++,s&&/[A-Z]/.test(s)&&n++,s&&/[0-9]/.test(s)&&n++,s&&/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(s)&&n++,n<3&&t.push("Password must contain at least 3 of: lowercase, uppercase, numbers, special characters"),t.length>0?this.createError({message:t.join(`
5`)}):!0}),passwordConfirmation:Q().required("Password confirmation is required").oneOf([td("password")],"Passwords must match"),termsAgreement:sd().oneOf([!0],"You must agree to the terms to continue"),...bc&&{captcha:Q().nullable().required("Please complete the captcha")}}),If={firstName:"",lastName:"",email:"",cellPhone:"",password:"",passwordConfirmation:"",termsAgreement:!1,...bc&&{captcha:null}},Pf=[ff,xf,gf,jf,Cf];function vf(){const s=as(ns.DESKTOP),{isAuthenticated:t,isLoading:n}=K(),a=U(),r=ce();if(ue(()=>{a(nh());const o=r.get(I.REDIRECT_URI);o&&On(o)&&a(oh(o))},[]),le(n||t?null:!0),t)return e.jsx(cs,{to:N(x.HOME)});const i=new ze({description:"Begin your Senior Planet journey! Create your account to access free online classes, articles, and resources that help older adults thrive in the digital age.",title:"Create Your Senior Planet Account – Step 1 | Join Our Community"});return e.jsxs(e.Fragment,{children:[e.jsx(X,{seo:i}),e.jsxs(on,{children:[e.jsx(Lf,{}),s&&e.jsx(Rf,{})]})]})}function Lf(){const s=U(),t=ce(),n=E(Re.redirectUri),{showErrorToast:a}=us(),r=te(),i=t.get(I.REDIRECT_URI),o=!!(i&&On(i)||n&&On(n)),c=async l=>{const{cellPhone:d,firstName:h,lastName:p,email:f,password:g}=l,j={cellPhone:d,email:f,firstName:h,lastName:p,password:g};try{await s(Oi(j)),delete j.password,s($o(j)),r.push(N(x.SIGN_UP,x.SETUP_PERSONAL_PROFILE),"forward","replace")}catch(b){b.status===rs.CONFLICT?a("An account with this email address already exists. Please sign in."):a("An error occurred during account creation. Please try again.")}};return e.jsx(rn,{withScroll:!0,children:e.jsxs("div",{className:"create-account-or-sign-in-panel",children:[o?e.jsx(F,{src:Wo,alt:"Senior Planet Community",className:"senior-planet-logo"}):e.jsx(F,{src:Xt,alt:"Senior Planet From AARP",className:"senior-planet-logo"}),e.jsx("h1",{className:"create-account-or-sign-in-panel__tagline",children:o?e.jsx(e.Fragment,{children:"Enter your information below to sign up for Senior Planet Community! Completing this process will allow you to log in to both SPC (community.seniorplanet.org) and the main Senior Planet website (seniorplanet.org)."}):"Join a community of lifelong learners for free"}),e.jsx(Tf,{initialValues:If,onSubmit:c,validationSchema:yf}),e.jsxs("p",{className:"create-account-or-sign-in-panel__sign-in-link",children:["Already have an account? ",e.jsx(Ks,{asLink:!0})]})]})})}function Rf(){return e.jsx(rn,{withBorder:!1,children:e.jsx("div",{className:"account-creation-images-p
5anel",children:e.jsx(Bn,{modules:[nd,ji],autoplay:{delay:3e3,pauseOnMouseEnter:!0},pagination:{clickable:!0},slidesPerView:1,children:Pf.map((s,t)=>e.jsx(qe,{children:e.jsx(F,{src:s,alt:""})},t))})})})}const Ra="dashboard",Of={activeMenuItem:"upcomingOnlineClasses",savedArticles:null,savedPodcasts:null,savedVideos:null,savedPuzzles:null,savedQuizzes:null,savedZoomResources:null,userProfileFormOptions:null},Tc=Ce({name:Ra,initialState:Of,reducers:{setActiveMenuItem(s,t){s.activeMenuItem=t.payload},resetUserProfile(s){s.userProfile=null}},extraReducers:s=>{s.addCase(Qt,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.userProfile=n.attributes})),s.addCase(Hi,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.savedArticles=n.map(({attributes:a})=>a)})),s.addCase(eo,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.savedPodcasts=n.map(({attributes:a})=>a)})),s.addCase(uo,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.savedVideos=n.map(({attributes:a})=>a)})),s.addCase(mo,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.savedPuzzles=n.map(({attributes:a})=>a)})),s.addCase(ho,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.savedQuizzes=n.map(({attributes:a})=>a)})),s.addCase(Su,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.upcomingOnlineClasses=n.map(({attributes:a})=>a)})),s.addCase(Eu,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.upcomingInPersonClasses=n.map(({attributes:a})=>a)})),s.addCase(bu,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.upcomingMultiWeekCourses=n.map(({attributes:a})=>a)})),s.addCase(vn,_.handleSuccess((t,{payload:{data:n}})=>{t.userProfileFormOptions=n}))}}),Fe=Ne.selectorForSlice(`root.${Ra}`),me={userProfile:Fe("userProfile"),activeMenuItem:Fe("activeMenuItem"),savedArticles:Fe("savedArticles"),savedPodcasts:Fe("savedPodcasts"),savedVideos:Fe("savedVideos"),savedPuzzles:Fe("savedPuzzles"),savedQuizzes:Fe("savedQuizzes"),userProfileFormOptions:Fe("userProfileFormOptions"),upcomingInPersonClasses:s=>{var t;return((t=Fe("userProfile")(s))==null?void 0:t.upcomingInPersonClasses)||[]},upcomingOnlineClasses:s=>{var t;return((t=Fe("userProfile")(s))==null?void 0:t.upcomingOnlineClasses)||[]},attendedOnlineClasses:s=>{var t;return((t=Fe("userProfile")(s))==null?void 0:t.attendedOnlineClasses)||[]},attendedInPersonClasses:s=>{var t;return((t=Fe("userProfile")(s))==null?void 0:t.attendedInPersonClasses)||[]}},{resetUserProfile:wf,setActiveMenuItem:Ac}=Tc.actions,kf=Tc.reducer;function Mf(){const s=U(),t=te(),n=E(me.activeMenuItem),a=E(me.userProfile),r=o=>{s(Ac(o))},i=()=>{t.push(N(x.LOGGED_OUT))};return e.jsxs("nav",{className:"dashboard-nav-menu",children:[zd.map((o,c)=>e.jsxs("div",{className:"nav-menu-section",children:[e.jsx("div",{className:"nav-menu-label",children:o.menuLabel}),e.jsx("div",{className:"nav-menu-items",children:o.menuItems.map((l,d)=>e.jsxs("button",{className:`nav-menu-item ${n===l.menuItemAction?"active":""}`,onClick:()=>r(l.menuItemAction),children:[e.jsx("span",{className:"menu-item-label",children:l.menuItemLabel}),pt(a,l.countKey)&&e.jsxs("span",{className:"menu-item-count",children:["(",pt(a,l.countKey).length,")"]})]},d))})]},c)),e.jsx("button",{className:"nav-menu-logout",onClick:i,children:"Log out"})]})}function Dr(s){if(S(s))return"";const t=Ie(s);return Oe(t,"MM/dd/yyyy")}ad.registerModules([rd]);function Ur({classes:s}){const t=m.useMemo(()=>[{field:"programName",headerName:"Program Name",flex:2,sortable:!0},{field:"programStartDate",headerName:"Start Date",flex:1,sortable:!0,sort:"desc",cellRenderer:a=>Dr(a.value)},{field:"trainerName",headerName:"Trainer",flex:1,sortable:!0},{field:"recording",headerName:"Recording",flex:1.5,sortable:!1,cellRenderer:a=>{const r=a.data;return r.recordingLink?e.jsxs("div",{className:"recording-info",children:[e.jsx("a",{href:r.recordingLink,target:"_blank",rel:"noopener noreferrer",className:"recording-link",children:"Watch now"}),r.recordingPassword&&e.jsxs("div",{className:"recording-password",children:["Password: ",r.recordingPassword]}),r.recordingExpirationDate&&e.jsxs("div",{className:"recording-expires",children:["Expires: ",Dr(r.recordingExpirationDate)]})]}):"Recording not available"}}
5,{field:"handouts",headerName:"Handouts",flex:1.5,sortable:!1,cellRenderer:a=>{var i;const r=(i=a.value)==null?void 0:i.split(",");return S(r)?"No handouts available":e.jsx("div",{className:"handouts-container",children:r.map((o,c)=>e.jsxs(Be,{url:o,target:"_blank",fill:"clear",size:"small",className:"handout-link",children:[e.jsx(R,{icon:Ci,slot:"start",color:"primary"}),e.jsx("span",{className:"handout-link-text",children:o.split("/").pop()})]},c))})}}],[]),n=m.useMemo(()=>({resizable:!0,sortable:!0,wrapText:!0,autoHeight:!0,cellStyle:{lineHeight:"1.4",whiteSpace:"normal",wordWrap:"break-word",padding:"12px 8px"}}),[]);return S(s)?e.jsx("div",{className:"empty-state",children:e.jsx("p",{children:"No attended classes found."})}):e.jsx("div",{className:"attended-classes-grid ag-theme-alpine",style:{width:"100%",minHeight:"400px",maxWidth:"none"},children:e.jsx(id,{rowData:s,columnDefs:t,defaultColDef:n,domLayout:"autoHeight",suppressHorizontalScroll:!1,animateRows:!0,getRowHeight:()=>"auto"})})}function yc({children:s,name:t,label:n,optional:a=!1,interface:r,...i}){const o=`${t}-select`,c=`${t}-label`,l=()=>r||(bn("mobile")||bn("mobileweb")?"action-sheet":"popover");return e.jsxs("div",{className:"stacked-label-select",children:[e.jsxs("label",{className:"stacked-label-select__label",id:c,children:[n,a&&e.jsx("span",{className:"stacked-label-select__optional",children:" - Optional"})]}),e.jsx(ys,{className:"stacked-label-select__select",id:o,"aria-labelledby":c,label:!1,name:t,interface:l(),...i,children:s})]})}function Ic(s){if(s==null||s==="")return"";let t=String(s).replace(/\D/g,"");return t.length===11&&t.startsWith("1")&&(t=t.slice(1)),t.length!==10?"":`${t.slice(0,3)}-${t.slice(3,6)}-${t.slice(6)}`}const Df=js({firstName:Q().required("First Name is required").test("not-empty-or-spaces","First Name is required",s=>s&&s.trim().length>0).test("no-and-word",'First Name cannot contain the word "and"',s=>!s||!/\band\b/i.test(s)).test("no-ampersands-slashes-or-plus","First Name cannot contain ampersands (&), slashes (/), or plus signs (+)",s=>!s||!/[&/+]/.test(s)),lastName:Q().required("Last Name is required").test("not-empty-or-spaces","Last Name is required",s=>s&&s.trim().length>0),username:Q().required("Username is required").test("not-empty-or-spaces","Username is required",s=>s&&s.trim().length>0),cellPhone:Q().nullable().test("is-valid-phone","Phone number is invalid",s=>{if(!s)return!0;const t=s.replace(/\D/g,"");return t?t.length===10&&sa.test(s):!0})});function Uf({initialValues:s={},onSubmit:t,userProfileFormOptions:n,topicsOfInterest:a}){var l;const r=((l=n==null?void 0:n.locations)==null?void 0:l.map(d=>({key:d.label,value:d.value})))||[],i=a.map(d=>({key:d.name,value:d.name})),o={...s,cellPhone:Ic((s==null?void 0:s.cellPhone)??"")},c=(d,h)=>{var f,g,j,b;const p={...d,firstName:(f=d.firstName)==null?void 0:f.trim(),lastName:(g=d.lastName)==null?void 0:g.trim(),preferredName:(j=d.preferredName)==null?void 0:j.trim(),username:(b=d.username)==null?void 0:b.trim()};return t(p,h)};return e.jsx(Te,{initialValues:o,onSubmit:c,validateOnBlur:!0,validationSchema:Df,children:e.jsx(Hf,{locationOptions:r,topicOptions:i})})}function Hf({locationOptions:s,topicOptions:t}){const{isSubmitting:n,errors:a,submitCount:r}=He(),{announceAssertive:i}=xe(),o=m.useRef(0);return m.useEffect(()=>{if(r>o.current&&!S(a)){const c=Object.keys(a).length;i(`Form has ${c} ${c===1?"error":"errors"}. Please review and correct.`)}o.current=r},[r,a,i]),e.jsxs(Ae,{className:"user-profile-form",noValidate:!0,children:[e.jsxs("div",{className:"user-profile-form__inputs",children:[e.jsxs("div",{className:"fields-group",children:[e.jsx("div",{className:"field",children:e.jsx(he,{fill:"outline",label:"First Name",name:"firstName",placeholder:"Enter your first name",autoComplete:"given-name"})}),e.jsx("div",{className:"field",children:e.jsx(he,{fill:"outline",label:"Last Name",name:"lastName",placeholder:"Enter your last name",autoComplete:"family-name"})}),e.jsx("div",{className:"field",children:e.jsx(he,{fill:"outline",label:"Preferred Name",name:"preferredName",placeholder:"Enter your preferred name",optional:!0})}),e.jsx("div",{className:"field",children:e.jsx(he,{fill:"outline",label:"Username",name:"username",placeholder:"Enter your username"})}),e.jsxs("div",{className:"field field-with-note",children:[e.jsx(he,{fill:"outline",label:"Email",n
5ame:"email",type:"email",placeholder:"Enter your email",autoComplete:"email",disabled:!0}),e.jsxs("p",{className:"user-profile-form__email-note",children:["In order to change your email address,"," ",e.jsx("a",{href:"mailto:[email protected]",children:"contact support"}),"."]})]}),e.jsx("div",{className:"field",children:e.jsx(zs,{fill:"outline",label:"Cell Phone",name:"cellPhone",maskOptions:ea,placeholder:"Enter your cell phone number",autoComplete:"tel",optional:!0})}),e.jsx("div",{className:"field",children:e.jsx(yc,{label:"Senior Planet Location",name:"location",options:s,placeholder:"Select your location",fill:"outline",optional:!0})})]}),!S(t)&&e.jsxs("fieldset",{className:"checkbox-group user-profile-form__topics-section",children:[e.jsx("legend",{children:"Topics of Interest"}),e.jsx("p",{className:"user-profile-form__topics-description",children:"These options help us create content types that are tailored just for you."}),e.jsx(nn,{label:!1,name:"topicsOfInterest",options:t,checkboxInputProps:{labelPlacement:"end"}})]})]}),e.jsx("div",{className:"user-profile-form__actions",children:e.jsx(ds,{fill:"solid",color:"primary",disabled:n,submitting:n,children:n?"Saving...":"Save Profile"})})]})}function Ff({titleHtml:s,season:t,episode:n,guest:a,guestTitle:r,guestCompany:i,contentHtml:o,slug:c,featuredImage:l}){const d=ba(t,n,s),h=Ta(a,r,i),p=lc(o);return e.jsxs(ke,{className:"content-card dashboard-podcast-card",routerLink:N(x.PODCASTS,c),role:"link",children:[e.jsx("div",{className:"content-image",children:e.jsx(F,{src:(l==null?void 0:l.link)||es,alt:(l==null?void 0:l.altText)||""})}),e.jsx(we,{children:e.jsx("div",{className:"content-header",children:e.jsxs("div",{className:"content-body",children:[e.jsx(v,{as:"h3",documentHtml:d}),h&&e.jsx(v,{as:"p",documentHtml:h}),p&&e.jsx(v,{as:"div",documentHtml:p,className:"content-excerpt"})]})})})]})}function qf({image:s,titleHtml:t,slug:n,contentHtml:a,excerptHtml:r}){const i=r||a;return e.jsxs(ke,{className:"content-card dashboard-quiz-card",routerLink:N(x.QUIZZES,n),role:"link",children:[e.jsx("div",{className:"content-image",children:e.jsx(F,{src:(s==null?void 0:s.url)||es,alt:(s==null?void 0:s.altText)||""})}),e.jsx(we,{children:e.jsx("div",{className:"content-header",children:e.jsxs("div",{className:"content-body",children:[e.jsx(v,{as:"h3",documentHtml:t}),i&&e.jsx(v,{as:"p",documentHtml:i,className:"content-excerpt"})]})})})]})}function $f(s){var t,n,a,r;return((n=(t=s==null?void 0:s.payload)==null?void 0:t.data)==null?void 0:n.errors)||((r=(a=s==null?void 0:s.response)==null?void 0:a.data)==null?void 0:r.errors)||(s==null?void 0:s.errors)||[]}function zf(){const s=U(),t=E(me.activeMenuItem),n=E(me.savedArticles),a=E(me.savedPodcasts),r=E(me.savedVideos),i=E(me.savedPuzzles),o=E(me.savedQuizzes),c=E(me.attendedInPersonClasses),l=E(me.attendedOnlineClasses),d=E(me.upcomingInPersonClasses),h=E(me.upcomingOnlineClasses),p=E(q.userProfile),f=E(me.userProfileFormOptions),g=E(q.primaryTopics),{getToken:j}=K(),{showSuccessToast:b,showErrorToast:P}=us(),T=async(se,W)=>{try{const at=await j();await s(Tu(at,se)),b("Profile updated successfully!")}catch(at){$f(at).forEach(({attribute:un,title:nr})=>{!un||!nr||(W==null||W.setFieldTouched(un,!0,!1),W==null||W.setFieldError(un,nr))}),P("Failed to update profile. Please try again.")}},C=se=>e.jsx("div",{className:"empty-state",children:e.jsx("p",{children:se})}),A=(se,W,at)=>se===null?e.jsx("div",{className:"loading-state",children:e.jsx(Je,{})}):S(se)?C(at):e.jsx("section",{className:"content-index",children:e.jsx("div",{className:"content-index-cards content-grid",children:W(se)})}),y=()=>A(n,se=>se.map(W=>e.jsx(As,{...W.data},W.data.id)),"No saved articles found."),k=()=>A(a,se=>se.map(W=>e.jsx(Ff,{...W.data},W.data.id)),"No saved podcast found."),O=()=>A(r,se=>se.map(W=>e.jsx(ft,{...W.data},W.data.id)),"No saved videos found."),B=()=>A(i,se=>se.map(W=>e.jsx(pc,{...W},W.id)),"No saved puzzles found."),ee=()=>A(o,se=>se.map(W=>e.jsx(qf,{...W},W.id)),"No saved quizzes found."),Ee=()=>A(c,se=>e.jsx(Ur,{classes:se}),"No attended in-person classes found."),Me=()=>A(l,se=>e.jsx(Ur,{classes:se}),"No attended online classes found."),De=()=>A(d,se=>se.map(W=>e.jsx(Ze,{...W.data},W.data.id)),"No upcoming in-person classes found."),Ue=()=>A(h,se=>se.map(W=>e.jsx(Ze,{...W.data},W.data.id)),"No upcoming online classes found."),hs=()=>{const se=g.filter(({slug:W})=>!Dt.includes(W));return e.jsx(Uf,{initialValues:{firstName:p.firstName,lastName:p.lastName,preferredName:p.preferredName,username:p.username,email:p.email,cellPhone:p.phone,location:p.location,topicsOfInterest:p.topicsOfInterest||[]},onSubmit:T,userProfileFormOptions:f,topicsOfInterest:se})},ul=()=>e.jsx("div",{className:"empty-state",children:e.jsx("p",{children:"Select a menu item to view content"})}),ml=()=>{switch(t){case"savedArticles":return y();case"savedPodcasts":return k();case"savedVideos":return O();case"savedPuzzles":return B();case"savedQuizzes":return ee();case"attendedInPersonClasses":return Ee();case"attendedOnlineClasses":return Me();case"upcomingInPersonClasses":return De();case"upcomingOnlineClasses":return Ue();case"profileSettings":return hs();default:return ul()}};return e.jsxs("div",{className:"dashboard-viewer",children:[e.jsx("header",{className:"section-header",children:e.jsx("h2",{children:ai(t)})}),e.jsx("div",{className:"section-content",children:ml()})]})}function Gf(){const s=new ze({description:"Access your personalized Senior Planet dashboard. View upcoming classes, attended classes, and saved content all in one place.",title:"My Dashboard - Senior Planet from AARP Member Portal"});return e.jsxs("div",{className:"dashboard-layout",children:[e.jsx(X,{seo:s}),e.jsx("header",{className:"dashboard-header",children:e.jsx("h1",{children:"My Dashboard"})}),e.jsxs("div",{className:"dashboard-content",children:[e.jsx("aside",{className:"dashboard-sidebar",children:e.jsx(Mf,{})}),e.jsx("main",{className:"dashboard-main",children:e.jsx(zf,{})})]})]})}function Vf({children:s}){const t=U(),n=ce(),a=E(me.userProfile),r=E(me.activeMenuItem),i=E(me.savedArticles),o=E(me.savedPodcasts),c=E(me.savedVideos),l=E(me.savedPuzzles),d=E(me.savedQuizzes),h=E(me.userProfileFormOptions),{getToken:p}=K(),f=m.useCallback(async(g,j)=>{if(!(!g||!j))try{switch(g){case"savedArticles":S(i)&&await t(Hi(j.savedArticleIds));break;case"savedPodcasts":S(o)&&await t(eo(j.savedPodcastIds));break;case"savedVideos":S(c)&&await t(uo(j.savedVideoIds));break;case"savedPuzzles":S(l)&&await t(mo(j.savedPuzzleIds));break;case"savedQuizzes":S(d)&&await t(ho(j.savedQuizIds));break;case"profileSettings":h||await t(vn());break;default:break}}catch{}},[t,i,o,c,l,d,h]);return ue(async()=>{t(wf());const g=await p();await t(Qt(g)),await t(vn())},[t,p]),m.useEffect(()=>{const g=n.get(I.TAB),j=g?Gd[g]:void 0;j&&t(Ac(j))},[t,n]),m.useEffect(()=>{r&&a&&f(r,a)},[r,a,f,h]),a?s:e.jsx(ne,{})}function Bf(){return le(!0),e.jsxs(e.Fragment,{children:[e.jsxs(Ws,{defer:!1,children:[e.jsx("meta",{name:"prerender-status-code",content:"404"}),e.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),e.jsx("div",{className:"error-404",children:e.jsxs("div",{className:"error-404__container",children:[e.jsxs("div",{className:"error-404__header",children:[e.jsx("p",{className:"error-404__error-code",children:"404 ERROR"}),e.jsxs("h1",{className:"error-404__title",children:["We can't find the page you're looking for."," ",e.jsx("strong",{children:"Sorry about that."})]})]}),e.jsxs("div",{className:"error-404__actions",children:[e.jsxs("div",{className:"error-404__action-item",children:[e.jsx("span",{className:"error-404__icon",role:"img","aria-label":"wave",children:"👋"}),e.jsxs("div",{className:"error-404__action-content",children:[e.jsx("h2",{className:"error-404__action-title",children:"Return to Homepage"}),e.jsxs("p",{className:"error-404__action-text",children:["Looks like this page took a wrong turn. Let's head"," ",e.jsx(Y,{href:N(x.ROOT),children:"back to the homepage"})," ","and get you to something good."]})]})]}),e.jsxs("div",{className:"error-404__action-item",children:[e.jsx("span",{className:"error-404__icon",role:"img","aria-label":"backpack",children:"🎒"}),e.jsxs("div",{className:"error-404__action-content",children:[e.jsx("h2",{className:"error-404__action-title",children:"Explore Classes"}),e.jsxs("p",{className:"error-404__action-text",children:["This page might be missing, but your next great class isn't."," ",e.jsx(Y,{href:N(x.ONLINE_CLASSES),children:"Explore classes"})," ","and see what inspires you."]})]})]}),e.jsxs("div",{className:"error-404__action-item",children:[e.jsx("span",{className:"error-404__icon",role:"img","aria-label":"speech bubble",children:"💬"}),e.jsxs("div",{className:"error-404__action-content",children:[e.jsx("h2",{className:"error-404__action-title",children:"Contact Us"}),e.jsxs("p",{className:"error-404__action-text",children:["Need some extra help?"," ",e.jsx(Y,{href:N(Z.CONTACT_US),children:"Reach out"})," ","so we can help you find your way."]})]})]})]})]})})]})}function Oa({children:s,pageTitle:t}){return e.jsx(rn,{children:e.jsxs("div",{className:"profile-and-preferences-container",children:[e.jsx(F,{src:Xt,alt:"Senior Planet logo",className:"profile-and-preferences-container__senior-planet-logo"}),e.jsx("h1",{children:t}),s]})})}const Wf="/assets/profile-and-preferences-B4o3Zmt3.png";
5function wa(){return e.jsx(rn,{withBackground:!1,withBorder:!1,children:e.jsx("div",{className:"profile-and-preferences-image-panel",children:e.jsx(F,{src:Wf,alt:""})})})}function Yf({stepNumber:s,totalSteps:t}){return e.jsx("div",{className:"progress-indicator",children:Array.from({length:t}).map((n,a)=>e.jsx("div",{className:`progress-indicator__progress ${a<s?"progress-indicator__progress__completed":"progress-indicator__progress__remaining"}`},a))})}function ka({backUrl:s,forwardButtonText:t="Continue",forwardUrl:n,stepNumber:a,totalSteps:r,withBackButton:i=!0,withSkipButton:o=!0}){const c=te();return e.jsxs("div",{className:"profile-and-preferences-actions",children:[e.jsx(Yf,{stepNumber:a,totalSteps:r}),e.jsxs("div",{className:"profile-and-preferences-actions__navigation-actions",children:[o&&e.jsx(L,{fill:"clear",onClick:()=>c.push(n,"forward","replace"),children:"Skip"}),e.jsxs("div",{className:"profile-and-preferences-actions__navigation-buttons",children:[i&&e.jsx(L,{fill:"outline",color:"medium",onClick:()=>c.push(s,"back","replace"),children:"Back"}),e.jsx(ds,{fill:"solid",color:"primary",children:t})]})]})]})}function Zf({initialValues:s,locationOptions:t,onSubmit:n,validationSchema:a}){const r=(t==null?void 0:t.map(i=>({key:i.label,value:i.value})))||[];return e.jsx(Te,{initialValues:s,onSubmit:n,validateOnBlur:!0,validateOnChange:!0,validationSchema:a,children:e.jsx(Qf,{locationOptions:r})})}function Qf({locationOptions:s}){const{errors:t,submitCount:n}=He(),{announceAssertive:a}=xe(),r=m.useRef(0);return m.useEffect(()=>{if(n>r.current&&!S(t)){const i=Object.keys(t).length;a(`Form has ${i} ${i===1?"error":"errors"}. Please review and correct.`)}r.current=n},[n,t,a]),e.jsxs(Ae,{className:"profile-and-preferences-form",noValidate:!0,children:[e.jsxs("div",{className:"profile-and-preferences-form__inputs",children:[e.jsx(zs,{fill:"outline",label:"What's your zip / postal code?",maskOptions:Li,name:"zipCode",placeholder:"Enter zip or postal code"}),e.jsx(yc,{fill:"outline",label:"Senior Planet Center Location",name:"location",options:s,placeholder:"Select your location",optional:!0}),e.jsx(zs,{fill:"outline",hint:"Don't worry, this is never shared outside of Senior Planet.",label:"What's your date of birth?",maskOptions:$d,name:"dateOfBirth",optional:!0,placeholder:"MM/DD/YYYY"})]}),e.jsx(ka,{backUrl:N(x.SIGN_UP,x.PREFERENCES_AND_GOALS),forwardButtonText:"Finish",forwardUrl:N(x.SIGN_UP,x.PROCESSING_ACCOUNT_CREATION),stepNumber:3,totalSteps:Jn,withSkipButton:!1})]})}const Kf=/^(\d{5}(-\d{4})?|[A-Za-z]\d[A-Za-z]\s?\d[A-Za-z]\d)$/,Xf=js({dateOfBirth:Q().min(10),location:Q(),zipCode:Q().required("Zip / postal code is required").matches(Kf,`Enter a valid US Zip or Canadian postal code.
6Live elsewhere? Contact our hotline at 888-713-3495 or [email protected] for support.`)}),Jf={dateOfBirth:"",location:"",zipCode:""};function ex(){var p;const s=as(ns.DESKTOP),t=U(),n=te(),{isAuthenticated:a}=K(),r=E(Re.userAccountIdentifiers),i=E(q.userProfile),o=E(Re.finalDetails)||Jf,c=E(Re.locationOptions);m.useEffect(()=>{c||t(Co())},[t,c]);const l=f=>{const{dateOfBirth:g,location:j,zipCode:b}=f,P=b.toUpperCase().replace(/^([A-Z]\d[A-Z])(\d[A-Z]\d)$/,"$1 $2");if(!S(g)||!S(j)||!S(P)){const C={dateOfBirth:S(g)?"":ht(od(g,"MM/dd/yyyy",new Date),{representation:"date"}),location:j,zipCode:P};t(ah(C))}n.push(N(x.SIGN_UP,x.PROCESSING_ACCOUNT_CREATION),"forward","replace")};if(!(!S(r)||a&&((p=i==null?void 0:i.userAccount)==null?void 0:p.hasLoggedIn)===!1))return e.jsx(cs,{to:N(x.SIGN_UP)});const h=new ze({description:"You're almost done! Review your details and confirm your account to start exploring Senior Planet's free resources, classes, and community events.",title:"Complete Your Senior Planet Sign-Up - Step 4 | Confirm Details"});return e.jsxs(e.Fragment,{children:[e.jsx(Et,{}),e.jsx(X,{seo:h}),e.jsxs(on,{children:[e.jsx(Oa,{pageTitle:"Lastly, some final details about you",children:c&&e.jsx(Zf,{initialValues:o,locationOptions:c,onSubmit:l,validationSchema:Xf})}),s&&e.jsx(wa,{})]})]})}const sx=s=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...s},m.createElement("rect",{x:2,y:5,width:20,height:14,rx:2}),m.createElement("text",{x:12,y:15.5,textAnchor:"middle",fontSize:8,fontWeight:700,fill:"currentColor",stroke:"none"},"GIF")),tx=s=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...s},m.createElement("rect",{x:3,y:3,width:18,height:18,rx:2,ry:2}),m.createElement("circle",{cx:8.5,cy:8.5,r:1.5}),m.createElement("polyline",{points:"21 15 16 10 5 21"})),nx=s=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...s},m.createElement("circle",{cx:12,cy:12,r:10}),m.createElement("polygon",{points:"10 8 16 12 10 16 10 8"})),ax=[{id:"seed-1",title:"Welcome to the group!",content:"<p>Say hello and introduce yourself. Share what brought you here and what you’re hoping to learn together.</p>",authorName:"Jamie Rivera",timeLabel:"2 hours ago"},{id:"seed-2",title:"",content:"<p>A few tips to get started:</p><ul><li>Be kind and welcoming</li><li>Keep it on topic</li><li>Ask questions — someone here can help</li></ul>",authorName:"Robert K.",timeLabel:"4 hours ago"}],Hr=120,rx=js({title:Q().max(Hr,`Title cannot exceed ${Hr} characters`),content:Q().required("Please write something to post.")}),ix=m.lazy(()=>cd(()=>import("../RichTextEditor-CXWaLGI-.js"),__vite__mapDeps([0,1,2]))),ox={title:"",content:""};function cx({onSubmit:s,onMentionSearch:t}){return e.jsx(Te,{initialValues:ox,validationSchema:rx,onSubmit:s,validateOnChange:!1,validateOnBlur:!1,children:e.jsx(lx,{onMentionSearch:t})})}function lx({onMentionSearch:s}
6){const{isSubmitting:t,errors:n,submitCount:a,status:r}=He(),{announceAssertive:i}=xe(),o=m.useRef(0);return m.useEffect(()=>{if(a>o.current&&!S(n)){const c=Object.keys(n).length;i(`Form has ${c} ${c===1?"error":"errors"}. Please review and correct.`)}o.current=a},[a,n,i]),e.jsxs(Ae,{noValidate:!0,className:"create-post-form",children:[e.jsx(he,{name:"title",label:"Title",placeholder:"Add a title (optional)"}),e.jsxs("div",{className:"create-post-form__field",children:[e.jsx("span",{className:"create-post-form__label",children:"Body"}),e.jsx(dx,{onMentionSearch:s})]}),(r==null?void 0:r.error)&&e.jsx("p",{className:"create-post-form__error",role:"alert",children:r.error}),e.jsx(ds,{submitting:t,expand:"block",fill:"solid",color:"primary",children:"Post"})]})}function dx({onMentionSearch:s}){const{setFieldValue:t}=He(),[,n]=Ct("content"),a=m.useCallback(({html:r,isEmpty:i})=>t("content",i?"":r,!0),[t]);return e.jsxs(e.Fragment,{children:[e.jsx(m.Suspense,{fallback:e.jsx(ne,{message:"Loading editor..."}),children:e.jsx(ix,{onChange:a,mentionSearch:s})}),n.touched&&n.error&&e.jsx("p",{className:"create-post-form__error",children:n.error})]})}function ux({isOpen:s,groupName:t,onSubmit:n,onMentionSearch:a,onDismiss:r}){return e.jsx(os,{className:$("modal","create-post-modal"),isOpen:s,"aria-label":"Create post",onDidDismiss:r,children:e.jsxs("div",{className:"create-post",children:[e.jsxs("header",{className:"create-post__header",children:[e.jsx("h2",{className:"create-post__title",children:"Create post"}),e.jsx("button",{type:"button",className:"create-post__close","aria-label":"Close",onClick:r,children:"×"})]}),e.jsxs("div",{className:"create-post__body",children:[e.jsxs("p",{className:"create-post__target",children:["Posting in ",e.jsx("strong",{children:t})]}),s&&e.jsx(cx,{onSubmit:n,onMentionSearch:a})]})]})})}function mx({name:s,groupType:t,membersCount:n,isMember:a,onMembershipClick:r,onCreatePost:i,coverImage:o,avatarImage:c,descriptionHtml:l}){return e.jsxs("header",{className:"group-header",children:[e.jsx("div",{className:$("group-header__cover",{"group-header__cover--empty":!o}),style:o?{backgroundImage:`url(${o})`}:void 0}),e.jsxs("div",{className:"group-header__body",children:[e.jsx("div",{className:"group-header__avatar-wrap",children:e.jsx("div",{className:"group-header__avatar","aria-hidden":"true",children:c?e.jsx("img",{className:"group-header__avatar-image",src:c,alt:""}):e.jsx(R,{icon:Ni})})}),e.jsxs("div",{className:"group-header__identity-text",children:[e.jsxs("p",{className:"group-header__meta",children:[t," · ",n.toLocaleString()," members"]}),e.jsx("h1",{className:"group-header__name",children:s})]}),l&&e.jsx("div",{className:"group-header__description",children:e.jsx(v,{as:"div",documentHtml:l})}),e.jsxs("div",{className:"group-header__actions",children:[e.jsxs("button",{type:"button",className:$("group-header__membership",{"group-header__membership--joined":a}),onClick:r,children:[a&&e.jsx("span",{className:"group-header__button-icon","aria-hidden":"true",children:"✓"}),a?"Joined":"Join Group"]}),e.jsxs("button",{type:"button",className:"group-header__create-post",onClick:i,children:[e.jsx("span",{className:"group-header__button-icon","aria-hidden":"true",children:"+"}),"Create Post"]})]})]})]})}function hx({isOpen:s,groupName:t,onJoin:n,onDismiss:a}){return e.jsx(os,{className:$("modal","group-join-prompt-modal"),isOpen:s,"aria-label":"Join This Group To Start Posting",onDidDismiss:a,children:e.jsxs("div",{className:"group-join-prompt",children:[e.jsxs("header",{className:"group-join-prompt__header",children:[e.jsx("h2",{className:"group-join-prompt__title",children:"Join This Group To Start Posting"}),e.jsx("button",{type:"button",className:"group-join-prompt__close","aria-label":"Close",onClick:a,children:"×"})]}),e.jsxs("div",{className:"group-join-prompt__body",children:[e.jsxs("p",{className:"group-join-prompt__message",children:["Join ",e.jsx("strong",{children:t})," to share a post and take part in the conversation."]}),e.jsxs("div",{className:"group-join-prompt__actions",children:[e.jsx("button",{type:"button",className:"group-join-prompt__join",onClick:n,children:"Join Group"}),e.jsx("button",{type:"button",className:"group-join-prompt__not-now",onClick:a,children:"Not Now"})]})]})]})})}const fn=[{id:"feed",label:"Feed"},{id:"members",label:"Members"},{id:"photos",label:"Photos"},{id:"videos",label:"Videos"}],Fr="feed";function px({label:s}){return e.jsxs("div",{className:"group-tabs__placeholder",children:[e.jsx("p",{className:"group-tabs__placeholder-title",children:"Coming soon"}),e.jsxs("p",{className:"group-tabs__placeholder-text",children:["The ",s," tab is coming soon."]})]})}function fx({children:s}){const{activeTabId:t,getTabProps:n,getTabPanelProps:a}=Cc({tabIds:fn.map(r=>r.id),defaultTabId:Fr,namespace:"group"});return e.jsxs("div",{className:"group-tabs",children:[e.jsx("div",{className:"group-tabs__list",role:"tablist","aria-label":"Group sections",children:fn.map(r=>e.jsx("button",{className:$("group-tabs__tab",{"group-tabs__tab--active":r.id===t}),...n(r.id),children:r.label},r.id))}),e.jsx("div",{className:"group-tabs__panel",...a(),children:t===Fr?s:e.jsx(px,{label:fn.find(r=>r.id===t).label})})]})}function xx(){const s=U(),{getToken:t}=K(),n=E(Rn.group),a=E(Rn.isMember),[r,i]=m.useState(!1),[o,c]=m.useState(!1),[l,d]=m.useState(null),h=()=>{d(crypto.randomUUID()),i(!0)},p=()=>{i(!1),d(null)},f=()=>{a?h():c(!0)},g=()=>c(!1),j=()=>c(!1),b=async({title:C,content:A},{setStatus:y})=>{y(void 0);try{const k=await t();await s(ki(k,uf(n,{title:C,content:A}),l))}catch{y({error:"Sorry, your post could not be shared. Please try again."});return}p()},P=m.useCallback(async(C,A)=>{const y=await t();return s(Nu(y,n==null?void 0:n.id,C,A))},[s,t,n==null?void 0:n.id]),T=[...n.posts??[],...ax];return e.jsx(va,{children:e.jsxs("div",{className:"group-show",children:[e.jsxs("span",{className:"group-show__back-link",children:[e.jsx("span",{className:"group-show__back-link-chevron","aria-hidden":"true",children:"‹"}),"Back to Groups"]}),e.jsx(mx,{name:n.name,groupType:n.groupType,membersCount:n.membersCount,descriptionHtml:n.descriptionHtml,coverImage:n.coverImage,avatarImage:n.avatarImage,isMember:a,onMembershipClick:j,onCreatePost:f}),e.jsxs(fx,{children:[e.jsxs("section",{className:"group-show__composer",children:[e.jsx("div",{className:"group-show__composer-avatar","aria-hidden":"true",children:e.jsx(R,{icon:Ni})}),e.jsx("button",{type:"button",className:"group-show__composer-trigger",onClick:f,children:"What’s on your mind?"}),e.jsxs("div",{className:"group-show__composer-actions",children:[e.jsx("button",{type:"button",className:"group-show__composer-action","aria-label":"Add video",onClick:f,children:e.jsx(nx,{"aria-hidden":"true",focusable:"false"})}),e.jsx("button",{type:"button",className:"group-show__composer-action","aria-label":"Add photo",onClick:f,children:e.jsx(tx,{"aria-hidden":"true",focusable:"false"})}),e.jsx("button",{type:"button",className:"group-show__composer-action","aria-label":"Add GIF",onClick:f,children:e.jsx(sx,{"aria-hidden":"true",focusable:"false"})})]})]}),e.jsx("ol",{className:"group-show__feed",children:T.map(C=>e.jsxs("li",{className:"post-card",children:[e.jsxs("p",{className:"post-card__meta",children:[C.authorName," · ",C.timeLabel]}),C.title&&e.jsx("h2",{className:"post-card__title",children:C.title}),e.jsx(v,{documentHtml:C.content})]},C.id))})]}),e.jsx(ux,{isOpen:r,groupName:n.name,onSubmit:b,onMentionSearch:P,onDismiss:p}),e.jsx(hx,{isOpen:o,groupName:n.name,onJoin:j,onDismiss:g})]})})}function gx(){const s=U(),t=E(hh.homePage),{getToken:n,isAuthenticated:a}=K();le(t);const r=m.useCallback(async()=>
6{if(t)return;let i=null;if(a)try{i=await n()}catch{i=null}s(qi(i))},[s,n,t,a]);return ue(()=>{r()},[r]),t?e.jsxs(e.Fragment,{children:[e.jsx(X,{seo:t.seo}),e.jsx(Se,{status:t.status,id:t.id}),e.jsx(tt,{...t.header}),e.jsx(st,{acfComponents:t.acfComponents})]}):e.jsx(ne,{})}function jx(){return e.jsxs(e.Fragment,{children:[e.jsx(Ws,{defer:!1,children:e.jsx("meta",{name:"robots",content:"noindex, nofollow"})}),e.jsx("div",{children:e.jsxs("div",{style:{border:"1px solid black",padding:"20px",marginBottom:"20px"},children:[e.jsx("h3",{children:"Internal tech help booking"}),e.jsx("iframe",{src:"https://cms.seniorplanet.org/internal-tech-help-booking/",title:"Internal tech help booking",width:"100%",height:1200,style:{border:0}})]})})]})}function cn({location:s,hideLink:t=!1}){const{address:n,centerName:a,mainPhone:r,hours:i,visitUs:o}=s,c=It(s);return S(a)||S(n)?null:e.jsx("section",{className:"visit-wrapper",children:e.jsx("div",{className:"visit-block-container",children:e.jsxs("div",{className:"container-inner",children:[e.jsxs("div",{className:"text-block",children:[e.jsxs("header",{children:[e.jsx("h2",{children:e.jsx(D,{id:"location.hostedIn",values:{centerName:a,b:l=>e.jsx("strong",{children:l})}})}),o.text&&e.jsx("p",{children:o.text})]}),e.jsxs("div",{className:"contact-block",children:[c&&e.jsxs("p",{children:["📍 ",e.jsx("strong",{children:c})]}),i&&e.jsxs("p",{children:["🕐 ",e.jsx("strong",{children:i})]}),r&&e.jsxs("p",{children:["📞"," ",e.jsx("strong",{children:e.jsx("a",{href:`tel:${r}`,children:r})})," "]})]}),!t&&e.jsxs(L,{routerLink:N(x.LOCATIONS,s.slug,Z.ABOUT_US),color:"primary",fill:"solid",children:[e.jsx(D,{id:"location.learnMore"})," ",e.jsx(R,{icon:gs})]})]}),e.jsx("div",{className:"media-block",children:e.jsx(F,{src:o.mapImage,alt:o.mapImageAlt||`Map showing location of ${a} at ${c}`})})]})})})}function Pc(){const s=U(),{getToken:t,isAuthenticated:n}=K(),a=E(q.userProfile),r=E(q.upcomingOnlineClasses);return m.useCallback((i,o={})=>{const{skipIfRegistered:c=!1,existingRegistration:l}=o,d=i==null?void 0:i.salesforceRecordId;if(!n||!d||c&&l)return;async function h(){try{const p=await t();if(await s(yo(d,p)),a){const f=[...r,i];s(ia(f))}}catch{}}h()},[s,t,n,a,r])}function nt(s){var t;return!S((t=s==null?void 0:s.zoom)==null?void 0:t.zoomLink)}function Cx({classDetail:s}){const t=Pc();if(!nt(s))return null;const{zoom:n,id:a,salesforceRecordId:r,contentType:i}=s,{zoomLink:o}=n,c=()=>{je("click_link_zoomsite",{classId:a,programId:r,contentType:i,linkType:"join_now_button"}),window.open(o,"_blank","noopener,noreferrer"),t(s)};return e.jsx(L,{fill:"solid",color:"primary",onClick:c,children:"Join Now"})}function vc({href:s}){return e.jsx(L,{fill:"outline",color:"primary",routerLink:s,children:"Learn more"})}const Nx="data:image/svg+xml,%3csvg%20width='96'%20height='96'%20viewBox='0%200%2096%2096'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M88%2052C88%2074.092%2070.092%2092%2048%2092C25.9088%2092%208%2074.092%208%2052C8%2029.9088%2025.9088%2012%2048%2012C70.092%2012%2088%2029.9088%2088%2052Z'%20fill='%2344A144'/%3e%3cpath%20d='M88%2048C88%2070.092%2070.092%2088%2048%2088C25.9088%2088%208%2070.092%208%2048C8%2025.9088%2025.9088%208%2048%208C70.092%208%2088%2025.9088%2088%2048Z'%20fill='%234BB34B'/%3e%3cpath%20d='M64%2036L40%2060L30%2050L21.5%2058.3999L31.5%2068.3999L39.5%2076.3999L40%2076.7998L72.5%2044.3999L64%2036Z'%20fill='%2344A144'/%3e%3cpath%20d='M64%2032L40%2056L30%2046L21.5%2054.3999L31.5%2064.3999L39.5%2072.3999L40%2072.7998L72.5%2040.3999L64%2032Z'%20fill='%23ECF0F1'/%3e%3c/svg%3e";function _x({name:s,options:t,label:n="",isTouched:a,error:r="",labelProps:i={},onIonChange:o,radioInputProps:c={},optional:l=!1,...d}){const h=n&&!d["aria-label"]?`label-${s}`:void 0,p=Jt(t);return e.jsxs(e.Fragment,{children:[e.jsxs(fi,{className:"stacked-radio-group",name:s,"aria-labelledby":h,onIonChange:o,value:d.value,...d,children:[n&&e.jsx("div",{children:e.jsxs("label",{id:h,className:"stacked-radio-group__label",...i,children:[n,l&&e.jsxs("span",{className:"stacked-radio-group__optional",children:[" ","- Optional"]})]})}),e.jsx("div",{className:"stacked-radio-group__radio-buttons",children:p.map(({key:f,value:g})=>e.jsx(Sx,{label:f,value:g,checked:d.value===g,radioInputProps:c},g))})]}),e.jsx(Cs,{isTouched:a,error:r,name:s})]})}const Lc=ls()(_x);function Sx({label:s,value:t,checked:n,radioInputProps:a={}}){const r=m.useRef(null);return e.jsxs(Qe,{lines:"none",className:`stacked-radio-group__radio-button ${n?"radio-checked":""}`,detail:!1,onClick:()=>{var i;(i=r.current)==null||i.click()},children:[e.jsx(xi,{ref:r,slot:"start",value:t,...a}),e.jsx(Ge,{className:"stacked-radio-group__radio-button-label",children:s})]})}const Ex=!S("6LfWPdsrAAAAAHglJ_zJNLxgQFx5mFH4GEK2R-Xo"),bx={[mr.INPUT]:Ix,[mr.RADIO_GROUP]:Px};function Tx({initialValues:s,registrationRequired:t=!1,onSubmit:n,registrationQuestions:a,validationSchema:r}){return e.jsx(Te,{initialValues:s,onSubmit:n,validateOnBlur:!0,validateOnChange:!0,validationSchema:r,children:e.jsx(Ax,{registrationRequired:t,registrationQuestions:a})})}function Ax({registrationRequired:s,registrationQuestions:t}){const{isAuthenticated:n}=K(),{isSubmitting:a,errors:r,submitCount:i}=He(),{announceAssertive:o}=xe(),c=m.useRef(0);m.useEffect(()=>{if(i>c.current&&!S(r)){const d=Object.keys(r).length;o(`Form has ${d} ${d===1?"error":"errors"}. Please review and correct.`)}c.current=i},[i,r,o]);const l=!n||t.length>0||s;return e.jsxs(Ae,{className:"registration-form",noValidate:!0,children:[l&&e.jsxs("div",{className:"registration-form__inputs",children:[!n&&e.jsx(yx,{}),s&&e.jsx(zs,{fill:"outline",label:"Cell Phone",maskOptions:ea,name:"cellPhone",placeholder:"Enter cell phone",optional:!0}),t.map((d,h)=>{const{responseFormat:p,inputId:f}=d,g=bx[p];return e.jsx(g,{name:f,question:d},h)})]}),Ex&&!n&&e.jsx(Ca,{name:"captcha"}),e.jsxs("p",{className:"registration-form__disclaimer",children:["By registering for this event, I hereby acknowledge and agree with Senior Planet from AARP's"," ",e.jsx("a",{href:"/rules-of-conduct",target:"_blank",rel:"noopener noreferrer",children:"Rules of Conduct."})]}),e.jsx(ds,{fill:"solid",color:"primary",submitting:a,disabled:a,children:"Register"})]})}function yx(){return e.jsxs(e.Fragment,{children:[e.jsx(he,{fill:"outline",name:"firstName",label:"First Name",required:!0}),e.jsx(he,{fill:"outline",name:"lastName",label:"Last Name",required:!0}),e.jsx(he,{fill:"outline",name:"email",label:"Email",required:!0})]})}function Ix({name:s,question:t}){const{question:n,required:a}=t;return e.jsx(he,{fill:"outline",name:s,label:n,optional:!a})}function Px({name:s,question:t}){const{question:n,required:a}=t;return e.jsx(Lc,{name:s,label:n,options:gu,radioInputProps:{mode:"ios"},optional:!a})}const Rc=!S("6LfWPdsrAAAAAHglJ_zJNLxgQFx5mFH4GEK2R-Xo");function Oc({fill:s,classDetail:t,existingRegistration:n=null,cta:a}){const r=U(),i=Pe(),{showErrorToast:o}=us(),c=E(q.userProfile),l=E(q.upcomingOnlineClasses),d=E(q.upcomingInPersonClasses),[h,p]=m.useState(!1),[f,g]=m.useState(!1),[j,b]=m.useState(n),{freeformRegistrationQuestions:P,salesforceRegistrationQuestions:T,hasCapacity:C}=t,A=[...P||[],...T||[]].map((ee,Ee)=>({...ee,inputId:ee.salesforceObjectName||`input-${Ee}`})),y=C||C===void 0,k=y?i.formatMessage({id:"classes.register"}):i.formatMessage({id:"classes.joinWaitlist"}
6),O=a||k,B=async(ee,{setSubmitting:Ee})=>{const Me={...ee};A.forEach(De=>{const{inputId:Ue,salesforceFieldName:hs}=De;hs&&Me[Ue]!==void 0&&(Me[Ue]=Me[Ue]==="yes"?hs:null)});try{const Ue=(await r(Pu(Me))).data.attributes;if(b(Ue),c&&t.salesforceRecordId){if(t.contentType===V.ONLINE_CLASS){const hs=[...l,t];r(ia(hs))}else if(t.contentType===V.IN_PERSON_CLASS){const hs=[...d,t];r(vo(hs))}r(Lu([...c.registrationsAndReminders,Ue]))}je("class_registration_completed",{programId:t.salesforceRecordId,classId:t.id,status:Ue.status,contentType:t.contentType}),p(!1),g(!0)}catch{o("An error occurred during registration. Please try again."),p(!1)}finally{Ee(!1)}};return e.jsx(e.Fragment,{children:j?e.jsxs(e.Fragment,{children:[e.jsx(e.Fragment,{children:j.status==="Registered"?e.jsxs("div",{className:"success-block",children:[e.jsx(R,{icon:Tn,color:"green",size:"large"}),e.jsx("p",{children:e.jsx(D,{id:"classes.registeredMessage"})})]}):e.jsxs("div",{className:"success-block",children:[e.jsx(R,{icon:Tn,color:"green",size:"large"}),e.jsx("p",{children:e.jsx(D,{id:"classes.waitlistedMessage"})})]})}),e.jsx(vx,{isOpen:f,onClose:()=>g(!1),registration:j})]}):e.jsxs(e.Fragment,{children:[e.jsx(L,{fill:s,color:"primary",onClick:()=>{je("class_registration_started",{programId:t.salesforceRecordId,classId:t.id,cta:O,contentType:t.contentType}),p(!0)},children:O}),e.jsx(Lx,{isOpen:h,onSubmit:B,onClose:()=>p(!1),registrationQuestions:A,classDetail:t,allowRegistration:y,userProfile:c})]})})}function vx({isOpen:s,onClose:t,registration:n}){const a=te(),{isAuthenticated:r}=K(),i=()=>{a.push(N(x.DASHBOARD),"root","replace"),t()};return e.jsxs(os,{className:$("modal","registration-success-modal"),isOpen:s,onDidDismiss:t,children:[e.jsxs("header",{children:[e.jsx("div",{className:"header-image",children:e.jsx(F,{src:Nx,alt:"green checkmark",style:{width:"80px",height:"80px"}})}),e.jsx("h2",{children:e.jsx(D,{id:"classes.signUpSuccessful"})})]}),e.jsxs("div",{className:"modal__content registration-success-modal__content",children:[n.status==="Registered"?e.jsx("p",{children:e.jsx(D,{id:"classes.registrationSuccessMessage"})}):e.jsx("p",{children:e.jsx(D,{id:"classes.waitlistSuccessMessage"})}),r&&e.jsxs(e.Fragment,{children:[e.jsx("p",{children:e.jsx(D,{id:"classes.viewAllClassesPrompt"})}),e.jsx(L,{fill:"solid",color:"primary",onClick:i,style:{marginBottom:"12px"},children:e.jsx(D,{id:"classes.viewAllMyClasses"})})]}),e.jsx(L,{fill:"outline",color:"primary",onClick:t,children:e.jsx(D,{id:"classes.close"})})]})]})}function Lx({isOpen:s,onClose:t,onSubmit:n,registrationQuestions:a,classDetail:r,allowRegistration:i,userProfile:o}){const{user:c,isAuthenticated:l}=K();return e.jsxs(os,{className:$("modal","register-modal"),isOpen:s,onDidDismiss:t,children:[e.jsxs("header",{children:[i?e.jsx("h2",{children:e.jsx(D,{id:"classes.registerForClass"})}):e.jsx("h2",{children:e.jsx(D,{id:"classes.joinWaitlistForClass"})}),e.jsx(Vs,{slot:"end",children:e.jsx(L,{fill:"clear",size:"large",onClick:t,iconOnly:!0,"aria-label":"Close",children:e.jsx(R,{icon:Vt,slot:"icon-only"})})})]}),e.jsx("div",{className:"modal__content",children:e.jsx("div",{className:"register-modal__content",children:e.jsx(Tx,{initialValues:Rx(a,c,r,i,l,o),registrationRequired:r.registrationRequired,onSubmit:n,registrationQuestions:a,validationSchema:Ox(a,l,r.registrationRequired)})})})]})}function Rx(s,t,n,a,r,i){var c;const o=s.reduce((l,{inputId:d})=>(l[d]="",l),{});return o.firstName=(t==null?void 0:t.given_name)||"",o.lastName=(t==null?void 0:t.family_name)||"",o.email=(t==null?void 0:t.email)||"",o.programId=n.salesforceRecordId||"",o.status=a?"Registered":"Waitlisted",o.wordpressId=n.id,n.contentType===V.IN_PERSON_CLASS&&(o.locationSlug=((c=n.location)==null?void 0:c.slug)||""),n.registrationRequired&&(o.cellPhone=Ic((i==null?void 0:i.phone)||"")),Rc&&!r&&(o.captcha=null),o}function Ox(s,t,n=!1){const a=s.reduce((r,{inputId:i,required:o})=>(o&&(r[i]=Q().required("This question must be answered")),r),{});return a.firstName=Q().required("First name required for registration"),a.lastName=Q().required("Last name required for registration"),a.email=Q().email("Invalid email address").required("Email required for registration"),n&&(a.cellPhone=Q().nullable().test("is-valid-phone","Phone number is invali
6d",r=>{if(!r)return!0;const i=r.replace(/\D/g,"");return i?i.length===10&&sa.test(r):!0})),Rc&&!t&&(a.captcha=Q().nullable().required("Please complete the captcha")),js(a)}function Gs(s){if(S(s))return"";const t=Ie(s);return ht(t,{format:"basic",in:_i("UTC")})}function ln(){return[`Visit the Senior Planet Website (${Yt.SENIOR_PLANET_PRODUCTION_WEBSITE}) or call the hotline (${$s}) for the most up-to-date class information.`,"Note that changes to the class information, including the meeting time, will not be reflected in this calendar event. You will need to update the calendar event yourself if the class information changes."].join(`
7
8`)}function wc({title:s,description:t,startTime:n,endTime:a,location:r}){return`
9BEGIN:VCALENDAR
10VERSION:2.0
11PRODID:-//seniorplanet.org//EN
12CALSCALE:GREGORIAN
13BEGIN:VEVENT
14DTSTART:${n}
15DTEND:${a}
16SUMMARY:${qr(s)}
17DESCRIPTION:${qr(t)}
18LOCATION:${r}
19END:VEVENT
20END:VCALENDAR
21  `.trim()}function qr(s){return s.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/,/g,"\\,").replace(/;/g,"\\;")}function kc(s,t){const n=URL.createObjectURL(s),a=document.createElement("a");a.href=n,a.download=t,a.style.display="none",a.click(),URL.revokeObjectURL(n)}function wx({classDetail:s,containerAction:t}){const n=m.useCallback(()=>{const{titleHtml:a,classEnd:r,classStart:i,contentType:o,zoom:c}=s,l=xs(a);let d="",h="";if(o===V.ONLINE_CLASS)if(nt(s)){const{zoomLink:P,zoomMeetingId:T,zoomPhoneNumber:C}=c;d=`Zoom URL: ${P}
22Zoom Meeting ID: ${T}
23Zoom Phone Number: ${C}`,h=P}else d="No Zoom information is available at this time.";else{const{location:P}=s,{titleHtml:T,address:C,city:A,state:y,zip:k}=P,O=xs(T);d=l,h=`${O} ${C} ${A}, ${y} ${k}`}d+=`
24
25${ln()}`;const p=Gs(i),f=Gs(r),g=wc({title:l,description:d,startTime:p,endTime:f,location:h}),j=new Blob([g],{type:"text/calendar;charset=utf-8"}),b=`${Zn(l)}.ics`;kc(j,b),t()},[s,t]);return e.jsxs(L,{className:"add-to-calendar",onClick:n,children:[e.jsx(R,{size:"small",slot:"start",src:ld}),e.jsx(D,{id:"calendar.addToAppleCalendar"})]})}const kx="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20data-name='Layer%201'%20height='32'%20id='Layer_1'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22,4.5v6H10v11H4V6.5a2.0059,2.0059,0,0,1,2-2Z'%20fill='%234285f4'/%3e%3cpolygon%20fill='%23ea4435'%20points='22%2027.5%2022%2021.5%2028%2021.5%2022%2027.5'/%3e%3crect%20fill='%23ffba00'%20height='12'%20width='6'%20x='22'%20y='9.5'/%3e%3crect%20fill='%2300ac47'%20height='12'%20transform='translate(40.5%208.5)%20rotate(90)'%20width='6'%20x='13'%20y='18.5'/%3e%3cpath%20d='M28,6.5v4H22v-6h4A2.0059,2.0059,0,0,1,28,6.5Z'%20fill='%230066da'/%3e%3cpath%20d='M10,21.5v6H6a2.0059,2.0059,0,0,1-2-2v-4Z'%20fill='%23188038'/%3e%3cpath%20d='M15.69,17.09c0,.89-.66,1.79-2.15,1.79a3.0026,3.0026,0,0,1-1.52-.39l-.08-.06.29-.82.13.08a2.3554,2.3554,0,0,0,1.17.34,1.191,1.191,0,0,0,.88-.31.8586.8586,0,0,0,.25-.65c-.01-.73-.68-.99-1.31-.99h-.54v-.81h.54c.45,0,1.12-.22,1.12-.82,0-.45-.31-.71-.85-.71a1.8865,1.8865,0,0,0-1.04.34l-.14.1-.28-.79.07-.06a2.834,2.834,0,0,1,1.53-.45c1.19,0,1.72.73,1.72,1.45a1.4369,1.4369,0,0,1-.81,1.3A1.52,1.52,0,0,1,15.69,17.09Z'%20fill='%234285f4'/%3e%3cpolygon%20fill='%234285f4'%20points='18.71%2012.98%2018.71%2018.79%2017.73%2018.79%2017.73%2014%2016.79%2014.51%2016.58%2013.69%2017.95%2012.98%2018.71%2012.98'/%3e%3c/svg%3e";function Mx({classDetail:s,containerAction:t}){const n=m.useCallback(()=>{const{titleHtml:a,classEnd:r,classStart:i,contentType:o,zoom:c}=s,l=ts(a),d=encodeURIComponent(l);let h="",p="";if(o===V.ONLINE_CLASS)if(nt(s)){const{zoomLink:P,zoomMeetingId:T,zoomPhoneNumber:C}=c;h=`Zoom URL: ${P}
26Zoom Meeting ID: ${T}
27Zoom Phone Number: ${C}`,p=encodeURIComponent(P)}else h="No Zoom information is available at this time.";else{const{location:P}=s,{titleHtml:T,address:C,city:A,state:y,zip:k}=P,O=ts(T);h=l,p=encodeURIComponent(`${O} ${C} ${A}, ${y} ${k}`)}const f=Gs(i),g=Gs(r),j=encodeURIComponent(`${h}
28
29${ln()}`),b=`https://www.google.com/calendar/render?action=TEMPLATE&text=${d}&dates=${f}/${g}&location=${p}&details=${j}`;window.open(b,"_blank","noopener,noreferrer"),t()},[s,t]);return e.jsxs(L,{className:"add-to-calendar",onClick:n,children:[e.jsx(R,{size:"small",slot:"start",src:kx}),e.jsx(D,{id:"calendar.addToGoogleCalendar"})]})}const Dx="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%20width='50px'%20height='50px'%3e%3cpath%20fill='%231976d2'%20d='M28,13h14.533C43.343,13,44,13.657,44,14.467v19.066C44,34.343,43.343,35,42.533,35H28V13z'/%3e%3crect%20width='14'%20height='15.542'%20x='28'%20y='17.958'%20fill='%23fff'/%3e%3cpolygon%20fill='%231976d2'%20points='27,44%204,39.5%204,8.5%2027,4'/%3e%3cpath%20fill='%23fff'%20d='M15.25,16.5c-3.176,0-
295.75,3.358-5.75,7.5s2.574,7.5,5.75,7.5S21,28.142,21,24%20S18.426,16.5,15.25,16.5z%20M15,28.5c-1.657,0-3-2.015-3-4.5s1.343-4.5,3-4.5s3,2.015,3,4.5S16.657,28.5,15,28.5z'/%3e%3crect%20width='2.7'%20height='2.9'%20x='28.047'%20y='29.737'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='31.448'%20y='29.737'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='34.849'%20y='29.737'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='28.047'%20y='26.159'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='31.448'%20y='26.159'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='34.849'%20y='26.159'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='38.25'%20y='26.159'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='28.047'%20y='22.706'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='31.448'%20y='22.706'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='34.849'%20y='22.706'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='38.25'%20y='22.706'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='31.448'%20y='19.112'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='34.849'%20y='19.112'%20fill='%231976d2'/%3e%3crect%20width='2.7'%20height='2.9'%20x='38.25'%20y='19.112'%20fill='%231976d2'/%3e%3c/svg%3e";function Ux({classDetail:s,containerAction:t}){const n=m.useCallback(()=>{const{titleHtml:a,classEnd:r,classStart:i,contentType:o,zoom:c}=s,l=xs(a);let d="",h="";if(o===V.ONLINE_CLASS)if(nt(s)){const{zoomLink:P,zoomMeetingId:T,zoomPhoneNumber:C}=c;d=`Zoom URL: ${P}
30Zoom Meeting ID: ${T}
31Zoom Phone Number: ${C}`,h=P}else d="No Zoom information is available at this time.";else{const{location:P}=s,{titleHtml:T,address:C,city:A,state:y,zip:k}=P,O=xs(T);d=l,h=`${O} ${C} ${A}, ${y} ${k}`}d+=`
32
33${ln()}`;const p=Gs(i),f=Gs(r),g=wc({title:l,description:d,startTime:p,endTime:f,location:h}),j=new Blob([g],{type:"text/calendar;charset=utf-8"}),b=`${Zn(l)}.ics`;kc(j,b),t()},[s,t]);return e.jsxs(L,{className:"add-to-calendar",onClick:n,children:[e.jsx(R,{size:"small",slot:"start",src:Dx}),e.jsx(D,{id:"calendar.addToOutlookCalendar"})]})}const Hx="/assets/outlook-web-calendar-1kD2uBaB.svg";function Fx({classDetail:s,containerAction:t}){const n=m.useCallback(()=>{const{titleHtml:a,classEnd:r,classStart:i,contentType:o,zoom:c}=s,l=xs(a);let d="",h="";if(o===V.ONLINE_CLASS)if(nt(s)){const{zoomLink:f,zoomMeetingId:g,zoomPhoneNumber:j}=c;d=`Zoom URL: ${f}
34Zoom Meeting ID: ${g}
35Zoom Phone Number: ${j}.`,h=f}else d="No Zoom information is available at this time.";else{const{location:f}=s,{titleHtml:g,address:j,city:b,state:P,zip:T}=f,C=xs(g);d=l,h=`${C} ${j} ${b}, ${P} ${T}`}d+=`
36
37${ln()}`;const p=new URL("https://outlook.live.com/calendar/0/deeplink/compose");p.searchParams.set("subject",l),p.searchParams.set("body",d),p.searchParams.set("startdt",i),p.searchParams.set("enddt",r),p.searchParams.set("location",h),window.open(p.toString(),"_blank","noopener,noreferrer"),t()},[s,t]);return e.jsxs(L,{className:"add-to-calendar",onClick:n,children:[e.jsx(R,{size:"small",slot:"start",src:Hx}),e.jsx(D,{id:"calendar.addToOutlookWebCalendar"})]})}function Mc({classDetail:s,containerAction:t=Nt}){return e.jsxs("div",{className:"add-to-calendar-buttons",children:[e.jsx(Mx,{classDetail:s,containerAction:t}),e.jsx(wx,{classDetail:s,containerAction:t}),e.jsx(Ux,{classDetail:s,containerAction:t}),e.jsx(Fx,{classDetail:s,containerAction:t})]})}function qx({classDetail:s,fill:t="solid",existingRegistration:n}){const[a,r]=m.useState(!1),[i,o]=m.useState(n);return e.jsxs(e.Fragment,{children:[n||i?e.jsx(e.Fragment,{children:e.jsx("span",{children:e.jsx(D,{id:"classes.emailReminderSignedUp"})})}):e.jsx(e.Fragment,{children:e.jsx(L,{fill:t,color:"primary",onClick:()=>r(!0),children:e.jsx(D,{id:"classes.remindMe"})})}),e.jsx($x,{classDetail:s,isOpen:a,onClose:()=>r(!1),setRegistration:o})]})}function $x({classDetail:s,isOpen:t,onClose:n,setRegistration:a}){const{getToken:r,isAuthenticated:i}=K(),o=U(),{showErrorToast:c,showSuccessToast:l}=us(),d=E(q.userProfile),h=E(q.upcomingOnlineClasses),p=E(q.upcomingInPersonClasses),f=async()=>
37{if(i)try{const g=await r(),b=(await o(yo(s.salesforceRecordId,g))).data.attributes;if(a(b),d&&s.salesforceRecordId){if(s.contentType===V.ONLINE_CLASS){const P=[...h,s];o(ia(P))}else if(s.contentType===V.IN_PERSON_CLASS){const P=[...p,s];o(vo(P))}}l("You have signed up for email reminders.")}catch{c("An error occurred during registration. Please try again."),n()}n()};return e.jsxs(os,{className:$("modal","remind-me-modal",{"remind-me-modal__authorized":i}),isOpen:t,onDidDismiss:n,children:[e.jsxs("header",{children:[e.jsx("h2",{children:e.jsx(D,{id:"classes.remindMe"})}),e.jsx(Vs,{slot:"end",children:e.jsx(L,{fill:"clear",size:"large",onClick:n,iconOnly:!0,"aria-label":"Close",children:e.jsx(R,{icon:Vt,slot:"icon-only"})})})]}),e.jsx("div",{className:"modal__content",children:e.jsxs("div",{className:"remind-me-modal__content",children:[!i&&e.jsxs("div",{className:"remind-me-modal__unauthorized_content",children:[e.jsx("p",{children:e.jsx(D,{id:"classes.createAccountPrompt"})}),e.jsx(tn,{onClick:n}),e.jsx(Ks,{onAction:n}),e.jsx(z,{withOptionalIndicator:!0})]}),i&&e.jsxs("div",{className:"remind-me-modal__authorized_content",children:[e.jsx(L,{fill:"solid",color:"primary",onClick:f,children:e.jsx(D,{id:"classes.getEmailReminder"})}),e.jsx(z,{withOptionalIndicator:!0})]}),e.jsx(Mc,{containerAction:n,classDetail:s})]})})]})}function Dc(s){if(!s)return!1;const t=new Date;return Ie(s)<t}function zx({classDetail:s,fill:t,existingRegistration:n,registerAndJoinCta:a}){const{classStart:r,registrationRequired:i}=s,o=new Date,c=Ie(r);return dd(c,o)<=Wd?i?e.jsx(Oc,{fill:t,classDetail:s,existingRegistration:n,cta:a}):e.jsx(Cx,{classDetail:s}):i?null:e.jsx(qx,{classDetail:s,existingRegistration:n})}function Gx({classDetail:s}){return e.jsx(vc,{href:Ls(s)})}function Vx({classDetail:s,fill:t,existingRegistration:n}){const{registrationRequired:a}=s;return a?e.jsx(Oc,{fill:t,classDetail:s,existingRegistration:n}):e.jsx(vc,{href:Ls(s)})}function Ma({classDetail:s,fill:t="solid",existingRegistration:n}){const a=Pe(),{contentType:r,classEnd:i}=s;if(Dc(i))return null;const o={classDetail:s,fill:t,existingRegistration:n};return r===V.ONLINE_CLASS?zx({...o,registerAndJoinCta:a.formatMessage({id:"classes.registerAndJoin"})}):r===V.MULTI_WEEK_COURSE?Gx(o):r===V.IN_PERSON_CLASS?Vx(o):null}function Bx(s){return s&&s.charAt(0).toUpperCase()+s.slice(1)}function $r({classDetail:s,registrationsAndReminders:t}){const n=t.find(a=>a.programId===s.salesforceRecordId);return e.jsx(At,{classDetail:s,children:e.jsxs("article",{className:"class-listing",children:[e.jsx(Wx,{classDetail:s}),e.jsxs(Yx,{children:[e.jsx(Qx,{classDetail:s}),e.jsx(Kx,{classDetail:s,existingRegistration:n})]})]})})}function Wx({classDetail:s}){const{featuredImage:t}=s,n=Ls(s);return e.jsxs("div",{className:"date-and-featured-image",children:[e.jsx(Zx,{classDetail:s}),e.jsx(Y,{routerLink:n,children:e.jsx(xa,{featuredImage:t})})]})}function Yx({children:s}){return e.jsx("div",{className:"class-listing-content",children:s})}function Zx({classDetail:s}){const t=Pe(),{classStart:n}=s,a=Ie(n),r=sn(s),i=new Fs(a.getTime(),r),o=Bx(t.formatDate(a,{month:"short",timeZone:r})),c=Oe(i,"d");return e.jsxs("time",{dateTime:n,className:"date-and-featured-image__date",children:[e.jsx("span",{className:"month",children:o}),e.jsx("span",{className:"day",children:c})]})}function Qx({classDetail:s}){const{excerptHtml:t,titleHtml:n,trainer:a}=s,r=Ls(s);return e.jsxs("div",{className:"class-details",children:[e.jsx(et,{classDetail:s}),e.jsx(Y,{routerLink:r,children:e.jsx(v,{as:"h2",documentHtml:n})}),e.jsx(v,{as:"p",documentHtml:t}),e.jsx(en,{trainer:a})]})}function Kx({classDetail:s,existingRegistration:t}){return e.jsx("div",{className:"class-actions",children:e.jsx(Ma,{classDetail:s,existingRegistration:t})})}function Xx(){return e.jsxs("div",{className:"newsletter-signup",children:[e.jsxs("p",{className:"title",children:[e.jsx("b",{children:"Never miss a class again!"})," Sign up for our newsletters"]}),e.jsx("p",{className:"description",children:"Stay informed about the latest Senior Planet programs, benefits, events and more."}),e.jsx(Fo,{fill:"solid",color:"primary-dark"})]})}function Da({classes:s,currentPage:t,onPageChange:n,totalClasses:a,registrationsAndReminders:r}){const{announcePolite:i}=xe(),o=m.useRef(null);m.useEffect(()=>{s&&s!==o.current&&(o.current=s,s.length===0?i("No classes found matching your filters"):i(`Showing ${a} ${Is("class",a)}`))},[s,a,i]);function c(h){const{selected:p}=h,f=p+1;n(f)}if(de(s))return null;const[l=[],d=[]]=ud(s,Hd);return e.jsxs("div",{className:"classes-viewer",children:[l.map(h=>e.jsx($r,{classDetail:h.data,registrationsAndReminders:r},h.data.id)),e.jsx(Xx,{}),d.map(h=>e.jsx($r,{classDetail:h.data,registrationsAndReminders:r},h.data.id)),e.jsx(vs,{currentPage:t,onPageChange:c,totalItems:a})]})}function Ua({location:s}
37){const t=te(),{slug:n}=s,a=N(x.LOCATIONS,n);return e.jsxs(L,{className:"back-link",fill:"clear",color:"primary",onClick:()=>t.push(a,"back"),children:[e.jsx(R,{icon:Vn,size:"small"}),e.jsx(D,{id:"location.backToMainPage"})]})}function Uc({location:s}){const{mainPhone:t,hours:n}=s,a=It(s);return e.jsxs("div",{className:"location-logistics",children:[a&&e.jsx("p",{children:e.jsxs("span",{children:["📍 ",e.jsx("strong",{children:a})]})}),n&&e.jsx("p",{children:e.jsxs("span",{children:["🕐 ",e.jsx("strong",{children:n})]})}),t&&e.jsx("p",{children:e.jsxs("span",{children:["📞 ",e.jsx("strong",{children:t})]})})]})}function Jx({location:s}){return e.jsxs("header",{className:"header-container",children:[e.jsx("div",{className:"header full-width",children:e.jsx(e0,{location:s})}),e.jsx(z,{fullWidth:!0})]})}function e0({location:s}){return e.jsxs("div",{className:"index-heading index-heading-block-container",children:[e.jsx(Ua,{location:s}),e.jsx(Ps,{HeadingComponent:()=>e.jsx(s0,{location:s})}),e.jsx(Uc,{location:s})]})}function s0({location:s}){const{titleHtml:t}=s,n=ts(t);return e.jsx("h1",{children:e.jsx(D,{id:"location.titleClasses",values:{title:n,b:a=>e.jsx("b",{children:a})}})})}function t0({error:s,isTouched:t,minStartDate:n,maxEndDate:a,name:r,onDateRangeModified:i,onIonChange:o,value:c,...l}){const{endDate:d,startDate:h}=c,[p,f]=m.useState(!1),[g,j]=m.useState(()=>zr(h,d)),[b,P]=m.useState(""),{setFieldTouched:T}=He();m.useEffect(()=>{h&&d&&h!==""&&d!==""&&P("")},[h,d]);const{displayedStartDate:C,displayedEndDate:A}=r0(h,d),y=()=>{j(zr(h,d)),f(!1)},k=B=>{j(B)},O=m.useCallback(async()=>{const{from:B,to:ee}=g||{},Ee=B instanceof Date&&!isNaN(B.getTime()),Me=ee instanceof Date&&!isNaN(ee.getTime());if(!Ee||!Me){T(r,!0),P("Both start and end dates are required"),f(!1);return}P("");const De={startDate:Gr(B),endDate:Gr(ee)};o(De),i&&i(De),f(!1)},[g,i,o,r,T]);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"date-range-container",children:[e.jsxs(L,{className:"date-range date-range",fill:"clear",onClick:()=>f(!0),children:[e.jsx(R,{icon:Gt,size:"small",style:{marginRight:"8px"}}),e.jsxs(ve,{className:"date-range__value",children:[C," - ",A]})]}),e.jsx(Cs,{isTouched:t,error:b||s,name:r})]}),e.jsx(os,{className:$("modal","date-range-modal"),isOpen:p,onDidDismiss:()=>f(!1),children:e.jsx(zt,{className:"modal__content",children:e.jsxs("div",{className:"date-range-modal__content",children:[e.jsx("h2",{children:"Select start date range"}),e.jsx(md,{animate:!0,disabled:{before:n,after:a},min:1,mode:"range",numberOfMonths:2,onSelect:k,selected:g,...l}),e.jsx(z,{}),e.jsx(a0,{onCancel:y,onApply:O})]})})})]})}const n0=ls()(t0);function a0({onCancel:s,onApply:t}){return e.jsxs("div",{className:"date-range__date-selection-actions",children:[e.jsx(L,{fill:"clear",onClick:s,children:"Cancel"}),e.jsx(L,{fill:"clear",onClick:t,children:"Apply"})]})}function zr(s,t){const n=Ie(s),a=Ie(t);return{from:n,to:a}}function Gr(s){return!s||!(s instanceof Date)||isNaN(s.getTime())?"":ht(s,{representation:"date",in:_i("UTC")})}function r0(s,t){const n="MMM d, yyyy",a=S(s)?"missing":Oe(rr(s,1),n),r=S(t)?"missing":Oe(rr(t,1),n);return{displayedStartDate:a,displayedEndDate:r}}function Ha({initialValues:s,minStartDate:t,maxEndDate:n,onClearFilters:a,onSubmit:r}){const i=E(q.topics);return e.jsx(Te,{enableReinitialize:!0,initialValues:s,onSubmit:r,children:e.jsxs(Ae,{className:"classes-search-form",noValidate:!0,children:[e.jsx(Qs,{name:"query",placeholder:"Search by keyword..."}),e.jsx(i0,{maxEndDate:n,minStartDate:t,onClearFilters:a,topics:i}),e.jsx(o0,{maxEndDate:n,minStartDate:t,onClearFilters:a,topics:i})]})})}function i0({maxEndDate:s,minStartDate:t,onClearFilters:n,topics:a}){return e.jsxs("div",{className:"tablet-desktop-classes-filter",children:[e.jsx(Hc,{maxEndDate:s,minStartDate:t,topics:a}),e.jsx(L,{fill:"clear",color:"off-black",onClick:n,children:"Clear all"})]})}function o0({maxEndDate:s,minStartDate:t,onClearFilters:n,topics:a}){const[r,i]=m.useState(!1);function o(){i(!r)}return e.jsxs("div",{className:"mobile-classes-filter",children:[e.jsxs(L,{expand:"block",fill:"outline",color:"primary",onClick:o,children:[r?"Hide":"Show"," advanced filters"]}),r&&e.jsxs("div",{className:"advanced-criteria-container",children:[e.jsx(Hc,{maxEndDate:s,minStartDate:t,topics:a}),e.jsx(L,{fill:"clear",color:"off-black",onClick:n,children:"Clear all"})]})]})}function Hc({maxEndDate:s,minStartDate:t,topics:n}){const{setFieldValue:a,submitForm:r}=He(),i=()=>{a("startDateRangeModified",!0),r()},o=()=>{r()};return e.jsxs(e.Fragment,{children:[e.jsx(n0,{"aria-label":"Class search date range",maxEndDate:s,minStartDate:t,name:"startDateRange",onDateRangeModified:i,okText:"Apply"}),e.jsx(ys,{interfaceOptions:{cssClass:"select-alert"},label:"Topic: ",multiple:!0,name:"topics",options:c0(n),placeholder:"All",onCh
37ange:o,okText:"Apply"}),e.jsx(ys,{label:"Time of day: ",multiple:!0,name:"timeOfDay",options:xu,placeholder:"All",onChange:o,okText:"Apply"})]})}function c0(s){return s.map(t=>({key:t.name,value:t.id}))}function Fa(s){const t=s.getAll(I.START_DATE_RANGE),n=s.get(I.QUERY)||"",a=s.getAll(I.TAG)||[],r=s.getAll(I.TIME_OF_DAY)||[],i=s.getAll(I.TOPIC)||[],o=!S(t);return{startDateRange:o?l0(t):Ys(),startDateRangeModified:o,query:n,tags:a.map(c=>Number(c)),timeOfDay:r,topics:i.map(c=>Number(c))}}function l0(s){const[t,n]=s;return{startDate:t,endDate:n}}function qa(s){const{startDateRange:t,startDateRangeModified:n,query:a,tags:r,timeOfDay:i,topics:o}=s,c=new URLSearchParams;if(n){const{startDate:l,endDate:d}=t;c.append(I.START_DATE_RANGE,l),c.append(I.START_DATE_RANGE,d)}return S(a)||c.append(I.QUERY,a),S(i)||i.forEach(l=>{c.append(I.TIME_OF_DAY,l)}),S(r)||r.forEach(l=>{c.append(I.TAG,l)}),S(o)||o.forEach(l=>{c.append(I.TOPIC,l)}),c.set(I.PAGE,1),c}function $a(){const s=new Date,t=hd(s),n=si(s,Ai);return{minStartDate:t,maxEndDate:n}}function d0({location:s}){const t=ce(),n=te(),{locationId:a}=_e(),r=m.useCallback(()=>{n.push(N(x.LOCATIONS,a,x.IN_PERSON_CLASSES),"root","replace")},[n,a]),{minStartDate:i,maxEndDate:o}=m.useMemo(()=>$a(),[]),{titleHtml:c}=s,l=ts(c),d=Pe();return e.jsxs("div",{id:"criteria",className:"index-criteria",children:[e.jsx(Ps,{HeadingComponent:u0,subHeading:d.formatMessage({id:"location.exploreClasses"},{title:l})}),e.jsx(Ha,{initialValues:Fa(t),minStartDate:i,maxEndDate:o,onClearFilters:r,onSubmit:h=>{var g;const p=(g=h.query)==null?void 0:g.trim();je("class_search",{class_type:"in_person",query:p});const f=qa(h);n.push(M(N(x.LOCATIONS,a,x.IN_PERSON_CLASSES),f))}})]})}function u0(){const s=Pe();return e.jsx("h2",{children:s.formatMessage({id:"location.allClasses"})})}function Fc(s){const t=m.useRef(s),n=$e();return t.current===n.pathname}const za="in-person-classes",xn={alternateClasses:null,inPersonClass:null,inPersonClasses:null,relatedArticles:null,relatedInPersonClasses:null,totalInPersonClasses:0},qc=Ce({name:za,initialState:xn,reducers:{resetInPersonClass(s){const{alternateClasses:t,inPersonClass:n,relatedArticles:a,relatedInPersonClasses:r}=xn;s.alternateClasses=t,s.inPersonClass=n,s.relatedArticles=a,s.relatedInPersonClasses=r},resetInPersonClasses(s){const{inPersonClasses:t,totalInPersonClasses:n}=xn;s.inPersonClasses=t,s.totalInPersonClasses=n}},extraReducers:s=>{s.addCase(We,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.relatedArticles=n.map(({attributes:a})=>a)})),s.addCase(Mi,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.alternateClasses=n.map(({attributes:a})=>a.data)})),s.addCase($i,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.inPersonClass=n.attributes})),s.addCase(zi,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{t.inPersonClasses=n.map(({attributes:r})=>r),t.totalInPersonClasses=a})),s.addCase(no,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.relatedInPersonClasses=n.map(({attributes:a})=>a)})),s.addCase(No,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{t.inPersonClasses=n.map(({attributes:r})=>r),t.totalInPersonClasses=a}))}}),ks=Ne.selectorForSlice(`root.${za}`),Us={alternateClasses:ks("alternateClasses"),inPersonClass:ks("inPersonClass"),inPersonClasses:ks("inPersonClasses"),relatedArticles:ks("relatedArticles"),relatedInPersonClasses:ks("relatedInPersonClasses"),totalInPersonClasses:ks("totalInPersonClasses")},{resetInPersonClass:m0,resetInPersonClasses:h0}=qc.actions,p0=qc.reducer;function Ga(s){return s.has(I.QUERY)||s.has(I.START_DATE_RANGE)||s.has(I.TIME_OF_DAY)||s.has(I.TOPIC)}function Va({contentType:s,locationId:t,locationSlug:n,locationTagIds:a,excludedTagIds:r,queryParams:i}){const o=i.getAll(I.START_DATE_RANGE),c=i.get(I.QUERY)||"",l=i.get(I.PAGE)||1,d=[...a||[],...i.getAll(I.TAG)||[]],h=i.getAll(I.TIME_OF_DAY)||[],p=i.getAll(I.TOPIC)||[],f=!S(o),g=new URLSearchParams;if(g.set(w.CONTENT_TYPE,s),g.set(w.PAGE,l),f){const[j,b]=o;g.append(w.START_DATE_RANGE,j),g.append(w.START_DATE_RANGE,b)}else if(Xn.includes(s)){const{startDate:j,endDate:b}=Ys();g.append(w.START_DATE_RANGE,j),g.append(w.START_DATE_RANGE,b)}if(S(c)||g.append(w.QUERY,c),t&&g.set(w.LOCATION_ID,t),n&&g.set(w.LOCATION_
37SLUG,n),S(d)||d.forEach(j=>{g.append(w.TAGS,j)}),S(r)||r.forEach(j=>{g.append(w.EXCLUDED_TAGS,j)}),!S(h))for(const j of f0(h))g.append(w.HOUR_RANGE,j);return S(p)||p.forEach(j=>{g.append(w.TOPICS,j)}),g}function f0(s=[]){const t=new Date().getTimezoneOffset()/60;return s.reduce((a,r)=>{const i=fu[r],[o,c]=i;let l=o+t,d=c+t;return l>23&&d>23?(l-=24,d-=24,[...a,l,d]):d>23?(d-=24,[...a,l,23,0,d]):[...a,l,d]},[])}function x0(s,t,n){const a=U(),r=ce(),{pathname:i}=$e(),o=Fc(i),c=m.useRef(null),l=E(Us.inPersonClasses),d=m.useCallback(p=>p?`${p}|${r.toString()}`:null,[r]),h=m.useCallback((p,f,g)=>{if(!p)return;a(h0());const j=Va({contentType:V.IN_PERSON_CLASS,locationSlug:p,locationTagIds:f,excludedTagIds:g,queryParams:r});Ga(r)?a(No(j)):a(zi(j))},[a,r]);return ue(()=>{h(s,t,n);const p=d(s);p&&(c.current=p)},[h,s,t,n,d]),m.useEffect(()=>{if(!o)return;const p=d(s);p&&p!==c.current&&(h(s,t,n),c.current=p)},[h,s,t,n,d,o]),{inPersonClasses:l,isLoading:de(l)}}const Ba="locations",g0={locationsPage:null,location:null},$c=Ce({name:Ba,initialState:g0,reducers:{clearLocationsPage(s){s.locationsPage=null},clearLocation(s){s.location=null}},extraReducers:s=>{s.addCase(Vi,_.handleSuccess((t,n)=>{t.locationsPage=n.payload.data.data.attributes})),s.addCase(Gi,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.location=n.attributes}))}}),Vr=Ne.selectorForSlice(`root.${Ba}`),zc={locationsPage:Vr("locationsPage"),location:Vr("location")},{clearLocation:j0,clearLocationsPage:C0}=$c.actions,N0=$c.reducer;function dn(s){const t=U(),n=E(zc.location),a=m.useRef(!1),r=m.useRef(null),i=n==null?void 0:n.slug,o=m.useCallback(()=>{if(s===i){r.current=null;return}r.current!==s&&(r.current=s,t(j0()),t(Gi(s)))},[t,i,s]);return ue(()=>{a.current=!0,o()},[o]),m.useEffect(()=>{a.current||(a.current=!0,o())},[o]),{location:n,isLoading:de(n)}}function Wa({children:s,location:t}){const n=(t==null?void 0:t.tags)||[],a=nc(n),r=fa(a);return e.jsx(Wn,{locale:a,messages:r,defaultLocale:fe.ENGLISH,children:s})}const Br=ip[fe.SPANISH];function Gc(s){switch(s){case"miami":return{includedLanguageTagIds:[],excludedLanguageTagIds:[Br]};case"miami-espanol":return{includedLanguageTagIds:[Br],excludedLanguageTagIds:[]};default:return{includedLanguageTagIds:[],excludedLanguageTagIds:[]}}}function _0(){const s=te(),t=ce(),n=Ns(),{locationId:a}=_e(),{location:r,isLoading:i}=dn(a),{includedLanguageTagIds:o,excludedLanguageTagIds:c}=Gc(r==null?void 0:r.slug),{inPersonClasses:l,isLoading:d}=x0(r==null?void 0:r.queryAsSlug,o,c),h=E(Us.totalInPersonClasses),p=E(q.registrationsAndReminders);if(le(l),m.useEffect(()=>{t.size>0&&n("#criteria","instant","start")},[n,l,t]),i||d)return e.jsx(ne,{message:"Loading in-person classes..."});const{seo:f={}}=r,{description:g,ogDescription:j,ogTitle:b}=f,P=g||j||"",T=new ze({description:`Join us at ${b} for In-person Classes! ${P}`,title:`${b} In-Person Classes - Senior Planet from AARP`});function C(A){t.delete(I.PAGE),t.append(I.PAGE,A),s.push(M(N(x.LOCATIONS,a,x.IN_PERSON_CLASSES),t))}return e.jsxs(Wa,{location:r,children:[e.jsxs("div",{className:"classes index-wrapper",children:[e.jsx(X,{seo:T}),e.jsx(Jx,{location:r}),e.jsxs("div",{className:"index-block-container",children:[e.jsx(d0,{location:r}),e.jsx(Da,{classes:l,currentPage:t.get(I.PAGE)||1,onPageChange:C,totalClasses:h,registrationsAndReminders:p})]})]}),e.jsx(cn,{location:r})]})}function Ya({classDetail:s}){const{contentHtml:t}=s;return e.jsxs("div",{className:"class-show__class-description",children:[e.jsx("h2",{children:e.jsx(D,{id:"classes.classDescription"})}),e.jsx(v,{documentHtml:t})]})}function S0({classDetail:s}){const{titleHtml:t,trainer:n}=s;return e.jsxs("header",{className:"show-header",children:[e.jsx(et,{classDetail:s}),e.jsx(v,{as:"h1",documentHtml:t}),e.jsx(en,{trainer:n}),e.jsx(z,{})]})}function E0(s){return s&&s.charAt(0).toUpperCase()+s.slice(1)}function b0({alternateClasses:s,seeAllAlternateClassesLink:t}){return S(s)?null:e.jsxs("div",{className:"alternate-class-times",children:[e.jsx(z,{}),e.jsx(T0,{seeAllAlternateClassesLink:t}),e.jsx(A0,{alternateClasses:s})]})}function T0({seeAllAlternateClassesLink:s}){return e.jsxs("div",{className:"alternate-class-times__header",children:[e.jsx("p",{children:e.jsx(D,{id:"classes.otherAvailableTimes"})}),e.jsx(L,{fill:"clear",size:"small",routerLink:s,children:e.jsx(D,{id:"classes.seeAll"})})]})}function A0({alternateClasses:s}){return e.jsx("div",{className:"alternate-class-times__alternate-class-cards",children:s.map(t=>e.jsx(y0,{alternateClass:t},t.id))})}function y0({alternateClass:s}){const{classStart:t}=s,n=Ie(t),a=Ls(s),r=sn(s);return e.jsx(Y,{routerLink:a,children:e.jsxs("div",{className:"alternate-class-card",children:[e.jsx(I0,{date:n,timezone:r}),e.jsx(P0,{date:n,timezone:r})]})})}function I0({date:s,timezone:t}){const n=Pe(),a=E0(n.formatDate(s,{weekday:"long",month:"long",day:"numeric",timeZone:t}));return e.jsxs("div",{className:"alternate-class-card__content",children:[e.jsx(R,{icon:Gt,color:"primary"}),e.jsx("span",{className:"alternate-class-card__date",children:a})]})}function P0({date:s,timezone:t}){const n=new Fs(s.getTime(),t),a=ga(s,t),r=Oe(n,"h:mm a");return e.jsxs("div",{className:"alternate-class-card__content",children:[e.jsx(R,{icon:Yn,color:"primary"}),e.jsxs("span",{className:"alternate-class-card__time",children:[r," ",a]})]})}function Vc({alternateClasses:s,classDetail:t,seeAllAlternateClassesLink:n}){const{titleHtml:a,trainer:r}=t,i=xs(a),o=!as(ns.DESKTOP),c=Dc(t.classEnd);return e.jsxs("div",{className:"class-trainer-and-actions",children:[o&&e.jsx(z,{}),e.jsx(v0,{trainer:r}),!c&&e.jsxs(e.Fragment,{children:[e.jsx(z,{}),e.jsx(Mc,{classDetail:t}),e.jsx(z,{}),e.jsx(Ve,{contentTitle:i,title:e.jsx(D,{id:"classes.shareEvent"})})]}),s&&e.jsx(b0,{alternateClasses:s,seeAllAlternateClassesLink:n})]})}function v0({trainer:s}){if(S(s))return null;const{bioHtml:t}=s;return e.jsxs("div",{className:"class-trainer-and-actions__trainer",children:[e.jsx(en,{trainer:s}),e.jsx(v,{as:"p",documentHtml:t})]})}function Za({alternateClasses:s,classDetail:t,children:n,seeAllAlternateClassesLink:a}){return e.jsxs("section",{className:"class-detail show-block-container",children:[e.jsx(S0,{classDetail:t}),e.jsx(L0,{alternateClasses:s,classDetail:t,seeAllAlternateClassesLink:a,children:n})]})}function L0({alternateClasses:s,classDetail:t,children:n,seeAllAlternateClassesLink:a}){return e.jsxs("div",{className:"show-content",children:[e.jsx(R0,{classDetail:t,alternateClasses:s,seeAllAlternateClassesLink:a,children:n}),e.jsx("aside",{className:"show-sidebar",children:e.jsx(Vc,{alternateClasses:s,classDetail:t,seeAllAlternateClassesLink:a})})]})}function R0({classDetail:s,children:t,alternateClasses:n,seeAllAlternateClassesLink:a}){const{featuredImage:r}=s;return e.jsxs("div",{className:"featured-image-and-description",children:[e.jsx(xa,{featuredImage:r}),e.jsx(O0,{children:t}),e.jsx("div",{className:"show-sidebar",children:e.jsx(Vc,{alternateClasses:n,classDetail:s,seeAllAlternateClassesLink:a})})]})}function O0({children:s}){return e.jsxs("div",{className:"class-description",children:[e.jsx("div",{className:"class-description__content",children:s}),e.jsx(w0,{})]})}function w0(){return e.jsx("div",{className:"class-description__vertical-divider"})}function Qa({classDetail:s}){const{resources:t}=s;return S(t)?null:e.jsxs("div",{className:"class-show__resources",children:[e.jsx("h2",{children:e.jsx(D,{id:"classes.resources"})}),t.map((n,a)=>e.jsx(k0,{resource:n},a))]})}function k0({resource:s}){const{resourceTitle:t,resourceUrl:n}=s;return e.jsxs("div",{className:"resource-card",children:[e.jsx("span",{children:e.jsx("b",{children:t||n})}),e.jsxs(Be,{url:n,target:"_blank",fill:"clear",size:"small",children:[e.jsx(R,{icon:Ci,slot:"start"}),e.jsx(D,{id:"classes.openResource"})]})]})}function $t(s){const{contentType:t}=s;if(t===V.ONLINE_CLASS)return N(x.ONLINE_CLASSES);const{location:n}=s,{slug:a}=n,r=N(x.LOCATIONS,a);return t===V.MULTI_WEEK_COURSE?N(r,x.MULTI_WEEK_COURSES):N(r,x.IN_PERSON_CLASSES)}function Bc(s){const t=new URLSearchParams;if(!S(s)){const n=ts(s);t.set(I.QUERY,n)}return t}function M0(){const s=U(),{classId:t}=_e(),n=E(Us.inPersonClass),a=E(Us.alternateClasses),r=E(Us.relatedArticles),i=E(Us.relatedInPersonClasses),o=E(q.registrationsAndReminders);le(n);const c=m.useCallback(async()=>{s(m0());const{data:{attributes:C}}=await s($i(t)),{id:A,location:y,titleHtml:k,topics:O}=C,{id:B}=y,ee=ye(O,"id");s(Mi(A,k,B)),S(ee)||(s(no(A,B,ee)),s(We(null,ee)))},[s,t]);if(ue(()=>{c()},[c]),!n)return e.jsx(ne,{message:"Loading in-person class..."});const{topics:l,titleHtml:d}=n,h=ye(l,"id"),p=ms({topics:h}),f=M(N(x.ARTICLES),p),g=M($t(n),p),j=Bc(d),b=M($t(n),j),{seo:P}=n,T=n.salesforceRecordId?o.find(C=>C.programId===n.salesforceRecordId):null;return e.jsx(At,{classDetail:n,children:e.jsxs("div",{className:"class-show",children:[e.jsx(X,{seo:P}),e.jsx(Se,{status:n.status,id:n.id}),e.jsx(Za,{classDetail:n,alternateClasses:a,seeAllAlternateClassesLink:b,children:e.jsx(D0,{classDetail:n,existingRegistration:T})}),e.jsx(yt,{relatedClasses:i,seeAllRelatedClassesLink:g}),e.jsx(Js,{relatedArticles:r,seeAllRelatedArticlesLink:f})]})})}function D0({classDetail:s,existingRegistration:t}){return e.jsxs(e.Fragment,{children:[e.jsx(U0,{classDetail:s,existingRegistration:t}),e.jsx(H0,{classDetail:s}),e.jsx(Ya,{classDetail:s}),e.jsx(Qa,{classDetail:s}),e.jsx(F0,{})]})}function U0({classDetail:s,existingRegistration:t}){return e.jsxs("div",{className:"class-show__meeting-logistics",children:[e.jsx("h2",{children:e.jsx(D,{id:"classes.dateAndTime"})}),e.jsx(et,{classDetail:s}),s.registrationRequired&&e.jsx(Ma,{classDetail:s,existingRegistration:t})]})}function H0({classDetail:s}){const{venue:t}=s;if(!t)return null;const{venue:n,address:a,city:r,state:i,zip:o}=t;return e.jsxs("div",{className:"class-show__location",children:[e.jsx("h2",{children:e.jsx(D,{id:"classes.location"})}),e.jsxs("div",{children:[e.jsx(v,{as:"p",documentHtml:n}),e.jsxs("p",{children:[a,", ",r,", ",i," ",o]})]})]})}function F0(){return e.jsx("p",{children:e.jsx(D,{id:"classes.inPersonHelp.hotlineMessage",values:{phoneNumber:e.jsx("b",{children:$s})}})})}function q0({meetTheStaff:s}){if(!s)return null;const t=s.staffMembers.length>1;return e.jsx("section",{className:"image-text-block-wrapper",children:e.jsx("div",{className:"image-text-block-container",children:e.jsx(is,{title:e.jsx(D,{id:"location.meetTheStaff",values:{b:n=>e.jsx("strong",{children:n})}}),uniqueId:"meet-the-staff",slidesPerView:1,showNavigation:t,children:s.staffMembers.map((n,a)=>e.jsxs(qe,{children:[e.jsxs("div",{className:"text-block rich-text",children:[e.jsxs("p",{children:[e.jsx("strong",{children:n.name})," • ",e.jsx("span",{children:n.title})]}),e.jsx(v,{documentHtml:n.bioHtml,as:"div"})]}),e.jsx("div",{className:"image-block",children:e.jsx("div",{className:"image-block-inner",children:e.jsx(F,{src:n.image,alt:n.name})})})]},`meet-the-staff-${a}`))})})})}function Wc({aboutTheLocation:s,image:t}){const[n,a]=m.useState("About the Location");if(m.useEffect(()=>{s!=null&&s.youtubeVideoId&&fetch(`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${s.youtubeVideoId}&format=json`).then(o=>o.ok?o.json():Promise.reject()).then(o=>a(o.title)).catch(()=>{})},[s==null?void 0:s.youtubeVideoId]),S(s))return null;const{youtubeVideoId:r,textHtml:i}=s;return S(r)&&S(i)?null:e.jsx("section",{className:"image-and-text-block-wrapper visual-accent",children:e.jsxs("div",{className:"image-and-text-block-container",children:[e.jsx("div",{className:"image-block",children:r?e.jsx(bt,{title:n,videoId:r}):t&&e.jsx("div",{className:"image-block-inner",children:e.jsx(F,{src:t.url,alt:t.alt})})}),e.jsxs("div",{className:"text-block rich-text",children:[e.jsx("h2",{children:e.jsx(D,{id:"location.aboutTheProgram",values:{b:o=>e.jsx("strong",{children:o})}})}),e.jsx(v,{documentHtml:i})]})]})})}function $0(){const{locationId:s}=_e(),{location:t,isLoading:n}=dn(s);if(le(t),n)return e.jsx(ne,{message:"Loading location..."});const a=It(t);return e.jsx(Wa,{location:t,children:e.jsxs("div",{className:"location-center-show",children:[e.jsx(X,{seo:t.seo}),e.jsx(Se,{status:t.status,id:t.id}),e.jsx("header",{className:"header-container",children:e.jsx("div",{className:"header full-width",children:e.jsx("div",{className:"index-heading index-heading-block-container",children:e.jsxs("div",{className:"section-heading",children:[e.jsx(Ua,{location:t}),e.jsxs("h1",{children:["Senior Planet ",e.jsx("b",{children:t.titleHtml})]}),e.jsxs("div",{className:"location-logistics",children:[a&&e.jsxs("p",{children:["📍 ",e.jsx("strong",{children:a})]}),t.hours&&e.jsxs("p",{children:["🕐 ",e.jsx("strong",{children:t.hours})]}),t.mainPhone&&e.jsxs("p",{children:["📞"," ",e.jsx("a",{href:`tel:${t.mainPhone}`,children:e.jsx("strong",{children:t.mainPhone})})," "]})]})]})})})}),e.jsx(z,{}),e.jsxs("div",{className:"location-show",children:[e.jsx(Wc,{aboutTheLocation:t.aboutTheLocation,image:t.thumbnailImage}
37),e.jsx(Ea,{...t.cardGrid,cardColumns:"3",innerBackgroundColor:"Light Gray",textAlignment:"Centered"}),e.jsx(q0,{meetTheStaff:t.meetTheStaff}),e.jsx(cn,{location:t,hideLink:!0}),t.accordion&&e.jsx(_c,{...t.accordion}),t.form&&e.jsx(_a,{...t.form})]})]})})}function z0(){const s=U(),t=E(zc.locationsPage);return le(t),ue(()=>{s(C0()),s(Vi())},[s]),t?e.jsxs(e.Fragment,{children:[e.jsx(X,{seo:t.seo}),e.jsx(Se,{status:t.status,id:t.id}),e.jsxs("div",{children:[e.jsx(tt,{...t.header}),e.jsx(st,{acfComponents:t.acfComponents})]})]}):e.jsx(ne,{message:"Loading locations index..."})}function G0({location:s}){const{locationId:t}=_e(),n=It(s),a=!S(s.inPersonClasses);return e.jsxs(e.Fragment,{children:[e.jsx("header",{className:"header-container image-on-all-viewports",children:e.jsxs("div",{className:"header",children:[e.jsx("div",{className:"index-heading index-heading-block-container",children:e.jsxs("div",{className:"section-heading",children:[e.jsx("div",{children:e.jsxs("h1",{children:["Senior Planet ",e.jsx("br",{})," ",e.jsx("b",{children:s.titleHtml})]})}),e.jsxs("div",{className:"location-logistics",children:[n&&e.jsxs("p",{children:["📍 ",e.jsx("strong",{children:n})]}),s.hours&&e.jsxs("p",{children:["🕐 ",e.jsx("strong",{children:s.hours})]}),s.mainPhone&&e.jsxs("p",{children:["📞"," ",e.jsx("a",{href:`tel:${s.mainPhone}`,children:e.jsx("strong",{children:s.mainPhone})})," "]})]}),e.jsxs("div",{className:"button-container",children:[a&&e.jsx(L,{fill:"solid",color:"primary",routerLink:N(x.LOCATIONS,t,x.IN_PERSON_CLASSES),children:e.jsx(D,{id:"location.viewClassSchedule"})}),s.centerName&&e.jsx(L,{fill:"solid",color:"secondary",routerLink:N(x.LOCATIONS,t,Z.ABOUT_US),children:e.jsx(D,{id:"location.aboutUs"})})]})]})}),e.jsx("div",{className:"media-block",children:s.featuredImage&&e.jsx(Tt,{alt:"Location header image",imageSrc:s.featuredImage.url})})]})}),e.jsx(z,{})]})}function V0(){const{locationId:s}=_e(),{location:t,isLoading:n}=dn(s);if(le(t),n)return e.jsx(ne,{message:"Loading location..."});const a=t.inPersonClasses,r=t.multiWeekClasses;return e.jsx(Wa,{location:t,children:e.jsxs("div",{className:"location-show",children:[e.jsx(X,{seo:t.seo}),e.jsx(Se,{status:t.status,id:t.id}),e.jsx(G0,{location:t}),t.banner&&e.jsx("section",{className:"location-banner",children:e.jsx("div",{className:"location-banner__container",children:e.jsx(v,{as:"div",documentHtml:t.banner})})}),a&&e.jsxs(e.Fragment,{children:[e.jsx(is,{className:"bg-white",innerClassName:"slider-block-container",title:e.jsx(D,{id:"location.freeInPersonClasses"}),description:"",seeAllLink:N(x.LOCATIONS,s,x.IN_PERSON_CLASSES),uniqueId:"in-person-classes",children:t.inPersonClasses.map(i=>{const o=i.data?i.data:i;return e.jsx(qe,{children:e.jsx(Ze,{...o})},`in-person-${o.id}`)})}),e.jsx(oc,{})]}),r&&e.jsx(e.Fragment,{children:e.jsx(is,{className:"bg-white",innerClassName:"slider-block-container",title:"Free Multi-Week Courses",description:"",seeAllLink:N(x.LOCATIONS,s,x.MULTI_WEEK_COURSES),uniqueId:"multi-week-classes",children:t.multiWeekClasses.map(i=>{const o=i.data?i.data:i;return e.jsx(qe,{children:e.jsx(Ze,{...o})},`in-person-${o.id}`)})})}),e.jsx(qt,{...t.gallery}),e.jsx(Ea,{...t.cardGrid,cardColumns:"3",innerBackgroundColor:"Light Gray",textAlignment:"Centered"}),e.jsx(ic,{...t.carousel}),e.jsx(Wc,{aboutTheLocation:t.aboutTheLocation,image:t.thumbnailImage}),t.centerName&&e.jsx(cn,{location:t}),t.form&&e.jsx(_a,{...t.form})]})})}function B0({location:s}){return e.jsxs("header",{className:"header-container",children:[e.jsx("div",{className:"header full-width",children:e.jsx(W0,{location:s})}),e.jsx(z,{fullWidth:!0})]})}function W0({location:s}){return e.jsxs("div",{className:"index-heading index-heading-block-container",children:[e.jsx(Ua,{location:s}),e.jsx(Ps,{HeadingComponent:()=>e.jsx(Y0,{location:s})}),e.jsx(Uc,{location:s})]})}function Y0({location:s}){const{titleHtml:t}=s,n=ts(t);return e.jsxs("h1",{children:[n," ",e.jsx("b",{children:"Multi-Week Courses"})]})}function Z0({location:s}){const t=ce(),n=te(),{locationId:a}=_e(),r=m.useCallback(()=>{n.push(N(x.LOCATIONS,a,x.MULTI_WEEK_COURSES),"root","replace")},[n,a]),{minStartDate:i,maxEndDate:o}=m.useMemo(()=>$a(),[]),{titleHtml:c}=s,l=ts(c);return e.jsxs("div",{className:"index-criteria",children:[e.jsx(Ps,{HeadingComponent:Q0,subHeading:`Explore the wide range of classes at our ${l} location. Browse by topic, date, and time of day to find the perfect fit for you.`}),e.jsx(Ha,{initialValues:Fa(t),minStartDate:i,maxEndDate:o,onClearFilters:r,onSubmit:d=>{var f;
37const h=(f=d.query)==null?void 0:f.trim();je("class_search",{class_type:"multi_week",query:h});const p=qa(d);n.push(M(N(x.LOCATIONS,a,x.MULTI_WEEK_COURSES),p))}})]})}function Q0(){return e.jsx("h2",{children:"All Multi-Week Courses"})}const Ka="multi-week-courses",gn={multiWeekCourse:null,multiWeekCourses:null,relatedArticles:null,upcomingInPersonClasses:null,totalMultiWeekCourses:0},Yc=Ce({name:Ka,initialState:gn,reducers:{resetMultiWeekCourse(s){const{multiWeekCourse:t,relatedArticles:n,upcomingInPersonClasses:a}=gn;s.multiWeekCourse=t,s.relatedArticles=n,s.upcomingInPersonClasses=a},resetMultiWeekCourses(s){const{multiWeekCourses:t,totalMultiWeekCourses:n}=gn;s.multiWeekCourses=t,s.totalMultiWeekCourses=n}},extraReducers:s=>{s.addCase(na,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.relatedArticles=n.map(({attributes:a})=>a)})),s.addCase(Wi,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{t.multiWeekCourses=n.map(({attributes:r})=>r),t.totalMultiWeekCourses=a})),s.addCase(Bi,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.multiWeekCourse=n.attributes})),s.addCase(oo,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.upcomingInPersonClasses=n.map(({attributes:a})=>a)})),s.addCase(_o,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{t.multiWeekCourses=n.map(({attributes:r})=>r),t.totalMultiWeekCourses=a}))}}),ct=Ne.selectorForSlice(`root.${Ka}`),mt={multiWeekCourse:ct("multiWeekCourse"),multiWeekCourses:ct("multiWeekCourses"),relatedArticles:ct("relatedArticles"),upcomingInPersonClasses:ct("upcomingInPersonClasses"),totalMultiWeekCourses:ct("totalMultiWeekCourses")},{resetMultiWeekCourse:K0,resetMultiWeekCourses:X0}=Yc.actions,J0=Yc.reducer;function eg(s,t,n){const a=U(),r=ce(),{pathname:i}=$e(),o=Fc(i),c=m.useRef(null),l=E(mt.multiWeekCourses),d=m.useCallback(p=>p?`${p}|${r.toString()}`:null,[r]),h=m.useCallback((p,f,g)=>{if(!p)return;a(X0());const j=Va({contentType:V.MULTI_WEEK_COURSE,locationSlug:p,locationTagIds:f,excludedTagIds:g,queryParams:r});Ga(r)?a(_o(j)):a(Wi(j))},[a,r]);return ue(()=>{h(s,t,n);const p=d(s);p&&(c.current=p)},[h,s,t,n,d]),m.useEffect(()=>{if(!o)return;const p=d(s);p&&p!==c.current&&(h(s,t,n),c.current=p)},[h,s,t,n,d,o]),{multiWeekCourses:l,isLoading:de(l)}}function sg(){const s=te(),t=ce(),{locationId:n}=_e(),{location:a,isLoading:r}=dn(n),{includedLanguageTagIds:i,excludedLanguageTagIds:o}=Gc(a==null?void 0:a.slug),{multiWeekCourses:c,isLoading:l}=eg(a==null?void 0:a.queryAsSlug,i,o),d=E(mt.totalMultiWeekCourses),h=E(q.registrationsAndReminders);if(le(c),r||l)return e.jsx(ne,{message:"Loading multi-week courses..."});const{seo:p={}}=a,{description:f,ogDescription:g,ogTitle:j}=p,b=f||g||"",P=new ze({description:`Join us at ${j} for Multi-Week Courses! ${b}`,title:`${j} Multi-Week Courses - Senior Planet from AARP`});function T(C){t.delete(I.PAGE),t.append(I.PAGE,C),s.push(M(N(x.LOCATIONS,n,x.MULTI_WEEK_COURSES),t))}return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"classes index-wrapper",children:[e.jsx(X,{seo:P}),e.jsx(B0,{location:a}),e.jsxs("div",{className:"index-block-container",children:[e.jsx(Z0,{location:a}),e.jsx(tg,{}),e.jsx(Da,{classes:c,currentPage:t.get(I.PAGE)||1,onPageChange:T,totalClasses:d,registrationsAndReminders:h})]})]}),e.jsx(cn,{location:a})]})}function tg(){return e.jsxs("div",{className:"registration-instructions",children:[e.jsxs("p",{className:"registration-instructions__heading",children:[e.jsx(R,{icon:Kn,size:"small"}),"Registration Required – In-Person or By Phone"]}),e.jsx("p",{children:"View full course details below, then stop by in person or call the Hotline (888-713-3495) to enroll. Online sign-up is not available for multi-week classes."})]})}function ng({classDetail:s}){const{courseHasPrerequisites:t,prerequisitesDescriptionHtml:n}=s;return t?e.jsxs("div",{className:"class-show__class-prerequisite",children:[e.jsx("h2",{children:"Class Prerequisites"}),e.jsx(v,{documentHtml:n})]}):null}function ag({classDetail:s}){const{courseHasPrerequisites:t}=s;return t?e.jsx("div",{className:"class-prerequisites-warning",children:e.jsxs("p",{className:"class-prerequisites-warning__heading",children:[e.jsx(R,{icon:Kn,size:"small"}),"Please note this class requires prerequisites in order to register."]})}):null}function rg(){const s=U(),{courseId:t}
37=_e(),n=E(mt.multiWeekCourse),a=E(mt.relatedArticles),r=E(mt.upcomingInPersonClasses);le(n);const i=m.useCallback(async()=>{s(K0());const{data:{attributes:j}}=await s(Bi(t)),{location:b,topics:P}=j,{id:T}=b;s(oo(T)),S(P)||s(We(null,ye(P,"id")))},[s,t]);if(ue(()=>{i()},[i]),!n)return e.jsx(ne,{});const{topics:o}=n,c=ye(o,"id"),l=ms({topics:c}),d=M(N(x.ARTICLES),l),{location:h,seo:p}=n,{slug:f}=h,g=M(N(x.LOCATIONS,f,x.IN_PERSON_CLASSES),l);return e.jsx(At,{classDetail:n,children:e.jsxs("div",{className:"class-show",children:[e.jsx(X,{seo:p}),e.jsx(Se,{status:n.status,id:n.id}),e.jsx(Za,{classDetail:n,children:e.jsx(og,{classDetail:n})}),e.jsx(ig,{upcomingInPersonClasses:r,seeAllRelatedClassesLink:g}),e.jsx(Js,{relatedArticles:a,seeAllRelatedArticlesLink:d})]})})}function ig({upcomingInPersonClasses:s,seeAllRelatedClassesLink:t}){const a=Pe().formatMessage({id:"classes.upcomingInPersonClasses"});return e.jsx(yt,{relatedClasses:s,seeAllRelatedClassesLink:t,title:a})}function og({classDetail:s}){return e.jsxs(e.Fragment,{children:[e.jsx(ag,{classDetail:s}),e.jsx(cg,{classDetail:s}),e.jsx(v,{documentHtml:s.registrationLogisticsHtml}),e.jsx(Ya,{classDetail:s}),e.jsx(ng,{classDetail:s}),e.jsx(Qa,{classDetail:s}),e.jsx(lg,{})]})}function cg({classDetail:s}){return e.jsxs("div",{className:"class-show__meeting-logistics",children:[e.jsx("h2",{children:e.jsx(D,{id:"classes.dateAndTime"})}),e.jsx(et,{classDetail:s})]})}function lg(){return e.jsx("p",{children:e.jsx(D,{id:"classes.inPersonHelp.hotlineMessage",values:{phoneNumber:e.jsx("b",{children:$s})}})})}function dg(){const s=E(q.primaryTopics),t=te(),n=as(ns.TABLET),r=as(ns.DESKTOP)?s:s.slice(0,n?Kd:Qd);return e.jsxs("div",{className:"category-selection-buttons",children:[e.jsx("p",{className:"category-selection-buttons__label",children:"Check out our topics:"}),e.jsx("div",{className:"category-selection-buttons__buttons",children:r.map(i=>e.jsx(L,{fill:"outline",color:"primary",shape:"round",size:"small",onClick:()=>{const o=new URLSearchParams;o.append("topic",i.id),t.push(M(N(x.ONLINE_CLASSES),o)+"#criteria")},children:e.jsx("span",{children:i.name})},i.id))})]})}const ug="/assets/classes-header-tk792fm4.png";function mg(){return e.jsxs("header",{className:"header-container",children:[e.jsxs("div",{className:"header",children:[e.jsx(hg,{}),e.jsx(Tt,{alt:"Classes header image",imageSrc:ug})]}),e.jsx(z,{fullWidth:!0})]})}function hg(){return e.jsxs("div",{className:"index-heading index-heading-block-container",children:[e.jsx(Ps,{HeadingComponent:pg,subHeading:"Explore one of our trending topics or view the full calendar list below"}),e.jsx(dg,{})]})}function pg(){return e.jsxs("h1",{children:["Let's find the ",e.jsx("b",{children:"perfect class"})," for you."]})}function fg(){const s=ce(),t=te(),n=m.useCallback(()=>{t.push(N(x.ONLINE_CLASSES),"root","replace")},[t]),{minStartDate:a,maxEndDate:r}=m.useMemo(()=>$a(),[]);return e.jsxs("div",{id:"criteria",className:"index-criteria",children:[e.jsx(Ps,{HeadingComponent:xg,subHeading:"Explore the wide range of classes at Senior Planet. Browse by type, location, topic, and more to find the perfect fit for you."}),e.jsx(Ha,{initialValues:Fa(s),minStartDate:a,maxEndDate:r,onClearFilters:n,onSubmit:i=>{var l;const o=(l=i.query)==null?void 0:l.trim();je("class_search",{class_type:"online",query:o});const c=qa(i);t.push(M(N(x.ONLINE_CLASSES),c))}})]})}function xg(){return e.jsx("h2",{children:"Online Classes"})}const Xa="online-classes",jn={alternateClasses:null,onlineClass:null,onlineClasses:null,relatedArticles:null,relatedOnlineClasses:null,totalOnlineClasses:0},Zc=Ce({name:Xa,initialState:jn,reducers:{resetOnlineClass(s){const{alternateClasses:t,onlineClass:n,relatedArticles:a,relatedOnlineClasses:r}=jn;s.alternateClasses=t,s.onlineClass=n,s.relatedArticles=a,s.relatedOnlineClasses=r},resetOnlineClasses(s){const{onlineClasses:t,totalOnlineClasses:n}=jn;s.onlineClasses=t,s.totalOnlineClasses=n}},extraReducers:s=>{s.addCase(We,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.relatedArticles=n.map(({attributes:a})=>a)})),s.addCase(Di,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.alternateClasses=n.map(({attributes:a})=>a.data)})),s.addCase(Zi,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{t.onlineClasses=n.map(({attributes:r})=>r),t.totalOnlineClasses=a})),s.addCase(Yi,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.onlineClass=n.attributes})),s.addCase(Zt,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.relatedOnlineClasses=n.map(({attributes:a})=>a)})),s.addCase(So,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{t.onlineClasses=n.map(({attributes:r})=>r),t.totalOnlineClasses=a}))}}),Ms=Ne.selectorForSlice(`root.${Xa}`),bs={alternateClasses:Ms("alternateClasses"),onlineClass:Ms("onlineClass"),onlineClasses:Ms("onlineClasses"),relatedArticles:Ms("relatedArticles"),relatedOnlineClasses:Ms("relatedOnlineClasses"),totalOnlineClasses:Ms("totalOnlineClasses")},{resetOnlineClasses:gg,resetOnlineClass:jg}=Zc.actions,Cg=Zc.reducer;function Ng(){const s=E(bs.onlineClasses),t=E(bs.totalOnlineClasses),n=E(q.registrationsAndReminders),a=te(),r=ce(),i=Ns();le(!0),m.useEffect(()=>{r.size>0&&i("#criteria","instant","start")},[i,s,r]);function o(l){r.delete(I.PAGE),r.append(I.PAGE,l),a.push(M(N(x.ONLINE_CLASSES),r))}const c=new ze({description:"Join free Senior Planet classes on technology, fitness, and creativity. Learn new skills and connect with a community of active older adults.",title:"Senior Planet Classes - Free Technology Training for Older Adults"});return e.jsxs("div",{className:"classes index-wrapper",children:[e.jsx(X,{seo:c}),e.jsx(mg,{}),e.jsxs("section",{className:"index-block-container",children:[e.jsx(fg,{}),e.jsx(Da,{classes:s,currentPage:r.get("page")||1,onPageChange:o,totalClasses:t,registrationsAndReminders:n})]})]})}function _g({children:s}){const t=U(),n=ce(),a=$e(),r=m.useRef(null),i=E(bs.onlineClasses),o=Wt(a.pathname)===N(x.ONLINE_CLASSES),c=m.useCallback(()=>{t(gg());const l=Va({contentType:V.ONLINE_CLASS,queryParams:n});Ga(n)?t(So(l)):t(Zi(l))},[t,n]);return m.useEffect(()=>{var p;if(!o)return;const l=n.toString(),d=(p=r.current)==null?void 0:p.toString();l!==d&&(c(),r.current=n)},[n,o,c]),de(i)?e.jsx(ne,{message:"Loading online classes..."}):s}function Sg(){const s=U(),{classId:t}=_e(),n=E(bs.onlineClass),a=E(bs.alternateClasses),r=E(bs.relatedArticles),i=E(bs.relatedOnlineClasses),o=E(q.registrationsAndReminders);le(n);const c=m.useCallback(async()=>{s(jg());const{data:{attributes:T}}=await s(Yi(t)),{id:C,titleHtml:A,topics:y}=T,k=ye(y,"id");s(Di(C,A)),S(k)||(s(Zt(C,k)),s(We(null,k)))},[s,t]);if(ue(()=>{c()},[c]),!n)return e.jsx(ne,{});const l=n.salesforceRecordId?o.find(T=>T.programId===n.salesforceRecordId):null,{topics:d,titleHtml:h}=n,p=ye(d,"id"),f=ms({topics:p}),g=M(N(x.ARTICLES),f),j=M($t(n),f),b=Bc(h),P=M($t(n),b);return e.jsx(At,{classDetail:n,children:e.jsxs("div",{className:"class-show",children:[e.jsx(X,{seo:n.seo}),e.jsx(Se,{status:n.status,id:n.id}),e.jsxs(Za,{classDetail:n,alternateClasses:a,seeAllAlternateClassesLink:P,children:[e.jsx(Eg,{classDetail:n,existingRegistration:l}),e.jsx(rc,{})]}),e.jsx("section",{className:"slider-wrapper bg-white",children:e.jsx(yt,{relatedClasses:i,seeAllRelatedClassesLink:j})}),e.jsx(Js,{relatedArticles:r,seeAllRelatedArticlesLink:g})]})})}function Eg({classDetail:s,existingRegistration:t}){return e.jsxs(e.Fragment,{children:[e.jsx(bg,{classDetail:s,existingRegistration:t}),e.jsx(Ya,{classDetail:s}),e.jsx(Qa,{classDetail:s}),e.jsx(Ig,{})]})}function bg({classDetail:s,existingRegistration:t}){const{zoom:n}=s,a=nt(s)&&(!s.registrationRequired||(t==null?void 0:t.status)==="Registered");return e.jsxs("div",{className:"class-show__meeting-logistics",children:[e.jsx("h2",{children:e.jsx(D,{id:"classes.dateAndTime"})}),e.jsx(et,{classDetail:s}),e.jsx(Ma,{classDetail:s,existingRegistration:t}),a&&e.jsxs(e.Fragment,{children:[e.jsx(Tg,{zoom:n,classDetail:s,existingRegistration:t}),e.jsx(Ag,{zoom:n}),e.jsx(yg,{zoom:n})]})]})}function Tg({zoom:s,classDetail:t,existingRegistration:n}){const a=Pc(),{zoomLink:r}=s,{salesforceRecordId:i}=t,o=()=>{je("click_link_zoomsite",{classId:t.id,programId:i,contentType:t.contentType,linkType:"zoom_link_text"}),a(t,{skipIfRegistered:!0,existingRegistration:n})};return e.jsx("span",{children:e.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:o,children:"Zoom Link"})})}function Ag({zoom:s}){const{zoomMeetingId:t}=s;return e.jsx("span",{children:e.jsx(D,{id:"classes.meetingId",values:{zoomMeetingId:t}})})}function yg({zoom:s}){const{zoomPhoneNumber:t}=s;return e.jsx("span",{children:e.jsx(D,{id:"classes.callInByPhone",values:{zoomPhoneNumber:t&&e.jsx("a",{href:`tel:${t}`,children:t})}})})}function Ig(){const{locale:s}=Pe(),t=dr[s]||dr.en;
37return e.jsxs("div",{className:"class-show__zoom-help",children:[e.jsxs("div",{className:"help-callout",children:[e.jsxs("div",{className:"help-text",children:[e.jsx(R,{icon:Kn}),e.jsx("span",{children:e.jsx(D,{id:"classes.zoomHelp.title"})})]}),e.jsxs("div",{className:"help-actions",children:[e.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:e.jsx("span",{children:e.jsx(D,{id:"classes.zoomHelp.instructionalPdf"})})}),e.jsx("a",{href:"/videos/how-to-join-a-zoom-meeting",target:"_blank",rel:"noopener noreferrer",children:e.jsx("span",{children:e.jsx(D,{id:"classes.zoomHelp.techTipVideo"})})})]})]}),e.jsx("p",{children:e.jsx(D,{id:"classes.zoomHelp.hotlineMessage",values:{phoneNumber:e.jsx("b",{children:$s})}})})]})}const Ja="pages",Pg={page:null},Qc=Ce({name:Ja,initialState:Pg,reducers:{clearPage(s){s.page=null}},extraReducers:s=>{s.addCase(Pn,_.handleSuccess((t,n)=>{t.page=n.payload.data.data.attributes}))}}),vg=Ne.selectorForSlice(`root.${Ja}`),Lg={page:vg("page")},{clearPage:Rg}=Qc.actions,Og=Qc.reducer;function wg(s){const[t,n]=m.useState(!1),{getToken:a,isAuthenticated:r}=K(),i=U(),o=E(Lg.page),c=o==null?void 0:o.slug,l=m.useCallback(async()=>{if(s){if(s===c)return;try{if(i(Rg()),r){const d=await a();await i(Pn(s,d))}else await i(Pn(s))}catch(d){if(d instanceof Bt.HttpError&&d.status===rs.UNAUTHORIZED){n(!0);return}}}},[i,a,r,c,s]);return ue(()=>{l()},[l]),{page:o,isLoading:de(o),unauthorized:t}}function kg(){const{pathname:s}=$e(),n=pd(s,"/").split("/").filter(Boolean);return{base:jt(n),slug:fd(n),segments:n}}function Mg({unauthorized:s,isPageLoading:t,page:n}){return s?!0:t?null:n}function Wr({slug:s}){const t=te(),{slug:n}=kg(),a=s??n,{page:r,isLoading:i,unauthorized:o}=wg(a);le(Mg({unauthorized:o,isPageLoading:i,page:r}));const c=()=>{t.canGoBack()?t.goBack():t.push(x.ROOT,"root","replace")};return o?e.jsx(Dg,{isOpen:!0,onClose:c}):i?e.jsx(ne,{message:"Loading page..."}):e.jsxs(e.Fragment,{children:[e.jsx(X,{seo:r.seo}),e.jsx(Se,{status:r.status,id:r.id}),e.jsxs("div",{children:[e.jsx(tt,{...r.header}),e.jsx(st,{acfComponents:r.acfComponents})]})]})}function Dg({isOpen:s,onClose:t}){return e.jsxs(os,{className:$("modal","get-access-modal"),isOpen:s,onDidDismiss:t,children:[e.jsxs("header",{children:[e.jsx("h2",{children:"Get Access"}),e.jsx(Vs,{slot:"end",children:e.jsx(L,{fill:"clear",size:"large",onClick:t,children:e.jsx(R,{icon:Vt,slot:"icon-only"})})})]}),e.jsx("div",{className:"modal__content",children:e.jsxs("div",{className:"get-access-modal__content",children:[e.jsx("p",{children:"Create an account and join our vibrant community to get access to this content and unlock a more personalized experience."}),e.jsx(tn,{}),e.jsx(Ks,{}),e.jsx(L,{fill:"clear",onClick:t,children:"Close"})]})})]})}const er="partner-locations-map",Ug={results:null,totalResults:null,selectedSiteId:null},Kc=Ce({name:er,initialState:Ug,reducers:{clearResults(s){s.results=null,s.totalResults=null,s.selectedSiteId=null},selectSite(s,{payload:t}){s.selectedSiteId=t}},extraReducers:s=>{s.addCase(bo,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{t.results=n.map(({id:r,attributes:i})=>({...i,id:r})),t.totalResults=a}))}}),Cn=Ne.selectorForSlice(`root.${er}`),Nn={results:Cn("results"),totalResults:Cn("totalResults"),selectedSiteId:Cn("selectedSiteId")},{clearResults:Hg,selectSite:Fg}=Kc.actions,qg=Kc.reducer;function $g(s,t){const n=de(s),a=m.useRef({sites:[],cluster:!0});return!n&&s!==a.current.sites&&(a.current={sites:s,cluster:!t}),{mapSites:a.current.sites,cluster:a.current.cluster}}function zg({initialZip:s="",onSearch:t}){const n=Pe(),a=js({zip:Q().matches(/^\d{5}$/,n.formatMessage({id:"partnerLocationsMap.zipInvalid"})).required(n.formatMessage({id:"partnerLocationsMap.zipRequired"}))});return e.jsx(Te,{enableReinitialize:!0,initialValues:{zip:s},validationSchema:a,validateOnBlur:!0,validateOnChange:!1,onSubmit:({zip:r})=>t(r),children:e.jsx(Ae,{className:"zip-code-search-form",noValidate:!0,children:e.jsx(zs,{inputmode:"numeric",label:n.formatMessage({id:"partnerLocationsMap.searchLabel"}),maskOptions:Li,name:"zip",placeholder:n.formatMessage({id:"partnerLocationsMap.searchPlaceholder"}),children:e.jsx(ds,{"aria-label":n.formatMessage({id:"partnerLocationsMap.searchButton"}),fill:"solid",color:"primary",slot:"end",children:e.jsx(R,{icon:ii,slot:"icon-only"})})})})})}const Xc=s=>Number.isFinite(s==null?void 0:s.latitude)&&Number.isFinite(s==null?void 0:s.longitude),Hs=s=>({lat:s.latitude,lng:s.longitude}
37),{DEFAULT_ZOOM:Gg,USA_CENTER:Vg,USA_ZOOM:Bg,FIT_BOUNDS_PADDING:Wg}=Ii,Yg={sites:xm.isRequired};function Jc({sites:s}){const t=Si();return m.useEffect(()=>{if(!t)return;const n=s.filter(Xc);if(n.length===0){t.setCenter(Vg),t.setZoom(Bg);return}if(n.length===1){t.setCenter(Hs(n[0])),t.setZoom(Gg);return}const a=new window.google.maps.LatLngBounds;n.forEach(r=>a.extend(Hs(r))),t.fitBounds(a,Wg)},[t,s]),null}Jc.propTypes=_t(Yg);function Zg(){const[s,t]=m.useState({}),n=m.useRef({}),a=m.useCallback((i,o)=>{t(c=>{if(i&&c[o]===i||!i&&!(o in c))return c;if(i)return{...c,[o]:i};const l={...c};return delete l[o],l})},[]),r=m.useCallback(i=>{const o=n.current;return o[i]||(o[i]=c=>a(c,i)),o[i]},[a]);return{markers:s,getMarkerRef:r}}function Qg({sites:s,onSelectSite:t}){const n=Si(),{markers:a,getMarkerRef:r}=Zg(),i=m.useMemo(()=>n?new xd({map:n,renderer:new Kg}):null,[n]);return m.useEffect(()=>{i&&(i.clearMarkers(),i.addMarkers(Object.values(a)))},[i,a]),m.useEffect(()=>{if(i)return()=>i.clearMarkers()},[i]),s.map(o=>e.jsx(Ei,{position:Hs(o),title:o.name,onClick:()=>t(o.id),ref:r(o.id),children:e.jsx(gd,{background:"var(--ion-color-primary)",borderColor:"var(--ion-color-dark-red)",glyphColor:"var(--ion-color-dark-red)"})},o.id))}class Kg extends jd{render(t,n,a){var o;const r=super.render(t,n,a),i=t.count>Math.max(10,n.clusters.markers.mean);return(o=r.content)==null||o.setAttribute("fill",i?"var(--ion-color-dark-red)":"var(--ion-color-mid-red)"),r}}function el(s){if(!s)return"";const{street:t,city:n,state:a}=s;return[[t,n].map(i=>i==null?void 0:i.trim()).filter(Boolean).join(" "),a==null?void 0:a.trim()].filter(Boolean).join(", ")}function sl(s){if(!s)return s;const t=s.trim();return t?/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:t.startsWith("//")?`https:${t}`:`https://${t}`:""}function Xg({latitude:s,longitude:t,name:n,street:a,city:r,state:i,postalCode:o}){const c=[a,r,i,o].map(h=>h==null?void 0:h.trim()).filter(Boolean).join(", "),l=s!=null&&t!=null,d=c||n||(l?`${s},${t}`:"");return`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(d)}`}const Jg=()=>Mn.isNativePlatform();async function ej(s){const t=Xg(s);Jg()?await Mt.open({url:t}):window.open(t,"_blank","noopener,noreferrer")}function tl({site:s}){return e.jsxs(L,{className:"get-directions-button",fill:"outline",size:"small",onClick:()=>ej(s),children:[e.jsx(R,{slot:"start",icon:Cd,"aria-hidden":"true"}),e.jsx(D,{id:"partnerLocationsMap.getDirections"})]})}function sj({site:s}){const t=el(s);return e.jsxs("div",{className:"partner-site-detail-card",children:[e.jsx("h3",{className:"partner-site-detail-card__name",children:s.name}),(t||s.phone)&&e.jsxs("p",{className:"partner-site-detail-card__address",children:[t,t&&s.phone&&" - ",s.phone&&e.jsx("a",{href:`tel:${s.phone}`,children:s.phone})]}),s.website&&e.jsx("p",{className:"partner-site-detail-card__website",children:e.jsx("a",{href:sl(s.website),target:"_blank",rel:"noopener noreferrer",children:e.jsx(D,{id:"partnerLocationsMap.visitWebsite"})})}),s.email&&e.jsx("p",{className:"partner-site-detail-card__email",children:e.jsx("a",{href:`mailto:${s.email}`,children:s.email})}),e.jsx(tl,{site:s})]})}const{API_KEY:tj,MAP_ID:nj,DEFAULT_ZOOM:aj,USA_CENTER:rj,USA_ZOOM:ij,MIN_ZOOM:oj}=Ii,cj=[0,-32];function lj({sites:s,selectedSiteId:t=null,onSelectSite:n,cluster:a=!1}){const r=s.filter(Xc),i=r.find(c=>c.id===t),o=r.length>0;return e.jsx("div",{className:"partner-sites-map",children:e.jsx(Nd,{apiKey:tj,children:e.jsxs(_d,{mapId:nj,className:"partner-sites-map__canvas",defaultCenter:o?Hs(r[0]):rj,defaultZoom:o?aj:ij,minZoom:oj,gestureHandling:"greedy",disableDefaultUI:!1,zoomControl:!0,zoomControlOptions:{position:Sd.RIGHT_BOTTOM},children:[a?e.jsx(Qg,{sites:r,onSelectSite:n}):r.map(c=>e.jsx(Ei,{position:Hs(c),title:c.name,onClick:()=>n(c.id)},c.id)),i&&e.jsx(Ed,{position:Hs(i),pixelOffset:cj,onCloseClick:()=>n(null),children:e.jsx(sj,{site:i})}),e.jsx(Jc,{sites:s})]})})})}function dj({site:s,isSelected:t=!1,onSelect:n}){const a=el(s);return e.jsx(ke,{className:$("partner-site-list-item",{"partner-site-list-item--selected":t}),children:e.jsxs(we,{children:[e.jsxs("button",{type:"button",className:"partner-site-list-item__select","aria-pressed":t,onClick:()=>n(s.id),children:[e.jsx("span",{className:"partner-site-list-item__name",children:s.name}),a&&e.jsx("span",{className:"partner-site-list-item__address",children:a})]}),s.phone&&e.jsx("p",{className:"partner-site-list-item__phone",children:e.jsx("a",{href:`tel:${s.phone}`,children:s.phone})}),s.website&&e.jsx("p",{className:"partner-site-list-item__website",children:e.jsx("a",{href:sl(s.website),target:"_blank",rel:"noopener noreferrer",children:e.jsx(D,{id:"partnerLocationsMap.visitWebsite"})})}),s.email&&e.jsx("p",{className:"partner-site-list-item__email",children:e.jsx("a",{href:`mailto:${s.email}`,children:s.email})}),t&&e.jsx(tl,{site:s})]})})}function uj({sites:s,selectedSiteId:t=null,onSelectSite:n}){const a=Pe(),r=m.useRef(null),i=m.useRef({}),o=12;return m.useEffect(()=>{if(t==null)return;const c=r.current,l=i.current[t];if(!c||!l)return;const d=()=>
37{if(c.scrollHeight<=c.clientHeight)return;const f=c.getBoundingClientRect(),g=l.getBoundingClientRect();if(g.top>=f.top&&g.bottom<=f.bottom)return;const b=g.top-f.top+c.scrollTop;c.scrollTo({top:Math.max(b-o,0),behavior:"smooth"})};let h;const p=requestAnimationFrame(()=>{h=requestAnimationFrame(d)});return()=>{cancelAnimationFrame(p),h&&cancelAnimationFrame(h)}},[t]),e.jsx("ul",{ref:r,className:"partner-site-results-list","aria-label":a.formatMessage({id:"partnerLocationsMap.resultsHeading"}),children:s.map(c=>e.jsx("li",{ref:l=>{i.current[c.id]=l},children:e.jsx(dj,{site:c,isSelected:c.id===t,onSelect:n})},c.id))})}function mj(){const s=Pe(),t=te(),n=U(),a=ce(),{announcePolite:r}=xe(),i=m.useRef(null),o=a.get(I.ZIP),c=E(Nn.results),l=E(Nn.totalResults),d=E(Nn.selectedSiteId),h=!S(o);le(c);function p(y){const k=new URLSearchParams;k.set(I.ZIP,y),t.push(M(N(x.PARTNER_LOCATIONS_MAP),k))}function f(y){n(Fg(y))}m.useEffect(()=>{if(!c||c===i.current)return;i.current=c;const y=l??c.length;h?c.length===0?r(s.formatMessage({id:"partnerLocationsMap.noResultsAnnounce"},{zip:o})):r(s.formatMessage({id:"partnerLocationsMap.resultCount"},{count:y,zip:o})):r(s.formatMessage({id:"partnerLocationsMap.allLocationsAnnounce"},{count:y}))},[c,l,o,h,r,s]);const g=new ze({description:s.formatMessage({id:"partnerLocationsMap.seoDescription"}),title:s.formatMessage({id:"partnerLocationsMap.pageTitle"})}),j=!de(c)&&c.length>0,b=h&&!de(c)&&c.length===0,P=de(c),T=h&&j,{mapSites:C,cluster:A}=$g(c,h);return e.jsxs(e.Fragment,{children:[e.jsx(X,{seo:g}),e.jsx("section",{className:"partner-locations-map index-block-container",children:e.jsxs("div",{className:"partner-locations-map__layout",children:[e.jsxs("div",{className:"partner-locations-map__list-column",children:[e.jsxs("div",{className:"partner-locations-map__intro",children:[e.jsx("h2",{className:"partner-locations-map__intro-heading",children:s.formatMessage({id:"partnerLocationsMap.emptyStateHeading"})}),e.jsx("p",{children:e.jsx(D,{id:"partnerLocationsMap.emptyStateBody",values:{licensingLink:y=>e.jsx("a",{href:Yt.OATS_LICENSING,target:"_blank",rel:"noopener noreferrer",children:y}),centersLink:y=>e.jsx(Y,{routerLink:N(x.LOCATIONS),children:y})}})})]}),e.jsx(zg,{initialZip:o||"",onSearch:p}),!h&&j&&e.jsx("p",{className:"partner-locations-map__all-hint",children:s.formatMessage({id:"partnerLocationsMap.allLocationsHint"},{count:l??c.length})}),b&&e.jsxs("div",{className:"partner-locations-map__no-results",children:[e.jsx("h3",{children:s.formatMessage({id:"partnerLocationsMap.noResultsHeading"})}),e.jsx("p",{children:s.formatMessage({id:"partnerLocationsMap.noResultsBody"},{zip:o})})]}),T&&e.jsx(uj,{sites:c,selectedSiteId:d,onSelectSite:f})]}),e.jsxs("div",{className:"partner-locations-map__map-column",children:[e.jsx(lj,{sites:C,selectedSiteId:d,onSelectSite:f,cluster:A}),P&&e.jsxs("div",{className:"partner-locations-map__loading",role:"status","aria-live":"polite",children:[e.jsx(Je,{name:"crescent"}),e.jsx("span",{children:s.formatMessage({id:"partnerLocationsMap.loading"})})]})]})]})})]})}const hj={children:u.node.isRequired};function nl({children:s}){const t=U(),a=ce().get(I.ZIP);return m.useEffect(()=>{t(Hg()),t(bo(a))},[t,a]),s}nl.propTypes=_t(hj);function pj(){const s=E(xt.podcastsPage);return le(s),s?e.jsxs("div",{children:[e.jsx(X,{seo:s.seo}),e.jsx(Se,{status:s.status,id:s.id}),e.jsx(tt,{...s.header}),e.jsx(st,{acfComponents:s.acfComponents})]}):e.jsx(ne,{})}function fj(){const s=U(),{podcastId:t}=_e(),n=E(xt.podcast),a=E(xt.relatedArticles);le(n);const r=m.useCallback(async()=>{if(S(t))return;s(l2());const{data:h}=await s(Xi(t)),{topics:p}=h.attributes;S(p)||s(We(null,ye(p,"id")))},[s,t]);if(ue(()=>{r()},[r]),!n)return e.jsx(ne,{});const i=ba(n.season,n.episode,n.titleHtml),{topics:o}=n,c=ye(o,"id"),l=ms({topics:c}),d=M(N(x.ARTICLES),l);return e.jsxs(e.Fragment,{children:[e.jsxs("article",{className:"show-block-container",children:[e.jsx(X,{seo:n.seo}),e.jsx(Se,{status:n.status,id:n.id}),e.jsxs("header",{className:"show-header",children:[e.jsx(Xs,{tags:n.topics}),e.jsx(v,{as:"h1",documentHtml:i}),e.jsx(v,{as:"p",documentHtml:Ta(n.guest,n.guestTitle,n.guestCompany)}),e.jsx(z,{})]}),e.jsxs("div",{className:"show-content",children:[e.jsxs("div",{className:"featured-image-and-description",children:[e.jsxs("div",{className:"show-sidebar",children:[e.jsx(Xe,{contentType:"podcast",contentId:n.id}),e.jsx(z,{}),e.jsx("div",{className:"meta-info",children:e.jsx("p",{className:"meta-info-date",children:Oe(Ie(n.createdAt),"MMMM d, yyyy")})}),e.jsx(z,{}),e.jsx(Ve,{contentTitle:i})]}),e.jsx("iframe",{src:n.transistorUrl,title:`${n.titleHtml} Podcast`,style:{height:"180px",width:"100%"},frameBorder:"0",scrolling:"no",seamless:!0}),e.jsx("div",{className:"rich-text",children:e.jsx(v,{as:"div",documentHtml:n.contentHtml})})]}),e.jsxs("aside",{className:"show-sidebar",children:[e.jsx(Xe,{contentType:"podcast",contentId:n.id}),e.jsx(z,{}),e.jsx("div",{className:"meta-info",children:e.jsx("p",{className:"meta-info-date",children:Oe(Ie(n.createdAt),"MMMM d, yyyy")})}),e.jsx(z,{}),e.jsx(Ve,{contentTitle:i})]})]})]}),e.jsx("section",{className:"slider-wrapper bg-white",children:e.jsx(Js,{relatedArticles:a,seeAllRelatedArticlesLink:d})})]})}function xj({children:s}){const t=U();return ue(()=>{t(d2()),t(Qi())},[t]),s}function gj({initialValues:s,onSubmit:t}){return e.jsx(Te,{initialValues:s,onSubmit:t,validateOnBlur:!1,children:e.jsxs(Ae,{className:"profile-and-preferences-form",noValidate:!0,children:[e.jsx("div",{className:"profile-and-preferences-form__inputs",children:e.jsx(Lc,{label:"What's your preferred class format?",name:"preferredClassFormat",optional:!0,options:Fd,radioInputProps:{mode:"ios"}})}),e.jsx(ka,{backUrl:N(x.SIGN_UP,x.SETUP_PERSONAL_PROFILE),forwardUrl:N(x.SIGN_UP,x.FINAL_DETAILS),stepNumber:2,totalSteps:Jn})]})})}const jj={preferredClassFormat:""};function Cj(){var h;const s=as(ns.DESKTOP),t=U(),n=te(),{isAuthenticated:a}=K(),r=E(Re.userAccountIdentifiers),i=E(q.userProfile),o=E(Re.preferencesAndGoals)||jj,c=p=>{const{preferredClassFormat:f}=p;if(!S(f)){let g=[f];f===ss.BOTH&&(g=[ss.ONLINE,ss.IN_PERSON]),t(ih({preferredClassFormat:g}))}n.push(N(x.SIGN_UP,x.FINAL_DETAILS),"forward","replace")};if(!(!S(r)||a&&((h=i==null?void 0:i.userAccount)==null?void 0:h.hasLoggedIn)===!1))return e.jsx(cs,{to:N(x.SIGN_UP)});const d=new ze({description:"Share your goals and interests to get personalized class and article recommendations from Senior Planet’s team of tech trainers and experts.",title:"Cho
37ose Your Preferences & Goals – Step 3 | Senior Planet from AARP"});return e.jsxs(e.Fragment,{children:[e.jsx(Et,{}),e.jsx(X,{seo:d}),e.jsxs(on,{children:[e.jsx(Oa,{pageTitle:"Your class preferences",children:e.jsx(gj,{initialValues:Nj(o),onSubmit:c})}),s&&e.jsx(wa,{})]})]})}function Nj(s){let{preferredClassFormat:t}=s;return t.includes(ss.IN_PERSON)&&t.includes(ss.ONLINE)?t=ss.BOTH:t=jt(t),{preferredClassFormat:t}}function _j(s={}){return Object.keys(s).reduce((t,n)=>{const a=s[n];return(bd(a)||!S(a))&&(t[n]=a),t},{})}function Sj(){var g;const s=U(),t=te(),{showErrorToast:n}=us(),{announcePolite:a}=xe(),{getToken:r,isAuthenticated:i,login:o}=K(),c=E(Re.finalDetails),l=E(Re.personalProfile),d=E(Re.preferencesAndGoals),h=E(Re.userAccountIdentifiers),p=E(q.userProfile);return m.useEffect(()=>{a("Setting up your account. Please wait.")},[a]),ue(()=>{(async()=>{try{const b=bj(c,l,d),P=h==null?void 0:h.initializationToken,T=!P&&i?await r():void 0;await s(Au({initializationToken:P,bearerToken:T,profile:b})),s(pr()),t.push(N(x.SIGN_UP,x.ACCOUNT_CREATION_COMPLETE),"forward","replace")}catch(b){b.status===rs.UNAUTHORIZED?(n("Your session has expired. Please sign in to continue."),setTimeout(()=>o({returnTo:N(x.HOME)}),3e3)):b.status===rs.UNPROCESSABLE_ENTITY?(n("Your profile has already been set up. Please sign in."),setTimeout(()=>o({returnTo:N(x.HOME)}),3e3)):(n("Failed to initialize user profile. Update profile information on the Dashboard after signing in."),s(pr()),t.push(N(x.SIGN_UP,x.ACCOUNT_CREATION_COMPLETE),"forward","replace"))}})()},[]),!S(h)||i&&((g=p==null?void 0:p.userAccount)==null?void 0:g.hasLoggedIn)===!1?e.jsxs("div",{className:"creating-account-container",children:[e.jsx(Et,{}),e.jsx(F,{src:Xt,alt:"Senior Planet logo",className:"creating-account-container__senior-planet-logo"}),e.jsx(Ej,{})]}):e.jsx(cs,{to:N(x.SIGN_UP)})}function Ej(){return e.jsx("div",{className:"creating-account-container__content",children:e.jsxs("div",{className:"processing-indicator",children:[e.jsx(Je,{color:"primary",name:"crescent"}),e.jsx("p",{className:"message",children:"Setting up your account..."})]})})}function bj(s,t,n){if(S(s)&&S(t)&&S(n))return{};const a={...s,...t,...n};return _j(a)}function Tj(){const{puzzleId:s}=_e(),t=E(ut.puzzle),n=E(ut.relatedArticles),a=U();le(t);const r=m.useCallback(async()=>{a(T2());const{data:h}=await a(to(s)),{topics:p}=h.attributes;S(p)||a(We(null,ye(p,"id")))},[a,s]);if(ue(()=>{r()},[r]),!t)return e.jsx(ne,{});const{topics:i,seo:o}=t,c=ye(i,"id"),l=ms({topics:c}),d=M(N(x.ARTICLES),l);return e.jsxs(e.Fragment,{children:[e.jsxs("article",{className:"show-block-container",children:[e.jsx(X,{seo:o}),e.jsx(Se,{status:t.status,id:t.id}),e.jsxs("header",{className:"show-header",children:[e.jsx(Xs,{tags:t.topics}),e.jsx(v,{as:"h1",documentHtml:t.titleHtml}),e.jsx(z,{})]}),e.jsxs("div",{className:"show-content",children:[e.jsxs("div",{className:"featured-image-and-description",children:[e.jsxs("div",{className:"show-sidebar",children:[e.jsx(Xe,{contentType:"puzzle",contentId:t.id}),e.jsx(z,{}),e.jsx(Ve,{contentTitle:t.titleHtml})]}),e.jsxs("div",{className:"rich-text",children:[e.jsx(v,{as:"div",documentHtml:t.contentHtml}),e.jsx("iframe",{src:t.src,title:`${t.titleHtml} Puzzle`,width:"100%",height:"600",className:"puzzle-iframe"})]})]}),e.jsxs("aside",{className:"show-sidebar",children:[e.jsx(Xe,{contentType:"puzzle",contentId:t.id}),e.jsx(z,{}),e.jsx(Ve,{contentTitle:t.titleHtml})]})]})]}),e.jsx("section",{className:"slider-wrapper bg-white",children:e.jsx(Js,{relatedArticles:n,seeAllRelatedArticlesLink:d})})]})}function Aj(){const{quizId:s}=_e(),t=E(kt.quiz),n=U();le(t);const a=m.useCallback(()=>{n(C2()),n(lo(s))},[n,s]);if(ue(()=>{a()},[a]),!t)return e.jsx(ne,{});const{seo:r}=t;return e.jsx(e.Fragment,{children:e.jsxs("article",{className:"show-block-container",children:[e.jsx(X,{seo:r}),e.jsx(Se,{status:t.status,id:t.id}),e.jsx("header",{className:"show-header",children:e.jsx(v,{as:"h1",documentHtml:t.titleHtml})}),e.jsxs("div",{className:"show-content",children:[e.jsxs("div",{className:"featured-image-and-description",children:[e.jsxs("div",{className:"show-sidebar",children:[e.jsx(Xe,{contentType:"quiz",contentId:t.id}),e.jsx(z,{}),e.jsx(Ve,{contentTitle:t.titleHtml})]}),e.jsxs("div",{className:"rich-text",children:[e.jsx(v,{as:"div",documentHtml:t.contentHtml}),e.jsx(Sc,{typeformId:t.typeformId,title:t.titleHtml})]})]}),e.jsxs("aside",{className:"show-sidebar",children:[e.jsx(Xe,{contentType:"quiz",contentId:t.id}),e.jsx(z,{}),e.jsx(Ve,{contentTitle:t.titleHtml})]})]})]})})}function yj({searchResult:s}){return s.contentType==="article"?e.jsx(As,{...s.data}
37):Ud.includes(s.contentType)?e.jsx(gc,{item:s.data,contentType:s.contentType}):Xn.includes(s.contentType)?e.jsx(Ze,{...s.data}):null}function Ij({selectedFilter:s=ps.ALL,onFilterChange:t,filters:n=Bd}){const a=r=>{t(r)};return e.jsx("div",{className:"search-filters",children:n.map(r=>e.jsx(L,{fill:s===r.value?"solid":"outline",color:(s===r.value,"dark"),onClick:()=>a(r.value),children:r.label},r.value))})}function Pj(s){const t=s.get(I.QUERY)||"",n=s.get(I.CONTENT_TYPE)||ps.ALL;return{query:t,contentType:n}}function Yr(){const s=te(),t=ce(),n=Pj(t),a=i=>{var c;const o=(c=i.query)==null?void 0:c.trim();o&&(je("global_search",{query:o,search_scope:"search_results"}),s.push(Zr(o,n.contentType)))},r=i=>{s.push(Zr(n.query,i))};return e.jsx(e.Fragment,{children:e.jsx("div",{id:"search-criteria",className:"search-criteria",children:e.jsxs("div",{className:"search-criteria-row",children:[e.jsx(Te,{initialValues:{query:n.query},onSubmit:a,enableReinitialize:!0,children:e.jsx(Ae,{className:"search-criteria-form",noValidate:!0,children:e.jsx(Qs,{name:"query",placeholder:"Search Senior Planet..."})})}),e.jsx("div",{className:"search-criteria-filters",children:e.jsx(Ij,{selectedFilter:n.contentType,onFilterChange:r})})]})})})}function Zr(s,t){const n=new URLSearchParams;if(s&&n.set(I.QUERY,s),t&&t!=="all"){let r=t;t==="class"&&(r=bi),n.set(I.CONTENT_TYPE,r)}const a=n.toString();return`/search-results${a?`?${a}`:""}`}const sr="search-results",vj={searchResults:null,totalResults:null,perPage:15},al=Ce({name:sr,initialState:vj,reducers:{clearSearchResults(s){s.searchResults=null,s.totalResults=null}},extraReducers:s=>{s.addCase(aa,_.handleSuccess((t,{payload:{data:{data:n,meta:{total:a}}}})=>{t.searchResults=n.map(({attributes:r})=>r),t.totalResults=a}))}}),Qr=Ne.selectorForSlice(`root.${sr}`),wn={searchResults:Qr("searchResults"),totalResults:Qr("totalResults")},{clearSearchResults:Lj}=al.actions,Rj=al.reducer;function Oj(){const s=te(),t=ce(),n=Ns(),{announcePolite:a}=xe(),r=m.useRef(null),i=t.get(I.PAGE)||1,o=t.get(I.QUERY),c=E(wn.searchResults),l=E(wn.totalResults);le(c);function d(p){const{selected:f}=p,g=f+1;t.delete(I.PAGE),t.append(I.PAGE,g),s.push(M(N(x.SEARCH_RESULTS),t))}if(m.useEffect(()=>{n("#search-criteria","instant")},[n,c]),m.useEffect(()=>{c&&c!==r.current&&(r.current=c,c.length===0?a(`No results found for ${o}`):a(`Found ${l} ${Is("result",l)} for ${o}`))},[c,l,o,a]),S(o))return e.jsx(Yr,{});const h=new ze({description:"Explore your search results across Senior Planet’s classes, articles, and other resources. Find the information or inspiration you’re looking for.",title:"Search Results - Senior Planet from AARP"});return e.jsxs(e.Fragment,{children:[e.jsx(X,{seo:h,schema:{"@context":"https://schema.org","@type":"SearchResultsPage",name:"Search Results - Senior Planet from AARP",url:typeof window<"u"?window.location.href:"https://seniorplanet.org/search"}}),e.jsx(Yr,{}),e.jsxs("section",{className:"index-block-container",children:[e.jsx("h1",{className:"index-h1",children:"Search Results"}),e.jsxs("div",{className:"content-index",children:[e.jsx("div",{className:"content-index-cards",children:c.map((p,f)=>e.jsx(yj,{searchResult:p},f))}),c.length===0&&e.jsxs("div",{className:"search-results-empty",children:[e.jsx(R,{icon:Bs,color:"primary",size:"large"}),e.jsxs("div",{className:"text-block",children:[e.jsx("h3",{children:"No results found"}),e.jsx("p",{children:"Try adjusting your search to find what you're looking for"})]})]}),c.length>0&&e.jsx(vs,{currentPage:i,onPageChange:d,totalItems:l})]})]})]})}function wj({queryParams:s}){const t=s.get(I.QUERY)||"",n=s.get(I.PAGE)||1,a=s.get(I.CONTENT_TYPE),r=new URLSearchParams;return r.set(w.PAGE,n),S(t)||r.append(w.QUERY,t),S(a)||r.set(w.CONTENT_TYPE,a),r}function kj({children:s}){const t=U(),n=ce(),a=E(wn.searchResults),r=n.get(I.QUERY);return m.useEffect(()=>{if(S(r))return;t(Lj());const i=wj({queryParams:n});t(aa(i))},[t,n,r]),r&&de(a)?e.jsx(ne,{message:"Loading search results..."}):s}function Mj({initialValues:s,onSubmit:t,primaryTopics:n}){const a=n.map(r=>({key:r.name,value:r.name}));return e.jsx(Te,{initialValues:s,onSubmit:t,validateOnBlur:!1,children:e.jsxs(Ae,{className:"profile-and-preferences-form",noValidate:!0,children:[e.jsxs("div",{className:"profile-and-preferences-form__inputs",children:[e.jsxs("div",{className:"profile-and-preferences-form__input-with-description",children:[e.jsx(he,{fill:"outline",label:"What's your preferred name?",name:"preferredName",optional:!0,placeholder:"Enter preferred name"}),e.jsx("p",{className:"stacked-label-input__description",children:'"What should we call you?" Prefer Jon to Jonathan? Fran to Francesca? Let us know! This will be used in communications and your dashboard. Visible to you and Senior Planet staff only.'})]}),e.jsxs("div",{className:"profile-and-preferences-form__input-with-description",children:[e.jsx(he,{disabled:!0,fill:"outline",label:"Your public username.",name:"username",title:"This value can be changed after you finish creating your profile"}),e.jsx("p",{className:"stacked-label-input__description",children:'Visible to others in our online community, for example: social forums, groups, and comments. You will be able to change this in your Dashboard under "Profile Settings."'})]}),e.jsx(nn,{checkboxInputProps:{labelPlacement:"end"},label:"What topics best describe what you're looking for?",name:"topicsOfInterest",optional:!0,options:a})]}),e.jsx(ka,{backUrl:N(x.SIGN_UP),forwardUrl:N(x.SIGN_UP,x.PREFERENCES_AND_GOALS),stepNumber:1,totalSteps:Jn,withBackButton:!1})]})})}const Kr={preferredName:"",username:""};function Dj(){var g;const s=as(ns.DESKTOP),t=U(),n=te(),{isAuthenticated:a}=K(),r=E(Re.personalProfile)||Kr,i=E(Re.userAccountIdentifiers),o=E(q.userProfile),c={...Kr,...r,username:(i==null?void 0:i.username)||""},d=E(q.primaryTopics).filter(({slug:j})=>!Dt.includes(j)),h=j=>{const{preferredName:b,topicsOfInterest:P}=j;(!S(b)||!S(P))&&t(rh({preferredName:b,topicsOfInterest:P})),n.push(N(x.SIGN_UP,x.PREFERENCES_AND_GOALS),"forward","replace")};if(!(!S(i)||a&&((g=o==null?void 0:o.userAccount)==null?void 0:g.hasLoggedIn)===!1))return e.jsx(cs,{to:N(x.SIGN_UP)});const f=new ze({description:"Set up your personal profile to help us tailor your Senior Planet experience. Share your interests and preferences to get personalized recommendations and stay updated on the latest content.",title:"Set Up Your Senior Planet Profile – Step 2 | Personalize Your Experience"});return e.jsxs(e.Fragment,{children:[e.jsx(Et,{}),e.jsx(X,{seo:f}),e.jsxs(on,{children:[e.jsx(Oa,{pageTitle:"Set up your personal profile",children:e.jsx(Mj,{initialValues:c,onSubmit:h,primaryTopics:d})}),s&&e.jsx(wa,{})]})]})}function Uj({children:s}){return e.jsx("div",{className:"sign-up-content-container",children:s})}function Ds({children:s}){return e.jsx(ci,{children:e.jsx(zt,{children:e.jsx(Uj,{children:s})})})}const tr="trainers",Hj={trainer:null,trainerIndex:null,upcomingClasses:null},rl=Ce({name:tr,initialState:Hj,reducers:{resetTrainer(s){s.trainer=null},resetTrainerIndex(s){s.trainerIndex=null},resetUpcomingClasses(s){s.upcomingClasses=null}},extraReducers:s=>{s.addCase(ro,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.trainer=n.attributes})),s.addCase(io,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.upcomingClasses=n.map(({attributes:a})=>a.data)})),s.addCase(po,_.handleSuccess((t,{payload:{data:{data:n}}})=>{t.trainerIndex=n.attributes}))}}),_n=Ne.selectorForSlice(`root.${tr}`),kn={trainer:_n("trainer"),trainerIndex:_n("trainerIndex"),upcomingClasses:_n("upcomingClasses")},{resetTrainer:Fj,resetTrainerIndex:qj,resetUpcomingClasses:$j}=rl.actions,zj=rl.reducer;function Gj(){const s=U(),t=E(kn.trainerIndex);return le(t),ue(()=>{s(qj()),s(po())},[s]),t?e.jsxs("div",{children:[e.jsx(X,{seo:t.seo}),e.jsx(Se,{status:t.status,id:t.id}),e.jsx(tt,{...t.header}),e.jsx(st,{acfComponents:t.acfComponents})]}):e.jsx(ne,{message:"Loading trainer index..."})}function Vj({trainer:s}){var a,r;const n=(i=>{if(!i)return i;const o=document.createElement("div");o.innerHTML=i;const l=(o.textContent||o.innerText||"").trim().split(/\s+/);if(l.length===0)return i;if(l.length===1)return`<strong>${i}</strong>`;const d=l[l.length-1],h=new RegExp(`(\\s+)(${d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})(?=\\s*$)`);return i.replace(h,"$1<strong>$2</strong>")})(s==null?void 0:s.nameHtml);return e.jsx("header",{className:"header-wrapper with-small-image",children:e.jsxs("div",{className:"header-block-container",children:[e.jsx(F,{className:"trainer-show-image",src:s.featuredImage.url||((a=s==null?void 0:s.seo)==null?void 0:a.ogImage),alt:((r=s==null?void 0:s.featuredImage)==null?void 0:r.altText)||(s==null?void 0:s.nameHtml)||"Trainer photo"}),e.jsxs("div",{className:"text-block",children:[e.jsx(v,{documentHtml:n,as:"h1"}),e.jsx(v,{documentHtml:s==null?void 0:s.bioHtml,as:"div"})]})]})})}function Bj(){var i;const{trainerId:s}=_e(),t=E(kn.trainer),n=U(),a=E(kn.upcomingClasses);le(t);const r=m.useCallback(async()=>{n(Fj()),n($j());const{data:{attributes:o}}=await n(ro(s)),{id:c}=o;n(io(c))},[n,s]);return ue(()=>{r()},[r]),t?e.jsxs("div",{className:"trainer-show",children:[e.jsx(X,{seo:t.seo}),e.jsx(Se,{status:t.status,id:t.id}),e.jsx(Vj,{trainer:t}),(a==null?void 0:a.length)>0&&e.jsx("section",{className:"slider-wrapper bg-white",children:e.jsx(yt,{relatedClasses:a,title:"Upcoming Classes"})}),t.testimonials&&e.jsx(Nc,{...t.testimonials}),t.interviewArticle&&e.jsx("section",{className:"visit-wrapper",children:e.jsx("div",{className:"visit-block-container",children:e.jsxs("div",{className:"container-inner",children:[e.jsxs("div",{className:"text-block",children:[e.jsxs("header",{children:[e.jsx(v,{documentHtml:t.interviewArticle.titleHtml,as:"h2"}),e.jsx(v,{documentHtml:t.interviewArticle.excerptHtml,as:"p"})]}),e.jsxs(L,{routerLink:N(x.ARTICLES,t.interviewArticle.slug),color:"primary",fill:"solid",children:["View Article ",e.jsx(R,{icon:gs})]})]}),e.jsx("div",{className:"media-block",children:e.jsx(F,{src:((i=t.interviewArticle.featuredImage)==null?void 0:i.url)||es,alt:"Location image"})})]})})}),t.youtubeVideoId&&e.jsx(ha,{youtubeVideoId:t.youtubeVideoId})]}):e.jsx(ne,{})}function Wj(){const s=U(),t=E(gt.videoIndex);return le(t),ue(()=>{s(M2()),s(fo())},[s]),t?e.jsxs("div",{children:[e.jsx(X,{seo:t.seo}),e.jsx(Se,{status:t.status,id:t.id}),e.jsx(tt,{...t.header}),e.jsx(st,{acfComponents:t.acfComponents})]}):e.jsx(ne,{message:"Loading video index..."})}function Yj({relatedVideos:s,seeAllRelatedVideosLink:t}){return S(s)?null:e.jsx("div",{className:"related-videos slider-block-container",children:e.jsx(is,{seeAllLink:t,title:"Related videos",uniqueId:"related-videos",children:s.map(n=>e.jsx(qe,{children:e.jsx(ft,{...n.data})},`related-video-${n.data.id}`))})})}function Zj(){const{videoId:s}=_e(),t=E(gt.video),n=E(gt.relatedVideos),a=U(),[r,i]=m.useState(null);if(le(t),ue(async()=>{a(k2());const{data:p}=await a(go(s)),{id:f,topics:g}=p.attributes;a(jo(f,ye(g,"id")))},[a,s]),m.useEffect(()=>{t!=null&&t.videoId&&fetch(`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${t.videoId}&format=json`).then(p=>p.ok?p.json():Promise.reject()).then(p=>i(p.title)).catch(()=>{})},[t==null?void 0:t.videoId]),!t)return e.jsx(ne,{});const{seo:o,topics:c}=t,l=ye(c,"id"),d=ms({topics:l}),h=M(N(x.VIDEOS),d);return e.jsxs(e.Fragment,{children:[e.jsxs("article",{className:"show-block-container",children:[e.jsx(X,{seo:o}),e.jsx(Se,{status:t.status,id:t.id}),e.jsxs("header",{className:"show-header",children:[e.jsx(v,{as:"h1",documentHtml:t.titleHtml}),e.jsx(z,{})]}),e.jsxs("div",{className:"show-content",children:[e.jsxs("div",{className:"featured-image-and-description",children:[e.jsxs("div",{className:"show-sidebar",children:[e.jsx(Xe,{contentType:"video",contentId:t.id}),e.jsx(z,{}),e.jsx(Ve,{contentTitle:t.titleHtml})]}),e.jsxs("div",{className:"rich-text",children:[t.contentHtml&&e.jsx(v,{as:"div",documentHtml:t.contentHtml}),t.videoId&&e.jsx(bt,{title:r||t.titleHtml||t.title||"Video",videoId:t.videoId,allowFullScreen:!0,aspectRatio:"16:9"})]})]}),e.jsxs("aside",{className:"show-sidebar",children:[e.jsx(Xe,{contentType:"video",contentId:t.id}),e.jsx(z,{}),e.jsx(Ve,{contentTitle:t.titleHtml})]})]})]}),e.jsx("section",{className:"slider-wrapper bg-white",children:e.jsx(Yj,{relatedVideos:n,seeAllRelatedVideosLink:h})})]})}function wt({children:s}){const{locationId:t}=_e();return Ri.includes(t)?e.jsx(cs,{to:N(x.LOCATIONS)}):s}function Qj(){const s=!as(ns.DESKTOP);return e.jsxs(Td,{id:"main-content",animated:s,children:[e.jsx(G,{exact:!0,path:N(x.ROOT),children:e.jsx(J,{children:e.jsx(gx,{})})}),e.jsx(G,{path:N(x.PAGE_SLUG),render:({match:t})=>{const n=t.params.pageSlug;return n===x.INTERNAL_TECH_HELP_BOOKING?e.jsx(J,{children:e.jsx(jx,{})}):lu.includes(n)?null:e.jsx(J,{children:e.jsx(Wr,{})})}}),e.jsx(G,{exact:!0,path:N(x.LOCATIONS),children:e.jsx(J,{children:e.jsx(z0,{})})}),e.jsx(G,{exact:!0,path:N(x.LOCATIONS,be.LOCATION_ID),children:e.jsx(wt,{children:e.jsx(J,{children:e.jsx(V0,{})})})}),e.jsx(G,{path:N(x.LOCATIONS,be.LOCATION_ID,Z.ABOUT_US),children:e.jsx(wt,{children:e.jsx(J,{children:e.jsx($0,{})})})}),e.jsx(G,{exact:!0,path:N(x.ARTICLES),children:e.jsx(J,{children:e.jsx(Sp,{children:e.jsx(Qh,{})})})}),e.jsx(G,{exact:!0,path:N(x.ARTICLES,be.ARTICLE_ID),children:e.jsx(J,{children:e.jsx(Np,{})})}),e.jsx(G,{exact:!0,path:N(x.DASHBOARD),children:e.jsx(J,{children:e.jsx(hn,{children:e.jsx(Vf,{children:e.jsx(Gf,{})})})})}
37),e.jsx(G,{exact:!0,path:N(x.ERROR_404),children:e.jsx(J,{children:e.jsx(Bf,{})})}),e.jsx(G,{exact:!0,path:N(x.LOCATIONS,be.LOCATION_ID,x.IN_PERSON_CLASSES),children:e.jsx(wt,{children:e.jsx(J,{children:e.jsx(_0,{})})})}),e.jsx(G,{path:N(x.LOCATIONS,be.LOCATION_ID,x.IN_PERSON_CLASSES,x.SLUG,be.CLASS_ID),children:e.jsx(J,{children:e.jsx(M0,{})})}),e.jsx(G,{exact:!0,path:N(x.LOGGED_OUT),children:e.jsx(Vo,{})}),e.jsx(G,{exact:!0,path:N(x.LOCATIONS,be.LOCATION_ID,x.MULTI_WEEK_COURSES),children:e.jsx(wt,{children:e.jsx(J,{children:e.jsx(sg,{})})})}),e.jsx(G,{path:N(x.LOCATIONS,be.LOCATION_ID,x.MULTI_WEEK_COURSES,x.SLUG,be.COURSE_ID),children:e.jsx(J,{children:e.jsx(rg,{})})}),e.jsx(G,{exact:!0,path:N(x.ONLINE_CLASSES),children:e.jsx(J,{children:e.jsx(_g,{children:e.jsx(Ng,{})})})}),e.jsx(G,{exact:!0,path:N(x.ONLINE_CLASSES,x.SLUG,be.CLASS_ID),children:e.jsx(J,{children:e.jsx(Sg,{})})}),e.jsx(G,{exact:!0,path:N(x.PODCASTS),children:e.jsx(J,{children:e.jsx(xj,{children:e.jsx(pj,{})})})}),e.jsx(G,{exact:!0,path:N(x.PODCASTS,be.PODCAST_ID),children:e.jsx(J,{children:e.jsx(fj,{})})}),e.jsx(G,{exact:!0,path:N(x.PUZZLES,be.PUZZLE_ID),children:e.jsx(J,{children:e.jsx(Tj,{})})}),e.jsx(G,{exact:!0,path:N(x.QUIZZES,be.QUIZ_ID),children:e.jsx(J,{children:e.jsx(Aj,{})})}),e.jsx(G,{exact:!0,path:N(x.PARTNER_LOCATIONS_MAP),children:e.jsx(J,{children:e.jsx(nl,{children:e.jsx(mj,{})})})}),e.jsx(G,{exact:!0,path:N(x.SEARCH_RESULTS),children:e.jsx(J,{children:e.jsx(kj,{children:e.jsx(Oj,{})})})}),e.jsx(G,{exact:!0,path:N(x.SIGN_UP),children:e.jsx(Ds,{children:e.jsx(vf,{})})}),e.jsx(G,{path:N(x.SIGN_UP,x.SETUP_PERSONAL_PROFILE),children:e.jsx(Ds,{children:e.jsx(Dj,{})})}),e.jsx(G,{path:N(x.SIGN_UP,x.PREFERENCES_AND_GOALS),children:e.jsx(Ds,{children:e.jsx(Cj,{})})}),e.jsx(G,{path:N(x.SIGN_UP,x.FINAL_DETAILS),children:e.jsx(Ds,{children:e.jsx(ex,{})})}),e.jsx(G,{path:N(x.SIGN_UP,x.PROCESSING_ACCOUNT_CREATION),children:e.jsx(Ds,{children:e.jsx(Sj,{})})}),e.jsx(G,{path:N(x.SIGN_UP,x.ACCOUNT_CREATION_COMPLETE),children:e.jsx(Ds,{children:e.jsx(yh,{})})}),e.jsx(G,{exact:!0,path:N(x.TRAINERS),children:e.jsx(J,{children:e.jsx(Gj,{})})}),e.jsx(G,{exact:!0,path:N(x.TRAINERS,be.TRAINER_ID),children:e.jsx(J,{children:e.jsx(Bj,{})})}),e.jsx(G,{exact:!0,path:N(x.VIDEOS),children:e.jsx(J,{children:e.jsx(Wj,{})})}),e.jsx(G,{exact:!0,path:N(x.VIDEOS,be.VIDEO_ID),children:e.jsx(J,{children:e.jsx(Zj,{})})}),e.jsx(G,{exact:!0,path:N(x.COMMUNITY,x.GROUPS,be.GROUP_ID),render:()=>ir?e.jsx(J,{children:e.jsx(hn,{children:e.jsx(pf,{children:e.jsx(xx,{})})})}):null}),e.jsx(G,{exact:!0,path:N(x.COMMUNITY,x.REQUEST_GROUP),render:()=>ir?e.jsx(J,{children:e.jsx(hn,{children:e.jsx(Wr,{slug:Z.COMMUNITY_REQUEST_GROUP})})}):null}),e.jsx(G,{exact:!0,path:N(x.COMPONENT_GUIDE),render:()=>null})]})}function Kj(){return{}}function Xj(s){return s}function Jj(s){return(s.status===rs.NOT_FOUND||s.status===rs.BAD_REQUEST)&&window.location.assign("/404"),s}const il={root:"https://senior-planet-api-prod-bc349e91bd72.herokuapp.com",before:Kj,onSuccess:Xj,onFailure:Jj,mode:"cors"},eC=_.middleware(Bt.http,il);Bt.configureApi(il);const sC=Ad("RESET_STATE"),tC="root",Xr=yd({[pa]:Lh,[La]:df,[Ra]:kf,[ra]:Ru,[ma]:fh,[za]:p0,[Ba]:N0,[Ka]:J0,[Xa]:Cg,[Ja]:Og,[er]:qg,[Aa]:u2,[Ia]:A2,[sr]:Rj,[ua]:lh,[tr]:zj,[ya]:N2,[Pa]:U2});function nC(s,t){return t.type===sC.toString()?Xr(void 0,t):Xr(s,t)}const ol=Id({reducer:{api:_.reducer,[tC]:nC},middleware:s=>s().concat([eC]),devTools:!1});window.store=ol;const aC={REACT_APP_SENTRY_ENV:"production",REACT_APP_SENTRY_URL:"https://[email protected]/4509840021520384"},{NODE_ENV:rC,REACT_APP_SENTRY_ENV:iC,REACT_APP_SENTRY_URL:oC}=aC;function cC(){if(!(lC()||window.Cypress))try{Pd({dsn:oC,environment:iC||rC,ignoreErrors:[/^Load failed$/,/^\[object \w+\]$/,"captured as promise rejection","runtime.sendMessage"],denyUrls:[/google-analytics\.com/,/analytics\.google\.com/,/googletagmanager\.com/,/doubleclick\.net/,/google\.com\/ccm/,/userway\.org/,/youtube\.com/]})}catch(s){console.warn(`WARNING: Sentry initialization failed: ${s}`)}}function lC(){return!!vd()}cC();function dC({politeMessage:s="",assertiveMessage:t=""}){return e.jsxs(e.Fragment,{children:[e.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:s}),e.jsx("div",{role:"alert","aria-live":"assertive","aria-atomic":"true",className:"sr-only",children:t})]})}const Jr=3e3;function uC({children:s}){const[t,n]=m.useState(""),[a,r]=m.useState(""),i=m.useRef(null),o=m.useRef(null),c=m.useCallback((p,f=Jr)=>{i.current&&clearTimeout(i.current),n(""),requestAnimationFrame(()=>{n(p),i.current=setTimeout(()=>{n("")},f)})},[]),l=m.useCallback((p,f=Jr)=>{o.current&&clearTimeout(o.current),r(""),requestAnimationFrame(()=>{r(p),o.current=setTimeout(()=>{r("")},f)})},[]),d=m.useCallback(()=>{i.current&&clearTimeout(i.current),o.current&&clearTimeout(o.current),n(""),r("")},[]),h=m.useMemo(()=>({announcePolite:c,announceAssertive:l,clearAnnouncements:d}),[c,l,d]);return e.jsxs(Yo.Provider,{value:h,children:[s,e.jsx(dC,{politeMessage:t,assertiveMessage:a})]})}function mC(){const s=$e(),t=s.pathname+s.search,n=m.useRef(t),a=m.useRef(!0);return m.useEffect(()=>{if(a.current){a.current=!1,n.current=s.pathname+s.search;return}const r=s.pathname+s.search;if(r===n.current)return;const i=n.current;if(n.current=r,!la())return;const o=setTimeout(()=>{Pm(r,void 0,i)},100);return()=>clearTimeout(o)},[s.pathname,s.search]),null}let ei=null;function cl(){return typeof window<"u"&&typeof window.fbq=="function"}function hC(s,t={}){cl()&&window.fbq("track",s,t)}function pC(s){s!==ei&&(ei=s,hC("PageView"))}function fC(){const s=$e(),t=s.pathname+s.search,n=m.useRef(t),a=m.useRef(!0);return m.useEffect(()=>{if(a.current){a.current=!1,n.current=s.pathname+s.search;return}const r=s.pathname+s.search;if(r===n.current||(n.current=r,!cl()))return;const i=setTimeout(()=>{pC(r)},100);return()=>clearTimeout(i)},[s.pathname,s.search]),null}function xC(){const s=$e(),{announcePolite:t}=xe(),n=m.useRef(s.pathname),a=m.useRef(!0);return m.useEffect(()=>{if(a.current){a.current=!1,n.current=s.pathname;return}if(s.pathname===n.current)return;n.current=s.pathname;const r=setTimeout(()=>{const i=document.title||"Page loaded";t(`Navigated to ${i}`)},100);return()=>clearTimeout(r)},[s.pathname,t]),null}const gC={children:u.node.isRequired};function ll({children:s}){const t=U();return m.useEffect(()=>{t(ao())},[t]),E(q.topics)?s:null}ll.propTypes=_t(gC);function jC({children:s}){const t=U(),{getToken:n,isAuthenticated:a,signOut:r}=K(),i=E(q.userProfile);return m.useEffect(()=>{if(!a||i)return;(async()=>{try{const c=await n();await t(Qt(c))}catch(c){c.status===rs.NOT_FOUND&&r()}})()},[t,n,a,i,r]),a&&!i?e.jsx(ne,{message:"Loading profile..."}):s}const CC={children:u.node.isRequired};function dl({children:s}){const t=U();return m.useEffect(()=>{t(Ji())},[t]),E(q.podcastSearchFilters)?s:null}
37dl.propTypes=_t(CC);function NC(){const{error:s,isLoading:t,isAuthenticated:n}=Dn();return m.useEffect(()=>{t||Tm(n?"authenticated":"anonymous")},[n,t]),Ld(),s?e.jsxs("div",{children:["Oops... ",s.message]}):t?e.jsx(Je,{}):e.jsx(Wn,{locale:fe.ENGLISH,messages:fa(fe.ENGLISH),defaultLocale:fe.ENGLISH,children:e.jsxs(Rd,{store:ol,children:[e.jsx(Ws,{children:e.jsx("script",{src:"https://cdn.userway.org/widget.js","data-account":"0jrSrlpp4l","data-position":"3"})}),e.jsx(uC,{children:e.jsx(ll,{children:e.jsx(jC,{children:e.jsx(dl,{children:e.jsxs(Od,{children:[e.jsxs(wd,{children:[e.jsx(xC,{}),e.jsx(mC,{}),e.jsx(fC,{}),e.jsx(vm,{}),e.jsx(Qj,{})]}),e.jsx("div",{className:"toast-anchor-container",children:e.jsx("div",{id:Pi})})]})})})})})]})})}const _C=document.getElementById("root"),SC=kd.createRoot(_C);SC.render(e.jsx(ru,{children:e.jsx(NC,{})}));export{TC as L,tx as S,nx as a,ec as e,xe as u};

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.