@colijnit/catalog 12.1.34 → 12.1.36

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 (65) hide show
  1. package/bundles/colijnit-catalog.umd.js +513 -256
  2. package/bundles/colijnit-catalog.umd.js.map +1 -1
  3. package/colijnit-catalog.d.ts +24 -35
  4. package/colijnit-catalog.metadata.json +1 -1
  5. package/esm2015/colijnit-catalog.js +25 -36
  6. package/esm2015/lib/cache/service/business-object-cache-manager.service.js +2 -14
  7. package/esm2015/lib/cache/service/select-multiple-cache.service.js +2 -7
  8. package/esm2015/lib/cache/service/select-multiple-parameterized-cache.service.js +2 -7
  9. package/esm2015/lib/cache/service/select-single-cache.service.js +2 -7
  10. package/esm2015/lib/cache/service/select-single-parameterized-cache.service.js +2 -7
  11. package/esm2015/lib/catalog-version.js +3 -3
  12. package/esm2015/lib/component/catalog-categories/catalog-categories.component.js +17 -5
  13. package/esm2015/lib/component/catalog-categories/catalog-categories.module.js +5 -4
  14. package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +77 -34
  15. package/esm2015/lib/component/catalog-external-source/catalog-external-source.module.js +4 -2
  16. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +36 -19
  17. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +29 -11
  18. package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +32 -10
  19. package/esm2015/lib/component/catalog-search/catalog-search.component.js +117 -15
  20. package/esm2015/lib/component/catalog-search/catalog-search.module.js +39 -2
  21. package/esm2015/lib/component/catalog-search-header/catalog-search-header.component.js +15 -4
  22. package/esm2015/lib/component/catalog-search-header/catalog-search-header.module.js +4 -3
  23. package/esm2015/lib/enum/external-settings.interface.js +2 -0
  24. package/esm2015/lib/enum/icon.enum.js +4 -1
  25. package/esm2015/lib/model/icon.js +5 -2
  26. package/esm2015/lib/model/settings.js +3 -2
  27. package/esm2015/lib/service/catalog-connector-adapter.service.js +40 -27
  28. package/esm2015/lib/service/catalog-connector.service.js +7 -11
  29. package/esm2015/lib/service/catalog-filter.service.js +14 -15
  30. package/esm2015/lib/service/catalog-image.service.js +2 -7
  31. package/esm2015/lib/service/catalog-navigation.service.js +83 -0
  32. package/esm2015/lib/service/catalog-options.service.js +2 -8
  33. package/esm2015/lib/service/catalog-search.service.js +2 -10
  34. package/esm2015/lib/service/catalog-settings.service.js +12 -12
  35. package/esm2015/lib/service/catalog.service.js +18 -18
  36. package/esm2015/public_api.js +13 -1
  37. package/fesm2015/colijnit-catalog.js +483 -180
  38. package/fesm2015/colijnit-catalog.js.map +1 -1
  39. package/lib/cache/service/business-object-cache-manager.service.d.ts +1 -4
  40. package/lib/component/catalog-categories/catalog-categories.component.d.ts +8 -3
  41. package/lib/component/catalog-external-source/catalog-external-source.component.d.ts +34 -16
  42. package/lib/component/catalog-external-source/style/_layout.scss +0 -47
  43. package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +15 -8
  44. package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +12 -5
  45. package/lib/component/catalog-navigation/catalog-navigation.component.d.ts +6 -1
  46. package/lib/component/catalog-navigation/style/_layout.scss +2 -0
  47. package/lib/component/catalog-navigation/style/_material-definition.scss +6 -1
  48. package/lib/component/catalog-search/catalog-search.component.d.ts +18 -1
  49. package/lib/component/catalog-search/catalog-search.module.d.ts +2 -0
  50. package/lib/component/catalog-search/style/_layout.scss +47 -1
  51. package/lib/component/catalog-search/style/_material-definition.scss +31 -2
  52. package/lib/component/catalog-search-header/catalog-search-header.component.d.ts +7 -1
  53. package/lib/component/catalog-search-header/style/_layout.scss +4 -1
  54. package/lib/component/catalog-search-header/style/_material-definition.scss +2 -1
  55. package/lib/enum/external-settings.interface.d.ts +4 -0
  56. package/lib/enum/icon.enum.d.ts +4 -1
  57. package/lib/model/settings.d.ts +2 -1
  58. package/lib/service/catalog-connector-adapter.service.d.ts +14 -9
  59. package/lib/service/catalog-connector.service.d.ts +8 -7
  60. package/lib/service/catalog-navigation.service.d.ts +27 -0
  61. package/lib/service/catalog-settings.service.d.ts +1 -1
  62. package/lib/service/catalog.service.d.ts +5 -2
  63. package/lib/style/_variables.scss +21 -9
  64. package/package.json +7 -7
  65. package/public_api.d.ts +12 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('@colijnit/ioneconnector/build/utils/string-utils'), require('@colijnit/articleapi/build/model/article-category'), require('@colijnit/articleapi/build/model/catalog-definition.bo'), require('@colijnit/articleapi/build/model/external-source.bo'), require('@colijnit/articleapi/build/articles'), require('@colijnit/articleapi/build/model/article-extended.bo'), require('@colijnit/articleapi/build/model/article-search-filter-selections'), require('@colijnit/articleapi/build/model/article-search-filter-max-and-min-price'), require('@colijnit/articleapi/build/model/article-price'), require('@colijnit/articleapi/build/model/get-article-price-request'), require('@colijnit/relationapi'), require('@colijnit/mainapi'), require('@colijnit/mainapi/build/model/store-group.bo'), require('@colijnit/mainapi/build/model/co-domain-value.bo'), require('@colijnit/relationapi/build/model/relation-request'), require('@colijnit/relationapi/build/enum/relation-kind.enum'), require('@colijnit/mainapi/build/model/co-rv-domain-value.bo'), require('@colijnit/mainapi/build/model/category.bo'), require('@colijnit/ioneconnector/build/service/business-object-factory'), require('@colijnit/ioneconnector/build/utils/object-utils'), require('@colijnit/ioneconnector/build/utils/file-utils'), require('@colijnit/corecomponents_v12'), require('@colijnit/articleapi/build/model/article-extended-request'), require('@colijnit/ioneconnector/build/model/paging-parameters'), require('@angular/animations'), require('@angular/platform-browser'), require('@colijnit/corecomponents'), require('@colijnit/mainapi/build/enum/domain-name.enum')) :
3
- typeof define === 'function' && define.amd ? define('@colijnit/catalog', ['exports', '@angular/core', '@angular/common', 'rxjs', '@colijnit/ioneconnector/build/utils/string-utils', '@colijnit/articleapi/build/model/article-category', '@colijnit/articleapi/build/model/catalog-definition.bo', '@colijnit/articleapi/build/model/external-source.bo', '@colijnit/articleapi/build/articles', '@colijnit/articleapi/build/model/article-extended.bo', '@colijnit/articleapi/build/model/article-search-filter-selections', '@colijnit/articleapi/build/model/article-search-filter-max-and-min-price', '@colijnit/articleapi/build/model/article-price', '@colijnit/articleapi/build/model/get-article-price-request', '@colijnit/relationapi', '@colijnit/mainapi', '@colijnit/mainapi/build/model/store-group.bo', '@colijnit/mainapi/build/model/co-domain-value.bo', '@colijnit/relationapi/build/model/relation-request', '@colijnit/relationapi/build/enum/relation-kind.enum', '@colijnit/mainapi/build/model/co-rv-domain-value.bo', '@colijnit/mainapi/build/model/category.bo', '@colijnit/ioneconnector/build/service/business-object-factory', '@colijnit/ioneconnector/build/utils/object-utils', '@colijnit/ioneconnector/build/utils/file-utils', '@colijnit/corecomponents_v12', '@colijnit/articleapi/build/model/article-extended-request', '@colijnit/ioneconnector/build/model/paging-parameters', '@angular/animations', '@angular/platform-browser', '@colijnit/corecomponents', '@colijnit/mainapi/build/enum/domain-name.enum'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.catalog = {}), global.ng.core, global.ng.common, global.rxjs, global.stringUtils, global.articleCategory, global.catalogDefinition_bo, global.externalSource_bo, global.articles, global.articleExtended_bo, global.articleSearchFilterSelections, global.articleSearchFilterMaxAndMinPrice, global.articlePrice, global.getArticlePriceRequest, global.relationapi, global.mainapi, global.storeGroup_bo, global.coDomainValue_bo, global.relationRequest, global.relationKind_enum, global.coRvDomainValue_bo, global.category_bo, global.businessObjectFactory, global.objectUtils, global.fileUtils, global.corecomponents_v12, global.articleExtendedRequest, global.pagingParameters, global.ng.animations, global.ng.platformBrowser, global.corecomponents, global.domainName_enum));
5
- })(this, (function (exports, i0, common, rxjs, stringUtils, articleCategory, catalogDefinition_bo, externalSource_bo, articles, articleExtended_bo, articleSearchFilterSelections, articleSearchFilterMaxAndMinPrice, articlePrice, getArticlePriceRequest, relationapi, mainapi, storeGroup_bo, coDomainValue_bo, relationRequest, relationKind_enum, coRvDomainValue_bo, category_bo, businessObjectFactory, objectUtils, fileUtils, corecomponents_v12, articleExtendedRequest, pagingParameters, animations, i1, corecomponents, domainName_enum) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('@colijnit/ioneconnector/build/utils/string-utils'), require('@colijnit/articleapi/build/model/article-category'), require('@colijnit/articleapi/build/model/catalog-definition.bo'), require('@colijnit/articleapi/build/model/external-source.bo'), require('@colijnit/articleapi/build/articles'), require('@colijnit/articleapi/build/model/article-extended.bo'), require('@colijnit/articleapi/build/model/article-search-filter-selections'), require('@colijnit/articleapi/build/model/article-search-filter-max-and-min-price'), require('@colijnit/articleapi/build/model/article-price'), require('@colijnit/articleapi/build/model/get-article-price-request'), require('@colijnit/relationapi'), require('@colijnit/mainapi'), require('@colijnit/mainapi/build/model/store-group.bo'), require('@colijnit/mainapi/build/model/co-domain-value.bo'), require('@colijnit/relationapi/build/model/relation-list-object.bo'), require('@colijnit/relationapi/build/model/relation-request'), require('@colijnit/relationapi/build/enum/relation-kind.enum'), require('@colijnit/mainapi/build/model/co-rv-domain-value.bo'), require('@colijnit/mainapi/build/model/category.bo'), require('@colijnit/ioneconnector/build/service/business-object-factory'), require('@colijnit/transactionapi/build/model/price-list'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/ioneconnector/build/utils/object-utils'), require('@colijnit/ioneconnector/build/utils/file-utils'), require('@colijnit/corecomponents_v12'), require('@colijnit/articleapi/build/model/article-extended-request'), require('@colijnit/ioneconnector/build/model/paging-parameters'), require('@angular/animations'), require('@angular/platform-browser'), require('@colijnit/corecomponents'), require('@colijnit/mainapi/build/enum/domain-name.enum')) :
3
+ typeof define === 'function' && define.amd ? define('@colijnit/catalog', ['exports', '@angular/core', '@angular/common', 'rxjs', '@colijnit/ioneconnector/build/utils/string-utils', '@colijnit/articleapi/build/model/article-category', '@colijnit/articleapi/build/model/catalog-definition.bo', '@colijnit/articleapi/build/model/external-source.bo', '@colijnit/articleapi/build/articles', '@colijnit/articleapi/build/model/article-extended.bo', '@colijnit/articleapi/build/model/article-search-filter-selections', '@colijnit/articleapi/build/model/article-search-filter-max-and-min-price', '@colijnit/articleapi/build/model/article-price', '@colijnit/articleapi/build/model/get-article-price-request', '@colijnit/relationapi', '@colijnit/mainapi', '@colijnit/mainapi/build/model/store-group.bo', '@colijnit/mainapi/build/model/co-domain-value.bo', '@colijnit/relationapi/build/model/relation-list-object.bo', '@colijnit/relationapi/build/model/relation-request', '@colijnit/relationapi/build/enum/relation-kind.enum', '@colijnit/mainapi/build/model/co-rv-domain-value.bo', '@colijnit/mainapi/build/model/category.bo', '@colijnit/ioneconnector/build/service/business-object-factory', '@colijnit/transactionapi/build/model/price-list', '@colijnit/transactionapi/build/transaction', '@colijnit/ioneconnector/build/utils/object-utils', '@colijnit/ioneconnector/build/utils/file-utils', '@colijnit/corecomponents_v12', '@colijnit/articleapi/build/model/article-extended-request', '@colijnit/ioneconnector/build/model/paging-parameters', '@angular/animations', '@angular/platform-browser', '@colijnit/corecomponents', '@colijnit/mainapi/build/enum/domain-name.enum'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.catalog = {}), global.ng.core, global.ng.common, global.rxjs, global.stringUtils, global.articleCategory, global.catalogDefinition_bo, global.externalSource_bo, global.articles, global.articleExtended_bo, global.articleSearchFilterSelections, global.articleSearchFilterMaxAndMinPrice, global.articlePrice, global.getArticlePriceRequest, global.relationapi, global.mainapi, global.storeGroup_bo, global.coDomainValue_bo, global.relationListObject_bo, global.relationRequest, global.relationKind_enum, global.coRvDomainValue_bo, global.category_bo, global.businessObjectFactory, global.priceList, global.transaction, global.objectUtils, global.fileUtils, global.corecomponents_v12, global.articleExtendedRequest, global.pagingParameters, global.ng.animations, global.ng.platformBrowser, global.corecomponents, global.domainName_enum));
5
+ })(this, (function (exports, i0, common, rxjs, stringUtils, articleCategory, catalogDefinition_bo, externalSource_bo, articles, articleExtended_bo, articleSearchFilterSelections, articleSearchFilterMaxAndMinPrice, articlePrice, getArticlePriceRequest, relationapi, mainapi, storeGroup_bo, coDomainValue_bo, relationListObject_bo, relationRequest, relationKind_enum, coRvDomainValue_bo, category_bo, businessObjectFactory, priceList, transaction, objectUtils, fileUtils, corecomponents_v12, articleExtendedRequest, pagingParameters, animations, i1, corecomponents, domainName_enum) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -30,8 +30,8 @@
30
30
  function Version() {
31
31
  this.name = "@colijnit/catalog";
32
32
  this.description = "iOne Catalog module based on Angular 12";
33
- this.symVer = "12.1.34";
34
- this.publishDate = "26-6-2023 18:36:55";
33
+ this.symVer = "12.1.36";
34
+ this.publishDate = "28-7-2023 10:59:06";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -129,11 +129,11 @@
129
129
  if (_ = accept(result.set))
130
130
  descriptor.set = _;
131
131
  if (_ = accept(result.init))
132
- initializers.unshift(_);
132
+ initializers.push(_);
133
133
  }
134
134
  else if (_ = accept(result)) {
135
135
  if (kind === "field")
136
- initializers.unshift(_);
136
+ initializers.push(_);
137
137
  else
138
138
  descriptor[key] = _;
139
139
  }
@@ -419,34 +419,7 @@
419
419
  if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
420
420
  throw new TypeError("Cannot use 'in' operator on non-object");
421
421
  return typeof state === "function" ? receiver === state : state.has(receiver);
422
- }
423
- var tslib_es6 = {
424
- __extends: __extends,
425
- __assign: __assign,
426
- __rest: __rest,
427
- __decorate: __decorate,
428
- __param: __param,
429
- __metadata: __metadata,
430
- __awaiter: __awaiter,
431
- __generator: __generator,
432
- __createBinding: __createBinding,
433
- __exportStar: __exportStar,
434
- __values: __values,
435
- __read: __read,
436
- __spread: __spread,
437
- __spreadArrays: __spreadArrays,
438
- __spreadArray: __spreadArray,
439
- __await: __await,
440
- __asyncGenerator: __asyncGenerator,
441
- __asyncDelegator: __asyncDelegator,
442
- __asyncValues: __asyncValues,
443
- __makeTemplateObject: __makeTemplateObject,
444
- __importStar: __importStar,
445
- __importDefault: __importDefault,
446
- __classPrivateFieldGet: __classPrivateFieldGet,
447
- __classPrivateFieldSet: __classPrivateFieldSet,
448
- __classPrivateFieldIn: __classPrivateFieldIn,
449
- };
422
+ }
450
423
 
