// Module ID: 10602 // Function ID: 10603 // Dependencies: [41, 42, 93, 95, 98, 10579] // Module 10602 import Filter from "Filter" /* 10579 */; import _classCallCheck_mod from "_classCallCheck" /* 41 */; import _createClass from "_createClass" /* 42 */; import _possibleConstructorReturn from "_possibleConstructorReturn" /* 93 */; import _getPrototypeOf 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) { } } let _classCallCheck = _classCallCheck_mod; class MergeWeekdayComponentRefiner { constructor() { self = this; tmp = closure_0(this, MergeWeekdayComponentRefiner); tmp2 = c2; obj = c2(MergeWeekdayComponentRefiner); tmp3 = closure_1; if (closure_3()) { 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); } } _classCallCheck = MergeWeekdayComponentRefiner; _inherits(MergeWeekdayComponentRefiner, Filter.MergingRefiner); const entry = { 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; } }; const items = [ entry, { 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);