@ubnt/store.core 9.17.0-alpha.4 → 9.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (429) hide show
  1. package/CHANGELOG.md +2 -154
  2. package/lib/_virtual/_virtual_multi-entry.js +12 -27
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +10 -14
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/apis/smartcat.js +1 -4
  7. package/lib/apis/smartcat.js.map +1 -1
  8. package/lib/apis/smartcat.mjs +1 -4
  9. package/lib/apis/smartcat.mjs.map +1 -1
  10. package/lib/{components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js → assets/icons/menu/icon-globe.svg.js} +6 -6
  11. package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
  12. package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
  13. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
  14. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
  15. package/lib/components/CategoryTabs/CategoryTabs.types.d.ts +1 -1
  16. package/lib/components/CloserLookSection/CloserLookSection.js.map +1 -1
  17. package/lib/components/CloserLookSection/CloserLookSection.mjs.map +1 -1
  18. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  19. package/lib/components/Container/Container.d.ts +1 -1
  20. package/lib/components/Container/Container.js +3 -4
  21. package/lib/components/Container/Container.js.map +1 -1
  22. package/lib/components/Container/Container.mjs +4 -5
  23. package/lib/components/Container/Container.mjs.map +1 -1
  24. package/lib/components/CustomImage/CustomImage.js.map +1 -1
  25. package/lib/components/CustomImage/CustomImage.mjs.map +1 -1
  26. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js.map +1 -1
  27. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs.map +1 -1
  28. package/lib/components/Footer/hooks/useFooterContent.d.ts +3 -1
  29. package/lib/components/Footer/hooks/useFooterContent.js +8 -1
  30. package/lib/components/Footer/hooks/useFooterContent.js.map +1 -1
  31. package/lib/components/Footer/hooks/useFooterContent.mjs +8 -1
  32. package/lib/components/Footer/hooks/useFooterContent.mjs.map +1 -1
  33. package/lib/components/Footer/translations/ar.json.js +1 -1
  34. package/lib/components/Footer/translations/ar.json.mjs +1 -1
  35. package/lib/components/Footer/translations/de.json.js +1 -1
  36. package/lib/components/Footer/translations/de.json.mjs +1 -1
  37. package/lib/components/Footer/translations/el.json.js +1 -1
  38. package/lib/components/Footer/translations/el.json.mjs +1 -1
  39. package/lib/components/Footer/translations/en.json.js +1 -0
  40. package/lib/components/Footer/translations/en.json.js.map +1 -1
  41. package/lib/components/Footer/translations/en.json.mjs +1 -0
  42. package/lib/components/Footer/translations/en.json.mjs.map +1 -1
  43. package/lib/components/Footer/translations/es.json.js +1 -1
  44. package/lib/components/Footer/translations/es.json.mjs +1 -1
  45. package/lib/components/Footer/translations/fr.json.js +4 -4
  46. package/lib/components/Footer/translations/fr.json.mjs +4 -4
  47. package/lib/components/Footer/translations/it.json.js +1 -1
  48. package/lib/components/Footer/translations/it.json.mjs +1 -1
  49. package/lib/components/Footer/translations/ja.json.js +2 -2
  50. package/lib/components/Footer/translations/ja.json.mjs +2 -2
  51. package/lib/components/Footer/translations/pt-BR.json.js +1 -1
  52. package/lib/components/Footer/translations/pt-BR.json.mjs +1 -1
  53. package/lib/components/Footer/translations/zh-Hans.json.js +4 -4
  54. package/lib/components/Footer/translations/zh-Hans.json.mjs +4 -4
  55. package/lib/components/Footer/translations/zh-Hant-TW.json.js +1 -1
  56. package/lib/components/Footer/translations/zh-Hant-TW.json.mjs +1 -1
  57. package/lib/components/GridGallery/GridGallery.js.map +1 -1
  58. package/lib/components/GridGallery/GridGallery.mjs.map +1 -1
  59. package/lib/components/Header/AccountMenu/AccountMenu.js +12 -20
  60. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  61. package/lib/components/Header/AccountMenu/AccountMenu.mjs +14 -22
  62. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  63. package/lib/components/Header/AccountMenu/megaphone.http.service.js +1 -4
  64. package/lib/components/Header/AccountMenu/megaphone.http.service.js.map +1 -1
  65. package/lib/components/Header/AccountMenu/megaphone.http.service.mjs +1 -4
  66. package/lib/components/Header/AccountMenu/megaphone.http.service.mjs.map +1 -1
  67. package/lib/components/Header/CartModalV2/CartModal.js.map +1 -1
  68. package/lib/components/Header/CartModalV2/CartModal.mjs.map +1 -1
  69. package/lib/components/Header/Header.js.map +1 -1
  70. package/lib/components/Header/Header.mjs.map +1 -1
  71. package/lib/components/Header/Header.styles.d.ts +2 -2
  72. package/lib/components/Header/Header.types.d.ts +4 -8
  73. package/lib/components/Header/Header.types.js +1 -2
  74. package/lib/components/Header/Header.types.js.map +1 -1
  75. package/lib/components/Header/Header.types.mjs +1 -2
  76. package/lib/components/Header/Header.types.mjs.map +1 -1
  77. package/lib/components/Header/LanguageFrame/LanguageFrame.js.map +1 -1
  78. package/lib/components/Header/LanguageFrame/LanguageFrame.mjs.map +1 -1
  79. package/lib/components/Header/LanguageFrame/Mobile/Mobile.js.map +1 -1
  80. package/lib/components/Header/LanguageFrame/Mobile/Mobile.mjs.map +1 -1
  81. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  82. package/lib/components/Header/MenuItem/MenuItem.styles.js +1 -1
  83. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  84. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +1 -1
  85. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  86. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  87. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  88. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  89. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +63 -85
  90. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  91. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +64 -86
  92. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  93. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -6
  94. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -11
  95. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  96. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -10
  97. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  98. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +1 -5
  99. package/lib/components/Header/Overlay/Overlay.js.map +1 -1
  100. package/lib/components/Header/Overlay/Overlay.mjs.map +1 -1
  101. package/lib/components/Header/ProHeader/ProHeader.d.ts +4 -2
  102. package/lib/components/Header/ProHeader/ProHeader.js +36 -145
  103. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  104. package/lib/components/Header/ProHeader/ProHeader.mjs +39 -146
  105. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  106. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +1 -4
  107. package/lib/components/Header/ProHeader/ProHeader.styles.js +18 -20
  108. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  109. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +19 -18
  110. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  111. package/lib/components/Header/translations/en.json.js +1 -4
  112. package/lib/components/Header/translations/en.json.js.map +1 -1
  113. package/lib/components/Header/translations/en.json.mjs +2 -4
  114. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  115. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  116. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  117. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  118. package/lib/components/ImageSequence/ImageSequence.js.map +1 -1
  119. package/lib/components/ImageSequence/ImageSequence.mjs.map +1 -1
  120. package/lib/components/LandingPage/Cards/Card/Card.js.map +1 -1
  121. package/lib/components/LandingPage/Cards/Card/Card.mjs.map +1 -1
  122. package/lib/components/LandingPage/Cards/Cards.js.map +1 -1
  123. package/lib/components/LandingPage/Cards/Cards.mjs.map +1 -1
  124. package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -3
  125. package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
  126. package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
  127. package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
  128. package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
  129. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  130. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  131. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  132. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  133. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js.map +1 -1
  134. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.mjs.map +1 -1
  135. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js.map +1 -1
  136. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.mjs.map +1 -1
  137. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js.map +1 -1
  138. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.mjs.map +1 -1
  139. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  140. package/lib/components/Microsites/MicrositeProductPage.js +39 -0
  141. package/lib/components/Microsites/MicrositeProductPage.js.map +1 -1
  142. package/lib/components/Microsites/MicrositeProductPage.mjs +39 -0
  143. package/lib/components/Microsites/MicrositeProductPage.mjs.map +1 -1
  144. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js.map +1 -1
  145. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.mjs.map +1 -1
  146. package/lib/components/ProductCompare/ProductCompare.js.map +1 -1
  147. package/lib/components/ProductCompare/ProductCompare.mjs.map +1 -1
  148. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  149. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  150. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
  151. package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
  152. package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
  153. package/lib/components/RelatedProducts/RelatedProducts.js.map +1 -1
  154. package/lib/components/RelatedProducts/RelatedProducts.mjs.map +1 -1
  155. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +17 -313
  156. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  157. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +17 -311
  158. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  159. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +2 -3
  160. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -2
  161. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  162. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -2
  163. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  164. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +34 -120
  165. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
  166. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +34 -120
  167. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
  168. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +2 -16
  169. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +12 -54
  170. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
  171. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +11 -50
  172. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
  173. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
  174. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
  175. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  176. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
  177. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  178. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
  179. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +0 -2
  180. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
  181. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +0 -2
  182. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
  183. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +1 -1
  184. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
  185. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
  186. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
  187. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  188. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
  189. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  190. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
  191. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +2 -1
  192. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
  193. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +2 -1
  194. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
  195. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
  196. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.js +1 -3
  197. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
  198. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.mjs +1 -3
  199. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
  200. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +0 -1
  201. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +7 -10
  202. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
  203. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +7 -10
  204. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
  205. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +0 -1
  206. package/lib/components/ResourceCalculatorV1/components/index.d.ts +1 -0
  207. package/lib/components/ResourceCalculatorV1/components/index.js +5 -0
  208. package/lib/components/{Header/Navigation/ProMenu → ResourceCalculatorV1/components}/index.js.map +1 -1
  209. package/lib/components/ResourceCalculatorV1/components/index.mjs +3 -0
  210. package/lib/components/ResourceCalculatorV1/translations/en.json.js +4 -6
  211. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  212. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +4 -6
  213. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  214. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  215. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js.map +1 -1
  216. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.mjs.map +1 -1
  217. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  218. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  219. package/lib/components/StorageSliders/Slider/Slider.js.map +1 -1
  220. package/lib/components/StorageSliders/Slider/Slider.mjs.map +1 -1
  221. package/lib/components/StorageSliders/StorageSliders.context.js.map +1 -1
  222. package/lib/components/StorageSliders/StorageSliders.context.mjs.map +1 -1
  223. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js.map +1 -1
  224. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.mjs.map +1 -1
  225. package/lib/components/VariantSelector/Variant/Variant.js.map +1 -1
  226. package/lib/components/VariantSelector/Variant/Variant.mjs.map +1 -1
  227. package/lib/components/index.d.ts +0 -1
  228. package/lib/components/index.js +0 -2
  229. package/lib/components/index.js.map +1 -1
  230. package/lib/components/index.mjs +0 -2
  231. package/lib/components/index.mjs.map +1 -1
  232. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -1
  233. package/lib/constants/proStoreCategories/mapping/index.js +10 -15
  234. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  235. package/lib/constants/proStoreCategories/mapping/index.mjs +10 -15
  236. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  237. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -2
  238. package/lib/constants/proStoreCategories/mapping/unifi.js +0 -1
  239. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  240. package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -1
  241. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  242. package/lib/constants/proStoreCategories/translations/en.json.js +0 -3
  243. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  244. package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -3
  245. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  246. package/lib/constants/proStoreCategories/translations/fr.json.js +1 -1
  247. package/lib/constants/proStoreCategories/translations/fr.json.mjs +1 -1
  248. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -1
  249. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +1 -1
  250. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -1
  251. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +1 -1
  252. package/lib/constants/url.d.ts +2 -1
  253. package/lib/constants/url.js +1 -0
  254. package/lib/constants/url.js.map +1 -1
  255. package/lib/constants/url.mjs +1 -0
  256. package/lib/constants/url.mjs.map +1 -1
  257. package/lib/contexts/MenuContext/context.js +1 -1
  258. package/lib/contexts/MenuContext/context.js.map +1 -1
  259. package/lib/contexts/MenuContext/context.mjs +1 -1
  260. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  261. package/lib/contexts/MenuContext/utils.js +1 -0
  262. package/lib/contexts/MenuContext/utils.js.map +1 -1
  263. package/lib/contexts/MenuContext/utils.mjs +1 -0
  264. package/lib/contexts/MenuContext/utils.mjs.map +1 -1
  265. package/lib/helpers/index.d.ts +0 -1
  266. package/lib/helpers/index.js +0 -11
  267. package/lib/helpers/index.js.map +1 -1
  268. package/lib/helpers/index.mjs +0 -1
  269. package/lib/helpers/index.mjs.map +1 -1
  270. package/lib/helpers/ux.d.ts +1 -9
  271. package/lib/helpers/ux.js +0 -15
  272. package/lib/helpers/ux.js.map +1 -1
  273. package/lib/helpers/ux.mjs +1 -15
  274. package/lib/helpers/ux.mjs.map +1 -1
  275. package/lib/hooks/useHasTouch.js.map +1 -1
  276. package/lib/hooks/useHasTouch.mjs.map +1 -1
  277. package/lib/hooks/useHorizontalScroll.js.map +1 -1
  278. package/lib/hooks/useHorizontalScroll.mjs.map +1 -1
  279. package/lib/types/index.d.ts +0 -1
  280. package/lib/types/index.js +0 -2
  281. package/lib/types/index.js.map +1 -1
  282. package/lib/types/index.mjs +0 -1
  283. package/lib/types/index.mjs.map +1 -1
  284. package/lib/utils/array.d.ts +0 -4
  285. package/lib/utils/array.js +0 -10
  286. package/lib/utils/array.js.map +1 -1
  287. package/lib/utils/array.mjs +1 -10
  288. package/lib/utils/array.mjs.map +1 -1
  289. package/lib/utils/money/constants.d.ts +25 -56
  290. package/lib/utils/money/constants.js +7 -72
  291. package/lib/utils/money/constants.js.map +1 -1
  292. package/lib/utils/money/constants.mjs +7 -70
  293. package/lib/utils/money/constants.mjs.map +1 -1
  294. package/lib/utils/money/format.d.ts +5 -10
  295. package/lib/utils/money/format.js +14 -22
  296. package/lib/utils/money/format.js.map +1 -1
  297. package/lib/utils/money/format.mjs +16 -23
  298. package/lib/utils/money/format.mjs.map +1 -1
  299. package/lib/utils/money/index.d.ts +1 -4
  300. package/lib/utils/money/index.js +8 -26
  301. package/lib/utils/money/index.js.map +1 -1
  302. package/lib/utils/money/index.mjs +4 -8
  303. package/lib/utils/money/index.mjs.map +1 -1
  304. package/lib/utils/money/misc.d.ts +28 -68
  305. package/lib/utils/money/misc.js +64 -35
  306. package/lib/utils/money/misc.js.map +1 -1
  307. package/lib/utils/money/misc.mjs +43 -32
  308. package/lib/utils/money/misc.mjs.map +1 -1
  309. package/lib/utils/money/tax.d.ts +2 -38
  310. package/lib/utils/money/tax.js +10 -46
  311. package/lib/utils/money/tax.js.map +1 -1
  312. package/lib/utils/money/tax.mjs +11 -42
  313. package/lib/utils/money/tax.mjs.map +1 -1
  314. package/lib/utils/money/types.d.ts +3 -78
  315. package/lib/utils/number.d.ts +1 -1
  316. package/lib/utils/number.js +1 -1
  317. package/lib/utils/number.js.map +1 -1
  318. package/lib/utils/number.mjs +1 -1
  319. package/lib/utils/number.mjs.map +1 -1
  320. package/lib/utils/validations/postalCodeSuperRefinement.js +3 -0
  321. package/lib/utils/validations/postalCodeSuperRefinement.js.map +1 -1
  322. package/lib/utils/validations/postalCodeSuperRefinement.mjs +3 -0
  323. package/lib/utils/validations/postalCodeSuperRefinement.mjs.map +1 -1
  324. package/lib/utils/validations/stateRegistrationNumberSuperRefinement.js +2 -0
  325. package/lib/utils/validations/stateRegistrationNumberSuperRefinement.js.map +1 -1
  326. package/lib/utils/validations/stateRegistrationNumberSuperRefinement.mjs +2 -0
  327. package/lib/utils/validations/stateRegistrationNumberSuperRefinement.mjs.map +1 -1
  328. package/lib/utils/validations/taxIdSuperRefinement.js +2 -0
  329. package/lib/utils/validations/taxIdSuperRefinement.js.map +1 -1
  330. package/lib/utils/validations/taxIdSuperRefinement.mjs +2 -0
  331. package/lib/utils/validations/taxIdSuperRefinement.mjs.map +1 -1
  332. package/lib/utils/validations.d.ts +15 -0
  333. package/lib/utils/validations.js +23 -0
  334. package/lib/utils/validations.js.map +1 -0
  335. package/lib/utils/validations.mjs +21 -0
  336. package/lib/utils/validations.mjs.map +1 -0
  337. package/lib/utils/variant.js.map +1 -1
  338. package/lib/utils/variant.mjs.map +1 -1
  339. package/lib/utils/wattage.js.map +1 -1
  340. package/lib/utils/wattage.mjs.map +1 -1
  341. package/package.json +1 -1
  342. package/lib/assets/efg.png +0 -0
  343. package/lib/assets/icon-location-pin.svg +0 -5
  344. package/lib/assets/icons/menu/icon-location-pin.svg.js +0 -27
  345. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
  346. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
  347. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
  348. package/lib/assets/ucg-max.png +0 -0
  349. package/lib/components/Header/Navigation/ProMenu/ProMenu.d.ts +0 -2
  350. package/lib/components/Header/Navigation/ProMenu/ProMenu.js +0 -109
  351. package/lib/components/Header/Navigation/ProMenu/ProMenu.js.map +0 -1
  352. package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs +0 -87
  353. package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs.map +0 -1
  354. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.d.ts +0 -24
  355. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js +0 -154
  356. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js.map +0 -1
  357. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs +0 -138
  358. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs.map +0 -1
  359. package/lib/components/Header/Navigation/ProMenu/ProMenu.types.d.ts +0 -13
  360. package/lib/components/Header/Navigation/ProMenu/index.d.ts +0 -1
  361. package/lib/components/Header/Navigation/ProMenu/index.js +0 -6
  362. package/lib/components/Header/Navigation/ProMenu/index.mjs +0 -3
  363. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
  364. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
  365. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
  366. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
  367. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js +0 -27
  368. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +0 -1
  369. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +0 -3
  370. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +0 -1
  371. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +0 -1
  372. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +0 -3
  373. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +0 -1
  374. package/lib/helpers/product.d.ts +0 -87
  375. package/lib/helpers/product.js +0 -346
  376. package/lib/helpers/product.js.map +0 -1
  377. package/lib/helpers/product.mjs +0 -335
  378. package/lib/helpers/product.mjs.map +0 -1
  379. package/lib/types/product.d.ts +0 -87
  380. package/lib/types/product.js +0 -14
  381. package/lib/types/product.js.map +0 -1
  382. package/lib/types/product.mjs +0 -13
  383. package/lib/types/product.mjs.map +0 -1
  384. package/lib/utils/money/allocators/fixedAmount.d.ts +0 -26
  385. package/lib/utils/money/allocators/fixedAmount.js +0 -55
  386. package/lib/utils/money/allocators/fixedAmount.js.map +0 -1
  387. package/lib/utils/money/allocators/fixedAmount.mjs +0 -53
  388. package/lib/utils/money/allocators/fixedAmount.mjs.map +0 -1
  389. package/lib/utils/money/allocators/index.d.ts +0 -2
  390. package/lib/utils/money/allocators/index.js +0 -8
  391. package/lib/utils/money/allocators/index.js.map +0 -1
  392. package/lib/utils/money/allocators/index.mjs +0 -4
  393. package/lib/utils/money/allocators/index.mjs.map +0 -1
  394. package/lib/utils/money/allocators/productAmount.d.ts +0 -13
  395. package/lib/utils/money/allocators/productAmount.js +0 -110
  396. package/lib/utils/money/allocators/productAmount.js.map +0 -1
  397. package/lib/utils/money/allocators/productAmount.mjs +0 -108
  398. package/lib/utils/money/allocators/productAmount.mjs.map +0 -1
  399. package/lib/utils/money/exchangeRate.d.ts +0 -31
  400. package/lib/utils/money/exchangeRate.js +0 -27
  401. package/lib/utils/money/exchangeRate.js.map +0 -1
  402. package/lib/utils/money/exchangeRate.mjs +0 -23
  403. package/lib/utils/money/exchangeRate.mjs.map +0 -1
  404. package/lib/utils/money/misc.private.d.ts +0 -23
  405. package/lib/utils/money/misc.private.js +0 -46
  406. package/lib/utils/money/misc.private.js.map +0 -1
  407. package/lib/utils/money/misc.private.mjs +0 -21
  408. package/lib/utils/money/misc.private.mjs.map +0 -1
  409. package/lib/utils/money/shipping.d.ts +0 -5
  410. package/lib/utils/money/shipping.js +0 -8
  411. package/lib/utils/money/shipping.js.map +0 -1
  412. package/lib/utils/money/shipping.mjs +0 -6
  413. package/lib/utils/money/shipping.mjs.map +0 -1
  414. package/lib/utils/money/tax.private.d.ts +0 -17
  415. package/lib/utils/money/tax.private.js +0 -65
  416. package/lib/utils/money/tax.private.js.map +0 -1
  417. package/lib/utils/money/tax.private.mjs +0 -60
  418. package/lib/utils/money/tax.private.mjs.map +0 -1
  419. package/lib/utils/productSort.d.ts +0 -41
  420. package/lib/utils/productSort.js +0 -66
  421. package/lib/utils/productSort.js.map +0 -1
  422. package/lib/utils/productSort.mjs +0 -59
  423. package/lib/utils/productSort.mjs.map +0 -1
  424. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.d.ts +0 -0
  425. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js +0 -0
  426. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js.map +0 -0
  427. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs +0 -0
  428. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs.map +0 -0
  429. /package/lib/components/{Header/Navigation/ProMenu → ResourceCalculatorV1/components}/index.mjs.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"RelatedProducts.mjs","sources":["../../../src/components/RelatedProducts/RelatedProducts.tsx"],"sourcesContent":["import { useEffect, useMemo, useState } from \"react\";\n\nimport AddToCartIcon from \"../../assets/icons/addToCart.svg\";\nimport { formatPrice } from \"../../utils/money\";\nimport { ProductCardPopup } from \"../ProductCardPopup\";\n// import { ScrollWrapper } from \"../ScrollWrapper\";\nimport { SkeletonLinearLoader } from \"../SkeletonLoader\";\nimport * as S from \"./RelatedProducts.styles\";\nimport type { RelatedProductsProps } from \"./RelatedProducts.types\";\n\nconst AddToCartIconAsset = {\n src: typeof AddToCartIcon === \"string\" ? AddToCartIcon : AddToCartIcon.src,\n width: 21.52,\n height: 15.72,\n};\n\n/**\n * Clean up:\n * - If we don't require tabs anymore in the future, we can remove all logic\n * (currently commented out) that is related to tabination\n * - Pass just a list of products (change the data structure from categorized\n * products to just an array of products)\n * - Don't forget to clean up styles\n */\nexport const RelatedProducts = ({\n categories,\n onAddToCart,\n activePopupProduct,\n renderImage,\n translations,\n}: RelatedProductsProps) => {\n // #############################################################################\n // States\n // #############################################################################\n const isLoading = useMemo(() => categories === null, [categories]);\n\n // const [selectedCategoryId, setSelectedCategoryId] = useState<string | null>(\n // categories?.[0]?.id ?? null\n // );\n\n // const selectedCategory = useMemo(() => {\n // if (!selectedCategoryId) {\n // return categories?.[0];\n // }\n\n // return (\n // categories?.find((category) => category.id === selectedCategoryId) ??\n // categories?.[0]\n // );\n // }, [categories, selectedCategoryId]);\n\n // #############################################################################\n // Popup\n // #############################################################################\n /**\n * This state is used to prevent data loss before closing animation is complete\n * when the popup is closed.\n */\n const [popupProduct, setPopupProduct] = useState(activePopupProduct);\n\n const isPopupOpen = useMemo(() => !!activePopupProduct, [activePopupProduct]);\n\n useEffect(() => {\n if (activePopupProduct !== undefined) {\n setPopupProduct(activePopupProduct);\n }\n }, [activePopupProduct]);\n\n // #############################################################################\n // Render\n // #############################################################################\n\n // Loading state\n if (isLoading) {\n return (\n <S.Container>\n {translations?.title && <S.Title>{translations?.title}</S.Title>}\n {/* <S.CategoryWrapper>\n <SkeletonLinearLoader height={20} />\n </S.CategoryWrapper> */}\n\n <S.Grid>\n {[...Array(2)].map((_, index) => (\n <SkeletonLinearLoader\n key={`product-loader-${index}`}\n height={100}\n />\n ))}\n </S.Grid>\n </S.Container>\n );\n }\n\n // No categories\n if (!categories?.length) return null;\n\n return (\n <S.Container>\n {translations?.title && <S.Title>{translations?.title}</S.Title>}\n {/* TODO: Use TabinationButtons components */}\n {/* {categories?.length > 1 && (\n <S.CategoryWrapper>\n <ScrollWrapper\n align=\"left\"\n fillType=\"gradient\"\n direction=\"horizontal\"\n gap={4}\n items={categories.map((category) => ({\n id: category.id,\n render: function Render() {\n return (\n <S.CategoryButton\n onClick={() => setSelectedCategoryId(category.id)}\n selected={selectedCategory?.id === category.id}\n >\n {category.title}\n </S.CategoryButton>\n );\n },\n }))}\n />\n </S.CategoryWrapper>\n )} */}\n <S.Grid>\n {categories\n .flatMap((category) => category.products)\n .map((product) => (\n <S.ProductContainer key={product.id}>\n <S.Wrap>\n <S.CustomImage\n sizes=\"60px\"\n responsive\n renderImage={renderImage}\n asset={product.image}\n />\n <S.Details>\n <S.ProductTitle>{product.title}</S.ProductTitle>\n <S.ProductPrice>\n {formatPrice(product.displayPrice, {\n removeTrailingZeros: true,\n })}\n </S.ProductPrice>\n </S.Details>\n </S.Wrap>\n <S.AddToCartButton onClick={() => onAddToCart?.(product.id)}>\n <S.StyleableSvgImage {...AddToCartIconAsset} />\n </S.AddToCartButton>\n </S.ProductContainer>\n ))}\n </S.Grid>\n <ProductCardPopup\n {...popupProduct}\n isOpen={isPopupOpen}\n renderImage={renderImage}\n translations={translations.productCardPopup}\n />\n </S.Container>\n );\n};\n"],"names":["AddToCartIconAsset","src","AddToCartIcon","width","height","RelatedProducts","categories","onAddToCart","activePopupProduct","renderImage","translations","isLoading","useMemo","popupProduct","setPopupProduct","useState","isPopupOpen","useEffect","jsxs","S.Container","children","title","jsx","S.Title","S.Grid","Array","map","_","index","SkeletonLinearLoader","length","flatMap","category","products","product","S.ProductContainer","S.Wrap","S.CustomImage","sizes","responsive","asset","image","S.Details","S.ProductTitle","S.ProductPrice","formatPrice","displayPrice","removeTrailingZeros","S.AddToCartButton","onClick","id","S.StyleableSvgImage","ProductCardPopup","isOpen","productCardPopup"],"mappings":"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"}
