{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/oqTJZsL40Na0s3VRc453/ymWtD3oZAJn5XYq4bGRZ/Text_component.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function TextWithImages(props){const{text,fontSize,fontWeight,color,fontFamily,items,settings,textAlign,imageWidth,imageHeight,letterSpacing}=props;const containerStyle={display:\"flex\",justifyContent:textAlign,flexWrap:\"wrap\",fontSize:fontSize,fontWeight:fontWeight,color:color,fontFamily:fontFamily,width:\"100%\",overflow:\"visible\"};const textStyle={margin:\"0 4px\",whiteSpace:\"nowrap\",letterSpacing:letterSpacing};const content=[];const words=(text||\"\").split(\" \");words.forEach((word,index)=>{content.push(/*#__PURE__*/_jsx(\"span\",{style:textStyle,children:word},`word-${index}`));items.forEach((item,itemIndex)=>{const{position,offset,verticalOffset}=settings[itemIndex];if(index===position){content.push(/*#__PURE__*/_jsx(\"img\",{src:item,alt:`icon-${itemIndex}`,style:{width:imageWidth,height:imageHeight,margin:`0 ${offset}px`,position:\"relative\",top:`${verticalOffset}px`}},`image-${itemIndex}`));}});});return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:content});}addPropertyControls(TextWithImages,{text:{type:ControlType.String,title:\"Text\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16},fontWeight:{type:ControlType.Enum,title:\"Font Weight\",options:[\"normal\",\"bold\",\"bolder\",\"lighter\",\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\",\"italic\",\"bold italic\"],optionTitles:[\"Normal\",\"Bold\",\"Bolder\",\"Lighter\",\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\",\"Italic\",\"Bold Italic\"],defaultValue:\"normal\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},fontFamily:{type:ControlType.String,title:\"Font Family\"},textAlign:{type:ControlType.Enum,title:\"Text Align\",options:[\"flex-start\",\"center\",\"flex-end\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"flex-start\"},items:{type:ControlType.Array,title:\"Items\",propertyControl:{type:ControlType.Image}},settings:{type:ControlType.Array,title:\"Settings\",propertyControl:{type:ControlType.Object,controls:{position:{type:ControlType.Number,title:\"Position\",min:0,displayStepper:true},offset:{type:ControlType.Number,title:\"Offset\",defaultValue:4},verticalOffset:{type:ControlType.Number,title:\"Vertical Offset\",defaultValue:0}}}},imageWidth:{type:ControlType.Number,title:\"Image Width\",defaultValue:16},imageHeight:{type:ControlType.Number,title:\"Image Height\",defaultValue:16},letterSpacing:{type:ControlType.Number,title:\"Letter Spacing\",defaultValue:0}});\nexport const __FramerMetadata__ = {\"exports\":{\"TextWithImages\":{\"type\":\"reactComponent\",\"name\":\"TextWithImages\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text_component.map"],
  "mappings": "yFAAsG,SAASA,EAAeC,EAAM,CAAC,GAAK,CAAC,KAAAC,EAAK,SAAAC,EAAS,WAAAC,EAAW,MAAAC,EAAM,WAAAC,EAAW,MAAAC,EAAM,SAAAC,EAAS,UAAAC,EAAU,WAAAC,EAAW,YAAAC,EAAY,cAAAC,CAAa,EAAEX,EAAYY,EAAe,CAAC,QAAQ,OAAO,eAAeJ,EAAU,SAAS,OAAO,SAASN,EAAS,WAAWC,EAAW,MAAMC,EAAM,WAAWC,EAAW,MAAM,OAAO,SAAS,SAAS,EAAQQ,EAAU,CAAC,OAAO,QAAQ,WAAW,SAAS,cAAcF,CAAa,EAAQG,EAAQ,CAAC,EAAoC,OAArBb,GAAM,IAAI,MAAM,GAAG,EAAQ,QAAQ,CAACc,EAAKC,IAAQ,CAACF,EAAQ,KAAkBG,EAAK,OAAO,CAAC,MAAMJ,EAAU,SAASE,CAAI,EAAE,QAAQC,CAAK,EAAE,CAAC,EAAEV,EAAM,QAAQ,CAACY,EAA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OAAO,SAAS,CAAC,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,WAAW,IAAI,EAAE,eAAe,EAAI,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,SAAS,aAAa,CAAC,EAAE,eAAe,CAAC,KAAKA,EAAY,OAAO,MAAM,kBAAkB,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,KAAKA,EAAY,OAAO,MAAM,cAAc,aAAa,EAAE,EAAE,YAAY,CAAC,KAAKA,EAAY,OAAO,MAAM,eAAe,aAAa,EAAE,EAAE,cAAc,CAAC,KAAKA,EAAY,OAAO,MAAM,iBAAiB,aAAa,CAAC,CAAC,CAAC",
  "names": ["TextWithImages", "props", "text", "fontSize", "fontWeight", "color", "fontFamily", "items", "settings", "textAlign", "imageWidth", "imageHeight", "letterSpacing", "containerStyle", "textStyle", "content", "word", "index", "p", "item", "itemIndex", "position", "offset", "verticalOffset", "addPropertyControls", "ControlType"]
}
