{"version":3,"sources":["../../../src/actions/submit/im-back.ts"],"names":[],"mappings":";;AAmBO,MAAM,qBAAqB,YAAA,CAAsC;AAAA;AAAA;AAAA;AAAA,EAItE,IAAA;AAAA,EAEA,WAAA,CAAY,KAAA,EAAe,OAAA,GAA+B,EAAC,EAAG;AAC5D,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,MAAA,CAAO,MAAA,CAAO,MAAM,OAAO,CAAA;AAC3B,IAAA,IAAA,CAAK,OAAO,EAAE,OAAA,EAAS,IAAI,UAAA,CAAW,KAAK,CAAA,EAAE;AAAA,EAC/C;AAAA,EAEA,OAAO,KAAK,OAAA,EAA8B;AACxC,IAAA,OAAO,IAAI,YAAA,CAAa,OAAA,CAAQ,IAAA,CAAK,OAAA,CAAQ,OAAO,OAAO,CAAA;AAAA,EAC7D;AAAA,EAEA,SAAS,KAAA,EAAoB;AAC3B,IAAA,KAAA,CAAM,QAAA,CAAS,EAAE,OAAA,EAAS,KAAA,EAAO,CAAA;AACjC,IAAA,OAAO,IAAA;AAAA,EACT;AAAA,EAEA,UAAU,KAAA,EAAe;AACvB,IAAA,IAAA,CAAK,IAAA,CAAK,QAAQ,KAAA,GAAQ,KAAA;AAC1B,IAAA,OAAO,IAAA;AAAA,EACT;AACF;AAiBO,MAAM,UAAA,CAAkC;AAAA,EAC7C,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,YAAY,KAAA,EAAe;AACzB,IAAA,IAAA,CAAK,IAAA,GAAO,QAAA;AACZ,IAAA,IAAA,CAAK,KAAA,GAAQ,KAAA;AAAA,EACf;AACF","file":"im-back.mjs","sourcesContent":["import { ISubmitAction, SubmitAction, SubmitActionOptions } from '../../core';\n\nimport { MSTeamsData } from './ms-teams-data';\n\nexport type IMBackActionOptions = SubmitActionOptions & { data: MSTeamsData<IIMBackData> };\n\n/**\n * @deprecated This type is deprecated. Please use {@link IImBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface IIMBackAction extends ISubmitAction {\n  /**\n   * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n   */\n  data: MSTeamsData<IIMBackData>;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link ImBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class IMBackAction extends SubmitAction implements IIMBackAction {\n  /**\n   * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n   */\n  data: MSTeamsData<IIMBackData>;\n\n  constructor(value: string, options: SubmitActionOptions = {}) {\n    super(options);\n    Object.assign(this, options);\n    this.data = { msteams: new IMBackData(value) };\n  }\n\n  static from(options: IMBackActionOptions) {\n    return new IMBackAction(options.data.msteams.value, options);\n  }\n\n  withData(value: IIMBackData) {\n    super.withData({ msteams: value });\n    return this;\n  }\n\n  withValue(value: string) {\n    this.data.msteams.value = value;\n    return this;\n  }\n}\n\n/**\n * @deprecated This type is deprecated. Please use {@link IImBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface IIMBackData {\n  type: 'imBack';\n\n  /**\n   * String that needs to be echoed back in the chat.\n   */\n  value: string;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link ImBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class IMBackData implements IIMBackData {\n  type: 'imBack';\n\n  /**\n   * String that needs to be echoed back in the chat.\n   */\n  value: string;\n\n  constructor(value: string) {\n    this.type = 'imBack';\n    this.value = value;\n  }\n}\n"]}