{"version":3,"file":"ShapeImage.BgStmIdn.mjs","names":["__esmMin","p","c","init_jsx_runtime","init_framer_D1IzEvwH","addPropertyControls","ShapeImage","props","src","image","style","borderWidth","borderColor","init_ShapeImage","ControlType"],"sources":["https:/framerusercontent.com/modules/wnpZpmyJY8fPQ2pxvGom/DwV1Jho2dqXdXv8yckDY/ShapeImage.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * An image in a rectangle with 20px rounded corners.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ShapeImage(props){const{image,borderColor=\"#1D1D1D\",borderWidth=1,style}=props;const src=typeof image===\"string\"?image:image?.src;return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",borderRadius:20,overflow:\"hidden\"},children:[src&&/*#__PURE__*/_jsx(\"img\",{src:src,srcSet:image?.srcSet,alt:image?.alt||\"\",style:{display:\"block\",width:\"100%\",height:\"100%\",objectFit:\"cover\",objectPosition:`${(image?.positionX??.5)*100}% ${(image?.positionY??.5)*100}%`}}),borderWidth>0&&/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{position:\"absolute\",inset:0,borderRadius:20,border:borderWidth+\"px solid \"+borderColor,boxSizing:\"border-box\",pointerEvents:\"none\"}})]});}addPropertyControls(ShapeImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#1D1D1D\"},borderWidth:{type:ControlType.Number,title:\"Border width\",min:0,max:10,step:.5,unit:\"px\",defaultValue:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShapeImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShapeImage.map"],"mappings":"A,8JAKG,SAAwBM,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,cAAY,UAAU,cAAY,EAAE,SAAOC,EAAYC,EAAI,OAAOC,GAAQ,SAASA,EAAMA,GAAO,IAAI,MAAoB,gBAAM,MAAM,CAAC,MAAM,CAAC,GAAGC,EAAM,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,aAAa,GAAG,SAAS,QAAQ,EAAE,SAAS,CAACF,GAAkB,gBAAK,MAAM,CAAK,MAAI,OAAOC,GAAO,OAAO,IAAIA,GAAO,KAAK,GAAG,MAAM,CAAC,QAAQ,QAAQ,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,eAAe,IAAIA,GAAO,WAAW,IAAI,IAAI,KAAKA,GAAO,WAAW,IAAI,IAAI,EAAE,CAAC,CAAC,EAAEE,EAAY,GAAgB,gBAAK,MAAM,CAAC,cAAc,GAAK,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,aAAa,GAAG,OAAOA,EAAY,YAAYC,EAAY,UAAU,aAAa,cAAc,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,C,sCAACP,EAAoBC,EAAW,CAAC,MAAM,CAAC,KAAKQ,EAAY,gBAAgB,MAAM,OAAO,EAAE,YAAY,CAAC,KAAKA,EAAY,MAAM,MAAM,SAAS,aAAa,SAAS,EAAE,YAAY,CAAC,KAAKA,EAAY,OAAO,MAAM,eAAe,IAAI,EAAE,IAAI,GAAG,KAAK,GAAG,KAAK,KAAK,aAAa,CAAC,CAAC,CAAC,C"}