1
+ {"version":3,"file":"RelatedProducts.mjs","sources":["../../../src/components/RelatedProducts/RelatedProducts.tsx"],"sourcesContent":["import { useEffect, useMemo, useState } from \"react\";\n\nimport AddToCartIcon from \"../../assets/icons/addToCart.svg\";\nimport { formatPrice } from \"../../utils/money\";\nimport { ProductCardPopup } from \"../ProductCardPopup\";\n// import { ScrollWrapper } from \"../ScrollWrapper\";\nimport { SkeletonLinearLoader } from \"../SkeletonLoader\";\nimport * as S from \"./RelatedProducts.styles\";\nimport type { RelatedProductsProps } from \"./RelatedProducts.types\";\n\nconst AddToCartIconAsset = {\n src: typeof AddToCartIcon === \"string\" ? AddToCartIcon : AddToCartIcon.src,\n width: 21.52,\n height: 15.72,\n};\n\n/**\n * Clean up:\n * - If we don't require tabs anymore in the future, we can remove all logic\n * (currently commented out) that is related to tabination\n * - Pass just a list of products (change the data structure from categorized\n * products to just an array of products)\n * - Don't forget to clean up styles\n */\nexport const RelatedProducts = ({\n categories,\n onAddToCart,\n activePopupProduct,\n renderImage,\n translations,\n}: RelatedProductsProps) => {\n // #############################################################################\n // States\n // #############################################################################\n const isLoading = useMemo(() => categories === null, [categories]);\n\n // const [selectedCategoryId, setSelectedCategoryId] = useState<string | null>(\n // categories?.[0]?.id ?? null\n // );\n\n // const selectedCategory = useMemo(() => {\n // if (!selectedCategoryId) {\n // return categories?.[0];\n // }\n\n // return (\n // categories?.find((category) => category.id === selectedCategoryId) ??\n // categories?.[0]\n // );\n // }, [categories, selectedCategoryId]);\n\n // #############################################################################\n // Popup\n // #############################################################################\n /**\n * This state is used to prevent data loss before closing animation is complete\n * when the popup is closed.\n */\n const [popupProduct, setPopupProduct] = useState(activePopupProduct);\n\n const isPopupOpen = useMemo(() => !!activePopupProduct, [activePopupProduct]);\n\n useEffect(() => {\n if (activePopupProduct !== undefined) {\n setPopupProduct(activePopupProduct);\n }\n }, [activePopupProduct]);\n\n // #############################################################################\n // Render\n // #############################################################################\n\n // Loading state\n if (isLoading) {\n return (\n <S.Container>\n {translations?.title && <S.Title>{translations?.title}</S.Title>}\n {/* <S.CategoryWrapper>\n <SkeletonLinearLoader height={20} />\n </S.CategoryWrapper> */}\n\n <S.Grid>\n {[...Array(2)].map((_, index) => (\n <SkeletonLinearLoader\n key={`product-loader-${index}`}\n height={100}\n />\n ))}\n </S.Grid>\n </S.Container>\n );\n }\n\n // No categories\n if (!categories?.length) return null;\n\n return (\n <S.Container>\n {translations?.title && <S.Title>{translations?.title}</S.Title>}\n {/* TODO: Use TabinationButtons components */}\n {/* {categories?.length > 1 && (\n <S.CategoryWrapper>\n <ScrollWrapper\n align=\"left\"\n fillType=\"gradient\"\n direction=\"horizontal\"\n gap={4}\n items={categories.map((category) => ({\n id: category.id,\n render: function Render() {\n return (\n <S.CategoryButton\n onClick={() => setSelectedCategoryId(category.id)}\n selected={selectedCategory?.id === category.id}\n >\n {category.title}\n </S.CategoryButton>\n );\n },\n }))}\n />\n </S.CategoryWrapper>\n )} */}\n <S.Grid>\n {categories\n .flatMap((category) => category.products)\n .map((product) => (\n <S.ProductContainer key={product.id}>\n <S.Wrap>\n <S.CustomImage\n sizes=\"60px\"\n responsive\n renderImage={renderImage}\n asset={product.image}\n />\n <S.Details>\n <S.ProductTitle>{product.title}</S.ProductTitle>\n <S.ProductPrice>\n {formatPrice(product.displayPrice, {\n removeTrailingZeros: true,\n })}\n </S.ProductPrice>\n </S.Details>\n </S.Wrap>\n <S.AddToCartButton onClick={() => onAddToCart?.(product.id)}>\n <S.StyleableSvgImage {...AddToCartIconAsset} />\n </S.AddToCartButton>\n </S.ProductContainer>\n ))}\n </S.Grid>\n <ProductCardPopup\n {...popupProduct}\n isOpen={isPopupOpen}\n renderImage={renderImage}\n translations={translations.productCardPopup}\n />\n </S.Container>\n );\n};\n"],"names":["AddToCartIconAsset","src","AddToCartIcon","width","height","RelatedProducts","categories","onAddToCart","activePopupProduct","renderImage","translations","isLoading","useMemo","popupProduct","setPopupProduct","useState","isPopupOpen","useEffect","jsxs","S.Container","children","title","jsx","S.Title","S.Grid","Array","map","_","index","SkeletonLinearLoader","length","flatMap","category","products","product","S.ProductContainer","S.Wrap","S.CustomImage","sizes","responsive","asset","image","S.Details","S.ProductTitle","S.ProductPrice","formatPrice","displayPrice","removeTrailingZeros","S.AddToCartButton","onClick","id","S.StyleableSvgImage","ProductCardPopup","isOpen","productCardPopup"],"mappings":"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"}
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- require('../assets/consoles/efg.png.js');
4
- require('../assets/consoles/ucg-max.png.js');
5
3
  require('../assets/consoles/udm-pro-max.png.js');
