{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Rddxgu3W0BX98kRvYGEp/HQ1eVLfGS64gMJdD65Q6/Supa_Welcome.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{supabase}from\"https://framerusercontent.com/modules/tpDIUihXWnHC8RHhydnY/Rzt8aM6VrIlM2pUJYY0E/SupabaseClient.js\";export function WelcomeMessage(props){const[user,setUser]=useState(null);// Obtener usuario autenticado\nuseEffect(()=>{const fetchUser=async()=>{const{data:{user}}=await supabase.auth.getUser();setUser(user);};fetchUser();},[]);// Verificar que exista el usuario y que tenga la propiedad \"Display name\"\nif(!user||!user.user_metadata?.[\"Display name\"])return null;return /*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:\"Inter, sans-serif\",fontSize:props.textSize,color:props.welcomeColor,fontWeight:props.fontWeight},children:[\"Welcome @\",/*#__PURE__*/_jsx(\"span\",{style:{color:props.nameColor},children:user.user_metadata[\"Display name\"]})]});}// Controles en el panel de Framer\naddPropertyControls(WelcomeMessage,{textSize:{type:ControlType.Number,title:\"Tama\\xf1o texto\",defaultValue:16,min:12,max:24,step:1},fontWeight:{type:ControlType.Enum,title:\"Peso fuente\",options:[\"normal\",\"bold\",\"600\",\"700\"],defaultValue:\"normal\"},welcomeColor:{type:ControlType.Color,title:\"Color Bienvenida\",defaultValue:\"#666666\"},nameColor:{type:ControlType.Color,title:\"Color Nombre\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"WelcomeMessage\":{\"type\":\"reactComponent\",\"name\":\"WelcomeMessage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Supa_Welcome.map"],
  "mappings": "uJAAkR,SAASA,EAAeC,EAAM,CAAC,GAAK,CAACC,EAAKC,CAAO,EAAEC,EAAS,IAAI,EAElV,OADAC,EAAU,IAAI,EAAiB,SAAS,CAAC,GAAK,CAAC,KAAK,CAAC,KAAAH,CAAI,CAAC,EAAE,MAAMI,EAAS,KAAK,QAAQ,EAAEH,EAAQD,CAAI,CAAE,GAAY,CAAE,EAAE,CAAC,CAAC,EACvH,CAACA,GAAM,CAACA,EAAK,gBAAgB,cAAc,EAAS,KAAyBK,EAAM,MAAM,CAAC,MAAM,CAAC,WAAW,oBAAoB,SAASN,EAAM,SAAS,MAAMA,EAAM,aAAa,WAAWA,EAAM,UAAU,EAAE,SAAS,CAAC,YAAyBO,EAAK,OAAO,CAAC,MAAM,CAAC,MAAMP,EAAM,SAAS,EAAE,SAASC,EAAK,cAAc,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAChVO,EAAoBT,EAAe,CAAC,SAAS,CAAC,KAAKU,EAAY,OAAO,MAAM,kBAAkB,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC,EAAE,WAAW,CAAC,KAAKA,EAAY,KAAK,MAAM,cAAc,QAAQ,CAAC,SAAS,OAAO,MAAM,KAAK,EAAE,aAAa,QAAQ,EAAE,aAAa,CAAC,KAAKA,EAAY,MAAM,MAAM,mBAAmB,aAAa,SAAS,EAAE,UAAU,CAAC,KAAKA,EAAY,MAAM,MAAM,eAAe,aAAa,SAAS,CAAC,CAAC",
  "names": ["WelcomeMessage", "props", "user", "setUser", "ye", "ue", "supabase", "u", "p", "addPropertyControls", "ControlType"]
}
