{"version":3,"file":"TextMaker.D0LZt-dF.mjs","names":["React.forwardRef","_Fragment","__esmMin","init_npm_react_18_3_1","l","p","c","J","init_jsx_runtime","ce","motion","addPropertyControls","cx","init_framer_Duogf4LG","withCSS","ControlType","useSVGTemplate","mask","Base","MotionSVG","SVG","svg","getProps","Icon","init_YBaghjExl","props","rest","animated","dots","stroke","width1","restProps","href","className","lKf_CQTz5","fICyAUQY1","style","hashString","hash","index","value","getMarkerVariantIndex","textContent","elementIndex","matchIndex","HAND_DRAWN_SWIPE_PATHS","createMarkerSvgDataUri","rotationDeg","fillColor","pathData","createMarkerHOC","variantBackgrounds","backgroundColor","path","HAND_DRAWN_SWIPE_ROTATIONS","variantCss","backgroundImage","originalHTML","element","variant","match","Component","withPinkMarker","MARKER_COLORS","init_TextMaker"],"sources":["https:/framerusercontent.com/modules/bniZcNhtKAI6rA0fxW6J/THELkXLAWyb8Gu18q5jW/YBaghjExl.js","https:/framerusercontent.com/modules/ORfK5mpdgw0NNoWE64nZ/tRnN1Fk59EJByGNyqQ2l/TextMaker.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 0 L 0 12.5\" fill=\"transparent\" height=\"12.5px\" id=\"InYKHyHwf\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--1335ju, 1.5)\" stroke=\"var(--18mrqx2, rgb(0, 0, 0))\" transform=\"translate(12 5.75)\" width=\"1px\"/><path d=\"M 12.5 0 L 0 0\" fill=\"transparent\" height=\"1px\" id=\"pfQxqOaIQ\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--1335ju, 1.5)\" stroke=\"var(--18mrqx2, rgb(0, 0, 0))\" transform=\"translate(5.75 12)\" width=\"12.5px\"/></svg>';const getProps=({dots,height,id,stroke,width,width1,...props})=>{return{...props,BKVe8Pgvw:dots??props.BKVe8Pgvw??1,fICyAUQY1:stroke??props.fICyAUQY1??\"rgb(0, 0, 0)\",lKf_CQTz5:width1??props.lKf_CQTz5??1.5};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,fICyAUQY1,lKf_CQTz5,BKVe8Pgvw,...restProps}=getProps(props);const href=useSVGTemplate(\"3450492020\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-yowRG\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1335ju\":lKf_CQTz5,\"--18mrqx2\":fICyAUQY1,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-yowRG { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"fICyAUQY1\":\"stroke\",\"lKf_CQTz5\":\"width1\",\"BKVe8Pgvw\":\"dots\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Plus\",\"color\":{\"type\":\"variable\",\"value\":\"18mrqx2\"},\"set\":{\"localId\":\"vectorSet/SuYHhKUZG\",\"id\":\"SuYHhKUZG\",\"moduleId\":\"EqX8thWQjdZcOB1c6p5N\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-yowRG\");Icon.displayName=\"Plus\";export default Icon;addPropertyControls(Icon,{fICyAUQY1:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Stroke\",type:ControlType.Color},lKf_CQTz5:{defaultValue:1.5,displayStepper:true,hidden:false,max:4,min:0,step:.5,title:\"Width\",type:ControlType.Number},BKVe8Pgvw:{defaultValue:1,displayStepper:true,hidden:true,max:4,min:1,title:\"Dots\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"24\",\"framerVector\":\"{\\\"name\\\":\\\"Plus\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"18mrqx2\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/SuYHhKUZG\\\",\\\"id\\\":\\\"SuYHhKUZG\\\",\\\"moduleId\\\":\\\"EqX8thWQjdZcOB1c6p5N\\\"}}\",\"framerDisableUnlink\":\"true\",\"framerIntrinsicHeight\":\"24\",\"framerVariables\":\"{\\\"fICyAUQY1\\\":\\\"stroke\\\",\\\"lKf_CQTz5\\\":\\\"width1\\\",\\\"BKVe8Pgvw\\\":\\\"dots\\\"}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect}from\"react\";/**\n * Text marker overrides:\n * - Author highlights with **double-asterisk** syntax.\n * - Deterministically pick a hand-drawn variant per match.\n */const MARKER_COLORS={yellow:\"rgba(255, 255, 0, 0.8)\",blue:\"rgba(0, 128, 255, 0.5)\",pink:\"rgba(255, 182, 193, 0.8)\",green:\"rgba(144, 238, 144, 0.8)\",orange:\"rgba(255, 195, 0, 0.8)\",red:\"rgba(255, 0, 0, 0.5)\",purple:\"rgba(174, 136, 255, 0.5)\",mint:\"rgba(102, 230, 188, 0.45)\",sky:\"rgba(125, 211, 252, 0.5)\",lime:\"rgba(190, 242, 100, 0.5)\",peach:\"rgba(255, 201, 166, 0.55)\",lavender:\"rgba(204, 179, 255, 0.5)\",gray:\"rgba(156, 163, 175, 0.4)\",navy:\"rgba(59, 130, 246, 0.35)\",teal:\"rgba(45, 212, 191, 0.45)\",magenta:\"rgba(244, 114, 182, 0.45)\"};const HAND_DRAWN_SWIPE_PATHS=[\"M3 10 C4 8, 6 7, 8 7 C24 6, 40 6, 56 7 C72 8, 86 7, 95 9 C97 10, 98 12, 98 14 C99 21, 99 28, 98 35 C98 37, 97 39, 95 40 C86 41, 72 40, 56 39 C40 40, 24 41, 8 40 C6 40, 4 39, 3 37 C2 30, 2 23, 2 16 C2 13, 2 11, 3 10 Z\",\"M4 9 C5 8, 6 7, 8 7 C25 6, 41 6, 57 7 C73 8, 87 7, 94 8 C96 9, 97 11, 97 13 C98 20, 98 27, 97 34 C97 37, 96 39, 94 40 C87 41, 73 40, 57 39 C41 40, 25 41, 9 40 C7 40, 5 39, 4 37 C3 30, 3 23, 3 16 C3 13, 3 10, 4 9 Z\",\"M3 11 C4 9, 6 8, 8 8 C24 7, 40 7, 56 8 C71 9, 85 8, 94 10 C96 11, 97 13, 97 15 C98 22, 98 29, 97 36 C96 38, 95 40, 93 41 C84 42, 70 41, 55 40 C39 41, 23 42, 8 41 C6 41, 4 40, 3 38 C2 31, 2 24, 2 17 C2 14, 2 12, 3 11 Z\",\"M2 10 C4 8, 6 7, 9 7 C25 6, 42 6, 58 7 C73 8, 87 7, 96 9 C98 10, 99 13, 99 15 C99 22, 99 29, 99 36 C99 38, 98 40, 96 41 C88 42, 73 41, 58 40 C42 41, 26 42, 10 41 C7 41, 5 40, 3 38 C2 31, 2 24, 2 17 C2 14, 2 11, 2 10 Z\",\"M4 12 C5 10, 7 9, 9 9 C26 8, 42 8, 58 9 C74 10, 88 9, 95 11 C97 12, 98 14, 98 16 C99 23, 99 30, 98 37 C98 39, 97 41, 95 42 C88 43, 74 42, 58 41 C42 42, 26 43, 10 42 C8 42, 6 41, 4 39 C3 32, 3 25, 3 18 C3 15, 3 13, 4 12 Z\",\"M3 9 C4 8, 6 7, 8 7 C24 6, 40 6, 56 7 C72 9, 86 8, 94 10 C96 11, 97 13, 97 15 C98 22, 98 29, 98 36 C98 38, 97 40, 95 41 C87 42, 72 41, 56 40 C40 41, 24 42, 9 41 C7 41, 5 40, 4 38 C3 31, 3 24, 3 17 C3 14, 3 11, 3 9 Z\"];const HAND_DRAWN_SWIPE_ROTATIONS=[-5.2,-4.4,-4.8,-6.3,-3.9,-5.7];function hashString(value){let hash=0;for(let index=0;index<value.length;index+=1){hash=hash*31+value.charCodeAt(index)>>>0;}return hash;}function getMarkerVariantIndex(textContent,elementIndex,matchIndex){const base=hashString(textContent);return(base+elementIndex*17+matchIndex*31)%HAND_DRAWN_SWIPE_PATHS.length;}function createMarkerSvgDataUri(fillColor,pathData,rotationDeg){const svg=`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 52' preserveAspectRatio='none'><g transform='rotate(${rotationDeg} 50 26)'><path fill='${fillColor}' d='${pathData}'/></g></svg>`;return`url(\"data:image/svg+xml,${encodeURIComponent(svg)}\")`;}function createMarkerHOC(backgroundColor){const variantBackgrounds=HAND_DRAWN_SWIPE_PATHS.map((path,index)=>createMarkerSvgDataUri(backgroundColor,path,HAND_DRAWN_SWIPE_ROTATIONS[index]));return function(Component){return props=>{const variantCss=variantBackgrounds.map((backgroundImage,index)=>`\n.${props.className} mark.marker-variant-${index} span {\n  background-image: ${backgroundImage};\n}`).join(\"\\n\");useEffect(()=>{if(typeof document===\"undefined\")return;const elements=document.querySelectorAll(`.${props.className}`);elements.forEach((element,elementIndex)=>{const originalHTML=element.innerHTML;let matchIndex=0;// \"**...**\" を <mark><span>...</span></mark> に変換\nconst updatedHTML=originalHTML.replace(/\\*\\*(.+?)\\*\\*/g,(_,match)=>{const variant=getMarkerVariantIndex(String(match),elementIndex,matchIndex);matchIndex+=1;return`<mark class=\"marker-swipe marker-variant-${variant}\"><span>${match}</span></mark>`;});element.innerHTML=updatedHTML;});},[props]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n.${props.className} mark {\n  background: transparent;\n}\n\n.${props.className} mark.marker-swipe span {\n  display: inline;\n  background-repeat: no-repeat;\n  background-size: 100% 100%;\n  background-position: center calc(100% - 0.01em);\n  -webkit-box-decoration-break: clone;\n  box-decoration-break: clone;\n  padding: 0.14em 0.16em 0.16em;\n  margin: -0.08em -0.06em;\n  color: inherit;\n}\n${variantCss}\n`}),/*#__PURE__*/_jsx(Component,{...props})]});};};}export function withYellowMarker(Component){return createMarkerHOC(MARKER_COLORS.yellow)(Component);}export function withBlueMarker(Component){return createMarkerHOC(MARKER_COLORS.blue)(Component);}export function withPinkMarker(Component){return createMarkerHOC(MARKER_COLORS.pink)(Component);}export function withGreenMarker(Component){return createMarkerHOC(MARKER_COLORS.green)(Component);}export function withOrangeMarker(Component){return createMarkerHOC(MARKER_COLORS.orange)(Component);}export function withRedMarker(Component){return createMarkerHOC(MARKER_COLORS.red)(Component);}export function withPurpleMarker(Component){return createMarkerHOC(MARKER_COLORS.purple)(Component);}export function withMintMarker(Component){return createMarkerHOC(MARKER_COLORS.mint)(Component);}export function withSkyMarker(Component){return createMarkerHOC(MARKER_COLORS.sky)(Component);}export function withLimeMarker(Component){return createMarkerHOC(MARKER_COLORS.lime)(Component);}export function withPeachMarker(Component){return createMarkerHOC(MARKER_COLORS.peach)(Component);}export function withLavenderMarker(Component){return createMarkerHOC(MARKER_COLORS.lavender)(Component);}export function withGrayMarker(Component){return createMarkerHOC(MARKER_COLORS.gray)(Component);}export function withNavyMarker(Component){return createMarkerHOC(MARKER_COLORS.navy)(Component);}export function withTealMarker(Component){return createMarkerHOC(MARKER_COLORS.teal)(Component);}export function withMagentaMarker(Component){return createMarkerHOC(MARKER_COLORS.magenta)(Component);}\nexport const __FramerMetadata__ = {\"exports\":{\"withYellowMarker\":{\"type\":\"reactHoc\",\"name\":\"withYellowMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPeachMarker\":{\"type\":\"reactHoc\",\"name\":\"withPeachMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withNavyMarker\":{\"type\":\"reactHoc\",\"name\":\"withNavyMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPinkMarker\":{\"type\":\"reactHoc\",\"name\":\"withPinkMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTealMarker\":{\"type\":\"reactHoc\",\"name\":\"withTealMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPurpleMarker\":{\"type\":\"reactHoc\",\"name\":\"withPurpleMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOrangeMarker\":{\"type\":\"reactHoc\",\"name\":\"withOrangeMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSkyMarker\":{\"type\":\"reactHoc\",\"name\":\"withSkyMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRedMarker\":{\"type\":\"reactHoc\",\"name\":\"withRedMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLimeMarker\":{\"type\":\"reactHoc\",\"name\":\"withLimeMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGrayMarker\":{\"type\":\"reactHoc\",\"name\":\"withGrayMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGreenMarker\":{\"type\":\"reactHoc\",\"name\":\"withGreenMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLavenderMarker\":{\"type\":\"reactHoc\",\"name\":\"withLavenderMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMintMarker\":{\"type\":\"reactHoc\",\"name\":\"withMintMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMagentaMarker\":{\"type\":\"reactHoc\",\"name\":\"withMagentaMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBlueMarker\":{\"type\":\"reactHoc\",\"name\":\"withBlueMarker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextMaker.map"],"mappings":"A,4TACgM,EAAK,0BAAgC,EAAkB,gBAAW,SAAS,EAAM,EAAI,CAAC,MAAoB,gBAAK,MAAM,CAAC,GAAGyB,EAAU,MAAI,SAASA,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAUf,EAAO,OAAOQ,CAAI,EAAQ,EAAiB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAGQ,GAAMD,EAAM,OAAOE,EAAsB,gBAAKR,EAAU,CAAC,GAAGO,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,gBAAK,MAAM,CAAC,GAAGA,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,6mBAAmnB,GAAU,CAAC,OAAK,SAAO,KAAG,SAAO,QAAM,SAAO,GAAGD,MAAgB,CAAC,GAAGA,EAAM,UAAUG,GAAMH,EAAM,WAAW,EAAE,UAAUI,GAAQJ,EAAM,WAAW,eAAe,UAAUK,GAAQL,EAAM,WAAW,GAAG,GAUr8C,EAAKX,EAVi+Cd,kBAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,YAAU,YAAU,GAAG+B,GAAWT,EAASG,CAAK,EAAQO,EAAKhB,EAAe,aAAaK,CAAG,EAAE,MAAoB,gBAAKD,EAAI,CAAC,GAAGW,EAAU,UAAUnB,EAAG,eAAeqB,CAAS,EAAW,WAAa,MAAI,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