@ikas/storefront 2.0.35-alpha.6 → 2.0.35

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 (129) hide show
  1. package/build/__generated__/global-types.d.ts +0 -27
  2. package/build/__generated__/global-types.js +1 -1
  3. package/build/_virtual/index.js_commonjs-proxy2.js +1 -1
  4. package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
  5. package/build/analytics/analytics.js +1 -1
  6. package/build/analytics/googleTagManager.d.ts +0 -2
  7. package/build/analytics/googleTagManager.js +1 -1
  8. package/build/analytics/head/index.js +1 -1
  9. package/build/analytics/ikas.js +1 -1
  10. package/build/api/brand/index.js +1 -1
  11. package/build/api/category/index.js +1 -1
  12. package/build/api/checkout/index.js +1 -1
  13. package/build/api/customer/__generated__/customerLogin.d.ts +0 -7
  14. package/build/api/customer/__generated__/customerSocialLogin.d.ts +0 -7
  15. package/build/api/customer/__generated__/getMyCustomer.d.ts +0 -7
  16. package/build/api/customer/__generated__/registerCustomer.d.ts +1 -9
  17. package/build/api/customer/__generated__/saveMyCustomer.d.ts +0 -7
  18. package/build/api/customer/index.d.ts +1 -3
  19. package/build/api/customer/index.js +1 -1
  20. package/build/api/customer-review/index.js +1 -1
  21. package/build/api/customer-review-summary/index.js +1 -1
  22. package/build/api/favorite-product/index.js +1 -1
  23. package/build/api/html-meta-data/index.js +1 -1
  24. package/build/api/merchant/index.js +1 -1
  25. package/build/api/product-search/index.js +1 -1
  26. package/build/api/storefront/__generated__/getStorefront.d.ts +0 -2
  27. package/build/api/storefront/index.js +1 -1
  28. package/build/components/checkout/components/address-form/model.js +1 -1
  29. package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
  30. package/build/components/checkout/components/credit-card-form/index.js +1 -1
  31. package/build/components/checkout/components/customer-addresses/model.js +1 -1
  32. package/build/components/checkout/index.js +1 -1
  33. package/build/components/checkout/model.js +1 -1
  34. package/build/components/checkout/steps/step-success/index.js +1 -1
  35. package/build/components/page/head.js +1 -1
  36. package/build/components/page/index.js +1 -1
  37. package/build/components/page-editor/ThemeComponentEditor.js +1 -1
  38. package/build/components/page-editor/model.js +1 -1
  39. package/build/ikas.js +5 -5
  40. package/build/index.js +1 -1
  41. package/build/models/data/customer/index.d.ts +0 -2
  42. package/build/models/data/customer/index.js +1 -1
  43. package/build/models/data/index.d.ts +0 -4
  44. package/build/models/data/product/variant/index.js +1 -1
  45. package/build/models/data/storefront/index.d.ts +0 -2
  46. package/build/models/data/storefront/index.js +1 -1
  47. package/build/models/ui/blog-category-list/index.js +1 -1
  48. package/build/models/ui/blog-list/index.js +1 -1
  49. package/build/models/ui/brand-list/index.js +1 -1
  50. package/build/models/ui/category-list/index.js +1 -1
  51. package/build/models/ui/customer-review-list/index.js +1 -1
  52. package/build/models/ui/customer-review-summary-list/index.js +1 -1
  53. package/build/models/ui/product-detail/index.js +1 -1
  54. package/build/models/ui/product-list/index.js +1 -1
  55. package/build/models/ui/raffle-list/index.js +1 -1
  56. package/build/models/ui/validator/form/address.js +1 -1
  57. package/build/models/ui/validator/form/raffle-form.js +1 -1
  58. package/build/models/ui/validator/form/register.d.ts +0 -4
  59. package/build/models/ui/validator/form/register.js +1 -1
  60. package/build/pages/404.js +1 -1
  61. package/build/pages/_slug_/index.js +1 -1
  62. package/build/pages/account/addresses.js +1 -1
  63. package/build/pages/account/favorite-products.js +1 -1
  64. package/build/pages/account/forgot-password.js +1 -1
  65. package/build/pages/account/index.js +1 -1
  66. package/build/pages/account/login.js +1 -1
  67. package/build/pages/account/orders/_id_.js +1 -1
  68. package/build/pages/account/orders/index.js +1 -1
  69. package/build/pages/account/raffles.js +1 -1
  70. package/build/pages/account/recover-password.js +1 -1
  71. package/build/pages/account/register.js +1 -1
  72. package/build/pages/blog/_slug_.js +1 -1
  73. package/build/pages/blog/index.js +1 -1
  74. package/build/pages/cart.js +1 -1
  75. package/build/pages/checkout.js +1 -1
  76. package/build/pages/home.js +1 -1
  77. package/build/pages/pages/_slug_.js +1 -1
  78. package/build/pages/raffle/_slug_.js +1 -1
  79. package/build/pages/raffle/index.js +1 -1
  80. package/build/pages/search.js +1 -1
  81. package/build/providers/helpers/raffles.js +1 -1
  82. package/build/providers/page-data-get.d.ts +0 -2
  83. package/build/providers/page-data-get.js +1 -1
  84. package/build/providers/page-data-init.js +1 -1
  85. package/build/providers/page-data-next.d.ts +0 -12
  86. package/build/providers/page-data-next.js +1 -1
  87. package/build/providers/placeholders.js +1 -1
  88. package/build/providers/prop-value/attribute-list.js +1 -1
  89. package/build/providers/prop-value/attribute.js +1 -1
  90. package/build/providers/prop-value/blog-category-list.js +1 -1
  91. package/build/providers/prop-value/blog-category.js +1 -1
  92. package/build/providers/prop-value/blog-list.js +1 -1
  93. package/build/providers/prop-value/blog.js +1 -1
  94. package/build/providers/prop-value/brand-list.js +1 -1
  95. package/build/providers/prop-value/brand.js +1 -1
  96. package/build/providers/prop-value/category-list.js +1 -1
  97. package/build/providers/prop-value/category.js +1 -1
  98. package/build/providers/prop-value/custom.js +1 -1
  99. package/build/providers/prop-value/image-list.js +1 -1
  100. package/build/providers/prop-value/image.js +1 -1
  101. package/build/providers/prop-value/link.js +1 -1
  102. package/build/providers/prop-value/product-detail.js +1 -1
  103. package/build/providers/prop-value/product-list.js +1 -1
  104. package/build/providers/prop-value/raffle-list.js +1 -1
  105. package/build/providers/prop-value/raffle.js +1 -1
  106. package/build/scripts/generators/types/index.js +1 -1
  107. package/build/store/base.js +1 -1
  108. package/build/store/cart.js +1 -1
  109. package/build/store/customer.d.ts +1 -4
  110. package/build/store/customer.js +1 -1
  111. package/build/storefront/index.d.ts +0 -4
  112. package/build/storefront/index.js +1 -1
  113. package/package.json +1 -1
  114. package/build/analytics/googleAnalytics.d.ts +0 -13
  115. package/build/analytics/googleAnalytics.js +0 -1
  116. package/build/analytics/googleUniversal.d.ts +0 -8
  117. package/build/analytics/googleUniversal.js +0 -1
  118. package/build/api/customer/__generated__/getOrderByEmail.d.ts +0 -615
  119. package/build/api/customer-attribute/__generated__/listCustomerAttribute.d.ts +0 -44
  120. package/build/api/customer-attribute/index.d.ts +0 -4
  121. package/build/api/customer-attribute/index.js +0 -1
  122. package/build/models/data/customer/attribute-value/index.d.ts +0 -9
  123. package/build/models/data/customer/attribute-value/index.js +0 -1
  124. package/build/models/data/customer-attribute/customer-attribute-option/index.d.ts +0 -5
  125. package/build/models/data/customer-attribute/customer-attribute-option/index.js +0 -1
  126. package/build/models/data/customer-attribute/customer-attribute-sales-channel/index.d.ts +0 -17
  127. package/build/models/data/customer-attribute/customer-attribute-sales-channel/index.js +0 -1
  128. package/build/models/data/customer-attribute/index.d.ts +0 -35
  129. package/build/models/data/customer-attribute/index.js +0 -1
