@ubnt/store.core 9.30.0-beta.9 → 9.30.0-techspecs.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 (383) hide show
  1. package/CHANGELOG.md +1 -154
  2. package/lib/_virtual/_virtual_multi-entry.js +2 -15
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +0 -2
  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/close2.svg +2 -3
  9. package/lib/assets/close3.svg +3 -2
  10. package/lib/assets/minus4.svg +8 -8
  11. package/lib/assets/minus5.svg +8 -8
  12. package/lib/assets/plus2.svg +4 -1
  13. package/lib/assets/plus3.svg +1 -4
  14. package/lib/assets/plus5.svg +9 -9
  15. package/lib/assets/plus6.svg +9 -9
  16. package/lib/components/BackInStock/BackInStock.types.d.ts +0 -1
  17. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
  18. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +4 -16
  19. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
  20. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +5 -17
  21. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
  22. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +1 -5
  23. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +17 -82
  24. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
  25. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +17 -82
  26. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
  27. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +0 -4
  28. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
  29. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
  30. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  31. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  32. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  33. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  34. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
  35. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
  36. package/lib/components/Header/CartModalV2/Item/Item.js +3 -3
  37. package/lib/components/Header/CartModalV2/Item/Item.mjs +2 -2
  38. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +2 -7
  39. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +4 -18
  40. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  41. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +4 -18
  42. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  43. package/lib/components/ModelCompareV3/data/products/aggregation.js +1 -1
  44. package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
  45. package/lib/components/ModelCompareV3/data/products/aggregation.mjs +1 -1
  46. package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
  47. package/lib/components/ModelCompareV3/data/products/enterprise24PoE.js +1 -1
  48. package/lib/components/ModelCompareV3/data/products/enterprise24PoE.js.map +1 -1
  49. package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs +1 -1
  50. package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs.map +1 -1
  51. package/lib/components/ModelCompareV3/data/products/enterprise48PoE.js +1 -1
  52. package/lib/components/ModelCompareV3/data/products/enterprise48PoE.js.map +1 -1
  53. package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs +1 -1
  54. package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs.map +1 -1
  55. package/lib/components/ModelCompareV3/data/products/enterprise8PoE.js +1 -1
  56. package/lib/components/ModelCompareV3/data/products/enterprise8PoE.js.map +1 -1
  57. package/lib/components/ModelCompareV3/data/products/enterprise8PoE.mjs +1 -1
  58. package/lib/components/ModelCompareV3/data/products/enterprise8PoE.mjs.map +1 -1
  59. package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.js +1 -1
  60. package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.js.map +1 -1
  61. package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.mjs +1 -1
  62. package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.mjs.map +1 -1
  63. package/lib/components/ModelCompareV3/data/products/enterpriseXG24.js +1 -1
  64. package/lib/components/ModelCompareV3/data/products/enterpriseXG24.js.map +1 -1
  65. package/lib/components/ModelCompareV3/data/products/enterpriseXG24.mjs +1 -1
  66. package/lib/components/ModelCompareV3/data/products/enterpriseXG24.mjs.map +1 -1
  67. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +1 -1
  68. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
  69. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +1 -1
  70. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
  71. package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
  72. package/lib/components/ModelCompareV3/data/products/industrial.js.map +1 -1
  73. package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
  74. package/lib/components/ModelCompareV3/data/products/industrial.mjs.map +1 -1
  75. package/lib/components/ModelCompareV3/data/products/lite16PoE.js +1 -1
  76. package/lib/components/ModelCompareV3/data/products/lite16PoE.js.map +1 -1
  77. package/lib/components/ModelCompareV3/data/products/lite16PoE.mjs +1 -1
  78. package/lib/components/ModelCompareV3/data/products/lite16PoE.mjs.map +1 -1
  79. package/lib/components/ModelCompareV3/data/products/lite8PoE.js +1 -1
  80. package/lib/components/ModelCompareV3/data/products/lite8PoE.js.map +1 -1
  81. package/lib/components/ModelCompareV3/data/products/lite8PoE.mjs +1 -1
  82. package/lib/components/ModelCompareV3/data/products/lite8PoE.mjs.map +1 -1
  83. package/lib/components/ModelCompareV3/data/products/missionCritical.js +1 -1
  84. package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
  85. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +1 -1
  86. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
  87. package/lib/components/ModelCompareV3/data/products/professional24.js +1 -1
  88. package/lib/components/ModelCompareV3/data/products/professional24.js.map +1 -1
  89. package/lib/components/ModelCompareV3/data/products/professional24.mjs +1 -1
  90. package/lib/components/ModelCompareV3/data/products/professional24.mjs.map +1 -1
  91. package/lib/components/ModelCompareV3/data/products/professional24PoE.js +1 -1
  92. package/lib/components/ModelCompareV3/data/products/professional24PoE.js.map +1 -1
  93. package/lib/components/ModelCompareV3/data/products/professional24PoE.mjs +1 -1
  94. package/lib/components/ModelCompareV3/data/products/professional24PoE.mjs.map +1 -1
  95. package/lib/components/ModelCompareV3/data/products/professional48.js +1 -1
  96. package/lib/components/ModelCompareV3/data/products/professional48.js.map +1 -1
  97. package/lib/components/ModelCompareV3/data/products/professional48.mjs +1 -1
  98. package/lib/components/ModelCompareV3/data/products/professional48.mjs.map +1 -1
  99. package/lib/components/ModelCompareV3/data/products/professional48PoE.js +1 -1
  100. package/lib/components/ModelCompareV3/data/products/professional48PoE.js.map +1 -1
  101. package/lib/components/ModelCompareV3/data/products/professional48PoE.mjs +1 -1
  102. package/lib/components/ModelCompareV3/data/products/professional48PoE.mjs.map +1 -1
  103. package/lib/components/ModelCompareV3/data/products/professional8PoE.js +1 -1
  104. package/lib/components/ModelCompareV3/data/products/professional8PoE.js.map +1 -1
  105. package/lib/components/ModelCompareV3/data/products/professional8PoE.mjs +1 -1
  106. package/lib/components/ModelCompareV3/data/products/professional8PoE.mjs.map +1 -1
  107. package/lib/components/ModelCompareV3/data/products/standard16PoE.js +1 -1
  108. package/lib/components/ModelCompareV3/data/products/standard16PoE.js.map +1 -1
  109. package/lib/components/ModelCompareV3/data/products/standard16PoE.mjs +1 -1
  110. package/lib/components/ModelCompareV3/data/products/standard16PoE.mjs.map +1 -1
  111. package/lib/components/ModelCompareV3/data/products/standard24.js +1 -1
  112. package/lib/components/ModelCompareV3/data/products/standard24.js.map +1 -1
  113. package/lib/components/ModelCompareV3/data/products/standard24.mjs +1 -1
  114. package/lib/components/ModelCompareV3/data/products/standard24.mjs.map +1 -1
  115. package/lib/components/ModelCompareV3/data/products/standard24PoE.js +1 -1
  116. package/lib/components/ModelCompareV3/data/products/standard24PoE.js.map +1 -1
  117. package/lib/components/ModelCompareV3/data/products/standard24PoE.mjs +1 -1
  118. package/lib/components/ModelCompareV3/data/products/standard24PoE.mjs.map +1 -1
  119. package/lib/components/ModelCompareV3/data/products/standard48.js +1 -1
  120. package/lib/components/ModelCompareV3/data/products/standard48.js.map +1 -1
  121. package/lib/components/ModelCompareV3/data/products/standard48.mjs +1 -1
  122. package/lib/components/ModelCompareV3/data/products/standard48.mjs.map +1 -1
  123. package/lib/components/ModelCompareV3/data/products/standard48PoE.js +1 -1
  124. package/lib/components/ModelCompareV3/data/products/standard48PoE.js.map +1 -1
  125. package/lib/components/ModelCompareV3/data/products/standard48PoE.mjs +1 -1
  126. package/lib/components/ModelCompareV3/data/products/standard48PoE.mjs.map +1 -1
  127. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +1 -1
  128. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
  129. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +1 -1
  130. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
  131. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +1 -1
  132. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
  133. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +1 -1
  134. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
  135. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -1
  136. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
  137. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -1
  138. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
  139. package/lib/components/ModelCompareV3/data/products/switchesStandard.js +1 -1
  140. package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
  141. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +1 -1
  142. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
  143. package/lib/components/ModelCompareV3/data/products/udb.js +7 -2
  144. package/lib/components/ModelCompareV3/data/products/udb.js.map +1 -1
  145. package/lib/components/ModelCompareV3/data/products/udb.mjs +7 -2
  146. package/lib/components/ModelCompareV3/data/products/udb.mjs.map +1 -1
  147. package/lib/components/ModelCompareV3/data/products/udbPro.js +5 -1
  148. package/lib/components/ModelCompareV3/data/products/udbPro.js.map +1 -1
  149. package/lib/components/ModelCompareV3/data/products/udbPro.mjs +5 -1
  150. package/lib/components/ModelCompareV3/data/products/udbPro.mjs.map +1 -1
  151. package/lib/components/ModelCompareV3/translations/ar.json.js +1 -0
  152. package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
  153. package/lib/components/ModelCompareV3/translations/ar.json.mjs +1 -0
  154. package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
  155. package/lib/components/ModelCompareV3/translations/de.json.js +1 -0
  156. package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
  157. package/lib/components/ModelCompareV3/translations/de.json.mjs +1 -0
  158. package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
  159. package/lib/components/ModelCompareV3/translations/el.json.js +1 -0
  160. package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
  161. package/lib/components/ModelCompareV3/translations/el.json.mjs +1 -0
  162. package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
  163. package/lib/components/ModelCompareV3/translations/en.json.js +33 -16
  164. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  165. package/lib/components/ModelCompareV3/translations/en.json.mjs +33 -16
  166. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  167. package/lib/components/ModelCompareV3/translations/es.json.js +1 -0
  168. package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
  169. package/lib/components/ModelCompareV3/translations/es.json.mjs +1 -0
  170. package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
  171. package/lib/components/ModelCompareV3/translations/fr.json.js +1 -0
  172. package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
  173. package/lib/components/ModelCompareV3/translations/fr.json.mjs +1 -0
  174. package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
  175. package/lib/components/ModelCompareV3/translations/it.json.js +1 -0
  176. package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
  177. package/lib/components/ModelCompareV3/translations/it.json.mjs +1 -0
  178. package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
  179. package/lib/components/ModelCompareV3/translations/ja.json.js +1 -0
  180. package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
  181. package/lib/components/ModelCompareV3/translations/ja.json.mjs +1 -0
  182. package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
  183. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +1 -0
  184. package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
  185. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +1 -0
  186. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
  187. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  188. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +1 -0
  189. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
  190. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +1 -0
  191. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
  192. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +1 -0
  193. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
  194. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +1 -0
  195. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
  196. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  197. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  198. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  199. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  200. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  201. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  202. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  203. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  204. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  205. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  206. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  207. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  208. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  209. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  210. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  211. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  212. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  213. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  214. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  215. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  216. package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
  217. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  218. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  219. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  220. package/lib/constants/icons/generic/index.js +3 -3
  221. package/lib/constants/icons/generic/index.mjs +1 -1
  222. package/lib/constants/icons/generic/plus.svg.js +5 -5
  223. package/lib/constants/icons/generic/plus.svg.mjs +2 -2
  224. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -1
  225. package/lib/constants/proStoreCategories/mapping/index.js +46 -35
  226. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  227. package/lib/constants/proStoreCategories/mapping/index.mjs +46 -35
  228. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  229. package/lib/constants/proStoreCategories/mapping/redirects.js +1 -9
  230. package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
  231. package/lib/constants/proStoreCategories/mapping/redirects.mjs +1 -9
  232. package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
  233. package/lib/constants/proStoreCategories/mapping/uisp.d.ts +0 -1
  234. package/lib/constants/proStoreCategories/mapping/uisp.js +0 -1
  235. package/lib/constants/proStoreCategories/mapping/uisp.js.map +1 -1
  236. package/lib/constants/proStoreCategories/mapping/uisp.mjs +0 -1
  237. package/lib/constants/proStoreCategories/mapping/uisp.mjs.map +1 -1
  238. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +3 -1
  239. package/lib/constants/proStoreCategories/mapping/unifi.js +3 -1
  240. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  241. package/lib/constants/proStoreCategories/mapping/unifi.mjs +3 -1
  242. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  243. package/lib/constants/proStoreCategories/translations/ar.json.js +0 -4
  244. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  245. package/lib/constants/proStoreCategories/translations/ar.json.mjs +1 -4
  246. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  247. package/lib/constants/proStoreCategories/translations/de.json.js +0 -4
  248. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  249. package/lib/constants/proStoreCategories/translations/de.json.mjs +1 -4
  250. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  251. package/lib/constants/proStoreCategories/translations/el.json.js +0 -4
  252. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  253. package/lib/constants/proStoreCategories/translations/el.json.mjs +1 -4
  254. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  255. package/lib/constants/proStoreCategories/translations/en.json.js +0 -1
  256. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  257. package/lib/constants/proStoreCategories/translations/en.json.mjs +0 -1
  258. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  259. package/lib/constants/proStoreCategories/translations/es.json.js +0 -4
  260. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  261. package/lib/constants/proStoreCategories/translations/es.json.mjs +1 -4
  262. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  263. package/lib/constants/proStoreCategories/translations/fr.json.js +0 -1
  264. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  265. package/lib/constants/proStoreCategories/translations/fr.json.mjs +0 -1
  266. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  267. package/lib/constants/proStoreCategories/translations/it.json.js +0 -4
  268. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  269. package/lib/constants/proStoreCategories/translations/it.json.mjs +1 -4
  270. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  271. package/lib/constants/proStoreCategories/translations/ja.json.js +0 -4
  272. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  273. package/lib/constants/proStoreCategories/translations/ja.json.mjs +1 -4
  274. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  275. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +0 -4
  276. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  277. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +1 -4
  278. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  279. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +0 -1
  280. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  281. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +0 -1
  282. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  283. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +0 -1
  284. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  285. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +0 -1
  286. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  287. package/lib/constants/proStoreFilters/mapping.d.ts +1 -18
  288. package/lib/constants/proStoreFilters/mapping.js +0 -17
  289. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  290. package/lib/constants/proStoreFilters/mapping.mjs +0 -17
  291. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  292. package/lib/helpers/index.d.ts +0 -1
  293. package/lib/helpers/index.js +0 -11
  294. package/lib/helpers/index.js.map +1 -1
  295. package/lib/helpers/index.mjs +0 -1
  296. package/lib/helpers/index.mjs.map +1 -1
  297. package/lib/types/index.d.ts +0 -1
  298. package/lib/types/index.js +0 -2
  299. package/lib/types/index.js.map +1 -1
  300. package/lib/types/index.mjs +0 -1
  301. package/lib/types/index.mjs.map +1 -1
  302. package/lib/utils/address.d.ts +62 -278
  303. package/lib/utils/address.js +8 -11
  304. package/lib/utils/address.js.map +1 -1
  305. package/lib/utils/address.mjs +8 -11
  306. package/lib/utils/address.mjs.map +1 -1
  307. package/lib/utils/array.d.ts +0 -4
  308. package/lib/utils/array.js +0 -10
  309. package/lib/utils/array.js.map +1 -1
  310. package/lib/utils/array.mjs +1 -10
  311. package/lib/utils/array.mjs.map +1 -1
  312. package/lib/utils/money/constants.d.ts +0 -7
  313. package/lib/utils/money/constants.js +1 -9
  314. package/lib/utils/money/constants.js.map +1 -1
  315. package/lib/utils/money/constants.mjs +2 -10
  316. package/lib/utils/money/constants.mjs.map +1 -1
  317. package/lib/utils/money/tax.private.d.ts +8 -0
  318. package/lib/utils/money/tax.private.js +14 -5
  319. package/lib/utils/money/tax.private.js.map +1 -1
  320. package/lib/utils/money/tax.private.mjs +16 -8
  321. package/lib/utils/money/tax.private.mjs.map +1 -1
  322. package/package.json +1 -1
  323. package/lib/assets/enterpriseCampus24.jpg +0 -0
  324. package/lib/assets/enterpriseCampus48.jpg +0 -0
  325. package/lib/assets/enterpriseCampusAggregation.jpg +0 -0
  326. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.js +0 -27
  327. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.js.map +0 -1
  328. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.mjs +0 -3
  329. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.mjs.map +0 -1
  330. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.js +0 -27
  331. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.js.map +0 -1
  332. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.mjs +0 -3
  333. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.mjs.map +0 -1
  334. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.js +0 -27
  335. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.js.map +0 -1
  336. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs +0 -3
  337. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs.map +0 -1
  338. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.d.ts +0 -2
  339. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +0 -91
  340. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +0 -1
  341. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +0 -83
  342. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +0 -1
  343. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.d.ts +0 -2
  344. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.js +0 -91
  345. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.js.map +0 -1
  346. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.mjs +0 -83
  347. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.mjs.map +0 -1
  348. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.d.ts +0 -2
  349. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +0 -91
  350. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +0 -1
  351. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +0 -83
  352. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +0 -1
  353. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.d.ts +0 -2
  354. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.js +0 -91
  355. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.js.map +0 -1
  356. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.mjs +0 -83
  357. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.mjs.map +0 -1
  358. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.d.ts +0 -2
  359. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +0 -91
  360. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +0 -1
  361. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +0 -83
  362. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +0 -1
  363. package/lib/helpers/product.d.ts +0 -87
  364. package/lib/helpers/product.js +0 -346
  365. package/lib/helpers/product.js.map +0 -1
  366. package/lib/helpers/product.mjs +0 -335
  367. package/lib/helpers/product.mjs.map +0 -1
  368. package/lib/helpers/product.test.d.ts +0 -1
  369. package/lib/types/product.d.ts +0 -87
  370. package/lib/types/product.js +0 -14
  371. package/lib/types/product.js.map +0 -1
  372. package/lib/types/product.mjs +0 -13
  373. package/lib/types/product.mjs.map +0 -1
  374. package/lib/utils/productSort.d.ts +0 -41
  375. package/lib/utils/productSort.js +0 -67
  376. package/lib/utils/productSort.js.map +0 -1
  377. package/lib/utils/productSort.mjs +0 -60
  378. package/lib/utils/productSort.mjs.map +0 -1
  379. package/lib/utils/validations/lastNameSuperRefinement.d.ts +0 -11
  380. package/lib/utils/validations/lastNameSuperRefinement.js +0 -25
  381. package/lib/utils/validations/lastNameSuperRefinement.js.map +0 -1
  382. package/lib/utils/validations/lastNameSuperRefinement.mjs +0 -21
  383. package/lib/utils/validations/lastNameSuperRefinement.mjs.map +0 -1
