@ubnt/store.core 9.64.0-beta.0 → 9.64.0-new-design

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 (1100) hide show
  1. package/CHANGELOG.md +133 -613
  2. package/lib/_virtual/_virtual_multi-entry.js +15 -25
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +13 -13
  5. package/lib/apis/smartcat.d.ts +12 -2
  6. package/lib/apis/smartcat.js +27 -4
  7. package/lib/apis/smartcat.js.map +1 -1
  8. package/lib/apis/smartcat.mjs +27 -4
  9. package/lib/apis/smartcat.mjs.map +1 -1
  10. package/lib/assets/arrow2.svg +3 -0
  11. package/lib/assets/cart-secondary.svg +5 -0
  12. package/lib/assets/close2.svg +2 -3
  13. package/lib/assets/close3.svg +3 -2
  14. package/lib/assets/express.jpg +0 -0
  15. package/lib/assets/express2.jpg +0 -0
  16. package/lib/assets/express7.jpg +0 -0
  17. package/lib/assets/express72.jpg +0 -0
  18. package/lib/assets/icon-location-pin.svg +5 -0
  19. package/lib/assets/icons/{menu/icon-globe.svg.js → cart-secondary.svg.js} +6 -6
  20. package/lib/assets/icons/cart-secondary.svg.js.map +1 -0
  21. package/lib/assets/icons/cart-secondary.svg.mjs +3 -0
  22. package/lib/assets/icons/cart-secondary.svg.mjs.map +1 -0
  23. package/lib/{components/ModelCompareV3/assets/crestron.svg.js → assets/icons/menu/icon-location-pin.svg.js} +6 -6
  24. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
  25. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
  26. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
  27. package/lib/assets/logoUnifi.svg +10 -2
  28. package/lib/assets/minus4.svg +8 -8
  29. package/lib/assets/minus5.svg +8 -8
  30. package/lib/assets/payment-apple-pay.svg +12 -1
  31. package/lib/assets/payment-card.svg +12 -1
  32. package/lib/assets/payment-google-pay.svg +1 -1
  33. package/lib/assets/plus5.svg +9 -9
  34. package/lib/assets/plus6.svg +9 -9
  35. package/lib/assets/poe2.svg +2 -3
  36. package/lib/assets/poe3.svg +3 -2
  37. package/lib/assets/port.svg +2 -4
  38. package/lib/assets/port2.svg +4 -2
  39. package/lib/assets/udmPro.jpg +0 -0
  40. package/lib/assets/udmPro2.jpg +0 -0
  41. package/lib/assets/udmProMax.jpg +0 -0
  42. package/lib/assets/udmProMax2.jpg +0 -0
  43. package/lib/assets/udmProSpecial.jpg +0 -0
  44. package/lib/assets/udmProSpecial2.jpg +0 -0
  45. package/lib/assets/udr2.jpg +0 -0
  46. package/lib/assets/udr3.jpg +0 -0
  47. package/lib/assets/udr7.jpg +0 -0
  48. package/lib/assets/udr72.jpg +0 -0
  49. package/lib/components/Accordion/Accordion.js +13 -13
  50. package/lib/components/Accordion/Accordion.js.map +1 -1
  51. package/lib/components/Accordion/Accordion.mjs +9 -9
  52. package/lib/components/Accordion/Accordion.mjs.map +1 -1
  53. package/lib/components/Accordion/Accordion.styles.d.ts +18 -18
  54. package/lib/components/Accordion/Accordion.styles.js +22 -28
  55. package/lib/components/Accordion/Accordion.styles.js.map +1 -1
  56. package/lib/components/Accordion/Accordion.styles.mjs +22 -28
  57. package/lib/components/Accordion/Accordion.styles.mjs.map +1 -1
  58. package/lib/components/AppDownloadBanner/AppDownloadBanner.styles.d.ts +21 -23
  59. package/lib/components/Avatar/Avatar.js +5 -6
  60. package/lib/components/Avatar/Avatar.js.map +1 -1
  61. package/lib/components/Avatar/Avatar.mjs +3 -4
  62. package/lib/components/Avatar/Avatar.mjs.map +1 -1
  63. package/lib/components/Avatar/Avatar.styles.d.ts +2 -2
  64. package/lib/components/BackInStock/BackInStock.styles.d.ts +7 -12
  65. package/lib/components/Badge/Badge.styles.d.ts +2 -2
  66. package/lib/components/Banner/Banner.js +4 -4
  67. package/lib/components/Banner/Banner.js.map +1 -1
  68. package/lib/components/Banner/Banner.mjs +4 -4
  69. package/lib/components/Banner/Banner.mjs.map +1 -1
  70. package/lib/components/Banner/Banner.styles.d.ts +16 -16
  71. package/lib/components/Banner/Banner.styles.js +9 -9
  72. package/lib/components/Banner/Banner.styles.js.map +1 -1
  73. package/lib/components/Banner/Banner.styles.mjs +9 -9
  74. package/lib/components/Banner/Banner.styles.mjs.map +1 -1
  75. package/lib/components/Breadcrumbs/Breadcrumbs.styles.d.ts +2 -2
  76. package/lib/components/BuiltFeaturesSection/BuiltFeaturesSection.styles.d.ts +9 -9
  77. package/lib/components/Button/Button.js +12 -5
  78. package/lib/components/Button/Button.js.map +1 -1
  79. package/lib/components/Button/Button.mjs +8 -1
  80. package/lib/components/Button/Button.mjs.map +1 -1
  81. package/lib/components/Button/Button.styles.d.ts +4 -4
  82. package/lib/components/Button/CartButton.d.ts +3 -1
  83. package/lib/components/Button/CartButton.js +11 -6
  84. package/lib/components/Button/CartButton.js.map +1 -1
  85. package/lib/components/Button/CartButton.mjs +8 -4
  86. package/lib/components/Button/CartButton.mjs.map +1 -1
  87. package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  88. package/lib/components/ButtonGroup/ButtonGroup.js +11 -4
  89. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  90. package/lib/components/ButtonGroup/ButtonGroup.mjs +11 -4
  91. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  92. package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +12 -8
  93. package/lib/components/ButtonGroup/ButtonGroup.styles.js +46 -6
  94. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  95. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +46 -6
  96. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  97. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
  98. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -5
  99. package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
  100. package/lib/components/CardSection/Card/Card.js +16 -16
  101. package/lib/components/CardSection/Card/Card.js.map +1 -1
  102. package/lib/components/CardSection/Card/Card.mjs +10 -10
  103. package/lib/components/CardSection/Card/Card.mjs.map +1 -1
  104. package/lib/components/CardSection/Card/Card.styles.d.ts +21 -21
  105. package/lib/components/CardSection/Card/Card.styles.js +22 -22
  106. package/lib/components/CardSection/Card/Card.styles.js.map +1 -1
  107. package/lib/components/CardSection/Card/Card.styles.mjs +22 -22
  108. package/lib/components/CardSection/Card/Card.styles.mjs.map +1 -1
  109. package/lib/components/CardSection/CardSection.js +2 -2
  110. package/lib/components/CardSection/CardSection.styles.d.ts +4 -4
  111. package/lib/components/CarouselGallery/CarouselGallery.styles.d.ts +11 -11
  112. package/lib/components/CartIcon/CartIcon.js +4 -4
  113. package/lib/components/CartIcon/CartIcon.js.map +1 -1
  114. package/lib/components/CartIcon/CartIcon.mjs +2 -2
  115. package/lib/components/CartIcon/CartIcon.mjs.map +1 -1
  116. package/lib/components/CartIcon/CartIcon.styles.d.ts +5 -5
  117. package/lib/components/CartIcon/CartIcon.styles.js +4 -4
  118. package/lib/components/CartIcon/CartIcon.styles.js.map +1 -1
  119. package/lib/components/CartIcon/CartIcon.styles.mjs +4 -4
  120. package/lib/components/CartIcon/CartIcon.styles.mjs.map +1 -1
  121. package/lib/components/CartSummary/CartSummary.js +1 -1
  122. package/lib/components/CartSummary/CartSummary.js.map +1 -1
  123. package/lib/components/CartSummary/CartSummary.mjs +1 -1
  124. package/lib/components/CartSummary/CartSummary.mjs.map +1 -1
  125. package/lib/components/CartSummary/CartSummary.styles.d.ts +13 -19
  126. package/lib/components/CartSummary/CartSummary.styles.js +2 -2
  127. package/lib/components/CartSummary/CartSummary.styles.js.map +1 -1
  128. package/lib/components/CartSummary/CartSummary.styles.mjs +2 -2
  129. package/lib/components/CartSummary/CartSummary.styles.mjs.map +1 -1
  130. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +8 -6
  131. package/lib/components/CategoryTabs/CategoryTabs.styles.js +9 -6
  132. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  133. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +8 -7
  134. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  135. package/lib/components/Checkbox/Checkbox.js +4 -7
  136. package/lib/components/Checkbox/Checkbox.js.map +1 -1
  137. package/lib/components/Checkbox/Checkbox.mjs +0 -3
  138. package/lib/components/Checkbox/Checkbox.mjs.map +1 -1
  139. package/lib/components/Checkbox/Checkbox.styles.d.ts +3 -3
  140. package/lib/components/Checkbox/Checkbox.types.d.ts +1 -1
  141. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  142. package/lib/components/CloserLookSection/CloserLookSection.styles.d.ts +8 -8
  143. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  144. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.styles.d.ts +3 -3
  145. package/lib/components/Compare/Compare.styles.d.ts +34 -36
  146. package/lib/components/CompareChart/CompareChart.styles.d.ts +36 -40
  147. package/lib/components/CompareSection/CompareSection.styles.d.ts +16 -18
  148. package/lib/components/Container/Container.d.ts +1 -1
  149. package/lib/components/Container/Container.js +5 -4
  150. package/lib/components/Container/Container.js.map +1 -1
  151. package/lib/components/Container/Container.mjs +5 -4
  152. package/lib/components/Container/Container.mjs.map +1 -1
  153. package/lib/components/Container/Container.styles.d.ts +3 -3
  154. package/lib/components/Container/index.stories.d.ts +5 -5
  155. package/lib/components/CustomImage/CustomImage.js +12 -12
  156. package/lib/components/CustomImage/CustomImage.styles.d.ts +12 -12
  157. package/lib/components/DeploymentGallery/DeploymentGallery.styles.d.ts +4 -4
  158. package/lib/components/Explore/Explore.js +5 -5
  159. package/lib/components/Explore/Explore.styles.d.ts +28 -36
  160. package/lib/components/Explore/Explore.styles.js +6 -6
  161. package/lib/components/Explore/Explore.styles.js.map +1 -1
  162. package/lib/components/Explore/Explore.styles.mjs +6 -6
  163. package/lib/components/Explore/Explore.styles.mjs.map +1 -1
  164. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.styles.d.ts +3 -5
  165. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  166. package/lib/components/FeaturesSection_deprecated/Features/Features.styles.d.ts +15 -15
  167. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +23 -23
  168. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  169. package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.d.ts +22 -22
  170. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  171. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  172. package/lib/components/Footer/Footer.js +3 -2
  173. package/lib/components/Footer/Footer.js.map +1 -1
  174. package/lib/components/Footer/Footer.mjs +1 -0
  175. package/lib/components/Footer/Footer.mjs.map +1 -1
  176. package/lib/components/Footer/Footer.styles.d.ts +34 -39
  177. package/lib/components/Footer/Footer.styles.js +1 -1
  178. package/lib/components/Footer/Footer.styles.js.map +1 -1
  179. package/lib/components/Footer/Footer.styles.mjs +1 -1
  180. package/lib/components/Footer/Footer.styles.mjs.map +1 -1
  181. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  182. package/lib/components/Gallery/Gallery.context.js +17 -17
  183. package/lib/components/Gallery/Gallery.js +10 -10
  184. package/lib/components/Gallery/Gallery.js.map +1 -1
  185. package/lib/components/Gallery/Gallery.mjs +1 -1
  186. package/lib/components/Gallery/Gallery.mjs.map +1 -1
  187. package/lib/components/Gallery/Gallery.styles.d.ts +8 -12
  188. package/lib/components/Gallery/Gallery.styles.js +1 -3
  189. package/lib/components/Gallery/Gallery.styles.js.map +1 -1
  190. package/lib/components/Gallery/Gallery.styles.mjs +1 -3
  191. package/lib/components/Gallery/Gallery.styles.mjs.map +1 -1
  192. package/lib/components/Gallery/GalleryControls/GalleryControls.js +5 -5
  193. package/lib/components/Gallery/GalleryControls/GalleryControls.js.map +1 -1
  194. package/lib/components/Gallery/GalleryControls/GalleryControls.mjs +1 -1
  195. package/lib/components/Gallery/GalleryControls/GalleryControls.mjs.map +1 -1
  196. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.d.ts +9 -9
  197. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.js +2 -2
  198. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.js.map +1 -1
  199. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.mjs +2 -2
  200. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.mjs.map +1 -1
  201. package/lib/components/Gallery/GalleryItem/GalleryItem.js +13 -13
  202. package/lib/components/Gallery/GalleryItem/GalleryItem.js.map +1 -1
  203. package/lib/components/Gallery/GalleryItem/GalleryItem.mjs +5 -5
  204. package/lib/components/Gallery/GalleryItem/GalleryItem.mjs.map +1 -1
  205. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.d.ts +10 -10
  206. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.js +11 -11
  207. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.js.map +1 -1
  208. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.mjs +11 -11
  209. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.mjs.map +1 -1
  210. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  211. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.styles.d.ts +8 -8
  212. package/lib/components/GradientButton/GradientButton.d.ts +1 -1
  213. package/lib/components/GradientButton/GradientButton.js +0 -2
  214. package/lib/components/GradientButton/GradientButton.js.map +1 -1
  215. package/lib/components/GradientButton/GradientButton.mjs +0 -2
  216. package/lib/components/GradientButton/GradientButton.mjs.map +1 -1
  217. package/lib/components/GradientButton/GradientButton.styles.d.ts +4 -4
  218. package/lib/components/GradientButton/GradientButton.styles.js +6 -6
  219. package/lib/components/GradientButton/GradientButton.styles.js.map +1 -1
  220. package/lib/components/GradientButton/GradientButton.styles.mjs +6 -6
  221. package/lib/components/GradientButton/GradientButton.styles.mjs.map +1 -1
  222. package/lib/components/GridGallery/GridGallery.js +9 -9
  223. package/lib/components/GridGallery/GridGallery.js.map +1 -1
  224. package/lib/components/GridGallery/GridGallery.mjs +1 -1
  225. package/lib/components/GridGallery/GridGallery.mjs.map +1 -1
  226. package/lib/components/GridGallery/GridGallery.styles.d.ts +13 -13
  227. package/lib/components/GridGallery/GridGallery.styles.js +2 -2
  228. package/lib/components/GridGallery/GridGallery.styles.js.map +1 -1
  229. package/lib/components/GridGallery/GridGallery.styles.mjs +2 -2
  230. package/lib/components/GridGallery/GridGallery.styles.mjs.map +1 -1
  231. package/lib/components/GridGallery/GridModal/GridModal.js +7 -7
  232. package/lib/components/GridGallery/GridModal/GridModal.js.map +1 -1
  233. package/lib/components/GridGallery/GridModal/GridModal.mjs +1 -1
  234. package/lib/components/GridGallery/GridModal/GridModal.mjs.map +1 -1
  235. package/lib/components/GridGallery/GridModal/GridModal.styles.d.ts +7 -7
  236. package/lib/components/GridGallery/GridModal/GridModal.styles.js +4 -4
  237. package/lib/components/GridGallery/GridModal/GridModal.styles.js.map +1 -1
  238. package/lib/components/GridGallery/GridModal/GridModal.styles.mjs +4 -4
  239. package/lib/components/GridGallery/GridModal/GridModal.styles.mjs.map +1 -1
  240. package/lib/components/Header/AccountFrame/AccountFrame.js +12 -12
  241. package/lib/components/Header/AccountFrame/AccountFrame.js.map +1 -1
  242. package/lib/components/Header/AccountFrame/AccountFrame.mjs +1 -1
  243. package/lib/components/Header/AccountFrame/AccountFrame.mjs.map +1 -1
  244. package/lib/components/Header/AccountFrame/AccountFrame.styles.d.ts +15 -19
  245. package/lib/components/Header/AccountFrame/AccountFrame.styles.js +2 -2
  246. package/lib/components/Header/AccountFrame/AccountFrame.styles.js.map +1 -1
  247. package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs +2 -2
  248. package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs.map +1 -1
  249. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  250. package/lib/components/Header/AccountFrame/Mobile/Mobile.styles.d.ts +3 -3
  251. package/lib/components/Header/AccountMenu/AccountMenu.js +30 -20
  252. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  253. package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
  254. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  255. package/lib/components/Header/AccountMenu/AccountMenu.styles.d.ts +12 -30
  256. package/lib/components/Header/CartModal/CartModal.styles.d.ts +13 -15
  257. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  258. package/lib/components/Header/CartModal/Empty/Empty.styles.d.ts +1 -1
  259. package/lib/components/Header/CartModal/Item/Item.styles.d.ts +10 -10
  260. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  261. package/lib/components/Header/CartModalV2/CartModal.styles.d.ts +21 -23
  262. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  263. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +13 -13
  264. package/lib/components/Header/Header.js +40 -40
  265. package/lib/components/Header/Header.js.map +1 -1
  266. package/lib/components/Header/Header.mjs +6 -6
  267. package/lib/components/Header/Header.mjs.map +1 -1
  268. package/lib/components/Header/Header.stories.d.ts +111 -0
  269. package/lib/components/Header/Header.styles.d.ts +40 -49
  270. package/lib/components/Header/Header.styles.js +11 -33
  271. package/lib/components/Header/Header.styles.js.map +1 -1
  272. package/lib/components/Header/Header.styles.mjs +11 -32
  273. package/lib/components/Header/Header.styles.mjs.map +1 -1
  274. package/lib/components/Header/Header.types.d.ts +29 -5
  275. package/lib/components/Header/Header.types.js +2 -1
  276. package/lib/components/Header/Header.types.js.map +1 -1
  277. package/lib/components/Header/Header.types.mjs +2 -1
  278. package/lib/components/Header/Header.types.mjs.map +1 -1
  279. package/lib/components/Header/IsolatedHeader.d.ts +1 -0
  280. package/lib/components/Header/IsolatedHeader.js +50 -50
  281. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  282. package/lib/components/Header/IsolatedHeader.mjs +47 -46
  283. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  284. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  285. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.d.ts +17 -14
  286. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js +51 -0
  287. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js.map +1 -1
  288. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs +47 -1
  289. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs.map +1 -1
  290. package/lib/components/Header/LanguageFrame/Mobile/Mobile.styles.d.ts +3 -3
  291. package/lib/components/Header/LinksModal/LinksModal.styles.d.ts +4 -4
  292. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
  293. package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
  294. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
  295. package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
  296. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
  297. package/lib/components/Header/LogoIcon/index.d.ts +1 -0
  298. package/lib/components/Header/LogoIcon/index.js +6 -0
  299. package/lib/components/Header/LogoIcon/index.js.map +1 -0
  300. package/lib/components/Header/LogoIcon/index.mjs +3 -0
  301. package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
  302. package/lib/components/Header/MenuItem/MenuItem.js +5 -4
  303. package/lib/components/Header/MenuItem/MenuItem.js.map +1 -1
  304. package/lib/components/Header/MenuItem/MenuItem.mjs +5 -4
  305. package/lib/components/Header/MenuItem/MenuItem.mjs.map +1 -1
  306. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +15 -15
  307. package/lib/components/Header/MenuItem/MenuItem.styles.js +11 -11
  308. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  309. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +11 -11
  310. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  311. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  312. package/lib/components/Header/Navigation/Carousel/Carousel.js +11 -11
  313. package/lib/components/Header/Navigation/Carousel/Carousel.js.map +1 -1
  314. package/lib/components/Header/Navigation/Carousel/Carousel.mjs +6 -6
  315. package/lib/components/Header/Navigation/Carousel/Carousel.mjs.map +1 -1
  316. package/lib/components/Header/Navigation/Carousel/Carousel.styles.d.ts +20 -20
  317. package/lib/components/Header/Navigation/Carousel/Carousel.styles.js +16 -16
  318. package/lib/components/Header/Navigation/Carousel/Carousel.styles.js.map +1 -1
  319. package/lib/components/Header/Navigation/Carousel/Carousel.styles.mjs +16 -16
  320. package/lib/components/Header/Navigation/Carousel/Carousel.styles.mjs.map +1 -1
  321. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +19 -19
  322. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js.map +1 -1
  323. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.mjs +7 -7
  324. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.mjs.map +1 -1
  325. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +23 -29
  326. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +19 -19
  327. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
  328. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +19 -19
  329. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
  330. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +15 -15
  331. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
  332. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +9 -9
  333. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
  334. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +36 -40
  335. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js +18 -18
  336. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js.map +1 -1
  337. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.mjs +18 -18
  338. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.mjs.map +1 -1
  339. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  340. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +124 -117
  341. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  342. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +119 -112
  343. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  344. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +14 -7
  345. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  346. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  347. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  348. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  349. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
  350. package/lib/components/Header/Overlay/Overlay.js +3 -3
  351. package/lib/components/Header/Overlay/Overlay.styles.d.ts +2 -2
  352. package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
  353. package/lib/components/Header/ProHeader/ProHeader.js +290 -189
  354. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  355. package/lib/components/Header/ProHeader/ProHeader.mjs +270 -171
  356. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  357. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +49 -40
  358. package/lib/components/Header/ProHeader/ProHeader.styles.js +206 -68
  359. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  360. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +195 -67
  361. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  362. package/lib/components/Header/SearchTab/SearchTab.styles.d.ts +3 -3
  363. package/lib/components/Header/translations/ar.json.js +4 -1
  364. package/lib/components/Header/translations/ar.json.js.map +1 -1
  365. package/lib/components/Header/translations/ar.json.mjs +4 -2
  366. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  367. package/lib/components/Header/translations/de.json.js +4 -1
  368. package/lib/components/Header/translations/de.json.js.map +1 -1
  369. package/lib/components/Header/translations/de.json.mjs +4 -2
  370. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  371. package/lib/components/Header/translations/el.json.js +4 -1
  372. package/lib/components/Header/translations/el.json.js.map +1 -1
  373. package/lib/components/Header/translations/el.json.mjs +4 -2
  374. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  375. package/lib/components/Header/translations/en.json.js +7 -1
  376. package/lib/components/Header/translations/en.json.js.map +1 -1
  377. package/lib/components/Header/translations/en.json.mjs +6 -2
  378. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  379. package/lib/components/Header/translations/es.json.js +4 -1
  380. package/lib/components/Header/translations/es.json.js.map +1 -1
  381. package/lib/components/Header/translations/es.json.mjs +4 -2
  382. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  383. package/lib/components/Header/translations/fr.json.js +4 -1
  384. package/lib/components/Header/translations/fr.json.js.map +1 -1
  385. package/lib/components/Header/translations/fr.json.mjs +4 -2
  386. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  387. package/lib/components/Header/translations/it.json.js +4 -1
  388. package/lib/components/Header/translations/it.json.js.map +1 -1
  389. package/lib/components/Header/translations/it.json.mjs +4 -2
  390. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  391. package/lib/components/Header/translations/ja.json.js +4 -1
  392. package/lib/components/Header/translations/ja.json.js.map +1 -1
  393. package/lib/components/Header/translations/ja.json.mjs +4 -2
  394. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  395. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  396. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  397. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  398. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  399. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  400. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  401. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  402. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  403. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  404. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  405. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  406. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  407. package/lib/components/Hero/Hero.js +5 -5
  408. package/lib/components/Hero/Hero.styles.d.ts +28 -28
  409. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +12 -12
  410. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  411. package/lib/components/HeroVideo/HeroVideo.styles.d.ts +7 -7
  412. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +14 -14
  413. package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
  414. package/lib/components/ImageCarousel/ImageCarousel.styles.d.ts +34 -38
  415. package/lib/components/ImageCarousel/ImageCarousel.styles.js +4 -5
  416. package/lib/components/ImageCarousel/ImageCarousel.styles.js.map +1 -1
  417. package/lib/components/ImageCarousel/ImageCarousel.styles.mjs +4 -5
  418. package/lib/components/ImageCarousel/ImageCarousel.styles.mjs.map +1 -1
  419. package/lib/components/ImageModal/ImageModal.styles.d.ts +6 -8
  420. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  421. package/lib/components/ImageSequence/ImageSequence.styles.d.ts +8 -8
  422. package/lib/components/InputSelect/InputSelect.styles.d.ts +8 -4
  423. package/lib/components/LandingPage/Block/Block.styles.d.ts +4 -4
  424. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  425. package/lib/components/LandingPage/Cards/Card/Card.styles.d.ts +17 -17
  426. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  427. package/lib/components/LandingPage/Cards/Cards.styles.d.ts +9 -9
  428. package/lib/components/LandingPage/Cards/Cards.styles.js +1 -1
  429. package/lib/components/LandingPage/Cards/Cards.styles.js.map +1 -1
  430. package/lib/components/LandingPage/Cards/Cards.styles.mjs +1 -1
  431. package/lib/components/LandingPage/Cards/Cards.styles.mjs.map +1 -1
  432. package/lib/components/LandingPage/LandingPage.js +2 -2
  433. package/lib/components/LandingPage/LandingPage.styles.d.ts +5 -5
  434. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  435. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +3 -3
  436. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  437. package/lib/components/LandingPageSearch/LandingPageSearch.styles.d.ts +2 -2
  438. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  439. package/lib/components/LandingPageSearch/Modal/Modal.styles.d.ts +22 -26
  440. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  441. package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.d.ts +22 -22
  442. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  443. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +21 -23
  444. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +54 -60
  445. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +49 -57
  446. package/lib/components/LearnMoreLink/LearnMoreLink.styles.d.ts +2 -2
  447. package/lib/components/Loader/Loader.styles.d.ts +4 -4
  448. package/lib/components/Loader/Spinner/Spinner.styles.d.ts +3 -3
  449. package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
  450. package/lib/components/LoaderDots/LoaderDots.js +3 -1
  451. package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
  452. package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
  453. package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
  454. package/lib/components/LoaderDots/LoaderDots.styles.d.ts +4 -3
  455. package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
  456. package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
  457. package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
  458. package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
  459. package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
  460. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  461. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.styles.d.ts +9 -11
  462. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  463. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +25 -25
  464. package/lib/components/MicrositeBuyButton/MicrositeBuyButton.js +2 -2
  465. package/lib/components/MicrositeBuyButton/MicrositeBuyButton.js.map +1 -1
  466. package/lib/components/MicrositeBuyButton/MicrositeBuyButton.mjs +2 -2
  467. package/lib/components/MicrositeBuyButton/MicrositeBuyButton.mjs.map +1 -1
  468. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  469. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.styles.d.ts +6 -6
  470. package/lib/components/MicrositeExploreCards/MicrositeExploreCards.styles.d.ts +8 -8
  471. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  472. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.d.ts +18 -20
  473. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.js +2 -2
  474. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.js.map +1 -1
  475. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.mjs +2 -2
  476. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.mjs.map +1 -1
  477. package/lib/components/MicrositeFeatureIcons/MicrositeFeatureIcons.styles.d.ts +11 -11
  478. package/lib/components/MicrositeFeatureList/MicrositeFeatureList.styles.d.ts +14 -14
  479. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  480. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.d.ts +24 -28
  481. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js +2 -2
  482. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js.map +1 -1
  483. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.mjs +2 -2
  484. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.mjs.map +1 -1
  485. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  486. package/lib/components/MicrositeHero/MicrositeHero.styles.d.ts +41 -41
  487. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  488. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.styles.d.ts +6 -6
  489. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  490. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.styles.d.ts +15 -15
  491. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  492. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.styles.d.ts +15 -15
  493. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.d.ts +12 -14
  494. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.js +2 -2
  495. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.js.map +1 -1
  496. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.mjs +2 -2
  497. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.mjs.map +1 -1
  498. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  499. package/lib/components/MicrositeSection/AllFeaturesButton/AllFeaturesButton.styles.d.ts +3 -5
  500. package/lib/components/MicrositeSection/Features/Features.styles.d.ts +15 -15
  501. package/lib/components/MicrositeSection/MicrositeSection.styles.d.ts +24 -24
  502. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +6 -8
  503. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  504. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.styles.d.ts +2 -2
  505. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
  506. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.styles.d.ts +17 -17
  507. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  508. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  509. package/lib/components/Microsites/MicrositeProductPage.styles.d.ts +8 -16
  510. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  511. package/lib/components/MobileModal/MobileModal.js +4 -4
  512. package/lib/components/MobileModal/MobileModal.styles.d.ts +8 -8
  513. package/lib/components/Modal/Modal.js +3 -3
  514. package/lib/components/Modal/Modal.styles.d.ts +1 -1
  515. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  516. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  517. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  518. package/lib/components/ModelCompareV3/ModelCompareV3.styles.d.ts +34 -84
  519. package/lib/components/ModelCompareV3/ModelCompareV3.styles.js +7 -8
  520. package/lib/components/ModelCompareV3/ModelCompareV3.styles.js.map +1 -1
  521. package/lib/components/ModelCompareV3/ModelCompareV3.styles.mjs +7 -8
  522. package/lib/components/ModelCompareV3/ModelCompareV3.styles.mjs.map +1 -1
  523. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +0 -1
  524. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  525. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  526. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  527. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  528. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  529. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  530. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  531. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  532. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  533. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.d.ts +2 -2
  534. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  535. package/lib/components/ModelCompareV3/StickyGrid/StickyGridOverlay.d.ts +1 -1
  536. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  537. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express.jpg.js +5 -5
  538. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express.jpg.mjs +2 -2
  539. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express7.jpg.js +5 -5
  540. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express7.jpg.mjs +2 -2
  541. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  542. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  543. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  544. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  545. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  546. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  547. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.js +5 -5
  548. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
  549. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.js +5 -5
  550. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.mjs +2 -2
  551. package/lib/components/ModelCompareV3/assets/Consoles/express.jpg.js +1 -1
  552. package/lib/components/ModelCompareV3/assets/Consoles/express.jpg.mjs +2 -2
  553. package/lib/components/ModelCompareV3/assets/Consoles/express7.jpg.js +1 -1
  554. package/lib/components/ModelCompareV3/assets/Consoles/express7.jpg.mjs +2 -2
  555. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  556. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  557. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  558. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  559. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  560. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  561. package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.js +1 -1
  562. package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.mjs +2 -2
  563. package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.js +1 -1
  564. package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.mjs +2 -2
  565. package/lib/components/ModelCompareV3/assets/poe.svg.js +1 -1
  566. package/lib/components/ModelCompareV3/assets/poe.svg.mjs +2 -2
  567. package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
  568. package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
  569. package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
  570. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
  571. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +2 -3
  572. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  573. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +2 -3
  574. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  575. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +3 -10
  576. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
  577. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +3 -10
  578. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
  579. package/lib/components/ModelCompareV3/data/Switching.js +2 -3
  580. package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
  581. package/lib/components/ModelCompareV3/data/Switching.mjs +2 -3
  582. package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
  583. package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -7
  584. package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
  585. package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -7
  586. package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
  587. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +1 -1
  588. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  589. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +1 -1
  590. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  591. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +0 -7
  592. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
  593. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +0 -7
  594. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
  595. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +0 -7
  596. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
  597. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +0 -7
  598. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
  599. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +0 -7
  600. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
  601. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +0 -7
  602. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
  603. package/lib/components/ModelCompareV3/data/products/express.js +1 -1
  604. package/lib/components/ModelCompareV3/data/products/express.mjs +1 -1
  605. package/lib/components/ModelCompareV3/data/products/express7.js +1 -1
  606. package/lib/components/ModelCompareV3/data/products/express7.mjs +1 -1
  607. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +0 -7
  608. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
  609. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +0 -7
  610. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
  611. package/lib/components/ModelCompareV3/data/products/missionCritical.js +0 -7
  612. package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
  613. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +0 -7
  614. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
  615. package/lib/components/ModelCompareV3/data/products/professionalHd24.js +0 -7
  616. package/lib/components/ModelCompareV3/data/products/professionalHd24.js.map +1 -1
  617. package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs +0 -7
  618. package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs.map +1 -1
  619. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js +0 -7
  620. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js.map +1 -1
  621. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs +0 -7
  622. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs.map +1 -1
  623. package/lib/components/ModelCompareV3/data/products/professionalMax16.js +0 -7
  624. package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
  625. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +0 -7
  626. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
  627. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +0 -7
  628. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
  629. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +0 -7
  630. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
  631. package/lib/components/ModelCompareV3/data/products/professionalMax24.js +0 -7
  632. package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
  633. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +0 -7
  634. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
  635. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +0 -7
  636. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
  637. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +0 -7
  638. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
  639. package/lib/components/ModelCompareV3/data/products/professionalMax48.js +0 -7
  640. package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
  641. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +0 -7
  642. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
  643. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +0 -7
  644. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
  645. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +0 -7
  646. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
  647. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +0 -8
  648. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
  649. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +0 -8
  650. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
  651. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +0 -7
  652. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
  653. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +0 -7
  654. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
  655. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js +0 -7
  656. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js.map +1 -1
  657. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs +0 -7
  658. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs.map +1 -1
  659. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -10
  660. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
  661. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -10
  662. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
  663. package/lib/components/ModelCompareV3/data/products/switchesStandard.js +0 -7
  664. package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
  665. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +0 -7
  666. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
  667. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  668. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  669. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  670. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  671. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  672. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  673. package/lib/components/ModelCompareV3/data/products/udr.js +1 -1
  674. package/lib/components/ModelCompareV3/data/products/udr.mjs +1 -1
  675. package/lib/components/ModelCompareV3/data/products/udr7.js +1 -1
  676. package/lib/components/ModelCompareV3/data/products/udr7.mjs +1 -1
  677. package/lib/components/ModelCompareV3/data/properties/index.d.ts +0 -1
  678. package/lib/components/ModelCompareV3/data/properties/index.js +0 -2
  679. package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
  680. package/lib/components/ModelCompareV3/data/properties/index.mjs +0 -1
  681. package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
  682. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.js +1 -1
  683. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.mjs +1 -1
  684. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.js +1 -1
  685. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.mjs +1 -1
  686. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
  687. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.mjs +1 -1
  688. package/lib/components/ModelCompareV3/translations/ar.json.js +10 -10
  689. package/lib/components/ModelCompareV3/translations/ar.json.mjs +10 -10
  690. package/lib/components/ModelCompareV3/translations/de.json.js +2 -2
  691. package/lib/components/ModelCompareV3/translations/de.json.mjs +2 -2
  692. package/lib/components/ModelCompareV3/translations/el.json.js +1 -1
  693. package/lib/components/ModelCompareV3/translations/el.json.mjs +1 -1
  694. package/lib/components/ModelCompareV3/translations/en.json.js +0 -2
  695. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  696. package/lib/components/ModelCompareV3/translations/en.json.mjs +0 -2
  697. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  698. package/lib/components/ModelCompareV3/translations/es.json.js +2 -2
  699. package/lib/components/ModelCompareV3/translations/es.json.mjs +2 -2
  700. package/lib/components/ModelCompareV3/translations/fr.json.js +1 -1
  701. package/lib/components/ModelCompareV3/translations/fr.json.mjs +1 -1
  702. package/lib/components/ModelCompareV3/translations/it.json.js +1 -1
  703. package/lib/components/ModelCompareV3/translations/it.json.mjs +1 -1
  704. package/lib/components/ModelCompareV3/translations/ja.json.js +7 -7
  705. package/lib/components/ModelCompareV3/translations/ja.json.mjs +7 -7
  706. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +1 -1
  707. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +1 -1
  708. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  709. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +5 -5
  710. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +5 -5
  711. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +8 -8
  712. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +8 -8
  713. package/lib/components/NewToUnifiBox/NewToUnifiBox.styles.d.ts +5 -5
  714. package/lib/components/Pagination/Pagination.js +3 -3
  715. package/lib/components/Pagination/Pagination.styles.d.ts +4 -4
  716. package/lib/components/Popover/Popover.styles.d.ts +7 -11
  717. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  718. package/lib/components/PriceRangeSlider/PriceRangeSlider.styles.d.ts +7 -7
  719. package/lib/components/ProductCard/ProductCard.js +7 -7
  720. package/lib/components/ProductCard/ProductCard.styles.d.ts +16 -16
  721. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  722. package/lib/components/ProductCardPopup/ProductCardPopup.styles.d.ts +37 -45
  723. package/lib/components/ProductCardPopup/ProductCardPopup.styles.js +3 -3
  724. package/lib/components/ProductCardPopup/ProductCardPopup.styles.js.map +1 -1
  725. package/lib/components/ProductCardPopup/ProductCardPopup.styles.mjs +3 -3
  726. package/lib/components/ProductCardPopup/ProductCardPopup.styles.mjs.map +1 -1
  727. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  728. package/lib/components/ProductCompare/ProductCompare.styles.d.ts +18 -18
  729. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  730. package/lib/components/ProductDetails/ProductDetails.styles.d.ts +2 -2
  731. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  732. package/lib/components/ProductGrid/ProductGrid.styles.d.ts +13 -10
  733. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  734. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.styles.d.ts +6 -6
  735. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.d.ts +9 -11
  736. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +6 -6
  737. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +7 -7
  738. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  739. package/lib/components/ProductSectionTabs/ProductSectionTabs.styles.d.ts +6 -6
  740. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +14 -14
  741. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
  742. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +79 -0
  743. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
  744. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +71 -0
  745. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
  746. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
  747. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
  748. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +86 -0
  749. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
  750. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +72 -0
  751. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
  752. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
  753. package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
  754. package/lib/components/ProductTechSpecsV2/index.js +6 -0
  755. package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
  756. package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
  757. package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
  758. package/lib/components/ProductUpsell/ProductUpsell.styles.d.ts +18 -20
  759. package/lib/components/ProductWizard/Options/Options.js +3 -3
  760. package/lib/components/ProductWizard/Options/Options.styles.d.ts +2 -2
  761. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  762. package/lib/components/ProductWizard/ProductWizard.styles.d.ts +16 -22
  763. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +10 -10
  764. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js.map +1 -1
  765. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.mjs +5 -5
  766. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.mjs.map +1 -1
  767. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.d.ts +9 -9
  768. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.js +1 -1
  769. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.js.map +1 -1
  770. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.mjs +1 -1
  771. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.mjs.map +1 -1
  772. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  773. package/lib/components/QuantityControls/QuantityControls.js +6 -6
  774. package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
  775. package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
  776. package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
  777. package/lib/components/QuantityControls/QuantityControls.styles.d.ts +2 -2
  778. package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
  779. package/lib/components/QuantityInput/QuantityInput.js +6 -1
  780. package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
  781. package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
  782. package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
  783. package/lib/components/QuantityInput/QuantityInput.styles.d.ts +12 -16
  784. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  785. package/lib/components/RelatedProducts/RelatedProducts.styles.d.ts +14 -14
  786. package/lib/components/RelatedProducts/RelatedProducts.styles.js +2 -2
  787. package/lib/components/RelatedProducts/RelatedProducts.styles.js.map +1 -1
  788. package/lib/components/RelatedProducts/RelatedProducts.styles.mjs +2 -2
  789. package/lib/components/RelatedProducts/RelatedProducts.styles.mjs.map +1 -1
  790. package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.styles.d.ts +21 -23
  791. package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.styles.d.ts +16 -36
  792. package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.styles.d.ts +16 -38
  793. package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.styles.d.ts +1 -1
  794. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +2 -602
  795. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  796. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +2 -598
  797. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  798. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  799. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.styles.d.ts +6 -6
  800. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +1 -5
  801. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -4
  802. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  803. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -4
  804. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  805. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  806. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +13 -13
  807. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
  808. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.d.ts +20 -20
  809. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  810. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +6 -6
  811. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  812. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/Layout.styles.d.ts +6 -6
  813. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  814. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  815. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  816. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  817. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  818. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
  819. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.styles.d.ts +9 -9
  820. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  821. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  822. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.styles.d.ts +1 -1
  823. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/DesignCenterBanner/DesignCenterBanner.styles.d.ts +5 -5
  824. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  825. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.styles.d.ts +10 -10
  826. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +17 -17
  827. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  828. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.styles.d.ts +17 -19
  829. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  830. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  831. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  832. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  833. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +4 -4
  834. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +2 -2
  835. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.styles.d.ts +16 -16
  836. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.js +1 -1
  837. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.mjs +2 -2
  838. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
  839. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +2 -2
  840. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  841. package/lib/components/ResourceCalculatorV1/ResourceCalculator.styles.d.ts +3 -3
  842. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.d.ts +3 -3
  843. package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -5
  844. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  845. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -5
  846. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  847. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  848. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  849. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.styles.d.ts +3 -3
  850. package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
  851. package/lib/components/ScrollWrapper/ScrollWrapper.js +34 -26
  852. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  853. package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
  854. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  855. package/lib/components/ScrollWrapper/ScrollWrapper.styles.d.ts +14 -18
  856. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
  857. package/lib/components/Search/Input/Input.d.ts +1 -1
  858. package/lib/components/Search/Input/Input.js +8 -8
  859. package/lib/components/Search/Input/Input.js.map +1 -1
  860. package/lib/components/Search/Input/Input.mjs +4 -4
  861. package/lib/components/Search/Input/Input.mjs.map +1 -1
  862. package/lib/components/Search/Input/Input.styles.d.ts +11 -13
  863. package/lib/components/Search/Input/Input.styles.js +1 -2
  864. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  865. package/lib/components/Search/Input/Input.styles.mjs +1 -2
  866. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  867. package/lib/components/Search/Input/Input.types.d.ts +3 -2
  868. package/lib/components/Search/Modal/Modal.js +3 -3
  869. package/lib/components/Search/Modal/Modal.styles.d.ts +18 -20
  870. package/lib/components/SearchInput/Input.styles.d.ts +7 -9
  871. package/lib/components/SkeletonFootnote/SkeletonFootnote.d.ts +1 -1
  872. package/lib/components/SkeletonLoader/SkeletonCircleLoader/SkeletonCircleLoader.styles.d.ts +3 -3
  873. package/lib/components/SkeletonLoader/SkeletonLinearLoader/SkeletonLinearLoader.styles.d.ts +3 -3
  874. package/lib/components/SkeletonLoader/SkeletonLoaderTable/SkeletonLoaderTable.styles.d.ts +8 -8
  875. package/lib/components/StaticModal/StaticModal.styles.d.ts +2 -2
  876. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  877. package/lib/components/StorageSliders/Slider/Slider.styles.d.ts +5 -7
  878. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  879. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  880. package/lib/components/StorageSliders/StorageSliders.styles.d.ts +12 -12
  881. package/lib/components/StorybookUtils/StoryButtonColumn.d.ts +1 -1
  882. package/lib/components/StorybookUtils/StoryButtonRow.d.ts +1 -1
  883. package/lib/components/StorybookUtils/StoryWrapper.d.ts +2 -2
  884. package/lib/components/TabinationButtons/TabinationButtons.styles.d.ts +9 -9
  885. package/lib/components/Toggle/Toggle.styles.d.ts +3 -3
  886. package/lib/components/Toggle/Toggle.styles.js +1 -1
  887. package/lib/components/Toggle/Toggle.styles.js.map +1 -1
  888. package/lib/components/Toggle/Toggle.styles.mjs +1 -1
  889. package/lib/components/Toggle/Toggle.styles.mjs.map +1 -1
  890. package/lib/components/Tooltip/Tooltip.js +5 -5
  891. package/lib/components/Tooltip/Tooltip.styles.d.ts +3 -33
  892. package/lib/components/TopologyScheme/TopologyScheme.styles.d.ts +17 -17
  893. package/lib/components/UICare/UICare.styles.d.ts +16 -19
  894. package/lib/components/VariantSelector/CheckBox/CheckBox.styles.d.ts +6 -6
  895. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.styles.d.ts +7 -7
  896. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  897. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.d.ts +18 -18
  898. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  899. package/lib/components/VariantSelector/Variant/Variant.styles.d.ts +65 -75
  900. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  901. package/lib/components/VariantSelector/VariantSelector.styles.d.ts +13 -17
  902. package/lib/components/VariantSelectorItem/VariantSelectorItem.styles.d.ts +3 -3
  903. package/lib/components/VariantSelectorV1/VariantSelector.styles.d.ts +28 -32
  904. package/lib/components/VariantSelectorV2/VariantSelector.styles.d.ts +19 -23
  905. package/lib/components/VideoCookiesConsent/VideoCookiesConsent.styles.d.ts +6 -8
  906. package/lib/components/VideoPlayer/VideoPlayer.styles.d.ts +5 -5
  907. package/lib/components/VideoPlayerNew/VideoPlayer.js +20 -20
  908. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  909. package/lib/components/VideoPlayerNew/VideoPlayer.styles.d.ts +28 -31
  910. package/lib/components/VideoPlayerNew/VideoPlayer.styles.js +2 -2
  911. package/lib/components/VideoPlayerNew/VideoPlayer.styles.js.map +1 -1
  912. package/lib/components/VideoPlayerNew/VideoPlayer.styles.mjs +2 -2
  913. package/lib/components/VideoPlayerNew/VideoPlayer.styles.mjs.map +1 -1
  914. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  915. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  916. package/lib/components/index.d.ts +1 -0
  917. package/lib/components/index.js +2 -0
  918. package/lib/components/index.js.map +1 -1
  919. package/lib/components/index.mjs +2 -0
  920. package/lib/components/index.mjs.map +1 -1
  921. package/lib/{components/ResourceCalculatorV1/assets/consoles/udr7.png.js → constants/icons/header/arrow.svg.js} +6 -6
  922. package/lib/constants/icons/header/arrow.svg.js.map +1 -0
  923. package/lib/constants/icons/header/arrow.svg.mjs +3 -0
  924. package/lib/constants/icons/header/arrow.svg.mjs.map +1 -0
  925. package/lib/constants/icons/header/index.d.ts +1 -0
  926. package/lib/constants/icons/header/index.js +9 -0
  927. package/lib/constants/icons/header/index.js.map +1 -1
  928. package/lib/constants/icons/header/index.mjs +2 -0
  929. package/lib/constants/icons/header/index.mjs.map +1 -1
  930. package/lib/constants/mixin.d.ts +3 -3
  931. package/lib/constants/proStoreCategories/mapping/filters.d.ts +17 -0
  932. package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
  933. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  934. package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
  935. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  936. package/lib/constants/proStoreCategories/mapping/index.d.ts +3 -0
  937. package/lib/constants/proStoreCategories/mapping/index.js +25 -6
  938. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  939. package/lib/constants/proStoreCategories/mapping/index.mjs +25 -6
  940. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  941. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
  942. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +3 -0
  943. package/lib/constants/proStoreCategories/mapping/unifi.js +3 -0
  944. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  945. package/lib/constants/proStoreCategories/mapping/unifi.mjs +3 -0
  946. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  947. package/lib/constants/proStoreCategories/translations/ar.json.js +9 -5
  948. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  949. package/lib/constants/proStoreCategories/translations/ar.json.mjs +9 -5
  950. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  951. package/lib/constants/proStoreCategories/translations/de.json.js +7 -3
  952. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  953. package/lib/constants/proStoreCategories/translations/de.json.mjs +7 -3
  954. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  955. package/lib/constants/proStoreCategories/translations/el.json.js +9 -5
  956. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  957. package/lib/constants/proStoreCategories/translations/el.json.mjs +9 -5
  958. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  959. package/lib/constants/proStoreCategories/translations/en.json.js +5 -0
  960. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  961. package/lib/constants/proStoreCategories/translations/en.json.mjs +5 -1
  962. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  963. package/lib/constants/proStoreCategories/translations/es.json.js +8 -4
  964. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  965. package/lib/constants/proStoreCategories/translations/es.json.mjs +8 -4
  966. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  967. package/lib/constants/proStoreCategories/translations/fr.json.js +8 -1
  968. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  969. package/lib/constants/proStoreCategories/translations/fr.json.mjs +8 -2
  970. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  971. package/lib/constants/proStoreCategories/translations/it.json.js +8 -4
  972. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  973. package/lib/constants/proStoreCategories/translations/it.json.mjs +8 -4
  974. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  975. package/lib/constants/proStoreCategories/translations/ja.json.js +8 -4
  976. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  977. package/lib/constants/proStoreCategories/translations/ja.json.mjs +8 -4
  978. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  979. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +7 -3
  980. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  981. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +7 -3
  982. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  983. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +8 -1
  984. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  985. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +8 -2
  986. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  987. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +8 -1
  988. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  989. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +8 -2
  990. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  991. package/lib/constants/proStoreFilters/mapping.d.ts +44 -8
  992. package/lib/constants/proStoreFilters/mapping.js +130 -16
  993. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  994. package/lib/constants/proStoreFilters/mapping.mjs +130 -16
  995. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  996. package/lib/constants/theme.js +4 -0
  997. package/lib/constants/theme.js.map +1 -1
  998. package/lib/constants/theme.mjs +4 -0
  999. package/lib/constants/theme.mjs.map +1 -1
  1000. package/lib/contexts/MenuContext/context.js +34 -34
  1001. package/lib/contexts/MenuContext/context.js.map +1 -1
  1002. package/lib/contexts/MenuContext/context.mjs +1 -1
  1003. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  1004. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  1005. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  1006. package/lib/contexts/MenuContext/presets.d.ts +1 -1
  1007. package/lib/contexts/MenuContext/presets.js +2 -4
  1008. package/lib/contexts/MenuContext/presets.js.map +1 -1
  1009. package/lib/contexts/MenuContext/presets.mjs +2 -4
  1010. package/lib/contexts/MenuContext/presets.mjs.map +1 -1
  1011. package/lib/helpers/index.d.ts +0 -1
  1012. package/lib/helpers/index.js +1 -11
  1013. package/lib/helpers/index.js.map +1 -1
  1014. package/lib/helpers/index.mjs +1 -2
  1015. package/lib/helpers/index.mjs.map +1 -1
  1016. package/lib/helpers/proStoreCategories.js +2 -2
  1017. package/lib/helpers/ux.d.ts +8 -0
  1018. package/lib/helpers/ux.js +15 -0
  1019. package/lib/helpers/ux.js.map +1 -1
  1020. package/lib/helpers/ux.mjs +15 -1
  1021. package/lib/helpers/ux.mjs.map +1 -1
  1022. package/lib/hooks/useHasTouch.js +3 -3
  1023. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  1024. package/lib/hooks/useHorizontalScroll.js +2 -2
  1025. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  1026. package/lib/hooks/useScrollToY.js +2 -2
  1027. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  1028. package/lib/hooks/useTranslation.js +6 -6
  1029. package/lib/types/generated.d.ts +1 -1
  1030. package/lib/types/generated.js.map +1 -1
  1031. package/lib/types/generated.mjs.map +1 -1
  1032. package/lib/types/index.d.ts +0 -1
  1033. package/lib/types/index.js +0 -2
  1034. package/lib/types/index.js.map +1 -1
  1035. package/lib/types/index.mjs +0 -1
  1036. package/lib/types/index.mjs.map +1 -1
  1037. package/lib/utils/address.d.ts +62 -278
  1038. package/lib/utils/address.js +8 -11
  1039. package/lib/utils/address.js.map +1 -1
  1040. package/lib/utils/address.mjs +8 -11
  1041. package/lib/utils/address.mjs.map +1 -1
  1042. package/lib/utils/array.d.ts +0 -4
  1043. package/lib/utils/array.js +0 -10
  1044. package/lib/utils/array.js.map +1 -1
  1045. package/lib/utils/array.mjs +1 -10
  1046. package/lib/utils/array.mjs.map +1 -1
  1047. package/lib/utils/nextjs/ssr/registry.js +2 -2
  1048. package/package.json +43 -42
  1049. package/lib/assets/crestron.svg +0 -3
  1050. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  1051. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  1052. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
  1053. package/lib/assets/ucg-fiber.png +0 -0
  1054. package/lib/assets/udr7.png +0 -0
  1055. package/lib/assets/ux.png +0 -0
  1056. package/lib/assets/ux7.png +0 -0
  1057. package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +0 -1
  1058. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +0 -3
  1059. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +0 -1
  1060. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +0 -2
  1061. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +0 -18
  1062. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +0 -1
  1063. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +0 -10
  1064. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +0 -1
  1065. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.js +0 -27
  1066. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.js.map +0 -1
  1067. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.mjs +0 -3
  1068. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.mjs.map +0 -1
  1069. package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.js.map +0 -1
  1070. package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.mjs +0 -3
  1071. package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.mjs.map +0 -1
  1072. package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.js +0 -27
  1073. package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.js.map +0 -1
  1074. package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.mjs +0 -3
  1075. package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.mjs.map +0 -1
  1076. package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.js +0 -27
  1077. package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.js.map +0 -1
  1078. package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.mjs +0 -3
  1079. package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.mjs.map +0 -1
  1080. package/lib/helpers/product.d.ts +0 -87
  1081. package/lib/helpers/product.js +0 -346
  1082. package/lib/helpers/product.js.map +0 -1
  1083. package/lib/helpers/product.mjs +0 -335
  1084. package/lib/helpers/product.mjs.map +0 -1
  1085. package/lib/helpers/product.test.d.ts +0 -1
  1086. package/lib/types/product.d.ts +0 -87
  1087. package/lib/types/product.js +0 -14
  1088. package/lib/types/product.js.map +0 -1
  1089. package/lib/types/product.mjs +0 -13
  1090. package/lib/types/product.mjs.map +0 -1
  1091. package/lib/utils/productSort.d.ts +0 -41
  1092. package/lib/utils/productSort.js +0 -67
  1093. package/lib/utils/productSort.js.map +0 -1
  1094. package/lib/utils/productSort.mjs +0 -60
  1095. package/lib/utils/productSort.mjs.map +0 -1
  1096. package/lib/utils/validations/lastNameSuperRefinement.d.ts +0 -11
  1097. package/lib/utils/validations/lastNameSuperRefinement.js +0 -25
  1098. package/lib/utils/validations/lastNameSuperRefinement.js.map +0 -1
  1099. package/lib/utils/validations/lastNameSuperRefinement.mjs +0 -21
  1100. package/lib/utils/validations/lastNameSuperRefinement.mjs.map +0 -1
