@ubnt/store.core 9.64.1-new-design.2 → 9.65.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1056) hide show
  1. package/CHANGELOG.md +620 -145
  2. package/lib/_virtual/_virtual_multi-entry.js +25 -15
  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 +2 -12
  6. package/lib/apis/smartcat.js +4 -27
  7. package/lib/apis/smartcat.js.map +1 -1
  8. package/lib/apis/smartcat.mjs +4 -27
  9. package/lib/apis/smartcat.mjs.map +1 -1
  10. package/lib/assets/attention.svg +5 -5
  11. package/lib/assets/attention2.svg +5 -5
  12. package/lib/assets/crestron.svg +3 -0
  13. package/lib/assets/express.jpg +0 -0
  14. package/lib/assets/express2.jpg +0 -0
  15. package/lib/assets/express7.jpg +0 -0
  16. package/lib/assets/express72.jpg +0 -0
  17. package/lib/assets/icons/menu/{icon-location-pin.svg.js → icon-globe.svg.js} +6 -6
  18. package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
  19. package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
  20. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
  21. package/lib/assets/logoUnifi.svg +2 -10
  22. package/lib/assets/minus4.svg +8 -8
  23. package/lib/assets/minus5.svg +8 -8
  24. package/lib/assets/plus5.svg +9 -9
  25. package/lib/assets/plus6.svg +9 -9
  26. package/lib/assets/ucg-fiber.png +0 -0
  27. package/lib/assets/udr2.jpg +0 -0
  28. package/lib/assets/udr3.jpg +0 -0
  29. package/lib/assets/udr7.jpg +0 -0
  30. package/lib/assets/udr7.png +0 -0
  31. package/lib/assets/udr72.jpg +0 -0
  32. package/lib/assets/ux.png +0 -0
  33. package/lib/assets/ux7.png +0 -0
  34. package/lib/components/Accordion/Accordion.js +13 -13
  35. package/lib/components/Accordion/Accordion.js.map +1 -1
  36. package/lib/components/Accordion/Accordion.mjs +9 -9
  37. package/lib/components/Accordion/Accordion.mjs.map +1 -1
  38. package/lib/components/Accordion/Accordion.styles.d.ts +18 -18
  39. package/lib/components/Accordion/Accordion.styles.js +28 -22
  40. package/lib/components/Accordion/Accordion.styles.js.map +1 -1
  41. package/lib/components/Accordion/Accordion.styles.mjs +28 -22
  42. package/lib/components/Accordion/Accordion.styles.mjs.map +1 -1
  43. package/lib/components/AppDownloadBanner/AppDownloadBanner.styles.d.ts +23 -21
  44. package/lib/components/Avatar/Avatar.js +6 -5
  45. package/lib/components/Avatar/Avatar.js.map +1 -1
  46. package/lib/components/Avatar/Avatar.mjs +4 -3
  47. package/lib/components/Avatar/Avatar.mjs.map +1 -1
  48. package/lib/components/Avatar/Avatar.styles.d.ts +2 -2
  49. package/lib/components/BackInStock/BackInStock.styles.d.ts +12 -7
  50. package/lib/components/Badge/Badge.styles.d.ts +2 -2
  51. package/lib/components/Banner/Banner.js +4 -4
  52. package/lib/components/Banner/Banner.js.map +1 -1
  53. package/lib/components/Banner/Banner.mjs +4 -4
  54. package/lib/components/Banner/Banner.mjs.map +1 -1
  55. package/lib/components/Banner/Banner.styles.d.ts +16 -16
  56. package/lib/components/Banner/Banner.styles.js +9 -9
  57. package/lib/components/Banner/Banner.styles.js.map +1 -1
  58. package/lib/components/Banner/Banner.styles.mjs +9 -9
  59. package/lib/components/Banner/Banner.styles.mjs.map +1 -1
  60. package/lib/components/Breadcrumbs/Breadcrumbs.styles.d.ts +2 -2
  61. package/lib/components/BuiltFeaturesSection/BuiltFeaturesSection.styles.d.ts +9 -9
  62. package/lib/components/Button/Button.js +5 -12
  63. package/lib/components/Button/Button.js.map +1 -1
  64. package/lib/components/Button/Button.mjs +1 -8
  65. package/lib/components/Button/Button.mjs.map +1 -1
  66. package/lib/components/Button/Button.styles.d.ts +4 -4
  67. package/lib/components/Button/CartButton.d.ts +1 -3
  68. package/lib/components/Button/CartButton.js +6 -11
  69. package/lib/components/Button/CartButton.js.map +1 -1
  70. package/lib/components/Button/CartButton.mjs +4 -8
  71. package/lib/components/Button/CartButton.mjs.map +1 -1
  72. package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  73. package/lib/components/ButtonGroup/ButtonGroup.js +4 -11
  74. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  75. package/lib/components/ButtonGroup/ButtonGroup.mjs +4 -11
  76. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  77. package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +8 -12
  78. package/lib/components/ButtonGroup/ButtonGroup.styles.js +6 -46
  79. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  80. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +6 -46
  81. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  82. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +0 -5
  83. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -5
  84. package/lib/components/CardSection/Card/Card.d.ts +1 -1
  85. package/lib/components/CardSection/Card/Card.js +17 -19
  86. package/lib/components/CardSection/Card/Card.js.map +1 -1
  87. package/lib/components/CardSection/Card/Card.mjs +11 -13
  88. package/lib/components/CardSection/Card/Card.mjs.map +1 -1
  89. package/lib/components/CardSection/Card/Card.styles.d.ts +21 -21
  90. package/lib/components/CardSection/Card/Card.styles.js +22 -22
  91. package/lib/components/CardSection/Card/Card.styles.js.map +1 -1
  92. package/lib/components/CardSection/Card/Card.styles.mjs +22 -22
  93. package/lib/components/CardSection/Card/Card.styles.mjs.map +1 -1
  94. package/lib/components/CardSection/Card/Card.types.d.ts +0 -1
  95. package/lib/components/CardSection/Card/Card.types.js.map +1 -1
  96. package/lib/components/CardSection/Card/Card.types.mjs.map +1 -1
  97. package/lib/components/CardSection/CardSection.js +2 -2
  98. package/lib/components/CardSection/CardSection.styles.d.ts +4 -4
  99. package/lib/components/CarouselGallery/CarouselGallery.styles.d.ts +11 -11
  100. package/lib/components/CartIcon/CartIcon.js +4 -4
  101. package/lib/components/CartIcon/CartIcon.js.map +1 -1
  102. package/lib/components/CartIcon/CartIcon.mjs +2 -2
  103. package/lib/components/CartIcon/CartIcon.mjs.map +1 -1
  104. package/lib/components/CartIcon/CartIcon.styles.d.ts +5 -5
  105. package/lib/components/CartIcon/CartIcon.styles.js +4 -4
  106. package/lib/components/CartIcon/CartIcon.styles.js.map +1 -1
  107. package/lib/components/CartIcon/CartIcon.styles.mjs +4 -4
  108. package/lib/components/CartIcon/CartIcon.styles.mjs.map +1 -1
  109. package/lib/components/CartSummary/CartSummary.js +1 -1
  110. package/lib/components/CartSummary/CartSummary.js.map +1 -1
  111. package/lib/components/CartSummary/CartSummary.mjs +1 -1
  112. package/lib/components/CartSummary/CartSummary.mjs.map +1 -1
  113. package/lib/components/CartSummary/CartSummary.styles.d.ts +19 -13
  114. package/lib/components/CartSummary/CartSummary.styles.js +2 -2
  115. package/lib/components/CartSummary/CartSummary.styles.js.map +1 -1
  116. package/lib/components/CartSummary/CartSummary.styles.mjs +2 -2
  117. package/lib/components/CartSummary/CartSummary.styles.mjs.map +1 -1
  118. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +6 -8
  119. package/lib/components/CategoryTabs/CategoryTabs.styles.js +6 -9
  120. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  121. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -8
  122. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  123. package/lib/components/Checkbox/Checkbox.js +7 -4
  124. package/lib/components/Checkbox/Checkbox.js.map +1 -1
  125. package/lib/components/Checkbox/Checkbox.mjs +3 -0
  126. package/lib/components/Checkbox/Checkbox.mjs.map +1 -1
  127. package/lib/components/Checkbox/Checkbox.styles.d.ts +3 -3
  128. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  129. package/lib/components/CloserLookSection/CloserLookSection.styles.d.ts +8 -8
  130. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  131. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.styles.d.ts +3 -3
  132. package/lib/components/Compare/Compare.styles.d.ts +36 -34
  133. package/lib/components/CompareChart/CompareChart.styles.d.ts +40 -36
  134. package/lib/components/CompareSection/CompareSection.styles.d.ts +18 -16
  135. package/lib/components/Container/Container.d.ts +1 -1
  136. package/lib/components/Container/Container.js +4 -5
  137. package/lib/components/Container/Container.js.map +1 -1
  138. package/lib/components/Container/Container.mjs +4 -5
  139. package/lib/components/Container/Container.mjs.map +1 -1
  140. package/lib/components/Container/Container.styles.d.ts +3 -3
  141. package/lib/components/Container/index.stories.d.ts +5 -5
  142. package/lib/components/CustomImage/CustomImage.js +12 -12
  143. package/lib/components/CustomImage/CustomImage.styles.d.ts +12 -12
  144. package/lib/components/DeploymentGallery/DeploymentGallery.styles.d.ts +4 -4
  145. package/lib/components/Explore/Explore.js +5 -5
  146. package/lib/components/Explore/Explore.styles.d.ts +36 -28
  147. package/lib/components/Explore/Explore.styles.js +6 -6
  148. package/lib/components/Explore/Explore.styles.js.map +1 -1
  149. package/lib/components/Explore/Explore.styles.mjs +6 -6
  150. package/lib/components/Explore/Explore.styles.mjs.map +1 -1
  151. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.styles.d.ts +5 -3
  152. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  153. package/lib/components/FeaturesSection_deprecated/Features/Features.styles.d.ts +15 -15
  154. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
  155. package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.d.ts +22 -22
  156. package/lib/components/Footer/Footer.js +2 -3
  157. package/lib/components/Footer/Footer.js.map +1 -1
  158. package/lib/components/Footer/Footer.mjs +0 -1
  159. package/lib/components/Footer/Footer.mjs.map +1 -1
  160. package/lib/components/Footer/Footer.styles.d.ts +39 -34
  161. package/lib/components/Footer/Footer.styles.js +1 -1
  162. package/lib/components/Footer/Footer.styles.js.map +1 -1
  163. package/lib/components/Footer/Footer.styles.mjs +1 -1
  164. package/lib/components/Footer/Footer.styles.mjs.map +1 -1
  165. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  166. package/lib/components/Gallery/Gallery.context.js +17 -17
  167. package/lib/components/Gallery/Gallery.js +10 -10
  168. package/lib/components/Gallery/Gallery.js.map +1 -1
  169. package/lib/components/Gallery/Gallery.mjs +1 -1
  170. package/lib/components/Gallery/Gallery.mjs.map +1 -1
  171. package/lib/components/Gallery/Gallery.styles.d.ts +12 -8
  172. package/lib/components/Gallery/Gallery.styles.js +3 -1
  173. package/lib/components/Gallery/Gallery.styles.js.map +1 -1
  174. package/lib/components/Gallery/Gallery.styles.mjs +3 -1
  175. package/lib/components/Gallery/Gallery.styles.mjs.map +1 -1
  176. package/lib/components/Gallery/GalleryControls/GalleryControls.js +5 -5
  177. package/lib/components/Gallery/GalleryControls/GalleryControls.js.map +1 -1
  178. package/lib/components/Gallery/GalleryControls/GalleryControls.mjs +1 -1
  179. package/lib/components/Gallery/GalleryControls/GalleryControls.mjs.map +1 -1
  180. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.d.ts +9 -9
  181. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.js +2 -2
  182. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.js.map +1 -1
  183. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.mjs +2 -2
  184. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.mjs.map +1 -1
  185. package/lib/components/Gallery/GalleryItem/GalleryItem.js +13 -13
  186. package/lib/components/Gallery/GalleryItem/GalleryItem.js.map +1 -1
  187. package/lib/components/Gallery/GalleryItem/GalleryItem.mjs +5 -5
  188. package/lib/components/Gallery/GalleryItem/GalleryItem.mjs.map +1 -1
  189. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.d.ts +10 -10
  190. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.js +11 -11
  191. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.js.map +1 -1
  192. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.mjs +11 -11
  193. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.mjs.map +1 -1
  194. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  195. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.styles.d.ts +8 -8
  196. package/lib/components/GradientButton/GradientButton.d.ts +1 -1
  197. package/lib/components/GradientButton/GradientButton.js +2 -0
  198. package/lib/components/GradientButton/GradientButton.js.map +1 -1
  199. package/lib/components/GradientButton/GradientButton.mjs +2 -0
  200. package/lib/components/GradientButton/GradientButton.mjs.map +1 -1
  201. package/lib/components/GradientButton/GradientButton.styles.d.ts +4 -4
  202. package/lib/components/GradientButton/GradientButton.styles.js +6 -6
  203. package/lib/components/GradientButton/GradientButton.styles.js.map +1 -1
  204. package/lib/components/GradientButton/GradientButton.styles.mjs +6 -6
  205. package/lib/components/GradientButton/GradientButton.styles.mjs.map +1 -1
  206. package/lib/components/GridGallery/GridGallery.js +9 -9
  207. package/lib/components/GridGallery/GridGallery.js.map +1 -1
  208. package/lib/components/GridGallery/GridGallery.mjs +1 -1
  209. package/lib/components/GridGallery/GridGallery.mjs.map +1 -1
  210. package/lib/components/GridGallery/GridGallery.styles.d.ts +13 -13
  211. package/lib/components/GridGallery/GridGallery.styles.js +2 -2
  212. package/lib/components/GridGallery/GridGallery.styles.js.map +1 -1
  213. package/lib/components/GridGallery/GridGallery.styles.mjs +2 -2
  214. package/lib/components/GridGallery/GridGallery.styles.mjs.map +1 -1
  215. package/lib/components/GridGallery/GridModal/GridModal.js +7 -7
  216. package/lib/components/GridGallery/GridModal/GridModal.js.map +1 -1
  217. package/lib/components/GridGallery/GridModal/GridModal.mjs +1 -1
  218. package/lib/components/GridGallery/GridModal/GridModal.mjs.map +1 -1
  219. package/lib/components/GridGallery/GridModal/GridModal.styles.d.ts +7 -7
  220. package/lib/components/GridGallery/GridModal/GridModal.styles.js +4 -4
  221. package/lib/components/GridGallery/GridModal/GridModal.styles.js.map +1 -1
  222. package/lib/components/GridGallery/GridModal/GridModal.styles.mjs +4 -4
  223. package/lib/components/GridGallery/GridModal/GridModal.styles.mjs.map +1 -1
  224. package/lib/components/Header/AccountFrame/AccountFrame.js +12 -12
  225. package/lib/components/Header/AccountFrame/AccountFrame.js.map +1 -1
  226. package/lib/components/Header/AccountFrame/AccountFrame.mjs +1 -1
  227. package/lib/components/Header/AccountFrame/AccountFrame.mjs.map +1 -1
  228. package/lib/components/Header/AccountFrame/AccountFrame.styles.d.ts +19 -15
  229. package/lib/components/Header/AccountFrame/AccountFrame.styles.js +2 -2
  230. package/lib/components/Header/AccountFrame/AccountFrame.styles.js.map +1 -1
  231. package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs +2 -2
  232. package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs.map +1 -1
  233. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  234. package/lib/components/Header/AccountFrame/Mobile/Mobile.styles.d.ts +3 -3
  235. package/lib/components/Header/AccountMenu/AccountMenu.js +20 -30
  236. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  237. package/lib/components/Header/AccountMenu/AccountMenu.mjs +3 -13
  238. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  239. package/lib/components/Header/AccountMenu/AccountMenu.styles.d.ts +30 -12
  240. package/lib/components/Header/CartModal/CartModal.styles.d.ts +15 -13
  241. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  242. package/lib/components/Header/CartModal/Empty/Empty.styles.d.ts +1 -1
  243. package/lib/components/Header/CartModal/Item/Item.styles.d.ts +10 -10
  244. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  245. package/lib/components/Header/CartModalV2/CartModal.styles.d.ts +23 -21
  246. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  247. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +13 -13
  248. package/lib/components/Header/Header.js +40 -40
  249. package/lib/components/Header/Header.js.map +1 -1
  250. package/lib/components/Header/Header.mjs +6 -6
  251. package/lib/components/Header/Header.mjs.map +1 -1
  252. package/lib/components/Header/Header.styles.d.ts +49 -40
  253. package/lib/components/Header/Header.styles.js +33 -11
  254. package/lib/components/Header/Header.styles.js.map +1 -1
  255. package/lib/components/Header/Header.styles.mjs +32 -11
  256. package/lib/components/Header/Header.styles.mjs.map +1 -1
  257. package/lib/components/Header/Header.types.d.ts +5 -29
  258. package/lib/components/Header/Header.types.js +1 -2
  259. package/lib/components/Header/Header.types.js.map +1 -1
  260. package/lib/components/Header/Header.types.mjs +1 -2
  261. package/lib/components/Header/Header.types.mjs.map +1 -1
  262. package/lib/components/Header/IsolatedHeader.d.ts +0 -1
  263. package/lib/components/Header/IsolatedHeader.js +50 -50
  264. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  265. package/lib/components/Header/IsolatedHeader.mjs +46 -47
  266. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  267. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  268. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.d.ts +14 -17
  269. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js +0 -51
  270. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js.map +1 -1
  271. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs +1 -47
  272. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs.map +1 -1
  273. package/lib/components/Header/LanguageFrame/Mobile/Mobile.styles.d.ts +3 -3
  274. package/lib/components/Header/LinksModal/LinksModal.styles.d.ts +4 -4
  275. package/lib/components/Header/MenuItem/MenuItem.js +4 -5
  276. package/lib/components/Header/MenuItem/MenuItem.js.map +1 -1
  277. package/lib/components/Header/MenuItem/MenuItem.mjs +4 -5
  278. package/lib/components/Header/MenuItem/MenuItem.mjs.map +1 -1
  279. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +15 -15
  280. package/lib/components/Header/MenuItem/MenuItem.styles.js +11 -11
  281. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  282. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +11 -11
  283. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  284. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +0 -1
  285. package/lib/components/Header/Navigation/Carousel/Carousel.js +11 -11
  286. package/lib/components/Header/Navigation/Carousel/Carousel.js.map +1 -1
  287. package/lib/components/Header/Navigation/Carousel/Carousel.mjs +6 -6
  288. package/lib/components/Header/Navigation/Carousel/Carousel.mjs.map +1 -1
  289. package/lib/components/Header/Navigation/Carousel/Carousel.styles.d.ts +20 -20
  290. package/lib/components/Header/Navigation/Carousel/Carousel.styles.js +16 -16
  291. package/lib/components/Header/Navigation/Carousel/Carousel.styles.js.map +1 -1
  292. package/lib/components/Header/Navigation/Carousel/Carousel.styles.mjs +16 -16
  293. package/lib/components/Header/Navigation/Carousel/Carousel.styles.mjs.map +1 -1
  294. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +19 -19
  295. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js.map +1 -1
  296. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.mjs +7 -7
  297. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.mjs.map +1 -1
  298. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +29 -23
  299. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +19 -19
  300. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
  301. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +19 -19
  302. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
  303. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +15 -15
  304. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
  305. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +9 -9
  306. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
  307. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +40 -36
  308. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js +18 -18
  309. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js.map +1 -1
  310. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.mjs +18 -18
  311. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.mjs.map +1 -1
  312. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  313. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +117 -124
  314. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  315. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +112 -119
  316. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  317. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +7 -14
  318. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
  319. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  320. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
  321. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  322. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +6 -12
  323. package/lib/components/Header/Overlay/Overlay.js +3 -3
  324. package/lib/components/Header/Overlay/Overlay.styles.d.ts +2 -2
  325. package/lib/components/Header/ProHeader/ProHeader.d.ts +5 -9
  326. package/lib/components/Header/ProHeader/ProHeader.js +189 -290
  327. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  328. package/lib/components/Header/ProHeader/ProHeader.mjs +171 -270
  329. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  330. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +40 -49
  331. package/lib/components/Header/ProHeader/ProHeader.styles.js +68 -206
  332. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  333. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +67 -195
  334. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  335. package/lib/components/Header/SearchTab/SearchTab.styles.d.ts +3 -3
  336. package/lib/components/Header/translations/ar.json.js +1 -4
  337. package/lib/components/Header/translations/ar.json.js.map +1 -1
  338. package/lib/components/Header/translations/ar.json.mjs +2 -4
  339. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  340. package/lib/components/Header/translations/de.json.js +1 -4
  341. package/lib/components/Header/translations/de.json.js.map +1 -1
  342. package/lib/components/Header/translations/de.json.mjs +2 -4
  343. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  344. package/lib/components/Header/translations/el.json.js +1 -4
  345. package/lib/components/Header/translations/el.json.js.map +1 -1
  346. package/lib/components/Header/translations/el.json.mjs +2 -4
  347. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  348. package/lib/components/Header/translations/en.json.js +1 -7
  349. package/lib/components/Header/translations/en.json.js.map +1 -1
  350. package/lib/components/Header/translations/en.json.mjs +2 -6
  351. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  352. package/lib/components/Header/translations/es.json.js +1 -4
  353. package/lib/components/Header/translations/es.json.js.map +1 -1
  354. package/lib/components/Header/translations/es.json.mjs +2 -4
  355. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  356. package/lib/components/Header/translations/fr.json.js +1 -4
  357. package/lib/components/Header/translations/fr.json.js.map +1 -1
  358. package/lib/components/Header/translations/fr.json.mjs +2 -4
  359. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  360. package/lib/components/Header/translations/it.json.js +1 -4
  361. package/lib/components/Header/translations/it.json.js.map +1 -1
  362. package/lib/components/Header/translations/it.json.mjs +2 -4
  363. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  364. package/lib/components/Header/translations/ja.json.js +1 -4
  365. package/lib/components/Header/translations/ja.json.js.map +1 -1
  366. package/lib/components/Header/translations/ja.json.mjs +2 -4
  367. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  368. package/lib/components/Header/translations/pt-BR.json.js +1 -4
  369. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  370. package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
  371. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  372. package/lib/components/Header/translations/zh-Hans.json.js +1 -4
  373. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  374. package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
  375. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  376. package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
  377. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  378. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
  379. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  380. package/lib/components/Hero/Hero.js +5 -5
  381. package/lib/components/Hero/Hero.styles.d.ts +28 -28
  382. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +12 -12
  383. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  384. package/lib/components/HeroVideo/HeroVideo.styles.d.ts +7 -7
  385. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +14 -14
  386. package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
  387. package/lib/components/ImageCarousel/ImageCarousel.styles.d.ts +38 -34
  388. package/lib/components/ImageCarousel/ImageCarousel.styles.js +5 -4
  389. package/lib/components/ImageCarousel/ImageCarousel.styles.js.map +1 -1
  390. package/lib/components/ImageCarousel/ImageCarousel.styles.mjs +5 -4
  391. package/lib/components/ImageCarousel/ImageCarousel.styles.mjs.map +1 -1
  392. package/lib/components/ImageModal/ImageModal.styles.d.ts +8 -6
  393. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  394. package/lib/components/ImageSequence/ImageSequence.styles.d.ts +8 -8
  395. package/lib/components/InputSelect/InputSelect.styles.d.ts +4 -8
  396. package/lib/components/LandingPage/Block/Block.styles.d.ts +4 -4
  397. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  398. package/lib/components/LandingPage/Cards/Card/Card.styles.d.ts +17 -17
  399. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  400. package/lib/components/LandingPage/Cards/Cards.styles.d.ts +9 -9
  401. package/lib/components/LandingPage/Cards/Cards.styles.js +1 -1
  402. package/lib/components/LandingPage/Cards/Cards.styles.js.map +1 -1
  403. package/lib/components/LandingPage/Cards/Cards.styles.mjs +1 -1
  404. package/lib/components/LandingPage/Cards/Cards.styles.mjs.map +1 -1
  405. package/lib/components/LandingPage/LandingPage.js +2 -2
  406. package/lib/components/LandingPage/LandingPage.styles.d.ts +5 -5
  407. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  408. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +3 -3
  409. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  410. package/lib/components/LandingPageSearch/LandingPageSearch.styles.d.ts +2 -2
  411. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  412. package/lib/components/LandingPageSearch/Modal/Modal.styles.d.ts +26 -22
  413. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  414. package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.d.ts +22 -22
  415. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  416. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +23 -21
  417. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +60 -54
  418. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +57 -49
  419. package/lib/components/LearnMoreLink/LearnMoreLink.styles.d.ts +2 -2
  420. package/lib/components/Loader/Loader.styles.d.ts +4 -4
  421. package/lib/components/Loader/Spinner/Spinner.styles.d.ts +3 -3
  422. package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
  423. package/lib/components/LoaderDots/LoaderDots.js +1 -3
  424. package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
  425. package/lib/components/LoaderDots/LoaderDots.mjs +1 -3
  426. package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
  427. package/lib/components/LoaderDots/LoaderDots.styles.d.ts +3 -4
  428. package/lib/components/LoaderDots/LoaderDots.styles.js +1 -11
  429. package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
  430. package/lib/components/LoaderDots/LoaderDots.styles.mjs +1 -11
  431. package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
  432. package/lib/components/LoaderDots/LoaderDots.types.d.ts +0 -2
  433. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  434. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.styles.d.ts +11 -9
  435. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  436. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +25 -25
  437. package/lib/components/MicrositeBuyButton/MicrositeBuyButton.js +2 -2
  438. package/lib/components/MicrositeBuyButton/MicrositeBuyButton.js.map +1 -1
  439. package/lib/components/MicrositeBuyButton/MicrositeBuyButton.mjs +2 -2
  440. package/lib/components/MicrositeBuyButton/MicrositeBuyButton.mjs.map +1 -1
  441. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  442. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.styles.d.ts +6 -6
  443. package/lib/components/MicrositeExploreCards/MicrositeExploreCards.styles.d.ts +8 -8
  444. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  445. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.d.ts +20 -18
  446. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.js +2 -2
  447. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.js.map +1 -1
  448. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.mjs +2 -2
  449. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.mjs.map +1 -1
  450. package/lib/components/MicrositeFeatureIcons/MicrositeFeatureIcons.styles.d.ts +11 -11
  451. package/lib/components/MicrositeFeatureList/MicrositeFeatureList.styles.d.ts +14 -14
  452. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  453. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.d.ts +28 -24
  454. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js +2 -2
  455. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js.map +1 -1
  456. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.mjs +2 -2
  457. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.mjs.map +1 -1
  458. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  459. package/lib/components/MicrositeHero/MicrositeHero.styles.d.ts +41 -41
  460. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  461. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.styles.d.ts +6 -6
  462. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  463. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.styles.d.ts +15 -15
  464. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  465. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.styles.d.ts +15 -15
  466. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.d.ts +14 -12
  467. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.js +2 -2
  468. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.js.map +1 -1
  469. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.mjs +2 -2
  470. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.mjs.map +1 -1
  471. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  472. package/lib/components/MicrositeSection/AllFeaturesButton/AllFeaturesButton.styles.d.ts +5 -3
  473. package/lib/components/MicrositeSection/Features/Features.styles.d.ts +15 -15
  474. package/lib/components/MicrositeSection/MicrositeSection.styles.d.ts +24 -24
  475. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +8 -6
  476. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  477. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.styles.d.ts +2 -2
  478. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
  479. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.styles.d.ts +17 -17
  480. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  481. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  482. package/lib/components/Microsites/MicrositeProductPage.styles.d.ts +16 -8
  483. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  484. package/lib/components/MobileModal/MobileModal.js +4 -4
  485. package/lib/components/MobileModal/MobileModal.styles.d.ts +8 -8
  486. package/lib/components/Modal/Modal.js +3 -3
  487. package/lib/components/Modal/Modal.styles.d.ts +1 -1
  488. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  489. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  490. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  491. package/lib/components/ModelCompareV3/ModelCompareV3.styles.d.ts +84 -34
  492. package/lib/components/ModelCompareV3/ModelCompareV3.styles.js +8 -7
  493. package/lib/components/ModelCompareV3/ModelCompareV3.styles.js.map +1 -1
  494. package/lib/components/ModelCompareV3/ModelCompareV3.styles.mjs +8 -7
  495. package/lib/components/ModelCompareV3/ModelCompareV3.styles.mjs.map +1 -1
  496. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +1 -0
  497. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  498. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  499. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  500. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  501. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  502. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  503. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  504. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  505. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  506. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.d.ts +2 -2
  507. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  508. package/lib/components/ModelCompareV3/StickyGrid/StickyGridOverlay.d.ts +1 -1
  509. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  510. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express.jpg.js +5 -5
  511. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express.jpg.mjs +2 -2
  512. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express7.jpg.js +5 -5
  513. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express7.jpg.mjs +2 -2
  514. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.js +5 -5
  515. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
  516. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.js +5 -5
  517. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.mjs +2 -2
  518. package/lib/components/ModelCompareV3/assets/Consoles/express.jpg.js +1 -1
  519. package/lib/components/ModelCompareV3/assets/Consoles/express.jpg.mjs +2 -2
  520. package/lib/components/ModelCompareV3/assets/Consoles/express7.jpg.js +1 -1
  521. package/lib/components/ModelCompareV3/assets/Consoles/express7.jpg.mjs +2 -2
  522. package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.js +1 -1
  523. package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.mjs +2 -2
  524. package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.js +1 -1
  525. package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.mjs +2 -2
  526. package/lib/{assets/icons/cart-secondary.svg.js → components/ModelCompareV3/assets/crestron.svg.js} +6 -6
  527. package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +1 -0
  528. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +3 -0
  529. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +1 -0
  530. package/lib/components/ModelCompareV3/data/CloudGateways.js +6 -6
  531. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
  532. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +3 -2
  533. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  534. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +3 -2
  535. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  536. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +10 -3
  537. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
  538. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +10 -3
  539. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
  540. package/lib/components/ModelCompareV3/data/Switching.js +3 -2
  541. package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
  542. package/lib/components/ModelCompareV3/data/Switching.mjs +3 -2
  543. package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
  544. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +1 -1
  545. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  546. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +1 -1
  547. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  548. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +7 -0
  549. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
  550. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +7 -0
  551. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
  552. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +7 -0
  553. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
  554. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +7 -0
  555. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
  556. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +7 -0
  557. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
  558. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +7 -0
  559. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
  560. package/lib/components/ModelCompareV3/data/products/express.js +1 -1
  561. package/lib/components/ModelCompareV3/data/products/express.mjs +1 -1
  562. package/lib/components/ModelCompareV3/data/products/express7.js +1 -1
  563. package/lib/components/ModelCompareV3/data/products/express7.mjs +1 -1
  564. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +7 -0
  565. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
  566. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +7 -0
  567. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
  568. package/lib/components/ModelCompareV3/data/products/missionCritical.js +7 -0
  569. package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
  570. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +7 -0
  571. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
  572. package/lib/components/ModelCompareV3/data/products/professionalHd24.js +7 -0
  573. package/lib/components/ModelCompareV3/data/products/professionalHd24.js.map +1 -1
  574. package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs +7 -0
  575. package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs.map +1 -1
  576. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js +7 -0
  577. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js.map +1 -1
  578. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs +7 -0
  579. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs.map +1 -1
  580. package/lib/components/ModelCompareV3/data/products/professionalMax16.js +7 -0
  581. package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
  582. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +7 -0
  583. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
  584. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +7 -0
  585. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
  586. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +7 -0
  587. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
  588. package/lib/components/ModelCompareV3/data/products/professionalMax24.js +7 -0
  589. package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
  590. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +7 -0
  591. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
  592. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +7 -0
  593. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
  594. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +7 -0
  595. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
  596. package/lib/components/ModelCompareV3/data/products/professionalMax48.js +7 -0
  597. package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
  598. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +7 -0
  599. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
  600. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +7 -0
  601. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
  602. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +7 -0
  603. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
  604. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +8 -0
  605. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
  606. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +8 -0
  607. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
  608. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +7 -0
  609. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
  610. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +7 -0
  611. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
  612. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js +7 -0
  613. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js.map +1 -1
  614. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs +7 -0
  615. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs.map +1 -1
  616. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +10 -1
  617. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
  618. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +10 -1
  619. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
  620. package/lib/components/ModelCompareV3/data/products/switchesStandard.js +7 -0
  621. package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
  622. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +7 -0
  623. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
  624. package/lib/components/ModelCompareV3/data/products/udr.js +1 -1
  625. package/lib/components/ModelCompareV3/data/products/udr.mjs +1 -1
  626. package/lib/components/ModelCompareV3/data/products/udr7.js +1 -1
  627. package/lib/components/ModelCompareV3/data/products/udr7.mjs +1 -1
  628. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +2 -0
  629. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +18 -0
  630. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +1 -0
  631. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +10 -0
  632. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +1 -0
  633. package/lib/components/ModelCompareV3/data/properties/index.d.ts +1 -0
  634. package/lib/components/ModelCompareV3/data/properties/index.js +2 -0
  635. package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
  636. package/lib/components/ModelCompareV3/data/properties/index.mjs +1 -0
  637. package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
  638. package/lib/components/ModelCompareV3/translations/ar.json.js +10 -10
  639. package/lib/components/ModelCompareV3/translations/ar.json.mjs +10 -10
  640. package/lib/components/ModelCompareV3/translations/de.json.js +2 -2
  641. package/lib/components/ModelCompareV3/translations/de.json.mjs +2 -2
  642. package/lib/components/ModelCompareV3/translations/el.json.js +1 -1
  643. package/lib/components/ModelCompareV3/translations/el.json.mjs +1 -1
  644. package/lib/components/ModelCompareV3/translations/en.json.js +2 -0
  645. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  646. package/lib/components/ModelCompareV3/translations/en.json.mjs +2 -0
  647. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  648. package/lib/components/ModelCompareV3/translations/es.json.js +2 -2
  649. package/lib/components/ModelCompareV3/translations/es.json.mjs +2 -2
  650. package/lib/components/ModelCompareV3/translations/fr.json.js +1 -1
  651. package/lib/components/ModelCompareV3/translations/fr.json.mjs +1 -1
  652. package/lib/components/ModelCompareV3/translations/it.json.js +1 -1
  653. package/lib/components/ModelCompareV3/translations/it.json.mjs +1 -1
  654. package/lib/components/ModelCompareV3/translations/ja.json.js +7 -7
  655. package/lib/components/ModelCompareV3/translations/ja.json.mjs +7 -7
  656. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +1 -1
  657. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +1 -1
  658. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  659. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +5 -5
  660. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +5 -5
  661. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +8 -8
  662. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +8 -8
  663. package/lib/components/NewToUnifiBox/NewToUnifiBox.styles.d.ts +5 -5
  664. package/lib/components/Pagination/Pagination.js +3 -3
  665. package/lib/components/Pagination/Pagination.styles.d.ts +4 -4
  666. package/lib/components/Popover/Popover.styles.d.ts +11 -7
  667. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  668. package/lib/components/PriceRangeSlider/PriceRangeSlider.styles.d.ts +7 -7
  669. package/lib/components/ProductCard/ProductCard.js +7 -7
  670. package/lib/components/ProductCard/ProductCard.styles.d.ts +16 -16
  671. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  672. package/lib/components/ProductCardPopup/ProductCardPopup.styles.d.ts +45 -37
  673. package/lib/components/ProductCardPopup/ProductCardPopup.styles.js +3 -3
  674. package/lib/components/ProductCardPopup/ProductCardPopup.styles.js.map +1 -1
  675. package/lib/components/ProductCardPopup/ProductCardPopup.styles.mjs +3 -3
  676. package/lib/components/ProductCardPopup/ProductCardPopup.styles.mjs.map +1 -1
  677. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  678. package/lib/components/ProductCompare/ProductCompare.styles.d.ts +18 -18
  679. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  680. package/lib/components/ProductDetails/ProductDetails.styles.d.ts +2 -2
  681. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  682. package/lib/components/ProductGrid/ProductGrid.styles.d.ts +10 -13
  683. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  684. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.styles.d.ts +6 -6
  685. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.d.ts +11 -9
  686. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +6 -6
  687. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +7 -7
  688. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  689. package/lib/components/ProductSectionTabs/ProductSectionTabs.styles.d.ts +6 -6
  690. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +14 -14
  691. package/lib/components/ProductUpsell/ProductUpsell.styles.d.ts +20 -18
  692. package/lib/components/ProductWizard/Options/Options.js +3 -3
  693. package/lib/components/ProductWizard/Options/Options.styles.d.ts +2 -2
  694. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  695. package/lib/components/ProductWizard/ProductWizard.styles.d.ts +22 -16
  696. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  697. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.d.ts +9 -9
  698. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.js +1 -1
  699. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.js.map +1 -1
  700. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.mjs +1 -1
  701. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.mjs.map +1 -1
  702. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  703. package/lib/components/QuantityControls/QuantityControls.js +6 -6
  704. package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
  705. package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
  706. package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
  707. package/lib/components/QuantityControls/QuantityControls.styles.d.ts +2 -2
  708. package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
  709. package/lib/components/QuantityInput/QuantityInput.js +1 -6
  710. package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
  711. package/lib/components/QuantityInput/QuantityInput.mjs +1 -6
  712. package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
  713. package/lib/components/QuantityInput/QuantityInput.styles.d.ts +16 -12
  714. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  715. package/lib/components/RelatedProducts/RelatedProducts.styles.d.ts +14 -14
  716. package/lib/components/RelatedProducts/RelatedProducts.styles.js +2 -2
  717. package/lib/components/RelatedProducts/RelatedProducts.styles.js.map +1 -1
  718. package/lib/components/RelatedProducts/RelatedProducts.styles.mjs +2 -2
  719. package/lib/components/RelatedProducts/RelatedProducts.styles.mjs.map +1 -1
  720. package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.styles.d.ts +23 -21
  721. package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.styles.d.ts +36 -16
  722. package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.styles.d.ts +38 -16
  723. package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.styles.d.ts +1 -1
  724. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +602 -2
  725. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  726. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +598 -2
  727. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  728. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  729. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.styles.d.ts +6 -6
  730. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +5 -1
  731. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +4 -0
  732. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  733. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +4 -0
  734. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  735. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  736. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +13 -13
  737. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +6 -6
  738. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  739. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.d.ts +20 -20
  740. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  741. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +6 -6
  742. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  743. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/Layout.styles.d.ts +6 -6
  744. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  745. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  746. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  747. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  748. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  749. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  750. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  751. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +8 -8
  752. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  753. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.styles.d.ts +9 -9
  754. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  755. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  756. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  757. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  758. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.styles.d.ts +1 -1
  759. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/DesignCenterBanner/DesignCenterBanner.styles.d.ts +5 -5
  760. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  761. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.styles.d.ts +10 -10
  762. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +17 -17
  763. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  764. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.styles.d.ts +19 -17
  765. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  766. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  767. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  768. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  769. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
  770. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.styles.d.ts +16 -16
  771. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  772. package/lib/components/ResourceCalculatorV1/ResourceCalculator.styles.d.ts +3 -3
  773. package/lib/{constants/icons/header/arrow.svg.js → components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.js} +6 -6
  774. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.js.map +1 -0
  775. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.mjs +3 -0
  776. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.mjs.map +1 -0
  777. package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.js +27 -0
  778. package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.js.map +1 -0
  779. package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.mjs +3 -0
  780. package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.mjs.map +1 -0
  781. package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.js +27 -0
  782. package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.js.map +1 -0
  783. package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.mjs +3 -0
  784. package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.mjs.map +1 -0
  785. package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.js +27 -0
  786. package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.js.map +1 -0
  787. package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.mjs +3 -0
  788. package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.mjs.map +1 -0
  789. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.d.ts +3 -3
  790. package/lib/components/ResourceCalculatorV1/translations/en.json.js +5 -1
  791. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  792. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +5 -1
  793. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  794. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  795. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  796. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.styles.d.ts +3 -3
  797. package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
  798. package/lib/components/ScrollWrapper/ScrollWrapper.js +26 -34
  799. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  800. package/lib/components/ScrollWrapper/ScrollWrapper.mjs +8 -16
  801. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  802. package/lib/components/ScrollWrapper/ScrollWrapper.styles.d.ts +18 -14
  803. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +0 -2
  804. package/lib/components/Search/Input/Input.d.ts +1 -1
  805. package/lib/components/Search/Input/Input.js +8 -8
  806. package/lib/components/Search/Input/Input.js.map +1 -1
  807. package/lib/components/Search/Input/Input.mjs +4 -4
  808. package/lib/components/Search/Input/Input.mjs.map +1 -1
  809. package/lib/components/Search/Input/Input.styles.d.ts +13 -11
  810. package/lib/components/Search/Input/Input.styles.js +2 -1
  811. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  812. package/lib/components/Search/Input/Input.styles.mjs +2 -1
  813. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  814. package/lib/components/Search/Input/Input.types.d.ts +2 -3
  815. package/lib/components/Search/Modal/Modal.js +3 -3
  816. package/lib/components/Search/Modal/Modal.styles.d.ts +20 -18
  817. package/lib/components/SearchInput/Input.styles.d.ts +9 -7
  818. package/lib/components/SkeletonFootnote/SkeletonFootnote.d.ts +1 -1
  819. package/lib/components/SkeletonLoader/SkeletonCircleLoader/SkeletonCircleLoader.styles.d.ts +3 -3
  820. package/lib/components/SkeletonLoader/SkeletonLinearLoader/SkeletonLinearLoader.styles.d.ts +3 -3
  821. package/lib/components/SkeletonLoader/SkeletonLoaderTable/SkeletonLoaderTable.styles.d.ts +8 -8
  822. package/lib/components/StaticModal/StaticModal.styles.d.ts +2 -2
  823. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  824. package/lib/components/StorageSliders/Slider/Slider.styles.d.ts +7 -5
  825. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  826. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  827. package/lib/components/StorageSliders/StorageSliders.styles.d.ts +12 -12
  828. package/lib/components/StorybookUtils/StoryButtonColumn.d.ts +1 -1
  829. package/lib/components/StorybookUtils/StoryButtonRow.d.ts +1 -1
  830. package/lib/components/StorybookUtils/StoryWrapper.d.ts +2 -2
  831. package/lib/components/TabinationButtons/TabinationButtons.styles.d.ts +9 -9
  832. package/lib/components/Toggle/Toggle.styles.d.ts +3 -3
  833. package/lib/components/Toggle/Toggle.styles.js +1 -1
  834. package/lib/components/Toggle/Toggle.styles.js.map +1 -1
  835. package/lib/components/Toggle/Toggle.styles.mjs +1 -1
  836. package/lib/components/Toggle/Toggle.styles.mjs.map +1 -1
  837. package/lib/components/Tooltip/Tooltip.js +5 -5
  838. package/lib/components/Tooltip/Tooltip.styles.d.ts +33 -3
  839. package/lib/components/TopologyScheme/TopologyScheme.styles.d.ts +17 -17
  840. package/lib/components/UICare/UICare.styles.d.ts +19 -16
  841. package/lib/components/VariantSelector/CheckBox/CheckBox.styles.d.ts +6 -6
  842. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.styles.d.ts +7 -7
  843. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  844. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.d.ts +18 -18
  845. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  846. package/lib/components/VariantSelector/Variant/Variant.styles.d.ts +75 -65
  847. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  848. package/lib/components/VariantSelector/VariantSelector.styles.d.ts +17 -13
  849. package/lib/components/VariantSelectorItem/VariantSelectorItem.styles.d.ts +3 -3
  850. package/lib/components/VariantSelectorV1/VariantSelector.styles.d.ts +32 -28
  851. package/lib/components/VariantSelectorV2/VariantSelector.styles.d.ts +23 -19
  852. package/lib/components/VideoCookiesConsent/VideoCookiesConsent.styles.d.ts +8 -6
  853. package/lib/components/VideoPlayer/VideoPlayer.styles.d.ts +5 -5
  854. package/lib/components/VideoPlayerNew/VideoPlayer.js +19 -19
  855. package/lib/components/VideoPlayerNew/VideoPlayer.styles.d.ts +31 -28
  856. package/lib/components/VideoPlayerNew/VideoPlayer.styles.js +2 -2
  857. package/lib/components/VideoPlayerNew/VideoPlayer.styles.js.map +1 -1
  858. package/lib/components/VideoPlayerNew/VideoPlayer.styles.mjs +2 -2
  859. package/lib/components/VideoPlayerNew/VideoPlayer.styles.mjs.map +1 -1
  860. package/lib/components/index.d.ts +0 -1
  861. package/lib/components/index.js +0 -2
  862. package/lib/components/index.js.map +1 -1
  863. package/lib/components/index.mjs +0 -2
  864. package/lib/components/index.mjs.map +1 -1
  865. package/lib/constants/icons/header/index.d.ts +0 -1
  866. package/lib/constants/icons/header/index.js +0 -9
  867. package/lib/constants/icons/header/index.js.map +1 -1
  868. package/lib/constants/icons/header/index.mjs +0 -2
  869. package/lib/constants/icons/header/index.mjs.map +1 -1
  870. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  871. package/lib/constants/icons/options/colors/index.js +3 -3
  872. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  873. package/lib/constants/icons/options/styles/index.js +3 -3
  874. package/lib/constants/mixin.d.ts +3 -3
  875. package/lib/constants/optionIcons.js +6 -6
  876. package/lib/constants/optionIcons.mjs +4 -4
  877. package/lib/constants/proStoreCategories/mapping/filters.d.ts +0 -17
  878. package/lib/constants/proStoreCategories/mapping/filters.js +0 -17
  879. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  880. package/lib/constants/proStoreCategories/mapping/filters.mjs +0 -17
  881. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  882. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -3
  883. package/lib/constants/proStoreCategories/mapping/index.js +6 -25
  884. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  885. package/lib/constants/proStoreCategories/mapping/index.mjs +6 -25
  886. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  887. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +0 -5
  888. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +0 -3
  889. package/lib/constants/proStoreCategories/mapping/unifi.js +0 -3
  890. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  891. package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -3
  892. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  893. package/lib/constants/proStoreCategories/translations/ar.json.js +5 -9
  894. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  895. package/lib/constants/proStoreCategories/translations/ar.json.mjs +5 -9
  896. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  897. package/lib/constants/proStoreCategories/translations/de.json.js +3 -7
  898. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  899. package/lib/constants/proStoreCategories/translations/de.json.mjs +3 -7
  900. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  901. package/lib/constants/proStoreCategories/translations/el.json.js +5 -9
  902. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  903. package/lib/constants/proStoreCategories/translations/el.json.mjs +5 -9
  904. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  905. package/lib/constants/proStoreCategories/translations/en.json.js +0 -5
  906. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  907. package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -5
  908. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  909. package/lib/constants/proStoreCategories/translations/es.json.js +4 -8
  910. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  911. package/lib/constants/proStoreCategories/translations/es.json.mjs +4 -8
  912. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  913. package/lib/constants/proStoreCategories/translations/fr.json.js +1 -8
  914. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  915. package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -8
  916. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  917. package/lib/constants/proStoreCategories/translations/it.json.js +4 -8
  918. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  919. package/lib/constants/proStoreCategories/translations/it.json.mjs +4 -8
  920. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  921. package/lib/constants/proStoreCategories/translations/ja.json.js +4 -8
  922. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  923. package/lib/constants/proStoreCategories/translations/ja.json.mjs +4 -8
  924. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  925. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +3 -7
  926. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  927. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +3 -7
  928. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  929. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -8
  930. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  931. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -8
  932. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  933. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +8 -15
  934. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  935. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +9 -15
  936. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  937. package/lib/constants/proStoreFilters/mapping.d.ts +10 -44
  938. package/lib/constants/proStoreFilters/mapping.js +19 -131
  939. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  940. package/lib/constants/proStoreFilters/mapping.mjs +19 -131
  941. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  942. package/lib/constants/theme.js +0 -4
  943. package/lib/constants/theme.js.map +1 -1
  944. package/lib/constants/theme.mjs +0 -4
  945. package/lib/constants/theme.mjs.map +1 -1
  946. package/lib/contexts/MenuContext/context.js +34 -34
  947. package/lib/contexts/MenuContext/context.js.map +1 -1
  948. package/lib/contexts/MenuContext/context.mjs +1 -1
  949. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  950. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  951. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  952. package/lib/contexts/MenuContext/presets.d.ts +1 -1
  953. package/lib/contexts/MenuContext/presets.js +4 -2
  954. package/lib/contexts/MenuContext/presets.js.map +1 -1
  955. package/lib/contexts/MenuContext/presets.mjs +4 -2
  956. package/lib/contexts/MenuContext/presets.mjs.map +1 -1
  957. package/lib/helpers/index.d.ts +1 -0
  958. package/lib/helpers/index.js +11 -1
  959. package/lib/helpers/index.js.map +1 -1
  960. package/lib/helpers/index.mjs +2 -1
  961. package/lib/helpers/index.mjs.map +1 -1
  962. package/lib/helpers/proStoreCategories.js +2 -2
  963. package/lib/helpers/product.d.ts +87 -0
  964. package/lib/helpers/product.js +346 -0
  965. package/lib/helpers/product.js.map +1 -0
  966. package/lib/helpers/product.mjs +335 -0
  967. package/lib/helpers/product.mjs.map +1 -0
  968. package/lib/helpers/product.test.d.ts +1 -0
  969. package/lib/helpers/ux.d.ts +0 -8
  970. package/lib/helpers/ux.js +0 -15
  971. package/lib/helpers/ux.js.map +1 -1
  972. package/lib/helpers/ux.mjs +1 -15
  973. package/lib/helpers/ux.mjs.map +1 -1
  974. package/lib/hooks/useHasTouch.js +3 -3
  975. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  976. package/lib/hooks/useHorizontalScroll.js +2 -2
  977. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  978. package/lib/hooks/useScrollToY.js +2 -2
  979. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  980. package/lib/hooks/useTranslation.js +6 -6
  981. package/lib/types/generated.d.ts +1 -1
  982. package/lib/types/generated.js.map +1 -1
  983. package/lib/types/generated.mjs.map +1 -1
  984. package/lib/types/index.d.ts +1 -0
  985. package/lib/types/index.js +2 -0
  986. package/lib/types/index.js.map +1 -1
  987. package/lib/types/index.mjs +1 -0
  988. package/lib/types/index.mjs.map +1 -1
  989. package/lib/types/product.d.ts +87 -0
  990. package/lib/types/product.js +14 -0
  991. package/lib/types/product.js.map +1 -0
  992. package/lib/types/product.mjs +13 -0
  993. package/lib/types/product.mjs.map +1 -0
  994. package/lib/utils/address.d.ts +278 -62
  995. package/lib/utils/address.js +11 -8
  996. package/lib/utils/address.js.map +1 -1
  997. package/lib/utils/address.mjs +11 -8
  998. package/lib/utils/address.mjs.map +1 -1
  999. package/lib/utils/array.d.ts +4 -0
  1000. package/lib/utils/array.js +10 -0
  1001. package/lib/utils/array.js.map +1 -1
  1002. package/lib/utils/array.mjs +10 -1
  1003. package/lib/utils/array.mjs.map +1 -1
  1004. package/lib/utils/nextjs/ssr/registry.js +2 -2
  1005. package/lib/utils/productSort.d.ts +41 -0
  1006. package/lib/utils/productSort.js +67 -0
  1007. package/lib/utils/productSort.js.map +1 -0
  1008. package/lib/utils/productSort.mjs +60 -0
  1009. package/lib/utils/productSort.mjs.map +1 -0
  1010. package/lib/utils/validations/lastNameSuperRefinement.d.ts +11 -0
  1011. package/lib/utils/validations/lastNameSuperRefinement.js +25 -0
  1012. package/lib/utils/validations/lastNameSuperRefinement.js.map +1 -0
  1013. package/lib/utils/validations/lastNameSuperRefinement.mjs +21 -0
  1014. package/lib/utils/validations/lastNameSuperRefinement.mjs.map +1 -0
  1015. package/package.json +42 -43
  1016. package/lib/assets/arrow2.svg +0 -3
  1017. package/lib/assets/cart-secondary.svg +0 -5
  1018. package/lib/assets/icon-location-pin.svg +0 -5
  1019. package/lib/assets/icons/cart-secondary.svg.js.map +0 -1
  1020. package/lib/assets/icons/cart-secondary.svg.mjs +0 -3
  1021. package/lib/assets/icons/cart-secondary.svg.mjs.map +0 -1
  1022. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
  1023. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
  1024. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
  1025. package/lib/components/ButtonGroupBasic/index.stories.d.ts +0 -6
  1026. package/lib/components/Header/Header.stories.d.ts +0 -111
  1027. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +0 -7
  1028. package/lib/components/Header/LogoIcon/LogoIcon.js +0 -46
  1029. package/lib/components/Header/LogoIcon/LogoIcon.js.map +0 -1
  1030. package/lib/components/Header/LogoIcon/LogoIcon.mjs +0 -36
  1031. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +0 -1
  1032. package/lib/components/Header/LogoIcon/index.d.ts +0 -1
  1033. package/lib/components/Header/LogoIcon/index.js +0 -6
  1034. package/lib/components/Header/LogoIcon/index.js.map +0 -1
  1035. package/lib/components/Header/LogoIcon/index.mjs +0 -3
  1036. package/lib/components/Header/LogoIcon/index.mjs.map +0 -1
  1037. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +0 -2
  1038. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +0 -79
  1039. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +0 -1
  1040. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +0 -71
  1041. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +0 -1
  1042. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +0 -5
  1043. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +0 -11
  1044. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +0 -86
  1045. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +0 -1
  1046. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +0 -72
  1047. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +0 -1
  1048. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +0 -12
  1049. package/lib/components/ProductTechSpecsV2/index.d.ts +0 -1
  1050. package/lib/components/ProductTechSpecsV2/index.js +0 -6
  1051. package/lib/components/ProductTechSpecsV2/index.js.map +0 -1
  1052. package/lib/components/ProductTechSpecsV2/index.mjs +0 -3
  1053. package/lib/components/ProductTechSpecsV2/index.mjs.map +0 -1
  1054. package/lib/constants/icons/header/arrow.svg.js.map +0 -1
  1055. package/lib/constants/icons/header/arrow.svg.mjs +0 -3
  1056. package/lib/constants/icons/header/arrow.svg.mjs.map +0 -1
