export default {
  "options": {
    "doneButtonConfig": {
      "offset.y": -88
    }
  },
  "viewPluginCompositeConfig": {
    "id": "parallel-first-vin-barcode",
    "processingMode": "parallelFirstScan",
    "viewPlugins": [
      {
        "viewPluginConfig": {
          "pluginConfig": {
            "id": "barcode",
            "barcodeConfig": {
              "barcodeFormats": ["ALL"]
            }
          },
          "scanFeedbackConfig": {
            "style": "rect",
            "strokeWidth": 2,
            "strokeColor": "0099FF",
            "fillColor": "330099FF",
            "cornerRadius": 0,
            "beepOnResult": false,
            "vibrateOnResult": false,
            "blinkAnimationOnResult": true
          }
        }
      },
      {
        "viewPluginConfig": {
          "pluginConfig": {
            "id": "vin",
            "vinConfig": {
              "validateCheckDigit": true
            }
          },
          "cutoutConfig": {
            "maxWidthPercent": "85%",
            "alignment": "top_half",
            "ratioFromSize": { "width": 62, "height": 9 },
            "offset": { "x": 0, "y": 0 },
            "outerColor": "000000",
            "outerAlpha": 0,
            "strokeWidth": 2,
            "strokeColor": "0099FF",
            "cornerRadius": 4,
            "feedbackStrokeColor": "0099FF"
          },
          "scanFeedbackConfig": {
            "style": "contour_rect",
            "animation": "traverse_multi",
            "animationDuration": 250,
            "strokeWidth": 2,
            "strokeColor": "0099FF",
            "fillColor": "220099FF",
            "beepOnResult": false,
            "vibrateOnResult": false,
            "blinkAnimationOnResult": true
          },
          "uiFeedbackConfig": {
            "presets": [
              {
                "presetName": "vin_with_instruction_image_text_sound_feedback",
                "presetAttributes": [
                  {
                    "attributeName": "instruction_text",
                    "attributeValue": "Position the VIN within the cutout. The barcode can be anywhere inside the camera frame."
                  },
                  {
                    "attributeName": "lighting_toodark_image",
                    "attributeValue": "uifeedback_default_toodark"
                  },
                  {
                    "attributeName": "lighting_toobright_image",
                    "attributeValue": "uifeedback_default_toobright"
                  },
                  {
                    "attributeName": "distance_moveback_image",
                    "attributeValue": "uifeedback_default_moveback"
                  },
                  {
                    "attributeName": "distance_movecloser_image",
                    "attributeValue": "uifeedback_default_movecloser"
                  },
                  {
                    "attributeName": "format_invalid_image",
                    "attributeValue": "uifeedback_vin_invalid"
                  },
                  {
                    "attributeName": "lighting_toodark_text",
                    "attributeValue": ""
                  },
                  {
                    "attributeName": "lighting_toobright_text",
                    "attributeValue": ""
                  },
                  {
                    "attributeName": "distance_moveback_text",
                    "attributeValue": ""
                  },
                  {
                    "attributeName": "distance_movecloser_text",
                    "attributeValue": ""
                  },
                  {
                    "attributeName": "format_invalid_text",
                    "attributeValue": ""
                  },
                  {
                    "attributeName": "lighting_toodark_sound",
                    "attributeValue": "info_sound_default.wav"
                  },
                  {
                    "attributeName": "lighting_toobright_sound",
                    "attributeValue": "info_sound_default.wav"
                  },
                  {
                    "attributeName": "distance_moveback_sound",
                    "attributeValue": "info_sound_default.wav"
                  },
                  {
                    "attributeName": "distance_movecloser_sound",
                    "attributeValue": "info_sound_default.wav"
                  },
                  {
                    "attributeName": "format_invalid_sound",
                    "attributeValue": "info_sound_default.wav"
                  }
                ]
              }
            ]
          }
        }
      }
    ]
  }
}
