@webshopmanager/partslogic-ui 1.3.1-al176.1

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 (369) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +262 -0
  3. package/build/Alert/index.css +1 -0
  4. package/build/Alert/index.esm.js +8 -0
  5. package/build/Alert/index.esm.js.map +1 -0
  6. package/build/Alert/index.js +8 -0
  7. package/build/Alert/index.js.map +1 -0
  8. package/build/Alert/index.umd.js +8 -0
  9. package/build/Alert/index.umd.js.map +1 -0
  10. package/build/Alert/package.json +6 -0
  11. package/build/BreadCrumb/index.css +1 -0
  12. package/build/BreadCrumb/index.esm.js +22 -0
  13. package/build/BreadCrumb/index.esm.js.map +1 -0
  14. package/build/BreadCrumb/index.js +22 -0
  15. package/build/BreadCrumb/index.js.map +1 -0
  16. package/build/BreadCrumb/index.umd.js +22 -0
  17. package/build/BreadCrumb/index.umd.js.map +1 -0
  18. package/build/BreadCrumb/package.json +6 -0
  19. package/build/CategoryCarousel/index.css +1 -0
  20. package/build/CategoryCarousel/index.esm.js +22 -0
  21. package/build/CategoryCarousel/index.esm.js.map +1 -0
  22. package/build/CategoryCarousel/index.js +22 -0
  23. package/build/CategoryCarousel/index.js.map +1 -0
  24. package/build/CategoryCarousel/index.umd.js +22 -0
  25. package/build/CategoryCarousel/index.umd.js.map +1 -0
  26. package/build/CategoryCarousel/package.json +6 -0
  27. package/build/CategoryCarouselWrapper/index.css +1 -0
  28. package/build/CategoryCarouselWrapper/index.esm.js +22 -0
  29. package/build/CategoryCarouselWrapper/index.esm.js.map +1 -0
  30. package/build/CategoryCarouselWrapper/index.js +22 -0
  31. package/build/CategoryCarouselWrapper/index.js.map +1 -0
  32. package/build/CategoryCarouselWrapper/index.umd.js +22 -0
  33. package/build/CategoryCarouselWrapper/index.umd.js.map +1 -0
  34. package/build/CategoryCarouselWrapper/package.json +6 -0
  35. package/build/CategoryList/index.css +1 -0
  36. package/build/CategoryList/index.esm.js +22 -0
  37. package/build/CategoryList/index.esm.js.map +1 -0
  38. package/build/CategoryList/index.js +22 -0
  39. package/build/CategoryList/index.js.map +1 -0
  40. package/build/CategoryList/index.umd.js +22 -0
  41. package/build/CategoryList/index.umd.js.map +1 -0
  42. package/build/CategoryList/package.json +6 -0
  43. package/build/CategoryListWrapper/index.css +1 -0
  44. package/build/CategoryListWrapper/index.esm.js +22 -0
  45. package/build/CategoryListWrapper/index.esm.js.map +1 -0
  46. package/build/CategoryListWrapper/index.js +22 -0
  47. package/build/CategoryListWrapper/index.js.map +1 -0
  48. package/build/CategoryListWrapper/index.umd.js +22 -0
  49. package/build/CategoryListWrapper/index.umd.js.map +1 -0
  50. package/build/CategoryListWrapper/package.json +6 -0
  51. package/build/FacetFilter/index.css +1 -0
  52. package/build/FacetFilter/index.esm.js +22 -0
  53. package/build/FacetFilter/index.esm.js.map +1 -0
  54. package/build/FacetFilter/index.js +22 -0
  55. package/build/FacetFilter/index.js.map +1 -0
  56. package/build/FacetFilter/index.umd.js +22 -0
  57. package/build/FacetFilter/index.umd.js.map +1 -0
  58. package/build/FacetFilter/package.json +6 -0
  59. package/build/FitmentSelector/index.css +1 -0
  60. package/build/FitmentSelector/index.esm.js +22 -0
  61. package/build/FitmentSelector/index.esm.js.map +1 -0
  62. package/build/FitmentSelector/index.js +22 -0
  63. package/build/FitmentSelector/index.js.map +1 -0
  64. package/build/FitmentSelector/index.umd.js +22 -0
  65. package/build/FitmentSelector/index.umd.js.map +1 -0
  66. package/build/FitmentSelector/package.json +6 -0
  67. package/build/FitmentSelectorVerifier/index.css +1 -0
  68. package/build/FitmentSelectorVerifier/index.esm.js +22 -0
  69. package/build/FitmentSelectorVerifier/index.esm.js.map +1 -0
  70. package/build/FitmentSelectorVerifier/index.js +22 -0
  71. package/build/FitmentSelectorVerifier/index.js.map +1 -0
  72. package/build/FitmentSelectorVerifier/index.umd.js +22 -0
  73. package/build/FitmentSelectorVerifier/index.umd.js.map +1 -0
  74. package/build/FitmentSelectorVerifier/package.json +6 -0
  75. package/build/FitmentSelectorWrapper/index.css +1 -0
  76. package/build/FitmentSelectorWrapper/index.esm.js +22 -0
  77. package/build/FitmentSelectorWrapper/index.esm.js.map +1 -0
  78. package/build/FitmentSelectorWrapper/index.js +22 -0
  79. package/build/FitmentSelectorWrapper/index.js.map +1 -0
  80. package/build/FitmentSelectorWrapper/index.umd.js +22 -0
  81. package/build/FitmentSelectorWrapper/index.umd.js.map +1 -0
  82. package/build/FitmentSelectorWrapper/package.json +6 -0
  83. package/build/FitmentStoreWrapper/index.css +1 -0
  84. package/build/FitmentStoreWrapper/index.esm.js +8 -0
  85. package/build/FitmentStoreWrapper/index.esm.js.map +1 -0
  86. package/build/FitmentStoreWrapper/index.js +8 -0
  87. package/build/FitmentStoreWrapper/index.js.map +1 -0
  88. package/build/FitmentStoreWrapper/index.umd.js +8 -0
  89. package/build/FitmentStoreWrapper/index.umd.js.map +1 -0
  90. package/build/FitmentStoreWrapper/package.json +6 -0
  91. package/build/ListControls/index.css +1 -0
  92. package/build/ListControls/index.esm.js +8 -0
  93. package/build/ListControls/index.esm.js.map +1 -0
  94. package/build/ListControls/index.js +8 -0
  95. package/build/ListControls/index.js.map +1 -0
  96. package/build/ListControls/index.umd.js +8 -0
  97. package/build/ListControls/index.umd.js.map +1 -0
  98. package/build/ListControls/package.json +6 -0
  99. package/build/LoadingIndicator/index.css +1 -0
  100. package/build/LoadingIndicator/index.esm.js +8 -0
  101. package/build/LoadingIndicator/index.esm.js.map +1 -0
  102. package/build/LoadingIndicator/index.js +8 -0
  103. package/build/LoadingIndicator/index.js.map +1 -0
  104. package/build/LoadingIndicator/index.umd.js +8 -0
  105. package/build/LoadingIndicator/index.umd.js.map +1 -0
  106. package/build/LoadingIndicator/package.json +6 -0
  107. package/build/Pagination/index.css +1 -0
  108. package/build/Pagination/index.esm.js +8 -0
  109. package/build/Pagination/index.esm.js.map +1 -0
  110. package/build/Pagination/index.js +8 -0
  111. package/build/Pagination/index.js.map +1 -0
  112. package/build/Pagination/index.umd.js +8 -0
  113. package/build/Pagination/index.umd.js.map +1 -0
  114. package/build/Pagination/package.json +6 -0
  115. package/build/PaginationWithRangeInfo/index.css +1 -0
  116. package/build/PaginationWithRangeInfo/index.esm.js +8 -0
  117. package/build/PaginationWithRangeInfo/index.esm.js.map +1 -0
  118. package/build/PaginationWithRangeInfo/index.js +8 -0
  119. package/build/PaginationWithRangeInfo/index.js.map +1 -0
  120. package/build/PaginationWithRangeInfo/index.umd.js +8 -0
  121. package/build/PaginationWithRangeInfo/index.umd.js.map +1 -0
  122. package/build/PaginationWithRangeInfo/package.json +6 -0
  123. package/build/ProductList/index.css +1 -0
  124. package/build/ProductList/index.esm.js +22 -0
  125. package/build/ProductList/index.esm.js.map +1 -0
  126. package/build/ProductList/index.js +22 -0
  127. package/build/ProductList/index.js.map +1 -0
  128. package/build/ProductList/index.umd.js +22 -0
  129. package/build/ProductList/index.umd.js.map +1 -0
  130. package/build/ProductList/package.json +6 -0
  131. package/build/ProductListWrapper/index.css +1 -0
  132. package/build/ProductListWrapper/index.esm.js +22 -0
  133. package/build/ProductListWrapper/index.esm.js.map +1 -0
  134. package/build/ProductListWrapper/index.js +22 -0
  135. package/build/ProductListWrapper/index.js.map +1 -0
  136. package/build/ProductListWrapper/index.umd.js +22 -0
  137. package/build/ProductListWrapper/index.umd.js.map +1 -0
  138. package/build/ProductListWrapper/package.json +6 -0
  139. package/build/ProductSelectorVerifier/index.css +1 -0
  140. package/build/ProductSelectorVerifier/index.esm.js +22 -0
  141. package/build/ProductSelectorVerifier/index.esm.js.map +1 -0
  142. package/build/ProductSelectorVerifier/index.js +22 -0
  143. package/build/ProductSelectorVerifier/index.js.map +1 -0
  144. package/build/ProductSelectorVerifier/index.umd.js +22 -0
  145. package/build/ProductSelectorVerifier/index.umd.js.map +1 -0
  146. package/build/ProductSelectorVerifier/package.json +6 -0
  147. package/build/SearchBar/index.css +1 -0
  148. package/build/SearchBar/index.esm.js +22 -0
  149. package/build/SearchBar/index.esm.js.map +1 -0
  150. package/build/SearchBar/index.js +22 -0
  151. package/build/SearchBar/index.js.map +1 -0
  152. package/build/SearchBar/index.umd.js +22 -0
  153. package/build/SearchBar/index.umd.js.map +1 -0
  154. package/build/SearchBar/package.json +6 -0
  155. package/build/SearchBarWrapper/index.css +1 -0
  156. package/build/SearchBarWrapper/index.esm.js +22 -0
  157. package/build/SearchBarWrapper/index.esm.js.map +1 -0
  158. package/build/SearchBarWrapper/index.js +22 -0
  159. package/build/SearchBarWrapper/index.js.map +1 -0
  160. package/build/SearchBarWrapper/index.umd.js +22 -0
  161. package/build/SearchBarWrapper/index.umd.js.map +1 -0
  162. package/build/SearchBarWrapper/package.json +6 -0
  163. package/build/SearchBarWrapperModal/index.css +1 -0
  164. package/build/SearchBarWrapperModal/index.esm.js +22 -0
  165. package/build/SearchBarWrapperModal/index.esm.js.map +1 -0
  166. package/build/SearchBarWrapperModal/index.js +22 -0
  167. package/build/SearchBarWrapperModal/index.js.map +1 -0
  168. package/build/SearchBarWrapperModal/index.umd.js +22 -0
  169. package/build/SearchBarWrapperModal/index.umd.js.map +1 -0
  170. package/build/SearchBarWrapperModal/package.json +6 -0
  171. package/build/SkuListWrapper/index.css +1 -0
  172. package/build/SkuListWrapper/index.esm.js +22 -0
  173. package/build/SkuListWrapper/index.esm.js.map +1 -0
  174. package/build/SkuListWrapper/index.js +22 -0
  175. package/build/SkuListWrapper/index.js.map +1 -0
  176. package/build/SkuListWrapper/index.umd.js +22 -0
  177. package/build/SkuListWrapper/index.umd.js.map +1 -0
  178. package/build/SkuListWrapper/package.json +6 -0
  179. package/build/SpecificationSearch/index.css +1 -0
  180. package/build/SpecificationSearch/index.esm.js +8 -0
  181. package/build/SpecificationSearch/index.esm.js.map +1 -0
  182. package/build/SpecificationSearch/index.js +8 -0
  183. package/build/SpecificationSearch/index.js.map +1 -0
  184. package/build/SpecificationSearch/index.umd.js +8 -0
  185. package/build/SpecificationSearch/index.umd.js.map +1 -0
  186. package/build/SpecificationSearch/package.json +6 -0
  187. package/build/WsmFitmentSelectorWrapper/index.css +1 -0
  188. package/build/WsmFitmentSelectorWrapper/index.esm.js +22 -0
  189. package/build/WsmFitmentSelectorWrapper/index.esm.js.map +1 -0
  190. package/build/WsmFitmentSelectorWrapper/index.js +22 -0
  191. package/build/WsmFitmentSelectorWrapper/index.js.map +1 -0
  192. package/build/WsmFitmentSelectorWrapper/index.umd.js +22 -0
  193. package/build/WsmFitmentSelectorWrapper/index.umd.js.map +1 -0
  194. package/build/WsmFitmentSelectorWrapper/package.json +6 -0
  195. package/build/WsmProductListWrapper/index.css +1 -0
  196. package/build/WsmProductListWrapper/index.esm.js +22 -0
  197. package/build/WsmProductListWrapper/index.esm.js.map +1 -0
  198. package/build/WsmProductListWrapper/index.js +22 -0
  199. package/build/WsmProductListWrapper/index.js.map +1 -0
  200. package/build/WsmProductListWrapper/index.umd.js +22 -0
  201. package/build/WsmProductListWrapper/index.umd.js.map +1 -0
  202. package/build/WsmProductListWrapper/package.json +6 -0
  203. package/build/WsmSearchBarWithWrapperModal/index.css +1 -0
  204. package/build/WsmSearchBarWithWrapperModal/index.esm.js +8 -0
  205. package/build/WsmSearchBarWithWrapperModal/index.esm.js.map +1 -0
  206. package/build/WsmSearchBarWithWrapperModal/index.js +8 -0
  207. package/build/WsmSearchBarWithWrapperModal/index.js.map +1 -0
  208. package/build/WsmSearchBarWithWrapperModal/index.umd.js +8 -0
  209. package/build/WsmSearchBarWithWrapperModal/index.umd.js.map +1 -0
  210. package/build/WsmSearchBarWithWrapperModal/package.json +6 -0
  211. package/build/WsmSearchBarWrapper/index.css +1 -0
  212. package/build/WsmSearchBarWrapper/index.esm.js +22 -0
  213. package/build/WsmSearchBarWrapper/index.esm.js.map +1 -0
  214. package/build/WsmSearchBarWrapper/index.js +22 -0
  215. package/build/WsmSearchBarWrapper/index.js.map +1 -0
  216. package/build/WsmSearchBarWrapper/index.umd.js +22 -0
  217. package/build/WsmSearchBarWrapper/index.umd.js.map +1 -0
  218. package/build/WsmSearchBarWrapper/package.json +6 -0
  219. package/build/WsmSearchBarWrapperModal/index.css +1 -0
  220. package/build/WsmSearchBarWrapperModal/index.esm.js +22 -0
  221. package/build/WsmSearchBarWrapperModal/index.esm.js.map +1 -0
  222. package/build/WsmSearchBarWrapperModal/index.js +22 -0
  223. package/build/WsmSearchBarWrapperModal/index.js.map +1 -0
  224. package/build/WsmSearchBarWrapperModal/index.umd.js +22 -0
  225. package/build/WsmSearchBarWrapperModal/index.umd.js.map +1 -0
  226. package/build/WsmSearchBarWrapperModal/package.json +6 -0
  227. package/build/WsmSearchPage/index.css +1 -0
  228. package/build/WsmSearchPage/index.esm.js +22 -0
  229. package/build/WsmSearchPage/index.esm.js.map +1 -0
  230. package/build/WsmSearchPage/index.js +22 -0
  231. package/build/WsmSearchPage/index.js.map +1 -0
  232. package/build/WsmSearchPage/index.umd.js +22 -0
  233. package/build/WsmSearchPage/index.umd.js.map +1 -0
  234. package/build/WsmSearchPage/package.json +6 -0
  235. package/build/index.css +1 -0
  236. package/build/index.esm.js +8 -0
  237. package/build/index.esm.js.map +1 -0
  238. package/build/index.js +8 -0
  239. package/build/index.js.map +1 -0
  240. package/build/index.umd.js +8 -0
  241. package/build/index.umd.js.map +1 -0
  242. package/build/typings/common/CategoryItem/CategoryItem.d.ts +7 -0
  243. package/build/typings/common/CurrencyInput/CurrencyInput.d.ts +8 -0
  244. package/build/typings/common/FitmentSelectorWrapperModal/FitmentSelectorWrapperModal.d.ts +9 -0
  245. package/build/typings/common/Image/Image.d.ts +9 -0
  246. package/build/typings/common/List/List.d.ts +62 -0
  247. package/build/typings/common/Modal/Modal.d.ts +12 -0
  248. package/build/typings/common/ProductListItem/ProductListItem.d.ts +5 -0
  249. package/build/typings/common/ProductListItem/models.d.ts +13 -0
  250. package/build/typings/common/Rating/Rating.d.ts +7 -0
  251. package/build/typings/common/customHooks/useEventCallback.d.ts +9 -0
  252. package/build/typings/common/customHooks/useFetch.d.ts +36 -0
  253. package/build/typings/components/Alert/Alert.d.ts +4 -0
  254. package/build/typings/components/Alert/index.d.ts +1 -0
  255. package/build/typings/components/Alert/models.d.ts +76 -0
  256. package/build/typings/components/BreadCrumb/BreadCrumb.d.ts +4 -0
  257. package/build/typings/components/BreadCrumb/PathItem.d.ts +4 -0
  258. package/build/typings/components/BreadCrumb/index.d.ts +1 -0
  259. package/build/typings/components/BreadCrumb/models.d.ts +80 -0
  260. package/build/typings/components/CategoryCarousel/CategoryCarousel.d.ts +4 -0
  261. package/build/typings/components/CategoryCarousel/index.d.ts +1 -0
  262. package/build/typings/components/CategoryCarousel/models.d.ts +49 -0
  263. package/build/typings/components/CategoryCarouselWrapper/CategoryCarouselWrapper.d.ts +4 -0
  264. package/build/typings/components/CategoryCarouselWrapper/index.d.ts +1 -0
  265. package/build/typings/components/CategoryCarouselWrapper/models.d.ts +5 -0
  266. package/build/typings/components/CategoryList/CategoryList.d.ts +4 -0
  267. package/build/typings/components/CategoryList/index.d.ts +1 -0
  268. package/build/typings/components/CategoryList/models.d.ts +17 -0
  269. package/build/typings/components/CategoryListWrapper/CategoryListWrapper.d.ts +4 -0
  270. package/build/typings/components/CategoryListWrapper/index.d.ts +1 -0
  271. package/build/typings/components/CategoryListWrapper/models.d.ts +8 -0
  272. package/build/typings/components/FacetFilter/FacetFilter.d.ts +4 -0
  273. package/build/typings/components/FacetFilter/FacetSection.d.ts +4 -0
  274. package/build/typings/components/FacetFilter/index.d.ts +1 -0
  275. package/build/typings/components/FacetFilter/models.d.ts +90 -0
  276. package/build/typings/components/FitmentSelector/FitmentSelector.d.ts +15 -0
  277. package/build/typings/components/FitmentSelector/NativeSelect.d.ts +4 -0
  278. package/build/typings/components/FitmentSelector/index.d.ts +1 -0
  279. package/build/typings/components/FitmentSelector/models.d.ts +69 -0
  280. package/build/typings/components/FitmentSelector/utils.d.ts +4 -0
  281. package/build/typings/components/FitmentSelectorVerifier/FitmentSelectorVerifier.d.ts +5 -0
  282. package/build/typings/components/FitmentSelectorVerifier/index.d.ts +1 -0
  283. package/build/typings/components/FitmentSelectorVerifier/models.d.ts +105 -0
  284. package/build/typings/components/FitmentSelectorWrapper/FitmentSelectorWrapper.d.ts +11 -0
  285. package/build/typings/components/FitmentSelectorWrapper/index.d.ts +1 -0
  286. package/build/typings/components/FitmentSelectorWrapper/models.d.ts +142 -0
  287. package/build/typings/components/FitmentStoreWrapper/FitmentStorePopover.d.ts +6 -0
  288. package/build/typings/components/FitmentStoreWrapper/FitmentStoreWrapper.d.ts +4 -0
  289. package/build/typings/components/FitmentStoreWrapper/index.d.ts +1 -0
  290. package/build/typings/components/FitmentStoreWrapper/models.d.ts +59 -0
  291. package/build/typings/components/ListControls/ListControls.d.ts +4 -0
  292. package/build/typings/components/ListControls/index.d.ts +1 -0
  293. package/build/typings/components/ListControls/models.d.ts +47 -0
  294. package/build/typings/components/LoadingIndicator/LoadingIndicator.d.ts +7 -0
  295. package/build/typings/components/LoadingIndicator/index.d.ts +1 -0
  296. package/build/typings/components/Pagination/Pagination.d.ts +4 -0
  297. package/build/typings/components/Pagination/index.d.ts +1 -0
  298. package/build/typings/components/Pagination/models.d.ts +13 -0
  299. package/build/typings/components/PaginationWithRangeInfo/PaginationWithRangeInfo.d.ts +4 -0
  300. package/build/typings/components/PaginationWithRangeInfo/index.d.ts +1 -0
  301. package/build/typings/components/PaginationWithRangeInfo/models.d.ts +7 -0
  302. package/build/typings/components/ProductList/ProductList.d.ts +8 -0
  303. package/build/typings/components/ProductList/index.d.ts +1 -0
  304. package/build/typings/components/ProductList/models.d.ts +46 -0
  305. package/build/typings/components/ProductListWrapper/ProductListWrapper.d.ts +4 -0
  306. package/build/typings/components/ProductListWrapper/index.d.ts +1 -0
  307. package/build/typings/components/ProductListWrapper/models.d.ts +25 -0
  308. package/build/typings/components/ProductSelectorVerifier/ProductSelectorVerifier.d.ts +14 -0
  309. package/build/typings/components/ProductSelectorVerifier/index.d.ts +1 -0
  310. package/build/typings/components/SearchBar/SearchBar.d.ts +6 -0
  311. package/build/typings/components/SearchBar/SearchBarSuggestions.d.ts +4 -0
  312. package/build/typings/components/SearchBar/index.d.ts +1 -0
  313. package/build/typings/components/SearchBar/models.d.ts +172 -0
  314. package/build/typings/components/SearchBarWrapper/SearchBarWrapper.d.ts +6 -0
  315. package/build/typings/components/SearchBarWrapper/index.d.ts +1 -0
  316. package/build/typings/components/SearchBarWrapper/models.d.ts +22 -0
  317. package/build/typings/components/SearchBarWrapperModal/SearchBarWrapperModal.d.ts +4 -0
  318. package/build/typings/components/SearchBarWrapperModal/index.d.ts +1 -0
  319. package/build/typings/components/SearchBarWrapperModal/models.d.ts +5 -0
  320. package/build/typings/components/SkuListWrapper/SkuListWrapper.d.ts +4 -0
  321. package/build/typings/components/SkuListWrapper/index.d.ts +1 -0
  322. package/build/typings/components/SpecificationSearch/SpecificationSearch.d.ts +4 -0
  323. package/build/typings/components/SpecificationSearch/index.d.ts +1 -0
  324. package/build/typings/components/SpecificationSearch/models.d.ts +30 -0
  325. package/build/typings/components/WsmFitmentSelectorWrapper/WsmFitmentSelectorWrapper.d.ts +8 -0
  326. package/build/typings/components/WsmFitmentSelectorWrapper/index.d.ts +1 -0
  327. package/build/typings/components/WsmProductListWrapper/WsmProductListWrapper.d.ts +4 -0
  328. package/build/typings/components/WsmProductListWrapper/index.d.ts +1 -0
  329. package/build/typings/components/WsmSearchBarWithWrapperModal/WsmSearchBarWithWrapperModal.d.ts +8 -0
  330. package/build/typings/components/WsmSearchBarWithWrapperModal/index.d.ts +1 -0
  331. package/build/typings/components/WsmSearchBarWrapper/WsmSearchBarWrapper.d.ts +4 -0
  332. package/build/typings/components/WsmSearchBarWrapper/index.d.ts +1 -0
  333. package/build/typings/components/WsmSearchBarWrapper/models.d.ts +12 -0
  334. package/build/typings/components/WsmSearchBarWrapperModal/WsmSearchBarWrapperModal.d.ts +4 -0
  335. package/build/typings/components/WsmSearchBarWrapperModal/index.d.ts +1 -0
  336. package/build/typings/components/WsmSearchBarWrapperModal/models.d.ts +5 -0
  337. package/build/typings/components/WsmSearchPage/FacetFilterModal.d.ts +18 -0
  338. package/build/typings/components/WsmSearchPage/FitmentSelectorModal.d.ts +22 -0
  339. package/build/typings/components/WsmSearchPage/SearchPageProvider.d.ts +32 -0
  340. package/build/typings/components/WsmSearchPage/index.d.ts +29 -0
  341. package/build/typings/components/WsmSearchPage/utils.d.ts +25 -0
  342. package/build/typings/icons/Angle.d.ts +7 -0
  343. package/build/typings/icons/BanIcon.d.ts +7 -0
  344. package/build/typings/icons/CheckIcon.d.ts +3 -0
  345. package/build/typings/icons/CrossIcon.d.ts +7 -0
  346. package/build/typings/icons/Grid.d.ts +5 -0
  347. package/build/typings/icons/ImagePlaceHolder.d.ts +5 -0
  348. package/build/typings/icons/List.d.ts +6 -0
  349. package/build/typings/icons/MinusIcon.d.ts +6 -0
  350. package/build/typings/icons/PlusIcon.d.ts +6 -0
  351. package/build/typings/icons/SearchIcon.d.ts +7 -0
  352. package/build/typings/icons/SearchIconLight.d.ts +7 -0
  353. package/build/typings/icons/StarIcon.d.ts +6 -0
  354. package/build/typings/icons/TrashIcon.d.ts +7 -0
  355. package/build/typings/icons/WarningIcon.d.ts +3 -0
  356. package/build/typings/index.d.ts +60 -0
  357. package/build/typings/models/generic.d.ts +8 -0
  358. package/build/typings/models/search.d.ts +93 -0
  359. package/build/typings/static/icons/CrossIcon.d.ts +7 -0
  360. package/build/typings/static/icons/FunnelIcon.d.ts +3 -0
  361. package/build/typings/static/icons/VerifiedIcon.d.ts +3 -0
  362. package/build/typings/utils/constants.d.ts +7 -0
  363. package/build/typings/utils/fitmentUtils.d.ts +4 -0
  364. package/build/typings/utils/format.d.ts +3 -0
  365. package/build/typings/utils/queryUtils.d.ts +12 -0
  366. package/build/typings/utils/restFactory.d.ts +6 -0
  367. package/build/typings/utils/searchHistory.d.ts +3 -0
  368. package/build/typings/utils/wsmVisibleFieldsBuilder.d.ts +31 -0
  369. package/package.json +133 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.umd.js","sources":["../../node_modules/tslib/tslib.es6.js","../../node_modules/classnames/index.js","../../node_modules/lodash/isObject.js","../../node_modules/lodash/_freeGlobal.js","../../node_modules/lodash/_root.js","../../node_modules/lodash/now.js","../../node_modules/lodash/_Symbol.js","../../node_modules/lodash/_getRawTag.js","../../node_modules/lodash/_objectToString.js","../../node_modules/lodash/_baseGetTag.js","../../node_modules/lodash/isObjectLike.js","../../node_modules/lodash/isSymbol.js","../../node_modules/lodash/toNumber.js","../../node_modules/lodash/debounce.js","../../src/utils/constants.ts","../../src/utils/format.ts","../../src/components/FitmentSelector/NativeSelect.tsx","../../src/components/FitmentSelector/utils.ts","../../src/components/FitmentSelector/FitmentSelector.tsx","../../src/utils/fitmentUtils.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","// The key of the fitment selectors stored in local storage.\nexport const FITMENT_SELECTOR_STORAGE_KEY = 'sui-fitment-selector-v2';\n\nexport const OPTIONAL_QUALIFIERS_STORAGE_KEY = 'optional-qualifiers';\nexport const OPTIONAL_QUALIFIERS_FOR_URL_STORAGE_KEY =\n 'optional-qualifiers-for-url';\nexport const DYN_SELECTED_VQ = 'dyn-selectedvq';\nexport const DYN_SELECTED_VQ_REALID = 'dyn-selectedvq-realid';\n// Max numbers of Fitments to be stored in the Database\nexport const LIMIT_FITMENTS_LOCAL_STORAGE = 10;\n\nexport const SEARCH_TERMS_HISTORY_KEY = 'pl-recent-search-terms';\n","export function toCurrency(value: number, locale = 'en-US', currency = 'USD') {\n if (Number.isNaN(value)) {\n return '';\n }\n return new Intl.NumberFormat(locale, {\n currency,\n style: 'currency',\n }).format(value);\n}\n\nexport function toLocaleNumber(value: number, locale = 'en-US') {\n return new Intl.NumberFormat(locale).format(Number(value));\n}\n\nexport const escapeRegExp = (string) => {\n return string?.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'); // $& means the whole matched string\n};\n","import classnames from 'classnames';\nimport * as React from 'react';\nimport styles from './styles/nativeSelect.scss';\nimport { NativeSelectProps } from './models';\n\n/*\n Variable to track how many Selects were rendered to assign an unique ID\n WARNING: this is an autogenrated ID and at this moment its only useful for\n automated tests (end-to-end)\n*/\n\nlet renderedItems = 0;\n\nconst NativeSelect = ({\n className = '',\n styled,\n isVertical,\n options,\n value,\n disabled = false,\n name,\n onChange,\n optionalLabelReference = '',\n labelName,\n}: NativeSelectProps) => {\n const [counter] = React.useState(() => {\n renderedItems += 1;\n return renderedItems;\n });\n const wrapperClassname =\n optionalLabelReference === ''\n ? 'Sui-FitmentSelector--select-wrapper'\n : `Sui-FitmentSelector--select-wrapper Sui-FitmentSelector--select-wrapper-${optionalLabelReference}`;\n\n const hasSelected = labelName\n ? value\n ? {\n [styles.hasNotSelected]: false,\n 'Sui-FitmentSelector--label_has_selected': true,\n }\n : {\n [styles.hasNotSelected]: true,\n 'Sui-FitmentSelector--label_has_not_selected': true,\n }\n : {};\n\n return (\n <div\n className={classnames(`${wrapperClassname}`, {\n 'Sui-FitmentSelector--select-wrapper-selected': value,\n })}\n >\n {labelName && (\n <label\n className={classnames(\n styles.fieldLabel,\n 'Sui-FitmentSelector--label'\n )}\n htmlFor={`sui-fitment-selector-${counter}`}\n >\n {labelName}\n </label>\n )}\n <select\n id={`sui-fitment-selector-${counter}`}\n className={classnames(\n {\n [`${styles.styledSelect} SuiSelect`]: styled,\n [styles.styledSelectVertical]: styled && isVertical,\n ...hasSelected,\n },\n className,\n `sui-fitment-selector-${value}`\n )}\n disabled={disabled}\n value={value}\n onChange={onChange}\n role=\"listbox\"\n >\n <option\n key={0}\n value=\"\"\n role=\"option\"\n aria-selected={false}\n className={classnames('Sui-FitmentSelector--initial-option')}\n >\n {labelName ? 'Select an option' : name}\n </option>\n <option key={-1} disabled={true} role=\"option\" aria-selected={false}>\n ---\n </option>\n {options.map((data) => (\n <option\n id={String(data.id)}\n role=\"option\"\n key={data.id}\n value={data.id}\n aria-selected={value === data.id}\n className={styles.optionItem}\n >\n {data.name}\n </option>\n ))}\n </select>\n </div>\n );\n};\n\nexport default NativeSelect;\n","import {\n OPTIONAL_QUALIFIERS_STORAGE_KEY,\n OPTIONAL_QUALIFIERS_FOR_URL_STORAGE_KEY,\n} from '../../utils/constants';\n\nexport function getInitialQualifiers(\n queryString: URLSearchParams,\n isLocalStorage = false\n) {\n const parsedVq =\n Object.keys(parseVehicleQualifierQuery(queryString)).length > 0\n ? parseVehicleQualifierQuery(queryString)\n : false;\n\n const onLocalstorage =\n JSON.parse(\n localStorage.getItem(OPTIONAL_QUALIFIERS_STORAGE_KEY) || '{}'\n )?.[0] || {};\n\n if (isLocalStorage) {\n return onLocalstorage;\n }\n\n return parsedVq || onLocalstorage;\n}\n\nexport function getInitialQualifiersForURL(queryString: URLSearchParams) {\n const parsedVq =\n Object.keys(parseVehicleQualifierQuery(queryString)).length > 0\n ? parseVehicleQualifierQuery(queryString)\n : false;\n return parsedVq || buildVqUrlParameter();\n}\n\nexport function parseVehicleQualifierQuery(queryString: URLSearchParams) {\n const vqs = {};\n queryString.forEach((value, key) => {\n // match only 'vq[' + :alphanum: with _ + ']'\n if (key.match(/^vq\\[[a-z_]+\\]$/)) {\n vqs[key] = value;\n }\n });\n return vqs;\n}\n\nexport function buildVqUrlParameter() {\n const vqs = {};\n const rawVq =\n JSON.parse(\n localStorage.getItem(OPTIONAL_QUALIFIERS_FOR_URL_STORAGE_KEY) || '{}'\n )?.[0] || {};\n\n Object.keys(rawVq)?.forEach((v) => {\n vqs[`vq[${v}]`] = rawVq[v];\n });\n\n return vqs;\n}\n","import classnames from 'classnames';\nimport debounce from 'lodash/debounce';\nimport * as React from 'react';\nimport {\n FITMENT_SELECTOR_STORAGE_KEY,\n OPTIONAL_QUALIFIERS_STORAGE_KEY,\n OPTIONAL_QUALIFIERS_FOR_URL_STORAGE_KEY,\n DYN_SELECTED_VQ,\n DYN_SELECTED_VQ_REALID,\n} from '../../utils/constants';\nimport { validateSelectedValues } from '../../utils/fitmentUtils';\nimport { escapeRegExp } from '../../utils/format';\nimport {\n FitmentSelectorProps,\n FitmentLabelEntity,\n SelectedValues,\n} from './models';\nimport NativeSelect from './NativeSelect';\nimport styles from './styles/fitmentSelector.scss';\nimport { getInitialQualifiers } from './utils';\nconst fuzzySearchLabel = (toMatch: string, labelsData) => {\n const toMatchEscaped = escapeRegExp(toMatch);\n const matched = labelsData?.find((v: { name: string }) =>\n v.name.match(new RegExp(`^${toMatchEscaped}$`, 'i'))\n );\n if (matched) {\n return matched.name;\n }\n return '';\n};\n\nconst Labels = ({\n labels,\n CustomSelect,\n currentSelectedValues,\n onLabelChange,\n labelsData,\n styled,\n isVertical,\n isOptionalLabel,\n}) => {\n // eslint-disable-next-line complexity\n return labels.map((label, index) => {\n let disabled = true;\n if (isOptionalLabel) {\n disabled = false;\n } else {\n disabled =\n (index > 0 && !currentSelectedValues[labels[index - 1].name]) ||\n !labelsData[label.name]?.length;\n }\n\n return CustomSelect ? (\n <CustomSelect\n key={label.name}\n value={\n fuzzySearchLabel(\n currentSelectedValues[label.name],\n labelsData[label.name]\n ) || ''\n }\n onChange={(e) => onLabelChange(label.name, e)}\n options={labelsData[label.name]}\n label={label}\n />\n ) : (\n <NativeSelect\n key={label.name}\n onChange={(e) => onLabelChange(label.name, e.currentTarget.value)}\n value={\n fuzzySearchLabel(\n currentSelectedValues[label.name],\n labelsData[label.name]\n ) || ''\n }\n className=\"Sui-FitmentSelector--select\"\n disabled={disabled}\n name={label.customName || label.name}\n options={\n labelsData[label.name]?.map((item) => ({\n id: item.id,\n name: item.name,\n })) || []\n }\n styled={styled}\n isVertical={isVertical}\n />\n );\n });\n};\n\nexport const OptionalLabels = ({\n labels,\n CustomSelect,\n currentSelectedValues,\n onLabelChange,\n labelsData,\n styled,\n isVertical,\n isOptionalLabel,\n showFieldLabels,\n}) => {\n // eslint-disable-next-line complexity\n return labels.map((label, index) => {\n let disabled = true;\n if (isOptionalLabel) {\n disabled = false;\n } else {\n disabled =\n (index > 0 && !currentSelectedValues[labels[index - 1].name]) ||\n !labelsData[label.name]?.length;\n }\n\n return CustomSelect ? (\n <CustomSelect\n key={label.name}\n value={\n fuzzySearchLabel(\n currentSelectedValues[label.name],\n labelsData[label.name]\n ) || ''\n }\n onChange={(e) => onLabelChange(label.name, e)}\n options={labelsData[label.name]}\n label={label}\n />\n ) : (\n <NativeSelect\n key={label.name}\n onChange={(e) =>\n onLabelChange(label.name, e.currentTarget.value, label.real_id)\n }\n optionalLabelReference={label.real_id}\n value={\n fuzzySearchLabel(\n currentSelectedValues[label.name],\n labelsData[label.name]\n ) || ''\n }\n className=\"Sui-FitmentSelector--select\"\n disabled={disabled}\n name={label.customName || label.name}\n options={\n labelsData[label.name]?.map((item) => ({\n id: item.id,\n name: item.name,\n })) || []\n }\n styled={styled}\n isVertical={isVertical}\n labelName={showFieldLabels && label.name}\n />\n );\n });\n};\n\n// eslint-disable-next-line complexity\nconst FitmentSelector = ({\n autocommit,\n autocommitDelay = 2000,\n className = '',\n clearButtonText = 'Clear',\n components,\n id,\n labels,\n labelsData,\n orientation = 'horizontal',\n onChange,\n onSubmit,\n onClearCb,\n optionalLabels = [],\n optionalLabelsData,\n onOptionalLabelsChange,\n optionalLabelsTitle = 'Optional Fields',\n searchButtonText = 'Search',\n selectedValues,\n styled = false,\n isLoadingOptionalLabel = false,\n showFieldLabels = true,\n}: FitmentSelectorProps) => {\n const queryString = new URLSearchParams(window.location.search);\n const localStorageOptionalQualifiers = getInitialQualifiers(\n queryString,\n true\n );\n const localStorageOptionalRealIdQualifiers =\n JSON.parse(\n localStorage.getItem(OPTIONAL_QUALIFIERS_FOR_URL_STORAGE_KEY) || '{}'\n )?.[0] || {};\n\n const [internalSelectedValues, setInternalSelectedValues] = React.useState(\n selectedValues\n );\n const [\n internalOptSelectedValues,\n setInternalOptSelectedValues,\n ] = React.useState(localStorageOptionalQualifiers);\n\n const [\n internalOptRealIdSelectedValues,\n setInternalOptRealIdSelectedValues,\n ] = React.useState(localStorageOptionalRealIdQualifiers);\n\n const labelsContainerRef = React.useRef<HTMLDivElement>(null);\n\n React.useEffect(() => {\n if (\n Object.keys(selectedValues || {}).length === labels.length &&\n labels.length > 1\n ) {\n updateLocalStorage(getDataToStore(selectedValues, labels));\n }\n }, [labels]);\n\n React.useEffect(() => {\n const allLabels = {\n ...labelsData,\n // ...optionalLabelsData,\n };\n const validSelectedValues = validateSelectedValues(\n selectedValues,\n allLabels,\n [...labels /* , ...optionalLabels */]\n );\n setInternalSelectedValues(validSelectedValues);\n }, [selectedValues, labelsData]);\n\n React.useEffect(() => {\n setInternalOptSelectedValues(localStorageOptionalQualifiers);\n setInternalOptRealIdSelectedValues(localStorageOptionalRealIdQualifiers);\n }, [optionalLabelsData]);\n\n React.useEffect(() => {\n const selectedvq =\n JSON.parse(localStorage.getItem(DYN_SELECTED_VQ) || '{}') || {};\n const selectedvqRealid =\n JSON.parse(localStorage.getItem(DYN_SELECTED_VQ_REALID) || '{}') || {};\n if (Object.keys(selectedvq).length) {\n setInternalOptSelectedValues(selectedvq);\n setInternalOptRealIdSelectedValues(selectedvqRealid);\n } else {\n /*\n AL-176: DYN_SELECTED_VQ only holds a qualifier being picked on this page,\n and submit() zeroes it, so it is empty for every qualifier that arrived\n from another page. Falling back to the persisted selection here keeps one\n source for \"the selected qualifier\" instead of erasing it.\n */\n setInternalOptSelectedValues(localStorageOptionalQualifiers);\n setInternalOptRealIdSelectedValues(localStorageOptionalRealIdQualifiers);\n }\n }, [isLoadingOptionalLabel]);\n\n React.useEffect(() => {\n if (optionalLabels.length > 0) {\n setTimeout(() => {\n const className = getNextClassNameOptLabel();\n const elementToView = document.querySelector(\n `.Sui-FitmentSelector--select-wrapper-${className}`\n ) as HTMLElement;\n const selectElementToFocus = document.querySelector(\n `.Sui-FitmentSelector--select-wrapper-${className} select`\n ) as HTMLElement;\n if (elementToView) {\n elementToView.scrollIntoView();\n selectElementToFocus.focus();\n }\n }, 200);\n }\n }, [optionalLabels]);\n\n const getNextClassNameOptLabel = () => {\n const idx = JSON.parse(localStorage.getItem('nextOptLabelIdx'));\n const label = optionalLabels[idx];\n\n return label.real_id;\n };\n\n /**\n * Function to set the value for each label when user changes its value.\n * This function also clears the state of selected labels when a parent label changes\n * Example:\n * Year > Make > Model\n * If all selects have values and user selects a different Year; Make and Model selects must be reseted\n */\n const onLabelChange = async (\n labelId: number | string,\n value: string | number\n ) => {\n const allLabels = [...labels /* , ...optionalLabels */];\n const nextLabelIndex =\n allLabels.findIndex((item) => item.name === labelId) + 1;\n const labelToClearData = allLabels.slice(nextLabelIndex);\n const newSelectedValues = { ...internalSelectedValues, [labelId]: value };\n\n for (const key of labelToClearData) {\n delete newSelectedValues[key.name];\n }\n // If there is change we cancel the previous debounced function execution to prevent autocommit\n debouncedOnChange.cancel();\n\n setInternalSelectedValues(newSelectedValues);\n onChange?.(labelId, newSelectedValues);\n if (\n autocommit &&\n Object.keys(newSelectedValues).length ===\n labels.length /* + optionalLabels.length */\n ) {\n debouncedOnChange(newSelectedValues);\n }\n };\n\n const onOptionalLabelChange = async (\n labelId: number | string,\n value: string | number,\n realId: string | number\n ) => {\n const newSelectedValues = {\n ...internalOptSelectedValues,\n [labelId]: value,\n };\n\n const newRealIdSelectedValues = {\n ...internalOptRealIdSelectedValues,\n [realId]: value,\n };\n\n const nextOptLabelIdx = optionalLabels.findIndex(\n (v) => v.real_id === realId\n );\n localStorage.setItem('nextOptLabelIdx', `${nextOptLabelIdx + 1}`);\n\n if (value === '') {\n delete newRealIdSelectedValues[realId];\n delete newSelectedValues[labelId];\n }\n // remove all the selected real_id values that are not on the\n // optional labels\n const optRealIds = optionalLabels.map((v) => {\n return v.real_id;\n });\n\n Object.keys(newRealIdSelectedValues).forEach((v) => {\n if (!optRealIds.includes(v)) {\n delete newRealIdSelectedValues[v];\n }\n });\n // remove all the selected values that are not on the\n // optional labels\n const optNames = optionalLabels.map((v) => {\n return v.name;\n });\n\n Object.keys(newSelectedValues).forEach((v) => {\n if (!optNames.includes(v)) {\n delete newSelectedValues[v];\n }\n });\n\n // If there is change we cancel the previous debounced function execution to prevent autocommit\n debouncedOnChange.cancel();\n\n setInternalOptSelectedValues(newSelectedValues);\n setInternalOptRealIdSelectedValues(newRealIdSelectedValues);\n onOptionalLabelsChange?.(\n labelId,\n realId,\n newSelectedValues,\n newRealIdSelectedValues\n );\n if (\n autocommit &&\n Object.keys(newSelectedValues).length === optionalLabels.length\n ) {\n debouncedOnChange(newSelectedValues);\n }\n };\n\n const debouncedOnChange = React.useCallback(\n debounce(async (values) => {\n submit(values, internalOptRealIdSelectedValues);\n }, autocommitDelay),\n [autocommitDelay, labels]\n );\n\n const onSearch = () => {\n submit(internalSelectedValues, internalOptRealIdSelectedValues);\n };\n\n const updateLocalStorage = (data: string, optValues?: SelectedValues) => {\n if (optValues) {\n localStorage.setItem(\n OPTIONAL_QUALIFIERS_STORAGE_KEY,\n JSON.stringify([internalOptSelectedValues])\n );\n localStorage.setItem(\n OPTIONAL_QUALIFIERS_FOR_URL_STORAGE_KEY,\n JSON.stringify([internalOptRealIdSelectedValues])\n );\n } else {\n localStorage.setItem(\n FITMENT_SELECTOR_STORAGE_KEY,\n JSON.stringify([data])\n );\n }\n };\n\n const submit = (values: SelectedValues, optValues?: SelectedValues) => {\n // Keep this function because on the future we may want to have multiple fitment in the localStorage\n // const storedFitments: FitmentSelectorStore[] = JSON.parse(\n // localStorage.getItem(FITMENT_SELECTOR_STORAGE_KEY) || '[]'\n // );\n updateLocalStorage(getDataToStore(values, labels));\n updateLocalStorage('', optValues);\n localStorage.setItem(DYN_SELECTED_VQ, '{}');\n localStorage.setItem(DYN_SELECTED_VQ_REALID, '{}');\n\n // Keep this function because on the future we may want to have multiple fitment in the localStorage\n // if (!fitmentExistsInLocalStorage(newFitmentToStore, storedFitments)) {\n // localStorage.setItem(\n // FITMENT_SELECTOR_STORAGE_KEY,\n // JSON.stringify([\n // newFitmentToStore,\n // ...storedFitments.slice(0, LIMIT_FITMENTS_LOCAL_STORAGE),\n // ])\n // );\n // }\n onSubmit?.(values, optValues);\n };\n\n const onClear = () => {\n onChange?.(null, null);\n onClearCb?.();\n setInternalSelectedValues(null);\n localStorage.removeItem(FITMENT_SELECTOR_STORAGE_KEY);\n localStorage.removeItem(OPTIONAL_QUALIFIERS_STORAGE_KEY);\n localStorage.removeItem(OPTIONAL_QUALIFIERS_FOR_URL_STORAGE_KEY);\n localStorage.removeItem(DYN_SELECTED_VQ);\n localStorage.removeItem(DYN_SELECTED_VQ_REALID);\n };\n\n const isVertical = orientation === 'vertical';\n const CustomSelect = components?.select;\n const currentSelectedValues = internalSelectedValues || {};\n const currentOptSelectedValues = internalOptSelectedValues || {};\n\n if (!labels.length) {\n return null;\n }\n\n return (\n <div\n id={id}\n ref={labelsContainerRef}\n className={classnames(\n styles.root,\n {\n [styles.vertical]: isVertical,\n },\n className\n )}\n >\n <Labels\n labels={labels}\n CustomSelect={CustomSelect}\n currentSelectedValues={currentSelectedValues}\n onLabelChange={onLabelChange}\n labelsData={labelsData}\n styled={styled}\n isVertical={isVertical}\n isOptionalLabel={false}\n />\n {isLoadingOptionalLabel && 'Loading optional fields...'}\n {Object.keys(internalSelectedValues || {}).length >= labels.length &&\n optionalLabels.length ? (\n <>\n <p className=\"Sui-FitmentSelector--optional-fields-label\">\n {optionalLabelsTitle}\n </p>\n <OptionalLabels\n labels={optionalLabels}\n CustomSelect={CustomSelect}\n currentSelectedValues={currentOptSelectedValues}\n onLabelChange={onOptionalLabelChange}\n labelsData={optionalLabelsData}\n styled={styled}\n isVertical={isVertical}\n isOptionalLabel\n showFieldLabels={showFieldLabels}\n />\n </>\n ) : null}\n {!autocommit ? (\n <div\n className={classnames(\n styles.actions,\n {\n [styles.actionsVertical]: styled && isVertical,\n },\n 'Sui-FitmentSelector--actions'\n )}\n >\n <button\n type=\"button\"\n className={classnames(\n {\n [`SuiButton primary ${styles.styledSearchBtn}`]: styled,\n [styles.styledSearchBtnVertical]: styled && isVertical,\n },\n 'Sui-FitmentSelector--searchBtn'\n )}\n disabled={Object.keys(currentSelectedValues).length < labels.length}\n onClick={onSearch}\n >\n {searchButtonText}\n </button>\n <button\n type=\"button\"\n className={classnames(\n {\n [`SuiButton secondary ${styles.styledClearBtn}`]: styled,\n },\n 'Sui-FitmentSelector--clearBtn'\n )}\n disabled={Object.keys(currentSelectedValues).length === 0}\n onClick={onClear}\n >\n {clearButtonText}\n </button>\n </div>\n ) : null}\n </div>\n );\n};\n\nexport default FitmentSelector;\n\n/**\n * Function to get data to store in LocalStorage.\n * This data will be used in FitmentStore component\n * @returns\n * [\n * { \"label\": labelItemData, \"value\": labelSelectedValue },\n * ]\n */\nfunction getDataToStore(\n selectedValues: SelectedValues,\n labels: FitmentLabelEntity[]\n) {\n return labels\n .reduce((acc, label) => {\n if (selectedValues[label.name]) {\n return [...acc, selectedValues[label.name]];\n }\n return acc;\n }, [])\n .join('|');\n}\n\n// Keep this function because on the future we may want to have multiple fitment in the localStorage\n// function fitmentExistsInLocalStorage(newFitmentToStore, storedFitments) {\n// const fitToStoreIds = getFitmentValuesIds(newFitmentToStore);\n// return !!storedFitments.find(\n// (storedFitment) => fitToStoreIds === getFitmentValuesIds(storedFitment)\n// );\n// }\n// function getFitmentValuesIds(fitmentStore) {\n// return fitmentStore.reduce((acc, item) => `${acc}-${item.value.id}`, '');\n// }\n","import {\n FitmentSelectorProps,\n FitmentLabelEntity,\n SelectedValues,\n} from '../components/FitmentSelector/models';\n\nfunction validateSelectedValues(\n selectedValues: SelectedValues,\n labelsData: FitmentSelectorProps['labelsData'],\n labels: FitmentLabelEntity[]\n) {\n let validSelectedValues: SelectedValues = {};\n\n for (const label of labels) {\n const labelId = (selectedValues || {})[label.name];\n if (!labelId || !labelsData[label.name]) break;\n const selectedValueExists = labelsData[label.name].find(\n (item) => String(item.id).toLowerCase() === String(labelId).toLowerCase()\n );\n if (!selectedValueExists) {\n break;\n }\n validSelectedValues = {\n ...validSelectedValues,\n [label.name]: selectedValues[label.name],\n };\n }\n\n return validSelectedValues;\n}\n\nexport { validateSelectedValues };\n\nexport function convertSelectedDataToArray(\n labels: FitmentLabelEntity[],\n values: SelectedValues,\n labelValues: FitmentSelectorProps['labelsData']\n) {\n const parsedValues = [];\n for (const label of labels) {\n if (values[label.name] && labelValues[label.name]) {\n const selectedValueName = labelValues[label.name].find(\n (item) =>\n String(item.id).toLowerCase() ===\n String(values[label.name]).toLowerCase()\n )?.name;\n\n parsedValues.push({\n key: label.name,\n value: selectedValueName as string | number,\n });\n }\n }\n\n return parsedValues;\n}\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","__generator","body","f","y","g","_","label","sent","trys","ops","verb","throw","return","Symbol","iterator","v","op","TypeError","pop","push","__spreadArrays","il","r","Array","k","a","j","jl","hasOwn","classNames","classes","arg","argType","isArray","inner","key","join","module","exports","default","window","type","global","freeSelf","self","freeGlobal","Function","root","Date","now","objectProto","nativeObjectToString","toString","symToStringTag","toStringTag","undefined","isOwn","tag","unmasked","getRawTag","objectToString","isObjectLike","baseGetTag","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","isSymbol","isObject","other","valueOf","replace","isBinary","test","slice","nativeMax","Math","max","nativeMin","min","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","args","leadingEdge","setTimeout","timerExpired","shouldInvoke","timeSinceLastCall","trailingEdge","timeWaiting","remainingWait","debounced","isInvoking","clearTimeout","toNumber","cancel","flush","FITMENT_SELECTOR_STORAGE_KEY","OPTIONAL_QUALIFIERS_STORAGE_KEY","OPTIONAL_QUALIFIERS_FOR_URL_STORAGE_KEY","DYN_SELECTED_VQ","DYN_SELECTED_VQ_REALID","renderedItems","NativeSelect","_a","_e","className","styled","isVertical","_f","disabled","name","onChange","_g","optionalLabelReference","labelName","counter","React.useState","wrapperClassname","hasSelected","styles","_b","_c","React.createElement","classnames","Sui-FitmentSelector--select-wrapper-selected","htmlFor","id","role","map","data","String","parseVehicleQualifierQuery","queryString","vqs","forEach","match","fuzzySearchLabel","toMatch","labelsData","string","toMatchEscaped","matched","find","RegExp","Labels","labels","CustomSelect","currentSelectedValues","onLabelChange","isOptionalLabel","index","currentTarget","customName","item","OptionalLabels","showFieldLabels","real_id","getDataToStore","selectedValues","reduce","acc","autocommit","autocommitDelay","_h","_j","clearButtonText","components","_k","orientation","onSubmit","onClearCb","_l","optionalLabels","optionalLabelsData","onOptionalLabelsChange","_m","optionalLabelsTitle","_o","searchButtonText","_p","_q","isLoadingOptionalLabel","_r","localStorageOptionalQualifiers","isLocalStorage","parsedVq","keys","onLocalstorage","JSON","parse","localStorage","getItem","getInitialQualifiers","URLSearchParams","location","search","localStorageOptionalRealIdQualifiers","_s","internalSelectedValues","setInternalSelectedValues","_t","internalOptSelectedValues","setInternalOptSelectedValues","_u","internalOptRealIdSelectedValues","setInternalOptRealIdSelectedValues","labelsContainerRef","React.useRef","React.useEffect","updateLocalStorage","allLabels","validSelectedValues","labelId","toLowerCase","labels_1","_i","validateSelectedValues","selectedvq","selectedvqRealid","getNextClassNameOptLabel","elementToView","document","querySelector","selectElementToFocus","scrollIntoView","focus","idx","debouncedOnChange","React.useCallback","debounce","values","submit","optValues","setItem","stringify","select","currentOptSelectedValues","ref","nextLabelIndex","findIndex","labelToClearData","newSelectedValues","labelToClearData_1","realId","newRealIdSelectedValues","nextOptLabelIdx","optRealIds","includes","optNames","_d","onClick","removeItem"],"mappings":";;;;;;;;;;;;;;oFA6BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,IAEKU,MAAMC,KAAMP,YA8BzB,SAASQ,EAAUC,EAASC,EAAYC,EAAGC,GAE9C,OAAO,IAAKD,IAAMA,EAAIE,WAAU,SAAUC,EAASC,GAC/C,SAASC,EAAUC,GAAS,IAAMC,EAAKN,EAAUO,KAAKF,IAAW,MAAOG,GAAKL,EAAOK,IACpF,SAASC,EAASJ,GAAS,IAAMC,EAAKN,EAAiB,MAAEK,IAAW,MAAOG,GAAKL,EAAOK,IACvF,SAASF,EAAKI,GAJlB,IAAeL,EAIaK,EAAOC,KAAOT,EAAQQ,EAAOL,QAJ1CA,EAIyDK,EAAOL,MAJhDA,aAAiBN,EAAIM,EAAQ,IAAIN,GAAE,SAAUG,GAAWA,EAAQG,OAITO,KAAKR,EAAWK,GAClGH,GAAMN,EAAYA,EAAUN,MAAMG,EAASC,GAAc,KAAKS,WAI/D,SAASM,EAAYhB,EAASiB,GACjC,IAAsGC,EAAGC,EAAGhC,EAAGiC,EAA3GC,EAAI,CAAEC,MAAO,EAAGC,KAAM,WAAa,GAAW,EAAPpC,EAAE,GAAQ,MAAMA,EAAE,GAAI,OAAOA,EAAE,IAAOqC,KAAM,GAAIC,IAAK,IAChG,OAAOL,EAAI,CAAEV,KAAMgB,EAAK,GAAI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B,EACAF,EACAG,GAGAnF,GACA/M,OAAOwO,KAAKuD,GAAmBxR,SAAWmN,EAAenN,QAEzD0Q,GAAkBc,cA8GZvG,WAAYmC,EACZnE,OAAQA,EACRC,WAAYA,GACZ0C,mBACAM,gBAAiBA,MAGnB,KACFM,EAsCE,KArCFvC,uBACEjB,UAAWkB,EACTJ,QAEEE,EAACF,GAAyBb,GAAUC,MAEtC,iCAGFe,0BACEhG,KAAK,SACL+E,UAAWkB,QAEP8H,EAAC,qBAAqBlI,GAA2Bb,EACjD+I,EAAClI,GAAiCb,GAAUC,MAE9C,kCAEFE,SAAU3J,OAAOwO,KAAKvC,IAAuB1L,OAASwL,EAAOxL,OAC7DiS,QA/HO,WACfnB,GAAOjC,GAAwBM,MAgItB1B,GAEHxD,0BACEhG,KAAK,SACL+E,UAAWkB,QAEPnB,EAAC,uBAAuBe,GAA0Bb,KAEpD,iCAEFG,SAAwD,IAA9C3J,OAAOwO,KAAKvC,IAAuB1L,OAC7CiS,QA/FM,WACd3I,MAAAA,GAAAA,EAAW,KAAM,MACjB2D,MAAAA,GAAAA,IACA6B,GAA0B,MAC1BT,aAAa6D,WAAW3J,GACxB8F,aAAa6D,WAAW1J,GACxB6F,aAAa6D,WAAWzJ,GACxB4F,aAAa6D,WAAWxJ,GACxB2F,aAAa6D,WAAWvJ,KAyFfiE,KAhFF"}
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "./index.js",
3
+ "module": "./index.esm.js",
4
+ "style": "./index.css",
5
+ "typings": "../typings/components/FitmentSelector/index.d.ts"
6
+ }
@@ -0,0 +1 @@
1
+ .alert_root__3Q1Kw{display:flex;justify-content:space-between;min-height:40px}.alert_icon__1egt_{display:flex;align-items:center;justify-content:center;min-width:70px}.alert_info__YAuAs{flex-grow:2;display:flex;flex-direction:column;justify-content:center;padding:1rem 1.25rem}.alert_title__ttJ7r{font-weight:700;font-size:1em}.alert_text__3wLY3{font-weight:700;font-size:.8em}.alert_actionContainer__-pHc1{display:flex;align-items:center;justify-content:center}.alert_button__2OhRB{background-color:transparent;border:none;border-left:1px solid var(--sui-secondary-color-dark);max-width:70px;font-size:.8em;font-weight:700;word-break:break-word;min-width:80px}.alert_button__2OhRB:hover{cursor:pointer}.alert_styled__pk_3H.alert_root__3Q1Kw{border-radius:3px}.alert_styled__pk_3H.alert_success__3_l1y{border:1px solid var(--sui-success-color)}.alert_styled__pk_3H.alert_success__3_l1y.alert_filled__GWxOD,.alert_styled__pk_3H.alert_success__3_l1y .alert_icon__1egt_{background-color:var(--sui-success-color)}.alert_styled__pk_3H.alert_error__2SkGa{border:1px solid var(--sui-danger-color-dark)}.alert_styled__pk_3H.alert_error__2SkGa.alert_filled__GWxOD,.alert_styled__pk_3H.alert_error__2SkGa .alert_icon__1egt_{background-color:var(--sui-danger-color-dark)}.alert_styled__pk_3H.alert_warning__BC7KN{border:1px solid var(--sui-warning-color)}.alert_styled__pk_3H.alert_warning__BC7KN.alert_filled__GWxOD,.alert_styled__pk_3H.alert_warning__BC7KN .alert_icon__1egt_{background-color:var(--sui-warning-color)}.alert_styled__pk_3H.alert_filled__GWxOD,.alert_styled__pk_3H.alert_filled__GWxOD .alert_button__2OhRB{color:#fff}.alert_styled__pk_3H .alert_icon__1egt_ svg{fill:#fff}.nativeSelect_styledSelect__2smv3{margin-right:.5rem;min-width:8.5rem}@media (max-width:500px){.nativeSelect_styledSelect__2smv3{margin-right:0;margin-bottom:.5rem}}.nativeSelect_styledSelectVertical__1UgTs{margin-right:0;margin-bottom:.5rem;width:100%}.nativeSelect_fieldLabel__2yh3m{display:block;margin-bottom:.5rem}.nativeSelect_hasNotSelected__2vBXX{color:var(--sui-secondary-color-dark)}.nativeSelect_optionItem__14pSl{color:#000}.SuiButton{cursor:pointer;border:none;height:var(--sui-input-height);border-radius:3px}.SuiButton.primary{background-color:var(--sui-primary-color);color:#fff}.SuiButton.secondary{background-color:var(--sui-secondary-color)}.SuiButton:disabled{opacity:.5}.SuiInput,.SuiSelect{border:1px solid var(--sui-border-input);height:var(--sui-input-height);padding-left:.6em;color:#444;box-shadow:0 1px 0 1px rgba(0,0,0,.04);border-radius:0;font-size:.9rem;border-radius:3px}.SuiInput:focus,.SuiInput:hover,.SuiSelect:focus,.SuiSelect:hover{border-color:var(--sui-border-input-hover)}.SuiInput:focus,.SuiSelect:focus{outline:none}.SuiSelect{margin-right:.5rem;text-transform:uppercase;display:block;box-sizing:border-box;-moz-appearance:none;-webkit-appearance:none;appearance:none;background-color:#fff;border-radius:3px;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"),linear-gradient(180deg,#fff 0,#e5e5e5);background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.65em auto,100%}.SuiSelect:focus{border-color:var(--sui-border-input);box-shadow:0 0 1px 1px var(--sui-primary-color);box-shadow:0 0 0 1px -moz-mac-focusring;color:#222;outline:none}.SuiSelect::-ms-expand{display:none}:root:lang(ar) .SuiSelect,:root:lang(iw) .SuiSelect,[dir=rtl] .SuiSelect{background-position:left .7em top 50%,0 0;padding:.6em .8em .5em 1.4em}.SuiSelect:disabled,.SuiSelect[aria-disabled=true]{color:var(--sui-muted-color);background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22gray%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"),linear-gradient(180deg,#fff 0,#e5e5e5)}.SuiSelect:disabled:hover,.SuiSelect[aria-disabled=true]{border-color:var(--sui-border-input)}.fitmentSelector_root__2AC1X{display:flex}@media (max-width:500px){.fitmentSelector_root__2AC1X{flex-direction:column}}.fitmentSelector_vertical__2KZmh{flex-direction:column}.fitmentSelector_actions__2qHCc{display:flex}@media (max-width:500px){.fitmentSelector_actions__2qHCc{flex-direction:column}}.fitmentSelector_actionsVertical__6M5SY{flex-direction:column}.fitmentSelector_styledSearchBtn__1G-X4{min-width:7rem;margin-bottom:0;margin-right:.5rem}@media (max-width:500px){.fitmentSelector_styledSearchBtn__1G-X4{margin-right:0;margin-bottom:.5rem}}.fitmentSelector_styledSearchBtnVertical__xcipP{margin-right:0;margin-bottom:.5rem}.fitmentSelector_styledClearBtn__LH10d{min-width:7rem}.global_disableAll__3h7tr button,.global_disableAll__3h7tr input,.global_disableAll__3h7tr input+label{pointer-events:none}.global_fullScreenModal__k-ey8.global_Sui-Modal--root__1rUY0>:first-child{width:100%;height:100%;max-width:100%}.breadCrumb_ul__1GD8v{list-style-type:none;display:flex;align-items:center;flex-wrap:wrap;padding:0;margin:0}.breadCrumb_ul__1GD8v a{color:inherit;text-decoration:none}.breadCrumb_ul__1GD8v li{display:flex;align-items:center}.breadCrumb_filtersContainer__ta2hh{display:flex}.breadCrumb_filtersContainer__ta2hh button{background-color:transparent;border:none;margin:0;padding:0;display:flex;align-items:center;justify-content:center}.breadCrumb_filter__3V_Jt{display:flex;align-items:center}.breadCrumb_filter__3V_Jt:not(:last-child){margin-right:5px}.breadCrumb_removeFilterBtn__1RbQg{cursor:pointer}.breadCrumb_hideBreadcrumb__1YVCW{opacity:0}.breadCrumb_rootStyled__2N2Xb .breadCrumb_filtersContainer__ta2hh li{padding:.25rem;margin-top:.5rem}.breadCrumb_rootStyled__2N2Xb .breadCrumb_filtersContainer__ta2hh li svg{color:inherit}.separator_separator__vZdkX{padding:0 5px}.separator_ellipsisClikable__2C3tH{border:none;margin:0;padding:0;background-color:transparent;cursor:pointer}.separator_pathItemText__2qns6{cursor:pointer}.facetSection_showMoreBtn__3hGhy{background-color:transparent;border:none;cursor:pointer;color:var(--sui-primary-color);margin-top:.5rem}.facetSection_showMoreBtn__3hGhy:hover{text-decoration:underline}.facetSection_checkboxLabel__2qheJ{margin-left:.5rem;font-size:.85rem}.facetSection_checkboxContainer__3-K0W{display:flex;align-items:center;justify-content:space-between;margin-top:.25rem}.facetSection_checkboxContainer__3-K0W .facetSection_left__21kBu{display:flex;align-items:center}.facetSection_checkboxContainer__3-K0W .facetSection_left__21kBu input,.facetSection_checkboxContainer__3-K0W .facetSection_left__21kBu label{cursor:pointer}.facetSection_styledCheckbox__2lqKX{margin:0;padding:0}.facetSection_styledCheckboxContainer__2owu9{padding:.3rem .8rem}.facetSection_sectionContainerStyled__2b7yk .facetSection_showMoreBtn__3hGhy,.facetSection_sectionContainerStyled__2b7yk div:last-child{padding-bottom:.5rem}.facetFilter_clearAllBtn__3z-7p{background-color:transparent;border:none;cursor:pointer;color:var(--sui-primary-color);padding:0;margin-right:10px;outline:none}.facetFilter_clearAllBtn__3z-7p:hover{text-decoration:underline}.facetFilter_sectionContainer__11dxF~div.facetFilter_sectionContainer__11dxF{margin-top:.5rem}.facetFilter_sectionTitle__2cBol{display:flex;justify-content:space-between;outline:none;text-transform:capitalize}.facetFilter_sectionTitle__2cBol.facetFilter_collapsible__2UZCh{cursor:pointer}.facetFilter_list__2V3e7{list-style:none;margin:0;padding:0}.facetFilter_section__2X8aW{overflow:hidden;transition:max-height .3s ease-in-out}.facetFilter_collapsed__hXV3- .facetFilter_section__2X8aW{max-height:0}.facetFilter_expanded__17azC .facetFilter_section__2X8aW{max-height:30em;overflow-y:auto}.facetFilter_expandCollapseBtn__2JBtd{background-color:transparent;border:none;cursor:pointer;outline:none}.facetFilter_selectedCount__3S-Mj{margin-left:5px;font-size:1rem}.facetFilter_styledSectionContainer__1RiB2{border:1px solid var(--sui-secondary-color-dark);margin-bottom:1rem}.facetFilter_styledTitle__1Nicl{font-size:.9rem;padding:.5rem;background:var(--sui-secondary-color);border-bottom:1px solid var(--sui-secondary-color-dark);margin:0;font-weight:700;color:#000}.facetFilter_titleContainer__abPOQ{display:flex}.facetFilter_title__2FvpU{margin-right:.5rem}.facetFilter_styledSelectedCount__3tumt{background-color:var(--sui-primary-color);vertical-align:2px;border-radius:50%;color:#fff;display:inline-block;font-size:10px;font-weight:700;height:15px;line-height:15px;margin-left:5px;text-align:center;width:15px;transition:opacity .25s ease-in-out}.facetFilter_collapsed__hXV3- .facetFilter_styledSelectedCount__3tumt{opacity:1}.facetFilter_expanded__17azC .facetFilter_styledSelectedCount__3tumt{opacity:0}.loadingIndicator_root__npeKe{height:3px;width:100%;margin:0;background-color:var(--sui-primary-color-light);display:flex;position:absolute;top:-3px}.loadingIndicator_root__npeKe:before{background-color:var(--sui-primary-color);height:3px;width:100%;margin:0;content:"";-webkit-animation:loadingIndicator_running-progress__1LY3F 2s cubic-bezier(.4,0,.2,1) infinite;animation:loadingIndicator_running-progress__1LY3F 2s cubic-bezier(.4,0,.2,1) infinite}@keyframes loadingIndicator_running-progress__1LY3F{0%{margin-left:0;margin-right:100%}50%{margin-left:25%;margin-right:0}to{margin-left:100%;margin-right:0}}.loadingIndicator_sk-fading-circle__1TTJV{margin:auto;width:40px;height:40px;position:relative}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle__CwR68{width:100%;height:100%;position:absolute;left:0;top:0}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle__CwR68:before{content:"";display:block;margin:0 auto;width:15%;height:15%;background-color:#333;border-radius:100%;-webkit-animation:loadingIndicator_sk-circleFadeDelay__3VwzZ 1.2s ease-in-out infinite both;animation:loadingIndicator_sk-circleFadeDelay__3VwzZ 1.2s ease-in-out infinite both}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle2__1gpYo{-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle3__2GoQv{-webkit-transform:rotate(60deg);-ms-transform:rotate(60deg);transform:rotate(60deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle4__1F1d-{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle5__1I-LA{-webkit-transform:rotate(120deg);-ms-transform:rotate(120deg);transform:rotate(120deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle6__26mL6{-webkit-transform:rotate(150deg);-ms-transform:rotate(150deg);transform:rotate(150deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle7__3BF0d{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle8__2ITYw{-webkit-transform:rotate(210deg);-ms-transform:rotate(210deg);transform:rotate(210deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle9__2pFiT{-webkit-transform:rotate(240deg);-ms-transform:rotate(240deg);transform:rotate(240deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle10__2Gk5Q{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle11__34lxl{-webkit-transform:rotate(300deg);-ms-transform:rotate(300deg);transform:rotate(300deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle12__34fj1{-webkit-transform:rotate(330deg);-ms-transform:rotate(330deg);transform:rotate(330deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle2__1gpYo:before{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle3__2GoQv:before{-webkit-animation-delay:-1s;animation-delay:-1s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle4__1F1d-:before{-webkit-animation-delay:-.9s;animation-delay:-.9s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle5__1I-LA:before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle6__26mL6:before{-webkit-animation-delay:-.7s;animation-delay:-.7s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle7__3BF0d:before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle8__2ITYw:before{-webkit-animation-delay:-.5s;animation-delay:-.5s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle9__2pFiT:before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle10__2Gk5Q:before{-webkit-animation-delay:-.3s;animation-delay:-.3s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle11__34lxl:before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle12__34fj1:before{-webkit-animation-delay:-.1s;animation-delay:-.1s}@-webkit-keyframes loadingIndicator_sk-circleFadeDelay__3VwzZ{0%,39%,to{opacity:0}40%{opacity:1}}@keyframes loadingIndicator_sk-circleFadeDelay__3VwzZ{0%,39%,to{opacity:0}40%{opacity:1}}.productListItem_root__xLXZA{display:grid;grid-template-columns:fit-content(20%) 3fr minmax(155px,1fr);gap:15px;padding:.5rem}.productListItem_root__xLXZA ul{list-style:none;margin:0;padding:0}.productListItem_text__2vbTm{margin:0;font-size:.8rem}a.productListItem_text__2vbTm{color:inherit;text-decoration:none}.productListItem_productImg__23A0z{max-width:75px;max-height:75px}.productListItem_imageContainer__paRx-{width:150px;text-align:center;display:flex;align-items:center;justify-content:center;height:auto}.productListItem_imageContainer__paRx- svg{width:100%}.productListItem_productImg__23A0z{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.productListItem_vertical__RuKVA{grid-template-columns:1fr;justify-items:left;border-radius:5px;border:1px solid var(--sui-secondary-color);padding-bottom:.5rem}.productListItem_vertical__RuKVA .productListItem_imageContainer__paRx-{max-width:unset;width:100%;height:160px;display:flex;align-items:center;justify-content:center}.productListItem_vertical__RuKVA .productListItem_productImg__23A0z{max-width:unset;max-height:100%;object-fit:contain;width:100%}.productListItem_styledSearchResultItem__2xWUG{border-bottom:1px solid var(--sui-secondary-color)}.productListItem_styledSearchResultItem__2xWUG .productListItem_text__2vbTm{font-size:1.3rem}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--title{font-size:1.6rem;font-weight:700;margin-top:0}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--availability{text-align:right;font-size:1rem;color:var(--sui-danger-color-dark);font-weight:700}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--brand_name,.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--tag{font-size:.8rem;font-weight:700;margin-top:0}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--availability_remarks,.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--remarks{color:var(--sui-success-color);font-size:.8rem;margin:.5rem 0;font-weight:600;text-align:right}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--price,.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--sale{font-size:1.6rem;font-weight:700;text-align:right}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--fitment_applicability{font-size:12px;padding:.5em 1em;border-radius:1em;border:none;outline:none}.productListItem_styledSearchResultItem__2xWUG .fitmentSpecific{background:var(--sui-primary-color-light)}.productListItem_styledSearchResultItem__2xWUG .universal{background:var(--sui-secondary-color-dark)}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem-Container--fitment_applicability{margin-top:10px;margin-bottom:10px}.productListItem_styledSearchResultItem__2xWUG .red{color:var(--sui-danger-color-dark)}.productListItem_styledSearchResultItem__2xWUG .old-price{color:var(--sui-muted-color);text-decoration:line-through;font-weight:400;font-size:1.4rem}.productListItem_styledSearchResultItem__2xWUG .bold{font-weight:700}.productListItem_styledSearchResultItem__2xWUG .productListItem_link__QvazJ{font-weight:700;color:var(--sui-link-color);text-decoration:none;font-size:1.2rem;text-align:right;display:block}.productListItem_styledSearchResultItem__2xWUG .productListItem_right__1cPgQ{padding-top:19px;padding-right:1rem}.productListItem_styledSearchResultItem__2xWUG .mb-1{margin-bottom:1px}.productListItem_styledSearchResultItem__2xWUG .mb-2{margin-bottom:2px}.productListItem_styledSearchResultItem__2xWUG .mb-3{margin-bottom:3px}.productListItem_styledSearchResultItem__2xWUG .mb-4{margin-bottom:4px}.productListItem_styledSearchResultItem__2xWUG .mb-5{margin-bottom:5px}.productListItem_styledSearchResultItem__2xWUG .mb-6{margin-bottom:6px}.productListItem_styledSearchResultItem__2xWUG .mb-7{margin-bottom:7px}.productListItem_styledSearchResultItem__2xWUG .mb-8{margin-bottom:8px}.productListItem_styledSearchResultItem__2xWUG .mb-9{margin-bottom:9px}.productListItem_styledSearchResultItem__2xWUG .mb-10{margin-bottom:10px}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .productListItem_text__2vbTm{font-size:1.3rem}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .productListItem_link__QvazJ{text-align:right}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--title{font-size:1.6rem}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--dealerid{margin-bottom:8px}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--price,.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--sale{font-size:1.6rem;text-align:right}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .old-price{font-size:1.4rem}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--availability{font-size:1rem;text-align:right}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--availability_remarks,.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--remarks{text-align:right}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .productListItem_right__1cPgQ{padding-top:0;width:100%}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA.productListItem_root__xLXZA{gap:0}@media (max-width:500px){.productListItem_root__xLXZA{grid-template-columns:1fr;justify-items:left;border-radius:5px;border:1px solid var(--sui-secondary-color);padding-bottom:.5rem}.productListItem_root__xLXZA .productListItem_imageContainer__paRx-{max-width:unset;width:100%;height:160px;display:flex;align-items:center;justify-content:center}.productListItem_root__xLXZA .productListItem_productImg__23A0z{max-width:unset;max-height:100%;object-fit:contain;width:100%}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .productListItem_text__2vbTm{font-size:1.3rem}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .productListItem_link__QvazJ{text-align:right}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--title{font-size:1.6rem}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--dealerid{margin-bottom:8px}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--price,.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--sale{font-size:1.6rem;text-align:right}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .old-price{font-size:1.4rem}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--availability{font-size:1rem;text-align:right}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--availability_remarks,.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--remarks{text-align:right}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .productListItem_right__1cPgQ{padding-top:0;width:100%}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG.productListItem_root__xLXZA{gap:0}}.productListItem_optionAvailableBtnContainer__2wxwf{text-align:right}.productListItem_optionsAvailableBtn__1rmDf{background:#efefef;padding:5px 10px;text-decoration:none;color:#343434;text-transform:capitalize}.productListItem_priceFromLabel__pMQzO{font-weight:400}.listControls_root__1XiZv{display:flex;justify-content:space-between;padding:.5rem}.listControls_iconContainer__EUUvE{padding:0;border:none;background-color:transparent;margin:0 0 0 .5rem;cursor:pointer;outline:none;display:flex;align-items:center;justify-content:center}.listControls_icon__3X_9L{width:1em;height:1em;color:var(--sui-secondary-color-dark)}.listControls_icon__3X_9L.listControls_selected__1We4P{color:var(--sui-primary-color)}.listControls_itemsPerPageContainer__1Jlp9{display:flex;align-items:center}.listControls_itemsPerPageContainer__1Jlp9 p{margin:0;padding-right:.5rem}.listControls_right__2YOEf{display:flex}.listControls_left__3yT59{display:flex;align-items:center}.listControls_left__3yT59 p{margin:0;padding-right:.5rem}.listControls_rootStyled__-WTs4{background-color:var(--sui-secondary-color)}.pagination_root__364lu{display:flex;align-items:center}.pagination_angleIcon__2UTcR,.pagination_angleIconRight__ysXch{display:flex;justify-content:center;align-items:center;width:1em;height:1em;font-size:1.25rem}.pagination_angleIconRight__ysXch{transform:rotate(180deg)}.pagination_pageLink__fl_OV{color:inherit;padding:0 .5rem;text-decoration:unset;border:none;background-color:transparent;cursor:pointer}.pagination_disabled__15wHQ{opacity:.5}.pagination_active__2LHHU{text-decoration:underline;opacity:1;font-weight:700}.paginationWithRangeInfo_root__3s--4{display:flex;align-items:center;justify-content:space-between}@media (max-width:500px){.paginationWithRangeInfo_root__3s--4{flex-direction:column}}.list_root__m2F7Y{display:grid;position:relative}.list_loadingIndicator__3R1aV{top:0}.list_listContainer__3UJa6{display:grid;grid-gap:.5rem;overflow-x:hidden}.list_listContainer__3UJa6:not(.list_listHorizontal__3sgr7){grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.list_isBusy__3F6sL{opacity:.5}.list_listHorizontal__3sgr7{grid-template-columns:1fr}.list_pagination__1pWk4{display:flex;justify-content:center}.list_listContainerStyled__38ZCr{padding-top:.5rem}.productList_resultItemStyledInGrid__12GNR{box-shadow:none;display:flex;flex-direction:column}.productList_styledListContainer__156EZ .Sui-List--horizontal{gap:2.5rem}.productList_styledListContainer__156EZ .Sui-List--container{grid-gap:1rem .5rem}.listWrapper_noResultsText__A1Nfj{text-align:center}.wsmProductListWrapper-module_resultItemStyledInGrid__LqATh{box-shadow:none;display:flex;flex-direction:column}.wsmProductListWrapper-module_hide__1ySyh{visibility:hidden}@media only screen and (max-width:992px){.searchPage-module_root__XOif1 .Sui-ListControls--container button[aria-label="grid layout"],.searchPage-module_root__XOif1 .Sui-ListControls--container button[aria-label="list layout"]{display:none}.searchPage-module_root__XOif1 .Sui-PaginationWithRange--container{flex-direction:column}}.searchPage-module_root__XOif1 .Sui-BreadCrumb--filter{font-size:1.6rem;font-weight:700;margin:1rem .5rem;padding:1rem}.searchPage-module_modal__3qvYI .Sui-FacetFilter--facet-title,.searchPage-module_root__XOif1 .Sui-FacetFilter--facet-title{background:transparent;border:none}.searchPage-module_modal__3qvYI .Sui-FacetSection-checkbox-label,.searchPage-module_root__XOif1 .Sui-FacetSection-checkbox-label{margin:.25rem 0;padding:.25rem 0;font-size:1.2rem;font-weight:400}.searchPage-module_modal__3qvYI .Sui-FacetSection-checkbox,.searchPage-module_root__XOif1 .Sui-FacetSection-checkbox{margin:0 1rem 0 0}.searchPage-module_modal__3qvYI .Sui-FacetFilter--facet-title,.searchPage-module_root__XOif1 .Sui-FacetFilter--facet-title{padding-left:10px;padding-top:10px;font-size:1.5rem;line-height:2rem;margin:0}.searchPage-module_dataContainer__3FaKW{display:grid;grid-template-columns:minmax(auto,320px) 1fr;grid-gap:2rem;padding-top:1rem}.searchPage-module_dataContainer__3FaKW.searchPage-module_noResults__1lepf{grid-template-columns:1fr}@media only screen and (max-width:992px){.searchPage-module_dataContainer__3FaKW{grid-template-columns:1fr;grid-gap:1rem}}@media only screen and (max-width:992px){.searchPage-module_facetFilterDesktop__GDSZk{display:none}}.searchPage-module_mobileFilterButtonsContainer__3nHcw{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px}.searchPage-module_mobileFilterButtonsContainer__3nHcw.searchPage-module_singleColumn__qTP9c{grid-template-columns:1fr}@media only screen and (min-width:992px){.searchPage-module_mobileFilterButtonsContainer__3nHcw{display:none}}.searchPage-module_fitmentVerifier__3Oc3H{background-color:var(--sui-primary-color);color:#fff;font-size:18px;margin-bottom:16px}.searchPage-module_fitmentVerifier__3Oc3H .Sui-Alert--info{padding:10px}.searchPage-module_fitmentVerifier__3Oc3H .Sui-Alert--action button{color:#fff;max-width:unset;border-left:1px solid #fff;font-size:14px}.searchPage-module_facetButton__3jo1h,.searchPage-module_filterButton__2CNgk,.searchPage-module_fitmentButton__3hJfp{cursor:pointer;background-color:transparent;display:flex;align-items:center;justify-content:center;height:50px;border-radius:5px;font-weight:500;font-size:16px}.searchPage-module_facetButton__3jo1h{color:#ffc107;border:1px solid #ffc107}.searchPage-module_facetButton__3jo1h svg{width:20px;margin-right:8px}.searchPage-module_fitmentButton__3hJfp{cursor:pointer;color:#007bff;border:1px solid #007bff}.searchPage-module_fitmentButton__3hJfp svg{width:25px;margin-right:8px}.searchPage-module_facetCounter__1ffm0{margin-left:8px;background-color:#dc3545;border-radius:50%;font-weight:700;width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff}.searchPage-module_productList__2cI0i .Sui-ProductListItem--remarks{font-size:1.2rem;text-align:right;font-weight:700}.searchPage-module_productList__2cI0i .Sui-ProductListItem--title{line-height:normal}.searchPage-module_productList__2cI0i .Sui-ProductListItem--brand_name{font-size:1rem}@media only screen and (max-width:992px){.searchPage-module_productList__2cI0i .Sui-ProductListItem-Container--sale .Sui-ProductListItem--sale{font-size:2rem}.searchPage-module_productList__2cI0i .Sui-ProductListItem-Container--price .Sui-ProductListItem--price.old-price{font-size:1.7rem}}.searchPage-module_productList__2cI0i .searchPage-module_hide__1Pqyc{display:none}.searchPage-module_desktopFitmentButton__3rl7n{width:100%;margin-bottom:16px}.searchPage-module_desktopFitmentButton__3rl7n button{width:100%}@media only screen and (max-width:992px){.searchPage-module_desktopFitmentButton__3rl7n{display:none}}.searchPage-module_hide__1Pqyc{display:none}.searchPage-module_facetContainer__3a4G0,.searchPage-module_pageLoadingIndicator__2DjcT{position:relative}.searchPage-module_noResultMsg__PlSfR{text-align:center;background-color:#eba948;padding:15px}.searchPage-module_similarMsg__3WB43{text-align:left;background-color:#eba948;padding:15px;grid-column:1/-1}.modal_root__ZRh58{display:block;overflow-x:hidden;overflow-y:auto;position:fixed;top:0;left:0;width:100%;height:100%;z-index:30}.modal_root__ZRh58 div:first-child{border-radius:5px}.modal_hidden__1VaBK{display:none}.modal_modalDialog__3oRJl{margin:auto;width:fit-content;max-width:85%;z-index:1050;background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media (max-width:992px){.modal_modalDialog__3oRJl{max-width:99%}}.modal_backdrop__1ieRs{opacity:.5;position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh}.modal_closeBtn__1N3cr{z-index:1;position:absolute;right:-30px;top:-19px;background-color:transparent;border:none;cursor:pointer}.modal_closeBtn__1N3cr:hover svg{fill:var(--sui-secondary-color-dark)}@media (max-width:500px){.modal_closeBtn__1N3cr{right:-9px;top:-28px}}.facetFilterModal-module_modal__1XAWi>div:first-child{width:100%;height:100%;max-width:unset;top:unset;left:unset;transform:unset;overflow:hidden;border-radius:0}.facetFilterModal-module_modal__1XAWi .Sui-Modal--content{height:100%;overflow:auto;padding:10px 20px}.facetFilterModal-module_modalTitle__tLD12{display:flex;align-items:center;justify-content:flex-start;margin:0}.facetFilterModal-module_modalTotalResults__1d5SJ{color:#6c757d;margin-top:0}.facetFilterModal-module_modalHeader__TPYx1{display:flex;justify-content:space-between;position:fixed;width:100%;background:#f2f2f4;margin-left:-20px;top:0;border-radius:0!important;border-bottom:1px solid #4e4e4c;z-index:1;box-shadow:0 .125rem .25rem rgba(0,0,0,.075)}.facetFilterModal-module_button__2xc_6{background-color:transparent;border:none;border-radius:5px;padding:8px 16px;font-size:16px}.facetFilterModal-module_button__2xc_6.facetFilterModal-module_primary__1MaTA{background-color:var(--sui-primary-color);color:#fff}.facetFilterModal-module_button__2xc_6.facetFilterModal-module_secondary__2-Ri_{border:1px solid var(--sui-secondary-color-dark2);color:var(--sui-secondary-color-dark2);margin-right:8px}.facetFilterModal-module_modalFacetContainer__-vfMI{margin-top:82px}.facetFilterModal-module_buttonsContainer__3Pzwi{padding-right:8px;display:flex;align-items:center}.facetFilterModal-module_modalTitleContainer__1SJ_M{padding-left:8px;padding-top:8px}.fitmentSelectorModal-module_header__bg9V5{padding:10px 20px;border-bottom:1px solid #777;background-color:#fff}.fitmentSelectorModal-module_header__bg9V5 h1{margin:0}.fitmentSelectorModal-module_modal__1Oq7w{overflow:hidden}.fitmentSelectorModal-module_modal__1Oq7w .Sui-Modal--content{height:100%;padding:0;background-color:#eee}.fitmentSelectorModal-module_modal__1Oq7w.Sui-Modal--root>:first-child{width:760px}@media only screen and (max-width:992px){.fitmentSelectorModal-module_modal__1Oq7w.Sui-Modal--root>:first-child{width:100%;height:100%;max-width:100%}}.fitmentSelectorModal-module_modal__1Oq7w .Sui-Modal--close-icon{top:10px;right:5px}.fitmentSelectorModal-module_modalBody__1nJK6{overflow-y:auto;max-height:calc(100vh - 200px);padding:30px 20px 100px;transition:padding-bottom 2s}@media only screen and (max-width:992px){.fitmentSelectorModal-module_modalBody__1nJK6 .fitmentSelectorModal-module_firmentSelector__15HGz{height:calc(100vh - 180px);overflow:auto;padding-bottom:0}}.fitmentSelectorModal-module_modalBody__1nJK6>div{height:100%}.fitmentSelectorModal-module_modalBody__1nJK6 .Sui-FitmentSelector--select{width:100%;height:45px;padding:0 10px;border-radius:5px;font-size:20px;margin-bottom:10px;-webkit-appearance:none;appearance:none;background-color:#fff;background-image:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E);background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.65em auto,100%}.fitmentSelectorModal-module_modalBody__1nJK6 .Sui-FitmentSelector--actions{position:absolute;bottom:0;width:100%;left:0;display:grid;grid-template-columns:1fr 1fr;grid-gap:32px;padding-top:20px;padding-bottom:20px;border-top:1px solid #777;background-color:#fff}.fitmentSelectorModal-module_modalBody__1nJK6 .Sui-FitmentSelector--actions button{height:42px;border-radius:5px;font-size:18px}.fitmentSelectorModal-module_modalBody__1nJK6 .Sui-FitmentSelector--actions button:disabled{opacity:.5;cursor:not-allowed}.fitmentSelectorModal-module_modalBody__1nJK6 .Sui-FitmentSelector--actions .Sui-FitmentSelector--searchBtn{background-color:var(--sui-primary-color);border:1px solid var(--sui-primary-color);color:#fff;order:2;margin-right:10px}.fitmentSelectorModal-module_modalBody__1nJK6 .Sui-FitmentSelector--actions .Sui-FitmentSelector--clearBtn{background-color:#fff;border:1px solid #6e777f;color:#6e777f;margin-left:10px}:root{--sui-primary-color:#0071bc;--sui-primary-color-light:#8bcbf5;--sui-secondary-color:#efefef;--sui-secondary-color-light:#f8f9fa;--sui-secondary-color-dark:#afafaf;--sui-secondary-color-dark2:#6c757d;--sui-danger-color:#ff5353;--sui-danger-color-dark:#cb0201;--sui-muted-color:#6c757d;--sui-border-input:#aaa;--sui-border-input-hover:#888;--sui-success-color:#3baf7e;--sui-warning-color:#ffb90f;--sui-grey-light:#e6e6e6;--sui-link-color:#2d9bf0;--sui-input-height:2rem}.fitmentSelectorWrapper_error__MWhGI{color:var(--sui-danger-color-dark)}.wsmFitmentSelectorWrapper_hide__3OAAI{display:none}.fitmentVerifier_root__6Q6ON .Sui-Alert--action button{min-width:62px}.fitmentVerifier_root__6Q6ON .fitmentVerifier_fitmentTitle__1po5c{background-color:#000;color:#fff;padding:.75rem;margin-bottom:0;font-weight:700}.fitmentVerifier_root__6Q6ON .fitmentVerifier_fitment__1D56Q{padding:1rem;border:1px solid var(--sui-secondary-color-dark)}.fitmentVerifier_root__6Q6ON .fitmentVerifier_fitment__1D56Q .Sui-FitmentSelector--optional-fields-label{margin-bottom:5px}.fitmentVerifier_root__6Q6ON .fitmentVerifier_searchVehicleBtn__1Ok_e{background-color:transparent;border:none;padding:0;margin:1rem 0 0;color:var(--sui-primary-color);cursor:pointer}.fitmentVerifier_root__6Q6ON .fitmentVerifier_alert__3aK-v.Sui-Alert--root{display:grid;grid-template-columns:70px 1fr}.fitmentVerifier_root__6Q6ON .fitmentVerifier_alert__3aK-v.Sui-Alert--root .Sui-Alert--icon{grid-column:1;grid-row:1/3;color:#fff}.fitmentVerifier_root__6Q6ON .fitmentVerifier_alert__3aK-v.Sui-Alert--root .Sui-Alert--info{grid-column:2/3;grid-row:1;padding-bottom:8px}.fitmentVerifier_root__6Q6ON .fitmentVerifier_alert__3aK-v.Sui-Alert--root .Sui-Alert--action{display:block;grid-column:2/3;grid-row:2}.fitmentVerifier_root__6Q6ON .fitmentVerifier_alert__3aK-v.Sui-Alert--root .Sui-Alert--action button{border:none;min-width:fit-content;padding:8px;margin-left:1.25rem;margin-bottom:8px;background:#9a9a9a;color:#fff;border-radius:5px}.fitmentVerifier_root__6Q6ON .fitmentVerifier_alert__3aK-v.Sui-Alert--root .Sui-Alert--action .Sui-Alert--alertbtn{border:none;min-width:fit-content;padding:8px;margin-left:1.25rem;margin-bottom:8px;background:var(--sui-success-color);color:#fff;border-radius:5px}.fitmentVerifier_root__6Q6ON .fitmentVerifier_alert__3aK-v.Sui-Alert--root .Sui-Alert--action-with-secondary{display:block;grid-column:2/3;grid-row:2}.fitmentVerifier_root__6Q6ON .fitmentVerifier_alert__3aK-v.Sui-Alert--root .Sui-Alert--action-with-secondary .Sui-Alert--alertbtn-primary{border:1px solid #9a9a9a;min-width:fit-content;padding:8px;margin-left:1.25rem;margin-bottom:8px;background:#fff;color:#9a9a9a;border-radius:5px;cursor:pointer}.fitmentVerifier_root__6Q6ON .fitmentVerifier_alert__3aK-v.Sui-Alert--root .Sui-Alert--action-with-secondary .Sui-Alert--alertbtn-primary:hover{border:1px solid #fff;background:#9a9a9a;color:#fff}.fitmentVerifier_root__6Q6ON .fitmentVerifier_alert__3aK-v.Sui-Alert--root .Sui-Alert--action-with-secondary .Sui-Alert--alertbtn-secondary{border:none;min-width:fit-content;padding:8px;margin-left:1.25rem;margin-bottom:8px;background:var(--sui-success-color);color:#fff;border-radius:5px;cursor:pointer}.fitmentVerifier_root__6Q6ON .Sui-FitmentSelector--select{height:32px;font-size:15px}
@@ -0,0 +1,22 @@
1
+ import e,{useCallback as t,useRef as n,useEffect as r,createElement as i,useState as o,Fragment as a,createContext as l}from"react";import"react-dom";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function c(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function l(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function d(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,l=o.length;a<l;a++,i++)r[i]=o[a];return r}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}function h(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var m=p((function(e){
16
+ /*!
17
+ Copyright (c) 2017 Jed Watson.
18
+ Licensed under the MIT License (MIT), see
19
+ http://jedwatson.github.io/classnames
20
+ */
21
+ !function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)&&i.length){var a=n.apply(null,i);a&&e.push(a)}else if("object"===o)for(var l in i)t.call(i,l)&&i[l]&&e.push(l)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function v(e,i){var o=n((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];throw new Error("Cannot call an event handler while rendering.")}));return r((function(){o.current=e}),d([e],i)),t((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.current;return n.apply(void 0,e)}),[o])}const g={API_URL:"https://api.sunhammer.io",LIBRARY_NAME:"@partslogic/ui",STORY_BOOK_URL:"https://ui.sunhammer.io/"},y="object"==typeof window?window:{};y.partslogic=y.partslogic||{},y.partslogic.config={API_KEY:{API_URL:"https://api.sunhammer.io",LIBRARY_NAME:"@partslogic/ui",NODE_ENV:"production",STORY_BOOK_URL:"https://ui.sunhammer.io/"}.STORYBOOK_API_KEY,throttleRequests:{}};var b=g,S=function(){return y.partslogic.config};function k(e,t,n){for(var r={},i=function(n){var i,o=(e||{})[n.name];return o&&t[n.name]&&t[n.name].find((function(e){return String(e.id).toLowerCase()===String(o).toLowerCase()}))?void(r=s(s({},r),((i={})[n.name]=e[n.name],i))):"break"},o=0,a=n;o<a.length;o++){if("break"===i(a[o]))break}return r}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var x=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var l=e.length;a>0&&l>a&&(l=a);for(var s=0;s<l;++s){var c,u,d,f,p=e[s].replace(o,"%20"),h=p.indexOf(n);h>=0?(c=p.substr(0,h),u=p.substr(h+1)):(c=p,u=""),d=decodeURIComponent(c),f=decodeURIComponent(u),w(i,d)?Array.isArray(i[d])?i[d].push(f):i[d]=[i[d],f]:i[d]=f}return i},O=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},_=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var i=encodeURIComponent(O(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return i+encodeURIComponent(O(e))})).join(t):i+encodeURIComponent(O(e[r]))})).join(t):r?encodeURIComponent(O(r))+n+encodeURIComponent(O(e)):""},C=p((function(e,t){t.decode=t.parse=x,t.encode=t.stringify=_})),T={get:function(e,t,n){return void 0===t&&(t={}),c(this,void 0,void 0,(function(){var r,i,o,a,l,s,c,d,f;return u(this,(function(u){switch(u.label){case 0:r=S(),i=r.API_KEY,o=r.throttleRequests,i||console.error("API_KEY is not valid. Please enter a valid one."),u.label=1;case 1:return u.trys.push([1,3,,4]),a=JSON.parse(JSON.stringify(t)),l=Object.keys(a).length?"?"+C.stringify(a):"",c=o[s=""+e+l],d=c||fetch(s,{headers:{"sunhammer-api-key":i},signal:n}),o[s]=d,[4,o[s]];case 2:if(!(f=u.sent()).ok)throw new Error("Network response was not ok");return delete o[s],[2,f.clone().json()];case 3:throw u.sent();case 4:return[2]}}))}))}},N=function(e){var t=e.size,n=void 0===t?20:t,r=e.style;return i("svg",{height:n,width:n,"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"ban",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:r},i("path",{fill:"currentColor",d:"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"}))},E=function(){return i("svg",{"aria-hidden":"true",focusable:"false","data-icon":"check",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"20",width:"20"},i("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}))},I=function(){return i("svg",{"aria-hidden":"true",focusable:"false","data-icon":"exclamation-triangle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:"20",width:"20"},i("path",{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}))},L={root:"alert_root__3Q1Kw",icon:"alert_icon__1egt_",info:"alert_info__YAuAs",title:"alert_title__ttJ7r",text:"alert_text__3wLY3",actionContainer:"alert_actionContainer__-pHc1",button:"alert_button__2OhRB",styled:"alert_styled__pk_3H",success:"alert_success__3_l1y",filled:"alert_filled__GWxOD",error:"alert_error__2SkGa",warning:"alert_warning__BC7KN"},A=function(e){switch(e.type){case"success":return i(E,null);case"warning":return i(I,null);case"error":return i(N,null);default:return null}},j=function(e){var t,n=e.className,r=e.title,o=e.type,a=e.text,l=e.buttonText,s=e.onClick,c=e.onSecondaryButtonClick,u=e.secondaryButtonText,d=e.showIcon,f=void 0===d||d,p=e.fill,h=e.styled,v=void 0===h||h,g=e.style;return i("div",{className:m(L.root,L[o],(t={},t[L.styled]=v,t[L.filled]=p,t),n,"Sui-Alert--root"),style:g},f?i("div",{className:m(L.icon,"Sui-Alert--icon")},i(A,{type:o})):null,i("div",{className:m(L.info,"Sui-Alert--info")},i("div",{className:m(L.title,"Sui-Alert--title")},r),a?i("div",{className:m(L.text,"Sui-Alert--text")},a):null),s&&l&&!u||"success"===o&&l||"warning"===o&&l?i("div",{className:m(L.actionContainer,"Sui-Alert--action")},i("button",{role:"button",className:L.button,onClick:s},l)):null,s&&l&&u&&"error"===o?i("div",{className:m(L.actionContainer,"Sui-Alert--action-with-secondary")},i("button",{role:"button",className:"Sui-Alert--alertbtn-secondary",onClick:c},u),i("button",{role:"button",className:"Sui-Alert--alertbtn-primary",onClick:s},l)):null)};var R=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},F="object"==typeof f&&f&&f.Object===Object&&f,P="object"==typeof self&&self&&self.Object===Object&&self,D=F||P||Function("return this")(),M=function(){return D.Date.now()},B=D.Symbol,q=Object.prototype,V=q.hasOwnProperty,z=q.toString,U=B?B.toStringTag:void 0;var H=function(e){var t=V.call(e,U),n=e[U];try{e[U]=void 0;var r=!0}catch(e){}var i=z.call(e);return r&&(t?e[U]=n:delete e[U]),i},Y=Object.prototype.toString;var J=function(e){return Y.call(e)},W=B?B.toStringTag:void 0;var X=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":W&&W in Object(e)?H(e):J(e)};var K=function(e){return null!=e&&"object"==typeof e};var $=function(e){return"symbol"==typeof e||K(e)&&"[object Symbol]"==X(e)},G=/^\s+|\s+$/g,Q=/^[-+]0x[0-9a-f]+$/i,Z=/^0b[01]+$/i,ee=/^0o[0-7]+$/i,te=parseInt;var ne=function(e){if("number"==typeof e)return e;if($(e))return NaN;if(R(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=R(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(G,"");var n=Z.test(e);return n||ee.test(e)?te(e.slice(2),n?2:8):Q.test(e)?NaN:+e},re=Math.max,ie=Math.min;var oe=function(e,t,n){var r,i,o,a,l,s,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){return c=e,l=setTimeout(v,t),u?p(e):a}function m(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=o}function v(){var e=M();if(m(e))return g(e);l=setTimeout(v,function(e){var n=t-(e-s);return d?ie(n,o-(e-c)):n}(e))}function g(e){return l=void 0,f&&r?p(e):(r=i=void 0,a)}function y(){var e=M(),n=m(e);if(r=arguments,i=this,s=e,n){if(void 0===l)return h(s);if(d)return clearTimeout(l),l=setTimeout(v,t),p(s)}return void 0===l&&(l=setTimeout(v,t)),a}return t=ne(t)||0,R(n)&&(u=!!n.leading,o=(d="maxWait"in n)?re(ne(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=i=l=void 0},y.flush=function(){return void 0===l?a:g(M())},y},ae="nativeSelect_styledSelect__2smv3",le="nativeSelect_styledSelectVertical__1UgTs",se="nativeSelect_fieldLabel__2yh3m",ce="nativeSelect_hasNotSelected__2vBXX",ue="nativeSelect_optionItem__14pSl",de=0,fe=function(e){var t,n,r,a=e.className,l=void 0===a?"":a,c=e.styled,u=e.isVertical,d=e.options,f=e.value,p=e.disabled,h=void 0!==p&&p,v=e.name,g=e.onChange,y=e.optionalLabelReference,b=void 0===y?"":y,S=e.labelName,k=o((function(){return de+=1}))[0],w=""===b?"Sui-FitmentSelector--select-wrapper":"Sui-FitmentSelector--select-wrapper Sui-FitmentSelector--select-wrapper-"+b,x=S?f?((t={})[ce]=!1,t["Sui-FitmentSelector--label_has_selected"]=!0,t):((n={})[ce]=!0,n["Sui-FitmentSelector--label_has_not_selected"]=!0,n):{};return i("div",{className:m(""+w,{"Sui-FitmentSelector--select-wrapper-selected":f})},S&&i("label",{className:m(se,"Sui-FitmentSelector--label"),htmlFor:"sui-fitment-selector-"+k},S),i("select",{id:"sui-fitment-selector-"+k,className:m(s((r={},r[ae+" SuiSelect"]=c,r[le]=c&&u,r),x),l,"sui-fitment-selector-"+f),disabled:h,value:f,onChange:g,role:"listbox"},i("option",{key:0,value:"",role:"option","aria-selected":!1,className:m("Sui-FitmentSelector--initial-option")},S?"Select an option":v),i("option",{key:-1,disabled:!0,role:"option","aria-selected":!1},"---"),d.map((function(e){return i("option",{id:String(e.id),role:"option",key:e.id,value:e.id,"aria-selected":f===e.id,className:ue},e.name)}))))},pe="fitmentSelector_root__2AC1X",he="fitmentSelector_vertical__2KZmh",me="fitmentSelector_actions__2qHCc",ve="fitmentSelector_actionsVertical__6M5SY",ge="fitmentSelector_styledSearchBtn__1G-X4",ye="fitmentSelector_styledSearchBtnVertical__xcipP",be="fitmentSelector_styledClearBtn__LH10d";function Se(e){var t={};return e.forEach((function(e,n){n.match(/^vq\[[a-z_]+\]$/)&&(t[n]=e)})),t}var ke=function(e,t){var n,r=null==(n=e)?void 0:n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=null==t?void 0:t.find((function(e){return e.name.match(new RegExp("^"+r+"$","i"))}));return i?i.name:""},we=function(e){var t=e.labels,n=e.CustomSelect,r=e.currentSelectedValues,o=e.onLabelChange,a=e.labelsData,l=e.styled,s=e.isVertical,c=e.isOptionalLabel;return t.map((function(e,u){var d,f,p=!0;return p=!c&&(u>0&&!r[t[u-1].name]||!(null===(d=a[e.name])||void 0===d?void 0:d.length)),n?i(n,{key:e.name,value:ke(r[e.name],a[e.name])||"",onChange:function(t){return o(e.name,t)},options:a[e.name],label:e}):i(fe,{key:e.name,onChange:function(t){return o(e.name,t.currentTarget.value)},value:ke(r[e.name],a[e.name])||"",className:"Sui-FitmentSelector--select",disabled:p,name:e.customName||e.name,options:(null===(f=a[e.name])||void 0===f?void 0:f.map((function(e){return{id:e.id,name:e.name}})))||[],styled:l,isVertical:s})}))},xe=function(e){var t=e.labels,n=e.CustomSelect,r=e.currentSelectedValues,o=e.onLabelChange,a=e.labelsData,l=e.styled,s=e.isVertical,c=e.isOptionalLabel,u=e.showFieldLabels;return t.map((function(e,d){var f,p,h=!0;return h=!c&&(d>0&&!r[t[d-1].name]||!(null===(f=a[e.name])||void 0===f?void 0:f.length)),n?i(n,{key:e.name,value:ke(r[e.name],a[e.name])||"",onChange:function(t){return o(e.name,t)},options:a[e.name],label:e}):i(fe,{key:e.name,onChange:function(t){return o(e.name,t.currentTarget.value,e.real_id)},optionalLabelReference:e.real_id,value:ke(r[e.name],a[e.name])||"",className:"Sui-FitmentSelector--select",disabled:h,name:e.customName||e.name,options:(null===(p=a[e.name])||void 0===p?void 0:p.map((function(e){return{id:e.id,name:e.name}})))||[],styled:l,isVertical:s,labelName:u&&e.name})}))},Oe=function(e){var l,f,p,h,v,g=e.autocommit,y=e.autocommitDelay,b=void 0===y?2e3:y,S=e.className,w=void 0===S?"":S,x=e.clearButtonText,O=void 0===x?"Clear":x,_=e.components,C=e.id,T=e.labels,N=e.labelsData,E=e.orientation,I=void 0===E?"horizontal":E,L=e.onChange,A=e.onSubmit,j=e.onClearCb,R=e.optionalLabels,F=void 0===R?[]:R,P=e.optionalLabelsData,D=e.onOptionalLabelsChange,M=e.optionalLabelsTitle,B=void 0===M?"Optional Fields":M,q=e.searchButtonText,V=void 0===q?"Search":q,z=e.selectedValues,U=e.styled,H=void 0!==U&&U,Y=e.isLoadingOptionalLabel,J=void 0!==Y&&Y,W=e.showFieldLabels,X=void 0===W||W,K=function(e,t){var n;void 0===t&&(t=!1);var r=Object.keys(Se(e)).length>0&&Se(e),i=(null===(n=JSON.parse(localStorage.getItem("optional-qualifiers")||"{}"))||void 0===n?void 0:n[0])||{};return t?i:r||i}(new URLSearchParams(window.location.search),!0),$=(null===(v=JSON.parse(localStorage.getItem("optional-qualifiers-for-url")||"{}"))||void 0===v?void 0:v[0])||{},G=o(z),Q=G[0],Z=G[1],ee=o(K),te=ee[0],ne=ee[1],re=o($),ie=re[0],ae=re[1],le=n(null);r((function(){Object.keys(z||{}).length===T.length&&T.length>1&&ue(_e(z,T))}),[T]),r((function(){var e=s({},N),t=k(z,e,d(T));Z(t)}),[z,N]),r((function(){ne(K),ae($)}),[P]),r((function(){var e=JSON.parse(localStorage.getItem("dyn-selectedvq")||"{}")||{},t=JSON.parse(localStorage.getItem("dyn-selectedvq-realid")||"{}")||{};Object.keys(e).length?(ne(e),ae(t)):(ne(K),ae($))}),[J]),r((function(){F.length>0&&setTimeout((function(){var e=se(),t=document.querySelector(".Sui-FitmentSelector--select-wrapper-"+e),n=document.querySelector(".Sui-FitmentSelector--select-wrapper-"+e+" select");t&&(t.scrollIntoView(),n.focus())}),200)}),[F]);var se=function(){var e=JSON.parse(localStorage.getItem("nextOptLabelIdx"));return F[e].real_id},ce=t(oe((function(e){return c(void 0,void 0,void 0,(function(){return u(this,(function(t){return de(e,ie),[2]}))}))}),b),[b,T]),ue=function(e,t){t?(localStorage.setItem("optional-qualifiers",JSON.stringify([te])),localStorage.setItem("optional-qualifiers-for-url",JSON.stringify([ie]))):localStorage.setItem("sui-fitment-selector-v2",JSON.stringify([e]))},de=function(e,t){ue(_e(e,T)),ue("",t),localStorage.setItem("dyn-selectedvq","{}"),localStorage.setItem("dyn-selectedvq-realid","{}"),null==A||A(e,t)},fe="vertical"===I,ke=null==_?void 0:_.select,Oe=Q||{},Ce=te||{};return T.length?i("div",{id:C,ref:le,className:m(pe,(l={},l[he]=fe,l),w)},i(we,{labels:T,CustomSelect:ke,currentSelectedValues:Oe,onLabelChange:function(e,t){return c(void 0,void 0,void 0,(function(){var n,r,i,o,a,l,c,f;return u(this,(function(u){for(n=d(T),r=n.findIndex((function(t){return t.name===e}))+1,i=n.slice(r),o=s(s({},Q),((f={})[e]=t,f)),a=0,l=i;a<l.length;a++)c=l[a],delete o[c.name];return ce.cancel(),Z(o),null==L||L(e,o),g&&Object.keys(o).length===T.length&&ce(o),[2]}))}))},labelsData:N,styled:H,isVertical:fe,isOptionalLabel:!1}),J&&"Loading optional fields...",Object.keys(Q||{}).length>=T.length&&F.length?i(a,null,i("p",{className:"Sui-FitmentSelector--optional-fields-label"},B),i(xe,{labels:F,CustomSelect:ke,currentSelectedValues:Ce,onLabelChange:function(e,t,n){return c(void 0,void 0,void 0,(function(){var r,i,o,a,l,c,d;return u(this,(function(u){return r=s(s({},te),((c={})[e]=t,c)),i=s(s({},ie),((d={})[n]=t,d)),o=F.findIndex((function(e){return e.real_id===n})),localStorage.setItem("nextOptLabelIdx",""+(o+1)),""===t&&(delete i[n],delete r[e]),a=F.map((function(e){return e.real_id})),Object.keys(i).forEach((function(e){a.includes(e)||delete i[e]})),l=F.map((function(e){return e.name})),Object.keys(r).forEach((function(e){l.includes(e)||delete r[e]})),ce.cancel(),ne(r),ae(i),null==D||D(e,n,r,i),g&&Object.keys(r).length===F.length&&ce(r),[2]}))}))},labelsData:P,styled:H,isVertical:fe,isOptionalLabel:!0,showFieldLabels:X})):null,g?null:i("div",{className:m(me,(f={},f[ve]=H&&fe,f),"Sui-FitmentSelector--actions")},i("button",{type:"button",className:m((p={},p["SuiButton primary "+ge]=H,p[ye]=H&&fe,p),"Sui-FitmentSelector--searchBtn"),disabled:Object.keys(Oe).length<T.length,onClick:function(){de(Q,ie)}},V),i("button",{type:"button",className:m((h={},h["SuiButton secondary "+be]=H,h),"Sui-FitmentSelector--clearBtn"),disabled:0===Object.keys(Oe).length,onClick:function(){null==L||L(null,null),null==j||j(),Z(null),localStorage.removeItem("sui-fitment-selector-v2"),localStorage.removeItem("optional-qualifiers"),localStorage.removeItem("optional-qualifiers-for-url"),localStorage.removeItem("dyn-selectedvq"),localStorage.removeItem("dyn-selectedvq-realid")}},O))):null};function _e(e,t){return t.reduce((function(t,n){return e[n.name]?d(t,[e[n.name]]):t}),[]).join("|")}var Ce={SAME:0,CAMELCASE:1,possibleStandardNames:{accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},Te=p((function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});function i(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){o[e]=new i(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=n(e,2),r=t[0],a=t[1];o[r]=new i(r,1,!1,a,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){o[e]=new i(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){o[e]=new i(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){o[e]=new i(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){o[e]=new i(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){o[e]=new i(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){o[e]=new i(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){o[e]=new i(e,5,!1,e.toLowerCase(),null,!1,!1)}));var a=/[\-\:]([a-z])/g,l=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(a,l);o[t]=new i(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(a,l);o[t]=new i(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(a,l);o[t]=new i(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){o[e]=new i(e,1,!1,e.toLowerCase(),null,!1,!1)}));o.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){o[e]=new i(e,1,!1,e.toLowerCase(),null,!0,!0)}));var s=Ce.CAMELCASE,c=Ce.SAME,u=Ce.possibleStandardNames,d=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),f=Object.keys(u).reduce((function(e,t){var n=u[t];return n===c?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=d,t.possibleStandardNames=f})),Ne=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ee=/\n/g,Ie=/^\s*/,Le=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ae=/^:\s*/,je=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Re=/^[;\s]*/,Fe=/^\s+|\s+$/g;function Pe(e){return e?e.replace(Fe,""):""}var De=function(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var i,o,a=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(e){var t=e.match(Ee);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function l(i){var o=new Error(t.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function s(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function c(){s(Ie)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var a=e.slice(2,n-2);return r+=2,i(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function f(){var e=o(),t=s(Le);if(t){if(d(),!s(Ae))return l("property missing ':'");var n=s(je),r=e({type:"declaration",property:Pe(t[0].replace(Ne,"")),value:n?Pe(n[0].replace(Ne,"")):""});return s(Re),r}}return a.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=f();)!1!==e&&(t.push(e),u(t));return t}()}(e),l="function"==typeof t,s=0,c=a.length;s<c;s++)i=(n=a[s]).property,o=n.value,l?t(i,o,n):o&&(r||(r={}),r[i]=o);return r},Me=p((function(e,t){t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(o,s)).replace(r,l))}})),Be=p((function(e,t){var n=f&&f.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=n(De);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,Me.camelCase)(e,t)]=r)})),n):n}})).default;var qe={reactCompat:!0};var Ve=e.version.split(".")[0]>=16,ze=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var Ue={PRESERVE_CUSTOM_ATTRIBUTES:Ve,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},a={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?a[o[0]]=o[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=Be(e,qe)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!ze.has(e.name)},elementsWithNoTextChildren:ze},He=function(e){var t,n,r,i,o,a={},l=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(r=e[t],Te.isCustomAttribute(t))a[t]=r;else if(i=Ye(n=t.toLowerCase()))switch(o=Te.getPropertyInfo(i),"checked"!==i&&"value"!==i||l||(i=Ye("default"+n)),a[i]=r,o&&o.type){case Te.BOOLEAN:a[i]=!0;break;case Te.OVERLOADED_BOOLEAN:""===r&&(a[i]=!0)}else Ue.PRESERVE_CUSTOM_ATTRIBUTES&&(a[t]=r);return Ue.setStyleProp(e.style,a),a};function Ye(e){return Te.possibleStandardNames[e]}var Je=Ue.setStyleProp,We=Ue.canTextBeChildOfNode;function Xe(e){return Ue.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&Ue.isCustomComponent(e.name,e.attribs)}var Ke=function t(n,r){for(var i,o,a,l,s,c=(r=r||{}).library||e,u=c.cloneElement,d=c.createElement,f=c.isValidElement,p=[],h="function"==typeof r.replace,m=r.trim,v=0,g=n.length;v<g;v++)if(i=n[v],h&&f(a=r.replace(i)))g>1&&(a=u(a,{key:a.key||v})),p.push(a);else if("text"!==i.type){switch(l=i.attribs,Xe(i)?Je(l.style,l):l&&(l=He(l)),s=null,i.type){case"script":case"style":i.children[0]&&(l.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?l.defaultValue=i.children[0].data:i.children&&i.children.length&&(s=t(i.children,r));break;default:continue}g>1&&(l.key=v),p.push(d(i.name,l,s))}else{if((o=!i.data.trim().length)&&i.parent&&!We(i.parent))continue;if(m&&o)continue;p.push(i.data)}return 1===p.length?p[0]:p},$e=/<([a-zA-Z]+[0-9]?)/,Ge=/<head[^]*>/i,Qe=/<body[^]*>/i,Ze=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},et=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var tt=new window.DOMParser;Ze=et=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),tt.parseFromString(e,"text/html")}}if(document.implementation){var nt=document.implementation.createHTMLDocument();Ze=function(e,t){return t?(nt.documentElement.querySelector(t).innerHTML=e,nt):(nt.documentElement.innerHTML=e,nt)}}var rt,it=document.createElement("template");it.content&&(rt=function(e){return it.innerHTML=e,it.content.childNodes});var ot,at=function(e){var t,n,r,i,o=e.match($e);switch(o&&o[1]&&(t=o[1].toLowerCase()),t){case"html":return n=et(e),Ge.test(e)||(r=n.querySelector("head"))&&r.parentNode.removeChild(r),Qe.test(e)||(r=n.querySelector("body"))&&r.parentNode.removeChild(r),n.querySelectorAll("html");case"head":case"body":return i=(n=Ze(e)).querySelectorAll(t),Qe.test(e)&&Ge.test(e)?i[0].parentNode.childNodes:i;default:return rt?rt(e):(r=Ze(e,"body").querySelector("body")).childNodes}};!function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(ot||(ot={}));ot.Root,ot.Text,ot.Directive,ot.Comment,ot.Script,ot.Style,ot.Tag,ot.CDATA,ot.Doctype;class lt{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return wt(this,e)}}class st extends lt{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class ct extends st{constructor(){super(...arguments),this.type=ot.Text}get nodeType(){return 3}}class ut extends st{constructor(){super(...arguments),this.type=ot.Comment}get nodeType(){return 8}}class dt extends st{constructor(e,t){super(t),this.name=e,this.type=ot.Directive}get nodeType(){return 1}}class ft extends lt{constructor(e){super(),this.children=e}get firstChild(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class pt extends ft{constructor(){super(...arguments),this.type=ot.CDATA}get nodeType(){return 4}}class ht extends ft{constructor(){super(...arguments),this.type=ot.Root}get nodeType(){return 9}}class mt extends ft{constructor(e,t,n=[],r=("script"===e?ot.Script:"style"===e?ot.Style:ot.Tag)){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map((e=>{var t,n;return{name:e,value:this.attribs[e],namespace:null===(t=this["x-attribsNamespace"])||void 0===t?void 0:t[e],prefix:null===(n=this["x-attribsPrefix"])||void 0===n?void 0:n[e]}}))}}function vt(e){return(t=e).type===ot.Tag||t.type===ot.Script||t.type===ot.Style;var t}function gt(e){return e.type===ot.CDATA}function yt(e){return e.type===ot.Text}function bt(e){return e.type===ot.Comment}function St(e){return e.type===ot.Directive}function kt(e){return e.type===ot.Root}function wt(e,t=!1){let n;if(yt(e))n=new ct(e.data);else if(bt(e))n=new ut(e.data);else if(vt(e)){const r=t?xt(e.children):[],i=new mt(e.name,{...e.attribs},r);r.forEach((e=>e.parent=i)),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=i}else if(gt(e)){const r=t?xt(e.children):[],i=new pt(r);r.forEach((e=>e.parent=i)),n=i}else if(kt(e)){const r=t?xt(e.children):[],i=new ht(r);r.forEach((e=>e.parent=i)),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!St(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new dt(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function xt(e){const t=e.map((e=>wt(e,!0)));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}const Ot={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class _t{constructor(e,t,n){this.dom=[],this.root=new ht(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=Ot),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:Ot,this.elementCB=null!=n?n:null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new ht(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const n=this.options.xmlMode?ot.Tag:void 0,r=new mt(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(e){const{lastNode:t}=this;if(t&&t.type===ot.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{const t=new ct(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===ot.Comment)return void(this.lastNode.data+=e);const t=new ut(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new ct(""),t=new pt([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new dt(e,t);this.addNode(n)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}for(var Ct,Tt=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],Nt=h(Object.freeze({__proto__:null,DomHandler:_t,default:_t,Node:lt,DataNode:st,Text:ct,Comment:ut,ProcessingInstruction:dt,NodeWithChildren:ft,CDATA:pt,Document:ht,Element:mt,isTag:vt,isCDATA:gt,isText:yt,isComment:bt,isDirective:St,isDocument:kt,hasChildren:function(e){return Object.prototype.hasOwnProperty.call(e,"children")},cloneNode:wt})),Et=Tt,It=Nt.Comment,Lt=Nt.Element,At=Nt.ProcessingInstruction,jt=Nt.Text,Rt={},Ft=0,Pt=Et.length;Ft<Pt;Ft++)Ct=Et[Ft],Rt[Ct.toLowerCase()]=Ct;function Dt(e){for(var t,n={},r=0,i=e.length;r<i;r++)n[(t=e[r]).name]=t.value;return n}function Mt(e){var t=function(e){return Rt[e]}(e=e.toLowerCase());return t||e}var Bt={formatAttributes:Dt,formatDOM:function e(t,n,r){n=n||null;for(var i=[],o=0,a=t.length;o<a;o++){var l,s=t[o];switch(s.nodeType){case 1:(l=new Lt(Mt(s.nodeName),Dt(s.attributes))).children=e(s.childNodes,l);break;case 3:l=new jt(s.nodeValue);break;case 8:l=new It(s.nodeValue);break;default:continue}var c=i[o-1]||null;c&&(c.next=l),l.parent=n,l.prev=c,l.next=null,i.push(l)}return r&&((l=new At(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,l.parent=n,i.unshift(l),i[1]&&(i[1].prev=i[0])),i}}.formatDOM,qt=/<(![a-zA-Z\s]+)>/;var Vt=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(qt);return n&&n[1]&&(t=n[1]),Bt(at(e),null,t)},zt=h(Object.freeze({__proto__:null,default:Vt}));zt="function"==typeof zt.default?zt.default:zt;var Ut={lowerCaseAttributeNames:!1};function Ht(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:Ke(zt(e,(t=t||{}).htmlparser2||Ut),t)}Ht.domToReact=Ke,Ht.htmlToDOM=zt,Ht.attributesToProps=He,Ht.Element=Nt.Element;var Yt=Ht;Ht.default=Yt;l(null);function Jt(){var e;return(null===(e=JSON.parse(localStorage.getItem("optional-qualifiers")||"{}"))||void 0===e?void 0:e[0])||{}}function Wt(e){var t={};return null==e||e.forEach((function(e){t[e.name]=e.values})),[null==e?void 0:e.map((function(e){return{id:e.name,name:e.name,real_id:e.id}})),t]}var Xt="fitmentSelectorWrapper_error__MWhGI",Kt=function(e){var a=e.autocommit,l=e.autocommitDelay,f=void 0===l?2e3:l,p=e.className,h=void 0===p?"":p,m=e.clearButtonText,g=void 0===m?"Clear":m,y=e.components,S=e.filter,k=void 0===S?{}:S,w=e.groupId,x=e.id,O=e.orientation,_=void 0===O?"horizontal":O,C=e.onChange,N=e.onDataLoaded,E=e.onSubmit,I=e.onClearCb,L=e.searchButtonText,A=void 0===L?"Search":L,j=e.selectedValues,R=void 0===j?null:j,F=e.styled,P=void 0!==F&&F,D=e.optionalLabels,M=e.optionalLabelsData,B=e.onError,q=e.qualifiersStatus,V=void 0===q?"disabled":q,z=e.selectedFacets,U=void 0===z?{}:z,H=e.optionalLabelsTitle,Y=void 0===H?"Add optional details:":H,J=e.fitmentRuleId,W=e.showFieldLabels,X=e.productId,K=e.sku,$=o({message:""}),G=$[0],Q=$[1],Z=o(!1),ee=Z[0],te=Z[1],ne=o([]),re=ne[0],ie=ne[1],ae=o([]),le=ae[0],se=ae[1],ce=o({}),ue=ce[0],de=ce[1],fe=o({}),pe=fe[0],he=fe[1],me=o(R),ve=me[0],ge=me[1],ye=o(""),be=ye[0],Se=ye[1],ke=n(!1);r((function(){ge(R)}),[R]),r((function(){var e;(null==D?void 0:D.length)>0&&se(D),(null===(e=Object.keys(M||{}))||void 0===e?void 0:e.length)>0&&he(M)}),[D,M]),r((function(){var e=!0;return function(){c(this,void 0,void 0,(function(){var t,n,r;return u(this,(function(i){switch(i.label){case 0:return[4,$t("fitment/labels",w,k,Q,X)];case 1:return t=i.sent(),e&&ie(t),n=Object.keys(R||{}).length,[4,Gt(t,n,R,w,k,Q,X)];case 2:return r=i.sent(),e&&de(r),[2]}}))}))}(),function(){e=!1}}),[]);var we=t(oe((function(e,t,n){N(e,t,n)}),150),[]);r((function(){N&&(re.length||Object.keys(ue).length)&&(we.cancel(),we(re,le,ue))}),[re,ue]),r((function(){B&&G.message&&B(G)}),[G]);var xe=function(){var e;null==C||C(null,null),ge({}),de(((e={})[re[0].name]=ue[re[0].name],e)),se([])},_e=v((function(e,t){var n=Object.keys(ve).length===re.length+le.length;!ke.current&&(a&&n||!a)&&(null==E||E(e,t))}),[le,ve]);return w||console.error("Please send a groupId"),G.message?i("p",{className:Xt},G.message):i(Oe,{autocommit:a,autocommitDelay:f,className:h,clearButtonText:g,id:x,orientation:_,onChange:function(e,t){return c(void 0,void 0,void 0,(function(){var n,r,i,o,a,l,c,f,p,h,m,v,g,y,S,x,O,_,N,E;return u(this,(function(u){switch(u.label){case 0:if(!t&&!e)return xe(),[2];for(n=d(re),r=n.findIndex((function(t){return t.name===e}))+1,i=r<n.length,o=s(s({},t),i?((N={})[n[r].name]=void 0,N):{}),a=n.slice(r),l=0,c=a;l<c.length;l++)f=c[l],delete o[f.name];return ge(o),p=!1,1===Object.keys(t).length&&""===Object.values(t).find((function(e){return""===e}))&&(p=!0),i?p?[3,2]:[4,Qt(n,r,k,w,t,Q,J,X)]:[3,3];case 1:h=u.sent(),m=s(s({},ue),((E={})[n[r].name]=h,E)),de(m),u.label=2;case 2:return[3,5];case 3:return"enabled"!==V?[3,5]:(te(!0),se([]),he({}),v=Object.keys(o).reduce((function(e,t){return d(e,[o[t]])}),[]).join("|"),Se(v),g={},Object.keys(U||{}).forEach((function(e){var t;null===(t=U[e])||void 0===t||t.forEach((function(t){var n;g=s(s({},g),((n={})[""+e]=t,n))}))})),y=s(s({limit:1,page:1,fitment:v,productId:X},g),{sku:K}),[4,T.get(b.API_URL+"/products",y)]);case 4:S=u.sent(),x=Wt(null==S?void 0:S.vehicleQualifiers),O=x[0],_=x[1],se(O),he(_),te(!1),u.label=5;case 5:return null==C||C(e,t),[2]}}))}))},onSubmit:_e,searchButtonText:A,styled:P,onClearCb:I,components:y,labels:re,optionalLabels:le,optionalLabelsData:pe,optionalLabelsTitle:Y,labelsData:ue,selectedValues:ve,isLoadingOptionalLabel:ee,onOptionalLabelsChange:function(e,t,n,r){return c(void 0,void 0,void 0,(function(){var e,t,i,o,a,l,c,d,f;return u(this,(function(u){switch(u.label){case 0:return e=(null===(d=JSON.parse(localStorage.getItem("sui-fitment-selector-v2")||"{}"))||void 0===d?void 0:d[0])||"",t={},null===(f=Object.keys(r))||void 0===f||f.forEach((function(e){t["vq["+e+"]"]=r[e]})),localStorage.setItem("dyn-selectedvq",JSON.stringify(n)),localStorage.setItem("dyn-selectedvq-realid",JSON.stringify(r)),i={},Object.keys(U||{}).forEach((function(e){var t;null===(t=U[e])||void 0===t||t.forEach((function(t){var n;i=s(s({},i),((n={})[""+e]=t,n))}))})),te(!0),se([]),he({}),[4,T.get(b.API_URL+"/products",s(s(s({limit:1,page:1,fitment:e||be},t),i),{sku:K}))];case 1:return o=u.sent(),a=Wt(null==o?void 0:o.vehicleQualifiers),l=a[0],c=a[1],Object.keys(n).forEach((function(e){Object.keys(c).includes(e)||(c[e]=[{id:n[e],name:n[e]}],Object.keys(n).forEach((function(t,n){e===t&&l.push({id:t,name:t,real_id:Object.keys(r)[n]})})))})),se(l),he(c),te(!1),[2]}}))}))},showFieldLabels:W})};function $t(e,t,n,r,i){return c(this,void 0,void 0,(function(){var o;return u(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),o=s({groupId:t,productId:i},(l=n,Object.entries(l).reduce((function(e,t){var n;return s(s({},e),((n={})[t[0].toLowerCase()]=t[1],n))}),{}))),[4,T.get(b.API_URL+"/"+e,o)];case 1:return[2,a.sent()];case 2:return a.sent(),r({message:"Error fetching list of labels"}),[2,[]];case 3:return[2]}var l}))}))}function Gt(e,t,n,r,i,o,a){return c(this,void 0,void 0,(function(){var l,c,d,f;return u(this,(function(u){switch(u.label){case 0:l=e.slice(0,Math.min(e.length,t+1)),c={},d=l.map((function(e,t){var o,u=t?l[t-1].name:null;t&&(c=s(s({},c),((o={})[""+u]=n[""+u],o)));var d=s(s({},i),{parents:Object.values(c||{})}),f=s({groupId:r,productId:a},d);return T.get(b.API_URL+"/fitment/labels/"+encodeURIComponent(e.name),f)})),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(d)];case 2:return f=u.sent(),[2,l.reduce((function(e,t,n){var r;return s(s({},e),((r={})[t.name]=f[n].map(Zt),r))}),{})];case 3:return u.sent(),o({message:"Error fetching label data"}),[2,{}];case 4:return[2]}}))}))}function Qt(e,t,n,r,i,o,a,l){return c(this,void 0,void 0,(function(){var c;return u(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),c=s(s({},n),{fitmentRuleId:a,groupId:r,parents:Object.values(i),productId:l}),[4,T.get(b.API_URL+"/fitment/labels/"+encodeURIComponent(e[t].name),c)];case 1:return[2,u.sent().map(Zt)];case 2:return u.sent(),o({message:"Error fetching label data"}),[2,[]];case 3:return[2]}}))}))}function Zt(e){return{id:e.value,name:e.value,priority:e.priority}}var en="fitmentVerifier_root__6Q6ON",tn="fitmentVerifier_fitmentTitle__1po5c",nn="fitmentVerifier_fitment__1D56Q",rn="fitmentVerifier_searchVehicleBtn__1Ok_e",on="fitmentVerifier_alert__3aK-v";function an(e,t,n){var r="";if(e.length&&Object.keys(t||{}).length&&Object.keys(n).length)for(var i=function(e){var i=t[e.name];if(i){var o=(n[e.name]||[]).find((function(e){return String(e.id).toLowerCase()===String(i).toLowerCase()}));if(!o)return r="There is an error on your Fitment selection, please try again.","break";r+=" "+o.name}},o=0,a=e;o<a.length;o++){if("break"===i(a[o]))break}return r.trim()}function ln(e,t){return Object.keys(e).length===Object.values(t).filter((function(e){return e})).length}export default function(t){var i,a=t.selectedValues,l=t.showMoreText,f=t.onShowMoreBtnClick,p=t.title,h=t.alertSuccessTitle,g=void 0===h?"FITMENT VERIFIED FOR:":h,y=t.alertErrorTitle,S=void 0===y?"DOESN'T FIT:":y,w=t.alertButtonText,x=void 0===w?"Change vehicle":w,O=t.alertButtonAqNotSetText,_=void 0===O?"Select additional attributes":O,C=t.alertErrorAqNotSetTitle,N=void 0===C?"Additional attributes required to verify fitment":C,E=t.onDoesntFit,I=t.onSuccess,L=t.doesntFitButtonText,A=t.alertFill,R=t.showAlertIcon,F=t.productId,P=t.sku,D=t.onDataLoaded,M=t.qualifiersStatus,B=t.optionalLabelsTitle,q=void 0===B?"Add optional details:":B,V=t.includeSkus,z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,["selectedValues","showMoreText","onShowMoreBtnClick","title","alertSuccessTitle","alertErrorTitle","alertButtonText","alertButtonAqNotSetText","alertErrorAqNotSetTitle","onDoesntFit","onSuccess","doesntFitButtonText","alertFill","showAlertIcon","productId","sku","onDataLoaded","qualifiersStatus","optionalLabelsTitle","includeSkus"]),U=(null===(i=JSON.parse(localStorage.getItem("optional-qualifiers-for-url")||"{}"))||void 0===i?void 0:i[0])||{},H=n(!0),Y=o({type:"",visible:!1}),J=Y[0],W=Y[1],X=o(!1),K=X[0],$=X[1],G=o(a||{}),Q=G[0],Z=G[1],ee=o(),te=ee[0],ne=ee[1],re=o(0),ie=re[0],oe=re[1],ae=n([]),le=n({}),se=e.useState([]),ce=se[0],ue=se[1],de=e.useState({}),fe=de[0],pe=de[1];r((function(){return function(){return H.current=!1}}),[]);var he=function(e){var t;return function(e,t){if(e.length&&t){var n=t.split("|");return e.reduce((function(e,t,r){var i;return s(s({},e),((i={})[t.name]=n[r],i))}),{})}}(e,(null===(t=JSON.parse(localStorage.getItem("sui-fitment-selector-v2")||"{}"))||void 0===t?void 0:t[0])||"")||{}};r((function(){if(Q!==a&&(Z(a),J.visible)){var e=k(a,le.current,ae.current),t=ln(ae.current,e);W({type:t?"success":"error",visible:!0})}}),[a]),r((function(){c(void 0,void 0,void 0,(function(){var e,t,n,r,i,o;return u(this,(function(a){switch(a.label){case 0:return e=(null===(o=JSON.parse(localStorage.getItem("sui-fitment-selector-v2")||"{}"))||void 0===o?void 0:o[0])||"",[4,T.get(b.API_URL+"/products",{fitment:e,includeSkus:V,limit:1,page:1,productId:F,sku:P})];case 1:return t=a.sent(),n=Wt(null==t?void 0:t.vehicleQualifiers),r=n[0],i=n[1],"enabled"===M&&(ue(r),pe(i)),[2]}}))}))}),[]);var me=v((function(e,t,n){return c(void 0,void 0,void 0,(function(){var r,i,o;return u(this,(function(l){return null==D||D(e,t,n),H.current?(ne(null),ae.current=d(e),le.current=n,r=Q||{},!Object.keys(Q||{}).length&&ae.current.length&&(r=he(ae.current),Z(r),Object.keys(r||{}).length?oe(ie+1):$(!0)),Object.keys(r).length||$(!0),d(e).length===Object.keys(r||{}).length&&Object.keys(n).length===e.length?(i=Object.keys(k(r,n,e)).length,Object.keys(r).length||i?Object.keys(ae.current).length>i?W({type:"error",visible:!0}):Object.keys(ae.current).length===i&&(P||F?(o=F?{}:ge(U),ve(e,n,r,o)):W({type:"success",visible:!0})):W({type:"",visible:!1})):a===r&&Object.keys(a||{}).length&&d(e).length!==Object.keys(r).length&&W({type:"error",visible:!0}),[2]):[2]}))}))}),[Q,F]),ve=function(e,t,n,r){return void 0===r&&(r={}),c(void 0,void 0,void 0,(function(){var i,o,a,l;return u(this,(function(c){switch(c.label){case 0:return i=function(e,t,n){for(var r,i=[],o=function(e){if(t[e.name]&&n[e.name]){var o=null===(r=n[e.name].find((function(n){return String(n.id).toLowerCase()===String(t[e.name]).toLowerCase()})))||void 0===r?void 0:r.name;i.push({key:e.name,value:o})}},a=0,l=e;a<l.length;a++)o(l[a]);return i}(e,n,t),o=Jt(),0===Object.keys(o).length&&"enabled"===M?(W({type:"aq_not_set",visible:!0}),[2]):(a=s({fitment:i.map((function(e){return e.value})).join("|"),productId:F,sku:P},r),[4,T.get(b.API_URL+"/fitment/check",a)]);case 1:return l=c.sent(),W({type:l.valid?"success":"error",visible:!0}),I&&I(i.map((function(e){return e.value})).join("|")),[2]}}))}))},ge=function(e){var t,n={};return null===(t=Object.keys(e))||void 0===t||t.forEach((function(t){n["aq["+t+"]"]=e[t]})),0===Object.keys(n).length?{"aq[undefined]":null}:n},ye=function(){var e=Jt();return!(0===Object.keys(e).length&&"enabled"===M&&Object.keys(fe).length>0)};return e.createElement("div",{className:m(en,"Sui-FitmentSelectorVerifier--root")},e.createElement(j,{className:on,type:"error"===J.type||"aq_not_set"===J.type?"error":"success",title:function(){switch(J.type){case"error":return S;case"success":return g;case"aq_not_set":return N;default:return""}}(),text:an(ae.current,Q,le.current),onClick:function(){W({type:"",visible:!1}),$(!0)},buttonText:"aq_not_set"===J.type?_:x,onSecondaryButtonClick:E||null,secondaryButtonText:L||null,fill:A,showIcon:R,styled:z.styled,style:{display:J.visible?"":"none"}}),e.createElement("div",{"data-testid":"fitment-verifier-selectors",style:{display:J.visible||!K?"none":""}},p&&e.createElement("p",{className:m(tn,"Sui-FitmentSelectorVerifier--title")},p),e.createElement("div",{className:nn},e.createElement(Kt,s({productId:F,key:ie},z,{onSubmit:function(e,t){var n,r=ln(ae.current,e),i=F?{}:ge(t);ye()?(P||F?ve(ae.current,le.current,Q,i):z.autocommit&&!r||W({type:r?"success":"error",visible:!0}),null===(n=null==z?void 0:z.onSubmit)||void 0===n||n.call(z,e)):W({type:"aq_not_set",visible:!0})},onChange:function(e,t){var n;Z(t||{}),null===(n=null==z?void 0:z.onChange)||void 0===n||n.call(z,e,t)},onDataLoaded:me,onError:function(e){$(!0),ne(e)},selectedValues:Q,optionalLabels:ce,optionalLabelsData:fe,optionalLabelsTitle:q,qualifiersStatus:M,sku:P})),l&&f&&!te?e.createElement("button",{className:rn,onClick:f},l):null)))}
22
+ //# sourceMappingURL=index.esm.js.map