@mindfusion/diagramming-controls 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,15 +104,22 @@ declare module "Diagramming.Controls/TabbedDiagramView" {
104
104
  * @param {DiagramDocument} [document] The DiagramDocument instance this control is associated with.
105
105
  * @returns {TabbedDiagramView} The newly created TabbedDiagramView object.
106
106
  */
107
- static create(element: HTMLCanvasElement, document?: any): TabbedDiagramView;
107
+ static create(element: HTMLCanvasElement, document?: DiagramDocument): TabbedDiagramView;
108
108
  /**
109
109
  * Initializes a new instance of the TabbedDiagramView class.
110
110
  * @constructor
111
111
  * @param {HTMLCanvasElement} element The Canvas DOM Element this TabbedDiagramView is associated with.
112
112
  * @param {DiagramDocument} [document] The DiagramDocument instance this control is associated with.
113
113
  */
114
- constructor(element: HTMLCanvasElement, document?: any);
115
- _document: any;
114
+ constructor(element: HTMLCanvasElement, document?: DiagramDocument);
115
+ documentChangedDelegate: (sender: any, args: any) => void;
116
+ set document(arg: DiagramDocument);
117
+ /**
118
+ * Gets or sets the diagram document displayed by this view.
119
+ * @type {DiagramDocument}
120
+ * @summary The DiagramDocument instance displayed by this view.
121
+ */
122
+ get document(): DiagramDocument;
116
123
  _lastIndex: number;
117
124
  items: ObservableCollection<any>;
118
125
  _tabAlignment: number;
@@ -142,45 +149,13 @@ declare module "Diagramming.Controls/TabbedDiagramView" {
142
149
  get showNavigationButtons(): boolean;
143
150
  _tabMouseDownHandler: (sender: any, args: any) => void;
144
151
  _tabDropHandler: (sender: any, args: any) => void;
145
- set selectedPage(arg: any);
152
+ set selectedPage(arg: DiagramPage);
146
153
  /**
147
154
  * Gets or sets the currently selected tab page.
148
- * @type {TabPage}
149
- * @summary The selected tab page.
150
- */
151
- get selectedPage(): any;
152
- set theme(arg: Theme);
153
- /**
154
- * Gets or sets the theme of the control.
155
- * @type {Theme}
156
- * @summary An instance of the Theme class.
157
- */
158
- get theme(): Theme;
159
- resetTabAlignment(): void;
160
- resetTabs(): void;
161
- onTabMouseDown(sender: any, args: any): void;
162
- set selectedIndex(arg: number);
163
- /**
164
- * Gets or sets the index of the currently selected tab page.
165
- * @type {Number}
166
- * @summary The index of the selected tab page.
167
- */
168
- get selectedIndex(): number;
169
- onTabDrop(sender: any, args: any): void;
170
- onItemsChanging(sender: any, args: any): void;
171
- onItemsChanged(sender: any, args: any): void;
172
- _selectedPage: any;
173
- /**
174
- * @private
175
- */
176
- private getItemByHeader;
177
- set document(arg: any);
178
- /**
179
- * Gets or sets the diagram document displayed by this view.
180
- * @type {DiagramDocument}
181
- * @summary The DiagramDocument instance displayed by this view.
155
+ * @type {DiagramPage}
156
+ * @summary The selected diagram page.
182
157
  */
183
- get document(): any;
158
+ get selectedPage(): DiagramPage;
184
159
  set tabAlignment(arg: number);
185
160
  /**
186
161
  * Gets or sets the tab alignment.
@@ -203,6 +178,32 @@ declare module "Diagramming.Controls/TabbedDiagramView" {
203
178
  * @summary true if tabs can be rearranged interactively, or false otherwise. The default value is false.
204
179
  */
205
180
  get allowReorder(): boolean;
181
+ set theme(arg: Theme);
182
+ /**
183
+ * Gets or sets the theme of the control.
184
+ * @type {Theme}
185
+ * @summary An instance of the Theme class.
186
+ */
187
+ get theme(): Theme;
188
+ resetTabAlignment(): void;
189
+ resetTabs(): void;
190
+ onTabMouseDown(sender: any, args: any): void;
191
+ set selectedIndex(arg: number);
192
+ /**
193
+ * Gets or sets the index of the currently selected diagram page.
194
+ * @type {Number}
195
+ * @summary The index of the selected diagram page.
196
+ */
197
+ get selectedIndex(): number;
198
+ onTabDrop(sender: any, args: any): void;
199
+ onItemsChanging(sender: any, args: any): void;
200
+ onItemsChanged(sender: any, args: any): void;
201
+ _selectedPage: DiagramPage;
202
+ /**
203
+ * @private
204
+ */
205
+ private getItemByHeader;
206
+ _document: any;
206
207
  _theme: any;
207
208
  /**
208
209
  * Sets the current theme of the control and its pages.
@@ -210,11 +211,14 @@ declare module "Diagramming.Controls/TabbedDiagramView" {
210
211
  * @param {Boolean} [setToPages] true to set pages' themes, otherwise false.
211
212
  */
212
213
  setTheme(theme: Theme, setToPages?: boolean): void;
214
+ onDocumentChanged(sender: any, args: any): void;
213
215
  onPageValidateAction(event: any, page: any, oldPage: any): boolean;
214
216
  }
215
217
  import { DiagramView } from "@mindfusion/diagramming";
218
+ import { DiagramDocument } from "@mindfusion/diagramming";
216
219
  import { ObservableCollection } from "@mindfusion/common-collections";
217
220
  import { TabStrip } from "@mindfusion/common-ui";
221
+ import { DiagramPage } from "@mindfusion/diagramming";
218
222
  import { Theme } from "@mindfusion/diagramming";
219
223
  }
