1import{r as a,V as W,D as M,j as s,H as q}from"./index-36_vz-t3.js";import{H as G}from"./index-eAh28Ark.js";import{A as Y}from"./index-ESVhrtko.js";import{b as _}from"./App-NvCIDtGz.js";import{u as J}from"./index-80PKNHPb.js";import{$ as K}from"./module-g7vSIb6X.js";function re(){var $,b,y,E,F,C,I,w,A,N,D;const[g,u]=a.useState("1sec0"),T=a.useRef(null);a.useRef(null);const[h,m]=a.useState(!0),[o,B]=a.useState(null),{state:f}=W(),{setActive:O}=M(),{language:n,increment:p,pageID:x}=M(),{handleMouseEnter:j,handleMouseLeave:v,stopSpeech:Q}=J(),i=a.useRef([]),[U,P]=a.useState("1sec0");a.useEffect(()=>{if(!i.current)return;const e=new IntersectionObserver(t=>{t.forEach(r=>{r.isIntersecting&&(P(`1${r.target.id}`),u(`1${r.target.id}`))})},{threshold:.1});return setTimeout(()=>{i.current.forEach(t=>{t&&e.observe(t)})},100),()=>{i.current.forEach(t=>{t&&e.unobserve(t)})}},[i.current,o]),a.useEffect(()=>{console.log(f,"unique id---->"),f?S(f):x&&(O(localStorage.getItem("active")),S(localStorage.getItem("pageId")))},[x,localStorage.getItem("pageId")]),a.useEffect(()=>{o&&console.log(o,"content-->")},[o]);const S=e=>{var t;(t=_(e))==null||t.then(r=>{r.status=="200"&&(console.log(r,"gggggggggggg"),B(r.data.data),m(!1),console.log(o,"content-->"))}).catch(r=>m(!1))},z=e=>{u(e);const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"});const c=t.getBoundingClientRect().top+window.pageYOffset+-240;window.scrollTo({top:c,behavior:"smooth"})};return s.jsx(s.Fragment,{children:h?s.jsx(s.Fragment,{children:s.jsx("div",{className:"d-flex align-items-center justify-content-center",style:{height:"100vh"},children:s.jsx(K,{visible:h,strokeWidth:4,height:"60",width:"60",color:"#00401A",secondaryColor:"#ddd",ariaLabel:"oval-loading",wrapperStyle:{},wrapperClass:""})})}):s.jsx(s.Fragment,{children:s.jsxs("div",{children:[s.jsx("section",{children:s.jsx(G,{page:n=="en"?"Procedure":"طرÛÙÛ Ú©Ø§Ø±",pageChild:($=o==null?void 0:o[n])==null?void 0:$.name})}),s.jsx("section",{children:s.jsx(q,{size:"xs",nomargin:!0,padding:"15px 5px 20px 0px",fontFamily:n==="en"?"SF-Pro-Display":"reg-font-Nafees",fontSize:n==="en"?`${24+p}px`:`${28+p}px`,onMouseEnter:()=>{var e,t;return j((t=(e=o==null?void 0:o[n])==null?void 0:e.properties)==null?void 0:t.title)},onMouseLeave:v,fontWeight:"700",heading:(y=(b=o==null?void 0:o[n])==null?void 0:b.properties)==null?void 0:y.title,color:"#00401A"})}),s.jsx("div",{className:localStorage.getItem("access")=="true"?"Hammadaccess":"Hammad",children:s.jsx("div",{className:"mt-3 container2 ",style:{borderBottom:"1px solid #E1E1E1"},children:s.jsx("div",{id:"left",class:"text-container1",children:(I=(C=(F=(E=o==null?void 0:o[n])==null?void 0:E.properties)==null?void 0:F.addDeparture)==null?void 0:C.items)==null?void 0:I.map((e,t)=>{var r,c;return s.jsx(s.Fragment,{children:s.jsx("div",{id:`1sec${t}`,onClick:()=>z(t),className:"",children:s.jsx("div",{className:"inner_text",style:{backgroundColor:g==`1sec${t}`?"#F5F8F6":"#ffffff"},children:s.jsx("p",{className:"p-0 m-0",fontFamily:"SF-Pro-Display",onMouseEnter:()=>{var l,d;return j((d=(l=e==null?void 0:e.content)==null?void 0:l.properties)==null?void 0:d.title)},style:{fontFamily:n==="en"?"":"Nafees",fontSize:n==="en"?`${14+p}px`:`${18+p}px`,color:g==`1sec${t}`?"#00401A":"#52725f",fontWeight:g==`1sec${t}`?"700":"500"},onMouseLeave:v,children:(c=(r=e==null?void 0:e.content)==null?void 0:r.properties)==null?void 0:c.title})})})})})})})}),s.jsx("section",{children:(D=(N=(A=(w=o==null?void 0:o[n])==null?void 0:w.properties)==null?void 0:A.addDeparture)==null?void 0:N.items)==null?void 0:D.map((e,t)=>{var r,c,l,d,H,L,R,k;return s.jsx(s.Fragment,{children:s.jsx("div",{id:`sec${t}`,ref:V=>i.current[t]=V,children:s.jsx(Y,{id:t,foc:T,heading:(c=(r=e==null?void 0:e.content)==null?void 0:r.properties)==null?void 0:c.title,description:(H=(d=(l=e==null?void 0:e.content)==null?void 0:l.properties)==null?void 0:d.description)==null?void 0:H.markup,image:`
2 https://paawebadmin.paa.gov.pk/${(k=(R=(L=e==null?void 0:e.content)==null?void 0:L.properties)==null?void 0:R.image[0])==null?void 0:k.url}`})})})})})]})})})}export{re 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.