@@ -1 +1 @@
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, dinero, subtract } from \"dinero.js\";\n\nimport { FixedAmountAllocator } from \"./allocators/fixedAmount\";\nimport { Round } from \"./constants\";\nimport { amount, getDinero, getDineroCurrency } from \"./misc\";\nimport type {\n Cents,\n LineItemSummary,\n SingleLineItemSummary,\n TaxRate,\n} from \"./types\";\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 * Historically we calculate the tax by using dinero allocation, but we did not have control over how we round things.\n * So instead as we are already working with currency in cents we can multiply and round it ourselves.\n */\n return dinero({\n amount: Round.Financial(itemSummary.taxableAmount * taxRate),\n currency: getDineroCurrency(itemSummary.currency),\n });\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":["allocatePerItemTaxableAmount","itemSummary","quantity","preDiscountAmount","add","getDinero","taxableAmount","currency","discountAmount","allocator","FixedAmountAllocator","initialAllocateAmount","initialTotalAmount","amount","Array","from","length","discountAllocatedAmount","allocate","itemPrice","subtract","calculateWholeQtyLineItemTax","taxRate","dinero","Round","Financial","getDineroCurrency","calculatePerQtyLineItemTax","singleItemSummaries","totalTaxAmount","forEach","taxAmount"],"mappings":";;;;;;;AAqBa,MAAAA,4BAAA,GACXC,WAC4B,IAAA;EAIxB,IAAAA,WAAA,CAAYC,aAAa,CAAG,EAAA;IAC9B,OAAO,CAACD,WAAoC,CAAA;EAC9C;EAGA,MA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K,gBAAgBgB,OAAO,CAAA;IAC3Df,QAAA,EAAUmB,IAAAA,CAAAA,iBAAkB,CAAAzB,WAAA,CAAYM,QAAQ;EAAA,CACjD,CAAA;AACH,CAAA;AAEa,MAAAoB,0BAAA,GAA6BA,CACxC1B,WAAA,EACAqB,OACkB,KAAA;EAElB,IAAIA,YAAY,CAAG,EAAA;IACV,OAAAjB,cAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAC1C;EAGM,MAAAqB,mBAAA,GAAsB5B,6BAA6BC,WAAW,CAAA;EAGpE,IAAI4B,cAAiB,GAAAxB,IAAA,CAAAA,SAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAElCqB,mBAAA,CAAAE,OAAA,CAAS7B,YAAgB,IAAA;IAGrC,MAAA8B,SAAA,GAAYV,4BAA6BpB,CAAAA,YAAAA,EAAaqB,OAAO,CAAA;IAClDO,cAAA,GAAAzB,SAAA,CAAAA,GAAA,CAAIyB,gBAAgBE,SAAS,CAAA;EAAA,CAC/C,CAAA;EAEM,OAAAF,cAAA;AACT,CAAA;;;"}
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":";;;;;;;AAwBa,MAAAA,yBAAA,GACXC,OACqB,IAAA;EACjB,IAAAA,OAAA,IAAW,CAAK,IAAAA,OAAA,IAAW,CAAG,EAAA;IAC1B,MAAA,IAAIC,WAAW,iDAAiD,CAAA;EACxE;EAGM,MAAAC,SAAA,GAAYC,OAAOH,OAAO,CAAA,CAAEI,MAAM,GAAG,CAAA,CAAE,CAAC,CAAG,EAAAC,MAAA;EAC1CC,MAAAA,CAAAA,MAAA,CAAAJ,SAAA,KAAc,QAAW,wBAAwB,CAAA;EAGlD,MAA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AM,QAAA;MACtBL,QAAU,EAAA;IAAA,CACZ;EAAA,CACD,CAAA;AACH,CAAA;AAEa,MAAAkB,4BAAA,GAA+BA,CAC1CnB,WAAA,EACAZ,OACkB,KAAA;EAElB,IAAIA,YAAY,CAAG,EAAA;IACV,OAAAgB,cAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAC1C;EAMM,MAAA,CAACc,SAAS,CAAI,GAAAJ,SAAA,CAAAA,QAAA,CAClBZ,IAAAA,CAAAA,SAAU,CAAAJ,WAAA,CAAYK,aAAe,EAAAL,WAAA,CAAYM,QAAQ,CAAA,EACzDnB,0BAA0BC,OAAO,CAAA,CACnC;EAEOM,MAAAA,CAAAA,MAAA,CAAA0B,SAAA,KAAc,QAAW,wBAAwB,CAAA;EACjD,OAAAA,SAAA;AACT,CAAA;AAEa,MAAAC,0BAAA,GAA6BA,CACxCrB,WAAA,EACAZ,OACkB,KAAA;EAElB,IAAIA,YAAY,CAAG,EAAA;IACV,OAAAgB,cAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAC1C;EAGM,MAAAgB,mBAAA,GAAsBvB,6BAA6BC,WAAW,CAAA;EAGpE,IAAIuB,cAAiB,GAAAnB,IAAA,CAAAA,SAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAElCgB,mBAAA,CAAAE,OAAA,CAASxB,YAAgB,IAAA;IAGrC,MAAAoB,SAAA,GAAYD,4BAA6BnB,CAAAA,YAAAA,EAAaZ,OAAO,CAAA;IAClDmC,cAAA,GAAApB,SAAA,CAAAA,GAAA,CAAIoB,gBAAgBH,SAAS,CAAA;EAAA,CAC/C,CAAA;EAEM,OAAAG,cAAA;AACT,CAAA;;;;"}
@@ -1,8 +1,17 @@
1
- import { add, subtract, dinero } from 'dinero.js';
1
+ import { add, subtract, allocate } from 'dinero.js';
2
+ import { assert } from '../errors.mjs';
2
3
  import { FixedAmountAllocator } from './allocators/fixedAmount.mjs';
