import type { TemplateNodes } from './types' export default function bindNodes(target: TemplateNodes & { query: (selector: string) => T | null }): void { target.$player = target.query('.art-video-player') target.$video = target.query('.art-video') target.$track = target.query('track') target.$poster = target.query('.art-poster') target.$subtitle = target.query('.art-subtitle') target.$danmuku = target.query('.art-danmuku') target.$bottom = target.query('.art-bottom') target.$progress = target.query('.art-progress') target.$controls = target.query('.art-controls') target.$controlsLeft = target.query('.art-controls-left') target.$controlsCenter = target.query('.art-controls-center') target.$controlsRight = target.query('.art-controls-right') target.$layer = target.query('.art-layers') target.$loading = target.query('.art-loading') target.$notice = target.query('.art-notice') target.$noticeInner = target.query('.art-notice-inner') target.$mask = target.query('.art-mask') target.$state = target.query('.art-state') target.$setting = target.query('.art-settings') target.$info = target.query('.art-info') target.$infoPanel = target.query('.art-info-panel') target.$infoClose = target.query('.art-info-close') target.$contextmenu = target.query('.art-contextmenus') }