'use strict';
import { stripeSubscriptionStatuses } from '../../common/payments/stripe/stripe-constants.js';
import { subscriptionStatuses } from '../../meta/core/resources/enums/payment-enums.js';

var __defProp=Object['defineProperty'],__name=(_0x5c747d,_0x38e864)=>__defProp(_0x5c747d,'name',{'value':_0x38e864,'configurable':!![]});function mapSubscriptionStatusToDbFormat(_0x26150e){switch(_0x26150e){case stripeSubscriptionStatuses['canceled']:return subscriptionStatuses['canceled'];case stripeSubscriptionStatuses['active']:return subscriptionStatuses['active'];case stripeSubscriptionStatuses['paused']:return subscriptionStatuses['paused'];case 'incomplete_expired':return subscriptionStatuses['incompleteExpired'];case 'past_due':return subscriptionStatuses['pastDue'];case 'unpaid':return subscriptionStatuses['unpaid'];case 'incomplete':return subscriptionStatuses['incomplete'];case 'trialing':return subscriptionStatuses['trialing'];case 'ended':return subscriptionStatuses['ended'];default:return subscriptionStatuses['canceled'];}}__name(mapSubscriptionStatusToDbFormat,'mapSubscriptionStatusToDbFormat');

export { mapSubscriptionStatusToDbFormat };
