PageSourceSearch

https://www.icsi.edu/assets/SecpageLayout-rgKmuk8K.js

js icsi.edu collected 2026-09-24 18:07:53 UTC 9,654 bytes, 2 lines download raw bytes

1import{r as o,j as e,B as L,C as _,z as M,A as R,L as E,m as $,c as I,i as B,F as P,R as z,M as T,a as D,u as K,d as O,a9 as W,aa as G,ab as H,ac as U}from"./index-DJqYQI6A.js";import{P as V}from"./PageFooterRow-BoOeDSrM.js";import{u as q,S as J,A as Q,a as X,K as Y,b as Z}from"./useCarouselA11y-CrbeuaTr.js";import{b as k}from"./centerSections-B0EPgRy6.js";import{T as ee,C as F}from"./ContactLines-DZYLlJQG.js";import{L as se}from"./index-Dtdmvpxi.js";import{C as te}from"./CmsRichText-DfUUL9eQ.js";import le from"./OurClients-jaMyWSpd.js";import{h as ae}from"./slugLabel-G8ALJ0WS.js";import"./useAccessibleCarousel-d8ueukib.js";const ne=({data:s})=>{const[t,n]=o.useState(0),[l,c]=o.useState(!1),u=o.useRef(null),h=()=>{u.current&&(clearInterval(u.current),u.current=null)},m=()=>{h(),s&&s.slides.length>1&&(u.current=setInterval(()=>{n(d=>(d+1)%s.slides.length)},s.interval||3e3))};if(o.useEffect(()=>{n(0),s&&c(s.autoplay)},[s]),o.useEffect(()=>(l?m():h(),h),[l,t,s]),!s||!s.slides||s.slides.length===0)return null;const{slides:a}=s,p=()=>n(d=>(d+1)%a.length),f=()=>n(d=>d===0?a.length-1:d-1);return e.jsx("section",{className:"p-4",children:e.jsx("div",{className:"w-full aspect-3/1 rounded-lg overflow-hidden relative shadow-lg",children:e.jsxs("div",{className:"relative h-full w-full",onMouseEnter:h,onMouseLeave:()=>l&&m(),children:[e.jsx("a",{href:a[t].url,target:a[t].open_in_new_tab?"_blank":"_self",rel:a[t].open_in_new_tab?"n
1oopener noreferrer":void 0,className:"block h-full w-full",children:e.jsx("img",{src:a[t].image,alt:a[t].alt||`Banner ${t+1} of ${a.length}`,title:a[t].alt||`Banner ${t+1} of ${a.length}`,className:"w-full h-full object-cover transition-opacity duration-500"})}),a.length>1&&e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button","aria-label":"Previous slide",title:"Previous slide",onClick:f,className:"absolute top-1/2 left-3 -translate-y-1/2 bg-white/80 p-2 rounded-full shadow hover:bg-white z-10",children:e.jsx(L,{"aria-hidden":"true"})}),e.jsx("button",{type:"button","aria-label":"Next slide",title:"Next slide",onClick:p,className:"absolute top-1/2 right-3 -translate-y-1/2 bg-white/80 p-2 rounded-full shadow hover:bg-white z-10",children:e.jsx(_,{"aria-hidden":"true"})}),e.jsx("button",{type:"button","aria-label":l?"Pause slideshow":"Play slideshow",title:l?"Pause slideshow":"Play slideshow",onClick:()=>c(d=>!d),className:"absolute bottom-4 right-4 bg-white/80 p-2 rounded-full shadow hover:bg-white z-10",children:l?e.jsx(M,{"aria-hidden":"true"}):e.jsx(R,{"aria-hidden":"true"})}),e.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2",children:a.map((d,r)=>e.jsx("button",{type:"button","aria-label":`Go to slide ${r+1}`,title:`Go to slide ${r+1}`,"aria-current":t===r,onClick:()=>n(r),className:`w-2 h-2 rounded-full transition-all ${t===r?"bg-red-700 scale-125":"bg-black/50"}`},r))})]})]})})})},re=()=>typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches,oe=({data:s})=>{const[t,n]=o.useState(0),l=o.useRef(null),[c,u]=o.useState(()=>!re()),[h,m]=o.useState(!1),a=o.useRef(null),{syncInert:p,onSlideFocus:f,onKeyDown:d}=q(l,a),r=i=>{const x=l.current?.autoplay;x&&(i?x.start():x.stop())},v=()=>{const i=!c;u(i),r(i)};if(o.useEffect(()=>{n(0)},[s]),!s||!s.cards?.length)return e.jsx("div",{className:"h-64 flex items-center justify-center text-gray-400",children:"No tiles available"});
1const{cards:b,autoplayDelay:S}=s,w=Math.ceil(b.length/4);return e.jsxs("div",{className:"relative aspect-3/2 w-full",role:"region","aria-roledescription":"carousel","aria-label":"Highlights",onFocus:()=>{r(!1),m(!0)},onBlur:i=>{i.currentTarget.contains(i.relatedTarget)||(m(!1),c&&r(!0))},onFocusCapture:f,onKeyDown:d,children:[e.jsx(J,{direction:"vertical",slidesPerView:1,spaceBetween:2,loop:b.length>4&&!h,watchSlidesProgress:!0,autoplay:{delay:S||3e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},speed:800,keyboard:{enabled:!0},modules:[Q,X,Y],onSwiper:i=>{l.current=i,c||i.autoplay?.stop(),p(i)},onSlideChange:i=>{n(i.realIndex),p(i)},onSlidesUpdated:p,className:"h-full",children:Array.from({length:w}).map((i,x)=>e.jsx(Z,{children:e.jsx("div",{className:"grid grid-cols-2 grid-rows-2 gap-x-4 gap-y-[10.6667px] h-full",children:b.slice(x*4,x*4+4).map(g=>{const j=g["data-open-new-tab"]==="true",N=g.url?.startsWith("http"),y="relative rounded-lg overflow-hidden group block",C=e.jsxs(e.Fragment,{children:[e.jsx("img",{src:g.image,alt:g.alt_text||"",title:g.alt_text||"",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"}),e.jsx("div",{className:"absolute bottom-0 w-full h-10 bg-[rgba(0,0,0,0.6)] flex items-center px-2",children:e.jsx("h3",{className:"text-white text-[10px]",children:g.title})})]});return N?e.jsx("a",{href:g.url,target:j?"_blank":"_self",rel:j?"noopener noreferrer":void 0,className:y,children:C},g.id):e.jsx(E,{to:g.url,target:j?"_blank":"_self",className:y,children:C},g.id)})})},`slide-${x}`))}),e.jsx("div",{"aria-hidden":"true",className:"absolute right-2 top-1/2 -translate-y-1/2 flex flex-col gap-2 z-10",children:Array.from({length:w}).map((i,x)=>e.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${t===x?"bg-red-700 scale-125":"bg-black/40"}`},x))}),e.jsx("button",{ref:a,type:"button",onClick:v,"aria-label":c?"Pause slideshow":"Play slideshow",title:c?"Pause slideshow":"Play slideshow",className:"absolute bottom-2 right-2 z-50 bg-white p-1.5 rounded-full shadow text-[10px] hover:bg-gray-100",children:c?e.jsx(M,{"aria-hidden":"true"}):e.jsx(R,{"aria-hidden":"true"})})]})},A=({item:s,level:t,basePath:n})=>{const l=$(),c=I(),[u,h]=o.useState(!1),m=s.submenu&&s.submenu.length>0,a=k(n,s.menu,s.url),p=c.pathname===a&&a!=="#",f=s.submenu?.some(r=>c.pathname===k(n,r.menu,r.url)),d=()=>{m&&h(r=>!r),a&&a!=="#"&&(a.startsWith("http")?window.open(a,"_blank"):l(a))};return e.jsxs("div",{onMouseEnter:()=>m&&h(!0),onMouseLeave:()=>m&&h(!1),className:"w-full",children:[e.jsxs("button",{type:"button",onClick:d,title:s.menu,style:{paddingLeft:`${12+t*16}px`},className:`w-full flex items-center justify-between text-left pr-3 py-3 text-sm border-b border-[#E6E5E5] transition cursor-pointer relative z-10
2        ${p||f?"bg-[#0B4173] text-white":"bg-[#F1F1F1] text-gray-800 hover:bg-gray-200"}`,children:[e.jsx("span",{children:s.menu}),m?u?e.jsx(B,{}):e.jsx(P,{}):p&&e.jsx(P,{})]}),m&&u&&e.jsx("div",{className:"w-full flex flex-col",children:s.submenu.map((r,v)=>e.jsx(A,{item:r,level:t+1,basePath:n},`${r.menu}-${v}`))})]})},ie=({menu:s,basePath:t})=>!s||s.length===0?null:e.jsx("nav",{"aria-label":"Section 8 company section navigation",className:"md:col-span-2 border border-[#E6E5E5] rounded-lg overflow-hidden bg-[#F1F1F1] relative z-10",children:s.map((n,l)=>e.jsx(A,{item:n,level:0,basePath:t},`${n.menu}-${l}`))}),ce=({note:s})=>{if(!s)return null;const{heading:t,description:n,address:l}=s;return e.jsxs("section",{className:"md:col-span-5",children:[e.jsx("h4",{className:"text-lg sm:text-xl lg:text-2xl font-semibold text-gray-900",children:t}),e.jsxs("div",{className:"mt-2 flex items-center",children:[e.jsx("div",{className:"h-1.5 w-12 md:w-20 bg-[#0F3479] rounded-l rounded-r"}),e.jsx("div",{className:"h-1 w-8 md:w-24 bg-[#8799BC] rounded-r"})]}),e.jsx(te,{html:n,className:"mt-3 text-sm"}),l&&e.jsxs(e.Fragment,{children:[e.jsx("h4",{className:"text-sm sm:text-md lg:text-md font-semibold text-gray-900 my-2 mt-6",children:l.title}),(l.location&&l.location.length>0||l.pincode)&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(ee,{className:"mt-1 text-md"}),e.jsxs("span",{className:"text-sm leading-relaxed",children:[l.location?.map((c,u)=>e.jsxs(z.Fragment,{children:[c,e.jsx("br",{})]},u)),l.pincode&&e.jsxs("span",{children:["PIN: ",l.pincode]})]})]}),(l.phones?.length||l.phone)&&e.jsxs("div",{className:"flex items-start gap-2 mt-1",children:[e.jsx(se,{className:"mt-0.5 text-md","aria-hidden":"true"}),e.jsx(F,{values:l.phones,fallback:l.phone,kind:"phone",className:"text-sm"})]}),(l.emails?.length||l.email)&&e.jsxs("div",{className:"flex items-start gap-2 mt-1",children:[e.jsx(T,{className:"mt-0.5 text-md","aria-hidden":"true"}),e.jsx(F,{values:l.emails,fallback:l.email,kind:"email",className:"text-sm"})]})]})]})},ye=()=>{const{opId:s}=D();
2K([ae(s),"Section 8 Company"].filter(Boolean).join(" — "));const[t,n]=o.useState(null),[l,c]=o.useState(!0),[u,h]=o.useState({}),[m,a]=o.useState({}),[p,f]=o.useState({}),[d,r]=o.useState({});return o.useEffect(()=>{(async()=>{c(!0);try{const[b,S,w,i,x]=await Promise.all([O(),W(),G(),H(s),U()]);h(S||{}),a(w||{}),f(i||{}),r(x||{});const j=b?.find(y=>y.key==="sec8")?.submenu||[],N=j.find(y=>y.path?.split("/").filter(Boolean).pop()?.toLowerCase()===s?.toLowerCase());N?n(N.key):j.length>0?n(j[0].key):n("sec8-1")}catch(b){console.error("API Fetch Error:",b),n("sec8-1")}finally{c(!1)}})()},[s]),l?e.jsx("div",{className:"p-10 text-center",children:"Loading Region Data..."}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 py-2 px-4 lg:px-15",children:[e.jsx("div",{className:"lg:col-span-2",children:t&&u[t]&&e.jsx(ne,{data:u[t]})}),e.jsx("div",{className:"lg:col-span-1",children:t&&m[t]&&e.jsx(oe,{data:m[t]})})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-7 gap-6 py-6 px-4 lg:px-15",children:[e.jsx("div",{className:"md:col-span-2",children:t&&p[t]&&e.jsx(ie,{menu:p[t],basePath:`/sec8/${s}`})}),e.jsx("div",{className:"md:col-span-5",children:t&&d[t]&&e.jsx(ce,{note:d[t]})})]}),e.jsx("div",{className:"max-w-12xl px-2 sm:px-4 md:px-18 lg:px-15",children:e.jsx(V,{})}),e.jsx(le,{})]})};export{ye 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.