@veloceapps/sdk 3.0.5 → 3.0.6

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.
Files changed (40) hide show
  1. package/bundles/veloce-sdk-cms.umd.js +157 -18
  2. package/bundles/veloce-sdk-cms.umd.js.map +1 -1
  3. package/bundles/veloce-sdk-runtime.umd.js +3 -0
  4. package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
  5. package/bundles/veloce-sdk.umd.js +202 -122
  6. package/bundles/veloce-sdk.umd.js.map +1 -1
  7. package/cms/modules/flow-configuration/index.d.ts +2 -0
  8. package/cms/modules/flow-configuration/services/flow-configuration.service.d.ts +10 -1
  9. package/cms/modules/flow-configuration/services/flow-update.service.d.ts +13 -0
  10. package/cms/modules/flow-configuration/types/update.types.d.ts +12 -0
  11. package/cms/utils/line-item.utils.d.ts +1 -0
  12. package/esm2015/cms/modules/flow-configuration/flow-configuration.module.js +4 -3
  13. package/esm2015/cms/modules/flow-configuration/index.js +3 -1
  14. package/esm2015/cms/modules/flow-configuration/services/flow-configuration.service.js +31 -12
  15. package/esm2015/cms/modules/flow-configuration/services/flow-update.service.js +97 -0
  16. package/esm2015/cms/modules/flow-configuration/types/update.types.js +2 -0
  17. package/esm2015/cms/utils/line-item.utils.js +14 -4
  18. package/esm2015/runtime/execution/directives/vl-ramp.directive.js +1 -1
  19. package/esm2015/runtime/services/quote.service.js +4 -1
  20. package/esm2015/src/components/header/cart-overlay/cart-overlay.component.js +60 -0
  21. package/esm2015/src/components/header/cart-overlay/cart-overlay.module.js +21 -0
  22. package/esm2015/src/components/header/header.component.js +16 -10
  23. package/esm2015/src/components/header/header.module.js +6 -4
  24. package/esm2015/src/components/header/header.types.js +1 -1
  25. package/esm2015/src/pages/debug/debug.component.js +16 -11
  26. package/fesm2015/veloce-sdk-cms.js +142 -18
  27. package/fesm2015/veloce-sdk-cms.js.map +1 -1
  28. package/fesm2015/veloce-sdk-runtime.js +3 -0
  29. package/fesm2015/veloce-sdk-runtime.js.map +1 -1
  30. package/fesm2015/veloce-sdk.js +133 -62
  31. package/fesm2015/veloce-sdk.js.map +1 -1
  32. package/package.json +1 -1
  33. package/runtime/execution/directives/vl-ramp.directive.d.ts +1 -1
  34. package/runtime/services/quote.service.d.ts +1 -0
  35. package/src/components/header/cart-overlay/cart-overlay.component.d.ts +21 -0
  36. package/src/components/header/cart-overlay/cart-overlay.module.d.ts +11 -0
  37. package/src/components/header/header.component.d.ts +5 -2
  38. package/src/components/header/header.module.d.ts +3 -1
  39. package/src/components/header/header.types.d.ts +1 -0
  40. package/src/pages/debug/debug.component.d.ts +5 -2
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@veloce/api'), require('@veloce/components'), require('@veloce/sdk/cms'), require('@veloce/sdk/runtime'), require('primeng/overlaypanel'), require('primeng/tooltip'), require('@veloce/core'), require('rxjs'), require('primeng/api'), require('@angular/router'), require('@angular/forms'), require('primeng/button'), require('primeng/dropdown'), require('primeng/inputtext'), require('primeng/radiobutton'), require('rxjs/operators'), require('ngx-bootstrap/tooltip'), require('@angular/common/http')) :
3
- typeof define === 'function' && define.amd ? define('@veloce/sdk', ['exports', '@angular/common', '@angular/core', '@veloce/api', '@veloce/components', '@veloce/sdk/cms', '@veloce/sdk/runtime', 'primeng/overlaypanel', 'primeng/tooltip', '@veloce/core', 'rxjs', 'primeng/api', '@angular/router', '@angular/forms', 'primeng/button', 'primeng/dropdown', 'primeng/inputtext', 'primeng/radiobutton', 'rxjs/operators', 'ngx-bootstrap/tooltip', '@angular/common/http'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.sdk = {}), global.ng.common, global.ng.core, global["@veloce/api"], global["@veloce/components"], global.veloce.sdk.cms, global.veloce.sdk.runtime, global.i3, global.i5, global["@veloce/core"], global.rxjs, global["primeng/api"], global.ng.router, global.ng.forms, global["primeng/button"], global.i4$2, global["primeng/inputtext"], global["primeng/radiobutton"], global.rxjs.operators, global["ngx-bootstrap/tooltip"], global.ng.common.http));
5
- })(this, (function (exports, i4, i0, i1, i2$1, i1$3, i2, i3, i5, core, rxjs, i4$1, i1$1, i7, i5$1, i4$2, i8, i6, operators, i1$2, http) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@veloce/api'), require('@veloce/components'), require('@veloce/sdk/cms'), require('@veloce/sdk/runtime'), require('primeng/button'), require('primeng/overlaypanel'), require('primeng/tooltip'), require('rxjs'), require('@veloce/core'), require('primeng/api'), require('@angular/router'), require('@angular/forms'), require('primeng/dropdown'), require('primeng/inputtext'), require('primeng/radiobutton'), require('rxjs/operators'), require('ngx-bootstrap/tooltip'), require('@angular/common/http')) :
3
+ typeof define === 'function' && define.amd ? define('@veloce/sdk', ['exports', '@angular/common', '@angular/core', '@veloce/api', '@veloce/components', '@veloce/sdk/cms', '@veloce/sdk/runtime', 'primeng/button', 'primeng/overlaypanel', 'primeng/tooltip', 'rxjs', '@veloce/core', 'primeng/api', '@angular/router', '@angular/forms', 'primeng/dropdown', 'primeng/inputtext', 'primeng/radiobutton', 'rxjs/operators', 'ngx-bootstrap/tooltip', '@angular/common/http'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.sdk = {}), global.ng.common, global.ng.core, global["@veloce/api"], global["@veloce/components"], global.veloce.sdk.cms, global.veloce.sdk.runtime, global["primeng/button"], global.i3, global.i8, global.rxjs, global["@veloce/core"], global["primeng/api"], global.ng.router, global.ng.forms, global.i5, global["primeng/inputtext"], global["primeng/radiobutton"], global.rxjs.operators, global["ngx-bootstrap/tooltip"], global.ng.common.http));
5
+ })(this, (function (exports, i7, i0, i1$2, i2, i1$1, i2$1, i6, i3, i8, rxjs, i1, i4, i1$3, i8$1, i5, i9, i7$1, operators, i1$4, http) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -22,36 +22,111 @@
22
22
  return Object.freeze(n);
23
23
  }
24
24
 
25
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
25
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
26
26
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
29
- var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
27
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
30
28
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
32
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
33
- var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
34
29
  var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
35
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
36
- var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
37
- var i4__namespace$2 = /*#__PURE__*/_interopNamespace(i4$2);
38
- var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
30
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
39
31
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
40
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
32
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
33
+ var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
34
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
35
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
36
+ var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
37
+ var i8__namespace$1 = /*#__PURE__*/_interopNamespace(i8$1);
38
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
39
+ var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
40
+ var i7__namespace$1 = /*#__PURE__*/_interopNamespace(i7$1);
41
+ var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
41
42
 
42
43
  var VELOCE_FLOW_ROOT_ROUTE = 'VELOCE_FLOW_ROOT_ROUTE';
43
44
 
45
+ var HeaderCartOverlayComponent = /** @class */ (function () {
46
+ function HeaderCartOverlayComponent(baseHttpService, flowConfiguration) {
47
+ this.baseHttpService = baseHttpService;
48
+ this.flowConfiguration = flowConfiguration;
49
+ this.imagesMap$ = new rxjs.BehaviorSubject({});
50
+ this.destroyed$ = new rxjs.Subject();
51
+ this.products$ = this.flowConfiguration.get();
52
+ }
53
+ HeaderCartOverlayComponent.prototype.ngOnDestroy = function () {
54
+ this.destroyed$.next();
55
+ this.destroyed$.complete();
56
+ };
57
+ HeaderCartOverlayComponent.prototype.getImageUrl = function (productId) {
58
+ var _a;
59
+ if (this.imagesMap$.value[productId] == null) {
60
+ this.imagesMap$.next(Object.assign(Object.assign({}, this.imagesMap$.value), (_a = {}, _a[productId] = '', _a)));
61
+ this.fetchProductImage(productId);
62
+ }
63
+ return this.imagesMap$.pipe(rxjs.map(function (imagesMap) { return imagesMap[productId]; }), rxjs.distinctUntilChanged());
64
+ };
65
+ HeaderCartOverlayComponent.prototype.isConfigurable = function (lineItem) {
66
+ return lineItem.properties['#configurable'] === 'true';
67
+ };
68
+ HeaderCartOverlayComponent.prototype.fetchProductImage = function (productId) {
69
+ var _this = this;
70
+ this.baseHttpService
71
+ .api({
72
+ url: "/products/" + productId + "/image",
73
+ method: 'get',
74
+ responseType: 'blob',
75
+ errorHandler: rxjs.noop,
76
+ })
77
+ .pipe(rxjs.map(function (file) { return URL.createObjectURL(file); }), rxjs.catchError(function () { return rxjs.of(''); }), rxjs.tap(function (url) {
78
+ var _a;
79
+ return _this.imagesMap$.next(Object.assign(Object.assign({}, _this.imagesMap$.value), (_a = {}, _a[productId] = url, _a)));
80
+ }), rxjs.takeUntil(this.destroyed$))
81
+ .subscribe();
82
+ };
83
+ return HeaderCartOverlayComponent;
84
+ }());
85
+ HeaderCartOverlayComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderCartOverlayComponent, deps: [{ token: i1__namespace.BaseHttpService }, { token: i1__namespace$1.FlowConfigurationService }], target: i0__namespace.ɵɵFactoryTarget.Component });
86
+ HeaderCartOverlayComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: HeaderCartOverlayComponent, selector: "vl-header-cart-overlay", viewQueries: [{ propertyName: "overlayPanel", first: true, predicate: i3.OverlayPanel, descendants: true }], ngImport: i0__namespace, template: "<p-overlayPanel\n styleClass=\"navigation-settings-overlay flow-header-overlay center\"\n showTransitionOptions=\"0ms\"\n hideTransitionOptions=\"0ms\"\n>\n <ng-template pTemplate>\n <div class=\"flow-header-overlay__wrapper\" *vlLet=\"products$ | async as products\">\n <ng-container *ngIf=\"products.length > 0; else empty\">\n <h2 class=\"flow-header-overlay__title\">\n <span>Products ({{ products.length }})</span>\n <i class=\"vl-icon vl-icon-close close-icon\" (click)=\"overlayPanel.hide()\"></i>\n </h2>\n\n <div class=\"product header\">\n <span>Product</span>\n <span class=\"text-right\">Qty</span>\n <span class=\"text-right\">MRR</span>\n <span class=\"text-right\">NRR</span>\n </div>\n\n <div class=\"scrollable-wrapper\">\n <div class=\"product\" *ngFor=\"let product of products\">\n <div class=\"product__info\">\n <div class=\"product__image-wrapper\">\n <div\n *ngIf=\"getImageUrl(product.productId) | async as imageUrl; else noImage\"\n class=\"product__image\"\n [ngStyle]=\"{ 'background-image': 'url(' + imageUrl + ')' }\"\n ></div>\n </div>\n <div class=\"flex flex-column justify-content-center\">\n <div class=\"word-break\">{{ product.name }}</div>\n <div>\n <p-button\n [disabled]=\"!isConfigurable(product)\"\n label=\"Configure\"\n styleClass=\"p-button-link p-button-sm pl-0\"\n ></p-button>\n <p-button label=\"Delete\" styleClass=\"p-button-link p-button-sm p-button-danger pl-0 pr-0\"></p-button>\n </div>\n </div>\n </div>\n\n <span class=\"text-right pt-3\">{{ product.qty }}</span>\n <span class=\"text-right pt-3\">$0.00</span>\n <span class=\"text-right pt-3\">$0.00</span>\n </div>\n\n <ng-template #noImage>\n <i class=\"vl-icon vl-icon-no-image no-image-icon\"></i>\n </ng-template>\n </div>\n\n <div class=\"flex justify-content-end mt-3\">\n <p-button label=\"Clear cart\" styleClass=\"p-button-link p-button-sm p-button-danger pl-0 pr-0\"></p-button>\n </div>\n </ng-container>\n\n <ng-template #empty>\n <h2 class=\"flow-header-overlay__title\">\n <span>Empty Cart</span>\n <i class=\"vl-icon vl-icon-close close-icon\" (click)=\"overlayPanel.hide()\"></i>\n </h2>\n\n <span class=\"empty-state\">There are no products added to the Shopping Cart yet.</span>\n </ng-template>\n </div>\n </ng-template>\n</p-overlayPanel>\n", styles: [".flow-header-overlay__wrapper{display:flex;flex-direction:column;width:460px;max-height:600px}.flow-header-overlay__wrapper .close-icon{cursor:pointer}.flow-header-overlay__title{display:flex;justify-content:space-between;align-items:center;margin:0 0 16px}.empty-state{color:var(--vl-text-color-deep-accent)}.scrollable-wrapper{overflow:auto}.product{display:grid;grid-template-columns:auto 60px 80px 80px;padding:16px 0}.product:not(.header){border-bottom:1px solid var(--vl-border-color)}.product.header{color:var(--vl-text-color-deep-accent)}.product__info{display:flex;grid-gap:16px;gap:16px}.product__image-wrapper{flex-shrink:0;height:64px;width:64px;display:flex;justify-content:center;align-items:center;background:var(--vl-primary-nav-overlay-bg);border-radius:4px}.product__image{background-size:contain;background-repeat:no-repeat;background-position:center;height:calc(100% - 12px);width:calc(100% - 12px)}.word-break{word-break:break-word}.no-image-icon{color:#b4d1ef;height:18px;width:18px}\n"], components: [{ type: i3__namespace.OverlayPanel, selector: "p-overlayPanel", inputs: ["dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }, { type: i6__namespace.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass"], outputs: ["onClick", "onFocus", "onBlur"] }], directives: [{ type: i4__namespace.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i2__namespace.LetDirective, selector: "[vlLet]", inputs: ["vlLet"] }, { type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "async": i7__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
87
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderCartOverlayComponent, decorators: [{
88
+ type: i0.Component,
89
+ args: [{
90
+ selector: 'vl-header-cart-overlay',
91
+ templateUrl: './cart-overlay.component.html',
92
+ styleUrls: ['./cart-overlay.component.scss'],
93
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
94
+ }]
95
+ }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: i1__namespace$1.FlowConfigurationService }]; }, propDecorators: { overlayPanel: [{
96
+ type: i0.ViewChild,
97
+ args: [i3.OverlayPanel]
98
+ }] } });
99
+
100
+ var HeaderCartOverlayModule = /** @class */ (function () {
101
+ function HeaderCartOverlayModule() {
102
+ }
103
+ return HeaderCartOverlayModule;
104
+ }());
105
+ HeaderCartOverlayModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderCartOverlayModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
106
+ HeaderCartOverlayModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderCartOverlayModule, declarations: [HeaderCartOverlayComponent], imports: [i7.CommonModule, i6.ButtonModule, i3.OverlayPanelModule, i2.LetDirectiveModule], exports: [HeaderCartOverlayComponent] });
107
+ HeaderCartOverlayModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderCartOverlayModule, imports: [[i7.CommonModule, i6.ButtonModule, i3.OverlayPanelModule, i2.LetDirectiveModule]] });
108
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: HeaderCartOverlayModule, decorators: [{
109
+ type: i0.NgModule,
110
+ args: [{
111
+ declarations: [HeaderCartOverlayComponent],
112
+ imports: [i7.CommonModule, i6.ButtonModule, i3.OverlayPanelModule, i2.LetDirectiveModule],
113
+ exports: [HeaderCartOverlayComponent],
114
+ }]
115
+ }] });
116
+
44
117
  var FlowHeaderComponent = /** @class */ (function () {
45
- function FlowHeaderComponent(context, sfApiService) {
118
+ function FlowHeaderComponent(context, sfApiService, flowConfiguration) {
46
119
  var _a, _b, _c;
47
120
  this.context = context;
48
121
  this.sfApiService = sfApiService;
122
+ this.flowConfiguration = flowConfiguration;
49
123
  this.objectDetails$ = new rxjs.BehaviorSubject({});
50
124
  this.destroyed$ = new rxjs.Subject();
51
125
  var ctx = this.context.resolve();
52
126
  this.mode = ctx === null || ctx === void 0 ? void 0 : ctx.mode;
53
127
  this.objectName = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.mode) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : '';
54
128
  this.contextProperties = (_c = ctx === null || ctx === void 0 ? void 0 : ctx.properties) !== null && _c !== void 0 ? _c : {};
129
+ this.selectedProductsNumber$ = this.flowConfiguration.get().pipe(rxjs.map(function (lineItems) { return lineItems.length; }));
55
130
  }
56
131
  FlowHeaderComponent.prototype.ngOnInit = function () {
57
132
  this.populateObjectDetails();
@@ -62,14 +137,14 @@
62
137
  };
63
138
  Object.defineProperty(FlowHeaderComponent.prototype, "isAccountMode", {
64
139
  get: function () {
65
- return this.mode === core.ConfigurationContextMode.ACCOUNT;
140
+ return this.mode === i1.ConfigurationContextMode.ACCOUNT;
66
141
  },
67
142
  enumerable: false,
68
143
  configurable: true
69
144
  });
70
145
  Object.defineProperty(FlowHeaderComponent.prototype, "isQuoteMode", {
71
146
  get: function () {
72
- return this.mode === core.ConfigurationContextMode.QUOTE;
147
+ return this.mode === i1.ConfigurationContextMode.QUOTE;
73
148
  },
74
149
  enumerable: false,
75
150
  configurable: true
@@ -107,11 +182,12 @@
107
182
  this.objectDetails$.next(Object.assign(Object.assign({}, this.objectDetails$.value), { accountId: accountId, opportunityId: opportunityId, quoteId: quoteId, quoteName: quoteName }));
108
183
  this.queryName$('Account', accountId).subscribe(function (accountName) { return _this.objectDetails$.next(Object.assign(Object.assign({}, _this.objectDetails$.value), { accountName: accountName })); });
109
184
  this.queryName$('Opportunity', opportunityId).subscribe(function (opportunityName) { return _this.objectDetails$.next(Object.assign(Object.assign({}, _this.objectDetails$.value), { opportunityName: opportunityName })); });
185
+ this.queryName$('VELOCPQ__PriceList__c', this.contextProperties.PriceListId).subscribe(function (priceListName) { return _this.objectDetails$.next(Object.assign(Object.assign({}, _this.objectDetails$.value), { priceListName: priceListName })); });
110
186
  };
111
187
  return FlowHeaderComponent;
112
188
  }());
113
- FlowHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowHeaderComponent, deps: [{ token: i2__namespace.ContextService }, { token: i1__namespace.SalesforceApiService }], target: i0__namespace.ɵɵFactoryTarget.Component });
114
- FlowHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: FlowHeaderComponent, selector: "vl-flow-header", ngImport: i0__namespace, template: "<nav class=\"nav-item nav-back\" (click)=\"back()\">\n <i class=\"nav-icon vl-icon vl-icon-arrow-left\"></i>\n <span> Back </span>\n <span *ngIf=\"objectName\" class=\"object-name\">&nbsp;To {{ objectName }}</span>\n</nav>\n\n<ng-container *ngIf=\"isAccountMode\">\n <span class=\"dot-separator\"></span>\n Account name\n <nav class=\"account-name\" [pTooltip]=\"contextProperties.Name\" tooltipPosition=\"bottom\" [showDelay]=\"1000\">\n <a target=\"_blank\" [href]=\"getSalesforceObjectLink(contextProperties.Id)\">{{ contextProperties.Name }}</a>\n </nav>\n</ng-container>\n\n<ng-container *ngIf=\"isQuoteMode\">\n <span class=\"dot-separator\"></span>\n Quote #{{ contextProperties.QuoteNumber }}\n <span class=\"dot-separator\"></span>\n <nav (click)=\"quoteDetails.toggle($event)\">\n {{ contextProperties.Status }}\n <i *ngIf=\"!quoteDetails.overlayVisible\" class=\"vl-icon vl-icon-chevron-down icon-with-margin\"></i>\n <i *ngIf=\"quoteDetails.overlayVisible\" class=\"vl-icon vl-icon-chevron-up icon-with-margin\"></i>\n </nav>\n\n <p-overlayPanel styleClass=\"navigation-settings-overlay flow-header-overlay left\" #quoteDetails>\n <ng-template pTemplate>\n <div class=\"flow-header-overlay__wrapper\">\n <h2 class=\"flow-header-overlay__title\">\n <span>Quote Information</span>\n <i class=\"vl-icon vl-icon-close close-icon\" (click)=\"quoteDetails.hide()\"></i>\n </h2>\n\n <ul class=\"info-list\" *vlLet=\"objectDetails$ | async as details\">\n <li class=\"info-list__row\">\n <span>Account Name:</span>\n <a target=\"_blank\" [href]=\"getSalesforceObjectLink(details.accountId)\">{{ details.accountName }}</a>\n </li>\n <li class=\"info-list__row\">\n <span>Opportunity Name:</span>\n <a target=\"_blank\" [href]=\"getSalesforceObjectLink(details.opportunityId)\">{{ details.opportunityName }}</a>\n </li>\n <li class=\"info-list__row\">\n <span>Quote Name:</span>\n <a target=\"_blank\" [href]=\"getSalesforceObjectLink(details.quoteId)\">{{ details.quoteName }}</a>\n </li>\n </ul>\n </div>\n </ng-template>\n </p-overlayPanel>\n</ng-container>\n", styles: [":host{display:flex;align-items:center;height:48px;width:100%;background-color:var(--vl-primary-color);color:#fff;padding:0 32px;flex-shrink:0}::ng-deep .p-overlaypanel.flow-header-overlay .p-overlaypanel-content{background-color:#fff;padding:16px}::ng-deep .p-overlaypanel.flow-header-overlay:before{background-color:#fff}.vl-icon{display:inline-block}.object-name{text-transform:capitalize}.nav-back{font-weight:bold}nav{display:flex;align-items:center;cursor:pointer;padding:4px 0}nav .nav-icon{margin-right:10px}nav .icon-with-margin{margin:0 4px}nav a{color:#fff}nav.account-name{margin-left:4px;display:block;max-width:160px;overflow:hidden;text-overflow:ellipsis}.dot-separator:after{content:\"\";display:block;width:4px;height:4px;border-radius:50%;background:#fff;margin:0 8px}.flow-header-overlay__wrapper{width:360px}.flow-header-overlay__title{display:flex;justify-content:space-between;align-items:center;margin:0 0 24px}.close-icon{cursor:pointer}.info-list{list-style:none;padding:0;font-size:12px}.info-list__row{padding:8px 0;display:flex;justify-content:space-between}\n"], components: [{ type: i3__namespace.OverlayPanel, selector: "p-overlayPanel", inputs: ["dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i4__namespace$1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i2__namespace$1.LetDirective, selector: "[vlLet]", inputs: ["vlLet"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
189
+ FlowHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowHeaderComponent, deps: [{ token: i2__namespace$1.ContextService }, { token: i1__namespace$2.SalesforceApiService }, { token: i1__namespace$1.FlowConfigurationService }], target: i0__namespace.ɵɵFactoryTarget.Component });
190
+ FlowHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: FlowHeaderComponent, selector: "vl-flow-header", ngImport: i0__namespace, template: "<div class=\"flow-info\">\n <nav class=\"nav-item nav-back\" (click)=\"back()\">\n <i class=\"nav-icon vl-icon vl-icon-arrow-left\"></i>\n\n <span> Back </span>\n <span *ngIf=\"objectName\" class=\"object-name\">&nbsp;To {{ objectName }}</span>\n </nav>\n\n <ng-container *ngIf=\"isAccountMode\">\n <span class=\"dot-separator\"></span>\n\n <span>Account name</span>\n\n <nav class=\"account-name\" [pTooltip]=\"contextProperties.Name ?? ''\" tooltipPosition=\"bottom\" [showDelay]=\"1000\">\n <a target=\"_blank\" [href]=\"getSalesforceObjectLink(contextProperties.Id)\">{{ contextProperties.Name }}</a>\n </nav>\n </ng-container>\n\n <ng-container *ngIf=\"isQuoteMode\">\n <span class=\"dot-separator\"></span>\n\n <span>Quote #{{ contextProperties.QuoteNumber }}</span>\n\n <span class=\"dot-separator\"></span>\n\n <nav class=\"nav-item\" (click)=\"quoteDetails.toggle($event)\">\n <span>{{ contextProperties.Status }}</span>\n\n <i *ngIf=\"!quoteDetails.overlayVisible\" class=\"vl-icon vl-icon-chevron-down icon-with-margin\"></i>\n <i *ngIf=\"quoteDetails.overlayVisible\" class=\"vl-icon vl-icon-chevron-up icon-with-margin\"></i>\n </nav>\n\n <p-overlayPanel styleClass=\"navigation-settings-overlay flow-header-overlay center\" #quoteDetails>\n <ng-template pTemplate>\n <div class=\"flow-header-overlay__wrapper\">\n <h2 class=\"flow-header-overlay__title\">\n <span>Quote Information</span>\n <i class=\"vl-icon vl-icon-close close-icon\" (click)=\"quoteDetails.hide()\"></i>\n </h2>\n\n <ul class=\"info-list\" *vlLet=\"objectDetails$ | async as details\">\n <li class=\"info-list__row\">\n <span>Account Name:</span>\n <a target=\"_blank\" [href]=\"getSalesforceObjectLink(details.accountId)\">{{ details.accountName }}</a>\n </li>\n <li class=\"info-list__row\">\n <span>Opportunity Name:</span>\n <a target=\"_blank\" [href]=\"getSalesforceObjectLink(details.opportunityId)\">{{\n details.opportunityName\n }}</a>\n </li>\n <li class=\"info-list__row\">\n <span>Quote Name:</span>\n <a target=\"_blank\" [href]=\"getSalesforceObjectLink(details.quoteId)\">{{ details.quoteName }}</a>\n </li>\n </ul>\n </div>\n </ng-template>\n </p-overlayPanel>\n </ng-container>\n</div>\n\n<div class=\"flow-navigation\">\n <nav class=\"nav-item disabled\">Catalog</nav>\n <nav class=\"nav-item disabled\">Configurator</nav>\n <ng-container *vlLet=\"selectedProductsNumber$ | async as selectedProductsNumber\">\n <nav class=\"nav-item active\">Shopping Cart ({{ selectedProductsNumber }})</nav>\n\n <nav class=\"nav-popover-toggle active\" (click)=\"cart?.overlayPanel?.toggle($event)\">\n <i *ngIf=\"!cart?.overlayPanel?.overlayVisible\" class=\"vl-icon vl-icon-chevron-down icon-with-margin\"></i>\n <i *ngIf=\"cart?.overlayPanel?.overlayVisible\" class=\"vl-icon vl-icon-chevron-up icon-with-margin\"></i>\n </nav>\n\n <vl-header-cart-overlay #cart></vl-header-cart-overlay>\n </ng-container>\n</div>\n\n<div class=\"flow-controls\" *vlLet=\"objectDetails$ | async as details\">\n <span *ngIf=\"details.priceListName\">{{ details.priceListName }}</span>\n <span *ngIf=\"contextProperties.StartDate\">{{ contextProperties.StartDate | date: 'MM.dd.yyyy' }}</span>\n\n <p-button label=\"Generate Doc\" styleClass=\"p-button-outlined\"></p-button>\n <p-button label=\"Save\" styleClass=\"p-button-outlined\"></p-button>\n <p-button label=\"Submit For Approval\" styleClass=\"p-button\"></p-button>\n</div>\n", styles: [":host{display:flex;align-items:center;height:48px;width:100%;background-color:var(--vl-primary-color);color:#fff;padding:0 32px;flex-shrink:0}::ng-deep .p-overlaypanel.flow-header-overlay .p-overlaypanel-content{background-color:#fff;padding:16px}::ng-deep .p-overlaypanel.flow-header-overlay.left:before{left:6px!important}::ng-deep .p-overlaypanel.flow-header-overlay.right:before{right:6px!important}::ng-deep .p-overlaypanel.flow-header-overlay.left .p-overlaypanel-content{margin-left:-16px}::ng-deep .p-overlaypanel.flow-header-overlay.right .p-overlaypanel-content{margin-right:-16px}::ng-deep .p-overlaypanel.flow-header-overlay:before{background-color:#fff}:host ::ng-deep .p-button{padding:5px 15px;font-size:12px}:host ::ng-deep .p-button{color:var(--vl-primary-color);background-color:#fff;border-color:#fff}:host ::ng-deep .p-button:enabled:hover{background-color:var(--vl-primary-color);color:#fff;border-color:#fff}:host ::ng-deep .p-button.p-button-outlined{background-color:var(--vl-primary-color);color:#fff;border-color:#fff}:host ::ng-deep .p-button.p-button-outlined:enabled:hover{color:var(--vl-primary-color);background-color:#fff;border-color:#fff}.vl-icon{display:inline-block}.flow-info{flex-shrink:0;display:flex;grid-gap:8px;gap:8px;align-items:center}.flow-info .nav-popover-toggle{margin-left:-8px}.flow-info .object-name{text-transform:capitalize}.flow-info .nav-back{font-weight:bold}.flow-info .nav-item:not(.disabled):hover,.flow-info .nav-popover-toggle:not(.disabled):hover{opacity:.6}nav{display:flex;align-items:center;cursor:pointer;padding:4px 0}nav.disabled{opacity:.6;cursor:default}nav .nav-icon{margin-right:10px}nav .icon-with-margin{margin:0 4px}nav a{color:#fff}nav.account-name{margin-left:4px;display:block;max-width:200px;overflow:hidden;text-overflow:ellipsis}nav.nav-popover-toggle{width:24px;display:flex;justify-content:center}nav.nav-popover-toggle i{pointer-events:none;margin:0}nav i{pointer-events:none}.dot-separator:after{content:\"\";display:block;width:4px;height:4px;border-radius:50%;background:#fff}.slash-separator:after{content:\"\";display:block;background:#fff;width:1px;height:16px}.flow-header-overlay__wrapper{width:360px}.flow-header-overlay__wrapper .close-icon{cursor:pointer}.flow-header-overlay__wrapper .info-list{list-style:none;padding:0;font-size:12px}.flow-header-overlay__wrapper .info-list__row{padding:8px 0;display:flex;justify-content:space-between}.flow-header-overlay__title{display:flex;justify-content:space-between;align-items:center;margin:0 0 24px}.flow-navigation{flex-grow:1;display:flex;grid-gap:16px;gap:16px;justify-content:center;font-weight:600}.flow-navigation .cart-nav-container{display:flex}.flow-navigation .nav-popover-toggle{margin-left:-14px}.flow-navigation .nav-item,.flow-navigation .nav-popover-toggle{opacity:.6}.flow-navigation .nav-item.active,.flow-navigation .nav-item:not(.disabled):hover,.flow-navigation .nav-popover-toggle.active,.flow-navigation .nav-popover-toggle:not(.disabled):hover{opacity:1}.flow-controls{flex-shrink:0;display:flex;align-items:center;grid-gap:8px;gap:8px}\n"], components: [{ type: i3__namespace.OverlayPanel, selector: "p-overlayPanel", inputs: ["dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }, { type: HeaderCartOverlayComponent, selector: "vl-header-cart-overlay" }, { type: i6__namespace.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass"], outputs: ["onClick", "onFocus", "onBlur"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8__namespace.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i4__namespace.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i2__namespace.LetDirective, selector: "[vlLet]", inputs: ["vlLet"] }], pipes: { "async": i7__namespace.AsyncPipe, "date": i7__namespace.DatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
115
191
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowHeaderComponent, decorators: [{
116
192
  type: i0.Component,
117
193
  args: [{
@@ -120,7 +196,7 @@
120
196
  styleUrls: ['./header.component.scss'],
121
197
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
122
198
  }]
123
- }], ctorParameters: function () { return [{ type: i2__namespace.ContextService }, { type: i1__namespace.SalesforceApiService }]; } });
199
+ }], ctorParameters: function () { return [{ type: i2__namespace$1.ContextService }, { type: i1__namespace$2.SalesforceApiService }, { type: i1__namespace$1.FlowConfigurationService }]; } });
124
200
 
