@ubnt/store.core 9.30.0-beta.8 → 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 (346) hide show
  1. package/CHANGELOG.md +1 -150
  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/close2.svg +2 -3
  7. package/lib/assets/close3.svg +3 -2
  8. package/lib/assets/minus4.svg +8 -8
  9. package/lib/assets/minus5.svg +8 -8
  10. package/lib/assets/plus5.svg +9 -9
  11. package/lib/assets/plus6.svg +9 -9
  12. package/lib/components/BackInStock/BackInStock.types.d.ts +0 -1
  13. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
  14. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +4 -16
  15. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
  16. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +5 -17
  17. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
  18. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +1 -5
  19. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +17 -82
  20. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
  21. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +17 -82
  22. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
  23. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +0 -4
  24. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  25. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  26. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  27. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  28. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +2 -7
  29. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +3 -16
  30. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  31. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +3 -16
  32. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  33. package/lib/components/ModelCompareV3/data/products/aggregation.js +1 -1
  34. package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
  35. package/lib/components/ModelCompareV3/data/products/aggregation.mjs +1 -1
  36. package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
  37. package/lib/components/ModelCompareV3/data/products/enterprise24PoE.js +1 -1
  38. package/lib/components/ModelCompareV3/data/products/enterprise24PoE.js.map +1 -1
  39. package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs +1 -1
  40. package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs.map +1 -1
  41. package/lib/components/ModelCompareV3/data/products/enterprise48PoE.js +1 -1
  42. package/lib/components/ModelCompareV3/data/products/enterprise48PoE.js.map +1 -1
  43. package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs +1 -1
  44. package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs.map +1 -1
  45. package/lib/components/ModelCompareV3/data/products/enterprise8PoE.js +1 -1
  46. package/lib/components/ModelCompareV3/data/products/enterprise8PoE.js.map +1 -1
  47. package/lib/components/ModelCompareV3/data/products/enterprise8PoE.mjs +1 -1
  48. package/lib/components/ModelCompareV3/data/products/enterprise8PoE.mjs.map +1 -1
  49. package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.js +1 -1
  50. package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.js.map +1 -1
  51. package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.mjs +1 -1
  52. package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.mjs.map +1 -1
  53. package/lib/components/ModelCompareV3/data/products/enterpriseXG24.js +1 -1
  54. package/lib/components/ModelCompareV3/data/products/enterpriseXG24.js.map +1 -1
  55. package/lib/components/ModelCompareV3/data/products/enterpriseXG24.mjs +1 -1
  56. package/lib/components/ModelCompareV3/data/products/enterpriseXG24.mjs.map +1 -1
  57. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +1 -1
  58. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
  59. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +1 -1
  60. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
  61. package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
  62. package/lib/components/ModelCompareV3/data/products/industrial.js.map +1 -1
  63. package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
  64. package/lib/components/ModelCompareV3/data/products/industrial.mjs.map +1 -1
  65. package/lib/components/ModelCompareV3/data/products/lite16PoE.js +1 -1
  66. package/lib/components/ModelCompareV3/data/products/lite16PoE.js.map +1 -1
  67. package/lib/components/ModelCompareV3/data/products/lite16PoE.mjs +1 -1
  68. package/lib/components/ModelCompareV3/data/products/lite16PoE.mjs.map +1 -1
  69. package/lib/components/ModelCompareV3/data/products/lite8PoE.js +1 -1
  70. package/lib/components/ModelCompareV3/data/products/lite8PoE.js.map +1 -1
  71. package/lib/components/ModelCompareV3/data/products/lite8PoE.mjs +1 -1
  72. package/lib/components/ModelCompareV3/data/products/lite8PoE.mjs.map +1 -1
  73. package/lib/components/ModelCompareV3/data/products/missionCritical.js +1 -1
  74. package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
  75. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +1 -1
  76. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
  77. package/lib/components/ModelCompareV3/data/products/professional24.js +1 -1
  78. package/lib/components/ModelCompareV3/data/products/professional24.js.map +1 -1
  79. package/lib/components/ModelCompareV3/data/products/professional24.mjs +1 -1
  80. package/lib/components/ModelCompareV3/data/products/professional24.mjs.map +1 -1
  81. package/lib/components/ModelCompareV3/data/products/professional24PoE.js +1 -1
  82. package/lib/components/ModelCompareV3/data/products/professional24PoE.js.map +1 -1
  83. package/lib/components/ModelCompareV3/data/products/professional24PoE.mjs +1 -1
  84. package/lib/components/ModelCompareV3/data/products/professional24PoE.mjs.map +1 -1
  85. package/lib/components/ModelCompareV3/data/products/professional48.js +1 -1
  86. package/lib/components/ModelCompareV3/data/products/professional48.js.map +1 -1
  87. package/lib/components/ModelCompareV3/data/products/professional48.mjs +1 -1
  88. package/lib/components/ModelCompareV3/data/products/professional48.mjs.map +1 -1
  89. package/lib/components/ModelCompareV3/data/products/professional48PoE.js +1 -1
  90. package/lib/components/ModelCompareV3/data/products/professional48PoE.js.map +1 -1
  91. package/lib/components/ModelCompareV3/data/products/professional48PoE.mjs +1 -1
  92. package/lib/components/ModelCompareV3/data/products/professional48PoE.mjs.map +1 -1
  93. package/lib/components/ModelCompareV3/data/products/professional8PoE.js +1 -1
  94. package/lib/components/ModelCompareV3/data/products/professional8PoE.js.map +1 -1
  95. package/lib/components/ModelCompareV3/data/products/professional8PoE.mjs +1 -1
  96. package/lib/components/ModelCompareV3/data/products/professional8PoE.mjs.map +1 -1
  97. package/lib/components/ModelCompareV3/data/products/standard16PoE.js +1 -1
  98. package/lib/components/ModelCompareV3/data/products/standard16PoE.js.map +1 -1
  99. package/lib/components/ModelCompareV3/data/products/standard16PoE.mjs +1 -1
  100. package/lib/components/ModelCompareV3/data/products/standard16PoE.mjs.map +1 -1
  101. package/lib/components/ModelCompareV3/data/products/standard24.js +1 -1
  102. package/lib/components/ModelCompareV3/data/products/standard24.js.map +1 -1
  103. package/lib/components/ModelCompareV3/data/products/standard24.mjs +1 -1
  104. package/lib/components/ModelCompareV3/data/products/standard24.mjs.map +1 -1
  105. package/lib/components/ModelCompareV3/data/products/standard24PoE.js +1 -1
  106. package/lib/components/ModelCompareV3/data/products/standard24PoE.js.map +1 -1
  107. package/lib/components/ModelCompareV3/data/products/standard24PoE.mjs +1 -1
  108. package/lib/components/ModelCompareV3/data/products/standard24PoE.mjs.map +1 -1
  109. package/lib/components/ModelCompareV3/data/products/standard48.js +1 -1
  110. package/lib/components/ModelCompareV3/data/products/standard48.js.map +1 -1
  111. package/lib/components/ModelCompareV3/data/products/standard48.mjs +1 -1
  112. package/lib/components/ModelCompareV3/data/products/standard48.mjs.map +1 -1
  113. package/lib/components/ModelCompareV3/data/products/standard48PoE.js +1 -1
  114. package/lib/components/ModelCompareV3/data/products/standard48PoE.js.map +1 -1
  115. package/lib/components/ModelCompareV3/data/products/standard48PoE.mjs +1 -1
  116. package/lib/components/ModelCompareV3/data/products/standard48PoE.mjs.map +1 -1
  117. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +1 -1
  118. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
  119. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +1 -1
  120. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
  121. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +1 -1
  122. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
  123. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +1 -1
  124. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
  125. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -1
  126. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
  127. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -1
  128. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
  129. package/lib/components/ModelCompareV3/data/products/switchesStandard.js +1 -1
  130. package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
  131. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +1 -1
  132. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
  133. package/lib/components/ModelCompareV3/data/products/udb.js +7 -2
  134. package/lib/components/ModelCompareV3/data/products/udb.js.map +1 -1
  135. package/lib/components/ModelCompareV3/data/products/udb.mjs +7 -2
  136. package/lib/components/ModelCompareV3/data/products/udb.mjs.map +1 -1
  137. package/lib/components/ModelCompareV3/data/products/udbPro.js +5 -1
  138. package/lib/components/ModelCompareV3/data/products/udbPro.js.map +1 -1
  139. package/lib/components/ModelCompareV3/data/products/udbPro.mjs +5 -1
  140. package/lib/components/ModelCompareV3/data/products/udbPro.mjs.map +1 -1
  141. package/lib/components/ModelCompareV3/translations/ar.json.js +1 -0
  142. package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
  143. package/lib/components/ModelCompareV3/translations/ar.json.mjs +1 -0
  144. package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
  145. package/lib/components/ModelCompareV3/translations/de.json.js +1 -0
  146. package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
  147. package/lib/components/ModelCompareV3/translations/de.json.mjs +1 -0
  148. package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
  149. package/lib/components/ModelCompareV3/translations/el.json.js +1 -0
  150. package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
  151. package/lib/components/ModelCompareV3/translations/el.json.mjs +1 -0
  152. package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
  153. package/lib/components/ModelCompareV3/translations/en.json.js +33 -10
  154. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  155. package/lib/components/ModelCompareV3/translations/en.json.mjs +33 -10
  156. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  157. package/lib/components/ModelCompareV3/translations/es.json.js +1 -0
  158. package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
  159. package/lib/components/ModelCompareV3/translations/es.json.mjs +1 -0
  160. package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
  161. package/lib/components/ModelCompareV3/translations/fr.json.js +1 -0
  162. package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
  163. package/lib/components/ModelCompareV3/translations/fr.json.mjs +1 -0
  164. package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
  165. package/lib/components/ModelCompareV3/translations/it.json.js +1 -0
  166. package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
  167. package/lib/components/ModelCompareV3/translations/it.json.mjs +1 -0
  168. package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
  169. package/lib/components/ModelCompareV3/translations/ja.json.js +1 -0
  170. package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
  171. package/lib/components/ModelCompareV3/translations/ja.json.mjs +1 -0
  172. package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
  173. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +1 -0
  174. package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
  175. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +1 -0
  176. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
  177. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  178. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +1 -0
  179. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
  180. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +1 -0
  181. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
  182. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +1 -0
  183. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
  184. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +1 -0
  185. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
  186. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  187. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  188. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  189. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  190. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  191. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  192. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  193. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  194. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  195. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  196. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  197. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  198. package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
  199. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  200. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  201. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  202. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -1
  203. package/lib/constants/proStoreCategories/mapping/index.js +46 -35
  204. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  205. package/lib/constants/proStoreCategories/mapping/index.mjs +46 -35
  206. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  207. package/lib/constants/proStoreCategories/mapping/redirects.js +1 -9
  208. package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
  209. package/lib/constants/proStoreCategories/mapping/redirects.mjs +1 -9
  210. package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
  211. package/lib/constants/proStoreCategories/mapping/uisp.d.ts +0 -1
  212. package/lib/constants/proStoreCategories/mapping/uisp.js +0 -1
  213. package/lib/constants/proStoreCategories/mapping/uisp.js.map +1 -1
  214. package/lib/constants/proStoreCategories/mapping/uisp.mjs +0 -1
  215. package/lib/constants/proStoreCategories/mapping/uisp.mjs.map +1 -1
  216. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +3 -1
  217. package/lib/constants/proStoreCategories/mapping/unifi.js +3 -1
  218. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  219. package/lib/constants/proStoreCategories/mapping/unifi.mjs +3 -1
  220. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  221. package/lib/constants/proStoreCategories/translations/ar.json.js +0 -4
  222. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  223. package/lib/constants/proStoreCategories/translations/ar.json.mjs +1 -4
  224. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  225. package/lib/constants/proStoreCategories/translations/de.json.js +0 -4
  226. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  227. package/lib/constants/proStoreCategories/translations/de.json.mjs +1 -4
  228. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  229. package/lib/constants/proStoreCategories/translations/el.json.js +0 -4
  230. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  231. package/lib/constants/proStoreCategories/translations/el.json.mjs +1 -4
  232. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  233. package/lib/constants/proStoreCategories/translations/en.json.js +0 -1
  234. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  235. package/lib/constants/proStoreCategories/translations/en.json.mjs +0 -1
  236. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  237. package/lib/constants/proStoreCategories/translations/es.json.js +0 -4
  238. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  239. package/lib/constants/proStoreCategories/translations/es.json.mjs +1 -4
  240. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  241. package/lib/constants/proStoreCategories/translations/fr.json.js +0 -1
  242. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  243. package/lib/constants/proStoreCategories/translations/fr.json.mjs +0 -1
  244. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  245. package/lib/constants/proStoreCategories/translations/it.json.js +0 -4
  246. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  247. package/lib/constants/proStoreCategories/translations/it.json.mjs +1 -4
  248. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  249. package/lib/constants/proStoreCategories/translations/ja.json.js +0 -4
  250. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  251. package/lib/constants/proStoreCategories/translations/ja.json.mjs +1 -4
  252. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  253. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +0 -4
  254. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  255. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +1 -4
  256. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  257. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +0 -1
  258. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  259. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +0 -1
  260. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  261. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +0 -1
  262. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  263. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +0 -1
  264. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  265. package/lib/constants/proStoreFilters/mapping.d.ts +1 -18
  266. package/lib/constants/proStoreFilters/mapping.js +0 -17
  267. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  268. package/lib/constants/proStoreFilters/mapping.mjs +0 -17
  269. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  270. package/lib/helpers/index.d.ts +0 -1
  271. package/lib/helpers/index.js +0 -11
  272. package/lib/helpers/index.js.map +1 -1
  273. package/lib/helpers/index.mjs +0 -1
  274. package/lib/helpers/index.mjs.map +1 -1
  275. package/lib/types/index.d.ts +0 -1
  276. package/lib/types/index.js +0 -2
  277. package/lib/types/index.js.map +1 -1
  278. package/lib/types/index.mjs +0 -1
  279. package/lib/types/index.mjs.map +1 -1
  280. package/lib/utils/address.d.ts +62 -278
  281. package/lib/utils/address.js +8 -11
  282. package/lib/utils/address.js.map +1 -1
  283. package/lib/utils/address.mjs +8 -11
  284. package/lib/utils/address.mjs.map +1 -1
  285. package/lib/utils/array.d.ts +0 -4
  286. package/lib/utils/array.js +0 -10
  287. package/lib/utils/array.js.map +1 -1
  288. package/lib/utils/array.mjs +1 -10
  289. package/lib/utils/array.mjs.map +1 -1
  290. package/lib/utils/money/constants.d.ts +0 -7
  291. package/lib/utils/money/constants.js +1 -9
  292. package/lib/utils/money/constants.js.map +1 -1
  293. package/lib/utils/money/constants.mjs +2 -10
  294. package/lib/utils/money/constants.mjs.map +1 -1
  295. package/lib/utils/money/tax.private.d.ts +8 -0
  296. package/lib/utils/money/tax.private.js +14 -5
  297. package/lib/utils/money/tax.private.js.map +1 -1
  298. package/lib/utils/money/tax.private.mjs +16 -8
  299. package/lib/utils/money/tax.private.mjs.map +1 -1
  300. package/package.json +1 -1
  301. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.d.ts +0 -2
  302. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +0 -77
  303. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +0 -1
  304. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +0 -75
  305. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +0 -1
  306. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.d.ts +0 -2
  307. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.js +0 -77
  308. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.js.map +0 -1
  309. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.mjs +0 -75
  310. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.mjs.map +0 -1
  311. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.d.ts +0 -2
  312. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +0 -77
  313. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +0 -1
  314. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +0 -75
  315. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +0 -1
  316. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.d.ts +0 -2
  317. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.js +0 -77
  318. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.js.map +0 -1
  319. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.mjs +0 -75
  320. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.mjs.map +0 -1
  321. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.d.ts +0 -2
  322. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +0 -77
  323. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +0 -1
  324. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +0 -75
  325. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +0 -1
  326. package/lib/helpers/product.d.ts +0 -87
  327. package/lib/helpers/product.js +0 -346
  328. package/lib/helpers/product.js.map +0 -1
  329. package/lib/helpers/product.mjs +0 -335
  330. package/lib/helpers/product.mjs.map +0 -1
  331. package/lib/helpers/product.test.d.ts +0 -1
  332. package/lib/types/product.d.ts +0 -87
  333. package/lib/types/product.js +0 -14
  334. package/lib/types/product.js.map +0 -1
  335. package/lib/types/product.mjs +0 -13
  336. package/lib/types/product.mjs.map +0 -1
  337. package/lib/utils/productSort.d.ts +0 -41
  338. package/lib/utils/productSort.js +0 -67
  339. package/lib/utils/productSort.js.map +0 -1
  340. package/lib/utils/productSort.mjs +0 -60
  341. package/lib/utils/productSort.mjs.map +0 -1
  342. package/lib/utils/validations/lastNameSuperRefinement.d.ts +0 -11
  343. package/lib/utils/validations/lastNameSuperRefinement.js +0 -25
  344. package/lib/utils/validations/lastNameSuperRefinement.js.map +0 -1
  345. package/lib/utils/validations/lastNameSuperRefinement.mjs +0 -21
  346. 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,MAAME,iBAAoB,GAAAC,SAAA,CAAAA,GAAA,CACxBC,IAAAA,CAAAA,SAAU,CAAAJ,WAAA,CAAYK,aAAe,EAAAL,WAAA,CAAYM,QAAQ,CAAA,EACzDF,IAAAA,CAAAA,SAAU,CAAAJ,WAAA,CAAYO,cAAgB,EAAAP,WAAA,CAAYM,QAAQ,CAAA,CAC5D;EAEM,MAAAE,SAAA,GAAY,IAAIC,gCAAqB,CAAA;IACzCC,uBAAuBV,WAAY,CAAAO,cAAA;IACnCI,kBAAA,EAAoBC,YAAOV,iBAAiB,CAAA;IAC5CI,UAAUN,WAAY,CAAAM;EAAA,CACvB,CAAA;EAGD,OAAOO,MAAMC,IAAK,CAAA;IAAEC,QAAQf,WAAY,CAAAC;EAAA,GAAY,MAAM;IACxD,MAAMe,0BAA0BR,SAAU,CAAAS,QAAA,CACxCjB,WAAY,CAAAkB,SAAA,EACZlB,WAAY,CAAAM,QAAA,CACd;IAEA,MAAMD,aAAgB,GAAAc,SAAA,CAAAA,QAAA,CACpBf,IAAAA,CAAAA,SAAU,CAAAJ,WAAA,CAAYkB,SAAW,EAAAlB,WAAA,CAAYM,QAAQ,CAAA,EACrDU,uBAAA,CACF;IAEO,OAAA;MACLE,WAAWlB,WAAY,CAAAkB,SAAA;MACvBb,aAAA,EAAeO,YAAOP,aAAa,CAAA;MACnCE,cAAA,EAAgBK,YAAOI,uBAAuB,CAAA;MAC9CV,UAAUN,WAAY,CAAAM,QAAA;MACtBL,QAAU,EAAA;IAAA,CACZ;EAAA,CACD,CAAA;AACH,CAAA;AAEa,MAAAmB,4BAAA,GAA+BA,CAC1CpB,WAAA,EACAqB,OACkB,KAAA;EAElB,IAAIA,YAAY,CAAG,EAAA;IACV,OAAAjB,cAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAC1C;EAMA,OAAOgB,gBAAO,CAAA;IACZV,MAAQ,EAAAW,SAAAA,CAAAA,KAAA,CAAMC,SAAU,CAAAxB,WAAA,CAAYK,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":"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"}
