@veloceapps/sdk 8.0.0-131 → 8.0.0-133

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. package/cms/components/preview/preview.component.d.ts +2 -2
  2. package/cms/vendor-map.d.ts +2 -2
  3. package/core/modules/configuration/index.d.ts +1 -1
  4. package/core/modules/configuration/services/configuration-state.service.d.ts +48 -0
  5. package/core/modules/configuration/services/configuration.service.d.ts +2 -1
  6. package/core/services/flow-info.service.d.ts +1 -0
  7. package/core/services/flow-state-configuration.service.d.ts +3 -4
  8. package/esm2020/cms/components/preview/preview.component.mjs +4 -4
  9. package/esm2020/cms/vendor-map.mjs +3 -3
  10. package/esm2020/core/core.module.mjs +2 -4
  11. package/esm2020/core/modules/configuration/configuration.module.mjs +4 -4
  12. package/esm2020/core/modules/configuration/helpers.mjs +1 -1
  13. package/esm2020/core/modules/configuration/index.mjs +2 -2
  14. package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +267 -0
  15. package/esm2020/core/modules/configuration/services/configuration.service.mjs +21 -15
  16. package/esm2020/core/services/flow-info.service.mjs +4 -1
  17. package/esm2020/core/services/flow-state-configuration.service.mjs +23 -21
  18. package/esm2020/core/services/flow-state.service.mjs +13 -4
  19. package/esm2020/src/guards/context.guard.mjs +1 -2
  20. package/esm2020/src/pages/product/product.component.mjs +21 -8
  21. package/esm2020/src/pages/remote/remote.component.mjs +4 -4
  22. package/esm2020/src/services/flow-router.service.mjs +30 -13
  23. package/esm2020/src/services/flow.service.mjs +48 -27
  24. package/fesm2015/veloceapps-sdk-cms.mjs +4 -4
  25. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  26. package/fesm2015/veloceapps-sdk-core.mjs +251 -101
  27. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  28. package/fesm2015/veloceapps-sdk.mjs +94 -45
  29. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  30. package/fesm2020/veloceapps-sdk-cms.mjs +4 -4
  31. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  32. package/fesm2020/veloceapps-sdk-core.mjs +240 -100
  33. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  34. package/fesm2020/veloceapps-sdk.mjs +93 -44
  35. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  36. package/package.json +1 -1
  37. package/src/pages/product/product.component.d.ts +6 -4
  38. package/src/pages/remote/remote.component.d.ts +2 -2
  39. package/src/services/flow-router.service.d.ts +4 -2
  40. package/src/services/flow.service.d.ts +7 -3
  41. package/core/modules/configuration/services/configuration.state.d.ts +0 -30
  42. package/esm2020/core/modules/configuration/services/configuration.state.mjs +0 -142
@@ -16,7 +16,7 @@ import * as i1 from 'primeng/dynamicdialog';
16
16
  import { BehaviorSubject, Subject, filter, first, tap, takeUntil, catchError, of, map, switchMap, shareReplay, startWith, distinctUntilChanged, from, take, combineLatest, forkJoin, throwError } from 'rxjs';
17
17
  import * as i1$2 from '@angular/router';
18
18
  import { NavigationEnd, NavigationStart, NavigationCancel, NavigationError, RouterModule } from '@angular/router';
19
- import { SalesforceIdUtils, mapShoppingCartSettings, getMaxRenewalTermsValue, ConfigurationContextMode, UUID } from '@veloceapps/core';
19
+ import { UITemplateType, SalesforceIdUtils, mapShoppingCartSettings, getMaxRenewalTermsValue, ConfigurationContextMode, UUID } from '@veloceapps/core';
20
20
  import { HttpErrorResponse, HttpParams } from '@angular/common/http';
21
21
  import * as i5$1 from '@angular/forms';
22
22
  import { FormGroup, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
@@ -432,11 +432,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
432
432
  }] });
433
433
 
