{"version":3,"file":"base.cjs","sources":["../../../src/components/pixi/base.ts"],"sourcesContent":["import { type Container } from 'pixi.js';\nimport { LayoutView, type LayoutViewOptions } from '../LayoutView';\n\nexport type ViewOptions = Omit<LayoutViewOptions, 'slot'>;\ntype BaseViewOptions = ViewOptions & { ClassType: new (...args: any[]) => Container };\n\nexport abstract class BaseView<T extends Container> extends LayoutView<T> {\n    constructor(opts: BaseViewOptions) {\n        const { layout, background, trackpad, ClassType, ...options } = opts;\n        const slot = new ClassType(options) as T;\n\n        super({\n            slot,\n            layout,\n            background,\n            trackpad,\n        });\n    }\n}\n"],"names":["LayoutView"],"mappings":";;;AAMO,MAAe,iBAAsCA,WAAAA,WAAc;AAAA,EACtE,YAAY,MAAuB;AAC/B,UAAM,EAAE,QAAQ,YAAY,UAAU,WAAW,GAAG,YAAY;AAC1D,UAAA,OAAO,IAAI,UAAU,OAAO;AAE5B,UAAA;AAAA,MACF;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA,CACH;AAAA,EAAA;AAET;;"}