@@ -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,kBAAA,EAAoBC,OAAOV,iBAAiB,CAAA;IAC5CI,UAAUN,WAAY,CAAAM;EAAA,CACvB,CAAA;EAGD,OAAOO,MAAMC,IAAK,CAAA;IAAEC,QAAQf,WAAY,CAAAC;EAAA,GAAY,MAAM;IACxD,MAAMe,0BAA0BR,SAAU,CAAAS,QAAA,CACxCjB,WAAY,CAAAkB,SAAA,EACZlB,WAAY,CAAAM,QAAA,CACd;IAEA,MAAMD,aAAgB,GAAAc,QAAA,CACpBf,SAAU,CAAAJ,WAAA,CAAYkB,SAAW,EAAAlB,WAAA,CAAYM,QAAQ,CAAA,EACrDU,uBAAA,CACF;IAEO,OAAA;MACLE,WAAWlB,WAAY,CAAAkB,SAAA;MACvBb,aAAA,EAAeO,OAAOP,aAAa,CAAA;MACnCE,cAAA,EAAgBK,OAAOI,uBAAuB,CAAA;MAC9CV,UAAUN,WAAY,CAAAM,QAAA;MACtBL,QAAU,EAAA;IAAA,CACZ;EAAA,CACD,CAAA;AACH,CAAA;AAEa,MAAAmB,4BAAA,GAA+BA,CAC1CpB,WAAA,EACAqB,OACkB,KAAA;EAElB,IAAIA,YAAY,CAAG,EAAA;IACV,OAAAjB,SAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAC1C;EAMA,OAAOgB,MAAO,CAAA;IACZV,MAAQ,EAAAW,KAAA,CAAMC,SAAU,CAAAxB,WAAA,CAAYK,gBAAgBgB,OAAO,CAAA;IAC3Df,QAAA,EAAUmB,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,SAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAC1C;EAGM,MAAAqB,mBAAA,GAAsB5B,6BAA6BC,WAAW,CAAA;EAGpE,IAAI4B,cAAiB,GAAAxB,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":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubnt/store.core",
3
- "version": "9.30.0-beta.8",
3
+ "version": "9.30.0-techspecs.0",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "scripts": {
@@ -1,2 +0,0 @@
1
- import type { Product } from "../../ModelCompareV3.types";
2
- export declare const enterpriseAggregation: Product;
@@ -1,77 +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('../properties/index.js');
7
- var portCount = require('../properties/portCount.js');
8
- var downlinkSpeed = require('../properties/downlinkSpeed.js');
9
- var uplinkSpeed = require('../properties/uplinkSpeed.js');
10
- var poeOutput = require('../properties/poeOutput.js');
11
- var poeAvailability = require('../properties/poeAvailability.js');
12
- var etherlighting = require('../properties/etherlighting.js');
13
- "use strict";
14
- const enterpriseAggregation = {
15
- id: "enterpriseAggregation",
16
- title: "enterpriseAggregation.title",
17
- techspecsPath: [mapping.SiteId.TechSpecs, `/unifi/${unifi.UniFiCategoryId.Switching}/ecs-aggregation`],
18
- storePathParts: {
19
- productSlug: "ecs-aggregation",
20
- category: unifi.UniFiChildCategorySlug.SwitchingAggregation
21
- },
22
- sku: "ECS-Aggregation",
23
- // description: "enterpriseAggregation.description",
24
- image: {
25
- src: "https://placehold.co/250x120",
26
- width: 250,
27
- height: 120
28
- },
29
- propertyValues: [{
30
- propertyId: portCount.portCount.id,
31
- value: {
32
- type: "string",
33
- value: "48"
34
- }
35
- }, {
36
- propertyId: downlinkSpeed.downlinkSpeed.id,
37
- value: {
38
- type: "string",
39
- value: "25 Gbps"
40
- }
41
- }, {
42
- propertyId: uplinkSpeed.uplinkSpeed.id,
43
- value: {
44
- type: "string",
45
- value: "100 Gbps"
46
- }
47
- }, {
48
- propertyId: poeOutput.poeOutput.id,
49
- value: {
50
- type: "boolean",
51
- value: false
52
- }
53
- }, {
54
- propertyId: poeAvailability.poeAvailability.id,
55
- value: {
56
- type: "boolean",
57
- value: false
58
- }
59
- }, {
60
- propertyId: etherlighting.etherlighting.id,
61
- value: {
62
- type: "boolean",
63
- value: true
64
- }
65
- }
66
- // {
67
- // propertyId: proAvSupport.id,
68
- // value: { type: "boolean", value: true },
69
- // }
70
- // {
71
- // propertyId: powerRedundancy.id,
72
- // value: { type: "translation", value: "" },
73
- // }
74
- ]
75
- };
76
- exports.enterpriseAggregation = enterpriseAggregation;
77
- //# 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 type { Product } from \"../../ModelCompareV3.types\";\nimport {\n downlinkSpeed,\n etherlighting,\n poeAvailability,\n poeOutput,\n portCount,\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: \"https://placehold.co/250x120\",\n width: 250,\n height: 120,\n },\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: { type: \"translation\", value: \"\" },\n // }\n ],\n};\n"],"names":["enterpriseAggregation","id","title","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","Switching","storePathParts","productSlug","category","UniFiChildCategorySlug","SwitchingAggregation","sku","image","src","width","height","propertyValues","propertyId","portCount","value","type","downlinkSpeed","uplinkSpeed","poeOutput","poeAvailability","etherlighting"],"mappings":";;;;;;;;;;;;;AAaO,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;EAAA;EAELC,KAAO,EAAA;IACLC,GAAK,EAAA,8BAAA;IACLC,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,cAAgB,EAAA,CACd;IACEC,YAAYC,SAAU,CAAAA,SAAA,CAAAnB,EAAA;IACtBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,aAAc,CAAAA,aAAA,CAAAtB,EAAA;IAC1BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAU;EAC5C,CAAA,EACA;IACEF,YAAYK,WAAY,CAAAA,WAAA,CAAAvB,EAAA;IACxBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAW;EAC7C,CAAA,EACA;IACEF,YAAYM,SAAU,CAAAA,SAAA,CAAAxB,EAAA;IACtBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYO,eAAgB,CAAAA,eAAA,CAAAzB,EAAA;IAC5BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYQ,aAAc,CAAAA,aAAA,CAAA1B,EAAA;IAC1BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAUJ,CAAA;"}
@@ -1,75 +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 '../properties/index.mjs';
5
- import { portCount } from '../properties/portCount.mjs';
6
- import { downlinkSpeed } from '../properties/downlinkSpeed.mjs';
7
- import { uplinkSpeed } from '../properties/uplinkSpeed.mjs';
8
- import { poeOutput } from '../properties/poeOutput.mjs';
9
- import { poeAvailability } from '../properties/poeAvailability.mjs';
10
- import { etherlighting } from '../properties/etherlighting.mjs';
11
- "use strict";
12
- const enterpriseAggregation = {
13
- id: "enterpriseAggregation",
14
- title: "enterpriseAggregation.title",
15
- techspecsPath: [SiteId.TechSpecs, `/unifi/${UniFiCategoryId.Switching}/ecs-aggregation`],
16
- storePathParts: {
17
- productSlug: "ecs-aggregation",
18
- category: UniFiChildCategorySlug.SwitchingAggregation
19
- },
20
- sku: "ECS-Aggregation",
21
- // description: "enterpriseAggregation.description",
22
- image: {
23
- src: "https://placehold.co/250x120",
24
- width: 250,
25
- height: 120
26
- },
27
- propertyValues: [{
28
- propertyId: portCount.id,
29
- value: {
30
- type: "string",
31
- value: "48"
32
- }
33
- }, {
34
- propertyId: downlinkSpeed.id,
35
- value: {
36
- type: "string",
37
- value: "25 Gbps"
38
- }
39
- }, {
40
- propertyId: uplinkSpeed.id,
41
- value: {
42
- type: "string",
43
- value: "100 Gbps"
44
- }
45
- }, {
46
- propertyId: poeOutput.id,
47
- value: {
48
- type: "boolean",
49
- value: false
50
- }
51
- }, {
52
- propertyId: poeAvailability.id,
53
- value: {
54
- type: "boolean",
55
- value: false
56
- }
57
- }, {
58
- propertyId: etherlighting.id,
59
- value: {
60
- type: "boolean",
61
- value: true
62
- }
63
- }
64
- // {
65
- // propertyId: proAvSupport.id,
66
- // value: { type: "boolean", value: true },
67
- // }
68
- // {
69
- // propertyId: powerRedundancy.id,
70
- // value: { type: "translation", value: "" },
71
- // }
72
- ]
73
- };
74
- export { enterpriseAggregation };
75
- //# 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 type { Product } from \"../../ModelCompareV3.types\";\nimport {\n downlinkSpeed,\n etherlighting,\n poeAvailability,\n poeOutput,\n portCount,\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: \"https://placehold.co/250x120\",\n width: 250,\n height: 120,\n },\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: { type: \"translation\", value: \"\" },\n // }\n ],\n};\n"],"names":["enterpriseAggregation","id","title","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","Switching","storePathParts","productSlug","category","UniFiChildCategorySlug","SwitchingAggregation","sku","image","src","width","height","propertyValues","propertyId","portCount","value","type","downlinkSpeed","uplinkSpeed","poeOutput","poeAvailability","etherlighting"],"mappings":";;;;;;;;;;;AAaO,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;EAAA;EAELC,KAAO,EAAA;IACLC,GAAK,EAAA,8BAAA;IACLC,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,cAAgB,EAAA,CACd;IACEC,YAAYC,SAAU,CAAAnB,EAAA;IACtBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,aAAc,CAAAtB,EAAA;IAC1BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAU;EAC5C,CAAA,EACA;IACEF,YAAYK,WAAY,CAAAvB,EAAA;IACxBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAW;EAC7C,CAAA,EACA;IACEF,YAAYM,SAAU,CAAAxB,EAAA;IACtBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYO,eAAgB,CAAAzB,EAAA;IAC5BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYQ,aAAc,CAAA1B,EAAA;IAC1BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAUJ,CAAA;"}
@@ -1,2 +0,0 @@
1
- import type { Product } from "../../ModelCompareV3.types";
2
- export declare const enterpriseCampus24: Product;
@@ -1,77 +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('../properties/index.js');
7
- var portCount = require('../properties/portCount.js');
8
- var downlinkSpeed = require('../properties/downlinkSpeed.js');
9
- var uplinkSpeed = require('../properties/uplinkSpeed.js');
10
- var poeOutput = require('../properties/poeOutput.js');
11
- var poeAvailability = require('../properties/poeAvailability.js');
12
- var etherlighting = require('../properties/etherlighting.js');
13
- "use strict";
14
- const enterpriseCampus24 = {
15
- id: "enterpriseCampus24",
16
- title: "enterpriseCampus24.title",
17
- techspecsPath: [mapping.SiteId.TechSpecs, `/unifi/${unifi.UniFiCategoryId.Switching}/ecs-24`],
18
- storePathParts: {
19
- productSlug: "ecs-24",
20
- category: unifi.UniFiChildCategorySlug.SwitchingEnterprise
21
- },
22
- sku: "ECS-24",
23
- // description: "enterpriseCampus24.description",
24
- image: {
25
- src: "https://placehold.co/250x120",
26
- width: 250,
27
- height: 120
28
- },
29
- propertyValues: [{
30
- propertyId: portCount.portCount.id,
31
- value: {
32
- type: "string",
33
- value: "24"
34
- }
35
- }, {
36
- propertyId: downlinkSpeed.downlinkSpeed.id,
37
- value: {
38
- type: "translation",
39
- value: "enterpriseCampus24.downlinkSpeed"
40
- }
41
- }, {
42
- propertyId: uplinkSpeed.uplinkSpeed.id,
43
- value: {
44
- type: "string",
45
- value: "25 Gbps"
46
- }
47
- }, {
48
- propertyId: poeOutput.poeOutput.id,
49
- value: {
50
- type: "boolean",
51
- value: false
52
- }
53
- }, {
54
- propertyId: poeAvailability.poeAvailability.id,
55
- value: {
56
- type: "boolean",
57
- value: false
58
- }
59
- }, {
60
- propertyId: etherlighting.etherlighting.id,
61
- value: {
62
- type: "boolean",
63
- value: true
64
- }
65
- }
66
- // {
67
- // propertyId: proAvSupport.id,
68
- // value: { type: "boolean", value: true },
69
- // }
70
- // {
71
- // propertyId: powerRedundancy.id,
72
- // value: { type: "translation", value: "" },
73
- // }
74
- ]
75
- };
76
- exports.enterpriseCampus24 = enterpriseCampus24;
77
- //# 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 type { Product } from \"../../ModelCompareV3.types\";\nimport {\n downlinkSpeed,\n etherlighting,\n poeAvailability,\n poeOutput,\n portCount,\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: \"https://placehold.co/250x120\",\n width: 250,\n height: 120,\n },\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: { type: \"translation\", value: \"\" },\n // }\n ],\n};\n"],"names":["enterpriseCampus24","id","title","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","Switching","storePathParts","productSlug","category","UniFiChildCategorySlug","SwitchingEnterprise","sku","image","src","width","height","propertyValues","propertyId","portCount","value","type","downlinkSpeed","uplinkSpeed","poeOutput","poeAvailability","etherlighting"],"mappings":";;;;;;;;;;;;;AAaO,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;EAAA;EAELC,KAAO,EAAA;IACLC,GAAK,EAAA,8BAAA;IACLC,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,cAAgB,EAAA,CACd;IACEC,YAAYC,SAAU,CAAAA,SAAA,CAAAnB,EAAA;IACtBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,aAAc,CAAAA,aAAA,CAAAtB,EAAA;IAC1BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,aAAA;MAAeD,OAAO;IAAmC;EAC1E,CAAA,EACA;IACEF,YAAYK,WAAY,CAAAA,WAAA,CAAAvB,EAAA;IACxBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAU;EAC5C,CAAA,EACA;IACEF,YAAYM,SAAU,CAAAA,SAAA,CAAAxB,EAAA;IACtBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYO,eAAgB,CAAAA,eAAA,CAAAzB,EAAA;IAC5BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYQ,aAAc,CAAAA,aAAA,CAAA1B,EAAA;IAC1BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAUJ,CAAA;"}
@@ -1,75 +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 '../properties/index.mjs';
5
- import { portCount } from '../properties/portCount.mjs';
6
- import { downlinkSpeed } from '../properties/downlinkSpeed.mjs';
7
- import { uplinkSpeed } from '../properties/uplinkSpeed.mjs';
8
- import { poeOutput } from '../properties/poeOutput.mjs';
9
- import { poeAvailability } from '../properties/poeAvailability.mjs';
10
- import { etherlighting } from '../properties/etherlighting.mjs';
11
- "use strict";
12
- const enterpriseCampus24 = {
13
- id: "enterpriseCampus24",
14
- title: "enterpriseCampus24.title",
15
- techspecsPath: [SiteId.TechSpecs, `/unifi/${UniFiCategoryId.Switching}/ecs-24`],
16
- storePathParts: {
17
- productSlug: "ecs-24",
18
- category: UniFiChildCategorySlug.SwitchingEnterprise
19
- },
20
- sku: "ECS-24",
21
- // description: "enterpriseCampus24.description",
22
- image: {
23
- src: "https://placehold.co/250x120",
24
- width: 250,
25
- height: 120
26
- },
27
- propertyValues: [{
28
- propertyId: portCount.id,
29
- value: {
30
- type: "string",
31
- value: "24"
32
- }
33
- }, {
34
- propertyId: downlinkSpeed.id,
35
- value: {
36
- type: "translation",
37
- value: "enterpriseCampus24.downlinkSpeed"
38
- }
39
- }, {
40
- propertyId: uplinkSpeed.id,
41
- value: {
42
- type: "string",
43
- value: "25 Gbps"
44
- }
45
- }, {
46
- propertyId: poeOutput.id,
47
- value: {
48
- type: "boolean",
49
- value: false
50
- }
51
- }, {
52
- propertyId: poeAvailability.id,
53
- value: {
54
- type: "boolean",
55
- value: false
56
- }
57
- }, {
58
- propertyId: etherlighting.id,
59
- value: {
60
- type: "boolean",
61
- value: true
62
- }
63
- }
64
- // {
65
- // propertyId: proAvSupport.id,
66
- // value: { type: "boolean", value: true },
67
- // }
68
- // {
69
- // propertyId: powerRedundancy.id,
70
- // value: { type: "translation", value: "" },
71
- // }
72
- ]
73
- };
74
- export { enterpriseCampus24 };
75
- //# sourceMappingURL=enterpriseCampus24.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enterpriseCampus24.mjs","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 type { Product } from \"../../ModelCompareV3.types\";\nimport {\n downlinkSpeed,\n etherlighting,\n poeAvailability,\n poeOutput,\n portCount,\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: \"https://placehold.co/250x120\",\n width: 250,\n height: 120,\n },\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: { type: \"translation\", value: \"\" },\n // }\n ],\n};\n"],"names":["enterpriseCampus24","id","title","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","Switching","storePathParts","productSlug","category","UniFiChildCategorySlug","SwitchingEnterprise","sku","image","src","width","height","propertyValues","propertyId","portCount","value","type","downlinkSpeed","uplinkSpeed","poeOutput","poeAvailability","etherlighting"],"mappings":";;;;;;;;;;;AAaO,MAAMA,kBAA8B,GAAA;EACzCC,EAAI,EAAA,oBAAA;EACJC,KAAO,EAAA,0BAAA;EACPC,aAAe,EAAA,CACbC,MAAO,CAAAC,SAAA,EACP,UAAUC,gBAAgBC,SAAS,SAAA,CACrC;EACAC,cAAgB,EAAA;IACdC,WAAa,EAAA,QAAA;IACbC,UAAUC,sBAAuB,CAAAC;EACnC,CAAA;EACAC,GAAK,EAAA,QAAA;EAAA;EAELC,KAAO,EAAA;IACLC,GAAK,EAAA,8BAAA;IACLC,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,cAAgB,EAAA,CACd;IACEC,YAAYC,SAAU,CAAAnB,EAAA;IACtBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,aAAc,CAAAtB,EAAA;IAC1BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,aAAA;MAAeD,OAAO;IAAmC;EAC1E,CAAA,EACA;IACEF,YAAYK,WAAY,CAAAvB,EAAA;IACxBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAU;EAC5C,CAAA,EACA;IACEF,YAAYM,SAAU,CAAAxB,EAAA;IACtBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYO,eAAgB,CAAAzB,EAAA;IAC5BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYQ,aAAc,CAAA1B,EAAA;IAC1BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAUJ,CAAA;"}
@@ -1,2 +0,0 @@
1
- import type { Product } from "../../ModelCompareV3.types";
2
- export declare const enterpriseCampus24PoE: Product;
@@ -1,77 +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('../properties/index.js');
7
- var portCount = require('../properties/portCount.js');
8
- var downlinkSpeed = require('../properties/downlinkSpeed.js');
9
- var uplinkSpeed = require('../properties/uplinkSpeed.js');
10
- var poeOutput = require('../properties/poeOutput.js');
11
- var poeAvailability = require('../properties/poeAvailability.js');
12
- var etherlighting = require('../properties/etherlighting.js');
13
- "use strict";
14
- const enterpriseCampus24PoE = {
15
- id: "enterpriseCampus24PoE",
16
- title: "enterpriseCampus24PoE.title",
17
- techspecsPath: [mapping.SiteId.TechSpecs, `/unifi/${unifi.UniFiCategoryId.Switching}/ecs-24-poe`],
18
- storePathParts: {
19
- productSlug: "ecs-24-poe",
20
- category: unifi.UniFiChildCategorySlug.SwitchingEnterprise
21
- },
22
- sku: "ECS-24",
23
- // description: "enterpriseCampus24PoE.description",
24
- image: {
25
- src: "https://placehold.co/250x120",
26
- width: 250,
27
- height: 120
28
- },
29
- propertyValues: [{
30
- propertyId: portCount.portCount.id,
31
- value: {
32
- type: "string",
33
- value: "24"
34
- }
35
- }, {
36
- propertyId: downlinkSpeed.downlinkSpeed.id,
37
- value: {
38
- type: "translation",
39
- value: "enterpriseCampus24PoE.downlinkSpeed"
40
- }
41
- }, {
42
- propertyId: uplinkSpeed.uplinkSpeed.id,
43
- value: {
44
- type: "string",
45
- value: "25 Gbps"
46
- }
47
- }, {
48
- propertyId: poeOutput.poeOutput.id,
49
- value: {
50
- type: "string",
51
- value: "PoE+++"
52
- }
53
- }, {
54
- propertyId: poeAvailability.poeAvailability.id,
55
- value: {
56
- type: "string",
57
- value: "1050 W"
58
- }
59
- }, {
60
- propertyId: etherlighting.etherlighting.id,
61
- value: {
62
- type: "boolean",
63
- value: true
64
- }
65
- }
66
- // {
67
- // propertyId: proAvSupport.id,
68
- // value: { type: "boolean", value: true },
69
- // }
70
- // {
71
- // propertyId: powerRedundancy.id,
72
- // value: { type: "translation", value: "" },
73
- // }
74
- ]
75
- };
76
- exports.enterpriseCampus24PoE = enterpriseCampus24PoE;
77
- //# sourceMappingURL=enterpriseCampus24PoE.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enterpriseCampus24PoE.js","sources":["../../../../../src/components/ModelCompareV3/data/products/enterpriseCampus24PoE.tsx"],"sourcesContent":["import { UniFiCategoryId } from \"../../../../constants/proStoreCategories\";\nimport { UniFiChildCategorySlug } from \"../../../../constants/proStoreCategories/mapping/unifi\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport {\n downlinkSpeed,\n etherlighting,\n poeAvailability,\n poeOutput,\n portCount,\n uplinkSpeed,\n} from \"../properties\";\n\nexport const enterpriseCampus24PoE: Product = {\n id: \"enterpriseCampus24PoE\",\n title: \"enterpriseCampus24PoE.title\",\n techspecsPath: [\n SiteId.TechSpecs,\n `/unifi/${UniFiCategoryId.Switching}/ecs-24-poe`,\n ],\n storePathParts: {\n productSlug: \"ecs-24-poe\",\n category: UniFiChildCategorySlug.SwitchingEnterprise,\n },\n sku: \"ECS-24\",\n // description: \"enterpriseCampus24PoE.description\",\n image: {\n src: \"https://placehold.co/250x120\",\n width: 250,\n height: 120,\n },\n propertyValues: [\n {\n propertyId: portCount.id,\n value: { type: \"string\", value: \"24\" },\n },\n {\n propertyId: downlinkSpeed.id,\n value: {\n type: \"translation\",\n value: \"enterpriseCampus24PoE.downlinkSpeed\",\n },\n },\n {\n propertyId: uplinkSpeed.id,\n value: { type: \"string\", value: \"25 Gbps\" },\n },\n {\n propertyId: poeOutput.id,\n value: { type: \"string\", value: \"PoE+++\" },\n },\n {\n propertyId: poeAvailability.id,\n value: { type: \"string\", value: \"1050 W\" },\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: { type: \"translation\", value: \"\" },\n // }\n ],\n};\n"],"names":["enterpriseCampus24PoE","id","title","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","Switching","storePathParts","productSlug","category","UniFiChildCategorySlug","SwitchingEnterprise","sku","image","src","width","height","propertyValues","propertyId","portCount","value","type","downlinkSpeed","uplinkSpeed","poeOutput","poeAvailability","etherlighting"],"mappings":";;;;;;;;;;;;;AAaO,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,aAAA,CACrC;EACAC,cAAgB,EAAA;IACdC,WAAa,EAAA,YAAA;IACbC,UAAUC,KAAuB,CAAAA,sBAAA,CAAAC;EACnC,CAAA;EACAC,GAAK,EAAA,QAAA;EAAA;EAELC,KAAO,EAAA;IACLC,GAAK,EAAA,8BAAA;IACLC,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,cAAgB,EAAA,CACd;IACEC,YAAYC,SAAU,CAAAA,SAAA,CAAAnB,EAAA;IACtBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,aAAc,CAAAA,aAAA,CAAAtB,EAAA;IAC1BoB,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYK,WAAY,CAAAA,WAAA,CAAAvB,EAAA;IACxBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAU;EAC5C,CAAA,EACA;IACEF,YAAYM,SAAU,CAAAA,SAAA,CAAAxB,EAAA;IACtBoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAS;EAC3C,CAAA,EACA;IACEF,YAAYO,eAAgB,CAAAA,eAAA,CAAAzB,EAAA;IAC5BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAS;EAC3C,CAAA,EACA;IACEF,YAAYQ,aAAc,CAAAA,aAAA,CAAA1B,EAAA;IAC1BoB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAUJ,CAAA;"}