PageSourceSearch

https://www.brahmakumaris.com/wisdom/_next/static/chunks/0e9bbe1aa31c5e9d.js

js brahmakumaris.com collected 2026-09-24 09:29:08 UTC 80,412 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32815,e=>{"use strict";var t=e.i(18050),r=e.i(71645),o=e.i(90597),a=e.i(79359),n=e.i(38538);function l({postId:e,title:l,slug:s,lang:i,excerpt:d,imageUrl:c,publishDate:m}){let{toggleFavorite:u,toggleReadLater:h,checkIsFavorite:x,checkIsReadLater:g}=(0,n.useSavedArticles)(),[f,p]=(0,r.useState)(!1),[b,v]=(0,r.useState)(!1),[j,y]=(0,r.useState)(!1);(0,r.useEffect)(()=>{(async()=>{let[t,r]=await Promise.all([x(e,i),g(e,i)]);p(t),v(r)})()},[e,i,x,g]);let N=async t=>{t.preventDefault(),t.stopPropagation(),y(!0),p(await u({postId:e,title:l,slug:s,lang:i,excerpt:d,imageUrl:c,publishDate:m,type:"blog"})),y(!1)},k=async t=>{t.preventDefault(),t.stopPropagation(),y(!0),v(await h({postId:e,title:l,slug:s,lang:i,excerpt:d,imageUrl:c,publishDate:m,type:"blog"})),y(!1)};return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{onClick:N,disabled:j,className:`flex items-center justify-center p-1 rounded transition-colors ${f?"text-red-500":"text-muted-foreground hover:text-red-500"}`,"aria-label":f?"Remove from favorites":"Add to favorites",title:f?"Remove from favorites":"Add to favorites",children:(0,t.jsx)(o.Heart,{className:`h-3.5 w-3.5 ${f?"fill-current":""}`})}),(0,t.jsx)("button",{onClick:k,disabled:j,className:`flex items-center justify-center p-1 rounded transition-colors ${b?"text-maroon-600 dark:text-maroon-400":"text-muted-foreground hover:text-maroon-600 dark:hover:text-maroon-400"}`,"aria-label":b?"Remove from read later":"Save for later",title:b?"Remove from read later":"Save for later",children:(0,t.jsx)(a.BookmarkPlus,{className:`h-3.5 w-3.5 ${b?"fill-current":""}`})})]})}e.s(["BlogPostCardActions",()=>l])},13493,e=>{"use strict";var t=e.i(18050),r=e.i(22016),o=e.i(87316),a=e.i(3116),n=e.i(71930),l=e.i(31343),s=e.i(32815),i=e.i(11412),d=e.i(75789);function c(e,r){if(!r||!e)return e;let o=RegExp(`(${r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi");return e.split(o).map((e,r)=>o.test(e)?(0,t.jsx)("mark",{className:"bg-maroon-200 dark:bg-maroon-800 text-inherit rounded px-0.5",children:e},r):e)}function m({blog:e,showLanguage:m=!1,priority:u=!1,searchTerm:h}){let x=(0,i.getBlogTitle)(e),g=(0,i.getBlogSlug)(e),f=(0,i.getBlogDate)(e),p=(0,i.getBlogExcerpt)(e),b=(0,i.getBlogImageUrl)(e,d.STRAPI_URL,"microHD"),v=(0,i.getBlogVideoLink)(e),j=(0,i.getBlogHasFirstVideoInDynamicZone)(e),y=(0,i.getBlogLanguage)(e),N=y?(0,i.getLanguageSlug)(y):"eng",k=y?(0,i.getLanguageName)(y):"",w=(0,i.getBlogCategories)(e)[0],C=(0,i.getBlogFullTextContent)(e),{minutes:$}=(0,i.calculateReadingTime)(C,N),S=`${$} min read`,R=`/blog/${N}/${g}`;return(0,t.jsx)("article",{className:"group h-full",children:(0,t.jsxs)(r.default,{href:R,prefetch:!1,className:"flex flex-col h-full overflow-hidden rounded-xl border border-border/50 bg-card hover:border-maroon-400/50 hover:shadow-lg hover:shadow-maroon-500/5 transition-all duration-300",children:[(0,t.jsxs)("div",{className:"relative aspect-[16/9] overflow-hidden bg-gradient-to-br from-maroon-100 to-maroon-50 dark:from-maroon-900/30 dark:to-maroon-900/20",children:[b?(0,t.jsx)("img",{src:b,alt:x,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:u?"eager":"lazy",fetchPriority:u?"high":"auto"}):(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)(n.Bookmark,{className:"h-12 w-12 text-maroon-300 dark:text-maroon-700"})}),m&&k&&(0,t.jsx)("div",{className:"absolute top-3 left-3",children:(0,t.jsx)("span",{className:"inline-flex items-center px-2.5 py-1 rounded-full text-xs font-medium bg-white/90 dark:bg-gray-900/90 text-maroon-700 dark:text-maroon-300 backdrop-blur-sm",children:k})}),w&&(0,t.jsx)("div",{className:"absolute top-3 right-3",children:(0,t.jsx)("span",{className:"inline-flex items-center px-2.5 py-1 rounded-full text-xs font-medium bg-maroon-600/90 text-white backdrop-blur-sm",children:(0,i.getCategoryName)(w)})}),(!!v||j)&&(0,t.jsx)("div",{className:"absolute bottom-3 right-3",children:(0,t.jsx)("span",{className:"inline-flex items-center justify-center w-8 h-8 rounded-full bg-red-600/90 text-white backdrop-blur-sm",children:(0,t.jsx)(l.Play,{className:"h-4 w-4 fill-current"})})})]}),(0,t.jsxs)("div",{className:"flex flex-col flex-1 p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between text-muted-foreground mb-2 text-xs",children:[f&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(o.Calendar,{className:"h-3.5 w-3.5 text-maroon-500"}),(0,t.jsx)("time",{dateTime:f,children:function(e){try{return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}catch{return e}}(f)})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(a.Clock,{className:"h-3.5 w-3.5 text-maroon-500"}),(0,t.jsx)("span",{children:S})]})]}),(0,t.jsx)("div",{className:"h-px w-full bg-border/50 mb-3"}),(0,t.jsx)("h3",{className:"line-clamp-2 mb-2 leading-snug transition-all bg-gradient-to-r from-maroon-800 via-maroon-700 to-maroon-700 dark:from-maroon-200 dark:via-maroon-200 dark:to-maroon-200 bg-clip-text text-transparent group-hover:from-maroon-700 group-hover:via-maroon-600 group-hover:to-maroon-600 dark:group-hover:from-maroon-100 dark:group-hover:via-maroon-100 dark:group-hover:to-maroon-100 text-xl font-bold",children:c(x,h)}),p&&(0,t.jsx)("p",{className:"text-muted-foreground flex-1 text-sm",children:c(p,h)}),(0,t.jsxs)("div",{className:"mt-3 pt-3 border-t border-border/50 flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-maroon-600 dark:text-maroon-400 group-hover:text-maroon-700 dark:group-hover:text-maroon-300 transition-colors",children:"Read Article →"}),(0,t.jsx)(s.BlogPostCardActions,{postId:e.id,title:x,slug:g,lang:N,excerpt:p||void 0,imageUrl:b||void 0,publishDate:f||void 0})]})]})]})})}e.s(["BlogPostCard",()=>m])},88474,e=>{"use strict";var t=e.i(18050),r=e.i(22016),o=e.i(11412),a=e.i(75789);let n=["bg-gradient-to-br from-maroon-100 via-maroon-50 to-maroon-100 dark:from-maroon-900/30 dark:via-maroon-900/20 dark:to-maroon-900/30","bg-gradient-to-tr from-maroon-100 via-maroon-50 to-maroon-100 dark:from-maroon-900/30 dark:via-maroon-900/20 dark:to-maroon-900/30","bg-gradient-to-bl from-maroon-100 via-maroon-50 to-maroon-100 dark:from-maroon-900/30 dark:via-maroon-900/20 dark:to-maroon-900/30","bg-gradient-to-tl from-maroon-100 via-maroon-50 to-maroon-100 dark:from-maroon-900/30 dark:via-maroon-900/20 dark:to-maroon-900/30","bg-gradient-to-r from-maroon-100 via-maroon-50 to-maroon-100 dark:from-maroon-900/30 dark:via-maroon-900/20 dark:to-maroon-900/30"];function l({category:e,lang:l="eng",href:s}){let i=(0,o.getCategoryName)(e),d=(0,o.getCategorySlug)(e),c=(0,o.getCategoryImageUrl)(e,a.STRAPI_URL,"microHD"),m=n[function(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return Math.abs(t)%n.length}(i)],u=e.postCount,h=s||`/blog/${l}/category/${d}`;return(0,t.jsx)(r.default,{href:h,prefetch:!1,className:"group relative flex flex-col h-full overflow-hidden rounded-xl border border-border/50 bg-card hover:border-maroon-400/50 hover:shadow-lg hover:shadow-maroon-500/10 transition-all duration-300",children:(0,t.jsxs)("div",{className:"relative aspect-[4/3] overflow-hidden",children:[c?(0,t.jsx)("img",{src:c,alt:i,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-110",loading:"lazy"}):(0,t.jsx)("div",{className:`absolute inset-0 ${m}`,children:(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 to-transparent"})}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent"}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-3",children:[(0,t.jsx)("h3",{className:"font-semibold text-white text-sm line-clamp-2 drop-shadow-md",children:i}),"number"==typeof u&&(0,t.jsxs)("p",{className:"text-xs text-white/80 mt-0.5",children:[u," ",1===u?"article":"articles"]})]})]})})}e.s(["BlogCategoryCard",()=>l])},96388,e=>{"use strict";var t=e.i(18050),r=e.i(71645),o=e.i(31278),a=e.i(19455),n=e.i(13493),l=e.i(95187);let s=(0,l.createServerReference)("60a0ff99b25e2ffd24240621d6fea2b41f2398fb68",l.callServer,void 0,l.findSourceMapURL,"fetchMoreBlogs");function i({initialPosts:e,totalPages:l,currentPage:i,totalResults:d,lang:c,category:m,search:u,sort:h,month:x,year:g}){let[f,p]=(0,r.useState)(e),[b,v]=(0,r.useState)(i),[j,y]=(0,r.useState)(l),[N,k]=(0,r.useTransition)(),w=b<j;return((0,r.useEffect)(()=>{p(e),v(i),y(l)},[e,i,l]),0===f.length)?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,t.jsx)("div",{className:"rounded-full bg-maroon-100 dark:bg-maroon-900/30 p-4 mb-4",children:(0,t.jsx)("svg",{className:"h-8 w-8 text-maroon-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),(0,t.jsx)("h3",{className:"font-serif text-lg font-semibold text-foreground mb-2",children:"No blogs found"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground max-w-sm",children:"We couldn't find any blogs matching your criteria. Try adjusting your filters or check back later."})]}):(0,t.jsxs)(t.Fragment,{children:[u&&void 0!==d&&(0,t.jsxs)("div",{className:"mb-4 text-sm text-muted-foreground",children:["Found ",(0,t.jsx)("span",{className:"font-medium text-foreground",children:d})," result",1!==d?"s":"",' for "',(0,t.jsx)("span",{className:"font-medium text-maroon-600 dark:text-maroon-400",children:u}),'"']}),(0,t.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:f.map((e,r)=>(0,t.jsx)(n.BlogPostCard,{blog:e,priority:r<3,searchTerm:u},e.id))}),w&&(0,t.jsx)("div",{className:"flex justify-center mt-10",children:(0,t.jsx)(a.Button,{onClick:()=>{k(async()=>{let e=b+1,t=await s(e,{lang:c,category:m,search:u,sort:h,month:x,year:g});p(e=>[...e,...t]),v(e)})},disabled:N,variant:"outline",size:"lg",className:"min-w-[200px] gap-2 border-maroon-300 hover:border-maroon-400 hover:bg-maroon-50 dark:hover:bg-maroon-900/20",children:N?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Loader2,{className:"h-4 w-4 animate-spin"}),"Loading..."]}):(0,t.jsx)(t.Fragment,{children:"Load More"})})}),!w&&f.length>12&&(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground mt-8",children:"You've reached the end"})]})}e.s(["BlogPostsWithLoadMore",()=>i],96388)},82639,e=>{"use strict";var t=e.i(18050),r=e.i(71645),o=e.i(22016),a=e.i(18566),n=e.i(55436),l=e.i(37727),s=e.i(64659),i=e.i(87316),d=e.i(49582),c=e.i(93479),m=e.i(19455),u=e.i(11412);let h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x({languages:e,categories:x,currentLang:g,currentCategory:f,currentSort:p="latest",currentSearch:b,currentMonth:v,currentYear:j,basePath:y,clearPath:N,rootPath:k="/blog",archivePath:w="/blog/archive",flatCategoryUrls:C=!1}){let $,S,R,D,I,P,A="all"===g||!g,L=e=>{let t=new URLSearchParams;e.search&&t.set("search",e.search),e.sort&&"latest"!==e.sort&&t.set("sort",e.sort),e.cat&&t.set("cat",e.cat),e.month&&t.set("month",e.month),e.year&&t.set("year",e.year);let r=t.toString();return`${y}${r?`?${r}`:""}`},E=new Date().getFullYear(),T=Array.from({length:E-2019},(e,t)=>E-t),B=()=>v&&j?`${h[v-1]} ${j}`:j?`${j}`:"All Time",_=e=>{let t,r="all"===e;t=C?r?f?`${k}/category/${f}`:w:`${k}/${e}`:r?f?`${k}/category/${f}`:w:f?`${k}/${e}/category/${f}`:`${k}/${e}`;let o=new URLSearchParams;b&&o.set("search",b),p&&"latest"!==p&&o.set("sort",p),v&&o.set("month",v.toString()),j&&o.set("year",j.toString()),C&&!r&&f&&o.set("cat",f);let a=o.toString();return`${t}${a?`?${a}`:""}`},M=e=>{let t=A||C?`${k}/category/${e}`:`${k}/${g}/category/${e}`,r=new URLSearchParams;b&&r.set("search",b),p&&"latest"!==p&&r.set("sort",p),v&&r.set("month",v.toString()),j&&r.set("year",j.toString());let o=r.toString();return`${t}${o?`?${o}`:""}`},F=g&&"all"!==g,H=b||f||v||j||F,z=e.find(e=>
1(0,u.getLanguageSlug)(e)===g),U=[b,f,v||j,F].filter(Boolean).length,O=(0,a.useRouter)(),[W,V]=(0,r.useState)(b||""),[q,G]=(0,r.useState)(null),[X,Z]=(0,r.useState)(!1),J=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{J.current&&!J.current.contains(e.target)&&G(null)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let K=e=>{G(q===e?null:e)},Y=v||j;return(0,t.jsxs)("div",{className:"bk-sticky-pill",children:[(0,t.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=L({search:W||void 0,sort:p,cat:f,month:v?.toString(),year:j?.toString()});O.push(t)},className:"flex-1 sm:flex-none sm:w-[260px] flex gap-1.5",children:[(0,t.jsxs)("div",{className:"relative flex-1",children:[(0,t.jsx)(n.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground pointer-events-none"}),(0,t.jsx)(c.Input,{type:"search",placeholder:"Search blogs...",value:W,onChange:e=>V(e.target.value),className:"pl-9 h-9 text-sm bg-background/80 border-maroon-200/60 dark:border-maroon-800/60 focus:border-maroon-500"})]}),(0,t.jsx)(m.Button,{type:"submit",size:"sm",className:"h-9 px-3 bg-maroon-600 hover:bg-maroon-700 text-white",children:"Search"})]}),(0,t.jsxs)("div",{className:"hidden sm:flex flex-1 items-center justify-end gap-2",ref:J,children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>K("lang"),className:`flex items-center gap-1.5 h-10 px-3 text-sm bg-background border rounded-lg transition-colors ${"lang"===q?"border-maroon-500":"border-maroon-200/60 dark:border-maroon-800/60 hover:border-maroon-400/50"}`,children:[(0,t.jsx)("span",{className:"text-muted-foreground hidden sm:inline",children:"Lang:"}),(0,t.jsx)("span",{className:"font-medium",children:z?(0,u.getLanguageName)(z):"All"}),(0,t.jsx)(s.ChevronDown,{className:`h-3.5 w-3.5 text-muted-foreground transition-transform ${"lang"===q?"rotate-180":""}`})]}),"lang"===q&&(0,t.jsxs)("div",{className:"absolute top-full left-0 mt-1 py-1 bg-background border border-maroon-200/60 dark:border-maroon-800/60 rounded-lg shadow-lg z-20 min-w-[120px]",children:[(0,t.jsx)(o.default,{prefetch:!1,href:_("all"),onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${A?"text-maroon-600 font-medium":"text-foreground"}`,children:"All Languages"}),e.map(e=>{let r=(0,u.getLanguageSlug)(e),a=(0,u.getLanguageName)(e);return(0,t.jsx)(o.default,{prefetch:!1,href:_(r),onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${g===r?"text-maroon-600 font-medium":"text-foreground"}`,children:a},e.id)})]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>K("category"),className:`flex items-center gap-1.5 h-10 px-3 text-sm bg-background border rounded-lg transition-colors ${"category"===q?"border-maroon-500":"border-maroon-200/60 dark:border-maroon-800/60 hover:border-maroon-400/50"}`,children:[(0,t.jsx)("span",{className:"text-muted-foreground hidden sm:inline",children:"Category:"}),(0,t.jsx)("span",{className:"font-medium",children:f?(0,u.getCategoryName)(x.find(e=>(0,u.getCategorySlug)(e)===f)||x[0]):"All"}),(0,t.jsx)(s.ChevronDown,{className:`h-3.5 w-3.5 text-muted-foreground transition-transform ${"category"===q?"rotate-180":""}`})]}),"category"===q&&(0,t.jsxs)("div",{className:"absolute top-full left-0 sm:left-auto sm:right-0 mt-1 py-1 bg-background border border-maroon-200/60 dark:border-maroon-800/60 rounded-lg shadow-lg z-20 min-w-[160px] max-h-[240px] overflow-y-auto",children:[(0,t.jsx)(o.default,{prefetch:!1,href:A?w:`${k}/${g}`,onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${!f?"text-maroon-600 font-medium":"text-foreground"}`,children:"All Categories"}),x.map(e=>{let r=(0,u.getCategorySlug)(e),a=(0,u.getCategoryName)(e);return(0,t.jsxs)(o.default,{prefetch:!1,href:M(r),onClick:()=>G(null),className:`flex items-center justify-between px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${f===r?"text-maroon-600 font-medium":"text-foreground"}`,children:[(0,t.jsx)("span",{children:a}),!Y&&"number"==typeof e.postCount&&(0,t.jsxs)("span",{className:"text-xs text-muted-foreground ml-2",children:["(",e.postCount,")"]})]},e.id)})]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>K("sort"),className:`flex items-center gap-1.5 h-10 px-3 text-sm bg-background border rounded-lg transition-colors ${"sort"===q?"border-maroon-500":"border-maroon-200/60 dark:border-maroon-800/60 hover:border-maroon-400/50"}`,children:[(0,t.jsx)("span",{className:"text-muted-foreground hidden sm:inline",children:"Sort:"}),(0,t.jsx)("span",{className:"font-medium capitalize",children:p}),(0,t.jsx)(s.ChevronDown,{className:`h-3.5 w-3.5 text-muted-foreground transition-transform ${"sort"===q?"rotate-180":""}`})]}),"sort"===q&&(0,t.jsxs)("div",{className:"absolute top-full right-0 mt-1 py-1 bg-background border border-maroon-200/60 dark:border-maroon-800/60 rounded-lg shadow-lg z-20 min-w-[120px]",children:[(0,t.jsx)(o.default,{prefetch:!1,href:L({search:b,sort:"latest",cat:f,month:v?.toString(),year:j?.toString()}),onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${"latest"===p?"text-maroon-600 font-medium":"text-foreground"}`,children:"Latest"}),(0,t.jsx)(o.default,{prefetch:!1,href:L({search:b,sort:"oldest",cat:f,month:v?.toString(),year:j?.toString()}),onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${"oldest"===p?"text-maroon-600 font-medium":"text-foreground"}`,children:"Oldest"}),(0,t.jsx)(o.default,{prefetch:!1,href:L({search:b,sort:"popular",cat:f,month:v?.toString(),year:j?.toString()}),onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${"popular"===p?"text-maroon-600 font-medium":"text-foreground"}`,children:"Popular"})]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>K("date"),className:`flex items-center gap-1.5 h-10 px-3 text-sm bg-background border rounded-lg transition-colors ${"date"===q?"border-maroon-500":"border-maroon-200/60 dark:border-maroon-800/60 hover:border-maroon-400/50"}`,children:[(0,t.jsx)(i.Calendar,{className:"h-3.5 w-3.5 text-muted-foreground"}),(0,t.jsx)("span",{className:"font-medium",children:B()}),(0,t.jsx)(s.ChevronDown,{className:`h-3.5 w-3.5 text-muted-foreground transition-transform ${"date"===q?"rotate-180":""}`})]}),"date"===q&&(0,t.jsxs)("div",{className:"absolute top-full right-0 mt-1 bg-background border border-maroon-200/60 dark:border-maroon-800/60 rounded-lg shadow-lg z-20 w-[280px] sm:w-[320px] overflow-hidden",children:[(0,t.jsx)(o.default,{prefetch:!1,href:L({search:b,sort:p,cat:f}),onClick:()=>G(null),className:`block px-4 py-2.5 text-sm border-b border-maroon-200/30 dark:border-maroon-800/30 hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${!v&&!j?"text-maroon-600 font-medium bg-maroon-50/50 dark:bg-maroon-900/20":"text-foreground"}`,children:"All Time"}),(0,t.jsx)("div",{className:"max-h-[300px] overflow-y-auto",children:T.map(e=>e>E?null:(0,t.jsxs)("div",{className:"border-b border-maroon-200/20 dark:border-maroon-800/20 last:border-b-0",children:[(0,t.jsxs)(o.default,{prefetch:!1,href:L({search:b,sort:p,cat:f,year:e.toString()}),onClick:()=>G(null),className:`flex items-center justify-between px-4 py-2 text-sm font-medium hover:bg-maroon-50/50 dark:hover:bg-maroon-900/10 transition-colors ${j===e&&!v?"text-maroon-600 bg-maroon-50/50 dark:bg-maroon-900/20":"text-foreground"}`,children:[(0,t.jsx)("span",{children:e}),j===e&&!v&&(0,t.jsx)("span",{className:"text-xs text-maroon-500",children:"All months"})]}),(0,t.jsx)("div",{className:"grid grid-cols-4 gap-1 px-3 pb-3",children:h.map((r,a)=>{let n=a+1,l=j===e&&v===n;return e===E&&n>new Date().getMonth()+1?(0,t.jsx)("span",{className:"px-2 py-1.5 text-xs text-center text-muted-foreground
1/40 cursor-not-allowed",children:r},r):(0,t.jsx)(o.default,{prefetch:!1,href:L({search:b,sort:p,cat:f,month:n.toString(),year:e.toString()}),onClick:()=>G(null),className:`px-2 py-1.5 text-xs text-center rounded transition-colors ${l?"bg-maroon-600 text-white font-medium":"hover:bg-maroon-100 dark:hover:bg-maroon-900/30 text-foreground"}`,children:r},r)})})]},e))})]})]})]}),(0,t.jsxs)(m.Button,{variant:"outline",size:"sm",className:"sm:hidden h-10 px-3 border-maroon-200/60 dark:border-maroon-800/60",onClick:()=>Z(!X),children:[(0,t.jsx)(d.SlidersHorizontal,{className:"h-4 w-4"}),U>0&&(0,t.jsx)("span",{className:"ml-1.5 bg-maroon-600 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center",children:U})]})]}),X&&(0,t.jsxs)("div",{className:"flex sm:hidden flex-wrap items-center gap-2 mt-3",ref:J,children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>K("lang"),className:`flex items-center gap-1.5 h-9 px-3 text-sm bg-background border rounded-lg transition-colors ${"lang"===q?"border-maroon-500":"border-maroon-200/60 dark:border-maroon-800/60"}`,children:[(0,t.jsx)("span",{className:"font-medium",children:z?(0,u.getLanguageName)(z):"All"}),(0,t.jsx)(s.ChevronDown,{className:`h-3.5 w-3.5 text-muted-foreground transition-transform ${"lang"===q?"rotate-180":""}`})]}),"lang"===q&&(0,t.jsxs)("div",{className:"absolute top-full left-0 mt-1 py-1 bg-background border border-maroon-200/60 dark:border-maroon-800/60 rounded-lg shadow-lg z-20 min-w-[120px]",children:[(0,t.jsx)(o.default,{prefetch:!1,href:_("all"),onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${A?"text-maroon-600 font-medium":"text-foreground"}`,children:"All Languages"}),e.map(e=>{let r=(0,u.getLanguageSlug)(e),a=(0,u.getLanguageName)(e);return(0,t.jsx)(o.default,{prefetch:!1,href:_(r),onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${g===r?"text-maroon-600 font-medium":"text-foreground"}`,children:a},e.id)})]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>K("category"),className:`flex items-center gap-1.5 h-9 px-3 text-sm bg-background border rounded-lg transition-colors ${"category"===q?"border-maroon-500":"border-maroon-200/60 dark:border-maroon-800/60"}`,children:[(0,t.jsx)("span",{className:"font-medium",children:f?(0,u.getCategoryName)(x.find(e=>(0,u.getCategorySlug)(e)===f)||x[0]):"All"}),(0,t.jsx)(s.ChevronDown,{className:`h-3.5 w-3.5 text-muted-foreground transition-transform ${"category"===q?"rotate-180":""}`})]}),"category"===q&&(0,t.jsxs)("div",{className:"absolute top-full left-0 mt-1 py-1 bg-background border border-maroon-200/60 dark:border-maroon-800/60 rounded-lg shadow-lg z-20 min-w-[160px] max-h-[240px] overflow-y-auto",children:[(0,t.jsx)(o.default,{prefetch:!1,href:A?w:`${k}/${g}`,onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${!f?"text-maroon-600 font-medium":"text-foreground"}`,children:"All Categories"}),x.filter(e=>(e.postCount??0)>0||!Y).map(e=>{let r=(0,u.getCategorySlug)(e),a=(0,u.getCategoryName)(e);return(0,t.jsx)(o.default,{prefetch:!1,href:M(r),onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${f===r?"text-maroon-600 font-medium":"text-foreground"}`,children:a},e.id)})]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>K("sort"),className:`flex items-center gap-1.5 h-9 px-3 text-sm bg-background border rounded-lg transition-colors ${"sort"===q?"border-maroon-500":"border-maroon-200/60 dark:border-maroon-800/60"}`,children:[(0,t.jsx)("span",{className:"font-medium capitalize",children:p}),(0,t.jsx)(s.ChevronDown,{className:`h-3.5 w-3.5 text-muted-foreground transition-transform ${"sort"===q?"rotate-180":""}`})]}),"sort"===q&&(0,t.jsxs)("div",{className:"absolute top-full left-0 mt-1 py-1 bg-background border border-maroon-200/60 dark:border-maroon-800/60 rounded-lg shadow-lg z-20 min-w-[100px]",children:[(0,t.jsx)(o.default,{prefetch:!1,href:L({search:b,sort:"latest",cat:f,month:v?.toString(),year:j?.toString()}),onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${"latest"===p?"text-maroon-600 font-medium":"text-foreground"}`,children:"Latest"}),(0,t.jsx)(o.default,{prefetch:!1,href:L({search:b,sort:"oldest",cat:f,month:v?.toString(),year:j?.toString()}),onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${"oldest"===p?"text-maroon-600 font-medium":"text-foreground"}`,children:"Oldest"}),(0,t.jsx)(o.default,{prefetch:!1,href:L({search:b,sort:"popular",cat:f,month:v?.toString(),year:j?.toString()}),onClick:()=>G(null),className:`block px-3 py-2 text-sm hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${"popular"===p?"text-maroon-600 font-medium":"text-foreground"}`,children:"Popular"})]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>K("date"),className:`flex items-center gap-1.5 h-9 px-3 text-sm bg-background border rounded-lg transition-colors ${"date"===q?"border-maroon-500":"border-maroon-200/60 dark:border-maroon-800/60"} ${v||j?"border-maroon-500/50 bg-maroon-50/50 dark:bg-maroon-900/20":""}`,children:[(0,t.jsx)(i.Calendar,{className:"h-3.5 w-3.5 text-muted-foreground"}),(0,t.jsx)("span",{className:"font-medium",children:B()}),(0,t.jsx)(s.ChevronDown,{className:`h-3.5 w-3.5 text-muted-foreground transition-transform ${"date"===q?"rotate-180":""}`})]}),"date"===q&&(0,t.jsxs)("div",{className:"fixed left-4 right-4 mt-1 bg-background border border-maroon-200/60 dark:border-maroon-800/60 rounded-lg shadow-lg z-50 overflow-hidden",style:{to
1p:"auto"},children:[(0,t.jsx)(o.default,{prefetch:!1,href:L({search:b,sort:p,cat:f}),onClick:()=>G(null),className:`block px-4 py-2.5 text-sm border-b border-maroon-200/30 dark:border-maroon-800/30 hover:bg-maroon-50 dark:hover:bg-maroon-900/20 transition-colors ${!v&&!j?"text-maroon-600 font-medium bg-maroon-50/50 dark:bg-maroon-900/20":"text-foreground"}`,children:"All Time"}),(0,t.jsx)("div",{className:"max-h-[250px] overflow-y-auto",children:T.map(e=>(0,t.jsxs)("div",{className:"border-b border-maroon-200/20 dark:border-maroon-800/20 last:border-b-0",children:[(0,t.jsxs)(o.default,{prefetch:!1,href:L({search:b,sort:p,cat:f,year:e.toString()}),onClick:()=>G(null),className:`flex items-center justify-between px-4 py-2 text-sm font-medium hover:bg-maroon-50/50 dark:hover:bg-maroon-900/10 transition-colors ${j===e&&!v?"text-maroon-600 bg-maroon-50/50 dark:bg-maroon-900/20":"text-foreground"}`,children:[(0,t.jsx)("span",{children:e}),j===e&&!v&&(0,t.jsx)("span",{className:"text-xs text-maroon-500",children:"All months"})]}),(0,t.jsx)("div",{className:"grid grid-cols-6 gap-1 px-3 pb-3",children:h.map((r,a)=>{let n=a+1,l=j===e&&v===n;return e===E&&n>new Date().getMonth()+1?(0,t.jsx)("span",{className:"px-2 py-1.5 text-xs text-center text-muted-foreground/40",children:r},r):(0,t.jsx)(o.default,{prefetch:!1,href:L({search:b,sort:p,cat:f,month:n.toString(),year:e.toString()}),onClick:()=>G(null),className:`px-2 py-1.5 text-xs text-center rounded transition-colors ${l?"bg-maroon-600 text-white font-medium":"hover:bg-maroon-100 dark:hover:bg-maroon-900/30 text-foreground"}`,children:r},r)})})]},e))})]})]})]}),H&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 mt-3",children:[F&&z&&(0,t.jsxs)(o.default,{prefetch:!1,href:($=f?`${k}/category/${f}`:w,S=new URLSearchParams,b&&S.set("search",b),p&&"latest"!==p&&S.set("sort",p),v&&S.set("month",v.toString()),j&&S.set("year",j.toString()),R=S.toString(),`${$}${R?`?${R}`:""}`),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-maroon-100 dark:bg-maroon-900/30 text-maroon-700 dark:text-maroon-300 hover:bg-maroon-200 dark:hover:bg-maroon-800/40 transition-colors",children:[(0,t.jsx)("span",{children:(0,u.getLanguageName)(z)}),(0,t.jsx)(l.X,{className:"h-3 w-3"})]}),f&&(0,t.jsxs)(o.default,{prefetch:!1,href:(D=A?w:`${k}/${g}`,I=new URLSearchParams,b&&I.set("search",b),p&&"latest"!==p&&I.set("sort",p),v&&I.set("month",v.toString()),j&&I.set("year",j.toString()),P=I.toString(),`${D}${P?`?${P}`:""}`),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-maroon-100 dark:bg-maroon-900/30 text-maroon-700 dark:text-maroon-300 hover:bg-maroon-200 dark:hover:bg-maroon-800/40 transition-colors",children:[(0,u.getCategoryName)(x.find(e=>(0,u.getCategorySlug)(e)===f)||x[0]),(0,t.jsx)(l.X,{className:"h-3 w-3"})]}),(v||j)&&(0,t.jsxs)(o.default,{prefetch:!1,href:L({search:b,sort:p,cat:f}),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-maroon-100 dark:bg-maroon-900/30 text-maroon-700 dark:text-maroon-300 hover:bg-maroon-200 dark:hover:bg-maroon-800/40 transition-colors",children:[B(),(0,t.jsx)(l.X,{className:"h-3 w-3"})]}),b&&(0,t.jsxs)(o.default,{prefetch:!1,href:L({sort:p,cat:f,month:v?.toString(),year:j?.toString()}),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-maroon-100 dark:bg-maroon-900/30 text-maroon-700 dark:text-maroon-300 hover:bg-maroon-200 dark:hover:bg-maroon-800/40 transition-colors",children:['"',b,'"',(0,t.jsx)(l.X,{className:"h-3 w-3"})]}),U>1&&(0,t.jsxs)(o.default,{prefetch:!1,href:w,className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",children:["Clear All",(0,t.jsx)(l.X,{className:"h-3 w-3"})]})]})]})}e.s(["BlogFilterBar",()=>x])},81565,e=>{"use strict";var t=e.i(18050),r=e.i(71645),o=e.i(37727),a=e.i(73375),n=e.i(63059),l=e.i(54212);function s({images:e,title:s}){let[i,d]=(0,r.useState)(!1),[c,m]=(0,r.useState)(0);if(!e||0===e.length)return null;let u=()=>{d(!1),document.body.style.overflow=""},h=()=>{m(t=>0===t?e.length-1:t-1)},x=()=>{m(t=>t===e.length-1?0:t+1)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-10 mb-8",children:[(0,t.jsx)("h3",{className:"text-sm font-medium uppercase tracking-wider text-maroon-600 dark:text-maroon-400 mb-4",children:s||"Gallery"}),(0,t.jsx)("div",{className:`grid gap-3 ${1===e.length?"grid-cols-1":2===e.length?"grid-cols-2":"grid-cols-2 md:grid-cols-3"}`,children:e.map((r,o)=>(0,t.jsxs)("button",{onClick:()=>{m(o),d(!0),document.body.style.overflow="hidden"},className:"group relative aspect-[4/3] rounded-xl overflow-hidden bg-muted focus:outline-none focus:ring-2 focus:ring-maroon-500 focus:ring-offset-2",children:[(0,t.jsx)("img",{src:r.thumbnailUrl,alt:r.alt||s||`Gallery image ${o+1}`,title:r.alt||s||`Gallery image ${o+1}`,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/30 transition-colors duration-300 flex items-center justify-center",children:(0,t.jsx)(l.ZoomIn,{className:"h-8 w-8 text-white opacity-0 group-hover:opacity-100 transition-opacity duration-300"})}),(0,t.jsxs)("div",{className:"absolute bottom-2 right-2 px-2 py-1 rounded-md bg-black/50 text-white text-xs font-medium backdrop-blur-sm op
1acity-0 group-hover:opacity-100 transition-opacity",children:[o+1," / ",e.length]})]},o))})]}),i&&(0,t.jsxs)("div",{className:"fixed inset-0 z-50 bg-black/95 flex items-center justify-center",onClick:u,onKeyDown:e=>{"Escape"===e.key&&u(),"ArrowLeft"===e.key&&h(),"ArrowRight"===e.key&&x()},tabIndex:0,role:"dialog","aria-modal":"true","aria-label":"Image lightbox",children:[(0,t.jsx)("button",{onClick:u,className:"absolute top-4 right-4 p-2 rounded-full bg-white/10 hover:bg-white/20 text-white transition-colors z-10","aria-label":"Close lightbox",children:(0,t.jsx)(o.X,{className:"h-6 w-6"})}),(0,t.jsxs)("div",{className:"absolute top-4 left-4 px-3 py-1.5 rounded-full bg-white/10 text-white text-sm font-medium backdrop-blur-sm",children:[c+1," / ",e.length]}),e.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),h()},className:"absolute left-4 top-1/2 -translate-y-1/2 p-3 rounded-full bg-white/10 hover:bg-white/20 text-white transition-colors","aria-label":"Previous image",children:(0,t.jsx)(a.ChevronLeft,{className:"h-6 w-6"})}),(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),x()},className:"absolute right-4 top-1/2 -translate-y-1/2 p-3 rounded-full bg-white/10 hover:bg-white/20 text-white transition-colors","aria-label":"Next image",children:(0,t.jsx)(n.ChevronRight,{className:"h-6 w-6"})})]}),(0,t.jsxs)("div",{className:"max-w-[90vw] max-h-[80vh] flex flex-col items-center",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("img",{src:e[c].fullUrl,alt:e[c].alt||s||`Gallery image ${c+1}`,title:e[c].alt||s||`Gallery image ${c+1}`,className:"max-w-full max-h-[75vh] object-contain rounded-lg"}),e[c].caption&&(0,t.jsx)("p",{className:"mt-4 text-white/80 text-center text-sm max-w-lg",children:e[c].caption})]}),e.length>1&&(0,t.jsx)("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2 p-2 rounded-xl bg-black/50 backdrop-blur-sm max-w-[90vw] overflow-x-auto",children:e.map((e,r)=>(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),m(r)},className:`relative w-12 h-12 rounded-lg overflow-hidden flex-shrink-0 transition-all ${r===c?"ring-2 ring-maroon-400 ring-offset-2 ring-offset-black":"opacity-60 hover:opacity-100"}`,children:(0,t.jsx)("img",{src:e.thumbnailUrl,alt:e.alt||s||`Thumbnail ${r+1}`,title:e.alt||s||`Thumbnail ${r+1}`,className:"absolute inset-0 w-full h-full object-cover"})},r))})]})]})}e.i(75789),e.s(["BlogImageGallery",()=>s])},11766,e=>{"use strict";var t=e.i(18050),r=e.i(75789),o=e.i(81565),a=e.i(71645),n=e.i(31343),l=e.i(95242),s=e.i(5257),i=e.i(79205);function d({component:e,blogTitle:o,blogSlug:d,blogId:c,blogImageUrl:m,lang:u}){let{currentTrack:h,isPlaying:x,toggle:g,play:f,setQueue:p}=(0,i.useAudioPlayer)(),b=e.audio?.data,v=e.title||"Listen to Audio",j=(b?.length??0)===1,y=(0,a.useMemo)(()=>b?b.map((t,o)=>{let a=t.attributes?.url;if(!a)return null;let n=`blog-audio-${c||0}-${t.id}-${o}`,l=j&&e.title?e.title:function(e,t="Audio"){return e?.replace(/\.[^/.]+$/,"")||t}(t.attributes?.name,`Track ${o+1}`);return{id:n,idx:o,title:l,audioTrack:{id:n,title:l,url:a.startsWith("http")?a:`${r.STRAPI_URL}${a}`,imageUrl:m||void 0,postSlug:d,lang:u,contentType:"blog"}}}).filter(Boolean):[],[b,c,d,m,u,j,e.title]),N=(0,a.useMemo)(()=>new Set(y.map(e=>e.id)),[y]),k=!!h&&N.has(h.id),w=(0,a.useCallback)(e=>{let t=y[e];if(t){if(h?.id===t.id)return void g();y.length>1?p(y.map(e=>e.audioTrack),e):f(t.audioTrack)}},[y,h,g,p,f]);return 0===y.length?null:1===y.length?(0,t.jsx)("div",{className:"my-6 not-prose",children:(0,t.jsx)("div",{className:"blog-audio-player overflow-hidden rounded-xl border border-maroon-200/80 bg-gradient-to-br from-maroon-50 via-white to-maroon-50 shadow-sm dark:border-maroon-800/50 dark:from-maroon-950/40 dark:via-background dark:to-maroon-950/20",children:(0,t.jsxs)("div",{className:"flex items-center gap-2.5 px-3 py-2.5 sm:px-4",children:[(0,t.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-maroon-500/10 dark:bg-maroon-500/20",children:(0,t.jsx)(s.Headphones,{className:"h-3.5 w-3.5 text-maroon-600 dark:text-maroon-400"})}),(0,t.jsx)("h4",{className:"min-w-0 flex-1 text-sm font-semibold leading-snug text-foreground sm:text-base",children:v}),(0,t.jsx)("button",{onClick:()=>w(0),className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-maroon-500 text-white shadow-md transition-all hover:bg-maroon-600 active:scale-95","aria-label":k&&x?"Pause":"Play",children:k&&x?(0,t.jsx)(l.Pause,{className:"h-4 w-4"}):(0,t.jsx)(n.Play,{className:"h-4 w-4 ml-0.5"})})]})})}):(0,t.jsx)("div",{className:"my-6 not-prose",children:(0,t.jsxs)("div",{className:"blog-audio-player overflow-hidden rounded-xl border border-maroon-200/80 bg-gradient-to-br from-maroon-50 via-white to-maroon-50 shadow-sm dark:border-maroon-800/50 dark:from-maroon-950/40 dark:via-background dark:to-maroon-950/20",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5 border-b border-maroon-100 px-3 py-2.5 sm:px-4 dark:border-maroon-900/50",children:[(0,t.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-maroon-500/10 dark:bg-maroon-500/20",children:(0,t.jsx)(s.Headphones,{className:"h-3.5 w-3.5 text-maroon-600 dark:text-maroon-400"})}),(0,t.jsx)("h4",{className:"min-w-0 flex-1 text-sm font-semibold leading-snug text-foreground sm:text-base",children:v})]}),(0,t.jsx)("div",{className:"blog-audio-playlist divide-y divide-maroon-100 dark:divide-maroon-900/50",children:y.map(e=>{let r=h?.id===e.id,o=r&&x;return(0,t.jsxs)("button",{type:"button",onClick:()=>r?g():w(e.idx),className:`flex w-full items-center gap-2.5 px-3 py-2.5 text-left transition-colors sm:gap-3 sm:px-4 ${r?"bg-maroon-100/60 dark:bg-maroon-900/25":"hover:bg-maroon-50/80 dark:hover:bg-maroon-950/30"}`,children:[(0,t.jsx)("span",{className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors sm:h-9 sm:w-9 ${r?"bg-maroon-500 text-white":"bg-maroon-500/10 text-maroon-600 dark:bg-maroon-500/20 dark:text-maroon-400"}`,children:o?(0,t.jsx)(l.Pause,{className:"h-3.5 w-3.5"}):(0,t.jsx)(n.Play,{className:"h-3.5 w-3.5 ml-0.5"})}),(0,t.jsx)("span",{className:`min-w-0 flex-1 text-sm leading-snug ${r?"font-semibold text-maroon-800 dark:text-maroon-200":"text-foreground"}`,children:e.title}),o&&(0,t.jsx)("span",{className:"flex shrink-0 items-end gap-0.5 pb-0.5",children:[0,1,2].map(e=>(0,t.jsx)("span",{className:"inline-block w-0.5 animate-pulse rounded-full bg-maroon-500",style:{height:`${8+3*e}px`,animationDelay:`${.15*e}s`}},e))})]},e.id)})})]})})}var c=e.i(73375),m=e.i(63059),u=e.i(37727),h=e.i(78917),x=e.i(83086),g=e.i(77963),f=e.i(6458);let p="content-footnotes",b=(0,a.createContext)(null),v=/\{([^{}]*\S[^{}]*)\}/g;function j(e,t){let r=0;for(let o=0;o<e.length;o++)e[o]===t&&r++;return r}function y(e){return!!e&&"text"===e.type&&"string"==typeof e.text&&!e.code}function N(e){if(!Array.isArray(e))return e;let t=[],r=0;for(;r<e.length;){let o=e[r];if(y(o)&&j(o.text,"{")>j(o.text,"}")){let a=o.text,n=r+1;for(;n<e.length&&j(a,"{")>j(a,"}")&&y(e[n]);)a+=e[n].text,n++;t.push({type:"text",text:a,bold:o.bold,italic:o.italic,underline:o.underline,strikethrough:o.strikethrough}),r=n}else t.push(o),r++}return t}function k(e){return e&&"object"==typeof e&&Array.isArray(e.children)?"list"===e.type?{...e,children:e.children.map(e=>e&&Array.isArray(e.children)?{...e,children:N(e.children)}:e)}:{...e,children:N(e.children)}:e}let w=new WeakMap;function C(e){let t=w.get(e);if(t)return t;let r=e.map(k);return w.set(e,r),r}let $=null;function S(e,t,r=1600){e.classList.add(t),window.setTimeout(()=>e.classList.remove(t),r)}function R(e){if(e.preventDefault(),"undefined"==typeof document)return;let t=$&&document.getElementById($)||document.querySelector(".blog-footnote-term");t&&(t.scrollIntoView({behavior:"smooth",block:"center"}),S(t,"blog-footnote-ref-flash"))}function D({content:e,htmlContent:r,dynamicZone:o,lang:a="eng",blogTitle:n="",blogSlug:l="",blogId:s,blogImageUrl:i,skipFirstVideo:d=!1,enableFootnotes:c=!1}){if(o&&o.length>0){let e=o.map((e,t)=>"wisdom.description"===e.__component?t:-1).filter(e=>e>=0),r=e.length,m=r>0?e[r-1]:-1,u=c&&r>1,h=new Map;if(u){let e={value:0};o.forEach((t,r)=>{if("wisdom.description"!==t.__component||r===m)return;let o=t.description;Array.isArray(o)&&function e(t,r,o){for(let a of t)a&&"object"==typeof a&&"link"!==a.type&&("text"===a.type&&"string"==typeof a.text&&!a.code&&a.text.includes("{")&&(r.set(a,o.value),o.value+=function(e){let t=e.match(v);return t?t.length:0}(a.text)),Array.isArray(a.children)&&e(a.children,r,o))}(C(o),h,e)})}let x=u?{startMap:h,anchorId:p}:null,f=(0,t.jsx)("div",{className:"blog-article-content","data-lang":a,lang:"hin"===a?"hi":"en",children:o.map((e,r)=>d&&0===r&&"wisdom.post-video"===e.__component?null:(0,t.jsx)(I,{component:e,index:r,lang:a,blogTitle:n,blogSlug:l,blogId:s,blogImageUrl:i,footnoteMode:u&&"wisdom.description"===e.__component?r===m?"glossary":"marker":"none"},`${e.__component}-${e.id}-${r}`))});return(0,t.jsx)(g.ImageLabelProvider,{value:n,children:x?(0,t.jsx)(b.Provider,{value:x,children:f}):f})}return r?(0,t.jsx)("div",{className:"blog-article-content","data-lang":a,dangerouslySetInnerHTML:{__html:r}}
1):e&&0!==e.length?(0,t.jsx)(g.ImageLabelProvider,{value:n,children:(0,t.jsx)("div",{className:"blog-article-content","data-lang":a,children:e.map((r,o)=>(0,t.jsx)(F,{block:r,index:o,total:e.length,lang:a},o))})}):null}function I({component:e,index:r,lang:o,blogTitle:a,blogSlug:n,blogId:l,blogImageUrl:s,footnoteMode:i="none"}){switch(e.__component){case"wisdom.description":return(0,t.jsx)(P,{component:e,index:r,lang:o,footnoteMode:i});case"wisdom.post-video":return(0,t.jsx)(L,{component:e,blogTitle:a});case"wisdom.post-gallery":return(0,t.jsx)(E,{component:e});case"wisdom.post-audio":return(0,t.jsx)(d,{component:e,blogTitle:a,blogSlug:n,blogId:l,blogImageUrl:s,lang:o});case"wisdom.html":return(0,t.jsx)(T,{component:e});case"wisdom.carousal":return(0,t.jsx)(B,{component:e});case"wisdom.cta":return(0,t.jsx)(_,{component:e});case"wisdom.ctavideo":return(0,t.jsx)(M,{component:e});default:return console.warn(`Unknown dynamic zone component: ${e.__component}`),null}}function P({component:e,index:r,lang:o,footnoteMode:a="none"}){let n=e.description;if(!n||0===n.length)return null;let l="marker"===a||"glossary"===a?C(n):n,s=l.map((e,n)=>(0,t.jsx)(F,{block:e,index:n,total:l.length,lang:o,footnoteMode:a},`${r}-${n}`));return"glossary"===a?(0,t.jsxs)("section",{id:p,className:"blog-footnotes-section","aria-label":"Footnotes",children:[(0,t.jsxs)("div",{className:"blog-footnotes-heading",children:[(0,t.jsx)("span",{className:"blog-footnotes-heading-label",children:"hin"===o?"टिप्पणियाँ":"Footnotes"}),(0,t.jsx)("span",{className:"blog-footnotes-rule"}),(0,t.jsxs)("a",{href:"#",className:"blog-footnotes-back",onClick:R,"aria-label":"hin"===o?"लेख पर वापस जाएँ":"Back to article",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:"↩"}),"hin"===o?"लेख पर वापस":"Back to article"]})]}),s]}):(0,t.jsx)(t.Fragment,{children:s})}function A(e){try{let t=new URL(e),r=null;if(t.hostname.includes("youtube.com")?!(r=t.searchParams.get("v"))&&t.pathname.includes("/live/")&&(r=t.pathname.split("/live/")[1]?.split("?")[0]):t.hostname.includes("youtu.be")&&(r=t.pathname.slice(1)),r)return`https://www.youtube.com/embed/${r}`}catch{}return null}function L({component:e,blogTitle:r}){let o=e.videolink;if(!o)return null;let a=A(o);if(!a)return null;let n="Watch Video";return(0,t.jsxs)("div",{className:"my-10",children:[(0,t.jsxs)("h3",{className:"font-semibold text-foreground mb-4 flex items-center gap-2",children:[(0,t.jsx)("svg",{className:"h-5 w-5 text-red-500",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})}),n]}),(0,t.jsx)("div",{className:"aspect-video rounded-xl overflow-hidden shadow-lg",children:(0,t.jsx)("iframe",{src:a,title:r||n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full"})})]})}function E({component:e}){let a=(0,g.useLabeledImage)(),n=e.gallery?.data;if(!n||0===n.length)return null;let l=e=>e.startsWith("http")?e:`${r.STRAPI_URL}${e}`,s=[];return(n.forEach(e=>{let t=e.attributes;if(!t||!t.url)return;let r=t.formats?.miniHD?.url||t.formats?.microHD?.url||t.url,o=t.formats?.FullHD?.url||t.formats?.HD?.url||t.url;s.push({thumbnailUrl:l(r),fullUrl:l(o),alt:(0,f.getMediaLabel)(t,`${a} — ${s.length+1}`)})}),0===s.length)?null:(0,t.jsx)(o.BlogImageGallery,{images:s,title:e.gallery_title||"Gallery"})}function T({component:e}){let r=e.html;return r?(0,t.jsx)("div",{className:"blog-html-content",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r}}):null}function B({component:e}){let[o,n]=(0,a.useState)(0),[l,s]=(0,a.useState)(!1),[i,d]=(0,a.useState)(0),h=(0,a.useRef)(null),x=(0,g.useLabeledImage)(),p=e.carousal?.data;if(!p||0===p.length)return null;let b=e=>e.startsWith("http")?e:`${r.STRAPI_URL}${e}`,v=p.map(t=>
1{let r=t.attributes,o=r.formats?.miniHD?.url||r.formats?.microHD?.url||r.url,a=r.formats?.FullHD?.url||r.formats?.HD?.url||r.url;return{id:t.id,thumbnailUrl:b(o),fullUrl:b(a),alt:(0,f.getMediaLabel)(r,e.title||x)}}),j=e.title||"Gallery",y=e=>{if(h.current){let t=h.current,r=t.scrollWidth/v.length;t.scrollTo({left:r*e,behavior:"smooth"}),n(e)}},N=()=>{s(!1)};return(0,t.jsxs)("div",{className:"my-8",children:[(0,t.jsx)("h4",{className:"font-semibold text-foreground text-base mb-4 flex items-center gap-2",children:j}),(0,t.jsxs)("div",{className:"relative group",children:[v.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:()=>{y(o>0?o-1:v.length-1)},className:"absolute left-2 top-1/2 -translate-y-1/2 z-10 w-10 h-10 rounded-full bg-white/90 dark:bg-gray-800/90 shadow-lg flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity hover:bg-white dark:hover:bg-gray-700","aria-label":"Previous",children:(0,t.jsx)(c.ChevronLeft,{className:"h-5 w-5 text-gray-700 dark:text-gray-200"})}),(0,t.jsx)("button",{onClick:()=>{y(o<v.length-1?o+1:0)},className:"absolute right-2 top-1/2 -translate-y-1/2 z-10 w-10 h-10 rounded-full bg-white/90 dark:bg-gray-800/90 shadow-lg flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity hover:bg-white dark:hover:bg-gray-700","aria-label":"Next",children:(0,t.jsx)(m.ChevronRight,{className:"h-5 w-5 text-gray-700 dark:text-gray-200"})})]}),(0,t.jsx)("div",{ref:h,className:"flex gap-4 overflow-x-auto snap-x snap-mandatory pb-2",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:v.map((e,r)=>(0,t.jsx)("div",{className:"flex-shrink-0 snap-start cursor-pointer rounded-xl overflow-hidden shadow-md hover:shadow-lg transition-shadow w-[80%] md:w-[36%]",onClick:()=>{d(r),s(!0)},children:(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)("img",{src:e.thumbnailUrl,alt:e.alt,title:e.alt,className:"w-full h-auto object-cover",loading:"lazy"})})},`carousel-${e.id}-${r}`))}),v.length>1&&(0,t.jsx)("div",{className:"flex justify-center gap-2 mt-3",children:v.map((e,r)=>(0,t.jsx)("button",{onClick:()=>y(r),className:`w-2 h-2 rounded-full transition-colors ${r===o?"bg-maroon-500 dark:bg-maroon-400":"bg-gray-300 dark:bg-gray-600 hover:bg-gray-400 dark:hover:bg-gray-500"}`,"aria-label":`Go to slide ${r+1}`},`dot-${r}`))})]}),l&&(0,t.jsxs)("div",{className:"fixed inset-0 z-50 bg-black/90 flex items-center justify-center",onClick:N,children:[(0,t.jsx)("button",{onClick:N,className:"absolute top-4 right-4 w-10 h-10 rounded-full bg-white/20 hover:bg-white/30 flex items-center justify-center transition-colors","aria-label":"Close",children:(0,t.jsx)(u.X,{className:"h-6 w-6 text-white"})}),v.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),d(e=>e>0?e-1:v.length-1)},className:"absolute left-4 top-1/2 -translate-y-1/2 w-12 h-12 rounded-full bg-white/20 hover:bg-white/30 flex items-center justify-center transition-colors","aria-label":"Previous",children:(0,t.jsx)(c.ChevronLeft,{className:"h-8 w-8 text-white"})}),(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),d(e=>e<v.length-1?e+1:0)},className:"absolute right-4 top-1/2 -translate-y-1/2 w-12 h-12 rounded-full bg-white/20 hover:bg-white/30 flex items-center justify-center transition-colors","aria-label":"Next",children:(0,t.jsx)(m.ChevronRight,{className:"h-8 w-8 text-white"})})]}),(0,t.jsx)("div",{className:"max-w-[90vw] max-h-[85vh]",onClick:e=>e.stopPropagation(),children:(0,t.jsx)("img",{src:v[i].fullUrl,alt:v[i].alt,title:v[i].alt,className:"max-w-full max-h-[85vh] object-contain"})}),(0,t.jsxs)("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 text-white text-sm",children:[i+1," / ",v.length]})]})]})}function _({component:e}){let{heading:o,subheading:a,para:n,note:l,url:s,button_label:i,image:d}=e,c=(0,g.useLabeledImage)(),m=d?.data?.attributes,u=m?.formats?.microHD?.url||m?.formats?.miniHD?.url||m?.formats?.HD?.url||m?.url,p=u?u.startsWith("http")?u:`${r.STRAPI_URL}${u}`:null,b=n?.map(e=>"paragraph"===e.type&&e.children?e.children.map(e=>e.text||"").join(""):"").join(" ").trim()||"";return o||a||b||l||s&&i||p?(0,t.jsx)("div",{className:"my-10",children:(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-2xl bg-gradient-to-br from-maroon-50 via-maroon-50 to-amber-50 dark:from-maroon-950/40 dark:via-maroon-950/30 dark:to-amber-950/20 border border-maroon-200/60 dark:border-maroon-800/40 shadow-lg",children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 w-32 h-32 bg-gradient-to-bl from-maroon-200/30 to-transparent roun
1ded-bl-full"}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 w-24 h-24 bg-gradient-to-tr from-amber-200/20 to-transparent rounded-tr-full"}),(0,t.jsxs)("div",{className:"relative flex flex-col md:flex-row gap-5 p-5 md:p-6",children:[p&&(0,t.jsx)("div",{className:"flex-shrink-0 md:w-[45%]",children:(0,t.jsxs)("div",{className:"relative aspect-[4/3] rounded-xl overflow-hidden shadow-md",children:[(0,t.jsx)("img",{src:p,alt:(0,f.getMediaLabel)(m,o||c),title:(0,f.getMediaLabel)(m,o||c),className:"w-full h-full object-cover",loading:"lazy"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 to-transparent"})]})}),(0,t.jsxs)("div",{className:`flex flex-col justify-center ${p?"md:w-[55%]":"w-full"}`,children:[o&&(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,t.jsx)(x.Sparkles,{className:"w-4 h-4 text-maroon-500 dark:text-maroon-400 flex-shrink-0"}),(0,t.jsx)("h2",{className:"text-lg md:text-xl font-serif font-bold text-foreground",children:o})]}),a&&(0,t.jsx)("p",{className:"text-sm md:text-base text-maroon-700 dark:text-maroon-300 font-medium mb-2",children:a}),b&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed mb-3",children:b}),l&&(0,t.jsx)("div",{className:"text-xs text-maroon-600/80 dark:text-maroon-400/80 italic mb-3 pl-3 border-l-2 border-maroon-300 dark:border-maroon-700",children:l}),s&&i&&(0,t.jsxs)("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 self-start px-4 py-2 text-sm bg-gradient-to-r from-maroon-500 to-maroon-500 hover:from-maroon-600 hover:to-maroon-600 text-white font-medium rounded-full shadow-sm hover:shadow-md transition-all duration-300",children:[i,(0,t.jsx)(h.ExternalLink,{className:"w-3.5 h-3.5"})]})]})]})]})}):null}function M({component:e}){let o,[l,s]=(0,a.useState)(!1),{heading:i,subheading:d,para:c,note:m,url:u,button_label:x,video:g,image:f}=e,p=f?.data?.attributes,b=p?.formats?.microHD?.url||p?.formats?.miniHD?.url||p?.formats?.HD?.url||p?.url,v=b?b.startsWith("http")?b:`${r.STRAPI_URL}${b}`:null,j=g?A(g):null,y=g&&(o=function(e){for(let t of[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([a-zA-Z0-9_-]{11})/,/youtube\.com\/shorts\/([a-zA-Z0-9_-]{11})/,/youtube\.com\/live\/([a-zA-Z0-9_-]{11})/]){let r=e.match(t);if(r)return r[1]}return null}(g))?`https://img.youtube.com/vi/${o}/hqdefault.jpg`:null,N=v||y,k=c?.map(e=>"paragraph"===e.type&&e.children?e.children.map(e=>e.text||"").join(""):"").join(" ").trim()||"";return i||d||k||m||u&&x||j||N?(0,t.jsx)("div",{className:"my-10",children:(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-2xl bg-gradient-to-br from-maroon-50 via-maroon-50 to-amber-50 dark:from-maroon-950/40 dark:via-maroon-950/30 dark:to-amber-950/20 border border-maroon-200/60 dark:border-maroon-800/40 shadow-lg",children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 w-32 h-32 bg-gradient-to-bl from-maroon-200/30 to-transparent rounded-bl-full"}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 w-24 h-24 bg-gradient-to-tr from-amber-200/20 to-transparent rounded-tr-full"}),(0,t.jsxs)("div",{className:"relative flex flex-col lg:flex-row gap-5 p-5 md:p-6",children:[(0,t.jsx)("div",{className:"flex-shrink-0 lg:w-[55%]",children:(0,t.jsx)("div",{className:"relative aspect-video rounded-xl overflow-hidden shadow-2xl ring-1 ring-white/10",children:l&&j?(0,t.jsx)("iframe",{src:`${j}?autoplay=1`,title:i||"Video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full"}):(0,t.jsxs)(t.Fragment,{children:[N?(0,t.jsx)("img",{src:N,alt:i||"Video thumbnail",title:i||"Video thumbnail",className:"w-full h-full object-cover",loading:"lazy"}):(0,t.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-maroon-900 to-slate-900"}),j&&(0,t.jsx)("button",{onClick:()=>{s(!0)},className:"absolute inset-0 flex items-center justify-center bg-black/30 hover:bg-black/40 transition-colors group","aria-label":"Play video",children:(0,t.jsx)("div",{className:"w-14 h-14 md:w-16 md:h-16 rounded-full bg-maroon-500/90 group-hover:bg-maroon-500 flex items-center justify-center shadow-lg transform group-hover:scale-110 transition-transform",children:(0,t.jsx)(n.Play,{className:"w-6 h-6 md:w-7 md:h-7 text-white ml-0.5",fill:"white"})})})]})})}),(0,t.jsxs)("div",{className:"flex flex-col justify-center lg:w-[45%]",children:[i&&(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,t.jsx)("div",{className:"w-7 h-7 rounded-full bg-maroon-500/20 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)(n.Play,{className:"w-3.5 h-3.5 text-maroon-500 dark:text-maroon-400",fill:"currentColor"})}),(0,t.jsx)("h2",{className:"text-lg md:text-xl font-serif font-bold text-foreground",children:i})]}),d&&(0,t.jsx)("p",{className:"text-sm md:text-base text-maroon-700 dark:text-maroon-300 font-medium mb-2",children:d}
1),k&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed mb-3",children:k}),m&&(0,t.jsx)("div",{className:"text-xs text-maroon-600/80 dark:text-maroon-400/80 italic mb-3 pl-3 border-l-2 border-maroon-300 dark:border-maroon-700",children:m}),u&&x&&(0,t.jsxs)("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 self-start px-4 py-2 text-sm bg-gradient-to-r from-maroon-500 to-maroon-500 hover:from-maroon-600 hover:to-maroon-600 text-white font-medium rounded-full shadow-sm hover:shadow-md transition-all duration-300",children:[x,(0,t.jsx)(h.ExternalLink,{className:"w-3.5 h-3.5"})]})]})]})]})}):null}function F({block:e,index:r,total:o,lang:a,footnoteMode:n="none"}){if(!e||"object"!=typeof e)return null;switch(e.type){case"paragraph":if(!e.children?.some(e=>"text"===e.type&&e.text&&""!==e.text.trim()))return null;return(0,t.jsx)("p",{children:e.children?.map((e,r)=>(0,t.jsx)(H,{node:e,footnoteMode:n},r))});case"heading":{let o=e.children?.map((e,r)=>(0,t.jsx)(H,{node:e,footnoteMode:n},r)),a="blog-heading",l=`heading-${r}`;if(1===e.level)return(0,t.jsx)("h1",{id:l,className:a,children:o});if(2===e.level)return(0,t.jsx)("h2",{id:l,className:a,children:o});if(3===e.level)return(0,t.jsx)("h3",{id:l,className:a,children:o});if(4===e.level)return(0,t.jsx)("h4",{id:l,className:a,children:o});if(5===e.level)return(0,t.jsx)("h5",{id:l,className:a,children:o});return(0,t.jsx)("h6",{id:l,className:a,children:o})}case"list":let l="ordered"===e.format;return(0,t.jsx)("div",{className:"blog-list-container",children:l?(0,t.jsx)("ol",{className:"blog-list blog-list-ordered",children:e.children?.map((e,r)=>(0,t.jsxs)("li",{className:"blog-list-item",children:[(0,t.jsx)("span",{className:"blog-list-number",children:r+1}),(0,t.jsx)("span",{className:"blog-list-content",children:e.children?.map((e,r)=>(0,t.jsx)(H,{node:e,footnoteMode:n},r))})]},r))}):(0,t.jsx)("ul",{className:"blog-list blog-list-unordered",children:e.children?.map((e,r)=>(0,t.jsxs)("li",{className:"blog-list-item",children:[(0,t.jsx)("span",{className:"blog-list-bullet"}),(0,t.jsx)("span",{className:"blog-list-content",children:e.children?.map((e,r)=>(0,t.jsx)(H,{node:e,footnoteMode:n},r))})]},r))})});case"quote":return(0,t.jsxs)("blockquote",{className:"blog-quote",children:[(0,t.jsx)("div",{className:"blog-quote-icon",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-8 h-8",children:(0,t.jsx)("path",{d:"M4.583 17.321C3.553 16.227 3 15 3 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 01-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179zm10 0C13.553 16.227 13 15 13 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 01-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179z"})})}),(0,t.jsx)("div",{className:"blog-quote-content",children:e.children?.map((e,r)=>(0,t.jsx)(H,{node:e,footnoteMode:n},r))})]});case"code":return(0,t.jsxs)("div",{className:"blog-code-block",children:[(0,t.jsxs)("div",{className:"blog-code-header",children:[(0,t.jsxs)("div",{className:"blog-code-dots",children:[(0,t.jsx)("span",{}),(0,t.jsx)("span",{}),(0,t.jsx)("span",{})]}),(0,t.jsx)("span",{className:"blog-code-label",children:"Code"})]}),(0,t.jsx)("pre",{children:(0,t.jsx)("code",{children:e.children?.map((e,r)=>(0,t.jsx)(H,{node:e,footnoteMode:n},r))})})]});case"image":return(0,t.jsx)(z,{image:e.image});default:return null}}function H({node:e,footnoteMode:r="none"}){let o=(0,a.useContext)(b);if(!e)return null;if("link"===e.type&&e.url)return(0,t.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"blog-link",children:e.children?.map((e,t)=>e.text).join("")||e.url});if("text"!==e.type||"string"!=typeof e.text)return null;let n="marker"===r&&o?o.startMap.get(e)??0:0,l=o?.anchorId??p,s=e.code?e.text:function(e,r,o,a){let n;if("none"===r||!e.includes("{"))return e;let l=[],s=0,i=0,d=0;for(v.lastIndex=0;null!==(n=v.exec(e));){let c=n[1];if(n.index>s&&l.push(e.slice(s,n.index)),"marker"===r){let e=o+d+1;d+=1;let r=`blog-fnref-${e}`;l.push((0,t.jsxs)("span",{className:"blog-footnote-term",id:r,children:[c,(0,t.jsx)("sup",{className:"blog-footnote-ref",children:(0,t.jsx)("a",{href:`#${a}`,onClick:e=>(function(e,t,r){let o="undefined"!=typeof document?document.getElementById(t):null;o&&(e.preventDefault(),$=r??null,o.scrollIntoView({behavior:"smooth",block:"start"}),S(o,"blog-footnotes-flash"))})(e,a,r),"aria-label":`Footnote ${e}`,children:e})})]},`fnt-${i++}`))}else"glossary"===r?l.push((0,t.jsx)("strong",{className:"blog-glossary-term",children:c},`gl-${i++}`)):l.push(c);s=v.lastIndex}return s<e.length&&l.push(e.slice(s)),l}(e.text,r,n,l);return e.bold&&(s=(0,t.jsx)("strong",{className:"blog-bold",children:s})),e.italic&&(s=(0,t.jsx)("em",{className:"blog-italic",children:s})),e.underline&&(s=(0,t.jsx)("span",{className:"blog-underline",children:s})),e.strikethrough&&(s=(0,t.jsx)("s",{className:"blog-strikethrough",children:s})),e.code&&(s=(0,t.jsx)("code",{className:"blog-inline-code",children:s})),(0,t.jsx)(t.Fragment,{children:s})}function z({image:e}){let o=(0,g.useLabeledImage)(e);if(!e?.url)return null;
1let a=e.formats,n=a?.miniHD?.url||a?.microHD?.url||a?.HD?.url||e.url;return n.startsWith("/")&&(n=`${r.STRAPI_URL}${n}`),(0,t.jsxs)("figure",{className:"blog-image",children:[(0,t.jsx)("div",{className:"blog-image-container",children:(0,t.jsx)("img",{src:n,alt:o,title:o,className:"blog-image-element",loading:"lazy"})}),e.caption&&(0,t.jsx)("figcaption",{className:"blog-image-caption",children:e.caption})]})}e.s(["BlogContentRenderer",()=>D],11766)},42950,e=>{"use strict";var t=e.i(18050),r=e.i(71645),o=e.i(64659),a=e.i(55900),n=e.i(70956);function l({htmlContent:e,variant:l="inline"}){let[s,i]=(0,r.useState)([]),[d,c]=(0,r.useState)(""),[m,u]=(0,r.useState)("sidebar"===l),[h,x]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{let e=setTimeout(()=>{let e=document.querySelector(".blog-article-content");if(!e)return;let t=e.getAttribute("data-lang")||"";x("hin"===t||"hindi"===t);let r=e.querySelectorAll("h1, h2, h3, h4"),o=[];r.forEach((e,t)=>{let r=e.textContent||"";if(!r.trim())return;let a=e.id;a||(e.id=a=`heading-${t}`);let n=parseInt(e.tagName.charAt(1));o.push({id:a,text:r.trim(),level:n})}),i(o)},100);return()=>clearTimeout(e)},[e]),(0,r.useEffect)(()=>{if(0===s.length)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&c(e.target.id)})},{rootMargin:"-120px 0px -66% 0px",threshold:0});return s.forEach(({id:t})=>{let r=document.getElementById(t);r&&e.observe(r)}),()=>e.disconnect()},[s]),s.length<2)return null;let g=(0,t.jsx)("nav",{"aria-label":"Table of contents",children:(0,t.jsx)("ul",{className:"space-y-0.5",children:s.map((e,r)=>(0,t.jsx)("li",{children:(0,t.jsx)("button",{onClick:()=>(e=>{let t=document.getElementById(e);if(t){let e=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--bk-header-h"))||76,r=t.getBoundingClientRect().top+window.pageYOffset-(e+16);window.scrollTo({top:r,behavior:"smooth"}),"sidebar"!==l&&u(!1)}})(e.id),className:`w-full text-left py-1.5 px-2.5 rounded-lg text-[13px] transition-all duration-200 ${h?"text-[0.95rem]":""} ${3===e.level?"pl-5":""} ${4===e.level?"pl-7":""} ${d===e.id?"bg-maroon-100 dark:bg-maroon-900/40 text-maroon-700 dark:text-maroon-300 font-medium":"text-muted-foreground hover:text-foreground hover:bg-muted/50"}`,children:(0,t.jsxs)("span",{className:"flex items-start gap-2",children:[(0,t.jsx)("span",{className:"text-[10px] text-maroon-400 dark:text-maroon-600 font-mono mt-0.5 shrink-0",children:String(r+1).padStart(2,"0")}),(0,t.jsx)("span",{className:"line-clamp-2 text-left",children:e.text})]})})},e.id))})});return"sidebar"===l?(0,t.jsxs)("div",{className:"blog-toc rounded-2xl border border-maroon-100/80 dark:border-maroon-900/40 bg-gradient-to-br from-maroon-50/60 to-transparent dark:from-maroon-950/25 p-3.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3 px-1",children:[(0,t.jsx)(n.List,{className:"h-3.5 w-3.5 text-maroon-600 dark:text-maroon-400"}),(0,t.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wider text-maroon-600 dark:text-maroon-400",children:"Contents"})]}),g]}):(0,t.jsx)("div",{className:"mb-8",children:(0,t.jsxs)("div",{className:"rounded-xl border border-maroon-100 dark:border-maroon-900/30 bg-gradient-to-br from-maroon-50/50 to-transparent dark:from-maroon-950/20 overflow-hidden",children:[(0,t.jsxs)("button",{onClick:()=>u(!m),className:"w-full flex items-center justify-between px-4 py-3 text-left hover:bg-maroon-50/50 dark:hover:bg-maroon-900/10 transition-colors",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wider text-maroon-600 dark:text-maroon-400",children:"Contents"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",s.length," sections)"]})]}),m?(0,t.jsx)(a.ChevronUp,{className:"h-4 w-4 text-maroon-500"}):(0,t.jsx)(o.ChevronDown,{className:"h-4 w-4 text-maroon-500"})]}),(0,t.jsx)("div",{className:`overflow-hidden transition-all duration-300 ease-in-out ${m?"max-h-96 opacity-100":"max-h-0 opacity-0"}`,children:(0,t.jsx)("div",{className:"px-4 pb-4",children:g})})]})})}e.s(["BlogTableOfContents",()=>l])},81909,e=>{"use strict";var t=e.i(18050),r=e.i(71645),o=e.i(64659),a=e.i(55900);function n(){let[e,n]=(0,r.useState)([]),[l,s]=(0,r.useState)(""),[i,d]=(0,r.useState)(!1),[c,m]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{let e=setTimeout(()=>{let e=document.querySelector(".blog-article-content");
1if(!e)return;let t=e.getAttribute("data-lang")||"";m("hin"===t||"hindi"===t);let r=e.querySelectorAll("h1, h2, h3, h4"),o=[];r.forEach((e,t)=>{let r=e.textContent||"";if(!r.trim())return;let a=e.id;a||(e.id=a=`heading-${t}`);let n=parseInt(e.tagName.charAt(1));o.push({id:a,text:r.trim(),level:n})}),n(o)},100);return()=>clearTimeout(e)},[]),(0,r.useEffect)(()=>{if(0===e.length)return;let t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&s(e.target.id)})},{rootMargin:"-100px 0px -66% 0px",threshold:0});return e.forEach(({id:e})=>{let r=document.getElementById(e);r&&t.observe(r)}),()=>t.disconnect()},[e]),e.length<2)return null;let u=e.find(e=>e.id===l);return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>d(!i),className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wider text-maroon-600 dark:text-maroon-400",children:"Jump to:"}),(0,t.jsx)("span",{className:"font-medium text-foreground max-w-[200px] truncate",children:u?.text||e[0]?.text||"Section"}),i?(0,t.jsx)(a.ChevronUp,{className:"h-3.5 w-3.5"}):(0,t.jsx)(o.ChevronDown,{className:"h-3.5 w-3.5"})]}),i&&(0,t.jsx)("div",{className:"absolute top-full left-0 mt-2 w-72 max-h-64 overflow-y-auto bg-background border border-border rounded-lg shadow-lg z-50",children:(0,t.jsx)("nav",{className:"p-2","aria-label":"Table of contents",children:(0,t.jsx)("ul",{className:"space-y-0.5",children:e.map((e,r)=>(0,t.jsx)("li",{children:(0,t.jsx)("button",{onClick:()=>(e=>{let t=document.getElementById(e);if(t){let e=t.getBoundingClientRect().top+window.pageYOffset-150;window.scrollTo({top:e,behavior:"smooth"}),d(!1)}})(e.id),className:`w-full text-left py-1.5 px-3 rounded-md text-sm transition-colors ${c?"text-[0.95rem]":""} ${3===e.level?"pl-5":""} ${4===e.level?"pl-7":""} ${l===e.id?"bg-maroon-100 dark:bg-maroon-900/40 text-maroon-700 dark:text-maroon-300 font-medium":"text-muted-foreground hover:text-foreground hover:bg-muted/50"}`,children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-xs text-maroon-400 dark:text-maroon-600 font-mono",children:String(r+1).padStart(2,"0")}),(0,t.jsx)("span",{className:"line-clamp-1",children:e.text})]})})},`${e.id}-${r}`))})})})]})}e.s(["BlogStickyTOC",()=>n])},61132,e=>{"use strict";let t,r,o;var a=e.i(18050),n=e.i(71645),l=e.i(70956),s=e.i(81140),i=e.i(20783),d=e.i(30030),c=e.i(10772),m=e.i(69340),u=e.i(26330),h=e.i(65491),x=e.i(74606),g=e.i(96626),f=e.i(48425),p=e.i(3536),b=e.i(85369),v=e.i(86312),j=Symbol("radix.slottable");function y(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===j}var N="Dialog",[k,w]=(0,d.createContextScope)(N),[C,$]=k(N),S=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:l,onOpenChange:s,modal:i=!0}=e,d=n.useRef(null),u=n.useRef(null),[h,x]=(0,m.useControllableState)({prop:o,defaultProp:l??!1,onChange:s,caller:N});return(0,a.jsx)(C,{scope:t,triggerRef:d,contentRef:u,contentId:(0,c.useId)(),titleId:(0,c.useId)(),descriptionId:(0,c.useId)(),open:h,onOpenChange:x,onOpenToggle:n.useCallback(()=>x(e=>!e),[x]),modal:i,children:r})};S.displayName=N;var R="DialogTrigger",D=n.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,n=$(R,r),l=(0,i.useComposedRefs)(t,n.triggerRef);return(0,a.jsx)(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":X(n.open),...o,ref:l,onClick:(0,s.composeEventHandlers)(e.onClick,n.onOpenToggle)})});D.displayName=R;var I="DialogPortal",[P,A]=k(I,{forceMount:void 0}),L=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:l}=e,s=$(I,t);return(0,a.jsx)(P,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,a.jsx)(g.Presence,{present:r||s.open,children:(0,a.jsx)(x.Portal,{asChild:!0,container:l,children:e})}))})};L.displayName=I;var E="DialogOverlay",T=n.forwardRef((e,t)=>{let r=A(E,e.__scopeDialog),{forceMount:o=r.forceMount,...n}=e,l=$(E,e.__scopeDialog);return l.modal?(0,a.jsx)(g.Presence,{present:o||l.open,children:(0,a.jsx)(_,{...n,ref:t})}):null});T.displayName=E;var B=((o=n.forwardRef((e,t)=>
1{let{children:r,...o}=e;if(n.isValidElement(r)){var a;let e,l,s=(a=r,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),d=function(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...e)=>{let t=n(...e);return a(...e),t}:a&&(r[o]=a):"style"===o?r[o]={...a,...n}:"className"===o&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(d.ref=t?(0,i.composeRefs)(t,s):s),n.cloneElement(r,d)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName="DialogOverlay.RemoveScroll.SlotClone",t=o,(r=n.forwardRef((e,r)=>{let{children:o,...l}=e,s=n.Children.toArray(o),i=s.find(y);if(i){let e=i.props.children,o=s.map(t=>t!==i?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...l,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,a.jsx)(t,{...l,ref:r,children:o})})).displayName="DialogOverlay.RemoveScroll.Slot",r),_=n.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,n=$(E,r);return(0,a.jsx)(b.RemoveScroll,{as:B,allowPinchZoom:!0,shards:[n.contentRef],children:(0,a.jsx)(f.Primitive.div,{"data-state":X(n.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),M="DialogContent",F=n.forwardRef((e,t)=>{let r=A(M,e.__scopeDialog),{forceMount:o=r.forceMount,...n}=e,l=$(M,e.__scopeDialog);return(0,a.jsx)(g.Presence,{present:o||l.open,children:l.modal?(0,a.jsx)(H,{...n,ref:t}):(0,a.jsx)(z,{...n,ref:t})})});F.displayName=M;var H=n.forwardRef((e,t)=>{let r=$(M,e.__scopeDialog),o=n.useRef(null),l=(0,i.useComposedRefs)(t,r.contentRef,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,v.hideOthers)(e)},[]),(0,a.jsx)(U,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,s.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,s.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,s.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),z=n.forwardRef((e,t)=>{let r=$(M,e.__scopeDialog),o=n.useRef(!1),l=n.useRef(!1);return(0,a.jsx)(U,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||r.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let a=t.target;r.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),U=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:s,...d}=e,c=$(M,r),m=n.useRef(null),x=(0,i.useComposedRefs)(t,m);return(0,p.useFocusGuards)(),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:s,children:(0,a.jsx)(u.DismissableLayer,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":X(c.open),...d,ref:x,onDismiss:()=>c.onOpenChange(!1)})}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Y,{titleId:c.titleId}),(0,a.jsx)(Q,{contentRef:m,descriptionId:c.descriptionId})]})]})}),O="DialogTitle",W=n.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,n=$(O,r);return(0,a.jsx)(f.Primitive.h2,{id:n.titleId,...o,ref:t})});W.displayName=O;var V="DialogDescription";n.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,n=$(V,r);return(0,a.jsx)(f.Primitive.p,{id:n.descriptionId,...o,ref:t})}).displayName=V;var q="DialogClose",G=n.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,n=$(q,r);return(0,a.jsx)(f.Primitive.button,{type:"button",...o,ref:t,onClick:(0,s.composeEventHandlers)(e.onClick,()=>n.onOpenChange(!1))})});function X(e){return e?"open":"closed"}G.displayName=q;var Z="DialogTitleWarning",[J,K]=(0,d.createContext)(Z,{contentName:M,titleName:O,docsSlug:"dialog"}),Y=({titleId:e})=>{let t=K(Z),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return n.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Q=({contentRef:e,descriptionId:t})=>{let r=K("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return n.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},ee=e.i(41947),ee=ee,et=e.i(75157);function er({...e}){return(0,a.jsx)(S,{"data-slot":"sheet",...e})}function eo({...e}){return(0,a.jsx)(D,{"data-slot":"sheet-trigger",...e})}function ea({...e}){return(0,a.jsx)(L,{"data-slot":"sheet-portal",...e})}function en({className:e,...t}){return(0,a.jsx)(T,{"data-slot":"sheet-overlay",className:(0,et.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function el({className:e,children:t,side:r="right",...o}){return(0,a.jsxs)(ea,{children:[(0,a.jsx)(en,{}),(0,a.jsxs)(F,{"data-slot":"sheet-content",className:(0,et.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===r&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===r&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===r&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===r&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...o,children:[t,(0,a.jsxs)(G,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,a.jsx)(ee.default,{className:"size-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function es({className:e,...t}){return(0,a.jsx)("div",{"data-slot":"sheet-header",className:(0,et.cn)("flex flex-col gap-1.5 p-4",e),...t})}function ei({className:e,...t}){return(0,a.jsx)(W,{"data-slot":"sheet-title",className:(0,et.cn)("text-foreground font-semibold",e),...t})}function ed(){let e=document.querySelector(".blog-article-content");
5if(!e)return{items:[],isHindi:!1};let t=e.getAttribute("data-lang")||"",r=[],o=new Set;return e.querySelectorAll("h1, h2, h3, h4").forEach((e,t)=>{let a=e.textContent?.trim()||"";if(!a)return;let n=e.id?.trim()||"";if(!n||o.has(n)){let r=t;for(n=`heading-${r}`;o.has(n);)r+=1,n=`heading-${r}`;e.id=n}o.add(n),r.push({id:n,text:a,level:parseInt(e.tagName.charAt(1),10)})}),{items:r,isHindi:"hin"===t||"hindi"===t}}function ec({compact:e=!1}){let[t,r]=(0,n.useState)(!1),[o,s]=(0,n.useState)([]),[i,d]=(0,n.useState)(""),[c,m]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{let e=setTimeout(()=>{let{items:e,isHindi:t}=ed();s(e),m(t)},120);return()=>clearTimeout(e)},[]),(0,n.useEffect)(()=>{if(!t)return;let{items:e,isHindi:r}=ed();s(e),m(r)},[t]),(0,n.useEffect)(()=>{if(0===o.length)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&d(e.target.id)})},{rootMargin:"-120px 0px -66% 0px",threshold:0});return o.forEach(({id:t})=>{let r=document.getElementById(t);r&&e.observe(r)}),()=>e.disconnect()},[o]),o.length<2)?null:(0,a.jsxs)(er,{open:t,onOpenChange:r,children:[(0,a.jsx)(eo,{asChild:!0,children:(0,a.jsxs)("button",{type:"button",className:`flex items-center gap-1.5 font-medium text-maroon-700 dark:text-maroon-300 hover:text-maroon-800 dark:hover:text-maroon-200 transition-colors shrink-0 ${e?"text-xs":"text-sm"}`,"aria-label":"Open table of contents",title:"Contents",children:[(0,a.jsx)(l.List,{className:e?"h-3.5 w-3.5":"h-4 w-4"}),(0,a.jsx)("span",{className:e?"hidden":"hidden sm:inline",children:"Contents"})]})}),(0,a.jsxs)(el,{side:"right",className:"!inset-y-auto !top-1/2 !right-3 sm:!right-4 !bottom-auto !h-[min(80vh,40rem)] !max-h-[80vh] !w-[min(calc(100%-1.5rem),20rem)] sm:!max-w-sm !-translate-y-1/2 !rounded-2xl !border !border-l !border-maroon-100 dark:!border-maroon-900/40 shadow-2xl p-0 flex flex-col overflow-hidden gap-0",children:[(0,a.jsx)(es,{className:"px-4 py-3 border-b border-maroon-100 dark:border-maroon-900/40 text-left shrink-0 pr-12",children:(0,a.jsx)(ei,{className:"text-base font-serif text-maroon-800 dark:text-maroon-200",children:"Contents"})}),(0,a.jsx)("nav",{className:"flex-1 min-h-0 overflow-y-auto px-3 py-3","aria-label":"Table of contents",children:(0,a.jsx)("ul",{className:"space-y-0.5",children:o.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsx)("button",{type:"button",onClick:()=>(e=>{let t=document.getElementById(e);if(!t)return;let o=()=>{let e=document.querySelector(".uh-header-wrap"),t=e?.getBoundingClientRect().bottom||parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--bk-header-h"))||76,r=document.querySelector("[data-bk-sticky-bar]");return r?"fixed"===getComputedStyle(r).position?r.getBoundingClientRect().bottom+14:t+r.offsetHeight+14:t+(parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--bk-sticky-h"))||52)+14},a=o();t.style.scrollMarginTop=`${a}px`,r(!1),window.setTimeout(()=>{let e=o();t.style.scrollMarginTop=`${e}px`,t.scrollIntoView({behavior:"smooth",block:"start"})},80)})(e.id),className:`w-full text-left py-2 px-2.5 rounded-lg text-[13px] transition-colors ${c?"text-[0.95rem]":""} ${3===e.level?"pl-5":""} ${4===e.level?"pl-7":""} ${i===e.id?"bg-maroon-100 dark:bg-maroon-900/40 text-maroon-700 dark:text-maroon-300 font-medium":"text-muted-foreground hover:text-foreground hover:bg-muted/50"}`,children:(0,a.jsxs)("span",{className:"flex items-start gap-2",children:[(0,a.jsx)("span",{className:"text-[10px] text-maroon-400 dark:text-maroon-600 font-mono mt-0.5 shrink-0",children:String(t+1).padStart(2,"0")}),(0,a.jsx)("span",{className:"line-clamp-2 text-left",children:e.text})]})})},`${e.id}-${t}`))})})]})]})}e.s(["BlogTocDrawer",()=>ec],61132)},43002,e=>{"use strict";var t=e.i(71645),r=e.i(86376);function o({postId:e,title:o,slug:a,lang:n,excerpt:l,imageUrl:s}){return(0,t.useEffect)(()=>{let t=setTimeout(()=>{(0,r.addToReadingHistory)({postId:e,title:o,slug:a,lang:n,excerpt:l,imageUrl:s,type:"blog"}).catch(e=>{console.error("Error tracking blog reading history:",e)})},3e3);return()=>clearTimeout(t)},[e,o,a,n,l,s]),null}e.s(["BlogReadingTracker",()=>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.