125
201
  var FlowHeaderModule = /** @class */ (function () {
126
202
  function FlowHeaderModule() {
@@ -128,13 +204,13 @@
128
204
  return FlowHeaderModule;
129
205
  }());
130
206
  FlowHeaderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowHeaderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
131
- FlowHeaderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowHeaderModule, declarations: [FlowHeaderComponent], imports: [i4.CommonModule, i3.OverlayPanelModule, i2$1.LetDirectiveModule, i5.TooltipModule], exports: [FlowHeaderComponent] });
132
- FlowHeaderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowHeaderModule, imports: [[i4.CommonModule, i3.OverlayPanelModule, i2$1.LetDirectiveModule, i5.TooltipModule]] });
207
+ FlowHeaderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowHeaderModule, declarations: [FlowHeaderComponent], imports: [i7.CommonModule, i3.OverlayPanelModule, i2.LetDirectiveModule, i8.TooltipModule, i6.ButtonModule, HeaderCartOverlayModule], exports: [FlowHeaderComponent] });
208
+ FlowHeaderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowHeaderModule, imports: [[i7.CommonModule, i3.OverlayPanelModule, i2.LetDirectiveModule, i8.TooltipModule, i6.ButtonModule, HeaderCartOverlayModule]] });
133
209
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowHeaderModule, decorators: [{
134
210
  type: i0.NgModule,
135
211
  args: [{
136
212
  declarations: [FlowHeaderComponent],
137
- imports: [i4.CommonModule, i3.OverlayPanelModule, i2$1.LetDirectiveModule, i5.TooltipModule],
213
+ imports: [i7.CommonModule, i3.OverlayPanelModule, i2.LetDirectiveModule, i8.TooltipModule, i6.ButtonModule, HeaderCartOverlayModule],
138
214
  exports: [FlowHeaderComponent],
139
215
  }]
140
216
  }] });