3
- import { Round } from './constants.mjs';
4
- import { getDinero, amount, getDineroCurrency } from './misc.mjs';
4
+ import { getDinero, amount } from './misc.mjs';
5
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
+ };
6
15
  const allocatePerItemTaxableAmount = itemSummary => {
7
16
  if (itemSummary.quantity === 1) {
8
17
  return [itemSummary];
@@ -31,10 +40,9 @@ const calculateWholeQtyLineItemTax = (itemSummary, taxRate) => {
31
40
  if (taxRate === 0) {
32
41
  return getDinero(0, itemSummary.currency);
33
42
  }
34
- return dinero({
35
- amount: Round.Financial(itemSummary.taxableAmount * taxRate),
36
- currency: getDineroCurrency(itemSummary.currency)
37
- });
43
+ const [taxAmount] = allocate(getDinero(itemSummary.taxableAmount, itemSummary.currency), taxRateToDineroAllocation(taxRate));
44
+ assert(taxAmount !== void 0, "taxAmount is undefined");
45
+ return taxAmount;
38
46
  };
39
47
  const calculatePerQtyLineItemTax = (itemSummary, taxRate) => {
40
48
  if (taxRate === 0) {
@@ -48,5 +56,5 @@ const calculatePerQtyLineItemTax = (itemSummary, taxRate) => {
48
56
  });
49
57
  return totalTaxAmount;
50
58
  };
51
- export { allocatePerItemTaxableAmount, calculatePerQtyLineItemTax, calculateWholeQtyLineItemTax };
59
+ export { allocatePerItemTaxableAmount, calculatePerQtyLineItemTax, calculateWholeQtyLineItemTax, taxRateToDineroAllocation };
52
60
  //# sourceMappingURL=tax.private.mjs.map
@@ -1 +1 @@
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, dinero, subtract } from \"dinero.js\";\n\nimport { FixedAmountAllocator } from \"./allocators/fixedAmount\";\nimport { Round } from \"./constants\";\nimport { amount, getDinero, getDineroCurrency } from \"./misc\";\nimport type {\n Cents,\n LineItemSummary,\n SingleLineItemSummary,\n TaxRate,\n} from \"./types\";\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 * Historically we calculate the tax by using dinero allocation, but we did not have control over how we round things.\n * So instead as we are already working with currency in cents we can multiply and round it ourselves.\n */\n return dinero({\n amount: Round.Financial(itemSummary.taxableAmount * taxRate),\n currency: getDineroCurrency(itemSummary.currency),\n });\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":["allocatePerItemTaxableAmount","itemSummary","quantity","preDiscountAmount","add","getDinero","taxableAmount","currency","discountAmount","allocator","FixedAmountAllocator","initialAllocateAmount","initialTotalAmount","amount","Array","from","length","discountAllocatedAmount","allocate","itemPrice","subtract","calculateWholeQtyLineItemTax","taxRate","dinero","Round","Financial","getDineroCurrency","calculatePerQtyLineItemTax","singleItemSummaries","totalTaxAmount","forEach","taxAmount"],"mappings":";;;;;AAqBa,MAAAA,4BAAA,GACXC,WAC4B,IAAA;EAIxB,IAAAA,WAAA,CAAYC,aAAa,CAAG,EAAA;IAC9B,OAAO,CAACD,WAAoC,CAAA;EAC9C;EAGA,MAAME,iBAAoB,GAAAC,GAAA,CACxBC,SAAU,CAAAJ,WAAA,CAAYK,aAAe,EAAAL,WAAA,CAAYM,QAAQ,CAAA,EACzDF,SAAU,CAAAJ,WAAA,CAAYO,cAAgB,EAAAP,WAAA,CAAYM,QAAQ,CAAA,CAC5D;EAEM,MAAAE,SAAA,GAAY,IAAIC,oBAAqB,CAAA;IACzCC,uBAAuBV,WAAY,CAAAO,cAAA;IACnCI,k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AAAxB,SAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAElCqB,mBAAA,CAAAE,OAAA,CAAS7B,YAAgB,IAAA;IAGrC,MAAA8B,SAAA,GAAYV,4BAA6BpB,CAAAA,YAAAA,EAAaqB,OAAO,CAAA;IAClDO,cAAA,GAAAzB,GAAA,CAAIyB,gBAAgBE,SAAS,CAAA;EAAA,CAC/C,CAAA;EAEM,OAAAF,cAAA;AACT,CAAA;"}
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":";;;;;AAwBa,MAAAA,yBAAA,GACXC,OACqB,IAAA;EACjB,IAAAA,OAAA,IAAW,CAAK,IAAAA,OAAA,IAAW,CAAG,EAAA;IAC1B,MAAA,IAAIC,WAAW,iDAAiD,CAAA;EACxE;EAGM,MAAAC,SAAA,GAAYC,OAAOH,OAAO,CAAA,CAAEI,MAAM,GAAG,CAAA,CAAE,CAAC,CAAG,EAAAC,MAAA;EAC1CC,MAAA,CAAAJ,SAAA,KAAc,QAAW,wBAAwB,CAAA;EAGlD,MAAAK,OAAA,GAAUC,KAAKC,KAAM,CAAAT,OAAA,GAAUQ,KAAKE,GAAI,CAAA,EAAA,EAAIR,SAAS,CAAC,CAAA;EAC5D,OAAO,CAACK,OAAS,EAAAC,IAAA,CAAKE,IAAI,EAAI,EAAAR,SAAS,IAAIK,OAAO,CAAA;AACpD,CAAA;AAMa,MAAAI,4BAAA,GACXC,WAC4B,IAAA;EAIxB,IAAAA,WAAA,CAAYC,aAAa,CAAG,EAAA;IAC9B,OAAO,CAACD,WAAoC,CAAA;EAC9C;EAGA,MAAME,iBAAoB,GAAAC,GAAA,CACxBC,SAAU,CAAAJ,WAAA,CAAYK,aAAe,EAAAL,WAAA,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AAC,0BAAA,GAA6BA,CACxCrB,WAAA,EACAZ,OACkB,KAAA;EAElB,IAAIA,YAAY,CAAG,EAAA;IACV,OAAAgB,SAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAC1C;EAGM,MAAAgB,mBAAA,GAAsBvB,6BAA6BC,WAAW,CAAA;EAGpE,IAAIuB,cAAiB,GAAAnB,SAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAElCgB,mBAAA,CAAAE,OAAA,CAASxB,YAAgB,IAAA;IAGrC,MAAAoB,SAAA,GAAYD,4BAA6BnB,CAAAA,YAAAA,EAAaZ,OAAO,CAAA;IAClDmC,cAAA,GAAApB,GAAA,CAAIoB,gBAAgBH,SAAS,CAAA;EAAA,CAC/C,CAAA;EAEM,OAAAG,cAAA;AACT,CAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubnt/store.core",
3
- "version": "9.30.0-beta.9",
3
+ "version": "9.30.0-techspecs.0",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "scripts": {
Binary file
Binary file
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', {
4
- value: true
5
- });
6
- var image = require("../../../../assets/enterpriseCampus24.jpg");
7
- function _interopDefault(e) {
8
- return e && e.__esModule ? e : {
9
- default: e
10
- };
11
- }
12
- var image__default = /*#__PURE__*/_interopDefault(image);
13
- Object.defineProperty(exports, "default", {
14
- enumerable: true,
15
- get: function () {
16
- return image__default["default"];
17
- }
18
- });
19
- Object.keys(image).forEach(function (k) {
20
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
- enumerable: true,
22
- get: function () {
23
- return image[k];
24
- }
25
- });
26
- });
27
- //# sourceMappingURL=enterpriseCampus24.jpg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enterpriseCampus24.jpg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +0,0 @@
1
- export * from "../../../../assets/enterpriseCampus24.jpg";
2
- export { default } from "../../../../assets/enterpriseCampus24.jpg";
3
- //# sourceMappingURL=enterpriseCampus24.jpg.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enterpriseCampus24.jpg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', {
4
- value: true
5
- });
6
- var image = require("../../../../assets/enterpriseCampus48.jpg");
7
- function _interopDefault(e) {
8
- return e && e.__esModule ? e : {
9
- default: e
10
- };
11
- }
12
- var image__default = /*#__PURE__*/_interopDefault(image);
13
- Object.defineProperty(exports, "default", {
14
- enumerable: true,
15
- get: function () {
16
- return image__default["default"];
17
- }
18
- });
19
- Object.keys(image).forEach(function (k) {
20
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
- enumerable: true,
22
- get: function () {
23
- return image[k];
24
- }
25
- });
26
- });
27
- //# sourceMappingURL=enterpriseCampus48.jpg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enterpriseCampus48.jpg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +0,0 @@
1
- export * from "../../../../assets/enterpriseCampus48.jpg";
2
- export { default } from "../../../../assets/enterpriseCampus48.jpg";
3
- //# sourceMappingURL=enterpriseCampus48.jpg.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enterpriseCampus48.jpg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', {
4
- value: true
5
- });
6
- var image = require("../../../../assets/enterpriseCampusAggregation.jpg");
7
- function _interopDefault(e) {
8
- return e && e.__esModule ? e : {
9
- default: e
10
- };
11
- }
12
- var image__default = /*#__PURE__*/_interopDefault(image);
13
- Object.defineProperty(exports, "default", {
14
- enumerable: true,
15
- get: function () {
16
- return image__default["default"];
17
- }
18
- });
19
- Object.keys(image).forEach(function (k) {
20
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
- enumerable: true,
22
- get: function () {
23
- return image[k];
24
- }
25
- });
26
- });
27
- //# sourceMappingURL=enterpriseCampusAggregation.jpg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enterpriseCampusAggregation.jpg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +0,0 @@
1
- export * from "../../../../assets/enterpriseCampusAggregation.jpg";
2
- export { default } from "../../../../assets/enterpriseCampusAggregation.jpg";
3
- //# sourceMappingURL=enterpriseCampusAggregation.jpg.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enterpriseCampusAggregation.jpg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,2 +0,0 @@
1
- import type { Product } from "../../ModelCompareV3.types";
2
- export declare const enterpriseAggregation: Product;
@@ -1,91 +0,0 @@
1
- 'use strict';
2
-
3
- require('../../../../constants/proStoreCategories/index.js');
4
- var unifi = require('../../../../constants/proStoreCategories/mapping/unifi.js');
5
- var mapping = require('../../../../contexts/MenuContext/mapping.js');
6
- require('../../assets/Switching/enterpriseCampusAggregation.jpg.js');
7
- require('../properties/index.js');
8
- var image = require("../../../../assets/enterpriseCampusAggregation.jpg");
9
- var portCount = require('../properties/portCount.js');
10
- var downlinkSpeed = require('../properties/downlinkSpeed.js');
11
- var uplinkSpeed = require('../properties/uplinkSpeed.js');
12
- var poeOutput = require('../properties/poeOutput.js');
13
- var poeAvailability = require('../properties/poeAvailability.js');
14
- var etherlighting = require('../properties/etherlighting.js');
15
- var proAvSupport = require('../properties/proAvSupport.js');
16
- var powerRedundancy = require('../properties/powerRedundancy.js');
17
- function _interopDefault(e) {
18
- return e && e.__esModule ? e : {
19
- default: e
20
- };
21
- }
22
- var image__default = /*#__PURE__*/_interopDefault(image);
23
- "use strict";
24
- const enterpriseAggregation = {
25
- id: "enterpriseAggregation",
26
- title: "enterpriseAggregation.title",
27
- techspecsPath: [mapping.SiteId.TechSpecs, `/unifi/${unifi.UniFiCategoryId.Switching}/ecs-aggregation`],
28
- storePathParts: {
29
- productSlug: "ecs-aggregation",
30
- category: unifi.UniFiChildCategorySlug.SwitchingAggregation
31
- },
32
- sku: "ECS-Aggregation",
33
- description: "enterpriseAggregation.description",
34
- image: {
35
- src: image__default["default"],
36
- width: 230,
37
- height: 120
38
- },
39
- isNew: true,
40
- propertyValues: [{
41
- propertyId: portCount.portCount.id,
42
- value: {
43
- type: "string",
44
- value: "48"
45
- }
46
- }, {
47
- propertyId: downlinkSpeed.downlinkSpeed.id,
48
- value: {
49
- type: "string",
50
- value: "25 Gbps"
51
- }
52
- }, {
53
- propertyId: uplinkSpeed.uplinkSpeed.id,
54
- value: {
55
- type: "string",
56
- value: "100 Gbps"
57
- }
58
- }, {
59
- propertyId: poeOutput.poeOutput.id,
60
- value: {
61
- type: "boolean",
62
- value: false
63
- }
64
- }, {
65
- propertyId: poeAvailability.poeAvailability.id,
66
- value: {
67
- type: "boolean",
68
- value: false
69
- }
70
- }, {
71
- propertyId: etherlighting.etherlighting.id,
72
- value: {
73
- type: "boolean",
74
- value: true
75
- }
76
- }, {
77
- propertyId: proAvSupport.proAvSupport.id,
78
- value: {
79
- type: "boolean",
80
- value: true
81
- }
82
- }, {
83
- propertyId: powerRedundancy.powerRedundancy.id,
84
- value: {
85
- type: "translation",
86
- value: "commons.powerRedundancy.dualHotSwappablePsus"
87
- }
88
- }]
89
- };
90
- exports.enterpriseAggregation = enterpriseAggregation;
91
- //# sourceMappingURL=enterpriseAggregation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enterpriseAggregation.js","sources":["../../../../../src/components/ModelCompareV3/data/products/enterpriseAggregation.tsx"],"sourcesContent":["import { UniFiCategoryId } from \"../../../../constants/proStoreCategories\";\nimport { UniFiChildCategorySlug } from \"../../../../constants/proStoreCategories/mapping/unifi\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport image from \"../../assets/Switching/enterpriseCampusAggregation.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport {\n downlinkSpeed,\n etherlighting,\n poeAvailability,\n poeOutput,\n portCount,\n powerRedundancy,\n proAvSupport,\n uplinkSpeed,\n} from \"../properties\";\n\nexport const enterpriseAggregation: Product = {\n id: \"enterpriseAggregation\",\n title: \"enterpriseAggregation.title\",\n techspecsPath: [\n SiteId.TechSpecs,\n `/unifi/${UniFiCategoryId.Switching}/ecs-aggregation`,\n ],\n storePathParts: {\n productSlug: \"ecs-aggregation\",\n category: UniFiChildCategorySlug.SwitchingAggregation,\n },\n sku: \"ECS-Aggregation\",\n description: \"enterpriseAggregation.description\",\n image: {\n src: image,\n width: 230,\n height: 120,\n },\n isNew: true,\n propertyValues: [\n {\n propertyId: portCount.id,\n value: { type: \"string\", value: \"48\" },\n },\n {\n propertyId: downlinkSpeed.id,\n value: { type: \"string\", value: \"25 Gbps\" },\n },\n {\n propertyId: uplinkSpeed.id,\n value: { type: \"string\", value: \"100 Gbps\" },\n },\n {\n propertyId: poeOutput.id,\n value: { type: \"boolean\", value: false },\n },\n {\n propertyId: poeAvailability.id,\n value: { type: \"boolean\", value: false },\n },\n {\n propertyId: etherlighting.id,\n value: { type: \"boolean\", value: true },\n },\n {\n propertyId: proAvSupport.id,\n value: { type: \"boolean\", value: true },\n },\n {\n propertyId: powerRedundancy.id,\n value: {\n type: \"translation\",\n value: \"commons.powerRedundancy.dualHotSwappablePsus\",\n },\n },\n ],\n};\n"],"names":["enterpriseAggregation","id","title","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","Switching","storePathParts","productSlug","category","UniFiChildCategorySlug","SwitchingAggregation","sku","description","image","src","width","height","isNew","propertyValues","propertyId","portCount","value","type","downlinkSpeed","uplinkSpeed","poeOutput","poeAvailability","etherlighting","proAvSupport","powerRedundancy"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgBO,MAAMA,qBAAiC,GAAA;EAC5CC,EAAI,EAAA,uBAAA;EACJC,KAAO,EAAA,6BAAA;EACPC,aAAe,EAAA,CACbC,OAAAA,CAAAA,MAAO,CAAAC,SAAA,EACP,UAAUC,KAAAA,CAAAA,gBAAgBC,SAAS,kBAAA,CACrC;EACAC,cAAgB,EAAA;IACdC,WAAa,EAAA,iBAAA;IACbC,UAAUC,KAAuB,CAAAA,sBAAA,CAAAC;EACnC,CAAA;EACAC,GAAK,EAAA,iBAAA;EACLC,WAAa,EAAA,mCAAA;EACbC,KAAO,EAAA;IACLC,GAAK,EAAAD,cAAA,CAAA,SAAA,CAAA;IACLE,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,KAAO,EAAA,IAAA;EACPC,cAAgB,EAAA,CACd;IACEC,YAAYC,SAAU,CAAAA,SAAA,CAAArB,EAAA;IACtBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,aAAc,CAAAA,aAAA,CAAAxB,EAAA;IAC1BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAU;EAC5C,CAAA,EACA;IACEF,YAAYK,WAAY,CAAAA,WAAA,CAAAzB,EAAA;IACxBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAW;EAC7C,CAAA,EACA;IACEF,YAAYM,SAAU,CAAAA,SAAA,CAAA1B,EAAA;IACtBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYO,eAAgB,CAAAA,eAAA,CAAA3B,EAAA;IAC5BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYQ,aAAc,CAAAA,aAAA,CAAA5B,EAAA;IAC1BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC,CAAA,EACA;IACEF,YAAYS,YAAa,CAAAA,YAAA,CAAA7B,EAAA;IACzBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC,CAAA,EACA;IACEF,YAAYU,eAAgB,CAAAA,eAAA,CAAA9B,EAAA;IAC5BsB,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA;AAEJ,CAAA;"}
@@ -1,83 +0,0 @@
1
- import '../../../../constants/proStoreCategories/index.mjs';
2
- import { UniFiCategoryId, UniFiChildCategorySlug } from '../../../../constants/proStoreCategories/mapping/unifi.mjs';
3
- import { SiteId } from '../../../../contexts/MenuContext/mapping.mjs';
4
- import '../../assets/Switching/enterpriseCampusAggregation.jpg.mjs';
5
- import '../properties/index.mjs';
6
- import image__default from "../../../../assets/enterpriseCampusAggregation.jpg";
7
- import { portCount } from '../properties/portCount.mjs';
8
- import { downlinkSpeed } from '../properties/downlinkSpeed.mjs';
9
- import { uplinkSpeed } from '../properties/uplinkSpeed.mjs';
10
- import { poeOutput } from '../properties/poeOutput.mjs';
11
- import { poeAvailability } from '../properties/poeAvailability.mjs';
12
- import { etherlighting } from '../properties/etherlighting.mjs';
13
- import { proAvSupport } from '../properties/proAvSupport.mjs';
14
- import { powerRedundancy } from '../properties/powerRedundancy.mjs';
15
- "use strict";
16
- const enterpriseAggregation = {
17
- id: "enterpriseAggregation",
18
- title: "enterpriseAggregation.title",
19
- techspecsPath: [SiteId.TechSpecs, `/unifi/${UniFiCategoryId.Switching}/ecs-aggregation`],
20
- storePathParts: {
21
- productSlug: "ecs-aggregation",
22
- category: UniFiChildCategorySlug.SwitchingAggregation
23
- },
24
- sku: "ECS-Aggregation",
25
- description: "enterpriseAggregation.description",
26
- image: {
27
- src: image__default,
28
- width: 230,
29
- height: 120
30
- },
31
- isNew: true,
32
- propertyValues: [{
33
- propertyId: portCount.id,
34
- value: {
35
- type: "string",
36
- value: "48"
37
- }
38
- }, {
39
- propertyId: downlinkSpeed.id,
40
- value: {
41
- type: "string",
42
- value: "25 Gbps"
43
- }
44
- }, {
45
- propertyId: uplinkSpeed.id,
46
- value: {
47
- type: "string",
48
- value: "100 Gbps"
49
- }
50
- }, {
51
- propertyId: poeOutput.id,
52
- value: {
53
- type: "boolean",
54
- value: false
55
- }
56
- }, {
57
- propertyId: poeAvailability.id,
58
- value: {
59
- type: "boolean",
60
- value: false
61
- }
62
- }, {
63
- propertyId: etherlighting.id,
64
- value: {
65
- type: "boolean",
66
- value: true
67
- }
68
- }, {
69
- propertyId: proAvSupport.id,
70
- value: {
71
- type: "boolean",
72
- value: true
73
- }
74
- }, {
75
- propertyId: powerRedundancy.id,
76
- value: {
77
- type: "translation",
78
- value: "commons.powerRedundancy.dualHotSwappablePsus"
79
- }
80
- }]
81
- };
82
- export { enterpriseAggregation };
83
- //# sourceMappingURL=enterpriseAggregation.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enterpriseAggregation.mjs","sources":["../../../../../src/components/ModelCompareV3/data/products/enterpriseAggregation.tsx"],"sourcesContent":["import { UniFiCategoryId } from \"../../../../constants/proStoreCategories\";\nimport { UniFiChildCategorySlug } from \"../../../../constants/proStoreCategories/mapping/unifi\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport image from \"../../assets/Switching/enterpriseCampusAggregation.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport {\n downlinkSpeed,\n etherlighting,\n poeAvailability,\n poeOutput,\n portCount,\n powerRedundancy,\n proAvSupport,\n uplinkSpeed,\n} from \"../properties\";\n\nexport const enterpriseAggregation: Product = {\n id: \"enterpriseAggregation\",\n title: \"enterpriseAggregation.title\",\n techspecsPath: [\n SiteId.TechSpecs,\n `/unifi/${UniFiCategoryId.Switching}/ecs-aggregation`,\n ],\n storePathParts: {\n productSlug: \"ecs-aggregation\",\n category: UniFiChildCategorySlug.SwitchingAggregation,\n },\n sku: \"ECS-Aggregation\",\n description: \"enterpriseAggregation.description\",\n image: {\n src: image,\n width: 230,\n height: 120,\n },\n isNew: true,\n propertyValues: [\n {\n propertyId: portCount.id,\n value: { type: \"string\", value: \"48\" },\n },\n {\n propertyId: downlinkSpeed.id,\n value: { type: \"string\", value: \"25 Gbps\" },\n },\n {\n propertyId: uplinkSpeed.id,\n value: { type: \"string\", value: \"100 Gbps\" },\n },\n {\n propertyId: poeOutput.id,\n value: { type: \"boolean\", value: false },\n },\n {\n propertyId: poeAvailability.id,\n value: { type: \"boolean\", value: false },\n },\n {\n propertyId: etherlighting.id,\n value: { type: \"boolean\", value: true },\n },\n {\n propertyId: proAvSupport.id,\n value: { type: \"boolean\", value: true },\n },\n {\n propertyId: powerRedundancy.id,\n value: {\n type: \"translation\",\n value: \"commons.powerRedundancy.dualHotSwappablePsus\",\n },\n },\n ],\n};\n"],"names":["enterpriseAggregation","id","title","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","Switching","storePathParts","productSlug","category","UniFiChildCategorySlug","SwitchingAggregation","sku","description","image","src","width","height","isNew","propertyValues","propertyId","portCount","value","type","downlinkSpeed","uplinkSpeed","poeOutput","poeAvailability","etherlighting","proAvSupport","powerRedundancy"],"mappings":";;;;;;;;;;;;;;;AAgBO,MAAMA,qBAAiC,GAAA;EAC5CC,EAAI,EAAA,uBAAA;EACJC,KAAO,EAAA,6BAAA;EACPC,aAAe,EAAA,CACbC,MAAO,CAAAC,SAAA,EACP,UAAUC,gBAAgBC,SAAS,kBAAA,CACrC;EACAC,cAAgB,EAAA;IACdC,WAAa,EAAA,iBAAA;IACbC,UAAUC,sBAAuB,CAAAC;EACnC,CAAA;EACAC,GAAK,EAAA,iBAAA;EACLC,WAAa,EAAA,mCAAA;EACbC,KAAO,EAAA;IACLC,GAAK,EAAAD,cAAA;IACLE,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,KAAO,EAAA,IAAA;EACPC,cAAgB,EAAA,CACd;IACEC,YAAYC,SAAU,CAAArB,EAAA;IACtBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,aAAc,CAAAxB,EAAA;IAC1BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAU;EAC5C,CAAA,EACA;IACEF,YAAYK,WAAY,CAAAzB,EAAA;IACxBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAW;EAC7C,CAAA,EACA;IACEF,YAAYM,SAAU,CAAA1B,EAAA;IACtBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYO,eAAgB,CAAA3B,EAAA;IAC5BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYQ,aAAc,CAAA5B,EAAA;IAC1BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC,CAAA,EACA;IACEF,YAAYS,YAAa,CAAA7B,EAAA;IACzBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC,CAAA,EACA;IACEF,YAAYU,eAAgB,CAAA9B,EAAA;IAC5BsB,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA;AAEJ,CAAA;"}
@@ -1,2 +0,0 @@
1
- import type { Product } from "../../ModelCompareV3.types";
2
- export declare const enterpriseCampus24: Product;
@@ -1,91 +0,0 @@
1
- 'use strict';
2
-
3
- require('../../../../constants/proStoreCategories/index.js');
4
- var unifi = require('../../../../constants/proStoreCategories/mapping/unifi.js');
5
- var mapping = require('../../../../contexts/MenuContext/mapping.js');
6
- require('../../assets/Switching/enterpriseCampus24.jpg.js');
7
- require('../properties/index.js');
8
- var image = require("../../../../assets/enterpriseCampus24.jpg");
9
- var portCount = require('../properties/portCount.js');
10
- var downlinkSpeed = require('../properties/downlinkSpeed.js');
11
- var uplinkSpeed = require('../properties/uplinkSpeed.js');
12
- var poeOutput = require('../properties/poeOutput.js');
13
- var poeAvailability = require('../properties/poeAvailability.js');
14
- var etherlighting = require('../properties/etherlighting.js');
15
- var proAvSupport = require('../properties/proAvSupport.js');
16
- var powerRedundancy = require('../properties/powerRedundancy.js');
17
- function _interopDefault(e) {
18
- return e && e.__esModule ? e : {
19
- default: e
20
- };
21
- }
22
- var image__default = /*#__PURE__*/_interopDefault(image);
23
- "use strict";
24
- const enterpriseCampus24 = {
25
- id: "enterpriseCampus24",
26
- title: "enterpriseCampus24.title",
27
- techspecsPath: [mapping.SiteId.TechSpecs, `/unifi/${unifi.UniFiCategoryId.Switching}/ecs-24`],
28
- storePathParts: {
29
- productSlug: "ecs-24",
30
- category: unifi.UniFiChildCategorySlug.SwitchingEnterprise
31
- },
32
- sku: "ECS-24",
33
- description: "enterpriseCampus24.description",
34
- image: {
35
- src: image__default["default"],
36
- width: 230,
37
- height: 120
38
- },
39
- isNew: true,
40
- propertyValues: [{
41
- propertyId: portCount.portCount.id,
42
- value: {
43
- type: "string",
44
- value: "24"
45
- }
46
- }, {
47
- propertyId: downlinkSpeed.downlinkSpeed.id,
48
- value: {
49
- type: "translation",
50
- value: "enterpriseCampus24.downlinkSpeed"
51
- }
52
- }, {
53
- propertyId: uplinkSpeed.uplinkSpeed.id,
54
- value: {
55
- type: "string",
56
- value: "25 Gbps"
57
- }
58
- }, {
59
- propertyId: poeOutput.poeOutput.id,
60
- value: {
61
- type: "boolean",
62
- value: false
63
- }
64
- }, {
65
- propertyId: poeAvailability.poeAvailability.id,
66
- value: {
67
- type: "boolean",
68
- value: false
69
- }
70
- }, {
71
- propertyId: etherlighting.etherlighting.id,
72
- value: {
73
- type: "boolean",
74
- value: true
75
- }
76
- }, {
77
- propertyId: proAvSupport.proAvSupport.id,
78
- value: {
79
- type: "boolean",
80
- value: true
81
- }
82
- }, {
83
- propertyId: powerRedundancy.powerRedundancy.id,
84
- value: {
85
- type: "translation",
86
- value: "commons.powerRedundancy.dualHotSwappablePsus"
87
- }
88
- }]
89
- };
90
- exports.enterpriseCampus24 = enterpriseCampus24;
91
- //# sourceMappingURL=enterpriseCampus24.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enterpriseCampus24.js","sources":["../../../../../src/components/ModelCompareV3/data/products/enterpriseCampus24.tsx"],"sourcesContent":["import { UniFiCategoryId } from \"../../../../constants/proStoreCategories\";\nimport { UniFiChildCategorySlug } from \"../../../../constants/proStoreCategories/mapping/unifi\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport image from \"../../assets/Switching/enterpriseCampus24.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport {\n downlinkSpeed,\n etherlighting,\n poeAvailability,\n poeOutput,\n portCount,\n powerRedundancy,\n proAvSupport,\n uplinkSpeed,\n} from \"../properties\";\n\nexport const enterpriseCampus24: Product = {\n id: \"enterpriseCampus24\",\n title: \"enterpriseCampus24.title\",\n techspecsPath: [\n SiteId.TechSpecs,\n `/unifi/${UniFiCategoryId.Switching}/ecs-24`,\n ],\n storePathParts: {\n productSlug: \"ecs-24\",\n category: UniFiChildCategorySlug.SwitchingEnterprise,\n },\n sku: \"ECS-24\",\n description: \"enterpriseCampus24.description\",\n image: {\n src: image,\n width: 230,\n height: 120,\n },\n isNew: true,\n propertyValues: [\n {\n propertyId: portCount.id,\n value: { type: \"string\", value: \"24\" },\n },\n {\n propertyId: downlinkSpeed.id,\n value: { type: \"translation\", value: \"enterpriseCampus24.downlinkSpeed\" },\n },\n {\n propertyId: uplinkSpeed.id,\n value: { type: \"string\", value: \"25 Gbps\" },\n },\n {\n propertyId: poeOutput.id,\n value: { type: \"boolean\", value: false },\n },\n {\n propertyId: poeAvailability.id,\n value: { type: \"boolean\", value: false },\n },\n {\n propertyId: etherlighting.id,\n value: { type: \"boolean\", value: true },\n },\n {\n propertyId: proAvSupport.id,\n value: { type: \"boolean\", value: true },\n },\n {\n propertyId: powerRedundancy.id,\n value: {\n type: \"translation\",\n value: \"commons.powerRedundancy.dualHotSwappablePsus\",\n },\n },\n ],\n};\n"],"names":["enterpriseCampus24","id","title","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","Switching","storePathParts","productSlug","category","UniFiChildCategorySlug","SwitchingEnterprise","sku","description","image","src","width","height","isNew","propertyValues","propertyId","portCount","value","type","downlinkSpeed","uplinkSpeed","poeOutput","poeAvailability","etherlighting","proAvSupport","powerRedundancy"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgBO,MAAMA,kBAA8B,GAAA;EACzCC,EAAI,EAAA,oBAAA;EACJC,KAAO,EAAA,0BAAA;EACPC,aAAe,EAAA,CACbC,OAAAA,CAAAA,MAAO,CAAAC,SAAA,EACP,UAAUC,KAAAA,CAAAA,gBAAgBC,SAAS,SAAA,CACrC;EACAC,cAAgB,EAAA;IACdC,WAAa,EAAA,QAAA;IACbC,UAAUC,KAAuB,CAAAA,sBAAA,CAAAC;EACnC,CAAA;EACAC,GAAK,EAAA,QAAA;EACLC,WAAa,EAAA,gCAAA;EACbC,KAAO,EAAA;IACLC,GAAK,EAAAD,cAAA,CAAA,SAAA,CAAA;IACLE,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,KAAO,EAAA,IAAA;EACPC,cAAgB,EAAA,CACd;IACEC,YAAYC,SAAU,CAAAA,SAAA,CAAArB,EAAA;IACtBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,aAAc,CAAAA,aAAA,CAAAxB,EAA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