{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/yMm5dg4mv21vOwXoM6xJ/KYkkrb5jFTLayrXWaPcp/Thenty_Logout.js", "ssg:https://framerusercontent.com/modules/eK8lWsX1ibNHDJxegaii/PEY7dNoloIMOIEBSLmul/Thenty.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{thentyAuth}from\"https://cdn.thenty.io/beta/thenty-sdk.min.js\";export const withLogout=Component=>props=>/*#__PURE__*/_jsx(Component,{...props,onClick:()=>{thentyAuth.logout(\"/\");}});\nexport const __FramerMetadata__ = {\"exports\":{\"withLogout\":{\"type\":\"reactHoc\",\"name\":\"withLogout\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Thenty_Logout.map", "import{jsx as _jsx}from\"react/jsx-runtime\";import{fetchUserData}from\"https://framer.com/m/ThentyHelpers-I0Oh.js\";import{thentyAuth}from\"https://cdn.thenty.io/beta/thenty-sdk.min.js\";export const withLogout=Component=>props=>/*#__PURE__*/_jsx(Component,{...props,onClick:()=>{thentyAuth.logout();}});export const showWhenLoggedIn=Component=>props=>{const{loggedIn}=fetchUserData();return!loggedIn?null:/*#__PURE__*/_jsx(Component,{...props});};export const hideWhenLoggedIn=Component=>props=>{const{loggedIn}=fetchUserData();return loggedIn?null:/*#__PURE__*/_jsx(Component,{...props});};export const withFirstName=Component=>props=>{const{loggedIn,userData}=fetchUserData();return!loggedIn||!userData?null:/*#__PURE__*/_jsx(Component,{...props,text:userData?.name?.split(\" \")[0]??\"\"});};export const withFullName=Component=>props=>{const{loggedIn,userData}=fetchUserData();return!loggedIn||!userData?null:/*#__PURE__*/_jsx(Component,{...props,text:userData?.name});};export const withEmail=Component=>props=>{const{loggedIn,userData}=fetchUserData();return!loggedIn||!userData?null:/*#__PURE__*/_jsx(Component,{...props,text:userData?.email});};\nexport const __FramerMetadata__ = {\"exports\":{\"showWhenLoggedIn\":{\"type\":\"reactHoc\",\"name\":\"showWhenLoggedIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFirstName\":{\"type\":\"reactHoc\",\"name\":\"withFirstName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFullName\":{\"type\":\"reactHoc\",\"name\":\"withFullName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLogout\":{\"type\":\"reactHoc\",\"name\":\"withLogout\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEmail\":{\"type\":\"reactHoc\",\"name\":\"withEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideWhenLoggedIn\":{\"type\":\"reactHoc\",\"name\":\"hideWhenLoggedIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Thenty.map"],
  "mappings": "2HAAuH,IAAMA,EAAWC,GAAWC,GAAoBC,EAAKF,EAAU,CAAC,GAAGC,EAAM,QAAQ,IAAI,CAACE,EAAW,OAAO,GAAG,CAAE,CAAC,CAAC,ECA4E,IAAMC,EAAiBC,GAAWC,GAAO,CAAC,GAAK,CAAC,SAAAC,CAAQ,EAAEC,EAAc,EAAE,OAAOD,EAA2BE,EAAKJ,EAAU,CAAC,GAAGC,CAAK,CAAC,EAA3C,IAA6C,EAAeI,EAAiBL,GAAWC,GAAO,CAAC,GAAK,CAAC,SAAAC,CAAQ,EAAEC,EAAc,EAAE,OAAOD,EAAS,KAAkBE,EAAKJ,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAE,EAAeK,EAAcN,GAAWC,GAAO,CAAC,GAAK,CAAC,SAAAC,EAAS,SAAAK,CAAQ,EAAEJ,EAAc,EAAE,MAAM,CAACD,GAAU,CAACK,EAAS,KAAkBH,EAAKJ,EAAU,CAAC,GAAGC,EAAM,KAAKM,GAAU,MAAM,MAAM,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAE,EAA6L,IAAMC,EAAUC,GAAWC,GAAO,CAAC,GAAK,CAAC,SAAAC,EAAS,SAAAC,CAAQ,EAAEC,EAAc,EAAE,MAAM,CAACF,GAAU,CAACC,EAAS,KAAkBE,EAAKL,EAAU,CAAC,GAAGC,EAAM,KAAKE,GAAU,KAAK,CAAC,CAAE",
  "names": ["withLogout", "Component", "props", "p", "thentyAuth", "showWhenLoggedIn", "Component", "props", "loggedIn", "fetchUserData", "p", "hideWhenLoggedIn", "withFirstName", "userData", "withEmail", "Component", "props", "loggedIn", "userData", "fetchUserData", "p"]
}