@@ -483,13 +559,13 @@
483
559
  this.watchLastChildParams$ = function (route) {
484
560
  return _this.routeChange$.pipe(rxjs.map(function () { return _this.getLastChildParams(route.snapshot); }));
485
561
  };
486
- this.routeChange$ = this.router.events.pipe(rxjs.filter(function (e) { return e instanceof i1$1.NavigationEnd; }), rxjs.shareReplay());
562
+ this.routeChange$ = this.router.events.pipe(rxjs.filter(function (e) { return e instanceof i1$3.NavigationEnd; }), rxjs.shareReplay());
487
563
  this.lastChildParams$ = this.watchLastChildParams$(this.route).pipe(rxjs.startWith(this.getLastChildParams(this.route.snapshot)), rxjs.shareReplay());
488
564
  this.lastChildRoute$ = this.watchLastChildRoute$(this.route).pipe(rxjs.startWith(this.getLastChildRouteSnapshot(this.route.snapshot)), rxjs.shareReplay());
489
- this.loading$ = this.router.events.pipe(rxjs.filter(function (e) { return e instanceof i1$1.NavigationStart ||
490
- e instanceof i1$1.NavigationCancel ||
491
- e instanceof i1$1.NavigationEnd ||
492
- e instanceof i1$1.NavigationError; }), rxjs.map(function (e) { return e instanceof i1$1.NavigationStart; }), rxjs.startWith(false), rxjs.distinctUntilChanged());
565
+ this.loading$ = this.router.events.pipe(rxjs.filter(function (e) { return e instanceof i1$3.NavigationStart ||
566
+ e instanceof i1$3.NavigationCancel ||
567
+ e instanceof i1$3.NavigationEnd ||
568
+ e instanceof i1$3.NavigationError; }), rxjs.map(function (e) { return e instanceof i1$3.NavigationStart; }), rxjs.startWith(false), rxjs.distinctUntilChanged());
493
569
  }
