{"version":3,"sources":["webpack:///./src/Avensia.Common/Features/Shared/Partials/PropertyTypes/Html.tsx"],"names":["Object","_avensia_scope__WEBPACK_IMPORTED_MODULE_2__","item","i","props","componentProps","size","_image_sizes__WEBPACK_IMPORTED_MODULE_4__","Large","keepImageSizes","width","height","react__WEBPACK_IMPORTED_MODULE_1___default","a","createElement","_Image__WEBPACK_IMPORTED_MODULE_3__","tslib__WEBPACK_IMPORTED_MODULE_0__","preset","__webpack_exports__"],"mappings":"sJAQAA,OAAAC,EAAA,EAAAD,CAAkB,MAAO,SAACE,EAAMC,EAAGC,EAAOC,GACxC,IAAIC,EAAOC,EAAA,EAAKC,MAYhB,OAXIJ,EAAM,eACRE,EAAOF,EAAM,eAEuB,IAAlCC,EAAeI,iBACbL,EAAMM,cACDN,EAAMM,MAEXN,EAAMO,eACDP,EAAMO,QAGVC,EAAAC,EAAAC,cAACC,EAAA,EAAKC,EAAA,KAAKZ,GAAOa,OAAQX,OAGpBY,EAAA,QAAAjB,EAAI","file":"assets/19.chunk.f343885754f0202a7469.js","sourcesContent":["/**\r\n * @ComponentFor EPiServer.Core.XhtmlString\r\n */\r\nimport React from 'react';\r\nimport { Html, registerDecorator } from '@avensia/scope';\r\nimport Image from '../../Image';\r\nimport { Size } from '../../image-sizes';\r\n\r\nregisterDecorator('img', (item, i, props, componentProps) => {\r\n let size = Size.Large;\r\n if (props['data-size']) {\r\n size = props['data-size'];\r\n }\r\n if (componentProps.keepImageSizes === false) {\r\n if (props.width) {\r\n delete props.width;\r\n }\r\n if (props.height) {\r\n delete props.height;\r\n }\r\n }\r\n return ;\r\n});\r\n\r\nexport default Html;\r\n"],"sourceRoot":""}