(window.webpackJsonp = window.webpackJsonp || []).push([ ['floating-toolbars'], { '0ZwQ': function (t, e, o) { 'use strict'; var i = o('P5fv'), n = o.n(i), r = (o('bf9a'), o('Eyy1')), s = o('j1f4'), a = o('Vdly'), l = o('aIyQ'), d = o.n(l), c = o('hY0g'), p = o.n(c), u = o('5qpw'), h = o('mrSG'), g = (function (t) { function e() { return (null !== t && t.apply(this, arguments)) || this; } return ( Object(h.__extends)(e, t), (e.prototype._startLoading = function () { return o .e('hammerjs') .then(o.bind(null, 'be1f')) .then(function (t) { return t.HammerJS; }); }), e ); })(o('cZRT').a), v = o('qFKp'), _ = o('VVxS'), f = o('yB98'); o('PwLo'); o.d(e, 'a', function () { return x; }); var b = v.CheckMobile.iOS(); function y() { return Object(r.ensureNotNull)(window.containerElement); } function w() { if (!b) return window.innerWidth; var t = y(), e = getComputedStyle(t), o = (e.paddingLeft && parseFloat(e.paddingLeft)) || 0, i = (e.paddingRight && parseFloat(e.paddingRight)) || 0; return t.clientWidth - o - i; } function m() { if (!b) return window.innerHeight; var t = y(), e = getComputedStyle(t), o = (e.paddingTop && parseFloat(e.paddingTop)) || 0, i = (e.paddingBottom && parseFloat(e.paddingBottom)) || 0; return t.clientHeight - o - i; } var C = '
', x = (function () { function t(e) { (this._widget = document.createElement('div')), (this._isVertical = !1), (this._hiddingTimeoutId = null), (this._visibility = new p.a(!1)), (this._windowResizeListener = this._onWindowResize.bind(this)), (this._reorderedDelegate = new d.a()), (this._responsiveResizeFunction = null), t._toolbars.push(this), (this._options = e), (this._widget = n()(C).get(0)), (this._content = this._widget .getElementsByClassName('js-content') .item(0)), this._setZIndex(t._startZIndex + t._toolbars.length - 1), this._options.addClass && (this._widget.className += ' ' + this._options.addClass), this._options.layout && 'auto' !== this._options.layout && ((this._isVertical = 'vertical' === this._options.layout), this._updateLayoutType(), this._updateAxisOption()); } return ( (t.prototype.destroy = function () { this.hide(!0), t._toolbars.splice(t._toolbars.indexOf(this), 1), document.body.contains(this._widget) && document.body.removeChild(this._widget), (this._widget.innerHTML = ''), (this._responsiveResizeFunction = null); }), (t.prototype.setResponsiveResizeFunc = function (t) { this._responsiveResizeFunction = t; }), (t.prototype.isVisible = function () { return this._visibility.value(); }), (t.prototype.visibility = function () { return this._visibility.readonly(); }), (t.prototype.isVertical = function () { return this._isVertical; }), (t.prototype.show = function () { var t = this; this.isVisible() || (document.body.contains(this._widget) || (this._init(), document.body.appendChild(this._widget)), this._setHiddingTimeout(null), window.addEventListener('resize', this._windowResizeListener), this.raise(), this._visibility.setValue(!0), this._widget.classList.contains('i-hidden') ? (this._widget.classList.remove('i-hidden'), setTimeout(function () { t.isVisible() && t._widget.classList.remove('i-closed'); })) : this._widget.classList.remove('i-closed'), this._onWindowResize()); }), (t.prototype.hide = function (t) { var e = this; if ((void 0 === t && (t = !1), this.isVisible())) { var o = this._widget.classList.contains('i-closed'); if ( (this._widget.classList.add('i-closed'), this._visibility.setValue(!1), t || o) ) this._setHiddingTimeout(null), this._widget.classList.add('i-hidden'); else { var i = setTimeout(function () { e._setHiddingTimeout(null), e._widget.classList.add('i-hidden'); }, this.hideDuration()); this._setHiddingTimeout(i); } window.removeEventListener( 'resize', this._windowResizeListener, ); } }), (t.prototype.raise = function () { t._toolbars.length + t._startZIndex !== this._zIndex() && (t._toolbars.splice(t._toolbars.indexOf(this), 1), t._toolbars.push(this), t._updateAllZIndexes()); }), (t.prototype.hideDuration = function () { return 0.75 * s.dur; }), (t.prototype.addWidget = function (t, e) { void 0 === e && (e = {}); var o = this.widgetsCount(); if ( (void 0 === e.index && (e.index = o), e.index < 0 || e.index > o) ) throw new Error('Index must be in [0, ' + o + ']'); var i = document.createElement('div'); (i.className = 'tv-floating-toolbar__widget js-widget'), i.appendChild(t); var n = e.index === o ? null : this._content.childNodes.item(e.index); this._content.insertBefore(i, n), this._onWindowResize(); }), (t.prototype.removeWidget = function (t) { var e = this._findWrapperForWidget(t); e && (this._content.removeChild(e), this._onWindowResize()); }), (t.prototype.widgetsCount = function () { return this._content.childNodes.length; }), (t.prototype.showWidget = function (t) { var e = this._findWrapperForWidget(t); e && e.classList.remove('i-hidden'); }), (t.prototype.hideWidget = function (t) { var e = this._findWrapperForWidget(t); e && e.classList.add('i-hidden'); }), (t.prototype.removeWidgets = function () { for (; this._content.firstChild; ) this._content.removeChild(this._content.firstChild); this._onWindowResize(); }), (t.prototype.onWidgetsReordered = function () { return this._reorderedDelegate; }), (t.prototype.onContextMenu = function (t) { var e = this; Modernizr.mobiletouch ? new g().load().then(function (o) { var i = new o(e._widget); i.get('press').set({ time: 500 }), i.on('press', function (o) { e._preventWidgetTouchEndEvent(), t(o.srcEvent); }); }) : this._widget.addEventListener('contextmenu', t); }), (t.prototype._determineCurrentLayoutVertical = function (t) { var e = this._isVertical ? t.height : t.width; return w() < e; }), (t.prototype._getWidget = function () { return this._widget; }), (t.prototype._findWrapperForWidget = function (t) { for ( var e = this._content.getElementsByClassName('js-widget'), o = 0; o < e.length; ++o ) { var i = e.item(o); if (i.contains(t)) return i; } return null; }), (t.prototype._onVerticalChanged = function (t, e) {}), (t.prototype._setHiddingTimeout = function (t) { null !== this._hiddingTimeoutId && clearTimeout(this._hiddingTimeoutId), (this._hiddingTimeoutId = t); }), (t.prototype._preventWidgetTouchEndEvent = function () { var t = this, e = function (o) { o.preventDefault(), t._widget.removeEventListener('touchend', e); }; this._widget.addEventListener('touchend', e); }), (t.prototype._updateLayoutType = function () { this._widget.classList.toggle('i-vertical', this._isVertical); }), (t.prototype._updateAxisOption = function () { if (this._options.dragOnlyInsideToolbar) { var t = this._isVertical ? 'y' : 'x'; Object(u.lazyJqueryUI)(n()(this._content)).sortable( 'option', 'axis', t, ); } }), (t.prototype._onWindowResize = function () { if ('auto' === (this._options.layout || 'auto')) { var t = this._isVertical, e = this._getCorrectedWidgetRect(); (this._isVertical = this._determineCurrentLayoutVertical(e)), this._updateLayoutType(), t !== this._isVertical && (this._onVerticalChanged(this._isVertical, t), this._updateAxisOption()); } this._checkPosition(), this._resizeResponsive(); }), (t.prototype._resizeResponsive = function () { if (null !== this._responsiveResizeFunction) { var t = this._options.layout || 'auto'; 'auto' === t && (t = this._isVertical ? 'vertical' : 'horizontal'); var e = 'vertical' === t ? this._widget.clientHeight : this._widget.clientWidth, o = ('vertical' === t ? m() : w()) - e; this._responsiveResizeFunction(e, o, t); } }), (t.prototype._checkPosition = function () { var t = this._getCorrectedWidgetRect(), e = { left: t.left, top: t.top }; this._correctPosition(e), (t.left === e.left && t.top === e.top) || ((this._widget.style.left = e.left + 'px'), (this._widget.style.top = e.top + 'px')); }), (t.prototype._correctPosition = function (t) { var e = this._getCorrectedWidgetRect(); t.left + e.width > w() && (t.left = Math.max(0, w() - e.width)), t.top + e.height > m() && (t.top = Math.max(0, m() - e.height)), (t.left = Math.max(0, t.left)), (t.top = Math.max(0, t.top)); }), (t.prototype._setZIndex = function (t) { this._widget.style.zIndex = String(t); }), (t.prototype._zIndex = function () { return Number(this._widget.style.zIndex); }), (t.prototype._loadPosition = function () { var t; if ('device' === this._options.positionStorageType) { var e = _.TVLocalStorage.getItem( this._options.positionSettingsKey, ); t = null !== e ? JSON.parse(e) : this._options.defaultPosition; } else t = Object(a.getJSON)( this._options.positionSettingsKey, this._options.defaultPosition, ); (this._widget.style.left = Math.round(t.left) + 'px'), (this._widget.style.top = Math.round(t.top) + 'px'), this._onWindowResize(); }), (t.prototype._savePosition = function () { var t = this._widget.getBoundingClientRect(); if ('device' === this._options.positionStorageType) try { _.TVLocalStorage.setItem( this._options.positionSettingsKey, JSON.stringify({ left: t.left, top: t.top }), ); } catch (e) {} else Object(a.setJSON)(this._options.positionSettingsKey, { left: t.left, top: t.top, }); }), (t.prototype._init = function () { this._loadPosition(), Object(u.lazyJqueryUI)(n()(this._widget)).draggable({ containment: 'window', drag: this._onDragEvent.bind(this), handle: '.js-drag', stop: this._savePosition.bind(this), }), this._options.allowSortable && this._initSortable(), this._widget.addEventListener( Modernizr.mobiletouch ? 'touchstart' : 'mousedown', this.raise.bind(this), ); }), (t.prototype._onDragEvent = function (t, e) { this._correctPosition(e.position); }), (t.prototype._initSortable = function () { var t = this, e = -1; Object(u.lazyJqueryUI)(n()(this._content)).sortable({ start: function (t, o) { e = o.item.index(); }, stop: function (o, i) { var n = i.item.index(); e !== n && t._reorderedDelegate.fire(e, n); }, tolerance: 'pointer', distance: 5, containment: !!this._options.dragOnlyInsideToolbar && 'parent', scroll: !1, placeholder: 'sortable-placeholder', forcePlaceholderSize: !0, }), this._updateAxisOption(); }), (t.prototype._getCorrectedWidgetRect = function () { var t = this._widget.getBoundingClientRect(); if (this._widget.classList.contains('i-closed')) { var e = t.width * (1 / 0.925 - 1), o = t.height * (1 / 0.925 - 1); return { bottom: t.bottom + o / 2, height: t.height + o, left: t.left - e / 2, right: t.right + e / 2, top: t.top - o / 2, width: t.width + e, }; } return t; }), (t._updateAllZIndexes = function () { t._toolbars.forEach(function (e, o) { e._setZIndex(t._startZIndex + o); }); }), (t._startZIndex = 20), (t._toolbars = []), t ); })(); }, '2JFs': function (t, e) { t.exports = ''; }, '9On3': function (t, e) { t.exports = ''; }, ADFN: function (t, e, o) {}, BiGZ: function (t, e) { t.exports = ''; }, BsMi: function (t, e) { t.exports = ''; }, HKvk: function (t, e) { t.exports = ''; }, Kjbl: function (t, e) { t.exports = ''; }, NDCK: function (t, e) { t.exports = ''; }, Nz7V: function (t, e) { t.exports = ''; }, PwLo: function (t, e, o) {}, RRhU: function (t, e) { t.exports = ''; }, RsxI: function (t, e) { t.exports = ''; }, TXAa: function (t, e, o) {}, WRHa: function (t, e) { t.exports = ''; }, XqDt: function (t, e) { t.exports = ''; }, dhuF: function (t, e) { t.exports = ''; }, eHtW: function (t, e) { t.exports = ''; }, 'fUH/': function (t, e) { t.exports = ''; }, gPdB: function (t, e) { t.exports = ''; }, gmn6: function (t, e, o) { 'use strict'; o.r(e), function (t) { o.d(e, 'FavoriteDrawingToolbar', function () { return h; }); var i = o('mrSG'), n = (o('P5fv'), o('nbsC'), o('bf9a'), o('YFKU'), o('0ZwQ')), r = o('b2d7'), s = o('7KDR'), a = o('5VQP'), l = o('mMWL'), d = o('MP+M'), c = o('Vdly'), p = o('hY0g'), u = o.n(p), h = (o('TXAa'), (function (e) { function o(t) { var o = e.call(this, { allowSortable: !Modernizr.mobiletouch, dragOnlyInsideToolbar: !0, defaultPosition: t, positionSettingsKey: 'chart.favoriteDrawingsPosition', positionStorageType: 'device', }) || this; return ( (o._linetoolsWidgets = {}), (o._canBeShownValue = new u.a(!1)), o._attachHandlers(), o._loadVisibilityState(), o ); } return ( Object(i.__extends)(o, e), (o.prototype.show = function () { this._canBeShownValue.value() && (c.setValue( 'ChartFavoriteDrawingToolbarWidget.visible', !0, ), this.isVisible() || this._renderAllLinetools(), e.prototype.show.call(this)); }), (o.prototype.hide = function () { c.setValue('ChartFavoriteDrawingToolbarWidget.visible', !1), e.prototype.hide.call(this); }), (o.prototype.canBeShown = function () { return this._canBeShownValue.readonly(); }), (o.prototype._onFavoriteAdded = function (t) { this._canBeShownValue.setValue(!0), this.addWidget(this._createLinetoolWidget(t)), this.show(); }), (o.prototype._onFavoriteRemoved = function (t) { this.removeWidget(this._linetoolsWidgets[t]), delete this._linetoolsWidgets[t], 0 === r.a.favoritesCount() && (this._canBeShownValue.setValue(!1), this.hide()); }), (o.prototype._onFavoriteMoved = function () { this._renderAllLinetools(); }), (o.prototype._onSelectedLinetoolChanged = function (t) { var e = this; Object.keys(this._linetoolsWidgets).forEach(function (o) { e._linetoolsWidgets[o].classList.toggle( 'i-active', t === o, ); }); }), (o.prototype._createLinetoolWidget = function (e) { var o = $( t.render( ' ', { icon: d.a[e].icon, isActive: e === l.tool.value(), title: d.a[e].localizedName, }, ), )[0]; return ( o.addEventListener('click', function (t) { t.preventDefault(), l.tool.value() !== e && l.tool.setValue(e); }), (this._linetoolsWidgets[e] = o), o ); }), (o.prototype._renderAllLinetools = function () { var t = this; (this._linetoolsWidgets = {}), this.removeWidgets(), r.a .favorites() .filter(function (t) { return d.a[t]; }) .forEach(function (e) { t.addWidget(t._createLinetoolWidget(e)); }); }), (o.prototype._attachHandlers = function () { var t = this; r.a.favoriteAdded.subscribe(this, this._onFavoriteAdded), r.a.favoriteRemoved.subscribe( this, this._onFavoriteRemoved, ), r.a.favoriteMoved.subscribe(this, this._onFavoriteMoved), r.a.favoritesSynced.subscribe(null, function () { t._loadVisibilityState(), t._renderAllLinetools(); }), this.onWidgetsReordered().subscribe( this, function (e, o) { if ( (r.a.favoriteMoved.unsubscribe( t, t._onFavoriteMoved, ), !r.a.moveFavorite(r.a.favorite(e), o)) ) throw new Error('Something went wrong'); r.a.favoriteMoved.subscribe(t, t._onFavoriteMoved); }, ), this.onContextMenu(function (e) { e.preventDefault(); var o = new s.Action({ label: window.t( 'Hide Favorite Drawing Tools Toolbar', ), onExecute: function () { t.hide(); }, }); a.ContextMenuManager.createMenu([o]).then(function (t) { t.show(e); }); }), l.tool.subscribe( this._onSelectedLinetoolChanged.bind(this), ); }), (o.prototype._loadVisibilityState = function () { var t = r.a.favoritesCount() > 0; this._canBeShownValue.setValue(t), c.getBool( 'ChartFavoriteDrawingToolbarWidget.visible', !0, ) && t ? this.show() : this.hide(); }), o ); })(n.a)); }.call(this, o('nbsC')); }, 'm/4m': function (t, e, o) {}, my99: function (t, e, o) { 'use strict'; o.r(e), o.d(e, 'GroupButtonFloatingToolbar', function () { return l; }); var i = o('mrSG'), n = o('Eyy1'), r = o('0ZwQ'), s = o('aIyQ'), a = o.n(s), l = (o('m/4m'), o('ADFN'), (function (t) { function e(o) { var i = t.call(this, e._prepareOptions(o)) || this; return ( (i._onWidgetStateChangedDelegate = new a.a()), (i._statedWidgets = []), (i._currentPopup = null), (i._onWindowClickedListener = i._onWindowClicked.bind(i)), i ); } return ( Object(i.__extends)(e, t), (e.prototype.show = function () { t.prototype.show.call(this), document.addEventListener( 'mousedown', this._onWindowClickedListener, ); }), (e.prototype.hide = function () { t.prototype.hide.call(this), document.removeEventListener( 'mousedown', this._onWindowClickedListener, ); }), (e.prototype.destroy = function () { this._closePopup(), t.prototype.destroy.call(this); }), (e.prototype.addGroupedWidget = function (t, o) { void 0 === o && (o = {}), Object(n.assert)( t.states.length > 0 && -1 !== e._getStateIndexById(t, t.currentStateId), 'Argument is invalid (count: ' + t.states.length + ', state: ' + t.currentStateId + ')', ); var i = document.createElement('div'); (i.className = 'tv-grouped-floating-toolbar__widget-wrapper apply-common-tooltip'), t.widgetAddClass && i.classList.add(t.widgetAddClass), i.setAttribute('title', t.tooltip); var r = { isEnabled: !0, statedWidget: t, toolbarWidget: i }, s = this._onWidgetClicked.bind(this, r); (r.clickListener = s), i.addEventListener('click', s), this._updateWidgetPreview(r), this.addWidget(i, o), this._statedWidgets.push(r); }), (e.prototype.findGroupedWidget = function (t) { for (var e = this._statedWidgets.length, o = 0; o < e; ++o) { if (this._statedWidgets[o].statedWidget.id === t) return o; } return -1; }), (e.prototype.removeGroupedWidget = function (t) { for (var e = this._statedWidgets.length, o = 0; o < e; ++o) { var i = this._statedWidgets[o]; if (i.statedWidget.id === t) return ( this._isPopupCreatedForWidget(t) && this._closePopup(), void 0 !== i.clickListener && i.toolbarWidget.removeEventListener( 'click', i.clickListener, ), this.removeWidget(i.toolbarWidget), this._statedWidgets.splice(o, 1), void this._updatePopupPosition() ); } Object(n.assert)(!1, 'Unknown groupId(' + t + ')'); }), (e.prototype.updateGroupedWidget = function (t, e) { this._closePopup(); var o = this._ensuredGetWidgetDataForId(t); (o.statedWidget.currentStateId = e.currentStateId), (o.statedWidget.states = e.states), this._updateWidgetPreview(o); }), (e.prototype.setGroupedWidgetEnabled = function (t, e) { var o = this._ensuredGetWidgetDataForId(t); (o.isEnabled = e), o.toolbarWidget.classList.toggle('i-disabled', !e); }), (e.prototype.setGroupedWidgetState = function (t, o) { var i = this._ensuredGetWidgetDataForId(t); Object(n.assert)( -1 !== e._getStateIndexById(i.statedWidget, o), 'Unknown stateId (' + o + ')', ), (i.statedWidget.currentStateId = o), this._updateSubWidgetsState(i.statedWidget), this._updateWidgetPreview(i); }), (e.prototype.onWidgetStateChanged = function () { return this._onWidgetStateChangedDelegate; }), (e.prototype._onVerticalChanged = function (t, e) { this._updatePopupPosition(); }), (e.prototype._ensuredGetWidgetDataForId = function (t) { for (var e = 0, o = this._statedWidgets; e < o.length; e++) { var i = o[e]; if (i.statedWidget.id === t) return i; } throw new Error('Unknown groupId(' + t + ')'); }), (e.prototype._onWidgetClicked = function (t, e) { var o = this._currentPopup && this._isPopupCreatedForWidget(t.statedWidget.id); this._closePopup(), !o && t.isEnabled && this._createPopup(t); }), (e.prototype._createPopup = function (t) { var e = this, o = { createdFor: t.toolbarWidget, element: document.createElement('div'), stateWidgetId: t.statedWidget.id, widgets: [], }; o.element.className += 'tv-grouped-floating-toolbar__popup js-popup'; var i = t.statedWidget.states.length; t.statedWidget.states.forEach(function (n, r) { var s = e._createSubWidget(t, n), a = e._onSubWidgetClicked.bind(e, t, n.id); s.addEventListener('click', a), o.widgets.push({ clickListener: a, stateWidget: n, widget: s, }), s.classList.add( 'tv-grouped-floating-toolbar__sub-widget--slide-right-' + r, ), s.classList.add( 'tv-grouped-floating-toolbar__sub-widget--slide-left-' + (i - r + 1), ), n.readonly || o.element.appendChild(s); }), (this._currentPopup = o), this._updateSubWidgetsState(t.statedWidget), t.toolbarWidget.classList.add('i-dropped'), this._getWidget().appendChild(this._currentPopup.element), Promise.resolve().then(function () { e._currentPopup && e._currentPopup.element.classList.add('i-opened'); }), this._updatePopupPosition(); }), (e.prototype._closePopup = function () { var t = this; if ( (this._statedWidgets.forEach(function (t) { t.toolbarWidget.classList.remove('i-dropped'); }), this._currentPopup) ) { var e = this._currentPopup.widgets, o = this._currentPopup.element; (this._currentPopup = null), e.forEach(function (t) { t.widget.removeEventListener('click', t.clickListener); }), o.classList.remove('i-opened'), o.addEventListener('transitionend', function (e) { e.target === o && t._getWidget().removeChild(o); }); } }), (e.prototype._updateWidgetPreview = function (t) { var o = e._getStateIndexById( t.statedWidget, t.statedWidget.currentStateId, ); Object(n.assert)( -1 !== o, 'Unknown state id: ' + t.statedWidget.currentStateId, ); var i = t.statedWidget.states[o].widget.cloneNode(!0); t.toolbarWidget.firstChild ? t.toolbarWidget.replaceChild(i, t.toolbarWidget.firstChild) : (t.toolbarWidget.appendChild(i), t.toolbarWidget.appendChild(e._createCaret())); }), (e.prototype._updateSubWidgetsState = function (t) { this._currentPopup && this._isPopupCreatedForWidget(t.id) && this._currentPopup.widgets.forEach(function (o) { o.widget.classList.toggle( e._activeSubWidgetClass, o.stateWidget.id === t.currentStateId, ); }); }), (e.prototype._updatePopupPosition = function () { if (this._currentPopup) { var t = this._currentPopup.createdFor, e = this._getWidget().getBoundingClientRect(), o = this._findWrapperForWidget(t); if (!o || !this._currentPopup) throw new Error( "Toolbar has no wrapper for preview's widget or there is no popup", ); var i = o.getBoundingClientRect(), n = this._currentPopup.element.getBoundingClientRect(), r = this._currentPopup.element; if (this.isVertical()) r.classList.remove( 'tv-grouped-floating-toolbar__popup--at-top', ), (r.style.top = i.top - e.top + 1 + 'px'), (r.style.left = ''), e.left > window.innerWidth - e.right ? r.classList.add( 'tv-grouped-floating-toolbar__popup--at-left', ) : r.classList.remove( 'tv-grouped-floating-toolbar__popup--at-left', ); else { r.classList.remove( 'tv-grouped-floating-toolbar__popup--at-left', ); var s = 0; i.left + n.width > window.innerWidth ? e.left + n.width > window.innerWidth && (s = e.width - n.width) : (s = i.left - e.left + 1), (r.style.left = s + 'px'), e.bottom + n.height > window.innerHeight ? r.classList.add( 'tv-grouped-floating-toolbar__popup--at-top', ) : (r.classList.remove( 'tv-grouped-floating-toolbar__popup--at-top', ), (r.style.top = '')); } } }), (e.prototype._isPopupCreatedForWidget = function (t) { return Boolean( this._currentPopup && this._currentPopup.stateWidgetId === t, ); }), (e.prototype._createSubWidget = function (t, e) { var o = document.createElement('div'); return ( (o.className += 'tv-grouped-floating-toolbar__sub-widget'), t.statedWidget.stateWidgetAddClass && o.classList.add(t.statedWidget.stateWidgetAddClass), o.appendChild(e.widget), o ); }), (e.prototype._onSubWidgetClicked = function (t, e) { this._closePopup(), t.statedWidget.currentStateId !== e && (this.setGroupedWidgetState(t.statedWidget.id, e), this._onWidgetStateChangedDelegate.fire( t.statedWidget.id, e, )); }), (e.prototype._onWindowClicked = function (t) { if ( this.isVisible() && this._currentPopup && !e._isEventInElement(t, this._currentPopup.element) ) { for (var o = 0; o < this._statedWidgets.length; ++o) if ( e._isEventInElement( t, this._statedWidgets[o].toolbarWidget, ) ) return; this._closePopup(); } }), (e._getStateIndexById = function (t, e) { for (var o = 0; o < t.states.length; ++o) if (t.states[o].id === e) return o; return -1; }), (e._createCaret = function () { var t = document.createElement('div'); return ( (t.className = 'tv-caret tv-caret--small tv-caret--colored tv-grouped-floating-toolbar__caret'), t ); }), (e._prepareOptions = function (t) { return ( t.addClass ? (t.addClass += ' tv-grouped-floating-toolbar') : (t.addClass = ' tv-grouped-floating-toolbar'), t ); }), (e._isEventInElement = function (t, e) { return t.target === e || e.contains(t.target); }), (e._activeSubWidgetClass = 'tv-grouped-floating-toolbar__sub-widget--current'), e ); })(r.a)); }, n2Ch: function (t, e) { t.exports = ''; }, nApS: function (t, e) { t.exports = ''; }, nSyy: function (t, e, o) {}, noRL: function (t, e) { t.exports = ''; }, tPkB: function (t, e, o) { 'use strict'; (function (e, i) { var n = o('ogJP').notNull, r = o('DxCR'), s = r.PropertyPage, a = r.ColorBinding, l = o('mMWL'), d = o('bR4N').bindPopupMenu, c = o('Ocx9').DefaultProperty, p = o('my99').GroupButtonFloatingToolbar, u = o('a7Ha').LineEnd, h = o('VNzU').isMultipleLayout, g = o('yMne'), v = o('CW80'), _ = v.createLineToolProperties, f = v.isLineTool, b = o('PC8g').trackEvent, y = o('ytGH').MultipleLineWidthsProperty; function w(t) { (this._chartWidgetCollection = t), (this._bindings = []), (this._hasAlertWathcedValue = null), (this._$templatesButton = null), (this._currentProperties = null), (this._toolbarWidgets = []), (this._clearPropertiesOnHideTimeoutId = null), this._init(), this.attachHandlers(); } function m(t, e) { t.push({ id: e, widget: $( ' ', )[0], }); } function C(t, e) { t.push({ id: e.value, widget: $(e.iconSvgCode)[0], readonly: e.readonly, }); } function x(t) { return (function (t, e) { return $('