{"version":3,"file":"PositionedImage.e7cCwX8C.mjs","names":["__esmMin","c","init_jsx_runtime","init_framer_Bf4_tcb2","ControlType","addPropertyControls","PositionedImage","props","imageUrl","fit","focusPosition","init_PositionedImage"],"sources":["https:/framerusercontent.com/modules/VAjavHmOeXkEaOYBXcme/nHqx66Xq5pGlq7qPpt1A/PositionedImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * A background-image fill that lets you control the crop focus point\n * (e.g. \"center top\" to favor the top of a tall or sparse screenshot),\n * which native Frame nodes don't expose. Set fit to \"contain\" to show\n * the whole image without cropping (useful for logos).\n */export default function PositionedImage(props){const{imageUrl,focusPosition=\"center\",fit=\"cover\"}=props;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundImage:imageUrl?`url(${imageUrl})`:undefined,backgroundSize:fit,backgroundRepeat:\"no-repeat\",backgroundPosition:focusPosition}});}addPropertyControls(PositionedImage,{imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\"},focusPosition:{type:ControlType.String,title:\"Focus\",defaultValue:\"center\",placeholder:\"e.g. 'center top'\"},fit:{type:ControlType.String,title:\"Fit\",defaultValue:\"cover\",placeholder:\"cover or contain\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PositionedImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PositionedImage.map"],"mappings":"A,4JAKG,SAAwBM,EAAgB,EAAM,CAAC,GAAK,CAAC,WAAS,gBAAc,SAAS,MAAI,SAASC,EAAM,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,gBAAgBC,EAAS,OAAOA,EAAS,GAAG,IAAA,GAAU,eAAeC,EAAI,iBAAiB,YAAY,mBAAmBC,CAAa,CAAC,CAAC,CAAE,C,sCAACL,EAAoBC,EAAgB,CAAC,SAAS,CAAC,KAAKF,EAAY,OAAO,MAAM,YAAY,aAAa,EAAE,EAAE,cAAc,CAAC,KAAKA,EAAY,OAAO,MAAM,QAAQ,aAAa,SAAS,YAAY,mBAAmB,EAAE,IAAI,CAAC,KAAKA,EAAY,OAAO,MAAM,MAAM,aAAa,QAAQ,YAAY,kBAAkB,CAAC,CAAC,C"}