{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/rG1oVDCyPRIoOU7gGtNf/lsU2WWRDx8DrlKqt24Nr/Underline.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{isValidElement}from\"react\";const underlineColor=\"rgba(0,0,0,0.2)\"// The color of underlines. Leave blank for default color.\n;const underlineStyle=\"solid\"// Options: \"solid\", \"double\", \"dotted\", \"dashed\", or \"wavy\"\n;const underlineThickness=\"2px\"// The size of underlines. Leave blank for default size.\n;const underlineOffset=\"0.15em\"// Offset\n;const strikethroughColor=\"blue\"// The color of strikethroughs. Leave blank for default color.\n;const strikethroughStyle=\"dashed\"// Options: \"solid\", \"double\", \"dotted\", \"dashed\", or \"wavy\"\n;const strikethroughThickness=\"\"// The size of strikethroughs. Leave blank for default size.\n;const linkDecorationColor=\"rgba(0,0,0,0.2)\"// The color of link decorations. Leave blank for default color.\n;const linkDecorationStyle=\"solid\"// Options: \"solid\", \"double\", \"dotted\", \"dashed\", or \"wavy\"\n;const linkDecorationThickness=\"2px\"// The size of link decorations. Leave blank for default size.\n;const linkDecorationOffset=\"0.15em\"// Offset\n;export function TextLineStyles(Component){const id=\"a\"+Math.floor(Math.random()*1e7).toString();return props=>{var _props_children_props_children,_props_children_props,_props_children;let elementPropsList=[];let hasLinks=false;// Find text element sections.\nconst textProps=(_props_children=props.children)===null||_props_children===void 0?void 0:(_props_children_props=_props_children.props)===null||_props_children_props===void 0?void 0:(_props_children_props_children=_props_children_props.children)===null||_props_children_props_children===void 0?void 0:_props_children_props_children.props;if(textProps){if(Array.isArray(textProps.children)){// If text layer has styled sections of text.\nfor(const element of textProps.children){if(/*#__PURE__*/isValidElement(element)){if(element.type==\"span\"){elementPropsList.push(element.props);}else if(typeof element.type==\"object\"){hasLinks=true;}}}}else if(typeof textProps.children==\"string\"){// If element doesn't have any styled sections.\nelementPropsList.push(textProps);}}// Add strikethrough and underline styles to text sections.\nfor(const elementProps of elementPropsList){var _elementProps_style;const decoration=(_elementProps_style=elementProps.style)===null||_elementProps_style===void 0?void 0:_elementProps_style[\"--framer-text-decoration\"];if(decoration==\"line-through\"){elementProps.style={...elementProps.style,textDecorationStyle:strikethroughStyle,textDecorationColor:strikethroughColor,textDecorationThickness:strikethroughThickness};}else if(decoration==\"underline\"){elementProps.style={...elementProps.style,textDecorationStyle:underlineStyle,textDecorationColor:underlineColor,textDecorationThickness:underlineThickness,textUnderlineOffset:underlineOffset};}}return /*#__PURE__*/_jsxs(_Fragment,{children:[hasLinks&&/*#__PURE__*/_jsx(\"style\",{children:`\n                    #${id} a {\n                        text-decoration-style: ${linkDecorationStyle} !important;\n                        ${linkDecorationColor&&linkDecorationColor.length>0&&`text-decoration-color: ${linkDecorationColor} !important;`}\n                        ${linkDecorationThickness&&linkDecorationThickness.length>0&&`text-decoration-thickness: ${linkDecorationThickness} !important;`}\n                        ${linkDecorationOffset&&linkDecorationOffset.length>0&&`text-underline-offset: ${linkDecorationOffset} !important;`}\n                `}),/*#__PURE__*/_jsx(Component,{...props,id:id})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"TextLineStyles\":{\"type\":\"reactHoc\",\"name\":\"TextLineStyles\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Underline.map"],
  "mappings": "8DAAiH,IAAMA,EAAe,kBAC/HC,EAAe,QACfC,EAAmB,MACnBC,EAAgB,SAChBC,EAAmB,OACnBC,EAAmB,SACnBC,EAAuB,GACvBC,EAAoB,kBACpBC,EAAoB,QACpBC,EAAwB,MACxBC,EAAqB,SACpB,SAASC,EAAeC,EAAU,CAAC,IAAMC,EAAG,IAAI,KAAK,MAAM,KAAK,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,OAAOC,GAAO,CAAC,IAAIC,EAA+BC,EAAsBC,EAAgB,IAAIC,EAAiB,CAAC,EAAMC,EAAS,GACxNC,GAAWH,EAAgBH,EAAM,YAAY,MAAMG,IAAkB,SAAeD,EAAsBC,EAAgB,SAAS,MAAMD,IAAwB,SAAeD,EAA+BC,EAAsB,YAAY,MAAMD,IAAiC,OAA5M,OAA0NA,EAA+B,MAAM,GAAGK,EAAW,GAAG,MAAM,QAAQA,EAAU,QAAQ,EAClY,QAAUC,KAAWD,EAAU,SAA0BE,EAAeD,CAAO,IAAMA,EAAQ,MAAM,OAAQH,EAAiB,KAAKG,EAAQ,KAAK,EAAW,OAAOA,EAAQ,MAAM,WAAUF,EAAS,UAAiB,OAAOC,EAAU,UAAU,UAC7OF,EAAiB,KAAKE,CAAS,EAC/B,QAAUG,KAAgBL,EAAiB,CAAC,IAAIM,EAAoB,IAAMC,GAAYD,EAAoBD,EAAa,SAAS,MAAMC,IAAsB,OAAO,OAAOA,EAAoB,0BAA0B,EAAKC,GAAY,eAAgBF,EAAa,MAAM,CAAC,GAAGA,EAAa,MAAM,oBAAoBlB,EAAmB,oBAAoBD,EAAmB,wBAAwBE,CAAsB,EAAWmB,GAAY,cAAaF,EAAa,MAAM,CAAC,GAAGA,EAAa,MAAM,oBAAoBtB,EAAe,oBAAoBD,EAAe,wBAAwBE,EAAmB,oBAAoBC,CAAe,GAAI,OAAoBuB,EAAMC,EAAU,CAAC,SAAS,CAACR,GAAuBS,EAAK,QAAQ,CAAC,SAAS;AAAA,uBAC3sBf;AAAA,iDAC0BL;AAAA,0BACvBD,GAAqBA,EAAoB,OAAO,GAAG,0BAA0BA;AAAA,0BAC7EE,GAAyBA,EAAwB,OAAO,GAAG,8BAA8BA;AAAA,0BACzFC,GAAsBA,EAAqB,OAAO,GAAG,0BAA0BA;AAAA,iBACxF,CAAC,EAAekB,EAAKhB,EAAU,CAAC,GAAGE,EAAM,GAAGD,CAAE,CAAC,CAAC,CAAC,CAAC,CAAE,CAAE",
  "names": ["underlineColor", "underlineStyle", "underlineThickness", "underlineOffset", "strikethroughColor", "strikethroughStyle", "strikethroughThickness", "linkDecorationColor", "linkDecorationStyle", "linkDecorationThickness", "linkDecorationOffset", "TextLineStyles", "Component", "id", "props", "_props_children_props_children", "_props_children_props", "_props_children", "elementPropsList", "hasLinks", "textProps", "element", "J", "elementProps", "_elementProps_style", "decoration", "u", "l", "p"]
}
