@colijnit/product 261.20.3 → 262.1.1

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.
Binary file
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Pipe, EventEmitter, Output, Input, Component, ElementRef, HostBinding, HostListener, ViewChild, ChangeDetectionStrategy, SecurityContext, ViewEncapsulation, NgModule, CUSTOM_ELEMENTS_SCHEMA, PLATFORM_ID, Inject, NO_ERRORS_SCHEMA } from '@angular/core';
3
- import { Subject, BehaviorSubject, combineLatest } from 'rxjs';
3
+ import { Subject, BehaviorSubject, ReplaySubject, combineLatest, from } from 'rxjs';
4
4
  import { Options } from '@colijnit/ioneconnector/build/model/options';
5
5
  import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
6
6
  import { SuperArticle } from '@colijnit/articleapi/build/model/super-article';
@@ -23,19 +23,19 @@ import { IconModule, LoaderModule, ScrollContainerModule, InputNumberPickerModul
23
23
  import { CoDocument } from '@colijnit/mainapi/build/model/co-document.bo';
24
24
  import * as i6$1 from '@angular/cdk/overlay';
25
25
  import { CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
26
+ import * as i1$1 from '@angular/common';
27
+ import { CommonModule, isPlatformBrowser } from '@angular/common';
26
28
  import { ConfiguratorStatisticsEnvironment } from '@colijnit/articleapi/build/model/configurator-statistics-environment';
27
29
  import * as i3 from '@colijnit/sharedcomponents';
28
30
  import { FilesUploadModule } from '@colijnit/sharedcomponents';
29
- import * as i5$1 from '@angular/common';
30
- import { CommonModule, isPlatformBrowser } from '@angular/common';
31
31
 
32
32
  // this file is dynamically created, do not change this
33
33
  class Version {
34
34
  constructor() {
35
35
  this.name = "@colijnit/product";
36
36
  this.description = "Product detail page project for iOne";
37
- this.symVer = "261.20.3";
38
- this.publishDate = "2-4-2026, 17:07:12";
37
+ this.symVer = "262.1.1";
38
+ this.publishDate = "20-4-2026, 15:41:15";
39
39
  }
40
40
  }
41
41
 
@@ -261,6 +261,28 @@ class ProductConnectorAdapterService {
261
261
  return Promise.resolve(false);
262
262
  }
263
263
  }
264
+ async getGoogleTranslation(sourceLang, targetLang, list) {
265
+ const result = await this.mainConnector.getGoogleTranslation(sourceLang, targetLang, list);
266
+ if (result.validationResult && result.validationResult.success) {
267
+ return result.resultObject;
268
+ }
269
+ }
270
+ async googleTranslateEnabled() {
271
+ // this should always be fetched from the mainapi from the client
272
+ const response = await this.mainConnector.isGoogleTranslateEnabled();
273
+ if (response && response.validationResult && response.validationResult.success) {
274
+ return response.resultObject;
275
+ }
276
+ return false;
277
+ }
278
+ async getDefaultLanguage(upId) {
279
+ // this should always be fetched from the mainapi from the client
280
+ const response = await this.mainConnector.getPublicParams(upId);
281
+ if (response && response['defaultLanguage'] !== undefined) {
282
+ return response['defaultLanguage'];
283
+ }
284
+ return 'nl'; // just to be safe
285
+ }
264
286
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProductConnectorAdapterService, deps: [{ token: ProductEventService }], target: i0.ɵɵFactoryTarget.Injectable }); }
265
287
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProductConnectorAdapterService }); }
266
288
  }
@@ -648,6 +670,15 @@ class ProductConnectorService {
648
670
  async savePreset() {
649
671
  return await this._adapterService.savePreset();
650
672
  }
673
+ async getGoogleTranslation(sourceLang, targetLang, list) {
674
+ return await this._adapterService.getGoogleTranslation(sourceLang, targetLang, list);
675
+ }
676
+ googleTranslateEnabled() {
677
+ return this._adapterService.googleTranslateEnabled();
678
+ }
679
+ async getDefaultLanguage(upId) {
680
+ return await this._adapterService.getDefaultLanguage(upId);
681
+ }
651
682
  onShowLoaderChange(showLoader) {
652
683
  this._shouldShowLoader = showLoader;
653
684
  }
@@ -658,6 +689,77 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
658
689
  type: Injectable
659
690
  }], ctorParameters: () => [{ type: ProductConnectorAdapterService }, { type: ProductSettingsService }] });
