{"version":3,"file":"ShowMore.LHBiMuAD.mjs","names":["useSyncExternalStore"],"sources":["https:/framerusercontent.com/modules/MfbAWOglC0OyXOGzO1uh/UyQGXR9ptAmTJU90uyY2/ShowMore.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useSyncExternalStore}from\"react\";let expanded=false;const listeners=new Set;function setExpanded(value){expanded=value;listeners.forEach(l=>l());}function subscribe(listener){listeners.add(listener);return()=>{listeners.delete(listener);};}function useExpanded(){return useSyncExternalStore(subscribe,()=>expanded,()=>false);}// Apply to the second project grid: hidden until \"Show more\" is clicked.\nexport function withHiddenUntilShowMore(Component){return function(props){const isExpanded=useExpanded();useEffect(()=>{setExpanded(false);},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:isExpanded?props.style?.display:\"none\"}});};}// Apply to the \"Show more\" button: reveals the hidden grid and hides itself.\nexport function withShowMoreTrigger(Component){return function(props){const isExpanded=useExpanded();if(isExpanded)return null;return /*#__PURE__*/_jsx(Component,{...props,onClick:event=>{event?.preventDefault?.();setExpanded(true);}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHiddenUntilShowMore\":{\"type\":\"reactHoc\",\"name\":\"withHiddenUntilShowMore\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShowMoreTrigger\":{\"type\":\"reactHoc\",\"name\":\"withShowMoreTrigger\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShowMore.map"],"mappings":"yHAAwI,SAAS,EAAY,EAAM,CAAC,EAAS,EAAM,EAAU,QAAQ,GAAG,EAAE,CAAC,CAAE,CAAC,SAAS,EAAU,EAAS,CAAyB,OAAxB,EAAU,IAAI,CAAQ,MAAY,CAAC,EAAU,OAAO,CAAQ,CAAE,CAAE,CAAC,SAAS,GAAa,CAAC,OAAOA,EAAqB,MAAc,MAAa,EAAK,CAAE,CACjY,SAAgB,EAAwB,EAAU,CAAC,OAAO,SAAS,EAAM,CAAC,IAAM,EAAW,EAAY,EAA0C,OAAxC,MAAc,CAAC,EAAY,EAAK,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,EAAW,EAAM,OAAO,QAAQ,MAAM,CAAC,CAAC,CAAE,CAAE,CACxQ,SAAgB,EAAoB,EAAU,CAAC,OAAO,SAAS,EAAM,CAA0D,OAAxC,EAA0B,EAAS,KAAyB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,GAAO,CAAC,GAAO,iBAAiB,EAAE,EAAY,EAAI,CAAE,CAAC,CAAC,CAAE,CAAE,qBAFpM,IAAkD,EAAK,EAAS,GAAY,EAAU,IAAI"}