{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/lvYMOzESh1p00bpiLeet/DZzLJwmPTOne0zDJoK9A/OnboardingLastViewedProduct.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useState}from\"react\";const LastViewedProductLocalStorageKey=\"LastViewedProduct\";export function setLastViewedProduct({productName}){localStorage.setItem(LastViewedProductLocalStorageKey,productName);}export function getLastViewedProduct(){return localStorage.getItem(LastViewedProductLocalStorageKey);}export default function OnboardingLastViewedProduct({larkProductPageSubUrl}){const[isOnFramer,setIsOnFramer]=useState(false);useEffect(()=>{var _window;setLastViewedProduct({productName:larkProductPageSubUrl});setIsOnFramer((_window=window)===null||_window===void 0?void 0:_window.location.host.endsWith(\"framer.app\"));},[]);const DevBox=()=>{return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",padding:\"20px 20px 20px 20px\",backgroundColor:\"red\",color:\"white\",fontSize:30,textAlign:\"center\"},children:\"Dev purpose, do not delete this component (OnboardingLastViewedProduct)\"});};if(isOnFramer){return /*#__PURE__*/_jsx(DevBox,{});}else{return null;}}addPropertyControls(OnboardingLastViewedProduct,{larkProductPageSubUrl:{type:ControlType.Enum,title:\"Lark Product Page SubUrl\",options:[\"base\",\"messenger\",\"creation\",\"video\",\"email\",\"calendar\",\"minutes\",\"okr\",\"approval\",\"forms\",\"wiki\"],optionTitles:[\"Base\",\"Messenger\",\"Docs\",\"Meetings\",\"Email\",\"Calendar\",\"Minutes\",\"OKR\",\"Approval\",\"Form\",\"Wiki\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"getLastViewedProduct\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"OnboardingLastViewedProduct\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"setLastViewedProduct\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OnboardingLastViewedProduct.map"],
  "mappings": "+GAAqI,IAAMA,EAAiC,oBAA2B,SAASC,EAAqB,CAAC,YAAAC,CAAW,EAAE,CAAC,aAAa,QAAQF,EAAiCE,CAAW,CAAE,CAAsH,SAARC,EAA6C,CAAC,sBAAAC,CAAqB,EAAE,CAAC,GAAK,CAACC,EAAWC,CAAa,EAAEC,EAAS,EAAK,EAAEC,EAAU,IAAI,CAAC,IAAIC,EAAQC,EAAqB,CAAC,YAAYN,CAAqB,CAAC,EAAEE,GAAeG,EAAQE,KAAU,MAAMF,IAAU,OAAO,OAAOA,EAAQ,SAAS,KAAK,SAAS,YAAY,CAAC,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMG,EAAO,IAAyBC,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,MAAM,OAAO,QAAQ,sBAAsB,gBAAgB,MAAM,MAAM,QAAQ,SAAS,GAAG,UAAU,QAAQ,EAAE,SAAS,yEAAyE,CAAC,EAAI,OAAGR,EAAgCQ,EAAKD,EAAO,CAAC,CAAC,EAAe,IAAM,CAACE,EAAoBX,EAA4B,CAAC,sBAAsB,CAAC,KAAKY,EAAY,KAAK,MAAM,2BAA2B,QAAQ,CAAC,OAAO,YAAY,WAAW,QAAQ,QAAQ,WAAW,UAAU,MAAM,WAAW,QAAQ,MAAM,EAAE,aAAa,CAAC,OAAO,YAAY,OAAO,WAAW,QAAQ,WAAW,UAAU,MAAM,WAAW,OAAO,MAAM,CAAC,CAAC,CAAC",
  "names": ["LastViewedProductLocalStorageKey", "setLastViewedProduct", "productName", "OnboardingLastViewedProduct", "larkProductPageSubUrl", "isOnFramer", "setIsOnFramer", "ye", "ue", "_window", "setLastViewedProduct", "window", "DevBox", "p", "addPropertyControls", "ControlType"]
}