660
691
 
692
+ class GoogleTranslation {
693
+ constructor(label, translation, language) {
694
+ this.label = label;
695
+ this.translation = translation;
696
+ this.language = language;
697
+ }
698
+ }
699
+ class GoogleTranslateService {
700
+ constructor(_settingsService, _connectorService) {
701
+ this._settingsService = _settingsService;
702
+ this._connectorService = _connectorService;
703
+ this._translations = [];
704
+ this._initialized = false;
705
+ this._initializedSubject = new ReplaySubject(1);
706
+ this.googleApiEnabled = false;
707
+ this._connectionSubject = combineLatest([
708
+ this._settingsService.settingsLoaded,
709
+ this._connectorService.controllerInitialized
710
+ ]).subscribe(async ([settingsInitialized, controllerInitialized]) => {
711
+ if (settingsInitialized && controllerInitialized) {
712
+ this._clientLanguage = this._settingsService.settings.languageCode;
713
+ const googleTranslateEnabled = await this._connectorService.googleTranslateEnabled();
714
+ if (googleTranslateEnabled) {
715
+ this.googleApiEnabled = true;
716
+ this._defaultLanguage = await this._connectorService.getDefaultLanguage(+this._settingsService.settings.schema);
717
+ }
718
+ this._initialized = true;
719
+ this._initializedSubject.next();
720
+ this._initializedSubject.complete();
721
+ }
722
+ });
723
+ }
724
+ ngOnDestroy() {
725
+ this._connectionSubject.unsubscribe();
726
+ }
727
+ async getTranslation(input) {
728
+ if (!this._initialized) {
729
+ await this._initializedSubject.toPromise();
730
+ }
731
+ if (!this.googleApiEnabled) {
732
+ return input;
733
+ }
734
+ const sourceLang = this._defaultLanguage.toLowerCase();
735
+ const targetLang = this._clientLanguage.toLowerCase();
736
+ const translationList = [input];
737
+ // When we do not need a translation
738
+ if (!input || (sourceLang === targetLang)) {
739
+ return input;
740
+ }
741
+ // When we might have cache
742
+ const result = this._translations.find(item => item.label === input && item.language === targetLang);
743
+ if (result && result.translation) {
744
+ return result.translation;
745
+ }
746
+ // translate
747
+ const translation = await this._connectorService.getGoogleTranslation(sourceLang, targetLang, translationList);
748
+ const key = Object.keys(translation)[0];
749
+ const cache = new GoogleTranslation(input, translation[key], targetLang);
750
+ this._translations.push(cache);
751
+ return translation[key];
752
+ }
753
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoogleTranslateService, deps: [{ token: ProductSettingsService }, { token: ProductConnectorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
754
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoogleTranslateService, providedIn: 'root' }); }
755
+ }
756
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoogleTranslateService, decorators: [{
757
+ type: Injectable,
758
+ args: [{
759
+ providedIn: 'root'
760
+ }]
761
+ }], ctorParameters: () => [{ type: ProductSettingsService }, { type: ProductConnectorService }] });
762
+
661
763
  class RootStorageObject {
662
764
  }
663
765
  class LocalStorageService {
@@ -1289,6 +1391,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
1289
1391
  args: ['class.resizing']
1290
1392
  }] } });
1291
1393
 
