{"version":3,"file":"Benefits_Section.DAVKAusb.mjs","names":[],"sources":["https:/framerusercontent.com/modules/rtbEX3vR1d6OpKZ1GXFG/F7Q7DinOWxwEBUhmJ7hr/Benefits_Section.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const useStore=createStore({selectedItemReference:\"\"});/**\n * This funtion is used to inject custom parameter for \"handleOnOpen\" event.\n * This will tell the parent which ID should be set as current selected item.\n */export function withOnSelectItem(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store]=useStore();const currentSelectedItem=store[\"selectedItemReference\"];const handleOnSelectItem=()=>{props[\"handleOnSelectItem\"](props[\"referencedSectionItem\"]);};if(!currentSelectedItem){handleOnSelectItem();}return /*#__PURE__*/_jsx(Component,{ref:ref,...props,handleOnSelectItem:handleOnSelectItem});});}/**\n * This function creates an override for the \"handleSetSelectedItem\" event.\n * This event will be called from the function `withOnSelectItem` and will\n * update the current selected item.\n */export function withSetSelectedItem(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();let selected=store[\"selectedItemReference\"];const handleSetSelectedItem=selectedItemReference=>{setStore({...store,selectedItemReference});selected=selectedItemReference;};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,selectedItemReference:selected,handleSetSelectedItem:handleSetSelectedItem});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withOnSelectItem\":{\"type\":\"reactHoc\",\"name\":\"withOnSelectItem\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSetSelectedItem\":{\"type\":\"reactHoc\",\"name\":\"withSetSelectedItem\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Benefits_Section.map"],"mappings":"kNAGG,SAAgB,EAAiB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,GAAO,GAAU,CAAO,EAAoB,EAAM,sBAA+B,MAAuB,CAAC,EAAM,mBAAsB,EAAM,sBAAyB,EAAkD,OAA3C,GAAqB,GAAoB,CAAsB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAyB,qBAAmB,CAAC,EAAG,CAIpZ,SAAgB,EAAoB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAK,EAAS,EAAM,sBAA+B,EAAsB,GAAuB,CAAC,EAAS,CAAC,GAAG,EAAM,wBAAsB,CAAC,CAAC,EAAS,GAAwB,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,sBAAsB,EAA+B,wBAAsB,CAAC,EAAG,oBAPrY,IAA8B,IAAqE,CAAM,EAAS,EAAY,CAAC,sBAAsB,GAAG,CAAC"}