{"version":3,"file":"AutoDitherImage.DZNv89Pk.mjs","names":[],"sources":["https:/framerusercontent.com/modules/cH7A4uinJfXLIaol1OqY/hX7JW7lt3Vlh1iLJQXlS/AutoDitherImage.js"],"sourcesContent":["// Simple image component for Framer. Displays original image with layout options.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const placeholder=\"data:image/svg+xml,%3Csvg width='64' height='64' xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%23eee' width='64' height='64'/%3E%3Cpath fill='%23999' d='M21 32a5 5 0 110-10 5 5 0 010 10zm22 13V22l-7 10-7-10-7 10V22m-4 23a4 4 0 01-4-4V27a4 4 0 014-4h40a4 4 0 014 4v18a4 4 0 01-4 4H15z'/%3E%3C/svg%3E\";/**\n * Simple Image component\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function AutoDitherImage(props){const{image={src:\"\",alt:\"\"},layout=\"cover\",style={}}=props;const hasImage=!!image?.src;return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"hidden\",background:!hasImage?\"#f5f5f5\":undefined,position:\"relative\"},children:hasImage?/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt||\"Image\",style:{width:\"100%\",height:\"100%\",objectFit:layout}}):/*#__PURE__*/_jsx(\"img\",{src:placeholder,alt:\"No image selected\",style:{width:80,height:80,opacity:.7},draggable:false})});}addPropertyControls(AutoDitherImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},layout:{type:ControlType.Enum,title:\"Object Fit\",defaultValue:\"cover\",options:[\"cover\",\"contain\"],optionTitles:[\"Cover\",\"Contain\"],displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AutoDitherImage\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AutoDitherImage.map"],"mappings":"uJAKG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,GAAG,IAAI,EAAE,EAAE,SAAO,QAAQ,QAAM,CAAC,GAAG,EAAY,EAAS,CAAC,CAAC,GAAO,IAAI,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,SAAS,SAAS,WAAY,EAAmB,IAAA,GAAV,UAAoB,SAAS,UAAU,EAAE,SAAS,EAAsB,EAAK,MAAM,CAAC,IAAI,EAAM,IAAI,IAAI,EAAM,KAAK,QAAQ,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,CAAM,CAAC,CAAC,EAAe,EAAK,MAAM,CAAC,IAAI,EAAY,IAAI,oBAAoB,MAAM,CAAC,MAAM,GAAG,OAAO,GAAG,QAAQ,EAAE,EAAE,UAAU,EAAK,CAAC,CAAC,CAAC,CAAE,mBAJtjB,IAAoD,EAAO,EAAY,mTAIgf,EAAoB,EAAgB,CAAC,MAAM,CAAC,KAAK,EAAY,gBAAgB,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAY,KAAK,MAAM,aAAa,aAAa,QAAQ,QAAQ,CAAC,QAAQ,SAAS,EAAE,aAAa,CAAC,QAAQ,SAAS,EAAE,wBAAwB,EAAI,CAAC,CAAC"}