UNPKG

@np-dev/youtubei-js

Version:

A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).

17 lines 748 B
import { YTNode } from '../helpers.js'; import { Parser } from '../index.js'; import TranscriptFooter from './TranscriptFooter.js'; import TranscriptSearchBox from './TranscriptSearchBox.js'; import TranscriptSegmentList from './TranscriptSegmentList.js'; class TranscriptSearchPanel extends YTNode { constructor(data) { super(); this.header = Parser.parseItem(data.header, TranscriptSearchBox); this.body = Parser.parseItem(data.body, TranscriptSegmentList); this.footer = Parser.parseItem(data.footer, TranscriptFooter); this.target_id = data.targetId; } } TranscriptSearchPanel.type = 'TranscriptSearchPanel'; export default TranscriptSearchPanel; //# sourceMappingURL=TranscriptSearchPanel.js.map