1 line
41 KiB
JavaScript
1 line
41 KiB
JavaScript
"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["reports-saved_report-SavedReportViewController"],{9372:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"SavedReportViewController\": () => (/* binding */ SavedReportViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass SavedReportViewController extends BaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tel: '#saved_report_view_container',\n\n\t\t\t//Issue #1187 - Many of these variables are needed when this view is rendered as a sub view\n\t\t\t//in that case, init() will not be run so those variables need to be defined at load time instead.\n\n\t\t\tsub_report_schedule_view_controller: null,\n\t\t\tedit_view_tpl: 'SavedReportEditView.html',\n\t\t\tpermission_id: 'report',\n\t\t\tviewId: 'SavedReport',\n\t\t\tscript_name: 'UserReportDataView',\n\t\t\ttable_name_key: 'user_report_data',\n\t\t\tcontext_menu_name: $.i18n._( 'Reports' ),\n\t\t\tnavigation_label: $.i18n._( 'Saved Report' ),\n\n\t\t\tapi: TTAPI.APIUserReportData\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinit( options ) {\n\n\t\tthis.render();\n\t\tif ( this.sub_view_mode ) {\n\t\t\tthis.buildContextMenu( true );\n\n\t\t\t//call init data in parent view, don't call initData\n\t\t} else {\n\t\t\tthis.buildContextMenu();\n\t\t\tif ( !this.sub_view_mode ) {\n\t\t\t\tthis.initData();\n\t\t\t}\n\t\t}\n\t}\n\n\tonDeleteResult( result, remove_ids ) {\n\t\tvar $this = this;\n\t\tProgressBar.closeOverlay();\n\n\t\tif ( result.isValid() ) {\n\t\t\t$this.search();\n\t\t\t$this.onDeleteDone( result );\n\n\t\t\tif ( $this.edit_view ) {\n\t\t\t\t$this.removeEditView();\n\t\t\t} else {\n\t\t\t\t$this.setCurrentEditViewState( '' );\n\t\t\t}\n\n\t\t\tif ( this.sub_view_mode && this.parent_view_controller ) {\n\t\t\t\tthis.parent_view_controller.onSavedReportDelete();\n\t\t\t}\n\n\t\t} else {\n\t\t\t$this.revertEditViewState();\n\t\t\tTAlertManager.showErrorAlert( result );\n\t\t}\n\t}\n\n\tonCustomContextClick( id ) {\n\t\tswitch ( id ) {\n\t\t\tcase 'share_report':\n\n\t\t\t\tif ( Global.getProductEdition() >= 15 ) {\n\t\t\t\t\tvar default_data = [];\n\t\t\t\t\tif ( this.edit_view && this.current_edit_record.id ) {\n\t\t\t\t\t\tdefault_data.push( this.current_edit_record.id );\n\t\t\t\t\t} else if ( !this.edit_view ) {\n\t\t\t\t\t\tdefault_data = this.getGridSelectIdArray();\n\t\t\t\t\t}\n\t\t\t\t\tIndexViewController.openWizard( 'ShareReportWizard', default_data );\n\t\t\t\t} else {\n\t\t\t\t\tTAlertManager.showAlert( Global.getUpgradeMessage() );\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tonGridDblClickRow() {\n\t\tProgressBar.showOverlay();\n\n\t\tif ( this.sub_view_mode ) {\n\t\t\tthis.onEditClick();\n\t\t} else {\n\t\t\tthis.onViewClick();\n\t\t}\n\t}\n\n\tgetCustomContextMenuModel() {\n\t\tvar context_menu_model = {\n\t\t\tgroups: {\n\t\t\t\tshare: {\n\t\t\t\t\tlabel: $.i18n._( 'Share' ),\n\t\t\t\t\tid: this.viewId + 'Share'\n\t\t\t\t}\n\t\t\t},\n\t\t\texclude: ['default'],\n\t\t\tinclude: [\n\t\t\t\t'edit',\n\t\t\t\t'delete_icon',\n\t\t\t\t'delete_and_next',\n\t\t\t\t'save',\n\t\t\t\t'save_and_continue',\n\t\t\t\t'save_and_next',\n\t\t\t\t'cancel',\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Share Report' ),\n\t\t\t\t\tid: 'share_report',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\tvue_icon: 'tticon tticon-share_black_24dp',\n\t\t\t\t}\n\t\t\t]\n\t\t};\n\n\t\tif ( !this.sub_view_mode ) {\n\t\t\tcontext_menu_model.include.unshift( {\n\t\t\t\tlabel: $.i18n._( 'Report' ),\n\t\t\t\tid: 'view',\n\t\t\t\tgroup: 'editor',\n\t\t\t\tvue_icon: 'tticon tticon-visibility_black_24dp',\n\t\t\t} );\n\t\t}\n\n\t\treturn context_menu_model;\n\t}\n\n\tremoveEditView() {\n\n\t\tsuper.removeEditView();\n\t\tthis.sub_report_schedule_view_controller = null;\n\t}\n\n\tgetGridSetup() {\n\t\tvar $this = this;\n\n\t\tvar grid_setup = {\n\t\t\tcontainer_selector: this.sub_view_mode ? '#tab_saved_reports' : '.view', //tab4 = Saved Report tab.\n\t\t\tsub_grid_mode: this.sub_view_mode,\n\t\t\tonSelectRow: function() {\n\t\t\t\t$this.onGridSelectRow();\n\t\t\t},\n\t\t\tonCellSelect: function() {\n\t\t\t\t$this.onGridSelectRow();\n\t\t\t},\n\t\t\tonSelectAll: function() {\n\t\t\t\t$this.onGridSelectAll();\n\t\t\t},\n\t\t\tondblClickRow: function( e ) {\n\t\t\t\t$this.onGridDblClickRow( e );\n\t\t\t},\n\t\t\tonRightClickRow: function( rowId ) {\n\t\t\t\tvar id_array = $this.getGridSelectIdArray();\n\t\t\t\tif ( id_array.indexOf( rowId ) < 0 ) {\n\t\t\t\t\t$this.grid.grid.resetSelection();\n\t\t\t\t\t$this.grid.grid.setSelection( rowId );\n\t\t\t\t\t$this.onGridSelectRow();\n\t\t\t\t}\n\t\t\t},\n\t\t};\n\n\t\t//Only use custom grid sizing when in sub_view_mode, since we need to use the BaseViewController grid sizing otherwise.\n\t\tif ( this.sub_view_mode ) {\n\t\t\tgrid_setup.setGridSize = function() {\n\t\t\t\tif ( $this.sub_view_mode ) {\n\t\t\t\t\t$this.baseViewSubTabGridResize( '#tab_saved_reports' );\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tgrid_setup.onResizeGrid = function() {\n\t\t\t\tif ( $this.sub_view_mode ) {\n\t\t\t\t\t$this.baseViewSubTabGridResize( '#tab_saved_reports' );\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\n\t\treturn grid_setup;\n\t}\n\n\tonViewClick( edit_record, noRefreshUI ) {\n\t\tvar grid_selected_id_array = this.getGridSelectIdArray();\n\t\tvar id = grid_selected_id_array[0];\n\n\t\tvar record = this.getRecordFromGridById( id );\n\t\tif ( record && record.script ) {\n\t\t\tvar report_name = record.script; //Must use 'script' instead of 'script_name' so it doesn't change with different languages.\n\n\t\t\tLocalCacheData.current_doing_context_action = 'view';\n\t\t\tLocalCacheData.default_edit_id_for_next_open_edit_view = id;\n\n\t\t\tswitch ( report_name ) {\n\t\t\t\tcase 'AccrualBalanceSummaryReport':\n\t\t\t\tcase 'ActiveShiftReport':\n\t\t\t\tcase 'AuditTrailReport':\n\t\t\t\tcase 'Form1099NecReport':\n\t\t\t\tcase 'Form940Report':\n\t\t\t\tcase 'Form941Report':\n\t\t\t\tcase 'FormW2Report':\n\t\t\t\tcase 'GeneralLedgerSummaryReport':\n\t\t\t\tcase 'InvoiceTransactionSummaryReport':\n\t\t\t\tcase 'JobInformationReport':\n\t\t\t\tcase 'JobItemInformationReport':\n\t\t\t\tcase 'JobSummaryReport':\n\t\t\t\tcase 'KPIReport':\n\t\t\t\tcase 'PayrollExportReport':\n\t\t\t\tcase 'PayStubTransactionSummaryReport':\n\t\t\t\tcase 'PayStubSummaryReport':\n\t\t\t\tcase 'PunchSummaryReport':\n\t\t\t\tcase 'RemittanceSummaryReport':\n\t\t\t\tcase 'ScheduleSummaryReport':\n\t\t\t\tcase 'T4ASummaryReport':\n\t\t\t\tcase 'T4SummaryReport':\n\t\t\t\tcase 'TaxSummaryReport':\n\t\t\t\tcase 'TimesheetDetailReport':\n\t\t\t\tcase 'TimesheetSummaryReport':\n\t\t\t\tcase 'UserQualificationReport':\n\t\t\t\tcase 'UserRecruitmentDetailReport':\n\t\t\t\tcase 'UserRecruitmentSummaryReport':\n\t\t\t\tcase 'UserSummaryReport':\n\t\t\t\t\t//Leave report_name alone, as it should match exactly.\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'UserExpenseReport':\n\t\t\t\t\treport_name = 'ExpenseSummaryReport';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ExceptionReport':\n\t\t\t\t\treport_name = 'ExceptionSummaryReport';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'JobDetailReport':\n\t\t\t\t\treport_name = 'JobAnalysisReport';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'AffordableCareReport':\n\t\t\t\t\tif ( Global.getProductEdition() == 10 ) {\n\t\t\t\t\t\tTAlertManager.showAlert( Global.getUpgradeMessage() );\n\t\t\t\t\t\treport_name = null;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tProgressBar.closeOverlay();\n\t\t\t\t\tDebug.Text( 'ERROR: Saved Report name not defined: ' + report_name, 'SavedReportViewController.js', '', 'onViewClick', 10 );\n\t\t\t\t\treport_name = null;\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif ( Global.isSet( report_name ) && report_name ) {\n\t\t\t\tIndexViewController.openReport( this, report_name );\n\t\t\t}\n\t\t}\n\t}\n\n\tbuildEditViewUI() {\n\n\t\tsuper.buildEditViewUI();\n\t\tvar $this = this;\n\n\t\tvar tab_model = {\n\t\t\t'tab_report': { 'label': $.i18n._( 'Report' ) },\n\t\t\t'tab_schedule': {\n\t\t\t\t'label': $.i18n._( 'Schedule' ),\n\t\t\t\t'init_callback': 'initSubReportScheduleView',\n\t\t\t\t'show_permission_div': true\n\t\t\t},\n\t\t\t'tab_audit': true,\n\t\t};\n\t\tthis.setTabModel( tab_model );\n\n\t\tif ( !this.edit_only_mode ) {\n\t\t\tthis.navigation.AComboBox( {\n\t\t\t\tapi_class: TTAPI.APIUserReportData,\n\t\t\t\tid: this.script_name + '_navigation',\n\t\t\t\tallow_multiple_selection: false,\n\t\t\t\tlayout_name: 'global_user_report_data',\n\t\t\t\tnavigation_mode: true,\n\t\t\t\tshow_search_inputs: true\n\t\t\t} );\n\n\t\t\tthis.setNavigation();\n\n\t\t}\n\n\t\t//Tab 0 start\n\n\t\tvar tab_report = this.edit_view_tab.find( '#tab_report' );\n\n\t\tvar tab_report_column1 = tab_report.find( '.first-column' );\n\n\t\tthis.edit_view_tabs[0] = [];\n\n\t\tthis.edit_view_tabs[0].push( tab_report_column1 );\n\n\t\t// Name\n\n\t\tvar form_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'name', width: '100%' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Name' ), form_item_input, tab_report_column1, '' );\n\t\tform_item_input.parent().width( '45%' );\n\n\t\t// Default\n\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.CHECKBOX );\n\n\t\tform_item_input.TCheckbox( { field: 'is_default' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Default' ), form_item_input, tab_report_column1 );\n\n\t\t// Description\n\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_AREA );\n\n\t\tform_item_input.TTextInput( { field: 'description', width: '100%' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Description' ), form_item_input, tab_report_column1, '', null, null, true );\n\n\t\tform_item_input.parent().width( '45%' );\n\t}\n\n\tbuildSearchFields() {\n\n\t\tsuper.buildSearchFields();\n\t\tthis.search_fields = [\n\t\t\tnew SearchField( {\n\t\t\t\tlabel: $.i18n._( 'Name' ),\n\t\t\t\tin_column: 1,\n\t\t\t\tfield: 'name',\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: false,\n\t\t\t\tform_item_type: FormItemType.TEXT_INPUT\n\t\t\t} ),\n\t\t\tnew SearchField( {\n\t\t\t\tlabel: $.i18n._( 'Description' ),\n\t\t\t\tfield: 'description',\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: false,\n\t\t\t\tin_column: 1,\n\t\t\t\tform_item_type: FormItemType.TEXT_INPUT\n\t\t\t} ),\n\t\t\tnew SearchField( {\n\t\t\t\tlabel: $.i18n._( 'Created By' ),\n\t\t\t\tin_column: 2,\n\t\t\t\tfield: 'created_by',\n\t\t\t\tlayout_name: 'global_user',\n\t\t\t\tapi_class: TTAPI.APIUser,\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: false,\n\t\t\t\tscript_name: 'EmployeeView',\n\t\t\t\tform_item_type: FormItemType.AWESOME_BOX\n\t\t\t} ),\n\t\t\tnew SearchField( {\n\t\t\t\tlabel: $.i18n._( 'Updated By' ),\n\t\t\t\tin_column: 2,\n\t\t\t\tfield: 'updated_by',\n\t\t\t\tlayout_name: 'global_user',\n\t\t\t\tapi_class: TTAPI.APIUser,\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: false,\n\t\t\t\tscript_name: 'EmployeeView',\n\t\t\t\tform_item_type: FormItemType.AWESOME_BOX\n\t\t\t} )\n\n\t\t];\n\t}\n\n\tinitSubReportScheduleView() {\n\t\tvar $this = this;\n\n\t\tif ( !this.current_edit_record.id ) {\n\t\t\tTTPromise.resolve( 'BaseViewController', 'onTabShow' ); //Since search() isn't called in this case, and we just display the \"Please Save This Record ...\" message, resolve the promise.\n\t\t\treturn;\n\t\t}\n\n\t\tif ( Global.getProductEdition() >= 15 ) {\n\t\t\tif ( this.sub_report_schedule_view_controller ) {\n\t\t\t\tthis.sub_report_schedule_view_controller.buildContextMenu( true );\n\t\t\t\tthis.sub_report_schedule_view_controller.setDefaultMenu();\n\t\t\t\t$this.sub_report_schedule_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t\t$this.sub_report_schedule_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t\t$this.sub_report_schedule_view_controller.initData(); //Init data in this parent view\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tGlobal.loadViewSource( 'ReportSchedule', 'ReportScheduleViewController.js', function() {\n\t\t\t\tvar tab = $this.edit_view_tab.find( '#tab_schedule' );\n\n\t\t\t\tvar firstColumn = tab.find( '.first-column-sub-view' );\n\n\t\t\t\tTTPromise.add( 'initSubReportScheduleView', 'init' );\n\t\t\t\tTTPromise.wait( 'initSubReportScheduleView', 'init', function() {\n\t\t\t\t\tfirstColumn.css( 'opacity', '1' );\n\t\t\t\t} );\n\n\t\t\t\tfirstColumn.css( 'opacity', '0' ); //Hide the grid while its loading/sizing.\n\n\t\t\t\tGlobal.trackView( 'Sub' + 'ReportSchedule' + 'View' );\n\t\t\t\tReportScheduleViewController.loadSubView( firstColumn, beforeLoadView, afterLoadView );\n\t\t\t} );\n\t\t} else {\n\t\t\tthis.edit_view_tab.find( '#tab_schedule' ).find( '.first-column-sub-view' ).css( 'display', 'none' );\n\t\t\tthis.edit_view.find( '.permission-defined-div' ).css( 'display', 'block' );\n\t\t\tthis.edit_view.find( '.permission-message' ).html( Global.getUpgradeMessage() );\n\t\t\tthis.edit_view.find( '.save-and-continue-button-div' ).css( 'display', 'none' );\n\t\t}\n\n\t\tfunction beforeLoadView() {\n\n\t\t}\n\n\t\tfunction afterLoadView( subViewController ) {\n\t\t\t$this.sub_report_schedule_view_controller = subViewController;\n\t\t\t$this.sub_report_schedule_view_controller.parent_key = 'user_report_data_id';\n\t\t\t$this.sub_report_schedule_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_report_schedule_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_report_schedule_view_controller.parent_view_controller = $this;\n\t\t\t$this.sub_report_schedule_view_controller.sub_view_mode = true;\n\n\t\t\t$this.sub_report_schedule_view_controller.initData(); //Init data in this parent view\n\t\t}\n\t}\n\n\tuniformVariable( records ) {\n\n\t\t// Remove in next commit, related to #2698 fix, no longer needed but semi-big refactor to remove\n\t\t// if ( records.hasOwnProperty( 'data' ) && records.data.hasOwnProperty( 'config' ) && records.data.config.hasOwnProperty( 'filter' ) ) {\n\t\t// \trecords.data.config.filter_ = records.data.config.filter;\n\t\t// }\n\n\t\treturn records;\n\t}\n\n\tonSaveDone( result ) {\n\t\t//onSaveDoneCallback is set in Report controller\n\t\tif ( this.parent_view_controller && this.parent_view_controller.onSaveDoneCallback ) {\n\t\t\tthis.parent_view_controller.onSaveDoneCallback( result, this.current_edit_record );\n\t\t}\n\t}\n\n\tonSaveAndContinueDone( result ) {\n\t\tthis.onSaveDone( result );\n\t}\n\n\tonSaveAndNextDone( result ) {\n\t\tthis.onSaveDone( result );\n\t}\n\n\tgetFilterColumnsFromDisplayColumns() {\n\t\tvar column_filter = {};\n\t\tcolumn_filter.id = true;\n\t\tcolumn_filter.is_owner = true;\n\t\tcolumn_filter.is_child = true;\n\t\tcolumn_filter.script = true; //Include script column so onViewClick() knows which view to open for saved reports.\n\n\t\t// Error: Unable to get property 'getGridParam' of undefined or null reference\n\t\tvar display_columns = [];\n\t\tif ( this.grid ) {\n\t\t\tdisplay_columns = this.grid.getGridParam( 'colModel' );\n\t\t}\n\n\t\tif ( display_columns ) {\n\t\t\tvar len = display_columns.length;\n\n\t\t\tfor ( var i = 0; i < len; i++ ) {\n\t\t\t\tvar column_info = display_columns[i];\n\t\t\t\tcolumn_filter[column_info.name] = true;\n\t\t\t}\n\t\t}\n\n\t\treturn column_filter;\n\t}\n\n\tonAddClick( reportData ) {\n\n\t\tProgressBar.closeOverlay();\n\t\tvar $this = this;\n\t\tthis.setCurrentEditViewState( 'new' );\n\t\t$this.openEditView();\n\t\t$this.current_edit_record = reportData;\n\t\t$this.initEditView();\n\t}\n\n\tsearchDone() {\n\t\t$( 'window' ).trigger( 'resize' );\n\t\tif ( this.sub_view_mode ) {\n\t\t\tTTPromise.resolve( 'SubSavedReportView', 'init' );\n\t\t}\n\t\tsuper.searchDone();\n\t}\n}\n\nSavedReportViewController.loadSubView = function( container, beforeViewLoadedFun, afterViewLoadedFun ) {\n\n\tGlobal.loadViewSource( 'SavedReport', 'SubSavedReportView.html', function( result ) {\n\n\t\tvar args = {};\n\t\tvar template = _.template( result );\n\n\t\tif ( Global.isSet( beforeViewLoadedFun ) ) {\n\t\t\tbeforeViewLoadedFun();\n\t\t}\n\n\t\tif ( Global.isSet( container ) ) {\n\t\t\tcontainer.html( template( args ) );\n\t\t\tif ( Global.isSet( afterViewLoadedFun ) ) {\n\t\t\t\tTTPromise.wait( 'BaseViewController', 'initialize', function() {\n\t\t\t\t\tafterViewLoadedFun( window.sub_saved_report_view_controller );\n\t\t\t\t} );\n\t\t\t}\n\n\t\t}\n\n\t} );\n\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOTM3Mi5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBTztBQUNQLDJCQUEyQjtBQUMzQixFQUFFLENBQUM7QUFDSDs7QUFFQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLHNCQUFzQixDQUFDO0FBQ3ZCLHFCQUFxQixDQUFDOztBQUV0QjtBQUNBLElBQUk7O0FBRUo7QUFDQTs7QUFFQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQSxJQUFJO0FBQ0o7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBLEtBQUs7QUFDTDtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQSxJQUFJO0FBQ0o7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsT0FBTztBQUNQO0FBQ0E7QUFDQTtBQUNBLE1BQU07QUFDTjtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtB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