@@ -325,8 +325,7 @@ const _SmartcatApi = class _SmartcatApi {
325
325
  "output-file-path-template": "{LANGUAGE}.json",
326
326
  collections: this.collectionName,
327
327
  zip: "true",
328
- languages: this.targetLanguages?.map(lang => this.languageToSmartcatLocaleMapping[lang]).join(","),
329
- labels: _SmartcatApi.prepareLabels(options?.labels)
328
+ languages: this.targetLanguages?.map(lang => this.languageToSmartcatLocaleMapping[lang]).join(",")
330
329
  // FIXME: Look into only exporting values that has changed since last export minus some time via `modified-since`
331
330
  };
332
331
  const smartcatLocaleToLanguageMap = this.getSmartcatLocaleToLanguageMap();
@@ -347,9 +346,7 @@ const _SmartcatApi = class _SmartcatApi {
347
346
  pollAttempt += 1;
348
347
  const checkUrl = `integration/v1/document/export/${taskID}/`;
349
348
  const checkResponse = await this.axios.get(checkUrl, {
350
- responseType: "arraybuffer",
351
- // Don't throw errors for all errors below 500 so we can handle it gracefully
352
- validateStatus: status => status < 500
349
+ responseType: "arraybuffer"
353
350
  });
354
351
  if (checkResponse.status === 200) {
355
352
  const zip = new AdmZip(checkResponse.data);
@@ -378,19 +375,6 @@ const _SmartcatApi = class _SmartcatApi {
378
375
  } else if (checkResponse.status === 204) {
379
376
  this.logger?.info(`The task ID ${taskID} is not ready yet, will try again`);
380
377
  await setTimeout(pollInterval);
381
- } else if (checkResponse.status === 404) {
382
- throw new Error(`Failed to download smartcat translations, endpoint returned 404`);
383
- } else if (checkResponse.status === 422) {
384
- let response;
385
- try {
386
- const buffer = Buffer.from(checkResponse.data);
387
- const jsonString = buffer.toString("utf8");
388
- response = jsonString;
389
- } catch {
390
- response = "!! Unable to parse response !!";
391
- }
392
- this.logger?.error(response, "\u274C Failed to download smartcat translations, endpoint returned 422");
393
- throw new Error(`Failed to download smartcat translations, endpoint returned 422`);
394
378
  } else {
395
379
  throw new Error(`Failed to download smartcat translations, endpoint returned unknown status code ${checkResponse.status}`);
396
380
  }
@@ -453,16 +437,15 @@ const _SmartcatApi = class _SmartcatApi {
453
437
  }
454
438
  /**
455
439
  * Internal helper method for uploading source translations to Smartcat.
456
- * @see https://developers.smartcat.com/api/#import-keys-and-values-from-files-into-the-software-localization-project
457
440
  */
458
441
  async smartcatUploadRequest(sourceTranslations, options) {
442
+ const labels = options?.labels?.map(label => label.trim()).filter(Boolean).join(",") || "";
459
443
  const queryParams = {
460
444
  format: "json",
461
445
  language: "en",
462
446
  collection: this.collectionName,
463
447
  "delete-missing-keys": !!options?.deleteMissingKeys,
464
- // TODO: was fallback empty string really needed?
465
- labels: _SmartcatApi.prepareLabels(options?.labels) || ""
448
+ labels
466
449
  };
467
450
  const url = `integration/v2/project/${this.projectId}/import`;
468
451
  const smartCatSourceLanguageBuffer = Buffer.from(JSON.stringify(sourceTranslations));
@@ -557,12 +540,6 @@ __publicField(_SmartcatApi, "getSmartcatEnvironmentFromGhBranchName", ghReposito
557
540
  }
558
541
  }
559
542
  });
