mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 20:41:17 +00:00
23 lines
826 B
TypeScript
23 lines
826 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import type { RawNode } from '../index.js';
|
|
import { Parser } from '../index.js';
|
|
import TranscriptFooter from './TranscriptFooter.js';
|
|
import TranscriptSearchBox from './TranscriptSearchBox.js';
|
|
import TranscriptSegmentList from './TranscriptSegmentList.js';
|
|
|
|
export default class TranscriptSearchPanel extends YTNode {
|
|
static type = 'TranscriptSearchPanel';
|
|
|
|
header: TranscriptSearchBox | null;
|
|
body: TranscriptSegmentList | null;
|
|
footer: TranscriptFooter | null;
|
|
target_id: string;
|
|
|
|
constructor(data: RawNode) {
|
|
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;
|
|
}
|
|
} |