{"version":3,"file":"onMessageActionTaken.mjs","sources":["../../../../../../src/inAppMessaging/providers/pinpoint/apis/onMessageActionTaken.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { addEventListener } from '../../../../eventListeners';\nimport { assertIsInitialized } from '../../../utils';\n/**\n * Registers a callback that will be invoked on `messageActionTaken` events.\n *\n * @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.\n *\n * @param {OnMessageActionTakenInput} input - The input object that holds the callback handler.\n * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library\n * configuration is incorrect, or if In App messaging hasn't been initialized.\n * @returns {OnMessageActionTakenOutput} - An object that holds a remove method to stop listening to events.\n * @example\n * ```ts\n * onMessageActionTaken((message) => {\n *   // use the message\n *   console.log(message.id);\n * });\n * ```\n */\nexport function onMessageActionTaken(input) {\n    assertIsInitialized();\n    return addEventListener('messageActionTaken', input);\n}\n"],"names":[],"mappings":";;;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,oBAAoB,CAAC,KAAK,EAAE;AAC5C,IAAI,mBAAmB,EAAE;AACzB,IAAI,OAAO,gBAAgB,CAAC,oBAAoB,EAAE,KAAK,CAAC;AACxD;;;;"}