{
  "topbar": {
    "component": "blockGroup",
    "extraclass": "toolbar views spectrum-darkest",
    "items": [
      {
        "component": "div",
        "extraclass": "topbar-left-icons", 
        "items": [
          {
            "component": "buttonGroup",
            "extraclass": "app-title",
            "items": [
              {
                "component": "button",
                "icon": "adobeExperienceManagerV2",
                "title": "Guides",
                "label": "Guides",
                "variant": "action",
                "quiet": true,
                "iconsize": "M"
              }
            ]
          },
          {
            "component": "buttonGroup",
            "label": "Standard",
            "show": "@isDocumentOpen",
            "hide": "@isBaselineMode",
            "items": [
              {
                "component": "button",
                "icon": "save",
                "variant": "action",
                "quiet": true,
                "title": "@titles.APP_SAVE_ALL",
                "hide": ["@isPreviewMode", "@isImageEditMode"],
                "on-click": "APP_SAVE_ALL"
              },
              {
                "component": "button",
                "icon": "dataUpload",
                "variant": "action",
                "quiet": true,
                "title": "Save as New Version",
                "show": "@hasVersionsSupport",
                "on-click": "APP_SAVE_REVISION"
              },
              {
                "component": "button",
                "icon": "undo",
                "variant": "action",
                "quiet": true,
                "title": "Undo",
                "enabled": "@canUndo",
                "hide": ["@isPreviewMode", "@isPresetMode", "@isPDFPresetMode", "@isTemplatePrintLayout", "@isSvgContentMode","@isImageEditMode"],
                "on-click": "AUTHOR_UNDO"
              },
              {
                "component": "button",
                "icon": "redo",
                "variant": "action",
                "quiet": true,
                "title": "Redo",
                "enabled": "@canRedo",
                "hide": ["@isPreviewMode", "@isPresetMode", "@isPDFPresetMode", "@isTemplatePrintLayout", "@isSvgContentMode","@isImageEditMode"],
                "on-click": "AUTHOR_REDO"
              },
              {
                "component": "button",
                "icon": "delete",
                "variant": "action",
                "quiet": true,
                "title": "Delete Element",
                "show": "@isAuthorOrTocMode",
                "hide": ["@isPresetMode", "@isPDFPresetMode", "@isTemplatePrintLayout", "@isPrintLayoutMode", "@isCSSMode", "@isSvgContentMode", "@isImageEditMode", "@isJavaScriptMode"],
                "on-click": "AUTHOR_DELETE_ELEMENT"
              },
              {
                "component": "button",
                "icon": "findAndReplace",
                "variant": "action",
                "quiet": true,
                "hide": ["@isPreviewMode", "@isPresetMode", "@isPDFPresetMode", "@isTemplatePrintLayout", "@isPrintLayoutMode", "@isCSSMode", "@isSvgContentMode", "@isTocMode", "@isImageEditMode"],
                "title": "@titles.APP_SHOW_FIND_REPLACE_DIALOG",
                "on-click": "APP_SHOW_FIND_REPLACE_DIALOG"
              }
            ]
          },
          {
            "component": "buttonGroup",
            "label": "Standard",
            "show": "@isFolderProfileAdmin",
            "items": [
              {
                "component": "button",
                "icon": "settings",
                "variant": "action",
                "quiet": true,
                "title": "Editor Settings",
                "on-click": "APP_SHOW_ADMIN_PREFERENCES"
              }
            ]
          },
          {
            "component": "buttonGroup",
            "label": "Standard",
            "items": [
              {
                "component": "button",
                "extraclass": "folder-profile-container",
                "icon": "pageGear",
                "label": "@folderProfileName",
                "variant": "action",
                "quiet": true,
                "title": "User Preferences",
                "on-click": "APP_SHOW_USER_PREFERENCES"
              }
            ]
          }
        ]
      },
      {
        "component": "div",
        "extraclass": ["root-map-div-pos","spectrum--darkest"],
        "items": [
          {
            "component": "label",
            "extraclass": "root-map-position",
            "label": "@pageRootDitaMapTitle",
            "title": "@pageRootDitaMapTitle"
          }
        ]
      },
      {
        "component": "buttonGroup",
        "extraclass": "right-topbar",
        "items": [
          {
            "component": "buttonGroup",
            "extraclass": "editor-views",
            "show": ["@isDocumentOpen", "@hasEditorModes"],
            "value": "@editorMode",
            "items": [
              {
                "component": "button",
                "icon": "textBulletedHierarchy",
                "title": "Layout",
                "label": "Layout",
                "variant": "action",
                "quiet": true,
                "show": "@hasTocMode",
                "hide": ["@isTabReadMode", "@isMarkdownMode", "@isPresetMode", "@isPDFPresetMode", "@isTemplatePrintLayout", "@isSchematronMode"],
                "value": "toc",
                "on-click": "APP_SHOW_TOC_VIEW"
              },
              {
                "component": "button",
                "icon": "edit",
                "title": "Author",
                "label": "Author",
                "variant": "action",
                "quiet": true,
                "show": "@hasAuthorMode",
                "value": "author",
                "on-click": "APP_SHOW_AUTHOR_VIEW"
              },
              {
                "component": "button",
                "icon": "code",
                "title": "Source",
                "label": "Source",
                "variant": "action",
                "quiet": true,
                "show": "@hasSourceMode",
                "value": "source",
                "on-click": "APP_SHOW_SOURCE_VIEW"
              },
              {
                "component": "button",
                "icon": "preview",
                "title": "Preview",
                "label": "Preview",
                "variant": "action",
                "quiet": true,
                "show": "@hasPreviewMode",
                "value": "preview",
                "on-click": "APP_SHOW_PREVIEW"
              }
            ]
          },
          {
            "component": "buttonGroup",
            "extraclass": "app-close",
            "items": [
              {
                "component": "button",
                "title": "Close",
                "label": "Close",
                "variant": "action",
                "quiet": true,
                "on-click": "APP_CLOSE"
              }
            ]
          }
        ]
      }
    ]
  },
  "toolbar": {
    "component": "blockGroup",
    "extraclass": "toolbar operations",
    "items": [
      {
        "component": "blockGroup",
        "extraclass": "left-controls",
        "label": "Left Controls",
        "show": ["@features.knowledgeBase", "@hasPageDitamap"],
        "items": [
          {
            "component": "tabList",
            "activeTabId": "@activeAppModeTabId",
            "extraclass": [ "app-mode", "separator" ],
            "items": [
              {
                "component": "tab",
                "id": "author",
                "title": "Author",
                "on-click": "APP_MODE_CHANGE",
                "items": [{ "component": "label", "label": "Author" }]
              },
              {
                "component": "tab",
                "id": "workflow",
                "title": "Manage",
                "on-click": "APP_MODE_CHANGE",
                "items": [{ "component": "label", "label": "Manage" }]
              },
              {
                "component": "tab",
                "id": "publish",
                "title": "Output",
                "on-click": "APP_MODE_CHANGE",
                "items": [{ "component": "label", "label": "Output" }]
              }
            ]
          }
        ]
      },
      {
        "hide": "@isTemplatePrintLayout",
        "component": "buttonGroup",
        "extraclass": "center-controls",
        "items": [
          {
            "component": "buttonGroup",
            "extraclass": "separator",
            "hide": ["@isPresetMode", "@isPDFPresetMode"],
            "show": ["@isDocumentOpen","@isPrintLayoutMode", "@isAuthorMode"],
            "items": [ { "id": "print_template_lists", "component": "widget" } ]
          },
          {
            "component": "buttonGroup",
            "label": "Insert",
            "show": ["@isDocumentOpen", "@isAuthorMode", "@isHtmlTopicMode" ],
            "items": [
              {
                "component": "buttonGroup",
                "label": "Insert Standard Elements",
                "extraclass": "separator",
                "items": [
                  {
                    "component": "button",
                    "extraclass": [],
                    "variant": "action",
                    "quiet": "true",
                    "icon": "TableAdd",
                    "title": "Insert Table",
                    "elementid": "toolbar_insert_table",
                    "on-click": {
                      "name": "AUTHOR_INSERT_TABLE",
                      "args": { "target": "toolbar_insert_table" }
                    }
                  },
                  {
                    "component": "button",
                    "icon": "image",
                    "variant": "action",
                    "quiet": "true",
                    "title": "@titles.AUTHOR_INSERT_IMAGE",
                    "on-click": "AUTHOR_INSERT_IMAGE_AEM"
                  },
                  {
                    "component": "button",
                    "extraclass": [],
                    "variant": "action",
                    "icon": "LinkGlobe",
                    "title": "Insert Hyperlink",
                    "elementid": "toolbar_insert_link",
                    "on-click": {
                      "name": "AEM_AUTHOR_INSERT_HREF"
                    },
                    "quiet": "true"
                  },
                  {
                    "component": "button",
                    "hide": "@isPrintLayoutMode",
                    "icon": "bookmark",
                    "variant": "action",
                    "quiet": "true",
                    "title": "@titles.AUTHOR_INSERT_BOOKMARK",
                    "on-click": "AUTHOR_INSERT_BOOKMARK"
                  },
                  {
                    "show": "@isPrintLayoutMode",
                    "component": "button",
                    "extraclass": [],
                    "variant": "action",
                    "icon": "bracketsSquare",
                    "title": "Insert Fields",
                    "elementid": "toolbar_insert_variable",
                    "on-click": {
                      "name": "AUTHOR_INSERT_FIELD"
                    },
                    "quiet": "true"
                  },
                  {
                    "component": "button",
                    "extraclass": [],
                    "variant": "action",
                    "quiet": "true",
                    "icon": "starburst",
                    "title": "@titles.AUTHOR_INSERT_SYMBOL",
                    "on-click": "AUTHOR_INSERT_SYMBOL"
                  },
                  {
                    "component": "button",
                    "extraclass": [],
                    "variant": "action",
                    "holdAffordance": true,
                    "icon": "addCircle",
                    "title": "Insert HTML Elements",
                    "elementid": "toolbar_special_element",
                    "show": "@isPrintLayoutMode",
                    "on-click": {
                      "name": "APP_SHOW_OPTIONS_POPOVER",
                      "args": {
                        "target": "toolbar_special_element",
                        "extraclass": "insert-special-html-elements",
                        "items": [
                          {
                            "name": "heading",
                            "displayName": "Heading",
                            "icon": "code",
                            "items": [
                              {
                                "name": "h1",
                                "displayName": "Heading 1",
                                "icon": "code",
                                "on-click": {
                                  "name": "AUTHOR_INSERT_HTML",
                                  "args": {
                                    "html": "<h1><br/></h1>"
                                  }
                                }
                              },
                              {
                                "name": "h2",
                                "displayName": "Heading 2",
                                "icon": "code",
                                "on-click": {
                                  "name": "AUTHOR_INSERT_HTML",
                                  "args": {
                                    "html": "<h2><br/></h2>"
                                  }
                                }
                              },
                              {
                                "name": "h3",
                                "displayName": "Heading 3",
                                "icon": "code",
                                "on-click": {
                                  "name": "AUTHOR_INSERT_HTML",
                                  "args": {
                                    "html": "<h3><br/></h3>"
                                  }
                                }
                              },
                              {
                                "name": "h2",
                                "displayName": "Heading 4",
                                "icon": "code",
                                "on-click": {
                                  "name": "AUTHOR_INSERT_HTML",
                                  "args": {
                                    "html": "<h4><br/></h4>"
                                  }
                                }
                              },
                              {
                                "name": "h5",
                                "displayName": "Heading 5",
                                "icon": "code",
                                "on-click": {
                                  "name": "AUTHOR_INSERT_HTML",
                                  "args": {
                                    "html": "<h5><br/></h5>"
                                  }
                                }
                              },
                              {
                                "name": "h6",
                                "displayName": "Heading 6",
                                "icon": "code",
                                "on-click": {
                                  "name": "AUTHOR_INSERT_HTML",
                                  "args": {
                                    "html": "<h6><br/></h6>"
                                  }
                                }
                              }
                            ]
                          },
                          {
                            "name": "p",
                            "icon": "code",
                            "displayName": "Paragraph",
                            "on-click": {
                              "name": "AUTHOR_INSERT_HTML",
                              "args": {
                                "html": "<p><br/></p>"
                              }
                            }
                          },
                          {
                            "name": "br",
                            "icon": "line",
                            "class": "horizontal-line",
                            "displayName": "Line Break",
                            "on-click": {
                              "name": "AUTHOR_INSERT_HTML",
                              "args": { "html": "<br/>" }
                            }
                          },
                          {
                            "name": "span",
                            "icon": "code",
                            "displayName": "Span",
                            "on-click": {
                              "name": "AUTHOR_INSERT_HTML",
                              "args": {
                                "html": "<span></span>"
                              }
                            }
                          },
                          {
                            "name": "hr",
                            "icon": "line",
                            "class": "horizontal-line options-separator",
                            "displayName": "Horizontal Line",
                            "on-click": {
                              "name": "AUTHOR_INSERT_HTML",
                              "args": { "html": "<hr></hr>" }
                            }
                          },
                          {
                            "name": "iframe",
                            "icon": "importInlineFrame",
                            "displayName": "iframe",
                            "on-click": "AUTHOR_INSERT_IFRAME"
                          },
                          {
                            "name": "div",
                            "displayName": "Div Container",
                            "icon": "Rectangle",
                            "on-click": {
                              "name": "AUTHOR_INSERT_HTML",
                              "args": {
                                "html": "<div style=\"padding:4px\"><p><br/></p></div>"
                              }
                            }
                          },
                          {
                            "name": "div",
                            "class": "options-separator",
                            "displayName": "Positioned Div",
                            "icon": "Rectangle",
                            "on-click": {
                              "name": "AUTHOR_INSERT_HTML",
                              "args": {
                                "html": "<div style=\"padding: 4px; height: 50px; width: 200px; position: absolute;\"><p><br/></p></div>"
                              }
                            }
                          },
                          {
                            "name": "embedHtml",
                            "icon": "code",
                            "displayName": "Embed HTML",
                            "on-click": "AUTHOR_INSERT_HTML"
                          }
                        ]
                      }
                    },
                    "quiet": "true"
                  }
                ]
              },
              {
                "component": "buttonGroup",
                "label": "Insert",
                "show": [ "@isAuthorMode", "@isHtmlTopicMode" ],
                "hide": "@isPrintLayoutMode",
                "items": [
                  {
                    "component": "button",
                    "title": "Create Expanding Text",
                    "icon": "textSpaceBefore",
                    "on-click": "AUTHOR_INSERT_EXPANDING_TEXT"
                  },
                  {
                    "component": "button",
                    "icon": "dropdown",
                    "title": "Create Drop-down Text",
                    "on-click": "AUTHOR_INSERT_DROP_DOWN_TEXT"
                  },
                  {
                    "component": "button",
                    "icon": "ImageMapRectangle",
                    "variant": "action",
                    "quiet": "true",
                    "title": "Insert/Edit Image Map",
                    "on-click": "AUTHOR_MANAGE_IMAGEMAP",
                    "show": "@isImageMode"
                  }
                ]
              },
              {
                "component": "buttonGroup",
                "label": "Page Layout",
                "show": "@isMasterPageMode",
                "items": [
                  {
                    "component": "button",
                    "icon": "railTop",
                    "variant": "action",
                    "quiet": "true",
                    "title": "Edit Header",
                    "on-click": "AUTHOR_EDIT_HEADER"
                  },
                  {
                    "component": "button",
                    "icon": "railBottom",
                    "variant": "action",
                    "quiet": "true",
                    "title": "Edit Footer",
                    "on-click": "AUTHOR_EDIT_FOOTER"
                  },
                  {
                    "component": "button",
                    "extraclass": [],
                    "variant": "action",
                    "holdAffordance": true,
                    "icon": "Form",
                    "title": "Insert Placeholder",
                    "elementid": "toolbar_master_page_insert_placeholders",
                    "hide": "@isPrintLayoutMode",
                    "on-click": {
                      "name": "APP_SHOW_OPTIONS_POPOVER",
                      "args": {
                        "target": "toolbar_master_page_insert_placeholders",
                        "items": [
                          {
                            "name": "relatedTopic",
                            "icon": "LinkNav",
                            "displayName": "See Also",
                            "class": "options-separator",
                            "on-click": "AUTHOR_INSERT_SEEALSO"
                          },
                          {
                            "name": "relatedTopic",
                            "icon": "breakdown",
                            "displayName": "Mini TOC",
                            "on-click": "AUTHOR_INSERT_TOPIC_TOC"
                          },
                          {
                            "name": "topicPlaceholder",
                            "icon": "WebPage",
                            "displayName": "Topic",
                            "on-click": "AUTHOR_INSERT_TOPIC_PLACEHOLDER"
                          },
                          {
                            "name": "breadcrumbs",
                            "icon": "chevronDoubleRight",
                            "class": "options-separator",
                            "displayName": "Breadcrumbs",
                            "on-click": "AUTHOR_INSERT_BREADCRUMBS"
                          },
                          {
                            "name": "searchbox",
                            "icon": "123",
                            "displayName": "Page Number",
                            "class": "options-separator",
                            "on-click": {
                              "name": "AUTHOR_INSERT_FIELD",
                              "args": { "field": "page-number" }
                            }
                          },
                          {
                            "name": "searchbox",
                            "icon": "Search",
                            "displayName": "Search Box",
                            "class": "options-separator",
                            "on-click": "AUTHOR_INSERT_SEARCHWIDGET"
                          }
                        ]
                      }
                    },
                    "quiet": "true"
                  },
                  {
                    "component": "button",
                    "extraclass": [],
                    "variant": "action",
                    "icon": "Form",
                    "title": "Insert Topic",
                    "elementid": "toolbar_master_page_insert_placeholders",
                    "show": "@isPrintLayoutMode",
                    "on-click": {
                      "name": "AUTHOR_INSERT_TOPIC_PLACEHOLDER"
                    },
                    "quiet": "true"
                  },
                  {
                    "component": "button",
                    "extraclass": [],
                    "variant": "action",
                    "quiet": "true",
                    "icon": "breakdown",
                    "title": "Chapter TOC",
                    "show": "@isPrintLayoutMode",
                    "on-click": "AUTHOR_INSERT_CHAPTER_TOC"
                  }
                ]
              }
            ]
          },
          {
            "component": "buttonGroup",
            "label": "Insert",
            "show": ["@isDocumentOpen", "@isAuthorMode", "@isHtmlTopicMode" ],
            "hide": "@isPrintLayoutMode",
            "items": [
              {
                "component": "button",
                "title": "Create Expanding Text",
                "icon": "textSpaceBefore",
                "on-click": "AUTHOR_INSERT_EXPANDING_TEXT"
              },
              {
                "component": "button",
                "icon": "dropdown",
                "title": "Create Drop-down Text",
                "on-click": "AUTHOR_INSERT_DROP_DOWN_TEXT"
              },
              {
                "component": "button",
                "icon": "ImageMapRectangle",
                "variant": "action",
                "quiet": "true",
                "title": "Insert/Edit Image Map",
                "on-click": "AUTHOR_MANAGE_IMAGEMAP",
                "show": "@isImageMode"
              }
            ]
          },
          {
            "component": "buttonGroup",
            "show": "@isDocumentOpen",
            "items": [
              {
                "component": "buttonGroup",
                "show": [ "@isPresetMode"],
                "items": [
                  {
                    "component": "button",
                    "icon": "export",
                    "title": "Generate Preset",
                    "on-click": "APP_PRESET_GENERATE_AEM",
                    "variant": "action",
                    "quiet": "true"
                  },
                  {
                    "show": "@showViewOutputButton",
                    "component": "button",
                    "icon": "@viewOutputIcon",
                    "title": "@viewOutputTitle",
                    "on-click": "PRESET_VIEW",
                    "variant": "action",
                    "quiet": "true"
                  }
                ]
              },
              {
                "component": "buttonGroup",
                "show": [ "@isPDFPresetMode"],
                "items": [
                  {
                    "component": "button",
                    "icon": "export",
                    "title": "Generate Preset",
                    "on-click": "APP_PRESET_GENERATE",
                    "variant": "action",
                    "quiet": "true"
                  },
                  {
                    "show": "@showViewOutputButton",
                    "component": "button",
                    "icon": "Visibility",
                    "title": "View Output",
                    "on-click": "PRESET_VIEW",
                    "variant": "action",
                    "quiet": "true"
                  }
                ]
              },
              {
                "component": "buttonGroup",
                "show": [ "@isDitaValMode", "@isAuthorMode" ],
                "items": [
                  {
                    "component": "button",
                    "icon": "addCircle",
                    "variant": "action",
                    "quiet": true,
                    "title": "Add prop",
                    "on-click": "APP_ADD_PROP"
                  },
                  {
                    "component": "button",
                    "icon": "multipleAdd",
                    "variant": "action",
                    "quiet": true,
                    "title": "Add All props",
                    "on-click": "APP_ADD_PROPS"
                  }
                ]
              },
              {
                "component": "buttonGroup",
                "label": "Tools",
                "show": ["@isSourceMode"],
                "items": [
                  {
                    "component": "button",
                    "hide": ["@isMarkdownMode", "@isJavaScriptMode", "@isSchematronMode"],
                    "icon": "textIndentIncrease",
                    "variant": "action",
                    "quiet": true,
                    "title": "Auto Indent",
                    "on-click": "SOURCE_AUTO_INDENT"
                  }
                ]
              },
              {
                "component": "buttonGroup",
                "label": "Insert",
                "show": [ "@isXmlMode", "@isAuthorMode" ],
                "items": [
                  {
                    "component": "button",
                    "icon": "add",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Element",
                    "on-click": "AUTHOR_SHOW_INSERT_ELEMENT_UI"
                  },
                  {
                    "component": "button",
                    "icon": "textParagraph",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Paragraph",
                    "on-click": { "name": "AUTHOR_INSERT_ELEMENT", "args": "p" }
                  },
                  {
                    "component": "button",
                    "icon": "textNumbered",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Numbered List",
                    "on-click": "AUTHOR_INSERT_REMOVE_NUMBERED_LIST"
                  },
                  {
                    "component": "button",
                    "icon": "textBulleted",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Bulleted List",
                    "on-click": "AUTHOR_INSERT_REMOVE_BULLETED_LIST"
                  },
                  {
                    "component": "button",
                    "icon": "table",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Table",
                    "on-click": {
                      "name": "AUTHOR_INSERT_ELEMENT",
                      "args": [ "simpletable", "table", "choicetable" ]
                    }
                  },
                  {
                    "component": "button",
                    "icon": "image",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Image",
                    "on-click": { "name": "AUTHOR_INSERT_ELEMENT", "args": "image" }
                  },
                  {
                    "component": "button",
                    "extraclass": "insert-multimedia",
                    "icon": "playCircle",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Multimedia",
                    "elementID": "toolbar_insert_multimedia",
                    "on-click": {
                      "name": "APP_SHOW_OPTIONS_POPOVER",
                      "args": {
                        "target": "toolbar_insert_multimedia",
                        "extraclass": "insert-multimedia-options",
                        "items": [
                          {
                            "name": "audio_file",
                            "displayName": "Audio File",
                            "icon": "play",
                            "iconClass": "local-audio",
                            "on-click": {
                              "name": "AUTHOR_INSERT_ELEMENT",
                              "args": "object"
                            }
                          },
                          {
                            "name": "video_file",
                            "displayName": "Video File",
                            "icon": "playCircle",
                            "iconClass": "local-video",
                            "class": "menu-separator",
                            "on-click": {
                              "name": "AUTHOR_INSERT_ELEMENT",
                              "args": "object"
                            }
                          },
                          {
                            "name": "youtube",
                            "displayName": "YouTube",
                            "icon": "youTube",
                            "on-click": {
                              "name": "AUTHOR_INSERT_XML",
                              "args": "<object data='http://youtube.com'></object>"
                            }
                          },
                          {
                            "name": "vimeo",
                            "displayName": "Vimeo",
                            "icon": "playCircle",
                            "iconClass": "vimeo-video",
                            "class": "menu-separator",
                            "on-click": {
                              "name": "AUTHOR_INSERT_XML",
                              "args": "<object data='http://vimeo.com'></object>"
                            }
                          }
                        ]
                      }
                    }
                  },
                  {
                    "component": "div",
                    "extraclass": "button-separator",
                    "hide": ["@isPresetMode", "@isTranslationMode", "@isPDFPresetMode", "@isSvgContentMode","@isImageEditMode", "@isJavaScriptMode"],
                    "items": []
                  },
                  {
                    "component": "button",
                    "icon": "link",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Cross reference",
                    "on-click": {"name": "AUTHOR_INSERT_ELEMENT", "args": ["xref", "link"]}
                  },
                  {
                    "component": "button",
                    "icon": "linkPage",
                    "variant": "action",
                    "quiet": true,
                    "title": "@titles.AUTHOR_INSERT_REUSABLE_CONTENT",
                    "on-click": "AUTHOR_INSERT_REUSABLE_CONTENT"
                  },
				  {
					  "on-click":"insertJIRARef",
					  "icon":"linkCheck",
					  "variant":"quiet",
					  "type":"button",
					  "title":"Insert JIRA Reference"
				  },
                  {
                    "component": "button",
                    "icon": "starburst",
                    "variant": "action",
                    "quiet": true,
                    "title": "@titles.AUTHOR_INSERT_SYMBOL",
                    "on-click": "AUTHOR_INSERT_SYMBOL"
                  },
                  {
                    "component": "button",
                    "icon": "brackets",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Keyword",
                    "on-click": {"name": "AUTHOR_INSERT_ELEMENT", "args": "keyword"}
                  },
                  {
                    "component": "button",
                    "icon": "documentFragment",
                    "variant": "action",
                    "quiet": true,
                    "title": "@titles.AUTHOR_SHOW_INSERT_SNIPPET_UI",
                    "on-click": "AUTHOR_SHOW_INSERT_SNIPPET_UI"
                  },
                  {
                    "component": "button",
                    "icon": "imageMapRectangle",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert/Edit Image Map",
                    "on-click": "AUTHOR_MANAGE_IMAGE_MAP",
                    "show": "@isImageMode"
                  }
                ]
              },
              {
                "component": "buttonGroup",
                "label": "DitamapEdit",
                "show": ["@isTocMode", "@isMapEditMode"],
                "items": [
                  {
                    "component": "button",
                    "icon": "fileAdd",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Topic Reference",
                    "on-click": {"name": "TOC_INSERT_ELEMENT", "args": {"tag": "topic", "position": "on"}}
                  },
                  {
                    "hide": "@isBookmapEditMode",
                    "component": "button",
                    "icon": "breakdownAdd",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Topic Group",
                    "on-click": {"name": "TOC_INSERT_ELEMENT", "args": "topicgroup"}
                  },
                  {
                    "component": "button",
                    "icon": "key",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Key Definition",
                    "on-click": {"name": "TOC_INSERT_ELEMENT", "args": "keydef"}
                  },
                  {
                    "component": "button",
                    "icon": "textSpaceBefore",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Before",
                    "on-click": {"name": "TOC_INSERT_ELEMENT", "args": {"tag": "topic", "position": "before"}}
                  },
                  {
                    "component": "button",
                    "icon": "textSpaceAfter",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert After",
                    "on-click": {"name": "TOC_INSERT_ELEMENT", "args": {"tag": "topic", "position": "after"}}
                  },
                  {
                    "component": "div",
                    "extraclass": "button-separator",
                    "hide": ["@isTranslationMode"],
                    "items": []
                  },
                  {
                    "show": "@isBookmapEditMode",
                    "component": "button",
                    "icon": "frontMatter",
                    "variant": "action",
                    "holdAffordance": true,
                    "title": "Insert Front Matter",
                    "elementid": "toolbar_front_matter_element",
                    "on-click": "SHOW_TOC_FRONT_MATTER_MENU",
                    "quiet": "true"
                  },
                  {
                    "show": "@isBookmapEditMode",
                    "component": "button",
                    "icon": "BackMatter",
                    "variant": "action",
                    "holdAffordance": true,
                    "title": "Insert Back Matter",
                    "elementid": "toolbar_back_matter_element",
                    "on-click": "SHOW_TOC_BACK_MATTER_MENU",
                    "quiet": "true"
                  },
                  {
                    "show": "@isBookmapEditMode",
                    "component": "div",
                    "extraclass": "button-separator",
                    "hide": ["@isTranslationMode"],
                    "items": []
                  },
                  {
                    "component": "button",
                    "icon": "arrowLeft",
                    "variant": "action",
                    "quiet": true,
                    "title": "Move the selected item left",
                    "on-click": "TOC_MOVE_LEFT"
                  },
                  {
                    "component": "button",
                    "icon": "arrowRight",
                    "variant": "action",
                    "quiet": true,
                    "title": "Move the selected item right",
                    "on-click": "TOC_MOVE_RIGHT"
                  },
                  {
                    "component": "button",
                    "icon": "arrowUp",
                    "variant": "action",
                    "quiet": true,
                    "title": "Move the selected item up",
                    "on-click": "TOC_MOVE_UP"
                  },
                  {
                    "component": "button",
                    "icon": "arrowDown",
                    "variant": "action",
                    "quiet": true,
                    "title": "Move the selected item down",
                    "on-click": "TOC_MOVE_DOWN"
                  },
                  {
                    "component": "div",
                    "extraclass": "button-separator",
                    "hide": ["@isTranslationMode", "@isTocMode"],
                    "items": []
                  }
                ]  
              },
              {
                "component": "buttonGroup",
                "label": "DitamapEdit",
                "show": ["@isAuthorMode", "@isMapEditMode"],
                "items": [
                  {
                    "component": "button",
                    "icon": "textSpaceBefore",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Before",
                    "on-click": "AUTHOR_SHOW_INSERT_ELEMENT_BEFORE_BLOCK_UI"
                  },
                  {
                    "component": "button",
                    "icon": "textSpaceAfter",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert After",
                    "on-click": "AUTHOR_SHOW_INSERT_ELEMENT_AFTER_BLOCK_UI"
                  },
                  {
                    "component": "button",
                    "icon": "arrowLeft",
                    "variant": "action",
                    "quiet": true,
                    "title": "Move the selected item left",
                    "enabled": "@canMoveLeft",
                    "on-click": "AUTHOR_MOVE_LEFT"
                  },
                  {
                    "component": "button",
                    "icon": "arrowRight",
                    "variant": "action",
                    "quiet": true,
                    "title": "Move the selected item right",
                    "enabled": "@canMoveRight",
                    "on-click": "AUTHOR_MOVE_RIGHT"
                  },
                  {
                    "component": "div",
                    "extraclass": "button-separator",
                    "hide": ["@isTranslationMode"],
                    "items": []
                  },
                  {
                    "component": "button",
                    "icon": "add",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Element",
                    "on-click": "AUTHOR_SHOW_INSERT_ELEMENT_UI"
                  },
                  {
                    "component": "button",
                    "icon": "fileAdd",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Topic Reference",
                    "on-click": {"name": "AUTHOR_INSERT_ELEMENT", "args": "topicref"}
                  },
                  {
                    "component": "button",
                    "icon": "breakdownAdd",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Topic Group",
                    "on-click": {"name": "AUTHOR_INSERT_ELEMENT", "args": "topicgroup"}
                  },
                  {
                    "component": "button",
                    "icon": "projectAdd",
                    "variant": "action",
                    "quiet": true,
                    "show": "@isBookmapEditMode",
                    "title": "Insert Chapter",
                    "on-click": {"name": "AUTHOR_INSERT_ELEMENT", "args": "chapter"}
                  },
                  {
                    "component": "button",
                    "icon": "key",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Key Definition",
                    "on-click": {"name": "AUTHOR_INSERT_ELEMENT", "args": "keydef"}
                  },
                  {
                    "component": "button",
                    "icon": "tableAdd",
                    "variant": "action",
                    "quiet": true,
                    "title": "Insert Relationship Table",
                    "on-click": {"name": "AUTHOR_INSERT_ELEMENT", "args": "reltable"}
                  },
                  {
                    "component": "button",
                    "icon": "linkPage",
                    "variant": "action",
                    "quiet": true,
                    "title": "@titles.AUTHOR_INSERT_REUSABLE_CONTENT",
                    "on-click": "AUTHOR_INSERT_REUSABLE_CONTENT"
                  },
                  {
                    "component": "button",
                    "icon": "refresh",
                    "variant": "action",
                    "quiet": true,
                    "show": "@canRefreshNavTitle",
                    "title": "Refresh Navigation Title Attribute",
                    "on-click": "AUTHOR_REFRESH_NAV_TITLE"
                  }
                ]
              },
              {
                "component": "buttonGroup",
                "label": "Markdown",
                "show": ["@isMarkdownMode", "@hasPDFPresets"],
                "items": [
                  {
                    "component": "button",
                    "variant": "action",
                    "quiet": true,
                    "icon": "filePDF",
                    "title": "Download as PDF",
                    "on-click": "EDITOR_SAVE_AS_PDF"
                  }
                ]
              },
              {
                "component": "div",
                "extraclass": "button-separator",
                "hide": ["@isTranslationMode", "@isBaselineMode", "@isPresetMode", "@isPDFPresetMode", "@isSvgContentMode","@isImageEditMode", "@isJavaScriptMode"],
                "items": []
              },
              {
                "component": "buttonGroup",
                "label": "Lock Buttons",
                "show": "@hasFilePath",
                "items": [
                  {
                    "component": "button",
                    "icon": "lockClosed",
                    "variant": "action",
                    "quiet": true,
                    "title": "Lock",
                    "on-click": "editorCheckout",
                    "show": "@canCheckOut"
                  },
                  {
                    "component": "button",
                    "icon": "lockOpen",
                    "variant": "action",
                    "quiet": true,
                    "title": "@checkOutBy",
                    "on-click": "editorCheckin",
                    "show": "@canCheckIn"
                  },
                  {
                    "component": "button",
                    "icon": "viewAllTags",
                    "variant": "action",
                    "quiet": true,
                    "title": "Toggle Tags view",
                    "on-click": "AUTHOR_TOGGLE_TAG_VIEW",
                    "show": [ "@isXmlMode", "@isAuthorMode" ]
                  },
                  {
                    "component": "button",
                    "icon": "viewAllTags",
                    "variant": "action",
                    "quiet": true,
                    "title": "Toggle Tags view",
                    "on-click": "AUTHOR_TOGGLE_TAG_VIEW",
                    "show": [ "@isMapEditMode", "@isAuthorMode" ]
                  },
                  {
                    "component": "buttonGroup",
                    "value": "@trackChangeMode",
                    "items": [
                      {
                        "component": "button",
                        "icon": "annotate",
                        "variant": "action",
                        "quiet": true,
                        "title": "Enable/ Disable Track Changes",
                        "value": "track",
                        "on-click": "APP_TOGGLE_TRACK_CHANGE",
                        "show": [ "@isHtmlContentMode", "@isAuthorMode" ]
                      }
                    ]
                  },
                  {
                    "component": "button",
                    "icon": "merge",
                    "extraclass": "merge-icon",
                    "variant": "action",
                    "quiet": true,
                    "title": "Merge",
                    "on-click": "EDITOR_MERGE_WITH_VERSION",
                    "hide": "@isPreviewMode",
                    "show": [ "@hasFilePath"]
                  },
                  {
                    "component": "button",
                    "icon": "history",
                    "extraclass": "history-icon",
                    "variant": "action",
                    "quiet": true,
                    "title": "Version History",
                    "on-click": "EDITOR_VERSION_HISTORY",
                    "hide": "@isPreviewMode"
                  },
                  {
                    "component": "button",
                    "icon": "tag",
                    "extraclass": "tag-icon",
                    "variant": "action",
                    "quiet": true,
                    "title": "Version Label",
                    "on-click": "EDITOR_VERSION_LABELS",
                    "hide": "@isPreviewMode"
                  },
                  {
                    "component": "button",
                    "icon": "projectAdd",
                    "variant": "action",
                    "quiet": true,
                    "title": "Create Review Task",
                    "on-click": "CREATE_REVIEW_TASK",
                    "show": [ "@hasFilePath", "@isAuthorOrTocMode" ]
                  },
                  {
                    "component": "button",
                    "icon": "checkmark",
                    "variant": "action",
                    "quiet": true,
                    "title": "Mark Approved",
                    "on-click": "EDITOR_MARK_TOPIC_APPROVED",
                    "hide": "@isPreviewMode",
                    "show": "@features.approvalWorkflow"
                  },
                  {
                    "component": "button",
                    "icon": "spellcheck",
                    "variant": "action",
                    "quiet": true,
                    "show": ["@isHtmlContentMode", "@isAuthorMode", "@canRunSpellCheck"],
                    "title": "Check Spelling",
                    "on-click": "EDITOR_CHECK_SPELLING"
                  },
                  {
                    "component": "button",
                    "variant": "action",
                    "quiet": true,
                    "icon": "filePDF",
                    "title": "Download as PDF",
                    "show" : ["@isXmlMode", "@isPreviewMode", "@hasPDFPresets"],
                    "on-click": "EDITOR_SAVE_AS_PDF"
                  },
                  {
                    "component": "button",
                    "icon": "playCircle",
                    "variant": "action",
                    "quiet": true,
                    "title": "Start a new release",
                    "on-click": "EDITOR_START_NEW_RELEASE",
                    "show": ["@isPreviewMode", "@features.approvalWorkflow"]
                  },
                  {
                    "component": "div",
                    "show": ["@isTocMode", "@isMapEditMode"],
                    "extraclass": "button-separator",
                    "items": []
                  },
                  {
                    "show": ["@isTocMode", "@isMapEditMode"],
                    "component": "button",
                    "icon": "viewOptions",
                    "variant": "action",
                    "holdAffordance": true,
                    "title": "View Options",
                    "on-click": "SHOW_TOC_VIEW_OPTIONS",
                    "quiet": "true"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "show": "@isDocumentOpen",
        "component": "div",
        "label": "Right Controls",
        "extraclass": "right-controls",
        "hide": "@isDitaValMode",
        "items": [
          {
            "component": "div",
            "show": [ "@isTranslationMode"],
            "items": [
              {
                "extraclass": "send-for-translation-button",
                "component": "button",
                "label": "Send for Translation",
                "title": "Send for Translation",
                "on-click": "APP_SUBMIT_FOR_TRANSLATION",
                "variant": "cta",
                "hide": "@disableTranslationButton"
              }
            ]
          }
        ]
      },
      {
        "show": "@isDocumentOpen",
        "component": "div",
        "label": "Right Controls",
        "extraclass": "right-controls",
        "items": [
          {
            "component": "div",
            "show": [ "@isBaselineMode"],
            "items": [
              {
                "extraclass": "baseline-reset-button",
                "component": "button",
                "label": "Reset",
                "title": "Reset Baseline",
                "on-click": "FILE_RESET_BASELINE",
                "variant": "action",
                "quiet": true,
                "show": "@showBaselineResetButton"
              }
            ]
          }
        ]
      },
      {
        "show": "@isDocumentOpen",
        "component": "div",
        "label": "Right Controls",
        "extraclass": "right-controls",
        "items": [
          {
            "component": "div",
            "show": [ "@isBaselineMode"],
            "items": [
              {
                "extraclass": "baseline-save-button",
                "component": "button",
                "label": "Save",
                "title": "Save Baseline",
                "on-click": "FILE_SAVE_BASELINE",
                "variant": "primary",
                "show": "@showBaselineSaveButton"
              }
            ]
          }
        ]
      },
      {
        "component": "div",
        "label": "Right Controls",
        "extraclass": "right-controls",
        "show": "@hasPageDitamap",
        "hide": { "type": "boolean", "key": "@activeAppModeTabId", "values": [ "publish" ] },
        "items": [
          {
            "component": "buttonGroup",
            "label": "Publish",
            "extraclass": [
              "publish-controls"
            ],
            "items": [
              {
                "component": "button",
                "icon": "export",
                "variant": "action",
                "quiet": "true",
                "title": "Quick Generate",
                "on-click": "APP_PUBLISH"
              }
            ]
          }
        ]
      }
    ]
  },
  "shortcuts": [
    {
      "shortcut": [ "CTRL+SHIFT+S", "CMD+SHIFT+S" ],
      "event": "APP_SAVE",
      "title": "SAVE (CTRL+SHIFT+S)"
    },
    {
      "shortcut": [ "CTRL+S", "CMD+S" ],
      "event": "APP_SAVE_ALL",
      "title": "SAVE ALL (CTRL+S)"
    },
    { "shortcut": "ALT+ENTER", "event": "AUTHOR_SHOW_INSERT_ELEMENT_UI" },
    {
      "shortcut": [ "CTRL+1", "CMD+1" ],
      "event": "AUTHOR_SHOW_INSERT_SNIPPET_UI",
      "title": "Insert Snippet (CTRL+1)"
    },
    {
      "shortcut": [ "CTRL+2", "CMD+2" ],
      "event": "AUTHOR_INSERT_REUSABLE_CONTENT",
      "title": "Insert Reusable Content (CTRL+2)"
    },
    {
      "shortcut": [ "CTRL+3", "CMD+3" ],
      "event": "AUTHOR_INSERT_SYMBOL",
      "title": "Insert Special Character (CTRL+3)"
    },
    {
      "shortcut": "ALT+SHIFT+ENTER",
      "event": "AUTHOR_SHOW_INSERT_ELEMENT_BEFORE_UI"
    },
    {
      "shortcut": "CTRL+ALT+ENTER",
      "event": "AUTHOR_SHOW_INSERT_ELEMENT_AFTER_UI"
    },
    {
      "shortcut": [ "CTRL+ALT+L", "CMD+ALT+L" ],
      "event": "SOURCE_AUTO_INDENT"
    },
    { "shortcut": [ "CTRL+Z", "CMD+Z" ], "event": "AUTHOR_UNDO" },
    { "shortcut": [ "CTRL+Y", "CMD+Y" ], "event": "AUTHOR_REDO" },
    {
      "shortcut": [ "CTRL+F", "CMD+F" ],
      "event": "APP_SHOW_FIND_REPLACE_DIALOG",
      "title": "Find and Replace (CTRL+F)"
    },
    {
      "shortcut": [ "CTRL+SHIFT+F", "CMD+SHIFT+F" ],
      "event": "APP_OPEN_FIND_REPLACE_PANEL",
      "title": "Search (CTRL+SHIFT+F)"
    }
  ],
  "ditaElements": {
    "elements": [],
    "constraint": false
  },
  "ditaAttributes": {
    "attributes": [],
    "constraint": false,
    "required": {}
  },
  "browseFilters": [
    {
      "title": "DITA files",
      "property": "jcr:content/metadata/dita_class",
      "operation": "like",
      "children": [
        {
          "title": "DITA Topics",
          "value": "- topic/topic",
          "checked": true
        },
        {
          "title": "DITA Maps",
          "value": "- map/map",
          "checked": true
        }
      ]
    },
    {
      "title": "Non-DITA files",
      "property": "jcr:content/metadata/dc:format",
      "children": [
        {
          "title": "Ditaval Files",
          "value": "application/dita+xml; format=val"
        },
        {
          "title": "Image Files",
          "value": [
            "image/jpeg",
            "image/gif",
            "image/png",
            "image/pjpeg",
            "image/tiff",
            "image/vnd.adobe.photoshop",
            "image/x-xcf",
            "image/x-bmp",
            "image/vnd.microsoft.icon",
            "image/bmp",
            "image/x-ppm",
            "image/x-pbm",
            "image/pbm",
            "application/postscript",
            "application/vnd.oasis.opendocument.graphics",
            "image/svg+xml",
            "image/x-adobe-dng",
            "image/x-dcraw",
            "image/x-dcraw",
            "image/x-raw-nikon"
          ]
        },
        {
          "title": "Multimedia",
          "value": [
            "audio/x-aac",
            "audio/mp3",
            "video/mpeg"
          ]
        },
        {
          "title": "Documents",
          "value": [
            "application/pdf",
            "text/html",
            "application/vnd.oasis.opendocument.presentation"
          ]
        },
        {
          "title": "Json",
          "value": [
            "application/json"
          ]
        }
      ]
    },
    {
      "title": "DITA elements",
      "property": "jcr:content/ditameta",
      "widgetId": "dita_filter",
      "operation": "like"
    },
    {
      "title": "Checked out by",
      "property": "jcr:content/cq:drivelock",
      "operation": "like",
      "itemConfig": {
        "component": "textfield",
        "placeholder": "Checked out by"
      },
      "children": [
        {
          "title": "Check out"
        }
      ]
    },
    {
      "title": "Last Modified",
      "property": "jcr:content/jcr:lastModified",
      "widgetId": "last_modified_filter",
      "operation": "like"
    },
    {
      "title": "Tags",
      "property": "jcr:content/metadata/cq:tags",
      "widgetId": "tags_filter"
    }
  ],
  "features": {
    "approvalWorkflow": false,
    "knowledgeBase": true,
    "schematron": true
  },
  "defaultValues": {
    "tagsView": true,
    "largeFileTagCount": 2500
  },
  "templates" : {
    "default": {
      "p": "<p></p>",
      "simpletable": "<simpletable relcolwidth='1*1*'><strow><stentry></stentry><stentry></stentry></strow><strow><stentry></stentry><stentry></stentry></strow><strow><stentry></stentry><stentry></stentry></strow></simpletable>",
      "table": "<table><tgroup cols='2'><colspec colname='col0' colwidth='1*'></colspec><colspec colname='col1' colwidth='1*'></colspec><tbody><row><entry></entry><entry></entry></row><row><entry></entry><entry></entry></row><row><entry></entry><entry></entry></row></tbody></tgroup></table>",
      "body": "<body><p></p></body>",
      "reltable": "<reltable><relrow><relcell></relcell><relcell></relcell><relcell></relcell></relrow></reltable>",
	  "varname":"<varname></varname>"
    }
  }
}