"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["attendance-timesheet-UserDateTotalParentViewController"],{1285:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"UserDateTotalParentViewController\": () => (/* binding */ UserDateTotalParentViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass UserDateTotalParentViewController extends BaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tel: '#user_date_total_parent_view_container',\n\t\t\tsub_user_date_total_view_controller: null,\n\n\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinit( options ) {\n\t\t//this._super('initialize', options );\n\t\tthis.edit_view_tpl = 'UserDateTotalParentEditView.html';\n\t\tthis.permission_id = 'punch';\n\t\tthis.script_name = 'UserDateTotalParentView';\n\t\tthis.viewId = 'UserDateTotalParent';\n\t\tthis.table_name_key = 'user_date_total_parent';\n\t\tthis.context_menu_name = $.i18n._( 'Accumulated Time' );\n\t\tthis.navigation_label = $.i18n._( 'Accumulated Time' );\n\t\tthis.api = TTAPI.APIUserDateTotal;\n\n\t\tthis.render();\n\n\t\tif ( this.sub_view_mode ) {\n\t\t\tthis.buildContextMenu( true );\n\t\t} else {\n\t\t\tthis.buildContextMenu();\n\t\t}\n\n\t\t//call init data in parent view\n\t\tif ( !this.sub_view_mode ) {\n\t\t\tthis.initData();\n\t\t}\n\t}\n\n\tremoveEditView() {\n\t\tsuper.removeEditView();\n\n\t\tif ( this.parent_view_controller && this.parent_view_controller.viewId === 'TimeSheet' ) {\n\t\t\tthis.parent_view_controller.onSubViewRemoved();\n\t\t}\n\t}\n\n\tgetCustomContextMenuModel() {\n\t\treturn {\n\t\t\tinclude:\n\t\t\t\t['cancel'],\n\t\t\texclude:\n\t\t\t\t['default']\n\t\t};\n\t}\n\n\topenEditView( date_str ) {\n\n\t\tvar $this = this;\n\n\t\tif ( $this.edit_only_mode ) {\n\n\t\t\tTTPromise.add( 'UserDateTotalParent', 'init' );\n\t\t\tif ( !$this.edit_view ) {\n\t\t\t\t$this.initEditViewUI( $this.viewId, $this.edit_view_tpl );\n\t\t\t}\n\n\t\t\tvar date_stamp = Global.strToDate( date_str, 'YYYY-MM-DD' ).format();\n\n\t\t\t$this.current_edit_record = {\n\t\t\t\tdate: date_str,\n\t\t\t\tuser_id: LocalCacheData.getAllURLArgs().user_id,\n\t\t\t\tdate_stamp: date_stamp\n\t\t\t};\n\t\t\tTTPromise.wait( 'UserDateTotalParent', 'init', function() {\n\t\t\t\t$this.initEditView();\n\t\t\t} );\n\n\t\t} else {\n\t\t\tif ( !this.edit_view ) {\n\t\t\t\tthis.initEditViewUI( $this.viewId, $this.edit_view_tpl );\n\t\t\t}\n\n\t\t}\n\t}\n\n\tbuildSearchFields() {\n\t\tsuper.buildSearchFields();\n\t\tthis.search_fields = [];\n\t}\n\n\tbuildEditViewUI() {\n\n\t\tsuper.buildEditViewUI();\n\n\t\tvar $this = this;\n\n\t\tvar tab_model = {\n\t\t\t'tab_user_date_total_parent': {\n\t\t\t\t'label': $.i18n._( 'Accumulated Time' ),\n\t\t\t\t'html_template': this.getUserDateTotalParentTabHTML(),\n\t\t\t},\n\t\t};\n\t\tthis.setTabModel( tab_model );\n\n\t\tTTPromise.resolve( 'UserDateTotalParent', 'init' );\n\t}\n\n\tsetCurrentEditRecordData() {\n\n\t\tthis.edit_view_tab.find( '#tab_user_date_total_parent' ).find( '.first-column-sub-view' ).css( 'display', 'block' );\n\t\tthis.initSubUserDateTotalView( 'tab_user_date_total_parent' );\n\t\tthis.setEditViewDataDone();\n\t}\n\n\tinitSubUserDateTotalView( tab_id ) {\n\t\tvar $this = this;\n\n\t\tif ( this.sub_user_date_total_view_controller ) {\n\t\t\tthis.sub_user_date_total_view_controller.buildContextMenu( true );\n\t\t\tthis.sub_user_date_total_view_controller.setDefaultMenu();\n\t\t\t$this.sub_user_date_total_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_user_date_total_view_controller.getSubViewFilter = function( filter ) {\n\n\t\t\t\treturn getFilter( filter, this );\n\t\t\t};\n\n\t\t\t$this.sub_user_date_total_view_controller.initData();\n\t\t\treturn;\n\t\t}\n\n\t\tGlobal.loadScript( 'views/attendance/timesheet/UserDateTotalViewController.js', function() {\n\t\t\tvar tab = $this.edit_view_tab.find( '#' + tab_id );\n\t\t\tvar firstColumn = tab.find( '.first-column-sub-view' );\n\t\t\tGlobal.trackView( 'Sub' + 'UserDateTotal' + 'View' );\n\t\t\tUserDateTotalViewController.loadSubView( firstColumn, beforeLoadView, afterLoadView );\n\t\t} );\n\n\t\tfunction beforeLoadView() {\n\n\t\t}\n\n\t\tfunction afterLoadView( subViewController ) {\n\t\t\t$this.sub_user_date_total_view_controller = subViewController;\n\t\t\t$this.sub_user_date_total_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_user_date_total_view_controller.getSubViewFilter = function( filter ) {\n\n\t\t\t\treturn getFilter( filter, this );\n\t\t\t};\n\t\t\t$this.sub_user_date_total_view_controller.parent_view_controller = $this;\n\t\t\t$this.sub_user_date_total_view_controller.initData();\n\n\t\t}\n\n\t\tfunction getFilter( filter, target ) {\n\t\t\tvar date = Global.strToDate( target.parent_edit_record.date, 'YYYY-MM-DD' ).format();\n\n\t\t\tfilter.date_stamp = date;\n\t\t\tfilter.user_id = target.parent_edit_record.user_id; //Should be selected user_id\n\t\t\tfilter.object_type_id = [20, 25, 30, 40, 100, 110];\n\n\t\t\treturn filter;\n\t\t}\n\t}\n\n\tgetUserDateTotalParentTabHTML() {\n\t\treturn `\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
`;\n\t}\n\n}\n\nUserDateTotalParentViewController.loadView = function( container ) {\n\tGlobal.loadViewSource( 'UserDateTotalParent', 'UserDateTotalParentView.html', function( result ) {\n\t\tvar args = {};\n\t\tvar template = _.template( result );\n\n\t\tif ( Global.isSet( container ) ) {\n\t\t\tcontainer.html( template( args ) );\n\t\t} else {\n\t\t\tGlobal.contentContainer().html( template( args ) );\n\t\t}\n\n\t} );\n};\n\nUserDateTotalParentViewController.loadSubView = function( container, beforeViewLoadedFun, afterViewLoadedFun ) {\n\n\tGlobal.loadViewSource( 'UserDateTotalParent', 'SubUserDateTotalParentView.html', function( result ) {\n\t\tvar args = {};\n\t\tvar template = _.template( result );\n\t\tif ( Global.isSet( beforeViewLoadedFun ) ) {\n\t\t\tbeforeViewLoadedFun();\n\t\t}\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( sub_user_date_total_parent_view_controller );\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\n\t} );\n\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTI4NS5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBTztBQUNQLDJCQUEyQjtBQUMzQixFQUFFLENBQUM7QUFDSDtBQUNBOzs7QUFHQSxJQUFJOztBQUVKO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSwyQkFBMkIsQ0FBQztBQUM1QiwwQkFBMEIsQ0FBQztBQUMzQjs7QUFFQTs7QUFFQTtBQUNBO0FBQ0EsSUFBSTtBQUNKO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7O0FBRUE7O0FBRUE7O0FBRUE7Q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