UNPKG

@antoniojps/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube.

20 lines 772 B
import { YTNode } from '../helpers.js'; import { Parser } from '../index.js'; import Button from './Button.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import { Text } from '../misc.js'; export default class TranscriptSearchBox extends YTNode { static type = 'TranscriptSearchBox'; formatted_placeholder; clear_button; endpoint; search_button; constructor(data) { super(); this.formatted_placeholder = new Text(data.formattedPlaceholder); this.clear_button = Parser.parseItem(data.clearButton, Button); this.endpoint = new NavigationEndpoint(data.onTextChangeCommand); this.search_button = Parser.parseItem(data.searchButton, Button); } } //# sourceMappingURL=TranscriptSearchBox.js.map