@@ -1 +1 @@
1
- import{renderComponent as e}from"../components/page/index.js";import{IkasBlogCategory as t,IkasBlog as i}from"../models/data/blog/index.js";import{IkasBrand as a}from"../models/data/brand/index.js";import{IkasCategory as r}from"../models/data/category/index.js";import"../models/data/checkout/index.js";import"../models/data/customer/address/index.js";import"../models/data/customer/index.js";import"../models/data/customer-review/index.js";import{observable as o}from"mobx";import"../models/data/html-meta-data/index.js";import{IkasImage as n}from"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"../api/product-option-file/index.js";import"../models/data/product/index.js";import"../models/data/variant-type/index.js";import"../models/data/product/variant/index.js";import"../models/data/product/variant/price/index.js";import"../models/data/product-attribute/index.js";import"../models/data/product/attribute-value/index.js";import"../models/data/product-filter/index.js";import"../models/data/variant-type/variant-value/index.js";import"../models/data/order-transaction/index.js";import"../models/data/product-option-set/index.js";import{IkasRaffle as u}from"../models/data/raffle/index.js";import{IkasSlider as s}from"../models/data/slider/index.js";import"../models/data/product-campaing/campaign/index.js";import"../models/data/customer-attribute/index.js";import"../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../models/theme/theme.js";import{IkasThemePageType as p}from"../models/theme/page/index.js";import{IkasThemePageComponent as l}from"../models/theme/page/component/index.js";import{IkasThemeComponent as c}from"../models/theme/component/index.js";import{IkasThemeComponentPropType as m}from"../models/theme/component/prop/index.js";import"../models/theme/page/component/prop-value/link.js";import{IkasBrandList as d}from"../models/ui/brand-list/index.js";import{IkasBlogList as f}from"../models/ui/blog-list/index.js";import{IkasBlogCategoryList as V}from"../models/ui/blog-category-list/index.js";import{IkasCategoryList as P}from"../models/ui/category-list/index.js";import{IkasNavigationLink as g}from"../models/ui/navigation-link/index.js";import{IkasProductDetail as _}from"../models/ui/product-detail/index.js";import{IkasProductList as L}from"../models/ui/product-list/index.js";import{IkasAttributeDetail as h}from"../models/ui/product-attribute-detail/index.js";import{IkasAttributeList as D}from"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/customer-review-summary-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/register.js";import"../models/ui/validator/form/contact-form.js";import"../models/ui/validator/form/forgot-password.js";import"../models/ui/validator/form/recover-password.js";import"../models/ui/validator/form/account-info.js";import"../models/ui/validator/form/raffle-form.js";import"../models/ui/validator/form/customer-review.js";import{IkasComponentRenderer as v}from"../models/ui/component-renderer/index.js";import{IkasRaffleList as b}from"../models/ui/raffle-list/index.js";import{IkasThemeSettings as C}from"../models/theme/settings/index.js";import"../models/theme/custom-data/index.js";import T from'../ext/lzutf8/build/production/lzutf8.js';import{IkasPageComponentPropValue as S}from"./page-data-get.js";import{getPlaceholderBrand as j,getPlaceholderCategory as x,getPlaceholderProduct as B,getPlaceholderBlog as w,getPlaceholderBlogCategory as I,getPlaceholderRaffle as O}from"./placeholders.js";var y=function(){function y(){}return y.setPageSpecificData=function(e,a,o){if(e){var n=JSON.parse(e);switch(a){case p.PRODUCT:var s=n;y.pageSpecificData=new _(s.product,s.selectedVariantValues),o&&this._initProductDetailOnBrowser(y.pageSpecificData);break;case p.CATEGORY:var l=n;y.pageSpecificData=new r(l);break;case p.BRAND:var c=n;y.pageSpecificData=new r(c);break;case p.BLOG:var m=n;y.pageSpecificData=new i(m);break;case p.BLOG_CATEGORY:var d=n;y.pageSpecificData=new t(d);break;case p.RAFFLE_DETAIL:var f=n;y.pageSpecificData=new u(f)}}else this.pageSpecificData=void 0},y.isServer=function(){return"undefined"==typeof window},y.initPropValues=function(e,t,i,a,r){var o=new C(JSON.parse(i)),n=a?T.decompress(e,{inputEncoding:"Base64"}):e,u=JSON.parse(n).map((function(e){return{pageComponent:new l(e.pageComponent),component:new c(e.component),propValues:e.propValues}}));return u.forEach((function(e){e.component.props.forEach((function(i){var a=e.propValues[i.name];if(null!=a)switch(i.type){case m.IMAGE:y.initImagePropValue(i,a,e);break;case m.IMAGE_LIST:y.initImageListPropValue(i,a,e);break;case m.BRAND:y.initBrandPropValue(i,a,e);break;case m.BRAND_LIST:y.initBrandListPropValue(i,a,e);break;case m.CATEGORY:y.initCategoryPropValue(i,a,e);break;case m.CATEGORY_LIST:y.initCategoryListPropValue(i,a,e);break;case m.PRODUCT_LIST:y.initProductListPropValue(i,a,e,t);break;case m.PRODUCT_DETAIL:y.initProductDetailPropValue(i,a,e,t);break;case m.PRODUCT_ATTRIBUTE:y.initAttributePropValue(i,a,e);break;case m.PRODUCT_ATTRIBUTE_LIST:y.initAttributeListPropValue(i,a,e);break;case m.LINK:case m.LIST_OF_LINK:y.initLinkPropValue(i,a,e);break;case m.COMPONENT:y.initComponentPropValue(i,a,e,t,o,r);break;case m.COMPONENT_LIST:y.initComponentListPropValue(i,a,e,t,o,r);break;case m.CUSTOM:y.initCustomDataPropValue(i,a,e,t,o,r);break;case m.BLOG:y.initBlogPropValue(i,a,e);break;case m.BLOG_LIST:y.initBlogListPropValue(i,a,e);break;case m.BLOG_CATEGORY:y.initBlogCategoryPropValue(i,a,e);break;case m.BLOG_LIST:y.initBlogCategoryListPropValue(i,a,e);break;case m.RAFFLE:y.initRafflePropValue(i,a,e);break;case m.RAFFLE_LIST:y.initRaffleListPropValue(i,a,e);break;case m.SLIDER:y.initSliderPropValue(i,a,e)}}))})),u},y.initBrandPropValue=function(e,t,i){i.propValues[e.name]=y._initBrandPropValue(t)},y._initBrandPropValue=function(e){return e.brandPropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.brand?new a(e.brand):j()},y.initBrandListPropValue=function(e,t,i){i.propValues[e.name]=y._initBrandListPropValue(t)},y._initBrandListPropValue=function(e){return new d(e)},y.initCategoryPropValue=function(e,t,i){i.propValues[e.name]=y._initCategoryPropValue(t)},y._initCategoryPropValue=function(e){return e.categoryPropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.category?new r(e.category):x()},y.initCategoryListPropValue=function(e,t,i){var a=new P(t);i.propValues[e.name]=a},y._initCategoryListPropValue=function(e){return new P(e)},y.initProductListPropValue=function(e,t,i,a){i.propValues[e.name]=this._initProductListPropValue(t,a)},y._initProductListPropValue=function(e,t){return new L(e,t)},y.initProductDetailPropValue=function(e,t,i,a){i.propValues[e.name]=this._initProductDetailPropValue(t,a)},y._initProductDetailPropValue=function(e,t){var i=B();return e.productDetailPropValue.usePageData&&this.pageSpecificData?i=this.pageSpecificData:e.productDetail&&(i=new _(e.productDetail.product,e.productDetail.selectedVariantValues)),i.router=t,i},y._initProductDetailOnBrowser=function(e){var t=new URLSearchParams(window.location.search),i=t.get("vid");if(i){var a=e.product.variants.find((function(e){return e.id===i}));a&&(e.selectedVariantValues=a.variantValues)}else{var r=e.product.variantTypes.map((function(e){return e.variantType.slug})),o=[];r.forEach((function(i,a){var r=e.product.variantTypes[a],n=t.get(i);if(n){var u=r.variantType.values.find((function(e){return e.slug===n}));u&&o.push(u)}})),o.length===e.selectedVariantValues.length&&(e.selectedVariantValues=o)}},y.initAttributePropValue=function(e,t,i){i.propValues[e.name]=y._initAttributePropValue(t)},y._initAttributePropValue=function(e){var t=null;return e.attributePropValue.usePageData&&this.pageSpecificData?t=this.pageSpecificData:e.productDetail&&(t=new _(e.productDetail.product,e.productDetail.selectedVariantValues)),new h(t,e.attributePropValue)},y.initAttributeListPropValue=function(e,t,i){i.propValues[e.name]=y._initAttributeListPropValue(t)},y._initAttributeListPropValue=function(e){var t=null;return e.attributeListPropValue.usePageData&&this.pageSpecificData?t=this.pageSpecificData:e.productDetail&&(t=new _(e.productDetail.product,e.productDetail.selectedVariantValues)),new D(t,e.attributeListPropValue)},y.initLinkPropValue=function(e,t,i){i.propValues[e.name]=this._initLinkPropValue(t)},y._initLinkPropValue=function(e){return Array.isArray(e)?e.map((function(e){return new g(e.href,e.label,e.subLinks,e.isExternal||void 0)})):e?new g(e.href,e.label,e.subLinks,e.isExternal):void 0},y.initImagePropValue=function(e,t,i){i.propValues[e.name]=this._initImagePropValue(t)},y._initImagePropValue=function(e){return new n(e.id)},y.initImageListPropValue=function(e,t,i){i.propValues[e.name]=this._initImageListPropValue(t)},y._initImageListPropValue=function(e){return e.map((function(e){return new n(e.id)}))},y.initCustomDataPropValue=function(e,t,i,a,r,o){t&&t.value&&t.customData&&(i.propValues[e.name]=this._initCustomDataPropValue(t,t.customData,a,r,o))},y._initCustomDataPropValue=function(e,t,i,a,r){var o=this;if(!e)return null;var n=e.value;if(null==n)return null;switch(t.type){case m.BRAND:return this._initBrandPropValue(n);case m.BRAND_LIST:return this._initBrandListPropValue(n);case m.CATEGORY_LIST:return this._initCategoryListPropValue(n);case m.CATEGORY:return this._initCategoryPropValue(n);case m.IMAGE_LIST:return this._initImageListPropValue(n);case m.IMAGE:return this._initImagePropValue(n);case m.LINK:return this._initLinkPropValue(n);case m.PRODUCT_DETAIL:return this._initProductDetailPropValue(n,i);case m.PRODUCT_LIST:return this._initProductListPropValue(n,i);case m.PRODUCT_ATTRIBUTE:return this._initAttributePropValue(n);case m.PRODUCT_ATTRIBUTE_LIST:return this._initAttributeListPropValue(n);case m.BLOG:return this._initBlogPropValue(n);case m.BLOG_LIST:return this._initBlogListPropValue(n);case m.BLOG_CATEGORY:return this._initBlogCategoryPropValue(n);case m.BLOG_CATEGORY_LIST:return this._initBlogCategoryListPropValue(n);case m.RAFFLE:return this._initRafflePropValue(n);case m.RAFFLE_LIST:return this._initRaffleListPropValue(n);case m.SLIDER:return this._initSliderPropValue(n);case m.OBJECT:for(var u={},s=0,p=t.nestedData||[];s<p.length;s++){var l=p[s],c=n[l.key],d=void 0;l.customDataId&&(d=c.customData),u[l.key]=this._initCustomDataPropValue(c,d||l,i,a,r)}return u;case m.DYNAMIC_LIST:case m.STATIC_LIST:try{if(!n||!n.length)return null;var f=[],V=t.nestedData[0];return n.forEach((function(e){var t;V.customDataId&&(t=e.customData),f.push(o._initCustomDataPropValue(e,t||V,i,a,r))})),f}catch(e){return[]}case m.COMPONENT:return this._initComponentPropValue(n,i,a,r);case m.COMPONENT_LIST:return this._initComponentListPropValue(n,i,a,r);default:return n}},y.initComponentPropValue=function(e,t,i,a,r,o){i.propValues[e.name]=this._initComponentPropValue(t,a,r,o)},y._initComponentPropValue=function(t,i,a,r){var o=t.length?t[0]:void 0;if(o){var n=new S(o),u=this.initPropValues(JSON.stringify([n]),i,JSON.stringify(a),!1,r);if(u.length)return new v((function(){return e(u[0],a,-10)}))}},y.initComponentListPropValue=function(e,t,i,a,r,o){i.propValues[e.name]=this._initComponentListPropValue(t,a,r,o)},y._initComponentListPropValue=function(t,i,a,r){var o=this;return t&&t.length?t.map((function(t){var n=new S(t),u=o.initPropValues(JSON.stringify([n]),i,JSON.stringify(a),!1,r);return new v((function(){return e(u[0],a,-1)}))})):[]},y.initBlogPropValue=function(e,t,i){i.propValues[e.name]=y._initBlogPropValue(t)},y._initBlogPropValue=function(e){return e.blogPropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.blog?new i(e.blog):w()},y.initBlogListPropValue=function(e,t,i){i.propValues[e.name]=this._initBlogListPropValue(t)},y._initBlogListPropValue=function(e){return new f(e)},y.initBlogCategoryPropValue=function(e,t,i){i.propValues[e.name]=y._initBlogCategoryPropValue(t)},y._initBlogCategoryPropValue=function(e){return e.blogCategoryPropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.blogCategory?new t(e.blogCategory):I()},y.initBlogCategoryListPropValue=function(e,t,i){i.propValues[e.name]=this._initBlogCategoryListPropValue(t)},y._initBlogCategoryListPropValue=function(e){return new V(e)},y.initRafflePropValue=function(e,t,i){i.propValues[e.name]=y._initRafflePropValue(t)},y._initRafflePropValue=function(e){return e.rafflePropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.raffle?new u(e.raffle):O()},y.initRaffleListPropValue=function(e,t,i){i.propValues[e.name]=this._initRaffleListPropValue(t)},y._initRaffleListPropValue=function(e){return new b(e)},y.initSliderPropValue=function(e,t,i){i.propValues[e.name]=this._initSliderPropValue(t)},y._initSliderPropValue=function(e){return new s(e)},y.pageSpecificData=o({}),y}();export{y as IkasPageDataInit};
1
+ import{renderComponent as e}from"../components/page/index.js";import{IkasBlogCategory as t,IkasBlog as i}from"../models/data/blog/index.js";import{IkasBrand as a}from"../models/data/brand/index.js";import{IkasCategory as r}from"../models/data/category/index.js";import"../models/data/checkout/index.js";import"../models/data/customer/address/index.js";import"../models/data/customer/index.js";import"../models/data/customer-review/index.js";import{observable as o}from"mobx";import"../models/data/html-meta-data/index.js";import{IkasImage as n}from"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"../api/product-option-file/index.js";import"../models/data/product/index.js";import"../models/data/variant-type/index.js";import"../models/data/product/variant/index.js";import"../models/data/product/variant/price/index.js";import"../models/data/product-attribute/index.js";import"../models/data/product/attribute-value/index.js";import"../models/data/product-filter/index.js";import"../models/data/variant-type/variant-value/index.js";import"../models/data/order-transaction/index.js";import"../models/data/product-option-set/index.js";import{IkasRaffle as u}from"../models/data/raffle/index.js";import{IkasSlider as s}from"../models/data/slider/index.js";import"../models/data/product-campaing/campaign/index.js";import"../models/theme/theme.js";import{IkasThemePageType as p}from"../models/theme/page/index.js";import{IkasThemePageComponent as l}from"../models/theme/page/component/index.js";import{IkasThemeComponent as c}from"../models/theme/component/index.js";import{IkasThemeComponentPropType as m}from"../models/theme/component/prop/index.js";import"../models/theme/page/component/prop-value/link.js";import{IkasBrandList as d}from"../models/ui/brand-list/index.js";import{IkasBlogList as f}from"../models/ui/blog-list/index.js";import{IkasBlogCategoryList as V}from"../models/ui/blog-category-list/index.js";import{IkasCategoryList as P}from"../models/ui/category-list/index.js";import{IkasNavigationLink as g}from"../models/ui/navigation-link/index.js";import{IkasProductDetail as _}from"../models/ui/product-detail/index.js";import{IkasProductList as L}from"../models/ui/product-list/index.js";import{IkasAttributeDetail as h}from"../models/ui/product-attribute-detail/index.js";import{IkasAttributeList as D}from"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/customer-review-summary-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/register.js";import"../models/ui/validator/form/contact-form.js";import"../models/ui/validator/form/forgot-password.js";import"../models/ui/validator/form/recover-password.js";import"../models/ui/validator/form/account-info.js";import"../models/ui/validator/form/raffle-form.js";import"../models/ui/validator/form/customer-review.js";import{IkasComponentRenderer as v}from"../models/ui/component-renderer/index.js";import{IkasRaffleList as C}from"../models/ui/raffle-list/index.js";import{IkasThemeSettings as T}from"../models/theme/settings/index.js";import"../models/theme/custom-data/index.js";import S from'../ext/lzutf8/build/production/lzutf8.js';import{IkasPageComponentPropValue as b}from"./page-data-get.js";import{getPlaceholderBrand as j,getPlaceholderCategory as B,getPlaceholderProduct as x,getPlaceholderBlog as w,getPlaceholderBlogCategory as I,getPlaceholderRaffle as O}from"./placeholders.js";var y=function(){function y(){}return y.setPageSpecificData=function(e,a,o){if(e){var n=JSON.parse(e);switch(a){case p.PRODUCT:var s=n;y.pageSpecificData=new _(s.product,s.selectedVariantValues),o&&this._initProductDetailOnBrowser(y.pageSpecificData);break;case p.CATEGORY:var l=n;y.pageSpecificData=new r(l);break;case p.BRAND:var c=n;y.pageSpecificData=new r(c);break;case p.BLOG:var m=n;y.pageSpecificData=new i(m);break;case p.BLOG_CATEGORY:var d=n;y.pageSpecificData=new t(d);break;case p.RAFFLE_DETAIL:var f=n;y.pageSpecificData=new u(f)}}else this.pageSpecificData=void 0},y.isServer=function(){return"undefined"==typeof window},y.initPropValues=function(e,t,i,a,r){var o=new T(JSON.parse(i)),n=a?S.decompress(e,{inputEncoding:"Base64"}):e,u=JSON.parse(n).map((function(e){return{pageComponent:new l(e.pageComponent),component:new c(e.component),propValues:e.propValues}}));return u.forEach((function(e){e.component.props.forEach((function(i){var a=e.propValues[i.name];if(null!=a)switch(i.type){case m.IMAGE:y.initImagePropValue(i,a,e);break;case m.IMAGE_LIST:y.initImageListPropValue(i,a,e);break;case m.BRAND:y.initBrandPropValue(i,a,e);break;case m.BRAND_LIST:y.initBrandListPropValue(i,a,e);break;case m.CATEGORY:y.initCategoryPropValue(i,a,e);break;case m.CATEGORY_LIST:y.initCategoryListPropValue(i,a,e);break;case m.PRODUCT_LIST:y.initProductListPropValue(i,a,e,t);break;case m.PRODUCT_DETAIL:y.initProductDetailPropValue(i,a,e,t);break;case m.PRODUCT_ATTRIBUTE:y.initAttributePropValue(i,a,e);break;case m.PRODUCT_ATTRIBUTE_LIST:y.initAttributeListPropValue(i,a,e);break;case m.LINK:case m.LIST_OF_LINK:y.initLinkPropValue(i,a,e);break;case m.COMPONENT:y.initComponentPropValue(i,a,e,t,o,r);break;case m.COMPONENT_LIST:y.initComponentListPropValue(i,a,e,t,o,r);break;case m.CUSTOM:y.initCustomDataPropValue(i,a,e,t,o,r);break;case m.BLOG:y.initBlogPropValue(i,a,e);break;case m.BLOG_LIST:y.initBlogListPropValue(i,a,e);break;case m.BLOG_CATEGORY:y.initBlogCategoryPropValue(i,a,e);break;case m.BLOG_LIST:y.initBlogCategoryListPropValue(i,a,e);break;case m.RAFFLE:y.initRafflePropValue(i,a,e);break;case m.RAFFLE_LIST:y.initRaffleListPropValue(i,a,e);break;case m.SLIDER:y.initSliderPropValue(i,a,e)}}))})),u},y.initBrandPropValue=function(e,t,i){i.propValues[e.name]=y._initBrandPropValue(t)},y._initBrandPropValue=function(e){return e.brandPropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.brand?new a(e.brand):j()},y.initBrandListPropValue=function(e,t,i){i.propValues[e.name]=y._initBrandListPropValue(t)},y._initBrandListPropValue=function(e){return new d(e)},y.initCategoryPropValue=function(e,t,i){i.propValues[e.name]=y._initCategoryPropValue(t)},y._initCategoryPropValue=function(e){return e.categoryPropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.category?new r(e.category):B()},y.initCategoryListPropValue=function(e,t,i){var a=new P(t);i.propValues[e.name]=a},y._initCategoryListPropValue=function(e){return new P(e)},y.initProductListPropValue=function(e,t,i,a){i.propValues[e.name]=this._initProductListPropValue(t,a)},y._initProductListPropValue=function(e,t){return new L(e,t)},y.initProductDetailPropValue=function(e,t,i,a){i.propValues[e.name]=this._initProductDetailPropValue(t,a)},y._initProductDetailPropValue=function(e,t){var i=x();return e.productDetailPropValue.usePageData&&this.pageSpecificData?i=this.pageSpecificData:e.productDetail&&(i=new _(e.productDetail.product,e.productDetail.selectedVariantValues)),i.router=t,i},y._initProductDetailOnBrowser=function(e){var t=new URLSearchParams(window.location.search),i=t.get("vid");if(i){var a=e.product.variants.find((function(e){return e.id===i}));a&&(e.selectedVariantValues=a.variantValues)}else{var r=e.product.variantTypes.map((function(e){return e.variantType.slug})),o=[];r.forEach((function(i,a){var r=e.product.variantTypes[a],n=t.get(i);if(n){var u=r.variantType.values.find((function(e){return e.slug===n}));u&&o.push(u)}})),o.length===e.selectedVariantValues.length&&(e.selectedVariantValues=o)}},y.initAttributePropValue=function(e,t,i){i.propValues[e.name]=y._initAttributePropValue(t)},y._initAttributePropValue=function(e){var t=null;return e.attributePropValue.usePageData&&this.pageSpecificData?t=this.pageSpecificData:e.productDetail&&(t=new _(e.productDetail.product,e.productDetail.selectedVariantValues)),new h(t,e.attributePropValue)},y.initAttributeListPropValue=function(e,t,i){i.propValues[e.name]=y._initAttributeListPropValue(t)},y._initAttributeListPropValue=function(e){var t=null;return e.attributeListPropValue.usePageData&&this.pageSpecificData?t=this.pageSpecificData:e.productDetail&&(t=new _(e.productDetail.product,e.productDetail.selectedVariantValues)),new D(t,e.attributeListPropValue)},y.initLinkPropValue=function(e,t,i){i.propValues[e.name]=this._initLinkPropValue(t)},y._initLinkPropValue=function(e){return Array.isArray(e)?e.map((function(e){return new g(e.href,e.label,e.subLinks,e.isExternal||void 0)})):e?new g(e.href,e.label,e.subLinks,e.isExternal):void 0},y.initImagePropValue=function(e,t,i){i.propValues[e.name]=this._initImagePropValue(t)},y._initImagePropValue=function(e){return new n(e.id)},y.initImageListPropValue=function(e,t,i){i.propValues[e.name]=this._initImageListPropValue(t)},y._initImageListPropValue=function(e){return e.map((function(e){return new n(e.id)}))},y.initCustomDataPropValue=function(e,t,i,a,r,o){t&&t.value&&t.customData&&(i.propValues[e.name]=this._initCustomDataPropValue(t,t.customData,a,r,o))},y._initCustomDataPropValue=function(e,t,i,a,r){var o=this;if(!e)return null;var n=e.value;if(null==n)return null;switch(t.type){case m.BRAND:return this._initBrandPropValue(n);case m.BRAND_LIST:return this._initBrandListPropValue(n);case m.CATEGORY_LIST:return this._initCategoryListPropValue(n);case m.CATEGORY:return this._initCategoryPropValue(n);case m.IMAGE_LIST:return this._initImageListPropValue(n);case m.IMAGE:return this._initImagePropValue(n);case m.LINK:return this._initLinkPropValue(n);case m.PRODUCT_DETAIL:return this._initProductDetailPropValue(n,i);case m.PRODUCT_LIST:return this._initProductListPropValue(n,i);case m.PRODUCT_ATTRIBUTE:return this._initAttributePropValue(n);case m.PRODUCT_ATTRIBUTE_LIST:return this._initAttributeListPropValue(n);case m.BLOG:return this._initBlogPropValue(n);case m.BLOG_LIST:return this._initBlogListPropValue(n);case m.BLOG_CATEGORY:return this._initBlogCategoryPropValue(n);case m.BLOG_CATEGORY_LIST:return this._initBlogCategoryListPropValue(n);case m.RAFFLE:return this._initRafflePropValue(n);case m.RAFFLE_LIST:return this._initRaffleListPropValue(n);case m.SLIDER:return this._initSliderPropValue(n);case m.OBJECT:for(var u={},s=0,p=t.nestedData||[];s<p.length;s++){var l=p[s],c=n[l.key],d=void 0;l.customDataId&&(d=c.customData),u[l.key]=this._initCustomDataPropValue(c,d||l,i,a,r)}return u;case m.DYNAMIC_LIST:case m.STATIC_LIST:try{if(!n||!n.length)return null;var f=[],V=t.nestedData[0];return n.forEach((function(e){var t;V.customDataId&&(t=e.customData),f.push(o._initCustomDataPropValue(e,t||V,i,a,r))})),f}catch(e){return[]}case m.COMPONENT:return this._initComponentPropValue(n,i,a,r);case m.COMPONENT_LIST:return this._initComponentListPropValue(n,i,a,r);default:return n}},y.initComponentPropValue=function(e,t,i,a,r,o){i.propValues[e.name]=this._initComponentPropValue(t,a,r,o)},y._initComponentPropValue=function(t,i,a,r){var o=t.length?t[0]:void 0;if(o){var n=new b(o),u=this.initPropValues(JSON.stringify([n]),i,JSON.stringify(a),!1,r);if(u.length)return new v((function(){return e(u[0],a,-10)}))}},y.initComponentListPropValue=function(e,t,i,a,r,o){i.propValues[e.name]=this._initComponentListPropValue(t,a,r,o)},y._initComponentListPropValue=function(t,i,a,r){var o=this;return t&&t.length?t.map((function(t){var n=new b(t),u=o.initPropValues(JSON.stringify([n]),i,JSON.stringify(a),!1,r);return new v((function(){return e(u[0],a,-1)}))})):[]},y.initBlogPropValue=function(e,t,i){i.propValues[e.name]=y._initBlogPropValue(t)},y._initBlogPropValue=function(e){return e.blogPropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.blog?new i(e.blog):w()},y.initBlogListPropValue=function(e,t,i){i.propValues[e.name]=this._initBlogListPropValue(t)},y._initBlogListPropValue=function(e){return new f(e)},y.initBlogCategoryPropValue=function(e,t,i){i.propValues[e.name]=y._initBlogCategoryPropValue(t)},y._initBlogCategoryPropValue=function(e){return e.blogCategoryPropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.blogCategory?new t(e.blogCategory):I()},y.initBlogCategoryListPropValue=function(e,t,i){i.propValues[e.name]=this._initBlogCategoryListPropValue(t)},y._initBlogCategoryListPropValue=function(e){return new V(e)},y.initRafflePropValue=function(e,t,i){i.propValues[e.name]=y._initRafflePropValue(t)},y._initRafflePropValue=function(e){return e.rafflePropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.raffle?new u(e.raffle):O()},y.initRaffleListPropValue=function(e,t,i){i.propValues[e.name]=this._initRaffleListPropValue(t)},y._initRaffleListPropValue=function(e){return new C(e)},y.initSliderPropValue=function(e,t,i){i.propValues[e.name]=this._initSliderPropValue(t)},y._initSliderPropValue=function(e){return new s(e)},y.pageSpecificData=o({}),y}();export{y as IkasPageDataInit};
@@ -38,8 +38,6 @@ export declare class IkasNextPageDataProvider {
38
38
  paymentGateways: any;
39
39
  gtmId: string | null;
40
40
  fbpId: string | null;
41
- analytics4Id: string | null;
42
- universalAnalyticsId: string | null;
43
41
  favicon: any;
44
42
  stockPreference: IkasThemeStockPreference;
45
43
  storefrontJSScripts: string[];
@@ -71,8 +69,6 @@ export declare class IkasNextPageDataProvider {
71
69
  paymentGateways: any;
72
70
  gtmId: string | null;
73
71
  fbpId: string | null;
74
- analytics4Id: string | null;
75
- universalAnalyticsId: string | null;
76
72
  favicon: any;
77
73
  stockPreference: IkasThemeStockPreference;
78
74
  storefrontJSScripts: string[];
@@ -113,8 +109,6 @@ export declare class IkasNextPageDataProvider {
113
109
  paymentGateways: any;
114
110
  gtmId: string | null;
115
111
  fbpId: string | null;
116
- analytics4Id: string | null;
117
- universalAnalyticsId: string | null;
118
112
  favicon: any;
119
113
  stockPreference: IkasThemeStockPreference;
120
114
  storefrontJSScripts: string[];
@@ -146,8 +140,6 @@ export declare class IkasNextPageDataProvider {
146
140
  paymentGateways: any;
147
141
  gtmId: string | null;
148
142
  fbpId: string | null;
149
- analytics4Id: string | null;
150
- universalAnalyticsId: string | null;
151
143
  favicon: any;
152
144
  stockPreference: IkasThemeStockPreference;
153
145
  storefrontJSScripts: string[];
@@ -188,8 +180,6 @@ export declare class IkasNextPageDataProvider {
188
180
  paymentGateways: any;
189
181
  gtmId: string | null;
190
182
  fbpId: string | null;
191
- analytics4Id: string | null;
192
- universalAnalyticsId: string | null;
193
183
  favicon: any;
194
184
  stockPreference: IkasThemeStockPreference;
195
185
  storefrontJSScripts: string[];
@@ -221,8 +211,6 @@ export declare class IkasNextPageDataProvider {
221
211
  paymentGateways: any;
222
212
  gtmId: string | null;
223
213
  fbpId: string | null;
224
- analytics4Id: string | null;
225
- universalAnalyticsId: string | null;
226
214
  favicon: any;
227
215
  stockPreference: IkasThemeStockPreference;
228
216
  storefrontJSScripts: string[];
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t,__assign as o,__spreadArray as r}from'../ext/tslib/tslib.es6.js';import i from"fs";import n from"next/config.js";import"../models/data/blog/index.js";import"../models/data/brand/index.js";import"../models/data/category/index.js";import"../models/data/checkout/index.js";import"../models/data/customer/address/index.js";import"../models/data/customer/index.js";import"../models/data/customer-review/index.js";import"mobx";import"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"../api/product-option-file/index.js";import"../models/data/product/index.js";import"../models/data/variant-type/index.js";import"../models/data/product/variant/index.js";import"../models/data/product/variant/price/index.js";import"../models/data/product-attribute/index.js";import"../models/data/product/attribute-value/index.js";import"../models/data/product-filter/index.js";import"../models/data/variant-type/variant-value/index.js";import"../models/data/order-transaction/index.js";import"../models/data/product-option-set/index.js";import"../models/data/raffle/index.js";import"../models/data/product-campaing/campaign/index.js";import"../models/data/customer-attribute/index.js";import"../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import{IkasTheme as s}from"../models/theme/theme.js";import{IkasThemePageType as a}from"../models/theme/page/index.js";import"../models/theme/component/prop/index.js";import"../models/theme/page/component/prop-value/link.js";import"../models/ui/brand-list/index.js";import"../models/ui/blog-list/index.js";import"../models/ui/blog-category-list/index.js";import"../models/ui/category-list/index.js";import"../models/ui/product-detail/index.js";import"../models/ui/product-list/index.js";import"../models/ui/product-attribute-detail/index.js";import"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/customer-review-summary-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/register.js";import"../models/ui/validator/form/contact-form.js";import"../models/ui/validator/form/forgot-password.js";import"../models/ui/validator/form/recover-password.js";import"../models/ui/validator/form/account-info.js";import"../models/ui/validator/form/raffle-form.js";import"../models/ui/validator/form/customer-review.js";import"../models/ui/raffle-list/index.js";import"../models/theme/settings/index.js";import"../models/theme/custom-data/index.js";import{IkasStorefront as d}from"../models/data/storefront/index.js";import{IkasSalesChannel as l}from"../models/data/sales-channel/index.js";import{IkasStorefrontRouting as m}from"../models/data/storefront/routing/index.js";import{IkasStorefrontConfig as c}from"../storefront/index.js";import{IkasPageDataProvider as p}from"./page-data-get.js";import{IkasStorefrontThemeLocalization as u}from"../models/data/storefront/theme-localization/index.js";import{IkasStorefrontAPI as f}from"../api/storefront/index.js";import{I18NFileReader as g}from"../utils/i18n.js";import"../api/blog/index.js";import"../api/brand/index.js";import"../api/cart/index.js";import"../api/category/index.js";import{IkasCheckoutAPI as j}from"../api/checkout/index.js";import"../api/city/index.js";import"../api/country/index.js";import"../api/customer/index.js";import"../api/customer-review/index.js";import"../api/customer-review-summary/index.js";import"../api/district/index.js";import"../api/html-meta-data/index.js";import"../api/merchant/index.js";import"../api/product-search/index.js";import"../api/apollo.js";import"../api/favorite-product/index.js";import"../api/contact-form/index.js";import"../api/state/index.js";import"../api/product-option-set/index.js";import"../api/raffle/index.js";import"../api/back-in-stock-reminder/index.js";import"../api/product-campaign/index.js";import{getGoogleFontHref as x}from"../utils/google-fonts.js";var v=function(){function v(){}return v.readLocalTheme=function(){return new Promise((function(e,t){i.readFile("./src/theme.json",{flag:"a+"},(function(o,r){if(o)return t(o);var i=r.length?JSON.parse(r.toString()):{};e(new s(i))}))}))},v.readSettingsFile=function(){return new Promise((function(e){var t=n().serverRuntimeConfig.SETTINGS;i.readFile(t,{flag:"a+"},(function(t,o){if(t)return console.error("SETTINGS FILE READ ERROR!!!"),console.error(t),e(null);var r=o.length?JSON.parse(o.toString()):{};e(r)}))}))},v.getSettings=function(o){var r=this;return new Promise((function(n){return e(r,void 0,void 0,(function(){var e,r,s,a,p,g,j,x,h,S,C,y,I,b,w,k;return t(this,(function(t){switch(t.label){case 0:return"local"===process.env.NEXT_PUBLIC_ENV?c.storefrontId?[4,f.getStorefront(c.storefrontId)]:(console.error("Missing storefrontId in the config.json file!"),[2,n(null)]):[3,3];case 1:return(e=t.sent())?(r=e,[4,v.readLocalTheme()]):[2,n(null)];case 2:return s=t.sent(),a=v.createColorScript(s.settings),p=v.createFontScript(s.settings),g=[],a&&g.push(a),p&&g.push(p),n({storefront:r,themeLocalization:new u({themeJson:s}),salesChannel:new l({id:r.salesChannelId}),routing:r.routings.length?r.routings.find((function(e){return e.locale===o||e.id===o}))||r.routings[0]:new m({}),favicon:s.settings.favicon,stockPreference:s.settings.stockPreference,storefrontJSScripts:g,domain:"",productBackInStockSettings:{customerLoginRequired:!0},customerReviewSettings:{customerLoginRequired:!0,customerPurchaseRequired:!1}}),[3,5];case 3:return[4,v.readSettingsFile()];case 4:if(!(j=t.sent())||!j.localizationMap)return[2,n(null)];if(x=new d(j.storefront),h=new l(j.salesChannel),S=j.localizationMap,C=j.storefrontJSScripts||[],y=j.domain,I=j.productBackInStockSettings?{customerLoginRequired:j.productBackInStockSettings.customerLoginRequired}:null,b=j.customerReviewSettings?{customerLoginRequired:j.customerReviewSettings.customerLoginRequired||!1,customerPurchaseRequired:j.customerReviewSettings.customerPurchaseRequired||!1}:null,w=S[o],k=x.routings.find((function(e){return e.id===o||e.path===o})),!w||!k)return console.error("THEME LOCALIZATION PATH OR ROUTING MISSING!!!"),[2,n(null)];i.readFile(w,{flag:"a+"},(function(e,t){if(e)return console.error("THEME LOCALZIATION FILE READ ERROR!!!"),console.error(e),n(null);var o=t.length?JSON.parse(t.toString()):{},r=new u(o),i=r.themeJson.settings.favicon,s=r.themeJson.settings.stockPreference;if(r.themeJson.settings){var a=v.createColorScript(r.themeJson.settings),d=v.createFontScript(r.themeJson.settings);a&&C.push(a),d&&C.push(d)}n({storefront:x,themeLocalization:r,salesChannel:h,routing:k,favicon:i,stockPreference:s,storefrontJSScripts:C,domain:y,productBackInStockSettings:I,customerReviewSettings:b})})),t.label=5;case 5:return[2]}}))}))}))},v.getPageData=function(i,s,d,l,m){var u,f;return e(this,void 0,void 0,(function(){var e,x,h,S,C,y,I,b,w,k,P,R,L,T,B,E,V,J,F,O,N,D,A,q,z,M;return t(this,(function(t){switch(t.label){case 0:return e="local"===process.env.NEXT_PUBLIC_ENV,x=!e&&m,h=n().serverRuntimeConfig,x?[3,7]:(S=i.locale)?[4,v.getSettings(S)]:[2,{props:{},notFound:!0}];case 1:return(C=t.sent())&&C.storefront.mainStorefrontThemeId&&C.storefront.salesChannelId?(y=C.storefront,I=C.themeLocalization,b=C.salesChannel,w=C.routing,k=C.favicon,P=C.stockPreference,R=C.storefrontJSScripts,L=C.domain,T=C.productBackInStockSettings,B=C.customerReviewSettings,c.storefrontId=y.id,c.storefrontRoutingId=w.id,c.storefrontThemeId=y.mainStorefrontThemeId,c.salesChannelId=y.salesChannelId,c.priceListId=w.priceListId||void 0,c.stockLocationIds=null===(u=b.stockLocations)||void 0===u?void 0:u.map((function(e){return e.id})),c.routings=y.routings,c.paymentGateways=b.paymentGateways||[],c.gtmId=y.gtmId||void 0,c.fbpId=y.fbpId||void 0,c.analytics4Id=y.analytics4Id||void 0,c.universalAnalyticsId=y.universalAnalyticsId||void 0,c.favicon=k||null,c.stockPreference=P||null,c.storefrontJSScripts=R||[],c.domain=L,c.productBackInStockSettings=T,c.customerReviewSettings=B,(E=new p(I.themeJson,i.params,d)).possiblePageTypes=l||(d?[d]:[]),m?[3,3]:[4,E.getPageData()]):[2,{props:{},notFound:!0}];case 2:if(t.sent(),!E.page)return[2,{props:{},notFound:!0}];t.label=3;case 3:return V=m?E.theme.components.map((function(e){return e.id})):E.page.components.map((function(e){return e.componentId})),J=I.themeJson.components.filter((function(e){return m||V.includes(e.id)})),F=r(["common"],J.map((function(e){return e.dir})),!0),(d===a.CHECKOUT||m)&&F.push("checkout-page"),O=h.nextI18nConf,N=w.locale,[4,new g(N,F,e?void 0:O.localePath).read()];case 4:return D=t.sent(),c.translations=D,A={},d!==a.CHECKOUT?[3,6]:(q=null===(f=E.page)||void 0===f?void 0:f.components[0])?[4,j.listCheckoutSettings()]:[3,6];case 5:z=t.sent(),M={buttonBgColor:q.propValues.buttonBgColor,buttonTextColor:q.propValues.buttonTextColor,buttonDisabledBgColor:q.propValues.buttonDisabledBgColor,buttonDisabledTextColor:q.propValues.buttonDisabledTextColor,primaryTextColor:q.propValues.primaryTextColor,secondaryTextColor:q.propValues.secondaryTextColor,primaryBgColor:q.propValues.primaryBgColor,secondaryBgColor:q.propValues.secondaryBgColor,borderColor:q.propValues.borderColor,cardBgColor:q.propValues.cardBgColor,errorColor:q.propValues.errorColor,errorLightColor:q.propValues.errorLightColor,warningColor:q.propValues.warningColor,warningLightColor:q.propValues.warningLightColor,successColor:q.propValues.successColor,successLightColor:q.propValues.successLightColor},A.customizationProps=M,A.returnPolicy=I.returnPolicy,A.privacyPolicy=I.privacyPolicy,A.termsOfService=I.termsOfService,A.checkoutSettingsStr=(null==z?void 0:z.length)?JSON.stringify(z[0]):null,t.label=6;case 6:return s?[2,{props:o(o({},E.nextPageData.props),A)}]:[2,{props:o(o({},E.nextPageData.props),A),revalidate:60}];case 7:return[2,{props:{}}];case 8:return[2]}}))}))},v.getStaticProps=function(o,r,i,n){return e(this,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,v.getPageData(o,!1,r,i,n)];case 1:return[2,e.sent()]}}))}))},v.getServerSideProps=function(o,r){return e(this,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,v.getPageData(o,!0,r)];case 1:return[2,e.sent()]}}))}))},v.createColorScript=function(e){if(e.colors)return"<script>".concat(e.colors.map((function(e){return'document.documentElement.style.setProperty("'.concat(e.key,'","').concat(e.color,'");')})).join("\r\n"),"<\/script> \n ")},v.createFontScript=function(e){var t=x(e.fontFamily);if(t)return'<link id="ikas-font" rel="stylesheet" href="'.concat(t,"\"> \n <style>\n body { \n font-family: '").concat(e.fontFamily.name,'\', -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;\n } \n </style>')},v}();export{v as IkasNextPageDataProvider};
1
+ import{__awaiter as e,__generator as t,__assign as o,__spreadArray as r}from'../ext/tslib/tslib.es6.js';import i from"fs";import n from"next/config.js";import"../models/data/blog/index.js";import"../models/data/brand/index.js";import"../models/data/category/index.js";import"../models/data/checkout/index.js";import"../models/data/customer/address/index.js";import"../models/data/customer/index.js";import"../models/data/customer-review/index.js";import"mobx";import"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"../api/product-option-file/index.js";import"../models/data/product/index.js";import"../models/data/variant-type/index.js";import"../models/data/product/variant/index.js";import"../models/data/product/variant/price/index.js";import"../models/data/product-attribute/index.js";import"../models/data/product/attribute-value/index.js";import"../models/data/product-filter/index.js";import"../models/data/variant-type/variant-value/index.js";import"../models/data/order-transaction/index.js";import"../models/data/product-option-set/index.js";import"../models/data/raffle/index.js";import"../models/data/product-campaing/campaign/index.js";import{IkasTheme as s}from"../models/theme/theme.js";import{IkasThemePageType as a}from"../models/theme/page/index.js";import"../models/theme/component/prop/index.js";import"../models/theme/page/component/prop-value/link.js";import"../models/ui/brand-list/index.js";import"../models/ui/blog-list/index.js";import"../models/ui/blog-category-list/index.js";import"../models/ui/category-list/index.js";import"../models/ui/product-detail/index.js";import"../models/ui/product-list/index.js";import"../models/ui/product-attribute-detail/index.js";import"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/customer-review-summary-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/register.js";import"../models/ui/validator/form/contact-form.js";import"../models/ui/validator/form/forgot-password.js";import"../models/ui/validator/form/recover-password.js";import"../models/ui/validator/form/account-info.js";import"../models/ui/validator/form/raffle-form.js";import"../models/ui/validator/form/customer-review.js";import"../models/ui/raffle-list/index.js";import"../models/theme/settings/index.js";import"../models/theme/custom-data/index.js";import{IkasStorefront as d}from"../models/data/storefront/index.js";import{IkasSalesChannel as l}from"../models/data/sales-channel/index.js";import{IkasStorefrontRouting as m}from"../models/data/storefront/routing/index.js";import{IkasStorefrontConfig as c}from"../storefront/index.js";import{IkasPageDataProvider as p}from"./page-data-get.js";import{IkasStorefrontThemeLocalization as u}from"../models/data/storefront/theme-localization/index.js";import{IkasStorefrontAPI as f}from"../api/storefront/index.js";import{I18NFileReader as g}from"../utils/i18n.js";import"../api/blog/index.js";import"../api/brand/index.js";import"../api/cart/index.js";import"../api/category/index.js";import{IkasCheckoutAPI as j}from"../api/checkout/index.js";import"../api/city/index.js";import"../api/country/index.js";import"../api/customer/index.js";import"../api/customer-review/index.js";import"../api/customer-review-summary/index.js";import"../api/district/index.js";import"../api/html-meta-data/index.js";import"../api/merchant/index.js";import"../api/product-search/index.js";import"../api/apollo.js";import"../api/favorite-product/index.js";import"../api/contact-form/index.js";import"../api/state/index.js";import"../api/product-option-set/index.js";import"../api/raffle/index.js";import"../api/back-in-stock-reminder/index.js";import"../api/product-campaign/index.js";import{getGoogleFontHref as x}from"../utils/google-fonts.js";var h=function(){function h(){}return h.readLocalTheme=function(){return new Promise((function(e,t){i.readFile("./src/theme.json",{flag:"a+"},(function(o,r){if(o)return t(o);var i=r.length?JSON.parse(r.toString()):{};e(new s(i))}))}))},h.readSettingsFile=function(){return new Promise((function(e){var t=n().serverRuntimeConfig.SETTINGS;i.readFile(t,{flag:"a+"},(function(t,o){if(t)return console.error("SETTINGS FILE READ ERROR!!!"),console.error(t),e(null);var r=o.length?JSON.parse(o.toString()):{};e(r)}))}))},h.getSettings=function(o){var r=this;return new Promise((function(n){return e(r,void 0,void 0,(function(){var e,r,s,a,p,g,j,x,v,S,C,y,b,I,w,k;return t(this,(function(t){switch(t.label){case 0:return"local"===process.env.NEXT_PUBLIC_ENV?c.storefrontId?[4,f.getStorefront(c.storefrontId)]:(console.error("Missing storefrontId in the config.json file!"),[2,n(null)]):[3,3];case 1:return(e=t.sent())?(r=e,[4,h.readLocalTheme()]):[2,n(null)];case 2:return s=t.sent(),a=h.createColorScript(s.settings),p=h.createFontScript(s.settings),g=[],a&&g.push(a),p&&g.push(p),n({storefront:r,themeLocalization:new u({themeJson:s}),salesChannel:new l({id:r.salesChannelId}),routing:r.routings.length?r.routings.find((function(e){return e.locale===o||e.id===o}))||r.routings[0]:new m({}),favicon:s.settings.favicon,stockPreference:s.settings.stockPreference,storefrontJSScripts:g,domain:"",productBackInStockSettings:{customerLoginRequired:!0},customerReviewSettings:{customerLoginRequired:!0,customerPurchaseRequired:!1}}),[3,5];case 3:return[4,h.readSettingsFile()];case 4:if(!(j=t.sent())||!j.localizationMap)return[2,n(null)];if(x=new d(j.storefront),v=new l(j.salesChannel),S=j.localizationMap,C=j.storefrontJSScripts||[],y=j.domain,b=j.productBackInStockSettings?{customerLoginRequired:j.productBackInStockSettings.customerLoginRequired}:null,I=j.customerReviewSettings?{customerLoginRequired:j.customerReviewSettings.customerLoginRequired||!1,customerPurchaseRequired:j.customerReviewSettings.customerPurchaseRequired||!1}:null,w=S[o],k=x.routings.find((function(e){return e.id===o||e.path===o})),!w||!k)return console.error("THEME LOCALIZATION PATH OR ROUTING MISSING!!!"),[2,n(null)];i.readFile(w,{flag:"a+"},(function(e,t){if(e)return console.error("THEME LOCALZIATION FILE READ ERROR!!!"),console.error(e),n(null);var o=t.length?JSON.parse(t.toString()):{},r=new u(o),i=r.themeJson.settings.favicon,s=r.themeJson.settings.stockPreference;if(r.themeJson.settings){var a=h.createColorScript(r.themeJson.settings),d=h.createFontScript(r.themeJson.settings);a&&C.push(a),d&&C.push(d)}n({storefront:x,themeLocalization:r,salesChannel:v,routing:k,favicon:i,stockPreference:s,storefrontJSScripts:C,domain:y,productBackInStockSettings:b,customerReviewSettings:I})})),t.label=5;case 5:return[2]}}))}))}))},h.getPageData=function(i,s,d,l,m){var u,f;return e(this,void 0,void 0,(function(){var e,x,v,S,C,y,b,I,w,k,P,R,L,T,B,E,V,J,F,O,N,D,q,A,z,M;return t(this,(function(t){switch(t.label){case 0:return e="local"===process.env.NEXT_PUBLIC_ENV,x=!e&&m,v=n().serverRuntimeConfig,x?[3,7]:(S=i.locale)?[4,h.getSettings(S)]:[2,{props:{},notFound:!0}];case 1:return(C=t.sent())&&C.storefront.mainStorefrontThemeId&&C.storefront.salesChannelId?(y=C.storefront,b=C.themeLocalization,I=C.salesChannel,w=C.routing,k=C.favicon,P=C.stockPreference,R=C.storefrontJSScripts,L=C.domain,T=C.productBackInStockSettings,B=C.customerReviewSettings,c.storefrontId=y.id,c.storefrontRoutingId=w.id,c.storefrontThemeId=y.mainStorefrontThemeId,c.salesChannelId=y.salesChannelId,c.priceListId=w.priceListId||void 0,c.stockLocationIds=null===(u=I.stockLocations)||void 0===u?void 0:u.map((function(e){return e.id})),c.routings=y.routings,c.paymentGateways=I.paymentGateways||[],c.gtmId=y.gtmId||void 0,c.fbpId=y.fbpId||void 0,c.favicon=k||null,c.stockPreference=P||null,c.storefrontJSScripts=R||[],c.domain=L,c.productBackInStockSettings=T,c.customerReviewSettings=B,(E=new p(b.themeJson,i.params,d)).possiblePageTypes=l||(d?[d]:[]),m?[3,3]:[4,E.getPageData()]):[2,{props:{},notFound:!0}];case 2:if(t.sent(),!E.page)return[2,{props:{},notFound:!0}];t.label=3;case 3:return V=m?E.theme.components.map((function(e){return e.id})):E.page.components.map((function(e){return e.componentId})),J=b.themeJson.components.filter((function(e){return m||V.includes(e.id)})),F=r(["common"],J.map((function(e){return e.dir})),!0),(d===a.CHECKOUT||m)&&F.push("checkout-page"),O=v.nextI18nConf,N=w.locale,[4,new g(N,F,e?void 0:O.localePath).read()];case 4:return D=t.sent(),c.translations=D,q={},d!==a.CHECKOUT?[3,6]:(A=null===(f=E.page)||void 0===f?void 0:f.components[0])?[4,j.listCheckoutSettings()]:[3,6];case 5:z=t.sent(),M={buttonBgColor:A.propValues.buttonBgColor,buttonTextColor:A.propValues.buttonTextColor,buttonDisabledBgColor:A.propValues.buttonDisabledBgColor,buttonDisabledTextColor:A.propValues.buttonDisabledTextColor,primaryTextColor:A.propValues.primaryTextColor,secondaryTextColor:A.propValues.secondaryTextColor,primaryBgColor:A.propValues.primaryBgColor,secondaryBgColor:A.propValues.secondaryBgColor,borderColor:A.propValues.borderColor,cardBgColor:A.propValues.cardBgColor,errorColor:A.propValues.errorColor,errorLightColor:A.propValues.errorLightColor,warningColor:A.propValues.warningColor,warningLightColor:A.propValues.warningLightColor,successColor:A.propValues.successColor,successLightColor:A.propValues.successLightColor},q.customizationProps=M,q.returnPolicy=b.returnPolicy,q.privacyPolicy=b.privacyPolicy,q.termsOfService=b.termsOfService,q.checkoutSettingsStr=(null==z?void 0:z.length)?JSON.stringify(z[0]):null,t.label=6;case 6:return s?[2,{props:o(o({},E.nextPageData.props),q)}]:[2,{props:o(o({},E.nextPageData.props),q),revalidate:60}];case 7:return[2,{props:{}}];case 8:return[2]}}))}))},h.getStaticProps=function(o,r,i,n){return e(this,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,h.getPageData(o,!1,r,i,n)];case 1:return[2,e.sent()]}}))}))},h.getServerSideProps=function(o,r){return e(this,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,h.getPageData(o,!0,r)];case 1:return[2,e.sent()]}}))}))},h.createColorScript=function(e){if(e.colors)return"<script>".concat(e.colors.map((function(e){return'document.documentElement.style.setProperty("'.concat(e.key,'","').concat(e.color,'");')})).join("\r\n"),"<\/script> \n ")},h.createFontScript=function(e){var t=x(e.fontFamily);if(t)return'<link id="ikas-font" rel="stylesheet" href="'.concat(t,"\"> \n <style>\n body { \n font-family: '").concat(e.fontFamily.name,'\', -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;\n } \n </style>')},h}();export{h as IkasNextPageDataProvider};
@@ -1 +1 @@
1
- import{IkasBlog as t,IkasBlogCategory as o}from"../models/data/blog/index.js";import{IkasBrand as e}from"../models/data/brand/index.js";import{IkasCategory as i}from"../models/data/category/index.js";import"../models/data/checkout/index.js";import"../models/data/customer/address/index.js";import"../models/data/customer/index.js";import"../models/data/customer-review/index.js";import"mobx";import"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"../api/product-option-file/index.js";import{IkasProduct as r}from"../models/data/product/index.js";import"../models/data/variant-type/index.js";import{IkasProductVariant as d}from"../models/data/product/variant/index.js";import"../models/data/product/variant/price/index.js";import"../models/data/product-attribute/index.js";import"../models/data/product/attribute-value/index.js";import"../models/data/product-filter/index.js";import"../models/data/variant-type/variant-value/index.js";import"../models/data/order-transaction/index.js";import"../models/data/product-option-set/index.js";import{IkasRaffle as m}from"../models/data/raffle/index.js";import"../models/data/product-campaing/campaign/index.js";import"../models/data/customer-attribute/index.js";import"../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../models/theme/theme.js";import"../models/theme/page/index.js";import"../models/theme/component/prop/index.js";import"../models/theme/page/component/prop-value/link.js";import"../models/ui/brand-list/index.js";import"../models/ui/blog-list/index.js";import"../models/ui/blog-category-list/index.js";import"../models/ui/category-list/index.js";import{IkasProductDetail as s}from"../models/ui/product-detail/index.js";import"../models/ui/product-list/index.js";import"../models/ui/product-attribute-detail/index.js";import"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/customer-review-summary-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/register.js";import"../models/ui/validator/form/contact-form.js";import"../models/ui/validator/form/forgot-password.js";import"../models/ui/validator/form/recover-password.js";import"../models/ui/validator/form/account-info.js";import"../models/ui/validator/form/raffle-form.js";import"../models/ui/validator/form/customer-review.js";import"../models/ui/raffle-list/index.js";import"../models/theme/settings/index.js";import"../models/theme/custom-data/index.js";function a(){return new s(new r({variants:[new d]}),[])}function n(){return new i}function l(){return new e}function p(){return new t}function u(){return new o}function j(){return new m}export{p as getPlaceholderBlog,u as getPlaceholderBlogCategory,l as getPlaceholderBrand,n as getPlaceholderCategory,a as getPlaceholderProduct,j as getPlaceholderRaffle};
1
+ import{IkasBlog as o,IkasBlogCategory as t}from"../models/data/blog/index.js";import{IkasBrand as e}from"../models/data/brand/index.js";import{IkasCategory as i}from"../models/data/category/index.js";import"../models/data/checkout/index.js";import"../models/data/customer/address/index.js";import"../models/data/customer/index.js";import"../models/data/customer-review/index.js";import"mobx";import"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"../api/product-option-file/index.js";import{IkasProduct as r}from"../models/data/product/index.js";import"../models/data/variant-type/index.js";import{IkasProductVariant as d}from"../models/data/product/variant/index.js";import"../models/data/product/variant/price/index.js";import"../models/data/product-attribute/index.js";import"../models/data/product/attribute-value/index.js";import"../models/data/product-filter/index.js";import"../models/data/variant-type/variant-value/index.js";import"../models/data/order-transaction/index.js";import"../models/data/product-option-set/index.js";import{IkasRaffle as m}from"../models/data/raffle/index.js";import"../models/data/product-campaing/campaign/index.js";import"../models/theme/theme.js";import"../models/theme/page/index.js";import"../models/theme/component/prop/index.js";import"../models/theme/page/component/prop-value/link.js";import"../models/ui/brand-list/index.js";import"../models/ui/blog-list/index.js";import"../models/ui/blog-category-list/index.js";import"../models/ui/category-list/index.js";import{IkasProductDetail as s}from"../models/ui/product-detail/index.js";import"../models/ui/product-list/index.js";import"../models/ui/product-attribute-detail/index.js";import"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/customer-review-summary-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/register.js";import"../models/ui/validator/form/contact-form.js";import"../models/ui/validator/form/forgot-password.js";import"../models/ui/validator/form/recover-password.js";import"../models/ui/validator/form/account-info.js";import"../models/ui/validator/form/raffle-form.js";import"../models/ui/validator/form/customer-review.js";import"../models/ui/raffle-list/index.js";import"../models/theme/settings/index.js";import"../models/theme/custom-data/index.js";function a(){return new s(new r({variants:[new d]}),[])}function n(){return new i}function l(){return new e}function p(){return new o}function u(){return new t}function j(){return new m}export{p as getPlaceholderBlog,u as getPlaceholderBlogCategory,l as getPlaceholderBrand,n as getPlaceholderCategory,a as getPlaceholderProduct,j as getPlaceholderRaffle};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as i}from'../../ext/tslib/tslib.es6.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import{IkasProductDetail as e}from"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasStorefrontConfig as o}from"../../storefront/index.js";import"../../api/blog/index.js";import"../../api/brand/index.js";import"../../api/cart/index.js";import"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import{IkasProductSearchAPI as r}from"../../api/product-search/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";var a=function(){function a(t){this.attributeListPropValue=t}return a.prototype.getValue=function(){var a;return t(this,void 0,void 0,(function(){var t,s,d,m,p,n,l=this;return i(this,(function(i){switch(i.label){case 0:return!(null===(a=this.attributeListPropValue.attributeIds)||void 0===a?void 0:a.length)||this.attributeListPropValue.usePageData||!this.attributeListPropValue.usePageData&&!this.attributeListPropValue.variantId?[2,{productDetail:null,attributeListPropValue:this.attributeListPropValue}]:[4,r.searchProducts({productIdList:[this.attributeListPropValue.productId],priceListId:o.priceListId,salesChannelId:o.salesChannelId})];case 1:return(s=i.sent())&&(d=s.data).length&&((null==(m=d[0])?void 0:m.hasVariant)?(p=m.variants.find((function(t){return t.id===l.attributeListPropValue.variantId})))&&(t=new e(m,p.variantValues)):(n=m.variants.find((function(t){return t.isActive})),t=new e(m,(n||m.variants[0]).variantValues))),[2,{productDetail:t||null,attributeListPropValue:this.attributeListPropValue}]}}))}))},a}();export{a as IkasAttributeListPropValueProvider};
1
+ import{__awaiter as t,__generator as i}from'../../ext/tslib/tslib.es6.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import{IkasProductDetail as e}from"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasStorefrontConfig as o}from"../../storefront/index.js";import"../../api/blog/index.js";import"../../api/brand/index.js";import"../../api/cart/index.js";import"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import{IkasProductSearchAPI as r}from"../../api/product-search/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";var a=function(){function a(t){this.attributeListPropValue=t}return a.prototype.getValue=function(){var a;return t(this,void 0,void 0,(function(){var t,s,d,m,p,n,l=this;return i(this,(function(i){switch(i.label){case 0:return!(null===(a=this.attributeListPropValue.attributeIds)||void 0===a?void 0:a.length)||this.attributeListPropValue.usePageData||!this.attributeListPropValue.usePageData&&!this.attributeListPropValue.variantId?[2,{productDetail:null,attributeListPropValue:this.attributeListPropValue}]:[4,r.searchProducts({productIdList:[this.attributeListPropValue.productId],priceListId:o.priceListId,salesChannelId:o.salesChannelId})];case 1:return(s=i.sent())&&(d=s.data).length&&((null==(m=d[0])?void 0:m.hasVariant)?(p=m.variants.find((function(t){return t.id===l.attributeListPropValue.variantId})))&&(t=new e(m,p.variantValues)):(n=m.variants.find((function(t){return t.isActive})),t=new e(m,(n||m.variants[0]).variantValues))),[2,{productDetail:t||null,attributeListPropValue:this.attributeListPropValue}]}}))}))},a}();export{a as IkasAttributeListPropValueProvider};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as i}from'../../ext/tslib/tslib.es6.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import{IkasProductDetail as e}from"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasStorefrontConfig as o}from"../../storefront/index.js";import"../../api/blog/index.js";import"../../api/brand/index.js";import"../../api/cart/index.js";import"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import{IkasProductSearchAPI as r}from"../../api/product-search/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";var a=function(){function a(t){this.attributePropValue=t}return a.prototype.getValue=function(){var a;return t(this,void 0,void 0,(function(){var t,d,s,m,p,n,l=this;return i(this,(function(i){switch(i.label){case 0:return!this.attributePropValue.attributeId||(null===(a=this.attributePropValue)||void 0===a?void 0:a.usePageData)||!this.attributePropValue.usePageData&&!this.attributePropValue.variantId?[2,{productDetail:null,attributePropValue:this.attributePropValue}]:[4,r.searchProducts({productIdList:[this.attributePropValue.productId],priceListId:o.priceListId,salesChannelId:o.salesChannelId})];case 1:return(d=i.sent())&&(s=d.data).length&&((null==(m=s[0])?void 0:m.hasVariant)?(p=m.variants.find((function(t){return t.id===l.attributePropValue.variantId})))&&(t=new e(m,p.variantValues)):(n=m.variants.find((function(t){return t.isActive})),t=new e(m,(n||m.variants[0]).variantValues))),[2,{productDetail:t||null,attributePropValue:this.attributePropValue}]}}))}))},a}();export{a as IkasAttributePropValueProvider};
1
+ import{__awaiter as t,__generator as i}from'../../ext/tslib/tslib.es6.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import{IkasProductDetail as e}from"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasStorefrontConfig as o}from"../../storefront/index.js";import"../../api/blog/index.js";import"../../api/brand/index.js";import"../../api/cart/index.js";import"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import{IkasProductSearchAPI as r}from"../../api/product-search/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";var a=function(){function a(t){this.attributePropValue=t}return a.prototype.getValue=function(){var a;return t(this,void 0,void 0,(function(){var t,d,s,m,p,n,l=this;return i(this,(function(i){switch(i.label){case 0:return!this.attributePropValue.attributeId||(null===(a=this.attributePropValue)||void 0===a?void 0:a.usePageData)||!this.attributePropValue.usePageData&&!this.attributePropValue.variantId?[2,{productDetail:null,attributePropValue:this.attributePropValue}]:[4,r.searchProducts({productIdList:[this.attributePropValue.productId],priceListId:o.priceListId,salesChannelId:o.salesChannelId})];case 1:return(d=i.sent())&&(s=d.data).length&&((null==(m=s[0])?void 0:m.hasVariant)?(p=m.variants.find((function(t){return t.id===l.attributePropValue.variantId})))&&(t=new e(m,p.variantValues)):(n=m.variants.find((function(t){return t.isActive})),t=new e(m,(n||m.variants[0]).variantValues))),[2,{productDetail:t||null,attributePropValue:this.attributePropValue}]}}))}))},a}();export{a as IkasAttributePropValueProvider};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as o}from'../../ext/tslib/tslib.es6.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import{IkasBlogCategoryList as e}from"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var i=function(){function i(t){this.blogCategoryListPropValue=t}return i.prototype.getValue=function(){return t(this,void 0,void 0,(function(){var t;return o(this,(function(o){switch(o.label){case 0:return[4,(t=new e({blogCategoryListPropValue:this.blogCategoryListPropValue})).getInitial()];case 1:return o.sent(),[2,t]}}))}))},i}();export{i as IkasBlogCategoryListPropValueProvider};
1
+ import{__awaiter as o,__generator as t}from'../../ext/tslib/tslib.es6.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import{IkasBlogCategoryList as i}from"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var e=function(){function e(o){this.blogCategoryListPropValue=o}return e.prototype.getValue=function(){return o(this,void 0,void 0,(function(){var o;return t(this,(function(t){switch(t.label){case 0:return[4,(o=new i({blogCategoryListPropValue:this.blogCategoryListPropValue})).getInitial()];case 1:return t.sent(),[2,o]}}))}))},e}();export{e as IkasBlogCategoryListPropValueProvider};
@@ -1 +1 @@
1
- import{__awaiter as o,__generator as i}from'../../ext/tslib/tslib.es6.js';import{IkasBlogAPI as t}from"../../api/blog/index.js";import"../../api/brand/index.js";import"../../api/cart/index.js";import"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import"../../api/product-search/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";import{getPlaceholderBlogCategory as e}from"../placeholders.js";var r=function(){function r(o){this.blogCategoryPropValue=o}return r.prototype.getValue=function(){var r;return o(this,void 0,void 0,(function(){return i(this,(function(o){switch(o.label){case 0:return(null===(r=this.blogCategoryPropValue)||void 0===r?void 0:r.usePageData)?[2,{blogCategory:null,blogCategoryPropValue:this.blogCategoryPropValue}]:this.blogCategoryPropValue.blogCategoryId?[4,t.listBlogCategory({idList:[this.blogCategoryPropValue.blogCategoryId],page:1,limit:1})]:[2,null];case 1:return[2,{blogCategory:o.sent().blogCategories[0]||e(),blogCategoryPropValue:this.blogCategoryPropValue}]}}))}))},r}();export{r as IkasBlogCategoryPropValueProvider};
1
+ import{__awaiter as o,__generator as i}from'../../ext/tslib/tslib.es6.js';import{IkasBlogAPI as t}from"../../api/blog/index.js";import"../../api/brand/index.js";import"../../api/cart/index.js";import"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import"../../api/product-search/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";import{getPlaceholderBlogCategory as e}from"../placeholders.js";var r=function(){function r(o){this.blogCategoryPropValue=o}return r.prototype.getValue=function(){var r;return o(this,void 0,void 0,(function(){return i(this,(function(o){switch(o.label){case 0:return(null===(r=this.blogCategoryPropValue)||void 0===r?void 0:r.usePageData)?[2,{blogCategory:null,blogCategoryPropValue:this.blogCategoryPropValue}]:this.blogCategoryPropValue.blogCategoryId?[4,t.listBlogCategory({idList:[this.blogCategoryPropValue.blogCategoryId],page:1,limit:1})]:[2,null];case 1:return[2,{blogCategory:o.sent().blogCategories[0]||e(),blogCategoryPropValue:this.blogCategoryPropValue}]}}))}))},r}();export{r as IkasBlogCategoryPropValueProvider};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as i}from'../../ext/tslib/tslib.es6.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import{IkasThemePageType as o}from"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import{IkasBlogListType as e,IkasBlogList as s}from"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var r=function(){function r(t,i,o){this.pageType=t,this.blogListPropValue=i,this.pageSpecificData=o}return r.prototype.getValue=function(){return t(this,void 0,void 0,(function(){var t,r,d;return i(this,(function(i){switch(i.label){case 0:return t=null,this.blogListPropValue.blogListType===e.ALL&&this.blogListPropValue.usePageFilter&&this.pageType===o.BLOG_CATEGORY&&this.pageSpecificData&&(r=this.pageSpecificData,t=r.id),this.blogListPropValue.blogListType===e.CATEGORY&&this.blogListPropValue.categoryId&&(t=this.blogListPropValue.categoryId),[4,(d=new s({blogListPropValue:this.blogListPropValue,filterCategoryId:t})).getInitial()];case 1:return i.sent(),[2,d]}}))}))},r}();export{r as IkasBlogListPropValueProvider};
1
+ import{__awaiter as t,__generator as i}from'../../ext/tslib/tslib.es6.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import{IkasThemePageType as o}from"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import{IkasBlogListType as e,IkasBlogList as s}from"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var r=function(){function r(t,i,o){this.pageType=t,this.blogListPropValue=i,this.pageSpecificData=o}return r.prototype.getValue=function(){return t(this,void 0,void 0,(function(){var t,r,d;return i(this,(function(i){switch(i.label){case 0:return t=null,this.blogListPropValue.blogListType===e.ALL&&this.blogListPropValue.usePageFilter&&this.pageType===o.BLOG_CATEGORY&&this.pageSpecificData&&(r=this.pageSpecificData,t=r.id),this.blogListPropValue.blogListType===e.CATEGORY&&this.blogListPropValue.categoryId&&(t=this.blogListPropValue.categoryId),[4,(d=new s({blogListPropValue:this.blogListPropValue,filterCategoryId:t})).getInitial()];case 1:return i.sent(),[2,d]}}))}))},r}();export{r as IkasBlogListPropValueProvider};
@@ -1 +1 @@
1
- import{__awaiter as i,__generator as o}from'../../ext/tslib/tslib.es6.js';import{IkasBlogAPI as t}from"../../api/blog/index.js";import"../../api/brand/index.js";import"../../api/cart/index.js";import"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import"../../api/product-search/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";import{getPlaceholderBlog as e}from"../placeholders.js";var r=function(){function r(i){this.blogPropValue=i}return r.prototype.getValue=function(){var r;return i(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return(null===(r=this.blogPropValue)||void 0===r?void 0:r.usePageData)?[2,{blog:null,blogPropValue:this.blogPropValue}]:this.blogPropValue.blogId?[4,t.getBlog({id:this.blogPropValue.blogId})]:[2,null];case 1:return[2,{blog:i.sent()||e(),blogPropValue:this.blogPropValue}]}}))}))},r}();export{r as IkasBlogPropValueProvider};
1
+ import{__awaiter as i,__generator as o}from'../../ext/tslib/tslib.es6.js';import{IkasBlogAPI as t}from"../../api/blog/index.js";import"../../api/brand/index.js";import"../../api/cart/index.js";import"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import"../../api/product-search/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";import{getPlaceholderBlog as e}from"../placeholders.js";var r=function(){function r(i){this.blogPropValue=i}return r.prototype.getValue=function(){var r;return i(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return(null===(r=this.blogPropValue)||void 0===r?void 0:r.usePageData)?[2,{blog:null,blogPropValue:this.blogPropValue}]:this.blogPropValue.blogId?[4,t.getBlog({id:this.blogPropValue.blogId})]:[2,null];case 1:return[2,{blog:i.sent()||e(),blogPropValue:this.blogPropValue}]}}))}))},r}();export{r as IkasBlogPropValueProvider};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as o}from'../../ext/tslib/tslib.es6.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import{IkasBrandList as i}from"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var e=function(){function e(t){this.brandListPropValue=t}return e.prototype.getValue=function(){return t(this,void 0,void 0,(function(){var t;return o(this,(function(o){switch(o.label){case 0:return[4,(t=new i({brandListPropValue:this.brandListPropValue})).getInitial()];case 1:return o.sent(),[2,t]}}))}))},e}();export{e as IkasBrandListPropValueProvider};
1
+ import{__awaiter as t,__generator as o}from'../../ext/tslib/tslib.es6.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import{IkasBrandList as i}from"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var e=function(){function e(t){this.brandListPropValue=t}return e.prototype.getValue=function(){return t(this,void 0,void 0,(function(){var t;return o(this,(function(o){switch(o.label){case 0:return[4,(t=new i({brandListPropValue:this.brandListPropValue})).getInitial()];case 1:return o.sent(),[2,t]}}))}))},e}();export{e as IkasBrandListPropValueProvider};
@@ -1 +1 @@
1
- import{__awaiter as i,__generator as t}from'../../ext/tslib/tslib.es6.js';import"../../api/blog/index.js";import{IkasBrandAPI as o}from"../../api/brand/index.js";import"../../api/cart/index.js";import"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import"../../api/product-search/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";import{getPlaceholderBrand as e}from"../placeholders.js";var r=function(){function r(i){this.brandPropValue=i}return r.prototype.getValue=function(){return i(this,void 0,void 0,(function(){var i,r;return t(this,(function(t){switch(t.label){case 0:if(this.brandPropValue.usePageData)return[2,{brand:null,brandPropValue:this.brandPropValue}];if(!this.brandPropValue.brandId)return[2,null];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,o.listBrands({idList:[this.brandPropValue.brandId]})];case 2:return i=t.sent(),[2,{brand:i.brands.length?i.brands[0]:e(),brandPropValue:this.brandPropValue}];case 3:return r=t.sent(),console.log(r),[3,4];case 4:return[2,null]}}))}))},r}();export{r as IkasBrandPropValueProvider};
1
+ import{__awaiter as i,__generator as t}from'../../ext/tslib/tslib.es6.js';import"../../api/blog/index.js";import{IkasBrandAPI as o}from"../../api/brand/index.js";import"../../api/cart/index.js";import"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import"../../api/product-search/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";import{getPlaceholderBrand as e}from"../placeholders.js";var r=function(){function r(i){this.brandPropValue=i}return r.prototype.getValue=function(){return i(this,void 0,void 0,(function(){var i,r;return t(this,(function(t){switch(t.label){case 0:if(this.brandPropValue.usePageData)return[2,{brand:null,brandPropValue:this.brandPropValue}];if(!this.brandPropValue.brandId)return[2,null];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,o.listBrands({idList:[this.brandPropValue.brandId]})];case 2:return i=t.sent(),[2,{brand:i.brands.length?i.brands[0]:e(),brandPropValue:this.brandPropValue}];case 3:return r=t.sent(),console.log(r),[3,4];case 4:return[2,null]}}))}))},r}();export{r as IkasBrandPropValueProvider};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as o}from'../../ext/tslib/tslib.es6.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import{IkasCategoryList as e}from"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var i=function(){function i(t){this.categoryListPropValue=t}return i.prototype.getValue=function(){return t(this,void 0,void 0,(function(){var t;return o(this,(function(o){switch(o.label){case 0:return[4,(t=new e({categoryListPropValue:this.categoryListPropValue})).getInitial()];case 1:return o.sent(),[2,t]}}))}))},i}();export{i as IkasCategoryListPropValueProvider};
1
+ import{__awaiter as t,__generator as o}from'../../ext/tslib/tslib.es6.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import{IkasCategoryList as i}from"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var e=function(){function e(t){this.categoryListPropValue=t}return e.prototype.getValue=function(){return t(this,void 0,void 0,(function(){var t;return o(this,(function(o){switch(o.label){case 0:return[4,(t=new i({categoryListPropValue:this.categoryListPropValue})).getInitial()];case 1:return o.sent(),[2,t]}}))}))},e}();export{e as IkasCategoryListPropValueProvider};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as i}from'../../ext/tslib/tslib.es6.js';import"../../api/blog/index.js";import"../../api/brand/index.js";import"../../api/cart/index.js";import{IkasCategoryAPI as e}from"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import"../../api/product-search/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";import{getPlaceholderCategory as o}from"../placeholders.js";var r=function(){function r(t){this.categoryPropValue=t}return r.prototype.getValue=function(){return t(this,void 0,void 0,(function(){var t,r;return i(this,(function(i){switch(i.label){case 0:if(this.categoryPropValue.usePageData)return[2,{category:null,categoryPropValue:this.categoryPropValue}];if(!this.categoryPropValue.categoryId)return[2,null];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,e.listCategories({idList:[this.categoryPropValue.categoryId]})];case 2:return t=i.sent(),[2,{category:t.categories.length?t.categories[0]:o(),categoryPropValue:this.categoryPropValue}];case 3:return r=i.sent(),console.log(r),[3,4];case 4:return[2,null]}}))}))},r}();export{r as IkasCategoryPropValueProvider};
1
+ import{__awaiter as i,__generator as t}from'../../ext/tslib/tslib.es6.js';import"../../api/blog/index.js";import"../../api/brand/index.js";import"../../api/cart/index.js";import{IkasCategoryAPI as o}from"../../api/category/index.js";import"../../api/checkout/index.js";import"../../api/city/index.js";import"../../api/country/index.js";import"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import"../../api/merchant/index.js";import"../../api/product-search/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";import{getPlaceholderCategory as e}from"../placeholders.js";var r=function(){function r(i){this.categoryPropValue=i}return r.prototype.getValue=function(){return i(this,void 0,void 0,(function(){var i,r;return t(this,(function(t){switch(t.label){case 0:if(this.categoryPropValue.usePageData)return[2,{category:null,categoryPropValue:this.categoryPropValue}];if(!this.categoryPropValue.categoryId)return[2,null];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,o.listCategories({idList:[this.categoryPropValue.categoryId]})];case 2:return i=t.sent(),[2,{category:i.categories.length?i.categories[0]:e(),categoryPropValue:this.categoryPropValue}];case 3:return r=t.sent(),console.log(r),[3,4];case 4:return[2,null]}}))}))},r}();export{r as IkasCategoryPropValueProvider};