{"version":3,"file":"JoinButton.Tfe2JLPf.mjs","names":["useState","useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/CeRPXc8hZKicsjkl8tNV/Fm5VRPBd5Gw4yOmthVM4/JoinSpecialAccoutDialog.js","https:/framerusercontent.com/modules/gArEtmSY8Mhr2pCiHvu6/dvmfT9dzKdzCKTdbvjAW/JoinButton.js"],"sourcesContent":["// JoinSpecialAccoutDialog.tsx\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{createPortal}from\"react-dom\";import{useEffect,useState}from\"react\";export default function JoinSpecialAccoutDialog({isOpen,setIsOpen}){const[mounted,setMounted]=useState(false);useEffect(()=>{setMounted(true);},[]);const handleClose=()=>{setIsOpen(false);};if(!isOpen||!mounted){return null;}const dialog=/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:0,left:0,right:0,bottom:0,backgroundColor:\"rgba(0, 0, 0, 0.5)\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",zIndex:9999},onClick:handleClose,children:/*#__PURE__*/_jsxs(\"div\",{onClick:e=>e.stopPropagation(),style:{backgroundColor:\"#F5F5F7\",borderRadius:\"24px\",paddingTop:\"32px\",paddingLeft:\"20px\",paddingBottom:\"32px\",paddingRight:\"20px\",maxWidth:\"560px\",width:\"90%\",boxShadow:\"0 20px 60px rgba(0, 0, 0, 0.15)\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{fontSize:\"20px\",fontWeight:\"700\",marginBottom:\"24px\",color:\"#000\",letterSpacing:\"-0.5px\"},children:\"회원가입 완료\"}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"16px\",lineHeight:\"1.6\",color:\"#1D1D1F\",marginBottom:\"32px\",letterSpacing:\"-0.3px\"},children:\"특수한 유형의 부가통신 사업자는 영업 담당자를 통해 계약을 진행한 후 서비스를 이용할 수 있습니다. 빠른 시일 내에 연락드리겠습니다.\"}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",justifyContent:\"flex-end\"},children:/*#__PURE__*/_jsx(\"button\",{onClick:handleClose,style:{backgroundColor:\"#007AFF\",color:\"white\",border:\"none\",borderRadius:\"12px\",padding:\"14px 32px\",fontSize:\"16px\",fontWeight:\"600\",cursor:\"pointer\",letterSpacing:\"-0.3px\"},children:\"확인\"})})]})});return /*#__PURE__*/createPortal(dialog,document.body);}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"JoinSpecialAccoutDialog\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./JoinSpecialAccoutDialog.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useAuth}from\"https://framerusercontent.com/modules/dHmTJRVO8BDJcZx3NUaw/U3m2XvfQmvSN31UpH8Bq/AuthStore.js\";import JoinSpecialAccoutDialog from\"https://framerusercontent.com/modules/CeRPXc8hZKicsjkl8tNV/Fm5VRPBd5Gw4yOmthVM4/JoinSpecialAccoutDialog.js\";import{useState}from\"react\";// 텍스트 레이어에 적용 (텍스트 변경)\nexport function JoinButton(Component){return props=>{const[isOpen,setIsOpen]=useState(false);const{isAuthenticated,refreshSession,goToDashboard,goToSignUp}=useAuth();const handleClick=async()=>{// 클릭 시 세션 재확인\nconst currentAuth=await refreshSession();const approve=currentAuth?.user?.provider?.approve;if(approve===false){setIsOpen(true);return;}if(currentAuth.isAuthenticated){goToDashboard();}else{goToSignUp();}};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(JoinSpecialAccoutDialog,{isOpen:isOpen,setIsOpen:setIsOpen}),/*#__PURE__*/_jsx(Component,{...props,onClick:handleClick,onTap:handleClick,visible:!isAuthenticated})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"JoinButton\":{\"type\":\"reactHoc\",\"name\":\"JoinButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"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