451
424
  var SettingsOptions = /** @class */ (function () {
452
425
  function SettingsOptions() {
@@ -472,9 +445,10 @@
472
445
  var Settings = /** @class */ (function () {
473
446
  function Settings() {
474
447
  this.session = undefined;
475
- this.useEncryption = true;
448
+ this.useLoginEncryption = true;
476
449
  this.type = "V";
477
450
  this.options = new SettingsOptions();
451
+ this.jwtEnabled = false;
478
452
  }
479
453
  return Settings;
480
454
  }());
@@ -642,7 +616,7 @@
642
616
  enumerable: false,
643
617
  configurable: true
644
618
  });
645
- CatalogSettingsService.prototype.initializeSettings = function (settings) {
619
+ CatalogSettingsService.prototype.initializeSettings = function () {
646
620
  return __awaiter(this, void 0, void 0, function () {
647
621
  var jsonSettings;
648
622
  return __generator(this, function (_a) {
@@ -652,9 +626,11 @@
652
626
  return [4 /*yield*/, JsonUtils.ReadJsonFile('catalog-settings.json')];
653
627
  case 1:
654
628
  jsonSettings = _a.sent();
655
- this.settings = Object.assign(new Settings(), jsonSettings);
656
- this.settings.options = Object.assign(new SettingsOptions(), this.settings.options);
657
- this.settingsFinished();
629
+ if (jsonSettings) {
630
+ this.settings = Object.assign(new Settings(), jsonSettings);
631
+ this.settings.options = Object.assign(new SettingsOptions(), this.settings.options);
632
+ this.settingsFinished();
633
+ }
658
634
  return [3 /*break*/, 3];
659
635
  case 2:
660
636
  this.settings = Object.assign(new Settings(), settings);
@@ -703,7 +679,10 @@
703
679
  this.settings.session = obj['session'];
704
680
  }
705
681
  if (obj.hasOwnProperty('useEncryption')) {
706
- this.settings.useEncryption = obj['useEncryption'];
682
+ this.settings.useLoginEncryption = obj['useEncryption'];
683
+ }
684
+ if (obj.hasOwnProperty('useLoginEncryption')) {
685
+ this.settings.useLoginEncryption = obj['useLoginEncryption'];
707
686
  }
708
687
  if (obj.hasOwnProperty('additionalTranslationFile')) {
709
688
  this.settings.additionalTranslationFile = obj['additionalTranslationFile'];
@@ -744,11 +723,8 @@
744
723
  };
745
724
  return CatalogSettingsService;
746
725
  }());
747
- CatalogSettingsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogSettingsService_Factory() { return new CatalogSettingsService(i0__namespace.ɵɵinject(DictionaryService)); }, token: CatalogSettingsService, providedIn: "root" });
748
726
  CatalogSettingsService.decorators = [
749
- { type: i0.Injectable, args: [{
750
- providedIn: 'root'
751
- },] }
727
+ { type: i0.Injectable }
752
728
  ];
753
729
  CatalogSettingsService.ctorParameters = function () { return [
754
730
  { type: DictionaryService }
@@ -782,39 +758,60 @@
782
758
  };
783
759
  CatalogConnectorAdapterService.prototype.initConnector = function (settings, forceReload) {
784
760
  return __awaiter(this, void 0, void 0, function () {
761
+ var e_1;
785
762
  var _this = this;
786
763
  return __generator(this, function (_a) {
787
- if ((this._initialized || this._initializing) && !forceReload) {
788
- return [2 /*return*/];
789
- }
790
- this._initializing = true;
791
- try {
792
- this.connectorOptions.url = settings.url;
793
- this.connectorOptions.schema = settings.schema;
794
- this.connectorOptions.version = settings.version;
795
- this.connectorOptions.branch = settings.branch;
796
- this.connectorOptions.username = settings.username;
797
- this.connectorOptions.password = settings.password;
798
- this.connectorOptions.session = settings.session;
799
- this.connectorOptions.currencyId = settings.currency;
800
- this.connectorOptions.useGroups = settings.useGroups;
801
- this.connectorOptions.useRenders = settings.useRenders;
802
- this.connectorOptions.useLoginEncryption = settings.useEncryption;
803
- this.connectorOptions.languageCode = settings.languageCode;
804
- this.assetPath = settings.assetPath;
805
- this.connector = new articles.Articles(this.connectorOptions);
806
- this.connectorOptions.session = this.connector.session;
807
- this.relationConnector = new relationapi.RelationApi(this.connectorOptions);
808
- this.mainConnector = new mainapi.MainApi(this.connectorOptions);
809
- this.connector.showLoader.subscribe(function (showLoader) { return _this.onShowLoaderChange(showLoader); });
810
- this.controllerInitialized.next(true);
811
- this._initialized = true;
812
- this._initializing = false;
764
+ switch (_a.label) {
765
+ case 0:
766
+ if ((this._initialized || this._initializing) && !forceReload) {
767
+ return [2 /*return*/];
768
+ }
769
+ this._initializing = true;
770
+ _a.label = 1;
771
+ case 1:
772
+ _a.trys.push([1, 3, , 4]);
773
+ this.connectorOptions = Object.assign(new Settings(), settings);
774
+ this.connectorOptions.options = Object.assign(new SettingsOptions(), this.connectorOptions.options);
775
+ this.assetPath = settings.assetPath;
776
+ this.connector = new articles.Articles(this.connectorOptions);
777
+ return [4 /*yield*/, this.connector.connect()];
778
+ case 2:
779
+ _a.sent();
780
+ this.relationConnector = new relationapi.RelationApi(this.connectorOptions);
781
+ this.mainConnector = new mainapi.MainApi(this.connectorOptions);
782
+ this.transactionConnector = new transaction.Transaction(this.connectorOptions);
783
+ this.connector.showLoader.subscribe(function (showLoader) { return _this.onShowLoaderChange(showLoader); });
784
+ this.controllerInitialized.next(true);
785
+ this._initialized = true;
786
+ this._initializing = false;
787
+ return [3 /*break*/, 4];
788
+ case 3:
789
+ e_1 = _a.sent();
790
+ this._initializing = false;
791
+ return [3 /*break*/, 4];
792
+ case 4: return [2 /*return*/];
813
793
  }
814
- catch (e) {
815
- this._initializing = false;
794
+ });
795
+ });
796
+ };
797
+ CatalogConnectorAdapterService.prototype.getCatalogBundleSettings = function (url, upId) {
798
+ return __awaiter(this, void 0, void 0, function () {
799
+ var tempSettings, tempMainConnector, response;
800
+ return __generator(this, function (_a) {
801
+ switch (_a.label) {
802
+ case 0:
803
+ tempSettings = new Settings();
804
+ tempSettings.url = url;
805
+ tempSettings.schema = upId.toString();
806
+ tempMainConnector = new mainapi.MainApi(tempSettings);
807
+ return [4 /*yield*/, tempMainConnector.getPublicParams(upId)];
808
+ case 1:
809
+ response = _a.sent();
810
+ if (response) {
811
+ return [2 /*return*/, response.catalogSettings];
812
+ }
813
+ return [2 /*return*/, ""];
816
814
  }
817
- return [2 /*return*/];
818
815
  });
819
816
  });
820
817
  };
@@ -1213,7 +1210,7 @@
1213
1210
  case 1:
1214
1211
  response = _a.sent();
1215
1212
  if (response && response.validationResult && response.validationResult.success) {
1216
- return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(coDomainValue_bo.CoDomainValue, response.resultObjects)];
1213
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(priceList.PriceList, response.resultObjects)];
1217
1214
  }
1218
1215
  else {
1219
1216
  console.error(response.validationMessagesAsString);
@@ -1235,7 +1232,7 @@
1235
1232
  case 1:
1236
1233
  response = _a.sent();
1237
1234
  if (response && response.validationResult && response.validationResult.success) {
1238
- return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(coDomainValue_bo.CoDomainValue, response.resultObjects)];
1235
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(relationListObject_bo.RelationListObject, response.resultObjects)];
1239
1236
  }
1240
1237
  else {
1241
1238
  console.error(response.validationMessagesAsString);
@@ -1358,6 +1355,14 @@
1358
1355
  });
1359
1356
  });
1360
1357
  };
1358
+ CatalogConnectorAdapterService.prototype.addWebSessionTransactionLine = function (sku, quantity) {
1359
+ this.transactionConnector.addWebSessionTransactionLine(sku, quantity);
1360
+ };
1361
+ CatalogConnectorAdapterService.prototype.getWebTransaction = function () {
1362
+ this.transactionConnector.getWebSessionSalesOrder().then(function (response) {
1363
+ console.log(response);
1364
+ });
1365
+ };
1361
1366
  CatalogConnectorAdapterService.prototype.getJsonArticleFlatTree = function (goodId, goodType, quantity, showLoader, instanceId, configuratorStatistics) {
1362
1367
  if (showLoader === void 0) { showLoader = true; }
1363
1368
  if (instanceId === void 0) { instanceId = undefined; }
@@ -1368,11 +1373,8 @@
1368
1373
  };
1369
1374
  return CatalogConnectorAdapterService;
1370
1375
  }());
1371
- CatalogConnectorAdapterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogConnectorAdapterService_Factory() { return new CatalogConnectorAdapterService(); }, token: CatalogConnectorAdapterService, providedIn: "root" });
1372
1376
  CatalogConnectorAdapterService.decorators = [
1373
- { type: i0.Injectable, args: [{
1374
- providedIn: "root"
1375
- },] }
1377
+ { type: i0.Injectable }
1376
1378
  ];
1377
1379
 
1378
1380
  // Class represents a value that is to be loaded only once, lazily, by its .loadFunction, despite how many times or how fast its getValue() is called.
@@ -1558,14 +1560,6 @@
1558
1560
  this._selectSingleCache = new Map();
1559
1561
  this._selectSingleParameterizedCache = new Map();
1560
1562
  }
1561
- // constructor(private _transactionService: TransactionService) {
1562
- // this._logoutSub = this._transactionService.logout.subscribe(() => {
1563
- // this._reset();
1564
- // });
1565
- // }
1566
- BusinessObjectCacheManagerService.prototype.ngOnDestroy = function () {
1567
- this._logoutSub.unsubscribe();
1568
- };
1569
1563
  /**
1570
1564
  * Creates and adds a new simple cache item for the given key with the given load function.
1571
1565
  * @param key
@@ -1682,11 +1676,8 @@
1682
1676
  return BusinessObjectCacheManagerService;
1683
1677
  }());
1684
1678
  BusinessObjectCacheManagerService._NullBoId = -1;
1685
- BusinessObjectCacheManagerService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function BusinessObjectCacheManagerService_Factory() { return new BusinessObjectCacheManagerService(); }, token: BusinessObjectCacheManagerService, providedIn: "root" });
1686
1679
  BusinessObjectCacheManagerService.decorators = [
1687
- { type: i0.Injectable, args: [{
1688
- providedIn: "root"
1689
- },] }
1680
+ { type: i0.Injectable }
1690
1681
  ];
1691
1682
 
1692
1683
  var SelectSingleCacheService = /** @class */ (function () {
@@ -1706,11 +1697,8 @@
1706
1697
  };
1707
1698
  return SelectSingleCacheService;
1708
1699
  }());
1709
- SelectSingleCacheService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SelectSingleCacheService_Factory() { return new SelectSingleCacheService(i0__namespace.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectSingleCacheService, providedIn: "root" });
1710
1700
  SelectSingleCacheService.decorators = [
1711
- { type: i0.Injectable, args: [{
1712
- providedIn: "root"
1713
- },] }
1701
+ { type: i0.Injectable }
1714
1702
  ];
1715
1703
  SelectSingleCacheService.ctorParameters = function () { return [
1716
1704
  { type: BusinessObjectCacheManagerService }
@@ -1740,11 +1728,8 @@
1740
1728
  return SelectMultipleCacheService;
1741
1729
  }());
1742
1730
  SelectMultipleCacheService._NullCache = new CacheField();
1743
- SelectMultipleCacheService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SelectMultipleCacheService_Factory() { return new SelectMultipleCacheService(i0__namespace.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectMultipleCacheService, providedIn: "root" });
1744
1731
  SelectMultipleCacheService.decorators = [
1745
- { type: i0.Injectable, args: [{
1746
- providedIn: "root"
1747
- },] }
1732
+ { type: i0.Injectable }
1748
1733
  ];
1749
1734
  SelectMultipleCacheService.ctorParameters = function () { return [
1750
1735
  { type: BusinessObjectCacheManagerService }
@@ -1784,11 +1769,8 @@
1784
1769
  };
1785
1770
  return SelectMultipleParameterizedCacheService;
1786
1771
  }());
1787
- SelectMultipleParameterizedCacheService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SelectMultipleParameterizedCacheService_Factory() { return new SelectMultipleParameterizedCacheService(i0__namespace.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectMultipleParameterizedCacheService, providedIn: "root" });
1788
1772
  SelectMultipleParameterizedCacheService.decorators = [
1789
- { type: i0.Injectable, args: [{
1790
- providedIn: "root"
1791
- },] }
1773
+ { type: i0.Injectable }
1792
1774
  ];
1793
1775
  SelectMultipleParameterizedCacheService.ctorParameters = function () { return [
1794
1776
  { type: BusinessObjectCacheManagerService }
@@ -1828,11 +1810,8 @@
1828
1810
  };
1829
1811
  return SelectSingleParameterizedCacheService;
1830
1812
  }());
1831
- SelectSingleParameterizedCacheService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SelectSingleParameterizedCacheService_Factory() { return new SelectSingleParameterizedCacheService(i0__namespace.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectSingleParameterizedCacheService, providedIn: "root" });
1832
1813
  SelectSingleParameterizedCacheService.decorators = [
1833
- { type: i0.Injectable, args: [{
1834
- providedIn: "root"
1835
- },] }
1814
+ { type: i0.Injectable }
1836
1815
  ];
1837
1816
  SelectSingleParameterizedCacheService.ctorParameters = function () { return [
1838
1817
  { type: BusinessObjectCacheManagerService }
@@ -1859,6 +1838,13 @@
1859
1838
  });
1860
1839
  });
1861
1840
  };
1841
+ CatalogConnectorService.prototype.getCatalogBundleSettings = function (url, upId) {
1842
+ return __awaiter(this, void 0, void 0, function () {
1843
+ return __generator(this, function (_a) {
1844
+ return [2 /*return*/, this._adapterService.getCatalogBundleSettings(url, upId)];
1845
+ });
1846
+ });
1847
+ };
1862
1848
  CatalogConnectorService.prototype.getArticlesForCatalog = function (params, showLoader) {
1863
1849
  if (showLoader === void 0) { showLoader = true; }
1864
1850
  return __awaiter(this, void 0, void 0, function () {
@@ -2050,11 +2036,8 @@
2050
2036
  };
2051
2037
  return CatalogConnectorService;
2052
2038
  }());
2053
- CatalogConnectorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogConnectorService_Factory() { return new CatalogConnectorService(i0__namespace.ɵɵinject(CatalogConnectorAdapterService), i0__namespace.ɵɵinject(SelectSingleCacheService), i0__namespace.ɵɵinject(SelectMultipleCacheService), i0__namespace.ɵɵinject(SelectMultipleParameterizedCacheService), i0__namespace.ɵɵinject(SelectSingleParameterizedCacheService)); }, token: CatalogConnectorService, providedIn: "root" });
2054
2039
  CatalogConnectorService.decorators = [
2055
- { type: i0.Injectable, args: [{
2056
- providedIn: 'root'
2057
- },] }
2040
+ { type: i0.Injectable }
2058
2041
  ];
2059
2042
  CatalogConnectorService.ctorParameters = function () { return [
2060
2043
  { type: CatalogConnectorAdapterService },
@@ -2189,11 +2172,8 @@
2189
2172
  });
2190
2173
  return CatalogOptionsService;
2191
2174
  }());
2192
- CatalogOptionsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogOptionsService_Factory() { return new CatalogOptionsService(i0__namespace.ɵɵinject(DictionaryService), i0__namespace.ɵɵinject(CatalogSettingsService)); }, token: CatalogOptionsService, providedIn: "root" });
2193
2175
  CatalogOptionsService.decorators = [
2194
- { type: i0.Injectable, args: [{
2195
- providedIn: 'root'
2196
- },] }
2176
+ { type: i0.Injectable }
2197
2177
  ];
2198
2178
  CatalogOptionsService.ctorParameters = function () { return [
2199
2179
  { type: DictionaryService },
@@ -2314,11 +2294,8 @@
2314
2294
  };
2315
2295
  return CatalogImageService;
2316
2296
  }());
