{"version":3,"file":"Utilities.CF4Lu1Qa.mjs","names":["_Fragment","useMemo"],"sources":["https:/framerusercontent.com/modules/PlqZnRHI6BtCgNbUDWKY/cVnQFJY74z7nlxHnc4KH/Utilities.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useMemo}from\"react\";export function withCopyrightsText(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const year=new Date().getFullYear();return /*#__PURE__*/_jsx(Component,{...props,text:`Copyright \\xa9 2017-${year} Pod Foods Co.`});});}export function withRoleBasedChildren(Component){return /*#__PURE__*/forwardRef((props,ref)=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:'*[data-children-display=\"contents\"] > * { display: contents; }'}),/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,opacity:1},\"data-children-display\":\"contents\",ref:ref})]}));}export function withActiveLinkVariant(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const{link}=props;const path=useMemo(()=>{return window?.location?.pathname;},[]);const overrides=useMemo(()=>{if(path?.startsWith(link))return{variant:\"Active\"};return{};},[path,link]);return /*#__PURE__*/_jsx(Component,{ref:ref,\"data-link\":link,\"data-path\":path,...props,...overrides});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRoleBasedChildren\":{\"type\":\"reactHoc\",\"name\":\"withRoleBasedChildren\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withActiveLinkVariant\":{\"type\":\"reactHoc\",\"name\":\"withActiveLinkVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCopyrightsText\":{\"type\":\"reactHoc\",\"name\":\"withCopyrightsText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Utilities.map"],"mappings":"qJAAqH,SAAgB,EAAmB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,IAAM,EAAK,IAAI,KAAK,CAAA,CAAE,YAAY,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,uBAAuB,EAAK,eAAe,CAAC,CAAE,CAAC,CAAE,CAAC,SAAgB,EAAsB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAmB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS,gEAAgE,CAAC,EAAe,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,CAAC,EAAE,wBAAwB,WAAe,KAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,SAAgB,EAAsB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,QAAM,EAAY,EAAKC,MAAoB,GAAQ,UAAU,SAAW,CAAC,CAAC,EAAQ,EAAUA,MAAgB,GAAM,WAAW,CAAI,EAAQ,CAAC,QAAQ,QAAQ,EAAQ,CAAC,EAAI,CAAC,EAAK,CAAI,CAAC,EAAE,OAAoB,EAAK,EAAU,CAAK,MAAI,YAAY,EAAK,YAAY,EAAK,GAAG,EAAM,GAAG,CAAS,CAAC,CAAE,CAAC,CAAE,qBAAh/B,IAAsC"}