(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[731],{4940:function(e,t,l){Promise.resolve().then(l.bind(l,9386))},9386:function(e,t,l){"use strict";l.r(t);var s=l(7437),a=l(2265),r=l(4993),i=l(4131),c=l(8564),n=l(7138);t.default=()=>{let[e,t]=(0,a.useState)(null),[l,o]=(0,a.useState)(null),[d,u]=(0,a.useState)([]),[x,p]=(0,a.useState)([]);async function h(){u(await c.Z.request("SELECT * FROM achievements WHERE type = 'youtube' AND status = 'active'")),p(await c.Z.request("SELECT * FROM achievements WHERE type = 'image' AND status = 'active'"))}(0,a.useEffect)(()=>{h()},[]);let m=e=>{t(e)};return console.log(l),(0,s.jsxs)("div",{className:"bg-gradient-to-br from-[#162861] to-gray-800",children:[(0,s.jsx)(r.default,{}),(0,s.jsxs)("div",{className:"px-4 md:px-8 lg:px-[120px] py-16 mt-[80px]",children:[(0,s.jsx)("h2",{className:"text-3xl font-bold text-center text-white mb-8",children:"In The Media"}),(0,s.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 2xl:grid-cols-5 gap-3 lg:gap-6",children:null==d?void 0:d.map((e,t)=>(0,s.jsx)("div",{className:"bg-transparent rounded-xl flex flex-col items-center transition-all duration-300 transform hover:scale-105 hover:shadow-xl",children:(0,s.jsx)("iframe",{width:"100%",height:"100%",style:{borderRadius:"10px"},src:"https://www.youtube.com/embed/".concat(e.youtube_link.split("v=")[1]),title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:!0})},t))})]}),(0,s.jsx)("div",{className:"px-4 md:px-8 lg:px-[120px] py-11",children:(0,s.jsxs)("div",{className:"container",children:[(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:null==x?void 0:x.map((e,t)=>(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("img",{onClick:()=>{o(null==e?void 0:e.view_more),m("https://api.careerstudy.in/".concat(e.image))},src:"https://api.careerstudy.in/".concat(e.image),alt:"News article ".concat(t+1),className:"w-full h-full object-cover rounded-lg cursor-pointer"})},t))}),e&&(0,s.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:(0,s.jsxs)("div",{className:"max-w-3xl mx-auto relative",children:[(0,s.jsx)("img",{src:e,alt:"Enlarged news article",className:"max-w-full max-h-[90vh] rounded-xl"}),(0,s.jsx)("button",{onClick:()=>{t(null)},className:"absolute top-4 right-4 text-white text-2xl bg-black bg-opacity-50 w-8 h-8 rounded-full flex items-center justify-center",children:"\xd7"}),(0,s.jsx)("div",{className:"absolute bottom-0 left-0 right-0 flex justify-center pb-6",children:l&&""!==l.trim()&&(0,s.jsxs)(n.default,{href:l,className:"text-sm bg-gradient-to-r from-blue-400 to-purple-500 hover:from-blue-500 hover:to-purple-600 text-white font-bold px-5 py-2 rounded-full shadow-lg transform transition-all duration-300 ease-in-out flex items-center space-x-2",children:[(0,s.jsx)("span",{children:"View More"}),(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"})})]})})]})})]})}),(0,s.jsx)(i.default,{})]})}},1304:function(e,t,l){"use strict";l.d(t,{Z:function(){return s}});/**
 * @license lucide-react v0.397.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,l(8030).Z)("PhoneCall",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]])},4817:function(e,t,l){"use strict";l.d(t,{Z:function(){return s}});/**
 * @license lucide-react v0.397.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,l(8030).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},4697:function(e,t,l){"use strict";l.d(t,{Z:function(){return s}});/**
 * @license lucide-react v0.397.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,l(8030).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}},function(e){e.O(0,[48,212,278,971,23,744],function(){return e(e.s=4940)}),_N_E=e.O()}]);