1394
+ class GoogleTranslatePipe {
1395
+ constructor(_googleTranslateService) {
1396
+ this._googleTranslateService = _googleTranslateService;
1397
+ }
1398
+ transform(value) {
1399
+ return from(this._googleTranslateService.getTranslation(value));
1400
+ }
1401
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoogleTranslatePipe, deps: [{ token: GoogleTranslateService }], target: i0.ɵɵFactoryTarget.Pipe }); }
1402
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: GoogleTranslatePipe, isStandalone: false, name: "googleTranslate" }); }
1403
+ }
1404
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoogleTranslatePipe, decorators: [{
1405
+ type: Pipe,
1406
+ args: [{
1407
+ name: 'googleTranslate',
1408
+ standalone: false
1409
+ }]
1410
+ }], ctorParameters: () => [{ type: GoogleTranslateService }] });
1411
+
1292
1412
  class ProductDescriptionComponent {
1293
1413
  constructor() { }
1294
1414
  ngOnInit() {
@@ -1297,23 +1417,23 @@ class ProductDescriptionComponent {
1297
1417
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ProductDescriptionComponent, isStandalone: false, selector: "app-product-description", inputs: { article: "article" }, ngImport: i0, template: `
1298
1418
  <div class="pd-title-wrapper">
1299
1419
  @if (article?.descriptionRetail) {
1300
- <span class="pd-description" [textContent]="article?.descriptionRetail"></span>
1420
+ <span class="pd-description" [textContent]="article?.descriptionRetail | googleTranslate | async"></span>
1301
1421
  }
1302
1422
  @if (article?.articleNr) {
1303
- <span class="pd-sku" [textContent]="article?.articleNr"></span>
1423
+ <span class="pd-sku" [textContent]="article?.articleNr | googleTranslate | async"></span>
1304
1424
  }
1305
1425
  </div>
1306
- `, isInline: true, styles: [":host{display:block}.pd-title-wrapper{margin:20px 0 0}.pd-description{color:#22313c;font-size:25px;font-weight:700;width:100%;display:block}.pd-sku{color:#5b6875;font-size:16px}@media screen and (max-width: 650px){.pd-description{font-size:21px}.pd-sku{font-size:13px}}\n"] }); }
1426
+ `, isInline: true, styles: [":host{display:block}.pd-title-wrapper{margin:20px 0 0}.pd-description{color:#22313c;font-size:25px;font-weight:700;width:100%;display:block}.pd-sku{color:#5b6875;font-size:16px}@media screen and (max-width: 650px){.pd-description{font-size:21px}.pd-sku{font-size:13px}}\n"], dependencies: [{ kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: GoogleTranslatePipe, name: "googleTranslate" }] }); }
1307
1427
  }
1308
1428
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProductDescriptionComponent, decorators: [{
1309
1429
  type: Component,
1310
1430
  args: [{ selector: 'app-product-description', template: `
1311
1431
  <div class="pd-title-wrapper">
1312
1432
  @if (article?.descriptionRetail) {
1313
- <span class="pd-description" [textContent]="article?.descriptionRetail"></span>
1433
+ <span class="pd-description" [textContent]="article?.descriptionRetail | googleTranslate | async"></span>
1314
1434
  }
1315
1435
  @if (article?.articleNr) {
1316
- <span class="pd-sku" [textContent]="article?.articleNr"></span>
1436
+ <span class="pd-sku" [textContent]="article?.articleNr | googleTranslate | async"></span>
1317
1437
  }
1318
1438
  </div>
1319
1439
  `, standalone: false, styles: [":host{display:block}.pd-title-wrapper{margin:20px 0 0}.pd-description{color:#22313c;font-size:25px;font-weight:700;width:100%;display:block}.pd-sku{color:#5b6875;font-size:16px}@media screen and (max-width: 650px){.pd-description{font-size:21px}.pd-sku{font-size:13px}}\n"] }]
@@ -1376,18 +1496,18 @@ class ProductAdditionalDescriptionComponent {
1376
1496
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ProductAdditionalDescriptionComponent, isStandalone: false, selector: "app-product-additional-description", inputs: { article: "article" }, ngImport: i0, template: `
1377
1497
  @if (description !== '') {
1378
1498
  <div class="pd-additional-description">
1379
- <p [innerHTML]="description"></p>
1499
+ <p [innerHTML]="description | googleTranslate | async"></p>
1380
1500
  <button class="pd-read-more-btn" [textContent]="'READ_MORE' | localize" (click)="onReadMore()"></button>
1381
1501
  </div>
1382
1502
  }
1383
- `, isInline: true, styles: [":host{display:block;padding-top:0!important}:host *:focus{outline:0!important}:host .pd-additional-description{line-height:190%;color:#22313c;font-size:13px}:host .pd-read-more-btn{color:#2b60a7;border:none;background:transparent;cursor:pointer;text-decoration:underline;font-family:iOneMontserrat}:host .pd-read-more-btn:hover{color:#74b77f}@media screen and (max-width: 650px){:host .pd-additional-description{font-size:12px}}\n"], dependencies: [{ kind: "pipe", type: LocalizePipe, name: "localize" }] }); }
1503
+ `, isInline: true, styles: [":host{display:block;padding-top:0!important}:host *:focus{outline:0!important}:host .pd-additional-description{line-height:190%;color:#22313c;font-size:13px}:host .pd-read-more-btn{color:#2b60a7;border:none;background:transparent;cursor:pointer;text-decoration:underline;font-family:iOneMontserrat}:host .pd-read-more-btn:hover{color:#74b77f}@media screen and (max-width: 650px){:host .pd-additional-description{font-size:12px}}\n"], dependencies: [{ kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "pipe", type: GoogleTranslatePipe, name: "googleTranslate" }] }); }
1384
1504
  }
