{"version":3,"file":"CTAbutton.jAdgrVBf.mjs","names":["React.useMemo"],"sources":["https:/framerusercontent.com/modules/7bBxPbEPp9C4KLnHWX8z/mll5MGBqLHDIPZD10wYE/CTAbutton.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 GTM_MultiLang_Button(props){const{locale,textKo,textEn,textJp,linkKo,linkEn,linkJp,bgColor,textColor,borderRadius,fontSize}=props;// 폰트 로드 Effect\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);}},[]);// 프레이머 링크 객체에서 URL 문자열 추출 함수\nconst getHref=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:getHref(linkKo)};if(locale===\"jp\")return{text:textJp,href:getHref(linkJp)};return{text:textEn,href:getHref(linkEn)};},[locale,textKo,textEn,textJp,linkKo,linkEn,linkJp]);return /*#__PURE__*/_jsx(\"a\",{href:content.href,\"data-gtm-cta\":\"main_cta\",style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",textDecoration:\"none\",backgroundColor:bgColor,color:textColor,borderRadius:`${borderRadius}px`,fontSize:`${fontSize}px`,padding:\"14px 24px\",fontWeight:600,fontFamily:fontFamily,cursor:\"pointer\",transition:\"filter 0.2s ease\"},onMouseEnter:e=>e.currentTarget.style.filter=\"brightness(0.5)\",onMouseLeave:e=>e.currentTarget.style.filter=\"brightness(1)\",children:content.text});}// 기본값 설정\nGTM_MultiLang_Button.defaultProps={locale:\"ko\",textKo:\"지금 시작하기\",textEn:\"Get Started\",textJp:\"今すぐ始める\",bgColor:\"#111111\",textColor:\"#ffffff\",borderRadius:100,fontSize:16};// 속성 제어 (사이드패널 설정)\naddPropertyControls(GTM_MultiLang_Button,{locale:{type:ControlType.Enum,title:\"Current Locale\",options:[\"ko\",\"en\",\"jp\"],optionTitles:[\"Korean\",\"English\",\"Japanese\"],defaultValue:\"ko\"},// 한국어 설정 그룹\ntextKo:{type:ControlType.String,title:\"Text\",section:\"Korean (KO)\"},linkKo:{type:ControlType.Link,title:\"Link\",section:\"Korean (KO)\"},// 영어 설정 그룹\ntextEn:{type:ControlType.String,title:\"Text\",section:\"English (EN)\"},linkEn:{type:ControlType.Link,title:\"Link\",section:\"English (EN)\"},// 일본어 설정 그룹\ntextJp:{type:ControlType.String,title:\"Text\",section:\"Japanese (JP)\"},linkJp:{type:ControlType.Link,title:\"Link\",section:\"Japanese (JP)\"},// 공통 스타일 그룹\nbgColor:{type:ControlType.Color,title:\"Background\",section:\"Style\"},textColor:{type:ControlType.Color,title:\"Text Color\",section:\"Style\"},fontSize:{type:ControlType.Number,title:\"Font Size\",min:12,max:40,section:\"Style\"},borderRadius:{type:ControlType.Number,title:\"Radius\",min:0,max:50,section:\"Style\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GTM_MultiLang_Button\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CTAbutton.map"],"mappings":"kLAC8P,SAAwB,EAAqB,EAAM,CAAC,GAAK,CAAC,SAAO,SAAO,SAAO,SAAO,SAAO,SAAO,SAAO,UAAQ,YAAU,eAAa,YAAU,EAClZ,MAAoB,CAAmE,GAAG,CAAtD,SAAS,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