1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,389,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(74080);e.s(["Modal",0,({isOpen:e,onClose:r,title:l,children:i,width:n="max-w-3xl",footerBtnText:o,zIndex:d,showFooter:c=!1,onConfirm:x})=>{let[h,m]=(0,a.useState)(!1);return((0,a.useEffect)(()=>(e?(m(!0),document.body.style.overflow="hidden"):(m(!1),document.body.style.overflow="unset"),()=>{document.body.style.overflow="unset"}),[e]),(0,a.useEffect)(()=>{let t=t=>{"Escape"===t.key&&e&&r()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e,r]),e||h)?s.default.createPortal((0,t.jsxs)("div",{className:`fixed inset-0 bg-opacity-50 backdrop-blur-sm flex items-center justify-center p-4 transition-all duration-300 ${!0===d?"z-[9999]":"z-50"} ${h?"animate-fadeIn":"opacity-0"}`,children:[(0,t.jsxs)("div",{className:`bg-white rounded-[7px] shadow-2xl ${n} w-full max-h-[90vh] overflow-hidden ${h?"animate-slideUp":"opacity-0 translate-y-5"}`,onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-6 py-3 border-b border-gray-200",children:[(0,t.jsx)("h2",{className:"md:text-2xl text-base font-bold text-black",children:l}),(0,t.jsx)("button",{onClick:r,className:"text-black hover:text-black transition-colors duration-200","aria-label":"Close modal",children:(0,t.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,t.jsx)("div",{className:"p-3 overflow-y-auto max-h-[calc(90vh-140px)]",children:i}),c&&(0,t.jsxs)("div",{className:"flex gap-3 p-6 border-t border-gray-200",children:[(0,t.jsx)("button",{onClick:r,className:"flex-1 bg-gray-200 text-gray-700 px-4 py-2 rounded-[7px] font-medium hover:bg-gray-300 transition-colors duration-200",children:"Cancel"}),(0,t.jsx)("button",{onClick:()=>{x?.(),r()},className:"flex-1 bg-[#186737] text-white px-4 py-2 rounded-[7px] font-medium hover:shadow-lg transform hover:scale-105 transition-all duration-200",children:o??"Confirm"})]})]}),(0,t.jsx)("style",{children:` 2 @keyframes fadeIn { 3 from { opacity: 0; } 4 to { opacity: 1; } 5 } 6 @keyframes slideUp { 7 from { opacity: 0; transform: translateY(20px); } 8 to { opacity: 1; transform: translateY(0); } 9 } 10 .animate-fadeIn { animation: fadeIn 0.2s ease-out; } 11 .animate-slideUp { animation: slideUp 0.3s ease-out; } 12 `})]}),document.body):null}])},86536,e=>{"use strict";let t=(0,e.i(75254).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],86536)},3116,e=>{"use strict";let t=(0,e.i(75254).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,t],3116)},25652,e=>{"use strict";let t=(0,e.i(75254).default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);e.s(["TrendingUp",0,t],25652)},87316,e=>{"use strict";let t=(0,e.i(75254).default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["Calendar",0,t],87316)},62031,e=>{"use strict";let t=(0,e.i(75254).default)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);e.s(["Share2",0,t],62031)},83157,51348,e=>{"use strict";var t=e.i(75254);let a=(0,t.default)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);e.s(["Facebook",0,a],83157);let s=(0,t.default)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);e.s(["Linkedin",0,s],51348)},25634,10980,e=>{"use strict";var t=e.i(43476);let a=(0,e.i(75254).default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);e.s(["BookOpen",0,a],10980);var s=e.i(87316),r=e.i(63059),l=e.i(3116),i=e.i(86536),n=e.i(90597),o=e.i(62031),d=e.i(25652),c=e.i(84614),x=e.i(22016),h=e.i(71645),m=e.i(28800),g=e.i(64766),u=e.i(61208),p=e.i(57688);let f=e=>{if(!e)return"";try{if("string"==typeof e){let t=JSON.parse(e);if(Array.isArray(t))return t.map(e=>e?.value||"").join(" ").replace(/\\u2014/g,"â").replace(/\\"/g,'"').replace(/\s+/g," ").trim()}if(Array.isArray(e))return e.map(e=>e?.value||"").join(" ").replace(/\s+/g," ").trim();return String(e)}catch{return String(e).replace(/^\[\{"value":"?/g,"").replace(/"}\]$/g,"").replace(/\\"/g,'"').replace(/\s+/g," ").trim()}},y=e=>e?.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim()??"",b=e=>e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e??0),A=({item:e})=>{var a,A;let[v,j]=(0,h.useState)(!1),[w,k]=(0,h.useState)(e.likes_count??0),[N,C]=(0,h.useState)(e.shares_count??0),[S,L]=(0,h.useState)(e.views_count??0),[z,B]=(0,h.useState)(!1),[M,R]=(0,h.useState)(!1),[_,E]=(0,h.useState)(!1),[U,T]=(0,h.useState)(!1),$=e.thumbnail||e.mobile_banner,I=e.thumbnail_alt||e.title,O=`/blog/${e.url?.replace(/^\//,"")??""}`,q=async()=>{try{let t=await (0,m.makeApiRequest)(g.apiUrls.BLOG_SINGLE(e.id));k(t.likes_count??w),C(t.shares_count??N),L(t.views_count??S)}catch{}},D=async t=>{if(t.preventDefault(),t.stopPropagation(),_)return;let a=!v;j(a),k(e=>a?e+1:e-1),E(!0),await (0,m.makeApiRequest)(g.apiUrls.BLOG_LIKE(e.id),{method:"POST"}),E(!1),q()},P=async t=>{t.preventDefault(),t.stopPropagation(),R(!0),z||(B(!0),C(e=>e+1),T(!0),await (0,m.makeApiRequest)(g.apiUrls.BLOG_SHARE(e.id),{method:"POST"}),T(!1),q(),setTimeout(()=>B(!1),2e3))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(x.default,{href:O,onClick:()=>{(0,m.makeApiRequest)(g.apiUrls.BLOG_VIEW(e.id),{method:"POST"}).catch(()=>{})},className:"group relative bg-white rounded-3xl overflow-hidden flex flex-col transition-all duration-300 hover:-translate-y-2",style:{boxShadow:"0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05)"},children:[(0,t.jsxs)("div",{className:"relative overflow-hidden bg-gray-100",style:{aspectRatio:"16/10"},children:[$?(0,t.jsx)(p.default,{src:$,alt:I,fill:!0,loading:"lazy",className:"object-cover transition-transform duration-500 group-hover:scale-110",sizes:"(max-width: 640px) 100v
12w, (max-width: 1024px) 50vw, 25vw"}):(0,t.jsx)("div",{className:"w-full h-full bg-gray-200"}),(0,t.jsx)("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300",style:{background:"linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%)"}}),!!e.is_featured&&(0,t.jsxs)("div",{className:"absolute top-3 left-3 z-10 flex items-center gap-1.5 px-3 py-1.5 rounded-full text-white text-xs font-bold shadow-lg",style:{background:"linear-gradient(135deg, #f43f5e, #ec4899)"},children:[(0,t.jsx)(d.TrendingUp,{className:"w-3 h-3"}),"Trending"]}),e.category?.name&&(0,t.jsx)("div",{className:"absolute top-3 right-3 z-10 px-2.5 py-1 rounded-full text-white text-xs font-semibold bg-emerald-600",children:e.category.name}),(0,t.jsxs)("div",{className:"absolute bottom-3 right-3 z-10 flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold text-gray-800 backdrop-blur-md",style:{background:"rgba(255,255,255,0.88)"},children:[(0,t.jsx)(l.Clock,{className:"w-3 h-3 text-emerald-600"}),(a=e.description)?Math.ceil(y(f(a)).split(/\s+/).filter(Boolean).length/200)||1:3," min"]})]}),(0,t.jsxs)("div",{className:"p-5 flex flex-col flex-grow",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-3 flex-wrap",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[(0,t.jsx)("div",{className:"w-5 h-5 rounded-full bg-emerald-100 flex items-center justify-center",children:(0,t.jsx)(c.User,{className:"w-3 h-3 text-emerald-600"})}),(0,t.jsx)("span",{className:"font-semibold text-gray-700",children:e.author_name})]}),e.blog_date&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"w-1 h-1 rounded-full bg-gray-300"}),(0,t.jsxs)("div",{className:"flex items-center gap-1 text-xs text-gray-500",children:[(0,t.jsx)(s.Calendar,{className:"w-3 h-3 text-emerald-500"}),(e=>{if(!e)return"";let t=new Date(e);if(isNaN(t.getTime()))return e;let a=Math.floor((Date.now()-t.getTime())/864e5);return 0===a?"Today":1===a?"Yesterday":a<7?`${a} days ago`:a<30?`${Math.floor(a/7)}w ago`:t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})(e.blog_date)]})]})]}),(0,t.jsx)("h3",{className:"text-gray-900 text-[17px] font-extrabold line-clamp-2 mb-2.5 leading-snug tracking-tight group-hover:text-emerald-700 transition-colors duration-300",children:e.title}),(0,t.jsx)("p",{className:"text-gray-500 text-sm leading-relaxed line-clamp-2 mb-4 flex-grow",children:(A=y(f(e.description)))?A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/ /g," "):""}),(0,t.jsx)("div",{className:"h-px mb-4",style:{background:"linear-gradient(to right, transparent, #e5e7eb, transparent)"}}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-gray-400 text-xs font-semibold",children:[(0,t.jsx)(i.Eye,{className:"w-4 h-4"}),b(S)]}),(0,t.jsxs)("button",{onClick:P,disabled:U||z,className:`flex items-center gap-1.5 text-xs font-semibold transition-colors active:scale-90 ${z?"text-blue-500":"text-gray-400 hover:text-blue-500"}`,children:[U?(0,t.jsx)("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):(0,t.jsx)(o.Share2,{className:"w-4 h-4"}),b(N)]})]}),(0,t.jsxs)("button",{onClick:D,disabled:_,className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-bold transition-all duration-300 active:scale-110 ${v?"bg-red-50 text-red-500":"bg-gray-50 text-gray-400 hover:text-red-500 hover:bg-red-50"}`,children:[_?(0,t.jsx)("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):(0,t.jsx)(n.Heart,{className:`w-4 h-4 transition-all ${v?"fill-red-500 text-red-500":""}`}),b(w)]})]}),(0,t.jsxs)("div",{className:"group/btn mt-4 w-full py-2.5 bg-linear-to-r from-green-600 to-green-700 text-white rounded-[7px] font-semibold flex items-center justify-center gap-2 shadow-md",children:[(0,t.jsx)("span",{children:"Read Article"}),(0,t.jsx)(r.ChevronRight,{className:"w-4 h-4 transition-transform duration-300 group-hover:translate-x-1"})]})]})]}),(0,t.jsx)(u.ShareModal,{isOpen:M,onClose:()=>R(!1),url:`${window.location.origin}${O}`,title:e.title})]})};e.s(["BlogCard",0,A,"BlogsCard",0,({showAll:e=!1,blogs:s=[]})=>s.length?(0,t.jsxs)("section",{className:"md:my-0 py-6 md:py-0 px-4 sm:px-6 lg:px-8 global-container md:block hiddden",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-10 flex-wrap gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-gray-900 font-extrabold heading-font-size tracking-tight leading-none",children:"Latest Blogs & Insights"}),(0,t.jsx)("p",{className:"text-gray-400 text-sm mt-1 font-medium",children:"Tips, trends & stories curated for you"})]}),!e&&(0,t.jsxs)(x.default,{href:"/blog",className:"flex items-center gap-2 px-6 py-3 rounded-[7px] font-bold text-sm border-2 border-green-700 text-green-700 hover:bg-green-800 hover:text-white transition-all duration-300",children:[(0,t.jsx)(a,{className:"w-4 h-4"}),"View All Posts",(0,t.jsx)(r.ChevronRight,{className:"w-4 h-4"})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 ga
12p-6",children:s.map(e=>(0,t.jsx)(A,{item:e},e.id))})]}):null],25634)},5821,e=>{e.q("/_next/static/media/Blog Banner 1920 x 500.25s85hf_vxm-6.webp")},4546,e=>{"use strict";var t=e.i(43476);let a={src:e.i(5821).default,width:8e3,height:2083,blurWidth:8,blurHeight:2,blurDataURL:"data:image/webp;base64,UklGRrAAAABXRUJQVlA4TKQAAAAvB0AAAM1VICICHgggAQAAAABgGwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYDAAYbNIPAADAAwEkAAAAADj/tgQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAxjReyAgNQAAAADnX4d+AAAQAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAoAAgKzImDqvKFQvKzvya9t5wHfkA8ZmeGWWAg=="};var s=e.i(25634),r=e.i(73375),l=e.i(63059),i=e.i(94351),n=e.i(57688),o=e.i(22016),d=e.i(71645);function c({category:e}){let a=(0,d.useRef)(null),[i,n]=(0,d.useState)(!1),[x,h]=(0,d.useState)(!1),m=()=>{let e=a.current;e&&(n(e.scrollLeft>4),h(e.scrollLeft+e.clientWidth<e.scrollWidth-4))};(0,d.useEffect)(()=>{m();let e=a.current;return e?.addEventListener("scroll",m,{passive:!0}),window.addEventListener("resize",m),()=>{e?.removeEventListener("scroll",m),window.removeEventListener("resize",m)}},[e.blogs]);let g=e=>{let t=a.current;if(!t)return;let s=t.querySelector("[data-card]")?.offsetWidth??300;t.scrollBy({left:"left"===e?-(2*(s+24)):(s+24)*2,behavior:"smooth"})};return(0,t.jsxs)("section",{className:"mb-12",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-5 px-4 sm:px-6 lg:px-8 global-container",children:[(0,t.jsxs)("h2",{className:"flex items-center gap-2.5 text-xl sm:text-2xl font-extrabold text-gray-900 tracking-tight",children:[(0,t.jsx)("span",{className:"w-8 h-8 rounded-lg bg-[#186737] flex items-center justify-center shrink-0",children:(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M12 2L2 7l10 5 10-5-10-5z"}),(0,t.jsx)("path",{d:"M2 17l10 5 10-5"}),(0,t.jsx)("path",{d:"M2 12l10 5 10-5"})]})}),e.name]}),(e?.blogs?.length??0)>4&&(0,t.jsxs)(o.default,{href:`/blog/category/${e.url?.url??""}`,className:"flex items-center gap-1.5 px-4 py-2 rounded-full border border-[#186737] text-[#186737] text-sm font-semibold hover:bg-[#186737] hover:text-white transition-all",children:["Browse Category ",(0,t.jsx)(l.ChevronRight,{size:14})]})]}),(0,t.jsxs)("div",{className:"relative",children:[i&&(0,t.jsx)("button",{onClick:()=>g("left"),className:"absolute left-[40px] top-1/2 -translate-y-1/2 z-10 w-9 h-9 rounded-full bg-white shadow-lg border border-gray-200 flex items-center justify-center text-gray-600 hover:text-[#186737] hover:border-[#186737] transition-all",children:(0,t.jsx)(r.ChevronLeft,{size:18})}),(0,t.jsx)("div",{className:"global-container",children:(0,t.jsx)("div",{ref:a,className:"flex gap-5 overflow-x-auto pb-3 scrollbar-hide scroll-smooth",style:{scrollbarWidth:"none"},children:e.blogs.map(e=>(0,t.jsx)("div",{"data-card":!0,className:"flex-shrink-0 w-[280px] sm:w-[300px] xl:w-[320px]",children:(0,t.jsx)(s.BlogCard,{item:e})},e.id))})}),x&&(0,t.jsx)("button",{onClick:()=>g("right"),className:"absolute right-[30px] top-1/2 -translate-y-1/2 z-10 w-9 h-9 rounded-full bg-white shadow-lg border border-gray-200 flex items-center justify-center text-gray-600 hover:text-[#186737] hover:border-[#186737] transition-all",children:(0,t.jsx)(l.ChevronRight,{size:18})})]})]})}e.s(["default",0,function({categories:e}){return(0,t.jsxs)("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[(0,t.jsx)("nav",{className:"bg-white border-b border-gray-100",children:(0,t.jsx)("div",{className:"global-container px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("ol",{className:"flex items-center h-10 gap-1 text-xs",children:[(0,t.jsx)("li",{children:(0,t.jsxs)(o.default,{href:"/",className:"text-gray-400 hover:text-[#186737] flex items-center gap-1 transition-colors",children:[(0,t.jsx)(i.Home,{size:11})," Home"]})}),(0,t.jsxs)("li",{className:"flex items-center",children:[(0,t.jsx)(l.ChevronRight,{size:12,className:"mx-1 text-gray-300"}),(0,t.jsx)("span",{className:"text-[#186737] font-semibold",children:"Blog"})]})]})})}),(0,t.jsx)("div",{className:"relative w-full overflow-hidden bg-gray-200",style:{aspectRatio:"1920/500"},children:(0,t.jsx)(n.default,{src:a,alt:"Blog Banner",className:"w-full h-full object-cover",priority:!0,sizes:"100vw"})}),(0,t.jsx)("main",{className:"flex-1 py-10",children:0===e.length?(0,t.jsx)("p",{className:"text-center text-gray-400 py-20",children:"No categories found."}):e.map(e=>e.blogs?.length?(0,t.jsx)(c,{category:e},e.id):null)})]})}],4546)}]);
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.