import { CmsConfig , ContentSlotComponentData , CmsStructureConfig , CmsPageSlotsConfig , } from '@spartacus/core' ; import { LayoutConfig } from '@spartacus/storefront' ; import { DvntProductDetailsComponent } from '../dvnt-product-details/dvnt-product-details.component' ; import { DvntProductTabsComponent } from '../dvnt-product-tabs/dvnt-product-tabs.component' ; import { DvntProductUpSellingReferencesComponent } from '../dvnt-product-up-selling-references/dvnt-product-up-selling-references.component' ; import { DvntStockNotificationComponent } from '../dvnt-stock-notification/dvnt-stock-notification.component' ; export const productDetailsLayoutConfig = { layoutSlots : { ProductDetailsPageTemplate : { slots : [ 'DvntProductDetails' , 'UpSelling' ] , } , } , } as LayoutConfig ; export const productDetailsCmsConfig = < CmsConfig > { cmsComponents : { DvntProductDetailsComponent : { component : DvntProductDetailsComponent , } , CMSTabParagraphContainer : { component : DvntProductTabsComponent , } , ProductReferencesComponent : { component : DvntProductUpSellingReferencesComponent , } , StockNotificationComponent : { component : DvntStockNotificationComponent , } , } , } ; export const staticComponents = { DvntProductDetailsComponent : { typeCode : 'DvntProductDetailsComponent' , flexType : 'DvntProductDetailsComponent' , uid : 'DvntProductDetailsComponent' , } , DvntStockNotificationComponent : { typeCode : 'DvntStockNotificationComponent' , flexType : 'DvntStockNotificationComponent' , uid : 'DvntStockNotificationComponent' , } , } ; const cmsPageSlotConfig = { DvntProductDetails : { componentIds : [ 'DvntProductDetailsComponent' ] , } , } ; export function productDetailsCmsStructureConfig ( ) { return { cmsStructure : { components : { ... staticComponents , } , slots : { ... cmsPageSlotConfig , } , } , } ; } const productDetailsTranslationOverwrites = { en : { product : { productDetails : { quantity : 'Quantity' , } , productReview : { readAll : 'Read all {{count}} review' , } , } , } , } ; export const productDetailsTranslationsConfig = { i18n : { resources : productDetailsTranslationOverwrites } , } ;