(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["help-AboutViewController","filebrowser-TImageAdvBrowser","filebrowser-TImageBrowser"],{8243:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{eval("/* provided dependency */ var jQuery = __webpack_require__(9755);\n( function( $ ) {\n\n\t$.fn.TImageAdvBrowser = function( options ) {\n\n\t\tGlobal.addCss( 'global/widgets/filebrowser/TImageBrowser.css' );\n\t\tvar opts = $.extend( {}, $.fn.TImageAdvBrowser.defaults, options );\n\n\t\tvar $this = this;\n\t\tvar field;\n\t\tvar name = 'filedata';\n\n\t\tvar accept_filter = '';\n\n\t\tvar default_width = 177;\n\t\tvar default_height = 42;\n\n\t\tvar callBack = null;\n\n\t\tvar enabled = true;\n\n\t\tvar image;\n\n\t\tvar result_form_data;\n\n\t\tthis.setEnable = function( val ) {\n\t\t\tenabled = val;\n\n\t\t\tvar btn = this.children().eq( 1 );\n\t\t\tif ( !val ) {\n\t\t\t\tbtn.hide();\n\t\t\t} else {\n\t\t\t\tbtn.show();\n\t\t\t}\n\n\t\t};\n\n\t\tthis.clearErrorStyle = function() {\n\n\t\t};\n\n\t\tthis.getField = function() {\n\t\t\treturn field;\n\t\t};\n\n\t\tthis.getValue = function() {\n\t\t\treturn result_form_data;\n\t\t};\n\n\t\tthis.setImage = function( val ) {\n\t\t\tif ( !val ) {\n\t\t\t\timage.attr( 'src', '' );\n\t\t\t\timage.hide();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar d = new Date();\n\t\t\timage.hide();\n\t\t\timage.attr( 'src', val + '&t=' + d.getTime() + '&X-CSRF-Token=' + getCookie( 'CSRF-Token' ) );\n\t\t\timage.css( 'height', 'auto' );\n\t\t\timage.css( 'width', 'auto' );\n\n\t\t};\n\n\t\tthis.onImageLoad = function( image ) {\n\n\t\t\tvar image_height = $( image ).height() > 0 ? $( image ).height() : image.naturalHeight;\n\t\t\tvar image_width = $( image ).width() > 0 ? $( image ).width() : image.naturalWidth;\n\n\t\t\tif ( image_height > default_height ) {\n\t\t\t\t$( image ).css( 'height', default_height );\n\n\t\t\t}\n\n\t\t\tif ( image_width > default_width ) {\n\t\t\t\t$( image ).css( 'width', default_width );\n\t\t\t\t$( image ).css( 'height', 'auto' );\n\t\t\t}\n\n\t\t\t$this.trigger( 'setSize' );\n\n\t\t\tif ( image_height < 5 ) {\n\t\t\t\t$( image ).hide();\n\t\t\t} else {\n\t\t\t\t$( image ).show();\n\t\t\t}\n\n\t\t};\n\n\t\tthis.setValue = function( val ) {\n\n\t\t\tif ( !val ) {\n\t\t\t\tval = '';\n\t\t\t}\n\n\t\t};\n\n\t\tthis.setEnableDelete = function( val ) {\n\t\t\tvar image = $this.find( '.image' );\n\t\t\tif ( !val ) {\n\t\t\t\timage.removeAttr( 'enable-delete' );\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\timage.attr( 'enable-delete', 1 );\n\t\t\t}\n\t\t};\n\n\t\tthis.each( function() {\n\n\t\t\tvar o = $.meta ? $.extend( {}, opts, $( this ).data() ) : opts;\n\n\t\t\tfield = o.field;\n\n\t\t\tvar $$this = this;\n\n\t\t\t$( this ).find( '#upload_image' ).text( $.i18n._( 'Upload Image' ) );\n\n\t\t\tif ( o.callBack ) {\n\t\t\t\tcallBack = o.callBack;\n\t\t\t}\n\n\t\t\tif ( o.show_browser === false ) {\n\t\t\t\t$( this ).children().eq( 1 ).hide();\n\t\t\t}\n\n\t\t\tif ( o.default_width > 0 ) {\n\t\t\t\tdefault_width = o.default_width;\n\t\t\t}\n\n\t\t\tif ( o.default_height > 0 ) {\n\t\t\t\tdefault_height = o.default_height;\n\t\t\t}\n\n\t\t\tif ( Global.isSet( o.name ) ) {\n\t\t\t\tname = o.name;\n\t\t\t}\n\n\t\t\tif ( Global.isSet( accept_filter ) ) {\n\t\t\t\taccept_filter = o.accept_filter;\n\t\t\t}\n\n\t\t\tif ( Global.isSet( o.deleteImageHandler ) ) {\n\t\t\t\t$this.find( '.file-browser' ).on( 'deleteClick', function() {\n\t\t\t\t\to.deleteImageHandler();\n\t\t\t\t} );\n\n\t\t\t}\n\n\t\t\tvar browser = $( this ).children().eq( 1 );\n\t\t\tbrowser.bind( 'click', function() {\n\t\t\t\tIndexViewController.openWizard( 'UserPhotoWizard', null, function( form_data ) {\n\n\t\t\t\t\tif ( callBack ) {\n\t\t\t\t\t\tcallBack( form_data );\n\t\t\t\t\t}\n\n\t\t\t\t\tresult_form_data = form_data;\n\n\t\t\t\t} );\n\t\t\t} );\n\n\t\t\timage = $( this ).children().eq( 0 );\n\t\t\timage.on( 'load', function() {\n\t\t\t\t$this.onImageLoad( this );\n\t\t\t} );\n\n\t\t\timage.hide();\n\n\t\t} );\n\n\t\treturn this;\n\n\t};\n\n\t$.fn.TImageAdvBrowser.defaults = {};\n\t$.fn.TImageAdvBrowser.html_template = `\n\t
\n\t\t\n\t\t\n\t
\n\t`;\n\n} )( jQuery );//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiODI0My5qcyIsIm1hcHBpbmdzIjoiO0FBQUE7O0FBRUE7O0FBRUE7QUFDQSx5QkFBeUI7O0FBRXpCO0FBQ0E7QUFDQTs7QUFFQTs7QUFFQTtBQUNBOztBQUVBOztBQUVBOztBQUVBOztBQUVBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0EsS0FBSztBQUNMO0FBQ0E7O0FBRUE7O0FBRUE7O0FBRUE7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTs7QUFFQTs7QUFFQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7O0FBRUE7QUFDQTtBQUNBLEtBQUs7QUFDTDtBQUNBOztBQU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0XHRcdFx0fVxuXG5cdFx0XHRcdFx0cmVzdWx0X2Zvcm1fZGF0YSA9IGZvcm1fZGF0YTtcblxuXHRcdFx0XHR9ICk7XG5cdFx0XHR9ICk7XG5cblx0XHRcdGltYWdlID0gJCggdGhpcyApLmNoaWxkcmVuKCkuZXEoIDAgKTtcblx0XHRcdGltYWdlLm9uKCAnbG9hZCcsIGZ1bmN0aW9uKCkge1xuXHRcdFx0XHQkdGhpcy5vbkltYWdlTG9hZCggdGhpcyApO1xuXHRcdFx0fSApO1xuXG5cdFx0XHRpbWFnZS5oaWRlKCk7XG5cblx0XHR9ICk7XG5cblx0XHRyZXR1cm4gdGhpcztcblxuXHR9O1xuXG5cdCQuZm4uVEltYWdlQWR2QnJvd3Nlci5kZWZhdWx0cyA9IHt9O1xuXHQkLmZuLlRJbWFnZUFkdkJyb3dzZXIuaHRtbF90ZW1wbGF0ZSA9IGBcblx0PGRpdiBjbGFzcz1cImZpbGUtYnJvd3NlclwiPlxuXHRcdDxpbWcgY2xhc3M9XCJpbWFnZVwiPlxuXHRcdDxidXR0b24gaWQ9XCJ1cGxvYWRfaW1hZ2VcIiBjbGFzcz1cInQtYnV0dG9uIGZpbGUtYnJvd3Nlci1idG5cIiBzdHlsZT1cImRpc3BsYXk6IGJsb2NrXCI+PC9idXR0b24+XG5cdDwvZGl2PlxuXHRgO1xuXG59ICkoIGpRdWVyeSApOyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///8243\n")},8326:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{eval("/* provided dependency */ var jQuery = __webpack_require__(9755);\n( function( $ ) {\n\n\t$.fn.TImageBrowser = function( options ) {\n\t\tGlobal.addCss( 'global/widgets/filebrowser/TImageBrowser.css' );\n\t\tvar opts = $.extend( {}, $.fn.TImageBrowser.defaults, options );\n\n\t\tvar $this = this;\n\t\tvar field;\n\t\tvar id = 'file_browser';\n\t\tvar name = 'filedata';\n\t\tvar browser;\n\n\t\tvar accept_filter = '';\n\n\t\tvar default_width = 177;\n\t\tvar default_height = 42;\n\t\tvar enabled = true;\n\n\t\tthis.setEnabled = function( val ) {\n\t\t\tenabled = val;\n\n\t\t\tvar btn = this.find( '.browser-form input' );\n\n\t\t\tif ( !val ) {\n\t\t\t\tbtn.attr( 'disabled', true );\n\t\t\t\tbtn.removeClass( 'disable-element' ).addClass( 'disable-element' );\n\t\t\t} else {\n\t\t\t\tbtn.removeAttr( 'disabled' );\n\t\t\t\tbtn.removeClass( 'disable-element' );\n\t\t\t}\n\n\t\t};\n\n\t\tthis.clearErrorStyle = function() {\n\n\t\t};\n\n\t\tthis.getFileName = function() {\n\n\t\t\treturn browser.val();\n\t\t};\n\n\t\tthis.getField = function() {\n\t\t\treturn field;\n\t\t};\n\n\t\tthis.setEnableDelete = function( val ) {\n\t\t\tvar image = $this.find( '.image' );\n\t\t\tif ( !val ) {\n\t\t\t\timage.removeAttr( 'enable-delete' );\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\timage.attr( 'enable-delete', 1 );\n\t\t\t}\n\t\t};\n\n\t\tthis.getValue = function() {\n\t\t\tvar form_data;\n\t\t\tif ( browser && browser.val() ) {\n\n\t\t\t\tif ( typeof FormData == 'undefined' ) {\n\t\t\t\t\tform_data = $this.find( '.browser-form' );\n\t\t\t\t} else {\n\t\t\t\t\tform_data = new FormData( $( $this.find( '.browser-form' ) )[0] );\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tform_data = null;\n\t\t\t}\n\n\t\t\treturn form_data;\n\t\t};\n\n\t\tthis.getImageSrc = function() {\n\t\t\tvar image = $this.find( '.image' );\n\t\t\treturn image.attr( 'src' );\n\t\t};\n\n\t\tthis.setImage = function( val ) {\n\t\t\tvar image = $this.find( '.image' );\n\n\t\t\tif ( !val ) {\n\t\t\t\timage.attr( 'src', '' );\n\t\t\t\timage.hide();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar d = new Date();\n\t\t\timage.hide();\n\t\t\timage.attr( 'src', val + '&t=' + d.getTime() );\n\t\t\timage.css( 'height', 'auto' );\n\t\t\timage.css( 'width', 'auto' );\n\n\t\t};\n\n\t\tvar onImageLoad = function( image ) {\n\n\t\t\tvar image_height = $( image ).height() > 0 ? $( image ).height() : image.naturalHeight;\n\t\t\tvar image_width = $( image ).width() > 0 ? $( image ).width() : image.naturalWidth;\n\n\t\t\tif ( image_height > default_height ) {\n\t\t\t\t$( image ).css( 'height', default_height );\n\n\t\t\t}\n\n\t\t\tif ( image_width > default_width ) {\n\t\t\t\t$( image ).css( 'width', default_width );\n\t\t\t\t$( image ).css( 'height', 'auto' );\n\t\t\t}\n\n\t\t\t$this.trigger( 'setSize' );\n\n\t\t\tif ( image_height < 5 ) {\n\t\t\t\t$( image ).hide();\n\t\t\t} else {\n\t\t\t\t$( image ).show();\n\t\t\t}\n\t\t};\n\n\t\tthis.setValue = function( val ) {\n\n\t\t\tif ( !val ) {\n\t\t\t\tval = '';\n\t\t\t}\n\n\t\t};\n\n\t\tthis.each( function() {\n\t\t\tvar o = $.meta ? $.extend( {}, opts, $( this ).data() ) : opts;\n\n\t\t\tfield = o.field;\n\n\t\t\t// var $this = this;\n\n\t\t\tif ( o.default_width > 0 ) {\n\t\t\t\tdefault_width = o.default_width;\n\t\t\t}\n\n\t\t\tif ( o.default_height > 0 ) {\n\t\t\t\tdefault_height = o.default_height;\n\t\t\t}\n\n\t\t\tif ( Global.isSet( o.name ) ) {\n\t\t\t\tname = o.name;\n\t\t\t}\n\n\t\t\tif ( Global.isSet( accept_filter ) ) {\n\t\t\t\taccept_filter = o.accept_filter;\n\t\t\t}\n\n\t\t\tbrowser = $( this ).find( '.browser' );\n\t\t\tvar image = $( this ).find( '.image' );\n\t\t\timage.hide();\n\t\t\timage.on( 'load', function() {\n\t\t\t\tonImageLoad( this );\n\n\t\t\t} );\n\n\t\t\tif ( accept_filter ) {\n\t\t\t\tbrowser.attr( 'accept', accept_filter );\n\t\t\t} else {\n\t\t\t\taccept_filter = 'image/*';\n\t\t\t\tbrowser.attr( 'accept', 'image/*' );\n\t\t\t}\n\n\t\t\tbrowser.attr( 'id', id );\n\t\t\tbrowser.attr( 'name', name );\n\n\t\t\tif ( Global.isSet( o.changeHandler ) ) {\n\n\t\t\t\t$this.bind( 'imageChange', o.changeHandler );\n\t\t\t}\n\t\t\tif ( Global.isSet( o.deleteImageHandler ) ) {\n\t\t\t\tthis.find( '.file-browser' ).on( 'deleteClick', function() {\n\t\t\t\t\to.deleteImageHandler();\n\t\t\t\t} );\n\n\t\t\t}\n\n\t\t\tbrowser.bind( 'change', function() {\n\t\t\t\timage.hide();\n\n\t\t\t\tif ( typeof FileReader != 'undefined' ) {\n\n\t\t\t\t\tvar files = !!this.files ? this.files : [];\n\n\t\t\t\t\t// If no files were selected, or no FileReader support, return\n\t\t\t\t\tif ( !files.length || !window.FileReader ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( accept_filter === 'image/*' ) {\n\t\t\t\t\t\t// Create a new instance of the FileReader\n\t\t\t\t\t\tvar reader = new FileReader();\n\n\t\t\t\t\t\t// Read the local file as a DataURL\n\t\t\t\t\t\treader.readAsDataURL( files[0] );\n\n\t\t\t\t\t\t// When loaded, set image data as background of div\n\t\t\t\t\t\treader.onloadend = function() {\n\t\t\t\t\t\t\tvar url = this.result;\n\t\t\t\t\t\t\timage.attr( 'src', url );\n\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t$this.trigger( 'imageChange', [$this] );\n\n\t\t\t} );\n\n\t\t} );\n\n\t\treturn this;\n\n\t};\n\n\t$.fn.TImageBrowser.defaults = {};\n\t$.fn.TImageBrowser.html_template = `\n\t
\n\t\t\n\t\t
\n\t\t\t\n\t\t
\n\t
\n\t`;\n\n} )( jQuery );//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoi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cgY2xhc3M9XCJpbWFnZVwiPlxuXHRcdDxmb3JtIGVuY3R5cGU9XCJtdWx0aXBhcnQvZm9ybS1kYXRhXCIgY2xhc3M9XCJicm93c2VyLWZvcm1cIj5cblx0XHRcdDxpbnB1dCBuYW1lPVwiZmlsZWRhdGFcIiBjbGFzcz1cImJyb3dzZXJcIiB0eXBlPVwiZmlsZVwiLz5cblx0XHQ8L2Zvcm0+XG5cdDwvZGl2PlxuXHRgO1xuXG59ICkoIGpRdWVyeSApOyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///8326\n")},78:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"AboutViewController\": () => (/* binding */ AboutViewController)\n/* harmony export */ });\n/* harmony import */ var _global_widgets_filebrowser_TImageBrowser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8326);\n/* harmony import */ var _global_widgets_filebrowser_TImageBrowser__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_global_widgets_filebrowser_TImageBrowser__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _global_widgets_filebrowser_TImageAdvBrowser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8243);\n/* harmony import */ var _global_widgets_filebrowser_TImageAdvBrowser__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_global_widgets_filebrowser_TImageAdvBrowser__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _global_TTUUID__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4936);\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\n\n\n\n\nclass AboutViewController extends BaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tdate_api: null,\n\t\t\temployeeActive: []\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinit( options ) {\n\n\t\t//this._super('initialize', options );\n\t\tthis.viewId = 'About';\n\t\tthis.script_name = 'AboutView';\n\t\tthis.context_menu_name = $.i18n._( 'About' );\n\t\tthis.api = TTAPI.APIAbout;\n\t\tthis.date_api = TTAPI.APITTDate;\n\n\t\tthis.render();\n\n\t\tthis.initData();\n\t}\n\n\tgetCustomContextMenuModel() {\n\t\tvar context_menu_model = {\n\t\t\texclude: ['default'],\n\t\t\tinclude: [\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Check For Updates' ),\n\t\t\t\t\tid: 'check_updates',\n\t\t\t\t\tvue_icon: 'tticon tticon-refresh_black_24dp',\n\t\t\t\t\tgroup: 'editor',\n\t\t\t\t\t},\n\t\t\t\t'cancel',\n\t\t\t\t{\n\t\t\t\t\tlabel: '', //Empty label. vue_icon is displayed instead of text.\n\t\t\t\t\tid: 'diagnostic_header',\n\t\t\t\t\taction_group: 'diagnostic',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\taction_group_header: true,\n\t\t\t\t\tvue_icon: 'tticon tticon-more_vert_black_24dp'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Diagnostics: Enable' ),\n\t\t\t\t\tid: 'diagnostics_enable',\n\t\t\t\t\taction_group: 'diagnostic',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\tpermission_result: this.diagnosticPermissionValidate()\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Diagnostics: Disable' ),\n\t\t\t\t\tid: 'diagnostics_disable',\n\t\t\t\t\taction_group: 'diagnostic',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\tpermission_result: this.diagnosticPermissionValidate()\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Diagnostics: Upload' ),\n\t\t\t\t\tid: 'diagnostics_upload',\n\t\t\t\t\taction_group: 'diagnostic',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\tpermission_result: this.diagnosticPermissionValidate()\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Diagnostics: Test Connection' ),\n\t\t\t\t\tid: 'diagnostics_test_connection',\n\t\t\t\t\taction_group: 'diagnostic',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\tpermission_result: this.diagnosticPermissionValidate()\n\t\t\t\t}\n\n\t\t\t]\n\t\t};\n\n\t\treturn context_menu_model;\n\t}\n\n\tonCustomContextClick( id ) {\n\t\tswitch ( id ) {\n\t\t\tcase 'check_updates':\n\t\t\t\tthis.onCheckClick();\n\t\t\t\tbreak;\n\t\t\tcase 'diagnostics_enable':\n\t\t\t\tthis.onToggleDiagnosticClick( true );\n\t\t\t\tbreak;\n\t\t\tcase 'diagnostics_disable':\n\t\t\t\tthis.onToggleDiagnosticClick( false );\n\t\t\t\tbreak;\n\t\t\tcase 'diagnostics_upload':\n\t\t\t\tthis.onUploadDiagnosticClick();\n\t\t\t\tbreak;\n\t\t\tcase 'diagnostics_test_connection':\n\t\t\t\tthis.onTestConnectionDiagnosticClick();\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tonCheckClick() {\n\t\tvar $this = this;\n\t\tthis.api['isNewVersionAvailable']( {\n\t\t\tonResult: function( result ) {\n\t\t\t\t$this.current_edit_record = result.getResult();\n\n\t\t\t\t$this.initEditView();\n\t\t\t}\n\t\t} );\n\t}\n\n\tonToggleDiagnosticClick( toggle ) {\n\t\tvar $this = this;\n\t\tthis.api.setSystemDiagnostic( toggle, {\n\t\t\tonResult: function( result ) {\n\t\t\t\tvar message = '';\n\t\t\t\tif ( toggle ) {\n\t\t\t\t\tmessage = $.i18n._( 'Diagnostic mode is now enabled.' );\n\t\t\t\t} else {\n\t\t\t\t\tmessage = $.i18n._( 'Diagnostic mode is now disabled.' );\n\t\t\t\t}\n\t\t\t\tTAlertManager.showAlert( message, $.i18n._( 'Diagnostics Mode' ) );\n\t\t\t}\n\t\t} );\n\t}\n\n\tonUploadDiagnosticClick() {\n\t\tthis.api.uploadSystemDiagnostic( {\n\t\t\tonResult: function( result ) {\n\t\t\t}\n\t\t} );\n\t}\n\n\tonTestConnectionDiagnosticClick() {\n\t\tthis.api.testConnectionDiagnostic( {\n\t\t\tonResult: function( result ) {\n\t\t\t\tvar message = '';\n\t\t\t\tif ( result.getResult() === true ) {\n\t\t\t\t\tmessage = $.i18n._( 'Connection test successful!' );\n\t\t\t\t} else {\n\t\t\t\t\tmessage = result.getResult();\n\t\t\t\t}\n\n\t\t\t\tTAlertManager.showAlert( message, $.i18n._( 'Diagnostics Connection Test' ) );\n\t\t\t}\n\t\t} );\n\t}\n\n\tgetAboutData( callBack ) {\n\t\tvar $this = this;\n\t\t$this.api['getAboutData']( {\n\t\t\tonResult: function( result ) {\n\t\t\t\tvar result_data = result.getResult();\n\t\t\t\tif ( Global.isSet( result_data ) ) {\n\t\t\t\t\tcallBack( result_data );\n\t\t\t\t}\n\n\t\t\t}\n\t\t} );\n\t}\n\n\tdiagnosticPermissionValidate() {\n\t\tif ( PermissionManager.validate( 'user', 'edit' ) && APIGlobal.pre_login_data.primary_company_id === LocalCacheData.getLoginUser().company_id ) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\topenEditView() {\n\t\tvar $this = this;\n\n\t\tif ( $this.edit_only_mode ) {\n\n\t\t\tthis.buildContextMenu();\n\t\t\tif ( !$this.edit_view ) {\n\t\t\t\t$this.initEditViewUI( 'About', 'AboutEditView.html' );\n\t\t\t}\n\n\t\t\t$this.getAboutData( function( result ) {\n\t\t\t\t// Waiting for the TTAPI.API returns data to set the current edit record.\n\t\t\t\t$this.current_edit_record = result;\n\n\t\t\t\t$this.initEditView();\n\n\t\t\t} );\n\n\t\t}\n\t}\n\n\tsetUIWidgetFieldsToCurrentEditRecord() {\n\t}\n\n\tsetCurrentEditRecordData() {\n\t\t//Set current edit record data to all widgets\n\t\tif ( !Global.isSet( this.current_edit_record['license_data'] ) ) {\n\t\t\tthis.current_edit_record['license_data'] = {};\n\t\t}\n\n\t\tfor ( var i in this.edit_view_form_item_dic ) {\n\t\t\tthis.detachElement( i );\n\t\t}\n\n\t\tfor ( var key in this.current_edit_record ) {\n\t\t\tif ( !this.current_edit_record.hasOwnProperty( key ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tvar widget = this.edit_view_ui_dic[key];\n\n\t\t\tswitch ( key ) {\n\t\t\t\tcase 'new_version':\n\t\t\t\t\tif ( this.current_edit_record[key] === true ) {\n\n\t\t\t\t\t\tthis.attachElement( 'notice' );\n\n\t\t\t\t\t\tvar html = '
' + $.i18n._( 'NOTICE' ) + ':' + ' ' + $.i18n._( 'There is a new version of' ) + ' ';\n\t\t\t\t\t\thtml += '' + $.i18n._( this.current_edit_record['application_name'] ) + ' ' + $.i18n._( 'available' ) + '.';\n\t\t\t\t\t\thtml += '
' + $.i18n._( 'This version may contain tax table updates necessary for accurate payroll calculation, we recommend that you upgrade as soon as possible.' ) + '
';\n\t\t\t\t\t\thtml += '' + $.i18n._( 'The latest version can be downloaded from' ) + ':' + ' ';\n\t\t\t\t\t\thtml += '' + this.current_edit_record['organization_url'] + '

';\n\n\t\t\t\t\t\t$( this.edit_view_form_item_dic['notice'].find( '.tblDataWarning' ) ).html( html );\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'registration_key':\n\t\t\t\t\tif ( Global.isSet( widget ) ) {\n\t\t\t\t\t\tif ( this.current_edit_record[key] === '' || Global.isFalseOrNull( this.current_edit_record[key] ) ) {\n\t\t\t\t\t\t\twidget.setValue( $.i18n._( 'N/A' ) );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\twidget.setValue( this.current_edit_record[key] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'hardware_id':\n\t\t\t\t\tif ( Global.isSet( widget ) ) {\n\t\t\t\t\t\tif ( this.current_edit_record[key] === '' || Global.isFalseOrNull( this.current_edit_record[key] ) ) {\n\t\t\t\t\t\t\twidget.setValue( $.i18n._( 'N/A' ) );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\twidget.setValue( this.current_edit_record[key] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'cron': //popular case\n\t\t\t\t\tif ( Global.isSet( widget ) ) {\n\t\t\t\t\t\tif ( this.current_edit_record[key]['last_run_date'] !== '' ) {\n\t\t\t\t\t\t\twidget.setValue( this.current_edit_record[key]['last_run_date'] );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\twidget.setValue( $.i18n._( 'Never' ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'license_data':\n\t\t\t\t\tif ( Global.isSet( this.current_edit_record[key] ) ) {\n\n\t\t\t\t\t\tthis.attachElement( 'license_info' );\n\t\t\t\t\t\tthis.attachElement( 'license_browser' );\n\n\t\t\t\t\t\tvar separated_box = $( this.edit_view_form_item_dic['license_info'].find( '.separated-box' ) );\n\n\t\t\t\t\t\tif ( this.current_edit_record[key]['message'] ) {\n\t\t\t\t\t\t\tseparated_box.css( {\n\t\t\t\t\t\t\t\t'font-weight': 'bold',\n\t\t\t\t\t\t\t\t'background-color': 'red',\n\t\t\t\t\t\t\t\t'height': 'auto',\n\t\t\t\t\t\t\t\t'color': '#000000'\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\tseparated_box.html( $.i18n._( 'License Information' ) + '
' + $.i18n._( 'WARNING' ) + ': ' + this.current_edit_record[key]['message'] );\n\t\t\t\t\t\t\t$( separated_box.find( 'span' ) ).removeClass( 'label' ).css( {\n\t\t\t\t\t\t\t\t'font-size': 'normal',\n\t\t\t\t\t\t\t\t'font-weight': 'bold'\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tseparated_box.html( '' + $.i18n._( 'License Information' ) + '' );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( this.current_edit_record[key]['organization_name'] ) {\n\t\t\t\t\t\t\tfor ( var k in this.current_edit_record[key] ) {\n\t\t\t\t\t\t\t\tswitch ( k ) {\n\t\t\t\t\t\t\t\t\tcase 'major_version':\n\t\t\t\t\t\t\t\t\tcase 'minor_version':\n\t\t\t\t\t\t\t\t\t\tthis.attachElement( '_version' );\n\t\t\t\t\t\t\t\t\t\tthis.edit_view_ui_dic['_version'].setValue( this.current_edit_record[key]['major_version'] + '.' + this.current_edit_record[key]['minor_version'] + '.X' );\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tif ( Global.isSet( this.edit_view_ui_dic[k] ) && Global.isSet( this.edit_view_form_item_dic[k] ) ) {\n\t\t\t\t\t\t\t\t\t\t\tthis.attachElement( k );\n\t\t\t\t\t\t\t\t\t\t\tthis.edit_view_ui_dic[k].setValue( this.current_edit_record[key][k] );\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'user_counts':\n\t\t\t\t\tif ( this.current_edit_record[key].length > 0 ) {\n\t\t\t\t\t\tthis.attachElement( 'user_active_inactive' );\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'schema_version_group_A':\n\t\t\t\tcase 'schema_version_group_B':\n\t\t\t\tcase 'schema_version_group_C':\n\t\t\t\tcase 'schema_version_group_D':\n\t\t\t\t\tif ( Global.isSet( widget ) && this.current_edit_record[key] ) {\n\t\t\t\t\t\twidget.setValue( this.current_edit_record[key] );\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif ( Global.isSet( widget ) ) {\n\t\t\t\t\t\twidget.setValue( this.current_edit_record[key] );\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif ( Global.isSet( widget ) && this.current_edit_record[key] == false ) {\n\t\t\t\twidget.parents( '.edit-view-form-item-div' ).detach();\n\t\t\t}\n\n\t\t}\n\n\t\tthis.collectUIDataToCurrentEditRecord();\n\t\tthis.setEditViewDataDone();\n\t}\n\n\tsetEditViewDataDone() {\n\t\tsuper.setEditViewDataDone();\n\t\tthis.setActiveEmployees();\n\t}\n\n\tsetActiveEmployees() {\n\n\t\tif ( this.employeeActive.length > 0 ) {\n\t\t\tfor ( var i in this.employeeActive ) {\n\t\t\t\tvar field = this.employeeActive[i].getField();\n\t\t\t\tif ( Global.isSet( this.edit_view_form_item_dic[field] ) ) {\n\t\t\t\t\tthis.edit_view_form_item_dic[field].remove();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.employeeActive = [];\n\n\t\t}\n\n\t\tif ( Global.isSet( this.current_edit_record['user_counts'] ) && this.current_edit_record['user_counts'].length > 0 ) {\n\t\t\tvar tab_about = this.edit_view_tab.find( '#tab_about' );\n\t\t\tvar tab_about_column1 = tab_about.find( '.first-column' );\n\n\t\t\tfor ( var key in this.current_edit_record['user_counts'] ) {\n\n\t\t\t\tvar item = this.current_edit_record['user_counts'][key];\n\n\t\t\t\tvar form_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\tform_item_input.TText( { field: 'active_' + key } );\n\t\t\t\tform_item_input.setValue( item['max_active_users'] + ' / ' + item['max_inactive_users'] );\n\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( item['label'] ), form_item_input, tab_about_column1, '', null, true );\n\n\t\t\t\tthis.employeeActive.push( form_item_input );\n\n\t\t\t\tthis.edit_view_ui_dic['active_' + key].css( 'opacity', 1 );\n\t\t\t}\n\n\t\t\tthis.editFieldResize( 0 );\n\t\t}\n\t}\n\n\tbuildEditViewUI() {\n\t\tvar $this = this;\n\t\tsuper.buildEditViewUI();\n\n\t\tvar tab_model = {\n\t\t\t'tab_about': {\n\t\t\t\t'label': $.i18n._( 'About' )\n\t\t\t},\n\t\t};\n\t\tthis.setTabModel( tab_model );\n\n\t\t//Tab 0 start\n\n\t\tvar tab_about = this.edit_view_tab.find( '#tab_about' );\n\n\t\tvar tab_about_column1 = tab_about.find( '.first-column' );\n\n\t\tthis.edit_view_tabs[0] = [];\n\n\t\tthis.edit_view_tabs[0].push( tab_about_column1 );\n\n\t\tvar form_item_input = $( '
' );\n\t\tthis.addEditFieldToColumn( null, form_item_input, tab_about_column1, '', null, true, false, 'notice' );\n\n\t\t// separate box\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.SEPARATED_BOX );\n\t\tform_item_input.SeparatedBox( { label: $.i18n._( 'System Information' ) } );\n\t\tthis.addEditFieldToColumn( null, form_item_input, tab_about_column1 );\n\n\t\t// Product Edition\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'product_edition' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Product Edition' ), form_item_input, tab_about_column1 );\n\n\t\t// Version\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'system_version' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Version' ), form_item_input, tab_about_column1 );\n\n\t\t// Operating System\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( {\n\t\t\tfield: 'operating_system'\n\n\t\t} );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Operating System' ), form_item_input, tab_about_column1 );\n\n\t\t// PHP Version\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( {\n\t\t\tfield: 'php_version'\n\t\t} );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'PHP Version' ), form_item_input, tab_about_column1 );\n\n\t\t// Tax Engine Version\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'tax_engine_version' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Tax Engine Version' ), form_item_input, tab_about_column1 );\n\n\t\t// Tax Data Version\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'tax_data_version' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Tax Data Version' ), form_item_input, tab_about_column1 );\n\n\t\t// Registration Key\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'registration_key' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Registration Key' ), form_item_input, tab_about_column1 );\n\n\t\t// Hardware ID\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'hardware_id' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Hardware ID' ), form_item_input, tab_about_column1 );\n\n\t\t// Maintenance Jobs Last Ran\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'cron' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Maintenance Jobs Last Ran' ), form_item_input, tab_about_column1 );\n\n\t\t// separate box\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.SEPARATED_BOX );\n\t\tform_item_input.SeparatedBox( { label: $.i18n._( 'License Information' ) } );\n\t\tthis.addEditFieldToColumn( null, form_item_input, tab_about_column1, '', null, true, false, 'license_info' );\n\n\t\tif ( LocalCacheData.productEditionId > 10 && APIGlobal.pre_login_data.primary_company_id == LocalCacheData.getCurrentCompany().id ) {\n\t\t\t// Upload License\n\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.IMAGE_BROWSER );\n\t\t\tthis.file_browser = form_item_input.TImageBrowser( {\n\t\t\t\tfield: 'license_browser',\n\t\t\t\tid: 'license_browser',\n\t\t\t\tname: 'filedata',\n\t\t\t\taccept_filter: '*',\n\t\t\t\tchangeHandler: function( a ) {\n\t\t\t\t\t$this.uploadLicense( this );\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Upload License' ), form_item_input, tab_about_column1, '', null, true );\n\n\t\t// Product\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'product_name' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Product' ), form_item_input, tab_about_column1, '', null, true );\n\n\t\t// Company\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'organization_name' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Company' ), form_item_input, tab_about_column1, '', null, true );\n\n\t\t// Version\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: '_version' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Version' ), form_item_input, tab_about_column1, '', null, true );\n\n\t\t// Active Employee Licenses\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'active_employee_licenses' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Active Employee Licenses' ), form_item_input, tab_about_column1, '', null, true );\n\n\t\t// Issue Date\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'issue_date' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Issue Date' ), form_item_input, tab_about_column1, '', null, true );\n\n\t\t// Expire Date\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'expire_date_display' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Expire Date' ), form_item_input, tab_about_column1, '', null, true );\n\n\t\t// Schema Version\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.SEPARATED_BOX );\n\t\tform_item_input.SeparatedBox( { label: $.i18n._( 'Schema Version' ) } );\n\t\tthis.addEditFieldToColumn( null, form_item_input, tab_about_column1 );\n\n\t\t// Group A\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'schema_version_group_A' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Group A' ), form_item_input, tab_about_column1 );\n\n\t\t// Group B\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'schema_version_group_B' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Group B' ), form_item_input, tab_about_column1 );\n\n\t\t// Group C\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'schema_version_group_C' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Group C' ), form_item_input, tab_about_column1 );\n\n\t\t// Group D\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\tform_item_input.TText( { field: 'schema_version_group_D' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Group D' ), form_item_input, tab_about_column1 );\n\n\t\t// Separated Box\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.SEPARATED_BOX );\n\t\tform_item_input.SeparatedBox( { label: $.i18n._( 'Employees (Active / InActive)' ) } );\n\t\tthis.addEditFieldToColumn( null, form_item_input, tab_about_column1, '', null, true, false, 'user_active_inactive' );\n\t}\n\n\tuploadLicense( obj ) {\n\t\tvar $this = this;\n\t\tvar file = this.edit_view_ui_dic['license_browser'].getValue();\n\t\t$this.api.uploadFile( file, 'object_type=license&object_id=', {\n\t\t\tonResult: function( res ) {\n\t\t\t\t//file upload returns a \"TRUE\" string on success\n\t\t\t\tif ( res == 'TRUE' ) {\n\t\t\t\t\t//$this.openEditView();\n\n\t\t\t\t\tProgressBar.showProgressBar();\n\t\t\t\t\twindow.setTimeout( function() {\n\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t}, 3000 );\n\t\t\t\t} else {\n\t\t\t\t\t//TAlertManager.showAlert( $.i18n._( 'Invalid license file' ) )\n\t\t\t\t\tTAlertManager.showAlert( res );\n\t\t\t\t\t$( '#file_browser' ).val( '' ); //Clear the file name from beside the \"Choose File\" button.\n\t\t\t\t}\n\n\t\t\t}\n\t\t} );\n\t}\n\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNzguanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBb0Q7QUFDRztBQUNkOztBQUVsQztBQUNQLDJCQUEyQjtBQUMzQixFQUFFLENBQUM7QUFDSDtBQUNBO0FBQ0EsSUFBSTs7QUFFSjtBQUNBOztBQUVBOztBQUVBO0FBQ0E7QUFDQTtBQUNBLDJCQUEyQixDQUFDO0FBQzVCO0FBQ0E7O0FBRUE7O0FBRUE7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsWUFBWSxDQUFDO0FBQ2I7QUFDQTtBQUNBO0FBQ0EsTUFBTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUFLO0FBQ0w7QUFDQSxZQUFZLENBQUM7QUFDYjtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBQUs7QUFDTDtBQUNBLFlBQVksQ0FBQztBQUNiO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FBSztBQUNMO0FBQ0EsWUFBWSxDQUFDO0FBQ2I7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUFLO0FBQ0w7QUFDQSxZQUFZLENBQUM7QUFDYjtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUF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