{"version":3,"file":"resolveConfig.mjs","sources":["../../../../../../src/pushNotifications/providers/pinpoint/utils/resolveConfig.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Amplify } from '@aws-amplify/core';\nimport { PushNotificationValidationErrorCode, assert } from '../../../errors';\n/**\n * @internal\n */\nexport const resolveConfig = () => {\n    const { appId, region } = Amplify.getConfig().Notifications?.PushNotification?.Pinpoint ?? {};\n    assert(!!appId, PushNotificationValidationErrorCode.NoAppId);\n    assert(!!region, PushNotificationValidationErrorCode.NoRegion);\n    return { appId, region };\n};\n"],"names":[],"mappings":";;;;AAAA;AACA;AAGA;AACA;AACA;AACY,MAAC,aAAa,GAAG,MAAM;AACnC,IAAI,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,QAAQ,IAAI,EAAE;AACjG,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,EAAE,mCAAmC,CAAC,OAAO,CAAC;AAChE,IAAI,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,mCAAmC,CAAC,QAAQ,CAAC;AAClE,IAAI,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE;AAC5B;;;;"}