{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/N23dLSBPvKFKSpbaBoP2/Kq4nEzVMdcVOVKJWh2d2/Club_override.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{fetchUserData}from\"https://framer.com/m/ThentyHelpers-I0Oh.js\";import{thentyAuth}from\"https://cdn.thenty.co/beta/thenty-sdk.min.js\";import{hasProduct}from\"https://framer.com/m/ThentyHelpers-I0Oh.js\";const productIds=[\"42bbb616-abc4-4a0f-91a0-a62061e94a93\",\"2d9c01c0-c76f-4022-87d5-3182e2ac08d8\",\"33aa10e5-af1f-4791-8807-c624bf92893a\",\"b174caee-d57e-473a-aa50-477e963fec59\",\"e025c573-f1c4-4bf1-90cd-c8e36c405c7b\"];// Helper function to check if user has any of the products\nconst hasAnyProduct=()=>{return productIds.some(id=>hasProduct([id]));};export const withLogout=Component=>props=>/*#__PURE__*/_jsx(Component,{...props,onClick:()=>{if(hasAnyProduct()){thentyAuth.logout();}}});export const showWhenLoggedIn=Component=>props=>{const{loggedIn}=fetchUserData();return!loggedIn||!hasAnyProduct()?null:/*#__PURE__*/_jsx(Component,{...props});};export const hideWhenLoggedIn=Component=>props=>{const{loggedIn}=fetchUserData();return loggedIn&&hasAnyProduct()?null:/*#__PURE__*/_jsx(Component,{...props});};export const withFirstName=Component=>props=>{var _userData_name;const{loggedIn,userData}=fetchUserData();var _userData_name_split_;return!loggedIn||!userData||!hasAnyProduct()?null:/*#__PURE__*/_jsx(Component,{...props,text:(_userData_name_split_=userData===null||userData===void 0?void 0:(_userData_name=userData.name)===null||_userData_name===void 0?void 0:_userData_name.split(\" \")[0])!==null&&_userData_name_split_!==void 0?_userData_name_split_:\"\"});};export const withFullName=Component=>props=>{const{loggedIn,userData}=fetchUserData();return!loggedIn||!userData||!hasAnyProduct()?null:/*#__PURE__*/_jsx(Component,{...props,text:userData===null||userData===void 0?void 0:userData.name});};export const withEmail=Component=>props=>{const{loggedIn,userData}=fetchUserData();return!loggedIn||!userData||!hasAnyProduct()?null:/*#__PURE__*/_jsx(Component,{...props,text:userData===null||userData===void 0?void 0:userData.email});};\nexport const __FramerMetadata__ = {\"exports\":{\"withLogout\":{\"type\":\"reactHoc\",\"name\":\"withLogout\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showWhenLoggedIn\":{\"type\":\"reactHoc\",\"name\":\"showWhenLoggedIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEmail\":{\"type\":\"reactHoc\",\"name\":\"withEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFirstName\":{\"type\":\"reactHoc\",\"name\":\"withFirstName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFullName\":{\"type\":\"reactHoc\",\"name\":\"withFullName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideWhenLoggedIn\":{\"type\":\"reactHoc\",\"name\":\"hideWhenLoggedIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Club_override.map"],
  "mappings": "kIAAAA,IAAyP,IAAMC,EAAW,CAAC,uCAAuC,uCAAuC,uCAAuC,uCAAuC,sCAAsC,EACvcC,EAAc,IAAYD,EAAW,KAAKE,GAAIC,EAAW,CAACD,CAAE,CAAC,CAAC,EAAqJ,IAAME,EAAiBC,GAAWC,GAAO,CAAC,GAAK,CAAC,SAAAC,CAAQ,EAAEC,EAAc,EAAE,MAAM,CAACD,GAAU,CAACE,EAAc,EAAE,KAAkBC,EAAKL,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAE,EAAeK,EAAiBN,GAAWC,GAAO,CAAC,GAAK,CAAC,SAAAC,CAAQ,EAAEC,EAAc,EAAE,OAAOD,GAAUE,EAAc,EAAE,KAAkBC,EAAKL,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAE,EAAeM,EAAcP,GAAWC,GAAO,CAAC,IAAIO,EAAe,GAAK,CAAC,SAAAN,EAAS,SAAAO,CAAQ,EAAEN,EAAc,EAAE,IAAIO,EAAsB,MAAM,CAACR,GAAU,CAACO,GAAU,CAACL,EAAc,EAAE,KAAkBC,EAAKL,EAAU,CAAC,GAAGC,EAAM,MAAMS,EAAsBD,GAAW,OAAgCD,EAAeC,EAAS,QAAQ,MAAMD,IAAiB,OAA/D,OAA6EA,EAAe,MAAM,GAAG,EAAE,CAAC,KAAK,MAAME,IAAwB,OAAOA,EAAsB,EAAE,CAAC,CAAE",
  "names": ["init_ssg_sandbox_shims", "productIds", "hasAnyProduct", "id", "hasProduct", "showWhenLoggedIn", "Component", "props", "loggedIn", "fetchUserData", "hasAnyProduct", "p", "hideWhenLoggedIn", "withFirstName", "_userData_name", "userData", "_userData_name_split_"]
}
