{"version":3,"file":"ProductionEditorialNavigation.CW8FrReS.mjs","names":["__esmMin","p","c","J","init_jsx_runtime","init_npm_react_18_3_1","init_framer_DKgW_P28","Link","withReportNavigation","reportOffsets","Component","props","withRegisterNavigation","registerOffsets","reportId","init_ProductionEditorialNavigation"],"sources":["https:/framerusercontent.com/modules/dsxocjUVt4Vyr7QDVE20/vJoiC5L0Oi3MNYux4nN2/ProductionEditorialNavigation.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{Link}from\"framer\";const reportId=\"su7z7MMRQ\";const reportOffsets=`\n[data-editorial-navigation=\"report\"] .tr-site { display: none; }\n@media screen {\n    [data-editorial-navigation=\"report\"] .trap-report [id] {\n        scroll-margin-top: calc(var(--ts-site-header-height, 80px) + 22px);\n    }\n    [data-editorial-navigation=\"report\"] .tr-side {\n        top: calc(var(--ts-site-header-height, 80px) + 12px);\n        max-height: calc(100vh - var(--ts-site-header-height, 80px) - 24px);\n        max-height: calc(100dvh - var(--ts-site-header-height, 80px) - 24px);\n        overflow-y: auto;\n        overscroll-behavior-y: contain;\n    }\n}\n`;const registerOffsets=`\n[data-editorial-navigation=\"register\"] .globalHeader { display: none; }\n[data-editorial-navigation=\"register\"] .editorial-report-links {\n    box-sizing: border-box;\n    background: #08090b;\n    color: #a7afbf;\n    font: 500 14px/1.4 \"Instrument Sans\", Arial, sans-serif;\n    border-bottom: 1px solid #293244;\n}\n[data-editorial-navigation=\"register\"] .editorial-report-links > div {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    gap: 4px 12px;\n    width: min(calc(100% - 40px), 1200px);\n    min-height: 44px;\n    margin-inline: auto;\n}\n[data-editorial-navigation=\"register\"] .editorial-report-links a {\n    display: inline-flex;\n    align-items: center;\n    min-height: 44px;\n    font-weight: 600;\n    color: #fffdf8;\n    text-decoration: underline;\n    text-underline-offset: 0.2em;\n}\n[data-editorial-navigation=\"register\"] .editorial-report-links a:focus-visible {\n    outline: 2px solid #ff2d8d;\n    outline-offset: 2px;\n}\n@media (min-width: 761px) {\n    [data-editorial-navigation=\"register\"] .filters {\n        top: calc(var(--ts-site-header-height, 80px) + 4px);\n    }\n}\n@media (max-width: 760px) {\n    [data-editorial-navigation=\"register\"] .editorial-report-links > div {\n        width: calc(100% - 28px);\n    }\n}\n@media print {\n    [data-editorial-navigation=\"register\"] .editorial-report-links { display: none; }\n}\n`;// These overrides leave the original report components and source register intact.\nexport function withReportNavigation(Component){return /*#__PURE__*/React.forwardRef(function ReportNavigation(props,ref){return /*#__PURE__*/_jsxs(\"div\",{\"data-editorial-navigation\":\"report\",style:{width:\"100%\",minWidth:0},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:reportOffsets}}),/*#__PURE__*/_jsx(Component,{...props,ref:ref})]});});}export function withRegisterNavigation(Component){return /*#__PURE__*/React.forwardRef(function RegisterNavigation(props,ref){return /*#__PURE__*/_jsxs(\"div\",{\"data-editorial-navigation\":\"register\",style:{width:\"100%\",minWidth:0},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:registerOffsets}}),/*#__PURE__*/_jsx(\"nav\",{\"aria-label\":\"Report navigation\",className:\"editorial-report-links\",children:/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(Link,{href:{webPageId:reportId},children:/*#__PURE__*/_jsx(\"a\",{children:props.reportLabel||\"The 3% Trap\"})}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"/\"}),/*#__PURE__*/_jsx(\"span\",{\"aria-current\":\"page\",children:props.methodologyLabel||\"Methodology and sources\"})]})}),/*#__PURE__*/_jsx(Component,{...props,ref:ref})]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withReportNavigation\":{\"type\":\"reactHoc\",\"name\":\"withReportNavigation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRegisterNavigation\":{\"type\":\"reactHoc\",\"name\":\"withRegisterNavigation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProductionEditorialNavigation.map"],"mappings":"A,0KA2DA,SAAgBQ,EAAqB,EAAU,CAAC,MAAoB,gBAAiB,SAA0B,EAAM,EAAI,CAAC,MAAoB,gBAAM,MAAM,CAAC,4BAA4B,SAAS,MAAM,CAAC,MAAM,OAAO,SAAS,CAAC,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAOC,CAAa,CAAC,CAAC,EAAe,gBAAKC,EAAU,CAAC,GAAGC,EAAU,KAAG,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,CAAC,SAAgBC,EAAuB,EAAU,CAAC,MAAoB,gBAAiB,SAA4B,EAAM,EAAI,CAAC,MAAoB,gBAAM,MAAM,CAAC,4BAA4B,WAAW,MAAM,CAAC,MAAM,OAAO,SAAS,CAAC,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAOC,CAAe,CAAC,CAAC,EAAe,gBAAK,MAAM,CAAC,aAAa,oBAAoB,UAAU,yBAAyB,SAAsB,gBAAM,MAAM,CAAC,SAAS,CAAc,gBAAKN,EAAK,CAAC,KAAK,CAAC,UAAUO,CAAQ,EAAE,SAAsB,gBAAK,IAAI,CAAC,SAASH,EAAM,aAAa,aAAa,CAAC,CAAC,CAAC,EAAe,gBAAK,OAAO,CAAC,cAAc,OAAO,SAAS,GAAG,CAAC,EAAe,gBAAK,OAAO,CAAC,eAAe,OAAO,SAASA,EAAM,kBAAkB,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAe,gBAAKD,EAAU,CAAC,GAAGC,EAAU,KAAG,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,C,oDA3DviC,EAAS,YAAkB,EAAc;;;;;;;;;;;;;;EAcrJ,EAAgB"}