{
  "definitions": [
    {
      "callable": false,
      "callees": [],
      "callers": [
        {
          "file": "presentation/widgets/menu.widget.ts",
          "name": "mountMenu",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-menu-widget-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/widgets/menu.widget.ts",
            "label": "presentation/widgets/menu.widget.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/widgets/menu.widget.ts.md",
            "ref": "anatomy:file-presentation-widgets-menu-widget-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "unsubscribe",
      "signature": "const unsubscribe = subscribeEvent(ROUTE_CHANGED, (event) => {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "presentation/widgets/menu.widget.ts",
          "name": "unsubscribe",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-menu-widget-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/widgets/menu.widget.ts",
            "label": "presentation/widgets/menu.widget.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/widgets/menu.widget.ts.md",
            "ref": "anatomy:file-presentation-widgets-menu-widget-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "mountMenu",
      "signature": "export const mountMenu = function mountMenu(container: HTMLElement): Disposer {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "markActive",
      "signature": "const markActive = function markActive(buttons: readonly Element[], page: string): void {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "active",
      "signature": "const active = item.getAttribute(PAGE_ATTRIBUTE) === page;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "buttons",
      "signature": "const buttons = listPages().map(createMenuButton);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "bar",
      "signature": "const bar = createElement(\"nav\", { attributes: { \"aria-label\": MAIN_NAVIGATION_LABEL }, className: \"tab-bar\" });"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "search",
      "signature": "const search = attachSearchToggle(bar, buttons);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-menu-widget-ts",
  "language": "typescript",
  "layer": "product",
  "name": "menu.widget.ts",
  "path": "presentation/widgets/menu.widget.ts",
  "ref": "anatomy:file-presentation-widgets-menu-widget-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-presentation-widgets",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-widgets",
          "label": "presentation/widgets",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-widgets.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-widgets"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-presentation-widgets",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-widgets",
          "label": "presentation/widgets",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-widgets.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-widgets"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "widget",
    "subject": "menu",
    "variant": null
  },
  "stats": {
    "bytes": 1507,
    "callable": 2,
    "definitions": 7,
    "edges": 1,
    "exported": 5,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 5
    },
    "lines": {
      "blank": 2,
      "code": 30,
      "total": 32
    }
  },
  "summary": "30 lines of code and 7 definitions.",
  "text": "https://banes-lab.com/source/tree/presentation/widgets/menu.widget.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-overlay-widget-ts",
      "json": "https://banes-lab.com/json/source/tree/presentation/widgets/overlay.widget.ts",
      "label": "presentation/widgets/overlay.widget.ts",
      "markdown": "https://banes-lab.com/source/tree/presentation/widgets/overlay.widget.ts.md",
      "ref": "anatomy:file-presentation-widgets-overlay-widget-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-home-widget-ts",
      "json": "https://banes-lab.com/json/source/tree/presentation/widgets/home.widget.ts",
      "label": "presentation/widgets/home.widget.ts",
      "markdown": "https://banes-lab.com/source/tree/presentation/widgets/home.widget.ts.md",
      "ref": "anatomy:file-presentation-widgets-home-widget-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/presentation/widgets",
    "label": "presentation/widgets",
    "markdown": "https://banes-lab.com/api/source/tree/presentation/widgets.md",
    "ref": "api:source/tree/presentation/widgets"
  }
}
