"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["payroll-remittance_wizard-PayrollRemittanceAgencyEventWizardStepPublish","wizard-WizardStep"],{8880:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"WizardStep\": () => (/* binding */ WizardStep)\n/* harmony export */ });\n/* harmony import */ var _views_TTBackboneView__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6739);\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\n\n\nclass WizardStep extends _views_TTBackboneView__WEBPACK_IMPORTED_MODULE_0__.TTBackboneView {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tprevious_step_name: null,\n\t\t\tnext_step_name: null,\n\t\t\tbuttons: null,\n\t\t\twizard_obj: null, //rename to wizard_obj\n\n\t\t\tclicked_buttons: {},\n\t\t\treload: false,\n\n\t\t\tapi: null,\n\n\t\t\t//override in children\n\t\t\tname: 'undefined',\n\t\t\ttitle: $.i18n._( 'Undefined Step' ),\n\t\t\tinstructions: $.i18n._( 'Undefined step data' )\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinitialize( wizard_obj ) {\n\t\tsuper.initialize( wizard_obj );\n\n\t\tthis.buttons = {};\n\t\tthis.clicked_buttons = {}; //Clear clicked buttons on each step so checking that all buttons are clicked doesn't carry state from one step to the next. (ie: They click a required button on Step 2, but not Step 3, the count for required buttons would still match as 1)\n\t\tthis.reload = false;\n\t\tthis.setWizardObject( wizard_obj );\n\t\tvar $this = this;\n\t\tthis.init();\n\t}\n\n\t//Children must always call render()\n\tinit() {\n\t\tthis.render();\n\t}\n\n\tinitCardsBlock() {\n\t\t$( this.wizard_obj.el ).find( '#cards' ).html( '' );\n\t}\n\n\tsetTitle( title ) {\n\t\t$( this.wizard_obj.el ).find( '.title-1' ).html( title );\n\t}\n\n\tsetInstructions( instructions, callback ) {\n\n\t\tif ( $( this.el ).find( '.instructions' ).length == 0 ) {\n\t\t\t$( this.el ).find( '.progress-bar' ).append( '
' );\n\t\t}\n\n\t\t$( this.el ).find( '.progress-bar .instructions' ).html( instructions );\n\n\t\tif ( typeof callback == 'function' ) {\n\t\t\tcallback();\n\t\t}\n\t}\n\n\tsetWizardObject( val ) {\n\t\tthis.wizard_obj = val;\n\t\tthis.el = this.wizard_obj.el;\n\t}\n\n\tgetWizardObject() {\n\t\treturn this.wizard_obj;\n\t}\n\n\tsetNextStepName( val ) {\n\t\tthis.next_step_name = val;\n\t}\n\n\tgetNextStepName() {\n\t\treturn false;\n\t}\n\n\tsetPreviousStepName( val ) {\n\t\tthis.previous_step_name = val;\n\t}\n\n\tgetPreviousStepName() {\n\t\treturn false;\n\t}\n\n\trender() {\n\t\tthis.initCardsBlock();\n\t\treturn this._render();\n\t}\n\n\t_render() {\n\t\treturn;\n\t\t//always overrirde\n\t}\n\n\tappend( content ) {\n\t\t$( this.wizard_obj.el ).find( '.content' ).append( content );\n\t}\n\n\tappendButton( button ) {\n\t\t$( this.wizard_obj.el ).find( '#cards' ).append( button );\n\t}\n\n\tsetGrid( gridId, grid_div, allMultipleSelection ) {\n\n\t\tif ( !allMultipleSelection ) {\n\t\t\tallMultipleSelection = false;\n\t\t}\n\n\t\t$( '#' + gridId ).remove(); //Remove the grid to prevent JS Exception: Uncaught TypeError: Failed to execute 'replaceChild' on 'Node': parameter 2 is not of type 'Node'.\n\n\t\tthis.append( grid_div );\n\n\t\tvar grid = $( '#' + gridId );\n\n\t\tvar grid_columns = this.getGridColumns( gridId );\n\n\t\tvar $this = this;\n\n\t\tgrid = new TTGrid( gridId, {\n\t\t\tonSelectRow: function( e ) {\n\t\t\t\t$this.onGridSelectRow( e );\n\t\t\t},\n\t\t\tonSelectAll: function( e ) {\n\t\t\t\tfor ( var n in e ) {\n\t\t\t\t\t$this.onGridSelectRow( e[n] );\n\t\t\t\t}\n\t\t\t},\n\t\t\tondblClickRow: function() {\n\t\t\t\t$this.onGridDblClickRow();\n\t\t\t},\n\t\t\tmultiselect: false,\n\t\t\twinMultiSelect: false\n\t\t}, grid_columns );\n\n\t\tthis.setGridSize( grid );\n\t\tthis.setGridGroupColumns( gridId );\n\n\t\treturn grid; //allowing chaining off this method.\n\t}\n\n\tgetGridColumns( gridId, callBack ) {\n\t\t//override if step object needs a grid.\n\t}\n\n\tsetGridAutoHeight( grid, length ) {\n\t\tif ( length > 0 && length < 10 ) {\n\t\t\tgrid.grid.setGridHeight( length * 23 );\n\t\t} else if ( length > 10 ) {\n\t\t\tgrid.grid.setGridHeight( 400 );\n\t\t}\n\t}\n\n\tsetGridSize( grid ) {\n\t\tgrid.grid.setGridWidth( $( this.wizard_obj.el ).find( '.content .grid-div' ).width() - 11 );\n\t\tgrid.grid.setGridHeight( $( this.wizard_obj.el ).find( '.content' ).height() - 150 ); //During merge, this wasn't in MASTER branch.\n\t}\n\n\tgetRibbonButtonBox() {\n\t\tvar div = $( '' );\n\t\tvar ul = $( '' );\n\n\t\tdiv.append( ul );\n\n\t\treturn div;\n\t}\n\n\t/**\n\t * to get old-style icons, don't provide desc\n\t * to get card-style icons, provide desc\n\t * to get card-style icons without a description, send a blank string ('') as desc\n\t *\n\t * @param id\n\t * @param icon\n\t * @param label\n\t * @param desc\n\t * @returns {*|jQuery|HTMLElement}\n\t */\n\tgetRibbonButton( id, icon, label, desc ) {\n\t\t//prelaod imgages to reduce the appearance of phantom flashing\n\t\t$( '' )[0].src = icon;\n\n\t\tif ( typeof desc == 'undefined' ) {\n\t\t\tvar button = $( '' );\n\t\t\treturn button;\n\t\t}\n\n\t\tvar container = $( '' );\n\n\t\tvar img = $( '' );\n\n\t\tvar right_container = $( '' );\n\n\t\tvar title = $( '' );\n\t\ttitle.html( label ? label : '' );\n\n\t\tvar description = $( '' );\n\t\tdescription.html( desc ? desc : '' );\n\n\t\tcontainer.append( img );\n\t\tright_container.append( title );\n\t\tright_container.append( description );\n\t\tcontainer.append( right_container );\n\n\t\treturn container;\n\t}\n\n\t//\n\t//stubs that should be overrideen\n\t//\n\n\tonGridSelectRow( selected_id ) {\n\t\t//\n\t}\n\n\tonGridDblClickRow( selected_id ) {\n\t\t//\n\t}\n\n\tonNavigationClick( e, icon ) {\n\t\tif ( e ) {\n\t\t\tthis.addButtonClick( e, icon );\n\t\t}\n\n\t\t//Prevent double clicking on tax wizard buttons.\n\t\tProgressBar.showOverlay();\n\n\t\t//this flag is turned off in ProgressBarManager::closeOverlay, or 2s whichever happens first\n\t\tif ( window.clickProcessing == true ) {\n\t\t\treturn;\n\t\t} else {\n\t\t\twindow.clickProcessing = true;\n\t\t\twindow.clickProcessingHandle = window.setTimeout( function() {\n\t\t\t\tif ( window.clickProcessing == true ) {\n\t\t\t\t\twindow.clickProcessing = false;\n\t\t\t\t\tProgressBar.closeOverlay();\n\t\t\t\t}\n\t\t\t}, 1000 );\n\t\t}\n\n\t\tvar api_payroll_remittance_agency_event = TTAPI.APIPayrollRemittanceAgencyEvent;\n\t\tapi_payroll_remittance_agency_event.doLogWizardEvent( this.getWizardObject().selected_remittance_agency_event_id, 'step_action', this.current_step, icon, false, true, {\n\t\t\tonResult: function( result ) {\n\t\t\t}\n\t\t} );\n\t\tthis._onNavigationClick( icon );\n\t}\n\n\t//Overridden in each Wizard step.\n\t_onNavigationClick( icon ) {\n\t}\n\n\t//Overridden in each Wizard step that needs to determine if required buttons are clicked or not.\n\tisRequiredButtonsClicked() {\n\t\treturn true;\n\t}\n\n\taddButtonClick( e, icon ) {\n\t\t// $(e.target).addClass('clicked_wizard_icon');\n\t\t// $(e.target).find('img').addClass('disable-image');\n\t\tvar element = $( e.target );\n\t\tif ( !element.hasClass( 'wizard_icon_card' ) ) {\n\t\t\telement = $( e.target ).parents( '.wizard_icon_card' );\n\t\t}\n\t\telement.addClass( 'clicked_wizard_icon' );\n\t\telement.addClass( 'disable-image' );\n\n\t\tthis.clicked_buttons[icon] = true;\n\t}\n\n\tisButtonClicked( icon ) {\n\t\tif ( this.clicked_buttons.hasOwnProperty( icon ) && typeof this.clicked_buttons[icon] != 'undefined' ) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\taddButton( context_name, icon_name, title, description, button_name ) {\n\t\tif ( typeof button_name == 'undefined' ) {\n\t\t\tbutton_name = context_name;\n\t\t}\n\n\t\tvar button = this.getRibbonButton( context_name, Global.getRibbonIconRealPath( icon_name ), title, description );\n\n\t\tvar $this = this;\n\t\tbutton.unbind( 'click' ).bind( 'click', function( e ) {\n\t\t\t$this.onNavigationClick( e, button_name );\n\t\t} );\n\t\t//ribbon_button_box.find('ul').append(button);\n\n\t\tif ( this.isButtonClicked( button_name ) ) {\n\t\t\tbutton.addClass( 'clicked_wizard_icon' );\n\t\t\tbutton.addClass( 'disable-image' );\n\t\t}\n\n\t\tthis.buttons[icon_name] = button;\n\t\tthis.appendButton( button );\n\n\t\treturn button;\n\t}\n\n\tsetGridGroupColumns( gridId ) {\n\n\t}\n\n\turlClick( action_id ) {\n\t\tthis.api.getMakePaymentData( this.getWizardObject().selected_remittance_agency_event_id, action_id, {\n\t\t\tonResult: function( result ) {\n\t\t\t\tvar url = result.getResult();\n\t\t\t\tDebug.Text( 'Redirecting to external site: ' + url, 'WizardStep.js', 'WizardStep', 'urlClick', 10 );\n\t\t\t\twindow.open( url );\n\t\t\t}\n\t\t} );\n\t}\n\n\tpaymentServicesClick( action_id ) {\n\t\tthis.api.getFileAndPayWithPaymentServicesData( this.getWizardObject().selected_remittance_agency_event_id, action_id, {\n\t\t\tonResult: function( result ) {\n\t\t\t\tvar retval = result.getResult();\n\n\t\t\t\tif ( retval['user_message'] && retval['user_message'] != '' ) {\n\t\t\t\t\tTAlertManager.showAlert( retval['user_message'] );\n\t\t\t\t} else {\n\t\t\t\t\tif ( retval == false ) {\n\t\t\t\t\t\tTAlertManager.showAlert( $.i18n._( 'ERROR! Something went wrong, please contact customer service immediately!' ) );\n\t\t\t\t\t}\n\t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dFx0fVxuXHRcdFx0fVxuXHRcdH0gKTtcblx0fVxuXG59Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///8880\n")},1947:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"PayrollRemittanceAgencyEventWizardStepPublish\": () => (/* binding */ PayrollRemittanceAgencyEventWizardStepPublish)\n/* harmony export */ });\n/* harmony import */ var _global_widgets_wizard_WizardStep__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8880);\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\n\n\nclass PayrollRemittanceAgencyEventWizardStepPublish extends _global_widgets_wizard_WizardStep__WEBPACK_IMPORTED_MODULE_0__.WizardStep {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tname: 'publish',\n\t\t\tapi: null,\n\t\t\tel: $( '.wizard.process_transactions_wizard' )\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinit() {\n\t\tthis.api = TTAPI.APIPayrollRemittanceAgencyEvent;\n\t\tthis.render();\n\t}\n\n\tgetPreviousStepName() {\n\t\treturn 'submit';\n\t}\n\n\t_render() {\n\t\tthis.setTitle( $.i18n._( 'Publish Information for Employees' ) );\n\t\tthis.setInstructions( $.i18n._( 'Publish forms for employees to access online' ) + ': ' );\n\n\t\tvar $this = this;\n\t\tthis.getWizardObject().getPayrollRemittanceAgencyEventById( this.getWizardObject().selected_remittance_agency_event_id, null, function( result ) {\n\t\t\t$this.getWizardObject().selected_remittance_agency_event = result;\n\t\t\t$this.getWizardObject().buildEventDataBlock( 'payroll_remittance_agency_event_wizard-publish-event_details', result );\n\t\t\t$this.initCardsBlock();\n\n\t\t\tswitch ( $this.getWizardObject().selected_remittance_agency_event.type_id ) {\n\t\t\t\t//Canada\n\t\t\t\tcase 'T4':\n\t\t\t\t\t$this.addButton( 'printIcon',\n\t\t\t\t\t\t'payroll_remittance_agency-35x35.png',\n\t\t\t\t\t\t$.i18n._( 'Publish' ),\n\t\t\t\t\t\t$.i18n._( 'Publish T4 forms for employees to access online with their own login under Payroll -> Government Documents.' )\n\t\t\t\t\t);\n\n\t\t\t\t\t$this.addButton( 'EmployeeT4',\n\t\t\t\t\t\t'print-35x35.png',\n\t\t\t\t\t\t$.i18n._( 'Employee T4 Forms' ),\n\t\t\t\t\t\t$.i18n._( 'Print employee T4 forms for distribution to employees by hand or mail.' )\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'T4A':\n\t\t\t\t\t$this.addButton( 'printIcon',\n\t\t\t\t\t\t'payroll_remittance_agency-35x35.png',\n\t\t\t\t\t\t$.i18n._( 'Publish' ),\n\t\t\t\t\t\t$.i18n._( 'Publish T4A forms for employees to access online with their own login under Payroll -> Government Documents.' )\n\t\t\t\t\t);\n\n\t\t\t\t\t$this.addButton( 'EmployeeT4A',\n\t\t\t\t\t\t'print-35x35.png',\n\t\t\t\t\t\t$.i18n._( 'Employee T4A Forms' ),\n\t\t\t\t\t\t$.i18n._( 'Print employee T4A forms for distribution to employees by hand or mail.' )\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\n\t\t\t\t//US\n\t\t\t\tcase 'FW2':\n\t\t\t\t\t$this.addButton( 'printIcon',\n\t\t\t\t\t\t'payroll_remittance_agency-35x35.png',\n\t\t\t\t\t\t$.i18n._( 'Publish' ),\n\t\t\t\t\t\t$.i18n._( 'Publish W2 forms for employees to access online with their own login under Payroll -> Government Documents.' )\n\t\t\t\t\t);\n\n\t\t\t\t\t$this.addButton( 'EmployeeW2',\n\t\t\t\t\t\t'print-35x35.png',\n\t\t\t\t\t\t$.i18n._( 'Print employee W2 Forms' ) + ' (' + $.i18n._( 'Optional' ) + ') ',\n\t\t\t\t\t\t$.i18n._( 'Print employee W2 forms for distribution to employees by hand or mail.' )\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'F1099NEC':\n\t\t\t\t\t$this.addButton( 'printIcon',\n\t\t\t\t\t\t'payroll_remittance_agency-35x35.png',\n\t\t\t\t\t\t$.i18n._( 'Publish' ),\n\t\t\t\t\t\t$.i18n._( 'Publish 1099-NEC forms for recipients to access online with their own login under Payroll -> Government Documents.' )\n\t\t\t\t\t);\n\n\t\t\t\t\t$this.addButton( 'Employee1099Nec',\n\t\t\t\t\t\t'print-35x35.png',\n\t\t\t\t\t\t$.i18n._( 'Print employee 1099-NEC Forms' ) + ' (' + $.i18n._( 'Optional' ) + ') ',\n\t\t\t\t\t\t$.i18n._( 'Print employee 1099-NEC forms for distribution to recipients by hand or mail.' )\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$this.getWizardObject().enableButtons();\n\t\t} );\n\t}\n\n\t_onNavigationClick( icon ) {\n\t\tvar $this = this;\n\t\tswitch ( this.getWizardObject().selected_remittance_agency_event.type_id ) {\n\t\t\t//Canada\n\t\t\tcase 'T4':\n\t\t\t\tswitch ( icon ) {\n\t\t\t\t\tcase 'printIcon':\n\t\t\t\t\t\tthis.getWizardObject().disableForCommunity( function() {\n\t\t\t\t\t\t\t$this.publishReportToEmployee();\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'EmployeeT4':\n\t\t\t\t\t\tGlobal.loadScript( 'views/reports/t4_summary/T4SummaryReportViewController', function() {\n\t\t\t\t\t\t\t$this.getWizardObject().getReport( 'pdf_form' );\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'T4A':\n\t\t\t\tswitch ( icon ) {\n\t\t\t\t\tcase 'printIcon':\n\t\t\t\t\t\tthis.getWizardObject().disableForCommunity( function() {\n\t\t\t\t\t\t\t$this.publishReportToEmployee();\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'EmployeeT4A':\n\t\t\t\t\t\tGlobal.loadScript( 'views/reports/t4a_summary/T4ASummaryReportViewController', function() {\n\t\t\t\t\t\t\t$this.getWizardObject().getReport( 'pdf_form' );\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t//US\n\t\t\tcase 'FW2':\n\t\t\t\tswitch ( icon ) {\n\t\t\t\t\tcase 'printIcon':\n\t\t\t\t\t\tthis.getWizardObject().disableForCommunity( function() {\n\t\t\t\t\t\t\t$this.publishReportToEmployee();\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'EmployeeW2':\n\t\t\t\t\t\tGlobal.loadScript( 'views/reports/formw2/FormW2ReportViewController', function() {\n\t\t\t\t\t\t\t$this.getWizardObject().getReport( 'pdf_form' );\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'F1099NEC':\n\t\t\t\tswitch ( icon ) {\n\t\t\t\t\tcase 'printIcon':\n\t\t\t\t\t\tthis.getWizardObject().disableForCommunity( function() {\n\t\t\t\t\t\t\t$this.publishReportToEmployee();\n\t\t\t\t\t\t} );\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'Employee1099Nec':\n\t\t\t\t\t\tGlobal.loadScript( 'views/reports/form1099/Form1099NecReportViewController', function() {\n\t\t\t\t\t\t\t$this.getWizardObject().getReport( 'pdf_form' );\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t}\n\t}\n\n\tpublishReportToEmployee() {\n\t\tthis.api.getReportData( this.getWizardObject().selected_remittance_agency_event_id, 'pdf_form_publish_employee', {\n\t\t\tonResult: function( result ) {\n\t\t\t\tvar retval = result.getResult();\n\n\t\t\t\tif ( retval.api_retval ) {\n\t\t\t\t\tUserGenericStatusWindowController.open( retval.api_retval, LocalCacheData.getLoginUser().id, function() {\n\t\t\t\t\t} );\n\t\t\t\t} else {\n\t\t\t\t\tTAlertManager.showAlert( $.i18n._( 'No results found.' ), $.i18n._( 'Warning' ), function() {\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}\n\n\tgetPDFForm( scriptPath ) {\n\t\tGlobal.loadScript( scriptPath, function() {\n\t\t\t$this.getWizardObject().getReport( 'pdf_form' );\n\t\t} );\n\t}\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTk0Ny5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQWdFOztBQUV6RCw0REFBNEQseUVBQVU7QUFDN0UsMkJBQTJCO0FBQzNCLEVBQUUsQ0FBQztBQUNIO0FBQ0E7QUFDQSxPQUFPLENBQUM7QUFDUixJQUFJOztBQUVKO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0EsaUJBQWlCLENBQUM7QUFDbEIsd0JBQXdCLENBQUM7O0FBRXpCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLE1BQU0sQ0FBQztBQUNQLE1BQU0sQ0FBQztBQUNQOztBQUVBO0FBQ0E7QUFDQSxNQUFNLENBQUM7QUFDUCxNQUFNLENBQUM7QUFDUDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsTUFBTSxDQUFDO0FBQ1AsTUFBTSxDQUFDO0FBQ1A7O0FBRUE7QUFDQTtBQUNBLE1BQU0sQ0FBQztBQUNQLE1BQU0sQ0FBQztBQUNQO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQSxNQUFNLENBQUM7QUFDUCxNQUFNLENBQUM7QUFDUDs7QUFFQTtBQUNBO0FBQ0EsTUFBTSx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