@ikas/bp-storefront 0.91.0 → 0.92.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initIkasBrand as t}from"../brand/init.js";import{initIkasCategory as r}from"../category/init.js";import{initIkasHTMLMetaData as i}from"../html-meta-data/init.js";import{initIkasProductAttributeValue as
|
|
1
|
+
import{initIkasBrand as t}from"../brand/init.js";import{initIkasCategory as r}from"../category/init.js";import{initIkasHTMLMetaData as i}from"../html-meta-data/init.js";import{initIkasProductAttributeValue as o}from"./attribute-value/init.js";import{initIkasProductGroup as a}from"./group/init.js";import{initIkasProductVariant as n}from"./variant/init.js";import{initIkasProductVariantType as f}from"./variant-type/init.js";var e={};function m(e,m){e.metaData&&i(e.metaData,m),e.brand&&t(e.brand,m),e.categories.forEach(function(t){return r(t,m)}),e.variants.forEach(n),e.attributes.forEach(o),e.variantTypes.forEach(function(t){return f(t,m)}),e.productGroup&&a(e.productGroup,m),u(e)}function u(t){t.variants.forEach(function(r){var i,o;e[r.id]&&(null===(i=t.campaignOffers)||void 0===i?void 0:i.length)&&0===(null===(o=t.offers)||void 0===o?void 0:o.length)||(e[r.id]=t)})}function c(t){return e[t]}export{c as getProductFromStore,m as initIkasProduct,u as initIkasProductExtraFields,e as productVariantStore};
|