{"version":3,"file":"TextEffectGlyphFix.CpZCTxnE.mjs","names":["_Fragment","__esmMin","init_npm_react_18_3_1","l","p","c","J","init_jsx_runtime","withFullGlyphs","CSS","Component","props","CLASS_NAME","init_TextEffectGlyphFix"],"sources":["https:/framerusercontent.com/modules/eHjbB795C59m8HJJp2go/baI6iOqQIMSQPi3j9iCt/TextEffectGlyphFix.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef}from\"react\";/**\n * Per-character text effects: stop Safari / iOS clipping tall letters\n *\n * Set withFullGlyphs on a text layer that uses a per-character Text Effect.\n *\n * While each character fades in, Safari draws it on its own layer and clips it\n * to its own box. Handwriting fonts like Caveat lean past that box, so the tops\n * of tall letters (l, d, b, h, t, i-dots) are sliced off until the animation\n * ends. This widens each character's box sideways and cancels it with a\n * negative margin, so the text lays out exactly as before.\n */const CLASS_NAME=\"quote-glyph-fix\";// The class covers any text this override is set on. The attribute selector is a\n// fallback that matches any Caveat paragraph, in case the class isn't passed through.\nconst CSS=\".\"+CLASS_NAME+\" span span,\"+'p.framer-text[style*=\"Caveat\"] span span {'+\" padding-left: 0.3em; padding-right: 0.3em;\"+\" margin-left: -0.3em; margin-right: -0.3em; }\";export function withFullGlyphs(Component){return /*#__PURE__*/forwardRef((props,ref)=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(Component,{ref:ref,...props,className:[props.className,CLASS_NAME].filter(Boolean).join(\" \")})]}));}\nexport const __FramerMetadata__ = {\"exports\":{\"withFullGlyphs\":{\"type\":\"reactHoc\",\"name\":\"withFullGlyphs\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextEffectGlyphFix.map"],"mappings":"A,gIAYkL,SAAgBQ,EAAe,EAAU,CAAC,MAAoB,iBAAY,EAAM,IAAmB,gBAAMR,EAAU,CAAC,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASS,CAAG,CAAC,EAAe,gBAAKC,EAAU,CAAK,MAAI,GAAGC,EAAM,UAAU,CAACA,EAAM,UAAUC,CAAU,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,C,8CAFtc,EAAW,kBAEd,EAAI,+J"}