Your IP : 18.118.138.121


Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/ui/short-view/dist/
Upload File :
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/ui/short-view/dist/short.view.bundle.min.js

this.BX=this.BX||{};this.BX.UI=this.BX.UI||{};(function(e,t,s){"use strict";let i=e=>e,h;class r extends s.EventEmitter{constructor(e){super(e);this.setEventNamespace("BX.UI.ShortView");this.setShortView(e.isShortView);this.node=null}renderTo(e){if(!t.Type.isDomNode(e)){throw new Error("UI ShortView: HTMLElement not found")}t.Dom.append(this.render(),e)}render(){const e=this.getShortView()==="Y"?"checked":"";this.node=t.Tag.render(h||(h=i`
			<div class="tasks-scrum__switcher--container tasks-scrum__scope-switcher" title="${0}">
				<label class="tasks-scrum__switcher--label">
				<div class="tasks-scrum__switcher--label-text">
					${0}
				</div>
				<input type="checkbox" class="tasks-scrum__switcher--checkbox" ${0}>
				<span class="tasks-scrum__switcher-cursor"></span>
				</label>
			</div>
		`),t.Loc.getMessage("UI_SHORT_VIEW_LABEL"),t.Loc.getMessage("UI_SHORT_VIEW_LABEL"),e);t.Event.bind(this.node,"change",this.onChange.bind(this));return this.node}setShortView(e){this.shortView=e==="Y"?"Y":"N"}getShortView(){return this.shortView}onChange(){const e=this.node.querySelector('input[type="checkbox"]');this.setShortView(e.checked?"Y":"N");this.emit("change",this.getShortView())}}e.ShortView=r})(this.BX.UI.ShortView=this.BX.UI.ShortView||{},BX,BX.Event);
//# sourceMappingURL=short.view.bundle.map.js