560
- /**
561
- * Util to prepare labels for passing into request parameters
562
- */
563
- __publicField(_SmartcatApi, "prepareLabels", labels => {
564
- return labels?.map(label => label.trim()).filter(Boolean).join(",");
565
- });
566
543
  let SmartcatApi = _SmartcatApi;
567
544
  export { SmartcatApi, SmartcatEnvironment };
568
545
  //# sourceMappingURL=smartcat.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"smartcat.mjs","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;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,QAAS,CAAAC,EAAE,GAAG,IAAA;EACf,CAACD,QAAS,CAAAE,EAAE,GAAG,IAAA;EACf,CAACF,QAAS,CAAAG,EAAE,GAAG,IAAA;EACf,CAACH,QAAS,CAAAI,EAAE,GAAG,IAAA;EACf,CAACJ,QAAS,CAAAK,EAAE,GAAG,IAAA;EACf,CAACL,QAAS,CAAAM,EAAE,GAAG,IAAA;EACf,CAACN,QAAS,CAAAO,EAAE,GAAG,IAAA;EACf,CAACP,QAAS,CAAAQ,EAAE,GAAG,IAAA;EACf,CAACR,QAAS,CAAAS,EAAE,GAAG,OAAA;EACf,CAACT,QAAS,CAAAU,EAAE,GAAG,SAAA;EACf,CAACV,QAAS,CAAAW,EAAE,GAAG;AACjB,CAAA;AAmBO,MAAMC,YAAA,GAAN,MAAMA,YAAY,CAAA;EAoBvBC,YAAYC,MAA2B,EAAA;IAnB/BC,aAAA,CAAA,IAAA,EAAA,WAAA,CAAA;IACAA,aAAA,CAAA,IAAA,EAAA,gBAAA,CAAA;IACAA,aAAA,CAAA,IAAA,EAAA,OAAA,CAAA;IACAA,aAAA,CAAA,IAAA,EAAA,QA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AAAH,YAAA,EA20BK,eAAgB,EAACgI,MAA0C,IAAA;EACzE,OAAOA,MACH,EAAA9D,GAAA,CAAKoI,KAAA,IAAUA,KAAM,CAAAJ,IAAA,EAAM,CAAA,CAC5BtF,MAAO,CAAAK,OAAO,CACd,CAAA7D,IAAA,CAAK,GAAG,CAAA;AACb,CAAA,CAAA;AAh1BK,IAAMmJ,WAAN,GAAAvM,YAAA;"}
