{"version":3,"file":"AxTSsohS2.DaAEmrqa.mjs","names":["Blog"],"sources":["https:/framerusercontent.com/modules/R02NIyrPJRfIy8u7YtzZ/dYWnRHN9FNkJD8FIc4ye/AxTSsohS2.js"],"sourcesContent":["// Generated by Framer (506606a)\nimport{getWhereExpressionFromPathVariables,QueryEngine}from\"framer\";import Blog from\"https://framerusercontent.com/modules/x962JPJOMiWxPYUWFSPM/6zG22rMLWcUdQH3a7kkg/fQI8_Bg9n.js\";const toString=value=>{return typeof value===\"string\"?value:String(value);};export default function metadata(params,activeLocale){const SP70h0CdF=params?.[\"SP70h0CdF\"];const q3NS6cB8v=params?.[\"q3NS6cB8v\"];return{breakpoints:[{hash:\"rqxpz4\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"1v9w9et\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"fbj7gn\",mediaQuery:\"(max-width: 809.98px)\"}],customHTMLHeadEnd:\"<script>\\nfunction createHeadingsList() {\\n    let contentDiv = document.querySelector('article[data-framer-name=\\\"Content\\\"]');\\n    if (!contentDiv) {\\n        contentDiv = document.body;\\n    }\\n    \\n    const targetContainer = document.querySelector('.heading-list-container');\\n    if (!targetContainer) {\\n        return;\\n    }\\n    \\n    // Check if the container is intentionally hidden by Framer/CSS (e.g., on mobile)\\n    const style = window.getComputedStyle(targetContainer);\\n    if (style.display === 'none' || style.opacity === '0') {\\n        // Do not generate the list if the container is hidden by design\\n        return;\\n    }\\n\\n    let h2Elements = contentDiv.querySelectorAll('h2.framer-styles-preset-1blnugl');\\n    if (h2Elements.length === 0) {\\n        h2Elements = contentDiv.querySelectorAll('h2');\\n    }\\n    \\n    // Filter out the h2 inside the target container (e.g., \\\"In this article\\\")\\n    const sidebarH2 = targetContainer.querySelector('h2');\\n    const filteredH2s = Array.from(h2Elements).filter(h2 => h2 !== sidebarH2);\\n    \\n    if (filteredH2s.length === 0) {\\n        targetContainer.style.display = 'none';\\n        return;\\n    }\\n    \\n    targetContainer.style.display = 'block';\\n    \\n    const ul = document.createElement('ul');\\n    ul.className = 'article-heading-list';\\n    \\n    filteredH2s.forEach((heading, index) => {\\n        const headingId = `heading${index + 1}`;\\n        heading.id = headingId;\\n        heading.classList.add('anchor');\\n        \\n        const li = document.createElement('li');\\n        li.id = `nav-${headingId}`;\\n        const a = document.createElement('a');\\n        a.href = `#${headingId}`;\\n        a.textContent = heading.textContent.trim();\\n        \\n        a.addEventListener('click', (e) => {\\n            e.preventDefault();\\n            const targetHeading = document.querySelector(`#${headingId}`);\\n            if (targetHeading) {\\n                const offset = 200;\\n                const targetPosition = targetHeading.getBoundingClientRect().top + window.pageYOffset - offset;\\n                \\n                window.scrollTo({\\n                    top: targetPosition,\\n                    behavior: 'smooth'\\n                });\\n                history.pushState(null, null, `#${headingId}`);\\n            }\\n        });\\n        \\n        li.appendChild(a);\\n        ul.appendChild(li);\\n        \\n        const observer = new IntersectionObserver(\\n            (entries) => {\\n                entries.forEach(entry => {\\n                    const navItem = document.querySelector(`#nav-${headingId}`);\\n                    if (navItem && entry.isIntersecting) {\\n                        document.querySelectorAll('.article-heading-list li').forEach(item => {\\n                            item.style.fontWeight = 'normal';\\n                        });\\n                        navItem.style.fontWeight = 'bold';\\n                    }\\n                });\\n            },\\n            {\\n                rootMargin: '-10% 0px -70% 0px'\\n            }\\n        );\\n        observer.observe(heading);\\n    });\\n    \\n    const existingList = targetContainer.querySelector('.article-heading-list');\\n    if (existingList) {\\n        existingList.remove();\\n    }\\n    \\n    targetContainer.appendChild(ul);\\n}\\n\\nfunction runHeadingsListWithRetry(maxRetries = 5, currentRetry = 0) {\\n    if (currentRetry >= maxRetries) {\\n        return;\\n    }\\n    \\n    createHeadingsList();\\n    \\n    const headingsList = document.querySelector('.article-heading-list');\\n    const hasHeadings = headingsList && headingsList.children.length > 0;\\n    \\n    if (!hasHeadings && document.querySelector('h2') && document.querySelector('.heading-list-container')) {\\n        setTimeout(() => {\\n            runHeadingsListWithRetry(maxRetries, currentRetry + 1);\\n        }, 500);\\n    }\\n}\\n\\n// Initial Run\\nif (document.readyState === 'loading') {\\n    document.addEventListener('DOMContentLoaded', () => runHeadingsListWithRetry());\\n} else {\\n    runHeadingsListWithRetry();\\n}\\n\\n// 1. Listen for Screen Resizing (New Fix)\\nlet resizeTimer;\\nwindow.addEventListener('resize', () => {\\n    clearTimeout(resizeTimer);\\n    resizeTimer = setTimeout(() => {\\n        runHeadingsListWithRetry(3); // Less aggressive retry count on resize\\n    }, 200); // Wait 200ms after resizing stops\\n});\\n\\n// 2. Listen for Framer navigation changes\\nlet currentUrl = window.location.href;\\nconst urlObserver = new MutationObserver(() => {\\n    if (currentUrl !== window.location.href) {\\n        currentUrl = window.location.href;\\n        setTimeout(() => runHeadingsListWithRetry(), 500);\\n    }\\n});\\nurlObserver.observe(document, { subtree: true, childList: true });\\n\\n// 3. Listen for popstate (browser back/forward)\\nwindow.addEventListener('popstate', () => {\\n    setTimeout(() => runHeadingsListWithRetry(), 500);\\n});\\n</script>\",description:`${q3NS6cB8v!==undefined?toString(q3NS6cB8v):\"{{q3NS6cB8v}}\"}`,elements:{WvY4nf7VU:\"footer\"},framerSearch:{index:true},robots:\"max-image-preview:large\",serializationId:\"framer-aQdN2\",title:`${SP70h0CdF!==undefined?toString(SP70h0CdF):\"{{SP70h0CdF}}\"}`,viewport:\"width=device-width\"};}export async function fetchMetadata(pathVariables,activeLocale){const queryEngine=new QueryEngine;const query={from:{alias:\"AxTSsohS2\",data:Blog,type:\"Collection\"},select:[{collection:\"AxTSsohS2\",name:\"SP70h0CdF\",type:\"Identifier\"},{collection:\"AxTSsohS2\",name:\"q3NS6cB8v\",type:\"Identifier\"}],where:getWhereExpressionFromPathVariables(pathVariables,\"AxTSsohS2\")};const result=await queryEngine.query(query,activeLocale);if(result.length===0){throw new Error(\"No data matches pathVariables\");}const params=result[0];return metadata(params,activeLocale);}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fetchMetadata\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"mQAC+P,SAAwB,EAAS,EAAO,EAAa,CAAC,IAAM,EAAU,GAAS,UAAmB,EAAU,GAAS,UAAa,MAAM,CAAC,YAAY,CAAC,CAAC,KAAK,SAAS,WAAW,sBAAsB,CAAC,CAAC,KAAK,UAAU,WAAW,gDAAgD,CAAC,CAAC,KAAK,SAAS,WAAW,wBAAwB,CAAC,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAq0J,YAAY,GAAG,IAAY,IAAA,GAA8B,gBAApB,EAAS,EAAU,GAAmB,SAAS,CAAC,UAAU,SAAS,CAAC,aAAa,CAAC,MAAM,GAAK,CAAC,OAAO,0BAA0B,gBAAgB,eAAe,MAAM,GAAG,IAAY,IAAA,GAA8B,gBAApB,EAAS,EAAU,GAAmB,SAAS,qBAAqB,CAAE,eAAsB,EAAc,EAAc,EAAa,CAAC,IAAM,EAAY,IAAI,EAAkB,EAAM,CAAC,KAAK,CAAC,MAAM,YAAY,KAAKA,EAAK,KAAK,aAAa,CAAC,OAAO,CAAC,CAAC,WAAW,YAAY,KAAK,YAAY,KAAK,aAAa,CAAC,CAAC,WAAW,YAAY,KAAK,YAAY,KAAK,aAAa,CAAC,CAAC,MAAM,EAAoC,EAAc,YAAY,CAAC,CAAO,EAAO,MAAM,EAAY,MAAM,EAAM,EAAa,CAAC,GAAG,EAAO,SAAS,EAAG,MAAU,MAAM,gCAAgC,CAAE,IAAM,EAAO,EAAO,GAAG,OAAO,EAAS,EAAO,EAAa,wBAAxqM,IAA+G,CAAM,EAAS,GAAe,OAAO,GAAQ,SAAS,EAAM,OAAO,EAAM,CAA+/L,EAAgB,EAC9vM,EAAqB,CAAC,QAAU,CAAC,QAAU,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,IAAI,CAAC,CAAC,gBAAkB,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,IAAI,CAAC,CAAC,cAAgB,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,IAAI,CAAC,CAAC,mBAAqB,CAAC,KAAO,WAAW,CAAC,CAAC"}