{"version":3,"file":"FusionBlockCmsTextOverride.CUJs-Rok.mjs","names":[],"sources":["https:/framerusercontent.com/modules/1EjI1AzVJoApZXRl8kLe/V3Xy22FtJIwL4ElI5A7p/FusionBlockCmsTextOverride.js"],"sourcesContent":["/**\n * Framer **Code Overrides** for CMS Text / Rich Text that do not connect to\n * `FusionBlock`’s `body` / `heading` string fields. In Framer: select the\n * layer → **Code overrides** → pick e.g. `withFusionBlockCmsBody` (Text Only\n * / body copy) or a heading override.\n *\n * **Before publish:** set `FUSION_BLOCK_CMS_TEXT_BG` and\n * `FUSION_BLOCK_CMS_TEXT_VIEWPORT` to match the surrounding **FusionBlock**\n * (or section) so `--fuse-*` tokens, `--f-lead` / `--f-h*`, and\n * `data-fuse-on-dark-surface` match the paired block.\n *\n * @see FusionBlock (`.fb-b` / `.fb-h` / title-split heading)\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{FUSION_BLOCK_VIEWPORT_SCALE}from\"https://framerusercontent.com/modules/aYw5WlaXmSs6benIcFfj/kOY4OIxbA6Lin5i53RcB/FusionBlock.js\";import{BG_VAR,fuseSurfaceDataAttrs,fusionScaleAtViewport,fusionTokenCSS}from\"https://framerusercontent.com/modules/jrXm811URT62aWI5pHGi/vFjd9fxoHYNyPzpGBUZh/FusionTokens.js\";/** Must match a **FusionBlock** (or page section) `background` for correct ink. */export const FUSION_BLOCK_CMS_TEXT_BG=\"Transparent\";/**\n * Must match the **Viewport** you use on the nearest Fusion block at this\n * breakpoint (Framer’s canvas `viewport` prop, not the browser only).\n */export const FUSION_BLOCK_CMS_TEXT_VIEWPORT=\"l\";const STYLES=fusionTokenCSS(\".fbb-ov\")+`\n.fbb-ov{box-sizing:border-box;width:100%;}\n.fbb-ov *,.fbb-ov *::before,.fbb-ov *::after{box-sizing:border-box;}\n/* Body: Lead scale + --f-article-below-* (fusionTokenCSS) for block spacing. */\n.fbb-ov--body,.fbb-ov--body p,.fbb-ov--body li{\n  font-size:var(--f-lead);line-height:var(--f-body-lh);color:var(--fuse-text-2);\n  font-family:var(--fuse-font-body);\n  font-weight:400;\n  font-style:normal;\n  white-space:pre-line;\n}\n.fbb-ov--body p{\n  margin:0;\n  padding-bottom:var(--f-article-below-p);\n}\n.fbb-ov--body h1{\n  margin:0;\n  padding-bottom:var(--f-article-below-h1);\n  font-family:var(--fuse-font-heading);\n  font-weight:700;\n  font-size:var(--f-h1);\n  line-height:var(--f-h1-lh);\n  letter-spacing:var(--f-h1-ls);\n  color:var(--fuse-text);\n}\n.fbb-ov--body h2{\n  margin:0;\n  padding-bottom:var(--f-article-below-h2);\n  font-family:var(--fuse-font-heading);\n  font-weight:700;\n  font-size:var(--f-h2);\n  line-height:var(--f-h2-lh);\n  letter-spacing:var(--f-h2-ls);\n  color:var(--fuse-text);\n}\n.fbb-ov--body h3{\n  margin:0;\n  padding-bottom:var(--f-article-below-h3);\n  font-family:var(--fuse-font-heading);\n  font-weight:700;\n  font-size:var(--f-h3);\n  line-height:var(--f-h3-lh);\n  letter-spacing:var(--f-h3-ls);\n  color:var(--fuse-text);\n}\n.fbb-ov--body h4{\n  margin:0;\n  padding-bottom:var(--f-article-below-h4);\n  font-family:var(--fuse-font-heading);\n  font-weight:700;\n  font-size:var(--f-h4);\n  line-height:var(--f-h4-lh);\n  letter-spacing:var(--f-h4-ls);\n  color:var(--fuse-text);\n}\n.fbb-ov--body h5{\n  margin:0;\n  padding-bottom:var(--f-article-below-h5);\n  font-family:var(--fuse-font-heading);\n  font-weight:700;\n  font-size:var(--f-h5);\n  line-height:var(--f-h5-lh);\n  letter-spacing:var(--f-h5-ls);\n  color:var(--fuse-text);\n}\n.fbb-ov--body blockquote{\n  margin:0;\n  padding:0 0 var(--f-article-below-bq) 1em;\n  border-left:3px solid var(--fuse-border-pink);\n  color:var(--fuse-text-2);\n}\n.fbb-ov--body pre{\n  margin:0;\n  padding-bottom:var(--f-article-below-p);\n  font-family:var(--fuse-font-body);\n  font-size:var(--f-base);\n  line-height:var(--f-body-lh);\n  overflow-x:auto;\n  white-space:pre-wrap;\n}\n.fbb-ov--body ul,.fbb-ov--body ol{\n  margin:0;\n  padding:0 0 var(--f-article-below-p) 1.2em;\n}\n.fbb-ov--body li{ margin:0; }\n.fbb-ov--body li+li{ margin-top:0.35em; }\n.fbb-ov--body hr{\n  margin:0;\n  border:0;\n  height:0;\n  border-top:1px solid var(--fuse-border);\n  padding-bottom:var(--f-article-below-p);\n}\n.fbb-ov--body blockquote p{ margin:0; padding-bottom:0.4em; }\n.fbb-ov--body blockquote p:last-child{ padding-bottom:0; }\n.fbb-ov--body figure{ margin:0; padding-bottom:var(--f-article-below-p); }\n.fbb-ov--body img,.fbb-ov--body video{ max-width:100%; height:auto; display:block; padding-bottom:var(--f-article-below-p); }\n.fbb-ov--body figure img,.fbb-ov--body figure video{ padding-bottom:0; }\n.fbb-ov--body>*:last-child{ padding-bottom:0 !important; }\n.fbb-ov--body a{color:var(--fuse-pink);text-decoration:underline;}\n.fbb-ov--body a:hover{opacity:0.9;}\n/* H2: Typography/H2 + FusionBlock .fb-h */\n.fbb-ov--h2,.fbb-ov--h2 h1,.fbb-ov--h2 h2,.fbb-ov--h2 h3,.fbb-ov--h2 h4{\n  margin:0;\n  padding-bottom:var(--f-article-below-h2);\n  font-family:var(--fuse-font-heading);\n  font-weight:700;\n  font-style:normal;\n  font-size:var(--f-h2);\n  line-height:var(--f-h2-lh);\n  letter-spacing:var(--f-h2-ls);\n  color:var(--fuse-text);\n}\n/* Title-split: FusionBlock .fb-inner.ts .fb-h uses --f-h3 size but h2 line-height/ls. */\n.fbb-ov--h3,.fbb-ov--h3 h1,.fbb-ov--h3 h2,.fbb-ov--h3 h3,.fbb-ov--h3 h4{\n  margin:0;\n  padding-bottom:var(--f-article-below-h3);\n  font-family:var(--fuse-font-heading);\n  font-weight:700;\n  font-style:normal;\n  font-size:var(--f-h3);\n  line-height:var(--f-h2-lh);\n  letter-spacing:var(--f-h2-ls);\n  color:var(--fuse-text);\n}\n`;function cmsTextWrapStyle(){const bgValue=FUSION_BLOCK_CMS_TEXT_BG in BG_VAR?BG_VAR[FUSION_BLOCK_CMS_TEXT_BG]:\"transparent\";const style={background:bgValue,width:\"100%\",...fusionScaleAtViewport(FUSION_BLOCK_VIEWPORT_SCALE,FUSION_BLOCK_CMS_TEXT_VIEWPORT)};const dataAttrs={...fuseSurfaceDataAttrs(FUSION_BLOCK_CMS_TEXT_BG)};return{style,dataAttrs};}/**\n * HOC for CMS-bound Text. Shared impl — see exported functions below.\n * Framer’s override dropdown only lists functions whose signature matches\n * `(Component): ComponentType` in source (see framer.com/developers/overrides-introduction);\n * a `const` from a factory is often not detected.\n */function makeFusionCmsTextOverride(role){return Component=>{return /*#__PURE__*/forwardRef((props,ref)=>{const{style,dataAttrs}=cmsTextWrapStyle();return /*#__PURE__*/_jsxs(\"div\",{className:`fbb-ov ${role}`,style:style,...dataAttrs,children:[/*#__PURE__*/_jsx(\"style\",{children:STYLES}),/*#__PURE__*/_jsx(Component,{ref:ref,...props})]});});};}const fusionCmsBodyHoc=makeFusionCmsTextOverride(\"fbb-ov--body\");const fusionCmsHeadingH2Hoc=makeFusionCmsTextOverride(\"fbb-ov--h2\");const fusionCmsHeadingTitleSplitHoc=makeFusionCmsTextOverride(\"fbb-ov--h3\");/** **Body** copy — same as FusionBlock `textOnly` / `.fb-b` (lead, secondary text colour). */export function withFusionBlockCmsBody(Component){return fusionCmsBodyHoc(Component);}/** **Heading** at Block H2 size — `mediaRight` / `mediaLeft` / `mediaBelow` / `featureList` titles. */export function withFusionBlockCmsHeadingH2(Component){return fusionCmsHeadingH2Hoc(Component);}/** **Heading** at title-split size — same as **Title Split** layout’s `.fb-h` (uses `--f-h3`). */export function withFusionBlockCmsHeadingTitleSplit(Component){return fusionCmsHeadingTitleSplitHoc(Component);}\nexport const __FramerMetadata__ = {\"exports\":{\"FUSION_BLOCK_CMS_TEXT_BG\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFusionBlockCmsBody\":{\"type\":\"reactHoc\",\"name\":\"withFusionBlockCmsBody\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FUSION_BLOCK_CMS_TEXT_VIEWPORT\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFusionBlockCmsHeadingH2\":{\"type\":\"reactHoc\",\"name\":\"withFusionBlockCmsHeadingH2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFusionBlockCmsHeadingTitleSplit\":{\"type\":\"reactHoc\",\"name\":\"withFusionBlockCmsHeadingTitleSplit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"yPA4IE,SAAS,GAAkB,CAAwS,MAAM,CAAC,MAAA,CAAjM,WAAA,gBAAnE,EAAO,EAAO,GAA0B,cAA8C,MAAM,OAAO,GAAG,EAAsB,EAAA,GAA0D,CAAkF,EAAE,UAAA,CAAhE,GAAG,EAAqB,CAAwB,CAAwB,CAAC,CAAE,CAK1V,SAAS,EAA0B,EAAK,CAAC,MAAO,IAAgC,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,QAAM,aAAW,EAAiB,EAAE,OAAoB,EAAM,MAAM,CAAC,UAAU,UAAU,IAAa,QAAM,GAAG,EAAU,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS,CAAM,CAAC,EAAe,EAAK,EAAU,CAAK,MAAI,GAAG,CAAK,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAI,CAAgT,SAAgB,EAAuB,EAAU,CAAC,OAAO,EAAiB,CAAS,CAAE,CAA0S,SAAgB,EAAoC,EAAU,CAAC,OAAO,EAA8B,CAAS,CAAE,yBArI7jC,IAA8B,IAAwI,IAA8K,EAAiG,EAAyB,cAGhd,EAAO,EAAe,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkIuQ,EAAiB,EAA0B,cAAc,EAA4E,EAA8B,EAA0B,YAAY"}