{"version":3,"file":"MobileArticleTable.DRqh2B0b.mjs","names":["_Fragment","__esmMin","l","p","c","init_jsx_runtime","withMobileArticleTable","css","Component","props","withWholeWordTable","tableCss","init_MobileArticleTable"],"sources":["https:/framerusercontent.com/modules/yGYP6VFxApMrxbFeBv8G/3mq4GPUaASSIOmUJxfMM/MobileArticleTable.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";// Narrow-width table styling for CMS article rich text (Insights detail page).\n// Uses a container query on the article body so it reacts to the article's own\n// width: smaller cell text and no mid-word breaks when the table gets narrow.\nconst css=`\n@container rtb-article (max-width: 600px) {\n    .rtb-article table th p,\n    .rtb-article table td p {\n        font-size: 14px !important;\n        line-height: 1.45em !important;\n    }\n    .rtb-article table th,\n    .rtb-article table td,\n    .rtb-article table th p,\n    .rtb-article table td p {\n        overflow-wrap: normal !important;\n        word-break: normal !important;\n        -webkit-hyphens: manual;\n        hyphens: manual;\n    }\n}\n/* Below 330px (phones narrower than 375) let cells shrink so the table fits the column instead of being cut off (fits from 320px phones up) */\n@container rtb-article (max-width: 330px) {\n    .rtb-article table th,\n    .rtb-article table td {\n        min-width: 0 !important;\n    }\n}\n@container rtb-article (max-width: 300px) {\n    .rtb-article table th,\n    .rtb-article table td {\n        padding-left: 6px !important;\n        padding-right: 6px !important;\n    }\n    .rtb-article table th p,\n    .rtb-article table td p {\n        -webkit-hyphens: auto !important;\n        hyphens: auto !important;\n    }\n}\n`;export function withMobileArticleTable(Component){return props=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsx(Component,{...props,className:[props.className,\"rtb-article\"].filter(Boolean).join(\" \"),style:{...props.style,containerType:\"inline-size\",containerName:\"rtb-article\"}})]});}// Table component (Home pop-ups): keep whole words in cells so columns size to\n// their longest word instead of breaking words mid-way on narrow screens.\nconst tableCss=`\n.rtb-table th,\n.rtb-table td,\n.rtb-table th *,\n.rtb-table td * {\n    word-break: normal !important;\n    overflow-wrap: normal !important;\n}\n`;export function withWholeWordTable(Component){return props=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:tableCss}),/*#__PURE__*/_jsx(\"div\",{className:\"rtb-table\",style:{display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{...props})})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"withMobileArticleTable\":{\"type\":\"reactHoc\",\"name\":\"withMobileArticleTable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withWholeWordTable\":{\"type\":\"reactHoc\",\"name\":\"withWholeWordTable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MobileArticleTable.map"],"mappings":"A,kHAuCE,SAAgBM,EAAuB,EAAU,CAAC,MAAO,IAAoB,gBAAMN,EAAU,CAAC,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASO,CAAG,CAAC,EAAe,gBAAKC,EAAU,CAAC,GAAGC,EAAM,UAAU,CAACA,EAAM,UAAU,aAAa,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAAE,MAAM,CAAC,GAAGA,EAAM,MAAM,cAAc,cAAc,cAAc,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAUhV,SAAgBC,EAAmB,EAAU,CAAC,MAAO,IAAoB,gBAAMV,EAAU,CAAC,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASW,CAAQ,CAAC,EAAe,gBAAK,MAAM,CAAC,UAAU,YAAY,MAAM,CAAC,QAAQ,UAAU,EAAE,SAAsB,gBAAKH,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,C,0CA9C/Q,EAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCJ,EAAS"}