contentoh-components-library 21.4.73 → 21.4.75

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 (333) hide show
  1. package/dist/assets/images/Icons/addv2.svg +8 -0
  2. package/dist/assets/images/Icons/checkv2.svg +8 -0
  3. package/dist/assets/images/Icons/options.svg +3 -0
  4. package/dist/assets/images/Icons/trash.svg +8 -0
  5. package/dist/assets/images/Icons/undo.svg +8 -0
  6. package/dist/assets/images/Icons/warningv2.svg +3 -0
  7. package/dist/assets/images/checkBox/checkrosa.svg +3 -0
  8. package/dist/assets/images/checkBox/checkverde.svg +3 -0
  9. package/dist/components/atoms/Avatar/index.js +3 -2
  10. package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +1 -1
  11. package/dist/components/atoms/ButtonV2/index.js +1 -1
  12. package/dist/components/atoms/ButtonV2/styles.js +1 -1
  13. package/dist/components/atoms/CheckBox/CheckBox.stories.js +8 -1
  14. package/dist/components/atoms/CheckBox/index.js +8 -0
  15. package/dist/components/atoms/CheckBox/styles.js +8 -1
  16. package/dist/components/atoms/GeneralButton/styles.js +6 -2
  17. package/dist/components/atoms/InputFormatter/styles.js +3 -3
  18. package/dist/components/atoms/SliderToolTip/styles.js +1 -1
  19. package/dist/components/molecules/BoxAttribute/index.js +3 -3
  20. package/dist/components/molecules/BoxAttribute/styles.js +1 -1
  21. package/dist/components/molecules/BoxButtons/index.js +0 -1
  22. package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
  23. package/dist/components/molecules/GroupSelect/GroupSelect.stories.js +53 -0
  24. package/dist/components/molecules/GroupSelect/SelectItem.js +142 -0
  25. package/dist/components/molecules/GroupSelect/index.js +254 -0
  26. package/dist/components/molecules/GroupSelect/styles.js +25 -0
  27. package/dist/components/molecules/HeaderTop/index.js +68 -11
  28. package/dist/components/molecules/Phase/index.js +205 -43
  29. package/dist/components/molecules/Phase/styles.js +1 -1
  30. package/dist/components/molecules/SignInLogin/index.js +36 -28
  31. package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +1 -2
  32. package/dist/components/organisms/Chat/Chat.stories.js +27 -8
  33. package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
  34. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  35. package/dist/components/organisms/Chat/ContentChat/index.js +350 -197
  36. package/dist/components/organisms/Chat/Footer/index.js +48 -39
  37. package/dist/components/organisms/Chat/index.js +49 -4
  38. package/dist/components/organisms/Chat/styles.js +1 -1
  39. package/dist/components/organisms/DashboardMetric/index.js +12 -6
  40. package/dist/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +26 -1
  41. package/dist/components/organisms/DragAndDropPhases/index.js +262 -32
  42. package/dist/components/organisms/DragAndDropPhases/styles.js +8 -4
  43. package/dist/components/organisms/EditGroup/EditGroup.stories.js +39 -0
  44. package/dist/components/organisms/EditGroup/index.js +242 -0
  45. package/dist/components/organisms/EditGroup/styles.js +36 -0
  46. package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
  47. package/dist/components/organisms/InputGroup/index.js +1 -10
  48. package/dist/components/organisms/Modal/Modal.stories.js +2 -1
  49. package/dist/components/organisms/Modal/index.js +6 -1
  50. package/dist/components/organisms/Modal/styles.js +1 -1
  51. package/dist/components/organisms/VersionSelector/index.js +2 -4
  52. package/dist/components/pages/Dashboard/Dashboard.stories.js +33 -36
  53. package/dist/components/pages/Dashboard/index.js +37 -9
  54. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +34 -38
  55. package/dist/components/pages/ProviderProductEdition/index.js +190 -196
  56. package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
  57. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +52 -53
  58. package/dist/components/pages/RetailerProductEdition/index.js +318 -300
  59. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  60. package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
  61. package/dist/global-files/data.js +22 -29
  62. package/dist/global-files/variables.js +7 -1
  63. package/dist/index.js +201 -58
  64. package/package.json +2 -1
  65. package/src/assets/images/Icons/addv2.svg +8 -0
  66. package/src/assets/images/Icons/checkv2.svg +8 -0
  67. package/src/assets/images/Icons/infoNR.svg +8 -0
  68. package/src/assets/images/Icons/options.svg +3 -0
  69. package/src/assets/images/Icons/trash.svg +8 -0
  70. package/src/assets/images/Icons/undo.svg +8 -0
  71. package/src/assets/images/Icons/warningv2.svg +3 -0
  72. package/src/assets/images/checkBox/checkrosa.svg +3 -0
  73. package/src/assets/images/checkBox/checkverde.svg +3 -0
  74. package/src/assets/images/flagsv2/highPriority.svg +3 -0
  75. package/src/assets/images/flagsv2/lowPriority.svg +3 -0
  76. package/src/assets/images/flagsv2/mediumPriority.svg +3 -0
  77. package/src/assets/images/flagsv2/noPriority.svg +3 -0
  78. package/src/assets/images/generalButton/closeIconWhite.svg +4 -0
  79. package/src/assets/images/generalButton/closeIconv2.svg +4 -0
  80. package/src/components/atoms/Avatar/index.js +8 -2
  81. package/src/components/atoms/ButtonV2/ButtonV2.stories.js +1 -0
  82. package/src/components/atoms/ButtonV2/index.js +1 -0
  83. package/src/components/atoms/ButtonV2/styles.js +16 -0
  84. package/src/components/atoms/CharsMissing/Wysiwyg.stories.js +12 -0
  85. package/src/components/atoms/CharsMissing/index.js +60 -0
  86. package/src/components/atoms/CharsMissing/styles.js +44 -0
  87. package/src/components/atoms/CheckBox/CheckBox.stories.js +5 -0
  88. package/src/components/atoms/CheckBox/index.js +5 -1
  89. package/src/components/atoms/CheckBox/styles.js +9 -3
  90. package/src/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +16 -0
  91. package/src/components/atoms/FeatureTagv2/index.js +10 -0
  92. package/src/components/atoms/FeatureTagv2/styles.js +56 -0
  93. package/src/components/atoms/GeneralButton/styles.js +46 -0
  94. package/src/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +33 -0
  95. package/src/components/atoms/GeneralInputv2/index.js +155 -0
  96. package/src/components/atoms/GeneralInputv2/styles.js +67 -0
  97. package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +76 -0
  98. package/src/components/atoms/ImageCarousel/index.js +103 -0
  99. package/src/components/atoms/ImageCarousel/styles.js +79 -0
  100. package/src/components/atoms/InputFormatter/styles.js +9 -4
  101. package/src/components/atoms/InputFormatterv2/Wysiwyg.stories.js +12 -0
  102. package/src/components/atoms/InputFormatterv2/index.js +148 -0
  103. package/src/components/atoms/InputFormatterv2/styles.js +39 -0
  104. package/src/components/atoms/InputImages/InputImages.stories.js +19 -0
  105. package/src/components/atoms/InputImages/index.js +25 -0
  106. package/src/components/atoms/InputImages/styles.js +17 -0
  107. package/src/components/atoms/NumberMandatory/NumberMandatory.stories.js +19 -0
  108. package/src/components/atoms/NumberMandatory/index.js +16 -0
  109. package/src/components/atoms/NumberMandatory/styles.js +11 -0
  110. package/src/components/atoms/PercentTag/PercentTag.stories.js +7 -0
  111. package/src/components/atoms/PercentTag/index.js +9 -0
  112. package/src/components/atoms/PercentTag/styles.js +69 -0
  113. package/src/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +20 -0
  114. package/src/components/atoms/PriorityFlagv2/index.js +20 -0
  115. package/src/components/atoms/PriorityFlagv2/styles.js +6 -0
  116. package/src/components/atoms/ProductImagev2/ProductImagev2.stories.js +28 -0
  117. package/src/components/atoms/ProductImagev2/index.js +16 -0
  118. package/src/components/atoms/ProductImagev2/styles.js +62 -0
  119. package/src/components/atoms/Progress/Progress.stories.js +25 -0
  120. package/src/components/atoms/Progress/index.js +74 -0
  121. package/src/components/atoms/Progress/styles.js +98 -0
  122. package/src/components/atoms/RatingStars/RatingStars.stories.js +10 -0
  123. package/src/components/atoms/RatingStars/index.js +31 -0
  124. package/src/components/atoms/RatingStars/styles.js +28 -0
  125. package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +36 -0
  126. package/src/components/atoms/RetailerCatalog/index.js +49 -0
  127. package/src/components/atoms/RetailerCatalog/styles.js +30 -0
  128. package/src/components/atoms/RetailerOption/RetailerOption.stories.js +15 -0
  129. package/src/components/atoms/RetailerOption/index.js +53 -0
  130. package/src/components/atoms/RetailerOption/styles.js +41 -0
  131. package/src/components/atoms/RetailersList/RetailersList.stories.js +33 -0
  132. package/src/components/atoms/RetailersList/index.js +20 -0
  133. package/src/components/atoms/RetailersList/styles.js +19 -0
  134. package/src/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +53 -0
  135. package/src/components/atoms/ScreenHeaderv2/index.js +134 -0
  136. package/src/components/atoms/ScreenHeaderv2/styles.js +103 -0
  137. package/src/components/atoms/Selectv2/VersionSelect.js +27 -0
  138. package/src/components/atoms/Selectv2/index.js +35 -0
  139. package/src/components/atoms/Selectv2/style.js +93 -0
  140. package/src/components/atoms/SliderToolTip/styles.js +1 -1
  141. package/src/components/atoms/TabSection/index.js +1 -1
  142. package/src/components/atoms/TabSection/styles.js +1 -1
  143. package/src/components/atoms/TabSectionv2/TabSection.stories.js +25 -0
  144. package/src/components/atoms/TabSectionv2/index.js +9 -0
  145. package/src/components/atoms/TabSectionv2/styles.js +20 -0
  146. package/src/components/atoms/TooltipLight/Tooltip.stories.js +20 -0
  147. package/src/components/atoms/TooltipLight/index.js +46 -0
  148. package/src/components/atoms/TooltipLight/styles.js +65 -0
  149. package/src/components/atoms/UserCatalog/UserCatalog.stories.js +67 -0
  150. package/src/components/atoms/UserCatalog/index.js +100 -0
  151. package/src/components/atoms/UserCatalog/styles.js +24 -0
  152. package/src/components/atoms/UserOption/UserOption.stories.js +25 -0
  153. package/src/components/atoms/UserOption/index.js +95 -0
  154. package/src/components/atoms/UserOption/styles.js +61 -0
  155. package/src/components/atoms/UserSelector/UserSelector.stories.js +25 -0
  156. package/src/components/atoms/UserSelector/index.js +86 -0
  157. package/src/components/atoms/UserSelector/styles.js +55 -0
  158. package/src/components/atoms/WordsMissing/Wysiwyg.stories.js +12 -0
  159. package/src/components/atoms/WordsMissing/index.js +60 -0
  160. package/src/components/atoms/WordsMissing/styles.js +10 -0
  161. package/src/components/molecules/AsignationInfo/AsignationInfo.stories.js +17 -0
  162. package/src/components/molecules/AsignationInfo/index.js +108 -0
  163. package/src/components/molecules/AsignationInfo/styles.js +86 -0
  164. package/src/components/molecules/BoxAttribute/index.js +32 -25
  165. package/src/components/molecules/BoxAttribute/styles.js +1 -1
  166. package/src/components/molecules/BoxButtons/index.js +23 -22
  167. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  168. package/src/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +12 -0
  169. package/src/components/molecules/EditionActiveImagev2/index.js +15 -0
  170. package/src/components/molecules/EditionActiveImagev2/styles.js +7 -0
  171. package/src/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +20 -0
  172. package/src/components/molecules/FeaturesBarv2/index.js +32 -0
  173. package/src/components/molecules/FeaturesBarv2/styles.js +17 -0
  174. package/src/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +30 -0
  175. package/src/components/molecules/GalleryElementv2/index.js +142 -0
  176. package/src/components/molecules/GalleryElementv2/styles.js +119 -0
  177. package/src/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +10 -0
  178. package/src/components/molecules/GalleryHeaderv2/index.js +25 -0
  179. package/src/components/molecules/GalleryHeaderv2/styles.js +47 -0
  180. package/src/components/molecules/GridItem/GridItem.stories.js +126 -0
  181. package/src/components/molecules/GridItem/index.js +105 -0
  182. package/src/components/molecules/GridItem/styles.js +104 -0
  183. package/src/components/molecules/GroupSelect/GroupSelect.stories.js +35 -0
  184. package/src/components/molecules/GroupSelect/SelectItem.js +105 -0
  185. package/src/components/molecules/GroupSelect/index.js +190 -0
  186. package/src/components/molecules/GroupSelect/styles.js +124 -0
  187. package/src/components/molecules/HeaderItem/ColumnItem.js +9 -0
  188. package/src/components/molecules/HeaderItem/HeaderItem.stories.js +24 -0
  189. package/src/components/molecules/HeaderItem/index.js +26 -0
  190. package/src/components/molecules/HeaderItem/styles.js +27 -0
  191. package/src/components/molecules/HeaderTop/index.js +52 -6
  192. package/src/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +10 -0
  193. package/src/components/molecules/HeaderTopv2/index.js +100 -0
  194. package/src/components/molecules/HeaderTopv2/styles.js +33 -0
  195. package/src/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +46 -0
  196. package/src/components/molecules/ImageSelectorv2/index.js +22 -0
  197. package/src/components/molecules/ImageSelectorv2/styles.js +15 -0
  198. package/src/components/molecules/Phase/Phase.stories.js +37 -0
  199. package/src/components/molecules/Phase/index.js +185 -0
  200. package/src/components/molecules/Phase/styles.js +91 -0
  201. package/src/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +37 -0
  202. package/src/components/molecules/ProductNameHeaderv2/index.js +12 -0
  203. package/src/components/molecules/ProductNameHeaderv2/styles.js +10 -0
  204. package/src/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +37 -0
  205. package/src/components/molecules/ProductSkuStatus/index.js +26 -0
  206. package/src/components/molecules/ProductSkuStatus/styles.js +7 -0
  207. package/src/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +35 -0
  208. package/src/components/molecules/RetailerSelectorv2/index.js +80 -0
  209. package/src/components/molecules/RetailerSelectorv2/styles.js +21 -0
  210. package/src/components/molecules/RowItem/ColumnItem.js +9 -0
  211. package/src/components/molecules/RowItem/RowItem.stories.js +5660 -0
  212. package/src/components/molecules/RowItem/index.js +45 -0
  213. package/src/components/molecules/RowItem/styles.js +40 -0
  214. package/src/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +90 -0
  215. package/src/components/molecules/ServiceDataValidator/index.js +49 -0
  216. package/src/components/molecules/ServiceDataValidator/styles.js +36 -0
  217. package/src/components/molecules/SignInLogin/index.js +11 -11
  218. package/src/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +17 -0
  219. package/src/components/molecules/StatusRetailer/index.js +55 -0
  220. package/src/components/molecules/StatusRetailer/styles.js +85 -0
  221. package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +1 -2
  222. package/src/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +19 -0
  223. package/src/components/molecules/TabsMenuv2/index.js +112 -0
  224. package/src/components/molecules/TabsMenuv2/styles.js +19 -0
  225. package/src/components/molecules/TagAndInput/index.js +6 -5
  226. package/src/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +24 -0
  227. package/src/components/molecules/TagAndInputv2/index.js +86 -0
  228. package/src/components/molecules/TagAndInputv2/styles.js +35 -0
  229. package/src/components/molecules/Validation/Validation.stories.js +12 -0
  230. package/src/components/molecules/Validation/index.js +77 -0
  231. package/src/components/molecules/Validation/styles.js +19 -0
  232. package/src/components/molecules/VersionItemv2/VersionItemv2.stories.js +14 -0
  233. package/src/components/molecules/VersionItemv2/index.js +59 -0
  234. package/src/components/molecules/VersionItemv2/styles.js +47 -0
  235. package/src/components/organisms/BarButtons/BarButtons.stories.js +13 -0
  236. package/src/components/organisms/BarButtons/index.js +150 -0
  237. package/src/components/organisms/BarButtons/styles.js +54 -0
  238. package/src/components/organisms/Chat/Chat.stories.js +27 -7
  239. package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
  240. package/src/components/organisms/Chat/ContainerItems/styles.js +14 -2
  241. package/src/components/organisms/Chat/ContentChat/index.js +88 -12
  242. package/src/components/organisms/Chat/Footer/index.js +11 -0
  243. package/src/components/organisms/Chat/index.js +46 -4
  244. package/src/components/organisms/Chat/styles.js +4 -0
  245. package/src/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +65 -0
  246. package/src/components/organisms/Chatv2/ChatLists/Rotoplas.jpeg +0 -0
  247. package/src/components/organisms/Chatv2/ChatLists/THD.png +0 -0
  248. package/src/components/organisms/Chatv2/ChatLists/index.js +141 -0
  249. package/src/components/organisms/Chatv2/ChatLists/styles.js +162 -0
  250. package/src/components/organisms/Chatv2/Chatv2.stories.js +184 -0
  251. package/src/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +142 -0
  252. package/src/components/organisms/Chatv2/ContainerItems/index.js +538 -0
  253. package/src/components/organisms/Chatv2/ContainerItems/styles.js +360 -0
  254. package/src/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +102 -0
  255. package/src/components/organisms/Chatv2/ContentChat/Rotoplas.jpeg +0 -0
  256. package/src/components/organisms/Chatv2/ContentChat/THD.png +0 -0
  257. package/src/components/organisms/Chatv2/ContentChat/index.js +1016 -0
  258. package/src/components/organisms/Chatv2/ContentChat/styles.js +44 -0
  259. package/src/components/organisms/Chatv2/Footer/Footer.stories.js +22 -0
  260. package/src/components/organisms/Chatv2/Footer/index.js +668 -0
  261. package/src/components/organisms/Chatv2/Footer/styles.js +290 -0
  262. package/src/components/organisms/Chatv2/Header/Header.stories.js +66 -0
  263. package/src/components/organisms/Chatv2/Header/index.js +93 -0
  264. package/src/components/organisms/Chatv2/Header/styles.js +49 -0
  265. package/src/components/organisms/Chatv2/index.js +281 -0
  266. package/src/components/organisms/Chatv2/styles.js +85 -0
  267. package/src/components/organisms/CompleteServices/CompleteServices.stories.js +91 -0
  268. package/src/components/organisms/CompleteServices/index.js +82 -0
  269. package/src/components/organisms/CompleteServices/styles.js +35 -0
  270. package/src/components/organisms/DashboardMetric/index.js +6 -3
  271. package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +40 -0
  272. package/src/components/organisms/DragAndDropPhases/index.js +236 -0
  273. package/src/components/organisms/DragAndDropPhases/styles.js +69 -0
  274. package/src/components/organisms/DragPrueba/DragPrueba.stories.js +12 -0
  275. package/src/components/organisms/DragPrueba/index.js +57 -0
  276. package/src/components/organisms/DragPrueba/styles.js +8 -0
  277. package/src/components/organisms/EditGroup/EditGroup.stories.js +18 -0
  278. package/src/components/organisms/EditGroup/index.js +168 -0
  279. package/src/components/organisms/EditGroup/styles.js +115 -0
  280. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  281. package/src/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +28 -0
  282. package/src/components/organisms/FullProductNamev2/index.js +101 -0
  283. package/src/components/organisms/FullProductNamev2/styles.js +49 -0
  284. package/src/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +22 -0
  285. package/src/components/organisms/FullTabsMenuv2/index.js +142 -0
  286. package/src/components/organisms/FullTabsMenuv2/styles.js +47 -0
  287. package/src/components/organisms/GridProducts/GridProducts.stories.js +5485 -0
  288. package/src/components/organisms/GridProducts/index.js +50 -0
  289. package/src/components/organisms/GridProducts/styles.js +14 -0
  290. package/src/components/organisms/GridProducts/utils.js +111 -0
  291. package/src/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +24 -0
  292. package/src/components/organisms/ImageDataTablev2/index.js +124 -0
  293. package/src/components/organisms/ImageDataTablev2/styles.js +18 -0
  294. package/src/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +38 -0
  295. package/src/components/organisms/ImagePreviewerv2/index.js +22 -0
  296. package/src/components/organisms/ImagePreviewerv2/styles.js +7 -0
  297. package/src/components/organisms/InputGroup/index.js +131 -119
  298. package/src/components/organisms/InputGroupv2/InputGroupv2.stories.js +31 -0
  299. package/src/components/organisms/InputGroupv2/index.js +296 -0
  300. package/src/components/organisms/InputGroupv2/styles.js +90 -0
  301. package/src/components/organisms/MandatoryBar/MandatoryBar.stories.js +18 -0
  302. package/src/components/organisms/MandatoryBar/index.js +31 -0
  303. package/src/components/organisms/MandatoryBar/styles.js +12 -0
  304. package/src/components/organisms/Modal/Modal.stories.js +2 -1
  305. package/src/components/organisms/Modal/index.js +8 -1
  306. package/src/components/organisms/Modal/styles.js +8 -1
  307. package/src/components/organisms/OrderDetail/utils/Table/utils.js +6 -16
  308. package/src/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +90 -0
  309. package/src/components/organisms/ProductImageModalv2/index.js +105 -0
  310. package/src/components/organisms/ProductImageModalv2/styles.js +71 -0
  311. package/src/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +18 -0
  312. package/src/components/organisms/RenameImagesBar/index.js +30 -0
  313. package/src/components/organisms/RenameImagesBar/styles.js +12 -0
  314. package/src/components/organisms/VersionSelector/index.js +1 -2
  315. package/src/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +15 -0
  316. package/src/components/organisms/VersionSelectorv2/index.js +105 -0
  317. package/src/components/organisms/VersionSelectorv2/styles.js +45 -0
  318. package/src/components/pages/Dashboard/Dashboard.stories.js +33 -38
  319. package/src/components/pages/Dashboard/index.js +36 -7
  320. package/src/components/pages/ProductEditionv2/ProductEditionv2.stories.js +213 -0
  321. package/src/components/pages/ProductEditionv2/index.js +1758 -0
  322. package/src/components/pages/ProductEditionv2/styles.js +154 -0
  323. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +110 -83
  324. package/src/components/pages/ProviderProductEdition/index.js +134 -152
  325. package/src/components/pages/ProviderProductEdition/styles.js +5 -1
  326. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +52 -52
  327. package/src/components/pages/RetailerProductEdition/index.js +120 -137
  328. package/src/components/pages/RetailerProductEdition/styles.js +4 -0
  329. package/src/components/pages/RetailerProductEdition/utils.js +37 -0
  330. package/src/global-files/data.js +14 -46
  331. package/src/global-files/variables.js +6 -0
  332. package/src/index.js +11 -0
  333. package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
