{"version":3,"file":"ThemeColor.BOjkzebe.mjs","names":[],"sources":["https:/framerusercontent.com/modules/OVwu5wGq2HUjOwwar2Ch/glowtvvLB6s1QJVwsASH/ThemeColor.js"],"sourcesContent":["// Create a Framer code override export named withThemeColor that sets mobile browser UI theme-color on mount, guards SSR, restores previous value on unmount, exposes editable color control, and keeps wrapped component visually unchanged.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function withThemeColor(Component){const Wrapped=/*#__PURE__*/forwardRef((props,ref)=>{const{color=\"#FF6E0F\",...rest}=props;useEffect(()=>{if(typeof document===\"undefined\")return;const head=document.head;if(!head)return;let meta=head.querySelector('meta[name=\"theme-color\"]');const hadExistingMeta=Boolean(meta);const previousContent=meta?.getAttribute(\"content\")??null;if(!meta){meta=document.createElement(\"meta\");meta.setAttribute(\"name\",\"theme-color\");head.appendChild(meta);}meta.setAttribute(\"content\",color);return()=>{if(typeof document===\"undefined\"||!meta)return;if(hadExistingMeta){if(previousContent!==null){meta.setAttribute(\"content\",previousContent);}else{meta.removeAttribute(\"content\");}}else{meta.parentNode?.removeChild(meta);}};},[color]);return /*#__PURE__*/_jsx(Component,{ref:ref,...rest});});addPropertyControls(Wrapped,{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#FF6E0F\"}});return Wrapped;}\nexport const __FramerMetadata__ = {\"exports\":{\"withThemeColor\":{\"type\":\"reactHoc\",\"name\":\"withThemeColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ThemeColor.map"],"mappings":"iLACuI,SAAgB,EAAe,EAAU,CAAC,IAAM,EAAqB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,QAAM,UAAU,GAAG,GAAM,EAAioB,OAA3nB,MAAc,CAAC,GAAG,OAAO,SAAW,IAAY,OAAO,IAAM,EAAK,SAAS,KAAK,GAAG,CAAC,EAAK,OAAO,IAAI,EAAK,EAAK,cAAc,0BAA0B,EAAQ,EAAgB,EAAQ,EAAY,EAAgB,GAAM,aAAa,SAAS,GAAG,KAAsJ,OAA7I,IAAM,EAAK,SAAS,cAAc,MAAM,EAAE,EAAK,aAAa,OAAO,aAAa,EAAE,EAAK,YAAY,CAAI,GAAG,EAAK,aAAa,UAAU,CAAK,MAAY,CAAI,OAAO,SAAW,KAAa,CAAC,IAAe,EAAoB,IAAkB,KAAyD,EAAK,gBAAgB,SAAS,EAAjF,EAAK,aAAa,UAAU,CAAe,EAA+C,EAAK,YAAY,YAAY,CAAI,EAAG,CAAE,EAAE,CAAC,CAAK,CAAC,EAAsB,EAAK,EAAU,CAAK,MAAI,GAAG,CAAI,CAAC,CAAE,CAAC,EAAqG,OAAnG,EAAoB,EAAQ,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,aAAa,SAAS,CAAC,CAAC,EAAS,CAAQ,iBAAtgC,IAAwC,IAAoD"}