text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.OnContinueConversation = void 0;
  /**
   * @module botbuilder-dialogs-adaptive
   */
  /**
   * Copyright (c) Microsoft Corporation. All rights reserved.
   * Licensed under the MIT License.
   */
  const adaptive_expressions_1 = require("adaptive-expressions");
  const botbuilder_dialogs_1 = require("botbuilder-dialogs");
  const onEventActivity_1 = require("./onEventActivity");
  /**
   * Actions triggered when an EventActivity is received.
   */
  class OnContinueConversation extends onEventActivity_1.OnEventActivity {
      /**
       * Initializes a new instance of the [OnContinueConversation](xref:botbuilder-dialogs-adaptive.OnContinueConversation) class.
       *
       * @param {Dialog[]} actions Optional, actions to add to the plan when the rule constraints are met.
       * @param {string} condition Optional, ondition which needs to be met for the actions to be executed.
       */
      constructor(actions = [], condition) {
          super(actions, condition);
      }
      /**
       * Create expression for this condition.
       *
       * @returns {Expression} An [Expression](xref:adaptive-expressions.Expression) used to evaluate this rule.
       */
      createExpression() {
          // add constraints for activity type
          return adaptive_expressions_1.Expression.andExpression(adaptive_expressions_1.Expression.parse(`${botbuilder_dialogs_1.TurnPath.activity}.name == 'ContinueConversation'`), super.createExpression());
      }
  }
  exports.OnContinueConversation = OnContinueConversation;
  OnContinueConversation.$kind = 'Microsoft.OnContinueConversation';
  //# sourceMappingURL=onContinueConversation.js.map