{"version":3,"file":"TextWithDots.CI8rHGhS.mjs","names":[],"sources":["https:/framerusercontent.com/modules/H9O0qt4XugPxweVsDHVU/loFPa96GWjZTj0pwjvmH/PurupuruCTA.js","https:/framerusercontent.com/modules/X7fKw3g6UeAF4FJgMlwX/KfWbyS6OXiAx51cy279U/TextWithDots.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// ぷるぷるアニメーションのキーフレーム\nconst purupuruKeyframes=`\n  @keyframes purupuru {\n    0% {\n      transform: rotate(0deg) skew(0deg, 0deg);\n    }\n    5% {\n      transform: rotate(5deg) skew(2.69703deg, 0deg);\n    }\n    10% {\n      transform: rotate(0deg) skew(-1.5deg, 0deg);\n    }\n    15% {\n      transform: rotate(-5deg) skew(-2.69703deg, 0deg);\n    }\n    20% {\n      transform: rotate(0deg) skew(1.5deg, 0deg);\n    }\n    25% {\n      transform: rotate(3deg) skew(2deg, 0deg);\n    }\n    30% {\n      transform: rotate(0deg) skew(0deg, 0deg);\n    }\n    35% {\n      transform: rotate(-2deg) skew(-1.8deg, 0deg);\n    }\n    40% {\n      transform: rotate(0deg) skew(0deg, 0deg);\n    }\n    100% {\n      transform: rotate(0deg) skew(0deg, 0deg);\n    }\n  }\n`;// キラッとアニメーションのキーフレーム\nconst kiranKeyframes=`\n  @keyframes kiran {\n    0% {\n      left: -10%;\n      transform: scale(5) rotate(45deg);\n      opacity: 0;\n    }\n    20% {\n      left: -10%;\n      transform: scale(5) rotate(45deg);\n      opacity: 0;\n    }\n    25% {\n      left: 10%;\n      transform: scale(15) rotate(45deg);\n      opacity: 0.6;\n    }\n    40% {\n      left: 110%;\n      transform: scale(20) rotate(45deg);\n      opacity: 0;\n    }\n    100% {\n      left: 110%;\n      transform: scale(20) rotate(45deg);\n      opacity: 0;\n    }\n  }\n`;// スタイルをheadに注入する関数\nfunction injectStyles(){const styleId=\"purupuru-kiran-animation-styles\";if(document.getElementById(styleId))return;const styles=`\n    ${purupuruKeyframes}\n    ${kiranKeyframes}\n    \n    /* キラッとエフェクト用のスタイル */\n    .purupuru-kiran-wrapper {\n      position: relative;\n      overflow: hidden;\n    }\n    \n    .purupuru-kiran-wrapper::before {\n      content: \"\";\n      display: block;\n      position: absolute;\n      top: 50%;\n      left: -10%;\n      width: 5px;\n      height: 100%;\n      background: linear-gradient(\n        90deg,\n        rgba(255, 255, 255, 0) 0%,\n        rgba(255, 255, 255, 0.9) 50%,\n        rgba(255, 255, 255, 0) 100%\n      );\n      transform: scale(5) rotate(45deg);\n      transform-origin: center center;\n      opacity: 0;\n      animation: kiran 3s linear 500ms infinite;\n      pointer-events: none;\n      z-index: 1;\n    }\n  `;const styleElement=document.createElement(\"style\");styleElement.id=styleId;styleElement.textContent=styles;document.head.appendChild(styleElement);}// ぷるぷるアニメーションのみ\nexport function withPurupuru(Component){return props=>{useEffect(()=>{injectStyles();},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,animation:\"purupuru 2s linear 0s infinite\",transformOrigin:\"center center\"}});};}// キラッとエフェクトのみ\nexport function withKiran(Component){return props=>{useEffect(()=>{injectStyles();},[]);return /*#__PURE__*/_jsx(Component,{...props,className:`${props.className||\"\"} purupuru-kiran-wrapper`,style:{...props.style,position:\"relative\",overflow:\"hidden\"}});};}// ぷるぷる＋キラッとエフェクト（常時ループ）\nexport function withPurupuruKiran(Component){return props=>{useEffect(()=>{injectStyles();},[]);return /*#__PURE__*/_jsx(Component,{...props,className:`${props.className||\"\"} purupuru-kiran-wrapper`,style:{...props.style,animation:\"purupuru 2s linear 0s infinite\",transformOrigin:\"center center\",position:\"relative\",overflow:\"hidden\"}});};}// クリックでアニメーション開始/停止\nexport function withTogglePurupuruKiran(Component){return props=>{useEffect(()=>{injectStyles();// トグル用のスタイルを追加\nconst toggleStyleId=\"toggle-purupuru-kiran-styles\";if(!document.getElementById(toggleStyleId)){const toggleStyles=`\n          .toggle-purupuru-kiran.active {\n            animation: purupuru 2s linear 0s infinite !important;\n          }\n          \n          .toggle-purupuru-kiran.active::before {\n            animation: kiran 3s linear 500ms infinite !important;\n          }\n        `;const styleElement=document.createElement(\"style\");styleElement.id=toggleStyleId;styleElement.textContent=toggleStyles;document.head.appendChild(styleElement);}},[]);const handleClick=e=>{const element=e.currentTarget;element.classList.toggle(\"active\");// 既存のonClickハンドラーも呼ぶ\nif(props.onClick){props.onClick(e);}};return /*#__PURE__*/_jsx(Component,{...props,className:`${props.className||\"\"} purupuru-kiran-wrapper toggle-purupuru-kiran`,style:{...props.style,transformOrigin:\"center center\",position:\"relative\",overflow:\"hidden\",cursor:\"pointer\"},onClick:handleClick});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withKiran\":{\"type\":\"reactHoc\",\"name\":\"withKiran\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPurupuru\":{\"type\":\"reactHoc\",\"name\":\"withPurupuru\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPurupuruKiran\":{\"type\":\"reactHoc\",\"name\":\"withPurupuruKiran\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTogglePurupuruKiran\":{\"type\":\"reactHoc\",\"name\":\"withTogglePurupuruKiran\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PurupuruCTA.map","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\":{\"withDotsSmall\":{\"type\":\"reactHoc\",\"name\":\"withDotsSmall\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDotsMedium\":{\"type\":\"reactHoc\",\"name\":\"withDotsMedium\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDotsLarge\":{\"type\":\"reactHoc\",\"name\":\"withDotsLarge\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextWithDots.map"],"mappings":"2HAgEA,SAAS,GAAc,CAAC,IAAM,EAAQ,kCAAkC,GAAG,SAAS,eAAe,EAAQ,CAAC,OAAO,IAAM,EAAO;MAC1H,EAAkB;MAClB,EAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6BX,EAAa,SAAS,cAAc,QAAQ,CAAC,EAAa,GAAG,EAAQ,EAAa,YAAY,EAAO,SAAS,KAAK,YAAY,EAAa,CAGtJ,SAAgB,EAAkB,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,GAAc,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,UAAU,GAAG,EAAM,WAAW,GAAG,yBAAyB,MAAM,CAAC,GAAG,EAAM,MAAM,UAAU,iCAAiC,gBAAgB,gBAAgB,SAAS,WAAW,SAAS,SAAS,CAAC,CAAC,uBAlGrS,IAA6B,CAClE,EAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkClB,EAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;KClCrB,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAsB,GAAU,CAAC,GAAG,OAAO,GAAW,SACyS,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,mBAFxyB,IAA4B"}