{"version":3,"file":"AppOpenButton.DN893Syu.mjs","names":[],"sources":["https:/framerusercontent.com/modules/twJyrRCaDJ3nOX0drbdt/ZHClxKJKNhteE5mCGSCH/AppOpenButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{Frame,addPropertyControls,ControlType}from\"framer\";export function AppOpenButton(props){const{text,bgColor,textColor,borderRadius,fontSize,width,height}=props;const handleClick=()=>{const ua=navigator.userAgent||navigator.vendor||window.opera;const isAndroid=/android/i.test(ua);const isIOS=/iPad|iPhone|iPod/.test(ua)||ua.includes(\"Macintosh\")&&\"ontouchend\"in document;if(isAndroid){window.location.href=\"https://play.google.com/store/apps/details?id=com.glninternational.gapp&pcampaignid=web_share\";}else if(isIOS){window.location.href=\"https://apps.apple.com/kr/app/gln-%ED%95%B4%EC%99%B8%EC%97%AC%ED%96%89-%ED%95%84%EC%88%98%ED%85%9C/id1608440499\";}else{alert(\"모바일 기기에서 다운로드 해주세요.\");}};return /*#__PURE__*/_jsx(Frame,{background:bgColor,width:width,height:height,radius:borderRadius,style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:fontSize,fontWeight:600,color:textColor,cursor:\"pointer\",border:\"none\"},onClick:handleClick,children:text});}// 👉 속성 설정: 프레이머에서 텍스트/컬러/사이즈 수정 가능\naddPropertyControls(AppOpenButton,{text:{type:ControlType.String,defaultValue:\"열기\"},bgColor:{type:ControlType.Color,defaultValue:\"#3d0496\"},textColor:{type:ControlType.Color,defaultValue:\"#ffffff\"},borderRadius:{type:ControlType.Number,defaultValue:24},fontSize:{type:ControlType.Number,defaultValue:16},width:{type:ControlType.Number,defaultValue:120},height:{type:ControlType.Number,defaultValue:48}});\nexport const __FramerMetadata__ = {\"exports\":{\"AppOpenButton\":{\"type\":\"reactComponent\",\"name\":\"AppOpenButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AppOpenButton.map"],"mappings":"mSAAqG,SAAgB,EAAc,EAAM,CAAC,GAAK,CAAC,OAAK,UAAQ,YAAU,eAAa,WAAS,QAAM,UAAQ,EAAyhB,OAAoB,EAAK,EAAM,CAAC,WAAW,EAAc,QAAa,SAAO,OAAO,EAAa,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAkB,WAAS,WAAW,IAAI,MAAM,EAAU,OAAO,UAAU,OAAO,OAAO,CAAC,YAAjvB,CAAC,IAAM,EAAG,EAAU,WAAW,EAAU,QAAQ,EAAO,MAAY,EAAU,WAAW,KAAK,EAAG,CAAO,EAAM,mBAAmB,KAAK,EAAG,EAAE,EAAG,SAAS,YAAY,EAAE,eAAe,SAAY,EAAW,EAAO,SAAS,KAAK,gGAAyG,EAAO,EAAO,SAAS,KAAK,kHAAwH,MAAM,sBAAsB,EAA4Q,SAAS,EAAK,CAAC,sBAAh9B,IAA0D,CACrG,EAAoB,EAAc,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,aAAa,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAY,MAAM,aAAa,UAAU,CAAC,UAAU,CAAC,KAAK,EAAY,MAAM,aAAa,UAAU,CAAC,aAAa,CAAC,KAAK,EAAY,OAAO,aAAa,GAAG,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,aAAa,GAAG,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,aAAa,IAAI,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,aAAa,GAAG,CAAC,CAAC"}