@osovitny/anatoly 3.21.38 → 3.21.39
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.
|
@@ -105,17 +105,17 @@ const AppContextStorageKeys = {
|
|
|
105
105
|
</file>
|
|
106
106
|
*/
|
|
107
107
|
//App
|
|
108
|
-
function
|
|
108
|
+
function getAppSettings() {
|
|
109
109
|
const json = sessionStorage.getItem(SessionStorageKeys.appSettings);
|
|
110
110
|
return json ? JSON.parse(json) : null;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
114
|
-
let isDevMode = `${
|
|
115
|
-
AppVersion = `${
|
|
112
|
+
function resetAppSettings() {
|
|
113
|
+
AppSettings = getAppSettings();
|
|
114
|
+
let isDevMode = `${AppSettings?.isDevMode}`;
|
|
115
|
+
AppVersion = `${AppSettings?.version}`;
|
|
116
116
|
IsDevMode = (isDevMode && (isDevMode == 'True' || isDevMode == 'true'));
|
|
117
117
|
IsProdMode = !IsDevMode;
|
|
118
|
-
ClientApps =
|
|
118
|
+
ClientApps = AppSettings?.clientApps;
|
|
119
119
|
}
|
|
120
120
|
function getAppSettingsById(id) {
|
|
121
121
|
let apps = ClientApps;
|
|
@@ -154,7 +154,7 @@ function getCurrentApp() {
|
|
|
154
154
|
oneUrl: appOne?.baseUrl + appOne?.root
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
|
-
let
|
|
157
|
+
let AppSettings;
|
|
158
158
|
let AppVersion;
|
|
159
159
|
let IsDevMode = true;
|
|
160
160
|
let IsProdMode = !IsDevMode;
|
|
@@ -162,7 +162,7 @@ let ClientApps;
|
|
|
162
162
|
const AppName = g_AppName;
|
|
163
163
|
const LibName = g_LibName;
|
|
164
164
|
const ApiUrl = g_ApiUrl;
|
|
165
|
-
|
|
165
|
+
resetAppSettings();
|
|
166
166
|
|
|
167
167
|
/*
|
|
168
168
|
<file>
|
|
@@ -244,12 +244,12 @@ function formatUrl(url) {
|
|
|
244
244
|
if (url.startsWith("http")) {
|
|
245
245
|
return url;
|
|
246
246
|
}
|
|
247
|
-
if (!
|
|
247
|
+
if (!AppSettings) {
|
|
248
248
|
return url;
|
|
249
249
|
}
|
|
250
|
-
const version =
|
|
251
|
-
const isCDNEnabled =
|
|
252
|
-
const cdnUrl =
|
|
250
|
+
const version = AppSettings.version;
|
|
251
|
+
const isCDNEnabled = AppSettings.cdn?.enabled;
|
|
252
|
+
const cdnUrl = AppSettings.cdn?.url;
|
|
253
253
|
const resolved = url
|
|
254
254
|
.replace('{AppName}', AppName ?? '')
|
|
255
255
|
.replace('{LibName}', LibName ?? '');
|
|
@@ -384,23 +384,23 @@ class LoggingService {
|
|
|
384
384
|
return [info, ...optionalParams];
|
|
385
385
|
}
|
|
386
386
|
static getConfiguredLogLevel() {
|
|
387
|
-
const
|
|
388
|
-
const configuredValue =
|
|
389
|
-
??
|
|
390
|
-
??
|
|
391
|
-
??
|
|
392
|
-
??
|
|
393
|
-
??
|
|
394
|
-
??
|
|
387
|
+
const appSettings = AppSettings;
|
|
388
|
+
const configuredValue = appSettings?.logging?.logLevel?.default
|
|
389
|
+
?? appSettings?.logging?.logLevel?.Default
|
|
390
|
+
?? appSettings?.logging?.logLevel
|
|
391
|
+
?? appSettings?.logging?.default
|
|
392
|
+
?? appSettings?.logging?.Default
|
|
393
|
+
?? appSettings?.diagnostics?.logLevel
|
|
394
|
+
?? appSettings?.logLevel;
|
|
395
395
|
if (configuredValue !== null && typeof configuredValue !== 'undefined') {
|
|
396
396
|
return LoggingService.toLogLevel(configuredValue);
|
|
397
397
|
}
|
|
398
|
-
return LoggingService.isDevMode(
|
|
398
|
+
return LoggingService.isDevMode(appSettings)
|
|
399
399
|
? AnatolyLogLevel.Verbose
|
|
400
400
|
: AnatolyLogLevel.Off;
|
|
401
401
|
}
|
|
402
|
-
static isDevMode(
|
|
403
|
-
const value =
|
|
402
|
+
static isDevMode(appSettings) {
|
|
403
|
+
const value = appSettings?.isDevMode ?? appSettings?.IsDevMode;
|
|
404
404
|
return value === true || `${value}`.toLowerCase() === 'true';
|
|
405
405
|
}
|
|
406
406
|
static toLogLevel(value) {
|
|
@@ -2645,8 +2645,8 @@ class AnatolyHttpInterceptor {
|
|
|
2645
2645
|
return url + '?' + value;
|
|
2646
2646
|
}
|
|
2647
2647
|
intercept(req, next) {
|
|
2648
|
-
let isCDNEnabled =
|
|
2649
|
-
let cdnSasToken =
|
|
2648
|
+
let isCDNEnabled = AppSettings?.cdn?.enabled;
|
|
2649
|
+
let cdnSasToken = AppSettings?.cdn?.sasToken;
|
|
2650
2650
|
let isLoadingFreezed = this.loadingService.isFreezed;
|
|
2651
2651
|
let loadingRequired = !isLoadingFreezed;
|
|
2652
2652
|
let isExternalSite = false;
|
|
@@ -6019,7 +6019,7 @@ class PaypalButtonComponent extends ComponentBase {
|
|
|
6019
6019
|
}
|
|
6020
6020
|
initPayPal() {
|
|
6021
6021
|
let that = this;
|
|
6022
|
-
let payPalSettings =
|
|
6022
|
+
let payPalSettings = AppSettings.externalApi.pm.payPal;
|
|
6023
6023
|
let clientId = payPalSettings.clientId;
|
|
6024
6024
|
let totalPrice = this.ps.getTotal().toString();
|
|
6025
6025
|
let currency = this.ps.currency;
|
|
@@ -6156,7 +6156,7 @@ class PaypalSubscribeButtonComponent extends ComponentBase {
|
|
|
6156
6156
|
}
|
|
6157
6157
|
initPayPal() {
|
|
6158
6158
|
let that = this;
|
|
6159
|
-
let payPalSettings =
|
|
6159
|
+
let payPalSettings = AppSettings.externalApi.pm.payPal;
|
|
6160
6160
|
let clientId = payPalSettings.clientId;
|
|
6161
6161
|
let planId = this.payPalPlanId;
|
|
6162
6162
|
this.payPalConfig = {
|
|
@@ -6266,7 +6266,7 @@ class StripeDialog extends DialogBase {
|
|
|
6266
6266
|
});
|
|
6267
6267
|
}
|
|
6268
6268
|
async initializeEmbedForm() {
|
|
6269
|
-
let stripePk =
|
|
6269
|
+
let stripePk = AppSettings.external.pm.stripe.publishableKey;
|
|
6270
6270
|
const that = this;
|
|
6271
6271
|
this.stripe = await loadStripe(stripePk);
|
|
6272
6272
|
this.stripeCheckout = await this.stripe.initEmbeddedCheckout({
|
|
@@ -7559,7 +7559,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
7559
7559
|
Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
|
|
7560
7560
|
</file>
|
|
7561
7561
|
*/
|
|
7562
|
-
let imageUploadUrl =
|
|
7562
|
+
let imageUploadUrl = AppSettings?.api?.url + AppSettings?.api?.imageUploadPath;
|
|
7563
7563
|
const DefaultEditorOptions = {
|
|
7564
7564
|
placeholderText: "Edit Your Content Here",
|
|
7565
7565
|
charCounterCount: true,
|
|
@@ -7648,7 +7648,7 @@ class HtmlEditorComponentBase extends EditComponentBase {
|
|
|
7648
7648
|
opt = JSON.parse(this.editorOptions);
|
|
7649
7649
|
}
|
|
7650
7650
|
let newOptions = $.extend({}, DefaultEditorOptions, opt);
|
|
7651
|
-
const key =
|
|
7651
|
+
const key = AppSettings.froalaEditorKey;
|
|
7652
7652
|
if (key) {
|
|
7653
7653
|
newOptions = $.extend({}, newOptions, JSON.parse('{ "key": "' + key + '" }'));
|
|
7654
7654
|
}
|
|
@@ -10113,7 +10113,7 @@ class AppService extends ApiServiceBase {
|
|
|
10113
10113
|
appSettings = appSettings.replace(/--APPNAME--/g, g_AppName);
|
|
10114
10114
|
sessionStorage.setItem(SessionStorageKeys.appSettings, appSettings);
|
|
10115
10115
|
sessionStorage.setItem(SessionStorageKeys.appMSALSettings, appMSALSettings);
|
|
10116
|
-
|
|
10116
|
+
resetAppSettings();
|
|
10117
10117
|
resetMsalSettings();
|
|
10118
10118
|
}
|
|
10119
10119
|
}));
|
|
@@ -10249,5 +10249,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
10249
10249
|
* Generated bundle index. Do not edit.
|
|
10250
10250
|
*/
|
|
10251
10251
|
|
|
10252
|
-
export { AReplacerDirective, AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyLogLevel, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService,
|
|
10252
|
+
export { AReplacerDirective, AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyLogLevel, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppName, AppSettings, AppVersion, AppsGoServiceBase, AssetGroupType, 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, LibName, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationModule, LocalizationService, LocalizePipe, LoggingService, MSALUtils, Message2User, Message2UserComponent, Message2UserService, 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, ServiceBase, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterGuard, StarterService, Stopwatch, StripeDialog, Subs, SubscribePlanButtonComponent, SubscriptionProvider, SubscriptionsApiService, TimezoneDropdownlist, TransactionsApiService, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, YouAgreeToOurTermsComponent, dateFormats, dateTimeFormats, formatAssetsUrl, formatUrl, getAppSettings, getAppSettingsById, getAppSettingsByName, getCurrentApp, getLocalizationInjector, is, resetAppSettings, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
|
|
10253
10253
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|