{"version":3,"file":"AddClassName.WT8F77j7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/6hjwCCwO2RvQUuBst5Ka/xYa1eLQ4SEEbf4zW65o1/AddClassName.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function clickMarketRequestButtonServiceWithClass(Component){return props=>{props.className+=\" click_marketRequestButton_service\"// Remember to add a space\n;return /*#__PURE__*/_jsx(Component,{...props});};}export function clickMarketRequestButtonRequestWithClass(Component){return props=>{props.className+=\" click_marketRequestButton_request\"// Remember to add a space\n;return /*#__PURE__*/_jsx(Component,{...props});};}export function formTitleWithClass(Component){return props=>{props.className+=\" form_title\"// Remember to add a space\n;return /*#__PURE__*/_jsx(Component,{...props});};}// 블로그 이벤트 프로퍼티용 (Logger.tsx 의 getBlogContentProperty / createContentCardClickLogger 가 읽음)\nexport function blogMainTitleWithClass(Component){return props=>{props.className+=\" main_title\";return /*#__PURE__*/_jsx(Component,{...props});};}export function blogSubTitleWithClass(Component){return props=>{props.className+=\" sub_title\";return /*#__PURE__*/_jsx(Component,{...props});};}export function blogSectionWithClass(Component){return props=>{props.className+=\" section\";return /*#__PURE__*/_jsx(Component,{...props});};}// import type { ComponentType } from \"react\"\n// import React, { useEffect } from \"react\"\n// type WithLoadingProps = {\n//     loading: React.ReactNode\n//     loaded: React.ReactNode\n// }\n// type EnhancerConfig = {\n//     symbols: string[]\n//     tagName: string\n//     attributes: React.CSSProperties\n// }\n// const PARAGRAPH_SELECTOR = \"p.framer-text\"\n// function escapeRegExp(string: string): string {\n//     return string.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\")\n// }\n// function WithLoading({ loading, loaded }: WithLoadingProps) {\n//     const [isLoading, setLoading] = React.useState(true)\n//     React.useEffect(() => setLoading(false), [])\n//     return <>{isLoading ? loading : loaded}</>\n// }\n// function withElementEnhancement<P>(Component, configs: EnhancerConfig[]) {\n//     return (props: P) => {\n//         useElementEnhancer(configs)\n//         return <Component {...props} />\n//     }\n// }\n// function useElementEnhancer(configs: EnhancerConfig[]) {\n//     useEffect(() => {\n//         const elements = document.querySelectorAll(PARAGRAPH_SELECTOR)\n//         elements.forEach((element) => {\n//             configs.forEach(({ symbols, tagName, attributes }) => {\n//                 enhanceElement(element, symbols, tagName, attributes)\n//             })\n//         })\n//     }, [configs])\n// }\n// function enhanceElement(\n//     element: HTMLElement | Element,\n//     symbols: string[],\n//     tagName: string,\n//     attributes: React.CSSProperties\n// ): void {\n//     const text = element.textContent\n//     if (!text) return\n//     const escapedSymbols = symbols.map((symbol) => escapeRegExp(symbol))\n//     const regex = new RegExp(`(${escapedSymbols[0]}[^]*?${escapedSymbols[1]})`)\n//     if (\n//         text.includes(symbols[0]) &&\n//         text.includes(symbols[1]) &&\n//         (text.match(regex) || []).length % 2 === 0\n//     ) {\n//         const parts = text.split(regex)\n//         const fragment = document.createDocumentFragment()\n//         parts.forEach((part, index) => {\n//             if (index % 2 === 1) {\n//                 const tag = document.createElement(tagName)\n//                 tag.textContent = part.slice(\n//                     symbols[0].length,\n//                     -symbols[1].length\n//                 )\n//                 Object.assign(tag.style, attributes)\n//                 fragment.appendChild(tag)\n//             } else {\n//                 fragment.appendChild(document.createTextNode(part))\n//             }\n//         })\n//         element.innerHTML = \"\"\n//         element.appendChild(fragment)\n//     }\n// }\n// const blockquoteStyles: React.CSSProperties = {\n//     margin: \"1em 0\",\n//     padding: \"0 0 0 1em\",\n//     borderLeft: \"3px solid #000\",\n//     fontSize: \"1.1em\",\n//     lineHeight: \"1.6em\",\n//     color: \"#000000\",\n// }\n// const asideStyles: React.CSSProperties = {\n//     margin: \"1em 0\",\n//     padding: \"1em\",\n//     backgroundColor: \"#F2F2F2\",\n//     borderRadius: \"1em\",\n//     fontSize: \"1.0em\",\n//     color: \"#000000\",\n//     lineHeight: \"1.6em\",\n// }\n// const highlightStyles: React.CSSProperties = {\n//     backgroundColor: \"#FFE7D9\",\n// }\n// const textColorStyles: React.CSSProperties = {\n//     color: \"#FC5D11\",\n// }\n// const enhancerConfigs: EnhancerConfig[] = [\n//     {\n//         symbols: [\"<\", \">\"],\n//         tagName: \"blockquote\",\n//         attributes: blockquoteStyles,\n//     },\n//     {\n//         symbols: [\"$[\", \"]\"],\n//         tagName: \"aside\",\n//         attributes: asideStyles,\n//     },\n//     {\n//         symbols: [\"==\", \"==\"],\n//         tagName: \"mark\",\n//         attributes: highlightStyles,\n//     },\n//     {\n//         symbols: [\"#\", \"#\"],\n//         tagName: \"span\", // span 태그를 사용하여 텍스트의 스타일만 변경\n//         attributes: textColorStyles,\n//     },\n// ]\n// export function 마크다운_기능_처리<P>(Component): ComponentType<P> {\n//     return (props) => {\n//         const EnhancedComponent = withElementEnhancement(\n//             Component,\n//             enhancerConfigs\n//         )\n//         return (\n//             <WithLoading\n//                 loading={<Component {...props} />}\n//                 loaded={<EnhancedComponent {...props} />}\n//             />\n//         )\n//     }\n// }\n\nexport const __FramerMetadata__ = {\"exports\":{\"blogMainTitleWithClass\":{\"type\":\"reactHoc\",\"name\":\"blogMainTitleWithClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"blogSectionWithClass\":{\"type\":\"reactHoc\",\"name\":\"blogSectionWithClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"blogSubTitleWithClass\":{\"type\":\"reactHoc\",\"name\":\"blogSubTitleWithClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"clickMarketRequestButtonRequestWithClass\":{\"type\":\"reactHoc\",\"name\":\"clickMarketRequestButtonRequestWithClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"clickMarketRequestButtonServiceWithClass\":{\"type\":\"reactHoc\",\"name\":\"clickMarketRequestButtonServiceWithClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"formTitleWithClass\":{\"type\":\"reactHoc\",\"name\":\"formTitleWithClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AddClassName.map"],"mappings":"oGAA2C,SAAgB,EAAyC,EAAU,CAAC,MAAO,KAAQ,EAAM,WAAW,qCAC1H,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,CAAC,SAAgB,EAAyC,EAAU,CAAC,MAAO,KAAQ,EAAM,WAAW,qCAClI,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,CAAC,SAAgB,EAAmB,EAAU,CAAC,MAAO,KAAQ,EAAM,WAAW,cAC5G,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,CAClD,SAAgB,EAAuB,EAAU,CAAC,MAAO,KAAQ,EAAM,WAAW,cAAkC,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,CAAC,SAAgB,EAAsB,EAAU,CAAC,MAAO,KAAQ,EAAM,WAAW,aAAiC,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,CAAC,SAAgB,EAAqB,EAAU,CAAC,MAAO,KAAQ,EAAM,WAAW,WAA+B,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,iBAJpY"}