@@ -62,24 +62,24 @@ var index$O = require('../components/VideoPlayerNew/index.js');
62
62
  var index$P = require('../components/ResourceCalculatorV1/index.js');
63
63
  var index$Q = require('../components/CartIcon/index.js');
64
64
  var index$R = require('../components/Header/AccountMenu/index.js');
65
- var index$S = require('../contexts/MenuContext/index.js');
65
+ var index$S = require('../components/ProductTechSpecsV2/index.js');
66
+ var index$T = require('../contexts/MenuContext/index.js');
66
67
  var useLockBodyScrollCustom = require('../hooks/useLockBodyScrollCustom.js');
67
68
  var useTestMediaElementVolumeSetter = require('../hooks/useTestMediaElementVolumeSetter.js');
68
69
  var useTranslation = require('../hooks/useTranslation.js');
69
70
  var useScrollToY = require('../hooks/useScrollToY.js');
70
71
  var constants = require('../types/constants.js');
71
72
  var generated = require('../types/generated.js');
72
- var product = require('../types/product.js');
73
73
  var url = require('../utils/url.js');
74
74
  var misc = require('../utils/money/misc.js');
75
75
  var number = require('../utils/number.js');
76
76
  var string = require('../utils/string.js');
77
77
  var array = require('../utils/array.js');
