1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4713],{19104:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(37876),a=n(77328),i=n.n(a);function o(e){let{title:t="Cessna Aviation",description:n="Learn more about Cessna aircraft, aviation training, and flight courses.",image:a="https://cessna-front.sandboxdevenv.com/og-image.jpg",url:o="https://cessna-front.web.app/",keywords:r=["Cessna","Aviation","Flight Training","Aircraft","Pilot School"],type:l="website",author:c="Cessna Aviation Team"}=e;return(0,s.jsxs)(i(),{children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("meta",{charSet:"UTF-8"}),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,s.jsx)("meta",{name:"description",content:n}),(0,s.jsx)("meta",{name:"keywords",content:r.join(", ")}),(0,s.jsx)("meta",{name:"author",content:c}),(0,s.jsx)("link",{rel:"canonical",href:o}),(0,s.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,s.jsx)("meta",{property:"og:site_name",content:"Cessna Aviation"}),(0,s.jsx)("meta",{property:"og:type",content:l}),(0,s.jsx)("meta",{property:"og:title",content:t}),(0,s.jsx)("meta",{property:"og:description",content:n}),a&&(0,s.jsx)("meta",{property:"og:image",content:a}),(0,s.jsx)("meta",{property:"og:url",content:o}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{name:"twitter:site",content:"@cessnaorg"}),(0,s.jsx)("meta",{name:"twitter:title",content:t}),(0,s.jsx)("meta",{name:"twitter:description",content:n}),a&&(0,s.jsx)("meta",{name:"twitter:image",content:a}),(0,s.jsx)("meta",{name:"robots",content:"index, follow"}),(0,s.jsx)("meta",{name:"googlebot",content:"index, follow"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,s.jsx)("link",{rel:"apple-touch-icon",href:"/apple-touch-icon.png"}),(0,s.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,s.jsx)("meta",{name:"theme-color",content:"#1a5594"}),(0,s.jsx)("meta",{name:"msapplication-TileColor",content:"#1a5594"}),(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"article"===l?"Article":"WebSite",name:t,description:n,url:o,image:a,author:{"@type":"Organization",name:"Cessna Aviation",url:"https://cessna-front.web.app/"},publisher:{"@type":"Organization",name:"Cessna Aviation",logo:{"@type":"ImageObject",url:a}}})}})]})}},33416:e=>{e.exports={infoIcon:"merged_infoIcon__F8X7g",infoIconWaring:"merged_infoIconWaring__eUxh8",customCheckboxItem:"merged_customCheckboxItem__70Au7"}},64838:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=n(15039),a=n.n(s),i=n(14232),o=n(44935),r=n(37876);let l=i.forwardRef((e,t)=>{let{bsPrefix:n,variant:s,animation:i="border",size:l,as:c="div",className:d,...m}=e;n=(0,o.oU)(n,"spinner");let p="".concat(n,"-").concat(i);return(0,r.jsx)(c,{ref:t,...m,className:a()(d,p,l&&"".concat(p,"-").concat(l),s&&"text-".concat(s))})});l.displayName="Spinner";let c=l},71137:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/forums/[category]/[forumId]/[topicId]/move",function(){return n(97255)}])},94998:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var s=n(15039),a=n.n(s),i=n(14232),o=n(44935),r=n(25007),l=n(4857),c=n(37876);let d=i.forwardRef((e,t)=>{let{className:n,bsPrefix:s,as:i="span",...r}=e;return s=(0,o.oU)(s,"input-group-text"),(0,c.jsx)(i,{ref:t,className:a()(n,s),...r})});d.displayName="InputGroupText";let m=i.forwardRef((e,t)=>{let{bsPrefix:n,size:s,hasValidation:r,className:d,as:m="div",...p}=e;n=(0,o.oU)(n,"input-group");let u=(0,i.useMemo)(()=>({}),[]);return(0,c.jsx)(l.A.Provider,{value:u,children:(0,c.jsx)(m,{ref:t,...p,className:a()(d,n,s&&"".concat(n,"-").concat(s),r&&"has-validation")})})});m.displayName="InputGroup";let p=Object.assign(m,{Text:d,Radio:e=>(0,c.jsx)(d,{children:(0,c.jsx)(r.A,{type:"radio",...e})}),Checkbox:e=>(0,c.jsx)(d,{children:(0,c.jsx)(r.A,{type:"checkbox",...e})})})},97255:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var s=n(37876),a=n(78051),i=n(14232),o=n(40876),r=n(97719),l=n(60929),c=n(94998),d=n(7001),m=n(41321),p=n(33416),u=n.n(p),h=n(6226),x=n(89099),g=n(40525),f=n(31777),y=n(89848),j=n(14e3),v=n(19104);function b(){var e,t;let[n,p]=(0,i.useState)(!1),[b,w]=(0,i.useState)([]),[A,N]=(0,i.useState)(""),[C,I]=(0,i.useState)("new"),[_,T]=(0,i.useState)(""),{token:k}=(0,f.d4)(e=>e.auth),S=(0,j.useParams)(),R=(0,x.useRouter)(),P=decodeURIComponent((null==S?void 0:S.category)||""),F=decodeURIComponent((null==R||null==(e=R.query
1)?void 0:e.subForumTitle)||""),q=null==R||null==(t=R.query)?void 0:t.subForumId,M=R.query.replyTitle;(0,i.useEffect)(()=>{R.query.topicId&&g.A.get("topic?subForumId=".concat(q)).then(e=>{var t;let n=(null==e||null==(t=e.data)?void 0:t.data)||[];w(n),n.length>0&&N(n[0].id)}).catch(e=>console.error("Error fetching topics:",e))},[R.query.forumId,R.query.topicId,q]),(0,i.useEffect)(()=>{R.query.replyTitle&&T(R.query.replyTitle)},[R.query.replyTitle,M]);let E=async()=>{if(!R.query.commentId)return void y.oR.error("Comment ID missing");p(!0);try{var e,t,n;let s=A;if("new"===C){let e=new FormData;e.append("title",_),e.append("subForumId",q);let a=await g.A.post("topic/",e,{headers:{"Content-Type":"multipart/form-data",Authorization:"Bearer ".concat(k)}});if(null==a||null==(n=a.data)||null==(t=n.data)?void 0:t.id)s=a.data.data.id;else throw Error("Failed to retrieve new Topic ID")}let a=await g.A.patch("topic-comment/".concat(R.query.commentId,"/move"),{topicId:Number(s)},{headers:{Authorization:"Bearer ".concat(k)}});y.oR.success((null==a||null==(e=a.data)?void 0:e.msg)||"Reply moved successfully!"),R.push("/forums/".concat(P,"/topic/").concat(s))}catch(e){console.error("Move Reply Error:",e),y.oR.error("Failed to move reply")}finally{p(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.A,{title:" ".concat(M," - Cessna Pilots Association"),description:"Cessna Pilots Association Leading the industry for over 30 years Join / Renew CPA Forums CPA Forums have been active for over 20 years, withâ¦",url:"https://cessna-front.web.app/",image:"https://flyingmag1.b-cdn.net/wp-content/uploads/sites/2/2012/02/399113-_BP20765-6c1cfd-original-1629145877-scaled-1.jpg?width=1024&height=683",keywords:["Cessna books","aviation literature","flight manuals","Cessna Pilots","In-Person Courses","Books","Online Courses","Magazines"]}),(0,s.jsx)(o.A,{className:"py-4",children:(0,s.jsxs)(r.A,{className:"justify-content-center",children:[(0,s.jsxs)(l.A,{lg:9,md:12,sm:12,children:[(0,s.jsxs)("h4",{className:"mb-4 fw-bold raleway",children:['Move reply "Reply To: ',R.query.replyTitle||M,'"']}),(0,s.jsx)(l.A,{xs:12,md:12,className:"mt-3 mt-md-0",children:(0,s.jsxs)(c.A,{className:"mb-3",children:[(0,s.jsx)(c.A.Text,{className:u().infoIcon,style:{minHeight:"40px",padding:"0 10px",display:"flex",alignItems:"center"},children:(0,s.jsx)(h.nP3,{style:{color:"#fff"},size:24})}),(0,s.jsx)(d.A.Control,{as:"div",className:"bg-white d-flex align-items-center align-content-center p-2",style:{height:"auto",minHeight:"40px"},children:"You can either make this reply a new discussion with a new title, or merge it into an existing discussion."})]})}),(0,s.jsx)(l.A,{xs:12,md:12,className:"mt-3 mt-md-0",children:(0,s.jsxs)(c.A,{className:"mb-4",children:[(0,s.jsx)(c.A.Text,{id:"basic-addon1",className:u().infoIcon,style:{minHeight:"40px",padding:"0 10px",display:"flex",alignItems:"center"},children:(0,s.jsx)(h.nP3,{style:{color:"#fff"},size:24})}),(0,s.jsx)(d.A.Control,{as:"div",className:"bg-white d-flex align-items-center p-2",style:{height:"auto",minHeight:"40px"},children:"If you choose an existing discussion, replies will be ordered by the time and date they were created."})]})}),(0,s.jsx)("h5",{className:"fw-semibold mb-4 raleway",children:"Move Method"}),(0,s.jsxs)(d.A.Group,{className:"mb-3",children:[(0,s.jsx)(d.A.Check,{type:"radio",id:"move-new",label:(0,s.jsxs)("span",{className:"fw-medium Open_Sans",children:["New discussion in",(0,s.jsx)("span",{className:"fw-bold ms-1 raleway",children:F})," ","titled:"]}),name:"moveMethod",checked:"new"===C,onChange:()=>I("new"),className:"mb-2"}),(0,s.jsxs)(c.A,{children:[(0,s.jsx)(c.A.Text,{className:"bg-light text-muted",children:"Moved: Reply To:"}),(0,s.jsx)(d.A.Control,{type:"text",value:_,onChange:e=>T(e.target.value),disabled:"new"!==C})]})]}),(0,s.jsxs)(d.A.Group,{className:"mb-4 mt-4",children:[(0,s.jsx)(d.A.Check,{type:"radio",id:"move-existing",label:"Use an existing discussion in this forum:",name:"moveMethod",checked:"existing"===C,onChange:()=>I("existing"),className:"mb-2 Open_Sans"}),(0,s.jsx)(d.A.Select,{value:A,onChange:e=>N(e.target.value),disabled:"existing"!==C,children:null==b?void 0:b.map(e=>(0,s.jsxs)("option",{value:e.id,children:[(e=>{let t=new Date(e),n=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0"),a=String(t.getFullYear()).slice(-2);return"".concat(n,"/").concat(s,"/").concat(a)})(e.created_at)," - ",e.title]},e.id))})]}),(0,s.jsx)(l.A,{xs:12,md:12,className:"mt-3 mt-md-0",children:(0,s.jsxs)(c.A,{className:"mb-3",children:[(0,s.jsx)(c.A.Text,{id:"basic-addon1",className:u().infoIconWaring,style:{backgroundColor:"#dc3545",borderColor:"#dc3545",minHeight:"40px",padding:"0 10px",display:"flex",alignItems:"center"},children:(0,s.jsx)(h.Paf,{style:{color:"#fff"},size:24})}),(0,s.jsxs)(d.A.Control,{as:"div",className:"bg-white d-flex align-items-center fw-bold p-2 h-auto",style:{resize:"none",minHeight:"40px",color:"#4D5C6D"},children:["WARNING:",(0,s.jsx)("div",{className:"fw-normal ps-2 text-muted fs-6",children:"This process cannot be undone."})]})]})}),(0,s.jsx)("div",{className:"text-start mt-4 mb-4 mb-lg-0",children:(0,s.jsx)(m.A,{variant:"primary",className:"px-4 roun
1ded-pill",disabled:n,onClick:E,style:{paddingLeft:"40px",paddingRight:"40px"},children:n?"Submitting...":"Submit"})})]}),(0,s.jsx)(a.A,{})]})})]})}}},e=>{e.O(0,[9897,7177,3629,241,4e3,8051,636,6593,8792],()=>e(e.s=71137)),_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.