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":"message-back.mjs","sourcesContent":["import { ISubmitAction, SubmitAction, SubmitActionOptions } from '../../core';\n\nimport { MSTeamsData } from './ms-teams-data';\n\nexport type MessageBackActionOptions = SubmitActionOptions & {\n  data: MSTeamsData<IMessageBackData>;\n};\n\n/**\n * @deprecated This type is deprecated. Please use {@link IMessageBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface IMessageBackAction extends ISubmitAction {\n  /**\n   * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n   */\n  data: MSTeamsData<IMessageBackData>;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link MessageBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class MessageBackAction extends SubmitAction implements IMessageBackAction {\n  /**\n   * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n   */\n  data: MSTeamsData<IMessageBackData>;\n\n  constructor(data: IMessageBackData, options: SubmitActionOptions = {}) {\n    super(options);\n    Object.assign(this, options);\n    this.data = {\n      msteams: new MessageBackData(data.text, data.value, data.displayText),\n    };\n  }\n\n  static from(options: MessageBackActionOptions) {\n    return new MessageBackAction(options.data.msteams, options);\n  }\n\n  withData(value: IMessageBackData) {\n    super.withData({ msteams: value });\n    return this;\n  }\n}\n\n/**\n * @deprecated This type is deprecated. Please use {@link IMessageBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface IMessageBackData {\n  type: 'messageBack';\n\n  /**\n   * Sent to your bot when the action is performed.\n   */\n  text: string;\n\n  /**\n   * Used by the user in the chat stream when the action is performed.\n   * This text isn't sent to your bot.\n   */\n  displayText?: string;\n\n  /**\n   * Sent to your bot when the action is performed. You can encode context\n   * for the action, such as unique identifiers or a `JSON` object.\n   */\n  value: string;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link MessageBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class MessageBackData implements IMessageBackData {\n  type: 'messageBack';\n\n  /**\n   * Sent to your bot when the action is performed.\n   */\n  text: string;\n\n  /**\n   * Used by the user in the chat stream when the action is performed.\n   * This text isn't sent to your bot.\n   */\n  displayText?: string;\n\n  /**\n   * Sent to your bot when the action is performed. You can encode context\n   * for the action, such as unique identifiers or a `JSON` object.\n   */\n  value: string;\n\n  constructor(text: string, value: string, displayText?: string) {\n    this.type = 'messageBack';\n    this.text = text;\n    this.value = value;\n    this.displayText = displayText;\n  }\n\n  withDisplayText(value: string) {\n    this.displayText = value;\n    return this;\n  }\n}\n"]}