1import{u as ie,r as i,z as se,j as t,H as J}from"./index-yuWqArCw.js";import{I as ce}from"./index-0OwfBx8H.js";import{u as me,H as pe,L as le,a as de,c as Q,d as ge}from"./index-zguRd-9M.js";import{S as he}from"./index-z2tY7UMV.js";import{B as ue}from"./news_back-wiS7vzgt.js";import{L as xe}from"./index-J-Dcyizu.js";/* empty css */import"./react-photo-view-NqJlc4m2.js";import{C as fe}from"./Container-gi2pHfJ6.js";import{R as je}from"./Row-d47zYKsc.js";import"./swiper-react-AEFXk6_m.js";import"./passengerWhiteArrow-XXa8Ft-8.js";import"./index.es-M-Vw-N6e.js";import"./styled-components.browser.esm-ArtWTeeN.js";import"./Modal-FLizPIXv.js";import"./index-vd1MIOwm.js";import"./App-jLNCm3wl.js";import"./index-0soAluUj.js";import"./Form-NzYbW4Kp.js";import"./FormGroup-ufd2Vm9P.js";import"./yup-2o7yTOi9.js";import"./index.esm-McZpXV_-.js";import"./style-6DoXVwIP.js";import"./react-select.esm-IqKW0J_H.js";import"./floating-ui.dom-NJWmrWRI.js";import"./hoist-non-react-statics.cjs-EVdV0MSt.js";import"./recaptcha-wrapper-DdAGB_-n.js";/* empty css */import"./index-FVEAsIt7.js";import"./index-wE5HQGVG.js";/* empty css */import"./index-NfpyVyKF.js";import"./chevron-right-2jgxn4II.js";import"./Card-77s-_sT5.js";import"./index-wPy7DBp3.js";
1import"./index-jC7MoW8w.js";import"./menuNoContent-Y9A55ut-.js";import"./index-OMV56owp.js";import"./searchGray-wG8PkbMC.js";import"./small_logo_air-6NkuQP9X.js";import"./AccordionBody-6Kz_3fCX.js";const it=()=>{var N,F,E,I,T,$,P;const{themeMode:p,darkTheme:X,language:a,increment:g}=ie(),{handleMouseEnter:S,handleMouseLeave:b}=me(),[h,Y]=i.useState(),[m,j]=i.useState(),[C,y]=i.useState(!0),[e,A]=i.useState(),[L,M]=i.useState(),[Z,w]=i.useState(null),[O,v]=i.useState(),[d,D]=i.useState(),[k,ee]=i.useState(),[u,te]=i.useState(),[x,oe]=i.useState(),f=se(o=>{var n,s;return a==="en"?(n=o.caaContent.caaMenus[0])==null?void 0:n.pcaaEnglishMenus:(s=o.caaContent.caaMenus[0])==null?void 0:s.pcaaUrduMenus});i.useEffect(()=>{window.scrollTo(0,0)},[]),console.log(f,"mnbvcxzxcvb");function ne(o){function n(s){return s.filter(r=>!r.hideFromTopNavigation).map(r=>({...r,children:n((r==null?void 0:r.children)||[])}))}return{...o,children:n((o==null?void 0:o.children)||[])}}i.useEffect(()=>{var s;const o=(s=f==null?void 0:f.children)==null?void 0:s.find(r=>window.location.pathname.includes(r.redirctFrontURL)),n=ne(o);n&&(Y([n]),n.children&&n.children.length>0&&(n==null||n.children.map(r=>{r.children&&r.children.length>0?r.children.map(l=>{l.redirctFrontURL===window.location.pathname&&(v(r.uniqueId),j(l.uniqueId),w(l.name))}):r.redirctFrontURL===window.location.pathname&&j(r.uniqueId)})))},[a,window.location.pathname]),i.useEffect(()=>{(async()=>{var n,s,r,l,_,H,z,B,R,q,U,V,W,K,G;y(!0),A();try{if(m){const c=await ge(m);console.log(c,"qazxfewsx"),A((r=(s=(n=c==null?void 0:c.data)==null?void 0:n.data)==null?void 0:s[a])==null?void 0:r.properties),D((H=(_=(l=c.data.data)==null?void 0:l[a])==null?void 0:_.properties)==null?void 0:H.metaName),ee((R=(B=(z=c.data.data)==null?void 0:z[a])==null?void 0:B.properties)==null?void 0:R.metaDescription),te((V=(U=(q=c.data.data)==null?void 0:q[a])==null?void 0:U.properties)==null?void 0:V.metaKeywords),oe((G=(K=(W=c.data.data)==null?void 0:W[a])==null?void 0:K.properties)==null?void 0:G.metaScript),y(!1)}}catch(c){console.log("Error fetching side data:",c),y(!1)}})()},[m,a]),i.useEffect(()=>{m&&h&&h[0].children.forEach(o=>{o.children.length>0?o.children.map(n=>n.uniqueId===m&&M(n.name)):o.uniqueId===m&&M(o.name)})},[m,h]);const re=o=>{v(),j(o)},ae=(o,n)=>{w(o)};return console.log(e,"mnbvcxcvb"),t.jsxs(t.Fragment,{children:[t.jsxs(pe,{children:[x&&((N=x==null?void 0:x.items)==null?void 0:N.map((o,n)=>{var s,r;return t.jsx("script",{type:"application/ld+json",children:`${(r=(s=o==null?void 0:o.content)==null?void 0:s.properties)==null?void 0:r.metaScript}`})})),t.jsx("title",{children:d}),t.jsx("meta",{name:"robots",content:"follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"}),t.jsx("link",{rel:"canonical",href:`https://pcaa.gov.pk${window.location.pathname}`}),t.jsx("meta",{name:"description",content:k}),t.jsx("meta",{property:"og:locale",content:"en_PK"}),t.jsx("meta",{property:"og:type",content:"website"}),t.jsx("meta",{name:"title",property:"og:title",content:d}),t.jsx("meta",{name:"description",property:"og:description",content:k}),t.jsx("meta",{name:"keywords",property:"og:keyword",content:u&&(u==null?void 0:u.join(" | "))}),t.jsx("meta",{property:"og:url",content:`https://pcaa.gov.pk${window.location.pathname}`}),t.jsx("meta",{property:"og:site_name",content:"Civil Aviation Authority Pakistan"}),t.jsx("meta",{property:"og:updated_time",content:"2024-08-22T15:47:17+05:00"}),t.jsx("meta",{property:"og:image",content:d}),t.jsx("meta",{property:"og:image:secure_url",content:"https://pcaa.gov.pk/images/CAA-Logo.png"}),t.jsx("meta",{property:"og:image:width",content:"512"}),t.jsx("meta",{property:"og:image:height",content:"512"}),t.jsx("meta",{property:"og:image:alt",content:d}),t.jsx("meta",{property:"og:image:type",content:"image/png"}),t.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),t.jsx("meta",{name:"twitter:title",content:d}),t.jsx("meta",{name:"twitter:description",content:k}),t.jsx("meta",{name:"twitter:image",content:"https://pcaa.gov.pk/images/CAA-Logo.png"}),t.jsx("meta",{name:"twitter:site",content:"@official_pcaa"}),t.jsx("meta",{name:"twitter:label1",content:"Written by"}),t.jsx("meta",{name:"twitter:data1",content:"admin"}),t.jsx("meta",{name:"twitter:label2",content:"Time to read"}),t.jsx("meta",{name:"twitter:data2",content:"4 minutes"})]}),t.jsxs(le,{children:[t.jsx(de,{title:L,items:[a==="en"?"Home":"ÛÙÙ
",a==="en"?"Core Processes":"بÙÛØ§Ø¯Û عÙ
Ù",L],img:ue}),t.jsx(fe,{className:a==="en"?"my_container":"my_container1",children:t.jsxs(je,{children:[t.jsx(Q,{lg:3,md:4,className:`heightHandle ${a==="en"?"ps-4 pe-0":"pe-4 ps-0"} py-4 border ${p==="light"?"border-end":"border-0"}`,style:{backgroundColor:p==="dark"?X.BannerbackColor:"#FAFAFA",height:"auto"},children:t.jsxs("div",{style:{position:"sticky",top:0},children:[t.jsx(J,{size:"lg",className:"about_tag",fontFamily:a==="en"?"reg-font":"reg-font-Nafees",heading:`${a==="en"?"Core Processes":"بÙÛØ§Ø¯Û عÙ
Ù"}`,color:p==="dark"?"white":"black",fontSize:a==="en"?`${18+g}px`:`${22+g}px`,fontWeight:600,onMouseEnter:()=>S(`${a==="en"?"Core Processes":"بÙÛØ§Ø¯Û عÙ
Ù"}`),onMouseLeave:b}),t.jsx(he,{color:p==="dark"?"white":"black",content:e,data:h,activeSection:m,handleHeadingClick:re,newsCard:!0,active1:O,setActive1:v,activeSubItem:Z,setActiveSubItem:w,handleInnerItemClick:ae})]})}),console.log(e&&e.jobLinks,"nbvcxcvbn"),t.jsx(Q,{lg:8,md:8,style:{minHeight:"74vh",height:"100%"},children:C?t.jsx("div",{className:"d-flex align-items-center justify-content-center",style:{height:"70vh"},children:t.jsx(xe,{show:C,spinnerSize:"60px"})}):t.jsx(t.Fragment,{children:e?t.jsx(ce,{siteColor:"#0071B7",textColor:p==="dark"?"white":"black",HeadingColor:p==="dark"?"white":"black",heading:e&&(e!=null&&e.cAATitle)?e==null?void 0:e.cAATitle:e==null?void 0:e.title,content:e&&(e!=null&&e.cAAbodyContent)?e==null?void 0:e.cAAbodyContent.markup:(F=e==null?void 0:e.bodyContent)==null?void 0:F.markup,carouselTrack:e&&((E=e.addPhotos)==null?void 0:E.items),pictures:e&&((I=e.addPhotos)==null?void 0:I.items),url:(e==null?void 0:e.redirectURL)&&((T=e==null?void 0:e.redirectURL[0])==null?void 0:T.url),carouselTrackVideo:e&&(($=e==null?void 0:e.uploadVideo)==null?void 0:$.items),AllVideo:e&&((P=e==null?void 0:e.uploadVideo)==null?void 0:P.items),pensioners:e&&(e==null?void 0:e.addPensioners),jobItems:(e==null?void 0:e.jobItemList)&&e,jobLinks:(e==null?void 0:e.jobLinks)&&e,PdfData:(e==null?void 0:e.pDF)&&(e==null?void 0:e.pDF)}):t.jsx("div",{className:"d-flex align-items-center justify-content-center",style:{height:"100vh"},children:t.jsx(J,{size:"sm",heading:a==="en"?"No Data Found":"Ú©ÙØ¦Û ÚÛٹا ÙÛÛÚº Ù
ÙØ§",color:"#0071B7",fontSize:a==="en"?`${28+g}px`:`${32+g}px`,fontFamily:a==="en"?"reg-font":"reg-font-Nafees",fontWeight:700,className:"d-lg-flex d-none",onMouseEnter:()=>S(a==="en"?"No Data Found":"Ú©ÙØ¦Û ÚÛٹا ÙÛÛÚº Ù
ÙØ§"),onMouseLeave:b})})})})]})})]})]})};export{it as default};
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.