PageSourceSearch

https://cessna.org/_next/static/chunks/pages/profile/dashboard-2fe01c4f90e9cca0.js

js cessna.org collected 2026-10-02 11:40:45 UTC 27,252 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7818],{11082:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>W});var a=s(37876),t=s(14232),o=s(77328),i=s.n(o),l=s(48230),c=s.n(l),n=s(89099),d=s(40525),m=s(40876),h=s(97719),u=s(60929),_=s(41321),p=s(47191),b=s(19357),x=s(49038),v=s(24146),g=s(55102),j=s(91190),f=s.n(j),A=s(62747),y=s.n(A);let N={src:"/_next/static/media/headPhone.fc0856f4.png",height:145,width:129,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAMAAAAC2hU0AAAAGFBMVEUSRncTRXoURnwURXsTR3sVR3oTSH4VRXt9kQpqAAAACHRSTlMCTjtbDytDjwqgaWwAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAuSURBVHicLcjJCQAwDASx2cNO/x0HQl4CwUQZqAAVPYO2dIVd6iX/S6c24BNzAQ5TAHfZseeyAAAAAElFTkSuQmCC",blurWidth:7,blurHeight:8};var C=s(54587),M=s.n(C);let D={src:"/_next/static/media/image1.95bf7f65.png"},w={src:"/_next/static/media/cessna.c8495076.png"},T={src:"/_next/static/media/person.5c19b845.png"};var k=s(80713),S=s(31777),I=s(15514),B=s(3751),F=s(85610),P=s(20453),E=s(10841),R=s.n(E);let Y=e=>{let{style:r,onClick:s}=e;return(0,a.jsx)("div",{className:"".concat(f().customArrow," ").concat(f().prevArrow," ").concat(f().courseArrow," ").concat(f().coursePrevArrow),style:{...r},onClick:s,children:(0,a.jsx)(x._Jj,{color:"var(--color-gray-text)"})})},z=e=>{let{style:r,onClick:s}=e;return(0,a.jsx)("div",{className:"".concat(f().customArrow," ").concat(f().nextArrow," ").concat(f().courseArrow," ").concat(f().courseNextArrow),style:{...r},onClick:s,children:(0,a.jsx)(x.X6T,{color:"var(--color-gray-text)"})})},V=e=>{let{style:r,onClick:s}=e;return(0,a.jsx)("div",{className:"".concat(f().customArrow," ").concat(f().prevArrow," ").concat(f().articlePrevArrow),style:{...r},onClick:s,children:(0,a.jsx)(x._Jj,{color:"var(--color-gray-text)"})})},U=e=>{let{style:r,onClick:s}=e;return(0,a.jsx)("div",{className:"".concat(f().customArrow," ").concat(f().nextArrow," ").concat(f().articleNextArrow),style:{...r},onClick:s,children:(0,a.jsx)(x.X6T,{color:"var(--color-gray-text)"})})};function W(){var e,r,s,o,l,x;let j=(0,n.useRouter)(),A=(0,S.wA)(),[C,E]=(0,t.useState)("top"),[W,H]=(0,t.useState)([]),[L,O]=(0,t.useState)(!0),[G,Q]=(0,t.useState)([]),[X,q]=(0,t.useState)(!0),[K,J]=(0,t.useState)([]),[Z,$]=(0,t.useState)(!0),[ee,er]=(0,t.useState)(null),[es,ea]=(0,t.useState)(!0),[et,eo]=(0,t.useState)([]),[ei,el]=(0,t.useState)(!0),[ec,en]=(0,t.useState)([]),[ed,em]=(0,t.useState)(!1),[eh,eu]=(0,t.useState)(null),[e_,ep]=(0,t.useState)(null),[eb,ex]=(0,t.useState)(0),[ev,eg]=(0,t.useState)(!0),[ej,ef]=(0,t.useState)(null),[eA,ey]=(0,t.useState)(null),[eN,eC]=(0,t.useState)({latest_news_articles:"Latest News and Articles",exclusive_member_access:"Your Exclusive Member Access",new_courses_calendar:"New Courses Added to the Calendar"}),{user:eM}=(0,S.d4)(e=>e.auth),{user:eD}=(0,S.d4)(e=>e.profile),ew=null!=(x=null==eM?void 0:eM.data)?x:{},{canAccessPremium:eT}=(0,I.S)(),ek="/oauth/authorize?response_type=code&client_id=44222e96214f270b815f77534f46139e4ab45ef7&redirect_uri=".concat(encodeURIComponent("https://wiki.cessna.org/Special:PluggableAuthLogin")),eS=()=>{eT()?j.push(ek):j.push("/restricted-content")};return(0,t.useEffect)(()=>{(async()=>{try{var e;let r=await d.A.get("/member-dashboard-settings"),s=Array.isArray(r.data)?r.data:(null==(e=r.data)?void 0:e.data)||[],a={};s.forEach(e=>{e.is_active&&e.section_key&&e.section_title&&(a[e.section_key]=e.section_title)}),eC(e=>({...e,...a})),s.forEach(e=>{var r,s,a,t,o,i;if(e.is_active){if("shop_notification_banner"===e.section_key){let s=null==(r=e.content)?void 0:r.items;ep(Array.isArray(s)&&s.length>0?s:null)}if("aircraft_service_inquiry"===e.section_key&&ef(e.content),"latest_news_articles"==e.section_key){let r=((null==(s=e.content)?void 0:s.posts)||[]).map(e=>{let r=(e.description||"").replace(/<[^>]+>/g,""),s=(e.labels||"").replace(/<[^>]+>/g,"").trim();return{id:e.id,title:e.title,description:r.length>150?r.slice(0,150)+"...":r,author:s||"CPA Admin",authorImage:T.src,date:e.created_at?new Date(e.created_at).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):"Recently",image:e.image?(0,F.VG)(e.image):D.src,user:e.user}});Q(r),q(!1)}if("exclusive_member_access"==e.section_key){let r=((null==(a=e.content)?void 0:a.forums)||[]).filter(e=>"active"===e.status&&e.latestComment);eo(r.slice(0,3)),el(!1);let s=(null==(t=e.content)?void 0:t.magazines)||[];if(s.length>
10){let e=s[0],r=(e.shortDescription||e.description||"").replace(/<[^>]+>/g,"").trim();er({id:e.id,title:e.name,description:r.length>120?r.slice(0,120)+"...":r,image:e.image?(0,F.VG)(e.image):null})}ea(!1);let i=null==(o=e.content)?void 0:o.wiki_section;i&&ey(i)}if("new_courses_calendar"==e.section_key){let r=((null==(i=e.content)?void 0:i.courses)||[]).map(e=>{var r;return{id:e.id,category:"COURSES",title:e.name,isOnline:"online"===e.courseType||"both"===e.courseType,isInPerson:"in_person"===e.courseType||"both"===e.courseType,image:e.image?(0,F.VG)(e.image):"https://loremflickr.com/1600/900/cessna,sky",nextEvent:(null==(r=e.locations)?void 0:r.length)>0?{locations:e.locations,displayLocation:e.locations[0].address,date:((e,r)=>{if(!e||!r)return"TBA";let s=R()(e),a=R()(r);return s.isValid()&&a.isValid()?s.year()!==a.year()?"".concat(s.format("MMMM DD, YYYY")," - ").concat(a.format("MMMM DD, YYYY")):s.month()!==a.month()?"".concat(s.format("MMMM DD")," - ").concat(a.format("MMMM DD, YYYY")):"".concat(s.format("MMMM DD"),"-").concat(a.format("DD, YYYY")):"TBA"})(e.startDate,e.endDate)}:null,topic:"General",description:e.description||"",price:e.price}});J(r),$(!1)}}})}catch(e){console.error("Error fetching dashboard settings:",e),q(!1),el(!1),ea(!1),$(!1)}})()},[]),(0,t.useEffect)(()=>{let e=async()=>{var e,r;let s=null==eM||null==(e=eM.data)?void 0:e.id;if(s)try{let e=await d.A.post("/user/profile-data",{userId:s});A((0,B.cp)(null==e||null==(r=e.data)?void 0:r.data))}catch(e){console.error("Error fetching profile data:",e)}};Promise.allSettled([(async()=>{try{let e=await d.A.get("user/myCourses?page=1&limit=10");if(e.data&&e.data.success&&Array.isArray(e.data.data)){let r=e.data.data,s=[];r.length>0&&(s=r[0].purchases&&Array.isArray(r[0].purchases)?r.flatMap(e=>(e.purchases||[]).filter(e=>"course"===e.type&&e.course)):"course"===r[0].type&&r[0].course?r.filter(e=>"course"===e.type&&e.course):r.filter(e=>e.name||e.course&&e.course.name).map(e=>e.course?e:{course:e}));let a=new Map;s.forEach(e=>{e.course&&e.course.id&&!a.has(e.course.id)&&a.set(e.course.id,e)});let t=await Promise.all(Array.from(a.values()).map(async e=>{let r=e.course,s=0,a=0;try{let e=await d.A.get("course-progress/course/".concat(r.id));if(e.data&&e.data.summary){s=e.data.summary.overallProgressPercent||0,!r.totalLessons&&Array.isArray(e.data.data)&&e.data.data.length>0&&(r.totalLessons=e.data.data.length);let t=r.totalLessons||0;a=s>=100?t:Math.floor(s/100*t)}}catch(e){console.error("Error fetching progress for course ".concat(r.id),e)}return{id:r.id,title:r.name,progress:s,totalSteps:r.totalLessons||0,completedSteps:a,image:r.image?(0,F.VG)(r.image):"https://placehold.co/600x400/c8102e/ffffff?text=Course"}}));H(t)}}catch(e){console.error("Error fetching courses",e)}finally{O(!1)}})(),e()])},[]),(0,t.useEffect)(()=>{"my"!==C||ec.length>0||ed||(async()=>{em(!0);try{let e=await d.A.get("/user/discussions"),r=null==e?void 0:e.data,s=Array.isArray(r)?r:Array.isArray(null==r?void 0:r.data)?r.data:[];en(s.slice(0,3))}catch(e){console.error("Error fetching my discussions:",e)}finally{em(!1)}})()},[C,ec.length]),(0,t.useEffect)(()=>{(async()=>{try{var e;let r=await d.A.get("activity-feed/latest?limit=1"),s=(null==r||null==(e=r.data)?void 0:e.data)||(null==r?void 0:r.data);Array.isArray(s)&&s.length>0?eu(s[0]):s&&!Array.isArray(s)&&eu(s)}catch(e){console.error("Error fetching latest alert:",e)}})()},[]),(0,t.useEffect)(()=>{if(!e_||e_.length<=1)return;let e=setInterval(()=>{eg(!1),setTimeout(()=>{ex(e=>(e+1)%e_.length),eg(!0)},400)},5e3);return()=>clearInterval(e)},[e_]),(0,a.jsxs)("div",{className:f().dashboardContainer,children:[(0,a.jsx)(i(),{children:(0,a.jsx)("title",{children:"Member Dashboard | Cessna Pilots Association"})}),(null==e_?void 0:e_[eb])&&(0,a.jsx)("div",{className:f().topAlert,children:(0,a.jsx)(m.A,{children:(0,a.jsx)(h.A,{className:"align-items-center justify-content-center",children:(0,a.jsx)(u.A,{xs:12,children:(0,a.jsxs)("div",{className:"d-flex flex-column flex-md-row justify-content-between align-items-center gap-3",style:{opacity:+!!ev,transition:"opacity 0.4s ease"},children:[(0,a.jsxs)("div",{className:f().bellContainer,children:[(0,a.jsx)(g.Bwk,{className:f().bellIcon}),(0,a.jsxs)("span",{children:[(0,a.jsx)("strong",{children:e_[eb].highlight_text})," ",e_[eb].body_text]})]}),e_[eb].button_text&&e_[eb].button_link&&(0,a.jsx)(_.A,{variant:"outline-light",className:"flex-shrink-0",style:{whiteSpace:"nowrap"},onClick:()=>j.push(e_[eb].button_link),children:e_[eb].button_text})]})})})})}),(0,a.jsxs)(m.A,{children:[(0,a.jsx)("div",{className:f().heroSection,children:(0,a.jsxs)(h.A,{className:"align-items-center",children:[(0,a.jsx)(u.A,{xs:12,md:2,className:"text-center mb-4 mb-md-0",children:(0,a.jsxs)("div",{className:f().avatarContainer,children:[(0,a.jsx)("div",{className:f().avatarBg}
1),(0,a.jsx)(P.A,{src:null==ew?void 0:ew.image,alt:"User Avatar",className:f().userAvatar,width:150,height:150})]})}),(0,a.jsx)(u.A,{xs:12,md:6,className:"text-center text-md-start mb-4 mb-md-0",children:(0,a.jsxs)("div",{className:f().welcomeText,children:[(0,a.jsx)("h2",{children:"Welcome,"}),(0,a.jsx)("h1",{children:null==ew?void 0:ew.name}),(0,a.jsx)("p",{className:f().userName,children:"to your CPA Member Dashboard"}),(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-center justify-content-md-start",children:[(0,a.jsx)("div",{className:"d-flex align-items-center",children:(0,a.jsx)("a",{href:"#",className:f().viewProfileBtn,onClick:()=>j.push("/account/settings/"),children:"View Profile"})}),(0,a.jsx)("div",{onClick:()=>j.push("/account"),style:{cursor:"pointer"},children:(0,a.jsx)(v.GD,{className:f().settingsIcon})}),(0,a.jsx)("div",{className:f().progressCircleWrapper,children:(0,a.jsxs)("svg",{viewBox:"0 0 36 36",className:f().circularChart,style:{display:"block",maxWidth:"100%",maxHeight:"100%"},children:[(0,a.jsx)("path",{className:f().circleBg,d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"#eee",strokeWidth:"3"}),(0,a.jsx)("path",{className:f().circle,strokeDasharray:"".concat(null==eD||null==(e=eD.user)?void 0:e.profileCompletionPercent,", 100"),d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:(null==eD||null==(r=eD.user)?void 0:r.profileCompletionPercent)==100?"#22c55e":"#15467B",strokeWidth:"3"})]})}),(0,a.jsxs)("div",{className:"text-start",children:[(0,a.jsxs)("div",{className:f().progressTextWrapper,style:{color:(null==eD||null==(s=eD.user)?void 0:s.profileCompletionPercent)==100?"#22c55e":"#15467B"},children:[(null==eD||null==(o=eD.user)?void 0:o.profileCompletionPercent)||0,"%"]}),(0,a.jsx)("div",{className:f().progressLabel,children:(null==eD||null==(l=eD.user)?void 0:l.profileCompletionPercent)==100?"Profile Completed":"Complete Your Profile"})]})]})]})}),(0,a.jsx)(u.A,{xs:12,md:4,children:(0,a.jsx)("div",{className:f().expertConnect,onClick:()=>j.push(null==ej?void 0:ej.link),children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(M(),{src:(null==ej?void 0:ej.icon_image)?(0,F.VG)(ej.icon_image):N,alt:null==ej?void 0:ej.title,width:100,height:100,className:f().expertIcon,unoptimized:!0}),(0,a.jsx)("h3",{className:"".concat(f().expertTitle," mb-0"),children:null==ej?void 0:ej.title}),(0,a.jsx)("p",{className:f().expertText,children:null==ej?void 0:ej.description})]})})})]})}),(0,a.jsx)("div",{className:f().sectionContainer,children:(0,a.jsxs)(h.A,{children:[(0,a.jsxs)(u.A,{md:8,className:"mb-4 mb-md-0",children:[(0,a.jsxs)("div",{className:f().sectionTitle,children:[(0,a.jsx)("span",{className:f().latestArticles,children:eN.latest_news_articles}),(0,a.jsx)("a",{href:"#",className:f().seeAll,onClick:()=>j.push("/articles"),children:"See All →"})]}),X?(0,a.jsx)("div",{className:"d-flex justify-content-center m-5",children:(0,a.jsx)("div",{style:{color:"var(--color-primary-red)"},className:"spinner-border",role:"status"})}):G.length>0?(0,a.jsx)(b.A,{dots:!1,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,nextArrow:(0,a.jsx)(U,{}),prevArrow:(0,a.jsx)(V,{}),children:G.map((e,r)=>{var s;return(0,a.jsx)("div",{className:"h-100",children:(0,a.jsxs)(p.A,{className:f().featuredArticleCard,children:[(0,a.jsx)("div",{className:f().featuredImageContainer,onClick:()=>j.push("/articles/".concat(e.id)),style:{cursor:"pointer"},children:(0,a.jsx)(M(),{src:e.image,className:f().featuredImage,alt:"Article",width:600,height:300,unoptimized:!0})}),(0,a.jsxs)("div",{className:f().featuredContent,children:[(0,a.jsx)("h3",{className:f().articleTitle,children:e.title}),(0,a.jsx)("p",{className:f().articleText,children:e.description}),(0,a.jsx)("span",{className:f().readMore,onClick:()=>j.push("/articles/".concat(e.id)),children:"Read more →"}),(0,a.jsxs)("div",{className:f().authorContainer,children:[(0,a.jsx)(P.A,{src:null==(s=e.user)?void 0:s.image,className:f().authorImage,alt:"Author",width:40,height:40,unoptimized:!0}),(0,a.jsxs)("div",{className:f().authorInfo,children:[(0,a.jsx)("strong",{children:e.author}),(0,a.jsx)("br",{}),R()(e.date).format("MM/DD/YYYY")]})]})]})]})},r)})}):(0,a.jsx)("div",{className:"text-center p-4",children:(0,a.jsx)("p",{className:"text-muted",children:"No articles found."})})]}),(0,a.jsxs)(u.A,{md:4,children:[(0,a.jsxs)("div",{className:f().sectionTitle,children:[(0,a.jsx)("span",{className:f().latestCourses,children:"Your Courses"}),(0,a.jsx)(c(),{href:"/cpaCourse/my-courses",className:f().seeAll,children:"See All →"})]}),L?(0,a.jsx)("div",{className:"d-flex justify-content-center m-5",children:(0,a.jsx)("div",{style:{color:"var(--color-primary-red)"},className:"spinner-border",role:"status"})}):W.length>0?(0,a.jsx)(b.A,{dots:!1,infinite:!1,speed:500,slidesToShow:1,slidesToScroll:1,nextArrow:(0,a.jsx)(z,{}),prevArrow:(0,a.jsx)(Y,{}),children:W.map((e,r)=>(0,a.jsx)("div",{className:"h-100",children:(0,a.jsxs)(p.A,{className:f().courseCard,children:[e.image&&(0,a.jsx)(M(),{src:e.image,className:f().courseImage,alt:"Course",width:400,height:200,unoptimized:!0}),(0,a.jsxs)("div",{className:f().courseBody,children:[(0,a.jsx)("h4",{className:f().courseTitle,children:e.title}),(0,a.jsx)(_.A,{variant:"outline-danger",className:f().beginBtn,onClick:()=>j.push("/cpaCourse/learn/".concat(e.id)),children:e.progress>=100?"Completed":e.progress>0?"Continue":"Start Course"}),(0,a.jsxs)("div",{className:"mt-auto",children:[(0,a.jsx)("div",{className:f().progressBar,children:(0,a.jsx)("div",{className:f().progressFill,style:{width:"".concat(e.progress,"%")}})}),(0,a.jsxs)("div",{className:f().courseProgressText,children:[(0,a.jsxs)("span",{children:[e.progress,"% Complete"]}),(0,a.jsxs)("span",{children:[e.completedSteps,"/",e.totalSteps," ","steps"]})]})]})]})]})},r))}):(0,a.jsx)(p.A,{className:f().emptyCourseCard,style:{backgroundImage:"url(".concat(D.src,")")},children:(0,a.jsxs)("div",{className:f().emptyCourseOverlay,children:[(0,a.jsxs)("h3",{className:f().emptyCourseTitle,children:["You have no active",(0,a.jsx)("br",{}),"courses."]}),(0,a.jsxs)("p",{className:f().emptyCourseText,children:["Explore our library of",(0,a.jsx)("br",{}),"educational online and in-person",(0,a.jsx)("br",{}),"courses by clicking below."]}),(0,a.jsx)(_.A,{variant:"outline-light",className:f().emptyCourseBtn,onClick:()=>j.push("/courses"),children:"Enroll in a Course"})]})})]})]})}),(0,a.jsxs)("div",{className:"".concat(f().sectionContainer," ").concat(f().extraSpacing),children:[(0,a.jsx)("h2",{className:f().sectionTitle,children:eN.exclusive_member_access}
1),(0,a.jsxs)(h.A,{children:[(0,a.jsx)(u.A,{md:4,children:(0,a.jsxs)(p.A,{className:f().infoCard,children:[(0,a.jsxs)("div",{className:f().infoHeader,children:[(0,a.jsx)("span",{className:"top"===C?f().activeTab:f().inactiveTab,onClick:()=>E("top"),children:"Top Forums"}),(0,a.jsx)("span",{className:"my"===C?f().activeTab:f().inactiveTab,onClick:()=>E("my"),children:"My Discussions"})]}),(0,a.jsx)("div",{children:"top"===C?ei?(0,a.jsx)("div",{className:"d-flex justify-content-center p-4",children:(0,a.jsx)("div",{style:{color:"var(--color-primary-red)"},className:"spinner-border",role:"status"})}):et.length>0?et.map((e,r)=>{var s,t,o,i,l;return(0,a.jsxs)("div",{className:f().forumItem,style:{cursor:"pointer"},onClick:()=>{var r,s;j.push({pathname:"/forums/".concat(e.title,"/topic/").concat(null==(r=e.topic)?void 0:r.id),query:{subForumName:null==(s=e.topic)?void 0:s.subForumId}})},children:[(0,a.jsx)("div",{className:f().forumCategory,children:e.title}),(0,a.jsx)("div",{className:f().forumTopic,children:e.latestComment.title}),(0,a.jsx)("div",{style:{fontSize:28,color:"#000000",fontFamily:"raleway-extra-bold"},children:e.topic.title}),(0,a.jsxs)("div",{className:f().forumUser,children:[(0,a.jsx)(P.A,{src:null==(s=e.latestComment)?void 0:s.userImage,alt:"User",className:f().forumAvatar,style:{borderRadius:"50%",objectFit:"cover"},width:32,height:32,unoptimized:!0}),(0,a.jsxs)("div",{className:"d-flex flex-column",style:{fontSize:12},children:[(0,a.jsxs)("span",{style:{fontWeight:"bold",color:"#15467B",fontFamily:"Open-Sans-Bold",fontSize:15},children:[null==e||null==(o=e.latestComment)||null==(t=o.user)?void 0:t.firstName," ",null==e||null==(l=e.latestComment)||null==(i=l.user)?void 0:i.lastName]}),(0,a.jsx)("span",{style:{color:"#adb5bd",fontFamily:"Open-Sans-SemiBold",fontSize:13,fontStyle:"italic"},children:"replied ".concat(e.latestComment.timeAgo)})]})]})]},r)}):(0,a.jsx)("div",{className:"text-center p-4 text-muted",children:"No forums available."}):ed?(0,a.jsx)("div",{className:"d-flex justify-content-center p-4",children:(0,a.jsx)("div",{style:{color:"var(--color-primary-red)"},className:"spinner-border",role:"status"})}):ec.length>0?ec.map((e,r)=>{var s,t,o,i,l;return(0,a.jsxs)("div",{className:f().forumItem,style:{cursor:"pointer"},onClick:()=>{var r;return j.push("/forums/".concat(null==(r=e.forum)?void 0:r.id,"/").concat(e.subForumId,"/").concat(e.id))},children:[(0,a.jsx)("div",{className:f().forumCategory,children:(null==(s=e.subForum)?void 0:s.title)||(null==(t=e.forum)?void 0:t.title)}),(0,a.jsx)("div",{className:f().forumTopic,children:e.title}),(0,a.jsxs)("div",{className:f().forumMeta,children:[e.members," Member",1!==e.members?"s":""," ","• ",e.replies," Repl",1!==e.replies?"ies":"y"]}),(0,a.jsxs)("div",{className:f().forumUser,children:[(0,a.jsx)(P.A,{src:null==(o=e.latestReplyUser)?void 0:o.image,alt:"User",className:f().forumAvatar,style:{borderRadius:"50%",objectFit:"cover"},width:32,height:32,unoptimized:!0}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"".concat((null==(i=e.latestReplyUser)?void 0:i.firstName)||""," ").concat((null==(l=e.latestReplyUser)?void 0:l.lastName)||"").trim()}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{style:{color:"#adb5bd"},children:e.latestReply})]})]})]},r)}):(0,a.jsx)("div",{className:"text-center p-4 text-muted",children:"No discussions yet."})}),(0,a.jsx)("div",{className:f().seeAllFooter,style:{cursor:"pointer"},onClick:()=>j.push("/forums"),children:"See All Forums"})]})}),(0,a.jsx)(u.A,{md:4,children:(0,a.jsxs)(p.A,{className:f().infoCard,children:[(0,a.jsx)("div",{className:f().magazineContent,children:es?(0,a.jsx)("div",{className:"d-flex justify-content-center align-items-center",style:{minHeight:200},children:(0,a.jsx)("div",{style:{color:"var(--color-primary-red)"},className:"spinner-border",role:"status"})}):(0,a.jsx)(M(),{src:(null==ee?void 0:ee.image)||w.src,width:400,height:500,className:f().magazineImage,alt:(null==ee?void 0:ee.title)||"Magazine",style:{objectFit:"cover"},unoptimized:!0,onError:e=>{e.currentTarget.src=w.src}})}),(0,a.jsxs)("div",{className:f().magazineFooter,children:[(0,a.jsx)("h4",{className:f().magazineFooterTitle,children:(null==ee?void 0:ee.title)||""}),(0,a.jsx)("p",{className:f().magazineFooterText,children:(null==ee?void 0:ee.description)||"Read the latest issue of the CPA magazine."}),(0,a.jsx)("div",{className:"d-flex justify-content-center",children:(0,a.jsx)(_.A,{variant:"outline-danger",className:f().readBtn,onClick:eS,disabled:!ee,children:"Read more"})})]}),(0,a.jsx)("div",{className:f().seeAllFooter,style:{cursor:"pointer"},onClick:eS,children:"SEE ALL MAGAZINES"})]})}),(0,a.jsx)(u.A,{md:4,children:(0,a.jsxs)(p.A,{className:f().infoCard,children:[(0,a.jsx)("div",{className:f().infoHeader,children:(0,a.jsx)("span",{className:f().wikiHeader,children:(null==eA?void 0:eA.heading)||"CPA Wiki"})}),(0,a.jsx)("div",{className:f().wikiContent,children:((null==eA?void 0:eA.items)||[]).map((e,r,s)=>(0,a.jsxs)(t.Fragment,{children:[(0,a.jsxs)("div",{className:f().wikiItem,onClick:()=>{var r;(null==(r=e.link)?void 0:r.startsWith("http"))?window.open(e.link,"_blank"):j.push(e.link)},children:[(0,a.jsx)("h4",{className:f().wikiHead,children:e.title}),(0,a.jsx)("p",{className:f().wikiText,children:e.description})]}),r<s.length-1&&(0,a.jsx)("hr",{className:f().divider})]},r))}),(0,a.jsx)("div",{className:f().seeAllFooter,onClick:()=>window.open("https://wiki.cessna.org/","_blank"),children:"Explore The Wiki"})]})})]})]}),(0,a.jsxs)("div",{className:"".concat(f().sectionContainer," ").concat(f().extraSpacing," ").concat(y().cpaTheme),children:[(0,a.jsxs)("div",{className:f().sectionTitle,children:[eN.new_courses_calendar,(0,a.jsx)(c(),{href:"/courses",className:f().seeAll,children:"Visit the Courses →"})]}),(0,a.jsx)(h.A,{children:Z?(0,a.jsx)(u.A,{className:"text-center py-5",children:(0,a.jsx)("div",{style:{color:"var(--color-primary-red)"},className:"spinner-border",role:"status"})}):K.length>0?K.map((e,r)=>(0,a.jsx)(u.A,{xs:12,sm:6,xl:4,className:"mb-4 d-flex align-items-stretch",children:(0,a.jsx)(k.A,{course:e,viewM
1ode:"grid",onViewDetails:()=>j.push("/course/cpacourse/".concat(e.id))})},r)):(0,a.jsx)(u.A,{className:"text-center py-5",children:(0,a.jsx)("p",{className:"text-muted",children:"No courses found in the shop."})})})]})]})]})}},72316:(e,r,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/dashboard",function(){return s(11082)}])},91190:e=>{e.exports={dashboardContainer:"MemberDashboard_dashboardContainer__uIUhw",topAlert:"MemberDashboard_topAlert__D1TdG",learnMoreBtn:"MemberDashboard_learnMoreBtn__RuFHT",heroSection:"MemberDashboard_heroSection__Qm8VE",userAvatar:"MemberDashboard_userAvatar__4P8NP",avatarFallback:"MemberDashboard_avatarFallback__ubmEl",avatarWrapper:"MemberDashboard_avatarWrapper__rsDx3",welcomeText:"MemberDashboard_welcomeText__VTIsS",viewProfileBtn:"MemberDashboard_viewProfileBtn___EToD",settingsIcon:"MemberDashboard_settingsIcon__jlXYd",progressLabel:"MemberDashboard_progressLabel__3u3XC",expertConnect:"MemberDashboard_expertConnect__s6PmX",expertIcon:"MemberDashboard_expertIcon__i7Vn4",sectionTitle:"MemberDashboard_sectionTitle__N3G69",extraSpacing:"MemberDashboard_extraSpacing__o22VF",seeAll:"MemberDashboard_seeAll__UMxol",articleCard:"MemberDashboard_articleCard__TV5rW",featuredArticleCard:"MemberDashboard_featuredArticleCard__ROPCU",featuredImageContainer:"MemberDashboard_featuredImageContainer__Lu6DC",featuredImage:"MemberDashboard_featuredImage__lZMA1",featuredContent:"MemberDashboard_featuredContent__QNLK_",articleTitle:"MemberDashboard_articleTitle__DA6Jb",articleText:"MemberDashboard_articleText__tDhPt",readMore:"MemberDashboard_readMore__7YA71",courseCard:"MemberDashboard_courseCard__Pn_09",emptyCourseCard:"MemberDashboard_emptyCourseCard__qFEY7",emptyCourseOverlay:"MemberDashboard_emptyCourseOverlay__zCkiY",emptyCourseTitle:"MemberDashboard_emptyCourseTitle___KxR0",emptyCourseText:"MemberDashboard_emptyCourseText__EEmV8",emptyCourseBtn:"MemberDashboard_emptyCourseBtn__hWiPV",courseImage:"MemberDashboard_courseImage__HvZ_6",courseBody:"MemberDashboard_courseBody__MQFIw",beginBtn:"MemberDashboard_beginBtn__8rVhv",infoCard:"MemberDashboard_infoCard__iIb6r",infoHeader:"MemberDashboard_infoHeader__murEP",activeTab:"MemberDashboard_activeTab__WaON_",inactiveTab:"MemberDashboard_inactiveTab__O5f6p",forumItem:"MemberDashboard_forumItem__S4DW0",forumCategory:"MemberDashboard_forumCategory__K_iQk",forumTopic:"MemberDashboard_forumTopic__0mzJC",forumMeta:"MemberDashboard_forumMeta__TH2rA",forumUser:"MemberDashboard_forumUser__0mcsM",forumAvatar:"MemberDashboard_forumAvatar__hlStH",seeAllFooter:"MemberDashboard_seeAllFooter__pBY4C",magazineContent:"MemberDashboard_magazineContent__QcWPR",magazineTitleOverlay:"MemberDashboard_magazineTitleOverlay__Y7UI5",magazineFooter:"MemberDashboard_magazineFooter__YpCbG",readBtn:"MemberDashboard_readBtn__O4209",wikiContent:"MemberDashboard_wikiContent__4j_n_",wikiItem:"MemberDashboard_wikiItem__AZt5N",wikiHead:"MemberDashboard_wikiHead__uTR3L",shopCard:"MemberDashboard_shopCard__iNn8h",shopImg:"MemberDashboard_shopImg__e8KDr",shopBody:"MemberDashboard_shopBody__3trsd",shopCat:"MemberDashboard_shopCat__aW_Cm",shopTitle:"MemberDashboard_shopTitle__BpOFw",shopSub:"MemberDashboard_shopSub__T7zVy",shopModel:"MemberDashboard_shopModel__zG4Yv",shopFeatures:"MemberDashboard_shopFeatures__mgF3f",featureActive:"MemberDashboard_featureActive__KVjpe",featureInactive:"MemberDashboard_featureInactive__gi_af",shopBtn:"MemberDashboard_shopBtn__D_MB3",progressBar:"MemberDashboard_progressBar__RMEng",progressFill:"MemberDashboard_progressFill__BnGl7",circularChart:"MemberDashboard_circularChart__RqhCe",circleBg:"MemberDashboard_circleBg__UYYl_",circle:"MemberDashboard_circle___Cgoo",progress:"MemberDashboard_progress__QhRox",bellContainer:"MemberDashboard_bellContainer___jKqX",bellIcon:"MemberDashboard_bellIcon__M43Lr",progressCircleWrapper:"MemberDashboard_progressCircleWrapper__5YwuH",progressTextWrapper:"MemberDashboard_progressTextWrapper__o4I3S",expertTitle:"MemberDashboard_expertTitle__3_dWu",expertText:"MemberDashboard_expertText__69RBY",expertLink:"MemberDashboard_expertLink__RVjWb",userName:"MemberDashboard_userName__wyI0O",authorContainer:"MemberDashboard_authorContainer__3pf07",authorImage:"MemberDashboard_authorImage__CjwGi",authorInfo:"MemberDashboard_authorInfo___hKx2",courseTitle:"MemberDashboard_courseTitle__QqueK",courseProgressText:"MemberDashboard_courseProgressText__nxdwJ",magazineImage:"MemberDashboard_magazineImage__cF0qo",magazineFooterTitle:"MemberDashboard_magazineFooterTitle__CSxBo",magazineFooterText:"MemberDashboard_magazineFooterText__chiaB",wikiHeader:"MemberDashboard_wikiHeader__JLuLQ",wikiText:"MemberDashboard_wikiText__eR_Aj",divider:"MemberDashboard_divider__oj0Va",customArrow:"MemberDashboard_customArrow__00GaM",articlePrevArrow:"MemberDashboard_articlePrevArrow__Rgnls",articleNextArrow:"MemberDashboard_articleNextArrow__rH70w",courseArrow:"MemberDashboard_courseArrow__0YaFh",coursePrevArrow:"MemberDashboard_coursePrevArrow__8W_DQ",courseNextArrow:"MemberDashboard_courseNextArrow__qsRy_"}}},e=>{e.O(0,[5015,9357,588,713,636,6593,8792],()=>e(e.s=72316)),_N_E=e.O()}]);

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.