78
- var index$T = require('../utils/nextjs/index.js');
78
+ var index$U = require('../utils/nextjs/index.js');
79
79
  var country = require('../utils/country.js');
80
80
  var countriesAndZones = require('../utils/countriesAndZones.js');
81
81
  var address = require('../utils/address.js');
82
- var index$U = require('../utils/tax/index.js');
82
+ var index$V = require('../utils/tax/index.js');
83
83
  var zod = require('../utils/zod.js');
84
84
  var collectionSlug = require('../utils/collectionSlug.js');
85
85
  var shipping = require('../utils/shipping.js');
@@ -87,17 +87,16 @@ var measures = require('../utils/measures.js');
87
87
  var errors = require('../utils/errors.js');
88
88
  var tags = require('../utils/tags.js');
89
89
  var wattage = require('../utils/wattage.js');
90
- var product$1 = require('../utils/product.js');
90
+ var product = require('../utils/product.js');
91
91
  var asset = require('../utils/asset.js');
92
92
  var imageOptimizer = require('../utils/imageOptimizer.js');
93
93
  var styles = require('../utils/styles.js');
94
94
  var storeId = require('../utils/storeId.js');
95
95
  var blackFriday = require('../utils/blackFriday.js');
96
96
  var sales = require('../utils/sales.js');
