{"version":3,"file":"TextWithDots.CSj2Gw1s.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ssrX3fEBxkw3CmwwZHS9/dtGTHQThYvDiU7PGBohc/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: 900 !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: 900 !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: 900 !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":"yHAGA,SAAgB,EAAe,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAsB,GAAU,CAAC,GAAG,OAAO,GAAW,SAAua,OAA1Z,EAAS,SAAS,KAAK,CAA6U,EAAK,OAAO,CAAC,wBAAwB,CAAC,OAAtW,EAAS,QAAQ,qBAAqB,EAAM,IAAkB,EAAQ,MAAM,GAAG,CAAC,IAAI,GAAU,IAAO,KAAK,IAAO,IAAW,EAAW,SAAS,EAAK,wIAA0I,CAAC,KAAK,GAAG,CAAG,CAAuE,CAAC,CAAC,CAAS,EAAU,GAAgB,EAAqB,EAAS,CAAC,CAAC,IAAM,EAAQ,EAAS,OAAoB,EAAmB,EAAQ,CAAC,GAAG,EAAQ,MAAM,SAAS,EAAsB,EAAQ,MAAM,SAAS,CAAC,CAAC,CAAwF,OAAnF,MAAM,QAAQ,EAAS,CAAS,EAAS,IAAI,GAAO,EAAsB,EAAM,CAAC,CAAS,GAAiB,EAAY,EAAsB,EAAM,SAAS,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,SAAS,EAAY,CAAC,mBAHv6B,IAA4B"}