"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["policy-holiday_policy-HolidayPolicyViewController"],{935:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"HolidayPolicyViewController\": () => (/* binding */ HolidayPolicyViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass HolidayPolicyViewController extends BaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tel: '#holiday_policy_view_container',\n\n\t\t\ttype_array: null,\n\t\t\tdefault_schedule_status_array: null,\n\t\t\tshift_on_holiday_type_array: null,\n\t\t\tworked_scheduled_days_array: null,\n\t\t\tdate_api: null,\n\t\t\tsub_holiday_view_controller: null\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 = 'HolidayPolicyEditView.html';\n\t\tthis.permission_id = 'holiday_policy';\n\t\tthis.viewId = 'HolidayPolicy';\n\t\tthis.script_name = 'HolidayPolicyView';\n\t\tthis.table_name_key = 'holiday_policy';\n\t\tthis.context_menu_name = $.i18n._( 'Holiday Policy' );\n\t\tthis.navigation_label = $.i18n._( 'Holiday Policy' );\n\t\tthis.api = TTAPI.APIHolidayPolicy;\n\t\tthis.date_api = TTAPI.APITTDate;\n\t\tthis.render();\n\t\tthis.buildContextMenu();\n\n\t\tthis.initData();\n\t}\n\n\t/* jshint ignore:start */\n\tinitOptions() {\n\t\tvar $this = this;\n\n\t\tvar options = [\n\t\t\t{ option_name: 'type', api: this.api },\n\t\t\t{ option_name: 'average_time_frequency_type', api: this.api },\n\t\t\t{ option_name: 'default_schedule_status', api: this.api },\n\t\t\t{ option_name: 'shift_on_holiday_type', api: this.api },\n\t\t];\n\n\t\tthis.initDropDownOptions( options );\n\n\t\tthis.initDropDownOption( 'scheduled_day', 'worked_scheduled_days', null, function( res ) {\n\t\t\tres = res.getResult();\n\t\t\t$this.worked_scheduled_days_array = $.extend( {}, res ); //\t Convert Array to Object\n\t\t} );\n\t}\n\n\t/* jshint ignore:end */\n\tbuildEditViewUI() {\n\n\t\tsuper.buildEditViewUI();\n\n\t\tvar $this = this;\n\n\t\tvar tab_model = {\n\t\t\t'tab_holiday_policy': { 'label': $.i18n._( 'Holiday Policy' ) },\n\t\t\t'tab_eligibility': { 'label': $.i18n._( 'Eligibility' ) },\n\t\t\t'tab_holiday_time': { 'label': $.i18n._( 'Holiday Time' ) },\n\t\t\t'tab_holidays': {\n\t\t\t\t'label': $.i18n._( 'Holidays' ),\n\t\t\t\t'init_callback': 'initSubHolidayView',\n\t\t\t\t'display_on_mass_edit': false\n\t\t\t},\n\t\t\t'tab_audit': true,\n\t\t};\n\t\tthis.setTabModel( tab_model );\n\n\t\tthis.navigation.AComboBox( {\n\t\t\tapi_class: TTAPI.APIHolidayPolicy,\n\t\t\tid: this.script_name + '_navigation',\n\t\t\tallow_multiple_selection: false,\n\t\t\tlayout_name: 'global_holiday',\n\t\t\tnavigation_mode: true,\n\t\t\tshow_search_inputs: true\n\t\t} );\n\n\t\tthis.setNavigation();\n\n\t\tvar tab_holiday_policy = this.edit_view_tab.find( '#tab_holiday_policy' );\n\n\t\t//Tab 0 start\n\n\t\tvar tab_holiday_policy_column1 = tab_holiday_policy.find( '.first-column' );\n\n\t\tthis.edit_view_tabs[0] = [];\n\n\t\tthis.edit_view_tabs[0].push( tab_holiday_policy_column1 );\n\n\t\tvar form_item_input;\n\t\tvar widgetContainer;\n\t\tvar label;\n\n\t\t//Name\n\t\tform_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_holiday_policy_column1, '' );\n\n\t\tform_item_input.parent().width( '45%' );\n\n\t\t// Description\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_AREA );\n\t\tform_item_input.TTextArea( { field: 'description', width: '100%' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Description' ), form_item_input, tab_holiday_policy_column1, '', null, null, true );\n\n\t\tform_item_input.parent().width( '45%' );\n\n\t\t// Type\n\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\n\t\tform_item_input.TComboBox( { field: 'type_id', set_empty: false } );\n\t\tform_item_input.setSourceData( $this.type_array );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Type' ), form_item_input, tab_holiday_policy_column1 );\n\n\t\t// Default Schedules Status\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\n\t\tform_item_input.TComboBox( { field: 'default_schedule_status_id' } );\n\t\tform_item_input.setSourceData( $this.default_schedule_status_array );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Default Schedules Status' ), form_item_input, tab_holiday_policy_column1 );\n\n\t\t// Recurring Holidays\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\t\tform_item_input.AComboBox( {\n\t\t\tapi_class: TTAPI.APIRecurringHoliday,\n\t\t\tallow_multiple_selection: true,\n\t\t\tlayout_name: 'global_recurring_holiday',\n\t\t\tshow_search_inputs: true,\n\t\t\tset_empty: true,\n\t\t\tfield: 'recurring_holiday_id'\n\t\t} );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Recurring Holidays' ), form_item_input, tab_holiday_policy_column1, '' );\n\n\t\t// Display Days\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\tform_item_input.TTextInput( { field: 'holiday_display_days', width: 50 } );\n\n\t\twidgetContainer = $( '
' );\n\t\tlabel = $( ' ' + $.i18n._( '(Days in Advance)' ) + '' );\n\n\t\twidgetContainer.append( form_item_input );\n\t\twidgetContainer.append( label );\n\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Display Holidays' ), form_item_input, tab_holiday_policy_column1, '', widgetContainer );\n\n\t\t// tab 1 start\n\t\tvar tab_eligibility = this.edit_view_tab.find( '#tab_eligibility' );\n\n\t\tvar tab_eligibility_column1 = tab_eligibility.find( '.first-column' );\n\n\t\tthis.edit_view_tabs[1] = [];\n\n\t\tthis.edit_view_tabs[1].push( tab_eligibility_column1 );\n\n\t\t// Minimum Employed Days\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'minimum_employed_days', width: 50 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Minimum Employed Days' ), form_item_input, tab_eligibility_column1, '' );\n\n\t\t// Employee Must Work at Least\n\t\tvar form_item_minimum_worked_days_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\tform_item_minimum_worked_days_input.TTextInput( { field: 'minimum_worked_days', width: 30 } );\n\n\t\tvar form_item_minimum_worked_period_days_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\tform_item_minimum_worked_period_days_input.TTextInput( { field: 'minimum_worked_period_days', width: 30 } );\n\n\t\tvar form_item_worked_scheduled_days_combobox = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_worked_scheduled_days_combobox.TComboBox( { field: 'worked_scheduled_days' } );\n\t\tform_item_worked_scheduled_days_combobox.setSourceData( $this.worked_scheduled_days_array );\n\n\t\twidgetContainer = $( '
' );\n\n\t\tvar label_1 = $( ' ' + $.i18n._( 'of the' ) + ' ' );\n\t\tvar label_2 = $( ' ' + $.i18n._( 'prior to the holiday' ) + ' ' );\n\t\tvar label_3 = $( ' ' + ' ' + ' ' );\n\n\t\twidgetContainer.append( form_item_minimum_worked_days_input );\n\t\twidgetContainer.append( label_1 );\n\t\twidgetContainer.append( form_item_minimum_worked_period_days_input );\n\t\twidgetContainer.append( label_3 );\n\t\twidgetContainer.append( form_item_worked_scheduled_days_combobox );\n\t\twidgetContainer.append( label_2 );\n\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Employee Must Work at Least' ), [form_item_minimum_worked_days_input, form_item_minimum_worked_period_days_input, form_item_worked_scheduled_days_combobox], tab_eligibility_column1, '', widgetContainer, true );\n\n\t\t// Default Schedules Status\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_input.TComboBox( { field: 'shift_on_holiday_type_id' } );\n\t\tform_item_input.setSourceData( $this.shift_on_holiday_type_array );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'On the Holiday, the Employee' ), form_item_input, tab_eligibility_column1, '', null, true );\n\n\t\t// Employee Must Work at Least\n\t\tform_item_minimum_worked_days_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\tform_item_minimum_worked_days_input.TTextInput( { field: 'minimum_worked_after_days', width: 30 } );\n\n\t\tform_item_minimum_worked_period_days_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\tform_item_minimum_worked_period_days_input.TTextInput( {\n\t\t\tfield: 'minimum_worked_after_period_days',\n\t\t\twidth: 30\n\t\t} );\n\n\t\tform_item_worked_scheduled_days_combobox = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_worked_scheduled_days_combobox.TComboBox( { field: 'worked_after_scheduled_days' } );\n\t\tform_item_worked_scheduled_days_combobox.setSourceData( $this.worked_scheduled_days_array );\n\n\t\twidgetContainer = $( '
' );\n\n\t\tlabel_1 = $( ' ' + $.i18n._( 'of the' ) + ' ' );\n\t\tlabel_2 = $( ' ' + $.i18n._( 'following the holiday' ) + ' ' );\n\t\tlabel_3 = $( ' ' + ' ' + ' ' );\n\n\t\twidgetContainer.append( form_item_minimum_worked_days_input );\n\t\twidgetContainer.append( label_1 );\n\t\twidgetContainer.append( form_item_minimum_worked_period_days_input );\n\t\twidgetContainer.append( label_3 );\n\t\twidgetContainer.append( form_item_worked_scheduled_days_combobox );\n\t\twidgetContainer.append( label_2 );\n\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Employee Must Work at Least' ), [form_item_minimum_worked_days_input, form_item_minimum_worked_period_days_input, form_item_worked_scheduled_days_combobox], tab_eligibility_column1, '', widgetContainer, true );\n\n\t\t// Eligible Contributing Shift\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\t\tform_item_input.AComboBox( {\n\t\t\tapi_class: TTAPI.APIContributingShiftPolicy,\n\t\t\tallow_multiple_selection: false,\n\t\t\tlayout_name: 'global_contributing_shift_policy',\n\t\t\tshow_search_inputs: true,\n\t\t\tset_empty: true,\n\t\t\tfield: 'eligible_contributing_shift_policy_id'\n\t\t} );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Contributing Shift Policy' ), form_item_input, tab_eligibility_column1, '', null, true );\n\n\t\t// tab 2 start\n\t\tvar tab_holiday_time = this.edit_view_tab.find( '#tab_holiday_time' );\n\n\t\tvar tab_holiday_time_column1 = tab_holiday_time.find( '.first-column' );\n\n\t\tthis.edit_view_tabs[2] = [];\n\n\t\tthis.edit_view_tabs[2].push( tab_holiday_time_column1 );\n\n\t\t// Total Time over\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\tform_item_input.TTextInput( { field: 'average_time_days', width: 30 } );\n\n\t\tvar form_item_average_time_frequency_combobox = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_average_time_frequency_combobox.TComboBox( { field: 'average_time_frequency_type_id' } );\n\t\tform_item_average_time_frequency_combobox.setSourceData( $this.average_time_frequency_type_array );\n\n\t\twidgetContainer = $( '
' );\n\n\t\twidgetContainer.append( form_item_input );\n\t\twidgetContainer.append( form_item_average_time_frequency_combobox );\n\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Total Time Over' ), [form_item_input, form_item_average_time_frequency_combobox], tab_holiday_time_column1, '', widgetContainer, true );\n\n\t\t// Average Time over\n\t\tvar form_item_average_time_worked_days_checkbox = Global.loadWidgetByName( FormItemType.CHECKBOX );\n\t\tform_item_average_time_worked_days_checkbox.TCheckbox( { field: 'average_time_worked_days' } );\n\n\t\tvar form_item_average_days_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\tform_item_average_days_input.TTextInput( { field: 'average_days', width: 30 } );\n\n\t\twidgetContainer = $( '
' );\n\n\t\tlabel_1 = $( ' ' + $.i18n._( 'Worked Days Only' ) + ' ' );\n\t\tlabel_2 = $( ' ' + $.i18n._( 'or' ) + ' ' );\n\t\tlabel_3 = $( ' ' + $.i18n._( 'days' ) + ' ' );\n\n\t\twidgetContainer.append( label_1 );\n\t\twidgetContainer.append( form_item_average_time_worked_days_checkbox );\n\t\twidgetContainer.append( label_2 );\n\t\twidgetContainer.append( form_item_average_days_input );\n\t\twidgetContainer.append( label_3 );\n\n\t\tthis.average_days_widgets = [label_2, form_item_average_days_input, label_3];\n\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Average Time Over' ), [form_item_average_time_worked_days_checkbox, form_item_average_days_input], tab_holiday_time_column1, '', widgetContainer, true );\n\n\t\t// Contributing Shift\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\t\tform_item_input.AComboBox( {\n\t\t\tapi_class: TTAPI.APIContributingShiftPolicy,\n\t\t\tallow_multiple_selection: false,\n\t\t\tlayout_name: 'global_contributing_shift_policy',\n\t\t\tshow_search_inputs: true,\n\t\t\tset_empty: true,\n\t\t\tfield: 'contributing_shift_policy_id'\n\t\t} );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Contributing Shift Policy' ), form_item_input, tab_holiday_time_column1, '', null, true );\n\n\t\t// Holiday Time\n\t\t// Minimum Time\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\tform_item_input.TTextInput( { field: 'minimum_time', mode: 'time_unit', need_parser_sec: true } );\n\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Holiday Time' ), form_item_input, tab_holiday_time_column1, '', null, true );\n\n\t\t// Maximum Time\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\tform_item_input.TTextInput( { field: 'maximum_time', mode: 'time_unit', need_parser_sec: true } );\n\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Maximum Time' ), form_item_input, tab_holiday_time_column1, '', null, true );\n\n\t\t// Always Apply Over Time/Premium Policies\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.CHECKBOX );\n\t\tform_item_input.TCheckbox( { field: 'force_over_time_policy' } );\n\n\t\twidgetContainer = $( '
' );\n\t\tlabel = $( ' (' + $.i18n._( 'Even if they are not eligible for holiday pay' ) + ')' );\n\n\t\twidgetContainer.append( form_item_input );\n\t\twidgetContainer.append( label );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Always Apply Over Time/Premium Policies' ), form_item_input, tab_holiday_time_column1, '', widgetContainer, true );\n\n\t\t// Rounding Policy\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\t\tform_item_input.AComboBox( {\n\t\t\tapi_class: TTAPI.APIRoundIntervalPolicy,\n\t\t\tallow_multiple_selection: false,\n\t\t\tlayout_name: 'global_round_interval',\n\t\t\tshow_search_inputs: true,\n\t\t\tset_empty: true,\n\t\t\tfield: 'round_interval_policy_id'\n\t\t} );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Rounding Policy' ), form_item_input, tab_holiday_time_column1, '', null, true );\n\n\t\t// Absence Policy\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\t\tform_item_input.AComboBox( {\n\t\t\tapi_class: TTAPI.APIAbsencePolicy,\n\t\t\tallow_multiple_selection: false,\n\t\t\tlayout_name: 'global_absences',\n\t\t\tshow_search_inputs: true,\n\t\t\tset_empty: true,\n\t\t\tfield: 'absence_policy_id'\n\t\t} );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Absence Policy' ), form_item_input, tab_holiday_time_column1, '' );\n\t}\n\n\tonFormItemChange( target, doNotValidate ) {\n\t\tthis.setIsChanged( target );\n\t\tthis.setMassEditingFieldsWhenFormChange( target );\n\n\t\tvar key = target.getField();\n\t\tvar c_value = target.getValue();\n\t\tthis.current_edit_record[key] = c_value;\n\t\tswitch ( key ) {\n\t\t\tcase 'type_id':\n\t\t\t\tthis.onTypeChange();\n\t\t\t\tbreak;\n\t\t\tcase 'average_time_worked_days':\n\t\t\t\tthis.onWorkedDaysChange();\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif ( !doNotValidate ) {\n\t\t\tthis.validate();\n\t\t}\n\t}\n\n\tsetEditViewDataDone() {\n\t\tsuper.setEditViewDataDone();\n\t\tthis.onTypeChange();\n\t\tthis.onWorkedDaysChange();\n\t}\n\n\tonWorkedDaysChange() {\n\t\tif ( this.current_edit_record.average_time_worked_days === true ) {\n\t\t\tthis.average_days_widgets[0].hide();\n\t\t\tthis.average_days_widgets[1].hide();\n\t\t\tthis.average_days_widgets[2].hide();\n\t\t} else {\n\t\t\tthis.average_days_widgets[0].show();\n\t\t\tthis.average_days_widgets[1].show();\n\t\t\tthis.average_days_widgets[2].show();\n\t\t}\n\t}\n\n\tonTypeChange() {\n\t\tif ( this.current_edit_record['type_id'] == 10 ) {\n\t\t\tthis.detachElement( 'minimum_worked_days' );\n\t\t\tthis.detachElement( 'shift_on_holiday_type_id' );\n\t\t\tthis.detachElement( 'minimum_worked_after_days' );\n\n\t\t\tthis.detachElement( 'average_time_days' );\n\t\t\tthis.detachElement( 'average_time_worked_days' );\n\t\t\tthis.edit_view_form_item_dic['minimum_time'].find( '.edit-view-form-item-label' ).text( $.i18n._( 'Holiday Time' ) );\n\n\t\t\tthis.detachElement( 'maximum_time' );\n\t\t\tthis.detachElement( 'force_over_time_policy' );\n\t\t\tthis.detachElement( 'round_interval_policy_id' );\n\t\t\tthis.detachElement( 'eligible_contributing_shift_policy_id' );\n\t\t\tthis.detachElement( 'contributing_shift_policy_id' );\n\n\t\t} else if ( this.current_edit_record['type_id'] == 20 ) {\n\t\t\tthis.attachElement( 'minimum_worked_days' );\n\t\t\tthis.attachElement( 'shift_on_holiday_type_id' );\n\t\t\tthis.attachElement( 'minimum_worked_after_days' );\n\n\t\t\tthis.detachElement( 'average_time_days' );\n\t\t\tthis.detachElement( 'average_time_worked_days' );\n\t\t\tthis.edit_view_form_item_dic['minimum_time'].find( '.edit-view-form-item-label' ).text( $.i18n._( 'Holiday Time' ) );\n\n\t\t\tthis.detachElement( 'maximum_time' );\n\t\t\tthis.detachElement( 'force_over_time_policy' );\n\t\t\tthis.detachElement( 'round_interval_policy_id' );\n\t\t\tthis.attachElement( 'eligible_contributing_shift_policy_id' );\n\t\t\tthis.detachElement( 'contributing_shift_policy_id' );\n\n\t\t} else if ( this.current_edit_record['type_id'] == 30 ) {\n\t\t\tthis.attachElement( 'minimum_worked_days' );\n\t\t\tthis.attachElement( 'shift_on_holiday_type_id' );\n\t\t\tthis.attachElement( 'minimum_worked_after_days' );\n\n\t\t\tthis.attachElement( 'average_time_days' );\n\t\t\tthis.attachElement( 'average_time_worked_days' );\n\t\t\tthis.edit_view_form_item_dic['minimum_time'].find( '.edit-view-form-item-label' ).text( $.i18n._( 'Minimum Time' ) );\n\n\t\t\tthis.attachElement( 'maximum_time' );\n\t\t\tthis.attachElement( 'force_over_time_policy' );\n\t\t\tthis.attachElement( 'round_interval_policy_id' );\n\t\t\tthis.attachElement( 'eligible_contributing_shift_policy_id' );\n\t\t\tthis.attachElement( 'contributing_shift_policy_id' );\n\t\t}\n\n\t\tthis.editFieldResize();\n\t}\n\n\tbuildSearchFields() {\n\n\t\tsuper.buildSearchFields();\n\t\tthis.search_fields = [\n\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\n\t\t\tnew SearchField( {\n\t\t\t\tlabel: $.i18n._( 'Type' ),\n\t\t\t\tin_column: 1,\n\t\t\t\tfield: 'type_id',\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: false,\n\t\t\t\tlayout_name: 'global_option_column',\n\t\t\t\tform_item_type: FormItemType.AWESOME_BOX\n\t\t\t} ),\n\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\tform_item_type: FormItemType.AWESOME_BOX\n\t\t\t} ),\n\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\tform_item_type: FormItemType.AWESOME_BOX\n\t\t\t} )\n\t\t];\n\t}\n\n\tinitSubHolidayView() {\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 ( this.sub_holiday_view_controller ) {\n\t\t\tthis.sub_holiday_view_controller.buildContextMenu( true );\n\t\t\tthis.sub_holiday_view_controller.setDefaultMenu();\n\t\t\t$this.sub_holiday_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_holiday_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_holiday_view_controller.initData();\n\t\t\treturn;\n\t\t}\n\n\t\tGlobal.loadScript( 'views/policy/holiday/HolidayViewController.js', function() {\n\n\t\t\tvar tab_holiday_policy = $this.edit_view_tab.find( '#tab_holidays' );\n\t\t\tvar firstColumn = tab_holiday_policy.find( '.first-column-sub-view' );\n\n\t\t\tGlobal.trackView( 'Sub' + 'Holiday' + 'View' );\n\t\t\tHolidayViewController.loadSubView( firstColumn, beforeLoadView, afterLoadView );\n\n\t\t} );\n\n\t\tfunction beforeLoadView() {\n\n\t\t}\n\n\t\tfunction afterLoadView( subViewController ) {\n\t\t\t$this.sub_holiday_view_controller = subViewController;\n\t\t\t$this.sub_holiday_view_controller.parent_key = 'holiday_policy_id';\n\t\t\t$this.sub_holiday_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_holiday_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_holiday_view_controller.parent_view_controller = $this;\n\t\t\t$this.sub_holiday_view_controller.initData();\n\t\t}\n\t}\n\n\tremoveEditView() {\n\t\tsuper.removeEditView();\n\t\tthis.sub_holiday_view_controller = null;\n\t}\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOTM1LmpzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUFPO0FBQ1AsMkJBQTJCO0FBQzNCLEVBQUUsQ0FBQztBQUNIOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLElBQUk7O0FBRUo7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLDJCQUEyQixDQUFDO0FBQzVCLDBCQUEwQixDQUFDO0FBQzNCO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0EsS0FBSyxvQ0FBb0M7QUFDekMsS0FBSywyREFBMkQ7QUFDaEUsS0FBSyx1REFBdUQ7QUFDNUQsS0FBSyxxREFBcUQ7QUFDMUQ7O0FBRUE7O0FBRUE7QUFDQTtBQUNBLHVDQUF1Qy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