/* COPYRIGHT by SARTORIUS (Sartorius Lab Instruments GmbH & Co. KG) */
!function(e){var t={};function n(_){if(t[_])return t[_].exports;var i=t[_]={i:_,l:!1,exports:{}};return e[_].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,_){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:_})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=113)}([function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cloneJSON=function(e){return JSON.parse(JSON.stringify(e))}},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(1),i=n(13),s=n(0);t.isTypeOfIDateTimeParameter=function(e){return e.type===s.EnumParameterTypes.PARAM_DATE_TIME},t.isTypeOfIMultipleSelectionParameter=function(e){return e.type===s.EnumParameterTypes.PARAM_MULTIPLE_SELECTION},t.isTypeOfISelectionParameter=function(e){return e.type===s.EnumParameterTypes.PARAM_SELECTION},t.isTypeOfIQuantityParameter=function(e){return e.type===s.EnumParameterTypes.PARAM_QUANTITY},t.isTypeOfIMeasureParameter=function(e){return e.type===s.EnumParameterTypes.PARAM_MEASURE},
t.isTypeOfIStringParameter=function(e){return e.type===s.EnumParameterTypes.PARAM_STRING},t.isTypeOfIAlibiIdentifierParameter=function(e){return e.type===s.EnumParameterTypes.ALIBI_IDENTIFIER},t.isTypeOfITextParameter=function(e){return e.type===s.EnumParameterTypes.PARAM_TEXT},t.isTypeOfIFormulaParameter=function(e){return e.type===s.EnumParameterTypes.PARAM_FORMULA},t.isTypeOfIPasswordParameter=function(e){return e.type===s.EnumParameterTypes.PARAM_PASSWORD},t.isITextStructure=function(e){return"string"==typeof e.id&&"object"==typeof e.args&&e.args instanceof Array};const a={id:"",args:[]};function r(e){const t=_.cloneJSON(a);return i.isString(e)&&(t.id=e),t}t.createEmptyTextStructure=r;const E={id:"",type:s.EnumParameterTypes.PARAM_GROUP,title:r(),appearance:s.EnumAppearance.HIDDEN,parameters:[]};function o(e){const t=_.cloneJSON(E);return i.isString(e)&&(t.id=e),t}t.createEmptyParameterGroup=o;const T={id:"",type:s.EnumParameterTypes.PARAM_GROUP,title:r(),
appearance:s.EnumAppearance.HIDDEN,parameters:[o()]};t.createEmptyParameterGroupOfGroups=function(){return _.cloneJSON(T)};const A={appearance:s.EnumAppearance.HIDDEN,id:"",text:r()};t.createEmptySelectionParameterOption=function(){return _.cloneJSON(A)};const I={id:"",type:s.EnumParameterTypes.PARAM_SELECTION,value:{selection:{id:""}},header:r(),title:r(),info:{options:[A]},appearance:s.EnumAppearance.HIDDEN};t.createEmptySelectionParameter=function(e){const t=_.cloneJSON(I);return i.isString(e)&&(t.id=e),t};const l={id:"",type:s.EnumParameterTypes.PARAM_MULTIPLE_SELECTION,value:{selections:[]},header:r(),title:r(),info:{options:[A]},appearance:s.EnumAppearance.HIDDEN};t.createEmptyMultipleSelectionParameter=function(e){const t=_.cloneJSON(l);return i.isString(e)&&(t.id=e),t},t.SAMPLE_DATE_TIME_ID="SAMPLE_DATE_TIME_ID";const N={id:t.SAMPLE_DATE_TIME_ID,type:s.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:s.EnumAppearance.HIDDEN};t.createEmptyDateTimeParameter=function(e){const t=_.cloneJSON(N);return i.isString(e)&&(t.id=e),t};const c={id:"",type:s.EnumParameterTypes.PARAM_STRING,value:{string:""},header:r(),title:r(),info:{minimum:{length:0},maximum:{length:0}},appearance:s.EnumAppearance.HIDDEN};t.createEmptyStringParameter=function(e){const t=_.cloneJSON(c);return i.isString(e)&&(t.id=e),t};const S={id:"",type:s.EnumParameterTypes.PARAM_BARCODE,value:{string:"",format:s.EnumBarcodeFormats.CODE128,width:120},header:r(),title:r(),appearance:s.EnumAppearance.HIDDEN};t.createEmptyBarcodeParameter=function(e){const t=_.cloneJSON(S);return i.isString(e)&&(t.id=e),t};const u={id:"",type:s.EnumParameterTypes.PARAM_PASSWORD,value:{string:""},header:r(),title:r(),info:{passwordLength:0,minimum:{length:0},maximum:{length:0}},appearance:s.EnumAppearance.HIDDEN};t.createEmptyPasswordParameter=function(e){
const t=_.cloneJSON(u);return i.isString(e)&&(t.id=e),t};const P={id:"",type:s.EnumParameterTypes.PARAM_TEXT,value:{text:r()},header:r(),title:r(),appearance:s.EnumAppearance.HIDDEN,info:{suppressTitle:!1}};t.createEmptyTextParameter=function(e){const t=_.cloneJSON(P);return i.isString(e)&&(t.id=e),t},t.createEmptyTextParameterValueOnly=function(){let e=_.cloneJSON(P);return e.info.suppressTitle=!0,e};const p={visual:"",eval:""};t.createEmptyFormulaParameterValue=function(){return _.cloneJSON(p)};const d={id:"",type:s.EnumParameterTypes.PARAM_FORMULA,value:[],header:r(),title:r(),appearance:s.EnumAppearance.HIDDEN,info:{maximum:{length:0}}};t.createEmptyFormulaParameter=function(e){const t=_.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 _.cloneJSON(R)};const O={id:"",
type:s.EnumParameterTypes.PARAM_MEASURE,value:R,header:r(),title:r(),appearance:s.EnumAppearance.HIDDEN};t.createEmptyMeasureParameter=function(e){const t=_.cloneJSON(O);return i.isString(e)&&(t.id=e),t};const L={decimals:0,preferredDecimals:0,numbers:[],unit:""};t.createEmptyQuantityParameterValue=function(){return _.cloneJSON(L)},t.QUANTITY_PARAM_MIN_MAX_NAN="nan",t.QUANTITY_PARAM_NUMBERS_MAX=3;const h={id:"",type:s.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:s.EnumAppearance.HIDDEN};t.createEmptyQuantityParameter=function(e){const t=_.cloneJSON(h);return i.isString(e)&&(t.id=e),t};const C={id:"",type:s.EnumParameterTypes.ALIBI_IDENTIFIER,value:{alibiIdentifier:NaN},header:r(),title:r(),appearance:s.EnumAppearance.ENABLED};t.createEmptyAlibiIdentifier=function(){return _.cloneJSON(C)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{
value:!0});const _=n(11),i=n(2);var s;!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"}(s=t.ScreenEventType||(t.ScreenEventType={}));t.AbstractScreen=class{constructor(e){this.events$=new _.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:s.SHOW_SCREEN,id:this.getId()})}hide(){}publishContent(e,t,n=!0){let _=e?this.getMqttTopicBaseExtensible()+e:this.getMqttTopicBase();console.log("AbstractScreen: publishContent @ "+_),this.mqttHandler.publish(_,t,{retain:n})}getMqttTopicBase(){return"SCREENS/"+this.getId()}getMqttTopicBaseExtensible(){return this.getMqttTopicBase()+"/"}getButton(e){}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(49),i="SUCCESS",s="FAILED";t.CubisRestResponse=class{constructor(e){if(this.restResponse=void 0,"boolean"==typeof e)this.result=e?i:s,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),n=`http://127.0.0.1:8080/rest/${this.restEndpoint}`;const i=process.hrtime();let s=[n,"-H","Accept:application/json","-H","Content-Type:application/json","-H","Expect:","--data","@-"];e=_.spawnSync("curl",s,{input:t});const a=process.hrtime(i);return console.log(`${this.body.method} (hr): ${a[0]}s ${a[1]/1e6}ms`),e}}},function(e,t,n){"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,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(1);function s(e){return i.cloneJSON({module:"qappHandler",method:"buttonClickEvent",params:{buttonId:e||""}})}function a(e){let t={nameId:"",appearance:"HIDDEN",type:"",label:{id:"",args:[]},effect:s()};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=s(),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=s,t.IButtonParameterInterface2IButtonJsonInterface=a,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,n){this.lastPublishedTabContent="",this.mqttHandler=e,this.buttonTopic="SCREENS/"+t.getId()+"/"+n.buttonId,this.buttonJson=a(n)}setButtonId(e,t=!0){this.buttonJson.effect.params.buttonId=e,t&&this.publish()}
setLongPressButtonId(e,t=!0){e?(this.buttonJson.longPressEffect||(this.buttonJson.longPressEffect=s()),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=_.EnumAppearance.HIDDEN;return this.buttonJson.appearance&&"string"==typeof this.buttonJson.appearance&&Object.keys(_.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,n){"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,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(1);function i(e){return null!=e&&null!==e&&void 0!=e&&void 0!==e&&"string"==typeof e}function s(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=s,t.isBoolean=function(e){return null!=e&&null!==e&&void 0!=e&&void 0!==e&&"boolean"==typeof e},t.getObjectByID=function(e,t,n){if(!s(e))return null;i(n)||(n="id"),n=n;for(let _=0;_<e.length;_++)if(e[_].hasOwnProperty(n)&&i(e[_][n])&&e[_][n]===t)return e[_];return null},t.overwriteExistingAttributes=function(e,t){if(s(e)&&s(t)){let n=Object.keys(t)
;for(let i=0;i<n.length;i++)"function"!=typeof t[n[i]]&&e.hasOwnProperty(n[i])&&typeof t[n[i]]==typeof e[n[i]]&&(t[n[i]]=_.cloneJSON(e[n[i]]))}},t.setEnumSafely=function(e,t,n){const _=Object.keys(t);for(const n of _)if(t[n]===e)return t[n];return i(n)?n:_.length>0?t[_[0]]:void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(3),i=n(44),s=n(16),a=n(34),r=n(0);t.digitsLimit=9,t.QUANTITY_PARAM_MAX_DIGITS_GENERAL=t.digitsLimit;class E{static setValue(e,n,_=0,i=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL){return E.setValueValueWithDecimals(e.value,n,e.value.preferredDecimals,_,i)}static setValueValue(e,n,_=0,i=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL){return E.setValueValueWithDecimals(e,n,e.preferredDecimals,_,i)}static setValueWithDecimals(e,n,_,i=0,s=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL){return E.setValueValueWithDecimals(e.value,n,_,i,s)}static setValueValueWithDecimals(e,n,a,r=0,E=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL,o=!1){
let T="number"==typeof n?n:n.value,A=E-Math.floor(Math.abs(T)).toString().length,I=Math.min(A,a);I=Math.max(I,0),0===r&&e&&(e.decimals=I);let l=i.SartoMath.roundExactToDecimals(T,I).toFixed(I);if(e){if(o||0!==r)"number"!=typeof n&&(s.isArray(e.unit)?e.unit[0]=n.unit:e.unit=n.unit);else{for(let t=_.QUANTITY_PARAM_NUMBERS_MAX-2;t>=r;t--)void 0!==e.numbers[t]&&(e.numbers[t+1]=e.numbers[t]);if("number"==typeof n){if(s.isArray(e.unit))for(let t=_.QUANTITY_PARAM_NUMBERS_MAX-2;t>=r;t--)void 0!==e.unit[t]&&(e.unit[t+1]=e.unit[t])}else if(s.isArray(e.unit)){for(let t=_.QUANTITY_PARAM_NUMBERS_MAX-2;t>=r;t--)void 0!==e.unit[t]&&(e.unit[t+1]=e.unit[t]);e.unit[0]=n.unit}else e.unit=n.unit}e.numbers[r]=l}return l}static roundToDecimalPlaces(e,n=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL){return E.roundToDecimalPlacesValue(e.value,n)}static roundToDecimalPlacesAllNumbers(e,n=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL){return E.roundToDecimalPlacesValue(e.value,n,!0)}
static roundToDecimalPlacesValue(e,n=t.QUANTITY_PARAM_MAX_DIGITS_GENERAL,_=!1){return e.numbers.forEach((t,i)=>{(0===i||_)&&-1!==e.preferredDecimals&&E.setValueValueWithDecimals(e,parseFloat(t),e.preferredDecimals,i,n,!0)}),e.numbers.map(e=>parseFloat(e))}static getValue(e,t=0){let n,_=(n=void 0!==e.value?e.value:e).numbers[t];return void 0!==_?parseFloat(_):Number.NaN}static getIntValue(e,t=0){let n,_=(n=void 0!==e.value?e.value:e).numbers[t];return void 0!==_?parseInt(_,10):Number.NaN}static changeUnit(e,n){let _;_=void 0!==e.value?e.value:e;const i=a.unitStringToLong(_.unit);_.numbers.forEach((e,s)=>{const r=a.convertWgtUnit(parseFloat(e),i,n);E.setValueValueWithDecimals(_,r,_.preferredDecimals,s,t.QUANTITY_PARAM_MAX_DIGITS_GENERAL,!0)}),_.unit=a.unitStringToShort(n)}}t.QuantityParameter=E;t.WeightBlockHelper=class{static getMeasureParameter(e,t){for(const n of e.parameters)for(const e of n.parameters)if(e.id===t&&e.type===r.EnumParameterTypes.PARAM_MEASURE)return e}}
},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(1);t.AbstractQAppAspect=class{configure(e){this.cfg=Object.assign(void 0!==this.cfg?this.cfg:{},e)}getConfig(){return _.cloneJSON(this.cfg)}}},function(e,t){e.exports=require("util")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(69),i=n(70),s=n(71),a=n(45),r=n(73),E=n(9),o=n(20),T=n(74),A=n(21),I=n(77),l=n(48),N=n(50),c=n(41),S=n(52),u=n(54),P=n(63),p=n(55),d=n(10),R=n(37),O=n(3),L=n(82),h=n(4),C=n(26),D=n(64),g=n(53),m=n(29),M=n(12),H=n(16),f=n(83),y=n(35),b=n(42),B=n(65),G=n(1),U=n(7),v=n(84),F=n(85),Q=n(86),W=n(46),w=n(87),k=n(30),V=n(2),x=n(0);n(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",ne="BTN_RESTART_QUESTION_YES",_e="BTN_RESTART_QUESTION_NO",ie="CANCEL_LOGOUT",se="REMEMBER_LOGOUT",ae="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 Te{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=x.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=n(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 s=console.log;console.log("...saved original stdout");let a=null;if(null!==this.debugCfg.url){console.log("...there seems to be an url for remote logging configured");try{a=new W.URL(this.debugCfg.url),
console.log("...valid url for remote logging")}catch(e){a=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!==a){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(a.port),a.hostname,()=>{try{console.log(`...logging remote redirected to external client (local: ${this.debugCfg.doConsoleLog})`),console.log=((...t)=>{let n="";if(t.forEach(e=>{n+=e}),this.debugCfg.doConsoleLog)try{s(n)}catch(e){}n+="\n";try{e.write(n)}catch(e){}}),e.setNoDelay(!0),e.write("Hello, server! Love, Client.")}catch(e){}})}console.log("QAppBase: constr"),Te.clientSingleton=this,this.restHandler=new I.RestHandler,this.mqttHandler=new T.MqttHandler,this.taskMngProxy=new N.TaskProxy,this.localizerProxy=new l.LocalizerProxy,
this.weighingProxy=new c.WeighingProxy,this.accessControlProxy=new u.AccessControlProxy,this.reportingProxy=new p.ReportingProxy,this.devicInformationProxy=new f.DeviceInformationProxy,this.messageHandlerProxy=new y.MessageHandlerProxy,this.messageHandlerHelper=new b.MessageHandlerHelper(this.messageHandlerProxy),this.taskHandler=new S.TaskHandler,this.heartbeatInterval$=_.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===h.ScreenEventType.SHOW_SCREEN&&this.hideLoadingScreenOnShowScreens&&this.hideLoadingScreen(),e.type,h.ScreenEventType.SHOW_LOADINGSCREEN,e.type,h.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 n=this.screens[t];n.getId()!==e.getId()&&n.getId()!==L.LOADING_OVERLAY_ID&&n.getId()!==Q.LOCK_LOADING_OVERLAY_ID&&n.getId()!==F.LOCKMESSAGEBOX_ID&&(n.getId()===P.MESSAGEBOX_ID?this.hideMsgBox():n.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===C.MQTT_ADMIN_EVENT_PACKET_SENT&&e.payload.packet.topic===V.MqttTopics.HMI_LOADING_MODAL_APPEARANCE&&JSON.parse(e.payload.packet.payload.toString()).appearance===x.EnumAppearance.ENABLED}catch(e){return!1}}checkForLoadingScreenDisabledEvent(e){try{return e.payload.event===C.MQTT_ADMIN_EVENT_PACKET_SENT&&e.payload.packet.topic===V.MqttTopics.HMI_LOADING_MODAL_APPEARANCE&&JSON.parse(e.payload.packet.payload.toString()).appearance===x.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(V.MqttTopics.REPORTING_PRINTQUEUE_DISPLAYED,JSON.stringify(e),{retain:!1})}}hidePrintQueue(){console.log("QAppBase::hidePrintQueue()");this.mqttHandler.publish(V.MqttTopics.REPORTING_PRINTQUEUE_DISPLAYED,JSON.stringify({enabled:!1}),{retain:!1})}clearPrintQueue(){
void 0!==this.buttons.docuButton&&this.buttons.docuButton.setAppearance(x.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(x.EnumAppearance.DISABLED);break;default:this.buttons.others.push(t)}}addTimer(e,t){const n=s.setTimeout(()=>{this.addToEventQueue(new E.QAppTimerEvent(t))},e);return n.unref(),n}cancelTimer(e){void 0!==e&&s.clearTimeout(e)}addInterval(e,t){return s.setInterval(()=>{this.addToEventQueue(new E.QAppIntervalEvent(t))},e)}cancelInterval(e){void 0!==e&&s.clearInterval(e)}generateAsyncCallidentifier(){let e=Math.random();for(;this.outstandingAsyncCalls.find(t=>t===e);)e=Math.random();return e}enqueAsyncCall(e,n,_=5*t.HEARTBEAT_INTERVAL_MS,i=!1){let a=this.getCurrentState()
;console.log("QAppBase::enqueAsyncCall in state: "+a+" (timeout: "+_+"/fetchAfter: "+i+") with metadata: "+H.inspect(n));let E=this.generateAsyncCallidentifier();this.outstandingAsyncCalls.push(E);let o=new B.QAppAsyncCallTimeoutError(a,n),T=s.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:a,reason:o,metadata:n},id:E});this.addToEventQueue(e)},_);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:a,result:e,metadata:n},id:E,timerId:T});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:a,reason:e,metadata:n},id:E,timerId:T});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,n=e.eventQueue.pop();for(;n&&t>0&&!this.exitTimeOutPending;)t--,e.handleEvent(n),t>0&&(n=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 V.MqttTopics.METROLOGY_MAX_DIGITS:case V.MqttTopics.METROLOGY_MAX_DIGITS_DEBUG:this.weighingProxy.updateWeighValueMaxDigits(parseInt(e.payload.value.toString(),10));break;case V.MqttTopics.METROLOGY_RANGES:this.weighingProxy.updateMetrologyRanges(JSON.parse(e.payload.value.toString()));break;case V.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=a.createFsm(this.qappStates),delete this.__machina__,this.eventQueue.splice(0),this.qappFsm.on("transition",this.onFsmTransitionInternal),this.mqttHandler.subscribe(V.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:x.EnumAppearance.ENABLED_SECONDARY},{id:te,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},appearance:x.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:x.EnumAppearance.ENABLED_SECONDARY},{id:Z,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},
appearance:x.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(V.MqttTopics.QAPP_LOGOUT_REQUEST,JSON.stringify({request:ie}))}rememberLogout(){
this.mqttHandler.publish(V.MqttTopics.QAPP_LOGOUT_REQUEST,JSON.stringify({request:se}))}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(V.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:ne,label:{id:"_QAPP_LIB_MBOX_BTN_YES",
args:[]},appearance:x.EnumAppearance.ENABLED_SECONDARY},{id:_e,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},appearance:x.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(x.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(V.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(V.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===C.MQTT_ADMIN_EVENT_PACKET_SENT&&e.payload.packet.topic===V.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:x.EnumAppearance.ENABLED_SECONDARY}],textList:[{id:"_QAPP_LIB_MBOX_DEMO_INFO_TEXT",args:[]}]})},_onExit:function(e){},EV_HMI_BTN_CLICKED:function(t,n){return n.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 n=function(e,t){e.heartbeat(t.payload)};for(let e in t)t.hasOwnProperty(e)&&(t[e]._FSM_HEARTBEAT_EVENT_=n,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_:n},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,a.STATE_UNINITIALIZED_INTERNAL),e.restart(),e.run())},_FSM_HEARTBEAT_EVENT_:n}}else t=this.qappStates;return t}handleEvent(e){if(this.qappFsm){if(e instanceof o.MqttUpdateDebugEvent&&e.payload.topic===V.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 A.HmiButtonClickedEvent)if(e.payload.buttonId!==k.BTN_HOME_ID||this.suppressGlobalHomeBtnHandling)if(e.payload.buttonId!==k.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===ne)return void this.continueRestart();if(e.payload.buttonId===_e)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===V.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&&s.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&&s.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 n=t[e.toState];n?n(e.client,e):(n=t["~"])&&n(e.client,e),(n=t["*"])&&n(e.client,e)}if(e.fromState===a.STATE_UNINITIALIZED_INTERNAL){
e.client.mqttHandler.subscribe(V.MqttTopics.METROLOGY_MAX_DIGITS),e.client.mqttHandler.subscribe(V.MqttTopics.METROLOGY_MAX_DIGITS_DEBUG),e.client.mqttHandler.subscribe(V.MqttTopics.METROLOGY_RANGES),e.client.mqttHandler.subscribe(V.MqttTopics.WEIGHING_SELECTED_DISPLAY_VALUE),e.client.mqttHandler.subscribe(V.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=[],n=e.client.messageHandlerHelper.buildSecret(b.MESSAGE_HANDLER_SECRET_TYPE.QAPP);n&&t.push({categoryAsString:y.MessageHandlerCategory.QAPP,secret:n});let _=e.client.messageHandlerHelper.buildSecret(b.MESSAGE_HANDLER_SECRET_TYPE.QAPP_DB_ERROR);_&&t.push({categoryAsString:y.MessageHandlerCategory.QAPP,secret:_})
;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 s=e.client.messageHandlerHelper.buildSecret(b.MESSAGE_HANDLER_SECRET_TYPE.QAPP_RUNTIME_EXIT_ERROR);s&&t.push({categoryAsString:y.MessageHandlerCategory.QAPP,secret:s});let a=void 0;void 0!==e.client.taskId&&(a=e.client.messageHandlerHelper.buildSecret(b.MESSAGE_HANDLER_SECRET_TYPE.TASKID))&&t.push({categoryAsString:y.MessageHandlerCategory.QAPP,secret:a});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"),n&&e.client.messageHandlerProxy.deleteMessageByCategory(y.MessageHandlerCategory.QAPP,n),_&&e.client.messageHandlerProxy.deleteMessageByCategory(y.MessageHandlerCategory.QAPP,_),
i&&e.client.messageHandlerProxy.deleteMessageByCategory(y.MessageHandlerCategory.QAPP,i),s&&e.client.messageHandlerProxy.deleteMessageByCategory(y.MessageHandlerCategory.QAPP,s),a&&e.client.messageHandlerProxy.deleteMessageByCategory(y.MessageHandlerCategory.QAPP,a)),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===a.STATE_UNINITIALIZED_INTERNAL&&(console.log("QAppBase: publish running state of qapp"),e.client.mqttHandler.publish(V.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 n=t[e.fromState];n?n(e.client,e):(n=t["~"])&&n(e.client,e),(n=t["*"])&&n(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:"---",N.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 n=void 0,_=this.taskHandler.getTask();switch(e){case D.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_INDEPENDENT:n=t.STORAGE_LOCATION_BASE;break;case D.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC:_&&(n=this.getStorageLocation(D.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_INDEPENDENT)+g.sep+_.qappOrderNumber);break;case D.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC_VERSION:_&&(n=this.getStorageLocation(D.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC)+g.sep+_.qappVersion);break;case D.EnumPersistencyScope.PERSISTENCY_SCOPE_TASk_SPECIFIC:_&&this.taskId&&(n=this.getStorageLocation(D.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC_VERSION)+g.sep+this.taskId)}return n}
createStorageLocation(e){let t=n(29),_=this.getStorageLocation(D.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_INDEPENDENT);if(void 0!==_){if(!t.existsSync(_))return!1;if(e!==D.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_INDEPENDENT){let n=this.getStorageLocation(D.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC);if(void 0!==n){if(t.existsSync(n)||t.mkdirSync(n),e!==D.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC){let n=this.getStorageLocation(D.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC_VERSION);if(void 0!==n){if(t.existsSync(n)||t.mkdirSync(n),e!==D.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC_VERSION){return void 0!==this.getStorageLocation(D.EnumPersistencyScope.PERSISTENCY_SCOPE_TASk_SPECIFIC)&&(t.existsSync(this.getStorageLocation(D.EnumPersistencyScope.PERSISTENCY_SCOPE_TASk_SPECIFIC))||t.mkdirSync(this.getStorageLocation(D.EnumPersistencyScope.PERSISTENCY_SCOPE_TASk_SPECIFIC)),!0)}return!0}return!1}return!0}return!1}return!0}return!1}
readQAppDescQTFAsJSON(e,t=!0){let n=void 0,_=void 0,i="";this.scriptPath?i=g.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 s="";try{s=i+"qapp.desc_"+e+".json",_=m.readFileSync(s)}catch(e){console.log("QAppConfigBase: - no "+s+" found - try DEFAULT");try{s=i+"qapp.desc_DEFAULT.json",_=m.readFileSync(s)}catch(e){t?this.exitError("QAppConfigBase::readQAppDescAsJSON - "+s+" (fallback) missing"):console.log("QAppConfigBase::readQAppDescAsJSON - "+s+" (fallback) missing")}}try{_&&(n=JSON.parse(_.toString("utf-8")))}catch(e){t?this.exitError("QAppConfigBase::readQAppDescAsJSON - "+s+" not valid JSON"):console.log("QAppConfigBase::readQAppDescAsJSON - "+s+" not valid JSON")}return n}relevantParamsAreEqual(e,n){let _=G.cloneJSON(e),i=G.cloneJSON(n);return _.forEach((e,n)=>{
e.id===ae?delete _[n]:e.id===re&&e.parameters.forEach((e,i)=>{e.id.startsWith(t.TASK_PROFILE_REPORTING_ID_PREFIX)?delete _[n].parameters[i]:e.id===t.TASK_PROFILE_WEIGHING_ID&&(e.info.options=[])})}),i.forEach((e,n)=>{e.id===ae?delete i[n]:e.id===re&&e.parameters.forEach((e,_)=>{e.id.startsWith(t.TASK_PROFILE_REPORTING_ID_PREFIX)?delete i[n].parameters[_]:e.id===t.TASK_PROFILE_WEIGHING_ID&&(e.info.options=[])})}),M.isEqual(_,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=Te},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(3),s=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,n=!1){this.tabData=void 0,this.screenId="",this.publishPending=!1,this.lastPublishedTabContent="",this.mqttHandler=e,
this.screenId=t,this.singleTab=n}setTabData(e,t=!0){this.tabData=e,t&&this.publishIfEnabled()}publishIfEnabled(){this.publishPending=!1,void 0!==this.tabData&&this.tabData.appearance===_.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,s.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(_.EnumAppearance.HIDDEN)}show(){this.setAppearance(_.EnumAppearance.ENABLED)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(3),i=n(1),s=n(2);class a{constructor(e,t){this.publishedId="",this.publishPending=!0,this.parameter=t,
this.publishedId=s.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,_.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=a,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EV_MQTT_UPDATE="EV_MQTT_UPDATE";class _{constructor(e){this.payload=e,this.type=t.EV_MQTT_UPDATE}}t.MqttUpdateEvent=_,t.EV_MQTT_UPDATE_DEBUG="EV_MQTT_UPDATE_DEBUG";t.MqttUpdateDebugEvent=class extends _{constructor(){super(...arguments),this.type=t.EV_MQTT_UPDATE_DEBUG}}},function(e,t,n){"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 _=n(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 _.URL("http://127.0.0.1/"+e.payload.subUrl).searchParams}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(3),i=n(19),s=n(4);t.CANCEL_BUTTON_ID="BTN_CANCEL",t.CANCEL_BUTTON_NAME="_CANCEL";class a extends s.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={},s=_.createEmptyTextStructure();s=t.title,n.title=s,e.category=n,e.category.id=t.id,e.params=[];for(let n of t.parameters){let t=new i.default(this.mqttHandler,n);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=a,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{
value:!0});const _=n(10),i=n(0),s=n(7);t.ParamUpdateUserActionSimpleAccept_OK_BUTTON_ID="BTN_OK",t.ParamUpdateUserActionSimpleAccept={type:_.EnumMessageboxType.ERROR,title:{id:"_QAPP_LIB_MSG_BOX_WARNING_UPDATE_TASK_PARAM",args:[]},textList:[],buttons:[{appearance:i.EnumAppearance.ENABLED_SECONDARY,label:{id:s.EnumFontLabels.OK,args:[]},id:t.ParamUpdateUserActionSimpleAccept_OK_BUTTON_ID}]}},function(e,t){e.exports=require("mathjs")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(24),i=n(34),s=n(13),a=n(1);var r,E;function o(e,n,i){let s=t.unitsMap[E.NONE],a=t.unitsMap[E.NONE];if(null==e)return _.bignumber(NaN);if(!t.unitsMap.hasOwnProperty(n))return e;if(!t.unitsMap.hasOwnProperty(i))return e;if(s=t.unitsMap[n],a=t.unitsMap[i],s.id===a.id)return e;if(s.unitConversionBase===r.UNDEFINED||a.unitConversionBase===r.UNDEFINED||void 0==s.conversionFactor||void 0==a.conversionFactor)return e;const o=[r.MASS,r.VOLUME]
;if(!(s.unitConversionBase===a.unitConversionBase||o.includes(s.unitConversionBase)&&o.includes(a.unitConversionBase)))return e;switch(s.unitConversionBase){case r.MASS:case r.VOLUME:case r.PRESSURE:return e.times(a.conversionFactor).dividedBy(s.conversionFactor);case r.TEMPERATURE:{let t=e;switch(s.id){case E.GRAD_CELSIUS:t=e.add(273.15);break;case E.GRAD_FAHRENHEIT:t=e.sub(32).dividedBy(s.conversionFactor).add(273.15)}switch(a.id){case E.GRAD_CELSIUS:return t.sub(273.15);case E.GRAD_FAHRENHEIT:return t.sub(273.15).times(a.conversionFactor).add(32);case E.KELVIN:return t}return e}default:return e}}function T(e,t,n){let i=o(s.isNumber(e)?_.bignumber(e):e,t,n);return null==i?NaN:i.toNumber()}function A(e,t){return u(e,t).toFixed(Math.max(0,t))}function I(e,n){let _=a.cloneJSON(e);_.alibi=void 0,_.alibiId=void 0;let s=t.unitsMap[e.unit],E=t.unitsMap[n];if(s.id===E.id)return _;if(s.unitConversionBase===r.UNDEFINED||E.unitConversionBase===r.UNDEFINED)return _;const o=[r.MASS,r.VOLUME]
;return s.unitConversionBase===E.unitConversionBase||o.includes(s.unitConversionBase)&&o.includes(E.unitConversionBase)?(_.value=T(_.value,e.unit,n),_.unit=n,_.decimals=_.decimals-i.getUnitShift(e.unit)+i.getUnitShift(n),_.decimals<0&&(_.decimals=0),delete _.alibiId,_):_}function l(e){return e?t.unitsMap.hasOwnProperty(e.toString())?t.unitsMap[e].mark:e.toString():""}function N(e){const n=s.getObjectByID(Object.values(t.unitsMap),e,"mark");return null!=n?n.id:E.NONE}function c(e){let t=[];if(null==e||void 0===e)return t;if(0==e.length)return t;let n=E.NONE;for(let _=0;_<e.length;_++)s.isNumber(e[_])?t.push(e[_]):s.isObject(e[_])&&e[_].hasOwnProperty("value")&&s.isNumber(e[_].value)&&e[_].hasOwnProperty("unit")&&(n!==E.NONE?t.push(I(e[_],n).value):(t.push(e[_].value),n=e[_].unit));return t}function S(e){let t=0;if(null==e||void 0===e)return t;if(0==e.length)return t;for(let n=0;n<e.length;n++)"object"==typeof e[n]&&e[n].hasOwnProperty("decimals")&&(t=e[n].decimals>t?e[n].decimals:t)
;return t}function u(e,t){let n=_.bignumber(e),i=_.bignumber(10).pow(t);return n.times(i).round().dividedBy(i).toNumber()}function P(e){let t=c(e);return s.isObject(t)&&0!==t.length?_.sum(t):NaN}function p(e){let t=c(e);return s.isObject(e)&&0!==e.length?_.mean(t):NaN}function d(e,t){let n=[];for(let _=0;_<e.length;_++)s.isNumber(e[_].value)&&(n[_]=I(e[_],t));return{value:p(n),unit:t,decimals:S(n)}}function R(e,t){return s.isObject(e)?_.bignumber(e.value).dividedBy(t).toNumber():_.bignumber(e).dividedBy(t).toNumber()}function O(e){let t=c(e);return s.isObject(t)&&0!==t.length?_.std(t,"unbiased"):NaN}function L(e,t){let n=[];for(let _=0;_<e.length;_++)s.isNumber(e[_].value)&&(n[_]=I(e[_],t));return{value:O(n),unit:t,decimals:S(n)}}function h(e,t,n){if(e<2||!s.isNumber(t)||!s.isNumber(n))return NaN;const i=_.bignumber(1).dividedBy(_.bignumber(e).minus(1)),a=_.bignumber(n).minus(_.bignumber(t).pow(2).dividedBy(_.bignumber(e)))
;return i.isNaN()||a.isNaN()?NaN:_.sqrt(i.times(a.abs())).toNumber()}function C(e){let t=c(e);return s.isObject(t)&&0!==t.length?_.min(t):NaN}function D(e){let t=c(e);return s.isObject(t)&&0!==t.length?_.max(t):NaN}function g(e){let t=c(e);return s.isObject(t)&&0!==t.length?m(O(t),p(t)):NaN}function m(e,t){let n=0,i=0;return n=s.isObject(e)?e.value:e,i=s.isObject(t)?t.value:t,s.isObject(e)&&s.isObject(t)&&(n=I(e,t.unit).value),_.bignumber(n).dividedBy(i).times(100).toNumber()}function M(e,t,n){let i=NaN,a=NaN,r=NaN,o=E.NONE;return s.isObject(e)?(i=e.value,o=e.unit):i=e,s.isObject(t)?o!==E.NONE?a=I(t,o).value:(a=t.value,o=t.unit):a=t,s.isObject(n)?o!==E.NONE?r=I(n,o).value:(r=n.value,o=n.unit):r=n,_.bignumber(r).minus(a).dividedBy(_.bignumber(i).times(6)).toNumber()}function H(e,t,n){return{value:M(e,t,n),unit:E.NONE,decimals:3}}function f(e,t,n,i){let a=NaN,r=NaN,o=NaN,T=NaN,A=E.NONE;return s.isObject(e)?(a=e.value,A=e.unit):a=e,s.isObject(t)?A!==E.NONE?r=I(t,A).value:(r=t.value,
A=t.unit):r=t,s.isObject(n)?A!==E.NONE?o=I(n,A).value:(o=n.value,A=n.unit):o=n,s.isObject(i)?A!==E.NONE?T=I(i,A).value:(T=i.value,A=i.unit):T=i,_.min(_.bignumber(r).minus(o).dividedBy(_.bignumber(a).times(3)),_.bignumber(T).minus(r).dividedBy(_.bignumber(a).times(3))).toNumber()}function y(e,t,n,_){return{value:f(e,t,n,_),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=T,t.createQuantity=function(e,t,n){let _={value:NaN,unit:E.NONE,decimals:0};if(s.isObject(e)){_=Object.assign(_,e);for(const e of Object.keys(_))["value","unit","decimals","auxiliaryDigits","alibiId","alibi","deviceserial","stable","timestamp","info"].includes(e)||delete _[e]}else if(s.isObject(t))(t=t).value.numbers.length>0&&(_.value=parseFloat(t.value.numbers[0])),_.unit=N(t.value.unit),_.decimals=t.value.decimals;else if(s.isObject(n)){const e=(n=n).value;_.value=parseFloat(e.number),s.isNumber(_.value)||(_.info=e.number),s.isNumber(_.value)&&"-"===e.sign&&(_.value*=-1),_.decimals=e.decimals,_.unit=N(e.unit),_.stable=e.isStable,s.isNumber(e.auxiliaryDigits)&&e.auxiliaryDigits>0&&(_.auxiliaryDigits=e.auxiliaryDigits)}
return"BATH"===_.unit&&(_.unit=E.BAHT),_.unit=s.setEnumSafely(_.unit,E,E.NONE),_},t._formatQuantityParam_numberOnly=A,t.formatQuantityParam_numberOnly=function(e){return null!==e&&e.hasOwnProperty("value")&&e.hasOwnProperty("decimals")?s.isNumber(e.value)?A(e.value,e.decimals):"NaN":"N.A."},t.formatQuantityParam=function(e){return null!==e&&e.hasOwnProperty("value")&&e.hasOwnProperty("unit")&&e.hasOwnProperty("decimals")?s.isNumber(e.value)?A(e.value,e.decimals)+" "+l(e.unit):"NaN":"N.A."},t.convertToTargetUnit=I,t.getUnitString=l,t.getUnitEnum=N,t.math_getSimple_numberArray=c,t.math_count=function(e){return c(e).length},t.math_getMaximumDecimals=S,t.math_roundUp=function(e,t){let n=_.bignumber(e),i=n.minus(n.floor()),s=(i=i.times(_.bignumber(10).pow(t))).minus(i.floor());return _.larger(s,0)&&(i=i.minus(s).add(1)),i=i.dividedBy(_.bignumber(10).pow(t)),n.floor().add(i).toNumber()},t.math_roundAuto=u,t.math_detectLeastSignificantDigit=function(e){
let t=0,n=1,i=_.bignumber(e).abs(),s=i.floor(),a=i.minus(s);for(;a.greaterThan(0);)t++,s=(a=a.times(10)).floor(),a=a.minus(s);return t>0&&(n=s.dividedBy(_.bignumber(10).pow(t)).toNumber()),n},t.math_sum=P,t.math_Sum=function(e,t){let n=[];for(let _=0;_<e.length;_++)s.isNumber(e[_].value)&&(n[_]=I(e[_],t));return{value:P(n),unit:t,decimals:S(n)}},t.math_mean=p,t.math_Mean=d,t.math_mean_longterm=R,t.math_Mean_Longterm=function(e,t,n){const _=I(e,n);return _.value=R(_,t),_},t.math_standard_deviation=O,t.math_Standard_Deviation=L,t.math_standard_deviation_longterm=h,t.math_Standard_Deviation_Longterm=function(e,t,n,_){return I({value:h(e,(t=I(t,n.unit)).value,n.value),unit:n.unit,decimals:n.decimals},_)},t.math_minimum=C,t.math_Minimum=function(e,t){let n=[];for(let _=0;_<e.length;_++)s.isNumber(e[_].value)&&(n[_]=I(e[_],t));return{value:C(n),unit:t,decimals:S(n)}},t.math_maximum=D,t.math_Maximum=function(e,t){let n=[];for(let _=0;_<e.length;_++)s.isNumber(e[_].value)&&(n[_]=I(e[_],t))
;return{value:D(n),unit:t,decimals:S(n)}},t.math_variation_coefficient=g,t.math_Variation_Coefficient=function(e){let t=[];for(let n=0;n<e.length;n++)s.isNumber(e[n].value)&&(t[n]=I(e[n],E.GRAM));return{value:g(t),unit:E.PERCENT,decimals:2}},t.math_variation_coefficient_longterm=m,t.math_Variation_Coefficient_Longterm=function(e,t){return{value:m(I(e,t.unit),t),unit:E.PERCENT,decimals:2}},t.math_cp=function(e,t,n){let _=c(e);return s.isObject(e)&&0!==e.length?M(O(_),t,n):NaN},t.math_Cp=function(e,t,n){return H(L(e,t.unit),t,n)},t.math_cp_longterm=M,t.math_Cp_Longterm=H,t.math_cpk=function(e,t,n){return f(O(e),p(e),t,n)},t.math_Cpk=function(e,t,n){return y(L(e,t.unit),d(e,t.unit),t,n)},t.math_cpk_longterm=f,t.math_Cpk_Longterm=y},function(e,t,n){"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,n){
"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,n){return t.TASK_DYNAMIC_ID_LID_X_PARAM_ID_PREFIX+n+e.toFixed(0)},t.createSIDParamId=function(e,n){return t.TASK_DYNAMIC_ID_SID_X_PARAM_ID_PREFIX+n+e.toFixed(0)}},function(e,t){e.exports=require("tslib")},function(e,t){e.exports=require("fs")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(7),s=n(1),a={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!==a[e]?a[e]:0},
t.BTN_EVAL_ID="BTN_EVAL";const r={buttonId:t.BTN_EVAL_ID,label:{id:i.EnumFontLabels.RESULT,args:[]},appearance:_.EnumAppearance.HIDDEN};t.createEvalButtonData=function(){return s.cloneJSON(r)},t.BTN_NEXT_ID="BTN_NEXT";const E={buttonId:t.BTN_NEXT_ID,label:{id:i.EnumFontLabels.NEXT,args:[]},appearance:_.EnumAppearance.HIDDEN};t.createNextButtonData=function(){return s.cloneJSON(E)},t.BTN_PREV_ID="BTN_PREV";const o={buttonId:t.BTN_PREV_ID,label:{id:i.EnumFontLabels.PREV,args:[]},appearance:_.EnumAppearance.HIDDEN};t.createPrevButtonData=function(){return s.cloneJSON(o)},t.BTN_BACK_ID="BTN_BACK",t.BTN_LONG_BACK_ID="BTN_LONG_BACK";const T={buttonId:t.BTN_BACK_ID,label:{id:i.EnumFontLabels.BACK,args:[]},appearance:_.EnumAppearance.HIDDEN};t.createBackButtonData=function(e=!1){let n=s.cloneJSON(T);return e&&(n.longPressButtonId=t.BTN_LONG_BACK_ID),n},t.BTN_DOCU_ID="BTN_DOCU";const A={buttonId:t.BTN_DOCU_ID,label:{id:i.EnumFontLabels.DOCU,args:[]},appearance:_.EnumAppearance.HIDDEN}
;t.createDocuButtonData=function(){return s.cloneJSON(A)},t.BTN_SEND_ID="BTN_SEND";const I={buttonId:t.BTN_SEND_ID,label:{id:i.EnumFontLabels.DOCU,args:[]},appearance:_.EnumAppearance.HIDDEN};t.createSendButtonData=function(){return s.cloneJSON(I)},t.BTN_INVALIDATE_SAMPLE_ID="BTN_INVALIDATE_SAMPLE";const l={buttonId:t.BTN_INVALIDATE_SAMPLE_ID,label:{id:i.EnumFontLabels.INVALIDATE_SAMPLE,args:[]},appearance:_.EnumAppearance.HIDDEN};t.createInvalidateSampleButtonData=function(){return s.cloneJSON(l)},t.BTN_PRINT_LABEL_ID="BTN_PRINT_LABEL";const N={buttonId:t.BTN_PRINT_LABEL_ID,label:{id:"_QAPP_LIB_PRINT_LABEL_BTN_TITLE",args:[]},appearance:_.EnumAppearance.HIDDEN};t.createPrintLabelButtonData=function(){return s.cloneJSON(N)},t.BTN_START_ID="BTN_START";const c={buttonId:t.BTN_START_ID,label:{id:i.EnumFontLabels.START,args:[]},appearance:_.EnumAppearance.HIDDEN};t.createStartButtonData=function(){return s.cloneJSON(c)},t.BTN_END_ID="BTN_END";const S={buttonId:t.BTN_END_ID,label:{
id:i.EnumFontLabels.END,args:[]},appearance:_.EnumAppearance.HIDDEN};t.createEndButtonData=function(){return s.cloneJSON(S)},t.BTN_PRINTADD_ID="BTN_PRINTADD";const u={buttonId:t.BTN_PRINTADD_ID,label:{id:i.EnumFontLabels.PRINT_ADD,args:[]},appearance:_.EnumAppearance.HIDDEN};t.createPrintAddButtonData=function(){return s.cloneJSON(u)},t.BTN_CANCEL_ID="BTN_CANCEL";const P={buttonId:t.BTN_CANCEL_ID,label:{id:i.EnumFontLabels.CANCEL,args:[]},appearance:_.EnumAppearance.HIDDEN};t.createCancelButtonData=function(){return s.cloneJSON(P)},t.BTN_SEARCH_ID="BTN_SEARCH";const p={buttonId:t.BTN_SEARCH_ID,label:{id:i.EnumFontLabels.SEARCH,args:[]},appearance:_.EnumAppearance.HIDDEN};t.createSearchButtonData=function(){return s.cloneJSON(p)},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:_.EnumAppearance.HIDDEN};t.createFilterButtonData=function(){return s.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:_.EnumAppearance.HIDDEN};t.createAddButtonData=function(){return s.cloneJSON(R)},t.BTN_DELETE_ID="BTN_DELETE";const O={buttonId:t.BTN_DELETE_ID,label:{id:i.EnumFontLabels.DELETE,args:[]},appearance:_.EnumAppearance.HIDDEN};t.createDeleteButtonData=function(){return s.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:_.EnumAppearance.HIDDEN};t.createHomeButtonData=function(){return s.cloneJSON(L)},t.BTN_LOGOUT_ID="BTN_LOGOUT";const h={
buttonId:t.BTN_LOGOUT_ID,label:{id:i.EnumFontLabels.LOGOUT,args:[]},appearance:_.EnumAppearance.ENABLED_SECONDARY};t.createLogoutButtonData=function(){return s.cloneJSON(h)},t.BTN_RELOAD_ID="BTN_RELOAD";const C={buttonId:t.BTN_RELOAD_ID,label:{id:i.EnumFontLabels.RELOAD,args:[]},appearance:_.EnumAppearance.ENABLED_SECONDARY};t.createReloadButtonData=function(){return s.cloneJSON(C)},t.BTN_OPEN_WEIGHING_ID="BTN_OPEN_WEIGHING";const D={buttonId:t.BTN_OPEN_WEIGHING_ID,label:{id:i.EnumFontLabels.WEIGHING,args:[]},appearance:_.EnumAppearance.ENABLED_SECONDARY};t.createOpenWeighingButtonData=function(){return s.cloneJSON(D)},t.BTN_OK_ID="BTN_OK";const g={buttonId:t.BTN_OK_ID,label:{id:i.EnumFontLabels.OK,args:[]},appearance:_.EnumAppearance.ENABLED_SECONDARY};t.createOKButtonData=function(){return s.cloneJSON(g)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(1),i=n(0);var s;!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=""}(s=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 a={id:"",appearance:i.EnumAppearance.HIDDEN,type:s.TAB_FIGURE,containerTitle:{id:"",args:[]},topIcon:"",title:{id:"",args:[]},topbuttons:[],imgref:{}};t.createEmptyITabFigure=function(){return _.cloneJSON(a)};const r={id:"",appearance:i.EnumAppearance.HIDDEN,type:s.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 _.cloneJSON(E)},t.createEmptyITabParamList=function(){return _.cloneJSON(r)};const o={id:"",
appearance:i.EnumAppearance.HIDDEN,type:s.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 T={id:"",appearance:i.EnumAppearance.HIDDEN,type:s.TAB_MENU,containerTitle:{id:"",args:[]},topIcon:"",title:{id:"",args:[]},topbuttons:[],menuType:t.TAB_MENU_TYPE_TOPIC,menubuttons:[],scrollToTop:!1};t.createEmptyITabMenu=function(){return _.cloneJSON(T)},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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(4),s=n(11),a=n(2);t.CANCEL_BUTTON_ID="BTN_CANCEL";class r{constructor(e){this.paramDetailsOverlayObject={appearance:_.EnumAppearance.HIDDEN,title:{id:"",args:[]},
params:[]},this.events$=new s.Subject,this.mqttHandler=e}setAppearance(e){this.paramDetailsOverlayObject.appearance!==e&&(e!==_.EnumAppearance.HIDDEN&&e!==_.EnumAppearance.ENABLED||(this.paramDetailsOverlayObject.appearance=e,this.mqttHandler.publish(a.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!==_.EnumAppearance.HIDDEN&&this.mqttHandler.publish(a.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!==_.EnumAppearance.HIDDEN&&this.mqttHandler.publish(a.MqttTopics.HMI_PARAMDETAILSOVERLAY,JSON.stringify(this.paramDetailsOverlayObject)))}getParams(){return this.paramDetailsOverlayObject.params}getId(){return"PARAMDETAILSOVERLAY"}getButton(e){}hide(){this.paramDetailsOverlayObject.appearance===_.EnumAppearance.ENABLED&&(this.setAppearance(_.EnumAppearance.HIDDEN),this.events$.next({type:i.ScreenEventType.HIDE_OVERLAY,id:this.getId()}))}show(){this.paramDetailsOverlayObject.appearance===_.EnumAppearance.HIDDEN&&(this.setAppearance(_.EnumAppearance.ENABLED),this.events$.next({type:i.ScreenEventType.SHOW_OVERLAY,id:this.getId()}))}}t.ParamDetailsOverlay=r,t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(3),i=n(14),s=n(23),a=n(1);t.checkGeneralParamRules=function(e){let t=void 0;if(_.isTypeOfIQuantityParameter(e)){let n=i.QuantityParameter.getValue(e);if(Number.isNaN(n)){
if(!0!==e.info.isNoValueAllowed){let n=a.cloneJSON(s.ParamUpdateUserActionSimpleAccept);void 0!==e.info.noValueErrorMsg?"string"==typeof e.info.noValueErrorMsg?n.textList=[{id:e.info.noValueErrorMsg,args:[]}]:n.textList=[e.info.noValueErrorMsg]:n.textList=[{id:"_QAPP_LIB_MSG_BOX_ERROR_CFG_QUANT_PARAM_EMPTY_NOT_ALLOWED",args:[]}],t={updatedParameter:e,message:n}}}else try{if(n<parseFloat(e.info.minimum.value)){let n=a.cloneJSON(s.ParamUpdateUserActionSimpleAccept);n.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:n}}else if(n>parseFloat(e.info.maximum.value)){let n=a.cloneJSON(s.ParamUpdateUserActionSimpleAccept);n.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:n}}}catch(e){}}else if(_.isTypeOfIStringParameter(e)){let n=e.value.string;try{if(void 0===n){
if(0!==e.info.minimum.length&&!0!==e.info.isNoValueAllowed){let n=a.cloneJSON(s.ParamUpdateUserActionSimpleAccept);void 0!==e.info.noValueErrorMsg?"string"==typeof e.info.noValueErrorMsg?n.textList=[{id:e.info.noValueErrorMsg,args:[]}]:n.textList=[e.info.noValueErrorMsg]:n.textList=[{id:"_QAPP_LIB_MSG_BOX_ERROR_CFG_STRING_PARAM_MANDATORY",args:[]}],t={updatedParameter:e,message:n}}}else if(n.length<e.info.minimum.length)if(0===n.length){if(console.log("StringParam: empty"),!0!==e.info.isNoValueAllowed){let n=a.cloneJSON(s.ParamUpdateUserActionSimpleAccept);void 0!==e.info.noValueErrorMsg?"string"==typeof e.info.noValueErrorMsg?n.textList=[{id:e.info.noValueErrorMsg,args:[]}]:n.textList=[e.info.noValueErrorMsg]:n.textList=[{id:"_QAPP_LIB_MSG_BOX_ERROR_CFG_STRING_PARAM_MANDATORY",args:[]}],t={updatedParameter:e,message:n}}}else{console.log("StringParam: min exceed");let n=a.cloneJSON(s.ParamUpdateUserActionSimpleAccept);n.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:n}}else if(n.length>e.info.maximum.length)if(console.log("StringParam: max exceed"),!0===e.info.maximum.autoCut)console.log("StringParam: autocut"),e.value.string=n.substr(0,e.info.maximum.length);else{let n=a.cloneJSON(s.ParamUpdateUserActionSimpleAccept);n.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:n}}}catch(e){}}else if(_.isTypeOfIPasswordParameter(e)){let n=e.value.string;try{if(void 0===n){if(0!==e.info.minimum.length&&!0!==e.info.isNoValueAllowed){let n=a.cloneJSON(s.ParamUpdateUserActionSimpleAccept);void 0!==e.info.noValueErrorMsg?"string"==typeof e.info.noValueErrorMsg?n.textList=[{id:e.info.noValueErrorMsg,args:[]}]:n.textList=[e.info.noValueErrorMsg]:n.textList=[{id:"_QAPP_LIB_MSG_BOX_ERROR_CFG_STRING_PARAM_MANDATORY",
args:[]}],t={updatedParameter:e,message:n}}}else if(n.length<e.info.minimum.length)if(0===n.length){if(console.log("PasswordParam: empty"),!0!==e.info.isNoValueAllowed){let n=a.cloneJSON(s.ParamUpdateUserActionSimpleAccept);void 0!==e.info.noValueErrorMsg?"string"==typeof e.info.noValueErrorMsg?n.textList=[{id:e.info.noValueErrorMsg,args:[]}]:n.textList=[e.info.noValueErrorMsg]:n.textList=[{id:"_QAPP_LIB_MSG_BOX_ERROR_CFG_STRING_PARAM_MANDATORY",args:[]}],t={updatedParameter:e,message:n}}}else{console.log("PasswordParam: min exceed");let n=a.cloneJSON(s.ParamUpdateUserActionSimpleAccept);n.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:n}}else if(n.length>e.info.maximum.length){console.log("PasswordParam: max exceed");let n=a.cloneJSON(s.ParamUpdateUserActionSimpleAccept);n.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:n}}}catch(e){}}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(44),i=n(24);var s=n(24);t.bignumber=s.bignumber,t.abs=s.abs;const a=n(25);function r(e){let t=void 0;return a.unitsMap.hasOwnProperty(e)&&(t=a.unitsMap[e].conversionDecimalPlacesShift),void 0===t&&(t=1),t}var E;t.calcInterval=function(e,t,n){return i.bignumber(n).times(_.SartoMath.decPowers(r(e))).times(_.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 a.unitsMap.hasOwnProperty(e)?a.unitsMap[e].mark:a.unitsMap[a.EnumUnit.INVALID].mark},t.getUnitFactor=function(e){let t=void 0;return a.unitsMap.hasOwnProperty(e)&&(t=a.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,n]of Object.entries(o))if(n===t)return e;return E.invalid},t.convertWgtUnit=function(e,t,n){return a.convertValueToTargetUnit(e,t,n)},t.convertWgtUnitBigNumber=function(e,t,n){return a.convertValueToTargetUnitBigNumber(e,t,n)},t.convertTempUnit=function(e,t,n){const _=[a.EnumUnit.GRAD_CELSIUS,a.EnumUnit.GRAD_FAHRENHEIT,E.C,E.F];return _.includes(t)&&_.includes(n)?a.convertValueToTargetUnit(e,t,n):e},t.convertPressureUnit=function(e,t,n){const _=[a.EnumUnit.HECTOPASCAL,a.EnumUnit.KILOPASCAL,E.hPa,E.kPa];return _.includes(t)&&_.includes(n)?a.convertValueToTargetUnit(e,t,n):e},
t.UnitEnum_Api2Lib=function(e){let t=E;for(let n in t)if(t[n].toString()===e.toString())return n;return null},t.UnitEnum_Lib2Api=function(e){return a.getUnitEnum(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(5),i=n(0),s=n(16),a=n(7),r=n(6);var E,o,T;function A(e,n,_){return{appearance:i.EnumAppearance.ENABLED_SECONDARY,type:o.CALLBACK,name:n||a.EnumFontLabels.OK,effect:{method:"buttonClickEvent",module:"qappHandler",params:{buttonId:e||t.MESSAGEHANDLER_OK_BTN_ID},calltarget:_||T.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"}(T=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=A;t.MessageHandlerProxy=class extends _.BaseProxy{constructor(){super(...arguments),this.restEndpoint="messagehandler"}addMessage(e,t,n,i,a,E,o,T,I,l){return this.body.method=r.RestMethodsMESSAGE_HANDLER.addMessage,this.body.params={message:{errorCode:e,type:t,lifetime:i,title:a,
reason:E,solution:o,buttons:I||[A()],category:n,categorysecret:T},showMessageInFutureMillis:l||0,uniqueMessageId:0},console.log("addMessageHandler: "+s.inspect(this.body.params.message)),new _.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: "+s.inspect(this.body.params)),new _.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: "+s.inspect(this.body.params)),new _.CubisRestResponse(this.syncRequest())}getAllMessagesByCategory(e){this.body.method=r.RestMethodsMESSAGE_HANDLER.getAllMessagesByCategory,this.body.params={categoryAsString:e,messages:{}}
;let t=new _.CubisRestResponse(this.syncRequest());return JSON.parse(t.rawReturns.messages).data}getAllErrorMessagesByCategory(e){let t=this.getAllMessagesByCategory(e),n=[];for(let e of t)e.type===E.ERROR&&n.push(e);return n}removeMessage(e){return this.body.method=r.RestMethodsMESSAGE_HANDLER.removeMessage,this.body.params={uniqueMessageId:e},new _.CubisRestResponse(this.syncRequest())}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(28),i=n(50),s=n(1),a=n(5),r=n(13),E=n(0),o=n(49),T=n(80),A=n(47),I=n(6),l=n(25);function N(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 n=new RegExp(/[^0-9A-Za-z._-]+/g),_=new RegExp(/[\/\?<>\\:\*\|"]/g),i=new RegExp(/[\x00-\x1f\x80-\x9f]/g),s=new RegExp(/^\.+$/),a=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(n,t)).replace(_,t)).replace(i,t)).replace(s,t)).replace(a,t)).replace(E,t)).length>255&&(e=e.substring(0,255)),e}function S(e){if(t.fs.existsSync(e))if(t.fs.lstatSync(e).isDirectory()){let _=t.fs.readdirSync(e,{encoding:"utf8",withFileTypes:!1});for(var n=0;n<_.length;n++)S(t.path.join(e,_[n]));t.fs.rmdirSync(e)}else t.fs.unlinkSync(e)}var u;function P(e){let t={title:"",header:"",value:"",automaticManipulation:u.NONE};return r.isObject(e)&&(t=Object.assign(t,e)),t}function p(e,t,n){let _={method:t,params:n},i=JSON.stringify(_),s=["http://127.0.0.1:8080/rest/"+e,"-H","Accept:application/json","-H","Content-Type:application/json","-H","Expect:","--data","@-"],r=o.spawnSync("curl",s,{input:i}),E=new a.CubisRestResponse(!1);try{E=new a.CubisRestResponse(r)}catch(e){E.rawReturns=e}return E}function d(e,t,n){return _.__awaiter(this,void 0,void 0,function*(){let _=A;return"https"===e&&(_=T),new Promise(function(e,i){let s=_.request(t,function(t){let n=[]
;t.on("data",function(e){n.push(e)}),t.on("end",function(){try{e({headers:t.headers,url:t.url,statusCode:t.statusCode,body:Buffer.concat(n)})}catch(e){i(e)}})});s.on("error",function(e){i(e)}),s.on("timeout",function(){s.abort(),i("Request timeout")}),n&&s.write(n),s.end()})})}function R(e){let t={unit:l.EnumUnit.NONE,decimals:0,d:0,e:0,max:0,min:0,extended:{d:l.createQuantity(),e:l.createQuantity(),max:l.createQuantity(),min:l.createQuantity()},ranges:{1:{d:l.createQuantity(),e:l.createQuantity(),max:l.createQuantity(),min:l.createQuantity()}},activeRangeIndex:"1"};return r.isObject(e)&&r.overwriteExistingAttributes(e,t),t}t.fs=n(29),t.path=n(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 n=[],_=[],i=[];for(let e=0;e<t.length;e++)r.isNumber(Number(t[e]))?n.push(t[e]):r.isString(t[e])?_.push(t[e]):i.push(t[e]);return _=_.sort(),i=i.sort(),(n=(n=n.sort(function(e,t){
return Number(e)-Number(t)})).concat(_)).concat(i)},t.determineNearestNumberInArray=function(e,t){for(let n=0;n<t.length;n++)if(e<t[n])return n<=0?n:e<=t[n]-(t[n]-t[n-1])/2?n-1:n;return t.length-1},t.loadWorkstate_DATA_CONTAINER=function(e){let t=void 0;if(!r.isString(e))return t;let n=p("task/management",I.RestMethodsTASK_MANAGEMENT.getWorkstate,{id:e,workstate:{}});try{t=(t=JSON.parse(n.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 a.CubisRestResponse(!1);let n={DATA_CONTAINER:t};return p("task/management",I.RestMethodsTASK_MANAGEMENT.saveWorkstate,{id:e,workstate:n})},t.loadTaskConfig_DATA_CONTAINER=function(e){let n=e.getGroup(N(54321));if(void 0===n)return;let _=[],i=N(54321)+"/"+t.DYNAMIC_PARAMID_PREQUEL+"DATA_CONTAINER_";for(let e=0;e<n.parameters.length;e++)if(n.parameters[e].type===E.EnumParameterTypes.PARAM_STRING&&n.parameters[e].id.startsWith(i)){
let t=parseInt(n.parameters[e].id.substring(i.length));r.isNumber(t)&&(_[t]=n.parameters[e].value.string)}try{return JSON.parse(_.join())}catch(e){return}},t.storeTaskConfig_DATA_CONTAINER=function(e,n,_){let i=e.getGroup(N(54321));if(_=!!r.isBoolean(_)&&_,void 0===i&&(e.addDynamicGroup({id:N(54321),type:E.EnumParameterTypes.PARAM_GROUP,appearance:E.EnumAppearance.HIDDEN,title:{id:"",args:[]},parameters:[]}),i=e.getGroup(N(54321))),void 0===i)return new a.CubisRestResponse(!1);i.parameters=[];let s=JSON.stringify(n),o=0,T=0;for(;o<s.length;){(T=o+1e5)>s.length&&(T=s.length);let n={id:N(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:s.substring(o,T)},info:{minimum:{length:0},maximum:{length:1e5}}};o=T,i.parameters.push(n),e.updateParameter(n)}return!1===_?p("task/management",I.RestMethodsTASK_MANAGEMENT.updateTask,{
task:JSON.stringify(e.getTask()),errorList:[]}):new a.CubisRestResponse(!0)},t.get_taskConfig_paramGroupID=N,t.getCompliantFilename=c,t.checkFileNameCompliancy=function(e,t){if(c(e)!==e)return!1;t=void 0!==t?t:[];for(let n=0;n<t.length;n++)if(e.includes(t[n]))return!1;return!0},t.getCreateTaskSpecificFolder=function(e,n){let _="",s=e.getTask(),a=e.getParameter("TASK/IDENTIFICATION/NAME"),r=t.fs.readdirSync(n,{encoding:"utf8",withFileTypes:!1}),E=new i.TaskProxy,o=[];try{o=E.getTaskNamesByOrderNumber(s.qappOrderNumber)}catch(e){}for(var T=0;T<r.length;T++)if(r[T].toString().startsWith("_RENAME_TASK_ID_")&&r[T].toString().endsWith(".json")){var A=t.fs.readFileSync(t.path.join(n,r[T]),"utf8");(I=JSON.parse(A))&&I.taskname&&I.foldername&&!o.includes(I.taskname)&&(S(t.path.join(n,I.foldername)),S(t.path.join(n,r[T])))}else if(r[T].toString().startsWith("_TASK_"))try{E.readTask(r[T].toString().substring("_TASK_".length))}catch(e){S(t.path.join(n,r[T]))}if(null==s._id||""==s._id){
let e=Date.now(),i={taskname:a.value.string,foldername:"_RENAME_TASK_ID_"+e};t.fs.writeFileSync(t.path.join(n,"_RENAME_TASK_ID_"+e+".json"),JSON.stringify(i)),_=t.path.join(n,"_RENAME_TASK_ID_"+e)}else for(_=t.path.join(n,"_TASK_"+s._id),T=0;T<r.length;T++)if(r[T].toString().startsWith("_RENAME_TASK_ID_")&&r[T].toString().endsWith(".json")){var I;A=t.fs.readFileSync(t.path.join(n,r[T]),"utf8"),(I=JSON.parse(A))&&I.taskname&&I.foldername&&I.taskname==a.value.string&&(t.fs.existsSync(t.path.join(n,I.foldername))?t.fs.existsSync(_)?(S(t.path.join(n,I.foldername)),S(t.path.join(n,r[T]))):(t.fs.renameSync(t.path.join(n,I.foldername),_),S(t.path.join(n,r[T]))):S(t.path.join(n,r[T])))}return t.fs.existsSync(_)||t.fs.mkdirSync(_),_},t.deleteFileFolderRecursive=S,t.createFolder=function(e){t.fs.existsSync(e)||t.fs.mkdirSync(e)},function(e){e.NONE="NONE",e.INCREMENT="INCREMENT",e.DECREMENT="DECREMENT"}(u=t.EnumIdentifierAutoManipulation||(t.EnumIdentifierAutoManipulation={})),
t.EnumMapIdentifierAutoManipulation={[u.NONE]:"_QAPP_LIB_PARAM_SELECT_OPTION_SID_ON",[u.INCREMENT]:"_QAPP_LIB_PARAM_SELECT_OPTION_SID_ON_AUTO_INC",[u.DECREMENT]:"_QAPP_LIB_PARAM_SELECT_OPTION_SID_ON_AUTO_DEC"},t.getLotIDsParameterID=function(e){r.isNumber(e)||(e=1),e=e;const n=N("_RESERVED_LOT_ID_SETTINGS");return{paramGroupID:n,settingsLockedInfo:n+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_LOT_ID_settingsLocked",mainCounter:n+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_LOT_ID_counter",header:n+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_LOT_ID_"+e.toFixed(0)+"_header",title:n+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_LOT_ID_"+e.toFixed(0)+"_title"}},t.getSampleIDsParameterID=function(e){r.isNumber(e)||(e=1),e=e;const n=N("_RESERVED_SAMPLE_ID_SETTINGS");return{paramGroupID:n,settingsLockedInfo:n+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_SAMPLE_ID_settingsLocked",mainCounter:n+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_SAMPLE_ID_counter",
header:n+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_SAMPLE_ID_"+e.toFixed(0)+"_header",title:n+"/"+t.DYNAMIC_PARAMID_PREQUEL+"RESERVED_SAMPLE_ID_"+e.toFixed(0)+"_title",manipulator:n+"/"+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=s.cloneJSON(e));let n=void 0,_=0;const i=/\d*$/,a=t.value.match(i);switch(null!=a&&a.length>0&&r.isString(a[0])&&(_=a[0].length,n=parseInt(a[0])),t.automaticManipulation){case u.INCREMENT:""===t.value?t.value="001":""===t.value||r.isNumber(n)?""!==t.value&&r.isNumber(n)&&(n++,t.value=t.value.replace(i,n.toFixed(0).padStart(_,"0"))):t.value+="-2";break;case u.DECREMENT:""!==t.value&&r.isNumber(n)&&n>0&&(n--,t.value=t.value.replace(i,n.toFixed(0).padStart(_,"0")))}return t},t.perform_InternalWebserviceRequest=p,t.perform_WebserviceRequest=function(e,t,n,i,s,a,E,o,I,l,N){return _.__awaiter(this,void 0,void 0,function*(){
r.isNumber(t)||(t="http"===n?80:443),r.isNumber(N)||(N=1e4);let _,c={hostname:e,port:t,path:s,method:i,followRedirects:!1,headers:a,timeout:N};I&&l&&(c.auth=I+":"+l),c.agent="https"===n?new T.Agent({host:e,keepAlive:!0,rejectUnauthorized:!1,port:t}):new A.Agent({keepAlive:!0}),E&&void 0!==E&&(o=JSON.stringify(E)),o&&(c.headers["content-length"]=Buffer.byteLength(o));try{_=yield d(n,c,o).then(e=>({isSuccess:!0,error:"",statusCode:e.statusCode,headers:e.headers,body:e.body,url:e.url,metadata:s}))}catch(e){return{isSuccess:!1,error:e,statusCode:0,headers:{},body:void 0,url:c.hostname+c.path,metadata:s}}return _})},t.httpRequest=d,t.getConfiguredPrintProfiles=function(){let e=[];const t=p("profilemanagement",I.RestMethodsPROFILE_MANAGEMENT.getProfiles,{filter:'[{"type":{"ne":"WEIGHING_PROFILE_NAME"}}]',rProfiles:{}});if(t.isSuccess()&&r.isString(t.rawReturns.rProfiles)){const n=JSON.parse(t.rawReturns.rProfiles.toString());for(let t=0;t<n.data.length;t++){
const _=r.getObjectByID(n.data[t].params,"PROFILE/IDENTIFICATION","id");if(r.isObject(_)&&r.isObject(_.parameters)){const i=r.getObjectByID(_.parameters,"PROFILE/IDENTIFICATION/NAME","id");r.isObject(i)&&r.isObject(i.value)&&e.push({id:n.data[t]._id,type:n.data[t].type,title:i.value.string})}}}return e},t.createMetrology=R,t.getMetrology=function(e){let t=R(),n=p("weighing",I.RestMethodsWEIGHING.getParameter,{id:"WEIGHING/METROLOGY/RANGE",rObject:{}}),_="";if(n.isSuccess()&&n.hasOwnProperty("rawReturns")&&n.rawReturns.hasOwnProperty("rObject")&&(n=JSON.parse(n.rawReturns.rObject))&&n.hasOwnProperty("id")&&n.hasOwnProperty("parameters")){let e=r.getObjectByID(n.parameters,"WEIGHING/METROLOGY/RANGE/MAXIMUM");e&&(_=e.value.numbers[0])}const i=p("weighing",I.RestMethodsWEIGHING.getRangeParameters,{parameters:{}});if(!(i.isSuccess()&&i.hasOwnProperty("rawReturns")&&i.rawReturns.hasOwnProperty("parameters")))return t;const s=JSON.parse(i.rawReturns.parameters)
;if(!(s.hasOwnProperty("list")&&Array.isArray(s.list)&&s.list.length>0))return t;const a=r.getObjectByID(s.list,"WEIGHING/METROLOGY/RANGES");if(!r.isObject(a))return t;t.ranges={};for(let n of Object.values(a.parameters)){if(!r.isString(n.id)||!r.isObject(n.parameters))continue;let i="";const s=n.id.split("/");if(0===(i=s[s.length-1]).length)continue;const a={d:l.createQuantity(),e:l.createQuantity(),max:l.createQuantity(),min:l.createQuantity()};let E=r.getObjectByID(n.parameters,"WEIGHING/METROLOGY/RANGES/"+i+"/INTERVAL");E&&(a.d.value=parseFloat(E.value.numbers[0]),a.d.decimals=E.value.decimals,a.d.unit=l.getUnitEnum(E.value.unit.toString())),(E=r.getObjectByID(n.parameters,"WEIGHING/METROLOGY/RANGES/"+i+"/PRECISION"))&&(a.e.value=parseFloat(E.value.numbers[0]),a.e.decimals=E.value.decimals,a.e.unit=l.getUnitEnum(E.value.unit.toString())),(E=r.getObjectByID(n.parameters,"WEIGHING/METROLOGY/RANGES/"+i+"/MINIMUM"))&&(a.min.value=parseFloat(E.value.numbers[0]),
a.min.decimals=E.value.decimals,a.min.unit=l.getUnitEnum(E.value.unit.toString())),(E=r.getObjectByID(n.parameters,"WEIGHING/METROLOGY/RANGES/"+i+"/MAXIMUM"))&&(a.max.value=parseFloat(E.value.numbers[0]),a.max.decimals=E.value.decimals,a.max.unit=l.getUnitEnum(E.value.unit.toString()),_===E.value.numbers[0]&&(t.activeRangeIndex=i)),void 0===e&&(e=a.d.unit),a.d=l.convertToTargetUnit(a.d,e),a.e=l.convertToTargetUnit(a.e,e),a.e.decimals=a.d.decimals,a.min=l.convertToTargetUnit(a.min,e),a.min.decimals=a.d.decimals,a.max=l.convertToTargetUnit(a.max,e),a.max.decimals=a.d.decimals,t.ranges[i]=a}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=p("user",I.RestMethodsUSER_MANAGEMENT.getListRoles,{list:{},start:0,end:-1}),t=[];try{let n=JSON.parse(e.rawReturns.list).data;for(let e=0;e<n.length;e++)t.push({id:n[e]._id,name:r.getObjectByID(n[e].params,"ROLE/NAME").value.string,editable:n[e].editable,locked:n[e].locked})}catch(e){}return t},t.get_device_user=function(){let e={id:"",name:"",display_name:"",description:"",role_id:"",role_name:""},t=p("access",I.RestMethodsACCESS_MANAGEMENT.getCurrentUser,{user:""});try{let n=JSON.parse(t.rawReturns.user);e.id=n._id;let _=r.getObjectByID(n.params,"USER/SETTINGS");e.name=r.getObjectByID(_.parameters,"USER/SETTINGS/LOGINNAME").value.string,e.display_name=r.getObjectByID(_.parameters,"USER/SETTINGS/NAME").value.string,e.description=r.getObjectByID(_.parameters,"USER/SETTINGS/DESCRIPTION").value.string,
e.role_id=r.getObjectByID(_.parameters,"USER/SETTINGS/ROLES").value.selection.id,e.role_name=r.getObjectByID(_.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,n){},t.tryAssign_IQuantity_to_taskParameter=function(e,t,n){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(8),i=n(56),s=n(0),a=n(4),r=n(30),E=n(2);t.WEIGHING_SCREEN_ID="WEIGHING",t.CANCEL_BARBUTTON_ID="BTN_BAR_CANCEL";const o={buttonId:"BARBUTTON/CANCEL",label:{id:"",args:[]},appearance:s.EnumAppearance.HIDDEN};t.WeighingScreen=class extends a.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 _.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 _.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,n){let _=!1;this.text1.value!==e&&(this.text1.value=e,_=!0),t&&this.text1.wildcards.join()!==t.join()&&(this.text1.wildcards=t,_=!0),n?this.text1.color!==n&&(this.text1.color=n,_=!0):this.text1.color&&(this.text1.color=void 0,_=!0),_&&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,n){let _=!1;this.text2.value!==e&&(this.text2.value=e,_=!0),t&&this.text2.wildcards.join()!==t.join()&&(this.text2.wildcards=t,_=!0),n?this.text2.color!==n&&(this.text2.color=n,_=!0):this.text2.color&&(this.text2.color=void 0,_=!0),_&&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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(4);t.AbstractOverlay=class extends i.AbstractScreen{show(){this.publishContent("",'{ "appearance":"'+_.EnumAppearance.ENABLED+'" }'),this.events$.next({type:i.ScreenEventType.SHOW_OVERLAY,id:this.getId()})}hide(){
this.publishContent("",'{ "appearance":"'+_.EnumAppearance.HIDDEN+'" }'),this.events$.next({type:i.ScreenEventType.HIDE_OVERLAY,id:this.getId()})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(3),s=n(12),a=n(4),r=n(11),E=n(2);t.KEYBOARD_SCREEN_ID="PARAMETER_INPUT";t.KeyboardScreen=class{constructor(e,t){this.keyboardObject={appearance:_.EnumAppearance.HIDDEN,param:{}},this.events$=new r.Subject,t?(this.keyboardParam=i.createEmptySelectionParameter(),this.keyboardParam.appearance=_.EnumAppearance.HIDDEN):(this.keyboardParam=i.createEmptyStringParameter(),this.keyboardParam.appearance=_.EnumAppearance.HIDDEN),this.keyboardObject.param=this.keyboardParam,this.mqttHandler=e}setAppearance(e){this.keyboardObject.appearance!==e&&(e!==_.EnumAppearance.HIDDEN&&e!==_.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===_.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 n=!0;return e.id!==t.id&&(n=!1),e.args.join()!==t.args.join()&&(n=!1),n}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){s.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===_.EnumAppearance.ENABLED&&(this.setAppearance(_.EnumAppearance.HIDDEN),this.events$.next({type:a.ScreenEventType.HIDE_OVERLAY,id:this.getId()}))}show(){this.keyboardObject.appearance===_.EnumAppearance.HIDDEN&&(this.setAppearance(_.EnumAppearance.ENABLED),this.events$.next({type:a.ScreenEventType.SHOW_OVERLAY,id:this.getId()}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(97),i=n(99),s=n(100),a=n(30),r=n(101),E=n(102),o="SCREENS/",T="/TABLIST",A="/REQUESTEDTAB",I="/QAPP/";class l{constructor(e,t){this.tabScreenTablistObject=[],
this.tabScreenRequestedObject="",this.tabList=[],this.mqttHandler=e,this.screenId=t,this.tabScreenTopic=o+this.screenId,this.tabScreenTablistTopic=this.tabScreenTopic+T,this.tabScreenRequestedTopic=this.tabScreenTopic+A}publishTabList(){this.mqttHandler.publish(this.tabScreenTablistTopic,JSON.stringify(this.tabScreenTablistObject))}publishRequestedTab(){this.mqttHandler.publish(this.tabScreenRequestedTopic,JSON.stringify(this.tabScreenRequestedObject))}static createFigureTab(e,t,n,i,s){return n.topbuttons=void 0!==s?l.sortTopButtons(s):n.topbuttons,new _.TabFigure(n,e,t,i)}addFigureTab(e,t,n){t.id=e;let _=l.createFigureTab(this.mqttHandler,this.screenId,t,!1,n);return this.tabScreenTablistObject.push(I+_.publishId()),this.tabList.push(_),_}static createGraphTab(e,t,n,_,s){return n.topbuttons=void 0!==s?l.sortTopButtons(s):n.topbuttons,new i.TabGraph(n,e,t,_)}addGraphTab(e,t,n){t.id=e;let _=l.createGraphTab(this.mqttHandler,this.screenId,t,!1,n)
;return this.tabScreenTablistObject.push(I+_.publishId()),this.tabList.push(_),_}static createParamListTab(e,t,n,_,i){return n.topbuttons=void 0!==i?l.sortTopButtons(i):n.topbuttons,new s.TabParamList(n,e,t,_)}addParamListTab(e,t,n){t.id=e;let _=l.createParamListTab(this.mqttHandler,this.screenId,t,!1,n);return this.tabScreenTablistObject.push(I+_.publishId()),this.tabList.push(_),_}static createMenuTab(e,t,n,_,i){return n.topbuttons=void 0!==i?l.sortTopButtons(i):n.topbuttons,new r.TabMenu(n,e,t,_)}static createTableTab(e,t,n,_,i){return n.topbuttons=void 0!==i?l.sortTopButtons(i):n.topbuttons,new E.TabTable(n,e,t,_)}addMenuTab(e,t,n){t.id=e;let _=l.createMenuTab(this.mqttHandler,this.screenId,t,!1,n);return this.tabScreenTablistObject.push(I+_.publishId()),this.tabList.push(_),_}addTableTab(e,t,n){t.id=e;let _=l.createTableTab(this.mqttHandler,this.screenId,t,!1,n);return this.tabScreenTablistObject.push(I+_.publishId()),this.tabList.push(_),_}getTab(e){let t=void 0
;for(let n of this.tabList)n.getTabId()===e&&(t=n);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)=>a.getButtonPriority(e.getButtonId())-a.getButtonPriority(t.getButtonId())).map(e=>`/QAPP/${e.getTopic()}`)}}t.TabApi=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(12),i=n(51),s=n(5),a=n(14),r=n(35),E=n(42),o=n(17),T=n(79),A=n(6),I=n(25);var l,N=n(51);t.Subscription=N.Subscription,t.Observable=N.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"}(l=t.ISelectedWeightDisplayValueDomains||(t.ISelectedWeightDisplayValueDomains={}));const c="WEIGHING_ERROR_UNKNOWN_UNIT_ID";t.WeighingProxy=class extends s.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:l.SELECTED_DOMAIN_UNDEFINED,currentSelectedId:"",lastSelectedApplicationId:""}}createWeightApplication(e,t,n,_,i=!1){if(this.registeredApplications.find(t=>t===e))return this.enableWeightApplication(e,i);{this.body.method=A.RestMethodsWEIGHING.createWeightApplication,this.body.params={id:e,title:t,header:n,isDynamic:_};let a=new s.CubisRestResponse(this.syncRequest());if(a.isSuccess()){try{this.enableWeightApplication(e,i)}catch(e){}this.registeredApplications.push(e)}return a}}enableWeightApplication(e,t){return this.body.method=A.RestMethodsWEIGHING.enableWeightApplication,this.body.params={
id:e,isEnabled:t},new s.CubisRestResponse(this.syncRequest())}enableWeightApplicationBulk(e,t){if(!t){let t=this.getSelectedDisplayValue();if(t){let n=t.lastSelectedApplicationId;if(n){let t=!1;return e.forEach(e=>{e!==n?this.enableWeightApplication(e,!1):t=!0}),void(t&&this.enableWeightApplication(n,!1))}}}e.forEach(e=>{this.enableWeightApplication(e,t)})}selectWeightApplication(e){return this.body.method=A.RestMethodsWEIGHING.selectWeightApplication,this.body.params={id:e},new s.CubisRestResponse(this.syncRequest())}destroyWeightApplication(e){this.body.method=A.RestMethodsWEIGHING.destroyWeightApplication,this.body.params={id:e};let t=new s.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=A.RestMethodsWEIGHING.setButton,this.body.params={name:e,appearance:t},new s.CubisRestResponse(this.syncRequest())}triggerStableWeightBlock(){
return this.body.method=A.RestMethodsWEIGHING.triggerStableWeightBlock,this.body.params={},new s.CubisRestResponse(this.syncRequest())}cancelStableWeightBlock(){return this.body.method=A.RestMethodsWEIGHING.cancelStableWeightBlock,this.body.params={},new s.CubisRestResponse(this.syncRequest())}doZero(e){return this.body.method=A.RestMethodsWEIGHING.doZero,this.body.params={behavior:e},new s.CubisRestResponse(this.syncRequest())}clearTare1(){return this.body.method=A.RestMethodsWEIGHING.clearTare1,this.body.params={},new s.CubisRestResponse(this.syncRequest())}clearTare2(){return this.body.method=A.RestMethodsWEIGHING.clearTare2,this.body.params={},new s.CubisRestResponse(this.syncRequest())}clearTare1AndTare2(){return{clearTare1Response:this.clearTare1(),clearTare2Response:this.clearTare2()}}clearTareAll(){return this.body.method=A.RestMethodsWEIGHING.clearTareAll,this.body.params={},new s.CubisRestResponse(this.syncRequest())}doTare(e){
return this.body.method=A.RestMethodsWEIGHING.doTare,this.body.params={behavior:e},new s.CubisRestResponse(this.syncRequest())}doTare1(e){return this.body.method=A.RestMethodsWEIGHING.doTare1,this.body.params={behavior:e},new s.CubisRestResponse(this.syncRequest())}doTareAuto(e){return this.body.method=A.RestMethodsWEIGHING.doTareAuto,this.body.params={behavior:e},new s.CubisRestResponse(this.syncRequest())}doZeroTareAuto(e){return this.body.method=A.RestMethodsWEIGHING.doZeroTareAuto,this.body.params={behavior:e},new s.CubisRestResponse(this.syncRequest())}setTare1(e){return this.body.method=A.RestMethodsWEIGHING.setTare1,this.body.params={value:e},new s.CubisRestResponse(this.syncRequest())}cancelDoing(){return this.body.method=A.RestMethodsWEIGHING.cancelDoing,this.body.params={},new s.CubisRestResponse(this.syncRequest())}setTare2(e){return this.body.method=A.RestMethodsWEIGHING.setTare2,this.body.params={value:e},new s.CubisRestResponse(this.syncRequest())}setUnit(e,t=!0){
this.body.method=A.RestMethodsWEIGHING.setUnit,this.body.params={unitId:e};let n=new s.CubisRestResponse(this.syncRequest());if(n.isSuccess())return!0;if(n.result===c){if(t){let t=new E.MessageHandlerHelper(new r.MessageHandlerProxy),n=new T.ProfileManagementProxy,_=o.QAppBase.clientSingleton.getWeighingProfileId();t.addMessage(E.EMsgHandlerMsgs.ERR_704_UNIT_UNAVAILABLE,[o.QAppBase.clientSingleton.getTaskName()||"",I.getUnitString(e),_?n.getWeighingProfileName(_):""],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=A.RestMethodsWEIGHING.getParameter,this.body.params={rObject:{},id:e},new s.CubisRestResponse(this.syncRequest())}getParameterIds(){return this.body.method=A.RestMethodsWEIGHING.getParameterIds,this.body.params={rIds:{}},new s.CubisRestResponse(this.syncRequest())}setMinUsp(e){return this.body.method=A.RestMethodsWEIGHING.setMinUsp,
this.body.params={isEnabled:!0,value:a.QuantityParameter.getValue(e),unit:e.unit},new s.CubisRestResponse(this.syncRequest())}setMinWeight(e){return this.body.method=A.RestMethodsWEIGHING.setMinWeight,this.body.params=Object.assign({},e),new s.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=_.last(e.parameters),n=_.head(e.parameters);if(this.metrologyRanges$.next(e),void 0!==t){let e=t.parameters.find(e=>"MAXIMUM"===_.last(e.id.split("/"))),n=t.parameters.find(e=>"INTERVAL"===_.last(e.id.split("/"))),i=t.parameters.find(e=>"PRECISION"===_.last(e.id.split("/")));void 0!==e&&this.metrologyMaximum$.next({maxUnit:e.value.unit,maxValue:a.QuantityParameter.getValue(e),maxDecimals:e.value.decimals}),void 0!==n&&this.highestRangeInterval$.next({intervalUnit:n.value.unit,
intervalValue:a.QuantityParameter.getValue(n),intervalDecimals:n.value.decimals}),void 0!==i&&this.highestRangePrecision$.next({precisionUnit:i.value.unit,precisionValue:a.QuantityParameter.getValue(i),precisionDecimals:i.value.decimals})}if(void 0!==n){let e=n.parameters.find(e=>"MINIMUM"===_.last(e.id.split("/"))),t=n.parameters.find(e=>"INTERVAL"===_.last(e.id.split("/"))),i=n.parameters.find(e=>"PRECISION"===_.last(e.id.split("/")));void 0!==e&&this.metrologyMinimum$.next({minUnit:e.value.unit,minValue:a.QuantityParameter.getValue(e),minDecimals:e.value.decimals}),void 0!==t&&this.lowestRangeInterval$.next({intervalUnit:t.value.unit,intervalValue:a.QuantityParameter.getValue(t),intervalDecimals:t.value.decimals}),void 0!==i&&this.lowestRangePrecision$.next({precisionUnit:i.value.unit,precisionValue:a.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===l.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=A.RestMethodsWEIGHING.insertWeightInvalidation,this.body.params={group:e,topic:t},
new s.CubisRestResponse(this.syncRequest())}removeWeightInvalidation(e,t){return this.body.method=A.RestMethodsWEIGHING.removeWeightInvalidation,this.body.params={group:e,topic:t},new s.CubisRestResponse(this.syncRequest())}setAmbientCondition(e){return this.body.method=A.RestMethodsWEIGHING.setAmbientCondition,this.body.params={ambientConditionId:e},new s.CubisRestResponse(this.syncRequest())}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(35),i=n(3),s=n(62),a=n(17),r=n(78),E="_QAPP_MSG_HANDLER_",o="_TITLE",T="_REASON",A="_SOLUTION";var I;function l(e){return e+"_"+_.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=l,t.isMessageHandlerOkButton=function(e){return e.endsWith(_.MESSAGEHANDLER_OK_BTN_ID)};const N={ERR_702:{errorCode:702,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.USER_CAL,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_EXPLICIT_DELETION,secretType:I.MANUAL},ERR_703:{errorCode:703,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.WARNING,category:_.MessageHandlerCategory.USER_CAL,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},INFO_USERCAL_CAL_OVERALL_PASSED:{errorCode:0,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.INFORMATION,category:_.MessageHandlerCategory.USER_CAL,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},INFO_USERCAL_ERROR_NO_INVALIDATION:{errorCode:0,
type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.USER_CAL,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_704:{errorCode:704,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.TASKID},ERR_710:{errorCode:710,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.WARNING,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},INFO_STARLIMS_CAL_OVERALL_PASSED:{errorCode:0,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.INFORMATION,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_711:{errorCode:711,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,
lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_712:{errorCode:712,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_713:{errorCode:713,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_714:{errorCode:714,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_715:{errorCode:715,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_716:{errorCode:716,
type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_717:{errorCode:717,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_718:{errorCode:718,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.MANUAL},ERR_790:{errorCode:790,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[_.createMessageHandlerButton(l(790))]},ERR_791:{errorCode:791,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,
lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[_.createMessageHandlerButton(l(791))]},ERR_792:{errorCode:792,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[_.createMessageHandlerButton(l(792))]},ERR_793:{errorCode:793,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[_.createMessageHandlerButton(l(793))]},ERR_794:{errorCode:794,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[_.createMessageHandlerButton(l(794))]},ERR_795:{errorCode:795,
type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[_.createMessageHandlerButton(l(795))]},ERR_796:{errorCode:796,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[_.createMessageHandlerButton(l(796))]},ERR_797:{errorCode:797,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_DB_ERROR,buttons:[_.createMessageHandlerButton(l(797))]},ERR_798:{errorCode:798,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.MESSAGE_HANDLER_LIFETIME.UNTIL_USER_ACKNOWLEDGE_WITHOUT_REBOOT_PERSISTENCE,secretType:I.QAPP_RUNTIME_COMM_ERROR},
ERR_799:{errorCode:799,type:_.MESSAGE_HANDLER_MESSAGE_TYPE.ERROR,category:_.MessageHandlerCategory.QAPP,lifetime:_.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 a.QAppBase.clientSingleton.getTaskId();case I.QAPP:return a.QAppBase.clientSingleton.getQAppOrderNumber();case I.QAPP_DB_ERROR:return a.QAppBase.clientSingleton.getQAppOrderNumber()+I.QAPP_DB_ERROR;case I.QAPP_RUNTIME_COMM_ERROR:return a.QAppBase.clientSingleton.getQAppOrderNumber()+I.QAPP_RUNTIME_COMM_ERROR;case I.QAPP_RUNTIME_EXIT_ERROR:return a.QAppBase.clientSingleton.getQAppOrderNumber()+I.QAPP_RUNTIME_EXIT_ERROR;case I.MANUAL:default:return}}addMessage(e,t,n,_){console.log(`messageHandlerHelper::addMessage: ${e}`);let I=i.createEmptyTextStructure(),l=i.createEmptyTextStructure(),c=i.createEmptyTextStructure(),S=0
;0===N[e].errorCode?(I.id=E+e+o,l.id=E+e+T,c.id=E+e+A):S=N[e].errorCode;let u=[];for(799!==N[e].errorCode&&798!==N[e].errorCode||u.push(a.QAppBase.clientSingleton.getQAppOrderNumber()),790!==N[e].errorCode&&791!==N[e].errorCode&&792!==N[e].errorCode&&793!==N[e].errorCode&&794!==N[e].errorCode&&795!==N[e].errorCode&&796!==N[e].errorCode&&797!==N[e].errorCode||(u.push(a.QAppBase.clientSingleton.getQAppOrderNumber()),u.push(a.QAppBase.clientSingleton.getQAppVersion())),void 0!==t&&("string"==typeof t?(u.push("Error"),u.push(t)):s.isError(t)?r.isHttpRestError(t)?(u.push(`${t.name} (HTTP(s)/${t.statusCode})`),u.push(t.message)):(u.push(t.name),u.push(t.message)):u.push(...t));u.length<4;)u.push("");l.args=u;let P=this.buildSecret(N[e].secretType);return void 0!==P&&(n=P),console.log(`messageHandlerHelper::addMessage: add msg handler msg ${S} with secret ${n}`),
this.messageHandlerProxy.addMessage(S,N[e].type,N[e].category,N[e].lifetime,I,l,c,n||"",_||(N[e].buttons?N[e].buttons:void 0),N[e].showMessageInFutureSeconds?N[e].showMessageInFutureSeconds:void 0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(61),s=n(32),a=n(23),r=n(9),E=n(15),o=n(32),T=n(19),A=n(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",l="STATE_ASPECT_CFG_PARAM_EDIT_USER_ACTION",N="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,n){n.payload===I&&this.transition(e,I),n.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,n){n.payload===I&&this.transition(e,I),n.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 n=e.screens[i.PARAM_LIST_SCREENID].getButton(i.FINISH_BUTTON_ID);if(void 0!==n){let i=e.aspects[t.CFG_PARAMS_ASPECT].cfg.isValidFn();n.setAppearance(i?_.EnumAppearance.ENABLED_PRIMARY:_.EnumAppearance.DISABLED)}},_onExit:function(e){},_transTo:{},_transFrom:{
STATE_ASPECT_CFG_PARAM_EDIT_ENTER:function(e,n){let s=e.screens[i.PARAM_LIST_SCREENID];s.readFromTaskhandler(e.aspects[t.CFG_PARAMS_ASPECT].cfg.taskHandler),s.setShowLastVisibleCategory(!1);let a=s.getButton(i.FINISH_BUTTON_ID);if(void 0!==a){let n=e.aspects[t.CFG_PARAMS_ASPECT].cfg.isValidFn();a.setAppearance(n?_.EnumAppearance.ENABLED_PRIMARY:_.EnumAppearance.DISABLED)}s.show()},STATE_ASPECT_CFG_PARAM_EDIT_REENTER:function(e,n){let s=e.screens[i.PARAM_LIST_SCREENID];s.readFromTaskhandler(e.aspects[t.CFG_PARAMS_ASPECT].cfg.taskHandler),s.setShowLastVisibleCategory(!0);let a=s.getButton(i.FINISH_BUTTON_ID);if(void 0!==a){let n=e.aspects[t.CFG_PARAMS_ASPECT].cfg.isValidFn();a.setAppearance(n?_.EnumAppearance.ENABLED_PRIMARY:_.EnumAppearance.DISABLED)}s.show()}},EV_HMI_BTN_CLICKED:function(e,n){n.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),
n.payload.buttonId===i.CANCEL_BUTTON_ID&&e.suspend()},EV_HMI_PARAM_CHANGED:function(e,n){let _=e.aspects[t.CFG_PARAMS_ASPECT].updateTaskParameterGeneric(n.payload.parameter),i=[{guardFn:function(e,t){return void 0===_},nextState:""},{guardFn:function(e,t){return void 0!==_},nextState:l}];this.myHandler(e,i,n)},EV_HMI_PARAM_DETAIL:function(e,n){e.aspects[t.CFG_PARAMS_ASPECT].inspectTaskParameter(n.payload.parameter),this.transition(e,N)}},STATE_ASPECT_CFG_PARAM_INSPECT:{_onEnter:function(e){},_onExit:function(e){},_transTo:{},_transFrom:{},EV_HMI_BTN_CLICKED:function(e,t){t.payload.buttonId===s.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,n){if(n.payload.buttonId===i.CANCEL_BUTTON_ID)e.suspend();else{let _=e.aspects[t.CFG_PARAMS_ASPECT].handleParamUpdateUserActionGeneric(n);"boolean"==typeof _&&_&&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=A.checkGeneralParamRules(e)),
void 0!==t?this.isLastUserActionGenericError=!0:(this.isLastUserActionGenericError=!1,t=this.cfg.updateTaskParameterFn(e)),this.setCurrentParamUpdateUserAction(t);let n=this.client.screens[i.PARAM_LIST_SCREENID].getButton(i.FINISH_BUTTON_ID);return void 0!==n&&n.setAppearance(this.cfg.isValidFn()?_.EnumAppearance.ENABLED_PRIMARY:_.EnumAppearance.DISABLED),t}handleParamUpdateUserActionGeneric(e){console.log("ConfigParamsAspect: handleParamUpdateUserActionGeneric");let t=!1,n=this.getCurrentParamUpdateUserAction();return n?(this.isLastUserActionGenericError&&e.payload.buttonId===a.ParamUpdateUserActionSimpleAccept_OK_BUTTON_ID?(this.isLastUserActionGenericError=!1,t=!0):t=this.cfg.handleParamUpdateUserActionFn(n,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(_.EnumAppearance.HIDDEN);let n=[];for(const t of e.params){let e=new T.default(this.client.mqttHandler,t);e.publish(),n.push(e.getPublishedId())}t.setParams(n),t.show()}parametersEmpty(){let e=this.cfg.taskHandler.getTaskGroupsAndParameters(),t=!0;for(let n of e)for(let e of n.parameters)e.appearance!==_.EnumAppearance.HIDDEN&&(t=!1);return t}}
},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(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 _.bignumber(e).times(i.decPowers(t)).toNumber()}static countDecimals(e){return _.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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let _=n(72);t.STATE_UNINITIALIZED_INTERNAL="STATE_UNINITIALIZED_INTERNAL",t.createFsm=function(e){return new _.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,n){let _;t.some(function(t){return _=t.nextState,t.guardFn(e,n)})&&_&&this.transition(e,_)}})}},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("http")},function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});const _=n(5),i=n(6);t.LocalizerProxy=class extends _.BaseProxy{constructor(){super(...arguments),this.restEndpoint="localizer"}getLanguage(){let e;return this.body.method=i.RestMethodsLOCALIZER.getLanguage,this.body.params={rLanguageId:""},(e=new _.CubisRestResponse(this.syncRequest())).isSuccess()?e.rawReturns.rLanguageId:""}getText(e,t=[]){let n;return this.body.method=i.RestMethodsLOCALIZER.getText,this.body.params={id:e,rText:"",args:t},(n=new _.CubisRestResponse(this.syncRequest())).isSuccess()?n.rawReturns.rText:e}getTexts(e){let t;return this.body.method=i.RestMethodsLOCALIZER.getTexts,this.body.params={textObjects:e,rTexts:""},(t=new _.CubisRestResponse(this.syncRequest())).isSuccess()?JSON.parse(t.rawReturns.rTexts):[]}}},function(e,t){e.exports=require("child_process")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(5),i=n(6);!function(e){e.EVENT_RESTART="restart"
}(t.EnumTaskManagementEvent||(t.EnumTaskManagementEvent={}));class s extends _.CubisRestResponse{constructor(e){super(e)}getErrorList(){return JSON.parse(this.rawReturns.errorList)}}t.TaskValCreaUpdResponse=s;t.TaskProxy=class extends _.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 _.CubisRestResponse(this.syncRequest()),t=JSON.parse(e.rawReturns.taskTemplate)}readTask(e,t=!0){let n,s;if(this.body.method=i.RestMethodsTASK_MANAGEMENT.readTask,this.body.params={document:{},dbId:e,updateOptions:t},!(n=new _.CubisRestResponse(this.syncRequest())).isSuccess())throw new Error("Error reading task with id '"+e+"'");return s=JSON.parse(n.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 s(this.syncRequest())}updateTask(e){return this.body.method=i.RestMethodsTASK_MANAGEMENT.updateTask,this.body.params={task:JSON.stringify(e),errorList:[]},new s(this.syncRequest())}validateTask(e){return this.body.method=i.RestMethodsTASK_MANAGEMENT.validate,this.body.params={task:JSON.stringify(e),errorList:[]},new s(this.syncRequest())}saveWorkstate(e,t){let n;if(this.body.method=i.RestMethodsTASK_MANAGEMENT.saveWorkstate,this.body.params={id:t,workstate:e},!(n=new _.CubisRestResponse(this.syncRequest())).isSuccess())throw new Error("Error saving workstate with id '"+t+"'");return n}deleteWorkstate(e){let t;if(this.body.method=i.RestMethodsTASK_MANAGEMENT.deleteWorkstate,this.body.params={id:e},
!(t=new _.CubisRestResponse(this.syncRequest())).isSuccess())throw new Error("Error deleting workstate with id '"+e+"'");return t}getWorkstate(e){let t,n;if(this.body.method=i.RestMethodsTASK_MANAGEMENT.getWorkstate,this.body.params={id:e,workstate:{}},!(t=new _.CubisRestResponse(this.syncRequest())).isSuccess())throw new Error("Error reading task with id '"+e+"'");return n=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 _.CubisRestResponse(this.syncRequest())).isSuccess())return JSON.parse(t.rawReturns.taskNames);throw new Error("Error getting used taskNames for '"+e+"'")}setTaskEvent(e,t){let n;console.log(`TaskManagementProxy: send event: '${t}'`),this.body.method=i.RestMethodsTASK_MANAGEMENT.setTaskEvent,this.body.params={taskId:e,event:t};try{return(n=new _.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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(27),s=n(1),a=n(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,n)=>!!this.task&&(t.id===e.id&&(this.task.params[n]=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((n,_)=>{if(n.id===t)return n.parameters.some((t,n)=>!(t.id!==e.id||!this.task)&&(this.task.params[_].parameters[n]=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,n=this.splitParamId(e)[0];if(this.task)return this.task.params.find(_=>_.id===n&&(t=_.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(a.DYNAMIC_PARAMID_PREQUEL))return console.log(`GroupId does not start with '${a.DYNAMIC_PARAMID_PREQUEL}'`),!1;if(e.id.includes("/",a.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 n=0;n<this.task.params.length;n++)if(this.task.params[n].id.startsWith(i.TASK_DYNAMIC_ID_GROUPS_PREFIX)||!this.task.params[n].id.startsWith(a.DYNAMIC_PARAMID_PREQUEL)){this.task.params.splice(n,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 n=this.getGroup(t);if(n)return n.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 n=this.getGroup(t);if(n)return n.parameters.unshift(e),!0}return!1}addDynamicParameterInFrontOf(e,t){let n=this.splitParamId(e.id)[0],_=this.splitParamId(t)[0];if(n===_){let _=this.getGroup(n);if(void 0!==_){let n=_.parameters.findIndex(e=>e.id===t);if(-1!==n)return _.parameters.splice(n,0,e),!0}}return console.log("addDynamicParameterInFrontOf - groups of new and existing parameter do not match: "+n+" vs. "+_),!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===_.EnumAppearance.ENABLED||e.data.appearance===_.EnumAppearance.ENABLED_INVALID_CFG)<(t.data.appearance===_.EnumAppearance.ENABLED||t.data.appearance===_.EnumAppearance.ENABLED_INVALID_CFG))return 1;if((e.data.appearance===_.EnumAppearance.ENABLED||e.data.appearance===_.EnumAppearance.ENABLED_INVALID_CFG)>(t.data.appearance===_.EnumAppearance.ENABLED||t.data.appearance===_.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=s.cloneJSON(this.task)).params.filter(e=>e.id.startsWith(a.DYNAMIC_PARAMID_PREQUEL))).forEach(e=>{e.id.startsWith(i.TASK_DYNAMIC_ID_GROUPS_PREFIX)?e.parameters.forEach((e,t)=>{e.appearance=_.EnumAppearance.HIDDEN}):(e.parameters.forEach((e,t)=>{void 0!==e.fixed&&!0!==e.fixed||e.appearance===_.EnumAppearance.HIDDEN||(e.appearance=_.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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(5),i=n(3),s=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 _.BaseProxy{constructor(){super(...arguments),this.restEndpoint="access"}getCurrentUser(){let e,t;return this.body.method=s.RestMethodsACCESS_MANAGEMENT.getCurrentUser,this.body.params={user:""},e=new _.CubisRestResponse(this.syncRequest()),t=JSON.parse(e.rawReturns.user)}getCurrentUserName(e){let t,n=""
;return(t=void 0!==e?e:this.getCurrentUser()).params.find(e=>"USER/SETTINGS"===e.id&&e.parameters.find(e=>"USER/SETTINGS/NAME"===e.id&&(n=e.value.string,!0))),n}getCurrentUserRoles(e){let t;t=void 0!==e?e:this.getCurrentUser();let n=i.createEmptySelectionParameter();return t.params.find(e=>"USER/SETTINGS"===e.id&&e.parameters.find(e=>"USER/SETTINGS/ROLES"===e.id&&(n=e,!0))),n}checkRightsOfCurrentUser(e){let t;return this.body.method=s.RestMethodsACCESS_MANAGEMENT.checkRightsOfCurrentUser,this.body.params={permissionGranted:!1,arrayOfRightsToCheck:e},(t=new _.CubisRestResponse(this.syncRequest())).rawReturns.permissionGranted}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(5),i=n(3),s=n(14),a=n(2),r=n(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 _.CubisRestResponse{constructor(e){super(e)}getPrintItemIdentifier(){return this.rawReturns.printItemIdentifier}}t.ReportingPrintParamResponse=o;t.ReportingProxy=class extends _.BaseProxy{constructor(){super(...arguments),this.restEndpoint="reporting",this._isPrintQueueEmpty=!0}printParameters(e,t,n,_=-1){this.body.method=r.RestMethodsREPORTING.printParameters,this.body.params={
parameters:JSON.stringify(e),category:t,redactable:n,printItemIdentifier:_};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 _.CubisRestResponse(this.syncRequest())}printParametersDirect(e,t,n){return this.body.method=r.RestMethodsREPORTING.printParametersDirect,this.body.params={parameters:JSON.stringify(e),category:t,silent:n},new _.CubisRestResponse(this.syncRequest())}getPrintQueue(){return this.body.method=r.RestMethodsREPORTING.getPrintQueue,this.body.params={printQueue:{}},new _.CubisRestResponse(this.syncRequest())}isPrintQueueEmpty(){let e;this.body.method=r.RestMethodsREPORTING.isPrintQueueEmpty,this.body.params={rResult:!1};try{return!!(e=new _.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 _.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 _.CubisRestResponse(this.syncRequest())}setRedactionStatus(e,t,n){return this.body.method=r.RestMethodsREPORTING.setRedactionStatus,this.body.params={printItemIdentifier:e,redacted:t,reason:n},new _.CubisRestResponse(this.syncRequest())}getAlibiRecord(e){return this.body.method=r.RestMethodsREPORTING.getAlibiRecord,this.body.params={identifier:e,record:""},new _.CubisRestResponse(this.syncRequest())}getAlibiRecordList(e){return this.body.method=r.RestMethodsREPORTING.getAlibiRecordList,this.body.params={identifiers:e,records:[]},new _.CubisRestResponse(this.syncRequest())}
getDateFromAlibi(e){let t;if(e instanceof _.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 n;if(e instanceof _.CubisRestResponse){if(!e.isSuccess())return E.getAlibiListFailed;n=JSON.parse(e.rawReturns.record)}else if("number"==typeof e){let t=this.getAlibiRecord(e);if(!t.isSuccess())return E.wrongAlibiId;n=JSON.parse(t.rawReturns.record)}else n=e;return this.parseMeasureParameterFromAlibiResponse(n,t)}getWeightFromAlibiList(e,t){let n=[],i=[];if(e instanceof _.CubisRestResponse){if(!e.isSuccess())return E.getAlibiListFailed;i=JSON.parse(e.rawReturns.records)}else if(0!==(s=e).length&&"number"!=typeof s[0])i=e;else{let t=this.getAlibiRecordList(e);if(!t.isSuccess())return E.getAlibiListFailed;i=JSON.parse(t.rawReturns.records)}var s
;return i.forEach(e=>{n=[...n,this.parseMeasureParameterFromAlibiResponse(e,t)]}),n}parseMeasureParameterFromAlibiResponse(e,t){let n=i.createEmptyParameterGroupOfGroups();if(null===e)return E.wrongAlibiId;{n.parameters[0].parameters=JSON.parse(e.weighingblock);let _=s.WeightBlockHelper.getMeasureParameter(n,t||a.MqttTopics.WEIGHING_VALUE_NET);return void 0===_?E.wrongTopic:_}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(81),s=n(2),a=1;t.CheckBarGraph=class{constructor(e){this.barGraphStatusObject={appearance:_.EnumAppearance.HIDDEN,areas:i.EnumAreaCount.FOUR_AREAS},this.barGraphValueObject={area:1,perc:0},this.mqttHandler=e}publishValue(){this.mqttHandler.publish(s.MqttTopics.HMI_CHECKBARGRAPH_VALUE,JSON.stringify(this.barGraphValueObject))}publishStatus(){this.mqttHandler.publish(s.MqttTopics.HMI_CHECKBARGRAPH_STATUS,JSON.stringify(this.barGraphStatusObject))}setAppearance(e,t=!0){
this.barGraphStatusObject.appearance!==e&&(e!==_.EnumAppearance.ENABLED&&e!==_.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>=a&&e.area<=(this.barGraphStatusObject.areas===i.EnumAreaCount.FOUR_AREAS?4:6)&&(this.barGraphValueObject=e,t&&this.publishValue())}calc4AreaPerc(e,t,n,_,i,s=!0){let a=1,r=0;return e>0&&(0<e&&e<t?(a=1,r=e/t*100):t<=e&&e<=i?(a=2,r=(e-t)/(i-t)*100):i<e&&e<=n?(a=3,r=(e-i)/(n-i)*100):n<e&&e<=_&&(a=4,r=(e-n)/(_-n)*100)),s&&this.setAreaPerc({area:a,perc:r}),{area:a,perc:r}}calc6AreaPerc(e,t,n,_,i,s,a,r=!0){
let E=1,o=0;return e>0&&(0<e&&e<t?(E=1,o=e/t*100):t<=e&&e<n?(E=2,o=(e-t)/(n-t)*100):n<=e&&e<=a?(E=3,o=(e-n)/(a-n)*100):a<e&&e<=_?(E=4,o=(e-a)/(_-a)*100):_<e&&e<=i?(E=5,o=(e-_)/(i-_)*100):i<e&&e<=s&&(E=6,o=(e-i)/(s-i)*100)),this.setAreaPerc({area:E,perc:o},r),{area:E,perc:o}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(15),i=n(39),s=n(19),a=n(0),r=n(9),E=n(27),o=n(7),T=n(10),A=n(66),I=n(12),l=n(23),N=n(33),c=n(1),S=n(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 u=t.STATE_ASPECT_IDENTIFIER_PREFIX+"_LOT_INPUT_DO",P=t.STATE_ASPECT_IDENTIFIER_PREFIX+"_SID_INPUT_DO";t.IDENTIFIER_MAX_LENGTH_LID_SID_VALUE=A.LID_SID_USER_INPUT_STRING_VALUES,t.IDENTIFIER_MAX_LENGTH_LID_SID_NUMBER_VALUE=15
;const p=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 h extends _.AbstractQAppAspect{constructor(){super(),this.states={STATE_ASPECT_IDENTIFIER_ENTER_LOT_INPUT:{_onEnter:function(e){let n=e.aspects[t.IDENTIFIER_ASPECT];n.inputIdx=0,n.evalLotInput()?(console.log("IdentifierAspect - at least one (more) LID configured"),e.addToEventQueue(new r.ImmediateEvent({from:t.STATE_ASPECT_IDENTIFIER_ENTER_LOT_INPUT,to:u}))):(console.log("IdentifierAspect - no (further) LIDs configured"),e.addToEventQueue(new r.ImmediateEvent({from:t.STATE_ASPECT_IDENTIFIER_ENTER_LOT_INPUT,to:n.cfg.returnState})))},_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,n){
n.payload.from===t.STATE_ASPECT_IDENTIFIER_ENTER_LOT_INPUT&&this.transition(e,n.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,n){console.log("IdentifierAspect - param change in STATE_ASPECT_IDENTIFIER_LOT_INPUT_DO");let _=e.aspects[t.IDENTIFIER_ASPECT];if(n.payload.parameter.id===L+_.inputIdx){let t=N.checkGeneralParamRules(n.payload.parameter),s=n.payload.parameter.value.string;void 0===t?(_.setLotID(_.inputIdx,s),_.inputIdx++,_.evalLotInput()||(console.log("IdentifierAspect - no (further) LIDs configured"),this.transition(e,_.cfg.returnState))):(e.showMessageBox(t.message),_.sPIn_4_identifier.value.string=s,_.client.screens[i.KEYBOARD_SCREEN_ID].setParam(_.sPIn_4_identifier))}},EV_HMI_BTN_CLICKED:function(e,t){t.payload.buttonId===l.ParamUpdateUserActionSimpleAccept_OK_BUTTON_ID&&e.hideMsgBox()}},STATE_ASPECT_IDENTIFIER_ENTER_SID_INPUT:{
_onEnter:function(e){let n=e.aspects[t.IDENTIFIER_ASPECT];n.inputIdx=0,n.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:n.cfg.returnState})))},_onExit:function(e){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,n){n.payload.from===t.STATE_ASPECT_IDENTIFIER_ENTER_SID_INPUT&&this.transition(e,n.payload.to)}},STATE_ASPECT_IDENTIFIER_SID_INPUT_DO:{_onEnter:function(e){},_onExit:function(e){e.screens[i.KEYBOARD_SCREEN_ID].hide();let n=e.aspects[t.IDENTIFIER_ASPECT];n.cfg.autoRememberSIDs&&(n.sIDsPrevSample=n.sIDs)},_transTo:{},_transFrom:{},EV_HMI_PARAM_CHANGED:function(e,n){console.log("IdentifierAspect - param change in STATE_ASPECT_IDENTIFIER_SID_INPUT_DO");let _=e.aspects[t.IDENTIFIER_ASPECT]
;if(n.payload.parameter.id===L+_.inputIdx){let t=N.checkGeneralParamRules(n.payload.parameter),s=n.payload.parameter.value.string;if(void 0===t){_.setSID(_.inputIdx,s);let t=h.getSIDState(_.inputIdx,_.getTaskHandler());if(t===E.EnumSampleIdentifierOptions.ON_AUTO_INC||t===E.EnumSampleIdentifierOptions.ON_AUTO_DEC){let a=t===E.EnumSampleIdentifierOptions.ON_AUTO_INC,r=D(a,n.payload.parameter.value.string);r.success?this.transition(e,_.sIdInputDone()):(_.sPIn_4_identifier.value.string=s,_.client.screens[i.KEYBOARD_SCREEN_ID].setParam(_.sPIn_4_identifier),_.client.showMessageBox(g(a,r.result,!0)))}else this.transition(e,_.sIdInputDone())}else e.showMessageBox(t.message),_.sPIn_4_identifier.value.string=s,_.client.screens[i.KEYBOARD_SCREEN_ID].setParam(_.sPIn_4_identifier)}},EV_HMI_BTN_CLICKED:function(e,n){let _=e.aspects[t.IDENTIFIER_ASPECT];n.payload.buttonId===t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_OK?(e.screens[i.KEYBOARD_SCREEN_ID].show(),
e.hideMsgBox()):n.payload.buttonId===l.ParamUpdateUserActionSimpleAccept_OK_BUTTON_ID?e.hideMsgBox():n.payload.buttonId===t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_YES?(e.hideMsgBox(),this.transition(e,_.sIdInputDone())):n.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=S.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,n,_){let i=[],r=h.getConfiguredLIDCount(_)
;console.log("IdentifierAspect::createLIDParams: create params for "+r+" LIDs");for(let o=1;o<=r;o++){let r=_.getParameter(E.createLIDParamId(o,E.TASK_DYNAMIC_ID_LID_X_PARAM_ID_SUFFIX_TITLE)),T=_.getParameter(E.createLIDParamId(o,E.TASK_DYNAMIC_ID_LID_X_PARAM_ID_SUFFIX_HEADER)),A=S.createEmptyStringParameter();A.id=R+o+(e?"_"+e:""),A.appearance=a.EnumAppearance.HIDDEN,A.title={id:r.value.string,args:[]},A.header={id:T.value.string,args:[]},A.info={minimum:{length:0},maximum:{length:t.IDENTIFIER_MAX_LENGTH_LID_SID_VALUE}},i.push(new s.default(n,A))}return i}static createSIDParams(e,n,_){let i=[],r=h.getConfiguredSIDCount(_);console.log("IdentifierAspect::createSIDParams: create params for "+r+" SIDs");for(let o=1;o<=r;o++){let r=_.getParameter(E.createSIDParamId(o,E.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_TITLE)),T=_.getParameter(E.createSIDParamId(o,E.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_HEADER)),A=S.createEmptyStringParameter();A.id=O+o+(e?"_"+e:""),
A.appearance=a.EnumAppearance.HIDDEN,A.title={id:r.value.string,args:[]},A.header={id:T.value.string,args:[]},A.info={minimum:{length:0},maximum:{length:t.IDENTIFIER_MAX_LENGTH_LID_SID_VALUE}},i.push(new s.default(n,A))}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=S.createEmptyStringParameter(),this.sPIn_4_identifier.id=L,this.sPIn_4_identifier.appearance=a.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),n=this.getTaskHandler().getGroup(E.TASK_DYNAMIC_ID_LID_GROUP_ID),_=this.getTaskHandler().getGroup(E.TASK_DYNAMIC_ID_SID_GROUP_ID);console.log("IdentifierAspect::configure"),I.isEqual(this.cfgGroupCnt,t)&&I.isEqual(this.cfgGroupLID,n)&&I.isEqual(this.cfgGroupSID,_)?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(n),this.cfgGroupSID=c.cloneJSON(_),t&&n&&_&&(console.log("IdentifierAspect::configure - create LID params"),this.sP_4_lotA=h.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=h.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,n,_){
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,!n.length||0===n.length)switch(h.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=n,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),_&&this.client.screens[i.KEYBOARD_SCREEN_ID].show()}static updateAndPublishIDParamStatic(e,t){t&&t.length>0?(e.getValue().value.string=t,e.getValue().appearance=a.EnumAppearance.ENABLED):(e.getValue().value.string="",
e.getValue().appearance=a.EnumAppearance.HIDDEN),e.publish()}static setLotIDsStatic(e,t){for(let n=0;n<t.length;n++)this.updateAndPublishIDParamStatic(t[n],e[n])}setLotIDs(e){this.lotIDs=e,h.setLotIDsStatic(this.lotIDs,this.sP_4_lotA)}setLotID(e,t){this.lotIDs[e]=t,h.updateAndPublishIDParamStatic(this.sP_4_lotA[e],this.lotIDs[e])}static setSIDsStatic(e,t){for(let n=0;n<t.length;n++)h.updateAndPublishIDParamStatic(t[n],e[n])}setSIDs(e,t){this.sIDs=e,this.cfg.autoRememberSIDs||(this.sIDsPrevSample=t),h.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,h.updateAndPublishIDParamStatic(this.sP_4_sidA[e],this.sIDs[e])}static getLotState(e,t){let n=E.EnumLotIdentifierOptions.OFF,_=t.getParameter(E.TASK_DYNAMIC_ID_LID_CNT_PARAM_ID);return e>=0&&e<E.getConfiguredIds(_)&&(n=E.EnumLotIdentifierOptions.ON),console.log("IdentifierAspect::getLotState for idx:"+e+" -> "+n),n}
static getSIDState(e,t){let n=e+1,_=E.EnumSampleIdentifierOptions.OFF,i=t.getParameter(E.TASK_DYNAMIC_ID_SID_CNT_PARAM_ID);return e>=0&&e<E.getConfiguredIds(i)&&(_=t.getParameter(E.createSIDParamId(n,E.TASK_DYNAMIC_ID_SID_X_PARAM_ID_SUFFIX_MODE)).value.selection.id),_}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=h.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 n=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=D(n,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(g(n,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 C;function D(e,n,_=t.IDENTIFIER_MAX_LENGTH_LID_SID_VALUE){console.log("IdentifierAspect - AutoInc/Dec, not first sample > check for number");let i=n.match("^\\d*$");if(i&&void 0!==i[0]){let n;if(console.log("IdentifierAspect - AutoInc, not first sample > inc number"),""===i[0]){if(n=0,!e)return{success:!1,result:{id:C.NONUMBERFOUND,args:[]}}}else{if(i[0].length>t.IDENTIFIER_MAX_LENGTH_LID_SID_NUMBER_VALUE)return{success:!1,result:{id:C.NUMBERTOOLARGE,args:[]}};n=parseInt(i[0],10)}if(e)n++;else{
if(!(n>p))return{success:!1,result:{id:C.LOWERBOUNDARY,args:[]}};n--}let s=n.toFixed(0);return s.length>_?{success:!1,result:{id:C.SIDTOOLARGE,args:[_.toString()]}}:{success:!0,result:s}}{let i=n.match("(.*[\\-_.#\\s])(\\d*)$");if(i&&void 0!==i[2]){let n;if(console.log("IdentifierAspect - AutoInc/Dec, not first sample > inc/dec suffix"),""===i[2]){if(n=0,!e)return{success:!1,result:{id:C.NONUMBERFOUND,args:[]}}}else{if(i[2].length>t.IDENTIFIER_MAX_LENGTH_LID_SID_NUMBER_VALUE)return{success:!1,result:{id:C.NUMBERTOOLARGE,args:[]}};n=parseInt(i[2],10)}if(e)n++;else{if(!(n>p))return{success:!1,result:{id:C.LOWERBOUNDARY,args:[]}};n--}let s=i[1]+n.toFixed();return s.length>_?{success:!1,result:{id:C.SIDTOOLARGE,args:[_.toString()]}}:{success:!0,result:s}}if(console.log("IdentifierAspect - AutoInc, not first sample > add suffix"),e){let e=n+d;return e.length>_?{success:!1,result:{id:C.SIDTOOLARGE,args:[_.toString()]}}:{success:!0,result:e}}return{success:!1,result:{id:C.NOSEPARATORFOUND,
args:[]}}}}function g(e,n,_=!1){let i=[],s=[];return e?_?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:[]}):_?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(n),_&&i.push({id:"_QAPP_LIB_MBOX_TEXT_IDENTIFIER_AUTO_INC_DEC_WARNING_CONTINUE",args:[]}),s=_?[{id:t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_YES,label:{id:"_QAPP_LIB_MBOX_BTN_YES",args:[]},appearance:a.EnumAppearance.ENABLED_SECONDARY},{id:t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_NO,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},appearance:a.EnumAppearance.ENABLED_SECONDARY}]:[{id:t.BTN_ID_ASPECT_IDENTIFIER_AUTO_INC_DEC_WARNING_OK,label:{id:o.EnumFontLabels.OK,args:[]},appearance:a.EnumAppearance.ENABLED_SECONDARY}],{type:T.EnumMessageboxType.WARNING,title:{
id:"_QAPP_LIB_MBOX_TITLE_IDENTIFIER_AUTO_INC_DEC_WARNING",args:[]},textList:i,buttons:s}}t.IdentifierAspect=h,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"}(C=t.IncreaseDecreaseFailEnum||(t.IncreaseDecreaseFailEnum={})),t.increaseDecreaseId=D,t.getWarningNoIdChange=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(103),i=n(12),s=n(59),a=n(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 T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(e,t,n){let _="YYYY-MM-DD",i="HH:mm:ss";switch(console.log("parseDateTimeFormat: for format "+e),e){case r.DATE_FORMAT_CHARTS:_="YYYY-MM-DD",i="HH:mm:ss";break;case r.DATE_FORMAT_DATEFORMAT_LIB:_="yyyy-mm-dd",i="HH:MM:ss"}if(void 0!==t){let n=t.value.selection.text.id;switch(console.log("parseDateTimeFormat: date "+n),n){case E.DD_MM_YYYY_SLASHSEPERATOR:
switch(e){case r.DATE_FORMAT_CHARTS:_="DD/MM/YYYY";break;case r.DATE_FORMAT_DATEFORMAT_LIB:_="dd-mm-yyyy"}break;case E.MM_DD_YYYY_SLASHSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:_="MM/DD/YYYY";break;case r.DATE_FORMAT_DATEFORMAT_LIB:_="mm-dd-yyyy"}break;case E.DD_MM_YYYY_POINTSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:_="DD.MM.YYYY";break;case r.DATE_FORMAT_DATEFORMAT_LIB:_="dd.mm.yyyy"}break;case E.YYYY_MM_DD_MINUSSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:_="YYYY-MM-DD";break;case r.DATE_FORMAT_DATEFORMAT_LIB:_="yyyy-mm-dd"}break;case E.YYYY_MM_DD_DOUBLEPOINTSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:_="YYYY:MM:DD";break;case r.DATE_FORMAT_DATEFORMAT_LIB:_="yyyy:mm:dd"}break;case E.DD_MMM_YYYY_MINUSSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:_="DD-MMM-YYYY";break;case r.DATE_FORMAT_DATEFORMAT_LIB:_="dd-mmm-yyyy"}break;case E.MMM_DD_YYYY_MINUSSEPERATOR:switch(e){case r.DATE_FORMAT_CHARTS:_="MMM-DD-YYYY";break;case r.DATE_FORMAT_DATEFORMAT_LIB:_="mmm.dd.yyyy"}break
;default:_=n}}if(void 0!==n){let t=n.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 s=`${_} ${i}`;return console.log("parseDateTimeFormat: final format "+s),s}function I(e,t){let n=e.toFixed(0);for(;n.length<t;)n="0"+n;return n}function l(){let e=(new _.ClockHandlerProxy).getFormatConfigurationI18n();if(e.isSuccess()){let t,n,s=JSON.parse(e.rawReturns.configuration),a=i.find(s,e=>e.id===_.CLOCKHANDLER_DATEFORMAT_PARAM_ID),r=i.find(s,e=>e.id===_.CLOCKHANDLER_TIMEFORMAT_PARAM_ID);if(void 0!==a){
let e=a.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;n=Object.values(o).includes(e)?e:o.HH_MM_SS_DOUBLEPOINTSEPERATOR}else n=o.HH_MM_SS_DOUBLEPOINTSEPERATOR;return{dateConfiguration:t,timeConfiguration:n}}return{dateConfiguration:E.YYYY_MM_DD_MINUSSEPERATOR,timeConfiguration:o.HH_MM_SS_DOUBLEPOINTSEPERATOR}}function N(e,t){let n,_,i=new Date(e);switch(t.dateConfiguration){case E.DD_MM_YYYY_SLASHSEPERATOR:n=I(i.getDate(),2)+"/"+I(i.getMonth()+1,2)+"/"+I(i.getFullYear(),4);break;case E.MM_DD_YYYY_SLASHSEPERATOR:n=I(i.getMonth()+1,2)+"/"+I(i.getDate(),2)+"/"+I(i.getFullYear(),4);break;case E.DD_MM_YYYY_POINTSEPERATOR:n=I(i.getDate(),2)+"."+I(i.getMonth()+1,2)+"."+I(i.getFullYear(),4);break;case E.YYYY_MM_DD_MINUSSEPERATOR:n=I(i.getFullYear(),4)+"-"+I(i.getMonth()+1,2)+"-"+I(i.getDate(),2);break;case E.YYYY_MM_DD_DOUBLEPOINTSEPERATOR:
n=I(i.getFullYear(),4)+":"+I(i.getMonth()+1,2)+":"+I(i.getDate(),2);break;case E.YYYY_MM_DD_POINTSEPERATOR:n=I(i.getFullYear(),4)+"."+I(i.getMonth()+1,2)+"."+I(i.getDate(),2);break;case E.DD_MMM_YYYY_MINUSSEPERATOR:n=I(i.getDate(),2)+"-"+T[i.getMonth()]+"-"+I(i.getFullYear(),4);break;case E.MMM_DD_YYYY_MINUSSEPERATOR:n=T[i.getMonth()]+"-"+I(i.getDate(),2)+"-"+I(i.getFullYear(),4);break;case E.YYYY_MM_DD_NO_SEPARATOR:n=I(i.getFullYear(),4)+I(i.getMonth()+1,2)+I(i.getDate(),2);break;default:n=I(i.getFullYear(),4)+"-"+I(i.getMonth()+1,2)+"-"+I(i.getDate(),2)}switch(t.timeConfiguration){case o.HH_MM_SS_MINUSSEPERATOR:_=I(i.getHours(),2)+"-"+I(i.getMinutes(),2)+"-"+I(i.getSeconds(),2);break;case o.HH_MM_SS_POINTSEPERATOR:_=I(i.getHours(),2)+"."+I(i.getMinutes(),2)+"."+I(i.getSeconds(),2);break;case o.HH_MM_SS_DOUBLEPOINTSEPERATOR:_=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());_=I(e.hours,2)+":"+I(i.getMinutes(),2)+":"+I(i.getSeconds(),2)+" "+e.ampm;break;case o.HH_MM_SS_NO_SEPARATOR:_=I(i.getHours(),2)+I(i.getMinutes(),2)+I(i.getSeconds(),2);break;default:_=I(i.getHours(),2)+":"+I(i.getMinutes(),2)+":"+I(i.getSeconds(),2)}return{date:n,time:_}}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 n=(new _.ClockHandlerProxy).getFormatConfigurationI18n();if(n.isSuccess()){let s=JSON.parse(n.rawReturns.configuration);t=`${A(e,i.find(s,e=>e.id===_.CLOCKHANDLER_DATEFORMAT_PARAM_ID),i.find(s,e=>e.id===_.CLOCKHANDLER_TIMEFORMAT_PARAM_ID))}`}return t},t.parseDateTimeFormat=A,t.getDateTimeConfiguration=l,t.convertToDateTimeFormat=N,t.getDateTime=function(e,t,n,_,i=!0,r=!0){switch(void 0==n&&(n=Date.now()),a.isNumber(n)||a.isString(n)||(n=0),void 0==_&&(_=a.isString(n)?"iso":"ms"),
void 0==e&&(e="ms"),_){case"ms":n=a.isNumber(n)?n:0;break;case"s":n=a.isNumber(n)?1e3*n:0;break;case"iso":case"isoTimezone":n=a.isString(n)?new Date(n).valueOf():0,n=a.isNumber(n)?n:0}if("ms"===e)return n;if("s"===e)return Math.trunc(n/1e3);if("iso"===e)return new Date(n).toISOString();if("isoTimezone"===e&&(e="frmt",t="yyyy-mm-dd HH:MM:sso"),void 0==t&&(t=l()),0===n&&(n=.1),t.hasOwnProperty("dateConfiguration")){let e=N(n,t),_=i?e.date:"";return _+=r&&""!==_?" ":"",_+=r?e.time:""}if("string"==typeof t.toLowerCase())return s(n,t);{let e=r?"HH:MM:ss":"";return e+=i&&""!==e?" ":"",s(n,e+=i?"dd.mm.yyyy":"")}}},function(e,t){e.exports=require("dateformat")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(3),i=n(1);!function(e){e.WITHOUTIMAGE="withoutImage",e.WITHIMAGEON50="withImageOn50",e.WITHIMAGEON66="withImageOn66",e.SPLITINHALFS="splitInHalfs",e.SPLITINTHIRDS="splitInThirds"}(t.EnumWizardScreenLayout||(t.EnumWizardScreenLayout={}));const s={
text:_.createEmptyTextStructure(),img:""};t.createEmptyWizardScreenContent=function(){return i.cloneJSON(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(8),i=n(0),s=n(22);t.PARAM_LIST_SCREENID="PARAMLIST";var a=n(22);t.CANCEL_BUTTON_ID=a.CANCEL_BUTTON_ID,t.FINISH_BUTTON_ID="BTN_FIN";t.ParameterListScreen=class extends s.default{constructor(e){super(e);let n={};n.label={id:s.CANCEL_BUTTON_NAME,args:[]},n.appearance=i.EnumAppearance.ENABLED_PRIMARY,n.buttonId=s.CANCEL_BUTTON_ID,this.cancelButton=new _.default(e,this,n),n.appearance=i.EnumAppearance.HIDDEN,n.label.id="_FINISH",n.buttonId=t.FINISH_BUTTON_ID,this.finishButton=new _.default(e,this,n)}getId(){return"PARAMLIST"}getButton(e){let n;return n=e===s.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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(3),i=n(7),s=n(0);function a(e){return"string"==typeof e.name&&"string"==typeof e.message}t.ERRORMSGBOX_OK_BTN_ID="BTN_OK_ERRORMSGBOX",t.isError=a,t.createMsgBoxData=function(e,n,r,E,o){let T=[];return a(r)?T.push({id:r.name+":"+r.message,args:[]}):_.isITextStructure(r)?T.push(r):T.push({id:r.error.name+":"+r.error.message,args:r.msgargs}),void 0!==E&&T.push(E),{type:e,title:n,textList:T,buttons:[{id:o||t.ERRORMSGBOX_OK_BTN_ID,label:{id:i.EnumFontLabels.OK,args:[]},appearance:s.EnumAppearance.ENABLED_SECONDARY}]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(8),i=n(0),s=n(10),a=n(4),r=n(11),E=n(2);t.MESSAGEBOX_ID="MESSAGEBOX";class o{constructor(e){this.appearance=i.EnumAppearance.HIDDEN,this.lastPublishedTabContent={appearance:i.EnumAppearance.HIDDEN,type:s.EnumMessageboxType.INFO,title:{id:"",args:[]},text:{id:"",args:[]},textsList:[],buttons:[]},
this.messageBoxObject={appearance:i.EnumAppearance.HIDDEN,type:s.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 _.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 n=this.messageBoxObject.buttons[e];if(console.log("MessageBox: buttonId "+n.effect.params.buttonId),n.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),n=JSON.stringify(this.lastPublishedTabContent);e&&(t!==n&&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:a.ScreenEventType.HIDE_MESSAGEBOX,id:this.getId()}))}show(){this.appearance===i.EnumAppearance.HIDDEN&&(this.setAppearance(i.EnumAppearance.ENABLED),this.events$.next({type:a.ScreenEventType.SHOW_MESSAGEBOX,
id:this.getId()}))}}t.MessageBox=o,t.default=o},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QAppAsyncCallTimeoutErrorName="QAppAsyncCallTimeoutError";class _ extends Error{constructor(e,n,i){super(),this.originalState=e,this.metadata=n,this.name=t.QAppAsyncCallTimeoutErrorName,i&&(this.stack=i),Object.setPrototypeOf(this,_.prototype),this.message="Async call timeout."+(n?` metadata: ${n}`:"")}}t.QAppAsyncCallTimeoutError=_},function(e,t,n){"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){e.exports=require("typeorm")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(8),i=n(0),s=n(22),a=n(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=n(22);t.CANCEL_BUTTON_ID=r.CANCEL_BUTTON_ID;class E extends s.default{constructor(e){super(e),this.buttonList=[],this.title1=Object.assign({},{id:"",args:[]}),this.title2=Object.assign({},{id:"",args:[]});let n=[],_={nameId:"",label:{id:"",args:[]},appearance:i.EnumAppearance.HIDDEN,buttonId:""},r=a.cloneJSON(_);r.label.id=s.CANCEL_BUTTON_NAME,r.appearance=i.EnumAppearance.ENABLED_PRIMARY,
r.buttonId=s.CANCEL_BUTTON_ID,n.push(r);let E=a.cloneJSON(_);E.label.id="_SAVE",E.buttonId=t.SAVE_BUTTON_ID,E.appearance=i.EnumAppearance.HIDDEN,n.push(E);let o=a.cloneJSON(_);o.label.id="_PREVIOUS",o.buttonId=t.BACK_BUTTON_ID,o.appearance=i.EnumAppearance.HIDDEN,n.push(o),this.createButtons(n)}createButtons(e){for(let t of e){let e=new _.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()!==s.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,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(75),i=n(11),s=n(76),a=n(26),r=n(20),E=n(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=_.connect(this.mqttOptions),this.startListeningForUpdateEvent(),this.startListeningForAdminEvent(),this.listOfPublishedTopics=[],this.listOfSubscribedTopics=[]}startListeningForUpdateEvent(){this.listeningForUpdateEvent||(this.client.on("message",(e,t,n)=>{let _={topic:e,value:t,packet:n}
;_.topic.startsWith(E.MqttTopics.QAPP_DEBUG_TOPIC_PREAMBLE)?this.mqttUpdateEvent$.next(new r.MqttUpdateDebugEvent(_)):this.mqttUpdateEvent$.next(new r.MqttUpdateEvent(_))}),this.listeningForUpdateEvent=!0)}startListeningForAdminEvent(){this.listeningForAdminEvent||(this.client.on("offline",()=>{this.mqttAdminEvent$.next(new a.MqttAdminEvent({event:"offline",message:"client is offline!"}))}),this.client.on("close",()=>{this.mqttAdminEvent$.next(new a.MqttAdminEvent({event:"close",message:"client has disconnected!"}))}),this.client.on("reconnect",()=>{this.mqttAdminEvent$.next(new a.MqttAdminEvent({event:"reconnect",message:"client is reconnecting!"}))}),this.client.on("error",e=>{this.mqttAdminEvent$.next(new a.MqttAdminEvent({event:"error",message:"client cannot connect or a parsing error occured!",error:e}))}),this.client.on("packetsend",e=>{this.mqttAdminEvent$.next(new a.MqttAdminEvent({event:"packetsend",message:"client send packet!",packet:e}))}),
this.client.on("packetreceive",e=>{this.mqttAdminEvent$.next(new a.MqttAdminEvent({event:"packetreceive",message:"client recieved packet!",packet:e}))}),this.client.on("connect",e=>{this.mqttAdminEvent$.next(new a.MqttAdminEvent({event:"connect",message:"client has successfully connected!",connack:e}))}),this.listeningForAdminEvent=!0)}publish(e,t,n,_){let i,a;"function"==typeof n?(a=n,i=void 0):(i=n,a=_);let r={qos:s.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=>{a&&a(e)})}subscribe(e,t,n){if("object"==typeof e)this.subscribe(e,(e,t)=>{n&&n(e,t)});else{"function"==typeof t&&(n=t,t=void 0);let _={qos:0};Object.assign(_,t),-1===this.listOfSubscribedTopics.indexOf(e)&&this.listOfSubscribedTopics.push(e),
this.client.subscribe(e,_,(e,t)=>{n&&n(e,t)})}}unsubscribe(e,t){this.client.unsubscribe(e,e=>{t&&t(e)})}end(e,t){let n=!1,_=void 0;"function"==typeof e?(n=!1,_=e):"boolean"==typeof e&&(n=e,_=t),this.client.end(n,()=>{_&&_()})}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,n)=>{t(e,n)})}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,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(47),i=n(11),s=n(21),a=n(16),r=n(2),E="/rest/qapp/paramDetail",o="/rest/qapp/paramChanged",T="/rest/qapp/buttonClick",A="/rest/qapp/extern",I=5e3;function l(e,t,n,_,i){e.statusCode=t,void 0!==n&&(e.statusMessage=n),console.log(`RestHandler::finalizeResponse: send ${t} (${n}) response: ${a.inspect(_)}`),void 0===_?e.end():"object"==typeof _?(e.setHeader("Content-Type","application/json"),e.end(JSON.stringify(_,i))):(e.setHeader("Content-Type","plain/text"),e.end(_))}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(A)){let n=e.url.replace(A,"");console.log(`RestHandler: rx extern REST request (${e.method})for URL ${n}`),this.handleRequest(e,_=>{
console.log("RestHandler: rx all data for REST request - create and enqueue event"),t.setTimeout(I);let i={subUrl:n,request:e,body:_,response:t};this.restRequestEvent$.next(new s.RestRequestEvent(i))})}else switch(console.log(`RestHandler: rx internal REST request: ${e.url}`),e.url){case T:"POST"===e.method?this.handleRequest(e,e=>{e.buttonId&&(console.log(`RestHandler::restController received buttonID: ${e.buttonId}`),this.buttonClickEvent$.next(new s.HmiButtonClickedEvent(e)),l(t,200,"Event Accepted and Forwarded","ok"))}):l(t,405,"Method Not Allowed","failure");break;case o:"POST"===e.method?this.handleRequest(e,e=>{e&&(this.paramChangedEvent$.next(new s.HmiParamChangedEvent({parameter:e})),l(t,200,"Event Accepted and Forwarded","ok"))}):l(t,405,"Method Not Allowed","failure");break;case E:"POST"===e.method?this.handleRequest(e,e=>{e&&(this.paramDetailEvent$.next(new s.HmiParamDetailEvent({parameter:e})),l(t,200,"Event Accepted and Forwarded","ok"))
}):l(t,405,"Method Not Allowed","failure");break;default:l(t,404,"Not Found","failure")}else l(t,404,"Not Found","failure")}),this.port=e||8081,this.server=_.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 n,_=[""];e.on("error",t=>{console.log("RestHandler::handleRequest: "+t),e.socket.end()}).on("data",e=>{console.log("RestHandler::handleRequest: data"),"string"!=typeof e?_.push(e.toString()):_.push(e)}).on("end",()=>{if(console.log("RestHandler::handleRequest: end"),n=_.reduce((e,t)=>e+t),"application/json"===e.headers["content-type"])try{t(JSON.parse(n))}catch(e){t(n)}else t(n)})}registerRestEndpoints(e,t){
e.publish(r.MqttTopics.CUSTOMIZED_REST_HANDLER_CONFIGURATION,JSON.stringify(t))}},t.finalizeResponse=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpRestErrorName="HttpRestError";class _ extends Error{constructor(e,n,i,s){super(),this.statusCode=n,this.headers=i,this.body=s,this.name=t.HttpRestErrorName,Object.setPrototypeOf(this,_.prototype),this.message=e}}t.HttpRestError=_,t.isHttpRestError=function(e){return"object"==typeof e&&e.hasOwnProperty("statusCode")&&e.hasOwnProperty("headers")&&e.hasOwnProperty("body")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(5),i=n(0),s=n(6),a="WEIGHING/CONFIGURATION/PROFILE/ZERO_TARE",r=a+"/TARE1",E="ON",o="PROFILE/IDENTIFICATION",T="PROFILE/IDENTIFICATION/NAME";t.ProfileManagementProxy=class extends _.BaseProxy{constructor(){super(...arguments),this.restEndpoint="profilemanagement"}loadProfile(e){return this.body.method=s.RestMethodsPROFILE_MANAGEMENT.loadProfile,
this.body.params={rProfile:"",id:e},new _.CubisRestResponse(this.syncRequest())}isPresetTareEnabled(e){let t;if(e instanceof _.CubisRestResponse)t=JSON.parse(e.rawReturns.rProfile).params;else if("string"==typeof e){let n=this.loadProfile(e);t=JSON.parse(n.rawReturns.rProfile).params}else t=e.params;for(let e of t)if(e.id===a)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 _.CubisRestResponse)t=JSON.parse(e.rawReturns.rProfile).params;else if("string"==typeof e){let n=this.loadProfile(e);t=JSON.parse(n.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===T)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,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(38),s=n(4),a=n(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":"'+_.EnumAppearance.ENABLED+'" }'),this.events$.next({
type:s.ScreenEventType.SHOW_LOADINGSCREEN,id:this.getId()})}hide(){this.publishContent("TEXT",""),this.publishContent("APPEARANCE",'{ "appearance":"'+_.EnumAppearance.HIDDEN+'" }'),this.events$.next({type:s.ScreenEventType.HIDE_LOADINGSCREEN,id:this.getId()})}getMqttTopicBase(){return"~"+a.MqttTopics.HMI_LOADING_MODAL}getId(){return t.LOADING_OVERLAY_ID}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(5),i=n(6);t.DeviceInformationProxy=class extends _.BaseProxy{constructor(){super(...arguments),this.restEndpoint="deviceinformation"}getSerialNo(){let e;return this.body.method=i.RestMethodsDEVICE_INFORMATION.getSerialNoBalance,this.body.params={rString:""},(e=new _.CubisRestResponse(this.syncRequest())).isSuccess()?e.rawReturns.rString:""}getModelName(){let e;return this.body.method=i.RestMethodsDEVICE_INFORMATION.getModelName,this.body.params={rString:""},(e=new _.CubisRestResponse(this.syncRequest())).isSuccess()?e.rawReturns.rString:""}}
},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOCKING_ASPECT="LOCKING_ASPECT"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(8),i=n(0),s=n(10),a=n(4),r=n(11),E=n(2);t.LOCKMESSAGEBOX_ID="LOCKMESSAGEBOX";class o{constructor(e){this.appearance=i.EnumAppearance.HIDDEN,this.lastPublishedTabContent={appearance:i.EnumAppearance.HIDDEN,type:s.EnumMessageboxType.INFO,title:{id:"",args:[]},text:{id:"",args:[]},textsList:[],buttons:[]},this.messageBoxObject={appearance:i.EnumAppearance.HIDDEN,type:s.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 _.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 n=this.messageBoxObject.buttons[e];if(console.log("LockMessageBox: buttonId "+n.effect.params.buttonId),n.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),n=JSON.stringify(this.lastPublishedTabContent)
;e&&(t!==n&&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:a.ScreenEventType.HIDE_LOCKMESSAGEBOX,id:this.getId()}))}show(){this.appearance===i.EnumAppearance.HIDDEN&&(this.setAppearance(i.EnumAppearance.ENABLED),this.events$.next({type:a.ScreenEventType.SHOW_LOCKMESSAGEBOX,id:this.getId()}))}}t.LockMessageBox=o,t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(38),s=n(4),a=n(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":"'+_.EnumAppearance.ENABLED+'" }'),this.events$.next({type:s.ScreenEventType.SHOW_LOCKLOADINGSCREEN,id:this.getId()})}hide(){this.publishContent("TEXT",""),this.publishContent("APPEARANCE",'{ "appearance":"'+_.EnumAppearance.HIDDEN+'" }'),this.events$.next({type:s.ScreenEventType.HIDE_LOCKLOADINGSCREEN,id:this.getId()})}getMqttTopicBase(){return a.MqttTopics.HMI_LOCK_LOADING_MODAL}getId(){return t.LOCK_LOADING_OVERLAY_ID}}},function(e,t){e.exports=require("net")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTime=function(){return Math.trunc(Date.now()/1e3)}},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(28),i=n(91),s=n(3),a=n(21),r=n(20),E=n(9),o=n(26),T=n(8),A=n(96),I=n(19),l=n(31),N=n(36),c=n(58),S=n(104),u=n(39),P=n(37),p=n(105),d=n(7),R=n(5),O=n(54),L=n(106),h=n(1),C=n(2),D=n(0),g=n(6),m=n(25),M=n(13),H=n(34);let f,y=n(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,n,_){return null!=n&&void 0!==n&&e.hasOwnProperty(n)&&null!=e[n]&&void 0!==e[n]?Reflect.get(e,n,_):void 0!==f?new T.Button(f.mqttHandler,f.mainScreen,{buttonId:t.PROXY_BUTTON_DEFAULT_ID,appearance:D.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=N.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=N.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 n=this.perform_InternalWebserviceRequest("deviceinformation",g.RestMethodsDEVICE_INFORMATION.getParameter,{rObject:{},id:"DEVICEINFORMATION/SETUP"});try{let e=JSON.parse(n.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 S.SingleTabButtonBarScreen(this.mqttHandler,[],{buttonId:this.DEFAULT_CANCEL_BTN_ID,appearance:D.EnumAppearance.ENABLED,label:{id:d.EnumFontLabels.CANCEL,args:[]}}),this.registerScreen(this.mainScreen);let t={id:"",appearance:D.EnumAppearance.ENABLED,containerTitle:{id:"",args:[]},title:{id:"",args:[]},topbuttons:[],type:l.EnumTabType.TAB_MENU,menuType:l.TAB_MENU_TYPE_TOPIC,menubuttons:[],scrollToTop:!1};this.mainScreen.setMenuTab(t),this.paramSelectionScreen=new u.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 T.Button(this.mqttHandler,this.weighingScreen,{buttonId:this.IDEXTEND_BUTTON_WEIGHING+t.toFixed(0),appearance:D.EnumAppearance.HIDDEN,label:s.createEmptyTextStructure()}),this.weighingScreenButtons[t].publish(),
e.push("/QAPP/"+this.weighingScreenButtons[t].getTopic());this.mqttHandler.publish(this.weighingScreen.getBarButtonId(),JSON.stringify(e)),this.weighingSplitScreen=new p.WeighingSplitScreen(this.mqttHandler,[]),this.registerScreen(this.weighingSplitScreen),e=[];for(let t=0;t<5;t++)this.weighingSplitScreenButtons[t]=new T.Button(this.mqttHandler,this.weighingSplitScreen,{buttonId:this.IDEXTEND_BUTTON_WEIGHING+"SPLIT"+t.toFixed(0),appearance:D.EnumAppearance.HIDDEN,label:s.createEmptyTextStructure()}),this.weighingSplitScreenButtons[t].publish(),e.push("/QAPP/"+this.weighingSplitScreenButtons[t].getTopic());this.mqttHandler.publish(this.weighingSplitScreen.getBarButtonId(),JSON.stringify(e)),this.tabScreen=new A.TabScreen(this.mqttHandler),this.registerScreen(this.tabScreen)}constructor_states(){this.STATE_FUNCTIONS.forEach(e=>{try{if(""===this[e]())return;let n=JSON.parse(this[e](void 0,"GET_EVENT_LISTENER"))
;n.push(a.EV_HMI_BTN_CLICKED,a.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(n){n[e](this,"onExit");for(const e of Object.values(t.btn))try{n.mqttHandler.publish(e.getTopic(),"")}catch(e){}B={},t.btn=new Proxy(B,G);for(let e=0;e<n.weighingScreenButtons.length;e++)n.weighingScreenButtons[e].setAppearance(D.EnumAppearance.HIDDEN);for(let e=0;e<n.weighingSplitScreenButtons.length;e++)n.weighingSplitScreenButtons[e].setAppearance(D.EnumAppearance.HIDDEN);n.hideBargraph()}},n.includes(a.EV_HMI_BTN_CLICKED)&&(this.STATES[this[e]()].EV_HMI_BTN_CLICKED=function(t,n){t[e](this,n)}),n.includes(a.EV_HMI_PARAM_CHANGED)&&(this.STATES[this[e]()].EV_HMI_PARAM_CHANGED=function(t,n){t[e](this,n)}),n.includes(a.EV_HMI_PARAM_DETAIL)&&(this.STATES[this[e]()].EV_HMI_PARAM_DETAIL=function(t,n){t[e](this,n)}),this.STATES[this[e]()].EV_MQTT_UPDATE=function(t,_){
n.includes(r.EV_MQTT_UPDATE)&&t[e](this,_)},n.includes(E.IMMEDIATE_EVENT)&&(this.STATES[this[e]()].IMMEDIATE_EVENT=function(t,n){t[e](this,n)}),n.includes(a.EV_REST_REQUEST)&&(this.STATES[this[e]()].EV_REST_REQUEST=function(t,n){t[e](this,n)}),n.includes(o.MQTT_ADMIN_EVENT)&&(this.STATES[this[e]()].MQTT_ADMIN_EVENT=function(t,n){t[e](this,n)}),n.includes(o.MQTT_ADMIN_EVENT_PACKET_SENT)&&(this.STATES[this[e]()].MQTT_ADMIN_EVENT_PACKET_SENT=function(t,n){t[e](this,n)}),n.includes(E.SIMPLE_EVENT)&&(this.STATES[this[e]()].SIMPLE_EVENT=function(t,n){t[e](this,n)}),n.includes(E.QAPP_SYNC_CALL_DONE_EVENT)&&(this.STATES[this[e]()].QAPP_SYNC_CALL_DONE_EVENT=function(t,n){t[e](this,n)}),n.includes(E.QAPP_ASYNC_CALL_DONE_EVENT)&&(this.STATES[this[e]()].QAPP_ASYNC_CALL_DONE_EVENT=function(t,n){t[e](this,n)}),n.includes(E.QAPP_ASYNC_CALL_FAIL_EVENT)&&(this.STATES[this[e]()].QAPP_ASYNC_CALL_FAIL_EVENT=function(t,n){t[e](this,n)}),this.STATES[this[e]()].QAPP_TIMER_EVENT=function(t,_){
n.includes(E.QAPP_TIMER_EVENT)&&t[e](this,_)},this.STATES[this[e]()].QAPP_INTERVAL_EVENT=function(t,_){n.includes(E.QAPP_INTERVAL_EVENT)&&t[e](this,_)}}catch(e){}})}adaptFsmStates(e){super.adaptFsmStates(e);for(let n of Object.keys(e)){const _=e[n].EV_MQTT_UPDATE,i=e[n].EV_HMI_BTN_CLICKED,s=e[n].QAPP_TIMER_EVENT,a=e[n].QAPP_INTERVAL_EVENT;e[n].EV_MQTT_UPDATE=function(e,t){void 0!==_&&_.call(this,e,t),t&&t.payload&&t.payload.topic===C.MqttTopics.WEIGHING_VALUE_NET&&e.handleBargraphUpdate(t),e.report_handleReportingMessages(t)},e[n].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[n].QAPP_TIMER_EVENT=function(e,t){void 0!==s&&s.call(this,e,t),
e.report_handleQueuedPrintBlocks(t)},e[n].QAPP_INTERVAL_EVENT=function(e,n){void 0!==a&&a.call(this,e,n),M.isObject(n)&&M.isString(n.payload)&&n.payload===t.PREVENT_AUTO_LOGOUT_INTERVAL_EVENT&&e.preventAutoLogout("justOnce")}}}postInit(){super.postInit(),this.mqttHandler.subscribe(C.MqttTopics.WEIGHING_VALUE_NET),this.mqttHandler.subscribe(C.MqttTopics.REPORTING_PRINTABLE_VALUE),this.mqttHandler.subscribe(C.MqttTopics.MESSAGE_HANDLER_MESSAGE),this.mqttHandler.subscribe(C.MqttTopics.METROLOGY_APPROVED_FOR_VERIFICATION),this.mqttHandler.subscribe(C.MqttTopics.METROLOGY_RANGES)}handleMqttEventsGlobally(e){switch(e.payload.topic){case C.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 C.MqttTopics.METROLOGY_RANGES:return void this.updateMetrology()}}updateMetrology(){return this.Metrology=N.getMetrology(),
this.Metrology.unit!==m.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(C.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 n=this.localizerTextBuffer[e].valueOf();for(let e=0;e<t.length;e++)n=n.replace(new RegExp("%arg"+e.toFixed(0)+"%","g"),t[e]);return n}}return e}preloadTextBuffer(e){let t=[]
;for(let n=0;n<e.length;n++)this.localizerTextBuffer.hasOwnProperty(e[n])||t.push({id:e[n],args:[]});if(t.length<=0)return!0;const n=this.localizerProxy.getTexts(t);if(n.length===e.length){for(let t=0;t<e.length;t++)this.localizerTextBuffer[e[t]]=n[t];return!0}return!1}rejectFastButtonPressSetNextDuration(e){this.rejectFastButtonPress=!0,this.rejectFastButtonPressUntilTimestamp=c.getDateTime("ms")+e}createWeighingScreenButton(e,t,n){let _=s.createEmptyTextStructure();return"string"==typeof t?_.id=t:_=t,_.id=void 0!==_.id?_.id:"",void 0===n&&(n=D.EnumAppearance.ENABLED),this.weighingScreenButtons[e].setAppearance(n),this.weighingScreenButtons[e].setLabel(_),this.weighingScreenButtons[e].publish(),this.weighingScreenButtons[e]}showBargraph(e,t,n,_,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!==n&&(M.isNumber(e)?this.bargraphObject.target=e:this.bargraphObject.target=m.convertToTargetUnit(e,this.Metrology.unit).value,M.isNumber(t)?this.bargraphObject.min1=t:this.bargraphObject.min1=m.convertToTargetUnit(t,this.Metrology.unit).value,M.isNumber(n)?this.bargraphObject.max1=n:this.bargraphObject.max1=m.convertToTargetUnit(n,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!==_&&void 0!==i&&(M.isNumber(_)?this.bargraphObject.min2=_:this.bargraphObject.min2=m.convertToTargetUnit(_,this.Metrology.unit).value,M.isNumber(i)?this.bargraphObject.max2=i:this.bargraphObject.max2=m.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(C.MqttTopics.HMI_CHECKBARGRAPH_STATUS,JSON.stringify({appearance:D.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(C.MqttTopics.HMI_CHECKBARGRAPH_STATUS,JSON.stringify({appearance:D.EnumAppearance.ENABLED,areas:this.bargraphObject.areaCount.toFixed(0)})),this.bargraphObject.updateTimestamp=0,this.bargraphObject.active=!0)}hideBargraph(){this.bargraphObject.active=!1,this.mqttHandler.publish(C.MqttTopics.HMI_CHECKBARGRAPH_STATUS,JSON.stringify({appearance:D.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},n=0,_=0,i=t.value;if(M.isNumber(i)){switch(this.bargraphObject.areaCount){case 4:i<this.bargraphObject.min1?(e.area=1,n=this.bargraphObject.effectiveMinimum,_=this.bargraphObject.min1):i<this.bargraphObject.target?(e.area=2,n=this.bargraphObject.min1,
_=this.bargraphObject.target):i<=this.bargraphObject.max1?(e.area=3,n=this.bargraphObject.target,_=this.bargraphObject.max1):(e.area=4,n=this.bargraphObject.max1,_=this.bargraphObject.effectiveMaximum);break;case 6:i<this.bargraphObject.min2?(e.area=1,n=this.bargraphObject.effectiveMinimum,_=this.bargraphObject.min2):i<this.bargraphObject.min1?(e.area=2,n=this.bargraphObject.min2,_=this.bargraphObject.min1):i<this.bargraphObject.target?(e.area=3,n=this.bargraphObject.min1,_=this.bargraphObject.target):i<=this.bargraphObject.max1?(e.area=4,n=this.bargraphObject.target,_=this.bargraphObject.max1):i<=this.bargraphObject.max2?(e.area=5,n=this.bargraphObject.max1,_=this.bargraphObject.max2):(e.area=6,n=this.bargraphObject.max2,_=this.bargraphObject.effectiveMaximum)}e.perc=(i-n)/Math.abs(_-n)*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(C.MqttTopics.HMI_CHECKBARGRAPH_VALUE,JSON.stringify(e))}this.bargraphObject.updateTimestamp=Date.now()}}createWeighingSplitScreenButton(e,t,n){let _=s.createEmptyTextStructure();return M.isString(t)?_.id=t:_=t,_.id=void 0!==_.id?_.id:"",void 0===n&&(n=D.EnumAppearance.ENABLED),this.weighingSplitScreenButtons[e].setAppearance(n),this.weighingSplitScreenButtons[e].setLabel(_),this.weighingSplitScreenButtons[e].publish(),this.weighingSplitScreenButtons[e]}createParameterButton(e,t){return this.createButton(this.mainScreen,this.IDEXTEND_BUTTON_PARAM,e,t)}createMenuButton(e,t,n){return this.createButton(this.mainScreen,this.IDEXTEND_BUTTON_MENU,e,t,n)}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,n,_,i){
let a=s.createEmptyTextStructure();M.isString(n)?a.id=n:a=n,a.id=void 0!==a.id?a.id:"",void 0===_&&(_=D.EnumAppearance.ENABLED),M.isBoolean(i)||(i=!0);let r=t;r+=((a.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 T.Button(this.mqttHandler,e,{buttonId:r,appearance:_,label:a});return!0===i&&E.publish(),E}showMessageBox(e,t,n,_,i,s){if(M.isObject(e))return void super.showMessageBox(e);if(e=e,void 0===t||void 0===n||!Array.isArray(_))return void console.log("wfRunner: showMessageBox: missing arguments");let a=[];for(let e=0;e<_.length;e++)a[e]={appearance:_[e].getAppearance(),label:_[e].getLabel(),id:_[e].getButtonId()};M.isString(t)&&(t={id:t,args:[]}),t=t;let r=[];if(Array.isArray(n))r=n;else{let e="";M.isString(n)&&(e=this.l(n,!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(s)||(s=1),s=s;let o={type:e,title:t,textList:r,buttons:a,backgroundColor:i};this.messageBoxesCache[s]=o,s>=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=N.sortKeys(this.messageBoxesCache)
;return e.length>0?parseInt(e[e.length-1]):0}setWeighingScreenParams(e,t,n,_,i,s){return this._setWeighingScreenParams(this.weighingScreen,e,t,n,_,i,s)}setWeighingSplitScreenParams(e,t,n,_,i,s){return this._setWeighingScreenParams(this.weighingSplitScreen,e,t,n,_,i,s)}_setWeighingScreenParams(e,t,n,_,i,a,r){let E=s.createEmptyTextStructure();M.isString(n)?E.id=n:E=n;let o=s.createEmptyTextStructure();M.isString(_)?o.id=_:o=_,M.isString(a)||(a=this.QAPP_TOKEN+"_WGHSCR_PARAM_"+t.toFixed()),M.isBoolean(r)||(r=!1);const T=new I.Param(this.mqttHandler,{id:a,header:E,title:o,type:D.EnumParameterTypes.PARAM_STRING,appearance:!0===r?D.EnumAppearance.ENABLED_EDITABLE:D.EnumAppearance.ENABLED,info:{minimum:{length:0},maximum:{length:1/0}},value:{string:i}});return T.publish(),1===t?e.setParam1(T.getPublishedId()):2===t&&e.setParam2(T.getPublishedId()),T}getSplitScreenTabParamList(e){let t={id:this.IDEXTEND_SCREEN+Math.floor(Math.random()*Math.floor(1e6)).toString(),
appearance:D.EnumAppearance.ENABLED,type:l.EnumTabType.TAB_PARAMLIST,containerTitle:s.createEmptyTextStructure(),title:s.createEmptyTextStructure(),topbuttons:[],displayHeader:!1,params:[]};for(var n=0;n<e.length;n++){let _=new I.Param(this.mqttHandler,{id:this.IDEXTEND_PARAM+Math.floor(Math.random()*Math.floor(1e5)).toString(),type:D.EnumParameterTypes.PARAM_STRING,appearance:D.EnumAppearance.ENABLED,value:{string:e[n].value},title:{id:e[n].title,args:[]},header:{id:"",args:[]},info:{maximum:{length:NaN},minimum:{length:NaN}}});_.publish(),t.params.push(_.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 n=this.IDEXTEND_SCREEN+"SPLITSCREEN_"+e.toString(),_=this.weighingSplitScreen.getTabApi().getTab(n)
;_&&void 0!==_||(_=this.addSplitScreenTab(this.IDEXTEND_SCREEN+"SPLITSCREEN_"+e.toString())),(_=_).setTabTitle({id:t,args:[]})}setSplitScreenTabParamList(e,t,n,_,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 a=this.IDEXTEND_SCREEN+"SPLITSCREEN_"+e.toString(),r=this.weighingSplitScreen.getTabApi().getTab(a);r&&void 0!==r||(r=this.addSplitScreenTab(this.IDEXTEND_SCREEN+"SPLITSCREEN_"+e.toString())),r=r;let E=s.createEmptyStringParameter();M.isString(n)?(E.value.string=n,E.info={minimum:{length:NaN},maximum:{length:NaN}}):E=n,E.id=this.IDEXTEND_PARAM+"SPLITSCREEN_"+e.toString()+"_PARAM"+t,E.appearance=D.EnumAppearance.ENABLED,E.title={id:void 0!==_?_:"",args:[]};const o=new I.Param(this.mqttHandler,E);let T=r.getTabParams();T.includes(o.getPublishedId())||T.push(o.getPublishedId()),
r.setTabParams(T),!0===i&&r.publishTabParams()}setSplitScreenTabText(e,t,n){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(),i=this.weighingSplitScreen.getTabApi().getTab(_);i&&void 0!==i||(i=this.addSplitScreenTab(this.IDEXTEND_SCREEN+"SPLITSCREEN_"+e.toString())),i=i;let s=new I.Param(this.mqttHandler,{id:this.IDEXTEND_PARAM+"SPLITSCREEN_"+e.toString()+"_TEXT",type:D.EnumParameterTypes.PARAM_STRING,appearance:D.EnumAppearance.ENABLED,value:{string:t},title:{id:"",args:[]},header:{id:"",args:[]},info:{maximum:{length:NaN},minimum:{length:NaN}}});s.publish();let a=i.getTabParams();a.includes(s.getPublishedId())||a.push(s.getPublishedId()),i.setTabParams(a),void 0!==n&&i.setTabTitle({id:n,args:[]}),i.publishTabParams()}addSplitScreenTab(e,t){let n={id:e,
appearance:D.EnumAppearance.ENABLED,type:l.EnumTabType.TAB_PARAMLIST,containerTitle:s.createEmptyTextStructure(),title:s.createEmptyTextStructure(),topbuttons:[],displayHeader:!1,params:[]};return this.weighingSplitScreen.getTabApi().addParamListTab(e,n),this.weighingSplitScreen.getTabApi().publishTabList(),this.weighingSplitScreen.getTabApi().getTab(e)}_____________________PARAMETER_INPUT__________________(){}openESignature(){return this.hideMostPriorMessageBox(),this.mqttHandler.publish(C.MqttTopics.ESIGNATURE_PERFORM,JSON.stringify({appearance:D.EnumAppearance.ENABLED})),!0}openInputText(e,t,n,_,i){let a=s.createEmptyStringParameter();a.id=e,a.appearance=D.EnumAppearance.ENABLED;let r=s.createEmptyTextStructure();return M.isString(t)?r.id=t:r=t,a.header=r,a.title=r,a.value.string=M.isString(n)?n:"",a.info={minimum:{length:M.isNumber(_)?_:0},maximum:{length:M.isNumber(i)?i:0}},this.mqttHandler.publish(C.MqttTopics.HMI_QAPP_PARAMETER_INPUT,JSON.stringify({
appearance:D.EnumAppearance.ENABLED,param:a})),!0}openInputDateTime(e,t,n,_,i){let a=s.createEmptyDateTimeParameter();a.id=e,a.appearance=D.EnumAppearance.ENABLED;let r=s.createEmptyTextStructure();return M.isString(t)?r.id=t:r=t,a.header=r,a.title=r,a.value.timestamp=M.isNumber(n)?n:c.getDateTime("s",void 0,n,"iso"),a.info={isDate:!M.isBoolean(_)||_,isTime:!M.isBoolean(i)||i},this.mqttHandler.publish(C.MqttTopics.HMI_QAPP_PARAMETER_INPUT,JSON.stringify({appearance:D.EnumAppearance.ENABLED,param:a})),!0}openInputNumber(e,t,n,_,i,a){let r=s.createEmptyQuantityParameter();r.id=e,r.appearance=D.EnumAppearance.ENABLED;let E=s.createEmptyTextStructure();M.isString(t)?E.id=t:E=t,r.header=E,r.title=E;let o={value:0,unit:m.EnumUnit.NONE,decimals:0},T=[];if(M.isNumber(n)?T.push(n.toString()):M.isObject(n)&&(T.push(m.formatQuantityParam_numberOnly(n)),o=n),r.directInput=!0,M.isObject(a)&&a.length>0){a=a;for(let e=0;e<a.length;e++){let t=""
;M.isNumber(a[e])?t=a[e].toString():M.isObject(a[e])&&(t=m.formatQuantityParam_numberOnly(a[e])),T.indexOf(t)>=0||T.push(t)}T.length>1&&(r.directInput=!1)}return r.value={decimals:o.decimals,preferredDecimals:o.decimals,numbers:T,unit:m.getUnitString(o.unit)},(_=M.isNumber(_)?_:-1/0)>(i=M.isNumber(i)?i:1/0)&&(i=1/0),r.info={minimum:{value:_.toString()},maximum:{value:i.toString()}},this.mqttHandler.publish(C.MqttTopics.HMI_QAPP_PARAMETER_INPUT,JSON.stringify({appearance:D.EnumAppearance.ENABLED,param:r})),!0}openInputSelection(e,t,n,_,i){let a,r={id:""},E=[];if(!0===(i=!!M.isBoolean(i)&&i)){a=s.createEmptyMultipleSelectionParameter(),void 0!=_&&M.isString(_)&&(_=[_]);for(let e=0;e<_.length;e++)E.push({id:_[e]})}else a=s.createEmptySelectionParameter(),void 0!=_&&(Array.isArray(_)&&_.length>0&&(_=_[0]),r.id=M.isString(_)?_:"");a.id=e,a.appearance=D.EnumAppearance.ENABLED;let o=s.createEmptyTextStructure();M.isString(t)?o.id=t:o=t,a.header=o,a.title=o;let T=[]
;for(let e=0;e<n.length;e++)if(""!==n[e].id){let t=s.createEmptyTextStructure();M.isString(n[e].text)?t.id=n[e].text:t=n[e].text,null==M.getObjectByID(T,n[e].id)&&T.push({id:n[e].id,text:t,appearance:M.isString(n[e].appearance)?n[e].appearance:D.EnumAppearance.ENABLED})}return a.info={options:T},a.type===D.EnumParameterTypes.PARAM_SELECTION?a.value.selection=r:a.type===D.EnumParameterTypes.PARAM_MULTIPLE_SELECTION&&(a.value.selections=E),this.mqttHandler.publish(C.MqttTopics.HMI_QAPP_PARAMETER_INPUT,JSON.stringify({appearance:D.EnumAppearance.ENABLED,param:a})),!0}parseParamInput(e){let t="";return M.isObject(e)&&M.isString(e.type)&&e.type===a.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===D.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===D.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===D.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===D.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===D.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 n=0;n<e.payload.parameter.value.selections.length;n++)t.push(e.payload.parameter.value.selections[n].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(C.MqttTopics.HMI_QAPP_PARAMETER_INPUT,JSON.stringify({appearance:D.EnumAppearance.HIDDEN,param:{}}))}_____________________EVENT_HANDLING__________________(){}parse_MQTT_Weight(e,t){void 0===t&&(t="any");let n=null;e&&e.payload&&e.payload.value&&(n=JSON.parse(e.payload.value.toString()));let _=!1,i=!1,s=!1,a={value:NaN,unit:m.EnumUnit.NONE,decimals:0,timestamp:c.getDateTime("ms"),deviceserial:this.SERIAL_NUMBER};if(n&&n.alibiId&&n.alibiId>0&&e.payload.topic&&e.payload.topic===C.MqttTopics.REPORTING_PRINTABLE_VALUE){if("STABLE"!==n.state)return null;if(a.alibiId=n.alibiId,n.hasOwnProperty("weightBlock")&&n.weightBlock.length>0&&n.weightBlock[0].hasOwnProperty("value")&&(a.value=parseFloat(n.weightBlock[0].value.number),
M.isNumber(a.value)||(a.info=n.weightBlock[0].value.number),M.isNumber(a.value)&&"-"===n.weightBlock[0].value.sign&&(a.value*=-1),a.decimals=n.weightBlock[0].value.decimals,a.unit=H.UnitEnum_Lib2Api(n.weightBlock[0].value.unit),a.stable=n.weightBlock[0].value.isStable,_=n.weightBlock[0].value.isSpecial,i=n.weightBlock[0].value.isInvalid,s=n.weightBlock[0].value.isWarning,M.isNumber(a.value))){if(a.alibi=m._formatQuantityParam_numberOnly(a.value,a.decimals),M.isNumber(n.weightBlock[0].value.auxiliaryDigits)&&n.weightBlock[0].value.auxiliaryDigits>0){a.auxiliaryDigits=n.weightBlock[0].value.auxiliaryDigits;let e=a.alibi.length-(n.weightBlock[0].value.auxiliaryDigits+(n.weightBlock[0].value.auxiliaryDigits>a.decimals?1:0)),t=a.alibi.substring(0,e)+"[";a.alibi=t+a.alibi.substring(e)+"]"}a.stable&&(a.alibi+=" "+m.getUnitString(a.unit))}}else if(n&&n.id&&n.id==C.MqttTopics.WEIGHING_WEIGHT_BLOCK){
if(n.hasOwnProperty("parameters")&&n.parameters.length>0)for(var r=0;r<n.parameters.length;r++)if(n.parameters[r].id&&n.parameters[r].id==C.MqttTopics.WEIGHING_WEIGHT_BLOCK+"/ORIGINAL"&&n.parameters[r].parameters&&n.parameters[r].parameters.length>0){a.value=parseFloat(n.parameters[r].parameters[0].value.number),M.isNumber(a.value)||(a.info=n.parameters[r].parameters[0].value.number),M.isNumber(a.value)&&"-"===n.parameters[r].parameters[0].value.sign&&(a.value*=-1),a.decimals=n.parameters[r].parameters[0].value.decimals,a.unit=H.UnitEnum_Lib2Api(n.parameters[r].parameters[0].value.unit),a.stable=n.parameters[r].parameters[0].value.isStable,M.isNumber(n.parameters[r].parameters[0].value.auxiliaryDigits)&&n.parameters[r].parameters[0].value.auxiliaryDigits>0&&(a.auxiliaryDigits=n.parameters[r].parameters[0].value.auxiliaryDigits),_=n.parameters[r].parameters[0].value.isSpecial,i=n.parameters[r].parameters[0].value.isInvalid,s=n.parameters[r].parameters[0].value.isWarning;break}
}else n&&n.id&&[C.MqttTopics.WEIGHING_VALUE_NET,C.MqttTopics.WEIGHING_VALUE_GROSS,C.MqttTopics.WEIGHING_VALUE_TARE,C.MqttTopics.WEIGHING_VALUE_TARE1,C.MqttTopics.WEIGHING_VALUE_TARE2].indexOf(n.id)>=0&&n.hasOwnProperty("value")&&(a.value=parseFloat(n.value.number),M.isNumber(a.value)||(a.info=n.value.number),M.isNumber(a.value)&&"-"===n.value.sign&&(a.value*=-1),a.decimals=n.value.decimals,a.unit=H.UnitEnum_Lib2Api(n.value.unit),a.stable=n.value.isStable,M.isNumber(n.value.auxiliaryDigits)&&n.value.auxiliaryDigits>0&&(a.auxiliaryDigits=n.value.auxiliaryDigits),_=n.value.isSpecial,i=n.value.isInvalid,s=n.value.isWarning);return _&&M.isNumber(a.value)&&(a.info=a.value.toString(),a.value=Number.NaN),"any"!==t&&!M.isNumber(a.value)||("valid"===t||"alibi"===t)&&(_||i)?null:"alibi"===t&&(s||void 0===a.alibiId||a.alibiId<0)?null:a}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===C.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,n){return this.report_getKeyValuePair(t,n,e)}report_getValueString(e){return this.report_getKeyValuePair("","",e)}report_getTitleValue(e,t){return this.report_getKeyValuePair("",t,e)}report_getKeyValuePair(e,t,n){let _;return null!=n&&void 0!==n&&""!==n||(n=" "),null!=e&&void 0!==e&&""!==e||(e=" "),(_=M.isString(t)?this.report_getStringParam("",n,e,t):M.isObject(t)&&M.isNumber(t.value)&&M.isNumber(t.decimals)?this.report_getMeasureParam("",n,e,t):this.report_getStringParam("",n,e,"N.A.")).appearance=D.EnumAppearance.ENABLED,_}report_getStringParam(e,t,n,_){
let i=s.createEmptyStringParameter();return null!=t&&void 0!==t&&""!==t||(t=" "),null!=n&&void 0!==n&&""!==n||(n=" "),i.id=e,i.title.id=t,i.header.id=n,i.value.string=_,i.info={minimum:{length:0},maximum:{length:1e6}},i.appearance=D.EnumAppearance.ENABLED,i}report_getDateTimeParam(e,t,n){let _=s.createEmptyDateTimeParameter();return t=M.isString(t)?t.length>0?t:" ":b("_QAPP_LIB_PARAM_TITLE_SAMPLE_DATETIME"),_.id=e,_.title.id=t,_.value.timestamp=n,_.appearance=D.EnumAppearance.ENABLED,_}report_getTextParam(e,t){let n=s.createEmptyTextParameter();return n.id=e,n.info.suppressTitle=!0,n.title.id=" ",n.header.id=" ",n.value.text.id=t,n.appearance=D.EnumAppearance.ENABLED,n}report_getDSDParam(e,t){let n=this.report_getTextParam(e,"WRONG DSD FORMAT"),_=-1;if(M.isNumber(t)?_=t:M.isObject(t)&&M.isNumber(t.value)&&(_=t.alibiId),M.isNumber(_)&&_>0){let t=this.reportingProxy.getAlibiRecord(_)
;n=t.isSuccess()?this.reportingProxy.getWeightFromAlibi(t):this.report_getTextParam(e,"MISSING DSD ENTRY ("+_.toFixed(0)+")")}return n.id=e,n.appearance=D.EnumAppearance.ENABLED,n}report_getDSD_IDParam(e,t){let n=this.report_getTextParam(e,"WRONG DSD FORMAT"),_=-1;return M.isNumber(t)?_=t:M.isObject(t)&&M.isNumber(t.value)&&(_=t.alibiId),M.isNumber(_)&&_>0&&(this.reportingProxy.getAlibiRecord(_).isSuccess()?(n=s.createEmptyAlibiIdentifier()).value.alibiIdentifier=_:n=this.report_getTextParam(e,"MISSING DSD ENTRY ("+_.toFixed(0)+")")),n.id=e,n.appearance=D.EnumAppearance.ENABLED,n}report_getQuantityParam(e,t,n,_){let i=s.createEmptyQuantityParameter();return null!=t&&void 0!==t&&""!==t||(t=" "),null!=n&&void 0!==n&&""!==n||(n=" "),i.id=e,i.title.id=t,i.header.id=n,M.isNumber(_)?(i.value.numbers[0]=_.toFixed(0),i.value.decimals=0,i.value.preferredDecimals=0,i.value.unit=" "):M.isObject(_)&&M.isNumber(_.value)&&(_=_,i.value.numbers[0]=m.formatQuantityParam_numberOnly(_),
i.value.decimals=_.decimals,i.value.preferredDecimals=_.decimals,i.value.unit=" "+m.getUnitString(_.unit)),i.appearance=D.EnumAppearance.ENABLED,i}report_getMeasureParam(e,t,n,_){let i=s.createEmptyMeasureParameter();return null!=t&&void 0!==t&&""!==t||(t=" "),null!=n&&void 0!==n&&""!==n||(n=" "),i.id=e,i.title.id=t,i.header.id=n,M.isNumber(_)?(i.value=s.createEmptyMeasureParameterValue(),i.value.mark=b(n,!0),i.value.sign=_<0?"-":"",i.value.number=_.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(_)&&M.isNumber(_.value)&&(_=_,i.value=s.createEmptyMeasureParameterValue(),i.value.mark=b(n,!0),i.value.sign=_.value<0?"-":"",i.value.number=_.value.toFixed(_.decimals),i.value.decimals=_.decimals,i.value.auxiliaryDigits=void 0!==_.auxiliaryDigits?_.auxiliaryDigits:0,i.value.unit=" "+m.getUnitString(_.unit),i.value.interval=Math.pow(10,-1*_.decimals),
i.value.isStable=void 0!==_.stable&&_.stable,i.value.isSpecial=!1,i.value.isWarning=!1,i.value.isInvalid=!1),i.appearance=D.EnumAppearance.ENABLED,i}report_getCodeParam(e,t,n){let _=s.createEmptyBarcodeParameter();return n=void 0!==n?n:D.EnumBarcodeFormats.QR,_.id=e,_.title.id=" ",_.header.id=" ",_.value.string=t,_.value.format=n,_.appearance=D.EnumAppearance.ENABLED,_}report_enqueuePrintBlock(e,n,_,i,s,a){return M.isBoolean(_)||(_=!1),M.isBoolean(i)||(i=!1),M.isString(s)||(s=""),this.reportingPrintBlocksQueue.push({requestType:"ADD_PRINT_BLOCK",printItemIdentifierMapID:a,printItemIdentifierReference:-1,lines:n,blockHeader:e,redactable:_,timeoutTimestamp:-1,invalidationPreset:i,invalidationPresetComment:s}),!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,n,_){return M.isString(_)||(_=""),this.reportingPrintBlocksQueue.push({requestType:"SET_INVALIDATION",printItemIdentifierMapID:void 0,printItemIdentifierReference:n,lines:[],blockHeader:"",redactable:!0,timeoutTimestamp:-1,invalidationPreset:e,invalidationPresetComment:_}),!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",g.RestMethodsREPORTING.setPathAndFilenameForNextReport,{
path:t+N.getCompliantFilename(e)})}report_printQueue(e,t){return(M.isString(e)||M.isString(t))&&this.report_setupDestinationDirectory(e,t),this.perform_InternalWebserviceRequest("reporting",g.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=h.cloneJSON(this.reportingPrintBlocksQueue[0]);this.reportingQueueActive=!0;let n=new R.CubisRestResponse(!1),_=!1;return"ADD_PRINT_BLOCK"===e.requestType?_=(n=this.reportingProxy.printParameters(e.lines,e.blockHeader,e.redactable)).isSuccess()&&n.rawReturns.printItemIdentifier>=0:"SET_INVALIDATION"===e.requestType&&(_=(n=this.report_setPrintBlockInvalidation(!0,e.printItemIdentifierReference,e.invalidationPresetComment)).isSuccess()),!1===_?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]=n.rawReturns.printItemIdentifier),!0===e.invalidationPreset&&this.report_enqueueInvalidateBlock(!0,n.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,n){let _=-1;return M.isString(t)&&this.reportingPrintItemIdentifierMap.hasOwnProperty(t)?_=this.reportingPrintItemIdentifierMap[t]:M.isNumber(t)&&(_=t),!M.isNumber(_)||_<0?(console.log("wfRunner: call for setRedactionStatus failed due to missing printItemIdentifier"),new R.CubisRestResponse(!1)):(M.isString(n)||(n=""),this.reportingProxy.setRedactionStatus(_,e,n))}report_handleReportingMessages(e){if(M.isObject(e)&&M.isString(e.payload.topic)&&e.payload.topic===C.MqttTopics.MESSAGE_HANDLER_MESSAGE){let n={_id:-1,title:{id:"",args:[]}};try{n=JSON.parse(e.payload.value.toString())}catch(e){return}if(n.title.id.includes("ERROR861_")&&this.reportingPrintBlocksQueue.length>0&&this.messageHandlerProxy.removeMessage(n._id),
n.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(n.title.id.includes("ERROR360_")||n.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),n=e-1e3*t,_=0;for(let e=0;e<t;e++)for(this.heartbeat({message:"busy sleep for a second",value:this.heartbeatCount++}),_=Date.now()+1e3;Date.now()<_;);for(this.heartbeat({message:"busy sleep rest ms",
value:this.heartbeatCount++}),_=Date.now()+n;Date.now()<_;);}preventAutoLogout(e){switch(e){case"justOnce":this.mqttHandler.publish(C.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,n){return N.perform_InternalWebserviceRequest(e,t,n)}perform_WebserviceRequest(e,t,n,i,s,a,r,E,o,T,A){return _.__awaiter(this,void 0,void 0,function*(){return N.perform_WebserviceRequest(e,t,n,i,s,a,r,E,o,T,A)})}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 n of Object.keys(e)){if(!t.hasOwnProperty(n))return!1;if(!this.areEqual(e[n],t[n]))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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;const _=n(43),i=n(92),s=n(52),a=n(93),r=n(45),E=n(9),o=n(57),T=n(14),A=n(26),I=n(1),l=n(2),N=n(0),c="STATE_RECONFIG_DONE",S="STATE_LOT_IDENTIFIER_DONE";t.QAppAdvBase=class extends a.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:_.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?S: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 _.ConfigParamsAspect,this.registerAspect(this.cfgParamAspect),this.resAdvAspect=new i.ResumeAdvancedAspect,this.registerAspect(this.resAdvAspect),this.workflowTaskHandler=new s.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[_.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?S: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===N.EnumParameterTypes.PARAM_QUANTITY&&T.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 n=e[t].MQTT_ADMIN_EVENT;void 0!==n&&(e[t].MQTT_ADMIN_EVENT_CHILD=n),e[t].MQTT_ADMIN_EVENT=function(n,_){let i=!1;try{i=_.payload.event===A.MQTT_ADMIN_EVENT_PACKET_SENT&&_.payload.packet.topic===l.MqttTopics.HMI_LOADING_MODAL_TEXT&&JSON.parse(_.payload.packet.payload.toString()).args[1]===E.QAPP_SYNC_CALL_DONE_EVENT_TYPE.SYNC_CALL_SAVE_WORKSTATE}catch(e){}i&&(n.saveWorkstateIntern(),n.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,n,_)}}}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 n=0;for(;this.initPQIdx<this.workstate.measurementData.samples.length&&(n<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(),n++}}return console.log("QAppAdvBase::initPQ end initPQIdx = "+this.initPQIdx),this.initPQIdx>=this.workstate.measurementData.samples.length}return!0}addSample2PQ(e,t,n){console.log("QAppAdvBase::addSample2PQ"),this.sampleAdded();let _=this.addSample2PQ_withIds(e.identifiers,this.provideSamplePQParams(e),t,n);return this.updateInvalidationAspectSampleConfig({sample:e}),_}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(9),s=n(15),a=n(10),r=n(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",T="BTN_OK",A="BTN_REINIT",I="BTN_CONT";t.ResumeAdvancedAspect=class extends s.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:a.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:T,label:{id:r.EnumFontLabels.OK,args:[]},appearance:_.EnumAppearance.ENABLED_SECONDARY}]})},_onExit:function(e){e.hideMsgBox()},_transTo:{},_transFrom:{},EV_HMI_BTN_CLICKED:function(e,n){n.payload.buttonId===T&&this.transition(e,t.STATE_ASPECT_RESUME_ADV_REINIT_EXIT)}},STATE_ASPECT_RESUME_ADV_QUESTION_CONT:{_onEnter:function(e){e.showMessageBox({type:a.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:A,label:{id:"_QAPP_LIB_MSG_BOX_QUESTION_RESUME_CONTINUE_BTN_REINIT",args:[]},appearance:_.EnumAppearance.ENABLED_SECONDARY},{id:I,label:{id:"_QAPP_LIB_MSG_BOX_QUESTION_RESUME_CONTINUE_BTN_CONTINUE",
args:[]},appearance:_.EnumAppearance.ENABLED_PRIMARY}]})},_onExit:function(e){e.hideMsgBox()},_transTo:{},_transFrom:{},EV_HMI_BTN_CLICKED:function(e,n){n.payload.buttonId===A?this.transition(e,t.STATE_ASPECT_RESUME_ADV_REINIT_EXIT):n.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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(17),i=n(57),s=n(12),a=n(55),r=n(3),E=n(27),o=n(20),T=n(9),A=n(94),I=n(95),l=n(41),N=n(21),c=n(1),S=n(2),u=n(0);t.QAppWorkflowBase=class extends _.QAppBase{constructor(e){super(e),this.takeoverBtnPending=!1,this.lastDisplayValDomain=l.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(S.MqttTopics.HMI_PRINT_HEADER),this.lastDisplayValDomain=l.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===S.MqttTopics.HMI_PRINT_HEADER)try{JSON.parse(e.payload.value.toString()).isPrintHeaderDisplayed||(this.updateTakeoverBtnToLastRequestedAppearance(),this.takeoverBtnPending=!1)}catch(e){}else{if(e instanceof T.QAppTimerEvent&&"TAKEOVER_BTN_TIMER"===e.payload.id)return this.updateTakeoverBtnToLastRequestedAppearance(),void(this.takeoverBtnPending=!1)
;e instanceof N.HmiButtonClickedEvent&&void 0!==this.buttons.takeoverBtn&&e.payload.buttonId===this.buttons.takeoverBtn.getButtonId()&&(this.buttons.takeoverBtn.getAppearance()!==u.EnumAppearance.ENABLED&&this.buttons.takeoverBtn.getAppearance()!==u.EnumAppearance.ENABLED_SECONDARY&&this.buttons.takeoverBtn.getAppearance()!==u.EnumAppearance.ENABLED_PRIMARY||this.lastRequestedTakeoverBtnAppearance!==u.EnumAppearance.ENABLED&&this.lastRequestedTakeoverBtnAppearance!==u.EnumAppearance.ENABLED_SECONDARY&&this.lastRequestedTakeoverBtnAppearance!==u.EnumAppearance.ENABLED_PRIMARY)||super.handleEvent(e)}}notifyTakeOver(e=!1){this.buttons.takeoverBtn&&(this.takeoverBtnPending=!0,this.lastRequestedTakeoverBtnAppearance!==u.EnumAppearance.HIDDEN&&this.buttons.takeoverBtn.setAppearance(u.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===l.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===l.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,a.REPORTING_CATEGORY_INIT,!1)}addLotIds2PQ(e){console.log("QAppWorkflowBase::addLotIds2PQ");let t=[],n=this.identifierAspect.getLotVisualParams().map(e=>c.cloneJSON(e.getValue()));return e.forEach((e,_)=>{i.IdentifierAspect.getLotState(_,this.taskHandler)!==E.EnumLotIdentifierOptions.OFF&&""!==e&&(n[_].value.string=e,n[_].appearance=u.EnumAppearance.ENABLED,t.push(n[_]))}),this.addInitParams2PQ(t)}addSample2PQ_withIds(e,t,n,_){console.log("QAppWorkflowBase::addSample2PQ_withIds")
;let i=[],r=s.remove(t,e=>e.id===I.PARAM_ID_SAMPLE_NO);i.push(...r),i.push(...this.prepSampleIdParams4PQ(e)),r=s.remove(t,e=>e.id===I.PARAM_ID_SAMPLE_DATE),i.push(...r),i.push(...t);let E=this.reportingProxy.printParameters(i,n?a.REPORTING_CATEGORY_COMPONENTS:a.REPORTING_CATEGORY_NONE,_);return this.updateLastSamplePQID(E.getPrintItemIdentifier()),this.updateRemainingDataPQIDs([]),console.log("QAppWorkflowBase::addSample2PQ_withIds: done"),E}prepSampleIdParams4PQ(e){console.log("QAppWorkflowBase::prepSampleIdParams4PQ");let t=[],n=this.identifierAspect.getSIDVisualParams().map(e=>c.cloneJSON(e.getValue()));return e.forEach((e,_)=>{i.IdentifierAspect.getSIDState(_,this.taskHandler)!==E.EnumSampleIdentifierOptions.OFF&&""!==e&&(n[_].value.string=e,n[_].appearance=u.EnumAppearance.ENABLED,t.push(n[_]))}),t}addStatistic2PQ(e,t){if(console.log("QAppWorkflowBase::addStatistic2PQ"),t&&t.getValues().currCalcValues.numSamples>0){let n=[],_=t.getValues().currStatPublishableParameters;if(e){
let t=r.createEmptyTextParameter();t.value.text.id=e,t.info.suppressTitle=!0,n.push(t)}if(_.n.getValue().appearance!==u.EnumAppearance.HIDDEN&&n.push(_.n.getValue()),_.avg.getValue().appearance!==u.EnumAppearance.HIDDEN&&n.push(_.avg.getValue()),_.dev.getValue().appearance!==u.EnumAppearance.HIDDEN&&n.push(_.dev.getValue()),_.variation.getValue().appearance!==u.EnumAppearance.HIDDEN&&n.push(_.variation.getValue()),_.sum.getValue().appearance!==u.EnumAppearance.HIDDEN&&n.push(_.sum.getValue()),_.min.getValue().appearance!==u.EnumAppearance.HIDDEN&&n.push(_.min.getValue()),_.max.getValue().appearance!==u.EnumAppearance.HIDDEN&&n.push(_.max.getValue()),_.diff.getValue().appearance!==u.EnumAppearance.HIDDEN&&n.push(_.diff.getValue()),n.length>0)return this.reportingProxy.printParameters(n,a.REPORTING_CATEGORY_STATISTIC,!1)}}sampleAdded(){console.log("QAppWorkflowBase::sampleAdded"),void 0!==this.buttons.docuButton&&this.buttons.docuButton.setAppearance(u.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===A.INVAL_SAMPLE_ASPECT)return void this.aspects[t].updateCfgSampleOnly(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(9),s=n(15),a=n(10),r=n(39),E=n(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",T="BTN_INVAL_DONT";t.PARAM_ID_RT_INVAL_REASON_INP="PARAM_ID_RT_INVAL_REASON_INP";class A extends s.AbstractQAppAspect{constructor(){
super(),this.states={STATE_ASPECT_INVAL_SAMPLE_ENTER:{_onEnter:function(e){let n=e.aspects[t.INVAL_SAMPLE_ASPECT];void 0!==n.cfg.sample&&n.cfg.sample.valid?e.showMessageBox({type:a.EnumMessageboxType.QUESTION,title:{id:"",args:[]},textList:[{id:"_QAPP_LIB_MSG_BOX_QUESTION_INVALIDATE_TEXT",args:[n.cfg.sample.sampleNo.toString()]}],buttons:[{id:o,label:{id:"_QAPP_LIB_MBOX_BTN_YES",args:[]},appearance:_.EnumAppearance.ENABLED_SECONDARY},{id:T,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},appearance:_.EnumAppearance.ENABLED_SECONDARY}]}):e.addToEventQueue(new i.ImmediateEvent({from:t.STATE_ASPECT_INVAL_SAMPLE_ENTER,to:n.cfg.exitState}))},_onExit:function(e){e.hideMsgBox()},_transTo:{},_transFrom:{},EV_HMI_BTN_CLICKED:function(e,n){let _=e.aspects[t.INVAL_SAMPLE_ASPECT];n.payload.buttonId===T?this.transition(e,_.cfg.exitState):n.payload.buttonId===o&&(void 0!==_.cfg.sample&&(_.cfg.sample.valid=!1),this.transition(e,t.STATE_ASPECT_INVAL_SAMPLE_REASON))},IMMEDIATE_EVENT:function(e,n){
n.payload.from&&n.payload.from===t.STATE_ASPECT_INVAL_SAMPLE_ENTER&&this.transition(e,n.payload.to)}},STATE_ASPECT_INVAL_SAMPLE_REASON:{_onEnter:function(e){e.screens[r.KEYBOARD_SCREEN_ID].hide();let n=e.aspects[t.INVAL_SAMPLE_ASPECT];e.screens[r.KEYBOARD_SCREEN_ID].setParam(n.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,n){console.log("InvalidateSampleAspect - param change in STATE_ASPECT_INVAL_SAMPLE_REASON");let _=e.aspects[t.INVAL_SAMPLE_ASPECT];if(n.payload.parameter.id===t.PARAM_ID_RT_INVAL_REASON_INP){let t=_.cfg.sample;void 0!==t&&(t.invalidationReason=n.payload.parameter.value.string,void 0===_.cfg.samplePrintItemId||isNaN(_.cfg.samplePrintItemId)||e.reportingProxy.setRedactionStatus(_.cfg.samplePrintItemId,!0,t.invalidationReason),void 0!==_.cfg.dependentPrintItemIds&&_.cfg.dependentPrintItemIds.forEach(n=>{
e.reportingProxy.setRedactionStatus(n,!0,t.invalidationReason)})),this.transition(e,_.cfg.exitState)}}}},this.sP_4_InvalReason=A.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=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(1),i=n(0)
;t.PARAM_ID_SAMPLE_NO="QAPP_LIB_SAMPLE_NO";const s={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 a(){return _.cloneJSON(s)}t.getSampleNumberStringParameter=a,t.createSampleNumberStringParameter=function(e){let t=_.cloneJSON(a());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 _.cloneJSON(r)}t.getSampleDateDTParameter=E,t.createSampleDateDTParameter=function(e){let t=_.cloneJSON(E());return t.id=e,t}},function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});const _=n(8),i=n(40),s=n(0),a=n(4),r=n(11),E=n(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:s.EnumAppearance.ENABLED};t.TabScreen=class extends i.TabApi{constructor(e){super(e,t.TAB_SCREEN_ID),this.events$=new r.Subject,this.backButton=new _.Button(this.mqttHandler,this,o)}hide(){this.mqttHandler.publish(E.MqttTopics.HMI_TABBED_SCREEN,'{ "appearance":"'+s.EnumAppearance.HIDDEN+'" }'),this.events$.next({type:a.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":"'+s.EnumAppearance.ENABLED+'" }'),this.events$.next({type:a.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(s.EnumAppearance.HIDDEN)}showBackButton(){this.backButton.setAppearance(s.EnumAppearance.ENABLED)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(18);t.TabFigure=class extends _.TabBase{constructor(e,t,n,_=!1){super(t,n,_),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,n){"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[^\(]*\(([^\)]*)\)[^\{]*\{([^]*)\}/,n=t.match(e);if(n){let e=n[1].split(",").map(function(e){return e.replace(/\s+/,"")});return new Function(...e,n[2])}}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(18),i=n(12);t.TabGraph=class extends _.TabBase{constructor(e,t,n,_=!1){super(t,n,_),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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(18),i=n(31);t.TabParamList=class extends _.TabBase{constructor(e,t,n,_=!1){super(t,n,_),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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(18),i=n(31),s=n(8);t.TabMenu=class extends _.TabBase{
constructor(e,t,n,_=!1){super(t,n,_),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=>s.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=>s.IButtonJsonInterface2IButtonParameterInterface(e))
;throw new Error("TabMenu expected type of tabdata found")}return[]}getTabData(){return this.tabData}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(18),i=n(31);t.TabTable=class extends _.TabBase{constructor(e,t,n,_=!1){super(t,n,_),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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(5),i=n(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 _.BaseProxy{constructor(){super(...arguments),this.restEndpoint="clockHandler"}getFormatConfiguration(){return this.body.method=i.RestMethodsCLOCK_HANDLER.getFormatConfiguration,this.body.params={configuration:""},new _.CubisRestResponse(this.syncRequest())}getFormatConfigurationI18n(){return this.body.method=i.RestMethodsCLOCK_HANDLER.getFormatConfigurationI18n,this.body.params={
configuration:""},new _.CubisRestResponse(this.syncRequest())}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(8),i=n(0),s=n(40),a=n(38),r=n(2);t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID="SINGLETABBUTTONBARSCREEN";t.SingleTabButtonBarScreen=class extends a.AbstractOverlay{constructor(e,t,n){super(e),this.buttonList=[],this.tab=void 0,this.createBarButtons(t),this.publishBarButtons(),this.topLeftButton=new _.Button(this.mqttHandler,this,n),this.publishTopLeftButton()}getTab(){return this.tab}setFigureTab(e,n){let _=s.TabApi.createFigureTab(this.mqttHandler,t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID,e,!0,n);return this.tab=_,_}setGraphTab(e,n){let _=s.TabApi.createGraphTab(this.mqttHandler,t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID,e,!0,n);return this.tab=_,_}setParamListTab(e,n){let _=s.TabApi.createParamListTab(this.mqttHandler,t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID,e,!0,n);return this.tab=_,_}setMenuTab(e,n){
let _=s.TabApi.createMenuTab(this.mqttHandler,t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID,e,!0,n);return this.tab=_,_}setTableTab(e,n){let _=s.TabApi.createTableTab(this.mqttHandler,t.SINGLE_TAB_BUTTON_BAR_SCREEN_ID,e,!0,n);return this.tab=_,_}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 _.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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(37),i=n(40),s=n(2),a=n(4),r=n(8),E=n(30),o=n(56),T=n(0);t.WEIGHING_SPLIT_SCREEN_ID="WEIGHINGSPLIT";const A={buttonId:"BARBUTTON/CANCEL",
label:{id:"",args:[]},appearance:T.EnumAppearance.HIDDEN};t.WeighingSplitScreen=class extends a.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,A),this.tabApi=new i.TabApi(e,this.getId())}getId(){return t.WEIGHING_SPLIT_SCREEN_ID}getTabApi(){return this.tabApi}getBarButtonId(){return s.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(s.MqttTopics.QAPP_NAMESPACE+"/"+t.getTopic());this.mqttHandler.publish(this.getBarButtonId(),JSON.stringify(e))}setText1(e,t){let n=!1
;this.text1.value!==e&&(this.text1.value=e,n=!0),t&&this.text1.wildcards.join()!==t.join()&&(this.text1.wildcards=t,n=!0),n&&this.publishText1()}compareButtonBarButtons(e,t){return E.getButtonPriority(e.buttonId)-E.getButtonPriority(t.buttonId)}publishText1(){this.mqttHandler.publish(s.MqttTopics.HMI_WEIGHINGSPLIT_SCREEN_INSTRUCTION1,JSON.stringify(this.text1),{retain:!0})}publishText2(){this.mqttHandler.publish(s.MqttTopics.HMI_WEIGHINGSPLIT_SCREEN_INSTRUCTION2,JSON.stringify(this.text2),{retain:!0})}setText2(e,t){let n=!1;this.text2.value!==e&&(this.text2.value=e,n=!0),t&&this.text2.wildcards.join()!==t.join()&&(this.text2.wildcards=t,n=!0),n&&this.publishText2()}publishTitle(){this.title?this.mqttHandler.publish(s.MqttTopics.HMI_WEIGHINGSPLIT_SCREEN_TITLE,JSON.stringify(this.title),{retain:!0}):this.mqttHandler.publish(s.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(s.MqttTopics.HMI_WEIGHINGSPLIT_SCREEN_PARAM1_TOPIC,JSON.stringify(this.param1),{retain:!0})}publishParam2(){this.mqttHandler.publish(s.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===_.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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;const _=n(5),i=n(3),s=n(48),a=n(3),r=n(0),E=n(12),o=n(58),T=n(6);var A;!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__"}(A=t.EnumAuditTrailModule||(t.EnumAuditTrailModule={}));const I="QAPP_AUDITTRAIL_ENTRY_TASK_NAME";t.AuditTrailProxy=class extends _.BaseProxy{constructor(){super(...arguments),this.restEndpoint="audit"}addEventWithParameters(e,t,n,_=""){let o=new s.LocalizerProxy,T=E.flatten(n.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&&(T=[...T,{id:"GLP_TASK_NAME_TITLE",args:[]},{id:"GLP_TASK_NAME_HEADER",args:[]}]);let l=o.getTexts(T),N=0;for(let e of n)e.title.id=l[N++],e.title.args=[],e.header.id=l[N++],e.header.args=[],i.isTypeOfITextParameter(e)&&(e.value.text.id=l[N++],e.value.text.args=[]);if("object"==typeof t){let e=a.createEmptyTextParameter();e.appearance=r.EnumAppearance.ENABLED,e.id=I,e.title.id=l[N++],e.header.id=l[N++],e.value.text.id=t.getTaskName()||"---",n=[e,...n],t=A.QAPP}else if(t===A.QAPP)throw new Error("AuditTrailProxy::addEventWithParameters called with QAPP module enum but no QApp instance given.");let c=JSON.stringify(this.convertToEventParameters(n));return console.log(`AuditTrailProxy: send operation string: ' ${c}'`),this.addEventInternal(e,t,c,_)}addEvent(e,t,n,_=!1,i=""){let s
;return _?(s=a.createEmptyStringParameter()).value.string=n:((s=a.createEmptyTextParameter()).value.text.id=n,s.info.suppressTitle=!0),s.id=I,s.appearance=r.EnumAppearance.ENABLED,s.title.id="AUDITTRAIL_TITLE_NONE",s.header.id="AUDITTRAIL_HEADER_NONE",this.addEventWithParameters(e,t,[s],i)}addEventInternal(e,t,n,i=""){let s;this.body.method=T.RestMethodsAUDITTRAIL.addEventExt,this.body.params={auditTrailEvent:e,moduleName:t,operation:n,destination:i};try{return(s=new _.CubisRestResponse(this.syncRequest())).isSuccess()}catch(e){return console.log("Something went wrong when calling addEventExt"),console.log(e),!1}}convertToEventParameters(e){let t=new s.LocalizerProxy;return Array.from(e,e=>{let n=a.createEmptyTextParameter();switch(n.appearance=e.appearance,n.id=e.id,n.title=e.title,n.header=e.header,e.type){case r.EnumParameterTypes.PARAM_STRING:n.value.text.id=e.value.string;break;case r.EnumParameterTypes.PARAM_SELECTION:{
const _=e.value.selection.id,i=e.info.options.find(e=>e.id===_),s=void 0!==i?t.getText(i.text.id,i.text.args):"---";n.value.text.id=s;break}case r.EnumParameterTypes.PARAM_MULTIPLE_SELECTION:{const _=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(_);n.value.text.id=i.join(", ");break}case r.EnumParameterTypes.PARAM_QUANTITY:{const t=e.value;n.value.text.id=`${t.numbers[0]} ${t.unit}`;break}case r.EnumParameterTypes.PARAM_MEASURE:{const t=e.value;n.value.text.id=`${t.sign} ${t.number} ${t.unit}`;break}case r.EnumParameterTypes.PARAM_DATE_TIME:{const t=1e3*e.value.timestamp,{isDate:_,isTime:i}=e.info,s=o.getDateTimeConfiguration(),a=o.convertToDateTimeFormat(t,s);n.value.text.id=_&&!i?`${a.date}`:!_&&i?`${a.time}`:_&&i?`${a.date} ${a.time}`:"---";break}case r.EnumParameterTypes.PARAM_FORMULA:n.value.text.id=e.value[0].visual;break;case r.EnumParameterTypes.PARAM_TEXT:n.value=e.value;break
;default:n.value.text.id="---"}return n})}getRecords(e){let t;if(this.body.method=T.RestMethodsAUDITTRAIL.getRecords,this.body.params=e,this.body.params.document="",(t=new _.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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(108),i=n(60),s=n(13),a=n(7);var r,E,o,T,A,I,l,N,c,S,u,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"}(T=t.EnumConfigCleanMode||(t.EnumConfigCleanMode={})),t.EnumMapConfigCleanMode={[T.BASIC]:"_QAPP514_PARAMVAL_CLEANMODE_STANDARD",[T.ADVANCED]:"_QAPP514_PARAMVAL_CLEANMODE_ADVANCED",[T.NO_MATTER]:"NO_MATTER"},t.EnumMapConfigDescription={[T.BASIC]:"_QAPP514_DESCRIPTION_STANDARD",[T.ADVANCED]:"_QAPP514_DESCRIPTION_EXTENDED",[T.NO_MATTER]:"NO_MATTER"},function(e){e.NONE="NONE",e.MANUAL="MANUAL",e.MOTORIC="MOTORIC"}(A=t.EnumConfigDraftshieldControl||(t.EnumConfigDraftshieldControl={})),t.EnumMapConfigDraftshieldControl={
[A.NONE]:"_QAPP514_PARAMVAL_DS_TYPE_NONE",[A.MANUAL]:"_QAPP514_PARAMVAL_DS_CONTROL_MANUAL",[A.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"}(l=t.EnumConfigCorpus||(t.EnumConfigCorpus={})),t.EnumMapCorpus={[l.ULTRA_MICRO]:"_QAPP514_PARAMVAL_CORPUS_ULTRAMICRO",[l.MICRO]:"_QAPP514_PARAMVAL_CORPUS_MICRO",[l.ANALYTICAL]:"_QAPP514_PARAMVAL_CORPUS_ANALYTICAL",[l.FRAMED_PRECISION]:"_QAPP514_PARAMVAL_CORPUS_FRAMED_PRESITION",[l.PRECISION]:"_QAPP514_PARAMVAL_CORPUS_PRESITION",[l.HIGH_CAPACITY]:"_QAPP514_PARAMVAL_CORPUS_HIGH_CAPACITY",[l.HIGH_CAPACITY_ROUND]:"_QAPP514_PARAMVAL_CORPUS_HIGH_CAPACITY_ROUND",[l.FUSION]:"_QAPP514_PARAMVAL_CORPUS_FUSION",
[l.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"}(N=t.EnumConfigDraftshieldType||(t.EnumConfigDraftshieldType={})),t.EnumMapConfigDraftshieldType={[N.NONE]:"_QAPP514_PARAMVAL_DS_TYPE_NONE",[N.SMALL_LIWI]:"_QAPP514_PARAMVAL_DS_TYPE_SMALL_LIWI",[N.LIWI]:"_QAPP514_PARAMVAL_DS_TYPE_LIWI",[N.LIRO]:"_QAPP514_PARAMVAL_DS_TYPE_LIRO",[N.ROWI]:"_QAPP514_PARAMVAL_DS_TYPE_ROWI",[N.FILTER]:"_QAPP514_PARAMVAL_DS_TYPE_FILTER",[N.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"
}(S=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"}(u=t.EnumCorpusModel||(t.EnumCorpusModel={})),function(e){e.WITH="WITH",e.WITHOUT="WITHOUT",e.NO_MATTER="NO_MATTER"}(P=t.EnumIonizerType||(t.EnumIonizerType={}));const p={"MCA2.7S":u.ULTRA_MICRO,"MCA10.6S":u.MICRO,"MCA3.6P":u.MICRO,"MCA6.6S":u.MICRO,MCA125P:u.ANALYTICAL,MCA125S:u.ANALYTICAL,MCA225P:u.ANALYTICAL,MCA225S:u.ANALYTICAL,MCA124S:u.ANALYTICAL,MCA224S:u.ANALYTICAL,MCA324P:u.ANALYTICAL,MCA324S:u.ANALYTICAL,MCA524P:u.ANALYTICAL,MCA524S:u.ANALYTICAL,MCA1203S:u.PRECISION,MCA2203P:u.PRECISION,MCA2203S:u.PRECISION,MCA3203S:u.PRECISION,MCA323S:u.PRECISION,MCA5202S:u.PRECISION,MCA5203P:u.PRECISION,
MCA5203S:u.PRECISION,MCA623P:u.PRECISION,MCA623S:u.PRECISION,MCA10202S:u.FRAMED_PRECISION,MCA1202S:u.FRAMED_PRECISION,MCA14202P:u.FRAMED_PRECISION,MCA14202S:u.FRAMED_PRECISION,MCA2202S:u.FRAMED_PRECISION,MCA4202S:u.FRAMED_PRECISION,MCA6202P:u.FRAMED_PRECISION,MCA6202S:u.FRAMED_PRECISION,MCA8202S:u.FRAMED_PRECISION,MCA12201S:u.PRECISION,MCA5201S:u.PRECISION,MCA8201S:u.PRECISION,MCA11201S:u.HIGH_CAPACITY,MCA20201S:u.HIGH_CAPACITY,MCA36200S:u.HIGH_CAPACITY,MCA36201P:u.HIGH_CAPACITY,MCA36201S:u.HIGH_CAPACITY,MCA50201S:u.HIGH_CAPACITY,MCA70200S:u.HIGH_CAPACITY,MCA70201S:u.HIGH_CAPACITY,MCA32202P:u.HIGH_CAPACITY_ROUND},d={MCA36MC:u.MASS_COMPERATOR,MCA66MC:u.MASS_COMPERATOR,MCA106MC:u.MASS_COMPERATOR,MCA206MC:u.MASS_COMPERATOR,MCA605MC:u.MASS_COMPERATOR,MCA1005MC:u.MASS_COMPERATOR,MCA1004MC:u.MASS_COMPERATOR,MCA36S:u.FUSION,MCA36P:u.FUSION,MCA66S:u.FUSION,MCA66P:u.FUSION,MCA116S:u.FUSION,MCA226S:u.FUSION,MCA125S:u.FUSION,MCA225S:u.FUSION,MCA225P:u.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=u.NO_MATTER,n=e.split(/(\s)/)[0].split("-");return n[1].startsWith("2")?n[0]in p&&(t=p[n[0]]):n[1].startsWith("3")&&n[0]in d&&(t=d[n[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:u.NO_MATTER,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.WITH,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[0],value:"_QAPP514_HELP_SECTION_0_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_0_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_0_INSTRUCTION_1"}]}},{corpus:u.NO_MATTER,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[0],
value:"_QAPP514_HELP_SECTION_0_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_0_INSTRUCTION_0"}]}},{corpus:u.FUSION,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_1"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:u.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_1"},{type:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:u.CUBIS,draftshield:c.LIWI,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_1"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:u.CUBIS,draftshield:c.SMALL_LIWI,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_1"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:u.CUBIS,draftshield:c.ROWI,control:S.NO_MATTER,
ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_1_ROWI"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:u.CUBIS,draftshield:c.FILTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:u.CUBIS,draftshield:c.FLAT,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:u.CUBIS,draftshield:c.NONE,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[1],value:"_QAPP514_HELP_SECTION_1_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_1_INSTRUCTION_2"}]}},{corpus:u.NO_MATTER,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[2],value:"_QAPP514_HELP_SECTION_2_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_2_INSTRUCTION_0"},{type:_.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:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_2_INSTRUCTION_1"}]}},{corpus:u.FUSION,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_FUSION"},{type:_.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1"}]}},{corpus:u.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{type:_.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{
type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1"}]}},{corpus:u.CUBIS,draftshield:c.LIWI,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{type:_.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1"}]}},{corpus:u.CUBIS,draftshield:c.SMALL_LIWI,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{type:_.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{
value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1"}]}},{corpus:u.CUBIS,draftshield:c.FLAT,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{type:_.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1"}]}},{corpus:u.CUBIS,draftshield:c.NONE,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{type:_.HelpScreenContentType.BULLET_ENUMERATION,steps:[{
value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1"}]}},{corpus:u.CUBIS,draftshield:c.ROWI,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{type:_.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1_TWEEZERS"}]}},{corpus:u.CUBIS,draftshield:c.FILTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[3],value:"_QAPP514_HELP_SECTION_3_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_0_CUBIS"},{
type:_.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_3_BULLET_0"},{value:"_QAPP514_HELP_SECTION_3_BULLET_1"}]},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_3_INSTRUCTION_1_TWEEZERS"}]}},{corpus:u.FUSION,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[4],value:"_QAPP514_HELP_SECTION_4_TITLE_BOTH",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_4_INSTRUCTION_0_BOTH"}]}},{corpus:u.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[4],value:"_QAPP514_HELP_SECTION_4_TITLE_BOTH",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_4_INSTRUCTION_0_BOTH"}]}},{corpus:u.CUBIS,draftshield:c.NO_MATTER,control:S.MOTORIC,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[4],value:"_QAPP514_HELP_SECTION_4_TITLE_BOTH",content:[{
type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_4_INSTRUCTION_0_BOTH"}]}},{corpus:u.CUBIS,draftshield:c.NO_MATTER,control:S.MANUAL,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[4],value:"_QAPP514_HELP_SECTION_4_TITLE_DISPLAY",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_4_INSTRUCTION_0_DISPLAY"}]}},{corpus:u.CUBIS,draftshield:c.NO_MATTER,control:S.NONE,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[4],value:"_QAPP514_HELP_SECTION_4_TITLE_DISPLAY",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_4_INSTRUCTION_0_DISPLAY"}]}},{corpus:u.FUSION,draftshield:c.NO_MATTER,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[5],value:"_QAPP514_HELP_SECTION_5_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_1"}]}},{corpus:u.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[5],value:"_QAPP514_HELP_SECTION_5_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_1"}]}},{corpus:u.CUBIS,draftshield:c.ROWI,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[5],value:"_QAPP514_HELP_SECTION_5_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_1"}]}},{corpus:u.CUBIS,draftshield:c.LIWI,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[5],value:"_QAPP514_HELP_SECTION_5_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_1"}]}},{corpus:u.CUBIS,draftshield:c.SMALL_LIWI,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[5],value:"_QAPP514_HELP_SECTION_5_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_5_INSTRUCTION_1"}]}},{corpus:u.NO_MATTER,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[6],value:"_QAPP514_HELP_SECTION_6_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_6_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_6_INSTRUCTION_1"}]}},{corpus:u.FUSION,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.WITH,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],
value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_1_IONIZER"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:u.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:u.CUBIS,draftshield:c.ROWI,control:S.NO_MATTER,ionizer:P.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_1_MOTION"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:u.CUBIS,draftshield:c.FILTER,control:S.NO_MATTER,ionizer:P.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:u.CUBIS,draftshield:c.LIWI,control:S.NO_MATTER,ionizer:P.WITH,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_1_IONIZER"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:u.CUBIS,draftshield:c.LIWI,
control:S.NO_MATTER,ionizer:P.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:u.CUBIS,draftshield:c.SMALL_LIWI,control:S.NO_MATTER,ionizer:P.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:u.CUBIS,draftshield:c.FLAT,control:S.NO_MATTER,ionizer:P.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:u.PRECISION,draftshield:c.NONE,control:S.NO_MATTER,ionizer:P.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:u.FRAMED_PRECISION,draftshield:c.NONE,control:S.NO_MATTER,ionizer:P.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_2"}]}},{corpus:u.HIGH_CAPACITY,draftshield:c.NONE,control:S.NO_MATTER,ionizer:P.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"}]}},{corpus:u.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:S.NO_MATTER,ionizer:P.WITHOUT,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[7],value:"_QAPP514_HELP_SECTION_7_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_7_INSTRUCTION_0"}]}},{corpus:u.NO_MATTER,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[8],value:"_QAPP514_HELP_SECTION_8_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_8_INSTRUCTION_0"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_8_INSTRUCTION_1"}]}},{corpus:u.NO_MATTER,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[9],value:"_QAPP514_HELP_SECTION_9_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_9_INSTRUCTION_0"},{
type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_9_INSTRUCTION_1"},{type:_.HelpScreenContentType.BULLET_ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_9_BULLET_0"},{value:"_QAPP514_HELP_SECTION_9_BULLET_1"}]}]}},{corpus:u.CUBIS,draftshield:c.LIWI,control:S.MOTORIC,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[10],value:"_QAPP514_HELP_SECTION_10_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_ORDER"},{type:_.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"}]},{type:_.HelpScreenContentType.IMAGE,value:"Analytic_Miligram_Help_DisDraftShieldLeftRight",imageDescription:""},{type:_.HelpScreenContentType.IMAGE,value:"Analytic_Miligram_Motorized_Help_DisDraftShieldTop",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_1_LIWI"}]}},{
corpus:u.CUBIS,draftshield:c.LIWI,control:S.MANUAL,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[10],value:"_QAPP514_HELP_SECTION_10_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_ORDER"},{type:_.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:_.HelpScreenContentType.IMAGE,value:"Analytic_Miligram_Help_DisDraftShieldLeftRight",imageDescription:""},{type:_.HelpScreenContentType.IMAGE,value:"Analytic_Miligram_Manual_Help_DisDraftShieldTop",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_1_LIWI"},{type:_.HelpScreenContentType.IMAGE,value:"Analytic_Miligram_Manual_Help_DisDraftShieldBack",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_2_BACK"}]}},{corpus:u.CUBIS,draftshield:c.SMALL_LIWI,control:S.MANUAL,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[10],value:"_QAPP514_HELP_SECTION_10_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_ORDER"},{type:_.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"}]},{type:_.HelpScreenContentType.IMAGE,value:"Miligram_Small_Help_DisDraftShield",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_10_INSTRUCTION_1_SMALL_LIWI"}]}},{corpus:u.FUSION,draftshield:c.NO_MATTER,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{
type:_.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:_.HelpScreenContentType.IMAGE,value:"REATTACH_OUTER_DS",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_FUSION"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_1_FUSION"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_2_FUSION"}]}},{corpus:u.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{type:_.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:_.HelpScreenContentType.IMAGE,value:"REATTACH_OUTER_DS",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_FUSION"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_1_FUSION"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_2_FUSION"}]}},{corpus:u.ULTRA_MICRO,draftshield:c.ROWI,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:_.HelpScreenContentType.IMAGE,value:"UltraMicro_Help_DraftShield",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_ROWI"}]}},{corpus:u.MICRO,draftshield:c.ROWI,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],
value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:_.HelpScreenContentType.IMAGE,value:"Micro_Help_DraftShield",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_ROWI"}]}},{corpus:u.CUBIS,draftshield:c.FILTER,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_FILTER"},{type:_.HelpScreenContentType.IMAGE,value:"Filter_Help_DraftShield",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_1_FILTER"}]}},{corpus:u.ANALYTICAL,draftshield:c.LIWI,control:S.MOTORIC,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{
type:_.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"}]},{type:_.HelpScreenContentType.IMAGE,value:"Analytic_Motorized_Help_DraftShield",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_LIWI"}]}},{corpus:u.ANALYTICAL,draftshield:c.LIWI,control:S.MANUAL,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{type:_.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:_.HelpScreenContentType.IMAGE,value:"Analytic_Manual_Help_AssDraftShieldBack",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_BACK"},{type:_.HelpScreenContentType.IMAGE,value:"Analytic_Manual_Help_AssDraftShield",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_LIWI"}]}},{corpus:u.PRECISION,draftshield:c.LIWI,control:S.MOTORIC,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{type:_.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"}]},{type:_.HelpScreenContentType.IMAGE,value:"Miligram_Motorized_Help_AssDraftShield",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_LIWI"}]}},{corpus:u.PRECISION,draftshield:c.LIWI,control:S.MANUAL,ionizer:P.NO_MATTER,helpSection:{
linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{type:_.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:_.HelpScreenContentType.IMAGE,value:"Miligram_Manual_Help_AssDraftShieldBack",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_BACK"},{type:_.HelpScreenContentType.IMAGE,value:"Miligram_Manual_Help_AssDraftShield",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_LIWI"}]}},{corpus:u.PRECISION,draftshield:c.SMALL_LIWI,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{
type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_ORDER"},{type:_.HelpScreenContentType.ENUMERATION,steps:[{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_TOP"},{value:"_QAPP514_HELP_SECTION_11_ENUMERATION_LEFTRIGHT"}]},{type:_.HelpScreenContentType.IMAGE,value:"Miligram_Manual_Help_AssDraftShield",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_LIWI"}]}},{corpus:u.PRECISION,draftshield:c.FLAT,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[11],value:"_QAPP514_HELP_SECTION_11_TITLE",content:[{type:_.HelpScreenContentType.IMAGE,value:"Frame_Help_DraftShield",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_11_INSTRUCTION_0_FLAT"}]}},{corpus:u.FUSION,draftshield:c.NO_MATTER,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[12],value:"_QAPP514_HELP_SECTION_12_TITLE",content:[{
type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_12_INSTRUCTION_0"},{type:_.HelpScreenContentType.IMAGE,value:"REATTACH_INNER_DS",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_12_INSTRUCTION_1"}]}},{corpus:u.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[12],value:"_QAPP514_HELP_SECTION_12_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_12_INSTRUCTION_0"},{type:_.HelpScreenContentType.IMAGE,value:"REATTACH_INNER_DS",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_12_INSTRUCTION_1"}]}},{corpus:u.FUSION,draftshield:c.NO_MATTER,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_FUSION"},{
type:_.HelpScreenContentType.IMAGE,value:"REATTACH_WEIGHING_PAN",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_FUSION"},{type:_.HelpScreenContentType.IMAGE,value:"REATTACH_WEIGHING_PAN",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.ULTRA_MICRO,draftshield:c.ROWI,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_ULTRAMICRO"},{type:_.HelpScreenContentType.IMAGE,value:"UltraMicro_Help_WeighingPan",
imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.MICRO,draftshield:c.ROWI,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_MICRO"},{type:_.HelpScreenContentType.IMAGE,value:"Micro_Help_WeighingPan",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.ULTRA_MICRO,draftshield:c.FILTER,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_ULTRAFILTER"},{type:_.HelpScreenContentType.IMAGE,value:"UltraFilter_Help_WeighingPan",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.MICRO,draftshield:c.FILTER,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_FILTER"},{type:_.HelpScreenContentType.IMAGE,value:"Filter_Help_WeighingPan",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.ANALYTICAL,draftshield:c.LIWI,control:S.MOTORIC,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_ANALYTICAL"},{type:_.HelpScreenContentType.IMAGE,value:"Analytic_Motorized_Help_WeighingPan",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.ANALYTICAL,
draftshield:c.LIWI,control:S.MANUAL,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_ANALYTICAL"},{type:_.HelpScreenContentType.IMAGE,value:"Analytic_Manual_Help_WeighingPan",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.PRECISION,draftshield:c.LIWI,control:S.MOTORIC,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_MILLI"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_MILLI"},{type:_.HelpScreenContentType.IMAGE,value:"Miligram_Motorized_Help_WeighingPan",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.PRECISION,draftshield:c.LIWI,control:S.MANUAL,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_MILLI"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_MILLI"},{type:_.HelpScreenContentType.IMAGE,value:"Miligram_Manual_Help_WeighingPan",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.PRECISION,draftshield:c.SMALL_LIWI,control:S.ANY,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_MILLI"},{type:_.HelpScreenContentType.INSTRUCTION,
value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_MILLI"},{type:_.HelpScreenContentType.IMAGE,value:"Miligram_Small_Help_WeighingPan",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.PRECISION,draftshield:c.FLAT,control:S.NONE,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_MILLI"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_MILLI"},{type:_.HelpScreenContentType.IMAGE,value:"Frame_Help_WeighingPan",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.PRECISION,draftshield:c.NONE,control:S.NONE,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{
type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_PRECISION"},{type:_.HelpScreenContentType.IMAGE,value:"Precision_Ass_SupportDisk",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_MILLI"},{type:_.HelpScreenContentType.IMAGE,value:"Precision_Ass_WeighingPan",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.FRAMED_PRECISION,draftshield:c.NONE,control:S.NONE,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_PRECISION"},{type:_.HelpScreenContentType.IMAGE,value:"Precision_Ass_SupportDisk",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_FRAMED_PRECISION"},{
type:_.HelpScreenContentType.IMAGE,value:"Precision_Ass_WeighingPan_ShieldDisk",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.HIGH_CAPACITY,draftshield:c.NONE,control:S.NONE,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_HIGH_CAPACITY"},{type:_.HelpScreenContentType.IMAGE,value:"HighCapacity_Ass_WeighingPan",imageDescription:""},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:S.NONE,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[13],value:"_QAPP514_HELP_SECTION_13_TITLE_SUPPORT",content:[{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_SUPPORT_HIGH_CAPACITY_ROUND"},{
type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_0_HIGH_CAPACITY_ROUND"},{type:_.HelpScreenContentType.INSTRUCTION,value:"_QAPP514_HELP_SECTION_13_INSTRUCTION_1"}]}},{corpus:u.FUSION,draftshield:c.NO_MATTER,control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.MASS_COMPERATOR,draftshield:c.NO_MATTER,
control:S.NO_MATTER,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.ULTRA_MICRO,draftshield:c.ROWI,control:S.MOTORIC,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.MICRO,draftshield:c.ROWI,control:S.MOTORIC,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.ULTRA_MICRO,draftshield:c.FILTER,control:S.MANUAL,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.MICRO,draftshield:c.FILTER,control:S.MANUAL,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.MOTORIC,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{
type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.MANUAL,ionizer:P.NO_MATTER,helpSection:{
linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.PRECISION,draftshield:c.LIWI,control:S.MOTORIC,ionizer:P.NO_MATTER,helpSection:{
linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.PRECISION,draftshield:c.LIWI,control:S.MANUAL,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.PRECISION,draftshield:c.SMALL_LIWI,control:S.MANUAL,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.PRECISION,draftshield:c.FLAT,control:S.NONE,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.PRECISION,draftshield:c.NONE,control:S.NONE,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.FRAMED_PRECISION,draftshield:c.NONE,control:S.NONE,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{
type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.HIGH_CAPACITY,draftshield:c.NONE,control:S.NONE,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:S.NONE,ionizer:P.NO_MATTER,helpSection:{linkId:t.HELP_SCREEN_LINK_PARAGRAPH[14],value:"_QAPP514_HELP_SECTION_14_TITLE",content:[{type:_.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:_.HelpScreenContentType.INSTRUCTION,value:""},{type:_.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:u.FUSION,draftshield:c.LIWI,control:S.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:u.FUSION,draftshield:c.LIRO,control:S.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:u.FUSION,draftshield:c.LIWI,control:S.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:u.FUSION,draftshield:c.LIRO,control:S.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:u.FUSION,draftshield:c.NO_MATTER,control:S.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:u.FUSION,draftshield:c.LIWI,control:S.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:u.FUSION,draftshield:c.LIRO,control:S.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:u.FUSION,draftshield:c.LIRO,control:S.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:u.FUSION,draftshield:c.LIWI,control:S.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:u.FUSION,draftshield:c.LIRO,control:S.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:u.FUSION,draftshield:c.LIWI,control:S.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:u.FUSION,draftshield:c.LIRO,control:S.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:u.FUSION,draftshield:c.LIWI,control:S.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:u.FUSION,draftshield:c.LIRO,control:S.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:u.FUSION,draftshield:c.LIRO,control:S.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:u.FUSION,draftshield:c.LIRO,control:S.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:u.FUSION,draftshield:c.LIRO,control:S.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:u.FUSION,draftshield:c.LIWI,control:S.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:u.FUSION,draftshield:c.LIWI,control:S.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:u.FUSION,draftshield:c.LIWI,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIWI,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIRO,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIWI,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIRO,control:S.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:u.MASS_COMPERATOR,draftshield:c.NO_MATTER,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIWI,control:S.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:u.MASS_COMPERATOR,
draftshield:c.LIRO,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIRO,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIWI,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIRO,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIWI,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIRO,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIWI,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIRO,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIRO,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIRO,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIRO,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIWI,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIWI,control:S.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:u.MASS_COMPERATOR,draftshield:c.LIWI,control:S.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:u.ULTRA_MICRO,draftshield:c.ROWI,control:S.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:u.ULTRA_MICRO,draftshield:c.ROWI,control:S.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:u.ULTRA_MICRO,draftshield:c.ROWI,control:S.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:u.MICRO,draftshield:c.ROWI,control:S.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:u.MICRO,draftshield:c.ROWI,control:S.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:u.MICRO,draftshield:c.ROWI,control:S.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:u.NO_MATTER,draftshield:c.ROWI,control:S.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:u.ULTRA_MICRO,draftshield:c.ROWI,control:S.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:u.MICRO,draftshield:c.ROWI,control:S.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:u.ULTRA_MICRO,draftshield:c.ROWI,control:S.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:u.MICRO,draftshield:c.ROWI,control:S.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:u.ULTRA_MICRO,draftshield:c.ROWI,control:S.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:u.MICRO,draftshield:c.ROWI,control:S.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:u.NO_MATTER,draftshield:c.ROWI,control:S.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:u.ULTRA_MICRO,draftshield:c.ROWI,control:S.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:u.MICRO,draftshield:c.ROWI,control:S.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:u.ULTRA_MICRO,draftshield:c.ROWI,control:S.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:u.MICRO,draftshield:c.ROWI,control:S.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:u.ULTRA_MICRO,draftshield:c.FILTER,control:S.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:u.MICRO,draftshield:c.FILTER,control:S.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:u.NO_MATTER,draftshield:c.FILTER,control:S.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:u.ULTRA_MICRO,draftshield:c.FILTER,control:S.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:u.MICRO,draftshield:c.FILTER,control:S.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:u.NO_MATTER,draftshield:c.FILTER,control:S.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:u.ULTRA_MICRO,draftshield:c.FILTER,
control:S.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:u.MICRO,draftshield:c.FILTER,control:S.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:u.NO_MATTER,draftshield:c.FILTER,control:S.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:u.ULTRA_MICRO,draftshield:c.FILTER,control:S.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:u.MICRO,draftshield:c.FILTER,control:S.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:u.ULTRA_MICRO,draftshield:c.FILTER,control:S.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:u.MICRO,draftshield:c.FILTER,control:S.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:u.NO_MATTER,draftshield:c.FILTER,control:S.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:u.ULTRA_MICRO,draftshield:c.FILTER,control:S.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:u.MICRO,draftshield:c.FILTER,control:S.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:u.NO_MATTER,draftshield:c.FILTER,control:S.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:u.ULTRA_MICRO,draftshield:c.FILTER,control:S.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:u.MICRO,draftshield:c.FILTER,control:S.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:u.ULTRA_MICRO,draftshield:c.FILTER,control:S.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:u.MICRO,draftshield:c.FILTER,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.MOTORIC,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MOTORIC_STEP_1",args:[a.EnumFontLabels.HELP]}],imgRef:["Analytic_Motorized_Advanced_Dis_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[10]},{mode:o.EXTENDED,corpus:u.ANALYTICAL,draftshield:c.LIWI,control:S.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MANUAL_STEP_1",args:[a.EnumFontLabels.HELP]}],imgRef:["Analytic_Manual_Advanced_Dis_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[10]},{mode:o.EXTENDED,corpus:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.ANALYTICAL,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.ANY,control:S.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:u.PRECISION,draftshield:c.ANY,control:S.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:u.PRECISION,draftshield:c.ANY,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.LIWI,
control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.SMALL_LIWI,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.MOTORIC,
screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MOTORIC_STEP_1",args:[a.EnumFontLabels.HELP]}],imgRef:["Miligram_Motorized_Advanced_Dis_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[10]},{mode:o.EXTENDED,corpus:u.PRECISION,draftshield:c.LIWI,control:S.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_MANUAL_STEP_1",args:[a.EnumFontLabels.HELP]}],imgRef:["Miligram_Manual_Advanced_Dis_DraftShield.png"],helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[10]},{mode:o.EXTENDED,corpus:u.PRECISION,draftshield:c.SMALL_LIWI,control:S.MANUAL,screenType:i.EnumWizardScreenLayout.WITHIMAGEON66,title:"_QAPP514_INFO_TITLE_DISASSEMBLING",instruction:[{id:"_QAPP514_INFO_EXTENDED_PRECISION_SMALL_STEP_1",args:[a.EnumFontLabels.HELP]}],imgRef:["Miligram_Small_Advanced_Dis_DraftShield.png"],
helpLink:t.HELP_SCREEN_LINK_PARAGRAPH[10]},{mode:o.EXTENDED,corpus:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.SMALL_LIWI,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.SMALL_LIWI,control:S.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:u.PRECISION,draftshield:c.ANY,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.SMALL_LIWI,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.SMALL_LIWI,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.LIWI,control:S.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:u.PRECISION,draftshield:c.SMALL_LIWI,control:S.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:u.PRECISION,draftshield:c.FLAT,control:S.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:u.PRECISION,draftshield:c.FLAT,control:S.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:u.PRECISION,draftshield:c.FLAT,control:S.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:u.PRECISION,draftshield:c.FLAT,
control:S.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:u.PRECISION,draftshield:c.FLAT,control:S.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:u.PRECISION,draftshield:c.FLAT,control:S.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:u.PRECISION,draftshield:c.FLAT,control:S.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:u.PRECISION,draftshield:c.FLAT,control:S.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:u.PRECISION,draftshield:c.FLAT,control:S.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:u.FRAMED_PRECISION,draftshield:c.NONE,control:S.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:u.PRECISION,draftshield:c.NONE,control:S.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:u.FRAMED_PRECISION,draftshield:c.NONE,control:S.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:u.PRECISION,draftshield:c.NONE,control:S.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:u.FRAMED_PRECISION,draftshield:c.NONE,control:S.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:u.PRECISION,draftshield:c.NONE,control:S.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:u.FRAMED_PRECISION,draftshield:c.NONE,control:S.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:u.PRECISION,draftshield:c.NONE,control:S.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:u.FRAMED_PRECISION,draftshield:c.NONE,control:S.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:u.PRECISION,draftshield:c.NONE,control:S.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:u.FRAMED_PRECISION,draftshield:c.NONE,control:S.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:u.PRECISION,draftshield:c.NONE,control:S.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:u.FRAMED_PRECISION,draftshield:c.NONE,control:S.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:u.PRECISION,draftshield:c.NONE,control:S.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:u.HIGH_CAPACITY,draftshield:c.NONE,control:S.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:u.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:S.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:u.HIGH_CAPACITY,draftshield:c.NONE,control:S.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:u.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:S.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:u.HIGH_CAPACITY,draftshield:c.NONE,control:S.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:u.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:S.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:u.HIGH_CAPACITY,draftshield:c.NONE,control:S.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:u.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:S.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:u.HIGH_CAPACITY,draftshield:c.NONE,control:S.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:u.HIGH_CAPACITY_ROUND,draftshield:c.NONE,control:S.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:T.BASIC,corpus_model:l.FUSION,draftshield_type:N.LIRO,draftshield_control:A.MANUAL,skip_available:E.ENABLED,esig_enabled:E.DISABLED};return s.isObject(e)&&s.overwriteExistingAttributes(e,t),t},t.isValidFormat=R,t.isValidModel=function(e){return!!R(e)&&O(e)!==u.NO_MATTER},t.isValidDraftshieldModel=function(e){if(!R(e))return!1;let t=e.split(/(\s)/)[0].split("-"),n=O(e),_=t[t.length-1].toUpperCase();switch(n){case u.ULTRA_MICRO:case u.MICRO:return["M","F"].includes(_);case u.ANALYTICAL:return["U","A","I"].includes(_);case u.PRECISION:return["U","A","I","E","R","0","O"].includes(_);case u.FRAMED_PRECISION:case u.HIGH_CAPACITY:case u.HIGH_CAPACITY_ROUND:return["0","O"].includes(_);case u.FUSION:case u.MASS_COMPERATOR:return["D"].includes(_);case u.NO_MATTER:case u.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,S.MANUAL];case"U":return[c.LIWI,S.MANUAL];case"A":case"I":return[c.LIWI,S.MOTORIC];case"R":return[c.FLAT,S.NONE];case"M":return[c.ROWI,S.MOTORIC];case"F":return[c.FILTER,S.MANUAL];case"D":return[c.ANY,S.ANY];case"0":case"O":default:return[c.NONE,S.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 p)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]]===u.FUSION)return P.WITH;if(d[t[0]]===u.MASS_COMPERATOR)return P.WITHOUT}return P.NO_MATTER},t.checkMetchingCleaningMode=function(e,t){
return e===T.NO_MATTER||t===o.STANDARD_EXTENDED||e===T.BASIC&&t===o.STANDARD||e===T.ADVANCED&&t===o.EXTENDED}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(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 s={type:i.INSTRUCTION,value:""};t.createEmptySimpleInstructionContent=function(){return _.cloneJSON(s)};const a={type:i.INSTRUCTION_BOLD,value:""};t.createEmptyBoldInstructionContent=function(){return _.cloneJSON(a)};const r={type:i.IMAGE,value:"",imageDescription:""};t.createEmptyImageContent=function(){return _.cloneJSON(r)};const E={type:i.ENUMERATION,steps:[]};t.createEmptyEnumerationContent=function(){return _.cloneJSON(E)};const o={type:i.BULLET_ENUMERATION,steps:[]};t.createEmptyBulletEnumerationContent=function(){
return _.cloneJSON(o)};const T={type:i.TABLE,header:[],rows:[]};t.createEmptyTableContent=function(){return _.cloneJSON(T)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(28),i=n(67);class s{constructor(){this.id=0,this.serial="",this.taskId="",this.version=0}static createTableNameNoSchemaVersion(e,t){return`${0===e.length?"global":e}_${t}`}static createTableName(e,t,n){return s.generateTableNameWithVersion(s.createTableNameNoSchemaVersion(e,t),n)}static generateTableNameWithVersion(e,t){if(isNaN(t))throw new Error("QApp entities are not permitted to have no schema version");return`${e}_${t}`}static getSchemaVersionFromTableName(e){return parseInt(e.substr(e.lastIndexOf("_")+1),10)}static getPureTableNameFromTableName(e){return e.substr(0,e.lastIndexOf("_"))}prepForUpdate(){delete this.version,delete this.serial,delete this.taskId}}_.__decorate([i.PrimaryGeneratedColumn(),_.__metadata("design:type",Number)],s.prototype,"id",void 0),
_.__decorate([i.Column(),_.__metadata("design:type",String)],s.prototype,"serial",void 0),_.__decorate([i.Column(),_.__metadata("design:type",String)],s.prototype,"taskId",void 0),_.__decorate([i.VersionColumn(),_.__metadata("design:type",Number)],s.prototype,"version",void 0),t.QAppBaseEntity=s},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(21),i=n(10),s=n(7),a=n(36),r=n(90),E=n(107),o=n(114),T=n(2),A=n(20),I=n(119),l=n(9),N=n(120),c=n(121),S=n(60),u=n(41),P=n(13),p=n(0);let d,R=E.createTaskConfig(),O=1,L=[];class h extends r.wfRunner{constructor(){super(!0),this.isLevelled=!1,this.handlingTime=12e3,this.exceptionResion="",this.maxTestNumber=0,this.currentTestNumber=0,this.registerAspect(new o.ConnectionAspect),this.editParamsAspect=new c.EditParamsAspect,this.wizardScreen=new I.WizardScreen(this.mqttHandler,[]),this.registerScreen(this.wizardScreen),this.wizardScreen.hide(),this.wizardScreen.showHelpButton(),
this.wizardScreen.setHelpButtonIcon(s.EnumFontLabels.HELP),this.helpScreen=new N.HelpScreen(this.mqttHandler),this.registerScreen(this.helpScreen)}GET_QAPP_META_DATA(){return{qappID:E.QAPP_ID,qappToken:E.QAPP_ID,stateScreenFunctions:[this.BALANCE_SETTINGS.name,this.INITIAL_ENTRY.name,this.PERFORM_CLEANING.name,this.FUNCTIONAL_TEST.name,this.TEST_LEVELLING.name,this.TEST_INTERNAL_WEIGHT.name,this.TEST_MOTORIC_DRAFTSHIELD.name,this.TEST_MANUAL_DRAFTSHIELD.name,this.FINISH_PROCESS.name],initialStateFunction:this.BALANCE_SETTINGS.name}}_____________________SCREENS__________________(){}postInit(){console.log("workflow - postInit"),super.postInit(),R=E.createTaskConfig(a.loadTaskConfig_DATA_CONTAINER(this.taskHandler)),this.mqttHandler.subscribe(T.MqttTopics.ESIGNATURE_RESULT),console.log("workflow - postInit:: addRunningActivity 'CLEANING'"),this.perform_InternalWebserviceRequest("deviceinformation","addRunningActivity",{rActivity:"CLEANING"}),
console.log("workflow - postInit:: disableChecker 'BacErrorCodeChecker'"),this.perform_InternalWebserviceRequest("selfMonitor","disableChecker",{checkerId:"BacErrorCodeChecker"})}BALANCE_SETTINGS(e,t){if(!e&&!t)return this.IDEXTEND_STATE_SCREEN+this.BALANCE_SETTINGS.name;if(!e&&t&&P.isString(t)&&"GET_EVENT_LISTENER"===t)return JSON.stringify([_.EV_HMI_BTN_CLICKED,A.EV_MQTT_UPDATE]);if(!t||!e)return console.log(" ## DEBUG ## "+this.BALANCE_SETTINGS()+": Missing argument"),"";if(P.isString(t)&&"onEnter"===t){if(console.log("workflow - informations:: onEnter"),console.log("workflow:: deactivate isoCal"),this.perform_InternalWebserviceRequest("calibrationadjustment","disableAutoIsoCal",{}),r.btn.msg_ok=this.createMessageButton(s.EnumFontLabels.OK),R.dev_mode===E.EnumDev.ON){switch(console.log("DEV MODE"),R.corpus_model){case E.EnumConfigCorpus.FUSION:this.corpusModel=E.EnumCorpusModel.FUSION,this.ionizer=E.EnumIonizerType.WITH;break;case E.EnumConfigCorpus.MASS_COMPERATOR:
this.corpusModel=E.EnumCorpusModel.MASS_COMPERATOR,this.ionizer=E.EnumIonizerType.WITHOUT;break;case E.EnumConfigCorpus.MICRO:this.corpusModel=E.EnumCorpusModel.MICRO,this.ionizer=E.EnumIonizerType.WITHOUT;break;case E.EnumConfigCorpus.ULTRA_MICRO:this.corpusModel=E.EnumCorpusModel.ULTRA_MICRO,this.ionizer=E.EnumIonizerType.WITHOUT;break;case E.EnumConfigCorpus.ANALYTICAL:this.corpusModel=E.EnumCorpusModel.ANALYTICAL,this.ionizer=E.EnumIonizerType.WITH;break;case E.EnumConfigCorpus.FRAMED_PRECISION:this.corpusModel=E.EnumCorpusModel.FRAMED_PRECISION,this.ionizer=E.EnumIonizerType.WITHOUT;break;case E.EnumConfigCorpus.PRECISION:this.corpusModel=E.EnumCorpusModel.PRECISION,this.ionizer=E.EnumIonizerType.WITHOUT;break;case E.EnumConfigCorpus.HIGH_CAPACITY:this.corpusModel=E.EnumCorpusModel.HIGH_CAPACITY,this.ionizer=E.EnumIonizerType.WITHOUT;break;case E.EnumConfigCorpus.HIGH_CAPACITY_ROUND:this.corpusModel=E.EnumCorpusModel.HIGH_CAPACITY_ROUND,this.ionizer=E.EnumIonizerType.WITHOUT}
switch(R.draftshield_type){case E.EnumConfigDraftshieldType.NONE:this.draftshieldType=E.EnumDraftshieldType.NONE;break;case E.EnumConfigDraftshieldType.SMALL_LIWI:this.draftshieldType=E.EnumDraftshieldType.SMALL_LIWI;break;case E.EnumConfigDraftshieldType.LIWI:this.draftshieldType=E.EnumDraftshieldType.LIWI;break;case E.EnumConfigDraftshieldType.ROWI:this.draftshieldType=E.EnumDraftshieldType.ROWI;break;case E.EnumConfigDraftshieldType.LIRO:this.draftshieldType=E.EnumDraftshieldType.LIRO;break;case E.EnumConfigDraftshieldType.FILTER:this.draftshieldType=E.EnumDraftshieldType.FILTER;break;case E.EnumConfigDraftshieldType.FLAT:this.draftshieldType=E.EnumDraftshieldType.FLAT}switch(R.draftshield_control){case E.EnumConfigDraftshieldControl.NONE:this.draftshieldControl=E.EnumDraftshieldControl.NONE;break;case E.EnumConfigDraftshieldControl.MANUAL:this.draftshieldControl=E.EnumDraftshieldControl.MANUAL;break;case E.EnumConfigDraftshieldControl.MOTORIC:
this.draftshieldControl=E.EnumDraftshieldControl.MOTORIC}this.mqttHandler.subscribe(T.MqttTopics.SENSOR_ACTOR_INFO)}else this.mqttHandler.subscribe(T.MqttTopics.DEVICE_MODEL_NAME);return""}if(P.isString(t)&&"onExit"===t)console.log("workflow - informations:: onExit"),this.mqttHandler.unsubscribe(T.MqttTopics.DRAFTSHIELD_TYPE),this.mqttHandler.unsubscribe(T.MqttTopics.SENSOR_ACTOR_INFO),this.mqttHandler.unsubscribe(T.MqttTopics.DEVICE_MODEL_NAME);else if(P.isObject(t)&&t.type&&t.type===A.EV_MQTT_UPDATE){if(P.isObject(t)&&P.isObject(t.payload)&&t.payload.topic===T.MqttTopics.DEVICE_MODEL_NAME){console.log("workflow - informations:: get corpus model");let e=JSON.parse(t.payload.value.toString()).value.string;E.isValidModel(e)&&E.isValidDraftshieldModel(e)?(this.corpusModel=E.getEnumCorpusModelByString(e),[this.draftshieldType,this.draftshieldControl]=E.getDraftShieldByString(e),this.ionizer=E.getIonizerByString(e),
this.draftshieldType===E.EnumDraftshieldType.ANY?this.mqttHandler.subscribe(T.MqttTopics.DRAFTSHIELD_TYPE):this.mqttHandler.subscribe(T.MqttTopics.SENSOR_ACTOR_INFO)):this.showMessageBox(i.EnumMessageboxType.ERROR,r.l("_QAPP514_HEADER_EXECUTION_FAILED"),r.l("_QAPP514_MESSAGE_NOT_VALID"),[r.btn.msg_ok])}else if(P.isObject(t)&&P.isObject(t.payload)&&t.payload.topic===T.MqttTopics.DRAFTSHIELD_TYPE){console.log("workflow - informations:: get draft shield type");let e={type:"NONE"};try{e=JSON.parse(t.payload.value.toString())}catch(e){console.log("workflow - informations:: draft shield type failed")}this.draftshieldType=E.getEnumDraftshieldByString(e.type),
this.draftshieldType===E.EnumDraftshieldType.PUSHER?this.showMessageBox(i.EnumMessageboxType.ERROR,r.l("_QAPP514_HEADER_EXECUTION_FAILED"),r.l("_QAPP514_MESSAGE_PUSHER"),[r.btn.msg_ok]):this.draftshieldType===E.EnumDraftshieldType.ERROR?this.showMessageBox(i.EnumMessageboxType.ERROR,r.l("_QAPP514_HEADER_EXECUTION_FAILED"),r.l("_QAPP514_MESSAGE_NOT_VALID"),[r.btn.msg_ok]):(this.draftshieldControl=this.draftshieldType===E.EnumDraftshieldType.UNLICENSED?E.EnumDraftshieldControl.MANUAL:E.EnumDraftshieldControl.MOTORIC,this.mqttHandler.subscribe(T.MqttTopics.SENSOR_ACTOR_INFO))}else if(P.isObject(t)&&P.isObject(t.payload)&&t.payload.topic===T.MqttTopics.SENSOR_ACTOR_INFO){console.log("workflow - informations:: get sensor-actor information");let n={isIntCalWeightAvail:!1,isDraftShieldAvailable:!1,isSbiPossible:!1,isIsoCal:!1,isIntLinweightAvail:!1,isApproveSwitch:!1,isEliseAvailable:!1,isMotorLevellingAvailable:!1,isDigEepromAvailable:!1,isAnalogEepromAvailable:!1,isSysEepromAvailable:!1,
isRtcAvailable:!1,isIoniserAvailable:!1,isPeltierAvailable:!1,isIntClimateModuleAvailable:!1,isIntSubstWeigtAvailable:!1,isExtClimateModuleAvailable:!1};try{n=JSON.parse(t.payload.value.toString())}catch(e){console.log("workflow - informations:: call sensor-actor informations failed")}this.elise=n.isEliseAvailable?E.EnumBalancePropertiesFlag.PRESENT:E.EnumBalancePropertiesFlag.ABSENT,e.transition(this,this.INITIAL_ENTRY())}}else P.isObject(t)&&t.type&&t.type===_.EV_HMI_BTN_CLICKED&&t.payload.buttonId===r.btn.msg_ok.getButtonId()&&(this.hideMsgBox(),this.suspend());return""}INITIAL_ENTRY(e,t){if(!e&&!t)return this.IDEXTEND_STATE_SCREEN+this.INITIAL_ENTRY.name;if(!e&&t&&P.isString(t)&&"GET_EVENT_LISTENER"===t)return JSON.stringify([_.EV_HMI_BTN_CLICKED,A.EV_MQTT_UPDATE]);if(!t||!e)return console.log(" ## DEBUG ## "+this.INITIAL_ENTRY()+": Missing argument"),"";if(P.isString(t)&&"onEnter"===t){console.log("workflow - INITIAL_ENTRY:: onEnter"),
this.mqttHandler.subscribe(T.MqttTopics.HMI_QAPP_WIZARD_SCREEN_TITLE),r.btn.cancel=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.CANCEL,p.EnumAppearance.ENABLED,!0),r.btn.skip=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.SKIP,p.EnumAppearance.ENABLED,!0),r.btn.continue=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.NEXT,p.EnumAppearance.ENABLED_PRIMARY,!0),r.btn.continueWithInner=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",r.l("_QAPP514_BUTTON_WITH"),p.EnumAppearance.ENABLED,!0),r.btn.continueWithoutInner=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",r.l("_QAPP514_BUTTON_WITHOUT"),p.EnumAppearance.ENABLED,!0),r.btn.msg_ok=this.createMessageButton(s.EnumFontLabels.OK),this.wizardScreen.setScreenLayout(S.EnumWizardScreenLayout.WITHOUTIMAGE),this.wizardScreen.setHeadingTitle({id:r.l("_QAPP514_SCREENTITLE_PROCESS_PREPARATION"),args:[]}),this.wizardScreen.showHelpButton(),
this.helpScreen.setLink("");let e=[this.wizardScreen.getHelpButtonIcon()];return this.draftshieldControl===E.EnumDraftshieldControl.MANUAL&&[E.EnumCorpusModel.FUSION,E.EnumCorpusModel.MASS_COMPERATOR].includes(this.corpusModel)?(e.push(this.localizerProxy.getText(r.l("_QAPP514_INFO_PREPARATION_DECISION"))),R.skip_available===E.EnumConfigEnabled.ENABLED?(e.push(this.localizerProxy.getText(r.l("_QAPP514_INFO_PREPARATION_SKIP"))),e.push(this.localizerProxy.getText(r.btn.continueWithInner.getLabel().id).toUpperCase()),e.push(this.localizerProxy.getText(r.btn.continueWithoutInner.getLabel().id).toUpperCase()),e.push(r.btn.skip.getLabel().id),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.skip,r.btn.continueWithInner,r.btn.continueWithoutInner])):(e.push(""),e.push(this.localizerProxy.getText(r.btn.continueWithInner.getLabel().id).toUpperCase()),e.push(this.localizerProxy.getText(r.btn.continueWithoutInner.getLabel().id).toUpperCase()),
this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.continueWithInner,r.btn.continueWithoutInner]))):(e.push(this.localizerProxy.getText(r.l("_QAPP514_INFO_PREPARATION_START"))),R.skip_available===E.EnumConfigEnabled.ENABLED?(e.push(this.localizerProxy.getText(r.l("_QAPP514_INFO_PREPARATION_SKIP"))),e.push(r.btn.continue.getLabel().id),e.push(""),e.push(r.btn.skip.getLabel().id),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.skip,r.btn.continue])):(e.push(""),e.push(r.btn.continue.getLabel().id),e.push(""),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.continue]))),this.corpusModel===E.EnumCorpusModel.FUSION?this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_PREPARATION_BASE_FUSION"),args:e}):this.corpusModel===E.EnumCorpusModel.MASS_COMPERATOR?this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_PREPARATION_BASE_CHAMBER"),args:e}):this.ionizer===E.EnumIonizerType.WITH?this.wizardScreen.setTextInstructionContent({
id:r.l("_QAPP514_INFO_PREPARATION_BASE_IONIZER"),args:e}):this.corpusModel===E.EnumCorpusModel.ULTRA_MICRO||this.corpusModel===E.EnumCorpusModel.MICRO?this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_PREPARATION_BASE_TWEEZERS"),args:e}):this.draftshieldType===E.EnumDraftshieldType.FLAT||this.draftshieldType===E.EnumDraftshieldType.NONE?this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_PREPARATION_BASE_FLAT"),args:e}):this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_PREPARATION_BASE_CHAMBER"),args:e}),this.wizardScreen.show(),this.showScreen(this.wizardScreen),this.initializeHelpText(),this.helpScreen.setHelpScreenData(d),this.helpScreen.setLink(""),""}if(P.isString(t)&&"onExit"===t)console.log("workflow - INITIAL_ENTRY:: onExit"),this.initializeProcessSteps(),this.mqttHandler.unsubscribe(T.MqttTopics.HMI_QAPP_WIZARD_SCREEN_TITLE),console.log("workflow:: deactivate actuators"),
this.perform_InternalWebserviceRequest("deviceinformation","setActuatorsActive",{active:!0}),this.hideMsgBox(),this.showLoadingScreen(),this.wizardScreen.hide(),this.helpScreen.hide();else if(P.isObject(t)&&t.type&&t.type===_.EV_HMI_BTN_CLICKED){if(console.log("workflow:: balance stats"),t.payload.buttonId===r.btn.continue.getButtonId())e.transition(this,this.PERFORM_CLEANING());else if(t.payload.buttonId===r.btn.continueWithInner.getButtonId())this.draftshieldType=E.EnumDraftshieldType.LIRO,e.transition(this,this.PERFORM_CLEANING());else if(t.payload.buttonId===r.btn.continueWithoutInner.getButtonId())this.draftshieldType=E.EnumDraftshieldType.LIWI,e.transition(this,this.PERFORM_CLEANING());else{if(t.payload.buttonId===r.btn.cancel.getButtonId())return this.handleHomeOrLogoutButtons({payload:{buttonId:"BTN_HOME"}}),""
;t.payload.buttonId===r.btn.skip.getButtonId()?(R.dev_mode===E.EnumDev.OFF&&this.draftshieldType===E.EnumDraftshieldType.UNLICENSED&&(this.draftshieldControl=E.EnumDraftshieldControl.MANUAL,this.draftshieldType=E.EnumDraftshieldType.ANY),e.transition(this,this.FUNCTIONAL_TEST())):t.payload.buttonId===this.wizardScreen.getHelpButtonId()&&this.helpScreen.show()}t.payload.buttonId===r.btn.msg_ok.getButtonId()&&(this.hideMsgBox(),this.suspend()),this.handleHomeOrLogoutButtons(t)}else if(P.isObject(t)&&t.type&&t.type===A.EV_MQTT_UPDATE&&P.isObject(t)&&P.isObject(t.payload)&&t.payload.topic===T.MqttTopics.HMI_QAPP_WIZARD_SCREEN_TITLE){let e=JSON.parse(t.payload.value.toString());if(e.id&&e.id.length>0){new Promise((e,t)=>{setTimeout(()=>e(""),1500)}).then(e=>this.hideLoadingScreen())}}return""}PERFORM_CLEANING(e,t){if(!e&&!t)return this.IDEXTEND_STATE_SCREEN+this.PERFORM_CLEANING.name;if(!e&&P.isString(t)&&"GET_EVENT_LISTENER"===t)return JSON.stringify([_.EV_HMI_BTN_CLICKED])
;if(!t||!e)return console.log(" ## DEBUG ## "+this.PERFORM_CLEANING()+": Missing argument"),"";let n=!1;if(P.isString(t)&&"onEnter"===t)console.log("workflow - PERFORM_CLEANING:: onEnter"),r.btn.msg_ok=this.createMessageButton(s.EnumFontLabels.OK),0===L.length?this.showMessageBox(i.EnumMessageboxType.ERROR,r.l("_QAPP514_HEADER_EXECUTION_FAILED"),r.l("_QAPP514_MESSAGE_NOT_VALID"),[r.btn.msg_ok]):(r.btn.cancel=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.CANCEL,p.EnumAppearance.ENABLED,!0),r.btn.previous=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.PREV,p.EnumAppearance.ENABLED,!0),r.btn.next=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.NEXT,p.EnumAppearance.ENABLED_PRIMARY,!0),r.btn.confirm=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.OK,p.EnumAppearance.ENABLED_PRIMARY,!0),this.wizardScreen.setHeadingTitle({id:r.l(E.EnumMapConfigCleanMode[R.clean_mode]),args:[]}),
this.wizardScreen.showHelpButton(),n=!0,this.showScreen(this.wizardScreen),this.hideLoadingScreen());else if(P.isString(t)&&"onExit"===t)console.log("workflow - PERFORM_CLEANING:: onExit"),this.wizardScreen.setProgressBar(0,0),this.hideMsgBox(),this.showLoadingScreen(),this.wizardScreen.hide(),this.helpScreen.hide();else if(P.isObject(t)&&P.isString(t.type)&&t.type===_.EV_HMI_BTN_CLICKED){if(t.payload.buttonId===r.btn.next.getButtonId())O++,n=!0;else if(t.payload.buttonId===r.btn.previous.getButtonId())0===O?e.transition(this,this.INITIAL_ENTRY()):(O--,n=!0);else if(t.payload.buttonId===r.btn.confirm.getButtonId())e.transition(this,this.FUNCTIONAL_TEST());else if(t.payload.buttonId===this.wizardScreen.getHelpButtonId())this.helpScreen.show();else{if(t.payload.buttonId===r.btn.cancel.getButtonId())return this.handleHomeOrLogoutButtons({payload:{buttonId:"BTN_HOME"}}),"";t.payload.buttonId===r.btn.msg_ok.getButtonId()&&(this.hideMsgBox(),this.suspend())}this.handleHomeOrLogoutButtons(t)}
if(!0===n){console.log("workflow - cleaning:: change step"),console.log("Step: "+(O+1).toString()+"of"+L.length),this.wizardScreen.setProgressBar(O+1,L.length),this.wizardScreen.setHeadingTitle({id:L[O].title,args:[]}),this.wizardScreen.setScreenLayout(L[O].screenType);let e=[];for(let t=0;t<L[O].instruction.length;t++)e.push(S.createEmptyWizardScreenContent()),e[t].text=L[O].instruction[t];for(let t=0;t<L[O].imgRef.length;t++)e[t].img=L[O].imgRef[t];this.wizardScreen.setInstructionContent(e),this.helpScreen.setLink(L[O].helpLink,!1),this.helpScreen.hide(),O>=L.length-1?this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.previous,r.btn.confirm]):this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.previous,r.btn.next])}return""}FUNCTIONAL_TEST(e,t){if(!e&&!t)return this.IDEXTEND_STATE_SCREEN+this.FUNCTIONAL_TEST.name;if(!e&&P.isString(t)&&"GET_EVENT_LISTENER"===t)return JSON.stringify([_.EV_HMI_BTN_CLICKED,A.EV_MQTT_UPDATE])
;if(!t||!e)return console.log(" ## DEBUG ## "+this.FUNCTIONAL_TEST()+": Missing argument"),"";if(P.isString(t)&&"onEnter"===t){console.log("workflow - FUNCTIONAL_TEST:: onEnter"),this.wizardScreen.setProgressBar(0,this.maxTestNumber),this.helpScreen.setLink(E.HELP_SCREEN_LINK_PARAGRAPH[1]),r.btn.cancel=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.CANCEL,p.EnumAppearance.ENABLED,!0),r.btn.continue=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.NEXT,p.EnumAppearance.ENABLED_PRIMARY,!0),r.btn.skip=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.SKIP,p.EnumAppearance.ENABLED,!0);let e=[r.btn.continue.getLabel().id];R.clean_mode===E.EnumConfigCleanMode.BASIC?(this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.skip,r.btn.continue]),e.push(r.l("_QAPP514_INFO_SKIP_FUNCTIONAL_TEST")),e.push(r.btn.skip.getLabel().id)):(this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.continue]),e.push("")),
this.wizardScreen.setScreenLayout(S.EnumWizardScreenLayout.WITHOUTIMAGE),this.wizardScreen.setHeadingTitle({id:r.l("_QAPP514_SCREENTITLE_FUNCTIONAL_TEST"),args:[]}),this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_FUNCTIONAL_TEST"),args:e}),this.showScreen(this.wizardScreen),this.hideLoadingScreen(),this.helpScreen.setLink(""),this.maxTestNumber=1,this.elise===E.EnumBalancePropertiesFlag.PRESENT&&this.maxTestNumber++,[E.EnumDraftshieldType.NONE,E.EnumDraftshieldType.FLAT,E.EnumDraftshieldType.FILTER].includes(this.draftshieldType)||this.maxTestNumber++,this.currentTestNumber=0}else if(P.isString(t)&&"onExit"===t)this.hideMsgBox(),this.showLoadingScreen(),this.wizardScreen.hide(),this.helpScreen.hide();else if(P.isObject(t)&&P.isString(t.type)&&t.type===_.EV_HMI_BTN_CLICKED){
if(t.payload.buttonId===r.btn.continue.getButtonId())e.transition(this,this.TEST_LEVELLING());else if(t.payload.buttonId===r.btn.skip.getButtonId())console.log("workflow - FUNCTIONAL_TEST:: skip tests"),e.transition(this,this.FINISH_PROCESS());else{if(t.payload.buttonId===r.btn.cancel.getButtonId())return this.handleHomeOrLogoutButtons({payload:{buttonId:"BTN_HOME"}}),"";t.payload.buttonId===this.wizardScreen.getHelpButtonId()&&this.helpScreen.show()}this.handleHomeOrLogoutButtons(t)}return""}TEST_LEVELLING(e,t){if(!e&&!t)return this.IDEXTEND_STATE_SCREEN+this.TEST_LEVELLING.name;if(!e&&P.isString(t)&&"GET_EVENT_LISTENER"===t)return JSON.stringify([_.EV_HMI_BTN_CLICKED,A.EV_MQTT_UPDATE]);if(!t||!e)return console.log(" ## DEBUG ## "+this.TEST_LEVELLING()+": Missing argument"),"";if(P.isString(t)&&"onEnter"===t)console.log("workflow - TEST_LEVELLING:: onEnter"),this.elise===E.EnumBalancePropertiesFlag.ABSENT?(console.log("workflow - TEST_LEVELLING:: not possible"),
this.currentTestNumber--,e.transition(this,this.TEST_INTERNAL_WEIGHT())):(this.wizardScreen.setProgressBar(this.currentTestNumber+1,this.maxTestNumber),this.helpScreen.setLink(""),r.btn.cancel=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.CANCEL,p.EnumAppearance.ENABLED,!0),r.btn.continue=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.NEXT,p.EnumAppearance.ENABLED_PRIMARY,!0),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.continue]),this.wizardScreen.setScreenLayout(S.EnumWizardScreenLayout.WITHOUTIMAGE),this.wizardScreen.setHeadingTitle({id:r.l("_QAPP514_SCREENTITLE_LEVELING_TEST"),args:[]}),this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_LEVELING_TEST"),args:["<b>></b>"]}),this.showScreen(this.wizardScreen),this.mqttHandler.subscribe(T.MqttTopics.LEVELING_CLOSE),this.addTimer(100,E.TIMER_LEVELING));else if(P.isString(t)&&"onExit"===t)console.log("workflow - TEST_LEVELLING:: onExit"),
this.currentTestNumber++,this.mqttHandler.unsubscribe(T.MqttTopics.LEVELING_STATUS),this.mqttHandler.unsubscribe(T.MqttTopics.LEVELING_CLOSE),this.hideMsgBox(),this.showLoadingScreen(),this.wizardScreen.hide(),this.helpScreen.hide();else if(P.isObject(t)&&P.isString(t.type)&&t.type===_.EV_HMI_BTN_CLICKED){if(t.payload.buttonId===r.btn.continue.getButtonId())!0===this.isLevelled?(console.log("workflow - TEST_LEVELLING:: leveled"),e.transition(this,this.TEST_INTERNAL_WEIGHT())):(console.log("workflow - TEST_LEVELLING:: start leveling"),this.levelingTestStatus="running",this.perform_InternalWebserviceRequest("leveling","start",{}));else{if(t.payload.buttonId===r.btn.cancel.getButtonId())return this.handleHomeOrLogoutButtons({payload:{buttonId:"BTN_HOME"}}),"";t.payload.buttonId===this.wizardScreen.getHelpButtonId()&&this.helpScreen.show()}this.handleHomeOrLogoutButtons(t)
}else if(P.isObject(t)&&t.type&&t.type===l.QAPP_TIMER_EVENT)P.isString(t.payload)&&t.payload===E.TIMER_LEVELING&&(this.mqttHandler.subscribe(T.MqttTopics.LEVELING_STATUS),this.hideLoadingScreen());else if(P.isObject(t)&&t.type&&t.type===A.EV_MQTT_UPDATE)if(P.isObject(t)&&P.isObject(t.payload)&&t.payload.topic===T.MqttTopics.LEVELING_STATUS){let n;try{n=JSON.parse(t.payload.value.toString())}catch(e){n={leveled:"FAILURE"}}P.isObject(n)&&P.isBoolean(n.leveled)&&(this.isLevelled=n.leveled),void 0===this.levelingTestStatus&&(this.isLevelled?(console.log("workflow - TEST_LEVELLING:: leveled"),e.transition(this,this.TEST_INTERNAL_WEIGHT())):(console.log("workflow - TEST_LEVELLING:: start leveling"),this.levelingTestStatus="running",this.perform_InternalWebserviceRequest("leveling","start",{})))}else if(P.isObject(t)&&P.isObject(t.payload)&&t.payload.topic===T.MqttTopics.LEVELING_CLOSE){let n;try{n=JSON.parse(t.payload.value.toString())}catch(e){n={state:"",complete:!1}}
P.isObject(n)&&P.isBoolean(n.complete)&&n.complete?(console.log("workflow - TEST_LEVELLING:: leveled"),this.levelingTestStatus=void 0,e.transition(this,this.TEST_INTERNAL_WEIGHT())):(console.log("workflow - TEST_LEVELLING:: leveling canceled"),this.levelingTestStatus="waiting")}return""}TEST_INTERNAL_WEIGHT(e,t){if(!e&&!t)return this.IDEXTEND_STATE_SCREEN+this.TEST_INTERNAL_WEIGHT.name;if(!e&&P.isString(t)&&"GET_EVENT_LISTENER"===t)return JSON.stringify([_.EV_HMI_BTN_CLICKED,A.EV_MQTT_UPDATE]);if(!t||!e)return console.log(" ## DEBUG ## "+this.TEST_INTERNAL_WEIGHT()+": Missing argument"),"";if(P.isString(t)&&"onEnter"===t){console.log("workflow - TEST_INTERNAL_WEIGHT:: onEnter"),this.wizardScreen.setProgressBar(this.currentTestNumber+1,this.maxTestNumber),r.btn.cancel=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.CANCEL,p.EnumAppearance.ENABLED,!0),
r.btn.continue=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.NEXT,p.EnumAppearance.ENABLED_PRIMARY,!0),r.btn.confirm=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.OK,p.EnumAppearance.DISABLED,!0),r.btn.retry=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.RELOAD,p.EnumAppearance.DISABLED,!0),r.btn.msg_timeout_ok=this.createMessageButton(s.EnumFontLabels.OK),r.btn.msg_rest_ok=this.createMessageButton(s.EnumFontLabels.OK),this.wizardScreen.setScreenLayout(S.EnumWizardScreenLayout.WITHOUTIMAGE),this.helpScreen.setLink(E.HELP_SCREEN_LINK_PARAGRAPH[12]);let e=["",this.localizerProxy.getText(r.l("_QAPP514_INFO_TEST_INTERNAL_WEIGHT_START")),"<b>></b>"];this.wizardScreen.setHeadingTitle({id:r.l("_QAPP514_SCREENTITLE_WEIGHT_TEST"),args:[]}),this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_TEST_INTERNAL_WEIGHT_MAIN"),args:e}),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.continue]),
this.showScreen(this.wizardScreen),this.hideLoadingScreen(),console.log("workflow - TEST_INTERNAL_WEIGHT:: set ambient condition"),this.weighingProxy.setAmbientCondition(u.AMBIENT_CONDITION.VERY_UNSTABLE),this.internalWeightTestStatus=void 0,this.mqttHandler.subscribe(T.MqttTopics.SENSOR_ACTOR_WEIGHT)}else if(P.isString(t)&&"onExit"===t)console.log("workflow - TEST_INTERNAL_WEIGHT:: onExit"),this.mqttHandler.unsubscribe(T.MqttTopics.SENSOR_ACTOR_WEIGHT),this.currentTestNumber++,this.hideMsgBox(),this.showLoadingScreen(),this.wizardScreen.hide(),this.helpScreen.hide();else if(P.isObject(t)&&P.isString(t.type)&&t.type===_.EV_HMI_BTN_CLICKED){if(t.payload.buttonId===r.btn.continue.getButtonId()||t.payload.buttonId===r.btn.retry.getButtonId()){console.log("workflow - TEST_INTERNAL_WEIGHT:: start test"),r.btn.cancel.setAppearance(p.EnumAppearance.DISABLED),r.btn.retry.setAppearance(p.EnumAppearance.DISABLED),r.btn.confirm.setAppearance(p.EnumAppearance.DISABLED),
this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.retry,r.btn.confirm]);let e=["",""];this.internalWeightTestStatus="running",this.timerStabilityLink=this.addTimer(2e4,E.TIMER_STABILITY),this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_TEST_INTERNAL_WEIGHT_MAIN"),args:e})}else if(t.payload.buttonId===r.btn.confirm.getButtonId())this.draftshieldControl===E.EnumDraftshieldControl.MOTORIC?e.transition(this,this.TEST_MOTORIC_DRAFTSHIELD()):this.draftshieldControl===E.EnumDraftshieldControl.MANUAL?e.transition(this,this.TEST_MANUAL_DRAFTSHIELD()):e.transition(this,this.FINISH_PROCESS());else{if(t.payload.buttonId===r.btn.cancel.getButtonId())return this.handleHomeOrLogoutButtons({payload:{buttonId:"BTN_HOME"}}),"";t.payload.buttonId===r.btn.msg_timeout_ok.getButtonId()?this.hideMsgBox():t.payload.buttonId===this.wizardScreen.getHelpButtonId()&&this.helpScreen.show()}this.handleHomeOrLogoutButtons(t)}else if(P.isObject(t)&&t.type&&t.type===l.QAPP_TIMER_EVENT){
if(console.log("workflow - TEST_INTERNAL_WEIGHT:: timeout"),P.isString(t.payload)&&t.payload===E.TIMER_STABILITY&&"running"===this.internalWeightTestStatus){this.internalWeightTestStatus=void 0,r.btn.cancel.setAppearance(p.EnumAppearance.ENABLED),r.btn.retry.setAppearance(p.EnumAppearance.ENABLED_PRIMARY),r.btn.confirm.setAppearance(p.EnumAppearance.DISABLED),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.retry,r.btn.confirm]),this.showMessageBox(i.EnumMessageboxType.WARNING,r.l("_QAPP514_HEADER_WEIGHT_TIMEOUT_ERROR"),r.l("_QAPP514_MESSAGE_WEIGHT_TIMEOUT_ERROR"),[r.btn.msg_timeout_ok]);let e=[this.localizerProxy.getText(r.l("_QAPP514_INFO_TEST_INTERNAL_WEIGHT_STABILITY_FAILED")),this.localizerProxy.getText(r.l("_QAPP514_INFO_TEST_INTERNAL_WEIGHT_RETRY")),this.localizerProxy.getText(r.btn.retry.getLabel().id).toUpperCase()];this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_TEST_INTERNAL_WEIGHT_MAIN"),args:e})}
}else if(P.isObject(t)&&t.type&&t.type===A.EV_MQTT_UPDATE&&P.isObject(t)&&P.isObject(t.payload)&&t.payload.topic===T.MqttTopics.SENSOR_ACTOR_WEIGHT&&"running"===this.internalWeightTestStatus&&t.payload.value){let e=JSON.parse(t.payload.value.toString());if(e.statusBlock.scaleStatus.isUnderflow||e.statusBlock.scaleStatus.isOverflow){console.log("workflow - TEST_INTERNAL_WEIGHT:: LOW / HIGH"),console.log("workflow - TEST_INTERNAL_WEIGHT:: LOW: "+e.statusBlock.scaleStatus.isUnderflow),console.log("workflow - TEST_INTERNAL_WEIGHT:: HIGH: "+e.statusBlock.scaleStatus.isOverflow),this.internalWeightTestStatus=void 0,this.cancelTimer(this.timerStabilityLink),r.btn.cancel.setAppearance(p.EnumAppearance.ENABLED),r.btn.retry.setAppearance(p.EnumAppearance.ENABLED_PRIMARY),r.btn.confirm.setAppearance(p.EnumAppearance.DISABLED),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.retry,r.btn.confirm]),
this.showMessageBox(i.EnumMessageboxType.WARNING,r.l("_QAPP514_HEADER_WEIGHT_LOW_HIGH_ERROR"),r.l("_QAPP514_MESSAGE_WEIGHT_LOW_HIGH_ERROR"),[r.btn.msg_timeout_ok]);let t=[this.localizerProxy.getText(r.l("_QAPP514_INFO_TEST_INTERNAL_WEIGHT_LOW_HIGH")),this.localizerProxy.getText(r.l("_QAPP514_INFO_TEST_INTERNAL_WEIGHT_RETRY")),this.localizerProxy.getText(r.btn.retry.getLabel().id).toUpperCase()];this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_TEST_INTERNAL_WEIGHT_MAIN"),args:t})}else if(e.statusBlock.scaleStatus.isStable){console.log("workflow - TEST_INTERNAL_WEIGHT:: success"),this.internalWeightTestStatus="success",this.cancelTimer(this.timerStabilityLink),r.btn.cancel.setAppearance(p.EnumAppearance.ENABLED),r.btn.retry.setAppearance(p.EnumAppearance.ENABLED),r.btn.confirm.setAppearance(p.EnumAppearance.ENABLED_PRIMARY),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.retry,r.btn.confirm])
;let e=[this.localizerProxy.getText(r.l("_QAPP514_INFO_TEST_INTERNAL_WEIGHT_SUCCESS")),this.localizerProxy.getText(r.l("_QAPP514_INFO_TEST_INTERNAL_WEIGHT_CONFIRM")),r.btn.confirm.getLabel().id];this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_TEST_INTERNAL_WEIGHT_MAIN"),args:e})}}return""}TEST_MOTORIC_DRAFTSHIELD(e,t){if(!e&&!t)return this.IDEXTEND_STATE_SCREEN+this.TEST_MOTORIC_DRAFTSHIELD.name;if(!e&&P.isString(t)&&"GET_EVENT_LISTENER"===t)return JSON.stringify([_.EV_HMI_BTN_CLICKED,A.EV_MQTT_UPDATE]);if(!t||!e)return console.log(" ## DEBUG ## "+this.TEST_MOTORIC_DRAFTSHIELD()+": Missing argument"),"";if(P.isString(t)&&"onEnter"===t)if(console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: onEnter"),console.log("workflow:: reactivate actuators"),this.perform_InternalWebserviceRequest("deviceinformation","setActuatorsActive",{active:!1}),
this.draftshieldType===E.EnumDraftshieldType.NONE||this.draftshieldType===E.EnumDraftshieldType.FLAT||this.draftshieldType===E.EnumDraftshieldType.FILTER)e.transition(this,this.FINISH_PROCESS());else{this.wizardScreen.setProgressBar(this.currentTestNumber+1,this.maxTestNumber),this.helpScreen.setLink(E.HELP_SCREEN_LINK_PARAGRAPH[10]),r.btn.continue=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.NEXT,p.EnumAppearance.ENABLED_PRIMARY,!0),r.btn.cancel=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.CANCEL,p.EnumAppearance.ENABLED,!0),r.btn.confirm=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.OK,p.EnumAppearance.ENABLED_PRIMARY,!0),r.btn.info=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.INFO,p.EnumAppearance.ENABLED,!0),r.btn.retry=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.RELOAD,p.EnumAppearance.ENABLED,!0),
r.btn.msg_close_info=this.createMessageButton(s.EnumFontLabels.PREV),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.continue]),this.wizardScreen.setScreenLayout(S.EnumWizardScreenLayout.WITHOUTIMAGE);let e=[this.localizerProxy.getText(r.l("_QAPP514_INFO_TEST_DRAFTSHIELD_START")),"","<b>></b>"];this.wizardScreen.setHeadingTitle({id:r.l("_QAPP514_SCREENTITLE_DRAFTSHIELD_TEST"),args:[]}),this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_TEST_DRAFTSHIELD_MAIN"),args:e}),this.showScreen(this.wizardScreen),this.hideLoadingScreen()}else if(P.isString(t)&&"onExit"===t)console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: onExit"),this.hideMsgBox(),this.showLoadingScreen(),this.wizardScreen.hide(),this.helpScreen.hide();else if(P.isObject(t)&&P.isString(t.type)&&t.type===_.EV_HMI_BTN_CLICKED){if(t.payload.buttonId===r.btn.continue.getButtonId()||t.payload.buttonId===r.btn.retry.getButtonId()){console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: start test"),
r.btn.cancel.setAppearance(p.EnumAppearance.DISABLED),r.btn.retry.setAppearance(p.EnumAppearance.DISABLED),r.btn.info.setAppearance(p.EnumAppearance.DISABLED),r.btn.confirm.setAppearance(p.EnumAppearance.DISABLED),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.retry,r.btn.info,r.btn.confirm]);let e=["",""];this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_TEST_DRAFTSHIELD_MAIN"),args:e}),this.timerDraftshieldLink=this.addTimer(this.handlingTime,E.TIMER_DRAFTSHIELD);const t=new Promise((e,t)=>{setTimeout(()=>e(""),500)});this.draftshieldTestStatus="start",this.perform_InternalWebserviceRequest("draftshield","closeAll",{}).isSuccess()||(console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: call failed"),this.cancelTimer(this.timerDraftshieldLink),this.exceptionResion="call",this.draftshieldTestStatus="failed"),t.then(e=>this.mqttHandler.subscribe(T.MqttTopics.DRAFTSHIELD_POSITION))
}else if(t.payload.buttonId===r.btn.confirm.getButtonId())e.transition(this,this.FINISH_PROCESS());else if(t.payload.buttonId===r.btn.info.getButtonId())this.showMessageBox(i.EnumMessageboxType.INFO,r.l("_QAPP514_HEADER_INFO_DS_BUTTONS"),r.l("_QAPP514_MESSAGE_INFO_DS_BUTTONS"),[r.btn.msg_close_info]);else if(t.payload.buttonId===r.btn.msg_close_info.getButtonId())this.hideMsgBox();else if(t.payload.buttonId===this.wizardScreen.getHelpButtonId())this.helpScreen.show();else if(t.payload.buttonId===r.btn.cancel.getButtonId())return this.handleHomeOrLogoutButtons({payload:{buttonId:"BTN_HOME"}}),"";this.handleHomeOrLogoutButtons(t)}else if(P.isObject(t)&&t.type&&t.type===l.QAPP_TIMER_EVENT)this.exceptionResion="timer",this.draftshieldTestStatus="failed";else if(P.isObject(t)&&t.type&&t.type===A.EV_MQTT_UPDATE&&P.isObject(t)&&P.isObject(t.payload)&&t.payload.topic===T.MqttTopics.DRAFTSHIELD_POSITION&&t.payload.value){let e,n=JSON.parse(t.payload.value)
;"start"===this.draftshieldTestStatus?"MOVE"!==n.state&&(console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: open left"),this.draftshieldTestStatus="left",e=this.perform_InternalWebserviceRequest("draftshield","openLeft",{})):"left"===this.draftshieldTestStatus&&"OPEN"===n.state?(console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: close"),this.draftshieldTestStatus="closeFromLeft",e=this.perform_InternalWebserviceRequest("draftshield","closeAll",{})):"closeFromLeft"===this.draftshieldTestStatus&&"CLOSED"===n.state?(console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: open right"),this.draftshieldTestStatus="right",e=this.perform_InternalWebserviceRequest("draftshield","openRight",{})):"right"===this.draftshieldTestStatus&&"OPEN"===n.state?this.draftshieldType===E.EnumDraftshieldType.ROWI?(console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: close all"),this.draftshieldTestStatus="close",
e=this.perform_InternalWebserviceRequest("draftshield","closeAll",{})):(console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: close"),this.draftshieldTestStatus="closeFromRight",e=this.perform_InternalWebserviceRequest("draftshield","closeAll",{})):"closeFromRight"===this.draftshieldTestStatus&&"CLOSED"===n.state?(console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: open top"),this.draftshieldTestStatus="top",e=this.perform_InternalWebserviceRequest("draftshield","openTop",{})):"top"===this.draftshieldTestStatus&&"OPEN"===n.state?(console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: close all"),this.draftshieldTestStatus="close",e=this.perform_InternalWebserviceRequest("draftshield","closeAll",{})):"close"===this.draftshieldTestStatus&&"CLOSED"===n.state?(console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: closed"),this.cancelTimer(this.timerDraftshieldLink),
this.draftshieldTestStatus="success"):("left"!==this.draftshieldTestStatus&&"right"!==this.draftshieldTestStatus&&"top"!==this.draftshieldTestStatus||"CLOSED"!==n.state)&&("close"!==this.draftshieldTestStatus&&"closeFromLeft"!==this.draftshieldTestStatus&&"closeFromRight"!==this.draftshieldTestStatus||"OPEN"!==n.state)||(console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: movement failed"),this.cancelTimer(this.timerDraftshieldLink),this.exceptionResion=this.draftshieldTestStatus,this.draftshieldTestStatus="failed"),e&&!e.isSuccess()&&(console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: call failed"),this.cancelTimer(this.timerDraftshieldLink),this.exceptionResion="call",this.draftshieldTestStatus="failed")}if("success"===this.draftshieldTestStatus){console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: success"),this.draftshieldTestStatus=void 0,this.mqttHandler.unsubscribe(T.MqttTopics.DRAFTSHIELD_POSITION),r.btn.cancel.setAppearance(p.EnumAppearance.ENABLED),
r.btn.retry.setAppearance(p.EnumAppearance.ENABLED),r.btn.info.setAppearance(p.EnumAppearance.ENABLED),r.btn.confirm.setAppearance(p.EnumAppearance.ENABLED_PRIMARY),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.retry,r.btn.info,r.btn.confirm]);let e=[this.localizerProxy.getText(r.l("_QAPP514_INFO_TEST_DRAFTSHIELD_BUTTON")),this.localizerProxy.getText(r.l("_QAPP514_INFO_TEST_DRAFTSHIELD_CONFIRM")),r.btn.confirm.getLabel().id,this.localizerProxy.getText(r.btn.retry.getLabel().id).toUpperCase()];this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_TEST_DRAFTSHIELD_MAIN"),args:e})}if("failed"===this.draftshieldTestStatus){console.log("workflow - TEST_MOTORIC_DRAFTSHIELD:: test failed while "+this.exceptionResion),this.draftshieldTestStatus=void 0,this.mqttHandler.unsubscribe(T.MqttTopics.DRAFTSHIELD_POSITION),r.btn.cancel.setAppearance(p.EnumAppearance.ENABLED),r.btn.retry.setAppearance(p.EnumAppearance.ENABLED_PRIMARY),
r.btn.info.setAppearance(p.EnumAppearance.ENABLED),r.btn.confirm.setAppearance(p.EnumAppearance.DISABLED),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.retry,r.btn.info,r.btn.confirm]);let e=["",this.localizerProxy.getText(r.l("_QAPP514_INFO_TEST_DRAFTSHIELD_FAILED")),this.localizerProxy.getText(r.btn.retry.getLabel().id).toUpperCase()];this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_TEST_DRAFTSHIELD_MAIN"),args:e})}return""}TEST_MANUAL_DRAFTSHIELD(e,t){if(!e&&!t)return this.IDEXTEND_STATE_SCREEN+this.TEST_MANUAL_DRAFTSHIELD.name;if(!e&&P.isString(t)&&"GET_EVENT_LISTENER"===t)return JSON.stringify([_.EV_HMI_BTN_CLICKED]);if(!t||!e)return console.log(" ## DEBUG ## "+this.TEST_MANUAL_DRAFTSHIELD()+": Missing argument"),"";if(P.isString(t)&&"onEnter"===t)console.log("workflow - TEST_MANUAL_DRAFTSHIELD:: onEnter"),
this.draftshieldType===E.EnumDraftshieldType.NONE||this.draftshieldType===E.EnumDraftshieldType.FLAT||this.draftshieldType===E.EnumDraftshieldType.FILTER?e.transition(this,this.FINISH_PROCESS()):(this.wizardScreen.setProgressBar(this.currentTestNumber+1,this.maxTestNumber),this.helpScreen.setLink(E.HELP_SCREEN_LINK_PARAGRAPH[10]),r.btn.cancel=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.CANCEL,p.EnumAppearance.ENABLED,!0),r.btn.confirm=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.OK,p.EnumAppearance.ENABLED_PRIMARY,!0),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.confirm]),this.wizardScreen.setScreenLayout(S.EnumWizardScreenLayout.WITHOUTIMAGE),this.wizardScreen.setHeadingTitle({id:r.l("_QAPP514_SCREENTITLE_DRAFTSHIELD_TEST"),args:[]}),this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_TEST_MANUAL_DRAFTSHIELD"),args:[r.btn.confirm.getLabel().id]}),this.showScreen(this.wizardScreen),
this.hideLoadingScreen());else if(P.isString(t)&&"onExit"===t)console.log("workflow - TEST_MANUAL_DRAFTSHIELD:: onExit"),this.hideMsgBox(),this.showLoadingScreen(),this.wizardScreen.hide(),this.helpScreen.hide();else if(P.isObject(t)&&P.isString(t.type)&&t.type===_.EV_HMI_BTN_CLICKED){if(t.payload.buttonId===r.btn.confirm.getButtonId())e.transition(this,this.FINISH_PROCESS());else if(t.payload.buttonId===this.wizardScreen.getHelpButtonId())this.helpScreen.show();else if(t.payload.buttonId===r.btn.cancel.getButtonId())return this.handleHomeOrLogoutButtons({payload:{buttonId:"BTN_HOME"}}),"";this.handleHomeOrLogoutButtons(t)}return""}FINISH_PROCESS(e,t){if(!e&&!t)return this.IDEXTEND_STATE_SCREEN+this.FINISH_PROCESS.name;if(!e&&P.isString(t)&&"GET_EVENT_LISTENER"===t)return JSON.stringify([_.EV_HMI_BTN_CLICKED,A.EV_MQTT_UPDATE]);if(!t||!e)return console.log(" ## DEBUG ## "+this.FINISH_PROCESS()+": Missing argument"),"";let n=!1
;if(P.isString(t)&&"onEnter"===t)console.log("workflow - FINISH_PROCESS:: onEnter"),this.wizardScreen.setProgressBar(0,0),this.helpScreen.setLink(""),r.btn.cancel=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.CANCEL,p.EnumAppearance.DISABLED,!0),r.btn.done=this.createButton(this.wizardScreen,"TASK/DYNAMIC_BUTTON_",s.EnumFontLabels.OK,p.EnumAppearance.DISABLED,!0),R.esig_enabled===E.EnumConfigEnabled.ENABLED?this.mqttHandler.publish(T.MqttTopics.ESIGNATURE_PERFORM,JSON.stringify({appearance:p.EnumAppearance.ENABLED})):n=!0,this.hideLoadingScreen();else if(P.isString(t)&&"onExit"===t)console.log("workflow - FINISH_PROCESS:: onExit"),this.hideMsgBox(),this.showLoadingScreen(),this.wizardScreen.hide(),this.helpScreen.hide();else if(P.isObject(t)&&P.isString(t.type)&&t.type===_.EV_HMI_BTN_CLICKED){if(t.payload.buttonId===r.btn.done.getButtonId())this.perform_InternalWebserviceRequest("deviceinformation","setDeviceCleaned",{cleaningMode:R.clean_mode.toString(),
taskName:this.getTaskName()}),this.suspend();else if(t.payload.buttonId===this.wizardScreen.getHelpButtonId())this.helpScreen.show();else if(t.payload.buttonId===r.btn.cancel.getButtonId())return this.handleHomeOrLogoutButtons({payload:{buttonId:"BTN_HOME"}}),"";this.handleHomeOrLogoutButtons(t)}let i=this.handleEsignatureResult(t);return!0===i.is_handled&&!0===i.result&&(n=!0),!0===this.handleEsignatureButtons(t).is_handled?"":(!0===n&&(r.btn.done.setAppearance(p.EnumAppearance.ENABLED_PRIMARY,!0),this.wizardScreen.setBarButtons([r.btn.cancel,r.btn.done]),this.wizardScreen.setScreenLayout(S.EnumWizardScreenLayout.WITHOUTIMAGE),this.wizardScreen.showHelpButton(),R.clean_mode===E.EnumConfigCleanMode.BASIC?(this.wizardScreen.setHeadingTitle({id:r.l("_QAPP514_SCREENTITLE_PROCESS_DONE"),args:[]}),this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_STANDARD_PROCESS_COMPLETE"),args:[r.btn.done.getLabel().id]})):(this.wizardScreen.setHeadingTitle({
id:r.l("_QAPP514_SCREENTITLE_PROCESS_DONE"),args:[]}),this.wizardScreen.setTextInstructionContent({id:r.l("_QAPP514_INFO_ADVANCED_PROCESS_COMPLETE"),args:[r.btn.done.getLabel().id]})),this.showScreen(this.wizardScreen)),"")}onSuspending(){console.log("workflow:: reactivate actuators"),this.perform_InternalWebserviceRequest("deviceinformation","setActuatorsActive",{active:!1}),console.log("workflow:: reactivate isoCal"),this.perform_InternalWebserviceRequest("calibrationadjustment","disableAutoIsoCal",{}),console.log("workflow:: removeRunningActivity 'CLEANING'"),this.perform_InternalWebserviceRequest("deviceinformation","removeRunningActivity",{rActivity:"CLEANING"}),console.log("workflow:: enableChecker 'BacErrorCodeChecker'"),this.perform_InternalWebserviceRequest("selfMonitor","enableChecker",{checkerId:"BacErrorCodeChecker"}),super.onSuspending()}__________________METHODS__________________(){}handleHomeOrLogoutButtons(e){
r.btn.msg_RESERVED_logout_yes.getButtonId()===r.PROXY_BUTTON_DEFAULT_ID&&(r.btn.msg_RESERVED_logout_yes=this.createMessageButton(r.l("_QAPP514_BUTTON_YES"))),r.btn.msg_RESERVERD_home_yes.getButtonId()===r.PROXY_BUTTON_DEFAULT_ID&&(r.btn.msg_RESERVERD_home_yes=this.createMessageButton(r.l("_QAPP514_BUTTON_YES"))),r.btn.msg_RESERVED_close_no.getButtonId()===r.PROXY_BUTTON_DEFAULT_ID&&(r.btn.msg_RESERVED_close_no=this.createMessageButton(r.l("_QAPP514_BUTTON_NO"))),
"BTN_HOME"===e.payload.buttonId?this.showMessageBox(i.EnumMessageboxType.QUESTION,r.l("_QAPP_LIB_MBOX_HOME_WARNING_TITLE"),r.l("_QAPP_LIB_MBOX_HOME_WARNING_TEXT_top",!0)+"<br>"+r.l("_QAPP_LIB_MBOX_HOME_WARNING_TEXT_mid",[void 0!==this.getTaskName()?this.getTaskName():""])+"<br>"+r.l("_QAPP_LIB_MBOX_HOME_WARNING_TEXT_bottom"),[r.btn.msg_RESERVERD_home_yes,r.btn.msg_RESERVED_close_no]):"BTN_LOGOUT"===e.payload.buttonId?this.showMessageBox(i.EnumMessageboxType.QUESTION,r.l("_QAPP_LIB_MBOX_LOGOUT_WARNING_TITLE"),r.l("_QAPP_LIB_MBOX_LOGOUT_WARNING_TEXT_top",!0)+"<br>"+r.l("_QAPP_LIB_MBOX_LOGOUT_WARNING_TEXT_mid",[void 0!==this.getTaskName()?this.getTaskName():""])+"<br>"+r.l("_QAPP_LIB_MBOX_LOGOUT_WARNING_TEXT_bottom",!0),[r.btn.msg_RESERVED_logout_yes,r.btn.msg_RESERVED_close_no]):e.payload.buttonId===r.btn.msg_RESERVERD_home_yes.getButtonId()?(this.hideMsgBox(),this.suspend()):e.payload.buttonId===r.btn.msg_RESERVED_logout_yes.getButtonId()?(this.hideMsgBox(),this.rememberLogout(),
this.suspend()):e.payload.buttonId===r.btn.msg_RESERVED_close_no.getButtonId()&&this.hideMsgBox()}handleEsignatureResult(e){if(r.btn.msg_RESERVED_cancel_esignature_quit.getButtonId()===r.PROXY_BUTTON_DEFAULT_ID&&(r.btn.msg_RESERVED_cancel_esignature_quit=this.createMessageButton(s.EnumFontLabels.CANCEL)),r.btn.msg_RESERVED_cancel_esignature_repeat.getButtonId()===r.PROXY_BUTTON_DEFAULT_ID&&(r.btn.msg_RESERVED_cancel_esignature_repeat=this.createMessageButton(s.EnumFontLabels.RELOAD)),P.isObject(e)&&e.type&&e.type===A.EV_MQTT_UPDATE&&P.isObject(e)&&P.isObject(e.payload)&&e.payload.topic===T.MqttTopics.ESIGNATURE_RESULT){return!0===JSON.parse(e.payload.value.toString()).signatureSucessful?{is_handled:!0,result:!0}:(this.showMessageBox(i.EnumMessageboxType.WARNING,r.l("_QAPP514_HEADER_ESIGNATURE_FAILED"),r.l("_QAPP514_MESSAGE_ESIGNATURE_FAILED"),[r.btn.msg_RESERVED_cancel_esignature_quit,r.btn.msg_RESERVED_cancel_esignature_repeat]),{is_handled:!0,result:!1})}return{is_handled:!1,
result:!1}}handleEsignatureButtons(e){if(r.btn.msg_RESERVED_cancel_esignature_quit.getButtonId()===r.PROXY_BUTTON_DEFAULT_ID&&(r.btn.msg_RESERVED_cancel_esignature_quit=this.createMessageButton(r.l("_QAPP514_BUTTON_LOGOUT"))),r.btn.msg_RESERVED_cancel_esignature_repeat.getButtonId()===r.PROXY_BUTTON_DEFAULT_ID&&(r.btn.msg_RESERVED_cancel_esignature_repeat=this.createMessageButton(s.EnumFontLabels.RELOAD)),P.isObject(e)&&e.type&&e.type===_.EV_HMI_BTN_CLICKED){if(e.payload.buttonId===r.btn.msg_RESERVED_cancel_esignature_quit.getButtonId())return this.suspend(),{is_handled:!0};if(e.payload.buttonId===r.btn.msg_RESERVED_cancel_esignature_repeat.getButtonId())return this.hideMsgBox(),this.mqttHandler.publish(T.MqttTopics.ESIGNATURE_PERFORM,JSON.stringify({appearance:p.EnumAppearance.ENABLED})),{is_handled:!0}}return{is_handled:!1}}initializeProcessSteps(){O=0,L=[]
;for(let e=0;e<E.PROCESS_STEPS.length;e++)(E.PROCESS_STEPS[e].mode===E.EnumCleanMode.STANDARD_EXTENDED||E.checkMetchingCleaningMode(R.clean_mode,E.PROCESS_STEPS[e].mode))&&(E.PROCESS_STEPS[e].corpus===E.EnumCorpusModel.NO_MATTER||E.PROCESS_STEPS[e].corpus===E.EnumCorpusModel.CUBIS&&![E.EnumCorpusModel.FUSION,E.EnumCorpusModel.MASS_COMPERATOR].includes(this.corpusModel)||E.PROCESS_STEPS[e].corpus===this.corpusModel)&&(E.PROCESS_STEPS[e].draftshield===E.EnumDraftshieldType.NO_MATTER||E.PROCESS_STEPS[e].draftshield===E.EnumDraftshieldType.ANY&&this.draftshieldType!==E.EnumDraftshieldType.NONE&&this.draftshieldType!==E.EnumDraftshieldType.FLAT||E.PROCESS_STEPS[e].draftshield===this.draftshieldType)&&(E.PROCESS_STEPS[e].control===E.EnumDraftshieldControl.NO_MATTER||E.PROCESS_STEPS[e].control===E.EnumDraftshieldControl.ANY&&this.draftshieldControl!==E.EnumDraftshieldControl.NONE||E.PROCESS_STEPS[e].control===this.draftshieldControl)&&L.push(E.PROCESS_STEPS[e])}initializeHelpText(){let e=[]
;for(let t=0;t<E.HELP_TEXTS.length;t++)(E.HELP_TEXTS[t].corpus===E.EnumCorpusModel.NO_MATTER||E.HELP_TEXTS[t].corpus===E.EnumCorpusModel.CUBIS&&![E.EnumCorpusModel.FUSION,E.EnumCorpusModel.MASS_COMPERATOR].includes(this.corpusModel)||E.HELP_TEXTS[t].corpus===this.corpusModel)&&(E.HELP_TEXTS[t].draftshield===E.EnumDraftshieldType.NO_MATTER||E.HELP_TEXTS[t].draftshield===E.EnumDraftshieldType.ANY&&this.draftshieldType!==E.EnumDraftshieldType.NONE&&this.draftshieldType!==E.EnumDraftshieldType.FLAT||E.HELP_TEXTS[t].draftshield===this.draftshieldType)&&(E.HELP_TEXTS[t].control===E.EnumDraftshieldControl.NO_MATTER||E.HELP_TEXTS[t].control===E.EnumDraftshieldControl.ANY&&this.draftshieldControl!==E.EnumDraftshieldControl.NONE||E.HELP_TEXTS[t].control===this.draftshieldControl)&&(E.HELP_TEXTS[t].ionizer!==E.EnumIonizerType.NO_MATTER&&E.HELP_TEXTS[t].ionizer!==this.ionizer||e.push(E.HELP_TEXTS[t].helpSection));d={title:"_QAPP514_HELP_SCREEN_TITLE",content:e}}}if(t.QAPP=h,
__dirname.endsWith("workflow")){(new h).run()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;const _=n(28),i=n(17),s=n(67),a=n(115),r=n(15),E=n(116),o=n(9),T=n(62),A=n(10),I=n(42),l=n(109),N=n(65),c=n(27),S=n(89),u=n(0),P=n(117),p=n(16),d=n(64),R=n(14),O=n(118),L="STATE_CONNECTION_ASPECT_GET_TABLES",h="STATE_CONNECTION_ASPECT_CHECK_LOG_ENTITY",C="STATE_CONNECTION_ASPECT_CREATE_LOG_ENTITY_TABLE",D="STATE_CONNECTION_ASPECT_CHECK_ENTITIES",g="STATE_CONNECTION_ASPECT_CHECK_ENTITIES_GET_OLD_TABLES",m="STATE_CONNECTION_ASPECT_CHECK_ENTITIES_CHECK_MIGRATION",M="STATE_CONNECTION_ASPECT_CHECK_ENTITIES_DO_MIGRATION",H="STATE_CONNECTION_ASPECT_MIGRATION_FAILED_OR_NEEDED_WF",f="STATE_CONNECTION_ASPECT_INTERNAL_NEXT_STATE",y="STATE_CONNECTION_ASPECT_INTERNAL_CANCEL_STATE",b="STATE_CONNECTION_ASPECT_INTERNAL_SUSPEND",B="ASYNC_CHECK_LOG_ENTITY_TABLE_OPEN_CONN",G="ASYNC_CHECK_LOG_ENTITY_TABLE_GET_TABLE",U="ASYNC_CREATE_LOG_ENTITY_TABLE",v="ASYNC_CREATE_LOG_ENTITY_TABLE_LOG_CREATION",F="ASYNC_CHECK_ENTITIES_ADD_MIGRATION_LOG",Q="ASYNC_CHECK_CLOSE_MAIN_CONNECTION",W="ASYNC_CHECK_CLOSE_LOG_CONNECTION",w="TYPEORM_MAIN_CONNECTION",k="TYPEORM_LOG_CONNECTION",V="BTN_ID_CONNECTION_ASPECT_YES",x="BTN_ID_CONNECTION_ASPECT_NO"
;t.ConnectionAspect=class extends r.AbstractQAppAspect{constructor(){super(),this.foundTablesInDb=[],this.entityCheckResults=[],this.foundMissingTables=[],this.generalCheckMigrationLogStr="",this.migrationResult=void 0,this.databaseType="sqlite",this.databaseUpdateQAsked=!1,this.states={STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE:{_onEnter:function(e){e.aspects[S.CONNECTION_ASPECT].onEnter_STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE()},_onExit:function(){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload.from===S.STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE&&this.transition(e,t.payload.to)},QAPP_ASYNC_CALL_DONE_EVENT:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];this.transition(e,n.handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE(t))},QAPP_ASYNC_CALL_FAIL_EVENT:function(e,t){e.aspects[S.CONNECTION_ASPECT].handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE(t)},EV_HMI_BTN_CLICKED:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT]
;(t.payload.buttonId===T.ERRORMSGBOX_OK_BTN_ID||I.isMessageHandlerOkButton(t.payload.buttonId))&&(e.hideMsgBox(),e.deleteDBError(),n.cfg.workflow?this.transition(e,b):this.transition(e,y))}},STATE_CONNECTION_ASPECT_CHECK_LOG_ENTITY:{_onEnter:function(e){e.aspects[S.CONNECTION_ASPECT].onEnter_STATE_CONNECTION_ASPECT_CHECK_LOG_ENTITY()},_onExit:function(){},_transTo:{},_transFrom:{},QAPP_ASYNC_CALL_DONE_EVENT:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];this.transition(e,n.handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_LOG_ENTITY(t))},QAPP_ASYNC_CALL_FAIL_EVENT:function(e,t){e.aspects[S.CONNECTION_ASPECT].handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE(t)},EV_HMI_BTN_CLICKED:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];(t.payload.buttonId===T.ERRORMSGBOX_OK_BTN_ID||I.isMessageHandlerOkButton(t.payload.buttonId))&&(e.hideMsgBox(),e.deleteDBError(),n.cfg.workflow?this.transition(e,b):this.transition(e,y))}},
STATE_CONNECTION_ASPECT_CREATE_LOG_ENTITY_TABLE:{_onEnter:function(e){e.aspects[S.CONNECTION_ASPECT].onEnter_STATE_CONNECTION_ASPECT_CREATE_LOG_ENTITY_TABLE()},_onExit:function(){},_transTo:{},_transFrom:{},QAPP_ASYNC_CALL_DONE_EVENT:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];this.transition(e,n.handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CREATE_LOG_ENTITY_TABLE(t))},QAPP_ASYNC_CALL_FAIL_EVENT:function(e,t){e.aspects[S.CONNECTION_ASPECT].handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CREATE_LOG_ENTITY_TABLE(t)},EV_HMI_BTN_CLICKED:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];I.isMessageHandlerOkButton(t.payload.buttonId)||t.payload.buttonId===x?(e.hideMsgBox(),e.deleteDBError(),n.cfg.workflow?this.transition(e,b):this.transition(e,y)):t.payload.buttonId===V&&(e.hideMsgBox(),n.doCreateLogEntityTable())}},STATE_CONNECTION_ASPECT_GET_TABLES:{_onEnter:function(e){e.aspects[S.CONNECTION_ASPECT].onEnter_STATE_CONNECTION_ASPECT_GET_TABLES()},_onExit:function(){},
_transTo:{},_transFrom:{},QAPP_ASYNC_CALL_DONE_EVENT:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];this.transition(e,n.handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_GET_TABLES(t))},QAPP_ASYNC_CALL_FAIL_EVENT:function(e,t){e.aspects[S.CONNECTION_ASPECT].handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_GET_TABLES(t)},EV_HMI_BTN_CLICKED:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];I.isMessageHandlerOkButton(t.payload.buttonId)&&(e.hideMsgBox(),e.deleteDBError(),n.cfg.workflow?this.transition(e,b):this.transition(e,y))}},STATE_CONNECTION_ASPECT_CHECK_ENTITIES:{_onEnter:function(e){e.aspects[S.CONNECTION_ASPECT].onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES()},_onExit:function(){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload.from===D&&this.transition(e,t.payload.to)}},STATE_CONNECTION_ASPECT_CHECK_ENTITIES_GET_OLD_TABLES:{_onEnter:function(e){e.aspects[S.CONNECTION_ASPECT].onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_GET_OLD_TABLES()},
_onExit:function(){},_transTo:{},_transFrom:{},QAPP_ASYNC_CALL_DONE_EVENT:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];this.transition(e,n.handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_GET_OLD_TABLES(t))},QAPP_ASYNC_CALL_FAIL_EVENT:function(e,t){e.aspects[S.CONNECTION_ASPECT].handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_GET_OLD_TABLES(t)},IMMEDIATE_EVENT:function(e,t){t.payload.from===g&&this.transition(e,t.payload.to)},EV_HMI_BTN_CLICKED:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];I.isMessageHandlerOkButton(t.payload.buttonId)&&(e.hideMsgBox(),e.deleteDBError(),n.cfg.workflow?this.transition(e,b):this.transition(e,y))}},STATE_CONNECTION_ASPECT_CHECK_ENTITIES_CHECK_MIGRATION:{_onEnter:function(e){e.aspects[S.CONNECTION_ASPECT].onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_CHECK_MIGRATION()},_onExit:function(){},_transTo:{},_transFrom:{},QAPP_ASYNC_CALL_DONE_EVENT:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT]
;this.transition(e,n.handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_CHECK_MIGRATION(t))},QAPP_ASYNC_CALL_FAIL_EVENT:function(e,t){e.aspects[S.CONNECTION_ASPECT].handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_CHECK_MIGRATION(t)},EV_HMI_BTN_CLICKED:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];I.isMessageHandlerOkButton(t.payload.buttonId)&&(e.hideMsgBox(),e.deleteDBError(),n.cfg.workflow?this.transition(e,b):this.transition(e,y))}},STATE_CONNECTION_ASPECT_CHECK_ENTITIES_DO_MIGRATION:{_onEnter:function(e){e.aspects[S.CONNECTION_ASPECT].onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_DO_MIGRATION()},_onExit:function(){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload.from===M&&this.transition(e,t.payload.to)},QAPP_ASYNC_CALL_DONE_EVENT:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];this.transition(e,n.handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_DO_MIGRATION(t))},QAPP_ASYNC_CALL_FAIL_EVENT:function(e,t){
let n=e.aspects[S.CONNECTION_ASPECT];this.transition(e,n.handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_DO_MIGRATION(t))},EV_HMI_BTN_CLICKED:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];I.isMessageHandlerOkButton(t.payload.buttonId)||t.payload.buttonId===x?(e.hideMsgBox(),e.deleteDBError(),n.cfg.workflow?this.transition(e,b):this.transition(e,y)):t.payload.buttonId===V&&(e.hideMsgBox(),n.doMigration())}},STATE_CONNECTION_ASPECT_MIGRATION_FAILED_OR_NEEDED_WF:{_onEnter:function(e){e.aspects[S.CONNECTION_ASPECT].onEnter_STATE_CONNECTION_ASPECT_MIGRATION_FAILED_OR_NEEDED_WF()},_onExit:function(){},_transTo:{},_transFrom:{},QAPP_ASYNC_CALL_DONE_EVENT:function(e,t){e.aspects[S.CONNECTION_ASPECT].handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_MIGRATION_FAILED_OR_NEEDED_WF(t)},QAPP_ASYNC_CALL_FAIL_EVENT:function(e,t){e.aspects[S.CONNECTION_ASPECT].handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_MIGRATION_FAILED_OR_NEEDED_WF(t)},IMMEDIATE_EVENT:function(e,t){
t.payload.from===H&&this.transition(e,t.payload.to)},EV_HMI_BTN_CLICKED:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];I.isMessageHandlerOkButton(t.payload.buttonId)&&(e.hideMsgBox(),e.deleteDBError(),n.cfg.workflow?this.transition(e,b):this.transition(e,y))}},STATE_CONNECTION_ASPECT_INTERNAL_NEXT_STATE:{_onEnter:function(e){e.aspects[S.CONNECTION_ASPECT].onEnter_STATE_CONNECTION_ASPECT_INTERNAL_NEXT_STATE()},_onExit:function(){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload.from===f&&this.transition(e,t.payload.to)},QAPP_ASYNC_CALL_DONE_EVENT:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];this.transition(e,n.handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_INTERNAL_NEXT_STATE(t))},QAPP_ASYNC_CALL_FAIL_EVENT:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];this.transition(e,n.handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_INTERNAL_NEXT_STATE(t))}},STATE_CONNECTION_ASPECT_INTERNAL_CANCEL_STATE:{_onEnter:function(e){
e.aspects[S.CONNECTION_ASPECT].onEnter_STATE_CONNECTION_ASPECT_INTERNAL_CANCEL_STATE()},_onExit:function(){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload.from===y&&this.transition(e,t.payload.to)},QAPP_ASYNC_CALL_DONE_EVENT:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];this.transition(e,n.handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_INTERNAL_CANCEL_STATE(t))},QAPP_ASYNC_CALL_FAIL_EVENT:function(e,t){let n=e.aspects[S.CONNECTION_ASPECT];this.transition(e,n.handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_INTERNAL_CANCEL_STATE(t))}},STATE_CONNECTION_ASPECT_INTERNAL_SUSPEND:{_onEnter:function(e){e.aspects[S.CONNECTION_ASPECT].onEnter_STATE_CONNECTION_ASPECT_INTERNAL_SUSPEND()},_onExit:function(){},_transTo:{},_transFrom:{},QAPP_ASYNC_CALL_DONE_EVENT:function(e,t){e.aspects[S.CONNECTION_ASPECT].handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_INTERNAL_SUSPEND(t)},QAPP_ASYNC_CALL_FAIL_EVENT:function(e,t){
e.aspects[S.CONNECTION_ASPECT].handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_INTERNAL_SUSPEND(t)}}}}getId(){return S.CONNECTION_ASPECT}getAspectStates(){return this.states}init(e){this.client=e}configure(e){e.qappSpecificSqliteDatabaseLocation=void 0===e.qappSpecificSqliteDatabaseLocation||e.qappSpecificSqliteDatabaseLocation,super.configure(e);let t=this.cfg.taskHandler.getParameter(c.TASK_DYNAMIC_ID_DB_TYPES_PARAM_ID);void 0!==t?this.databaseType=t.value.selection.id:this.client.exitError("ConnectAspect::configure: ConnectionURLParameter not found in the taskHandler")}getConnection(){let e=void 0;try{e=s.getConnection(w)}catch(e){console.log("ConnectionAspect::getConnection: no connection found")}return e}getLogConnection(){let e=void 0;try{e=s.getConnection(k)}catch(e){console.log("ConnectionAspect::getLogConnection: no connection found")}return e}createLogEntry(e,t,n){if(!0===this.cfg.useLogTable){let _=new a.LogEntity;_.qappOrderNo=this.client.getQAppOrderNumber(),
_.qappVersion=this.client.getQAppVersion(),_.action=e,_.details=t,this.client.enqueAsyncCall(this.getLogConnection().getRepository(a.LogEntity).save(_),n)}else this.client.addToEventQueue(new o.QAppAsyncCallDoneEvent({sourceState:this.client.getCurrentState(),result:void 0,metadata:n}))}getConnectionOptions(e,t,n=!1){if("sqlite"===this.databaseType){let _=`${this.client.getStorageLocation(d.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_INDEPENDENT)}/qapp.sqlite`;return!0===this.cfg.qappSpecificSqliteDatabaseLocation&&(_=`${this.client.getStorageLocation(d.EnumPersistencyScope.PERSISTENCY_SCOPE_QAPP_SPECIFIC)}/qapp.sqlite`),{name:e,type:this.databaseType,database:_,synchronize:n,entities:t,subscribers:[E.QAppBaseSubscriber]}}if("postgres"===this.databaseType){
let _=this.client.taskHandler.getParameter(`${c.TASK_DYNAMIC_ID_DB_USERNAME_PARAM_ID}/${this.databaseType.toUpperCase()}`),i=this.client.taskHandler.getParameter(`${c.TASK_DYNAMIC_ID_DB_PASSWORD_PARAM_ID}/${this.databaseType.toUpperCase()}`),s=this.client.taskHandler.getParameter(`${c.TASK_DYNAMIC_ID_DB_DATABASE_PARAM_ID}/${this.databaseType.toUpperCase()}`),a=this.client.taskHandler.getParameter(`${c.TASK_DYNAMIC_ID_DB_IP_PARAM_ID}/${this.databaseType.toUpperCase()}`),r=this.client.taskHandler.getParameter(`${c.TASK_DYNAMIC_ID_DB_PORT_PARAM_ID}/${this.databaseType.toUpperCase()}`);return{name:e,type:this.databaseType,host:a.value.string,port:R.QuantityParameter.getValue(r),username:_.value.string,password:i.value.string,database:s.value.string,synchronize:n,entities:t,subscribers:[E.QAppBaseSubscriber]}}if("mssql"===this.databaseType){
let _=this.client.taskHandler.getParameter(`${c.TASK_DYNAMIC_ID_DB_USERNAME_PARAM_ID}/${this.databaseType.toUpperCase()}`),i=this.client.taskHandler.getParameter(`${c.TASK_DYNAMIC_ID_DB_PASSWORD_PARAM_ID}/${this.databaseType.toUpperCase()}`),s=this.client.taskHandler.getParameter(`${c.TASK_DYNAMIC_ID_DB_DATABASE_PARAM_ID}/${this.databaseType.toUpperCase()}`),a=this.client.taskHandler.getParameter(`${c.TASK_DYNAMIC_ID_DB_SCHEMA_PARAM_ID}/${this.databaseType.toUpperCase()}`),r=this.client.taskHandler.getParameter(`${c.TASK_DYNAMIC_ID_DB_IP_PARAM_ID}/${this.databaseType.toUpperCase()}`),o=this.client.taskHandler.getParameter(`${c.TASK_DYNAMIC_ID_DB_PORT_PARAM_ID}/${this.databaseType.toUpperCase()}`);return{name:e,type:this.databaseType,host:r.value.string,port:R.QuantityParameter.getValue(o),username:_.value.string,password:i.value.string,database:s.value.string,schema:a.value.string,synchronize:n,entities:t,subscribers:[E.QAppBaseSubscriber],requestTimeout:15e3,connectionTimeout:1e4,
maxQueryExecutionTime:1e4,dialectOptions:{options:{requestTimeout:1e4}},pool:{acquireTimeoutMillis:2e4}}}return{name:""}}onEnter_STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE(){console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE"),this.client.showLoadingScreen({id:"_QAPP_LIB_LOADING_SCREEN_ESTABLISHING_DATABASE_CONNECTION",args:[]});let e=this.getConnection();this.databaseUpdateQAsked=!1,void 0!==e&&e.isConnected?(console.log("already connected"),this.client.addToEventQueue(new o.ImmediateEvent({from:S.STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE,to:f}))):(console.log("open new connection"),this.client.enqueAsyncCall(s.createConnection(this.getConnectionOptions(w,this.cfg.qappEntities,this.cfg.syncByTypeorm)),S.STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE))}handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE(e){return console.log("ConnectionAspect::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE"),
console.log("Connected successfully"),h}handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE(e){console.log("ConnectionAspect::handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CONNECT_TO_DATABASE"),this.cfg.workflow?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_792_DB_CONN_WORKFLOW_ERROR,e.payload.reason):this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_797_DB_CONN_CONFWORKFLOW_ERROR,e.payload.reason)}onEnter_STATE_CONNECTION_ASPECT_CHECK_LOG_ENTITY(){if(console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_CHECK_LOG_ENTITY"),!0===this.cfg.useLogTable){let e=this.getLogConnection();void 0!==e&&e.isConnected?(console.log("Log connection already exists!"),this.getLogTable()):(console.log("Creating new log connection."),this.client.enqueAsyncCall(s.createConnection(this.getConnectionOptions(k,[a.LogEntity],this.cfg.syncByTypeorm)),B))}else{console.log("Skipping log table checking/creation!");let e=function(){
return _.__awaiter(this,void 0,void 0,function*(){})};this.client.enqueAsyncCall(e(),L)}}getLogTable(){let e=s.getConnection(k);this.client.enqueAsyncCall(function(){return _.__awaiter(this,void 0,void 0,function*(){let t=e.createQueryRunner();yield t.connect();try{return yield t.getTables([e.entityMetadatas[0].tableName])}finally{yield t.release()}})}(),G)}handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_LOG_ENTITY(e){if(console.log("ConnectionAspect::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_LOG_ENTITY"),!0!==this.cfg.useLogTable)return L;if(e.payload.metadata===B)return this.getLogTable(),"";if(e.payload.metadata===G){let t=s.getConnection(k);return void 0!==e.payload.result.find(e=>e.name===t.entityMetadatas[0].tableName)?L:this.cfg.workflow?(this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_791_DB_MIGRATION_RUNTIME_ERROR),""):C}return""}onEnter_STATE_CONNECTION_ASPECT_CREATE_LOG_ENTITY_TABLE(){
console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_CREATE_LOG_ENTITY_TABLE"),this.client.showMessageBox({type:A.EnumMessageboxType.QUESTION,title:{id:"_QAPP_LIB_MSG_BOX_TITLE_DATABASE_NOT_PREPARED_ERROR",args:[]},textList:[{id:"_QAPP_LIB_MSG_BOX_QUESTION_DATABASE_NOT_PREPARED_ERROR",args:[]}],buttons:[{appearance:u.EnumAppearance.ENABLED_SECONDARY,label:{id:"_QAPP_LIB_MBOX_BTN_YES",args:[]},id:V},{appearance:u.EnumAppearance.ENABLED_SECONDARY,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},id:x}]}),this.databaseUpdateQAsked=!0}doCreateLogEntityTable(){let e=this.getLogConnection();if(e&&e.isConnected){let t=this.databaseType,n=function(e){return _.__awaiter(this,void 0,void 0,function*(){let n=e.createQueryRunner();yield n.connect();try{return yield n.query(a.LOG_QUERY_STRINGS[t])}finally{yield n.release()}})};this.client.enqueAsyncCall(n(e),U)}else this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_796_DB_CONN_LOST_ERROR)}
handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CREATE_LOG_ENTITY_TABLE(e){return console.log("ConnectionAspect::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CREATE_LOG_ENTITY_TABLE"),e.payload.metadata===U?(this.createLogEntry(a.DB_LOG_ACTION_ADMIN,"Created log table in DB.",v),""):e.payload.metadata===v?L:""}handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CREATE_LOG_ENTITY_TABLE(e){e.payload.reason.name===N.QAppAsyncCallTimeoutErrorName?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_793_DB_OPERATION_TIMEOUT_ERROR):e.payload.reason.name===P.ConnectionLostErrorName?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_796_DB_CONN_LOST_ERROR):this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_790_GENERIC_DB_ERROR,e.payload.reason)}onEnter_STATE_CONNECTION_ASPECT_GET_TABLES(){console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_GET_TABLES");let e=this.getConnection();if(e&&e.isConnected){
let t=this.getTableNamesForAllEntities(e),n=function(e){return _.__awaiter(this,void 0,void 0,function*(){let n=e.createQueryRunner();yield n.connect();try{return yield n.getTables(t)}finally{yield n.release()}})};this.client.enqueAsyncCall(n(e),L)}else this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_796_DB_CONN_LOST_ERROR)}handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_GET_TABLES(e){return console.log("ConnectionAspect::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_GET_TABLES"),this.foundTablesInDb=e.payload.result,D}handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_GET_TABLES(e){console.log("ConnectionAspect::handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_GET_TABLES"),
e.payload.reason.name===N.QAppAsyncCallTimeoutErrorName?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_793_DB_OPERATION_TIMEOUT_ERROR):e.payload.reason.name===P.ConnectionLostErrorName?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_796_DB_CONN_LOST_ERROR):this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_790_GENERIC_DB_ERROR,e.payload.reason)}onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES(){console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES");let e=this.getConnection();if(e&&e.isConnected){this.generalCheckMigrationLogStr="",this.entityCheckResults=[],console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES: check expected tables to be found in DB");let t=!1;e.entityMetadatas.forEach(e=>{if(e.target!==a.LogEntity){let n=l.QAppBaseEntity.getSchemaVersionFromTableName(e.tableName);this.foundTablesInDb.find((t,n)=>t.name===e.tableName)?(console.log(`found table ${e.tableName}`),
this.entityCheckResults.push({metadata:e,expectedEntitySchemaVersion:n,lastFoundVersion:n,migrationNeeded:!0,migrationPossible:!1,migrationDoneSameVersion:!1,migrationDone:!1})):(t=!0,this.generalCheckMigrationLogStr+=`Missing table ${e.tableName}\n`,console.log(`missing table ${e.tableName} -> mark for searching older versions`),this.entityCheckResults.push({metadata:e,expectedEntitySchemaVersion:n,lastFoundVersion:NaN,migrationNeeded:!0,migrationPossible:!1,migrationDoneSameVersion:!1,migrationDone:!1}))}}),t?(console.log("some tables missing for this version of QApp"),this.client.addToEventQueue(new o.ImmediateEvent({from:D,to:g}))):(console.log("all current versions of tables found - nevertheless ask QApps for migrations (for the case that a QApp needs to update data in existing tables)"),this.client.addToEventQueue(new o.ImmediateEvent({from:D,to:m})))}else this.client.exitError("onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES: no connection object")}
onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_GET_OLD_TABLES(){console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_GET_OLD_TABLES");let e=this.getConnection();if(e&&e.isConnected){let t=[];if(this.entityCheckResults.forEach(e=>{if(Number.isNaN(e.lastFoundVersion)&&e.expectedEntitySchemaVersion>1){this.generalCheckMigrationLogStr+=`Check for older schema version tables for ${e.metadata.tableName}.\n`,console.log(`Check for older schema version tables for ${e.metadata.tableName}.`);for(let n=e.expectedEntitySchemaVersion;n>=1;n--){let _=l.QAppBaseEntity.generateTableNameWithVersion(l.QAppBaseEntity.getPureTableNameFromTableName(e.metadata.tableName),n);console.log(`add search for ${_}`),t.push(_)}
}else Number.isNaN(e.lastFoundVersion)?console.log(`Table ${e.metadata.tableName} not found but expected in schema version 1 - skip...`):console.log(`Table ${e.metadata.tableName} found in expected version ${e.expectedEntitySchemaVersion} - skip getting older schema version tables`)}),t.length<=0)console.log("No tables to search for."),this.client.addToEventQueue(new o.ImmediateEvent({from:g,to:m}));else{console.log(`Find tables: '${t}'`);let n=function(e){return _.__awaiter(this,void 0,void 0,function*(){let n=e.createQueryRunner();yield n.connect();try{return yield n.getTables(t)}finally{yield n.release()}})};this.client.enqueAsyncCall(n(e),g)}}else this.client.exitError("onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_GET_OLD_TABLES: no connection object")}handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_GET_OLD_TABLES(e){return console.log("ConnectionAspect::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_GET_OLD_TABLES"),
e.payload.metadata===g?(this.foundMissingTables=e.payload.result,this.entityCheckResults.forEach(e=>{if(Number.isNaN(e.lastFoundVersion)&&e.expectedEntitySchemaVersion>1)for(let t=e.expectedEntitySchemaVersion;t>=1;t--){let n=l.QAppBaseEntity.generateTableNameWithVersion(l.QAppBaseEntity.getPureTableNameFromTableName(e.metadata.tableName),t);if(this.foundMissingTables.find(e=>e.name===n)){e.lastFoundVersion=t,this.generalCheckMigrationLogStr+=`Found older schema version table ${n}.\n`,console.log(`Found older schema version table ${n}.`);break}}else Number.isNaN(e.lastFoundVersion)?console.log(`Table ${e.metadata.tableName} not found but expected in schema version 1 - skip...`):console.log(`Table ${e.metadata.tableName} found in expected version - skip...`)}),m):""}handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_GET_OLD_TABLES(e){console.log("ConnectionAspect::handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_GET_OLD_TABLES"),
e.payload.reason.name===N.QAppAsyncCallTimeoutErrorName?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_793_DB_OPERATION_TIMEOUT_ERROR):e.payload.reason.name===P.ConnectionLostErrorName?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_796_DB_CONN_LOST_ERROR):this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_790_GENERIC_DB_ERROR,e.payload.reason)}onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_CHECK_MIGRATION(){console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_CHECK_MIGRATION"),this.client.enqueAsyncCall(this.cfg.checkMigration(this.getConnection(),this.entityCheckResults),m)}handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_CHECK_MIGRATION(e){if(console.log("ConnectionAspect::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_CHECK_MIGRATION"),e.payload.metadata===m){this.migrationResult=e.payload.result,
this.migrationResult.logStr="QApp checkMigration() result:\n"+this.migrationResult.logStr,this.generalCheckMigrationLogStr.length>0&&(this.migrationResult.logStr=this.generalCheckMigrationLogStr+"\n"+this.migrationResult.logStr);let t="";switch(this.migrationResult.result){case S.EMigrationResult.MIGRATION_NOT_NEEDED:t=f;break;case S.EMigrationResult.MIGRATION_NEEDED:this.cfg.workflow?(this.migrationResult.logStr+="\nQApp not prepared in DB for running workflow",t=H):t=M;break;case S.EMigrationResult.MIGRATION_NOT_POSSIBLE:this.migrationResult.logStr+="\nQApp cannot migrate DB",t=H;break;default:this.client.exitError("ConnectAspec::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_CHECK_MIGRATION: EMigrationResult has unexpected value: "+this.migrationResult.result)}return t}return""}handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_CHECK_MIGRATION(e){
console.log("ConnectionAspect::handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_CHECK_MIGRATION"),e.payload.reason.name===N.QAppAsyncCallTimeoutErrorName?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_793_DB_OPERATION_TIMEOUT_ERROR):e.payload.reason.name===P.ConnectionLostErrorName?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_796_DB_CONN_LOST_ERROR):this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_790_GENERIC_DB_ERROR,e.payload.reason)}onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_DO_MIGRATION(){console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_DO_MIGRATION"),!1===this.databaseUpdateQAsked?(this.client.showMessageBox({type:A.EnumMessageboxType.QUESTION,title:{id:"_QAPP_LIB_MSG_BOX_TITLE_DATABASE_MIGRATION_NEEDED",args:[]},textList:[{id:"_QAPP_LIB_MSG_BOX_QUESTION_DATABASE_MIGRATION_NEEDED",args:[]}],buttons:[{appearance:u.EnumAppearance.ENABLED_SECONDARY,label:{
id:"_QAPP_LIB_MBOX_BTN_YES",args:[]},id:V},{appearance:u.EnumAppearance.ENABLED_SECONDARY,label:{id:"_QAPP_LIB_MBOX_BTN_NO",args:[]},id:x}]}),this.databaseUpdateQAsked=!0):this.doMigration()}handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_DO_MIGRATION(e){if(console.log("ConnectionAspect::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_DO_MIGRATION"),e.payload.metadata===M){this.migrationResult.result=e.payload.result.result,this.migrationResult.logStr+="\nQApp doMigration() result:\n"+e.payload.result.logStr;let t="";switch(this.migrationResult.result){case S.EMigrationResult.MIGRATION_FAILED:this.migrationResult.logStr+="\nQApp failed during DB migration",t=H;break;case S.EMigrationResult.MIGRATION_DONE:this.migrationResult.logStr+="\nQApp succeeded DB migration",console.log(`QApp succeeded DB migration: ${this.migrationResult.logStr}`),console.log("record migration log - after that we should be successfully connected"),
this.createLogEntry(a.DB_LOG_ACTION_MIGRATION_SUCCEEDED,this.migrationResult.logStr,F);break;default:this.client.exitError("EMigrationResult has unexpected value")}return t}return e.payload.metadata===F?(console.log("migration log successfully recorded - connected"),f):""}handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_DO_MIGRATION(e){return console.log("ConnectionAspect::handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_CHECK_ENTITIES_DO_MIGRATION"),e.payload.metadata===M?(this.migrationResult.result=S.EMigrationResult.MIGRATION_FAILED,e.payload.reason.name===N.QAppAsyncCallTimeoutErrorName?(this.migrationResult.logStr+="\nQApp failed during DB migration with timeout",H):(this.migrationResult.logStr+=`\nQApp failed during DB migration with error: ${this.getRootCauseStringForMigrationError(e.payload.reason)}`,
H)):e.payload.metadata===F?(e.payload.reason.name===N.QAppAsyncCallTimeoutErrorName?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_793_DB_OPERATION_TIMEOUT_ERROR):this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_790_GENERIC_DB_ERROR,e.payload.reason),""):""}doMigration(){this.client.enqueAsyncCall(function(e,t,n,i){return _.__awaiter(this,void 0,void 0,function*(){let _=e.createQueryRunner();yield _.connect(),yield _.startTransaction(O.getIsolationLevel(i));try{let e=yield t(_,n);return yield _.commitTransaction(),e}catch(e){throw yield _.rollbackTransaction(),e}finally{yield _.release()}})}(this.getConnection(),this.cfg.doMigration,this.entityCheckResults,this.databaseType),M)}getRootCauseStringForMigrationError(e){return`${e.name}: ${e.message}`}onEnter_STATE_CONNECTION_ASPECT_MIGRATION_FAILED_OR_NEEDED_WF(){console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_MIGRATION_FAILED_OR_NEEDED_WF"),
this.cfg.workflow?this.createLogEntry(a.DB_LOG_ACTION_MIGRATION_NEEDED_WORKFLOW,this.migrationResult.logStr,H):this.createLogEntry(a.DB_LOG_ACTION_MIGRATION_FAILED,this.migrationResult.logStr,H)}handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_MIGRATION_FAILED_OR_NEEDED_WF(e){switch(console.log("ConnectionAspect::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_MIGRATION_FAILED_OR_NEEDED_WF"),this.migrationResult.result){case S.EMigrationResult.MIGRATION_FAILED:this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_795_DB_MIGRATION_FAILED_ERROR);break;case S.EMigrationResult.MIGRATION_NOT_POSSIBLE:this.cfg.workflow?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_791_DB_MIGRATION_RUNTIME_ERROR):this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_794_DB_MIGRATION_UNSUPPORTED_ERROR);break;case S.EMigrationResult.MIGRATION_NEEDED:this.cfg.workflow&&this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_791_DB_MIGRATION_RUNTIME_ERROR)
;break;default:this.client.exitError("ConnectionAspect::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_MIGRATION_FAILED_OR_NEEDED_WF: incorrect migr result: "+this.migrationResult.result)}}handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_MIGRATION_FAILED_OR_NEEDED_WF(e){console.log("ConnectionAspect::handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_MIGRATION_FAILED_OR_NEEDED_WF"),e.payload.reason.name===N.QAppAsyncCallTimeoutErrorName?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_793_DB_OPERATION_TIMEOUT_ERROR):e.payload.reason.name===P.ConnectionLostErrorName?this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_796_DB_CONN_LOST_ERROR):this.client.messageHandlerHelper.addMessage(I.EMsgHandlerMsgs.ERR_790_GENERIC_DB_ERROR,e.payload.reason)}onEnter_STATE_CONNECTION_ASPECT_INTERNAL_NEXT_STATE(){console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_INTERNAL_NEXT_STATE");const e=this.getLogConnection()
;e&&e.isConnected?this.client.enqueAsyncCall(e.close(),W,i.HEARTBEAT_INTERVAL_MS):(console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_INTERNAL_NEXT_STATE - log connection already closed or lost."),this.client.addToEventQueue(new o.ImmediateEvent({from:f,to:this.cfg.nextState})))}handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_INTERNAL_NEXT_STATE(e){return console.log("ConnectionAspect::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_INTERNAL_NEXT_STATE"),this.cfg.nextState}handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_INTERNAL_NEXT_STATE(e){return console.log("ConnectionAspect::handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_INTERNAL_NEXT_STATE: "+p.inspect(e.payload)),this.cfg.nextState}onEnter_STATE_CONNECTION_ASPECT_INTERNAL_CANCEL_STATE(){console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_INTERNAL_CANCEL_STATE");const e=this.getConnection(),t=this.getLogConnection();e&&e.isConnected?(console.log("Closing main connection"),
this.client.enqueAsyncCall(e.close(),Q,i.HEARTBEAT_INTERVAL_MS)):t&&t.isConnected?(console.log("Closing log connection"),this.client.enqueAsyncCall(t.close(),W,i.HEARTBEAT_INTERVAL_MS)):(console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_INTERNAL_CANCEL_STATE - log connection already closed or lost."),this.client.addToEventQueue(new o.ImmediateEvent({from:y,to:this.cfg.cancelState})))}handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_INTERNAL_CANCEL_STATE(e){if(console.log("ConnectionAspect::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_INTERNAL_CANCEL_STATE"),e.payload.metadata===Q){const e=this.getLogConnection();if(e&&e.isConnected)return console.log("Closing log connection"),this.client.enqueAsyncCall(e.close(),W,i.HEARTBEAT_INTERVAL_MS),""}return this.cfg.cancelState}handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_INTERNAL_CANCEL_STATE(e){
if(console.log("ConnectionAspect::handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_INTERNAL_CANCEL_STATE: "+p.inspect(e.payload)),e.payload.metadata===Q){const e=this.getLogConnection();if(e&&e.isConnected)return console.log("Closing log connection"),this.client.enqueAsyncCall(e.close(),W,i.HEARTBEAT_INTERVAL_MS),""}return this.cfg.cancelState}onEnter_STATE_CONNECTION_ASPECT_INTERNAL_SUSPEND(){console.log("ConnectionAspect::onEnter_STATE_CONNECTION_ASPECT_INTERNAL_SUSPEND"),this.client.suspend()}handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_INTERNAL_SUSPEND(e){console.log("ConnectionAspect::handleAsyncCallDoneEvent_STATE_CONNECTION_ASPECT_INTERNAL_SUSPEND"),this.client.suspend()}handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_INTERNAL_SUSPEND(e){console.log("ConnectionAspect::handleAsyncCallFailEvent_STATE_CONNECTION_ASPECT_INTERNAL_SUSPEND: "+p.inspect(e.payload)),this.client.suspend()}getTableNamesForAllEntities(e){return e.entityMetadatas.map(e=>e.tableName)}}},function(e,t,n){
"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(28),i=n(67),s=n(109);t.DB_LOG_ACTION_MIGRATION_FAILED="MIGRATION_FAILED",t.DB_LOG_ACTION_MIGRATION_NEEDED_WORKFLOW="MIGRATION_NEEDED_WORKFLOW",t.DB_LOG_ACTION_MIGRATION_SUCCEEDED="MIGRATION_SUCCEEDED",t.DB_LOG_ACTION_ADMIN="ADMIN",t.LOG_QUERY_STRINGS={mssql:"",mysql:"CREATE TABLE `log` (`id` int NOT NULL AUTO_INCREMENT, `serial` varchar(255) NOT NULL, `taskId` varchar(255) NOT NULL, `version` int NOT NULL, `date` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `qappOrderNo` varchar(255) NOT NULL, `qappVersion` varchar(255) NOT NULL, `action` varchar(255) NOT NULL, `details` text NOT NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB",
postgres:'CREATE TABLE "log" ("id" SERIAL NOT NULL, "serial" character varying NOT NULL, "taskId" character varying NOT NULL, "version" integer NOT NULL, "date" TIMESTAMP NOT NULL DEFAULT now(), "qappOrderNo" character varying NOT NULL, "qappVersion" character varying NOT NULL, "action" character varying NOT NULL, "details" text NOT NULL, CONSTRAINT "PK_f77cbf8486ae8b6fd0342d62208" PRIMARY KEY ("id"))',sqlite:'CREATE TABLE "log" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "serial" varchar NOT NULL, "taskId" varchar NOT NULL, "version" integer NOT NULL, "date" datetime NOT NULL DEFAULT (datetime(\'now\')), "qappOrderNo" varchar NOT NULL, "qappVersion" varchar NOT NULL, "action" varchar NOT NULL, "details" text NOT NULL)'};let a=class extends s.QAppBaseEntity{constructor(){super(...arguments),this.id=0,this.qappOrderNo="",this.qappVersion="",this.action="",this.details=""}getEntityTableNameNoSchemaVersion(){return"log"}getSchemaVersion(){return NaN}}
;_.__decorate([i.PrimaryGeneratedColumn(),_.__metadata("design:type",Number)],a.prototype,"id",void 0),_.__decorate([i.CreateDateColumn(),_.__metadata("design:type",Date)],a.prototype,"date",void 0),_.__decorate([i.Column(),_.__metadata("design:type",String)],a.prototype,"qappOrderNo",void 0),_.__decorate([i.Column(),_.__metadata("design:type",String)],a.prototype,"qappVersion",void 0),_.__decorate([i.Column(),_.__metadata("design:type",String)],a.prototype,"action",void 0),_.__decorate([i.Column({type:"text"}),_.__metadata("design:type",String)],a.prototype,"details",void 0),a=_.__decorate([i.Entity("log")],a),t.LogEntity=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(28),i=n(67),s=n(17);let a=class{beforeInsert(e){""===e.entity.serial&&(e.entity.serial=s.QAppBase.clientSingleton.getSerialNumber()),""===e.entity.taskId&&(e.entity.taskId=s.QAppBase.clientSingleton.getTaskId()||"create Task")}beforeUpdate(e){
void 0!==e.entity&&(""===e.entity.serial&&(e.entity.serial=s.QAppBase.clientSingleton.getSerialNumber()),""===e.entity.taskId&&(e.entity.taskId=s.QAppBase.clientSingleton.getTaskId()||"create Task"))}};a=_.__decorate([i.EventSubscriber()],a),t.QAppBaseSubscriber=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionLostErrorName="ConnectionLostError";class _ extends Error{constructor(){super(),this.name=t.ConnectionLostErrorName,Object.setPrototypeOf(this,_.prototype),this.message="Lost connection to database."}}t.ConnectionLostError=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIsolationLevel=function(e){switch(e){case"sqlite":return"SERIALIZABLE";case"postgres":case"mysql":case"mssql":return"READ COMMITTED";default:return}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;const _=n(4),i=n(0),s=n(60),a=n(16),r=n(7),E="/QAPP/HELP/BUTTON/",o="BTN_HELP",T="WIZARDSCREEN",A="/QAPP/SCREENS/WIZARDSCREEN";t.WizardScreen=class extends _.AbstractScreen{constructor(e,t){super(e),this.buttonTopics="",this.helpButtonIcon=r.EnumFontLabels.QUESTION,this.setScreenLayout(s.EnumWizardScreenLayout.WITHOUTIMAGE),this.setHeadingTitle({id:"",args:[]}),this.setInstructionContent([s.createEmptyWizardScreenContent()]),this.setBarButtons(t)}show(){this.mqttHandler.publish("SCREEN",JSON.stringify({screen:T})),this.mqttHandler.publish(A,JSON.stringify({appearance:i.EnumAppearance.ENABLED}))}hide(){this.mqttHandler.publish(A,JSON.stringify({appearance:i.EnumAppearance.HIDDEN}))}getId(){return T}getBarButtonId(){return A+"/BARBUTTONS"}setHeadingTitle(e){console.log("WizardScreen: set heading title to "+a.inspect(e)),this.mqttHandler.publish(A+"/HEADING_TITLE",JSON.stringify(e))}setInstructionContent(e){console.log("WizardScreen: set content"),
this.mqttHandler.publish(A+"/CONTENT",JSON.stringify(e))}setTextInstructionContent(e){let t=s.createEmptyWizardScreenContent();t.text=e,this.setInstructionContent([t])}setTextImageInstructionContent(e,t){let n=s.createEmptyWizardScreenContent();n.text=e,n.img=t,this.setInstructionContent([n])}setScreenLayout(e){let t;switch(console.log("WizardScreen: set layout"),e){case s.EnumWizardScreenLayout.WITHIMAGEON50:t=1;break;case s.EnumWizardScreenLayout.WITHIMAGEON66:t=2;break;case s.EnumWizardScreenLayout.SPLITINTHIRDS:t=3;break;case s.EnumWizardScreenLayout.SPLITINHALFS:t=4;break;case s.EnumWizardScreenLayout.WITHOUTIMAGE:default:t=0}this.mqttHandler.publish(A+"/LAYOUT",JSON.stringify({layout:t}))}setProgressBar(e,t){console.log("WizardScreen: set progress bar to "+e+"/"+t),this.mqttHandler.publish(A+"/WIZARD_STEPS",JSON.stringify({stepCount:t,stepActive:e}))}setBarButtons(e){console.log("WizardScreen: set bar buttons");let t=[];for(let n of e)t.push("/QAPP/"+n.getTopic())
;let n=t.join("#");n!==this.buttonTopics&&(this.mqttHandler.publish(this.getBarButtonId(),JSON.stringify(t)),this.buttonTopics=n)}getHelpButtonId(){return console.log("WizardScreen: get HelpButton id"),o}showHelpButton(){console.log("WizardScreen: show HelpButton"),this.mqttHandler.publish(E+"APPEARANCE",JSON.stringify({appearance:i.EnumAppearance.ENABLED_SECONDARY}))}hideHelpButton(){console.log("WizardScreen: hide HelpButton"),this.mqttHandler.publish(E+"APPEARANCE",JSON.stringify({appearance:i.EnumAppearance.HIDDEN}))}getHelpButtonIcon(){return console.log("WizardScreen: get HelpButton icon"),this.helpButtonIcon}setHelpButtonIcon(e){console.log("WizardScreen: set HelpButton icon"),this.helpButtonIcon=e,this.mqttHandler.publish(E+"ICON",JSON.stringify({label:e}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(11),i=n(0);t.HELPSCREEN_ID="HELP";t.HelpScreen=class{constructor(e){this.screenId=t.HELPSCREEN_ID,
this.helpScreenTopic="/QAPP/HELP/STRUCTURE",this.helpScreenObject={appearance:i.EnumAppearance.HIDDEN,helpTitle:"",sectionToDisplay:"",content:[]},this.events$=new _.Subject,this.mqttHandler=e}publish(){console.log("HelpScreen:: publish"),this.mqttHandler.publish(this.helpScreenTopic,JSON.stringify(this.helpScreenObject))}show(){console.log("HelpScreen:: show"),this.helpScreenObject.appearance=i.EnumAppearance.ENABLED,this.mqttHandler.publish(this.helpScreenTopic,JSON.stringify(this.helpScreenObject))}hide(){console.log("HelpScreen:: hide"),this.helpScreenObject.appearance=i.EnumAppearance.HIDDEN,this.mqttHandler.publish(this.helpScreenTopic,JSON.stringify(this.helpScreenObject))}getId(){return this.screenId}getButton(e){}setHelpScreenData(e,t=!0){console.log("HelpScreen:: setHelpScreenData"),this.setTitle(e.title,!1),this.setContent(e.content,!1),t&&this.publish()}getTitle(){return this.helpScreenObject.helpTitle}setTitle(e,t=!0){console.log("HelpScreen:: setTitle"),
this.helpScreenObject.helpTitle=e,t&&this.publish()}setLink(e,t=!0){console.log("HelpScreen:: setTitle"),this.helpScreenObject.sectionToDisplay=e,t&&this.publish()}getContent(){return this.helpScreenObject.content}setContent(e,t=!0){console.log("HelpScreen:: setContent"),this.helpScreenObject.content=e,t&&this.publish()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const _=n(0),i=n(61),s=n(32),a=n(23),r=n(15),E=n(19),o=n(33),T=n(32),A=n(14),I=n(9),l=n(68),N=n(7),c=n(1);t.EDIT_PARAMS_ASPECT="EDIT_PARAMS_ASPECT",t.STATE_ASPECT_EDIT_PARAMS_EDIT_ENTER="STATE_ASPECT_EDIT_PARAMS_EDIT_ENTER";const S="STATE_ASPECT_EDIT_PARAMS_EDIT",u="STATE_ASPECT_EDIT_PARAMS_USER_ACTION",P="STATE_ASPECT_EDIT_PARAMS_INSPECT",p="STATE_ASPECT_EDIT_PARAMS_OVERVIEW";t.EditParamsAspect=class extends r.AbstractQAppAspect{constructor(){super(...arguments),this.states={STATE_ASPECT_EDIT_PARAMS_EDIT_ENTER:{_onEnter:function(e){e.addToEventQueue(new I.ImmediateEvent(S))},
_onExit:function(){},_transTo:{},_transFrom:{},IMMEDIATE_EVENT:function(e,t){t.payload===S&&this.transition(e,S)},"*":function(e){this.deferUntilTransition(e)}},STATE_ASPECT_EDIT_PARAMS_EDIT:{_onEnter:function(e){let n=e.aspects[t.EDIT_PARAMS_ASPECT],s=e.screens[i.PARAM_LIST_SCREENID].getButton(i.FINISH_BUTTON_ID);if(void 0!==s){let e=n.cfg.isValidFn();s.setAppearance(e?_.EnumAppearance.ENABLED_PRIMARY:_.EnumAppearance.DISABLED)}},_onExit:function(){},_transFrom:{STATE_ASPECT_EDIT_PARAMS_EDIT_ENTER:function(e){let n=e.aspects[t.EDIT_PARAMS_ASPECT],_=e.screens[i.PARAM_LIST_SCREENID];_.readFromParameterGroupArray(n.cfg.parameters),_.setShowLastVisibleCategory(!1,!1),e.showScreen(_),e.hideLoadingScreen()},STATE_ASPECT_EDIT_PARAMS_OVERVIEW:function(e){let n=e.aspects[t.EDIT_PARAMS_ASPECT],s=e.screens[i.PARAM_LIST_SCREENID];s.readFromParameterGroupArray(n.cfg.parameters),s.setShowLastVisibleCategory(!0,!1);let a=s.getButton(i.FINISH_BUTTON_ID);if(void 0!==a){let e=n.cfg.isValidFn()
;a.setAppearance(e?_.EnumAppearance.ENABLED_PRIMARY:_.EnumAppearance.DISABLED)}e.showScreen(s)}},EV_HMI_BTN_CLICKED:function(e,n){let _=e.aspects[t.EDIT_PARAMS_ASPECT];n.payload.buttonId===i.FINISH_BUTTON_ID&&_.cfg.isValidFn()&&(void 0===_.cfg.displayParameterOverview?this.transition(e,_.cfg.nextState):this.transition(e,p)),n.payload.buttonId===i.CANCEL_BUTTON_ID&&this.transition(e,_.cfg.cancelState)},EV_HMI_PARAM_CHANGED:function(e,n){let _=e.aspects[t.EDIT_PARAMS_ASPECT].updateParameterGeneric(n.payload.parameter),i=[{guardFn:function(){return void 0===_},nextState:""},{guardFn:function(){return void 0!==_},nextState:u}];this.myHandler(e,i,n)},EV_HMI_PARAM_DETAIL:function(e,n){e.aspects[t.EDIT_PARAMS_ASPECT].inspectParameter(n.payload.parameter),this.transition(e,P)}},STATE_ASPECT_EDIT_PARAMS_INSPECT:{_onEnter:function(){},_onExit:function(){},_transTo:{},_transFrom:{},EV_HMI_BTN_CLICKED:function(e,t){t.payload.buttonId===s.CANCEL_BUTTON_ID&&this.transition(e,S)}},
STATE_ASPECT_EDIT_PARAMS_USER_ACTION:{_onEnter:function(){},_onExit:function(){},_transTo:{},_transFrom:{},EV_HMI_BTN_CLICKED:function(e,n){let _=e.aspects[t.EDIT_PARAMS_ASPECT];if(n.payload.buttonId===i.CANCEL_BUTTON_ID)this.transition(e,_.cfg.cancelState);else{let t=_.handleParamUpdateUserActionGeneric(n);"boolean"==typeof t&&t&&this.transition(e,S)}}},STATE_ASPECT_EDIT_PARAMS_OVERVIEW:{_onEnter:function(){},_onExit:function(){},_transTo:{},_transFrom:{STATE_ASPECT_EDIT_PARAMS_EDIT:function(e){e.aspects[t.EDIT_PARAMS_ASPECT].initPO()}},EV_HMI_BTN_CLICKED:function(e,n){let _=e.aspects[t.EDIT_PARAMS_ASPECT];n.payload.buttonId===l.SAVE_BUTTON_ID?this.transition(e,_.cfg.nextState):n.payload.buttonId===l.BACK_BUTTON_ID?this.transition(e,S):n.payload.buttonId===l.CANCEL_BUTTON_ID&&this.transition(e,_.cfg.cancelState)}}},this.currentParamUpdateUserAction=void 0,this.isLastUserActionGenericError=!1}getId(){return t.EDIT_PARAMS_ASPECT}getAspectStates(){return this.states}getEntryState(){
return t.STATE_ASPECT_EDIT_PARAMS_EDIT_ENTER}init(e){if(this.client=e,this.client){if(console.log("EditParamsAspect::init"),void 0===this.client.screens[i.PARAM_LIST_SCREENID]){let e=new i.ParameterListScreen(this.client.mqttHandler);this.client.registerScreen(e)}}else console.log("EditParamsAspect::init - aspect not correctly initialized (no client set) - skip init")}configure(e){if(super.configure(e),void 0!==this.cfg.displayParameterOverview&&(this.client.screens[i.PARAM_LIST_SCREENID].setFinishButtonLabel({id:N.EnumFontLabels.NEXT,args:[]}),void 0===this.client.screens[l.PARAM_OVER_SCREENID])){let e=new l.default(this.client.mqttHandler);this.client.registerScreen(e)}}publishParameter(e){void 0!==this.client&&this.client.screens[i.PARAM_LIST_SCREENID]&&this.client.screens[i.PARAM_LIST_SCREENID].updateParameter(e)}updateParameter(e){return this.cfg.parameters.some((t,n)=>t.parameters.some((t,_)=>t.id===e.id&&(this.cfg.parameters[n].parameters[_]=e,
!0)))?(console.log(`Parameter ${e.id} updated!\n`),!0):(console.log(`Parameter ${e.id} not found!\n`),!1)}updateParameterAndPublish(e){return e.type===_.EnumParameterTypes.PARAM_QUANTITY&&A.QuantityParameter.roundToDecimalPlaces(e),!!this.updateParameter(e)&&(this.publishParameter(e),!0)}setCurrentParamUpdateUserAction(e){e?this.updateMessageBoxFromActionMessageAndShow(e.message):this.currentParamUpdateUserAction&&this.client.hideMsgBox(),this.currentParamUpdateUserAction=e}getCurrentParamUpdateUserAction(){return this.currentParamUpdateUserAction}updateParameterGeneric(e){console.log("EditParamsAspect: updateParameterGeneric");let t=void 0;!0!==e.suppressLibRuleChecks&&(t=o.checkGeneralParamRules(e)),void 0!==t?this.isLastUserActionGenericError=!0:(this.isLastUserActionGenericError=!1,t=this.cfg.updateParameterFn(e)),this.setCurrentParamUpdateUserAction(t);let n=this.client.screens[i.PARAM_LIST_SCREENID].getButton(i.FINISH_BUTTON_ID)
;return void 0!==n&&n.setAppearance(this.cfg.isValidFn()?_.EnumAppearance.ENABLED_PRIMARY:_.EnumAppearance.DISABLED),t}handleParamUpdateUserActionGeneric(e){console.log("EditParamsAspect: handleParamUpdateUserActionGeneric");let t=!1,n=this.getCurrentParamUpdateUserAction();return n?(this.isLastUserActionGenericError&&e.payload.buttonId===a.ParamUpdateUserActionSimpleAccept_OK_BUTTON_ID?(this.isLastUserActionGenericError=!1,t=!0):t=this.cfg.handleParamUpdateUserActionFn(n,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("EditParamsAspect: handleParamUpdateUserActionGeneric - called in state, although no action set"),t}updateMessageBoxFromActionMessageAndShow(e){this.client.showMessageBox(e)}inspectParameter(e){if(this.cfg.getDetailForParameterFn){let t=this.cfg.getDetailForParameterFn(e)
;this.showDetailParameter(t)}else console.log("Error: Inspect parameter was clicked, but no getDetailForParameterFn was configured in EditParamsAspect")}showDetailParameter(e){let t=new T.ParamDetailsOverlay(this.client.mqttHandler);t.setTitle(e.title.id,e.title.args),t.setAppearance(_.EnumAppearance.HIDDEN);let n=[];for(const t of e.params){let e=new E.default(this.client.mqttHandler,t);e.publish(),n.push(e.getPublishedId())}t.setParams(n),this.client.showScreen(t)}initPO(){let e=this.client.screens[l.PARAM_OVER_SCREENID];e.readFromParameterGroupArray(this.filterCfgParameterGroups(c.cloneJSON(this.cfg.parameters))),e.getButton(l.SAVE_BUTTON_ID).setAppearance(this.cfg.isValidFn()?_.EnumAppearance.ENABLED_PRIMARY:_.EnumAppearance.DISABLED),e.getButton(l.BACK_BUTTON_ID).setAppearance(_.EnumAppearance.ENABLED_SECONDARY),e.setTitle1(this.cfg.displayParameterOverview.overviewTitle1.id,this.cfg.displayParameterOverview.overviewTitle1.args),
e.setTitle2(this.cfg.displayParameterOverview.overviewTitle2.id,this.cfg.displayParameterOverview.overviewTitle2.args),this.client.showScreen(e)}filterCfgParameterGroups(e){for(let t=e.length-1;t>=0;t--){for(let n=e[t].parameters.length-1;n>=0;n--)e[t].parameters[n].appearance===_.EnumAppearance.HIDDEN&&e[t].parameters.splice(n,1);0===e[t].parameters.length&&e.splice(t,1)}return e}}}]);