494
570
  RouterService.prototype.getFlowRootRoute = function (route) {
495
571
  var _a;
@@ -532,12 +608,12 @@
532
608
  });
533
609
  return RouterService;
534
610
  }());
535
- RouterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RouterService, deps: [{ token: i1__namespace$1.Router }, { token: i1__namespace$1.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
611
+ RouterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RouterService, deps: [{ token: i1__namespace$3.Router }, { token: i1__namespace$3.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
536
612
  RouterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RouterService, providedIn: 'root' });
537
613
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RouterService, decorators: [{
538
614
  type: i0.Injectable,
539
615
  args: [{ providedIn: 'root' }]
540
- }], ctorParameters: function () { return [{ type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }]; } });
616
+ }], ctorParameters: function () { return [{ type: i1__namespace$3.Router }, { type: i1__namespace$3.ActivatedRoute }]; } });
541
617
 
542
618
  var FlowComponent = /** @class */ (function () {
543
619
  function FlowComponent(routerService, context) {
@@ -549,8 +625,8 @@
549
625
  }
550
626
  return FlowComponent;
551
627
  }());
552
- FlowComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowComponent, deps: [{ token: RouterService }, { token: i2__namespace.ContextService }], target: i0__namespace.ɵɵFactoryTarget.Component });
553
- FlowComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: FlowComponent, selector: "vl-flow", ngImport: i0__namespace, template: "<vl-flow-header *ngIf=\"showHeader$ | async\"></vl-flow-header>\n\n<div class=\"flow-content\">\n <div class=\"loading-overlay\" *ngIf=\"isLoading$ | async\">\n <vl-loader label=\"LOADING\"></vl-loader>\n </div>\n\n <router-outlet></router-outlet>\n</div>\n", styles: [":host{display:flex;flex-direction:column;height:100%}.flow-content{flex-grow:1;position:relative;padding:24px 54px;overflow:auto}.loading-overlay{position:absolute;height:100%;width:100%;left:0;right:0;top:0;bottom:0;background-color:#ffffff80;z-index:4}\n"], components: [{ type: FlowHeaderComponent, selector: "vl-flow-header" }, { type: i2__namespace$1.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
628
+ FlowComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowComponent, deps: [{ token: RouterService }, { token: i2__namespace$1.ContextService }], target: i0__namespace.ɵɵFactoryTarget.Component });
629
+ FlowComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: FlowComponent, selector: "vl-flow", ngImport: i0__namespace, template: "<vl-flow-header *ngIf=\"showHeader$ | async\"></vl-flow-header>\n\n<div class=\"flow-content\">\n <div class=\"loading-overlay\" *ngIf=\"isLoading$ | async\">\n <vl-loader label=\"LOADING\"></vl-loader>\n </div>\n\n <router-outlet></router-outlet>\n</div>\n", styles: [":host{display:flex;flex-direction:column;height:100%}.flow-content{flex-grow:1;position:relative;padding:24px 54px;overflow:auto}.loading-overlay{position:absolute;height:100%;width:100%;left:0;right:0;top:0;bottom:0;background-color:#ffffff80;z-index:4}\n"], components: [{ type: FlowHeaderComponent, selector: "vl-flow-header" }, { type: i2__namespace.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$3.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }], pipes: { "async": i7__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
554
630
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowComponent, decorators: [{
555
631
  type: i0.Component,
556
632
  args: [{
@@ -559,7 +635,7 @@
559
635
  styleUrls: ['./flow.component.scss'],
560
636
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
561
637
  }]
562
- }], ctorParameters: function () { return [{ type: RouterService }, { type: i2__namespace.ContextService }]; } });
638
+ }], ctorParameters: function () { return [{ type: RouterService }, { type: i2__namespace$1.ContextService }]; } });
563
639
 
564
640
  var ContextGuard = /** @class */ (function () {
565
641
  function ContextGuard(router, routerService) {
@@ -568,16 +644,16 @@
568
644
  }
569
645
  ContextGuard.prototype.getConfigurationContextMode = function (accountId, quoteId, orderId, rpcMessage) {
570
646
  if (accountId) {
571
- return core.ConfigurationContextMode.ACCOUNT;
647
+ return i1.ConfigurationContextMode.ACCOUNT;
572
648
  }
573
649
  if (quoteId) {
574
- return core.ConfigurationContextMode.QUOTE;
650
+ return i1.ConfigurationContextMode.QUOTE;
575
651
  }
576
652
  if (orderId) {
577
- return core.ConfigurationContextMode.ORDER;
653
+ return i1.ConfigurationContextMode.ORDER;
578
654
  }
579
655
  if (rpcMessage) {
580
- return core.ConfigurationContextMode.REMOTE;
656
+ return i1.ConfigurationContextMode.REMOTE;
581
657
  }
582
658
  return;
583
659
  };
@@ -614,11 +690,11 @@
614
690
  };
615
691
  return ContextGuard;
616
692
  }());
