@colijnit/product 257.1.11 → 257.1.12

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.
@@ -6,13 +6,11 @@ import { ProductEventService } from '../../service/product-event.service';
6
6
  import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
7
7
  import { ProductSettingsService } from '../../service/product-settings.service';
8
8
  import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
9
- import { ProductConnectorAdapterService } from '../../service/product-connector-adapter.service';
10
9
  export declare class ProductAddtocartComponent implements OnInit, OnDestroy {
11
10
  iconCache: IconCacheService;
12
11
  private _ioneControllerService;
13
12
  private _appEventService;
14
13
  private _settingsService;
15
- private _productConnectorAdapterService;
16
14
  readonly icon: typeof IconEnum;
17
15
  addToCartButton: ElementRef;
18
16
  article: ArticleFullObject;
@@ -31,11 +29,10 @@ export declare class ProductAddtocartComponent implements OnInit, OnDestroy {
31
29
  showRelatedPopup: EventEmitter<boolean>;
32
30
  showQuoteButton: boolean;
33
31
  private _quantity;
34
- constructor(iconCache: IconCacheService, _ioneControllerService: ProductConnectorService, _appEventService: ProductEventService, _settingsService: ProductSettingsService, _productConnectorAdapterService: ProductConnectorAdapterService);
32
+ constructor(iconCache: IconCacheService, _ioneControllerService: ProductConnectorService, _appEventService: ProductEventService, _settingsService: ProductSettingsService);
35
33
  ngOnInit(): void;
36
34
  ngOnDestroy(): void;
37
35
  handleAddToCartClick(quantity: number): Promise<void>;
38
36
  handleAddToQuoteClick(quantity: number): Promise<void>;
39
37
  private _getJSONFromArticleObject;
40
- private _getGeneratedArtDirectly;
41
38
  }
@@ -29,7 +29,6 @@ export declare class ProductConnectorAdapterService implements OnDestroy {
29
29
  getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
30
30
  getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
31
31
  getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: any, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
32
- getGeneratedArtDirectly(goodId: number, showLoader: boolean): Promise<number>;
33
32
  getGoodIdFromArticleNr(sku: string): Promise<number>;
34
33
  getArticleFullObject(goodId: number, showLoader?: boolean): Promise<ArticleFullObject>;
35
34
  getSuperArticle(id: string, branch?: string): Promise<SuperArticle>;
@@ -33,7 +33,6 @@ export declare class ProductConnectorService implements OnDestroy {
33
33
  getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
34
34
  getSuperArticle(id: string): Promise<SuperArticle>;
35
35
  getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
36
- getGeneratedArtDirectly(goodId: number, showLoader?: boolean): Promise<number>;
37
36
  addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
38
37
  onShowLoaderChange(showLoader: boolean): void;
39
38
  }
@@ -31,8 +31,8 @@
31
31
  function Version() {
32
32
  this.name = "@colijnit/product";
33
33
  this.description = "Product detail page project for iOne";
34
- this.symVer = "257.1.11";
35
- this.publishDate = "2-7-2025 11:03:13";
34
+ this.symVer = "257.1.12";
35
+ this.publishDate = "9-7-2025 14:29:11";
36
36
  }
37
37
  return Version;
38
38
  }());
@@ -748,17 +748,6 @@
748
748
  });
749
749
  });
750
750
  };