434
434
  class FlowRouterService {
435
- constructor(router, route, contextService, integrationState) {
435
+ constructor(router, route, contextService, integrationState, flowInfoService, flowStateService) {
436
436
  this.router = router;
437
437
  this.route = route;
438
438
  this.contextService = contextService;
439
439
  this.integrationState = integrationState;
440
+ this.flowInfoService = flowInfoService;
441
+ this.flowStateService = flowStateService;
440
442
  this.urlHistory = [];
441
443
  this.getLastChildRoute = (route) => {
442
444
  return route.firstChild ? this.getLastChildRoute(route.firstChild) : route;
@@ -546,12 +548,27 @@ class FlowRouterService {
546
548
  }
547
549
  }
548
550
  navigateToProductConfiguration(productId, lineItemId) {
549
- this.contextService.update({ properties: { productId, lineItemId } });
550
- const routeSnapshot = this.getLastChildRouteSnapshot(this.route.snapshot);
551
- const flowRouteUrl = this.getFlowRootPath(routeSnapshot);
552
- this.router.navigate([flowRouteUrl, 'product'], {
553
- queryParams: Object.assign(Object.assign({}, routeSnapshot.queryParams), { productId }),
554
- });
551
+ let updateContext$;
552
+ if (this.flowInfoService.isLegacy) {
553
+ updateContext$ = of(undefined).pipe(tap(() => {
554
+ this.contextService.update({ properties: { productId, lineItemId } });
555
+ }));
556
+ }
557
+ else {
558
+ updateContext$ = this.flowStateService.dispatch$(UITemplateType.FLOW_ENGINE, 'UPDATE_CONTEXT_PROPERTIES', {
559
+ productId,
560
+ lineItemId,
561
+ });
562
+ }
563
+ updateContext$
564
+ .pipe(tap(() => {
565
+ const routeSnapshot = this.getLastChildRouteSnapshot(this.route.snapshot);
566
+ const flowRouteUrl = this.getFlowRootPath(routeSnapshot);
567
+ this.router.navigate([flowRouteUrl, 'product'], {
568
+ queryParams: Object.assign(Object.assign({}, routeSnapshot.queryParams), { productId }),
569
+ });
570
+ }))
571
+ .subscribe();
555
572
  }
556
573
  navigateToShoppingCart() {
557
574
  const routeSnapshot = this.getLastChildRouteSnapshot(this.route.snapshot);
@@ -585,12 +602,12 @@ class FlowRouterService {
585
602
  this.router.navigate([], { relativeTo: route, queryParams: Object.assign(Object.assign({}, routeSnapshot.queryParams), queryParams) });
586
603
  }
587
604
  }
588
- FlowRouterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowRouterService, deps: [{ token: i1$2.Router }, { token: i1$2.ActivatedRoute }, { token: i2.ContextService }, { token: i2.IntegrationState }], target: i0.ɵɵFactoryTarget.Injectable });
605
+ FlowRouterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowRouterService, deps: [{ token: i1$2.Router }, { token: i1$2.ActivatedRoute }, { token: i2.ContextService }, { token: i2.IntegrationState }, { token: i2.FlowInfoService }, { token: i2.FlowStateService }], target: i0.ɵɵFactoryTarget.Injectable });
589
606
  FlowRouterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowRouterService, providedIn: 'root' });
590
607
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowRouterService, decorators: [{
591
608
  type: Injectable,
592
609
  args: [{ providedIn: 'root' }]
593
- }], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: i2.ContextService }, { type: i2.IntegrationState }]; } });
610
+ }], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: i2.ContextService }, { type: i2.IntegrationState }, { type: i2.FlowInfoService }, { type: i2.FlowStateService }]; } });
594
611
 
595
612
  class FlowDialogService {
596
613
  constructor(dialogService, contextService, runtimeSettings) {
@@ -726,13 +743,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
726
743
  }], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.ContextService }, { type: i2.RuntimeSettingsService }]; } });
727
744
 