@@ -39,6 +39,10 @@ import Slide1_4 from "../../../assets/images/sliderToolTip/slide4.svg";
39
39
  import Slide1_5 from "../../../assets/images/sliderToolTip/slide5.svg";
40
40
  import { VersionSelector } from "../../organisms/VersionSelector";
41
41
  import { useCloseModal } from "../../../global-files/customHooks";
42
+ import { createMessage, sendMessage } from "../RetailerProductEdition/utils";
43
+ import { Modal } from "../../organisms/Modal";
44
+ import { ButtonV2 } from "../../atoms/ButtonV2";
45
+ import { Box } from "../../organisms/Box";
42
46
 
43
47
  const reducerImages = (state, action) => {
44
48
  let { values, attrForImgs, inputsByRetailer } = state;
@@ -78,19 +82,26 @@ const reducerImages = (state, action) => {
78
82
  );
79
83
  return { ...state, values };
80
84
  case "orderImages": {
81
- let { inputsByRetailer, valuesInitial, inputsInitial, inputs } = state;
85
+ let {
86
+ inputsByRetailer = {},
87
+ valuesInitial,
88
+ inputsInitial,
89
+ inputs,
90
+ } = state;
82
91
  try {
83
92
  const orderedImages = [];
84
93
  const imageIdArray = [];
85
- if (action?.retailerId && !inputsByRetailer[action.retailerId])
94
+ if (action?.retailerId && !inputsByRetailer[action.retailerId]) {
86
95
  inputsByRetailer[action.retailerId] = [];
87
- action.retailerId &&
96
+ }
97
+ if (action.retailerId) {
88
98
  inputsByRetailer[action.retailerId]?.filter((input) => {
89
99
  imageIdArray.push(input.id_image);
90
100
  valuesInitial.forEach((value) => {
91
101
  if (value.image_id === input.id_image) orderedImages.push(value);
92
102
  });
93
103
  });
104
+ }
94
105
 
95
106
  inputs = inputsInitial?.filter((input) =>
96
107
  imageIdArray.includes(input.id)
@@ -98,7 +109,7 @@ const reducerImages = (state, action) => {
98
109
 
99
110
  values = orderedImages.length > 0 ? orderedImages : [];
100
111
  } catch (error) {
101
- console.log(error);
112
+ console.log(action.action, error);
102
113
  }
103
114
  return { ...state, values, inputs };
104
115
  }
@@ -215,6 +226,7 @@ export const ProviderProductEdition = ({
215
226
  const isRetailer = user?.is_retailer;
216
227
  const [loading, setLoading] = useState(true);
217
228
  const [validatedAll, setValidatedAll] = useState(false);
229
+ const [showRejectModal, setShowRejectModal] = useState(false);
218
230
 
219
231
  const [origin, setOrigin] = useState({
220
232
  "Ficha técnica": null,
@@ -344,28 +356,6 @@ export const ProviderProductEdition = ({
344
356
  (type) => {
345
357
  const formatter = new Intl.ListFormat("es", { type: "conjunction" });
346
358
  switch (type) {
347
- case "error":
348
- setGlobalModal({
349
- message: `${activeTab} rechazada`,
350
- detail: "Agrega tu comentarios para enviar el rechazo",
351
- img: errorModal,
352
- textArea: true,
353
- button1: {
354
- name: "Enviar",
355
- action: (e) => {
356
- const textArea = document.querySelector("#area");
357
- if (textArea.value) {
358
- textArea.style.border = "none";
359
- createComment(e, textArea.value);
360
- showGlobalModal("commentsSent");
361
- validatedAll ? validateAll("R") : sendEvaluation("R");
362
- } else {
363
- textArea.style.border = "2px solid red";
364
- }
365
- },
366
- },
367
- });
368
- break;
369
359
  case "generic":
370
360
  setGlobalModal(dataGenericModal);
371
361
  break;
@@ -502,7 +492,20 @@ export const ProviderProductEdition = ({
502
492
 
503
493
  setImages({ action: "init", init: services[2] });
504
494
  if (services[2]?.values?.length > 0) setActiveImage(0);
505
- getPercentage({ data: [product] }).then((res) => setPercentages(res[0]));
495
+ const data = [
496
+ {
497
+ id_article: product.id_article,
498
+ id_category: product.id_category,
499
+ version: product.version,
500
+ id_retailer_array: (
501
+ product.retailersAvailable ?? product.retailers
502
+ ).map(({ id }) => id),
503
+ },
504
+ ];
505
+ const headers = { Authorization: token };
506
+ getPercentage({ data, headers }).then((res) => {
507
+ setPercentages(res[0]);
508
+ });
506
509
  setLoading(false);
507
510
  };
508
511
 
@@ -526,7 +529,9 @@ export const ProviderProductEdition = ({
526
529
  );
527
530
  setServicesData(parsedResponse);
528
531
  }
529
- !activeRetailer.id && setActiveRetailer(active ? active : retailers[0]);
532
+ retailers &&
533
+ !activeRetailer.id &&
534
+ setActiveRetailer(active ? active : retailers[0]);
530
535
  };
531
536
 
532
537
  const isRevision = () => {
@@ -560,12 +565,14 @@ export const ProviderProductEdition = ({
560
565
  };
561
566
 
562
567
  const getCart = async () => {
563
- const res = await axios.get(process.env.REACT_APP_CART, {
568
+ const res = await axios.get(`${process.env.REACT_APP_CART}/general/`, {
564
569
  headers: {
565
570
  Authorization: token,
566
571
  },
567
572
  });
568
- const arr = JSON.parse(res.data.body).data.map((e) => e.article_id);
573
+ const arr = Object.values(JSON.parse(res.data.body).data)
574
+ ?.map((e) => e.article_id)
575
+ .filter(Boolean);
569
576
  setInCart(arr.some((e) => e.articleId === product.id_article));
570
577
  };
571
578
 
@@ -602,7 +609,7 @@ export const ProviderProductEdition = ({
602
609
  });
603
610
  }
604
611
  setProduct(productTemp);
605
- setActivePercentage(retailers[0]?.percentage);
612
+ retailers && setActivePercentage(retailers[0]?.percentage);
606
613
  }, [percentages]);
607
614
 
608
615
  const loadInputs = () => {
@@ -663,7 +670,7 @@ export const ProviderProductEdition = ({
663
670
  value: e?.id,
664
671
  name: e?.name,
665
672
  required: e?.required,
666
- active: images?.values.some((value) => value?.image_id === e?.id),
673
+ active: images?.values?.some((value) => value?.image_id === e?.id),
667
674
  }));
668
675
  setSocketType(imageInputs);
669
676
  }, [images]);
@@ -707,7 +714,7 @@ export const ProviderProductEdition = ({
707
714
  attributeId,
708
715
  value: valueOfAtribute,
709
716
  boxId,
710
- })
717
+ });
711
718
  });
712
719
  });
713
720
 
@@ -715,8 +722,8 @@ export const ProviderProductEdition = ({
715
722
  articleId: product?.id_article,
716
723
  articleData: updatedDatasheets,
717
724
  ...(parseBoxData.length > 0 && { boxData: parseBoxData }),
718
- };
719
-
725
+ };
726
+
720
727
  if (product?.orderId) dataObject["orderId"] = product?.orderId;
721
728
  try {
722
729
  const res = await axios.put(
@@ -735,8 +742,7 @@ export const ProviderProductEdition = ({
735
742
  }
736
743
  } catch (error) {
737
744
  console.log(error);
738
- }
739
- console.log(dataObject)
745
+ }
740
746
  };
741
747
 
742
748
  const updateImages = useCallback(async () => {
@@ -862,33 +868,21 @@ export const ProviderProductEdition = ({
862
868
  return "images";
863
869
  }
864
870
  };
871
+
865
872
 
866
- const createComment = async (e, body, tab) => {
867
- let concept = "";
868
- switch (activeTab) {
869
- case "Ficha técnica":
870
- concept = "datasheet";
871
- break;
872
- case "Imágenes":
873
- concept = "images";
874
- break;
875
-
876
- default:
877
- concept = "description";
878
- break;
879
- }
873
+ const createComment = async (messages = [], retailerId) => {
880
874
  const data = {
881
- articleId: product?.id_article,
882
- orderId: product?.orderId,
883
- message: body,
884
- concept: concept,
885
- version: version,
886
- };
887
- await axios.post(`${process.env.REACT_APP_COMMENTS_ENDPOINT}`, data, {
888
- headers: {
889
- Authorization: token,
875
+ paramsBody: {
876
+ id: product.article.id_article || productEdit.ArticleId,
877
+ version: version,
878
+ items: messages,
879
+ retailerId: retailerId,
880
+ status: product.status || productEdit.product.status,
890
881
  },
891
- });
882
+ paramsHeader: { Authorization: token },
883
+ };
884
+ setMessage("");
885
+ return sendMessage(data);
892
886
  };
893
887
 
894
888
  useEffect(() => {
@@ -1181,13 +1175,6 @@ export const ProviderProductEdition = ({
1181
1175
  }
1182
1176
  };
1183
1177
 
1184
-
1185
-
1186
-
1187
-
1188
-
1189
-
1190
-
1191
1178
  const evaluationToRetailer = async (result) => {
1192
1179
  const data = {
1193
1180
  articleId: product.id_article,
@@ -1224,8 +1211,6 @@ export const ProviderProductEdition = ({
1224
1211
 
1225
1212
  const enableActions = (versionStatus) => {
1226
1213
  try {
1227
- if (user.is_retailer) return false;
1228
-
1229
1214
  if (versionStatus) {
1230
1215
  return ["AP", "ACA", "RCA", null].includes(versionStatus);
1231
1216
  }
@@ -1269,7 +1254,6 @@ export const ProviderProductEdition = ({
1269
1254
  },
1270
1255
  ];
1271
1256
  const sendToEvaluation = (result) => {
1272
- console.log({ result });
1273
1257
  if (result === "A") {
1274
1258
  if (
1275
1259
  origin[activeTab] === "RequestWithoutContentoh" &&
@@ -1309,8 +1293,7 @@ export const ProviderProductEdition = ({
1309
1293
  return;
1310
1294
  } else if (user.is_retailer) {
1311
1295
  if (product.id_order || product.orderId) {
1312
- setValidatedAll(true);
1313
- showGlobalModal("error");
1296
+ sendEvaluation("R");
1314
1297
  } else {
1315
1298
  setDataGenericModal((prev) => ({
1316
1299
  ...prev,
@@ -1322,8 +1305,7 @@ export const ProviderProductEdition = ({
1322
1305
  showGlobalModal("generic");
1323
1306
  }
1324
1307
  } else {
1325
- setValidatedAll(true);
1326
- showGlobalModal("error");
1308
+ sendEvaluation("R");
1327
1309
  }
1328
1310
  }
1329
1311
  };
@@ -1333,6 +1315,7 @@ export const ProviderProductEdition = ({
1333
1315
  <HeaderTop
1334
1316
  setHeaderTop={setHeaderTop}
1335
1317
  withChat={location?.state?.withChat}
1318
+ chatType={location?.state?.chatType}
1336
1319
  productSelected={productSelected}
1337
1320
  token={token}
1338
1321
  activeRetailer={activeRetailer}
@@ -1411,7 +1394,7 @@ export const ProviderProductEdition = ({
1411
1394
  } else if (user.is_retailer) {
1412
1395
  if (product.id_order || product.orderId) {
1413
1396
  setValidatedAll(true);
1414
- showGlobalModal("error");
1397
+ setShowRejectModal(true);
1415
1398
  } else {
1416
1399
  setDataGenericModal((prev) => ({
1417
1400
  ...prev,
@@ -1423,12 +1406,14 @@ export const ProviderProductEdition = ({
1423
1406
  showGlobalModal("generic");
1424
1407
  }
1425
1408
  } else {
1409
+ setShowRejectModal(true);
1426
1410
  setValidatedAll(true);
1427
- showGlobalModal("error");
1428
1411
  }
1429
1412
  }}
1430
1413
  approve={() => sendToEvaluation("A")}
1431
- reject={() => sendToEvaluation("R")}
1414
+ reject={() => {
1415
+ setShowRejectModal(true);
1416
+ }}
1432
1417
  />
1433
1418
  <FullTabsMenu
1434
1419
  tabsSections={tabsSections}
@@ -1531,6 +1516,7 @@ export const ProviderProductEdition = ({
1531
1516
  setUpdatedDescriptions={setUpdatedDescriptions}
1532
1517
  articleId={product?.id_article}
1533
1518
  version={version}
1519
+ isShowbox={false}
1534
1520
  dinamicHeight={true}
1535
1521
  />
1536
1522
  ) : (
@@ -1557,87 +1543,41 @@ export const ProviderProductEdition = ({
1557
1543
  </>
1558
1544
  )}
1559
1545
  </div>
1560
- {isRevision() && getSectionStatus() ? (
1561
- <div className="commentary-box">
1562
- {!comment ? (
1563
- <div className="commentary">
1564
- <TagAndInput
1565
- label={"Caja de Comentario"}
1566
- inputType={"textarea"}
1567
- inputCols={80}
1568
- inputRows={4}
1569
- inputId={"commentary-box"}
1570
- index={0}
1571
- />
1572
- <div className="buttons-box">
1573
- <Button
1574
- buttonType={"general-transparent-button"}
1575
- label={"Enviar comentario"}
1576
- onClick={(e) =>
1577
- createComment(
1578
- e,
1579
- document.querySelector(
1580
- "#description-commentary-box-0 .ql-container .ql-editor > p"
1581
- ).innerHTML,
1582
- activeTab
1583
- )
1584
- }
1585
- />
1586
- </div>
1587
- </div>
1546
+ {!(isRevision() && getSectionStatus()) && !revision && (
1547
+ <div className="required-inputs-message">
1548
+ <div>
1549
+ <p>
1550
+ Los atributos son requeridos por las plataformas de las
1551
+ cadenas, es muy importante completar los campos requeridos ya
1552
+ que pueden rechazar el producto por falta de información.
1553
+ </p>
1554
+ </div>
1555
+ {inCart ? (
1556
+ <button type="button">
1557
+ <Link to="/checkout">
1558
+ <p>Articulo en carrito</p>
1559
+ <p>Ir a checkout</p>
1560
+ </Link>
1561
+ </button>
1588
1562
  ) : (
1589
- <div className="feedback-box">
1590
- <Commentary
1591
- comment={comment.message}
1592
- reviewed={crossComment}
1563
+ <>
1564
+ <SliderToolTip
1565
+ infoIcon={InfoIcon}
1566
+ slidefront={slidefront}
1567
+ iconSize={"big-image"}
1568
+ slidePosition={"top-slide"}
1593
1569
  />
1594
1570
  <Button
1595
- buttonType={"circular-button accept-button"}
1596
- onClick={async () => {
1597
- setCrossComment(true);
1598
- commentRevised();
1571
+ onClick={() => {
1572
+ setShowContentohRequestModal &&
1573
+ setShowContentohRequestModal(true);
1599
1574
  }}
1575
+ buttonType="general-default-button"
1576
+ label="Enviar a Content-oh!"
1600
1577
  />
1601
- </div>
1578
+ </>
1602
1579
  )}
1603
1580
  </div>
1604
- ) : (
1605
- !revision && (
1606
- <div className="required-inputs-message">
1607
- <div>
1608
- <p>
1609
- Los atributos son requeridos por las plataformas de las
1610
- cadenas, es muy importante completar los campos requeridos
1611
- ya que pueden rechazar el producto por falta de información.
1612
- </p>
1613
- </div>
1614
- {inCart ? (
1615
- <button type="button">
1616
- <Link to="/checkout">
1617
- <p>Articulo en carrito</p>
1618
- <p>Ir a checkout</p>
1619
- </Link>
1620
- </button>
1621
- ) : (
1622
- <>
1623
- <SliderToolTip
1624
- infoIcon={InfoIcon}
1625
- slidefront={slidefront}
1626
- iconSize={"big-image"}
1627
- slidePosition={"top-slide"}
1628
- />
1629
- <Button
1630
- onClick={() => {
1631
- setShowContentohRequestModal &&
1632
- setShowContentohRequestModal(true);
1633
- }}
1634
- buttonType="general-default-button"
1635
- label="Enviar a Content-oh!"
1636
- />
1637
- </>
1638
- )}
1639
- </div>
1640
- )
1641
1581
  )}
1642
1582
  </div>
1643
1583
  </div>
@@ -1680,6 +1620,48 @@ export const ProviderProductEdition = ({
1680
1620
  jwt={token}
1681
1621
  />
1682
1622
  )}
1623
+ {showRejectModal && (
1624
+ <Modal
1625
+ title={"Agregar mensaje de rechazo"}
1626
+ show={showRejectModal}
1627
+ customComponent={
1628
+ <TagAndInput
1629
+ inputType={"textarea"}
1630
+ inputId={"modal-message-box"}
1631
+ index={0}
1632
+ color={"white"}
1633
+ />
1634
+ }
1635
+ buttons={[
1636
+ <ButtonV2
1637
+ key={"btn-Cancelar"}
1638
+ type={"white"}
1639
+ label={"Cancelar"}
1640
+ size={12}
1641
+ onClick={() => {
1642
+ setShowRejectModal(false);
1643
+ }}
1644
+ />,
1645
+ <ButtonV2
1646
+ key={"btn-Aceptar"}
1647
+ type={"pink"}
1648
+ label={"Aceptar"}
1649
+ size={12}
1650
+ onClick={async () => {
1651
+ const body = document.querySelector(
1652
+ "#modal-message-box .ql-container .ql-editor > p"
1653
+ ).innerHTML;
1654
+ const messages = [
1655
+ { type: "message", value: body?.replace(/<.*?\/?>/gm, "") },
1656
+ ];
1657
+ await createComment(messages, activeRetailer.id);
1658
+ validatedAll ? validateAll("R") : sendToEvaluation("R");
1659
+ setShowRejectModal(false);
1660
+ }}
1661
+ />,
1662
+ ]}
1663
+ />
1664
+ )}
1683
1665
  </Container>
1684
1666
  );
1685
1667
  };
@@ -107,6 +107,10 @@ export const Container = styled.div`
107
107
  }
108
108
  }
109
109
  }
110
+ #modal-message-box {
111
+ width: 400px;
112
+ height: 100px;
113
+ }
110
114
  .container {
111
115
  width: 100%;
112
116
  height: 100%;
@@ -115,4 +119,4 @@ export const Container = styled.div`
115
119
  width: 100%;
116
120
  }
117
121
  }
118
- `;
122
+ `;
@@ -16,64 +16,64 @@ RetailerProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI0OTMyY2JhZC1lYzcyLTRjYWItODgyNS0wMzY2M2RkNmE2ODIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY5Mjc1MDY0NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY5Mjc1NDI0NywiaWF0IjoxNjkyNzUwNjQ3LCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.eqOY-gcS-W99WcEC632Ewckcg3WJzKoV9fIGcn1AkEE44_odGTcEk8fhVs-6_evIJkfShQOP0RFX0d2Dn31F-xFh5Lez6LvbT9F41_rAmMb3ELyRvdcz42V4eMw2IBH-FGrpGhSsJOHKV2T3WuUyZxPJu-C04ZAadfFSoNBBWnxX6SFk_eefcp9KghNmnELSSnWDh6DD1XDrWqEaLOVlQ5H7q4ARJqBo07KcXHIQo056anVud-inUMiX9KDTaorXdBCD0doWgv8NkYWSEpUS_Ctj-NG6vAled9g-6oLnC6DLR_ay6PRnAKGVNCv8bRZJL0GqF8ZnWk02svDHfUPJ0Q",
19
+ "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIxMGZiNTE4Mi1jMGI5LTQyZGUtYTAyZC1lOTJlZWI2NWFlN2QiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTcwMTkwMjA4NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTcwMTkwNTY4NywiaWF0IjoxNzAxOTAyMDg3LCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.JpoKZHuzPZG2ttaT7Oz3CAPR7xZU19txSDyjGHIwya2zV9uOHxauS0-orNRry8lfpZHQt_ISF2W-XSARUvCG1SqTXi41-o53DsWfZhqe9dQk6DGDnvFzXFsaEbaxAPjTfYc491sHCpOjf4W98quBuzDZCRtdCsr9u3A0AnX8Lh1Jquvn83nrHN2ZeefpLyKc-xGGp50Oy6EnJgSK4PcAAV631nwYV9DfVaLb3SIWDrJIIuBjFjBBCXBcnGJBieErlnF-4gumHzsro_QqF-s7aq_3EJChAhfslFvczNSyDc-LXJVkpDuZW3TaYKlHwhoFxz1aMuYRFQ8xy5Pz8FDNKQ",
20
20
  productSelected: {
21
- services: {
22
- datasheets: 1,
23
- descriptions: 1,
24
- images: 1,
25
- },
26
- orderId: 15275,
27
- status: "AC",
28
- datasheet_status: "AC",
21
+ orderId: 15190,
22
+ status: "RA",
23
+ datasheet_status: "NS",
29
24
  prio: "none",
30
25
  version: 3,
31
- description_status: "AC",
32
- images_status: "AC",
33
- statusByRetailer: {
34
- 34: {
35
- datasheet: "AC",
36
- description: "AC",
37
- images: "AC",
38
- },
26
+ description_status: "NS",
27
+ images_status: "RA",
28
+ brand: null,
29
+ retailerOrder: 0,
30
+ missing: {
31
+ datasheet: null,
32
+ descriptions: null,
33
+ images: null,
34
+ },
35
+ services: {
36
+ datasheets: 0,
37
+ descriptions: 0,
38
+ images: 1,
39
39
  },
40
40
  article: {
41
- id_article: 39485,
42
- id_category: "11",
43
- name: "Mix de nueces",
44
- upc: "7543453453",
45
- timestamp: "2023-07-14T21:02:54.000Z",
46
- id_user: 28,
47
- status: "NULL",
48
- active: 1,
49
- company_id: 1,
41
+ category:
42
+ "Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
50
43
  company_name: "GRUPO BRAHMA",
51
44
  country: "México",
52
- id_order: 15275,
53
- id_datasheet_especialist: 54,
54
- id_datasheet_facilitator: 52,
55
- id_description_especialist: 54,
56
- id_description_facilitator: 52,
45
+ id_category: "4004",
46
+ id_datasheet_especialist: null,
47
+ id_datasheet_facilitator: null,
48
+ id_description_especialist: null,
49
+ id_description_facilitator: null,
57
50
  id_images_especialist: 55,
58
51
  id_images_facilitator: 53,
52
+ id_order: 15190,
53
+ id_article: 39364,
59
54
  id_auditor: 37,
60
- id_recepcionist: null,
61
- category: "Abarrotes|Abarrotes Secos|Frutos Secos",
62
- missingAttributes: 0,
63
- missingDescriptions: 0,
64
- missingImages: 0,
55
+ name: "test 2 img ba",
56
+ timestamp: "2023-05-05T02:56:16.000Z",
57
+ upc: "4353242",
65
58
  },
66
59
  retailers: [
67
60
  {
68
- id: 34,
69
- name: "San Pablo",
61
+ id: 70,
62
+ name: "Bodega Aurrera",
70
63
  },
71
64
  ],
72
- country: "México",
73
- upc: "7543453453",
65
+ statusByRetailer: {
66
+ 70: {
67
+ images: "RA/AC",
68
+ },
69
+ },
74
70
  },
75
71
  location: {
76
- product: { articleId: 39290, versionId: 7 },
72
+ product: { articleId: 39364, versionId: 3 },
73
+ state: {
74
+ withChat: true,
75
+ chatType: "product_status",
76
+ },
77
77
  },
78
78
  user: {
79
79
  id_user: 37,
@@ -83,7 +83,7 @@ RetailerProductEditionDefault.args = {
83
83
  position: "Auditor",
84
84
  telephone: "",
85
85
  country: "México",
86
- id_company: 2,
86
+ id_company: 254,
87
87
  id_cognito: "9a213128-6482-4c16-a4b6-6e64f225b1bd",
88
88
  birth_Date: null,
89
89
  about_me: "",
@@ -97,16 +97,16 @@ RetailerProductEditionDefault.args = {
97
97
  email_notify: 1,
98
98
  is_user_tech: null,
99
99
  membership: {
100
- id: 2,
101
- start_date: "2021-11-05T02:35:12.000Z",
102
- end_date: "2022-11-05T02:34:49.000Z",
103
- planID: 1,
104
- plan: "prod_KtkvuFFLpOdP6e",
105
- name: "Plan Free",
106
- user_limit: "1",
107
- products_limit: "3",
108
- type: "PyMES",
100
+ id: 137,
101
+ start_date: "2023-10-04T15:46:14.000Z",
102
+ end_date: "2024-10-04T08:46:09.000Z",
103
+ planID: 8,
104
+ plan: "prod_KtlhECVSFG2iro",
105
+ name: "Plan Pro",
106
+ user_limit: "50",
107
+ products_limit: "5000",
108
+ type: "Enterprise",
109
109
  },
110
- src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1692750648813",
110
+ src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1701902088068",
111
111
  },
112
112
  };