617
- ContextGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ContextGuard, deps: [{ token: i1__namespace$1.Router }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
693
+ ContextGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ContextGuard, deps: [{ token: i1__namespace$3.Router }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
618
694
  ContextGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ContextGuard });
619
695
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ContextGuard, decorators: [{
620
696
  type: i0.Injectable
621
- }], ctorParameters: function () { return [{ type: i1__namespace$1.Router }, { type: RouterService }]; } });
697
+ }], ctorParameters: function () { return [{ type: i1__namespace$3.Router }, { type: RouterService }]; } });
622
698
 
623
699
  var RootGuard = /** @class */ (function () {
624
700
  function RootGuard(router, routerService) {
@@ -652,12 +728,12 @@
652
728
  };
653
729
  return RootGuard;
654
730
  }());
655
- RootGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RootGuard, deps: [{ token: i1__namespace$1.Router }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
731
+ RootGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RootGuard, deps: [{ token: i1__namespace$3.Router }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
656
732
  RootGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RootGuard, providedIn: 'root' });
657
733
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RootGuard, decorators: [{
658
734
  type: i0.Injectable,
659
735
  args: [{ providedIn: 'root' }]
660
- }], ctorParameters: function () { return [{ type: i1__namespace$1.Router }, { type: RouterService }]; } });
736
+ }], ctorParameters: function () { return [{ type: i1__namespace$3.Router }, { type: RouterService }]; } });
661
737
 
662
738
  var getFlowObjectIdPropertyName = function (objectName) {
663
739
  switch (objectName) {
@@ -689,22 +765,24 @@
689
765
  };
690
766
  return FlowService;
691
767
  }());
692
- FlowService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowService, deps: [{ token: i1__namespace.ConfigurationSettingsApiService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
768
+ FlowService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowService, deps: [{ token: i1__namespace$2.ConfigurationSettingsApiService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
693
769
  FlowService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowService });
694
770
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowService, decorators: [{
695
771
  type: i0.Injectable
696
- }], ctorParameters: function () { return [{ type: i1__namespace.ConfigurationSettingsApiService }]; } });
772
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.ConfigurationSettingsApiService }]; } });
697
773
 
698
774
  var DebugComponent = /** @class */ (function () {
699
- function DebugComponent(flowService, router, activatedRoute, context) {
775
+ function DebugComponent(flowService, router, activatedRoute, context, flowConfiguration, quoteService) {
700
776
  this.flowService = flowService;
701
777
  this.router = router;
702
778
  this.activatedRoute = activatedRoute;
703
779
  this.context = context;
780
+ this.flowConfiguration = flowConfiguration;
781
+ this.quoteService = quoteService;
704
782
  this.objectNames = ['Account', 'Quote', 'Order'];
705
- this.form = new i7.FormGroup({
706
- id: new i7.FormControl(''),
707
- name: new i7.FormControl('Quote'),
783
+ this.form = new i8$1.FormGroup({
784
+ id: new i8$1.FormControl(''),
785
+ name: new i8$1.FormControl('Quote'),
708
786
  });
709
787
  this.flows$ = this.flowService.fetchFlows().pipe(rxjs.map(function (flows) { return flows.map(function (flow) {
710
788
  var _a, _b, _c;
@@ -726,6 +804,8 @@
726
804
  }
727
805
  // Delete context before starting a new flow
728
806
  this.context.delete();
807
+ this.flowConfiguration.reset();
808
+ this.quoteService.reset();
729
809
  this.router.navigate(['..', 'flows'], {
730
810
  queryParams: Object.assign((_d = { flowId: this.selectedFlow.id }, _d[objectPropertyName] = id, _d), this.selectedFlow.queryParams),
731
811
  relativeTo: this.activatedRoute,
@@ -733,8 +813,8 @@
733
813
  };
734
814
  return DebugComponent;
735
815
  }());
736
- DebugComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DebugComponent, deps: [{ token: FlowService }, { token: i1__namespace$1.Router }, { token: i1__namespace$1.ActivatedRoute }, { token: i2__namespace.ContextService }], target: i0__namespace.ɵɵFactoryTarget.Component });
737
- DebugComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: DebugComponent, selector: "vl-flow-debug", ngImport: i0__namespace, template: "<form [formGroup]=\"form\">\n <div class=\"fields-container\">\n <div class=\"field\">\n <label>SF Object ID</label>\n <input formControlName=\"id\" pInputText type=\"text\" />\n </div>\n\n <div class=\"field\">\n <label>SF Object Name</label>\n <p-dropdown\n appendTo=\"body\"\n formControlName=\"name\"\n [autoDisplayFirst]=\"false\"\n [options]=\"objectNames\"\n ></p-dropdown>\n </div>\n </div>\n\n <p-button\n styleClass=\"p-button-primary\"\n label=\"Run Flow\"\n [disabled]=\"!form.value.id || !selectedFlow\"\n (onClick)=\"runFlow()\"\n ></p-button>\n</form>\n\n<table>\n <thead>\n <tr>\n <th [width]=\"30\"></th>\n <th [width]=\"160\">ID</th>\n <th [width]=\"160\">Entry Path</th>\n <th>QueryParams</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let flow of flows$ | async\" (click)=\"selectedFlow = flow\">\n <td><p-radioButton [inputId]=\"flow.id\" name=\"flow\" [value]=\"flow\" [(ngModel)]=\"selectedFlow\"></p-radioButton></td>\n <td>{{ flow.id }}</td>\n <td>{{ flow.entryPath }}</td>\n <td>{{ flow.queryParamsStr }}</td>\n </tr>\n </tbody>\n</table>\n", styles: ["form{display:flex;align-items:center;justify-content:space-between}.fields-container{display:flex;grid-gap:24px;gap:24px}.field{display:flex;flex-direction:column;width:200px;flex-shrink:0}:host ::ng-deep .p-dropdown{width:100%}table{width:100%;border-collapse:collapse}tr{cursor:pointer}tr:hover{background-color:#f0f5fa}th{text-align:left;font-weight:600}th,td{padding:0 10px;height:30px;border-bottom:1px solid var(--vl-border-color);margin-right:16px}\n"], components: [{ type: i4__namespace$2.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "virtualScroll", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "disabled", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear"] }, { type: i5__namespace$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass"], outputs: ["onClick", "onFocus", "onBlur"] }, { type: i6__namespace.RadioButton, selector: "p-radioButton", inputs: ["value", "formControlName", "name", "disabled", "label", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "style", "styleClass", "labelStyleClass"], outputs: ["onClick", "onFocus", "onBlur"] }], directives: [{ type: i7__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i7__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i7__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i8__namespace.InputText, selector: "[pInputText]" }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
816
+ DebugComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DebugComponent, deps: [{ token: FlowService }, { token: i1__namespace$3.Router }, { token: i1__namespace$3.ActivatedRoute }, { token: i2__namespace$1.ContextService }, { token: i1__namespace$1.FlowConfigurationService }, { token: i2__namespace$1.QuoteService }], target: i0__namespace.ɵɵFactoryTarget.Component });
817
+ DebugComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: DebugComponent, selector: "vl-flow-debug", ngImport: i0__namespace, template: "<form [formGroup]=\"form\">\n <div class=\"fields-container\">\n <div class=\"field\">\n <label>SF Object ID</label>\n <input formControlName=\"id\" pInputText type=\"text\" />\n </div>\n\n <div class=\"field\">\n <label>SF Object Name</label>\n <p-dropdown\n appendTo=\"body\"\n formControlName=\"name\"\n [autoDisplayFirst]=\"false\"\n [options]=\"objectNames\"\n ></p-dropdown>\n </div>\n </div>\n\n <p-button\n styleClass=\"p-button-primary\"\n label=\"Run Flow\"\n [disabled]=\"!form.value.id || !selectedFlow\"\n (onClick)=\"runFlow()\"\n ></p-button>\n</form>\n\n<table>\n <thead>\n <tr>\n <th [width]=\"30\"></th>\n <th [width]=\"160\">ID</th>\n <th [width]=\"160\">Entry Path</th>\n <th>QueryParams</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let flow of flows$ | async\" (click)=\"selectedFlow = flow\">\n <td><p-radioButton [inputId]=\"flow.id\" name=\"flow\" [value]=\"flow\" [(ngModel)]=\"selectedFlow\"></p-radioButton></td>\n <td>{{ flow.id }}</td>\n <td>{{ flow.entryPath }}</td>\n <td>{{ flow.queryParamsStr }}</td>\n </tr>\n </tbody>\n</table>\n", styles: ["form{display:flex;align-items:center;justify-content:space-between}.fields-container{display:flex;grid-gap:24px;gap:24px}.field{display:flex;flex-direction:column;width:200px;flex-shrink:0}:host ::ng-deep .p-dropdown{width:100%}table{width:100%;border-collapse:collapse}tr{cursor:pointer}tr:hover{background-color:#f0f5fa}th{text-align:left;font-weight:600}th,td{padding:0 10px;height:30px;border-bottom:1px solid var(--vl-border-color);margin-right:16px}\n"], components: [{ type: i5__namespace.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "virtualScroll", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "disabled", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear"] }, { type: i6__namespace.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass"], outputs: ["onClick", "onFocus", "onBlur"] }, { type: i7__namespace$1.RadioButton, selector: "p-radioButton", inputs: ["value", "formControlName", "name", "disabled", "label", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "style", "styleClass", "labelStyleClass"], outputs: ["onClick", "onFocus", "onBlur"] }], directives: [{ type: i8__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i8__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i8__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i9__namespace.InputText, selector: "[pInputText]" }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i7__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
738
818
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DebugComponent, decorators: [{
739
819
  type: i0.Component,
740
820
  args: [{
@@ -743,7 +823,7 @@
743
823
  styleUrls: ['./debug.component.scss'],
744
824
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
745
825
  }]
746
- }], ctorParameters: function () { return [{ type: FlowService }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: i2__namespace.ContextService }]; } });
826
+ }], ctorParameters: function () { return [{ type: FlowService }, { type: i1__namespace$3.Router }, { type: i1__namespace$3.ActivatedRoute }, { type: i2__namespace$1.ContextService }, { type: i1__namespace$1.FlowConfigurationService }, { type: i2__namespace$1.QuoteService }]; } });
747
827
 
