{"version":3,"file":"ContentNote.bc68z-2b.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ytHUEr5FPNKMFn6KJHkY/PMUfcFrrGFY8pzXxxVTk/ContentNote.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// ============================================\n// 타이포그래피 토큰\n// ============================================\nconst typography={headline:{l:{mobile:22,desktop:28,weight:700,lineHeight:1.2},m:{mobile:20,desktop:24,weight:700,lineHeight:1.2}},title:{l:{mobile:18,desktop:22,weight:600,lineHeight:1.2},m:{mobile:16,desktop:20,weight:600,lineHeight:1.2}},body:{l:{mobile:16,desktop:18,weight:400,lineHeight:1.6},m:{mobile:14,desktop:14,weight:400,lineHeight:1.6}},supporting:{mobile:13,desktop:13,weight:400,lineHeight:1.4},caption:{mobile:12,desktop:12,weight:600,lineHeight:1.4}};// ============================================\n// 컬러 토큰\n// ============================================\nconst colors={light:{primary:\"#000000\",secondary:\"rgba(0, 0, 0, 0.70)\",tertiary:\"rgba(0, 0, 0, 0.56)\"},dark:{primary:\"#FFFFFF\",secondary:\"rgba(255, 255, 255, 0.70)\",tertiary:\"rgba(255, 255, 255, 0.56)\"}};export default function ContentNote(props){const{caption,title,description,theme,deviceType,textColor,textAlign}=props;useEffect(()=>{if(typeof document!==\"undefined\"){const existingStyle=document.getElementById(\"pretendard-font\");if(!existingStyle){const style=document.createElement(\"style\");style.id=\"pretendard-font\";style.textContent=`\n                    @font-face {\n                        font-family: 'Pretendard';\n                        src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-Regular.woff2') format('woff2');\n                        font-weight: 400;\n                        font-display: swap;\n                    }\n                    @font-face {\n                        font-family: 'Pretendard';\n                        src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-Medium.woff2') format('woff2');\n                        font-weight: 500;\n                        font-display: swap;\n                    }\n                    @font-face {\n                        font-family: 'Pretendard';\n                        src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-Bold.woff2') format('woff2');\n                        font-weight: 700;\n                        font-display: swap;\n                    }\n                `;document.head.appendChild(style);}}},[]);const parseMarkdownBold=text=>{const parts=text.split(/(\\*\\*.*?\\*\\*)/);return parts.map((part,index)=>{if(part.startsWith(\"**\")&&part.endsWith(\"**\")){const boldText=part.slice(2,-2);return /*#__PURE__*/_jsx(\"strong\",{children:boldText},index);}return part;});};const isDesktop=deviceType===\"Desktop\";const getTextColor=()=>{if(textColor)return textColor;return theme===\"Light\"?colors.light.primary:colors.dark.primary;};const getTextAlign=()=>{return textAlign===\"Left\"?\"left\":\"center\";};const styles={container:{width:\"100%\",height:\"100%\",padding:\"0\",fontFamily:\"'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif\",backgroundColor:\"transparent\"},headline:{width:\"100%\",padding:isDesktop?\"0 50px\":\"0 20px\",display:\"flex\",flexDirection:\"column\",gap:\"14px\"},caption:{fontSize:isDesktop?typography.caption.desktop:typography.caption.mobile,fontWeight:typography.caption.weight,lineHeight:`${typography.caption.lineHeight}em`,color:getTextColor(),textAlign:getTextAlign(),margin:\"0\",width:\"100%\"},title:{fontSize:isDesktop?typography.headline.l.desktop:typography.headline.l.mobile,fontWeight:typography.headline.l.weight,lineHeight:`${typography.headline.l.lineHeight}em`,textAlign:getTextAlign(),color:getTextColor(),margin:\"0\",width:\"100%\",wordWrap:\"break-word\",whiteSpace:\"pre-wrap\",overflowWrap:\"break-word\"},description:{fontSize:isDesktop?typography.body.l.desktop:typography.body.l.mobile,fontWeight:typography.body.l.weight,lineHeight:`${typography.body.l.lineHeight}em`,color:getTextColor(),textAlign:getTextAlign(),margin:\"0\",width:\"100%\",wordWrap:\"break-word\",whiteSpace:\"pre-wrap\",overflowWrap:\"break-word\"}};return /*#__PURE__*/_jsx(\"div\",{style:styles.container,children:/*#__PURE__*/_jsxs(\"div\",{style:styles.headline,children:[caption&&caption.trim()!==\"\"&&/*#__PURE__*/_jsx(\"p\",{style:styles.caption,children:parseMarkdownBold(caption)}),title&&title.trim()!==\"\"&&/*#__PURE__*/_jsx(\"h1\",{style:styles.title,children:parseMarkdownBold(title)}),description&&description.trim()!==\"\"&&/*#__PURE__*/_jsx(\"p\",{style:styles.description,children:parseMarkdownBold(description)})]})});}ContentNote.defaultProps={caption:\"caption\",title:\"타이틀\",description:\"마크다운 **볼드** 텍스트를 지원합니다.\\n문단 바꿈도 가능합니다\",theme:\"Light\",deviceType:\"Mobile\",textColor:\"\",textAlign:\"Center\"};addPropertyControls(ContentNote,{deviceType:{type:ControlType.Enum,title:\"레이아웃\",options:[\"Mobile\",\"Desktop\"],optionTitles:[\"Mobile\",\"Desktop\"],defaultValue:\"Mobile\",displaySegmentedControl:true},theme:{type:ControlType.Enum,title:\"테마\",options:[\"Light\",\"Dark\"],optionTitles:[\"Light\",\"Dark\"],defaultValue:\"Light\",displaySegmentedControl:true},textAlign:{type:ControlType.Enum,title:\"텍스트 정렬\",options:[\"Left\",\"Center\"],optionTitles:[\"Left\",\"Center\"],defaultValue:\"Center\",displaySegmentedControl:true},textColor:{type:ControlType.Color,title:\"텍스트 컬러\",defaultValue:\"\"},caption:{type:ControlType.String},title:{type:ControlType.String,displayTextArea:true},description:{type:ControlType.String,title:\"설명\",displayTextArea:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ContentNote\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ContentNote.map"],"mappings":"iLAM4M,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,UAAQ,QAAM,cAAY,QAAM,aAAW,YAAU,aAAW,EAAM,MAAc,CAAC,GAAG,OAAO,SAAW,KAA+E,CAA9C,SAAS,eAAe,iBAAmC,EAAE,CAAC,IAAM,EA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