{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "presentation/components/search.component.ts",
          "name": "cancel",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "presentation/components/search.component.ts",
          "name": "attachSearchToggle",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        },
        {
          "file": "presentation/components/search.component.ts",
          "name": "attachSearchToggle",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "showButtons",
      "signature": "const showButtons = function showButtons(): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/components/search.component.ts",
          "name": "attachSearchToggle",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        },
        {
          "file": "presentation/components/search.component.ts",
          "name": "showButtons",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "cancel",
      "signature": "const cancel = function cancel(): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/assets/link.assets.ts",
          "name": "pageFromPath",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-assets-link-assets-ts",
            "json": "https://banes-lab.com/json/source/tree/core/assets/link.assets.ts",
            "label": "core/assets/link.assets.ts",
            "markdown": "https://banes-lab.com/source/tree/core/assets/link.assets.ts.md",
            "ref": "anatomy:file-core-assets-link-assets-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "presentation/components/search.component.ts",
          "name": "requestResults",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "onSearchPage",
      "signature": "const onSearchPage = function onSearchPage(): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/components/search.component.ts",
          "name": "attachSearchToggle",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 65,
      "name": "showField",
      "signature": "const showField = function showField(query: string): void {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [
        {
          "file": "presentation/components/search.component.ts",
          "name": "attachSearchToggle",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 83,
      "name": "unsubscribe",
      "signature": "const unsubscribe = subscribeEvent(ROUTE_CHANGED, (event) => {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "presentation/components/search.component.ts",
          "name": "cancel",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        },
        {
          "file": "presentation/components/search.component.ts",
          "name": "showButtons",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        },
        {
          "file": "presentation/components/search.component.ts",
          "name": "showButtons",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        },
        {
          "file": "presentation/components/search.component.ts",
          "name": "showField",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        },
        {
          "file": "presentation/components/search.component.ts",
          "name": "unsubscribe",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "attachSearchToggle",
      "signature": "export const attachSearchToggle = function attachSearchToggle(bar: Element, buttons: readonly Element[]): SearchToggle {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/factories/element.factory.ts",
          "name": "createElement",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-factories-element-factory-ts",
            "json": "https://banes-lab.com/json/source/tree/core/factories/element.factory.ts",
            "label": "core/factories/element.factory.ts",
            "markdown": "https://banes-lab.com/source/tree/core/factories/element.factory.ts.md",
            "ref": "anatomy:file-core-factories-element-factory-ts"
          }
        },
        {
          "file": "core/factories/element.factory.ts",
          "name": "createElement",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-factories-element-factory-ts",
            "json": "https://banes-lab.com/json/source/tree/core/factories/element.factory.ts",
            "label": "core/factories/element.factory.ts",
            "markdown": "https://banes-lab.com/source/tree/core/factories/element.factory.ts.md",
            "ref": "anatomy:file-core-factories-element-factory-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "iconButton",
      "signature": "const iconButton = function iconButton(icon: string, title: string): HTMLButtonElement {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/buses/base.bus.ts",
          "name": "emitEvent",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-buses-base-bus-ts",
            "json": "https://banes-lab.com/json/source/tree/core/buses/base.bus.ts",
            "label": "core/buses/base.bus.ts",
            "markdown": "https://banes-lab.com/source/tree/core/buses/base.bus.ts.md",
            "ref": "anatomy:file-core-buses-base-bus-ts"
          }
        },
        {
          "file": "presentation/components/search.component.ts",
          "name": "onSearchPage",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/search.component.ts",
            "label": "presentation/components/search.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.md",
            "ref": "anatomy:file-presentation-components-search-component-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "requestResults",
      "signature": "const requestResults = function requestResults(query: string): void {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "KEY_EVENT",
      "signature": "const KEY_EVENT = \"keydown\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "CLOSE_KEY",
      "signature": "const CLOSE_KEY = \"Escape\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "path",
      "signature": "const path = queryPath(SEARCH_PAGE, SEARCH_QUERY_PARAM, query);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "timer",
      "signature": "let timer: ReturnType<typeof setTimeout> | null = null;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "field",
      "signature": "const field = createFilterBox(SEARCH_FIELD_PLACEHOLDER, SEARCH_FIELD_LABEL, (query) => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "openButton",
      "signature": "const openButton = iconButton(SEARCH_ICON, SEARCH_OPEN_TITLE);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 64,
      "name": "closeButton",
      "signature": "const closeButton = iconButton(SEARCH_CLOSE_ICON, SEARCH_CLOSE_TITLE);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-search-component-ts",
  "language": "typescript",
  "layer": "product",
  "name": "search.component.ts",
  "path": "presentation/components/search.component.ts",
  "ref": "anatomy:file-presentation-components-search-component-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-presentation-components",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-components",
          "label": "presentation/components",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-components.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-components"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#file-core-assets-link-assets-ts",
          "json": "https://banes-lab.com/json/source/tree/core/assets/link.assets.ts",
          "label": "core/assets/link.assets.ts",
          "markdown": "https://banes-lab.com/source/tree/core/assets/link.assets.ts.md",
          "ref": "anatomy:file-core-assets-link-assets-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#file-core-buses-base-bus-ts",
          "json": "https://banes-lab.com/json/source/tree/core/buses/base.bus.ts",
          "label": "core/buses/base.bus.ts",
          "markdown": "https://banes-lab.com/source/tree/core/buses/base.bus.ts.md",
          "ref": "anatomy:file-core-buses-base-bus-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#file-core-factories-element-factory-ts",
          "json": "https://banes-lab.com/json/source/tree/core/factories/element.factory.ts",
          "label": "core/factories/element.factory.ts",
          "markdown": "https://banes-lab.com/source/tree/core/factories/element.factory.ts.md",
          "ref": "anatomy:file-core-factories-element-factory-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-assets",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-assets",
          "label": "core/assets",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-assets.md",
          "ref": "chapter:/anatomy/tree#folder-core-assets"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-buses",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-buses",
          "label": "core/buses",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-buses.md",
          "ref": "chapter:/anatomy/tree#folder-core-buses"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-factories",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-factories",
          "label": "core/factories",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-factories.md",
          "ref": "chapter:/anatomy/tree#folder-core-factories"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-presentation-components",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-components",
          "label": "presentation/components",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-components.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-components"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "component",
    "subject": "search",
    "variant": null
  },
  "stats": {
    "bytes": 3520,
    "callable": 7,
    "definitions": 15,
    "edges": 11,
    "exported": 9,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 2,
      "leaf": 3,
      "entry": 3,
      "isolated": 7
    },
    "lines": {
      "blank": 5,
      "code": 92,
      "total": 97
    }
  },
  "summary": "92 lines of code and 15 definitions.",
  "text": "https://banes-lab.com/source/tree/presentation/components/search.component.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-shell-component-ts",
      "json": "https://banes-lab.com/json/source/tree/presentation/components/shell.component.ts",
      "label": "presentation/components/shell.component.ts",
      "markdown": "https://banes-lab.com/source/tree/presentation/components/shell.component.ts.md",
      "ref": "anatomy:file-presentation-components-shell-component-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-reference-component-ts",
      "json": "https://banes-lab.com/json/source/tree/presentation/components/reference.component.ts",
      "label": "presentation/components/reference.component.ts",
      "markdown": "https://banes-lab.com/source/tree/presentation/components/reference.component.ts.md",
      "ref": "anatomy:file-presentation-components-reference-component-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/presentation/components",
    "label": "presentation/components",
    "markdown": "https://banes-lab.com/api/source/tree/presentation/components.md",
    "ref": "api:source/tree/presentation/components"
  }
}