748
828
  var routes$1 = [{ path: '', component: DebugComponent }];
749
829
  var DebugModule = /** @class */ (function () {
@@ -752,35 +832,35 @@
752
832
  return DebugModule;
753
833
  }());
754
834
  DebugModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DebugModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
755
- DebugModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DebugModule, declarations: [DebugComponent], imports: [i4.CommonModule,
756
- i7.FormsModule,
757
- i7.ReactiveFormsModule, i1__namespace$1.RouterModule, i6.RadioButtonModule,
758
- i5$1.ButtonModule,
759
- i8.InputTextModule,
760
- i4$2.DropdownModule] });
835
+ DebugModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DebugModule, declarations: [DebugComponent], imports: [i7.CommonModule,
836
+ i8$1.FormsModule,
837
+ i8$1.ReactiveFormsModule, i1__namespace$3.RouterModule, i7$1.RadioButtonModule,
838
+ i6.ButtonModule,
839
+ i9.InputTextModule,
840
+ i5.DropdownModule] });
761
841
  DebugModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DebugModule, imports: [[
762
- i4.CommonModule,
763
- i7.FormsModule,
764
- i7.ReactiveFormsModule,
765
- i1$1.RouterModule.forChild(routes$1),
766
- i6.RadioButtonModule,
767
- i5$1.ButtonModule,
768
- i8.InputTextModule,
769
- i4$2.DropdownModule,
842
+ i7.CommonModule,
843
+ i8$1.FormsModule,
844
+ i8$1.ReactiveFormsModule,
845
+ i1$3.RouterModule.forChild(routes$1),
846
+ i7$1.RadioButtonModule,
847
+ i6.ButtonModule,
848
+ i9.InputTextModule,
849
+ i5.DropdownModule,
770
850
  ]] });
771
851
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DebugModule, decorators: [{
772
852
  type: i0.NgModule,
773
853
  args: [{
774
854
  declarations: [DebugComponent],
775
855
  imports: [
776
- i4.CommonModule,
777
- i7.FormsModule,
778
- i7.ReactiveFormsModule,
779
- i1$1.RouterModule.forChild(routes$1),
780
- i6.RadioButtonModule,
781
- i5$1.ButtonModule,
782
- i8.InputTextModule,
783
- i4$2.DropdownModule,
856
+ i7.CommonModule,
857
+ i8$1.FormsModule,
858
+ i8$1.ReactiveFormsModule,
859
+ i1$3.RouterModule.forChild(routes$1),
860
+ i7$1.RadioButtonModule,
861
+ i6.ButtonModule,
862
+ i9.InputTextModule,
863
+ i5.DropdownModule,
784
864
  ],
785
865
  }]
786
866
  }] });
@@ -848,7 +928,7 @@
848
928
  lineItemId && quote.currentState ? this.reConfigure(lineItemId, quote.currentState) : this.configure(productId);
849
929
  };
850
930
  LegacyProductComponent.prototype.getLineItemId = function (quote, queryParams) {
851
- if (core.EntityUtil.isPresent(queryParams['lineItemId'])) {
931
+ if (i1.EntityUtil.isPresent(queryParams['lineItemId'])) {
852
932
  return queryParams['lineItemId'];
853
933
  }
854
934
  return quote.currentState
@@ -857,12 +937,12 @@
857
937
  .find(function (id) { return id; });
858
938
  };
859
939
  LegacyProductComponent.prototype.configure = function (productId) {
860
- var runtimeContext = this.getRuntimeContext(productId, '', i2.RuntimeOperation.INIT);
940
+ var runtimeContext = this.getRuntimeContext(productId, '', i2$1.RuntimeOperation.INIT);
861
941
  this.startRuntime({}, runtimeContext);
862
942
  };
863
943
  LegacyProductComponent.prototype.reConfigure = function (lineItemId, currentState) {
864
- var currentStateItem = core.EntityUtil.findById(lineItemId, currentState);
865
- var runtimeContext = this.getRuntimeContext(currentStateItem.productId, currentStateItem.offeringId, i2.RuntimeOperation.UPDATE);
944
+ var currentStateItem = i1.EntityUtil.findById(lineItemId, currentState);
945
+ var runtimeContext = this.getRuntimeContext(currentStateItem.productId, currentStateItem.offeringId, i2$1.RuntimeOperation.UPDATE);
866
946
  var states = {
867
947
  configurableRamp: currentStateItem,
868
948
  currentState: currentState,
@@ -892,14 +972,14 @@
892
972
  LegacyProductComponent.prototype.getRuntimeContext = function (productId, offeringId, runtimeOperation) {
893
973
  var _this = this;
894
974
  return this.runtimeContextService.getRuntimeContext(productId, offeringId).pipe(operators.map(function (runtimeContext) {
895
- runtimeContext.invocationContext = { runtimeOperation: i2.RuntimeOperation[runtimeOperation] };
975
+ runtimeContext.invocationContext = { runtimeOperation: i2$1.RuntimeOperation[runtimeOperation] };
896
976
  return runtimeContext;
897
977
  }), operators.switchMap(function (runtimeContext) { return _this.customizeContext(productId, runtimeContext); }));
898
978
  };
899
979
  return LegacyProductComponent;
900
980
  }());
901
- LegacyProductComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LegacyProductComponent, deps: [{ token: i1__namespace$1.ActivatedRoute }, { token: i2__namespace.QuoteService }, { token: i1__namespace.QuoteApiService }, { token: i2__namespace.ContextService }, { token: i2__namespace.RuntimeContextService }, { token: i2__namespace.RuntimeService }, { token: i2__namespace.CurrentStateService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
902
- LegacyProductComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: LegacyProductComponent, selector: "ng-component", ngImport: i0__namespace, template: "<vl-runtime #runtimeView (solutionUpdated)=\"onSolutionUpdated($event)\"></vl-runtime>\n", styles: [":host{display:block;height:100%}\n"], components: [{ type: i2__namespace.RuntimeComponent, selector: "vl-runtime", outputs: ["solutionUpdated"] }] });
981
+ LegacyProductComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LegacyProductComponent, deps: [{ token: i1__namespace$3.ActivatedRoute }, { token: i2__namespace$1.QuoteService }, { token: i1__namespace$2.QuoteApiService }, { token: i2__namespace$1.ContextService }, { token: i2__namespace$1.RuntimeContextService }, { token: i2__namespace$1.RuntimeService }, { token: i2__namespace$1.CurrentStateService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
982
+ LegacyProductComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: LegacyProductComponent, selector: "ng-component", ngImport: i0__namespace, template: "<vl-runtime #runtimeView (solutionUpdated)=\"onSolutionUpdated($event)\"></vl-runtime>\n", styles: [":host{display:block;height:100%}\n"], components: [{ type: i2__namespace$1.RuntimeComponent, selector: "vl-runtime", outputs: ["solutionUpdated"] }] });
903
983
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LegacyProductComponent, decorators: [{
904
984
  type: i0.Component,
905
985
  args: [{
@@ -907,7 +987,7 @@
907
987
  styleUrls: ['./legacy-product.component.scss'],
908
988
  }]
909
989
  }], ctorParameters: function () {
910
- return [{ type: i1__namespace$1.ActivatedRoute }, { type: i2__namespace.QuoteService }, { type: i1__namespace.QuoteApiService }, { type: i2__namespace.ContextService }, { type: i2__namespace.RuntimeContextService }, { type: i2__namespace.RuntimeService }, { type: i2__namespace.CurrentStateService }, { type: undefined, decorators: [{
990
+ return [{ type: i1__namespace$3.ActivatedRoute }, { type: i2__namespace$1.QuoteService }, { type: i1__namespace$2.QuoteApiService }, { type: i2__namespace$1.ContextService }, { type: i2__namespace$1.RuntimeContextService }, { type: i2__namespace$1.RuntimeService }, { type: i2__namespace$1.CurrentStateService }, { type: undefined, decorators: [{
911
991
  type: i0.Optional
912
992
  }, {
913
993
  type: i0.Inject,
@@ -921,13 +1001,13 @@
921
1001
  return LegacyProductModule;
922
1002
  }());
923
1003
  LegacyProductModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LegacyProductModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
924
- LegacyProductModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LegacyProductModule, declarations: [LegacyProductComponent], imports: [i4.CommonModule, i2.RuntimeModule, i1__namespace$2.TooltipModule], exports: [LegacyProductComponent] });
925
- LegacyProductModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LegacyProductModule, imports: [[i4.CommonModule, i2.RuntimeModule, i1$2.TooltipModule.forRoot()]] });
1004
+ LegacyProductModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LegacyProductModule, declarations: [LegacyProductComponent], imports: [i7.CommonModule, i2$1.RuntimeModule, i1__namespace$4.TooltipModule], exports: [LegacyProductComponent] });
1005
+ LegacyProductModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LegacyProductModule, imports: [[i7.CommonModule, i2$1.RuntimeModule, i1$4.TooltipModule.forRoot()]] });
926
1006
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LegacyProductModule, decorators: [{
927
1007
  type: i0.NgModule,
928
1008
  args: [{
929
1009
  declarations: [LegacyProductComponent],
930
- imports: [i4.CommonModule, i2.RuntimeModule, i1$2.TooltipModule.forRoot()],
1010
+ imports: [i7.CommonModule, i2$1.RuntimeModule, i1$4.TooltipModule.forRoot()],
931
1011
  exports: [LegacyProductComponent],
932
1012
  }]
933
1013
  }] });
@@ -971,7 +1051,7 @@
971
1051
  var _this = this;
972
1052
  var _a;
973
1053
  var lineItemId = this.getLineItemId(quote, queryParams);
974
- var currentStateItem = core.EntityUtil.findById(lineItemId, quote.currentState);
1054
+ var currentStateItem = i1.EntityUtil.findById(lineItemId, quote.currentState);
975
1055
  var productId = (_a = currentStateItem === null || currentStateItem === void 0 ? void 0 : currentStateItem.productId) !== null && _a !== void 0 ? _a : queryParams['productId'];
976
1056
  var offeringId = (currentStateItem !== null && currentStateItem !== void 0 ? currentStateItem : {}).offeringId;
977
1057
  if (currentStateItem) {
@@ -993,7 +1073,7 @@
993
1073
  .subscribe();
994
1074
  };
