{"version":3,"file":"Y_o7bekvb.yCuFoKPf.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/nta4Uh1XfjVRGAs4laMA/bUFoP3C7pN6Qf2eDFonN/caption_click_table.js","https:/framerusercontent.com/modules/wu7LovPOGIR08AzWD4Ev/9ekRcPkfPmUS1peOjsJP/Y_o7bekvb.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";export function CaptionOverride(){React.useEffect(()=>{const observer=new MutationObserver(()=>{const textElements=document.querySelectorAll(\"p, span, div\");textElements.forEach(element=>{if(!(element instanceof HTMLElement))return;const text=element.innerText.trim();const match=text.match(/^caption\\s*-\\s*(.+)/i);if(match){const captionText=match[1].trim();const previousElement=element.previousElementSibling;if(previousElement&&previousElement.tagName===\"IMG\"){if(previousElement.nextElementSibling?.classList.contains(\"custom-caption\")){return;}const captionDiv=document.createElement(\"div\");captionDiv.innerText=captionText;captionDiv.classList.add(\"custom-caption\");captionDiv.style.cssText=`\n                            font-size: 14px;\n                            color: #000;\n                            text-align: center;\n                            margin-top: 5px;\n                            font-weight: bold;\n                        `;previousElement.insertAdjacentElement(\"afterend\",captionDiv);element.remove();previousElement.style.cursor=\"pointer\";previousElement.addEventListener(\"click\",()=>openImageModal(previousElement.src));}}});});observer.observe(document.body,{childList:true,subtree:true});return()=>observer.disconnect();},[]);return{};}function openImageModal(imageSrc){const existingModal=document.querySelector(\".image-modal\");if(existingModal){existingModal.remove();}const modalBackground=document.createElement(\"div\");modalBackground.classList.add(\"image-modal\");modalBackground.style.cssText=`\n        position: fixed;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n        background-color: rgba(0, 0, 0, 0.8);\n        display: flex;\n        justify-content: center;\n        align-items: center;\n        z-index: 1000;\n    `;const modalImage=document.createElement(\"img\");modalImage.src=imageSrc;modalImage.style.cssText=`\n        max-width: 90%;\n        max-height: 90%;\n        border-radius: 8px;\n        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);\n    `;modalBackground.addEventListener(\"click\",()=>modalBackground.remove());modalBackground.appendChild(modalImage);document.body.appendChild(modalBackground);}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withCaptionOverride(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CaptionOverride(props)});};}withCaptionOverride.displayName=\"CaptionOverride\";\nexport const __FramerMetadata__ = {\"exports\":{\"CaptionOverride\":{\"type\":\"override\",\"name\":\"CaptionOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCaptionOverride\":{\"type\":\"reactHoc\",\"name\":\"withCaptionOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./caption_click_table.map","// Generated by Framer (bf2ee14)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-SmAcv .framer-styles-preset-xm8y1h:not(.rich-text-wrapper), .framer-SmAcv .framer-styles-preset-xm8y1h.rich-text-wrapper a { --framer-link-current-text-color: var(--token-c053d9f5-3a3a-4f8d-8edf-e8df73edf9c0, #6560eb); --framer-link-current-text-decoration: none; --framer-link-hover-text-color: #46a6f0; --framer-link-hover-text-decoration: underline; --framer-link-text-color: #aba9a9; --framer-link-text-decoration: none; }\"];export const className=\"framer-SmAcv\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"wQAAuE,SAAgB,GAAiB,CAMqO,OANpO,MAAoB,CAAC,IAAM,EAAS,IAAI,qB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