2317
- CatalogImageService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogImageService_Factory() { return new CatalogImageService(i0__namespace.ɵɵinject(CatalogConnectorService)); }, token: CatalogImageService, providedIn: "root" });
2318
2297
  CatalogImageService.decorators = [
2319
- { type: i0.Injectable, args: [{
2320
- providedIn: 'root'
2321
- },] }
2298
+ { type: i0.Injectable }
2322
2299
  ];
2323
2300
  CatalogImageService.ctorParameters = function () { return [
2324
2301
  { type: CatalogConnectorService }
@@ -2450,27 +2427,28 @@
2450
2427
  };
2451
2428
  CatalogFilterService.prototype.createFilterSelectionsCollection = function (collection, id, description) {
2452
2429
  var returnCollection = [];
2453
- collection.forEach(function (collectionObject) {
2454
- var model = new corecomponents_v12.FilterItemViewmodel(collectionObject[id], collectionObject[description], false);
2455
- returnCollection.push(model);
2456
- });
2430
+ if (collection && Array.isArray(collection)) {
2431
+ collection.forEach(function (collectionObject) {
2432
+ var model = new corecomponents_v12.FilterItemViewmodel(collectionObject[id], collectionObject[description], false);
2433
+ returnCollection.push(model);
2434
+ });
2435
+ }
2457
2436
  return returnCollection;
2458
2437
  };
2459
2438
  CatalogFilterService.prototype.createFilterSelectionsSupplierCollection = function (collection) {
2460
2439
  var returnCollection = [];
2461
- collection.forEach(function (collectionObject) {
2462
- var model = new corecomponents_v12.FilterItemViewmodel(collectionObject.relationNr, collectionObject.displayName, false);
2463
- returnCollection.push(model);
2464
- });
2440
+ if (collection && Array.isArray(collection)) {
2441
+ collection.forEach(function (collectionObject) {
2442
+ var model = new corecomponents_v12.FilterItemViewmodel(collectionObject.relationNr, collectionObject.displayName, false);
2443
+ returnCollection.push(model);
2444
+ });
2445
+ }
2465
2446
  return returnCollection;
2466
2447
  };
2467
2448
  return CatalogFilterService;
2468
2449
  }());
2469
- CatalogFilterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogFilterService_Factory() { return new CatalogFilterService(i0__namespace.ɵɵinject(CatalogConnectorService)); }, token: CatalogFilterService, providedIn: "root" });
2470
2450
  CatalogFilterService.decorators = [
2471
- { type: i0.Injectable, args: [{
2472
- providedIn: 'root'
2473
- },] }
2451
+ { type: i0.Injectable }
2474
2452
  ];
2475
2453
  CatalogFilterService.ctorParameters = function () { return [
2476
2454
  { type: CatalogConnectorService }
@@ -2664,11 +2642,8 @@
2664
2642
  };
2665
2643
  return CatalogSearchService;
2666
2644
  }());
2667
- CatalogSearchService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogSearchService_Factory() { return new CatalogSearchService(i0__namespace.ɵɵinject(CatalogFilterService), i0__namespace.ɵɵinject(CatalogConnectorService), i0__namespace.ɵɵinject(CatalogSettingsService), i0__namespace.ɵɵinject(CatalogOptionsService)); }, token: CatalogSearchService, providedIn: "root" });
2668
2645
  CatalogSearchService.decorators = [
2669
- { type: i0.Injectable, args: [{
2670
- providedIn: "root"
2671
- },] }
2646
+ { type: i0.Injectable }
2672
2647
  ];
2673
2648
  CatalogSearchService.ctorParameters = function () { return [
2674
2649
  { type: CatalogFilterService },
@@ -2678,17 +2653,17 @@
2678
2653
  ]; };
2679
2654
 