995
1075
  ProductComponent.prototype.getLineItemId = function (quote, queryParams) {
996
- if (core.EntityUtil.isPresent(queryParams['lineItemId'])) {
1076
+ if (i1.EntityUtil.isPresent(queryParams['lineItemId'])) {
997
1077
  return queryParams['lineItemId'];
998
1078
  }
999
1079
  return quote.currentState
@@ -1003,8 +1083,8 @@
1003
1083
  };
1004
1084
  return ProductComponent;
1005
1085
  }());
1006
- ProductComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProductComponent, deps: [{ token: i1__namespace$3.ConfigurationRuntimeService }, { token: i1__namespace$3.ConfigurationService }, { token: i2__namespace.QuoteService }, { token: i1__namespace$1.ActivatedRoute }, { token: i4__namespace$1.MessageService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
1007
- ProductComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: ProductComponent, selector: "vl-flow-product", ngImport: i0__namespace, 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: [""], components: [{ type: i2__namespace$1.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { type: i1__namespace$3.PreviewComponent, selector: "vl-cms-preview", inputs: ["modelId", "uiDefinition", "clearState"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1086
+ ProductComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProductComponent, deps: [{ token: i1__namespace$1.ConfigurationRuntimeService }, { token: i1__namespace$1.ConfigurationService }, { token: i2__namespace$1.QuoteService }, { token: i1__namespace$3.ActivatedRoute }, { token: i4__namespace.MessageService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
1087
+ ProductComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: ProductComponent, selector: "vl-flow-product", ngImport: i0__namespace, 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: [""], components: [{ type: i2__namespace.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { type: i1__namespace$1.PreviewComponent, selector: "vl-cms-preview", inputs: ["modelId", "uiDefinition", "clearState"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i7__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1008
1088
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProductComponent, decorators: [{
1009
1089
  type: i0.Component,
1010
1090
  args: [{
@@ -1014,7 +1094,7 @@
1014
1094
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1015
1095
  }]
1016
1096
  }], ctorParameters: function () {
1017
- return [{ type: i1__namespace$3.ConfigurationRuntimeService }, { type: i1__namespace$3.ConfigurationService }, { type: i2__namespace.QuoteService }, { type: i1__namespace$1.ActivatedRoute }, { type: i4__namespace$1.MessageService }, { type: undefined, decorators: [{
1097
+ return [{ type: i1__namespace$1.ConfigurationRuntimeService }, { type: i1__namespace$1.ConfigurationService }, { type: i2__namespace$1.QuoteService }, { type: i1__namespace$3.ActivatedRoute }, { type: i4__namespace.MessageService }, { type: undefined, decorators: [{
1018
1098
  type: i0.Optional
1019
1099
  }, {
1020
1100
  type: i0.Inject,
@@ -1028,13 +1108,13 @@
1028
1108
  return ProductModule;
1029
1109
  }());
1030
1110
  ProductModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProductModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1031
- ProductModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProductModule, declarations: [ProductComponent], imports: [i4.CommonModule, i1$3.PreviewModule, i2$1.LoaderModule], exports: [ProductComponent] });
1032
- ProductModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProductModule, imports: [[i4.CommonModule, i1$3.PreviewModule, i2$1.LoaderModule]] });
1111
+ ProductModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProductModule, declarations: [ProductComponent], imports: [i7.CommonModule, i1$1.PreviewModule, i2.LoaderModule], exports: [ProductComponent] });
1112
+ ProductModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProductModule, imports: [[i7.CommonModule, i1$1.PreviewModule, i2.LoaderModule]] });
1033
1113
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProductModule, decorators: [{
1034
1114
  type: i0.NgModule,
1035
1115
  args: [{
1036
1116
  declarations: [ProductComponent],
1037
- imports: [i4.CommonModule, i1$3.PreviewModule, i2$1.LoaderModule],
1117
+ imports: [i7.CommonModule, i1$1.PreviewModule, i2.LoaderModule],
1038
1118
  exports: [ProductComponent],
1039
1119
  }]
1040
1120
  }] });
@@ -1053,8 +1133,8 @@
1053
1133
  }
1054
1134
  return RecordNotFoundComponent;
1055
1135
  }());
1056
- RecordNotFoundComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RecordNotFoundComponent, deps: [{ token: i1__namespace$1.Router }, { token: i1__namespace$1.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Component });
1057
- RecordNotFoundComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: RecordNotFoundComponent, selector: "vl-flow-record-not-found", ngImport: i0__namespace, template: "<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"message-wrapper\">\n <div class=\"msg\">\n <div *ngIf=\"message; else defaultMessage\" class=\"message-title\">\n <p>{{ message }}</p>\n\n <p *ngIf=\"subMessage\" class=\"message-title\">{{ subMessage }}</p>\n </div>\n\n <ng-template #defaultMessage>Record not found</ng-template>\n </div>\n </div>\n </div>\n</div>\n", directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1136
+ RecordNotFoundComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RecordNotFoundComponent, deps: [{ token: i1__namespace$3.Router }, { token: i1__namespace$3.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Component });
1137
+ RecordNotFoundComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: RecordNotFoundComponent, selector: "vl-flow-record-not-found", ngImport: i0__namespace, template: "<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"message-wrapper\">\n <div class=\"msg\">\n <div *ngIf=\"message; else defaultMessage\" class=\"message-title\">\n <p>{{ message }}</p>\n\n <p *ngIf=\"subMessage\" class=\"message-title\">{{ subMessage }}</p>\n </div>\n\n <ng-template #defaultMessage>Record not found</ng-template>\n </div>\n </div>\n </div>\n</div>\n", directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1058
1138
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RecordNotFoundComponent, decorators: [{
1059
1139
  type: i0.Component,
1060
1140
  args: [{
@@ -1062,7 +1142,7 @@
1062
1142
  templateUrl: './record-not-found.component.html',
1063
1143
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1064
1144
  }]
1065
- }], ctorParameters: function () { return [{ type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }]; } });
1145
+ }], ctorParameters: function () { return [{ type: i1__namespace$3.Router }, { type: i1__namespace$3.ActivatedRoute }]; } });
1066
1146
 
1067
1147
  var routes = [{ path: '', component: RecordNotFoundComponent }];
1068
1148
  var RecordNotFoundModule = /** @class */ (function () {
@@ -1071,13 +1151,13 @@
1071
1151
  return RecordNotFoundModule;
1072
1152
  }());
1073
1153
  RecordNotFoundModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RecordNotFoundModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1074
- RecordNotFoundModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RecordNotFoundModule, declarations: [RecordNotFoundComponent], imports: [i4.CommonModule, i1__namespace$1.RouterModule] });
1075
- RecordNotFoundModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RecordNotFoundModule, imports: [[i4.CommonModule, i1$1.RouterModule.forChild(routes)]] });
1154
+ RecordNotFoundModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RecordNotFoundModule, declarations: [RecordNotFoundComponent], imports: [i7.CommonModule, i1__namespace$3.RouterModule] });
1155
+ RecordNotFoundModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RecordNotFoundModule, imports: [[i7.CommonModule, i1$3.RouterModule.forChild(routes)]] });
1076
1156
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RecordNotFoundModule, decorators: [{
1077
1157
  type: i0.NgModule,
1078
1158
  args: [{
1079
1159
  declarations: [RecordNotFoundComponent],
1080
- imports: [i4.CommonModule, i1$1.RouterModule.forChild(routes)],
1160
+ imports: [i7.CommonModule, i1$3.RouterModule.forChild(routes)],
1081
1161
  }]
1082
1162
  }] });
1083
1163
 
@@ -1102,7 +1182,7 @@
1102
1182
  _this.state$.next({ loading: false, failure: false });
1103
1183
  }), rxjs.catchError(function (err) {
1104
1184
  _this.uiDefinition = undefined;
1105
- _this.toastService.add({ severity: i2$1.ToastType.error, summary: 'Failed to resolve Shopping Cart component' });
1185
+ _this.toastService.add({ severity: i2.ToastType.error, summary: 'Failed to resolve Shopping Cart component' });
1106
1186
  _this.state$.next({ loading: false, failure: true });
1107
1187
  throw err;
1108
1188
  }), rxjs.takeUntil(this.destroyed$))
@@ -1115,7 +1195,7 @@
1115
1195
  ShoppingCartComponent.prototype.getTemplateRootComponent$ = function (template) {
1116
1196
  return this.templatesApi
1117
1197
  .fetchComponents$(template.id)
1118
- .pipe(rxjs.map(function (components) { var _a; return (_a = components.find(function (c) { return c.type === core.UITemplateComponentType.ROOT; })) !== null && _a !== void 0 ? _a : undefined; }));
1198
+ .pipe(rxjs.map(function (components) { var _a; return (_a = components.find(function (c) { return c.type === i1.UITemplateComponentType.ROOT; })) !== null && _a !== void 0 ? _a : undefined; }));
1119
1199
  };
1120
1200
  ShoppingCartComponent.prototype.getShoppingCartComponentMeta$ = function () {
1121
1201
  var _this = this;
@@ -1128,7 +1208,7 @@
1128
1208
  json: component === null || component === void 0 ? void 0 : component.json,
1129
1209
  }); }));
1130
1210
  }
1131
- return this.templatesApi.fetchTemplates$().pipe(rxjs.map(function (templates) { return templates.filter(function (template) { return template.type === core.UITemplateType.SHOPPING_CART; }).reverse()[0]; }), rxjs.switchMap(function (template) { return (template ? _this.getTemplateRootComponent$(template) : rxjs.of(undefined)); }), rxjs.switchMap(function (component) { return component ? _this.templatesApi.fetchComponentAttachments$(component.uiTemplateId, component) : rxjs.of(undefined); }));
1211
+ return this.templatesApi.fetchTemplates$().pipe(rxjs.map(function (templates) { return templates.filter(function (template) { return template.type === i1.UITemplateType.SHOPPING_CART; }).reverse()[0]; }), rxjs.switchMap(function (template) { return (template ? _this.getTemplateRootComponent$(template) : rxjs.of(undefined)); }), rxjs.switchMap(function (component) { return component ? _this.templatesApi.fetchComponentAttachments$(component.uiTemplateId, component) : rxjs.of(undefined); }));
1132
1212
  };
