@osovitny/anatoly 3.20.41 → 3.20.43

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.
@@ -1359,6 +1359,36 @@ class Subs {
1359
1359
  }
1360
1360
  }
1361
1361
 
1362
+ /*
1363
+ <file>
1364
+ Project:
1365
+ @osovitny/anatoly
1366
+
1367
+ Authors:
1368
+ Vadim Osovitny vadim.osovitny@osovitny.com
1369
+
1370
+ Created:
1371
+ 17 Dec 2025
1372
+
1373
+ Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
1374
+ </file>
1375
+ */
1376
+ //Node
1377
+ class ServiceBase {
1378
+ constructor() {
1379
+ //protected
1380
+ this.subs = new Subs();
1381
+ }
1382
+ ngOnDestroy() {
1383
+ this.subs.unsubscribe();
1384
+ }
1385
+ static { this.ɵfac = function ServiceBase_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ServiceBase)(); }; }
1386
+ static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ServiceBase, factory: ServiceBase.ɵfac }); }
1387
+ }
1388
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ServiceBase, [{
1389
+ type: Injectable
1390
+ }], () => [], null); })();
1391
+
1362
1392
  /*
1363
1393
  <file>
1364
1394
  Project:
@@ -1374,22 +1404,24 @@ class Subs {
1374
1404
  </file>
1375
1405
  */
1376
1406
  //Node
1377
- class GoServiceBase {
1407
+ class GoServiceBase extends ServiceBase {
1408
+ //gets
1409
+ get currentApp() {
1410
+ this.ensureInitialized();
1411
+ return this._currentApp;
1412
+ }
1378
1413
  constructor(route, router) {
1414
+ super();
1379
1415
  this.route = route;
1380
1416
  this.router = router;
1381
1417
  this.initialized = false;
1382
1418
  //protected
1383
- this.subs = new Subs();
1384
1419
  this.isDevMode = false;
1385
1420
  }
1386
- ngOnDestroy() {
1387
- this.subs.unsubscribe();
1388
- }
1389
1421
  ensureInitialized() {
1390
1422
  if (!this.initialized) {
1391
1423
  this.isDevMode = IsDevMode;
1392
- this.currentApp = getCurrentApp();
1424
+ this._currentApp = getCurrentApp();
1393
1425
  this.initialized = true;
1394
1426
  }
1395
1427
  }
@@ -1401,53 +1433,43 @@ class GoServiceBase {
1401
1433
  });
1402
1434
  }
1403
1435
  getHomeUrl() {
1404
- this.ensureInitialized();
1405
1436
  return this.currentApp.root;
1406
1437
  }
1407
1438
  locationReload() {
1408
1439
  window.location.reload();
1409
1440
  }
1410
1441
  home(reload = false) {
1411
- this.ensureInitialized();
1412
1442
  this.navigate([this.currentApp.root], {}, reload);
1413
1443
  }
1414
1444
  dashboard(reload = false) {
1415
- this.ensureInitialized();
1416
1445
  this.navigate([this.currentApp.root + '/dashboard'], {}, reload);
1417
1446
  }
1418
1447
  //Accounts
1419
1448
  accountClosed() {
1420
- this.ensureInitialized();
1421
1449
  this.navigate([this.currentApp.root + '/accounts/closed']);
1422
1450
  }
1423
1451
  //Errors
1424
1452
  error() {
1425
- this.ensureInitialized();
1426
1453
  this.navigate([this.currentApp.root + '/errors/error']);
1427
1454
  }
1428
1455
  //401 Unauthorized
1429
1456
  error401() {
1430
- this.ensureInitialized();
1431
1457
  this.navigate([this.currentApp.root + '/errors/401']);
1432
1458
  }
1433
1459
  //402 Payment Required
1434
1460
  error402() {
1435
- this.ensureInitialized();
1436
1461
  this.navigate([this.currentApp.root + '/errors/402']);
1437
1462
  }
1438
1463
  //403 Forbidden
1439
1464
  error403() {
1440
- this.ensureInitialized();
1441
1465
  this.navigate([this.currentApp.root + '/errors/403']);
1442
1466
  }
1443
1467
  //404 Not Found
1444
1468
  error404() {
1445
- this.ensureInitialized();
1446
1469
  this.navigate([this.currentApp.root + '/errors/404']);
1447
1470
  }
1448
1471
  //500 Internal Server Error
1449
1472
  error500() {
1450
- this.ensureInitialized();
1451
1473
  this.navigate([this.currentApp.root + '/errors/500']);
1452
1474
  }
1453
1475
  static { this.ɵfac = function GoServiceBase_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GoServiceBase)(i0.ɵɵinject(i1$1.ActivatedRoute), i0.ɵɵinject(i1$1.Router)); }; }
@@ -11648,5 +11670,5 @@ class AnatolyModule {
11648
11670
  * Generated bundle index. Do not edit.
11649
11671
  */
11650
11672
 
11651
- 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, 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, 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 };
11673
+ 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, 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, formatUrl, getAppCoreSettings, getAppSettingsById, getAppSettingsByName, getCurrentApp, getLocalizationInjector, is, resetAppCoreSettings, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
11652
11674
  //# sourceMappingURL=osovitny-anatoly.mjs.map