/* COPYRIGHT by SARTORIUS (Sartorius Lab Instruments GmbH & Co. KG) */
!function(e){var t={};function _(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,_),i.l=!0,i.exports}_.m=e,_.c=t,_.d=function(e,t,a){_.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},_.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return _.d(t,"a",t),t},_.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},_.p="",_(_.s=110)}([function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.PARAM_GROUP="GROUP",e.PARAM_DATE_TIME="DATE_TIME",e.PARAM_MULTIPLE_SELECTION="MULTIPLE_SELECTION",e.PARAM_SELECTION="SELECTION",e.PARAM_QUANTITY="QUANTITY",e.PARAM_MEASURE="MEASURE",e.PARAM_STRING="STRING",e.ALIBI_IDENTIFIER="ALIBI_IDENTIFIER",e.PARAM_TEXT="TEXT",e.PARAM_FORMULA="FORMULA",e.PARAM_PASSWORD="PASSWORD",e.PARAM_BARCODE="BARCODE"}(t.EnumParameterTypes||(t.EnumParameterTypes={})),function(e){e.HIDDEN="HIDDEN",
e.DISABLED="DISABLED",e.ENABLED_PRIMARY="ENABLED_PRIMARY",e.ENABLED_SECONDARY="ENABLED_SECONDARY",e.ENABLED="ENABLED",e.ENABLED_EDITABLE="ENABLED_EDITABLE",e.ENABLED_INVALID="ENABLED_INVALID",e.ENABLED_INVALID_CFG="ENABLED_INVALID_CFG"}(t.EnumAppearance||(t.EnumAppearance={})),function(e){e.CODE128="CODE128",e.QR="QR",e.EAN13="EAN13",e.EAN8="EAN8",e.UPC="UPC",e.CODE39="CODE39",e.ITF14="ITF14",e.ITF="ITF",e.MSI="MSI",e.MSI10="MSI10",e.MSI11="MSI11",e.MSI1010="MSI1010",e.MSI1110="MSI1110",e.Pharmacode="Pharmacode"}(t.EnumBarcodeFormats||(t.EnumBarcodeFormats={})),t.EnumButtonType||(t.EnumButtonType={}),function(e){e.OPEN="OPEN",e.CLOSED="CLOSED",e.MOVE="MOVE"}(t.EnumDraftShieldPosition||(t.EnumDraftShieldPosition={})),function(e){e.NONE="NONE",e.UNLICENSED="UNLICENSED",e.ROWI="ROWI",e.LIWI="LIWI",e.LIRO="LIRO"}(t.EnumDraftShieldType||(t.EnumDraftShieldType={})),function(e){e.TOUCH="TOUCH"}(t.EnumUserEvent||(t.EnumUserEvent={})),function(e){e[e.OPEN=1]="OPEN",e[e.RUNNING=2]="RUNNING",
e[e.CLOSED_SUCCESS=3]="CLOSED_SUCCESS",e[e.CLOSED_FAILED=4]="CLOSED_FAILED"}(t.EnumJobStatus||(t.EnumJobStatus={}))},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cloneJSON=function(e){return JSON.parse(JSON.stringify(e))}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MQTT_TOPIC_WILDCARD_UNIQUE_ID="_replaceWithUniqueID_",t.MQTT_TOPIC_WILDCARD_GENERATED_TOKEN="_generatedToken_",t.MQTT_TOPIC_WILDCARD_SCREEN_ID="_replaceWithScreenID_",t.MQTT_TOPIC_WILDCARD_BUTTON_ID="_replaceWithButtonID_",t.MQTT_TOPIC_WILDCARD_TAB_ID="_replaceWithTabID_",function(e){e.DEVELOPER_MODE="/DEVELOPER_MODE",e.QAPP_CLEANUP="/QAPP/CLEANUP",e.QAPP_NAMESPACE="/QAPP",e.QAPP_DEBUG_TOPIC_PREAMBLE="/QAPP/DEBUG",e.QAPP_DEBUG_STOP_HEARTBEAT="/QAPP/DEBUG/stopHeartbeat",e.QAPP_LOGOUT_REQUEST="/QAPP/LOGOUT_REQUEST",e.QAPP_STARTED="/QAPP/STATE/STARTED",e.QAPP_STOPPED="/QAPP/STATE/STOPPED",e.QAPP_ERROR="/QAPP/STATE/ERROR",e.QAPP_HEARTBEAT="/QAPP/HEARTBEAT",
e.QAPP_DATABASE_ACTION_DONE="/QAPP/DATABASE_ACTION_DONE",e.DEVICE_MODEL_NAME="/DEVICEINFORMATION/IDENTIFICATION/MODEL_NAME",e.DEVICE_IS_FUSION="/FIRMWARELOADER/VERSION/IS_FUSION",e.NETWORK_MAC_ADDRESS="/DEVICEINFORMATION/NETWORK/MACADDRESS",e.NETWORK_HOSTNAME="/DEVICEINFORMATION/NETWORK/HOSTNAME",e.SENSOR_ACTOR_INFO="SENSOR_ACTOR/BALANCE/BALANCE_INFO",e.SENSOR_ACTOR_WEIGHT="SENSOR_ACTOR/BALANCE/WEIGHT",e.LEVELING_STATUS="/LEVELING/STATUS",e.LEVELING_CLOSE="/LEVELING/CLOSE",e.CALADJ_ISOCAL_STATUS="/CALIBRATION_ADJUSTMENT/ISOCAL",e.CALADJ_INTERNAL_RESULT="/CALIBRATION_ADJUSTMENT/RESULT",e.CLIMATE_INT_VALUE="/CLIMA_CONTROL/INT/VALUE",e.CLIMATE_EXT_VALUE="/CLIMA_CONTROL/EXT/VALUE",e.CLIMATE_INT_ID_SERIAL="CLIMA_CONTROL_INT_ID_SERIAL",e.CLIMATE_EXT_ID_SERIAL="CLIMA_CONTROL_EXT_ID_SERIAL",e.CLIMATE_STATUS="/CLIMA_CONTROL/STATUS",e.DRAFTSHIELD_TYPE="/DRAFTSHIELD/TYPE",e.DRAFTSHIELD_POSITION="/DRAFTSHIELD/IONIZER_INFO",e.QAPP_PARAMETERS_TOPIC_PREAMBLE="/QAPP/PARAMS",
e.USERMANAGEMENT_AUTO_LOGOUT_EVENT="/USERMANAGEMENT/AUTO_LOG_OFF",e.USERMANAGEMENT_AUTO_LOGOUT_PREWARNING_EVENT="/USERMANAGEMENT/AUTO_LOG_OFF_PREWARNING",e.REPORTING_SICS_PROTOCOL_HELPER="/SICS/ADD_TO_PROTOCOL",e.REPORTING_SBI_PROTOCOL_HELPER="/REPORTING/SBI/SINGLE_PRINT",e.COMM_SBI_PRINT_AT_STABILITY="SBI_PROTOCOL/STABILITY",e.JOBMGMT_TASK_WORKFLOWDATA="/TASK/WORKFLOWDATA",e.HMI_QAPP_WIZARD_SCREEN_TITLE="/QAPP/SCREENS/WIZARDSCREEN/HEADING_TITLE",e.HMI_VISUAL_SCREEN="/VISUAL_SCREEN",e.HMI_VISUAL_SCREEN_CLOSED="/HMI/VISUAL_SCREEN/CLOSED",e.HMI_OVERLAY_TOP="/HMI/OVERLAY_TOP",e.HMI_EVENT="/HMI/USER/EVENT",e.HMI_LOCK_SCREEN_STATE="HMI/LOCKSCREEN/STATE",e.HMI_ACTIVE_QAPP_SCREEN="/QAPP/SCREEN",e.HMI_ABSTRACT_SCREEN_BARBUTTONS="/QAPP/SCREENS/_replaceWithScreenID_/BARBUTTONS",e.HMI_ABSTRACT_SCREEN_BUTTONS="/QAPP/SCREENS/_replaceWithScreenID_/_replaceWithButtonID_",e.HMI_ABSTRACT_SCREEN_TAB_SINGLE="/QAPP/SCREENS/_replaceWithScreenID_/TAB",
e.HMI_ABSTRACT_SCREEN_TABS="/QAPP/SCREENS/_replaceWithScreenID_/TABS/_replaceWithTabID_",e.HMI_TABBED_SCREEN="/QAPP/SCREENS/TABBEDSCREEN",e.HMI_WEIGHING_SCREEN_BARBUTTONS="/QAPP/SCREENS/WEIGHING/BARBUTTONS",e.HMI_WEIGHING_SCREEN_INSTRUCTION1="/QAPP/SCREENS/WEIGHING/TEXT1",e.HMI_WEIGHING_SCREEN_INSTRUCTION2="/QAPP/SCREENS/WEIGHING/TEXT2",e.HMI_WEIGHING_SCREEN_TITLE="/QAPP/SCREENS/WEIGHING/NAVIGATION/TEXT",e.HMI_WEIGHING_SCREEN_PARAM1_TOPIC="/QAPP/SCREENS/WEIGHING/PARAM1",e.HMI_WEIGHING_SCREEN_PARAM2_TOPIC="/QAPP/SCREENS/WEIGHING/PARAM2",e.HMI_WEIGHINGSPLIT_SCREEN_BARBUTTONS="/QAPP/SCREENS/WEIGHINGSPLIT/BARBUTTONS",e.HMI_WEIGHINGSPLIT_SCREEN_INSTRUCTION1="/QAPP/SCREENS/WEIGHINGSPLIT/TEXT1",e.HMI_WEIGHINGSPLIT_SCREEN_INSTRUCTION2="/QAPP/SCREENS/WEIGHINGSPLIT/TEXT2",e.HMI_WEIGHINGSPLIT_SCREEN_TITLE="/QAPP/SCREENS/WEIGHINGSPLIT/NAVIGATION/TEXT",e.HMI_WEIGHINGSPLIT_SCREEN_PARAM1_TOPIC="/QAPP/SCREENS/WEIGHINGSPLIT/PARAM1",
e.HMI_WEIGHINGSPLIT_SCREEN_PARAM2_TOPIC="/QAPP/SCREENS/WEIGHINGSPLIT/PARAM2",e.HMI_CHECKBARGRAPH_STATUS="/QAPP/CHECKBARGRAPH/STATUS",e.HMI_CHECKBARGRAPH_VALUE="/QAPP/CHECKBARGRAPH/VALUE",e.HMI_QAPP_PARAMETER_INPUT="/QAPP/PARAMETER_INPUT",e.HMI_LOCK_SCREEN="/QAPP/SCREENS/LOCK",e.HMI_LOCK_LOADING_MODAL="/QAPP/SCREENS/LOCK/LOADING_MODAL",e.HMI_SINGLETABBUTTONBAR_SCREEN="/QAPP/SCREENS/SINGLETABBUTTONBARSCREEN",e.HMI_SINGLETABBUTTONBAR_SCREEN_BARBUTTONS="/QAPP/SCREENS/SINGLETABBUTTONBARSCREEN/BARBUTTONS",e.HMI_SINGLETABBUTTONBAR_SCREEN_TOPLEFTBUTTON="/QAPP/SCREENS/SINGLETABBUTTONBARSCREEN/TOPLEFTBUTTON",e.HMI_LOCK_LOADING_MODAL_TEXT="/QAPP/SCREENS/LOCK/LOADING_MODAL/TEXT",e.HMI_LOCK_LOADING_MODAL_APPEARANCE="/QAPP/SCREENS/LOCK/LOADING_MODAL/APPEARANCE",e.HMI_LOCK_MESSAGEBOX="/QAPP/SCREENS/LOCK/MESSAGEBOX",e.HMI_LOCK_RESET="/QAPP/SCREENS/LOCK/RESET",e.HMI_LOCK_UNLOCK="/QAPP/SCREENS/LOCK/UNLOCK",e.HMI_LOADING_MODAL="HMI/LOADING_MODAL",e.HMI_LOADING_MODAL_TEXT="HMI/LOADING_MODAL/TEXT",
e.HMI_LOADING_MODAL_APPEARANCE="HMI/LOADING_MODAL/APPEARANCE",e.HMI_MESSAGEBOX="/QAPP/MESSAGEBOX",e.HMI_PARAMDETAILSOVERLAY="/QAPP/PARAMDETAILSOVERLAY",e.HMI_PRINT_HEADER="/HMI/PRINT_HEADER",e.MESSAGE_HANDLER_MESSAGE="/MESSAGE_HANDLER/MESSAGE",e.WEIGHING_VALUE_NET="WEIGHING/WEIGHT/NET",e.WEIGHING_VALUE_NET_HIGH_RES="WEIGHING/WEIGHT/NET_HIGH_RES",e.WEIGHING_VALUE_TARE="WEIGHING/WEIGHT/TARE",e.WEIGHING_VALUE_TARE1="WEIGHING/WEIGHT/TARE1",e.WEIGHING_VALUE_TARE2="WEIGHING/WEIGHT/TARE2",e.WEIGHING_VALUE_GROSS="WEIGHING/WEIGHT/GROSS_CALC",e.WEIGHING_VALUE_DISPLAY="WEIGHING/WEIGHT/DISPLAY",e.WEIGHING_SELECTED_DISPLAY_VALUE="WEIGHING/WEIGHT/DISPLAY/SELECTED",e.WEIGHING_WEIGHT_BLOCK="WEIGHING/WEIGHT/BLOCK",e.WEIGHING_WAITING_FOR_STABILITY="WEIGHING/WAITING_FOR_STABILITY",e.WEIGHING_STATUS_ERROR="WEIGHING/STATUS/ERROR ",e.WEIGHING_TARE_BLOCK="WEIGHING/DOING_ZERO_TARE",e.WEIGHING_STATE="WEIGHING/STATE",e.SURE_ACTIVE="/WEIGHING/SURE/ACTIVE",e.SURE_RANGE_1_A="/WEIGHING/SURE/PARAM_SURE_RANGE_1_A",
e.SURE_RANGE_1_B="/WEIGHING/SURE/PARAM_SURE_RANGE_1_B",e.SURE_RANGE_1_B_EXP="/WEIGHING/SURE/PARAM_SURE_RANGE_1_B_EXP",e.SURE_RANGE_2_A="/WEIGHING/SURE/PARAM_SURE_RANGE_2_A",e.SURE_RANGE_2_B="/WEIGHING/SURE/PARAM_SURE_RANGE_2_B",e.SURE_RANGE_2_B_EXP="/WEIGHING/SURE/PARAM_SURE_RANGE_2_B_EXP",e.SURE_RANGE_3_A="/WEIGHING/SURE/PARAM_SURE_RANGE_3_A",e.SURE_RANGE_3_B="/WEIGHING/SURE/PARAM_SURE_RANGE_3_B",e.SURE_RANGE_3_B_EXP="/WEIGHING/SURE/PARAM_SURE_RANGE_3_B_EXP",e.METROLOGY_MAX_DIGITS="WEIGHING/METROLOGY/MAXIMUM_DIGITS",e.METROLOGY_MAX_DIGITS_DEBUG="/QAPP/DEBUG/WEIGHING/METROLOGY/MAXIMUM_DIGITS",e.METROLOGY_RANGES="WEIGHING/METROLOGY/RANGES",e.METROLOGY_APPROVED_FOR_VERIFICATION="WEIGHING/METROLOGY/APPROVED_FOR_VERIFICATION",e.ESIGNATURE_PERFORM="/HMI/PERFORM_SIGNATURE",e.ESIGNATURE_RESULT="/HMI/ELECTRONIC_SIGNATURE_RESULT",e.REPORTING_PRINTABLE_VALUE="/REPORTING/PRINTABLE_VALUE",e.REPORTING_PRINTQUEUE_DISPLAYED="/HMI/PRINT_QUEUE",
e.REPORTING_PRINT_PROCESS_RESULT="/REPORTING/PRINT_PROCESS",e.CUSTOMIZED_WEIGHT_DISPLAY_VALUE="/QAPP/WEIGHING/WEIGHT/APPLICATION/_replaceWithUniqueID_/VALUE",e.CUSTOMIZED_REST_HANDLER_CONFIGURATION="/QAPP/REST/CFG",e.COMM_QAPP_DIRECT_INTERFACE="/QAPP/QAPP_DIRECT_INTERFACE",e.COMM_FILE_OPERATIONS_ASYNC_TOKEN="/CONNECTORMANAGEMENT/PROGRESS/_generatedToken_"}(t.MqttTopics||(t.MqttTopics={}))},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(1),i=_(13),n=_(0);t.isTypeOfIDateTimeParameter=function(e){return e.type===n.EnumParameterTypes.PARAM_DATE_TIME},t.isTypeOfIMultipleSelectionParameter=function(e){return e.type===n.EnumParameterTypes.PARAM_MULTIPLE_SELECTION},t.isTypeOfISelectionParameter=function(e){return e.type===n.EnumParameterTypes.PARAM_SELECTION},t.isTypeOfIQuantityParameter=function(e){return e.type===n.EnumParameterTypes.PARAM_QUANTITY},t.isTypeOfIMeasureParameter=function(e){return e.type===n.EnumParameterTypes.PARAM_MEASURE},
t.isTypeOfIStringParameter=function(e){return e.type===n.EnumParameterTypes.PARAM_STRING},t.isTypeOfIAlibiIdentifierParameter=function(e){return e.type===n.EnumParameterTypes.ALIBI_IDENTIFIER},t.isTypeOfITextParameter=function(e){return e.type===n.EnumParameterTypes.PARAM_TEXT},t.isTypeOfIFormulaParameter=function(e){return e.type===n.EnumParameterTypes.PARAM_FORMULA},t.isTypeOfIPasswordParameter=function(e){return e.type===n.EnumParameterTypes.PARAM_PASSWORD},t.isITextStructure=function(e){return"string"==typeof e.id&&"object"==typeof e.args&&e.args instanceof Array};const s={id:"",args:[]};function r(e){const t=a.cloneJSON(s);return i.isString(e)&&(t.id=e),t}t.createEmptyTextStructure=r;const E={id:"",type:n.EnumParameterTypes.PARAM_GROUP,title:r(),appearance:n.EnumAppearance.HIDDEN,parameters:[]};function o(e){const t=a.cloneJSON(E);return i.isString(e)&&(t.id=e),t}t.createEmptyParameterGroup=o;const A={id:"",type:n.EnumParameterTypes.PARAM_GROUP,title:r(),
appearance:n.EnumAppearance.HIDDEN,parameters:[o()]};t.createEmptyParameterGroupOfGroups=function(){return a.cloneJSON(A)};const T={appearance:n.EnumAppearance.HIDDEN,id:"",text:r()};t.createEmptySelectionParameterOption=function(){return a.cloneJSON(T)};const I={id:"",type:n.EnumParameterTypes.PARAM_SELECTION,value:{selection:{id:""}},header:r(),title:r(),info:{options:[T]},appearance:n.EnumAppearance.HIDDEN};t.createEmptySelectionParameter=function(e){const t=a.cloneJSON(I);return i.isString(e)&&(t.id=e),t};const N={id:"",type:n.EnumParameterTypes.PARAM_MULTIPLE_SELECTION,value:{selections:[]},header:r(),title:r(),info:{options:[T]},appearance:n.EnumAppearance.HIDDEN};t.createEmptyMultipleSelectionParameter=function(e){const t=a.cloneJSON(N);return i.isString(e)&&(t.id=e),t},t.SAMPLE_DATE_TIME_ID="SAMPLE_DATE_TIME_ID";const l={id:t.SAMPLE_DATE_TIME_ID,type:n.EnumParameterTypes.PARAM_DATE_TIME,value:{timestamp:0},title:{id:"_QAPP_LIB_PARAM_TITLE_SAMPLE_DATETIME",args:[]},header:{
id:"_QAPP_LIB_PARAM_HEADER_SAMPLE_DATETIME",args:[]},info:{isDate:!0,isTime:!0},appearance:n.EnumAppearance.HIDDEN};t.createEmptyDateTimeParameter=function(e){const t=a.cloneJSON(l);return i.isString(e)&&(t.id=e),t};const c={id:"",type:n.EnumParameterTypes.PARAM_STRING,value:{string:""},header:r(),title:r(),info:{minimum:{length:0},maximum:{length:0}},appearance:n.EnumAppearance.HIDDEN};t.createEmptyStringParameter=function(e){const t=a.cloneJSON(c);return i.isString(e)&&(t.id=e),t};const u={id:"",type:n.EnumParameterTypes.PARAM_BARCODE,value:{string:"",format:n.EnumBarcodeFormats.CODE128,width:120},header:r(),title:r(),appearance:n.EnumAppearance.HIDDEN};t.createEmptyBarcodeParameter=function(e){const t=a.cloneJSON(u);return i.isString(e)&&(t.id=e),t};const P={id:"",type:n.EnumParameterTypes.PARAM_PASSWORD,value:{string:""},header:r(),title:r(),info:{passwordLength:0,minimum:{length:0},maximum:{length:0}},appearance:n.EnumAppearance.HIDDEN};t.createEmptyPasswordParameter=function(e){
const t=a.cloneJSON(P);return i.isString(e)&&(t.id=e),t};const p={id:"",type:n.EnumParameterTypes.PARAM_TEXT,value:{text:r()},header:r(),title:r(),appearance:n.EnumAppearance.HIDDEN,info:{suppressTitle:!1}};t.createEmptyTextParameter=function(e){const t=a.cloneJSON(p);return i.isString(e)&&(t.id=e),t},t.createEmptyTextParameterValueOnly=function(){let e=a.cloneJSON(p);return e.info.suppressTitle=!0,e};const S={visual:"",eval:""};t.createEmptyFormulaParameterValue=function(){return a.cloneJSON(S)};const d={id:"",type:n.EnumParameterTypes.PARAM_FORMULA,value:[],header:r(),title:r(),appearance:n.EnumAppearance.HIDDEN,info:{maximum:{length:0}}};t.createEmptyFormulaParameter=function(e){const t=a.cloneJSON(d);return i.isString(e)&&(t.id=e),t};const R={mark:"",sign:"",number:"0",decimals:0,auxiliaryDigits:0,unit:"",interval:1,isStable:!1,isSpecial:!1,isWarning:!1,isInvalid:!0};t.createEmptyMeasureParameterValue=function(){return a.cloneJSON(R)};const O={id:"",
type:n.EnumParameterTypes.PARAM_MEASURE,value:R,header:r(),title:r(),appearance:n.EnumAppearance.HIDDEN};t.createEmptyMeasureParameter=function(e){const t=a.cloneJSON(O);return i.isString(e)&&(t.id=e),t};const L={decimals:0,preferredDecimals:0,numbers:[],unit:""};t.createEmptyQuantityParameterValue=function(){return a.cloneJSON(L)},t.QUANTITY_PARAM_MIN_MAX_NAN="nan",t.QUANTITY_PARAM_NUMBERS_MAX=3;const D={id:"",type:n.EnumParameterTypes.PARAM_QUANTITY,value:L,header:r(),title:r(),info:{minimum:{value:t.QUANTITY_PARAM_MIN_MAX_NAN},maximum:{value:t.QUANTITY_PARAM_MIN_MAX_NAN}},appearance:n.EnumAppearance.HIDDEN};t.createEmptyQuantityParameter=function(e){const t=a.cloneJSON(D);return i.isString(e)&&(t.id=e),t};const h={id:"",type:n.EnumParameterTypes.ALIBI_IDENTIFIER,value:{alibiIdentifier:NaN},header:r(),title:r(),appearance:n.EnumAppearance.ENABLED};t.createEmptyAlibiIdentifier=function(){return a.cloneJSON(h)}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{
value:!0});const a=_(11),i=_(2);var n;!function(e){e[e.SHOW_SCREEN=0]="SHOW_SCREEN",e[e.HIDE_SCREEN=1]="HIDE_SCREEN",e[e.SHOW_OVERLAY=2]="SHOW_OVERLAY",e[e.HIDE_OVERLAY=3]="HIDE_OVERLAY",e[e.SHOW_LOADINGSCREEN=4]="SHOW_LOADINGSCREEN",e[e.HIDE_LOADINGSCREEN=5]="HIDE_LOADINGSCREEN",e[e.SHOW_MESSAGEBOX=6]="SHOW_MESSAGEBOX",e[e.HIDE_MESSAGEBOX=7]="HIDE_MESSAGEBOX",e[e.SHOW_LOCKSCREEN=8]="SHOW_LOCKSCREEN",e[e.HIDE_LOCKSCREEN=9]="HIDE_LOCKSCREEN",e[e.SHOW_LOCKLOADINGSCREEN=10]="SHOW_LOCKLOADINGSCREEN",e[e.HIDE_LOCKLOADINGSCREEN=11]="HIDE_LOCKLOADINGSCREEN",e[e.SHOW_LOCKMESSAGEBOX=12]="SHOW_LOCKMESSAGEBOX",e[e.HIDE_LOCKMESSAGEBOX=13]="HIDE_LOCKMESSAGEBOX"}(n=t.ScreenEventType||(t.ScreenEventType={}));t.AbstractScreen=class{constructor(e){this.events$=new a.Subject,this.mqttHandler=e}show(){console.log("AbstractScreen: show "+this.getId()+" @ "+i.MqttTopics.HMI_ACTIVE_QAPP_SCREEN),this.mqttHandler.publish(i.MqttTopics.HMI_ACTIVE_QAPP_SCREEN,'{ "screen":"'+this.getId()+'" }'),
this.events$.next({type:n.SHOW_SCREEN,id:this.getId()})}hide(){}publishContent(e,t,_=!0){let a=e?this.getMqttTopicBaseExtensible()+e:this.getMqttTopicBase();console.log("AbstractScreen: publishContent @ "+a),this.mqttHandler.publish(a,t,{retain:_})}getMqttTopicBase(){return"SCREENS/"+this.getId()}getMqttTopicBaseExtensible(){return this.getMqttTopicBase()+"/"}getButton(e){}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(49),i="SUCCESS",n="FAILED";t.CubisRestResponse=class{constructor(e){if(this.restResponse=void 0,"boolean"==typeof e)this.result=e?i:n,this.rawReturns={};else{let t;this.restResponse=e;try{t=JSON.parse(this.restResponse.stdout.toString())}catch(e){throw e.message+="\nreceived: "+this.restResponse.stdout.toString(),e}this.rawReturns=t.returns,this.result=t.result}}isSuccess(){return this.result===i}};t.BaseProxy=class{constructor(){this.body={method:"",params:{}}}syncRequest(){
let e,t=JSON.stringify(this.body),_=`http://127.0.0.1:8080/rest/${this.restEndpoint}`;const i=process.hrtime();let n=[_,"-H","Accept:application/json","-H","Content-Type:application/json","-H","Expect:","--data","@-"];e=a.spawnSync("curl",n,{input:t});const s=process.hrtime(i);return console.log(`${this.body.method} (hr): ${s[0]}s ${s[1]/1e6}ms`),e}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.printParameters="printParameters",e.printPrintQueueWithElectronicSignature="printPrintQueueWithElectronicSignature",e.printParametersDirect="printParametersDirect",e.getPrintQueue="getPrintQueue",e.isPrintQueueEmpty="isPrintQueueEmpty",e.clearPrintQueue="clearPrintQueue",e.requestPrintableValueComment="requestPrintableValueComment",e.setRedactionStatus="setRedactionStatus",e.getAlibiRecord="getAlibiRecord",e.getAlibiRecordList="getAlibiRecordList",e.setPathAndFilenameForNextReport="setPathAndFilenameForNextReport",
e.setMetaDataInCurrentReport="setMetaDataInCurrentReport",e.applyProfiles="applyProfiles",e.printParametersWithProfile="printParametersWithProfile"}(t.RestMethodsREPORTING||(t.RestMethodsREPORTING={})),function(e){e.getTemperature="getTemperature",e.getHumidity="getHumidity",e.getAirPressure="getAirPressure",e.getAirDensity="getAirDensity",e.getTemperatureUncertainty="getTemperatureUncertainty",e.getHumidityUncertainty="getHumidityUncertainty",e.getAirPressureUncertainty="getAirPressureUncertainty",e.getConfigurationData="getConfigurationData"}(t.RestMethodsCLIMATECONTROL||(t.RestMethodsCLIMATECONTROL={})),function(e){e.getWorkstate="getWorkstate",e.getTaskTemplate="getTaskTemplate",e.createTask="createTask",e.readTask="readTask",e.updateTask="updateTask",e.validate="validate",e.saveWorkstate="saveWorkstate",e.deleteWorkstate="deleteWorkstate",e.getTaskNamesByOrderNumber="getTaskNamesByOrderNumber",e.setTaskEvent="setTaskEvent"
}(t.RestMethodsTASK_MANAGEMENT||(t.RestMethodsTASK_MANAGEMENT={})),function(e){e.getCurrentUser="getCurrentUser",e.checkRightsOfCurrentUser="checkRightsOfCurrentUser"}(t.RestMethodsACCESS_MANAGEMENT||(t.RestMethodsACCESS_MANAGEMENT={})),function(e){e.addEventExt="addEventExt",e.getRecords="getRecords"}(t.RestMethodsAUDITTRAIL||(t.RestMethodsAUDITTRAIL={})),function(e){e.startInternCal="startInternCal",e.disableAutoIsoCal="disableAutoIsoCal"}(t.RestMethodsCALIBRATION||(t.RestMethodsCALIBRATION={})),function(e){e.getFormatConfiguration="getFormatConfiguration",e.getFormatConfigurationI18n="getFormatConfigurationI18n"}(t.RestMethodsCLOCK_HANDLER||(t.RestMethodsCLOCK_HANDLER={})),function(e){e.getConfigurations="getConfigurations",e.putFileAsync="putFileAsync",e.putFileAsyncWithoutMD5="putFileAsyncWithoutMD5",e.getFileAsyncWithoutMD5="getFileAsyncWithoutMD5",e.listDirectory="listDirectory"}(t.RestMethodsCONNECTOR_MANAGEMENT||(t.RestMethodsCONNECTOR_MANAGEMENT={})),function(e){
e.getSerialNoBalance="getSerialNoBalance",e.getModelName="getModelName",e.getVersionBalance="getVersionBalance",e.getVersionPackage="getVersionPackage",e.getParameter="getParameter",e.sendUDPBroadcast="sendUDPBroadcast",e.cancelUDP="cancelUDP",e.listenUDP="listenUDP",e.addRunningActivity="addRunningActivity",e.removeRunningActivity="removeRunningActivity",e.setActuatorsActive="setActuatorsActive",e.setDeviceCleaned="setDeviceCleaned"}(t.RestMethodsDEVICE_INFORMATION||(t.RestMethodsDEVICE_INFORMATION={})),function(e){e.getQappProtocolPortNumber="getQappProtocolPortNumber",e.getQappProtocolInterfaces="getQappProtocolInterfaces",e.isInterfaceActive="isInterfaceActive",e.setGPIOPorts="setGPIOPorts"}(t.RestMethodsINTERFACE_MANAGEMENT||(t.RestMethodsINTERFACE_MANAGEMENT={})),function(e){e.getLanguage="getLanguage",e.getText="getText",e.getTexts="getTexts"}(t.RestMethodsLOCALIZER||(t.RestMethodsLOCALIZER={})),function(e){e.addMessage="addMessage",
e.deleteMessageByCategory="deleteMessageByCategory",e.getAllMessagesByCategory="getAllMessagesByCategory",e.deleteMessagesByCategory="deleteMessagesByCategory",e.removeMessage="removeMessage"}(t.RestMethodsMESSAGE_HANDLER||(t.RestMethodsMESSAGE_HANDLER={})),function(e){e.loadProfile="loadProfile",e.getProfiles="getProfiles"}(t.RestMethodsPROFILE_MANAGEMENT||(t.RestMethodsPROFILE_MANAGEMENT={})),function(e){e.playEndOfActionSound="playEndOfActionSound",e.playMessageSound="playMessageSound"}(t.RestMethodsSOUND_MANAGEMENT||(t.RestMethodsSOUND_MANAGEMENT={})),function(e){e.isAutoLogout="isAutoLogout",e.getListRoles="getListRoles"}(t.RestMethodsUSER_MANAGEMENT||(t.RestMethodsUSER_MANAGEMENT={})),function(e){e.createWeightApplication="createWeightApplication",e.enableWeightApplication="enableWeightApplication",e.selectWeightApplication="selectWeightApplication",e.destroyWeightApplication="destroyWeightApplication",e.setButton="setButton",e.triggerStableWeightBlock="triggerStableWeightBlock",
e.cancelStableWeightBlock="cancelStableWeightBlock",e.doZero="doZero",e.clearTare="clearTare",e.clearTare1="clearTare1",e.clearTare2="clearTare2",e.clearTareAll="clearTareAll",e.doTare="doTare",e.doTare1="doTare1",e.doTare2="doTare2",e.doTareAuto="doTareAuto",e.doZeroTare="doZeroTare",e.doZeroTareAuto="doZeroTareAuto",e.setTare1="setTare1",e.cancelDoing="cancelDoing",e.setTare2="setTare2",e.setUnit="setUnit",e.getParameter="getParameter",e.getParameterIds="getParameterIds",e.getRangeParameters="getRangeParameters",e.setMinUsp="setMinUsp",e.setMinWeight="setMinWeight",e.insertWeightInvalidation="insertWeightInvalidation",e.removeWeightInvalidation="removeWeightInvalidation",e.setAmbientCondition="setAmbientCondition"}(t.RestMethodsWEIGHING||(t.RestMethodsWEIGHING={})),function(e){e.openLast="openLast",e.closeAll="closeAll",e.openLeft="openLeft",e.openRight="openRight",e.openTop="openTop"}(t.RestMethodsDRAFTSHIELD||(t.RestMethodsDRAFTSHIELD={})),function(e){
e.setJobStatusAndReason="setJobStatusAndReason"}(t.RestMethodsJOB_MANAGEMENT||(t.RestMethodsJOB_MANAGEMENT={})),function(e){e.disableChecker="disableChecker",e.enableChecker="enableChecker"}(t.RestMethodsSELF_MONITOR||(t.RestMethodsSELF_MONITOR={})),function(e){e.start="start"}(t.RestMethodsLEVELING||(t.RestMethodsLEVELING={})),function(e){e.getConfigData="getConfigData"}(t.RestMethodsMENU_HANDLER||(t.RestMethodsMENU_HANDLER={}))},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ZERO="_FONT_ICON_ZERO",e.TARE="_FONT_ICON_TARE",e.TARE_1="_FONT_ICON_TARE1",e.CLR_TARE1="_FONT_ICON_CLR_TARE1",e.SHOW_TARE1="_FONT_ICON_SHOW_TARE1",e.HIDE_TARE1="_FONT_ICON_HIDE_TARE1",e.DELETE="_FONT_ICON_DELETE",e.EDIT="_FONT_ICON_EDIT",e.PRINT="_FONT_ICON_PRINT",e.OK="_FONT_ICON_OK",e.CANCEL="_FONT_ICON_CANCEL",e.ERROR="_FONT_ICON_ERROR",e.WARNING="_FONT_ICON_WARNING",e.INFO="_FONT_ICON_INFO",e.NEXT10="_FONT_ICON_NEXT_10",e.NEXT="_FONT_ICON_NEXT",
e.PREV="_FONT_ICON_PREV",e.PREV10="_FONT_ICON_PREV_10",e.RESULT="_FONT_ICON_RESULT",e.IONIZER="_FONT_ICON_IONIZER",e.PRINT_ADD="_FONT_ICON_PRINT_ADD",e.X_ACROSS="_FONT_ICON_X_ACROSS",e.RESULT_ADD="_FONT_ICON_RESULT_ADD",e.RHO="_FONT_ICON_RHO",e.BACK="_FONT_ICON_BACK",e.MIN_USP="_FONT_ICON_MIN_USP",e.START="_FONT_ICON_START",e.END="_FONT_ICON_END",e.DOCU="_FONT_ICON_DOCU",e.INVALIDATE_SAMPLE="_FONT_ICON_INVALID_SAMPLE",e.SEARCH="_FONT_ICON_SEARCH",e.SEARCH_ACTIVE="_FONT_ICON_SEARCH_ACTIVE",e.FILTER="_FONT_ICON_FILTER",e.FILTER_ACTIVE="_FONT_ICON_FILTER_ACTIVE",e.ADD="_FONT_ICON_ADD",e.LOGOUT="_FONT_ICON_LOGOUT",e.RELOAD="_FONT_ICON_RELOAD",e.WEIGHING="_FONT_ICON_WEIGHING",e.QUESTION="_FONT_ICON_QUESTION",e.SKIP="_FONT_ICON_SKIP",e.HELP="_FONT_ICON_HELP",e.LIST="FONT_ICON_LIST",e.SAMPLE="_FONT_ICON_SAMPLE",e.SUBSAMPLE="_FONT_ICON_SUBSAMPLE",e.SUBSAMPLE_DONE="_FONT_ICON_SUBSAMPLE_DONE",e.REQUEST="_FONT_ICON_REQUEST",e.REQUEST_DONE="_FONT_ICON_REQUEST_DONE",
e.TASK_SUBSAMPLE="_FONT_ICON_TASK_SUBSAMPLE",e.EXCHANGE="_FONT_ICON_TASK_CONTROLLED",e.OMNIS="_FONT_ICON_OMNIS"}(t.EnumFontLabels||(t.EnumFontLabels={}))},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(1);function n(e){return i.cloneJSON({module:"qappHandler",method:"buttonClickEvent",params:{buttonId:e||""}})}function s(e){let t={nameId:"",appearance:"HIDDEN",type:"",label:{id:"",args:[]},effect:n()};return void 0!==e.nameId&&(t.nameId=e.nameId),void 0!==e.labelCenter&&(t.labelCenter=e.labelCenter),void 0!==e.labelRight&&(t.labelRight=e.labelRight),void 0!==e.icon&&(t.icon=e.icon),void 0!==e.lastSelected&&(t.lastSelected=e.lastSelected),t.label=e.label,t.appearance=e.appearance,t.effect.params.buttonId=e.buttonId,e.longPressButtonId&&(t.longPressEffect=n(),t.longPressEffect.params.buttonId=e.longPressButtonId),void 0!==e.labelAlign&&(t.labelAlign=e.labelAlign),void 0!==e.labelCenterAlign&&(t.labelCenterAlign=e.labelCenterAlign),
void 0!==e.labelRightAlign&&(t.labelRightAlign=e.labelRightAlign),t}t.createButtonEmptyEffect=n,t.IButtonParameterInterface2IButtonJsonInterface=s,t.IButtonJsonInterface2IButtonParameterInterface=function(e){let t={buttonId:e.effect.params.buttonId,appearance:e.appearance,label:e.label};return e.nameId&&(t.nameId=e.nameId),e.labelCenter&&(t.labelCenter=e.labelCenter),e.labelRight&&(t.labelRight=e.labelRight),e.longPressEffect&&(t.longPressButtonId=e.longPressEffect.params.buttonId),void 0!==e.icon&&(t.icon=e.icon),void 0!==e.lastSelected&&(t.lastSelected=e.lastSelected),void 0!==e.labelAlign&&(t.labelAlign=e.labelAlign),void 0!==e.labelCenterAlign&&(t.labelCenterAlign=e.labelCenterAlign),void 0!==e.labelRightAlign&&(t.labelRightAlign=e.labelRightAlign),t};class r{constructor(e,t,_){this.lastPublishedTabContent="",this.mqttHandler=e,this.buttonTopic="SCREENS/"+t.getId()+"/"+_.buttonId,this.buttonJson=s(_)}setButtonId(e,t=!0){this.buttonJson.effect.params.buttonId=e,t&&this.publish()}
setLongPressButtonId(e,t=!0){e?(this.buttonJson.longPressEffect||(this.buttonJson.longPressEffect=n()),this.buttonJson.longPressEffect.params.buttonId=e):delete this.buttonJson.longPressEffect,t&&this.publish()}setJson(e){this.buttonJson=JSON.parse(e),this.publish()}setNameId(e,t=!0){this.buttonJson.nameId=e,t&&this.publish()}getNameId(){return this.buttonJson.nameId}setAppearance(e,t=!0){this.buttonJson.appearance=e,t&&this.publish()}setType(e,t=!0){this.buttonJson.type=e,t&&this.publish()}getType(){return this.buttonJson.type}getLabel(){return this.buttonJson.label}setLabel(e,t=!0){this.buttonJson.label=e,t&&this.publish()}getIcon(){return this.buttonJson.icon}setIcon(e,t=!0){void 0!==e&&e.length>0?this.buttonJson.icon=e:delete this.buttonJson.icon,t&&this.publish()}getLabelCenter(){return this.buttonJson.labelCenter}setLabelCenter(e,t=!0){this.buttonJson.labelCenter=e,t&&this.publish()}getLabelRight(){return this.buttonJson.labelRight}setLabelRight(e,t=!0){
this.buttonJson.labelRight=e,t&&this.publish()}getAppearance(){let e=a.EnumAppearance.HIDDEN;return this.buttonJson.appearance&&"string"==typeof this.buttonJson.appearance&&Object.keys(a.EnumAppearance).indexOf(this.buttonJson.appearance)?this.buttonJson.appearance:e}getJson(){return this.buttonJson}getTopic(){return this.buttonTopic}getButtonId(){return this.buttonJson.effect.params.buttonId}getLongPressButtonId(){return this.buttonJson.longPressEffect?this.buttonJson.longPressEffect.params.buttonId:null}publish(){let e=JSON.stringify(this.buttonJson);e!==this.lastPublishedTabContent&&(this.mqttHandler.publish(this.buttonTopic,e),this.lastPublishedTabContent=e)}show(){this.publish()}}t.Button=r,t.default=r},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QAPP_TIMER_EVENT="QAPP_TIMER_EVENT";t.QAppTimerEvent=class{constructor(e){this.payload=e,this.type=t.QAPP_TIMER_EVENT}},t.QAPP_INTERVAL_EVENT="QAPP_INTERVAL_EVENT";t.QAppIntervalEvent=class{
constructor(e){this.payload=e,this.type=t.QAPP_INTERVAL_EVENT}},t.IMMEDIATE_EVENT="IMMEDIATE_EVENT";t.ImmediateEvent=class{constructor(e){this.payload=e,this.type=t.IMMEDIATE_EVENT}},t.SIMPLE_EVENT="SIMPLE_EVENT";t.SimpleEvent=class{constructor(e){this.payload=e,this.type=t.SIMPLE_EVENT}},t.QAPP_SYNC_CALL_DONE_EVENT="QAPP_SYNC_CALL_DONE_EVENT",function(e){e.SYNC_CALL_SAVE_WORKSTATE="SYNC_CALL_SAVE_WORKSTATE"}(t.QAPP_SYNC_CALL_DONE_EVENT_TYPE||(t.QAPP_SYNC_CALL_DONE_EVENT_TYPE={}));t.QAppSyncCallDoneEvent=class{constructor(e){this.payload=e,this.type=t.QAPP_SYNC_CALL_DONE_EVENT}},t.QAPP_ASYNC_CALL_DONE_EVENT="QAPP_ASYNC_CALL_DONE_EVENT",t.QAPP_ASYNC_CALL_FAIL_EVENT="QAPP_ASYNC_CALL_FAIL_EVENT";t.QAppAsyncCallDoneEvent=class{constructor(e){this.payload=e,this.type=t.QAPP_ASYNC_CALL_DONE_EVENT}};t.QAppAsyncCallFailEvent=class{constructor(e){this.payload=e,this.type=t.QAPP_ASYNC_CALL_FAIL_EVENT}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){
e.INFO="INFO",e.ERROR="ERROR",e.WARNING="WARNING",e.QUESTION="QUESTION"}(t.EnumMessageboxType||(t.EnumMessageboxType={}))},function(e,t){e.exports=require("rxjs/Subject")},function(e,t){e.exports=require("lodash")},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(1);function i(e){return null!=e&&null!==e&&void 0!=e&&void 0!==e&&"string"==typeof e}function n(e){return null!=e&&null!==e&&void 0!=e&&void 0!==e&&"object"==typeof e}t.isNumber=function(e){return null!=e&&null!==e&&void 0!=e&&void 0!==e&&"number"==typeof e&&!isNaN(e)},t.isString=i,t.isObject=n,t.isBoolean=function(e){return null!=e&&null!==e&&void 0!=e&&void 0!==e&&"boolean"==typeof e},t.getObjectByID=function(e,t,_){if(!n(e))return null;i(_)||(_="id"),_=_;for(let a=0;a<e.length;a++)if(e[a].hasOwnProperty(_)&&i(e[a][_])&&e[a][_]===t)return e[a];return null},t.overwriteExistingAttributes=function(e,t){if(n(e)&&n(t)){let _=Object.keys(t)
;for(let i=0;i<_.length;i++)"function"!=typeof t[_[i]]&&e.hasOwnProperty(_[i])&&typeof t[_[i]]==typeof e[_[i]]&&(t[_[i]]=a.cloneJSON(e[_[i]]))}},t.setEnumSafely=function(e,t,_){const a=Object.keys(t);for(const _ of a)if(t[_]===e)return t[_];return i(_)?_:a.length>0?t[a[0]]:void 0}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(3),i=_(44),n=_(16),s=_(34),r=_(0);t.digitsLimit=9,t.QUANTITY_PARAM_MAX_DIGITS_GENERAL=t.digitsLimit;class E{static setValue(e,_,a=0,i=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL){return E.setValueValueWithDecimals(e.value,_,e.value.preferredDecimals,a,i)}static setValueValue(e,_,a=0,i=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL){return E.setValueValueWithDecimals(e,_,e.preferredDecimals,a,i)}static setValueWithDecimals(e,_,a,i=0,n=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL){return E.setValueValueWithDecimals(e.value,_,a,i,n)}static setValueValueWithDecimals(e,_,s,r=0,E=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL,o=!1){
let A="number"==typeof _?_:_.value,T=E-Math.floor(Math.abs(A)).toString().length,I=Math.min(T,s);I=Math.max(I,0),0===r&&e&&(e.decimals=I);let N=i.SartoMath.roundExactToDecimals(A,I).toFixed(I);if(e){if(o||0!==r)"number"!=typeof _&&(n.isArray(e.unit)?e.unit[0]=_.unit:e.unit=_.unit);else{for(let t=a.QUANTITY_PARAM_NUMBERS_MAX-2;t>=r;t--)void 0!==e.numbers[t]&&(e.numbers[t+1]=e.numbers[t]);if("number"==typeof _){if(n.isArray(e.unit))for(let t=a.QUANTITY_PARAM_NUMBERS_MAX-2;t>=r;t--)void 0!==e.unit[t]&&(e.unit[t+1]=e.unit[t])}else if(n.isArray(e.unit)){for(let t=a.QUANTITY_PARAM_NUMBERS_MAX-2;t>=r;t--)void 0!==e.unit[t]&&(e.unit[t+1]=e.unit[t]);e.unit[0]=_.unit}else e.unit=_.unit}e.numbers[r]=N}return N}static roundToDecimalPlaces(e,_=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL){return E.roundToDecimalPlacesValue(e.value,_)}static roundToDecimalPlacesAllNumbers(e,_=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL){return E.roundToDecimalPlacesValue(e.value,_,!0)}
static roundToDecimalPlacesValue(e,_=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL,a=!1){return e.numbers.forEach((t,i)=>{(0===i||a)&&-1!==e.preferredDecimals&&E.setValueValueWithDecimals(e,parseFloat(t),e.preferredDecimals,i,_,!0)}),e.numbers.map(e=>parseFloat(e))}static getValue(e,t=0){let _,a=(_=void 0!==e.value?e.value:e).numbers[t];return void 0!==a?parseFloat(a):Number.NaN}static getIntValue(e,t=0){let _,a=(_=void 0!==e.value?e.value:e).numbers[t];return void 0!==a?parseInt(a,10):Number.NaN}static changeUnit(e,_){let a;a=void 0!==e.value?e.value:e;const i=s.unitStringToLong(a.unit);a.numbers.forEach((e,n)=>{const r=s.convertWgtUnit(parseFloat(e),i,_);E.setValueValueWithDecimals(a,r,a.preferredDecimals,n,t.QUANTITY_PARAM_MAX_DIGITS_GENERAL,!0)}),a.unit=s.unitStringToShort(_)}}t.QuantityParameter=E;t.WeightBlockHelper=class{static getMeasureParameter(e,t){for(const _ of e.parameters)for(const e of _.parameters)if(e.id===t&&e.type===r.EnumParameterTypes.PARAM_MEASURE)return e}}
},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(1);t.AbstractQAppAspect=class{configure(e){this.cfg=Object.assign(void 0!==this.cfg?this.cfg:{},e)}getConfig(){return a.cloneJSON(this.cfg)}}},function(e,t){e.exports=require("util")},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(69),i=_(70),n=_(71),s=_(45),r=_(73),E=_(9),o=_(20),A=_(74),T=_(21),I=_(77),N=_(48),l=_(50),c=_(41),u=_(52),P=_(54),p=_(63),S=_(55),d=_(10),R=_(37),O=_(3),L=_(82),D=_(4),h=_(26),C=_(64),m=_(53),g=_(29),M=_(12),H=_(16),f=_(83),y=_(35),B=_(42),b=_(65),G=_(1),U=_(7),v=_(84),F=_(85),Q=_(86),k=_(46),W=_(87),V=_(30),x=_(2),w=_(0);_(88),t.HEARTBEAT_INTERVAL_MS=2e3;const Y=100,K=500;t.STORAGE_LOCATION_BASE="/data/installedQApps/qapps/data";const X="STATE_SUSPENDING_INTERNAL",q="STATE_RESTARTING_INTERNAL",j="_START_FSM_",z="_INTERNAL_DEVEL_VERSION_INFO_STATE_",J="BTN_INTERNAL_DEVEL_VERSION_INFO";t.FORCED_SUSPEND_HOME_BUTTON_ID="BTN_HOME",
t.LOGOUT_BUTTON_ID="BTN_LOGOUT",t.PRINT_RESTART_BUTTON_ID="BTN_PRINT_RESTART";const $="BTN_SUSPEND_QUESTION_YES",Z="BTN_SUSPEND_QUESTION_NO",ee="BTN_LOGOUT_QUESTION_YES",te="BTN_LOGOUT_QUESTION_NO",_e="BTN_RESTART_QUESTION_YES",ae="BTN_RESTART_QUESTION_NO",ie="CANCEL_LOGOUT",ne="REMEMBER_LOGOUT",se="TASK/IDENTIFICATION",re="TASK/PROFILE";var Ee,oe;t.TASK_PROFILE_REPORTING_ID_PREFIX=re+"/REPORTING_PROFILES",t.TASK_PROFILE_WEIGHING_ID=re+"/WEIGHING",t.ASYNC_CALL_DB_CONNECTION_CREATE="ASYNC_CALL_DB_CONNECTION_CREATE",function(e){e.FUNC_BTN_TAKEOVER="FUNC_BTN_TAKEOVER",e.FUNC_BTN_DOCU="FUNC_BTN_DOCU",e.FUNC_BTN_OTHER="FUNC_BTN_OTHER"}(Ee=t.EnumFunctionalButtonType||(t.EnumFunctionalButtonType={})),function(e){e.SUSPEND_NO_SUSPEND="SUSPEND_NO_SUSPEND",e.SUSPEND_HOME="SUSPEND_HOME",e.SUSPEND_LOGOUT="SUSPEND_LOGOUT",e.SUSPEND_APP="SUSPEND_APP"}(oe=t.EnumSuspendReason||(t.EnumSuspendReason={})),t.dbg=function(e){
null===e?console.log(" ## DEBUG ## null"):void 0===e?console.log(" ## DEBUG ## undefined"):"string"==typeof e||"number"==typeof e||"boolean"==typeof e?console.log(" ## DEBUG ## "+H.inspect(e).toString()):(console.log(" ## DEBUG ##"),console.log(H.inspect(e,!1,20)),console.log(" ##########"))};class Ae{constructor(e){this.suppressGlobalHomeBtnHandling=!1,this.suppressGlobalLogoutBtnHandling=!1,this.suppressGlobalRestartBtnHandling=!1,this.isDevelVersion=!1,this.screens={},this.hideLoadingScreenOnShowScreens=!0,this.buttons={takeoverBtn:void 0,docuButton:void 0,others:[]},this.lastRequestedTakeoverBtnAppearance=w.EnumAppearance.HIDDEN,this.aspects={},this.scriptPath=void 0,this.qAppOrderNumber=void 0,this.qAppVersion=void 0,this.taskId=void 0,this.isErrorStatePublished=!1,this.exitTimeOutPending=!1,this.suspendReason=oe.SUSPEND_NO_SUSPEND,this.heartbeatCount=0,this.eventQueue=[],this.eventQueuePending=!1,this.subscriptions=[],this.outstandingAsyncCalls=[],this.debugCfg={doConsoleLog:!0,
enableHeartbeatLog:!1,url:null},this.pendingMsgBox=void 0,this.currentMsgBox=void 0,this.isCurrentMsgPrio=!1,this.debugCfg.doConsoleLog=e,console.error=((...e)=>{console.log("ERR: ",e)});let i=_(29);if(console.log("try reading debug config from file"),i.existsSync("/data/installedQApps/qapps/data/qapplog.conf"))try{console.log("...found config file");let e=JSON.parse(i.readFileSync("/data/installedQApps/qapps/data/qapplog.conf","utf8").toString());console.log("...got it"),Object.assign(this.debugCfg,e),console.log("...debug config (with defaults): "+H.inspect(this.debugCfg))}catch(e){console.log("...invalid JSON content in qapplog.conf: "+e),console.log("...disable logging at all"),console.log=((...e)=>{})}else console.log("No qapplog file found.");let n=console.log;console.log("...saved original stdout");let s=null;if(null!==this.debugCfg.url){console.log("...there seems to be an url for remote logging configured");try{s=new k.URL(this.debugCfg.url),
console.log("...valid url for remote logging")}catch(e){s=null,console.log('...invalid URL like "ws://hostname.port" in qapplog.conf')}}if(this.debugCfg.doConsoleLog||(console.log("...disable local output"),console.log=((...e)=>{})),null!==s){console.log("...valid url for remote logging");let e=new W.Socket;e.on("error",()=>{try{console.log("...no logging redirected - error"),e.end()}catch(e){}}),e.connect(Number.parseInt(s.port),s.hostname,()=>{try{console.log(`...logging remote redirected to external client (local: ${this.debugCfg.doConsoleLog})`),console.log=((...t)=>{let _="";if(t.forEach(e=>{_+=e}),this.debugCfg.doConsoleLog)try{n(_)}catch(e){}_+="\n";try{e.write(_)}catch(e){}}),e.setNoDelay(!0),e.write("Hello, server! Love, Client.")}catch(e){}})}console.log("QAppBase: constr"),Ae.clientSingleton=this,this.restHandler=new I.RestHandler,this.mqttHandler=new A.MqttHandler,this.taskMngProxy=new l.TaskProxy,this.localizerProxy=new N.LocalizerProxy,
this.weighingProxy=new c.WeighingProxy,this.accessControlProxy=new P.AccessControlProxy,this.reportingProxy=new S.ReportingProxy,this.devicInformationProxy=new f.DeviceInformationProxy,this.messageHandlerProxy=new y.MessageHandlerProxy,this.messageHandlerHelper=new B.MessageHandlerHelper(this.messageHandlerProxy),this.taskHandler=new u.TaskHandler,this.heartbeatInterval$=a.interval(t.HEARTBEAT_INTERVAL_MS)}getQAppOrderNumber(){return this.qAppOrderNumber}getQAppVersion(){return this.qAppVersion}getTaskId(){return this.taskId}getSerialNumber(){return this.devicInformationProxy.getSerialNo()}getWeighingProfileId(){let e=this.taskHandler.getParameter(t.TASK_PROFILE_WEIGHING_ID);return void 0!==e&&O.isTypeOfISelectionParameter(e)?e.value.selection.id:void 0}registerAspect(e){this.aspects[e.getId()]=e}init(){let e=new L.LoadingOverlay(this.mqttHandler);this.registerScreen(e)}postInit(){}loadTask(){if(this.taskId){console.log("QAppBase: read task for: ",this.taskId);try{
this.taskHandler.setTask(this.taskMngProxy.readTask(this.taskId)),console.log("QAppBase: read task ...done");let e=this.taskHandler.getTask();e&&(this.qAppOrderNumber=e.qappOrderNumber,this.qAppVersion=e.qappVersion),console.log("QAppBase: got qAppOrderNumber from Task-Info: "+this.qAppOrderNumber+"@"+this.qAppVersion)}catch(e){this.exitError("QAppBase::loadTask - error reading: "+e.toString())}}else this.exitError("QAppBase::loadTask - Workflow script called without taskId")}getTaskName(){let e=void 0;if(void 0!==this.taskHandler){let t=this.taskHandler.getParameter("TASK/IDENTIFICATION/NAME");void 0!==t&&(e=t.value.string)}return e}registerScreen(e){console.log("QAppBase: register screen with id: "+e.getId()),this.screens[e.getId()]=e;try{e.events$.subscribe(e=>{e.type===D.ScreenEventType.SHOW_SCREEN&&this.hideLoadingScreenOnShowScreens&&this.hideLoadingScreen(),e.type,D.ScreenEventType.SHOW_LOADINGSCREEN,e.type,D.ScreenEventType.SHOW_MESSAGEBOX})}catch(e){}}showScreen(e){
if(!this.exitTimeOutPending)switch(e.getId()){case L.LOADING_OVERLAY_ID:case p.MESSAGEBOX_ID:this.exitError("QAppBase::showScreen() was called for messagebox or loading screen - not allowed");break;default:let t=this.hideLoadingScreenOnShowScreens;this.hideLoadingScreenOnShowScreens=!1,e.show(),this.closeAllScreensExcept(e),this.hideLoadingScreenOnShowScreens=t}}closeAllScreensExcept(e){switch(e.getId()){case L.LOADING_OVERLAY_ID:case p.MESSAGEBOX_ID:this.exitError("QAppBase::closeAllScreensExcept() was called for messagebox or loading screen - not allowed");break;default:for(let t in this.screens){let _=this.screens[t];_.getId()!==e.getId()&&_.getId()!==L.LOADING_OVERLAY_ID&&_.getId()!==Q.LOCK_LOADING_OVERLAY_ID&&_.getId()!==F.LOCKMESSAGEBOX_ID&&(_.getId()===p.MESSAGEBOX_ID?this.hideMsgBox():_.hide())}this.hidePrintQueue()}}getLoadingScreen(){let e=this.screens[L.LOADING_OVERLAY_ID];return void 0===e&&(e=new L.LoadingOverlay(this.mqttHandler),this.registerScreen(e)),e}
showLoadingScreen(e){if(!this.exitTimeOutPending){console.log("QAppBase::showLoadingScreen()");let t=this.getLoadingScreen();e?t.setText(e):t.setText({id:"",args:[]}),t.show()}}hideLoadingScreen(){console.log("QAppBase::hideLoadingScreen()");try{this.getLoadingScreen().hide()}catch(e){}}checkForLoadingScreenEnableEvent(e){try{return e.payload.event===h.MQTT_ADMIN_EVENT_PACKET_SENT&&e.payload.packet.topic===x.MqttTopics.HMI_LOADING_MODAL_APPEARANCE&&JSON.parse(e.payload.packet.payload.toString()).appearance===w.EnumAppearance.ENABLED}catch(e){return!1}}checkForLoadingScreenDisabledEvent(e){try{return e.payload.event===h.MQTT_ADMIN_EVENT_PACKET_SENT&&e.payload.packet.topic===x.MqttTopics.HMI_LOADING_MODAL_APPEARANCE&&JSON.parse(e.payload.packet.payload.toString()).appearance===w.EnumAppearance.HIDDEN}catch(e){return!1}}showMessageBox(e){this.exitTimeOutPending||(void 0===this.currentMsgBox?(console.log("QAppBase::showMessageBox(): check no current active one -> prep and show"),
this.currentMsgBox=e,this.prepAndShowMsgBox(this.currentMsgBox),this.isCurrentMsgPrio=!1,this.pendingMsgBox=void 0):(console.log("QAppBase::showMessageBox(): queue msgbox"),this.pendingMsgBox=e))}hideMsgBox(){console.log("QAppBase::hideMsgBox()"),this.pendingMsgBox=void 0,void 0===this.currentMsgBox||this.isCurrentMsgPrio||(console.log("QAppBase::hideMsgBox(): check non-prio -> hide"),this.currentMsgBox=void 0,this.hideMsgBoxInternal())}showPriorMsgBox(e){this.exitTimeOutPending||(void 0!==this.currentMsgBox&&(this.isCurrentMsgPrio||(console.log("QAppBase::showPriorMsgBox(): queue the current non prio msgbox"),this.pendingMsgBox=this.currentMsgBox)),console.log("QAppBase::showPriorMsgBox(): prep and how prio msgbox"),this.currentMsgBox=e,this.prepAndShowMsgBox(this.currentMsgBox),this.isCurrentMsgPrio=!0)}hidePriorMsgBox(){void 0!==this.pendingMsgBox?(this.currentMsgBox=this.pendingMsgBox,this.pendingMsgBox=void 0,this.prepAndShowMsgBox(this.currentMsgBox)):(this.currentMsgBox=void 0,
this.hideMsgBoxInternal()),this.isCurrentMsgPrio=!1}hideAllMsgBox(){this.pendingMsgBox=void 0,this.currentMsgBox=void 0,this.isCurrentMsgPrio=!1,this.hideMsgBoxInternal()}getMsgbox(){let e=this.screens[p.MESSAGEBOX_ID];return void 0===e&&(e=new p.MessageBox(this.mqttHandler),this.registerScreen(e)),e}prepAndShowMsgBox(e){if(!this.exitTimeOutPending){let t=this.getMsgbox();t.setMessageBoxData(e),console.log("QAppBase::prepAndShowMsgBox(): show"),t.show(),console.log("QAppBase::prepAndShowMsgBox(): done")}}hideMsgBoxInternal(){console.log("QAppBase::hideMsgBoxInternal()"),this.getMsgbox().hide()}showPrintQueue(){if(!this.exitTimeOutPending){console.log("QAppBase::showPrintQueue()");let e={enabled:!0};this.mqttHandler.publish(x.MqttTopics.REPORTING_PRINTQUEUE_DISPLAYED,JSON.stringify(e),{retain:!1})}}hidePrintQueue(){console.log("QAppBase::hidePrintQueue()");this.mqttHandler.publish(x.MqttTopics.REPORTING_PRINTQUEUE_DISPLAYED,JSON.stringify({enabled:!1}),{retain:!1})}clearPrintQueue(){
void 0!==this.buttons.docuButton&&this.buttons.docuButton.setAppearance(w.EnumAppearance.DISABLED),this.reportingProxy.clearPrintQueue()}registerButton(e,t){switch(e){case Ee.FUNC_BTN_TAKEOVER:this.buttons.takeoverBtn=t,this.lastRequestedTakeoverBtnAppearance=t.getAppearance();break;case Ee.FUNC_BTN_DOCU:this.buttons.docuButton=t,this.buttons.docuButton.setAppearance(w.EnumAppearance.DISABLED);break;default:this.buttons.others.push(t)}}addTimer(e,t){const _=n.setTimeout(()=>{this.addToEventQueue(new E.QAppTimerEvent(t))},e);return _.unref(),_}cancelTimer(e){void 0!==e&&n.clearTimeout(e)}addInterval(e,t){return n.setInterval(()=>{this.addToEventQueue(new E.QAppIntervalEvent(t))},e)}cancelInterval(e){void 0!==e&&n.clearInterval(e)}generateAsyncCallidentifier(){let e=Math.random();for(;this.outstandingAsyncCalls.find(t=>t===e);)e=Math.random();return e}enqueAsyncCall(e,_,a=5*t.HEARTBEAT_INTERVAL_MS,i=!1){let s=this.getCurrentState()
;console.log("QAppBase::enqueAsyncCall in state: "+s+" (timeout: "+a+"/fetchAfter: "+i+") with metadata: "+H.inspect(_));let E=this.generateAsyncCallidentifier();this.outstandingAsyncCalls.push(E);let o=new b.QAppAsyncCallTimeoutError(s,_),A=n.setTimeout(()=>{console.log("QAppBase async call timeout - add timeout to event queue");let e=new r.InternalAsyncCallEvent({type:i?r.INTERNAL_ASYNC_CALL_EVENT_TYPE.INTERNAL_ASYNC_CALL_EVENT_TYPE_TIMEOUT_WITH_FETCHING_RESP:r.INTERNAL_ASYNC_CALL_EVENT_TYPE.INTERNAL_ASYNC_CALL_EVENT_TYPE_TIMEOUT,data:{sourceState:s,reason:o,metadata:_},id:E});this.addToEventQueue(e)},a);e.then(e=>{console.log("QAppBase async call passed - add result to event queue");let t=new r.InternalAsyncCallEvent({type:r.INTERNAL_ASYNC_CALL_EVENT_TYPE.INTERNAL_ASYNC_CALL_EVENT_TYPE_SUCCESS,data:{sourceState:s,result:e,metadata:_},id:E,timerId:A});this.addToEventQueue(t)}).catch(e=>{console.log("QAppBase async call failed - add reason to event queue"),console.log(H.inspect(e))
;let t=new r.InternalAsyncCallEvent({type:r.INTERNAL_ASYNC_CALL_EVENT_TYPE.INTERNAL_ASYNC_CALL_EVENT_TYPE_FAIL,data:{sourceState:s,reason:e,metadata:_},id:E,timerId:A});this.addToEventQueue(t)}),console.log("QAppBase::enqueAsyncCall done...")}addToEventQueue(e){e.type===E.IMMEDIATE_EVENT||e.type===r.INTERNAL_SUSPEND_EVENT||e.type===r.INTERNAL_RESTART_EVENT||e.type===r.HEARTBEAT_EVENT?this.eventQueue.push(e):this.eventQueue.unshift(e),this.eventQueuePending||(setImmediate(()=>{this.processEventQueue(this)}),this.eventQueuePending=!0)}processEventQueue(e){if(this.exitTimeOutPending)return;e.eventQueuePending=!1;let t=e.eventQueue.length,_=e.eventQueue.pop();for(;_&&t>0&&!this.exitTimeOutPending;)t--,e.handleEvent(_),t>0&&(_=e.eventQueue.pop())}run(){if(!this.isErrorStatePublished){console.log("QAppBase: run"),this.processCLParameters(process.argv),this.heartbeat({message:":-)",value:this.heartbeatCount++});let e=this.provideStartFsmState()
;this.qappStates=this.prepareAndExtendFsmStates(e),console.log("QAppBase: register internal event handler"),this.subscriptions.push(i.merge(this.mqttHandler.mqttUpdateEvent$,this.mqttHandler.mqttAdminEvent$,this.restHandler.buttonClickEvent$,this.restHandler.paramChangedEvent$,this.restHandler.paramDetailEvent$,this.restHandler.restRequestEvent$).subscribe(e=>{this.addToEventQueue(e)})),this.subscriptions.push(this.mqttHandler.mqttUpdateEvent$.subscribe(e=>{try{switch(e.payload.topic){case x.MqttTopics.METROLOGY_MAX_DIGITS:case x.MqttTopics.METROLOGY_MAX_DIGITS_DEBUG:this.weighingProxy.updateWeighValueMaxDigits(parseInt(e.payload.value.toString(),10));break;case x.MqttTopics.METROLOGY_RANGES:this.weighingProxy.updateMetrologyRanges(JSON.parse(e.payload.value.toString()));break;case x.MqttTopics.WEIGHING_SELECTED_DISPLAY_VALUE:this.weighingProxy.updateLastSelectedDisplayValue(JSON.parse(e.payload.value.toString()))}}catch(t){
this.exitError("unexpected value content for incoming MQTT event: "+e.payload.topic)}})),console.log("QAppBase: create the FSM with all custom states"),this.qappFsm=s.createFsm(this.qappStates),delete this.__machina__,this.eventQueue.splice(0),this.qappFsm.on("transition",this.onFsmTransitionInternal),this.mqttHandler.subscribe(x.MqttTopics.QAPP_DEBUG_TOPIC_PREAMBLE+"/#"),this.onRunning(),console.log("QAppBase: schedule transition to custom start state"),setTimeout(()=>{console.log("QAppBase: start heartbeating"),this.heartbeatIntervalSubscription=this.heartbeatInterval$.subscribe(()=>{this.addHeartbeatEvent(":-)")}),console.log("QAppBase: initiate transition to custom start state"),this.qappFsm.handle(this,j,this.isDevelVersion?z:e),console.log("QAppBase: initiated transition to custom start state")},Y),console.log("QAppBase: run finished")}}canSuspend(){if(console.log("QAppBase: Can suspend?"),this.suspendReason===oe.SUSPEND_APP)return!0;if(console.log("QAppBase: Check printQueue"),
this.reportingProxy.isPrintQueueEmpty())return console.log("QAppBase: printQueue is empty, exiting the QApp."),!0;if(this.suspendReason===oe.SUSPEND_LOGOUT)this.showPriorMsgBox({type:d.EnumMessageboxType.QUESTION,title:{id:"_QAPP_LIB_MBOX_LOGOUT_WARNING_TITLE",args:[]},buttons:[{id:ee,label:{id:"_QAPP_LIB_MBOX_BTN_YES",args:[]},appearance:w.EnumAppearance.ENABLED_SECONDARY},{id:te,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},appearance:w.EnumAppearance.ENABLED_SECONDARY}],textList:[{id:"_QAPP_LIB_MBOX_LOGOUT_WARNING_TEXT_top",args:[]},{id:"_QAPP_LIB_MBOX_LOGOUT_WARNING_TEXT_mid",args:[this.getTaskName()]},{id:"_QAPP_LIB_MBOX_LOGOUT_WARNING_TEXT_bottom",args:[]}]});else{if(this.suspendReason!==oe.SUSPEND_HOME)return!1;this.showPriorMsgBox({type:d.EnumMessageboxType.QUESTION,title:{id:"_QAPP_LIB_MBOX_HOME_WARNING_TITLE",args:[]},buttons:[{id:$,label:{id:"_QAPP_LIB_MBOX_BTN_YES",args:[]},appearance:w.EnumAppearance.ENABLED_SECONDARY},{id:Z,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},
appearance:w.EnumAppearance.ENABLED_SECONDARY}],textList:[{id:"_QAPP_LIB_MBOX_HOME_WARNING_TEXT_top",args:[]},{id:"_QAPP_LIB_MBOX_HOME_WARNING_TEXT_mid",args:[this.getTaskName()]},{id:"_QAPP_LIB_MBOX_HOME_WARNING_TEXT_bottom",args:[]}]})}return console.log("QAppBase: printQueue is not empty, asking for permission to exist task."),!1}continueSuspend(){this.suspendReason!==oe.SUSPEND_NO_SUSPEND?(console.log("QAppBase: Continue last suspend request"),this.clearPrintQueue(),this.handleEvent(new r.InternalSuspendEvent(r.INTERNAL_SUSPEND_EVENT_TYPE.SUSPEND_EVENT_TYPE_EXECFINALLY))):console.log("QAppBase: No suspend pending continue")}cancelSuspend(){console.log("QAppBase: Cancel last suspend request"),this.suspendReason=oe.SUSPEND_NO_SUSPEND}cancelLogout(){console.log("QAppBase: Cancel last logout request"),this.cancelSuspend(),this.mqttHandler.publish(x.MqttTopics.QAPP_LOGOUT_REQUEST,JSON.stringify({request:ie}))}rememberLogout(){
this.mqttHandler.publish(x.MqttTopics.QAPP_LOGOUT_REQUEST,JSON.stringify({request:ne}))}suspend(){console.log("QAppBase: QApp suspend request"),this.suspendReason=oe.SUSPEND_APP,this.handleEvent(new r.InternalSuspendEvent(r.INTERNAL_SUSPEND_EVENT_TYPE.SUSPEND_EVENT_TYPE_EXECFINALLY))}doSuspend(){this.isErrorStatePublished||(console.log("QAppBase: suspend"),this.onSuspending(),this.doCloseAllOverlays(),console.log("QAppBase: publish STOPPED event of qapp"),this.mqttHandler.publish(x.MqttTopics.QAPP_STOPPED,this.taskId?""+this.taskId:"",{retain:!1}),setTimeout(()=>{console.log("process.exit"),process.exit(0)},K),this.exitTimeOutPending=!0)}canRestart(){return console.log("QAppBase: can restart? - check printQueue"),this.reportingProxy.isPrintQueueEmpty()?(console.log("QAppBase: printQueue is empty, restart the QApp."),!0):(this.showPriorMsgBox({type:d.EnumMessageboxType.QUESTION,title:{id:"_QAPP_LIB_MBOX_RESTART_QUESTION_TITLE",args:[]},buttons:[{id:_e,label:{id:"_QAPP_LIB_MBOX_BTN_YES",
args:[]},appearance:w.EnumAppearance.ENABLED_SECONDARY},{id:ae,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},appearance:w.EnumAppearance.ENABLED_SECONDARY}],textList:[{id:"_QAPP_LIB_MBOX_RESTART_QUESTION_TEXT_top",args:[this.getTaskName()]},{id:"_QAPP_LIB_MBOX_RESTART_QUESTION_TEXT_bottom",args:[]}]}),console.log("QAppBase: printQueue is not empty, asking for permission to restart task."),!1)}continueRestart(){console.log("QAppBase: Continue last restart request"),this.handleEvent(new r.InternalRestartEvent(r.INTERNAL_RESTART_EVENT_TYPE.RESTART_EVENT_TYPE_EXECFINALLY))}doCloseAllOverlays(){this.hidePrintQueue();for(let e in this.screens){let t=this.screens[e].getButton(R.CANCEL_BARBUTTON_ID);if(t&&t.setAppearance(w.EnumAppearance.HIDDEN),e!==L.LOADING_OVERLAY_ID)try{this.screens[e].hide()}catch(e){}}this.hideAllMsgBox()}exitError(e){this.isErrorStatePublished=!0;let t=(new Error).stack;console.log("QAppBase: exit with error: "+e),console.log("exitError: "),console.log(t),
this.doCloseAllOverlays(),this.messageHandlerHelper.addMessage(B.EMsgHandlerMsgs.ERR_799_GENERIC_INTERNAL_ERROR,e,void 0,[y.createMessageHandlerButton(void 0,void 0,y.MessageHandlerCallTarget.REMOVE_MESSAGE)]),this.onErrorExiting(e),this.mqttHandler.publish(x.MqttTopics.QAPP_ERROR,(this.taskId?""+this.taskId:"")+"error: "+e,{retain:!1}),setTimeout(()=>{console.error("QAppBase: exit with error: "+e),process.exit(-1)},K),this.exitTimeOutPending=!0}heartbeat(e){this.isErrorStatePublished||(this.debugCfg.enableHeartbeatLog&&console.log("."),this.mqttHandler.publish(x.MqttTopics.QAPP_HEARTBEAT,JSON.stringify(e),{retain:!1}))}addHeartbeatEvent(e){this.addToEventQueue(new r.HeartbeatEvent({message:e,value:this.heartbeatCount++}))}checkForCustomHeartbeatEvent(e,t){try{return e.payload.event===h.MQTT_ADMIN_EVENT_PACKET_SENT&&e.payload.packet.topic===x.MqttTopics.QAPP_HEARTBEAT&&JSON.parse(e.payload.packet.payload.toString()).message===t}catch(e){return!1}}adaptFsmStates(e){}
prepareAndExtendFsmStates(e){let t;if(console.log("QAppBase::prepareAndExtendFsmStates: create state machine with QApp specific states"),void 0===this.qappStates){t=this.provideFsmStates();for(let e in this.aspects)Object.assign(t,this.aspects[e].getAspectStates());t[z]={_onEnter:function(e){e.showMessageBox({type:d.EnumMessageboxType.INFO,title:{id:"_QAPP_LIB_MBOX_DEMO_INFO_TITLE",args:[]},buttons:[{id:J,label:{id:U.EnumFontLabels.OK,args:[]},appearance:w.EnumAppearance.ENABLED_SECONDARY}],textList:[{id:"_QAPP_LIB_MBOX_DEMO_INFO_TEXT",args:[]}]})},_onExit:function(e){},EV_HMI_BTN_CLICKED:function(t,_){return _.payload.buttonId===J&&(t.hideMsgBox(),this.transition(t,e)),""}},this.adaptFsmStates(t);for(let e in this.aspects)if(this.aspects[e].getId()===v.LOCKING_ASPECT){this.aspects[e].adaptFsmStates(t);break}let _=function(e,t){e.heartbeat(t.payload)};for(let e in t)t.hasOwnProperty(e)&&(t[e]._FSM_HEARTBEAT_EVENT_=_,t[e]._INTERNAL_SUSPEND_EVENT_=function(e,t){switch(t.payload){
case r.INTERNAL_SUSPEND_EVENT_TYPE.SUSPEND_EVENT_TYPE_FORCED_HOME:case r.INTERNAL_SUSPEND_EVENT_TYPE.SUSPEND_EVENT_TYPE_FORCED_LOGOUT:console.log("QAppBase: HOME/LOGOUT button suspend request"),t.payload===r.INTERNAL_SUSPEND_EVENT_TYPE.SUSPEND_EVENT_TYPE_FORCED_HOME?e.suspendReason=oe.SUSPEND_HOME:e.suspendReason=oe.SUSPEND_LOGOUT,e.canSuspend()?this.transition(e,X):console.log("QAppBase: HOME/LOGOUT suspend interrupted by QApp");break;case r.INTERNAL_SUSPEND_EVENT_TYPE.SUSPEND_EVENT_TYPE_FORCED_AUTO_LOGOUT:console.log("QAppBase: auto logout suspend request"),e.suspendReason=oe.SUSPEND_HOME,this.transition(e,X);break;case r.INTERNAL_SUSPEND_EVENT_TYPE.SUSPEND_EVENT_TYPE_EXECFINALLY:this.transition(e,X)}},t[e]._INTERNAL_RESTART_EVENT_=function(e,t){switch(t.payload){case r.INTERNAL_RESTART_EVENT_TYPE.RESTART_EVENT_TYPE_REQUEST:e.canRestart()?this.transition(e,q):console.log("QAppBase: restart interrupted by QApp");break;case r.INTERNAL_RESTART_EVENT_TYPE.RESTART_EVENT_TYPE_EXECFINALLY:
this.transition(e,q)}});t[X]={_onEnter:function(e){e.showLoadingScreen({id:"",args:[]})},_onExit:function(e){},MQTT_ADMIN_EVENT:function(e,t){e.checkForLoadingScreenEnableEvent(t)&&e.doSuspend()},_FSM_HEARTBEAT_EVENT_:_},t[q]={_onEnter:function(e){e.showLoadingScreen({id:"_QAPP_LIB_LOADING_OVERLAY_TEXT_RESTARTING_APP",args:[e.getTaskName()]})},_onExit:function(e){},MQTT_ADMIN_EVENT:function(e,t){e.checkForLoadingScreenEnableEvent(t)&&(e.clearPrintQueue(),this.transition(e,s.STATE_UNINITIALIZED_INTERNAL),e.restart(),e.run())},_FSM_HEARTBEAT_EVENT_:_}}else t=this.qappStates;return t}handleEvent(e){if(this.qappFsm){if(e instanceof o.MqttUpdateDebugEvent&&e.payload.topic===x.MqttTopics.QAPP_DEBUG_STOP_HEARTBEAT&&(console.log("DEBUG: stop heartbeat received"),this.heartbeatIntervalSubscription&&(console.log("DEBUG: stop heartbeat > unsubscribe on heartbeatInterval"),this.heartbeatIntervalSubscription.unsubscribe())),
e instanceof T.HmiButtonClickedEvent)if(e.payload.buttonId!==V.BTN_HOME_ID||this.suppressGlobalHomeBtnHandling)if(e.payload.buttonId!==V.BTN_LOGOUT_ID||this.suppressGlobalLogoutBtnHandling){if(e.payload.buttonId===$)return void this.continueSuspend();if(e.payload.buttonId===ee)return void this.continueSuspend();if(e.payload.buttonId===Z)return this.cancelSuspend(),this.hidePriorMsgBox(),void this.hideLoadingScreen();if(e.payload.buttonId===te)return this.cancelLogout(),this.hidePriorMsgBox(),void this.hideLoadingScreen();if(e.payload.buttonId!==t.PRINT_RESTART_BUTTON_ID||this.suppressGlobalRestartBtnHandling){if(e.payload.buttonId===_e)return void this.continueRestart();if(e.payload.buttonId===ae)return this.hidePriorMsgBox(),void this.hideLoadingScreen();if(void 0!==this.buttons.docuButton&&e.payload.buttonId===this.buttons.docuButton.getButtonId())return void this.handleDocuButton()}else e=new r.InternalRestartEvent(r.INTERNAL_RESTART_EVENT_TYPE.RESTART_EVENT_TYPE_REQUEST)
}else e=new r.InternalSuspendEvent(r.INTERNAL_SUSPEND_EVENT_TYPE.SUSPEND_EVENT_TYPE_FORCED_LOGOUT);else e=new r.InternalSuspendEvent(r.INTERNAL_SUSPEND_EVENT_TYPE.SUSPEND_EVENT_TYPE_FORCED_HOME);if(e instanceof o.MqttUpdateEvent&&e.payload.topic===x.MqttTopics.USERMANAGEMENT_AUTO_LOGOUT_EVENT)try{JSON.parse(e.payload.value.toString()).logOff&&(e=new r.InternalSuspendEvent(r.INTERNAL_SUSPEND_EVENT_TYPE.SUSPEND_EVENT_TYPE_FORCED_AUTO_LOGOUT))}catch(e){}if(e instanceof r.InternalAsyncCallEvent){let t=this.outstandingAsyncCalls.findIndex(t=>t===e.payload.id);if(-1===t)return void console.log(`QAppBase::handleEvent: async event already handled - discard result (${e.payload.type}) for metadata: ${e.payload.data.metadata}`);switch(e.payload.type){case r.INTERNAL_ASYNC_CALL_EVENT_TYPE.INTERNAL_ASYNC_CALL_EVENT_TYPE_SUCCESS:e.payload.timerId&&n.clearTimeout(e.payload.timerId),this.outstandingAsyncCalls.splice(t,1),e=new E.QAppAsyncCallDoneEvent(e.payload.data);break
;case r.INTERNAL_ASYNC_CALL_EVENT_TYPE.INTERNAL_ASYNC_CALL_EVENT_TYPE_FAIL:e.payload.timerId&&n.clearTimeout(e.payload.timerId),this.outstandingAsyncCalls.splice(t,1),e=new E.QAppAsyncCallFailEvent(e.payload.data);break;case r.INTERNAL_ASYNC_CALL_EVENT_TYPE.INTERNAL_ASYNC_CALL_EVENT_TYPE_TIMEOUT:this.outstandingAsyncCalls.splice(t,1),e=new E.QAppAsyncCallFailEvent(e.payload.data);break;case r.INTERNAL_ASYNC_CALL_EVENT_TYPE.INTERNAL_ASYNC_CALL_EVENT_TYPE_TIMEOUT_WITH_FETCHING_RESP:e=new E.QAppAsyncCallFailEvent(e.payload.data)}}this.qappFsm.handle(this,e.type,e)}else this.exitError("QAppBase::handleEvent - no fsm instance set, unexpectedly")}onFsmTransitionInternal(e){if(console.log("QAppBase: transition from <",e.fromState,"> to <",e.toState,"> (machina ev: <",e.action,">)"),e.fromState){let t=e.client.qappFsm.states[e.fromState]._transTo;if(t){let _=t[e.toState];_?_(e.client,e):(_=t["~"])&&_(e.client,e),(_=t["*"])&&_(e.client,e)}if(e.fromState===s.STATE_UNINITIALIZED_INTERNAL){
e.client.mqttHandler.subscribe(x.MqttTopics.METROLOGY_MAX_DIGITS),e.client.mqttHandler.subscribe(x.MqttTopics.METROLOGY_MAX_DIGITS_DEBUG),e.client.mqttHandler.subscribe(x.MqttTopics.METROLOGY_RANGES),e.client.mqttHandler.subscribe(x.MqttTopics.WEIGHING_SELECTED_DISPLAY_VALUE),e.client.mqttHandler.subscribe(x.MqttTopics.USERMANAGEMENT_AUTO_LOGOUT_EVENT),console.log("QAppBase: handle transition to custom initial state: initTaskHandler"),e.client.initTaskHandler(),console.log("QAppBase: handle transition to custom initial state: adaptTaskHandler"),e.client.adaptTaskHandler(),console.log("QAppBase: clear all task and QApp errors from messageHandler");let t=[],_=e.client.messageHandlerHelper.buildSecret(B.MESSAGE_HANDLER_SECRET_TYPE.QAPP);_&&t.push({categoryAsString:y.MessageHandlerCategory.QAPP,secret:_});let a=e.client.messageHandlerHelper.buildSecret(B.MESSAGE_HANDLER_SECRET_TYPE.QAPP_DB_ERROR);a&&t.push({categoryAsString:y.MessageHandlerCategory.QAPP,secret:a})
;let i=e.client.messageHandlerHelper.buildSecret(B.MESSAGE_HANDLER_SECRET_TYPE.QAPP_RUNTIME_COMM_ERROR);i&&t.push({categoryAsString:y.MessageHandlerCategory.QAPP,secret:i});let n=e.client.messageHandlerHelper.buildSecret(B.MESSAGE_HANDLER_SECRET_TYPE.QAPP_RUNTIME_EXIT_ERROR);n&&t.push({categoryAsString:y.MessageHandlerCategory.QAPP,secret:n});let s=void 0;void 0!==e.client.taskId&&(s=e.client.messageHandlerHelper.buildSecret(B.MESSAGE_HANDLER_SECRET_TYPE.TASKID))&&t.push({categoryAsString:y.MessageHandlerCategory.QAPP,secret:s});let r=!1;try{r=!e.client.messageHandlerProxy.deleteMessagesByCategory(t).isSuccess()}catch(e){r=!0}r&&(console.log("QAppBase: bulk call failed/not supported - use multiple messageHandler calls instead"),_&&e.client.messageHandlerProxy.deleteMessageByCategory(y.MessageHandlerCategory.QAPP,_),a&&e.client.messageHandlerProxy.deleteMessageByCategory(y.MessageHandlerCategory.QAPP,a),
i&&e.client.messageHandlerProxy.deleteMessageByCategory(y.MessageHandlerCategory.QAPP,i),n&&e.client.messageHandlerProxy.deleteMessageByCategory(y.MessageHandlerCategory.QAPP,n),s&&e.client.messageHandlerProxy.deleteMessageByCategory(y.MessageHandlerCategory.QAPP,s)),console.log("QAppBase: handle transition to custom initial state: init"),e.client.init(),console.log("QAppBase: handle transition to custom initial state: init all aspects");for(let t in e.client.aspects)console.log("init aspect: ",t),e.client.aspects[t].init(e.client);console.log("QAppBase: handle transition to custom initial state: postInit"),e.client.postInit(),console.log("QAppBase: handle transition to custom initial state: ...done")}}if(e.client.onFsmTransition(e),e.fromState===s.STATE_UNINITIALIZED_INTERNAL&&(console.log("QAppBase: publish running state of qapp"),e.client.mqttHandler.publish(x.MqttTopics.QAPP_STARTED,e.client.taskId?""+e.client.taskId:"create Task",{retain:!1})),e.toState){
let t=e.client.qappFsm.states[e.toState]._transFrom;if(t){let _=t[e.fromState];_?_(e.client,e):(_=t["~"])&&_(e.client,e),(_=t["*"])&&_(e.client,e)}}}getCurrentState(){let e=this.__machina__._qappStm_.state;return console.log("QAppBase::getCurrentState: ",e),e}onRunning(){console.log("QAppBase: default callback after QApp published RUNNING event")}restart(){this.announceRestart(),this.specificRestart(),this.onSuspending(),this.doCloseAllOverlays();for(let e of this.subscriptions)e.unsubscribe();this.heartbeatIntervalSubscription&&this.heartbeatIntervalSubscription.unsubscribe(),this.mqttHandler.unsubscribeTopics(),this.weighingProxy.clearTare1AndTare2()}announceRestart(){console.log("QAppBase: announce restart to system"),this.taskMngProxy.setTaskEvent(this.taskId?this.taskId:"---",l.EnumTaskManagementEvent.EVENT_RESTART)}specificRestart(){console.log("QAppBase: default callback before QApp restarts")}onSuspending(){
console.log("QAppBase: default callback before QApp publishes STOPPED event and exits")}onErrorExiting(e){console.log("QAppBase: default callback before QApp publishes ERROR event and aborts")}onFsmTransition(e){console.log("QAppBase: default callback for transitions")}getStorageLocation(e){let _=void 0,a=this.taskHandler.getTask();switch(e){case C.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_INDEPENDENT:_=t.STORAGE_LOCATION_BASE;break;case C.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC:a&&(_=this.getStorageLocation(C.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_INDEPENDENT)+m.sep+a.qappOrderNumber);break;case C.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC_VERSION:a&&(_=this.getStorageLocation(C.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC)+m.sep+a.qappVersion);break;case C.EnumPersistencyScope.PERSISTENCY_SCOPE_TASk_SPECIFIC:a&&this.taskId&&(_=this.getStorageLocation(C.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC_VERSION)+m.sep+this.taskId)}return _}
createStorageLocation(e){let t=_(29),a=this.getStorageLocation(C.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_INDEPENDENT);if(void 0!==a){if(!t.existsSync(a))return!1;if(e!==C.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_INDEPENDENT){let _=this.getStorageLocation(C.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC);if(void 0!==_){if(t.existsSync(_)||t.mkdirSync(_),e!==C.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC){let _=this.getStorageLocation(C.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC_VERSION);if(void 0!==_){if(t.existsSync(_)||t.mkdirSync(_),e!==C.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC_VERSION){return void 0!==this.getStorageLocation(C.EnumPersistencyScope.PERSISTENCY_SCOPE_TASk_SPECIFIC)&&(t.existsSync(this.getStorageLocation(C.EnumPersistencyScope.PERSISTENCY_SCOPE_TASk_SPECIFIC))||t.mkdirSync(this.getStorageLocation(C.EnumPersistencyScope.PERSISTENCY_SCOPE_TASk_SPECIFIC)),!0)}return!0}return!1}return!0}return!1}return!0}return!1}
readQAppDescQTFAsJSON(e,t=!0){let _=void 0,a=void 0,i="";this.scriptPath?i=m.dirname(this.scriptPath)+"/../":t?this.exitError("QAppConfigBase::readQAppDescAsJSON - internal error - no scriptPath is set."):console.log("QAppConfigBase::readQAppDescAsJSON - internal error - no scriptPath is set.");let n="";try{n=i+"qapp.desc_"+e+".json",a=g.readFileSync(n)}catch(e){console.log("QAppConfigBase: - no "+n+" found - try DEFAULT");try{n=i+"qapp.desc_DEFAULT.json",a=g.readFileSync(n)}catch(e){t?this.exitError("QAppConfigBase::readQAppDescAsJSON - "+n+" (fallback) missing"):console.log("QAppConfigBase::readQAppDescAsJSON - "+n+" (fallback) missing")}}try{a&&(_=JSON.parse(a.toString("utf-8")))}catch(e){t?this.exitError("QAppConfigBase::readQAppDescAsJSON - "+n+" not valid JSON"):console.log("QAppConfigBase::readQAppDescAsJSON - "+n+" not valid JSON")}return _}relevantParamsAreEqual(e,_){let a=G.cloneJSON(e),i=G.cloneJSON(_);return a.forEach((e,_)=>{
e.id===se?delete a[_]:e.id===re&&e.parameters.forEach((e,i)=>{e.id.startsWith(t.TASK_PROFILE_REPORTING_ID_PREFIX)?delete a[_].parameters[i]:e.id===t.TASK_PROFILE_WEIGHING_ID&&(e.info.options=[])})}),i.forEach((e,_)=>{e.id===se?delete i[_]:e.id===re&&e.parameters.forEach((e,a)=>{e.id.startsWith(t.TASK_PROFILE_REPORTING_ID_PREFIX)?delete i[_].parameters[a]:e.id===t.TASK_PROFILE_WEIGHING_ID&&(e.info.options=[])})}),M.isEqual(a,i)}deleteDBError(){let e=this.messageHandlerHelper.buildSecret(B.MESSAGE_HANDLER_SECRET_TYPE.QAPP_DB_ERROR);e&&this.messageHandlerProxy.deleteMessageByCategory(y.MessageHandlerCategory.QAPP,e)}}t.QAppBase=Ae},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(3),n=_(98);t.TAB_MQTT_SCREENS_STRING="SCREENS/",t.TAB_MQTT_TABS_STRING="/TABS/",t.TAB_MQTT_TAB_STRING="/TAB";t.TabBase=class{constructor(e,t,_=!1){this.tabData=void 0,this.screenId="",this.publishPending=!1,this.lastPublishedTabContent="",this.mqttHandler=e,
this.screenId=t,this.singleTab=_}setTabData(e,t=!0){this.tabData=e,t&&this.publishIfEnabled()}publishIfEnabled(){this.publishPending=!1,void 0!==this.tabData&&this.tabData.appearance===a.EnumAppearance.ENABLED&&this.publish()}getTabId(){return void 0!==this.tabData?this.tabData.id:""}setTabContainerTitle(e,t=!0){void 0!==this.tabData&&(this.tabData.containerTitle=e,t&&this.publishIfEnabled())}getTabContainerTitle(){return void 0!==this.tabData?this.tabData.containerTitle:i.createEmptyTextStructure()}setTabTitle(e,t=!0){void 0!==this.tabData&&(this.tabData.title=e,t&&this.publishIfEnabled())}getTabContainerIcon(){return void 0!==this.tabData&&this.tabData.topIcon||""}setTabContainerIcon(e,t=!0){void 0!==this.tabData&&(this.tabData.topIcon=e,t&&this.publishIfEnabled())}getTabTitle(){return void 0!==this.tabData?this.tabData.title:i.createEmptyTextStructure()}clearTabTopButtons(e=!0){void 0!==this.tabData&&(this.tabData.topbuttons.splice(0,this.tabData.topbuttons.length),
e&&this.publishIfEnabled())}getButton(e){}getTabTopButtons(){return void 0!==this.tabData?this.tabData.topbuttons:[]}publishId(){return this.singleTab?t.TAB_MQTT_SCREENS_STRING+this.screenId+t.TAB_MQTT_TAB_STRING:void 0!==this.tabData?t.TAB_MQTT_SCREENS_STRING+this.screenId+t.TAB_MQTT_TABS_STRING+this.tabData.id:""}publish(){if(void 0!==this.tabData){let e=JSON.stringify(this.tabData,n.functionReplacer);e!==this.lastPublishedTabContent&&(this.lastPublishedTabContent=e,this.mqttHandler.publish(this.publishId(),this.lastPublishedTabContent))}}setAppearance(e,t=!0){void 0!==this.tabData&&(this.tabData.appearance=e,t&&this.publish())}getId(){return this.screenId}hide(){this.setAppearance(a.EnumAppearance.HIDDEN)}show(){this.setAppearance(a.EnumAppearance.ENABLED)}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(3),i=_(1),n=_(2);class s{constructor(e,t){this.publishedId="",this.publishPending=!0,this.parameter=t,
this.publishedId=n.MqttTopics.QAPP_PARAMETERS_TOPIC_PREAMBLE+"/"+this.parameter.id,this.mqttHandler=e,this.publish()}getId(){return this.parameter.id}getPublishedId(){return this.publishedId}setValue(e){this.parameter=e,this.publish()}getValue(){return this.parameter}setParamId(e,t=!0){(this.parameter.id!==e||this.publishPending)&&(this.parameter.id=e,t?this.publish():this.publishPending=!0)}setParamAppearance(e,t=!0){(this.parameter.appearance!==e||this.publishPending)&&(this.parameter.appearance=e,t?this.publish():this.publishPending=!0)}setParamType(e,t=!0){(this.parameter.type!==e||this.publishPending)&&(this.parameter.type=e,t?this.publish():this.publishPending=!0)}setParamTitle(e,t=!0){(this.parameter.title.id!==e.id||this.parameter.title.args.join("")!==e.args.join("")||this.publishPending)&&(this.parameter.title=e,t?this.publish():this.publishPending=!0)}setParamHeader(e,t=!0){
(this.parameter.header.id!==e.id||this.parameter.header.args.join("")!==e.args.join("")||this.publishPending)&&(this.parameter.header=e,t?this.publish():this.publishPending=!0)}publish(){if(this.publishPending=!1,a.isTypeOfIPasswordParameter(this.parameter)){let e=i.cloneJSON(this.parameter);e.info.passwordLength=e.value.string.length,e.value.string="",this.mqttHandler.publish(this.publishedId,JSON.stringify(e))}else this.mqttHandler.publish(this.publishedId,JSON.stringify(this.parameter))}}t.Param=s,t.default=s},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EV_MQTT_UPDATE="EV_MQTT_UPDATE";class a{constructor(e){this.payload=e,this.type=t.EV_MQTT_UPDATE}}t.MqttUpdateEvent=a,t.EV_MQTT_UPDATE_DEBUG="EV_MQTT_UPDATE_DEBUG";t.MqttUpdateDebugEvent=class extends a{constructor(){super(...arguments),this.type=t.EV_MQTT_UPDATE_DEBUG}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EV_HMI_BTN_CLICKED="EV_HMI_BTN_CLICKED",
t.EV_HMI_PARAM_CHANGED="EV_HMI_PARAM_CHANGED",t.EV_HMI_PARAM_DETAIL="EV_HMI_PARAM_DETAIL",t.EV_REST_REQUEST="EV_REST_REQUEST";const a=_(46);t.HmiButtonClickedEvent=class{constructor(e){this.payload=e,this.type=t.EV_HMI_BTN_CLICKED}};t.HmiParamChangedEvent=class{constructor(e){this.payload=e,this.type=t.EV_HMI_PARAM_CHANGED}};t.HmiParamDetailEvent=class{constructor(e){this.payload=e,this.type=t.EV_HMI_PARAM_DETAIL}};t.RestRequestEvent=class{constructor(e){this.payload=e,this.type=t.EV_REST_REQUEST}},t.getParamsForRestRequestEvent=function(e){return new a.URL("http://127.0.0.1/"+e.payload.subUrl).searchParams}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(3),i=_(19),n=_(4);t.CANCEL_BUTTON_ID="BTN_CANCEL",t.CANCEL_BUTTON_NAME="_CANCEL";class s extends n.AbstractScreen{constructor(e){super(e),this.paramList=[],this.parameterCategoryList=[],this.isLastCategoryVisible=!1,this.mqttHandler=e}setShowLastVisibleCategory(e,t=!0){
this.isLastCategoryVisible=e,t&&this.createAndPublishParamsAndPage()}readFromTaskhandler(e){let t=e.getTaskGroupsAndParameters();this.readFromParameterGroupArray(t)}readFromParameterGroupArray(e){this.paramList.splice(0,this.paramList.length),this.parameterCategoryList.splice(0,this.parameterCategoryList.length);for(let t of e){let e={},_={},n=a.createEmptyTextStructure();n=t.title,_.title=n,e.category=_,e.category.id=t.id,e.params=[];for(let _ of t.parameters){let t=new i.default(this.mqttHandler,_);this.paramList.push(t),e.params.push(t.getPublishedId())}this.parameterCategoryList.push(e)}}createAndPublishParamsAndPage(){let e={params:{}};e.params=this.parameterCategoryList,e.showLastVisibleCategory=this.isLastCategoryVisible;let t=JSON.stringify(e,null,2);this.publishContent("PARAMSANDPAGE",t)}updateParameter(e){for(let t of this.paramList)if(t.getId()===e.id)return void t.setValue(e)}}t.ParamListBase=s,t.default=s},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{
value:!0});const a=_(10),i=_(0),n=_(7);t.ParamUpdateUserActionSimpleAccept_OK_BUTTON_ID="BTN_OK",t.ParamUpdateUserActionSimpleAccept={type:a.EnumMessageboxType.ERROR,title:{id:"_QAPP_LIB_MSG_BOX_WARNING_UPDATE_TASK_PARAM",args:[]},textList:[],buttons:[{appearance:i.EnumAppearance.ENABLED_SECONDARY,label:{id:n.EnumFontLabels.OK,args:[]},id:t.ParamUpdateUserActionSimpleAccept_OK_BUTTON_ID}]}},function(e,t){e.exports=require("mathjs")},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(24),i=_(34),n=_(13),s=_(1);var r,E;function o(e,_,i){let n=t.unitsMap[E.NONE],s=t.unitsMap[E.NONE];if(null==e)return a.bignumber(NaN);if(!t.unitsMap.hasOwnProperty(_))return e;if(!t.unitsMap.hasOwnProperty(i))return e;if(n=t.unitsMap[_],s=t.unitsMap[i],n.id===s.id)return e;if(n.unitConversionBase===r.UNDEFINED||s.unitConversionBase===r.UNDEFINED||void 0==n.conversionFactor||void 0==s.conversionFactor)return e;const o=[r.MASS,r.VOLUME]
;if(!(n.unitConversionBase===s.unitConversionBase||o.includes(n.unitConversionBase)&&o.includes(s.unitConversionBase)))return e;switch(n.unitConversionBase){case r.MASS:case r.VOLUME:case r.PRESSURE:return e.times(s.conversionFactor).dividedBy(n.conversionFactor);case r.TEMPERATURE:{let t=e;switch(n.id){case E.GRAD_CELSIUS:t=e.add(273.15);break;case E.GRAD_FAHRENHEIT:t=e.sub(32).dividedBy(n.conversionFactor).add(273.15)}switch(s.id){case E.GRAD_CELSIUS:return t.sub(273.15);case E.GRAD_FAHRENHEIT:return t.sub(273.15).times(s.conversionFactor).add(32);case E.KELVIN:return t}return e}default:return e}}function A(e,t,_){let i=o(n.isNumber(e)?a.bignumber(e):e,t,_);return null==i?NaN:i.toNumber()}function T(e,t){return P(e,t).toFixed(Math.max(0,t))}function I(e,_){let a=s.cloneJSON(e);a.alibi=void 0,a.alibiId=void 0;let n=t.unitsMap[e.unit],E=t.unitsMap[_];if(n.id===E.id)return a;if(n.unitConversionBase===r.UNDEFINED||E.unitConversionBase===r.UNDEFINED)return a;const o=[r.MASS,r.VOLUME]
;return n.unitConversionBase===E.unitConversionBase||o.includes(n.unitConversionBase)&&o.includes(E.unitConversionBase)?(a.value=A(a.value,e.unit,_),a.unit=_,a.decimals=a.decimals-i.getUnitShift(e.unit)+i.getUnitShift(_),a.decimals<0&&(a.decimals=0),delete a.alibiId,a):a}function N(e){return e?t.unitsMap.hasOwnProperty(e.toString())?t.unitsMap[e].mark:e.toString():""}function l(e){const _=n.getObjectByID(Object.values(t.unitsMap),e,"mark");return null!=_?_.id:E.NONE}function c(e){let t=[];if(null==e||void 0===e)return t;if(0==e.length)return t;let _=E.NONE;for(let a=0;a<e.length;a++)n.isNumber(e[a])?t.push(e[a]):n.isObject(e[a])&&e[a].hasOwnProperty("value")&&n.isNumber(e[a].value)&&e[a].hasOwnProperty("unit")&&(_!==E.NONE?t.push(I(e[a],_).value):(t.push(e[a].value),_=e[a].unit));return t}function u(e){let t=0;if(null==e||void 0===e)return t;if(0==e.length)return t;for(let _=0;_<e.length;_++)"object"==typeof e[_]&&e[_].hasOwnProperty("decimals")&&(t=e[_].decimals>t?e[_].decimals:t)
;return t}function P(e,t){let _=a.bignumber(e),i=a.bignumber(10).pow(t);return _.times(i).round().dividedBy(i).toNumber()}function p(e){let t=c(e);return n.isObject(t)&&0!==t.length?a.sum(t):NaN}function S(e){let t=c(e);return n.isObject(e)&&0!==e.length?a.mean(t):NaN}function d(e,t){let _=[];for(let a=0;a<e.length;a++)n.isNumber(e[a].value)&&(_[a]=I(e[a],t));return{value:S(_),unit:t,decimals:u(_)}}function R(e,t){return n.isObject(e)?a.bignumber(e.value).dividedBy(t).toNumber():a.bignumber(e).dividedBy(t).toNumber()}function O(e){let t=c(e);return n.isObject(t)&&0!==t.length?a.std(t,"unbiased"):NaN}function L(e,t){let _=[];for(let a=0;a<e.length;a++)n.isNumber(e[a].value)&&(_[a]=I(e[a],t));return{value:O(_),unit:t,decimals:u(_)}}function D(e,t,_){if(e<2||!n.isNumber(t)||!n.isNumber(_))return NaN;const i=a.bignumber(1).dividedBy(a.bignumber(e).minus(1)),s=a.bignumber(_).minus(a.bignumber(t).pow(2).dividedBy(a.bignumber(e)))
;return i.isNaN()||s.isNaN()?NaN:a.sqrt(i.times(s.abs())).toNumber()}function h(e){let t=c(e);return n.isObject(t)&&0!==t.length?a.min(t):NaN}function C(e){let t=c(e);return n.isObject(t)&&0!==t.length?a.max(t):NaN}function m(e){let t=c(e);return n.isObject(t)&&0!==t.length?g(O(t),S(t)):NaN}function g(e,t){let _=0,i=0;return _=n.isObject(e)?e.value:e,i=n.isObject(t)?t.value:t,n.isObject(e)&&n.isObject(t)&&(_=I(e,t.unit).value),a.bignumber(_).dividedBy(i).times(100).toNumber()}function M(e,t,_){let i=NaN,s=NaN,r=NaN,o=E.NONE;return n.isObject(e)?(i=e.value,o=e.unit):i=e,n.isObject(t)?o!==E.NONE?s=I(t,o).value:(s=t.value,o=t.unit):s=t,n.isObject(_)?o!==E.NONE?r=I(_,o).value:(r=_.value,o=_.unit):r=_,a.bignumber(r).minus(s).dividedBy(a.bignumber(i).times(6)).toNumber()}function H(e,t,_){return{value:M(e,t,_),unit:E.NONE,decimals:3}}function f(e,t,_,i){let s=NaN,r=NaN,o=NaN,A=NaN,T=E.NONE;return n.isObject(e)?(s=e.value,T=e.unit):s=e,n.isObject(t)?T!==E.NONE?r=I(t,T).value:(r=t.value,
T=t.unit):r=t,n.isObject(_)?T!==E.NONE?o=I(_,T).value:(o=_.value,T=_.unit):o=_,n.isObject(i)?T!==E.NONE?A=I(i,T).value:(A=i.value,T=i.unit):A=i,a.min(a.bignumber(r).minus(o).dividedBy(a.bignumber(s).times(3)),a.bignumber(A).minus(r).dividedBy(a.bignumber(s).times(3))).toNumber()}function y(e,t,_,a){return{value:f(e,t,_,a),unit:E.NONE,decimals:3}}!function(e){e.UNDEFINED="UNDEFINED",e.MASS="MASS",e.TEMPERATURE="TEMPERATURE",e.PRESSURE="PRESSURE",e.VOLUME="VOLUME"}(r=t.EnumUnitType||(t.EnumUnitType={})),function(e){e.NONE="NONE",e.DIGIT="DIGIT",e.UNIVERSAL="UNIVERSAL",e.MICROGRAM="MICROGRAM",e.MILLIGRAM="MILLIGRAM",e.GRAM="GRAM",e.KILOGRAM="KILOGRAM",e.TONNE="TONNE",e.MILLICARAT="MILLICARAT",e.CARAT="CARAT",e.KILOCARAT="KILOCARAT",e.KARAT="KARAT",e.POUND="POUND",e.OUNCE="OUNCE",e.POUND_OUNCE="POUND_OUNCE",e.TROYOUNCE="TROYOUNCE",e.PENNYWEIGHT="PENNYWEIGHT",e.GRAIN="GRAIN",e.PARTS_PER_POUND="PARTS_PER_POUND",e.TAEL_HONGKONG="TAEL_HONGKONG",e.TAEL_SINGAPORE="TAEL_SINGAPORE",
e.TAEL_TAIWAN="TAEL_TAIWAN",e.TAEL_CHINA="TAEL_CHINA",e.MOMME="MOMME",e.TOLA="TOLA",e.BAHT="BAHT",e.MESGHAL="MESGHAL",e.NEWTON="NEWTON",e.WARNING="WARNING",e.PIECES="PIECES",e.PERCENT="PERCENT",e.MILLIMETER="MILLIMETER",e.CENTIMETER="CENTIMETER",e.METER="METER",e.KILOMETER="KILOMETER",e.GRAM_PER_MILLILITER="GRAM_PER_MILLILITER",e.MILLION_CELLS_PER_MILLILITER="MILLION_CELLS_PER_MILLILITER",e.MICROGRAM_PER_MILLILITER="MICROGRAM_PER_MILLILITER",e.MICROGRAM_PER_LITER="MICROGRAM_PER_LITER",e.MILLIGRAM_PER_MILLILITER="MILLIGRAM_PER_MILLILITER",e.MILLIGRAM_PER_LITER="MILLIGRAM_PER_LITER",e.MILLIMOL_PER_MILLILITER="MILLIMOL_PER_MILLILITER",e.GRAM_PER_CUBICCENTIMETRE="GRAM_PER_CUBICCENTIMETRE",e.CUBICCENTIMETRE="CUBICCENTIMETRE",e.SQUARECENTIMETRE="SQUARECENTIMETRE",e.SQUAREMETRE="SQUAREMETRE",e.GRAMMAGE="GRAMMAGE",e.MICROLITER="MICROLITER",e.MILLILITER="MILLILITER",e.MILLILITER_PER_SECOND="MILLILITER_PER_SECOND",e.MILLILITER_PER_MINUTE="MILLILITER_PER_MINUTE",
e.MILLILITER_PER_HOUR="MILLILITER_PER_HOUR",e.LITER="LITER",e.MILLIMOL="MILLIMOL",e.GRAD_CELSIUS="GRAD_CELSIUS",e.GRAD_FAHRENHEIT="GRAD_FAHRENHEIT",e.SECOND="SECOND",e.MINUTE="MINUTE",e.HOUR="HOUR",e.TIME_AM="TIME_AM",e.TIME_PM="TIME_PM",e.VOLT="VOLT",e.MILLIAMPER="MILLIAMPER",e.HECTOPASCAL="HECTOPASCAL",e.KILOPASCAL="KILOPASCAL",e.GRAM_PER_MOL="GRAM_PER_MOL",e.INVALID="INVALID",e.RPM="RPM",e.MILLIVOLT="MILLIVOLT",e.MILLIVOLT_PER_PH="MILLIVOLT_PER_PH",e.MICROSIEMENS_PER_CENTIMETER="MICROSIEMENS_PER_CENTIMETER",e.GRAM_PER_SQUARE_CENTIMETER="GRAM_PER_SQUARE_CENTIMETER",e.GRAM_PER_METER="GRAM_PER_METER",e.CENTILITER="CENTILITER",e.DENSITY="DENSITY",e.VOLUME="VOLUME",e.KG_M3="KG_M3",e.MMHG="MMHG",e.KELVIN="KELVIN",e.PASCAL="PASCAL"}(E=t.EnumUnit||(t.EnumUnit={})),t.unitsMap={NONE:{id:E.NONE,mark:"",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},DIGIT:{id:E.DIGIT,mark:"d",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,
conversionDecimalPlacesShift:void 0},UNIVERSAL:{id:E.UNIVERSAL,mark:"o",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MICROGRAM:{id:E.MICROGRAM,mark:"µg",unitConversionBase:r.MASS,conversionFactor:1e6,conversionDecimalPlacesShift:-6},MILLIGRAM:{id:E.MILLIGRAM,mark:"mg",unitConversionBase:r.MASS,conversionFactor:1e3,conversionDecimalPlacesShift:-3},GRAM:{id:E.GRAM,mark:"g",unitConversionBase:r.MASS,conversionFactor:1,conversionDecimalPlacesShift:0},KILOGRAM:{id:E.KILOGRAM,mark:"kg",unitConversionBase:r.MASS,conversionFactor:.001,conversionDecimalPlacesShift:3},TONNE:{id:E.TONNE,mark:"t",unitConversionBase:r.MASS,conversionFactor:1e-6,conversionDecimalPlacesShift:6},MILLICARAT:{id:E.MILLICARAT,mark:"mct",unitConversionBase:r.MASS,conversionFactor:5e3,conversionDecimalPlacesShift:-3},CARAT:{id:E.CARAT,mark:"ct",unitConversionBase:r.MASS,conversionFactor:5,conversionDecimalPlacesShift:0},KILOCARAT:{id:E.KILOCARAT,mark:"kct",
unitConversionBase:r.MASS,conversionFactor:.005,conversionDecimalPlacesShift:3},KARAT:{id:E.KARAT,mark:"K",unitConversionBase:r.MASS,conversionFactor:5,conversionDecimalPlacesShift:0},POUND:{id:E.POUND,mark:"lb",unitConversionBase:r.MASS,conversionFactor:.00220462262184878,conversionDecimalPlacesShift:3},OUNCE:{id:E.OUNCE,mark:"oz",unitConversionBase:r.MASS,conversionFactor:.0352739619495804,conversionDecimalPlacesShift:2},POUND_OUNCE:{id:E.POUND_OUNCE,mark:"lb:oz",unitConversionBase:r.MASS,conversionFactor:.035273962,conversionDecimalPlacesShift:2},TROYOUNCE:{id:E.TROYOUNCE,mark:"ozt",unitConversionBase:r.MASS,conversionFactor:.032150747,conversionDecimalPlacesShift:2},PENNYWEIGHT:{id:E.PENNYWEIGHT,mark:"dwt",unitConversionBase:r.MASS,conversionFactor:.643014931,conversionDecimalPlacesShift:1},GRAIN:{id:E.GRAIN,mark:"GN",unitConversionBase:r.MASS,conversionFactor:15.43235835,conversionDecimalPlacesShift:-1},PARTS_PER_POUND:{id:E.PARTS_PER_POUND,mark:"/lb",unitConversionBase:r.MASS,
conversionFactor:1.1287667712,conversionDecimalPlacesShift:0},TAEL_HONGKONG:{id:E.TAEL_HONGKONG,mark:"tlh",unitConversionBase:r.MASS,conversionFactor:.02671725,conversionDecimalPlacesShift:2},TAEL_SINGAPORE:{id:E.TAEL_SINGAPORE,mark:"tls",unitConversionBase:r.MASS,conversionFactor:.02645544638,conversionDecimalPlacesShift:2},TAEL_TAIWAN:{id:E.TAEL_TAIWAN,mark:"tlt",unitConversionBase:r.MASS,conversionFactor:.02666666,conversionDecimalPlacesShift:2},TAEL_CHINA:{id:E.TAEL_CHINA,mark:"tlc",unitConversionBase:r.MASS,conversionFactor:.02645547175,conversionDecimalPlacesShift:2},MOMME:{id:E.MOMME,mark:"mom",unitConversionBase:r.MASS,conversionFactor:.26666666666666666,conversionDecimalPlacesShift:1},TOLA:{id:E.TOLA,mark:"tol",unitConversionBase:r.MASS,conversionFactor:.0857333381,conversionDecimalPlacesShift:1},BAHT:{id:E.BAHT,mark:"bat",unitConversionBase:r.MASS,conversionFactor:.06578947436,conversionDecimalPlacesShift:2},MESGHAL:{id:E.MESGHAL,mark:"MS",unitConversionBase:r.MASS,
conversionFactor:.217,conversionDecimalPlacesShift:1},NEWTON:{id:E.NEWTON,mark:"N",unitConversionBase:r.MASS,conversionFactor:.00980665,conversionDecimalPlacesShift:2},WARNING:{id:E.WARNING,mark:"!",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},PIECES:{id:E.PIECES,mark:"pcs",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},PERCENT:{id:E.PERCENT,mark:"%",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MILLIMETER:{id:E.MILLIMETER,mark:"mm",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},CENTIMETER:{id:E.CENTIMETER,mark:"cm",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},METER:{id:E.METER,mark:"m",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},KILOMETER:{id:E.KILOMETER,mark:"km",unitConversionBase:r.UNDEFINED,
conversionFactor:void 0,conversionDecimalPlacesShift:void 0},GRAM_PER_MILLILITER:{id:E.GRAM_PER_MILLILITER,mark:"g/ml",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MILLION_CELLS_PER_MILLILITER:{id:E.MILLION_CELLS_PER_MILLILITER,mark:"10^6 cls/ml",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MICROGRAM_PER_MILLILITER:{id:E.MICROGRAM_PER_MILLILITER,mark:"µg/ml",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MICROGRAM_PER_LITER:{id:E.MICROGRAM_PER_LITER,mark:"µg/l",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MILLIGRAM_PER_MILLILITER:{id:E.MILLIGRAM_PER_MILLILITER,mark:"mg/ml",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MILLIGRAM_PER_LITER:{id:E.MILLIGRAM_PER_LITER,mark:"mg/l",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,
conversionDecimalPlacesShift:void 0},MILLIMOL_PER_MILLILITER:{id:E.MILLIMOL_PER_MILLILITER,mark:"mmol/ml",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},GRAM_PER_CUBICCENTIMETRE:{id:E.GRAM_PER_CUBICCENTIMETRE,mark:"g/cm³",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},CUBICCENTIMETRE:{id:E.CUBICCENTIMETRE,mark:"cm³",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},SQUARECENTIMETRE:{id:E.SQUARECENTIMETRE,mark:"cm²",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},SQUAREMETRE:{id:E.SQUAREMETRE,mark:"m²",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},GRAMMAGE:{id:E.GRAMMAGE,mark:"g/m²",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MICROLITER:{id:E.MICROLITER,mark:"µl",unitConversionBase:r.VOLUME,conversionFactor:1e3,
conversionDecimalPlacesShift:-3},MILLILITER:{id:E.MILLILITER,mark:"ml",unitConversionBase:r.VOLUME,conversionFactor:1,conversionDecimalPlacesShift:0},MILLILITER_PER_SECOND:{id:E.MILLILITER_PER_SECOND,mark:"ml/s",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MILLILITER_PER_MINUTE:{id:E.MILLILITER_PER_MINUTE,mark:"ml/min",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MILLILITER_PER_HOUR:{id:E.MILLILITER_PER_HOUR,mark:"ml/h",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},LITER:{id:E.LITER,mark:"l",unitConversionBase:r.VOLUME,conversionFactor:.001,conversionDecimalPlacesShift:3},MILLIMOL:{id:E.MILLIMOL,mark:"mmol",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},GRAD_CELSIUS:{id:E.GRAD_CELSIUS,mark:"°C",unitConversionBase:r.TEMPERATURE,conversionFactor:1,conversionDecimalPlacesShift:0},GRAD_FAHRENHEIT:{
id:E.GRAD_FAHRENHEIT,mark:"°F",unitConversionBase:r.TEMPERATURE,conversionFactor:1.8,conversionDecimalPlacesShift:0},SECOND:{id:E.SECOND,mark:"sec",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MINUTE:{id:E.MINUTE,mark:"min",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},HOUR:{id:E.HOUR,mark:"h",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},TIME_AM:{id:E.TIME_AM,mark:"am",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},TIME_PM:{id:E.TIME_PM,mark:"pm",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},VOLT:{id:E.VOLT,mark:"V",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MILLIAMPER:{id:E.MILLIAMPER,mark:"mA",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},HECTOPASCAL:{
id:E.HECTOPASCAL,mark:"hPa",unitConversionBase:r.PRESSURE,conversionFactor:.01,conversionDecimalPlacesShift:2},KILOPASCAL:{id:E.KILOPASCAL,mark:"kPa",unitConversionBase:r.PRESSURE,conversionFactor:.001,conversionDecimalPlacesShift:3},GRAM_PER_MOL:{id:E.GRAM_PER_MOL,mark:"g/mol",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},INVALID:{id:E.INVALID,mark:"!invalid!",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},RPM:{id:E.RPM,mark:"rpm",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MILLIVOLT:{id:E.MILLIVOLT,mark:"mV",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MILLIVOLT_PER_PH:{id:E.MILLIVOLT_PER_PH,mark:"mV/pH",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MICROSIEMENS_PER_CENTIMETER:{id:E.MICROSIEMENS_PER_CENTIMETER,mark:"µS/cm",unitConversionBase:r.UNDEFINED,
conversionFactor:void 0,conversionDecimalPlacesShift:void 0},GRAM_PER_SQUARE_CENTIMETER:{id:E.GRAM_PER_SQUARE_CENTIMETER,mark:"g/cm²",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},GRAM_PER_METER:{id:E.GRAM_PER_METER,mark:"g/m",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},CENTILITER:{id:E.CENTILITER,mark:"cl",unitConversionBase:r.VOLUME,conversionFactor:.1,conversionDecimalPlacesShift:1},DENSITY:{id:E.DENSITY,mark:"g/cm³",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},VOLUME:{id:E.VOLUME,mark:"cm³",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},KG_M3:{id:E.KG_M3,mark:"kg/m³",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},MMHG:{id:E.MMHG,mark:"mmHg",unitConversionBase:r.UNDEFINED,conversionFactor:void 0,conversionDecimalPlacesShift:void 0},KELVIN:{id:E.KELVIN,
mark:"K",unitConversionBase:r.TEMPERATURE,conversionFactor:1,conversionDecimalPlacesShift:0},PASCAL:{id:E.PASCAL,mark:"Pa",unitConversionBase:r.PRESSURE,conversionFactor:1,conversionDecimalPlacesShift:0}},t.convertValueToTargetUnitBigNumber=o,t.convertValueToTargetUnit=A,t.createQuantity=function(e,t,_){let a={value:NaN,unit:E.NONE,decimals:0};if(n.isObject(e)){a=Object.assign(a,e);for(const e of Object.keys(a))["value","unit","decimals","auxiliaryDigits","alibiId","alibi","deviceserial","stable","timestamp","info"].includes(e)||delete a[e]}else if(n.isObject(t))(t=t).value.numbers.length>0&&(a.value=parseFloat(t.value.numbers[0])),a.unit=l(t.value.unit),a.decimals=t.value.decimals;else if(n.isObject(_)){const e=(_=_).value;a.value=parseFloat(e.number),n.isNumber(a.value)||(a.info=e.number),n.isNumber(a.value)&&"-"===e.sign&&(a.value*=-1),a.decimals=e.decimals,a.unit=l(e.unit),a.stable=e.isStable,n.isNumber(e.auxiliaryDigits)&&e.auxiliaryDigits>0&&(a.auxiliaryDigits=e.auxiliaryDigits)}
return"BATH"===a.unit&&(a.unit=E.BAHT),a.unit=n.setEnumSafely(a.unit,E,E.NONE),a},t._formatQuantityParam_numberOnly=T,t.formatQuantityParam_numberOnly=function(e){return null!==e&&e.hasOwnProperty("value")&&e.hasOwnProperty("decimals")?n.isNumber(e.value)?T(e.value,e.decimals):"NaN":"N.A."},t.formatQuantityParam=function(e){return null!==e&&e.hasOwnProperty("value")&&e.hasOwnProperty("unit")&&e.hasOwnProperty("decimals")?n.isNumber(e.value)?T(e.value,e.decimals)+" "+N(e.unit):"NaN":"N.A."},t.convertToTargetUnit=I,t.getUnitString=N,t.getUnitEnum=l,t.math_getSimple_numberArray=c,t.math_count=function(e){return c(e).length},t.math_getMaximumDecimals=u,t.math_roundUp=function(e,t){let _=a.bignumber(e),i=_.minus(_.floor()),n=(i=i.times(a.bignumber(10).pow(t))).minus(i.floor());return a.larger(n,0)&&(i=i.minus(n).add(1)),i=i.dividedBy(a.bignumber(10).pow(t)),_.floor().add(i).toNumber()},t.math_roundAuto=P,t.math_detectLeastSignificantDigit=function(e){
let t=0,_=1,i=a.bignumber(e).abs(),n=i.floor(),s=i.minus(n);for(;s.greaterThan(0);)t++,n=(s=s.times(10)).floor(),s=s.minus(n);return t>0&&(_=n.dividedBy(a.bignumber(10).pow(t)).toNumber()),_},t.math_sum=p,t.math_Sum=function(e,t){let _=[];for(let a=0;a<e.length;a++)n.isNumber(e[a].value)&&(_[a]=I(e[a],t));return{value:p(_),unit:t,decimals:u(_)}},t.math_mean=S,t.math_Mean=d,t.math_mean_longterm=R,t.math_Mean_Longterm=function(e,t,_){const a=I(e,_);return a.value=R(a,t),a},t.math_standard_deviation=O,t.math_Standard_Deviation=L,t.math_standard_deviation_longterm=D,t.math_Standard_Deviation_Longterm=function(e,t,_,a){return I({value:D(e,(t=I(t,_.unit)).value,_.value),unit:_.unit,decimals:_.decimals},a)},t.math_minimum=h,t.math_Minimum=function(e,t){let _=[];for(let a=0;a<e.length;a++)n.isNumber(e[a].value)&&(_[a]=I(e[a],t));return{value:h(_),unit:t,decimals:u(_)}},t.math_maximum=C,t.math_Maximum=function(e,t){let _=[];for(let a=0;a<e.length;a++)n.isNumber(e[a].value)&&(_[a]=I(e[a],t))
;return{value:C(_),unit:t,decimals:u(_)}},t.math_variation_coefficient=m,t.math_Variation_Coefficient=function(e){let t=[];for(let _=0;_<e.length;_++)n.isNumber(e[_].value)&&(t[_]=I(e[_],E.GRAM));return{value:m(t),unit:E.PERCENT,decimals:2}},t.math_variation_coefficient_longterm=g,t.math_Variation_Coefficient_Longterm=function(e,t){return{value:g(I(e,t.unit),t),unit:E.PERCENT,decimals:2}},t.math_cp=function(e,t,_){let a=c(e);return n.isObject(e)&&0!==e.length?M(O(a),t,_):NaN},t.math_Cp=function(e,t,_){return H(L(e,t.unit),t,_)},t.math_cp_longterm=M,t.math_Cp_Longterm=H,t.math_cpk=function(e,t,_){return f(O(e),S(e),t,_)},t.math_Cpk=function(e,t,_){return y(L(e,t.unit),d(e,t.unit),t,_)},t.math_cpk_longterm=f,t.math_Cpk_Longterm=y},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MQTT_ADMIN_EVENT="MQTT_ADMIN_EVENT",t.MQTT_ADMIN_EVENT_PACKET_SENT="packetsend";t.MqttAdminEvent=class{constructor(e){this.payload=e,this.type=t.MQTT_ADMIN_EVENT}}},function(e,t,_){
"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TASK_DYNAMIC_ID_GROUPS_PREFIX="TASK/DYNAMIC_ID",t.TASK_DYNAMIC_ID_CNT_GROUP_ID=t.TASK_DYNAMIC_ID_GROUPS_PREFIX+"_CNT",t.TASK_DYNAMIC_ID_LID_GROUP_ID=t.TASK_DYNAMIC_ID_GROUPS_PREFIX+"_LID",t.TASK_DYNAMIC_ID_SID_GROUP_ID=t.TASK_DYNAMIC_ID_GROUPS_PREFIX+"_SID",t.TASK_DYNAMIC_ID_DB_CONN_CONFIG_GROUP_ID=t.TASK_DYNAMIC_ID_GROUPS_PREFIX+"_DB_CONN_CONFIG",t.TASK_DYNAMIC_ID_LID_CNT_PARAM_ID=t.TASK_DYNAMIC_ID_CNT_GROUP_ID+"/LID_CNT",t.TASK_DYNAMIC_ID_LID_X_PARAM_ID_PREFIX=t.TASK_DYNAMIC_ID_LID_GROUP_ID+"/LID_",t.TASK_DYNAMIC_ID_LID_X_PARAM_ID_SUFFIX_HEADER="H_",t.TASK_DYNAMIC_ID_LID_X_PARAM_ID_SUFFIX_TITLE="T_",t.TASK_DYNAMIC_ID_LID_CNT_MIN=0,t.TASK_DYNAMIC_ID_LID_CNT_MAX=5,t.TASK_DYNAMIC_ID_SID_CNT_PARAM_ID=t.TASK_DYNAMIC_ID_CNT_GROUP_ID+"/SID_CNT",t.TASK_DYNAMIC_ID_SID_X_PARAM_ID_PREFIX=t.TASK_DYNAMIC_ID_SID_GROUP_ID+"/SID_",t.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_HEADER="H_",t.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_TITLE="T_",
t.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_MODE="M_",t.TASK_DYNAMIC_ID_SID_CNT_MIN=0,t.TASK_DYNAMIC_ID_SID_CNT_MAX=5,t.TASK_DYNAMIC_ID_DB_TYPES_PARAM_ID=t.TASK_DYNAMIC_ID_DB_CONN_CONFIG_GROUP_ID+"/TYPES",t.TASK_DYNAMIC_ID_DB_USERNAME_PARAM_ID=t.TASK_DYNAMIC_ID_DB_CONN_CONFIG_GROUP_ID+"/USERNAME",t.TASK_DYNAMIC_ID_DB_PASSWORD_PARAM_ID=t.TASK_DYNAMIC_ID_DB_CONN_CONFIG_GROUP_ID+"/PASSWORD",t.TASK_DYNAMIC_ID_DB_DATABASE_PARAM_ID=t.TASK_DYNAMIC_ID_DB_CONN_CONFIG_GROUP_ID+"/DATABASE",t.TASK_DYNAMIC_ID_DB_SCHEMA_PARAM_ID=t.TASK_DYNAMIC_ID_DB_CONN_CONFIG_GROUP_ID+"/SCHEMA",t.TASK_DYNAMIC_ID_DB_IP_PARAM_ID=t.TASK_DYNAMIC_ID_DB_CONN_CONFIG_GROUP_ID+"/IP",t.TASK_DYNAMIC_ID_DB_PORT_PARAM_ID=t.TASK_DYNAMIC_ID_DB_CONN_CONFIG_GROUP_ID+"/PORT",t.TASK_DYNAMIC_ID_CNT_OPTION_PREFIX="CNT_",function(e){e.POSTGRES="postgres",e.MYSQL="mysql",e.MSSQL="mssql",e.SQLITE="sqlite"}(t.EnumDatabaseTypesOptions||(t.EnumDatabaseTypesOptions={})),function(e){e.OFF="OFF",e.ON="ON"
}(t.EnumLotIdentifierOptions||(t.EnumLotIdentifierOptions={})),function(e){e.OFF="OFF",e.ON="ON",e.ON_AUTO_INC="ON_AUTO_INC",e.ON_AUTO_DEC="ON_AUTO_DEC"}(t.EnumSampleIdentifierOptions||(t.EnumSampleIdentifierOptions={})),t.createIDCntOption=function(e){return t.TASK_DYNAMIC_ID_CNT_OPTION_PREFIX+e.toFixed(0)},t.getConfiguredIds=function(e){return parseInt(e.value.selection.id.replace(t.TASK_DYNAMIC_ID_CNT_OPTION_PREFIX,""),10)},t.createLIDParamId=function(e,_){return t.TASK_DYNAMIC_ID_LID_X_PARAM_ID_PREFIX+_+e.toFixed(0)},t.createSIDParamId=function(e,_){return t.TASK_DYNAMIC_ID_SID_X_PARAM_ID_PREFIX+_+e.toFixed(0)}},function(e,t){e.exports=require("tslib")},function(e,t){e.exports=require("fs")},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(7),n=_(1),s={BTN_INVALIDATE_SAMPLE:10,BTN_DOCU:20,BTN_EVAL:30,BTN_PRINT_LABEL:40,BTN_ADD:50,BTN_START:60,BTN_PRINTADD:60,BTN_NEXT:60};t.getButtonPriority=function(e){return void 0!==s[e]?s[e]:0},
t.BTN_EVAL_ID="BTN_EVAL";const r={buttonId:t.BTN_EVAL_ID,label:{id:i.EnumFontLabels.RESULT,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createEvalButtonData=function(){return n.cloneJSON(r)},t.BTN_NEXT_ID="BTN_NEXT";const E={buttonId:t.BTN_NEXT_ID,label:{id:i.EnumFontLabels.NEXT,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createNextButtonData=function(){return n.cloneJSON(E)},t.BTN_PREV_ID="BTN_PREV";const o={buttonId:t.BTN_PREV_ID,label:{id:i.EnumFontLabels.PREV,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createPrevButtonData=function(){return n.cloneJSON(o)},t.BTN_BACK_ID="BTN_BACK",t.BTN_LONG_BACK_ID="BTN_LONG_BACK";const A={buttonId:t.BTN_BACK_ID,label:{id:i.EnumFontLabels.BACK,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createBackButtonData=function(e=!1){let _=n.cloneJSON(A);return e&&(_.longPressButtonId=t.BTN_LONG_BACK_ID),_},t.BTN_DOCU_ID="BTN_DOCU";const T={buttonId:t.BTN_DOCU_ID,label:{id:i.EnumFontLabels.DOCU,args:[]},appearance:a.EnumAppearance.HIDDEN}
;t.createDocuButtonData=function(){return n.cloneJSON(T)},t.BTN_SEND_ID="BTN_SEND";const I={buttonId:t.BTN_SEND_ID,label:{id:i.EnumFontLabels.DOCU,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createSendButtonData=function(){return n.cloneJSON(I)},t.BTN_INVALIDATE_SAMPLE_ID="BTN_INVALIDATE_SAMPLE";const N={buttonId:t.BTN_INVALIDATE_SAMPLE_ID,label:{id:i.EnumFontLabels.INVALIDATE_SAMPLE,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createInvalidateSampleButtonData=function(){return n.cloneJSON(N)},t.BTN_PRINT_LABEL_ID="BTN_PRINT_LABEL";const l={buttonId:t.BTN_PRINT_LABEL_ID,label:{id:"_QAPP_LIB_PRINT_LABEL_BTN_TITLE",args:[]},appearance:a.EnumAppearance.HIDDEN};t.createPrintLabelButtonData=function(){return n.cloneJSON(l)},t.BTN_START_ID="BTN_START";const c={buttonId:t.BTN_START_ID,label:{id:i.EnumFontLabels.START,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createStartButtonData=function(){return n.cloneJSON(c)},t.BTN_END_ID="BTN_END";const u={buttonId:t.BTN_END_ID,label:{
id:i.EnumFontLabels.END,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createEndButtonData=function(){return n.cloneJSON(u)},t.BTN_PRINTADD_ID="BTN_PRINTADD";const P={buttonId:t.BTN_PRINTADD_ID,label:{id:i.EnumFontLabels.PRINT_ADD,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createPrintAddButtonData=function(){return n.cloneJSON(P)},t.BTN_CANCEL_ID="BTN_CANCEL";const p={buttonId:t.BTN_CANCEL_ID,label:{id:i.EnumFontLabels.CANCEL,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createCancelButtonData=function(){return n.cloneJSON(p)},t.BTN_SEARCH_ID="BTN_SEARCH";const S={buttonId:t.BTN_SEARCH_ID,label:{id:i.EnumFontLabels.SEARCH,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createSearchButtonData=function(){return n.cloneJSON(S)},t.setNoSearchActive=function(e,t=!0){e.setLabel({id:i.EnumFontLabels.SEARCH,args:[]},t)},t.setSearchActive=function(e,t=!0){e.setLabel({id:i.EnumFontLabels.SEARCH_ACTIVE,args:[]},t)},t.BTN_FILTER_ID="BTN_FILTER";const d={buttonId:t.BTN_FILTER_ID,label:{
id:i.EnumFontLabels.FILTER,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createFilterButtonData=function(){return n.cloneJSON(d)},t.setNoFilterActive=function(e,t=!0){e.setLabel({id:i.EnumFontLabels.FILTER,args:[]},t)},t.setFilterActive=function(e,t=!0){e.setLabel({id:i.EnumFontLabels.FILTER_ACTIVE,args:[]},t)},t.BTN_ADD_ID="BTN_ADD";const R={buttonId:t.BTN_ADD_ID,label:{id:i.EnumFontLabels.ADD,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createAddButtonData=function(){return n.cloneJSON(R)},t.BTN_DELETE_ID="BTN_DELETE";const O={buttonId:t.BTN_DELETE_ID,label:{id:i.EnumFontLabels.DELETE,args:[]},appearance:a.EnumAppearance.HIDDEN};t.createDeleteButtonData=function(){return n.cloneJSON(O)},t.BTN_HOME_ID="BTN_HOME",t.HOME_BUTTON_ICON="./02_menu";const L={buttonId:t.BTN_HOME_ID,label:{id:i.EnumFontLabels.CANCEL,args:[]},icon:t.HOME_BUTTON_ICON,appearance:a.EnumAppearance.HIDDEN};t.createHomeButtonData=function(){return n.cloneJSON(L)},t.BTN_LOGOUT_ID="BTN_LOGOUT";const D={
buttonId:t.BTN_LOGOUT_ID,label:{id:i.EnumFontLabels.LOGOUT,args:[]},appearance:a.EnumAppearance.ENABLED_SECONDARY};t.createLogoutButtonData=function(){return n.cloneJSON(D)},t.BTN_RELOAD_ID="BTN_RELOAD";const h={buttonId:t.BTN_RELOAD_ID,label:{id:i.EnumFontLabels.RELOAD,args:[]},appearance:a.EnumAppearance.ENABLED_SECONDARY};t.createReloadButtonData=function(){return n.cloneJSON(h)},t.BTN_OPEN_WEIGHING_ID="BTN_OPEN_WEIGHING";const C={buttonId:t.BTN_OPEN_WEIGHING_ID,label:{id:i.EnumFontLabels.WEIGHING,args:[]},appearance:a.EnumAppearance.ENABLED_SECONDARY};t.createOpenWeighingButtonData=function(){return n.cloneJSON(C)},t.BTN_OK_ID="BTN_OK";const m={buttonId:t.BTN_OK_ID,label:{id:i.EnumFontLabels.OK,args:[]},appearance:a.EnumAppearance.ENABLED_SECONDARY};t.createOKButtonData=function(){return n.cloneJSON(m)}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(1),i=_(0);var n;!function(e){e.TAB_PARAMLIST="PARAMLIST",e.TAB_FIGURE="FIGURE",
e.TAB_GRAPH="GRAPH",e.TAB_MENU="MENU",e.TAB_TABLE="TABLE",e.TAB_BASE=""}(n=t.EnumTabType||(t.EnumTabType={})),t.TAB_PARAMLIST_TYPE_TOPIC="topics",t.TAB_PARAMLIST_TYPE_BULK="bulk",t.isITabParamList=function(e){return e.paramType===t.TAB_PARAMLIST_TYPE_TOPIC||void 0===e.paramType},t.isITabBulkParamList=function(e){return e.paramType===t.TAB_PARAMLIST_TYPE_BULK};const s={id:"",appearance:i.EnumAppearance.HIDDEN,type:n.TAB_FIGURE,containerTitle:{id:"",args:[]},topIcon:"",title:{id:"",args:[]},topbuttons:[],imgref:{}};t.createEmptyITabFigure=function(){return a.cloneJSON(s)};const r={id:"",appearance:i.EnumAppearance.HIDDEN,type:n.TAB_PARAMLIST,displayHeader:!0,containerTitle:{id:"",args:[]},topIcon:"",title:{id:"",args:[]},topbuttons:[],params:[],paramType:t.TAB_PARAMLIST_TYPE_TOPIC};t.createEmptyITabGraph=function(){return o};const E={};t.createEmptyIGraphInterface=function(){return a.cloneJSON(E)},t.createEmptyITabParamList=function(){return a.cloneJSON(r)};const o={id:"",
appearance:i.EnumAppearance.HIDDEN,type:n.TAB_GRAPH,containerTitle:{id:"",args:[]},topIcon:"",title:{id:"",args:[]},topbuttons:[],data:{}};t.TAB_MENU_TYPE_TOPIC="topics",t.TAB_MENU_TYPE_BULK="bulk",t.isITabMenu=function(e){return e.menuType===t.TAB_MENU_TYPE_TOPIC},t.isITabBulkMenu=function(e){return e.menuType===t.TAB_MENU_TYPE_BULK};const A={id:"",appearance:i.EnumAppearance.HIDDEN,type:n.TAB_MENU,containerTitle:{id:"",args:[]},topIcon:"",title:{id:"",args:[]},topbuttons:[],menuType:t.TAB_MENU_TYPE_TOPIC,menubuttons:[],scrollToTop:!1};t.createEmptyITabMenu=function(){return a.cloneJSON(A)},t.isITabTable=function(e){return e.tableType===t.TAB_MENU_TYPE_TOPIC},t.isITabBulkTable=function(e){return e.tableType===t.TAB_MENU_TYPE_BULK}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(4),n=_(11),s=_(2);t.CANCEL_BUTTON_ID="BTN_CANCEL";class r{constructor(e){this.paramDetailsOverlayObject={appearance:a.EnumAppearance.HIDDEN,title:{id:"",args:[]},
params:[]},this.events$=new n.Subject,this.mqttHandler=e}setAppearance(e){this.paramDetailsOverlayObject.appearance!==e&&(e!==a.EnumAppearance.HIDDEN&&e!==a.EnumAppearance.ENABLED||(this.paramDetailsOverlayObject.appearance=e,this.mqttHandler.publish(s.MqttTopics.HMI_PARAMDETAILSOVERLAY,JSON.stringify(this.paramDetailsOverlayObject))))}getAppearance(){return this.paramDetailsOverlayObject.appearance}setTitle(e,t){this.paramDetailsOverlayObject.title.id===e&&this.paramDetailsOverlayObject.title.args.join("")===t.join("")||(this.paramDetailsOverlayObject.title.id=e,this.paramDetailsOverlayObject.title.args=t,this.paramDetailsOverlayObject.appearance!==a.EnumAppearance.HIDDEN&&this.mqttHandler.publish(s.MqttTopics.HMI_PARAMDETAILSOVERLAY,JSON.stringify(this.paramDetailsOverlayObject)))}getTitle(){return this.paramDetailsOverlayObject.title}setParams(e){this.paramDetailsOverlayObject.params.join("")!==e.join("")&&(this.paramDetailsOverlayObject.params=e,
this.paramDetailsOverlayObject.appearance!==a.EnumAppearance.HIDDEN&&this.mqttHandler.publish(s.MqttTopics.HMI_PARAMDETAILSOVERLAY,JSON.stringify(this.paramDetailsOverlayObject)))}getParams(){return this.paramDetailsOverlayObject.params}getId(){return"PARAMDETAILSOVERLAY"}getButton(e){}hide(){this.paramDetailsOverlayObject.appearance===a.EnumAppearance.ENABLED&&(this.setAppearance(a.EnumAppearance.HIDDEN),this.events$.next({type:i.ScreenEventType.HIDE_OVERLAY,id:this.getId()}))}show(){this.paramDetailsOverlayObject.appearance===a.EnumAppearance.HIDDEN&&(this.setAppearance(a.EnumAppearance.ENABLED),this.events$.next({type:i.ScreenEventType.SHOW_OVERLAY,id:this.getId()}))}}t.ParamDetailsOverlay=r,t.default=r},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(3),i=_(14),n=_(23),s=_(1);t.checkGeneralParamRules=function(e){let t=void 0;if(a.isTypeOfIQuantityParameter(e)){let _=i.QuantityParameter.getValue(e);if(Number.isNaN(_)){
if(!0!==e.info.isNoValueAllowed){let _=s.cloneJSON(n.ParamUpdateUserActionSimpleAccept);void 0!==e.info.noValueErrorMsg?"string"==typeof e.info.noValueErrorMsg?_.textList=[{id:e.info.noValueErrorMsg,args:[]}]:_.textList=[e.info.noValueErrorMsg]:_.textList=[{id:"_QAPP_LIB_MSG_BOX_ERROR_CFG_QUANT_PARAM_EMPTY_NOT_ALLOWED",args:[]}],t={updatedParameter:e,message:_}}}else try{if(_<parseFloat(e.info.minimum.value)){let _=s.cloneJSON(n.ParamUpdateUserActionSimpleAccept);_.textList=[{id:e.info.minimum.errorMsg?e.info.minimum.errorMsg:"_QAPP_LIB_MSG_BOX_ERROR_CFG_QUANT_PARAM_EXCEED_MIN",args:[]}],t={updatedParameter:e,message:_}}else if(_>parseFloat(e.info.maximum.value)){let _=s.cloneJSON(n.ParamUpdateUserActionSimpleAccept);_.textList=[{id:e.info.maximum.errorMsg?e.info.maximum.errorMsg:"_QAPP_LIB_MSG_BOX_ERROR_CFG_QUANT_PARAM_EXCEED_MAX",args:[]}],t={updatedParameter:e,message:_}}}catch(e){}}else if(a.isTypeOfIStringParameter(e)){let _=e.value.string;try{if(void 0===_){
if(0!==e.info.minimum.length&&!0!==e.info.isNoValueAllowed){let _=s.cloneJSON(n.ParamUpdateUserActionSimpleAccept);void 0!==e.info.noValueErrorMsg?"string"==typeof e.info.noValueErrorMsg?_.textList=[{id:e.info.noValueErrorMsg,args:[]}]:_.textList=[e.info.noValueErrorMsg]:_.textList=[{id:"_QAPP_LIB_MSG_BOX_ERROR_CFG_STRING_PARAM_MANDATORY",args:[]}],t={updatedParameter:e,message:_}}}else if(_.length<e.info.minimum.length)if(0===_.length){if(console.log("StringParam: empty"),!0!==e.info.isNoValueAllowed){let _=s.cloneJSON(n.ParamUpdateUserActionSimpleAccept);void 0!==e.info.noValueErrorMsg?"string"==typeof e.info.noValueErrorMsg?_.textList=[{id:e.info.noValueErrorMsg,args:[]}]:_.textList=[e.info.noValueErrorMsg]:_.textList=[{id:"_QAPP_LIB_MSG_BOX_ERROR_CFG_STRING_PARAM_MANDATORY",args:[]}],t={updatedParameter:e,message:_}}}else{console.log("StringParam: min exceed");let _=s.cloneJSON(n.ParamUpdateUserActionSimpleAccept);_.textList=[{
id:e.info.minimum.errorMsg?e.info.minimum.errorMsg:"_QAPP_LIB_MSG_BOX_ERROR_CFG_STRING_PARAM_TOO_SHORT",args:[]}],t={updatedParameter:e,message:_}}else if(_.length>e.info.maximum.length)if(console.log("StringParam: max exceed"),!0===e.info.maximum.autoCut)console.log("StringParam: autocut"),e.value.string=_.substr(0,e.info.maximum.length);else{let _=s.cloneJSON(n.ParamUpdateUserActionSimpleAccept);_.textList=[{id:e.info.maximum.errorMsg?e.info.maximum.errorMsg:"_QAPP_LIB_MSG_BOX_ERROR_CFG_STRING_PARAM_TOO_LONG",args:[]}],t={updatedParameter:e,message:_}}}catch(e){}}else if(a.isTypeOfIPasswordParameter(e)){let _=e.value.string;try{if(void 0===_){if(0!==e.info.minimum.length&&!0!==e.info.isNoValueAllowed){let _=s.cloneJSON(n.ParamUpdateUserActionSimpleAccept);void 0!==e.info.noValueErrorMsg?"string"==typeof e.info.noValueErrorMsg?_.textList=[{id:e.info.noValueErrorMsg,args:[]}]:_.textList=[e.info.noValueErrorMsg]:_.textList=[{id:"_QAPP_LIB_MSG_BOX_ERROR_CFG_STRING_PARAM_MANDATORY",
args:[]}],t={updatedParameter:e,message:_}}}else if(_.length<e.info.minimum.length)if(0===_.length){if(console.log("PasswordParam: empty"),!0!==e.info.isNoValueAllowed){let _=s.cloneJSON(n.ParamUpdateUserActionSimpleAccept);void 0!==e.info.noValueErrorMsg?"string"==typeof e.info.noValueErrorMsg?_.textList=[{id:e.info.noValueErrorMsg,args:[]}]:_.textList=[e.info.noValueErrorMsg]:_.textList=[{id:"_QAPP_LIB_MSG_BOX_ERROR_CFG_STRING_PARAM_MANDATORY",args:[]}],t={updatedParameter:e,message:_}}}else{console.log("PasswordParam: min exceed");let _=s.cloneJSON(n.ParamUpdateUserActionSimpleAccept);_.textList=[{id:e.info.minimum.errorMsg?e.info.minimum.errorMsg:"_QAPP_LIB_MSG_BOX_ERROR_CFG_STRING_PARAM_TOO_SHORT",args:[]}],t={updatedParameter:e,message:_}}else if(_.length>e.info.maximum.length){console.log("PasswordParam: max exceed");let _=s.cloneJSON(n.ParamUpdateUserActionSimpleAccept);_.textList=[{
id:e.info.maximum.errorMsg?e.info.maximum.errorMsg:"_QAPP_LIB_MSG_BOX_ERROR_CFG_STRING_PARAM_TOO_LONG",args:[]}],t={updatedParameter:e,message:_}}}catch(e){}}return t}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(44),i=_(24);var n=_(24);t.bignumber=n.bignumber,t.abs=n.abs;const s=_(25);function r(e){let t=void 0;return s.unitsMap.hasOwnProperty(e)&&(t=s.unitsMap[e].conversionDecimalPlacesShift),void 0===t&&(t=1),t}var E;t.calcInterval=function(e,t,_){return i.bignumber(_).times(a.SartoMath.decPowers(r(e))).times(a.SartoMath.decPowers(-1*r(t))).toNumber()},t.calcDecimals=function(e){return e>=1?0:Math.ceil(-1*Math.log10(e))},t.unitStringToShort=function(e){return s.unitsMap.hasOwnProperty(e)?s.unitsMap[e].mark:s.unitsMap[s.EnumUnit.INVALID].mark},t.getUnitFactor=function(e){let t=void 0;return s.unitsMap.hasOwnProperty(e)&&(t=s.unitsMap[e].conversionFactor),void 0===t&&(t=1),t},t.getUnitShift=r,function(e){e.none="NONE",e.o="UNIVERSAL",
e["µg"]="MICROGRAM",e.mg="MILLIGRAM",e.g="GRAM",e.kg="KILOGRAM",e.t="TONNE",e.mct="MILLICARAT",e.ct="CARAT",e.kct="KILOCARAT",e.K="KARAT",e.lb="POUND",e.oz="OUNCE",e.lb_oz="POUND_OUNCE",e.ozt="TROYOUNCE",e.dwt="PENNYWEIGHT",e.GN="GRAIN",e.per_lb="PARTS_PER_POUND",e.tlh="TAEL_HONGKONG",e.tls="TAEL_SINGAPORE",e.tlt="TAEL_TAIWAN",e.tlc="TAEL_CHINA",e.mom="MOMME",e.tol="TOLA",e.bat="BAHT",e.MS="MESGHAL",e.N="NEWTON",e.war="WARNING",e.pcs="PIECES",e.per="PERCENT",e.mm="MILLIMETER",e.cm="CENTIMETER",e.m="METER",e.km="KILOMETER",e.g_ml="GRAM_PER_MILLILITER",e.Mcls_ml="MILLION_CELLS_PER_MILLILITER",e["µg_ml"]="MICROGRAM_PER_MILLILITER",e["µg_l"]="MICROGRAM_PER_LITER",e.mg_ml="MILLIGRAM_PER_MILLILITER",e.mg_l="MILLIGRAM_PER_LITER",e.mmol_ml="MILLIMOL_PER_MILLILITER",e.g_cm3="DENSITY",e.cm3="VOLUME",e.cm2="SQUARECENTIMETRE",e.m2="SQUAREMETRE",e.g_cm2="GRAM_PER_SQUARE_CENTIMETER",e.g_m2="GRAMMAGE",e.g_m="GRAM_PER_METER",e["µl"]="MICROLITER",e.ml="MILLILITER",e.cl="CENTILITER",e.l="LITER",
e.mmol="MILLIMOL",e.C="GRAD_CELSIUS",e.F="GRAD_FAHRENHEIT",e.sec="SECOND",e.min="MINUTE",e.h="HOUR",e.am="TIME_AM",e.pm="TIME_PM",e.V="VOLT",e.mA="MILLIAMPER",e.hPa="HECTOPASCAL",e.kPa="KILOPASCAL",e.g_mol="GRAM_PER_MOL",e.kg_m3="KG_M3",e.mmHg="MMHG",e.invalid="!invalid!",e.rpm="RPM"}(E=t.EnumUnitStrings||(t.EnumUnitStrings={}));const o={[E.none]:"none",[E.o]:"o",[E.µg]:"µg",[E.mg]:"mg",[E.g]:"g",[E.kg]:"kg",[E.t]:"t",[E.mct]:"mct",[E.ct]:"ct",[E.kct]:"kct",[E.K]:"K",[E.lb]:"lb",[E.oz]:"oz",[E.lb_oz]:"lb_oz",[E.ozt]:"ozt",[E.dwt]:"dwt",[E.GN]:"GN",[E.per_lb]:"per_lb",[E.tlh]:"tlh",[E.tls]:"tls",[E.tlt]:"tlt",[E.tlc]:"tlc",[E.mom]:"mom",[E.tol]:"tol",[E.bat]:"bat",[E.MS]:"MS",[E.N]:"N",[E.war]:"war",[E.pcs]:"pcs",[E.per]:"per",[E.mm]:"mm",[E.cm]:"cm",[E.m]:"m",[E.km]:"km",[E.g_ml]:"g_ml",[E.Mcls_ml]:"Mcls_ml",[E.µg_ml]:"µg_ml",[E.µg_l]:"µg_l",[E.mg_ml]:"mg_ml",[E.mg_l]:"mg_l",[E.mmol_ml]:"mmol_ml",[E.g_cm3]:"g_cm3",[E.cm3]:"cm3",[E.cm2]:"cm2",[E.m2]:"m2",[E.g_cm2]:"g_cm2",
[E.g_m2]:"g_m2",[E.g_m]:"g_m",[E.µl]:"µl",[E.ml]:"ml",[E.cl]:"cl",[E.l]:"l",[E.mmol]:"mmol",[E.C]:"C",[E.F]:"F",[E.sec]:"sec",[E.min]:"min",[E.h]:"h",[E.am]:"am",[E.pm]:"pm",[E.V]:"V",[E.mA]:"mA",[E.hPa]:"hPa",[E.kPa]:"kPa",[E.g_mol]:"g_mol",[E.kg_m3]:"kg_m3",[E.mmHg]:"mmHg",[E.invalid]:"invalid",[E.rpm]:"rpm"};t.unitStringToLong=function(e){const t=Array.isArray(e)?e[0]:e;if(0===t.length)return E.none;for(const[e,_]of Object.entries(o))if(_===t)return e;return E.invalid},t.convertWgtUnit=function(e,t,_){return s.convertValueToTargetUnit(e,t,_)},t.convertWgtUnitBigNumber=function(e,t,_){return s.convertValueToTargetUnitBigNumber(e,t,_)},t.convertTempUnit=function(e,t,_){const a=[s.EnumUnit.GRAD_CELSIUS,s.EnumUnit.GRAD_FAHRENHEIT,E.C,E.F];return a.includes(t)&&a.includes(_)?s.convertValueToTargetUnit(e,t,_):e},t.convertPressureUnit=function(e,t,_){const a=[s.EnumUnit.HECTOPASCAL,s.EnumUnit.KILOPASCAL,E.hPa,E.kPa];return a.includes(t)&&a.includes(_)?s.convertValueToTargetUnit(e,t,_):e},
t.UnitEnum_Api2Lib=function(e){let t=E;for(let _ in t)if(t[_].toString()===e.toString())return _;return null},t.UnitEnum_Lib2Api=function(e){return s.getUnitEnum(e)}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(5),i=_(0),n=_(16),s=_(7),r=_(6);var E,o,A;function T(e,_,a){return{appearance:i.EnumAppearance.ENABLED_SECONDARY,type:o.CALLBACK,name:_||s.EnumFontLabels.OK,effect:{method:"buttonClickEvent",module:"qappHandler",params:{buttonId:e||t.MESSAGEHANDLER_OK_BTN_ID},calltarget:a||A.ReST}}}!function(e){e.FATAL="FATAL",e.ERROR="ERROR",e.WARNING="WARNING",e.INFORMATION="INFORMATION"}(E=t.MESSAGE_HANDLER_MESSAGE_TYPE||(t.MESSAGE_HANDLER_MESSAGE_TYPE={})),function(e){e.UNTIL_EXPLICIT_DELETION="UNTIL_EXPLICIT_DELETION",e.UNTIL_EXPLICIT_DELETION_OR_REBOOT="UNTIL_EXPLICIT_DELETION_OR_REBOOT",e.UNTIL_USER_ACKNOWLEDGE_WITH_REBOOT_PERSISTENCE="UNTIL_USER_ACKNOWLEDGE_WITH_REBOOT_PERSISTENCE",
e.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE="UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE"}(t.MESSAGE_HANDLER_LIFETIME||(t.MESSAGE_HANDLER_LIFETIME={})),function(e){e.NAVIGATETO="NavigateTo",e.CALLBACK="Callback"}(o=t.MESSAGE_HANDLER_BUTTON_TYPE||(t.MESSAGE_HANDLER_BUTTON_TYPE={})),function(e){e.MQTT="MQTT",e.ReST="ReST",e.REMOVE_MESSAGE="REMOVE_MESSAGE"}(A=t.MessageHandlerCallTarget||(t.MessageHandlerCallTarget={})),function(e){e.NONE="NONE",e.USER_CAL="USER_CAL",e.QAPP="QAPP"}(t.MessageHandlerCategory||(t.MessageHandlerCategory={})),t.MESSAGEHANDLER_OK_BTN_ID="BTN_OK_MESSAGEHANDLER",t.MESSAGEHANDLER_CLOSE_QAPP_BTN_I18N="_QAPP_LIB_CONNECTION_ERROR_CLOSE_QAPP_BTN",t.createMessageHandlerButton=T;t.MessageHandlerProxy=class extends a.BaseProxy{constructor(){super(...arguments),this.restEndpoint="messagehandler"}addMessage(e,t,_,i,s,E,o,A,I,N){return this.body.method=r.RestMethodsMESSAGE_HANDLER.addMessage,this.body.params={message:{errorCode:e,type:t,lifetime:i,title:s,
reason:E,solution:o,buttons:I||[T()],category:_,categorysecret:A},showMessageInFutureMillis:N||0,uniqueMessageId:0},console.log("addMessageHandler: "+n.inspect(this.body.params.message)),new a.CubisRestResponse(this.syncRequest()).rawReturns.uniqueMessageId}deleteMessageByCategory(e,t){return this.body.method=r.RestMethodsMESSAGE_HANDLER.deleteMessageByCategory,this.body.params={categoryAsString:e,secret:t},console.log("deleteMessageByCategory: "+n.inspect(this.body.params)),new a.CubisRestResponse(this.syncRequest())}deleteMessagesByCategory(e){return this.body.method=r.RestMethodsMESSAGE_HANDLER.deleteMessagesByCategory,this.body.params={categorySecretArray:JSON.stringify({arraySize:e.length,data:e})},console.log("deleteMessagesByCategory: "+n.inspect(this.body.params)),new a.CubisRestResponse(this.syncRequest())}getAllMessagesByCategory(e){this.body.method=r.RestMethodsMESSAGE_HANDLER.getAllMessagesByCategory,this.body.params={categoryAsString:e,messages:{}}
;let t=new a.CubisRestResponse(this.syncRequest());return JSON.parse(t.rawReturns.messages).data}getAllErrorMessagesByCategory(e){let t=this.getAllMessagesByCategory(e),_=[];for(let e of t)e.type===E.ERROR&&_.push(e);return _}removeMessage(e){return this.body.method=r.RestMethodsMESSAGE_HANDLER.removeMessage,this.body.params={uniqueMessageId:e},new a.CubisRestResponse(this.syncRequest())}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(28),i=_(50),n=_(1),s=_(5),r=_(13),E=_(0),o=_(49),A=_(80),T=_(47),I=_(6),N=_(25);function l(e){return r.isNumber(e)&&(e=e.toFixed(0)),t.DYNAMIC_PARAMID_PREQUEL+"CONFIG_SCREEN"+e}function c(e,t){r.isString(t)||(t="_"),t=t,!1!==r.isString(e)&&0!==e.length||(e=t);let _=new RegExp(/[^0-9A-Za-z._-]+/g),a=new RegExp(/[\/\?<>\\:\*\|"]/g),i=new RegExp(/[\x00-\x1f\x80-\x9f]/g),n=new RegExp(/^\.+$/),s=new RegExp(/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i),E=new RegExp(/[\. ]+$/)
;return(e=(e=(e=(e=(e=(e=e.replace(_,t)).replace(a,t)).replace(i,t)).replace(n,t)).replace(s,t)).replace(E,t)).length>255&&(e=e.substring(0,255)),e}function u(e){if(t.fs.existsSync(e))if(t.fs.lstatSync(e).isDirectory()){let a=t.fs.readdirSync(e,{encoding:"utf8",withFileTypes:!1});for(var _=0;_<a.length;_++)u(t.path.join(e,a[_]));t.fs.rmdirSync(e)}else t.fs.unlinkSync(e)}var P;function p(e){let t={title:"",header:"",value:"",automaticManipulation:P.NONE};return r.isObject(e)&&(t=Object.assign(t,e)),t}function S(e,t,_){let a={method:t,params:_},i=JSON.stringify(a),n=["http://127.0.0.1:8080/rest/"+e,"-H","Accept:application/json","-H","Content-Type:application/json","-H","Expect:","--data","@-"],r=o.spawnSync("curl",n,{input:i}),E=new s.CubisRestResponse(!1);try{E=new s.CubisRestResponse(r)}catch(e){E.rawReturns=e}return E}function d(e,t,_){return a.__awaiter(this,void 0,void 0,function*(){let a=T;return"https"===e&&(a=A),new Promise(function(e,i){let n=a.request(t,function(t){let _=[]
;t.on("data",function(e){_.push(e)}),t.on("end",function(){try{e({headers:t.headers,url:t.url,statusCode:t.statusCode,body:Buffer.concat(_)})}catch(e){i(e)}})});n.on("error",function(e){i(e)}),n.on("timeout",function(){n.abort(),i("Request timeout")}),_&&n.write(_),n.end()})})}function R(e){let t={unit:N.EnumUnit.NONE,decimals:0,d:0,e:0,max:0,min:0,extended:{d:N.createQuantity(),e:N.createQuantity(),max:N.createQuantity(),min:N.createQuantity()},ranges:{1:{d:N.createQuantity(),e:N.createQuantity(),max:N.createQuantity(),min:N.createQuantity()}},activeRangeIndex:"1"};return r.isObject(e)&&r.overwriteExistingAttributes(e,t),t}t.fs=_(29),t.path=_(53),t.DYNAMIC_PARAMID_PREQUEL="TASK/DYNAMIC_",t.sortKeys=function(e){if(!1===r.isObject(e))return[];let t=[];t=Array.isArray(e)?e:Object.keys(e);let _=[],a=[],i=[];for(let e=0;e<t.length;e++)r.isNumber(Number(t[e]))?_.push(t[e]):r.isString(t[e])?a.push(t[e]):i.push(t[e]);return a=a.sort(),i=i.sort(),(_=(_=_.sort(function(e,t){
return Number(e)-Number(t)})).concat(a)).concat(i)},t.determineNearestNumberInArray=function(e,t){for(let _=0;_<t.length;_++)if(e<t[_])return _<=0?_:e<=t[_]-(t[_]-t[_-1])/2?_-1:_;return t.length-1},t.loadWorkstate_DATA_CONTAINER=function(e){let t=void 0;if(!r.isString(e))return t;let _=S("task/management",I.RestMethodsTASK_MANAGEMENT.getWorkstate,{id:e,workstate:{}});try{t=(t=JSON.parse(_.rawReturns.workstate).workstate).DATA_CONTAINER}catch(e){t=void 0}return t},t.storeWorkstate_DATA_CONTAINER=function(e,t){if(!r.isString(e))return new s.CubisRestResponse(!1);let _={DATA_CONTAINER:t};return S("task/management",I.RestMethodsTASK_MANAGEMENT.saveWorkstate,{id:e,workstate:_})},t.loadTaskConfig_DATA_CONTAINER=function(e){let _=e.getGroup(l(54321));if(void 0===_)return;let a=[],i=l(54321)+"/"+t.DYNAMIC_PARAMID_PREQUEL+"DATA_CONTAINER_";for(let e=0;e<_.parameters.length;e++)if(_.parameters[e].type===E.EnumParameterTypes.PARAM_STRING&&_.parameters[e].id.startsWith(i)){
let t=parseInt(_.parameters[e].id.substring(i.length));r.isNumber(t)&&(a[t]=_.parameters[e].value.string)}try{return JSON.parse(a.join())}catch(e){return}},t.storeTaskConfig_DATA_CONTAINER=function(e,_,a){let i=e.getGroup(l(54321));if(a=!!r.isBoolean(a)&&a,void 0===i&&(e.addDynamicGroup({id:l(54321),type:E.EnumParameterTypes.PARAM_GROUP,appearance:E.EnumAppearance.HIDDEN,title:{id:"",args:[]},parameters:[]}),i=e.getGroup(l(54321))),void 0===i)return new s.CubisRestResponse(!1);i.parameters=[];let n=JSON.stringify(_),o=0,A=0;for(;o<n.length;){(A=o+1e5)>n.length&&(A=n.length);let _={id:l(54321)+"/"+t.DYNAMIC_PARAMID_PREQUEL+"DATA_CONTAINER_"+i.parameters.length.toFixed(0),type:E.EnumParameterTypes.PARAM_STRING,appearance:E.EnumAppearance.HIDDEN,title:{id:"",args:[]},header:{id:"",args:[]},value:{string:n.substring(o,A)},info:{minimum:{length:0},maximum:{length:1e5}}};o=A,i.parameters.push(_),e.updateParameter(_)}return!1===a?S("task/management",I.RestMethodsTASK_MANAGEMENT.updateTask,{
task:JSON.stringify(e.getTask()),errorList:[]}):new s.CubisRestResponse(!0)},t.get_taskConfig_paramGroupID=l,t.getCompliantFilename=c,t.checkFileNameCompliancy=function(e,t){if(c(e)!==e)return!1;t=void 0!==t?t:[];for(let _=0;_<t.length;_++)if(e.includes(t[_]))return!1;return!0},t.getCreateTaskSpecificFolder=function(e,_){let a="",n=e.getTask(),s=e.getParameter("TASK/IDENTIFICATION/NAME"),r=t.fs.readdirSync(_,{encoding:"utf8",withFileTypes:!1}),E=new i.TaskProxy,o=[];try{o=E.getTaskNamesByOrderNumber(n.qappOrderNumber)}catch(e){}for(var A=0;A<r.length;A++)if(r[A].toString().startsWith("_RENAME_TASK_ID_")&&r[A].toString().endsWith(".json")){var T=t.fs.readFileSync(t.path.join(_,r[A]),"utf8");(I=JSON.parse(T))&&I.taskname&&I.foldername&&!o.includes(I.taskname)&&(u(t.path.join(_,I.foldername)),u(t.path.join(_,r[A])))}else if(r[A].toString().startsWith("_TASK_"))try{E.readTask(r[A].toString().substring("_TASK_".length))}catch(e){u(t.path.join(_,r[A]))}if(null==n._id||""==n._id){
let e=Date.now(),i={taskname:s.value.string,foldername:"_RENAME_TASK_ID_"+e};t.fs.writeFileSync(t.path.join(_,"_RENAME_TASK_ID_"+e+".json"),JSON.stringify(i)),a=t.path.join(_,"_RENAME_TASK_ID_"+e)}else for(a=t.path.join(_,"_TASK_"+n._id),A=0;A<r.length;A++)if(r[A].toString().startsWith("_RENAME_TASK_ID_")&&r[A].toString().endsWith(".json")){var I;T=t.fs.readFileSync(t.path.join(_,r[A]),"utf8"),(I=JSON.parse(T))&&I.taskname&&I.foldername&&I.taskname==s.value.string&&(t.fs.existsSync(t.path.join(_,I.foldername))?t.fs.existsSync(a)?(u(t.path.join(_,I.foldername)),u(t.path.join(_,r[A]))):(t.fs.renameSync(t.path.join(_,I.foldername),a),u(t.path.join(_,r[A]))):u(t.path.join(_,r[A])))}return t.fs.existsSync(a)||t.fs.mkdirSync(a),a},t.deleteFileFolderRecursive=u,t.createFolder=function(e){t.fs.existsSync(e)||t.fs.mkdirSync(e)},function(e){e.NONE="NONE",e.INCREMENT="INCREMENT",e.DECREMENT="DECREMENT"}(P=t.EnumIdentifierAutoManipulation||(t.EnumIdentifierAutoManipulation={})),
t.EnumMapIdentifierAutoManipulation={[P.NONE]:"_QAPP_LIB_PARAM_SELECT_OPTION_SID_ON",[P.INCREMENT]:"_QAPP_LIB_PARAM_SELECT_OPTION_SID_ON_AUTO_INC",[P.DECREMENT]:"_QAPP_LIB_PARAM_SELECT_OPTION_SID_ON_AUTO_DEC"},t.getLotIDsParameterID=function(e){r.isNumber(e)||(e=1),e=e;const _=l("_RESERVED_LOT_ID_SETTINGS");return{paramGroupID:_,settingsLockedInfo:_+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_LOT_ID_settingsLocked",mainCounter:_+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_LOT_ID_counter",header:_+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_LOT_ID_"+e.toFixed(0)+"_header",title:_+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_LOT_ID_"+e.toFixed(0)+"_title"}},t.getSampleIDsParameterID=function(e){r.isNumber(e)||(e=1),e=e;const _=l("_RESERVED_SAMPLE_ID_SETTINGS");return{paramGroupID:_,settingsLockedInfo:_+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_SAMPLE_ID_settingsLocked",mainCounter:_+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_SAMPLE_ID_counter",
header:_+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_SAMPLE_ID_"+e.toFixed(0)+"_header",title:_+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_SAMPLE_ID_"+e.toFixed(0)+"_title",manipulator:_+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_SAMPLE_ID_"+e.toFixed(0)+"_manipulator"}},t.createStandardIdentifier=p,t.preManipulateIdentifier=function(e){let t=p();void 0!==e&&(t=n.cloneJSON(e));let _=void 0,a=0;const i=/\d*$/,s=t.value.match(i);switch(null!=s&&s.length>0&&r.isString(s[0])&&(a=s[0].length,_=parseInt(s[0])),t.automaticManipulation){case P.INCREMENT:""===t.value?t.value="001":""===t.value||r.isNumber(_)?""!==t.value&&r.isNumber(_)&&(_++,t.value=t.value.replace(i,_.toFixed(0).padStart(a,"0"))):t.value+="-2";break;case P.DECREMENT:""!==t.value&&r.isNumber(_)&&_>0&&(_--,t.value=t.value.replace(i,_.toFixed(0).padStart(a,"0")))}return t},t.perform_InternalWebserviceRequest=S,t.perform_WebserviceRequest=function(e,t,_,i,n,s,E,o,I,N,l){return a.__awaiter(this,void 0,void 0,function*(){
r.isNumber(t)||(t="http"===_?80:443),r.isNumber(l)||(l=1e4);let a,c={hostname:e,port:t,path:n,method:i,followRedirects:!1,headers:s,timeout:l};I&&N&&(c.auth=I+":"+N),c.agent="https"===_?new A.Agent({host:e,keepAlive:!0,rejectUnauthorized:!1,port:t}):new T.Agent({keepAlive:!0}),E&&void 0!==E&&(o=JSON.stringify(E)),o&&(c.headers["content-length"]=Buffer.byteLength(o));try{a=yield d(_,c,o).then(e=>({isSuccess:!0,error:"",statusCode:e.statusCode,headers:e.headers,body:e.body,url:e.url,metadata:n}))}catch(e){return{isSuccess:!1,error:e,statusCode:0,headers:{},body:void 0,url:c.hostname+c.path,metadata:n}}return a})},t.httpRequest=d,t.getConfiguredPrintProfiles=function(){let e=[];const t=S("profilemanagement",I.RestMethodsPROFILE_MANAGEMENT.getProfiles,{filter:'[{"type":{"ne":"WEIGHING_PROFILE_NAME"}}]',rProfiles:{}});if(t.isSuccess()&&r.isString(t.rawReturns.rProfiles)){const _=JSON.parse(t.rawReturns.rProfiles.toString());for(let t=0;t<_.data.length;t++){
const a=r.getObjectByID(_.data[t].params,"PROFILE/IDENTIFICATION","id");if(r.isObject(a)&&r.isObject(a.parameters)){const i=r.getObjectByID(a.parameters,"PROFILE/IDENTIFICATION/NAME","id");r.isObject(i)&&r.isObject(i.value)&&e.push({id:_.data[t]._id,type:_.data[t].type,title:i.value.string})}}}return e},t.createMetrology=R,t.getMetrology=function(e){let t=R(),_=S("weighing",I.RestMethodsWEIGHING.getParameter,{id:"WEIGHING/METROLOGY/RANGE",rObject:{}}),a="";if(_.isSuccess()&&_.hasOwnProperty("rawReturns")&&_.rawReturns.hasOwnProperty("rObject")&&(_=JSON.parse(_.rawReturns.rObject))&&_.hasOwnProperty("id")&&_.hasOwnProperty("parameters")){let e=r.getObjectByID(_.parameters,"WEIGHING/METROLOGY/RANGE/MAXIMUM");e&&(a=e.value.numbers[0])}const i=S("weighing",I.RestMethodsWEIGHING.getRangeParameters,{parameters:{}});if(!(i.isSuccess()&&i.hasOwnProperty("rawReturns")&&i.rawReturns.hasOwnProperty("parameters")))return t;const n=JSON.parse(i.rawReturns.parameters)
;if(!(n.hasOwnProperty("list")&&Array.isArray(n.list)&&n.list.length>0))return t;const s=r.getObjectByID(n.list,"WEIGHING/METROLOGY/RANGES");if(!r.isObject(s))return t;t.ranges={};for(let _ of Object.values(s.parameters)){if(!r.isString(_.id)||!r.isObject(_.parameters))continue;let i="";const n=_.id.split("/");if(0===(i=n[n.length-1]).length)continue;const s={d:N.createQuantity(),e:N.createQuantity(),max:N.createQuantity(),min:N.createQuantity()};let E=r.getObjectByID(_.parameters,"WEIGHING/METROLOGY/RANGES/"+i+"/INTERVAL");E&&(s.d.value=parseFloat(E.value.numbers[0]),s.d.decimals=E.value.decimals,s.d.unit=N.getUnitEnum(E.value.unit.toString())),(E=r.getObjectByID(_.parameters,"WEIGHING/METROLOGY/RANGES/"+i+"/PRECISION"))&&(s.e.value=parseFloat(E.value.numbers[0]),s.e.decimals=E.value.decimals,s.e.unit=N.getUnitEnum(E.value.unit.toString())),(E=r.getObjectByID(_.parameters,"WEIGHING/METROLOGY/RANGES/"+i+"/MINIMUM"))&&(s.min.value=parseFloat(E.value.numbers[0]),
s.min.decimals=E.value.decimals,s.min.unit=N.getUnitEnum(E.value.unit.toString())),(E=r.getObjectByID(_.parameters,"WEIGHING/METROLOGY/RANGES/"+i+"/MAXIMUM"))&&(s.max.value=parseFloat(E.value.numbers[0]),s.max.decimals=E.value.decimals,s.max.unit=N.getUnitEnum(E.value.unit.toString()),a===E.value.numbers[0]&&(t.activeRangeIndex=i)),void 0===e&&(e=s.d.unit),s.d=N.convertToTargetUnit(s.d,e),s.e=N.convertToTargetUnit(s.e,e),s.e.decimals=s.d.decimals,s.min=N.convertToTargetUnit(s.min,e),s.min.decimals=s.d.decimals,s.max=N.convertToTargetUnit(s.max,e),s.max.decimals=s.d.decimals,t.ranges[i]=s}t.extended.d.value=1/0,t.extended.e.value=1/0,t.extended.min.value=1/0,t.extended.max.value=-1/0;for(let e of Object.values(t.ranges))e.d.value<t.extended.d.value&&(t.extended.d=e.d),e.e.value<t.extended.e.value&&(t.extended.e=e.e),e.min.value<t.extended.min.value&&(t.extended.min=e.min),e.max.value>t.extended.max.value&&(t.extended.max=e.max);return t.unit=t.extended.d.unit,
t.decimals=t.extended.d.decimals,t.d=t.extended.d.value,t.e=t.extended.e.value,t.min=t.extended.min.value,t.max=t.extended.max.value,t},t.get_device_roles=function(){let e=S("user",I.RestMethodsUSER_MANAGEMENT.getListRoles,{list:{},start:0,end:-1}),t=[];try{let _=JSON.parse(e.rawReturns.list).data;for(let e=0;e<_.length;e++)t.push({id:_[e]._id,name:r.getObjectByID(_[e].params,"ROLE/NAME").value.string,editable:_[e].editable,locked:_[e].locked})}catch(e){}return t},t.get_device_user=function(){let e={id:"",name:"",display_name:"",description:"",role_id:"",role_name:""},t=S("access",I.RestMethodsACCESS_MANAGEMENT.getCurrentUser,{user:""});try{let _=JSON.parse(t.rawReturns.user);e.id=_._id;let a=r.getObjectByID(_.params,"USER/SETTINGS");e.name=r.getObjectByID(a.parameters,"USER/SETTINGS/LOGINNAME").value.string,e.display_name=r.getObjectByID(a.parameters,"USER/SETTINGS/NAME").value.string,e.description=r.getObjectByID(a.parameters,"USER/SETTINGS/DESCRIPTION").value.string,
e.role_id=r.getObjectByID(a.parameters,"USER/SETTINGS/ROLES").value.selection.id,e.role_name=r.getObjectByID(a.parameters,"USER/SETTINGS/ROLES").value.selection.text.id}catch(e){}return e},t.EnumMapUnit=null,t.harmonizeWeightParam=function(e){},t.tryAssign_taskParameter_to_IQuantity=function(e,t,_){},t.tryAssign_IQuantity_to_taskParameter=function(e,t,_){}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(8),i=_(56),n=_(0),s=_(4),r=_(30),E=_(2);t.WEIGHING_SCREEN_ID="WEIGHING",t.CANCEL_BARBUTTON_ID="BTN_BAR_CANCEL";const o={buttonId:"BARBUTTON/CANCEL",label:{id:"",args:[]},appearance:n.EnumAppearance.HIDDEN};t.WeighingScreen=class extends s.AbstractScreen{constructor(e,t){super(e),this.buttonList=[],this.text1={value:"",wildcards:[]},this.text2={value:"",wildcards:[]},this.param1="",this.param2="",this.title=void 0,this.createBarButtons(t),this.publishBarButtons(),this.checkBarGraph=new i.CheckBarGraph(e),
this.cancelBarButton=new a.default(this.mqttHandler,this,o)}getId(){return t.WEIGHING_SCREEN_ID}getBarButtonId(){return E.MqttTopics.HMI_WEIGHING_SCREEN_BARBUTTONS}createBarButtons(e){e.sort(this.compareButtonBarButtons);for(let t of e){let e=new a.default(this.mqttHandler,this,t);this.buttonList.push(e),e.publish()}}publishBarButtons(){let e=[];for(let t of this.buttonList)e.push(E.MqttTopics.QAPP_NAMESPACE+"/"+t.getTopic());this.mqttHandler.publish(this.getBarButtonId(),JSON.stringify(e))}setText1(e,t,_){let a=!1;this.text1.value!==e&&(this.text1.value=e,a=!0),t&&this.text1.wildcards.join()!==t.join()&&(this.text1.wildcards=t,a=!0),_?this.text1.color!==_&&(this.text1.color=_,a=!0):this.text1.color&&(this.text1.color=void 0,a=!0),a&&this.publishText1()}compareButtonBarButtons(e,t){return r.getButtonPriority(e.buttonId)-r.getButtonPriority(t.buttonId)}publishText1(){this.mqttHandler.publish(E.MqttTopics.HMI_WEIGHING_SCREEN_INSTRUCTION1,JSON.stringify(this.text1),{retain:!0})}
publishText2(){this.mqttHandler.publish(E.MqttTopics.HMI_WEIGHING_SCREEN_INSTRUCTION2,JSON.stringify(this.text2),{retain:!0})}setText2(e,t,_){let a=!1;this.text2.value!==e&&(this.text2.value=e,a=!0),t&&this.text2.wildcards.join()!==t.join()&&(this.text2.wildcards=t,a=!0),_?this.text2.color!==_&&(this.text2.color=_,a=!0):this.text2.color&&(this.text2.color=void 0,a=!0),a&&this.publishText2()}publishTitle(){this.title?this.mqttHandler.publish(E.MqttTopics.HMI_WEIGHING_SCREEN_TITLE,JSON.stringify(this.title),{retain:!0}):this.mqttHandler.publish(E.MqttTopics.HMI_WEIGHING_SCREEN_TITLE,"",{retain:!0})}setTitle(e){let t=void 0;this.title&&(t=JSON.stringify(this.title)),this.title=e,this.title!==t&&this.publishTitle()}getText1(){return this.text1}getText2(){return this.text2}publishParam1(){this.mqttHandler.publish(E.MqttTopics.HMI_WEIGHING_SCREEN_PARAM1_TOPIC,JSON.stringify(this.param1),{retain:!0})}publishParam2(){
this.mqttHandler.publish(E.MqttTopics.HMI_WEIGHING_SCREEN_PARAM2_TOPIC,JSON.stringify(this.param2),{retain:!0})}setParam1(e){this.param1!==e&&(this.param1=e,this.publishParam1())}setParam2(e){this.param2!==e&&(this.param2=e,this.publishParam2())}getParam1(){return this.param1}getParam2(){return this.param2}getButton(e){if(e===t.CANCEL_BARBUTTON_ID)return this.cancelBarButton;for(let t of this.buttonList)if(t.getButtonId()===e)return t}show(){this.publishText1(),this.publishText2(),this.publishTitle(),this.publishParam1(),this.publishParam2();for(let e of this.buttonList)e.publish();super.show()}getCheckBarGraph(){return this.checkBarGraph}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(4);t.AbstractOverlay=class extends i.AbstractScreen{show(){this.publishContent("",'{ "appearance":"'+a.EnumAppearance.ENABLED+'" }'),this.events$.next({type:i.ScreenEventType.SHOW_OVERLAY,id:this.getId()})}hide(){
this.publishContent("",'{ "appearance":"'+a.EnumAppearance.HIDDEN+'" }'),this.events$.next({type:i.ScreenEventType.HIDE_OVERLAY,id:this.getId()})}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(3),n=_(12),s=_(4),r=_(11),E=_(2);t.KEYBOARD_SCREEN_ID="PARAMETER_INPUT";t.KeyboardScreen=class{constructor(e,t){this.keyboardObject={appearance:a.EnumAppearance.HIDDEN,param:{}},this.events$=new r.Subject,t?(this.keyboardParam=i.createEmptySelectionParameter(),this.keyboardParam.appearance=a.EnumAppearance.HIDDEN):(this.keyboardParam=i.createEmptyStringParameter(),this.keyboardParam.appearance=a.EnumAppearance.HIDDEN),this.keyboardObject.param=this.keyboardParam,this.mqttHandler=e}setAppearance(e){this.keyboardObject.appearance!==e&&(e!==a.EnumAppearance.HIDDEN&&e!==a.EnumAppearance.ENABLED||(this.keyboardObject.appearance=e,this.mqttHandler.publish(E.MqttTopics.HMI_QAPP_PARAMETER_INPUT,JSON.stringify(this.keyboardObject))))}getAppearance(){
return this.keyboardObject.appearance}publishIfEnabled(){this.keyboardObject.appearance===a.EnumAppearance.ENABLED&&this.mqttHandler.publish(E.MqttTopics.HMI_QAPP_PARAMETER_INPUT,JSON.stringify(this.keyboardObject))}setParamId(e){this.keyboardObject.param.id!==e&&(this.keyboardObject.param.id=e,this.publishIfEnabled())}getParamId(){return this.keyboardObject.param.id}setParamType(e){this.keyboardObject.param.type!==e&&(this.keyboardObject.param.type=e,this.publishIfEnabled())}getParamType(){return this.keyboardObject.param.type}setParamAppearance(e){this.keyboardObject.param.appearance=e,this.publishIfEnabled()}getParamAppearance(){return this.keyboardObject.param.appearance}checkTextStructEqual(e,t){let _=!0;return e.id!==t.id&&(_=!1),e.args.join()!==t.args.join()&&(_=!1),_}setParamTitle(e){this.checkTextStructEqual(e,this.keyboardObject.param.title)||(this.keyboardObject.param.title=e,this.publishIfEnabled())}getParamTitle(){return this.keyboardObject.param.title}setParamHeader(e){
this.checkTextStructEqual(e,this.keyboardObject.param.header)||(this.keyboardObject.param.header=e,this.publishIfEnabled())}getParamHeader(){return this.keyboardObject.param.header}setParam(e){n.isEqual(this.keyboardObject.param,e)||(this.keyboardObject.param=e,this.publishIfEnabled())}getParam(){return this.keyboardObject.param}getId(){return t.KEYBOARD_SCREEN_ID}getButton(e){}hide(){this.keyboardObject.appearance===a.EnumAppearance.ENABLED&&(this.setAppearance(a.EnumAppearance.HIDDEN),this.events$.next({type:s.ScreenEventType.HIDE_OVERLAY,id:this.getId()}))}show(){this.keyboardObject.appearance===a.EnumAppearance.HIDDEN&&(this.setAppearance(a.EnumAppearance.ENABLED),this.events$.next({type:s.ScreenEventType.SHOW_OVERLAY,id:this.getId()}))}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(97),i=_(99),n=_(100),s=_(30),r=_(101),E=_(102),o="SCREENS/",A="/TABLIST",T="/REQUESTEDTAB",I="/QAPP/";class N{constructor(e,t){this.tabScreenTablistObject=[],
this.tabScreenRequestedObject="",this.tabList=[],this.mqttHandler=e,this.screenId=t,this.tabScreenTopic=o+this.screenId,this.tabScreenTablistTopic=this.tabScreenTopic+A,this.tabScreenRequestedTopic=this.tabScreenTopic+T}publishTabList(){this.mqttHandler.publish(this.tabScreenTablistTopic,JSON.stringify(this.tabScreenTablistObject))}publishRequestedTab(){this.mqttHandler.publish(this.tabScreenRequestedTopic,JSON.stringify(this.tabScreenRequestedObject))}static createFigureTab(e,t,_,i,n){return _.topbuttons=void 0!==n?N.sortTopButtons(n):_.topbuttons,new a.TabFigure(_,e,t,i)}addFigureTab(e,t,_){t.id=e;let a=N.createFigureTab(this.mqttHandler,this.screenId,t,!1,_);return this.tabScreenTablistObject.push(I+a.publishId()),this.tabList.push(a),a}static createGraphTab(e,t,_,a,n){return _.topbuttons=void 0!==n?N.sortTopButtons(n):_.topbuttons,new i.TabGraph(_,e,t,a)}addGraphTab(e,t,_){t.id=e;let a=N.createGraphTab(this.mqttHandler,this.screenId,t,!1,_)
;return this.tabScreenTablistObject.push(I+a.publishId()),this.tabList.push(a),a}static createParamListTab(e,t,_,a,i){return _.topbuttons=void 0!==i?N.sortTopButtons(i):_.topbuttons,new n.TabParamList(_,e,t,a)}addParamListTab(e,t,_){t.id=e;let a=N.createParamListTab(this.mqttHandler,this.screenId,t,!1,_);return this.tabScreenTablistObject.push(I+a.publishId()),this.tabList.push(a),a}static createMenuTab(e,t,_,a,i){return _.topbuttons=void 0!==i?N.sortTopButtons(i):_.topbuttons,new r.TabMenu(_,e,t,a)}static createTableTab(e,t,_,a,i){return _.topbuttons=void 0!==i?N.sortTopButtons(i):_.topbuttons,new E.TabTable(_,e,t,a)}addMenuTab(e,t,_){t.id=e;let a=N.createMenuTab(this.mqttHandler,this.screenId,t,!1,_);return this.tabScreenTablistObject.push(I+a.publishId()),this.tabList.push(a),a}addTableTab(e,t,_){t.id=e;let a=N.createTableTab(this.mqttHandler,this.screenId,t,!1,_);return this.tabScreenTablistObject.push(I+a.publishId()),this.tabList.push(a),a}getTab(e){let t=void 0
;for(let _ of this.tabList)_.getTabId()===e&&(t=_);return t}getTabList(){return this.tabList}clearTabList(){this.tabList.splice(0,this.tabList.length),this.tabScreenTablistObject.splice(0,this.tabScreenTablistObject.length)}requestTab(e){void 0!==this.getTab(e)&&(this.tabScreenRequestedObject=e,this.publishRequestedTab())}static sortTopButtons(e){return e.sort((e,t)=>s.getButtonPriority(e.getButtonId())-s.getButtonPriority(t.getButtonId())).map(e=>`/QAPP/${e.getTopic()}`)}}t.TabApi=N},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(12),i=_(51),n=_(5),s=_(14),r=_(35),E=_(42),o=_(17),A=_(79),T=_(6),I=_(25);var N,l=_(51);t.Subscription=l.Subscription,t.Observable=l.Observable,t.WEIGHING_BUTTON_UNIT="UNIT",t.WEIGHING_BUTTON_DO_ZERO="DO_ZERO",t.WEIGHING_BUTTON_DO_TARE="DO_TARE",t.WEIGHING_BUTTON_DO_TARE1="DO_TARE1",t.WEIGHING_BUTTON_CLR_TARE1="CLR_TARE1",t.WEIGHING_BUTTON_SET_TARE1="SET_TARE1",t.WEIGHING_BUTTON_SHOW_TARE1="SHOW_TARE1",
t.WEIGHING_BUTTON_HIDE_TARE1="HIDE_TARE1",t.WEIGHING_BUTTON_DISPLAY="DISPLAY",function(e){e.WEIGHING_DOZEROTARE_BEHAVIOR_AS_CONFIGURED="AS_CONFIGURED",e.WEIGHING_DOZEROTARE_BEHAVIOR_WITHOUT_STABILITY="WITHOUT_STABILITY",e.WEIGHING_DOZEROTARE_BEHAVIOR_AFTER_STABILITY="AFTER_STABILITY"}(t.WEIGHING_DOZEROTARE_BEHAVIOR||(t.WEIGHING_DOZEROTARE_BEHAVIOR={})),function(e){e.VERY_STABLE="VERY_STABLE",e.STABLE="STABLE",e.UNSTABLE="UNSTABLE",e.VERY_UNSTABLE="VERY_UNSTABLE"}(t.AMBIENT_CONDITION||(t.AMBIENT_CONDITION={})),function(e){e.SELECTED_DOMAIN_UNDEFINED="",e.SELECTED_DOMAIN_WEIGHING="ORIGINAL",e.SELECTED_DOMAIN_APP="APPLICATION"}(N=t.ISelectedWeightDisplayValueDomains||(t.ISelectedWeightDisplayValueDomains={}));const c="WEIGHING_ERROR_UNKNOWN_UNIT_ID";t.WeighingProxy=class extends n.BaseProxy{constructor(){super(...arguments),this.restEndpoint="weighing",this.weighValueMaxDigits=7,this.registeredApplications=[],this.metrologyMaximum$=new i.ReplaySubject(1),
this.metrologyMinimum$=new i.ReplaySubject(1),this.highestRangeInterval$=new i.ReplaySubject(1),this.lowestRangeInterval$=new i.ReplaySubject(1),this.highestRangePrecision$=new i.ReplaySubject(1),this.lowestRangePrecision$=new i.ReplaySubject(1),this.metrologyRanges$=new i.ReplaySubject(1),this.selectedDisplayValue$=new i.ReplaySubject(1),this.lastSelectedDisplayValueInfo={currentSelectedDomain:N.SELECTED_DOMAIN_UNDEFINED,currentSelectedId:"",lastSelectedApplicationId:""}}createWeightApplication(e,t,_,a,i=!1){if(this.registeredApplications.find(t=>t===e))return this.enableWeightApplication(e,i);{this.body.method=T.RestMethodsWEIGHING.createWeightApplication,this.body.params={id:e,title:t,header:_,isDynamic:a};let s=new n.CubisRestResponse(this.syncRequest());if(s.isSuccess()){try{this.enableWeightApplication(e,i)}catch(e){}this.registeredApplications.push(e)}return s}}enableWeightApplication(e,t){return this.body.method=T.RestMethodsWEIGHING.enableWeightApplication,this.body.params={
id:e,isEnabled:t},new n.CubisRestResponse(this.syncRequest())}enableWeightApplicationBulk(e,t){if(!t){let t=this.getSelectedDisplayValue();if(t){let _=t.lastSelectedApplicationId;if(_){let t=!1;return e.forEach(e=>{e!==_?this.enableWeightApplication(e,!1):t=!0}),void(t&&this.enableWeightApplication(_,!1))}}}e.forEach(e=>{this.enableWeightApplication(e,t)})}selectWeightApplication(e){return this.body.method=T.RestMethodsWEIGHING.selectWeightApplication,this.body.params={id:e},new n.CubisRestResponse(this.syncRequest())}destroyWeightApplication(e){this.body.method=T.RestMethodsWEIGHING.destroyWeightApplication,this.body.params={id:e};let t=new n.CubisRestResponse(this.syncRequest());if(t.isSuccess()){let t=this.registeredApplications.findIndex(t=>t===e);t>=0&&this.registeredApplications.splice(t,1)}return t}setButton(e,t){return this.body.method=T.RestMethodsWEIGHING.setButton,this.body.params={name:e,appearance:t},new n.CubisRestResponse(this.syncRequest())}triggerStableWeightBlock(){
return this.body.method=T.RestMethodsWEIGHING.triggerStableWeightBlock,this.body.params={},new n.CubisRestResponse(this.syncRequest())}cancelStableWeightBlock(){return this.body.method=T.RestMethodsWEIGHING.cancelStableWeightBlock,this.body.params={},new n.CubisRestResponse(this.syncRequest())}doZero(e){return this.body.method=T.RestMethodsWEIGHING.doZero,this.body.params={behavior:e},new n.CubisRestResponse(this.syncRequest())}clearTare1(){return this.body.method=T.RestMethodsWEIGHING.clearTare1,this.body.params={},new n.CubisRestResponse(this.syncRequest())}clearTare2(){return this.body.method=T.RestMethodsWEIGHING.clearTare2,this.body.params={},new n.CubisRestResponse(this.syncRequest())}clearTare1AndTare2(){return{clearTare1Response:this.clearTare1(),clearTare2Response:this.clearTare2()}}clearTareAll(){return this.body.method=T.RestMethodsWEIGHING.clearTareAll,this.body.params={},new n.CubisRestResponse(this.syncRequest())}doTare(e){
return this.body.method=T.RestMethodsWEIGHING.doTare,this.body.params={behavior:e},new n.CubisRestResponse(this.syncRequest())}doTare1(e){return this.body.method=T.RestMethodsWEIGHING.doTare1,this.body.params={behavior:e},new n.CubisRestResponse(this.syncRequest())}doTareAuto(e){return this.body.method=T.RestMethodsWEIGHING.doTareAuto,this.body.params={behavior:e},new n.CubisRestResponse(this.syncRequest())}doZeroTareAuto(e){return this.body.method=T.RestMethodsWEIGHING.doZeroTareAuto,this.body.params={behavior:e},new n.CubisRestResponse(this.syncRequest())}setTare1(e){return this.body.method=T.RestMethodsWEIGHING.setTare1,this.body.params={value:e},new n.CubisRestResponse(this.syncRequest())}cancelDoing(){return this.body.method=T.RestMethodsWEIGHING.cancelDoing,this.body.params={},new n.CubisRestResponse(this.syncRequest())}setTare2(e){return this.body.method=T.RestMethodsWEIGHING.setTare2,this.body.params={value:e},new n.CubisRestResponse(this.syncRequest())}setUnit(e,t=!0){
this.body.method=T.RestMethodsWEIGHING.setUnit,this.body.params={unitId:e};let _=new n.CubisRestResponse(this.syncRequest());if(_.isSuccess())return!0;if(_.result===c){if(t){let t=new E.MessageHandlerHelper(new r.MessageHandlerProxy),_=new A.ProfileManagementProxy,a=o.QAppBase.clientSingleton.getWeighingProfileId();t.addMessage(E.EMsgHandlerMsgs.ERR_704_UNIT_UNAVAILABLE,[o.QAppBase.clientSingleton.getTaskName()||"",I.getUnitString(e),a?_.getWeighingProfileName(a):""],void 0,[r.createMessageHandlerButton(void 0,void 0,r.MessageHandlerCallTarget.REMOVE_MESSAGE)]),o.QAppBase.clientSingleton.doSuspend()}return!1}return!1}getParameter(e){return this.body.method=T.RestMethodsWEIGHING.getParameter,this.body.params={rObject:{},id:e},new n.CubisRestResponse(this.syncRequest())}getParameterIds(){return this.body.method=T.RestMethodsWEIGHING.getParameterIds,this.body.params={rIds:{}},new n.CubisRestResponse(this.syncRequest())}setMinUsp(e){return this.body.method=T.RestMethodsWEIGHING.setMinUsp,
this.body.params={isEnabled:!0,value:s.QuantityParameter.getValue(e),unit:e.unit},new n.CubisRestResponse(this.syncRequest())}setMinWeight(e){return this.body.method=T.RestMethodsWEIGHING.setMinWeight,this.body.params=Object.assign({},e),new n.CubisRestResponse(this.syncRequest())}getWeighValueMaxDigits(){return this.weighValueMaxDigits}updateWeighValueMaxDigits(e){console.log("Weighing proxy: set new max weight value digit count: "+e),this.weighValueMaxDigits=e}updateMetrologyRanges(e){let t=a.last(e.parameters),_=a.head(e.parameters);if(this.metrologyRanges$.next(e),void 0!==t){let e=t.parameters.find(e=>"MAXIMUM"===a.last(e.id.split("/"))),_=t.parameters.find(e=>"INTERVAL"===a.last(e.id.split("/"))),i=t.parameters.find(e=>"PRECISION"===a.last(e.id.split("/")));void 0!==e&&this.metrologyMaximum$.next({maxUnit:e.value.unit,maxValue:s.QuantityParameter.getValue(e),maxDecimals:e.value.decimals}),void 0!==_&&this.highestRangeInterval$.next({intervalUnit:_.value.unit,
intervalValue:s.QuantityParameter.getValue(_),intervalDecimals:_.value.decimals}),void 0!==i&&this.highestRangePrecision$.next({precisionUnit:i.value.unit,precisionValue:s.QuantityParameter.getValue(i),precisionDecimals:i.value.decimals})}if(void 0!==_){let e=_.parameters.find(e=>"MINIMUM"===a.last(e.id.split("/"))),t=_.parameters.find(e=>"INTERVAL"===a.last(e.id.split("/"))),i=_.parameters.find(e=>"PRECISION"===a.last(e.id.split("/")));void 0!==e&&this.metrologyMinimum$.next({minUnit:e.value.unit,minValue:s.QuantityParameter.getValue(e),minDecimals:e.value.decimals}),void 0!==t&&this.lowestRangeInterval$.next({intervalUnit:t.value.unit,intervalValue:s.QuantityParameter.getValue(t),intervalDecimals:t.value.decimals}),void 0!==i&&this.lowestRangePrecision$.next({precisionUnit:i.value.unit,precisionValue:s.QuantityParameter.getValue(i),precisionDecimals:i.value.decimals})}}getSelectedDisplayValue(){return this.lastSelectedDisplayValueInfo}restoreLastSelectedDisplayValue(e){
void 0!==this.lastSelectedDisplayValueInfo&&(this.lastSelectedDisplayValueInfo.lastSelectedApplicationId=e,this.selectedDisplayValue$.next(this.lastSelectedDisplayValueInfo))}updateLastSelectedDisplayValue(e){try{console.log("WeighingProxy::updateLastSelectedDisplayValue: "+JSON.stringify(e));let t={currentSelectedDomain:e.show,currentSelectedId:e.id,lastSelectedApplicationId:""};t.currentSelectedDomain===N.SELECTED_DOMAIN_APP?t.lastSelectedApplicationId=e.id:void 0!==this.lastSelectedDisplayValueInfo&&(t.lastSelectedApplicationId=this.lastSelectedDisplayValueInfo.lastSelectedApplicationId),this.lastSelectedDisplayValueInfo=t,console.log("WeighingProxy::updateLastSelectedDisplayValue: new: "+JSON.stringify(this.lastSelectedDisplayValueInfo)),this.selectedDisplayValue$.next(this.lastSelectedDisplayValueInfo)}finally{}}insertWeightInvalidation(e,t){return this.body.method=T.RestMethodsWEIGHING.insertWeightInvalidation,this.body.params={group:e,topic:t},
new n.CubisRestResponse(this.syncRequest())}removeWeightInvalidation(e,t){return this.body.method=T.RestMethodsWEIGHING.removeWeightInvalidation,this.body.params={group:e,topic:t},new n.CubisRestResponse(this.syncRequest())}setAmbientCondition(e){return this.body.method=T.RestMethodsWEIGHING.setAmbientCondition,this.body.params={ambientConditionId:e},new n.CubisRestResponse(this.syncRequest())}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(35),i=_(3),n=_(62),s=_(17),r=_(78),E="_QAPP_MSG_HANDLER_",o="_TITLE",A="_REASON",T="_SOLUTION";var I;function N(e){return e+"_"+a.MESSAGEHANDLER_OK_BTN_ID}!function(e){e.TASKID="TASKID",e.QAPP="QAPP",e.QAPP_DB_ERROR="QAPP_DB_ERROR",e.QAPP_RUNTIME_COMM_ERROR="QAPP_RUNTIME_COMM_ERROR",e.QAPP_RUNTIME_EXIT_ERROR="QAPP_RUNTIME_EXIT_ERROR",e.MANUAL="MANUAL"}(I=t.MESSAGE_HANDLER_SECRET_TYPE||(t.MESSAGE_HANDLER_SECRET_TYPE={})),function(e){e.ERR_702_ACTION_LIMIT="ERR_702",e.ERR_703_ACTION_LIMIT="ERR_703",
e.INFO_USERCAL_CAL_OVERALL_PASSED="INFO_USERCAL_CAL_OVERALL_PASSED",e.INFO_USERCAL_ERROR_NO_INVALIDATION="INFO_USERCAL_ERROR_NO_INVALIDATION",e.ERR_704_UNIT_UNAVAILABLE="ERR_704",e.ERR_710_STARLIMS_WARN_LIMIT="ERR_710",e.INFO_STARLIMS_CAL_OVERALL_PASSED="INFO_STARLIMS_CAL_OVERALL_PASSED",e.ERR_711_STARLIMS_WEIGHING_SERIAL="ERR_711",e.ERR_712_STARLIMS_CAL_SERIAL="ERR_712",e.ERR_713_STARLIMS_WEIGHING_PARAM="ERR_713",e.ERR_714_STARLIMS_CAL_PARAM="ERR_714",e.ERR_715_STARLIMS_ERROR_RESPONSE="ERR_715",e.ERR_716_STARLIMS_NO_CONNECTION="ERR_716",e.ERR_717_STARLIMS_USER_AUTORIZED="ERR_717",e.ERR_718_STARLIMS_NOT_IN_SERVICE="ERR_718",e.ERR_790_GENERIC_DB_ERROR="ERR_790",e.ERR_791_DB_MIGRATION_RUNTIME_ERROR="ERR_791",e.ERR_792_DB_CONN_WORKFLOW_ERROR="ERR_792",e.ERR_793_DB_OPERATION_TIMEOUT_ERROR="ERR_793",e.ERR_794_DB_MIGRATION_UNSUPPORTED_ERROR="ERR_794",e.ERR_795_DB_MIGRATION_FAILED_ERROR="ERR_795",e.ERR_796_DB_CONN_LOST_ERROR="ERR_796",e.ERR_797_DB_CONN_CONFWORKFLOW_ERROR="ERR_797",
e.ERR_798_GENERIC_EXTERNAL_COMM_ERROR="ERR_798",e.ERR_799_GENERIC_INTERNAL_ERROR="ERR_799"}(t.EMsgHandlerMsgs||(t.EMsgHandlerMsgs={})),t.getMessageHandlerOkButtonId=N,t.isMessageHandlerOkButton=function(e){return e.endsWith(a.MESSAGEHANDLER_OK_BTN_ID)};const l={ERR_702:{errorCode:702,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.USER_CAL,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_EXPLICIT_DELETION,secretType:I.MANUAL},ERR_703:{errorCode:703,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.WARNING,category:a.MessageHandlerCategory.USER_CAL,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},INFO_USERCAL_CAL_OVERALL_PASSED:{errorCode:0,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.INFORMATION,category:a.MessageHandlerCategory.USER_CAL,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},INFO_USERCAL_ERROR_NO_INVALIDATION:{errorCode:0,
type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.USER_CAL,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_704:{errorCode:704,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.TASKID},ERR_710:{errorCode:710,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.WARNING,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},INFO_STARLIMS_CAL_OVERALL_PASSED:{errorCode:0,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.INFORMATION,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_711:{errorCode:711,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,
lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_712:{errorCode:712,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_713:{errorCode:713,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_714:{errorCode:714,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_715:{errorCode:715,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_716:{errorCode:716,
type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_717:{errorCode:717,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_718:{errorCode:718,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_790:{errorCode:790,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[a.createMessageHandlerButton(N(790))]},ERR_791:{errorCode:791,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,
lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[a.createMessageHandlerButton(N(791))]},ERR_792:{errorCode:792,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[a.createMessageHandlerButton(N(792))]},ERR_793:{errorCode:793,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[a.createMessageHandlerButton(N(793))]},ERR_794:{errorCode:794,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[a.createMessageHandlerButton(N(794))]},ERR_795:{errorCode:795,
type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[a.createMessageHandlerButton(N(795))]},ERR_796:{errorCode:796,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[a.createMessageHandlerButton(N(796))]},ERR_797:{errorCode:797,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[a.createMessageHandlerButton(N(797))]},ERR_798:{errorCode:798,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_RUNTIME_COMM_ERROR},
ERR_799:{errorCode:799,type:a.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:a.MessageHandlerCategory.QAPP,lifetime:a.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_RUNTIME_EXIT_ERROR}};t.MessageHandlerHelper=class{constructor(e){this.messageHandlerProxy=e}buildSecret(e){switch(e){case I.TASKID:return s.QAppBase.clientSingleton.getTaskId();case I.QAPP:return s.QAppBase.clientSingleton.getQAppOrderNumber();case I.QAPP_DB_ERROR:return s.QAppBase.clientSingleton.getQAppOrderNumber()+I.QAPP_DB_ERROR;case I.QAPP_RUNTIME_COMM_ERROR:return s.QAppBase.clientSingleton.getQAppOrderNumber()+I.QAPP_RUNTIME_COMM_ERROR;case I.QAPP_RUNTIME_EXIT_ERROR:return s.QAppBase.clientSingleton.getQAppOrderNumber()+I.QAPP_RUNTIME_EXIT_ERROR;case I.MANUAL:default:return}}addMessage(e,t,_,a){console.log(`messageHandlerHelper::addMessage: ${e}`);let I=i.createEmptyTextStructure(),N=i.createEmptyTextStructure(),c=i.createEmptyTextStructure(),u=0
;0===l[e].errorCode?(I.id=E+e+o,N.id=E+e+A,c.id=E+e+T):u=l[e].errorCode;let P=[];for(799!==l[e].errorCode&&798!==l[e].errorCode||P.push(s.QAppBase.clientSingleton.getQAppOrderNumber()),790!==l[e].errorCode&&791!==l[e].errorCode&&792!==l[e].errorCode&&793!==l[e].errorCode&&794!==l[e].errorCode&&795!==l[e].errorCode&&796!==l[e].errorCode&&797!==l[e].errorCode||(P.push(s.QAppBase.clientSingleton.getQAppOrderNumber()),P.push(s.QAppBase.clientSingleton.getQAppVersion())),void 0!==t&&("string"==typeof t?(P.push("Error"),P.push(t)):n.isError(t)?r.isHttpRestError(t)?(P.push(`${t.name} (HTTP(s)/${t.statusCode})`),P.push(t.message)):(P.push(t.name),P.push(t.message)):P.push(...t));P.length<4;)P.push("");N.args=P;let p=this.buildSecret(l[e].secretType);return void 0!==p&&(_=p),console.log(`messageHandlerHelper::addMessage: add msg handler msg ${u} with secret ${_}`),
this.messageHandlerProxy.addMessage(u,l[e].type,l[e].category,l[e].lifetime,I,N,c,_||"",a||(l[e].buttons?l[e].buttons:void 0),l[e].showMessageInFutureSeconds?l[e].showMessageInFutureSeconds:void 0)}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(61),n=_(32),s=_(23),r=_(9),E=_(15),o=_(32),A=_(19),T=_(33);t.CFG_PARAMS_ASPECT="CFG_PARAMS_ASPECT",t.STATE_ASPECT_CFG_PARAM_EDIT_ENTER="STATE_ASPECT_CFG_PARAM_EDIT_ENTER",t.STATE_ASPECT_CFG_PARAM_EDIT_REENTER="STATE_ASPECT_CFG_PARAM_EDIT_REENTER";const I="STATE_ASPECT_CFG_PARAM_EDIT",N="STATE_ASPECT_CFG_PARAM_EDIT_USER_ACTION",l="STATE_ASPECT_CFG_PARAM_INSPECT",c="TASK_HANDLER_NO_PARAMETERS";t.ConfigParamsAspect=class extends E.AbstractQAppAspect{constructor(){super(...arguments),this.states={STATE_ASPECT_CFG_PARAM_EDIT_ENTER:{_onEnter:function(e){e.aspects[t.CFG_PARAMS_ASPECT].parametersEmpty()?e.addToEventQueue(new r.ImmediateEvent(c)):e.addToEventQueue(new r.ImmediateEvent(I))},
_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,_){_.payload===I&&this.transition(e,I),_.payload===c&&this.transition(e,e.aspects[t.CFG_PARAMS_ASPECT].cfg.returnState)},"*":function(e){this.deferUntilTransition(e)}},STATE_ASPECT_CFG_PARAM_EDIT_REENTER:{_onEnter:function(e){e.aspects[t.CFG_PARAMS_ASPECT].parametersEmpty()?e.addToEventQueue(new r.ImmediateEvent(c)):e.addToEventQueue(new r.ImmediateEvent(I))},_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,_){_.payload===I&&this.transition(e,I),_.payload===c&&this.transition(e,e.aspects[t.CFG_PARAMS_ASPECT].cfg.returnState)},"*":function(e){this.deferUntilTransition(e)}},STATE_ASPECT_CFG_PARAM_EDIT:{_onEnter:function(e){let _=e.screens[i.PARAM_LIST_SCREENID].getButton(i.FINISH_BUTTON_ID);if(void 0!==_){let i=e.aspects[t.CFG_PARAMS_ASPECT].cfg.isValidFn();_.setAppearance(i?a.EnumAppearance.ENABLED_PRIMARY:a.EnumAppearance.DISABLED)}},_onExit:function(e){},_transTo:{},_transFrom:{
STATE_ASPECT_CFG_PARAM_EDIT_ENTER:function(e,_){let n=e.screens[i.PARAM_LIST_SCREENID];n.readFromTaskhandler(e.aspects[t.CFG_PARAMS_ASPECT].cfg.taskHandler),n.setShowLastVisibleCategory(!1);let s=n.getButton(i.FINISH_BUTTON_ID);if(void 0!==s){let _=e.aspects[t.CFG_PARAMS_ASPECT].cfg.isValidFn();s.setAppearance(_?a.EnumAppearance.ENABLED_PRIMARY:a.EnumAppearance.DISABLED)}n.show()},STATE_ASPECT_CFG_PARAM_EDIT_REENTER:function(e,_){let n=e.screens[i.PARAM_LIST_SCREENID];n.readFromTaskhandler(e.aspects[t.CFG_PARAMS_ASPECT].cfg.taskHandler),n.setShowLastVisibleCategory(!0);let s=n.getButton(i.FINISH_BUTTON_ID);if(void 0!==s){let _=e.aspects[t.CFG_PARAMS_ASPECT].cfg.isValidFn();s.setAppearance(_?a.EnumAppearance.ENABLED_PRIMARY:a.EnumAppearance.DISABLED)}n.show()}},EV_HMI_BTN_CLICKED:function(e,_){_.payload.buttonId===i.FINISH_BUTTON_ID&&e.aspects[t.CFG_PARAMS_ASPECT].cfg.isValidFn()&&this.transition(e,e.aspects[t.CFG_PARAMS_ASPECT].cfg.returnState),
_.payload.buttonId===i.CANCEL_BUTTON_ID&&e.suspend()},EV_HMI_PARAM_CHANGED:function(e,_){let a=e.aspects[t.CFG_PARAMS_ASPECT].updateTaskParameterGeneric(_.payload.parameter),i=[{guardFn:function(e,t){return void 0===a},nextState:""},{guardFn:function(e,t){return void 0!==a},nextState:N}];this.myHandler(e,i,_)},EV_HMI_PARAM_DETAIL:function(e,_){e.aspects[t.CFG_PARAMS_ASPECT].inspectTaskParameter(_.payload.parameter),this.transition(e,l)}},STATE_ASPECT_CFG_PARAM_INSPECT:{_onEnter:function(e){},_onExit:function(e){},_transTo:{},_transFrom:{},EV_HMI_BTN_CLICKED:function(e,t){t.payload.buttonId===n.CANCEL_BUTTON_ID&&this.transition(e,I)}},STATE_ASPECT_CFG_PARAM_EDIT_USER_ACTION:{_onEnter:function(e){},_onExit:function(e){},_transTo:{},_transFrom:{},EV_HMI_BTN_CLICKED:function(e,_){if(_.payload.buttonId===i.CANCEL_BUTTON_ID)e.suspend();else{let a=e.aspects[t.CFG_PARAMS_ASPECT].handleParamUpdateUserActionGeneric(_);"boolean"==typeof a&&a&&this.transition(e,I)}}}},
this.currentParamUpdateUserAction=void 0,this.isLastUserActionGenericError=!1}getId(){return t.CFG_PARAMS_ASPECT}getAspectStates(){return this.states}init(e){if(this.client=e,this.client){console.log("ConfigParamAspect::init");let e=new i.ParameterListScreen(this.client.mqttHandler);this.client.registerScreen(e)}else console.log("ConfigParamAspect::init - aspect not correctly initialized (no client set) - skip init")}publishParameter(e){void 0!==this.client&&this.client.screens[i.PARAM_LIST_SCREENID]&&this.client.screens[i.PARAM_LIST_SCREENID].updateParameter(e)}setCurrentParamUpdateUserAction(e){e?this.updateMessageBoxFromActionMessageAndShow(e.message):this.currentParamUpdateUserAction&&this.client.hideMsgBox(),this.currentParamUpdateUserAction=e}getCurrentParamUpdateUserAction(){return this.currentParamUpdateUserAction}updateTaskParameterGeneric(e){console.log("ConfigParamAspect: updateTaskParameterGeneric");let t=void 0;!0!==e.suppressLibRuleChecks&&(t=T.checkGeneralParamRules(e)),
void 0!==t?this.isLastUserActionGenericError=!0:(this.isLastUserActionGenericError=!1,t=this.cfg.updateTaskParameterFn(e)),this.setCurrentParamUpdateUserAction(t);let _=this.client.screens[i.PARAM_LIST_SCREENID].getButton(i.FINISH_BUTTON_ID);return void 0!==_&&_.setAppearance(this.cfg.isValidFn()?a.EnumAppearance.ENABLED_PRIMARY:a.EnumAppearance.DISABLED),t}handleParamUpdateUserActionGeneric(e){console.log("ConfigParamsAspect: handleParamUpdateUserActionGeneric");let t=!1,_=this.getCurrentParamUpdateUserAction();return _?(this.isLastUserActionGenericError&&e.payload.buttonId===s.ParamUpdateUserActionSimpleAccept_OK_BUTTON_ID?(this.isLastUserActionGenericError=!1,t=!0):t=this.cfg.handleParamUpdateUserActionFn(_,e),("boolean"==typeof t&&t||"object"==typeof t)&&(console.log("action handled"),this.setCurrentParamUpdateUserAction(void 0)),"object"==typeof t&&(console.log("new action present"),
this.setCurrentParamUpdateUserAction(t))):this.client.exitError("ConfigParamsAspect: handleParamUpdateUserActionGeneric - called in state, although no action set"),t}updateMessageBoxFromActionMessageAndShow(e){this.client.showMessageBox(e)}inspectTaskParameter(e){if(this.cfg.getDetailForTaskParameterFn){let t=this.cfg.getDetailForTaskParameterFn(e);this.showDetailTaskParameter(t)}else console.log("Error: Inspect parameter was clicked, but no getDetailForTaskParameterFn was configured in ConfigParamsAspect")}showDetailTaskParameter(e){let t=new o.default(this.client.mqttHandler);t.setTitle(e.title.id,e.title.args),t.setAppearance(a.EnumAppearance.HIDDEN);let _=[];for(const t of e.params){let e=new A.default(this.client.mqttHandler,t);e.publish(),_.push(e.getPublishedId())}t.setParams(_),t.show()}parametersEmpty(){let e=this.cfg.taskHandler.getTaskGroupsAndParameters(),t=!0;for(let _ of e)for(let e of _.parameters)e.appearance!==a.EnumAppearance.HIDDEN&&(t=!1);return t}}
},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(24);class i{static roundExactToDecimals(e,t){return this.nTimesTen(this.roundExact(this.nTimesTen(e,t)),-1*t)}static roundExact(e){return e=e>=0?Math.floor(e+.5+Number.EPSILON):Math.ceil(e-.5-Number.EPSILON)}static nTimesTen(e,t){return a.bignumber(e).times(i.decPowers(t)).toNumber()}static countDecimals(e){return a.bignumber(e).decimalPlaces()}static decPowers(e){switch(e){case-15:return 1e-15;case-14:return 1e-14;case-13:return 1e-13;case-12:return 1e-12;case-11:return 1e-11;case-10:return 1e-10;case-9:return 1e-9;case-8:return 1e-8;case-7:return 1e-7;case-6:return 1e-6;case-5:return 1e-5;case-4:return 1e-4;case-3:return.001;case-2:return.01;case-1:return.1;case 0:return 1;case 1:return 10;case 2:return 100;case 3:return 1e3;case 4:return 1e4;case 5:return 1e5;case 6:return 1e6;case 7:return 1e7;case 8:return 1e8;case 9:return 1e9;case 10:return 1e10;case 11:return 1e11;case 12:return 1e12
;case 13:return 1e13;case 14:return 1e14;case 15:return 1e15;default:return Math.pow(10,e)}}}t.SartoMath=i},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let a=_(72);t.STATE_UNINITIALIZED_INTERNAL="STATE_UNINITIALIZED_INTERNAL",t.createFsm=function(e){return new a.BehavioralFsm({namespace:"_qappStm_",states:{STATE_UNINITIALIZED_INTERNAL:{_onEnter:function(e){console.log("FSM: enter STATE_UNINITIALIZED_INTERNAL state")},_onExit:function(e){console.log("FSM: exit STATE_UNINITIALIZED_INTERNAL state")},_transTo:{},_transFom:{},_START_FSM_:function(e,t){this.transition(e,t)},"*":function(e){this.deferUntilTransition(e)}}},initialize:function(t){Object.assign(t.states,t.states,e)},initialState:t.STATE_UNINITIALIZED_INTERNAL,myHandler:function(e,t,_){let a;t.some(function(t){return a=t.nextState,t.guardFn(e,_)})&&a&&this.transition(e,a)}})}},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("http")},function(e,t,_){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});const a=_(5),i=_(6);t.LocalizerProxy=class extends a.BaseProxy{constructor(){super(...arguments),this.restEndpoint="localizer"}getLanguage(){let e;return this.body.method=i.RestMethodsLOCALIZER.getLanguage,this.body.params={rLanguageId:""},(e=new a.CubisRestResponse(this.syncRequest())).isSuccess()?e.rawReturns.rLanguageId:""}getText(e,t=[]){let _;return this.body.method=i.RestMethodsLOCALIZER.getText,this.body.params={id:e,rText:"",args:t},(_=new a.CubisRestResponse(this.syncRequest())).isSuccess()?_.rawReturns.rText:e}getTexts(e){let t;return this.body.method=i.RestMethodsLOCALIZER.getTexts,this.body.params={textObjects:e,rTexts:""},(t=new a.CubisRestResponse(this.syncRequest())).isSuccess()?JSON.parse(t.rawReturns.rTexts):[]}}},function(e,t){e.exports=require("child_process")},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(5),i=_(6);!function(e){e.EVENT_RESTART="restart"
}(t.EnumTaskManagementEvent||(t.EnumTaskManagementEvent={}));class n extends a.CubisRestResponse{constructor(e){super(e)}getErrorList(){return JSON.parse(this.rawReturns.errorList)}}t.TaskValCreaUpdResponse=n;t.TaskProxy=class extends a.BaseProxy{constructor(){super(...arguments),this.restEndpoint="task/management"}getTaskTemplate(){let e,t;return this.body.method=i.RestMethodsTASK_MANAGEMENT.getTaskTemplate,this.body.params={taskTemplate:{}},e=new a.CubisRestResponse(this.syncRequest()),t=JSON.parse(e.rawReturns.taskTemplate)}readTask(e,t=!0){let _,n;if(this.body.method=i.RestMethodsTASK_MANAGEMENT.readTask,this.body.params={document:{},dbId:e,updateOptions:t},!(_=new a.CubisRestResponse(this.syncRequest())).isSuccess())throw new Error("Error reading task with id '"+e+"'");return n=JSON.parse(_.rawReturns.document)}getTaskName(e){try{let t=this.readTask(e).params.find(e=>"TASK/IDENTIFICATION"===e.id);if(void 0!==t){let e=t.parameters.find(e=>"TASK/IDENTIFICATION/NAME"===e.id)
;if(void 0!==e)return e.value.string}return}catch(e){return}}createTask(e){return this.body.method=i.RestMethodsTASK_MANAGEMENT.createTask,this.body.params={task:JSON.stringify(e),errorList:[]},new n(this.syncRequest())}updateTask(e){return this.body.method=i.RestMethodsTASK_MANAGEMENT.updateTask,this.body.params={task:JSON.stringify(e),errorList:[]},new n(this.syncRequest())}validateTask(e){return this.body.method=i.RestMethodsTASK_MANAGEMENT.validate,this.body.params={task:JSON.stringify(e),errorList:[]},new n(this.syncRequest())}saveWorkstate(e,t){let _;if(this.body.method=i.RestMethodsTASK_MANAGEMENT.saveWorkstate,this.body.params={id:t,workstate:e},!(_=new a.CubisRestResponse(this.syncRequest())).isSuccess())throw new Error("Error saving workstate with id '"+t+"'");return _}deleteWorkstate(e){let t;if(this.body.method=i.RestMethodsTASK_MANAGEMENT.deleteWorkstate,this.body.params={id:e},
!(t=new a.CubisRestResponse(this.syncRequest())).isSuccess())throw new Error("Error deleting workstate with id '"+e+"'");return t}getWorkstate(e){let t,_;if(this.body.method=i.RestMethodsTASK_MANAGEMENT.getWorkstate,this.body.params={id:e,workstate:{}},!(t=new a.CubisRestResponse(this.syncRequest())).isSuccess())throw new Error("Error reading task with id '"+e+"'");return _=JSON.parse(t.rawReturns.workstate).workstate}getTaskNamesByOrderNumber(e){let t;if(this.body.method=i.RestMethodsTASK_MANAGEMENT.getTaskNamesByOrderNumber,this.body.params={orderNumber:e,taskNames:[]},(t=new a.CubisRestResponse(this.syncRequest())).isSuccess())return JSON.parse(t.rawReturns.taskNames);throw new Error("Error getting used taskNames for '"+e+"'")}setTaskEvent(e,t){let _;console.log(`TaskManagementProxy: send event: '${t}'`),this.body.method=i.RestMethodsTASK_MANAGEMENT.setTaskEvent,this.body.params={taskId:e,event:t};try{return(_=new a.CubisRestResponse(this.syncRequest())).isSuccess()}catch(e){
return console.log("Something went wrong when calling sendTaskEvent"),console.log(e),!1}}}},function(e,t){e.exports=require("rxjs")},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(27),n=_(1),s=_(36);class r{constructor(e){this.task=e||void 0}splitParamId(e){let t=e.split("/");return t.length>1&&(t[0]=`${t[0]}/${t[1]}`,t.splice(1,1)),t}setTask(e){this.task=e}getTaskGroupsAndParameters(){return this.task?this.task.params:[]}getTask(){return this.task}updateGroup(e){if(!this.task)return!1;return!!this.task.params.some((t,_)=>!!this.task&&(t.id===e.id&&(this.task.params[_]=e,!0)))&&(console.log(`Group ${e.id} updated!`),!0)}updateParameter(e){let t=this.splitParamId(e.id)[0];return!!this.task&&(!!this.task.params.some((_,a)=>{if(_.id===t)return _.parameters.some((t,_)=>!(t.id!==e.id||!this.task)&&(this.task.params[a].parameters[_]=e,!0))})&&(console.log(`Parameter ${e.id} updated!`),!0))}getGroup(e){let t
;if(this.task)return(t=this.task.params.find(t=>t.id===e))||void console.log(`Group ${e} not found!`)}getParameter(e){let t,_=this.splitParamId(e)[0];if(this.task)return this.task.params.find(a=>a.id===_&&(t=a.parameters.find(t=>t.id===e),!0)),t||void console.log(`Parameter ${e} not found!`)}addDynamicGroup(e){if(!this.task)return!1;if(!e.id.startsWith(s.DYNAMIC_PARAMID_PREQUEL))return console.log(`GroupId does not start with '${s.DYNAMIC_PARAMID_PREQUEL}'`),!1;if(e.id.includes("/",s.DYNAMIC_PARAMID_PREQUEL.length))return console.log('No additional "/" allowed in the name of a dynamic group!',e.id),!1;if(this.task.params.some(t=>t.id===e.id))return console.log("The DynamicGroup already exists!",e.id),!1;e.parameters.forEach(t=>{t.id.startsWith(e.id)||(console.log(`parameterId starts with parameterName only. Extend parameterId with own groupId '${e.id}'.`),t.id=e.id+"/"+t.id)});let t=!1
;for(let _=0;_<this.task.params.length;_++)if(this.task.params[_].id.startsWith(i.TASK_DYNAMIC_ID_GROUPS_PREFIX)||!this.task.params[_].id.startsWith(s.DYNAMIC_PARAMID_PREQUEL)){this.task.params.splice(_,0,e),t=!0;break}return t||this.task.params.push(e),!0}addDynamicParameter(e){let t="";if(this.getParameter(e.id))return this.updateParameter(e),!0;{t=this.splitParamId(e.id)[0];let _=this.getGroup(t);if(_)return _.parameters.push(e),!0}return!1}addDynamicParameterToFront(e){let t="";if(this.getParameter(e.id))return this.updateParameter(e),!0;{t=this.splitParamId(e.id)[0];let _=this.getGroup(t);if(_)return _.parameters.unshift(e),!0}return!1}addDynamicParameterInFrontOf(e,t){let _=this.splitParamId(e.id)[0],a=this.splitParamId(t)[0];if(_===a){let a=this.getGroup(_);if(void 0!==a){let _=a.parameters.findIndex(e=>e.id===t);if(-1!==_)return a.parameters.splice(_,0,e),!0}}return console.log("addDynamicParameterInFrontOf - groups of new and existing parameter do not match: "+_+" vs. "+a),!1}
static sortGroup(e){let t=e.parameters.map(function(e,t){return{idx:t,data:e}});t.sort((e,t)=>{if((void 0===e.data.fixed||!0===e.data.fixed)>(void 0===t.data.fixed||!0===t.data.fixed))return 1;if((void 0===e.data.fixed||!0===e.data.fixed)<(void 0===t.data.fixed||!0===t.data.fixed))return-1;if(!(void 0!==e.data.fixed&&!0!==e.data.fixed||void 0!==t.data.fixed&&!0!==t.data.fixed)){if((e.data.appearance===a.EnumAppearance.ENABLED||e.data.appearance===a.EnumAppearance.ENABLED_INVALID_CFG)<(t.data.appearance===a.EnumAppearance.ENABLED||t.data.appearance===a.EnumAppearance.ENABLED_INVALID_CFG))return 1;if((e.data.appearance===a.EnumAppearance.ENABLED||e.data.appearance===a.EnumAppearance.ENABLED_INVALID_CFG)>(t.data.appearance===a.EnumAppearance.ENABLED||t.data.appearance===a.EnumAppearance.ENABLED_INVALID_CFG))return-1}return e.idx-t.idx}),e.parameters=t.map(function(e){return e.data})}getFilteredTask(){let e,t
;return this.task&&((t=(e=n.cloneJSON(this.task)).params.filter(e=>e.id.startsWith(s.DYNAMIC_PARAMID_PREQUEL))).forEach(e=>{e.id.startsWith(i.TASK_DYNAMIC_ID_GROUPS_PREFIX)?e.parameters.forEach((e,t)=>{e.appearance=a.EnumAppearance.HIDDEN}):(e.parameters.forEach((e,t)=>{void 0!==e.fixed&&!0!==e.fixed||e.appearance===a.EnumAppearance.HIDDEN||(e.appearance=a.EnumAppearance.DISABLED)}),r.sortGroup(e),e.parameters.forEach((e,t)=>{void 0!==e.fixed&&delete e.fixed}))}),e.params=t),e}}t.TaskHandler=r},function(e,t){e.exports=require("path")},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(5),i=_(3),n=_(6);!function(e){e.TEX_RUNNEWTEST="TEX_RUNNEWTEST",e.TEX_RESTARTLASTTEST="TEX_RESTARTLASTTEST",e.SETTINGS="SETTINGS",e.PRG_VIEWNPRINT="PRG_VIEWNPRINT",e.PRG_CREATENEDIT="PRG_CREATENEDIT",e.PRG_DELETE="PRG_DELETE",e.PRG_IMPORTEXPORT="PRG_IMPORTEXPORT",e.RSL_VIEWNPRINT="RSL_VIEWNPRINT",e.RSL_APPROVAL="RSL_APPROVAL",e.RSL_DELETE="RSL_DELETE",
e.RSL_IMPORTEXPORT="RSL_IMPORTEXPORT",e.MAINTENANCE="MAINTENANCE",e.QFC_IQOQ="QFC_IQOQ",e.QFC_PQ="QFC_PQ",e.QFC_RESULTAPPROVAL="QFC_RESULTAPPROVAL",e.ATR_VIEW="ATR_VIEW",e.ATR_EXPORT="ATR_EXPORT",e.CREATE_UPDATE_DELETE_USER="CREATE_UPDATE_DELETE_USER",e.CREATE_UPDATE_DELETE_TASK="CREATE_UPDATE_DELETE_TASK",e.ACCESS_QAPP_CENTER="ACCESS_QAPP_CENTER",e.SETUP_MENU_ACCESS="SETUP_MENU_ACCESS"}(t.EnumUserRights||(t.EnumUserRights={})),function(e){e.ADMIN_ROLE_ID="adminRoleDbId",e.SERVICE_ROLE_ID="serviceRoleDbId",e.OPERATOR_ROLE_ID="operatorRoleDbId",e.GUEST_ROLE_ID="guestRoleDbId"}(t.EnumRoleDbIds||(t.EnumRoleDbIds={}));t.AccessControlProxy=class extends a.BaseProxy{constructor(){super(...arguments),this.restEndpoint="access"}getCurrentUser(){let e,t;return this.body.method=n.RestMethodsACCESS_MANAGEMENT.getCurrentUser,this.body.params={user:""},e=new a.CubisRestResponse(this.syncRequest()),t=JSON.parse(e.rawReturns.user)}getCurrentUserName(e){let t,_=""
;return(t=void 0!==e?e:this.getCurrentUser()).params.find(e=>"USER/SETTINGS"===e.id&&e.parameters.find(e=>"USER/SETTINGS/NAME"===e.id&&(_=e.value.string,!0))),_}getCurrentUserRoles(e){let t;t=void 0!==e?e:this.getCurrentUser();let _=i.createEmptySelectionParameter();return t.params.find(e=>"USER/SETTINGS"===e.id&&e.parameters.find(e=>"USER/SETTINGS/ROLES"===e.id&&(_=e,!0))),_}checkRightsOfCurrentUser(e){let t;return this.body.method=n.RestMethodsACCESS_MANAGEMENT.checkRightsOfCurrentUser,this.body.params={permissionGranted:!1,arrayOfRightsToCheck:e},(t=new a.CubisRestResponse(this.syncRequest())).rawReturns.permissionGranted}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(5),i=_(3),n=_(14),s=_(2),r=_(6);var E;!function(e){e.STABLE="STABLE",e.CANCELED="CANCELED"}(t.ReportingPrintableValueStateEnum||(t.ReportingPrintableValueStateEnum={})),function(e){e.wrongAlibiId="No alibi entry exists for this alibi id.",
e.wrongTopic="Weighing topic not found for this alibi entry.",e.getAlibiListFailed="The rest call to get the Alibilist has failed!"}(E=t.AlibiEntryError||(t.AlibiEntryError={})),t.isAlibiEntryError=function(e){return e===E.wrongAlibiId||e===E.wrongTopic||e===E.getAlibiListFailed},t.REPORTING_CATEGORY_NONE="",t.REPORTING_CATEGORY_INIT="_QAPP_LIB_REPORTING_CATERGORY_INIT",t.REPORTING_CATEGORY_COMPONENTS="_QAPP_LIB_REPORTING_CATERGORY_COMPONENTS",t.REPORTING_CATEGORY_RESULT="_QAPP_LIB_REPORTING_CATERGORY_RESULT",t.REPORTING_CATEGORY_STATISTIC="_QAPP_LIB_REPORTING_CATERGORY_STATISTIC";class o extends a.CubisRestResponse{constructor(e){super(e)}getPrintItemIdentifier(){return this.rawReturns.printItemIdentifier}}t.ReportingPrintParamResponse=o;t.ReportingProxy=class extends a.BaseProxy{constructor(){super(...arguments),this.restEndpoint="reporting",this._isPrintQueueEmpty=!0}printParameters(e,t,_,a=-1){this.body.method=r.RestMethodsREPORTING.printParameters,this.body.params={
parameters:JSON.stringify(e),category:t,redactable:_,printItemIdentifier:a};let i=new o(this.syncRequest());return i.isSuccess()&&(this._isPrintQueueEmpty=!1),i}printPrintQueue(){return this.body.method=r.RestMethodsREPORTING.printPrintQueueWithElectronicSignature,this.body.params={},new a.CubisRestResponse(this.syncRequest())}printParametersDirect(e,t,_){return this.body.method=r.RestMethodsREPORTING.printParametersDirect,this.body.params={parameters:JSON.stringify(e),category:t,silent:_},new a.CubisRestResponse(this.syncRequest())}getPrintQueue(){return this.body.method=r.RestMethodsREPORTING.getPrintQueue,this.body.params={printQueue:{}},new a.CubisRestResponse(this.syncRequest())}isPrintQueueEmpty(){let e;this.body.method=r.RestMethodsREPORTING.isPrintQueueEmpty,this.body.params={rResult:!1};try{return!!(e=new a.CubisRestResponse(this.syncRequest())).isSuccess()&&e.rawReturns.rResult}catch(e){return console.log("Something went wrong when calling isPrintQueueEmpty"),console.log(e),
this._isPrintQueueEmpty}}clearPrintQueue(){this.body.method=r.RestMethodsREPORTING.clearPrintQueue,this.body.params={};let e=new a.CubisRestResponse(this.syncRequest());return e.isSuccess()&&(this._isPrintQueueEmpty=!0),console.log("clearPrintQueue() result: "+e.isSuccess()),e}requestPrintableValue(e){return this.body.method=r.RestMethodsREPORTING.requestPrintableValueComment,this.body.params={comment:e},new a.CubisRestResponse(this.syncRequest())}setRedactionStatus(e,t,_){return this.body.method=r.RestMethodsREPORTING.setRedactionStatus,this.body.params={printItemIdentifier:e,redacted:t,reason:_},new a.CubisRestResponse(this.syncRequest())}getAlibiRecord(e){return this.body.method=r.RestMethodsREPORTING.getAlibiRecord,this.body.params={identifier:e,record:""},new a.CubisRestResponse(this.syncRequest())}getAlibiRecordList(e){return this.body.method=r.RestMethodsREPORTING.getAlibiRecordList,this.body.params={identifiers:e,records:[]},new a.CubisRestResponse(this.syncRequest())}
getDateFromAlibi(e){let t;if(e instanceof a.CubisRestResponse){if(!e.isSuccess())return E.getAlibiListFailed;t=JSON.parse(e.rawReturns.record)}else{if("number"==typeof e){let t=this.getAlibiRecord(e);return t.isSuccess()?JSON.parse(t.rawReturns.record).timestamp:E.wrongAlibiId}t=e}return t.timestamp}getWeightFromAlibi(e,t){let _;if(e instanceof a.CubisRestResponse){if(!e.isSuccess())return E.getAlibiListFailed;_=JSON.parse(e.rawReturns.record)}else if("number"==typeof e){let t=this.getAlibiRecord(e);if(!t.isSuccess())return E.wrongAlibiId;_=JSON.parse(t.rawReturns.record)}else _=e;return this.parseMeasureParameterFromAlibiResponse(_,t)}getWeightFromAlibiList(e,t){let _=[],i=[];if(e instanceof a.CubisRestResponse){if(!e.isSuccess())return E.getAlibiListFailed;i=JSON.parse(e.rawReturns.records)}else if(0!==(n=e).length&&"number"!=typeof n[0])i=e;else{let t=this.getAlibiRecordList(e);if(!t.isSuccess())return E.getAlibiListFailed;i=JSON.parse(t.rawReturns.records)}var n
;return i.forEach(e=>{_=[..._,this.parseMeasureParameterFromAlibiResponse(e,t)]}),_}parseMeasureParameterFromAlibiResponse(e,t){let _=i.createEmptyParameterGroupOfGroups();if(null===e)return E.wrongAlibiId;{_.parameters[0].parameters=JSON.parse(e.weighingblock);let a=n.WeightBlockHelper.getMeasureParameter(_,t||s.MqttTopics.WEIGHING_VALUE_NET);return void 0===a?E.wrongTopic:a}}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(81),n=_(2),s=1;t.CheckBarGraph=class{constructor(e){this.barGraphStatusObject={appearance:a.EnumAppearance.HIDDEN,areas:i.EnumAreaCount.FOUR_AREAS},this.barGraphValueObject={area:1,perc:0},this.mqttHandler=e}publishValue(){this.mqttHandler.publish(n.MqttTopics.HMI_CHECKBARGRAPH_VALUE,JSON.stringify(this.barGraphValueObject))}publishStatus(){this.mqttHandler.publish(n.MqttTopics.HMI_CHECKBARGRAPH_STATUS,JSON.stringify(this.barGraphStatusObject))}setAppearance(e,t=!0){
this.barGraphStatusObject.appearance!==e&&(e!==a.EnumAppearance.ENABLED&&e!==a.EnumAppearance.HIDDEN||(this.barGraphStatusObject.appearance=e,t&&(this.publishStatus(),this.publishValue())))}getAppearance(){return this.barGraphStatusObject.appearance}setAreas(e,t=!0){this.barGraphStatusObject.areas!==e&&(e!==i.EnumAreaCount.FOUR_AREAS&&e!==i.EnumAreaCount.SIX_AREAS||(this.barGraphStatusObject.areas=e,t&&this.publishStatus()))}getAreas(){return this.barGraphStatusObject.areas}setAreaPerc(e,t=!0){this.barGraphValueObject.area===e.area&&this.barGraphValueObject.perc===e.perc||e.area>=s&&e.area<=(this.barGraphStatusObject.areas===i.EnumAreaCount.FOUR_AREAS?4:6)&&(this.barGraphValueObject=e,t&&this.publishValue())}calc4AreaPerc(e,t,_,a,i,n=!0){let s=1,r=0;return e>0&&(0<e&&e<t?(s=1,r=e/t*100):t<=e&&e<=i?(s=2,r=(e-t)/(i-t)*100):i<e&&e<=_?(s=3,r=(e-i)/(_-i)*100):_<e&&e<=a&&(s=4,r=(e-_)/(a-_)*100)),n&&this.setAreaPerc({area:s,perc:r}),{area:s,perc:r}}calc6AreaPerc(e,t,_,a,i,n,s,r=!0){
let E=1,o=0;return e>0&&(0<e&&e<t?(E=1,o=e/t*100):t<=e&&e<_?(E=2,o=(e-t)/(_-t)*100):_<=e&&e<=s?(E=3,o=(e-_)/(s-_)*100):s<e&&e<=a?(E=4,o=(e-s)/(a-s)*100):a<e&&e<=i?(E=5,o=(e-a)/(i-a)*100):i<e&&e<=n&&(E=6,o=(e-i)/(n-i)*100)),this.setAreaPerc({area:E,perc:o},r),{area:E,perc:o}}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(15),i=_(39),n=_(19),s=_(0),r=_(9),E=_(27),o=_(7),A=_(10),T=_(66),I=_(12),N=_(23),l=_(33),c=_(1),u=_(3);t.IDENTIFIER_ASPECT="IDENTIFIER_ASPECT",t.STATE_ASPECT_IDENTIFIER_PREFIX="STATE_ASPECT_IDENTIFIER",t.STATE_ASPECT_IDENTIFIER_ENTER_LOT_INPUT=t.STATE_ASPECT_IDENTIFIER_PREFIX+"_ENTER_LOT_INPUT",t.STATE_ASPECT_IDENTIFIER_ENTER_SID_INPUT=t.STATE_ASPECT_IDENTIFIER_PREFIX+"_ENTER_SID_INPUT";const P=t.STATE_ASPECT_IDENTIFIER_PREFIX+"_LOT_INPUT_DO",p=t.STATE_ASPECT_IDENTIFIER_PREFIX+"_SID_INPUT_DO";t.IDENTIFIER_MAX_LENGTH_LID_SID_VALUE=T.LID_SID_USER_INPUT_STRING_VALUES,t.IDENTIFIER_MAX_LENGTH_LID_SID_NUMBER_VALUE=15
;const S=0,d="-1";t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_OK="BTN_ID_ASP_ID_A_INC_WARN_OK",t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_YES="BTN_ID_ASP_ID_A_INC_WARN_YES",t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_NO="BTN_ID_ASP_ID_A_INC_WARN_NO";const R="PARAM_ID_RT_LOT",O="PARAM_ID_RT_SID",L="PARAM_ID_RT_IDENTIFIER_INP";class D extends a.AbstractQAppAspect{constructor(){super(),this.states={STATE_ASPECT_IDENTIFIER_ENTER_LOT_INPUT:{_onEnter:function(e){let _=e.aspects[t.IDENTIFIER_ASPECT];_.inputIdx=0,_.evalLotInput()?(console.log("IdentifierAspect - at least one (more) LID configured"),e.addToEventQueue(new r.ImmediateEvent({from:t.STATE_ASPECT_IDENTIFIER_ENTER_LOT_INPUT,to:P}))):(console.log("IdentifierAspect - no (further) LIDs configured"),e.addToEventQueue(new r.ImmediateEvent({from:t.STATE_ASPECT_IDENTIFIER_ENTER_LOT_INPUT,to:_.cfg.returnState})))},_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,_){
_.payload.from===t.STATE_ASPECT_IDENTIFIER_ENTER_LOT_INPUT&&this.transition(e,_.payload.to)}},STATE_ASPECT_IDENTIFIER_LOT_INPUT_DO:{_onEnter:function(e){},_onExit:function(e){e.screens[i.KEYBOARD_SCREEN_ID].hide()},_transTo:{},_transFrom:{},EV_HMI_PARAM_CHANGED:function(e,_){console.log("IdentifierAspect - param change in STATE_ASPECT_IDENTIFIER_LOT_INPUT_DO");let a=e.aspects[t.IDENTIFIER_ASPECT];if(_.payload.parameter.id===L+a.inputIdx){let t=l.checkGeneralParamRules(_.payload.parameter),n=_.payload.parameter.value.string;void 0===t?(a.setLotID(a.inputIdx,n),a.inputIdx++,a.evalLotInput()||(console.log("IdentifierAspect - no (further) LIDs configured"),this.transition(e,a.cfg.returnState))):(e.showMessageBox(t.message),a.sPIn_4_identifier.value.string=n,a.client.screens[i.KEYBOARD_SCREEN_ID].setParam(a.sPIn_4_identifier))}},EV_HMI_BTN_CLICKED:function(e,t){t.payload.buttonId===N.ParamUpdateUserActionSimpleAccept_OK_BUTTON_ID&&e.hideMsgBox()}},STATE_ASPECT_IDENTIFIER_ENTER_SID_INPUT:{
_onEnter:function(e){let _=e.aspects[t.IDENTIFIER_ASPECT];_.inputIdx=0,_.evalSidInput()?(console.log("IdentifierAspect - at least one (more) SID configured"),e.addToEventQueue(new r.ImmediateEvent({from:t.STATE_ASPECT_IDENTIFIER_ENTER_SID_INPUT,to:p}))):(console.log("IdentifierAspect - no (further) SIDs configured"),e.addToEventQueue(new r.ImmediateEvent({from:t.STATE_ASPECT_IDENTIFIER_ENTER_SID_INPUT,to:_.cfg.returnState})))},_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,_){_.payload.from===t.STATE_ASPECT_IDENTIFIER_ENTER_SID_INPUT&&this.transition(e,_.payload.to)}},STATE_ASPECT_IDENTIFIER_SID_INPUT_DO:{_onEnter:function(e){},_onExit:function(e){e.screens[i.KEYBOARD_SCREEN_ID].hide();let _=e.aspects[t.IDENTIFIER_ASPECT];_.cfg.autoRememberSIDs&&(_.sIDsPrevSample=_.sIDs)},_transTo:{},_transFrom:{},EV_HMI_PARAM_CHANGED:function(e,_){console.log("IdentifierAspect - param change in STATE_ASPECT_IDENTIFIER_SID_INPUT_DO");let a=e.aspects[t.IDENTIFIER_ASPECT]
;if(_.payload.parameter.id===L+a.inputIdx){let t=l.checkGeneralParamRules(_.payload.parameter),n=_.payload.parameter.value.string;if(void 0===t){a.setSID(a.inputIdx,n);let t=D.getSIDState(a.inputIdx,a.getTaskHandler());if(t===E.EnumSampleIdentifierOptions.ON_AUTO_INC||t===E.EnumSampleIdentifierOptions.ON_AUTO_DEC){let s=t===E.EnumSampleIdentifierOptions.ON_AUTO_INC,r=C(s,_.payload.parameter.value.string);r.success?this.transition(e,a.sIdInputDone()):(a.sPIn_4_identifier.value.string=n,a.client.screens[i.KEYBOARD_SCREEN_ID].setParam(a.sPIn_4_identifier),a.client.showMessageBox(m(s,r.result,!0)))}else this.transition(e,a.sIdInputDone())}else e.showMessageBox(t.message),a.sPIn_4_identifier.value.string=n,a.client.screens[i.KEYBOARD_SCREEN_ID].setParam(a.sPIn_4_identifier)}},EV_HMI_BTN_CLICKED:function(e,_){let a=e.aspects[t.IDENTIFIER_ASPECT];_.payload.buttonId===t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_OK?(e.screens[i.KEYBOARD_SCREEN_ID].show(),
e.hideMsgBox()):_.payload.buttonId===N.ParamUpdateUserActionSimpleAccept_OK_BUTTON_ID?e.hideMsgBox():_.payload.buttonId===t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_YES?(e.hideMsgBox(),this.transition(e,a.sIdInputDone())):_.payload.buttonId===t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_NO&&e.hideMsgBox()}}},this.sP_4_lotA=[],this.sP_4_sidA=[],this.lotIDs=[],this.sIDs=[],this.sIDsPrevSample=void 0,this.inputIdx=0,this.cfgGroupCnt=void 0,this.cfgGroupLID=void 0,this.cfgGroupSID=void 0,this.sPIn_4_identifier=u.createEmptyStringParameter()}getId(){return t.IDENTIFIER_ASPECT}getAspectStates(){return this.states}static getConfiguredLIDCount(e){let t=e.getParameter(E.TASK_DYNAMIC_ID_LID_CNT_PARAM_ID);return void 0!==t?E.getConfiguredIds(t):0}static getConfiguredSIDCount(e){let t=e.getParameter(E.TASK_DYNAMIC_ID_SID_CNT_PARAM_ID);return void 0!==t?E.getConfiguredIds(t):0}static createLIDParams(e,_,a){let i=[],r=D.getConfiguredLIDCount(a)
;console.log("IdentifierAspect::createLIDParams: create params for "+r+" LIDs");for(let o=1;o<=r;o++){let r=a.getParameter(E.createLIDParamId(o,E.TASK_DYNAMIC_ID_LID_X_PARAM_ID_SUFFIX_TITLE)),A=a.getParameter(E.createLIDParamId(o,E.TASK_DYNAMIC_ID_LID_X_PARAM_ID_SUFFIX_HEADER)),T=u.createEmptyStringParameter();T.id=R+o+(e?"_"+e:""),T.appearance=s.EnumAppearance.HIDDEN,T.title={id:r.value.string,args:[]},T.header={id:A.value.string,args:[]},T.info={minimum:{length:0},maximum:{length:t.IDENTIFIER_MAX_LENGTH_LID_SID_VALUE}},i.push(new n.default(_,T))}return i}static createSIDParams(e,_,a){let i=[],r=D.getConfiguredSIDCount(a);console.log("IdentifierAspect::createSIDParams: create params for "+r+" SIDs");for(let o=1;o<=r;o++){let r=a.getParameter(E.createSIDParamId(o,E.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_TITLE)),A=a.getParameter(E.createSIDParamId(o,E.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_HEADER)),T=u.createEmptyStringParameter();T.id=O+o+(e?"_"+e:""),
T.appearance=s.EnumAppearance.HIDDEN,T.title={id:r.value.string,args:[]},T.header={id:A.value.string,args:[]},T.info={minimum:{length:0},maximum:{length:t.IDENTIFIER_MAX_LENGTH_LID_SID_VALUE}},i.push(new n.default(_,T))}return i}init(e){if(this.client=e,this.client){if(console.log("IdentifierAspect::init"),!this.client.screens[i.KEYBOARD_SCREEN_ID]){let e=new i.KeyboardScreen(this.client.mqttHandler);this.client.registerScreen(e)}this.sPIn_4_identifier=u.createEmptyStringParameter(),this.sPIn_4_identifier.id=L,this.sPIn_4_identifier.appearance=s.EnumAppearance.ENABLED,this.sPIn_4_identifier.title={id:"",args:[]},this.sPIn_4_identifier.header={id:"",args:[]},this.sPIn_4_identifier.info={isNoValueAllowed:!0,minimum:{length:0},maximum:{autoCut:!1,length:t.IDENTIFIER_MAX_LENGTH_LID_SID_VALUE}}}else console.log("IdentifierAspect::init - aspect not correctly initialized (no client set) - skip init")}configure(e){super.configure(e),
void 0===this.cfg.showPreviouslySetLIDs&&(this.cfg.showPreviouslySetLIDs=!1);let t=this.getTaskHandler().getGroup(E.TASK_DYNAMIC_ID_CNT_GROUP_ID),_=this.getTaskHandler().getGroup(E.TASK_DYNAMIC_ID_LID_GROUP_ID),a=this.getTaskHandler().getGroup(E.TASK_DYNAMIC_ID_SID_GROUP_ID);console.log("IdentifierAspect::configure"),I.isEqual(this.cfgGroupCnt,t)&&I.isEqual(this.cfgGroupLID,_)&&I.isEqual(this.cfgGroupSID,a)?console.log("IdentifierAspect::configure: no content update of taskHandler - keep params for IDs"):(console.log("IdentifierAspect::configure: update of taskHandler - create params for IDs"),this.cfgGroupCnt=c.cloneJSON(t),this.cfgGroupLID=c.cloneJSON(_),this.cfgGroupSID=c.cloneJSON(a),t&&_&&a&&(console.log("IdentifierAspect::configure - create LID params"),this.sP_4_lotA=D.createLIDParams("",this.client.mqttHandler,this.getTaskHandler()),this.sP_4_lotA.forEach(e=>{e.publish()}),console.log("IdentifierAspect::configure - create SID params"),
this.sP_4_sidA=D.createSIDParams("",this.client.mqttHandler,this.getTaskHandler()),this.sP_4_sidA.forEach(e=>{e.publish()})))}getTaskHandler(){return this.cfg.taskHandler}getLotVisualParams(){return this.sP_4_lotA}getSIDVisualParams(){return this.sP_4_sidA}prepLotInput(e){this.client.screens[i.KEYBOARD_SCREEN_ID].hide(),this.sPIn_4_identifier.id=L+e,this.sPIn_4_identifier.title=this.sP_4_lotA[this.inputIdx].getValue().title,this.sPIn_4_identifier.header=this.sP_4_lotA[this.inputIdx].getValue().header,this.sPIn_4_identifier.info.maximum.length=t.IDENTIFIER_MAX_LENGTH_LID_SID_VALUE,this.cfg.showPreviouslySetLIDs?this.sPIn_4_identifier.value.string=void 0!==this.lotIDs[e]?this.lotIDs[e]:"":this.sPIn_4_identifier.value.string="",console.log("IdentifierAspect::prepLotInput - prepare input of: "+JSON.stringify(this.sPIn_4_identifier.header)),this.client.screens[i.KEYBOARD_SCREEN_ID].setParam(this.sPIn_4_identifier),this.client.screens[i.KEYBOARD_SCREEN_ID].show()}prepSidInput(e,_,a){
if(this.client.screens[i.KEYBOARD_SCREEN_ID].hide(),this.sPIn_4_identifier.id=L+e,this.sPIn_4_identifier.title=this.sP_4_sidA[e].getValue().title,this.sPIn_4_identifier.header=this.sP_4_sidA[e].getValue().header,this.sPIn_4_identifier.info.maximum.length=t.IDENTIFIER_MAX_LENGTH_LID_SID_VALUE,!_.length||0===_.length)switch(D.getSIDState(e,this.getTaskHandler())){case E.EnumSampleIdentifierOptions.ON_AUTO_INC:case E.EnumSampleIdentifierOptions.ON_AUTO_DEC:this.sPIn_4_identifier.info.maximum.length=t.IDENTIFIER_MAX_LENGTH_LID_SID_VALUE}this.sPIn_4_identifier.value.string=_,console.log("IdentifierAspect::prepSidInput - prepare input of: "+JSON.stringify(this.sPIn_4_identifier.header)),this.client.screens[i.KEYBOARD_SCREEN_ID].setParam(this.sPIn_4_identifier),a&&this.client.screens[i.KEYBOARD_SCREEN_ID].show()}static updateAndPublishIDParamStatic(e,t){t&&t.length>0?(e.getValue().value.string=t,e.getValue().appearance=s.EnumAppearance.ENABLED):(e.getValue().value.string="",
e.getValue().appearance=s.EnumAppearance.HIDDEN),e.publish()}static setLotIDsStatic(e,t){for(let _=0;_<t.length;_++)this.updateAndPublishIDParamStatic(t[_],e[_])}setLotIDs(e){this.lotIDs=e,D.setLotIDsStatic(this.lotIDs,this.sP_4_lotA)}setLotID(e,t){this.lotIDs[e]=t,D.updateAndPublishIDParamStatic(this.sP_4_lotA[e],this.lotIDs[e])}static setSIDsStatic(e,t){for(let _=0;_<t.length;_++)D.updateAndPublishIDParamStatic(t[_],e[_])}setSIDs(e,t){this.sIDs=e,this.cfg.autoRememberSIDs||(this.sIDsPrevSample=t),D.setSIDsStatic(this.sIDs,this.sP_4_sidA)}isPreviouSampleIdsPresent(){return void 0!==this.sIDsPrevSample&&void 0!==this.sIDsPrevSample[this.inputIdx]}setSID(e,t){this.sIDs[e]=t,D.updateAndPublishIDParamStatic(this.sP_4_sidA[e],this.sIDs[e])}static getLotState(e,t){let _=E.EnumLotIdentifierOptions.OFF,a=t.getParameter(E.TASK_DYNAMIC_ID_LID_CNT_PARAM_ID);return e>=0&&e<E.getConfiguredIds(a)&&(_=E.EnumLotIdentifierOptions.ON),console.log("IdentifierAspect::getLotState for idx:"+e+" -> "+_),_}
static getSIDState(e,t){let _=e+1,a=E.EnumSampleIdentifierOptions.OFF,i=t.getParameter(E.TASK_DYNAMIC_ID_SID_CNT_PARAM_ID);return e>=0&&e<E.getConfiguredIds(i)&&(a=t.getParameter(E.createSIDParamId(_,E.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_MODE)).value.selection.id),a}static getIdxFirstEnabledSID(e){let t=e.getParameter(E.TASK_DYNAMIC_ID_SID_CNT_PARAM_ID);return E.getConfiguredIds(t)>0?0:NaN}evalLotInput(){let e=this.getTaskHandler().getParameter(E.TASK_DYNAMIC_ID_LID_CNT_PARAM_ID);for(let t=this.inputIdx;t<E.getConfiguredIds(e);t++)return this.inputIdx=t,this.prepLotInput(this.inputIdx),!0;return!1}evalSidInput(){console.log("IdentifierAspect - evalSidInput");let e=this.getTaskHandler().getParameter(E.TASK_DYNAMIC_ID_SID_CNT_PARAM_ID);for(let t=this.inputIdx;t<E.getConfiguredIds(e);t++){console.log("IdentifierAspect - evalSidInput: loop:"+t);let e=D.getSIDState(t,this.getTaskHandler())
;if(e===E.EnumSampleIdentifierOptions.ON)return console.log("IdentifierAspect - request input for SID idx:"+t),this.inputIdx=t,this.prepSidInput(this.inputIdx,this.sIDsPrevSample&&this.sIDsPrevSample[this.inputIdx]?this.sIDsPrevSample[this.inputIdx]:"",!0),!0;if(e===E.EnumSampleIdentifierOptions.ON_AUTO_INC||e===E.EnumSampleIdentifierOptions.ON_AUTO_DEC){this.inputIdx=t;let _=e===E.EnumSampleIdentifierOptions.ON_AUTO_INC;if(this.sIDsPrevSample&&void 0!==this.sIDsPrevSample[this.inputIdx]){console.log("IdentifierAspect - AutoInc/Dec for SID idx:"+this.inputIdx);let e=C(_,this.sIDsPrevSample[this.inputIdx]);return e.success?this.prepSidInput(this.inputIdx,e.result,!0):(console.log("IdentifierAspect - AutoInc/Dec failed show warning for SID idx:"+this.inputIdx),this.prepSidInput(this.inputIdx,this.sIDsPrevSample[this.inputIdx],!1),this.client.showMessageBox(m(_,e.result))),!0}
return console.log("IdentifierAspect - AutoInc/Dec, but first sample -> request input for SID idx:"+this.inputIdx),this.prepSidInput(this.inputIdx,"",!0),!0}}return!1}resetSIDsPrevSample(){this.sIDsPrevSample=void 0}sIdInputDone(){let e="";return console.log("IdentifierAspect - sIdInputDone"),this.inputIdx++,this.evalSidInput()?console.log("IdentifierAspect - at least one more SIDs configured"):(console.log("IdentifierAspect - no (further) SIDs configured"),e=this.cfg.returnState),e}}var h;function C(e,_,a=t.IDENTIFIER_MAX_LENGTH_LID_SID_VALUE){console.log("IdentifierAspect - AutoInc/Dec, not first sample > check for number");let i=_.match("^\\d*$");if(i&&void 0!==i[0]){let _;if(console.log("IdentifierAspect - AutoInc, not first sample > inc number"),""===i[0]){if(_=0,!e)return{success:!1,result:{id:h.NONUMBERFOUND,args:[]}}}else{if(i[0].length>t.IDENTIFIER_MAX_LENGTH_LID_SID_NUMBER_VALUE)return{success:!1,result:{id:h.NUMBERTOOLARGE,args:[]}};_=parseInt(i[0],10)}if(e)_++;else{
if(!(_>S))return{success:!1,result:{id:h.LOWERBOUNDARY,args:[]}};_--}let n=_.toFixed(0);return n.length>a?{success:!1,result:{id:h.SIDTOOLARGE,args:[a.toString()]}}:{success:!0,result:n}}{let i=_.match("(.*[\\-_.#\\s])(\\d*)$");if(i&&void 0!==i[2]){let _;if(console.log("IdentifierAspect - AutoInc/Dec, not first sample > inc/dec suffix"),""===i[2]){if(_=0,!e)return{success:!1,result:{id:h.NONUMBERFOUND,args:[]}}}else{if(i[2].length>t.IDENTIFIER_MAX_LENGTH_LID_SID_NUMBER_VALUE)return{success:!1,result:{id:h.NUMBERTOOLARGE,args:[]}};_=parseInt(i[2],10)}if(e)_++;else{if(!(_>S))return{success:!1,result:{id:h.LOWERBOUNDARY,args:[]}};_--}let n=i[1]+_.toFixed();return n.length>a?{success:!1,result:{id:h.SIDTOOLARGE,args:[a.toString()]}}:{success:!0,result:n}}if(console.log("IdentifierAspect - AutoInc, not first sample > add suffix"),e){let e=_+d;return e.length>a?{success:!1,result:{id:h.SIDTOOLARGE,args:[a.toString()]}}:{success:!0,result:e}}return{success:!1,result:{id:h.NOSEPARATORFOUND,
args:[]}}}}function m(e,_,a=!1){let i=[],n=[];return e?a?i.push({id:"_QAPP_LIB_MBOX_TEXT_IDENTIFIER_AUTO_INC_WARNING_FOR_NEXT_SID",args:[]}):i.push({id:"_QAPP_LIB_MBOX_TEXT_IDENTIFIER_AUTO_INC_WARNING",args:[]}):a?i.push({id:"_QAPP_LIB_MBOX_TEXT_IDENTIFIER_AUTO_DEC_WARNING_FOR_NEXT_SID",args:[]}):i.push({id:"_QAPP_LIB_MBOX_TEXT_IDENTIFIER_AUTO_DEC_WARNING",args:[]}),i.push(_),a&&i.push({id:"_QAPP_LIB_MBOX_TEXT_IDENTIFIER_AUTO_INC_DEC_WARNING_CONTINUE",args:[]}),n=a?[{id:t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_YES,label:{id:"_QAPP_LIB_MBOX_BTN_YES",args:[]},appearance:s.EnumAppearance.ENABLED_SECONDARY},{id:t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_NO,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},appearance:s.EnumAppearance.ENABLED_SECONDARY}]:[{id:t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_OK,label:{id:o.EnumFontLabels.OK,args:[]},appearance:s.EnumAppearance.ENABLED_SECONDARY}],{type:A.EnumMessageboxType.WARNING,title:{
id:"_QAPP_LIB_MBOX_TITLE_IDENTIFIER_AUTO_INC_DEC_WARNING",args:[]},textList:i,buttons:n}}t.IdentifierAspect=D,function(e){e.NUMBERTOOLARGE="_QAPP_LIB_MBOX_TEXT_IDENTIFIER_AUTO_INC_DEC_WARNING_NO_TOO_LARGE",e.LOWERBOUNDARY="_QAPP_LIB_MBOX_TEXT_IDENTIFIER_AUTO_DEC_WARNING_LOWER_BOUNDARY",e.SIDTOOLARGE="_QAPP_LIB_MBOX_TEXT_IDENTIFIER_AUTO_INC_DEC_WARNING_SID_TOO_LARGE",e.NOSEPARATORFOUND="_QAPP_LIB_MBOX_TEXT_IDENTIFIER_AUTO_DEC_WARNING_NO_SEPARATOR_FOUND",e.NONUMBERFOUND="_QAPP_LIB_MBOX_TEXT_IDENTIFIER_AUTO_DEC_WARNING_NO_NUMBER_FOUND"}(h=t.IncreaseDecreaseFailEnum||(t.IncreaseDecreaseFailEnum={})),t.increaseDecreaseId=C,t.getWarningNoIdChange=m},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(103),i=_(12),n=_(59),s=_(13);var r,E,o;!function(e){e.DATE_FORMAT_CHARTS="DATE_FORMAT_CHARTS",e.DATE_FORMAT_DATEFORMAT_LIB="DATE_FORMAT_DATEFORMAT_LIB"}(r=t.EDateFormats||(t.EDateFormats={})),function(e){
e.DD_MM_YYYY_SLASHSEPERATOR="CLOCKHANDLER_CONFIGURATION_TIME_DATEFORMAT_TEXT_DD_MM_YYYY_SLASHSEPERATOR",e.MM_DD_YYYY_SLASHSEPERATOR="CLOCKHANDLER_CONFIGURATION_TIME_DATEFORMAT_TEXT_MM_DD_YYYY_SLASHSEPERATOR",e.DD_MM_YYYY_POINTSEPERATOR="CLOCKHANDLER_CONFIGURATION_TIME_DATEFORMAT_TEXT_DD_MM_YYYY_POINTSEPERATOR",e.YYYY_MM_DD_MINUSSEPERATOR="CLOCKHANDLER_CONFIGURATION_TIME_DATEFORMAT_TEXT_YYYY_MM_DD_MINUSSEPERATOR",e.YYYY_MM_DD_DOUBLEPOINTSEPERATOR="CLOCKHANDLER_CONFIGURATION_TIME_DATEFORMAT_TEXT_YYYY_MM_DD_DOUBLEPOINTSEPERATOR",e.YYYY_MM_DD_POINTSEPERATOR="CLOCKHANDLER_CONFIGURATION_TIME_DATEFORMAT_TEXT_YYYY_MM_DD_POINTSEPERATOR",e.DD_MMM_YYYY_MINUSSEPERATOR="CLOCKHANDLER_CONFIGURATION_TIME_DATEFORMAT_TEXT_DD_MMM_YYYY_MINUSSEPERATOR",e.MMM_DD_YYYY_MINUSSEPERATOR="CLOCKHANDLER_CONFIGURATION_TIME_DATEFORMAT_TEXT_MMM_DD_YYYY_MINUSSEPERATOR",e.YYYY_MM_DD_NO_SEPARATOR="CUSTOM_YYYY_MM_DD_NO_SEPARATOR"}(E=t.EDateConfiguration||(t.EDateConfiguration={})),function(e){
e.HH_MM_SS_MINUSSEPERATOR="CLOCKHANDLER_CONFIGURATION_TIME_TIMEFORMAT_TEXT_HH_MM_SS_MINUSSEPERATOR",e.HH_MM_SS_POINTSEPERATOR="CLOCKHANDLER_CONFIGURATION_TIME_TIMEFORMAT_TEXT_HH_MM_SS_POINTSEPERATOR",e.HH_MM_SS_DOUBLEPOINTSEPERATOR="CLOCKHANDLER_CONFIGURATION_TIME_TIMEFORMAT_TEXT_HH_MM_SS_DOUBLEPOINTSEPERATOR",e.HH_MM_SS_AM_PM_DOUBLEPOINTSEPERATOR="CLOCKHANDLER_CONFIGURATION_TIME_TIMEFORMAT_TEXT_HH_MM_SS_AM_PM_DOUBLEPOINTSEPERATOR",e.HH_MM_SS_NO_SEPARATOR="CUSTOM_HH_MM_SS_NO_SEPARATOR"}(o=t.ETimeConfiguration||(t.ETimeConfiguration={}));const A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t,_){let a="YYYY-MM-DD",i="HH:mm:ss";switch(console.log("parseDateTimeFormat: for format "+e),e){case r.DATE_FORMAT_CHARTS:a="YYYY-MM-DD",i="HH:mm:ss";break;case r.DATE_FORMAT_DATEFORMAT_LIB:a="yyyy-mm-dd",i="HH:MM:ss"}if(void 0!==t){let _=t.value.selection.text.id;switch(console.log("parseDateTimeFormat: date "+_),_){case E.DD_MM_YYYY_SLASHSEPERATOR:
switch(e){case r.DATE_FORMAT_CHARTS:a="DD/MM/YYYY";break;case r.DATE_FORMAT_DATEFORMAT_LIB:a="dd-mm-yyyy"}break;case E.MM_DD_YYYY_SLASHSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:a="MM/DD/YYYY";break;case r.DATE_FORMAT_DATEFORMAT_LIB:a="mm-dd-yyyy"}break;case E.DD_MM_YYYY_POINTSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:a="DD.MM.YYYY";break;case r.DATE_FORMAT_DATEFORMAT_LIB:a="dd.mm.yyyy"}break;case E.YYYY_MM_DD_MINUSSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:a="YYYY-MM-DD";break;case r.DATE_FORMAT_DATEFORMAT_LIB:a="yyyy-mm-dd"}break;case E.YYYY_MM_DD_DOUBLEPOINTSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:a="YYYY:MM:DD";break;case r.DATE_FORMAT_DATEFORMAT_LIB:a="yyyy:mm:dd"}break;case E.DD_MMM_YYYY_MINUSSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:a="DD-MMM-YYYY";break;case r.DATE_FORMAT_DATEFORMAT_LIB:a="dd-mmm-yyyy"}break;case E.MMM_DD_YYYY_MINUSSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:a="MMM-DD-YYYY";break;case r.DATE_FORMAT_DATEFORMAT_LIB:a="mmm.dd.yyyy"}break
;default:a=_}}if(void 0!==_){let t=_.value.selection.text.id;switch(console.log("parseDateTimeFormat: time "+t),t){case o.HH_MM_SS_POINTSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:i="HH.mm.ss";break;case r.DATE_FORMAT_DATEFORMAT_LIB:i="HH.MM.ss"}break;case o.HH_MM_SS_DOUBLEPOINTSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:i="HH:mm:ss";break;case r.DATE_FORMAT_DATEFORMAT_LIB:i="HH:MM:ss"}break;case o.HH_MM_SS_AM_PM_DOUBLEPOINTSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:i="hh:mm:ss a";break;case r.DATE_FORMAT_DATEFORMAT_LIB:i="hh:MM:ss TT"}break;default:i=t}}let n=`${a} ${i}`;return console.log("parseDateTimeFormat: final format "+n),n}function I(e,t){let _=e.toFixed(0);for(;_.length<t;)_="0"+_;return _}function N(){let e=(new a.ClockHandlerProxy).getFormatConfigurationI18n();if(e.isSuccess()){let t,_,n=JSON.parse(e.rawReturns.configuration),s=i.find(n,e=>e.id===a.CLOCKHANDLER_DATEFORMAT_PARAM_ID),r=i.find(n,e=>e.id===a.CLOCKHANDLER_TIMEFORMAT_PARAM_ID);if(void 0!==s){
let e=s.value.selection.text.id;t=Object.values(E).includes(e)?e:E.YYYY_MM_DD_MINUSSEPERATOR}else t=E.YYYY_MM_DD_MINUSSEPERATOR;if(void 0!==r){let e=r.value.selection.text.id;_=Object.values(o).includes(e)?e:o.HH_MM_SS_DOUBLEPOINTSEPERATOR}else _=o.HH_MM_SS_DOUBLEPOINTSEPERATOR;return{dateConfiguration:t,timeConfiguration:_}}return{dateConfiguration:E.YYYY_MM_DD_MINUSSEPERATOR,timeConfiguration:o.HH_MM_SS_DOUBLEPOINTSEPERATOR}}function l(e,t){let _,a,i=new Date(e);switch(t.dateConfiguration){case E.DD_MM_YYYY_SLASHSEPERATOR:_=I(i.getDate(),2)+"/"+I(i.getMonth()+1,2)+"/"+I(i.getFullYear(),4);break;case E.MM_DD_YYYY_SLASHSEPERATOR:_=I(i.getMonth()+1,2)+"/"+I(i.getDate(),2)+"/"+I(i.getFullYear(),4);break;case E.DD_MM_YYYY_POINTSEPERATOR:_=I(i.getDate(),2)+"."+I(i.getMonth()+1,2)+"."+I(i.getFullYear(),4);break;case E.YYYY_MM_DD_MINUSSEPERATOR:_=I(i.getFullYear(),4)+"-"+I(i.getMonth()+1,2)+"-"+I(i.getDate(),2);break;case E.YYYY_MM_DD_DOUBLEPOINTSEPERATOR:
_=I(i.getFullYear(),4)+":"+I(i.getMonth()+1,2)+":"+I(i.getDate(),2);break;case E.YYYY_MM_DD_POINTSEPERATOR:_=I(i.getFullYear(),4)+"."+I(i.getMonth()+1,2)+"."+I(i.getDate(),2);break;case E.DD_MMM_YYYY_MINUSSEPERATOR:_=I(i.getDate(),2)+"-"+A[i.getMonth()]+"-"+I(i.getFullYear(),4);break;case E.MMM_DD_YYYY_MINUSSEPERATOR:_=A[i.getMonth()]+"-"+I(i.getDate(),2)+"-"+I(i.getFullYear(),4);break;case E.YYYY_MM_DD_NO_SEPARATOR:_=I(i.getFullYear(),4)+I(i.getMonth()+1,2)+I(i.getDate(),2);break;default:_=I(i.getFullYear(),4)+"-"+I(i.getMonth()+1,2)+"-"+I(i.getDate(),2)}switch(t.timeConfiguration){case o.HH_MM_SS_MINUSSEPERATOR:a=I(i.getHours(),2)+"-"+I(i.getMinutes(),2)+"-"+I(i.getSeconds(),2);break;case o.HH_MM_SS_POINTSEPERATOR:a=I(i.getHours(),2)+"."+I(i.getMinutes(),2)+"."+I(i.getSeconds(),2);break;case o.HH_MM_SS_DOUBLEPOINTSEPERATOR:a=I(i.getHours(),2)+":"+I(i.getMinutes(),2)+":"+I(i.getSeconds(),2);break;case o.HH_MM_SS_AM_PM_DOUBLEPOINTSEPERATOR:let e=function(e){let t=e>=12?"pm":"am"
;return{hours:e=0!=(e%=12)?e:12,ampm:t}}(i.getHours());a=I(e.hours,2)+":"+I(i.getMinutes(),2)+":"+I(i.getSeconds(),2)+" "+e.ampm;break;case o.HH_MM_SS_NO_SEPARATOR:a=I(i.getHours(),2)+I(i.getMinutes(),2)+I(i.getSeconds(),2);break;default:a=I(i.getHours(),2)+":"+I(i.getMinutes(),2)+":"+I(i.getSeconds(),2)}return{date:_,time:a}}t.getDateTimeFormat=function(e){let t="";switch(e){case r.DATE_FORMAT_CHARTS:t="YYYY-MM-DD HH:mm:ss";break;case r.DATE_FORMAT_DATEFORMAT_LIB:t="yyyy-mm-dd HH:MM:ss"}let _=(new a.ClockHandlerProxy).getFormatConfigurationI18n();if(_.isSuccess()){let n=JSON.parse(_.rawReturns.configuration);t=`${T(e,i.find(n,e=>e.id===a.CLOCKHANDLER_DATEFORMAT_PARAM_ID),i.find(n,e=>e.id===a.CLOCKHANDLER_TIMEFORMAT_PARAM_ID))}`}return t},t.parseDateTimeFormat=T,t.getDateTimeConfiguration=N,t.convertToDateTimeFormat=l,t.getDateTime=function(e,t,_,a,i=!0,r=!0){switch(void 0==_&&(_=Date.now()),s.isNumber(_)||s.isString(_)||(_=0),void 0==a&&(a=s.isString(_)?"iso":"ms"),
void 0==e&&(e="ms"),a){case"ms":_=s.isNumber(_)?_:0;break;case"s":_=s.isNumber(_)?1e3*_:0;break;case"iso":case"isoTimezone":_=s.isString(_)?new Date(_).valueOf():0,_=s.isNumber(_)?_:0}if("ms"===e)return _;if("s"===e)return Math.trunc(_/1e3);if("iso"===e)return new Date(_).toISOString();if("isoTimezone"===e&&(e="frmt",t="yyyy-mm-dd HH:MM:sso"),void 0==t&&(t=N()),0===_&&(_=.1),t.hasOwnProperty("dateConfiguration")){let e=l(_,t),a=i?e.date:"";return a+=r&&""!==a?" ":"",a+=r?e.time:""}if("string"==typeof t.toLowerCase())return n(_,t);{let e=r?"HH:MM:ss":"";return e+=i&&""!==e?" ":"",n(_,e+=i?"dd.mm.yyyy":"")}}},function(e,t){e.exports=require("dateformat")},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(3),i=_(1);!function(e){e.WITHOUTIMAGE="withoutImage",e.WITHIMAGEON50="withImageOn50",e.WITHIMAGEON66="withImageOn66",e.SPLITINHALFS="splitInHalfs",e.SPLITINTHIRDS="splitInThirds"}(t.EnumWizardScreenLayout||(t.EnumWizardScreenLayout={}));const n={
text:a.createEmptyTextStructure(),img:""};t.createEmptyWizardScreenContent=function(){return i.cloneJSON(n)}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(8),i=_(0),n=_(22);t.PARAM_LIST_SCREENID="PARAMLIST";var s=_(22);t.CANCEL_BUTTON_ID=s.CANCEL_BUTTON_ID,t.FINISH_BUTTON_ID="BTN_FIN";t.ParameterListScreen=class extends n.default{constructor(e){super(e);let _={};_.label={id:n.CANCEL_BUTTON_NAME,args:[]},_.appearance=i.EnumAppearance.ENABLED_PRIMARY,_.buttonId=n.CANCEL_BUTTON_ID,this.cancelButton=new a.default(e,this,_),_.appearance=i.EnumAppearance.HIDDEN,_.label.id="_FINISH",_.buttonId=t.FINISH_BUTTON_ID,this.finishButton=new a.default(e,this,_)}getId(){return"PARAMLIST"}getButton(e){let _;return _=e===n.CANCEL_BUTTON_ID?this.cancelButton:e===t.FINISH_BUTTON_ID?this.finishButton:void 0}setFinishButtonLabel(e){this.finishButton.setLabel(e,!1)}show(){this.finishButton.publish(),this.createAndPublishParamsAndPage(),super.show()}}
},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(3),i=_(7),n=_(0);function s(e){return"string"==typeof e.name&&"string"==typeof e.message}t.ERRORMSGBOX_OK_BTN_ID="BTN_OK_ERRORMSGBOX",t.isError=s,t.createMsgBoxData=function(e,_,r,E,o){let A=[];return s(r)?A.push({id:r.name+":"+r.message,args:[]}):a.isITextStructure(r)?A.push(r):A.push({id:r.error.name+":"+r.error.message,args:r.msgargs}),void 0!==E&&A.push(E),{type:e,title:_,textList:A,buttons:[{id:o||t.ERRORMSGBOX_OK_BTN_ID,label:{id:i.EnumFontLabels.OK,args:[]},appearance:n.EnumAppearance.ENABLED_SECONDARY}]}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(8),i=_(0),n=_(10),s=_(4),r=_(11),E=_(2);t.MESSAGEBOX_ID="MESSAGEBOX";class o{constructor(e){this.appearance=i.EnumAppearance.HIDDEN,this.lastPublishedTabContent={appearance:i.EnumAppearance.HIDDEN,type:n.EnumMessageboxType.INFO,title:{id:"",args:[]},text:{id:"",args:[]},textsList:[],buttons:[]},
this.messageBoxObject={appearance:i.EnumAppearance.HIDDEN,type:n.EnumMessageboxType.INFO,title:{id:"",args:[]},text:{id:"",args:[]},textsList:[],buttons:[]},this.events$=new r.Subject,this.mqttHandler=e,this.buttonList=[]}setMessageBoxData(e,t=!0){this.setBackgroundColor(e.backgroundColor,!1),this.setIconColor(e.iconColor,!1),this.setType(e.type,!1),this.setTitle(e.title,!1),this.setTextsList(e.textList,!1),this.createButtons(e.buttons.map(e=>({buttonId:e.id,label:e.label,appearance:e.appearance}))),this.publish(t)}createButtons(e){this.buttonList.splice(0,this.buttonList.length),this.messageBoxObject.buttons.splice(0,this.messageBoxObject.buttons.length),console.log("MessageBox: createButtons buttonlist cleared: "+this.buttonList.length),console.log("MessageBox: createButtons buttonlist json cleared: "+this.messageBoxObject.buttons.length);for(let t of e)if(void 0===this.getButton(t.buttonId)){let e=new a.default(this.mqttHandler,this,t);this.buttonList.push(e),
this.messageBoxObject.buttons.push(e.getJson())}else console.error("MessageBox: Duplicate Button: "+t.buttonId);console.log("MessageBox: createButtons number of buttons: "+this.buttonList.length),console.log("MessageBox: createButtons json result: "+JSON.stringify(this.messageBoxObject))}removeButtons(e){console.log("MessageBox: removeButtons ");for(let t of e){for(let e=0;e<this.buttonList.length;e++)this.buttonList[e].getButtonId()===t&&(console.log("MessageBox: splice for index: "+e),this.buttonList.splice(e,1),console.log("MessageBox: Buttonlist buttons left: "+this.buttonList.length),e=0);console.log("MessageBox: Clearing json buttons");for(let e=0;e<this.messageBoxObject.buttons.length;e++){let _=this.messageBoxObject.buttons[e];if(console.log("MessageBox: buttonId "+_.effect.params.buttonId),_.effect.params.buttonId===t){let t=this.messageBoxObject.buttons.splice(e,1);console.log("MessageBox: Removed JSON Button: "+t[0]),
console.log("MessageBox: ButtonJSON buttons left: "+this.messageBoxObject.buttons.length),e=0}}}console.log("MessageBox: Messagebox json: "+JSON.stringify(this.messageBoxObject))}publish(e=!0){let t=JSON.stringify(this.messageBoxObject),_=JSON.stringify(this.lastPublishedTabContent);e&&(t!==_&&this.messageBoxObject.appearance===i.EnumAppearance.ENABLED||this.lastPublishedTabContent.appearance===i.EnumAppearance.ENABLED&&this.messageBoxObject.appearance===i.EnumAppearance.HIDDEN)&&(this.mqttHandler.publish(E.MqttTopics.HMI_MESSAGEBOX,t),this.lastPublishedTabContent=JSON.parse(t))}getButtonByTopic(e){for(let t of this.buttonList){if(t.getTopic().substring(t.getTopic().lastIndexOf("/")+1)===e)return t}}getButton(e){for(let t of this.buttonList)if(t.getButtonId()===e)return t}setAppearance(e,t=!0){"HIDDEN"!==e&&"ENABLED"!==e||(this.appearance=e,this.messageBoxObject.appearance=e,this.publish(t))}getAppearance(){return this.appearance}setBackgroundColor(e,t=!0){
this.messageBoxObject.backgroundColor=e,this.publish(t)}getBackgroundColor(){return this.messageBoxObject.backgroundColor}setIconColor(e,t=!0){this.messageBoxObject.iconColor=e,this.publish(t)}getIconColor(){return this.messageBoxObject.iconColor}setType(e,t=!0){this.messageBoxObject.type=e,this.publish(t)}getType(){return this.messageBoxObject.type}setTitle(e,t=!0){this.messageBoxObject.title=e,this.publish(t)}getTitle(){return this.messageBoxObject.title}setTextsList(e,t=!0){this.messageBoxObject.textsList=e,this.publish(t)}getTextsList(){return this.messageBoxObject.textsList}getText(){return this.messageBoxObject.textsList[0]}getId(){return t.MESSAGEBOX_ID}hide(){this.appearance===i.EnumAppearance.ENABLED&&(this.setAppearance(i.EnumAppearance.HIDDEN),this.events$.next({type:s.ScreenEventType.HIDE_MESSAGEBOX,id:this.getId()}))}show(){this.appearance===i.EnumAppearance.HIDDEN&&(this.setAppearance(i.EnumAppearance.ENABLED),this.events$.next({type:s.ScreenEventType.SHOW_MESSAGEBOX,
id:this.getId()}))}}t.MessageBox=o,t.default=o},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.PERSISTENCY_SCOPE_QAPP_INDEPENDENT="PERSISTENCY_SCOPE_QAPP_INDEPENDENT",e.PERSISTENCY_SCOPE_QAPP_SPECIFIC="PERSISTENCY_SCOPE_QAPP_SPECIFIC",e.PERSISTENCY_SCOPE_QAPP_SPECIFIC_VERSION="PERSISTENCY_SCOPE_QAPP_SPECIFIC_VERSION",e.PERSISTENCY_SCOPE_TASk_SPECIFIC="PERSISTENCY_SCOPE_TASk_SPECIFIC"}(t.EnumPersistencyScope||(t.EnumPersistencyScope={}))},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QAppAsyncCallTimeoutErrorName="QAppAsyncCallTimeoutError";class a extends Error{constructor(e,_,i){super(),this.originalState=e,this.metadata=_,this.name=t.QAppAsyncCallTimeoutErrorName,i&&(this.stack=i),Object.setPrototypeOf(this,a.prototype),this.message="Async call timeout."+(_?` metadata: ${_}`:"")}}t.QAppAsyncCallTimeoutError=a},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PARAM_TITLE=40,
t.PARAM_HEADER=8,t.USER_GUIDANCE=45,t.BUTTON_DISPLAY=8,t.BUTTON_APPL=8,t.PARAMLIST_TITLE=40,t.MSG_TITLE=25,t.MSG_DESCRIPTION=200,t.BUTTON_MSG=20,t.GROUP_PARAM_TITLE=25,t.PARAM_SELECTION=25,t.DETAIL_TITLE=25,t.USER_INPUT_STRING_NAMES=50,t.LID_SID_USER_INPUT_STRING_VALUES=60},,function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(8),i=_(0),n=_(22),s=_(1);t.PARAM_OVER_SCREENID="PARAMOVERVIEW",t.EDIT_BUTTON_ID="BTN_EDIT",t.DELETE_BUTTON_ID="BTN_DELETE",t.SAVE_BUTTON_ID="BTN_SAVE",t.BACK_BUTTON_ID="BTN_BACK";var r=_(22);t.CANCEL_BUTTON_ID=r.CANCEL_BUTTON_ID;class E extends n.default{constructor(e){super(e),this.buttonList=[],this.title1=Object.assign({},{id:"",args:[]}),this.title2=Object.assign({},{id:"",args:[]});let _=[],a={nameId:"",label:{id:"",args:[]},appearance:i.EnumAppearance.HIDDEN,buttonId:""},r=s.cloneJSON(a);r.label.id=n.CANCEL_BUTTON_NAME,r.appearance=i.EnumAppearance.ENABLED_PRIMARY,r.buttonId=n.CANCEL_BUTTON_ID,_.push(r)
;let E=s.cloneJSON(a);E.label.id="_SAVE",E.buttonId=t.SAVE_BUTTON_ID,E.appearance=i.EnumAppearance.HIDDEN,_.push(E);let o=s.cloneJSON(a);o.label.id="_PREVIOUS",o.buttonId=t.BACK_BUTTON_ID,o.appearance=i.EnumAppearance.HIDDEN,_.push(o),this.createButtons(_)}createButtons(e){for(let t of e){let e=new a.default(this.mqttHandler,this,t);this.buttonList.push(e)}}getButton(e){for(let t of this.buttonList){if(t.getButtonId()===e)return t}}setTitle1(e,t){this.title1.id===e&&this.title1.args.join()===t.join()||(this.title1.id=e,this.title1.args=t,this.publishTitle1())}setTitle2(e,t){this.title2.id===e&&this.title2.args.join()===t.join()||(this.title2.id=e,this.title2.args=t,this.publishTitle2())}publishTitle1(){this.publishContent("TITLE1",JSON.stringify(this.title1))}publishTitle2(){this.publishContent("TITLE2",JSON.stringify(this.title2))}getTitle1(){return this.title1}getTitle2(){return this.title2}getId(){return t.PARAM_OVER_SCREENID}show(){this.createAndPublishParamsAndPage()
;for(let e of this.buttonList)e.getButtonId()!==n.CANCEL_BUTTON_ID&&e.show();""!==this.title1.id&&this.publishTitle1(),""!==this.title2.id&&this.publishTitle2(),super.show()}}t.ParameterOverviewScreen=E,t.default=E},function(e,t){e.exports=require("rxjs/observable/interval")},function(e,t){e.exports=require("rxjs/observable/merge")},function(e,t){e.exports=require("timers")},function(e,t){e.exports=require("machina")},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INTERNAL_SUSPEND_EVENT="_INTERNAL_SUSPEND_EVENT_",function(e){e.SUSPEND_EVENT_TYPE_FORCED_HOME="SUSPEND_EVENT_TYPE_FORCED_HOME",e.SUSPEND_EVENT_TYPE_FORCED_LOGOUT="SUSPEND_EVENT_TYPE_FORCED_LOGOUT",e.SUSPEND_EVENT_TYPE_FORCED_AUTO_LOGOUT="SUSPEND_EVENT_TYPE_FORCED_AUTO_LOGOUT",e.SUSPEND_EVENT_TYPE_EXECFINALLY="SUSPEND_EVENT_TYPE_EXECFINALLY"}(t.INTERNAL_SUSPEND_EVENT_TYPE||(t.INTERNAL_SUSPEND_EVENT_TYPE={}));t.InternalSuspendEvent=class{constructor(e){this.payload=e,
this.type=t.INTERNAL_SUSPEND_EVENT}},t.INTERNAL_RESTART_EVENT="_INTERNAL_RESTART_EVENT_",function(e){e.RESTART_EVENT_TYPE_REQUEST="RESTART_EVENT_TYPE_REQUEST",e.RESTART_EVENT_TYPE_EXECFINALLY="RESTART_EVENT_TYPE_EXECFINALLY"}(t.INTERNAL_RESTART_EVENT_TYPE||(t.INTERNAL_RESTART_EVENT_TYPE={}));t.InternalRestartEvent=class{constructor(e){this.payload=e,this.type=t.INTERNAL_RESTART_EVENT}},t.HEARTBEAT_EVENT="_FSM_HEARTBEAT_EVENT_";t.HeartbeatEvent=class{constructor(e){this.payload=e,this.type=t.HEARTBEAT_EVENT}},function(e){e.INTERNAL_ASYNC_CALL_EVENT_TYPE_SUCCESS="SUCCESS",e.INTERNAL_ASYNC_CALL_EVENT_TYPE_FAIL="FAIL",e.INTERNAL_ASYNC_CALL_EVENT_TYPE_TIMEOUT="TIMEOUT",e.INTERNAL_ASYNC_CALL_EVENT_TYPE_TIMEOUT_WITH_FETCHING_RESP="TIMEOUT_FETCH_RESP"}(t.INTERNAL_ASYNC_CALL_EVENT_TYPE||(t.INTERNAL_ASYNC_CALL_EVENT_TYPE={})),t.INTERNAL_ASYNC_CALL_EVENT="_INTERNAL_ASYNC_CALL_EVENT_";t.InternalAsyncCallEvent=class{constructor(e){this.payload=e,this.type=t.INTERNAL_ASYNC_CALL_EVENT}}
},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(75),i=_(11),n=_(76),s=_(26),r=_(20),E=_(2);t.MqttHandler=class{constructor(){this.mqttOptions={host:"127.0.0.1",port:1883,clientId:`qapp_${Math.random().toString(16).substr(2,8)}`,will:{topic:E.MqttTopics.QAPP_CLEANUP,payload:"",qos:1,retain:0}},this.listeningForUpdateEvent=!1,this.listeningForAdminEvent=!1,this.mqttUpdateEvent$=new i.Subject,this.mqttAdminEvent$=new i.Subject,this.weighingNet={str:E.MqttTopics.WEIGHING_VALUE_NET,subscribe:()=>this.subscribe(E.MqttTopics.WEIGHING_VALUE_NET),unsubscribe:()=>this.unsubscribe(E.MqttTopics.WEIGHING_VALUE_NET)},this.client=a.connect(this.mqttOptions),this.startListeningForUpdateEvent(),this.startListeningForAdminEvent(),this.listOfPublishedTopics=[],this.listOfSubscribedTopics=[]}startListeningForUpdateEvent(){this.listeningForUpdateEvent||(this.client.on("message",(e,t,_)=>{let a={topic:e,value:t,packet:_}
;a.topic.startsWith(E.MqttTopics.QAPP_DEBUG_TOPIC_PREAMBLE)?this.mqttUpdateEvent$.next(new r.MqttUpdateDebugEvent(a)):this.mqttUpdateEvent$.next(new r.MqttUpdateEvent(a))}),this.listeningForUpdateEvent=!0)}startListeningForAdminEvent(){this.listeningForAdminEvent||(this.client.on("offline",()=>{this.mqttAdminEvent$.next(new s.MqttAdminEvent({event:"offline",message:"client is offline!"}))}),this.client.on("close",()=>{this.mqttAdminEvent$.next(new s.MqttAdminEvent({event:"close",message:"client has disconnected!"}))}),this.client.on("reconnect",()=>{this.mqttAdminEvent$.next(new s.MqttAdminEvent({event:"reconnect",message:"client is reconnecting!"}))}),this.client.on("error",e=>{this.mqttAdminEvent$.next(new s.MqttAdminEvent({event:"error",message:"client cannot connect or a parsing error occured!",error:e}))}),this.client.on("packetsend",e=>{this.mqttAdminEvent$.next(new s.MqttAdminEvent({event:"packetsend",message:"client send packet!",packet:e}))}),
this.client.on("packetreceive",e=>{this.mqttAdminEvent$.next(new s.MqttAdminEvent({event:"packetreceive",message:"client recieved packet!",packet:e}))}),this.client.on("connect",e=>{this.mqttAdminEvent$.next(new s.MqttAdminEvent({event:"connect",message:"client has successfully connected!",connack:e}))}),this.listeningForAdminEvent=!0)}publish(e,t,_,a){let i,s;"function"==typeof _?(s=_,i=void 0):(i=_,s=a);let r={qos:n.EnumMqttQos.AtMostOnce,retain:!0,dup:!1};Object.assign(r,i),"/"!==e.substring(0,1)&&(e="~"===e.substring(0,1)?e.substr(1):`${E.MqttTopics.QAPP_NAMESPACE}/${e}`),e.startsWith(E.MqttTopics.QAPP_NAMESPACE)&&-1===this.listOfPublishedTopics.indexOf(e)&&this.listOfPublishedTopics.push(e),this.client.publish(e,t,r,e=>{s&&s(e)})}subscribe(e,t,_){if("object"==typeof e)this.subscribe(e,(e,t)=>{_&&_(e,t)});else{"function"==typeof t&&(_=t,t=void 0);let a={qos:0};Object.assign(a,t),-1===this.listOfSubscribedTopics.indexOf(e)&&this.listOfSubscribedTopics.push(e),
this.client.subscribe(e,a,(e,t)=>{_&&_(e,t)})}}unsubscribe(e,t){this.client.unsubscribe(e,e=>{t&&t(e)})}end(e,t){let _=!1,a=void 0;"function"==typeof e?(_=!1,a=e):"boolean"==typeof e&&(_=e,a=t),this.client.end(_,()=>{a&&a()})}removeOutgoingMessage(e){this.client.removeOutgoingMessage(e)}reconnect(e){this.client.reconnect(e)}getLastMessageId(){return this.client.getLastMessageId()}handleMessage(e,t){this.client.handleMessage(e,(e,_)=>{t(e,_)})}reconnecting(){return this.client.reconnecting}connected(){return this.client.connected}clearPublishedTopics(){this.publish(E.MqttTopics.QAPP_CLEANUP,"");for(let e of this.listOfPublishedTopics)this.publish(e,"");this.publish(E.MqttTopics.QAPP_CLEANUP,"")}unsubscribeTopics(){this.unsubscribe(this.listOfSubscribedTopics)}}},function(e,t){e.exports=require("mqtt")},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.AtMostOnce=0]="AtMostOnce",e[e.AtLeastOnce=1]="AtLeastOnce",e[e.ExactlyOnce=2]="ExactlyOnce"
}(t.EnumMqttQos||(t.EnumMqttQos={}))},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(47),i=_(11),n=_(21),s=_(16),r=_(2),E="/rest/qapp/paramDetail",o="/rest/qapp/paramChanged",A="/rest/qapp/buttonClick",T="/rest/qapp/extern",I=5e3;function N(e,t,_,a,i){e.statusCode=t,void 0!==_&&(e.statusMessage=_),console.log(`RestHandler::finalizeResponse: send ${t} (${_}) response: ${s.inspect(a)}`),void 0===a?e.end():"object"==typeof a?(e.setHeader("Content-Type","application/json"),e.end(JSON.stringify(a,i))):(e.setHeader("Content-Type","plain/text"),e.end(a))}t.RestHandler=class{constructor(e){this.buttonClickEvent$=new i.Subject,this.paramChangedEvent$=new i.Subject,this.paramDetailEvent$=new i.Subject,this.restRequestEvent$=new i.Subject,this.restController=((e,t)=>{if(e.url)if(e.url.startsWith(T)){let _=e.url.replace(T,"");console.log(`RestHandler: rx extern REST request (${e.method})for URL ${_}`),this.handleRequest(e,a=>{
console.log("RestHandler: rx all data for REST request - create and enqueue event"),t.setTimeout(I);let i={subUrl:_,request:e,body:a,response:t};this.restRequestEvent$.next(new n.RestRequestEvent(i))})}else switch(console.log(`RestHandler: rx internal REST request: ${e.url}`),e.url){case A:"POST"===e.method?this.handleRequest(e,e=>{e.buttonId&&(console.log(`RestHandler::restController received buttonID: ${e.buttonId}`),this.buttonClickEvent$.next(new n.HmiButtonClickedEvent(e)),N(t,200,"Event Accepted and Forwarded","ok"))}):N(t,405,"Method Not Allowed","failure");break;case o:"POST"===e.method?this.handleRequest(e,e=>{e&&(this.paramChangedEvent$.next(new n.HmiParamChangedEvent({parameter:e})),N(t,200,"Event Accepted and Forwarded","ok"))}):N(t,405,"Method Not Allowed","failure");break;case E:"POST"===e.method?this.handleRequest(e,e=>{e&&(this.paramDetailEvent$.next(new n.HmiParamDetailEvent({parameter:e})),N(t,200,"Event Accepted and Forwarded","ok"))
}):N(t,405,"Method Not Allowed","failure");break;default:N(t,404,"Not Found","failure")}else N(t,404,"Not Found","failure")}),this.port=e||8081,this.server=a.createServer(this.restController),this.server.listen(this.port,e=>{e&&console.log(e),console.log(`listening on port ${this.port}`)}),this.server.on("clientError",(e,t)=>{console.log("clientError"),console.log(e),console.log(e.stack),t.end("HTTP/1.1 400 Bad Request\r\n\r\n")})}stopServer(){this.server.close(()=>{console.log("HttpServer closed")})}handleRequest(e,t){let _,a=[""];e.on("error",t=>{console.log("RestHandler::handleRequest: "+t),e.socket.end()}).on("data",e=>{console.log("RestHandler::handleRequest: data"),"string"!=typeof e?a.push(e.toString()):a.push(e)}).on("end",()=>{if(console.log("RestHandler::handleRequest: end"),_=a.reduce((e,t)=>e+t),"application/json"===e.headers["content-type"])try{t(JSON.parse(_))}catch(e){t(_)}else t(_)})}registerRestEndpoints(e,t){
e.publish(r.MqttTopics.CUSTOMIZED_REST_HANDLER_CONFIGURATION,JSON.stringify(t))}},t.finalizeResponse=N},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpRestErrorName="HttpRestError";class a extends Error{constructor(e,_,i,n){super(),this.statusCode=_,this.headers=i,this.body=n,this.name=t.HttpRestErrorName,Object.setPrototypeOf(this,a.prototype),this.message=e}}t.HttpRestError=a,t.isHttpRestError=function(e){return"object"==typeof e&&e.hasOwnProperty("statusCode")&&e.hasOwnProperty("headers")&&e.hasOwnProperty("body")}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(5),i=_(0),n=_(6),s="WEIGHING/CONFIGURATION/PROFILE/ZERO_TARE",r=s+"/TARE1",E="ON",o="PROFILE/IDENTIFICATION",A="PROFILE/IDENTIFICATION/NAME";t.ProfileManagementProxy=class extends a.BaseProxy{constructor(){super(...arguments),this.restEndpoint="profilemanagement"}loadProfile(e){return this.body.method=n.RestMethodsPROFILE_MANAGEMENT.loadProfile,
this.body.params={rProfile:"",id:e},new a.CubisRestResponse(this.syncRequest())}isPresetTareEnabled(e){let t;if(e instanceof a.CubisRestResponse)t=JSON.parse(e.rawReturns.rProfile).params;else if("string"==typeof e){let _=this.loadProfile(e);t=JSON.parse(_.rawReturns.rProfile).params}else t=e.params;for(let e of t)if(e.id===s)for(let t of e.parameters)if(t.id===r)return t.value.selection.id===E;return!1}getWeighingProfileName(e){let t;if(e instanceof a.CubisRestResponse)t=JSON.parse(e.rawReturns.rProfile).params;else if("string"==typeof e){let _=this.loadProfile(e);t=JSON.parse(_.rawReturns.rProfile).params}else t=e.params;for(let e of t)if(e.id===o)for(let t of e.parameters)if(t.id===A)return t.value.string;return""}getAvailableWeighingUnitsInWeighingProfile(e){let t=e.params.find(e=>"WEIGHING/CONFIGURATION/PROFILE/UNITS_ACCURACY"===e.id);if(void 0!==t){let e=t.parameters.find(e=>"WEIGHING/CONFIGURATION/PROFILE/UNITS_ACCURACY/UNITS"===e.id)
;return void 0===e?void 0:e.value.selections.map(e=>e.id)}}getUnitsAvailableOnBalance(e){let t=e.params.find(e=>"WEIGHING/CONFIGURATION/PROFILE/UNITS_ACCURACY"===e.id);if(void 0!==t){let e=t.parameters.find(e=>"WEIGHING/CONFIGURATION/PROFILE/UNITS_ACCURACY/UNITS"===e.id);if(void 0===e)return;{let t=[];return e.info.options.forEach(e=>{e.appearance===i.EnumAppearance.ENABLED&&(t=[...t,e.id])}),0===t.length?void 0:t}}}}},function(e,t){e.exports=require("https")},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.FOUR_AREAS="4",e.SIX_AREAS="6"}(t.EnumAreaCount||(t.EnumAreaCount={}))},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(38),n=_(4),s=_(2);t.LOADING_OVERLAY_ID="LOADING_MODAL";t.LoadingOverlay=class extends i.AbstractOverlay{setText(e){this.publishContent("TEXT",JSON.stringify(e))}show(){this.publishContent("APPEARANCE",'{ "appearance":"'+a.EnumAppearance.ENABLED+'" }'),this.events$.next({
type:n.ScreenEventType.SHOW_LOADINGSCREEN,id:this.getId()})}hide(){this.publishContent("TEXT",""),this.publishContent("APPEARANCE",'{ "appearance":"'+a.EnumAppearance.HIDDEN+'" }'),this.events$.next({type:n.ScreenEventType.HIDE_LOADINGSCREEN,id:this.getId()})}getMqttTopicBase(){return"~"+s.MqttTopics.HMI_LOADING_MODAL}getId(){return t.LOADING_OVERLAY_ID}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(5),i=_(6);t.DeviceInformationProxy=class extends a.BaseProxy{constructor(){super(...arguments),this.restEndpoint="deviceinformation"}getSerialNo(){let e;return this.body.method=i.RestMethodsDEVICE_INFORMATION.getSerialNoBalance,this.body.params={rString:""},(e=new a.CubisRestResponse(this.syncRequest())).isSuccess()?e.rawReturns.rString:""}getModelName(){let e;return this.body.method=i.RestMethodsDEVICE_INFORMATION.getModelName,this.body.params={rString:""},(e=new a.CubisRestResponse(this.syncRequest())).isSuccess()?e.rawReturns.rString:""}}
},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOCKING_ASPECT="LOCKING_ASPECT"},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(8),i=_(0),n=_(10),s=_(4),r=_(11),E=_(2);t.LOCKMESSAGEBOX_ID="LOCKMESSAGEBOX";class o{constructor(e){this.appearance=i.EnumAppearance.HIDDEN,this.lastPublishedTabContent={appearance:i.EnumAppearance.HIDDEN,type:n.EnumMessageboxType.INFO,title:{id:"",args:[]},text:{id:"",args:[]},textsList:[],buttons:[]},this.messageBoxObject={appearance:i.EnumAppearance.HIDDEN,type:n.EnumMessageboxType.INFO,title:{id:"",args:[]},text:{id:"",args:[]},textsList:[],buttons:[]},this.events$=new r.Subject,this.mqttHandler=e,this.buttonList=[]}setMessageBoxData(e,t=!0){this.setBackgroundColor(e.backgroundColor,!1),this.setIconColor(e.iconColor,!1),this.setType(e.type,!1),this.setTitle(e.title,!1),this.setTextsList(e.textList,!1),this.createButtons(e.buttons.map(e=>({buttonId:e.id,label:e.label,
appearance:e.appearance}))),this.publish(t)}createButtons(e){this.buttonList.splice(0,this.buttonList.length),this.messageBoxObject.buttons.splice(0,this.messageBoxObject.buttons.length),console.log("LockMessageBox: createButtons buttonlist cleared: "+this.buttonList.length),console.log("LockMessageBox: createButtons buttonlist json cleared: "+this.messageBoxObject.buttons.length);for(let t of e)if(void 0===this.getButton(t.buttonId)){let e=new a.default(this.mqttHandler,this,t);this.buttonList.push(e),this.messageBoxObject.buttons.push(e.getJson())}else console.error("LockMessageBox: Duplicate Button: "+t.buttonId);console.log("LockMessageBox: createButtons number of buttons: "+this.buttonList.length),console.log("LockMessageBox: createButtons json result: "+JSON.stringify(this.messageBoxObject))}removeButtons(e){console.log("LockMessageBox: removeButtons ");for(let t of e){
for(let e=0;e<this.buttonList.length;e++)this.buttonList[e].getButtonId()===t&&(console.log("LockMessageBox: splice for index: "+e),this.buttonList.splice(e,1),console.log("LockMessageBox: Buttonlist buttons left: "+this.buttonList.length),e=0);console.log("LockMessageBox: Clearing json buttons");for(let e=0;e<this.messageBoxObject.buttons.length;e++){let _=this.messageBoxObject.buttons[e];if(console.log("LockMessageBox: buttonId "+_.effect.params.buttonId),_.effect.params.buttonId===t){let t=this.messageBoxObject.buttons.splice(e,1);console.log("LockMessageBox: Removed JSON Button: "+t[0]),console.log("LockMessageBox: ButtonJSON buttons left: "+this.messageBoxObject.buttons.length),e=0}}}}publish(e=!0){let t=JSON.stringify(this.messageBoxObject),_=JSON.stringify(this.lastPublishedTabContent)
;e&&(t!==_&&this.messageBoxObject.appearance===i.EnumAppearance.ENABLED||this.lastPublishedTabContent.appearance===i.EnumAppearance.ENABLED&&this.messageBoxObject.appearance===i.EnumAppearance.HIDDEN)&&(this.mqttHandler.publish(E.MqttTopics.HMI_LOCK_MESSAGEBOX,t),this.lastPublishedTabContent=JSON.parse(t))}getButtonByTopic(e){for(let t of this.buttonList){if(t.getTopic().substring(t.getTopic().lastIndexOf("/")+1)===e)return t}}getButton(e){for(let t of this.buttonList)if(t.getButtonId()===e)return t}setAppearance(e,t=!0){"HIDDEN"!==e&&"ENABLED"!==e||(this.appearance=e,this.messageBoxObject.appearance=e,this.publish(t))}getAppearance(){return this.appearance}setBackgroundColor(e,t=!0){this.messageBoxObject.backgroundColor=e,this.publish(t)}getBackgroundColor(){return this.messageBoxObject.backgroundColor}setIconColor(e,t=!0){this.messageBoxObject.iconColor=e,this.publish(t)}getIconColor(){return this.messageBoxObject.iconColor}setType(e,t=!0){this.messageBoxObject.type=e,this.publish(t)
}getType(){return this.messageBoxObject.type}setTitle(e,t=!0){this.messageBoxObject.title=e,this.publish(t)}getTitle(){return this.messageBoxObject.title}setTextsList(e,t=!0){this.messageBoxObject.textsList=e,this.publish(t)}getTextsList(){return this.messageBoxObject.textsList}getText(){return this.messageBoxObject.textsList[0]}getId(){return t.LOCKMESSAGEBOX_ID}hide(){this.appearance===i.EnumAppearance.ENABLED&&(this.setAppearance(i.EnumAppearance.HIDDEN),this.events$.next({type:s.ScreenEventType.HIDE_LOCKMESSAGEBOX,id:this.getId()}))}show(){this.appearance===i.EnumAppearance.HIDDEN&&(this.setAppearance(i.EnumAppearance.ENABLED),this.events$.next({type:s.ScreenEventType.SHOW_LOCKMESSAGEBOX,id:this.getId()}))}}t.LockMessageBox=o,t.default=o},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(38),n=_(4),s=_(2);t.LOCK_LOADING_OVERLAY_ID="LOCK_LOADING_MODAL";t.LockLoadingOverlay=class extends i.AbstractOverlay{setText(e){
this.publishContent("TEXT",JSON.stringify(e))}show(){this.publishContent("APPEARANCE",'{ "appearance":"'+a.EnumAppearance.ENABLED+'" }'),this.events$.next({type:n.ScreenEventType.SHOW_LOCKLOADINGSCREEN,id:this.getId()})}hide(){this.publishContent("TEXT",""),this.publishContent("APPEARANCE",'{ "appearance":"'+a.EnumAppearance.HIDDEN+'" }'),this.events$.next({type:n.ScreenEventType.HIDE_LOCKLOADINGSCREEN,id:this.getId()})}getMqttTopicBase(){return s.MqttTopics.HMI_LOCK_LOADING_MODAL}getId(){return t.LOCK_LOADING_OVERLAY_ID}}},function(e,t){e.exports=require("net")},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTime=function(){return Math.trunc(Date.now()/1e3)}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONNECTION_ASPECT="CONNECTION_ASPECT",t.STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE="STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE",function(e){e[e.MIGRATION_NEEDED=0]="MIGRATION_NEEDED",
e[e.MIGRATION_NOT_NEEDED=1]="MIGRATION_NOT_NEEDED",e[e.MIGRATION_NOT_POSSIBLE=2]="MIGRATION_NOT_POSSIBLE",e[e.MIGRATION_DONE=3]="MIGRATION_DONE",e[e.MIGRATION_FAILED=4]="MIGRATION_FAILED"}(t.EMigrationResult||(t.EMigrationResult={}))},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(28),i=_(91),n=_(3),s=_(21),r=_(20),E=_(9),o=_(26),A=_(8),T=_(96),I=_(19),N=_(31),l=_(36),c=_(58),u=_(104),P=_(39),p=_(37),S=_(105),d=_(7),R=_(5),O=_(54),L=_(106),D=_(1),h=_(2),C=_(0),m=_(6),g=_(25),M=_(13),H=_(34);let f,y=_(59);function B(e,t){return void 0!==f?f.l(e,t):e}t.PROXY_BUTTON_DEFAULT_ID="BUTTON_DOES_NOT_EXIST_proxy_default",t.REPORTING_QUEUE_PROCESS_NEXT_ITEM_TOPIC="RESERVED_REPORTING_INTERVAL",t.REPORTING_QUEUE_DONE_EVENT="RESERVED_REPORTING_INTERVAL_DONE",t.REPORTING_QUEUE_MINIMUM_WAIT_MS=25,t.REPORTING_QUEUE_FAILED_WAIT_MS=100,t.REPORTING_QUEUE_REQUEST_TIMEOUT=1e4,t.PREVENT_AUTO_LOGOUT_INTERVAL_EVENT="RESERVED_PREVENT_AUTO_LOGOUT",t.l=B;let b={},G={
get:function(e,_,a){return null!=_&&void 0!==_&&e.hasOwnProperty(_)&&null!=e[_]&&void 0!==e[_]?Reflect.get(e,_,a):void 0!==f?new A.Button(f.mqttHandler,f.mainScreen,{buttonId:t.PROXY_BUTTON_DEFAULT_ID,appearance:C.EnumAppearance.ENABLED,label:{id:"ERR_PXY_BTN",args:[]}}):void 0}};t.btn=new Proxy(b,G);t.wfRunner=class extends i.QAppAdvBase{constructor(e){super(e),this.QAPP_ID="",this.QAPP_TOKEN="",this.IDEXTEND_PARAM="TASK/DYNAMIC_PARAMETER_",this.IDEXTEND_BUTTON="TASK/DYNAMIC_BUTTON_",this.IDEXTEND_BUTTON_MENU="TASK/DYNAMIC_BUTTON_MENU_",this.IDEXTEND_BUTTON_PARAM="TASK/DYNAMIC_BUTTON_PARAM_",this.IDEXTEND_BUTTON_MSG="TASK/DYNAMIC_BUTTON_MSG_",this.IDEXTEND_BUTTON_TAB="TASK/DYNAMIC_BUTTON_TAB_",this.IDEXTEND_BUTTON_WEIGHING="TASK/DYNAMIC_BUTTON_WGH_",this.IDEXTEND_SCREEN="TASK/DYNAMIC_SCREEN_",this.IDEXTEND_STATE_SCREEN="STATE_SCREEN_",this.DEFAULT_CANCEL_BTN_ID="_CANCEL",this.STATES={},this.STATE_FUNCTIONS=[],this.ENTRY_STATE="",this.SERIAL_NUMBER="",this.MODEL_NAME="",
this.DEVICE_ID1="",this.DEVICE_ID2="",this.DEVICE_APPROVED=!1,this.USER={id:"",name:"",display_name:"",description:"",role_id:"",role_name:""},this.IS_SERVICE=!1,this.IS_ADMIN=!1,this.IS_OPERATOR=!1,this.IS_GUEST=!1,this.localizerTextBuffer={},this.weighingScreenButtons=[],this.weighingSplitScreenButtons=[],this.auditTrailProxy=new L.AuditTrailProxy,this.Metrology=l.createMetrology(),this.lastHeartbeatTimestamp=0,this.reportingPrintBlocksQueue=[],this.reportingQueueActive=!1,this.reportingPrintItemIdentifierMap={},this.reportingQueueTimer=void 0,this.bargraphObject={active:!1,updateTimestamp:0,areaCount:1,effectiveMinimum:0,effectiveMaximum:0,min2:0,min1:0,target:0,max1:0,max2:0},this.messageBoxesCache={},this.preventAutoLogoutInterval=void 0,this.rejectFastButtonPressWaitDuration=650,this.rejectFastButtonPress=!1,this.rejectFastButtonPressUntilTimestamp=0,f=this;let t=this.GET_QAPP_META_DATA();t.hasOwnProperty("qappID")&&(this.QAPP_ID=t.qappID),
t.hasOwnProperty("qappToken")&&(this.QAPP_TOKEN=t.qappToken,this.IDEXTEND_PARAM+=this.QAPP_TOKEN+"_",this.IDEXTEND_BUTTON+=this.QAPP_TOKEN+"_",this.IDEXTEND_BUTTON_MENU+=this.QAPP_TOKEN+"_",this.IDEXTEND_BUTTON_PARAM+=this.QAPP_TOKEN+"_",this.IDEXTEND_BUTTON_MSG+=this.QAPP_TOKEN+"_",this.IDEXTEND_BUTTON_WEIGHING+=this.QAPP_TOKEN+"_",this.IDEXTEND_SCREEN+=this.QAPP_TOKEN+"_",this.IDEXTEND_STATE_SCREEN+=this.QAPP_TOKEN+"_",this.DEFAULT_CANCEL_BTN_ID=this.QAPP_TOKEN+"_"+this.DEFAULT_CANCEL_BTN_ID),t.hasOwnProperty("stateScreenFunctions")&&(this.STATE_FUNCTIONS=t.stateScreenFunctions),t.hasOwnProperty("initialStateFunction")&&(this.ENTRY_STATE=this[t.initialStateFunction]()),this.SERIAL_NUMBER=this.getSerialNumber(),this.MODEL_NAME=this.devicInformationProxy.getModelName(),this.USER=l.get_device_user(),this.IS_SERVICE=this.USER.role_id===O.EnumRoleDbIds.SERVICE_ROLE_ID,this.IS_ADMIN=this.USER.role_id===O.EnumRoleDbIds.ADMIN_ROLE_ID||this.IS_SERVICE,
this.IS_OPERATOR=this.USER.role_id===O.EnumRoleDbIds.OPERATOR_ROLE_ID,this.IS_GUEST=this.USER.role_id===O.EnumRoleDbIds.GUEST_ROLE_ID,this.DATETIME_CONFIGURATION=c.getDateTimeConfiguration(),this.mqttHandler.mqttUpdateEvent$.subscribe(e=>{M.isObject(e)&&M.isObject(e.payload)&&M.isString(e.payload.topic)&&this.handleMqttEventsGlobally(e)});let _=this.perform_InternalWebserviceRequest("deviceinformation",m.RestMethodsDEVICE_INFORMATION.getParameter,{rObject:{},id:"DEVICEINFORMATION/SETUP"});try{let e=JSON.parse(_.rawReturns.rObject),t=M.getObjectByID(e.parameters,"DEVICEINFORMATION/SETUP/ID1");t&&(this.DEVICE_ID1=t.value.string),(t=M.getObjectByID(e.parameters,"DEVICEINFORMATION/SETUP/ID2"))&&(this.DEVICE_ID2=t.value.string)}catch(e){}this.skipLotInput=!0,this.ignoreSaveWorkstate=!0,this.skipConfigParamAspect=!0,this.suppressGlobalHomeBtnHandling=!0,this.suppressGlobalLogoutBtnHandling=!0,this.constructor_screens(),this.constructor_states()}constructor_screens(){let e=[]
;this.mainScreen=new u.SingleTabButtonBarScreen(this.mqttHandler,[],{buttonId:this.DEFAULT_CANCEL_BTN_ID,appearance:C.EnumAppearance.ENABLED,label:{id:d.EnumFontLabels.CANCEL,args:[]}}),this.registerScreen(this.mainScreen);let t={id:"",appearance:C.EnumAppearance.ENABLED,containerTitle:{id:"",args:[]},title:{id:"",args:[]},topbuttons:[],type:N.EnumTabType.TAB_MENU,menuType:N.TAB_MENU_TYPE_TOPIC,menubuttons:[],scrollToTop:!1};this.mainScreen.setMenuTab(t),this.paramSelectionScreen=new P.KeyboardScreen(this.mqttHandler,!0),this.registerScreen(this.paramSelectionScreen),this.weighingScreen=new p.WeighingScreen(this.mqttHandler,[]),this.registerScreen(this.weighingScreen),e=[];for(let t=0;t<5;t++)this.weighingScreenButtons[t]=new A.Button(this.mqttHandler,this.weighingScreen,{buttonId:this.IDEXTEND_BUTTON_WEIGHING+t.toFixed(0),appearance:C.EnumAppearance.HIDDEN,label:n.createEmptyTextStructure()}),this.weighingScreenButtons[t].publish(),
e.push("/QAPP/"+this.weighingScreenButtons[t].getTopic());this.mqttHandler.publish(this.weighingScreen.getBarButtonId(),JSON.stringify(e)),this.weighingSplitScreen=new S.WeighingSplitScreen(this.mqttHandler,[]),this.registerScreen(this.weighingSplitScreen),e=[];for(let t=0;t<5;t++)this.weighingSplitScreenButtons[t]=new A.Button(this.mqttHandler,this.weighingSplitScreen,{buttonId:this.IDEXTEND_BUTTON_WEIGHING+"SPLIT"+t.toFixed(0),appearance:C.EnumAppearance.HIDDEN,label:n.createEmptyTextStructure()}),this.weighingSplitScreenButtons[t].publish(),e.push("/QAPP/"+this.weighingSplitScreenButtons[t].getTopic());this.mqttHandler.publish(this.weighingSplitScreen.getBarButtonId(),JSON.stringify(e)),this.tabScreen=new T.TabScreen(this.mqttHandler),this.registerScreen(this.tabScreen)}constructor_states(){this.STATE_FUNCTIONS.forEach(e=>{try{if(""===this[e]())return;let _=JSON.parse(this[e](void 0,"GET_EVENT_LISTENER"))
;_.push(s.EV_HMI_BTN_CLICKED,s.EV_HMI_PARAM_CHANGED,E.QAPP_TIMER_EVENT,E.QAPP_INTERVAL_EVENT,E.IMMEDIATE_EVENT),this.STATES[this[e]()]={_onEnter:function(t){t[e](this,"onEnter")},_onExit:function(_){_[e](this,"onExit");for(const e of Object.values(t.btn))try{_.mqttHandler.publish(e.getTopic(),"")}catch(e){}b={},t.btn=new Proxy(b,G);for(let e=0;e<_.weighingScreenButtons.length;e++)_.weighingScreenButtons[e].setAppearance(C.EnumAppearance.HIDDEN);for(let e=0;e<_.weighingSplitScreenButtons.length;e++)_.weighingSplitScreenButtons[e].setAppearance(C.EnumAppearance.HIDDEN);_.hideBargraph()}},_.includes(s.EV_HMI_BTN_CLICKED)&&(this.STATES[this[e]()].EV_HMI_BTN_CLICKED=function(t,_){t[e](this,_)}),_.includes(s.EV_HMI_PARAM_CHANGED)&&(this.STATES[this[e]()].EV_HMI_PARAM_CHANGED=function(t,_){t[e](this,_)}),_.includes(s.EV_HMI_PARAM_DETAIL)&&(this.STATES[this[e]()].EV_HMI_PARAM_DETAIL=function(t,_){t[e](this,_)}),this.STATES[this[e]()].EV_MQTT_UPDATE=function(t,a){
_.includes(r.EV_MQTT_UPDATE)&&t[e](this,a)},_.includes(E.IMMEDIATE_EVENT)&&(this.STATES[this[e]()].IMMEDIATE_EVENT=function(t,_){t[e](this,_)}),_.includes(s.EV_REST_REQUEST)&&(this.STATES[this[e]()].EV_REST_REQUEST=function(t,_){t[e](this,_)}),_.includes(o.MQTT_ADMIN_EVENT)&&(this.STATES[this[e]()].MQTT_ADMIN_EVENT=function(t,_){t[e](this,_)}),_.includes(o.MQTT_ADMIN_EVENT_PACKET_SENT)&&(this.STATES[this[e]()].MQTT_ADMIN_EVENT_PACKET_SENT=function(t,_){t[e](this,_)}),_.includes(E.SIMPLE_EVENT)&&(this.STATES[this[e]()].SIMPLE_EVENT=function(t,_){t[e](this,_)}),_.includes(E.QAPP_SYNC_CALL_DONE_EVENT)&&(this.STATES[this[e]()].QAPP_SYNC_CALL_DONE_EVENT=function(t,_){t[e](this,_)}),_.includes(E.QAPP_ASYNC_CALL_DONE_EVENT)&&(this.STATES[this[e]()].QAPP_ASYNC_CALL_DONE_EVENT=function(t,_){t[e](this,_)}),_.includes(E.QAPP_ASYNC_CALL_FAIL_EVENT)&&(this.STATES[this[e]()].QAPP_ASYNC_CALL_FAIL_EVENT=function(t,_){t[e](this,_)}),this.STATES[this[e]()].QAPP_TIMER_EVENT=function(t,a){
_.includes(E.QAPP_TIMER_EVENT)&&t[e](this,a)},this.STATES[this[e]()].QAPP_INTERVAL_EVENT=function(t,a){_.includes(E.QAPP_INTERVAL_EVENT)&&t[e](this,a)}}catch(e){}})}adaptFsmStates(e){super.adaptFsmStates(e);for(let _ of Object.keys(e)){const a=e[_].EV_MQTT_UPDATE,i=e[_].EV_HMI_BTN_CLICKED,n=e[_].QAPP_TIMER_EVENT,s=e[_].QAPP_INTERVAL_EVENT;e[_].EV_MQTT_UPDATE=function(e,t){void 0!==a&&a.call(this,e,t),t&&t.payload&&t.payload.topic===h.MqttTopics.WEIGHING_VALUE_NET&&e.handleBargraphUpdate(t),e.report_handleReportingMessages(t)},e[_].EV_HMI_BTN_CLICKED=function(e,t){if(!0===e.rejectFastButtonPress){if(c.getDateTime("ms")<e.rejectFastButtonPressUntilTimestamp)return void console.log("wfRunner: Fast button press rejected");e.rejectFastButtonPress=!1}e.rejectFastButtonPress=!0,e.rejectFastButtonPressUntilTimestamp=c.getDateTime("ms")+e.rejectFastButtonPressWaitDuration,void 0!==i&&i.call(this,e,t)},e[_].QAPP_TIMER_EVENT=function(e,t){void 0!==n&&n.call(this,e,t),
e.report_handleQueuedPrintBlocks(t)},e[_].QAPP_INTERVAL_EVENT=function(e,_){void 0!==s&&s.call(this,e,_),M.isObject(_)&&M.isString(_.payload)&&_.payload===t.PREVENT_AUTO_LOGOUT_INTERVAL_EVENT&&e.preventAutoLogout("justOnce")}}}postInit(){super.postInit(),this.mqttHandler.subscribe(h.MqttTopics.WEIGHING_VALUE_NET),this.mqttHandler.subscribe(h.MqttTopics.REPORTING_PRINTABLE_VALUE),this.mqttHandler.subscribe(h.MqttTopics.MESSAGE_HANDLER_MESSAGE),this.mqttHandler.subscribe(h.MqttTopics.METROLOGY_APPROVED_FOR_VERIFICATION),this.mqttHandler.subscribe(h.MqttTopics.METROLOGY_RANGES)}handleMqttEventsGlobally(e){switch(e.payload.topic){case h.MqttTopics.METROLOGY_APPROVED_FOR_VERIFICATION:{const t=JSON.parse(e.payload.value.toString());return void(M.isBoolean(t.isApproved)&&(this.DEVICE_APPROVED=t.isApproved,console.log("wfRunner: Changed approval state")))}case h.MqttTopics.METROLOGY_RANGES:return void this.updateMetrology()}}updateMetrology(){return this.Metrology=l.getMetrology(),
this.Metrology.unit!==g.EnumUnit.NONE}onSuspending(){super.onSuspending(),this.showLoadingScreen(),this.hideInput(),this.paramSelectionScreen.hide(),this.weighingScreen.hide(),this.weighingSplitScreen.hide(),this.mainScreen.hide(),this.tabScreen.hide(),this.hideMsgBox(),this.preventAutoLogout("disableConstantly"),this.cancelTimer(this.reportingQueueTimer),this.reportingQueueTimer=void 0,this.mqttHandler.publish(h.MqttTopics.HMI_VISUAL_SCREEN,JSON.stringify({closed:!0})),this.weighingProxy.clearTareAll(),this.mqttHandler.unsubscribeTopics()}_____________________GUI__________________(){}l(e,t){if(null!=t&&void 0!==t){if(this.localizerTextBuffer.hasOwnProperty(e)||(this.localizerTextBuffer[e]=this.localizerProxy.getText(e)),M.isBoolean(t))return this.localizerTextBuffer[e].valueOf();if(Array.isArray(t)){let _=this.localizerTextBuffer[e].valueOf();for(let e=0;e<t.length;e++)_=_.replace(new RegExp("%arg"+e.toFixed(0)+"%","g"),t[e]);return _}}return e}preloadTextBuffer(e){let t=[]
;for(let _=0;_<e.length;_++)this.localizerTextBuffer.hasOwnProperty(e[_])||t.push({id:e[_],args:[]});if(t.length<=0)return!0;const _=this.localizerProxy.getTexts(t);if(_.length===e.length){for(let t=0;t<e.length;t++)this.localizerTextBuffer[e[t]]=_[t];return!0}return!1}rejectFastButtonPressSetNextDuration(e){this.rejectFastButtonPress=!0,this.rejectFastButtonPressUntilTimestamp=c.getDateTime("ms")+e}createWeighingScreenButton(e,t,_){let a=n.createEmptyTextStructure();return"string"==typeof t?a.id=t:a=t,a.id=void 0!==a.id?a.id:"",void 0===_&&(_=C.EnumAppearance.ENABLED),this.weighingScreenButtons[e].setAppearance(_),this.weighingScreenButtons[e].setLabel(a),this.weighingScreenButtons[e].publish(),this.weighingScreenButtons[e]}showBargraph(e,t,_,a,i){void 0!=e?(this.bargraphObject.areaCount=1,this.bargraphObject.effectiveMinimum=0,this.bargraphObject.effectiveMaximum=this.Metrology.max,
void 0!==e&&void 0!==t&&void 0!==_&&(M.isNumber(e)?this.bargraphObject.target=e:this.bargraphObject.target=g.convertToTargetUnit(e,this.Metrology.unit).value,M.isNumber(t)?this.bargraphObject.min1=t:this.bargraphObject.min1=g.convertToTargetUnit(t,this.Metrology.unit).value,M.isNumber(_)?this.bargraphObject.max1=_:this.bargraphObject.max1=g.convertToTargetUnit(_,this.Metrology.unit).value,this.bargraphObject.min1<this.bargraphObject.target&&this.bargraphObject.target<this.bargraphObject.max1&&(this.bargraphObject.areaCount=4,this.bargraphObject.effectiveMinimum=this.bargraphObject.min1<=this.bargraphObject.effectiveMinimum?this.bargraphObject.min1-this.Metrology.d:this.bargraphObject.effectiveMinimum,this.bargraphObject.effectiveMaximum=this.bargraphObject.max1>=this.bargraphObject.effectiveMaximum?this.bargraphObject.max1+this.Metrology.d:this.bargraphObject.effectiveMaximum)),
4===this.bargraphObject.areaCount&&void 0!==a&&void 0!==i&&(M.isNumber(a)?this.bargraphObject.min2=a:this.bargraphObject.min2=g.convertToTargetUnit(a,this.Metrology.unit).value,M.isNumber(i)?this.bargraphObject.max2=i:this.bargraphObject.max2=g.convertToTargetUnit(i,this.Metrology.unit).value,this.bargraphObject.min2<this.bargraphObject.min1&&this.bargraphObject.max1<this.bargraphObject.max2&&(this.bargraphObject.areaCount=6,this.bargraphObject.effectiveMinimum=this.bargraphObject.min2<=this.bargraphObject.effectiveMinimum?this.bargraphObject.min2-this.Metrology.d:this.bargraphObject.effectiveMinimum,this.bargraphObject.effectiveMaximum=this.bargraphObject.max2>=this.bargraphObject.effectiveMaximum?this.bargraphObject.max2+this.Metrology.d:this.bargraphObject.effectiveMaximum)),this.mqttHandler.publish(h.MqttTopics.HMI_CHECKBARGRAPH_STATUS,JSON.stringify({appearance:C.EnumAppearance.ENABLED,areas:this.bargraphObject.areaCount.toFixed(0)})),this.bargraphObject.updateTimestamp=0,
this.bargraphObject.active=this.bargraphObject.areaCount>1):this.bargraphObject.areaCount>1&&(this.mqttHandler.publish(h.MqttTopics.HMI_CHECKBARGRAPH_STATUS,JSON.stringify({appearance:C.EnumAppearance.ENABLED,areas:this.bargraphObject.areaCount.toFixed(0)})),this.bargraphObject.updateTimestamp=0,this.bargraphObject.active=!0)}hideBargraph(){this.bargraphObject.active=!1,this.mqttHandler.publish(h.MqttTopics.HMI_CHECKBARGRAPH_STATUS,JSON.stringify({appearance:C.EnumAppearance.HIDDEN,areas:this.bargraphObject.areaCount.toFixed(0)}))}handleBargraphUpdate(e){if(1==this.bargraphObject.active&&Date.now()-this.bargraphObject.updateTimestamp>200){const t=this.parse_MQTT_Weight(e,"any");if(t){let e={area:1,perc:0},_=0,a=0,i=t.value;if(M.isNumber(i)){switch(this.bargraphObject.areaCount){case 4:i<this.bargraphObject.min1?(e.area=1,_=this.bargraphObject.effectiveMinimum,a=this.bargraphObject.min1):i<this.bargraphObject.target?(e.area=2,_=this.bargraphObject.min1,
a=this.bargraphObject.target):i<=this.bargraphObject.max1?(e.area=3,_=this.bargraphObject.target,a=this.bargraphObject.max1):(e.area=4,_=this.bargraphObject.max1,a=this.bargraphObject.effectiveMaximum);break;case 6:i<this.bargraphObject.min2?(e.area=1,_=this.bargraphObject.effectiveMinimum,a=this.bargraphObject.min2):i<this.bargraphObject.min1?(e.area=2,_=this.bargraphObject.min2,a=this.bargraphObject.min1):i<this.bargraphObject.target?(e.area=3,_=this.bargraphObject.min1,a=this.bargraphObject.target):i<=this.bargraphObject.max1?(e.area=4,_=this.bargraphObject.target,a=this.bargraphObject.max1):i<=this.bargraphObject.max2?(e.area=5,_=this.bargraphObject.max1,a=this.bargraphObject.max2):(e.area=6,_=this.bargraphObject.max2,a=this.bargraphObject.effectiveMaximum)}e.perc=(i-_)/Math.abs(a-_)*100,e.perc=Math.max(e.perc,0),e.perc=Math.min(e.perc,100)}else t.info&&"HIGH"===t.info.toString().toUpperCase()?(i=this.bargraphObject.effectiveMaximum,e.area=this.bargraphObject.areaCount,
e.perc=100):(i=this.bargraphObject.effectiveMinimum,e.area=1,e.perc=0);this.mqttHandler.publish(h.MqttTopics.HMI_CHECKBARGRAPH_VALUE,JSON.stringify(e))}this.bargraphObject.updateTimestamp=Date.now()}}createWeighingSplitScreenButton(e,t,_){let a=n.createEmptyTextStructure();return M.isString(t)?a.id=t:a=t,a.id=void 0!==a.id?a.id:"",void 0===_&&(_=C.EnumAppearance.ENABLED),this.weighingSplitScreenButtons[e].setAppearance(_),this.weighingSplitScreenButtons[e].setLabel(a),this.weighingSplitScreenButtons[e].publish(),this.weighingSplitScreenButtons[e]}createParameterButton(e,t){return this.createButton(this.mainScreen,this.IDEXTEND_BUTTON_PARAM,e,t)}createMenuButton(e,t,_){return this.createButton(this.mainScreen,this.IDEXTEND_BUTTON_MENU,e,t,_)}createMessageButton(e,t){return this.createButton(this.mainScreen,this.IDEXTEND_BUTTON_MSG,e,t)}createTabscreenButton(e,t){return this.createButton(this.tabScreen,this.IDEXTEND_BUTTON_TAB,e,t)}createButton(e,t,_,a,i){
let s=n.createEmptyTextStructure();M.isString(_)?s.id=_:s=_,s.id=void 0!==s.id?s.id:"",void 0===a&&(a=C.EnumAppearance.ENABLED),M.isBoolean(i)||(i=!0);let r=t;r+=((s.id.length+1)*Math.floor(100*Math.random()+1)).toString().substring(-4)+Math.floor(c.getDateTime("ms")).toString().substring(-4)+Math.floor(10*Math.random()+1).toString();let E=new A.Button(this.mqttHandler,e,{buttonId:r,appearance:a,label:s});return!0===i&&E.publish(),E}showMessageBox(e,t,_,a,i,n){if(M.isObject(e))return void super.showMessageBox(e);if(e=e,void 0===t||void 0===_||!Array.isArray(a))return void console.log("wfRunner: showMessageBox: missing arguments");let s=[];for(let e=0;e<a.length;e++)s[e]={appearance:a[e].getAppearance(),label:a[e].getLabel(),id:a[e].getButtonId()};M.isString(t)&&(t={id:t,args:[]}),t=t;let r=[];if(Array.isArray(_))r=_;else{let e="";M.isString(_)&&(e=this.l(_,!0));let t=e.split("<br>");1===t.length&&(t=e.split("\n"));for(var E=0;E<t.length;E++)r.push({id:t[E],args:[]})}
i=M.isString(i)&&7===i.length?i:"#FFFFFF",M.isNumber(n)||(n=1),n=n;let o={type:e,title:t,textList:r,buttons:s,backgroundColor:i};this.messageBoxesCache[n]=o,n>=this.getMostPriorMessageBoxIndex()&&this.showMostPriorMessageBox(),console.log("wfRunner: Number of messages in cache: "+Object.keys(this.messageBoxesCache).length)}hideMsgBox(e){if(M.isNumber(e)||(e=1),-1===(e=e))return this.hideMostPriorMessageBox(),void(this.messageBoxesCache={});e===this.getMostPriorMessageBoxIndex()&&this.hideMostPriorMessageBox(),this.messageBoxesCache.hasOwnProperty(e)&&delete this.messageBoxesCache[e],this.showMostPriorMessageBox(),console.log("wfRunner: Number of messages in cache: "+Object.keys(this.messageBoxesCache).length)}showMostPriorMessageBox(){const e=this.getMostPriorMessageBoxIndex();e>0&&(super.hideMsgBox(),super.showMessageBox(this.messageBoxesCache[e]))}hideMostPriorMessageBox(){super.hideMsgBox()}getMostPriorMessageBoxIndex(){let e=l.sortKeys(this.messageBoxesCache)
;return e.length>0?parseInt(e[e.length-1]):0}setWeighingScreenParams(e,t,_,a,i,n){return this._setWeighingScreenParams(this.weighingScreen,e,t,_,a,i,n)}setWeighingSplitScreenParams(e,t,_,a,i,n){return this._setWeighingScreenParams(this.weighingSplitScreen,e,t,_,a,i,n)}_setWeighingScreenParams(e,t,_,a,i,s,r){let E=n.createEmptyTextStructure();M.isString(_)?E.id=_:E=_;let o=n.createEmptyTextStructure();M.isString(a)?o.id=a:o=a,M.isString(s)||(s=this.QAPP_TOKEN+"_WGHSCR_PARAM_"+t.toFixed()),M.isBoolean(r)||(r=!1);const A=new I.Param(this.mqttHandler,{id:s,header:E,title:o,type:C.EnumParameterTypes.PARAM_STRING,appearance:!0===r?C.EnumAppearance.ENABLED_EDITABLE:C.EnumAppearance.ENABLED,info:{minimum:{length:0},maximum:{length:1/0}},value:{string:i}});return A.publish(),1===t?e.setParam1(A.getPublishedId()):2===t&&e.setParam2(A.getPublishedId()),A}getSplitScreenTabParamList(e){let t={id:this.IDEXTEND_SCREEN+Math.floor(Math.random()*Math.floor(1e6)).toString(),
appearance:C.EnumAppearance.ENABLED,type:N.EnumTabType.TAB_PARAMLIST,containerTitle:n.createEmptyTextStructure(),title:n.createEmptyTextStructure(),topbuttons:[],displayHeader:!1,params:[]};for(var _=0;_<e.length;_++){let a=new I.Param(this.mqttHandler,{id:this.IDEXTEND_PARAM+Math.floor(Math.random()*Math.floor(1e5)).toString(),type:C.EnumParameterTypes.PARAM_STRING,appearance:C.EnumAppearance.ENABLED,value:{string:e[_].value},title:{id:e[_].title,args:[]},header:{id:"",args:[]},info:{maximum:{length:NaN},minimum:{length:NaN}}});a.publish(),t.params.push(a.getPublishedId())}return t}setSplitScreenTabHeader(e,t){if(e>0)for(let t=0;t<e;t++){let e=this.weighingSplitScreen.getTabApi().getTab(this.IDEXTEND_SCREEN+"SPLITSCREEN_"+t.toString());e&&void 0!==e||this.addSplitScreenTab(this.IDEXTEND_SCREEN+"SPLITSCREEN_"+t.toString())}let _=this.IDEXTEND_SCREEN+"SPLITSCREEN_"+e.toString(),a=this.weighingSplitScreen.getTabApi().getTab(_)
;a&&void 0!==a||(a=this.addSplitScreenTab(this.IDEXTEND_SCREEN+"SPLITSCREEN_"+e.toString())),(a=a).setTabTitle({id:t,args:[]})}setSplitScreenTabParamList(e,t,_,a,i){if(M.isBoolean(i)||(i=!0),e>0)for(let t=0;t<e;t++){let e=this.weighingSplitScreen.getTabApi().getTab(this.IDEXTEND_SCREEN+"SPLITSCREEN_"+t.toString());e&&void 0!==e||this.addSplitScreenTab(this.IDEXTEND_SCREEN+"SPLITSCREEN_"+t.toString())}let s=this.IDEXTEND_SCREEN+"SPLITSCREEN_"+e.toString(),r=this.weighingSplitScreen.getTabApi().getTab(s);r&&void 0!==r||(r=this.addSplitScreenTab(this.IDEXTEND_SCREEN+"SPLITSCREEN_"+e.toString())),r=r;let E=n.createEmptyStringParameter();M.isString(_)?(E.value.string=_,E.info={minimum:{length:NaN},maximum:{length:NaN}}):E=_,E.id=this.IDEXTEND_PARAM+"SPLITSCREEN_"+e.toString()+"_PARAM"+t,E.appearance=C.EnumAppearance.ENABLED,E.title={id:void 0!==a?a:"",args:[]};const o=new I.Param(this.mqttHandler,E);let A=r.getTabParams();A.includes(o.getPublishedId())||A.push(o.getPublishedId()),
r.setTabParams(A),!0===i&&r.publishTabParams()}setSplitScreenTabText(e,t,_){if(e>0)for(let t=0;t<e;t++){let e=this.weighingSplitScreen.getTabApi().getTab(this.IDEXTEND_SCREEN+"SPLITSCREEN_"+t.toString());e&&void 0!==e||this.addSplitScreenTab(this.IDEXTEND_SCREEN+"SPLITSCREEN_"+t.toString())}let a=this.IDEXTEND_SCREEN+"SPLITSCREEN_"+e.toString(),i=this.weighingSplitScreen.getTabApi().getTab(a);i&&void 0!==i||(i=this.addSplitScreenTab(this.IDEXTEND_SCREEN+"SPLITSCREEN_"+e.toString())),i=i;let n=new I.Param(this.mqttHandler,{id:this.IDEXTEND_PARAM+"SPLITSCREEN_"+e.toString()+"_TEXT",type:C.EnumParameterTypes.PARAM_STRING,appearance:C.EnumAppearance.ENABLED,value:{string:t},title:{id:"",args:[]},header:{id:"",args:[]},info:{maximum:{length:NaN},minimum:{length:NaN}}});n.publish();let s=i.getTabParams();s.includes(n.getPublishedId())||s.push(n.getPublishedId()),i.setTabParams(s),void 0!==_&&i.setTabTitle({id:_,args:[]}),i.publishTabParams()}addSplitScreenTab(e,t){let _={id:e,
appearance:C.EnumAppearance.ENABLED,type:N.EnumTabType.TAB_PARAMLIST,containerTitle:n.createEmptyTextStructure(),title:n.createEmptyTextStructure(),topbuttons:[],displayHeader:!1,params:[]};return this.weighingSplitScreen.getTabApi().addParamListTab(e,_),this.weighingSplitScreen.getTabApi().publishTabList(),this.weighingSplitScreen.getTabApi().getTab(e)}_____________________PARAMETER_INPUT__________________(){}openESignature(){return this.hideMostPriorMessageBox(),this.mqttHandler.publish(h.MqttTopics.ESIGNATURE_PERFORM,JSON.stringify({appearance:C.EnumAppearance.ENABLED})),!0}openInputText(e,t,_,a,i){let s=n.createEmptyStringParameter();s.id=e,s.appearance=C.EnumAppearance.ENABLED;let r=n.createEmptyTextStructure();return M.isString(t)?r.id=t:r=t,s.header=r,s.title=r,s.value.string=M.isString(_)?_:"",s.info={minimum:{length:M.isNumber(a)?a:0},maximum:{length:M.isNumber(i)?i:0}},this.mqttHandler.publish(h.MqttTopics.HMI_QAPP_PARAMETER_INPUT,JSON.stringify({
appearance:C.EnumAppearance.ENABLED,param:s})),!0}openInputDateTime(e,t,_,a,i){let s=n.createEmptyDateTimeParameter();s.id=e,s.appearance=C.EnumAppearance.ENABLED;let r=n.createEmptyTextStructure();return M.isString(t)?r.id=t:r=t,s.header=r,s.title=r,s.value.timestamp=M.isNumber(_)?_:c.getDateTime("s",void 0,_,"iso"),s.info={isDate:!M.isBoolean(a)||a,isTime:!M.isBoolean(i)||i},this.mqttHandler.publish(h.MqttTopics.HMI_QAPP_PARAMETER_INPUT,JSON.stringify({appearance:C.EnumAppearance.ENABLED,param:s})),!0}openInputNumber(e,t,_,a,i,s){let r=n.createEmptyQuantityParameter();r.id=e,r.appearance=C.EnumAppearance.ENABLED;let E=n.createEmptyTextStructure();M.isString(t)?E.id=t:E=t,r.header=E,r.title=E;let o={value:0,unit:g.EnumUnit.NONE,decimals:0},A=[];if(M.isNumber(_)?A.push(_.toString()):M.isObject(_)&&(A.push(g.formatQuantityParam_numberOnly(_)),o=_),r.directInput=!0,M.isObject(s)&&s.length>0){s=s;for(let e=0;e<s.length;e++){let t=""
;M.isNumber(s[e])?t=s[e].toString():M.isObject(s[e])&&(t=g.formatQuantityParam_numberOnly(s[e])),A.indexOf(t)>=0||A.push(t)}A.length>1&&(r.directInput=!1)}return r.value={decimals:o.decimals,preferredDecimals:o.decimals,numbers:A,unit:g.getUnitString(o.unit)},(a=M.isNumber(a)?a:-1/0)>(i=M.isNumber(i)?i:1/0)&&(i=1/0),r.info={minimum:{value:a.toString()},maximum:{value:i.toString()}},this.mqttHandler.publish(h.MqttTopics.HMI_QAPP_PARAMETER_INPUT,JSON.stringify({appearance:C.EnumAppearance.ENABLED,param:r})),!0}openInputSelection(e,t,_,a,i){let s,r={id:""},E=[];if(!0===(i=!!M.isBoolean(i)&&i)){s=n.createEmptyMultipleSelectionParameter(),void 0!=a&&M.isString(a)&&(a=[a]);for(let e=0;e<a.length;e++)E.push({id:a[e]})}else s=n.createEmptySelectionParameter(),void 0!=a&&(Array.isArray(a)&&a.length>0&&(a=a[0]),r.id=M.isString(a)?a:"");s.id=e,s.appearance=C.EnumAppearance.ENABLED;let o=n.createEmptyTextStructure();M.isString(t)?o.id=t:o=t,s.header=o,s.title=o;let A=[]
;for(let e=0;e<_.length;e++)if(""!==_[e].id){let t=n.createEmptyTextStructure();M.isString(_[e].text)?t.id=_[e].text:t=_[e].text,null==M.getObjectByID(A,_[e].id)&&A.push({id:_[e].id,text:t,appearance:M.isString(_[e].appearance)?_[e].appearance:C.EnumAppearance.ENABLED})}return s.info={options:A},s.type===C.EnumParameterTypes.PARAM_SELECTION?s.value.selection=r:s.type===C.EnumParameterTypes.PARAM_MULTIPLE_SELECTION&&(s.value.selections=E),this.mqttHandler.publish(h.MqttTopics.HMI_QAPP_PARAMETER_INPUT,JSON.stringify({appearance:C.EnumAppearance.ENABLED,param:s})),!0}parseParamInput(e){let t="";return M.isObject(e)&&M.isString(e.type)&&e.type===s.EV_HMI_PARAM_CHANGED&&M.isObject(e.payload)&&M.isObject(e.payload.parameter)?{id:t=e.payload.parameter.id,isHandled:!0,get isValid(){if(e.payload.parameter.type===C.EnumParameterTypes.PARAM_STRING){if(M.isObject(e.payload.parameter.value)&&M.isString(e.payload.parameter.value.string))return!0
}else if(e.payload.parameter.type===C.EnumParameterTypes.PARAM_SELECTION){if(M.isObject(e.payload.parameter.value)&&M.isObject(e.payload.parameter.value.selection)&&M.isString(e.payload.parameter.value.selection.id)&&M.isObject(e.payload.parameter.value.selection.text))return!0}else if(e.payload.parameter.type===C.EnumParameterTypes.PARAM_MULTIPLE_SELECTION){if(M.isObject(e.payload.parameter.value)&&M.isObject(e.payload.parameter.value.selections)&&Array.isArray(e.payload.parameter.value.selections))return!0}else if(e.payload.parameter.type===C.EnumParameterTypes.PARAM_QUANTITY){if(M.isObject(e.payload.parameter.value)&&M.isObject(e.payload.parameter.value.numbers)&&M.isString(e.payload.parameter.value.numbers[0])&&M.isNumber(parseFloat(e.payload.parameter.value.numbers[0])))return!0}else if(e.payload.parameter.type===C.EnumParameterTypes.PARAM_DATE_TIME&&M.isObject(e.payload.parameter.value)&&M.isNumber(e.payload.parameter.value.timestamp))return!0;return!1},get rString(){
return M.isObject(e.payload.parameter.value)&&M.isString(e.payload.parameter.value.string)?e.payload.parameter.value.string:""},get rInteger(){return M.isObject(e.payload.parameter.value)&&M.isObject(e.payload.parameter.value.numbers)&&M.isString(e.payload.parameter.value.numbers[0])&&M.isNumber(parseInt(e.payload.parameter.value.numbers[0]))?parseInt(e.payload.parameter.value.numbers[0]):NaN},get rFloat(){return M.isObject(e.payload.parameter.value)&&M.isObject(e.payload.parameter.value.numbers)&&M.isString(e.payload.parameter.value.numbers[0])&&M.isNumber(parseFloat(e.payload.parameter.value.numbers[0]))?parseFloat(e.payload.parameter.value.numbers[0]):NaN},get rSelectionID(){return M.isObject(e.payload.parameter.value)&&M.isObject(e.payload.parameter.value.selection)&&M.isString(e.payload.parameter.value.selection.id)?e.payload.parameter.value.selection.id:""},get rMultipleSelectionIDs(){
if(M.isObject(e.payload.parameter.value)&&M.isObject(e.payload.parameter.value.selections)&&Array.isArray(e.payload.parameter.value.selections)){let t=[];for(let _=0;_<e.payload.parameter.value.selections.length;_++)t.push(e.payload.parameter.value.selections[_].id);return t}return[]},get rDateTimeISO(){return M.isObject(e.payload.parameter.value)&&M.isNumber(e.payload.parameter.value.timestamp)?c.getDateTime("iso",void 0,e.payload.parameter.value.timestamp,"s"):c.getDateTime("iso",void 0,0)},get rDateTimeISOtimezone(){return M.isObject(e.payload.parameter.value)&&M.isNumber(e.payload.parameter.value.timestamp)?c.getDateTime("isoTimezone",void 0,e.payload.parameter.value.timestamp,"s"):c.getDateTime("isoTimezone",void 0,0)},get rDateTimeSeconds(){return M.isObject(e.payload.parameter.value)&&M.isNumber(e.payload.parameter.value.timestamp)?e.payload.parameter.value.timestamp:0}}:{id:"",isHandled:!1,isValid:!1,get rString(){return""},get rInteger(){return 0},get rFloat(){return 0},
get rSelectionID(){return""},get rMultipleSelectionIDs(){return[]},get rDateTimeISO(){return c.getDateTime("iso",void 0,0)},get rDateTimeISOtimezone(){return c.getDateTime("isoTimezone",void 0,0)},get rDateTimeSeconds(){return 0}}}hideInput(){this.mqttHandler.publish(h.MqttTopics.HMI_QAPP_PARAMETER_INPUT,JSON.stringify({appearance:C.EnumAppearance.HIDDEN,param:{}}))}_____________________EVENT_HANDLING__________________(){}parse_MQTT_Weight(e,t){void 0===t&&(t="any");let _=null;e&&e.payload&&e.payload.value&&(_=JSON.parse(e.payload.value.toString()));let a=!1,i=!1,n=!1,s={value:NaN,unit:g.EnumUnit.NONE,decimals:0,timestamp:c.getDateTime("ms"),deviceserial:this.SERIAL_NUMBER};if(_&&_.alibiId&&_.alibiId>0&&e.payload.topic&&e.payload.topic===h.MqttTopics.REPORTING_PRINTABLE_VALUE){if("STABLE"!==_.state)return null;if(s.alibiId=_.alibiId,_.hasOwnProperty("weightBlock")&&_.weightBlock.length>0&&_.weightBlock[0].hasOwnProperty("value")&&(s.value=parseFloat(_.weightBlock[0].value.number),
M.isNumber(s.value)||(s.info=_.weightBlock[0].value.number),M.isNumber(s.value)&&"-"===_.weightBlock[0].value.sign&&(s.value*=-1),s.decimals=_.weightBlock[0].value.decimals,s.unit=H.UnitEnum_Lib2Api(_.weightBlock[0].value.unit),s.stable=_.weightBlock[0].value.isStable,a=_.weightBlock[0].value.isSpecial,i=_.weightBlock[0].value.isInvalid,n=_.weightBlock[0].value.isWarning,M.isNumber(s.value))){if(s.alibi=g._formatQuantityParam_numberOnly(s.value,s.decimals),M.isNumber(_.weightBlock[0].value.auxiliaryDigits)&&_.weightBlock[0].value.auxiliaryDigits>0){s.auxiliaryDigits=_.weightBlock[0].value.auxiliaryDigits;let e=s.alibi.length-(_.weightBlock[0].value.auxiliaryDigits+(_.weightBlock[0].value.auxiliaryDigits>s.decimals?1:0)),t=s.alibi.substring(0,e)+"[";s.alibi=t+s.alibi.substring(e)+"]"}s.stable&&(s.alibi+=" "+g.getUnitString(s.unit))}}else if(_&&_.id&&_.id==h.MqttTopics.WEIGHING_WEIGHT_BLOCK){
if(_.hasOwnProperty("parameters")&&_.parameters.length>0)for(var r=0;r<_.parameters.length;r++)if(_.parameters[r].id&&_.parameters[r].id==h.MqttTopics.WEIGHING_WEIGHT_BLOCK+"/ORIGINAL"&&_.parameters[r].parameters&&_.parameters[r].parameters.length>0){s.value=parseFloat(_.parameters[r].parameters[0].value.number),M.isNumber(s.value)||(s.info=_.parameters[r].parameters[0].value.number),M.isNumber(s.value)&&"-"===_.parameters[r].parameters[0].value.sign&&(s.value*=-1),s.decimals=_.parameters[r].parameters[0].value.decimals,s.unit=H.UnitEnum_Lib2Api(_.parameters[r].parameters[0].value.unit),s.stable=_.parameters[r].parameters[0].value.isStable,M.isNumber(_.parameters[r].parameters[0].value.auxiliaryDigits)&&_.parameters[r].parameters[0].value.auxiliaryDigits>0&&(s.auxiliaryDigits=_.parameters[r].parameters[0].value.auxiliaryDigits),a=_.parameters[r].parameters[0].value.isSpecial,i=_.parameters[r].parameters[0].value.isInvalid,n=_.parameters[r].parameters[0].value.isWarning;break}
}else _&&_.id&&[h.MqttTopics.WEIGHING_VALUE_NET,h.MqttTopics.WEIGHING_VALUE_GROSS,h.MqttTopics.WEIGHING_VALUE_TARE,h.MqttTopics.WEIGHING_VALUE_TARE1,h.MqttTopics.WEIGHING_VALUE_TARE2].indexOf(_.id)>=0&&_.hasOwnProperty("value")&&(s.value=parseFloat(_.value.number),M.isNumber(s.value)||(s.info=_.value.number),M.isNumber(s.value)&&"-"===_.value.sign&&(s.value*=-1),s.decimals=_.value.decimals,s.unit=H.UnitEnum_Lib2Api(_.value.unit),s.stable=_.value.isStable,M.isNumber(_.value.auxiliaryDigits)&&_.value.auxiliaryDigits>0&&(s.auxiliaryDigits=_.value.auxiliaryDigits),a=_.value.isSpecial,i=_.value.isInvalid,n=_.value.isWarning);return a&&M.isNumber(s.value)&&(s.info=s.value.toString(),s.value=Number.NaN),"any"!==t&&!M.isNumber(s.value)||("valid"===t||"alibi"===t)&&(a||i)?null:"alibi"===t&&(n||void 0===s.alibiId||s.alibiId<0)?null:s}parse_MQTT_WebserviceRequest(e){if(!e||!e.payload)return;let t={isSuccess:!0,error:"",statusCode:0,headers:{},body:null,url:"",metadata:""}
;if(t.metadata=M.isString(e.payload.metadata)?e.payload.metadata:"",void 0===e.payload.result)return t.isSuccess=!1,t.error="Missing WebserviceRequest Promise data",t;try{t.isSuccess=!0===e.payload.result.isSuccess,t.error=e.payload.result.error.toString(),t.statusCode=1*e.payload.result.statusCode,t.headers=e.payload.result.headers,t.body=e.payload.result.body,t.url=e.payload.result.url.toString()}catch(e){return t.isSuccess=!1,t.error="Malformated WebserviceRequest Promise data",t}return t.isSuccess&&M.isString(e.payload.sourceState)&&e.payload.sourceState!==this.getCurrentState()?void 0:(t.isSuccess&&t.statusCode>=300&&(t.isSuccess=!1,t.error="Server responded with status code: "+t.statusCode),t)}parse_MQTT_ESignature(e){if(M.isObject(e)&&M.isString(e.type)&&e.type===r.EV_MQTT_UPDATE&&M.isObject(e)&&M.isObject(e.payload)&&e.payload.topic===h.MqttTopics.ESIGNATURE_RESULT){let t=JSON.parse(e.payload.value.toString());return this.showMostPriorMessageBox(),{isHandled:!0,
signatureSucessful:t.signatureSucessful,hasUserPassword:t.hasUserPassword}}return{isHandled:!1,signatureSucessful:!1,hasUserPassword:!1}}_____________________REPORTING__________________(){}report_clearPrintQueue(){return this.reportingQueueActive=!1,this.reportingPrintBlocksQueue=[],this.reportingPrintItemIdentifierMap={},this.reportingProxy.clearPrintQueue().isSuccess()}report_getTitleHeaderValue(e,t,_){return this.report_getKeyValuePair(t,_,e)}report_getValueString(e){return this.report_getKeyValuePair("","",e)}report_getTitleValue(e,t){return this.report_getKeyValuePair("",t,e)}report_getKeyValuePair(e,t,_){let a;return null!=_&&void 0!==_&&""!==_||(_=" "),null!=e&&void 0!==e&&""!==e||(e=" "),(a=M.isString(t)?this.report_getStringParam("",_,e,t):M.isObject(t)&&M.isNumber(t.value)&&M.isNumber(t.decimals)?this.report_getMeasureParam("",_,e,t):this.report_getStringParam("",_,e,"N.A.")).appearance=C.EnumAppearance.ENABLED,a}report_getStringParam(e,t,_,a){
let i=n.createEmptyStringParameter();return null!=t&&void 0!==t&&""!==t||(t=" "),null!=_&&void 0!==_&&""!==_||(_=" "),i.id=e,i.title.id=t,i.header.id=_,i.value.string=a,i.info={minimum:{length:0},maximum:{length:1e6}},i.appearance=C.EnumAppearance.ENABLED,i}report_getDateTimeParam(e,t,_){let a=n.createEmptyDateTimeParameter();return t=M.isString(t)?t.length>0?t:" ":B("_QAPP_LIB_PARAM_TITLE_SAMPLE_DATETIME"),a.id=e,a.title.id=t,a.value.timestamp=_,a.appearance=C.EnumAppearance.ENABLED,a}report_getTextParam(e,t){let _=n.createEmptyTextParameter();return _.id=e,_.info.suppressTitle=!0,_.title.id=" ",_.header.id=" ",_.value.text.id=t,_.appearance=C.EnumAppearance.ENABLED,_}report_getDSDParam(e,t){let _=this.report_getTextParam(e,"WRONG DSD FORMAT"),a=-1;if(M.isNumber(t)?a=t:M.isObject(t)&&M.isNumber(t.value)&&(a=t.alibiId),M.isNumber(a)&&a>0){let t=this.reportingProxy.getAlibiRecord(a)
;_=t.isSuccess()?this.reportingProxy.getWeightFromAlibi(t):this.report_getTextParam(e,"MISSING DSD ENTRY ("+a.toFixed(0)+")")}return _.id=e,_.appearance=C.EnumAppearance.ENABLED,_}report_getDSD_IDParam(e,t){let _=this.report_getTextParam(e,"WRONG DSD FORMAT"),a=-1;return M.isNumber(t)?a=t:M.isObject(t)&&M.isNumber(t.value)&&(a=t.alibiId),M.isNumber(a)&&a>0&&(this.reportingProxy.getAlibiRecord(a).isSuccess()?(_=n.createEmptyAlibiIdentifier()).value.alibiIdentifier=a:_=this.report_getTextParam(e,"MISSING DSD ENTRY ("+a.toFixed(0)+")")),_.id=e,_.appearance=C.EnumAppearance.ENABLED,_}report_getQuantityParam(e,t,_,a){let i=n.createEmptyQuantityParameter();return null!=t&&void 0!==t&&""!==t||(t=" "),null!=_&&void 0!==_&&""!==_||(_=" "),i.id=e,i.title.id=t,i.header.id=_,M.isNumber(a)?(i.value.numbers[0]=a.toFixed(0),i.value.decimals=0,i.value.preferredDecimals=0,i.value.unit=" "):M.isObject(a)&&M.isNumber(a.value)&&(a=a,i.value.numbers[0]=g.formatQuantityParam_numberOnly(a),
i.value.decimals=a.decimals,i.value.preferredDecimals=a.decimals,i.value.unit=" "+g.getUnitString(a.unit)),i.appearance=C.EnumAppearance.ENABLED,i}report_getMeasureParam(e,t,_,a){let i=n.createEmptyMeasureParameter();return null!=t&&void 0!==t&&""!==t||(t=" "),null!=_&&void 0!==_&&""!==_||(_=" "),i.id=e,i.title.id=t,i.header.id=_,M.isNumber(a)?(i.value=n.createEmptyMeasureParameterValue(),i.value.mark=B(_,!0),i.value.sign=a<0?"-":"",i.value.number=a.toFixed(0),i.value.decimals=0,i.value.auxiliaryDigits=0,i.value.unit=" ",i.value.interval=1,i.value.isStable=!0,i.value.isSpecial=!1,i.value.isWarning=!1,i.value.isInvalid=!1):M.isObject(a)&&M.isNumber(a.value)&&(a=a,i.value=n.createEmptyMeasureParameterValue(),i.value.mark=B(_,!0),i.value.sign=a.value<0?"-":"",i.value.number=a.value.toFixed(a.decimals),i.value.decimals=a.decimals,i.value.auxiliaryDigits=void 0!==a.auxiliaryDigits?a.auxiliaryDigits:0,i.value.unit=" "+g.getUnitString(a.unit),i.value.interval=Math.pow(10,-1*a.decimals),
i.value.isStable=void 0!==a.stable&&a.stable,i.value.isSpecial=!1,i.value.isWarning=!1,i.value.isInvalid=!1),i.appearance=C.EnumAppearance.ENABLED,i}report_getCodeParam(e,t,_){let a=n.createEmptyBarcodeParameter();return _=void 0!==_?_:C.EnumBarcodeFormats.QR,a.id=e,a.title.id=" ",a.header.id=" ",a.value.string=t,a.value.format=_,a.appearance=C.EnumAppearance.ENABLED,a}report_enqueuePrintBlock(e,_,a,i,n,s){return M.isBoolean(a)||(a=!1),M.isBoolean(i)||(i=!1),M.isString(n)||(n=""),this.reportingPrintBlocksQueue.push({requestType:"ADD_PRINT_BLOCK",printItemIdentifierMapID:s,printItemIdentifierReference:-1,lines:_,blockHeader:e,redactable:a,timeoutTimestamp:-1,invalidationPreset:i,invalidationPresetComment:n}),!1===this.reportingQueueActive&&(this.reportingQueueActive=!0,this.reportingQueueTimer=this.addTimer(t.REPORTING_QUEUE_MINIMUM_WAIT_MS,t.REPORTING_QUEUE_PROCESS_NEXT_ITEM_TOPIC),console.log("wfRunner: Start processing queued REPORTING requests")),!0}
report_enqueueInvalidateBlock(e,_,a){return M.isString(a)||(a=""),this.reportingPrintBlocksQueue.push({requestType:"SET_INVALIDATION",printItemIdentifierMapID:void 0,printItemIdentifierReference:_,lines:[],blockHeader:"",redactable:!0,timeoutTimestamp:-1,invalidationPreset:e,invalidationPresetComment:a}),!1===this.reportingQueueActive&&(this.reportingQueueActive=!0,this.reportingQueueTimer=this.addTimer(t.REPORTING_QUEUE_MINIMUM_WAIT_MS,t.REPORTING_QUEUE_PROCESS_NEXT_ITEM_TOPIC),console.log("wfRunner: Start processing queued REPORTING requests")),!0}report_setupDestinationDirectory(e,t){void 0===e?e="CUBIS_"+this.getSerialNumber()+"_"+y(Date.now(),"yyyy-mm-dd_HH-MM-ss"):e.startsWith("/")&&(e=e.substring(1)),""===e&&(e="CUBIS_"+this.getSerialNumber()+"_"+y(Date.now(),"yyyy-mm-dd_HH-MM-ss")),void 0===t?t="":(t.endsWith("/")||(t+="/"),t.startsWith("/")&&(t=t.substring(1))),this.perform_InternalWebserviceRequest("reporting",m.RestMethodsREPORTING.setPathAndFilenameForNextReport,{
path:t+l.getCompliantFilename(e)})}report_printQueue(e,t){return(M.isString(e)||M.isString(t))&&this.report_setupDestinationDirectory(e,t),this.perform_InternalWebserviceRequest("reporting",m.RestMethodsREPORTING.printPrintQueueWithElectronicSignature,{}).isSuccess()}report_handleQueuedPrintBlocks(e){if(M.isObject(e)&&M.isString(e.payload)&&e.payload===t.REPORTING_QUEUE_PROCESS_NEXT_ITEM_TOPIC){if(!1===this.reportingQueueActive)return;if(0===this.reportingPrintBlocksQueue.length)return console.log("wfRunner: Stopped REPORTING with empty queue"),this.reportingQueueActive=!1,void this.addToEventQueue(new E.ImmediateEvent({topic:t.REPORTING_QUEUE_DONE_EVENT,success:!1}));this.reportingPrintBlocksQueue[0].timeoutTimestamp<0&&(this.reportingPrintBlocksQueue[0].timeoutTimestamp=Date.now()+t.REPORTING_QUEUE_REQUEST_TIMEOUT,console.log("wfRunner: Started processing REPORTING request with ID #"+this.reportingPrintBlocksQueue[0].timeoutTimestamp.toString()))
;const e=D.cloneJSON(this.reportingPrintBlocksQueue[0]);this.reportingQueueActive=!0;let _=new R.CubisRestResponse(!1),a=!1;return"ADD_PRINT_BLOCK"===e.requestType?a=(_=this.reportingProxy.printParameters(e.lines,e.blockHeader,e.redactable)).isSuccess()&&_.rawReturns.printItemIdentifier>=0:"SET_INVALIDATION"===e.requestType&&(a=(_=this.report_setPrintBlockInvalidation(!0,e.printItemIdentifierReference,e.invalidationPresetComment)).isSuccess()),!1===a?void(Date.now()<e.timeoutTimestamp?this.reportingQueueTimer=this.addTimer(t.REPORTING_QUEUE_FAILED_WAIT_MS,t.REPORTING_QUEUE_PROCESS_NEXT_ITEM_TOPIC):(console.log("wfRunner: Timeout for processing REPORTING request with ID #"+e.timeoutTimestamp.toString()),console.log("wfRunner: Cancelled processing queued REPORTING requests"),this.reportingPrintBlocksQueue=[],this.reportingQueueActive=!1,this.addToEventQueue(new E.ImmediateEvent({topic:t.REPORTING_QUEUE_DONE_EVENT,success:!1
})))):("ADD_PRINT_BLOCK"===e.requestType?(M.isString(e.printItemIdentifierMapID)&&(this.reportingPrintItemIdentifierMap[e.printItemIdentifierMapID]=_.rawReturns.printItemIdentifier),!0===e.invalidationPreset&&this.report_enqueueInvalidateBlock(!0,_.rawReturns.printItemIdentifier,e.invalidationPresetComment),console.log("wfRunner: Successfully printed new block (request ID #"+e.timeoutTimestamp.toString()+")"),this.reportingPrintBlocksQueue.splice(0,1)):"SET_INVALIDATION"===e.requestType&&(console.log("wfRunner: Successfully set redaction status for printItemIdentifier "+e.printItemIdentifierReference+" (request ID #"+e.timeoutTimestamp.toString()+")"),this.reportingPrintBlocksQueue.splice(0,1)),0===this.reportingPrintBlocksQueue.length?(console.log("wfRunner: Done all queued REPORTING requests"),this.reportingQueueActive=!1,void this.addToEventQueue(new E.ImmediateEvent({topic:t.REPORTING_QUEUE_DONE_EVENT,success:!0
}))):void(this.reportingQueueTimer=this.addTimer(t.REPORTING_QUEUE_MINIMUM_WAIT_MS,t.REPORTING_QUEUE_PROCESS_NEXT_ITEM_TOPIC)))}}report_setPrintBlockInvalidation(e,t,_){let a=-1;return M.isString(t)&&this.reportingPrintItemIdentifierMap.hasOwnProperty(t)?a=this.reportingPrintItemIdentifierMap[t]:M.isNumber(t)&&(a=t),!M.isNumber(a)||a<0?(console.log("wfRunner: call for setRedactionStatus failed due to missing printItemIdentifier"),new R.CubisRestResponse(!1)):(M.isString(_)||(_=""),this.reportingProxy.setRedactionStatus(a,e,_))}report_handleReportingMessages(e){if(M.isObject(e)&&M.isString(e.payload.topic)&&e.payload.topic===h.MqttTopics.MESSAGE_HANDLER_MESSAGE){let _={_id:-1,title:{id:"",args:[]}};try{_=JSON.parse(e.payload.value.toString())}catch(e){return}if(_.title.id.includes("ERROR861_")&&this.reportingPrintBlocksQueue.length>0&&this.messageHandlerProxy.removeMessage(_._id),
_.title.id.includes("ERROR860_"))return!0===this.reportingQueueActive&&(console.log("wfRunner: Stopped reporting queue because of error 860 (maximum number of lines)"),this.addToEventQueue(new E.ImmediateEvent({topic:t.REPORTING_QUEUE_DONE_EVENT,success:!1}))),this.reportingQueueActive=!1,void(this.reportingPrintBlocksQueue=[]);if(_.title.id.includes("ERROR360_")||_.title.id.includes("ERROR361_"))return!0===this.reportingQueueActive&&(console.log("wfRunner: Stopped reporting queue because interface is not prepared for protocol (error 360/361)"),this.addToEventQueue(new E.ImmediateEvent({topic:t.REPORTING_QUEUE_DONE_EVENT,success:!1}))),this.reportingQueueActive=!1,void(this.reportingPrintBlocksQueue=[])}}_____________________MISC__________________(){}sleep(e){let t=Math.floor(e/1e3),_=e-1e3*t,a=0;for(let e=0;e<t;e++)for(this.heartbeat({message:"busy sleep for a second",value:this.heartbeatCount++}),a=Date.now()+1e3;Date.now()<a;);for(this.heartbeat({message:"busy sleep rest ms",
value:this.heartbeatCount++}),a=Date.now()+_;Date.now()<a;);}preventAutoLogout(e){switch(e){case"justOnce":this.mqttHandler.publish(h.MqttTopics.HMI_EVENT,"auto_logout_timer_reset");break;case"enableConstantly":this.preventAutoLogout("justOnce"),this.preventAutoLogout("disableConstantly"),this.preventAutoLogoutInterval=this.addInterval(3e4,t.PREVENT_AUTO_LOGOUT_INTERVAL_EVENT);break;case"disableConstantly":this.cancelInterval(this.preventAutoLogoutInterval),this.preventAutoLogoutInterval=void 0}}perform_InternalWebserviceRequest(e,t,_){return l.perform_InternalWebserviceRequest(e,t,_)}perform_WebserviceRequest(e,t,_,i,n,s,r,E,o,A,T){return a.__awaiter(this,void 0,void 0,function*(){return l.perform_WebserviceRequest(e,t,_,i,n,s,r,E,o,A,T)})}areEqual(e,t){if(Date.now()-this.lastHeartbeatTimestamp>1e3&&(this.heartbeat({message:"areEqual check",value:this.heartbeatCount++}),this.lastHeartbeatTimestamp=Date.now()),null==e||void 0===e)return null==t||void 0===t
;if(null==t||void 0===t)return!1;if(typeof e!=typeof t)return!1;if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return e===t;for(let _ of Object.keys(e)){if(!t.hasOwnProperty(_))return!1;if(!this.areEqual(e[_],t[_]))return!1}return!0}_____________________QAPPBASE_STUFF__________________(){}provideStartFsmStateAfterLotIdentifier(){return this.ENTRY_STATE}confIdentifierAspect(e,t=""){}addRemainingDataToPQ(){return[]}providePQInitTaskParams(){return[]}resumeAdvAspectIsForcedReinitModificationDetectedFn(){return!1}resumeAdvAspectIsReinitConditionDetectedFn(){return!0}calcResumeState(){return this.ENTRY_STATE}provideSpecificAdvFsmStates(){return this.STATES}doAddSampleDuringReinit2PQ(e){return!1}provideSamplePQParams(e){return[]}reinitWorkstate(){this.prepReinitializedWorkstate({identifiers:[],samples:[]})}initFromWorkstate(){}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;const a=_(43),i=_(92),n=_(52),s=_(93),r=_(45),E=_(9),o=_(57),A=_(14),T=_(26),I=_(1),N=_(2),l=_(0),c="STATE_RECONFIG_DONE",u="STATE_LOT_IDENTIFIER_DONE";t.QAppAdvBase=class extends s.QAppWorkflowBase{constructor(e){super(e),this.advBaseStates={STATE_ASPECT_RESUME_ADV_REINIT_EXIT:{_onEnter:function(e){e.addToEventQueue(new E.ImmediateEvent(i.STATE_ASPECT_RESUME_ADV_REINIT_EXIT))},_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload===i.STATE_ASPECT_RESUME_ADV_REINIT_EXIT&&(e.reinitialize(),this.transition(e,e.skipConfigParamAspect?c:a.STATE_ASPECT_CFG_PARAM_EDIT_ENTER))}},STATE_RECONFIG_DONE:{_onEnter:function(e){e.addToEventQueue(new E.ImmediateEvent(c))},_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload===c&&(e.confIdentifierAspect(!0),this.transition(e,e.skipLotInput?u:o.STATE_ASPECT_IDENTIFIER_ENTER_LOT_INPUT))}},STATE_LOT_IDENTIFIER_DONE:{_onEnter:function(e){e.saveWorkstate(!0)},_onExit:function(e){},
_transTo:{},_transFrom:{},QAPP_SYNC_CALL_DONE_EVENT:function(e,t){t.payload===E.QAPP_SYNC_CALL_DONE_EVENT_TYPE.SYNC_CALL_SAVE_WORKSTATE&&this.transition(e,i.STATE_ASPECT_RESUME_ADV_CONT_EXIT)}},STATE_ASPECT_RESUME_ADV_CONT_EXIT:{_onEnter:function(e){e.showLoadingScreen({id:"_QAPP_LIB_LOADING_OVERLAY_TEXT_PREP_CONT_APP",args:[e.getTaskName()]})},_onExit:function(e){},_transTo:{},_transFrom:{},MQTT_ADMIN_EVENT:function(e,t){e.checkForLoadingScreenEnableEvent(t)?(e.confIdentifierAspect(!0),e.aspects[o.IDENTIFIER_ASPECT].setLotIDs(e.workstate.measurementData.identifiers),e.restoreLastSelectedDisplayValueInfo(),e.initFromWorkstate(),e.addHeartbeatEvent("INIT_PRINTQUEUE_HEARTBEAT")):e.checkForCustomHeartbeatEvent(t,"INIT_PRINTQUEUE_HEARTBEAT")&&(console.log("QAppAdvBase: clearing printQueue."),e.reportingProxy.clearPrintQueue(),e.initPQ(!0)?(console.log("QAppAdvBase: init PQ fin"),
this.transition(e,e.calcResumeState())):(console.log("QAppAdvBase: there are more samples to print - add trigger to queue"),e.addToEventQueue(new E.SimpleEvent("STATE_ASPECT_RESUME_ADV_CONT_EXIT_contInitPQ"))))},SIMPLE_EVENT:function(e,t){"STATE_ASPECT_RESUME_ADV_CONT_EXIT_contInitPQ"===t.payload&&(e.initPQ(!1)?(console.log("QAppAdvBase: init PQ fin"),this.transition(e,e.calcResumeState())):(console.log("QAppAdvBase: there are more samples to print - add trigger to queue"),e.addToEventQueue(new E.SimpleEvent("STATE_ASPECT_RESUME_ADV_CONT_EXIT_contInitPQ"))))}}},this.skipConfigParamAspect=!1,this.skipLotInput=!1,this.workstate=void 0,this.isNewInitialized=!1,this.ignoreSaveWorkstate=!1,this.saveDisplayValueSelectionWithWorkstate=!1,this.initPQIdx=0,this.cfgParamAspect=new a.ConfigParamsAspect,this.registerAspect(this.cfgParamAspect),this.resAdvAspect=new i.ResumeAdvancedAspect,this.registerAspect(this.resAdvAspect),this.workflowTaskHandler=new n.TaskHandler}init(){
console.log("QAppAdvBase::init"),super.init()}postInit(){console.log("QAppAdvBase: postInit"),super.postInit(),this.confParamConfigAspect(),this.confResumeAdvAspect()}confParamConfigAspect(){console.log("QAppAdvBase::confParamConfigAspect"),this.aspects[a.CFG_PARAMS_ASPECT].configure({isValidFn:()=>this.cfgParamAspectIsValidFn(),updateTaskParameterFn:e=>this.cfgParamAspectUpdateTaskParameterFn(e),handleParamUpdateUserActionFn:(e,t)=>this.cfgParamAspectHandleParamUpdateUserActionFn(e,t),returnState:c,taskHandler:this.workflowTaskHandler})}confResumeAdvAspect(){console.log("QAppAdvBase::confResumeAdvAspect"),this.aspects[i.RESUME_ADV_ASPECT].configure({isForcedReinitModificationDetectedFn:()=>this.resumeAdvAspectIsForcedReinitModificationDetectedFn(),isReinitConditionDetectedFn:()=>this.resumeAdvAspectIsReinitConditionDetectedFn(),isContinueConditionDetectedFn:()=>this.resumeAdvAspectIsContinueConditionDetectedFn(),isPersitentWorkstatePresentFn:()=>{let e=void 0!==this.workstate
;return console.log("QAppAdvBase::isPersitentWorkstatePresentFn: ",e),e}})}confIdentifierAspect(e,t=""){console.log("QAppAdvBase::confIdentifierAspect"),this.aspects[o.IDENTIFIER_ASPECT].configure({returnState:e?u:t,taskHandler:this.workflowTaskHandler,autoRememberSIDs:!1}),e&&this.workstate&&this.workstate.measurementData&&this.aspects[o.IDENTIFIER_ASPECT].setLotIDs(this.workstate.measurementData.identifiers)}cfgParamAspectUpdateTaskParameterFn(e){console.log("QAppAdvBase::cfgParamAspectUpdateTaskParameterFn"),this.cfgParamAspectUpdateTaskHandlerAndPublish(e)}cfgParamAspectUpdateTaskHandlerAndPublish(e){return e.type===l.EnumParameterTypes.PARAM_QUANTITY&&A.QuantityParameter.roundToDecimalPlaces(e),!!this.workflowTaskHandler.updateParameter(e)&&(this.cfgParamAspect.publishParameter(e),!0)}cfgParamAspectHandleParamUpdateUserActionFn(e,t){return!0}cfgParamAspectIsValidFn(){return!0}resumeAdvAspectIsForcedReinitModificationDetectedFn(){let e=!1,t=this.taskHandler.getTask()
;return console.log("QAppAdvBase::resumeAdvAspectIsForcedReinitModificationDetectedFn"),this.workstate&&this.workstate.initialTaskHandlerData&&t?(e=!this.relevantParamsAreEqual(this.workstate.initialTaskHandlerData.params,t.params),console.log("QAppAdvBase::resumeAdvAspectIsForcedReinitModificationDetectedFn - return ",e)):console.log("QAppAdvBase::resumeAdvAspectIsForcedReinitModificationDetectedFn: no workstate - return ",e),e}resumeAdvAspectIsContinueConditionDetectedFn(){return!1}adaptTaskHandler(){console.log("QAppAdvBase::adaptTaskHandler")}reinitialize(){console.log("QAppAdvBase::reinitialize"),this.reinitWorkstate()}prepReinitializedWorkstate(e){let t=this.taskHandler.getFilteredTask();t?(console.log("QAppAdvBase::prepReinitializedWorkstate - got filtered task parameter"),this.workstate={measurementData:e,initialTaskHandlerData:I.cloneJSON(this.taskHandler.getTask()),workflowTaskHandlerData:t},
this.workflowTaskHandler.setTask(this.workstate.workflowTaskHandlerData)):this.exitError("QAppAdvBase::prepReinitializedWorkstate: No task parameters in taskHandler - unexpected.")}provideStartFsmState(){return i.STATE_ASPECT_RESUME_ADV_CHECK_STARTUP_ENTER}provideFsmStates(){return Object.assign(this.advBaseStates,this.provideSpecificAdvFsmStates())}adaptFsmStates(e){console.log("QAppAdvBase::adaptFsmStates");for(let t in e){let _=e[t].MQTT_ADMIN_EVENT;void 0!==_&&(e[t].MQTT_ADMIN_EVENT_CHILD=_),e[t].MQTT_ADMIN_EVENT=function(_,a){let i=!1;try{i=a.payload.event===T.MQTT_ADMIN_EVENT_PACKET_SENT&&a.payload.packet.topic===N.MqttTopics.HMI_LOADING_MODAL_TEXT&&JSON.parse(a.payload.packet.payload.toString()).args[1]===E.QAPP_SYNC_CALL_DONE_EVENT_TYPE.SYNC_CALL_SAVE_WORKSTATE}catch(e){}i&&(_.saveWorkstateIntern(),_.addToEventQueue(new E.QAppSyncCallDoneEvent(E.QAPP_SYNC_CALL_DONE_EVENT_TYPE.SYNC_CALL_SAVE_WORKSTATE))),
void 0!==e[t].MQTT_ADMIN_EVENT_CHILD&&e[t].MQTT_ADMIN_EVENT_CHILD.call(this,_,a)}}}onFsmTransition(e){if(e.fromState===r.STATE_UNINITIALIZED_INTERNAL){console.log("QAppAdvBase::onFsmTransition - try to load workstate");try{this.workstate=this.taskMngProxy.getWorkstate(this.taskId),console.log("QAppAdvBase::onFsmTransition - got workstate from persistency")}catch(e){console.log("QAppAdvBase::onFsmTransition - no workstate found - error: "+e),this.workstate=void 0}this.workstate&&this.workflowTaskHandler.setTask(this.workstate.workflowTaskHandlerData)}}saveWorkstateIntern(){this.taskMngProxy.saveWorkstate(this.workstate,this.taskId)}saveWorkstate(e=!0){this.workstate&&!this.ignoreSaveWorkstate?(console.log("QAppAdvBase::saveWorkstate - save workstate: "),e?this.showLoadingScreen({id:"_QAPP_LIB_LOADING_OVERLAY_TEXT_SAVE_WORKSTATE",args:[this.getTaskName(),E.QAPP_SYNC_CALL_DONE_EVENT_TYPE.SYNC_CALL_SAVE_WORKSTATE]}):(this.saveWorkstateIntern(),
this.addToEventQueue(new E.QAppSyncCallDoneEvent(E.QAPP_SYNC_CALL_DONE_EVENT_TYPE.SYNC_CALL_SAVE_WORKSTATE)))):this.addToEventQueue(new E.QAppSyncCallDoneEvent(E.QAPP_SYNC_CALL_DONE_EVENT_TYPE.SYNC_CALL_SAVE_WORKSTATE))}deleteWorkstate(){this.workstate&&this.taskMngProxy.deleteWorkstate(this.taskId)}specificRestart(){if(void 0!==this.workstate){try{this.taskMngProxy.deleteWorkstate(this.taskId)}catch(e){console.log("QAppAdvBase Restart: No workstate to delete")}this.workstate=void 0}}onSuspending(){void 0!==this.workstate&&this.saveDisplayValueSelectionWithWorkstate&&(console.log("save last display value info in workstate"),this.workstate.lastDisplayValDomain=this.lastDisplayValDomain,this.workstate.lastDisplayValAppId=this.weighingProxy.getSelectedDisplayValue().lastSelectedApplicationId,this.saveWorkstateIntern()),super.onSuspending()}restoreLastSelectedDisplayValueInfo(){
void 0!==this.workstate&&this.saveDisplayValueSelectionWithWorkstate&&(console.log("restoreLastSelectedDisplayValueInfo"),void 0!==this.workstate.lastDisplayValDomain&&(this.lastDisplayValDomain=this.workstate.lastDisplayValDomain),void 0!==this.workstate.lastDisplayValAppId&&this.weighingProxy.restoreLastSelectedDisplayValue(this.workstate.lastDisplayValAppId))}initPQ(e,t=!1){if(this.workstate&&this.workstate.measurementData&&this.workstate.measurementData.identifiers){e?(console.log("QAppAdvBase::initPQ: start initPQ"),this.addLotIds2PQ(this.workstate.measurementData.identifiers),this.addInitParams2PQ(this.providePQInitTaskParams()),this.initPQIdx=0):console.log("QAppAdvBase::initPQ: continue initPQ"),console.log("QAppAdvBase::initPQ start initPQIdx = "+this.initPQIdx);let _=0;for(;this.initPQIdx<this.workstate.measurementData.samples.length&&(_<10||t);){let e=this.workstate.measurementData.samples[this.initPQIdx];if(this.initPQIdx++,this.doAddSampleDuringReinit2PQ(e)){
let t=this.addSample2PQ(e,!0,!1);e.valid||void 0===t||this.reportingProxy.setRedactionStatus(t.getPrintItemIdentifier(),!0,e.invalidationReason),this.sampleAdded(),_++}}return console.log("QAppAdvBase::initPQ end initPQIdx = "+this.initPQIdx),this.initPQIdx>=this.workstate.measurementData.samples.length}return!0}addSample2PQ(e,t,_){console.log("QAppAdvBase::addSample2PQ"),this.sampleAdded();let a=this.addSample2PQ_withIds(e.identifiers,this.provideSamplePQParams(e),t,_);return this.updateInvalidationAspectSampleConfig({sample:e}),a}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(9),n=_(15),s=_(10),r=_(7);t.RESUME_ADV_ASPECT="RESUME_ADV_ASPECT",t.STATE_ASPECT_RESUME_ADV_CHECK_STARTUP_ENTER="STATE_ASPECT_RESUME_ADV_CHECK_STARTUP_ENTER",t.STATE_ASPECT_RESUME_ADV_REINIT_EXIT="STATE_ASPECT_RESUME_ADV_REINIT_EXIT",t.STATE_ASPECT_RESUME_ADV_CONT_EXIT="STATE_ASPECT_RESUME_ADV_CONT_EXIT"
;const E="STATE_ASPECT_RESUME_ADV_FORCE_REINIT",o="STATE_ASPECT_RESUME_ADV_QUESTION_CONT",A="BTN_OK",T="BTN_REINIT",I="BTN_CONT";t.ResumeAdvancedAspect=class extends n.AbstractQAppAspect{constructor(){super(...arguments),this.states={STATE_ASPECT_RESUME_ADV_CHECK_STARTUP_ENTER:{_onEnter:function(e){e.aspects[t.RESUME_ADV_ASPECT].cfg.isPersitentWorkstatePresentFn()?e.aspects[t.RESUME_ADV_ASPECT].cfg.isForcedReinitModificationDetectedFn()?e.addToEventQueue(new i.ImmediateEvent(E)):e.aspects[t.RESUME_ADV_ASPECT].cfg.isReinitConditionDetectedFn()?e.addToEventQueue(new i.ImmediateEvent(t.STATE_ASPECT_RESUME_ADV_REINIT_EXIT)):e.aspects[t.RESUME_ADV_ASPECT].cfg.isContinueConditionDetectedFn()?e.addToEventQueue(new i.ImmediateEvent(t.STATE_ASPECT_RESUME_ADV_CONT_EXIT)):e.addToEventQueue(new i.ImmediateEvent(o)):e.addToEventQueue(new i.ImmediateEvent(t.STATE_ASPECT_RESUME_ADV_REINIT_EXIT))},_onExit:function(){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){this.transition(e,t.payload)
}},STATE_ASPECT_RESUME_ADV_FORCE_REINIT:{_onEnter:function(e){e.showMessageBox({type:s.EnumMessageboxType.INFO,title:{id:"_QAPP_LIB_MSG_BOX_INFO_REINIT_TASK_NECESSARY",args:[]},textList:[{id:"_QAPP_LIB_MSG_BOX_INFO_REINIT_TASK_NECESSARY_TEXT",args:[]}],buttons:[{id:A,label:{id:r.EnumFontLabels.OK,args:[]},appearance:a.EnumAppearance.ENABLED_SECONDARY}]})},_onExit:function(e){e.hideMsgBox()},_transTo:{},_transFrom:{},EV_HMI_BTN_CLICKED:function(e,_){_.payload.buttonId===A&&this.transition(e,t.STATE_ASPECT_RESUME_ADV_REINIT_EXIT)}},STATE_ASPECT_RESUME_ADV_QUESTION_CONT:{_onEnter:function(e){e.showMessageBox({type:s.EnumMessageboxType.QUESTION,title:{id:"_QAPP_LIB_MSG_BOX_QUESTION_RESUME_CONTINUE",args:[]},textList:[{id:"_QAPP_LIB_MSG_BOX_QUESTION_RESUME_CONTINUE_TEXT",args:[]}],buttons:[{id:T,label:{id:"_QAPP_LIB_MSG_BOX_QUESTION_RESUME_CONTINUE_BTN_REINIT",args:[]},appearance:a.EnumAppearance.ENABLED_SECONDARY},{id:I,label:{id:"_QAPP_LIB_MSG_BOX_QUESTION_RESUME_CONTINUE_BTN_CONTINUE",
args:[]},appearance:a.EnumAppearance.ENABLED_PRIMARY}]})},_onExit:function(e){e.hideMsgBox()},_transTo:{},_transFrom:{},EV_HMI_BTN_CLICKED:function(e,_){_.payload.buttonId===T?this.transition(e,t.STATE_ASPECT_RESUME_ADV_REINIT_EXIT):_.payload.buttonId===I&&this.transition(e,t.STATE_ASPECT_RESUME_ADV_CONT_EXIT)}}}}getId(){return t.RESUME_ADV_ASPECT}getAspectStates(){return this.states}init(e){this.client=e,this.client?console.log("ResumeAdvancedAspect::init"):console.log("ResumeAdvancedAspect::init - aspect not correctly initialized (no client set) - skip init")}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(17),i=_(57),n=_(12),s=_(55),r=_(3),E=_(27),o=_(20),A=_(9),T=_(94),I=_(95),N=_(41),l=_(21),c=_(1),u=_(2),P=_(0);t.QAppWorkflowBase=class extends a.QAppBase{constructor(e){super(e),this.takeoverBtnPending=!1,this.lastDisplayValDomain=N.ISelectedWeightDisplayValueDomains.SELECTED_DOMAIN_UNDEFINED,this.doRememberLastDisplayValDomain=!1,
this.identifierAspect=new i.IdentifierAspect,this.registerAspect(this.identifierAspect),this.weighingProxy.selectedDisplayValue$.subscribe(e=>{this.doRememberLastDisplayValDomain&&(this.lastDisplayValDomain=e.currentSelectedDomain)})}init(){console.log("QAppWorkflowBase::init"),super.init(),this.identifierAspect.resetSIDsPrevSample(),this.mqttHandler.subscribe(u.MqttTopics.HMI_PRINT_HEADER),this.lastDisplayValDomain=N.ISelectedWeightDisplayValueDomains.SELECTED_DOMAIN_UNDEFINED,this.doRememberLastDisplayValDomain=!1}postInit(){console.log("QAppWorkflowBase::postInit"),super.postInit(),this.confIdentifierAspect(!0,"")}processCLParameters(e){e.length>=5?(this.scriptPath=e[1],this.taskId=e[4],console.log("QAppWorkflowBase: got taskId: "+this.taskId)):(this.taskId=void 0,this.exitError("QAppWorkflowBase::processCLParameters - workflow-Script called without taskId parameter"))}initTaskHandler(){console.log("QAppWorkflowBase: initTaskHandler"),this.loadTask()}adaptTaskHandler(){
console.log("QAppWorkflowBase: adaptTaskHandler")}handleDocuButton(){let e=this.addRemainingDataToPQ();e.length>0&&this.updateRemainingDataPQIDs(e),this.showPrintQueue()}handleEvent(e){if(e instanceof o.MqttUpdateEvent&&e.payload.topic===u.MqttTopics.HMI_PRINT_HEADER)try{JSON.parse(e.payload.value.toString()).isPrintHeaderDisplayed||(this.updateTakeoverBtnToLastRequestedAppearance(),this.takeoverBtnPending=!1)}catch(e){}else{if(e instanceof A.QAppTimerEvent&&"TAKEOVER_BTN_TIMER"===e.payload.id)return this.updateTakeoverBtnToLastRequestedAppearance(),void(this.takeoverBtnPending=!1)
;e instanceof l.HmiButtonClickedEvent&&void 0!==this.buttons.takeoverBtn&&e.payload.buttonId===this.buttons.takeoverBtn.getButtonId()&&(this.buttons.takeoverBtn.getAppearance()!==P.EnumAppearance.ENABLED&&this.buttons.takeoverBtn.getAppearance()!==P.EnumAppearance.ENABLED_SECONDARY&&this.buttons.takeoverBtn.getAppearance()!==P.EnumAppearance.ENABLED_PRIMARY||this.lastRequestedTakeoverBtnAppearance!==P.EnumAppearance.ENABLED&&this.lastRequestedTakeoverBtnAppearance!==P.EnumAppearance.ENABLED_SECONDARY&&this.lastRequestedTakeoverBtnAppearance!==P.EnumAppearance.ENABLED_PRIMARY)||super.handleEvent(e)}}notifyTakeOver(e=!1){this.buttons.takeoverBtn&&(this.takeoverBtnPending=!0,this.lastRequestedTakeoverBtnAppearance!==P.EnumAppearance.HIDDEN&&this.buttons.takeoverBtn.setAppearance(P.EnumAppearance.DISABLED),e&&this.addTimer(1e3,{id:"TAKEOVER_BTN_TIMER"}))}updateRequestedTakeoverButtonAppearance(e){this.lastRequestedTakeoverBtnAppearance=e,
this.takeoverBtnPending||this.updateTakeoverBtnToLastRequestedAppearance()}updateTakeoverBtnToLastRequestedAppearance(){this.buttons.takeoverBtn&&this.buttons.takeoverBtn.setAppearance(this.lastRequestedTakeoverBtnAppearance)}rememberLastSelectedDisplayValueDomain(e){this.doRememberLastDisplayValDomain=e}getLastSelectedDisplayValueDomain(){return this.lastDisplayValDomain}selectLastSelectedDisplayValue(e){this.lastDisplayValDomain===N.ISelectedWeightDisplayValueDomains.SELECTED_DOMAIN_APP?""!==this.weighingProxy.getSelectedDisplayValue().lastSelectedApplicationId?(console.log("restore last selected display display value: "+this.weighingProxy.getSelectedDisplayValue().lastSelectedApplicationId),this.weighingProxy.selectWeightApplication(this.weighingProxy.getSelectedDisplayValue().lastSelectedApplicationId)):(console.log("restore last selected display value: no AppId stored -> select QApp default: "+e),
this.weighingProxy.selectWeightApplication(e)):this.lastDisplayValDomain===N.ISelectedWeightDisplayValueDomains.SELECTED_DOMAIN_UNDEFINED?(console.log("restore last selected display value: undefined domain -> select QApp default: "+e),this.weighingProxy.selectWeightApplication(e)):console.log("restore last selected display value: WEIGHING was selected - do nothing")}addInitParams2PQ(e){if(console.log("QAppWorkflowBase::addInitParams2PQ"),e.length>0)return this.reportingProxy.printParameters(e,s.REPORTING_CATEGORY_INIT,!1)}addLotIds2PQ(e){console.log("QAppWorkflowBase::addLotIds2PQ");let t=[],_=this.identifierAspect.getLotVisualParams().map(e=>c.cloneJSON(e.getValue()));return e.forEach((e,a)=>{i.IdentifierAspect.getLotState(a,this.taskHandler)!==E.EnumLotIdentifierOptions.OFF&&""!==e&&(_[a].value.string=e,_[a].appearance=P.EnumAppearance.ENABLED,t.push(_[a]))}),this.addInitParams2PQ(t)}addSample2PQ_withIds(e,t,_,a){console.log("QAppWorkflowBase::addSample2PQ_withIds")
;let i=[],r=n.remove(t,e=>e.id===I.PARAM_ID_SAMPLE_NO);i.push(...r),i.push(...this.prepSampleIdParams4PQ(e)),r=n.remove(t,e=>e.id===I.PARAM_ID_SAMPLE_DATE),i.push(...r),i.push(...t);let E=this.reportingProxy.printParameters(i,_?s.REPORTING_CATEGORY_COMPONENTS:s.REPORTING_CATEGORY_NONE,a);return this.updateLastSamplePQID(E.getPrintItemIdentifier()),this.updateRemainingDataPQIDs([]),console.log("QAppWorkflowBase::addSample2PQ_withIds: done"),E}prepSampleIdParams4PQ(e){console.log("QAppWorkflowBase::prepSampleIdParams4PQ");let t=[],_=this.identifierAspect.getSIDVisualParams().map(e=>c.cloneJSON(e.getValue()));return e.forEach((e,a)=>{i.IdentifierAspect.getSIDState(a,this.taskHandler)!==E.EnumSampleIdentifierOptions.OFF&&""!==e&&(_[a].value.string=e,_[a].appearance=P.EnumAppearance.ENABLED,t.push(_[a]))}),t}addStatistic2PQ(e,t){if(console.log("QAppWorkflowBase::addStatistic2PQ"),t&&t.getValues().currCalcValues.numSamples>0){let _=[],a=t.getValues().currStatPublishableParameters;if(e){
let t=r.createEmptyTextParameter();t.value.text.id=e,t.info.suppressTitle=!0,_.push(t)}if(a.n.getValue().appearance!==P.EnumAppearance.HIDDEN&&_.push(a.n.getValue()),a.avg.getValue().appearance!==P.EnumAppearance.HIDDEN&&_.push(a.avg.getValue()),a.dev.getValue().appearance!==P.EnumAppearance.HIDDEN&&_.push(a.dev.getValue()),a.variation.getValue().appearance!==P.EnumAppearance.HIDDEN&&_.push(a.variation.getValue()),a.sum.getValue().appearance!==P.EnumAppearance.HIDDEN&&_.push(a.sum.getValue()),a.min.getValue().appearance!==P.EnumAppearance.HIDDEN&&_.push(a.min.getValue()),a.max.getValue().appearance!==P.EnumAppearance.HIDDEN&&_.push(a.max.getValue()),a.diff.getValue().appearance!==P.EnumAppearance.HIDDEN&&_.push(a.diff.getValue()),_.length>0)return this.reportingProxy.printParameters(_,s.REPORTING_CATEGORY_STATISTIC,!1)}}sampleAdded(){console.log("QAppWorkflowBase::sampleAdded"),void 0!==this.buttons.docuButton&&this.buttons.docuButton.setAppearance(P.EnumAppearance.ENABLED_SECONDARY)}
updateRemainingDataPQIDs(e){console.log("QAppWorkflowBase::updateRemainingDataPQIDs ids: "+e),this.updateInvalidationAspectSampleConfig({dependentPrintItemIds:e})}updateLastSamplePQID(e){console.log("QAppWorkflowBase::updateLastSamplePQID id: "+e),this.updateInvalidationAspectSampleConfig({samplePrintItemId:e})}updateInvalidationAspectSampleConfig(e){console.log("QAppWorkflowBase::updateInvalidationAspectSampleConfig");for(let t in this.aspects)if(t===T.INVAL_SAMPLE_ASPECT)return void this.aspects[t].updateCfgSampleOnly(e)}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(0),i=_(9),n=_(15),s=_(10),r=_(39),E=_(3);t.INVAL_SAMPLE_ASPECT="INVAL_SAMPLE_ASPECT",t.STATE_ASPECT_INVAL_SAMPLE_ENTER="STATE_ASPECT_INVAL_SAMPLE_ENTER",t.STATE_ASPECT_INVAL_SAMPLE_REASON="STATE_ASPECT_INVAL_SAMPLE_REASON";const o="BTN_INVAL_YES",A="BTN_INVAL_DONT";t.PARAM_ID_RT_INVAL_REASON_INP="PARAM_ID_RT_INVAL_REASON_INP";class T extends n.AbstractQAppAspect{constructor(){
super(),this.states={STATE_ASPECT_INVAL_SAMPLE_ENTER:{_onEnter:function(e){let _=e.aspects[t.INVAL_SAMPLE_ASPECT];void 0!==_.cfg.sample&&_.cfg.sample.valid?e.showMessageBox({type:s.EnumMessageboxType.QUESTION,title:{id:"",args:[]},textList:[{id:"_QAPP_LIB_MSG_BOX_QUESTION_INVALIDATE_TEXT",args:[_.cfg.sample.sampleNo.toString()]}],buttons:[{id:o,label:{id:"_QAPP_LIB_MBOX_BTN_YES",args:[]},appearance:a.EnumAppearance.ENABLED_SECONDARY},{id:A,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},appearance:a.EnumAppearance.ENABLED_SECONDARY}]}):e.addToEventQueue(new i.ImmediateEvent({from:t.STATE_ASPECT_INVAL_SAMPLE_ENTER,to:_.cfg.exitState}))},_onExit:function(e){e.hideMsgBox()},_transTo:{},_transFrom:{},EV_HMI_BTN_CLICKED:function(e,_){let a=e.aspects[t.INVAL_SAMPLE_ASPECT];_.payload.buttonId===A?this.transition(e,a.cfg.exitState):_.payload.buttonId===o&&(void 0!==a.cfg.sample&&(a.cfg.sample.valid=!1),this.transition(e,t.STATE_ASPECT_INVAL_SAMPLE_REASON))},IMMEDIATE_EVENT:function(e,_){
_.payload.from&&_.payload.from===t.STATE_ASPECT_INVAL_SAMPLE_ENTER&&this.transition(e,_.payload.to)}},STATE_ASPECT_INVAL_SAMPLE_REASON:{_onEnter:function(e){e.screens[r.KEYBOARD_SCREEN_ID].hide();let _=e.aspects[t.INVAL_SAMPLE_ASPECT];e.screens[r.KEYBOARD_SCREEN_ID].setParam(_.sP_4_InvalReason),e.screens[r.KEYBOARD_SCREEN_ID].show()},_onExit:function(e){e.screens[r.KEYBOARD_SCREEN_ID].hide()},_transTo:{},_transFrom:{},EV_HMI_PARAM_CHANGED:function(e,_){console.log("InvalidateSampleAspect - param change in STATE_ASPECT_INVAL_SAMPLE_REASON");let a=e.aspects[t.INVAL_SAMPLE_ASPECT];if(_.payload.parameter.id===t.PARAM_ID_RT_INVAL_REASON_INP){let t=a.cfg.sample;void 0!==t&&(t.invalidationReason=_.payload.parameter.value.string,void 0===a.cfg.samplePrintItemId||isNaN(a.cfg.samplePrintItemId)||e.reportingProxy.setRedactionStatus(a.cfg.samplePrintItemId,!0,t.invalidationReason),void 0!==a.cfg.dependentPrintItemIds&&a.cfg.dependentPrintItemIds.forEach(_=>{
e.reportingProxy.setRedactionStatus(_,!0,t.invalidationReason)})),this.transition(e,a.cfg.exitState)}}}},this.sP_4_InvalReason=T.createInvalidReasonParam(t.PARAM_ID_RT_INVAL_REASON_INP)}static createInvalidReasonParam(e){let t=E.createEmptyStringParameter();return t.id=e,t.title={id:"_QAPP_LIB_PARAM_TITLE_RT_INVAL_REASON",args:[]},t.header={id:"_QAPP_LIB_PARAM_HEADER_RT_INVAL_REASON",args:[]},t}updateCfgSampleOnly(e){this.cfg=Object.assign(this.cfg,e)}getId(){return t.INVAL_SAMPLE_ASPECT}getAspectStates(){return this.states}init(e){if(this.client=e,this.client){if(console.log("InvalidateSampleAspect::init"),!this.client.screens[r.KEYBOARD_SCREEN_ID]){let e=new r.KeyboardScreen(this.client.mqttHandler);this.client.registerScreen(e)}}else console.log("InvalidateSampleAspect::init - aspect not correctly initialized (no client set) - skip init")}}t.InvalidateSampleAspect=T},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(1),i=_(0)
;t.PARAM_ID_SAMPLE_NO="QAPP_LIB_SAMPLE_NO";const n={id:t.PARAM_ID_SAMPLE_NO,type:i.EnumParameterTypes.PARAM_STRING,value:{string:""},header:{id:"_QAPP_LIB_PARAM_HEADER_SAMPLE_NO",args:[]},title:{id:"_QAPP_LIB_PARAM_TITLE_SAMPLE_NO",args:[]},appearance:i.EnumAppearance.HIDDEN,info:{minimum:{length:0},maximum:{length:0}}};function s(){return a.cloneJSON(n)}t.getSampleNumberStringParameter=s,t.createSampleNumberStringParameter=function(e){let t=a.cloneJSON(s());return t.id=e,t},t.PARAM_ID_SAMPLE_DATE="QAPP_LIB_SAMPLE_DATE";const r={id:t.PARAM_ID_SAMPLE_DATE,type:i.EnumParameterTypes.PARAM_DATE_TIME,value:{timestamp:0},header:{id:"_QAPP_LIB_PARAM_HEADER_SAMPLE_DATETIME",args:[]},title:{id:"_QAPP_LIB_PARAM_TITLE_SAMPLE_DATETIME",args:[]},appearance:i.EnumAppearance.HIDDEN,info:{isTime:!0,isDate:!0}};function E(){return a.cloneJSON(r)}t.getSampleDateDTParameter=E,t.createSampleDateDTParameter=function(e){let t=a.cloneJSON(E());return t.id=e,t}},function(e,t,_){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});const a=_(8),i=_(40),n=_(0),s=_(4),r=_(11),E=_(2);t.TAB_SCREEN_ID="TABBEDSCREEN",t.BACK_BUTTON_ID="BTN_BACK",t.BACK_BUTTON_ID_PREFIX=t.BACK_BUTTON_ID+"_";const o={buttonId:"BUTTONS/"+t.BACK_BUTTON_ID,label:{id:"",args:[]},appearance:n.EnumAppearance.ENABLED};t.TabScreen=class extends i.TabApi{constructor(e){super(e,t.TAB_SCREEN_ID),this.events$=new r.Subject,this.backButton=new a.Button(this.mqttHandler,this,o)}hide(){this.mqttHandler.publish(E.MqttTopics.HMI_TABBED_SCREEN,'{ "appearance":"'+n.EnumAppearance.HIDDEN+'" }'),this.events$.next({type:s.ScreenEventType.HIDE_OVERLAY,id:this.getId()})}show(){this.backButton.publish(),this.getTabList().forEach(e=>e.publish()),this.mqttHandler.publish(E.MqttTopics.HMI_TABBED_SCREEN,'{ "appearance":"'+n.EnumAppearance.ENABLED+'" }'),this.events$.next({type:s.ScreenEventType.SHOW_OVERLAY,id:this.getId()})}getId(){return t.TAB_SCREEN_ID}getButton(e){if(e===t.BACK_BUTTON_ID)return this.backButton}
hideBackButton(){this.backButton.setAppearance(n.EnumAppearance.HIDDEN)}showBackButton(){this.backButton.setAppearance(n.EnumAppearance.ENABLED)}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(18);t.TabFigure=class extends a.TabBase{constructor(e,t,_,a=!1){super(t,_,a),this.imageUrl={url:""},this.imageId={id:""},this.setTabData(e)}setTabImgRefUrl(e){this.imageUrl.url!==e&&(this.imageUrl.url=e,this.tabData.imgref=this.imageUrl,this.publishIfEnabled())}setTabImgRefId(e){this.imageId.id!==e&&(this.imageId.id=e,this.tabData.imgref=this.imageId,this.publishIfEnabled())}getTabImgRef(){return this.tabData.imgref}getTabData(){return this.tabData}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.functionReplacer=function(e,t){return"function"==typeof t?t.toString().replace(/(\/\*([\s\S]*?)\*\/)|(\/\/(.*)$)/gm,"").replace(/\s\s+/g,""):t},t.functionReviver=function(e,t){if(""===e)return t;if("string"==typeof t){
let e=/function[^\(]*\(([^\)]*)\)[^\{]*\{([^]*)\}/,_=t.match(e);if(_){let e=_[1].split(",").map(function(e){return e.replace(/\s+/,"")});return new Function(...e,_[2])}}return t}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(18),i=_(12);t.TabGraph=class extends a.TabBase{constructor(e,t,_,a=!1){super(t,_,a),this.setTabData(e)}setData(e,t=!0){i.isEqual(this.tabData.data,e)||(this.tabData.data=e,t?this.publishIfEnabled():this.publishPending=!0)}getData(){return this.tabData.data}getTabData(){return this.tabData}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(18),i=_(31);t.TabParamList=class extends a.TabBase{constructor(e,t,_,a=!1){super(t,_,a),this.setTabData(e)}setTabParams(e){if(this.tabData)if(!i.isITabParamList(this.tabData)||"string"!=typeof e[0]&&0!==e.length){
if(!i.isITabBulkParamList(this.tabData)||"object"!=typeof e[0]&&0!==e.length)throw new Error("TabParamList: given type for parameters and mode of tab does not match");this.tabData.bulkParameters.join()!==e.join()&&(this.tabData.bulkParameters=e,this.publishIfEnabled())}else this.tabData.params.join()!==e.join()&&(this.tabData.params=e,this.publishIfEnabled())}getTabParams(){if(this.tabData){if(i.isITabParamList(this.tabData))return this.tabData.params;if(i.isITabBulkParamList(this.tabData))return this.tabData.bulkParameters;throw new Error("TabParamList expected type of tabdata found")}return[]}setTabDisplayHeader(e){this.tabData.displayHeader!==e&&(this.tabData.displayHeader=e,this.publishIfEnabled())}getTabDisplayHeader(){return this.tabData.displayHeader}publishTabParams(){this.publish()}getTabData(){return this.tabData}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(18),i=_(31),n=_(8);t.TabMenu=class extends a.TabBase{
constructor(e,t,_,a=!1){super(t,_,a),this.setTabData(e)}setTabMenuButtons(e,t=!0){if(this.tabData&&e.length>0)if(console.log("isMenu:"+i.isITabMenu(this.tabData)),console.log("isMenuBulk:"+i.isITabBulkMenu(this.tabData)),console.log("buttons:"+JSON.stringify(e)),i.isITabMenu(this.tabData)&&"string"==typeof e[0])this.tabData.menubuttons.join()!==e.join()&&(this.tabData.menubuttons=e,t&&this.publishIfEnabled());else{if(!i.isITabBulkMenu(this.tabData)||"object"!=typeof e[0])throw new Error("TabMenu: given type for buttons and mode of tab does not match");JSON.stringify(this.tabData.menuBulkButtons)!==JSON.stringify(e)&&(this.tabData.menuBulkButtons=e.map(e=>n.IButtonParameterInterface2IButtonJsonInterface(e)),t&&this.publishIfEnabled())}}getTabMenuButtons(){if(this.tabData){if(i.isITabMenu(this.tabData))return this.tabData.menubuttons;if(i.isITabBulkMenu(this.tabData))return this.tabData.menuBulkButtons.map(e=>n.IButtonJsonInterface2IButtonParameterInterface(e))
;throw new Error("TabMenu expected type of tabdata found")}return[]}getTabData(){return this.tabData}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(18),i=_(31);t.TabTable=class extends a.TabBase{constructor(e,t,_,a=!1){super(t,_,a),this.setTabData(e)}setTabMenuButtons(e,t=!0){if(this.tabData&&e.length>0)if(console.log("isTable:"+i.isITabTable(this.tabData)),console.log("isMTableBulk:"+i.isITabBulkTable(this.tabData)),console.log("buttons:"+JSON.stringify(e)),i.isITabTable(this.tabData)&&"string"==typeof e[0])this.tabData.menubuttons.join()!==e.join()&&(this.tabData.menubuttons=e,t&&this.publishIfEnabled());else{if(!i.isITabBulkTable(this.tabData)||"object"!=typeof e[0])throw new Error("TabMTable: given type for buttons and mode of tab does not match");JSON.stringify(this.tabData.menuBulkButtons)!==JSON.stringify(e)&&(this.tabData.menuBulkButtons=e,t&&this.publishIfEnabled())}}getTabMenuButtons(){if(this.tabData){
if(i.isITabTable(this.tabData))return this.tabData.menubuttons;if(i.isITabBulkTable(this.tabData))return this.tabData.menuBulkButtons;throw new Error("TabTable expected type of tabdata found")}return[]}getTabData(){return this.tabData}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(5),i=_(6);t.CLOCKHANDLER_DATEFORMAT_PARAM_ID="CLOCKHANDLER/CONFIGURATION/TIME/DATEFORMAT",t.CLOCKHANDLER_TIMEFORMAT_PARAM_ID="CLOCKHANDLER/CONFIGURATION/TIME/TIMEFORMAT",t.CLOCKHANDLER_TIMEZONE_PARAM_ID="CLOCKHANDLER/CONFIGURATION/TIME/TIMEZONE";t.ClockHandlerProxy=class extends a.BaseProxy{constructor(){super(...arguments),this.restEndpoint="clockHandler"}getFormatConfiguration(){return this.body.method=i.RestMethodsCLOCK_HANDLER.getFormatConfiguration,this.body.params={configuration:""},new a.CubisRestResponse(this.syncRequest())}getFormatConfigurationI18n(){return this.body.method=i.RestMethodsCLOCK_HANDLER.getFormatConfigurationI18n,this.body.params={
configuration:""},new a.CubisRestResponse(this.syncRequest())}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(8),i=_(0),n=_(40),s=_(38),r=_(2);t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID="SINGLETABBUTTONBARSCREEN";t.SingleTabButtonBarScreen=class extends s.AbstractOverlay{constructor(e,t,_){super(e),this.buttonList=[],this.tab=void 0,this.createBarButtons(t),this.publishBarButtons(),this.topLeftButton=new a.Button(this.mqttHandler,this,_),this.publishTopLeftButton()}getTab(){return this.tab}setFigureTab(e,_){let a=n.TabApi.createFigureTab(this.mqttHandler,t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID,e,!0,_);return this.tab=a,a}setGraphTab(e,_){let a=n.TabApi.createGraphTab(this.mqttHandler,t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID,e,!0,_);return this.tab=a,a}setParamListTab(e,_){let a=n.TabApi.createParamListTab(this.mqttHandler,t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID,e,!0,_);return this.tab=a,a}setMenuTab(e,_){
let a=n.TabApi.createMenuTab(this.mqttHandler,t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID,e,!0,_);return this.tab=a,a}setTableTab(e,_){let a=n.TabApi.createTableTab(this.mqttHandler,t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID,e,!0,_);return this.tab=a,a}show(){if(void 0!==this.tab){this.topLeftButton.publish();for(let e of this.buttonList)e.publish();this.tab.show(),super.show()}}hide(){super.hide()}getId(){return t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID}getBarButtonId(){return r.MqttTopics.HMI_SINGLETABBUTTONBAR_SCREEN_BARBUTTONS}getTopLeftButtonId(){return r.MqttTopics.HMI_SINGLETABBUTTONBAR_SCREEN_TOPLEFTBUTTON}getButton(e){for(let t of this.buttonList)if(t.getButtonId()===e)return t;if(e===this.topLeftButton.getButtonId())return this.topLeftButton}createBarButtons(e){for(let t of e){let e=new a.Button(this.mqttHandler,this,t);this.buttonList.push(e),e.publish()}}publishBarButtons(){let e=[];for(let t of this.buttonList)e.push(r.MqttTopics.QAPP_NAMESPACE+"/"+t.getTopic())
;this.mqttHandler.publish(this.getBarButtonId(),JSON.stringify(e))}publishTopLeftButton(){this.mqttHandler.publish(this.getTopLeftButtonId(),JSON.stringify(r.MqttTopics.QAPP_NAMESPACE+"/"+this.topLeftButton.getTopic()))}hideTopLeftButton(e=!0){this.topLeftButton.setAppearance(i.EnumAppearance.HIDDEN,e)}showTopLeftButton(e=!0){this.topLeftButton.setAppearance(i.EnumAppearance.ENABLED,e)}setTopLeftButton(e,t=!0){this.topLeftButton.setLabel(e.label,!1),this.topLeftButton.setIcon(e.icon,!1),e.nameId&&this.topLeftButton.setNameId(e.nameId,!1),e.labelCenter&&this.topLeftButton.setLabelCenter(e.labelCenter,!1),e.labelRight&&this.topLeftButton.setLabelRight(e.labelRight,!1),this.topLeftButton.setAppearance(e.appearance,!1),this.topLeftButton.setButtonId(e.buttonId,t)}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(37),i=_(40),n=_(2),s=_(4),r=_(8),E=_(30),o=_(56),A=_(0);t.WEIGHING_SPLIT_SCREEN_ID="WEIGHINGSPLIT";const T={buttonId:"BARBUTTON/CANCEL",
label:{id:"",args:[]},appearance:A.EnumAppearance.HIDDEN};t.WeighingSplitScreen=class extends s.AbstractScreen{constructor(e,t){super(e),this.buttonList=[],this.text1={value:"",wildcards:[]},this.text2={value:"",wildcards:[]},this.param1="",this.param2="",this.title=void 0,this.createBarButtons(t),this.publishBarButtons(),this.checkBarGraph=new o.CheckBarGraph(e),this.cancelBarButton=new r.default(this.mqttHandler,this,T),this.tabApi=new i.TabApi(e,this.getId())}getId(){return t.WEIGHING_SPLIT_SCREEN_ID}getTabApi(){return this.tabApi}getBarButtonId(){return n.MqttTopics.HMI_WEIGHINGSPLIT_SCREEN_BARBUTTONS}createBarButtons(e){e.sort(this.compareButtonBarButtons);for(let t of e){let e=new r.default(this.mqttHandler,this,t);this.buttonList.push(e),e.publish()}}publishBarButtons(){let e=[];for(let t of this.buttonList)e.push(n.MqttTopics.QAPP_NAMESPACE+"/"+t.getTopic());this.mqttHandler.publish(this.getBarButtonId(),JSON.stringify(e))}setText1(e,t){let _=!1
;this.text1.value!==e&&(this.text1.value=e,_=!0),t&&this.text1.wildcards.join()!==t.join()&&(this.text1.wildcards=t,_=!0),_&&this.publishText1()}compareButtonBarButtons(e,t){return E.getButtonPriority(e.buttonId)-E.getButtonPriority(t.buttonId)}publishText1(){this.mqttHandler.publish(n.MqttTopics.HMI_WEIGHINGSPLIT_SCREEN_INSTRUCTION1,JSON.stringify(this.text1),{retain:!0})}publishText2(){this.mqttHandler.publish(n.MqttTopics.HMI_WEIGHINGSPLIT_SCREEN_INSTRUCTION2,JSON.stringify(this.text2),{retain:!0})}setText2(e,t){let _=!1;this.text2.value!==e&&(this.text2.value=e,_=!0),t&&this.text2.wildcards.join()!==t.join()&&(this.text2.wildcards=t,_=!0),_&&this.publishText2()}publishTitle(){this.title?this.mqttHandler.publish(n.MqttTopics.HMI_WEIGHINGSPLIT_SCREEN_TITLE,JSON.stringify(this.title),{retain:!0}):this.mqttHandler.publish(n.MqttTopics.HMI_WEIGHINGSPLIT_SCREEN_TITLE,"",{retain:!0})}setTitle(e){let t=void 0;this.title&&(t=JSON.stringify(this.title)),this.title=e,
this.title!==t&&this.publishTitle()}getText1(){return this.text1}getText2(){return this.text2}publishParam1(){this.mqttHandler.publish(n.MqttTopics.HMI_WEIGHINGSPLIT_SCREEN_PARAM1_TOPIC,JSON.stringify(this.param1),{retain:!0})}publishParam2(){this.mqttHandler.publish(n.MqttTopics.HMI_WEIGHINGSPLIT_SCREEN_PARAM2_TOPIC,JSON.stringify(this.param2),{retain:!0})}setParam1(e){this.param1!==e&&(this.param1=e,this.publishParam1())}setParam2(e){this.param2!==e&&(this.param2=e,this.publishParam2())}getParam1(){return this.param1}getParam2(){return this.param2}getButton(e){if(e===a.CANCEL_BARBUTTON_ID)return this.cancelBarButton;for(let t of this.buttonList)if(t.getButtonId()===e)return t}show(){this.publishText1(),this.publishText2(),this.publishTitle(),this.publishParam1(),this.publishParam2();for(let e of this.buttonList)e.publish();super.show()}getCheckBarGraph(){return this.checkBarGraph}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;const a=_(5),i=_(3),n=_(48),s=_(3),r=_(0),E=_(12),o=_(58),A=_(6);var T;!function(e){e.EVENT_CREATED="Created",e.EVENT_CHANGED="Changed",e.EVENT_DELETED="Deleted",e.EVENT_LOGIN="Login",e.EVENT_LOGUT="Logout",e.EVENT_ISOCAL="isoCAL",e.EVENT_INTERNALADJUST="InternalAdjustment",e.EVENT_EXTERNALADJUST="ExternalAdjustment",e.EVENT_USERCAL="User Calibration",e.EVENT_MESSAGE="Message",e.EVENT_ELEC_SIGNATURE="Electronic Signature",e.EVENT_OP_START="Operation Start",e.EVENT_OP_END="Operation End",e.EVENT_LICENSED="Licensed"}(t.EnumAuditTrailEvent||(t.EnumAuditTrailEvent={})),function(e){e.WORKFLOWMANAGEMENT="WORKFLOWMANAGEMENT",e.USERMANAGEMENT="USERMANAGEMENT",e.ROLEMANAGEMENT="ROLEMANAGEMENT",e.CONFIGURATIONMANAGEMENT="CONFIGURATIONMANAGEMENT",e.AUDITTRAIL="AUDITTRAIL",e.ACCESSCONTROL="ACCESSCONTROL",e.DATAHANDLER="DATAHANDLER",e.DATABASEDRIVER="DATABASEDRIVER",e.ENCRYPTIONHELPER="ENCRYPTIONHELPER",e.RESULTMANAGEMENT="RESULTMANAGEMENT",e.EXTERNALCOMMUNICATION="EXTERNALCOMMUNICATION",
e.IPPCLIENT="IPPCLIENT",e.LDAPCLIENT="LDAPCLIENT",e.NTPCLIENT="NTPCLIENT",e.SMBCLIENT="SMBCLIENT",e.INTERNALCOMMUNICATION="INTERNALCOMMUNICATION",e.WORKFLOWAUTOMATIONHANDLER="WORKFLOWAUTOMATIONHANDLER",e.REPORTING="REPORTING",e.BACKUPRESTOREHANDLER="BACKUPRESTOREHANDLER",e.DEVICEDATA="DEVICEDATA",e.TIMERDAEMON="TIMERDAEMON",e.MODBUS="MODBUS",e.OSHELPER="OSHELPER",e.STATUSSERVICE="STATUSSERVICE",e.MESSAGEBROKER="MESSAGEBROKER",e.RESTCALLHANDLER="RESTCALLHANDLER",e.MENUHANDLER="MENUHANDLER",e.LOCALIZER="LOCALIZER",e.PARAMETER="PARAMETER",e.MESSAGEHANDLER="MESSAGEHANDLER",e.SELFMONITOR="SELFMONITOR",e.SENSORACTORHANDLER="SENSORACTORHANDLER",e.TASKMANAGEMENT="TASKMANAGEMENT",e.CALENDAR="CALENDAR",e.QAPP_FRAMEWORK="QAPP_FRAMEWORK",e.QAPPHANDLER="QAPPHANDLER",e.QAPPMANAGEMENT="QAPPMANAGEMENT",e.PROFILEMANAGEMENT="PROFILEMANAGEMENT",e.FIRMWARELOADER="FIRMWARELOADER",e.DEVICEMANAGER="DEVICEMANAGER",e.EXTERNALDEVICESERVICE="EXTERNALDEVICESERVICE",e.INTERFACEMANAGEMENT="INTERFACEMANAGEMENT",
e.MOTIONSENSOR="MOTIONSENSOR",e.ALIBIMEMORY="ALIBIMEMORY",e.CLOCKHANDLER="CLOCKHANDLER",e.WATCHDOG="WATCHDOG",e.CALIBRATIONADJUSTMENT="CALIBRATIONADJUSTMENT",e.CLIMATECONTROL="CLIMATECONTROL",e.DEVICEINFORMATION="DEVICEINFORMATION",e.DRAFTSHIELD="DRAFTSHIELD",e.IONIZER="IONIZER",e.LEVELING="LEVELING",e.WEIGHING="WEIGHING",e.COUNTING="COUNTING",e.PERCENTAGE="PERCENTAGE",e.CHECKWEIGHING="CHECKWEIGHING",e.CALCULATION="CALCULATION",e.PAPERWEIGHT="PAPERWEIGHT",e.LDAP="LDAP",e.MINUSP="MINUSP",e.QAPP="QAPP",e.CONNECTORMANAGEMENT="CONNECTORMANAGEMENT",e.IMPORTEXPORT="IMPORTEXPORT",e.TRANSFERMANAGEMENT="TRANSFERMANAGEMENT",e.__LAST__="__LAST__"}(T=t.EnumAuditTrailModule||(t.EnumAuditTrailModule={}));const I="QAPP_AUDITTRAIL_ENTRY_TASK_NAME";t.AuditTrailProxy=class extends a.BaseProxy{constructor(){super(...arguments),this.restEndpoint="audit"}addEventWithParameters(e,t,_,a=""){let o=new n.LocalizerProxy,A=E.flatten(_.map(e=>{let t=[{id:e.title.id,args:e.title.args},{id:e.header.id,
args:e.header.args}];return i.isTypeOfITextParameter(e)&&(t=[...t,{id:e.value.text.id,args:e.value.text.args}]),t}));"object"==typeof t&&(A=[...A,{id:"GLP_TASK_NAME_TITLE",args:[]},{id:"GLP_TASK_NAME_HEADER",args:[]}]);let N=o.getTexts(A),l=0;for(let e of _)e.title.id=N[l++],e.title.args=[],e.header.id=N[l++],e.header.args=[],i.isTypeOfITextParameter(e)&&(e.value.text.id=N[l++],e.value.text.args=[]);if("object"==typeof t){let e=s.createEmptyTextParameter();e.appearance=r.EnumAppearance.ENABLED,e.id=I,e.title.id=N[l++],e.header.id=N[l++],e.value.text.id=t.getTaskName()||"---",_=[e,..._],t=T.QAPP}else if(t===T.QAPP)throw new Error("AuditTrailProxy::addEventWithParameters called with QAPP module enum but no QApp instance given.");let c=JSON.stringify(this.convertToEventParameters(_));return console.log(`AuditTrailProxy: send operation string: ' ${c}'`),this.addEventInternal(e,t,c,a)}addEvent(e,t,_,a=!1,i=""){let n
;return a?(n=s.createEmptyStringParameter()).value.string=_:((n=s.createEmptyTextParameter()).value.text.id=_,n.info.suppressTitle=!0),n.id=I,n.appearance=r.EnumAppearance.ENABLED,n.title.id="AUDITTRAIL_TITLE_NONE",n.header.id="AUDITTRAIL_HEADER_NONE",this.addEventWithParameters(e,t,[n],i)}addEventInternal(e,t,_,i=""){let n;this.body.method=A.RestMethodsAUDITTRAIL.addEventExt,this.body.params={auditTrailEvent:e,moduleName:t,operation:_,destination:i};try{return(n=new a.CubisRestResponse(this.syncRequest())).isSuccess()}catch(e){return console.log("Something went wrong when calling addEventExt"),console.log(e),!1}}convertToEventParameters(e){let t=new n.LocalizerProxy;return Array.from(e,e=>{let _=s.createEmptyTextParameter();switch(_.appearance=e.appearance,_.id=e.id,_.title=e.title,_.header=e.header,e.type){case r.EnumParameterTypes.PARAM_STRING:_.value.text.id=e.value.string;break;case r.EnumParameterTypes.PARAM_SELECTION:{
const a=e.value.selection.id,i=e.info.options.find(e=>e.id===a),n=void 0!==i?t.getText(i.text.id,i.text.args):"---";_.value.text.id=n;break}case r.EnumParameterTypes.PARAM_MULTIPLE_SELECTION:{const a=e.value.selections.map(t=>e.info.options.find(e=>e.id===t.id)).map(e=>void 0===e?{id:"---",args:[]}:{id:e.text.id,args:e.text.args}),i=t.getTexts(a);_.value.text.id=i.join(", ");break}case r.EnumParameterTypes.PARAM_QUANTITY:{const t=e.value;_.value.text.id=`${t.numbers[0]} ${t.unit}`;break}case r.EnumParameterTypes.PARAM_MEASURE:{const t=e.value;_.value.text.id=`${t.sign} ${t.number} ${t.unit}`;break}case r.EnumParameterTypes.PARAM_DATE_TIME:{const t=1e3*e.value.timestamp,{isDate:a,isTime:i}=e.info,n=o.getDateTimeConfiguration(),s=o.convertToDateTimeFormat(t,n);_.value.text.id=a&&!i?`${s.date}`:!a&&i?`${s.time}`:a&&i?`${s.date} ${s.time}`:"---";break}case r.EnumParameterTypes.PARAM_FORMULA:_.value.text.id=e.value[0].visual;break;case r.EnumParameterTypes.PARAM_TEXT:_.value=e.value;break
;default:_.value.text.id="---"}return _})}getRecords(e){let t;if(this.body.method=A.RestMethodsAUDITTRAIL.getRecords,this.body.params=e,this.body.params.document="",(t=new a.CubisRestResponse(this.syncRequest())).isSuccess()){let e=t.rawReturns.document;return JSON.parse(e).data}return console.log("AuditTrailProxy::getRecords: error returned: "+t.rawReturns),[]}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(108),i=_(60),n=_(13),s=_(7);var r,E,o,A,T,I,N,l,c,u,P,p;t.QAPP_ID="QAPP514",t.TIMER_LEVELING="TIMER_LEVELING",t.TIMER_STABILITY="TIMER_STABILITY",t.TIMER_DRAFTSHIELD="TIMER_DRAFTSHIELD",function(e){e.FUSION="FUSION",e.CUBIS2="CUBIS2"}(t.EnumConfigVersion||(t.EnumConfigVersion={})),function(e){e.MANDATORY="MANDATORY",e.OPTIONAL="OPTIONAL"}(r=t.EnumConfigOptional||(t.EnumConfigOptional={})),t.EnumMapConfigOptional={[r.MANDATORY]:"Mandatory",[r.OPTIONAL]:"Optional"},function(e){e.ENABLED="ENABLED",e.DISABLED="DISABLED"
}(E=t.EnumConfigEnabled||(t.EnumConfigEnabled={})),t.EnumMapConfigOnOff={[E.ENABLED]:"_QAPP514_PARAMVAL_ON",[E.DISABLED]:"_QAPP514_PARAMVAL_OFF"},t.EnumMapConfigYesNo={[E.ENABLED]:"_QAPP514_PARAMVAL_YES",[E.DISABLED]:"_QAPP514_PARAMVAL_NO"},function(e){e.STANDARD="STANDARD",e.STANDARD_EXTENDED="STANDARD_EXTENDED",e.EXTENDED="EXTENDED"}(o=t.EnumCleanMode||(t.EnumCleanMode={})),function(e){e.BASIC="BASIC",e.ADVANCED="ADVANCED",e.NO_MATTER="NO_MATTER"}(A=t.EnumConfigCleanMode||(t.EnumConfigCleanMode={})),t.EnumMapConfigCleanMode={[A.BASIC]:"_QAPP514_PARAMVAL_CLEANMODE_STANDARD",[A.ADVANCED]:"_QAPP514_PARAMVAL_CLEANMODE_ADVANCED",[A.NO_MATTER]:"NO_MATTER"},t.EnumMapConfigDescription={[A.BASIC]:"_QAPP514_DESCRIPTION_STANDARD",[A.ADVANCED]:"_QAPP514_DESCRIPTION_EXTENDED",[A.NO_MATTER]:"NO_MATTER"},function(e){e.NONE="NONE",e.MANUAL="MANUAL",e.MOTORIC="MOTORIC"}(T=t.EnumConfigDraftshieldControl||(t.EnumConfigDraftshieldControl={})),t.EnumMapConfigDraftshieldControl={
[T.NONE]:"_QAPP514_PARAMVAL_DS_TYPE_NONE",[T.MANUAL]:"_QAPP514_PARAMVAL_DS_CONTROL_MANUAL",[T.MOTORIC]:"_QAPP514_PARAMVAL_DS_CONTROL_MOTORIC"},function(e){e.ON="ON",e.OFF="OFF"}(I=t.EnumDev||(t.EnumDev={})),function(e){e.ULTRA_MICRO="ULTRA_MICRO",e.MICRO="MICRO",e.ANALYTICAL="ANALYTICAL",e.FRAMED_PRECISION="FRAMED_PRECISION",e.PRECISION="PRECISION",e.HIGH_CAPACITY="HIGH_CAPACITY",e.HIGH_CAPACITY_ROUND="HIGH_CAPACITY_ROUND",e.FUSION="FUSION",e.MASS_COMPERATOR="MASS_COMPERATOR"}(N=t.EnumConfigCorpus||(t.EnumConfigCorpus={})),t.EnumMapCorpus={[N.ULTRA_MICRO]:"_QAPP514_PARAMVAL_CORPUS_ULTRAMICRO",[N.MICRO]:"_QAPP514_PARAMVAL_CORPUS_MICRO",[N.ANALYTICAL]:"_QAPP514_PARAMVAL_CORPUS_ANALYTICAL",[N.FRAMED_PRECISION]:"_QAPP514_PARAMVAL_CORPUS_FRAMED_PRESITION",[N.PRECISION]:"_QAPP514_PARAMVAL_CORPUS_PRESITION",[N.HIGH_CAPACITY]:"_QAPP514_PARAMVAL_CORPUS_HIGH_CAPACITY",[N.HIGH_CAPACITY_ROUND]:"_QAPP514_PARAMVAL_CORPUS_HIGH_CAPACITY_ROUND",[N.FUSION]:"_QAPP514_PARAMVAL_CORPUS_FUSION",
[N.MASS_COMPERATOR]:"_QAPP514_PARAMVAL_CORPUS_MASS_COMPERATOR"},function(e){e.NONE="NONE",e.LIWI="LIWI",e.SMALL_LIWI="SMALL_LIWI",e.LIRO="LIRO",e.ROWI="ROWI",e.FILTER="FILTER",e.FLAT="FLAT"}(l=t.EnumConfigDraftshieldType||(t.EnumConfigDraftshieldType={})),t.EnumMapConfigDraftshieldType={[l.NONE]:"_QAPP514_PARAMVAL_DS_TYPE_NONE",[l.SMALL_LIWI]:"_QAPP514_PARAMVAL_DS_TYPE_SMALL_LIWI",[l.LIWI]:"_QAPP514_PARAMVAL_DS_TYPE_LIWI",[l.LIRO]:"_QAPP514_PARAMVAL_DS_TYPE_LIRO",[l.ROWI]:"_QAPP514_PARAMVAL_DS_TYPE_ROWI",[l.FILTER]:"_QAPP514_PARAMVAL_DS_TYPE_FILTER",[l.FLAT]:"_QAPP514_PARAMVAL_DS_TYPE_FLAT"},function(e){e.NONE="NONE",e.ANY="ANY",e.NO_MATTER="NO_MATTER",e.FLAT="FLAT",e.FILTER="FILTER",e.SMALL_LIWI="SMALL_LIWI",e.LIWI="LIWI",e.LIRO="LIRO",e.ROWI="ROWI",e.UNLICENSED="UNLICENSED",e.PUSHER="PUSHER",e.ERROR="ERROR"}(c=t.EnumDraftshieldType||(t.EnumDraftshieldType={})),function(e){e.NONE="NONE",e.MANUAL="MANUAL",e.MOTORIC="MOTORIC",e.ANY="ANY",e.NO_MATTER="NO_MATTER"
}(u=t.EnumDraftshieldControl||(t.EnumDraftshieldControl={})),function(e){e.ULTRA_MICRO="ULTRA_MICRO",e.MICRO="MICRO",e.ANALYTICAL="ANALYTICAL",e.FRAMED_PRECISION="FRAMED_PRECISION",e.PRECISION="PRECISION",e.HIGH_CAPACITY="HIGH_CAPACITY",e.HIGH_CAPACITY_ROUND="HIGH_CAPACITY_ROUND",e.CUBIS="CUBIS",e.FUSION="FUSION",e.MASS_COMPERATOR="MASS_COMPERATOR",e.NO_MATTER="NO_MATTER"}(P=t.EnumCorpusModel||(t.EnumCorpusModel={})),function(e){e.WITH="WITH",e.WITHOUT="WITHOUT",e.NO_MATTER="NO_MATTER"}(p=t.EnumIonizerType||(t.EnumIonizerType={}));const S={"MCA2.7S":P.ULTRA_MICRO,"MCA10.6S":P.MICRO,"MCA3.6P":P.MICRO,"MCA6.6S":P.MICRO,MCA125P:P.ANALYTICAL,MCA125S:P.ANALYTICAL,MCA225P:P.ANALYTICAL,MCA225S:P.ANALYTICAL,MCA124S:P.ANALYTICAL,MCA224S:P.ANALYTICAL,MCA324P:P.ANALYTICAL,MCA324S:P.ANALYTICAL,MCA524P:P.ANALYTICAL,MCA524S:P.ANALYTICAL,MCA1203S:P.PRECISION,MCA2203P:P.PRECISION,MCA2203S:P.PRECISION,MCA3203S:P.PRECISION,MCA323S:P.PRECISION,MCA5202S:P.PRECISION,MCA5203P:P.PRECISION,
MCA5203S:P.PRECISION,MCA623P:P.PRECISION,MCA623S:P.PRECISION,MCA10202S:P.FRAMED_PRECISION,MCA1202S:P.FRAMED_PRECISION,MCA14202P:P.FRAMED_PRECISION,MCA14202S:P.FRAMED_PRECISION,MCA2202S:P.FRAMED_PRECISION,MCA4202S:P.FRAMED_PRECISION,MCA6202P:P.FRAMED_PRECISION,MCA6202S:P.FRAMED_PRECISION,MCA8202S:P.FRAMED_PRECISION,MCA12201S:P.PRECISION,MCA5201S:P.PRECISION,MCA8201S:P.PRECISION,MCA11201S:P.HIGH_CAPACITY,MCA20201S:P.HIGH_CAPACITY,MCA36200S:P.HIGH_CAPACITY,MCA36201P:P.HIGH_CAPACITY,MCA36201S:P.HIGH_CAPACITY,MCA50201S:P.HIGH_CAPACITY,MCA70200S:P.HIGH_CAPACITY,MCA70201S:P.HIGH_CAPACITY,MCA32202P:P.HIGH_CAPACITY_ROUND},d={MCA36MC:P.MASS_COMPERATOR,MCA66MC:P.MASS_COMPERATOR,MCA106MC:P.MASS_COMPERATOR,MCA206MC:P.MASS_COMPERATOR,MCA605MC:P.MASS_COMPERATOR,MCA1005MC:P.MASS_COMPERATOR,MCA1004MC:P.MASS_COMPERATOR,MCA36S:P.FUSION,MCA36P:P.FUSION,MCA66S:P.FUSION,MCA66P:P.FUSION,MCA116S:P.FUSION,MCA226S:P.FUSION,MCA125S:P.FUSION,MCA225S:P.FUSION,MCA225P:P.FUSION};function R(e){try{
let t=e.split(/(\s)/)[0].split("-");if(3!=t.length)return console.log("Model name misses information"),!1;if(!t[0].startsWith("MCA"))return console.log("Model name of wrong product"),!1;if(4!=t[1].length)return console.log("Model name with wrong legal identifier"),!1;if(1!=t[2].length)return console.log("Model name with wrong wearparts identifier"),!1}catch(e){return console.log("Model name could not be read"),!1}return!0}function O(e){let t=P.NO_MATTER,_=e.split(/(\s)/)[0].split("-");return _[1].startsWith("2")?_[0]in S&&(t=S[_[0]]):_[1].startsWith("3")&&_[0]in d&&(t=d[_[0]]),t}!function(e){e.PRESENT="PRESENT",e.ABSENT="ABSENT",e.NO_MATTER="NO_MATTER"}(t.EnumBalancePropertiesFlag||(t.EnumBalancePropertiesFlag={})),
t.HELP_SCREEN_LINK_PARAGRAPH=["HELP_SCREEN_LINK_AVOID","HELP_SCREEN_LINK_SERVICE","HELP_SCREEN_LINK_AGENTS","HELP_SCREEN_LINK_CLEANINGKIT","HELP_SCREEN_LINK_DISPLAY","HELP_SCREEN_LINK_GLASS","HELP_SCREEN_LINK_METAL","HELP_SCREEN_LINK_HOUSING","HELP_SCREEN_LINK_DRYING","HELP_SCREEN_LINK_TESTS","HELP_SCREEN_LINK_DIS_DRAFT_SHIELD","HELP_SCREEN_LINK_ASS_DRAFT_SHIELD","HELP_SCREEN_LINK_ASS_INNER_DRAFT_SHIELD","HELP_SCREEN_LINK_WEIGHING_PAN","HELP_SCREEN_LINK_AGENT_TABLE"],t.HELP_TEXTS=[{corpus:P.NO_MATTER,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.WITH,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[0],value:"_QAPP514_HELP_SECTION_0_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_0_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_0_INSTRUCTION_1"}]}},{corpus:P.NO_MATTER,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[0],
value:"_QAPP514_HELP_SECTION_0_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_0_INSTRUCTION_0"}]}},{corpus:P.FUSION,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_1"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:P.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_1"},{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:P.CUBIS,draftshield:c.LIWI,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_1"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:P.CUBIS,draftshield:c.SMALL_LIWI,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_1"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:P.CUBIS,draftshield:c.ROWI,control:u.NO_MATTER,
ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_1_ROWI"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:P.CUBIS,draftshield:c.FILTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:P.CUBIS,draftshield:c.FLAT,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:P.CUBIS,draftshield:c.NONE,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:P.NO_MATTER,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[2],value:"_QAPP514_HELP_SECTION_2_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_2_INSTRUCTION_0"},{type:a.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_2_BULLET_0"},{value:"_QAPP514_HELP_SECTION_2_BULLET_1"},{value:"_QAPP514_HELP_SECTION_2_BULLET_2"}]},{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_2_INSTRUCTION_1"}]}},{corpus:P.FUSION,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_FUSION"},{type:a.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1"}]}},{corpus:P.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{type:a.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{
type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1"}]}},{corpus:P.CUBIS,draftshield:c.LIWI,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{type:a.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1"}]}},{corpus:P.CUBIS,draftshield:c.SMALL_LIWI,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{type:a.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{
value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1"}]}},{corpus:P.CUBIS,draftshield:c.FLAT,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{type:a.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1"}]}},{corpus:P.CUBIS,draftshield:c.NONE,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{type:a.HelpScreenContentType.BULLET_ENUMERATION,steps:[{
value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1"}]}},{corpus:P.CUBIS,draftshield:c.ROWI,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{type:a.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1_TWEEZERS"}]}},{corpus:P.CUBIS,draftshield:c.FILTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{
type:a.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1_TWEEZERS"}]}},{corpus:P.FUSION,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[4],value:"_QAPP514_HELP_SECTION_4_TITLE_BOTH",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_4_INSTRUCTION_0_BOTH"}]}},{corpus:P.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[4],value:"_QAPP514_HELP_SECTION_4_TITLE_BOTH",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_4_INSTRUCTION_0_BOTH"}]}},{corpus:P.CUBIS,draftshield:c.NO_MATTER,control:u.MOTORIC,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[4],value:"_QAPP514_HELP_SECTION_4_TITLE_BOTH",content:[{
type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_4_INSTRUCTION_0_BOTH"}]}},{corpus:P.CUBIS,draftshield:c.NO_MATTER,control:u.MANUAL,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[4],value:"_QAPP514_HELP_SECTION_4_TITLE_DISPLAY",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_4_INSTRUCTION_0_DISPLAY"}]}},{corpus:P.CUBIS,draftshield:c.NO_MATTER,control:u.NONE,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[4],value:"_QAPP514_HELP_SECTION_4_TITLE_DISPLAY",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_4_INSTRUCTION_0_DISPLAY"}]}},{corpus:P.FUSION,draftshield:c.NO_MATTER,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[5],value:"_QAPP514_HELP_SECTION_5_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_1"}]}},{corpus:P.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[5],value:"_QAPP514_HELP_SECTION_5_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_1"}]}},{corpus:P.CUBIS,draftshield:c.ROWI,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[5],value:"_QAPP514_HELP_SECTION_5_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_1"}]}},{corpus:P.CUBIS,draftshield:c.LIWI,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[5],value:"_QAPP514_HELP_SECTION_5_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_1"}]}},{corpus:P.CUBIS,draftshield:c.SMALL_LIWI,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[5],value:"_QAPP514_HELP_SECTION_5_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_1"}]}},{corpus:P.NO_MATTER,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[6],value:"_QAPP514_HELP_SECTION_6_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_6_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_6_INSTRUCTION_1"}]}},{corpus:P.FUSION,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.WITH,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],
value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_1_IONIZER"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:P.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:P.CUBIS,draftshield:c.ROWI,control:u.NO_MATTER,ionizer:p.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_1_MOTION"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:P.CUBIS,draftshield:c.FILTER,control:u.NO_MATTER,ionizer:p.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:P.CUBIS,draftshield:c.LIWI,control:u.NO_MATTER,ionizer:p.WITH,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_1_IONIZER"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:P.CUBIS,draftshield:c.LIWI,
control:u.NO_MATTER,ionizer:p.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:P.CUBIS,draftshield:c.SMALL_LIWI,control:u.NO_MATTER,ionizer:p.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:P.CUBIS,draftshield:c.FLAT,control:u.NO_MATTER,ionizer:p.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:P.PRECISION,draftshield:c.NONE,control:u.NO_MATTER,ionizer:p.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:P.FRAMED_PRECISION,draftshield:c.NONE,control:u.NO_MATTER,ionizer:p.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:P.HIGH_CAPACITY,draftshield:c.NONE,control:u.NO_MATTER,ionizer:p.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"}]}},{corpus:P.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:u.NO_MATTER,ionizer:p.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"}]}},{corpus:P.NO_MATTER,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[8],value:"_QAPP514_HELP_SECTION_8_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_8_INSTRUCTION_0"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_8_INSTRUCTION_1"}]}},{corpus:P.NO_MATTER,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[9],value:"_QAPP514_HELP_SECTION_9_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_9_INSTRUCTION_0"},{
type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_9_INSTRUCTION_1"},{type:a.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_9_BULLET_0"},{value:"_QAPP514_HELP_SECTION_9_BULLET_1"}]}]}},{corpus:P.CUBIS,draftshield:c.LIWI,control:u.MOTORIC,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[10],value:"_QAPP514_HELP_SECTION_10_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_ORDER"},{type:a.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"}]},{type:a.HelpScreenContentType.IMAGE,value:"Analytic_Miligram_Help_DisDraftShieldLeftRight",imageDescription:""},{type:a.HelpScreenContentType.IMAGE,value:"Analytic_Miligram_Motorized_Help_DisDraftShieldTop",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_1_LIWI"}]}},{
corpus:P.CUBIS,draftshield:c.LIWI,control:u.MANUAL,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[10],value:"_QAPP514_HELP_SECTION_10_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_ORDER"},{type:a.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_BACK"}]},{type:a.HelpScreenContentType.IMAGE,value:"Analytic_Miligram_Help_DisDraftShieldLeftRight",imageDescription:""},{type:a.HelpScreenContentType.IMAGE,value:"Analytic_Miligram_Manual_Help_DisDraftShieldTop",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_1_LIWI"},{type:a.HelpScreenContentType.IMAGE,value:"Analytic_Miligram_Manual_Help_DisDraftShieldBack",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_2_BACK"}]}},{corpus:P.CUBIS,draftshield:c.SMALL_LIWI,control:u.MANUAL,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[10],value:"_QAPP514_HELP_SECTION_10_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_ORDER"},{type:a.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"}]},{type:a.HelpScreenContentType.IMAGE,value:"Miligram_Small_Help_DisDraftShield",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_1_SMALL_LIWI"}]}},{corpus:P.FUSION,draftshield:c.NO_MATTER,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{
type:a.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_FRONT"}]},{type:a.HelpScreenContentType.IMAGE,value:"REATTACH_OUTER_DS",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_FUSION"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_1_FUSION"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_2_FUSION"}]}},{corpus:P.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{type:a.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"},{
value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_FRONT"}]},{type:a.HelpScreenContentType.IMAGE,value:"REATTACH_OUTER_DS",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_FUSION"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_1_FUSION"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_2_FUSION"}]}},{corpus:P.ULTRA_MICRO,draftshield:c.ROWI,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:a.HelpScreenContentType.IMAGE,value:"UltraMicro_Help_DraftShield",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_ROWI"}]}},{corpus:P.MICRO,draftshield:c.ROWI,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],
value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:a.HelpScreenContentType.IMAGE,value:"Micro_Help_DraftShield",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_ROWI"}]}},{corpus:P.CUBIS,draftshield:c.FILTER,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_FILTER"},{type:a.HelpScreenContentType.IMAGE,value:"Filter_Help_DraftShield",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_1_FILTER"}]}},{corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{
type:a.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"}]},{type:a.HelpScreenContentType.IMAGE,value:"Analytic_Motorized_Help_DraftShield",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_LIWI"}]}},{corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MANUAL,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{type:a.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_BACK"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"}]},{type:a.HelpScreenContentType.IMAGE,value:"Analytic_Manual_Help_AssDraftShieldBack",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_BACK"},{type:a.HelpScreenContentType.IMAGE,value:"Analytic_Manual_Help_AssDraftShield",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_LIWI"}]}},{corpus:P.PRECISION,draftshield:c.LIWI,control:u.MOTORIC,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{type:a.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"}]},{type:a.HelpScreenContentType.IMAGE,value:"Miligram_Motorized_Help_AssDraftShield",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_LIWI"}]}},{corpus:P.PRECISION,draftshield:c.LIWI,control:u.MANUAL,ionizer:p.NO_MATTER,helpSection:{
linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{type:a.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_BACK"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"}]},{type:a.HelpScreenContentType.IMAGE,value:"Miligram_Manual_Help_AssDraftShieldBack",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_BACK"},{type:a.HelpScreenContentType.IMAGE,value:"Miligram_Manual_Help_AssDraftShield",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_LIWI"}]}},{corpus:P.PRECISION,draftshield:c.SMALL_LIWI,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{
type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{type:a.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"}]},{type:a.HelpScreenContentType.IMAGE,value:"Miligram_Manual_Help_AssDraftShield",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_LIWI"}]}},{corpus:P.PRECISION,draftshield:c.FLAT,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:a.HelpScreenContentType.IMAGE,value:"Frame_Help_DraftShield",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_FLAT"}]}},{corpus:P.FUSION,draftshield:c.NO_MATTER,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[12],value:"_QAPP514_HELP_SECTION_12_TITLE",content:[{
type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_12_INSTRUCTION_0"},{type:a.HelpScreenContentType.IMAGE,value:"REATTACH_INNER_DS",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_12_INSTRUCTION_1"}]}},{corpus:P.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[12],value:"_QAPP514_HELP_SECTION_12_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_12_INSTRUCTION_0"},{type:a.HelpScreenContentType.IMAGE,value:"REATTACH_INNER_DS",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_12_INSTRUCTION_1"}]}},{corpus:P.FUSION,draftshield:c.NO_MATTER,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_FUSION"},{
type:a.HelpScreenContentType.IMAGE,value:"REATTACH_WEIGHING_PAN",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_FUSION"},{type:a.HelpScreenContentType.IMAGE,value:"REATTACH_WEIGHING_PAN",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.ULTRA_MICRO,draftshield:c.ROWI,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_ULTRAMICRO"},{type:a.HelpScreenContentType.IMAGE,value:"UltraMicro_Help_WeighingPan",
imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.MICRO,draftshield:c.ROWI,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_MICRO"},{type:a.HelpScreenContentType.IMAGE,value:"Micro_Help_WeighingPan",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.ULTRA_MICRO,draftshield:c.FILTER,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_ULTRAFILTER"},{type:a.HelpScreenContentType.IMAGE,value:"UltraFilter_Help_WeighingPan",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.MICRO,draftshield:c.FILTER,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_FILTER"},{type:a.HelpScreenContentType.IMAGE,value:"Filter_Help_WeighingPan",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_ANALYTICAL"},{type:a.HelpScreenContentType.IMAGE,value:"Analytic_Motorized_Help_WeighingPan",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.ANALYTICAL,
draftshield:c.LIWI,control:u.MANUAL,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_ANALYTICAL"},{type:a.HelpScreenContentType.IMAGE,value:"Analytic_Manual_Help_WeighingPan",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.PRECISION,draftshield:c.LIWI,control:u.MOTORIC,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_MILLI"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_MILLI"},{type:a.HelpScreenContentType.IMAGE,value:"Miligram_Motorized_Help_WeighingPan",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.PRECISION,draftshield:c.LIWI,control:u.MANUAL,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_MILLI"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_MILLI"},{type:a.HelpScreenContentType.IMAGE,value:"Miligram_Manual_Help_WeighingPan",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.PRECISION,draftshield:c.SMALL_LIWI,control:u.ANY,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_MILLI"},{type:a.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_MILLI"},{type:a.HelpScreenContentType.IMAGE,value:"Miligram_Small_Help_WeighingPan",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.PRECISION,draftshield:c.FLAT,control:u.NONE,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_MILLI"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_MILLI"},{type:a.HelpScreenContentType.IMAGE,value:"Frame_Help_WeighingPan",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.PRECISION,draftshield:c.NONE,control:u.NONE,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{
type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_PRECISION"},{type:a.HelpScreenContentType.IMAGE,value:"Precision_Ass_SupportDisk",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_MILLI"},{type:a.HelpScreenContentType.IMAGE,value:"Precision_Ass_WeighingPan",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.FRAMED_PRECISION,draftshield:c.NONE,control:u.NONE,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_PRECISION"},{type:a.HelpScreenContentType.IMAGE,value:"Precision_Ass_SupportDisk",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_FRAMED_PRECISION"},{
type:a.HelpScreenContentType.IMAGE,value:"Precision_Ass_WeighingPan_ShieldDisk",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.HIGH_CAPACITY,draftshield:c.NONE,control:u.NONE,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_HIGH_CAPACITY"},{type:a.HelpScreenContentType.IMAGE,value:"HighCapacity_Ass_WeighingPan",imageDescription:""},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:u.NONE,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_HIGH_CAPACITY_ROUND"},{
type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_HIGH_CAPACITY_ROUND"},{type:a.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:P.FUSION,draftshield:c.NO_MATTER,control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_UPPER_DRAFT_SHIELD","+","+","+","O","O","-","O"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_LEFT_RIGHT_DRAFT_SHIELD","+","+","-","O","O","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_FRONT_PANEL","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_ADAPTER_RING","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_BASE_PLATE","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_REAR_WALL","O","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PALM_KEYS","+","+","-","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_REAR_HOUNSING_PLASTIC","+","O","+","+","+","+","+"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_REAR_HOUNSING_SILK","+","O","O","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_INNER_DRAFT_SHIELD","+","+","+","O","O","-","O"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_ADAPTOR_RING","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_INNDER_DRAFT_SHIELD_BACK","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_INNER_DRAFT_SHIELD_BASE","+","+","+","+","+","O","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.MASS_COMPERATOR,draftshield:c.NO_MATTER,
control:u.NO_MATTER,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_UPPER_DRAFT_SHIELD","+","+","+","O","O","-","O"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_LEFT_RIGHT_DRAFT_SHIELD","+","+","-","O","O","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_FRONT_PANEL","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","O","+"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_ADAPTER_RING","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_BASE_PLATE","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_REAR_WALL","O","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PALM_KEYS","+","+","-","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_REAR_HOUNSING_PLASTIC","+","O","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_REAR_HOUNSING_SILK","+","O","O","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_INNER_DRAFT_SHIELD","+","+","+","O","O","-","O"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_ADAPTOR_RING","+","+","+","+","+","O","+"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_INNDER_DRAFT_SHIELD_BACK","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_INNER_DRAFT_SHIELD_BASE","+","+","+","+","+","O","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.ULTRA_MICRO,draftshield:c.ROWI,control:u.MOTORIC,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,
header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DRAFT_SHIELD","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_INTERNAL_DRAFT_SHIELD","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_BUSH","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_PLATE","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PALM_KEYS","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_E_BOX","+","+","-","-","-","-","-"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SENSOR_WINDOW","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_LED","+","O","+","O","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DRAFT_SHIELD_PLATE","+","+","+","+","+","+","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{
rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.MICRO,draftshield:c.ROWI,control:u.MOTORIC,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DRAFT_SHIELD","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","O","+"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_PLATE","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PALM_KEYS","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_E_BOX","+","+","-","-","-","-","-"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SENSOR_WINDOW","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_LED","+","O","+","O","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DRAFT_SHIELD_PLATE","+","+","+","+","+","+","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],
header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.ULTRA_MICRO,draftshield:c.FILTER,control:u.MANUAL,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DRAFT_SHIELD_COVER","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DRAFT_SHIELD","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_INNER_DRAFT_SHIELD_RING","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_FILTER_PAN","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_INTERNAL_DRAFT_SHIELD","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_BUSH","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_PLATE","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_E_BOX","+","+","-","-","-","-","-"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","+","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.MICRO,draftshield:c.FILTER,control:u.MANUAL,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,
header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DRAFT_SHIELD_COVER","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DRAFT_SHIELD","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_INNER_DRAFT_SHIELD_RING","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_FILTER_PAN","+","+","+","+","+","O","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_PLATE","+","+","+","+","+","-","+"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_E_BOX","+","+","-","-","-","-","-"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","+","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{
type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_UPPER_DRAFT_SHIELD","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_LEFT_RIGHT_DRAFT_SHIELD","+","+","+","+","+","-","O"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_FRONT_PANEL","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_PLATE","+","+","+","+","+","+","+"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_REAR_WALL","+","+","-","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PALM_KEYS","+","+","-","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","-","-","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","-","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MANUAL,ionizer:p.NO_MATTER,helpSection:{
linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_UPPER_DRAFT_SHIELD","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_LEFT_RIGHT_DRAFT_SHIELD","+","+","+","+","+","-","O"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_FRONT_PANEL","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_REAR_PANEL","+","+","+","+","+","-","+"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_PLATE","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","-","-","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","-","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.PRECISION,draftshield:c.LIWI,control:u.MOTORIC,ionizer:p.NO_MATTER,helpSection:{
linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_UPPER_DRAFT_SHIELD","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_LEFT_RIGHT_DRAFT_SHIELD","+","+","+","+","+","-","O"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_FRONT_PANEL","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","+","+"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PAN_SUPPORT","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_PLATE","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_REAR_WALL","+","+","-","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PALM_KEYS","+","+","-","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","-","-","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","-","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{
rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.PRECISION,draftshield:c.LIWI,control:u.MANUAL,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_UPPER_DRAFT_SHIELD","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_LEFT_RIGHT_DRAFT_SHIELD","+","+","+","+","+","-","O"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_FRONT_PANEL","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_REAR_PANEL","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PAN_SUPPORT","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_PLATE","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","-","-","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","-","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{
rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.PRECISION,draftshield:c.SMALL_LIWI,control:u.MANUAL,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_UPPER_DRAFT_SHIELD","+","+","+","+","+","-","+"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_LEFT_RIGHT_DRAFT_SHIELD","+","+","+","+","+","-","O"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_FRONT_PANEL","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_REAR_PANEL","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PAN_SUPPORT","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_PLATE","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","-","-","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","-","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],
header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.PRECISION,draftshield:c.FLAT,control:u.NONE,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_FRAME_DRAFT_SHIELD","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_FRAME","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PAN_SUPPORT","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_PLATE","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","-","-","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","-","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{
rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.PRECISION,draftshield:c.NONE,control:u.NONE,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","+","+"]},{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PAN_SUPPORT","+","+","+","-","-","-","-"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","-","-","-","-"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","-","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.FRAMED_PRECISION,draftshield:c.NONE,control:u.NONE,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{
type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_DISK","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PAN_SUPPORT","+","+","+","-","-","-","-"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_CHAMBER","+","+","+","-","-","-","-"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","-","+"]}]},{
type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.HIGH_CAPACITY,draftshield:c.NONE,control:u.NONE,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,
header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_BASE_PLATE","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PAN_RETAINER","+","+","+","-","-","-","-"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","-","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],
header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}},{corpus:P.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:u.NONE,ionizer:p.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:a.HelpScreenContentType.TABLE,header:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_2","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_3","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_4","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_5","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_6","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_7","_QAPP514_HELP_SECTION_14_AGENT_TABLE_HEADER_8"],rows:[{
rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_WEIGHING_PAN","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_SHIELD_FRAME","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PAN_SUPPORT","+","+","+","-","-","-","-"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_BASE_PLATE","+","+","+","+","+","-","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_PAN_RETAINER","+","+","+","-","-","-","-"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_DISPLAY","+","+","+","+","+","+","+"]},{rowValues:["_QAPP514_HELP_SECTION_14_AGENT_TABLE_HOUSING","+","+","-","+","+","-","+"]}]},{type:a.HelpScreenContentType.INSTRUCTION,value:""},{type:a.HelpScreenContentType.TABLE,columnWeights:[3,13],header:["_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_1","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_HEADER_2"],rows:[{rowValues:["+","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_1_VALUE_2"]},{
rowValues:["O","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_2_VALUE_2"]},{rowValues:["-","_QAPP514_HELP_SECTION_14_LEGEND_TABLE_ROW_3_VALUE_2"]}]}]}}],t.PROCESS_STEPS=[{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING_AND_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_1",args:[]}],imgRef:["EXTENDED_FUSION_LIWI_CLEAN_DISPLAY.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING_AND_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_1",args:[]}],imgRef:["EXTENDED_FUSION_LIRO_CLEAN_DISPLAY.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{
id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_2",args:[]}],imgRef:["EXTENDED_FUSION_LIWI_DEATTACH_OUTER_DS.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_2",args:[]}],imgRef:["EXTENDED_FUSION_LIRO_DEATTACH_OUTER_DS.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.NO_MATTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_3",args:[]}],imgRef:["EXTENDED_FUSION_ANY_CLEAN_OUTER_DS.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[5]},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_3",args:["1"]},{
id:"_QAPP514_INFO_EXTENDED_FUSION_LIWI_STEP_4_2",args:[]}],imgRef:["EXTENDED_FUSION_LIWI_DEATTACH_WP.png","EXTENDED_FUSION_LIWI_DEATTACH_BP.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_LIRO_STEP_4_1",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_3",args:["2"]}],imgRef:["EXTENDED_FUSION_LIRO_DEATTACH_INNER_DS.png","EXTENDED_FUSION_LIRO_DEATTACH_WP.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_5",args:[]}],imgRef:["EXTENDED_FUSION_LIRO_CLEAN_INNER_DS.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[5]},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,
title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_LIWI_STEP_6",args:[]}],imgRef:["EXTENDED_FUSION_LIWI_CLEAN_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_LIRO_STEP_6",args:[]}],imgRef:["EXTENDED_FUSION_LIRO_CLEAN_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_LIWI_STEP_7_1",args:[]},{id:"_QAPP514_INFO_EXTENDED_FUSION_ANY_STEP_7",args:["2"]}],imgRef:["EXTENDED_FUSION_LIWI_ATTACH_BP.png","EXTENDED_FUSION_LIWI_ATTACH_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIRO,control:u.ANY,
screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_ANY_STEP_7",args:["1"]},{id:"_QAPP514_INFO_EXTENDED_FUSION_LIRO_STEP_7_3",args:["2"]}],imgRef:["EXTENDED_FUSION_LIRO_ATTACH_WP.png","EXTENDED_FUSION_LIRO_ATTACH_INNER_DS.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_8_1",args:[]},{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_8_2",args:[]},{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_8_3",args:[]}],imgRef:["EXTENDED_FUSION_LIWI_ATTACH_OUTER_DS.png","EXTENDED_FUSION_LIWI_ATTACH_FRONT_DS.png","EXTENDED_FUSION_LIWI_ATTACH_DISPLAY.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.EXTENDED,corpus:P.FUSION,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,
title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_8_1",args:[]},{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_8_2",args:[]},{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_8_3",args:[]}],imgRef:["EXTENDED_FUSION_LIRO_ATTACH_OUTER_DS.png","EXTENDED_FUSION_LIRO_ATTACH_FRONT_DS.png","EXTENDED_FUSION_LIRO_ATTACH_DISPLAY.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.STANDARD,corpus:P.FUSION,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_1",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_2",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_3",args:["3"]}],imgRef:["STANDARD_FUSION_LIRO_OPEN_OUTER_DS.png","STANDARD_FUSION_LIRO_DEATTACH_INNER_DS.png","STANDARD_FUSION_LIRO_DEATTACH_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.FUSION,draftshield:c.LIRO,control:u.ANY,
screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_2",args:[]}],imgRef:["STANDARD_FUSION_LIRO_CLEAN_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.FUSION,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_1",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_2",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_3",args:["3"]}],imgRef:["STANDARD_FUSION_LIRO_ATTACH_WP.png","STANDARD_FUSION_LIRO_ATTACH_INNER_DS.png","STANDARD_FUSION_LIRO_CLOSE_OUTER_DS.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.STANDARD,corpus:P.FUSION,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_1",args:[]},{
id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_3",args:["2"]}],imgRef:["STANDARD_FUSION_LIWI_OPEN_OUTER_DS.png","STANDARD_FUSION_LIWI_DEATTACH_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.FUSION,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_2",args:[]}],imgRef:["STANDARD_FUSION_LIWI_CLEAN_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.FUSION,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_1",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_3",args:["2"]}],imgRef:["STANDARD_FUSION_LIWI_ATTACH_WP.png","STANDARD_FUSION_LIWI_CLOSE_OUTER_DS.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.LIWI,control:u.ANY,
screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING_AND_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_1",args:[]}],imgRef:["EXTENDED_FUSION_LIWI_CLEAN_DISPLAY.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING_AND_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_1",args:[]}],imgRef:["EXTENDED_FUSION_LIRO_CLEAN_DISPLAY.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_2",args:[]}],imgRef:["EXTENDED_FUSION_LIWI_DEATTACH_OUTER_DS.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.LIRO,control:u.ANY,
screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_2",args:[]}],imgRef:["EXTENDED_FUSION_LIRO_DEATTACH_OUTER_DS.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_3",args:[]}],imgRef:["EXTENDED_FUSION_ANY_CLEAN_OUTER_DS.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[5]},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_3",args:["1"]},{id:"_QAPP514_INFO_EXTENDED_FUSION_LIWI_STEP_4_2",args:[]}],imgRef:["EXTENDED_FUSION_LIWI_DEATTACH_WP.png","EXTENDED_FUSION_LIWI_DEATTACH_BP.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,
draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_LIRO_STEP_4_1",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_3",args:["2"]}],imgRef:["EXTENDED_FUSION_LIRO_DEATTACH_INNER_DS.png","EXTENDED_FUSION_LIRO_DEATTACH_WP.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_5",args:[]}],imgRef:["EXTENDED_FUSION_LIRO_CLEAN_INNER_DS.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[5]},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_LIWI_STEP_6",args:[]}],imgRef:["EXTENDED_FUSION_LIWI_CLEAN_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]
},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_LIRO_STEP_6",args:[]}],imgRef:["EXTENDED_FUSION_LIRO_CLEAN_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_LIWI_STEP_7_1",args:[]},{id:"_QAPP514_INFO_EXTENDED_FUSION_ANY_STEP_7",args:["2"]}],imgRef:["EXTENDED_FUSION_LIWI_ATTACH_BP.png","EXTENDED_FUSION_LIWI_ATTACH_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_ANY_STEP_7",args:["1"]},{
id:"_QAPP514_INFO_EXTENDED_FUSION_LIRO_STEP_7_3",args:["2"]}],imgRef:["EXTENDED_FUSION_LIRO_ATTACH_WP.png","EXTENDED_FUSION_LIRO_ATTACH_INNER_DS.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_8_1",args:[]},{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_8_2",args:[]},{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_8_3",args:[]}],imgRef:["EXTENDED_FUSION_LIWI_ATTACH_OUTER_DS.png","EXTENDED_FUSION_LIWI_ATTACH_FRONT_DS.png","EXTENDED_FUSION_LIWI_ATTACH_DISPLAY.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.EXTENDED,corpus:P.MASS_COMPERATOR,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_8_1",args:[]},{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_8_2",args:[]
},{id:"_QAPP514_INFO_EXTENDED_FUSION_STEP_8_3",args:[]}],imgRef:["EXTENDED_FUSION_LIRO_ATTACH_OUTER_DS.png","EXTENDED_FUSION_LIRO_ATTACH_FRONT_DS.png","EXTENDED_FUSION_LIRO_ATTACH_DISPLAY.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.STANDARD,corpus:P.MASS_COMPERATOR,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_1",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_2",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_3",args:["3"]}],imgRef:["STANDARD_FUSION_LIRO_OPEN_OUTER_DS.png","STANDARD_FUSION_LIRO_DEATTACH_INNER_DS.png","STANDARD_FUSION_LIRO_DEATTACH_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.MASS_COMPERATOR,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_2",args:[]}],
imgRef:["STANDARD_FUSION_LIRO_CLEAN_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.MASS_COMPERATOR,draftshield:c.LIRO,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_1",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_2",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_3",args:["3"]}],imgRef:["STANDARD_FUSION_LIRO_ATTACH_WP.png","STANDARD_FUSION_LIRO_ATTACH_INNER_DS.png","STANDARD_FUSION_LIRO_CLOSE_OUTER_DS.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.STANDARD,corpus:P.MASS_COMPERATOR,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_1",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_3",args:["2"]}],imgRef:["STANDARD_FUSION_LIWI_OPEN_OUTER_DS.png","STANDARD_FUSION_LIWI_DEATTACH_WP.png"],
helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.MASS_COMPERATOR,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_2",args:[]}],imgRef:["STANDARD_FUSION_LIWI_CLEAN_WP.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.MASS_COMPERATOR,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_1",args:[]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_3",args:["2"]}],imgRef:["STANDARD_FUSION_LIWI_ATTACH_WP.png","STANDARD_FUSION_LIWI_CLOSE_OUTER_DS.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.STANDARD,corpus:P.ULTRA_MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_1",
args:[]},{id:"_QAPP514_INFO_STANDARD_ULTRAMICRO_STEP_1_2",args:["2"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["3"]}],imgRef:["UltraMicro_Dis_DraftShield.png","UltraMicro_Dis_WeighingPanInnerDraftShield.png","Micro_Dis_BasePlate.png"],helpLink:""},{mode:o.STANDARD,corpus:P.ULTRA_MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_ULTRAMICRO_STEP_2",args:[]}],imgRef:["UltraMicro_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.ULTRA_MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_ULTRAMICRO_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_STANDARD_ULTRAMICRO_STEP_3_2",args:[]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_3",args:["3"]}],
imgRef:["Micro_Ass_BasePlate.png","UltraMicro_Ass_WeighingPanInnerDraftShield.png","UltraMicro_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.STANDARD,corpus:P.MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_1",args:[]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_2",args:["2"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["3"]}],imgRef:["Micro_Dis_DraftShield.png","Micro_Dis_WeighingPan.png","Micro_Dis_BasePlate.png"],helpLink:""},{mode:o.STANDARD,corpus:P.MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_2",args:[]}],imgRef:["Micro_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.MICRO,draftshield:c.ROWI,control:u.ANY,
screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_2",args:["2"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_3",args:["3"]}],imgRef:["Micro_Ass_BasePlate.png","Micro_Ass_WeighingPan.png","Micro_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.EXTENDED,corpus:P.NO_MATTER,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING_AND_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_MICRO_STEP_1",args:[]}],imgRef:["Micro_DisCle_PalmKeys.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.ULTRA_MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING_AND_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_MICRO_STEP_2",args:[]}],
imgRef:["UltraMicro_DisCle_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.EXTENDED,corpus:P.MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING_AND_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_MICRO_STEP_2",args:[]}],imgRef:["Micro_DisCle_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.EXTENDED,corpus:P.ULTRA_MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_ULTRAMICRO_STEP_1_2",args:["1"]},{id:"_QAPP514_INFO_EXTENDED_ULTRAMICRO_STEP_3_2",args:["2"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["3"]}],imgRef:["UltraMicro_Dis_WeighingPanInnerDraftShield.png","UltraMicro_Dis_Bush.png","Micro_Dis_BasePlate.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,
title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_2",args:["1"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["2"]}],imgRef:["Micro_Dis_WeighingPan.png","Micro_Dis_BasePlate.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.ULTRA_MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_ULTRAMICRO_STEP_4",args:[]}],imgRef:["UltraMicro_Cle_WeighingPanBush.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_2",args:[]}],imgRef:["Micro_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.NO_MATTER,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,
title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_MICRO_STEP_5",args:[]}],imgRef:["Micro_Cle_Housing.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[7]},{mode:o.EXTENDED,corpus:P.ULTRA_MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_EXTENDED_ULTRAMICRO_STEP_6_2",args:["2"]},{id:"_QAPP514_INFO_EXTENDED_MICRO_STEP_6_3",args:["3"]}],imgRef:["Micro_Ass_BasePlate.png","UltraMicro_Ass_Bush.png","Micro_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.EXTENDED,corpus:P.MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_EXTENDED_MICRO_STEP_6_3",args:["2"]}],
imgRef:["Micro_Ass_BasePlate.png","Micro_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.EXTENDED,corpus:P.ULTRA_MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_ULTRAMICRO_STEP_7_1",args:[]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_3",args:["2"]},{id:"_QAPP514_INFO_EXTENDED_MICRO_STEP_7_3",args:["3"]}],imgRef:["UltraMicro_Ass_InnerDraftShield.png","UltraMicro_Ass_DraftShield.png","Micro_Ass_PalmKeys.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.EXTENDED,corpus:P.MICRO,draftshield:c.ROWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_3",args:["1"]},{id:"_QAPP514_INFO_EXTENDED_MICRO_STEP_7_3",args:["2"]}],imgRef:["Micro_Ass_DraftShield.png","Micro_Ass_PalmKeys.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.STANDARD,
corpus:P.ULTRA_MICRO,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_ULTRA_FILTER_STEP_1",args:[]}],imgRef:["UltraFilter_Dis_WeighingPan.png"],helpLink:""},{mode:o.STANDARD,corpus:P.MICRO,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FILTER_STEP_1",args:[]}],imgRef:["Filter_Dis_WeighingPan.png"],helpLink:""},{mode:o.STANDARD,corpus:P.NO_MATTER,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FILTER_STEP_2_1",args:[]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["2"]}],imgRef:["Filter_Dis_DraftShield.png","Filter_Dis_BasePlate.png"],helpLink:""},{mode:o.STANDARD,corpus:P.ULTRA_MICRO,draftshield:c.FILTER,control:u.ANY,
screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_ULTRA_FILTER_STEP_3",args:[]}],imgRef:["UltraFilter_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.MICRO,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_FILTER_STEP_3",args:[]}],imgRef:["Filter_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.NO_MATTER,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_STANDARD_FILTER_STEP_4_2",args:["2"]}],imgRef:["Filter_Ass_BasePlate.png","Filter_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.STANDARD,corpus:P.ULTRA_MICRO,draftshield:c.FILTER,
control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_ULTRA_FILTER_STEP_5",args:[]}],imgRef:["UltraFilter_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.STANDARD,corpus:P.MICRO,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FILTER_STEP_5",args:[]}],imgRef:["Filter_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.EXTENDED,corpus:P.NO_MATTER,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FILTER_STEP_1",args:[]}],imgRef:["Filter_Cle_PalmKeys.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.ULTRA_MICRO,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,
title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_ULTRA_FILTER_STEP_1",args:[]}],imgRef:["UltraFilter_Dis_WeighingPan.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.MICRO,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FILTER_STEP_1",args:[]}],imgRef:["Filter_Dis_WeighingPan.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.ULTRA_MICRO,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FILTER_STEP_2_1",args:[]},{id:"_QAPP514_INFO_EXTENDED_ULTRAMICRO_STEP_3_2",args:["2"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["3"]}],imgRef:["Filter_Dis_DraftShield.png","UltraFilter_Dis_Bush.png","Filter_Dis_BasePlate.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.MICRO,draftshield:c.FILTER,control:u.ANY,
screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FILTER_STEP_2_1",args:[]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["2"]}],imgRef:["Filter_Dis_DraftShield.png","Filter_Dis_BasePlate.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.NO_MATTER,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FILTER_STEP_4",args:[]}],imgRef:["Filter_Cle_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.ULTRA_MICRO,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_ULTRA_FILTER_STEP_5",args:[]}],imgRef:["UltraFilter_Cle_WeighingPanBush.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.MICRO,draftshield:c.FILTER,control:u.ANY,
screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_FILTER_STEP_3",args:[]}],imgRef:["Filter_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.NO_MATTER,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FILTER_STEP_6",args:[]}],imgRef:["Filter_Cle_Housing.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[7]},{mode:o.EXTENDED,corpus:P.ULTRA_MICRO,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_ULTRAMICRO_STEP_6_2",args:["1"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_1",args:["2"]},{id:"_QAPP514_INFO_STANDARD_FILTER_STEP_4_2",args:["3"]}],imgRef:["Filter_Ass_BasePlate.png","UltraFilter_Ass_Bush.png","Filter_Ass_DraftShield.png"],
helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[10]},{mode:o.EXTENDED,corpus:P.MICRO,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_STANDARD_FILTER_STEP_4_2",args:["2"]}],imgRef:["Filter_Ass_BasePlate.png","Filter_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[10]},{mode:o.EXTENDED,corpus:P.ULTRA_MICRO,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_ULTRA_FILTER_STEP_5",args:[]}],imgRef:["UltraFilter_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.EXTENDED,corpus:P.MICRO,draftshield:c.FILTER,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FILTER_STEP_5",args:[]}],
imgRef:["Filter_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.STANDARD,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_1",args:[]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_2",args:["2"]}],imgRef:["Analytic_Manual_Basic_Dis_DraftShield.png","Analytic_Manual_Basic_Dis_WeighingPan.png"],helpLink:""},{mode:o.STANDARD,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_2",args:[]}],imgRef:["Analytic_Manual_Basic_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{
id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_2",args:["1"]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_3",args:["2"]}],imgRef:["Analytic_Manual_Basic_Ass_WeighingPan.png","Analytic_Manual_Basic_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.STANDARD,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_1",args:[]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_2",args:["2"]}],imgRef:["Analytic_Motorized_Basic_Dis_DraftShield.png","Analytic_Motorized_Basic_Dis_WeighingPan.png"],helpLink:""},{mode:o.STANDARD,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_2",args:[]}],imgRef:["Analytic_Motorized_Basic_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{
mode:o.STANDARD,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_2",args:["1"]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_3",args:["2"]}],imgRef:["Analytic_Motorized_Basic_Ass_WeighingPan.png","Analytic_Motorized_Basic_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING_AND_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MOTORIC_STEP_0",args:[]}],imgRef:["Analytic_Motorized_Advanced_Dis_Cle_PalmKeys.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{
id:"_QAPP514_INFO_EXTENDED_PRECISION_MANUAL_STEP_0",args:[]}],imgRef:["Analytic_Manual_Advanced_Cle_Display.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MOTORIC_STEP_1",args:[s.EnumFontLabels.HELP]}],imgRef:["Analytic_Motorized_Advanced_Dis_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[10]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MANUAL_STEP_1",args:[s.EnumFontLabels.HELP]}],imgRef:["Analytic_Manual_Advanced_Dis_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[10]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,
screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_2",args:["1"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["2"]}],imgRef:["Analytic_Motorized_Advanced_Dis_WeighingPan.png","Analytic_Motorized_Advanced_Dis_ShieldPlate.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_2",args:["1"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["2"]}],imgRef:["Analytic_Manual_Advanced_Dis_WeighingPan.png","Analytic_Manual_Advanced_Dis_ShieldPlate.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_STEP_3",args:[]}],
imgRef:["Analytic_Miligram_Cle_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[5]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_STEP_3",args:[]}],imgRef:["Analytic_Miligram_Cle_DraftShield_BackPanel.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[5]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_2",args:[]}],imgRef:["Analytic_Advanced_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_STEP_5",args:[]}],
imgRef:["Analytic_Motorized_Advanced_Cle_Housing.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[7]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_STEP_5",args:[]}],imgRef:["Analytic_Manual_Advanced_Cle_Housing.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[7]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_2",args:["2"]}],imgRef:["Analytic_Motorized_Advanced_Ass_ShieldPlate.png","Analytic_Motorized_Advanced_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,
title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_2",args:["2"]}],imgRef:["Analytic_Manual_Advanced_Ass_ShieldPlate.png","Analytic_Manual_Advanced_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MOTORIC_STEP_7",args:[]}],imgRef:["Analytic_Motorized_Advanced_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.EXTENDED,corpus:P.ANALYTICAL,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MANUAL_STEP_7",args:[]}],imgRef:["Analytic_Manual_Advanced_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{
mode:o.STANDARD,corpus:P.PRECISION,draftshield:c.ANY,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_1",args:[]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_2",args:["2"]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_3",args:["3"]}],imgRef:["Miligram_Manual_Basic_Dis_DraftShield.png","Miligram_Manual_Basic_Dis_WeighingPan.png","Miligram_Manual_Basic_Dis_SupportDisk.png"],helpLink:""},{mode:o.STANDARD,corpus:P.PRECISION,draftshield:c.ANY,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_2",args:[]}],imgRef:["Miligram_Manual_Basic_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.PRECISION,draftshield:c.ANY,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,
title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_2",args:["2"]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_3",args:["3"]}],imgRef:["Miligram_Manual_Basic_Ass_SupportDisk.png","Miligram_Manual_Basic_Ass_WeighingPan.png","Miligram_Manual_Basic_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.STANDARD,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_1_1",args:[]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_2",args:["2"]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_3",args:["3"]}],imgRef:["Miligram_Motorized_Basic_Dis_DraftShield.png","Miligram_Motorized_Basic_Dis_WeighingPan.png","Miligram_Motorized_Basic_Dis_SupportDisk.png"],helpLink:""},{mode:o.STANDARD,corpus:P.PRECISION,draftshield:c.LIWI,
control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_2",args:[]}],imgRef:["Miligram_Motorized_Basic_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_2",args:["2"]},{id:"_QAPP514_INFO_STANDARD_FUSION_STEP_3_3",args:["3"]}],imgRef:["Miligram_Motorized_Basic_Ass_WeighingPan.png","Miligram_Motorized_Basic_Ass_SupportDisk.png","Miligram_Motorized_Basic_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[8]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,
title:"_QAPP514_INFO_TITLE_DISASSEMBLING_AND_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MOTORIC_STEP_0",args:[]}],imgRef:["Miligram_Motorized_Advanced_Dis_Cle_PalmKeys.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MANUAL_STEP_0",args:[]}],imgRef:["Miligram_Manual_Cle_Display.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.SMALL_LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MANUAL_STEP_0",args:[]}],imgRef:["Miligram_Manual_Cle_Display.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MOTORIC,
screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MOTORIC_STEP_1",args:[s.EnumFontLabels.HELP]}],imgRef:["Miligram_Motorized_Advanced_Dis_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[10]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MANUAL_STEP_1",args:[s.EnumFontLabels.HELP]}],imgRef:["Miligram_Manual_Advanced_Dis_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[10]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.SMALL_LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_SMALL_STEP_1",args:[s.EnumFontLabels.HELP]}],imgRef:["Miligram_Small_Advanced_Dis_DraftShield.png"],
helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[10]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_2",args:["1"]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_3",args:["2"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["3"]}],imgRef:["Miligram_Motorized_Advanced_Dis_WeighingPan.png","Miligram_Motorized_Advanced_Dis_SupportDisk.png","Miligram_Motorized_Advanced_Dis_ShieldPlate.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_2",args:["1"]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_3",args:["2"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["3"]}],
imgRef:["Miligram_Manual_Advanced_Dis_WeighingPan.png","Miligram_Manual_Advanced_Dis_SupportDisk.png","Miligram_Manual_Advanced_Dis_ShieldPlate.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.SMALL_LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_2",args:["1"]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_3",args:["2"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["3"]}],imgRef:["Miligram_Small_Advanced_Dis_WeighingPan.png","Miligram_Small_Advanced_Dis_SupportDisk.png","Miligram_Small_Advanced_Dis_ShieldPlate.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_STEP_3",args:[]}],imgRef:["Analytic_Miligram_Cle_DraftShield.png"],
helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[5]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_STEP_3",args:[]}],imgRef:["Analytic_Miligram_Cle_DraftShield_BackPanel.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[5]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.SMALL_LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_STEP_3",args:[]}],imgRef:["Analytic_Miligram_Cle_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[5]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.ANY,control:u.ANY,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_STEP_4",args:[]}],imgRef:["Miligram_Advanced_Cle_WeighingPan_SupportDisk.png"],
helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_STEP_5",args:[]}],imgRef:["Miligram_Motorized_Advanced_Cle_Housing.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[7]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_STEP_5",args:[]}],imgRef:["Miligram_Manual_Advanced_Cle_Housing.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[7]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.SMALL_LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_SMALL_STEP_5",args:[]}],imgRef:["Miligram_Small_Advanced_Cle_Housing.png"],
helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[7]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_3_1",args:["2"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_2",args:["3"]}],imgRef:["Miligram_Motorized_Advanced_Ass_ShieldPlate.png","Miligram_Motorized_Advanced_Ass_SupportDisk.png","Miligram_Motorized_Advanced_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_3_1",args:["2"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_2",args:["3"]}],
imgRef:["Miligram_Manual_Advanced_Ass_ShieldPlate.png","Miligram_Manual_Advanced_Ass_SupportDisk.png","Miligram_Manual_Advanced_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.SMALL_LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.SPLITINTHIRDS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_3_1",args:["2"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_2",args:["3"]}],imgRef:["Miligram_Small_Advanced_Ass_ShieldPlate.png","Miligram_Small_Advanced_Ass_SupportDisk.png","Miligram_Small_Advanced_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MOTORIC,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MOTORIC_STEP_7",args:[]}],
imgRef:["Miligram_Motorized_Advanced_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MANUAL_STEP_7",args:[]}],imgRef:["Miligram_Manual_Advanced_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.SMALL_LIWI,control:u.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_SMALL_STEP_7",args:[]}],imgRef:["Miligram_Small_Advanced_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[11]},{mode:o.STANDARD,corpus:P.PRECISION,draftshield:c.FLAT,control:u.NONE,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{
id:"_QAPP514_INFO_STANDARD_PRECISION_FRAME_STEP_1_1",args:[]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_2",args:["2"]}],imgRef:["Frame_Dis_DraftShield.png","Frame_Dis_WeighingPan.png"],helpLink:""},{mode:o.STANDARD,corpus:P.PRECISION,draftshield:c.FLAT,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_FRAME_STEP_2",args:[]}],imgRef:["Frame_Cle_DraftShield_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.STANDARD,corpus:P.PRECISION,draftshield:c.FLAT,control:u.NONE,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_2",args:["1"]},{id:"_QAPP514_INFO_STANDARD_PRECISION_FRAME_STEP_3_2",args:["2"]}],imgRef:["Frame_Ass_WeighingPan.png","Frame_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.FLAT,
control:u.NONE,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_FRAME_STEP_1_1",args:[]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_2",args:["2"]}],imgRef:["Frame_Dis_DraftShield.png","Frame_Dis_WeighingPan.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.FLAT,control:u.NONE,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_1_3",args:["1"]},{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_1_3",args:["2"]}],imgRef:["Frame_Dis_SupportDisk.png","Frame_Dis_ShieldPlate.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.FLAT,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_FRAME_STEP_3",args:[]}],imgRef:["Frame_Cle_DraftShield_WeighingPan_SupportDisk.png"],
helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.FLAT,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_NONE_STEP_4",args:[]}],imgRef:["Frame_Cle_Housing.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[7]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.FLAT,control:u.NONE,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_1",args:["1"]},{id:"_QAPP514_INFO_STANDARD_PRECISION_LIWI_STEP_3_1",args:["2"]}],imgRef:["Frame_Ass_ShieldPlate.png","Frame_Ass_SupportDisk.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.FLAT,control:u.NONE,screenType:i.EnumWizardScreenLayout.SPLITINHALFS,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_MICRO_STEP_3_2",args:["1"]},{
id:"_QAPP514_INFO_STANDARD_PRECISION_FRAME_STEP_3_2",args:["2"]}],imgRef:["Frame_Ass_WeighingPan.png","Frame_Ass_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.STANDARD,corpus:P.FRAMED_PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING_CLEANING_AND_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_FRAMED_PRECISION_NONE_STEP_1",args:[]}],imgRef:["Precision_Dis_Cle_Ass_WeighingPan_ShieldDisk.png"],helpLink:""},{mode:o.STANDARD,corpus:P.PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING_CLEANING_AND_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_PRECISION_NONE_STEP_1",args:[]}],imgRef:["Precision_Dis_Cle_Ass_WeighingPan.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.FRAMED_PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,
title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FRAMED_PRECISION_NONE_STEP_1",args:[]}],imgRef:["Precision_Dis_WeighingPan_ShieldDisk.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_NONE_STEP_1",args:[]}],imgRef:["Precision_Dis_WeighingPan.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.FRAMED_PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_NONE_STEP_2",args:[]}],imgRef:["Precision_Dis_SupportDisk.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{
id:"_QAPP514_INFO_EXTENDED_PRECISION_NONE_STEP_2",args:[]}],imgRef:["Precision_Dis_SupportDisk.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.FRAMED_PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FRAMED_PRECISION_NONE_STEP_3",args:[]}],imgRef:["Precision_Cle_WeighingPan_ShieldDisk.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_NONE_STEP_3",args:[]}],imgRef:["Precision_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.FRAMED_PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_NONE_STEP_4",
args:[]}],imgRef:["Precision_Cle_Housing.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[7]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_NONE_STEP_4",args:[]}],imgRef:["Precision_Cle_Housing.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[7]},{mode:o.EXTENDED,corpus:P.FRAMED_PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_NONE_STEP_5_1",args:[]}],imgRef:["Precision_Ass_SupportDisk.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_NONE_STEP_5_1",args:[]}],
imgRef:["Precision_Ass_SupportDisk.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.EXTENDED,corpus:P.FRAMED_PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_FRAMED_PRECISION_NONE_STEP_5_2",args:[]}],imgRef:["Precision_Ass_WeighingPan_ShieldDisk.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.EXTENDED,corpus:P.PRECISION,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_NONE_STEP_5_2",args:[]}],imgRef:["Precision_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.STANDARD,corpus:P.HIGH_CAPACITY,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING_CLEANING_AND_REASSEMBLING",instruction:[{
id:"_QAPP514_INFO_STANDARD_PRECISION_NONE_STEP_1",args:[]}],imgRef:["HighCapacity_Dis_Cle_Ass_WeighingPan.png"],helpLink:""},{mode:o.STANDARD,corpus:P.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING_CLEANING_AND_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_STANDARD_ROUND_HIGH_CAPACITY_STEP_1",args:[]}],imgRef:["HighCapacity_Dis_Cle_Ass_WeighingPan.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.HIGH_CAPACITY,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_NONE_STEP_1",args:[]}],imgRef:["HighCapacity_Dis_WeighingPan.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{
id:"_QAPP514_INFO_EXTENDED_ROUND_HIGH_CAPACITY_STEP_1",args:[]}],imgRef:["HighCapacity_Dis_WeighingPan.png"],helpLink:""},{mode:o.EXTENDED,corpus:P.HIGH_CAPACITY,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_HIGH_CAPACITY_STEP_2",args:[]}],imgRef:["HighCapacity_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_ROUND_HIGH_CAPACITY_STEP_2",args:[]}],imgRef:["HighCapacity_Cle_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[6]},{mode:o.EXTENDED,corpus:P.HIGH_CAPACITY,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_HIGH_CAPACITY_STEP_3",
args:[]}],imgRef:["HighCapacity_Cle_Housing.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_CLEANING",instruction:[{id:"_QAPP514_INFO_EXTENDED_HIGH_CAPACITY_STEP_3",args:[]}],imgRef:["HighCapacity_Cle_Housing.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[4]},{mode:o.EXTENDED,corpus:P.HIGH_CAPACITY,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_HIGH_CAPACITY_STEP_4",args:[]}],imgRef:["HighCapacity_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]},{mode:o.EXTENDED,corpus:P.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:u.NONE,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_REASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_ROUND_HIGH_CAPACITY_STEP_4",args:[]}],
imgRef:["HighCapacity_Ass_WeighingPan.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[13]}],t.createTaskConfig=function(e){let t={dev_mode:I.OFF,clean_mode:A.BASIC,corpus_model:N.FUSION,draftshield_type:l.LIRO,draftshield_control:T.MANUAL,skip_available:E.ENABLED,esig_enabled:E.DISABLED};return n.isObject(e)&&n.overwriteExistingAttributes(e,t),t},t.isValidFormat=R,t.isValidModel=function(e){return!!R(e)&&O(e)!==P.NO_MATTER},t.isValidDraftshieldModel=function(e){if(!R(e))return!1;let t=e.split(/(\s)/)[0].split("-"),_=O(e),a=t[t.length-1].toUpperCase();switch(_){case P.ULTRA_MICRO:case P.MICRO:return["M","F"].includes(a);case P.ANALYTICAL:return["U","A","I"].includes(a);case P.PRECISION:return["U","A","I","E","R","0","O"].includes(a);case P.FRAMED_PRECISION:case P.HIGH_CAPACITY:case P.HIGH_CAPACITY_ROUND:return["0","O"].includes(a);case P.FUSION:case P.MASS_COMPERATOR:return["D"].includes(a);case P.NO_MATTER:case P.CUBIS:return!1}},t.getEnumCorpusModelByString=O,
t.getDraftShieldByString=function(e){let t=e.split(/(\s)/)[0].split("-");switch(t[t.length-1].toUpperCase()){case"E":return[c.SMALL_LIWI,u.MANUAL];case"U":return[c.LIWI,u.MANUAL];case"A":case"I":return[c.LIWI,u.MOTORIC];case"R":return[c.FLAT,u.NONE];case"M":return[c.ROWI,u.MOTORIC];case"F":return[c.FILTER,u.MANUAL];case"D":return[c.ANY,u.ANY];case"0":case"O":default:return[c.NONE,u.NONE]}},t.getEnumDraftshieldByString=function(e){switch(e){case"LIWI":return c.LIWI;case"ROWI":return c.ROWI;case"LIRO":return c.LIRO;case"UNLICENSED":return c.UNLICENSED;case"PUSHER":return c.PUSHER;case"NONE":return c.NONE;default:return c.ERROR}},t.getIonizerByString=function(e){let t=e.split(/(\s)/)[0].split("-");if(t[1].startsWith("2")){if(t[0]in S)return"I"===t[t.length-1].toUpperCase()?p.WITH:p.WITHOUT}else if(t[1].startsWith("3")&&t[0]in d){if(d[t[0]]===P.FUSION)return p.WITH;if(d[t[0]]===P.MASS_COMPERATOR)return p.WITHOUT}return p.NO_MATTER},t.checkMetchingCleaningMode=function(e,t){
return e===A.NO_MATTER||t===o.STANDARD_EXTENDED||e===A.BASIC&&t===o.STANDARD||e===A.ADVANCED&&t===o.EXTENDED}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(1);var i;!function(e){e.INSTRUCTION="INSTRUCTION",e.INSTRUCTION_BOLD="INSTRUCTION_BOLD",e.IMAGE="IMAGE",e.ENUMERATION="ENUMERATION",e.BULLET_ENUMERATION="BULLET_ENUMERATION",e.TABLE="TABLE"}(i=t.HelpScreenContentType||(t.HelpScreenContentType={}));const n={type:i.INSTRUCTION,value:""};t.createEmptySimpleInstructionContent=function(){return a.cloneJSON(n)};const s={type:i.INSTRUCTION_BOLD,value:""};t.createEmptyBoldInstructionContent=function(){return a.cloneJSON(s)};const r={type:i.IMAGE,value:"",imageDescription:""};t.createEmptyImageContent=function(){return a.cloneJSON(r)};const E={type:i.ENUMERATION,steps:[]};t.createEmptyEnumerationContent=function(){return a.cloneJSON(E)};const o={type:i.BULLET_ENUMERATION,steps:[]};t.createEmptyBulletEnumerationContent=function(){
return a.cloneJSON(o)};const A={type:i.TABLE,header:[],rows:[]};t.createEmptyTableContent=function(){return a.cloneJSON(A)}},,function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(111),i=_(90),n=_(107),s=_(36),r=_(3),E=_(17),o=_(10),A=_(7),T=_(63),I=_(43),N=_(2),l=_(0),c=_(13);let u=n.createTaskConfig(),P={dev_mode:s.get_taskConfig_paramGroupID(1)+"/"+s.DYNAMIC_PARAMID_PREQUEL+"dev_mode",clean_mode:s.get_taskConfig_paramGroupID(1)+"/"+s.DYNAMIC_PARAMID_PREQUEL+"clean_mode",corpus:s.get_taskConfig_paramGroupID(1)+"/"+s.DYNAMIC_PARAMID_PREQUEL+"corpus",ds_type:s.get_taskConfig_paramGroupID(1)+"/"+s.DYNAMIC_PARAMID_PREQUEL+"ds_type",ds_control:s.get_taskConfig_paramGroupID(1)+"/"+s.DYNAMIC_PARAMID_PREQUEL+"ds_control",skip_available:s.get_taskConfig_paramGroupID(1)+"/"+s.DYNAMIC_PARAMID_PREQUEL+"skip_available",intcal_enabled:s.get_taskConfig_paramGroupID(1)+"/"+s.DYNAMIC_PARAMID_PREQUEL+"intcal_enabled",
esig_enabled:s.get_taskConfig_paramGroupID(1)+"/"+s.DYNAMIC_PARAMID_PREQUEL+"esig_enabled"};const p="TASK/IDENTIFICATION/DESCRIPTION",S="TASK/IDENTIFICATION/NAME",d=21,R="STATE_INTIAL_MODEL_TEST";let O,L,D={appearance:l.EnumAppearance.ENABLED,label:{id:A.EnumFontLabels.OK,args:[]},buttonId:"msgBtnOk"},h={appearance:l.EnumAppearance.ENABLED,label:{id:A.EnumFontLabels.CANCEL,args:[]},buttonId:"msgBtnNo"},C={appearance:l.EnumAppearance.ENABLED,label:{id:i.l("_QAPP_CFG_PARAM_HEADER_EMPTY_WITH_DEFAULT"),args:["DEV"]},buttonId:"msgBtnDev"};let m,g={STATE_INTIAL_MODEL_TEST:{_onEnter:function(e){let t={type:o.EnumMessageboxType.ERROR,title:{id:i.l("_QAPP514_HEADER_DEVELOPER_MODE"),args:[]},textList:[{id:i.l("_QAPP514_MESSAGE_DEVELOPER_MODE"),args:[]}],buttons:[]};(O=new T.MessageBox(e.mqttHandler)).setMessageBoxData(t),O.createButtons([C,h]);let _={type:o.EnumMessageboxType.WARNING,title:{id:i.l("_QAPP514_HEADER_CREATION_FAILED"),args:[]},textList:[{id:i.l("_QAPP514_MESSAGE_NOT_VALID"),args:[]
}],buttons:[]};(L=new T.MessageBox(e.mqttHandler)).setMessageBoxData(_),L.createButtons([D]),m=e.addTimer(2e3,"TIMER_FUSION"),e.mqttHandler.subscribe(N.MqttTopics.DEVELOPER_MODE)},_onExit:function(e){e.mqttHandler.unsubscribe(N.MqttTopics.DEVELOPER_MODE),e.mqttHandler.unsubscribe(N.MqttTopics.DEVICE_MODEL_NAME),e.developerFlag?(e.task_dev_mode.appearance=l.EnumAppearance.ENABLED,e.task_dev_mode.value.selection.id=n.EnumDev.ON,e.task_corpus.appearance=l.EnumAppearance.ENABLED,e.task_ds_type.appearance=l.EnumAppearance.ENABLED,e.task_ds_control.appearance=l.EnumAppearance.ENABLED):(e.task_dev_mode.appearance=l.EnumAppearance.HIDDEN,e.task_dev_mode.value.selection.id=n.EnumDev.OFF,e.task_corpus.appearance=l.EnumAppearance.HIDDEN,e.task_ds_type.appearance=l.EnumAppearance.HIDDEN,e.task_ds_control.appearance=l.EnumAppearance.HIDDEN)},EV_MQTT_UPDATE:function(e,t){
if(c.isObject(t)&&c.isObject(t.payload)&&t.payload.topic===N.MqttTopics.DEVELOPER_MODE)"true"===t.payload.value.toString()?(console.log("config - STATE_INTIAL_MODEL_TEST:: get generell information"),e.cancelTimer(m),O.show()):(e.developerFlag=!1,e.mqttHandler.subscribe(N.MqttTopics.DEVICE_MODEL_NAME));else if(c.isObject(t)&&c.isObject(t.payload)&&t.payload.topic===N.MqttTopics.DEVICE_MODEL_NAME){console.log("config - STATE_INTIAL_MODEL_TEST:: get Cubis II model information"),e.cancelTimer(m);let _=JSON.parse(t.payload.value.toString()).value.string;n.isValidModel(_)&&n.isValidDraftshieldModel(_)?this.transition(e,I.STATE_ASPECT_CFG_PARAM_EDIT_ENTER):L.show()}},QAPP_TIMER_EVENT:function(e,t){"TIMER_FUSION"===t.payload&&L.show()},EV_HMI_BTN_CLICKED:function(e,t){t.payload.buttonId===D.buttonId?(L.hide(),O.hide(),e.suspend()):t.payload.buttonId===h.buttonId?(e.developerFlag=!1,O.hide(),m=e.addTimer(2e3,"TIMER_FUSION"),
e.mqttHandler.subscribe(N.MqttTopics.DEVICE_MODEL_NAME)):t.payload.buttonId===C.buttonId&&(e.developerFlag=!0,L.hide(),O.hide(),this.transition(e,I.STATE_ASPECT_CFG_PARAM_EDIT_ENTER))}}};class M extends a.QAppConfigBase{constructor(){super(!0),this.isAdjustedTaskNameValid=!0,this.developerFlag=!1,this.task_clean_mode={id:P.clean_mode,type:l.EnumParameterTypes.PARAM_SELECTION,appearance:l.EnumAppearance.ENABLED,title:{id:i.l("_QAPP514_PARAM_TITLE_CLEANING_COMPLEXITY"),args:[]},header:{id:i.l("_QAPP514_PARAM_HEADER_CLEANING_COMPLEXITY"),args:[]},value:{selection:{id:u.clean_mode}},info:{options:[{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigCleanMode.BASIC,text:{id:n.EnumMapConfigCleanMode[n.EnumConfigCleanMode.BASIC],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigCleanMode.ADVANCED,text:{id:n.EnumMapConfigCleanMode[n.EnumConfigCleanMode.ADVANCED],args:[]}}]}},this.task_dev_mode={id:P.dev_mode,type:l.EnumParameterTypes.PARAM_SELECTION,
appearance:l.EnumAppearance.HIDDEN,title:{id:i.l("Development mode"),args:[]},header:{id:i.l("DEV"),args:[]},value:{selection:{id:u.dev_mode}},info:{options:[{appearance:l.EnumAppearance.ENABLED,id:n.EnumDev.OFF,text:{id:"OFF",args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumDev.ON,text:{id:"ON",args:[]}}]}},this.task_corpus={id:P.corpus,type:l.EnumParameterTypes.PARAM_SELECTION,appearance:l.EnumAppearance.HIDDEN,title:{id:i.l("_QAPP514_PARAM_TITLE_CORPUS"),args:[]},header:{id:i.l("_QAPP_CFG_PARAM_HEADER_EMPTY_WITH_DEFAULT"),args:["Corpus"]},value:{selection:{id:u.draftshield_type}},info:{options:[{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigCorpus.FUSION,text:{id:n.EnumMapCorpus[n.EnumConfigCorpus.FUSION],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigCorpus.MASS_COMPERATOR,text:{id:n.EnumMapCorpus[n.EnumConfigCorpus.MASS_COMPERATOR],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigCorpus.ULTRA_MICRO,text:{
id:n.EnumMapCorpus[n.EnumConfigCorpus.ULTRA_MICRO],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigCorpus.MICRO,text:{id:n.EnumMapCorpus[n.EnumConfigCorpus.MICRO],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigCorpus.ANALYTICAL,text:{id:n.EnumMapCorpus[n.EnumConfigCorpus.ANALYTICAL],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigCorpus.FRAMED_PRECISION,text:{id:n.EnumMapCorpus[n.EnumConfigCorpus.FRAMED_PRECISION],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigCorpus.PRECISION,text:{id:n.EnumMapCorpus[n.EnumConfigCorpus.PRECISION],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigCorpus.HIGH_CAPACITY,text:{id:n.EnumMapCorpus[n.EnumConfigCorpus.HIGH_CAPACITY],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigCorpus.HIGH_CAPACITY_ROUND,text:{id:n.EnumMapCorpus[n.EnumConfigCorpus.HIGH_CAPACITY_ROUND],args:[]}}]}},this.task_ds_type={id:P.ds_type,type:l.EnumParameterTypes.PARAM_SELECTION,
appearance:l.EnumAppearance.HIDDEN,title:{id:i.l("_QAPP514_PARAM_TITLE_DS_TYPE"),args:[]},header:{id:i.l("_QAPP_CFG_PARAM_HEADER_EMPTY_WITH_DEFAULT"),args:["DSType"]},value:{selection:{id:u.draftshield_type}},info:{options:[{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigDraftshieldType.NONE,text:{id:n.EnumMapConfigDraftshieldType[n.EnumConfigDraftshieldType.NONE],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigDraftshieldType.SMALL_LIWI,text:{id:n.EnumMapConfigDraftshieldType[n.EnumConfigDraftshieldType.SMALL_LIWI],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigDraftshieldType.LIWI,text:{id:n.EnumMapConfigDraftshieldType[n.EnumConfigDraftshieldType.LIWI],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigDraftshieldType.LIRO,text:{id:n.EnumMapConfigDraftshieldType[n.EnumConfigDraftshieldType.LIRO],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigDraftshieldType.ROWI,text:{
id:n.EnumMapConfigDraftshieldType[n.EnumConfigDraftshieldType.ROWI],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigDraftshieldType.FILTER,text:{id:n.EnumMapConfigDraftshieldType[n.EnumConfigDraftshieldType.FILTER],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigDraftshieldType.FLAT,text:{id:n.EnumMapConfigDraftshieldType[n.EnumConfigDraftshieldType.FLAT],args:[]}}]}},this.task_ds_control={id:P.ds_control,type:l.EnumParameterTypes.PARAM_SELECTION,appearance:l.EnumAppearance.HIDDEN,title:{id:i.l("_QAPP514_PARAM_TITLE_DS_CONTROL"),args:[]},header:{id:i.l("_QAPP_CFG_PARAM_HEADER_EMPTY_WITH_DEFAULT"),args:["DSControl"]},value:{selection:{id:u.draftshield_control}},info:{options:[{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigDraftshieldControl.NONE,text:{id:n.EnumMapConfigDraftshieldControl[n.EnumConfigDraftshieldControl.NONE],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigDraftshieldControl.MANUAL,text:{
id:n.EnumMapConfigDraftshieldControl[n.EnumConfigDraftshieldControl.MANUAL],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigDraftshieldControl.MOTORIC,text:{id:n.EnumMapConfigDraftshieldControl[n.EnumConfigDraftshieldControl.MOTORIC],args:[]}}]}},this.task_skip_available={id:P.skip_available,type:l.EnumParameterTypes.PARAM_SELECTION,appearance:l.EnumAppearance.ENABLED,title:{id:i.l("_QAPP514_PARAM_TITLE_SKIP_AVAILABLE"),args:[]},header:{id:i.l("_QAPP514_PARAM_HEADER_SKIP_AVAILABLE"),args:[]},value:{selection:{id:u.skip_available}},info:{options:[{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigEnabled.ENABLED,text:{id:n.EnumMapConfigYesNo[n.EnumConfigEnabled.ENABLED],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigEnabled.DISABLED,text:{id:n.EnumMapConfigYesNo[n.EnumConfigEnabled.DISABLED],args:[]}}]}},this.task_esig_enabled={id:P.esig_enabled,type:l.EnumParameterTypes.PARAM_SELECTION,appearance:l.EnumAppearance.ENABLED,title:{
id:i.l("_QAPP514_PARAM_TITLE_ESIGNATURE_ENABLED"),args:[]},header:{id:i.l("_QAPP_CFG_PARAM_HEADER_EMPTY_WITH_DEFAULT"),args:["ESig."]},value:{selection:{id:u.esig_enabled}},info:{options:[{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigEnabled.ENABLED,text:{id:n.EnumMapConfigOnOff[n.EnumConfigEnabled.ENABLED],args:[]}},{appearance:l.EnumAppearance.ENABLED,id:n.EnumConfigEnabled.DISABLED,text:{id:n.EnumMapConfigOnOff[n.EnumConfigEnabled.DISABLED],args:[]}}]}},this.maxConfigurableLID=0,this.maxConfigurableSID=0,this.suppressModifyWarning=!0}provideStartFsmState(){return R}provideFsmStates(){let e=super.provideFsmStates();return e[R]=g[R],e}postInit(){super.postInit();for(let e=1;e<=2;e++){let t=this.taskHandler.getParameter(E.TASK_PROFILE_REPORTING_ID_PREFIX+"_"+e.toFixed(0));void 0!==t&&(t.appearance=l.EnumAppearance.HIDDEN,this.taskHandler.updateParameter(t))}let e=this.taskHandler.getParameter(E.TASK_PROFILE_WEIGHING_ID);void 0!==e&&(e.appearance=l.EnumAppearance.HIDDEN,
this.taskHandler.updateParameter(e)),u=n.createTaskConfig(s.loadTaskConfig_DATA_CONTAINER(this.taskHandler)),this.task_clean_mode.value.selection.id=u.clean_mode,this.task_dev_mode.value.selection.id=u.dev_mode,this.task_dev_mode.appearance=this.developerFlag?l.EnumAppearance.ENABLED:l.EnumAppearance.HIDDEN,this.task_corpus.value.selection.id=u.corpus_model,this.task_corpus.appearance=u.dev_mode===n.EnumDev.ON?l.EnumAppearance.ENABLED:l.EnumAppearance.HIDDEN,this.task_ds_type.value.selection.id=u.draftshield_type,this.task_ds_type.appearance=u.dev_mode===n.EnumDev.ON?l.EnumAppearance.ENABLED:l.EnumAppearance.HIDDEN,this.task_ds_control.value.selection.id=u.draftshield_control,this.task_ds_control.appearance=u.dev_mode===n.EnumDev.ON?l.EnumAppearance.ENABLED:l.EnumAppearance.HIDDEN,this.task_skip_available.value.selection.id=u.skip_available,this.task_esig_enabled.value.selection.id=u.esig_enabled}isTotalConfigValid(){return this.isAdjustedTaskNameValid&&this.isConfigValid()}
adjustTaskNameAndDescription(e){let t=this.localizerProxy.getText(n.EnumMapConfigDescription[e]);this.taskHandler.getParameter(p).value.string=t;let _=this.taskHandler.getParameter(S),a=this.localizerProxy.getLanguage();if(a||(a="DEFAULT"),this.readQAppDescQTFAsJSON(a)){let t=this.taskMngProxy.getTaskNamesByOrderNumber(this.qAppOrderNumber),a=this.localizerProxy.getText(n.EnumMapConfigCleanMode[e]);a=a.slice(0,_.info.maximum.length),_.value.string=a,_.appearance=l.EnumAppearance.ENABLED;let i=0,s=!1;for(t=t.filter(e=>e.startsWith(_.value.string));i<d;){if(void 0===t.find(e=>e===_.value.string)){s=!0;break}if(_.value.string=`${a} (${++i})`,console.log("new task name generated: "+_.value.string),_.value.string.length>_.info.maximum.length){console.log("taskname too long while autonaming"),s=!1;break}}s?(console.log("task name finally unique"),this.isAdjustedTaskNameValid=!0):(console.log("taskname finally not unique"),this.isAdjustedTaskNameValid=!1,_.value.string=a,
_.appearance=l.EnumAppearance.ENABLED_INVALID_CFG)}else _.value.string="Input a name for the task.",_.appearance=l.EnumAppearance.ENABLED_INVALID_CFG;this.updateTaskHandlerAndPublish(_)}updateTaskParameter(e){if(e.id===P.clean_mode&&r.isTypeOfISelectionParameter(e)){let t=this.taskHandler.getParameter(S);this.adjustTaskNameAndDescription(e.value.selection.id),this.updateTaskHandlerAndPublish(t),this.updateTaskHandlerAndPublish(this.taskHandler.getParameter(p))}else if(e.id===P.dev_mode&&r.isTypeOfISelectionParameter(e)){let t=this.taskHandler.getParameter(P.corpus),_=this.taskHandler.getParameter(P.ds_control),a=this.taskHandler.getParameter(P.ds_type);e.value.selection.id===n.EnumDev.OFF?(t.appearance=l.EnumAppearance.HIDDEN,_.appearance=l.EnumAppearance.HIDDEN,a.appearance=l.EnumAppearance.HIDDEN):(t.appearance=l.EnumAppearance.ENABLED,_.appearance=l.EnumAppearance.ENABLED,a.appearance=l.EnumAppearance.ENABLED),this.updateTaskHandlerAndPublish(t),this.updateTaskHandlerAndPublish(_),
this.updateTaskHandlerAndPublish(a)}this.updateTaskHandlerAndPublish(e)}handleParamUpdateUserAction(e,t){return!1}isConfigValid(){return!0}adaptTaskHandler(){this.taskHandler.getTask()?this.taskId&&""!==this.taskId?(this.taskHandler.updateParameter(this.task_clean_mode),this.taskHandler.updateParameter(this.task_dev_mode),this.taskHandler.updateParameter(this.task_corpus),this.taskHandler.updateParameter(this.task_ds_type),this.taskHandler.updateParameter(this.task_ds_control),this.taskHandler.updateParameter(this.task_skip_available),this.taskHandler.updateParameter(this.task_esig_enabled)):(this.taskHandler.addDynamicGroup({id:s.get_taskConfig_paramGroupID(1),type:l.EnumParameterTypes.PARAM_GROUP,appearance:l.EnumAppearance.ENABLED,title:{id:i.l("_QAPP514_SCREENTITLE_CONFIG"),args:[]},parameters:[this.task_clean_mode,this.task_dev_mode,this.task_corpus,this.task_ds_type,this.task_ds_control,this.task_skip_available,this.task_esig_enabled]}),
this.adjustTaskNameAndDescription(this.task_clean_mode.value.selection.id)):this.exitError(n.QAPP_ID+"::adaptTaskHandler - task undefined, unexpectedly")}storeTask(){this.task_dev_mode=this.taskHandler.getParameter(P.dev_mode),this.task_clean_mode=this.taskHandler.getParameter(P.clean_mode),this.task_corpus=this.taskHandler.getParameter(P.corpus),this.task_ds_type=this.taskHandler.getParameter(P.ds_type),this.task_ds_control=this.taskHandler.getParameter(P.ds_control),this.task_skip_available=this.taskHandler.getParameter(P.skip_available),this.task_esig_enabled=this.taskHandler.getParameter(P.esig_enabled);try{u.dev_mode=this.task_dev_mode.value.selection.id,u.clean_mode=this.task_clean_mode.value.selection.id,u.corpus_model=this.task_corpus.value.selection.id,u.draftshield_type=this.task_ds_type.value.selection.id,u.draftshield_control=this.task_ds_control.value.selection.id,u.skip_available=this.task_skip_available.value.selection.id,
u.esig_enabled=this.task_esig_enabled.value.selection.id}catch(e){}s.storeTaskConfig_DATA_CONTAINER(this.taskHandler,u,!0);let e=this.taskHandler.getTask();return e&&(e.lastExecution=Date.now()),super.storeTask()}}if(t.QAPPCONFIG=M,__dirname.endsWith("configWorkflow")){(new M).run()}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=_(43),i=_(23),n=_(7),s=_(10),r=_(68),E=_(17),o=_(27),A=_(66),T=_(14),I=_(33),N=_(1),l=_(89),c=_(112),u=_(9),P=_(0),p="STATE_OVERVIEW_RESULT",S="STATE_CHECK_DATABASE",d="STATE_DATABASE_CONN_SUCCESS",R="STATE_DATABASE_CONN_FAILED",O="STATE_DATABASE_DISCONNECT",L="STATE_DATABASE_DISC_FAILED",D="BTN_OK",h="BTN_PARAM_CHANGED_YES",C="BTN_PARAM_CHANGED_NO",m="TASK/IDENTIFICATION/NAME",g="TASK/IDENTIFICATION/DESCRIPTION",M="_TASK_NAME_NOT_UNIQUE",H="_TASK_NAME_EMPTY",f=21;let y={STATE_OVERVIEW_RESULT:{_onEnter:function(e){
e.screens[r.PARAM_OVER_SCREENID].getButton(r.SAVE_BUTTON_ID).setAppearance(e.isTotalConfigValid()?P.EnumAppearance.ENABLED_PRIMARY:P.EnumAppearance.DISABLED)},_onExit:function(e){},_transTo:{},_transFrom:{STATE_ASPECT_CFG_PARAM_EDIT:B,STATE_DATABASE_DISC_FAILED:B,STATE_DISCONNECT_ASPECT_DISCONNECT:B},EV_HMI_BTN_CLICKED:function(e,t){console.log("QAppConfigBase: Button pressed: ",t.payload.buttonId),t.payload.buttonId===r.SAVE_BUTTON_ID&&e.isTotalConfigValid()?e.paramsModified()?this.transition(e,"STATE_OVERVIEW_RESULT_PARAMS_MODIFIED"):e.storeTask()?e.suspend():this.transition(e,"STATE_OVERVIEW_RESULT_USER_ACTION"):t.payload.buttonId===r.BACK_BUTTON_ID?this.transition(e,a.STATE_ASPECT_CFG_PARAM_EDIT_REENTER):t.payload.buttonId===r.CANCEL_BUTTON_ID&&e.suspend()}},STATE_OVERVIEW_RESULT_USER_ACTION:{_onEnter:function(e){},_onExit:function(e){},_transFrom:{},_transTo:{},EV_HMI_BTN_CLICKED:function(e,t){let _=[{guardFn:function(e,t){return t.payload.buttonId===D&&(e.hideMsgBox(),
e.hideLoadingScreen(),!0)},nextState:p},{guardFn:function(e,t){return t.payload.buttonId===r.CANCEL_BUTTON_ID&&(e.suspend(),!0)},nextState:""}];this.myHandler(e,_,t)}},STATE_OVERVIEW_RESULT_PARAMS_MODIFIED:{_onEnter:function(e){},_onExit:function(e){},_transFrom:{},_transTo:{},EV_HMI_BTN_CLICKED:function(e,t){t.payload.buttonId===h?(e.hideMsgBox(),e.storeTask()?e.suspend():this.transition(e,"STATE_OVERVIEW_RESULT_USER_ACTION")):t.payload.buttonId===C&&e.suspend()}},STATE_CHECK_DATABASE:{_onEnter:function(e){e.onEnter_STATE_CHECK_DATABASE()},_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload.from===S&&this.transition(e,t.payload.to)}},STATE_DATABASE_CONN_SUCCESS:{_onEnter:function(e){e.onEnter_STATE_DATABASE_CONN_SUCCESS()},_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload.from===d&&this.transition(e,t.payload.to)}},STATE_DATABASE_CONN_FAILED:{_onEnter:function(e){e.onEnter_STATE_DATABASE_CONN_FAILED()},
_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload.from===R&&this.transition(e,t.payload.to)}},STATE_DATABASE_DISCONNECT:{_onEnter:function(e){e.addToEventQueue(new u.ImmediateEvent({from:O,to:c.STATE_DISCONNECT_ASPECT_DISCONNECT}))},_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload.from===O&&this.transition(e,t.payload.to)}},STATE_DATABASE_DISC_FAILED:{_onEnter:function(e){e.onEnter_STATE_DATABASE_DISC_FAILED()},_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload.from===O&&this.transition(e,t.payload.to)}}};function B(e,t){let _=e.screens[r.PARAM_OVER_SCREENID];_.readFromTaskhandler(e.taskHandler),_.getButton(r.SAVE_BUTTON_ID).setAppearance(e.isTotalConfigValid()?P.EnumAppearance.ENABLED_PRIMARY:P.EnumAppearance.DISABLED),_.getButton(r.BACK_BUTTON_ID).setAppearance(P.EnumAppearance.ENABLED_SECONDARY);let a=e.getParamOverviewTitle1(),i=e.getParamOverviewTitle2()
;_.setTitle1(a.id,a.args),_.setTitle2(i.id,i.args),_.show()}t.QAppConfigBase=class extends E.QAppBase{constructor(e){super(e),this.minConfigurableLID=o.TASK_DYNAMIC_ID_LID_CNT_MIN,this.maxConfigurableLID=o.TASK_DYNAMIC_ID_LID_CNT_MAX,this.minConfigurableSID=o.TASK_DYNAMIC_ID_SID_CNT_MIN,this.maxConfigurableSID=o.TASK_DYNAMIC_ID_SID_CNT_MAX,this.hidePrintProfiles=!1,this.isTaskNameValid=!0,this.initialSettings=void 0,this.suppressModifyWarning=!1,this.dbConnectionConfig=void 0,this.cfgParamAspect=new a.ConfigParamsAspect,this.registerAspect(this.cfgParamAspect)}getSupportedDatabases(){return[]}processCLParameters(e){e.length>=4?(this.scriptPath=e[1],this.qAppOrderNumber=e[2],this.qAppVersion=e[3]):(this.qAppOrderNumber=void 0,this.qAppVersion=void 0,this.exitError("QAppConfigBase::processCLParameters - configWorkflow-Script called without QAppOrderNumber or qAppVersion parameter")),
e.length>=5?(console.log("QAppConfigBase::processCLParameters - configWorkflow-Script called with taskId parameter -> modify task"),this.taskId=e[4]):(console.log("QAppConfigBase::processCLParameters - configWorkflow-Script called without taskId parameter -> create task"),this.taskId=void 0),console.log("QAppConfigBase: got qAppOrderNumber: "+this.qAppOrderNumber+"; qAppVersion : "+this.qAppVersion+"; taskId:"+this.taskId)}init(){console.log("QAppConfigBase: init"),super.init();let e=new r.ParameterOverviewScreen(this.mqttHandler);this.registerScreen(e),console.log("QAppConfigBase: init: ...done")}postInit(){console.log("QAppConfigBase: postInit"),super.postInit(),this.cfgParamAspect.configure({isValidFn:()=>this.isTotalConfigValid(),updateTaskParameterFn:e=>this.updateTaskParameterGeneric(e),getDetailForTaskParameterFn:e=>this.getDetailForTaskParameter(e),handleParamUpdateUserActionFn:(e,t)=>this.handleParamUpdateUserActionGeneric(e,t),returnState:void 0===this.dbConnectionConfig?p:S,
taskHandler:this.taskHandler})}initTaskHandler(){if(this.isCreatePath())console.log("QAppConfigBase: load task template"),this.taskHandler.setTask(this.taskMngProxy.getTaskTemplate()),this.taskHandler.getParameter(m).info.maximum.autoCut=!0,this.taskHandler.getParameter(m).info.isNoValueAllowed=!1,this.taskHandler.getParameter(g).info.maximum.autoCut=!0,this.taskHandler.getParameter(g).info.isNoValueAllowed=!1,this.setNewTaskValues(),this.addLIDSIDParameter(),void 0!==this.dbConnectionConfig&&(this.getSupportedDatabases().length>0?this.addDatabaseConnectionParameter():this.exitError("dbConnection has been configured, but the number of supported databases is still empty (getSupportedDatabases)")),this.initialSettings=void 0;else{this.loadTask();let e=this.taskHandler.getTask();this.initialSettings=void 0!==e?N.cloneJSON(e.params):void 0}if(this.hidePrintProfiles)for(let e=1;e<=2;e++){let t=this.taskHandler.getParameter(E.TASK_PROFILE_REPORTING_ID_PREFIX+"_"+e)
;void 0!==t&&(t.appearance=P.EnumAppearance.HIDDEN,this.taskHandler.updateParameter(t))}this.updateLIDParams(),this.updateSIDParams()}setNewTaskValues(){console.log("QAppConfigBase: adapt basics of task parameter for create"),console.log("QAppConfigBase: set qAppId-Info for QApp in Taskinformation: "+this.qAppOrderNumber+"@"+this.qAppVersion);let e=this.taskHandler.getTask();e?this.qAppOrderNumber&&this.qAppVersion?(e.qappOrderNumber=this.qAppOrderNumber,e.qappVersion=this.qAppVersion):this.exitError("QAppConfigBase::setNewTaskValues - qAppOrderNumber or qAppVersion undefined in creation workflow"):this.exitError("QAppConfigBase::setNewTaskValues - task undefined, unexpectedly");let t=this.localizerProxy.getLanguage();t||(t="DEFAULT",console.log("QAppConfigBase: localizer::getLanguage() failed - fallback to "+t));let _=this.readQAppDescQTFAsJSON(t);_?(this.setDefaultTaskName(_.name),
this.setDefaultTaskDescription(_.shortDescription)):(this.setDefaultTaskName("Input a name for the task."),this.setDefaultTaskDescription("Input a short description for the task."))}setDefaultTaskName(e){console.log("QAppConfigBase::setDefaultTaskName");let t=this.taskHandler.getParameter(m),_=this.taskMngProxy.getTaskNamesByOrderNumber(this.qAppOrderNumber);e=e.slice(0,t.info.maximum.length),console.log("autocut QApp title for taskname to max "+t.info.maximum.length+" chars"),t.value.string=e,t.appearance=P.EnumAppearance.ENABLED;let a=0,i=!1;for(_=_.filter(e=>e.startsWith(t.value.string));a<f;){if(void 0===_.find(e=>e===t.value.string)){i=!0;break}if(t.value.string=`${e} (${++a})`,console.log("new task name generated: "+t.value.string),t.value.string.length>t.info.maximum.length){console.log("taskname too long while autonaming"),i=!1;break}}i?(console.log("task name finally unique"),this.isTaskNameValid=!0):(console.log("taskname finally not unique"),this.isTaskNameValid=!1,
t.value.string=e,t.appearance=P.EnumAppearance.ENABLED_INVALID_CFG),this.updateTaskHandlerAndPublish(t)}setDefaultTaskDescription(e){console.log("QAppConfigBase::setDefaultTaskDescription");let t=this.taskHandler.getParameter(g);e=e.slice(0,t.info.maximum.length),t.value.string=e.slice(0,t.info.maximum.length)}provideStartFsmState(){return a.STATE_ASPECT_CFG_PARAM_EDIT_ENTER}provideFsmStates(){return y}isCreatePath(){return!this.taskId}getParamOverviewTitle1(){return{id:this.taskHandler.getParameter(m).value.string,args:[]}}getParamOverviewTitle2(){return{id:this.taskHandler.getParameter(g).value.string,args:[]}}checkTaskNameBeforePublish(e=!1){let t=this.taskMngProxy.validateTask(this.taskHandler.getTask()).getErrorList(),_=this.taskHandler.getParameter(m);return t.some(e=>e===M||e===H)?(e&&(_.appearance=P.EnumAppearance.ENABLED_INVALID_CFG),!1):(e&&(_.appearance=P.EnumAppearance.ENABLED),!0)}updateTaskParameterGeneric(e){console.log("QAppConfigBase: updateTaskParameterGeneric")
;let t=void 0;if(e.id===m)if(this.taskHandler.updateParameter(e),console.log("call taskMng - validate"),this.checkTaskNameBeforePublish())e.appearance=P.EnumAppearance.ENABLED,this.updateTaskHandlerAndPublish(e),this.isTaskNameValid=!0,t=void 0;else{e.appearance=P.EnumAppearance.ENABLED_INVALID_CFG,this.updateTaskHandlerAndPublish(e),this.isTaskNameValid=!1;let _=N.cloneJSON(i.ParamUpdateUserActionSimpleAccept);_.textList=[{id:M,args:[]}],t={updatedParameter:e,message:_}}else if(e.id===o.TASK_DYNAMIC_ID_LID_CNT_PARAM_ID){let _=this.updateTaskParameter(e);void 0===_||!1===_?(this.updateTaskHandlerAndPublish(e),this.updateLIDParams()):!0===_?this.updateLIDParams():t=_}else if(e.id===o.TASK_DYNAMIC_ID_SID_CNT_PARAM_ID){let _=this.updateTaskParameter(e);void 0===_||!1===_?(this.updateTaskHandlerAndPublish(e),this.updateSIDParams()):!0===_?this.updateSIDParams():t=_}else if(e.id===o.TASK_DYNAMIC_ID_DB_TYPES_PARAM_ID)this.updateTaskHandlerAndPublish(e),
this.updateDatabaseConfigParameters(e.value.selection.id),t=void 0;else if(e.id.startsWith(o.TASK_DYNAMIC_ID_GROUPS_PREFIX))this.updateTaskHandlerAndPublish(e),t=void 0;else{let _=this.updateTaskParameter(e);t=void 0===_||"boolean"==typeof _?void 0:_}return t}getDetailForTaskParameter(e){return{title:{id:"not implemented",args:[]},params:[]}}handleParamUpdateUserActionGeneric(e,t){console.log("QAppConfigBase: handleParamUpdateUserActionGeneric");let _=!1;return _=e.updatedParameter.id===m&&t.payload.buttonId===i.ParamUpdateUserActionSimpleAccept_OK_BUTTON_ID||this.handleParamUpdateUserAction(e,t)}isTotalConfigValid(){return this.isTaskNameValid&&this.isConfigValid()}updateTaskHandlerAndPublish(e){return console.log("QAppConfigBase: updateTaskHandlerAndPublish"),e.type===P.EnumParameterTypes.PARAM_QUANTITY&&T.QuantityParameter.roundToDecimalPlaces(e),!!this.taskHandler.updateParameter(e)&&(this.cfgParamAspect.publishParameter(e),!0)}paramsModified(){
if(this.suppressModifyWarning)return!1;if(void 0===this.initialSettings)return!1;{let e=this.taskHandler.getTask();return void 0!==e&&(!this.relevantParamsAreEqual(this.initialSettings,e.params)&&(this.showMessageBox({type:s.EnumMessageboxType.WARNING,title:{id:"_QAPP_LIB_CFG_MSG_BOX_WARNING_PARAMS_CHANGED_TITLE",args:[]},textList:[{id:"_QAPP_LIB_CFG_MSG_BOX_WARNING_PARAMS_CHANGED",args:[]},{id:"_QAPP_LIB_CFG_MSG_BOX_WARNING_PARAMS_CHANGED_II",args:[]},{id:"_QAPP_LIB_CFG_MSG_BOX_WARNING_PARAMS_CHANGED_III",args:[]}],buttons:[{id:h,label:{id:"_QAPP_LIB_MBOX_BTN_YES",args:[]},appearance:P.EnumAppearance.ENABLED_SECONDARY},{id:C,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},appearance:P.EnumAppearance.ENABLED_SECONDARY}]}),!0))}}storeTask(){console.log("QAppConfigBase: storeTask (create/update)");let e=this.taskHandler.getTask(),t=void 0;if(this.isCreatePath()){if(e){t=this.taskMngProxy.createTask(e);try{let e=JSON.parse(t.rawReturns.task);this.taskId=e._id}catch(e){this.taskId=void 0}}
}else e&&(t=this.taskMngProxy.updateTask(e));if(t){if(t.isSuccess()){let e=t.getErrorList(),_=[];for(let t of e)console.log("QAppConfigBase::storeTask - found create/update error: "+t),_.push({id:t,args:[]});if(e.length>0){if(this.showMessageBox({type:s.EnumMessageboxType.ERROR,title:{id:"_QAPP_LIB_MSG_BOX_ERROR_STORE_UPDATE_TASK",args:[]},textList:_,buttons:[{id:D,label:{id:n.EnumFontLabels.OK,args:[]},appearance:P.EnumAppearance.ENABLED_SECONDARY}]}),e.some(e=>e===M)){this.isTaskNameValid=!1;let e=this.taskHandler.getParameter(m);e&&(e.appearance=P.EnumAppearance.ENABLED_INVALID_CFG,this.updateTaskHandlerAndPublish(e))}else this.isTaskNameValid=!0;return!1}return!(!this.taskId||0===this.taskId.length)||(this.taskId=void 0,this.exitError("QAppConfigBase::storeTask - error creating task data (missing _id)"),!1)}return this.exitError("QAppConfigBase::storeTask - error creating/updating task data"),!1}
return this.exitError("QAppConfigBase::storeTask - no result returned for store/update task - program error"),!1}hasConfigurableLIDs(){return this.maxConfigurableLID>0}hasConfigurableSIDs(){return this.maxConfigurableSID>0}hasConfigurableIDs(){return this.hasConfigurableLIDs()&&this.hasConfigurableSIDs()}addLIDSIDParameter(){this.minConfigurableLID>this.maxConfigurableLID&&(this.minConfigurableLID=this.maxConfigurableLID),this.minConfigurableSID>this.maxConfigurableSID&&(this.minConfigurableSID=this.maxConfigurableSID);let e={id:o.TASK_DYNAMIC_ID_CNT_GROUP_ID,type:P.EnumParameterTypes.PARAM_GROUP,appearance:this.hasConfigurableIDs()?P.EnumAppearance.ENABLED:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_GROUP_TITLE_IDENTIFIER_CNT",args:[]},parameters:[{id:o.TASK_DYNAMIC_ID_LID_CNT_PARAM_ID,type:P.EnumParameterTypes.PARAM_SELECTION,appearance:this.hasConfigurableLIDs()?P.EnumAppearance.ENABLED:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_NUMBER_LIDS",args:[]},header:{
id:"_QAPP_LIB_PARAM_HEADER_NUMBER_LIDS",args:[]},value:{selection:{id:o.createIDCntOption(this.minConfigurableLID)}},info:{options:[]}},{id:o.TASK_DYNAMIC_ID_SID_CNT_PARAM_ID,type:P.EnumParameterTypes.PARAM_SELECTION,appearance:this.hasConfigurableSIDs()?P.EnumAppearance.ENABLED:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_NUMBER_SIDS",args:[]},header:{id:"_QAPP_LIB_PARAM_HEADER_NUMBER_SIDS",args:[]},value:{selection:{id:o.createIDCntOption(this.minConfigurableSID)}},info:{options:[]}}]};o.getConfiguredIds(e.parameters[0])>this.maxConfigurableLID&&(e.parameters[0].value.selection.id=o.createIDCntOption(this.maxConfigurableLID)),o.getConfiguredIds(e.parameters[1])>this.maxConfigurableSID&&(e.parameters[1].value.selection.id=o.createIDCntOption(this.maxConfigurableSID));for(let t=this.minConfigurableLID;t<=this.maxConfigurableLID;t++)e.parameters[0].info.options.push({id:o.createIDCntOption(t),appearance:P.EnumAppearance.ENABLED,text:{id:""+t.toFixed(0),args:[]}})
;for(let t=this.minConfigurableSID;t<=this.maxConfigurableSID;t++)e.parameters[1].info.options.push({id:o.createIDCntOption(t),appearance:P.EnumAppearance.ENABLED,text:{id:""+t.toFixed(0),args:[]}});let t={id:o.TASK_DYNAMIC_ID_LID_GROUP_ID,type:P.EnumParameterTypes.PARAM_GROUP,appearance:P.EnumAppearance.ENABLED,title:{id:"_QAPP_LIB_GROUP_TITLE_IDENTIFIER_LID",args:[]},parameters:[]},_=[];for(let e=1;e<=this.maxConfigurableLID;e++)_.push({id:"_QAPP_CFG_PARAM_DEFAULT_VALUE_HEADER_LID",args:[e.toString()]});for(let e=1;e<=this.maxConfigurableLID;e++)_.push({id:"_QAPP_CFG_PARAM_DEFAULT_VALUE_TITLE_LID",args:[e.toString()]});for(let e=1;e<=this.maxConfigurableSID;e++)_.push({id:"_QAPP_CFG_PARAM_DEFAULT_VALUE_HEADER_SID",args:[e.toString()]});for(let e=1;e<=this.maxConfigurableSID;e++)_.push({id:"_QAPP_CFG_PARAM_DEFAULT_VALUE_TITLE_SID",args:[e.toString()]});const a=this.localizerProxy.getTexts(_)
;let i=a.splice(0,this.maxConfigurableLID),n=a.splice(0,this.maxConfigurableLID),s=a.splice(0,this.maxConfigurableSID),r=a.splice(0,this.maxConfigurableSID);for(let e=1;e<=this.maxConfigurableLID;e++)t.parameters.push({id:o.createLIDParamId(e,o.TASK_DYNAMIC_ID_LID_X_PARAM_ID_SUFFIX_HEADER),type:P.EnumParameterTypes.PARAM_STRING,appearance:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_LID_HEADER",args:[e.toFixed(0)]},header:{id:"_QAPP_LIB_PARAM_HEADER_LID_HEADER",args:[e.toFixed(0)]},value:{string:i[e-1]},info:{isNoValueAllowed:!1,minimum:{length:1},maximum:{length:A.PARAM_HEADER}}}),t.parameters.push({id:o.createLIDParamId(e,o.TASK_DYNAMIC_ID_LID_X_PARAM_ID_SUFFIX_TITLE),type:P.EnumParameterTypes.PARAM_STRING,appearance:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_LID_TITLE",args:[e.toFixed(0)]},header:{id:"_QAPP_LIB_PARAM_HEADER_LID_TITLE",args:[e.toFixed(0)]},value:{string:n[e-1]},info:{isNoValueAllowed:!1,minimum:{length:1},maximum:{length:A.PARAM_TITLE}}})
;let E={id:o.TASK_DYNAMIC_ID_SID_GROUP_ID,type:P.EnumParameterTypes.PARAM_GROUP,appearance:P.EnumAppearance.ENABLED,title:{id:"_QAPP_LIB_GROUP_TITLE_IDENTIFIER_SID",args:[]},parameters:[]};for(let e=1;e<=this.maxConfigurableSID;e++)E.parameters.push({id:o.createSIDParamId(e,o.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_HEADER),type:P.EnumParameterTypes.PARAM_STRING,appearance:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_SID_HEADER",args:[e.toFixed(0)]},header:{id:"_QAPP_LIB_PARAM_HEADER_SID_HEADER",args:[e.toFixed(0)]},value:{string:s[e-1]},info:{isNoValueAllowed:!1,minimum:{length:1},maximum:{length:A.PARAM_HEADER}}}),E.parameters.push({id:o.createSIDParamId(e,o.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_TITLE),type:P.EnumParameterTypes.PARAM_STRING,appearance:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_SID_TITLE",args:[e.toFixed(0)]},header:{id:"_QAPP_LIB_PARAM_HEADER_SID_TITLE",args:[e.toFixed(0)]},value:{string:r[e-1]},info:{isNoValueAllowed:!1,minimum:{length:1},
maximum:{length:A.PARAM_TITLE}}}),E.parameters.push({id:o.createSIDParamId(e,o.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_MODE),type:P.EnumParameterTypes.PARAM_SELECTION,appearance:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_SID_MODE",args:[""+e.toFixed(0)]},header:{id:"_QAPP_LIB_PARAM_HEADER_SID_MODE",args:[""+e.toFixed(0)]},value:{selection:{id:o.EnumSampleIdentifierOptions.ON}},info:{options:[{id:o.EnumSampleIdentifierOptions.ON,appearance:P.EnumAppearance.ENABLED,text:{id:"_QAPP_LIB_PARAM_SELECT_OPTION_SID_ON",args:[]}},{id:o.EnumSampleIdentifierOptions.ON_AUTO_INC,appearance:P.EnumAppearance.ENABLED,text:{id:"_QAPP_LIB_PARAM_SELECT_OPTION_SID_ON_AUTO_INC",args:[]}},{id:o.EnumSampleIdentifierOptions.ON_AUTO_DEC,appearance:P.EnumAppearance.ENABLED,text:{id:"_QAPP_LIB_PARAM_SELECT_OPTION_SID_ON_AUTO_DEC",args:[]}}]}});this.taskHandler.addDynamicGroup(E),this.taskHandler.addDynamicGroup(t),this.taskHandler.addDynamicGroup(e)}updateLIDSIDParamAppearance(e,t,_){
void 0!==e&&(t<=_?(console.log("QAppConfigBase::updateLIDSIDParamAppearance: configured:"+e.id),void 0!==I.checkGeneralParamRules(e)?(console.log("... invalid"),e.appearance=P.EnumAppearance.ENABLED_INVALID_CFG):(console.log("... valid"),e.appearance=P.EnumAppearance.ENABLED)):(console.log("QAppConfigBase::updateLIDSIDParamAppearance: not configured:"+e.id),e.appearance=P.EnumAppearance.HIDDEN),this.updateTaskHandlerAndPublish(e))}updateLIDParams(){let e=this.taskHandler.getParameter(o.TASK_DYNAMIC_ID_LID_CNT_PARAM_ID),t=o.getConfiguredIds(e);console.log("QAppConfigBase::updateLIDParams: configured LIDs: "+t);for(let e=1;e<=o.TASK_DYNAMIC_ID_LID_CNT_MAX;e++){let _=this.taskHandler.getParameter(o.createLIDParamId(e,o.TASK_DYNAMIC_ID_LID_X_PARAM_ID_SUFFIX_HEADER));this.updateLIDSIDParamAppearance(_,e,t),_=this.taskHandler.getParameter(o.createLIDParamId(e,o.TASK_DYNAMIC_ID_LID_X_PARAM_ID_SUFFIX_TITLE)),this.updateLIDSIDParamAppearance(_,e,t)}}updateSIDParams(){
let e=this.taskHandler.getParameter(o.TASK_DYNAMIC_ID_SID_CNT_PARAM_ID),t=o.getConfiguredIds(e);console.log("QAppConfigBase::updateLIDSIDParams: configured SIDs: "+t);for(let e=1;e<=o.TASK_DYNAMIC_ID_SID_CNT_MAX;e++){let _=this.taskHandler.getParameter(o.createSIDParamId(e,o.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_HEADER));this.updateLIDSIDParamAppearance(_,e,t),_=this.taskHandler.getParameter(o.createSIDParamId(e,o.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_TITLE)),this.updateLIDSIDParamAppearance(_,e,t),_=this.taskHandler.getParameter(o.createSIDParamId(e,o.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_MODE)),this.updateLIDSIDParamAppearance(_,e,t)}}addDatabaseConnectionParameter(){let e={id:o.TASK_DYNAMIC_ID_DB_TYPES_PARAM_ID,type:P.EnumParameterTypes.PARAM_SELECTION,appearance:this.getSupportedDatabases().length>1?P.EnumAppearance.ENABLED:P.EnumAppearance.DISABLED,title:{id:"_QAPP_LIB_PARAM_TITLE_DB_TYPE",args:[]},header:{id:"_QAPP_LIB_PARAM_HEADER_DB_TYPE",args:[]},value:{selection:{
id:this.getSupportedDatabases()[0]}},info:{options:this.getSupportedDatabases().map(e=>{let t={appearance:P.EnumAppearance.ENABLED,id:e,text:{id:"",args:[]}};switch(e){case o.EnumDatabaseTypesOptions.MSSQL:t.text.id="_QAPP_LIB_PARAM_DB_TYPE_SELECTION_MSSQL";break;case o.EnumDatabaseTypesOptions.SQLITE:t.text.id="_QAPP_LIB_PARAM_DB_TYPE_SELECTION_SQLITE";break;case o.EnumDatabaseTypesOptions.POSTGRES:t.text.id="_QAPP_LIB_PARAM_DB_TYPE_SELECTION_PSOTGRESQL";break;case o.EnumDatabaseTypesOptions.MYSQL:t.text.id="_QAPP_LIB_PARAM_DB_TYPE_SELECTION_MYSQL";break;default:t.text.id="_QAPP_LIB_PARAM_DB_TYPE_SELECTION_SQLITE"}return t})}},t={id:o.TASK_DYNAMIC_ID_DB_CONN_CONFIG_GROUP_ID,type:P.EnumParameterTypes.PARAM_GROUP,appearance:P.EnumAppearance.ENABLED,title:{id:"_QAPP_LIB_GROUP_TITLE_DB_CONN_CONFIG",args:[]},parameters:[e,...this.createConfigParametersForSupportedDatabases()]};this.taskHandler.addDynamicGroup(t)}createConfigParametersForSupportedDatabases(){let e=[],t={
id:o.TASK_DYNAMIC_ID_DB_USERNAME_PARAM_ID,type:P.EnumParameterTypes.PARAM_STRING,appearance:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_DB_USERNAME",args:[]},header:{id:"_QAPP_LIB_PARAM_HEADER_DB_USERNAME",args:[]},value:{string:""},info:{minimum:{length:1},maximum:{length:1e3}},valid:!1},_={id:o.TASK_DYNAMIC_ID_DB_PASSWORD_PARAM_ID,type:P.EnumParameterTypes.PARAM_PASSWORD,appearance:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_DB_PASSWORD",args:[]},header:{id:"_QAPP_LIB_PARAM_HEADER_DB_PASSWORD",args:[]},value:{string:""},info:{minimum:{length:1},maximum:{length:1e3},passwordLength:6},valid:!1},a={id:o.TASK_DYNAMIC_ID_DB_DATABASE_PARAM_ID,type:P.EnumParameterTypes.PARAM_STRING,appearance:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_DB_DATABASE",args:[]},header:{id:"_QAPP_LIB_PARAM_HEADER_DB_DATABASE",args:[]},value:{string:""},info:{minimum:{length:1},maximum:{length:1e3}},valid:!1},i={id:o.TASK_DYNAMIC_ID_DB_SCHEMA_PARAM_ID,
type:P.EnumParameterTypes.PARAM_STRING,appearance:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_DB_SCHEMA",args:[]},header:{id:"_QAPP_LIB_PARAM_HEADER_DB_SCHEMA",args:[]},value:{string:"public"},info:{minimum:{length:1},maximum:{length:1e3}},valid:!1},n={id:o.TASK_DYNAMIC_ID_DB_IP_PARAM_ID,type:P.EnumParameterTypes.PARAM_STRING,appearance:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_DB_IP",args:[]},header:{id:"_QAPP_LIB_PARAM_HEADER_DB_IP",args:[]},value:{string:""},info:{minimum:{length:1},maximum:{length:1e3}},valid:!1},s={id:o.TASK_DYNAMIC_ID_DB_PORT_PARAM_ID,type:P.EnumParameterTypes.PARAM_QUANTITY,appearance:P.EnumAppearance.HIDDEN,title:{id:"_QAPP_LIB_PARAM_TITLE_DB_PORT",args:[]},header:{id:"_QAPP_LIB_PARAM_HEADER_DB_PORT",args:[]},value:{decimals:0,numbers:[],preferredDecimals:0,unit:""},info:{isNoValueAllowed:!1,maximum:{value:"65535"},minimum:{value:"0"}},valid:!1};return this.getSupportedDatabases().forEach((r,E)=>{
let o=N.cloneJSON(t),A=N.cloneJSON(_),T=N.cloneJSON(a),I=N.cloneJSON(i),l=N.cloneJSON(n),c=N.cloneJSON(s);if("sqlite"!==r){switch(o.id=`${o.id}/${r.toUpperCase()}`,A.id=`${A.id}/${r.toUpperCase()}`,T.id=`${T.id}/${r.toUpperCase()}`,I.id=`${I.id}/${r.toUpperCase()}`,l.id=`${l.id}/${r.toUpperCase()}`,c.id=`${c.id}/${r.toUpperCase()}`,r){case"postgres":c.value.numbers=["5432"];break;case"mssql":c.value.numbers=["1433"];break;case"mysql":c.value.numbers=["3306"]}0===E&&(o.appearance=P.EnumAppearance.ENABLED_INVALID_CFG,A.appearance=P.EnumAppearance.ENABLED_INVALID_CFG,T.appearance=P.EnumAppearance.ENABLED_INVALID_CFG,I.appearance=P.EnumAppearance.ENABLED_INVALID_CFG,l.appearance=P.EnumAppearance.ENABLED_INVALID_CFG,c.appearance=P.EnumAppearance.ENABLED_INVALID_CFG),e.push(o,A,T,I,l,c)}}),e}updateDatabaseConfigParameters(e){this.getSupportedDatabases().forEach(t=>{
"sqlite"!==t&&(t===e?this.setDBTypeConfigParamsAppearance(e,P.EnumAppearance.ENABLED):this.setDBTypeConfigParamsAppearance(t,P.EnumAppearance.HIDDEN))})}setDBTypeConfigParamsAppearance(e,t,_){let a=[]
;"sqlite"===e||("postgres"===e?a=[this.taskHandler.getParameter(`${o.TASK_DYNAMIC_ID_DB_USERNAME_PARAM_ID}/${e.toUpperCase()}`),this.taskHandler.getParameter(`${o.TASK_DYNAMIC_ID_DB_PASSWORD_PARAM_ID}/${e.toUpperCase()}`),this.taskHandler.getParameter(`${o.TASK_DYNAMIC_ID_DB_DATABASE_PARAM_ID}/${e.toUpperCase()}`),this.taskHandler.getParameter(`${o.TASK_DYNAMIC_ID_DB_IP_PARAM_ID}/${e.toUpperCase()}`),this.taskHandler.getParameter(`${o.TASK_DYNAMIC_ID_DB_PORT_PARAM_ID}/${e.toUpperCase()}`)]:"mssql"===e&&(a=[this.taskHandler.getParameter(`${o.TASK_DYNAMIC_ID_DB_USERNAME_PARAM_ID}/${e.toUpperCase()}`),this.taskHandler.getParameter(`${o.TASK_DYNAMIC_ID_DB_PASSWORD_PARAM_ID}/${e.toUpperCase()}`),this.taskHandler.getParameter(`${o.TASK_DYNAMIC_ID_DB_DATABASE_PARAM_ID}/${e.toUpperCase()}`),this.taskHandler.getParameter(`${o.TASK_DYNAMIC_ID_DB_SCHEMA_PARAM_ID}/${e.toUpperCase()}`),this.taskHandler.getParameter(`${o.TASK_DYNAMIC_ID_DB_IP_PARAM_ID}/${e.toUpperCase()}`),this.taskHandler.getParameter(`${o.TASK_DYNAMIC_ID_DB_PORT_PARAM_ID}/${e.toUpperCase()}`)])),
a.forEach(e=>{void 0!==_&&(e.valid=_),t===P.EnumAppearance.HIDDEN?e.appearance!==t&&(e.appearance=t,this.updateTaskHandlerAndPublish(e)):(!1===e.valid&&(t=P.EnumAppearance.ENABLED_INVALID_CFG),e.appearance!==t&&(e.appearance=t,this.updateTaskHandlerAndPublish(e)))})}setDbConnectionConfig(e){this.dbConnectionConfig=e}onEnter_STATE_CHECK_DATABASE(){console.log("QAppConfigBase::onEnter_STATE_CHECK_DATABASE");const e=this.dbConnectionConfig;try{this.aspects[l.CONNECTION_ASPECT].configure({nextState:d,cancelState:R,qappEntities:e.qappEntities,workflow:!1,checkMigration:e.checkMigration,doMigration:e.doMigration,taskHandler:this.taskHandler,qappSpecificSqliteDatabaseLocation:void 0===e.qappSpecificSqliteDatabaseLocation||e.qappSpecificSqliteDatabaseLocation,useLogTable:void 0===e.useLogTable||e.useLogTable,syncByTypeorm:void 0!==e.syncByTypeorm&&e.syncByTypeorm})}catch(e){this.exitError("Connection Aspect not registered! Do so in the configWorkflow.")}
this.addToEventQueue(new u.ImmediateEvent({from:S,to:l.STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE}))}onEnter_STATE_DATABASE_CONN_SUCCESS(){console.log("qappConfigBase::onEnter_STATE_DATABASE_CONN_SUCCESS");try{this.aspects[c.DISCONNECT_ASPECT].configure({nextState:p,cancelState:L,connection:this.aspects[l.CONNECTION_ASPECT].getConnection()})}catch(e){this.exitError("Disconnect Aspect not registered! Do so in the configWorkflow.")}let e=this.taskHandler.getParameter(o.TASK_DYNAMIC_ID_DB_TYPES_PARAM_ID);void 0===e?console.log("Database connection type parameter not found"):this.setDBTypeConfigParamsAppearance(e.value.selection.id,P.EnumAppearance.ENABLED,!0),this.addToEventQueue(new u.ImmediateEvent({from:d,to:O}))}onEnter_STATE_DATABASE_CONN_FAILED(){console.log("qappConfigBase::onEnter_STATE_DATABASE_CONN_FAILED");try{this.aspects[c.DISCONNECT_ASPECT].configure({nextState:p,cancelState:L,connection:this.aspects[l.CONNECTION_ASPECT].getConnection()})}catch(e){
this.exitError("Disconnect Aspect not registered! Do so in the configWorkflow.")}let e=this.taskHandler.getParameter(o.TASK_DYNAMIC_ID_DB_TYPES_PARAM_ID);void 0===e?console.log("Database connection type parameter not found"):this.setDBTypeConfigParamsAppearance(e.value.selection.id,P.EnumAppearance.ENABLED_INVALID_CFG,!1),this.addToEventQueue(new u.ImmediateEvent({from:R,to:O}))}onEnter_STATE_DATABASE_DISC_FAILED(){let e=this.taskHandler.getParameter(o.TASK_DYNAMIC_ID_DB_TYPES_PARAM_ID);void 0===e?console.log("Database connection type parameter not found"):this.setDBTypeConfigParamsAppearance(e.value.selection.id,P.EnumAppearance.ENABLED_INVALID_CFG,!1),this.addToEventQueue(new u.ImmediateEvent({from:O,to:p}))}handleDocuButton(){}}},function(e,t,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DISCONNECT_ASPECT="DISCONNECT_ASPECT",t.STATE_DISCONNECT_ASPECT_DISCONNECT="STATE_DISCONNECT_ASPECT_DISCONNECT"}]);