{
  "custom": {},
  "params": {
    "eqPath": "JR Brews\\EDH\\Packaging\\Packaging Line 1\\Depal",
    "machine": "test",
    "material": "materialtest"
  },
  "propConfig": {
    "params.eqPath": {
      "paramDirection": "input",
      "persistent": true
    },
    "params.machine": {
      "paramDirection": "input",
      "persistent": true
    },
    "params.material": {
      "paramDirection": "input",
      "persistent": true
    }
  },
  "props": {
    "defaultSize": {
      "height": 35,
      "width": 458
    }
  },
  "root": {
    "children": [
      {
        "meta": {
          "name": "lbl_machine"
        },
        "position": {
          "height": 1,
          "width": 0.3,
          "x": 0.1
        },
        "propConfig": {
          "props.text": {
            "binding": {
              "config": {
                "path": "view.params.eqPath"
              },
              "transforms": [
                {
                  "code": "\treturn value.split(\u0027\\\\\u0027)[-1]",
                  "type": "script"
                }
              ],
              "type": "property"
            }
          }
        },
        "type": "ia.display.label"
      },
      {
        "meta": {
          "name": "lbl_material"
        },
        "position": {
          "height": 1,
          "width": 0.6,
          "x": 0.4
        },
        "propConfig": {
          "props.text": {
            "binding": {
              "config": {
                "expression": "if( isGood( tag(concat(\u0027[MES]\u0027,replace({view.params.eqPath},\u0027\\\\\u0027,\u0027/\u0027),\u0027/Live Analysis/Current Shift/Product Code\u0027)) ),\r\n tag(concat(\u0027[MES]\u0027,replace({view.params.eqPath},\u0027\\\\\u0027,\u0027/\u0027),\u0027/Live Analysis/Current Shift/Product Code\u0027)),\r\n \"\")\r\n"
              },
              "type": "expr"
            }
          }
        },
        "type": "ia.display.label"
      },
      {
        "custom": {
          "expression": "tag(concat(\u0027[MES]\u0027,replace({view.params.eqPath},\u0027\\\\\u0027,\u0027/\u0027),\u0027/Live Analysis/Equipment State/Equipment State Type\u0027))"
        },
        "meta": {
          "name": "Icon",
          "tooltip": {
            "enabled": true
          }
        },
        "position": {
          "height": 1,
          "width": 0.1
        },
        "propConfig": {
          "custom.key": {
            "binding": {
              "config": {
                "expression": "if( isGood(tag(concat(\u0027[MES]\u0027,replace({view.params.eqPath},\u0027\\\\\u0027,\u0027/\u0027),\u0027/Live Analysis/Current Shift/Equipment State Type\u0027)) ),\r\ntag(concat(\u0027[MES]\u0027,replace({view.params.eqPath},\u0027\\\\\u0027,\u0027/\u0027),\u0027/Live Analysis/Current Shift/Equipment State Type\u0027)),\r\n\"\")"
              },
              "transforms": [
                {
                  "code": "\t\n\tdef createIcon(state):\n\t\ticon \u003d \"\"\n\t\tif state \u003d\u003d \"Idle\":\n\t\t\ticon \u003d \"EquipmentStateTypes/Idle\"\t\n\t\telif state \u003d\u003d \"Starved\":\n\t\t\ticon \u003d \"EquipmentStateTypes/Blocked\"\t\n\t\telif state \u003d\u003d \"Running\":\n\t\t\ticon \u003d \"EquipmentStateTypes/Running\"\n\t\telif state \u003d\u003d \"Disabled\":\n\t\t\ticon \u003d \"EquipmentStateTypes/Blocked\"\t\n\t\telif state \u003d\u003d \"Blocked\":\n\t\t\ticon \u003d \"EquipmentStateTypes/Blocked\"\t\n\t\telif state \u003d\u003d \"Planned Downtime\":\n\t\t\ticon \u003d \"EquipmentStateTypes/PlannedDowntime\"\n\t\telif state \u003d\u003d \"Unplanned Downtime\":\n\t\t\ticon \u003d \"EquipmentStateTypes/UnplannedDowntime\"\n\t\t\t\n\t\treturn icon\n\t\n\ticon \u003d createIcon(value)\n\t\n\t#output \u003d self.getSibling(\"lbl_machine\").props.text + \" | \" +  str(value) + \" | \" + str(icon)\n\t#system.perspective.print(output)\n\t\n\treturn icon",
                  "type": "script"
                }
              ],
              "type": "expr"
            }
          },
          "meta.tooltip.text": {
            "binding": {
              "config": {
                "expression": "if( isGood(tag(concat(\u0027[MES]\u0027,replace({view.params.eqPath},\u0027\\\\\u0027,\u0027/\u0027),\u0027/Live Analysis/Current Shift/Equipment State Name\u0027)) ),\r\ntag(concat(\u0027[MES]\u0027,replace({view.params.eqPath},\u0027\\\\\u0027,\u0027/\u0027),\u0027/Live Analysis/Current Shift/Equipment State Name\u0027)),\r\n\"\")"
              },
              "type": "expr"
            }
          },
          "props.path": {
            "binding": {
              "config": {
                "expression": "if( isGood(tag(concat(\u0027[MES]\u0027,replace({view.params.eqPath},\u0027\\\\\u0027,\u0027/\u0027),\u0027/Live Analysis/Current Shift/Equipment State Type\u0027)) ),\r\ntag(concat(\u0027[MES]\u0027,replace({view.params.eqPath},\u0027\\\\\u0027,\u0027/\u0027),\u0027/Live Analysis/Current Shift/Equipment State Type\u0027)),\r\n\"\")"
              },
              "transforms": [
                {
                  "code": "\t\n\tdef createIcon(state):\n\t\ticon \u003d \"\"\n\t\tif state \u003d\u003d \"Idle\":\n\t\t\ticon \u003d \"EquipmentStateTypes/Idle\"\t\n\t\telif state \u003d\u003d \"Starved\":\n\t\t\ticon \u003d \"EquipmentStateTypes/Blocked\"\t\n\t\telif state \u003d\u003d \"Running\":\n\t\t\ticon \u003d \"EquipmentStateTypes/Running\"\n\t\telif state \u003d\u003d \"Disabled\":\n\t\t\ticon \u003d \"EquipmentStateTypes/Blocked\"\t\n\t\telif state \u003d\u003d \"Blocked\":\n\t\t\ticon \u003d \"EquipmentStateTypes/Blocked\"\t\n\t\telif state \u003d\u003d \"Planned Downtime\":\n\t\t\ticon \u003d \"EquipmentStateTypes/PlannedDowntime\"\n\t\telif state \u003d\u003d \"Unplanned Downtime\":\n\t\t\ticon \u003d \"EquipmentStateTypes/UnplannedDowntime\"\n\t\t\t\n\t\treturn icon\n\t\n\ticon \u003d createIcon(value)\n\t\n\t#output \u003d self.getSibling(\"lbl_machine\").props.text + \" | \" +  str(value) + \" | \" + str(icon)\n\t#system.perspective.print(output)\n\t\n\treturn icon",
                  "type": "script"
                }
              ],
              "type": "expr"
            }
          }
        },
        "type": "ia.display.icon"
      }
    ],
    "custom": {
      "key": {}
    },
    "meta": {
      "name": "root"
    },
    "position": {
      "width": "100%"
    },
    "props": {
      "mode": "percent",
      "style": {
        "borderBottomLeftRadius": 50,
        "borderBottomRightRadius": 50,
        "borderTopLeftRadius": 50,
        "borderTopRightRadius": 50
      }
    },
    "type": "ia.container.coord"
  }
}