TimeTrex/interface/html5/dist/wizard-quick_start-QuickStartWizardController.bundle.js

1 line
83 KiB
JavaScript
Raw Permalink Normal View History

2022-12-13 07:10:06 +01:00
"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["wizard-quick_start-QuickStartWizardController"],{5344:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"QuickStartWizardController\": () => (/* binding */ QuickStartWizardController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass QuickStartWizardController extends BaseWizardController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tel: '.wizard-bg',\n\t\t\tselected_province_index: -1,\n\t\t\tselected_country_index: -1,\n\n\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinit( options ) {\n\t\t//this._super('initialize', options );\n\n\t\tthis.title = $.i18n._( 'Quick Start Wizard' );\n\t\tthis.steps = 5;\n\t\tthis.current_step = 1;\n\n\t\tthis.render();\n\t}\n\n\trender() {\n\t\tsuper.render();\n\n\t\tthis.initCurrentStep();\n\t}\n\n\t//Create each page UI\n\tbuildCurrentStepUI() {\n\t\tvar $this = this;\n\t\tthis.content_div.empty();\n\t\tthis.stepsWidgetDic[this.current_step] = {};\n\t\tswitch ( this.current_step ) {\n\t\t\tcase 1:\n\t\t\t\tvar label = this.getLabel();\n\t\t\t\tlabel.text( $.i18n._( 'Welcome to' ) + ' ' + LocalCacheData.getApplicationName() + ', ' + $.i18n._( 'this Quick Start Wizard will walk you through the initial setup by asking you a few basic questions about your company.' ) );\n\n\t\t\t\tvar guide_label = $( '<div><span class=\"clear-both-div\">' + $.i18n._( 'Press' ) + '<button style=\"display: inline\" class=\"forward-btn\"></button> ' + $.i18n._( 'below to continue' ) + '</span></div>' );\n\n\t\t\t\tthis.content_div.append( label );\n\n\t\t\t\tthis.content_div.append( guide_label );\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tGlobal.setWidgetEnabled( this.next_btn, false );\n\t\t\t\tvar label = this.getLabel();\n\t\t\t\tlabel.text( $.i18n._( 'Please choose the preferred settings that you would like to use to display information throughout' ) + ' ' + LocalCacheData.getApplicationName() + '.' );\n\n\t\t\t\tthis.content_div.append( label );\n\n\t\t\t\t//Time Zone\n\t\t\t\tvar form_item = $( Global.loadWidget( 'global/widgets/wizard_form_item/WizardFormItem.html' ) );\n\t\t\t\tvar form_item_label = form_item.find( '.form-item-label' );\n\t\t\t\tvar form_item_input_div = form_item.find( '.form-item-input-div' );\n\n\t\t\t\tvar combobox = this.getComboBox( 'time_zone', true );\n\n\t\t\t\tform_item_label.text( $.i18n._( 'Timezone' ) );\n\t\t\t\tform_item_input_div.append( combobox );\n\n\t\t\t\tthis.content_div.append( form_item );\n\n\t\t\t\t//Date Format\n\t\t\t\tform_item = $( Global.loadWidget( 'global/widgets/wizard_form_item/WizardFormItem.html' ) );\n\t\t\t\tform_item_label = form_item.find( '.form-item-label' );\n\t\t\t\tform_item_input_div = form_item.find( '.form-item-input-div' );\n\n\t\t\t\tvar date_format = this.getComboBox( 'date_format', true );\n\n\t\t\t\tform_item_label.text( $.i18n._( 'Date Format' ) );\n\t\t\t\tform_item_input_div.append( date_format );\n\n\t\t\t\tthis.content_div.append( form_item );\n\n\t\t\t\t//Time Format\n\t\t\t\tform_item = $( Global.loadWidget( 'global/widgets/wizard_form_item/WizardFormItem.html' ) );\n\t\t\t\tform_item_label = form_item.find( '.form-item-label' );\n\t\t\t\tform_item_input_div = form_item.find( '.form-item-input-div' );\n\n\t\t\t\tvar time_format = this.getComboBox( 'time_format', true );\n\n\t\t\t\tform_item_label.text( $.i18n._( 'Time Format' ) );\n\t\t\t\tform_item_input_div.append( time_format );\n\n\t\t\t\tthis.content_div.append( form_item );\n\n\t\t\t\t//Calendar Starts On\n\t\t\t\tform_item = $( Global.loadWidget( 'global/widgets/wizard_form_item/WizardFormItem.html' ) );\n\t\t\t\tform_item_label = form_item.find( '.form-item-label' );\n\t\t\t\tform_item_input_div = form_item.find( '.form-item-input-div' );\n\n\t\t\t\tvar calendar_starts_on = this.getComboBox( 'start_wee