728
745
  class FlowService {
729
- constructor(integrationState, flowRouterService, quoteDraftService, configurationService, flowConfigurationService, flowDialogService) {
746
+ constructor(integrationState, flowRouterService, quoteDraftService, configurationService, configurationStateService, flowDialogService, flowConfigurationService, flowInfoService, flowStateService) {
730
747
  this.integrationState = integrationState;
731
748
  this.flowRouterService = flowRouterService;
732
749
  this.quoteDraftService = quoteDraftService;
733
750
  this.configurationService = configurationService;
734
- this.flowConfigurationService = flowConfigurationService;
751
+ this.configurationStateService = configurationStateService;
735
752
  this.flowDialogService = flowDialogService;
753
+ this.flowConfigurationService = flowConfigurationService;
754
+ this.flowInfoService = flowInfoService;
755
+ this.flowStateService = flowStateService;
736
756
  this.cleanup$ = new Subject();
737
757
  }
738
758
  cleanup() {
@@ -760,11 +780,18 @@ class FlowService {
760
780
  .subscribe();
761
781
  this.integrationState
762
782
  .listen$(FlowAction.FLOW_NAVIGATE_BACK)
763
- .pipe(tap(() => this.flowRouterService.navigateBack()), takeUntil(this.cleanup$))
783
+ .pipe(switchMap(() => this.configurationStateService.cancelConfiguration()), tap(() => this.flowRouterService.navigateBack()), takeUntil(this.cleanup$))
764
784
  .subscribe();
765
785
  this.integrationState
766
786
  .listen$(FlowAction.FLOW_NAVIGATE_TO)
767
- .pipe(tap(payload => this.flowRouterService.navigateTo(payload.path, payload.productId, payload.lineItemId)), takeUntil(this.cleanup$))
787
+ .pipe(switchMap(payload => this.configurationStateService.cancelConfiguration().pipe(map(() => payload))), tap(payload => {
788
+ if (payload.path === 'product') {
789
+ this.integrationState.dispatch(FlowAction.ConfigureProductAction(payload));
790
+ }
791
+ else {
792
+ this.flowRouterService.navigateTo(payload.path, payload.productId, payload.lineItemId);
793
+ }
794
+ }), takeUntil(this.cleanup$))
768
795
  .subscribe();
769
796
  this.integrationState
770
797
  .listen$(FlowAction.OPEN_DIALOG)
@@ -783,29 +810,14 @@ class FlowService {
783
810
  this.integrationState
784
811
  .listen$(FlowAction.FLOW_APPLY_PRODUCT_CONFIGURATION)
785
812
  .pipe(switchMap(() => {
786
- const quoteDraft = this.quoteDraftService.quoteDraft;
787
- const lineItem = this.configurationService.getSnapshot();
788
- if (!quoteDraft || !lineItem) {
789
- return of(undefined);
790
- }
791
- const isNewLineItem = quoteDraft.currentState.every(li => li.id !== lineItem.id);
792
- const assetId = lineItem.assetId || lineItem.openOrderLineItemId;
793
- let updatedState;
794
- if (isNewLineItem) {
795
- updatedState = [...quoteDraft.currentState, lineItem];
813
+ if (this.flowInfoService.isLegacy) {
814
+ return this.legacyApplyConfiguration();
796
815
  }
797
816
  else {
798
- updatedState = quoteDraft.currentState.map(li => (li.id === lineItem.id ? lineItem : li));
817
+ return this.configurationStateService
818
+ .saveConfiguration('', true)
819
+ .pipe(switchMap(() => this.flowStateService.dispatch$(UITemplateType.FLOW_ENGINE, 'UPDATE_ASSET_IDS')));
799
820
  }
800
- return this.flowConfigurationService.calculate$(Object.assign(Object.assign({}, quoteDraft), { currentState: updatedState })).pipe(tap(() => {
801
- var _a;
802
- if (assetId) {
803
- const modifiedAssets = (_a = this.integrationState.state.modifiedAssets) !== null && _a !== void 0 ? _a : {};
804
- this.integrationState.patchState({
805
- modifiedAssets: Object.assign(Object.assign({}, modifiedAssets), { [assetId]: true }),
806
- });
807
- }
808
- }));
809
821
  }), tap(() => {
810
822
  this.configurationService.hasUnsavedChanges = false;
811
823
  this.flowRouterService.navigateToShoppingCart();
@@ -819,12 +831,37 @@ class FlowService {
819
831
  .pipe(map(path => { var _a; return (_a = path.split('/')) === null || _a === void 0 ? void 0 : _a[0]; }), takeUntil(this.cleanup$))
820
832
  .subscribe(flowPath => this.integrationState.patchState({ flowPath }));
821
833
  }
834
+ legacyApplyConfiguration() {
835
+ const quoteDraft = this.quoteDraftService.quoteDraft;
836
+ const lineItem = this.configurationService.getSnapshot();
837
+ if (!quoteDraft || !lineItem) {
838
+ return of(undefined);
839
+ }
840
+ const isNewLineItem = quoteDraft.currentState.every(li => li.id !== lineItem.id);
841
+ const assetId = lineItem.assetId || lineItem.openOrderLineItemId;
842
+ let updatedState;
843
+ if (isNewLineItem) {
844
+ updatedState = [...quoteDraft.currentState, lineItem];
845
+ }
846
+ else {
847
+ updatedState = quoteDraft.currentState.map(li => (li.id === lineItem.id ? lineItem : li));
848
+ }
849
+ return this.flowConfigurationService.calculate$(Object.assign(Object.assign({}, quoteDraft), { currentState: updatedState })).pipe(tap(() => {
850
+ var _a;
851
+ if (assetId) {
852
+ const modifiedAssets = (_a = this.integrationState.state.modifiedAssets) !== null && _a !== void 0 ? _a : {};
853
+ this.integrationState.patchState({
854
+ modifiedAssets: Object.assign(Object.assign({}, modifiedAssets), { [assetId]: true }),
855
+ });
856
+ }
857
+ }));
858
+ }
822
859
  }
823
- FlowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowService, deps: [{ token: i5.IntegrationState }, { token: FlowRouterService }, { token: i2.QuoteDraftService }, { token: i2.ConfigurationService }, { token: i2.FlowConfigurationService }, { token: FlowDialogService }], target: i0.ɵɵFactoryTarget.Injectable });
860
+ FlowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowService, deps: [{ token: i5.IntegrationState }, { token: FlowRouterService }, { token: i2.QuoteDraftService }, { token: i2.ConfigurationService }, { token: i2.ConfigurationStateService }, { token: FlowDialogService }, { token: i2.FlowConfigurationService }, { token: i2.FlowInfoService }, { token: i2.FlowStateService }], target: i0.ɵɵFactoryTarget.Injectable });
824
861
  FlowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowService });
825
862
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowService, decorators: [{
826
863
  type: Injectable
827
- }], ctorParameters: function () { return [{ type: i5.IntegrationState }, { type: FlowRouterService }, { type: i2.QuoteDraftService }, { type: i2.ConfigurationService }, { type: i2.FlowConfigurationService }, { type: FlowDialogService }]; } });
864
+ }], ctorParameters: function () { return [{ type: i5.IntegrationState }, { type: FlowRouterService }, { type: i2.QuoteDraftService }, { type: i2.ConfigurationService }, { type: i2.ConfigurationStateService }, { type: FlowDialogService }, { type: i2.FlowConfigurationService }, { type: i2.FlowInfoService }, { type: i2.FlowStateService }]; } });
828
865
 
