1import{j as e,R as H,v as $,w as O,x as V,N as q,b as k,r as g,L as N,ak as Z,a as W,u as J}from"./index-CMfIf9m3.js";import{P as U}from"./PageFooterRow-cP7M-1TF.js";import{S as Y}from"./SubsiteSidebar-DJWhFrIe.js";import Q from"./OurClients-6gp4vgtr.js";import{N as _}from"./NotFound-CxIs-pGt.js";import{I as X,C as K}from"./CmsBlocks-dlUs_Mqf.js";import{a as ee}from"./resolveApi-CxNR658Y.js";import{i as L,C as se}from"./centerSections-BYvPu_Dt.js";import{S as y,C as te}from"./CalendarEvents-SnzRGPRE.js";import{u as S,P as v}from"./Pagination-Ce7GXy-u.js";import{D as ae}from"./DocTitle-D8AdP3-C.js";import{A as ie,P as le,F as G}from"./PhotoLightbox-Cp3IhfZs.js";import{P as ne}from"./play-B609hKv8.js";import{h as B}from"./slugLabel-G8ALJ0WS.js";import"./useAccessibleCarousel-C8Bcex-Z.js";import"./CmsRichText-CPUTJk7b.js";import"./pageApi-CQcdcx_c.js";import"./calendarApi-CMHqdp6O.js";import"./useDialog-Cmucy8vo.js";const re=[{id:1,name:"CS JAYMEEN DINESHBHAI TRIVEDI",qualification:"FCS 9137",designation:"Chairman",email:["[email protected]","[email protected]"],address:["B-1011, Sivanta One Business Park,","opposite Bob Elise Bridge Branch,","Paldi, Ahmedabad â 380007"],officePhone:"079-35616762",mobilePhone:"9328222069"},{id:2,name:"CS MEENA SHARMA",qualification:"FCS 7421",designation:"Vice Chairman",email:["[email protected]"],address:["12, Corporate Avenue,","Downtown â 110001"],officePhone:"011-2345-6789",mobilePhone:"98110-22069"},{id:3,name:"CS RAHUL VERMA",qualification:"ACS 33210",designation:"Secretary",email:["[email protected]"],address:["45, Liberty Street,","Sector 18 â 201301"],officePhone:"0120-455-0175",mobilePhone:"98910-55188"},{id:4,name:"CS PRIYA NAIR",qualification:"ACS 41880",designation:"Treasurer",email:["[email protected]"],address:["7, Market Square,","MG Road â 560001"],officePhone:"080-4155-0119",mobilePhone:"98450-55166"}],oe=[{id:1,title:"The Company Secretaries Act, 1980 (With Rules)",url:"#",isNew:!0,date:"10-12-2024",format:"PDF",language:"ENGLISH",size:"1.5 MB"},{id:2,title:"The Chartered Accountants, The Cost and Works Accountants and The Company Secretaries (Amendment) Act, 2022",url:"#",isNew:!0,date:"10-12-2024",format:"PDF",language:"ENGLISH",size:"1.5 MB"},{id:3,title:"Notification dated 10.05.2022",url:"#",date:"10-12-2024",format:"PDF",language:"ENGLISH",size:"1.5 MB"},{id:4,title:"The Company Secretaries (Election to the Council) (Amendment) Rules, 2022",url:"#",date:"10-12-2024",format:"PDF",language:"ENGLISH",size:"1.5 MB"}],ce=[{id:1,title:"Registration for CS Course â Guidelines 2025",url:"#",isNew:!0,date:"10-12-2024",format:"PDF",language:"ENGLISH",size:"1.5 MB"},{id:2,title:"Study Material & E-Learning â Executive Programme",url:"#",date:"10-12-2024",format:"PDF",language:"ENGLISH",size:"1.5 MB"},{id:3,title:"Examination Time Table â December 2025 Session",url:"#",date:"10-12-2024",format:"PDF",language:"ENGLISH",size:"1.5 MB"},{id:4,title:"Results â June 2025 Examination",url:"#",date:"10-12-2024",format:"PDF",language:"ENGLISH",size:"1.5 MB"}],de=[{id:1,title:"Annual Membership Renewal Circular 2025-26",url:"#",isNew:!0,date:"10-12-2024",format:"PDF",language:"ENGLISH",size:"1.5 MB"},{id:2,title:"Certificate of Practice â Application Form",url:"#",date:"10-12-2024",format:"PDF",language:"ENGLISH",size:"1.5 MB"},{id:3,title:"Guidelines for Continuing Education Programme (CEP) Credit Hours",url:"#",date:"10-12-2024",format:"PDF",language:"ENGLISH",size:"1.5 MB"},{id:4,title:"Member Benefits & Services Handbook",url:"#",date:"10-12-2024",format:"PDF",language:"ENGLISH",size:"1.5 MB"}],D=9,me=({members:s=re})=>{const{page:i,setPage:r,totalPages:a,pageItems:m,total:c}=S(s,D);return e.jsxs("section",{children:[e.jsx(y,{title:"Particulars of Managing Committee"}),e.jsx("div",{className:"overflow-x-auto",tabIndex:0,role:"region","aria-label":"Managing committee",children:e.jsxs("table",{className:"w-full min-w-[720px] border-collapse text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-[#0B4173] text-left text-white",children:[e.jsx("th",{scope:"col",className:"px-4 py-3 font-semibold",children:"Name"}),e.jsx("th",{scope:"col",className:"px-4 py-3 font-semibold",children:"Email Id"}),e.jsx("th",{scope:"col",className:"px-4 py-3 font-semibold",children:"Address"}),e.jsx("th",{scope:"col",className:"px-4 py-3 font-semibold",children:"Phone"})]})}),e.jsx("tbody",{children:m.map(n=>
1e.jsxs("tr",{className:"border-b border-[#E6E5E5] align-top",children:[e.jsx("td",{className:"px-4 py-4",children:e.jsxs("div",{className:"flex gap-3",children:[n.photo?e.jsx("img",{src:n.photo,alt:n.name,title:n.name,className:"h-16 w-16 shrink-0 rounded object-cover"}):e.jsx("div",{className:"h-16 w-16 shrink-0 rounded bg-gray-300"}),e.jsxs("div",{children:[e.jsxs("p",{className:"font-semibold text-gray-900",children:[n.name,n.qualification?` (${n.qualification})`:""]}),e.jsxs("p",{className:"mt-1 text-gray-700",children:["Designation :"," ",e.jsx("span",{className:"font-semibold",children:n.designation})]})]})]})}),e.jsx("td",{className:"px-4 py-4",children:n.email.map(t=>e.jsx("p",{className:"break-all text-gray-700",children:t},t))}),e.jsx("td",{className:"px-4 py-4 text-gray-700",children:n.address.map((t,d)=>e.jsxs(H.Fragment,{children:[t,e.jsx("br",{})]},d))}),e.jsxs("td",{className:"px-4 py-4 text-gray-700",children:[n.officePhone&&e.jsxs("p",{children:["(Office) ",n.officePhone]}),n.mobilePhone&&e.jsxs("p",{className:"mt-1",children:["(Mobile) ",n.mobilePhone]})]})]},n.id))})]})}),e.jsx(v,{page:i,totalPages:a,onPage:r,totalItems:c,pageSize:D,itemLabel:"members"})]})},F=9,A=({title:s,items:i})=>{const{page:r,setPage:a,totalPages:m,pageItems:c,total:n}=S(i,F);return e.jsxs("section",{children:[e.jsx(y,{title:s}),e.jsx("div",{className:"space-y-3",children:c.map(t=>{const d={format:t.format,size:t.url&&t.url!=="#"?t.size:void 0,newWindow:$(t.url),href:t.url},h=O(t.title,d),u=V(t.title,d);return e.jsxs("div",{className:"rounded-sm bg-[#F6F6F6] px-4 py-3 border-b border-[#E6E5E5]",children:[e.jsx("div",{className:"flex flex-wrap items-center gap-2",children:e.jsxs("a",{href:t.url,"aria-label":u,title:h,className:"font-semibold text-[#0B4173] hover:underline",children:[t.isNew&&e.jsx(q,{}),e.jsx(ae,{text:t.title,href:t.url,format:t.format})]})}),e.jsxs("p",{className:"mt-1 text-xs text-gray-600",children:[e.jsx("span",{className:"font-semibold",children:"DATE"})," : ",t.date,","," ",e.jsx("span",{className:"font-semibold",children:"FORMAT"})," : ",t.format,","," ",e.jsx("span",{className:"font-semibold",children:"LANGUAGE"})," : ",t.language,","," ",e.jsx("span",{className:"font-semibold",children:"SIZE"})," : ",t.size]})]},t.id)})}),e.jsx(v,{page:r,totalPages:m,onPage:a,totalItems:n,pageSize:F,itemLabel:"documents"})]})},ue=({announcements:s=oe})=>e.jsx(A,{title:"Announcements",items:s}),ge=({docs:s=ce})=>e.jsx(A,{title:"Student Section",items:s}),xe=({docs:s=de})=>e.jsx(A,{title:"Member Section",items:s}),he=s=>s.type==="video"&&!!s.embed_url,pe=s=>s.type==="doc"&&!!s.file_url,fe=async(s,i)=>{const{data:r}=await k.get("/api/gallery/",{params:{entity:s,instance:i}});return r?.found?r.albums??[]:[]},je=async(s,i,r)=>{const{data:a}=await k.get("/api/gallery/album/",{params:{entity:s,instance:i,slug:r}});return a?.found?a.album:null},M=9,be=()=>e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-[#eef2fb] to-[#dbe4f5] text-gray-400",children:e.jsx(X,{className:"h-8 w-8"})}),Ne=({entity:s,instance:i})=>{const[r,a]=g.useState([]),[m,c]=g.useState(!0),{page:n,setPage:t,totalPages:d,pageItems:h,total:u}=S(r,M);return g.useEffect(()=>{let l=!1;return c(!0),t(1),fe(s,i).then(f=>{l||a(f)}).catch(()=>{l||a([])}).finally(()=>{l||c(!1)}),()=>{l=!0}},[s,i]),e.jsxs("section",{children:[e.jsx(y,{title:"Photo Gallery"}),m?e.jsx("div",{className:"grid grid-cols-2 gap-x-5 gap-y-6 sm:grid-cols-3 lg:grid-cols-4",children:Array.from({length:4}).map((l,f)=>e.jsxs("div",{children:[e.jsx("div",{className:"aspect-[4/3] w-full animate-pulse rounded-md bg-gray-200"}),e.jsx("div",{className:"mt-2 h-4 w-3/4 animate-pulse rounded bg-gray-200"})]},f))}):r.length===0?e.jsx("p",{className:"py-8 text-sm text-gray-600",children:"No photo albums have been published yet."}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid grid-cols-2 gap-x-5 gap-y-6 sm:grid-cols-3 lg:grid-cols-4",children:h.map(l=>e.jsxs("div",{children:[e.jsx(N,{to:l.url,className:"block aspect-[4/3] w-full overflow-hidden rounded-md bg-gray-300",children:l.cover_image?e.jsx("img",{src:l.cover_image,alt:l.title,title:l.title,loading:"lazy",className:"h-full w-full object-cover transition-transform duration-200 hover:scale-105"}):e.jsx(be,{})}),e.jsxs("div",{className:"mt-2 flex items-start justify-between gap-2",children:[e.jsxs("p",{className:"text-sm leading-snug text-gray-800",children:[l.title,e.jsxs("span",{className:"mt-0.5 block text-xs text-gray-500",children:[l.image_count," ",l.image_count===1?"photo":"photos",l.video_count>0&&e.jsxs(e.Fragment,{children:[" · ",l.video_count," ",l.video_count===1?"video":"videos"]})]})]}),e.jsxs(N,{to:l.url,"aria-label":`View All photos in ${l.title||"this album"}`,title:`View All photos in ${l.title||"this album"}`,className:"mt-0.5 flex shrink-0 items-center gap-1 whitespace-nowrap text-xs font-medium text-[#0B4173] hover:underline",children:["View All ",e.jsx(Z,{className:"text-[10px]","aria-hidden":"true"})]})]})]},l.id))}),e.jsx(v,{page:n,totalPages:d,onPage:t,totalItems:u,pageSize:M,itemLabel:"albums"})]})]})},E=9,ye=s=>s?new Date(s).toLocaleDateString("en-IN",{day:"2-digit",month:"long",year:"numeric"}):"",Se=()=>e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-[#1b2a44] to-[#0B4173]"}),ve=()=>e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-[#eef1f6] to-[#dde3ec]",children:e.jsx(G,{className:"h-9 w-9 text-[#6b7a90]","aria-hidden":"true"})}),Pe=()=>e.jsx("span",{"aria-hidden":"true",className:"absolute bottom-1.5 right-1.5 flex h-7 w-7 items-center justify-center rounded-full bg-black/60",children:e.jsx(G,{className:"h-3.5 w-3.5 text-white"})}),we=()=>e.jsx("span",{"aria-hidden":"true",className:"absolute inset-0 flex items-center justify-center",children:e.jsx("span",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-black/60 transition group-hover:bg-red-700",children:e.jsx(ne,{className:"h-4 w-4 translate-x-px fill-white text-white"})})}),Ee=({entity:s,instance:i,slug:r})=>{const[a,m]=g.useState(null),[c,n]=g.useState(!0),[t,d]=g.useState(null),{page:h,setPage:u,totalPages:l,pageItems:f,total:b}=S(a?.images??[],E);if(g.useEffect(()=>{let o=!1;return n(!0),u(1),je(s,i,r).then(x=>{o||m(x)}).catch(()=>{o||m(null)}).finally(()=>{o||n(!1)}),()=>{o=!0}}
1,[s,i,r]),c)return e.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3",children:Array.from({length:6}).map((o,x)=>e.jsx("div",{className:"aspect-[4/3] w-full animate-pulse rounded-md bg-gray-200"},x))});if(!a)return e.jsx(_,{});const P=`/${s}/${i}/photo-gallery`;return e.jsxs("section",{children:[e.jsxs(N,{to:P,className:"mb-4 inline-flex items-center gap-1 text-sm text-[#0B4173] hover:underline",children:[e.jsx(ie,{className:"h-4 w-4","aria-hidden":"true"})," Back to Photo Gallery"]}),e.jsx(y,{title:a.title}),a.event_date&&e.jsx("p",{className:"-mt-2 mb-4 text-sm text-gray-600",children:ye(a.event_date)}),a.images.length===0?e.jsx("p",{className:"py-8 text-sm text-gray-600",children:"This album is empty."}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3",children:f.map((o,x)=>{const j=he(o),w=pe(o),p=o.caption||a.title,z=a.source==="drive"?"no-referrer":void 0,C=o.thumb||o.image,I=C?e.jsx("img",{src:C,alt:p,title:p,loading:"lazy",referrerPolicy:z,onError:w?R=>{R.currentTarget.style.display="none"}:void 0,className:"h-full w-full object-cover transition-transform duration-200 group-hover:scale-105"}):j?e.jsx(Se,{}):w?e.jsx(ve,{}):null;return w?e.jsxs("a",{href:o.file_url??void 0,target:"_blank",rel:"noopener noreferrer","aria-label":`Open document: ${p} (opens in a new tab)`,title:`Open document: ${p}`,className:"group text-left",children:[e.jsxs("div",{className:"relative aspect-[4/3] w-full overflow-hidden rounded-md bg-gray-200",children:[I,e.jsx(Pe,{})]}),o.caption&&e.jsx("p",{className:"mt-1.5 text-xs leading-snug text-gray-700",children:o.caption})]},o.id):e.jsxs("button",{type:"button",onClick:()=>d((h-1)*E+x),"aria-label":j?`Play video: ${p}`:`Enlarge photo: ${p}`,title:j?`Play video: ${p}`:p,className:"group text-left",children:[e.jsxs("div",{className:"relative aspect-[4/3] w-full overflow-hidden rounded-md bg-gray-200",children:[I,j&&e.jsx(we,{})]}),o.caption&&e.jsx("p",{className:"mt-1.5 text-xs leading-snug text-gray-700",children:o.caption})]},o.id)})}),e.jsx(v,{page:h,totalPages:l,onPage:u,totalItems:b,pageSize:E,itemLabel:a.video_count>0||(a.document_count??0)>0?"items":"photos"})]}),t!==null&&a&&e.jsx(le,{title:a.title,photos:a.images,initialIndex:t,onClose:()=>d(null)})]})},Ae=({section:s,centerKey:i,entity:r,instance:a,album:m,instanceId:c})=>{switch(s){case"managing-committee":return e.jsx(me,{centerKey:i});case"announcement":return e.jsx(ue,{centerKey:i});case"student":return e.jsx(ge,{centerKey:i});case"member":return e.jsx(xe,{centerKey:i});case"photo-gallery":return m?e.jsx(Ee,{entity:r,instance:a,slug:m}):e.jsx(Ne,{entity:r,instance:a});case"calendar-events":return e.jsx(te,{entity:r,instanceId:c});default:return null}},Ce=new Set(["calendar-events","photo-gallery"]),T=s=>(s||[]).map(i=>({label:i.title,path:i.url||"#",submenu:i.submenu?T(i.submenu):void 0})),Je=({entity:s,section:i})=>{const{instance:r,section:a,album:m}=W(),c=i??a;J([B(c),B(r)].filter(Boolean).join(" â "));const[n,t]=g.useState(!0),[d,h]=g.useState(null),u=(r||"").toLowerCase();if(g.useEffect(()=>{let x=!1;return t(!0),ee(`/${s}/${u}/${c||""}`).then(j=>{x||h(j)}).finally(()=>{x||t(!1)}),()=>{x=!0}},[s,u,c]),n)return e.jsx("div",{className:"max-w-12xl px-2 py-6 sm:px-4 md:px-18 lg:px-15",children:e.jsx("div",{className:"h-64 animate-pulse rounded-lg bg-gray-100"})});const l=L(c);if(!d?.found||!d.page&&!l)return e.jsx(_,{});const f=l&&(!d.page||Ce.has(c||"")),b=T(d.sidebar||[]),P=`/${s}/${r}`,o=d.page?.title||(L(c)?se[c]:"");return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"bg-[#f1f1f1] px-4 py-3 text-sm lg:px-15",children:[e.jsx(N,{to:"/",className:"text-[#0B4173] hover:underline",children:"Home"}),e.jsx("span",{className:"mx-1 text-gray-500",children:"/"}),e.jsx("span",{className:"font-semibold text-gray-800",children:o})]}),e.jsxs("div",{className:"max-w-12xl px-2 sm:px-4 md:px-18 lg:px-15",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-6 py-6 md:grid-cols-7",children:[b.length>0&&e.jsx(Y,{menu:b,basePath:P}),e.jsxs("section",{className:"md:col-span-5",children:[d.page&&e.jsx(K,{blocks:d.page.blocks}),f&&e.jsx(Ae,{section:c||"",centerKey:d.instance?.key||null,entity:s,instance:u,album:m,instanceId:d.instance?.id}),e.jsx(U,{})]})]}),e.jsx(Q,{})]})]})};export{Je 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.