{
  "algorithm": {
    "parameters": [
      {
        "name": "validations",
        "type": "any"
      }
    ],
    "statements": [
      {
        "command": "Set",
        "expression": "\"<article class='blz-toast-container'><p>[[FollowingErrors]]</p>\"",
        "variableName": "template"
      },
      {
        "command": "Set",
        "expression": "\"<section class='blz-toast-cell'>     <div class='blz-toast blz-toast-#severity'>         <div class='blz-toast-icon'>#icon</div>         <div class='blz-toast-content'>             <p class='blz-toast-type'>#title</p>             <p class='blz-toast-message'>#message</p>         </div>     </div> </section>\"",
        "variableName": "msg"
      },
      {
        "children": [
          {
            "command": "Set",
            "expression": "Concat(\"<p style='color: #0000009c;font-weight: bold;margin: 10px !important; '>\",validation.header,\"</p>\")",
            "variableName": "section"
          },
          {
            "children": [
              {
                "command": "Set",
                "expression": "^validationObj.title",
                "variableName": "title"
              },
              {
                "children": [
                  {
                    "command": "Set",
                    "expression": "\"\"",
                    "variableName": "title"
                  }
                ],
                "command": "If",
                "expression": "IsNull(^validationObj.title)"
              },
              {
                "children": [
                  {
                    "command": "Set",
                    "expression": "\"<div class='blz-svg-box'>     <svg class='circular yellow-stroke'>         <circle class='path' cx='12' cy='12' r='11.5' fill='none' stroke-width='3' stroke-miterlimit='10' />     </svg>     <svg class='alert-sign yellow-stroke'>         <g transform='matrix(1,0,0,1,-615.516,-257.346)'>             <g transform='matrix(0.56541,-0.56541,0.56541,0.56541,93.7153,495.69)'>                 <path class='line' d='M634.087,300.805L673.361,261.53' fill='none' />             </g>             <g transform='matrix(2.27612,-2.46519e-32,0,2.27612,-792.339,-404.147)'>                 <circle class='dot' />             </g>         </g>     </svg> </div>\"",
                    "variableName": "severityIcon"
                  }
                ],
                "command": "If",
                "expression": "IsNotNull(^validationObj.severity) && !Contains(ToUpper(^validationObj.severity), \"ERROR\")"
              },
              {
                "children": [
                  {
                    "command": "Set",
                    "expression": "\"<svg id='failureAnimation' class='blz-toast-svg animated'                 xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 70'>                 <circle id='failureAnimationCircle' cx='35' cy='35' r='24' stroke='#D50000' stroke-width='5'                     stroke-linecap='round' fill='transparent' />                 <polyline class='failureAnimationCheckLine' stroke='#D50000' stroke-width='5' points='25,25 45,45'                     fill='transparent' />                 <polyline class='failureAnimationCheckLine' stroke='#D50000' stroke-width='5' points='45,25 25,45'                     fill='transparent' /> </svg>\"",
                    "variableName": "severityIcon"
                  }
                ],
                "command": "Else"
              },
              {
                "command": "Set",
                "expression": "Concat(^section, Replace(Replace(Replace(Replace(^msg, \"#title\", ^title), \"#message\", ^validationObj.message), \"#icon\", ^severityIcon), \"#severity\", ^validationObj.severity))",
                "variableName": "section"
              }
            ],
            "command": "ForEach",
            "expressionList": "validation.list",
            "variableNameItem": "validationObj"
          },
          {
            "command": "Set",
            "expression": "Concat(^template, ^section)",
            "variableName": "template"
          }
        ],
        "command": "ForEach",
        "expressionList": "validations",
        "variableNameItem": "validation"
      },
      {
        "command": "Set",
        "expression": "Concat(^template, \"</article>\")",
        "variableName": "template"
      },
      {
        "command": "Return",
        "expression": "^template"
      }
    ],
    "typeReturn": "string",
    "variables": [
      {
        "name": "validationObj",
        "type": "obj( message: string, severity: string, title: string )"
      },
      {
        "name": "validation",
        "type": "any"
      },
      {
        "name": "template",
        "type": "string"
      },
      {
        "name": "msg",
        "type": "string"
      },
      {
        "name": "title",
        "type": "string"
      },
      {
        "name": "severityIcon",
        "type": "string"
      },
      {
        "name": "section",
        "type": "string"
      }
    ]
  },
  "routing": null
}