"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["reports-schedule_summary-ScheduleSummaryReportViewController"],{2247:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ScheduleSummaryReportViewController\": () => (/* binding */ ScheduleSummaryReportViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass ScheduleSummaryReportViewController extends ReportBaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {} );\n\n\t\tsuper( options );\n\t}\n\n\tinitReport( options ) {\n\t\tthis.script_name = 'ScheduleSummaryReport';\n\t\tthis.viewId = 'ScheduleSummaryReport';\n\t\tthis.context_menu_name = $.i18n._( 'Schedule Summary' );\n\t\tthis.navigation_label = $.i18n._( 'Saved Report' );\n\t\tthis.view_file = 'ScheduleSummaryReportView.html';\n\t\tthis.api = TTAPI.APIScheduleSummaryReport;\n\t}\n\n\tgetCustomContextMenuModel() {\n\t\tvar context_menu_model = {\n\t\t\tgroups: {\n\t\t\t\tschedule: {\n\t\t\t\t\tlabel: $.i18n._( 'Schedule' ),\n\t\t\t\t\tid: this.script_name + 'Schedule'\n\t\t\t\t}\n\t\t\t},\n\t\t\texclude: [],\n\t\t\tinclude: [\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Print Summary' ),\n\t\t\t\t\tid: 'print',\n\t\t\t\t\taction_group_header: true,\n\t\t\t\t\taction_group: 'schedule',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\tpermission_result: true,\n\t\t\t\t\tpermission: true\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Individual Schedules' ),\n\t\t\t\t\tid: 'pdf_schedule',\n\t\t\t\t\taction_group: 'schedule',\n\t\t\t\t\tmenu_align: 'right'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Group - Combined' ),\n\t\t\t\t\tid: 'pdf_schedule_group_combined',\n\t\t\t\t\taction_group: 'schedule',\n\t\t\t\t\tmenu_align: 'right'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Group - Separated' ),\n\t\t\t\t\tid: 'pdf_schedule_group',\n\t\t\t\t\taction_group: 'schedule',\n\t\t\t\t\tmenu_align: 'right'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Group - Separated (Page Breaks)' ),\n\t\t\t\t\tid: 'pdf_schedule_group_pagebreak',\n\t\t\t\t\taction_group: 'schedule',\n\t\t\t\t\tmenu_align: 'right'\n\t\t\t\t}\n\t\t\t]\n\t\t};\n\n\t\treturn context_menu_model;\n\t}\n\n\t// Overriding empty ReportBaseViewController.processFilterField() called from base.openEditView to provide view specific logic.\n\tprocessFilterField() {\n\t\tfor ( var i = 0; i < this.setup_fields_array.length; i++ ) {\n\t\t\tvar item = this.setup_fields_array[i];\n\t\t\tif ( item.value === 'status_id' ) {\n\t\t\t\titem.value = 'filter';\n\t\t\t}\n\t\t}\n\t}\n\n\tonCustomContextClick( id, context_btn ) {\n\t\tswitch ( id ) {\n\t\t\tcase 'pdf_schedule':\n\t\t\tcase 'pdf_schedule_group_combined':\n\t\t\tcase 'pdf_schedule_group':\n\t\t\tcase 'pdf_schedule_group_pagebreak':\n\t\t\t\tthis.onReportMenuClick( id );\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tonReportMenuClick( id ) {\n\t\tthis.onViewClick( id );\n\t}\n\n\tsetFilterValue( widget, value ) {\n\t\twidget.setValue( value.status_id );\n\t}\n\n\tonFormItemChangeProcessFilterField( target, key ) {\n\t\tvar filter = target.getValue();\n\t\tthis.visible_report_values[key] = { status_id: filter };\n\t}\n\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWx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