6
4
  require('../assets/consoles/udm-pro.png.js');
7
5
  require('../assets/consoles/udr.png.js');
@@ -10,8 +8,6 @@ require('../assets/consoles/unifi-cloudkey-plus.png.js');
10
8
  require('../assets/consoles/unvr-pro.png.js');
11
9
  require('../assets/consoles/unvr.png.js');
12
10
  var ComputeResourceCalculator_types = require('./ComputeResourceCalculator.types.js');
13
- var efg = require("../../../assets/efg.png");
14
- var ucgMax = require("../../../assets/ucg-max.png");
15
11
  var udmProMax = require("../../../assets/udm-pro-max.png");
16
12
  var udmPro = require("../../../assets/udm-pro.png");
17
13
  var unvr = require("../../../assets/unvr.png");
@@ -24,8 +20,6 @@ function _interopDefault(e) {
24
20
  default: e
25
21
  };
26
22
  }
27
- var efg__default = /*#__PURE__*/_interopDefault(efg);
28
- var ucgMax__default = /*#__PURE__*/_interopDefault(ucgMax);
29
23
  var udmProMax__default = /*#__PURE__*/_interopDefault(udmProMax);
30
24
  var udmPro__default = /*#__PURE__*/_interopDefault(udmPro);
31
25
  var unvr__default = /*#__PURE__*/_interopDefault(unvr);
