{"version":3,"file":"usePhoneVerification.DgJrO2kH.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/HT4rUnqOnCA8e0H2dcPo/SnAOnug5QyEKuteQwL8x/usePhoneVerification.js"],"sourcesContent":["// usePhoneVerification.ts - 핸드폰 인증 확인 Hook\nimport{useState,useEffect}from\"react\";import{API_BASE_URL}from\"https://framerusercontent.com/modules/2PmIdETWDDFF5Tj3RXeu/Rqn14QPiqTXwbLD2tzHY/config.js\";export function usePhoneVerification(){const[state,setState]=useState({isVerified:false,loading:true,phoneNumber:null});useEffect(()=>{checkPhoneVerification();},[]);const checkPhoneVerification=async()=>{try{const token=localStorage.getItem(\"sb-access-token\");if(!token){setState({isVerified:false,loading:false,phoneNumber:null});return;}console.log(\"Checking phone verification status...\");const response=await fetch(`${API_BASE_URL}/api/profile/get`,{headers:{Authorization:`Bearer ${token}`}});if(!response.ok){setState({isVerified:false,loading:false,phoneNumber:null});return;}const data=await response.json();const profile=data.profile;const isVerified=profile?.phone_verified===true;const phoneNumber=profile?.phone_number||null;console.log(\"Phone verification status:\",isVerified);console.log(\"Phone number:\",phoneNumber);setState({isVerified,loading:false,phoneNumber});}catch(error){console.error(\"Phone verification check error:\",error);setState({isVerified:false,loading:false,phoneNumber:null});}};return state;}\nexport const __FramerMetadata__ = {\"exports\":{\"usePhoneVerification\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"4MAC0J,SAAgB,GAAsB,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAS,CAAC,WAAW,GAAM,QAAQ,GAAK,YAAY,KAAK,CAAC,CAAC,MAAc,CAAC,GAAwB,EAAG,EAAE,CAAC,CAAC,IAAM,EAAuB,SAAS,CAAC,GAAG,CAAC,IAAM,EAAM,aAAa,QAAQ,kBAAkB,CAAC,GAAG,CAAC,EAAM,CAAC,EAAS,CAAC,WAAW,GAAM,QAAQ,GAAM,YAAY,KAAK,CAAC,CAAC,OAAQ,QAAQ,IAAI,wCAAwC,CAAC,IAAM,EAAS,MAAM,MAAM,GAAG,EAAa,kBAAkB,CAAC,QAAQ,CAAC,cAAc,UAAU,IAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,EAAS,GAAG,CAAC,EAAS,CAAC,WAAW,GAAM,QAAQ,GAAM,YAAY,KAAK,CAAC,CAAC,OAAyC,IAAM,GAA5B,MAAM,EAAS,MAAM,EAAoB,QAAc,EAAW,GAAS,iBAAiB,GAAW,EAAY,GAAS,cAAc,KAAK,QAAQ,IAAI,6BAA6B,EAAW,CAAC,QAAQ,IAAI,gBAAgB,EAAY,CAAC,EAAS,CAAC,aAAW,QAAQ,GAAM,cAAY,CAAC,OAAQ,EAAM,CAAC,QAAQ,MAAM,kCAAkC,EAAM,CAAC,EAAS,CAAC,WAAW,GAAM,QAAQ,GAAM,YAAY,KAAK,CAAC,GAAI,OAAO,mBAAhnC,IAAoH"}