{"version":3,"file":"FramerAuth.C6EAtBd1.mjs","names":["showIfSignedOut","showIfSignedIn","buttonSignOut","useUser","showIfWithoutTag","toggleVariant","toggleVariantIfWithTag","withIsBookmarked","withBookmarks","withToggleBookmark"],"sources":["https:/framerusercontent.com/modules/AuQjwQKL2kjmB2O1NRi0/gTi9QR7m24vLN66Q32FA/FramerAuth.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{buttonSignOut,showIfSignedIn,showIfSignedOut,showIfWithTag,showIfWithoutTag,toggleVariant,toggleVariantIfWithTag,useUser,withBookmarks,withIsBookmarked,withToggleBookmark}from\"https://cdn.jsdelivr.net/npm/@framerauth/sdk@2/dist/framerauth.mjs\";/**\n * [START] FRAMERAUTH OVERRIDES\n *//* [START] AUTH */export function withLoggedOut(Component){return showIfSignedOut(Component);}export function withLoggedIn(Component){return showIfSignedIn(Component);}export function withSignOut(Component){const redirectLink=\"/\";const options={redirectTo:redirectLink};return buttonSignOut(Component,options);}/* [END] AUTH *//* [START] BASICS */export function withEmail(Component){return props=>{const userStore=useUser();if(!userStore||!userStore.user)return null;const email=userStore.user.email;return /*#__PURE__*/_jsx(Component,{...props,text:email});};}export function Name(Component){return props=>{const userStore=useUser();if(!userStore||!userStore.user)return null;const name=userStore.user.name;return /*#__PURE__*/_jsx(Component,{...props,text:name});};}export function ShowIfWithTag(Component){return showIfWithTag(Component);}export function ShowIfWithoutTag(Component){return showIfWithoutTag(Component);}export function withVariant(Component){return toggleVariant(Component);}export function ToggleVariantIfWithTag(Component){return toggleVariantIfWithTag(Component);}/* [END] BASICS *//* [START] MARK AS COMPLETE */export function withActionCompleteLesson(Component){return withToggleBookmark(Component,\"completed\");}export function withIsLessonComplete(Component){return withIsBookmarked(Component,\"completed\");}/* [END] MARK AS COMPLETE *//* [START] BOOKMARKING */export function withComponentBookmarkBlog(Component){return withBookmarks(Component,\"saved-for-later\");}export function withIsBookmarkedBlog(Component){return withIsBookmarked(Component,\"saved-for-later\");}export function withToggleBookmarkBlog(Component){return withToggleBookmark(Component,\"saved-for-later\");}/* [END] BOOKMARKING *//*\n ***************************\n **  Extension overrides  **\n ***************************\n */export function withDynamicGridHeight(Component){// Deprecated placeholder override.\nreturn Component;}/**\n * [END] FRAMERAUTH OVERRIDES\n */\nexport const __FramerMetadata__ = {\"exports\":{\"withIsLessonComplete\":{\"type\":\"reactHoc\",\"name\":\"withIsLessonComplete\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withToggleBookmarkBlog\":{\"type\":\"reactHoc\",\"name\":\"withToggleBookmarkBlog\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSignOut\":{\"type\":\"reactHoc\",\"name\":\"withSignOut\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ShowIfWithoutTag\":{\"type\":\"reactHoc\",\"name\":\"ShowIfWithoutTag\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ToggleVariantIfWithTag\":{\"type\":\"reactHoc\",\"name\":\"ToggleVariantIfWithTag\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEmail\":{\"type\":\"reactHoc\",\"name\":\"withEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withComponentBookmarkBlog\":{\"type\":\"reactHoc\",\"name\":\"withComponentBookmarkBlog\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLoggedIn\":{\"type\":\"reactHoc\",\"name\":\"withLoggedIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ShowIfWithTag\":{\"type\":\"reactHoc\",\"name\":\"ShowIfWithTag\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withActionCompleteLesson\":{\"type\":\"reactHoc\",\"name\":\"withActionCompleteLesson\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Name\":{\"type\":\"reactHoc\",\"name\":\"Name\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVariant\":{\"type\":\"reactHoc\",\"name\":\"withVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withIsBookmarkedBlog\":{\"type\":\"reactHoc\",\"name\":\"withIsBookmarkedBlog\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLoggedOut\":{\"type\":\"reactHoc\",\"name\":\"withLoggedOut\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDynamicGridHeight\":{\"type\":\"reactHoc\",\"name\":\"withDynamicGridHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FramerAuth.map"],"mappings":"wNAEqB,SAAgB,EAAc,EAAU,CAAC,OAAOA,EAAgB,CAAS,CAAE,CAAC,SAAgB,EAAa,EAAU,CAAC,OAAOC,EAAe,CAAS,CAAE,CAAC,SAAgB,EAAY,EAAU,CAAgE,OAAOC,EAAc,EAAU,CAAxD,WAAW,GAAmD,CAAC,CAAE,CAAqC,SAAgB,EAAU,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAUC,EAAQ,EAAE,GAAG,CAAC,GAAW,CAAC,EAAU,KAAK,OAAO,KAAK,IAAM,EAAM,EAAU,KAAK,MAAM,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,CAAK,CAAC,CAAE,CAAE,CAAC,SAAgB,EAAK,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAUA,EAAQ,EAAE,GAAG,CAAC,GAAW,CAAC,EAAU,KAAK,OAAO,KAAK,IAAM,EAAK,EAAU,KAAK,KAAK,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,CAAI,CAAC,CAAE,CAAE,CAA2E,SAAgB,EAAiB,EAAU,CAAC,OAAOC,EAAiB,CAAS,CAAE,CAAC,SAAgB,EAAY,EAAU,CAAC,OAAOC,EAAc,CAAS,CAAE,CAAC,SAAgB,EAAuB,EAAU,CAAC,OAAOC,EAAuB,CAAS,CAAE,CAAuJ,SAAgB,EAAqB,EAAU,CAAC,OAAOC,EAAiB,EAAU,WAAW,CAAE,CAAsD,SAAgB,EAA0B,EAAU,CAAC,OAAOC,EAAc,EAAU,iBAAiB,CAAE,CAAC,SAAgB,EAAqB,EAAU,CAAC,OAAOD,EAAiB,EAAU,iBAAiB,CAAE,CAAC,SAAgB,EAAuB,EAAU,CAAC,OAAOE,EAAmB,EAAU,iBAAiB,CAAE,CAIjqD,SAAgB,EAAsB,EAAU,CACnD,OAAO,CAAU,iBAPyB,IAA2P"}