1385
1505
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProductAdditionalDescriptionComponent, decorators: [{
1386
1506
  type: Component,
1387
1507
  args: [{ selector: 'app-product-additional-description', template: `
1388
1508
  @if (description !== '') {
1389
1509
  <div class="pd-additional-description">
1390
- <p [innerHTML]="description"></p>
1510
+ <p [innerHTML]="description | googleTranslate | async"></p>
1391
1511
  <button class="pd-read-more-btn" [textContent]="'READ_MORE' | localize" (click)="onReadMore()"></button>
1392
1512
  </div>
1393
1513
  }
@@ -2147,11 +2267,11 @@ class ProductPropertiesComponent {
2147
2267
  @for (property of properties; track property) {
2148
2268
  <div class="article-property">
2149
2269
  <div class="article-property-key" [textContent]="property.key | localize"></div>
2150
- <div class="article-property-value" [textContent]="property.value"></div>
2270
+ <div class="article-property-value" [textContent]="property.value | googleTranslate | async"></div>
2151
2271
  </div>
2152
2272
  }
2153
2273
  </div>
2154
- `, isInline: true, styles: [":host{display:block}.article-properties-wrapper{display:flex;flex-direction:column}.article-property{display:flex;flex-direction:row;border-bottom:1px solid #f6f5f4;padding:11px 0;font-size:13px}.article-property:first-child{border-top:1px solid #f6f5f4}.article-property-key{flex-basis:200px;flex-shrink:0;color:#5b6875}@media screen and (max-width: 450px){.article-property-key{flex-basis:130px}}\n"], dependencies: [{ kind: "pipe", type: LocalizePipe, name: "localize" }] }); }
2274
+ `, isInline: true, styles: [":host{display:block}.article-properties-wrapper{display:flex;flex-direction:column}.article-property{display:flex;flex-direction:row;border-bottom:1px solid #f6f5f4;padding:11px 0;font-size:13px}.article-property:first-child{border-top:1px solid #f6f5f4}.article-property-key{flex-basis:200px;flex-shrink:0;color:#5b6875}@media screen and (max-width: 450px){.article-property-key{flex-basis:130px}}\n"], dependencies: [{ kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "pipe", type: GoogleTranslatePipe, name: "googleTranslate" }] }); }
2155
2275
  }
2156
2276
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProductPropertiesComponent, decorators: [{
2157
2277
  type: Component,
@@ -2163,7 +2283,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2163
2283
  @for (property of properties; track property) {
2164
2284
  <div class="article-property">
2165
2285
  <div class="article-property-key" [textContent]="property.key | localize"></div>
2166
- <div class="article-property-value" [textContent]="property.value"></div>
2286
+ <div class="article-property-value" [textContent]="property.value | googleTranslate | async"></div>
2167
2287
  </div>
2168
2288
  }
2169
2289
  </div>
@@ -3671,7 +3791,8 @@ class IoneProductComponent {
3671
3791
  ProductSettingsService,
3672
3792
  ProductConnectorService,
3673
3793
  ProductEventService,
3674
- ProductConnectorAdapterService
3794
+ ProductConnectorAdapterService,
3795
+ GoogleTranslateService
3675
3796
  ], ngImport: i0, template: `
3676
3797
  @if (settingsLoaded) {
3677
3798
  <app-product-page
@@ -3702,7 +3823,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
3702
3823
  ProductSettingsService,
3703
3824
  ProductConnectorService,
3704
3825
  ProductEventService,
3705
- ProductConnectorAdapterService
3826
+ ProductConnectorAdapterService,
3827
+ GoogleTranslateService
3706
3828
  ], encapsulation: ViewEncapsulation.Emulated, standalone: false }]