1
+ {"version":3,"file":"smartcat.mjs","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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,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,6 +1,6 @@
1
- <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="9" cy="9" r="9" fill="#F7D55E"/>
3
- <path d="M9.73071 4.64062C9.40595 4.07813 8.59405 4.07812 8.26929 4.64062L4.37218 11.3906C4.04742 11.9531 4.45336 12.6562 5.10288 12.6562H12.8971C13.5466 12.6562 13.9526 11.9531 13.6278 11.3906L9.73071 4.64062Z" stroke="white" stroke-width="0.5625"/>
4
- <path d="M9.22274 9.12833L9.48295 7.30685C9.52494 7.01295 9.29688 6.75 9 6.75C8.70312 6.75 8.47506 7.01295 8.51705 7.30685L8.77726 9.12833C8.81406 9.3859 9.18594 9.3859 9.22274 9.12833Z" fill="white"/>
5
- <circle cx="9" cy="10.6875" r="0.5625" fill="#F7D55E"/>
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="8" cy="8" r="8" fill="#A4A7B5"/>
3
+ <path d="M12.1136 10.125L8.64952 4.125C8.36084 3.625 7.63916 3.625 7.35048 4.125L3.88638 10.125C3.5977 10.625 3.95855 11.25 4.5359 11.25H11.4641C12.0415 11.25 12.4023 10.625 12.1136 10.125Z" stroke="white" stroke-width="0.5"/>
4
+ <path d="M8.19799 8.11407L8.42929 6.49497C8.46661 6.23373 8.2639 6 8 6C7.7361 6 7.53339 6.23373 7.57071 6.49497L7.80201 8.11407C7.83472 8.34302 8.16528 8.34303 8.19799 8.11407Z" fill="white"/>
5
+ <circle cx="8" cy="9.5" r="0.5" fill="white"/>
6
6
  </svg>
@@ -1,6 +1,6 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="8" cy="8" r="8" fill="#A4A7B5"/>
3
- <path d="M12.1136 10.125L8.64952 4.125C8.36084 3.625 7.63916 3.625 7.35048 4.125L3.88638 10.125C3.5977 10.625 3.95855 11.25 4.5359 11.25H11.4641C12.0415 11.25 12.4023 10.625 12.1136 10.125Z" stroke="white" stroke-width="0.5"/>
4
- <path d="M8.19799 8.11407L8.42929 6.49497C8.46661 6.23373 8.2639 6 8 6C7.7361 6 7.53339 6.23373 7.57071 6.49497L7.80201 8.11407C7.83472 8.34302 8.16528 8.34303 8.19799 8.11407Z" fill="white"/>
5
- <circle cx="8" cy="9.5" r="0.5" fill="white"/>
1
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="9" cy="9" r="9" fill="#F7D55E"/>
3
+ <path d="M9.73071 4.64062C9.40595 4.07813 8.59405 4.07812 8.26929 4.64062L4.37218 11.3906C4.04742 11.9531 4.45336 12.6562 5.10288 12.6562H12.8971C13.5466 12.6562 13.9526 11.9531 13.6278 11.3906L9.73071 4.64062Z" stroke="white" stroke-width="0.5625"/>
4
+ <path d="M9.22274 9.12833L9.48295 7.30685C9.52494 7.01295 9.29688 6.75 9 6.75C8.70312 6.75 8.47506 7.01295 8.51705 7.30685L8.77726 9.12833C8.81406 9.3859 9.18594 9.3859 9.22274 9.12833Z" fill="white"/>
5
+ <circle cx="9" cy="10.6875" r="0.5625" fill="#F7D55E"/>
6
6
  </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.5934 11.5633C19.4108 10.4229 17.5851 9.44735 13.9717 8.42955H13.9722C13.8487 8.39472 13.8566 8.23964 13.9833 8.21735C14.0147 8.21191 14.0487 8.20558 14.0855 8.19871C14.2595 8.16626 14.4982 8.12174 14.84 8.1022C27.9265 7.34953 25.5408 17.5489 17.3014 17.5684C15.7747 17.5716 14.0534 17.4616 12.9242 16.187C12.8286 16.0788 12.9725 15.9372 13.0788 16.0343C14.9812 17.7625 20.1667 17.1171 21.3368 15.2964C22.2901 13.8115 21.6999 12.6312 20.5934 11.5633ZM25.8905 11.2872C26 11.3406 26.1236 11.4084 26.2508 11.4975L26.2512 11.4989C30.2602 14.3285 27.6438 16.6915 23.7773 17.8834V17.8852C23.7195 17.9014 23.6615 17.9186 23.6032 17.9358L23.6022 17.9361C23.589 17.94 23.5759 17.9439 23.5627 17.9478L23.5419 17.9539C19.9141 19.014 15.0503 19.1761 12.6284 17.8894C12.6284 17.8894 12.1121 17.5802 11.9059 17.3968C11.1217 16.6993 10.4066 15.7999 12.0104 14.6247C12.127 14.5393 12.2551 14.6981 12.1469 14.7947C10.8723 15.9272 12.3535 17.3745 14.7221 17.8829C15.5063 18.051 16.5283 18.1169 17.5428 18.0087C17.8776 17.9735 18.1971 17.9307 18.5012 17.882H18.5137C20.9839 17.4827 22.473 16.6729 23.5642 15.7577C24.8736 14.6586 25.5724 13.3701 25.467 11.27C25.4624 11.1799 25.5394 11.1279 25.6212 11.1655C25.647 11.1774 25.6757 11.19 25.7071 11.2038C25.7614 11.2276 25.8233 11.2548 25.8905 11.2872ZM3.34008 12.1588C6.84248 11.0453 9.39209 10.7087 11.9143 10.7482C14.2749 10.7849 16.636 11.1192 18.7004 12.3273C21.0025 13.6743 19.8041 16.2992 15.8128 16.289C15.6665 16.289 15.6609 16.4993 15.8072 16.5067C18.4422 16.6335 19.4976 15.9291 20.2777 15.221C22.3862 13.3057 19.2594 10.783 15.3614 9.58689C11.3631 8.35969 6.16085 8.34808 3.45663 11.5482C3.36701 11.6545 3.31315 11.7479 3.27647 11.8296C3.25423 11.8786 3.23919 11.9223 3.2261 11.9603C3.21923 11.9802 3.2129 11.9985 3.20636 12.0153C3.16875 12.1114 3.24304 12.1899 3.34055 12.1588H3.34008ZM12.2203 11.9816C9.15574 12.3071 7.4266 13.2028 6.19892 14.2331V14.2322C5.07294 15.1762 4.39874 16.2608 4.29844 17.8799L4.29241 17.8836H4.29844C4.28219 18.1451 4.28126 18.4237 4.29612 18.7199C4.30077 18.8095 4.23205 18.8648 4.13593 18.8397C4.07789 18.8246 4.0121 18.7916 3.93645 18.7536L3.93643 18.7536L3.93636 18.7536C3.914 18.7424 3.89077 18.7307 3.86662 18.719C3.75974 18.6667 3.64629 18.5863 3.52328 18.4992L3.51234 18.4914C3.22167 18.2867 2.96583 18.0842 2.74296 17.8841C-0.173466 15.2709 2.51172 13.1211 6.22121 12.0373C10.2594 10.857 15.8281 10.7902 17.8572 12.5945C18.6414 13.2919 19.357 14.1909 17.7527 15.3661C17.6362 15.4511 17.508 15.2932 17.6162 15.1971C19.3328 13.6713 16.1629 11.5633 12.2203 11.9816ZM26.4221 17.8312C26.3738 17.846 26.326 17.8618 26.2782 17.8795H26.267C22.8445 18.9544 20.333 19.2799 17.8479 19.2418C15.6396 19.207 13.4303 18.9117 11.4634 17.8841H11.4616C11.3274 17.8135 11.1941 17.7402 11.0623 17.6631C8.76014 16.3161 9.95856 13.6913 13.9499 13.7005C14.0962 13.7015 14.1017 13.4902 13.9555 13.4832C11.3204 13.356 10.265 14.0604 9.48495 14.769C8.42211 15.7348 8.68956 16.8547 9.71618 17.8841H9.71943C10.7298 18.8926 12.471 19.8101 14.4017 20.4031C18.4 21.6307 23.6023 21.6414 26.307 18.4413C26.3966 18.3354 26.4504 18.2416 26.4871 18.1604C26.509 18.1116 26.5241 18.0681 26.5372 18.0302L26.5372 18.0302C26.5442 18.0101 26.5506 17.9916 26.5572 17.9747C26.5702 17.9412 26.5698 17.9096 26.5591 17.8846C26.5396 17.8372 26.4862 17.8117 26.4226 17.8316L26.4221 17.8312ZM9.16923 18.4263C10.3514 19.5671 12.1776 20.5422 15.791 21.5605L15.7905 21.56C15.914 21.5948 15.9061 21.7494 15.7794 21.7717C15.7478 21.7772 15.7136 21.7836 15.6765 21.7905C15.5026 21.8229 15.2641 21.8674 14.9227 21.8873C8.7713 22.2412 6.03829 20.1749 5.72534 17.8835C5.37245 15.3004 8.09478 12.4309 12.4613 12.4207C13.988 12.4174 15.7092 12.5279 16.8385 13.8021C16.9346 13.9098 16.7907 14.0519 16.6839 13.9548C14.7815 12.2271 9.59594 12.8725 8.42585 14.6931C7.63092 15.9305 7.90859 16.9571 8.66405 17.8825V17.8839C8.81449 18.0678 8.98489 18.2484 9.16923 18.4263Z" fill="#212124"/>
3
+ </svg>
Binary file
Binary file
Binary file
Binary file
@@ -3,25 +3,25 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var LocationPinIcon = require("../../icon-location-pin.svg");
6
+ var GlobeIcon = require("../../globe.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var LocationPinIcon__default = /*#__PURE__*/_interopDefault(LocationPinIcon);
12
+ var GlobeIcon__default = /*#__PURE__*/_interopDefault(GlobeIcon);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return LocationPinIcon__default["default"];
16
+ return GlobeIcon__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(LocationPinIcon).forEach(function (k) {
19
+ Object.keys(GlobeIcon).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return LocationPinIcon[k];
23
+ return GlobeIcon[k];
24
24
  }
25
25
  });
26
26
  });
