{"version":3,"file":"WithUnderline.CeD2Eddd.mjs","names":["useMemo","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/AdsVPZyxAWLEHUA2dmrg/iDcLdb6sDlc7Oy2zAtCW/ApplyPageD.js","https:/framerusercontent.com/modules/dlHwVQkJtg4g7yemALQP/5MF0JRHWNo57SYxQbXJM/ApplyPageD1Btn.js","https:/framerusercontent.com/modules/tJhMjBIHHz8jJrsGRAhn/qYK3biahXEQ0KiI9BDaS/WithUnderline.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";import{useStore}from\"https://framerusercontent.com/modules/kuyl1nz1h6yY4EEy9Yv9/5ApEPRxQokmPkZLrRXp2/FormOverride.js\";import{useAtomValue}from\"jotai\";import{totalKeywordAtom}from\"https://framerusercontent.com/modules/vfUa01wAPMeJUHfyC6wj/8xBtN4wv468DcvChegY4/KeywordAtom.js\";export function applyPageDLogic(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();const keyword=useAtomValue(totalKeywordAtom);function isFramerIframe(){try{return window.top!==window.self;}catch{return true;}}const getUtmSource=()=>{if(typeof window===\"undefined\")return null// SSR 방어\n;const params=new URLSearchParams(window.location.search);return params.get(\"utm_source\");};const isDaSource=source=>{if(!source)return false;return source.endsWith(\"_da\");};function applyFormVersionParam(u,suffix){u.searchParams.set(\"form_version\",\"D\");}useEffect(()=>{const inIframe=isFramerIframe();if(inIframe)return;const pageSuffix=\"4\";const utmSource=getUtmSource();{const currentUrl=new URL(window.location.href);applyFormVersionParam(currentUrl,pageSuffix);window.history.replaceState(null,\"\",currentUrl.toString());}if(!keyword.isDA&&!isDaSource(utmSource??undefined)){console.log(\"DA 대상 아님\");const currentUrl=new URL(window.location.href);const targetUrl=new URL(window.location.origin+\"/신청\");currentUrl.searchParams.forEach((value,key)=>{targetUrl.searchParams.set(key,value);});applyFormVersionParam(targetUrl,pageSuffix);window.location.replace(targetUrl.toString());return;}setStore({...store,pageSuffix});},[]);useEffect(()=>{if(store.checkedD1&&store.checkedD2&&store.checkedD3){const currentUrl=new URL(window.location.href);const queryString=currentUrl.search;const targetPath=props.href||\"/신청-d-2\";const targetUrl=targetPath+queryString;window.location.href=targetUrl;}},[store.checkedD1,store.checkedD2,store.checkedD3]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"applyPageDLogic\":{\"type\":\"reactHoc\",\"name\":\"applyPageDLogic\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ApplyPageD.map","// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useStore}from\"https://framerusercontent.com/modules/kuyl1nz1h6yY4EEy9Yv9/5ApEPRxQokmPkZLrRXp2/FormOverride.js\";import{useMemo}from\"react\";export default function ApplyPageD1Btn(props){const{buttonIndex}=props;const[store,setStore]=useStore();const checked=useMemo(()=>{if(buttonIndex===1)return store.checkedD1;if(buttonIndex===2)return store.checkedD2;if(buttonIndex===3)return store.checkedD3;},[store.checkedD1,store.checkedD2,store.checkedD3]);const handleClick=e=>{e.preventDefault();if(buttonIndex===1)setStore({...store,checkedD1:true});if(buttonIndex===2)setStore({...store,checkedD2:true});if(buttonIndex===3)setStore({...store,checkedD3:true});};const customStyle=checked?{width:\"100%\",height:\"70px\",display:\"flex\",flexDirection:\"row\",columnGap:\"10px\",alignItems:\"center\",justifyContent:\"center\",borderRadius:\"15px\",border:\"1.5px solid #3872DF\",pointerEvents:\"none\",cursor:\"pointer\"}:{width:\"100%\",height:\"70px\",display:\"flex\",flexDirection:\"row\",columnGap:\"10px\",alignItems:\"center\",justifyContent:\"center\",borderRadius:\"15px\",border:\"1px solid #E8EBED\",pointerEvents:\"auto\",cursor:\"pointer\"};const textStyle=checked?{color:\"#3872DF\",textAlign:\"center\",fontFamily:\"Pretendard\",fontSize:\"18px\",fontStyle:\"normal\",fontWeight:600,lineHeight:\"25px\",letterSpacing:\"-0.36px\"}:{color:\"#9EA4AA\",textAlign:\"center\",fontFamily:\"Pretendard\",fontSize:\"18px\",fontStyle:\"normal\",fontWeight:600,lineHeight:\"25px\",letterSpacing:\"-0.36px\"};return /*#__PURE__*/_jsxs(\"div\",{onClick:handleClick,style:customStyle,children:[checked?/*#__PURE__*/_jsxs(\"svg\",{width:\"26\",height:\"26\",viewBox:\"0 0 26 26\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"13\",cy:\"13\",r:\"10\",fill:\"#3872DF\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M8 12.7551L12.375 16.4286L18 10\",stroke:\"white\",\"stroke-width\":\"1.67308\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"})]}):/*#__PURE__*/_jsxs(\"svg\",{width:\"26\",height:\"26\",viewBox:\"0 0 26 26\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"13\",cy:\"13\",r:\"10\",fill:\"#C9CDD2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M8 12.7551L12.375 16.4286L18 10\",stroke:\"white\",\"stroke-width\":\"1.67308\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"})]}),/*#__PURE__*/_jsx(\"div\",{style:textStyle,children:\"확인했습니다.\"})]});}addPropertyControls(ApplyPageD1Btn,{buttonIndex:{title:\"buttonIndex\",type:ControlType.Number,defaultValue:-1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ApplyPageD1Btn\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ApplyPageD1Btn.map","import{jsx as _jsx}from\"react/jsx-runtime\";export function HighlightUnderline(){return{style:{textDecoration:\"none\",background:`\n        linear-gradient(\n          transparent 40%,\n          #EAF4FF 50%,\n          #EAF4FF 90%,\n          transparent 90%\n        )\n      `}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withHighlightUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...HighlightUnderline(props)});};}withHighlightUnderline.displayName=\"HighlightUnderline\";\nexport const __FramerMetadata__ = {\"exports\":{\"withHighlightUnderline\":{\"type\":\"reactHoc\",\"name\":\"withHighlightUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HighlightUnderline\":{\"type\":\"override\",\"name\":\"HighlightUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithUnderline.map"],"mappings":"6hBAAsW,SAAgB,EAAgB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAO,EAAQ,EAAa,EAAiB,CAAC,SAAS,GAAgB,CAAC,GAAG,CAAC,OAAO,EAAO,MAAM,EAAO,UAAW,CAAC,MAAO,IAAO,IAAM,MAA4B,IAAS,OAAmB,KAC/oB,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAe,IAAI,aAAa,CAAS,EAAW,GAAa,EAA2B,EAAO,SAAS,MAAM,CAAnC,GAAsC,SAAS,EAAsB,EAAE,EAAO,CAAC,EAAE,aAAa,IAAI,eAAe,IAAI,CAA69B,OAA39B,MAAc,CAAiC,GAAjB,GAAgB,CAAa,OAAO,IAA2B,EAAU,GAAc,CAAC,CAAC,IAAM,EAAW,IAAI,IAAI,EAAO,SAAS,KAAK,CAAC,EAAsB,EAAW,IAAW,CAAC,EAAO,QAAQ,aAAa,KAAK,GAAG,EAAW,UAAU,CAAC,CAAE,GAAG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