//***** aic prototype controls by Piter Gavrinev 19.04.2024. v7.5 //need moment.js function div(className, id) { if (typeof id !== "undefined") { return $("
"); } else { return $("
"); } } /** * Переключатель * @param {string} Title */ var AIC_Switch = function (Title, isChecked) { var checked = false; if (typeof isChecked !== "undefined") { checked = (isChecked.toString()?.toLowerCase?.() === 'true'); }; this.IsDisable = false; var control_obj = this; this._delegateClickFunction = null; this._rootEl = div("filter filter-switch"); this._rootEl.attr("data-filter", "switch"); this._rootEl.uniqueId(); let input = $(""); input.uniqueId(); let label = $("