{"version":3,"file":"CalsupTableOfContents.Dv2Mgswx.mjs","names":["React.useId","__exportAll","init_ssg_sandbox_shims","init_npm_react_18_3_1","p","c","init_jsx_runtime","ie","window","init_framer_D6uXRwWs","addPropertyControls","ControlType","CalsupTableOfContents_exports","__FramerMetadata__","SiteToc","headingId","links","items","label","href","row","x","style","title","item","e","init_CalsupTableOfContents","__esmMin","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerContractVersion\"","\"framerSupportedLayoutWidth\"","\"framerSupportedLayoutHeight\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/HO24tJ8RbGMQS5MQXaKV/61BxVFV4Bn4VWoH7PDaw/CalsupTableOfContents.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function SiteToc({title=\"このページの目次\",items=\"使い方|#steps\",style}){const headingId=React.useId();let links=[];links=items.split(\";\").map(row=>{const[label,href]=row.split(\"|\");return{label,href};}).filter(x=>x.label&&x.href?.startsWith(\"#\"));return /*#__PURE__*/_jsxs(\"nav\",{className:\"calsup-shared-toc\",\"aria-labelledby\":headingId,style:{...style,position:\"relative\",width:\"100%\",height:\"auto\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n.calsup-shared-toc{box-sizing:border-box!important;background:#F9F8F7!important;border:0!important;border-radius:16px!important;padding:24px!important;box-shadow:none!important;text-align:left!important;font-family:\"IBM Plex Sans JP\",sans-serif!important}\n.framer-text-module > .calsup-shared-toc{margin-top:40px!important}\n/* The anchor immediately after a TOC must not add to the 40px section gap. */\n.framer-text-module:has(> .calsup-shared-toc) + .framer-text-module > [aria-hidden=\"true\"][id]{height:0!important}\n.calsup-shared-toc h2{margin:0 0 24px!important;padding:0!important;font-family:inherit!important;font-size:32px!important;font-weight:500!important;line-height:1.3!important;letter-spacing:-.03em!important;color:#3E372D!important;text-align:left!important}\n.calsup-shared-toc ul{list-style:none!important;display:flex!important;flex-direction:column!important;gap:12px!important;margin:0!important;padding:0!important}\n.calsup-shared-toc li{display:block!important;list-style:none!important;margin:0!important;padding:0!important}\n.calsup-shared-toc a{display:block!important;font-family:inherit!important;font-size:16px!important;font-weight:400!important;line-height:1.6!important;letter-spacing:0!important;color:#906846!important;text-decoration:none!important;margin:0!important;padding:0!important;overflow-wrap:anywhere!important}\n.calsup-shared-toc a:hover{text-decoration:underline!important}\n.calsup-shared-toc a:focus-visible{outline:2px solid currentColor;outline-offset:4px}\n@media(max-width:1199px){.framer-text-module > .calsup-shared-toc{margin-top:40px!important}\n.calsup-shared-toc h2{font-size:28px!important}}\n@media(max-width:809px){.framer-text-module > .calsup-shared-toc{margin-top:40px!important}\n.calsup-shared-toc h2{font-size:24px!important}}\n        `}),/*#__PURE__*/_jsx(\"h2\",{id:headingId,children:title}),/*#__PURE__*/_jsx(\"ul\",{children:links.map(item=>/*#__PURE__*/_jsx(\"li\",{children:/*#__PURE__*/_jsx(\"a\",{href:item.href,onClick:e=>{if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;const handled=!window.dispatchEvent(new CustomEvent(\"calsup-toc-navigate\",{detail:item.href.slice(1),cancelable:true}));if(handled){e.preventDefault();e.stopPropagation();if(!window.location.hostname.endsWith(\"framercanvas.com\"))window.history.pushState(null,\"\",item.href);}},children:item.label})},item.href))})]});}addPropertyControls(SiteToc,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"このページの目次\"},items:{type:ControlType.String,title:\"Items\",displayTextArea:true,defaultValue:\"使い方|#steps\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SiteToc\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"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