@@ -35,301 +29,6 @@ var udw__default = /*#__PURE__*/_interopDefault(udw);
35
29
  var udr__default = /*#__PURE__*/_interopDefault(udr);
36
30
  "use strict";
37
31
  const DEVICES = [{
38
- id: ComputeResourceCalculator_types.DeviceId.EFG,
39
- sku: ["efg"],
40
- title: "device.EFG",
41
- img: {
42
- src: efg__default["default"],
43
- width: 68,
44
- height: 68
45
- },
46
- settings: {
47
- defaultEnabledFeatures: [ComputeResourceCalculator_types.FeatureId.Network]
48
- },
49
- loadData: {
50
- Network: {
51
- enableFeature: {
52
- cpu: {
53
- value: 0.015,
54
- weight: 0.9
55
- },
56
- memory: {
57
- value: 0.49,
58
- weight: 0.1
59
- }
60
- },
61
- accessPoint: {
62
- max: 500,
63
- data: {
64
- cpu: {
65
- value: 12e-4,
66
- weight: 0.9
67
- },
68
- memory: {
69
- value: 0,
70
- weight: 0.1
71
- }
72
- }
73
- },
74
- vpn: {
75
- cpu: {
76
- value: 3e-4,
77
- weight: 0.9
78
- },
79
- memory: {
80
- value: 5e-4,
81
- weight: 0.1
82
- }
83
- },
84
- securityDetection: {
85
- cpu: {
86
- value: 0.0315,
87
- weight: 0.9
88
- },
89
- memory: {
90
- value: 0.044,
91
- weight: 0.1
92
- }
93
- },
94
- adBlocking: {
95
- cpu: {
96
- value: 9e-4,
97
- weight: 0.9
98
- },
99
- memory: {
100
- value: 35e-4,
101
- weight: 0.1
102
- }
103
- },
104
- qos: {
105
- cpu: {
106
- value: 14e-4,
107
- weight: 0.9
108
- },
109
- memory: {
110
- value: 0,
111
- weight: 0.1
112
- }
113
- }
114
- }
115
- }
116
- }, {
117
- id: ComputeResourceCalculator_types.DeviceId.UcgMax,
118
- sku: ["ucg-max"],
119
- title: "device.UCG Max",
120
- img: {
121
- src: ucgMax__default["default"],
122
- width: 68,
123
- height: 68
124
- },
125
- settings: {
126
- forcedFeatures: [ComputeResourceCalculator_types.FeatureId.Network],
127
- defaultEnabledFeatures: [ComputeResourceCalculator_types.FeatureId.Network],
128
- hdd: {
129
- max: 1,
130
- parityDisks: 0,
131
- gigabyteOptions: [512, 1e3, 2e3]
132
- }
133
- },
134
- loadData: {
135
- Network: {
136
- enableFeature: {
137
- cpu: {
138
- value: 0.015,
139
- weight: 0.9
140
- },
141
- memory: {
142
- value: 0.49,
143
- weight: 0.1
144
- }
145
- },
146
- accessPoint: {
147
- max: 30,
148
- data: {
149
- cpu: {
150
- value: 61e-4,
151
- weight: 0.9
152
- },
153
- memory: {
154
- value: 0.016,
155
- weight: 0.1
156
- }
157
- }
158
- },
159
- vpn: {
160
- cpu: {
161
- value: 0,
162
- weight: 0.9
163
- },
164
- memory: {
165
- value: 1e-3,
166
- weight: 0.1
167
- }
168
- },
169
- securityDetection: {
170
- cpu: {
171
- value: 0.4008,
172
- weight: 0.9
173
- },
174
- memory: {
175
- value: 0.1515,
176
- weight: 0.1
177
- }
178
- },
179
- adBlocking: {
180
- cpu: {
181
- value: 0.0132,
182
- weight: 0.9
183
- },
184
- memory: {
185
- value: 0,
186
- weight: 0.1
187
- }
188
- },
189
- qos: {
190
- cpu: {
191
- value: 0.0173,
192
- weight: 0.9
193
- },
194
- memory: {
195
- value: 0.0255,
196
- weight: 0.1
197
- }
198
- }
199
- },
200
- Protect: {
201
- enableFeature: {
202
- cpu: {
203
- value: 0.1,
204
- weight: 0.9
205
- },
206
- memory: {
207
- value: 0.2809,
208
- weight: 0.1
209
- }
210
- },
211
- playback: {
212
- cpu: {
213
- value: 0,
214
- weight: 0.9
215
- },
216
- memory: {
217
- value: 0,
218
- weight: 0.1
219
- }
220
- },
221
- liveView: {
222
- cpu: {
223
- value: 0,
224
- weight: 0.9
225
- },
226
- memory: {
227
- value: 0,
228
- weight: 0.1
229
- }
230
- },
231
- cameraHd: {
232
- max: 15,
233
- data: {
234
- cpu: {
235
- value: 0.0106,
236
- weight: 0.9
237
- },
238
- memory: {
239
- value: 3e-4,
240
- weight: 0.1
241
- }
242
- }
243
- },
244
- camera2k: {
245
- max: 8,
246
- data: {
247
- cpu: {
248
- value: 0.0211,
249
- weight: 0.9
250
- },
251
- memory: {
252
- value: 6e-4,
253
- weight: 0.1
254
- }
255
- }
256
- },
257
- camera4k: {
258
- max: 5,
259
- data: {
260
- cpu: {
261
- value: 0.03,
262
- weight: 0.9
263
- },
264
- memory: {
265
- value: 14e-4,
266
- weight: 0.1
267
- }
268
- }
269
- }
270
- },
271
- Access: {
272
- enableFeature: {
273
- cpu: {
274
- value: 75e-4,
275
- weight: 0.5
276
- },
277
- memory: {
278
- value: 63e-4,
279
- weight: 0.5
280
- }
281
- },
282
- door: {
283
- max: 100,
284
- data: {
285
- cpu: {
286
- value: 5e-3,
287
- weight: 0.5
288
- },
289
- memory: {
290
- value: 0.0189,
291
- weight: 0.5
292
- }
293
- }
294
- }
295
- },
296
- Talk: {
297
- enableFeature: {
298
- cpu: {
299
- value: 8e-3,
300
- weight: 0.5
301
- },
302
- memory: {
303
- value: 0.0254,
304
- weight: 0.5
305
- }
306
- },
307
- phone: {
308
- max: 100,
309
- data: {
310
- cpu: {
311
- value: 0.013,
312
- weight: 0.5
313
- },
314
- memory: {
315
- value: 6e-4,
316
- weight: 0.5
317
- }
318
- }
319
- },
320
- record: {
321
- cpu: {
322
- value: 2e-4,
323
- weight: 0.5
324
- },
325
- memory: {
326
- value: 5e-4,
327
- weight: 0.5
328
- }
329
- }
330
- }
331
- }
332
- }, {
333
32
  id: ComputeResourceCalculator_types.DeviceId.UDMProMax,
334
33
  sku: ["udm-pro-max"],
335
34
  title: "device.UDM Pro Max",
@@ -384,13 +83,14 @@ const DEVICES = [{
384
83
  weight: 0.1
385
84
  }
386
85
  },
86
+ threatManagementLoad: 0.1375,
387
87
  securityDetection: {
388
88
  cpu: {
389
- value: 0.1204,
89
+ value: 17e-4,
390
90
  weight: 0.9
391
91
  },
392
92
  memory: {
393
- value: 0.0861,
93
+ value: 0,
394
94
  weight: 0.1
395
95
  }
396
96
  },
@@ -601,13 +301,14 @@ const DEVICES = [{
601
301
  weight: 0.3
602
302
  }
603
303
  },
304
+ threatManagementLoad: 0.1161,
604
305
  securityDetection: {
605
306
  cpu: {
606
- value: 0.1668,
307
+ value: 7e-4,
607
308
  weight: 0.7
608
309
  },
609
310
  memory: {
610
- value: 0.118,
311
+ value: 0,
611
312
  weight: 0.3
612
313
  }
613
314
  },
@@ -1007,8 +708,8 @@ const DEVICES = [{
1007
708
  defaultEnabledFeatures: [ComputeResourceCalculator_types.FeatureId.Network],
1008
709
  hdd: {
1009
710
  max: 1,
1010
- gigabyteOptions: [1e3],
1011
- parityDisks: 0
711
+ parityDisks: 0,
712
+ gigabyteOptions: [1e3]
1012
713
  },
1013
714
  maxReducer: {
1014
715
  enabledFeaturesTrigger: 2,
@@ -1056,13 +757,14 @@ const DEVICES = [{
1056
757
  weight: 0.4
1057
758
  }
1058
759
  },
760
+ threatManagementLoad: 0.032,
1059
761
  securityDetection: {
1060
762
  cpu: {
1061
- value: 51e-4,
763
+ value: 3e-3,
1062
764
  weight: 0.6
1063
765
  },
1064
766
  memory: {
1065
- value: 51e-4,
767
+ value: 0,
1066
768
  weight: 0.4
1067
769
  }
1068
770
  },
@@ -1267,13 +969,14 @@ const DEVICES = [{
1267
969
  weight: 0.3
1268
970
  }
1269
971
  },
972
+ threatManagementLoad: 0.1215,
1270
973
  securityDetection: {
1271
974
  cpu: {
1272
- value: 0.1507,
975
+ value: 1e-3,
1273
976
  weight: 0.7
1274
977
  },
1275
978
  memory: {
1276
- value: 0.1347,
979
+ value: 0,
1277
980
  weight: 0.3
1278
981
  }
1279
982
  },
@@ -1479,13 +1182,14 @@ const DEVICES = [{
1479
1182
  weight: 0.5
1480
1183
  }
1481
1184
  },
1185
+ threatManagementLoad: 0.1682,
1482
1186
  securityDetection: {
1483
1187
  cpu: {
1484
- value: 0.2754,
1188
+ value: 0.0254,
1485
1189
  weight: 0.5
1486
1190
  },
1487
1191
  memory: {
1488
- value: 0.1583,
1192
+ value: 0,
1489
1193
  weight: 0.5
1490
1194
  }
1491
1195
  },