{"version":3,"file":"InlineIcons.D8Ac3SCU.mjs","names":["text"],"sources":["https:/framerusercontent.com/modules/JJhSFa8wnSzclizHXSpx/SPWZ9Grdm7LSFF03ecqB/InlineIcons.js"],"sourcesContent":["// Multi-line heading component with customizable inline icons\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Free-flowing paragraph with inline images using § symbol placeholders\n * Use § anywhere in your text to insert images in order from the Items list\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function InlineImages(props){const{text=\"Add inline images \\xa7 to text. Setup in \\xa7 seconds. Fully \\xa7 customisable.\",items=[{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\"},{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Image 2\"},{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Image 3\"}],headingFont,textColor,iconSize,borderRadius,alignment,tag=\"h1\",slot=\"\\xa7\",gap=0,balance=false,transform=\"none\",userSelect=true}=props;const parseTextWithImages=text=>{// Split text by the custom slot symbol\nconst parts=text.split(slot);const result=[];let imageIndex=0;parts.forEach((part,index)=>{// Add the text part\nif(part){result.push(part);}// Add image if not the last part and we have images available\nif(index<parts.length-1&&imageIndex<items.length){result.push(/*#__PURE__*/_jsx(\"img\",{src:items[imageIndex].src,alt:items[imageIndex].alt,style:{height:iconSize,objectFit:\"contain\",display:\"inline-block\",verticalAlign:\"middle\",margin:\"0 2px\",borderRadius:borderRadius,paddingLeft:gap,paddingRight:gap}},`image-${imageIndex}`));imageIndex++;}});return result;};const isFixedWidth=props?.style&&props.style.width===\"100%\";const Tag=tag;return /*#__PURE__*/_jsx(Tag,{style:{...props.style,position:\"relative\",textAlign:alignment,...isFixedWidth?{}:{width:\"max-content\"},...headingFont,color:textColor,background:typeof textColor===\"object\"?textColor:undefined,WebkitBackgroundClip:typeof textColor===\"object\"?\"text\":undefined,WebkitTextFillColor:typeof textColor===\"object\"?\"transparent\":undefined,lineHeight:headingFont?.lineHeight||\"1.2em\",margin:0,textWrap:balance?\"balance\":\"wrap\",textTransform:transform,userSelect:userSelect?\"text\":\"none\"},children:parseTextWithImages(text)});}addPropertyControls(InlineImages,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Add inline images \\xa7 to text. Setup in \\xa7 seconds. Fully \\xa7 customisable.\",displayTextArea:true},slot:{type:ControlType.String,title:\"Slot\",defaultValue:\"\\xa7\",placeholder:\"Enter symbol...\"},headingFont:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},textColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},balance:{type:ControlType.Boolean,title:\"Balance\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},transform:{type:ControlType.Enum,title:\"Transform\",options:[\"none\",\"inherit\",\"capitalize\",\"uppercase\",\"lowercase\"],optionTitles:[\"None\",\"Inherit\",\"Capitalize\",\"Uppercase\",\"Lowercase\"],defaultValue:\"none\"},items:{type:ControlType.Array,title:\"Images\",control:{type:ControlType.ResponsiveImage},defaultValue:[{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\"},{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Image 2\"},{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Image 3\"}],maxCount:20},iconSize:{type:ControlType.Number,title:\"Image Size\",defaultValue:24,min:12,step:2,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:50,step:1,unit:\"px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:0,min:0,max:50,step:1,unit:\"px\"},userSelect:{type:ControlType.Boolean,title:\"User Select\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"},tag:{type:ControlType.Enum,title:\"Tag\",description:\"Made by Bryn Taylor\",options:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"p\",\"span\"],optionTitles:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"p\",\"span\"],defaultValue:\"h1\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InlineImages\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InlineIcons.map"],"mappings":"4JAOG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,yEAAkF,QAAM,CAAC,CAAC,IAAI,sEAAsE,IAAI,UAAU,CAAC,CAAC,IAAI,oEAAoE,IAAI,UAAU,CAAC,CAAC,IAAI,uEAAuE,IAAI,UAAU,CAAC,CAAC,cAAY,YAAU,WAAS,eAAa,YAAU,MAAI,KAAK,OAAK,IAAO,MAAI,EAAE,UAAQ,GAAM,YAAU,OAAO,aAAW,IAAM,EAAY,EAAoB,GAAM,CACxkB,IAAM,EAAMA,EAAK,MAAM,EAAK,CAAO,EAAO,EAAE,CAAK,EAAW,EAE6R,OAF3R,EAAM,SAAS,EAAK,IAAQ,CACvF,GAAM,EAAO,KAAK,EAAK,CACvB,EAAM,EAAM,OAAO,GAAG,EAAW,EAAM,SAAQ,EAAO,KAAkB,EAAK,MAAM,CAAC,IAAI,EAAM,GAAY,IAAI,IAAI,EAAM,GAAY,IAAI,MAAM,CAAC,OAAO,EAAS,UAAU,UAAU,QAAQ,eAAe,cAAc,SAAS,OAAO,QAAqB,eAAa,YAAY,EAAI,aAAa,EAAI,CAA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