{
  "width": 1180,
  "height": 810,
  "elements": {
    "kE3zYGuPnxzs5d2pwdM1Vg": {
      "type": "button",
      "buttonType": "script",
      "textColor": {
        "type": "preset",
        "color": "white"
      },
      "backgroundColor": {
        "type": "dynamic",
        "template": "${shared(\"foh_msg_on\") ? \"green-300\" : \"green-900\"}"
      },
      "label": "Show Message (Big)",
      "font": {
        "size": 40
      },
      "width": 200,
      "height": 200,
      "x": 330,
      "y": 300,
      "zIndex": 10,
      "scriptOnPress": "const isOn = shared(\"foh_msg_on\", false);\n\nif (isOn) {\n  // Hide\n  sendOsc(\"/notify/big/clear\", \"all\");\n  setShared(\"foh_msg_on\", false);\n} else {\n  const msg =\n    local(\"foh_msg_text\", null) ??\n    shared(\"foh_msg_text\", \"Only 5min left\");\n\n  sendOsc(\"/notify/big\", \"all\", msg, 30000, \"red\");\n  setShared(\"foh_msg_on\", true);\n}"
    },
    "mwTgBai8XF16RURNn8nuQP": {
      "type": "input",
      "inputType": "text",
      "width": 310,
      "height": 70,
      "textColor": {
        "type": "preset",
        "color": "white"
      },
      "backgroundColor": {
        "type": "preset",
        "color": "gray"
      },
      "font": {
        "size": 40
      },
      "x": 420,
      "y": 170,
      "zIndex": 20,
      "linkedLocalVariable": "foh_msg_text",
      "scriptOnEnter": "setShared(\"foh_msg_text\", value);"
    },
    "fr24vQLL5ztqjFVibKLBFz": {
      "type": "button",
      "buttonType": "script",
      "textColor": {
        "type": "preset",
        "color": "white"
      },
      "backgroundColor": {
        "type": "dynamic",
        "template": "${shared(\"foh_msg_on\") ? \"green-600\" : \"green-900\"}\n"
      },
      "label": "Show Message (Toast)",
      "font": {
        "size": 40
      },
      "width": 200,
      "height": 200,
      "x": 620,
      "y": 300,
      "zIndex": 11,
      "scriptOnPress": "const isOn = shared(\"foh_msg_on\", false);\n\nif (isOn) {\n  // Hide\n  sendOsc(\"/notify/big/clear\", \"all\");\n  setShared(\"foh_msg_on\", false);\n} else {\n  const msg = shared(\"foh_msg_text\", \"Only 5 min left\");\nsendOsc(\"/notify/toast\", \"all\", \"FOH\", msg, 0);\nsetShared(\"foh_msg_on\", true);\n}"
    }
  }
}
