@fast-simon/dashboard-utilities 1.0.30 → 1.0.32

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 (378) hide show
  1. package/dist/@types/banner.js.map +1 -0
  2. package/dist/@types/categories.js.map +1 -0
  3. package/dist/@types/categoriesNavigation.js.map +1 -0
  4. package/dist/@types/context.js.map +1 -0
  5. package/dist/@types/currency.js.map +1 -0
  6. package/dist/@types/editorProduct.js.map +1 -0
  7. package/dist/@types/facets.js.map +1 -0
  8. package/dist/@types/iconProps.js.map +1 -0
  9. package/dist/@types/narrow.js.map +1 -0
  10. package/dist/@types/product.js.map +1 -0
  11. package/dist/@types/productLabel.js.map +1 -0
  12. package/dist/@types/promoTile.js.map +1 -0
  13. package/dist/@types/results.js.map +1 -0
  14. package/dist/@types/sideMenu.js.map +1 -0
  15. package/dist/@types/sortBy.js.map +1 -0
  16. package/dist/App.js.map +1 -0
  17. package/dist/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.js.map +1 -0
  18. package/dist/components/BackOfficeFiltersMenu/index.js.map +1 -0
  19. package/dist/components/BackOfficeFiltersMenu/utils.js.map +1 -0
  20. package/dist/components/CheckboxFilter/Checkbox/Checkbox.js.map +1 -0
  21. package/dist/components/CheckboxFilter/CheckboxFilter.js.map +1 -0
  22. package/dist/components/DragAndDrop/DndContextWrapper.js.map +1 -0
  23. package/dist/components/DragAndDrop/Droppable.js.map +1 -0
  24. package/dist/components/DragAndDrop/SortableItem.js.map +1 -0
  25. package/dist/components/FacetItem/FacetItem.js.map +1 -0
  26. package/dist/components/FastSimonApi/FastSimonApi.js.map +1 -0
  27. package/dist/components/FastSimonApi/context.js.map +1 -0
  28. package/dist/components/FastSimonApi/index.js.map +1 -0
  29. package/dist/components/FastSimonApi/reducer.js.map +1 -0
  30. package/dist/components/FromToFilter/From/From.js.map +1 -0
  31. package/dist/components/FromToFilter/FromToFilter.js.map +1 -0
  32. package/dist/components/FromToFilter/To/To.js.map +1 -0
  33. package/dist/components/FromToFilter/utils.js.map +1 -0
  34. package/dist/components/InStoreFiltersMenu/InStoreFiltersMenu.js.map +1 -0
  35. package/dist/components/InStoreFiltersMenu/index.js.map +1 -0
  36. package/dist/components/Input/Input.js.map +1 -0
  37. package/dist/components/Input/index.js.map +1 -0
  38. package/dist/components/LastReceivedDateFilter/LastReceivedDate.js.map +1 -0
  39. package/dist/components/LastReceivedDateFilter/utils.js.map +1 -0
  40. package/dist/components/RadioFilter/Radio/Radio.js.map +1 -0
  41. package/dist/components/RadioFilter/RadioFilter.js.map +1 -0
  42. package/dist/components/RadioFilter/utils.js.map +1 -0
  43. package/dist/components/ReactDatePicker/ReactDatePicker.js.map +1 -0
  44. package/dist/components/ReactDatePicker/index.js.map +1 -0
  45. package/dist/components/RenderIfVisible/RenderIfVisible.js.map +1 -0
  46. package/dist/components/RenderIfVisible/index.js.map +1 -0
  47. package/dist/components/SingleFilter/SingleFilter.js.map +1 -0
  48. package/dist/components/SingleFilter/utils.js.map +1 -0
  49. package/dist/components/SliderFilter/SliderFilter.js.map +1 -0
  50. package/dist/components/SliderFilter/index.js.map +1 -0
  51. package/dist/components/Tooltip/Tooltip.js.map +1 -0
  52. package/dist/components/common.js.map +1 -0
  53. package/dist/components/productGrid/ProductGrid.js.map +1 -0
  54. package/dist/components/productGrid/index.js.map +1 -0
  55. package/dist/icons/BackOfficeFiltersIcon.js.map +1 -0
  56. package/dist/icons/BannersIcon.js.map +1 -0
  57. package/dist/icons/GeneralIcon.js.map +1 -0
  58. package/dist/icons/HelpIcon.js.map +1 -0
  59. package/dist/icons/InStoreFiltersIcon.js.map +1 -0
  60. package/dist/icons/PromoteIcon.js.map +1 -0
  61. package/dist/icons/RemoveIcon.js.map +1 -0
  62. package/dist/icons/RestoreIcon.js.map +1 -0
  63. package/dist/{dashboard-utilities/src/index.d.ts → index.d.ts} +1 -2
  64. package/dist/{dashboard-utilities/src/index.js → index.js} +1 -2
  65. package/dist/index.js.map +1 -0
  66. package/dist/main.js.map +1 -0
  67. package/dist/services/API.js.map +1 -0
  68. package/dist/services/landingPage.js.map +1 -0
  69. package/dist/services/products.js.map +1 -0
  70. package/dist/{dashboard-utilities/src/services → services}/search.js +3 -4
  71. package/dist/services/search.js.map +1 -0
  72. package/dist/{dashboard-utilities/src/services → services}/smartCollections.js +3 -4
  73. package/dist/services/smartCollections.js.map +1 -0
  74. package/dist/utils/customTagsFilters.js.map +1 -0
  75. package/dist/utils/useDragToSelect.js.map +1 -0
  76. package/package.json +1 -1
  77. package/dist/dashboard-utilities/src/@types/banner.js.map +0 -1
  78. package/dist/dashboard-utilities/src/@types/categories.js.map +0 -1
  79. package/dist/dashboard-utilities/src/@types/categoriesNavigation.js.map +0 -1
  80. package/dist/dashboard-utilities/src/@types/context.js.map +0 -1
  81. package/dist/dashboard-utilities/src/@types/currency.js.map +0 -1
  82. package/dist/dashboard-utilities/src/@types/editorProduct.js.map +0 -1
  83. package/dist/dashboard-utilities/src/@types/facets.js.map +0 -1
  84. package/dist/dashboard-utilities/src/@types/iconProps.js.map +0 -1
  85. package/dist/dashboard-utilities/src/@types/narrow.js.map +0 -1
  86. package/dist/dashboard-utilities/src/@types/product.js.map +0 -1
  87. package/dist/dashboard-utilities/src/@types/productLabel.js.map +0 -1
  88. package/dist/dashboard-utilities/src/@types/promoTile.js.map +0 -1
  89. package/dist/dashboard-utilities/src/@types/results.js.map +0 -1
  90. package/dist/dashboard-utilities/src/@types/sideMenu.js.map +0 -1
  91. package/dist/dashboard-utilities/src/@types/sortBy.js.map +0 -1
  92. package/dist/dashboard-utilities/src/App.js.map +0 -1
  93. package/dist/dashboard-utilities/src/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.js.map +0 -1
  94. package/dist/dashboard-utilities/src/components/BackOfficeFiltersMenu/index.js.map +0 -1
  95. package/dist/dashboard-utilities/src/components/BackOfficeFiltersMenu/utils.js.map +0 -1
  96. package/dist/dashboard-utilities/src/components/CheckboxFilter/Checkbox/Checkbox.js.map +0 -1
  97. package/dist/dashboard-utilities/src/components/CheckboxFilter/CheckboxFilter.js.map +0 -1
  98. package/dist/dashboard-utilities/src/components/DragAndDrop/DndContextWrapper.js.map +0 -1
  99. package/dist/dashboard-utilities/src/components/DragAndDrop/Droppable.js.map +0 -1
  100. package/dist/dashboard-utilities/src/components/DragAndDrop/SortableItem.js.map +0 -1
  101. package/dist/dashboard-utilities/src/components/FacetItem/FacetItem.js.map +0 -1
  102. package/dist/dashboard-utilities/src/components/FastSimonApi/FastSimonApi.js.map +0 -1
  103. package/dist/dashboard-utilities/src/components/FastSimonApi/context.js.map +0 -1
  104. package/dist/dashboard-utilities/src/components/FastSimonApi/index.js.map +0 -1
  105. package/dist/dashboard-utilities/src/components/FastSimonApi/reducer.js.map +0 -1
  106. package/dist/dashboard-utilities/src/components/FromToFilter/From/From.js.map +0 -1
  107. package/dist/dashboard-utilities/src/components/FromToFilter/FromToFilter.js.map +0 -1
  108. package/dist/dashboard-utilities/src/components/FromToFilter/To/To.js.map +0 -1
  109. package/dist/dashboard-utilities/src/components/FromToFilter/utils.js.map +0 -1
  110. package/dist/dashboard-utilities/src/components/InStoreFiltersMenu/InStoreFiltersMenu.js.map +0 -1
  111. package/dist/dashboard-utilities/src/components/InStoreFiltersMenu/index.js.map +0 -1
  112. package/dist/dashboard-utilities/src/components/Input/Input.js.map +0 -1
  113. package/dist/dashboard-utilities/src/components/Input/index.js.map +0 -1
  114. package/dist/dashboard-utilities/src/components/LastReceivedDateFilter/LastReceivedDate.js.map +0 -1
  115. package/dist/dashboard-utilities/src/components/LastReceivedDateFilter/utils.js.map +0 -1
  116. package/dist/dashboard-utilities/src/components/RadioFilter/Radio/Radio.js.map +0 -1
  117. package/dist/dashboard-utilities/src/components/RadioFilter/RadioFilter.js.map +0 -1
  118. package/dist/dashboard-utilities/src/components/RadioFilter/utils.js.map +0 -1
  119. package/dist/dashboard-utilities/src/components/ReactDatePicker/ReactDatePicker.js.map +0 -1
  120. package/dist/dashboard-utilities/src/components/ReactDatePicker/index.js.map +0 -1
  121. package/dist/dashboard-utilities/src/components/RenderIfVisible/RenderIfVisible.js.map +0 -1
  122. package/dist/dashboard-utilities/src/components/RenderIfVisible/index.js.map +0 -1
  123. package/dist/dashboard-utilities/src/components/SingleFilter/SingleFilter.js.map +0 -1
  124. package/dist/dashboard-utilities/src/components/SingleFilter/utils.js.map +0 -1
  125. package/dist/dashboard-utilities/src/components/SliderFilter/SliderFilter.js.map +0 -1
  126. package/dist/dashboard-utilities/src/components/SliderFilter/index.js.map +0 -1
  127. package/dist/dashboard-utilities/src/components/Tooltip/Tooltip.js.map +0 -1
  128. package/dist/dashboard-utilities/src/components/common.js.map +0 -1
  129. package/dist/dashboard-utilities/src/components/productGrid/ProductGrid.js.map +0 -1
  130. package/dist/dashboard-utilities/src/components/productGrid/index.js.map +0 -1
  131. package/dist/dashboard-utilities/src/icons/BackOfficeFiltersIcon.js.map +0 -1
  132. package/dist/dashboard-utilities/src/icons/BannersIcon.js.map +0 -1
  133. package/dist/dashboard-utilities/src/icons/GeneralIcon.js.map +0 -1
  134. package/dist/dashboard-utilities/src/icons/HelpIcon.js.map +0 -1
  135. package/dist/dashboard-utilities/src/icons/InStoreFiltersIcon.js.map +0 -1
  136. package/dist/dashboard-utilities/src/icons/PromoteIcon.js.map +0 -1
  137. package/dist/dashboard-utilities/src/icons/RemoveIcon.js.map +0 -1
  138. package/dist/dashboard-utilities/src/icons/RestoreIcon.js.map +0 -1
  139. package/dist/dashboard-utilities/src/index.js.map +0 -1
  140. package/dist/dashboard-utilities/src/main.js.map +0 -1
  141. package/dist/dashboard-utilities/src/sections/fullTextSearch/index.d.ts +0 -6
  142. package/dist/dashboard-utilities/src/sections/fullTextSearch/index.js +0 -70
  143. package/dist/dashboard-utilities/src/sections/fullTextSearch/index.js.map +0 -1
  144. package/dist/dashboard-utilities/src/sections/fullTextSearch/utils.d.ts +0 -17
  145. package/dist/dashboard-utilities/src/sections/fullTextSearch/utils.js +0 -105
  146. package/dist/dashboard-utilities/src/sections/fullTextSearch/utils.js.map +0 -1
  147. package/dist/dashboard-utilities/src/sections/index.d.ts +0 -3
  148. package/dist/dashboard-utilities/src/sections/index.js +0 -215
  149. package/dist/dashboard-utilities/src/sections/index.js.map +0 -1
  150. package/dist/dashboard-utilities/src/sections/smartCollections/index.d.ts +0 -6
  151. package/dist/dashboard-utilities/src/sections/smartCollections/index.js +0 -103
  152. package/dist/dashboard-utilities/src/sections/smartCollections/index.js.map +0 -1
  153. package/dist/dashboard-utilities/src/sections/smartCollections/utils.d.ts +0 -35
  154. package/dist/dashboard-utilities/src/sections/smartCollections/utils.js +0 -148
  155. package/dist/dashboard-utilities/src/sections/smartCollections/utils.js.map +0 -1
  156. package/dist/dashboard-utilities/src/services/API.js.map +0 -1
  157. package/dist/dashboard-utilities/src/services/fullTextSearch.d.ts +0 -4
  158. package/dist/dashboard-utilities/src/services/fullTextSearch.js +0 -40
  159. package/dist/dashboard-utilities/src/services/fullTextSearch.js.map +0 -1
  160. package/dist/dashboard-utilities/src/services/landingPage.js.map +0 -1
  161. package/dist/dashboard-utilities/src/services/products.js.map +0 -1
  162. package/dist/dashboard-utilities/src/services/search.js.map +0 -1
  163. package/dist/dashboard-utilities/src/services/smartCollections.js.map +0 -1
  164. package/dist/dashboard-utilities/src/utils/customTagsFilters.js.map +0 -1
  165. package/dist/dashboard-utilities/src/utils/useDragToSelect.js.map +0 -1
  166. package/dist/serving/src/@types/Tab.d.ts +0 -9
  167. package/dist/serving/src/@types/Tab.js +0 -6
  168. package/dist/serving/src/@types/Tab.js.map +0 -1
  169. package/dist/serving/src/@types/bigcommerceCurrency.d.ts +0 -7
  170. package/dist/serving/src/@types/bigcommerceCurrency.js +0 -2
  171. package/dist/serving/src/@types/bigcommerceCurrency.js.map +0 -1
  172. package/dist/serving/src/@types/bigcommerceCustomer.d.ts +0 -19
  173. package/dist/serving/src/@types/bigcommerceCustomer.js +0 -2
  174. package/dist/serving/src/@types/bigcommerceCustomer.js.map +0 -1
  175. package/dist/serving/src/@types/categories.d.ts +0 -16
  176. package/dist/serving/src/@types/categories.js +0 -2
  177. package/dist/serving/src/@types/categories.js.map +0 -1
  178. package/dist/serving/src/@types/currency.d.ts +0 -1
  179. package/dist/serving/src/@types/currency.js +0 -2
  180. package/dist/serving/src/@types/currency.js.map +0 -1
  181. package/dist/serving/src/@types/device.d.ts +0 -1
  182. package/dist/serving/src/@types/device.js +0 -2
  183. package/dist/serving/src/@types/device.js.map +0 -1
  184. package/dist/serving/src/@types/editor.d.ts +0 -461
  185. package/dist/serving/src/@types/editor.js +0 -8
  186. package/dist/serving/src/@types/editor.js.map +0 -1
  187. package/dist/serving/src/@types/gridView.d.ts +0 -4
  188. package/dist/serving/src/@types/gridView.js +0 -6
  189. package/dist/serving/src/@types/gridView.js.map +0 -1
  190. package/dist/serving/src/@types/ispOptions.d.ts +0 -64
  191. package/dist/serving/src/@types/ispOptions.js +0 -2
  192. package/dist/serving/src/@types/ispOptions.js.map +0 -1
  193. package/dist/serving/src/@types/narrow.d.ts +0 -7
  194. package/dist/serving/src/@types/narrow.js +0 -2
  195. package/dist/serving/src/@types/narrow.js.map +0 -1
  196. package/dist/serving/src/@types/platform.d.ts +0 -1
  197. package/dist/serving/src/@types/platform.js +0 -2
  198. package/dist/serving/src/@types/platform.js.map +0 -1
  199. package/dist/serving/src/@types/product.d.ts +0 -158
  200. package/dist/serving/src/@types/product.js +0 -8
  201. package/dist/serving/src/@types/product.js.map +0 -1
  202. package/dist/serving/src/@types/promoTile.d.ts +0 -11
  203. package/dist/serving/src/@types/promoTile.js +0 -2
  204. package/dist/serving/src/@types/promoTile.js.map +0 -1
  205. package/dist/serving/src/@types/sortBy.d.ts +0 -3
  206. package/dist/serving/src/@types/sortBy.js +0 -2
  207. package/dist/serving/src/@types/sortBy.js.map +0 -1
  208. package/dist/serving/src/@types/translations.d.ts +0 -11
  209. package/dist/serving/src/@types/translations.js +0 -8
  210. package/dist/serving/src/@types/translations.js.map +0 -1
  211. package/dist/serving/src/@types/variation.d.ts +0 -4
  212. package/dist/serving/src/@types/variation.js +0 -2
  213. package/dist/serving/src/@types/variation.js.map +0 -1
  214. package/dist/serving/src/services/API.d.ts +0 -23
  215. package/dist/serving/src/services/API.js +0 -56
  216. package/dist/serving/src/services/API.js.map +0 -1
  217. package/dist/serving/src/services/siteSettings.d.ts +0 -80
  218. package/dist/serving/src/services/siteSettings.js +0 -53
  219. package/dist/serving/src/services/siteSettings.js.map +0 -1
  220. package/dist/serving/src/store/actions/setSegments.d.ts +0 -2
  221. package/dist/serving/src/store/actions/setSegments.js +0 -19
  222. package/dist/serving/src/store/actions/setSegments.js.map +0 -1
  223. package/dist/serving/src/store/store.d.ts +0 -88
  224. package/dist/serving/src/store/store.js +0 -83
  225. package/dist/serving/src/store/store.js.map +0 -1
  226. package/dist/serving/src/utils/consts.d.ts +0 -5
  227. package/dist/serving/src/utils/consts.js +0 -6
  228. package/dist/serving/src/utils/consts.js.map +0 -1
  229. package/dist/serving/src/utils/debug.d.ts +0 -13
  230. package/dist/serving/src/utils/debug.js +0 -71
  231. package/dist/serving/src/utils/debug.js.map +0 -1
  232. package/dist/serving/src/utils/getUserVariation.d.ts +0 -1
  233. package/dist/serving/src/utils/getUserVariation.js +0 -12
  234. package/dist/serving/src/utils/getUserVariation.js.map +0 -1
  235. package/dist/serving/src/utils/showShopifyPreviewBar.d.ts +0 -1
  236. package/dist/serving/src/utils/showShopifyPreviewBar.js +0 -7
  237. package/dist/serving/src/utils/showShopifyPreviewBar.js.map +0 -1
  238. package/dist/serving/src/utils/tree.d.ts +0 -36
  239. package/dist/serving/src/utils/tree.js +0 -118
  240. package/dist/serving/src/utils/tree.js.map +0 -1
  241. /package/dist/{dashboard-utilities/src/@types → @types}/banner.d.ts +0 -0
  242. /package/dist/{dashboard-utilities/src/@types → @types}/banner.js +0 -0
  243. /package/dist/{dashboard-utilities/src/@types → @types}/categories.d.ts +0 -0
  244. /package/dist/{dashboard-utilities/src/@types → @types}/categories.js +0 -0
  245. /package/dist/{dashboard-utilities/src/@types → @types}/categoriesNavigation.d.ts +0 -0
  246. /package/dist/{dashboard-utilities/src/@types → @types}/categoriesNavigation.js +0 -0
  247. /package/dist/{dashboard-utilities/src/@types → @types}/context.d.ts +0 -0
  248. /package/dist/{dashboard-utilities/src/@types → @types}/context.js +0 -0
  249. /package/dist/{dashboard-utilities/src/@types → @types}/currency.d.ts +0 -0
  250. /package/dist/{dashboard-utilities/src/@types → @types}/currency.js +0 -0
  251. /package/dist/{dashboard-utilities/src/@types → @types}/editorProduct.d.ts +0 -0
  252. /package/dist/{dashboard-utilities/src/@types → @types}/editorProduct.js +0 -0
  253. /package/dist/{dashboard-utilities/src/@types → @types}/facets.d.ts +0 -0
  254. /package/dist/{dashboard-utilities/src/@types → @types}/facets.js +0 -0
  255. /package/dist/{dashboard-utilities/src/@types → @types}/iconProps.d.ts +0 -0
  256. /package/dist/{dashboard-utilities/src/@types → @types}/iconProps.js +0 -0
  257. /package/dist/{dashboard-utilities/src/@types → @types}/narrow.d.ts +0 -0
  258. /package/dist/{dashboard-utilities/src/@types → @types}/narrow.js +0 -0
  259. /package/dist/{dashboard-utilities/src/@types → @types}/product.d.ts +0 -0
  260. /package/dist/{dashboard-utilities/src/@types → @types}/product.js +0 -0
  261. /package/dist/{dashboard-utilities/src/@types → @types}/productLabel.d.ts +0 -0
  262. /package/dist/{dashboard-utilities/src/@types → @types}/productLabel.js +0 -0
  263. /package/dist/{dashboard-utilities/src/@types → @types}/promoTile.d.ts +0 -0
  264. /package/dist/{dashboard-utilities/src/@types → @types}/promoTile.js +0 -0
  265. /package/dist/{dashboard-utilities/src/@types → @types}/results.d.ts +0 -0
  266. /package/dist/{dashboard-utilities/src/@types → @types}/results.js +0 -0
  267. /package/dist/{dashboard-utilities/src/@types → @types}/sideMenu.d.ts +0 -0
  268. /package/dist/{dashboard-utilities/src/@types → @types}/sideMenu.js +0 -0
  269. /package/dist/{dashboard-utilities/src/@types → @types}/sortBy.d.ts +0 -0
  270. /package/dist/{dashboard-utilities/src/@types → @types}/sortBy.js +0 -0
  271. /package/dist/{dashboard-utilities/src/App.d.ts → App.d.ts} +0 -0
  272. /package/dist/{dashboard-utilities/src/App.js → App.js} +0 -0
  273. /package/dist/{dashboard-utilities/src/components → components}/BackOfficeFiltersMenu/BackOfficeFiltersMenu.d.ts +0 -0
  274. /package/dist/{dashboard-utilities/src/components → components}/BackOfficeFiltersMenu/BackOfficeFiltersMenu.js +0 -0
  275. /package/dist/{dashboard-utilities/src/components → components}/BackOfficeFiltersMenu/index.d.ts +0 -0
  276. /package/dist/{dashboard-utilities/src/components → components}/BackOfficeFiltersMenu/index.js +0 -0
  277. /package/dist/{dashboard-utilities/src/components → components}/BackOfficeFiltersMenu/utils.d.ts +0 -0
  278. /package/dist/{dashboard-utilities/src/components → components}/BackOfficeFiltersMenu/utils.js +0 -0
  279. /package/dist/{dashboard-utilities/src/components → components}/CheckboxFilter/Checkbox/Checkbox.d.ts +0 -0
  280. /package/dist/{dashboard-utilities/src/components → components}/CheckboxFilter/Checkbox/Checkbox.js +0 -0
  281. /package/dist/{dashboard-utilities/src/components → components}/CheckboxFilter/CheckboxFilter.d.ts +0 -0
  282. /package/dist/{dashboard-utilities/src/components → components}/CheckboxFilter/CheckboxFilter.js +0 -0
  283. /package/dist/{dashboard-utilities/src/components → components}/DragAndDrop/DndContextWrapper.d.ts +0 -0
  284. /package/dist/{dashboard-utilities/src/components → components}/DragAndDrop/DndContextWrapper.js +0 -0
  285. /package/dist/{dashboard-utilities/src/components → components}/DragAndDrop/Droppable.d.ts +0 -0
  286. /package/dist/{dashboard-utilities/src/components → components}/DragAndDrop/Droppable.js +0 -0
  287. /package/dist/{dashboard-utilities/src/components → components}/DragAndDrop/SortableItem.d.ts +0 -0
  288. /package/dist/{dashboard-utilities/src/components → components}/DragAndDrop/SortableItem.js +0 -0
  289. /package/dist/{dashboard-utilities/src/components → components}/FacetItem/FacetItem.d.ts +0 -0
  290. /package/dist/{dashboard-utilities/src/components → components}/FacetItem/FacetItem.js +0 -0
  291. /package/dist/{dashboard-utilities/src/components → components}/FastSimonApi/FastSimonApi.d.ts +0 -0
  292. /package/dist/{dashboard-utilities/src/components → components}/FastSimonApi/FastSimonApi.js +0 -0
  293. /package/dist/{dashboard-utilities/src/components → components}/FastSimonApi/context.d.ts +0 -0
  294. /package/dist/{dashboard-utilities/src/components → components}/FastSimonApi/context.js +0 -0
  295. /package/dist/{dashboard-utilities/src/components → components}/FastSimonApi/index.d.ts +0 -0
  296. /package/dist/{dashboard-utilities/src/components → components}/FastSimonApi/index.js +0 -0
  297. /package/dist/{dashboard-utilities/src/components → components}/FastSimonApi/reducer.d.ts +0 -0
  298. /package/dist/{dashboard-utilities/src/components → components}/FastSimonApi/reducer.js +0 -0
  299. /package/dist/{dashboard-utilities/src/components → components}/FromToFilter/From/From.d.ts +0 -0
  300. /package/dist/{dashboard-utilities/src/components → components}/FromToFilter/From/From.js +0 -0
  301. /package/dist/{dashboard-utilities/src/components → components}/FromToFilter/FromToFilter.d.ts +0 -0
  302. /package/dist/{dashboard-utilities/src/components → components}/FromToFilter/FromToFilter.js +0 -0
  303. /package/dist/{dashboard-utilities/src/components → components}/FromToFilter/To/To.d.ts +0 -0
  304. /package/dist/{dashboard-utilities/src/components → components}/FromToFilter/To/To.js +0 -0
  305. /package/dist/{dashboard-utilities/src/components → components}/FromToFilter/utils.d.ts +0 -0
  306. /package/dist/{dashboard-utilities/src/components → components}/FromToFilter/utils.js +0 -0
  307. /package/dist/{dashboard-utilities/src/components → components}/InStoreFiltersMenu/InStoreFiltersMenu.d.ts +0 -0
  308. /package/dist/{dashboard-utilities/src/components → components}/InStoreFiltersMenu/InStoreFiltersMenu.js +0 -0
  309. /package/dist/{dashboard-utilities/src/components → components}/InStoreFiltersMenu/index.d.ts +0 -0
  310. /package/dist/{dashboard-utilities/src/components → components}/InStoreFiltersMenu/index.js +0 -0
  311. /package/dist/{dashboard-utilities/src/components → components}/Input/Input.d.ts +0 -0
  312. /package/dist/{dashboard-utilities/src/components → components}/Input/Input.js +0 -0
  313. /package/dist/{dashboard-utilities/src/components → components}/Input/index.d.ts +0 -0
  314. /package/dist/{dashboard-utilities/src/components → components}/Input/index.js +0 -0
  315. /package/dist/{dashboard-utilities/src/components → components}/LastReceivedDateFilter/LastReceivedDate.d.ts +0 -0
  316. /package/dist/{dashboard-utilities/src/components → components}/LastReceivedDateFilter/LastReceivedDate.js +0 -0
  317. /package/dist/{dashboard-utilities/src/components → components}/LastReceivedDateFilter/utils.d.ts +0 -0
  318. /package/dist/{dashboard-utilities/src/components → components}/LastReceivedDateFilter/utils.js +0 -0
  319. /package/dist/{dashboard-utilities/src/components → components}/RadioFilter/Radio/Radio.d.ts +0 -0
  320. /package/dist/{dashboard-utilities/src/components → components}/RadioFilter/Radio/Radio.js +0 -0
  321. /package/dist/{dashboard-utilities/src/components → components}/RadioFilter/RadioFilter.d.ts +0 -0
  322. /package/dist/{dashboard-utilities/src/components → components}/RadioFilter/RadioFilter.js +0 -0
  323. /package/dist/{dashboard-utilities/src/components → components}/RadioFilter/utils.d.ts +0 -0
  324. /package/dist/{dashboard-utilities/src/components → components}/RadioFilter/utils.js +0 -0
  325. /package/dist/{dashboard-utilities/src/components → components}/ReactDatePicker/ReactDatePicker.d.ts +0 -0
  326. /package/dist/{dashboard-utilities/src/components → components}/ReactDatePicker/ReactDatePicker.js +0 -0
  327. /package/dist/{dashboard-utilities/src/components → components}/ReactDatePicker/index.d.ts +0 -0
  328. /package/dist/{dashboard-utilities/src/components → components}/ReactDatePicker/index.js +0 -0
  329. /package/dist/{dashboard-utilities/src/components → components}/RenderIfVisible/RenderIfVisible.d.ts +0 -0
  330. /package/dist/{dashboard-utilities/src/components → components}/RenderIfVisible/RenderIfVisible.js +0 -0
  331. /package/dist/{dashboard-utilities/src/components → components}/RenderIfVisible/index.d.ts +0 -0
  332. /package/dist/{dashboard-utilities/src/components → components}/RenderIfVisible/index.js +0 -0
  333. /package/dist/{dashboard-utilities/src/components → components}/SingleFilter/SingleFilter.d.ts +0 -0
  334. /package/dist/{dashboard-utilities/src/components → components}/SingleFilter/SingleFilter.js +0 -0
  335. /package/dist/{dashboard-utilities/src/components → components}/SingleFilter/utils.d.ts +0 -0
  336. /package/dist/{dashboard-utilities/src/components → components}/SingleFilter/utils.js +0 -0
  337. /package/dist/{dashboard-utilities/src/components → components}/SliderFilter/SliderFilter.d.ts +0 -0
  338. /package/dist/{dashboard-utilities/src/components → components}/SliderFilter/SliderFilter.js +0 -0
  339. /package/dist/{dashboard-utilities/src/components → components}/SliderFilter/index.d.ts +0 -0
  340. /package/dist/{dashboard-utilities/src/components → components}/SliderFilter/index.js +0 -0
  341. /package/dist/{dashboard-utilities/src/components → components}/Tooltip/Tooltip.d.ts +0 -0
  342. /package/dist/{dashboard-utilities/src/components → components}/Tooltip/Tooltip.js +0 -0
  343. /package/dist/{dashboard-utilities/src/components → components}/common.d.ts +0 -0
  344. /package/dist/{dashboard-utilities/src/components → components}/common.js +0 -0
  345. /package/dist/{dashboard-utilities/src/components → components}/productGrid/ProductGrid.d.ts +0 -0
  346. /package/dist/{dashboard-utilities/src/components → components}/productGrid/ProductGrid.js +0 -0
  347. /package/dist/{dashboard-utilities/src/components → components}/productGrid/index.d.ts +0 -0
  348. /package/dist/{dashboard-utilities/src/components → components}/productGrid/index.js +0 -0
  349. /package/dist/{dashboard-utilities/src/icons → icons}/BackOfficeFiltersIcon.d.ts +0 -0
  350. /package/dist/{dashboard-utilities/src/icons → icons}/BackOfficeFiltersIcon.js +0 -0
  351. /package/dist/{dashboard-utilities/src/icons → icons}/BannersIcon.d.ts +0 -0
  352. /package/dist/{dashboard-utilities/src/icons → icons}/BannersIcon.js +0 -0
  353. /package/dist/{dashboard-utilities/src/icons → icons}/GeneralIcon.d.ts +0 -0
  354. /package/dist/{dashboard-utilities/src/icons → icons}/GeneralIcon.js +0 -0
  355. /package/dist/{dashboard-utilities/src/icons → icons}/HelpIcon.d.ts +0 -0
  356. /package/dist/{dashboard-utilities/src/icons → icons}/HelpIcon.js +0 -0
  357. /package/dist/{dashboard-utilities/src/icons → icons}/InStoreFiltersIcon.d.ts +0 -0
  358. /package/dist/{dashboard-utilities/src/icons → icons}/InStoreFiltersIcon.js +0 -0
  359. /package/dist/{dashboard-utilities/src/icons → icons}/PromoteIcon.d.ts +0 -0
  360. /package/dist/{dashboard-utilities/src/icons → icons}/PromoteIcon.js +0 -0
  361. /package/dist/{dashboard-utilities/src/icons → icons}/RemoveIcon.d.ts +0 -0
  362. /package/dist/{dashboard-utilities/src/icons → icons}/RemoveIcon.js +0 -0
  363. /package/dist/{dashboard-utilities/src/icons → icons}/RestoreIcon.d.ts +0 -0
  364. /package/dist/{dashboard-utilities/src/icons → icons}/RestoreIcon.js +0 -0
  365. /package/dist/{dashboard-utilities/src/main.d.ts → main.d.ts} +0 -0
  366. /package/dist/{dashboard-utilities/src/main.js → main.js} +0 -0
  367. /package/dist/{dashboard-utilities/src/services → services}/API.d.ts +0 -0
  368. /package/dist/{dashboard-utilities/src/services → services}/API.js +0 -0
  369. /package/dist/{dashboard-utilities/src/services → services}/landingPage.d.ts +0 -0
  370. /package/dist/{dashboard-utilities/src/services → services}/landingPage.js +0 -0
  371. /package/dist/{dashboard-utilities/src/services → services}/products.d.ts +0 -0
  372. /package/dist/{dashboard-utilities/src/services → services}/products.js +0 -0
  373. /package/dist/{dashboard-utilities/src/services → services}/search.d.ts +0 -0
  374. /package/dist/{dashboard-utilities/src/services → services}/smartCollections.d.ts +0 -0
  375. /package/dist/{dashboard-utilities/src/utils → utils}/customTagsFilters.d.ts +0 -0
  376. /package/dist/{dashboard-utilities/src/utils → utils}/customTagsFilters.js +0 -0
  377. /package/dist/{dashboard-utilities/src/utils → utils}/useDragToSelect.d.ts +0 -0
  378. /package/dist/{dashboard-utilities/src/utils → utils}/useDragToSelect.js +0 -0
