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AeE,EAAmB,IAAIF,QAAW,OAAQd,EAA2B,SAAkCJ,GAAe,OAAOA,EAAcoB,EAAmBD,CAAmB,GAAGnB,EAAc,CAI9U,IAAIqB,EAAY,SAAmBC,GACjC,IAAIC,EAAOD,EAAKC,KACZC,GAAM,EAAIzB,EAAO0B,QAAQ,MAe7B,OAdA,EAAI1B,EAAO2B,YAAW,WACpB,GAAKH,EAAL,CACA,IAAII,EAAUH,EAAIG,QAClB,GAAgB,OAAZA,EAAJ,CACA,IAAIC,EAAQC,SAASC,cAMrB,OALAF,EAAMG,mBAAmBJ,GACzBC,EAAMI,iBACNL,EAAQM,YAAYL,EAAMM,yBAAyBX,IAG5C,WACLI,EAAQQ,YAAc,EACxB,CAT4B,CAFX,CAYnB,GAAG,CAACZ,IACgBxB,EAAOG,QAAQkC,cAAc,MAAO,CACtDC,UAAW,WACXb,IAAKA,GAET,EAEAH,EAAUiB,UAAY,CACpBf,KAAMN,EAAWf,QAAQqC,OAAOC,YAElC,IAAIC,EAAWpB,EACfxB,EAAAA,QAAkB4C,C","sources":["../node_modules/@micado-digital/react-html/ReactHTML/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\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\nvar ReactHTML = function ReactHTML(_ref) {\n var html = _ref.html;\n var ref = (0, _react.useRef)(null);\n (0, _react.useEffect)(function () {\n if (!html) return;\n var current = ref.current;\n if (current === null) return;\n var range = document.createRange();\n range.selectNodeContents(current);\n range.deleteContents();\n current.appendChild(range.createContextualFragment(html)); // const documentFragment = document.createRange().createContextualFragment(html);\n // current.appendChild(documentFragment);\n\n return function () {\n current.textContent = \"\";\n };\n }, [html]);\n return /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"mco-html\",\n ref: ref\n });\n};\n\nReactHTML.propTypes = {\n html: _propTypes.default.string.isRequired\n};\nvar _default = ReactHTML;\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","WeakMap","cacheBabelInterop","cacheNodeInterop","ReactHTML","_ref","html","ref","useRef","useEffect","current","range","document","createRange","selectNodeContents","deleteContents","appendChild","createContextualFragment","textContent","createElement","className","propTypes","string","isRequired","_default"],"sourceRoot":""}