{"version":3,"file":"AbstractBackgroundImage.Dp8R33uM.mjs","names":[],"sources":["https:/framerusercontent.com/modules/uXblI0dyUnEax0hWX50g/5dXKo5GKf437WVPeF4bS/AbstractBackgroundImage.js"],"sourcesContent":["// User request: Create a canvas-embeddable Framer code component named AbstractBackgroundImage. It must render the supplied remote image URL as a full-bleed CSS background inside its own bounds, use background-size cover and centered positioning, and apply a configurable opacity. It should be non-interactive and have no visible content of its own. Expose controls for imageUrl and opacity; defaults should use `https://framerusercontent.com/images/iMBTe7vjGJUQMk3WLXkv6Bijw.png?width=1024&height=1024&kb=1675` and opacity 0.22. Keep it responsive to any size supplied by the canvas. This will be inserted behind a native panel within an existing product-card visual, so it must not add padding, shadows, text, or fixed dimensions.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function AbstractBackgroundImage(props){const{imageUrl,opacity=.22,fit=\"cover\",position=\"center\",style}=props;return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:\"100%\",height:\"100%\",pointerEvents:\"none\",backgroundImage:imageUrl?`url(\"${imageUrl}\")`:\"none\",backgroundSize:fit,backgroundPosition:position,backgroundRepeat:\"no-repeat\",opacity,...style}});}addPropertyControls(AbstractBackgroundImage,{imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"https://framerusercontent.com/images/iMBTe7vjGJUQMk3WLXkv6Bijw.png?width=1024&height=1024&kb=1675\"},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.22,min:0,max:1,step:.01},fit:{type:ControlType.Enum,title:\"Fit\",options:[\"cover\",\"contain\"],optionTitles:[\"Cover\",\"Contain\"],defaultValue:\"cover\",displaySegmentedControl:true},position:{type:ControlType.Enum,title:\"Position\",options:[\"center\",\"top\",\"bottom\",\"left\",\"right\"],optionTitles:[\"Center\",\"Top\",\"Bottom\",\"Left\",\"Right\"],defaultValue:\"center\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AbstractBackgroundImage\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AbstractBackgroundImage.map"],"mappings":"4JAIG,SAAwB,EAAwB,EAAM,CAAC,GAAK,CAAC,WAAS,UAAQ,IAAI,MAAI,QAAQ,WAAS,SAAS,SAAO,EAAM,OAAoB,EAAK,MAAM,CAAC,cAAc,OAAO,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,cAAc,OAAO,gBAAgB,EAAS,QAAQ,EAAS,IAAI,OAAO,eAAe,EAAI,mBAAmB,EAAS,iBAAiB,YAAY,UAAQ,GAAG,CAAK,CAAC,CAAC,CAAE,iBAH3W,IAAoD,EAGwT,EAAoB,EAAwB,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,mGAAmG,EAAE,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,aAAa,IAAI,IAAI,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,IAAI,CAAC,KAAK,EAAY,KAAK,MAAM,MAAM,QAAQ,CAAC,QAAQ,SAAS,EAAE,aAAa,CAAC,QAAQ,SAAS,EAAE,aAAa,QAAQ,wBAAwB,EAAI,EAAE,SAAS,CAAC,KAAK,EAAY,KAAK,MAAM,WAAW,QAAQ,CAAC,SAAS,MAAM,SAAS,OAAO,OAAO,EAAE,aAAa,CAAC,SAAS,MAAM,SAAS,OAAO,OAAO,EAAE,aAAa,QAAQ,CAAC,CAAC"}