@ubnt/store.core 9.20.0-alpha.8 → 9.20.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 (950) hide show
  1. package/CHANGELOG.md +3 -231
  2. package/lib/_virtual/_virtual_multi-entry.js +42 -61
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +40 -48
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/assets/attention.svg +5 -5
  7. package/lib/assets/attention2.svg +5 -5
  8. package/lib/assets/close.svg +4 -1
  9. package/lib/assets/close2.svg +1 -4
  10. package/lib/{components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.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/assets/icons/wizard/plus.svg.js +1 -1
  15. package/lib/assets/icons/wizard/plus.svg.mjs +2 -2
  16. package/lib/assets/industrial.jpg +0 -0
  17. package/lib/assets/minus4.svg +8 -8
  18. package/lib/assets/minus5.svg +8 -8
  19. package/lib/assets/plus.svg +22 -4
  20. package/lib/assets/plus2.svg +4 -22
  21. package/lib/assets/plus5.svg +9 -9
  22. package/lib/assets/plus6.svg +9 -9
  23. package/lib/assets/udmPro.jpg +0 -0
  24. package/lib/assets/udmPro2.jpg +0 -0
  25. package/lib/assets/udmProMax.jpg +0 -0
  26. package/lib/assets/udmProMax2.jpg +0 -0
  27. package/lib/assets/udmProSpecial.jpg +0 -0
  28. package/lib/assets/udmProSpecial2.jpg +0 -0
  29. package/lib/components/Button/CartButton.d.ts +1 -3
  30. package/lib/components/Button/CartButton.js +2 -4
  31. package/lib/components/Button/CartButton.js.map +1 -1
  32. package/lib/components/Button/CartButton.mjs +2 -4
  33. package/lib/components/Button/CartButton.mjs.map +1 -1
  34. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
  35. package/lib/components/CategoryTabs/CategoryTabs.styles.js +3 -2
  36. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  37. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +3 -2
  38. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  39. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  40. package/lib/components/Container/Container.d.ts +1 -1
  41. package/lib/components/Container/Container.js +3 -4
  42. package/lib/components/Container/Container.js.map +1 -1
  43. package/lib/components/Container/Container.mjs +4 -5
  44. package/lib/components/Container/Container.mjs.map +1 -1
  45. package/lib/components/CustomImage/CustomImage.js +1 -1
  46. package/lib/components/CustomImage/CustomImage.mjs +1 -1
  47. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
  48. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
  49. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  50. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  51. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  52. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  53. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
  54. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
  55. package/lib/components/GridGallery/GridModal/GridModal.js +1 -1
  56. package/lib/components/GridGallery/GridModal/GridModal.mjs +1 -1
  57. package/lib/components/Header/AccountMenu/AccountMenu.js +4 -14
  58. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  59. package/lib/components/Header/AccountMenu/AccountMenu.mjs +5 -15
  60. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  61. package/lib/components/Header/AccountMenu/AccountMenu.styles.d.ts +3 -3
  62. package/lib/components/Header/CartModalV2/CartModal.js +1 -1
  63. package/lib/components/Header/CartModalV2/CartModal.mjs +1 -1
  64. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
  65. package/lib/components/Header/Header.js +16 -16
  66. package/lib/components/Header/Header.js.map +1 -1
  67. package/lib/components/Header/Header.mjs +13 -13
  68. package/lib/components/Header/Header.mjs.map +1 -1
  69. package/lib/components/Header/Header.styles.d.ts +2 -2
  70. package/lib/components/Header/Header.types.d.ts +4 -12
  71. package/lib/components/Header/Header.types.js +1 -2
  72. package/lib/components/Header/Header.types.js.map +1 -1
  73. package/lib/components/Header/Header.types.mjs +1 -2
  74. package/lib/components/Header/Header.types.mjs.map +1 -1
  75. package/lib/components/Header/IsolatedHeader.js +3 -3
  76. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  77. package/lib/components/Header/IsolatedHeader.mjs +2 -2
  78. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  79. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  80. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  81. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  82. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  83. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  84. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +0 -1
  85. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  86. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +5 -7
  87. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
  88. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +5 -7
  89. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
  90. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  91. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  92. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +101 -101
  93. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  94. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +101 -101
  95. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  96. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
  97. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
  98. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  99. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
  100. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  101. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +4 -10
  102. package/lib/components/Header/ProHeader/ProHeader.d.ts +4 -3
  103. package/lib/components/Header/ProHeader/ProHeader.js +125 -258
  104. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  105. package/lib/components/Header/ProHeader/ProHeader.mjs +127 -258
  106. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  107. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +1 -4
  108. package/lib/components/Header/ProHeader/ProHeader.styles.js +17 -23
  109. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  110. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +18 -21
  111. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  112. package/lib/components/Header/translations/ar.json.js +1 -4
  113. package/lib/components/Header/translations/ar.json.js.map +1 -1
  114. package/lib/components/Header/translations/ar.json.mjs +2 -4
  115. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  116. package/lib/components/Header/translations/de.json.js +1 -4
  117. package/lib/components/Header/translations/de.json.js.map +1 -1
  118. package/lib/components/Header/translations/de.json.mjs +2 -4
  119. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  120. package/lib/components/Header/translations/el.json.js +1 -4
  121. package/lib/components/Header/translations/el.json.js.map +1 -1
  122. package/lib/components/Header/translations/el.json.mjs +2 -4
  123. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  124. package/lib/components/Header/translations/en.json.js +1 -4
  125. package/lib/components/Header/translations/en.json.js.map +1 -1
  126. package/lib/components/Header/translations/en.json.mjs +2 -4
  127. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  128. package/lib/components/Header/translations/es.json.js +1 -4
  129. package/lib/components/Header/translations/es.json.js.map +1 -1
  130. package/lib/components/Header/translations/es.json.mjs +2 -4
  131. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  132. package/lib/components/Header/translations/fr.json.js +1 -4
  133. package/lib/components/Header/translations/fr.json.js.map +1 -1
  134. package/lib/components/Header/translations/fr.json.mjs +2 -4
  135. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  136. package/lib/components/Header/translations/it.json.js +1 -4
  137. package/lib/components/Header/translations/it.json.js.map +1 -1
  138. package/lib/components/Header/translations/it.json.mjs +2 -4
  139. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  140. package/lib/components/Header/translations/ja.json.js +1 -4
  141. package/lib/components/Header/translations/ja.json.js.map +1 -1
  142. package/lib/components/Header/translations/ja.json.mjs +2 -4
  143. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  144. package/lib/components/Header/translations/pt-BR.json.js +1 -4
  145. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  146. package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
  147. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  148. package/lib/components/Header/translations/zh-Hans.json.js +1 -4
  149. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  150. package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
  151. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  152. package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
  153. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  154. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
  155. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  156. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  157. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  158. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  159. package/lib/components/InputSelect/InputSelect.styles.d.ts +1 -1
  160. package/lib/components/LandingPage/Cards/Cards.js +4 -4
  161. package/lib/components/LandingPage/Cards/Cards.js.map +1 -1
  162. package/lib/components/LandingPage/Cards/Cards.mjs +3 -3
  163. package/lib/components/LandingPage/Cards/Cards.mjs.map +1 -1
  164. package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -3
  165. package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
  166. package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
  167. package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
  168. package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
  169. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  170. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +1 -1
  171. package/lib/components/LandingPageSidebar/LandingPageSidebar.mjs +1 -1
  172. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  173. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  174. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  175. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  176. package/lib/components/MobileModal/MobileModal.js +1 -1
  177. package/lib/components/MobileModal/MobileModal.js.map +1 -1
  178. package/lib/components/MobileModal/MobileModal.mjs +1 -1
  179. package/lib/components/MobileModal/MobileModal.mjs.map +1 -1
  180. package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.js +1 -1
  181. package/lib/components/MobileModal/assets/arrowDown.svg.mjs +3 -0
  182. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +0 -4
  183. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  184. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  185. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  186. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  187. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  188. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  189. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  190. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  191. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  192. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  193. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  194. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  195. package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.js +1 -1
  196. package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.mjs +2 -2
  197. package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
  198. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
  199. package/lib/components/ModelCompareV3/data/index.d.ts +17 -18
  200. package/lib/components/ModelCompareV3/data/index.js +34 -37
  201. package/lib/components/ModelCompareV3/data/index.js.map +1 -1
  202. package/lib/components/ModelCompareV3/data/index.mjs +34 -37
  203. package/lib/components/ModelCompareV3/data/index.mjs.map +1 -1
  204. package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
  205. package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
  206. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  207. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  208. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  209. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  210. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  211. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  212. package/lib/components/ModelCompareV3/data/products/udw.js +0 -1
  213. package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
  214. package/lib/components/ModelCompareV3/data/products/udw.mjs +0 -1
  215. package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
  216. package/lib/components/ModelCompareV3/translations/en.json.js +7 -60
  217. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  218. package/lib/components/ModelCompareV3/translations/en.json.mjs +7 -60
  219. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  220. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  221. package/lib/components/ProductCardPopup/ProductCardPopup.styles.d.ts +1 -1
  222. package/lib/components/ProductGrid/ProductGrid.styles.d.ts +1 -1
  223. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.d.ts +3 -3
  224. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  225. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  226. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
  227. package/lib/components/ProductWizard/ProductWizard.js +1 -1
  228. package/lib/components/ProductWizard/ProductWizard.mjs +1 -1
  229. package/lib/components/QuantityInput/QuantityInput.js +1 -1
  230. package/lib/components/QuantityInput/QuantityInput.mjs +1 -1
  231. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +17 -313
  232. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  233. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +17 -311
  234. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  235. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +2 -3
  236. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -2
  237. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  238. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -2
  239. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  240. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +34 -120
  241. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
  242. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +34 -120
  243. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
  244. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +2 -16
  245. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +12 -54
  246. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
  247. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +11 -50
  248. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
  249. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
  250. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
  251. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +2 -2
  252. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
  253. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +2 -2
  254. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
  255. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +0 -2
  256. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
  257. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +0 -2
  258. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
  259. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  260. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  261. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  262. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  263. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  264. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  265. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  266. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  267. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  268. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  269. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  270. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  271. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +1 -1
  272. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
  273. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
  274. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
  275. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +4 -4
  276. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
  277. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +4 -4
  278. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
  279. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  280. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  281. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  282. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  283. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +2 -1
  284. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
  285. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +2 -1
  286. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
  287. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
  288. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.js +1 -3
  289. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
  290. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.mjs +1 -3
  291. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
  292. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +0 -1
  293. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +7 -10
  294. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
  295. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +7 -10
  296. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
  297. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +0 -1
  298. package/lib/components/ResourceCalculatorV1/components/index.d.ts +1 -0
  299. package/lib/components/ResourceCalculatorV1/components/index.js +5 -0
  300. package/lib/components/{Header/Navigation/ProMenu → ResourceCalculatorV1/components}/index.js.map +1 -1
  301. package/lib/components/{MicrositeHeader/components/Navigation → ResourceCalculatorV1/components}/index.mjs +1 -1
  302. package/lib/components/ResourceCalculatorV1/translations/en.json.js +4 -6
  303. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  304. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +4 -6
  305. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  306. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  307. package/lib/components/Search/Input/Input.js +1 -1
  308. package/lib/components/Search/Input/Input.mjs +1 -1
  309. package/lib/components/Tooltip/Tooltip.styles.d.ts +5 -5
  310. package/lib/components/VariantSelectorV1/VariantSelector.styles.d.ts +3 -3
  311. package/lib/components/VariantSelectorV2/VariantSelector.styles.d.ts +3 -3
  312. package/lib/components/index.d.ts +0 -2
  313. package/lib/components/index.js +30 -34
  314. package/lib/components/index.js.map +1 -1
  315. package/lib/components/index.mjs +30 -34
  316. package/lib/components/index.mjs.map +1 -1
  317. package/lib/constants/icons/generic/carouselArrowRight.svg.js +5 -5
  318. package/lib/constants/icons/generic/close.svg.js +1 -1
  319. package/lib/constants/icons/generic/close.svg.mjs +2 -2
  320. package/lib/constants/icons/generic/index.js +4 -4
  321. package/lib/constants/icons/generic/index.mjs +1 -1
  322. package/lib/constants/icons/header/account.svg.js +5 -5
  323. package/lib/constants/icons/header/globe.svg.js +5 -5
  324. package/lib/constants/icons/header/index.js +9 -9
  325. package/lib/constants/icons/header/logoUnifi.svg.js +5 -5
  326. package/lib/constants/icons/menu/index.d.ts +0 -3
  327. package/lib/constants/icons/menu/index.js +0 -27
  328. package/lib/constants/icons/menu/index.js.map +1 -1
  329. package/lib/constants/icons/menu/index.mjs +0 -6
  330. package/lib/constants/icons/menu/index.mjs.map +1 -1
  331. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  332. package/lib/constants/icons/options/colors/index.js +3 -3
  333. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  334. package/lib/constants/icons/options/styles/index.js +3 -3
  335. package/lib/constants/optionIcons.js +6 -6
  336. package/lib/constants/optionIcons.mjs +4 -4
  337. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -1
  338. package/lib/constants/proStoreCategories/mapping/index.js +49 -54
  339. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  340. package/lib/constants/proStoreCategories/mapping/index.mjs +49 -54
  341. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  342. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -2
  343. package/lib/constants/proStoreCategories/mapping/unifi.js +0 -1
  344. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  345. package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -1
  346. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  347. package/lib/constants/proStoreCategories/translations/en.json.js +0 -3
  348. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  349. package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -3
  350. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  351. package/lib/constants/proStoreCategories/translations/fr.json.js +1 -1
  352. package/lib/constants/proStoreCategories/translations/fr.json.mjs +1 -1
  353. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -1
  354. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +1 -1
  355. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -1
  356. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +1 -1
  357. package/lib/constants/theme.js +0 -4
  358. package/lib/constants/theme.js.map +1 -1
  359. package/lib/constants/theme.mjs +0 -4
  360. package/lib/constants/theme.mjs.map +1 -1
  361. package/lib/contexts/MenuContext/context.js +1 -1
  362. package/lib/contexts/MenuContext/context.js.map +1 -1
  363. package/lib/contexts/MenuContext/context.mjs +1 -1
  364. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  365. package/lib/contexts/MenuContext/types.js.map +1 -1
  366. package/lib/contexts/MenuContext/types.mjs.map +1 -1
  367. package/lib/contexts/MenuContext/utils.d.ts +1 -6
  368. package/lib/contexts/MenuContext/utils.js +0 -16
  369. package/lib/contexts/MenuContext/utils.js.map +1 -1
  370. package/lib/contexts/MenuContext/utils.mjs +1 -16
  371. package/lib/contexts/MenuContext/utils.mjs.map +1 -1
  372. package/lib/contexts/index.d.ts +0 -1
  373. package/lib/contexts/index.js +0 -2
  374. package/lib/contexts/index.js.map +1 -1
  375. package/lib/contexts/index.mjs +0 -2
  376. package/lib/contexts/index.mjs.map +1 -1
  377. package/lib/helpers/index.d.ts +0 -1
  378. package/lib/helpers/index.js +0 -11
  379. package/lib/helpers/index.js.map +1 -1
  380. package/lib/helpers/index.mjs +0 -1
  381. package/lib/helpers/index.mjs.map +1 -1
  382. package/lib/helpers/ux.d.ts +1 -9
  383. package/lib/helpers/ux.js +0 -15
  384. package/lib/helpers/ux.js.map +1 -1
  385. package/lib/helpers/ux.mjs +1 -15
  386. package/lib/helpers/ux.mjs.map +1 -1
  387. package/lib/types/index.d.ts +0 -1
  388. package/lib/types/index.js +0 -2
  389. package/lib/types/index.js.map +1 -1
  390. package/lib/types/index.mjs +0 -1
  391. package/lib/types/index.mjs.map +1 -1
  392. package/lib/utils/array.d.ts +0 -4
  393. package/lib/utils/array.js +0 -10
  394. package/lib/utils/array.js.map +1 -1
  395. package/lib/utils/array.mjs +1 -10
  396. package/lib/utils/array.mjs.map +1 -1
  397. package/lib/utils/money/constants.d.ts +25 -56
  398. package/lib/utils/money/constants.js +7 -72
  399. package/lib/utils/money/constants.js.map +1 -1
  400. package/lib/utils/money/constants.mjs +7 -70
  401. package/lib/utils/money/constants.mjs.map +1 -1
  402. package/lib/utils/money/format.d.ts +5 -10
  403. package/lib/utils/money/format.js +14 -22
  404. package/lib/utils/money/format.js.map +1 -1
  405. package/lib/utils/money/format.mjs +16 -23
  406. package/lib/utils/money/format.mjs.map +1 -1
  407. package/lib/utils/money/index.d.ts +1 -4
  408. package/lib/utils/money/index.js +8 -26
  409. package/lib/utils/money/index.js.map +1 -1
  410. package/lib/utils/money/index.mjs +4 -8
  411. package/lib/utils/money/index.mjs.map +1 -1
  412. package/lib/utils/money/misc.d.ts +28 -68
  413. package/lib/utils/money/misc.js +64 -35
  414. package/lib/utils/money/misc.js.map +1 -1
  415. package/lib/utils/money/misc.mjs +43 -32
  416. package/lib/utils/money/misc.mjs.map +1 -1
  417. package/lib/utils/money/tax.d.ts +2 -38
  418. package/lib/utils/money/tax.js +10 -46
  419. package/lib/utils/money/tax.js.map +1 -1
  420. package/lib/utils/money/tax.mjs +11 -42
  421. package/lib/utils/money/tax.mjs.map +1 -1
  422. package/lib/utils/money/types.d.ts +3 -78
  423. package/lib/utils/number.d.ts +1 -1
  424. package/lib/utils/number.js +1 -1
  425. package/lib/utils/number.js.map +1 -1
  426. package/lib/utils/number.mjs +1 -1
  427. package/lib/utils/number.mjs.map +1 -1
  428. package/lib/utils/validations.d.ts +15 -0
  429. package/lib/utils/validations.js +23 -0
  430. package/lib/utils/validations.js.map +1 -0
  431. package/lib/utils/validations.mjs +21 -0
  432. package/lib/utils/validations.mjs.map +1 -0
  433. package/package.json +10 -10
  434. package/lib/assets/aggregation.png +0 -0
  435. package/lib/assets/bullet.png +0 -0
  436. package/lib/assets/camera-special-devices.png +0 -0
  437. package/lib/assets/cloud-gateway-overview.png +0 -0
  438. package/lib/assets/compact-switching.png +0 -0
  439. package/lib/assets/compact.png +0 -0
  440. package/lib/assets/consolidatedSpecialDevices.svg +0 -5
  441. package/lib/assets/digital-signage.png +0 -0
  442. package/lib/assets/dome-turret.png +0 -0
  443. package/lib/assets/door-access.png +0 -0
  444. package/lib/assets/doorAccess.svg +0 -5
  445. package/lib/assets/education.jpg +0 -0
  446. package/lib/assets/efg.png +0 -0
  447. package/lib/assets/enterprise-scale.png +0 -0
  448. package/lib/assets/enterprise.jpg +0 -0
  449. package/lib/assets/ev-charging.png +0 -0
  450. package/lib/assets/flagship.jpg +0 -0
  451. package/lib/assets/flexible-outdoor.jpg +0 -0
  452. package/lib/assets/gbe-1u-2.5and10.png +0 -0
  453. package/lib/assets/gbe-1u.png +0 -0
  454. package/lib/assets/hospitality.jpg +0 -0
  455. package/lib/assets/how-it-works.jpg +0 -0
  456. package/lib/assets/icon-location-pin.svg +0 -5
  457. package/lib/assets/icons/arrowDown.svg.mjs +0 -3
  458. package/lib/assets/icons/menu/icon-location-pin.svg.js +0 -27
  459. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
  460. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
  461. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
  462. package/lib/assets/icons/zoomOut.svg.js +0 -27
  463. package/lib/assets/icons/zoomOut.svg.js.map +0 -1
  464. package/lib/assets/icons/zoomOut.svg.mjs +0 -3
  465. package/lib/assets/icons/zoomOut.svg.mjs.map +0 -1
  466. package/lib/assets/industrial2.jpg +0 -0
  467. package/lib/assets/large-scale.png +0 -0
  468. package/lib/assets/managed-voip.png +0 -0
  469. package/lib/assets/mega-capacity.jpg +0 -0
  470. package/lib/assets/mobile-routing.png +0 -0
  471. package/lib/assets/nextai-camera.jpg +0 -0
  472. package/lib/assets/nextai-cyber.jpg +0 -0
  473. package/lib/assets/overview.svg +0 -3
  474. package/lib/assets/premium-audio.png +0 -0
  475. package/lib/assets/ptz.png +0 -0
  476. package/lib/assets/retail.jpg +0 -0
  477. package/lib/assets/sd-wan-sase.jpg +0 -0
  478. package/lib/assets/security-overview.png +0 -0
  479. package/lib/assets/site-manager.jpg +0 -0
  480. package/lib/assets/stadium.jpg +0 -0
  481. package/lib/assets/switching-overview.png +0 -0
  482. package/lib/assets/tco-calculator.jpg +0 -0
  483. package/lib/assets/ucg-max.png +0 -0
  484. package/lib/assets/unifi-drive.png +0 -0
  485. package/lib/assets/video-recorders.png +0 -0
  486. package/lib/assets/wall.jpg +0 -0
  487. package/lib/assets/wifi-bridging.png +0 -0
  488. package/lib/assets/wifi-flagship.png +0 -0
  489. package/lib/assets/wifi-integrated.png +0 -0
  490. package/lib/assets/wifi-mega-capacity.png +0 -0
  491. package/lib/assets/wifi-outdoor.png +0 -0
  492. package/lib/assets/wifi-overview.png +0 -0
  493. package/lib/assets/wifi-wall.png +0 -0
  494. package/lib/assets/zoomOut.svg +0 -3
  495. package/lib/components/Header/Navigation/ProMenu/ProMenu.d.ts +0 -2
  496. package/lib/components/Header/Navigation/ProMenu/ProMenu.js +0 -103
  497. package/lib/components/Header/Navigation/ProMenu/ProMenu.js.map +0 -1
  498. package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs +0 -81
  499. package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs.map +0 -1
  500. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.d.ts +0 -23
  501. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js +0 -121
  502. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js.map +0 -1
  503. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs +0 -106
  504. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs.map +0 -1
  505. package/lib/components/Header/Navigation/ProMenu/ProMenu.types.d.ts +0 -12
  506. package/lib/components/Header/Navigation/ProMenu/index.d.ts +0 -1
  507. package/lib/components/Header/Navigation/ProMenu/index.js +0 -6
  508. package/lib/components/Header/Navigation/ProMenu/index.mjs +0 -3
  509. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
  510. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
  511. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
  512. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
  513. package/lib/components/MicrositeHeader/MicrositeHeader.d.ts +0 -2
  514. package/lib/components/MicrositeHeader/MicrositeHeader.js +0 -28
  515. package/lib/components/MicrositeHeader/MicrositeHeader.js.map +0 -1
  516. package/lib/components/MicrositeHeader/MicrositeHeader.mjs +0 -26
  517. package/lib/components/MicrositeHeader/MicrositeHeader.mjs.map +0 -1
  518. package/lib/components/MicrositeHeader/MicrositeHeader.styles.d.ts +0 -2
  519. package/lib/components/MicrositeHeader/MicrositeHeader.types.d.ts +0 -5
  520. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.d.ts +0 -2
  521. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +0 -139
  522. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js.map +0 -1
  523. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs +0 -130
  524. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs.map +0 -1
  525. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.d.ts +0 -59
  526. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js +0 -424
  527. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js.map +0 -1
  528. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs +0 -389
  529. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs.map +0 -1
  530. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.types.d.ts +0 -21
  531. package/lib/components/MicrositeHeader/components/DropdownMenu/index.d.ts +0 -1
  532. package/lib/components/MicrositeHeader/components/DropdownMenu/index.js +0 -6
  533. package/lib/components/MicrositeHeader/components/DropdownMenu/index.js.map +0 -1
  534. package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs +0 -3
  535. package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs.map +0 -1
  536. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.d.ts +0 -2
  537. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.d.ts +0 -22
  538. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js +0 -148
  539. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js.map +0 -1
  540. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs +0 -126
  541. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs.map +0 -1
  542. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.types.d.ts +0 -10
  543. package/lib/components/MicrositeHeader/components/FirstLevelMenu/index.d.ts +0 -1
  544. package/lib/components/MicrositeHeader/components/Navigation/Navigation.d.ts +0 -3
  545. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +0 -224
  546. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +0 -1
  547. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +0 -214
  548. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +0 -1
  549. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.d.ts +0 -36
  550. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js +0 -232
  551. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js.map +0 -1
  552. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs +0 -210
  553. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs.map +0 -1
  554. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.d.ts +0 -8
  555. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js +0 -47
  556. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js.map +0 -1
  557. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs +0 -39
  558. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs.map +0 -1
  559. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.d.ts +0 -1
  560. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js +0 -6
  561. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js.map +0 -1
  562. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs +0 -3
  563. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs.map +0 -1
  564. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.d.ts +0 -5
  565. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js +0 -92
  566. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js.map +0 -1
  567. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs +0 -84
  568. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs.map +0 -1
  569. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.d.ts +0 -32
  570. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js +0 -230
  571. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js.map +0 -1
  572. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs +0 -206
  573. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs.map +0 -1
  574. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.d.ts +0 -1
  575. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js +0 -6
  576. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js.map +0 -1
  577. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs +0 -3
  578. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs.map +0 -1
  579. package/lib/components/MicrositeHeader/components/Navigation/index.d.ts +0 -1
  580. package/lib/components/MicrositeHeader/components/Navigation/index.js +0 -6
  581. package/lib/components/MicrositeHeader/components/Navigation/index.js.map +0 -1
  582. package/lib/components/MicrositeHeader/components/Navigation/index.mjs.map +0 -1
  583. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.d.ts +0 -2
  584. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.styles.d.ts +0 -13
  585. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.types.d.ts +0 -11
  586. package/lib/components/MicrositeHeader/components/SecondLevelMenu/index.d.ts +0 -1
  587. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.d.ts +0 -17
  588. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.d.ts +0 -13
  589. package/lib/components/MicrositeHeader/components/SiteMapColumns/index.d.ts +0 -1
  590. package/lib/components/MicrositeHeader/index.d.ts +0 -1
  591. package/lib/components/MicrositeHeader/index.js +0 -6
  592. package/lib/components/MicrositeHeader/index.js.map +0 -1
  593. package/lib/components/MicrositeHeader/index.mjs +0 -3
  594. package/lib/components/MicrositeHeader/index.mjs.map +0 -1
  595. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.js +0 -27
  596. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.js.map +0 -1
  597. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs +0 -3
  598. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs.map +0 -1
  599. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js +0 -27
  600. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js.map +0 -1
  601. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs +0 -3
  602. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs.map +0 -1
  603. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js.map +0 -1
  604. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs +0 -3
  605. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs.map +0 -1
  606. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js +0 -27
  607. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js.map +0 -1
  608. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs +0 -3
  609. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs.map +0 -1
  610. package/lib/components/ModelCompareV3/data/WiFi.d.ts +0 -2
  611. package/lib/components/ModelCompareV3/data/WiFi.js +0 -23
  612. package/lib/components/ModelCompareV3/data/WiFi.js.map +0 -1
  613. package/lib/components/ModelCompareV3/data/WiFi.mjs +0 -21
  614. package/lib/components/ModelCompareV3/data/WiFi.mjs.map +0 -1
  615. package/lib/components/ModelCompareV3/data/products/wifiFlagship.d.ts +0 -2
  616. package/lib/components/ModelCompareV3/data/products/wifiFlagship.js +0 -70
  617. package/lib/components/ModelCompareV3/data/products/wifiFlagship.js.map +0 -1
  618. package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs +0 -62
  619. package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs.map +0 -1
  620. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.d.ts +0 -2
  621. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js +0 -73
  622. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js.map +0 -1
  623. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs +0 -65
  624. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs.map +0 -1
  625. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.d.ts +0 -2
  626. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js +0 -73
  627. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js.map +0 -1
  628. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs +0 -65
  629. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs.map +0 -1
  630. package/lib/components/ModelCompareV3/data/products/wifiWall.d.ts +0 -2
  631. package/lib/components/ModelCompareV3/data/products/wifiWall.js +0 -74
  632. package/lib/components/ModelCompareV3/data/products/wifiWall.js.map +0 -1
  633. package/lib/components/ModelCompareV3/data/products/wifiWall.mjs +0 -66
  634. package/lib/components/ModelCompareV3/data/products/wifiWall.mjs.map +0 -1
  635. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js +0 -27
  636. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +0 -1
  637. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +0 -3
  638. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +0 -1
  639. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +0 -27
  640. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +0 -1
  641. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +0 -3
  642. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +0 -1
  643. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js +0 -27
  644. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js.map +0 -1
  645. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs +0 -3
  646. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs.map +0 -1
  647. package/lib/constants/icons/menu/doorAccess.svg.js +0 -27
  648. package/lib/constants/icons/menu/doorAccess.svg.js.map +0 -1
  649. package/lib/constants/icons/menu/doorAccess.svg.mjs +0 -3
  650. package/lib/constants/icons/menu/doorAccess.svg.mjs.map +0 -1
  651. package/lib/constants/icons/menu/overview.svg.js +0 -27
  652. package/lib/constants/icons/menu/overview.svg.js.map +0 -1
  653. package/lib/constants/icons/menu/overview.svg.mjs +0 -3
  654. package/lib/constants/icons/menu/overview.svg.mjs.map +0 -1
  655. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js +0 -27
  656. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js.map +0 -1
  657. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs +0 -3
  658. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs.map +0 -1
  659. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js +0 -27
  660. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js.map +0 -1
  661. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs +0 -3
  662. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs.map +0 -1
  663. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js +0 -27
  664. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js.map +0 -1
  665. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs +0 -3
  666. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs.map +0 -1
  667. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js +0 -27
  668. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js.map +0 -1
  669. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs +0 -3
  670. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs.map +0 -1
  671. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js +0 -27
  672. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js.map +0 -1
  673. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs +0 -3
  674. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs.map +0 -1
  675. package/lib/contexts/MicrositeMenuContext/assets/compact.png.js +0 -27
  676. package/lib/contexts/MicrositeMenuContext/assets/compact.png.js.map +0 -1
  677. package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs +0 -3
  678. package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs.map +0 -1
  679. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js +0 -27
  680. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js.map +0 -1
  681. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs +0 -3
  682. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs.map +0 -1
  683. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js +0 -27
  684. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js.map +0 -1
  685. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs +0 -3
  686. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs.map +0 -1
  687. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js +0 -27
  688. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js.map +0 -1
  689. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs +0 -3
  690. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs.map +0 -1
  691. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js +0 -27
  692. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js.map +0 -1
  693. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs +0 -3
  694. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs.map +0 -1
  695. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js +0 -27
  696. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js.map +0 -1
  697. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs +0 -3
  698. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs.map +0 -1
  699. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js +0 -27
  700. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js.map +0 -1
  701. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs +0 -3
  702. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs.map +0 -1
  703. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js +0 -27
  704. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js.map +0 -1
  705. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs +0 -3
  706. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs.map +0 -1
  707. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js +0 -27
  708. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js.map +0 -1
  709. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs +0 -3
  710. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs.map +0 -1
  711. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js +0 -27
  712. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js.map +0 -1
  713. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs +0 -3
  714. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs.map +0 -1
  715. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js +0 -27
  716. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js.map +0 -1
  717. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs +0 -3
  718. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs.map +0 -1
  719. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js +0 -27
  720. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js.map +0 -1
  721. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs +0 -3
  722. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs.map +0 -1
  723. package/lib/contexts/MicrositeMenuContext/assets/index.d.ts +0 -41
  724. package/lib/contexts/MicrositeMenuContext/assets/index.js +0 -45
  725. package/lib/contexts/MicrositeMenuContext/assets/index.js.map +0 -1
  726. package/lib/contexts/MicrositeMenuContext/assets/index.mjs +0 -43
  727. package/lib/contexts/MicrositeMenuContext/assets/index.mjs.map +0 -1
  728. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js +0 -27
  729. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js.map +0 -1
  730. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs +0 -3
  731. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs.map +0 -1
  732. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js +0 -27
  733. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js.map +0 -1
  734. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs +0 -3
  735. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs.map +0 -1
  736. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js +0 -27
  737. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js.map +0 -1
  738. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs +0 -3
  739. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs.map +0 -1
  740. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js +0 -27
  741. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js.map +0 -1
  742. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs +0 -3
  743. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs.map +0 -1
  744. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js +0 -27
  745. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js.map +0 -1
  746. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs +0 -3
  747. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs.map +0 -1
  748. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js +0 -27
  749. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js.map +0 -1
  750. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs +0 -3
  751. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs.map +0 -1
  752. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js +0 -27
  753. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js.map +0 -1
  754. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs +0 -3
  755. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs.map +0 -1
  756. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js +0 -27
  757. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js.map +0 -1
  758. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs +0 -3
  759. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs.map +0 -1
  760. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js +0 -27
  761. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js.map +0 -1
  762. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs +0 -3
  763. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs.map +0 -1
  764. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js +0 -27
  765. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js.map +0 -1
  766. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs +0 -3
  767. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs.map +0 -1
  768. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js +0 -27
  769. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js.map +0 -1
  770. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs +0 -3
  771. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs.map +0 -1
  772. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js +0 -27
  773. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js.map +0 -1
  774. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs +0 -3
  775. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs.map +0 -1
  776. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js +0 -27
  777. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js.map +0 -1
  778. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs +0 -3
  779. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs.map +0 -1
  780. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js +0 -27
  781. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js.map +0 -1
  782. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs +0 -3
  783. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs.map +0 -1
  784. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js +0 -27
  785. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js.map +0 -1
  786. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs +0 -3
  787. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs.map +0 -1
  788. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js +0 -27
  789. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js.map +0 -1
  790. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs +0 -3
  791. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs.map +0 -1
  792. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js +0 -27
  793. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js.map +0 -1
  794. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs +0 -3
  795. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs.map +0 -1
  796. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js +0 -27
  797. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js.map +0 -1
  798. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs +0 -3
  799. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs.map +0 -1
  800. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js +0 -27
  801. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js.map +0 -1
  802. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs +0 -3
  803. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs.map +0 -1
  804. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js +0 -27
  805. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js.map +0 -1
  806. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs +0 -3
  807. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs.map +0 -1
  808. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js +0 -27
  809. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js.map +0 -1
  810. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs +0 -3
  811. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs.map +0 -1
  812. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js +0 -27
  813. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js.map +0 -1
  814. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs +0 -3
  815. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs.map +0 -1
  816. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js +0 -27
  817. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js.map +0 -1
  818. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs +0 -3
  819. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs.map +0 -1
  820. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js +0 -27
  821. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js.map +0 -1
  822. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs +0 -3
  823. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs.map +0 -1
  824. package/lib/contexts/MicrositeMenuContext/context.d.ts +0 -36
  825. package/lib/contexts/MicrositeMenuContext/context.js +0 -100
  826. package/lib/contexts/MicrositeMenuContext/context.js.map +0 -1
  827. package/lib/contexts/MicrositeMenuContext/context.mjs +0 -96
  828. package/lib/contexts/MicrositeMenuContext/context.mjs.map +0 -1
  829. package/lib/contexts/MicrositeMenuContext/index.d.ts +0 -1
  830. package/lib/contexts/MicrositeMenuContext/index.js +0 -8
  831. package/lib/contexts/MicrositeMenuContext/index.js.map +0 -1
  832. package/lib/contexts/MicrositeMenuContext/index.mjs +0 -3
  833. package/lib/contexts/MicrositeMenuContext/index.mjs.map +0 -1
  834. package/lib/contexts/MicrositeMenuContext/mapping.d.ts +0 -16
  835. package/lib/contexts/MicrositeMenuContext/mapping.js +0 -781
  836. package/lib/contexts/MicrositeMenuContext/mapping.js.map +0 -1
  837. package/lib/contexts/MicrositeMenuContext/mapping.mjs +0 -705
  838. package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +0 -1
  839. package/lib/contexts/MicrositeMenuContext/translations/ar.json.js +0 -8
  840. package/lib/contexts/MicrositeMenuContext/translations/ar.json.js.map +0 -1
  841. package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs +0 -3
  842. package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs.map +0 -1
  843. package/lib/contexts/MicrositeMenuContext/translations/de.json.js +0 -8
  844. package/lib/contexts/MicrositeMenuContext/translations/de.json.js.map +0 -1
  845. package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs +0 -3
  846. package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs.map +0 -1
  847. package/lib/contexts/MicrositeMenuContext/translations/el.json.js +0 -8
  848. package/lib/contexts/MicrositeMenuContext/translations/el.json.js.map +0 -1
  849. package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs +0 -3
  850. package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs.map +0 -1
  851. package/lib/contexts/MicrositeMenuContext/translations/en.json.js +0 -128
  852. package/lib/contexts/MicrositeMenuContext/translations/en.json.js.map +0 -1
  853. package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +0 -123
  854. package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs.map +0 -1
  855. package/lib/contexts/MicrositeMenuContext/translations/es.json.js +0 -8
  856. package/lib/contexts/MicrositeMenuContext/translations/es.json.js.map +0 -1
  857. package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs +0 -3
  858. package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs.map +0 -1
  859. package/lib/contexts/MicrositeMenuContext/translations/fr.json.js +0 -8
  860. package/lib/contexts/MicrositeMenuContext/translations/fr.json.js.map +0 -1
  861. package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs +0 -3
  862. package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs.map +0 -1
  863. package/lib/contexts/MicrositeMenuContext/translations/it.json.js +0 -8
  864. package/lib/contexts/MicrositeMenuContext/translations/it.json.js.map +0 -1
  865. package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs +0 -3
  866. package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs.map +0 -1
  867. package/lib/contexts/MicrositeMenuContext/translations/ja.json.js +0 -8
  868. package/lib/contexts/MicrositeMenuContext/translations/ja.json.js.map +0 -1
  869. package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs +0 -3
  870. package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs.map +0 -1
  871. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js +0 -8
  872. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js.map +0 -1
  873. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs +0 -3
  874. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs.map +0 -1
  875. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js +0 -8
  876. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js.map +0 -1
  877. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs +0 -3
  878. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs.map +0 -1
  879. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js +0 -8
  880. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js.map +0 -1
  881. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs +0 -3
  882. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs.map +0 -1
  883. package/lib/contexts/MicrositeMenuContext/translations.d.ts +0 -7
  884. package/lib/contexts/MicrositeMenuContext/translations.js +0 -47
  885. package/lib/contexts/MicrositeMenuContext/translations.js.map +0 -1
  886. package/lib/contexts/MicrositeMenuContext/translations.mjs +0 -25
  887. package/lib/contexts/MicrositeMenuContext/translations.mjs.map +0 -1
  888. package/lib/contexts/MicrositeMenuContext/types.d.ts +0 -101
  889. package/lib/contexts/MicrositeMenuContext/types.js +0 -16
  890. package/lib/contexts/MicrositeMenuContext/types.js.map +0 -1
  891. package/lib/contexts/MicrositeMenuContext/types.mjs +0 -15
  892. package/lib/contexts/MicrositeMenuContext/types.mjs.map +0 -1
  893. package/lib/helpers/product.d.ts +0 -87
  894. package/lib/helpers/product.js +0 -346
  895. package/lib/helpers/product.js.map +0 -1
  896. package/lib/helpers/product.mjs +0 -335
  897. package/lib/helpers/product.mjs.map +0 -1
  898. package/lib/types/product.d.ts +0 -87
  899. package/lib/types/product.js +0 -14
  900. package/lib/types/product.js.map +0 -1
  901. package/lib/types/product.mjs +0 -13
  902. package/lib/types/product.mjs.map +0 -1
  903. package/lib/utils/money/allocators/fixedAmount.d.ts +0 -26
  904. package/lib/utils/money/allocators/fixedAmount.js +0 -52
  905. package/lib/utils/money/allocators/fixedAmount.js.map +0 -1
  906. package/lib/utils/money/allocators/fixedAmount.mjs +0 -50
  907. package/lib/utils/money/allocators/fixedAmount.mjs.map +0 -1
  908. package/lib/utils/money/allocators/index.d.ts +0 -2
  909. package/lib/utils/money/allocators/index.js +0 -8
  910. package/lib/utils/money/allocators/index.js.map +0 -1
  911. package/lib/utils/money/allocators/index.mjs +0 -4
  912. package/lib/utils/money/allocators/index.mjs.map +0 -1
  913. package/lib/utils/money/allocators/productAmount.d.ts +0 -13
  914. package/lib/utils/money/allocators/productAmount.js +0 -98
  915. package/lib/utils/money/allocators/productAmount.js.map +0 -1
  916. package/lib/utils/money/allocators/productAmount.mjs +0 -96
  917. package/lib/utils/money/allocators/productAmount.mjs.map +0 -1
  918. package/lib/utils/money/exchangeRate.d.ts +0 -31
  919. package/lib/utils/money/exchangeRate.js +0 -27
  920. package/lib/utils/money/exchangeRate.js.map +0 -1
  921. package/lib/utils/money/exchangeRate.mjs +0 -23
  922. package/lib/utils/money/exchangeRate.mjs.map +0 -1
  923. package/lib/utils/money/misc.private.d.ts +0 -23
  924. package/lib/utils/money/misc.private.js +0 -46
  925. package/lib/utils/money/misc.private.js.map +0 -1
  926. package/lib/utils/money/misc.private.mjs +0 -21
  927. package/lib/utils/money/misc.private.mjs.map +0 -1
  928. package/lib/utils/money/shipping.d.ts +0 -5
  929. package/lib/utils/money/shipping.js +0 -8
  930. package/lib/utils/money/shipping.js.map +0 -1
  931. package/lib/utils/money/shipping.mjs +0 -6
  932. package/lib/utils/money/shipping.mjs.map +0 -1
  933. package/lib/utils/money/tax.private.d.ts +0 -17
  934. package/lib/utils/money/tax.private.js +0 -65
  935. package/lib/utils/money/tax.private.js.map +0 -1
  936. package/lib/utils/money/tax.private.mjs +0 -60
  937. package/lib/utils/money/tax.private.mjs.map +0 -1
  938. package/lib/utils/productSort.d.ts +0 -41
  939. package/lib/utils/productSort.js +0 -67
  940. package/lib/utils/productSort.js.map +0 -1
  941. package/lib/utils/productSort.mjs +0 -60
  942. package/lib/utils/productSort.mjs.map +0 -1
  943. /package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.js.map +0 -0
  944. /package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.mjs.map +0 -0
  945. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.d.ts +0 -0
  946. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js +0 -0
  947. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js.map +0 -0
  948. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs +0 -0
  949. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs.map +0 -0
  950. /package/lib/components/{Header/Navigation/ProMenu → ResourceCalculatorV1/components}/index.mjs.map +0 -0
@@ -1,65 +0,0 @@
1
- 'use strict';
2
-
3
- var dinero_js = require('dinero.js');
4
- var errors = require('../errors.js');
5
- var fixedAmount = require('./allocators/fixedAmount.js');
6
- var misc = require('./misc.js');
7
- "use strict";
8
- const taxRateToDineroAllocation = taxRate => {
9
- if (taxRate <= 0 || taxRate >= 1) {
10
- throw new RangeError("Unsupported rate, expected in range of 0>rate<1");
11
- }
12
- const rateScale = String(taxRate).split(".")[1]?.length;
13
- errors.assert(rateScale !== void 0, "rateScale is undefined");
14
- const rateInt = Math.round(taxRate * Math.pow(10, rateScale));
15
- return [rateInt, Math.pow(10, rateScale) - rateInt];
16
- };
17
- const allocatePerItemTaxableAmount = itemSummary => {
18
- if (itemSummary.quantity === 1) {
19
- return [itemSummary];
20
- }
21
- const preDiscountAmount = dinero_js.add(misc.getDinero(itemSummary.taxableAmount, itemSummary.currency), misc.getDinero(itemSummary.discountAmount, itemSummary.currency));
22
- const allocator = new fixedAmount.FixedAmountAllocator({
23
- initialAllocateAmount: itemSummary.discountAmount,
24
- initialTotalAmount: misc.amount(preDiscountAmount),
25
- currency: itemSummary.currency
26
- });
27
- return Array.from({
28
- length: itemSummary.quantity
29
- }, () => {
30
- const discountAllocatedAmount = allocator.allocate(itemSummary.itemPrice, itemSummary.currency);
31
- const taxableAmount = dinero_js.subtract(misc.getDinero(itemSummary.itemPrice, itemSummary.currency), discountAllocatedAmount);
32
- return {
33
- itemPrice: itemSummary.itemPrice,
34
- taxableAmount: misc.amount(taxableAmount),
35
- discountAmount: misc.amount(discountAllocatedAmount),
36
- currency: itemSummary.currency,
37
- quantity: 1
38
- };
39
- });
40
- };
41
- const calculateWholeQtyLineItemTax = (itemSummary, taxRate) => {
42
- if (taxRate === 0) {
43
- return misc.getDinero(0, itemSummary.currency);
44
- }
45
- const [taxAmount] = dinero_js.allocate(misc.getDinero(itemSummary.taxableAmount, itemSummary.currency), taxRateToDineroAllocation(taxRate));
46
- errors.assert(taxAmount !== void 0, "taxAmount is undefined");
47
- return taxAmount;
48
- };
49
- const calculatePerQtyLineItemTax = (itemSummary, taxRate) => {
50
- if (taxRate === 0) {
51
- return misc.getDinero(0, itemSummary.currency);
52
- }
53
- const singleItemSummaries = allocatePerItemTaxableAmount(itemSummary);
54
- let totalTaxAmount = misc.getDinero(0, itemSummary.currency);
55
- singleItemSummaries.forEach(itemSummary2 => {
56
- const taxAmount = calculateWholeQtyLineItemTax(itemSummary2, taxRate);
57
- totalTaxAmount = dinero_js.add(totalTaxAmount, taxAmount);
58
- });
59
- return totalTaxAmount;
60
- };
61
- exports.allocatePerItemTaxableAmount = allocatePerItemTaxableAmount;
62
- exports.calculatePerQtyLineItemTax = calculatePerQtyLineItemTax;
63
- exports.calculateWholeQtyLineItemTax = calculateWholeQtyLineItemTax;
64
- exports.taxRateToDineroAllocation = taxRateToDineroAllocation;
65
- //# sourceMappingURL=tax.private.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tax.private.js","sources":["../../../src/utils/money/tax.private.ts"],"sourcesContent":["// #############################################################################\n// Internal helper functions not for consumption outside of store.core!\n// Wrote as separate files so that they can be easily unit tested without exposing them\n// #############################################################################\nimport type { Dinero } from \"dinero.js\";\nimport { add, allocate, subtract } from \"dinero.js\";\n\nimport { assert } from \"../errors\";\nimport { FixedAmountAllocator } from \"./allocators/fixedAmount\";\nimport { amount, getDinero } from \"./misc\";\nimport type {\n Cents,\n LineItemSummary,\n SingleLineItemSummary,\n TaxRate,\n} from \"./types\";\n\n/**\n * Private helper to convert a floating number to a dinero friendly allocation integer pair\n * @see https://v2.dinerojs.com/docs/api/mutations/allocate\n * @example\n * taxRateToDineroAllocation(0.1) // [1, 9]\n * taxRateToDineroAllocation(0.5) // [5, 5]\n */\nexport const taxRateToDineroAllocation = (\n taxRate: TaxRate,\n): [number, number] => {\n if (taxRate <= 0 || taxRate >= 1) {\n throw new RangeError(\"Unsupported rate, expected in range of 0>rate<1\");\n }\n\n // Get the scale of the rate\n const rateScale = String(taxRate).split(\".\")[1]?.length;\n assert(rateScale !== undefined, \"rateScale is undefined\");\n\n // Convert to integers\n const rateInt = Math.round(taxRate * Math.pow(10, rateScale));\n return [rateInt, Math.pow(10, rateScale) - rateInt];\n};\n\n/**\n * Reverse engineer the taxable amount from \"whole item\" taxable amount into \"per item\" taxable amount for custom tax\n * rate calculations\n */\nexport const allocatePerItemTaxableAmount = (\n itemSummary: LineItemSummary,\n): SingleLineItemSummary[] => {\n /**\n * If the item quantity is 1, we can just return the item summary as is\n */\n if (itemSummary.quantity === 1) {\n return [itemSummary as SingleLineItemSummary];\n }\n\n // Reverse engineer price before discount\n const preDiscountAmount = add(\n getDinero(itemSummary.taxableAmount, itemSummary.currency),\n getDinero(itemSummary.discountAmount, itemSummary.currency),\n );\n\n const allocator = new FixedAmountAllocator({\n initialAllocateAmount: itemSummary.discountAmount,\n initialTotalAmount: amount(preDiscountAmount),\n currency: itemSummary.currency,\n });\n\n // Iterate over the amount of qty to reverse engineer the discount price\n return Array.from({ length: itemSummary.quantity }, () => {\n const discountAllocatedAmount = allocator.allocate(\n itemSummary.itemPrice,\n itemSummary.currency,\n );\n\n const taxableAmount = subtract(\n getDinero(itemSummary.itemPrice, itemSummary.currency),\n discountAllocatedAmount,\n );\n\n return {\n itemPrice: itemSummary.itemPrice,\n taxableAmount: amount(taxableAmount),\n discountAmount: amount(discountAllocatedAmount),\n currency: itemSummary.currency,\n quantity: 1,\n } as SingleLineItemSummary;\n });\n};\n\nexport const calculateWholeQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n /**\n * FIXME: look into approach with multiply and different scale for control over rounding, currently we just inherit\n * what dinero gives us which cause unexpected rounding issue\n */\n const [taxAmount] = allocate(\n getDinero(itemSummary.taxableAmount, itemSummary.currency),\n taxRateToDineroAllocation(taxRate),\n );\n\n assert(taxAmount !== undefined, \"taxAmount is undefined\");\n return taxAmount;\n};\n\nexport const calculatePerQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n // Split the item summary into per individual item qty summaries\n const singleItemSummaries = allocatePerItemTaxableAmount(itemSummary);\n\n // Calculate individual item qty tax and sum them up\n let totalTaxAmount = getDinero(0, itemSummary.currency);\n\n singleItemSummaries.forEach((itemSummary) => {\n // Probably a bit confusing at first, but calling the whole qty tax calculation function here as we can safely use\n // it as item summary is always a single item summary here\n const taxAmount = calculateWholeQtyLineItemTax(itemSummary, taxRate);\n totalTaxAmount = add(totalTaxAmount, taxAmount);\n });\n\n return totalTaxAmount;\n};\n"],"names":["taxRateToDineroAllocation","taxRate","RangeError","rateScale","String","split","length","assert","rateInt","Math","round","pow","allocatePerItemTaxableAmount","itemSummary","quantity","preDiscountAmount","add","getDinero","taxableAmount","currency","discountAmount","allocator","FixedAmountAllocator","initialAllocateAmount","initialTotalAmount","amount","Array","from","discountAllocatedAmount","allocate","itemPrice","subtract","calculateWholeQtyLineItemTax","taxAmount","calculatePerQtyLineItemTax","singleItemSummaries","totalTaxAmount","forEach"],"mappings":"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"}
@@ -1,60 +0,0 @@
1
- import { add, subtract, allocate } from 'dinero.js';
2
- import { assert } from '../errors.mjs';
3
- import { FixedAmountAllocator } from './allocators/fixedAmount.mjs';
4
- import { getDinero, amount } from './misc.mjs';
5
- "use strict";
6
- const taxRateToDineroAllocation = taxRate => {
7
- if (taxRate <= 0 || taxRate >= 1) {
8
- throw new RangeError("Unsupported rate, expected in range of 0>rate<1");
9
- }
10
- const rateScale = String(taxRate).split(".")[1]?.length;
11
- assert(rateScale !== void 0, "rateScale is undefined");
12
- const rateInt = Math.round(taxRate * Math.pow(10, rateScale));
13
- return [rateInt, Math.pow(10, rateScale) - rateInt];
14
- };
15
- const allocatePerItemTaxableAmount = itemSummary => {
16
- if (itemSummary.quantity === 1) {
17
- return [itemSummary];
18
- }
19
- const preDiscountAmount = add(getDinero(itemSummary.taxableAmount, itemSummary.currency), getDinero(itemSummary.discountAmount, itemSummary.currency));
20
- const allocator = new FixedAmountAllocator({
21
- initialAllocateAmount: itemSummary.discountAmount,
22
- initialTotalAmount: amount(preDiscountAmount),
23
- currency: itemSummary.currency
24
- });
25
- return Array.from({
26
- length: itemSummary.quantity
27
- }, () => {
28
- const discountAllocatedAmount = allocator.allocate(itemSummary.itemPrice, itemSummary.currency);
29
- const taxableAmount = subtract(getDinero(itemSummary.itemPrice, itemSummary.currency), discountAllocatedAmount);
30
- return {
31
- itemPrice: itemSummary.itemPrice,
32
- taxableAmount: amount(taxableAmount),
33
- discountAmount: amount(discountAllocatedAmount),
34
- currency: itemSummary.currency,
35
- quantity: 1
36
- };
37
- });
38
- };
39
- const calculateWholeQtyLineItemTax = (itemSummary, taxRate) => {
40
- if (taxRate === 0) {
41
- return getDinero(0, itemSummary.currency);
42
- }
43
- const [taxAmount] = allocate(getDinero(itemSummary.taxableAmount, itemSummary.currency), taxRateToDineroAllocation(taxRate));
44
- assert(taxAmount !== void 0, "taxAmount is undefined");
45
- return taxAmount;
46
- };
47
- const calculatePerQtyLineItemTax = (itemSummary, taxRate) => {
48
- if (taxRate === 0) {
49
- return getDinero(0, itemSummary.currency);
50
- }
51
- const singleItemSummaries = allocatePerItemTaxableAmount(itemSummary);
52
- let totalTaxAmount = getDinero(0, itemSummary.currency);
53
- singleItemSummaries.forEach(itemSummary2 => {
54
- const taxAmount = calculateWholeQtyLineItemTax(itemSummary2, taxRate);
55
- totalTaxAmount = add(totalTaxAmount, taxAmount);
56
- });
57
- return totalTaxAmount;
58
- };
59
- export { allocatePerItemTaxableAmount, calculatePerQtyLineItemTax, calculateWholeQtyLineItemTax, taxRateToDineroAllocation };
60
- //# sourceMappingURL=tax.private.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tax.private.mjs","sources":["../../../src/utils/money/tax.private.ts"],"sourcesContent":["// #############################################################################\n// Internal helper functions not for consumption outside of store.core!\n// Wrote as separate files so that they can be easily unit tested without exposing them\n// #############################################################################\nimport type { Dinero } from \"dinero.js\";\nimport { add, allocate, subtract } from \"dinero.js\";\n\nimport { assert } from \"../errors\";\nimport { FixedAmountAllocator } from \"./allocators/fixedAmount\";\nimport { amount, getDinero } from \"./misc\";\nimport type {\n Cents,\n LineItemSummary,\n SingleLineItemSummary,\n TaxRate,\n} from \"./types\";\n\n/**\n * Private helper to convert a floating number to a dinero friendly allocation integer pair\n * @see https://v2.dinerojs.com/docs/api/mutations/allocate\n * @example\n * taxRateToDineroAllocation(0.1) // [1, 9]\n * taxRateToDineroAllocation(0.5) // [5, 5]\n */\nexport const taxRateToDineroAllocation = (\n taxRate: TaxRate,\n): [number, number] => {\n if (taxRate <= 0 || taxRate >= 1) {\n throw new RangeError(\"Unsupported rate, expected in range of 0>rate<1\");\n }\n\n // Get the scale of the rate\n const rateScale = String(taxRate).split(\".\")[1]?.length;\n assert(rateScale !== undefined, \"rateScale is undefined\");\n\n // Convert to integers\n const rateInt = Math.round(taxRate * Math.pow(10, rateScale));\n return [rateInt, Math.pow(10, rateScale) - rateInt];\n};\n\n/**\n * Reverse engineer the taxable amount from \"whole item\" taxable amount into \"per item\" taxable amount for custom tax\n * rate calculations\n */\nexport const allocatePerItemTaxableAmount = (\n itemSummary: LineItemSummary,\n): SingleLineItemSummary[] => {\n /**\n * If the item quantity is 1, we can just return the item summary as is\n */\n if (itemSummary.quantity === 1) {\n return [itemSummary as SingleLineItemSummary];\n }\n\n // Reverse engineer price before discount\n const preDiscountAmount = add(\n getDinero(itemSummary.taxableAmount, itemSummary.currency),\n getDinero(itemSummary.discountAmount, itemSummary.currency),\n );\n\n const allocator = new FixedAmountAllocator({\n initialAllocateAmount: itemSummary.discountAmount,\n initialTotalAmount: amount(preDiscountAmount),\n currency: itemSummary.currency,\n });\n\n // Iterate over the amount of qty to reverse engineer the discount price\n return Array.from({ length: itemSummary.quantity }, () => {\n const discountAllocatedAmount = allocator.allocate(\n itemSummary.itemPrice,\n itemSummary.currency,\n );\n\n const taxableAmount = subtract(\n getDinero(itemSummary.itemPrice, itemSummary.currency),\n discountAllocatedAmount,\n );\n\n return {\n itemPrice: itemSummary.itemPrice,\n taxableAmount: amount(taxableAmount),\n discountAmount: amount(discountAllocatedAmount),\n currency: itemSummary.currency,\n quantity: 1,\n } as SingleLineItemSummary;\n });\n};\n\nexport const calculateWholeQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n /**\n * FIXME: look into approach with multiply and different scale for control over rounding, currently we just inherit\n * what dinero gives us which cause unexpected rounding issue\n */\n const [taxAmount] = allocate(\n getDinero(itemSummary.taxableAmount, itemSummary.currency),\n taxRateToDineroAllocation(taxRate),\n );\n\n assert(taxAmount !== undefined, \"taxAmount is undefined\");\n return taxAmount;\n};\n\nexport const calculatePerQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n // Split the item summary into per individual item qty summaries\n const singleItemSummaries = allocatePerItemTaxableAmount(itemSummary);\n\n // Calculate individual item qty tax and sum them up\n let totalTaxAmount = getDinero(0, itemSummary.currency);\n\n singleItemSummaries.forEach((itemSummary) => {\n // Probably a bit confusing at first, but calling the whole qty tax calculation function here as we can safely use\n // it as item summary is always a single item summary here\n const taxAmount = calculateWholeQtyLineItemTax(itemSummary, taxRate);\n totalTaxAmount = add(totalTaxAmount, taxAmount);\n });\n\n return totalTaxAmount;\n};\n"],"names":["taxRateToDineroAllocation","taxRate","RangeError","rateScale","String","split","length","assert","rateInt","Math","round","pow","allocatePerItemTaxableAmount","itemSummary","quantity","preDiscountAmount","add","getDinero","taxableAmount","currency","discountAmount","allocator","FixedAmountAllocator","initialAllocateAmount","initialTotalAmount","amount","Array","from","discountAllocatedAmount","allocate","itemPrice","subtract","calculateWholeQtyLineItemTax","taxAmount","calculatePerQtyLineItemTax","singleItemSummaries","totalTaxAmount","forEach"],"mappings":"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"}
@@ -1,41 +0,0 @@
1
- import type { Nullish, StorefrontProduct, StoreId, UnionToAllPossibleTuples } from "../types";
2
- import { DisplayProductStatus } from "../types";
3
- /**
4
- * Narrow MinimalProProductFragment type even more to the union of fields that are needed to sort product
5
- */
6
- type ProductMinFieldsForSorting = Pick<StorefrontProduct, "status" | "tags" | "minDisplayPrice"> & {
7
- variants: {
8
- availableInOtherStores: Array<{
9
- __typename: string;
10
- }>;
11
- }[];
12
- linkedProducts?: {
13
- status: StorefrontProduct["status"];
14
- }[];
15
- };
16
- export declare enum Sort {
17
- HighestPrice = "highest-price",
18
- LowestPrice = "lowest-price",
19
- Availability = "availability"
20
- }
21
- export declare enum SortOrder {
22
- Asc = "Asc",
23
- Desc = "Desc"
24
- }
25
- /**
26
- * Variants statuses sorted in ascending order from least preferable to most, so if some new status comes in, then the
27
- * lookup for `.indexOf()` would return `-1`, thus being "worse" then DisplayProductStatus.SoldOut and moved to the very
28
- * back of list
29
- */
30
- export declare const sortedStatusesByPriorityAsc: UnionToAllPossibleTuples<DisplayProductStatus>;
31
- export declare const sortByAvailabilityDesc: (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => number;
32
- export declare const sortByPrice: (order: SortOrder) => (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => number;
33
- /**
34
- * Sorts products based on the given sort type.
35
- * @param currentSort - sort type
36
- * @param sortByWeightTag - if false, then sort by weight tag is
37
- * ignored (e.g. for `Related Add-ons` where
38
- * we don't want to sort by weight tag)
39
- */
40
- export declare const sortProducts: (currentSort: Nullish<string | Sort>, storeId?: StoreId, sortByWeightTag?: boolean) => (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => number;
41
- export {};
@@ -1,67 +0,0 @@
1
- 'use strict';
2
-
3
- require('../types/index.js');
4
- var array = require('./array.js');
5
- var product$1 = require('./product.js');
6
- var product = require('../types/product.js');
7
- "use strict";
8
- var Sort = /* @__PURE__ */(Sort2 => {
9
- Sort2["HighestPrice"] = "highest-price";
10
- Sort2["LowestPrice"] = "lowest-price";
11
- Sort2["Availability"] = "availability";
12
- return Sort2;
13
- })(Sort || {});
14
- var SortOrder = /* @__PURE__ */(SortOrder2 => {
15
- SortOrder2["Asc"] = "Asc";
16
- SortOrder2["Desc"] = "Desc";
17
- return SortOrder2;
18
- })(SortOrder || {});
19
- const sortedStatusesByPriorityAsc = [product.DisplayProductStatus.Unavailable, product.DisplayProductStatus.ComingSoon, product.DisplayProductStatus.SoldOut, product.DisplayProductStatus.RegionNotAvailable, product.DisplayProductStatus.Backorder, product.DisplayProductStatus.Available];
20
- const getProductStatusPriority = product$1 => {
21
- let sortStatus = product$1.status;
22
- if (product$1.variants.some(variant => variant.availableInOtherStores.length) || product$1.linkedProducts && product$1.linkedProducts.some(linkedProduct => linkedProduct.status === product.DisplayProductStatus.Available)) {
23
- sortStatus = product.DisplayProductStatus.Available;
24
- }
25
- return sortedStatusesByPriorityAsc.indexOf(sortStatus);
26
- };
27
- const sortByAvailabilityDesc = (current, next) => {
28
- return array.normalizeSortResult(getProductStatusPriority(next) - getProductStatusPriority(current));
29
- };
30
- const sortByPrice = order => (current, next) => {
31
- const currentProductPrice = current.minDisplayPrice.amount;
32
- const nextProductPrice = next.minDisplayPrice.amount;
33
- if (order === "Desc" /* Desc */) {
34
- return nextProductPrice - currentProductPrice;
35
- } else {
36
- return currentProductPrice - nextProductPrice;
37
- }
38
- };
39
- const sortProducts = (currentSort, storeId, sortByWeightTag = true) => (current, next) => {
40
- switch (currentSort) {
41
- // Sort by price
42
- case "highest-price" /* HighestPrice */:
43
- case "lowest-price" /* LowestPrice */:
44
- {
45
- return sortByPrice(currentSort === "highest-price" /* HighestPrice */ ? "Desc" /* Desc */ : "Asc" /* Asc */)(current, next);
46
- }
47
- case "availability" /* Availability */:
48
- {
49
- return sortByAvailabilityDesc(current, next);
50
- }
51
- default:
52
- {
53
- const sorts = [sortByAvailabilityDesc];
54
- if (sortByWeightTag) {
55
- sorts.push(product$1.sortByTagWeight(product$1.SortSiteId.Store, storeId));
56
- }
57
- return array.combineSorts(sorts)(current, next);
58
- }
59
- }
60
- };
61
- exports.Sort = Sort;
62
- exports.SortOrder = SortOrder;
63
- exports.sortByAvailabilityDesc = sortByAvailabilityDesc;
64
- exports.sortByPrice = sortByPrice;
65
- exports.sortProducts = sortProducts;
66
- exports.sortedStatusesByPriorityAsc = sortedStatusesByPriorityAsc;
67
- //# sourceMappingURL=productSort.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"productSort.js","sources":["../../src/utils/productSort.ts"],"sourcesContent":["import type { Nullish, StorefrontProduct, StoreId, UnionToAllPossibleTuples } from \"../types\";\nimport { DisplayProductStatus } from \"../types\";\nimport { combineSorts, normalizeSortResult } from \"./array\";\nimport { sortByTagWeight, SortSiteId } from \"./product\";\n\n/**\n * Narrow MinimalProProductFragment type even more to the union of fields that are needed to sort product\n */\ntype ProductMinFieldsForSorting = Pick<\n StorefrontProduct,\n \"status\" | \"tags\" | \"minDisplayPrice\"\n> & {\n variants: {\n // We only need bare minimum from array to compare array length\n // FIXME: move it to backend as a boolean field so we don't need to fetch entire array to reduce it to a boolean ourselves\n availableInOtherStores: Array<{ __typename: string }>;\n }[];\n linkedProducts?: {\n status: StorefrontProduct[\"status\"];\n }[];\n};\n\nexport enum Sort {\n HighestPrice = \"highest-price\",\n LowestPrice = \"lowest-price\",\n Availability = \"availability\",\n}\n\nexport enum SortOrder {\n Asc = \"Asc\",\n Desc = \"Desc\",\n}\n\n/**\n * Variants statuses sorted in ascending order from least preferable to most, so if some new status comes in, then the\n * lookup for `.indexOf()` would return `-1`, thus being \"worse\" then DisplayProductStatus.SoldOut and moved to the very\n * back of list\n */\nexport const sortedStatusesByPriorityAsc: UnionToAllPossibleTuples<DisplayProductStatus> =\n [\n DisplayProductStatus.Unavailable,\n DisplayProductStatus.ComingSoon,\n DisplayProductStatus.SoldOut,\n DisplayProductStatus.RegionNotAvailable,\n DisplayProductStatus.Backorder,\n DisplayProductStatus.Available,\n ];\n/**\n * Due to currently variant status being nullable for historical reasons we need to have a fallback state\n * TODO: remove once display status is StorefrontProductVariant.status is non-nullable\n */\nconst getProductStatusPriority = (\n product: ProductMinFieldsForSorting,\n): number => {\n let sortStatus = product.status;\n\n // Virtually set sort status as available if it has alternative stores\n if (\n product.variants.some((variant) => variant.availableInOtherStores.length) ||\n (product.linkedProducts &&\n product.linkedProducts.some(\n (linkedProduct) =>\n linkedProduct.status === DisplayProductStatus.Available,\n ))\n ) {\n sortStatus = DisplayProductStatus.Available;\n }\n\n return sortedStatusesByPriorityAsc.indexOf(sortStatus);\n};\n\nexport const sortByAvailabilityDesc = (\n current: ProductMinFieldsForSorting,\n next: ProductMinFieldsForSorting,\n): number => {\n return normalizeSortResult(\n getProductStatusPriority(next) - getProductStatusPriority(current),\n );\n};\n\nexport const sortByPrice =\n (order: SortOrder) => (\n current: ProductMinFieldsForSorting,\n next: ProductMinFieldsForSorting,\n ): number => {\n const currentProductPrice = current.minDisplayPrice.amount;\n\n const nextProductPrice = next.minDisplayPrice.amount;\n\n if (order === SortOrder.Desc) {\n return nextProductPrice - currentProductPrice;\n } else {\n return currentProductPrice - nextProductPrice;\n }\n };\n\n\n/**\n * Sorts products based on the given sort type.\n * @param currentSort - sort type\n * @param sortByWeightTag - if false, then sort by weight tag is\n * ignored (e.g. for `Related Add-ons` where\n * we don't want to sort by weight tag)\n */\nexport const sortProducts = (\n currentSort: Nullish<string | Sort>,\n storeId?: StoreId,\n sortByWeightTag = true,\n ) =>\n (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => {\n switch (currentSort) {\n // Sort by price\n case Sort.HighestPrice:\n case Sort.LowestPrice: {\n return sortByPrice(\n currentSort === Sort.HighestPrice ? SortOrder.Desc : SortOrder.Asc,\n )(current, next);\n }\n\n case Sort.Availability: {\n return sortByAvailabilityDesc(current, next);\n }\n\n default: {\n const sorts = [sortByAvailabilityDesc];\n\n // Add sorting by tag weight\n if (sortByWeightTag) {\n sorts.push(sortByTagWeight(SortSiteId.Store, storeId));\n }\n\n // Do additional sorting by tag weight only after initial sorting resulting in \"same group\"\n return combineSorts(sorts)(current, next);\n }\n }\n };"],"names":["Sort","SortOrder","sortedStatusesByPriorityAsc","DisplayProductStatus","Unavailable","ComingSoon","SoldOut","RegionNotAvailable","Backorder","Available","getProductStatusPriority","product","sortStatus","status","variants","some","variant","availableInOtherStores","length","linkedProducts","linkedProduct","indexOf","sortByAvailabilityDesc","current","next","normalizeSortResult","sortByPrice","order","currentProductPrice","minDisplayPrice","amount","nextProductPrice","sortProducts","currentSort","storeId","sortByWeightTag","sorts","push","sortByTagWeight","SortSiteId","Store","combineSorts"],"mappings":"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"}
@@ -1,60 +0,0 @@
1
- import '../types/index.mjs';
2
- import { normalizeSortResult, combineSorts } from './array.mjs';
3
- import { sortByTagWeight, SortSiteId } from './product.mjs';
4
- import { DisplayProductStatus } from '../types/product.mjs';
5
- "use strict";
6
- var Sort = /* @__PURE__ */(Sort2 => {
7
- Sort2["HighestPrice"] = "highest-price";
8
- Sort2["LowestPrice"] = "lowest-price";
9
- Sort2["Availability"] = "availability";
10
- return Sort2;
11
- })(Sort || {});
12
- var SortOrder = /* @__PURE__ */(SortOrder2 => {
13
- SortOrder2["Asc"] = "Asc";
14
- SortOrder2["Desc"] = "Desc";
15
- return SortOrder2;
16
- })(SortOrder || {});
17
- const sortedStatusesByPriorityAsc = [DisplayProductStatus.Unavailable, DisplayProductStatus.ComingSoon, DisplayProductStatus.SoldOut, DisplayProductStatus.RegionNotAvailable, DisplayProductStatus.Backorder, DisplayProductStatus.Available];
18
- const getProductStatusPriority = product => {
19
- let sortStatus = product.status;
20
- if (product.variants.some(variant => variant.availableInOtherStores.length) || product.linkedProducts && product.linkedProducts.some(linkedProduct => linkedProduct.status === DisplayProductStatus.Available)) {
21
- sortStatus = DisplayProductStatus.Available;
22
- }
23
- return sortedStatusesByPriorityAsc.indexOf(sortStatus);
24
- };
25
- const sortByAvailabilityDesc = (current, next) => {
26
- return normalizeSortResult(getProductStatusPriority(next) - getProductStatusPriority(current));
27
- };
28
- const sortByPrice = order => (current, next) => {
29
- const currentProductPrice = current.minDisplayPrice.amount;
30
- const nextProductPrice = next.minDisplayPrice.amount;
31
- if (order === "Desc" /* Desc */) {
32
- return nextProductPrice - currentProductPrice;
33
- } else {
34
- return currentProductPrice - nextProductPrice;
35
- }
36
- };
37
- const sortProducts = (currentSort, storeId, sortByWeightTag = true) => (current, next) => {
38
- switch (currentSort) {
39
- // Sort by price
40
- case "highest-price" /* HighestPrice */:
41
- case "lowest-price" /* LowestPrice */:
42
- {
43
- return sortByPrice(currentSort === "highest-price" /* HighestPrice */ ? "Desc" /* Desc */ : "Asc" /* Asc */)(current, next);
44
- }
45
- case "availability" /* Availability */:
46
- {
47
- return sortByAvailabilityDesc(current, next);
48
- }
49
- default:
50
- {
51
- const sorts = [sortByAvailabilityDesc];
52
- if (sortByWeightTag) {
53
- sorts.push(sortByTagWeight(SortSiteId.Store, storeId));
54
- }
55
- return combineSorts(sorts)(current, next);
56
- }
57
- }
58
- };
59
- export { Sort, SortOrder, sortByAvailabilityDesc, sortByPrice, sortProducts, sortedStatusesByPriorityAsc };
60
- //# sourceMappingURL=productSort.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"productSort.mjs","sources":["../../src/utils/productSort.ts"],"sourcesContent":["import type { Nullish, StorefrontProduct, StoreId, UnionToAllPossibleTuples } from \"../types\";\nimport { DisplayProductStatus } from \"../types\";\nimport { combineSorts, normalizeSortResult } from \"./array\";\nimport { sortByTagWeight, SortSiteId } from \"./product\";\n\n/**\n * Narrow MinimalProProductFragment type even more to the union of fields that are needed to sort product\n */\ntype ProductMinFieldsForSorting = Pick<\n StorefrontProduct,\n \"status\" | \"tags\" | \"minDisplayPrice\"\n> & {\n variants: {\n // We only need bare minimum from array to compare array length\n // FIXME: move it to backend as a boolean field so we don't need to fetch entire array to reduce it to a boolean ourselves\n availableInOtherStores: Array<{ __typename: string }>;\n }[];\n linkedProducts?: {\n status: StorefrontProduct[\"status\"];\n }[];\n};\n\nexport enum Sort {\n HighestPrice = \"highest-price\",\n LowestPrice = \"lowest-price\",\n Availability = \"availability\",\n}\n\nexport enum SortOrder {\n Asc = \"Asc\",\n Desc = \"Desc\",\n}\n\n/**\n * Variants statuses sorted in ascending order from least preferable to most, so if some new status comes in, then the\n * lookup for `.indexOf()` would return `-1`, thus being \"worse\" then DisplayProductStatus.SoldOut and moved to the very\n * back of list\n */\nexport const sortedStatusesByPriorityAsc: UnionToAllPossibleTuples<DisplayProductStatus> =\n [\n DisplayProductStatus.Unavailable,\n DisplayProductStatus.ComingSoon,\n DisplayProductStatus.SoldOut,\n DisplayProductStatus.RegionNotAvailable,\n DisplayProductStatus.Backorder,\n DisplayProductStatus.Available,\n ];\n/**\n * Due to currently variant status being nullable for historical reasons we need to have a fallback state\n * TODO: remove once display status is StorefrontProductVariant.status is non-nullable\n */\nconst getProductStatusPriority = (\n product: ProductMinFieldsForSorting,\n): number => {\n let sortStatus = product.status;\n\n // Virtually set sort status as available if it has alternative stores\n if (\n product.variants.some((variant) => variant.availableInOtherStores.length) ||\n (product.linkedProducts &&\n product.linkedProducts.some(\n (linkedProduct) =>\n linkedProduct.status === DisplayProductStatus.Available,\n ))\n ) {\n sortStatus = DisplayProductStatus.Available;\n }\n\n return sortedStatusesByPriorityAsc.indexOf(sortStatus);\n};\n\nexport const sortByAvailabilityDesc = (\n current: ProductMinFieldsForSorting,\n next: ProductMinFieldsForSorting,\n): number => {\n return normalizeSortResult(\n getProductStatusPriority(next) - getProductStatusPriority(current),\n );\n};\n\nexport const sortByPrice =\n (order: SortOrder) => (\n current: ProductMinFieldsForSorting,\n next: ProductMinFieldsForSorting,\n ): number => {\n const currentProductPrice = current.minDisplayPrice.amount;\n\n const nextProductPrice = next.minDisplayPrice.amount;\n\n if (order === SortOrder.Desc) {\n return nextProductPrice - currentProductPrice;\n } else {\n return currentProductPrice - nextProductPrice;\n }\n };\n\n\n/**\n * Sorts products based on the given sort type.\n * @param currentSort - sort type\n * @param sortByWeightTag - if false, then sort by weight tag is\n * ignored (e.g. for `Related Add-ons` where\n * we don't want to sort by weight tag)\n */\nexport const sortProducts = (\n currentSort: Nullish<string | Sort>,\n storeId?: StoreId,\n sortByWeightTag = true,\n ) =>\n (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => {\n switch (currentSort) {\n // Sort by price\n case Sort.HighestPrice:\n case Sort.LowestPrice: {\n return sortByPrice(\n currentSort === Sort.HighestPrice ? SortOrder.Desc : SortOrder.Asc,\n )(current, next);\n }\n\n case Sort.Availability: {\n return sortByAvailabilityDesc(current, next);\n }\n\n default: {\n const sorts = [sortByAvailabilityDesc];\n\n // Add sorting by tag weight\n if (sortByWeightTag) {\n sorts.push(sortByTagWeight(SortSiteId.Store, storeId));\n }\n\n // Do additional sorting by tag weight only after initial sorting resulting in \"same group\"\n return combineSorts(sorts)(current, next);\n }\n }\n };"],"names":["Sort","SortOrder","sortedStatusesByPriorityAsc","DisplayProductStatus","Unavailable","ComingSoon","SoldOut","RegionNotAvailable","Backorder","Available","getProductStatusPriority","product","sortStatus","status","variants","some","variant","availableInOtherStores","length","linkedProducts","linkedProduct","indexOf","sortByAvailabilityDesc","current","next","normalizeSortResult","sortByPrice","order","currentProductPrice","minDisplayPrice","amount","nextProductPrice","sortProducts","currentSort","storeId","sortByWeightTag","sorts","push","sortByTagWeight","SortSiteId","Store","combineSorts"],"mappings":";;;;;AAsBY,IAAAA,IAAA,GAAA,gBAAAA,KAAL,IAAA;EACLA,MAAA,cAAe,CAAA,GAAA,eAAA;EACfA,MAAA,aAAc,CAAA,GAAA,cAAA;EACdA,MAAA,cAAe,CAAA,GAAA,cAAA;EAHLA,OAAAA,KAAAA;AAAA,CAAA,EAAAA,IAAA,IAAA,CAAA,CAAA,CAAA;AAMA,IAAAC,SAAA,GAAA,gBAAAA,UAAL,IAAA;EACLA,WAAA,KAAM,CAAA,GAAA,KAAA;EACNA,WAAA,MAAO,CAAA,GAAA,MAAA;EAFGA,OAAAA,UAAAA;AAAA,CAAA,EAAAA,SAAA,IAAA,CAAA,CAAA,CAAA;AAUL,MAAMC,2BACX,GAAA,CACEC,oBAAqB,CAAAC,WAAA,EACrBD,oBAAqB,CAAAE,UAAA,EACrBF,oBAAqB,CAAAG,OAAA,EACrBH,oBAAqB,CAAAI,kBAAA,EACrBJ,oBAAqB,CAAAK,SAAA,EACrBL,oBAAqB,CAAAM,SAAA,CACvB;AAKF,MAAMC,wBAAA,GACJC,OACW,IAAA;EACX,IAAIC,aAAaD,OAAQ,CAAAE,MAAA;EAGzB,IACEF,OAAQ,CAAAG,QAAA,CAASC,IAAK,CAACC,OAAY,IAAAA,OAAA,CAAQC,sBAAuB,CAAAC,MAAM,CACvE,IAAAP,OAAA,CAAQQ,cACP,IAAAR,OAAA,CAAQQ,cAAe,CAAAJ,IAAA,CACpBK,aAAA,IACCA,aAAc,CAAAP,MAAA,KAAWV,oBAAqB,CAAAM,SAAA,CAEpD,EAAA;IACAG,UAAA,GAAaT,oBAAqB,CAAAM,SAAA;EACpC;EAEO,OAAAP,2BAAA,CAA4BmB,QAAQT,UAAU,CAAA;AACvD,CAAA;AAEa,MAAAU,sBAAA,GAAyBA,CACpCC,OAAA,EACAC,IACW,KAAA;EACJ,OAAAC,mBAAA,CACLf,wBAAyB,CAAAc,IAAI,CAAI,GAAAd,wBAAA,CAAyBa,OAAO,CAAA,CACnE;AACF,CAAA;AAEO,MAAMG,WACX,GAACC,KAAqB,IAAA,CACpBJ,SACAC,IACW,KAAA;EACL,MAAAI,mBAAA,GAAsBL,QAAQM,eAAgB,CAAAC,MAAA;EAE9C,MAAAC,gBAAA,GAAmBP,KAAKK,eAAgB,CAAAC,MAAA;EAE9C,IAAIH,UAAU,MAAgB,CAAA,YAAA;IAC5B,OAAOI,gBAAmB,GAAAH,mBAAA;EAAA,CACrB,MAAA;IACL,OAAOA,mBAAsB,GAAAG,gBAAA;EAC/B;AACF,CAAA;AAUW,MAAAC,YAAA,GAAeA,CACxBC,WACA,EAAAC,OAAA,EACAC,kBAAkB,IAEpB,KAAA,CAACZ,SAAqCC,IAAqC,KAAA;EACzE,QAAQS,WAAa;IAAA;IAEnB,KAAK,eAAA,CAAA;IACL,KAAK,cAAkB,CAAA;MAAA;QACd,OAAAP,WAAA,CACLO,WAAA,KAAgB,gBAAoB,qBAAA,MAAiB,cAAA,KAAA,CAAA,SAAA,CACvD,CAAEV,SAASC,IAAI,CAAA;MACjB;IAEA,KAAK,cAAmB,CAAA;MAAA;QACf,OAAAF,sBAAA,CAAuBC,SAASC,IAAI,CAAA;MAC7C;IAEA;MAAS;QACD,MAAAY,KAAA,GAAQ,CAACd,sBAAsB,CAAA;QAGrC,IAAIa,eAAiB,EAAA;UACnBC,KAAA,CAAMC,IAAK,CAAAC,eAAA,CAAgBC,UAAW,CAAAC,KAAA,EAAON,OAAO,CAAC,CAAA;QACvD;QAGA,OAAOO,YAAa,CAAAL,KAAK,CAAE,CAAAb,OAAA,EAASC,IAAI,CAAA;MAC1C;EACF;AACF,CAAA;"}