@mindfusion/diagramming-controls 1.0.0 → 1.0.1

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.
@@ -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 _0x18d9=['defineProperty','__esModule','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','length','enumerable','writable','key','function','Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function','prototype','create','setPrototypeOf','getPrototypeOf','__proto__','undefined','construct','valueOf','call','object','apply','get','value','pageChanging','pageChanged','pageAdding','pageAdded','pageRemoving','pageRemoved','sender','oldPage','_oldPage','page','_page','CancelEventArgs','DiagramDocument','pages','DiagramPage','title','diagram1','addPage','document','_lastIndex','items','_document','collectionChanging','addEventListener','onItemsChanging','collectionChanged','onItemsChanged','None','tabStrip','parent','req','autoSizeTabs','showAddButton','tabsSize','showTabCloseButtons','showNavigationButtons','initialize','onTabMouseDown','itemMouseDown','_tabMouseDownHandler','closeButtonClick','addButtonClick','navButtonClick','_tabDropHandler','onTabDrop','itemDrop','tabAlignment','Top','element','insertBefore','draw','parentNode','selectedPage','last','dispose','forEach','attachDiagramEvents','Events','dataLoaded','dataLoadedDelegate','queryView','detachDiagramEvents','removeEventListener','queryViewDelegate','open','text/xml','toXmlDocument','XmlPersistContext','diagram','View','appendChild','serializeToString','saveView','theme','Theme','loadFromXml','onload','responseXML','fromXmlDocument','loadView','bind','onerror','log','Error\x20while\x20getting\x20XML.','GET','responseType','send','readString','fromId','resetVirtualScrollGrid','scrollerH','clearHandlers','DomUtils','getBounds','_mf_originalHeight','style','display','grid','gridTemplateColumns','auto\x20','scrollbarSize','gridTemplateRows','px\x20auto\x20','px\x20','overflow','width','min','getScrollbarSize','height','scale','_element','inline-block','gridColumn','createElement','div','className','overflowX','auto','overflowY','hidden','backgroundColor','#eee','mf_diagram_scrollerV','gridRowStart','Control','addHandlers','scrollDelegate','resizeTimeoutId','resetTabAlignment','visible','gridRow','querySelector','.mf_diagram_scrollerH','.mf_diagram_scrollerV','updateCanvasSize','_zoomFactor','GraphicsUnit','canvas','measureUnit','firstChild','scrollerV','bounds','invalidRect','repaint','raiseEvent','sizeChanged','EventArgs','Empty','resetTabs','clear','ToolStripItem','ToolStripItemType','Label','titleColor','iconUrl','header','item','mfc-add','toString','add','dataMfc','mfc-first','first','mfc-prev','selectedIndex','mfc-next','mfc-last','getItemByHeader','hasCssClass','rawEventArgs','target','remove','getGroupItems','indexOfItem','_items','splice','NotifyCollectionChangedAction','Add','m_newItems','cancel','onPageValidateAction','m_oldItems','_selectedPage','setDiagram','selectItem','diagramChanged','Unit','UnitType','Pixel','_tabAlignment','showCloseButtons','scrollMode','NavButtons','TabsScrollMode','allowReorder','allowDrag','_theme','setTheme','ObservableCollection','resetButtons','count','createControl','DiagramView','PageEventArgs','TabAlignment','TabbedDiagramView'];var _0x32c7=function(_0x149c02,_0x3e1844){_0x149c02=_0x149c02-0x0;var _0x2bad1d=_0x18d9[_0x149c02];return _0x2bad1d;};'use strict';Object[_0x32c7('0x0')](exports,_0x32c7('0x1'),{'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(_0x9fa744,_0x29f4fb){if(!(_0x9fa744 instanceof _0x29f4fb)){throw new TypeError(_0x32c7('0x2'));}}function _defineProperties(_0x50d3c1,_0x430832){for(var _0x3241cb=0x0;_0x3241cb<_0x430832[_0x32c7('0x3')];_0x3241cb++){var _0x2ad57b=_0x430832[_0x3241cb];_0x2ad57b[_0x32c7('0x4')]=_0x2ad57b['enumerable']||![];_0x2ad57b['configurable']=!![];if('value'in _0x2ad57b)_0x2ad57b[_0x32c7('0x5')]=!![];Object[_0x32c7('0x0')](_0x50d3c1,_0x2ad57b[_0x32c7('0x6')],_0x2ad57b);}}function _createClass(_0x15757b,_0x4d21a8,_0x4b3152){if(_0x4d21a8)_defineProperties(_0x15757b['prototype'],_0x4d21a8);if(_0x4b3152)_defineProperties(_0x15757b,_0x4b3152);return _0x15757b;}function _inherits(_0x119bf1,_0x3677df){if(typeof _0x3677df!==_0x32c7('0x7')&&_0x3677df!==null){throw new TypeError(_0x32c7('0x8'));}_0x119bf1[_0x32c7('0x9')]=Object[_0x32c7('0xa')](_0x3677df&&_0x3677df[_0x32c7('0x9')],{'constructor':{'value':_0x119bf1,'writable':!![],'configurable':!![]}});if(_0x3677df)_setPrototypeOf(_0x119bf1,_0x3677df);}function _getPrototypeOf(_0x4ca160){_getPrototypeOf=Object[_0x32c7('0xb')]?Object[_0x32c7('0xc')]:function _getPrototypeOf(_0x4ca160){return _0x4ca160[_0x32c7('0xd')]||Object[_0x32c7('0xc')](_0x4ca160);};return _getPrototypeOf(_0x4ca160);}function _setPrototypeOf(_0x53a130,_0x501209){_setPrototypeOf=Object[_0x32c7('0xb')]||function _setPrototypeOf(_0x53a130,_0x501209){_0x53a130[_0x32c7('0xd')]=_0x501209;return _0x53a130;};return _setPrototypeOf(_0x53a130,_0x501209);}function _isNativeReflectConstruct(){if(typeof Reflect===_0x32c7('0xe')||!Reflect[_0x32c7('0xf')])return![];if(Reflect[_0x32c7('0xf')]['sham'])return![];if(typeof Proxy===_0x32c7('0x7'))return!![];try{Boolean['prototype'][_0x32c7('0x10')][_0x32c7('0x11')](Reflect['construct'](Boolean,[],function(){}));return!![];}catch(_0x5bf0af){return![];}}function _assertThisInitialized(_0x2e670b){if(_0x2e670b===void 0x0){throw new ReferenceError('this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called');}return _0x2e670b;}function _possibleConstructorReturn(_0x4b78ff,_0x9723c4){if(_0x9723c4&&(typeof _0x9723c4===_0x32c7('0x12')||typeof _0x9723c4==='function')){return _0x9723c4;}return _assertThisInitialized(_0x4b78ff);}function _createSuper(_0x1be04a){var _0x1a0d17=_isNativeReflectConstruct();return function _createSuperInternal(){var _0x48caef=_getPrototypeOf(_0x1be04a),_0x6d37e3;if(_0x1a0d17){var _0x2bfd10=_getPrototypeOf(this)['constructor'];_0x6d37e3=Reflect[_0x32c7('0xf')](_0x48caef,arguments,_0x2bfd10);}else{_0x6d37e3=_0x48caef[_0x32c7('0x13')](this,arguments);}return _possibleConstructorReturn(this,_0x6d37e3);};}function _superPropBase(_0xdd4c6f,_0x8e2a24){while(!Object[_0x32c7('0x9')]['hasOwnProperty'][_0x32c7('0x11')](_0xdd4c6f,_0x8e2a24)){_0xdd4c6f=_getPrototypeOf(_0xdd4c6f);if(_0xdd4c6f===null)break;}return _0xdd4c6f;}function _get(_0x2ac6da,_0x196bc2,_0x91d024){if(typeof Reflect!==_0x32c7('0xe')&&Reflect['get']){_get=Reflect[_0x32c7('0x14')];}else{_get=function _get(_0x2ac6da,_0x196bc2,_0x91d024){var _0x5754be=_superPropBase(_0x2ac6da,_0x196bc2);if(!_0x5754be)return;var _0x19a0d1=Object['getOwnPropertyDescriptor'](_0x5754be,_0x196bc2);if(_0x19a0d1[_0x32c7('0x14')]){return _0x19a0d1[_0x32c7('0x14')][_0x32c7('0x11')](_0x91d024);}return _0x19a0d1[_0x32c7('0x15')];};}return _get(_0x2ac6da,_0x196bc2,_0x91d024||_0x2ac6da);}var Events=function(){function _0x34ff19(){_classCallCheck(this,_0x34ff19);}_createClass(_0x34ff19,null,[{'key':_0x32c7('0x16'),'get':function get(){return _0x32c7('0x16');}},{'key':'pageChanged','get':function get(){return _0x32c7('0x17');}},{'key':_0x32c7('0x18'),'get':function get(){return'pageAdding';}},{'key':_0x32c7('0x19'),'get':function get(){return _0x32c7('0x19');}},{'key':'pageRemoving','get':function get(){return _0x32c7('0x1a');}},{'key':_0x32c7('0x1b'),'get':function get(){return'pageRemoved';}}]);return _0x34ff19;}();var PageEventArgs=function(_0x4cbe74){_inherits(_0x5d462a,_0x4cbe74);var _0x409357=_createSuper(_0x5d462a);function _0x5d462a(_0x397738){var _0x22055e;_classCallCheck(this,_0x5d462a);_0x22055e=_0x409357[_0x32c7('0x11')](this);if(_0x397738[_0x32c7('0x1c')])_0x22055e[_0x32c7('0x1c')]=_0x397738['sender'];if(_0x397738['page'])_0x22055e['_page']=_0x397738['page'];if(_0x397738[_0x32c7('0x1d')])_0x22055e[_0x32c7('0x1e')]=_0x397738[_0x32c7('0x1d')];return _0x22055e;}_createClass(_0x5d462a,[{'key':_0x32c7('0x1f'),'get':function get(){return this[_0x32c7('0x20')];}},{'key':_0x32c7('0x1d'),'get':function get(){return this['_oldPage'];}}]);return _0x5d462a;}(controls[_0x32c7('0x21')]);var TabbedDiagramView=function(_0x45c8b7){_inherits(_0x41e165,_0x45c8b7);var _0x553677=_createSuper(_0x41e165);function _0x41e165(_0x363e47,_0x2e513b){var _0x5f56c6;_classCallCheck(this,_0x41e165);var _0x1a86e9=_0x2e513b||new diagramming[(_0x32c7('0x22'))]();if(!_0x1a86e9[_0x32c7('0x23')]['length']){var _0x402cff=new diagramming[(_0x32c7('0x24'))]();_0x402cff[_0x32c7('0x25')]=_0x32c7('0x26');_0x1a86e9[_0x32c7('0x27')](_0x402cff);}_0x5f56c6=_0x553677[_0x32c7('0x11')](this,_0x363e47,_0x1a86e9[_0x32c7('0x23')][0x0]);_0x5f56c6[_0x32c7('0x28')]=_0x1a86e9;_0x5f56c6[_0x32c7('0x29')]=0x1;_0x5f56c6[_0x32c7('0x2a')]=new commonCollections['ObservableCollection'](_0x5f56c6[_0x32c7('0x2b')][_0x32c7('0x23')]);_0x5f56c6[_0x32c7('0x2a')][_0x32c7('0x2c')][_0x32c7('0x2d')](function(_0x55e9e7,_0x33f5e8){_0x5f56c6[_0x32c7('0x2e')](_0x55e9e7,_0x33f5e8);});_0x5f56c6['items'][_0x32c7('0x2f')][_0x32c7('0x2d')](function(_0x3d4a98,_0x51cfec){_0x5f56c6[_0x32c7('0x30')](_0x3d4a98,_0x51cfec);});_0x5f56c6['_tabAlignment']=TabAlignment[_0x32c7('0x31')];_0x5f56c6[_0x32c7('0x32')]=new commonUi['TabStrip']();_0x5f56c6['tabStrip'][_0x32c7('0x33')]=_assertThisInitialized(_0x5f56c6);_0x5f56c6['tabStrip'][_0x32c7('0x34')]=function(){return!![];};_0x5f56c6[_0x32c7('0x32')]['visible']=![];_0x5f56c6[_0x32c7('0x32')][_0x32c7('0x35')]=![];_0x5f56c6[_0x32c7('0x32')][_0x32c7('0x36')]=![];_0x5f56c6[_0x32c7('0x37')]=0x14;_0x5f56c6[_0x32c7('0x38')]=![];_0x5f56c6[_0x32c7('0x39')]=![];return _0x5f56c6;}_createClass(_0x41e165,[{'key':_0x32c7('0x3a'),'value':function initialize(){var _0x54aedc=this;_get(_getPrototypeOf(_0x41e165[_0x32c7('0x9')]),_0x32c7('0x3a'),this)[_0x32c7('0x11')](this);this['_tabMouseDownHandler']=function(_0xe79f52,_0x16f067){_0x54aedc[_0x32c7('0x3b')](_0xe79f52,_0x16f067);};this[_0x32c7('0x32')][_0x32c7('0x3c')][_0x32c7('0x2d')](this[_0x32c7('0x3d')]);this[_0x32c7('0x32')][_0x32c7('0x3e')][_0x32c7('0x2d')](this['_tabMouseDownHandler']);this['tabStrip'][_0x32c7('0x3f')]['addEventListener'](this[_0x32c7('0x3d')]);this[_0x32c7('0x32')][_0x32c7('0x40')][_0x32c7('0x2d')](this[_0x32c7('0x3d')]);this[_0x32c7('0x41')]=function(_0x4e43b4,_0x3fe193){_0x54aedc[_0x32c7('0x42')](_0x4e43b4,_0x3fe193);};this[_0x32c7('0x32')][_0x32c7('0x43')][_0x32c7('0x2d')](this[_0x32c7('0x41')]);this['resetTabs']();if(this[_0x32c7('0x44')]==TabAlignment[_0x32c7('0x45')])this[_0x32c7('0x46')]['parentNode'][_0x32c7('0x47')](this['tabStrip'][_0x32c7('0x48')](),this[_0x32c7('0x46')]);else this[_0x32c7('0x46')][_0x32c7('0x49')]['appendChild'](this['tabStrip']['draw']());this[_0x32c7('0x32')]['attach']();this[_0x32c7('0x4a')]=this['items'][_0x32c7('0x4b')]();}},{'key':_0x32c7('0x4c'),'value':function dispose(){this[_0x32c7('0x2a')][_0x32c7('0x4d')](function(_0x1c10e0){return _0x1c10e0[_0x32c7('0x4c')]();});this[_0x32c7('0x32')]['dispose']();_get(_getPrototypeOf(_0x41e165[_0x32c7('0x9')]),_0x32c7('0x4c'),this)['call'](this);}},{'key':_0x32c7('0x4e'),'value':function attachDiagramEvents(){this[_0x32c7('0x28')][_0x32c7('0x2d')](diagramming[_0x32c7('0x4f')][_0x32c7('0x50')],this[_0x32c7('0x51')]);this['document'][_0x32c7('0x2d')](diagramming[_0x32c7('0x4f')][_0x32c7('0x52')],this['queryViewDelegate']);}},{'key':_0x32c7('0x53'),'value':function detachDiagramEvents(){this[_0x32c7('0x28')]['removeEventListener'](diagramming[_0x32c7('0x4f')][_0x32c7('0x50')],this[_0x32c7('0x51')]);this[_0x32c7('0x28')][_0x32c7('0x54')](diagramming[_0x32c7('0x4f')][_0x32c7('0x52')],this[_0x32c7('0x55')]);}},{'key':'saveToXml','value':function saveToXml(_0x596e83){var _0x210d5d=new XMLHttpRequest();_0x210d5d[_0x32c7('0x56')]('POST',_0x596e83,!![]);_0x210d5d['setRequestHeader']('Content-Type',_0x32c7('0x57'));var _0x10f98b=this['document'][_0x32c7('0x58')]();var _0x15cb86=new diagramming[(_0x32c7('0x59'))](this[_0x32c7('0x5a')],_0x10f98b);var _0x5c52be=_0x15cb86['selectSingleNode']('DiagramDocument',_0x10f98b);var _0x539157=_0x10f98b['createElement'](_0x32c7('0x5b'));_0x5c52be[_0x32c7('0x5c')](_0x539157);this['saveView'](_0x539157,_0x15cb86);var _0x119925=new XMLSerializer();_0x210d5d['send'](_0x119925[_0x32c7('0x5d')](_0x10f98b));}},{'key':_0x32c7('0x5e'),'value':function saveView(_0x350237,_0x2de5d1){_get(_getPrototypeOf(_0x41e165[_0x32c7('0x9')]),'saveView',this)[_0x32c7('0x11')](this,_0x350237,_0x2de5d1);if(this[_0x32c7('0x5f')])_0x2de5d1['writeString'](this[_0x32c7('0x5f')]['id'],_0x32c7('0x60'),_0x350237);}},{'key':_0x32c7('0x61'),'value':function loadFromXml(_0x211746,_0x5bc8c3,_0x3666a5){var _0x4c82d8=this['document'];var _0x1b6160=new XMLHttpRequest();_0x1b6160[_0x32c7('0x62')]=function(){var _0x18dc78=_0x1b6160[_0x32c7('0x63')];_0x4c82d8[_0x32c7('0x64')](_0x18dc78);var _0x302a7b=new diagramming[(_0x32c7('0x59'))](_0x4c82d8,_0x18dc78);var _0x16afa6=_0x302a7b['selectSingleNode'](_0x32c7('0x22'),_0x18dc78);this[_0x32c7('0x65')](_0x32c7('0x5b'),_0x16afa6,_0x302a7b);if(_0x5bc8c3)_0x5bc8c3(_0x4c82d8);}[_0x32c7('0x66')](this);_0x1b6160[_0x32c7('0x67')]=function(){console[_0x32c7('0x68')](_0x32c7('0x69'));if(_0x3666a5)_0x3666a5(_0x4c82d8);};_0x1b6160[_0x32c7('0x56')](_0x32c7('0x6a'),_0x211746);_0x1b6160[_0x32c7('0x6b')]=_0x32c7('0x28');_0x1b6160[_0x32c7('0x6c')]();}},{'key':_0x32c7('0x65'),'value':function loadView(_0x3146e2,_0x59c666,_0x553ed6){var _0x144f77=_get(_getPrototypeOf(_0x41e165[_0x32c7('0x9')]),_0x32c7('0x65'),this)[_0x32c7('0x11')](this,_0x3146e2,_0x59c666,_0x553ed6);if(!_0x144f77)return;var _0x3ee296=_0x553ed6[_0x32c7('0x6d')]('Theme',_0x144f77);if(_0x3ee296)this['theme']=diagramming[_0x32c7('0x60')][_0x32c7('0x6e')](_0x3ee296);}},{'key':_0x32c7('0x6f'),'value':function resetVirtualScrollGrid(){var _0x38bc78=this['element'];if(!_0x38bc78[_0x32c7('0x49')])return;if(!this[_0x32c7('0x70')]){controls['Control'][_0x32c7('0x71')](_0x38bc78[_0x32c7('0x49')]);var _0x590faa=controls[_0x32c7('0x72')][_0x32c7('0x73')](_0x38bc78[_0x32c7('0x49')],null,!![]);var _0x18f18b=_0x590faa['width'];var _0x4de34b=_0x590faa['height'];if(_0x4de34b!=0x0)_0x38bc78[_0x32c7('0x49')][_0x32c7('0x74')]=_0x4de34b;this['parentSize']={'width':_0x18f18b,'height':_0x4de34b};_0x38bc78[_0x32c7('0x49')][_0x32c7('0x75')][_0x32c7('0x76')]=_0x32c7('0x77');_0x38bc78[_0x32c7('0x49')]['style'][_0x32c7('0x78')]=_0x32c7('0x79')+this[_0x32c7('0x7a')]+'px';if(this['tabAlignment']==TabAlignment[_0x32c7('0x45')])_0x38bc78[_0x32c7('0x49')]['style'][_0x32c7('0x7b')]=this[_0x32c7('0x37')]+_0x32c7('0x7c')+this[_0x32c7('0x7a')]+'px';else _0x38bc78[_0x32c7('0x49')][_0x32c7('0x75')][_0x32c7('0x7b')]=_0x32c7('0x79')+this['scrollbarSize']+_0x32c7('0x7d')+this[_0x32c7('0x37')]+'px';_0x38bc78[_0x32c7('0x49')]['style'][_0x32c7('0x7e')]='';_0x38bc78['style']['gridRow']=this['tabAlignment']==TabAlignment[_0x32c7('0x45')]?0x2:0x1;_0x38bc78[_0x32c7('0x7f')]=Math[_0x32c7('0x80')](_0x590faa[_0x32c7('0x7f')]-this[_0x32c7('0x81')](0x1),this['diagram']['bounds']['width']*this['scale']);_0x38bc78['height']=Math[_0x32c7('0x80')](_0x4de34b-this[_0x32c7('0x37')]-this[_0x32c7('0x81')](0x0),this[_0x32c7('0x5a')]['bounds'][_0x32c7('0x82')]*this[_0x32c7('0x83')]);this[_0x32c7('0x32')][_0x32c7('0x84')][_0x32c7('0x75')][_0x32c7('0x76')]=_0x32c7('0x85');this[_0x32c7('0x32')][_0x32c7('0x84')]['style'][_0x32c7('0x86')]='1\x20/\x20-1';var _0xfbd737=document[_0x32c7('0x87')](_0x32c7('0x88'));_0xfbd737[_0x32c7('0x89')]='mf_diagram_scrollerH';_0xfbd737[_0x32c7('0x75')]['gridRow']=this['tabAlignment']==TabAlignment['Top']?0x3:0x2;_0xfbd737[_0x32c7('0x75')]['gridColumnStart']=0x1;_0xfbd737[_0x32c7('0x75')]['gridColumnEnd']=0x2;_0xfbd737[_0x32c7('0x75')]['height']=this[_0x32c7('0x7a')]+'px';_0xfbd737[_0x32c7('0x75')][_0x32c7('0x7f')]=_0x590faa[_0x32c7('0x7f')]-this['scrollbarSize']+'px';_0xfbd737[_0x32c7('0x75')][_0x32c7('0x8a')]=_0x32c7('0x8b');_0xfbd737['style'][_0x32c7('0x8c')]=_0x32c7('0x8d');_0xfbd737[_0x32c7('0x75')][_0x32c7('0x8e')]=_0x32c7('0x8f');this[_0x32c7('0x70')]=_0xfbd737;var _0x2ee98b=document[_0x32c7('0x87')]('div');_0x2ee98b[_0x32c7('0x75')][_0x32c7('0x82')]=this[_0x32c7('0x7a')]+'px';_0xfbd737['appendChild'](_0x2ee98b);_0x38bc78[_0x32c7('0x49')][_0x32c7('0x5c')](_0xfbd737);var _0x586729=document['createElement'](_0x32c7('0x88'));_0x586729['className']=_0x32c7('0x90');_0x586729[_0x32c7('0x75')][_0x32c7('0x91')]=this[_0x32c7('0x44')]==TabAlignment[_0x32c7('0x45')]?0x2:0x1;_0x586729[_0x32c7('0x75')][_0x32c7('0x7f')]=this[_0x32c7('0x7a')]+'px';_0x586729[_0x32c7('0x75')][_0x32c7('0x82')]=_0x590faa[_0x32c7('0x82')]-this[_0x32c7('0x37')]-this[_0x32c7('0x7a')]+'px';_0x586729[_0x32c7('0x75')][_0x32c7('0x8a')]=_0x32c7('0x8d');_0x586729[_0x32c7('0x75')][_0x32c7('0x8c')]=_0x32c7('0x8b');_0x586729[_0x32c7('0x75')]['backgroundColor']=_0x32c7('0x8f');this['scrollerV']=_0x586729;var _0x88d681=document[_0x32c7('0x87')](_0x32c7('0x88'));_0x88d681[_0x32c7('0x75')][_0x32c7('0x7f')]=this[_0x32c7('0x7a')]+'px';_0x586729[_0x32c7('0x5c')](_0x88d681);_0x38bc78[_0x32c7('0x49')][_0x32c7('0x5c')](_0x586729);controls[_0x32c7('0x92')][_0x32c7('0x93')](_0xfbd737,{'scroll':this['scrollDelegate']});controls[_0x32c7('0x92')][_0x32c7('0x93')](_0x586729,{'scroll':this[_0x32c7('0x94')]});if(!this[_0x32c7('0x95')]){var _0x3a973d=this;this[_0x32c7('0x95')]=setInterval(function(){_0x3a973d['onVirtualResize']();},0xc8);}}}},{'key':_0x32c7('0x96'),'value':function resetTabAlignment(){this[_0x32c7('0x32')][_0x32c7('0x97')]=this[_0x32c7('0x44')]!=TabAlignment[_0x32c7('0x31')];var _0x3e2a8e=this[_0x32c7('0x46')];if(this[_0x32c7('0x44')]==TabAlignment[_0x32c7('0x45')])_0x3e2a8e['parentNode'][_0x32c7('0x75')]['gridTemplateRows']=this[_0x32c7('0x37')]+_0x32c7('0x7c')+this['scrollbarSize']+'px';else _0x3e2a8e[_0x32c7('0x49')][_0x32c7('0x75')][_0x32c7('0x7b')]=_0x32c7('0x79')+this[_0x32c7('0x7a')]+_0x32c7('0x7d')+this[_0x32c7('0x37')]+'px';_0x3e2a8e[_0x32c7('0x75')][_0x32c7('0x98')]=this['tabAlignment']==TabAlignment['Top']?0x2:0x1;var _0x4e7c7b=this['element'][_0x32c7('0x49')][_0x32c7('0x99')](_0x32c7('0x9a'));if(this[_0x32c7('0x70')]){_0x4e7c7b[_0x32c7('0x75')]['gridRow']=this[_0x32c7('0x44')]==TabAlignment[_0x32c7('0x45')]?0x3:0x2;var _0x8e12ff=this[_0x32c7('0x46')]['parentNode'][_0x32c7('0x99')](_0x32c7('0x9b'));_0x8e12ff[_0x32c7('0x75')]['gridRowStart']=this[_0x32c7('0x44')]==TabAlignment[_0x32c7('0x45')]?0x2:0x1;}this[_0x32c7('0x9c')]();}},{'key':_0x32c7('0x9c'),'value':function updateCanvasSize(){if(!this[_0x32c7('0x46')])return;var _0x31d276=this[_0x32c7('0x9d')]/0x64/drawing[_0x32c7('0x9e')]['getPixel'](this[_0x32c7('0x9f')][_0x32c7('0xa0')]);if(this[_0x32c7('0x70')]){var _0x2799c8=this[_0x32c7('0x46')][_0x32c7('0x49')];this['scrollerH'][_0x32c7('0xa1')]['style']['width']=this[_0x32c7('0x9f')]['bounds'][_0x32c7('0x7f')]*_0x31d276+'px';this[_0x32c7('0xa2')][_0x32c7('0xa1')]['style'][_0x32c7('0x82')]=this[_0x32c7('0x9f')][_0x32c7('0xa3')][_0x32c7('0x82')]*_0x31d276+'px';var _0x21f7e6=this['getScrollbarSize'](0x1);var _0x5512f6=this['getScrollbarSize'](0x0);this[_0x32c7('0xa2')]['style'][_0x32c7('0x7f')]=_0x21f7e6+'px';this[_0x32c7('0x70')][_0x32c7('0x75')][_0x32c7('0x82')]=_0x5512f6+'px';_0x2799c8['style'][_0x32c7('0x78')]=_0x32c7('0x79')+_0x21f7e6+'px';if(this[_0x32c7('0x44')]==TabAlignment['Top'])_0x2799c8[_0x32c7('0x75')][_0x32c7('0x7b')]=this[_0x32c7('0x37')]+'px\x20auto\x20'+_0x5512f6+'px';else _0x2799c8['style']['gridTemplateRows']=_0x32c7('0x79')+_0x5512f6+_0x32c7('0x7d')+this[_0x32c7('0x37')]+'px';var _0x3858a9=controls['DomUtils'][_0x32c7('0x73')](_0x2799c8,null,!![]);var _0x1de79d=_0x3858a9['height'];if(_0x1de79d==0x0)_0x1de79d=_0x2799c8['_mf_originalHeight'];if(_0x1de79d==0x0)_0x1de79d=this[_0x32c7('0x9f')][_0x32c7('0xa3')][_0x32c7('0x82')]*_0x31d276;this['element']['width']=Math[_0x32c7('0x80')](_0x3858a9[_0x32c7('0x7f')]-_0x21f7e6,this['canvas'][_0x32c7('0xa3')][_0x32c7('0x7f')]*_0x31d276);this[_0x32c7('0x46')]['height']=Math[_0x32c7('0x80')](_0x1de79d-this[_0x32c7('0x37')]-_0x5512f6,this[_0x32c7('0x9f')][_0x32c7('0xa3')]['height']*_0x31d276);this[_0x32c7('0x70')][_0x32c7('0x75')][_0x32c7('0x7f')]=_0x3858a9['width']-_0x21f7e6+'px';this[_0x32c7('0xa2')][_0x32c7('0x75')][_0x32c7('0x82')]=_0x1de79d-this['tabsSize']-_0x5512f6+'px';}this[_0x32c7('0x9f')][_0x32c7('0xa4')]=null;this['canvas'][_0x32c7('0xa5')]();this[_0x32c7('0x5a')][_0x32c7('0xa6')](diagramming[_0x32c7('0x4f')][_0x32c7('0xa7')],controls[_0x32c7('0xa8')][_0x32c7('0xa9')]);}},{'key':_0x32c7('0xaa'),'value':function resetTabs(){var _0x2d1b79=this;this['tabStrip'][_0x32c7('0x2a')][_0x32c7('0xab')]();this[_0x32c7('0x28')][_0x32c7('0x23')]['forEach'](function(_0x2f1c4d,_0x1808a3){var _0x209d7a=new commonUi[(_0x32c7('0xac'))](commonUi[_0x32c7('0xad')][_0x32c7('0xae')],_0x2f1c4d[_0x32c7('0x25')]);_0x209d7a[_0x32c7('0xaf')]=_0x2f1c4d['titleColor'];_0x209d7a['imageSrc']=_0x2f1c4d[_0x32c7('0xb0')];_0x2d1b79[_0x32c7('0x32')][_0x32c7('0x2a')]['add'](_0x209d7a);_0x2f1c4d[_0x32c7('0xb1')]=_0x209d7a;});}},{'key':_0x32c7('0x3b'),'value':function onTabMouseDown(_0x699ecf,_0xf1f222){if(!_0xf1f222['item']['enabled'])return;if(_0xf1f222[_0x32c7('0xb2')]['dataMfc']==_0x32c7('0xb3')){var _0x27f121=new diagramming['DiagramPage']();_0x27f121['title']=_0x32c7('0x5a')+(++this[_0x32c7('0x29')])[_0x32c7('0xb4')]();this['items'][_0x32c7('0xb5')](_0x27f121);this[_0x32c7('0x4a')]=_0x27f121;return;}if(_0xf1f222[_0x32c7('0xb2')]['dataMfc']){if(_0xf1f222[_0x32c7('0xb2')][_0x32c7('0xb6')]==_0x32c7('0xb7'))this[_0x32c7('0x4a')]=this['items'][_0x32c7('0xb8')]();else if(_0xf1f222[_0x32c7('0xb2')][_0x32c7('0xb6')]==_0x32c7('0xb9'))this[_0x32c7('0xba')]--;else if(_0xf1f222[_0x32c7('0xb2')]['dataMfc']==_0x32c7('0xbb'))this[_0x32c7('0xba')]++;else if(_0xf1f222['item'][_0x32c7('0xb6')]==_0x32c7('0xbc'))this['selectedPage']=this[_0x32c7('0x2a')][_0x32c7('0x4b')]();return;}var _0x72a17a=this[_0x32c7('0xbd')](_0xf1f222[_0x32c7('0xb2')]);if(_0x72a17a){if(controls['DomUtils'][_0x32c7('0xbe')](_0xf1f222[_0x32c7('0xbf')][_0x32c7('0xc0')],'mfc-tabbutton-close')){var _0x1224cd=this['selectedIndex'];if(this['selectedPage']==_0x72a17a){if(_0x72a17a==this[_0x32c7('0x2a')][_0x32c7('0xb8')]())_0x1224cd++;}this[_0x32c7('0x2a')][_0x32c7('0xc1')](_0x72a17a);this[_0x32c7('0xba')]=--_0x1224cd;}else this['selectedPage']=_0x72a17a;}}},{'key':_0x32c7('0x42'),'value':function onTabDrop(_0x3d68d3,_0x44683e){var _0x47f4e2=_0x3d68d3[_0x32c7('0xc2')](_0x44683e[_0x32c7('0xb2')])[_0x32c7('0xc3')](_0x44683e[_0x32c7('0xb2')]);var _0x169112=this['getItemByHeader'](_0x44683e[_0x32c7('0xb2')]);this[_0x32c7('0x2a')]['_items']['splice'](this[_0x32c7('0x2a')][_0x32c7('0xc3')](_0x169112),0x1);this[_0x32c7('0x2a')][_0x32c7('0xc4')][_0x32c7('0xc5')](_0x47f4e2,0x0,_0x169112);}},{'key':_0x32c7('0x2e'),'value':function onItemsChanging(_0x8c80ca,_0x5059a2){if(_0x5059a2['action']==common[_0x32c7('0xc6')][_0x32c7('0xc7')]){var _0x1c4eec;for(var _0x1a92fa=0x0;_0x1a92fa<_0x5059a2[_0x32c7('0xc8')]['length'];_0x1a92fa++){if(!this['onPageValidateAction'](Events[_0x32c7('0x18')],_0x5059a2[_0x32c7('0xc8')][_0x1a92fa]))_0x1c4eec=!![];}_0x5059a2[_0x32c7('0xc9')]=_0x1c4eec;}else{var _0x1c4eec;for(var _0x1a92fa=0x0;_0x1a92fa<_0x5059a2['m_oldItems'][_0x32c7('0x3')];_0x1a92fa++){if(!this[_0x32c7('0xca')](Events[_0x32c7('0x1a')],null,_0x5059a2[_0x32c7('0xcb')][_0x1a92fa]))_0x1c4eec=!![];}_0x5059a2['cancel']=_0x1c4eec;}}},{'key':'onItemsChanged','value':function onItemsChanged(_0xa728fb,_0x41478c){if(_0x41478c['action']==common[_0x32c7('0xc6')][_0x32c7('0xc7')]){for(var _0x2e9097=0x0;_0x2e9097<_0x41478c[_0x32c7('0xc8')][_0x32c7('0x3')];_0x2e9097++){this[_0x32c7('0xa6')](Events[_0x32c7('0x19')],new PageEventArgs({'page':_0x41478c[_0x32c7('0xc8')][_0x2e9097]}));}}else{for(var _0x2e9097=0x0;_0x2e9097<_0x41478c[_0x32c7('0xcb')][_0x32c7('0x3')];_0x2e9097++){this[_0x32c7('0xa6')](Events[_0x32c7('0x1b')],new PageEventArgs({'oldPage':_0x41478c[_0x32c7('0xcb')][_0x2e9097]}));}}this[_0x32c7('0xaa')]();this[_0x32c7('0x32')]['resetButtons']();}},{'key':_0x32c7('0x4a'),'get':function get(){return this['_selectedPage'];},'set':function set(_0x13a76a){if(_0x13a76a){if(this['onPageValidateAction'](Events['pageChanging'],this[_0x32c7('0xcc')],_0x13a76a)){var _0x4e00f9=this[_0x32c7('0xcc')];this['_selectedPage']=_0x13a76a;this[_0x32c7('0xcd')](this[_0x32c7('0xcc')]);this[_0x32c7('0xcc')][_0x32c7('0xa5')]();this[_0x32c7('0x32')][_0x32c7('0xce')](this['_selectedPage']['header']);this[_0x32c7('0xa6')](Events['pageChanged'],new PageEventArgs({'page':this['_selectedPage'],'oldPage':_0x4e00f9}));}}}},{'key':_0x32c7('0xba'),'get':function get(){if(this['_selectedPage'])return this['items']['indexOfItem'](this[_0x32c7('0xcc')]);return-0x1;},'set':function set(_0x5d461c){var _0x355154=this[_0x32c7('0x2a')][_0x32c7('0x2a')]()[_0x5d461c];if(_0x355154)this[_0x32c7('0x4a')]=_0x355154;}},{'key':_0x32c7('0xbd'),'value':function getItemByHeader(_0x201dfa){return this['items']['where'](function(_0x13542a){return _0x13542a['header'][_0x32c7('0x46')]==_0x201dfa[_0x32c7('0x46')];})['first']();}},{'key':'document','get':function get(){return this['_document'];},'set':function set(_0x1769c2){if(this[_0x32c7('0x2b')]!=_0x1769c2){if(this[_0x32c7('0x28')]!=null)this[_0x32c7('0x2b')][_0x32c7('0x54')](diagramming[_0x32c7('0x4f')][_0x32c7('0xcf')],this[_0x32c7('0x51')]);this['_document']=_0x1769c2;this['_document']['addEventListener'](diagramming['Events'][_0x32c7('0xcf')],this['dataLoadedDelegate']);this[_0x32c7('0xa6')](diagramming['Events'][_0x32c7('0xcf')],controls[_0x32c7('0xa8')]['Empty']);}}},{'key':'tabsSize','get':function get(){if(this[_0x32c7('0x44')]==TabAlignment[_0x32c7('0x31')])return 0x0;return this[_0x32c7('0x32')][_0x32c7('0x82')][_0x32c7('0x15')];},'set':function set(_0x4ff80c){if(this['tabStrip'][_0x32c7('0x82')]['value']!=_0x4ff80c){this[_0x32c7('0x32')]['height']=new common[(_0x32c7('0xd0'))](_0x4ff80c,common[_0x32c7('0xd1')][_0x32c7('0xd2')]);this[_0x32c7('0x96')]();}}},{'key':'tabAlignment','get':function get(){return this[_0x32c7('0xd3')];},'set':function set(_0x5a97e2){if(this[_0x32c7('0xd3')]!=_0x5a97e2){this['_tabAlignment']=_0x5a97e2;this['resetTabAlignment']();}}},{'key':_0x32c7('0x38'),'get':function get(){return this['tabStrip'][_0x32c7('0xd4')];},'set':function set(_0x2c8361){if(this[_0x32c7('0x32')][_0x32c7('0xd4')]!=_0x2c8361){this[_0x32c7('0x32')][_0x32c7('0xd4')]=_0x2c8361;}}},{'key':_0x32c7('0x39'),'get':function get(){return this[_0x32c7('0x32')][_0x32c7('0xd5')]==commonUi['TabsScrollMode'][_0x32c7('0xd6')];},'set':function set(_0x3965c2){if(this[_0x32c7('0x32')][_0x32c7('0xd5')]==commonUi[_0x32c7('0xd7')][_0x32c7('0xd6')]!=_0x3965c2){this[_0x32c7('0x32')][_0x32c7('0xd5')]=_0x3965c2?commonUi['TabsScrollMode']['NavButtons']:commonUi['TabsScrollMode']['None'];}}},{'key':'showAddButton','get':function get(){return this[_0x32c7('0x32')][_0x32c7('0x36')];},'set':function set(_0xaff24c){if(this[_0x32c7('0x32')][_0x32c7('0x36')]!=_0xaff24c){this['tabStrip'][_0x32c7('0x36')]=_0xaff24c;}}},{'key':_0x32c7('0xd8'),'get':function get(){return this[_0x32c7('0x32')][_0x32c7('0xd9')];},'set':function set(_0x370e99){if(this['tabStrip'][_0x32c7('0xd9')]!=_0x370e99){this[_0x32c7('0x32')][_0x32c7('0xd9')]=_0x370e99;}}},{'key':'theme','get':function get(){return this[_0x32c7('0xda')];},'set':function set(_0x3be965){if(this[_0x32c7('0xda')]!=_0x3be965){this[_0x32c7('0xda')]=_0x3be965;if(this[_0x32c7('0xda')])this[_0x32c7('0x32')][_0x32c7('0x5f')]=this[_0x32c7('0xda')]['id'];}}},{'key':_0x32c7('0xdb'),'value':function setTheme(_0x2f53e0,_0x3aba1c){this[_0x32c7('0x5f')]=_0x2f53e0;if(_0x3aba1c){this[_0x32c7('0x2a')][_0x32c7('0x4d')](function(_0x3e7663){return _0x3e7663['theme']=_0x2f53e0;});}}},{'key':'onDataLoaded','value':function onDataLoaded(_0x2d76c3,_0x6a0c44){var _0x13f090=this;this[_0x32c7('0x2a')]=new commonCollections[(_0x32c7('0xdc'))](this[_0x32c7('0x28')][_0x32c7('0x23')]);this[_0x32c7('0x2a')][_0x32c7('0x2c')][_0x32c7('0x2d')](function(_0x2d76c3,_0x6a0c44){_0x13f090[_0x32c7('0x2e')](_0x2d76c3,_0x6a0c44);});this[_0x32c7('0x2a')][_0x32c7('0x2f')]['addEventListener'](function(_0x2d76c3,_0x6a0c44){_0x13f090[_0x32c7('0x30')](_0x2d76c3,_0x6a0c44);});this[_0x32c7('0xaa')]();this[_0x32c7('0x32')][_0x32c7('0xdd')]();this[_0x32c7('0x4a')]=this[_0x32c7('0x2a')]['last']();this['_lastIndex']=this[_0x32c7('0x2a')][_0x32c7('0xde')]();}},{'key':'onPageValidateAction','value':function onPageValidateAction(_0xeb426d,_0x2a9994,_0x43a794){var _0x287555=new PageEventArgs({'page':_0x2a9994,'oldPage':_0x43a794});this['raiseEvent'](_0xeb426d,_0x287555);if(_0x287555[_0x32c7('0xc9')])return![];return!![];}}],[{'key':_0x32c7('0xa'),'value':function create(_0x2d6801,_0x295a64){return controls['Control'][_0x32c7('0xdf')](_0x41e165,_0x2d6801,_0x295a64);}}]);return _0x41e165;}(diagramming[_0x32c7('0xe0')]);exports['Events']=Events;exports[_0x32c7('0xe1')]=PageEventArgs;exports[_0x32c7('0xe2')]=TabAlignment;exports[_0x32c7('0xe3')]=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 _0x387c=['pageChanging','pageChanged','pageAdding','pageRemoving','pageRemoved','sender','_page','page','oldPage','_oldPage','pages','title','_lastIndex','_document','items','collectionChanging','addEventListener','onItemsChanging','collectionChanged','_tabAlignment','None','tabStrip','visible','autoSizeTabs','showAddButton','tabsSize','initialize','itemMouseDown','_tabMouseDownHandler','closeButtonClick','addButtonClick','navButtonClick','_tabDropHandler','onTabDrop','itemDrop','resetTabs','Top','element','insertBefore','draw','parentNode','appendChild','selectedPage','last','dispose','forEach','attachDiagramEvents','document','dataLoaded','dataLoadedDelegate','queryView','queryViewDelegate','detachDiagramEvents','removeEventListener','saveToXml','open','POST','setRequestHeader','text/xml','toXmlDocument','diagram','selectSingleNode','DiagramDocument','View','send','saveView','theme','writeString','Theme','onload','responseXML','fromXmlDocument','loadView','onerror','log','Error\x20while\x20getting\x20XML.','GET','readString','fromId','scrollerH','clearHandlers','getBounds','width','height','style','display','gridTemplateColumns','scrollbarSize','tabAlignment','px\x20auto\x20','gridTemplateRows','auto\x20','gridRow','getScrollbarSize','scale','min','bounds','_element','gridColumn','1\x20/\x20-1','createElement','div','className','mf_diagram_scrollerH','gridColumnStart','gridColumnEnd','overflowX','auto','backgroundColor','#eee','gridRowStart','overflowY','scrollerV','addHandlers','scrollDelegate','resizeTimeoutId','onVirtualResize','resetTabAlignment','px\x20','querySelector','.mf_diagram_scrollerH','.mf_diagram_scrollerV','updateCanvasSize','_zoomFactor','getPixel','canvas','measureUnit','firstChild','_mf_originalHeight','repaint','sizeChanged','Empty','clear','titleColor','imageSrc','add','header','onTabMouseDown','item','dataMfc','mfc-add','toString','mfc-first','first','mfc-prev','selectedIndex','mfc-next','getItemByHeader','hasCssClass','rawEventArgs','target','mfc-tabbutton-close','getGroupItems','indexOfItem','_items','splice','action','Add','m_newItems','length','m_oldItems','onPageValidateAction','cancel','onItemsChanged','raiseEvent','pageAdded','resetButtons','_selectedPage','setDiagram','selectItem','diagramChanged','value','Pixel','showTabCloseButtons','showCloseButtons','showNavigationButtons','NavButtons','scrollMode','allowReorder','allowDrag','_theme','onDataLoaded','count','create','createControl'];var _0xd6a9=function(_0x19a0dc,_0x210f3a){_0x19a0dc=_0x19a0dc-0x0;var _0x488406=_0x387c[_0x19a0dc];return _0x488406;};import{CancelEventArgs,Control,DomUtils,EventArgs}from'@mindfusion/controls';import{DiagramView,DiagramDocument,DiagramPage,Events as _0x32b474,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 _0xd6a9('0x0');}static get['pageChanged'](){return _0xd6a9('0x1');}static get[_0xd6a9('0x2')](){return'pageAdding';}static get['pageAdded'](){return'pageAdded';}static get['pageRemoving'](){return _0xd6a9('0x3');}static get[_0xd6a9('0x4')](){return _0xd6a9('0x4');}}class PageEventArgs extends CancelEventArgs{constructor(args){super();if(args[_0xd6a9('0x5')])this[_0xd6a9('0x5')]=args['sender'];if(args['page'])this[_0xd6a9('0x6')]=args[_0xd6a9('0x7')];if(args[_0xd6a9('0x8')])this[_0xd6a9('0x9')]=args[_0xd6a9('0x8')];}get[_0xd6a9('0x7')](){return this[_0xd6a9('0x6')];}get[_0xd6a9('0x8')](){return this['_oldPage'];}}class TabbedDiagramView extends DiagramView{constructor(element,document){var doc=document||new DiagramDocument();if(!doc[_0xd6a9('0xa')]['length']){var page=new DiagramPage();page[_0xd6a9('0xb')]='diagram1';doc['addPage'](page);}super(element,doc['pages'][0x0]);this['document']=doc;this[_0xd6a9('0xc')]=0x1;this['items']=new ObservableCollection(this[_0xd6a9('0xd')][_0xd6a9('0xa')]);this[_0xd6a9('0xe')][_0xd6a9('0xf')][_0xd6a9('0x10')]((sender,args)=>{this[_0xd6a9('0x11')](sender,args);});this[_0xd6a9('0xe')][_0xd6a9('0x12')][_0xd6a9('0x10')]((sender,args)=>{this['onItemsChanged'](sender,args);});this[_0xd6a9('0x13')]=TabAlignment[_0xd6a9('0x14')];this[_0xd6a9('0x15')]=new TabStrip();this['tabStrip']['parent']=this;this[_0xd6a9('0x15')]['req']=()=>{return!![];};this[_0xd6a9('0x15')][_0xd6a9('0x16')]=![];this[_0xd6a9('0x15')][_0xd6a9('0x17')]=![];this[_0xd6a9('0x15')][_0xd6a9('0x18')]=![];this[_0xd6a9('0x19')]=0x14;this['showTabCloseButtons']=![];this['showNavigationButtons']=![];}[_0xd6a9('0x1a')](){super['initialize']();this['_tabMouseDownHandler']=(sender,args)=>{this['onTabMouseDown'](sender,args);};this[_0xd6a9('0x15')][_0xd6a9('0x1b')]['addEventListener'](this[_0xd6a9('0x1c')]);this[_0xd6a9('0x15')][_0xd6a9('0x1d')][_0xd6a9('0x10')](this['_tabMouseDownHandler']);this[_0xd6a9('0x15')][_0xd6a9('0x1e')][_0xd6a9('0x10')](this[_0xd6a9('0x1c')]);this[_0xd6a9('0x15')][_0xd6a9('0x1f')][_0xd6a9('0x10')](this[_0xd6a9('0x1c')]);this[_0xd6a9('0x20')]=(sender,args)=>{this[_0xd6a9('0x21')](sender,args);};this['tabStrip'][_0xd6a9('0x22')][_0xd6a9('0x10')](this[_0xd6a9('0x20')]);this[_0xd6a9('0x23')]();if(this['tabAlignment']==TabAlignment[_0xd6a9('0x24')])this[_0xd6a9('0x25')]['parentNode'][_0xd6a9('0x26')](this[_0xd6a9('0x15')][_0xd6a9('0x27')](),this['element']);else this[_0xd6a9('0x25')][_0xd6a9('0x28')][_0xd6a9('0x29')](this[_0xd6a9('0x15')]['draw']());this[_0xd6a9('0x15')]['attach']();this[_0xd6a9('0x2a')]=this[_0xd6a9('0xe')][_0xd6a9('0x2b')]();}[_0xd6a9('0x2c')](){this[_0xd6a9('0xe')][_0xd6a9('0x2d')](item=>item[_0xd6a9('0x2c')]());this[_0xd6a9('0x15')][_0xd6a9('0x2c')]();super[_0xd6a9('0x2c')]();}[_0xd6a9('0x2e')](){this[_0xd6a9('0x2f')][_0xd6a9('0x10')](_0x32b474[_0xd6a9('0x30')],this[_0xd6a9('0x31')]);this['document']['addEventListener'](_0x32b474[_0xd6a9('0x32')],this[_0xd6a9('0x33')]);}[_0xd6a9('0x34')](){this[_0xd6a9('0x2f')][_0xd6a9('0x35')](_0x32b474[_0xd6a9('0x30')],this[_0xd6a9('0x31')]);this[_0xd6a9('0x2f')]['removeEventListener'](_0x32b474[_0xd6a9('0x32')],this[_0xd6a9('0x33')]);}[_0xd6a9('0x36')](url){var xhr=new XMLHttpRequest();xhr[_0xd6a9('0x37')](_0xd6a9('0x38'),url,!![]);xhr[_0xd6a9('0x39')]('Content-Type',_0xd6a9('0x3a'));var xmlDoc=this['document'][_0xd6a9('0x3b')]();var context=new XmlPersistContext(this[_0xd6a9('0x3c')],xmlDoc);var rootElement=context[_0xd6a9('0x3d')](_0xd6a9('0x3e'),xmlDoc);var viewElement=xmlDoc['createElement'](_0xd6a9('0x3f'));rootElement[_0xd6a9('0x29')](viewElement);this['saveView'](viewElement,context);var serializer=new XMLSerializer();xhr[_0xd6a9('0x40')](serializer['serializeToString'](xmlDoc));}[_0xd6a9('0x41')](element,context){super[_0xd6a9('0x41')](element,context);if(this[_0xd6a9('0x42')])context[_0xd6a9('0x43')](this[_0xd6a9('0x42')]['id'],_0xd6a9('0x44'),element);}['loadFromXml'](fileUrl,onLoad,onError){var diagram=this['document'];var xhr=new XMLHttpRequest();xhr[_0xd6a9('0x45')]=function(){var document=xhr[_0xd6a9('0x46')];diagram[_0xd6a9('0x47')](document);var context=new XmlPersistContext(diagram,document);var diagramElement=context[_0xd6a9('0x3d')](_0xd6a9('0x3e'),document);this[_0xd6a9('0x48')](_0xd6a9('0x3f'),diagramElement,context);if(onLoad)onLoad(diagram);}['bind'](this);xhr[_0xd6a9('0x49')]=function(){console[_0xd6a9('0x4a')](_0xd6a9('0x4b'));if(onError)onError(diagram);};xhr['open'](_0xd6a9('0x4c'),fileUrl);xhr['responseType']=_0xd6a9('0x2f');xhr[_0xd6a9('0x40')]();}[_0xd6a9('0x48')](elementName,parentElement,context){var element=super['loadView'](elementName,parentElement,context);if(!element)return;var themeId=context[_0xd6a9('0x4d')]('Theme',element);if(themeId)this[_0xd6a9('0x42')]=Theme[_0xd6a9('0x4e')](themeId);}['resetVirtualScrollGrid'](){var canvas=this['element'];if(!canvas['parentNode'])return;if(!this[_0xd6a9('0x4f')]){Control[_0xd6a9('0x50')](canvas['parentNode']);var bounds=DomUtils[_0xd6a9('0x51')](canvas[_0xd6a9('0x28')],null,!![]);var w=bounds[_0xd6a9('0x52')];var h=bounds[_0xd6a9('0x53')];if(h!=0x0)canvas[_0xd6a9('0x28')]['_mf_originalHeight']=h;this['parentSize']={'width':w,'height':h};canvas[_0xd6a9('0x28')][_0xd6a9('0x54')][_0xd6a9('0x55')]='grid';canvas[_0xd6a9('0x28')]['style'][_0xd6a9('0x56')]='auto\x20'+this[_0xd6a9('0x57')]+'px';if(this[_0xd6a9('0x58')]==TabAlignment[_0xd6a9('0x24')])canvas['parentNode'][_0xd6a9('0x54')]['gridTemplateRows']=this[_0xd6a9('0x19')]+_0xd6a9('0x59')+this[_0xd6a9('0x57')]+'px';else canvas[_0xd6a9('0x28')][_0xd6a9('0x54')][_0xd6a9('0x5a')]=_0xd6a9('0x5b')+this[_0xd6a9('0x57')]+'px\x20'+this[_0xd6a9('0x19')]+'px';canvas[_0xd6a9('0x28')][_0xd6a9('0x54')]['overflow']='';canvas['style'][_0xd6a9('0x5c')]=this[_0xd6a9('0x58')]==TabAlignment[_0xd6a9('0x24')]?0x2:0x1;canvas[_0xd6a9('0x52')]=Math['min'](bounds[_0xd6a9('0x52')]-this[_0xd6a9('0x5d')](0x1),this[_0xd6a9('0x3c')]['bounds']['width']*this[_0xd6a9('0x5e')]);canvas['height']=Math[_0xd6a9('0x5f')](h-this['tabsSize']-this[_0xd6a9('0x5d')](0x0),this[_0xd6a9('0x3c')][_0xd6a9('0x60')][_0xd6a9('0x53')]*this['scale']);this[_0xd6a9('0x15')][_0xd6a9('0x61')][_0xd6a9('0x54')][_0xd6a9('0x55')]='inline-block';this[_0xd6a9('0x15')][_0xd6a9('0x61')]['style'][_0xd6a9('0x62')]=_0xd6a9('0x63');var scrollerH=document[_0xd6a9('0x64')](_0xd6a9('0x65'));scrollerH[_0xd6a9('0x66')]=_0xd6a9('0x67');scrollerH[_0xd6a9('0x54')]['gridRow']=this[_0xd6a9('0x58')]==TabAlignment[_0xd6a9('0x24')]?0x3:0x2;scrollerH['style'][_0xd6a9('0x68')]=0x1;scrollerH['style'][_0xd6a9('0x69')]=0x2;scrollerH[_0xd6a9('0x54')][_0xd6a9('0x53')]=this[_0xd6a9('0x57')]+'px';scrollerH[_0xd6a9('0x54')][_0xd6a9('0x52')]=bounds['width']-this[_0xd6a9('0x57')]+'px';scrollerH[_0xd6a9('0x54')][_0xd6a9('0x6a')]=_0xd6a9('0x6b');scrollerH[_0xd6a9('0x54')]['overflowY']='hidden';scrollerH['style'][_0xd6a9('0x6c')]=_0xd6a9('0x6d');this[_0xd6a9('0x4f')]=scrollerH;var innerH=document[_0xd6a9('0x64')](_0xd6a9('0x65'));innerH['style'][_0xd6a9('0x53')]=this[_0xd6a9('0x57')]+'px';scrollerH[_0xd6a9('0x29')](innerH);canvas[_0xd6a9('0x28')][_0xd6a9('0x29')](scrollerH);var scrollerV=document[_0xd6a9('0x64')](_0xd6a9('0x65'));scrollerV['className']='mf_diagram_scrollerV';scrollerV[_0xd6a9('0x54')][_0xd6a9('0x6e')]=this[_0xd6a9('0x58')]==TabAlignment[_0xd6a9('0x24')]?0x2:0x1;scrollerV['style'][_0xd6a9('0x52')]=this['scrollbarSize']+'px';scrollerV[_0xd6a9('0x54')][_0xd6a9('0x53')]=bounds[_0xd6a9('0x53')]-this[_0xd6a9('0x19')]-this['scrollbarSize']+'px';scrollerV[_0xd6a9('0x54')][_0xd6a9('0x6a')]='hidden';scrollerV['style'][_0xd6a9('0x6f')]='auto';scrollerV['style'][_0xd6a9('0x6c')]='#eee';this[_0xd6a9('0x70')]=scrollerV;var innerV=document[_0xd6a9('0x64')](_0xd6a9('0x65'));innerV['style'][_0xd6a9('0x52')]=this['scrollbarSize']+'px';scrollerV[_0xd6a9('0x29')](innerV);canvas[_0xd6a9('0x28')]['appendChild'](scrollerV);Control[_0xd6a9('0x71')](scrollerH,{'scroll':this[_0xd6a9('0x72')]});Control[_0xd6a9('0x71')](scrollerV,{'scroll':this[_0xd6a9('0x72')]});if(!this[_0xd6a9('0x73')]){var thisObj=this;this[_0xd6a9('0x73')]=setInterval(function(){thisObj[_0xd6a9('0x74')]();},0xc8);}}}[_0xd6a9('0x75')](){this[_0xd6a9('0x15')][_0xd6a9('0x16')]=this['tabAlignment']!=TabAlignment['None'];var canvas=this[_0xd6a9('0x25')];if(this[_0xd6a9('0x58')]==TabAlignment[_0xd6a9('0x24')])canvas[_0xd6a9('0x28')][_0xd6a9('0x54')][_0xd6a9('0x5a')]=this[_0xd6a9('0x19')]+_0xd6a9('0x59')+this[_0xd6a9('0x57')]+'px';else canvas[_0xd6a9('0x28')][_0xd6a9('0x54')][_0xd6a9('0x5a')]='auto\x20'+this[_0xd6a9('0x57')]+_0xd6a9('0x76')+this[_0xd6a9('0x19')]+'px';canvas[_0xd6a9('0x54')]['gridRow']=this[_0xd6a9('0x58')]==TabAlignment['Top']?0x2:0x1;var scrollerH=this['element'][_0xd6a9('0x28')][_0xd6a9('0x77')](_0xd6a9('0x78'));if(this['scrollerH']){scrollerH['style'][_0xd6a9('0x5c')]=this[_0xd6a9('0x58')]==TabAlignment[_0xd6a9('0x24')]?0x3:0x2;var scrollerV=this[_0xd6a9('0x25')]['parentNode']['querySelector'](_0xd6a9('0x79'));scrollerV[_0xd6a9('0x54')][_0xd6a9('0x6e')]=this[_0xd6a9('0x58')]==TabAlignment['Top']?0x2:0x1;}this['updateCanvasSize']();}[_0xd6a9('0x7a')](){if(!this['element'])return;var scale=this[_0xd6a9('0x7b')]/0x64/GraphicsUnit[_0xd6a9('0x7c')](this[_0xd6a9('0x7d')][_0xd6a9('0x7e')]);if(this[_0xd6a9('0x4f')]){var parentDiv=this[_0xd6a9('0x25')][_0xd6a9('0x28')];this[_0xd6a9('0x4f')][_0xd6a9('0x7f')][_0xd6a9('0x54')][_0xd6a9('0x52')]=this['canvas'][_0xd6a9('0x60')][_0xd6a9('0x52')]*scale+'px';this['scrollerV']['firstChild'][_0xd6a9('0x54')][_0xd6a9('0x53')]=this[_0xd6a9('0x7d')][_0xd6a9('0x60')][_0xd6a9('0x53')]*scale+'px';var vScrollSize=this[_0xd6a9('0x5d')](0x1);var hScrollSize=this[_0xd6a9('0x5d')](0x0);this[_0xd6a9('0x70')][_0xd6a9('0x54')][_0xd6a9('0x52')]=vScrollSize+'px';this[_0xd6a9('0x4f')]['style'][_0xd6a9('0x53')]=hScrollSize+'px';parentDiv['style'][_0xd6a9('0x56')]='auto\x20'+vScrollSize+'px';if(this['tabAlignment']==TabAlignment[_0xd6a9('0x24')])parentDiv['style'][_0xd6a9('0x5a')]=this[_0xd6a9('0x19')]+_0xd6a9('0x59')+hScrollSize+'px';else parentDiv[_0xd6a9('0x54')][_0xd6a9('0x5a')]=_0xd6a9('0x5b')+hScrollSize+'px\x20'+this[_0xd6a9('0x19')]+'px';var bounds=DomUtils[_0xd6a9('0x51')](parentDiv,null,!![]);var h=bounds[_0xd6a9('0x53')];if(h==0x0)h=parentDiv[_0xd6a9('0x80')];if(h==0x0)h=this[_0xd6a9('0x7d')][_0xd6a9('0x60')][_0xd6a9('0x53')]*scale;this[_0xd6a9('0x25')][_0xd6a9('0x52')]=Math['min'](bounds['width']-vScrollSize,this[_0xd6a9('0x7d')][_0xd6a9('0x60')][_0xd6a9('0x52')]*scale);this[_0xd6a9('0x25')][_0xd6a9('0x53')]=Math['min'](h-this[_0xd6a9('0x19')]-hScrollSize,this[_0xd6a9('0x7d')]['bounds'][_0xd6a9('0x53')]*scale);this['scrollerH']['style'][_0xd6a9('0x52')]=bounds[_0xd6a9('0x52')]-vScrollSize+'px';this['scrollerV']['style'][_0xd6a9('0x53')]=h-this['tabsSize']-hScrollSize+'px';}this[_0xd6a9('0x7d')]['invalidRect']=null;this[_0xd6a9('0x7d')][_0xd6a9('0x81')]();this[_0xd6a9('0x3c')]['raiseEvent'](_0x32b474[_0xd6a9('0x82')],EventArgs[_0xd6a9('0x83')]);}[_0xd6a9('0x23')](){this[_0xd6a9('0x15')][_0xd6a9('0xe')][_0xd6a9('0x84')]();this[_0xd6a9('0x2f')][_0xd6a9('0xa')][_0xd6a9('0x2d')]((page,index)=>{var header=new ToolStripItem(ToolStripItemType['Label'],page[_0xd6a9('0xb')]);header[_0xd6a9('0x85')]=page['titleColor'];header[_0xd6a9('0x86')]=page['iconUrl'];this['tabStrip'][_0xd6a9('0xe')][_0xd6a9('0x87')](header);page[_0xd6a9('0x88')]=header;});}[_0xd6a9('0x89')](sender,args){if(!args['item']['enabled'])return;if(args[_0xd6a9('0x8a')][_0xd6a9('0x8b')]==_0xd6a9('0x8c')){var page=new DiagramPage();page[_0xd6a9('0xb')]='diagram'+(++this[_0xd6a9('0xc')])[_0xd6a9('0x8d')]();this[_0xd6a9('0xe')]['add'](page);this[_0xd6a9('0x2a')]=page;return;}if(args[_0xd6a9('0x8a')][_0xd6a9('0x8b')]){if(args[_0xd6a9('0x8a')][_0xd6a9('0x8b')]==_0xd6a9('0x8e'))this[_0xd6a9('0x2a')]=this[_0xd6a9('0xe')][_0xd6a9('0x8f')]();else if(args[_0xd6a9('0x8a')]['dataMfc']==_0xd6a9('0x90'))this[_0xd6a9('0x91')]--;else if(args['item'][_0xd6a9('0x8b')]==_0xd6a9('0x92'))this[_0xd6a9('0x91')]++;else if(args['item']['dataMfc']=='mfc-last')this['selectedPage']=this[_0xd6a9('0xe')]['last']();return;}var item=this[_0xd6a9('0x93')](args[_0xd6a9('0x8a')]);if(item){if(DomUtils[_0xd6a9('0x94')](args[_0xd6a9('0x95')][_0xd6a9('0x96')],_0xd6a9('0x97'))){var ni=this[_0xd6a9('0x91')];if(this['selectedPage']==item){if(item==this[_0xd6a9('0xe')][_0xd6a9('0x8f')]())ni++;}this['items']['remove'](item);this[_0xd6a9('0x91')]=--ni;}else this[_0xd6a9('0x2a')]=item;}}[_0xd6a9('0x21')](sender,args){var index=sender[_0xd6a9('0x98')](args[_0xd6a9('0x8a')])[_0xd6a9('0x99')](args[_0xd6a9('0x8a')]);var item=this[_0xd6a9('0x93')](args[_0xd6a9('0x8a')]);this[_0xd6a9('0xe')][_0xd6a9('0x9a')][_0xd6a9('0x9b')](this['items'][_0xd6a9('0x99')](item),0x1);this[_0xd6a9('0xe')][_0xd6a9('0x9a')][_0xd6a9('0x9b')](index,0x0,item);}['onItemsChanging'](sender,args){if(args[_0xd6a9('0x9c')]==NotifyCollectionChangedAction[_0xd6a9('0x9d')]){var result;for(var i=0x0;i<args[_0xd6a9('0x9e')][_0xd6a9('0x9f')];i++){if(!this['onPageValidateAction'](Events[_0xd6a9('0x2')],args[_0xd6a9('0x9e')][i]))result=!![];}args['cancel']=result;}else{var result;for(var i=0x0;i<args[_0xd6a9('0xa0')][_0xd6a9('0x9f')];i++){if(!this[_0xd6a9('0xa1')](Events[_0xd6a9('0x3')],null,args[_0xd6a9('0xa0')][i]))result=!![];}args[_0xd6a9('0xa2')]=result;}}[_0xd6a9('0xa3')](sender,args){if(args['action']==NotifyCollectionChangedAction[_0xd6a9('0x9d')]){for(var i=0x0;i<args['m_newItems']['length'];i++){this[_0xd6a9('0xa4')](Events[_0xd6a9('0xa5')],new PageEventArgs({'page':args[_0xd6a9('0x9e')][i]}));}}else{for(var i=0x0;i<args[_0xd6a9('0xa0')][_0xd6a9('0x9f')];i++){this[_0xd6a9('0xa4')](Events[_0xd6a9('0x4')],new PageEventArgs({'oldPage':args['m_oldItems'][i]}));}}this[_0xd6a9('0x23')]();this[_0xd6a9('0x15')][_0xd6a9('0xa6')]();}get[_0xd6a9('0x2a')](){return this[_0xd6a9('0xa7')];}set[_0xd6a9('0x2a')](value){if(value){if(this[_0xd6a9('0xa1')](Events[_0xd6a9('0x0')],this[_0xd6a9('0xa7')],value)){var oldPage=this[_0xd6a9('0xa7')];this['_selectedPage']=value;this[_0xd6a9('0xa8')](this[_0xd6a9('0xa7')]);this[_0xd6a9('0xa7')]['repaint']();this[_0xd6a9('0x15')][_0xd6a9('0xa9')](this[_0xd6a9('0xa7')][_0xd6a9('0x88')]);this[_0xd6a9('0xa4')](Events[_0xd6a9('0x1')],new PageEventArgs({'page':this['_selectedPage'],'oldPage':oldPage}));}}}get[_0xd6a9('0x91')](){if(this[_0xd6a9('0xa7')])return this['items'][_0xd6a9('0x99')](this['_selectedPage']);return-0x1;}set[_0xd6a9('0x91')](value){var tab=this['items'][_0xd6a9('0xe')]()[value];if(tab)this[_0xd6a9('0x2a')]=tab;}['getItemByHeader'](header){return this[_0xd6a9('0xe')]['where'](x=>x[_0xd6a9('0x88')]['element']==header['element'])['first']();}get[_0xd6a9('0x2f')](){return this[_0xd6a9('0xd')];}set[_0xd6a9('0x2f')](value){if(this['_document']!=value){if(this['document']!=null)this['_document']['removeEventListener'](_0x32b474[_0xd6a9('0xaa')],this[_0xd6a9('0x31')]);this['_document']=value;this['_document'][_0xd6a9('0x10')](_0x32b474['diagramChanged'],this['dataLoadedDelegate']);this[_0xd6a9('0xa4')](_0x32b474['diagramChanged'],EventArgs[_0xd6a9('0x83')]);}}get[_0xd6a9('0x19')](){if(this[_0xd6a9('0x58')]==TabAlignment['None'])return 0x0;return this[_0xd6a9('0x15')][_0xd6a9('0x53')][_0xd6a9('0xab')];}set[_0xd6a9('0x19')](value){if(this[_0xd6a9('0x15')][_0xd6a9('0x53')]['value']!=value){this[_0xd6a9('0x15')][_0xd6a9('0x53')]=new Unit(value,UnitType[_0xd6a9('0xac')]);this[_0xd6a9('0x75')]();}}get[_0xd6a9('0x58')](){return this['_tabAlignment'];}set[_0xd6a9('0x58')](value){if(this[_0xd6a9('0x13')]!=value){this[_0xd6a9('0x13')]=value;this[_0xd6a9('0x75')]();}}get[_0xd6a9('0xad')](){return this[_0xd6a9('0x15')][_0xd6a9('0xae')];}set['showTabCloseButtons'](value){if(this['tabStrip'][_0xd6a9('0xae')]!=value){this[_0xd6a9('0x15')][_0xd6a9('0xae')]=value;}}get[_0xd6a9('0xaf')](){return this[_0xd6a9('0x15')]['scrollMode']==TabsScrollMode[_0xd6a9('0xb0')];}set[_0xd6a9('0xaf')](value){if(this[_0xd6a9('0x15')][_0xd6a9('0xb1')]==TabsScrollMode[_0xd6a9('0xb0')]!=value){this[_0xd6a9('0x15')][_0xd6a9('0xb1')]=value?TabsScrollMode[_0xd6a9('0xb0')]:TabsScrollMode[_0xd6a9('0x14')];}}get[_0xd6a9('0x18')](){return this[_0xd6a9('0x15')][_0xd6a9('0x18')];}set['showAddButton'](value){if(this[_0xd6a9('0x15')][_0xd6a9('0x18')]!=value){this['tabStrip'][_0xd6a9('0x18')]=value;}}get[_0xd6a9('0xb2')](){return this[_0xd6a9('0x15')]['allowDrag'];}set[_0xd6a9('0xb2')](value){if(this['tabStrip'][_0xd6a9('0xb3')]!=value){this['tabStrip']['allowDrag']=value;}}get[_0xd6a9('0x42')](){return this['_theme'];}set[_0xd6a9('0x42')](value){if(this['_theme']!=value){this[_0xd6a9('0xb4')]=value;if(this[_0xd6a9('0xb4')])this[_0xd6a9('0x15')]['theme']=this[_0xd6a9('0xb4')]['id'];}}['setTheme'](theme,setToPages){this['theme']=theme;if(setToPages){this[_0xd6a9('0xe')]['forEach'](item=>item[_0xd6a9('0x42')]=theme);}}[_0xd6a9('0xb5')](sender,args){this[_0xd6a9('0xe')]=new ObservableCollection(this[_0xd6a9('0x2f')][_0xd6a9('0xa')]);this['items'][_0xd6a9('0xf')][_0xd6a9('0x10')]((sender,args)=>{this['onItemsChanging'](sender,args);});this[_0xd6a9('0xe')]['collectionChanged'][_0xd6a9('0x10')]((sender,args)=>{this[_0xd6a9('0xa3')](sender,args);});this[_0xd6a9('0x23')]();this[_0xd6a9('0x15')][_0xd6a9('0xa6')]();this[_0xd6a9('0x2a')]=this[_0xd6a9('0xe')][_0xd6a9('0x2b')]();this[_0xd6a9('0xc')]=this[_0xd6a9('0xe')][_0xd6a9('0xb6')]();}[_0xd6a9('0xa1')](event,page,oldPage){var args=new PageEventArgs({'page':page,'oldPage':oldPage});this['raiseEvent'](event,args);if(args[_0xd6a9('0xa2')])return![];return!![];}static[_0xd6a9('0xb7')](element,document){return Control[_0xd6a9('0xb8')](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 _0x12c9=['object','undefined','function','MindFusion','Diagramming','Controls','Common','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','length','enumerable','configurable','defineProperty','key','prototype','Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function','getPrototypeOf','__proto__','setPrototypeOf','construct','sham','call','constructor','apply','hasOwnProperty','get','value','pageChanging','pageChanged','pageAdding','pageAdded','pageRemoving','pageRemoved','sender','page','_page','oldPage','_oldPage','DiagramPage','title','diagram1','addPage','document','_lastIndex','_document','items','onItemsChanging','collectionChanged','addEventListener','onItemsChanged','_tabAlignment','TabStrip','tabStrip','parent','req','visible','showAddButton','tabsSize','showTabCloseButtons','showNavigationButtons','initialize','_tabMouseDownHandler','onTabMouseDown','itemMouseDown','closeButtonClick','navButtonClick','_tabDropHandler','itemDrop','resetTabs','Top','element','parentNode','insertBefore','draw','appendChild','last','dispose','forEach','attachDiagramEvents','Events','dataLoadedDelegate','queryViewDelegate','detachDiagramEvents','removeEventListener','queryView','saveToXml','open','POST','Content-Type','XmlPersistContext','diagram','selectSingleNode','DiagramDocument','createElement','saveView','serializeToString','theme','Theme','onload','responseXML','fromXmlDocument','loadView','View','bind','onerror','log','Error\x20while\x20getting\x20XML.','send','resetVirtualScrollGrid','scrollerH','Control','clearHandlers','DomUtils','getBounds','height','_mf_originalHeight','parentSize','display','grid','style','auto\x20','scrollbarSize','tabAlignment','gridTemplateRows','px\x20auto\x20','px\x20','gridRow','width','min','getScrollbarSize','bounds','_element','1\x20/\x20-1','mf_diagram_scrollerH','gridColumnStart','gridColumnEnd','auto','backgroundColor','#eee','div','className','gridRowStart','overflowX','overflowY','scrollerV','addHandlers','scrollDelegate','resizeTimeoutId','onVirtualResize','resetTabAlignment','None','querySelector','.mf_diagram_scrollerV','updateCanvasSize','_zoomFactor','GraphicsUnit','getPixel','canvas','measureUnit','firstChild','gridTemplateColumns','invalidRect','raiseEvent','sizeChanged','EventArgs','Empty','clear','pages','ToolStripItem','ToolStripItemType','titleColor','imageSrc','iconUrl','add','header','dataMfc','selectedPage','item','mfc-next','mfc-last','getItemByHeader','hasCssClass','rawEventArgs','target','mfc-tabbutton-close','selectedIndex','first','remove','getGroupItems','indexOfItem','_items','splice','action','NotifyCollectionChangedAction','Add','cancel','m_oldItems','onPageValidateAction','m_newItems','resetButtons','_selectedPage','setDiagram','repaint','selectItem','where','diagramChanged','UnitType','showCloseButtons','scrollMode','TabsScrollMode','NavButtons','allowReorder','allowDrag','_theme','setTheme','onDataLoaded','collectionChanging','create','createControl','DiagramView','PageEventArgs','TabAlignment','__esModule'];var _0x3c4c=function(_0x335b5f,_0x50f19d){_0x335b5f=_0x335b5f-0x0;var _0x1a9b32=_0x12c9[_0x335b5f];return _0x1a9b32;};(function(_0x5d0b55,_0x1c1a2b){typeof exports===_0x3c4c('0x0')&&typeof module!==_0x3c4c('0x1')?_0x1c1a2b(exports,require('@mindfusion/controls'),require('@mindfusion/diagramming'),require('@mindfusion/common'),require('@mindfusion/common-ui'),require('@mindfusion/common-collections'),require('@mindfusion/drawing')):typeof define===_0x3c4c('0x2')&&define['amd']?define(['exports','@mindfusion/controls','@mindfusion/diagramming','@mindfusion/common','@mindfusion/common-ui','@mindfusion/common-collections','@mindfusion/drawing'],_0x1c1a2b):(_0x5d0b55=typeof globalThis!==_0x3c4c('0x1')?globalThis:_0x5d0b55||self,_0x1c1a2b((_0x5d0b55[_0x3c4c('0x3')]=_0x5d0b55[_0x3c4c('0x3')]||{},_0x5d0b55[_0x3c4c('0x3')][_0x3c4c('0x4')]=_0x5d0b55[_0x3c4c('0x3')][_0x3c4c('0x4')]||{},_0x5d0b55[_0x3c4c('0x3')][_0x3c4c('0x4')]['Controls']={}),_0x5d0b55['MindFusion'][_0x3c4c('0x5')],_0x5d0b55['MindFusion']['Diagramming'],_0x5d0b55['MindFusion'][_0x3c4c('0x6')],_0x5d0b55[_0x3c4c('0x3')][_0x3c4c('0x6')]['UI'],_0x5d0b55[_0x3c4c('0x3')][_0x3c4c('0x6')]['Collections'],_0x5d0b55[_0x3c4c('0x3')]['Drawing']));}(this,function(_0x999116,_0x4ef43c,_0x8c8a6c,_0x531ec6,_0x1a3edd,_0x5e6656,_0x3cf26a){'use strict';var _0x1894d7={'None':0x0,'Top':0x1,'Bottom':0x3};function _0xec753b(_0x2cdbd3,_0x14a398){if(!(_0x2cdbd3 instanceof _0x14a398)){throw new TypeError(_0x3c4c('0x7'));}}function _0x49e381(_0xc41440,_0x244092){for(var _0x24c1f6=0x0;_0x24c1f6<_0x244092[_0x3c4c('0x8')];_0x24c1f6++){var _0x182a97=_0x244092[_0x24c1f6];_0x182a97[_0x3c4c('0x9')]=_0x182a97[_0x3c4c('0x9')]||![];_0x182a97[_0x3c4c('0xa')]=!![];if('value'in _0x182a97)_0x182a97['writable']=!![];Object[_0x3c4c('0xb')](_0xc41440,_0x182a97[_0x3c4c('0xc')],_0x182a97);}}function _0x25006c(_0x2980a5,_0x45de28,_0x486eef){if(_0x45de28)_0x49e381(_0x2980a5[_0x3c4c('0xd')],_0x45de28);if(_0x486eef)_0x49e381(_0x2980a5,_0x486eef);return _0x2980a5;}function _0x3a0b6a(_0x44ae7a,_0x563e03){if(typeof _0x563e03!=='function'&&_0x563e03!==null){throw new TypeError(_0x3c4c('0xe'));}_0x44ae7a[_0x3c4c('0xd')]=Object['create'](_0x563e03&&_0x563e03[_0x3c4c('0xd')],{'constructor':{'value':_0x44ae7a,'writable':!![],'configurable':!![]}});if(_0x563e03)_0x42ff9d(_0x44ae7a,_0x563e03);}function _0x5c2742(_0x2898b0){_0x5c2742=Object['setPrototypeOf']?Object[_0x3c4c('0xf')]:function _0x5c2742(_0x2898b0){return _0x2898b0[_0x3c4c('0x10')]||Object[_0x3c4c('0xf')](_0x2898b0);};return _0x5c2742(_0x2898b0);}function _0x42ff9d(_0x1bb20c,_0xdc7061){_0x42ff9d=Object[_0x3c4c('0x11')]||function _0x42ff9d(_0x1bb20c,_0xdc7061){_0x1bb20c[_0x3c4c('0x10')]=_0xdc7061;return _0x1bb20c;};return _0x42ff9d(_0x1bb20c,_0xdc7061);}function _0x5eec44(){if(typeof Reflect===_0x3c4c('0x1')||!Reflect[_0x3c4c('0x12')])return![];if(Reflect[_0x3c4c('0x12')][_0x3c4c('0x13')])return![];if(typeof Proxy===_0x3c4c('0x2'))return!![];try{Boolean[_0x3c4c('0xd')]['valueOf'][_0x3c4c('0x14')](Reflect['construct'](Boolean,[],function(){}));return!![];}catch(_0x9c8bb1){return![];}}function _0x5419bc(_0xdc1973){if(_0xdc1973===void 0x0){throw new ReferenceError('this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called');}return _0xdc1973;}function _0x27806e(_0x28591b,_0x19aa09){if(_0x19aa09&&(typeof _0x19aa09==='object'||typeof _0x19aa09===_0x3c4c('0x2'))){return _0x19aa09;}return _0x5419bc(_0x28591b);}function _0x58ea94(_0x1ba5fa){var _0x26a78e=_0x5eec44();return function _createSuperInternal(){var _0x543197=_0x5c2742(_0x1ba5fa),_0x2521b6;if(_0x26a78e){var _0xb48d0d=_0x5c2742(this)[_0x3c4c('0x15')];_0x2521b6=Reflect[_0x3c4c('0x12')](_0x543197,arguments,_0xb48d0d);}else{_0x2521b6=_0x543197[_0x3c4c('0x16')](this,arguments);}return _0x27806e(this,_0x2521b6);};}function _0x5de723(_0x5b2e55,_0x52f5ad){while(!Object[_0x3c4c('0xd')][_0x3c4c('0x17')][_0x3c4c('0x14')](_0x5b2e55,_0x52f5ad)){_0x5b2e55=_0x5c2742(_0x5b2e55);if(_0x5b2e55===null)break;}return _0x5b2e55;}function _0x3891c7(_0x316885,_0x45b346,_0x3f7797){if(typeof Reflect!==_0x3c4c('0x1')&&Reflect[_0x3c4c('0x18')]){_0x3891c7=Reflect[_0x3c4c('0x18')];}else{_0x3891c7=function _0x3891c7(_0x316885,_0x45b346,_0x3f7797){var _0x385bff=_0x5de723(_0x316885,_0x45b346);if(!_0x385bff)return;var _0x3d0f9a=Object['getOwnPropertyDescriptor'](_0x385bff,_0x45b346);if(_0x3d0f9a[_0x3c4c('0x18')]){return _0x3d0f9a[_0x3c4c('0x18')][_0x3c4c('0x14')](_0x3f7797);}return _0x3d0f9a[_0x3c4c('0x19')];};}return _0x3891c7(_0x316885,_0x45b346,_0x3f7797||_0x316885);}var _0x5c7fa0=function(){function _0x5c7fa0(){_0xec753b(this,_0x5c7fa0);}_0x25006c(_0x5c7fa0,null,[{'key':_0x3c4c('0x1a'),'get':function get(){return _0x3c4c('0x1a');}},{'key':_0x3c4c('0x1b'),'get':function get(){return _0x3c4c('0x1b');}},{'key':_0x3c4c('0x1c'),'get':function get(){return'pageAdding';}},{'key':'pageAdded','get':function get(){return _0x3c4c('0x1d');}},{'key':_0x3c4c('0x1e'),'get':function get(){return _0x3c4c('0x1e');}},{'key':_0x3c4c('0x1f'),'get':function get(){return'pageRemoved';}}]);return _0x5c7fa0;}();var _0x53e4e4=function(_0x125f20){_0x3a0b6a(_0x53e4e4,_0x125f20);var _0x45b977=_0x58ea94(_0x53e4e4);function _0x53e4e4(_0x5945eb){var _0x3482e8;_0xec753b(this,_0x53e4e4);_0x3482e8=_0x45b977[_0x3c4c('0x14')](this);if(_0x5945eb['sender'])_0x3482e8[_0x3c4c('0x20')]=_0x5945eb[_0x3c4c('0x20')];if(_0x5945eb[_0x3c4c('0x21')])_0x3482e8[_0x3c4c('0x22')]=_0x5945eb['page'];if(_0x5945eb[_0x3c4c('0x23')])_0x3482e8['_oldPage']=_0x5945eb['oldPage'];return _0x3482e8;}_0x25006c(_0x53e4e4,[{'key':_0x3c4c('0x21'),'get':function get(){return this[_0x3c4c('0x22')];}},{'key':'oldPage','get':function get(){return this[_0x3c4c('0x24')];}}]);return _0x53e4e4;}(_0x4ef43c['CancelEventArgs']);var _0x1839ab=function(_0x54d94f){_0x3a0b6a(_0x1839ab,_0x54d94f);var _0x1d11ee=_0x58ea94(_0x1839ab);function _0x1839ab(_0x53f2c7,_0x15de53){var _0x149a98;_0xec753b(this,_0x1839ab);var _0x464040=_0x15de53||new _0x8c8a6c['DiagramDocument']();if(!_0x464040['pages']['length']){var _0x1c1921=new _0x8c8a6c[(_0x3c4c('0x25'))]();_0x1c1921[_0x3c4c('0x26')]=_0x3c4c('0x27');_0x464040[_0x3c4c('0x28')](_0x1c1921);}_0x149a98=_0x1d11ee[_0x3c4c('0x14')](this,_0x53f2c7,_0x464040['pages'][0x0]);_0x149a98[_0x3c4c('0x29')]=_0x464040;_0x149a98[_0x3c4c('0x2a')]=0x1;_0x149a98['items']=new _0x5e6656['ObservableCollection'](_0x149a98[_0x3c4c('0x2b')]['pages']);_0x149a98[_0x3c4c('0x2c')]['collectionChanging']['addEventListener'](function(_0x4310f8,_0x4dcd5a){_0x149a98[_0x3c4c('0x2d')](_0x4310f8,_0x4dcd5a);});_0x149a98[_0x3c4c('0x2c')][_0x3c4c('0x2e')][_0x3c4c('0x2f')](function(_0xb8659,_0x24f1a3){_0x149a98[_0x3c4c('0x30')](_0xb8659,_0x24f1a3);});_0x149a98[_0x3c4c('0x31')]=_0x1894d7['None'];_0x149a98['tabStrip']=new _0x1a3edd[(_0x3c4c('0x32'))]();_0x149a98[_0x3c4c('0x33')][_0x3c4c('0x34')]=_0x5419bc(_0x149a98);_0x149a98[_0x3c4c('0x33')][_0x3c4c('0x35')]=function(){return!![];};_0x149a98['tabStrip'][_0x3c4c('0x36')]=![];_0x149a98[_0x3c4c('0x33')]['autoSizeTabs']=![];_0x149a98[_0x3c4c('0x33')][_0x3c4c('0x37')]=![];_0x149a98[_0x3c4c('0x38')]=0x14;_0x149a98[_0x3c4c('0x39')]=![];_0x149a98[_0x3c4c('0x3a')]=![];return _0x149a98;}_0x25006c(_0x1839ab,[{'key':_0x3c4c('0x3b'),'value':function initialize(){var _0x382aae=this;_0x3891c7(_0x5c2742(_0x1839ab[_0x3c4c('0xd')]),_0x3c4c('0x3b'),this)[_0x3c4c('0x14')](this);this[_0x3c4c('0x3c')]=function(_0x36e118,_0x161cb3){_0x382aae[_0x3c4c('0x3d')](_0x36e118,_0x161cb3);};this[_0x3c4c('0x33')][_0x3c4c('0x3e')][_0x3c4c('0x2f')](this[_0x3c4c('0x3c')]);this[_0x3c4c('0x33')][_0x3c4c('0x3f')]['addEventListener'](this[_0x3c4c('0x3c')]);this[_0x3c4c('0x33')]['addButtonClick'][_0x3c4c('0x2f')](this['_tabMouseDownHandler']);this[_0x3c4c('0x33')][_0x3c4c('0x40')]['addEventListener'](this[_0x3c4c('0x3c')]);this[_0x3c4c('0x41')]=function(_0x3ce7c5,_0x24040f){_0x382aae['onTabDrop'](_0x3ce7c5,_0x24040f);};this[_0x3c4c('0x33')][_0x3c4c('0x42')][_0x3c4c('0x2f')](this[_0x3c4c('0x41')]);this[_0x3c4c('0x43')]();if(this['tabAlignment']==_0x1894d7[_0x3c4c('0x44')])this[_0x3c4c('0x45')][_0x3c4c('0x46')][_0x3c4c('0x47')](this[_0x3c4c('0x33')][_0x3c4c('0x48')](),this[_0x3c4c('0x45')]);else this[_0x3c4c('0x45')][_0x3c4c('0x46')][_0x3c4c('0x49')](this['tabStrip'][_0x3c4c('0x48')]());this[_0x3c4c('0x33')]['attach']();this['selectedPage']=this['items'][_0x3c4c('0x4a')]();}},{'key':_0x3c4c('0x4b'),'value':function dispose(){this[_0x3c4c('0x2c')][_0x3c4c('0x4c')](function(_0x10ed10){return _0x10ed10[_0x3c4c('0x4b')]();});this['tabStrip'][_0x3c4c('0x4b')]();_0x3891c7(_0x5c2742(_0x1839ab[_0x3c4c('0xd')]),_0x3c4c('0x4b'),this)[_0x3c4c('0x14')](this);}},{'key':_0x3c4c('0x4d'),'value':function attachDiagramEvents(){this[_0x3c4c('0x29')]['addEventListener'](_0x8c8a6c[_0x3c4c('0x4e')]['dataLoaded'],this[_0x3c4c('0x4f')]);this['document'][_0x3c4c('0x2f')](_0x8c8a6c[_0x3c4c('0x4e')]['queryView'],this[_0x3c4c('0x50')]);}},{'key':_0x3c4c('0x51'),'value':function detachDiagramEvents(){this[_0x3c4c('0x29')][_0x3c4c('0x52')](_0x8c8a6c[_0x3c4c('0x4e')]['dataLoaded'],this[_0x3c4c('0x4f')]);this[_0x3c4c('0x29')][_0x3c4c('0x52')](_0x8c8a6c[_0x3c4c('0x4e')][_0x3c4c('0x53')],this[_0x3c4c('0x50')]);}},{'key':_0x3c4c('0x54'),'value':function saveToXml(_0x43c4eb){var _0x28b2c3=new XMLHttpRequest();_0x28b2c3[_0x3c4c('0x55')](_0x3c4c('0x56'),_0x43c4eb,!![]);_0x28b2c3['setRequestHeader'](_0x3c4c('0x57'),'text/xml');var _0xa2e219=this['document']['toXmlDocument']();var _0x51457d=new _0x8c8a6c[(_0x3c4c('0x58'))](this[_0x3c4c('0x59')],_0xa2e219);var _0x2096d0=_0x51457d[_0x3c4c('0x5a')](_0x3c4c('0x5b'),_0xa2e219);var _0x50ae1a=_0xa2e219[_0x3c4c('0x5c')]('View');_0x2096d0[_0x3c4c('0x49')](_0x50ae1a);this[_0x3c4c('0x5d')](_0x50ae1a,_0x51457d);var _0x12e218=new XMLSerializer();_0x28b2c3['send'](_0x12e218[_0x3c4c('0x5e')](_0xa2e219));}},{'key':_0x3c4c('0x5d'),'value':function saveView(_0x1a9ee1,_0x3351dc){_0x3891c7(_0x5c2742(_0x1839ab[_0x3c4c('0xd')]),_0x3c4c('0x5d'),this)[_0x3c4c('0x14')](this,_0x1a9ee1,_0x3351dc);if(this['theme'])_0x3351dc['writeString'](this[_0x3c4c('0x5f')]['id'],_0x3c4c('0x60'),_0x1a9ee1);}},{'key':'loadFromXml','value':function loadFromXml(_0x173c17,_0x11e378,_0x49e1e5){var _0x540e16=this['document'];var _0x587cf2=new XMLHttpRequest();_0x587cf2[_0x3c4c('0x61')]=function(){var _0x4f50a6=_0x587cf2[_0x3c4c('0x62')];_0x540e16[_0x3c4c('0x63')](_0x4f50a6);var _0x2a3f5e=new _0x8c8a6c['XmlPersistContext'](_0x540e16,_0x4f50a6);var _0x3e3fe6=_0x2a3f5e['selectSingleNode']('DiagramDocument',_0x4f50a6);this[_0x3c4c('0x64')](_0x3c4c('0x65'),_0x3e3fe6,_0x2a3f5e);if(_0x11e378)_0x11e378(_0x540e16);}[_0x3c4c('0x66')](this);_0x587cf2[_0x3c4c('0x67')]=function(){console[_0x3c4c('0x68')](_0x3c4c('0x69'));if(_0x49e1e5)_0x49e1e5(_0x540e16);};_0x587cf2[_0x3c4c('0x55')]('GET',_0x173c17);_0x587cf2['responseType']=_0x3c4c('0x29');_0x587cf2[_0x3c4c('0x6a')]();}},{'key':_0x3c4c('0x64'),'value':function loadView(_0x139c15,_0x551f62,_0x5aecbd){var _0x47ce3a=_0x3891c7(_0x5c2742(_0x1839ab[_0x3c4c('0xd')]),_0x3c4c('0x64'),this)[_0x3c4c('0x14')](this,_0x139c15,_0x551f62,_0x5aecbd);if(!_0x47ce3a)return;var _0x3165dc=_0x5aecbd['readString'](_0x3c4c('0x60'),_0x47ce3a);if(_0x3165dc)this[_0x3c4c('0x5f')]=_0x8c8a6c['Theme']['fromId'](_0x3165dc);}},{'key':_0x3c4c('0x6b'),'value':function resetVirtualScrollGrid(){var _0x3d365a=this[_0x3c4c('0x45')];if(!_0x3d365a['parentNode'])return;if(!this[_0x3c4c('0x6c')]){_0x4ef43c[_0x3c4c('0x6d')][_0x3c4c('0x6e')](_0x3d365a[_0x3c4c('0x46')]);var _0x4532aa=_0x4ef43c[_0x3c4c('0x6f')][_0x3c4c('0x70')](_0x3d365a['parentNode'],null,!![]);var _0x361fa7=_0x4532aa['width'];var _0x169f9c=_0x4532aa[_0x3c4c('0x71')];if(_0x169f9c!=0x0)_0x3d365a[_0x3c4c('0x46')][_0x3c4c('0x72')]=_0x169f9c;this[_0x3c4c('0x73')]={'width':_0x361fa7,'height':_0x169f9c};_0x3d365a[_0x3c4c('0x46')]['style'][_0x3c4c('0x74')]=_0x3c4c('0x75');_0x3d365a[_0x3c4c('0x46')][_0x3c4c('0x76')]['gridTemplateColumns']=_0x3c4c('0x77')+this[_0x3c4c('0x78')]+'px';if(this[_0x3c4c('0x79')]==_0x1894d7[_0x3c4c('0x44')])_0x3d365a[_0x3c4c('0x46')][_0x3c4c('0x76')][_0x3c4c('0x7a')]=this['tabsSize']+_0x3c4c('0x7b')+this['scrollbarSize']+'px';else _0x3d365a[_0x3c4c('0x46')]['style'][_0x3c4c('0x7a')]=_0x3c4c('0x77')+this['scrollbarSize']+_0x3c4c('0x7c')+this[_0x3c4c('0x38')]+'px';_0x3d365a[_0x3c4c('0x46')]['style']['overflow']='';_0x3d365a['style'][_0x3c4c('0x7d')]=this[_0x3c4c('0x79')]==_0x1894d7['Top']?0x2:0x1;_0x3d365a[_0x3c4c('0x7e')]=Math[_0x3c4c('0x7f')](_0x4532aa['width']-this[_0x3c4c('0x80')](0x1),this[_0x3c4c('0x59')][_0x3c4c('0x81')]['width']*this['scale']);_0x3d365a[_0x3c4c('0x71')]=Math[_0x3c4c('0x7f')](_0x169f9c-this[_0x3c4c('0x38')]-this[_0x3c4c('0x80')](0x0),this['diagram'][_0x3c4c('0x81')][_0x3c4c('0x71')]*this['scale']);this[_0x3c4c('0x33')][_0x3c4c('0x82')]['style'][_0x3c4c('0x74')]='inline-block';this['tabStrip'][_0x3c4c('0x82')][_0x3c4c('0x76')]['gridColumn']=_0x3c4c('0x83');var _0x25943=document[_0x3c4c('0x5c')]('div');_0x25943['className']=_0x3c4c('0x84');_0x25943['style'][_0x3c4c('0x7d')]=this[_0x3c4c('0x79')]==_0x1894d7[_0x3c4c('0x44')]?0x3:0x2;_0x25943[_0x3c4c('0x76')][_0x3c4c('0x85')]=0x1;_0x25943[_0x3c4c('0x76')][_0x3c4c('0x86')]=0x2;_0x25943[_0x3c4c('0x76')]['height']=this[_0x3c4c('0x78')]+'px';_0x25943[_0x3c4c('0x76')]['width']=_0x4532aa['width']-this[_0x3c4c('0x78')]+'px';_0x25943[_0x3c4c('0x76')]['overflowX']=_0x3c4c('0x87');_0x25943['style']['overflowY']='hidden';_0x25943[_0x3c4c('0x76')][_0x3c4c('0x88')]=_0x3c4c('0x89');this[_0x3c4c('0x6c')]=_0x25943;var _0x3f58a4=document['createElement'](_0x3c4c('0x8a'));_0x3f58a4[_0x3c4c('0x76')]['height']=this[_0x3c4c('0x78')]+'px';_0x25943[_0x3c4c('0x49')](_0x3f58a4);_0x3d365a[_0x3c4c('0x46')]['appendChild'](_0x25943);var _0x21862e=document[_0x3c4c('0x5c')]('div');_0x21862e[_0x3c4c('0x8b')]='mf_diagram_scrollerV';_0x21862e[_0x3c4c('0x76')][_0x3c4c('0x8c')]=this[_0x3c4c('0x79')]==_0x1894d7[_0x3c4c('0x44')]?0x2:0x1;_0x21862e[_0x3c4c('0x76')][_0x3c4c('0x7e')]=this[_0x3c4c('0x78')]+'px';_0x21862e[_0x3c4c('0x76')][_0x3c4c('0x71')]=_0x4532aa[_0x3c4c('0x71')]-this[_0x3c4c('0x38')]-this[_0x3c4c('0x78')]+'px';_0x21862e[_0x3c4c('0x76')][_0x3c4c('0x8d')]='hidden';_0x21862e['style'][_0x3c4c('0x8e')]=_0x3c4c('0x87');_0x21862e[_0x3c4c('0x76')][_0x3c4c('0x88')]=_0x3c4c('0x89');this[_0x3c4c('0x8f')]=_0x21862e;var _0x3f9840=document[_0x3c4c('0x5c')](_0x3c4c('0x8a'));_0x3f9840[_0x3c4c('0x76')]['width']=this['scrollbarSize']+'px';_0x21862e['appendChild'](_0x3f9840);_0x3d365a['parentNode'][_0x3c4c('0x49')](_0x21862e);_0x4ef43c[_0x3c4c('0x6d')][_0x3c4c('0x90')](_0x25943,{'scroll':this[_0x3c4c('0x91')]});_0x4ef43c[_0x3c4c('0x6d')][_0x3c4c('0x90')](_0x21862e,{'scroll':this[_0x3c4c('0x91')]});if(!this[_0x3c4c('0x92')]){var _0x27499e=this;this['resizeTimeoutId']=setInterval(function(){_0x27499e[_0x3c4c('0x93')]();},0xc8);}}}},{'key':_0x3c4c('0x94'),'value':function resetTabAlignment(){this[_0x3c4c('0x33')][_0x3c4c('0x36')]=this[_0x3c4c('0x79')]!=_0x1894d7[_0x3c4c('0x95')];var _0x540074=this[_0x3c4c('0x45')];if(this[_0x3c4c('0x79')]==_0x1894d7[_0x3c4c('0x44')])_0x540074[_0x3c4c('0x46')][_0x3c4c('0x76')][_0x3c4c('0x7a')]=this[_0x3c4c('0x38')]+_0x3c4c('0x7b')+this[_0x3c4c('0x78')]+'px';else _0x540074[_0x3c4c('0x46')]['style'][_0x3c4c('0x7a')]=_0x3c4c('0x77')+this[_0x3c4c('0x78')]+'px\x20'+this[_0x3c4c('0x38')]+'px';_0x540074['style'][_0x3c4c('0x7d')]=this['tabAlignment']==_0x1894d7[_0x3c4c('0x44')]?0x2:0x1;var _0x2829f7=this[_0x3c4c('0x45')][_0x3c4c('0x46')][_0x3c4c('0x96')]('.mf_diagram_scrollerH');if(this[_0x3c4c('0x6c')]){_0x2829f7[_0x3c4c('0x76')][_0x3c4c('0x7d')]=this[_0x3c4c('0x79')]==_0x1894d7['Top']?0x3:0x2;var _0x319775=this[_0x3c4c('0x45')][_0x3c4c('0x46')]['querySelector'](_0x3c4c('0x97'));_0x319775[_0x3c4c('0x76')]['gridRowStart']=this[_0x3c4c('0x79')]==_0x1894d7[_0x3c4c('0x44')]?0x2:0x1;}this['updateCanvasSize']();}},{'key':_0x3c4c('0x98'),'value':function updateCanvasSize(){if(!this[_0x3c4c('0x45')])return;var _0x522ce7=this[_0x3c4c('0x99')]/0x64/_0x3cf26a[_0x3c4c('0x9a')][_0x3c4c('0x9b')](this[_0x3c4c('0x9c')][_0x3c4c('0x9d')]);if(this['scrollerH']){var _0x2c9e25=this[_0x3c4c('0x45')]['parentNode'];this[_0x3c4c('0x6c')][_0x3c4c('0x9e')][_0x3c4c('0x76')][_0x3c4c('0x7e')]=this[_0x3c4c('0x9c')]['bounds'][_0x3c4c('0x7e')]*_0x522ce7+'px';this['scrollerV'][_0x3c4c('0x9e')][_0x3c4c('0x76')][_0x3c4c('0x71')]=this[_0x3c4c('0x9c')][_0x3c4c('0x81')]['height']*_0x522ce7+'px';var _0x5198f5=this[_0x3c4c('0x80')](0x1);var _0x290888=this[_0x3c4c('0x80')](0x0);this[_0x3c4c('0x8f')][_0x3c4c('0x76')][_0x3c4c('0x7e')]=_0x5198f5+'px';this[_0x3c4c('0x6c')][_0x3c4c('0x76')]['height']=_0x290888+'px';_0x2c9e25[_0x3c4c('0x76')][_0x3c4c('0x9f')]=_0x3c4c('0x77')+_0x5198f5+'px';if(this[_0x3c4c('0x79')]==_0x1894d7[_0x3c4c('0x44')])_0x2c9e25[_0x3c4c('0x76')][_0x3c4c('0x7a')]=this[_0x3c4c('0x38')]+'px\x20auto\x20'+_0x290888+'px';else _0x2c9e25[_0x3c4c('0x76')][_0x3c4c('0x7a')]=_0x3c4c('0x77')+_0x290888+_0x3c4c('0x7c')+this[_0x3c4c('0x38')]+'px';var _0x2cda7c=_0x4ef43c['DomUtils'][_0x3c4c('0x70')](_0x2c9e25,null,!![]);var _0x30202a=_0x2cda7c[_0x3c4c('0x71')];if(_0x30202a==0x0)_0x30202a=_0x2c9e25[_0x3c4c('0x72')];if(_0x30202a==0x0)_0x30202a=this[_0x3c4c('0x9c')][_0x3c4c('0x81')][_0x3c4c('0x71')]*_0x522ce7;this[_0x3c4c('0x45')]['width']=Math[_0x3c4c('0x7f')](_0x2cda7c[_0x3c4c('0x7e')]-_0x5198f5,this['canvas']['bounds']['width']*_0x522ce7);this[_0x3c4c('0x45')][_0x3c4c('0x71')]=Math['min'](_0x30202a-this['tabsSize']-_0x290888,this['canvas']['bounds']['height']*_0x522ce7);this[_0x3c4c('0x6c')][_0x3c4c('0x76')][_0x3c4c('0x7e')]=_0x2cda7c[_0x3c4c('0x7e')]-_0x5198f5+'px';this[_0x3c4c('0x8f')]['style']['height']=_0x30202a-this['tabsSize']-_0x290888+'px';}this['canvas'][_0x3c4c('0xa0')]=null;this[_0x3c4c('0x9c')]['repaint']();this[_0x3c4c('0x59')][_0x3c4c('0xa1')](_0x8c8a6c[_0x3c4c('0x4e')][_0x3c4c('0xa2')],_0x4ef43c[_0x3c4c('0xa3')][_0x3c4c('0xa4')]);}},{'key':'resetTabs','value':function resetTabs(){var _0x56d557=this;this[_0x3c4c('0x33')][_0x3c4c('0x2c')][_0x3c4c('0xa5')]();this[_0x3c4c('0x29')][_0x3c4c('0xa6')][_0x3c4c('0x4c')](function(_0x4e0803,_0xdce86b){var _0x260df3=new _0x1a3edd[(_0x3c4c('0xa7'))](_0x1a3edd[_0x3c4c('0xa8')]['Label'],_0x4e0803[_0x3c4c('0x26')]);_0x260df3[_0x3c4c('0xa9')]=_0x4e0803[_0x3c4c('0xa9')];_0x260df3[_0x3c4c('0xaa')]=_0x4e0803[_0x3c4c('0xab')];_0x56d557['tabStrip'][_0x3c4c('0x2c')][_0x3c4c('0xac')](_0x260df3);_0x4e0803[_0x3c4c('0xad')]=_0x260df3;});}},{'key':_0x3c4c('0x3d'),'value':function onTabMouseDown(_0x5aa722,_0x125b55){if(!_0x125b55['item']['enabled'])return;if(_0x125b55['item'][_0x3c4c('0xae')]=='mfc-add'){var _0x304c70=new _0x8c8a6c[(_0x3c4c('0x25'))]();_0x304c70[_0x3c4c('0x26')]=_0x3c4c('0x59')+(++this[_0x3c4c('0x2a')])['toString']();this[_0x3c4c('0x2c')][_0x3c4c('0xac')](_0x304c70);this[_0x3c4c('0xaf')]=_0x304c70;return;}if(_0x125b55[_0x3c4c('0xb0')]['dataMfc']){if(_0x125b55[_0x3c4c('0xb0')][_0x3c4c('0xae')]=='mfc-first')this[_0x3c4c('0xaf')]=this['items']['first']();else if(_0x125b55['item'][_0x3c4c('0xae')]=='mfc-prev')this['selectedIndex']--;else if(_0x125b55['item'][_0x3c4c('0xae')]==_0x3c4c('0xb1'))this['selectedIndex']++;else if(_0x125b55['item'][_0x3c4c('0xae')]==_0x3c4c('0xb2'))this['selectedPage']=this['items'][_0x3c4c('0x4a')]();return;}var _0x3636eb=this[_0x3c4c('0xb3')](_0x125b55[_0x3c4c('0xb0')]);if(_0x3636eb){if(_0x4ef43c['DomUtils'][_0x3c4c('0xb4')](_0x125b55[_0x3c4c('0xb5')][_0x3c4c('0xb6')],_0x3c4c('0xb7'))){var _0x8aa7f2=this[_0x3c4c('0xb8')];if(this[_0x3c4c('0xaf')]==_0x3636eb){if(_0x3636eb==this[_0x3c4c('0x2c')][_0x3c4c('0xb9')]())_0x8aa7f2++;}this[_0x3c4c('0x2c')][_0x3c4c('0xba')](_0x3636eb);this[_0x3c4c('0xb8')]=--_0x8aa7f2;}else this['selectedPage']=_0x3636eb;}}},{'key':'onTabDrop','value':function onTabDrop(_0x22763e,_0x39bf5c){var _0x4c4f54=_0x22763e[_0x3c4c('0xbb')](_0x39bf5c[_0x3c4c('0xb0')])[_0x3c4c('0xbc')](_0x39bf5c[_0x3c4c('0xb0')]);var _0x51f3bf=this[_0x3c4c('0xb3')](_0x39bf5c[_0x3c4c('0xb0')]);this['items'][_0x3c4c('0xbd')][_0x3c4c('0xbe')](this[_0x3c4c('0x2c')]['indexOfItem'](_0x51f3bf),0x1);this['items'][_0x3c4c('0xbd')][_0x3c4c('0xbe')](_0x4c4f54,0x0,_0x51f3bf);}},{'key':_0x3c4c('0x2d'),'value':function onItemsChanging(_0xb73cb9,_0x4d1aa0){if(_0x4d1aa0[_0x3c4c('0xbf')]==_0x531ec6[_0x3c4c('0xc0')][_0x3c4c('0xc1')]){var _0x1d501c;for(var _0x39699d=0x0;_0x39699d<_0x4d1aa0['m_newItems'][_0x3c4c('0x8')];_0x39699d++){if(!this['onPageValidateAction'](_0x5c7fa0[_0x3c4c('0x1c')],_0x4d1aa0['m_newItems'][_0x39699d]))_0x1d501c=!![];}_0x4d1aa0[_0x3c4c('0xc2')]=_0x1d501c;}else{var _0x1d501c;for(var _0x39699d=0x0;_0x39699d<_0x4d1aa0[_0x3c4c('0xc3')][_0x3c4c('0x8')];_0x39699d++){if(!this[_0x3c4c('0xc4')](_0x5c7fa0[_0x3c4c('0x1e')],null,_0x4d1aa0[_0x3c4c('0xc3')][_0x39699d]))_0x1d501c=!![];}_0x4d1aa0[_0x3c4c('0xc2')]=_0x1d501c;}}},{'key':_0x3c4c('0x30'),'value':function onItemsChanged(_0x435d20,_0x26276b){if(_0x26276b[_0x3c4c('0xbf')]==_0x531ec6[_0x3c4c('0xc0')]['Add']){for(var _0x4dac42=0x0;_0x4dac42<_0x26276b[_0x3c4c('0xc5')][_0x3c4c('0x8')];_0x4dac42++){this['raiseEvent'](_0x5c7fa0[_0x3c4c('0x1d')],new _0x53e4e4({'page':_0x26276b[_0x3c4c('0xc5')][_0x4dac42]}));}}else{for(var _0x4dac42=0x0;_0x4dac42<_0x26276b[_0x3c4c('0xc3')][_0x3c4c('0x8')];_0x4dac42++){this['raiseEvent'](_0x5c7fa0[_0x3c4c('0x1f')],new _0x53e4e4({'oldPage':_0x26276b[_0x3c4c('0xc3')][_0x4dac42]}));}}this[_0x3c4c('0x43')]();this[_0x3c4c('0x33')][_0x3c4c('0xc6')]();}},{'key':_0x3c4c('0xaf'),'get':function get(){return this[_0x3c4c('0xc7')];},'set':function set(_0x1b0c8c){if(_0x1b0c8c){if(this[_0x3c4c('0xc4')](_0x5c7fa0['pageChanging'],this[_0x3c4c('0xc7')],_0x1b0c8c)){var _0x45b289=this[_0x3c4c('0xc7')];this[_0x3c4c('0xc7')]=_0x1b0c8c;this[_0x3c4c('0xc8')](this[_0x3c4c('0xc7')]);this[_0x3c4c('0xc7')][_0x3c4c('0xc9')]();this[_0x3c4c('0x33')][_0x3c4c('0xca')](this['_selectedPage']['header']);this[_0x3c4c('0xa1')](_0x5c7fa0[_0x3c4c('0x1b')],new _0x53e4e4({'page':this[_0x3c4c('0xc7')],'oldPage':_0x45b289}));}}}},{'key':_0x3c4c('0xb8'),'get':function get(){if(this[_0x3c4c('0xc7')])return this[_0x3c4c('0x2c')][_0x3c4c('0xbc')](this[_0x3c4c('0xc7')]);return-0x1;},'set':function set(_0x3e71e0){var _0x5a2af1=this[_0x3c4c('0x2c')][_0x3c4c('0x2c')]()[_0x3e71e0];if(_0x5a2af1)this[_0x3c4c('0xaf')]=_0x5a2af1;}},{'key':'getItemByHeader','value':function getItemByHeader(_0x478fe3){return this[_0x3c4c('0x2c')][_0x3c4c('0xcb')](function(_0x216644){return _0x216644[_0x3c4c('0xad')][_0x3c4c('0x45')]==_0x478fe3[_0x3c4c('0x45')];})[_0x3c4c('0xb9')]();}},{'key':_0x3c4c('0x29'),'get':function get(){return this[_0x3c4c('0x2b')];},'set':function set(_0x132630){if(this[_0x3c4c('0x2b')]!=_0x132630){if(this[_0x3c4c('0x29')]!=null)this[_0x3c4c('0x2b')][_0x3c4c('0x52')](_0x8c8a6c[_0x3c4c('0x4e')][_0x3c4c('0xcc')],this[_0x3c4c('0x4f')]);this[_0x3c4c('0x2b')]=_0x132630;this[_0x3c4c('0x2b')][_0x3c4c('0x2f')](_0x8c8a6c[_0x3c4c('0x4e')][_0x3c4c('0xcc')],this[_0x3c4c('0x4f')]);this[_0x3c4c('0xa1')](_0x8c8a6c[_0x3c4c('0x4e')][_0x3c4c('0xcc')],_0x4ef43c[_0x3c4c('0xa3')][_0x3c4c('0xa4')]);}}},{'key':_0x3c4c('0x38'),'get':function get(){if(this[_0x3c4c('0x79')]==_0x1894d7[_0x3c4c('0x95')])return 0x0;return this[_0x3c4c('0x33')][_0x3c4c('0x71')]['value'];},'set':function set(_0x4e299e){if(this[_0x3c4c('0x33')][_0x3c4c('0x71')][_0x3c4c('0x19')]!=_0x4e299e){this[_0x3c4c('0x33')][_0x3c4c('0x71')]=new _0x531ec6['Unit'](_0x4e299e,_0x531ec6[_0x3c4c('0xcd')]['Pixel']);this['resetTabAlignment']();}}},{'key':'tabAlignment','get':function get(){return this[_0x3c4c('0x31')];},'set':function set(_0x514ab8){if(this['_tabAlignment']!=_0x514ab8){this['_tabAlignment']=_0x514ab8;this[_0x3c4c('0x94')]();}}},{'key':_0x3c4c('0x39'),'get':function get(){return this[_0x3c4c('0x33')]['showCloseButtons'];},'set':function set(_0x40c850){if(this[_0x3c4c('0x33')][_0x3c4c('0xce')]!=_0x40c850){this[_0x3c4c('0x33')][_0x3c4c('0xce')]=_0x40c850;}}},{'key':_0x3c4c('0x3a'),'get':function get(){return this[_0x3c4c('0x33')][_0x3c4c('0xcf')]==_0x1a3edd[_0x3c4c('0xd0')][_0x3c4c('0xd1')];},'set':function set(_0x294ae3){if(this[_0x3c4c('0x33')][_0x3c4c('0xcf')]==_0x1a3edd[_0x3c4c('0xd0')][_0x3c4c('0xd1')]!=_0x294ae3){this[_0x3c4c('0x33')][_0x3c4c('0xcf')]=_0x294ae3?_0x1a3edd[_0x3c4c('0xd0')][_0x3c4c('0xd1')]:_0x1a3edd[_0x3c4c('0xd0')][_0x3c4c('0x95')];}}},{'key':_0x3c4c('0x37'),'get':function get(){return this[_0x3c4c('0x33')]['showAddButton'];},'set':function set(_0x2a095c){if(this[_0x3c4c('0x33')]['showAddButton']!=_0x2a095c){this[_0x3c4c('0x33')][_0x3c4c('0x37')]=_0x2a095c;}}},{'key':_0x3c4c('0xd2'),'get':function get(){return this[_0x3c4c('0x33')][_0x3c4c('0xd3')];},'set':function set(_0x5bb6d8){if(this[_0x3c4c('0x33')]['allowDrag']!=_0x5bb6d8){this[_0x3c4c('0x33')]['allowDrag']=_0x5bb6d8;}}},{'key':_0x3c4c('0x5f'),'get':function get(){return this[_0x3c4c('0xd4')];},'set':function set(_0x56b9c5){if(this[_0x3c4c('0xd4')]!=_0x56b9c5){this[_0x3c4c('0xd4')]=_0x56b9c5;if(this[_0x3c4c('0xd4')])this[_0x3c4c('0x33')][_0x3c4c('0x5f')]=this[_0x3c4c('0xd4')]['id'];}}},{'key':_0x3c4c('0xd5'),'value':function setTheme(_0x59f61b,_0x37b1dd){this[_0x3c4c('0x5f')]=_0x59f61b;if(_0x37b1dd){this[_0x3c4c('0x2c')][_0x3c4c('0x4c')](function(_0x354c77){return _0x354c77[_0x3c4c('0x5f')]=_0x59f61b;});}}},{'key':_0x3c4c('0xd6'),'value':function onDataLoaded(_0x342c3d,_0x3ea901){var _0x268606=this;this['items']=new _0x5e6656['ObservableCollection'](this[_0x3c4c('0x29')][_0x3c4c('0xa6')]);this[_0x3c4c('0x2c')][_0x3c4c('0xd7')][_0x3c4c('0x2f')](function(_0x342c3d,_0x3ea901){_0x268606[_0x3c4c('0x2d')](_0x342c3d,_0x3ea901);});this[_0x3c4c('0x2c')][_0x3c4c('0x2e')][_0x3c4c('0x2f')](function(_0x342c3d,_0x3ea901){_0x268606['onItemsChanged'](_0x342c3d,_0x3ea901);});this[_0x3c4c('0x43')]();this[_0x3c4c('0x33')][_0x3c4c('0xc6')]();this['selectedPage']=this[_0x3c4c('0x2c')][_0x3c4c('0x4a')]();this['_lastIndex']=this[_0x3c4c('0x2c')]['count']();}},{'key':'onPageValidateAction','value':function onPageValidateAction(_0x4a0274,_0x567e3f,_0x13f5dd){var _0x4b9746=new _0x53e4e4({'page':_0x567e3f,'oldPage':_0x13f5dd});this[_0x3c4c('0xa1')](_0x4a0274,_0x4b9746);if(_0x4b9746[_0x3c4c('0xc2')])return![];return!![];}}],[{'key':_0x3c4c('0xd8'),'value':function create(_0x40dea4,_0x4af485){return _0x4ef43c[_0x3c4c('0x6d')][_0x3c4c('0xd9')](_0x1839ab,_0x40dea4,_0x4af485);}}]);return _0x1839ab;}(_0x8c8a6c[_0x3c4c('0xda')]);_0x999116[_0x3c4c('0x4e')]=_0x5c7fa0;_0x999116[_0x3c4c('0xdb')]=_0x53e4e4;_0x999116[_0x3c4c('0xdc')]=_0x1894d7;_0x999116['TabbedDiagramView']=_0x1839ab;Object[_0x3c4c('0xb')](_0x999116,_0x3c4c('0xdd'),{'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.1",
8
8
  "description": "Diagramming library additional controls",
9
9
  "keywords": [
10
10
  "diagramming library"