"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OjSwipeActions = void 0;
const OjSwipeActionsBase_1 = require("./OjSwipeActionsBase");
const oj_module_proxy_1 = require("../../lib/oj-module-proxy");
/**
 * The component WebElement for [oj-swipe-actions](../../jsdocs/oj.ojSwipeActions.html).
 * Do not instantiate this class directly, instead, use
 * [ojSwipeActions](../functions/elements.ojSwipeActions-1.html).
 */
class OjSwipeActions extends OjSwipeActionsBase_1.OjSwipeActionsBase {
    /**
     * Performs the specified action.
     *
     * @param {string} value The value of the oj-option associated with the action to perform.
     */
    async doAction(value) {
        return (0, oj_module_proxy_1.executeWithModules)(this.getDriver(), ['CustomElementUtils'], [this, value], `
      (({ getElementBridge }, elem, action) => {
        var bridge = getElementBridge(elem);
        return bridge._WIDGET_INSTANCE._doAction(action);
      })
      `);
    }
}
exports.OjSwipeActions = OjSwipeActions;
//# sourceMappingURL=OjSwipeActions.js.map