1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{88350:function(e,l,s){Promise.resolve().then(s.bind(s,16117))},16117:function(e,l,s){"use strict";s.r(l),s.d(l,{default:function(){return m}});var a=s(57437),t=s(23135),n=s(89038),d=s(9482),r=s(1377),i=s(83464),c=s(2265),o=s(69064),u=s(30119);function m(){var e;let{data:l,error:s,setSize:m,isValidating:h}=(0,u.ZP)((e,l)=>l&&!l.length?null:"/api/getblogs?skip=".concat(10*e,"&limit=").concat(10),e=>i.Z.get(e).then(e=>e.data),{revalidateOnFocus:!1}),x=l?l.flat():[],f=l&&(null===(e=l[l.length-1])||void 0===e?void 0:e.length)===10,g=(0,c.useCallback)(()=>{f&&!h&&m(e=>e+1)},[f,h,m]);return s&&(o.ZP.dismiss(),o.ZP.error("Failed to load blogs")),(0,c.useEffect)(()=>{let e=new IntersectionObserver(e=>{e[0].isIntersecting&&g()},{rootMargin:"100px"}),l=document.getElementById("target");return l&&e.observe(l),()=>e.disconnect()},[g]),(0,c.useEffect)(()=>{window.scrollTo(0,0)},[]),(0,a.jsxs)("div",{className:"min-h-screen md:p-10 p-5",children:[(0,a.jsx)("h1",{className:"font-bold text-center",children:"Blogs"}),(0,a.jsxs)("div",{className:"flex-col-reverse md:flex-row flex gap-10 justify-evenly md:my-10 my-5",children:[(0,a.jsx)("div",{className:"flex flex-wrap gap-10 w-full max-h-min",children:x.length>0?x.map((e,l)=>(0,a.jsx)(t.Z,{props:e,index:l},e._id)):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.X,{className:"md:max-w-80 h-96 w-full rounded-xl"}),(0,a.jsx)(d.X,{className:"md:max-w-80 h-96 w-full rounded-xl"}),(0,a.jsx)(d.X,{className:"md:max-w-80 h-96 w-full rounded-xl"}),(0,a.jsx)(d.X,{className:"md:max-w-80 h-96 w-full rounded-xl"}),(0,a.jsx)(d.X,{className:"md:max-w-80 h-96 w-full rounded-xl"}),(0,a.jsx)(d.X,{className:"md:max-w-80 h-96 w-full rounded-xl"})]})}),(0,a.jsx)(n.Z,{})]}),f&&(0,a.jsx)("div",{id:"target",className:"text-center mt-4",children:(0,a.jsx)(r.c,{color:"secondary",size:"lg"})})]})}},23135:function(e,l,s){"use strict";s.d(l,{Z:function(){return i}});var a=s(57437),t=s(25922),n=s(33145),d=s(27648),r=s(99376);function i(e){var l,s;let{props:i,index:c}=e;(0,r.useRouter)();let{theme:o}=(0,t.F)();return(0,a.jsx)("div",{className:"md:max-w-80 max-h-max flex shadow-lg hover:shadow-xl transition-shadow duration-300 rounded-lg",children:(0,a.jsx)(d.default,{href:"/blog/".concat(null==i?void 0:i.slug),className:"text-inherit ",children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"w-full aspect-[16/9] bg-gray-200 rounded-t-lg",children:i.thumbnail&&(0,a.jsx)(n.default,{className:"rounded-t-lg mb-4 w-full aspect-[16/9] object-cover",src:i.thumbnail,width:200,height:200,alt:i.title})}),(0,a.jsxs)("div",{className:"p-3",children:[(0,a.jsxs)("div",{className:"text-lg font-bold",children:[null==i?void 0:i.title.slice(0,55),(null==i?void 0:i.title.length)>55?"...":""]}),(0,a.jsxs)("div",{className:"text-gray-500 dark:text-gray-400",children:[null==i?void 0:null===(l=i.description)||void 0===l?void 0:l.slice(0,150),(null==i?void 0:null===(s=i.description)||void 0===s?void 0:s.length)>150?"...":""]})]})]})})})}s(2265)},89038:function(e,l,s){"use strict";s.d(l,{Z:function(){return f}});var a=s(57437),t=s(91617),n=s(99491),d=s(65807),r=s(9482),i=s(83464),c=s(25922),o=s(27648),u=s(2265),m=s(69064),h=s(22744),x=s(85118);function f(e){let{isFixed:l=!1}=e,{theme:s}=(0,c.F)(),[f,g]=(0,u.useState)(!1);(0,u.useEffect)(()=>{g(!0)},[]);let v=e=>i.Z.get(e).then(e=>e.data),{data:w=[],error:j,isLoading:p}=(0,x.ZP)("/api/getTags",v,{revalidateOnFocus:!1,dedupingInterval:5e3});console.log("Theme",s),j&&(m.ZP.dismiss(),m.ZP.error("Failed to load tags"));let[N,b]=(0,u.useState)(""),[X,y]=(0,u.useState)(N);(0,u.useEffect)(()=>{let e=setTimeout(()=>{y(N)},1e3);return()=>clearTimeout(e)},[N]);let{data:k=[],isLoading:Z}=(0,x.ZP)(X&&X.length>1?"/api/searchTags?tag=".concat(X):null,v,{revalidateOnFocus:!1,dedupingInterval:5e3}),[E,F]=(0,u.useState)(0);return(0,u.useEffect)(()=>{F(window.innerWidth);let e=()=>{F(window.innerWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.jsxs)("div",{className:l?"hidden lg:block md:w-1/5 justify-center pt-10 h-full":"md:w-1/3 justify-center md:sticky md:top-20 pb-5 md:h-full overflow-auto",children:[(0,a.jsx)(n.Y,{className:" mb-4",placeholder:"Type to search tags",onChange:e=>b(e.target.value),size:"md",startContent:(0,a.jsx)(h.vU7,{size:18}),type:"search",variant:"faded",radius:"lg",autoComplete:"off"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[Z?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.X,{className:"h-8 w-24 rounded-full"}),(0,a.jsx)(r.X,{className:"h-8 w-28 rounded-full"}),(0,a.jsx)(r.X,{className:"h-8 w-36 rounded-full"}),(0,a.jsx)(r.X,{className:"h-8 w-32 rounded-full"}),(0,a.jsx)(r.X,{className:"h-8 w-24 rounded-full"}),(0,a.jsx)(r.X,{className:"h-8 w-24 rounded-full"}),(0,a.jsx)(r.X,{className:"h-8 w-36 rounded-full"})]}):null==k?void 0:k.map(e=>(0,a.jsx)(o.default,{href:"/tags/".concat(null==e?void 0:e.trim().replace(/\s/g,"-").replace(/[^\w-]/g,"")),children:(0,a.jsx)(d.z,{className:"",color:"warning",variant:"bordered",size:"lg",children:(null==e?void 0:e.charAt(0).toUpperCase())+(null==e?void 0:e.slice(1).replaceAll("-"," "))})},e)),(null==k?void 0:k.length)||Z?null:w.length>0?null==w?void 0:w.slice(0,E<800?15:w.length).map(e=>(0,a.jsx)(o.default,{href:"/tags/".concat(null==e?void 0:e.trim().replace(/\s/g,"-").replace(/[^\w-]/g,"")),children:(0,a.jsx)(d.z,{className:"",color:"warning",variant:"bordered",size:"lg",children:(null==e?void 0:e.charAt(0).toUpperCase())+(null==e?void 0:e.slice(1).replaceAll("-"," "))})},e)):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.X,{className:"h-8 w-24 rounded-full"}),(0,a.jsx)(r.X,{className:"h-8 w-28 rounded-full"}),(0,a.jsx)(r.X,{className:"h-8 w-36 rounded-full"}),(0,a.jsx)(r.X,{className:"h-8 w-32 rounded-full"}),(0,a.jsx)(r.X,{className:"h-8 w-24 rounded-full"}),(0,a.jsx)(r.X,{className:"h-8 w-24 rounded-full"}),(0,a.jsx)(r.X,{className:"h-8 w-36 rounded-full"})]})]}),(0,a.jsx)("div",{"data-color-mode":s,className:"pt-10 rounded-lg hidden md:block",children:f&&(0,a.jsx)(t.a,{className:"w-full block",client:"ca-pub-2011777606430318",slot:"dark"===s?"4531196044":"9351005390",style:{display:"block",backgroundColor:"dark"===s?"#121212":"transparent"},format:"autorelaxed"},"adsense-".concat(s))})]})}}},function(e){e.O(0,[6051,7223,3393,2972,3145,5118,4246,7909,2971,2117,1744],function(){return e(e.s=88350)}),_N_E=e.O()}]);
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.