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B,KACfiC,UAAW,OACG/F,EAAOG,QAAQuF,cAAc,MAAO,CAClDC,UAAWJ,EAAO,OAAS,KAC3BS,wBAAyB,CACvBC,OAAQ1B,KAERU,KAxBK,MA2BXC,EAAYgB,UAAY,CACtB3B,KAAMrD,EAAWf,QAAQgG,OAAOC,YAElC,IAAIC,EAAWnB,EACfpF,EAAAA,QAAkBuG","sources":["../node_modules/@micado-digital/react-text/ReactText01/index.js"],"sourcesContent":["\"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _styles = require(\"@material-ui/styles\");\n\nvar _Box = _interopRequireDefault(require(\"@material-ui/core/Box\"));\n\nvar _Button = _interopRequireDefault(require(\"@material-ui/core/Button\"));\n\nvar _Typography = _interopRequireDefault(require(\"@material-ui/core/Typography\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nvar useStyles = (0, _styles.makeStyles)(function (theme) {\n return {\n root: {\n \"& div:not(.open) span.hidden\": {\n display: \"none\"\n },\n \"& ul\": {\n listStyle: \"none\",\n margin: theme.spacing(2, 0),\n \"& li\": {\n margin: theme.spacing(1, 0),\n paddingLeft: theme.spacing(3),\n position: \"relative\",\n \"&:before\": {\n background: theme.palette.text.primary,\n borderRadius: \"50%\",\n content: \"''\",\n height: 6,\n left: theme.spacing(1),\n position: \"absolute\",\n top: \"50%\",\n transform: \"translate(0, -50%)\",\n width: 6\n }\n }\n },\n \"& a\": {\n fontWeight: 700\n }\n },\n button: {\n margin: theme.spacing(2, 0)\n }\n };\n});\n\nvar ReactText01 = function ReactText01(_ref) {\n var text = _ref.text;\n var css = useStyles();\n\n var _useState = (0, _react.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n open = _useState2[0],\n setOpen = _useState2[1];\n\n var toggleClass = function toggleClass() {\n setOpen(!open);\n };\n\n if (!text) {\n return null;\n }\n\n var button;\n\n if (!open && text.indexOf(\"\") > -1) {\n button = /*#__PURE__*/_react.default.createElement(_Button.default, {\n className: css.button,\n color: \"primary\",\n variant: \"outlined\",\n onClick: toggleClass\n }, \"Weiterlesen\");\n }\n\n return /*#__PURE__*/_react.default.createElement(_Box.default, {\n className: \"mco-text-01\"\n }, /*#__PURE__*/_react.default.createElement(_Typography.default, {\n className: css.root,\n component: \"div\"\n }, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: open ? \"open\" : null,\n dangerouslySetInnerHTML: {\n __html: text\n }\n }), button));\n};\n\nReactText01.propTypes = {\n text: _propTypes.default.string.isRequired\n};\nvar _default = ReactText01;\nexports.default = _default;"],"names":["_typeof","obj","Symbol","iterator","constructor","prototype","Object","defineProperty","exports","value","_react","nodeInterop","__esModule","default","cache","_getRequireWildcardCache","has","get","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","key","hasOwnProperty","call","desc","set","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_styles","_Box","_Button","_Typography","WeakMap","cacheBabelInterop","cacheNodeInterop","_slicedToArray","arr","i","Array","isArray","_arrayWithHoles","_i","_s","_e","_arr","_n","_d","next","done","push","length","err","_iterableToArrayLimit","o","minLen","_arrayLikeToArray","n","toString","slice","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","len","arr2","useStyles","makeStyles","theme","root","display","listStyle","margin","spacing","paddingLeft","position","background","palette","text","primary","borderRadius","content","height","left","top","transform","width","fontWeight","button","ReactText01","_ref","css","_useState2","useState","open","setOpen","indexOf","createElement","className","color","variant","onClick","component","dangerouslySetInnerHTML","__html","propTypes","string","isRequired","_default"],"sourceRoot":""}