{"version":3,"file":"Lab.DhVCVWPu.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/QBnXhI44MWxCLJoBsulW/gFj6E9E8qM0eJ2C0H5nL/Lab.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";/**\n * Laboratories & Digital Classrooms — N.S. Agricultural College\n * Part of Infrastructure & Facilities. Styled to match nsagri.ac.in.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1160\n */const url=(id,w=1200)=>`https://drive.google.com/thumbnail?id=${id}&sz=w${w}`;const LABS=[{dept:\"Agronomy\",imgs:[\"1hp_Xk04_m4GqaqwxgSJ0XrT0j4rNhgGD\",\"1kQDC6LVqWjDdT-Llrv-Xk_VNfi47oazn\",\"1b7ohYCjI9jrSAqmlYQSCx3BQYfS3vhzf\"]},{dept:\"Genetics & Plant Breeding\",imgs:[\"1m4aCYKLAeIgIsHonJJkfbjgu3F3hpUJG\",\"1UDVZSK64mQ26cYgEFQ_aSnHCIPUnQP2u\"]},{dept:\"Soil Science & Agricultural Chemistry\",imgs:[\"1VtQ0yqJiL5eoRfuWdNjn1uX3cjnt2vM9\",\"1aIXQM87X5uaLY4gB5wrQvBwEqZjpACpL\",\"1TFWDDlg4uyy4iemmvjdmGI8-99AAibh0\",\"1UXKgdABI2wMvFKk4Kl6LbGpdx1UROvKF\"]},{dept:\"Entomology\",imgs:[\"1zZ2EheuJYhNEJhNOrjy-4GpHdMwnKKsZ\",\"18Ylzm9Otk5q2aDwZUcSV4Y8dho1yOYAT\",\"1u6AJwCwpUaoVoDB9qkd8Oz_SSURYWYlH\",\"1V8MXU0B2W2tWVTw2zI5rUmyr4F1DIuYu\"]},{dept:\"Crop Physiology\",imgs:[\"1cdQNck5-6H2BCctTfZfenTzJ4_W_nlV1\",\"1nOtiMNpn6xZtwC7i2gsUU8cdWdQLtJ5f\",\"1PZykeh-ZhloaRiIbB9CNDRrA--c3Ie_E\"]},{dept:\"Plant Pathology\",imgs:[\"12-BuITJVlz0kacj_iFSpoy5p-umuPGqQ\",\"17eKhCGw8iRsBQPhmm5oyKo4gc57FZTzj\"]},{dept:\"Horticulture\",imgs:[\"1uZeupDUIceTyxZDFPPhm5fpVgCtuLgdn\",\"17umBG4D0OA0TEkJjxLRJia9svV98j8pM\"]},{dept:\"Agricultural Extension — Information Centre\",imgs:[\"1bUJ4lGhLusssdAIjRVi0J6I6Wmpu5CIL\",\"1M547-oNcXPh7JiKITs0ebAFv2-1rSKRd\"]},{dept:\"Microbiology & Biochemistry\",imgs:[\"1UuYcmHKvW1Z566VyyvYRV0ENeb7874pT\",\"1iOsQlHTXDC_JD_99fZwC4bR_MFPV5Eah\",\"1jU1U3NWCwtb7UyKSV0oYtB7dzt_vxwfv\"]},{dept:\"Agricultural Engineering\",imgs:[\"1znGIIb0SgcSDIdvG-DtqlHZjkvgAzATz\",\"1c412LuHzoADFbJLjrkjqrHnF_YqyNoQI\"]},{dept:\"Computer Laboratory\",imgs:[\"13Rntccjd63iAp67cDSLFtfpw-Cs-8HO9\",\"1tgdHdJqxWflcx2b-cscUi3Yy3wKQJFlW\"]}];const CLASSROOMS=[\"1LV3kfdluB6i1ZPv27njIP0tAK7HBOppC\",\"16McCwoCw7f44Ng09zB6k5gG_QPDTPNq7\",\"1qmUIivUogpkwhfAmtyZ4S5ScGot3hzsq\",\"1OmoZISvAnKMqinTbHvyE0ZfWMabxIkk7\",\"1Bo6Z39EmIe5dtRykzX67-qFSSJre3Vgy\",\"1z8q20xTebBbZxGgWDd7VnPc-Jv8D2kUL\",\"1ljBzBC0bZ4THjD_4Ff2qo8EOJ7jvNqwE\",\"1ElWdbro0vu05Rt8vEZCrsyR_dhoN9xGC\"];const CSS=`\n@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');\n.ix { font-family:'Inter','Segoe UI',system-ui,sans-serif; color:#161C2D; background:#fff; width:100%; -webkit-font-smoothing:antialiased; }\n.ix * { box-sizing:border-box; }\n.ix-wrap { max-width:1160px; margin:0 auto; padding:0 24px; }\n.ix-header { text-align:center; padding:90px 0 36px; }\n.ix-kicker { display:inline-block; font-size:13px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:#018030; background:#EAF6EE; border-radius:999px; padding:8px 20px; margin:0 0 22px; }\n.ix-header h2 { font-size:clamp(34px,4.8vw,54px); font-weight:700; line-height:1.1; margin:0 0 18px; letter-spacing:-.02em; }\n.ix-header h2 span { color:#14AD4D; }\n.ix-lede { max-width:760px; margin:0 auto; font-size:16.5px; line-height:1.75; color:#4F4D55; }\n.ix-facts { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; padding:14px 0 8px; }\n@media (max-width:860px){ .ix-facts{ grid-template-columns:repeat(2,1fr);} }\n.ix-fact { background:#F8F8F8; border-radius:16px; padding:22px 16px; text-align:center; }\n.ix-fact b { display:block; font-size:clamp(22px,3vw,32px); font-weight:800; color:#018030; line-height:1.15; margin-bottom:6px; }\n.ix-fact span { font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#4F4D55; }\n.ix-body { padding:52px 0 60px; }\n.ix-intro { font-size:16px; line-height:1.85; color:#3e4c39; margin:0 0 16px; max-width:900px; }\n.ix-lab { margin-top:30px; }\n.ix-lab-head { display:flex; align-items:center; gap:10px; margin-bottom:2px; }\n.ix-lab-dot { width:9px; height:9px; border-radius:50%; background:#14AD4D; flex:none; }\n.ix-lab h4 { margin:0; font-size:17px; font-weight:700; color:#1f5130; }\n.ix-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:14px; }\n@media (max-width:900px){ .ix-grid{ grid-template-columns:repeat(3,1fr);} }\n@media (max-width:600px){ .ix-grid{ grid-template-columns:repeat(2,1fr); gap:9px;} }\n.ix-tile { position:relative; border-radius:11px; overflow:hidden; aspect-ratio:4/3; background:#EDEFEA; cursor:zoom-in; margin:0; }\n.ix-tile img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s; }\n.ix-tile:hover img { transform:scale(1.06); }\n.ix-cap { position:absolute; left:0; right:0; bottom:0; background:linear-gradient(to top, rgba(1,60,25,.82), transparent); color:#fff; font-size:12.5px; font-weight:600; padding:20px 12px 9px; }\n.ix-tblwrap { overflow-x:auto; margin:16px 0; -webkit-overflow-scrolling:touch; border-radius:14px; border:1px solid #E9E9EC; background:#fff; }\n.ix-tbl { width:100%; border-collapse:collapse; font-size:14px; min-width:520px; }\n.ix-tbl th { background:#018030; color:#fff; font-weight:700; text-align:left; padding:11px 15px; font-size:12px; letter-spacing:.05em; text-transform:uppercase; }\n.ix-tbl td { padding:10px 15px; border-top:1px solid #EFEFEF; color:#3e4c39; }\n.ix-tbl tr:nth-child(even) td { background:#FAFBF8; }\n.ix-tbl .r { text-align:right; white-space:nowrap; font-weight:600; color:#1f5130; }\n.ix-libfacts { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:6px 0 18px; }\n@media (max-width:640px){ .ix-libfacts{ grid-template-columns:repeat(2,1fr);} }\n.ix-libfact { background:#EAF6EE; border-radius:12px; padding:16px; text-align:center; }\n.ix-libfact b { display:block; font-size:22px; font-weight:800; color:#018030; }\n.ix-libfact span { font-size:11.5px; font-weight:600; color:#4F4D55; }\n.ix-list { list-style:none; margin:6px 0 0; padding:0; }\n.ix-list li { position:relative; padding:7px 0 7px 26px; font-size:15px; line-height:1.6; color:#3e4c39; }\n.ix-list li::before { content:''; position:absolute; left:4px; top:14px; width:8px; height:8px; border-radius:50%; background:#14AD4D; }\n.ix-lb { position:fixed; inset:0; z-index:9999; background:rgba(13,22,15,.93); display:flex; align-items:center; justify-content:center; padding:4vh 4vw; }\n.ix-lb img { max-width:92vw; max-height:86vh; border-radius:10px; box-shadow:0 30px 80px rgba(0,0,0,.5); }\n.ix-lb-cap { position:absolute; bottom:20px; left:0; right:0; text-align:center; color:#fff; font-size:14px; font-weight:600; }\n.ix-lb-close { position:absolute; top:18px; right:24px; background:none; border:none; color:#fff; font-size:34px; cursor:pointer; }\n.ix-lb-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3); color:#fff; width:46px; height:46px; border-radius:50%; font-size:20px; cursor:pointer; }\n.ix-lb-nav:hover { background:#019939; }\n@media (max-width:640px){\n  .ix-wrap { padding:0 16px; }\n  .ix-header { padding:56px 0 22px; }\n  .ix-kicker { font-size:11px; padding:7px 16px; }\n  .ix-lede { font-size:15px; }\n  .ix-facts { gap:10px; } .ix-fact { padding:16px 10px; } .ix-fact span { font-size:10px; }\n  .ix-body { padding:34px 0 44px; } .ix-intro { font-size:15px; }\n  .ix-lb-nav { top:auto; bottom:16px; transform:none; width:42px; height:42px; }\n  .ix-lb-nav.prev { left:calc(50% - 52px);} .ix-lb-nav.next { right:calc(50% - 52px);}\n}\n`;export default function Laboratories(){const[lb,setLb]=React.useState(null);const openLb=(list,i)=>setLb({list,i});const step=dir=>setLb(s=>s?{...s,i:(s.i+dir+s.list.length)%s.list.length}:s);React.useEffect(()=>{const k=e=>{if(!lb)return;if(e.key===\"Escape\")setLb(null);if(e.key===\"ArrowLeft\")step(-1);if(e.key===\"ArrowRight\")step(1);};window.addEventListener(\"keydown\",k);return()=>window.removeEventListener(\"keydown\",k);},[lb]);const Gallery=({items})=>/*#__PURE__*/_jsx(\"div\",{className:\"ix-grid\",children:items.map((im,i)=>/*#__PURE__*/_jsxs(\"figure\",{className:\"ix-tile\",onClick:()=>openLb(items,i),children:[/*#__PURE__*/_jsx(\"img\",{loading:\"lazy\",src:url(im.id),alt:im.cap||\"\"}),im.cap&&/*#__PURE__*/_jsx(\"figcaption\",{className:\"ix-cap\",children:im.cap})]},im.id))});return /*#__PURE__*/_jsxs(\"section\",{className:\"ix\",children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsxs(\"div\",{className:\"ix-wrap\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ix-header\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ix-kicker\",children:\"Infrastructure\"}),/*#__PURE__*/_jsxs(\"h2\",{children:[\"Laboratories & \",/*#__PURE__*/_jsx(\"span\",{children:\"Digital Classrooms\"})]}),/*#__PURE__*/_jsx(\"p\",{className:\"ix-lede\",children:\"Fourteen well-equipped laboratories under various disciplines equip students with practical knowledge and exposure to modern equipment, supported by digital and smart classrooms and examination halls.\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ix-body\",children:[LABS.map(l=>/*#__PURE__*/_jsxs(\"div\",{className:\"ix-lab\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ix-lab-head\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ix-lab-dot\"}),/*#__PURE__*/_jsx(\"h4\",{children:l.dept})]}),/*#__PURE__*/_jsx(Gallery,{items:l.imgs.map(id=>({id,cap:l.dept}))})]},l.dept)),/*#__PURE__*/_jsxs(\"div\",{className:\"ix-lab\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ix-lab-head\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ix-lab-dot\"}),/*#__PURE__*/_jsx(\"h4\",{children:\"Classrooms, Smart Classroom & Examination Halls\"})]}),/*#__PURE__*/_jsx(Gallery,{items:CLASSROOMS.map(id=>({id,cap:\"Classrooms & Exam Halls\"}))})]})]})]}),lb&&/*#__PURE__*/_jsxs(\"div\",{className:\"ix-lb\",onClick:e=>e.target===e.currentTarget&&setLb(null),children:[/*#__PURE__*/_jsx(\"button\",{className:\"ix-lb-close\",onClick:()=>setLb(null),\"aria-label\":\"Close\",children:\"\\xd7\"}),/*#__PURE__*/_jsx(\"button\",{className:\"ix-lb-nav prev\",onClick:()=>step(-1),\"aria-label\":\"Previous\",children:\"‹\"}),/*#__PURE__*/_jsx(\"img\",{src:url(lb.list[lb.i].id,2e3),alt:lb.list[lb.i].cap||\"\"}),lb.list[lb.i].cap&&/*#__PURE__*/_jsx(\"div\",{className:\"ix-lb-cap\",children:lb.list[lb.i].cap}),/*#__PURE__*/_jsx(\"button\",{className:\"ix-lb-nav next\",onClick:()=>step(1),\"aria-label\":\"Next\",children:\"›\"})]})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Laboratories\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Lab.map"],"mappings":"8IAiEE,SAAwB,GAAc,CAAC,GAAK,CAAC,EAAG,GAAOA,EAAe,IAAI,EAAQ,GAAQ,EAAK,IAAI,EAAM,CAAC,OAAK,GAAC,CAAC,EAAQ,EAAK,GAAK,EAAM,GAAG,GAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAI,EAAE,KAAK,QAAQ,EAAE,KAAK,MAAM,CAAG,EAAE,MAAoB,CAAC,IAAM,EAAE,GAAG,CAAK,IAAa,EAAE,MAAM,UAAS,EAAM,IAAI,EAAK,EAAE,MAAM,aAAY,EAAK,EAAE,EAAK,EAAE,MAAM,cAAa,EAAK,CAAC,EAAE,EAAuC,OAArC,EAAO,iBAAiB,UAAU,CAAC,MAAY,EAAO,oBAAoB,UAAU,CAAC,CAAE,EAAE,CAAC,CAAE,CAAC,EAAE,IAAM,GAAS,CAAC,WAAsB,EAAK,MAAM,CAAC,UAAU,UAAU,SAAS,EAAM,KAAK,EAAG,IAAiB,EAAM,SAAS,CAAC,UAAU,UAAU,YAAY,EAAO,EAAM,CAAC,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,QAAQ,OAAO,IAAI,EAAI,EAAG,EAAE,EAAE,IAAI,EAAG,KAAK,EAAE,CAAC,EAAE,EAAG,KAAkB,EAAK,aAAa,CAAC,UAAU,SAAS,SAAS,EAAG,GAAG,CAAC,CAAC,CAAC,EAAE,EAAG,EAAE,CAAC,CAAC,CAAC,EAAE,OAAoB,EAAM,UAAU,CAAC,UAAU,KAAK,SAAS,CAAc,EAAK,QA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