{"version":3,"file":"PageTheme.JBpVgEVW.mjs","names":["__esmMin","init_jsx_runtime","c","init_framer_CaDWdxiz","addPropertyControls","RenderTarget","ControlType","PageTheme","props","safe","bg","background","fg","text","ac","accent","css","init_PageTheme"],"sources":["https:/framerusercontent.com/modules/jhP6HBP7Qmywsx7wAQoZ/u1wPmioKzADBRdiHT7ge/PageTheme.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * PageTheme: gives a single page its own background and text colour.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n */export default function PageTheme(props){const{background=\"#FFFFFF\",text=\"#000000\",accent=\"\"}=props;if(RenderTarget.current()===RenderTarget.canvas)return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\"}});const safe=c=>String(c).replace(/[^#(),.%\\w\\s-]/g,\"\");const bg=safe(background),fg=safe(text),ac=accent?safe(accent):\"\";const css=\"html body{background-color:\"+bg+\" !important}\"+(/^(#0{3,6}|rgba?\\(0, ?0, ?0(, ?1)?\\))$/.test(fg.trim())?\"\":\"#main .framer-text{--framer-text-color:\"+fg+\" !important}#main svg{color:\"+fg+\"}#main a[data-framer-name='Primary']{background-color:\"+fg+\" !important}#main a[data-framer-name='Primary'] .framer-text{--framer-text-color:\"+bg+\" !important}#main span[style*='height: 2px'][style*='border-radius: 2px'],#main span[style*='height:2px'][style*='border-radius:2px']{background:\"+fg+\" !important}\")+\"#main{--page-fg:\"+fg+\"}\"+(ac?\"#main h2.framer-text,#main h2 .framer-text,#main .framer-text a{--framer-text-color:\"+ac+\" !important;--framer-link-text-color:\"+ac+\" !important}\":\"\");return /*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css}});}addPropertyControls(PageTheme,{background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},text:{type:ControlType.Color,title:\"Text\",defaultValue:\"#000000\"},accent:{type:ControlType.Color,title:\"Accent\",optional:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PageTheme\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PageTheme.map"],"mappings":"A,oKAOG,SAAwBO,EAAU,EAAM,CAAC,GAAK,CAAC,aAAW,UAAU,OAAK,UAAU,SAAO,IAAIC,EAAM,GAAGH,EAAa,QAAQ,IAAIA,EAAa,OAAO,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,CAAC,CAAC,EAAE,IAAMI,EAAK,GAAG,OAAOP,CAAC,CAAC,CAAC,QAAQ,kBAAkB,EAAE,EAAQQ,EAAGD,EAAKE,CAAU,EAAEC,EAAGH,EAAKI,CAAI,EAAEC,EAAGC,EAAON,EAAKM,CAAM,EAAE,GAASC,EAAI,8BAA8BN,EAAG,gBAAgB,wCAAwC,KAAKE,EAAG,KAAK,CAAC,EAAE,GAAG,0CAA0CA,EAAG,+BAA+BA,EAAG,yDAAyDA,EAAG,oFAAoFF,EAAG,oJAAoJE,EAAG,gBAAgB,mBAAmBA,EAAG,KAAKE,EAAG,uFAAuFA,EAAG,wCAAwCA,EAAG,eAAe,IAAI,MAAoB,gBAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAOE,CAAG,CAAC,CAAC,CAAE,C,sCAACZ,EAAoBG,EAAU,CAAC,WAAW,CAAC,KAAKD,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,EAAE,KAAK,CAAC,KAAKA,EAAY,MAAM,MAAM,OAAO,aAAa,SAAS,EAAE,OAAO,CAAC,KAAKA,EAAY,MAAM,MAAM,SAAS,SAAS,EAAI,CAAC,CAAC,C"}