{"version":3,"file":"ImageInputList.DMJQfAWy.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ydpfx5E671uoNiGs3lJ4/O2ea0rLk4qBAXsrCSJK9/ImageInputList.js"],"sourcesContent":["// Reusable component with dynamic image + text rows. Press + to add new rows.\n// Each row: image (20% width, 50x50px) + text field (80% width) with 20px gap\n// Container is scalable to any width\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function parseTextMarkup(text){if(!text)return\"\";// Escape HTML to prevent XSS\nlet escaped=text.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\");// Parse bold: **text**\nescaped=escaped.replace(/\\*\\*(.+?)\\*\\*/g,\"<strong>$1</strong>\");// Parse italic: *text*\nescaped=escaped.replace(/\\*(.+?)\\*/g,\"<em>$1</em>\");// Parse underline: __text__\nescaped=escaped.replace(/__(.+?)__/g,\"<u>$1</u>\");// Preserve line breaks\nescaped=escaped.replace(/\\n/g,\"<br />\");return escaped;}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function ImageInputList(props){const{masterIcon={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Master Icon\"},items=[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\"},text:\"Enter your text here\"}],gap=20,rowGap=16,iconSize=50,backgroundColor=\"#FFFFFF\",textColor=\"#000000\",font}=props;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",backgroundColor,padding:20,borderRadius:8,display:\"flex\",flexDirection:\"column\",gap:rowGap},children:items.map((row,index)=>{const imageData=row.image&&row.image.src?row.image:masterIcon;return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",gap,width:\"100%\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"20%\",maxWidth:iconSize,minWidth:iconSize,height:iconSize,flexShrink:0},children:/*#__PURE__*/_jsx(\"img\",{src:imageData.src,alt:imageData.alt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",borderRadius:4}})}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,color:textColor,whiteSpace:\"pre-wrap\",wordBreak:\"break-word\",...font},dangerouslySetInnerHTML:{__html:parseTextMarkup(row.text)}})]},index);})});}addPropertyControls(ImageInputList,{masterIcon:{type:ControlType.ResponsiveImage,title:\"Master Icon\"},items:{type:ControlType.Array,title:\"Rows\",control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage,title:\"Image\"},text:{type:ControlType.String,title:\"Text\",defaultValue:\"Enter your text here\",displayTextArea:true}}},defaultValue:[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\"},text:\"Enter your text here\"}]},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:50,min:20,max:200,step:5,unit:\"px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:20,min:0,max:100,step:1,unit:\"px\"},rowGap:{type:ControlType.Number,title:\"Row Gap\",defaultValue:16,min:0,max:100,step:1,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#000000\",hidden:()=>true},buttonTextColor:{type:ControlType.Color,title:\"Button Text\",defaultValue:\"#FFFFFF\",hidden:()=>true},buttonText:{type:ControlType.String,title:\"Button Label\",defaultValue:\"+ Add Row\",hidden:()=>true},showLoadingIndicators:{type:ControlType.Boolean,title:\"Loading Indicators\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\",hidden:()=>true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageInputList\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageInputList.map"],"mappings":"8JAG6G,SAAS,EAAgB,EAAK,CAAC,GAAG,CAAC,EAAK,MAAM,GAC3J,IAAI,EAAQ,EAAK,QAAQ,KAAK,QAAQ,CAAC,QAAQ,KAAK,OAAO,CAAC,QAAQ,KAAK,OAAO,CAIxC,MAHxC,GAAQ,EAAQ,QAAQ,iBAAiB,sBAAsB,CAC/D,EAAQ,EAAQ,QAAQ,aAAa,cAAc,CACnD,EAAQ,EAAQ,QAAQ,aAAa,YAAY,CACjD,EAAQ,EAAQ,QAAQ,MAAM,SAAS,CAAQ,EAG5C,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,aAAW,CAAC,IAAI,sEAAsE,IAAI,cAAc,CAAC,QAAM,CAAC,CAAC,MAAM,CAAC,IAAI,sEAAsE,IAAI,UAAU,CAAC,KAAK,uBAAuB,CAAC,CAAC,MAAI,GAAG,SAAO,GAAG,WAAS,GAAG,kBAAgB,UAAU,YAAU,UAAU,QAAM,EAAM,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,kBAAgB,QAAQ,GAAG,aAAa,EAAE,QAAQ,OAAO,cAAc,SAAS,IAAI,EAAO,CAAC,SAAS,EAAM,KAAK,EAAI,IAAQ,CAAC,IAAM,EAAU,EAAI,OAAO,EAAI,MAAM,IAAI,EAAI,MAAM,EAAW,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,aAAa,MAAI,MAAM,OAAO,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,MAAM,SAAS,EAAS,SAAS,EAAS,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