1133
1213
  ShoppingCartComponent.prototype.generateUIDefinition$ = function () {
1134
1214
  return this.getShoppingCartComponentMeta$().pipe(rxjs.map(function (meta) {
@@ -1155,8 +1235,8 @@
1155
1235
  };
1156
1236
  return ShoppingCartComponent;
1157
1237
  }());
1158
- ShoppingCartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ShoppingCartComponent, deps: [{ token: i1__namespace.UITemplatesApiService }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace$1.ToastService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
1159
- ShoppingCartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: ShoppingCartComponent, selector: "vl-flow-shopping-cart", ngImport: i0__namespace, 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: [""], components: [{ type: i2__namespace$1.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { type: i1__namespace$3.PreviewComponent, selector: "vl-cms-preview", inputs: ["modelId", "uiDefinition", "clearState"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1238
+ ShoppingCartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ShoppingCartComponent, deps: [{ token: i1__namespace$2.UITemplatesApiService }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.ToastService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
1239
+ ShoppingCartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: ShoppingCartComponent, selector: "vl-flow-shopping-cart", ngImport: i0__namespace, 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: [""], components: [{ type: i2__namespace.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { type: i1__namespace$1.PreviewComponent, selector: "vl-cms-preview", inputs: ["modelId", "uiDefinition", "clearState"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i7__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1160
1240
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ShoppingCartComponent, decorators: [{
1161
1241
  type: i0.Component,
1162
1242
  args: [{
@@ -1166,7 +1246,7 @@
1166
1246
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1167
1247
  }]
1168
1248
  }], ctorParameters: function () {
1169
- return [{ type: i1__namespace.UITemplatesApiService }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$1.ToastService }, { type: undefined, decorators: [{
1249
+ return [{ type: i1__namespace$2.UITemplatesApiService }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.ToastService }, { type: undefined, decorators: [{
1170
1250
  type: i0.Optional
1171
1251
  }, {
1172
1252
  type: i0.Inject,
@@ -1180,13 +1260,13 @@
1180
1260
  return ShoppingCartModule;
1181
1261
  }());
1182
1262
  ShoppingCartModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ShoppingCartModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1183
- ShoppingCartModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ShoppingCartModule, declarations: [ShoppingCartComponent], imports: [i4.CommonModule, i1$3.PreviewModule, i2$1.LoaderModule], exports: [ShoppingCartComponent] });
1184
- ShoppingCartModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ShoppingCartModule, imports: [[i4.CommonModule, i1$3.PreviewModule, i2$1.LoaderModule]] });
1263
+ ShoppingCartModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ShoppingCartModule, declarations: [ShoppingCartComponent], imports: [i7.CommonModule, i1$1.PreviewModule, i2.LoaderModule], exports: [ShoppingCartComponent] });
1264
+ ShoppingCartModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ShoppingCartModule, imports: [[i7.CommonModule, i1$1.PreviewModule, i2.LoaderModule]] });
1185
1265
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ShoppingCartModule, decorators: [{
1186
1266
  type: i0.NgModule,
1187
1267
  args: [{
1188
1268
  declarations: [ShoppingCartComponent],
1189
- imports: [i4.CommonModule, i1$3.PreviewModule, i2$1.LoaderModule],
1269
+ imports: [i7.CommonModule, i1$1.PreviewModule, i2.LoaderModule],
1190
1270
  exports: [ShoppingCartComponent],
1191
1271
  }]
1192
1272
  }] });
@@ -1221,11 +1301,11 @@
1221
1301
  };
1222
1302
  return ContextResolver;
1223
1303
  }());
1224
- ContextResolver.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ContextResolver, deps: [{ token: i2__namespace.ContextService }, { token: i1__namespace$1.Router }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1304
+ ContextResolver.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ContextResolver, deps: [{ token: i2__namespace$1.ContextService }, { token: i1__namespace$3.Router }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1225
1305
  ContextResolver.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ContextResolver });
1226
1306
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ContextResolver, decorators: [{
1227
1307
  type: i0.Injectable
1228
- }], ctorParameters: function () { return [{ type: i2__namespace.ContextService }, { type: i1__namespace$1.Router }, { type: RouterService }]; } });
1308
+ }], ctorParameters: function () { return [{ type: i2__namespace$1.ContextService }, { type: i1__namespace$3.Router }, { type: RouterService }]; } });
1229
1309
 
1230
1310
  var FlowResolver = /** @class */ (function () {
1231
1311
  function FlowResolver(router, flowService, routerService) {
@@ -1274,11 +1354,11 @@
1274
1354
  };
1275
1355
  return FlowResolver;
1276
1356
  }());
1277
- FlowResolver.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowResolver, deps: [{ token: i1__namespace$1.Router }, { token: FlowService }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1357
+ FlowResolver.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowResolver, deps: [{ token: i1__namespace$3.Router }, { token: FlowService }, { token: RouterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1278
1358
  FlowResolver.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowResolver });
1279
1359
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowResolver, decorators: [{
1280
1360
  type: i0.Injectable
1281
- }], ctorParameters: function () { return [{ type: i1__namespace$1.Router }, { type: FlowService }, { type: RouterService }]; } });
1361
+ }], ctorParameters: function () { return [{ type: i1__namespace$3.Router }, { type: FlowService }, { type: RouterService }]; } });
1282
1362
 
1283
1363
  var QuoteResolver = /** @class */ (function () {
1284
1364
  function QuoteResolver(router, quoteService, routerService, contextService, flowConfiguration) {
@@ -1319,11 +1399,11 @@
1319
1399
  };
1320
1400
  return QuoteResolver;
1321
1401
  }());
1322
- QuoteResolver.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteResolver, deps: [{ token: i1__namespace$1.Router }, { token: i2__namespace.QuoteService }, { token: RouterService }, { token: i2__namespace.ContextService }, { token: i1__namespace$3.FlowConfigurationService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1402
+ QuoteResolver.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteResolver, deps: [{ token: i1__namespace$3.Router }, { token: i2__namespace$1.QuoteService }, { token: RouterService }, { token: i2__namespace$1.ContextService }, { token: i1__namespace$1.FlowConfigurationService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1323
1403
  QuoteResolver.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteResolver });
1324
1404
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteResolver, decorators: [{
1325
1405
  type: i0.Injectable
1326
- }], ctorParameters: function () { return [{ type: i1__namespace$1.Router }, { type: i2__namespace.QuoteService }, { type: RouterService }, { type: i2__namespace.ContextService }, { type: i1__namespace$3.FlowConfigurationService }]; } });
1406
+ }], ctorParameters: function () { return [{ type: i1__namespace$3.Router }, { type: i2__namespace$1.QuoteService }, { type: RouterService }, { type: i2__namespace$1.ContextService }, { type: i1__namespace$1.FlowConfigurationService }]; } });
1327
1407
 
1328
1408
  var rootRoute = {
1329
1409
  id: VELOCE_FLOW_ROOT_ROUTE,
@@ -1383,13 +1463,13 @@
1383
1463
  return FlowRoutingModule;
1384
1464
  }());
1385
1465
  FlowRoutingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowRoutingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1386
- FlowRoutingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowRoutingModule, imports: [i1__namespace$1.RouterModule, ProductModule, LegacyProductModule, ShoppingCartModule], exports: [i1$1.RouterModule] });
1387
- FlowRoutingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowRoutingModule, providers: [RouterService, RootGuard, ContextGuard, ContextResolver, FlowResolver, QuoteResolver], imports: [[i1$1.RouterModule.forChild([rootRoute]), ProductModule, LegacyProductModule, ShoppingCartModule], i1$1.RouterModule] });
1466
+ FlowRoutingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowRoutingModule, imports: [i1__namespace$3.RouterModule, ProductModule, LegacyProductModule, ShoppingCartModule], exports: [i1$3.RouterModule] });
1467
+ FlowRoutingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowRoutingModule, providers: [RouterService, RootGuard, ContextGuard, ContextResolver, FlowResolver, QuoteResolver], imports: [[i1$3.RouterModule.forChild([rootRoute]), ProductModule, LegacyProductModule, ShoppingCartModule], i1$3.RouterModule] });
1388
1468
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowRoutingModule, decorators: [{
1389
1469
  type: i0.NgModule,
1390
1470
  args: [{
1391
- imports: [i1$1.RouterModule.forChild([rootRoute]), ProductModule, LegacyProductModule, ShoppingCartModule],
1392
- exports: [i1$1.RouterModule],
1471
+ imports: [i1$3.RouterModule.forChild([rootRoute]), ProductModule, LegacyProductModule, ShoppingCartModule],
1472
+ exports: [i1$3.RouterModule],
1393
1473
  providers: [RouterService, RootGuard, ContextGuard, ContextResolver, FlowResolver, QuoteResolver],
1394
1474
  }]
1395
1475
  }] });
@@ -1400,14 +1480,14 @@
1400
1480
  return FlowModule;
1401
1481
  }());
1402
1482
  FlowModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1403
- FlowModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowModule, declarations: [FlowComponent], imports: [i4.CommonModule, FlowRoutingModule, i1.ApiModule, i1$3.LauncherModule, i2$1.LoaderModule, FlowHeaderModule] });
1404
- FlowModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowModule, providers: [FlowService, i2.ContextService], imports: [[i4.CommonModule, FlowRoutingModule, i1.ApiModule, i1$3.LauncherModule, i2$1.LoaderModule, FlowHeaderModule]] });
1483
+ FlowModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowModule, declarations: [FlowComponent], imports: [i7.CommonModule, FlowRoutingModule, i1$2.ApiModule, i1$1.LauncherModule, i2.LoaderModule, FlowHeaderModule] });
1484
+ FlowModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowModule, providers: [FlowService, i2$1.ContextService], imports: [[i7.CommonModule, FlowRoutingModule, i1$2.ApiModule, i1$1.LauncherModule, i2.LoaderModule, FlowHeaderModule]] });
1405
1485
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowModule, decorators: [{
1406
1486
  type: i0.NgModule,
1407
1487
  args: [{
1408
1488
  declarations: [FlowComponent],
1409
- imports: [i4.CommonModule, FlowRoutingModule, i1.ApiModule, i1$3.LauncherModule, i2$1.LoaderModule, FlowHeaderModule],
1410
- providers: [FlowService, i2.ContextService],
1489
+ imports: [i7.CommonModule, FlowRoutingModule, i1$2.ApiModule, i1$1.LauncherModule, i2.LoaderModule, FlowHeaderModule],
1490
+ providers: [FlowService, i2$1.ContextService],
1411
1491
  }]
1412
1492
  }] });
1413
1493