"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.n = function(module) {
        var getter = module && module.__esModule ? function() {
            return module['default'];
        } : function() {
            return module;
        };
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
(()=>{
    __webpack_require__.d = function(exports1, definition) {
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = function(obj, prop) {
        return Object.prototype.hasOwnProperty.call(obj, prop);
    };
})();
var __webpack_exports__ = {};
const external_dayjs_namespaceObject = require("dayjs");
var external_dayjs_default = /*#__PURE__*/ __webpack_require__.n(external_dayjs_namespaceObject);
const external_vitest_namespaceObject = require("vitest");
const external_util_js_namespaceObject = require("../util.js");
describe('mapRangePicker', ()=>{
    it('should work with showTime=false, gmt=true, utc=true', ()=>{
        const props = {
            showTime: false,
            gmt: true,
            utc: true,
            onChange: external_vitest_namespaceObject.vi.fn()
        };
        const { onChange } = (0, external_util_js_namespaceObject.mapRangePicker)()(props);
        const value = [
            external_dayjs_default().utc('2023-01-01T00:00:00.000Z'),
            external_dayjs_default().utc('2023-01-02T00:00:00.000Z')
        ];
        onChange(value);
        expect(props.onChange).toHaveBeenCalledWith([
            '2023-01-01T00:00:00.000Z',
            '2023-01-02T23:59:59.999Z'
        ]);
    });
    it('should work with showTime=true, gmt=true, utc=true', ()=>{
        const props = {
            showTime: true,
            gmt: true,
            utc: true,
            onChange: external_vitest_namespaceObject.vi.fn()
        };
        const { onChange } = (0, external_util_js_namespaceObject.mapRangePicker)()(props);
        const value = [
            external_dayjs_default().utc('2023-01-01T00:00:00.000Z'),
            external_dayjs_default().utc('2023-01-02T00:00:00.000Z')
        ];
        onChange(value);
        expect(props.onChange).toHaveBeenCalledWith([
            '2023-01-01T00:00:00.000Z',
            '2023-01-02T00:00:00.000Z'
        ]);
    });
    it('should work with showTime=false, gmt=true, utc=false', ()=>{
        const props = {
            showTime: false,
            gmt: true,
            utc: false,
            onChange: external_vitest_namespaceObject.vi.fn()
        };
        const { onChange } = (0, external_util_js_namespaceObject.mapRangePicker)()(props);
        const value = [
            external_dayjs_default().utc('2023-01-01T00:00:00.000Z'),
            external_dayjs_default().utc('2023-01-02T00:00:00.000Z')
        ];
        onChange(value);
        expect(props.onChange).toHaveBeenCalledWith([
            '2023-01-01',
            '2023-01-02'
        ]);
    });
});
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
