{"version":3,"file":"CMSImage.4nNvShAP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/PAilojZcgb17sxvdkfzy/zIAioEXR3A2oIDtuEYgo/CMSImage.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Accessible CMS Image\n *\n * Keeps CMS image content and its separate alt-text field connected.\n *\n * @framerIntrinsicWidth 640\n * @framerIntrinsicHeight 420\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function CMSImage(props){const{image={src:\"https://framerusercontent.com/images/HGsLuJK0dsHacK2jjqeF1ndTo.jpg\",alt:\"Furniture photograph\"},altText=\"Furniture photograph\",fit=\"cover\",position=\"center\",eager=false,treatment=\"natural\",style}=props;if(!image?.src)return null;const isPlaceBackdrop=treatment===\"placeBackdrop\";return /*#__PURE__*/_jsxs(\"figure\",{\"aria-hidden\":isPlaceBackdrop?true:undefined,style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",margin:0,overflow:\"hidden\",background:\"#111214\"},children:[/*#__PURE__*/_jsx(\"img\",{src:image.src,srcSet:image.srcSet,alt:isPlaceBackdrop?\"\":altText||image.alt||\"\",loading:eager?\"eager\":\"lazy\",fetchPriority:eager?\"high\":\"auto\",decoding:\"async\",style:{display:\"block\",width:\"100%\",height:\"100%\",objectFit:fit,objectPosition:position,filter:isPlaceBackdrop?\"saturate(0.72) contrast(1.08) brightness(0.7)\":undefined,transform:isPlaceBackdrop?\"scale(1.02)\":undefined}}),isPlaceBackdrop&&/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,pointerEvents:\"none\",background:\"linear-gradient(90deg, rgba(17,18,20,0.9) 0%, rgba(17,18,20,0.76) 38%, rgba(17,18,20,0.4) 68%, rgba(17,18,20,0.5) 100%), linear-gradient(180deg, rgba(17,18,20,0.12) 0%, rgba(17,18,20,0.16) 48%, rgba(17,18,20,0.9) 100%)\"}})]});}addPropertyControls(CMSImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},altText:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"Furniture photograph\",displayTextArea:true},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\"},eager:{type:ControlType.Boolean,title:\"Eager\",defaultValue:false},treatment:{type:ControlType.Enum,title:\"Treatment\",options:[\"natural\",\"placeBackdrop\"],optionTitles:[\"Natural\",\"Place Backdrop\"],defaultValue:\"natural\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"420\",\"framerIntrinsicWidth\":\"640\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMSImage.map"],"mappings":"8JASG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,qEAAqE,IAAI,sBAAsB,EAAE,UAAQ,uBAAuB,MAAI,QAAQ,WAAS,SAAS,QAAM,GAAM,YAAU,UAAU,SAAO,EAAM,GAAG,CAAC,GAAO,IAAI,OAAO,KAAK,IAAM,EAAgB,IAAY,gBAAgB,OAAoB,EAAM,SAAS,CAAC,cAAc,EAAgB,GAAK,IAAA,GAAU,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,OAAO,EAAE,SAAS,SAAS,WAAW,SAAS,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC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