import * as ko from "knockout" ; import { ActionContainerImplementor } from "survey-knockout-ui" ; import { ResponsivityManager } from "survey-core" ; const template = require ( "./tabbed-menu.html" ) ; export let TabbedMenuViewModel ; ko . components . register ( "svc-tabbed-menu" , { viewModel : { createViewModel : ( params , componentInfo ) => { const model = params . model ; const container = componentInfo . element . nextElementSibling ; new ActionContainerImplementor ( model ) ; const manager = new ResponsivityManager ( container , model , ".svc-tabbed-menu-item-container:not(.sv-dots)>.sv-action__content" ) ; ko . utils . domNodeDisposal . addDisposeCallback ( container , ( ) => manager . dispose ( ) ) ; return model ; } } , template : template } ) ;