@osovitny/anatoly 3.20.35 → 3.20.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/osovitny-anatoly.mjs +12 -13
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/index.d.ts +2 -3
- package/package.json +1 -1
|
@@ -616,7 +616,6 @@ class AppContextService extends ApiServiceBase {
|
|
|
616
616
|
|
|
617
617
|
Authors:
|
|
618
618
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
619
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
620
619
|
|
|
621
620
|
Created:
|
|
622
621
|
1 Apr 2024
|
|
@@ -649,18 +648,18 @@ function getAppSettingsByName(name) {
|
|
|
649
648
|
return null;
|
|
650
649
|
}
|
|
651
650
|
function getCurrentApp() {
|
|
652
|
-
|
|
651
|
+
let appSettings = getAppSettingsByName(AppName);
|
|
652
|
+
let appOne = getAppSettingsById(1);
|
|
653
|
+
if (!appSettings || !appOne) {
|
|
653
654
|
return null;
|
|
654
655
|
}
|
|
655
|
-
let appOne = getAppSettingsById(1);
|
|
656
656
|
return {
|
|
657
|
-
|
|
658
|
-
root:
|
|
657
|
+
id: appSettings.id,
|
|
658
|
+
root: appSettings.root,
|
|
659
659
|
one: appOne,
|
|
660
660
|
oneUrl: appOne?.baseUrl + appOne?.root
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
const AppSettings = getAppSettingsByName(AppName);
|
|
664
663
|
|
|
665
664
|
/*
|
|
666
665
|
<file>
|
|
@@ -2499,7 +2498,7 @@ class AnatolyHttpInterceptor {
|
|
|
2499
2498
|
//7. set ca
|
|
2500
2499
|
let app = getCurrentApp();
|
|
2501
2500
|
if (app) {
|
|
2502
|
-
newUrl = this.setQS(newUrl, 'ca=' + app.
|
|
2501
|
+
newUrl = this.setQS(newUrl, 'ca=' + app.id);
|
|
2503
2502
|
}
|
|
2504
2503
|
//8. set new url
|
|
2505
2504
|
req = req.clone({ url: newUrl });
|
|
@@ -6218,11 +6217,11 @@ class PaypalButtonComponent extends ComponentBase {
|
|
|
6218
6217
|
let currencyCode = payment.amount.currency_code;
|
|
6219
6218
|
let details = JSON.stringify(orderData);
|
|
6220
6219
|
//ps
|
|
6221
|
-
let paymentMethod =
|
|
6222
|
-
let subtotal =
|
|
6223
|
-
let promoCode =
|
|
6224
|
-
let total =
|
|
6225
|
-
let currency =
|
|
6220
|
+
let paymentMethod = that.ps.selectedPaymentMethod;
|
|
6221
|
+
let subtotal = that.ps.subtotal;
|
|
6222
|
+
let promoCode = that.ps.promoCode;
|
|
6223
|
+
let total = that.ps.getTotal();
|
|
6224
|
+
let currency = that.ps.currency;
|
|
6226
6225
|
that.bs.addPayment(paymentMethod, that.paidFor, subtotal, promoCode, total, currency, paymentId, status, details);
|
|
6227
6226
|
}
|
|
6228
6227
|
catch {
|
|
@@ -11438,5 +11437,5 @@ class AnatolyModule {
|
|
|
11438
11437
|
* Generated bundle index. Do not edit.
|
|
11439
11438
|
*/
|
|
11440
11439
|
|
|
11441
|
-
export { AReplacerDirective, AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName,
|
|
11440
|
+
export { AReplacerDirective, AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName, AppVersion, AppsGoServiceBase, AuthService, AuthenticationGuard, BillingService, BillingUtils, BraintreeDialog, BrowserService, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, ClientApps, CompanyComponent, ComponentBase, ContactUsDialog, ContactUsForm, ControlPanelComponent, Convert, Copy2ClipboardComponent, CoreApiService, CountryDropdownlist, CurrenciesApiService, CurrenciesStorageService, DOM, DataPagerComponent, DataViewType, DateConvert, DefaultEditorOptions, DialogBase, DigitalMarketingService, DiscountCodeStatus, DiscountCodeType, EditComponentBase, EditPageBase, EmailsApiService, EnumEditComponentBase, FeatureWillBeReadyComponent, FileSizePipe, FormValidationSummaryComponent, GABillingEvents, GAEvents, GlobalErrorHandler, GoServiceBase, GoogleAnalyticsService, GridEditServiceBase, GridReadServiceBase, Guid, HoveringDirective, HtmlEditorComponent, HtmlEditorComponentBase, IdleService, ImageReplacerDirective, InjectorInstance$1 as InjectorInstance, IsDevMode, IsProdMode, ItemValidationSummaryComponent, L10nUtils, LanguageDropdownlist, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationModule, LocalizationService, LocalizePipe, LoggingService, MSALUtils, Mode, ModerationStatus, ModerationStatusDropdownlist, NativeElementDirective, NoMobileSupportComponent, NodataComponent, NotificationService, OrderSummaryComponent, PageBase, PageSpinnerComponent, PagedPageBase, PayPalComponent, PayPalScriptService, PaymentMethod, PaymentMethodsComponent, PaymentOptionsComponent, PaymentStage, PaymentType, PaymentsApiService, PaymentsService, PaypalButtonComponent, PaypalSubscribeButtonComponent, PromoCodesApiService, PublishStatus, PublishStatusDropdownlist, QSUtils, ReplaceTextPipe, SafeHtmlPipe, ScriptService, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterGuard, StarterService, Stopwatch, StripeDialog, Subs, SubscribePlanButtonComponent, SubscriptionProvider, SubscriptionsApiService, TimezoneDropdownlist, TransactionsApiService, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, YouAgreeToOurTermsComponent, dateFormats, dateTimeFormats, formatUrl, getAppCoreSettings, getAppSettingsById, getAppSettingsByName, getCurrentApp, getLocalizationInjector, is, resetAppCoreSettings, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
|
|
11442
11441
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|