97
- var index$V = require('../constants/proStoreCategories/index.js');
98
- var index$W = require('../constants/proStoreFilters/index.js');
97
+ var index$W = require('../constants/proStoreCategories/index.js');
98
+ var index$X = require('../constants/proStoreFilters/index.js');
99
99
  var proStoreCategories = require('../helpers/proStoreCategories.js');
100
- var product$2 = require('../helpers/product.js');
101
100
  var ux = require('../helpers/ux.js');
102
101
  var smartcat = require('../apis/smartcat.js');
103
102
  exports.Avatar = index;
@@ -154,7 +153,8 @@ exports.VideoPlayer = index$O;
154
153
  exports.ResourceCalculatorV1 = index$P;
155
154
  exports.CartIcon = index$Q;
156
155
  exports.AccountMenu = index$R;
157
- exports.MenuContext = index$S;
156
+ exports.ProductTechSpecsV2 = index$S;
157
+ exports.MenuContext = index$T;
158
158
  exports.useLockBodyScrollCustom = useLockBodyScrollCustom.useLockBodyScrollCustom;
159
159
  exports.useTestMediaElementVolumeSetter = useTestMediaElementVolumeSetter.useTestMediaElementVolumeSetter;
160
160
  exports.useTranslation = useTranslation.useTranslation;
@@ -172,17 +172,16 @@ exports.Unit = generated.Unit;
172
172
  exports.UnitSystem = generated.UnitSystem;
173
173
  exports.UserAssignedCountryCode = generated.UserAssignedCountryCode;
174
174
  exports.ValidateTaxStatus = generated.ValidateTaxStatus;
175
- exports.DisplayProductStatus = product.DisplayProductStatus;
176
175
  exports.url = url;
177
176
  exports.money = misc;
178
177
  exports.number = number;
179
178
  exports.string = string;
180
179
  exports.array = array;
181
- exports.nextjs = index$T;
180
+ exports.nextjs = index$U;
182
181
  exports.country = country;
183
182
  exports.countryAndZones = countriesAndZones;
184
183
  exports.address = address;
185
- exports.tax = index$U;
184
+ exports.tax = index$V;
186
185
  exports.zod = zod;
187
186
  exports.collectionSlug = collectionSlug;
188
187
  exports.shipping = shipping;
@@ -190,15 +189,15 @@ exports.measures = measures;
190
189
  exports.errors = errors;
191
190
  exports.tags = tags;
192
191
  exports.wattage = wattage;
193
- exports.product = product$1;
192
+ exports.product = product;
194
193
  exports.asset = asset;
195
194
  exports.imageOptimizer = imageOptimizer;
196
195
  exports.styles = styles;
197
196
  exports.storeId = storeId;
198
197
  exports.blackFriday = blackFriday;
199
198
  exports.sales = sales;
200
- exports.proStoreCategories = index$V;
201
- exports.proStoreFilters = index$W;
199
+ exports.proStoreCategories = index$W;
200
+ exports.proStoreFilters = index$X;
202
201
  exports.getCategoriesBySubcategory = proStoreCategories.getCategoriesBySubcategory;
203
202
  exports.getLocalizedCategories = proStoreCategories.getLocalizedCategories;
204
203
  exports.getProductLineByCategory = proStoreCategories.getProductLineByCategory;
@@ -207,17 +206,8 @@ exports.getSubCategoryIdByCollectionSlug = proStoreCategories.getSubCategoryIdBy
207
206
  exports.isValidSubCategory = proStoreCategories.isValidSubCategory;
208
207
  exports.parseCategories = proStoreCategories.parseCategories;
209
208
  exports.useTranslatedCategories = proStoreCategories.useTranslatedCategories;
210
- exports.COLLECTION_SECTION_OTHER_ID = product$2.COLLECTION_SECTION_OTHER_ID;
211
- exports.HDDProductSlugs = product$2.HDDProductSlugs;
212
- exports.MagicCollectionTags = product$2.MagicCollectionTags;
213
- exports.ProductOptions = product$2.ProductOptions;
214
- exports.createSectionHierarchy = product$2.createSectionHierarchy;
215
- exports.getProStoreCategory = product$2.getProStoreCategory;
216
- exports.getProductGroups = product$2.getProductGroups;
217
- exports.getStoreProducts = product$2.getStoreProducts;
218
- exports.isNonNullish = product$2.isNonNullish;
219
- exports.removeExcludedProducts = product$2.removeExcludedProducts;
220
209
  exports.getTrueOffsetY = ux.getTrueOffsetY;
210
+ exports.getTrueSize = ux.getTrueSize;
221
211
  exports.scrollIntoView = ux.scrollIntoView;
222
212
  exports.scrollToY = ux.scrollToY;
223
213
  exports.smartcat = smartcat;