220
224
  declare module "@mindfusion/diagramming-controls" {
@@ -1 +1 @@
1
- var _0x3791=['__esModule','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','length','enumerable','configurable','value','key','prototype','function','create','setPrototypeOf','__proto__','getPrototypeOf','construct','sham','valueOf','call','this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called','constructor','apply','hasOwnProperty','get','getOwnPropertyDescriptor','pageChanging','pageChanged','pageAdding','pageAdded','pageRemoving','pageRemoved','sender','page','_page','oldPage','_oldPage','DiagramDocument','pages','push','_lastIndex','items','ObservableCollection','_document','collectionChanging','addEventListener','onItemsChanging','collectionChanged','onItemsChanged','_tabAlignment','None','TabStrip','tabStrip','parent','req','visible','autoSizeTabs','showAddButton','tabsSize','showTabCloseButtons','showNavigationButtons','initialize','_tabMouseDownHandler','onTabMouseDown','itemMouseDown','closeButtonClick','_tabDropHandler','onTabDrop','tabAlignment','Top','element','parentNode','insertBefore','appendChild','draw','selectedPage','last','dispose','forEach','attachDiagramEvents','document','Events','dataLoaded','dataLoadedDelegate','detachDiagramEvents','removeEventListener','queryView','queryViewDelegate','setRequestHeader','Content-Type','text/xml','toXmlDocument','XmlPersistContext','diagram','selectSingleNode','View','saveView','serializeToString','theme','writeString','Theme','loadFromXml','onload','responseXML','fromXmlDocument','loadView','bind','onerror','log','open','GET','readString','fromId','resetVirtualScrollGrid','scrollerH','Control','clearHandlers','DomUtils','getBounds','height','_mf_originalHeight','parentSize','display','grid','style','gridTemplateColumns','scrollbarSize','gridTemplateRows','auto\x20','overflow','gridRow','width','min','getScrollbarSize','bounds','scale','_element','inline-block','gridColumn','1\x20/\x20-1','createElement','div','mf_diagram_scrollerH','gridColumnStart','overflowX','overflowY','backgroundColor','#eee','className','mf_diagram_scrollerV','gridRowStart','hidden','auto','scrollerV','addHandlers','scrollDelegate','resizeTimeoutId','onVirtualResize','resetTabAlignment','px\x20','querySelector','updateCanvasSize','_zoomFactor','getPixel','measureUnit','firstChild','canvas','px\x20auto\x20','invalidRect','repaint','raiseEvent','sizeChanged','EventArgs','Empty','resetTabs','clear','ToolStripItem','ToolStripItemType','Label','title','imageSrc','iconUrl','header','item','dataMfc','mfc-add','toString','mfc-first','first','mfc-prev','selectedIndex','mfc-next','rawEventArgs','mfc-tabbutton-close','remove','getGroupItems','indexOfItem','getItemByHeader','_items','splice','Add','m_newItems','onPageValidateAction','cancel','m_oldItems','action','NotifyCollectionChangedAction','resetButtons','_selectedPage','setDiagram','selectItem','where','Unit','UnitType','Pixel','showCloseButtons','scrollMode','TabsScrollMode','NavButtons','allowReorder','allowDrag','_theme','setTheme','onDataLoaded','count','PageEventArgs','TabAlignment'];var _0x4dbc=function(_0x10f6b5,_0x3a5b2d){_0x10f6b5=_0x10f6b5-0x0;var _0x4ca5e5=_0x3791[_0x10f6b5];return _0x4ca5e5;};'use strict';Object['defineProperty'](exports,_0x4dbc('0x0'),{'value':!![]});var controls=require('@mindfusion/controls');var diagramming=require('@mindfusion/diagramming');var common=require('@mindfusion/common');var commonUi=require('@mindfusion/common-ui');var commonCollections=require('@mindfusion/common-collections');var drawing=require('@mindfusion/drawing');var TabAlignment={'None':0x0,'Top':0x1,'Bottom':0x3};function _classCallCheck(_0x48600c,_0x81fc23){if(!(_0x48600c instanceof _0x81fc23)){throw new TypeError(_0x4dbc('0x1'));}}function _defineProperties(_0x39b6c5,_0x251aca){for(var _0x2f9af6=0x0;_0x2f9af6<_0x251aca[_0x4dbc('0x2')];_0x2f9af6++){var _0x5603ea=_0x251aca[_0x2f9af6];_0x5603ea[_0x4dbc('0x3')]=_0x5603ea[_0x4dbc('0x3')]||![];_0x5603ea[_0x4dbc('0x4')]=!![];if(_0x4dbc('0x5')in _0x5603ea)_0x5603ea['writable']=!![];Object['defineProperty'](_0x39b6c5,_0x5603ea[_0x4dbc('0x6')],_0x5603ea);}}function _createClass(_0x492273,_0x368adb,_0xfb46f1){if(_0x368adb)_defineProperties(_0x492273[_0x4dbc('0x7')],_0x368adb);if(_0xfb46f1)_defineProperties(_0x492273,_0xfb46f1);return _0x492273;}function _inherits(_0x58e8d8,_0xf38ef3){if(typeof _0xf38ef3!==_0x4dbc('0x8')&&_0xf38ef3!==null){throw new TypeError('Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function');}_0x58e8d8[_0x4dbc('0x7')]=Object[_0x4dbc('0x9')](_0xf38ef3&&_0xf38ef3['prototype'],{'constructor':{'value':_0x58e8d8,'writable':!![],'configurable':!![]}});if(_0xf38ef3)_setPrototypeOf(_0x58e8d8,_0xf38ef3);}function _getPrototypeOf(_0x59615f){_getPrototypeOf=Object[_0x4dbc('0xa')]?Object['getPrototypeOf']:function _getPrototypeOf(_0x59615f){return _0x59615f[_0x4dbc('0xb')]||Object[_0x4dbc('0xc')](_0x59615f);};return _getPrototypeOf(_0x59615f);}function _setPrototypeOf(_0x2f9baf,_0x4c83ce){_setPrototypeOf=Object[_0x4dbc('0xa')]||function _setPrototypeOf(_0x2f9baf,_0x4c83ce){_0x2f9baf['__proto__']=_0x4c83ce;return _0x2f9baf;};return _setPrototypeOf(_0x2f9baf,_0x4c83ce);}function _isNativeReflectConstruct(){if(typeof Reflect==='undefined'||!Reflect['construct'])return![];if(Reflect[_0x4dbc('0xd')][_0x4dbc('0xe')])return![];if(typeof Proxy===_0x4dbc('0x8'))return!![];try{Boolean[_0x4dbc('0x7')][_0x4dbc('0xf')][_0x4dbc('0x10')](Reflect[_0x4dbc('0xd')](Boolean,[],function(){}));return!![];}catch(_0x40d830){return![];}}function _assertThisInitialized(_0x3bc1c3){if(_0x3bc1c3===void 0x0){throw new ReferenceError(_0x4dbc('0x11'));}return _0x3bc1c3;}function _possibleConstructorReturn(_0x38486d,_0x4fc751){if(_0x4fc751&&(typeof _0x4fc751==='object'||typeof _0x4fc751===_0x4dbc('0x8'))){return _0x4fc751;}return _assertThisInitialized(_0x38486d);}function _createSuper(_0x4fcc87){var _0x4b3052=_isNativeReflectConstruct();return function _createSuperInternal(){var _0x120edd=_getPrototypeOf(_0x4fcc87),_0x39c358;if(_0x4b3052){var _0x5661cd=_getPrototypeOf(this)[_0x4dbc('0x12')];_0x39c358=Reflect[_0x4dbc('0xd')](_0x120edd,arguments,_0x5661cd);}else{_0x39c358=_0x120edd[_0x4dbc('0x13')](this,arguments);}return _possibleConstructorReturn(this,_0x39c358);};}function _superPropBase(_0x13d3e9,_0x2992bd){while(!Object[_0x4dbc('0x7')][_0x4dbc('0x14')][_0x4dbc('0x10')](_0x13d3e9,_0x2992bd)){_0x13d3e9=_getPrototypeOf(_0x13d3e9);if(_0x13d3e9===null)break;}return _0x13d3e9;}function _get(_0x156353,_0x4aa17e,_0x40c80d){if(typeof Reflect!=='undefined'&&Reflect['get']){_get=Reflect[_0x4dbc('0x15')];}else{_get=function _get(_0x156353,_0x4aa17e,_0x40c80d){var _0x2e25d9=_superPropBase(_0x156353,_0x4aa17e);if(!_0x2e25d9)return;var _0x5a84fe=Object[_0x4dbc('0x16')](_0x2e25d9,_0x4aa17e);if(_0x5a84fe[_0x4dbc('0x15')]){return _0x5a84fe[_0x4dbc('0x15')][_0x4dbc('0x10')](_0x40c80d);}return _0x5a84fe[_0x4dbc('0x5')];};}return _get(_0x156353,_0x4aa17e,_0x40c80d||_0x156353);}var Events=function(){function _0x590aba(){_classCallCheck(this,_0x590aba);}_createClass(_0x590aba,null,[{'key':'pageChanging','get':function get(){return _0x4dbc('0x17');}},{'key':_0x4dbc('0x18'),'get':function get(){return _0x4dbc('0x18');}},{'key':_0x4dbc('0x19'),'get':function get(){return _0x4dbc('0x19');}},{'key':'pageAdded','get':function get(){return _0x4dbc('0x1a');}},{'key':_0x4dbc('0x1b'),'get':function get(){return _0x4dbc('0x1b');}},{'key':_0x4dbc('0x1c'),'get':function get(){return _0x4dbc('0x1c');}}]);return _0x590aba;}();var PageEventArgs=function(_0x5c9a96){_inherits(_0x5cb5cc,_0x5c9a96);var _0x1519d0=_createSuper(_0x5cb5cc);function _0x5cb5cc(_0x4737f9){var _0x3c0882;_classCallCheck(this,_0x5cb5cc);_0x3c0882=_0x1519d0[_0x4dbc('0x10')](this);if(_0x4737f9['sender'])_0x3c0882['sender']=_0x4737f9[_0x4dbc('0x1d')];if(_0x4737f9[_0x4dbc('0x1e')])_0x3c0882[_0x4dbc('0x1f')]=_0x4737f9[_0x4dbc('0x1e')];if(_0x4737f9[_0x4dbc('0x20')])_0x3c0882[_0x4dbc('0x21')]=_0x4737f9[_0x4dbc('0x20')];return _0x3c0882;}_createClass(_0x5cb5cc,[{'key':_0x4dbc('0x1e'),'get':function get(){return this[_0x4dbc('0x1f')];}},{'key':_0x4dbc('0x20'),'get':function get(){return this[_0x4dbc('0x21')];}}]);return _0x5cb5cc;}(controls['CancelEventArgs']);var TabbedDiagramView=function(_0x81a63){_inherits(_0x60aec8,_0x81a63);var _0x365961=_createSuper(_0x60aec8);function _0x60aec8(_0x2218e9,_0x5ba7db){var _0x2d847f;_classCallCheck(this,_0x60aec8);var _0x80b33d=_0x5ba7db||new diagramming[(_0x4dbc('0x22'))]();if(!_0x80b33d[_0x4dbc('0x23')][_0x4dbc('0x2')]){var _0x4dd1db=new diagramming['DiagramPage']();_0x4dd1db['title']='diagram1';_0x80b33d['pages'][_0x4dbc('0x24')](_0x4dd1db);}_0x2d847f=_0x365961['call'](this,_0x2218e9,_0x80b33d[_0x4dbc('0x23')][0x0]);_0x2d847f['_document']=_0x80b33d;_0x2d847f[_0x4dbc('0x25')]=0x1;_0x2d847f[_0x4dbc('0x26')]=new commonCollections[(_0x4dbc('0x27'))](_0x2d847f[_0x4dbc('0x28')][_0x4dbc('0x23')]);_0x2d847f[_0x4dbc('0x26')][_0x4dbc('0x29')][_0x4dbc('0x2a')](function(_0x25d4da,_0x5ea948){_0x2d847f[_0x4dbc('0x2b')](_0x25d4da,_0x5ea948);});_0x2d847f[_0x4dbc('0x26')][_0x4dbc('0x2c')][_0x4dbc('0x2a')](function(_0x456724,_0x3520fa){_0x2d847f[_0x4dbc('0x2d')](_0x456724,_0x3520fa);});_0x2d847f[_0x4dbc('0x2e')]=TabAlignment[_0x4dbc('0x2f')];_0x2d847f['tabStrip']=new commonUi[(_0x4dbc('0x30'))]();_0x2d847f[_0x4dbc('0x31')][_0x4dbc('0x32')]=_assertThisInitialized(_0x2d847f);_0x2d847f['tabStrip'][_0x4dbc('0x33')]=function(){return!![];};_0x2d847f[_0x4dbc('0x31')][_0x4dbc('0x34')]=![];_0x2d847f[_0x4dbc('0x31')][_0x4dbc('0x35')]=![];_0x2d847f[_0x4dbc('0x31')][_0x4dbc('0x36')]=![];_0x2d847f[_0x4dbc('0x37')]=0x14;_0x2d847f[_0x4dbc('0x38')]=![];_0x2d847f[_0x4dbc('0x39')]=![];return _0x2d847f;}_createClass(_0x60aec8,[{'key':_0x4dbc('0x3a'),'value':function initialize(){var _0x37a0c8=this;_get(_getPrototypeOf(_0x60aec8['prototype']),'initialize',this)[_0x4dbc('0x10')](this);this[_0x4dbc('0x3b')]=function(_0x16e4e0,_0xd2a834){_0x37a0c8[_0x4dbc('0x3c')](_0x16e4e0,_0xd2a834);};this[_0x4dbc('0x31')][_0x4dbc('0x3d')][_0x4dbc('0x2a')](this[_0x4dbc('0x3b')]);this[_0x4dbc('0x31')][_0x4dbc('0x3e')][_0x4dbc('0x2a')](this[_0x4dbc('0x3b')]);this[_0x4dbc('0x31')]['addButtonClick']['addEventListener'](this[_0x4dbc('0x3b')]);this['tabStrip']['navButtonClick'][_0x4dbc('0x2a')](this['_tabMouseDownHandler']);this[_0x4dbc('0x3f')]=function(_0x1fa3c9,_0x49d276){_0x37a0c8[_0x4dbc('0x40')](_0x1fa3c9,_0x49d276);};this[_0x4dbc('0x31')]['itemDrop'][_0x4dbc('0x2a')](this[_0x4dbc('0x3f')]);this['resetTabs']();if(this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x42')])this[_0x4dbc('0x43')][_0x4dbc('0x44')][_0x4dbc('0x45')](this[_0x4dbc('0x31')]['draw'](),this[_0x4dbc('0x43')]);else this[_0x4dbc('0x43')]['parentNode'][_0x4dbc('0x46')](this[_0x4dbc('0x31')][_0x4dbc('0x47')]());this['tabStrip']['attach']();this[_0x4dbc('0x48')]=this['items'][_0x4dbc('0x49')]();}},{'key':_0x4dbc('0x4a'),'value':function dispose(){this[_0x4dbc('0x26')][_0x4dbc('0x4b')](function(_0x51aa2d){return _0x51aa2d['dispose']();});this[_0x4dbc('0x31')][_0x4dbc('0x4a')]();_get(_getPrototypeOf(_0x60aec8['prototype']),_0x4dbc('0x4a'),this)[_0x4dbc('0x10')](this);}},{'key':_0x4dbc('0x4c'),'value':function attachDiagramEvents(){this[_0x4dbc('0x4d')]['addEventListener'](diagramming[_0x4dbc('0x4e')][_0x4dbc('0x4f')],this[_0x4dbc('0x50')]);this[_0x4dbc('0x4d')][_0x4dbc('0x2a')](diagramming[_0x4dbc('0x4e')]['queryView'],this['queryViewDelegate']);}},{'key':_0x4dbc('0x51'),'value':function detachDiagramEvents(){this[_0x4dbc('0x4d')]['removeEventListener'](diagramming[_0x4dbc('0x4e')]['dataLoaded'],this[_0x4dbc('0x50')]);this[_0x4dbc('0x4d')][_0x4dbc('0x52')](diagramming[_0x4dbc('0x4e')][_0x4dbc('0x53')],this[_0x4dbc('0x54')]);}},{'key':'saveToXml','value':function saveToXml(_0x38e4d8){var _0x2ebbac=new XMLHttpRequest();_0x2ebbac['open']('POST',_0x38e4d8,!![]);_0x2ebbac[_0x4dbc('0x55')](_0x4dbc('0x56'),_0x4dbc('0x57'));var _0x255d7f=this[_0x4dbc('0x4d')][_0x4dbc('0x58')]();var _0x53cd5f=new diagramming[(_0x4dbc('0x59'))](this[_0x4dbc('0x5a')],_0x255d7f);var _0x311fad=_0x53cd5f[_0x4dbc('0x5b')](_0x4dbc('0x22'),_0x255d7f);var _0x19b147=_0x255d7f['createElement'](_0x4dbc('0x5c'));_0x311fad[_0x4dbc('0x46')](_0x19b147);this[_0x4dbc('0x5d')](_0x19b147,_0x53cd5f);var _0x886d5c=new XMLSerializer();_0x2ebbac['send'](_0x886d5c[_0x4dbc('0x5e')](_0x255d7f));}},{'key':_0x4dbc('0x5d'),'value':function saveView(_0x267860,_0x4a3f48){_get(_getPrototypeOf(_0x60aec8[_0x4dbc('0x7')]),_0x4dbc('0x5d'),this)['call'](this,_0x267860,_0x4a3f48);if(this[_0x4dbc('0x5f')])_0x4a3f48[_0x4dbc('0x60')](this[_0x4dbc('0x5f')]['id'],_0x4dbc('0x61'),_0x267860);}},{'key':_0x4dbc('0x62'),'value':function loadFromXml(_0x55a103,_0x34c9c7,_0x1f0ec3){var _0x39d624=this['document'];var _0x10540b=new XMLHttpRequest();_0x10540b[_0x4dbc('0x63')]=function(){var _0x218f41=_0x10540b[_0x4dbc('0x64')];_0x39d624[_0x4dbc('0x65')](_0x218f41);var _0x46d4e7=new diagramming[(_0x4dbc('0x59'))](_0x39d624,_0x218f41);var _0x36b009=_0x46d4e7[_0x4dbc('0x5b')](_0x4dbc('0x22'),_0x218f41);this[_0x4dbc('0x66')](_0x4dbc('0x5c'),_0x36b009,_0x46d4e7);if(_0x34c9c7)_0x34c9c7(_0x39d624);}[_0x4dbc('0x67')](this);_0x10540b[_0x4dbc('0x68')]=function(){console[_0x4dbc('0x69')]('Error\x20while\x20getting\x20XML.');if(_0x1f0ec3)_0x1f0ec3(_0x39d624);};_0x10540b[_0x4dbc('0x6a')](_0x4dbc('0x6b'),_0x55a103);_0x10540b['responseType']=_0x4dbc('0x4d');_0x10540b['send']();}},{'key':_0x4dbc('0x66'),'value':function loadView(_0x464288,_0x36f7b6,_0x13dbd1){var _0x301e23=_get(_getPrototypeOf(_0x60aec8[_0x4dbc('0x7')]),_0x4dbc('0x66'),this)[_0x4dbc('0x10')](this,_0x464288,_0x36f7b6,_0x13dbd1);if(!_0x301e23)return;var _0x5e7b6e=_0x13dbd1[_0x4dbc('0x6c')](_0x4dbc('0x61'),_0x301e23);if(_0x5e7b6e)this[_0x4dbc('0x5f')]=diagramming[_0x4dbc('0x61')][_0x4dbc('0x6d')](_0x5e7b6e);}},{'key':_0x4dbc('0x6e'),'value':function resetVirtualScrollGrid(){var _0x3e713d=this[_0x4dbc('0x43')];if(!_0x3e713d[_0x4dbc('0x44')])return;if(!this[_0x4dbc('0x6f')]){controls[_0x4dbc('0x70')][_0x4dbc('0x71')](_0x3e713d[_0x4dbc('0x44')]);var _0x53c2df=controls[_0x4dbc('0x72')][_0x4dbc('0x73')](_0x3e713d[_0x4dbc('0x44')],null,!![]);var _0x282602=_0x53c2df['width'];var _0x599f8e=_0x53c2df[_0x4dbc('0x74')];if(_0x599f8e!=0x0)_0x3e713d[_0x4dbc('0x44')][_0x4dbc('0x75')]=_0x599f8e;this[_0x4dbc('0x76')]={'width':_0x282602,'height':_0x599f8e};_0x3e713d['parentNode']['style'][_0x4dbc('0x77')]=_0x4dbc('0x78');_0x3e713d[_0x4dbc('0x44')][_0x4dbc('0x79')][_0x4dbc('0x7a')]='auto\x20'+this[_0x4dbc('0x7b')]+'px';if(this[_0x4dbc('0x41')]==TabAlignment['Top'])_0x3e713d[_0x4dbc('0x44')][_0x4dbc('0x79')][_0x4dbc('0x7c')]=this[_0x4dbc('0x37')]+'px\x20auto\x20'+this[_0x4dbc('0x7b')]+'px';else _0x3e713d[_0x4dbc('0x44')][_0x4dbc('0x79')]['gridTemplateRows']=_0x4dbc('0x7d')+this['scrollbarSize']+'px\x20'+this[_0x4dbc('0x37')]+'px';_0x3e713d[_0x4dbc('0x44')][_0x4dbc('0x79')][_0x4dbc('0x7e')]='';_0x3e713d['style'][_0x4dbc('0x7f')]=this[_0x4dbc('0x41')]==TabAlignment['Top']?0x2:0x1;_0x3e713d[_0x4dbc('0x80')]=Math[_0x4dbc('0x81')](_0x53c2df['width']-this[_0x4dbc('0x82')](0x1),this['diagram'][_0x4dbc('0x83')][_0x4dbc('0x80')]*this[_0x4dbc('0x84')]);_0x3e713d[_0x4dbc('0x74')]=Math[_0x4dbc('0x81')](_0x599f8e-this[_0x4dbc('0x37')]-this['getScrollbarSize'](0x0),this[_0x4dbc('0x5a')][_0x4dbc('0x83')]['height']*this[_0x4dbc('0x84')]);this['tabStrip'][_0x4dbc('0x85')][_0x4dbc('0x79')][_0x4dbc('0x77')]=_0x4dbc('0x86');this[_0x4dbc('0x31')]['_element'][_0x4dbc('0x79')][_0x4dbc('0x87')]=_0x4dbc('0x88');var _0x2bb8f8=document[_0x4dbc('0x89')](_0x4dbc('0x8a'));_0x2bb8f8['className']=_0x4dbc('0x8b');_0x2bb8f8[_0x4dbc('0x79')]['gridRow']=this[_0x4dbc('0x41')]==TabAlignment['Top']?0x3:0x2;_0x2bb8f8['style'][_0x4dbc('0x8c')]=0x1;_0x2bb8f8['style']['gridColumnEnd']=0x2;_0x2bb8f8['style'][_0x4dbc('0x74')]=this[_0x4dbc('0x7b')]+'px';_0x2bb8f8[_0x4dbc('0x79')]['width']=_0x53c2df[_0x4dbc('0x80')]-this[_0x4dbc('0x7b')]+'px';_0x2bb8f8['style'][_0x4dbc('0x8d')]='auto';_0x2bb8f8[_0x4dbc('0x79')][_0x4dbc('0x8e')]='hidden';_0x2bb8f8[_0x4dbc('0x79')][_0x4dbc('0x8f')]=_0x4dbc('0x90');this['scrollerH']=_0x2bb8f8;var _0x4157ec=document[_0x4dbc('0x89')](_0x4dbc('0x8a'));_0x4157ec[_0x4dbc('0x79')]['height']=this[_0x4dbc('0x7b')]+'px';_0x2bb8f8[_0x4dbc('0x46')](_0x4157ec);_0x3e713d['parentNode'][_0x4dbc('0x46')](_0x2bb8f8);var _0x55fda5=document[_0x4dbc('0x89')]('div');_0x55fda5[_0x4dbc('0x91')]=_0x4dbc('0x92');_0x55fda5['style'][_0x4dbc('0x93')]=this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x42')]?0x2:0x1;_0x55fda5[_0x4dbc('0x79')][_0x4dbc('0x80')]=this[_0x4dbc('0x7b')]+'px';_0x55fda5['style'][_0x4dbc('0x74')]=_0x53c2df[_0x4dbc('0x74')]-this['tabsSize']-this[_0x4dbc('0x7b')]+'px';_0x55fda5[_0x4dbc('0x79')][_0x4dbc('0x8d')]=_0x4dbc('0x94');_0x55fda5[_0x4dbc('0x79')][_0x4dbc('0x8e')]=_0x4dbc('0x95');_0x55fda5[_0x4dbc('0x79')][_0x4dbc('0x8f')]='#eee';this[_0x4dbc('0x96')]=_0x55fda5;var _0x183982=document[_0x4dbc('0x89')]('div');_0x183982[_0x4dbc('0x79')]['width']=this['scrollbarSize']+'px';_0x55fda5[_0x4dbc('0x46')](_0x183982);_0x3e713d[_0x4dbc('0x44')][_0x4dbc('0x46')](_0x55fda5);controls['Control'][_0x4dbc('0x97')](_0x2bb8f8,{'scroll':this[_0x4dbc('0x98')]});controls[_0x4dbc('0x70')]['addHandlers'](_0x55fda5,{'scroll':this[_0x4dbc('0x98')]});if(!this[_0x4dbc('0x99')]){var _0x5175fd=this;this[_0x4dbc('0x99')]=setInterval(function(){_0x5175fd[_0x4dbc('0x9a')]();},0xc8);}}}},{'key':_0x4dbc('0x9b'),'value':function resetTabAlignment(){this['tabStrip'][_0x4dbc('0x34')]=this[_0x4dbc('0x41')]!=TabAlignment[_0x4dbc('0x2f')];var _0xa80cff=this['element'];if(this['tabAlignment']==TabAlignment[_0x4dbc('0x42')])_0xa80cff['parentNode'][_0x4dbc('0x79')][_0x4dbc('0x7c')]=this['tabsSize']+'px\x20auto\x20'+this[_0x4dbc('0x7b')]+'px';else _0xa80cff['parentNode'][_0x4dbc('0x79')][_0x4dbc('0x7c')]='auto\x20'+this['scrollbarSize']+_0x4dbc('0x9c')+this[_0x4dbc('0x37')]+'px';_0xa80cff[_0x4dbc('0x79')][_0x4dbc('0x7f')]=this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x42')]?0x2:0x1;var _0x2d0cb3=this[_0x4dbc('0x43')][_0x4dbc('0x44')][_0x4dbc('0x9d')]('.mf_diagram_scrollerH');if(this['scrollerH']){_0x2d0cb3[_0x4dbc('0x79')][_0x4dbc('0x7f')]=this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x42')]?0x3:0x2;var _0x4c350c=this['element'][_0x4dbc('0x44')]['querySelector']('.mf_diagram_scrollerV');_0x4c350c[_0x4dbc('0x79')][_0x4dbc('0x93')]=this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x42')]?0x2:0x1;}this[_0x4dbc('0x9e')]();}},{'key':'updateCanvasSize','value':function updateCanvasSize(){if(!this['element'])return;var _0x41f595=this[_0x4dbc('0x9f')]/0x64/drawing['GraphicsUnit'][_0x4dbc('0xa0')](this['canvas'][_0x4dbc('0xa1')]);if(this[_0x4dbc('0x6f')]){var _0x34ddb4=this[_0x4dbc('0x43')][_0x4dbc('0x44')];this[_0x4dbc('0x6f')]['firstChild'][_0x4dbc('0x79')][_0x4dbc('0x80')]=this['canvas'][_0x4dbc('0x83')]['width']*_0x41f595+'px';this[_0x4dbc('0x96')][_0x4dbc('0xa2')][_0x4dbc('0x79')][_0x4dbc('0x74')]=this[_0x4dbc('0xa3')][_0x4dbc('0x83')][_0x4dbc('0x74')]*_0x41f595+'px';var _0x323a59=this[_0x4dbc('0x82')](0x1);var _0x5ee0e5=this[_0x4dbc('0x82')](0x0);this[_0x4dbc('0x96')][_0x4dbc('0x79')][_0x4dbc('0x80')]=_0x323a59+'px';this[_0x4dbc('0x6f')][_0x4dbc('0x79')][_0x4dbc('0x74')]=_0x5ee0e5+'px';_0x34ddb4[_0x4dbc('0x79')][_0x4dbc('0x7a')]=_0x4dbc('0x7d')+_0x323a59+'px';if(this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x42')])_0x34ddb4[_0x4dbc('0x79')][_0x4dbc('0x7c')]=this[_0x4dbc('0x37')]+_0x4dbc('0xa4')+_0x5ee0e5+'px';else _0x34ddb4[_0x4dbc('0x79')][_0x4dbc('0x7c')]=_0x4dbc('0x7d')+_0x5ee0e5+_0x4dbc('0x9c')+this[_0x4dbc('0x37')]+'px';var _0x171f0e=controls[_0x4dbc('0x72')][_0x4dbc('0x73')](_0x34ddb4,null,!![]);var _0x24d606=_0x171f0e[_0x4dbc('0x74')];if(_0x24d606==0x0)_0x24d606=_0x34ddb4[_0x4dbc('0x75')];if(_0x24d606==0x0)_0x24d606=this[_0x4dbc('0xa3')]['bounds'][_0x4dbc('0x74')]*_0x41f595;this[_0x4dbc('0x43')]['width']=Math[_0x4dbc('0x81')](_0x171f0e[_0x4dbc('0x80')]-_0x323a59,this[_0x4dbc('0xa3')]['bounds'][_0x4dbc('0x80')]*_0x41f595);this[_0x4dbc('0x43')][_0x4dbc('0x74')]=Math[_0x4dbc('0x81')](_0x24d606-this['tabsSize']-_0x5ee0e5,this[_0x4dbc('0xa3')][_0x4dbc('0x83')][_0x4dbc('0x74')]*_0x41f595);this[_0x4dbc('0x6f')][_0x4dbc('0x79')]['width']=_0x171f0e[_0x4dbc('0x80')]-_0x323a59+'px';this[_0x4dbc('0x96')][_0x4dbc('0x79')][_0x4dbc('0x74')]=_0x24d606-this['tabsSize']-_0x5ee0e5+'px';}this[_0x4dbc('0xa3')][_0x4dbc('0xa5')]=null;this[_0x4dbc('0xa3')][_0x4dbc('0xa6')]();this['diagram'][_0x4dbc('0xa7')](diagramming['Events'][_0x4dbc('0xa8')],controls[_0x4dbc('0xa9')][_0x4dbc('0xaa')]);}},{'key':_0x4dbc('0xab'),'value':function resetTabs(){var _0x47633b=this;this[_0x4dbc('0x31')][_0x4dbc('0x26')][_0x4dbc('0xac')]();this[_0x4dbc('0x4d')][_0x4dbc('0x23')][_0x4dbc('0x4b')](function(_0x3f72db,_0x128641){var _0x7f2a7a=new commonUi[(_0x4dbc('0xad'))](commonUi[_0x4dbc('0xae')][_0x4dbc('0xaf')],_0x3f72db[_0x4dbc('0xb0')]);_0x7f2a7a['titleColor']=_0x3f72db['titleColor'];_0x7f2a7a[_0x4dbc('0xb1')]=_0x3f72db[_0x4dbc('0xb2')];_0x47633b[_0x4dbc('0x31')][_0x4dbc('0x26')]['add'](_0x7f2a7a);_0x3f72db[_0x4dbc('0xb3')]=_0x7f2a7a;});}},{'key':_0x4dbc('0x3c'),'value':function onTabMouseDown(_0x2da39b,_0x26e367){if(!_0x26e367['item']['enabled'])return;if(_0x26e367[_0x4dbc('0xb4')][_0x4dbc('0xb5')]==_0x4dbc('0xb6')){var _0x21568f=new diagramming['DiagramPage']();_0x21568f[_0x4dbc('0xb0')]=_0x4dbc('0x5a')+(++this[_0x4dbc('0x25')])[_0x4dbc('0xb7')]();this[_0x4dbc('0x26')]['add'](_0x21568f);this[_0x4dbc('0x48')]=_0x21568f;return;}if(_0x26e367[_0x4dbc('0xb4')][_0x4dbc('0xb5')]){if(_0x26e367[_0x4dbc('0xb4')][_0x4dbc('0xb5')]==_0x4dbc('0xb8'))this['selectedPage']=this[_0x4dbc('0x26')][_0x4dbc('0xb9')]();else if(_0x26e367[_0x4dbc('0xb4')][_0x4dbc('0xb5')]==_0x4dbc('0xba'))this[_0x4dbc('0xbb')]--;else if(_0x26e367[_0x4dbc('0xb4')]['dataMfc']==_0x4dbc('0xbc'))this[_0x4dbc('0xbb')]++;else if(_0x26e367[_0x4dbc('0xb4')][_0x4dbc('0xb5')]=='mfc-last')this[_0x4dbc('0x48')]=this[_0x4dbc('0x26')][_0x4dbc('0x49')]();return;}var _0x26fc23=this['getItemByHeader'](_0x26e367[_0x4dbc('0xb4')]);if(_0x26fc23){if(controls[_0x4dbc('0x72')]['hasCssClass'](_0x26e367[_0x4dbc('0xbd')]['target'],_0x4dbc('0xbe'))){var _0x58c0e9=this[_0x4dbc('0xbb')];if(this[_0x4dbc('0x48')]==_0x26fc23){if(_0x26fc23==this[_0x4dbc('0x26')][_0x4dbc('0xb9')]())_0x58c0e9++;}this[_0x4dbc('0x26')][_0x4dbc('0xbf')](_0x26fc23);this['selectedIndex']=--_0x58c0e9;}else this[_0x4dbc('0x48')]=_0x26fc23;}}},{'key':_0x4dbc('0x40'),'value':function onTabDrop(_0x6aaff8,_0x1deead){var _0x4b2fed=_0x6aaff8[_0x4dbc('0xc0')](_0x1deead[_0x4dbc('0xb4')])[_0x4dbc('0xc1')](_0x1deead['item']);var _0xc88e37=this[_0x4dbc('0xc2')](_0x1deead[_0x4dbc('0xb4')]);this[_0x4dbc('0x26')][_0x4dbc('0xc3')][_0x4dbc('0xc4')](this[_0x4dbc('0x26')][_0x4dbc('0xc1')](_0xc88e37),0x1);this[_0x4dbc('0x26')][_0x4dbc('0xc3')][_0x4dbc('0xc4')](_0x4b2fed,0x0,_0xc88e37);}},{'key':_0x4dbc('0x2b'),'value':function onItemsChanging(_0x54f586,_0x2de8fd){if(_0x2de8fd['action']==common['NotifyCollectionChangedAction'][_0x4dbc('0xc5')]){var _0x3827c2;for(var _0x1a715a=0x0;_0x1a715a<_0x2de8fd[_0x4dbc('0xc6')][_0x4dbc('0x2')];_0x1a715a++){if(!this[_0x4dbc('0xc7')](Events[_0x4dbc('0x19')],_0x2de8fd[_0x4dbc('0xc6')][_0x1a715a]))_0x3827c2=!![];}_0x2de8fd[_0x4dbc('0xc8')]=_0x3827c2;}else{var _0x3827c2;for(var _0x1a715a=0x0;_0x1a715a<_0x2de8fd[_0x4dbc('0xc9')][_0x4dbc('0x2')];_0x1a715a++){if(!this[_0x4dbc('0xc7')](Events['pageRemoving'],null,_0x2de8fd[_0x4dbc('0xc9')][_0x1a715a]))_0x3827c2=!![];}_0x2de8fd[_0x4dbc('0xc8')]=_0x3827c2;}}},{'key':_0x4dbc('0x2d'),'value':function onItemsChanged(_0x28e12f,_0x7be12e){if(_0x7be12e[_0x4dbc('0xca')]==common[_0x4dbc('0xcb')][_0x4dbc('0xc5')]){for(var _0x334013=0x0;_0x334013<_0x7be12e['m_newItems'][_0x4dbc('0x2')];_0x334013++){this[_0x4dbc('0xa7')](Events[_0x4dbc('0x1a')],new PageEventArgs({'page':_0x7be12e[_0x4dbc('0xc6')][_0x334013]}));}}else{for(var _0x334013=0x0;_0x334013<_0x7be12e[_0x4dbc('0xc9')]['length'];_0x334013++){this[_0x4dbc('0xa7')](Events[_0x4dbc('0x1c')],new PageEventArgs({'oldPage':_0x7be12e[_0x4dbc('0xc9')][_0x334013]}));}}this[_0x4dbc('0xab')]();this[_0x4dbc('0x31')][_0x4dbc('0xcc')]();}},{'key':_0x4dbc('0x48'),'get':function get(){return this[_0x4dbc('0xcd')];},'set':function set(_0x3804bb){if(_0x3804bb){if(this[_0x4dbc('0xc7')](Events[_0x4dbc('0x17')],this[_0x4dbc('0xcd')],_0x3804bb)){var _0x194a1a=this[_0x4dbc('0xcd')];this[_0x4dbc('0xcd')]=_0x3804bb;this[_0x4dbc('0xce')](this[_0x4dbc('0xcd')]);this[_0x4dbc('0xcd')][_0x4dbc('0xa6')]();this[_0x4dbc('0x31')][_0x4dbc('0xcf')](this[_0x4dbc('0xcd')][_0x4dbc('0xb3')]);this[_0x4dbc('0xa7')](diagramming['Events']['pageChanged'],new PageEventArgs({'page':this[_0x4dbc('0xcd')],'oldPage':_0x194a1a}));}}}},{'key':'selectedIndex','get':function get(){if(this[_0x4dbc('0xcd')])return this[_0x4dbc('0x26')][_0x4dbc('0xc1')](this['_selectedPage']);return-0x1;},'set':function set(_0x128ee){var _0x4e3b59=this[_0x4dbc('0x26')][_0x4dbc('0x26')]()[_0x128ee];if(_0x4e3b59)this[_0x4dbc('0x48')]=_0x4e3b59;}},{'key':_0x4dbc('0xc2'),'value':function getItemByHeader(_0x277962){return this['items'][_0x4dbc('0xd0')](function(_0x43be0f){return _0x43be0f[_0x4dbc('0xb3')]==_0x277962;})[_0x4dbc('0xb9')]();}},{'key':_0x4dbc('0x4d'),'get':function get(){return this[_0x4dbc('0x28')];},'set':function set(_0x108dc6){if(this[_0x4dbc('0x28')]!=_0x108dc6){this[_0x4dbc('0x28')]=_0x108dc6;}}},{'key':'tabsSize','get':function get(){if(this[_0x4dbc('0x41')]==TabAlignment[_0x4dbc('0x2f')])return 0x0;return this[_0x4dbc('0x31')][_0x4dbc('0x74')][_0x4dbc('0x5')];},'set':function set(_0x143b51){if(this[_0x4dbc('0x31')][_0x4dbc('0x74')][_0x4dbc('0x5')]!=_0x143b51){this['tabStrip'][_0x4dbc('0x74')]=new common[(_0x4dbc('0xd1'))](_0x143b51,common[_0x4dbc('0xd2')][_0x4dbc('0xd3')]);this[_0x4dbc('0x9b')]();}}},{'key':_0x4dbc('0x41'),'get':function get(){return this[_0x4dbc('0x2e')];},'set':function set(_0x5061f2){if(this['_tabAlignment']!=_0x5061f2){this[_0x4dbc('0x2e')]=_0x5061f2;this['resetTabAlignment']();}}},{'key':_0x4dbc('0x38'),'get':function get(){return this[_0x4dbc('0x31')][_0x4dbc('0xd4')];},'set':function set(_0x2b0a21){if(this[_0x4dbc('0x31')][_0x4dbc('0xd4')]!=_0x2b0a21){this[_0x4dbc('0x31')][_0x4dbc('0xd4')]=_0x2b0a21;}}},{'key':_0x4dbc('0x39'),'get':function get(){return this[_0x4dbc('0x31')][_0x4dbc('0xd5')]==commonUi[_0x4dbc('0xd6')][_0x4dbc('0xd7')];},'set':function set(_0x5ae842){if(this[_0x4dbc('0x31')][_0x4dbc('0xd5')]==commonUi[_0x4dbc('0xd6')]['NavButtons']!=_0x5ae842){this['tabStrip'][_0x4dbc('0xd5')]=_0x5ae842?commonUi[_0x4dbc('0xd6')][_0x4dbc('0xd7')]:commonUi[_0x4dbc('0xd6')][_0x4dbc('0x2f')];}}},{'key':'showAddButton','get':function get(){return this[_0x4dbc('0x31')][_0x4dbc('0x36')];},'set':function set(_0x1ba0b4){if(this[_0x4dbc('0x31')][_0x4dbc('0x36')]!=_0x1ba0b4){this[_0x4dbc('0x31')][_0x4dbc('0x36')]=_0x1ba0b4;}}},{'key':_0x4dbc('0xd8'),'get':function get(){return this[_0x4dbc('0x31')]['allowDrag'];},'set':function set(_0x1d82fe){if(this[_0x4dbc('0x31')][_0x4dbc('0xd9')]!=_0x1d82fe){this['tabStrip'][_0x4dbc('0xd9')]=_0x1d82fe;}}},{'key':_0x4dbc('0x5f'),'get':function get(){return this[_0x4dbc('0xda')];},'set':function set(_0x372aa6){if(this[_0x4dbc('0xda')]!=_0x372aa6){this[_0x4dbc('0xda')]=_0x372aa6;if(this[_0x4dbc('0xda')])this[_0x4dbc('0x31')][_0x4dbc('0x5f')]=this[_0x4dbc('0xda')]['id'];}}},{'key':_0x4dbc('0xdb'),'value':function setTheme(_0x425d43,_0x11730d){this[_0x4dbc('0x5f')]=_0x425d43;if(_0x11730d){this['items'][_0x4dbc('0x4b')](function(_0x34765f){return _0x34765f[_0x4dbc('0x5f')]=_0x425d43;});}}},{'key':_0x4dbc('0xdc'),'value':function onDataLoaded(_0x14aa53,_0x49c58e){var _0x49b827=this;this[_0x4dbc('0x26')]=new commonCollections[(_0x4dbc('0x27'))](this['document'][_0x4dbc('0x23')]);this[_0x4dbc('0x26')]['collectionChanged']['addEventListener'](function(_0x14aa53,_0x49c58e){_0x49b827[_0x4dbc('0x2d')](_0x14aa53,_0x49c58e);});this['resetTabs']();this[_0x4dbc('0x31')][_0x4dbc('0xcc')]();this[_0x4dbc('0x48')]=this[_0x4dbc('0x26')][_0x4dbc('0x49')]();this['_lastIndex']=this['items'][_0x4dbc('0xdd')]();}},{'key':_0x4dbc('0xc7'),'value':function onPageValidateAction(_0xa57fb4,_0x314d39,_0x52dc00){var _0x40fc85=new PageEventArgs({'page':_0x314d39,'oldPage':_0x52dc00});this[_0x4dbc('0xa7')](_0xa57fb4,_0x40fc85);if(_0x40fc85['cancel'])return![];return!![];}}],[{'key':_0x4dbc('0x9'),'value':function create(_0x4b2b1a,_0x833c40){return controls[_0x4dbc('0x70')]['createControl'](_0x60aec8,_0x4b2b1a,_0x833c40);}}]);return _0x60aec8;}(diagramming['DiagramView']);exports['Events']=Events;exports[_0x4dbc('0xde')]=PageEventArgs;exports[_0x4dbc('0xdf')]=TabAlignment;exports['TabbedDiagramView']=TabbedDiagramView;
1
+ var _0x5d94=['__esModule','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','enumerable','value','writable','defineProperty','prototype','function','Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function','create','setPrototypeOf','getPrototypeOf','__proto__','construct','sham','valueOf','call','this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called','constructor','apply','hasOwnProperty','undefined','get','pageChanging','pageChanged','pageAdding','pageAdded','pageRemoving','pageRemoved','sender','page','_page','oldPage','_oldPage','CancelEventArgs','DiagramDocument','pages','length','diagram1','onDocumentChanged','document','_lastIndex','items','ObservableCollection','addEventListener','onItemsChanging','onItemsChanged','_tabAlignment','None','tabStrip','TabStrip','parent','req','tabsSize','showTabCloseButtons','showNavigationButtons','CompatConfig','initialize','_tabMouseDownHandler','onTabMouseDown','itemMouseDown','closeButtonClick','addButtonClick','navButtonClick','onTabDrop','itemDrop','_tabDropHandler','resetTabs','tabAlignment','element','parentNode','insertBefore','draw','appendChild','attach','selectedPage','forEach','dispose','Events','dataLoaded','dataLoadedDelegate','queryView','detachDiagramEvents','removeEventListener','queryViewDelegate','toJson','toJsonObject','Control','saveViewProps','showAddButton','allowReorder','theme','fromJson','fromJsonObject','loadViewProps','raiseEvent','controlLoaded','fromId','saveToXml','open','POST','setRequestHeader','text/xml','XmlPersistContext','diagram','selectSingleNode','View','saveView','send','serializeToString','writeString','Theme','loadFromXml','onload','responseXML','fromXmlDocument','loadView','bind','onerror','log','GET','readString','resetVirtualScrollGrid','DomUtils','getBounds','width','_mf_originalHeight','style','display','grid','auto\x20','scrollbarSize','Top','gridTemplateRows','px\x20auto\x20','px\x20','overflow','min','getScrollbarSize','bounds','scale','height','_element','1\x20/\x20-1','createElement','div','className','mf_diagram_scrollerH','gridRow','gridColumnStart','overflowX','overflowY','hidden','backgroundColor','#eee','scrollerH','mf_diagram_scrollerV','gridRowStart','auto','scrollerV','addHandlers','scrollDelegate','resizeTimeoutId','resetTabAlignment','.mf_diagram_scrollerH','.mf_diagram_scrollerV','updateCanvasSize','GraphicsUnit','getPixel','canvas','measureUnit','firstChild','gridTemplateColumns','invalidRect','repaint','sizeChanged','EventArgs','Empty','ToolStripItem','ToolStripItemType','Label','titleColor','imageSrc','iconUrl','add','header','item','enabled','dataMfc','title','toString','addPage','mfc-first','mfc-prev','selectedIndex','mfc-next','mfc-last','last','hasCssClass','rawEventArgs','target','first','remove','indexOfItem','getItemByHeader','_items','splice','Add','onPageValidateAction','m_newItems','m_oldItems','setCancel','action','NotifyCollectionChangedAction','resetButtons','_selectedPage','setDiagram','selectItem','where','_document','documentChanged','documentChangedDelegate','diagramChanged','Unit','UnitType','Pixel','showCloseButtons','scrollMode','NavButtons','TabsScrollMode','allowDrag','_theme','setTheme','onDataLoaded','count','Diagram','collectionChanging','collectionChanged','oldIndex','max','index','cancel','DiagramView','PageEventArgs','TabAlignment'];var _0x1178=function(_0x434cb3,_0x31a746){_0x434cb3=_0x434cb3-0x0;var _0x352566=_0x5d94[_0x434cb3];return _0x352566;};'use strict';Object['defineProperty'](exports,_0x1178('0x0'),{'value':!![]});var controls=require('@mindfusion/controls');var diagramming=require('@mindfusion/diagramming');var common=require('@mindfusion/common');var commonUi=require('@mindfusion/common-ui');var commonCollections=require('@mindfusion/common-collections');var drawing=require('@mindfusion/drawing');var TabAlignment={'None':0x0,'Top':0x1,'Bottom':0x3};function _classCallCheck(_0x3bbba5,_0x403fce){if(!(_0x3bbba5 instanceof _0x403fce)){throw new TypeError(_0x1178('0x1'));}}function _defineProperties(_0x1e5016,_0x55af5a){for(var _0x10fa5a=0x0;_0x10fa5a<_0x55af5a['length'];_0x10fa5a++){var _0x2e6a1b=_0x55af5a[_0x10fa5a];_0x2e6a1b[_0x1178('0x2')]=_0x2e6a1b[_0x1178('0x2')]||![];_0x2e6a1b['configurable']=!![];if(_0x1178('0x3')in _0x2e6a1b)_0x2e6a1b[_0x1178('0x4')]=!![];Object[_0x1178('0x5')](_0x1e5016,_0x2e6a1b['key'],_0x2e6a1b);}}function _createClass(_0x47543f,_0x1157db,_0x45d4a2){if(_0x1157db)_defineProperties(_0x47543f[_0x1178('0x6')],_0x1157db);if(_0x45d4a2)_defineProperties(_0x47543f,_0x45d4a2);return _0x47543f;}function _inherits(_0x4e1ea1,_0x28cf6e){if(typeof _0x28cf6e!==_0x1178('0x7')&&_0x28cf6e!==null){throw new TypeError(_0x1178('0x8'));}_0x4e1ea1[_0x1178('0x6')]=Object[_0x1178('0x9')](_0x28cf6e&&_0x28cf6e[_0x1178('0x6')],{'constructor':{'value':_0x4e1ea1,'writable':!![],'configurable':!![]}});if(_0x28cf6e)_setPrototypeOf(_0x4e1ea1,_0x28cf6e);}function _getPrototypeOf(_0x65d591){_getPrototypeOf=Object[_0x1178('0xa')]?Object[_0x1178('0xb')]:function _getPrototypeOf(_0x65d591){return _0x65d591[_0x1178('0xc')]||Object[_0x1178('0xb')](_0x65d591);};return _getPrototypeOf(_0x65d591);}function _setPrototypeOf(_0x4ca349,_0x221ae9){_setPrototypeOf=Object[_0x1178('0xa')]||function _setPrototypeOf(_0x4ca349,_0x221ae9){_0x4ca349[_0x1178('0xc')]=_0x221ae9;return _0x4ca349;};return _setPrototypeOf(_0x4ca349,_0x221ae9);}function _isNativeReflectConstruct(){if(typeof Reflect==='undefined'||!Reflect[_0x1178('0xd')])return![];if(Reflect[_0x1178('0xd')][_0x1178('0xe')])return![];if(typeof Proxy===_0x1178('0x7'))return!![];try{Boolean[_0x1178('0x6')][_0x1178('0xf')][_0x1178('0x10')](Reflect[_0x1178('0xd')](Boolean,[],function(){}));return!![];}catch(_0x5b091c){return![];}}function _assertThisInitialized(_0xb889b0){if(_0xb889b0===void 0x0){throw new ReferenceError(_0x1178('0x11'));}return _0xb889b0;}function _possibleConstructorReturn(_0x1321f2,_0x4c5096){if(_0x4c5096&&(typeof _0x4c5096==='object'||typeof _0x4c5096===_0x1178('0x7'))){return _0x4c5096;}return _assertThisInitialized(_0x1321f2);}function _createSuper(_0xb77d38){var _0x48206b=_isNativeReflectConstruct();return function _createSuperInternal(){var _0x1758fa=_getPrototypeOf(_0xb77d38),_0x2a7919;if(_0x48206b){var _0xde0de6=_getPrototypeOf(this)[_0x1178('0x12')];_0x2a7919=Reflect[_0x1178('0xd')](_0x1758fa,arguments,_0xde0de6);}else{_0x2a7919=_0x1758fa[_0x1178('0x13')](this,arguments);}return _possibleConstructorReturn(this,_0x2a7919);};}function _superPropBase(_0x1b7110,_0x49a06d){while(!Object['prototype'][_0x1178('0x14')][_0x1178('0x10')](_0x1b7110,_0x49a06d)){_0x1b7110=_getPrototypeOf(_0x1b7110);if(_0x1b7110===null)break;}return _0x1b7110;}function _get(_0x17d4ec,_0x22c4b8,_0x4c37e8){if(typeof Reflect!==_0x1178('0x15')&&Reflect[_0x1178('0x16')]){_get=Reflect['get'];}else{_get=function _get(_0x17d4ec,_0x22c4b8,_0x4c37e8){var _0x226b69=_superPropBase(_0x17d4ec,_0x22c4b8);if(!_0x226b69)return;var _0x3f7deb=Object['getOwnPropertyDescriptor'](_0x226b69,_0x22c4b8);if(_0x3f7deb[_0x1178('0x16')]){return _0x3f7deb[_0x1178('0x16')]['call'](_0x4c37e8);}return _0x3f7deb[_0x1178('0x3')];};}return _get(_0x17d4ec,_0x22c4b8,_0x4c37e8||_0x17d4ec);}var Events=function(){function _0x5a0e99(){_classCallCheck(this,_0x5a0e99);}_createClass(_0x5a0e99,null,[{'key':'pageChanging','get':function get(){return _0x1178('0x17');}},{'key':_0x1178('0x18'),'get':function get(){return _0x1178('0x18');}},{'key':_0x1178('0x19'),'get':function get(){return _0x1178('0x19');}},{'key':'pageAdded','get':function get(){return _0x1178('0x1a');}},{'key':_0x1178('0x1b'),'get':function get(){return _0x1178('0x1b');}},{'key':_0x1178('0x1c'),'get':function get(){return _0x1178('0x1c');}}]);return _0x5a0e99;}();var PageEventArgs=function(_0x5445e1){_inherits(_0x59dec3,_0x5445e1);var _0x5e3c19=_createSuper(_0x59dec3);function _0x59dec3(_0x358866){var _0x282bc6;_classCallCheck(this,_0x59dec3);_0x282bc6=_0x5e3c19[_0x1178('0x10')](this);if(_0x358866[_0x1178('0x1d')])_0x282bc6['sender']=_0x358866[_0x1178('0x1d')];if(_0x358866[_0x1178('0x1e')])_0x282bc6[_0x1178('0x1f')]=_0x358866[_0x1178('0x1e')];if(_0x358866[_0x1178('0x20')])_0x282bc6['_oldPage']=_0x358866['oldPage'];return _0x282bc6;}_createClass(_0x59dec3,[{'key':_0x1178('0x1e'),'get':function get(){return this[_0x1178('0x1f')];}},{'key':_0x1178('0x20'),'get':function get(){return this[_0x1178('0x21')];}}]);return _0x59dec3;}(controls[_0x1178('0x22')]);var TabbedDiagramView=function(_0xf22920){_inherits(_0x4e1340,_0xf22920);var _0x23d3a9=_createSuper(_0x4e1340);function _0x4e1340(_0x479d43,_0x1b2fa6){var _0x41ac41;_classCallCheck(this,_0x4e1340);var _0x2b2669=_0x1b2fa6||new diagramming[(_0x1178('0x23'))]();if(!_0x2b2669[_0x1178('0x24')][_0x1178('0x25')]){var _0x24fa1f=new diagramming['DiagramPage']();_0x24fa1f['title']=_0x1178('0x26');_0x2b2669['addPage'](_0x24fa1f);}_0x41ac41=_0x23d3a9[_0x1178('0x10')](this,_0x479d43,_0x2b2669[_0x1178('0x24')][0x0]);_0x41ac41['documentChangedDelegate']=function(_0x599275,_0x2e3854){return _0x41ac41[_0x1178('0x27')](_0x599275,_0x2e3854);};_0x41ac41[_0x1178('0x28')]=_0x2b2669;_0x41ac41[_0x1178('0x29')]=0x1;_0x41ac41[_0x1178('0x2a')]=new commonCollections[(_0x1178('0x2b'))](_0x41ac41['_document']['pages']);_0x41ac41[_0x1178('0x2a')]['collectionChanging'][_0x1178('0x2c')](function(_0x2b1275,_0x69b4c8){_0x41ac41[_0x1178('0x2d')](_0x2b1275,_0x69b4c8);});_0x41ac41[_0x1178('0x2a')]['collectionChanged'][_0x1178('0x2c')](function(_0x9df250,_0x4c8d76){_0x41ac41[_0x1178('0x2e')](_0x9df250,_0x4c8d76);});_0x41ac41[_0x1178('0x2f')]=TabAlignment[_0x1178('0x30')];_0x41ac41[_0x1178('0x31')]=new commonUi[(_0x1178('0x32'))]();_0x41ac41[_0x1178('0x31')][_0x1178('0x33')]=_assertThisInitialized(_0x41ac41);_0x41ac41[_0x1178('0x31')][_0x1178('0x34')]=function(){return!![];};_0x41ac41[_0x1178('0x31')]['visible']=![];_0x41ac41[_0x1178('0x31')]['autoSizeTabs']=![];_0x41ac41[_0x1178('0x31')]['showAddButton']=![];_0x41ac41[_0x1178('0x35')]=0x14;_0x41ac41[_0x1178('0x36')]=![];_0x41ac41[_0x1178('0x37')]=![];if(diagramming[_0x1178('0x38')]['propFunctions']){diagramming[_0x1178('0x38')]['generatePropFunctions'](_0x4e1340[_0x1178('0x6')]);}return _0x41ac41;}_createClass(_0x4e1340,[{'key':_0x1178('0x39'),'value':function initialize(){var _0x4220d7=this;_get(_getPrototypeOf(_0x4e1340['prototype']),_0x1178('0x39'),this)['call'](this);this[_0x1178('0x3a')]=function(_0x58f4f5,_0x2164e3){_0x4220d7[_0x1178('0x3b')](_0x58f4f5,_0x2164e3);};this[_0x1178('0x31')][_0x1178('0x3c')]['addEventListener'](this[_0x1178('0x3a')]);this[_0x1178('0x31')][_0x1178('0x3d')][_0x1178('0x2c')](this[_0x1178('0x3a')]);this[_0x1178('0x31')][_0x1178('0x3e')][_0x1178('0x2c')](this[_0x1178('0x3a')]);this[_0x1178('0x31')][_0x1178('0x3f')][_0x1178('0x2c')](this[_0x1178('0x3a')]);this['_tabDropHandler']=function(_0x54c6e6,_0x299ff8){_0x4220d7[_0x1178('0x40')](_0x54c6e6,_0x299ff8);};this[_0x1178('0x31')][_0x1178('0x41')][_0x1178('0x2c')](this[_0x1178('0x42')]);this[_0x1178('0x43')]();if(this[_0x1178('0x44')]==TabAlignment['Top'])this[_0x1178('0x45')][_0x1178('0x46')][_0x1178('0x47')](this['tabStrip'][_0x1178('0x48')](),this['element']);else this[_0x1178('0x45')]['parentNode'][_0x1178('0x49')](this[_0x1178('0x31')][_0x1178('0x48')]());this[_0x1178('0x31')][_0x1178('0x4a')]();this[_0x1178('0x4b')]=this[_0x1178('0x2a')]['last']();}},{'key':'dispose','value':function dispose(){this[_0x1178('0x2a')][_0x1178('0x4c')](function(_0x7a0d8b){return _0x7a0d8b[_0x1178('0x4d')]();});this[_0x1178('0x31')][_0x1178('0x4d')]();_get(_getPrototypeOf(_0x4e1340[_0x1178('0x6')]),'dispose',this)[_0x1178('0x10')](this);}},{'key':'attachDiagramEvents','value':function attachDiagramEvents(){this['document']['addEventListener'](diagramming[_0x1178('0x4e')][_0x1178('0x4f')],this[_0x1178('0x50')]);this[_0x1178('0x28')][_0x1178('0x2c')](diagramming['Events'][_0x1178('0x51')],this['queryViewDelegate']);}},{'key':_0x1178('0x52'),'value':function detachDiagramEvents(){this[_0x1178('0x28')][_0x1178('0x53')](diagramming['Events'][_0x1178('0x4f')],this['dataLoadedDelegate']);this[_0x1178('0x28')][_0x1178('0x53')](diagramming['Events']['queryView'],this[_0x1178('0x54')]);}},{'key':_0x1178('0x55'),'value':function toJson(){var _0x18c1c2=this[_0x1178('0x28')][_0x1178('0x56')]();this['saveViewProps'](_0x18c1c2);return controls[_0x1178('0x57')]['toJson'](_0x18c1c2);}},{'key':'saveViewProps','value':function saveViewProps(_0x495335){_get(_getPrototypeOf(_0x4e1340[_0x1178('0x6')]),_0x1178('0x58'),this)[_0x1178('0x10')](this,_0x495335);_0x495335[_0x1178('0x44')]=this[_0x1178('0x44')];_0x495335[_0x1178('0x35')]=this[_0x1178('0x35')];_0x495335[_0x1178('0x37')]=this[_0x1178('0x37')];_0x495335[_0x1178('0x59')]=this[_0x1178('0x59')];_0x495335['showTabCloseButtons']=this[_0x1178('0x36')];_0x495335[_0x1178('0x5a')]=this[_0x1178('0x5a')];_0x495335['theme']=this[_0x1178('0x5b')]?this[_0x1178('0x5b')]['id']:null;}},{'key':_0x1178('0x5c'),'value':function fromJson(_0x2efdbb){if(_0x2efdbb>''){var _0x4599a4=controls['Control'][_0x1178('0x5c')](_0x2efdbb);this['document'][_0x1178('0x5d')](_0x4599a4);this['updateScale']();this[_0x1178('0x5e')](_0x4599a4);}this[_0x1178('0x5f')](diagramming[_0x1178('0x4e')][_0x1178('0x60')]);}},{'key':'loadViewProps','value':function loadViewProps(_0x298475){_get(_getPrototypeOf(_0x4e1340[_0x1178('0x6')]),_0x1178('0x5e'),this)[_0x1178('0x10')](this,_0x298475);if(_0x298475[_0x1178('0x44')]!==undefined)this[_0x1178('0x44')]=_0x298475[_0x1178('0x44')];if(_0x298475[_0x1178('0x35')]!==undefined)this[_0x1178('0x35')]=_0x298475[_0x1178('0x35')];if(_0x298475['showNavigationButtons']!==undefined)this['showNavigationButtons']=_0x298475[_0x1178('0x37')];if(_0x298475[_0x1178('0x59')]!==undefined)this[_0x1178('0x59')]=_0x298475[_0x1178('0x59')];if(_0x298475[_0x1178('0x36')]!==undefined)this[_0x1178('0x36')]=_0x298475[_0x1178('0x36')];if(_0x298475[_0x1178('0x5a')]!==undefined)this[_0x1178('0x5a')]=_0x298475[_0x1178('0x5a')];if(_0x298475['theme'])this[_0x1178('0x5b')]=diagramming['Theme'][_0x1178('0x61')](_0x298475['theme']);}},{'key':_0x1178('0x62'),'value':function saveToXml(_0x53c002){var _0x5e5174=new XMLHttpRequest();_0x5e5174[_0x1178('0x63')](_0x1178('0x64'),_0x53c002,!![]);_0x5e5174[_0x1178('0x65')]('Content-Type',_0x1178('0x66'));var _0xe67f19=this['document']['toXmlDocument']();var _0x398d9d=new diagramming[(_0x1178('0x67'))](this[_0x1178('0x68')],_0xe67f19);var _0x2b3f2a=_0x398d9d[_0x1178('0x69')](_0x1178('0x23'),_0xe67f19);var _0x17ce94=_0xe67f19['createElement'](_0x1178('0x6a'));_0x2b3f2a[_0x1178('0x49')](_0x17ce94);this[_0x1178('0x6b')](_0x17ce94,_0x398d9d);var _0x49946f=new XMLSerializer();_0x5e5174[_0x1178('0x6c')](_0x49946f[_0x1178('0x6d')](_0xe67f19));}},{'key':_0x1178('0x6b'),'value':function saveView(_0xf6eb2d,_0x12d283){_get(_getPrototypeOf(_0x4e1340[_0x1178('0x6')]),'saveView',this)[_0x1178('0x10')](this,_0xf6eb2d,_0x12d283);if(this[_0x1178('0x5b')])_0x12d283[_0x1178('0x6e')](this[_0x1178('0x5b')]['id'],_0x1178('0x6f'),_0xf6eb2d);}},{'key':_0x1178('0x70'),'value':function loadFromXml(_0x1c27d3,_0x3c126a,_0x40875a){var _0x3a4cbe=this[_0x1178('0x28')];var _0x55fb51=new XMLHttpRequest();_0x55fb51[_0x1178('0x71')]=function(){var _0xb4c211=_0x55fb51[_0x1178('0x72')];_0x3a4cbe[_0x1178('0x73')](_0xb4c211);var _0x4fc66b=new diagramming['XmlPersistContext'](_0x3a4cbe,_0xb4c211);var _0x319358=_0x4fc66b[_0x1178('0x69')](_0x1178('0x23'),_0xb4c211);this[_0x1178('0x74')](_0x1178('0x6a'),_0x319358,_0x4fc66b);if(_0x3c126a)_0x3c126a(_0x3a4cbe);}[_0x1178('0x75')](this);_0x55fb51[_0x1178('0x76')]=function(){console[_0x1178('0x77')]('Error\x20while\x20getting\x20XML.');if(_0x40875a)_0x40875a(_0x3a4cbe);};_0x55fb51['open'](_0x1178('0x78'),_0x1c27d3);_0x55fb51['responseType']='document';_0x55fb51['send']();}},{'key':'loadView','value':function loadView(_0x5d349b,_0x455c40,_0x3de895){var _0xe21f20=_get(_getPrototypeOf(_0x4e1340[_0x1178('0x6')]),_0x1178('0x74'),this)[_0x1178('0x10')](this,_0x5d349b,_0x455c40,_0x3de895);if(!_0xe21f20)return;var _0x54f008=_0x3de895[_0x1178('0x79')](_0x1178('0x6f'),_0xe21f20);if(_0x54f008)this['theme']=diagramming['Theme'][_0x1178('0x61')](_0x54f008);}},{'key':_0x1178('0x7a'),'value':function resetVirtualScrollGrid(){var _0x2e818f=this[_0x1178('0x45')];if(!_0x2e818f[_0x1178('0x46')])return;if(!this['scrollerH']){controls['Control']['clearHandlers'](_0x2e818f[_0x1178('0x46')]);var _0x2fd5a0=controls[_0x1178('0x7b')][_0x1178('0x7c')](_0x2e818f[_0x1178('0x46')],null,!![]);var _0x59bad0=_0x2fd5a0[_0x1178('0x7d')];var _0xaa05f9=_0x2fd5a0['height'];if(_0xaa05f9!=0x0)_0x2e818f['parentNode'][_0x1178('0x7e')]=_0xaa05f9;this['parentSize']={'width':_0x59bad0,'height':_0xaa05f9};_0x2e818f[_0x1178('0x46')][_0x1178('0x7f')][_0x1178('0x80')]=_0x1178('0x81');_0x2e818f[_0x1178('0x46')][_0x1178('0x7f')]['gridTemplateColumns']=_0x1178('0x82')+this[_0x1178('0x83')]+'px';if(this[_0x1178('0x44')]==TabAlignment[_0x1178('0x84')])_0x2e818f['parentNode']['style'][_0x1178('0x85')]=this[_0x1178('0x35')]+_0x1178('0x86')+this[_0x1178('0x83')]+'px';else _0x2e818f[_0x1178('0x46')][_0x1178('0x7f')]['gridTemplateRows']=_0x1178('0x82')+this['scrollbarSize']+_0x1178('0x87')+this[_0x1178('0x35')]+'px';_0x2e818f['parentNode'][_0x1178('0x7f')][_0x1178('0x88')]='';_0x2e818f[_0x1178('0x7f')]['gridRow']=this[_0x1178('0x44')]==TabAlignment[_0x1178('0x84')]?0x2:0x1;_0x2e818f[_0x1178('0x7d')]=Math[_0x1178('0x89')](_0x2fd5a0[_0x1178('0x7d')]-this[_0x1178('0x8a')](0x1),this['diagram'][_0x1178('0x8b')][_0x1178('0x7d')]*this[_0x1178('0x8c')]);_0x2e818f[_0x1178('0x8d')]=Math[_0x1178('0x89')](_0xaa05f9-this[_0x1178('0x35')]-this[_0x1178('0x8a')](0x0),this[_0x1178('0x68')]['bounds'][_0x1178('0x8d')]*this[_0x1178('0x8c')]);this['tabStrip'][_0x1178('0x8e')]['style'][_0x1178('0x80')]='inline-block';this['tabStrip'][_0x1178('0x8e')][_0x1178('0x7f')]['gridColumn']=_0x1178('0x8f');var _0x5b5419=document[_0x1178('0x90')](_0x1178('0x91'));_0x5b5419[_0x1178('0x92')]=_0x1178('0x93');_0x5b5419['style'][_0x1178('0x94')]=this[_0x1178('0x44')]==TabAlignment[_0x1178('0x84')]?0x3:0x2;_0x5b5419[_0x1178('0x7f')][_0x1178('0x95')]=0x1;_0x5b5419[_0x1178('0x7f')]['gridColumnEnd']=0x2;_0x5b5419[_0x1178('0x7f')][_0x1178('0x8d')]=this[_0x1178('0x83')]+'px';_0x5b5419[_0x1178('0x7f')][_0x1178('0x7d')]=_0x2fd5a0[_0x1178('0x7d')]-this['scrollbarSize']+'px';_0x5b5419[_0x1178('0x7f')][_0x1178('0x96')]='auto';_0x5b5419[_0x1178('0x7f')][_0x1178('0x97')]=_0x1178('0x98');_0x5b5419[_0x1178('0x7f')][_0x1178('0x99')]=_0x1178('0x9a');this[_0x1178('0x9b')]=_0x5b5419;var _0x5b4d49=document[_0x1178('0x90')]('div');_0x5b4d49[_0x1178('0x7f')][_0x1178('0x8d')]=this['scrollbarSize']+'px';_0x5b5419[_0x1178('0x49')](_0x5b4d49);_0x2e818f[_0x1178('0x46')][_0x1178('0x49')](_0x5b5419);var _0x2a86ac=document['createElement'](_0x1178('0x91'));_0x2a86ac[_0x1178('0x92')]=_0x1178('0x9c');_0x2a86ac['style'][_0x1178('0x9d')]=this[_0x1178('0x44')]==TabAlignment[_0x1178('0x84')]?0x2:0x1;_0x2a86ac[_0x1178('0x7f')][_0x1178('0x7d')]=this[_0x1178('0x83')]+'px';_0x2a86ac[_0x1178('0x7f')]['height']=_0x2fd5a0[_0x1178('0x8d')]-this['tabsSize']-this[_0x1178('0x83')]+'px';_0x2a86ac[_0x1178('0x7f')][_0x1178('0x96')]=_0x1178('0x98');_0x2a86ac['style'][_0x1178('0x97')]=_0x1178('0x9e');_0x2a86ac['style'][_0x1178('0x99')]=_0x1178('0x9a');this[_0x1178('0x9f')]=_0x2a86ac;var _0x27532a=document[_0x1178('0x90')]('div');_0x27532a['style']['width']=this['scrollbarSize']+'px';_0x2a86ac[_0x1178('0x49')](_0x27532a);_0x2e818f[_0x1178('0x46')][_0x1178('0x49')](_0x2a86ac);controls[_0x1178('0x57')][_0x1178('0xa0')](_0x5b5419,{'scroll':this[_0x1178('0xa1')]});controls[_0x1178('0x57')][_0x1178('0xa0')](_0x2a86ac,{'scroll':this['scrollDelegate']});if(!this[_0x1178('0xa2')]){var _0x18f51e=this;this[_0x1178('0xa2')]=setInterval(function(){_0x18f51e['onVirtualResize']();},0xc8);}}}},{'key':_0x1178('0xa3'),'value':function resetTabAlignment(){this[_0x1178('0x31')]['visible']=this[_0x1178('0x44')]!=TabAlignment[_0x1178('0x30')];var _0x887adc=this[_0x1178('0x45')];if(this['tabAlignment']==TabAlignment[_0x1178('0x84')])_0x887adc[_0x1178('0x46')]['style']['gridTemplateRows']=this[_0x1178('0x35')]+_0x1178('0x86')+this['scrollbarSize']+'px';else _0x887adc['parentNode'][_0x1178('0x7f')][_0x1178('0x85')]='auto\x20'+this['scrollbarSize']+_0x1178('0x87')+this['tabsSize']+'px';_0x887adc['style']['gridRow']=this[_0x1178('0x44')]==TabAlignment['Top']?0x2:0x1;var _0x5a6970=this[_0x1178('0x45')][_0x1178('0x46')]['querySelector'](_0x1178('0xa4'));if(this[_0x1178('0x9b')]){_0x5a6970[_0x1178('0x7f')]['gridRow']=this[_0x1178('0x44')]==TabAlignment[_0x1178('0x84')]?0x3:0x2;var _0xfa5ca5=this[_0x1178('0x45')][_0x1178('0x46')]['querySelector'](_0x1178('0xa5'));_0xfa5ca5[_0x1178('0x7f')][_0x1178('0x9d')]=this['tabAlignment']==TabAlignment[_0x1178('0x84')]?0x2:0x1;}this[_0x1178('0xa6')]();}},{'key':_0x1178('0xa6'),'value':function updateCanvasSize(){if(!this[_0x1178('0x45')])return;var _0xea6f6c=this['_zoomFactor']/0x64/drawing[_0x1178('0xa7')][_0x1178('0xa8')](this[_0x1178('0xa9')][_0x1178('0xaa')]);if(this[_0x1178('0x9b')]){var _0x1768b8=this[_0x1178('0x45')][_0x1178('0x46')];this[_0x1178('0x9b')][_0x1178('0xab')][_0x1178('0x7f')][_0x1178('0x7d')]=this[_0x1178('0xa9')][_0x1178('0x8b')][_0x1178('0x7d')]*_0xea6f6c+'px';this[_0x1178('0x9f')][_0x1178('0xab')][_0x1178('0x7f')]['height']=this['canvas'][_0x1178('0x8b')][_0x1178('0x8d')]*_0xea6f6c+'px';var _0x20af42=this[_0x1178('0x8a')](0x1);var _0x11f71d=this[_0x1178('0x8a')](0x0);this[_0x1178('0x9f')]['style']['width']=_0x20af42+'px';this[_0x1178('0x9b')][_0x1178('0x7f')][_0x1178('0x8d')]=_0x11f71d+'px';_0x1768b8[_0x1178('0x7f')][_0x1178('0xac')]='auto\x20'+_0x20af42+'px';if(this[_0x1178('0x44')]==TabAlignment[_0x1178('0x84')])_0x1768b8[_0x1178('0x7f')]['gridTemplateRows']=this[_0x1178('0x35')]+_0x1178('0x86')+_0x11f71d+'px';else _0x1768b8[_0x1178('0x7f')]['gridTemplateRows']=_0x1178('0x82')+_0x11f71d+_0x1178('0x87')+this[_0x1178('0x35')]+'px';var _0x5bc5d1=controls['DomUtils']['getBounds'](_0x1768b8,null,!![]);var _0x2952ff=_0x5bc5d1[_0x1178('0x8d')];if(_0x2952ff==0x0)_0x2952ff=_0x1768b8[_0x1178('0x7e')];if(_0x2952ff==0x0)_0x2952ff=this['canvas'][_0x1178('0x8b')]['height']*_0xea6f6c;this['element'][_0x1178('0x7d')]=Math[_0x1178('0x89')](_0x5bc5d1[_0x1178('0x7d')]-_0x20af42,this[_0x1178('0xa9')][_0x1178('0x8b')][_0x1178('0x7d')]*_0xea6f6c);this[_0x1178('0x45')][_0x1178('0x8d')]=Math[_0x1178('0x89')](_0x2952ff-this[_0x1178('0x35')]-_0x11f71d,this['canvas']['bounds'][_0x1178('0x8d')]*_0xea6f6c);this[_0x1178('0x9b')]['style']['width']=_0x5bc5d1['width']-_0x20af42+'px';this['scrollerV'][_0x1178('0x7f')][_0x1178('0x8d')]=_0x2952ff-this['tabsSize']-_0x11f71d+'px';}this[_0x1178('0xa9')][_0x1178('0xad')]=null;this[_0x1178('0xa9')][_0x1178('0xae')]();this[_0x1178('0x68')]['raiseEvent'](diagramming[_0x1178('0x4e')][_0x1178('0xaf')],controls[_0x1178('0xb0')][_0x1178('0xb1')]);}},{'key':'resetTabs','value':function resetTabs(){var _0x19f3db=this;this[_0x1178('0x31')]['items']['clear']();this['document'][_0x1178('0x24')]['forEach'](function(_0x2e5222,_0x3506d7){var _0x3b587e=new commonUi[(_0x1178('0xb2'))](commonUi[_0x1178('0xb3')][_0x1178('0xb4')],_0x2e5222['title']);_0x3b587e[_0x1178('0xb5')]=_0x2e5222[_0x1178('0xb5')];_0x3b587e[_0x1178('0xb6')]=_0x2e5222[_0x1178('0xb7')];_0x19f3db[_0x1178('0x31')][_0x1178('0x2a')][_0x1178('0xb8')](_0x3b587e);_0x2e5222[_0x1178('0xb9')]=_0x3b587e;});}},{'key':_0x1178('0x3b'),'value':function onTabMouseDown(_0x1674b1,_0xa2b077){if(!_0xa2b077[_0x1178('0xba')][_0x1178('0xbb')])return;if(_0xa2b077[_0x1178('0xba')][_0x1178('0xbc')]=='mfc-add'){var _0x592c04=new diagramming['DiagramPage']();_0x592c04[_0x1178('0xbd')]=_0x1178('0x68')+(++this['_lastIndex'])[_0x1178('0xbe')]();this[_0x1178('0x28')][_0x1178('0xbf')](_0x592c04);this['selectedPage']=_0x592c04;return;}if(_0xa2b077[_0x1178('0xba')][_0x1178('0xbc')]){if(_0xa2b077[_0x1178('0xba')][_0x1178('0xbc')]==_0x1178('0xc0'))this['selectedPage']=this[_0x1178('0x2a')]['first']();else if(_0xa2b077['item'][_0x1178('0xbc')]==_0x1178('0xc1'))this[_0x1178('0xc2')]--;else if(_0xa2b077[_0x1178('0xba')][_0x1178('0xbc')]==_0x1178('0xc3'))this[_0x1178('0xc2')]++;else if(_0xa2b077[_0x1178('0xba')]['dataMfc']==_0x1178('0xc4'))this[_0x1178('0x4b')]=this[_0x1178('0x2a')][_0x1178('0xc5')]();return;}var _0x2aed50=this['getItemByHeader'](_0xa2b077[_0x1178('0xba')]);if(_0x2aed50){if(controls[_0x1178('0x7b')][_0x1178('0xc6')](_0xa2b077[_0x1178('0xc7')][_0x1178('0xc8')],'mfc-tabbutton-close')){var _0x46b78a=this[_0x1178('0xc2')];if(this[_0x1178('0x4b')]==_0x2aed50){if(_0x2aed50==this['items'][_0x1178('0xc9')]())_0x46b78a++;}if(this[_0x1178('0x2a')][_0x1178('0xca')](_0x2aed50)){this[_0x1178('0x28')][_0x1178('0x5f')](diagramming[_0x1178('0x4e')]['documentChanged'],{'oldIndex':_0x46b78a});this[_0x1178('0xc2')]=--_0x46b78a;}}else this[_0x1178('0x4b')]=_0x2aed50;}}},{'key':_0x1178('0x40'),'value':function onTabDrop(_0x5d230a,_0x142f08){var _0x2485b9=_0x5d230a['getGroupItems'](_0x142f08['item'])[_0x1178('0xcb')](_0x142f08[_0x1178('0xba')]);var _0xe867bd=this[_0x1178('0xcc')](_0x142f08[_0x1178('0xba')]);this['items'][_0x1178('0xcd')][_0x1178('0xce')](this[_0x1178('0x2a')][_0x1178('0xcb')](_0xe867bd),0x1);this[_0x1178('0x2a')]['_items']['splice'](_0x2485b9,0x0,_0xe867bd);}},{'key':_0x1178('0x2d'),'value':function onItemsChanging(_0x35383b,_0x9f2cb1){if(_0x9f2cb1['action']==common['NotifyCollectionChangedAction'][_0x1178('0xcf')]){var _0x3c4b2b;for(var _0x33d06a=0x0;_0x33d06a<_0x9f2cb1['m_newItems']['length'];_0x33d06a++){var _0x5ec9dd=this[_0x1178('0xd0')](Events[_0x1178('0x19')],_0x9f2cb1[_0x1178('0xd1')][_0x33d06a]);if(!_0x5ec9dd)_0x3c4b2b=!![];}_0x9f2cb1['setCancel'](_0x3c4b2b);}else{var _0x3c4b2b;for(var _0x33d06a=0x0;_0x33d06a<_0x9f2cb1[_0x1178('0xd2')][_0x1178('0x25')];_0x33d06a++){var _0x5ec9dd=this[_0x1178('0xd0')](Events[_0x1178('0x1b')],null,_0x9f2cb1['m_oldItems'][_0x33d06a]);if(!_0x5ec9dd)_0x3c4b2b=!![];}_0x9f2cb1[_0x1178('0xd3')](_0x3c4b2b);}}},{'key':'onItemsChanged','value':function onItemsChanged(_0xa6c674,_0x2580b9){if(_0x2580b9[_0x1178('0xd4')]==common[_0x1178('0xd5')][_0x1178('0xcf')]){for(var _0x580e8d=0x0;_0x580e8d<_0x2580b9[_0x1178('0xd1')][_0x1178('0x25')];_0x580e8d++){this[_0x1178('0x5f')](Events[_0x1178('0x1a')],new PageEventArgs({'page':_0x2580b9[_0x1178('0xd1')][_0x580e8d]}));}}else{for(var _0x580e8d=0x0;_0x580e8d<_0x2580b9[_0x1178('0xd2')]['length'];_0x580e8d++){this['raiseEvent'](Events[_0x1178('0x1c')],new PageEventArgs({'oldPage':_0x2580b9[_0x1178('0xd2')][_0x580e8d]}));}}this[_0x1178('0x43')]();this[_0x1178('0x31')][_0x1178('0xd6')]();}},{'key':'selectedPage','get':function get(){return this[_0x1178('0xd7')];},'set':function set(_0x1e8672){if(_0x1e8672){if(this['onPageValidateAction'](Events['pageChanging'],this[_0x1178('0xd7')],_0x1e8672)){var _0x48c8e7=this[_0x1178('0xd7')];this['_selectedPage']=_0x1e8672;this[_0x1178('0xd8')](this[_0x1178('0xd7')]);this[_0x1178('0xd7')][_0x1178('0xae')]();this[_0x1178('0x31')][_0x1178('0xd9')](this[_0x1178('0xd7')][_0x1178('0xb9')]);this[_0x1178('0x5f')](Events[_0x1178('0x18')],new PageEventArgs({'page':this[_0x1178('0xd7')],'oldPage':_0x48c8e7}));}}}},{'key':_0x1178('0xc2'),'get':function get(){if(this['_selectedPage'])return this['items']['indexOfItem'](this['_selectedPage']);return-0x1;},'set':function set(_0x1664d4){var _0xb23270=this['items']['items']()[_0x1664d4];if(_0xb23270)this['selectedPage']=_0xb23270;}},{'key':_0x1178('0xcc'),'value':function getItemByHeader(_0x327c0d){return this[_0x1178('0x2a')][_0x1178('0xda')](function(_0x4d66d3){return _0x4d66d3[_0x1178('0xb9')][_0x1178('0x45')]==_0x327c0d[_0x1178('0x45')];})['first']();}},{'key':_0x1178('0x28'),'get':function get(){return this[_0x1178('0xdb')];},'set':function set(_0x5484b2){if(this[_0x1178('0xdb')]!=_0x5484b2){if(this['document']!=null)this[_0x1178('0xdb')][_0x1178('0x53')](diagramming[_0x1178('0x4e')][_0x1178('0xdc')],this[_0x1178('0xdd')]);this[_0x1178('0xdb')]=_0x5484b2;this[_0x1178('0xdb')]['addEventListener'](diagramming[_0x1178('0x4e')][_0x1178('0xdc')],this[_0x1178('0xdd')]);this[_0x1178('0x5f')](diagramming[_0x1178('0x4e')][_0x1178('0xde')],controls[_0x1178('0xb0')][_0x1178('0xb1')]);}}},{'key':_0x1178('0x35'),'get':function get(){if(this[_0x1178('0x44')]==TabAlignment['None'])return 0x0;return this[_0x1178('0x31')][_0x1178('0x8d')][_0x1178('0x3')];},'set':function set(_0x3e9fca){if(this[_0x1178('0x31')]['height'][_0x1178('0x3')]!=_0x3e9fca){this['tabStrip']['height']=new common[(_0x1178('0xdf'))](_0x3e9fca,common[_0x1178('0xe0')][_0x1178('0xe1')]);this[_0x1178('0xa3')]();}}},{'key':_0x1178('0x44'),'get':function get(){return this[_0x1178('0x2f')];},'set':function set(_0x3bc190){if(this[_0x1178('0x2f')]!=_0x3bc190){this[_0x1178('0x2f')]=_0x3bc190;this['resetTabAlignment']();}}},{'key':'showTabCloseButtons','get':function get(){return this[_0x1178('0x31')][_0x1178('0xe2')];},'set':function set(_0x38bf03){if(this[_0x1178('0x31')][_0x1178('0xe2')]!=_0x38bf03){this[_0x1178('0x31')][_0x1178('0xe2')]=_0x38bf03;}}},{'key':_0x1178('0x37'),'get':function get(){return this[_0x1178('0x31')][_0x1178('0xe3')]==commonUi['TabsScrollMode'][_0x1178('0xe4')];},'set':function set(_0x5101a9){if(this[_0x1178('0x31')][_0x1178('0xe3')]==commonUi[_0x1178('0xe5')][_0x1178('0xe4')]!=_0x5101a9){this['tabStrip'][_0x1178('0xe3')]=_0x5101a9?commonUi[_0x1178('0xe5')][_0x1178('0xe4')]:commonUi[_0x1178('0xe5')][_0x1178('0x30')];}}},{'key':_0x1178('0x59'),'get':function get(){return this[_0x1178('0x31')]['showAddButton'];},'set':function set(_0x200ad9){if(this[_0x1178('0x31')][_0x1178('0x59')]!=_0x200ad9){this[_0x1178('0x31')][_0x1178('0x59')]=_0x200ad9;}}},{'key':_0x1178('0x5a'),'get':function get(){return this[_0x1178('0x31')][_0x1178('0xe6')];},'set':function set(_0x21f909){if(this[_0x1178('0x31')][_0x1178('0xe6')]!=_0x21f909){this[_0x1178('0x31')][_0x1178('0xe6')]=_0x21f909;}}},{'key':_0x1178('0x5b'),'get':function get(){return this[_0x1178('0xe7')];},'set':function set(_0x2262e9){if(this[_0x1178('0xe7')]!=_0x2262e9){this[_0x1178('0xe7')]=_0x2262e9;if(this[_0x1178('0xe7')])this[_0x1178('0x31')][_0x1178('0x5b')]=this[_0x1178('0xe7')]['id'];else this['tabStrip'][_0x1178('0x5b')]='';}}},{'key':_0x1178('0xe8'),'value':function setTheme(_0x16ec06,_0x9ab004){this[_0x1178('0x5b')]=_0x16ec06;if(_0x9ab004){this[_0x1178('0x2a')]['forEach'](function(_0x29934a){return _0x29934a['theme']=_0x16ec06;});}}},{'key':_0x1178('0xe9'),'value':function onDataLoaded(_0x45b109,_0x41634e){this['onDocumentChanged'](_0x45b109,_0x41634e);this[_0x1178('0x4b')]=this[_0x1178('0x2a')][_0x1178('0xc5')]();this[_0x1178('0x29')]=this['items'][_0x1178('0xea')]();}},{'key':_0x1178('0x27'),'value':function onDocumentChanged(_0x3557bd,_0x283900){var _0x4f0c63=this;var _0x1c813f=this[_0x1178('0x28')]['pages'][_0x1178('0x25')]==0x0;if(_0x1c813f){this[_0x1178('0x68')]=new diagramming[(_0x1178('0xeb'))]();this[_0x1178('0xd7')]=null;}this[_0x1178('0xbb')]=!_0x1c813f;this[_0x1178('0x2a')]=new commonCollections[(_0x1178('0x2b'))](this[_0x1178('0x28')][_0x1178('0x24')]);this[_0x1178('0x2a')][_0x1178('0xec')]['addEventListener'](function(_0x3557bd,_0x283900){_0x4f0c63[_0x1178('0x2d')](_0x3557bd,_0x283900);});this[_0x1178('0x2a')][_0x1178('0xed')][_0x1178('0x2c')](function(_0x3557bd,_0x283900){_0x4f0c63[_0x1178('0x2e')](_0x3557bd,_0x283900);});this[_0x1178('0x43')]();this[_0x1178('0x31')][_0x1178('0xd6')]();if(_0x283900[_0x1178('0xee')]!=undefined)this[_0x1178('0xc2')]=Math[_0x1178('0xef')](--_0x283900['oldIndex'],0x0);if(_0x283900[_0x1178('0xf0')]!=undefined)this[_0x1178('0xc2')]=_0x283900[_0x1178('0xf0')];}},{'key':'onPageValidateAction','value':function onPageValidateAction(_0x5808e1,_0x4946fd,_0x46e35d){var _0x2dd501=new PageEventArgs({'page':_0x4946fd,'oldPage':_0x46e35d});this['raiseEvent'](_0x5808e1,_0x2dd501);if(_0x2dd501[_0x1178('0xf1')])return![];return!![];}}],[{'key':_0x1178('0x9'),'value':function create(_0x395792,_0x427b1d){return controls[_0x1178('0x57')]['createControl'](_0x4e1340,_0x395792,_0x427b1d);}}]);return _0x4e1340;}(diagramming[_0x1178('0xf2')]);exports[_0x1178('0x4e')]=Events;exports[_0x1178('0xf3')]=PageEventArgs;exports[_0x1178('0xf4')]=TabAlignment;exports['TabbedDiagramView']=TabbedDiagramView;
@@ -1 +1 @@
1
- var _0x22d0=['pageChanging','pageChanged','pageAdding','pageAdded','pageRemoving','pageRemoved','sender','page','_page','oldPage','_oldPage','pages','length','diagram1','_lastIndex','items','_document','collectionChanging','addEventListener','onItemsChanging','collectionChanged','onItemsChanged','_tabAlignment','None','tabStrip','parent','req','visible','showAddButton','tabsSize','showTabCloseButtons','showNavigationButtons','initialize','_tabMouseDownHandler','onTabMouseDown','itemMouseDown','closeButtonClick','addButtonClick','navButtonClick','_tabDropHandler','onTabDrop','itemDrop','resetTabs','tabAlignment','Top','parentNode','insertBefore','draw','element','appendChild','attach','dispose','document','dataLoaded','queryView','queryViewDelegate','detachDiagramEvents','removeEventListener','dataLoadedDelegate','saveToXml','open','setRequestHeader','Content-Type','toXmlDocument','diagram','selectSingleNode','DiagramDocument','View','send','saveView','theme','Theme','loadFromXml','onload','responseXML','fromXmlDocument','loadView','onerror','log','Error\x20while\x20getting\x20XML.','GET','responseType','fromId','resetVirtualScrollGrid','scrollerH','getBounds','width','height','style','display','gridTemplateColumns','auto\x20','gridTemplateRows','px\x20auto\x20','scrollbarSize','min','bounds','scale','_element','gridColumn','1\x20/\x20-1','createElement','className','gridRow','gridColumnStart','gridColumnEnd','overflowY','hidden','div','mf_diagram_scrollerV','gridRowStart','overflowX','backgroundColor','addHandlers','scrollDelegate','resizeTimeoutId','onVirtualResize','resetTabAlignment','querySelector','.mf_diagram_scrollerH','updateCanvasSize','_zoomFactor','getPixel','canvas','measureUnit','firstChild','getScrollbarSize','scrollerV','px\x20','invalidRect','repaint','raiseEvent','sizeChanged','Empty','clear','forEach','Label','title','titleColor','iconUrl','item','mfc-add','toString','dataMfc','selectedPage','mfc-prev','mfc-next','selectedIndex','mfc-last','last','hasCssClass','rawEventArgs','target','mfc-tabbutton-close','first','remove','getGroupItems','indexOfItem','getItemByHeader','_items','splice','action','m_newItems','onPageValidateAction','m_oldItems','cancel','resetButtons','_selectedPage','setDiagram','selectItem','header','where','value','Pixel','showCloseButtons','scrollMode','NavButtons','allowReorder','allowDrag','_theme','setTheme','onDataLoaded','createControl'];var _0x4eb4=function(_0x388fca,_0x232a4c){_0x388fca=_0x388fca-0x0;var _0x208c99=_0x22d0[_0x388fca];return _0x208c99;};import{CancelEventArgs,Control,DomUtils,EventArgs}from'@mindfusion/controls';import{DiagramView,DiagramDocument,DiagramPage,Events as _0x5729ef,XmlPersistContext,Theme}from'@mindfusion/diagramming';import{NotifyCollectionChangedAction,Unit,UnitType}from'@mindfusion/common';import{TabStrip,ToolStripItem,ToolStripItemType,TabsScrollMode}from'@mindfusion/common-ui';import{ObservableCollection}from'@mindfusion/common-collections';import{GraphicsUnit}from'@mindfusion/drawing';const TabAlignment={'None':0x0,'Top':0x1,'Bottom':0x3};class Events{static get['pageChanging'](){return _0x4eb4('0x0');}static get['pageChanged'](){return _0x4eb4('0x1');}static get[_0x4eb4('0x2')](){return _0x4eb4('0x2');}static get[_0x4eb4('0x3')](){return _0x4eb4('0x3');}static get[_0x4eb4('0x4')](){return _0x4eb4('0x4');}static get[_0x4eb4('0x5')](){return _0x4eb4('0x5');}}class PageEventArgs extends CancelEventArgs{constructor(args){super();if(args[_0x4eb4('0x6')])this[_0x4eb4('0x6')]=args['sender'];if(args[_0x4eb4('0x7')])this[_0x4eb4('0x8')]=args[_0x4eb4('0x7')];if(args[_0x4eb4('0x9')])this[_0x4eb4('0xa')]=args[_0x4eb4('0x9')];}get[_0x4eb4('0x7')](){return this[_0x4eb4('0x8')];}get['oldPage'](){return this['_oldPage'];}}class TabbedDiagramView extends DiagramView{constructor(element,document){var doc=document||new DiagramDocument();if(!doc[_0x4eb4('0xb')][_0x4eb4('0xc')]){var page=new DiagramPage();page['title']=_0x4eb4('0xd');doc[_0x4eb4('0xb')]['push'](page);}super(element,doc[_0x4eb4('0xb')][0x0]);this['_document']=doc;this[_0x4eb4('0xe')]=0x1;this[_0x4eb4('0xf')]=new ObservableCollection(this[_0x4eb4('0x10')][_0x4eb4('0xb')]);this[_0x4eb4('0xf')][_0x4eb4('0x11')][_0x4eb4('0x12')]((sender,args)=>{this[_0x4eb4('0x13')](sender,args);});this['items'][_0x4eb4('0x14')][_0x4eb4('0x12')]((sender,args)=>{this[_0x4eb4('0x15')](sender,args);});this[_0x4eb4('0x16')]=TabAlignment[_0x4eb4('0x17')];this['tabStrip']=new TabStrip();this[_0x4eb4('0x18')][_0x4eb4('0x19')]=this;this[_0x4eb4('0x18')][_0x4eb4('0x1a')]=()=>{return!![];};this[_0x4eb4('0x18')][_0x4eb4('0x1b')]=![];this['tabStrip']['autoSizeTabs']=![];this[_0x4eb4('0x18')][_0x4eb4('0x1c')]=![];this[_0x4eb4('0x1d')]=0x14;this[_0x4eb4('0x1e')]=![];this[_0x4eb4('0x1f')]=![];}[_0x4eb4('0x20')](){super[_0x4eb4('0x20')]();this[_0x4eb4('0x21')]=(sender,args)=>{this[_0x4eb4('0x22')](sender,args);};this[_0x4eb4('0x18')][_0x4eb4('0x23')][_0x4eb4('0x12')](this[_0x4eb4('0x21')]);this[_0x4eb4('0x18')][_0x4eb4('0x24')]['addEventListener'](this[_0x4eb4('0x21')]);this[_0x4eb4('0x18')][_0x4eb4('0x25')]['addEventListener'](this[_0x4eb4('0x21')]);this[_0x4eb4('0x18')][_0x4eb4('0x26')]['addEventListener'](this[_0x4eb4('0x21')]);this[_0x4eb4('0x27')]=(sender,args)=>{this[_0x4eb4('0x28')](sender,args);};this[_0x4eb4('0x18')][_0x4eb4('0x29')][_0x4eb4('0x12')](this[_0x4eb4('0x27')]);this[_0x4eb4('0x2a')]();if(this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x2c')])this['element'][_0x4eb4('0x2d')][_0x4eb4('0x2e')](this[_0x4eb4('0x18')][_0x4eb4('0x2f')](),this['element']);else this[_0x4eb4('0x30')][_0x4eb4('0x2d')][_0x4eb4('0x31')](this[_0x4eb4('0x18')]['draw']());this[_0x4eb4('0x18')][_0x4eb4('0x32')]();this['selectedPage']=this[_0x4eb4('0xf')]['last']();}[_0x4eb4('0x33')](){this[_0x4eb4('0xf')]['forEach'](item=>item[_0x4eb4('0x33')]());this[_0x4eb4('0x18')][_0x4eb4('0x33')]();super['dispose']();}['attachDiagramEvents'](){this[_0x4eb4('0x34')][_0x4eb4('0x12')](_0x5729ef[_0x4eb4('0x35')],this['dataLoadedDelegate']);this['document'][_0x4eb4('0x12')](_0x5729ef[_0x4eb4('0x36')],this[_0x4eb4('0x37')]);}[_0x4eb4('0x38')](){this[_0x4eb4('0x34')][_0x4eb4('0x39')](_0x5729ef['dataLoaded'],this[_0x4eb4('0x3a')]);this[_0x4eb4('0x34')][_0x4eb4('0x39')](_0x5729ef[_0x4eb4('0x36')],this[_0x4eb4('0x37')]);}[_0x4eb4('0x3b')](url){var xhr=new XMLHttpRequest();xhr[_0x4eb4('0x3c')]('POST',url,!![]);xhr[_0x4eb4('0x3d')](_0x4eb4('0x3e'),'text/xml');var xmlDoc=this[_0x4eb4('0x34')][_0x4eb4('0x3f')]();var context=new XmlPersistContext(this[_0x4eb4('0x40')],xmlDoc);var rootElement=context[_0x4eb4('0x41')](_0x4eb4('0x42'),xmlDoc);var viewElement=xmlDoc['createElement'](_0x4eb4('0x43'));rootElement['appendChild'](viewElement);this['saveView'](viewElement,context);var serializer=new XMLSerializer();xhr[_0x4eb4('0x44')](serializer['serializeToString'](xmlDoc));}[_0x4eb4('0x45')](element,context){super[_0x4eb4('0x45')](element,context);if(this[_0x4eb4('0x46')])context['writeString'](this[_0x4eb4('0x46')]['id'],_0x4eb4('0x47'),element);}[_0x4eb4('0x48')](fileUrl,onLoad,onError){var diagram=this[_0x4eb4('0x34')];var xhr=new XMLHttpRequest();xhr[_0x4eb4('0x49')]=function(){var document=xhr[_0x4eb4('0x4a')];diagram[_0x4eb4('0x4b')](document);var context=new XmlPersistContext(diagram,document);var diagramElement=context[_0x4eb4('0x41')](_0x4eb4('0x42'),document);this[_0x4eb4('0x4c')](_0x4eb4('0x43'),diagramElement,context);if(onLoad)onLoad(diagram);}['bind'](this);xhr[_0x4eb4('0x4d')]=function(){console[_0x4eb4('0x4e')](_0x4eb4('0x4f'));if(onError)onError(diagram);};xhr[_0x4eb4('0x3c')](_0x4eb4('0x50'),fileUrl);xhr[_0x4eb4('0x51')]='document';xhr[_0x4eb4('0x44')]();}[_0x4eb4('0x4c')](elementName,parentElement,context){var element=super['loadView'](elementName,parentElement,context);if(!element)return;var themeId=context['readString']('Theme',element);if(themeId)this[_0x4eb4('0x46')]=Theme[_0x4eb4('0x52')](themeId);}[_0x4eb4('0x53')](){var canvas=this['element'];if(!canvas[_0x4eb4('0x2d')])return;if(!this[_0x4eb4('0x54')]){Control['clearHandlers'](canvas[_0x4eb4('0x2d')]);var bounds=DomUtils[_0x4eb4('0x55')](canvas[_0x4eb4('0x2d')],null,!![]);var w=bounds[_0x4eb4('0x56')];var h=bounds[_0x4eb4('0x57')];if(h!=0x0)canvas[_0x4eb4('0x2d')]['_mf_originalHeight']=h;this['parentSize']={'width':w,'height':h};canvas['parentNode'][_0x4eb4('0x58')][_0x4eb4('0x59')]='grid';canvas[_0x4eb4('0x2d')]['style'][_0x4eb4('0x5a')]=_0x4eb4('0x5b')+this['scrollbarSize']+'px';if(this[_0x4eb4('0x2b')]==TabAlignment['Top'])canvas['parentNode'][_0x4eb4('0x58')][_0x4eb4('0x5c')]=this['tabsSize']+_0x4eb4('0x5d')+this[_0x4eb4('0x5e')]+'px';else canvas[_0x4eb4('0x2d')]['style'][_0x4eb4('0x5c')]=_0x4eb4('0x5b')+this[_0x4eb4('0x5e')]+'px\x20'+this[_0x4eb4('0x1d')]+'px';canvas[_0x4eb4('0x2d')]['style']['overflow']='';canvas[_0x4eb4('0x58')]['gridRow']=this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x2c')]?0x2:0x1;canvas[_0x4eb4('0x56')]=Math[_0x4eb4('0x5f')](bounds['width']-this['getScrollbarSize'](0x1),this[_0x4eb4('0x40')][_0x4eb4('0x60')][_0x4eb4('0x56')]*this[_0x4eb4('0x61')]);canvas[_0x4eb4('0x57')]=Math[_0x4eb4('0x5f')](h-this[_0x4eb4('0x1d')]-this['getScrollbarSize'](0x0),this[_0x4eb4('0x40')][_0x4eb4('0x60')]['height']*this['scale']);this[_0x4eb4('0x18')]['_element'][_0x4eb4('0x58')][_0x4eb4('0x59')]='inline-block';this[_0x4eb4('0x18')][_0x4eb4('0x62')]['style'][_0x4eb4('0x63')]=_0x4eb4('0x64');var scrollerH=document[_0x4eb4('0x65')]('div');scrollerH[_0x4eb4('0x66')]='mf_diagram_scrollerH';scrollerH[_0x4eb4('0x58')][_0x4eb4('0x67')]=this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x2c')]?0x3:0x2;scrollerH[_0x4eb4('0x58')][_0x4eb4('0x68')]=0x1;scrollerH[_0x4eb4('0x58')][_0x4eb4('0x69')]=0x2;scrollerH[_0x4eb4('0x58')][_0x4eb4('0x57')]=this[_0x4eb4('0x5e')]+'px';scrollerH['style'][_0x4eb4('0x56')]=bounds[_0x4eb4('0x56')]-this['scrollbarSize']+'px';scrollerH[_0x4eb4('0x58')]['overflowX']='auto';scrollerH[_0x4eb4('0x58')][_0x4eb4('0x6a')]=_0x4eb4('0x6b');scrollerH[_0x4eb4('0x58')]['backgroundColor']='#eee';this[_0x4eb4('0x54')]=scrollerH;var innerH=document[_0x4eb4('0x65')]('div');innerH[_0x4eb4('0x58')]['height']=this[_0x4eb4('0x5e')]+'px';scrollerH[_0x4eb4('0x31')](innerH);canvas['parentNode'][_0x4eb4('0x31')](scrollerH);var scrollerV=document['createElement'](_0x4eb4('0x6c'));scrollerV[_0x4eb4('0x66')]=_0x4eb4('0x6d');scrollerV[_0x4eb4('0x58')][_0x4eb4('0x6e')]=this['tabAlignment']==TabAlignment[_0x4eb4('0x2c')]?0x2:0x1;scrollerV[_0x4eb4('0x58')][_0x4eb4('0x56')]=this[_0x4eb4('0x5e')]+'px';scrollerV[_0x4eb4('0x58')]['height']=bounds['height']-this[_0x4eb4('0x1d')]-this[_0x4eb4('0x5e')]+'px';scrollerV['style'][_0x4eb4('0x6f')]='hidden';scrollerV[_0x4eb4('0x58')][_0x4eb4('0x6a')]='auto';scrollerV['style'][_0x4eb4('0x70')]='#eee';this['scrollerV']=scrollerV;var innerV=document[_0x4eb4('0x65')]('div');innerV['style'][_0x4eb4('0x56')]=this[_0x4eb4('0x5e')]+'px';scrollerV[_0x4eb4('0x31')](innerV);canvas['parentNode']['appendChild'](scrollerV);Control[_0x4eb4('0x71')](scrollerH,{'scroll':this['scrollDelegate']});Control['addHandlers'](scrollerV,{'scroll':this[_0x4eb4('0x72')]});if(!this[_0x4eb4('0x73')]){var thisObj=this;this[_0x4eb4('0x73')]=setInterval(function(){thisObj[_0x4eb4('0x74')]();},0xc8);}}}[_0x4eb4('0x75')](){this[_0x4eb4('0x18')]['visible']=this[_0x4eb4('0x2b')]!=TabAlignment[_0x4eb4('0x17')];var canvas=this[_0x4eb4('0x30')];if(this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x2c')])canvas[_0x4eb4('0x2d')][_0x4eb4('0x58')]['gridTemplateRows']=this[_0x4eb4('0x1d')]+_0x4eb4('0x5d')+this['scrollbarSize']+'px';else canvas['parentNode'][_0x4eb4('0x58')][_0x4eb4('0x5c')]=_0x4eb4('0x5b')+this['scrollbarSize']+'px\x20'+this[_0x4eb4('0x1d')]+'px';canvas[_0x4eb4('0x58')][_0x4eb4('0x67')]=this['tabAlignment']==TabAlignment[_0x4eb4('0x2c')]?0x2:0x1;var scrollerH=this[_0x4eb4('0x30')][_0x4eb4('0x2d')][_0x4eb4('0x76')](_0x4eb4('0x77'));if(this[_0x4eb4('0x54')]){scrollerH[_0x4eb4('0x58')][_0x4eb4('0x67')]=this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x2c')]?0x3:0x2;var scrollerV=this[_0x4eb4('0x30')][_0x4eb4('0x2d')][_0x4eb4('0x76')]('.mf_diagram_scrollerV');scrollerV[_0x4eb4('0x58')][_0x4eb4('0x6e')]=this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x2c')]?0x2:0x1;}this[_0x4eb4('0x78')]();}['updateCanvasSize'](){if(!this['element'])return;var scale=this[_0x4eb4('0x79')]/0x64/GraphicsUnit[_0x4eb4('0x7a')](this[_0x4eb4('0x7b')][_0x4eb4('0x7c')]);if(this[_0x4eb4('0x54')]){var parentDiv=this[_0x4eb4('0x30')][_0x4eb4('0x2d')];this[_0x4eb4('0x54')][_0x4eb4('0x7d')][_0x4eb4('0x58')]['width']=this['canvas']['bounds'][_0x4eb4('0x56')]*scale+'px';this['scrollerV']['firstChild'][_0x4eb4('0x58')]['height']=this[_0x4eb4('0x7b')]['bounds'][_0x4eb4('0x57')]*scale+'px';var vScrollSize=this[_0x4eb4('0x7e')](0x1);var hScrollSize=this[_0x4eb4('0x7e')](0x0);this[_0x4eb4('0x7f')]['style'][_0x4eb4('0x56')]=vScrollSize+'px';this[_0x4eb4('0x54')][_0x4eb4('0x58')][_0x4eb4('0x57')]=hScrollSize+'px';parentDiv[_0x4eb4('0x58')][_0x4eb4('0x5a')]='auto\x20'+vScrollSize+'px';if(this[_0x4eb4('0x2b')]==TabAlignment['Top'])parentDiv[_0x4eb4('0x58')]['gridTemplateRows']=this['tabsSize']+_0x4eb4('0x5d')+hScrollSize+'px';else parentDiv[_0x4eb4('0x58')]['gridTemplateRows']=_0x4eb4('0x5b')+hScrollSize+_0x4eb4('0x80')+this[_0x4eb4('0x1d')]+'px';var bounds=DomUtils[_0x4eb4('0x55')](parentDiv,null,!![]);var h=bounds[_0x4eb4('0x57')];if(h==0x0)h=parentDiv['_mf_originalHeight'];if(h==0x0)h=this[_0x4eb4('0x7b')][_0x4eb4('0x60')]['height']*scale;this[_0x4eb4('0x30')][_0x4eb4('0x56')]=Math[_0x4eb4('0x5f')](bounds[_0x4eb4('0x56')]-vScrollSize,this[_0x4eb4('0x7b')][_0x4eb4('0x60')][_0x4eb4('0x56')]*scale);this[_0x4eb4('0x30')]['height']=Math['min'](h-this[_0x4eb4('0x1d')]-hScrollSize,this[_0x4eb4('0x7b')][_0x4eb4('0x60')][_0x4eb4('0x57')]*scale);this[_0x4eb4('0x54')][_0x4eb4('0x58')]['width']=bounds['width']-vScrollSize+'px';this[_0x4eb4('0x7f')][_0x4eb4('0x58')][_0x4eb4('0x57')]=h-this[_0x4eb4('0x1d')]-hScrollSize+'px';}this['canvas'][_0x4eb4('0x81')]=null;this['canvas'][_0x4eb4('0x82')]();this[_0x4eb4('0x40')][_0x4eb4('0x83')](_0x5729ef[_0x4eb4('0x84')],EventArgs[_0x4eb4('0x85')]);}['resetTabs'](){this['tabStrip'][_0x4eb4('0xf')][_0x4eb4('0x86')]();this['document'][_0x4eb4('0xb')][_0x4eb4('0x87')]((page,index)=>{var header=new ToolStripItem(ToolStripItemType[_0x4eb4('0x88')],page[_0x4eb4('0x89')]);header[_0x4eb4('0x8a')]=page[_0x4eb4('0x8a')];header['imageSrc']=page[_0x4eb4('0x8b')];this['tabStrip']['items']['add'](header);page['header']=header;});}[_0x4eb4('0x22')](sender,args){if(!args['item']['enabled'])return;if(args[_0x4eb4('0x8c')]['dataMfc']==_0x4eb4('0x8d')){var page=new DiagramPage();page[_0x4eb4('0x89')]='diagram'+(++this[_0x4eb4('0xe')])[_0x4eb4('0x8e')]();this[_0x4eb4('0xf')]['add'](page);this['selectedPage']=page;return;}if(args[_0x4eb4('0x8c')]['dataMfc']){if(args['item'][_0x4eb4('0x8f')]=='mfc-first')this[_0x4eb4('0x90')]=this['items']['first']();else if(args[_0x4eb4('0x8c')][_0x4eb4('0x8f')]==_0x4eb4('0x91'))this['selectedIndex']--;else if(args[_0x4eb4('0x8c')]['dataMfc']==_0x4eb4('0x92'))this[_0x4eb4('0x93')]++;else if(args[_0x4eb4('0x8c')][_0x4eb4('0x8f')]==_0x4eb4('0x94'))this[_0x4eb4('0x90')]=this[_0x4eb4('0xf')][_0x4eb4('0x95')]();return;}var item=this['getItemByHeader'](args[_0x4eb4('0x8c')]);if(item){if(DomUtils[_0x4eb4('0x96')](args[_0x4eb4('0x97')][_0x4eb4('0x98')],_0x4eb4('0x99'))){var ni=this[_0x4eb4('0x93')];if(this[_0x4eb4('0x90')]==item){if(item==this[_0x4eb4('0xf')][_0x4eb4('0x9a')]())ni++;}this['items'][_0x4eb4('0x9b')](item);this[_0x4eb4('0x93')]=--ni;}else this[_0x4eb4('0x90')]=item;}}['onTabDrop'](sender,args){var index=sender[_0x4eb4('0x9c')](args[_0x4eb4('0x8c')])[_0x4eb4('0x9d')](args[_0x4eb4('0x8c')]);var item=this[_0x4eb4('0x9e')](args['item']);this[_0x4eb4('0xf')][_0x4eb4('0x9f')][_0x4eb4('0xa0')](this[_0x4eb4('0xf')][_0x4eb4('0x9d')](item),0x1);this['items'][_0x4eb4('0x9f')]['splice'](index,0x0,item);}['onItemsChanging'](sender,args){if(args[_0x4eb4('0xa1')]==NotifyCollectionChangedAction['Add']){var result;for(var i=0x0;i<args[_0x4eb4('0xa2')][_0x4eb4('0xc')];i++){if(!this[_0x4eb4('0xa3')](Events[_0x4eb4('0x2')],args[_0x4eb4('0xa2')][i]))result=!![];}args['cancel']=result;}else{var result;for(var i=0x0;i<args[_0x4eb4('0xa4')][_0x4eb4('0xc')];i++){if(!this[_0x4eb4('0xa3')](Events[_0x4eb4('0x4')],null,args[_0x4eb4('0xa4')][i]))result=!![];}args[_0x4eb4('0xa5')]=result;}}[_0x4eb4('0x15')](sender,args){if(args['action']==NotifyCollectionChangedAction['Add']){for(var i=0x0;i<args['m_newItems'][_0x4eb4('0xc')];i++){this[_0x4eb4('0x83')](Events[_0x4eb4('0x3')],new PageEventArgs({'page':args[_0x4eb4('0xa2')][i]}));}}else{for(var i=0x0;i<args['m_oldItems'][_0x4eb4('0xc')];i++){this[_0x4eb4('0x83')](Events[_0x4eb4('0x5')],new PageEventArgs({'oldPage':args[_0x4eb4('0xa4')][i]}));}}this['resetTabs']();this[_0x4eb4('0x18')][_0x4eb4('0xa6')]();}get['selectedPage'](){return this['_selectedPage'];}set[_0x4eb4('0x90')](value){if(value){if(this['onPageValidateAction'](Events['pageChanging'],this[_0x4eb4('0xa7')],value)){var oldPage=this[_0x4eb4('0xa7')];this[_0x4eb4('0xa7')]=value;this[_0x4eb4('0xa8')](this['_selectedPage']);this['_selectedPage'][_0x4eb4('0x82')]();this[_0x4eb4('0x18')][_0x4eb4('0xa9')](this[_0x4eb4('0xa7')][_0x4eb4('0xaa')]);this[_0x4eb4('0x83')](_0x5729ef[_0x4eb4('0x1')],new PageEventArgs({'page':this[_0x4eb4('0xa7')],'oldPage':oldPage}));}}}get[_0x4eb4('0x93')](){if(this[_0x4eb4('0xa7')])return this[_0x4eb4('0xf')][_0x4eb4('0x9d')](this[_0x4eb4('0xa7')]);return-0x1;}set[_0x4eb4('0x93')](value){var tab=this['items'][_0x4eb4('0xf')]()[value];if(tab)this[_0x4eb4('0x90')]=tab;}[_0x4eb4('0x9e')](header){return this[_0x4eb4('0xf')][_0x4eb4('0xab')](x=>x[_0x4eb4('0xaa')]==header)[_0x4eb4('0x9a')]();}get['document'](){return this['_document'];}set[_0x4eb4('0x34')](value){if(this[_0x4eb4('0x10')]!=value){this[_0x4eb4('0x10')]=value;}}get[_0x4eb4('0x1d')](){if(this[_0x4eb4('0x2b')]==TabAlignment[_0x4eb4('0x17')])return 0x0;return this[_0x4eb4('0x18')]['height'][_0x4eb4('0xac')];}set[_0x4eb4('0x1d')](value){if(this[_0x4eb4('0x18')][_0x4eb4('0x57')][_0x4eb4('0xac')]!=value){this[_0x4eb4('0x18')]['height']=new Unit(value,UnitType[_0x4eb4('0xad')]);this['resetTabAlignment']();}}get[_0x4eb4('0x2b')](){return this[_0x4eb4('0x16')];}set['tabAlignment'](value){if(this[_0x4eb4('0x16')]!=value){this['_tabAlignment']=value;this[_0x4eb4('0x75')]();}}get[_0x4eb4('0x1e')](){return this[_0x4eb4('0x18')][_0x4eb4('0xae')];}set[_0x4eb4('0x1e')](value){if(this[_0x4eb4('0x18')][_0x4eb4('0xae')]!=value){this[_0x4eb4('0x18')][_0x4eb4('0xae')]=value;}}get[_0x4eb4('0x1f')](){return this[_0x4eb4('0x18')][_0x4eb4('0xaf')]==TabsScrollMode['NavButtons'];}set[_0x4eb4('0x1f')](value){if(this['tabStrip'][_0x4eb4('0xaf')]==TabsScrollMode[_0x4eb4('0xb0')]!=value){this[_0x4eb4('0x18')][_0x4eb4('0xaf')]=value?TabsScrollMode[_0x4eb4('0xb0')]:TabsScrollMode['None'];}}get[_0x4eb4('0x1c')](){return this[_0x4eb4('0x18')][_0x4eb4('0x1c')];}set[_0x4eb4('0x1c')](value){if(this[_0x4eb4('0x18')][_0x4eb4('0x1c')]!=value){this[_0x4eb4('0x18')][_0x4eb4('0x1c')]=value;}}get[_0x4eb4('0xb1')](){return this[_0x4eb4('0x18')][_0x4eb4('0xb2')];}set['allowReorder'](value){if(this[_0x4eb4('0x18')][_0x4eb4('0xb2')]!=value){this[_0x4eb4('0x18')][_0x4eb4('0xb2')]=value;}}get['theme'](){return this[_0x4eb4('0xb3')];}set['theme'](value){if(this[_0x4eb4('0xb3')]!=value){this['_theme']=value;if(this[_0x4eb4('0xb3')])this[_0x4eb4('0x18')][_0x4eb4('0x46')]=this[_0x4eb4('0xb3')]['id'];}}[_0x4eb4('0xb4')](theme,setToPages){this['theme']=theme;if(setToPages){this['items'][_0x4eb4('0x87')](item=>item[_0x4eb4('0x46')]=theme);}}[_0x4eb4('0xb5')](sender,args){this['items']=new ObservableCollection(this[_0x4eb4('0x34')]['pages']);this[_0x4eb4('0xf')][_0x4eb4('0x14')]['addEventListener']((sender,args)=>{this['onItemsChanged'](sender,args);});this[_0x4eb4('0x2a')]();this[_0x4eb4('0x18')][_0x4eb4('0xa6')]();this[_0x4eb4('0x90')]=this[_0x4eb4('0xf')][_0x4eb4('0x95')]();this[_0x4eb4('0xe')]=this['items']['count']();}[_0x4eb4('0xa3')](event,page,oldPage){var args=new PageEventArgs({'page':page,'oldPage':oldPage});this[_0x4eb4('0x83')](event,args);if(args[_0x4eb4('0xa5')])return![];return!![];}static['create'](element,document){return Control[_0x4eb4('0xb6')](TabbedDiagramView,element,document);}}export{Events,PageEventArgs,TabAlignment,TabbedDiagramView};
1
+ var _0x6689=['pageChanging','pageChanged','pageAdding','pageAdded','pageRemoving','pageRemoved','sender','page','_oldPage','_page','oldPage','pages','length','title','addPage','documentChangedDelegate','onDocumentChanged','document','_lastIndex','items','_document','collectionChanging','addEventListener','onItemsChanging','collectionChanged','onItemsChanged','_tabAlignment','None','tabStrip','parent','req','visible','autoSizeTabs','showAddButton','showNavigationButtons','propFunctions','initialize','onTabMouseDown','itemMouseDown','closeButtonClick','_tabMouseDownHandler','navButtonClick','onTabDrop','itemDrop','_tabDropHandler','Top','element','insertBefore','draw','parentNode','appendChild','attach','selectedPage','dispose','forEach','attachDiagramEvents','dataLoaded','dataLoadedDelegate','queryView','queryViewDelegate','detachDiagramEvents','removeEventListener','toJsonObject','saveViewProps','toJson','tabAlignment','tabsSize','showTabCloseButtons','allowReorder','theme','fromJson','raiseEvent','loadViewProps','fromId','POST','setRequestHeader','Content-Type','text/xml','toXmlDocument','diagram','selectSingleNode','DiagramDocument','createElement','View','saveView','send','writeString','Theme','loadFromXml','responseXML','fromXmlDocument','bind','onerror','log','Error\x20while\x20getting\x20XML.','GET','loadView','readString','resetVirtualScrollGrid','scrollerH','clearHandlers','getBounds','width','height','_mf_originalHeight','grid','gridTemplateColumns','auto\x20','px\x20auto\x20','style','gridTemplateRows','scrollbarSize','px\x20','gridRow','min','getScrollbarSize','bounds','scale','_element','inline-block','gridColumn','div','className','mf_diagram_scrollerH','gridColumnStart','gridColumnEnd','auto','overflowY','hidden','#eee','mf_diagram_scrollerV','overflowX','scrollerV','scrollDelegate','onVirtualResize','resetTabAlignment','.mf_diagram_scrollerH','.mf_diagram_scrollerV','gridRowStart','updateCanvasSize','_zoomFactor','getPixel','canvas','measureUnit','firstChild','Empty','resetTabs','clear','Label','titleColor','imageSrc','iconUrl','header','item','dataMfc','mfc-add','toString','first','mfc-prev','mfc-next','selectedIndex','last','rawEventArgs','target','mfc-tabbutton-close','remove','documentChanged','getGroupItems','indexOfItem','getItemByHeader','_items','splice','action','m_newItems','onPageValidateAction','setCancel','m_oldItems','Add','resetButtons','_selectedPage','setDiagram','selectItem','where','diagramChanged','value','Pixel','showCloseButtons','scrollMode','NavButtons','allowDrag','_theme','setTheme','onDataLoaded','count','enabled','oldIndex','index','cancel'];var _0xf5f7=function(_0x433c4a,_0x188591){_0x433c4a=_0x433c4a-0x0;var _0x4ce885=_0x6689[_0x433c4a];return _0x4ce885;};import{CancelEventArgs,Control,DomUtils,EventArgs}from'@mindfusion/controls';import{DiagramView,DiagramDocument,DiagramPage,CompatConfig,Events as _0x5645ea,Theme,XmlPersistContext,Diagram}from'@mindfusion/diagramming';import{NotifyCollectionChangedAction,Unit,UnitType}from'@mindfusion/common';import{TabStrip,ToolStripItem,ToolStripItemType,TabsScrollMode}from'@mindfusion/common-ui';import{ObservableCollection}from'@mindfusion/common-collections';import{GraphicsUnit}from'@mindfusion/drawing';const TabAlignment={'None':0x0,'Top':0x1,'Bottom':0x3};class Events{static get[_0xf5f7('0x0')](){return _0xf5f7('0x0');}static get[_0xf5f7('0x1')](){return'pageChanged';}static get[_0xf5f7('0x2')](){return _0xf5f7('0x2');}static get[_0xf5f7('0x3')](){return _0xf5f7('0x3');}static get[_0xf5f7('0x4')](){return _0xf5f7('0x4');}static get[_0xf5f7('0x5')](){return _0xf5f7('0x5');}}class PageEventArgs extends CancelEventArgs{constructor(args){super();if(args[_0xf5f7('0x6')])this[_0xf5f7('0x6')]=args['sender'];if(args[_0xf5f7('0x7')])this['_page']=args['page'];if(args['oldPage'])this[_0xf5f7('0x8')]=args['oldPage'];}get[_0xf5f7('0x7')](){return this[_0xf5f7('0x9')];}get[_0xf5f7('0xa')](){return this['_oldPage'];}}class TabbedDiagramView extends DiagramView{constructor(element,document){var doc=document||new DiagramDocument();if(!doc[_0xf5f7('0xb')][_0xf5f7('0xc')]){var page=new DiagramPage();page[_0xf5f7('0xd')]='diagram1';doc[_0xf5f7('0xe')](page);}super(element,doc[_0xf5f7('0xb')][0x0]);this[_0xf5f7('0xf')]=(sender,args)=>this[_0xf5f7('0x10')](sender,args);this[_0xf5f7('0x11')]=doc;this[_0xf5f7('0x12')]=0x1;this[_0xf5f7('0x13')]=new ObservableCollection(this[_0xf5f7('0x14')][_0xf5f7('0xb')]);this[_0xf5f7('0x13')][_0xf5f7('0x15')][_0xf5f7('0x16')]((sender,args)=>{this[_0xf5f7('0x17')](sender,args);});this[_0xf5f7('0x13')][_0xf5f7('0x18')][_0xf5f7('0x16')]((sender,args)=>{this[_0xf5f7('0x19')](sender,args);});this[_0xf5f7('0x1a')]=TabAlignment[_0xf5f7('0x1b')];this['tabStrip']=new TabStrip();this[_0xf5f7('0x1c')][_0xf5f7('0x1d')]=this;this['tabStrip'][_0xf5f7('0x1e')]=()=>{return!![];};this[_0xf5f7('0x1c')][_0xf5f7('0x1f')]=![];this[_0xf5f7('0x1c')][_0xf5f7('0x20')]=![];this[_0xf5f7('0x1c')][_0xf5f7('0x21')]=![];this['tabsSize']=0x14;this['showTabCloseButtons']=![];this[_0xf5f7('0x22')]=![];if(CompatConfig[_0xf5f7('0x23')]){CompatConfig['generatePropFunctions'](TabbedDiagramView['prototype']);}}['initialize'](){super[_0xf5f7('0x24')]();this['_tabMouseDownHandler']=(sender,args)=>{this[_0xf5f7('0x25')](sender,args);};this['tabStrip'][_0xf5f7('0x26')][_0xf5f7('0x16')](this['_tabMouseDownHandler']);this[_0xf5f7('0x1c')][_0xf5f7('0x27')]['addEventListener'](this[_0xf5f7('0x28')]);this['tabStrip']['addButtonClick'][_0xf5f7('0x16')](this[_0xf5f7('0x28')]);this[_0xf5f7('0x1c')][_0xf5f7('0x29')][_0xf5f7('0x16')](this[_0xf5f7('0x28')]);this['_tabDropHandler']=(sender,args)=>{this[_0xf5f7('0x2a')](sender,args);};this[_0xf5f7('0x1c')][_0xf5f7('0x2b')][_0xf5f7('0x16')](this[_0xf5f7('0x2c')]);this['resetTabs']();if(this['tabAlignment']==TabAlignment[_0xf5f7('0x2d')])this[_0xf5f7('0x2e')]['parentNode'][_0xf5f7('0x2f')](this[_0xf5f7('0x1c')][_0xf5f7('0x30')](),this[_0xf5f7('0x2e')]);else this[_0xf5f7('0x2e')][_0xf5f7('0x31')][_0xf5f7('0x32')](this[_0xf5f7('0x1c')][_0xf5f7('0x30')]());this[_0xf5f7('0x1c')][_0xf5f7('0x33')]();this[_0xf5f7('0x34')]=this[_0xf5f7('0x13')]['last']();}[_0xf5f7('0x35')](){this[_0xf5f7('0x13')][_0xf5f7('0x36')](item=>item['dispose']());this[_0xf5f7('0x1c')][_0xf5f7('0x35')]();super['dispose']();}[_0xf5f7('0x37')](){this[_0xf5f7('0x11')][_0xf5f7('0x16')](_0x5645ea[_0xf5f7('0x38')],this[_0xf5f7('0x39')]);this[_0xf5f7('0x11')][_0xf5f7('0x16')](_0x5645ea[_0xf5f7('0x3a')],this[_0xf5f7('0x3b')]);}[_0xf5f7('0x3c')](){this['document']['removeEventListener'](_0x5645ea[_0xf5f7('0x38')],this[_0xf5f7('0x39')]);this[_0xf5f7('0x11')][_0xf5f7('0x3d')](_0x5645ea[_0xf5f7('0x3a')],this['queryViewDelegate']);}['toJson'](){var json=this[_0xf5f7('0x11')][_0xf5f7('0x3e')]();this[_0xf5f7('0x3f')](json);return Control[_0xf5f7('0x40')](json);}[_0xf5f7('0x3f')](json){super[_0xf5f7('0x3f')](json);json[_0xf5f7('0x41')]=this[_0xf5f7('0x41')];json[_0xf5f7('0x42')]=this['tabsSize'];json['showNavigationButtons']=this[_0xf5f7('0x22')];json[_0xf5f7('0x21')]=this['showAddButton'];json[_0xf5f7('0x43')]=this[_0xf5f7('0x43')];json[_0xf5f7('0x44')]=this[_0xf5f7('0x44')];json['theme']=this[_0xf5f7('0x45')]?this[_0xf5f7('0x45')]['id']:null;}[_0xf5f7('0x46')](json){if(json>''){var obj=Control[_0xf5f7('0x46')](json);this[_0xf5f7('0x11')]['fromJsonObject'](obj);this['updateScale']();this['loadViewProps'](obj);}this[_0xf5f7('0x47')](_0x5645ea['controlLoaded']);}[_0xf5f7('0x48')](obj){super['loadViewProps'](obj);if(obj['tabAlignment']!==undefined)this[_0xf5f7('0x41')]=obj['tabAlignment'];if(obj[_0xf5f7('0x42')]!==undefined)this['tabsSize']=obj[_0xf5f7('0x42')];if(obj[_0xf5f7('0x22')]!==undefined)this[_0xf5f7('0x22')]=obj[_0xf5f7('0x22')];if(obj[_0xf5f7('0x21')]!==undefined)this[_0xf5f7('0x21')]=obj[_0xf5f7('0x21')];if(obj[_0xf5f7('0x43')]!==undefined)this[_0xf5f7('0x43')]=obj[_0xf5f7('0x43')];if(obj[_0xf5f7('0x44')]!==undefined)this[_0xf5f7('0x44')]=obj[_0xf5f7('0x44')];if(obj[_0xf5f7('0x45')])this[_0xf5f7('0x45')]=Theme[_0xf5f7('0x49')](obj[_0xf5f7('0x45')]);}['saveToXml'](url){var xhr=new XMLHttpRequest();xhr['open'](_0xf5f7('0x4a'),url,!![]);xhr[_0xf5f7('0x4b')](_0xf5f7('0x4c'),_0xf5f7('0x4d'));var xmlDoc=this['document'][_0xf5f7('0x4e')]();var context=new XmlPersistContext(this[_0xf5f7('0x4f')],xmlDoc);var rootElement=context[_0xf5f7('0x50')](_0xf5f7('0x51'),xmlDoc);var viewElement=xmlDoc[_0xf5f7('0x52')](_0xf5f7('0x53'));rootElement[_0xf5f7('0x32')](viewElement);this[_0xf5f7('0x54')](viewElement,context);var serializer=new XMLSerializer();xhr[_0xf5f7('0x55')](serializer['serializeToString'](xmlDoc));}[_0xf5f7('0x54')](element,context){super[_0xf5f7('0x54')](element,context);if(this[_0xf5f7('0x45')])context[_0xf5f7('0x56')](this[_0xf5f7('0x45')]['id'],_0xf5f7('0x57'),element);}[_0xf5f7('0x58')](fileUrl,onLoad,onError){var diagram=this[_0xf5f7('0x11')];var xhr=new XMLHttpRequest();xhr['onload']=function(){var document=xhr[_0xf5f7('0x59')];diagram[_0xf5f7('0x5a')](document);var context=new XmlPersistContext(diagram,document);var diagramElement=context[_0xf5f7('0x50')](_0xf5f7('0x51'),document);this['loadView'](_0xf5f7('0x53'),diagramElement,context);if(onLoad)onLoad(diagram);}[_0xf5f7('0x5b')](this);xhr[_0xf5f7('0x5c')]=function(){console[_0xf5f7('0x5d')](_0xf5f7('0x5e'));if(onError)onError(diagram);};xhr['open'](_0xf5f7('0x5f'),fileUrl);xhr['responseType']=_0xf5f7('0x11');xhr['send']();}['loadView'](elementName,parentElement,context){var element=super[_0xf5f7('0x60')](elementName,parentElement,context);if(!element)return;var themeId=context[_0xf5f7('0x61')](_0xf5f7('0x57'),element);if(themeId)this[_0xf5f7('0x45')]=Theme[_0xf5f7('0x49')](themeId);}[_0xf5f7('0x62')](){var canvas=this['element'];if(!canvas['parentNode'])return;if(!this[_0xf5f7('0x63')]){Control[_0xf5f7('0x64')](canvas[_0xf5f7('0x31')]);var bounds=DomUtils[_0xf5f7('0x65')](canvas[_0xf5f7('0x31')],null,!![]);var w=bounds[_0xf5f7('0x66')];var h=bounds[_0xf5f7('0x67')];if(h!=0x0)canvas[_0xf5f7('0x31')][_0xf5f7('0x68')]=h;this['parentSize']={'width':w,'height':h};canvas[_0xf5f7('0x31')]['style']['display']=_0xf5f7('0x69');canvas[_0xf5f7('0x31')]['style'][_0xf5f7('0x6a')]=_0xf5f7('0x6b')+this['scrollbarSize']+'px';if(this['tabAlignment']==TabAlignment[_0xf5f7('0x2d')])canvas['parentNode']['style']['gridTemplateRows']=this['tabsSize']+_0xf5f7('0x6c')+this['scrollbarSize']+'px';else canvas[_0xf5f7('0x31')][_0xf5f7('0x6d')][_0xf5f7('0x6e')]=_0xf5f7('0x6b')+this[_0xf5f7('0x6f')]+_0xf5f7('0x70')+this[_0xf5f7('0x42')]+'px';canvas[_0xf5f7('0x31')]['style']['overflow']='';canvas[_0xf5f7('0x6d')][_0xf5f7('0x71')]=this[_0xf5f7('0x41')]==TabAlignment[_0xf5f7('0x2d')]?0x2:0x1;canvas[_0xf5f7('0x66')]=Math[_0xf5f7('0x72')](bounds[_0xf5f7('0x66')]-this[_0xf5f7('0x73')](0x1),this[_0xf5f7('0x4f')][_0xf5f7('0x74')][_0xf5f7('0x66')]*this[_0xf5f7('0x75')]);canvas[_0xf5f7('0x67')]=Math[_0xf5f7('0x72')](h-this[_0xf5f7('0x42')]-this[_0xf5f7('0x73')](0x0),this[_0xf5f7('0x4f')][_0xf5f7('0x74')][_0xf5f7('0x67')]*this[_0xf5f7('0x75')]);this[_0xf5f7('0x1c')][_0xf5f7('0x76')][_0xf5f7('0x6d')]['display']=_0xf5f7('0x77');this[_0xf5f7('0x1c')][_0xf5f7('0x76')][_0xf5f7('0x6d')][_0xf5f7('0x78')]='1\x20/\x20-1';var scrollerH=document['createElement'](_0xf5f7('0x79'));scrollerH[_0xf5f7('0x7a')]=_0xf5f7('0x7b');scrollerH[_0xf5f7('0x6d')][_0xf5f7('0x71')]=this[_0xf5f7('0x41')]==TabAlignment['Top']?0x3:0x2;scrollerH[_0xf5f7('0x6d')][_0xf5f7('0x7c')]=0x1;scrollerH[_0xf5f7('0x6d')][_0xf5f7('0x7d')]=0x2;scrollerH['style'][_0xf5f7('0x67')]=this['scrollbarSize']+'px';scrollerH[_0xf5f7('0x6d')][_0xf5f7('0x66')]=bounds[_0xf5f7('0x66')]-this[_0xf5f7('0x6f')]+'px';scrollerH[_0xf5f7('0x6d')]['overflowX']=_0xf5f7('0x7e');scrollerH[_0xf5f7('0x6d')][_0xf5f7('0x7f')]=_0xf5f7('0x80');scrollerH[_0xf5f7('0x6d')]['backgroundColor']=_0xf5f7('0x81');this[_0xf5f7('0x63')]=scrollerH;var innerH=document[_0xf5f7('0x52')]('div');innerH[_0xf5f7('0x6d')][_0xf5f7('0x67')]=this[_0xf5f7('0x6f')]+'px';scrollerH[_0xf5f7('0x32')](innerH);canvas['parentNode'][_0xf5f7('0x32')](scrollerH);var scrollerV=document[_0xf5f7('0x52')](_0xf5f7('0x79'));scrollerV[_0xf5f7('0x7a')]=_0xf5f7('0x82');scrollerV[_0xf5f7('0x6d')]['gridRowStart']=this[_0xf5f7('0x41')]==TabAlignment[_0xf5f7('0x2d')]?0x2:0x1;scrollerV['style'][_0xf5f7('0x66')]=this[_0xf5f7('0x6f')]+'px';scrollerV['style'][_0xf5f7('0x67')]=bounds[_0xf5f7('0x67')]-this['tabsSize']-this[_0xf5f7('0x6f')]+'px';scrollerV[_0xf5f7('0x6d')][_0xf5f7('0x83')]=_0xf5f7('0x80');scrollerV['style'][_0xf5f7('0x7f')]=_0xf5f7('0x7e');scrollerV['style']['backgroundColor']=_0xf5f7('0x81');this[_0xf5f7('0x84')]=scrollerV;var innerV=document['createElement'](_0xf5f7('0x79'));innerV['style']['width']=this[_0xf5f7('0x6f')]+'px';scrollerV['appendChild'](innerV);canvas['parentNode'][_0xf5f7('0x32')](scrollerV);Control['addHandlers'](scrollerH,{'scroll':this[_0xf5f7('0x85')]});Control['addHandlers'](scrollerV,{'scroll':this[_0xf5f7('0x85')]});if(!this['resizeTimeoutId']){var thisObj=this;this['resizeTimeoutId']=setInterval(function(){thisObj[_0xf5f7('0x86')]();},0xc8);}}}[_0xf5f7('0x87')](){this[_0xf5f7('0x1c')]['visible']=this[_0xf5f7('0x41')]!=TabAlignment['None'];var canvas=this['element'];if(this[_0xf5f7('0x41')]==TabAlignment[_0xf5f7('0x2d')])canvas['parentNode'][_0xf5f7('0x6d')][_0xf5f7('0x6e')]=this[_0xf5f7('0x42')]+'px\x20auto\x20'+this[_0xf5f7('0x6f')]+'px';else canvas[_0xf5f7('0x31')][_0xf5f7('0x6d')][_0xf5f7('0x6e')]=_0xf5f7('0x6b')+this[_0xf5f7('0x6f')]+'px\x20'+this[_0xf5f7('0x42')]+'px';canvas[_0xf5f7('0x6d')]['gridRow']=this[_0xf5f7('0x41')]==TabAlignment[_0xf5f7('0x2d')]?0x2:0x1;var scrollerH=this[_0xf5f7('0x2e')]['parentNode']['querySelector'](_0xf5f7('0x88'));if(this['scrollerH']){scrollerH[_0xf5f7('0x6d')][_0xf5f7('0x71')]=this[_0xf5f7('0x41')]==TabAlignment[_0xf5f7('0x2d')]?0x3:0x2;var scrollerV=this[_0xf5f7('0x2e')][_0xf5f7('0x31')]['querySelector'](_0xf5f7('0x89'));scrollerV[_0xf5f7('0x6d')][_0xf5f7('0x8a')]=this[_0xf5f7('0x41')]==TabAlignment[_0xf5f7('0x2d')]?0x2:0x1;}this[_0xf5f7('0x8b')]();}[_0xf5f7('0x8b')](){if(!this[_0xf5f7('0x2e')])return;var scale=this[_0xf5f7('0x8c')]/0x64/GraphicsUnit[_0xf5f7('0x8d')](this[_0xf5f7('0x8e')][_0xf5f7('0x8f')]);if(this[_0xf5f7('0x63')]){var parentDiv=this[_0xf5f7('0x2e')][_0xf5f7('0x31')];this[_0xf5f7('0x63')][_0xf5f7('0x90')][_0xf5f7('0x6d')][_0xf5f7('0x66')]=this[_0xf5f7('0x8e')]['bounds']['width']*scale+'px';this[_0xf5f7('0x84')][_0xf5f7('0x90')][_0xf5f7('0x6d')][_0xf5f7('0x67')]=this[_0xf5f7('0x8e')][_0xf5f7('0x74')]['height']*scale+'px';var vScrollSize=this[_0xf5f7('0x73')](0x1);var hScrollSize=this[_0xf5f7('0x73')](0x0);this[_0xf5f7('0x84')][_0xf5f7('0x6d')][_0xf5f7('0x66')]=vScrollSize+'px';this['scrollerH'][_0xf5f7('0x6d')]['height']=hScrollSize+'px';parentDiv[_0xf5f7('0x6d')]['gridTemplateColumns']=_0xf5f7('0x6b')+vScrollSize+'px';if(this[_0xf5f7('0x41')]==TabAlignment[_0xf5f7('0x2d')])parentDiv[_0xf5f7('0x6d')][_0xf5f7('0x6e')]=this[_0xf5f7('0x42')]+'px\x20auto\x20'+hScrollSize+'px';else parentDiv[_0xf5f7('0x6d')]['gridTemplateRows']=_0xf5f7('0x6b')+hScrollSize+_0xf5f7('0x70')+this[_0xf5f7('0x42')]+'px';var bounds=DomUtils[_0xf5f7('0x65')](parentDiv,null,!![]);var h=bounds['height'];if(h==0x0)h=parentDiv[_0xf5f7('0x68')];if(h==0x0)h=this['canvas'][_0xf5f7('0x74')][_0xf5f7('0x67')]*scale;this['element'][_0xf5f7('0x66')]=Math['min'](bounds['width']-vScrollSize,this[_0xf5f7('0x8e')]['bounds'][_0xf5f7('0x66')]*scale);this[_0xf5f7('0x2e')][_0xf5f7('0x67')]=Math[_0xf5f7('0x72')](h-this[_0xf5f7('0x42')]-hScrollSize,this[_0xf5f7('0x8e')][_0xf5f7('0x74')][_0xf5f7('0x67')]*scale);this[_0xf5f7('0x63')][_0xf5f7('0x6d')][_0xf5f7('0x66')]=bounds[_0xf5f7('0x66')]-vScrollSize+'px';this[_0xf5f7('0x84')][_0xf5f7('0x6d')][_0xf5f7('0x67')]=h-this['tabsSize']-hScrollSize+'px';}this[_0xf5f7('0x8e')]['invalidRect']=null;this[_0xf5f7('0x8e')]['repaint']();this[_0xf5f7('0x4f')][_0xf5f7('0x47')](_0x5645ea['sizeChanged'],EventArgs[_0xf5f7('0x91')]);}[_0xf5f7('0x92')](){this['tabStrip']['items'][_0xf5f7('0x93')]();this[_0xf5f7('0x11')][_0xf5f7('0xb')][_0xf5f7('0x36')]((page,index)=>{var header=new ToolStripItem(ToolStripItemType[_0xf5f7('0x94')],page[_0xf5f7('0xd')]);header[_0xf5f7('0x95')]=page['titleColor'];header[_0xf5f7('0x96')]=page[_0xf5f7('0x97')];this['tabStrip'][_0xf5f7('0x13')]['add'](header);page[_0xf5f7('0x98')]=header;});}[_0xf5f7('0x25')](sender,args){if(!args[_0xf5f7('0x99')]['enabled'])return;if(args[_0xf5f7('0x99')][_0xf5f7('0x9a')]==_0xf5f7('0x9b')){var page=new DiagramPage();page['title']=_0xf5f7('0x4f')+(++this['_lastIndex'])[_0xf5f7('0x9c')]();this[_0xf5f7('0x11')][_0xf5f7('0xe')](page);this[_0xf5f7('0x34')]=page;return;}if(args[_0xf5f7('0x99')][_0xf5f7('0x9a')]){if(args[_0xf5f7('0x99')][_0xf5f7('0x9a')]=='mfc-first')this['selectedPage']=this[_0xf5f7('0x13')][_0xf5f7('0x9d')]();else if(args[_0xf5f7('0x99')]['dataMfc']==_0xf5f7('0x9e'))this['selectedIndex']--;else if(args[_0xf5f7('0x99')][_0xf5f7('0x9a')]==_0xf5f7('0x9f'))this[_0xf5f7('0xa0')]++;else if(args['item'][_0xf5f7('0x9a')]=='mfc-last')this['selectedPage']=this[_0xf5f7('0x13')][_0xf5f7('0xa1')]();return;}var item=this['getItemByHeader'](args[_0xf5f7('0x99')]);if(item){if(DomUtils['hasCssClass'](args[_0xf5f7('0xa2')][_0xf5f7('0xa3')],_0xf5f7('0xa4'))){var ni=this[_0xf5f7('0xa0')];if(this[_0xf5f7('0x34')]==item){if(item==this[_0xf5f7('0x13')][_0xf5f7('0x9d')]())ni++;}if(this[_0xf5f7('0x13')][_0xf5f7('0xa5')](item)){this[_0xf5f7('0x11')]['raiseEvent'](_0x5645ea[_0xf5f7('0xa6')],{'oldIndex':ni});this['selectedIndex']=--ni;}}else this[_0xf5f7('0x34')]=item;}}[_0xf5f7('0x2a')](sender,args){var index=sender[_0xf5f7('0xa7')](args['item'])[_0xf5f7('0xa8')](args[_0xf5f7('0x99')]);var item=this[_0xf5f7('0xa9')](args[_0xf5f7('0x99')]);this[_0xf5f7('0x13')][_0xf5f7('0xaa')]['splice'](this[_0xf5f7('0x13')]['indexOfItem'](item),0x1);this[_0xf5f7('0x13')][_0xf5f7('0xaa')][_0xf5f7('0xab')](index,0x0,item);}['onItemsChanging'](sender,args){if(args[_0xf5f7('0xac')]==NotifyCollectionChangedAction['Add']){var result;for(var i=0x0;i<args[_0xf5f7('0xad')][_0xf5f7('0xc')];i++){var c=this[_0xf5f7('0xae')](Events[_0xf5f7('0x2')],args['m_newItems'][i]);if(!c)result=!![];}args[_0xf5f7('0xaf')](result);}else{var result;for(var i=0x0;i<args[_0xf5f7('0xb0')][_0xf5f7('0xc')];i++){var c=this[_0xf5f7('0xae')](Events[_0xf5f7('0x4')],null,args['m_oldItems'][i]);if(!c)result=!![];}args[_0xf5f7('0xaf')](result);}}[_0xf5f7('0x19')](sender,args){if(args[_0xf5f7('0xac')]==NotifyCollectionChangedAction[_0xf5f7('0xb1')]){for(var i=0x0;i<args[_0xf5f7('0xad')]['length'];i++){this[_0xf5f7('0x47')](Events['pageAdded'],new PageEventArgs({'page':args['m_newItems'][i]}));}}else{for(var i=0x0;i<args[_0xf5f7('0xb0')][_0xf5f7('0xc')];i++){this['raiseEvent'](Events[_0xf5f7('0x5')],new PageEventArgs({'oldPage':args[_0xf5f7('0xb0')][i]}));}}this[_0xf5f7('0x92')]();this[_0xf5f7('0x1c')][_0xf5f7('0xb2')]();}get[_0xf5f7('0x34')](){return this['_selectedPage'];}set[_0xf5f7('0x34')](value){if(value){if(this['onPageValidateAction'](Events['pageChanging'],this[_0xf5f7('0xb3')],value)){var oldPage=this[_0xf5f7('0xb3')];this['_selectedPage']=value;this[_0xf5f7('0xb4')](this[_0xf5f7('0xb3')]);this[_0xf5f7('0xb3')]['repaint']();this[_0xf5f7('0x1c')][_0xf5f7('0xb5')](this['_selectedPage'][_0xf5f7('0x98')]);this[_0xf5f7('0x47')](Events[_0xf5f7('0x1')],new PageEventArgs({'page':this[_0xf5f7('0xb3')],'oldPage':oldPage}));}}}get[_0xf5f7('0xa0')](){if(this[_0xf5f7('0xb3')])return this[_0xf5f7('0x13')][_0xf5f7('0xa8')](this[_0xf5f7('0xb3')]);return-0x1;}set[_0xf5f7('0xa0')](value){var tab=this[_0xf5f7('0x13')]['items']()[value];if(tab)this[_0xf5f7('0x34')]=tab;}['getItemByHeader'](header){return this[_0xf5f7('0x13')][_0xf5f7('0xb6')](x=>x['header'][_0xf5f7('0x2e')]==header[_0xf5f7('0x2e')])['first']();}get['document'](){return this[_0xf5f7('0x14')];}set['document'](value){if(this[_0xf5f7('0x14')]!=value){if(this[_0xf5f7('0x11')]!=null)this[_0xf5f7('0x14')][_0xf5f7('0x3d')](_0x5645ea[_0xf5f7('0xa6')],this[_0xf5f7('0xf')]);this['_document']=value;this[_0xf5f7('0x14')][_0xf5f7('0x16')](_0x5645ea[_0xf5f7('0xa6')],this[_0xf5f7('0xf')]);this[_0xf5f7('0x47')](_0x5645ea[_0xf5f7('0xb7')],EventArgs[_0xf5f7('0x91')]);}}get[_0xf5f7('0x42')](){if(this[_0xf5f7('0x41')]==TabAlignment['None'])return 0x0;return this[_0xf5f7('0x1c')]['height'][_0xf5f7('0xb8')];}set[_0xf5f7('0x42')](value){if(this[_0xf5f7('0x1c')][_0xf5f7('0x67')]['value']!=value){this[_0xf5f7('0x1c')][_0xf5f7('0x67')]=new Unit(value,UnitType[_0xf5f7('0xb9')]);this[_0xf5f7('0x87')]();}}get['tabAlignment'](){return this['_tabAlignment'];}set[_0xf5f7('0x41')](value){if(this['_tabAlignment']!=value){this[_0xf5f7('0x1a')]=value;this[_0xf5f7('0x87')]();}}get[_0xf5f7('0x43')](){return this[_0xf5f7('0x1c')]['showCloseButtons'];}set[_0xf5f7('0x43')](value){if(this[_0xf5f7('0x1c')]['showCloseButtons']!=value){this['tabStrip'][_0xf5f7('0xba')]=value;}}get[_0xf5f7('0x22')](){return this[_0xf5f7('0x1c')][_0xf5f7('0xbb')]==TabsScrollMode[_0xf5f7('0xbc')];}set[_0xf5f7('0x22')](value){if(this['tabStrip'][_0xf5f7('0xbb')]==TabsScrollMode[_0xf5f7('0xbc')]!=value){this['tabStrip']['scrollMode']=value?TabsScrollMode[_0xf5f7('0xbc')]:TabsScrollMode[_0xf5f7('0x1b')];}}get[_0xf5f7('0x21')](){return this[_0xf5f7('0x1c')][_0xf5f7('0x21')];}set['showAddButton'](value){if(this[_0xf5f7('0x1c')][_0xf5f7('0x21')]!=value){this[_0xf5f7('0x1c')]['showAddButton']=value;}}get['allowReorder'](){return this[_0xf5f7('0x1c')]['allowDrag'];}set[_0xf5f7('0x44')](value){if(this['tabStrip'][_0xf5f7('0xbd')]!=value){this[_0xf5f7('0x1c')][_0xf5f7('0xbd')]=value;}}get[_0xf5f7('0x45')](){return this['_theme'];}set[_0xf5f7('0x45')](value){if(this['_theme']!=value){this['_theme']=value;if(this[_0xf5f7('0xbe')])this[_0xf5f7('0x1c')][_0xf5f7('0x45')]=this[_0xf5f7('0xbe')]['id'];else this['tabStrip'][_0xf5f7('0x45')]='';}}[_0xf5f7('0xbf')](theme,setToPages){this[_0xf5f7('0x45')]=theme;if(setToPages){this[_0xf5f7('0x13')]['forEach'](item=>item['theme']=theme);}}[_0xf5f7('0xc0')](sender,args){this[_0xf5f7('0x10')](sender,args);this[_0xf5f7('0x34')]=this['items']['last']();this[_0xf5f7('0x12')]=this[_0xf5f7('0x13')][_0xf5f7('0xc1')]();}[_0xf5f7('0x10')](sender,args){var empty=this[_0xf5f7('0x11')][_0xf5f7('0xb')][_0xf5f7('0xc')]==0x0;if(empty){this[_0xf5f7('0x4f')]=new Diagram();this[_0xf5f7('0xb3')]=null;}this[_0xf5f7('0xc2')]=!empty;this[_0xf5f7('0x13')]=new ObservableCollection(this[_0xf5f7('0x11')][_0xf5f7('0xb')]);this[_0xf5f7('0x13')]['collectionChanging'][_0xf5f7('0x16')]((sender,args)=>{this[_0xf5f7('0x17')](sender,args);});this[_0xf5f7('0x13')][_0xf5f7('0x18')][_0xf5f7('0x16')]((sender,args)=>{this['onItemsChanged'](sender,args);});this[_0xf5f7('0x92')]();this[_0xf5f7('0x1c')][_0xf5f7('0xb2')]();if(args[_0xf5f7('0xc3')]!=undefined)this[_0xf5f7('0xa0')]=Math['max'](--args[_0xf5f7('0xc3')],0x0);if(args[_0xf5f7('0xc4')]!=undefined)this['selectedIndex']=args[_0xf5f7('0xc4')];}[_0xf5f7('0xae')](event,page,oldPage){var args=new PageEventArgs({'page':page,'oldPage':oldPage});this[_0xf5f7('0x47')](event,args);if(args[_0xf5f7('0xc5')])return![];return!![];}static['create'](element,document){return Control['createControl'](TabbedDiagramView,element,document);}}export{Events,PageEventArgs,TabAlignment,TabbedDiagramView};
@@ -1 +1 @@
1
- var _0x43b4=['object','undefined','function','amd','MindFusion','Diagramming','Controls','Common','Drawing','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','length','enumerable','configurable','value','writable','defineProperty','key','prototype','Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function','create','setPrototypeOf','__proto__','getPrototypeOf','construct','call','this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called','constructor','apply','hasOwnProperty','get','pageChanging','pageChanged','pageAdding','pageAdded','pageRemoving','pageRemoved','sender','page','_page','oldPage','_oldPage','DiagramDocument','DiagramPage','title','diagram1','pages','push','_lastIndex','items','ObservableCollection','_document','collectionChanging','onItemsChanging','addEventListener','onItemsChanged','_tabAlignment','None','tabStrip','parent','req','visible','autoSizeTabs','showAddButton','tabsSize','showNavigationButtons','initialize','itemMouseDown','_tabMouseDownHandler','addButtonClick','onTabDrop','itemDrop','_tabDropHandler','resetTabs','tabAlignment','element','parentNode','draw','appendChild','attach','selectedPage','last','forEach','dispose','attachDiagramEvents','document','Events','dataLoaded','dataLoadedDelegate','queryView','queryViewDelegate','detachDiagramEvents','removeEventListener','saveToXml','open','POST','Content-Type','text/xml','selectSingleNode','createElement','saveView','send','serializeToString','theme','writeString','Theme','loadFromXml','onload','responseXML','fromXmlDocument','XmlPersistContext','loadView','View','bind','onerror','GET','responseType','readString','fromId','resetVirtualScrollGrid','scrollerH','Control','getBounds','width','height','parentSize','style','grid','scrollbarSize','Top','gridTemplateRows','px\x20','min','getScrollbarSize','diagram','bounds','scale','display','inline-block','gridColumn','1\x20/\x20-1','className','mf_diagram_scrollerH','gridRow','gridColumnEnd','overflowX','auto','overflowY','hidden','#eee','div','mf_diagram_scrollerV','gridRowStart','backgroundColor','scrollerV','addHandlers','scrollDelegate','px\x20auto\x20','auto\x20','querySelector','.mf_diagram_scrollerH','.mf_diagram_scrollerV','updateCanvasSize','_zoomFactor','getPixel','canvas','measureUnit','firstChild','gridTemplateColumns','DomUtils','_mf_originalHeight','raiseEvent','Empty','clear','ToolStripItemType','Label','titleColor','imageSrc','onTabMouseDown','enabled','dataMfc','mfc-add','toString','add','item','first','mfc-prev','selectedIndex','mfc-next','mfc-last','getItemByHeader','rawEventArgs','target','getGroupItems','_items','indexOfItem','splice','action','NotifyCollectionChangedAction','Add','m_newItems','onPageValidateAction','cancel','m_oldItems','resetButtons','_selectedPage','setDiagram','repaint','where','header','Unit','UnitType','resetTabAlignment','showCloseButtons','scrollMode','TabsScrollMode','NavButtons','allowReorder','allowDrag','_theme','setTheme','onDataLoaded','collectionChanged','count','createControl','PageEventArgs','TabbedDiagramView','__esModule'];var _0x3fc4=function(_0x275967,_0x4b5daa){_0x275967=_0x275967-0x0;var _0xae584c=_0x43b4[_0x275967];return _0xae584c;};(function(_0x1bdb7f,_0x4b40d7){typeof exports===_0x3fc4('0x0')&&typeof module!==_0x3fc4('0x1')?_0x4b40d7(exports,require('@mindfusion/controls'),require('@mindfusion/diagramming'),require('@mindfusion/common'),require('@mindfusion/common-ui'),require('@mindfusion/common-collections'),require('@mindfusion/drawing')):typeof define===_0x3fc4('0x2')&&define[_0x3fc4('0x3')]?define(['exports','@mindfusion/controls','@mindfusion/diagramming','@mindfusion/common','@mindfusion/common-ui','@mindfusion/common-collections','@mindfusion/drawing'],_0x4b40d7):(_0x1bdb7f=typeof globalThis!=='undefined'?globalThis:_0x1bdb7f||self,_0x4b40d7((_0x1bdb7f[_0x3fc4('0x4')]=_0x1bdb7f[_0x3fc4('0x4')]||{},_0x1bdb7f[_0x3fc4('0x4')]['Diagramming']=_0x1bdb7f[_0x3fc4('0x4')][_0x3fc4('0x5')]||{},_0x1bdb7f['MindFusion'][_0x3fc4('0x5')][_0x3fc4('0x6')]={}),_0x1bdb7f[_0x3fc4('0x4')][_0x3fc4('0x6')],_0x1bdb7f[_0x3fc4('0x4')][_0x3fc4('0x5')],_0x1bdb7f[_0x3fc4('0x4')]['Common'],_0x1bdb7f[_0x3fc4('0x4')]['Common']['UI'],_0x1bdb7f[_0x3fc4('0x4')][_0x3fc4('0x7')]['Collections'],_0x1bdb7f[_0x3fc4('0x4')][_0x3fc4('0x8')]));}(this,function(_0x5e6f11,_0x47440e,_0x26ec9,_0x4232ed,_0x3368e5,_0x413fff,_0xc67f3a){'use strict';var _0x40f6c3={'None':0x0,'Top':0x1,'Bottom':0x3};function _0x36602b(_0x43ffda,_0xa4fa6){if(!(_0x43ffda instanceof _0xa4fa6)){throw new TypeError(_0x3fc4('0x9'));}}function _0x5174d6(_0x4548f0,_0x5f1b08){for(var _0x495588=0x0;_0x495588<_0x5f1b08[_0x3fc4('0xa')];_0x495588++){var _0x4babc6=_0x5f1b08[_0x495588];_0x4babc6[_0x3fc4('0xb')]=_0x4babc6[_0x3fc4('0xb')]||![];_0x4babc6[_0x3fc4('0xc')]=!![];if(_0x3fc4('0xd')in _0x4babc6)_0x4babc6[_0x3fc4('0xe')]=!![];Object[_0x3fc4('0xf')](_0x4548f0,_0x4babc6[_0x3fc4('0x10')],_0x4babc6);}}function _0x5e6b91(_0x100d99,_0x5a3d9c,_0x5f18ec){if(_0x5a3d9c)_0x5174d6(_0x100d99[_0x3fc4('0x11')],_0x5a3d9c);if(_0x5f18ec)_0x5174d6(_0x100d99,_0x5f18ec);return _0x100d99;}function _0x4eb8c3(_0x47a84c,_0x3c293f){if(typeof _0x3c293f!==_0x3fc4('0x2')&&_0x3c293f!==null){throw new TypeError(_0x3fc4('0x12'));}_0x47a84c['prototype']=Object[_0x3fc4('0x13')](_0x3c293f&&_0x3c293f[_0x3fc4('0x11')],{'constructor':{'value':_0x47a84c,'writable':!![],'configurable':!![]}});if(_0x3c293f)_0x358091(_0x47a84c,_0x3c293f);}function _0x13b827(_0x375aac){_0x13b827=Object[_0x3fc4('0x14')]?Object['getPrototypeOf']:function _0x13b827(_0x375aac){return _0x375aac[_0x3fc4('0x15')]||Object[_0x3fc4('0x16')](_0x375aac);};return _0x13b827(_0x375aac);}function _0x358091(_0x4f9009,_0xb60d79){_0x358091=Object[_0x3fc4('0x14')]||function _0x358091(_0x4f9009,_0xb60d79){_0x4f9009[_0x3fc4('0x15')]=_0xb60d79;return _0x4f9009;};return _0x358091(_0x4f9009,_0xb60d79);}function _0x2eec19(){if(typeof Reflect===_0x3fc4('0x1')||!Reflect[_0x3fc4('0x17')])return![];if(Reflect[_0x3fc4('0x17')]['sham'])return![];if(typeof Proxy==='function')return!![];try{Boolean[_0x3fc4('0x11')]['valueOf'][_0x3fc4('0x18')](Reflect['construct'](Boolean,[],function(){}));return!![];}catch(_0x1cb609){return![];}}function _0x393f34(_0x7b12d8){if(_0x7b12d8===void 0x0){throw new ReferenceError(_0x3fc4('0x19'));}return _0x7b12d8;}function _0xf76c92(_0xb922f8,_0xa0efd3){if(_0xa0efd3&&(typeof _0xa0efd3===_0x3fc4('0x0')||typeof _0xa0efd3==='function')){return _0xa0efd3;}return _0x393f34(_0xb922f8);}function _0x145591(_0x36e5df){var _0x1ef3b9=_0x2eec19();return function _createSuperInternal(){var _0x52fb86=_0x13b827(_0x36e5df),_0x3a034f;if(_0x1ef3b9){var _0x11cf91=_0x13b827(this)[_0x3fc4('0x1a')];_0x3a034f=Reflect[_0x3fc4('0x17')](_0x52fb86,arguments,_0x11cf91);}else{_0x3a034f=_0x52fb86[_0x3fc4('0x1b')](this,arguments);}return _0xf76c92(this,_0x3a034f);};}function _0x67c475(_0x3439c7,_0x368726){while(!Object[_0x3fc4('0x11')][_0x3fc4('0x1c')][_0x3fc4('0x18')](_0x3439c7,_0x368726)){_0x3439c7=_0x13b827(_0x3439c7);if(_0x3439c7===null)break;}return _0x3439c7;}function _0x44c0d4(_0x30148c,_0x23b5e4,_0x2b2c61){if(typeof Reflect!==_0x3fc4('0x1')&&Reflect[_0x3fc4('0x1d')]){_0x44c0d4=Reflect['get'];}else{_0x44c0d4=function _0x44c0d4(_0x30148c,_0x23b5e4,_0x2b2c61){var _0x4ea3a0=_0x67c475(_0x30148c,_0x23b5e4);if(!_0x4ea3a0)return;var _0x29f3e6=Object['getOwnPropertyDescriptor'](_0x4ea3a0,_0x23b5e4);if(_0x29f3e6['get']){return _0x29f3e6[_0x3fc4('0x1d')]['call'](_0x2b2c61);}return _0x29f3e6[_0x3fc4('0xd')];};}return _0x44c0d4(_0x30148c,_0x23b5e4,_0x2b2c61||_0x30148c);}var _0x4e64c8=function(){function _0x4e64c8(){_0x36602b(this,_0x4e64c8);}_0x5e6b91(_0x4e64c8,null,[{'key':_0x3fc4('0x1e'),'get':function get(){return _0x3fc4('0x1e');}},{'key':_0x3fc4('0x1f'),'get':function get(){return'pageChanged';}},{'key':_0x3fc4('0x20'),'get':function get(){return'pageAdding';}},{'key':'pageAdded','get':function get(){return _0x3fc4('0x21');}},{'key':_0x3fc4('0x22'),'get':function get(){return _0x3fc4('0x22');}},{'key':_0x3fc4('0x23'),'get':function get(){return'pageRemoved';}}]);return _0x4e64c8;}();var _0x1c4537=function(_0x1fd7e3){_0x4eb8c3(_0x1c4537,_0x1fd7e3);var _0x9060c=_0x145591(_0x1c4537);function _0x1c4537(_0x43ce88){var _0xf82ff0;_0x36602b(this,_0x1c4537);_0xf82ff0=_0x9060c[_0x3fc4('0x18')](this);if(_0x43ce88[_0x3fc4('0x24')])_0xf82ff0[_0x3fc4('0x24')]=_0x43ce88[_0x3fc4('0x24')];if(_0x43ce88[_0x3fc4('0x25')])_0xf82ff0[_0x3fc4('0x26')]=_0x43ce88[_0x3fc4('0x25')];if(_0x43ce88[_0x3fc4('0x27')])_0xf82ff0['_oldPage']=_0x43ce88['oldPage'];return _0xf82ff0;}_0x5e6b91(_0x1c4537,[{'key':_0x3fc4('0x25'),'get':function get(){return this[_0x3fc4('0x26')];}},{'key':'oldPage','get':function get(){return this[_0x3fc4('0x28')];}}]);return _0x1c4537;}(_0x47440e['CancelEventArgs']);var _0x379f08=function(_0x5e6f12){_0x4eb8c3(_0x379f08,_0x5e6f12);var _0x42d561=_0x145591(_0x379f08);function _0x379f08(_0x412011,_0x4a8b63){var _0x2f4d19;_0x36602b(this,_0x379f08);var _0x4dd5a7=_0x4a8b63||new _0x26ec9[(_0x3fc4('0x29'))]();if(!_0x4dd5a7['pages']['length']){var _0x5b10ef=new _0x26ec9[(_0x3fc4('0x2a'))]();_0x5b10ef[_0x3fc4('0x2b')]=_0x3fc4('0x2c');_0x4dd5a7[_0x3fc4('0x2d')][_0x3fc4('0x2e')](_0x5b10ef);}_0x2f4d19=_0x42d561[_0x3fc4('0x18')](this,_0x412011,_0x4dd5a7[_0x3fc4('0x2d')][0x0]);_0x2f4d19['_document']=_0x4dd5a7;_0x2f4d19[_0x3fc4('0x2f')]=0x1;_0x2f4d19[_0x3fc4('0x30')]=new _0x413fff[(_0x3fc4('0x31'))](_0x2f4d19[_0x3fc4('0x32')][_0x3fc4('0x2d')]);_0x2f4d19['items'][_0x3fc4('0x33')]['addEventListener'](function(_0x5dd20a,_0x3c5381){_0x2f4d19[_0x3fc4('0x34')](_0x5dd20a,_0x3c5381);});_0x2f4d19[_0x3fc4('0x30')]['collectionChanged'][_0x3fc4('0x35')](function(_0x4da3cf,_0x400d72){_0x2f4d19[_0x3fc4('0x36')](_0x4da3cf,_0x400d72);});_0x2f4d19[_0x3fc4('0x37')]=_0x40f6c3[_0x3fc4('0x38')];_0x2f4d19[_0x3fc4('0x39')]=new _0x3368e5['TabStrip']();_0x2f4d19[_0x3fc4('0x39')][_0x3fc4('0x3a')]=_0x393f34(_0x2f4d19);_0x2f4d19[_0x3fc4('0x39')][_0x3fc4('0x3b')]=function(){return!![];};_0x2f4d19[_0x3fc4('0x39')][_0x3fc4('0x3c')]=![];_0x2f4d19[_0x3fc4('0x39')][_0x3fc4('0x3d')]=![];_0x2f4d19[_0x3fc4('0x39')][_0x3fc4('0x3e')]=![];_0x2f4d19[_0x3fc4('0x3f')]=0x14;_0x2f4d19['showTabCloseButtons']=![];_0x2f4d19[_0x3fc4('0x40')]=![];return _0x2f4d19;}_0x5e6b91(_0x379f08,[{'key':_0x3fc4('0x41'),'value':function initialize(){var _0x356b60=this;_0x44c0d4(_0x13b827(_0x379f08[_0x3fc4('0x11')]),_0x3fc4('0x41'),this)[_0x3fc4('0x18')](this);this['_tabMouseDownHandler']=function(_0x453df0,_0x551fed){_0x356b60['onTabMouseDown'](_0x453df0,_0x551fed);};this[_0x3fc4('0x39')][_0x3fc4('0x42')][_0x3fc4('0x35')](this[_0x3fc4('0x43')]);this[_0x3fc4('0x39')]['closeButtonClick'][_0x3fc4('0x35')](this[_0x3fc4('0x43')]);this[_0x3fc4('0x39')][_0x3fc4('0x44')][_0x3fc4('0x35')](this[_0x3fc4('0x43')]);this['tabStrip']['navButtonClick']['addEventListener'](this[_0x3fc4('0x43')]);this['_tabDropHandler']=function(_0x429285,_0x4d9155){_0x356b60[_0x3fc4('0x45')](_0x429285,_0x4d9155);};this['tabStrip'][_0x3fc4('0x46')][_0x3fc4('0x35')](this[_0x3fc4('0x47')]);this[_0x3fc4('0x48')]();if(this[_0x3fc4('0x49')]==_0x40f6c3['Top'])this[_0x3fc4('0x4a')][_0x3fc4('0x4b')]['insertBefore'](this[_0x3fc4('0x39')][_0x3fc4('0x4c')](),this[_0x3fc4('0x4a')]);else this['element'][_0x3fc4('0x4b')][_0x3fc4('0x4d')](this[_0x3fc4('0x39')]['draw']());this['tabStrip'][_0x3fc4('0x4e')]();this[_0x3fc4('0x4f')]=this[_0x3fc4('0x30')][_0x3fc4('0x50')]();}},{'key':'dispose','value':function dispose(){this['items'][_0x3fc4('0x51')](function(_0x4145c7){return _0x4145c7['dispose']();});this[_0x3fc4('0x39')]['dispose']();_0x44c0d4(_0x13b827(_0x379f08[_0x3fc4('0x11')]),_0x3fc4('0x52'),this)[_0x3fc4('0x18')](this);}},{'key':_0x3fc4('0x53'),'value':function attachDiagramEvents(){this[_0x3fc4('0x54')]['addEventListener'](_0x26ec9[_0x3fc4('0x55')][_0x3fc4('0x56')],this[_0x3fc4('0x57')]);this['document']['addEventListener'](_0x26ec9[_0x3fc4('0x55')][_0x3fc4('0x58')],this[_0x3fc4('0x59')]);}},{'key':_0x3fc4('0x5a'),'value':function detachDiagramEvents(){this['document'][_0x3fc4('0x5b')](_0x26ec9[_0x3fc4('0x55')][_0x3fc4('0x56')],this['dataLoadedDelegate']);this[_0x3fc4('0x54')][_0x3fc4('0x5b')](_0x26ec9[_0x3fc4('0x55')][_0x3fc4('0x58')],this[_0x3fc4('0x59')]);}},{'key':_0x3fc4('0x5c'),'value':function saveToXml(_0x30da30){var _0x17ffea=new XMLHttpRequest();_0x17ffea[_0x3fc4('0x5d')](_0x3fc4('0x5e'),_0x30da30,!![]);_0x17ffea['setRequestHeader'](_0x3fc4('0x5f'),_0x3fc4('0x60'));var _0x4fca46=this[_0x3fc4('0x54')]['toXmlDocument']();var _0x59b0c6=new _0x26ec9['XmlPersistContext'](this['diagram'],_0x4fca46);var _0x57d5a5=_0x59b0c6[_0x3fc4('0x61')](_0x3fc4('0x29'),_0x4fca46);var _0x9926cb=_0x4fca46[_0x3fc4('0x62')]('View');_0x57d5a5[_0x3fc4('0x4d')](_0x9926cb);this[_0x3fc4('0x63')](_0x9926cb,_0x59b0c6);var _0x4076a2=new XMLSerializer();_0x17ffea[_0x3fc4('0x64')](_0x4076a2[_0x3fc4('0x65')](_0x4fca46));}},{'key':'saveView','value':function saveView(_0x54a4cf,_0x470f52){_0x44c0d4(_0x13b827(_0x379f08[_0x3fc4('0x11')]),_0x3fc4('0x63'),this)[_0x3fc4('0x18')](this,_0x54a4cf,_0x470f52);if(this[_0x3fc4('0x66')])_0x470f52[_0x3fc4('0x67')](this[_0x3fc4('0x66')]['id'],_0x3fc4('0x68'),_0x54a4cf);}},{'key':_0x3fc4('0x69'),'value':function loadFromXml(_0x3b260a,_0x4c2c6b,_0x112c2a){var _0x5b2a3f=this['document'];var _0x518a82=new XMLHttpRequest();_0x518a82[_0x3fc4('0x6a')]=function(){var _0x2820e8=_0x518a82[_0x3fc4('0x6b')];_0x5b2a3f[_0x3fc4('0x6c')](_0x2820e8);var _0x4e07fc=new _0x26ec9[(_0x3fc4('0x6d'))](_0x5b2a3f,_0x2820e8);var _0x83893b=_0x4e07fc[_0x3fc4('0x61')](_0x3fc4('0x29'),_0x2820e8);this[_0x3fc4('0x6e')](_0x3fc4('0x6f'),_0x83893b,_0x4e07fc);if(_0x4c2c6b)_0x4c2c6b(_0x5b2a3f);}[_0x3fc4('0x70')](this);_0x518a82[_0x3fc4('0x71')]=function(){console['log']('Error\x20while\x20getting\x20XML.');if(_0x112c2a)_0x112c2a(_0x5b2a3f);};_0x518a82[_0x3fc4('0x5d')](_0x3fc4('0x72'),_0x3b260a);_0x518a82[_0x3fc4('0x73')]=_0x3fc4('0x54');_0x518a82[_0x3fc4('0x64')]();}},{'key':_0x3fc4('0x6e'),'value':function loadView(_0x10d610,_0x331ba4,_0x39c03e){var _0x5a5633=_0x44c0d4(_0x13b827(_0x379f08[_0x3fc4('0x11')]),_0x3fc4('0x6e'),this)[_0x3fc4('0x18')](this,_0x10d610,_0x331ba4,_0x39c03e);if(!_0x5a5633)return;var _0x4f70ce=_0x39c03e[_0x3fc4('0x74')](_0x3fc4('0x68'),_0x5a5633);if(_0x4f70ce)this[_0x3fc4('0x66')]=_0x26ec9[_0x3fc4('0x68')][_0x3fc4('0x75')](_0x4f70ce);}},{'key':_0x3fc4('0x76'),'value':function resetVirtualScrollGrid(){var _0x501c7c=this[_0x3fc4('0x4a')];if(!_0x501c7c[_0x3fc4('0x4b')])return;if(!this[_0x3fc4('0x77')]){_0x47440e[_0x3fc4('0x78')]['clearHandlers'](_0x501c7c[_0x3fc4('0x4b')]);var _0x5991ef=_0x47440e['DomUtils'][_0x3fc4('0x79')](_0x501c7c[_0x3fc4('0x4b')],null,!![]);var _0x32189b=_0x5991ef[_0x3fc4('0x7a')];var _0x28e725=_0x5991ef[_0x3fc4('0x7b')];if(_0x28e725!=0x0)_0x501c7c[_0x3fc4('0x4b')]['_mf_originalHeight']=_0x28e725;this[_0x3fc4('0x7c')]={'width':_0x32189b,'height':_0x28e725};_0x501c7c[_0x3fc4('0x4b')][_0x3fc4('0x7d')]['display']=_0x3fc4('0x7e');_0x501c7c[_0x3fc4('0x4b')][_0x3fc4('0x7d')]['gridTemplateColumns']='auto\x20'+this[_0x3fc4('0x7f')]+'px';if(this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')])_0x501c7c[_0x3fc4('0x4b')]['style'][_0x3fc4('0x81')]=this[_0x3fc4('0x3f')]+'px\x20auto\x20'+this[_0x3fc4('0x7f')]+'px';else _0x501c7c[_0x3fc4('0x4b')][_0x3fc4('0x7d')][_0x3fc4('0x81')]='auto\x20'+this[_0x3fc4('0x7f')]+_0x3fc4('0x82')+this['tabsSize']+'px';_0x501c7c[_0x3fc4('0x4b')]['style']['overflow']='';_0x501c7c['style']['gridRow']=this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')]?0x2:0x1;_0x501c7c[_0x3fc4('0x7a')]=Math[_0x3fc4('0x83')](_0x5991ef[_0x3fc4('0x7a')]-this[_0x3fc4('0x84')](0x1),this[_0x3fc4('0x85')][_0x3fc4('0x86')][_0x3fc4('0x7a')]*this[_0x3fc4('0x87')]);_0x501c7c[_0x3fc4('0x7b')]=Math[_0x3fc4('0x83')](_0x28e725-this[_0x3fc4('0x3f')]-this['getScrollbarSize'](0x0),this[_0x3fc4('0x85')][_0x3fc4('0x86')]['height']*this[_0x3fc4('0x87')]);this[_0x3fc4('0x39')]['_element'][_0x3fc4('0x7d')][_0x3fc4('0x88')]=_0x3fc4('0x89');this['tabStrip']['_element'][_0x3fc4('0x7d')][_0x3fc4('0x8a')]=_0x3fc4('0x8b');var _0x32e372=document[_0x3fc4('0x62')]('div');_0x32e372[_0x3fc4('0x8c')]=_0x3fc4('0x8d');_0x32e372['style'][_0x3fc4('0x8e')]=this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')]?0x3:0x2;_0x32e372[_0x3fc4('0x7d')]['gridColumnStart']=0x1;_0x32e372[_0x3fc4('0x7d')][_0x3fc4('0x8f')]=0x2;_0x32e372['style'][_0x3fc4('0x7b')]=this[_0x3fc4('0x7f')]+'px';_0x32e372[_0x3fc4('0x7d')][_0x3fc4('0x7a')]=_0x5991ef[_0x3fc4('0x7a')]-this[_0x3fc4('0x7f')]+'px';_0x32e372[_0x3fc4('0x7d')][_0x3fc4('0x90')]=_0x3fc4('0x91');_0x32e372[_0x3fc4('0x7d')][_0x3fc4('0x92')]=_0x3fc4('0x93');_0x32e372[_0x3fc4('0x7d')]['backgroundColor']=_0x3fc4('0x94');this[_0x3fc4('0x77')]=_0x32e372;var _0x4e7466=document[_0x3fc4('0x62')]('div');_0x4e7466['style'][_0x3fc4('0x7b')]=this['scrollbarSize']+'px';_0x32e372[_0x3fc4('0x4d')](_0x4e7466);_0x501c7c['parentNode']['appendChild'](_0x32e372);var _0x5c88b8=document[_0x3fc4('0x62')](_0x3fc4('0x95'));_0x5c88b8['className']=_0x3fc4('0x96');_0x5c88b8[_0x3fc4('0x7d')][_0x3fc4('0x97')]=this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')]?0x2:0x1;_0x5c88b8['style'][_0x3fc4('0x7a')]=this['scrollbarSize']+'px';_0x5c88b8['style']['height']=_0x5991ef['height']-this['tabsSize']-this['scrollbarSize']+'px';_0x5c88b8[_0x3fc4('0x7d')][_0x3fc4('0x90')]=_0x3fc4('0x93');_0x5c88b8[_0x3fc4('0x7d')][_0x3fc4('0x92')]=_0x3fc4('0x91');_0x5c88b8[_0x3fc4('0x7d')][_0x3fc4('0x98')]=_0x3fc4('0x94');this[_0x3fc4('0x99')]=_0x5c88b8;var _0x7e72b3=document[_0x3fc4('0x62')](_0x3fc4('0x95'));_0x7e72b3[_0x3fc4('0x7d')]['width']=this[_0x3fc4('0x7f')]+'px';_0x5c88b8[_0x3fc4('0x4d')](_0x7e72b3);_0x501c7c[_0x3fc4('0x4b')][_0x3fc4('0x4d')](_0x5c88b8);_0x47440e[_0x3fc4('0x78')][_0x3fc4('0x9a')](_0x32e372,{'scroll':this[_0x3fc4('0x9b')]});_0x47440e[_0x3fc4('0x78')][_0x3fc4('0x9a')](_0x5c88b8,{'scroll':this['scrollDelegate']});if(!this['resizeTimeoutId']){var _0x553be2=this;this['resizeTimeoutId']=setInterval(function(){_0x553be2['onVirtualResize']();},0xc8);}}}},{'key':'resetTabAlignment','value':function resetTabAlignment(){this[_0x3fc4('0x39')]['visible']=this[_0x3fc4('0x49')]!=_0x40f6c3[_0x3fc4('0x38')];var _0x5de194=this[_0x3fc4('0x4a')];if(this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')])_0x5de194[_0x3fc4('0x4b')][_0x3fc4('0x7d')][_0x3fc4('0x81')]=this[_0x3fc4('0x3f')]+_0x3fc4('0x9c')+this[_0x3fc4('0x7f')]+'px';else _0x5de194['parentNode']['style']['gridTemplateRows']=_0x3fc4('0x9d')+this[_0x3fc4('0x7f')]+_0x3fc4('0x82')+this[_0x3fc4('0x3f')]+'px';_0x5de194[_0x3fc4('0x7d')][_0x3fc4('0x8e')]=this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')]?0x2:0x1;var _0x9eae59=this[_0x3fc4('0x4a')]['parentNode'][_0x3fc4('0x9e')](_0x3fc4('0x9f'));if(this['scrollerH']){_0x9eae59[_0x3fc4('0x7d')][_0x3fc4('0x8e')]=this['tabAlignment']==_0x40f6c3[_0x3fc4('0x80')]?0x3:0x2;var _0x46442b=this[_0x3fc4('0x4a')][_0x3fc4('0x4b')]['querySelector'](_0x3fc4('0xa0'));_0x46442b[_0x3fc4('0x7d')][_0x3fc4('0x97')]=this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')]?0x2:0x1;}this[_0x3fc4('0xa1')]();}},{'key':_0x3fc4('0xa1'),'value':function updateCanvasSize(){if(!this[_0x3fc4('0x4a')])return;var _0x54e80a=this[_0x3fc4('0xa2')]/0x64/_0xc67f3a['GraphicsUnit'][_0x3fc4('0xa3')](this[_0x3fc4('0xa4')][_0x3fc4('0xa5')]);if(this['scrollerH']){var _0x4d6d06=this[_0x3fc4('0x4a')][_0x3fc4('0x4b')];this['scrollerH'][_0x3fc4('0xa6')]['style'][_0x3fc4('0x7a')]=this[_0x3fc4('0xa4')][_0x3fc4('0x86')][_0x3fc4('0x7a')]*_0x54e80a+'px';this[_0x3fc4('0x99')]['firstChild'][_0x3fc4('0x7d')]['height']=this[_0x3fc4('0xa4')][_0x3fc4('0x86')][_0x3fc4('0x7b')]*_0x54e80a+'px';var _0x25dfa7=this[_0x3fc4('0x84')](0x1);var _0x5efdc1=this[_0x3fc4('0x84')](0x0);this['scrollerV'][_0x3fc4('0x7d')][_0x3fc4('0x7a')]=_0x25dfa7+'px';this[_0x3fc4('0x77')][_0x3fc4('0x7d')]['height']=_0x5efdc1+'px';_0x4d6d06[_0x3fc4('0x7d')][_0x3fc4('0xa7')]='auto\x20'+_0x25dfa7+'px';if(this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x80')])_0x4d6d06['style'][_0x3fc4('0x81')]=this[_0x3fc4('0x3f')]+_0x3fc4('0x9c')+_0x5efdc1+'px';else _0x4d6d06[_0x3fc4('0x7d')][_0x3fc4('0x81')]=_0x3fc4('0x9d')+_0x5efdc1+_0x3fc4('0x82')+this['tabsSize']+'px';var _0x1962b0=_0x47440e[_0x3fc4('0xa8')][_0x3fc4('0x79')](_0x4d6d06,null,!![]);var _0x3c840b=_0x1962b0[_0x3fc4('0x7b')];if(_0x3c840b==0x0)_0x3c840b=_0x4d6d06[_0x3fc4('0xa9')];if(_0x3c840b==0x0)_0x3c840b=this[_0x3fc4('0xa4')][_0x3fc4('0x86')]['height']*_0x54e80a;this[_0x3fc4('0x4a')][_0x3fc4('0x7a')]=Math[_0x3fc4('0x83')](_0x1962b0['width']-_0x25dfa7,this[_0x3fc4('0xa4')][_0x3fc4('0x86')]['width']*_0x54e80a);this[_0x3fc4('0x4a')][_0x3fc4('0x7b')]=Math[_0x3fc4('0x83')](_0x3c840b-this[_0x3fc4('0x3f')]-_0x5efdc1,this[_0x3fc4('0xa4')][_0x3fc4('0x86')]['height']*_0x54e80a);this[_0x3fc4('0x77')][_0x3fc4('0x7d')][_0x3fc4('0x7a')]=_0x1962b0[_0x3fc4('0x7a')]-_0x25dfa7+'px';this[_0x3fc4('0x99')][_0x3fc4('0x7d')]['height']=_0x3c840b-this[_0x3fc4('0x3f')]-_0x5efdc1+'px';}this[_0x3fc4('0xa4')]['invalidRect']=null;this['canvas']['repaint']();this[_0x3fc4('0x85')][_0x3fc4('0xaa')](_0x26ec9[_0x3fc4('0x55')]['sizeChanged'],_0x47440e['EventArgs'][_0x3fc4('0xab')]);}},{'key':_0x3fc4('0x48'),'value':function resetTabs(){var _0xea06aa=this;this[_0x3fc4('0x39')][_0x3fc4('0x30')][_0x3fc4('0xac')]();this[_0x3fc4('0x54')][_0x3fc4('0x2d')][_0x3fc4('0x51')](function(_0x380738,_0x42fe12){var _0x53ea79=new _0x3368e5['ToolStripItem'](_0x3368e5[_0x3fc4('0xad')][_0x3fc4('0xae')],_0x380738[_0x3fc4('0x2b')]);_0x53ea79[_0x3fc4('0xaf')]=_0x380738[_0x3fc4('0xaf')];_0x53ea79[_0x3fc4('0xb0')]=_0x380738['iconUrl'];_0xea06aa[_0x3fc4('0x39')][_0x3fc4('0x30')]['add'](_0x53ea79);_0x380738['header']=_0x53ea79;});}},{'key':_0x3fc4('0xb1'),'value':function onTabMouseDown(_0x2ce792,_0x370d47){if(!_0x370d47['item'][_0x3fc4('0xb2')])return;if(_0x370d47['item'][_0x3fc4('0xb3')]==_0x3fc4('0xb4')){var _0x5a1c82=new _0x26ec9[(_0x3fc4('0x2a'))]();_0x5a1c82[_0x3fc4('0x2b')]=_0x3fc4('0x85')+(++this['_lastIndex'])[_0x3fc4('0xb5')]();this[_0x3fc4('0x30')][_0x3fc4('0xb6')](_0x5a1c82);this[_0x3fc4('0x4f')]=_0x5a1c82;return;}if(_0x370d47[_0x3fc4('0xb7')]['dataMfc']){if(_0x370d47['item'][_0x3fc4('0xb3')]=='mfc-first')this['selectedPage']=this['items'][_0x3fc4('0xb8')]();else if(_0x370d47['item']['dataMfc']==_0x3fc4('0xb9'))this[_0x3fc4('0xba')]--;else if(_0x370d47[_0x3fc4('0xb7')]['dataMfc']==_0x3fc4('0xbb'))this['selectedIndex']++;else if(_0x370d47[_0x3fc4('0xb7')]['dataMfc']==_0x3fc4('0xbc'))this[_0x3fc4('0x4f')]=this['items'][_0x3fc4('0x50')]();return;}var _0x1de442=this[_0x3fc4('0xbd')](_0x370d47[_0x3fc4('0xb7')]);if(_0x1de442){if(_0x47440e['DomUtils']['hasCssClass'](_0x370d47[_0x3fc4('0xbe')][_0x3fc4('0xbf')],'mfc-tabbutton-close')){var _0x7a9839=this[_0x3fc4('0xba')];if(this[_0x3fc4('0x4f')]==_0x1de442){if(_0x1de442==this['items'][_0x3fc4('0xb8')]())_0x7a9839++;}this[_0x3fc4('0x30')]['remove'](_0x1de442);this['selectedIndex']=--_0x7a9839;}else this[_0x3fc4('0x4f')]=_0x1de442;}}},{'key':_0x3fc4('0x45'),'value':function onTabDrop(_0x1c71b6,_0x4c6b14){var _0x56051e=_0x1c71b6[_0x3fc4('0xc0')](_0x4c6b14[_0x3fc4('0xb7')])['indexOfItem'](_0x4c6b14[_0x3fc4('0xb7')]);var _0x5dfeca=this[_0x3fc4('0xbd')](_0x4c6b14[_0x3fc4('0xb7')]);this[_0x3fc4('0x30')][_0x3fc4('0xc1')]['splice'](this[_0x3fc4('0x30')][_0x3fc4('0xc2')](_0x5dfeca),0x1);this[_0x3fc4('0x30')][_0x3fc4('0xc1')][_0x3fc4('0xc3')](_0x56051e,0x0,_0x5dfeca);}},{'key':_0x3fc4('0x34'),'value':function onItemsChanging(_0xb80e8f,_0x2a9268){if(_0x2a9268[_0x3fc4('0xc4')]==_0x4232ed[_0x3fc4('0xc5')][_0x3fc4('0xc6')]){var _0x198ae4;for(var _0x41d9f6=0x0;_0x41d9f6<_0x2a9268[_0x3fc4('0xc7')][_0x3fc4('0xa')];_0x41d9f6++){if(!this[_0x3fc4('0xc8')](_0x4e64c8[_0x3fc4('0x20')],_0x2a9268[_0x3fc4('0xc7')][_0x41d9f6]))_0x198ae4=!![];}_0x2a9268[_0x3fc4('0xc9')]=_0x198ae4;}else{var _0x198ae4;for(var _0x41d9f6=0x0;_0x41d9f6<_0x2a9268[_0x3fc4('0xca')][_0x3fc4('0xa')];_0x41d9f6++){if(!this['onPageValidateAction'](_0x4e64c8[_0x3fc4('0x22')],null,_0x2a9268[_0x3fc4('0xca')][_0x41d9f6]))_0x198ae4=!![];}_0x2a9268[_0x3fc4('0xc9')]=_0x198ae4;}}},{'key':_0x3fc4('0x36'),'value':function onItemsChanged(_0x46e370,_0x263e50){if(_0x263e50['action']==_0x4232ed[_0x3fc4('0xc5')][_0x3fc4('0xc6')]){for(var _0x1fe374=0x0;_0x1fe374<_0x263e50[_0x3fc4('0xc7')][_0x3fc4('0xa')];_0x1fe374++){this[_0x3fc4('0xaa')](_0x4e64c8[_0x3fc4('0x21')],new _0x1c4537({'page':_0x263e50['m_newItems'][_0x1fe374]}));}}else{for(var _0x1fe374=0x0;_0x1fe374<_0x263e50['m_oldItems'][_0x3fc4('0xa')];_0x1fe374++){this[_0x3fc4('0xaa')](_0x4e64c8[_0x3fc4('0x23')],new _0x1c4537({'oldPage':_0x263e50[_0x3fc4('0xca')][_0x1fe374]}));}}this[_0x3fc4('0x48')]();this[_0x3fc4('0x39')][_0x3fc4('0xcb')]();}},{'key':'selectedPage','get':function get(){return this['_selectedPage'];},'set':function set(_0xfda77){if(_0xfda77){if(this[_0x3fc4('0xc8')](_0x4e64c8['pageChanging'],this['_selectedPage'],_0xfda77)){var _0x13cca0=this[_0x3fc4('0xcc')];this[_0x3fc4('0xcc')]=_0xfda77;this[_0x3fc4('0xcd')](this[_0x3fc4('0xcc')]);this[_0x3fc4('0xcc')][_0x3fc4('0xce')]();this[_0x3fc4('0x39')]['selectItem'](this[_0x3fc4('0xcc')]['header']);this[_0x3fc4('0xaa')](_0x26ec9[_0x3fc4('0x55')]['pageChanged'],new _0x1c4537({'page':this[_0x3fc4('0xcc')],'oldPage':_0x13cca0}));}}}},{'key':_0x3fc4('0xba'),'get':function get(){if(this[_0x3fc4('0xcc')])return this[_0x3fc4('0x30')]['indexOfItem'](this[_0x3fc4('0xcc')]);return-0x1;},'set':function set(_0x4eeca6){var _0x2277d3=this['items'][_0x3fc4('0x30')]()[_0x4eeca6];if(_0x2277d3)this['selectedPage']=_0x2277d3;}},{'key':_0x3fc4('0xbd'),'value':function getItemByHeader(_0x3f1305){return this[_0x3fc4('0x30')][_0x3fc4('0xcf')](function(_0x179860){return _0x179860[_0x3fc4('0xd0')]==_0x3f1305;})['first']();}},{'key':_0x3fc4('0x54'),'get':function get(){return this[_0x3fc4('0x32')];},'set':function set(_0x1975d0){if(this[_0x3fc4('0x32')]!=_0x1975d0){this[_0x3fc4('0x32')]=_0x1975d0;}}},{'key':_0x3fc4('0x3f'),'get':function get(){if(this[_0x3fc4('0x49')]==_0x40f6c3[_0x3fc4('0x38')])return 0x0;return this[_0x3fc4('0x39')]['height']['value'];},'set':function set(_0x3ff391){if(this[_0x3fc4('0x39')][_0x3fc4('0x7b')][_0x3fc4('0xd')]!=_0x3ff391){this[_0x3fc4('0x39')][_0x3fc4('0x7b')]=new _0x4232ed[(_0x3fc4('0xd1'))](_0x3ff391,_0x4232ed[_0x3fc4('0xd2')]['Pixel']);this['resetTabAlignment']();}}},{'key':'tabAlignment','get':function get(){return this[_0x3fc4('0x37')];},'set':function set(_0x559448){if(this[_0x3fc4('0x37')]!=_0x559448){this[_0x3fc4('0x37')]=_0x559448;this[_0x3fc4('0xd3')]();}}},{'key':'showTabCloseButtons','get':function get(){return this[_0x3fc4('0x39')][_0x3fc4('0xd4')];},'set':function set(_0x43fb78){if(this[_0x3fc4('0x39')]['showCloseButtons']!=_0x43fb78){this['tabStrip'][_0x3fc4('0xd4')]=_0x43fb78;}}},{'key':'showNavigationButtons','get':function get(){return this['tabStrip'][_0x3fc4('0xd5')]==_0x3368e5[_0x3fc4('0xd6')][_0x3fc4('0xd7')];},'set':function set(_0xc70401){if(this[_0x3fc4('0x39')]['scrollMode']==_0x3368e5['TabsScrollMode'][_0x3fc4('0xd7')]!=_0xc70401){this['tabStrip'][_0x3fc4('0xd5')]=_0xc70401?_0x3368e5['TabsScrollMode'][_0x3fc4('0xd7')]:_0x3368e5[_0x3fc4('0xd6')][_0x3fc4('0x38')];}}},{'key':_0x3fc4('0x3e'),'get':function get(){return this['tabStrip']['showAddButton'];},'set':function set(_0x202857){if(this[_0x3fc4('0x39')]['showAddButton']!=_0x202857){this[_0x3fc4('0x39')][_0x3fc4('0x3e')]=_0x202857;}}},{'key':_0x3fc4('0xd8'),'get':function get(){return this[_0x3fc4('0x39')][_0x3fc4('0xd9')];},'set':function set(_0x2cdabc){if(this[_0x3fc4('0x39')][_0x3fc4('0xd9')]!=_0x2cdabc){this[_0x3fc4('0x39')][_0x3fc4('0xd9')]=_0x2cdabc;}}},{'key':_0x3fc4('0x66'),'get':function get(){return this[_0x3fc4('0xda')];},'set':function set(_0x1724c8){if(this[_0x3fc4('0xda')]!=_0x1724c8){this[_0x3fc4('0xda')]=_0x1724c8;if(this[_0x3fc4('0xda')])this[_0x3fc4('0x39')][_0x3fc4('0x66')]=this[_0x3fc4('0xda')]['id'];}}},{'key':_0x3fc4('0xdb'),'value':function setTheme(_0x65197e,_0xc199bd){this['theme']=_0x65197e;if(_0xc199bd){this['items'][_0x3fc4('0x51')](function(_0x265af4){return _0x265af4[_0x3fc4('0x66')]=_0x65197e;});}}},{'key':_0x3fc4('0xdc'),'value':function onDataLoaded(_0x35c0e6,_0x16b2f0){var _0x115db4=this;this[_0x3fc4('0x30')]=new _0x413fff[(_0x3fc4('0x31'))](this[_0x3fc4('0x54')][_0x3fc4('0x2d')]);this[_0x3fc4('0x30')][_0x3fc4('0xdd')][_0x3fc4('0x35')](function(_0x35c0e6,_0x16b2f0){_0x115db4['onItemsChanged'](_0x35c0e6,_0x16b2f0);});this[_0x3fc4('0x48')]();this[_0x3fc4('0x39')]['resetButtons']();this[_0x3fc4('0x4f')]=this[_0x3fc4('0x30')][_0x3fc4('0x50')]();this[_0x3fc4('0x2f')]=this[_0x3fc4('0x30')][_0x3fc4('0xde')]();}},{'key':_0x3fc4('0xc8'),'value':function onPageValidateAction(_0xd25fbb,_0x192cf0,_0x10676a){var _0x422fba=new _0x1c4537({'page':_0x192cf0,'oldPage':_0x10676a});this['raiseEvent'](_0xd25fbb,_0x422fba);if(_0x422fba[_0x3fc4('0xc9')])return![];return!![];}}],[{'key':_0x3fc4('0x13'),'value':function create(_0x59b8de,_0x40ad35){return _0x47440e[_0x3fc4('0x78')][_0x3fc4('0xdf')](_0x379f08,_0x59b8de,_0x40ad35);}}]);return _0x379f08;}(_0x26ec9['DiagramView']);_0x5e6f11['Events']=_0x4e64c8;_0x5e6f11[_0x3fc4('0xe0')]=_0x1c4537;_0x5e6f11['TabAlignment']=_0x40f6c3;_0x5e6f11[_0x3fc4('0xe1')]=_0x379f08;Object[_0x3fc4('0xf')](_0x5e6f11,_0x3fc4('0xe2'),{'value':!![]});}));
1
+ var _0x2458=['object','amd','undefined','MindFusion','Diagramming','Controls','Common','Collections','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','length','enumerable','configurable','value','writable','key','prototype','create','setPrototypeOf','getPrototypeOf','__proto__','construct','sham','function','valueOf','this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called','constructor','apply','hasOwnProperty','call','get','getOwnPropertyDescriptor','pageChanging','pageChanged','pageAdding','pageAdded','pageRemoving','pageRemoved','sender','page','_page','oldPage','_oldPage','CancelEventArgs','DiagramDocument','DiagramPage','title','diagram1','addPage','pages','documentChangedDelegate','onDocumentChanged','document','_lastIndex','items','ObservableCollection','_document','collectionChanging','addEventListener','onItemsChanging','collectionChanged','onItemsChanged','None','tabStrip','parent','req','autoSizeTabs','showAddButton','showTabCloseButtons','CompatConfig','generatePropFunctions','initialize','_tabMouseDownHandler','onTabMouseDown','itemMouseDown','navButtonClick','_tabDropHandler','itemDrop','tabAlignment','Top','element','parentNode','insertBefore','draw','selectedPage','last','dispose','attachDiagramEvents','dataLoaded','dataLoadedDelegate','Events','queryViewDelegate','detachDiagramEvents','removeEventListener','queryView','toJsonObject','saveViewProps','Control','toJson','tabsSize','showNavigationButtons','allowReorder','theme','fromJson','fromJsonObject','updateScale','loadViewProps','controlLoaded','Theme','saveToXml','open','POST','setRequestHeader','Content-Type','text/xml','toXmlDocument','diagram','selectSingleNode','createElement','View','appendChild','saveView','send','serializeToString','writeString','loadFromXml','responseXML','XmlPersistContext','loadView','onerror','log','GET','responseType','readString','fromId','clearHandlers','DomUtils','getBounds','height','_mf_originalHeight','parentSize','style','display','grid','gridTemplateColumns','scrollbarSize','gridTemplateRows','auto\x20','px\x20','overflow','gridRow','width','min','getScrollbarSize','bounds','scale','_element','inline-block','gridColumn','1\x20/\x20-1','div','className','mf_diagram_scrollerH','gridColumnEnd','overflowX','auto','overflowY','backgroundColor','#eee','mf_diagram_scrollerV','hidden','scrollerV','addHandlers','scrollDelegate','resizeTimeoutId','onVirtualResize','querySelector','.mf_diagram_scrollerH','scrollerH','.mf_diagram_scrollerV','updateCanvasSize','_zoomFactor','GraphicsUnit','canvas','measureUnit','invalidRect','repaint','raiseEvent','sizeChanged','EventArgs','Empty','clear','ToolStripItem','ToolStripItemType','Label','titleColor','enabled','item','toString','dataMfc','mfc-first','first','mfc-prev','mfc-next','selectedIndex','mfc-last','getItemByHeader','hasCssClass','rawEventArgs','target','mfc-tabbutton-close','documentChanged','onTabDrop','indexOfItem','_items','splice','Add','m_newItems','onPageValidateAction','setCancel','m_oldItems','action','NotifyCollectionChangedAction','resetTabs','resetButtons','_selectedPage','setDiagram','header','where','diagramChanged','Unit','UnitType','Pixel','_tabAlignment','resetTabAlignment','showCloseButtons','NavButtons','scrollMode','TabsScrollMode','allowDrag','_theme','forEach','Diagram','max','oldIndex','index','createControl','DiagramView','PageEventArgs','TabAlignment','TabbedDiagramView','defineProperty'];var _0x43b7=function(_0x3be23d,_0x24d59a){_0x3be23d=_0x3be23d-0x0;var _0x2939ed=_0x2458[_0x3be23d];return _0x2939ed;};(function(_0x47fb60,_0x3931c0){typeof exports===_0x43b7('0x0')&&typeof module!=='undefined'?_0x3931c0(exports,require('@mindfusion/controls'),require('@mindfusion/diagramming'),require('@mindfusion/common'),require('@mindfusion/common-ui'),require('@mindfusion/common-collections'),require('@mindfusion/drawing')):typeof define==='function'&&define[_0x43b7('0x1')]?define(['exports','@mindfusion/controls','@mindfusion/diagramming','@mindfusion/common','@mindfusion/common-ui','@mindfusion/common-collections','@mindfusion/drawing'],_0x3931c0):(_0x47fb60=typeof globalThis!==_0x43b7('0x2')?globalThis:_0x47fb60||self,_0x3931c0((_0x47fb60[_0x43b7('0x3')]=_0x47fb60['MindFusion']||{},_0x47fb60[_0x43b7('0x3')]['Diagramming']=_0x47fb60[_0x43b7('0x3')][_0x43b7('0x4')]||{},_0x47fb60['MindFusion'][_0x43b7('0x4')][_0x43b7('0x5')]={}),_0x47fb60['MindFusion'][_0x43b7('0x5')],_0x47fb60[_0x43b7('0x3')][_0x43b7('0x4')],_0x47fb60[_0x43b7('0x3')][_0x43b7('0x6')],_0x47fb60[_0x43b7('0x3')][_0x43b7('0x6')]['UI'],_0x47fb60[_0x43b7('0x3')]['Common'][_0x43b7('0x7')],_0x47fb60[_0x43b7('0x3')]['Drawing']));}(this,function(_0x5e62c2,_0x4106f2,_0x36b163,_0x53f22a,_0x15c280,_0x2d2976,_0x1e5c5c){'use strict';var _0x14896c={'None':0x0,'Top':0x1,'Bottom':0x3};function _0x52e68d(_0xc7ff1d,_0x576b5e){if(!(_0xc7ff1d instanceof _0x576b5e)){throw new TypeError(_0x43b7('0x8'));}}function _0x25ce23(_0x311ecb,_0x2cc0eb){for(var _0x43d0b5=0x0;_0x43d0b5<_0x2cc0eb[_0x43b7('0x9')];_0x43d0b5++){var _0x12af08=_0x2cc0eb[_0x43d0b5];_0x12af08[_0x43b7('0xa')]=_0x12af08[_0x43b7('0xa')]||![];_0x12af08[_0x43b7('0xb')]=!![];if(_0x43b7('0xc')in _0x12af08)_0x12af08[_0x43b7('0xd')]=!![];Object['defineProperty'](_0x311ecb,_0x12af08[_0x43b7('0xe')],_0x12af08);}}function _0x160214(_0x5d5a36,_0x46718e,_0x1684f3){if(_0x46718e)_0x25ce23(_0x5d5a36[_0x43b7('0xf')],_0x46718e);if(_0x1684f3)_0x25ce23(_0x5d5a36,_0x1684f3);return _0x5d5a36;}function _0x4bd6c0(_0x74b4ee,_0x4c5776){if(typeof _0x4c5776!=='function'&&_0x4c5776!==null){throw new TypeError('Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function');}_0x74b4ee['prototype']=Object[_0x43b7('0x10')](_0x4c5776&&_0x4c5776[_0x43b7('0xf')],{'constructor':{'value':_0x74b4ee,'writable':!![],'configurable':!![]}});if(_0x4c5776)_0x28d76b(_0x74b4ee,_0x4c5776);}function _0x55a3d4(_0x1fdc60){_0x55a3d4=Object[_0x43b7('0x11')]?Object[_0x43b7('0x12')]:function _0x55a3d4(_0x1fdc60){return _0x1fdc60[_0x43b7('0x13')]||Object['getPrototypeOf'](_0x1fdc60);};return _0x55a3d4(_0x1fdc60);}function _0x28d76b(_0x533dcc,_0x544b72){_0x28d76b=Object['setPrototypeOf']||function _0x28d76b(_0x533dcc,_0x544b72){_0x533dcc['__proto__']=_0x544b72;return _0x533dcc;};return _0x28d76b(_0x533dcc,_0x544b72);}function _0x50a1aa(){if(typeof Reflect===_0x43b7('0x2')||!Reflect[_0x43b7('0x14')])return![];if(Reflect[_0x43b7('0x14')][_0x43b7('0x15')])return![];if(typeof Proxy===_0x43b7('0x16'))return!![];try{Boolean[_0x43b7('0xf')][_0x43b7('0x17')]['call'](Reflect[_0x43b7('0x14')](Boolean,[],function(){}));return!![];}catch(_0x3ae206){return![];}}function _0x17b1d5(_0x5554fd){if(_0x5554fd===void 0x0){throw new ReferenceError(_0x43b7('0x18'));}return _0x5554fd;}function _0x36c3aa(_0x30273a,_0x4baacb){if(_0x4baacb&&(typeof _0x4baacb===_0x43b7('0x0')||typeof _0x4baacb===_0x43b7('0x16'))){return _0x4baacb;}return _0x17b1d5(_0x30273a);}function _0x288693(_0x4447da){var _0x5e1f6e=_0x50a1aa();return function _createSuperInternal(){var _0x4007dc=_0x55a3d4(_0x4447da),_0x5a940c;if(_0x5e1f6e){var _0x15bba0=_0x55a3d4(this)[_0x43b7('0x19')];_0x5a940c=Reflect[_0x43b7('0x14')](_0x4007dc,arguments,_0x15bba0);}else{_0x5a940c=_0x4007dc[_0x43b7('0x1a')](this,arguments);}return _0x36c3aa(this,_0x5a940c);};}function _0x30260d(_0x153b88,_0x5628ae){while(!Object['prototype'][_0x43b7('0x1b')][_0x43b7('0x1c')](_0x153b88,_0x5628ae)){_0x153b88=_0x55a3d4(_0x153b88);if(_0x153b88===null)break;}return _0x153b88;}function _0x4bd10f(_0x40e803,_0x24d137,_0x42cd68){if(typeof Reflect!==_0x43b7('0x2')&&Reflect[_0x43b7('0x1d')]){_0x4bd10f=Reflect[_0x43b7('0x1d')];}else{_0x4bd10f=function _0x4bd10f(_0x40e803,_0x24d137,_0x42cd68){var _0x3902f1=_0x30260d(_0x40e803,_0x24d137);if(!_0x3902f1)return;var _0x3bf534=Object[_0x43b7('0x1e')](_0x3902f1,_0x24d137);if(_0x3bf534[_0x43b7('0x1d')]){return _0x3bf534[_0x43b7('0x1d')][_0x43b7('0x1c')](_0x42cd68);}return _0x3bf534['value'];};}return _0x4bd10f(_0x40e803,_0x24d137,_0x42cd68||_0x40e803);}var _0xac3d17=function(){function _0xac3d17(){_0x52e68d(this,_0xac3d17);}_0x160214(_0xac3d17,null,[{'key':_0x43b7('0x1f'),'get':function get(){return _0x43b7('0x1f');}},{'key':_0x43b7('0x20'),'get':function get(){return _0x43b7('0x20');}},{'key':_0x43b7('0x21'),'get':function get(){return _0x43b7('0x21');}},{'key':_0x43b7('0x22'),'get':function get(){return _0x43b7('0x22');}},{'key':_0x43b7('0x23'),'get':function get(){return'pageRemoving';}},{'key':_0x43b7('0x24'),'get':function get(){return _0x43b7('0x24');}}]);return _0xac3d17;}();var _0x2c1779=function(_0x1cbf89){_0x4bd6c0(_0x2c1779,_0x1cbf89);var _0x47c6f1=_0x288693(_0x2c1779);function _0x2c1779(_0x45628b){var _0x4302ad;_0x52e68d(this,_0x2c1779);_0x4302ad=_0x47c6f1[_0x43b7('0x1c')](this);if(_0x45628b['sender'])_0x4302ad[_0x43b7('0x25')]=_0x45628b[_0x43b7('0x25')];if(_0x45628b[_0x43b7('0x26')])_0x4302ad[_0x43b7('0x27')]=_0x45628b[_0x43b7('0x26')];if(_0x45628b[_0x43b7('0x28')])_0x4302ad[_0x43b7('0x29')]=_0x45628b[_0x43b7('0x28')];return _0x4302ad;}_0x160214(_0x2c1779,[{'key':_0x43b7('0x26'),'get':function get(){return this[_0x43b7('0x27')];}},{'key':'oldPage','get':function get(){return this[_0x43b7('0x29')];}}]);return _0x2c1779;}(_0x4106f2[_0x43b7('0x2a')]);var _0x197c5e=function(_0xc128a7){_0x4bd6c0(_0x197c5e,_0xc128a7);var _0x2b837c=_0x288693(_0x197c5e);function _0x197c5e(_0x1223c8,_0xabe382){var _0x3044f2;_0x52e68d(this,_0x197c5e);var _0xab45d5=_0xabe382||new _0x36b163[(_0x43b7('0x2b'))]();if(!_0xab45d5['pages']['length']){var _0x3f641b=new _0x36b163[(_0x43b7('0x2c'))]();_0x3f641b[_0x43b7('0x2d')]=_0x43b7('0x2e');_0xab45d5[_0x43b7('0x2f')](_0x3f641b);}_0x3044f2=_0x2b837c[_0x43b7('0x1c')](this,_0x1223c8,_0xab45d5[_0x43b7('0x30')][0x0]);_0x3044f2[_0x43b7('0x31')]=function(_0x2af4b2,_0x44de79){return _0x3044f2[_0x43b7('0x32')](_0x2af4b2,_0x44de79);};_0x3044f2[_0x43b7('0x33')]=_0xab45d5;_0x3044f2[_0x43b7('0x34')]=0x1;_0x3044f2[_0x43b7('0x35')]=new _0x2d2976[(_0x43b7('0x36'))](_0x3044f2[_0x43b7('0x37')][_0x43b7('0x30')]);_0x3044f2[_0x43b7('0x35')][_0x43b7('0x38')][_0x43b7('0x39')](function(_0x44874c,_0x13bd16){_0x3044f2[_0x43b7('0x3a')](_0x44874c,_0x13bd16);});_0x3044f2['items'][_0x43b7('0x3b')][_0x43b7('0x39')](function(_0xf1bcb4,_0x4e2d84){_0x3044f2[_0x43b7('0x3c')](_0xf1bcb4,_0x4e2d84);});_0x3044f2['_tabAlignment']=_0x14896c[_0x43b7('0x3d')];_0x3044f2[_0x43b7('0x3e')]=new _0x15c280['TabStrip']();_0x3044f2[_0x43b7('0x3e')][_0x43b7('0x3f')]=_0x17b1d5(_0x3044f2);_0x3044f2['tabStrip'][_0x43b7('0x40')]=function(){return!![];};_0x3044f2[_0x43b7('0x3e')]['visible']=![];_0x3044f2[_0x43b7('0x3e')][_0x43b7('0x41')]=![];_0x3044f2[_0x43b7('0x3e')][_0x43b7('0x42')]=![];_0x3044f2['tabsSize']=0x14;_0x3044f2[_0x43b7('0x43')]=![];_0x3044f2['showNavigationButtons']=![];if(_0x36b163[_0x43b7('0x44')]['propFunctions']){_0x36b163[_0x43b7('0x44')][_0x43b7('0x45')](_0x197c5e[_0x43b7('0xf')]);}return _0x3044f2;}_0x160214(_0x197c5e,[{'key':'initialize','value':function initialize(){var _0x9e50f9=this;_0x4bd10f(_0x55a3d4(_0x197c5e[_0x43b7('0xf')]),_0x43b7('0x46'),this)[_0x43b7('0x1c')](this);this[_0x43b7('0x47')]=function(_0x1bfedc,_0x2306af){_0x9e50f9[_0x43b7('0x48')](_0x1bfedc,_0x2306af);};this[_0x43b7('0x3e')][_0x43b7('0x49')][_0x43b7('0x39')](this[_0x43b7('0x47')]);this[_0x43b7('0x3e')]['closeButtonClick'][_0x43b7('0x39')](this[_0x43b7('0x47')]);this[_0x43b7('0x3e')]['addButtonClick']['addEventListener'](this[_0x43b7('0x47')]);this[_0x43b7('0x3e')][_0x43b7('0x4a')][_0x43b7('0x39')](this[_0x43b7('0x47')]);this[_0x43b7('0x4b')]=function(_0x389691,_0xa5539a){_0x9e50f9['onTabDrop'](_0x389691,_0xa5539a);};this[_0x43b7('0x3e')][_0x43b7('0x4c')][_0x43b7('0x39')](this['_tabDropHandler']);this['resetTabs']();if(this[_0x43b7('0x4d')]==_0x14896c[_0x43b7('0x4e')])this[_0x43b7('0x4f')][_0x43b7('0x50')][_0x43b7('0x51')](this[_0x43b7('0x3e')][_0x43b7('0x52')](),this[_0x43b7('0x4f')]);else this['element'][_0x43b7('0x50')]['appendChild'](this[_0x43b7('0x3e')][_0x43b7('0x52')]());this[_0x43b7('0x3e')]['attach']();this[_0x43b7('0x53')]=this[_0x43b7('0x35')][_0x43b7('0x54')]();}},{'key':_0x43b7('0x55'),'value':function dispose(){this['items']['forEach'](function(_0x1c6575){return _0x1c6575['dispose']();});this['tabStrip'][_0x43b7('0x55')]();_0x4bd10f(_0x55a3d4(_0x197c5e[_0x43b7('0xf')]),_0x43b7('0x55'),this)[_0x43b7('0x1c')](this);}},{'key':_0x43b7('0x56'),'value':function attachDiagramEvents(){this[_0x43b7('0x33')][_0x43b7('0x39')](_0x36b163['Events'][_0x43b7('0x57')],this[_0x43b7('0x58')]);this[_0x43b7('0x33')][_0x43b7('0x39')](_0x36b163[_0x43b7('0x59')]['queryView'],this[_0x43b7('0x5a')]);}},{'key':_0x43b7('0x5b'),'value':function detachDiagramEvents(){this[_0x43b7('0x33')][_0x43b7('0x5c')](_0x36b163[_0x43b7('0x59')][_0x43b7('0x57')],this[_0x43b7('0x58')]);this['document']['removeEventListener'](_0x36b163['Events'][_0x43b7('0x5d')],this[_0x43b7('0x5a')]);}},{'key':'toJson','value':function toJson(){var _0x3790e4=this[_0x43b7('0x33')][_0x43b7('0x5e')]();this[_0x43b7('0x5f')](_0x3790e4);return _0x4106f2[_0x43b7('0x60')][_0x43b7('0x61')](_0x3790e4);}},{'key':_0x43b7('0x5f'),'value':function saveViewProps(_0x39e123){_0x4bd10f(_0x55a3d4(_0x197c5e[_0x43b7('0xf')]),'saveViewProps',this)['call'](this,_0x39e123);_0x39e123[_0x43b7('0x4d')]=this['tabAlignment'];_0x39e123['tabsSize']=this[_0x43b7('0x62')];_0x39e123[_0x43b7('0x63')]=this[_0x43b7('0x63')];_0x39e123[_0x43b7('0x42')]=this[_0x43b7('0x42')];_0x39e123['showTabCloseButtons']=this[_0x43b7('0x43')];_0x39e123[_0x43b7('0x64')]=this[_0x43b7('0x64')];_0x39e123[_0x43b7('0x65')]=this['theme']?this[_0x43b7('0x65')]['id']:null;}},{'key':_0x43b7('0x66'),'value':function fromJson(_0x28c82a){if(_0x28c82a>''){var _0x4f8795=_0x4106f2['Control']['fromJson'](_0x28c82a);this[_0x43b7('0x33')][_0x43b7('0x67')](_0x4f8795);this[_0x43b7('0x68')]();this[_0x43b7('0x69')](_0x4f8795);}this['raiseEvent'](_0x36b163[_0x43b7('0x59')][_0x43b7('0x6a')]);}},{'key':'loadViewProps','value':function loadViewProps(_0x1e18f0){_0x4bd10f(_0x55a3d4(_0x197c5e[_0x43b7('0xf')]),_0x43b7('0x69'),this)[_0x43b7('0x1c')](this,_0x1e18f0);if(_0x1e18f0[_0x43b7('0x4d')]!==undefined)this[_0x43b7('0x4d')]=_0x1e18f0[_0x43b7('0x4d')];if(_0x1e18f0['tabsSize']!==undefined)this['tabsSize']=_0x1e18f0['tabsSize'];if(_0x1e18f0[_0x43b7('0x63')]!==undefined)this[_0x43b7('0x63')]=_0x1e18f0[_0x43b7('0x63')];if(_0x1e18f0[_0x43b7('0x42')]!==undefined)this['showAddButton']=_0x1e18f0[_0x43b7('0x42')];if(_0x1e18f0[_0x43b7('0x43')]!==undefined)this[_0x43b7('0x43')]=_0x1e18f0[_0x43b7('0x43')];if(_0x1e18f0[_0x43b7('0x64')]!==undefined)this[_0x43b7('0x64')]=_0x1e18f0[_0x43b7('0x64')];if(_0x1e18f0[_0x43b7('0x65')])this['theme']=_0x36b163[_0x43b7('0x6b')]['fromId'](_0x1e18f0['theme']);}},{'key':_0x43b7('0x6c'),'value':function saveToXml(_0x17a6c8){var _0x172d4e=new XMLHttpRequest();_0x172d4e[_0x43b7('0x6d')](_0x43b7('0x6e'),_0x17a6c8,!![]);_0x172d4e[_0x43b7('0x6f')](_0x43b7('0x70'),_0x43b7('0x71'));var _0x158f86=this[_0x43b7('0x33')][_0x43b7('0x72')]();var _0x80fabc=new _0x36b163['XmlPersistContext'](this[_0x43b7('0x73')],_0x158f86);var _0x5ddf51=_0x80fabc[_0x43b7('0x74')]('DiagramDocument',_0x158f86);var _0x4cbd98=_0x158f86[_0x43b7('0x75')](_0x43b7('0x76'));_0x5ddf51[_0x43b7('0x77')](_0x4cbd98);this[_0x43b7('0x78')](_0x4cbd98,_0x80fabc);var _0x411cf8=new XMLSerializer();_0x172d4e[_0x43b7('0x79')](_0x411cf8[_0x43b7('0x7a')](_0x158f86));}},{'key':_0x43b7('0x78'),'value':function saveView(_0x511978,_0x3ccca9){_0x4bd10f(_0x55a3d4(_0x197c5e[_0x43b7('0xf')]),_0x43b7('0x78'),this)['call'](this,_0x511978,_0x3ccca9);if(this[_0x43b7('0x65')])_0x3ccca9[_0x43b7('0x7b')](this[_0x43b7('0x65')]['id'],_0x43b7('0x6b'),_0x511978);}},{'key':_0x43b7('0x7c'),'value':function loadFromXml(_0x1f0965,_0x34db08,_0x168fce){var _0x1ec163=this[_0x43b7('0x33')];var _0x53b379=new XMLHttpRequest();_0x53b379['onload']=function(){var _0x1a8077=_0x53b379[_0x43b7('0x7d')];_0x1ec163['fromXmlDocument'](_0x1a8077);var _0x3221e1=new _0x36b163[(_0x43b7('0x7e'))](_0x1ec163,_0x1a8077);var _0x3789db=_0x3221e1[_0x43b7('0x74')](_0x43b7('0x2b'),_0x1a8077);this[_0x43b7('0x7f')](_0x43b7('0x76'),_0x3789db,_0x3221e1);if(_0x34db08)_0x34db08(_0x1ec163);}['bind'](this);_0x53b379[_0x43b7('0x80')]=function(){console[_0x43b7('0x81')]('Error\x20while\x20getting\x20XML.');if(_0x168fce)_0x168fce(_0x1ec163);};_0x53b379[_0x43b7('0x6d')](_0x43b7('0x82'),_0x1f0965);_0x53b379[_0x43b7('0x83')]='document';_0x53b379[_0x43b7('0x79')]();}},{'key':'loadView','value':function loadView(_0x2fa1d9,_0x5be395,_0x40e1cc){var _0x446919=_0x4bd10f(_0x55a3d4(_0x197c5e[_0x43b7('0xf')]),_0x43b7('0x7f'),this)['call'](this,_0x2fa1d9,_0x5be395,_0x40e1cc);if(!_0x446919)return;var _0x55bf56=_0x40e1cc[_0x43b7('0x84')]('Theme',_0x446919);if(_0x55bf56)this[_0x43b7('0x65')]=_0x36b163[_0x43b7('0x6b')][_0x43b7('0x85')](_0x55bf56);}},{'key':'resetVirtualScrollGrid','value':function resetVirtualScrollGrid(){var _0x1aa8b4=this[_0x43b7('0x4f')];if(!_0x1aa8b4[_0x43b7('0x50')])return;if(!this['scrollerH']){_0x4106f2[_0x43b7('0x60')][_0x43b7('0x86')](_0x1aa8b4['parentNode']);var _0x39806a=_0x4106f2[_0x43b7('0x87')][_0x43b7('0x88')](_0x1aa8b4[_0x43b7('0x50')],null,!![]);var _0x16cddc=_0x39806a['width'];var _0xa6a2fa=_0x39806a[_0x43b7('0x89')];if(_0xa6a2fa!=0x0)_0x1aa8b4[_0x43b7('0x50')][_0x43b7('0x8a')]=_0xa6a2fa;this[_0x43b7('0x8b')]={'width':_0x16cddc,'height':_0xa6a2fa};_0x1aa8b4[_0x43b7('0x50')][_0x43b7('0x8c')][_0x43b7('0x8d')]=_0x43b7('0x8e');_0x1aa8b4[_0x43b7('0x50')][_0x43b7('0x8c')][_0x43b7('0x8f')]='auto\x20'+this[_0x43b7('0x90')]+'px';if(this['tabAlignment']==_0x14896c[_0x43b7('0x4e')])_0x1aa8b4[_0x43b7('0x50')][_0x43b7('0x8c')]['gridTemplateRows']=this[_0x43b7('0x62')]+'px\x20auto\x20'+this[_0x43b7('0x90')]+'px';else _0x1aa8b4[_0x43b7('0x50')][_0x43b7('0x8c')][_0x43b7('0x91')]=_0x43b7('0x92')+this[_0x43b7('0x90')]+_0x43b7('0x93')+this[_0x43b7('0x62')]+'px';_0x1aa8b4[_0x43b7('0x50')]['style'][_0x43b7('0x94')]='';_0x1aa8b4[_0x43b7('0x8c')][_0x43b7('0x95')]=this[_0x43b7('0x4d')]==_0x14896c[_0x43b7('0x4e')]?0x2:0x1;_0x1aa8b4[_0x43b7('0x96')]=Math[_0x43b7('0x97')](_0x39806a[_0x43b7('0x96')]-this[_0x43b7('0x98')](0x1),this['diagram'][_0x43b7('0x99')][_0x43b7('0x96')]*this[_0x43b7('0x9a')]);_0x1aa8b4[_0x43b7('0x89')]=Math[_0x43b7('0x97')](_0xa6a2fa-this[_0x43b7('0x62')]-this[_0x43b7('0x98')](0x0),this[_0x43b7('0x73')][_0x43b7('0x99')][_0x43b7('0x89')]*this[_0x43b7('0x9a')]);this['tabStrip'][_0x43b7('0x9b')][_0x43b7('0x8c')]['display']=_0x43b7('0x9c');this[_0x43b7('0x3e')]['_element']['style'][_0x43b7('0x9d')]=_0x43b7('0x9e');var _0x206073=document['createElement'](_0x43b7('0x9f'));_0x206073[_0x43b7('0xa0')]=_0x43b7('0xa1');_0x206073[_0x43b7('0x8c')]['gridRow']=this[_0x43b7('0x4d')]==_0x14896c[_0x43b7('0x4e')]?0x3:0x2;_0x206073[_0x43b7('0x8c')]['gridColumnStart']=0x1;_0x206073[_0x43b7('0x8c')][_0x43b7('0xa2')]=0x2;_0x206073[_0x43b7('0x8c')]['height']=this[_0x43b7('0x90')]+'px';_0x206073['style'][_0x43b7('0x96')]=_0x39806a[_0x43b7('0x96')]-this[_0x43b7('0x90')]+'px';_0x206073['style'][_0x43b7('0xa3')]=_0x43b7('0xa4');_0x206073['style'][_0x43b7('0xa5')]='hidden';_0x206073[_0x43b7('0x8c')][_0x43b7('0xa6')]=_0x43b7('0xa7');this['scrollerH']=_0x206073;var _0x2bad58=document[_0x43b7('0x75')](_0x43b7('0x9f'));_0x2bad58[_0x43b7('0x8c')][_0x43b7('0x89')]=this['scrollbarSize']+'px';_0x206073[_0x43b7('0x77')](_0x2bad58);_0x1aa8b4[_0x43b7('0x50')][_0x43b7('0x77')](_0x206073);var _0x53c9aa=document[_0x43b7('0x75')](_0x43b7('0x9f'));_0x53c9aa[_0x43b7('0xa0')]=_0x43b7('0xa8');_0x53c9aa[_0x43b7('0x8c')]['gridRowStart']=this['tabAlignment']==_0x14896c[_0x43b7('0x4e')]?0x2:0x1;_0x53c9aa[_0x43b7('0x8c')]['width']=this[_0x43b7('0x90')]+'px';_0x53c9aa[_0x43b7('0x8c')][_0x43b7('0x89')]=_0x39806a['height']-this[_0x43b7('0x62')]-this[_0x43b7('0x90')]+'px';_0x53c9aa['style']['overflowX']=_0x43b7('0xa9');_0x53c9aa['style'][_0x43b7('0xa5')]=_0x43b7('0xa4');_0x53c9aa[_0x43b7('0x8c')]['backgroundColor']='#eee';this[_0x43b7('0xaa')]=_0x53c9aa;var _0x664460=document[_0x43b7('0x75')](_0x43b7('0x9f'));_0x664460[_0x43b7('0x8c')]['width']=this['scrollbarSize']+'px';_0x53c9aa[_0x43b7('0x77')](_0x664460);_0x1aa8b4[_0x43b7('0x50')][_0x43b7('0x77')](_0x53c9aa);_0x4106f2[_0x43b7('0x60')][_0x43b7('0xab')](_0x206073,{'scroll':this[_0x43b7('0xac')]});_0x4106f2['Control']['addHandlers'](_0x53c9aa,{'scroll':this[_0x43b7('0xac')]});if(!this[_0x43b7('0xad')]){var _0x5ad282=this;this[_0x43b7('0xad')]=setInterval(function(){_0x5ad282[_0x43b7('0xae')]();},0xc8);}}}},{'key':'resetTabAlignment','value':function resetTabAlignment(){this['tabStrip']['visible']=this['tabAlignment']!=_0x14896c['None'];var _0x5b235b=this[_0x43b7('0x4f')];if(this[_0x43b7('0x4d')]==_0x14896c[_0x43b7('0x4e')])_0x5b235b[_0x43b7('0x50')][_0x43b7('0x8c')][_0x43b7('0x91')]=this[_0x43b7('0x62')]+'px\x20auto\x20'+this[_0x43b7('0x90')]+'px';else _0x5b235b[_0x43b7('0x50')][_0x43b7('0x8c')][_0x43b7('0x91')]=_0x43b7('0x92')+this['scrollbarSize']+'px\x20'+this[_0x43b7('0x62')]+'px';_0x5b235b[_0x43b7('0x8c')][_0x43b7('0x95')]=this[_0x43b7('0x4d')]==_0x14896c[_0x43b7('0x4e')]?0x2:0x1;var _0x431c60=this[_0x43b7('0x4f')][_0x43b7('0x50')][_0x43b7('0xaf')](_0x43b7('0xb0'));if(this[_0x43b7('0xb1')]){_0x431c60[_0x43b7('0x8c')][_0x43b7('0x95')]=this['tabAlignment']==_0x14896c[_0x43b7('0x4e')]?0x3:0x2;var _0x2c87e6=this[_0x43b7('0x4f')]['parentNode'][_0x43b7('0xaf')](_0x43b7('0xb2'));_0x2c87e6[_0x43b7('0x8c')]['gridRowStart']=this['tabAlignment']==_0x14896c['Top']?0x2:0x1;}this[_0x43b7('0xb3')]();}},{'key':'updateCanvasSize','value':function updateCanvasSize(){if(!this[_0x43b7('0x4f')])return;var _0x1f3cc0=this[_0x43b7('0xb4')]/0x64/_0x1e5c5c[_0x43b7('0xb5')]['getPixel'](this[_0x43b7('0xb6')][_0x43b7('0xb7')]);if(this['scrollerH']){var _0x4410d7=this['element'][_0x43b7('0x50')];this[_0x43b7('0xb1')]['firstChild']['style'][_0x43b7('0x96')]=this['canvas'][_0x43b7('0x99')][_0x43b7('0x96')]*_0x1f3cc0+'px';this[_0x43b7('0xaa')]['firstChild'][_0x43b7('0x8c')][_0x43b7('0x89')]=this[_0x43b7('0xb6')][_0x43b7('0x99')][_0x43b7('0x89')]*_0x1f3cc0+'px';var _0x5921c1=this[_0x43b7('0x98')](0x1);var _0x5248f8=this[_0x43b7('0x98')](0x0);this[_0x43b7('0xaa')]['style'][_0x43b7('0x96')]=_0x5921c1+'px';this[_0x43b7('0xb1')][_0x43b7('0x8c')]['height']=_0x5248f8+'px';_0x4410d7[_0x43b7('0x8c')][_0x43b7('0x8f')]=_0x43b7('0x92')+_0x5921c1+'px';if(this[_0x43b7('0x4d')]==_0x14896c[_0x43b7('0x4e')])_0x4410d7['style']['gridTemplateRows']=this[_0x43b7('0x62')]+'px\x20auto\x20'+_0x5248f8+'px';else _0x4410d7[_0x43b7('0x8c')][_0x43b7('0x91')]=_0x43b7('0x92')+_0x5248f8+'px\x20'+this[_0x43b7('0x62')]+'px';var _0x6d104a=_0x4106f2[_0x43b7('0x87')]['getBounds'](_0x4410d7,null,!![]);var _0x3d0cbf=_0x6d104a['height'];if(_0x3d0cbf==0x0)_0x3d0cbf=_0x4410d7[_0x43b7('0x8a')];if(_0x3d0cbf==0x0)_0x3d0cbf=this[_0x43b7('0xb6')][_0x43b7('0x99')][_0x43b7('0x89')]*_0x1f3cc0;this['element'][_0x43b7('0x96')]=Math['min'](_0x6d104a['width']-_0x5921c1,this[_0x43b7('0xb6')][_0x43b7('0x99')][_0x43b7('0x96')]*_0x1f3cc0);this['element'][_0x43b7('0x89')]=Math['min'](_0x3d0cbf-this['tabsSize']-_0x5248f8,this[_0x43b7('0xb6')]['bounds'][_0x43b7('0x89')]*_0x1f3cc0);this[_0x43b7('0xb1')][_0x43b7('0x8c')]['width']=_0x6d104a[_0x43b7('0x96')]-_0x5921c1+'px';this['scrollerV']['style'][_0x43b7('0x89')]=_0x3d0cbf-this['tabsSize']-_0x5248f8+'px';}this[_0x43b7('0xb6')][_0x43b7('0xb8')]=null;this[_0x43b7('0xb6')][_0x43b7('0xb9')]();this[_0x43b7('0x73')][_0x43b7('0xba')](_0x36b163[_0x43b7('0x59')][_0x43b7('0xbb')],_0x4106f2[_0x43b7('0xbc')][_0x43b7('0xbd')]);}},{'key':'resetTabs','value':function resetTabs(){var _0x129089=this;this[_0x43b7('0x3e')][_0x43b7('0x35')][_0x43b7('0xbe')]();this[_0x43b7('0x33')][_0x43b7('0x30')]['forEach'](function(_0x2babd9,_0xbc5407){var _0x2c45dc=new _0x15c280[(_0x43b7('0xbf'))](_0x15c280[_0x43b7('0xc0')][_0x43b7('0xc1')],_0x2babd9[_0x43b7('0x2d')]);_0x2c45dc['titleColor']=_0x2babd9[_0x43b7('0xc2')];_0x2c45dc['imageSrc']=_0x2babd9['iconUrl'];_0x129089[_0x43b7('0x3e')][_0x43b7('0x35')]['add'](_0x2c45dc);_0x2babd9['header']=_0x2c45dc;});}},{'key':_0x43b7('0x48'),'value':function onTabMouseDown(_0x229717,_0x2430ba){if(!_0x2430ba['item'][_0x43b7('0xc3')])return;if(_0x2430ba[_0x43b7('0xc4')]['dataMfc']=='mfc-add'){var _0x10cf73=new _0x36b163['DiagramPage']();_0x10cf73[_0x43b7('0x2d')]=_0x43b7('0x73')+(++this[_0x43b7('0x34')])[_0x43b7('0xc5')]();this[_0x43b7('0x33')][_0x43b7('0x2f')](_0x10cf73);this['selectedPage']=_0x10cf73;return;}if(_0x2430ba['item'][_0x43b7('0xc6')]){if(_0x2430ba[_0x43b7('0xc4')][_0x43b7('0xc6')]==_0x43b7('0xc7'))this[_0x43b7('0x53')]=this[_0x43b7('0x35')][_0x43b7('0xc8')]();else if(_0x2430ba['item']['dataMfc']==_0x43b7('0xc9'))this['selectedIndex']--;else if(_0x2430ba[_0x43b7('0xc4')][_0x43b7('0xc6')]==_0x43b7('0xca'))this[_0x43b7('0xcb')]++;else if(_0x2430ba[_0x43b7('0xc4')][_0x43b7('0xc6')]==_0x43b7('0xcc'))this[_0x43b7('0x53')]=this[_0x43b7('0x35')][_0x43b7('0x54')]();return;}var _0x63e5b1=this[_0x43b7('0xcd')](_0x2430ba[_0x43b7('0xc4')]);if(_0x63e5b1){if(_0x4106f2[_0x43b7('0x87')][_0x43b7('0xce')](_0x2430ba[_0x43b7('0xcf')][_0x43b7('0xd0')],_0x43b7('0xd1'))){var _0x1f4dba=this[_0x43b7('0xcb')];if(this[_0x43b7('0x53')]==_0x63e5b1){if(_0x63e5b1==this[_0x43b7('0x35')]['first']())_0x1f4dba++;}if(this[_0x43b7('0x35')]['remove'](_0x63e5b1)){this['document'][_0x43b7('0xba')](_0x36b163[_0x43b7('0x59')][_0x43b7('0xd2')],{'oldIndex':_0x1f4dba});this['selectedIndex']=--_0x1f4dba;}}else this[_0x43b7('0x53')]=_0x63e5b1;}}},{'key':_0x43b7('0xd3'),'value':function onTabDrop(_0x888ed3,_0x554848){var _0x1279c8=_0x888ed3['getGroupItems'](_0x554848['item'])[_0x43b7('0xd4')](_0x554848[_0x43b7('0xc4')]);var _0xbe36d8=this[_0x43b7('0xcd')](_0x554848[_0x43b7('0xc4')]);this['items'][_0x43b7('0xd5')][_0x43b7('0xd6')](this['items'][_0x43b7('0xd4')](_0xbe36d8),0x1);this['items'][_0x43b7('0xd5')]['splice'](_0x1279c8,0x0,_0xbe36d8);}},{'key':_0x43b7('0x3a'),'value':function onItemsChanging(_0x545b57,_0x22b1b8){if(_0x22b1b8['action']==_0x53f22a['NotifyCollectionChangedAction'][_0x43b7('0xd7')]){var _0x4a7bf9;for(var _0x44e540=0x0;_0x44e540<_0x22b1b8[_0x43b7('0xd8')]['length'];_0x44e540++){var _0x2f5060=this[_0x43b7('0xd9')](_0xac3d17[_0x43b7('0x21')],_0x22b1b8[_0x43b7('0xd8')][_0x44e540]);if(!_0x2f5060)_0x4a7bf9=!![];}_0x22b1b8[_0x43b7('0xda')](_0x4a7bf9);}else{var _0x4a7bf9;for(var _0x44e540=0x0;_0x44e540<_0x22b1b8[_0x43b7('0xdb')][_0x43b7('0x9')];_0x44e540++){var _0x2f5060=this['onPageValidateAction'](_0xac3d17[_0x43b7('0x23')],null,_0x22b1b8[_0x43b7('0xdb')][_0x44e540]);if(!_0x2f5060)_0x4a7bf9=!![];}_0x22b1b8[_0x43b7('0xda')](_0x4a7bf9);}}},{'key':_0x43b7('0x3c'),'value':function onItemsChanged(_0x134d5d,_0x37cfa8){if(_0x37cfa8[_0x43b7('0xdc')]==_0x53f22a[_0x43b7('0xdd')][_0x43b7('0xd7')]){for(var _0x3a30c1=0x0;_0x3a30c1<_0x37cfa8[_0x43b7('0xd8')][_0x43b7('0x9')];_0x3a30c1++){this[_0x43b7('0xba')](_0xac3d17['pageAdded'],new _0x2c1779({'page':_0x37cfa8['m_newItems'][_0x3a30c1]}));}}else{for(var _0x3a30c1=0x0;_0x3a30c1<_0x37cfa8['m_oldItems']['length'];_0x3a30c1++){this[_0x43b7('0xba')](_0xac3d17[_0x43b7('0x24')],new _0x2c1779({'oldPage':_0x37cfa8[_0x43b7('0xdb')][_0x3a30c1]}));}}this[_0x43b7('0xde')]();this[_0x43b7('0x3e')][_0x43b7('0xdf')]();}},{'key':_0x43b7('0x53'),'get':function get(){return this[_0x43b7('0xe0')];},'set':function set(_0x50bb19){if(_0x50bb19){if(this[_0x43b7('0xd9')](_0xac3d17['pageChanging'],this[_0x43b7('0xe0')],_0x50bb19)){var _0x2d3603=this[_0x43b7('0xe0')];this['_selectedPage']=_0x50bb19;this[_0x43b7('0xe1')](this[_0x43b7('0xe0')]);this['_selectedPage'][_0x43b7('0xb9')]();this[_0x43b7('0x3e')]['selectItem'](this['_selectedPage'][_0x43b7('0xe2')]);this[_0x43b7('0xba')](_0xac3d17[_0x43b7('0x20')],new _0x2c1779({'page':this['_selectedPage'],'oldPage':_0x2d3603}));}}}},{'key':'selectedIndex','get':function get(){if(this[_0x43b7('0xe0')])return this['items']['indexOfItem'](this[_0x43b7('0xe0')]);return-0x1;},'set':function set(_0x5d473b){var _0x346334=this['items']['items']()[_0x5d473b];if(_0x346334)this[_0x43b7('0x53')]=_0x346334;}},{'key':_0x43b7('0xcd'),'value':function getItemByHeader(_0x435d63){return this[_0x43b7('0x35')][_0x43b7('0xe3')](function(_0x234939){return _0x234939[_0x43b7('0xe2')][_0x43b7('0x4f')]==_0x435d63[_0x43b7('0x4f')];})[_0x43b7('0xc8')]();}},{'key':_0x43b7('0x33'),'get':function get(){return this[_0x43b7('0x37')];},'set':function set(_0x59e7b5){if(this[_0x43b7('0x37')]!=_0x59e7b5){if(this['document']!=null)this['_document'][_0x43b7('0x5c')](_0x36b163[_0x43b7('0x59')][_0x43b7('0xd2')],this[_0x43b7('0x31')]);this[_0x43b7('0x37')]=_0x59e7b5;this['_document'][_0x43b7('0x39')](_0x36b163[_0x43b7('0x59')][_0x43b7('0xd2')],this[_0x43b7('0x31')]);this[_0x43b7('0xba')](_0x36b163[_0x43b7('0x59')][_0x43b7('0xe4')],_0x4106f2[_0x43b7('0xbc')][_0x43b7('0xbd')]);}}},{'key':_0x43b7('0x62'),'get':function get(){if(this['tabAlignment']==_0x14896c[_0x43b7('0x3d')])return 0x0;return this['tabStrip'][_0x43b7('0x89')][_0x43b7('0xc')];},'set':function set(_0x83e23a){if(this[_0x43b7('0x3e')][_0x43b7('0x89')][_0x43b7('0xc')]!=_0x83e23a){this[_0x43b7('0x3e')][_0x43b7('0x89')]=new _0x53f22a[(_0x43b7('0xe5'))](_0x83e23a,_0x53f22a[_0x43b7('0xe6')][_0x43b7('0xe7')]);this['resetTabAlignment']();}}},{'key':'tabAlignment','get':function get(){return this[_0x43b7('0xe8')];},'set':function set(_0x48ddff){if(this[_0x43b7('0xe8')]!=_0x48ddff){this[_0x43b7('0xe8')]=_0x48ddff;this[_0x43b7('0xe9')]();}}},{'key':_0x43b7('0x43'),'get':function get(){return this[_0x43b7('0x3e')][_0x43b7('0xea')];},'set':function set(_0x4fa3f2){if(this[_0x43b7('0x3e')][_0x43b7('0xea')]!=_0x4fa3f2){this[_0x43b7('0x3e')][_0x43b7('0xea')]=_0x4fa3f2;}}},{'key':_0x43b7('0x63'),'get':function get(){return this[_0x43b7('0x3e')]['scrollMode']==_0x15c280['TabsScrollMode'][_0x43b7('0xeb')];},'set':function set(_0x473de9){if(this[_0x43b7('0x3e')][_0x43b7('0xec')]==_0x15c280['TabsScrollMode'][_0x43b7('0xeb')]!=_0x473de9){this[_0x43b7('0x3e')][_0x43b7('0xec')]=_0x473de9?_0x15c280[_0x43b7('0xed')]['NavButtons']:_0x15c280[_0x43b7('0xed')]['None'];}}},{'key':_0x43b7('0x42'),'get':function get(){return this[_0x43b7('0x3e')][_0x43b7('0x42')];},'set':function set(_0x459fdb){if(this['tabStrip'][_0x43b7('0x42')]!=_0x459fdb){this['tabStrip']['showAddButton']=_0x459fdb;}}},{'key':_0x43b7('0x64'),'get':function get(){return this[_0x43b7('0x3e')][_0x43b7('0xee')];},'set':function set(_0x6e246a){if(this[_0x43b7('0x3e')][_0x43b7('0xee')]!=_0x6e246a){this[_0x43b7('0x3e')][_0x43b7('0xee')]=_0x6e246a;}}},{'key':_0x43b7('0x65'),'get':function get(){return this['_theme'];},'set':function set(_0x1b2b26){if(this['_theme']!=_0x1b2b26){this[_0x43b7('0xef')]=_0x1b2b26;if(this['_theme'])this['tabStrip'][_0x43b7('0x65')]=this[_0x43b7('0xef')]['id'];else this['tabStrip'][_0x43b7('0x65')]='';}}},{'key':'setTheme','value':function setTheme(_0x4836e3,_0x2085a3){this[_0x43b7('0x65')]=_0x4836e3;if(_0x2085a3){this[_0x43b7('0x35')][_0x43b7('0xf0')](function(_0x4d9332){return _0x4d9332[_0x43b7('0x65')]=_0x4836e3;});}}},{'key':'onDataLoaded','value':function onDataLoaded(_0xf6e5c7,_0x5406b2){this['onDocumentChanged'](_0xf6e5c7,_0x5406b2);this[_0x43b7('0x53')]=this[_0x43b7('0x35')][_0x43b7('0x54')]();this[_0x43b7('0x34')]=this[_0x43b7('0x35')]['count']();}},{'key':_0x43b7('0x32'),'value':function onDocumentChanged(_0x441936,_0x40e979){var _0x23f255=this;var _0x5be776=this[_0x43b7('0x33')][_0x43b7('0x30')][_0x43b7('0x9')]==0x0;if(_0x5be776){this[_0x43b7('0x73')]=new _0x36b163[(_0x43b7('0xf1'))]();this[_0x43b7('0xe0')]=null;}this[_0x43b7('0xc3')]=!_0x5be776;this['items']=new _0x2d2976[(_0x43b7('0x36'))](this[_0x43b7('0x33')][_0x43b7('0x30')]);this['items'][_0x43b7('0x38')][_0x43b7('0x39')](function(_0x441936,_0x40e979){_0x23f255[_0x43b7('0x3a')](_0x441936,_0x40e979);});this[_0x43b7('0x35')][_0x43b7('0x3b')]['addEventListener'](function(_0x441936,_0x40e979){_0x23f255['onItemsChanged'](_0x441936,_0x40e979);});this[_0x43b7('0xde')]();this[_0x43b7('0x3e')][_0x43b7('0xdf')]();if(_0x40e979['oldIndex']!=undefined)this[_0x43b7('0xcb')]=Math[_0x43b7('0xf2')](--_0x40e979[_0x43b7('0xf3')],0x0);if(_0x40e979[_0x43b7('0xf4')]!=undefined)this['selectedIndex']=_0x40e979[_0x43b7('0xf4')];}},{'key':_0x43b7('0xd9'),'value':function onPageValidateAction(_0x315f4c,_0x5113c4,_0xc40431){var _0x299f39=new _0x2c1779({'page':_0x5113c4,'oldPage':_0xc40431});this[_0x43b7('0xba')](_0x315f4c,_0x299f39);if(_0x299f39['cancel'])return![];return!![];}}],[{'key':_0x43b7('0x10'),'value':function create(_0x11bae4,_0x9e7030){return _0x4106f2['Control'][_0x43b7('0xf5')](_0x197c5e,_0x11bae4,_0x9e7030);}}]);return _0x197c5e;}(_0x36b163[_0x43b7('0xf6')]);_0x5e62c2[_0x43b7('0x59')]=_0xac3d17;_0x5e62c2[_0x43b7('0xf7')]=_0x2c1779;_0x5e62c2[_0x43b7('0xf8')]=_0x14896c;_0x5e62c2[_0x43b7('0xf9')]=_0x197c5e;Object[_0x43b7('0xfa')](_0x5e62c2,'__esModule',{'value':!![]});}));
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "email": "info@mindfusion.eu",
5
5
  "url": "https://mindfusion.eu"
6
6
  },
7
- "version": "1.0.0",
7
+ "version": "1.0.2",
8
8
  "description": "Diagramming library additional controls",
9
9
  "keywords": [
10
10
  "diagramming library"