{"version":3,"file":"Color.BbZeJOmp.mjs","names":[],"sources":["https:/framerusercontent.com/modules/qLfbAMjgDzjz4MQmRJsM/7l213zrmiWV9rWtsztls/Color.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// @property + keyframes 를 1회만 주입 (conic-gradient 각도 애니메이션용)\nfunction useInjectKeyframes(){useEffect(()=>{const id=\"glow-border-keyframes\";if(document.getElementById(id))return;const style=document.createElement(\"style\");style.id=id;style.textContent=`\n            @property --glow-angle {\n                syntax: '<angle>';\n                initial-value: 0deg;\n                inherits: false;\n            }\n            @keyframes glow-border-spin {\n                to { --glow-angle: 360deg; }\n            }\n        `;document.head.appendChild(style);},[]);}export function withGlowBorder(Component){return props=>{useInjectKeyframes();// 👇 취향대로 조정\nconst borderWidth=2// 테두리 두께(px)\n;const radius=30// 모서리 둥글기 (요소 Radius와 맞추기)\n;const speed=5// 한 바퀴 도는 시간(초)\n;const innerColor=\"#ffffff\"// 안쪽 박스 = 화이트\n;const colors=\"#AD8C49, #307E61, #DEC287, #AD8C49\"// 👈 여기 색만 네가 조정\n;return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,position:\"relative\",borderRadius:radius,background:`\n                        linear-gradient(${innerColor}, ${innerColor}) padding-box,\n                        conic-gradient(from var(--glow-angle), ${colors}) border-box\n                    `,border:`${borderWidth}px solid transparent`,animation:`glow-border-spin ${speed}s linear infinite`}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withGlowBorder\":{\"type\":\"reactHoc\",\"name\":\"withGlowBorder\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Color.map"],"mappings":"kHACA,SAAS,GAAoB,CAAC,MAAc,CAAC,IAAM,EAAG,wBAAwB,GAAG,SAAS,eAAe,CAAE,EAAE,OAAO,IAAM,EAAM,SAAS,cAAc,OAAO,EAAE,EAAM,GAAG,EAAG,EAAM,YAAY;;;;;;;;;UASpL,SAAS,KAAK,YAAY,CAAK,CAAE,EAAE,CAAC,CAAC,CAAE,CAAC,SAAgB,EAAe,EAAU,CAAC,MAAO,IAAO,CAAC,EAAmB,EAC9H,IAGO,EAAW,UAEjB,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,aAAa,GAAO,WAAW;0CAC7E,EAAW,IAAI,EAAW;;sBAE9C,OAAO,wBAAqC,UAAU,qCAA4C,CAAC,CAAC,CAAE,CAAE,iBAnBpF,IAA6B"}