{"version":3,"file":"TextWithDots.CetMuA79.mjs","names":["_jsx","React.isValidElement","React.cloneElement","__esmMin","init_npm_react_18_3_1","z","K","c","init_jsx_runtime","withDotsSmall","Component","props","processDotsInChildren","children","html","match","content","char","element","child","newChildren","withDotsMedium","init_TextWithDots"],"sources":["https:/framerusercontent.com/modules/YJIm4iovqM8t87H0b70b/JPoVXhSjm6dOuC1Tb8JD/TextWithDots.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";// 小サイズの黒丸（HOC方式）\nexport function withDotsSmall(Component){return props=>{const processDotsInChildren=children=>{if(typeof children===\"string\"){// [[]]を含む場合はdangerouslySetInnerHTMLで処理\nif(children.includes(\"[[\")){const html=children.replace(/\\[\\[([^\\]]+)\\]\\]/g,(match,content)=>{return content.split(\"\").map(char=>{if(char===\" \"||char===\"　\")return char;return`<ruby>${char}<rt style=\"font-size: 4px !important; font-weight: 800 !important; position: relative !important; top: -4px !important;\">●</rt></ruby>`;}).join(\"\");});return /*#__PURE__*/_jsx(\"span\",{dangerouslySetInnerHTML:{__html:html}});}return children;}if(/*#__PURE__*/React.isValidElement(children)){const element=children;return /*#__PURE__*/React.cloneElement(element,{...element.props,children:processDotsInChildren(element.props.children)});}if(Array.isArray(children)){return children.map(child=>processDotsInChildren(child));}return children;};const newChildren=processDotsInChildren(props.children);return /*#__PURE__*/_jsx(Component,{...props,children:newChildren});};}// 中サイズの黒丸（HOC方式）\nexport function withDotsMedium(Component){return props=>{const processDotsInChildren=children=>{if(typeof children===\"string\"){if(children.includes(\"[[\")){const html=children.replace(/\\[\\[([^\\]]+)\\]\\]/g,(match,content)=>{return content.split(\"\").map(char=>{if(char===\" \"||char===\"　\")return char;return`<ruby>${char}<rt style=\"font-size: 8px !important; font-weight: 800 !important; position: relative !important; top: -4px !important;\">●</rt></ruby>`;}).join(\"\");});return /*#__PURE__*/_jsx(\"span\",{dangerouslySetInnerHTML:{__html:html}});}return children;}if(/*#__PURE__*/React.isValidElement(children)){const element=children;return /*#__PURE__*/React.cloneElement(element,{...element.props,children:processDotsInChildren(element.props.children)});}if(Array.isArray(children)){return children.map(child=>processDotsInChildren(child));}return children;};const newChildren=processDotsInChildren(props.children);return /*#__PURE__*/_jsx(Component,{...props,children:newChildren});};}// 大サイズの黒丸（HOC方式）\nexport function withDotsLarge(Component){return props=>{const processDotsInChildren=children=>{if(typeof children===\"string\"){if(children.includes(\"[[\")){const html=children.replace(/\\[\\[([^\\]]+)\\]\\]/g,(match,content)=>{return content.split(\"\").map(char=>{if(char===\" \"||char===\"　\")return char;return`<ruby>${char}<rt style=\"font-size: 14px !important; font-weight: 800 !important; position: relative !important; top: -4px !important;\">●</rt></ruby>`;}).join(\"\");});return /*#__PURE__*/_jsx(\"span\",{dangerouslySetInnerHTML:{__html:html}});}return children;}if(/*#__PURE__*/React.isValidElement(children)){const element=children;return /*#__PURE__*/React.cloneElement(element,{...element.props,children:processDotsInChildren(element.props.children)});}if(Array.isArray(children)){return children.map(child=>processDotsInChildren(child));}return children;};const newChildren=processDotsInChildren(props.children);return /*#__PURE__*/_jsx(Component,{...props,children:newChildren});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withDotsMedium\":{\"type\":\"reactHoc\",\"name\":\"withDotsMedium\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDotsSmall\":{\"type\":\"reactHoc\",\"name\":\"withDotsSmall\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDotsLarge\":{\"type\":\"reactHoc\",\"name\":\"withDotsLarge\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextWithDots.map"],"mappings":"A,yHACA,SAAgBS,EAAcC,EAAU,CAAC,MAAOC,IAAO,CAAC,IAAMC,EAAsBC,GAAU,CAAC,GAAG,OAAOA,GAAW,SAAS,CAC7H,GAAGA,EAAS,SAAS,IAAI,EAAE,CAAC,IAAMC,EAAKD,EAAS,QAAQ,qBAAqBE,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