import { withoutDefaults } from '@wix/bex-core';
import { cairoSectionCtaClicked } from '@wix/bex-core/bi';
import { v4 as uuid } from 'uuid';
export class GridFoldersBIReporter {
    get reportBi() {
        return this.state.toolbar.reportBi;
    }
    constructor(params) {
        this.state = params.state;
    }
    onToggleShowAllButtonClick() {
        const { state } = this;
        const ctaId = uuid();
        this.reportBi(withoutDefaults(cairoSectionCtaClicked)({
            ...state.collections.folders._commonDynamicBiParams(),
            ctaId,
            ...{
                ctaName: state.showAllFolders ? 'show all' : 'show less',
            },
            sectionType: 'Folders',
        }));
    }
}
//# sourceMappingURL=GridFoldersBIReporter.js.map