27
- //# sourceMappingURL=icon-location-pin.svg.js.map
27
+ //# sourceMappingURL=icon-globe.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-globe.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from "../../globe.svg";
2
+ export { default } from "../../globe.svg";
3
+ //# sourceMappingURL=icon-globe.svg.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-globe.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,12 +1,4 @@
1
- <svg width="59" height="18" viewBox="0 0 59 18" fill="none"
1
+ <svg width="46" height="14" viewBox="0 0 46 14" fill="none"
2
2
  xmlns="http://www.w3.org/2000/svg">
3
- <path d="M34.6668 2.1844C34.6668 3.36186 35.6437 4.33873 36.8513 4.33873C38.0286 4.33873 39.0055 3.39189 39.0055 2.1844C39.0055 0.976868 38.0587 0 36.8513 0C35.6437 0 34.6668 1.0069 34.6668 2.1844Z" fill="currentColor"/>
4
- <path d="M54.2476 2.1844C54.2476 3.36186 55.2244 4.33873 56.432 4.33873C57.6094 4.33873 58.5862 3.39189 58.5862 2.1844C58.5862 0.976868 57.6394 0 56.432 0C55.2244 0 54.2476 1.0069 54.2476 2.1844Z" fill="currentColor"/>
5
- <path d="M38.7133 5.85562H34.9576V17.8594H38.7133V5.85562Z" fill="currentColor"/>
6
- <path d="M52.4907 0.532516H41.8557V17.8594H45.6114V11.3138H51.3995V8.03815H45.6114V3.80814H52.4907V0.532516Z" fill="currentColor"/>
7
- <path d="M58.2957 5.85562H54.54V17.8594H58.2957V5.85562Z" fill="currentColor"/>
8
- <path d="M13.0968 8.03815V5.85191H15.2776V3.66939H17.46V5.85191H15.2794V8.03439H17.4619V8.72626C17.4619 9.52501 17.3943 10.4719 17.2368 11.2163C17.1506 11.6325 17.0175 12.045 16.8618 12.4425C16.7646 12.691 16.6582 12.9325 16.5443 13.1623L16.4958 13.259C16.4788 13.2921 16.4615 13.3249 16.4443 13.3575L16.4132 13.4156C16.4002 13.4399 16.387 13.464 16.3737 13.488C16.3553 13.5211 16.3369 13.5539 16.3182 13.5863C16.0574 14.0419 15.7557 14.4787 15.405 14.8894L15.3631 14.9384L15.3604 14.9417C15.2747 15.0419 15.1901 15.1408 15.0974 15.2382C14.9907 15.3525 14.8801 15.4613 14.7675 15.5681C13.3705 16.9125 11.5519 17.7525 9.64874 17.9457C9.42004 17.9681 8.96063 17.9925 8.72992 17.9925C8.6131 17.9925 8.43732 17.9863 8.26263 17.9772C8.0929 17.9683 7.92407 17.9567 7.81128 17.9457C5.90808 17.7525 4.08929 16.9125 2.69257 15.5681L2.65009 15.5263L2.64844 15.5246C2.55249 15.4307 2.45691 15.3373 2.36444 15.2382C2.25568 15.1238 2.15808 15.0075 2.05682 14.8894C1.70819 14.4787 1.40442 14.0419 1.14368 13.5863C1.08252 13.4789 1.02264 13.3676 0.9646 13.2531C0.914062 13.1535 0.864807 13.0514 0.817017 12.9475C0.78186 12.8713 0.74762 12.794 0.714294 12.7159C0.69873 12.6796 0.68335 12.6432 0.668152 12.6066L0.645447 12.5513L0.624939 12.5006L0.601868 12.4425C0.444397 12.045 0.31311 11.6325 0.225037 11.2163C0.0675659 10.4738 0 9.52501 0 8.72626V0.532516H4.36304V8.03815L4.3634 8.17635C4.36359 8.25618 4.36395 8.36105 4.36469 8.4646C4.36578 8.59772 4.36761 8.72864 4.37054 8.80128C4.38007 9.06001 4.3894 9.31316 4.41559 9.56438C4.48883 10.2394 4.63696 10.8769 4.9444 11.4188C5.0343 11.5763 5.12439 11.7263 5.23132 11.8706C5.88757 12.7462 6.88495 13.4025 8.1319 13.5863C8.28003 13.6069 8.57996 13.6257 8.72992 13.6257C8.88007 13.6257 9.17999 13.6088 9.32812 13.5863C10.5731 13.4025 11.5724 12.7462 12.2287 11.8706C12.2944 11.7833 12.3534 11.6933 12.4092 11.6013C12.4457 11.5412 12.4808 11.4803 12.5156 11.4188C12.8231 10.8769 12.9732 10.2394 13.0444 9.56438C13.0706 9.31316 13.08 9.06001 13.0893 8.80128C13.0928 8.71367 13.0946 8.54132 13.0957 8.38257L13.0966 8.1503L13.0968 8.03815Z" fill="currentColor"/>
9
- <path d="M15.2776 3.66939H13.6406V2.03252H15.2776V3.66939Z" fill="currentColor"/>
10
- <path d="M15.8231 0.395645H16.9144V1.48686H15.8231V0.395645Z" fill="currentColor"/>
11
- <path d="M31.8168 17.8594H28.0875V10.8018C28.0875 10.8018 28.0875 10.5544 28.0838 10.4737V10.4686C28.08 10.3598 28.0761 10.2527 28.0649 10.1456C28.0349 9.85684 27.9712 9.58122 27.8381 9.34872L27.8309 9.33618L27.8282 9.33138C27.7921 9.26999 27.7571 9.2103 27.7143 9.15372C27.4312 8.77684 27.0037 8.49564 26.4675 8.41685C26.4435 8.4126 26.4102 8.40889 26.3747 8.40591L26.3331 8.40285C26.2868 8.39983 26.2412 8.39809 26.2106 8.39809C26.1731 8.39919 26.113 8.40221 26.0568 8.40642C26.0175 8.40939 25.9799 8.41296 25.9537 8.41685C25.4174 8.49564 24.988 8.77684 24.7068 9.15372C24.6965 9.16759 24.6866 9.18146 24.6771 9.19537C24.6669 9.21039 24.657 9.22545 24.6473 9.2406C24.6248 9.27594 24.6037 9.31178 24.5832 9.34872C24.4519 9.58122 24.3862 9.85684 24.3561 10.1456C24.3431 10.2544 24.3393 10.3631 24.3356 10.4737C24.3338 10.5544 24.3338 10.8018 24.3338 10.8018V17.8462H20.6025V5.84248H24.1968V6.93375C24.1968 6.93375 25.4756 5.34 28.0294 5.45247C30.3243 5.55373 31.8168 7.31625 31.8168 9.70876V17.8594Z" fill="currentColor"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M26.9757 1.69953C26.9757 2.61581 27.7357 3.3758 28.6743 3.3758V3.37487C29.5906 3.37487 30.3506 2.6372 30.3506 1.6986C30.3506 0.759998 29.6139 0 28.6743 0C27.7348 0 26.9757 0.783254 26.9757 1.69953ZM42.212 1.69953C42.212 2.61581 42.972 3.3758 43.9106 3.3758V3.37487C44.8269 3.37487 45.5868 2.6372 45.5868 1.6986C45.5868 0.759998 44.8492 0 43.9106 0C42.972 0 42.212 0.783254 42.212 1.69953ZM30.1246 4.55534H27.2018V13.8958H30.1246V4.55534ZM40.8436 0.413063H32.5683V13.8967H35.4911V8.80281H39.9943V6.25398H35.4911V2.96189H40.8436V0.413063ZM45.3608 4.55534H42.438V13.8958H45.3608V4.55534ZM10.1907 6.25398V4.55259H10.1916H11.8893V6.25119H13.5869V6.78886C13.5869 7.41118 13.5339 8.14792 13.4121 8.72746C13.3441 9.05118 13.2409 9.37304 13.12 9.68187C12.9962 9.99722 12.853 10.2995 12.6976 10.5712C12.4948 10.9247 12.2595 11.2651 11.9869 11.5842L11.9657 11.6092C11.8949 11.6928 11.8248 11.7755 11.7479 11.8558C11.6651 11.9451 11.5786 12.0288 11.4911 12.1126C10.4046 13.1591 8.98788 13.8121 7.50789 13.9628C7.33021 13.9814 6.97207 14 6.79347 14C6.61486 13.9991 6.25673 13.9805 6.07905 13.9628C4.59813 13.8121 3.18232 13.1591 2.09581 12.1126L2.09488 12.1117L2.09488 12.1117L2.09487 12.1117L2.09486 12.1117C2.00774 12.0273 1.92156 11.9439 1.83906 11.8558C1.76211 11.7755 1.69207 11.6928 1.62126 11.6093L1.62124 11.6092L1.6 11.5842C1.32744 11.2651 1.09209 10.9256 0.8893 10.5712C0.733951 10.3005 0.590696 9.99815 0.466975 9.68187C0.346046 9.37304 0.24279 9.05118 0.174883 8.72746C0.0530231 8.14792 0 7.41118 0 6.78886V0.413063H3.39441V6.25398C3.39441 6.25398 3.39441 6.70142 3.39999 6.84839L3.40102 6.8765C3.40807 7.06849 3.41494 7.25565 3.43534 7.44281C3.49115 7.96746 3.60743 8.46513 3.8465 8.8856C3.91534 9.00746 3.98604 9.1256 4.06976 9.23722C4.58045 9.91815 5.35812 10.4298 6.32742 10.5721C6.44277 10.5888 6.67626 10.6037 6.79254 10.6037C6.90975 10.6037 7.1423 10.5888 7.25765 10.5721C8.22695 10.4298 9.00463 9.91815 9.51532 9.23722C9.59904 9.12467 9.66974 9.00746 9.73858 8.8856C9.97765 8.4642 10.0939 7.96746 10.1497 7.44281C10.1701 7.25566 10.177 7.06852 10.1841 6.87653V6.87652V6.87651V6.8765V6.87649L10.1851 6.84839C10.1907 6.70142 10.1907 6.25398 10.1907 6.25398ZM11.8874 1.58144H10.6139V2.85492H11.8874V1.58144ZM12.3125 0.307027H13.1618V1.15633H12.3125V0.307027ZM13.586 4.55258H11.8883V3.80839V2.85491H13.586V4.55258ZM24.7581 13.8967H21.8548V13.8958V8.40555C21.8548 8.40555 21.8548 8.213 21.852 8.14974C21.8493 8.06323 21.8465 7.97858 21.8372 7.89393C21.813 7.66788 21.7637 7.45393 21.6604 7.27347C21.6307 7.22137 21.6009 7.17114 21.5646 7.12277C21.3451 6.82974 21.0111 6.61021 20.5944 6.54882C20.5451 6.54137 20.4446 6.53486 20.3944 6.53486C20.3441 6.53486 20.2437 6.54137 20.1944 6.54882C19.7776 6.61021 19.4437 6.82974 19.2241 7.12277C19.1879 7.17021 19.1581 7.22137 19.1283 7.27347C19.0251 7.45486 18.9758 7.66881 18.9516 7.89393C18.9432 7.97858 18.9395 8.06323 18.9367 8.14974C18.9339 8.213 18.9339 8.40555 18.9339 8.40555V13.8865H16.0307V4.54603H18.8279V5.39533C18.8279 5.39533 19.8241 4.15533 21.8111 4.24278C23.5972 4.32185 24.7581 5.69207 24.7581 7.55439V13.8967Z" fill="currentColor"/>
12
4
  </svg>