@@ -1,83 +0,0 @@
1
- import { readable, writable } from 'svelte/store';
2
- import { getPlatform } from "@fast-simon/add-to-cart";
3
- import { TabType } from "../@types/Tab";
4
- import { GridViewType } from "../@types/gridView";
5
- /* Store Identifiers */
6
- export const uuid = writable("");
7
- export const storeID = writable(0);
8
- export const cdnCacheKey = writable(Date.now());
9
- export const platform = writable("Shopify");
10
- export const isSuspended = writable(false);
11
- export const takeOverCategories = writable(true);
12
- export const siteEndpoint = writable("");
13
- /* App Global State */
14
- export const products = writable({});
15
- export const narrow = writable({});
16
- export const page = writable(1);
17
- export const sortBy = writable("relevency");
18
- export const numberOfPages = writable(0);
19
- export const device = writable('desktop');
20
- export const query = writable();
21
- export const categoryID = writable();
22
- export const categoryURL = writable();
23
- export const landingPage = writable();
24
- export const landingPageTitle = writable();
25
- export const pageBanner = writable();
26
- export const pageBannerMobile = writable();
27
- export const currentTab = writable(TabType.Products);
28
- export const hideFilters = writable(false);
29
- export const firstLoad = writable(true);
30
- export const forceRecursiveLoad = writable(false);
31
- export const searchWithinResultsQuery = writable("");
32
- export const categoryName = writable("");
33
- export const bigcommerceCurrenciesRates = writable();
34
- export const currentSiteCurrency = writable();
35
- export const currentBigCommerceCurrencyRate = writable();
36
- export const imageSize = writable();
37
- export const collectionPersonalizationLimit = writable();
38
- export const bigcommerceGroupID = writable();
39
- export const shopifySubCatCollection = writable();
40
- export const spaCallbackTriggered = writable(0);
41
- export const evCache = writable([]);
42
- export const prevDiff = writable(-1);
43
- export const isZoomedIn = writable();
44
- export const nextCacheProducts = writable({}); // for image preload
45
- export const nextCacheProductsIDS = writable([]); // for image preload
46
- /* Editor Settings */
47
- export const siteSetup = writable(undefined);
48
- export const currentEditorSettings = writable(undefined);
49
- export const gridViewMode = writable(GridViewType.grid);
50
- /* App utils */
51
- export const categoryTree = writable();
52
- export const firstLevelCategories = writable();
53
- export const ispOptions = writable();
54
- export const hasSubCategories = writable(false);
55
- export const shopifyMarketPrices = writable();
56
- export const shopifyMarketPricesLoading = writable(false);
57
- /* Store readable */
58
- export const sitePlatform = readable(getPlatform(), function start(set) {
59
- platform.subscribe(name => {
60
- const platformObj = getPlatform(name);
61
- set(platformObj);
62
- });
63
- });
64
- /* reporting */
65
- export const Reporting = writable();
66
- /* preview */
67
- export const isPreview = writable(false);
68
- export const previewCurrentElementName = writable('');
69
- /* userLocation */
70
- export const userLocation = writable('');
71
- /* segments */
72
- export const segments = writable('');
73
- export const productImageHeight = writable();
74
- export const productImageWidth = writable();
75
- export const isMerchandisingRulesPreview = writable(false);
76
- export const merchandisingRulesPreviewProps = writable({});
77
- export const merchandisingRulesPreviewDisabledFlags = writable(undefined);
78
- export const merchandisingRulesPreviewURL = writable('');
79
- export const isMerchandisingStrategiesPreview = writable(false);
80
- export const merchandisingStrategiesPreviewURL = writable(undefined);
81
- export const currentCategoryFilterType = writable(undefined);
82
- export const articlesCount = writable(0);
83
- //# sourceMappingURL=store.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../../serving/src/store/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC;AAOhD,OAAO,EAAC,WAAW,EAAmB,MAAM,yBAAyB,CAAC;AAKtE,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AACtC,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAMhD,uBAAuB;AACvB,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;AACzC,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAS,CAAC,CAAC,CAAC;AAC3C,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAS,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAW,SAAS,CAAC,CAAC;AACtD,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;AACpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAU,IAA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AG,QAAQ,CAEjD,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,sCAAsC,GAAG,QAAQ,CAEzD,SAAS,CAAC,CAAC;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAAG,QAAQ,CAAqB,EAAE,CAAC,CAAC;AAE7E,MAAM,CAAC,MAAM,gCAAgC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,iCAAiC,GAAG,QAAQ,CAAoC,SAAS,CAAC,CAAC;AAExG,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAAuC,SAAS,CAAC,CAAC;AAEnG,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAS,CAAC,CAAC,CAAC","sourcesContent":["import {readable, writable} from 'svelte/store';\r\nimport type {Narrow} from \"../@types/narrow\"\r\nimport type {Platform} from \"../@types/platform\";\r\nimport type {Products} from \"../@types/product\";\r\nimport type {SortBy} from \"../@types/sortBy\";\r\nimport type {SiteSetup} from \"../services/siteSettings\";\r\nimport type {Device} from \"../@types/device\";\r\nimport {getPlatform, PlatformProvider} from \"@fast-simon/add-to-cart\";\r\nimport type {Tree} from \"../utils/tree\";\r\nimport type {Category} from \"../@types/categories\";\r\nimport type {ProductGridEditorSettings} from \"../@types/editor\";\r\nimport type {ReportingObject} from \"@fast-simon/fast-simon-reporting\";\r\nimport {TabType} from \"../@types/Tab\";\r\nimport {GridViewType} from \"../@types/gridView\";\r\nimport {IspOptions} from \"../@types/ispOptions\";\r\nimport {BigcommerceCurrency} from \"../@types/bigcommerceCurrency\";\r\nimport {BigcommerceCustomerGroup} from \"../@types/bigcommerceCustomer\";\r\nimport {CategoryFilterTypeOption} from \"../@types/editor\";\r\n\r\n/* Store Identifiers */\r\nexport const uuid = writable<string>(\"\");\r\nexport const storeID = writable<number>(0);\r\nexport const cdnCacheKey = writable<number>(Date.now());\r\nexport const platform = writable<Platform>(\"Shopify\");\r\nexport const isSuspended = writable<boolean>(false);\r\nexport const takeOverCategories = writable<boolean>(true);\r\nexport const siteEndpoint = writable<string>(\"\");\r\n\r\n/* App Global State */\r\nexport const products = writable<Record<number, Products>>({});\r\nexport const narrow = writable<Narrow>({});\r\nexport const page = writable<number>(1);\r\nexport const sortBy = writable<SortBy>(\"relevency\");\r\nexport const numberOfPages = writable<number>(0);\r\nexport const device = writable<Device>('desktop');\r\nexport const query = writable<string>();\r\nexport const categoryID = writable<string>();\r\nexport const categoryURL = writable<string>();\r\nexport const landingPage = writable<string>();\r\nexport const landingPageTitle = writable<string>();\r\nexport const pageBanner = writable<string>();\r\nexport const pageBannerMobile = writable<string>();\r\nexport const currentTab = writable<TabType>(TabType.Products);\r\nexport const hideFilters = writable<boolean>(false);\r\nexport const firstLoad = writable<boolean>(true);\r\nexport const forceRecursiveLoad = writable<boolean>(false);\r\nexport const searchWithinResultsQuery = writable<string>(\"\");\r\nexport const categoryName = writable<string>(\"\");\r\nexport const bigcommerceCurrenciesRates = writable<BigcommerceCurrency[]>();\r\nexport const currentSiteCurrency = writable<string>();\r\nexport const currentBigCommerceCurrencyRate = writable<BigcommerceCurrency>();\r\nexport const imageSize = writable<number>();\r\nexport const collectionPersonalizationLimit = writable<number>();\r\nexport const bigcommerceGroupID = writable<BigcommerceCustomerGroup>();\r\nexport const shopifySubCatCollection = writable<string>();\r\n\r\nexport const spaCallbackTriggered = writable<number>(0);\r\nexport const evCache = writable<PointerEvent[]>([]);\r\nexport const prevDiff = writable<number>(-1);\r\nexport const isZoomedIn = writable<boolean>();\r\n\r\nexport const nextCacheProducts = writable<Products>({}); // for image preload\r\nexport const nextCacheProductsIDS = writable<string[]>([]); // for image preload\r\n\r\n/* Editor Settings */\r\nexport const siteSetup = writable<SiteSetup | undefined>(undefined);\r\nexport const currentEditorSettings = writable<ProductGridEditorSettings | undefined>(undefined);\r\nexport const gridViewMode = writable<GridViewType>(GridViewType.grid);\r\n\r\n/* App utils */\r\nexport const categoryTree = writable<Tree<Category>>();\r\nexport const firstLevelCategories = writable<Category[]>();\r\nexport const ispOptions = writable<IspOptions>();\r\nexport const hasSubCategories = writable<boolean>(false);\r\n\r\nexport const shopifyMarketPrices = writable<Record<string, {price: string, currency: string}>>();\r\nexport const shopifyMarketPricesLoading = writable(false);\r\n\r\n/* Store readable */\r\nexport const sitePlatform = readable<PlatformProvider>(getPlatform(), function start(set) {\r\n platform.subscribe(name => {\r\n const platformObj = getPlatform(name);\r\n set(platformObj);\r\n });\r\n});\r\n\r\n/* reporting */\r\nexport const Reporting = writable<ReportingObject>();\r\n\r\n/* preview */\r\nexport const isPreview = writable<boolean>(false);\r\nexport const previewCurrentElementName = writable<string>('');\r\n\r\n/* userLocation */\r\nexport const userLocation = writable<string>('');\r\n\r\n/* segments */\r\nexport const segments = writable<string | undefined>('');\r\n\r\nexport const productImageHeight = writable<number>();\r\nexport const productImageWidth = writable<number>();\r\n\r\nexport const isMerchandisingRulesPreview = writable<boolean>(false);\r\nexport const merchandisingRulesPreviewProps = writable<{\r\n [key: string]: string | number | object | undefined | boolean;\r\n }>({});\r\nexport const merchandisingRulesPreviewDisabledFlags = writable<{\r\n [key: string]: string | number | object | undefined | boolean;\r\n }>(undefined);\r\nexport const merchandisingRulesPreviewURL = writable<string | undefined>('');\r\n\r\nexport const isMerchandisingStrategiesPreview = writable<boolean>(false);\r\n\r\nexport const merchandisingStrategiesPreviewURL = writable<(requestSuffix: string) => string>(undefined);\r\n\r\nexport const currentCategoryFilterType = writable<CategoryFilterTypeOption | undefined>(undefined);\r\n\r\nexport const articlesCount = writable<number>(0);\r\n\r\n\r\n\r\n"]}
@@ -1,5 +0,0 @@
1
- export declare const isDevelopment: boolean;
2
- export declare const isProduction: boolean;
3
- export declare const SITE_SETUP_ENDPOINT: string;
4
- export declare const DISPLAY_FACETS_COUNTERS_PRODUCTS_THRESHOLD = 10000;
5
- export declare const videoExtensions: string[];
@@ -1,6 +0,0 @@
1
- export const isDevelopment = import.meta.env.MODE === "development";
2
- export const isProduction = import.meta.env.MODE === "production";
3
- export const SITE_SETUP_ENDPOINT = import.meta.env.VITE_BASE_SITE_ENDPOINT;
4
- export const DISPLAY_FACETS_COUNTERS_PRODUCTS_THRESHOLD = 10000;
5
- export const videoExtensions = ['mp4', 'webm', 'ogg', 'avi', 'wmv', 'mov', 'flv', 'swf', 'mkv', '3gp', 'm4v', 'm4p', 'mpg', 'mpeg', 'm2v', 'mpg', 'mp2', 'mpeg', 'mpe', 'mpv', 'mpg', 'mpeg', 'm2v', 'mp4', 'm4p', 'm4v', 'avi', 'wmv', 'mov', 'qt', 'flv', 'swf', 'avchd'];
6
- //# sourceMappingURL=consts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../../serving/src/utils/consts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,aAAa,CAAA;AACnE,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,YAAY,CAAA;AACjE,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,uBAAiC,CAAC;AACrF,MAAM,CAAC,MAAM,0CAA0C,GAAG,KAAK,CAAC;AAChE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC","sourcesContent":["export const isDevelopment = import.meta.env.MODE === \"development\"\r\nexport const isProduction = import.meta.env.MODE === \"production\"\r\nexport const SITE_SETUP_ENDPOINT = import.meta.env.VITE_BASE_SITE_ENDPOINT as string;\r\nexport const DISPLAY_FACETS_COUNTERS_PRODUCTS_THRESHOLD = 10000;\r\nexport const videoExtensions = ['mp4', 'webm', 'ogg', 'avi', 'wmv', 'mov', 'flv', 'swf', 'mkv', '3gp', 'm4v', 'm4p', 'mpg', 'mpeg', 'm2v', 'mpg', 'mp2', 'mpeg', 'mpe', 'mpv', 'mpg', 'mpeg', 'm2v', 'mp4', 'm4p', 'm4v', 'avi', 'wmv', 'mov', 'qt', 'flv', 'swf', 'avchd'];"]}
@@ -1,13 +0,0 @@
1
- export declare function _debugFullTextSearch(version: string): void;
2
- export declare function getDebugFullTextSearch(): string | null;
3
- export declare function _debugSERPVariation(variation_id: string, st?: string): void;
4
- export declare function _debugSERP(version: string, cache: boolean, logs: boolean): void;
5
- export declare function getDebugState(): {
6
- version: string;
7
- caching: boolean;
8
- endpoint: string;
9
- logs: boolean;
10
- };
11
- export declare function getDebugVariationID(): string | undefined;
12
- export declare function getDebugSPA(): string | null;
13
- export declare function handleDebugging(): void;
@@ -1,71 +0,0 @@
1
- import showShopifyPreviewBar from "./showShopifyPreviewBar";
2
- const DEBUG_VERSION_LS = "fast-debug-version";
3
- const CACHING_VERSION_LS = "fast-server-caching";
4
- const LOGS_VERSION_LS = "fast-server-debug";
5
- const DEBUG_VARIATION_LS = 'fast-debug-variation';
6
- const DEBUG_ST_LS = 'isp_token_1';
7
- const DEBUG_SPA = 'fast-debug-spa';
8
- const VARIATION_LS = 'fast-variation';
9
- const FULL_TEXT_VERSION_LS = 'fast-full-text-version';
10
- export function _debugFullTextSearch(version) {
11
- setLocalStorageItem(FULL_TEXT_VERSION_LS, version);
12
- }
13
- export function getDebugFullTextSearch() {
14
- const version = localStorage.getItem(FULL_TEXT_VERSION_LS);
15
- if (version) {
16
- return `https://${version}---search-v3joil6oqa-uc.a.run.app/search`;
17
- }
18
- return null;
19
- }
20
- export function _debugSERPVariation(variation_id, st) {
21
- setLocalStorageItem(DEBUG_ST_LS, st);
22
- setLocalStorageItem(DEBUG_VARIATION_LS, variation_id);
23
- if (!variation_id) {
24
- localStorage.removeItem(VARIATION_LS);
25
- }
26
- }
27
- export function _debugSERP(version, cache, logs) {
28
- setLocalStorageItem(DEBUG_VERSION_LS, version);
29
- setLocalStorageItem(CACHING_VERSION_LS, cache ? "1" : "");
30
- setLocalStorageItem(LOGS_VERSION_LS, logs ? "1" : "");
31
- }
32
- export function getDebugState() {
33
- const version = localStorage.getItem(DEBUG_VERSION_LS);
34
- return {
35
- version: version !== null && version !== void 0 ? version : "",
36
- caching: !(CACHING_VERSION_LS in localStorage),
37
- endpoint: version ? getDebugEndpoint(version) : "",
38
- logs: !(LOGS_VERSION_LS in localStorage)
39
- };
40
- }
41
- function setLocalStorageItem(key, data) {
42
- if (data) {
43
- localStorage.setItem(key, data);
44
- }
45
- else {
46
- localStorage.removeItem(key);
47
- }
48
- }
49
- function getDebugEndpoint(version) {
50
- return `https://${version}---internal-v3joil6oqa-uc.a.run.app`;
51
- }
52
- export function getDebugVariationID() {
53
- return localStorage.getItem(DEBUG_VARIATION_LS) || undefined;
54
- }
55
- export function getDebugSPA() {
56
- return localStorage.getItem(DEBUG_SPA);
57
- }
58
- function _debugSerpSPA(enable) {
59
- if (enable) {
60
- console.log('Debug SPA active');
61
- }
62
- setLocalStorageItem(DEBUG_SPA, enable ? "1" : undefined);
63
- }
64
- export function handleDebugging() {
65
- window._debugSERP = _debugSERP;
66
- window._debugSERPVariation = _debugSERPVariation;
67
- window._showShopifyPreviewBar = showShopifyPreviewBar;
68
- window._debugSerpSPA = _debugSerpSPA;
69
- window._debugFullTextSearch = _debugFullTextSearch;
70
- }
71
- //# sourceMappingURL=debug.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug.js","sourceRoot":"","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mB,GAAG,mBAAmB,CAAC;IACzD,MAAc,CAAC,sBAAsB,GAAG,qBAAqB,CAAC;IAC9D,MAAc,CAAC,aAAa,GAAG,aAAa,CAAC;IAC7C,MAAc,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AAChE,CAAC","sourcesContent":["import showShopifyPreviewBar from \"./showShopifyPreviewBar\";\r\n\r\nconst DEBUG_VERSION_LS = \"fast-debug-version\"\r\nconst CACHING_VERSION_LS = \"fast-server-caching\"\r\nconst LOGS_VERSION_LS = \"fast-server-debug\"\r\nconst DEBUG_VARIATION_LS = 'fast-debug-variation'\r\nconst DEBUG_ST_LS = 'isp_token_1';\r\nconst DEBUG_SPA = 'fast-debug-spa';\r\nconst VARIATION_LS = 'fast-variation';\r\nconst FULL_TEXT_VERSION_LS = 'fast-full-text-version';\r\n\r\nexport function _debugFullTextSearch(version: string) {\r\n setLocalStorageItem(FULL_TEXT_VERSION_LS, version);\r\n}\r\n\r\nexport function getDebugFullTextSearch() {\r\n const version = localStorage.getItem(FULL_TEXT_VERSION_LS);\r\n if(version) {\r\n return `https://${version}---search-v3joil6oqa-uc.a.run.app/search`\r\n }\r\n return null;\r\n}\r\n\r\nexport function _debugSERPVariation(variation_id: string, st?: string) {\r\n setLocalStorageItem(DEBUG_ST_LS, st);\r\n setLocalStorageItem(DEBUG_VARIATION_LS, variation_id);\r\n if(!variation_id) {\r\n localStorage.removeItem(VARIATION_LS);\r\n }\r\n}\r\n\r\nexport function _debugSERP(version: string, cache: boolean, logs: boolean) {\r\n setLocalStorageItem(DEBUG_VERSION_LS, version);\r\n setLocalStorageItem(CACHING_VERSION_LS, cache ? \"1\" : \"\");\r\n setLocalStorageItem(LOGS_VERSION_LS, logs ? \"1\" : \"\");\r\n}\r\n\r\nexport function getDebugState() {\r\n const version = localStorage.getItem(DEBUG_VERSION_LS);\r\n\r\n return {\r\n version: version ?? \"\",\r\n caching: !(CACHING_VERSION_LS in localStorage), // default=true\r\n endpoint: version ? getDebugEndpoint(version) : \"\",\r\n logs: !(LOGS_VERSION_LS in localStorage)\r\n }\r\n}\r\n\r\nfunction setLocalStorageItem(key: string, data: string | undefined) {\r\n if (data) {\r\n localStorage.setItem(key, data)\r\n } else {\r\n localStorage.removeItem(key);\r\n }\r\n}\r\n\r\nfunction getDebugEndpoint(version: string) {\r\n return `https://${version}---internal-v3joil6oqa-uc.a.run.app`;\r\n}\r\n\r\nexport function getDebugVariationID() {\r\n return localStorage.getItem(DEBUG_VARIATION_LS) || undefined;\r\n}\r\n\r\nexport function getDebugSPA() {\r\n return localStorage.getItem(DEBUG_SPA);\r\n}\r\n\r\nfunction _debugSerpSPA(enable: boolean) {\r\n if(enable) {\r\n console.log('Debug SPA active');\r\n }\r\n setLocalStorageItem(DEBUG_SPA, enable ? \"1\" : undefined);\r\n}\r\n\r\nexport function handleDebugging() {\r\n (window as any)._debugSERP = _debugSERP;\r\n (window as any)._debugSERPVariation = _debugSERPVariation;\r\n (window as any)._showShopifyPreviewBar = showShopifyPreviewBar;\r\n (window as any)._debugSerpSPA = _debugSerpSPA;\r\n (window as any)._debugFullTextSearch = _debugFullTextSearch;\r\n}\r\n\r\n"]}
@@ -1 +0,0 @@
1
- export default function getUserVariation(): any;
@@ -1,12 +0,0 @@
1
- const DEBUG_VARIATION_LS = 'fast-debug-variation';
2
- const VARIATION_LS = 'fast-variation';
3
- export default function getUserVariation() {
4
- var _a, _b;
5
- const variationId = localStorage.getItem(DEBUG_VARIATION_LS) || localStorage.getItem(VARIATION_LS) || ((_a = window === null || window === void 0 ? void 0 : window.FS_VARIATION) === null || _a === void 0 ? void 0 : _a.variation_id) || undefined;
6
- if (((_b = variationId === null || variationId === void 0 ? void 0 : variationId.split(':')) === null || _b === void 0 ? void 0 : _b.length) > 1) {
7
- const splittedVariation = variationId === null || variationId === void 0 ? void 0 : variationId.split(':');
8
- return splittedVariation[(splittedVariation === null || splittedVariation === void 0 ? void 0 : splittedVariation.length) - 1];
9
- }
10
- return variationId;
11
- }
12
- //# sourceMappingURL=getUserVariation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getUserVariation.js","sourceRoot":"","sources":["../../../../../serving/src/utils/getUserVariation.ts"],"names":[],"mappings":"AAAA,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AAClD,MAAM,YAAY,GAAG,gBAAgB,CAAC;AACtC,MAAM,CAAC,OAAO,UAAU,gBAAgB;;IACpC,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,YAAY,CAAC,OAAO,CAAC,YAAY,CAAC,KAAI,MAAC,MAAc,aAAd,MAAM,uBAAN,MAAM,CAAU,YAAY,0CAAE,YAAY,CAAA,IAAI,SAAS,CAAC;IAC/J,IAAG,CAAA,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,CAAC,GAAG,CAAC,0CAAE,MAAM,IAAC,CAAC,EAAE;QAClC,MAAM,iBAAiB,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,CAAC,GAAG,CAAC,CAAC;QAClD,OAAO,iBAAiB,CAAC,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,MAAM,IAAG,CAAC,CAAC,CAAC;KAC3D;IACD,OAAO,WAAW,CAAC;AACvB,CAAC","sourcesContent":["const DEBUG_VARIATION_LS = 'fast-debug-variation';\r\nconst VARIATION_LS = 'fast-variation';\r\nexport default function getUserVariation() {\r\n const variationId = localStorage.getItem(DEBUG_VARIATION_LS) || localStorage.getItem(VARIATION_LS) || (window as any)?.FS_VARIATION?.variation_id || undefined;\r\n if(variationId?.split(':')?.length>1) {\r\n const splittedVariation = variationId?.split(':');\r\n return splittedVariation[splittedVariation?.length - 1];\r\n }\r\n return variationId;\r\n}"]}
@@ -1 +0,0 @@
1
- export default function showShopifyPreviewBar(): void;
@@ -1,7 +0,0 @@
1
- export default function showShopifyPreviewBar() {
2
- const frame = document.querySelector('iframe#preview-bar-iframe');
3
- if (frame) {
4
- frame.style.display = "block";
5
- }
6
- }
7
- //# sourceMappingURL=showShopifyPreviewBar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"showShopifyPreviewBar.js","sourceRoot":"","sources":["../../../../../serving/src/utils/showShopifyPreviewBar.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,qBAAqB;IACzC,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,2BAA2B,CAAsB,CAAC;IACvF,IAAI,KAAK,EAAE;QACP,KAAK,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;KACjC;AACL,CAAC","sourcesContent":["export default function showShopifyPreviewBar() {\r\n const frame = document.querySelector('iframe#preview-bar-iframe') as HTMLIFrameElement;\r\n if (frame) {\r\n frame.style.display = \"block\";\r\n }\r\n}"]}
@@ -1,36 +0,0 @@
1
- export interface TreeChildren<T> {
2
- [key: string]: Leaf<T>;
3
- }
4
- export type Leaves<T> = Leaf<T>[];
5
- export declare class Leaf<T> {
6
- private readonly data;
7
- private readonly children;
8
- id: string;
9
- private parent;
10
- constructor(id: string, data: T);
11
- addChild(leaf: Leaf<T>): void;
12
- setParent(leaf: Leaf<T>): void;
13
- getChildren(): Leaf<T>[];
14
- getParent(): Leaf<T> | null;
15
- getData(): T;
16
- }
17
- export interface Node<T> {
18
- data: T;
19
- id: string;
20
- parentID: string;
21
- }
22
- export declare class Tree<T> {
23
- private readonly hashed;
24
- private readonly children;
25
- constructor(nodes: Node<T>[]);
26
- private build;
27
- get(categories?: {
28
- count: number;
29
- displayName: string;
30
- name: string;
31
- }[]): Leaf<T>[];
32
- find(id: string): Leaf<T> | null;
33
- getAll(): T[];
34
- hash(key: keyof T): void;
35
- static toNodes<K>(items: K[], idKey: keyof K, parenIDKey: keyof K): Node<K>[];
36
- }
@@ -1,118 +0,0 @@
1
- export class Leaf {
2
- constructor(id, data) {
3
- this.data = data;
4
- this.id = id;
5
- this.parent = null;
6
- this.children = [];
7
- }
8
- addChild(leaf) {
9
- this.children.push(leaf);
10
- }
11
- setParent(leaf) {
12
- this.parent = leaf;
13
- }
14
- getChildren() {
15
- return this.children;
16
- }
17
- getParent() {
18
- return this.parent;
19
- }
20
- getData() {
21
- return this.data;
22
- }
23
- }
24
- export class Tree {
25
- constructor(nodes) {
26
- this.hashed = {};
27
- this.children = [];
28
- this.build(nodes);
29
- }
30
- build(nodes) {
31
- const lost = {};
32
- if (Array.isArray(nodes)) {
33
- for (const node of nodes) {
34
- const leaf = new Leaf(node.id, node.data);
35
- // hash every leaf for easy o(n) search
36
- this.hashed[node.id] = leaf;
37
- const parent = this.hashed[node.parentID];
38
- if (parent) {
39
- // if parent found add leaf to parent as a child and add parent as child parent
40
- parent.addChild(leaf);
41
- leaf.setParent(parent);
42
- }
43
- else {
44
- // if parent not found then he might be found later, save it in 'lost'
45
- if (lost[node.parentID]) {
46
- lost[node.parentID].push(leaf);
47
- }
48
- else {
49
- lost[node.parentID] = [leaf];
50
- }
51
- }
52
- // check if any of the lost are children if the current leaf
53
- if (lost[node.id] && Array.isArray(lost[node.id])) {
54
- // children found add children as leaf children and every child should get leaf as parent
55
- for (const child of lost[node.id]) {
56
- child.setParent(leaf);
57
- leaf.addChild(child);
58
- }
59
- delete lost[node.id];
60
- }
61
- }
62
- }
63
- // every lost leaf should be a 'head' so let's add them to this tree children
64
- for (const nodeID in lost) {
65
- if (Array.isArray(lost[nodeID])) {
66
- for (const leaf of lost[nodeID]) {
67
- this.children.push(leaf);
68
- }
69
- }
70
- }
71
- }
72
- get(categories) {
73
- var _a, _b;
74
- if (categories === null || categories === void 0 ? void 0 : categories.length) {
75
- return (_b = (_a = this.children) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.call(_a, c => categories === null || categories === void 0 ? void 0 : categories.find(category => { var _a, _b; return ((_a = category === null || category === void 0 ? void 0 : category.name) === null || _a === void 0 ? void 0 : _a.toString()) === ((_b = c === null || c === void 0 ? void 0 : c.id) === null || _b === void 0 ? void 0 : _b.toString()); }));
76
- }
77
- return this.children;
78
- }
79
- find(id) {
80
- var _a;
81
- return (_a = this.hashed[id]) !== null && _a !== void 0 ? _a : null;
82
- }
83
- getAll() {
84
- try {
85
- const ids = new Set();
86
- const data = [];
87
- if (this.hashed) {
88
- for (const value of Object.values(this.hashed)) {
89
- if (!(ids.has(value.id))) {
90
- ids.add(value.id);
91
- if (value.getData) {
92
- data.push(value.getData());
93
- }
94
- }
95
- }
96
- }
97
- return data;
98
- }
99
- catch (e) {
100
- console.log('tree.getAll error with iterable array, ', e);
101
- return [];
102
- }
103
- }
104
- hash(key) {
105
- for (const id in this.hashed) {
106
- const data = this.hashed[id].getData();
107
- this.hashed[String(data[key])] = this.hashed[id];
108
- }
109
- }
110
- static toNodes(items, idKey, parenIDKey) {
111
- return items.map(item => ({
112
- data: item,
113
- id: String(item[idKey]),
114
- parentID: String(item[parenIDKey])
115
- }));
116
- }
117
- }
118
- //# sourceMappingURL=tree.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tree.js","sourceRoot":"","sources":["../../../../../serving/src/utils/tree.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,IAAI;IAMb,YAAY,EAAU,EAAE,IAAO;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;QACZ,IAAI,CAAC,MAAM,GAAG,IAAI,CAAA;QAClB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAA;IACtB,CAAC;IAED,QAAQ,CAAC,IAAa;QAClB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,SAAS,CAAC,IAAa;QACnB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACvB,CAAC;IAED,WAAW;QACP,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED,SAAS;QACL,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,OAAO;QACH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\r\n [key: string]: Leaf<T>\r\n}\r\n\r\nexport type Leaves<T> = Leaf<T>[]\r\n\r\nexport class Leaf<T> {\r\n private readonly data: T\r\n private readonly children: Leaf<T>[]\r\n id: string;\r\n private parent: null | Leaf<T>;\r\n\r\n constructor(id: string, data: T) {\r\n this.data = data;\r\n this.id = id\r\n this.parent = null\r\n this.children = []\r\n }\r\n\r\n addChild(leaf: Leaf<T>) {\r\n this.children.push(leaf);\r\n }\r\n\r\n setParent(leaf: Leaf<T>) {\r\n this.parent = leaf;\r\n }\r\n\r\n getChildren() {\r\n return this.children;\r\n }\r\n\r\n getParent() {\r\n return this.parent;\r\n }\r\n\r\n getData() {\r\n return this.data;\r\n }\r\n}\r\n\r\nexport interface Node<T> {\r\n data: T\r\n id: string;\r\n parentID: string\r\n}\r\n\r\nexport class Tree<T> {\r\n private readonly hashed: TreeChildren<T>\r\n private readonly children: Leaf<T>[]\r\n\r\n constructor(nodes: Node<T>[]) {\r\n this.hashed = {};\r\n this.children = [];\r\n this.build(nodes);\r\n }\r\n\r\n private build(nodes: Node<T>[]) {\r\n const lost:Record<string, Leaf<T>[]> = {};\r\n if(Array.isArray(nodes)) {\r\n for (const node of nodes) {\r\n const leaf = new Leaf(node.id, node.data);\r\n // hash every leaf for easy o(n) search\r\n this.hashed[node.id] = leaf;\r\n\r\n const parent = this.hashed[node.parentID];\r\n if (parent) {\r\n // if parent found add leaf to parent as a child and add parent as child parent\r\n parent.addChild(leaf);\r\n leaf.setParent(parent);\r\n } else {\r\n // if parent not found then he might be found later, save it in 'lost'\r\n if (lost[node.parentID]) {\r\n lost[node.parentID].push(leaf);\r\n } else {\r\n lost[node.parentID] = [leaf];\r\n }\r\n }\r\n\r\n // check if any of the lost are children if the current leaf\r\n if (lost[node.id] && Array.isArray(lost[node.id])) {\r\n // children found add children as leaf children and every child should get leaf as parent\r\n for (const child of lost[node.id]) {\r\n child.setParent(leaf);\r\n leaf.addChild(child);\r\n }\r\n delete lost[node.id]\r\n }\r\n }\r\n }\r\n // every lost leaf should be a 'head' so let's add them to this tree children\r\n for (const nodeID in lost) {\r\n if(Array.isArray(lost[nodeID])) {\r\n for (const leaf of lost[nodeID]) {\r\n this.children.push(leaf);\r\n }\r\n }\r\n }\r\n }\r\n\r\n get(categories?: {count: number, displayName: string, name: string}[]) {\r\n if(categories?.length) {\r\n return this.children?.filter?.(c => categories?.find(category => category?.name?.toString() === c?.id?.toString()));\r\n }\r\n return this.children;\r\n }\r\n\r\n find(id: string): Leaf<T> | null {\r\n return this.hashed[id] ?? null;\r\n }\r\n\r\n getAll(): T[] {\r\n try{\r\n const ids = new Set<string>();\r\n const data: T[] = [];\r\n if(this.hashed) {\r\n for (const value of Object.values(this.hashed)) {\r\n if (!(ids.has(value.id))) {\r\n ids.add(value.id);\r\n if(value.getData) {\r\n data.push(value.getData());\r\n }\r\n }\r\n }\r\n }\r\n return data;\r\n }\r\n catch (e) {\r\n console.log('tree.getAll error with iterable array, ', e);\r\n return [];\r\n }\r\n }\r\n\r\n hash(key: keyof T) {\r\n for (const id in this.hashed) {\r\n const data = this.hashed[id].getData();\r\n\r\n this.hashed[String(data[key])] = this.hashed[id];\r\n }\r\n }\r\n\r\n static toNodes<K>(items: K[], idKey: keyof K, parenIDKey: keyof K): Node<K>[] {\r\n return items.map(item => ({\r\n data: item,\r\n id: String(item[idKey]),\r\n parentID: String(item[parenIDKey])\r\n }))\r\n }\r\n}"]}
File without changes