@@ -1 +1 @@
1
- {"version":3,"file":"_virtual_multi-entry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"_virtual_multi-entry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -114,15 +114,16 @@ import * as index$Q from '../components/CartIcon/index.mjs';
114
114
  export { index$Q as CartIcon };
115
115
  import * as index$R from '../components/Header/AccountMenu/index.mjs';
116
116
  export { index$R as AccountMenu };
117
- import * as index$S from '../contexts/MenuContext/index.mjs';
118
- export { index$S as MenuContext };
117
+ import * as index$S from '../components/ProductTechSpecsV2/index.mjs';
118
+ export { index$S as ProductTechSpecsV2 };
119
+ import * as index$T from '../contexts/MenuContext/index.mjs';
120
+ export { index$T as MenuContext };
119
121
  export { useLockBodyScrollCustom } from '../hooks/useLockBodyScrollCustom.mjs';
120
122
  export { useTestMediaElementVolumeSetter } from '../hooks/useTestMediaElementVolumeSetter.mjs';
121
123
  export { useTranslation, useTranslationRaw } from '../hooks/useTranslation.mjs';
122
124
  export { useScrollToY } from '../hooks/useScrollToY.mjs';
123
125
  export { AddressUsageType, Language } from '../types/constants.mjs';
124
126
  export { AddressType, CountryCode, Currency, GlobalStoreId, ProductLine, StoreId, Unit, UnitSystem, UserAssignedCountryCode, ValidateTaxStatus } from '../types/generated.mjs';
125
- export { DisplayProductStatus } from '../types/product.mjs';
126
127
  import * as url from '../utils/url.mjs';
127
128
  export { url };
128
129
  import * as misc from '../utils/money/misc.mjs';
@@ -133,16 +134,16 @@ import * as string from '../utils/string.mjs';
133
134
  export { string };
134
135
  import * as array from '../utils/array.mjs';
135
136
  export { array };
136
- import * as index$T from '../utils/nextjs/index.mjs';
137
- export { index$T as nextjs };
137
+ import * as index$U from '../utils/nextjs/index.mjs';
138
+ export { index$U as nextjs };
138
139
  import * as country from '../utils/country.mjs';
139
140
  export { country };
140
141
  import * as countriesAndZones from '../utils/countriesAndZones.mjs';
141
142
  export { countriesAndZones as countryAndZones };
142
143
  import * as address from '../utils/address.mjs';
143
144
  export { address };
144
- import * as index$U from '../utils/tax/index.mjs';
145
- export { index$U as tax };
145
+ import * as index$V from '../utils/tax/index.mjs';
146
+ export { index$V as tax };
146
147
  import * as zod from '../utils/zod.mjs';
147
148
  export { zod };
148
149
  import * as collectionSlug from '../utils/collectionSlug.mjs';
@@ -171,13 +172,12 @@ import * as blackFriday from '../utils/blackFriday.mjs';
171
172
  export { blackFriday };
172
173
  import * as sales from '../utils/sales.mjs';
173
174
  export { sales };
174
- import * as index$V from '../constants/proStoreCategories/index.mjs';
175
- export { index$V as proStoreCategories };
176
- import * as index$W from '../constants/proStoreFilters/index.mjs';
177
- export { index$W as proStoreFilters };
175
+ import * as index$W from '../constants/proStoreCategories/index.mjs';
176
+ export { index$W as proStoreCategories };
177
+ import * as index$X from '../constants/proStoreFilters/index.mjs';
178
+ export { index$X as proStoreFilters };
178
179
  export { getCategoriesBySubcategory, getLocalizedCategories, getProductLineByCategory, getProductLineBySubcategory, getSubCategoryIdByCollectionSlug, isValidSubCategory, parseCategories, useTranslatedCategories } from '../helpers/proStoreCategories.mjs';
179
- export { COLLECTION_SECTION_OTHER_ID, HDDProductSlugs, MagicCollectionTags, ProductOptions, createSectionHierarchy, getProStoreCategory, getProductGroups, getStoreProducts, isNonNullish, removeExcludedProducts } from '../helpers/product.mjs';
180
- export { getTrueOffsetY, scrollIntoView, scrollToY } from '../helpers/ux.mjs';
180
+ export { getTrueOffsetY, getTrueSize, scrollIntoView, scrollToY } from '../helpers/ux.mjs';
181
181
  import * as smartcat from '../apis/smartcat.mjs';
182
182
  export { smartcat };
183
183
  //# sourceMappingURL=_virtual_multi-entry.mjs.map
@@ -171,16 +171,21 @@ export declare class SmartcatApi {
171
171
  * Download translations from Smartcat.
172
172
  */
173
173
  downloadSmartcatTranslations(defaultTranslations: TranslationObject, options?: {
174
+ /**
175
+ * (optional) List of labels to export keys that are marked with labels
176
+ * @default undefined
177
+ */
178
+ labels?: string[];
174
179
  /**
175
180
  * (optional) Max attempt count for polling download ready status.
176
181
  * @default 10
177
182
  */
178
- maxAttemptCount: number;
183
+ maxAttemptCount?: number;
179
184
  /**
180
185
  * (optional) Interval in milliseconds between each polling attempt.
181
186
  * @default 5000
182
187
  */
183
- intervalMs: number;
188
+ intervalMs?: number;
184
189
  }): Promise<Record<Language, TranslationObject>>;
185
190
  /**
186
191
  * Exposed method for uploading source translations to Smartcat.
@@ -190,6 +195,7 @@ export declare class SmartcatApi {
190
195
  }): Promise<void>;
191
196
  /**
192
197
  * Internal helper method for uploading source translations to Smartcat.
198
+ * @see https://developers.smartcat.com/api/#import-keys-and-values-from-files-into-the-software-localization-project
193
199
  */
194
200
  private smartcatUploadRequest;
195
201
  /**
@@ -213,5 +219,9 @@ export declare class SmartcatApi {
213
219
  * Get smartcat environment based on branch name
214
220
  */
215
221
  static readonly getSmartcatEnvironmentFromGhBranchName: (ghRepositoryBranchName: string) => SmartcatEnvironment;
222
+ /**
223
+ * Util to prepare labels for passing into request parameters
224
+ */
225
+ static readonly prepareLabels: (labels?: string[]) => string | undefined;
216
226
  }
217
227
  export {};
@@ -336,7 +336,8 @@ const _SmartcatApi = class _SmartcatApi {
336
336
  "output-file-path-template": "{LANGUAGE}.json",
337
337
  collections: this.collectionName,
338
338
  zip: "true",
339
- languages: this.targetLanguages?.map(lang => this.languageToSmartcatLocaleMapping[lang]).join(",")
339
+ languages: this.targetLanguages?.map(lang => this.languageToSmartcatLocaleMapping[lang]).join(","),
340
+ labels: _SmartcatApi.prepareLabels(options?.labels)
340
341
  // FIXME: Look into only exporting values that has changed since last export minus some time via `modified-since`
341
342
  };
342
343
  const smartcatLocaleToLanguageMap = this.getSmartcatLocaleToLanguageMap();
@@ -357,7 +358,9 @@ const _SmartcatApi = class _SmartcatApi {
357
358
  pollAttempt += 1;
358
359
  const checkUrl = `integration/v1/document/export/${taskID}/`;
359
360
  const checkResponse = await this.axios.get(checkUrl, {
360
- responseType: "arraybuffer"
361
+ responseType: "arraybuffer",
362
+ // Don't throw errors for all errors below 500 so we can handle it gracefully
363
+ validateStatus: status => status < 500
361
364
  });
362
365
  if (checkResponse.status === 200) {
363
366
  const zip = new AdmZip__default["default"](checkResponse.data);
@@ -386,6 +389,19 @@ const _SmartcatApi = class _SmartcatApi {
386
389
  } else if (checkResponse.status === 204) {
387
390
  this.logger?.info(`The task ID ${taskID} is not ready yet, will try again`);
388
391
  await promises.setTimeout(pollInterval);
392
+ } else if (checkResponse.status === 404) {
393
+ throw new Error(`Failed to download smartcat translations, endpoint returned 404`);
394
+ } else if (checkResponse.status === 422) {
395
+ let response;
396
+ try {
397
+ const buffer = Buffer.from(checkResponse.data);
398
+ const jsonString = buffer.toString("utf8");
399
+ response = jsonString;
400
+ } catch {
401
+ response = "!! Unable to parse response !!";
402
+ }
403
+ this.logger?.error(response, "\u274C Failed to download smartcat translations, endpoint returned 422");
404
+ throw new Error(`Failed to download smartcat translations, endpoint returned 422`);
389
405
  } else {
390
406
  throw new Error(`Failed to download smartcat translations, endpoint returned unknown status code ${checkResponse.status}`);
391
407
  }
@@ -448,15 +464,16 @@ const _SmartcatApi = class _SmartcatApi {
448
464
  }
449
465
  /**
450
466
  * Internal helper method for uploading source translations to Smartcat.
467
+ * @see https://developers.smartcat.com/api/#import-keys-and-values-from-files-into-the-software-localization-project
451
468
  */
452
469
  async smartcatUploadRequest(sourceTranslations, options) {
453
- const labels = options?.labels?.map(label => label.trim()).filter(Boolean).join(",") || "";
454
470
  const queryParams = {
455
471
  format: "json",
456
472
  language: "en",
457
473
  collection: this.collectionName,
458
474
  "delete-missing-keys": !!options?.deleteMissingKeys,
459
- labels
475
+ // TODO: was fallback empty string really needed?
476
+ labels: _SmartcatApi.prepareLabels(options?.labels) || ""
460
477
  };
461
478
  const url = `integration/v2/project/${this.projectId}/import`;
462
479
  const smartCatSourceLanguageBuffer = Buffer.from(JSON.stringify(sourceTranslations));
@@ -551,6 +568,12 @@ __publicField(_SmartcatApi, "getSmartcatEnvironmentFromGhBranchName", ghReposito
551
568
  }
552
569
  }
553
570
  });
571
+ /**
572
+ * Util to prepare labels for passing into request parameters
573
+ */
574
+ __publicField(_SmartcatApi, "prepareLabels", labels => {
575
+ return labels?.map(label => label.trim()).filter(Boolean).join(",");
576
+ });
554
577
  let SmartcatApi = _SmartcatApi;
555
578
  exports.SmartcatApi = SmartcatApi;
556
579
  exports.SmartcatEnvironment = SmartcatEnvironment;
@@ -1 +1 @@
1
- {"version":3,"file":"smartcat.js","sources":["../../src/apis/smartcat.ts"],"sourcesContent":["/* eslint-disable no-await-in-loop */\nimport AdmZip from \"adm-zip\";\nimport type { AxiosInstance } from \"axios\";\nimport axios from \"axios\";\nimport { createHash } from \"crypto\";\nimport stableStringify from \"json-stable-stringify\";\nimport invert from \"lodash/invert\";\nimport type { Agent as HttpsAgent } from \"node:https\";\nimport { setTimeout as setTimeoutAsync } from \"node:timers/promises\";\nimport type { Logger as PinoLogger } from \"pino\";\n\nimport type { Nullish } from \"../types\";\nimport { Language } from \"../types\";\nimport { assert, assertUnreachable } from \"../utils/errors\";\n\ntype SmartcatCredentials = {\n apiSecret: string;\n accountId: string;\n projectId: string;\n collectionName: string;\n};\n\ntype SmartcatProject = {\n // Workflow type and id mapping for project\n workflowStages: Array<{\n id: string;\n stageType: \"translation\" | \"postediting\";\n }>;\n documents: Array<{\n // Collection name the document belongs to\n name: string;\n // Flag for if auto translations are complete on smartcat side\n pretranslateCompleted: boolean;\n // Workflow progress of a document\n workflowStages: Array<{\n id: string;\n progress: number;\n }>;\n // Target language of the document\n targetLanguage: string;\n }>;\n};\n\nexport enum SmartcatEnvironment {\n Dev = \"proto\",\n Stg = \"qa\",\n NewDesign = \"new-design\",\n Prod = \"prod\",\n}\n\ntype TranslationObject = Record<string, string>;\n\ntype TranslationUploadObject = {\n translations: TranslationObject;\n /**\n * (Optional) Labels that will be appended to all segments in the upload. Existing labels in SC remains untouched.\n */\n appendLabels?: string[];\n};\n\n/**\n * Basic check if given string only consists of digits\n * ! Doesn't support decimal and thousand separated numbers as it's not a relevant practical use case right now\n */\nconst isDigitsOnlyRegex = /^\\d+$/;\n\nexport type SmartcatApiConfig = {\n auth: SmartcatCredentials;\n /**\n * (optional) Parse single brackets variable delimiters before upstream to Smartcat, from \"{x}\" to \"{{x}}\".\n * @default false\n */\n escapeBracketDelimiters?: boolean;\n /**\n * (optional) Pass https agent to try to keep connections open.\n */\n httpsAgent?: HttpsAgent;\n /**\n * (optional) Languages that will be downloaded from Smartcat.\n * When omitted, all languages will be downloaded.\n */\n targetLanguages?: Language[];\n /**\n * (optional) Custom language to Smartcat locale mapping (e.g. microsite pt differs)\n * When omitted, default mapping will be used.\n */\n languageToSmartcatLocaleMapping?: Record<Language, string>;\n // #############################################################################\n // Logging options\n // #############################################################################\n} & (\n | {\n /**\n * (optional) To enable logging via console.log\n * @default false\n * @deprecated Use newer `logger` option instead, while transitioning for backwards compatibility `enableLogs:\n * true` will utilize console for logging.\n */\n enableLogs?: boolean;\n }\n | {\n /**\n * (optional) Pass Pino or Console (as console.log) instance to enable logging.\n * @default Console\n */\n logger?: PinoLogger | Console;\n }\n) &\n // #############################################################################\n // Suffix options\n // #############################################################################\n (| {\n /**\n * No suffix to be used in translation keys\n * @example 'commons.button.buyNow'\n */\n suffixMode: \"none\";\n }\n | {\n /**\n * Custom suffix to use in translation keys\n * @example `commons.button.buyNow.${suffix}`\n */\n suffixMode: \"custom\";\n /**\n * * ! Must be a non-empty string which doesn't contain the key delimiter \".\" character otherwise will fail\n */\n suffix: string;\n }\n | {\n /**\n * Auto generate (7-character) hash-suffix from the default (english) value\n * @example 'commons.button.buyNow.nk31jnb'\n */\n suffixMode: \"auto\";\n }\n );\n\nconst languageToSmartcatLocaleMapping: Record<Language, string> = {\n [Language.Ar]: \"ar\",\n [Language.De]: \"de\",\n [Language.En]: \"en\",\n [Language.Es]: \"es\",\n [Language.Fr]: \"fr\",\n [Language.El]: \"el\",\n [Language.It]: \"it\",\n [Language.Ja]: \"ja\",\n [Language.Pt]: \"pt-BR\",\n [Language.Zh]: \"zh-Hans\",\n [Language.Tw]: \"zh-Hant-TW\",\n};\n\n/**\n * ####################################################################################\n * # Description:\n * - Uploading a local source of truth (English) locale file to a Smartcat project.\n * Before uploading locale file, a hash is created from the value of the text entry and added as suffix to the key of the text entry.\n *\n * - Downloading translated locale files and only keep translation entries where the \"key.{hash of value}\"\n * matches exactly to the source of truth \"key.{hash of value}\"\n *\n * # Script usage:\n * - Running `runFullSync` will first upload a source of truth locale file to Smartcat,\n * then we poll the smartcat severs until the new locales are full translated by Smartcat AI.\n * When translations are done, we download and process the translated files.\n *\n * - Each of these actions can be run separately as well.\n * ####################################################################################\n */\nexport class SmartcatApi {\n private projectId: string;\n private collectionName: string;\n private axios: AxiosInstance;\n private logger?: PinoLogger | Console;\n private escapeBracketDelimiters: boolean = false;\n private suffix: string | null;\n private targetLanguages: Language[] | undefined;\n private languageToSmartcatLocaleMapping: Record<Language, string> =\n languageToSmartcatLocaleMapping;\n /**\n * Depending on input we might need or not need suffixes.\n */\n private hasSuffix: boolean;\n\n /**\n * Delimiter used to separate translation key \"parts\"\n */\n public keyDelimiter = \".\";\n\n constructor(config: SmartcatApiConfig) {\n // Legacy\n if (\"enableLogs\" in config) {\n // eslint-disable-next-line sonarjs/deprecation\n this.logger = config.enableLogs ? console : undefined;\n // Newer\n } else if (\"logger\" in config) {\n this.logger = config.logger;\n }\n this.escapeBracketDelimiters = !!config.escapeBracketDelimiters;\n this.projectId = config.auth.projectId;\n this.collectionName = config.auth.collectionName;\n this.targetLanguages = config.targetLanguages;\n\n // Language mapping override\n if (config.languageToSmartcatLocaleMapping) {\n this.languageToSmartcatLocaleMapping =\n config.languageToSmartcatLocaleMapping;\n }\n\n switch (config.suffixMode) {\n case \"none\": {\n this.suffix = null;\n this.hasSuffix = false;\n break;\n }\n case \"custom\": {\n const suffixRegex = /^[a-zA-Z0-9-]+$/;\n\n if (\n // Empty string\n !config.suffix ||\n // Contains invalid characters\n !suffixRegex.test(config.suffix) ||\n // Contains key delimiter\n config.suffix.indexOf(this.keyDelimiter) > -1\n ) {\n throw new Error(\n \"Invalid custom suffix provided for SmartcatApi.suffix. Can only contain alphanumeric characters and hyphens.\",\n );\n }\n this.suffix = config.suffix;\n this.hasSuffix = true;\n break;\n }\n case \"auto\": {\n this.suffix = null;\n this.hasSuffix = true;\n break;\n }\n default:\n throw new Error(`Unsupported or missing value for SmartcatApi.suffix`);\n }\n\n const authBase64 = Buffer.from(\n `${config.auth.accountId}:${config.auth.apiSecret}`,\n ).toString(\"base64\");\n\n this.axios = axios.create({\n httpsAgent: config.httpsAgent,\n baseURL: \"https://us.smartcat.ai/api/\",\n headers: {\n Authorization: `Basic ${authBase64}`,\n },\n });\n }\n\n // #############################################################################\n // Internal helpers\n // #############################################################################\n /**\n * Smartcat locale --> enum Language mapping for filenames\n */\n private getSmartcatLocaleToLanguageMap() {\n return invert(this.languageToSmartcatLocaleMapping);\n }\n\n // #############################################################################\n // Key/Suffix/Hash helpers\n // #############################################################################\n\n /**\n * Hash the text value from translation entry value from reference language\n */\n private generateHashSuffixFromValue(value: string): string {\n // Using same amount of chars (7) as GIT uses for shorthand hash.\n const shorthandHashCharCount = 7;\n\n return createHash(\"sha256\")\n .update(value)\n .digest(\"hex\")\n .substring(0, shorthandHashCharCount);\n }\n\n /**\n * Create suffix for given value depending on configuration\n */\n public createSuffix(value: string): string {\n assert(\n this.hasSuffix,\n \"Can't call `createSuffix` for instance without a suffix\",\n );\n\n return this.suffix || this.generateHashSuffixFromValue(value);\n }\n\n /**\n * Util to create translation key.\n * ! Recommended to be used to create key on consumer side of Smartcat class for a consistent experience\n *\n * @example smartcatApi.createTranslationKey(['a', 'b', 'c']) // 'a.b.c'\n */\n public createTranslationKey(parts: string[]): string {\n return parts.join(this.keyDelimiter);\n }\n\n /**\n * Util to parse a translation key\n * ! Recommended to be used to create key on consumer side of Smartcat class for a consistent experience\n *\n * @example smartcatApi.parseTranslationKey('a.b.c'); // ['a', 'b', 'c'];\n */\n public parseTranslationKey(key: string): string[] {\n return key.split(this.keyDelimiter);\n }\n\n /**\n * Returns the key with suffix created by hashing the value.\n */\n public addSuffixToKey(key: string, value: string): string {\n return this.hasSuffix\n ? this.createTranslationKey([key, this.createSuffix(value)])\n : key;\n }\n\n /**\n * Takes a SmartCat text entry key (with hash) and returns the key without it\n */\n public removeSuffixFromKey(key: string): string {\n return this.hasSuffix\n ? this.createTranslationKey(this.parseTranslationKey(key).slice(0, -1))\n : key;\n }\n\n // #############################################################################\n // Transform data helpers\n // #############################################################################\n\n /**\n * Filter out entries that are not included in source of truth\n * translations and remove suffix from keys.\n */\n public processSmartcatTranslations(\n sourceOfTruthTranslations: TranslationObject,\n smartcatTranslations: TranslationObject,\n ): TranslationObject {\n // Append suffix to source of truth translations.\n const sourceOfTruthKeysWithSuffix = new Set(\n Object.entries(sourceOfTruthTranslations).map(([key, value]) =>\n this.addSuffixToKey(key, value),\n ),\n );\n\n // Normalise translated entry keys by removing the hash from key name.\n const result: TranslationObject = {};\n for (const key in smartcatTranslations) {\n // Ignore key from smartcat if not in source-of-truth\n if (!sourceOfTruthKeysWithSuffix.has(key)) {\n continue;\n }\n\n const normalisedKey = this.removeSuffixFromKey(key);\n const value = smartcatTranslations[key];\n\n if (value !== undefined) {\n result[normalisedKey] = value;\n }\n }\n\n return result;\n }\n\n /**\n * Parse string variable delimiters between smartcat and local delimiters.\n * Only top level delimiter pairs that don't have child delimiters or child curly brackets should be transformed.\n */\n private parseVariableDelimiters(\n input: string,\n mode: \"toSmartcatDelimiters\" | \"toLocalDelimiters\",\n ): string {\n /**\n * Constant icu string delimiters that we avoid to transform,\n * can conflict with the variable delimiters without error.\n */\n const icuStringDelimiters = {\n open: \"{\",\n close: \"}\",\n };\n\n /**\n * Evaluate what delimiters to transform from and to\n */\n const delimiterOptions = {\n local: {\n open: \"{\",\n close: \"}\",\n },\n smartcat: {\n open: \"{{\",\n close: \"}}\",\n },\n };\n const delimiters =\n mode === \"toSmartcatDelimiters\"\n ? {\n from: delimiterOptions.local,\n to: delimiterOptions.smartcat,\n }\n : {\n from: delimiterOptions.smartcat,\n to: delimiterOptions.local,\n };\n\n // Cheap check - return unmodified if input does not contain any opening or any closing variable delimiters\n if (\n !input.includes(delimiters.from.open) ||\n !input.includes(delimiters.from.close)\n ) {\n return input;\n }\n\n let result = \"\"; // Final result\n let lastPosition = 0; // This helps in building the result string\n let icuStringDepth = 0;\n /**\n * When finding an opening delimiter, closing delimiter index is already\n * evaluated and therefor we store it until it's reached.\n * Gets reset to `null` when this index in the iteration is reached.\n */\n let nextValidClosingVariableDelimiterIndex: null | number = null;\n\n for (let i = 0; i < input.length; i++) {\n // Hold current char\n const currentChar = input[i];\n\n // If currently inside ICU string, track the depth and continue to next char\n if (icuStringDepth > 0) {\n if (currentChar === icuStringDelimiters.open) {\n icuStringDepth++;\n } else if (currentChar === icuStringDelimiters.close) {\n icuStringDepth--;\n }\n\n continue;\n }\n\n /**\n * Encounter of a closing delimiter\n */\n if (i === nextValidClosingVariableDelimiterIndex) {\n // Get inner content between variable delimiters\n const variableInnerContent = input.slice(\n lastPosition + delimiters.from.open.length,\n i,\n );\n // Transform delimiters\n result += `${delimiters.to.open}${variableInnerContent}${delimiters.to.close}`;\n // Move the last position past this closing brace\n lastPosition = i + delimiters.from.close.length;\n // Reset closing delimiter index\n nextValidClosingVariableDelimiterIndex = null;\n // Go next after closing variable\n continue;\n } else if (nextValidClosingVariableDelimiterIndex !== null) {\n // Go next until reaching closing variable delimiter\n continue;\n }\n\n /**\n * Evaluate if current position is index of an opening delimiter\n */\n const isVariableOpeningBracketPattern =\n input.substring(i, i + delimiters.from.open.length) ===\n delimiters.from.open;\n if (isVariableOpeningBracketPattern) {\n // Evaluate start and end indexes of variable brackets.\n const innerContentStartIndex = i + delimiters.from.open.length;\n const closingVariableDelimiterIndex = input.indexOf(\n delimiters.from.close,\n innerContentStartIndex,\n );\n\n // Check if we can find the closing delimiter, else the opening delimiter can not be valid\n if (closingVariableDelimiterIndex !== -1) {\n // Variable delimiters inner content, excluding the delimiters\n const variableInnerContent = input.substring(\n innerContentStartIndex,\n closingVariableDelimiterIndex,\n );\n // Characters not allowed for variable inner content - helps to avoid transforming ICU string delimiters\n const illegalVariableCharacterRegex = /[{},#]/;\n // If delimiters inner content contains illegal characters, the opening bracket is not a valid variable.\n const isValidVariableOpeningDelimiters =\n !illegalVariableCharacterRegex.test(variableInnerContent);\n\n if (isValidVariableOpeningDelimiters) {\n // Append everything up to this delimiter to the result\n result += input.substring(lastPosition, i);\n // Update the last position to the current index\n lastPosition = i;\n // Store the closing delimiter index\n nextValidClosingVariableDelimiterIndex =\n closingVariableDelimiterIndex;\n } else if (currentChar === icuStringDelimiters.open) {\n // When reached - ICU string begins here\n icuStringDepth++;\n }\n }\n } else if (currentChar === icuStringDelimiters.open) {\n icuStringDepth++;\n }\n }\n\n // Append any remaining part of the input string to result\n result += input.slice(lastPosition);\n return result;\n }\n\n /**\n * Helper to parse variable placeholders for a translation file\n */\n public parseTranslationVariableDelimiters(\n translations: TranslationObject,\n mode: \"toSmartcatDelimiters\" | \"toLocalDelimiters\",\n ): TranslationObject {\n return Object.fromEntries(\n Object.entries(translations).map(([key, value]) => [\n key,\n this.parseVariableDelimiters(value, mode),\n ]),\n );\n }\n\n /**\n * Check if SmartCat has translated all target languages.\n */\n private async checkProjectTranslationStatus(): Promise<boolean> {\n try {\n // Fetch project data\n const res = await this.axios.get(\n `/integration/v1/project/${this.projectId}`,\n );\n const project = res.data as SmartcatProject;\n\n // Find the auto translation workflow id\n const autoTranslationWorkflowId = project.workflowStages.find(\n (workflow) => workflow.stageType === \"translation\",\n )?.id;\n if (!autoTranslationWorkflowId) {\n throw new Error(\n \"Could not find auto translation workflow id in SmartCat project.\",\n );\n }\n\n // Get relevant documents\n const documents = project.documents.filter((doc) => {\n const isInCollection = doc.name === this.collectionName;\n const isRequestedTargetLanguage = Boolean(\n !this.targetLanguages ||\n this.targetLanguages\n ?.map((lang) => this.languageToSmartcatLocaleMapping[lang])\n .includes(doc.targetLanguage),\n );\n\n return isInCollection && isRequestedTargetLanguage;\n });\n\n // Check if all documents have 100% progress in auto translation workflow\n return documents.every((doc) => {\n const autoTranslationWorkflow = doc.workflowStages.find(\n (workflow) => workflow.id === autoTranslationWorkflowId,\n );\n return autoTranslationWorkflow?.progress === 100;\n });\n } catch (error) {\n this.logger?.error(error, \"❌ Failed to get project\");\n throw error;\n }\n }\n\n // #############################################################################\n // Api methods\n // #############################################################################\n\n /**\n * Download translations from Smartcat.\n */\n public async downloadSmartcatTranslations(\n defaultTranslations: TranslationObject,\n options?: {\n /**\n * (optional) Max attempt count for polling download ready status.\n * @default 10\n */\n maxAttemptCount: number;\n /**\n * (optional) Interval in milliseconds between each polling attempt.\n * @default 5000\n */\n intervalMs: number;\n },\n ): Promise<Record<Language, TranslationObject>> {\n const url = `integration/v2/project/${this.projectId}/export`;\n const params = {\n \"completion-state\": \"draft\",\n \"output-file-path-template\": \"{LANGUAGE}.json\",\n collections: this.collectionName,\n zip: \"true\",\n languages: this.targetLanguages\n ?.map((lang) => this.languageToSmartcatLocaleMapping[lang])\n .join(\",\"),\n // FIXME: Look into only exporting values that has changed since last export minus some time via `modified-since`\n };\n\n const smartcatLocaleToLanguageMap = this.getSmartcatLocaleToLanguageMap();\n\n try {\n const exportResponse = await this.axios.post(\n url,\n {},\n {\n params,\n headers: {\n \"Content-Type\": \"application/json-patch+json\",\n },\n },\n );\n const taskID = exportResponse.data;\n\n const pollMaxAttemptCount = options?.maxAttemptCount ?? 10;\n const pollInterval = options?.intervalMs ?? 5000;\n\n const translations: Record<string, TranslationObject> = {};\n let pollAttempt = 0;\n let exportSuccessful = false;\n\n // Polling loop to check if the export is successful\n while (!exportSuccessful && pollAttempt < pollMaxAttemptCount) {\n pollAttempt += 1;\n\n const checkUrl = `integration/v1/document/export/${taskID}/`;\n const checkResponse = await this.axios.get(checkUrl, {\n responseType: \"arraybuffer\",\n });\n\n if (checkResponse.status === 200) {\n // Unzip and discard the zip file, rename.\n const zip = new AdmZip(checkResponse.data);\n const zipEntries = zip.getEntries();\n\n for (const zipEntry of zipEntries) {\n if (!zipEntry.isDirectory) {\n // Extract the content of the file\n const data = zip.readFile(zipEntry);\n\n if (!data) {\n throw new Error(\n \"Exported smarcat document does not include any data\",\n );\n }\n\n const locale = zipEntry.entryName.replace(\".json\", \"\");\n const mappedLocale = smartcatLocaleToLanguageMap[locale];\n\n if (!mappedLocale) {\n this.logger?.warn(\n `Couldn't find map for SmartCat locale ${locale}, skipping file.`,\n );\n continue;\n }\n\n const parsedTranslations = JSON.parse(data.toString());\n\n // Process downloaded translations.\n let result = this.processSmartcatTranslations(\n defaultTranslations,\n parsedTranslations,\n );\n\n // Escape content variable delimiters.\n if (this.escapeBracketDelimiters) {\n result = this.parseTranslationVariableDelimiters(\n result,\n \"toLocalDelimiters\",\n );\n }\n\n translations[mappedLocale] = result;\n }\n }\n\n // Exit loop.\n exportSuccessful = true;\n } else if (checkResponse.status === 204) {\n this.logger?.info(\n `The task ID ${taskID} is not ready yet, will try again`,\n );\n\n // Wait for some time before checking again\n await setTimeoutAsync(pollInterval);\n } else {\n // Unknown status response.\n throw new Error(\n `Failed to download smartcat translations, endpoint returned unknown status code ${checkResponse.status}`,\n );\n }\n }\n\n if (!exportSuccessful) {\n throw new Error(\n \"Max retries reached when trying to export files from SmartCat.\",\n );\n }\n\n this.logger?.info(\n \"✅ Download target language locale documents complete.\",\n );\n\n return translations;\n } catch (error) {\n this.logger?.error(\n error,\n \"❌ Failed downloading locale files from SmartCat\\n\",\n );\n\n throw error;\n }\n }\n\n /**\n * Exposed method for uploading source translations to Smartcat.\n */\n public async uploadSourceTranslations(\n // Source translations that will be uploaded to SmartCat.\n sourceTranslations: TranslationUploadObject | TranslationUploadObject[],\n options?: {\n // When true, deleting all keys in the smartcat collection that does not exist in sourceTranslations.\n deleteMissingKeys?: boolean;\n },\n ): Promise<void> {\n try {\n const rawTranslationUploads = Array.isArray(sourceTranslations)\n ? sourceTranslations\n : [sourceTranslations];\n\n /**\n * Prepare translations for upload by:\n * 1. Ignore non-translatable values.\n * 2. Add suffix to key based on settings.\n * 3. Escape variable delimiters based on settings.\n */\n const preparedTranslationUploads = rawTranslationUploads.map(\n (translationUpload) => {\n let translations: TranslationObject = {};\n\n for (const [key, value] of Object.entries(\n translationUpload.translations,\n )) {\n if (!SmartcatApi.isTranslatableValue(value)) {\n continue;\n }\n const suffixedKey = this.addSuffixToKey(key, value);\n translations[suffixedKey] = value;\n }\n\n // Prepare variable delimiters.\n if (this.escapeBracketDelimiters) {\n translations = this.parseTranslationVariableDelimiters(\n translations,\n \"toSmartcatDelimiters\",\n );\n }\n\n return {\n ...translationUpload,\n translations,\n };\n },\n );\n\n /**\n * Upload all translations together and make the data purge in SC.\n */\n if (options?.deleteMissingKeys) {\n // Merge all prepared translations into one object.\n const combinedTranslations: TranslationObject =\n preparedTranslationUploads.reduce((acc, current) => {\n return { ...acc, ...current.translations };\n }, {});\n\n await this.smartcatUploadRequest(combinedTranslations, {\n deleteMissingKeys: true,\n });\n\n this.logger?.info(\"🧹 Deleted unused translations from Smartcat.\");\n }\n\n /**\n * Upload each translation object separately to apply labels.\n */\n for (const translationUpload of preparedTranslationUploads) {\n await this.smartcatUploadRequest(translationUpload.translations, {\n labels: translationUpload.appendLabels,\n });\n }\n\n this.logger?.info(\"✅ Upload source translations to SmartCat complete.\");\n } catch (error) {\n this.logger?.error(\n error,\n \"❌ Failed uploading source translations to SmartCat.\",\n );\n throw error;\n }\n }\n\n /**\n * Internal helper method for uploading source translations to Smartcat.\n */\n private async smartcatUploadRequest(\n sourceTranslations: TranslationObject,\n options?: {\n labels?: string[];\n deleteMissingKeys?: boolean;\n },\n ) {\n const labels =\n options?.labels\n ?.map((label) => label.trim())\n .filter(Boolean)\n .join(\",\") || \"\";\n\n const queryParams = {\n format: \"json\",\n language: \"en\",\n collection: this.collectionName,\n \"delete-missing-keys\": !!options?.deleteMissingKeys,\n labels,\n };\n\n const url = `integration/v2/project/${this.projectId}/import`;\n\n const smartCatSourceLanguageBuffer = Buffer.from(\n JSON.stringify(sourceTranslations),\n );\n\n const fileBlob = new Blob([smartCatSourceLanguageBuffer], {\n type: \"application/octet-stream\",\n });\n\n const formData = new FormData();\n formData.append(\"file\", fileBlob);\n\n await this.axios.post(url, formData, {\n params: queryParams,\n headers: { \"Content-Type\": \"multipart/form-data\" },\n });\n }\n\n /**\n * Wait for SmartCat to fully translate all target languages.\n */\n public pollAndWaitForCompletedTranslations = async (\n pollRunLimit = 20,\n pollIntervalMs = 10000,\n ): Promise<boolean> => {\n let pollRunCount = 0;\n let translationCompleted = false;\n\n while (!translationCompleted && pollRunCount < pollRunLimit) {\n this.logger?.info(`⌛ SmartCat translations in progress.`);\n\n translationCompleted = await this.checkProjectTranslationStatus();\n pollRunCount += 1;\n\n if (!translationCompleted) {\n await setTimeoutAsync(pollIntervalMs);\n }\n }\n\n /**\n * HACK\n * Since there is a bug with smartcat returning true for `pretranslateCompleted`\n * before they are updated in smartcat. We implement an artificial sleep to let\n * smartcat update the target translations before we download them.\n */\n if (translationCompleted) {\n await setTimeoutAsync(60000);\n }\n\n this.logger?.info(\n translationCompleted\n ? \"✅ SmartCat translations completed.\"\n : \"❌ Max retries reached when waiting for SmartCat translations to complete.\",\n );\n\n return translationCompleted;\n };\n\n /**\n * Static util to prettify translation for writing to file-system\n */\n static readonly prettifyTranslation = (\n translation: TranslationObject,\n ): string => {\n return (\n stableStringify(translation, { space: 2 }) +\n // Add EOF newline\n `\\n`\n );\n };\n\n /**\n * Checks if given value is translatable a.k.a if it's worth sending over to smartcat to translate\n */\n static readonly isTranslatableValue = (value: Nullish<string>): boolean => {\n // Trim to check if given string isn't just spaces which is not worth translating\n const parsedValue = value?.trim();\n\n // Ignore empty values\n if (!parsedValue) {\n return false;\n }\n\n // Don't translate values that are digits only\n return !isDigitsOnlyRegex.test(parsedValue);\n };\n\n /**\n * Centralized method to get Smartcat label based on environment.\n * ! Change with caution as it impacts how translaitons will be read from Smartcat.\n */\n static readonly getSmartcatLabel = (env: SmartcatEnvironment): string => {\n switch (env) {\n case SmartcatEnvironment.Dev:\n return \"DEV\";\n case SmartcatEnvironment.Stg:\n return \"STG\";\n // ! Not really reusable for other projects, didn't make sense right now to create generic label for it\n case SmartcatEnvironment.NewDesign:\n return \"NEW-DESIGN\";\n case SmartcatEnvironment.Prod:\n return \"MAIN\";\n default: {\n assertUnreachable(env);\n }\n }\n };\n\n /**\n * Get smartcat environment based on branch name\n */\n static readonly getSmartcatEnvironmentFromGhBranchName = (\n ghRepositoryBranchName: string,\n ): SmartcatEnvironment => {\n switch (ghRepositoryBranchName) {\n case \"master\":\n case \"main\": {\n return SmartcatEnvironment.Prod;\n }\n case \"new-design\": {\n return SmartcatEnvironment.NewDesign;\n }\n case \"beta\": // For store.core beta releases\n case \"stg\": // Historical GH repos\n case \"qa\": {\n return SmartcatEnvironment.Stg;\n }\n case \"alpha\": // For store.core alpha releases\n case \"dev\": // Historical GH repos\n case \"proto\": {\n return SmartcatEnvironment.Dev;\n }\n\n default: {\n throw new Error(\n `Unsupported branch name ${ghRepositoryBranchName} for Smartcat environment.`,\n );\n }\n }\n };\n}\n"],"names":["SmartcatEnvironment","isDigitsOnlyRegex","languageToSmartcatLocaleMapping","Language","Ar","De","En","Es","Fr","El","It","Ja","Pt","Zh","Tw","_SmartcatApi","constructor","config","__publicField","pollRunLimit","pollIntervalMs","pollRunCount","translationCompleted","logger","info","checkProjectTranslationStatus","setTimeoutAsync","enableLogs","console","escapeBracketDelimiters","projectId","auth","collectionName","targetLanguages","suffixMode","suffix","hasSuffix","suffixRegex","test","indexOf","keyDelimiter","Error","authBase64","Buffer","from","accountId","apiSecret","toString","axios","create","httpsAgent","baseURL","headers","Authorization","getSmartcatLocaleToLanguageMap","invert","generateHashSuffixFromValue","value","shorthandHashCharCount","createHash","update","digest","substring","createSuffix","assert","createTranslationKey","parts","join","parseTranslationKey","key","split","addSuffixToKey","removeSuffixFromKey","slice","processSmartcatTranslations","sourceOfTruthTranslations","smartcatTranslations","sourceOfTruthKeysWithSuffix","Set","Object","entries","map","result","has","normalisedKey","parseVariableDelimiters","input","mode","icuStringDelimiters","open","close","delimiterOptions","local","smartcat","delimiters","to","includes","lastPosition","icuStringDepth","nextValidClosingVariableDelimiterIndex","i","length","currentChar","variableInnerContent","isVariableOpeningBracketPattern","innerContentStartIndex","closingVariableDelimiterIndex","illegalVariableCharacterRegex","isValidVariableOpeningDelimiters","parseTranslationVariableDelimiters","translations","fromEntries","res","get","project","data","autoTranslationWorkflowId","workflowStages","find","workflow","stageType","id","documents","filter","doc","isInCollection","name","isRequestedTargetLanguage","Boolean","lang","targetLanguage","every","autoTranslationWorkflow","progress","error","downloadSmartcatTranslations","defaultTranslations","options","url","params","collections","zip","languages","smartcatLocaleToLanguageMap","exportResponse","post","taskID","pollMaxAttemptCount","maxAttemptCount","pollInterval","intervalMs","pollAttempt","exportSuccessful","checkUrl","checkResponse","responseType","status","AdmZip","zipEntries","getEntries","zipEntry","isDirectory","readFile","locale","entryName","replace","mappedLocale","warn","parsedTranslations","JSON","parse","uploadSourceTranslations","sourceTranslations","rawTranslationUploads","Array","isArray","preparedTranslationUploads","translationUpload","isTranslatableValue","suffixedKey","deleteMissingKeys","combinedTranslations","reduce","acc","current","smartcatUploadRequest","labels","appendLabels","label","trim","queryParams","format","language","collection","smartCatSourceLanguageBuffer","stringify","fileBlob","Blob","type","formData","FormData","append","translation","stableStringify","space","parsedValue","env","assertUnreachable","ghRepositoryBranchName","SmartcatApi"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CY,IAAAA,mBAAA,GAAA,gBAAAA,oBAAL,IAAA;EACLA,qBAAA,KAAM,CAAA,GAAA,OAAA;EACNA,qBAAA,KAAM,CAAA,GAAA,IAAA;EACNA,qBAAA,WAAY,CAAA,GAAA,YAAA;EACZA,qBAAA,MAAO,CAAA,GAAA,MAAA;EAJGA,OAAAA,oBAAAA;AAAA,CAAA,EAAAA,mBAAA,IAAA,CAAA,CAAA,CAAA;AAqBZ,MAAMC,iBAAoB,GAAA,OAAA;AA0E1B,MAAMC,+BAA4D,GAAA;EAChE,CAACC,SAAAA,CAAAA,QAAS,CAAAC,EAAE,GAAG,IAAA;EACf,CAACD,SAAAA,CAAAA,QAAS,CAAAE,EAAE,GAAG,IAAA;EACf,CAACF,SAAAA,CAAAA,QAAS,CAAAG,EAAE,GAAG,IAAA;EACf,CAACH,SAAAA,CAAAA,QAAS,CAAAI,EAAE,GAAG,IAAA;EACf,CAACJ,SAAAA,CAAAA,QAAS,CAAAK,EAAE,GAAG,IAAA;EACf,CAACL,SAAAA,CAAAA,QAAS,CAAAM,EAAE,GAAG,IAAA;EACf,CAACN,SAAAA,CAAAA,QAAS,CAAAO,EAAE,GAAG,IAAA;EACf,CAACP,SAAAA,CAAAA,QAAS,CAAAQ,EAAE,GAAG,IAAA;EACf,CAACR,SAAAA,CAAAA,QAAS,CAAAS,EAAE,GAAG,OAAA;EACf,CAACT,SAAAA,CAAAA,QAAS,CAAAU,EAAE,GAAG,SAAA;EACf,CAACV,SAAAA,CAAAA,QAAS,CAAAW,EAAE,GAAG;AACjB,CAAA;AAmBO,MAAMC,YAAA,GAAN,MAAMA,YAAY,CAAA;EAoBvBC,Y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BAAkB,CAAAqC,IAAA,CAAKuK,WAAW,CAAA;AAC5C,CAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAMA3L,aA1vBW,CAAAH,YAAA,EA0vBK,kBAAmB,EAAC+L,GAAqC,IAAA;EACvE,QAAQA,GAAK;IACX,KAAK,OAAA,CAAA;MACI,OAAA,KAAA;IACT,KAAK,IAAA,CAAA;MACI,OAAA,KAAA;IAAA;IAET,KAAK,YAAA,CAAA;MACI,OAAA,YAAA;IACT,KAAK,MAAA,CAAA;MACI,OAAA,MAAA;IACT;MAAS;QACPC,MAAA,CAAAA,iBAAA,CAAkBD,GAAG,CAAA;MACvB;EACF;AACF,CAAA,CAAA;AAAA;AAAA;AAAA;AAKA5L,aA9wBW,CAAAH,YAAA,EA8wBK,wCAAyC,EACvDiM,sBACwB,IAAA;EACxB,QAAQA,sBAAwB;IAC9B,KAAK,QAAA;IACL,KAAK,MAAQ;MAAA;QACJ,OAAA,MAAA,CAAA;MACT;IACA,KAAK,YAAc;MAAA;QACV,OAAA,YAAA,CAAA;MACT;IACA,KAAK,MAAA;IAAA;IACL,KAAK,KAAA;IAAA;IACL,KAAK,IAAM;MAAA;QACF,OAAA,IAAA,CAAA;MACT;IACA,KAAK,OAAA;IAAA;IACL,KAAK,KAAA;IAAA;IACL,KAAK,OAAS;MAAA;QACL,OAAA,OAAA,CAAA;MACT;IAEA;MAAS;QACP,MAAM,IAAIvK,KAAA,CACR,2BAA2BuK,sBAAsB,4BAAA,CACnD;MACF;EACF;AACF,CAAA,CAAA;AA1yBK,IAAMC,WAAN,GAAAlM,YAAA;;"}
1
+ {"version":3,"file":"smartcat.js","sources":["../../src/apis/smartcat.ts"],"sourcesContent":["/* eslint-disable no-await-in-loop */\nimport AdmZip from \"adm-zip\";\nimport type { AxiosInstance } from \"axios\";\nimport axios from \"axios\";\nimport { createHash } from \"crypto\";\nimport stableStringify from \"json-stable-stringify\";\nimport invert from \"lodash/invert\";\nimport type { Agent as HttpsAgent } from \"node:https\";\nimport { setTimeout as setTimeoutAsync } from \"node:timers/promises\";\nimport type { Logger as PinoLogger } from \"pino\";\n\nimport type { Nullish } from \"../types\";\nimport { Language } from \"../types\";\nimport { assert, assertUnreachable } from \"../utils/errors\";\n\ntype SmartcatCredentials = {\n apiSecret: string;\n accountId: string;\n projectId: string;\n collectionName: string;\n};\n\ntype SmartcatProject = {\n // Workflow type and id mapping for project\n workflowStages: Array<{\n id: string;\n stageType: \"translation\" | \"postediting\";\n }>;\n documents: Array<{\n // Collection name the document belongs to\n name: string;\n // Flag for if auto translations are complete on smartcat side\n pretranslateCompleted: boolean;\n // Workflow progress of a document\n workflowStages: Array<{\n id: string;\n progress: number;\n }>;\n // Target language of the document\n targetLanguage: string;\n }>;\n};\n\nexport enum SmartcatEnvironment {\n Dev = \"proto\",\n Stg = \"qa\",\n NewDesign = \"new-design\",\n Prod = \"prod\",\n}\n\ntype TranslationObject = Record<string, string>;\n\ntype TranslationUploadObject = {\n translations: TranslationObject;\n /**\n * (Optional) Labels that will be appended to all segments in the upload. Existing labels in SC remains untouched.\n */\n appendLabels?: string[];\n};\n\n/**\n * Basic check if given string only consists of digits\n * ! Doesn't support decimal and thousand separated numbers as it's not a relevant practical use case right now\n */\nconst isDigitsOnlyRegex = /^\\d+$/;\n\nexport type SmartcatApiConfig = {\n auth: SmartcatCredentials;\n /**\n * (optional) Parse single brackets variable delimiters before upstream to Smartcat, from \"{x}\" to \"{{x}}\".\n * @default false\n */\n escapeBracketDelimiters?: boolean;\n /**\n * (optional) Pass https agent to try to keep connections open.\n */\n httpsAgent?: HttpsAgent;\n /**\n * (optional) Languages that will be downloaded from Smartcat.\n * When omitted, all languages will be downloaded.\n */\n targetLanguages?: Language[];\n /**\n * (optional) Custom language to Smartcat locale mapping (e.g. microsite pt differs)\n * When omitted, default mapping will be used.\n */\n languageToSmartcatLocaleMapping?: Record<Language, string>;\n // #############################################################################\n // Logging options\n // #############################################################################\n} & (\n | {\n /**\n * (optional) To enable logging via console.log\n * @default false\n * @deprecated Use newer `logger` option instead, while transitioning for backwards compatibility `enableLogs:\n * true` will utilize console for logging.\n */\n enableLogs?: boolean;\n }\n | {\n /**\n * (optional) Pass Pino or Console (as console.log) instance to enable logging.\n * @default Console\n */\n logger?: PinoLogger | Console;\n }\n) &\n // #############################################################################\n // Suffix options\n // #############################################################################\n (| {\n /**\n * No suffix to be used in translation keys\n * @example 'commons.button.buyNow'\n */\n suffixMode: \"none\";\n }\n | {\n /**\n * Custom suffix to use in translation keys\n * @example `commons.button.buyNow.${suffix}`\n */\n suffixMode: \"custom\";\n /**\n * * ! Must be a non-empty string which doesn't contain the key delimiter \".\" character otherwise will fail\n */\n suffix: string;\n }\n | {\n /**\n * Auto generate (7-character) hash-suffix from the default (english) value\n * @example 'commons.button.buyNow.nk31jnb'\n */\n suffixMode: \"auto\";\n }\n );\n\nconst languageToSmartcatLocaleMapping: Record<Language, string> = {\n [Language.Ar]: \"ar\",\n [Language.De]: \"de\",\n [Language.En]: \"en\",\n [Language.Es]: \"es\",\n [Language.Fr]: \"fr\",\n [Language.El]: \"el\",\n [Language.It]: \"it\",\n [Language.Ja]: \"ja\",\n [Language.Pt]: \"pt-BR\",\n [Language.Zh]: \"zh-Hans\",\n [Language.Tw]: \"zh-Hant-TW\",\n};\n\n/**\n * ####################################################################################\n * # Description:\n * - Uploading a local source of truth (English) locale file to a Smartcat project.\n * Before uploading locale file, a hash is created from the value of the text entry and added as suffix to the key of the text entry.\n *\n * - Downloading translated locale files and only keep translation entries where the \"key.{hash of value}\"\n * matches exactly to the source of truth \"key.{hash of value}\"\n *\n * # Script usage:\n * - Running `runFullSync` will first upload a source of truth locale file to Smartcat,\n * then we poll the smartcat severs until the new locales are full translated by Smartcat AI.\n * When translations are done, we download and process the translated files.\n *\n * - Each of these actions can be run separately as well.\n * ####################################################################################\n */\nexport class SmartcatApi {\n private projectId: string;\n private collectionName: string;\n private axios: AxiosInstance;\n private logger?: PinoLogger | Console;\n private escapeBracketDelimiters: boolean = false;\n private suffix: string | null;\n private targetLanguages: Language[] | undefined;\n private languageToSmartcatLocaleMapping: Record<Language, string> =\n languageToSmartcatLocaleMapping;\n /**\n * Depending on input we might need or not need suffixes.\n */\n private hasSuffix: boolean;\n\n /**\n * Delimiter used to separate translation key \"parts\"\n */\n public keyDelimiter = \".\";\n\n constructor(config: SmartcatApiConfig) {\n // Legacy\n if (\"enableLogs\" in config) {\n // eslint-disable-next-line sonarjs/deprecation\n this.logger = config.enableLogs ? console : undefined;\n // Newer\n } else if (\"logger\" in config) {\n this.logger = config.logger;\n }\n this.escapeBracketDelimiters = !!config.escapeBracketDelimiters;\n this.projectId = config.auth.projectId;\n this.collectionName = config.auth.collectionName;\n this.targetLanguages = config.targetLanguages;\n\n // Language mapping override\n if (config.languageToSmartcatLocaleMapping) {\n this.languageToSmartcatLocaleMapping =\n config.languageToSmartcatLocaleMapping;\n }\n\n switch (config.suffixMode) {\n case \"none\": {\n this.suffix = null;\n this.hasSuffix = false;\n break;\n }\n case \"custom\": {\n const suffixRegex = /^[a-zA-Z0-9-]+$/;\n\n if (\n // Empty string\n !config.suffix ||\n // Contains invalid characters\n !suffixRegex.test(config.suffix) ||\n // Contains key delimiter\n config.suffix.indexOf(this.keyDelimiter) > -1\n ) {\n throw new Error(\n \"Invalid custom suffix provided for SmartcatApi.suffix. Can only contain alphanumeric characters and hyphens.\",\n );\n }\n this.suffix = config.suffix;\n this.hasSuffix = true;\n break;\n }\n case \"auto\": {\n this.suffix = null;\n this.hasSuffix = true;\n break;\n }\n default:\n throw new Error(`Unsupported or missing value for SmartcatApi.suffix`);\n }\n\n const authBase64 = Buffer.from(\n `${config.auth.accountId}:${config.auth.apiSecret}`,\n ).toString(\"base64\");\n\n this.axios = axios.create({\n httpsAgent: config.httpsAgent,\n baseURL: \"https://us.smartcat.ai/api/\",\n headers: {\n Authorization: `Basic ${authBase64}`,\n },\n });\n }\n\n // #############################################################################\n // Internal helpers\n // #############################################################################\n /**\n * Smartcat locale --> enum Language mapping for filenames\n */\n private getSmartcatLocaleToLanguageMap() {\n return invert(this.languageToSmartcatLocaleMapping);\n }\n\n // #############################################################################\n // Key/Suffix/Hash helpers\n // #############################################################################\n\n /**\n * Hash the text value from translation entry value from reference language\n */\n private generateHashSuffixFromValue(value: string): string {\n // Using same amount of chars (7) as GIT uses for shorthand hash.\n const shorthandHashCharCount = 7;\n\n return createHash(\"sha256\")\n .update(value)\n .digest(\"hex\")\n .substring(0, shorthandHashCharCount);\n }\n\n /**\n * Create suffix for given value depending on configuration\n */\n public createSuffix(value: string): string {\n assert(\n this.hasSuffix,\n \"Can't call `createSuffix` for instance without a suffix\",\n );\n\n return this.suffix || this.generateHashSuffixFromValue(value);\n }\n\n /**\n * Util to create translation key.\n * ! Recommended to be used to create key on consumer side of Smartcat class for a consistent experience\n *\n * @example smartcatApi.createTranslationKey(['a', 'b', 'c']) // 'a.b.c'\n */\n public createTranslationKey(parts: string[]): string {\n return parts.join(this.keyDelimiter);\n }\n\n /**\n * Util to parse a translation key\n * ! Recommended to be used to create key on consumer side of Smartcat class for a consistent experience\n *\n * @example smartcatApi.parseTranslationKey('a.b.c'); // ['a', 'b', 'c'];\n */\n public parseTranslationKey(key: string): string[] {\n return key.split(this.keyDelimiter);\n }\n\n /**\n * Returns the key with suffix created by hashing the value.\n */\n public addSuffixToKey(key: string, value: string): string {\n return this.hasSuffix\n ? this.createTranslationKey([key, this.createSuffix(value)])\n : key;\n }\n\n /**\n * Takes a SmartCat text entry key (with hash) and returns the key without it\n */\n public removeSuffixFromKey(key: string): string {\n return this.hasSuffix\n ? this.createTranslationKey(this.parseTranslationKey(key).slice(0, -1))\n : key;\n }\n\n // #############################################################################\n // Transform data helpers\n // #############################################################################\n\n /**\n * Filter out entries that are not included in source of truth\n * translations and remove suffix from keys.\n */\n public processSmartcatTranslations(\n sourceOfTruthTranslations: TranslationObject,\n smartcatTranslations: TranslationObject,\n ): TranslationObject {\n // Append suffix to source of truth translations.\n const sourceOfTruthKeysWithSuffix = new Set(\n Object.entries(sourceOfTruthTranslations).map(([key, value]) =>\n this.addSuffixToKey(key, value),\n ),\n );\n\n // Normalise translated entry keys by removing the hash from key name.\n const result: TranslationObject = {};\n for (const key in smartcatTranslations) {\n // Ignore key from smartcat if not in source-of-truth\n if (!sourceOfTruthKeysWithSuffix.has(key)) {\n continue;\n }\n\n const normalisedKey = this.removeSuffixFromKey(key);\n const value = smartcatTranslations[key];\n\n if (value !== undefined) {\n result[normalisedKey] = value;\n }\n }\n\n return result;\n }\n\n /**\n * Parse string variable delimiters between smartcat and local delimiters.\n * Only top level delimiter pairs that don't have child delimiters or child curly brackets should be transformed.\n */\n private parseVariableDelimiters(\n input: string,\n mode: \"toSmartcatDelimiters\" | \"toLocalDelimiters\",\n ): string {\n /**\n * Constant icu string delimiters that we avoid to transform,\n * can conflict with the variable delimiters without error.\n */\n const icuStringDelimiters = {\n open: \"{\",\n close: \"}\",\n };\n\n /**\n * Evaluate what delimiters to transform from and to\n */\n const delimiterOptions = {\n local: {\n open: \"{\",\n close: \"}\",\n },\n smartcat: {\n open: \"{{\",\n close: \"}}\",\n },\n };\n const delimiters =\n mode === \"toSmartcatDelimiters\"\n ? {\n from: delimiterOptions.local,\n to: delimiterOptions.smartcat,\n }\n : {\n from: delimiterOptions.smartcat,\n to: delimiterOptions.local,\n };\n\n // Cheap check - return unmodified if input does not contain any opening or any closing variable delimiters\n if (\n !input.includes(delimiters.from.open) ||\n !input.includes(delimiters.from.close)\n ) {\n return input;\n }\n\n let result = \"\"; // Final result\n let lastPosition = 0; // This helps in building the result string\n let icuStringDepth = 0;\n /**\n * When finding an opening delimiter, closing delimiter index is already\n * evaluated and therefor we store it until it's reached.\n * Gets reset to `null` when this index in the iteration is reached.\n */\n let nextValidClosingVariableDelimiterIndex: null | number = null;\n\n for (let i = 0; i < input.length; i++) {\n // Hold current char\n const currentChar = input[i];\n\n // If currently inside ICU string, track the depth and continue to next char\n if (icuStringDepth > 0) {\n if (currentChar === icuStringDelimiters.open) {\n icuStringDepth++;\n } else if (currentChar === icuStringDelimiters.close) {\n icuStringDepth--;\n }\n\n continue;\n }\n\n /**\n * Encounter of a closing delimiter\n */\n if (i === nextValidClosingVariableDelimiterIndex) {\n // Get inner content between variable delimiters\n const variableInnerContent = input.slice(\n lastPosition + delimiters.from.open.length,\n i,\n );\n // Transform delimiters\n result += `${delimiters.to.open}${variableInnerContent}${delimiters.to.close}`;\n // Move the last position past this closing brace\n lastPosition = i + delimiters.from.close.length;\n // Reset closing delimiter index\n nextValidClosingVariableDelimiterIndex = null;\n // Go next after closing variable\n continue;\n } else if (nextValidClosingVariableDelimiterIndex !== null) {\n // Go next until reaching closing variable delimiter\n continue;\n }\n\n /**\n * Evaluate if current position is index of an opening delimiter\n */\n const isVariableOpeningBracketPattern =\n input.substring(i, i + delimiters.from.open.length) ===\n delimiters.from.open;\n if (isVariableOpeningBracketPattern) {\n // Evaluate start and end indexes of variable brackets.\n const innerContentStartIndex = i + delimiters.from.open.length;\n const closingVariableDelimiterIndex = input.indexOf(\n delimiters.from.close,\n innerContentStartIndex,\n );\n\n // Check if we can find the closing delimiter, else the opening delimiter can not be valid\n if (closingVariableDelimiterIndex !== -1) {\n // Variable delimiters inner content, excluding the delimiters\n const variableInnerContent = input.substring(\n innerContentStartIndex,\n closingVariableDelimiterIndex,\n );\n // Characters not allowed for variable inner content - helps to avoid transforming ICU string delimiters\n const illegalVariableCharacterRegex = /[{},#]/;\n // If delimiters inner content contains illegal characters, the opening bracket is not a valid variable.\n const isValidVariableOpeningDelimiters =\n !illegalVariableCharacterRegex.test(variableInnerContent);\n\n if (isValidVariableOpeningDelimiters) {\n // Append everything up to this delimiter to the result\n result += input.substring(lastPosition, i);\n // Update the last position to the current index\n lastPosition = i;\n // Store the closing delimiter index\n nextValidClosingVariableDelimiterIndex =\n closingVariableDelimiterIndex;\n } else if (currentChar === icuStringDelimiters.open) {\n // When reached - ICU string begins here\n icuStringDepth++;\n }\n }\n } else if (currentChar === icuStringDelimiters.open) {\n icuStringDepth++;\n }\n }\n\n // Append any remaining part of the input string to result\n result += input.slice(lastPosition);\n return result;\n }\n\n /**\n * Helper to parse variable placeholders for a translation file\n */\n public parseTranslationVariableDelimiters(\n translations: TranslationObject,\n mode: \"toSmartcatDelimiters\" | \"toLocalDelimiters\",\n ): TranslationObject {\n return Object.fromEntries(\n Object.entries(translations).map(([key, value]) => [\n key,\n this.parseVariableDelimiters(value, mode),\n ]),\n );\n }\n\n /**\n * Check if SmartCat has translated all target languages.\n */\n private async checkProjectTranslationStatus(): Promise<boolean> {\n try {\n // Fetch project data\n const res = await this.axios.get(\n `/integration/v1/project/${this.projectId}`,\n );\n const project = res.data as SmartcatProject;\n\n // Find the auto translation workflow id\n const autoTranslationWorkflowId = project.workflowStages.find(\n (workflow) => workflow.stageType === \"translation\",\n )?.id;\n if (!autoTranslationWorkflowId) {\n throw new Error(\n \"Could not find auto translation workflow id in SmartCat project.\",\n );\n }\n\n // Get relevant documents\n const documents = project.documents.filter((doc) => {\n const isInCollection = doc.name === this.collectionName;\n const isRequestedTargetLanguage = Boolean(\n !this.targetLanguages ||\n this.targetLanguages\n ?.map((lang) => this.languageToSmartcatLocaleMapping[lang])\n .includes(doc.targetLanguage),\n );\n\n return isInCollection && isRequestedTargetLanguage;\n });\n\n // Check if all documents have 100% progress in auto translation workflow\n return documents.every((doc) => {\n const autoTranslationWorkflow = doc.workflowStages.find(\n (workflow) => workflow.id === autoTranslationWorkflowId,\n );\n return autoTranslationWorkflow?.progress === 100;\n });\n } catch (error) {\n this.logger?.error(error, \"❌ Failed to get project\");\n throw error;\n }\n }\n\n // #############################################################################\n // Api methods\n // #############################################################################\n\n /**\n * Download translations from Smartcat.\n */\n public async downloadSmartcatTranslations(\n defaultTranslations: TranslationObject,\n options?: {\n /**\n * (optional) List of labels to export keys that are marked with labels\n * @default undefined\n */\n labels?: string[];\n /**\n * (optional) Max attempt count for polling download ready status.\n * @default 10\n */\n maxAttemptCount?: number;\n /**\n * (optional) Interval in milliseconds between each polling attempt.\n * @default 5000\n */\n intervalMs?: number;\n },\n ): Promise<Record<Language, TranslationObject>> {\n // https://developers.smartcat.com/api/#run-export-from-software-localization-project\n const url = `integration/v2/project/${this.projectId}/export`;\n const params = {\n \"completion-state\": \"draft\",\n \"output-file-path-template\": \"{LANGUAGE}.json\",\n collections: this.collectionName,\n zip: \"true\",\n languages: this.targetLanguages\n ?.map((lang) => this.languageToSmartcatLocaleMapping[lang])\n .join(\",\"),\n labels: SmartcatApi.prepareLabels(options?.labels),\n // FIXME: Look into only exporting values that has changed since last export minus some time via `modified-since`\n };\n\n const smartcatLocaleToLanguageMap = this.getSmartcatLocaleToLanguageMap();\n\n try {\n const exportResponse = await this.axios.post(\n url,\n {},\n {\n params,\n headers: {\n \"Content-Type\": \"application/json-patch+json\",\n },\n },\n );\n const taskID = exportResponse.data;\n\n const pollMaxAttemptCount = options?.maxAttemptCount ?? 10;\n const pollInterval = options?.intervalMs ?? 5000;\n\n const translations: Record<string, TranslationObject> = {};\n let pollAttempt = 0;\n let exportSuccessful = false;\n\n // Polling loop to check if the export is successful\n while (!exportSuccessful && pollAttempt < pollMaxAttemptCount) {\n pollAttempt += 1;\n\n const checkUrl = `integration/v1/document/export/${taskID}/`;\n const checkResponse = await this.axios.get(checkUrl, {\n responseType: \"arraybuffer\",\n // Don't throw errors for all errors below 500 so we can handle it gracefully\n validateStatus: (status) => status < 500,\n });\n\n if (checkResponse.status === 200) {\n // Unzip and discard the zip file, rename.\n const zip = new AdmZip(checkResponse.data);\n const zipEntries = zip.getEntries();\n\n for (const zipEntry of zipEntries) {\n if (!zipEntry.isDirectory) {\n // Extract the content of the file\n const data = zip.readFile(zipEntry);\n\n if (!data) {\n throw new Error(\n \"Exported smarcat document does not include any data\",\n );\n }\n\n const locale = zipEntry.entryName.replace(\".json\", \"\");\n const mappedLocale = smartcatLocaleToLanguageMap[locale];\n\n if (!mappedLocale) {\n this.logger?.warn(\n `Couldn't find map for SmartCat locale ${locale}, skipping file.`,\n );\n continue;\n }\n\n const parsedTranslations = JSON.parse(data.toString());\n\n // Process downloaded translations.\n let result = this.processSmartcatTranslations(\n defaultTranslations,\n parsedTranslations,\n );\n\n // Escape content variable delimiters.\n if (this.escapeBracketDelimiters) {\n result = this.parseTranslationVariableDelimiters(\n result,\n \"toLocalDelimiters\",\n );\n }\n\n translations[mappedLocale] = result;\n }\n }\n\n // Exit loop.\n exportSuccessful = true;\n } else if (checkResponse.status === 204) {\n this.logger?.info(\n `The task ID ${taskID} is not ready yet, will try again`,\n );\n\n // Wait for some time before checking again\n await setTimeoutAsync(pollInterval);\n } else if (checkResponse.status === 404) {\n throw new Error(\n `Failed to download smartcat translations, endpoint returned 404`,\n );\n } else if (checkResponse.status === 422) {\n let response: unknown;\n try {\n // Convert ArrayBuffer to Buffer\n const buffer = Buffer.from(checkResponse.data);\n // Decode buffer to string\n const jsonString = buffer.toString(\"utf8\");\n\n response = jsonString;\n } catch {\n response = \"!! Unable to parse response !!\";\n }\n this.logger?.error(\n response,\n \"❌ Failed to download smartcat translations, endpoint returned 422\",\n );\n throw new Error(\n `Failed to download smartcat translations, endpoint returned 422`,\n );\n } else {\n // Unknown status response.\n throw new Error(\n `Failed to download smartcat translations, endpoint returned unknown status code ${checkResponse.status}`,\n );\n }\n }\n\n if (!exportSuccessful) {\n throw new Error(\n \"Max retries reached when trying to export files from SmartCat.\",\n );\n }\n\n this.logger?.info(\n \"✅ Download target language locale documents complete.\",\n );\n\n return translations;\n } catch (error) {\n this.logger?.error(\n error,\n \"❌ Failed downloading locale files from SmartCat\\n\",\n );\n\n throw error;\n }\n }\n\n /**\n * Exposed method for uploading source translations to Smartcat.\n */\n public async uploadSourceTranslations(\n // Source translations that will be uploaded to SmartCat.\n sourceTranslations: TranslationUploadObject | TranslationUploadObject[],\n options?: {\n // When true, deleting all keys in the smartcat collection that does not exist in sourceTranslations.\n deleteMissingKeys?: boolean;\n },\n ): Promise<void> {\n try {\n const rawTranslationUploads = Array.isArray(sourceTranslations)\n ? sourceTranslations\n : [sourceTranslations];\n\n /**\n * Prepare translations for upload by:\n * 1. Ignore non-translatable values.\n * 2. Add suffix to key based on settings.\n * 3. Escape variable delimiters based on settings.\n */\n const preparedTranslationUploads = rawTranslationUploads.map(\n (translationUpload) => {\n let translations: TranslationObject = {};\n\n for (const [key, value] of Object.entries(\n translationUpload.translations,\n )) {\n if (!SmartcatApi.isTranslatableValue(value)) {\n continue;\n }\n const suffixedKey = this.addSuffixToKey(key, value);\n translations[suffixedKey] = value;\n }\n\n // Prepare variable delimiters.\n if (this.escapeBracketDelimiters) {\n translations = this.parseTranslationVariableDelimiters(\n translations,\n \"toSmartcatDelimiters\",\n );\n }\n\n return {\n ...translationUpload,\n translations,\n };\n },\n );\n\n /**\n * Upload all translations together and make the data purge in SC.\n */\n if (options?.deleteMissingKeys) {\n // Merge all prepared translations into one object.\n const combinedTranslations: TranslationObject =\n preparedTranslationUploads.reduce((acc, current) => {\n return { ...acc, ...current.translations };\n }, {});\n\n await this.smartcatUploadRequest(combinedTranslations, {\n deleteMissingKeys: true,\n });\n\n this.logger?.info(\"🧹 Deleted unused translations from Smartcat.\");\n }\n\n /**\n * Upload each translation object separately to apply labels.\n */\n for (const translationUpload of preparedTranslationUploads) {\n await this.smartcatUploadRequest(translationUpload.translations, {\n labels: translationUpload.appendLabels,\n });\n }\n\n this.logger?.info(\"✅ Upload source translations to SmartCat complete.\");\n } catch (error) {\n this.logger?.error(\n error,\n \"❌ Failed uploading source translations to SmartCat.\",\n );\n throw error;\n }\n }\n\n /**\n * Internal helper method for uploading source translations to Smartcat.\n * @see https://developers.smartcat.com/api/#import-keys-and-values-from-files-into-the-software-localization-project\n */\n private async smartcatUploadRequest(\n sourceTranslations: TranslationObject,\n options?: {\n labels?: string[];\n deleteMissingKeys?: boolean;\n },\n ) {\n const queryParams = {\n format: \"json\",\n language: \"en\",\n collection: this.collectionName,\n \"delete-missing-keys\": !!options?.deleteMissingKeys,\n // TODO: was fallback empty string really needed?\n labels: SmartcatApi.prepareLabels(options?.labels) || \"\",\n };\n\n const url = `integration/v2/project/${this.projectId}/import`;\n\n const smartCatSourceLanguageBuffer = Buffer.from(\n JSON.stringify(sourceTranslations),\n );\n\n const fileBlob = new Blob([smartCatSourceLanguageBuffer], {\n type: \"application/octet-stream\",\n });\n\n const formData = new FormData();\n formData.append(\"file\", fileBlob);\n\n await this.axios.post(url, formData, {\n params: queryParams,\n headers: { \"Content-Type\": \"multipart/form-data\" },\n });\n }\n\n /**\n * Wait for SmartCat to fully translate all target languages.\n */\n public pollAndWaitForCompletedTranslations = async (\n pollRunLimit = 20,\n pollIntervalMs = 10000,\n ): Promise<boolean> => {\n let pollRunCount = 0;\n let translationCompleted = false;\n\n while (!translationCompleted && pollRunCount < pollRunLimit) {\n this.logger?.info(`⌛ SmartCat translations in progress.`);\n\n translationCompleted = await this.checkProjectTranslationStatus();\n pollRunCount += 1;\n\n if (!translationCompleted) {\n await setTimeoutAsync(pollIntervalMs);\n }\n }\n\n /**\n * HACK\n * Since there is a bug with smartcat returning true for `pretranslateCompleted`\n * before they are updated in smartcat. We implement an artificial sleep to let\n * smartcat update the target translations before we download them.\n */\n if (translationCompleted) {\n await setTimeoutAsync(60000);\n }\n\n this.logger?.info(\n translationCompleted\n ? \"✅ SmartCat translations completed.\"\n : \"❌ Max retries reached when waiting for SmartCat translations to complete.\",\n );\n\n return translationCompleted;\n };\n\n /**\n * Static util to prettify translation for writing to file-system\n */\n static readonly prettifyTranslation = (\n translation: TranslationObject,\n ): string => {\n return (\n stableStringify(translation, { space: 2 }) +\n // Add EOF newline\n `\\n`\n );\n };\n\n /**\n * Checks if given value is translatable a.k.a if it's worth sending over to smartcat to translate\n */\n static readonly isTranslatableValue = (value: Nullish<string>): boolean => {\n // Trim to check if given string isn't just spaces which is not worth translating\n const parsedValue = value?.trim();\n\n // Ignore empty values\n if (!parsedValue) {\n return false;\n }\n\n // Don't translate values that are digits only\n return !isDigitsOnlyRegex.test(parsedValue);\n };\n\n /**\n * Centralized method to get Smartcat label based on environment.\n * ! Change with caution as it impacts how translaitons will be read from Smartcat.\n */\n static readonly getSmartcatLabel = (env: SmartcatEnvironment): string => {\n switch (env) {\n case SmartcatEnvironment.Dev:\n return \"DEV\";\n case SmartcatEnvironment.Stg:\n return \"STG\";\n // ! Not really reusable for other projects, didn't make sense right now to create generic label for it\n case SmartcatEnvironment.NewDesign:\n return \"NEW-DESIGN\";\n case SmartcatEnvironment.Prod:\n return \"MAIN\";\n default: {\n assertUnreachable(env);\n }\n }\n };\n\n /**\n * Get smartcat environment based on branch name\n */\n static readonly getSmartcatEnvironmentFromGhBranchName = (\n ghRepositoryBranchName: string,\n ): SmartcatEnvironment => {\n switch (ghRepositoryBranchName) {\n case \"master\":\n case \"main\": {\n return SmartcatEnvironment.Prod;\n }\n case \"new-design\": {\n return SmartcatEnvironment.NewDesign;\n }\n case \"beta\": // For store.core beta releases\n case \"stg\": // Historical GH repos\n case \"qa\": {\n return SmartcatEnvironment.Stg;\n }\n case \"alpha\": // For store.core alpha releases\n case \"dev\": // Historical GH repos\n case \"proto\": {\n return SmartcatEnvironment.Dev;\n }\n\n default: {\n throw new Error(\n `Unsupported branch name ${ghRepositoryBranchName} for Smartcat environment.`,\n );\n }\n }\n };\n\n /**\n * Util to prepare labels for passing into request parameters\n */\n static readonly prepareLabels = (labels?: string[]): string | undefined => {\n return labels\n ?.map((label) => label.trim())\n .filter(Boolean)\n .join(\",\");\n };\n}\n"],"names":["SmartcatEnvironment","isDigitsOnlyRegex","languageToSmartcatLocaleMapping","Language","Ar","De","En","Es","Fr","El","It","Ja","Pt","Zh","Tw","_SmartcatApi","constructor","config","__publicField","pollRunLimit","pollIntervalMs","pollRunCount","translationCompleted","logger","info","checkProjectTranslationStatus","setTimeoutAsync","enableLogs","console","escapeBracketDelimiters","projectId","auth","collectionName","targetLanguages","suffixMode","suffix","hasSuffix","suffixRegex","test","indexOf","keyDelimiter","Error","authBase64","Buffer","from","accountId","apiSecret","toString","axios","create","httpsAgent","baseURL","headers","Authorization","getSmartcatLocaleToLanguageMap","invert","generateHashSuffixFromValue","value","shorthandHashCharCount","createHash","update","digest","substring","createSuffix","assert","createTranslationKey","parts","join","parseTranslationKey","key","split","addSuffixToKey","removeSuffixFromKey","slice","processSmartcatTranslations","sourceOfTruthTranslations","smartcatTranslations","sourceOfTruthKeysWithSuffix","Set","Object","entries","map","result","has","normalisedKey","parseVariableDelimiters","input","mode","icuStringDelimiters","open","close","delimiterOptions","local","smartcat","delimiters","to","includes","lastPosition","icuStringDepth","nextValidClosingVariableDelimiterIndex","i","length","currentChar","variableInnerContent","isVariableOpeningBracketPattern","innerContentStartIndex","closingVariableDelimiterIndex","illegalVariableCharacterRegex","isValidVariableOpeningDelimiters","parseTranslationVariableDelimiters","translations","fromEntries","res","get","project","data","autoTranslationWorkflowId","workflowStages","find","workflow","stageType","id","documents","filter","doc","isInCollection","name","isRequestedTargetLanguage","Boolean","lang","targetLanguage","every","autoTranslationWorkflow","progress","error","downloadSmartcatTranslations","defaultTranslations","options","url","params","collections","zip","languages","labels","prepareLabels","smartcatLocaleToLanguageMap","exportResponse","post","taskID","pollMaxAttemptCount","maxAttemptCount","pollInterval","intervalMs","pollAttempt","exportSuccessful","checkUrl","checkResponse","responseType","validateStatus","status","AdmZip","zipEntries","getEntries","zipEntry","isDirectory","readFile","locale","entryName","replace","mappedLocale","warn","parsedTranslations","JSON","parse","response","buffer","jsonString","uploadSourceTranslations","sourceTranslations","rawTranslationUploads","Array","isArray","preparedTranslationUploads","translationUpload","isTranslatableValue","suffixedKey","deleteMissingKeys","combinedTranslations","reduce","acc","current","smartcatUploadRequest","appendLabels","queryParams","format","language","collection","smartCatSourceLanguageBuffer","stringify","fileBlob","Blob","type","formData","FormData","append","translation","stableStringify","space","parsedValue","trim","env","assertUnreachable","ghRepositoryBranchName","label","SmartcatApi"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CY,IAAAA,mBAAA,GAAA,gBAAAA,oBAAL,IAAA;EAC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