{"version":3,"file":"Overrides.VTiFKTp3.mjs","names":["useStore","state","useState","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/7kvRQome5A2BtmaNxxwE/Q0D5JN5WiQF1rfC7foS5/Overrides.js"],"sourcesContent":["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{Data}from\"framer\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({content:\"\",numberOfWords:0,text:\"Store TEXT\"});export function countContentToReadTime(Component){return props=>{const[store,setStore]=useStore();console.log(\"PROPS\",props);console.log(\"children array\",props.children.props.children);const filteredParagraphs=props.children.props.children.filter(child=>child.type===\"p\");const concatenatedText=filteredParagraphs.map(child=>child.props.children).join(\"\");console.log(\"filteredParagraphs\",filteredParagraphs);console.log(\"concatenatedText\",concatenatedText);setStore({content:concatenatedText,numberOfWords:concatenatedText.trim().split(/\\s+/).length});// 5. Return a component with no change\nreturn /*#__PURE__*/_jsx(Component,{...props});};}export function showReadTime(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,text:`Read time: ${Math.ceil(store.numberOfWords/200)} mins`});};}const state=Data({variant1:\"Closed\",variant2:\"Closed\",variant3:\"Closed\"});export function ExpandAllBtn1(){return{onTap(){state.variant1=\"Open\";}};}export function CollapseAllBtn1(){return{onTap(){state.variant1=\"Closed\";}};}export function AccordionItem1(){return{current:state.variant1};}export function ExpandAllBtn2(){return{onTap(){state.variant2=\"Open\";}};}export function CollapseAllBtn2(){return{onTap(){state.variant2=\"Closed\";}};}export function AccordionItem2(){return{current:state.variant2};}export function ExpandAllBtn3(){return{onTap(){state.variant3=\"Open\";}};}export function CollapseAllBtn3(){return{onTap(){state.variant3=\"Closed\";}};}export function AccordionItem3(){return{current:state.variant3};}export function categoryImage({category}){// Map category name → SVG image URL\nconst imageMap={Design:\"https://example.com/design.svg\",Marketing:\"https://example.com/marketing.svg\",Development:\"https://example.com/dev.svg\"};return{src:imageMap[category]||\"https://example.com/default.svg\"};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withExpandAllBtn1(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ExpandAllBtn1(props)});};}withExpandAllBtn1.displayName=\"ExpandAllBtn1\";export function withCollapseAllBtn1(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CollapseAllBtn1(props)});};}withCollapseAllBtn1.displayName=\"CollapseAllBtn1\";export function withAccordionItem1(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...AccordionItem1(props)});};}withAccordionItem1.displayName=\"AccordionItem1\";export function withExpandAllBtn2(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ExpandAllBtn2(props)});};}withExpandAllBtn2.displayName=\"ExpandAllBtn2\";export function withCollapseAllBtn2(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CollapseAllBtn2(props)});};}withCollapseAllBtn2.displayName=\"CollapseAllBtn2\";export function withAccordionItem2(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...AccordionItem2(props)});};}withAccordionItem2.displayName=\"AccordionItem2\";export function withExpandAllBtn3(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ExpandAllBtn3(props)});};}withExpandAllBtn3.displayName=\"ExpandAllBtn3\";export function withCollapseAllBtn3(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CollapseAllBtn3(props)});};}withCollapseAllBtn3.displayName=\"CollapseAllBtn3\";export function withAccordionItem3(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...AccordionItem3(props)});};}withAccordionItem3.displayName=\"AccordionItem3\";export function withcategoryImage(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...categoryImage(props)});};}withcategoryImage.displayName=\"categoryImage\";\nexport const __FramerMetadata__ = {\"exports\":{\"withAccordionItem2\":{\"type\":\"reactHoc\",\"name\":\"withAccordionItem2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showReadTime\":{\"type\":\"reactHoc\",\"name\":\"showReadTime\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"categoryImage\":{\"type\":\"override\",\"name\":\"categoryImage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withExpandAllBtn1\":{\"type\":\"reactHoc\",\"name\":\"withExpandAllBtn1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withExpandAllBtn3\":{\"type\":\"reactHoc\",\"name\":\"withExpandAllBtn3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AccordionItem1\":{\"type\":\"override\",\"name\":\"AccordionItem1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"countContentToReadTime\":{\"type\":\"reactHoc\",\"name\":\"countContentToReadTime\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ExpandAllBtn1\":{\"type\":\"override\",\"name\":\"ExpandAllBtn1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCollapseAllBtn1\":{\"type\":\"reactHoc\",\"name\":\"withCollapseAllBtn1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAccordionItem1\":{\"type\":\"reactHoc\",\"name\":\"withAccordionItem1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CollapseAllBtn3\":{\"type\":\"override\",\"name\":\"CollapseAllBtn3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withcategoryImage\":{\"type\":\"reactHoc\",\"name\":\"withcategoryImage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withExpandAllBtn2\":{\"type\":\"reactHoc\",\"name\":\"withExpandAllBtn2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ExpandAllBtn2\":{\"type\":\"override\",\"name\":\"ExpandAllBtn2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AccordionItem2\":{\"type\":\"override\",\"name\":\"AccordionItem2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAccordionItem3\":{\"type\":\"reactHoc\",\"name\":\"withAccordionItem3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CollapseAllBtn2\":{\"type\":\"override\",\"name\":\"CollapseAllBtn2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ExpandAllBtn3\":{\"type\":\"override\",\"name\":\"ExpandAllBtn3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCollapseAllBtn3\":{\"type\":\"reactHoc\",\"name\":\"withCollapseAllBtn3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCollapseAllBtn2\":{\"type\":\"reactHoc\",\"name\":\"withCollapseAllBtn2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CollapseAllBtn1\":{\"type\":\"override\",\"name\":\"CollapseAllBtn1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AccordionItem3\":{\"type\":\"override\",\"name\":\"AccordionItem3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Overrides.map"],"mappings":"gMAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,CAAC,CAClD,EAAa,GAAU,CAC1B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAU,MAAM,EAAE,EAAU,MAAM,OAAO,OAAO,CAAC,GAAG,EAAU,MAAM,GAAG,EAAS,CAAC,EAChI,EAAW,OAAO,GAAS,SAAS,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,EAC7D,EAAa,IAAI,IACjB,EAAc,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