{"version":3,"file":"Superscript_Text.FE5HZAcc.mjs","names":[],"sources":["https:/framerusercontent.com/modules/h0zmhrnV4m9noIlxuahp/43vkonZ6x2m3YbraIHid/Superscript_Text.js"],"sourcesContent":["\"use client\";import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 60\n */export default function StyledInterSuperscript(props){const{text,fontSize,link,openInNewTab,style}=props;if(!text)return null;// Now looks for content inside {{double curly braces}}\nconst parts=text.split(/(\\{\\{.*?\\}\\})/g);return /*#__PURE__*/_jsx(\"div\",{style:{...style,fontSize,fontFamily:'\"Inter\", sans-serif',color:\"#55555E\",whiteSpace:\"pre-wrap\",display:\"block\",lineHeight:\"1.4em\"},children:parts.map((part,index)=>{if(part.startsWith(\"{{\")&&part.endsWith(\"}}\")){// Remove the {{ and }} to get the content\nconst content=part.slice(2,-2);return /*#__PURE__*/_jsx(\"a\",{href:link,target:openInNewTab?\"_blank\":\"_self\",rel:\"noopener noreferrer\",style:{textDecoration:\"none\",color:\"#524DFF\",cursor:\"pointer\",fontFamily:\"inherit\"},children:/*#__PURE__*/_jsx(\"sup\",{style:{fontSize:\"0.6em\",verticalAlign:\"super\",lineHeight:0},children:content})},index);}return part;})});}addPropertyControls(StyledInterSuperscript,{text:{type:ControlType.String,defaultValue:\"Regular text {{1}}\",placeholder:\"Use {{text}} for superscript\"},link:{type:ControlType.String,defaultValue:\"https://framer.com\"},openInNewTab:{type:ControlType.Boolean,defaultValue:true},fontSize:{type:ControlType.Number,defaultValue:20,min:8,max:100}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StyledInterSuperscript\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"300\",\"framerIntrinsicHeight\":\"60\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Superscript_Text.map"],"mappings":"4JAGG,SAAwB,EAAuB,EAAM,CAAC,GAAK,CAAC,OAAK,WAAS,OAAK,eAAa,SAAO,EAAM,GAAG,CAAC,EAAK,OAAO,KAC5H,IAAM,EAAM,EAAK,MAAM,iBAAiB,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,WAAS,WAAW,sBAAsB,MAAM,UAAU,WAAW,WAAW,QAAQ,QAAQ,WAAW,QAAQ,CAAC,SAAS,EAAM,KAAK,EAAK,IAAQ,CAAC,GAAG,EAAK,WAAW,KAAK,EAAE,EAAK,SAAS,KAAK,CAAC,CAC7R,IAAM,EAAQ,EAAK,MAAM,EAAE,GAAG,CAAC,OAAoB,EAAK,IAAI,CAAC,KAAK,EAAK,OAAO,EAAa,SAAS,QAAQ,IAAI,sBAAsB,MAAM,CAAC,eAAe,OAAO,MAAM,UAAU,OAAO,UAAU,WAAW,UAAU,CAAC,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,QAAQ,cAAc,QAAQ,WAAW,EAAE,CAAC,SAAS,EAAQ,CAAC,CAAC,CAAC,EAAM,CAAE,OAAO,GAAO,CAAC,CAAC,kBAL5S,IAAoD,CAK0P,EAAoB,EAAuB,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,aAAa,qBAAqB,YAAY,+BAA+B,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,aAAa,qBAAqB,CAAC,aAAa,CAAC,KAAK,EAAY,QAAQ,aAAa,GAAK,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,aAAa,GAAG,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC"}