1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1768],{69452:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/course/wp-info/[slug]",function(){return s(77229)}])},77229:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>d});var i=s(37876),n=s(14232),o=s(89099),a=s(19104),r=s(26794),l=s(40525),c=s(29706),u=s(17419);let d=()=>{let{slug:e}=(0,o.useRouter)().query,[t,s]=(0,n.useState)(null),[d,p]=(0,n.useState)(!0);if((0,n.useEffect)(()=>{e&&(async()=>{p(!0);try{let t=(await l.A.get("/by-slug",{params:{type:2,slug:e},baseURL:"".concat("https://api.cessna.org","/api")})).data,i=(null==t?void 0:t.data)||(null==t?void 0:t.course)||(null==t?void 0:t.result)||t;s(function(e){var t;return e?{id:e.id,documentId:e.documentId||e.id,name:e.name||e.title||"",title:e.name||e.title||"",price:null!=(t=e.price)?t:"0",discount:e.discount||0,image:e.image||null,courseType:e.courseType||e.course_type||"online",locations:Array.isArray(e.locations)?e.locations:[],description:e.description||"",shortDescription:e.shortDescription||e.short_description||"",category:e.category||null,hasVariant:!1,variants:[],stock:1,syllabus:Array.isArray(e.syllabus)?e.syllabus:[],cover:e.cover||e.covers||"",startDate:e.startDate||e.start_date||"",endDate:e.endDate||e.end_date||""}:null}(i))}catch(e){console.error("Error fetching course by slug:",e),s(null)}finally{p(!1)}})()},[e]),d)return(0,i.jsx)("div",{className:"d-flex justify-content-center align-items-center",style:{minHeight:"100vh"},children:(0,i.jsx)(c.A,{animationData:u,loop:!0})});let y=(null==t?void 0:t.name)||(null==t?void 0:t.title)||"",v=((null==t?void 0:t.shortDescription)||(null==t?void 0:t.description)||"").replace(/<[^>]*>/g,"").trim()||"Explore Cessna Pilots Association aviation course details.";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.A,{title:y?"".concat(y," | Cessna Pilots Association"):"Course Info | Cessna Pilots Association",description:v,image:null==t?void 0:t.image,url:"".concat("https://cessna-front.sandboxdevenv.com","/course/wp-info/").concat(e),keywords:["CPA course","aviation training","Cessna course","pilot training"],type:"article"}),(0,i.jsx)(r.A,{book:t,loading:!1})]})}}},e=>{e.O(0,[390,7177,9923,2236,4e3,2058,6794,636,6593,8792],()=>e(e.s=69452)),_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.