751
- ProductConnectorAdapterService.prototype.getGeneratedArtDirectly = function (goodId, showLoader) {
752
- return __awaiter(this, void 0, void 0, function () {
753
- var _this = this;
754
- return __generator(this, function (_a) {
755
- return [2 /*return*/, this.articleConnector.getGeneratedArtDirectly(goodId, showLoader).catch(function (messages) {
756
- _this._eventService.errorMessage.next(messages);
757
- return null;
758
- })];
759
- });
760
- });
761
- };
762
751
  ProductConnectorAdapterService.prototype.getGoodIdFromArticleNr = function (sku) {
763
752
  return __awaiter(this, void 0, void 0, function () {
764
753
  var response;
@@ -1313,10 +1302,6 @@
1313
1302
  if (showLoader === void 0) { showLoader = true; }
1314
1303
  return this._adapterService.getJsonArticleFlatTree(goodId, goodType, quantity, externalSource, showLoader, this._instanceId, configuratorStatistics);
1315
1304
  };
1316
- ProductConnectorService.prototype.getGeneratedArtDirectly = function (goodId, showLoader) {
1317
- if (showLoader === void 0) { showLoader = true; }
1318
- return this._adapterService.getGeneratedArtDirectly(goodId, showLoader);
1319
- };
1320
1305
  ProductConnectorService.prototype.addWebSessionTransactionLine = function (transactionUuid, sku, quantity) {
1321
1306
  return __awaiter(this, void 0, void 0, function () {
1322
1307
  return __generator(this, function (_a) {
@@ -1806,7 +1791,7 @@
1806
1791
  this._ione.getFullArticle(this._sku).then(function (article) {
1807
1792
  _this.article = article;
1808
1793
  if (_this.article) {
1809
- _this.configurable = _this.article.goodType === 'B' && (_this.article.isConfigurable || _this.article.isConfigurable === undefined);
1794
+ _this.configurable = _this.article.goodType === 'B';
1810
1795
  if (_this.configurable) {
1811
1796
  _this.showAddToCart = false;
1812
1797
  _this.currentView = SelectorType.TwoD;
@@ -1844,7 +1829,7 @@
1844
1829
  ProductPageComponent.decorators = [
1845
1830
  { type: i0.Component, args: [{
1846
1831
  selector: 'app-product-page',
1847
- template: "<ng-container *ngIf=\"settingsLoaded\">\r\n <div class=\"page-wrapper\">\r\n <div class=\"page-wrapper-content\">\r\n <div class=\"page-wrapper-left\">\r\n <div class=\"product-image-container\">\r\n <div class=\"product-page-block-selector-type\">\r\n <app-product-selector-type class=\"default-padding\"\r\n [(currentType)]=\"currentView\"\r\n [show2D]=\"configurable\"\r\n [show3D]=\"threeD\"\r\n ></app-product-selector-type>\r\n </div>\r\n <div class=\"product-page-block-image default-padding\" [class.full]=\"fullScreen\">\r\n <app-image-carousel [@toggleVisibilityByState]=\"show2D ? 'show' : 'hide'\" [images]=\"article?.images\" [showRefresh]=\"configurable && threeD\"></app-image-carousel>\r\n <ng-container *ngIf=\"settingsLoaded && this.configurable\">\r\n <threed-configurator #configurator class=\"threed-configurator\"\r\n [class.configurator-full-screen]=\"fullScreen\"\r\n [@toggleVisibilityByState]=\"show3D ? 'show' : 'hide'\"\r\n [@toggleFullScreen]=\"fullScreen ? 'fullscreen' : 'halfscreen'\"\r\n ></threed-configurator>\r\n </ng-container>\r\n <co-icon #fullscreenbutton class=\"fullscreen-button\" *ngIf=\"show3D\"\r\n [@toggleTopLeft]=\"fullScreen ? 'fullscreen' : 'halfscreen'\"\r\n [iconData]=\"iconCache.getIcon(fullScreenIcon)\"\r\n (click)=\"showFullScreen()\"></co-icon>\r\n <co-icon class=\"threed-watermark\" *ngIf=\"show3D && fullScreen\"\r\n [iconData]=\"iconCache.getIcon(icon.Logo)\"></co-icon>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"page-wrapper-right\">\r\n <div class=\"product-page-block-description\">\r\n <app-product-description class=\"default-padding\" [article]=\"article\"></app-product-description>\r\n </div>\r\n <div class=\"product-page-block-additional\">\r\n <div class=\"product-page-block-additional-description\">\r\n <app-product-additional-description class=\"default-padding\" [article]=\"article\"></app-product-additional-description>\r\n </div>\r\n <div class=\"product-page-block-price\" [class.full]=\"configuring\">\r\n <app-product-price class=\"s-padding\" *ngIf=\"!configuring\"\r\n [pricing]=\"article?.pricing\"\r\n [configurable]=\"configurable\"\r\n ></app-product-price>\r\n <ng-container *ngIf=\"settingsLoaded\">\r\n <threed-selections #selections class=\"threed-selections\" [class.show-selections]=\"configuring\" [@toggleFullScreenRight]=\"fullScreen ? 'fullscreen' : 'halfscreen'\"\r\n [class.default-padding]=\"!fullScreen\"\r\n [class.show-full-screen]=\"fullScreen\"\r\n [class.mini-scrollbar]=\"fullScreen\"\r\n [sku]=\"sku\"\r\n [settings]=\"settings\"\r\n (onUserActionFromThreeD)=\"configuring = true\"\r\n (instanceSet)=\"setInstance($event)\"\r\n (onImageReceived)=\"appEventService.onImageReceived.next($event)\"\r\n (onRenderStarted)=\"appEventService.onRenderStarted.next()\"\r\n (onDraftRenderImageReceived)=\"appEventService.onDraftRenderImageReceived.next($event)\"\r\n (onArticleReceived)=\"appEventService.onArticleReceived.next($event.detail)\"\r\n (onSelectionsReceived)=\"appEventService.onSelectionsReceived.next($event.detail)\"\r\n (onArticleInfoReceived)=\"appEventService.onArticleInfoReceived.next($event.detail)\"\r\n (onAnswersAvailable)=\"appEventService.onAnswersAvailable.next($event.detail)\"\r\n ></threed-selections>\r\n </ng-container>\r\n </div>\r\n <div class=\"product-page-block-addtocart no-padding product-action-buttons\" *ngIf=\"!configuring\" [@toggleTopRight]=\"fullScreen ? 'fullscreen' : 'halfscreen'\">\r\n <app-product-addtocart\r\n [configurable]=\"configurable\"\r\n [createFrozenArticle]=\"createFrozenArticle\"\r\n [configuring]=\"configuring\"\r\n [showAddToCart]=\"showAddToCart\"\r\n [article]=\"article\"\r\n [externalSource]=\"externalSource\"\r\n [isReturn]=\"isReturn\"\r\n (startConfiguration)=\"handleStartConfiguration()\"\r\n (showRelatedPopup)=\"handlePopUpChange($event)\"\r\n ></app-product-addtocart>\r\n </div>\r\n <div class=\"addtocart-reserved product-action-buttons\" *ngIf=\"configuring\" [class.full-screen]=\"fullScreen\">\r\n <app-product-addtocart class=\"default-padding\"\r\n [configurable]=\"false\"\r\n [fullscreen]=\"fullScreen\"\r\n [showAddToCart]=\"showAddToCart\"\r\n [configuring]=\"configuring\"\r\n [article]=\"article\"\r\n [externalSource]=\"externalSource\"\r\n [isReturn]=\"isReturn\"\r\n (startConfiguration)=\"handleStartConfiguration()\"\r\n ></app-product-addtocart>\r\n </div>\r\n <div class=\"product-page-block-variants\">\r\n <app-product-related class=\"no-padding\" *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"\r\n [externalSource]=\"externalSource\"\r\n [articles]=\"article?.relatedArticles\" [refType]=\"64\" [label]=\"'VARIANTS' | localize\"></app-product-related>\r\n </div>\r\n <div class=\"product-page-block-stock\">\r\n <app-product-stock class=\"no-padding\" [goodId]=\"article?.goodId\" (openStockEvent)=\"openStock()\"></app-product-stock>\r\n </div>\r\n <div class=\"product-page-block-delivery\">\r\n <app-product-delivery class=\"no-padding\" [stockAndDelivery]=\"stockAndDelivery\"></app-product-delivery>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"page-wrapper-content\">\r\n <div class=\"page-wrapper-left\">\r\n <app-product-info-tabs class=\"no-padding\" [article]=\"article\"></app-product-info-tabs>\r\n </div>\r\n <div class=\"page-wrapper-right\">\r\n <div class=\"product-page-block-related s-padding\">\r\n <app-product-related\r\n *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"\r\n [externalSource]=\"externalSource\"\r\n [articles]=\"article?.relatedArticles\"\r\n [refType]=\"1\"\r\n [label]=\"'RELATED_PRODUCTS' | localize\">\r\n </app-product-related>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"page-wrapper-content no-top-margin\">\r\n <div class=\"page-wrapper-full\">\r\n <div class=\"product-page-block-alternatives s-padding\">\r\n <app-product-related\r\n *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"\r\n [externalSource]=\"externalSource\"\r\n [articles]=\"article?.relatedArticles\"\r\n [refType]=\"4\"\r\n [isSmallModus]=\"false\"\r\n [label]=\"'ALTERNATIVE_PRODUCTS' | localize\">\r\n </app-product-related>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <div *ngIf=\"showRelatedProductsPopup\">\r\n <co-product-dialog\r\n [mainArticle]=\"article\"\r\n [articles]=\"article?.relatedArticles\"\r\n [refType]=\"1\"\r\n (closeRelatedPopup)=\"handlePopUpChange($event)\"\r\n >\r\n </co-product-dialog>\r\n\r\n<!-- <app-product-related class=\"no-padding\" *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"-->\r\n<!-- [articles]=\"article?.relatedArticles\" [refType]=\"64\" [label]=\"'VARIANTS' | localize\"></app-product-related>-->\r\n </div>\r\n\r\n\r\n </div>\r\n</ng-container>\r\n",
1832
+ template: "<ng-container *ngIf=\"settingsLoaded\">\r\n <div class=\"page-wrapper\">\r\n <div class=\"page-wrapper-content\">\r\n <div class=\"page-wrapper-left\">\r\n <div class=\"product-image-container\">\r\n <div class=\"product-page-block-selector-type\">\r\n <app-product-selector-type class=\"default-padding\"\r\n [(currentType)]=\"currentView\"\r\n [show2D]=\"configurable\"\r\n [show3D]=\"threeD\"\r\n ></app-product-selector-type>\r\n </div>\r\n <div class=\"product-page-block-image default-padding\" [class.full]=\"fullScreen\">\r\n <app-image-carousel [@toggleVisibilityByState]=\"show2D ? 'show' : 'hide'\" [images]=\"article?.images\" [showRefresh]=\"configurable && threeD\"></app-image-carousel>\r\n <ng-container *ngIf=\"settingsLoaded\">\r\n <threed-configurator #configurator class=\"threed-configurator\"\r\n [class.configurator-full-screen]=\"fullScreen\"\r\n [@toggleVisibilityByState]=\"show3D ? 'show' : 'hide'\"\r\n [@toggleFullScreen]=\"fullScreen ? 'fullscreen' : 'halfscreen'\"\r\n ></threed-configurator>\r\n </ng-container>\r\n <co-icon #fullscreenbutton class=\"fullscreen-button\" *ngIf=\"show3D\"\r\n [@toggleTopLeft]=\"fullScreen ? 'fullscreen' : 'halfscreen'\"\r\n [iconData]=\"iconCache.getIcon(fullScreenIcon)\"\r\n (click)=\"showFullScreen()\"></co-icon>\r\n <co-icon class=\"threed-watermark\" *ngIf=\"show3D && fullScreen\"\r\n [iconData]=\"iconCache.getIcon(icon.Logo)\"></co-icon>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"page-wrapper-right\">\r\n <div class=\"product-page-block-description\">\r\n <app-product-description class=\"default-padding\" [article]=\"article\"></app-product-description>\r\n </div>\r\n <div class=\"product-page-block-additional\">\r\n <div class=\"product-page-block-additional-description\">\r\n <app-product-additional-description class=\"default-padding\" [article]=\"article\"></app-product-additional-description>\r\n </div>\r\n <div class=\"product-page-block-price\" [class.full]=\"configuring\">\r\n <app-product-price class=\"s-padding\" *ngIf=\"!configuring\"\r\n [pricing]=\"article?.pricing\"\r\n [configurable]=\"configurable\"\r\n ></app-product-price>\r\n <ng-container *ngIf=\"settingsLoaded\">\r\n <threed-selections #selections class=\"threed-selections\" [class.show-selections]=\"configuring\" [@toggleFullScreenRight]=\"fullScreen ? 'fullscreen' : 'halfscreen'\"\r\n [class.default-padding]=\"!fullScreen\"\r\n [class.show-full-screen]=\"fullScreen\"\r\n [class.mini-scrollbar]=\"fullScreen\"\r\n [sku]=\"sku\"\r\n [settings]=\"settings\"\r\n (onUserActionFromThreeD)=\"configuring = true\"\r\n (instanceSet)=\"setInstance($event)\"\r\n (onImageReceived)=\"appEventService.onImageReceived.next($event)\"\r\n (onRenderStarted)=\"appEventService.onRenderStarted.next()\"\r\n (onDraftRenderImageReceived)=\"appEventService.onDraftRenderImageReceived.next($event)\"\r\n (onArticleReceived)=\"appEventService.onArticleReceived.next($event.detail)\"\r\n (onSelectionsReceived)=\"appEventService.onSelectionsReceived.next($event.detail)\"\r\n (onArticleInfoReceived)=\"appEventService.onArticleInfoReceived.next($event.detail)\"\r\n (onAnswersAvailable)=\"appEventService.onAnswersAvailable.next($event.detail)\"\r\n ></threed-selections>\r\n </ng-container>\r\n </div>\r\n <div class=\"product-page-block-addtocart no-padding product-action-buttons\" *ngIf=\"!configuring\" [@toggleTopRight]=\"fullScreen ? 'fullscreen' : 'halfscreen'\">\r\n <app-product-addtocart\r\n [configurable]=\"configurable\"\r\n [createFrozenArticle]=\"createFrozenArticle\"\r\n [configuring]=\"configuring\"\r\n [showAddToCart]=\"showAddToCart\"\r\n [article]=\"article\"\r\n [externalSource]=\"externalSource\"\r\n [isReturn]=\"isReturn\"\r\n (startConfiguration)=\"handleStartConfiguration()\"\r\n (showRelatedPopup)=\"handlePopUpChange($event)\"\r\n ></app-product-addtocart>\r\n </div>\r\n <div class=\"addtocart-reserved product-action-buttons\" *ngIf=\"configuring\" [class.full-screen]=\"fullScreen\">\r\n <app-product-addtocart class=\"default-padding\"\r\n [configurable]=\"false\"\r\n [fullscreen]=\"fullScreen\"\r\n [showAddToCart]=\"showAddToCart\"\r\n [configuring]=\"configuring\"\r\n [article]=\"article\"\r\n [externalSource]=\"externalSource\"\r\n [isReturn]=\"isReturn\"\r\n (startConfiguration)=\"handleStartConfiguration()\"\r\n ></app-product-addtocart>\r\n </div>\r\n <div class=\"product-page-block-variants\">\r\n <app-product-related class=\"no-padding\" *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"\r\n [externalSource]=\"externalSource\"\r\n [articles]=\"article?.relatedArticles\" [refType]=\"64\" [label]=\"'VARIANTS' | localize\"></app-product-related>\r\n </div>\r\n <div class=\"product-page-block-stock\">\r\n <app-product-stock class=\"no-padding\" [goodId]=\"article?.goodId\" (openStockEvent)=\"openStock()\"></app-product-stock>\r\n </div>\r\n <div class=\"product-page-block-delivery\">\r\n <app-product-delivery class=\"no-padding\" [stockAndDelivery]=\"stockAndDelivery\"></app-product-delivery>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"page-wrapper-content\">\r\n <div class=\"page-wrapper-left\">\r\n <app-product-info-tabs class=\"no-padding\" [article]=\"article\"></app-product-info-tabs>\r\n </div>\r\n <div class=\"page-wrapper-right\">\r\n <div class=\"product-page-block-related s-padding\">\r\n <app-product-related\r\n *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"\r\n [externalSource]=\"externalSource\"\r\n [articles]=\"article?.relatedArticles\"\r\n [refType]=\"1\"\r\n [label]=\"'RELATED_PRODUCTS' | localize\">\r\n </app-product-related>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"page-wrapper-content no-top-margin\">\r\n <div class=\"page-wrapper-full\">\r\n <div class=\"product-page-block-alternatives s-padding\">\r\n <app-product-related\r\n *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"\r\n [externalSource]=\"externalSource\"\r\n [articles]=\"article?.relatedArticles\"\r\n [refType]=\"4\"\r\n [isSmallModus]=\"false\"\r\n [label]=\"'ALTERNATIVE_PRODUCTS' | localize\">\r\n </app-product-related>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <div *ngIf=\"showRelatedProductsPopup\">\r\n <co-product-dialog\r\n [mainArticle]=\"article\"\r\n [articles]=\"article?.relatedArticles\"\r\n [refType]=\"1\"\r\n (closeRelatedPopup)=\"handlePopUpChange($event)\"\r\n >\r\n </co-product-dialog>\r\n\r\n<!-- <app-product-related class=\"no-padding\" *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"-->\r\n<!-- [articles]=\"article?.relatedArticles\" [refType]=\"64\" [label]=\"'VARIANTS' | localize\"></app-product-related>-->\r\n </div>\r\n\r\n\r\n </div>\r\n</ng-container>\r\n",
1848
1833
  animations: [
1849
1834
  animations.trigger('toggleFullScreen', [
1850
1835
  animations.state('fullscreen', animations.style({ 'position': 'fixed', 'top': '0', 'left': '0', 'width': '100%', 'height': '100%' })),
@@ -2483,12 +2468,11 @@
2483
2468
  ];
2484
2469
 
2485
2470
  var ProductAddtocartComponent = /** @class */ (function () {
2486
- function ProductAddtocartComponent(iconCache, _ioneControllerService, _appEventService, _settingsService, _productConnectorAdapterService) {
2471
+ function ProductAddtocartComponent(iconCache, _ioneControllerService, _appEventService, _settingsService) {
2487
2472
  this.iconCache = iconCache;
2488
2473
  this._ioneControllerService = _ioneControllerService;
2489
2474
  this._appEventService = _appEventService;
2490
2475
  this._settingsService = _settingsService;
2491
- this._productConnectorAdapterService = _productConnectorAdapterService;
2492
2476
  this.icon = IconEnum;
2493
2477
  this.createFrozenArticle = true;
2494
2478
  this.configurable = false;
@@ -2530,52 +2514,40 @@
2530
2514
  };
2531
2515
  ProductAddtocartComponent.prototype.handleAddToCartClick = function (quantity) {
2532
2516
  return __awaiter(this, void 0, void 0, function () {
2533
- var article, generatedGoodId, articleFull, article, article, article;
2517
+ var article, article, article;
2534
2518
  return __generator(this, function (_a) {
2535
2519
  switch (_a.label) {
2536
2520
  case 0:
2537
- if (!this.createFrozenArticle) return [3 /*break*/, 11];
2538
- if (!(this.article.goodType === 'B')) return [3 /*break*/, 6];
2539
- if (!this.article.isConfigurable) return [3 /*break*/, 2];
2521
+ if (!this.createFrozenArticle) return [3 /*break*/, 7];
2522
+ if (!(this.article.goodType === 'B')) return [3 /*break*/, 2];
2540
2523
  return [4 /*yield*/, this._getJSONFromArticleObject({ article: this.article, quantity: quantity })];
2541
2524
  case 1:
2542
2525
  article = _a.sent();
2543
2526
  if (article) {
2544
2527
  this._appEventService.onAddToCart.next({ article: article, quantity: quantity });
2545
2528
  }
2546
- return [3 /*break*/, 5];
2547
- case 2: return [4 /*yield*/, this._getGeneratedArtDirectly(this.article.goodId)];
2548
- case 3:
2549
- generatedGoodId = _a.sent();
2550
- if (!generatedGoodId) return [3 /*break*/, 5];
2551
- return [4 /*yield*/, this._productConnectorAdapterService.getArticleFullObject(generatedGoodId, true)];
2552
- case 4:
2553
- articleFull = _a.sent();
2554
- article = this._ioneControllerService.convertArticleFullObjectToArticleExtended(articleFull);
2555
- this._appEventService.onAddToCart.next({ article: article, quantity: quantity });
2556
- _a.label = 5;
2557
- case 5: return [3 /*break*/, 10];
2558
- case 6:
2529
+ return [3 /*break*/, 6];
2530
+ case 2:
2559
2531
  article = void 0;
2560
- if (!!!this.externalSource) return [3 /*break*/, 8];
2532
+ if (!!!this.externalSource) return [3 /*break*/, 4];
2561
2533
  return [4 /*yield*/, this._getJSONFromArticleObject({ article: this.article, quantity: quantity })];
2562
- case 7:
2534
+ case 3:
2563
2535
  article = _a.sent();
2564
- return [3 /*break*/, 9];
2565
- case 8:
2536
+ return [3 /*break*/, 5];
2537
+ case 4:
2566
2538
  article = this._ioneControllerService.convertArticleFullObjectToArticleExtended(this.article);
2567
- _a.label = 9;
2568
- case 9:
2539
+ _a.label = 5;
2540
+ case 5:
2569
2541
  if (article) {
2570
2542
  this._appEventService.onAddToCart.next({ article: article, quantity: quantity });
2571
2543
  }
2572
- _a.label = 10;
2573
- case 10: return [3 /*break*/, 12];
2574
- case 11:
2544
+ _a.label = 6;
2545
+ case 6: return [3 /*break*/, 8];
2546
+ case 7:
2575
2547
  article = this._ioneControllerService.convertArticleFullObjectToArticleExtended(this.article);
2576
2548
  this._appEventService.onAddToCart.next({ article: article, quantity: quantity });
2577
- _a.label = 12;
2578
- case 12: return [2 /*return*/];
2549
+ _a.label = 8;
2550
+ case 8: return [2 /*return*/];
2579
2551
  }
2580
2552
  });
2581
2553
  });
@@ -2614,16 +2586,6 @@
2614
2586
  });
2615
2587
  });
2616
2588
  };
2617
- ProductAddtocartComponent.prototype._getGeneratedArtDirectly = function (goodId) {
2618
- return __awaiter(this, void 0, void 0, function () {
2619
- return __generator(this, function (_a) {
2620
- switch (_a.label) {
2621
- case 0: return [4 /*yield*/, this._ioneControllerService.getGeneratedArtDirectly(goodId, true)];
2622
- case 1: return [2 /*return*/, _a.sent()];
2623
- }
2624
- });
2625
- });
2626
- };
2627
2589
  return ProductAddtocartComponent;
2628
2590
  }());
2629
2591
  ProductAddtocartComponent.decorators = [
@@ -2637,8 +2599,7 @@
2637
2599
  { type: IconCacheService },
2638
2600
  { type: ProductConnectorService },
2639
2601
  { type: ProductEventService },
2640
- { type: ProductSettingsService },
2641
- { type: ProductConnectorAdapterService }
2602
+ { type: ProductSettingsService }
2642
2603
  ]; };
2643
2604
  ProductAddtocartComponent.propDecorators = {
2644
2605
  addToCartButton: [{ type: i0.ViewChild, args: ['addtocartbutton', { read: i0.ElementRef },] }],