{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/xcyMtjRzKCxyjZ9zf62Y/OFnEwwUvzOeyTmK8tbOI/localStorage.js", "ssg:https://framerusercontent.com/modules/EqZXrk8bEzYoOYePPrTi/BHKXBH4QCAykgGt4LKRm/OnboardingViewHistoryUpdater.js"],
  "sourcesContent": ["function readJSON(key){try{const jsonData=localStorage.getItem(key);if(!jsonData){return null;}return JSON.parse(jsonData);}catch{return null;}}function writeJSON(key,value){localStorage.setItem(key,JSON.stringify(value));}export const localStorageAPI={readJSON,writeJSON};\nexport const __FramerMetadata__ = {\"exports\":{\"localStorageAPI\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./localStorage.map", "import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,Frame}from\"framer\";import{useEffect}from\"react\";import{localStorageAPI}from\"https://framerusercontent.com/modules/xcyMtjRzKCxyjZ9zf62Y/OFnEwwUvzOeyTmK8tbOI/localStorage.js\";export var ViewHistoryPageCategory;(function(ViewHistoryPageCategory){ViewHistoryPageCategory[\"Industry\"]=\"industry\";ViewHistoryPageCategory[\"Product\"]=\"product\";ViewHistoryPageCategory[\"Template\"]=\"template\";})(ViewHistoryPageCategory||(ViewHistoryPageCategory={}));const ViewHistoryPageCategoryList=[\"industry\",\"product\",\"template\"];const VIEW_HISTORY_KEY=\"__lark_website_visit_history\";export default function OnboardingViewHistoryUpdater({PageCategory,PageName}){useEffect(()=>{if(PageName){const currentHistory=localStorageAPI.readJSON(VIEW_HISTORY_KEY);localStorageAPI.writeJSON(VIEW_HISTORY_KEY,{...currentHistory,[PageCategory]:PageName});}},[]);return /*#__PURE__*/_jsx(Frame,{width:\"100%\",height:\"1px\",background:\"transparent\"});}addPropertyControls(OnboardingViewHistoryUpdater,{PageCategory:{type:ControlType.Enum,options:ViewHistoryPageCategoryList,optionTitles:ViewHistoryPageCategoryList,title:\"Page Category\"},PageName:{type:ControlType.String,title:\"Page Name\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ViewHistoryPageCategory\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"OnboardingViewHistoryUpdater\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OnboardingViewHistoryUpdater.map"],
  "mappings": "uEAAA,SAASA,EAASC,EAAI,CAAC,GAAG,CAAC,IAAMC,EAAS,aAAa,QAAQD,CAAG,EAAE,OAAIC,EAA8B,KAAK,MAAMA,CAAQ,EAAhC,IAAkC,MAAM,CAAC,OAAO,IAAK,CAAC,CAAC,SAASC,EAAUF,EAAIG,EAAM,CAAC,aAAa,QAAQH,EAAI,KAAK,UAAUG,CAAK,CAAC,CAAE,CAAQ,IAAMC,EAAgB,CAAC,SAAAL,EAAS,UAAAG,CAAS,ECAT,IAAIG,GAAyB,SAASA,EAAwB,CAACA,EAAwB,SAAY,WAAWA,EAAwB,QAAW,UAAUA,EAAwB,SAAY,UAAW,GAAGA,IAA0BA,EAAwB,CAAC,EAAE,EAAE,IAAMC,EAA4B,CAAC,WAAW,UAAU,UAAU,EAAQC,EAAiB,+BAA8C,SAARC,EAA8C,CAAC,aAAAC,EAAa,SAAAC,CAAQ,EAAE,CAAC,OAAAC,EAAU,IAAI,CAAC,GAAGD,EAAS,CAAC,IAAME,EAAeC,EAAgB,SAASN,CAAgB,EAAEM,EAAgB,UAAUN,EAAiB,CAAC,GAAGK,EAAe,CAACH,CAAY,EAAEC,CAAQ,CAAC,CAAE,CAAC,EAAE,CAAC,CAAC,EAAsBI,EAAKC,EAAM,CAAC,MAAM,OAAO,OAAO,MAAM,WAAW,aAAa,CAAC,CAAE,CAACC,EAAoBR,EAA6B,CAAC,aAAa,CAAC,KAAKS,EAAY,KAAK,QAAQX,EAA4B,aAAaA,EAA4B,MAAM,eAAe,EAAE,SAAS,CAAC,KAAKW,EAAY,OAAO,MAAM,WAAW,CAAC,CAAC",
  "names": ["readJSON", "key", "jsonData", "writeJSON", "value", "localStorageAPI", "ViewHistoryPageCategory", "ViewHistoryPageCategoryList", "VIEW_HISTORY_KEY", "OnboardingViewHistoryUpdater", "PageCategory", "PageName", "ue", "currentHistory", "localStorageAPI", "p", "Frame", "addPropertyControls", "ControlType"]
}