829
866
  class FlowGuidedSellingService {
830
867
  constructor(integrationState) {
@@ -925,7 +962,6 @@ class ContextGuard {
925
962
  }
926
963
  // Initialize context and runtime settings
927
964
  return forkJoin([this.contextService.create(headerId, mode), this.runtimeSettingsService.create()]).pipe(tap(([context]) => {
928
- // Update context with queryParams
929
965
  this.contextService.update(Object.assign(Object.assign({}, context), { properties: Object.assign(Object.assign(Object.assign({}, context.properties), (queryParams !== null && queryParams !== void 0 ? queryParams : {})), getDefaultProperties({ mode })) }));
930
966
  // Init currency settings
931
967
  this.runtimeSettingsService.initCurrency(context.properties['CurrencyIsoCode']);
@@ -1403,12 +1439,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1403
1439
  }] });
1404
1440
 
1405
1441
  class ProductComponent {
1406
- constructor(contextService, configurationRuntimeService, configurationService, configurationState, quoteDraftService, integrationState, customizationService) {
1442
+ constructor(contextService, configurationRuntimeService, configurationService, configurationStateService, quoteDraftService, flowInfoService, flowStateService, integrationState, customizationService) {
1407
1443
  this.contextService = contextService;
1408
1444
  this.configurationRuntimeService = configurationRuntimeService;
1409
1445
  this.configurationService = configurationService;
1410
- this.configurationState = configurationState;
1446
+ this.configurationStateService = configurationStateService;
1411
1447
  this.quoteDraftService = quoteDraftService;
1448
+ this.flowInfoService = flowInfoService;
1449
+ this.flowStateService = flowStateService;
1412
1450
  this.integrationState = integrationState;
1413
1451
  this.customizationService = customizationService;
1414
1452
  this.uiDefinition$ = new BehaviorSubject(undefined);
@@ -1429,12 +1467,23 @@ class ProductComponent {
1429
1467
  }));
1430
1468
  }
1431
1469
  init$() {
1432
- return this.quoteDraftService.quoteDraft$.pipe(first(), switchMap(quote => {
1470
+ let quoteDraft$;
1471
+ if (this.flowInfoService.isLegacy) {
1472
+ quoteDraft$ = this.quoteDraftService.quoteDraft$;
1473
+ }
1474
+ else {
1475
+ quoteDraft$ = of(undefined);
1476
+ }
1477
+ return quoteDraft$.pipe(first(), switchMap(quote => {
1433
1478
  const contextProperties = this.contextService.resolve().properties;
1434
1479
  const productId = contextProperties.productId;
1435
1480
  if (!productId) {
1436
1481
  throw new Error(`Unable to start configuration for 'productId == null'`);
1437
1482
  }
1483
+ if (!quote) {
1484
+ const offeringId = contextProperties.offeringId;
1485
+ return this.configurationRuntimeService.init({ productId, offeringId });
1486
+ }
1438
1487
  const lineItemId = this.getLineItemId(quote, productId, contextProperties.lineItemId);
1439
1488
  const currentStateItem = quote.currentState.find(({ id }) => id === lineItemId);
1440
1489
  if (currentStateItem) {
@@ -1456,7 +1505,7 @@ class ProductComponent {
1456
1505
  this.configurationRuntimeService.initializationProps.attributesMap =
1457
1506
  this.integrationState.state.guidedSelling;
1458
1507
  }
1459
- }), switchMap(() => this.configurationState.init$()));
1508
+ }), switchMap(() => this.configurationStateService.init$()));
1460
1509
  }
1461
1510
  getLineItemId(quote, productId, lineItemId) {
1462
1511
  var _a, _b;
@@ -1468,13 +1517,13 @@ class ProductComponent {
1468
1517
  return id;
1469
1518
  }
1470
1519
  }
1471
- ProductComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductComponent, deps: [{ token: i2.ContextService }, { token: i2.ConfigurationRuntimeService }, { token: i2.ConfigurationService }, { token: i2.ConfigurationState }, { token: i2.QuoteDraftService }, { token: i2.IntegrationState }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1520
+ ProductComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductComponent, deps: [{ token: i2.ContextService }, { token: i2.ConfigurationRuntimeService }, { token: i2.ConfigurationService }, { token: i2.ConfigurationStateService }, { token: i2.QuoteDraftService }, { token: i2.FlowInfoService }, { token: i2.FlowStateService }, { token: i2.IntegrationState }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1472
1521
  ProductComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ProductComponent, selector: "vl-flow-product", ngImport: i0, template: "<vl-cms-preview [uiDefinition]=\"$any(uiDefinition$ | async)\" [config]=\"config\"></vl-cms-preview>\n", styles: [""], dependencies: [{ kind: "component", type: i5.PreviewComponent, selector: "vl-cms-preview", inputs: ["uiDefinition", "config"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1473
1522
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductComponent, decorators: [{
1474
1523
  type: Component,
1475
1524
  args: [{ selector: 'vl-flow-product', changeDetection: ChangeDetectionStrategy.OnPush, template: "<vl-cms-preview [uiDefinition]=\"$any(uiDefinition$ | async)\" [config]=\"config\"></vl-cms-preview>\n" }]
1476
1525
  }], ctorParameters: function () {
1477
- return [{ type: i2.ContextService }, { type: i2.ConfigurationRuntimeService }, { type: i2.ConfigurationService }, { type: i2.ConfigurationState }, { type: i2.QuoteDraftService }, { type: i2.IntegrationState }, { type: undefined, decorators: [{
1526
+ return [{ type: i2.ContextService }, { type: i2.ConfigurationRuntimeService }, { type: i2.ConfigurationService }, { type: i2.ConfigurationStateService }, { type: i2.QuoteDraftService }, { type: i2.FlowInfoService }, { type: i2.FlowStateService }, { type: i2.IntegrationState }, { type: undefined, decorators: [{
1478
1527
  type: Optional
1479
1528
  }, {
1480
1529
  type: Inject,
@@ -1858,12 +1907,12 @@ class RemoteComponent {
1858
1907
  return optionConfigurations;
1859
1908
  }
1860
1909
  }
1861
- RemoteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RemoteComponent, deps: [{ token: i2.ContextService }, { token: i2.QuoteDraftService }, { token: i2.ConfigurationRuntimeService }, { token: i2.ConfigurationService }, { token: i2.ConfigurationState }, { token: i2$2.MessageService }, { token: i2.IntegrationState }, { token: i4.Location }], target: i0.ɵɵFactoryTarget.Component });
1910
+ RemoteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RemoteComponent, deps: [{ token: i2.ContextService }, { token: i2.QuoteDraftService }, { token: i2.ConfigurationRuntimeService }, { token: i2.ConfigurationService }, { token: i2.ConfigurationStateService }, { token: i2$2.MessageService }, { token: i2.IntegrationState }, { token: i4.Location }], target: i0.ɵɵFactoryTarget.Component });
1862
1911
  RemoteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: RemoteComponent, selector: "vl-flow-remote", ngImport: i0, template: "<ng-container *ngIf=\"state$ | async as state\">\n <vl-loader *ngIf=\"state.loading; else content\" [label]=\"'Loading UI'\"></vl-loader>\n\n <ng-template #content>\n <ng-container *ngIf=\"!state.failure\">\n <vl-cms-preview [uiDefinition]=\"uiDefinition\"></vl-cms-preview>\n </ng-container>\n </ng-template>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.PreviewComponent, selector: "vl-cms-preview", inputs: ["uiDefinition", "config"] }, { kind: "component", type: i2$1.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1863
1912
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RemoteComponent, decorators: [{
1864
1913
  type: Component,
1865
1914
  args: [{ selector: 'vl-flow-remote', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"state$ | async as state\">\n <vl-loader *ngIf=\"state.loading; else content\" [label]=\"'Loading UI'\"></vl-loader>\n\n <ng-template #content>\n <ng-container *ngIf=\"!state.failure\">\n <vl-cms-preview [uiDefinition]=\"uiDefinition\"></vl-cms-preview>\n </ng-container>\n </ng-template>\n</ng-container>\n" }]
1866
- }], ctorParameters: function () { return [{ type: i2.ContextService }, { type: i2.QuoteDraftService }, { type: i2.ConfigurationRuntimeService }, { type: i2.ConfigurationService }, { type: i2.ConfigurationState }, { type: i2$2.MessageService }, { type: i2.IntegrationState }, { type: i4.Location }]; } });
1915
+ }], ctorParameters: function () { return [{ type: i2.ContextService }, { type: i2.QuoteDraftService }, { type: i2.ConfigurationRuntimeService }, { type: i2.ConfigurationService }, { type: i2.ConfigurationStateService }, { type: i2$2.MessageService }, { type: i2.IntegrationState }, { type: i4.Location }]; } });
1867
1916
 
1868
1917
  class RemoteModule {
1869
1918
  }