{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Fsq3TkBfZJY61F6YkYAK/y97JfGAFrwotsQBY36BL/Showcase.js", "ssg:https://framerusercontent.com/modules/P2ifdtjQZM3N9ckhvTAf/1TidqnzRdDty0rFS6AgF/TableContent.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";const platforms=[{title:\"Share on Twitter\",id:\"twitter\",icon:/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 38.51 38.51\",id:\"x\",width:\"28px\",height:\"28px\",children:[/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsxs(\"linearGradient\",{id:\"a\",x1:\".66\",x2:\"37.84\",y1:\"3.65\",y2:\"34.85\",gradientUnits:\"userSpaceOnUse\",children:[/*#__PURE__*/_jsx(\"stop\",{offset:\"0\",\"stop-color\":\"#646464\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\".72\",\"stop-color\":\"#1d1d1d\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"1\"})]})}),/*#__PURE__*/_jsx(\"g\",{children:/*#__PURE__*/_jsxs(\"g\",{children:[/*#__PURE__*/_jsxs(\"g\",{children:[/*#__PURE__*/_jsx(\"path\",{fill:\"url(#a)\",d:\"M16.16,20.54L6.82,6.95h8.09l6.94,6.98,6-6.98h3.36l7.29,7.44v-7.42c0-3.83-3.14-6.97-6.97-6.97H6.97C3.14,0,0,3.14,0,6.97v24.57c0,3.83,3.14,6.97,6.97,6.97h6.79l-7.08-6.95,9.48-11.02Z\"}),/*#__PURE__*/_jsx(\"path\",{fill:\"#161616\",d:\"M38.51,31.54V14.38l-7.29-7.44h-3.36l-6,6.98-6.94-6.98H6.82l9.34,13.6-9.48,11.02,7.08,6.95h17.78c3.83,0,6.97-3.14,6.97-6.97Z\"})]}),/*#__PURE__*/_jsx(\"path\",{fill:\"#fff\",d:\"M31.83,31.56h-8.09l-6.08-8.85-7.61,8.85h-3.36l9.48-11.02L6.82,6.95h8.09l5.75,8.36,7.2-8.36h3.36l-9.06,10.53,9.68,14.08ZM24.26,30.56h5.67l-9.04-13.15,8.14-9.47h-.72l-7.74,9-6.19-9h-5.67l8.7,12.66-8.56,9.95h.72l8.16-9.49,6.52,9.49ZM29.05,30.1h-4.35L9.58,8.48h4.35l15.11,21.62ZM25.22,29.1h1.91L13.41,9.48h-1.91l13.71,19.62Z\"})]})})]})},{title:\"Share on linkedin\",id:\"linkedin\",icon:/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 28.87 28.87\",id:\"linkedin\",width:\"28px\",height:\"28px\",children:/*#__PURE__*/_jsx(\"g\",{id:\"Layer_2\",children:/*#__PURE__*/_jsxs(\"g\",{id:\"Layer_1-2\",children:[/*#__PURE__*/_jsx(\"rect\",{width:\"28.87\",height:\"28.87\",rx:\"6.48\",ry:\"6.48\",fill:\"#0b86ca\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M8 12h3v9.68H8zm1.53-4.81a1.74 1.74 0 1 1-1.74 1.75 1.74 1.74 0 0 1 1.74-1.75M12.92 12h2.89v1.32a3.16 3.16 0 0 1 2.85-1.56c3 0 3.61 2 3.61 4.61v5.31h-3V17c0-1.12 0-2.57-1.56-2.57s-1.8 1.22-1.8 2.48v4.79h-3z\",fill:\"#fff\"})]})})})}];export function withSocialShare(ComponentType){const onSocialClick=platform=>{if(platform===\"linkedin\"){window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${window.location.href}`,\"_blank\");return;}if(platform===\"twitter\"){window.open(`https://twitter.com/share?text='Hi there, checkout this hot article on Phrutos '&url=${window.location.href}`,\"_blank\");return;}};return props=>/*#__PURE__*/_jsx(ComponentType,{...props,children:/*#__PURE__*/_jsx(\"ul\",{style:{...socialStyle},children:platforms.map(item=>/*#__PURE__*/_jsx(\"li\",{style:{...socialIconStyle},onClick:()=>onSocialClick(item===null||item===void 0?void 0:item.id),children:item===null||item===void 0?void 0:item.icon}))})});}const socialStyle={display:\"flex\",listStyle:\"none\",gap:\"20px\",padding:\"0px\",justifyContent:\"center\"};const socialIconStyle={cursor:\"pointer\"};\nexport const __FramerMetadata__ = {\"exports\":{\"withSocialShare\":{\"type\":\"reactHoc\",\"name\":\"withSocialShare\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Showcase.map", "import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{motion}from\"framer-motion\";export function TableOfContents(){const[headings,setHeadings]=useState([]);const[activeId,setActiveId]=useState(null);useEffect(()=>{const style=document.createElement(\"style\");style.innerHTML=`\n        html {\n            scroll-padding-top: 83px;\n            scroll-behavior: smooth;\n        }\n    `;document.head.appendChild(style);return()=>{document.head.removeChild(style);};},[]);useEffect(()=>{// Scope to the main content container (adjust selector if necessary)\nconst contentContainer=document.querySelector(\"main\")||document.body;// Get all headings within the container\nconst allHeadings=Array.from(contentContainer.querySelectorAll(\"h2\"));// Process headings to structure them hierarchically\nconst structuredHeadings=[];let currentH2=null;allHeadings.forEach(heading=>{const tag=heading.tagName.toLowerCase();const text=heading.innerText.trim();// Skip blank or empty headings\nif(!text)return;// Assign an ID if missing\nconst id=heading.id||text.toLowerCase().replace(/\\s+/g,\"-\");heading.id=id;if(tag===\"h2\"){// Create a new parent <h2> entry\ncurrentH2={id,text,children:[],key:`h2-${id}`};structuredHeadings.push(currentH2);}// else if (tag === \"h3\" && currentH2) {\n//     // Add <h3> as a child of the current <h2>\n//     currentH2.children.push({ id, text, key: `h3-${id}` })\n// }\n});setHeadings(structuredHeadings);// Observer for highlighting active heading\nconst observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting){setActiveId(entry.target.id);}});},{root:null,rootMargin:\"0px 0px -70% 0px\",threshold:.1});allHeadings.forEach(heading=>observer.observe(heading));return()=>{allHeadings.forEach(heading=>observer.unobserve(heading));};},[]);{console.log(headings);}return /*#__PURE__*/_jsxs(motion.div,{className:\"toc\",style:{position:\"sticky\",top:\"10px\"},children:[/*#__PURE__*/_jsx(\"h3\",{style:{color:\"#000\",fontSize:\"20px\",fontFamily:\"Inter\",fontWeight:\"600\",textDecoration:\"none\",paddingBottom:\"20px\"},children:\"Table of Contents\"}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"10px\"},children:headings.map(h2=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"10px\"},children:[/*#__PURE__*/_jsx(\"a\",{href:`#${h2.id}`,style:{color:h2.id===activeId?\"#7E41E1\":\"#000\",fontSize:\"14px\",fontFamily:\"Inter\",fontWeight:\"400\",textDecoration:\"none\"},children:h2.text}),h2?.children?.length>0&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"10px\"},children:h2.children.map(h3=>/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"10px\"},children:/*#__PURE__*/_jsx(\"a\",{href:`#${h3.id}`,style:{color:h3.id===activeId?\"#7E41E1\":\"#000\",fontSize:\"14px\",fontFamily:\"Inter\",fontWeight:\"400\",textDecoration:\"none\"},children:h3.text})},h3.key))})]},h2.key))})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"TableOfContents\":{\"type\":\"reactComponent\",\"name\":\"TableOfContents\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TableContent.map"],
  "mappings": "2IAAyD,IAAMA,EAAU,CAAC,CAAC,MAAM,mBAAmB,GAAG,UAAU,KAAkBC,EAAM,MAAM,CAAC,MAAM,6BAA6B,QAAQ,kBAAkB,GAAG,IAAI,MAAM,OAAO,OAAO,OAAO,SAAS,CAAcC,EAAK,OAAO,CAAC,SAAsBD,EAAM,iBAAiB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C,QAAQ,OAAO,cAAc,SAAS,IAAI,MAAM,EAAE,SAAsBA,EAAK,IAAI,CAAC,KAAK,IAAIE,EAAG,KAAK,MAAM,CAAC,MAAMA,EAAG,KAAKnB,EAAS,UAAU,OAAO,SAAS,OAAO,WAAW,QAAQ,WAAW,MAAM,eAAe,MAAM,EAAE,SAASmB,EAAG,IAAI,CAAC,CAAC,EAAEA,EAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAED,EAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE",
  "names": ["platforms", "u", "p", "withSocialShare", "ComponentType", "onSocialClick", "platform", "window", "props", "socialStyle", "item", "socialIconStyle", "TableOfContents", "headings", "setHeadings", "ye", "activeId", "setActiveId", "ue", "style", "contentContainer", "allHeadings", "structuredHeadings", "currentH2", "heading", "tag", "text", "id", "observer", "entries", "entry", "u", "motion", "p", "h2", "h3"]
}
