{"version":3,"file":"typographyRefinements.DHiJforC.mjs","names":["__esmMin","init_ssg_sandbox_shims","c","init_jsx_runtime","window","withTextIndent","textIndent","breakpoint","desktopIndent","mobileIndent","rest","props","Component","style","init_typographyRefinements"],"sources":["https:/framerusercontent.com/modules/uBhUWGwmmg0aLKfemnmt/Gk72psCOoSGVdzFaVAr8/typographyRefinements.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * Responsive Text Indent Override\n * © Swiss Themes\n * swissthemes.design\n *\n * This override allows you to set different text indent values for mobile and desktop/tablet.\n * The text indent will automatically adjust based on the screen width.\n *\n * How to apply:\n * 1. Select a text layer in your Framer project\n * 2. In the Properties panel, find \"Code Override\" and select \"withTextIndent\"\n * 3. Preview your prototype to see the responsive text indent in action\n */// Configuration variables - Adjust these to fit your design\nconst mobileIndent=\"calc(50% + 7.5px)\"// Text indent for phones\n;const desktopIndent=\"calc(50% + 10px)\"// Text indent for tablets and desktops\n;const breakpoint=810// Screen width in pixels where indent changes\n;export function withTextIndent(Component){return props=>{// Check if the screen is tablet/desktop size\nconst isBigScreen=typeof window!==\"undefined\"&&window.matchMedia(`(min-width: ${breakpoint}px)`).matches;// Apply the appropriate text indent based on screen size\nconst textIndent=isBigScreen?desktopIndent:mobileIndent;// Merge our custom style with existing styles\nconst{style,...rest}=props;return /*#__PURE__*/_jsx(Component,{...rest,style:{...style,textIndent}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTextIndent\":{\"type\":\"reactHoc\",\"name\":\"withTextIndent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./typographyRefinements.map"],"mappings":"A,kHAgBC,SAAgBK,EAAe,EAAU,CAAC,MAAO,IAAO,CAEzD,IAAMC,EADmBF,IAAS,QAAaA,EAAO,WAAW,eAAeG,EAAW,IAAI,CAAC,CAAC,QACpEC,EAAcC,EACtC,CAAC,QAAM,GAAGC,GAAMC,EAAM,MAAoB,gBAAKC,EAAU,CAAC,GAAGF,EAAK,MAAM,CAAC,GAAGG,EAAM,YAAU,CAAC,CAAC,CAAE,CAAE,C,gDANjG,EAAa,oBACZ,EAAc,mBACd,EAAW,G"}