{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/iQ5mqUm045yTgbzHGS40/r15bsA7SU5mBfeDt30eg/Superscript.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Superscript component\nconst Superscript=({children,superscriptStyle})=>{return /*#__PURE__*/_jsx(\"sup\",{style:superscriptStyle,children:children});};// Main App component\nexport function App({superscriptText,fontFamily,fontSize,color,lineHeight,letterSpacing,superscriptFontSize,superscriptColor,textStyle}){// Function to render text with superscripts\nconst renderTextWithSuperscript=superscriptText=>{return /*#__PURE__*/_jsx(_Fragment,{children:superscriptText.split(\",\").map((item,index,array)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[/*#__PURE__*/_jsx(Superscript,{superscriptStyle:{fontSize:`${superscriptFontSize}px`,verticalAlign:\"super\",lineHeight:\"0\",color:superscriptColor,marginLeft:index!==0?\"2px\":\"0\"},children:item.trim()}),index<array.length-1&&/*#__PURE__*/_jsx(Superscript,{superscriptStyle:{fontSize:`${superscriptFontSize}px`,verticalAlign:\"super\",lineHeight:\"0\",color:superscriptColor,marginLeft:\"2px\"},children:\",\"})]},index))});};return /*#__PURE__*/_jsx(\"div\",{style:styles.container,children:/*#__PURE__*/_jsx(\"p\",{style:{...styles.text,fontFamily,fontSize:`${fontSize}px`,color,lineHeight:`${lineHeight}em`,letterSpacing:`${letterSpacing}em`,...textStyle},children:renderTextWithSuperscript(superscriptText)})});}// Default styles\nconst styles={container:{padding:\"0px\"},text:{margin:0}};// Define property controls\naddPropertyControls(App,{superscriptText:{type:ControlType.String,title:\"Superscript Text\",defaultValue:\"8,9,10\"},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"Arial, sans-serif\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16,min:6,max:72,unit:\"px\",step:1},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},lineHeight:{type:ControlType.Number,title:\"Line Height\",defaultValue:1.5,min:.5,max:3,step:.1},letterSpacing:{type:ControlType.Number,title:\"Letter Spacing\",defaultValue:0,min:-.1,max:.5,step:.01},superscriptFontSize:{type:ControlType.Number,title:\"Superscript Font Size\",defaultValue:12,min:6,max:24,unit:\"px\",step:1},superscriptColor:{type:ControlType.Color,title:\"Superscript Color\",defaultValue:\"#FF0000\"},textStyle:{type:ControlType.Object,title:\"Text Style\"}});export default App;\nexport const __FramerMetadata__ = {\"exports\":{\"App\":{\"type\":\"reactComponent\",\"name\":\"App\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"App\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Superscript.map"],
  "mappings": "8GACA,IAAMA,EAAY,CAAC,CAAC,SAAAC,EAAS,iBAAAC,CAAgB,IAAyBC,EAAK,MAAM,CAAC,MAAMD,EAAiB,SAASD,CAAQ,CAAC,EACpH,SAASG,EAAI,CAAC,gBAAAC,EAAgB,WAAAC,EAAW,SAAAC,EAAS,MAAAC,EAAM,WAAAC,EAAW,cAAAC,EAAc,oBAAAC,EAAoB,iBAAAC,EAAiB,UAAAC,CAAS,EAAE,CACxI,IAAMC,EAA0BT,GAAsCF,EAAKY,EAAU,CAAC,SAASV,EAAgB,MAAM,GAAG,EAAE,IAAI,CAACW,EAAKC,EAAMC,IAAqBC,EAAYC,EAAS,CAAC,SAAS,CAAcjB,EAAKH,EAAY,CAAC,iBAAiB,CAAC,SAAS,GAAGW,CAAmB,KAAK,cAAc,QAAQ,WAAW,IAAI,MAAMC,EAAiB,WAAWK,IAAQ,EAAE,MAAM,GAAG,EAAE,SAASD,EAAK,KAAK,CAAC,CAAC,EAAEC,EAAMC,EAAM,OAAO,GAAgBf,EAAKH,EAAY,CAAC,iBAAiB,CAAC,SAAS,GAAGW,CAAm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EAAY,OAAO,MAAM,YAAY,CAAC,CAAC,EAAE,IAAOC,EAAQpB",
  "names": ["Superscript", "children", "superscriptStyle", "p", "App", "superscriptText", "fontFamily", "fontSize", "color", "lineHeight", "letterSpacing", "superscriptFontSize", "superscriptColor", "textStyle", "renderTextWithSuperscript", "l", "item", "index", "array", "u", "x", "styles", "addPropertyControls", "ControlType", "Superscript_default"]
}
