{"version":3,"file":"AspectRatioImage.Ky7IsIBf.mjs","names":["Image"],"sources":["https:/framerusercontent.com/modules/IUX9NFJBh9lew9jtXemV/c1eTvLV7ysBeDFNzyTSn/AspectRatioImage.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,Image,RenderTarget}from\"framer\";import{useInstanceId}from\"https://framerusercontent.com/modules/FZjYlw33eNo8pxLbSFLX/NS2M1g7qVI7y5CFDNb6m/SuperfieldsShared.js\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n */export default function AspectRatioImage(props){const{border}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const id=useInstanceId();return /*#__PURE__*/_jsxs(\"div\",{\"data-superfields\":true,id:id,style:props.style,children:[/*#__PURE__*/_jsx(Image,{background:props.image,draggable:props.draggable,style:{boxShadow:props.shadows,borderRadius:props.radius}}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:isCanvas?`#${id} div div[data-framer-background-image-wrapper] { position: relative !important; }\n                        #${id} div div[data-framer-background-image-wrapper] img:last-of-type { position: relative !important; }\n                        `:`#${id} div div[data-framer-background-image-wrapper] { position: relative !important; }`}}),border&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,borderWidth:border.width,borderStyle:border.style,borderColor:border.color,borderRadius:props.radius,pointerEvents:\"none\"}})]});}AspectRatioImage.displayName=\"Aspect Ratio Image\";addPropertyControls(AspectRatioImage,{image:{type:ControlType.ResponsiveImage},radius:{type:ControlType.BorderRadius,defaultValue:\"0px\"},border:{type:ControlType.Border,optional:true},shadows:{type:ControlType.BoxShadow},draggable:{type:ControlType.Boolean,defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AspectRatioImage\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2VAIG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,UAAQ,EAAY,EAAS,EAAa,SAAS,GAAG,EAAa,OAAa,EAAG,GAAe,CAAC,OAAoB,EAAM,MAAM,CAAC,mBAAmB,GAAQ,KAAG,MAAM,EAAM,MAAM,SAAS,CAAc,EAAKA,EAAM,CAAC,WAAW,EAAM,MAAM,UAAU,EAAM,UAAU,MAAM,CAAC,UAAU,EAAM,QAAQ,aAAa,EAAM,OAAO,CAAC,CAAC,CAAc,EAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAO,EAAS,IAAI,EAAG;2BAC7a,EAAG;0BACJ,IAAI,EAAG,mFAAmF,CAAC,CAAC,CAAC,GAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,YAAY,EAAO,MAAM,YAAY,EAAO,MAAM,YAAY,EAAO,MAAM,aAAa,EAAM,OAAO,cAAc,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,kBANjQ,IAAuE,IAAgI,CAM4D,EAAiB,YAAY,qBAAqB,EAAoB,EAAiB,CAAC,MAAM,CAAC,KAAK,EAAY,gBAAgB,CAAC,OAAO,CAAC,KAAK,EAAY,aAAa,aAAa,MAAM,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,SAAS,GAAK,CAAC,QAAQ,CAAC,KAAK,EAAY,UAAU,CAAC,UAAU,CAAC,KAAK,EAAY,QAAQ,aAAa,GAAM,CAAC,CAAC"}