{
    "type": "Ext.window.Window",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "closable": null,
        "container|align": "stretch",
        "designer|userAlias": "editRuleWindowAlias",
        "designer|userClassName": "editRuleWindowClass",
        "height": null,
        "icon": "../gfx/rule.png",
        "itemId": "editRuleWindow",
        "layout": "vbox",
        "modal": true,
        "saveDelay": 50,
        "shadow": "drop",
        "title": "Define risk",
        "width": 596
    },
    "designerId": "c9dd96ee-1f68-4311-a8e9-29e7222d9553",
    "cn": [
        {
            "type": "Ext.container.Container",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "container|align": "stretch",
                "layout": "vbox",
                "layout|flex": 1,
                "padding": "10 10 0 10"
            },
            "designerId": "f68025b2-b8e6-4ea3-af98-287d53b4f49a",
            "cn": [
                {
                    "type": "Ext.container.Container",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "container|align": "stretch",
                        "layout": "hbox",
                        "layout|flex": null,
                        "margin": "0 0 5 0"
                    },
                    "designerId": "eb4bb126-73f2-4763-962b-8172a5737c9b",
                    "cn": [
                        {
                            "type": "Ext.form.field.ComboBox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "editable": false,
                                "fieldLabel": "Group",
                                "forceSelection": true,
                                "growToLongestValue": false,
                                "itemId": "editRuleGroup",
                                "labelAlign": null,
                                "labelSeparator": " ",
                                "labelWidth": 120,
                                "layout|flex": 1,
                                "margin": null,
                                "queryCaching": false,
                                "size": 64,
                                "store": "SelectGroupStore",
                                "valueField": "id"
                            },
                            "designerId": "51a47cc3-116b-4ec1-a978-7250ace5355a"
                        },
                        {
                            "type": "Ext.button.Button",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "disabled": null,
                                "icon": "../gfx/group.png",
                                "itemId": "editRuleNewGroupButton",
                                "layout|flex": null,
                                "layout|margins": "0 0 0 10",
                                "padding": "2 2 2 5",
                                "text": "Create group",
                                "textAlign": "left",
                                "width": 140
                            },
                            "designerId": "138f67e6-0274-4f50-bef0-5592905ba60e"
                        }
                    ]
                },
                {
                    "type": "Ext.container.Container",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "container|align": "stretch",
                        "layout": "hbox",
                        "layout|flex": null
                    },
                    "designerId": "27a564c3-07ae-4884-bf1a-342c68309a9d",
                    "cn": [
                        {
                            "type": "Ext.form.field.Text",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "enforceMaxLength": true,
                                "fieldLabel": "Name of risk",
                                "focusOnToFront": false,
                                "itemId": "editRuleName",
                                "labelAlign": null,
                                "labelSeparator": " ",
                                "labelWidth": 120,
                                "layout|flex": 1,
                                "maskRe": "/[a-zA-Z0-9 _-]/",
                                "maxLength": 64,
                                "selectOnFocus": true,
                                "size": 64
                            },
                            "designerId": "76673c98-ac00-4838-9e22-b934f86feec5"
                        },
                        {
                            "type": "Ext.form.field.Text",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "enforceMaxLength": true,
                                "fieldLabel": "Signature",
                                "focusOnToFront": false,
                                "itemId": "editSignature",
                                "labelAlign": "right",
                                "labelPad": 10,
                                "labelSeparator": " ",
                                "labelWidth": 70,
                                "layout|flex": null,
                                "maskRe": "/[a-zA-Z0-9]/",
                                "maxLength": 8,
                                "selectOnFocus": true,
                                "size": null,
                                "width": 150
                            },
                            "designerId": "fee13ff3-a2f2-4cce-b010-00059bee6cc5"
                        }
                    ]
                },
                {
                    "type": "Ext.toolbar.Spacer",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "height": 5,
                        "layout|flex": null
                    },
                    "designerId": "28bc4c2d-e243-401a-91fa-3d9577ab78f4"
                },
                {
                    "type": "Ext.container.Container",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "container|align": "stretch",
                        "layout": "hbox",
                        "layout|flex": null
                    },
                    "designerId": "80007d04-4f80-4e41-b11b-bd0694696d01",
                    "cn": [
                        {
                            "type": "Ext.form.field.ComboBox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "displayField": null,
                                "editable": false,
                                "fieldLabel": "System reaction",
                                "forceSelection": true,
                                "growToLongestValue": false,
                                "itemId": "editRuleWarning",
                                "labelAlign": null,
                                "labelPad": null,
                                "labelSeparator": " ",
                                "labelWidth": 120,
                                "layout|flex": 1,
                                "queryMode": "local",
                                "size": 64,
                                "store": "SelectWarningTypeStore",
                                "valueField": "id"
                            },
                            "designerId": "51036f7f-4bbf-4fa4-948c-dd14af88cade"
                        },
                        {
                            "type": "Ext.form.field.ComboBox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "displayField": null,
                                "editable": false,
                                "fieldLabel": "Risk Level",
                                "forceSelection": true,
                                "growToLongestValue": false,
                                "itemId": "editRuleRisk",
                                "labelAlign": "right",
                                "labelPad": 10,
                                "labelSeparator": " ",
                                "labelWidth": 70,
                                "layout|flex": null,
                                "queryMode": "local",
                                "size": 64,
                                "store": "SelectRiskStore",
                                "valueField": "id",
                                "width": 150
                            },
                            "designerId": "a705e6c9-52bc-455d-90ed-968abd272ead"
                        }
                    ]
                },
                {
                    "type": "Ext.toolbar.Spacer",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "height": 5,
                        "layout|flex": null
                    },
                    "designerId": "e4a3fc91-37e6-479e-8931-c695e857d4a5"
                },
                {
                    "type": "Ext.form.field.TextArea",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "enforceMaxLength": true,
                        "fieldLabel": "Risk description",
                        "height": 65,
                        "itemId": "editRuleDescription",
                        "labelSeparator": " ",
                        "labelWidth": 120,
                        "layout|flex": 1,
                        "margin": null,
                        "maxLength": 65536,
                        "size": 450,
                        "width": 541
                    },
                    "designerId": "1c141313-8f04-4d23-9318-5e95ad880ad0"
                },
                {
                    "type": "Ext.form.field.ComboBox",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "editable": false,
                        "emptyText": "please select",
                        "fieldLabel": "Message",
                        "forceSelection": true,
                        "growToLongestValue": false,
                        "itemId": "editRuleMessage",
                        "labelAlign": null,
                        "labelSeparator": " ",
                        "labelWidth": 120,
                        "layout|flex": null,
                        "queryCaching": false,
                        "queryMode": null,
                        "size": 64,
                        "store": "SelectMessageStore",
                        "valueField": "id"
                    },
                    "designerId": "b4ff3a8c-69d8-4369-846a-e66766579b47",
                    "cn": [
                        {
                            "type": "basiceventbinding",
                            "reference": {
                                "name": "listeners",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fn": "onEditRuleMessageChange",
                                "implHandler": [
                                    "if (newValue === 0) {\r",
                                    "\tfield.reset();\r",
                                    "}"
                                ],
                                "name": "change",
                                "scope": "me"
                            },
                            "designerId": "a27da220-7236-48f1-9317-c13b274e58e3"
                        }
                    ]
                },
                {
                    "type": "Ext.container.Container",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "container|align": "stretch",
                        "container|pack": "end",
                        "layout": "hbox",
                        "layout|flex": null,
                        "layout|margins": "0 0 5 0",
                        "margin": null
                    },
                    "designerId": "b05e5974-eea0-4a27-bd9d-e54a32523b79",
                    "cn": [
                        {
                            "type": "Ext.form.field.ComboBox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "editable": false,
                                "emptyText": "please select",
                                "fieldLabel": "Approver",
                                "forceSelection": true,
                                "growToLongestValue": false,
                                "itemId": "editRuleApprover",
                                "labelAlign": null,
                                "labelSeparator": " ",
                                "labelWidth": 120,
                                "layout|flex": 1,
                                "queryCaching": false,
                                "queryMode": null,
                                "size": 64,
                                "store": "SelectApproverStore",
                                "valueField": "id"
                            },
                            "designerId": "38c5cc9c-ecbf-48a9-af4b-96307b0836fe",
                            "cn": [
                                {
                                    "type": "basiceventbinding",
                                    "reference": {
                                        "name": "listeners",
                                        "type": "array"
                                    },
                                    "codeClass": null,
                                    "userConfig": {
                                        "fn": "onEditRuleApproverChange",
                                        "implHandler": [
                                            "if (newValue === 0) {\r",
                                            "\tfield.reset();\r",
                                            "}"
                                        ],
                                        "name": "change",
                                        "scope": "me"
                                    },
                                    "designerId": "4fb45d43-44ec-4601-a4bd-520dc42dee5f"
                                }
                            ]
                        },
                        {
                            "type": "Ext.button.Button",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "disabled": null,
                                "icon": "../gfx/sod_warn_4-0.png",
                                "iconAlign": null,
                                "itemId": "editRuleAddApproverButton",
                                "layout|flex": null,
                                "layout|margins": "0 0 0 10",
                                "padding": "2 2 2 5",
                                "scale": null,
                                "text": "Select approvers",
                                "textAlign": "left",
                                "width": 140
                            },
                            "designerId": "3cf91a51-3e85-4168-a635-005fbc545bbd"
                        }
                    ]
                },
                {
                    "type": "Ext.container.Container",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "container|align": "stretch",
                        "layout": "hbox",
                        "layout|flex": null
                    },
                    "designerId": "e85f2123-9998-4740-891f-828d4280d770",
                    "cn": [
                        {
                            "type": "Ext.form.field.ComboBox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "allowBlank": false,
                                "allowOnlyWhitespace": false,
                                "disabled": true,
                                "editable": false,
                                "fieldLabel": "Approval expires",
                                "forceSelection": true,
                                "itemId": "editRuleFrequency",
                                "labelSeparator": " ",
                                "labelWidth": 120,
                                "layout|flex": 1,
                                "queryMode": "local",
                                "store": "Frequency",
                                "value": 9,
                                "valueField": "id"
                            },
                            "configAlternates": {
                                "value": "number"
                            },
                            "designerId": "1615a546-2b3f-4ebf-bf80-4323dbf07fef"
                        },
                        {
                            "type": "Ext.toolbar.Spacer",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null,
                                "width": 10
                            },
                            "designerId": "a504d341-d457-4adc-8ba0-69ee5db386bc"
                        },
                        {
                            "type": "Ext.form.field.Checkbox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "boxLabel": null,
                                "disabled": true,
                                "fieldLabel": "Auto renewal",
                                "inputValue": "1",
                                "itemId": "editRuleAutoRenewal",
                                "labelAlign": "right",
                                "labelPad": 10,
                                "labelSeparator": " ",
                                "labelWidth": 115,
                                "layout|flex": null,
                                "readOnly": true,
                                "uncheckedValue": "0",
                                "value": [
                                    "'0'"
                                ],
                                "width": 140
                            },
                            "designerId": "ecddcfc6-c110-4d9a-9af5-db5fac06c687"
                        }
                    ]
                },
                {
                    "type": "Ext.toolbar.Spacer",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "height": 5,
                        "layout|flex": null
                    },
                    "designerId": "2be99d98-9c82-4e14-9592-654ad6f029e3"
                },
                {
                    "type": "Ext.form.field.TextArea",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "enforceMaxLength": true,
                        "fieldLabel": "Mitigation description",
                        "height": 65,
                        "itemId": "editRuleMitigation",
                        "labelSeparator": " ",
                        "labelWidth": 120,
                        "layout|flex": 1,
                        "margin": null,
                        "maxLength": 65535,
                        "minHeight": null,
                        "padding": null,
                        "size": null,
                        "width": 541
                    },
                    "designerId": "0f958e9b-7f26-4560-b374-0707d1304670"
                },
                {
                    "type": "Ext.form.field.Text",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "emptyText": "Local",
                        "fieldLabel": "Origin",
                        "focusOnToFront": false,
                        "itemId": "editRuleOrigin",
                        "labelAlign": null,
                        "labelSeparator": " ",
                        "labelWidth": 120,
                        "layout|flex": null,
                        "margin": null,
                        "selectOnFocus": true,
                        "size": 64
                    },
                    "designerId": "61602436-004e-44cc-8c1b-ddb4b3fe8350"
                },
                {
                    "type": "Ext.container.Container",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "container|align": "stretch",
                        "container|pack": "end",
                        "layout": "hbox",
                        "layout|flex": null
                    },
                    "designerId": "a4c98ec3-ae42-4e83-8f01-025a2cf410d2",
                    "cn": [
                        {
                            "type": "Ext.form.field.Checkbox",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "boxLabel": "Active",
                                "boxLabelAlign": "before",
                                "disabled": null,
                                "fieldLabel": null,
                                "itemId": "editRuleActive",
                                "labelAlign": "right",
                                "labelPad": null,
                                "labelSeparator": null,
                                "labelWidth": null,
                                "shrinkWrap": null,
                                "uncheckedValue": "Inactive",
                                "value": [
                                    "Active"
                                ],
                                "width": null
                            },
                            "designerId": "5325bb21-e14b-4e91-a78e-fdb59078322d"
                        }
                    ]
                }
            ]
        },
        {
            "type": "Ext.container.Container",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "container|align": "stretch",
                "layout": "hbox",
                "padding": 10
            },
            "designerId": "e9a00389-3e07-4240-97a1-620b13a8106d",
            "cn": [
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "disabled": true,
                        "icon": "../gfx/save.png",
                        "iconCls": null,
                        "id": null,
                        "itemId": "editRuleConfirmButton",
                        "layout|flex": null,
                        "layout|margins": null,
                        "padding": 5,
                        "scale": "medium",
                        "text": "Create"
                    },
                    "designerId": "3c27cc6a-7662-4ec0-bd46-db779afc6e39"
                },
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "disabled": null,
                        "hidden": true,
                        "icon": "../gfx/save.png",
                        "iconCls": null,
                        "id": null,
                        "itemId": "editRuleSaveButton",
                        "layout|flex": null,
                        "layout|margins": null,
                        "padding": 5,
                        "scale": "medium",
                        "text": "Update"
                    },
                    "designerId": "0a4d42a0-c310-4aba-a86c-5b95fe4d0332"
                },
                {
                    "type": "Ext.toolbar.Spacer",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": 1
                    },
                    "designerId": "218c8973-9932-4d34-bb71-46461fc3b43a"
                },
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "icon": "../gfx/red_x.png",
                        "iconAlign": null,
                        "itemId": "editRuleCancelButton",
                        "layout|flex": null,
                        "layout|margins": null,
                        "padding": 5,
                        "scale": "medium",
                        "text": "Cancel"
                    },
                    "designerId": "18dabaec-009b-430e-8f53-18b14e5aa04f"
                }
            ]
        }
    ]
}