@@ -1,15 +1,15 @@
1
- <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
- <g clip-path="url(#clip0_426_15898)">
4
- <path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
1
+ <svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
3
+ <g clip-path="url(#clip0_658_406)">
4
+ <path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
5
5
  </g>
6
6
  </mask>
7
- <g mask="url(#mask0_426_15898)">
8
- <rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
7
+ <g mask="url(#mask0_658_406)">
8
+ <rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
9
9
  </g>
10
10
  <defs>
11
- <clipPath id="clip0_426_15898">
12
- <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
11
+ <clipPath id="clip0_658_406">
12
+ <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
13
13
  </clipPath>
14
14
  </defs>
15
15
  </svg>
@@ -1,15 +1,15 @@
1
- <svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
3
- <g clip-path="url(#clip0_658_406)">
4
- <path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
1
+ <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
+ <g clip-path="url(#clip0_426_15898)">
4
+ <path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
5
5
  </g>
6
6
  </mask>
7
- <g mask="url(#mask0_658_406)">
8
- <rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
7
+ <g mask="url(#mask0_426_15898)">
8
+ <rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
9
9
  </g>
10
10
  <defs>
11
- <clipPath id="clip0_658_406">
12
- <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
11
+ <clipPath id="clip0_426_15898">
12
+ <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
13
13
  </clipPath>
