{"version":3,"file":"UmohForm.DqlNgWzG.mjs","names":[],"sources":["https:/framerusercontent.com/modules/CJiaCJxKP8hKEnW6tfLi/Kpd1Yx3mHG1tP04whbly/UmohForm.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * 1️⃣ 기본 폼 HOC — onSubmit만 이용, addEventListener 금지\n */export function UmohForm(Component){return props=>{const handleSubmit=e=>{e.preventDefault();console.log(\"UmohForm submit intercepted\");// 필요시 직접 처리 로직 (이벤트 실제 제출 필요시 e.preventDefault() 제거)\n};return /*#__PURE__*/_jsx(Component,{...props,onSubmit:handleSubmit});};}/**\n * 2️⃣ 안전한 커스텀 폼 제출 핸들러 HOC (React 방식만 사용)\n * - 첫 번째 input 수정 없음\n * - hidden input[name=\"PageLocation\"] 필드에 경로 기록\n */export function withCustomFormSubmit(Component){return props=>{const handleSubmit=e=>{// 기본 제출 흐름(필요시 preventDefault 사용)\n// e.preventDefault();\n// hidden input[name=\"PageLocation\"] 경로 주입\nconst form=e.currentTarget;const pageLocationField=form.elements.namedItem(\"PageLocation\");if(pageLocationField){pageLocationField.value=window.location.pathname;console.log(\"PageLocation set to:\",window.location.pathname);}else{console.warn(\"⚠️ Hidden input[name='PageLocation'] not found in form.\");}// 폼 기본 제출은 유지 (Framer/Google 전송)\n};return /*#__PURE__*/_jsx(Component,{...props,onSubmit:handleSubmit});};}/**\n * 3️⃣ 버튼 클릭용 HOC — onClick만 전달\n */export function withCustomFormButton(Component){return props=>{const handleClick=()=>{console.log(\"Form button clicked\");};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCustomFormSubmit\":{\"type\":\"reactHoc\",\"name\":\"withCustomFormSubmit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCustomFormButton\":{\"type\":\"reactHoc\",\"name\":\"withCustomFormButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"UmohForm\":{\"type\":\"reactHoc\",\"name\":\"UmohForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UmohForm.map"],"mappings":"kKAOG,SAAgB,EAAqB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAa,GAAG,CAG7D,IAAM,EAAtB,EAAE,cAA2C,SAAS,UAAU,eAAe,CAAI,GAAmB,EAAkB,MAAM,EAAO,SAAS,SAAS,QAAQ,IAAI,uBAAuB,EAAO,SAAS,SAAS,EAAO,QAAQ,KAAK,0DAA0D,EAC1S,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,SAAS,EAAa,CAAC,uBAX3B"}