var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
define(["require", "exports", "jquery", "bootstrap-datepicker", "bootstrap-datepicker/dist/locales/bootstrap-datepicker.uk.min"], function (require, exports, jquery_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.initDatePicker = void 0;
    jquery_1 = __importDefault(jquery_1);
    //import '@mdoffice/md-ui/css/limitless.datepicker.css';
    function initDatePicker(language = process.env.LANG || 'uk') {
        (0, jquery_1.default)('.date-picker')
            .datepicker({
            format: 'dd.mm.yyyy',
            weekStart: 1,
            autoclose: true,
            language: language,
            orientation: 'auto'
        });
    }
    exports.initDatePicker = initDatePicker;
    document.addEventListener('DOMContentLoaded', () => {
        initDatePicker();
    });
});