14
14
  </defs>
15
15
  </svg>
@@ -1,16 +1,16 @@
1
- <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
- <g clip-path="url(#clip0_426_15903)">
4
- <path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
5
- <path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
1
+ <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
3
+ <g clip-path="url(#clip0_658_411)">
4
+ <path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
5
+ <path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
6
6
  </g>
7
7
  </mask>
8
- <g mask="url(#mask0_426_15903)">
9
- <rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
8
+ <g mask="url(#mask0_658_411)">
9
+ <rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
10
10
  </g>
11
11
  <defs>
12
- <clipPath id="clip0_426_15903">
13
- <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
12
+ <clipPath id="clip0_658_411">
13
+ <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
14
14
  </clipPath>
15
15
  </defs>
16
16
  </svg>
@@ -1,16 +1,16 @@
1
- <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
3
- <g clip-path="url(#clip0_658_411)">
4
- <path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
5
- <path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
1
+ <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
+ <g clip-path="url(#clip0_426_15903)">
4
+ <path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
5
+ <path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
6
6
  </g>
7
7
  </mask>
8
- <g mask="url(#mask0_658_411)">
9
- <rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
8
+ <g mask="url(#mask0_426_15903)">
9
+ <rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
10
10
  </g>
11
11
  <defs>
12
- <clipPath id="clip0_658_411">
13
- <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
12
+ <clipPath id="clip0_426_15903">
13
+ <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
14
14
  </clipPath>
15
15
  </defs>
16
16
  </svg>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file