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C,WAAW,EAAIjE,EAAOO,SAASwD,EAAIlB,QAAS,8BAC3CgB,GAAyBhE,EAAOU,QAAQyD,cAAc5D,EAAYG,QAAS,CAC5E0D,UAAW,6BACXM,UAAW,IACXC,QAAS,aACRX,GAAWZ,GAAyBpD,EAAOU,QAAQyD,cAAc5D,EAAYG,QAAS,CACvF0D,UAAW,0BACXQ,MAAO,YACPC,wBAAyB,CACvBC,OAAQ1B,GAEV2B,cAAc,EACdJ,QAASnB,IACPO,GAAqB/D,EAAOU,QAAQyD,cAAc5D,EAAYG,QAAS,CACzE0D,UAAW,yBACXM,UAAW,MACXG,wBAAyB,CACvBC,OAAQf,QAKdb,EAAiB8B,UAAY,CAC3B3B,UAAWjD,EAAWM,QAAQuE,OAC9B3B,IAAKlD,EAAWM,QAAQuE,OACxBzB,gBAAiBpD,EAAWM,QAAQuE,OACpCxB,MAAOrD,EAAWM,QAAQwE,OAAOC,WACjCzB,aAActD,EAAWM,QAAQwE,OACjCvB,UAAWvD,EAAWM,QAAQuE,OAC9BpB,OAAQzD,EAAWM,QAAQ0E,OAC3BrB,KAAM3D,EAAWM,QAAQuE,OACzBhB,MAAO7D,EAAWM,QAAQuE,QAE5B,IAAII,EAAWnC,EACfpD,EAAAA,QAAkBuF","sources":["../node_modules/@micado-digital/react-imagetext/ReactImageText01/index.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _clsx2 = _interopRequireDefault(require(\"clsx\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _component = _interopRequireDefault(require(\"@loadable/component\"));\n\nvar _makeStyles = _interopRequireDefault(require(\"@material-ui/styles/makeStyles\"));\n\nvar _Typography = _interopRequireDefault(require(\"@material-ui/core/Typography\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar ReactHTMLPicture = (0, _component.default)(function () {\n return import(\"@micado-digital/react-htmlpicture/ReactHTMLPicture\");\n});\nvar useStyles = (0, _makeStyles.default)(function (theme) {\n var _root, _image;\n\n return {\n root: (_root = {}, _defineProperty(_root, theme.breakpoints.up(\"md\"), {\n display: \"grid\",\n gridColumnGap: theme.spacing(4),\n gridTemplateColumns: \"1fr 1fr\",\n gridTemplateRows: \"auto\"\n }), _defineProperty(_root, theme.breakpoints.up(\"lg\"), {\n gridColumnGap: theme.spacing(6)\n }), _root),\n rootLeft: {\n \"& .mco-imagetext-01__image\": _defineProperty({}, theme.breakpoints.up(\"md\"), {\n gridColumn: \"2 / 3\"\n }),\n \"& .mco-imagetext-01__content\": _defineProperty({}, theme.breakpoints.up(\"md\"), {\n gridColumn: \"1 / 2\"\n })\n },\n image: (_image = {\n marginBottom: theme.spacing(2)\n }, _defineProperty(_image, theme.breakpoints.up(\"md\"), {\n gridColumn: \"1 / 2\",\n gridRow: \"1 / -1\",\n marginBottom: 0\n }), _defineProperty(_image, \"& img\", {\n height: \"100%\",\n width: \"100%\"\n }), _image),\n content: _defineProperty({}, theme.breakpoints.up(\"md\"), {\n display: \"flex\",\n flexDirection: \"column\",\n gridColumn: \"2 / 3\",\n gridRow: \"1 / -1\"\n })\n };\n});\n\nvar ReactImageText01 = function ReactImageText01(_ref) {\n var headline = _ref.addition2,\n alt = _ref.alt,\n _ref$headlineVariant = _ref.headlineVariant,\n headlineVariant = _ref$headlineVariant === void 0 ? \"h3\" : _ref$headlineVariant,\n media = _ref.media,\n mediaFormats = _ref.mediaFormats,\n mediaPath = _ref.mediaPath,\n _ref$option = _ref.option,\n alignment = _ref$option === void 0 ? 0 : _ref$option,\n text = _ref.text,\n subTitle = _ref.title;\n var css = useStyles();\n return /*#__PURE__*/_react.default.createElement(\"div\", {\n className: (0, _clsx2.default)(css.root, \"mco-imagetext-01\", \"mco-imagetext-01__wrapper--\".concat(alignment === 0 ? \"right\" : \"left\"), _defineProperty({}, css.rootLeft, alignment === 1))\n }, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: (0, _clsx2.default)(\"mco-imagetext-01__image\", css.image),\n style: {\n order: alignment\n }\n }, /*#__PURE__*/_react.default.createElement(ReactHTMLPicture, _extends({\n alt: alt,\n media: media,\n path: mediaPath,\n webpFallback: true\n }, mediaFormats))), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: (0, _clsx2.default)(css.content, \"mco-imagetext-01__content\")\n }, subTitle && /*#__PURE__*/_react.default.createElement(_Typography.default, {\n className: \"mco-imagetext-01__subtitle\",\n component: \"p\",\n variant: \"subtitle2\"\n }, subTitle), headline && /*#__PURE__*/_react.default.createElement(_Typography.default, {\n className: \"mco-imagetext-01__title\",\n color: \"secondary\",\n dangerouslySetInnerHTML: {\n __html: headline\n },\n gutterBottom: true,\n variant: headlineVariant\n }), text && /*#__PURE__*/_react.default.createElement(_Typography.default, {\n className: \"mco-imagetext-01__text\",\n component: \"div\",\n dangerouslySetInnerHTML: {\n __html: text\n }\n })));\n};\n\nReactImageText01.propTypes = {\n addition2: _propTypes.default.string,\n alt: _propTypes.default.string,\n headlineVariant: _propTypes.default.string,\n media: _propTypes.default.object.isRequired,\n mediaFormats: _propTypes.default.object,\n mediaPath: _propTypes.default.string,\n option: _propTypes.default.number,\n text: _propTypes.default.string,\n title: _propTypes.default.string\n};\nvar _default = ReactImageText01;\nexports.default = _default;"],"names":["Object","defineProperty","exports","value","_react","_interopRequireDefault","require","_clsx2","_propTypes","_component","_makeStyles","_Typography","obj","__esModule","default","_extends","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_defineProperty","enumerable","configurable","writable","ReactHTMLPicture","useStyles","theme","_root","_image","root","breakpoints","up","display","gridColumnGap","spacing","gridTemplateColumns","gridTemplateRows","rootLeft","gridColumn","image","marginBottom","gridRow","height","width","content","flexDirection","ReactImageText01","_ref","headline","addition2","alt","_ref$headlineVariant","headlineVariant","media","mediaFormats","mediaPath","_ref$option","option","alignment","text","subTitle","title","css","createElement","className","concat","style","order","path","webpFallback","component","variant","color","dangerouslySetInnerHTML","__html","gutterBottom","propTypes","string","object","isRequired","number","_default"],"sourceRoot":""}