{"version":3,"file":"CTAbuttonSub.LBb1ANEf.mjs","names":["React.useMemo"],"sources":["https:/framerusercontent.com/modules/Ng1GrcMm4FuR8p56Nlpl/FJmBOGMQJkPGohCj0MMw/CTAbuttonSub.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Pretendard 폰트 동적 로드\nconst fontLink=\"https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css\";const fontFamily=\"'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif\";export default function CTAButtonSub(props){const{locale,textKo,textEn,textJp,linkKo,linkEn,linkJp,buttonType,fillColor,strokeColor,strokeWidth,textColor,borderRadius,fontSize}=props;// 웹 폰트 주입\nReact.useEffect(()=>{const existing=document.querySelector(`link[href=\"${fontLink}\"]`);if(!existing){const linkTag=document.createElement(\"link\");linkTag.href=fontLink;linkTag.rel=\"stylesheet\";document.head.appendChild(linkTag);}},[]);// 프레이머 인터페이스 링크 객체 파싱\nconst parseHref=linkValue=>{if(!linkValue)return\"#\";if(typeof linkValue===\"string\")return linkValue;if(linkValue.url)return linkValue.url;if(linkValue.href)return linkValue.href;return\"#\";};// 로케일에 대응하는 컨텐츠 메모이제이션\nconst content=React.useMemo(()=>{if(locale===\"ko\")return{text:textKo,href:parseHref(linkKo)};if(locale===\"jp\")return{text:textJp,href:parseHref(linkJp)};return{text:textEn,href:parseHref(linkEn)};},[locale,textKo,textEn,textJp,linkKo,linkEn,linkJp]);const isStrokeMode=buttonType===\"stroke\";return /*#__PURE__*/_jsx(\"a\",{href:content.href,\"data-gtm-cta\":\"sub_cta\"// 서브 CTA 마케팅 태깅 유지\n,style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",textDecoration:\"none\",// 디자인 타입 분기 처리\nbackgroundColor:isStrokeMode?\"transparent\":fillColor,border:isStrokeMode?`${strokeWidth}px solid ${strokeColor}`:`${strokeWidth}px solid transparent`,boxSizing:\"border-box\",color:textColor,borderRadius:`${borderRadius}px`,fontSize:`${fontSize}px`,padding:\"14px 24px\",fontWeight:600,fontFamily:fontFamily,cursor:\"pointer\",transition:\"filter 0.2s ease, opacity 0.2s ease\"},onMouseEnter:e=>e.currentTarget.style.filter=\"brightness(0.85)\",onMouseLeave:e=>e.currentTarget.style.filter=\"brightness(1)\",children:content.text});}// 기본값 설정\nCTAButtonSub.defaultProps={locale:\"ko\",textKo:\"자세히 보기\",textEn:\"Learn More\",textJp:\"詳細を見る\",buttonType:\"stroke\",fillColor:\"#111111\",strokeColor:\"#111111\",strokeWidth:1,textColor:\"#111111\",borderRadius:100,fontSize:16};// 우측 커스텀 사이드패널 제어 스크립트 명칭 매핑\naddPropertyControls(CTAButtonSub,{locale:{type:ControlType.Enum,title:\"Language\",options:[\"ko\",\"en\",\"jp\"],optionTitles:[\"Korean\",\"English\",\"Japanese\"],defaultValue:\"ko\"},// 다국어 입력 패널 그룹화\ntextKo:{type:ControlType.String,title:\"KO Text\",section:\"Localization\"},linkKo:{type:ControlType.Link,title:\"KO Link\",section:\"Localization\"},textEn:{type:ControlType.String,title:\"EN Text\",section:\"Localization\"},linkEn:{type:ControlType.Link,title:\"EN Link\",section:\"Localization\"},textJp:{type:ControlType.String,title:\"JP Text\",section:\"Localization\"},linkJp:{type:ControlType.Link,title:\"JP Link\",section:\"Localization\"},// 디자인 제어 패널 그룹화\nbuttonType:{type:ControlType.Segmented,title:\"Style Type\",options:[\"fill\",\"stroke\"],optionTitles:[\"Fill\",\"Stroke\"],section:\"Button Design\"},fillColor:{type:ControlType.Color,title:\"BG Color\",section:\"Button Design\",hidden:props=>props.buttonType===\"stroke\"},strokeColor:{type:ControlType.Color,title:\"Line Color\",section:\"Button Design\",hidden:props=>props.buttonType===\"fill\"},strokeWidth:{type:ControlType.Number,title:\"Line Width\",min:1,max:5,section:\"Button Design\",hidden:props=>props.buttonType===\"fill\"},textColor:{type:ControlType.Color,title:\"Text Color\",section:\"Button Design\"},fontSize:{type:ControlType.Number,title:\"Font Size\",min:12,max:40,section:\"Button Design\"},borderRadius:{type:ControlType.Number,title:\"Radius\",min:0,max:100,section:\"Button Design\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CTAButtonSub\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CTAbuttonSub.map"],"mappings":"kLAC8P,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,SAAO,SAAO,SAAO,SAAO,SAAO,SAAO,SAAO,aAAW,YAAU,cAAY,cAAY,YAAU,eAAa,YAAU,EAC/a,MAAoB,CAAmE,GAAG,CAAtD,SAAS,cAAc,cAAc,EAAS,IAAI,CAAc,CAAC,IAAM,EAAQ,SAAS,cAAc,OAAO,CAAC,EAAQ,KAAK,EAAS,EAAQ,IAAI,aAAa,SAAS,KAAK,YAAY,EAAQ,GAAI,EAAE,CAAC,CAC1O,IAAM,EAAU,GAAgB,EAAuB,OAAO,GAAY,SAAgB,EAAa,EAAU,IAAW,EAAU,IAAO,EAAU,KAAY,EAAU,KAAW,IAAxI,IAC1C,EAAQA,MAAsB,IAAS,KAAW,CAAC,KAAK,EAAO,KAAK,EAAU,EAAO,CAAC,CAAI,IAAS,KAAW,CAAC,KAAK,EAAO,KAAK,EAAU,EAAO,CAAC,CAAO,CAAC,KAAK,EAAO,KAAK,EAAU,EAAO,CAAC,CAAG,CAAC,EAAO,EAAO,EAAO,EAAO,EAAO,EAAO,EAAO,CAAC,CAAO,EAAa,IAAa,SAAS,OAAoB,EAAK,IAAI,CAAC,KAAK,EAAQ,KAAK,eAAe,UACjW,MAAM,CAAC,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,eAAe,OACzF,gBAAgB,EAAa,cAAc,EAAU,OAAO,EAAa,GAAG,EAAY,WAAW,IAAc,GAAG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