{"version":3,"file":"FloatImage.w153cpHD.mjs","names":[],"sources":["https:/framerusercontent.com/modules/bDApM2Cl48e7ew9CgMKD/6O3gUGARSPEfiFySIxsK/FloatImage.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function FloatImageComponent(props){const{imageURL,altText,imageWidth,floatDirection,text,paraGap,color,font,imagePadding,textPadding,imageBorder,imageRadius}=props;// Apply \"display: none\" if the image URL is not set\nconst displayStyle=imageURL?\"block\":\"none\";const paras=text.split(\"\\n\");return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"auto\",overflow:\"hidden\",position:\"relative\",fontFamily:font.fontFamily,fontWeight:font.fontWeight,fontSize:font.fontSize,textAlign:font.textAlign,letterSpacing:font.letterSpacing,lineHeight:font.lineHeight},children:[/*#__PURE__*/_jsx(\"img\",{src:imageURL,srcSet:imageURL,sizes:\"max(100vw * 0.5017, 1px)\",alt:altText||\"Responsive Image\",style:{width:imageWidth+\"px\",maxWidth:\"100%\",height:\"auto\",float:floatDirection,margin:imagePadding,...imageBorder,borderRadius:imageRadius,display:displayStyle}}),paras.map((textLine,index)=>{return /*#__PURE__*/_jsx(\"p\",{style:{padding:textPadding,color:color,margin:index<paras.length-1?`0 0 ${paraGap}px 0`:0},children:textLine});})]});}// Framer Property Controls - No more \"Is Set\" control\naddPropertyControls(FloatImageComponent,{imageURL:{type:ControlType.Image,title:\"CMS Image\"},altText:{type:ControlType.String,title:\"Alt Text\"},imageWidth:{type:ControlType.Number,title:\"Image Width\",max:1e3},floatDirection:{type:ControlType.Enum,title:\"Float Direction\",defaultValue:\"left\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"]},text:{type:ControlType.String,title:\"Text\",defaultValue:\"Lorem ipsum dolor sit amet.\",placeholder:\"Type something…\",displayTextArea:true},paraGap:{type:ControlType.Number,title:\"Paragraph Gap\",max:100},color:{type:ControlType.Color,title:\"Text Color\"},font:{type:ControlType.Font,title:\"Custom Font\",defaultValue:{textAlign:\"left\",fontSize:\"20px\",letterSpacing:\"-0.02em\",lineHeight:\"1.6em\"},defaultFontType:\"sans-serif\",displayTextAlignment:true,displayFontSize:true,controls:\"extended\"},imagePadding:{type:ControlType.Padding,title:\"Image Margin\"},imageBorder:{type:ControlType.Border,title:\"Image Border\"},imageRadius:{type:ControlType.BorderRadius,title:\"Image Border Radius\"},textPadding:{type:ControlType.Padding,title:\"Text Padding\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"FloatImageComponent\":{\"type\":\"reactComponent\",\"name\":\"FloatImageComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FloatImage.map"],"mappings":"mKAA6G,SAAgB,EAAoB,EAAM,CAAC,GAAK,CAAC,WAAS,UAAQ,aAAW,iBAAe,OAAK,UAAQ,QAAM,OAAK,eAAa,cAAY,cAAY,eAAa,EAC7Q,EAAa,EAAS,QAAQ,OAAa,EAAM,EAAK,MAAM;CAAI,EAAE,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,SAAS,WAAW,WAAW,EAAK,WAAW,WAAW,EAAK,WAAW,SAAS,EAAK,SAAS,UAAU,EAAK,UAAU,cAAc,EAAK,cAAc,WAAW,EAAK,UAAU,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,IAAI,EAAS,OAAO,EAAS,MAAM,2BAA2B,IAAI,GAAS,mBAAmB,MAAM,CAAC,MAAM,EAAW,KAAK,SAAS,OAAO,OAAO,OAAO,MAAM,EAAe,OAAO,EAAa,GAAG,EAAY,aAAa,EAAY,QAAQ,CAAY,CAAC,CAAC,EAAE,EAAM,KAAK,EAAS,IAA6B,EAAK,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAkB,QAAM,OAAO,EAAM,EAAM,O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