2680
2655
  var CatalogService = /** @class */ (function () {
2681
- function CatalogService(connector, connectorAdapter, settingsService, optionsService, _imageService, _settingsService, _filterService, _catalogSearchService) {
2656
+ function CatalogService(connector, connectorAdapter, settingsService, optionsService, _imageService, _filterService, _catalogSearchService) {
2682
2657
  var _this = this;
2683
2658
  this.connector = connector;
2684
2659
  this.connectorAdapter = connectorAdapter;
2685
2660
  this.settingsService = settingsService;
2686
2661
  this.optionsService = optionsService;
2687
2662
  this._imageService = _imageService;
2688
- this._settingsService = _settingsService;
2689
2663
  this._filterService = _filterService;
2690
2664
  this._catalogSearchService = _catalogSearchService;
2691
2665
  this.externalSourceChanged = new rxjs.BehaviorSubject(undefined);
2666
+ this.controllerInitialized = new rxjs.BehaviorSubject(undefined);
2692
2667
  this.articleSearchFilters = {};
2693
2668
  this.articlesOnShowcase = [];
2694
2669
  this.showcaseTitle = 'CATALOG';
@@ -2715,8 +2690,9 @@
2715
2690
  return __generator(this, function (_a) {
2716
2691
  if (initialized) {
2717
2692
  this._controllerInitialized = true;
2693
+ this.controllerInitialized.next(this._controllerInitialized);
2718
2694
  // this.ensureDataListsLoaded();
2719
- this.articlesPerPage = this._settingsService.settings.options.maxItemsPerPage;
2695
+ this.articlesPerPage = this.settingsService.settings.options.maxItemsPerPage;
2720
2696
  // if (this._settingsService.settings.options.searchOnStart) {
2721
2697
  // this._catalogSearchService.searchArticles();
2722
2698
  // }
@@ -2814,7 +2790,7 @@
2814
2790
  return __awaiter(this, void 0, void 0, function () {
2815
2791
  return __generator(this, function (_a) {
2816
2792
  switch (_a.label) {
2817
- case 0: return [4 /*yield*/, this.settingsService.initializeSettings(settings)];
2793
+ case 0: return [4 /*yield*/, this.settingsService.createSettingsFromObject(settings)];
2818
2794
  case 1:
2819
2795
  _a.sent();
2820
2796
  return [4 /*yield*/, this.connector.initConnector(this.settingsService.settings, forceReload)];
@@ -2825,6 +2801,19 @@
2825
2801
  });
2826
2802
  });
2827
2803
  };
2804
+ CatalogService.prototype.initConnector = function (settings, forceReload) {
2805
+ if (forceReload === void 0) { forceReload = false; }
2806
+ return __awaiter(this, void 0, void 0, function () {
2807
+ return __generator(this, function (_a) {
2808
+ switch (_a.label) {
2809
+ case 0: return [4 /*yield*/, this.connector.initConnector(this.settingsService.settings, forceReload)];
2810
+ case 1:
2811
+ _a.sent();
2812
+ return [2 /*return*/];
2813
+ }
2814
+ });
2815
+ });
2816
+ };
2828
2817
  CatalogService.prototype.getCategories = function () {
2829
2818
  return __awaiter(this, void 0, void 0, function () {
2830
2819
  var categories, i, articleCategory;
@@ -2862,17 +2851,20 @@
2862
2851
  });
2863
2852
  });
2864
2853
  };
2854
+ CatalogService.prototype.addWebSessionTransactionLine = function (sku, quantity) {
2855
+ this.connectorAdapter.addWebSessionTransactionLine(sku, quantity);
2856
+ };
2857
+ CatalogService.prototype.getWebTransaction = function () {
2858
+ this.connectorAdapter.getWebTransaction();
2859
+ };
2865
2860
  CatalogService.prototype.reset = function () {
2866
2861
  this.showCatOrTurnoverGroupArticles = false;
2867
2862
  this.showExternalSource = false;
2868
2863
  };
2869
2864
  return CatalogService;
2870
2865
  }());
2871
- CatalogService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogService_Factory() { return new CatalogService(i0__namespace.ɵɵinject(CatalogConnectorService), i0__namespace.ɵɵinject(CatalogConnectorAdapterService), i0__namespace.ɵɵinject(CatalogSettingsService), i0__namespace.ɵɵinject(CatalogOptionsService), i0__namespace.ɵɵinject(CatalogImageService), i0__namespace.ɵɵinject(CatalogSettingsService), i0__namespace.ɵɵinject(CatalogFilterService), i0__namespace.ɵɵinject(CatalogSearchService)); }, token: CatalogService, providedIn: "root" });
2872
2866
  CatalogService.decorators = [
2873
- { type: i0.Injectable, args: [{
2874
- providedIn: 'root'
2875
- },] }
2867
+ { type: i0.Injectable }
2876
2868
  ];
2877
2869
  CatalogService.ctorParameters = function () { return [
2878
2870
  { type: CatalogConnectorService },
@@ -2880,27 +2872,36 @@
2880
2872
  { type: CatalogSettingsService },
2881
2873
  { type: CatalogOptionsService },
2882
2874
  { type: CatalogImageService },
2883
- { type: CatalogSettingsService },
2884
2875
  { type: CatalogFilterService },
2885
2876
  { type: CatalogSearchService }
2886
2877
  ]; };
2887
2878
 
2888
2879
  var CatalogCategoriesComponent = /** @class */ (function () {
2889
- function CatalogCategoriesComponent(_catalogService) {
2880
+ function CatalogCategoriesComponent(_catalogService, _adapterService) {
2890
2881
  this._catalogService = _catalogService;
2882
+ this._adapterService = _adapterService;
2891
2883
  this.showTurnoverGroups = true;
2892
2884
  this.categoryClick = new i0.EventEmitter();
2893
2885
  this.turnoverGroupClick = new i0.EventEmitter();
2894
2886
  this.categories = [];
2895
2887
  this.turnoverGroups = [];
2888
+ this._subs = [];
2896
2889
  }
2897
2890
  CatalogCategoriesComponent.prototype.showClass = function () {
2898
2891
  return true;
2899
2892
  };
2900
2893
  CatalogCategoriesComponent.prototype.ngOnInit = function () {
2894
+ var _this = this;
2901
2895
  this.categories.length = 0;
2902
2896
  this.turnoverGroups.length = 0;
2903
- this.getCategories();
2897
+ this._subs.push(this._adapterService.controllerInitialized.subscribe(function (initialized) {
2898
+ if (initialized) {
2899
+ _this.getCategories();
2900
+ }
2901
+ }));
2902
+ };
2903
+ CatalogCategoriesComponent.prototype.ngOnDestroy = function () {
2904
+ this._subs.forEach(function (s) { return s.unsubscribe(); });
2904
2905
  };
2905
2906
  CatalogCategoriesComponent.prototype.getCategories = function () {
2906
2907
  return __awaiter(this, void 0, void 0, function () {
@@ -2937,17 +2938,19 @@
2937
2938
  CatalogCategoriesComponent.decorators = [
2938
2939
  { type: i0.Component, args: [{
2939
2940
  selector: 'co-catalog-categories',
2940
- template: "\n <div class=\"catalog-categories-wrapper\">\n <ng-container *ngIf=\"categories && categories.length > 0\">\n <div class=\"categories-wrapper\">\n <div class=\"category-item\" *ngFor=\"let category of categories\" (click)=\"handleCategoryClick($event, category.category)\">\n <co-image [source]=\"category.imageData\"></co-image>\n <div class=\"category-description\">\n <co-responsive-text [text]=\"category.category | localize\"></co-responsive-text>\n </div>\n<!--\n <span [textContent]=\"category.category | localize\"></span>\n-->\n </div>\n </div>\n <ng-container *ngIf=\"showTurnoverGroups\">\n <div class=\"turnovergroup-wrapper\" *ngFor=\"let category of categories\">\n <div class=\"turnovergroup-items-wrapper\" *ngIf=\"category.turnoverGroups && category.turnoverGroups.length > 0\">\n <div class=\"category-title\" [textContent]=\"category.category | localize\"></div>\n <div class=\"turnovergroup-item-wrapper\">\n <div class=\"turnovergroup-item\" *ngFor=\"let turnoverGroup of category.turnoverGroups\"\n (click)=\"handleTurnoverGroupClick($event, turnoverGroup.turnovergroupNr)\">\n <co-image [source]=\"turnoverGroup.imageData\"></co-image>\n <div class=\"turnovergroup-description\" [textContent]=\"turnoverGroup.description | localize\"></div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n ",
2941
+ template: "\n <div class=\"catalog-categories-wrapper\" [overlay]=\"parentForOverlay\">\n <ng-container *ngIf=\"categories && categories.length > 0\">\n <div class=\"categories-wrapper\">\n <div class=\"category-item\" *ngFor=\"let category of categories\" (click)=\"handleCategoryClick($event, category.category)\">\n <co-image [source]=\"category.imageData\"></co-image>\n <div class=\"category-description\">\n <co-responsive-text [text]=\"category.category | localize\"></co-responsive-text>\n </div>\n<!--\n <span [textContent]=\"category.category | localize\"></span>\n-->\n </div>\n </div>\n <ng-container *ngIf=\"showTurnoverGroups\">\n <div class=\"turnovergroup-wrapper\" *ngFor=\"let category of categories\">\n <div class=\"turnovergroup-items-wrapper\" *ngIf=\"category.turnoverGroups && category.turnoverGroups.length > 0\">\n <div class=\"category-title\" [textContent]=\"category.category | localize\"></div>\n <div class=\"turnovergroup-item-wrapper\">\n <div class=\"turnovergroup-item\" *ngFor=\"let turnoverGroup of category.turnoverGroups\"\n (click)=\"handleTurnoverGroupClick($event, turnoverGroup.turnovergroupNr)\">\n <co-image [source]=\"turnoverGroup.imageData\"></co-image>\n <div class=\"turnovergroup-description\" [textContent]=\"turnoverGroup.description | localize\"></div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n ",
2941
2942
  encapsulation: i0.ViewEncapsulation.None
2942
2943
  },] }
2943
2944
  ];
2944
2945
  CatalogCategoriesComponent.ctorParameters = function () { return [
2945
- { type: CatalogService }
2946
+ { type: CatalogService },
2947
+ { type: CatalogConnectorAdapterService }
2946
2948
  ]; };
2947
2949
  CatalogCategoriesComponent.propDecorators = {
2948
2950
  showTurnoverGroups: [{ type: i0.Input }],
2949
2951
  categoryClick: [{ type: i0.Output }],
2950
2952
  turnoverGroupClick: [{ type: i0.Output }],
2953
+ parentForOverlay: [{ type: i0.Input }],
2951
2954
  showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-categories',] }]
2952
2955
  };
2953
2956
 
@@ -2958,7 +2961,9 @@
2958
2961
  IconEnum["Ar"] = "ar";
2959
2962
  IconEnum["ArrowScrollDown"] = "arrow_scroll_down";
2960
2963
  IconEnum["ArrowScrollLeft"] = "arrow_scroll_left";
2964
+ IconEnum["BarsFilter"] = "bars_filter";
2961
2965
  IconEnum["Camera"] = "camera";
2966
+ IconEnum["Cancel"] = "cancel";
2962
2967
  IconEnum["Check"] = "check";
2963
2968
  IconEnum["Close"] = "close";
2964
2969
  IconEnum["Eye"] = "eye";
@@ -2974,6 +2979,7 @@
2974
2979
  IconEnum["ThreeD"] = "three_d";
2975
2980
  IconEnum["TileView"] = "tile_view";
2976
2981
  IconEnum["Truck"] = "truck";
2982
+ IconEnum["WebCatalog"] = "web_catalog";
2977
2983
  })(IconEnum || (IconEnum = {}));
2978
2984
 
2979
2985
  /** AUTO GENERATED FILE. DO NOT CHANGE.. **/
@@ -2982,7 +2988,9 @@
2982
2988
  "ar": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect width=\"50\" height=\"50\" fill=\"none\"/><rect x=\"8\" y=\"20.98\" width=\"4.27\" height=\"11.1\" rx=\"0.5\" ry=\"0.5\" fill=\"#484f60\"/><rect x=\"38.73\" y=\"20.98\" width=\"4.27\" height=\"11.1\" rx=\"0.5\" ry=\"0.5\" fill=\"#484f60\"/><rect x=\"13.12\" y=\"15.86\" width=\"11.95\" height=\"8.54\" rx=\"0.5\" ry=\"0.5\" fill=\"#484f60\"/><rect x=\"13.12\" y=\"25.25\" width=\"11.95\" height=\"3.41\" rx=\"0.5\" ry=\"0.5\" fill=\"#484f60\"/><rect x=\"25.93\" y=\"15.86\" width=\"11.95\" height=\"8.54\" rx=\"0.5\" ry=\"0.5\" fill=\"#484f60\"/><rect x=\"25.93\" y=\"25.25\" width=\"11.95\" height=\"3.41\" rx=\"0.5\" ry=\"0.5\" fill=\"#484f60\"/></svg>",
2983
2989
  "arrow_scroll_down": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\" version=\"1.1\" sodipodi:docname=\"arrow_scroll_left.svg\" inkscape:version=\"0.92.4 (5da689c313, 2019-01-14)\"><metadata ><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1\" objecttolerance=\"10\" gridtolerance=\"10\" guidetolerance=\"10\" inkscape:pageopacity=\"0\" inkscape:pageshadow=\"2\" inkscape:window-width=\"1920\" inkscape:window-height=\"1017\" showgr inkscape:zoom=\"4.72\" inkscape:cx=\"25\" inkscape:cy=\"25\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"svg4\" /><path d=\"m 37.771942,16.289849 a 2.37,2.37 0 0 1 1.67,4 l -12.64,12.68 a 2.37,2.37 0 0 1 -3.34,0 l -12.63,-12.64 a 2.36,2.36 0 1 1 3.3,-3.36 l 11,11 11,-11 a 2.36,2.36 0 0 1 1.64,-0.68 z\" inkscape:connector-curvature=\"0\" style=\"fill:#484f60\" /></svg>",
2984
2990
  "arrow_scroll_left": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M33.68,37.64a2.37,2.37,0,0,1-4,1.67L17,26.67a2.37,2.37,0,0,1,0-3.34L29.64,10.7A2.36,2.36,0,1,1,33,14L22,25,33,36A2.36,2.36,0,0,1,33.68,37.64Z\" fill=\"#484f60\"/></svg>",
2991
+ "bars_filter": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path fill=\"#494f61\" d=\"M264 392H183.1C170.8 392 160 402.8 160 415.1C160 429.2 170.8 440 183.1 440h80C277.2 440 288 429.2 288 416C288 402.8 277.2 392 264 392zM424 72H23.1C10.8 72 0 82.8 0 95.1S10.8 120 23.1 120H424c13.2 0 24-10.8 24-23.1S437.2 72 424 72zM360 232H87.1C74.8 232 64 242.8 64 255.1C64 269.2 74.8 280 87.1 280h272C373.2 280 384 269.2 384 256C384 242.8 373.2 232 360 232z\"/></svg>",
2985
2992
  "camera": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M35,18l-3-4H22l-3,4H16V36H40V18ZM24,16h6v2H24Zm2.5,18A6.5,6.5,0,1,1,33,27.5,6.51,6.51,0,0,1,26.5,34ZM38,22H36V20h2Z\" fill=\"#484f60\"/><rect x=\"10\" y=\"18\" width=\"5\" height=\"18\" fill=\"#484f60\"/><rect x=\"11\" y=\"15\" width=\"3\" height=\"2\" fill=\"#484f60\"/><path d=\"M26.5,32A4.5,4.5,0,1,1,31,27.5,4.51,4.51,0,0,1,26.5,32Z\" fill=\"#484f60\"/></svg>",
2993
+ "cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><polygon points=\"26 25.16 20.45 25.16 4 4.84 9.55 4.84 26 25.16\" fill=\"#484f60\"/><polygon points=\"4 25.16 9.55 25.16 26 4.84 20.45 4.84 4 25.16\" fill=\"#484f60\"/></g></g></svg>",
2986
2994
  "check": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\" version=\"1.1\" sodipodi:docname=\"check.svg\" inkscape:version=\"0.92.4 (5da689c313, 2019-01-14)\"><metadata ><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1\" objecttolerance=\"10\" gridtolerance=\"10\" guidetolerance=\"10\" inkscape:pageopacity=\"0\" inkscape:pageshadow=\"2\" inkscape:window-width=\"1920\" inkscape:window-height=\"1017\" showgr inkscape:zoom=\"9.44\" inkscape:cx=\"48.888969\" inkscape:cy=\"22.682813\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"svg12\" /><path inkscape:connector-curvature=\"0\" d=\"m 11.438914,26.621633 c -0.316818,0.369021 -0.470979,0.838793 -0.433349,1.324347 0.03763,0.485552 0.26098,0.927404 0.631209,1.243014 l 8.986229,7.703294 c 0.333812,0.285263 0.74774,0.438212 1.182303,0.438212 0.05341,0 0.108033,-0.0025 0.162657,-0.0073 0.491616,-0.0437 0.934676,-0.277978 1.247852,-0.657923 L 38.585752,17.958158 c 0.308322,-0.376304 0.452771,-0.849718 0.40543,-1.334057 -0.04856,-0.484338 -0.280402,-0.921336 -0.656701,-1.230877 l -2.813733,-2.311231 c -0.77566,-0.636074 -1.923974,-0.524396 -2.562466,0.251275 L 21.129184,27.731121 16.375695,23.658547 c -0.762306,-0.65064 -1.913049,-0.564455 -2.56732,0.197864 z\" style=\"fill:#3E7EFF;fill-opacity:1;stroke-width:1.21387255\" /></svg>",
2987
2995
  "close": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 29.258688 30.000004\" version=\"1.1\" sodipodi:docname=\"close.svg\" inkscape:version=\"0.92.4 (5da689c313, 2019-01-14)\" width=\"29.258688\" height=\"30.000004\"><metadata ><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1\" objecttolerance=\"10\" gridtolerance=\"10\" guidetolerance=\"10\" inkscape:pageopacity=\"0\" inkscape:pageshadow=\"2\" inkscape:window-width=\"1920\" inkscape:window-height=\"1017\" showgr inkscape:zoom=\"26.700352\" inkscape:cx=\"19.112\" inkscape:cy=\"15.500206\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"svg4\" fit-margin-top=\"0\" fit-margin-left=\"0\" fit-margin-right=\"0\" fit-margin-bottom=\"0\" /><path d=\"M 27.002162,0.10711058 A 2.3051231,2.3051231 0 0 1 28.626448,3.9976138 L 16.332458,16.330509 a 2.3051231,2.3051231 0 0 1 -3.248571,0 L 0.79962417,4.0365189 A 2.2953969,2.2953969 0 1 1 4.0092893,0.76849618 L 14.708173,11.46738 25.407057,0.76849618 a 2.2953969,2.2953969 0 0 1 1.595105,-0.6613856 z\" inkscape:connector-curvature=\"0\" style=\"fill:#484f60;stroke-width:0.97262579\" /><path d=\"m 27.002162,29.892891 a 2.3051231,2.3051231 0 0 0 1.624285,-3.890503 L 16.332458,13.669493 a 2.3051231,2.3051231 0 0 0 -3.248571,0 L 0.79962424,25.963483 A 2.2953968,2.2953968 0 1 0 4.0092893,29.231505 L 14.708173,18.532622 25.407057,29.231505 a 2.2953968,2.2953968 0 0 0 1.595105,0.661386 z\" inkscape:connector-curvature=\"0\" style=\"fill:#484f60;stroke-width:0.97262579\" /></svg>",
2988
2996
  "eye": "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50.000001 50.000001\" sodipodi:docname=\"eye.svg\" width=\"50\" height=\"50\" inkscape:version=\"0.92.4 (5da689c313, 2019-01-14)\"><metadata ><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1\" objecttolerance=\"10\" gridtolerance=\"10\" guidetolerance=\"10\" inkscape:pageopacity=\"0\" inkscape:pageshadow=\"2\" inkscape:window-width=\"1920\" inkscape:window-height=\"1017\" showgr inkscape:zoom=\"1.8437536\" inkscape:cx=\"57.260141\" inkscape:cy=\"-26.955722\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"Capa_1\" /><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path d=\"M 508.745,246.041 C 504.171,239.784 395.188,92.835 255.997,92.835 c -139.191,0 -248.179,146.949 -252.748,153.2 -4.332,5.936 -4.332,13.987 0,19.923 4.569,6.257 113.557,153.206 252.748,153.206 139.191,0 248.174,-146.95 252.748,-153.201 4.338,-5.935 4.338,-13.992 0,-19.922 z M 255.997,385.406 c -102.529,0 -191.33,-97.533 -217.617,-129.418 26.253,-31.913 114.868,-129.395 217.617,-129.395 102.524,0 191.319,97.516 217.617,129.418 -26.253,31.912 -114.868,129.395 -217.617,129.395 z\" inkscape:connector-curvature=\"0\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path d=\"m 255.997,154.725 c -55.842,0 -101.275,45.433 -101.275,101.275 0,55.842 45.433,101.275 101.275,101.275 55.842,0 101.275,-45.433 101.275,-101.275 0,-55.842 -45.433,-101.275 -101.275,-101.275 z m 0,168.791 c -37.23,0 -67.516,-30.287 -67.516,-67.516 0,-37.229 30.287,-67.516 67.516,-67.516 37.229,0 67.516,30.287 67.516,67.516 0,37.229 -30.286,67.516 -67.516,67.516 z\" inkscape:connector-curvature=\"0\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g></svg>",
@@ -2997,7 +3005,8 @@
2997
3005
  "sync_alt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z\"/></svg>",
2998
3006
  "three_d": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M16.08,30.77a4.85,4.85,0,0,1-3-.8,4,4,0,0,0-2.49-.15,6.21,6.21,0,0,0,2.53,1.09,12.84,12.84,0,0,0,2.93-.14\" fill=\"#484f60\" opacity=\"0.5\"/><path d=\"M14.27,19.68A4.71,4.71,0,0,0,11,20.78l2,.14c.31,0,1.2-.69,1.55-.81a3.88,3.88,0,0,1,1.65-.24l-1.94-.19\" fill=\"#484f60\" opacity=\"0.5\"/><path d=\"M21.64,28.79a4.13,4.13,0,0,0-3.1-4c.89-.7,1.77-1.09,2.26-2.21a5.12,5.12,0,0,0,.35-1.9c-.13-3.24-2.64-3.73-5.29-4.15a4,4,0,0,1,3.44,3.7,4.61,4.61,0,0,1-.83,3.12,9.7,9.7,0,0,1-1.82,1.43,4.3,4.3,0,0,1,3.17,4.34,4.9,4.9,0,0,1-4.21,5c2.09-.34,4.37-.64,5.46-2.69a5,5,0,0,0,.57-2.58\" fill=\"#484f60\" opacity=\"0.5\"/><path d=\"M28.44,18.88l.38-.07.48-.06.57,0h.75l.36,0,.35.05c-.2,0-.42-.08-1.57-.25l-.36-.05-.37,0h-.77l-.59,0-.49.07a3.08,3.08,0,0,0-.39.07l-.3.07V31.38H27l.13,0h1.63l.21,0h.2l.2,0h.05l1.55-.24h0l-.34.05-.33,0H29.12l-.36,0-.33,0a1.15,1.15,0,0,1-.28-.06V19Z\" fill=\"#484f60\" opacity=\"0.5\"/><path d=\"M40,24.34a9,9,0,0,0-3-7.1,11.06,11.06,0,0,0-4.47-1.86c4.38,1.13,6.23,5.31,6.13,9.54-.12,4.5-2.27,8.55-6.86,9.66,2.59-.63,5-1.41,6.52-3.78A12,12,0,0,0,40,24.34\" fill=\"#484f60\" opacity=\"0.5\"/><path d=\"M35.38,16.71A7.32,7.32,0,0,1,36.74,18a7.82,7.82,0,0,1,1,1.73,10.32,10.32,0,0,1,.68,2.16,13.86,13.86,0,0,1,.23,2.59,15,15,0,0,1-.25,2.78,11.39,11.39,0,0,1-.68,2.31,9.34,9.34,0,0,1-1,1.85,8.23,8.23,0,0,1-1.28,1.4,7.76,7.76,0,0,1-1.7,1.07,9.07,9.07,0,0,1-2,.69,13.36,13.36,0,0,1-2.26.33,18.25,18.25,0,0,1-2.45,0c-.5,0-1-.08-1.39-.12l-1.17-.14c-.36,0-.68-.11-1-.16l-.77-.15V15.86c.34-.09.71-.18,1.09-.26s.81-.15,1.24-.21.88-.12,1.34-.17.95-.1,1.44-.13a20.57,20.57,0,0,1,2.33,0,12,12,0,0,1,2,.24,8.24,8.24,0,0,1,1.72.55A7.1,7.1,0,0,1,35.38,16.71ZM27.92,31.53a6.53,6.53,0,0,0,2.46-.32A4.81,4.81,0,0,0,32.32,30a5.82,5.82,0,0,0,1.27-2.18A10.11,10.11,0,0,0,34,24.67a8.65,8.65,0,0,0-.42-2.85,4.94,4.94,0,0,0-1.18-2,4.45,4.45,0,0,0-1.83-1.11,6.55,6.55,0,0,0-2.35-.28l-.59,0-.49.07a3.08,3.08,0,0,0-.39.07l-.3.07V31.38a2.11,2.11,0,0,0,.29.06l.34,0,.37,0,.36,0h.07\" fill=\"#484f60\"/><path d=\"M14.57,16.47a5.49,5.49,0,0,1,2,.22,3.89,3.89,0,0,1,1.49.84A3.66,3.66,0,0,1,19,18.89a4.29,4.29,0,0,1,.33,1.7,5.29,5.29,0,0,1-.17,1.34,4.29,4.29,0,0,1-.5,1.16,4.17,4.17,0,0,1-.84.94,4.88,4.88,0,0,1-1.16.69v.05a3.7,3.7,0,0,1,1.22.5,4,4,0,0,1,1,.92,4.61,4.61,0,0,1,.69,1.3,5.24,5.24,0,0,1,.25,1.62,5.36,5.36,0,0,1-.42,2.15,4.44,4.44,0,0,1-1.2,1.64,4.84,4.84,0,0,1-1.86,1,6.78,6.78,0,0,1-2.39.23,7.69,7.69,0,0,1-2.36-.52,6.89,6.89,0,0,1-.9-.42,4.36,4.36,0,0,1-.69-.47l.62-2.9a4.12,4.12,0,0,0,.53.34,6.21,6.21,0,0,0,.73.36,5.69,5.69,0,0,0,.88.31,5.19,5.19,0,0,0,1,.15,3.11,3.11,0,0,0,1.1-.13,2,2,0,0,0,.8-.45,1.93,1.93,0,0,0,.49-.71,2.35,2.35,0,0,0,.17-.89A2.48,2.48,0,0,0,16,27.67a2.23,2.23,0,0,0-.63-.79,2.9,2.9,0,0,0-.89-.46,3.5,3.5,0,0,0-1-.15H12.2V23.44l1.23,0a3.44,3.44,0,0,0,.83-.11,2.83,2.83,0,0,0,.79-.36,2,2,0,0,0,.6-.62,2,2,0,0,0,.23-.94,1.8,1.8,0,0,0-.13-.71,1.36,1.36,0,0,0-.38-.56,1.58,1.58,0,0,0-.64-.35,2.79,2.79,0,0,0-.9-.1,4.07,4.07,0,0,0-.84.13c-.27.08-.53.18-.78.28a6.56,6.56,0,0,0-1.17.7L10.42,18a5,5,0,0,1,.72-.51,7.82,7.82,0,0,1,2.12-.82A8,8,0,0,1,14.57,16.47Z\" fill=\"#484f60\"/></svg>",
2999
3007
  "tile_view": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><rect x=\"16\" y=\"2.67\" width=\"14\" height=\"7\" fill=\"#484f60\"/><rect y=\"2.67\" width=\"14\" height=\"7\" fill=\"#484f60\"/><rect y=\"11.67\" width=\"14\" height=\"7\" fill=\"#484f60\"/><rect x=\"16\" y=\"11.67\" width=\"14\" height=\"7\" fill=\"#484f60\"/><rect y=\"20.67\" width=\"14\" height=\"7\" fill=\"#484f60\"/><rect x=\"16\" y=\"20.67\" width=\"14\" height=\"7\" fill=\"#484f60\"/></g></g></svg>",
3000
- "truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\" version=\"1.1\" sodipodi:docname=\"truck.svg\" inkscape:version=\"0.92.4 (5da689c313, 2019-01-14)\"><metadata ><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1\" objecttolerance=\"10\" gridtolerance=\"10\" guidetolerance=\"10\" inkscape:pageopacity=\"0\" inkscape:pageshadow=\"2\" inkscape:window-width=\"1920\" inkscape:window-height=\"1017\" showgr inkscape:zoom=\"9.44\" inkscape:cx=\"31.555563\" inkscape:cy=\"21.585628\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"svg8\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"m 119.467,337.067 c -28.237,0 -51.2,22.963 -51.2,51.2 0,28.237 22.963,51.2 51.2,51.2 28.237,0 51.2,-22.963 51.2,-51.2 0,-28.237 -22.964,-51.2 -51.2,-51.2 z m 0,85.333 c -18.825,0 -34.133,-15.309 -34.133,-34.133 0,-18.825 15.309,-34.133 34.133,-34.133 18.824,0 34.133,15.309 34.133,34.133 0,18.824 -15.309,34.133 -34.133,34.133 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"m 409.6,337.067 c -28.237,0 -51.2,22.963 -51.2,51.2 0,28.237 22.963,51.2 51.2,51.2 28.237,0 51.2,-22.963 51.2,-51.2 0,-28.237 -22.963,-51.2 -51.2,-51.2 z m 0,85.333 c -18.825,0 -34.133,-15.309 -34.133,-34.133 0,-18.825 15.309,-34.133 34.133,-34.133 18.825,0 34.133,15.309 34.133,34.133 0,18.824 -15.308,34.133 -34.133,34.133 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"m 510.643,289.784 -76.8,-119.467 c -1.57,-2.441 -4.275,-3.917 -7.177,-3.917 H 332.8 c -4.719,0 -8.533,3.823 -8.533,8.533 v 213.333 c 0,4.719 3.814,8.533 8.533,8.533 h 34.133 v -17.067 h -25.6 V 183.467 h 80.674 l 72.926,113.442 v 82.825 H 452.266 V 396.8 h 51.2 c 4.719,0 8.533,-3.814 8.533,-8.533 V 294.4 c 10e-4,-1.63 -0.468,-3.243 -1.356,-4.616 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"M 375.467,277.333 V 217.6 h 68.267 v -17.067 h -76.8 c -4.719,0 -8.533,3.823 -8.533,8.533 v 76.8 c 0,4.719 3.814,8.533 8.533,8.533 h 128 V 277.332 H 375.467 Z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"M 332.8,106.667 H 8.533 C 3.823,106.667 0,110.49 0,115.2 v 273.067 c 0,4.719 3.823,8.533 8.533,8.533 H 76.8 V 379.733 H 17.067 v -256 h 307.2 v 256 H 162.133 V 396.8 H 332.8 c 4.719,0 8.533,-3.814 8.533,-8.533 V 115.2 c 0,-4.71 -3.814,-8.533 -8.533,-8.533 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"8.533\" y=\"345.60001\" width=\"51.200001\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"179.2\" y=\"345.60001\" width=\"145.067\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"469.33301\" y=\"345.60001\" width=\"34.132999\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"34.132999\" y=\"140.8\" width=\"298.66699\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"110.933\" y=\"379.733\" width=\"17.066999\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"401.06699\" y=\"379.733\" width=\"17.066999\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /></svg>"
3008
+ "truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\" version=\"1.1\" sodipodi:docname=\"truck.svg\" inkscape:version=\"0.92.4 (5da689c313, 2019-01-14)\"><metadata ><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1\" objecttolerance=\"10\" gridtolerance=\"10\" guidetolerance=\"10\" inkscape:pageopacity=\"0\" inkscape:pageshadow=\"2\" inkscape:window-width=\"1920\" inkscape:window-height=\"1017\" showgr inkscape:zoom=\"9.44\" inkscape:cx=\"31.555563\" inkscape:cy=\"21.585628\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"svg8\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"m 119.467,337.067 c -28.237,0 -51.2,22.963 -51.2,51.2 0,28.237 22.963,51.2 51.2,51.2 28.237,0 51.2,-22.963 51.2,-51.2 0,-28.237 -22.964,-51.2 -51.2,-51.2 z m 0,85.333 c -18.825,0 -34.133,-15.309 -34.133,-34.133 0,-18.825 15.309,-34.133 34.133,-34.133 18.824,0 34.133,15.309 34.133,34.133 0,18.824 -15.309,34.133 -34.133,34.133 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"m 409.6,337.067 c -28.237,0 -51.2,22.963 -51.2,51.2 0,28.237 22.963,51.2 51.2,51.2 28.237,0 51.2,-22.963 51.2,-51.2 0,-28.237 -22.963,-51.2 -51.2,-51.2 z m 0,85.333 c -18.825,0 -34.133,-15.309 -34.133,-34.133 0,-18.825 15.309,-34.133 34.133,-34.133 18.825,0 34.133,15.309 34.133,34.133 0,18.824 -15.308,34.133 -34.133,34.133 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"m 510.643,289.784 -76.8,-119.467 c -1.57,-2.441 -4.275,-3.917 -7.177,-3.917 H 332.8 c -4.719,0 -8.533,3.823 -8.533,8.533 v 213.333 c 0,4.719 3.814,8.533 8.533,8.533 h 34.133 v -17.067 h -25.6 V 183.467 h 80.674 l 72.926,113.442 v 82.825 H 452.266 V 396.8 h 51.2 c 4.719,0 8.533,-3.814 8.533,-8.533 V 294.4 c 10e-4,-1.63 -0.468,-3.243 -1.356,-4.616 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"M 375.467,277.333 V 217.6 h 68.267 v -17.067 h -76.8 c -4.719,0 -8.533,3.823 -8.533,8.533 v 76.8 c 0,4.719 3.814,8.533 8.533,8.533 h 128 V 277.332 H 375.467 Z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"M 332.8,106.667 H 8.533 C 3.823,106.667 0,110.49 0,115.2 v 273.067 c 0,4.719 3.823,8.533 8.533,8.533 H 76.8 V 379.733 H 17.067 v -256 h 307.2 v 256 H 162.133 V 396.8 H 332.8 c 4.719,0 8.533,-3.814 8.533,-8.533 V 115.2 c 0,-4.71 -3.814,-8.533 -8.533,-8.533 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"8.533\" y=\"345.60001\" width=\"51.200001\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"179.2\" y=\"345.60001\" width=\"145.067\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"469.33301\" y=\"345.60001\" width=\"34.132999\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"34.132999\" y=\"140.8\" width=\"298.66699\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"110.933\" y=\"379.733\" width=\"17.066999\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"401.06699\" y=\"379.733\" width=\"17.066999\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /></svg>",
3009
+ "web_catalog": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><path d=\"M30,4.2c0-1.66-1.34-3-3-3H10.35V7.65H30v-3.45Z\" fill=\"#484f60\"/><path d=\"M3,1.2C1.34,1.2,0,2.54,0,4.2v3.45H8.85V1.2H3Z\" fill=\"#484f60\"/><path d=\"M0,9.15V25.8c0,1.66,1.34,3,3,3H27c1.66,0,3-1.34,3-3V9.15H0Zm7.2,10.45H3.6v-1.2h3.6v1.2Zm0-3.2H3.6v-1.2h3.6v1.2Zm0-3.2H3.6v-1.2h3.6v1.2Zm7.37,12.3c0,.28-.22,.5-.5,.5h-3c-.28,0-.5-.22-.5-.5v-5c0-.28,.22-.5,.5-.5h3c.28,0,.5,.22,.5,.5v5Zm0-8c0,.28-.22,.5-.5,.5h-3c-.28,0-.5-.22-.5-.5v-5c0-.28,.22-.5,.5-.5h3c.28,0,.5,.22,.5,.5v5Zm6,8c0,.28-.22,.5-.5,.5h-3c-.28,0-.5-.22-.5-.5v-5c0-.28,.22-.5,.5-.5h3c.28,0,.5,.22,.5,.5v5Zm0-8c0,.28-.22,.5-.5,.5h-3c-.28,0-.5-.22-.5-.5v-5c0-.28,.22-.5,.5-.5h3c.28,0,.5,.22,.5,.5v5Zm6,8c0,.28-.22,.5-.5,.5h-3c-.28,0-.5-.22-.5-.5v-5c0-.28,.22-.5,.5-.5h3c.28,0,.5,.22,.5,.5v5Zm0-8c0,.28-.22,.5-.5,.5h-3c-.28,0-.5-.22-.5-.5v-5c0-.28,.22-.5,.5-.5h3c.28,0,.5,.22,.5,.5v5Z\" fill=\"#484f60\"/></g></g></svg>"
3001
3010
  };
3002
3011
 
3003
3012
  var IconCacheService = /** @class */ (function () {
@@ -3234,15 +3243,18 @@
3234
3243
  ];
3235
3244
 
3236
3245
  var CatalogFilterContentGeneralComponent = /** @class */ (function () {
3237
- function CatalogFilterContentGeneralComponent(catalogSearchService, filterService, iconCache, _catalogConnectorService) {
3246
+ function CatalogFilterContentGeneralComponent(catalogSearchService, filterService, iconCache, _catalogConnectorService, _adapterService) {
3238
3247
  var _this = this;
3239
3248
  this.catalogSearchService = catalogSearchService;
3240
3249
  this.filterService = filterService;
3241
3250
  this.iconCache = iconCache;
3242
3251
  this._catalogConnectorService = _catalogConnectorService;
3252
+ this._adapterService = _adapterService;
3253
+ this.modes = corecomponents_v12.FilterItemMode;
3243
3254
  this.icons = IconEnum;
3244
3255
  this._min = 0;
3245
3256
  this._max = 100000;
3257
+ this._subs = [];
3246
3258
  this.supplierDropdownFields = { text: "description", value: "storeGroupId" };
3247
3259
  this.getRetail = function (barcodeFilter) { return __awaiter(_this, void 0, void 0, function () {
3248
3260
  var request;
@@ -3259,6 +3271,17 @@
3259
3271
  return true;
3260
3272
  };
3261
3273
  CatalogFilterContentGeneralComponent.prototype.ngOnInit = function () {
3274
+ var _this = this;
3275
+ this._subs.push(this._adapterService.controllerInitialized.subscribe(function (initialized) {
3276
+ if (initialized) {
3277
+ _this._setCollections();
3278
+ }
3279
+ }));
3280
+ };
3281
+ CatalogFilterContentGeneralComponent.prototype.ngOnDestroy = function () {
3282
+ this._subs.forEach(function (s) { return s.unsubscribe(); });
3283
+ };
3284
+ CatalogFilterContentGeneralComponent.prototype._setCollections = function () {
3262
3285
  this._setStoreGroups();
3263
3286
  this._setInOutCollection();
3264
3287
  this._setArticleTypes();
@@ -3308,11 +3331,13 @@
3308
3331
  var _this = this;
3309
3332
  var tempPriceListsSalesCollection = [];
3310
3333
  this._catalogConnectorService.getPriceLists().then(function (priceLists) {
3311
- priceLists.forEach(function (list) {
3312
- if (list.type.indexOf("I") != -1) {
3313
- tempPriceListsSalesCollection.push(list);
3314
- }
3315
- });
3334
+ if (priceLists && Array.isArray(priceLists)) {
3335
+ priceLists.forEach(function (list) {
3336
+ if (list.type.indexOf("I") != -1) {
3337
+ tempPriceListsSalesCollection.push(list);
3338
+ }
3339
+ });
3340
+ }
3316
3341
  _this.priceListsSalesCollection = _this.filterService.createFilterSelectionsCollection(tempPriceListsSalesCollection, "code", "description");
3317
3342
  });
3318
3343
  };
@@ -3381,14 +3406,15 @@
3381
3406
  CatalogFilterContentGeneralComponent.decorators = [
3382
3407
  { type: i0.Component, args: [{
3383
3408
  selector: 'co-catalog-filter-content-general',
3384
- template: "\n <div class=\"catalog-filter-content-general-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Price</label>\n <div class=\"price-inputs\"> \n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'BASELINE_PRICE' | localize\"\n [(model)]=\"filterService.priceMinFilter\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'PRICE_TO' | localize\"\n [(model)]=\"filterService.priceMaxFilter\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div> \n </div>\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Length</label>\n <div class=\"price-inputs\">\n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.lengthMinFilter\"\n (modelChange)=\"updateLengthFilter()\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.lengthMaxFilter\"\n (modelChange)=\"updateLengthFilter()\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div>\n </div>\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Width</label>\n <div class=\"price-inputs\">\n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.widthMinFilter\"\n (modelChange)=\"updateWidthFilter()\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | localize\"\n [(model)]=\"filterService.widthMaxFilter\"\n (modelChange)=\"updateWidthFilter()\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div>\n </div>\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Height</label>\n <div class=\"price-inputs\">\n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.heightMinFilter\"\n (modelChange)=\"updateHeightFilter()\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | localize\"\n [(model)]=\"filterService.heightMaxFilter\"\n (modelChange)=\"updateHeightFilter()\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div>\n </div>\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Width</label>\n <div class=\"price-inputs\">\n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.depthMinFilter\"\n (modelChange)=\"updateDepthFilter()\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | localize\"\n [(model)]=\"filterService.depthMaxFilter\"\n (modelChange)=\"updateDepthFilter()\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'RETAIL_FORMULA' | localize\"\n [expanded]=\"true\"\n [collection]=\"storeGroupCollection\"\n (collectionChange)=\"handleSeparateCollectionChange('rangeStoreGroup', $event)\"\n > \n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'IN_OUT_COLLECTION' | localize\"\n [expanded]=\"true\"\n [collection]=\"inOutCollectionCollection\"\n (collectionChange)=\"handleSeparateCollectionChange('collection', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'ARTICLE_TYPE' | localize\"\n [expanded]=\"true\"\n [collection]=\"articleTypeCollection\"\n (collectionChange)=\"handleArticleTypeChange('rangeStoreGroup', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PUBLISH_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationCollection\"\n (collectionChange)=\"handleNumberListChange('publicationCode', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SELL_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationSalesCollection\"\n (collectionChange)=\"handleNumberListChange('publicationWebshopSales', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PRICELIST_SALES' | localize\"\n [expanded]=\"true\"\n [singleSelect]=\"true\"\n [collection]=\"priceListsSalesCollection\"\n (collectionChange)=\"handleSingleSelectChange('pricelistRetail', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'CATEGORY' | localize\"\n [expanded]=\"true\"\n [singleSelect]=\"true\"\n [collection]=\"categoryCollection\"\n (collectionChange)=\"handleSingleSelectChange('category', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [showLessLabel]=\"'Bekijk minder...'\"\n [showMoreLabel]=\"'Bekijk meer...'\"\n [searchPlaceholder]=\"'Zoeken...'\"\n [expanded]=true\n [initialLimit]=5\n (collectionChange)=\"handleCollectionChange(filter.filterName, $event)\"\n ></co-filter-item>\n </div>\n </div>\n </div> \n </div>\n "
3409
+ template: "\n <div class=\"catalog-filter-content-general-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Price</label>\n <div class=\"price-inputs\"> \n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'BASELINE_PRICE' | localize\"\n [(model)]=\"filterService.priceMinFilter\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'PRICE_TO' | localize\"\n [(model)]=\"filterService.priceMaxFilter\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div> \n </div>\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Length</label>\n <div class=\"price-inputs\">\n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.lengthMinFilter\"\n (modelChange)=\"updateLengthFilter()\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.lengthMaxFilter\"\n (modelChange)=\"updateLengthFilter()\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div>\n </div>\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Width</label>\n <div class=\"price-inputs\">\n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.widthMinFilter\"\n (modelChange)=\"updateWidthFilter()\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | localize\"\n [(model)]=\"filterService.widthMaxFilter\"\n (modelChange)=\"updateWidthFilter()\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div>\n </div>\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Height</label>\n <div class=\"price-inputs\">\n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.heightMinFilter\"\n (modelChange)=\"updateHeightFilter()\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | localize\"\n [(model)]=\"filterService.heightMaxFilter\"\n (modelChange)=\"updateHeightFilter()\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div>\n </div>\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Width</label>\n <div class=\"price-inputs\">\n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.depthMinFilter\"\n (modelChange)=\"updateDepthFilter()\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | localize\"\n [(model)]=\"filterService.depthMaxFilter\"\n (modelChange)=\"updateDepthFilter()\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'RETAIL_FORMULA' | localize\"\n [expanded]=\"true\"\n [collection]=\"storeGroupCollection\"\n (collectionChange)=\"handleSeparateCollectionChange('rangeStoreGroup', $event)\"\n > \n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'IN_OUT_COLLECTION' | localize\"\n [expanded]=\"true\"\n [collection]=\"inOutCollectionCollection\"\n (collectionChange)=\"handleSeparateCollectionChange('collection', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'ARTICLE_TYPE' | localize\"\n [expanded]=\"true\"\n [collection]=\"articleTypeCollection\"\n (collectionChange)=\"handleArticleTypeChange('rangeStoreGroup', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PUBLISH_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationCollection\"\n (collectionChange)=\"handleNumberListChange('publicationCode', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SELL_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationSalesCollection\"\n (collectionChange)=\"handleNumberListChange('publicationWebshopSales', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PRICELIST_SALES' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n (collectionChange)=\"handleSingleSelectChange('pricelistRetail', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'CATEGORY' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"categoryCollection\"\n (collectionChange)=\"handleSingleSelectChange('category', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [showLessLabel]=\"'Bekijk minder...'\"\n [showMoreLabel]=\"'Bekijk meer...'\"\n [searchPlaceholder]=\"'Zoeken...'\"\n [expanded]=true\n [initialLimit]=5\n (collectionChange)=\"handleCollectionChange(filter.filterName, $event)\"\n ></co-filter-item>\n </div>\n </div>\n </div> \n </div>\n "
3385
3410
  },] }
3386
3411
  ];
3387
3412
  CatalogFilterContentGeneralComponent.ctorParameters = function () { return [
3388
3413
  { type: CatalogSearchService },
3389
3414
  { type: CatalogFilterService },
3390
3415
  { type: IconCacheService },
3391
- { type: CatalogConnectorService }
3416
+ { type: CatalogConnectorService },
3417
+ { type: CatalogConnectorAdapterService }
3392
3418
  ]; };
3393
3419
  CatalogFilterContentGeneralComponent.propDecorators = {
3394
3420
  showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }]
@@ -3419,17 +3445,31 @@
3419
3445
  ];
3420
3446
 
3421
3447
  var CatalogFilterContentPurchaseComponent = /** @class */ (function () {
3422
- function CatalogFilterContentPurchaseComponent(catalogSearchService, iconCache, _catalogConnectorService, filterService) {
3448
+ function CatalogFilterContentPurchaseComponent(catalogSearchService, iconCache, filterService, _catalogConnectorService, _adapterService) {
3423
3449
  this.catalogSearchService = catalogSearchService;
3424
3450
  this.iconCache = iconCache;
3425
- this._catalogConnectorService = _catalogConnectorService;
3426
3451
  this.filterService = filterService;
3452
+ this._catalogConnectorService = _catalogConnectorService;
3453
+ this._adapterService = _adapterService;
3454
+ this.modes = corecomponents_v12.FilterItemMode;
3427
3455
  this.icons = IconEnum;
3456
+ this._subs = [];
3428
3457
  }
3429
3458
  CatalogFilterContentPurchaseComponent.prototype.showClass = function () {
3430
3459
  return true;
3431
3460
  };
3432
3461
  CatalogFilterContentPurchaseComponent.prototype.ngOnInit = function () {
3462
+ var _this = this;
3463
+ this._subs.push(this._adapterService.controllerInitialized.subscribe(function (initialized) {
3464
+ if (initialized) {
3465
+ _this._setCollections();
3466
+ }
3467
+ }));
3468
+ };
3469
+ CatalogFilterContentPurchaseComponent.prototype.ngOnDestroy = function () {
3470
+ this._subs.forEach(function (s) { return s.unsubscribe(); });
3471
+ };
3472
+ CatalogFilterContentPurchaseComponent.prototype._setCollections = function () {
3433
3473
  this._setSuppliers();
3434
3474
  this._setPriceList();
3435
3475
  };
@@ -3443,11 +3483,13 @@
3443
3483
  var _this = this;
3444
3484
  var tempPriceListsPurchCollection = [];
3445
3485
  this._catalogConnectorService.getPriceLists().then(function (priceLists) {
3446
- priceLists.forEach(function (list) {
3447
- if (list.type.indexOf("I") > -1) {
3448
- tempPriceListsPurchCollection.push(list);
3449
- }
3450
- });
3486
+ if (priceLists && Array.isArray(priceLists)) {
3487
+ priceLists.forEach(function (list) {
3488
+ if (list.type.indexOf("I") > -1) {
3489
+ tempPriceListsPurchCollection.push(list);
3490
+ }
3491
+ });
3492
+ }
3451
3493
  _this.priceListsPurchCollection = _this.filterService.createFilterSelectionsCollection(tempPriceListsPurchCollection, "code", "description");
3452
3494
  });
3453
3495
  };
@@ -3462,14 +3504,15 @@
3462
3504
  CatalogFilterContentPurchaseComponent.decorators = [
3463
3505
  { type: i0.Component, args: [{
3464
3506
  selector: 'co-catalog-filter-content-purchase',
3465
- template: "\n <div class=\"catalog-filter-content-purchase-wrapper catalog-filter-content-wrapper\">\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n <div class=\"filter-item-wrapper\">\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SUPPLIER' | localize\"\n [expanded]=\"true\"\n [collection]=\"suppliers\"\n (collectionChange)=\"handleSeparateCollectionChange('rangeSupplierNr', $event)\"\n >\n </co-filter-item>\n </div> \n <co-filter-item [placeholder]=\"'ARTICLE_NR_SUPPLIER' | localize\"\n [expanded]=\"true\"\n [customContent]=\"true\"\n >\n <co-input-text [placeholder]=\"'ARTICLE_NR_SUPPLIER' | localize\" [(model)]=\"catalogSearchService.searchRequest.artNrSupplier\"\n noValidation></co-input-text>\n </co-filter-item>\n <co-filter-item [placeholder]=\"'REFERENCE' | localize\"\n [expanded]=\"true\"\n [customContent]=\"true\"\n >\n <co-input-text [placeholder]=\"'REFERENCE' | localize\" [(model)]=\"catalogSearchService.searchRequest.simpleReference\"\n noValidation></co-input-text>\n </co-filter-item>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PRICELIST_PURCHASE' | localize\"\n [expanded]=\"true\"\n [collection]=\"priceListsPurchCollection\"\n [singleSelect]=\"true\"\n (collectionChange)=\"handleSingleSelectChange('pricelistPurchase', $event)\"\n >\n </co-filter-item>\n </div>\n </div>\n </div>\n </div> \n </div>\n "
3507
+ template: "\n <div class=\"catalog-filter-content-purchase-wrapper catalog-filter-content-wrapper\">\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n <div class=\"filter-item-wrapper\">\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SUPPLIER' | localize\"\n [expanded]=\"true\"\n [collection]=\"suppliers\"\n (collectionChange)=\"handleSeparateCollectionChange('rangeSupplierNr', $event)\"\n >\n </co-filter-item>\n </div> \n <co-filter-item [placeholder]=\"'ARTICLE_NR_SUPPLIER' | localize\"\n [expanded]=\"true\"\n [customContent]=\"true\"\n >\n <co-input-text [placeholder]=\"'ARTICLE_NR_SUPPLIER' | localize\" [(model)]=\"catalogSearchService.searchRequest.artNrSupplier\"\n noValidation></co-input-text>\n </co-filter-item>\n <co-filter-item [placeholder]=\"'REFERENCE' | localize\"\n [expanded]=\"true\"\n [customContent]=\"true\"\n >\n <co-input-text [placeholder]=\"'REFERENCE' | localize\" [(model)]=\"catalogSearchService.searchRequest.simpleReference\"\n noValidation></co-input-text>\n </co-filter-item>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PRICELIST_PURCHASE' | localize\"\n [expanded]=\"true\"\n [collection]=\"priceListsPurchCollection\"\n [mode]=\"modes.SingleSelectList\"\n (collectionChange)=\"handleSingleSelectChange('pricelistPurchase', $event)\"\n >\n </co-filter-item>\n </div>\n </div>\n </div>\n </div> \n </div>\n "
3466
3508
  },] }
3467
3509
  ];
3468
3510
  CatalogFilterContentPurchaseComponent.ctorParameters = function () { return [
3469
3511
  { type: CatalogSearchService },
3470
3512
  { type: IconCacheService },
3513
+ { type: CatalogFilterService },
3471
3514
  { type: CatalogConnectorService },
3472
- { type: CatalogFilterService }
3515
+ { type: CatalogConnectorAdapterService }
3473
3516
  ]; };
3474
3517
  CatalogFilterContentPurchaseComponent.propDecorators = {
3475
3518
  showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }],
@@ -3657,7 +3700,8 @@
3657
3700
  corecomponents_v12.IconModule,
3658
3701
  CatalogFilterModule,
3659
3702
  ResponsiveTextModule,
3660
- PipeModule
3703
+ PipeModule,
3704
+ corecomponents_v12.OverlayModule
3661
3705
  ],
3662
3706
  declarations: [
3663
3707
  CatalogCategoriesComponent
@@ -3686,14 +3730,11 @@
3686
3730
  ];
3687
3731
 
3688
3732
  var CatalogNavigationComponent = /** @class */ (function () {
3689
- function CatalogNavigationComponent(iconCache,
3690
- /*
3691
- public navigationService: CatalogNavigationService,
3692
- */
3693
- catalogService, _appEventService) {
3733
+ function CatalogNavigationComponent(iconCache, catalogService, _appEventService, _adapterService) {
3694
3734
  this.iconCache = iconCache;
3695
3735
  this.catalogService = catalogService;
3696
3736
  this._appEventService = _appEventService;
3737
+ this._adapterService = _adapterService;
3697
3738
  this.icons = IconEnum;
3698
3739
  this.homeLabel = 'Home';
3699
3740
  this.collectionLabel = 'Collection';
@@ -3710,6 +3751,7 @@
3710
3751
  this.turnoverGroups = [];
3711
3752
  this.showCollectionOverlay = false;
3712
3753
  this.showExternalOverlay = false;
3754
+ this._subs = [];
3713
3755
  }
3714
3756
  Object.defineProperty(CatalogNavigationComponent.prototype, "internalList", {
3715
3757
  get: function () {
@@ -3738,9 +3780,17 @@
3738
3780
  configurable: true
3739
3781
  });
3740
3782
  CatalogNavigationComponent.prototype.ngOnInit = function () {
3783
+ var _this = this;
3741
3784
  this.categories.length = 0;
3742
3785
  this.turnoverGroups.length = 0;
3743
- this.getCategories();
3786
+ this._subs.push(this._adapterService.controllerInitialized.subscribe(function (initialized) {
3787
+ if (initialized) {
3788
+ _this.getCategories();
3789
+ }
3790
+ }));
3791
+ };
3792
+ CatalogNavigationComponent.prototype.ngOnDestroy = function () {
3793
+ this._subs.forEach(function (s) { return s.unsubscribe(); });
3744
3794
  };
3745
3795
  CatalogNavigationComponent.prototype.getCategories = function () {
3746
3796
  return __awaiter(this, void 0, void 0, function () {
@@ -3838,7 +3888,10 @@
3838
3888
  CatalogNavigationComponent.decorators = [
3839
3889
  { type: i0.Component, args: [{
3840
3890
  selector: 'co-catalog-navigation',
3841
- template: "\n <div class=\"navigation-wrapper\" [class.minified]=\"minified\">\n <div class=\"navigation-item-wrapper\">\n <a class=\"home-link\" (click)=\"handleHomeClick($event)\" [textContent]=\"homeLabel\"></a>\n </div>\n <div class=\"navigation-item-wrapper\" [class.active]=\"mobileMenuToggle\" (click)=\"onToggleMobileMenu()\" \n (mouseover)=\"handleShowCollectionOverlay()\" \n (mouseleave)=\"handleHideCollectionOverlay()\" \n overlayParent #collectionParentForOverlay=\"overlayParent\">\n <co-icon class=\"hamburger-icon\" [iconData]=\"iconCache.getIcon(icons.Hamburger)\"></co-icon>\n <span [textContent]=\"collectionLabel\"></span>\n <div class=\"navigation-overlay-wrapper\" [overlay]=\"collectionParentForOverlay\" [keepInView]=\"true\" *ngIf=\"showCollectionOverlay\" @showHideOverlay>\n <div class=\"navigation-category-column-wrapper\" *ngFor=\"let category of categories\">\n <div class=\"navigation-category\" [textContent]=\"category.category\" (click)=\"handleCategoryClick($event, category.category)\"></div>\n <div class=\"navigation-turnovergroup-wrapper\">\n <div class=\"navigation-turnovergroup\" *ngFor=\"let turnoverGroup of category.turnoverGroups\" [textContent]=\"turnoverGroup.description\" (click)=\"handleTurnoverGroupClick($event, turnoverGroup.turnovergroupNr)\"></div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"navigation-item-wrapper\" [class.active]=\"mobileMenuToggle\" (click)=\"onToggleMobileMenu()\" \n (mouseover)=\"handleShowExternalOverlay()\"\n (mouseleave)=\"handleHideExternalOverlay()\"\n overlayParent #externalParentForOverlay=\"overlayParent\">\n <co-icon class=\"hamburger-icon\" [iconData]=\"iconCache.getIcon(icons.Ar)\"></co-icon>\n <span [textContent]=\"externalSourcesLabel\"></span>\n <div class=\"navigation-overlay-wrapper\" [overlay]=\"externalParentForOverlay\" [keepInView]=\"true\" *ngIf=\"showExternalOverlay\" @showHideOverlay>\n <co-catalog-external-sources (externalSourceClick)=\"handleExternalSourceClick($event)\"></co-catalog-external-sources>\n </div>\n </div>\n </div>\n ",
3891
+ template: "\n <div class=\"navigation-wrapper\" [class.minified]=\"minified\">\n <div class=\"navigation-item-wrapper\">\n <a class=\"home-link\" (click)=\"handleHomeClick($event)\" [textContent]=\"homeLabel\"></a>\n </div>\n <div class=\"navigation-item-wrapper\" [class.active]=\"mobileMenuToggle\" (click)=\"onToggleMobileMenu()\" \n (mouseover)=\"handleShowCollectionOverlay()\" \n (mouseleave)=\"handleHideCollectionOverlay()\" \n overlayParent #collectionParentForOverlay=\"overlayParent\">\n <co-icon class=\"hamburger-icon\" [iconData]=\"iconCache.getIcon(icons.Hamburger)\"></co-icon>\n <span [textContent]=\"collectionLabel\"></span>\n <div class=\"navigation-overlay-wrapper\" *ngIf=\"showCollectionOverlay\" @showHideOverlay \n [overlay]=\"collectionParentForOverlay\"\n [inline]=\"true\"\n [keepInView]=\"true\" \n [view]=\"view\" \n [fullSize]=\"true\">\n <div class=\"navigation-category-column-wrapper\" *ngFor=\"let category of categories\">\n <div class=\"navigation-category\" [textContent]=\"category.category\" (click)=\"handleCategoryClick($event, category.category)\"></div>\n <div class=\"navigation-turnovergroup-wrapper\">\n <div class=\"navigation-turnovergroup\" *ngFor=\"let turnoverGroup of category.turnoverGroups\" [textContent]=\"turnoverGroup.description\" (click)=\"handleTurnoverGroupClick($event, turnoverGroup.turnovergroupNr)\"></div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"navigation-item-wrapper\" [class.active]=\"mobileMenuToggle\" (click)=\"onToggleMobileMenu()\" \n (mouseover)=\"handleShowExternalOverlay()\"\n (mouseleave)=\"handleHideExternalOverlay()\"\n overlayParent #externalParentForOverlay=\"overlayParent\">\n <co-icon class=\"hamburger-icon\" [iconData]=\"iconCache.getIcon(icons.Ar)\"></co-icon>\n <span [textContent]=\"externalSourcesLabel\"></span>\n <div class=\"navigation-overlay-wrapper\" *ngIf=\"showExternalOverlay\" @showHideOverlay \n [overlay]=\"externalParentForOverlay\" \n [inline]=\"true\"\n [keepInView]=\"true\" \n [view]=\"view\" \n [fullSize]=\"true\">\n <co-catalog-external-sources (externalSourceClick)=\"handleExternalSourceClick($event)\"></co-catalog-external-sources>\n </div>\n </div>\n </div>\n ",
3892
+ providers: [
3893
+ corecomponents_v12.OverlayService
3894
+ ],
3842
3895
  animations: [
3843
3896
  animations.trigger('showHideOverlay', [
3844
3897
  animations.state('void', animations.style({ height: '0' })),
@@ -3852,13 +3905,15 @@
3852
3905
  CatalogNavigationComponent.ctorParameters = function () { return [
3853
3906
  { type: IconCacheService },
3854
3907
  { type: CatalogService },
3855
- { type: CatalogEventService }
3908
+ { type: CatalogEventService },
3909
+ { type: CatalogConnectorAdapterService }
3856
3910
  ]; };
3857
3911
  CatalogNavigationComponent.propDecorators = {
3858
3912
  homeLabel: [{ type: i0.Input }],
3859
3913
  collectionLabel: [{ type: i0.Input }],
3860
3914
  externalSourcesLabel: [{ type: i0.Input }],
3861
3915
  showTurnoverGroups: [{ type: i0.Input }],
3916
+ view: [{ type: i0.Input }],
3862
3917
  homeClick: [{ type: i0.Output }],
3863
3918
  categoryClick: [{ type: i0.Output }],
3864
3919
  turnoverGroupClick: [{ type: i0.Output }],
@@ -3983,23 +4038,117 @@
3983
4038
  },] }
3984
4039
  ];
3985
4040
 
4041
+ var CatalogNavigationService = /** @class */ (function () {
4042
+ function CatalogNavigationService(_catalog, _iOne, _optionsService, _imageService) {
4043
+ this._catalog = _catalog;
4044
+ this._iOne = _iOne;
4045
+ this._optionsService = _optionsService;
4046
+ this._imageService = _imageService;
4047
+ this._subs = [];
4048
+ this._connectionMade = false;
4049
+ this._optionsSet = false;
4050
+ this.navigationCategories = [];
4051
+ this.allTurnoverGroups = [];
4052
+ // this._subs.push(
4053
+ // this._iOne.controllerInitialized.subscribe((initialized: boolean) => {
4054
+ // if (initialized) {
4055
+ // this._connectionMade = true;
4056
+ // this.getCategories();
4057
+ // }
4058
+ // }),
4059
+ // this._optionsService.parametersSet.subscribe((set: boolean) => {
4060
+ // if (set) {
4061
+ // this._optionsSet = true;
4062
+ // this.getCategories();
4063
+ // }
4064
+ // })
4065
+ // );
4066
+ }
4067
+ CatalogNavigationService.prototype.ngOnDestroy = function () {
4068
+ this._subs.forEach(function (s) { return s.unsubscribe(); });
4069
+ };
4070
+ CatalogNavigationService.prototype.setCategory = function (category) {
4071
+ // this._catalog.category = category;
4072
+ };
4073
+ CatalogNavigationService.prototype.setTurnoverGroup = function (turnoverGroup) {
4074
+ // this._catalog.turnoverGroup = turnoverGroup;
4075
+ };
4076
+ CatalogNavigationService.prototype.setExternalSourceUrl = function (url) {
4077
+ this._catalog.externalSourceUrl = url;
4078
+ };
4079
+ CatalogNavigationService.prototype.setIoneSourceUrl = function (url, ioneUrl, id, username, password) {
4080
+ this._catalog.ioneSourceUrl = url + '?url=' + ioneUrl + '&id=' + id + '&user=' + username + '&pass=' + password;
4081
+ };
4082
+ CatalogNavigationService.prototype.navigateToHome = function () {
4083
+ this._catalog.reset();
4084
+ };
4085
+ CatalogNavigationService.prototype.getCategories = function () {
4086
+ return __awaiter(this, void 0, void 0, function () {
4087
+ return __generator(this, function (_a) {
4088
+ return [2 /*return*/];
4089
+ });
4090
+ });
4091
+ };
4092
+ CatalogNavigationService.prototype.getTurnoverGroupList = function () {
4093
+ var _this = this;
4094
+ this.navigationCategories.forEach(function (category) {
4095
+ var _a;
4096
+ category.turnoverGroups.forEach(function (tog) { return _this._imageService.getTurnoverGroupImage(tog); });
4097
+ (_a = _this.allTurnoverGroups).push.apply(_a, __spreadArray([], __read(category.turnoverGroups)));
4098
+ });
4099
+ };
4100
+ return CatalogNavigationService;
4101
+ }());
4102
+ CatalogNavigationService.decorators = [
4103
+ { type: i0.Injectable }
4104
+ ];
4105
+ CatalogNavigationService.ctorParameters = function () { return [
4106
+ { type: CatalogService },
4107
+ { type: CatalogConnectorService },
4108
+ { type: CatalogOptionsService },
4109
+ { type: CatalogImageService }
4110
+ ]; };
4111
+
3986
4112
  var CatalogSearchComponent = /** @class */ (function () {
3987
- function CatalogSearchComponent(_catalogSearchService, _catalogEventService) {
4113
+ function CatalogSearchComponent(_settingsService, _catalogService, _catalogSearchService, _catalogEventService, iconCacheService) {
4114
+ this._settingsService = _settingsService;
4115
+ this._catalogService = _catalogService;
3988
4116
  this._catalogSearchService = _catalogSearchService;
3989
4117
  this._catalogEventService = _catalogEventService;
4118
+ this.iconCacheService = iconCacheService;
4119
+ this.icons = IconEnum;
3990
4120
  this.showNavigation = false;
3991
4121
  this.showLandingPage = false;
3992
4122
  this.showFilter = false;
3993
4123
  this.showViewModes = false;
4124
+ this.settingsChange = new i0.EventEmitter();
3994
4125
  this.onLookAtArticleButtonClick = new i0.EventEmitter();
3995
4126
  this.onArButtonClick = new i0.EventEmitter();
3996
4127
  this.onAddArticleButtonClick = new i0.EventEmitter();
3997
4128
  this.onArticleClick = new i0.EventEmitter();
3998
4129
  this.onStockDetailsClick = new i0.EventEmitter();
4130
+ this.onExternalSourceClick = new i0.EventEmitter();
3999
4131
  this.mode = 'tile';
4000
4132
  this.showCategories = true;
4001
4133
  this._subs = [];
4002
4134
  }
4135
+ Object.defineProperty(CatalogSearchComponent.prototype, "settings", {
4136
+ set: function (value) {
4137
+ if (value) {
4138
+ var settings = void 0;
4139
+ if (typeof value === 'string') {
4140
+ settings = JSON.parse(value);
4141
+ }
4142
+ else {
4143
+ settings = value;
4144
+ }
4145
+ this._settingsService.createSettingsFromObject(settings);
4146
+ this._catalogService.init(this._settingsService.settings);
4147
+ }
4148
+ },
4149
+ enumerable: false,
4150
+ configurable: true
4151
+ });
4003
4152
  CatalogSearchComponent.prototype.showClass = function () {
4004
4153
  return true;
4005
4154
  };
@@ -4026,35 +4175,76 @@
4026
4175
  CatalogSearchComponent.prototype.handleTurnoverGroupClick = function (turnoverGroup) {
4027
4176
  this._catalogSearchService.turnoverGroup = turnoverGroup;
4028
4177
  };
4178
+ CatalogSearchComponent.prototype.handleResetButtonClick = function (event) {
4179
+ this._catalogSearchService.resetFilters();
4180
+ };
4181
+ CatalogSearchComponent.prototype.handleGetTransactionClick = function () {
4182
+ this._catalogService.getWebTransaction();
4183
+ };
4029
4184
  return CatalogSearchComponent;
4030
4185
  }());
4031
4186
  CatalogSearchComponent.decorators = [
4032
4187
  { type: i0.Component, args: [{
4033
4188
  selector: 'co-catalog-search',
4034
- template: "\n <div class=\"catalog-search-wrapper\">\n <ng-container *ngIf=\"showFilter\">\n <div class=\"filter-content\">\n <co-catalog-filter [showResetFilter]=\"true\"></co-catalog-filter>\n </div>\n </ng-container>\n <div class=\"search-content-wrapper\">\n <div class=\"search-header\">\n<!--\n <co-catalog-external-sources></co-catalog-external-sources>\n-->\n <co-catalog-search-header [placeholder]=\"'Zoeken naar artikelen'\"></co-catalog-search-header>\n </div>\n <ng-container *ngIf=\"showViewModes\">\n <button (click)=\"mode = 'tile'\">tile</button>\n <button (click)=\"mode = 'list'\">list</button>\n <button (click)=\"mode = 'grid'\">grid</button>\n </ng-container>\n <co-catalog-navigation *ngIf=\"showNavigation\" (categoryClick)=\"handleCategoryClick($event)\" (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"></co-catalog-navigation>\n <co-catalog-categories *ngIf=\"showLandingPage\" (categoryClick)=\"handleCategoryClick($event)\" (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"></co-catalog-categories>\n <div class=\"search-content\">\n <ng-container *ngIf=\"mode === 'tile'\">\n <co-catalog-search-result-tile></co-catalog-search-result-tile>\n </ng-container>\n <ng-container *ngIf=\"mode === 'list'\">\n <co-catalog-search-result-list></co-catalog-search-result-list>\n </ng-container>\n <ng-container *ngIf=\"mode === 'grid'\">\n <!--\n <co-catalog-search-result></co-catalog-search-result>\n -->\n </ng-container>\n </div>\n </div>\n </div>\n ",
4035
- encapsulation: i0.ViewEncapsulation.None
4189
+ template: "\n <button (click)=\"handleGetTransactionClick()\">get transaction</button>\n <div class=\"catalog-search-wrapper\">\n <ng-container *ngIf=\"showFilter\">\n <div class=\"filter-content\" @showHideFilter>\n <div class=\"search-filter-panel-header-wrapper\">\n <div class=\"search-filter-panel-header\">\n <span [textContent]=\"'Filters'\"></span>\n <co-icon class=\"filter-reset-icon clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.SyncAlt)\"\n (click)=\"handleResetButtonClick($event)\">\n </co-icon>\n </div>\n <co-icon class=\"clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.Cancel)\"\n (click)=\"showFilter = false\">\n </co-icon>\n </div>\n\n <!--filter-content-->\n <div class=\"search-filter-wrapper narrow-scrollbar\">\n <co-catalog-filter [showResetFilter]=\"true\"></co-catalog-filter>\n </div>\n </div>\n </ng-container>\n <div class=\"search-content-wrapper\" #contentView>\n <div class=\"search-header\">\n <div class=\"search-catalog-title-wrapper\">\n <div class=\"catalog-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.WebCatalog)\"></co-icon>\n <div class=\"catalog-title\" [textContent]=\"title\"></div>\n </div>\n <div class=\"catalog-sub-title\" [textContent]=\"subTitle\"></div>\n </div>\n <co-catalog-search-header [placeholder]=\"searchPlaceholder\"\n (filterIconClick)=\"showFilter = !showFilter\"></co-catalog-search-header>\n </div>\n <ng-container *ngIf=\"showViewModes\">\n <button (click)=\"mode = 'tile'\">tile</button>\n <button (click)=\"mode = 'list'\">list</button>\n <button (click)=\"mode = 'grid'\">grid</button>\n </ng-container>\n <co-catalog-navigation *ngIf=\"showNavigation\"\n [view]=\"contentView\"\n (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"\n (externalSourceClick)=\"onExternalSourceClick.emit($event)\"\n ></co-catalog-navigation>\n <co-catalog-categories *ngIf=\"showLandingPage\" (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"></co-catalog-categories>\n <div class=\"search-content\">\n <ng-container *ngIf=\"mode === 'tile'\">\n <co-catalog-search-result-tile></co-catalog-search-result-tile>\n </ng-container>\n <ng-container *ngIf=\"mode === 'list'\">\n <co-catalog-search-result-list></co-catalog-search-result-list>\n </ng-container>\n <ng-container *ngIf=\"mode === 'grid'\">\n <!--\n <co-catalog-search-result></co-catalog-search-result>\n -->\n </ng-container>\n </div>\n </div>\n </div>\n ",
4190
+ providers: [
4191
+ SelectSingleCacheService,
4192
+ SelectMultipleCacheService,
4193
+ SelectMultipleParameterizedCacheService,
4194
+ SelectSingleParameterizedCacheService,
4195
+ BusinessObjectCacheManagerService,
4196
+ CatalogImageService,
4197
+ CatalogFilterService,
4198
+ CatalogOptionsService,
4199
+ CatalogConnectorService,
4200
+ CatalogNavigationService,
4201
+ CatalogConnectorAdapterService,
4202
+ CatalogService,
4203
+ CatalogSettingsService,
4204
+ CatalogSearchService
4205
+ ],
4206
+ encapsulation: i0.ViewEncapsulation.None,
4207
+ animations: [
4208
+ animations.trigger('showHideFilter', [
4209
+ animations.state('void', animations.style({ width: '0' })),
4210
+ animations.state('*', animations.style({ width: '*' })),
4211
+ animations.transition('void <=> *', animations.animate(200))
4212
+ ])
4213
+ ]
4036
4214
  },] }
4037
4215
  ];
4038
4216
  CatalogSearchComponent.ctorParameters = function () { return [
4039
- { type: CatalogSearchService },
4040
- { type: CatalogEventService }
4217
+ { type: CatalogSettingsService, decorators: [{ type: i0.Host }] },
4218
+ { type: CatalogService, decorators: [{ type: i0.Host }] },
4219
+ { type: CatalogSearchService, decorators: [{ type: i0.Host }] },
4220
+ { type: CatalogEventService },
4221
+ { type: IconCacheService }
4041
4222
  ]; };
4042
4223
  CatalogSearchComponent.propDecorators = {
4224
+ settings: [{ type: i0.Input }],
4225
+ title: [{ type: i0.Input }],
4226
+ subTitle: [{ type: i0.Input }],
4227
+ searchPlaceholder: [{ type: i0.Input }],
4043
4228
  showNavigation: [{ type: i0.Input }],
4044
4229
  showLandingPage: [{ type: i0.Input }],
4045
4230
  showFilter: [{ type: i0.Input }],
4046
4231
  showViewModes: [{ type: i0.Input }],
4232
+ settingsChange: [{ type: i0.Output }],
4047
4233
  onLookAtArticleButtonClick: [{ type: i0.Output }],
4048
4234
  onArButtonClick: [{ type: i0.Output }],
4049
4235
  onAddArticleButtonClick: [{ type: i0.Output }],
4050
4236
  onArticleClick: [{ type: i0.Output }],
4051
4237
  onStockDetailsClick: [{ type: i0.Output }],
4238
+ onExternalSourceClick: [{ type: i0.Output }],
4052
4239
  showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search',] }]
4053
4240
  };
4054
4241
 
4055
4242
  var CatalogSearchHeaderComponent = /** @class */ (function () {
4056
- function CatalogSearchHeaderComponent(catalogSearchService) {
4243
+ function CatalogSearchHeaderComponent(catalogSearchService, iconCacheService) {
4057
4244
  this.catalogSearchService = catalogSearchService;
4245
+ this.iconCacheService = iconCacheService;
4246
+ this.icons = IconEnum;
4247
+ this.filterIconClick = new i0.EventEmitter();
4058
4248
  }
4059
4249
  CatalogSearchHeaderComponent.prototype.showClass = function () {
4060
4250
  return true;
@@ -4064,15 +4254,17 @@
4064
4254
  CatalogSearchHeaderComponent.decorators = [
4065
4255
  { type: i0.Component, args: [{
4066
4256
  selector: 'co-catalog-search-header',
4067
- template: "\n <div class=\"catalog-search-header-wrapper\">\n <co-input-search class=\"catalog-search-general\"\n [useRightIcon]=\"true\"\n [centerLabel]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.general\"\n [placeholder]=\"placeholder\"\n [initFocus]=\"true\"\n (search)=\"catalogSearchService.searchArticles()\">\n </co-input-search>\n </div>\n ",
4257
+ template: "\n <div class=\"catalog-search-header-wrapper\">\n <co-input-search class=\"catalog-search-general\"\n [useRightIcon]=\"true\"\n [centerLabel]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.general\"\n [placeholder]=\"placeholder\"\n [initFocus]=\"true\"\n (search)=\"catalogSearchService.searchArticles()\">\n </co-input-search>\n <co-icon class=\"catalog-search-filter-icon\"\n [iconData]=\"iconCacheService.getIcon(icons.BarsFilter)\"\n (click)=\"filterIconClick.emit()\">\n </co-icon>\n </div>\n ",
4068
4258
  encapsulation: i0.ViewEncapsulation.None
4069
4259
  },] }
4070
4260
  ];
4071
4261
  CatalogSearchHeaderComponent.ctorParameters = function () { return [
4072
- { type: CatalogSearchService }
4262
+ { type: CatalogSearchService },
4263
+ { type: IconCacheService }
4073
4264
  ]; };
4074
4265
  CatalogSearchHeaderComponent.propDecorators = {
4075
4266
  placeholder: [{ type: i0.Input }],
4267
+ filterIconClick: [{ type: i0.Output }],
4076
4268
  showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search-header',] }]
4077
4269
  };
4078
4270
 
@@ -4085,7 +4277,8 @@
4085
4277
  { type: i0.NgModule, args: [{
4086
4278
  imports: [
4087
4279
  common.CommonModule,
4088
- corecomponents_v12.InputSearchModule
4280
+ corecomponents_v12.InputSearchModule,
4281
+ corecomponents_v12.IconModule
4089
4282
  ],
4090
4283
  declarations: [
4091
4284
  CatalogSearchHeaderComponent
@@ -4621,6 +4814,27 @@
4621
4814
  var CatalogSearchModule = /** @class */ (function () {
4622
4815
  function CatalogSearchModule() {
4623
4816
  }
4817
+ CatalogSearchModule.ForRoot = function () {
4818
+ return {
4819
+ ngModule: CatalogSearchModule,
4820
+ providers: [
4821
+ SelectSingleCacheService,
4822
+ SelectMultipleCacheService,
4823
+ SelectMultipleParameterizedCacheService,
4824
+ SelectSingleParameterizedCacheService,
4825
+ BusinessObjectCacheManagerService,
4826
+ CatalogImageService,
4827
+ CatalogFilterService,
4828
+ CatalogOptionsService,
4829
+ CatalogConnectorService,
4830
+ CatalogNavigationService,
4831
+ CatalogConnectorAdapterService,
4832
+ CatalogService,
4833
+ CatalogSettingsService,
4834
+ CatalogSearchService
4835
+ ]
4836
+ };
4837
+ };
4624
4838
  return CatalogSearchModule;
4625
4839
  }());
4626
4840
  CatalogSearchModule.decorators = [
@@ -4633,7 +4847,8 @@
4633
4847
  CatalogSearchResultListModule,
4634
4848
  CatalogCategoriesModule,
4635
4849
  CatalogExternalSourcesModule,
4636
- CatalogNavigationModule
4850
+ CatalogNavigationModule,
4851
+ corecomponents_v12.IconModule
4637
4852
  ],
4638
4853
  declarations: [
4639
4854
  CatalogSearchComponent
@@ -4645,55 +4860,95 @@
4645
4860
  ];
4646
4861
 
4647
4862
  var CatalogExternalSourceComponent = /** @class */ (function () {
4648
- function CatalogExternalSourceComponent(catalogService, _appEventService, _sanitizer, _ref, _renderer) {
4649
- var _this = this;
4650
- this.catalogService = catalogService;
4651
- this._appEventService = _appEventService;
4863
+ function CatalogExternalSourceComponent(_sanitizer, _catalogConnectorService) {
4652
4864
  this._sanitizer = _sanitizer;
4653
- this._ref = _ref;
4654
- this._renderer = _renderer;
4655
- this._subs = [];
4656
- this._renderer.addClass(document.body, 'external');
4657
- this._subs.push(this.catalogService.externalSourceChanged.subscribe(function (changed) {
4658
- if (changed) {
4659
- if (_this.externalSourceFrame && _this.externalSourceFrame.nativeElement) {
4660
- _this.externalSourceFrame.nativeElement.src = '';
4661
- _this.externalSourceFrame.nativeElement.src = _this.catalogService.externalSourceUrl;
4662
- }
4663
- }
4664
- }));
4865
+ this._catalogConnectorService = _catalogConnectorService;
4866
+ this.showFilter = true;
4867
+ this.showNavigation = true;
4868
+ this.articleClick = new i0.EventEmitter();
4869
+ this.showClass = true;
4870
+ this.showCatalog = false;
4871
+ this.loaded = false;
4872
+ this.externalSettings = {};
4665
4873
  }
4666
- CatalogExternalSourceComponent.prototype.showClass = function () {
4667
- return true;
4668
- };
4669
- CatalogExternalSourceComponent.prototype.ngAfterViewInit = function () {
4670
- this._ref.detach();
4671
- };
4672
- CatalogExternalSourceComponent.prototype.ngOnDestroy = function () {
4673
- this._renderer.removeClass(document.body, 'external');
4674
- this._subs.forEach(function (s) { return s.unsubscribe(); });
4874
+ Object.defineProperty(CatalogExternalSourceComponent.prototype, "externalSource", {
4875
+ get: function () {
4876
+ return this._externalSource;
4877
+ },
4878
+ set: function (value) {
4879
+ this._externalSource = value;
4880
+ this.loaded = false;
4881
+ this._prepareExternalSource();
4882
+ },
4883
+ enumerable: false,
4884
+ configurable: true
4885
+ });
4886
+ CatalogExternalSourceComponent.prototype.handleArticleClick = function (article) {
4887
+ if (article && this.externalSettings) {
4888
+ this.articleClick.emit({ article: article, settings: { name: this.name, settings: this.externalSettings } });
4889
+ }
4675
4890
  };
4676
- CatalogExternalSourceComponent.prototype.getSafeUrl = function () {
4677
- return this._sanitizer.bypassSecurityTrustResourceUrl(this.catalogService.externalSourceUrl);
4891
+ CatalogExternalSourceComponent.prototype._prepareExternalSource = function () {
4892
+ return __awaiter(this, void 0, void 0, function () {
4893
+ var bundleSettings;
4894
+ return __generator(this, function (_a) {
4895
+ switch (_a.label) {
4896
+ case 0:
4897
+ if (!this._externalSource) {
4898
+ return [2 /*return*/];
4899
+ }
4900
+ this.externalUrl = undefined;
4901
+ this.externalSettings = {};
4902
+ if (!(this.externalSource.type === 'CATF')) return [3 /*break*/, 2];
4903
+ return [4 /*yield*/, this._catalogConnectorService.getCatalogBundleSettings(this.externalSource.url, parseInt(this.externalSource.schema))];
4904
+ case 1:
4905
+ bundleSettings = _a.sent();
4906
+ this.externalSettings = JSON.parse(bundleSettings);
4907
+ if (this.options) {
4908
+ this.externalSettings.options = this.options;
4909
+ }
4910
+ if (this.externalSource.username && this.externalSource.password) {
4911
+ this.externalSettings.username = this.externalSource.username;
4912
+ this.externalSettings.password = this.externalSource.password;
4913
+ }
4914
+ // finally show the catalog
4915
+ this.showCatalog = true;
4916
+ return [3 /*break*/, 3];
4917
+ case 2:
4918
+ this.externalUrl = this.externalSource.url;
4919
+ this.safeUrl = this._sanitizer.bypassSecurityTrustResourceUrl(this.externalUrl);
4920
+ this.showCatalog = false;
4921
+ _a.label = 3;
4922
+ case 3:
4923
+ this.loaded = true;
4924
+ return [2 /*return*/];
4925
+ }
4926
+ });
4927
+ });
4678
4928
  };
4679
4929
  return CatalogExternalSourceComponent;
4680
4930
  }());
4681
4931
  CatalogExternalSourceComponent.decorators = [
4682
4932
  { type: i0.Component, args: [{
4683
4933
  selector: 'co-catalog-external-source',
4684
- template: "\n <iframe #externalSourceFrame class=\"external-iframe\" [src]=\"getSafeUrl()\"></iframe>\n ",
4934
+ template: "\n <ng-container *ngIf=\"loaded\">\n <ng-container *ngIf=\"showCatalog\">\n <co-catalog-search\n [(settings)]=\"externalSettings\"\n [title]=\"title\"\n [subTitle]=\"subTitle\"\n [searchPlaceholder]=\"searchPlaceholder\"\n [showFilter]=\"showFilter\"\n [showNavigation]=\"showNavigation\"\n (onArticleClick)=\"handleArticleClick($event)\"\n ></co-catalog-search>\n </ng-container>\n <ng-container *ngIf=\"!showCatalog\">\n <iframe width=\"100%\" height=\"100%\" [src]=\"safeUrl\" frameborder=\"0\" allowfullscreen></iframe>\n </ng-container>\n </ng-container>\n ",
4685
4935
  encapsulation: i0.ViewEncapsulation.None
4686
4936
  },] }
4687
4937
  ];
4688
4938
  CatalogExternalSourceComponent.ctorParameters = function () { return [
4689
- { type: CatalogService },
4690
- { type: CatalogEventService },
4691
4939
  { type: i1.DomSanitizer },
4692
- { type: i0.ChangeDetectorRef },
4693
- { type: i0.Renderer2 }
4940
+ { type: CatalogConnectorService }
4694
4941
  ]; };
4695
4942
  CatalogExternalSourceComponent.propDecorators = {
4696
- externalSourceFrame: [{ type: i0.ViewChild, args: ['externalSourceFrame', { read: i0.ElementRef },] }],
4943
+ externalSource: [{ type: i0.Input }],
4944
+ title: [{ type: i0.Input }],
4945
+ subTitle: [{ type: i0.Input }],
4946
+ searchPlaceholder: [{ type: i0.Input }],
4947
+ showFilter: [{ type: i0.Input }],
4948
+ showNavigation: [{ type: i0.Input }],
4949
+ options: [{ type: i0.Input }],
4950
+ name: [{ type: i0.Input }],
4951
+ articleClick: [{ type: i0.Output }],
4697
4952
  showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-external-source',] }]
4698
4953
  };
4699
4954
 
@@ -4705,7 +4960,8 @@
4705
4960
  CatalogExternalSourceModule.decorators = [
4706
4961
  { type: i0.NgModule, args: [{
4707
4962
  imports: [
4708
- common.CommonModule
4963
+ common.CommonModule,
4964
+ CatalogSearchModule.ForRoot()
4709
4965
  ],
4710
4966
  declarations: [
4711
4967
  CatalogExternalSourceComponent
@@ -4720,63 +4976,64 @@
4720
4976
  * Generated bundle index. Do not edit.
4721
4977
  */
4722
4978
 
4979
+ exports.BusinessObjectCacheManagerService = BusinessObjectCacheManagerService;
4723
4980
  exports.CatalogArticleListModule = CatalogArticleListModule;
4724
4981
  exports.CatalogArticleTileModule = CatalogArticleTileModule;
4725
4982
  exports.CatalogCategoriesModule = CatalogCategoriesModule;
4983
+ exports.CatalogConnectorAdapterService = CatalogConnectorAdapterService;
4984
+ exports.CatalogConnectorService = CatalogConnectorService;
4726
4985
  exports.CatalogEventService = CatalogEventService;
4727
4986
  exports.CatalogExternalSourceModule = CatalogExternalSourceModule;
4728
4987
  exports.CatalogExternalSourcesModule = CatalogExternalSourcesModule;
4729
4988
  exports.CatalogFilterModule = CatalogFilterModule;
4989
+ exports.CatalogFilterService = CatalogFilterService;
4990
+ exports.CatalogImageService = CatalogImageService;
4730
4991
  exports.CatalogNavigationModule = CatalogNavigationModule;
4992
+ exports.CatalogNavigationService = CatalogNavigationService;
4993
+ exports.CatalogOptionsService = CatalogOptionsService;
4731
4994
  exports.CatalogSearchHeaderModule = CatalogSearchHeaderModule;
4732
4995
  exports.CatalogSearchModule = CatalogSearchModule;
4733
4996
  exports.CatalogSearchResultListModule = CatalogSearchResultListModule;
4734
4997
  exports.CatalogSearchResultTileModule = CatalogSearchResultTileModule;
4735
4998
  exports.CatalogSearchService = CatalogSearchService;
4736
4999
  exports.CatalogService = CatalogService;
5000
+ exports.CatalogSettingsService = CatalogSettingsService;
5001
+ exports.SelectMultipleCacheService = SelectMultipleCacheService;
5002
+ exports.SelectMultipleParameterizedCacheService = SelectMultipleParameterizedCacheService;
5003
+ exports.SelectSingleCacheService = SelectSingleCacheService;
5004
+ exports.SelectSingleParameterizedCacheService = SelectSingleParameterizedCacheService;
4737
5005
  exports.Version = Version;
4738
5006
  exports["ɵa"] = CatalogFilterCategoriesModule;
4739
5007
  exports["ɵb"] = PipeModule;
4740
- exports["ɵba"] = CatalogCategoriesComponent;
4741
- exports["ɵbb"] = CatalogImageService;
4742
- exports["ɵbc"] = CatalogExternalSourcesComponent;
4743
- exports["ɵbd"] = CatalogNavigationComponent;
4744
- exports["ɵbe"] = CatalogSearchHeaderComponent;
4745
- exports["ɵbf"] = CatalogArticleTileComponent;
4746
- exports["ɵbg"] = ArticleBaseComponent;
4747
- exports["ɵbh"] = VisibilityObserverModule;
4748
- exports["ɵbi"] = VisibilityObserverMasterDirective;
4749
- exports["ɵbj"] = VisibilityObserverDirective;
4750
- exports["ɵbk"] = CatalogSearchResultTileComponent;
4751
- exports["ɵbl"] = CatalogSearchBaseComponent;
4752
- exports["ɵbm"] = CatalogArticleListComponent;
4753
- exports["ɵbn"] = CatalogSearchResultListComponent;
4754
- exports["ɵbo"] = CatalogSearchComponent;
4755
- exports["ɵbp"] = CatalogExternalSourceComponent;
5008
+ exports["ɵba"] = CatalogSearchBaseComponent;
5009
+ exports["ɵbb"] = CatalogArticleListComponent;
5010
+ exports["ɵbc"] = CatalogSearchResultListComponent;
5011
+ exports["ɵbd"] = CatalogSearchComponent;
5012
+ exports["ɵbe"] = CatalogExternalSourceComponent;
4756
5013
  exports["ɵc"] = LocalizePipe;
4757
5014
  exports["ɵd"] = DictionaryService;
4758
5015
  exports["ɵe"] = CatalogFilterCategoriesComponent;
4759
5016
  exports["ɵf"] = CatalogFilterContentGeneralModule;
4760
5017
  exports["ɵg"] = CatalogFilterContentGeneralComponent;
4761
- exports["ɵh"] = CatalogFilterService;
4762
- exports["ɵi"] = CatalogConnectorService;
4763
- exports["ɵj"] = CatalogConnectorAdapterService;
4764
- exports["ɵk"] = SelectSingleCacheService;
4765
- exports["ɵl"] = BusinessObjectCacheManagerService;
4766
- exports["ɵm"] = SelectMultipleCacheService;
4767
- exports["ɵn"] = CacheField;
4768
- exports["ɵo"] = SelectMultipleParameterizedCacheService;
4769
- exports["ɵp"] = SelectSingleParameterizedCacheService;
4770
- exports["ɵq"] = CatalogSettingsService;
4771
- exports["ɵr"] = CatalogOptionsService;
4772
- exports["ɵs"] = IconCacheService;
4773
- exports["ɵt"] = CatalogFilterContentPurchaseModule;
4774
- exports["ɵu"] = CatalogFilterContentPurchaseComponent;
4775
- exports["ɵv"] = CatalogFilterContentLogisticsModule;
4776
- exports["ɵw"] = CatalogFilterContentLogisticsComponent;
4777
- exports["ɵx"] = CatalogFilterComponent;
4778
- exports["ɵy"] = ResponsiveTextModule;
4779
- exports["ɵz"] = ResponsiveTextComponent;
5018
+ exports["ɵh"] = CacheField;
5019
+ exports["ɵi"] = IconCacheService;
5020
+ exports["ɵj"] = CatalogFilterContentPurchaseModule;
5021
+ exports["ɵk"] = CatalogFilterContentPurchaseComponent;
5022
+ exports["ɵl"] = CatalogFilterContentLogisticsModule;
5023
+ exports["ɵm"] = CatalogFilterContentLogisticsComponent;
5024
+ exports["ɵn"] = CatalogFilterComponent;
5025
+ exports["ɵo"] = ResponsiveTextModule;
5026
+ exports["ɵp"] = ResponsiveTextComponent;
5027
+ exports["ɵq"] = CatalogCategoriesComponent;
5028
+ exports["ɵr"] = CatalogExternalSourcesComponent;
5029
+ exports["ɵs"] = CatalogNavigationComponent;
5030
+ exports["ɵt"] = CatalogSearchHeaderComponent;
5031
+ exports["ɵu"] = CatalogArticleTileComponent;
5032
+ exports["ɵv"] = ArticleBaseComponent;
5033
+ exports["ɵw"] = VisibilityObserverModule;
5034
+ exports["ɵx"] = VisibilityObserverMasterDirective;
5035
+ exports["ɵy"] = VisibilityObserverDirective;
5036
+ exports["ɵz"] = CatalogSearchResultTileComponent;
4780
5037
 
4781
5038
  Object.defineProperty(exports, '__esModule', { value: true });
4782
5039