// Module ID: 1265 // Function ID: 14291 // Name: _isNativeReflectConstruct // Dependencies: [6, 7, 15, 17, 18, 57, 31, 1254] // Exports: makeReactFormatter // Module 1265 (_isNativeReflectConstruct) import _classCallCheck from "result"; import _defineProperties from "_isNativeReflectConstruct"; import "_possibleConstructorReturn"; import _getPrototypeOf from "_getPrototypeOf"; import _inherits from "_inherits"; import _slicedToArray from "_slicedToArray"; import { createElement } from "result"; function _isNativeReflectConstruct() { let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => { })); function _isNativeReflectConstruct() { return closure_0; } const result = _isNativeReflectConstruct(); } function createReactBuilder(DEFAULT_REACT_RICH_TEXT_ELEMENTS) { const _require = DEFAULT_REACT_RICH_TEXT_ELEMENTS; return ((FormatBuilder) => { function _class() { const self = this; outer2_2(this, _class); const obj = outer2_5(_class); if (outer2_9()) { const _Reflect = Reflect; let constructResult = Reflect.construct(obj, arguments, outer2_5(self).constructor); } else { constructResult = obj(...arguments); } const tmp2Result = outer2_4(self, constructResult); tmp2Result._nodeKey = 0; tmp2Result.result = []; return tmp2Result; } outer1_6(_class, FormatBuilder); let obj = { key: "pushRichTextTag", value: function pushRichTextTag(arg0, arg1, arg2) { const result = this.result; this._nodeKey = +this._nodeKey + 1; result.push(_class[arg0](arg1, "" + this.context.keyPrefix + ".tag-" + +this._nodeKey, arg2)); } }; const items = [obj, , , ]; obj = { key: "pushLiteralText", value: function pushLiteralText(arg0) { const self = this; if ("string" === typeof this.result[this.result.length - 1]) { let result = self.result; const diff = self.result.length - 1; result[diff] = result[diff] + arg0; } else { result = self.result; result.push(arg0); } } }; items[1] = obj; obj = { key: "pushObject", value: function pushObject(arg0) { const result = this.result; result.push(arg0); } }; items[2] = obj; items[3] = { key: "finish", value: function finish() { return this.result; } }; return outer1_3(_class, items); })(_require(1254).FormatBuilder); } function formatReact(arg0, arg1, arg2) { const self = this; let bindFormatValuesResult = arg0; if ("string" !== typeof arg0) { bindFormatValuesResult = self.bindFormatValues(arg2, arg0, arg1); } return bindFormatValuesResult; } function makeReactFormatter(DEFAULT_REACT_RICH_TEXT_ELEMENTS) { return { format: formatReact, builder: createReactBuilder(DEFAULT_REACT_RICH_TEXT_ELEMENTS) }; } export { formatReact }; export { makeReactFormatter }; export const DEFAULT_REACT_RICH_TEXT_ELEMENTS = { $b(arg0, key) { return {arg0}; }, $i(arg0, key) { return {arg0}; }, $del(arg0, key) { return {arg0}; }, $code(arg0, key) { return {arg0}; }, $link(arg0, key) { return {arg0}; }, $p(arg0, key) { return

{arg0}

; } }; export const reactFormatter = makeReactFormatter(exports.DEFAULT_REACT_RICH_TEXT_ELEMENTS);