(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,840,e=>{"use strict";var t=e.i(43476),r=e.i(71645),l=e.i(98336),n=e.i(54316);let i=(0,r.forwardRef)(({title:e="",category:i="",children:c=null},a)=>{let u="string"==typeof e?e:(0,n.extractTextFromReactNode)(e),o=i?`${i} - ${u}`:u,s=(0,n.generateIdForBlogTitle)(o),f=(0,r.useRef)(null),d=(0,r.useRef)([]),p=(0,r.useRef)(null);(0,r.useImperativeHandle)(a,()=>{let e={parentRef:f.current,childRefs:d.current};return p.current=e,e}),(0,r.useEffect)(()=>{"function"==typeof a&&p.current&&a(p.current)},[e,i]);let m=e=>{if(!e)return;let{parentRef:t}=e;!t||(d.current.some(e=>e.parentRef===t)||d.current.push(e),"function"==typeof a&&p.current&&a(p.current))};return(0,t.jsxs)("div",{className:l.default["blog-section"],"data-title":u,"data-id":s,ref:f,children:[(0,t.jsx)("h3",{className:`${l.default["blog-section__title"]} ${e?"":l.default["blog-section__title--empty"]}`,children:e?(0,t.jsx)("a",{href:(0,n.generateSectionHref)(s),className:l.default["blog-section__title-link"],onClick:e=>e.preventDefault(),children:e}):(0,t.jsx)("p",{children:"No title"})}),r.Children.map(c,e=>(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{ref:m}):e)]})});i.displayName="BlogSection",e.s(["default",0,i])}]);