3707
3829
  }], ctorParameters: () => [{ type: ProductEventService }, { type: ProductSettingsService }, { type: ProductConnectorService }, { type: LocalStorageService }], propDecorators: { sku: [{
3708
3830
  type: Input
@@ -3743,8 +3865,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
3743
3865
  class PipeModule {
3744
3866
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3745
3867
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: PipeModule, declarations: [LocalizePipe,
3746
- PriceDisplayPipe], exports: [LocalizePipe,
3747
- PriceDisplayPipe] }); }
3868
+ PriceDisplayPipe,
3869
+ GoogleTranslatePipe], exports: [LocalizePipe,
3870
+ PriceDisplayPipe,
3871
+ GoogleTranslatePipe] }); }
3748
3872
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PipeModule, providers: [
3749
3873
  LocalizePipe
3750
3874
  ] }); }
@@ -3754,14 +3878,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
3754
3878
  args: [{
3755
3879
  declarations: [
3756
3880
  LocalizePipe,
3757
- PriceDisplayPipe
3881
+ PriceDisplayPipe,
3882
+ GoogleTranslatePipe
3758
3883
  ],
3759
3884
  providers: [
3760
3885
  LocalizePipe
3761
3886
  ],
3762
3887
  exports: [
3763
3888
  LocalizePipe,
3764
- PriceDisplayPipe
3889
+ PriceDisplayPipe,
3890
+ GoogleTranslatePipe
3765
3891
  ]
3766
3892
  }]
3767
3893
  }] });
@@ -3827,14 +3953,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
3827
3953
 
3828
3954
  class ProductDescriptionModule {
3829
3955
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProductDescriptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3830
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: ProductDescriptionModule, declarations: [ProductDescriptionComponent], imports: [CommonModule], exports: [ProductDescriptionComponent] }); }
3831
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProductDescriptionModule, imports: [CommonModule] }); }
3956
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: ProductDescriptionModule, declarations: [ProductDescriptionComponent], imports: [CommonModule,
3957
+ PipeModule], exports: [ProductDescriptionComponent] }); }
3958
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProductDescriptionModule, imports: [CommonModule,
3959
+ PipeModule] }); }
3832
3960
  }
3833
3961
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProductDescriptionModule, decorators: [{
3834
3962
  type: NgModule,
3835
3963
  args: [{
3836
3964
  imports: [
3837
- CommonModule
3965
+ CommonModule,
3966
+ PipeModule
3838
3967
  ],
3839
3968
  declarations: [
3840
3969
  ProductDescriptionComponent
@@ -4026,7 +4155,7 @@ class ProductDeliveryComponent {
4026
4155
  <div class="pp-default-description" [textContent]="deliveryDescription | date:'dd MMMM yyyy'"></div>
4027
4156
  </div>
4028
4157
  </div>
4029
- `, isInline: true, styles: [":host{display:block}.product-delivery-wrapper{display:flex;flex-direction:row;align-items:center;border-bottom:1px solid #f6f5f4;padding:20px 15px}.product-delivery-wrapper .delivery-icon{margin:0 15px 0 0;width:40px;height:37px}.product-delivery-wrapper .product-delivery-fields{display:flex;flex-direction:column}.product-delivery-wrapper .product-delivery-fields .pp-default-label{font-size:14px;margin:0}@media screen and (max-width: 400px){.product-delivery-wrapper{padding:15px 0 15px 10px}.product-delivery-wrapper .delivery-icon{margin:0 15px 0 0;width:32px;height:28px}.product-delivery-wrapper .product-delivery-fields .pp-default-label{font-size:13px}}\n"], dependencies: [{ kind: "component", type: i6.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "pipe", type: i5$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }] }); }
4158
+ `, isInline: true, styles: [":host{display:block}.product-delivery-wrapper{display:flex;flex-direction:row;align-items:center;border-bottom:1px solid #f6f5f4;padding:20px 15px}.product-delivery-wrapper .delivery-icon{margin:0 15px 0 0;width:40px;height:37px}.product-delivery-wrapper .product-delivery-fields{display:flex;flex-direction:column}.product-delivery-wrapper .product-delivery-fields .pp-default-label{font-size:14px;margin:0}@media screen and (max-width: 400px){.product-delivery-wrapper{padding:15px 0 15px 10px}.product-delivery-wrapper .delivery-icon{margin:0 15px 0 0;width:32px;height:28px}.product-delivery-wrapper .product-delivery-fields .pp-default-label{font-size:13px}}\n"], dependencies: [{ kind: "component", type: i6.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }] }); }
4030
4159
  }
4031
4160
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProductDeliveryComponent, decorators: [{
4032
4161
  type: Component,