import Event from '../event.mjs';
import CoreAbstract from './_base.mjs';
class Clone extends CoreAbstract {
    /**
   * @param {HTMLTableElement} table Main table.
   * @param {SettingsPure|Settings} settings The Walkontable settings.
   * @param {WalkontableCloneOptions} clone Clone data.
   */ constructor(table, settings, clone){
        super(table, settings);
        const facadeGetter = this.wtSettings.getSetting('facade', this);
        this.cloneSource = clone.source;
        this.cloneOverlay = clone.overlay;
        this.wtTable = this.cloneOverlay.createTable(this.getTableDao(), facadeGetter, this.domBindings, this.wtSettings);
        this.wtViewport = clone.viewport;
        this.selectionManager = clone.selectionManager;
        this.wtEvent = new Event(facadeGetter, this.domBindings, this.wtSettings, this.eventManager, this.wtTable, this.selectionManager, clone.event);
        this.findOriginalHeaders();
    }
}
/**
 * @class Walkontable
 */ export { Clone as default };
