// Module ID: 10488 // Function ID: 10489 // Name: _isNativeReflectConstruct // Dependencies: [41, 42, 93, 95, 98, 10465] // Module 10488 (_isNativeReflectConstruct) import Filter from "Filter" /* 10465 */; import MergeWeekdayComponentRefiner from "_classCallCheck" /* 41 */; import _createClass from "_createClass" /* 42 */; import closure_1 from "_possibleConstructorReturn" /* 93 */; import closure_2 from "_getPrototypeOf" /* 95 */; import _inherits from "_inherits" /* 98 */; function _isNativeReflectConstruct() { try { const _Boolean = Boolean; const call = valueOf.call; const _Reflect = Reflect; const _Boolean2 = Boolean; if (typeof call === "unknown") { let callResult = valueOf(); } else { callResult = call(constructResult); } closure_0 = !callResult; _isNativeReflectConstruct = function _isNativeReflectConstruct() { return closure_0; }; return _isNativeReflectConstruct(); } catch (err) { } } class MergeWeekdayComponentRefiner { constructor() { self = this; tmp = MergeWeekdayComponentRefiner(this, MergeWeekdayComponentRefiner); tmp2 = closure_2; obj = closure_2(MergeWeekdayComponentRefiner); tmp3 = closure_1; if (_isNativeReflectConstruct()) { tmp7 = globalThis; _Reflect = Reflect; tmp8 = arguments; constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor); } else { tmp4 = arguments; tmp5 = arguments; constructResult = obj(...arguments); } return tmp3(self, constructResult); } } _inherits(MergeWeekdayComponentRefiner, Filter.MergingRefiner); const items = [ { key: "mergeResults", value: function mergeResults(arg0, index, clone) { const cloneResult = clone.clone(); cloneResult.index = index.index; cloneResult.text = index.text + arg0 + cloneResult.text; const start = cloneResult.start; const start2 = index.start; start.assign("weekday", start2.get("weekday")); if (cloneResult.end) { const end = cloneResult.end; const start3 = index.start; end.assign("weekday", start3.get("weekday")); } return cloneResult; } }, { key: "shouldMergeResults", value: function shouldMergeResults(str, start, start2) { start = start.start; let result = start.isOnlyWeekdayComponent(); if (result) { start2 = start.start; result = !start2.isCertain("hour"); } if (result) { const start3 = start2.start; result = start3.isCertain("day"); } if (result) { result = null != str.match(/^,?\s*$/); } return result; } } ]; export default _createClass(MergeWeekdayComponentRefiner, items);