contentoh-components-library 21.4.72 → 21.4.74

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 (281) hide show
  1. package/dist/components/atoms/Avatar/index.js +2 -3
  2. package/dist/components/atoms/CheckBox/styles.js +1 -1
  3. package/dist/components/atoms/GeneralButton/styles.js +2 -6
  4. package/dist/components/atoms/InputFormatter/styles.js +3 -3
  5. package/dist/components/atoms/SliderToolTip/styles.js +1 -1
  6. package/dist/components/molecules/BoxAttribute/index.js +3 -3
  7. package/dist/components/molecules/BoxAttribute/styles.js +1 -1
  8. package/dist/components/molecules/BoxButtons/index.js +1 -0
  9. package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
  10. package/dist/components/molecules/HeaderTop/index.js +11 -68
  11. package/dist/components/molecules/SignInLogin/index.js +28 -36
  12. package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
  13. package/dist/components/organisms/Chat/Chat.stories.js +8 -27
  14. package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
  15. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  16. package/dist/components/organisms/Chat/ContentChat/index.js +197 -350
  17. package/dist/components/organisms/Chat/Footer/index.js +39 -48
  18. package/dist/components/organisms/Chat/index.js +4 -49
  19. package/dist/components/organisms/Chat/styles.js +1 -1
  20. package/dist/components/organisms/DashboardMetric/index.js +6 -12
  21. package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
  22. package/dist/components/organisms/InputGroup/index.js +10 -1
  23. package/dist/components/organisms/Modal/styles.js +1 -1
  24. package/dist/components/organisms/VersionSelector/index.js +4 -2
  25. package/dist/components/pages/Dashboard/Dashboard.stories.js +36 -33
  26. package/dist/components/pages/Dashboard/index.js +9 -37
  27. package/dist/components/pages/ProviderProductEdition/index.js +144 -120
  28. package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
  29. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +0 -4
  30. package/dist/components/pages/RetailerProductEdition/index.js +273 -278
  31. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  32. package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
  33. package/dist/global-files/data.js +3 -11
  34. package/dist/global-files/variables.js +1 -7
  35. package/dist/index.js +58 -201
  36. package/package.json +1 -2
  37. package/src/components/atoms/Avatar/index.js +2 -8
  38. package/src/components/atoms/CheckBox/styles.js +0 -2
  39. package/src/components/atoms/GeneralButton/styles.js +0 -46
  40. package/src/components/atoms/InputFormatter/styles.js +4 -9
  41. package/src/components/atoms/SliderToolTip/styles.js +1 -1
  42. package/src/components/atoms/TabSection/index.js +1 -1
  43. package/src/components/atoms/TabSection/styles.js +1 -1
  44. package/src/components/molecules/BoxAttribute/index.js +25 -32
  45. package/src/components/molecules/BoxAttribute/styles.js +1 -1
  46. package/src/components/molecules/BoxButtons/index.js +22 -23
  47. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  48. package/src/components/molecules/HeaderTop/index.js +6 -52
  49. package/src/components/molecules/SignInLogin/index.js +11 -11
  50. package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
  51. package/src/components/molecules/TagAndInput/index.js +5 -6
  52. package/src/components/organisms/Chat/Chat.stories.js +7 -27
  53. package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
  54. package/src/components/organisms/Chat/ContainerItems/styles.js +2 -14
  55. package/src/components/organisms/Chat/ContentChat/index.js +12 -88
  56. package/src/components/organisms/Chat/Footer/index.js +0 -11
  57. package/src/components/organisms/Chat/index.js +4 -46
  58. package/src/components/organisms/Chat/styles.js +0 -4
  59. package/src/components/organisms/DashboardMetric/index.js +3 -6
  60. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  61. package/src/components/organisms/InputGroup/index.js +119 -131
  62. package/src/components/organisms/Modal/styles.js +1 -4
  63. package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
  64. package/src/components/organisms/VersionSelector/index.js +2 -1
  65. package/src/components/pages/Dashboard/Dashboard.stories.js +38 -33
  66. package/src/components/pages/Dashboard/index.js +7 -36
  67. package/src/components/pages/ProviderProductEdition/index.js +131 -100
  68. package/src/components/pages/ProviderProductEdition/styles.js +1 -5
  69. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +0 -4
  70. package/src/components/pages/RetailerProductEdition/index.js +135 -106
  71. package/src/components/pages/RetailerProductEdition/styles.js +0 -4
  72. package/src/components/pages/RetailerProductEdition/utils.js +0 -37
  73. package/src/global-files/data.js +10 -6
  74. package/src/global-files/variables.js +0 -6
  75. package/src/index.js +0 -11
  76. package/src/assets/images/Icons/infoNR.svg +0 -8
  77. package/src/assets/images/flagsv2/highPriority.svg +0 -3
  78. package/src/assets/images/flagsv2/lowPriority.svg +0 -3
  79. package/src/assets/images/flagsv2/mediumPriority.svg +0 -3
  80. package/src/assets/images/flagsv2/noPriority.svg +0 -3
  81. package/src/assets/images/generalButton/closeIconWhite.svg +0 -4
  82. package/src/assets/images/generalButton/closeIconv2.svg +0 -4
  83. package/src/components/atoms/CharsMissing/Wysiwyg.stories.js +0 -12
  84. package/src/components/atoms/CharsMissing/index.js +0 -60
  85. package/src/components/atoms/CharsMissing/styles.js +0 -44
  86. package/src/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +0 -16
  87. package/src/components/atoms/FeatureTagv2/index.js +0 -10
  88. package/src/components/atoms/FeatureTagv2/styles.js +0 -56
  89. package/src/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +0 -33
  90. package/src/components/atoms/GeneralInputv2/index.js +0 -155
  91. package/src/components/atoms/GeneralInputv2/styles.js +0 -67
  92. package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -76
  93. package/src/components/atoms/ImageCarousel/index.js +0 -103
  94. package/src/components/atoms/ImageCarousel/styles.js +0 -79
  95. package/src/components/atoms/InputFormatterv2/Wysiwyg.stories.js +0 -12
  96. package/src/components/atoms/InputFormatterv2/index.js +0 -148
  97. package/src/components/atoms/InputFormatterv2/styles.js +0 -39
  98. package/src/components/atoms/InputImages/InputImages.stories.js +0 -19
  99. package/src/components/atoms/InputImages/index.js +0 -25
  100. package/src/components/atoms/InputImages/styles.js +0 -17
  101. package/src/components/atoms/NumberMandatory/NumberMandatory.stories.js +0 -19
  102. package/src/components/atoms/NumberMandatory/index.js +0 -16
  103. package/src/components/atoms/NumberMandatory/styles.js +0 -11
  104. package/src/components/atoms/PercentTag/PercentTag.stories.js +0 -7
  105. package/src/components/atoms/PercentTag/index.js +0 -9
  106. package/src/components/atoms/PercentTag/styles.js +0 -69
  107. package/src/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +0 -20
  108. package/src/components/atoms/PriorityFlagv2/index.js +0 -20
  109. package/src/components/atoms/PriorityFlagv2/styles.js +0 -6
  110. package/src/components/atoms/ProductImagev2/ProductImagev2.stories.js +0 -28
  111. package/src/components/atoms/ProductImagev2/index.js +0 -16
  112. package/src/components/atoms/ProductImagev2/styles.js +0 -62
  113. package/src/components/atoms/Progress/Progress.stories.js +0 -25
  114. package/src/components/atoms/Progress/index.js +0 -74
  115. package/src/components/atoms/Progress/styles.js +0 -98
  116. package/src/components/atoms/RatingStars/RatingStars.stories.js +0 -10
  117. package/src/components/atoms/RatingStars/index.js +0 -31
  118. package/src/components/atoms/RatingStars/styles.js +0 -28
  119. package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -36
  120. package/src/components/atoms/RetailerCatalog/index.js +0 -49
  121. package/src/components/atoms/RetailerCatalog/styles.js +0 -30
  122. package/src/components/atoms/RetailerOption/RetailerOption.stories.js +0 -15
  123. package/src/components/atoms/RetailerOption/index.js +0 -53
  124. package/src/components/atoms/RetailerOption/styles.js +0 -41
  125. package/src/components/atoms/RetailersList/RetailersList.stories.js +0 -33
  126. package/src/components/atoms/RetailersList/index.js +0 -20
  127. package/src/components/atoms/RetailersList/styles.js +0 -19
  128. package/src/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +0 -53
  129. package/src/components/atoms/ScreenHeaderv2/index.js +0 -134
  130. package/src/components/atoms/ScreenHeaderv2/styles.js +0 -103
  131. package/src/components/atoms/Selectv2/VersionSelect.js +0 -27
  132. package/src/components/atoms/Selectv2/index.js +0 -35
  133. package/src/components/atoms/Selectv2/style.js +0 -93
  134. package/src/components/atoms/TabSectionv2/TabSection.stories.js +0 -25
  135. package/src/components/atoms/TabSectionv2/index.js +0 -9
  136. package/src/components/atoms/TabSectionv2/styles.js +0 -20
  137. package/src/components/atoms/TooltipLight/Tooltip.stories.js +0 -20
  138. package/src/components/atoms/TooltipLight/index.js +0 -46
  139. package/src/components/atoms/TooltipLight/styles.js +0 -65
  140. package/src/components/atoms/UserCatalog/UserCatalog.stories.js +0 -67
  141. package/src/components/atoms/UserCatalog/index.js +0 -100
  142. package/src/components/atoms/UserCatalog/styles.js +0 -24
  143. package/src/components/atoms/UserOption/UserOption.stories.js +0 -25
  144. package/src/components/atoms/UserOption/index.js +0 -95
  145. package/src/components/atoms/UserOption/styles.js +0 -61
  146. package/src/components/atoms/UserSelector/UserSelector.stories.js +0 -25
  147. package/src/components/atoms/UserSelector/index.js +0 -86
  148. package/src/components/atoms/UserSelector/styles.js +0 -55
  149. package/src/components/atoms/WordsMissing/Wysiwyg.stories.js +0 -12
  150. package/src/components/atoms/WordsMissing/index.js +0 -60
  151. package/src/components/atoms/WordsMissing/styles.js +0 -10
  152. package/src/components/molecules/AsignationInfo/AsignationInfo.stories.js +0 -17
  153. package/src/components/molecules/AsignationInfo/index.js +0 -108
  154. package/src/components/molecules/AsignationInfo/styles.js +0 -86
  155. package/src/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +0 -12
  156. package/src/components/molecules/EditionActiveImagev2/index.js +0 -15
  157. package/src/components/molecules/EditionActiveImagev2/styles.js +0 -7
  158. package/src/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +0 -20
  159. package/src/components/molecules/FeaturesBarv2/index.js +0 -32
  160. package/src/components/molecules/FeaturesBarv2/styles.js +0 -17
  161. package/src/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +0 -30
  162. package/src/components/molecules/GalleryElementv2/index.js +0 -142
  163. package/src/components/molecules/GalleryElementv2/styles.js +0 -119
  164. package/src/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +0 -10
  165. package/src/components/molecules/GalleryHeaderv2/index.js +0 -25
  166. package/src/components/molecules/GalleryHeaderv2/styles.js +0 -47
  167. package/src/components/molecules/GridItem/GridItem.stories.js +0 -126
  168. package/src/components/molecules/GridItem/index.js +0 -105
  169. package/src/components/molecules/GridItem/styles.js +0 -104
  170. package/src/components/molecules/HeaderItem/ColumnItem.js +0 -9
  171. package/src/components/molecules/HeaderItem/HeaderItem.stories.js +0 -24
  172. package/src/components/molecules/HeaderItem/index.js +0 -26
  173. package/src/components/molecules/HeaderItem/styles.js +0 -27
  174. package/src/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +0 -10
  175. package/src/components/molecules/HeaderTopv2/index.js +0 -100
  176. package/src/components/molecules/HeaderTopv2/styles.js +0 -33
  177. package/src/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +0 -46
  178. package/src/components/molecules/ImageSelectorv2/index.js +0 -22
  179. package/src/components/molecules/ImageSelectorv2/styles.js +0 -15
  180. package/src/components/molecules/Phase/Phase.stories.js +0 -37
  181. package/src/components/molecules/Phase/index.js +0 -56
  182. package/src/components/molecules/Phase/styles.js +0 -82
  183. package/src/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +0 -37
  184. package/src/components/molecules/ProductNameHeaderv2/index.js +0 -12
  185. package/src/components/molecules/ProductNameHeaderv2/styles.js +0 -10
  186. package/src/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +0 -37
  187. package/src/components/molecules/ProductSkuStatus/index.js +0 -26
  188. package/src/components/molecules/ProductSkuStatus/styles.js +0 -7
  189. package/src/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +0 -35
  190. package/src/components/molecules/RetailerSelectorv2/index.js +0 -80
  191. package/src/components/molecules/RetailerSelectorv2/styles.js +0 -21
  192. package/src/components/molecules/RowItem/ColumnItem.js +0 -9
  193. package/src/components/molecules/RowItem/RowItem.stories.js +0 -5660
  194. package/src/components/molecules/RowItem/index.js +0 -45
  195. package/src/components/molecules/RowItem/styles.js +0 -40
  196. package/src/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +0 -90
  197. package/src/components/molecules/ServiceDataValidator/index.js +0 -49
  198. package/src/components/molecules/ServiceDataValidator/styles.js +0 -36
  199. package/src/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +0 -17
  200. package/src/components/molecules/StatusRetailer/index.js +0 -55
  201. package/src/components/molecules/StatusRetailer/styles.js +0 -85
  202. package/src/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +0 -19
  203. package/src/components/molecules/TabsMenuv2/index.js +0 -112
  204. package/src/components/molecules/TabsMenuv2/styles.js +0 -19
  205. package/src/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +0 -24
  206. package/src/components/molecules/TagAndInputv2/index.js +0 -86
  207. package/src/components/molecules/TagAndInputv2/styles.js +0 -35
  208. package/src/components/molecules/Validation/Validation.stories.js +0 -12
  209. package/src/components/molecules/Validation/index.js +0 -77
  210. package/src/components/molecules/Validation/styles.js +0 -19
  211. package/src/components/molecules/VersionItemv2/VersionItemv2.stories.js +0 -14
  212. package/src/components/molecules/VersionItemv2/index.js +0 -59
  213. package/src/components/molecules/VersionItemv2/styles.js +0 -47
  214. package/src/components/organisms/BarButtons/BarButtons.stories.js +0 -13
  215. package/src/components/organisms/BarButtons/index.js +0 -150
  216. package/src/components/organisms/BarButtons/styles.js +0 -54
  217. package/src/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +0 -65
  218. package/src/components/organisms/Chatv2/ChatLists/Rotoplas.jpeg +0 -0
  219. package/src/components/organisms/Chatv2/ChatLists/THD.png +0 -0
  220. package/src/components/organisms/Chatv2/ChatLists/index.js +0 -141
  221. package/src/components/organisms/Chatv2/ChatLists/styles.js +0 -162
  222. package/src/components/organisms/Chatv2/Chatv2.stories.js +0 -184
  223. package/src/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +0 -142
  224. package/src/components/organisms/Chatv2/ContainerItems/index.js +0 -538
  225. package/src/components/organisms/Chatv2/ContainerItems/styles.js +0 -360
  226. package/src/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +0 -102
  227. package/src/components/organisms/Chatv2/ContentChat/Rotoplas.jpeg +0 -0
  228. package/src/components/organisms/Chatv2/ContentChat/THD.png +0 -0
  229. package/src/components/organisms/Chatv2/ContentChat/index.js +0 -1016
  230. package/src/components/organisms/Chatv2/ContentChat/styles.js +0 -44
  231. package/src/components/organisms/Chatv2/Footer/Footer.stories.js +0 -22
  232. package/src/components/organisms/Chatv2/Footer/index.js +0 -668
  233. package/src/components/organisms/Chatv2/Footer/styles.js +0 -290
  234. package/src/components/organisms/Chatv2/Header/Header.stories.js +0 -66
  235. package/src/components/organisms/Chatv2/Header/index.js +0 -93
  236. package/src/components/organisms/Chatv2/Header/styles.js +0 -49
  237. package/src/components/organisms/Chatv2/index.js +0 -281
  238. package/src/components/organisms/Chatv2/styles.js +0 -85
  239. package/src/components/organisms/CompleteServices/CompleteServices.stories.js +0 -91
  240. package/src/components/organisms/CompleteServices/index.js +0 -82
  241. package/src/components/organisms/CompleteServices/styles.js +0 -35
  242. package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +0 -12
  243. package/src/components/organisms/DragAndDropPhases/index.js +0 -67
  244. package/src/components/organisms/DragAndDropPhases/styles.js +0 -20
  245. package/src/components/organisms/DragPrueba/DragPrueba.stories.js +0 -12
  246. package/src/components/organisms/DragPrueba/index.js +0 -57
  247. package/src/components/organisms/DragPrueba/styles.js +0 -8
  248. package/src/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +0 -28
  249. package/src/components/organisms/FullProductNamev2/index.js +0 -101
  250. package/src/components/organisms/FullProductNamev2/styles.js +0 -49
  251. package/src/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +0 -22
  252. package/src/components/organisms/FullTabsMenuv2/index.js +0 -142
  253. package/src/components/organisms/FullTabsMenuv2/styles.js +0 -47
  254. package/src/components/organisms/GridProducts/GridProducts.stories.js +0 -5485
  255. package/src/components/organisms/GridProducts/index.js +0 -50
  256. package/src/components/organisms/GridProducts/styles.js +0 -14
  257. package/src/components/organisms/GridProducts/utils.js +0 -111
  258. package/src/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +0 -24
  259. package/src/components/organisms/ImageDataTablev2/index.js +0 -124
  260. package/src/components/organisms/ImageDataTablev2/styles.js +0 -18
  261. package/src/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +0 -38
  262. package/src/components/organisms/ImagePreviewerv2/index.js +0 -22
  263. package/src/components/organisms/ImagePreviewerv2/styles.js +0 -7
  264. package/src/components/organisms/InputGroupv2/InputGroupv2.stories.js +0 -31
  265. package/src/components/organisms/InputGroupv2/index.js +0 -296
  266. package/src/components/organisms/InputGroupv2/styles.js +0 -90
  267. package/src/components/organisms/MandatoryBar/MandatoryBar.stories.js +0 -18
  268. package/src/components/organisms/MandatoryBar/index.js +0 -31
  269. package/src/components/organisms/MandatoryBar/styles.js +0 -12
  270. package/src/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +0 -90
  271. package/src/components/organisms/ProductImageModalv2/index.js +0 -105
  272. package/src/components/organisms/ProductImageModalv2/styles.js +0 -71
  273. package/src/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +0 -18
  274. package/src/components/organisms/RenameImagesBar/index.js +0 -30
  275. package/src/components/organisms/RenameImagesBar/styles.js +0 -12
  276. package/src/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +0 -15
  277. package/src/components/organisms/VersionSelectorv2/index.js +0 -105
  278. package/src/components/organisms/VersionSelectorv2/styles.js +0 -45
  279. package/src/components/pages/ProductEditionv2/ProductEditionv2.stories.js +0 -213
  280. package/src/components/pages/ProductEditionv2/index.js +0 -1758
  281. package/src/components/pages/ProductEditionv2/styles.js +0 -154
@@ -1,31 +1,41 @@
1
1
  export const servicesCodeIcon = {
2
2
  datasheet: (
3
3
  <div key="datasheet" className="tooltip">
4
- <span className="material-icons small">&#xf8ee;</span>
4
+ <span className="material-icons small">
5
+ &#xf8ee;
6
+ </span>
5
7
  <span className="tooltiptext">Ficha Técnica</span>
6
8
  </div>
7
9
  ),
8
10
  description: (
9
11
  <div key="description" className="tooltip">
10
- <span className="material-icons small">&#xe873;</span>
12
+ <span className="material-icons small">
13
+ &#xe873;
14
+ </span>
11
15
  <span className="tooltiptext">Descripción</span>
12
16
  </div>
13
17
  ),
14
18
  image: (
15
19
  <div key="image" className="tooltip">
16
- <span className="material-icons small">&#xe3f4;</span>
20
+ <span className="material-icons small">
21
+ &#xe3f4;
22
+ </span>
17
23
  <span className="tooltiptext">Imagen</span>
18
24
  </div>
19
25
  ),
20
26
  translate: (
21
27
  <div key="translate" className="tooltip">
22
- <span className="material-icons small">&#xe8e2;</span>
28
+ <span className="material-icons small">
29
+ &#xe8e2;
30
+ </span>
23
31
  <span className="tooltiptext">Traducción</span>
24
32
  </div>
25
33
  ),
26
34
  build: (
27
- <div key="build" className="tooltip">
28
- <span className="material-icons small">&#xe1bd;</span>
35
+ <div key="build" className="tooltip">
36
+ <span className="material-icons small">
37
+ &#xe1bd;
38
+ </span>
29
39
  <span className="tooltiptext">Construcción</span>
30
40
  </div>
31
41
  ),
@@ -5,7 +5,8 @@ import { ScreenHeader } from "../../atoms/ScreenHeader";
5
5
  import { Button } from "../../atoms/GeneralButton";
6
6
  import addVersion from "../../../assets/images/versionSelector/addVersion.svg";
7
7
  import closeIcon from "../../../assets/images/versionSelector/closeVersionSelector.svg";
8
- import { GlobalColors, FontFamily } from "../../../global-files/variables";
8
+ import { GlobalColors } from "../../../../dist/global-files/variables";
9
+ import { FontFamily } from "../../../global-files/variables";
9
10
  import { VersionItem } from "../../molecules/VersionItem";
10
11
  import { CreateVersion } from "../../organisms/CreateVersion";
11
12
  import { useCloseModal } from "../../../global-files/customHooks";
@@ -9,54 +9,59 @@ const Template = (args) => <Dashboard {...args} />;
9
9
  export const DashboardDeafult = Template.bind({});
10
10
  DashboardDeafult.args = {
11
11
  user: {
12
- id_user: 343,
13
- name: "Jair",
14
- last_name: "León",
15
- email: "hleon@contentoh.com",
16
- position: "Test States",
17
- telephone: "+525555555555",
12
+ id_user: 37,
13
+ name: "José",
14
+ last_name: "Castañeda",
15
+ email: "ismael97lopez@gmail.com",
16
+ position: "Auditor",
17
+ telephone: "",
18
18
  country: "México",
19
- id_company: 234,
20
- id_cognito: "4512b5a5-366a-4bb5-916e-aafe05402992",
19
+ id_company: 2,
20
+ id_cognito: "9a213128-6482-4c16-a4b6-6e64f225b1bd",
21
21
  birth_Date: null,
22
22
  about_me: "",
23
23
  zip_code: "",
24
24
  address: "",
25
25
  job: "",
26
- id_stripe: "cus_KuEt6R6vwmN09f",
27
- id_role: 0,
26
+ id_stripe: "",
27
+ id_role: 6,
28
28
  active: 1,
29
29
  is_retailer: 0,
30
- email_notify: 0,
31
- is_user_tech: "ADMIN-AS",
30
+ email_notify: 1,
31
+ is_user_tech: null,
32
32
  membership: {
33
- id: 139,
34
- start_date: "2023-10-04T15:46:14.000Z",
35
- end_date: "2024-10-04T08:46:09.000Z",
36
- planID: 9,
37
- plan: "prod_KtlkzZVGq6bRTO",
38
- name: "Plan Enterprise Full",
39
- user_limit: "30",
40
- products_limit: "10000",
41
- type: "Enterprise",
33
+ id: 2,
34
+ start_date: "2021-11-05T02:35:12.000Z",
35
+ end_date: "2022-11-05T02:34:49.000Z",
36
+ planID: 1,
37
+ plan: "prod_KtkvuFFLpOdP6e",
38
+ name: "Plan Free",
39
+ user_limit: "1",
40
+ products_limit: "3",
41
+ type: "PyMES",
42
42
  },
43
- src: "https://content-management-profile.s3.amazonaws.com/id-343/343.png?1699640943284",
43
+ src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1684953973972",
44
44
  },
45
45
  company: {
46
- id_company: 234,
47
- trade_name: "L'ORÉAL",
48
- company_name: "L'ORÉAL",
46
+ id_company: 1,
47
+ trade_name: "GRUPO BRAHMA",
48
+ company_name: "GRUPO BRAHMA",
49
49
  rfc: "XAXX010101000",
50
50
  adress: "AA",
51
- about_company: " ",
52
- telephone: " ",
53
- web_site: " ",
54
- zip_code: " ",
51
+ about_company: "",
52
+ telephone: "",
53
+ web_site: "",
54
+ zip_code: "",
55
55
  email: null,
56
- social_link: " ",
56
+ social_link: "",
57
57
  is_retailer: 0,
58
- financedRetailers: [],
59
- retailers: [],
58
+ retailers: [
59
+ {
60
+ id: null,
61
+ name: null,
62
+ country: null,
63
+ },
64
+ ],
60
65
  },
61
- jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI0NTEyYjVhNS0zNjZhLTRiYjUtOTE2ZS1hYWZlMDU0MDI5OTIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjQ1MTJiNWE1LTM2NmEtNGJiNS05MTZlLWFhZmUwNTQwMjk5MiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI4YTJhOTE3ZS0xZWU2LTQ5ODAtODZiZS0yZTEzMGI4ZTcyMmIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY5OTY0MDk0MSwibmFtZSI6IkphaXIgTGXDs24iLCJwaG9uZV9udW1iZXIiOiIrNTI1NTU1NTU1NTU1IiwiZXhwIjoxNjk5NjQ0NTQxLCJpYXQiOjE2OTk2NDA5NDEsImVtYWlsIjoiaGxlb25AY29udGVudG9oLmNvbSJ9.YrLhtF5cee0S_iWX1gXBTJPxF8zls25SMK9GfCWoCpAabGRy9HtGSZ9KUuZlXICz13TTvgOfxFIv5duwS2vxYIlE1ZuLPHXSm2L4FuwJHcppedxssPNgfmxmVu-4B0SaMNWynjIWwbt_wumb2spwe3ONTcuRI-UgmJo_Rfa_cKUOiL-oNCQwkX6KhuWRGcfcpoUkfhi6tfOAgkA8VT5D8h-Dgawg5ibRnbjRMQejfNg1vVh_d2MpYhX9ve5SM9r1JdRCowgxMjb3ii6eXnng_UqjRdrB4008wkG8iZbz2C_NVJjJGrt1B454MZZmRvHbRogs-uu6U1JUsDW09qhcCg",
66
+ jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI3ZjNkZTM4Mi03NWE2LTRlNDAtYTI3NC00YmM5ODg2Nzk0YjYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4NDk1NTYzOCwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODQ5NTkyMzcsImlhdCI6MTY4NDk1NTYzOCwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.ALvhpSGVv34JV8vLSg0CznmsIzRMJ_BFcmDI4qYXzr0qwgLLihon0M0xmODMhIHKcZK4jODC01guliB6fTPoCb8kfPHrBgLnHMBU8PxU1Fcc2EqF5U8lh4fJK6Mc7kiJ4lCreKJL3kT_1ytC-7FdRAlhNXzuJW6aMQQ785ODQ8-1RtHKW6U_b9x88-WFxjltEKuw734LGBSkz9iKZSumNBJBP8HTMgwOgmRTJ6lR-hPsujvl7aF3maXhftpk2fI8S_FzjVRMsxY3T8hQHIXEYwQUv-fC5SPOgc8XDuAp18MKfi0qkU1EYHQahC0qZmvgVGWEDcu5D36Xj0as4iAiFQ",
62
67
  };
@@ -40,8 +40,6 @@ export const Dashboard = ({ jwt, user, company }) => {
40
40
  const [applicantsFilter, setApplicantsFilter] = useState([]);
41
41
  const [totalCount, setTotalCount] = useState(0);
42
42
  const [isProviderFinanced] = useState(company?.financedRetailers?.length > 0);
43
- const [trades, setTrades] = useState([]);
44
- const [tradesSelected, setTradesSelected] = useState([]);
45
43
 
46
44
  const loadProductVersions = async (queryObject) => {
47
45
  const keys = Object.keys(queryObject);
@@ -86,10 +84,9 @@ export const Dashboard = ({ jwt, user, company }) => {
86
84
  const isRetailer = user.is_retailer && company.retailers;
87
85
  const isProvider = !user.is_retailer && user.id_role === 0;
88
86
  const isCollaborator = user.id_role > 0;
89
- const { ordersBydate, ordersByStatus, ordersByActive, companyTrades } =
87
+ const { ordersBydate, ordersByStatus } =
90
88
  (await loadProductVersions(orderByStatus)) || {};
91
89
 
92
- if (trades.length === 0) setTrades(companyTrades);
93
90
  const { total = 0, R = 0, PA = 0, Ex = 0, ACA = 0 } = ordersByStatus;
94
91
  let productsFinished = 0;
95
92
  if (isRetailer) productsFinished = Ex;
@@ -103,8 +100,6 @@ export const Dashboard = ({ jwt, user, company }) => {
103
100
  : prev,
104
101
  0
105
102
  );
106
-
107
- const registeredProducts = ordersByActive.registered;
108
103
  let metricsArray = [
109
104
  metricsData[0]
110
105
  ? metricsData[0]
@@ -112,7 +107,6 @@ export const Dashboard = ({ jwt, user, company }) => {
112
107
  ];
113
108
 
114
109
  metricsArray.push(
115
- { label: "Productos activos", value: registeredProducts },
116
110
  { label: "Productos filtrados", value: total },
117
111
  { label: "Productos sin asignar", value: PA + R },
118
112
  { label: "Productos en proceso", value: inProcess },
@@ -223,13 +217,10 @@ export const Dashboard = ({ jwt, user, company }) => {
223
217
  }, []);
224
218
 
225
219
  useEffect(() => {
226
- if (
227
- orderByRequired?.startDate &&
220
+ orderByRequired?.startDate &&
228
221
  orderByStatus?.endDate &&
229
- metricsData.length > 0
230
- ) {
222
+ metricsData.length > 0 &&
231
223
  setLoading(false);
232
- }
233
224
  }, [orderByRequired, orderByStatus, metricsData]);
234
225
 
235
226
  useEffect(async () => {
@@ -238,23 +229,14 @@ export const Dashboard = ({ jwt, user, company }) => {
238
229
  startDate: startDate,
239
230
  endDate: endDate,
240
231
  };
241
- if (companyId.length > 0) queryObject["companyId"] = companyId.join(",");
242
- if (retailerId.length > 0) queryObject["retailerId"] = retailerId.join(",");
243
- if (categoryId.length > 0) queryObject["categoryId"] = categoryId.join(",");
244
- if (tradesSelected.length > 0)
245
- queryObject["trades"] = encodeURIComponent(tradesSelected.join(","));
232
+ companyId.length > 0 && (queryObject["companyId"] = companyId.join(","));
233
+ retailerId.length > 0 && (queryObject["retailerId"] = retailerId.join(","));
234
+ categoryId.length > 0 && (queryObject["categoryId"] = categoryId.join(","));
246
235
  applicantsFilter.length > 0 &&
247
236
  (queryObject["requestedBy"] = applicantsFilter.join(","));
248
237
 
249
238
  await loadProductsByStatus(queryObject, true);
250
- }, [
251
- companyId,
252
- retailerId,
253
- categoryId,
254
- datesRange,
255
- applicantsFilter,
256
- tradesSelected,
257
- ]);
239
+ }, [companyId, retailerId, categoryId, datesRange, applicantsFilter]);
258
240
 
259
241
  return loading ? (
260
242
  <Loading />
@@ -319,17 +301,6 @@ export const Dashboard = ({ jwt, user, company }) => {
319
301
  defaultOption="Todos los solicitantes"
320
302
  />
321
303
  )}
322
- {user.id_role === 0 && trades?.length > 0 && (
323
- <CustomSelect
324
- showSearchBar={true}
325
- options={trades}
326
- selectLabel="Todas las marcas"
327
- placeHolder="Buscar marca"
328
- customSelectId="trade-select"
329
- parameterArray={tradesSelected}
330
- setParameterArray={setTradesSelected}
331
- />
332
- )}
333
304
  </div>
334
305
  <div className="metric-cards">
335
306
  {metricsData.map((metric, index) => (
@@ -39,10 +39,6 @@ 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";
46
42
 
47
43
  const reducerImages = (state, action) => {
48
44
  let { values, attrForImgs, inputsByRetailer } = state;
@@ -226,7 +222,6 @@ export const ProviderProductEdition = ({
226
222
  const isRetailer = user?.is_retailer;
227
223
  const [loading, setLoading] = useState(true);
228
224
  const [validatedAll, setValidatedAll] = useState(false);
229
- const [showRejectModal, setShowRejectModal] = useState(false);
230
225
 
231
226
  const [origin, setOrigin] = useState({
232
227
  "Ficha técnica": null,
@@ -356,6 +351,28 @@ export const ProviderProductEdition = ({
356
351
  (type) => {
357
352
  const formatter = new Intl.ListFormat("es", { type: "conjunction" });
358
353
  switch (type) {
354
+ case "error":
355
+ setGlobalModal({
356
+ message: `${activeTab} rechazada`,
357
+ detail: "Agrega tu comentarios para enviar el rechazo",
358
+ img: errorModal,
359
+ textArea: true,
360
+ button1: {
361
+ name: "Enviar",
362
+ action: (e) => {
363
+ const textArea = document.querySelector("#area");
364
+ if (textArea.value) {
365
+ textArea.style.border = "none";
366
+ createComment(e, textArea.value);
367
+ showGlobalModal("commentsSent");
368
+ validatedAll ? validateAll("R") : sendEvaluation("R");
369
+ } else {
370
+ textArea.style.border = "2px solid red";
371
+ }
372
+ },
373
+ },
374
+ });
375
+ break;
359
376
  case "generic":
360
377
  setGlobalModal(dataGenericModal);
361
378
  break;
@@ -529,9 +546,7 @@ export const ProviderProductEdition = ({
529
546
  );
530
547
  setServicesData(parsedResponse);
531
548
  }
532
- retailers &&
533
- !activeRetailer.id &&
534
- setActiveRetailer(active ? active : retailers[0]);
549
+ !activeRetailer.id && setActiveRetailer(active ? active : retailers[0]);
535
550
  };
536
551
 
537
552
  const isRevision = () => {
@@ -609,7 +624,7 @@ export const ProviderProductEdition = ({
609
624
  });
610
625
  }
611
626
  setProduct(productTemp);
612
- retailers && setActivePercentage(retailers[0]?.percentage);
627
+ setActivePercentage(retailers[0]?.percentage);
613
628
  }, [percentages]);
614
629
 
615
630
  const loadInputs = () => {
@@ -868,21 +883,33 @@ export const ProviderProductEdition = ({
868
883
  return "images";
869
884
  }
870
885
  };
871
-
872
886
 
873
- const createComment = async (messages = [], retailerId) => {
887
+ const createComment = async (e, body, tab) => {
888
+ let concept = "";
889
+ switch (activeTab) {
890
+ case "Ficha técnica":
891
+ concept = "datasheet";
892
+ break;
893
+ case "Imágenes":
894
+ concept = "images";
895
+ break;
896
+
897
+ default:
898
+ concept = "description";
899
+ break;
900
+ }
874
901
  const data = {
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,
881
- },
882
- paramsHeader: { Authorization: token },
902
+ articleId: product?.id_article,
903
+ orderId: product?.orderId,
904
+ message: body,
905
+ concept: concept,
906
+ version: version,
883
907
  };
884
- setMessage("");
885
- return sendMessage(data);
908
+ await axios.post(`${process.env.REACT_APP_COMMENTS_ENDPOINT}`, data, {
909
+ headers: {
910
+ Authorization: token,
911
+ },
912
+ });
886
913
  };
887
914
 
888
915
  useEffect(() => {
@@ -1211,6 +1238,8 @@ export const ProviderProductEdition = ({
1211
1238
 
1212
1239
  const enableActions = (versionStatus) => {
1213
1240
  try {
1241
+ if (user.is_retailer) return false;
1242
+
1214
1243
  if (versionStatus) {
1215
1244
  return ["AP", "ACA", "RCA", null].includes(versionStatus);
1216
1245
  }
@@ -1293,7 +1322,8 @@ export const ProviderProductEdition = ({
1293
1322
  return;
1294
1323
  } else if (user.is_retailer) {
1295
1324
  if (product.id_order || product.orderId) {
1296
- sendEvaluation("R");
1325
+ setValidatedAll(true);
1326
+ showGlobalModal("error");
1297
1327
  } else {
1298
1328
  setDataGenericModal((prev) => ({
1299
1329
  ...prev,
@@ -1305,7 +1335,8 @@ export const ProviderProductEdition = ({
1305
1335
  showGlobalModal("generic");
1306
1336
  }
1307
1337
  } else {
1308
- sendEvaluation("R");
1338
+ setValidatedAll(true);
1339
+ showGlobalModal("error");
1309
1340
  }
1310
1341
  }
1311
1342
  };
@@ -1315,7 +1346,6 @@ export const ProviderProductEdition = ({
1315
1346
  <HeaderTop
1316
1347
  setHeaderTop={setHeaderTop}
1317
1348
  withChat={location?.state?.withChat}
1318
- chatType={location?.state?.chatType}
1319
1349
  productSelected={productSelected}
1320
1350
  token={token}
1321
1351
  activeRetailer={activeRetailer}
@@ -1394,7 +1424,7 @@ export const ProviderProductEdition = ({
1394
1424
  } else if (user.is_retailer) {
1395
1425
  if (product.id_order || product.orderId) {
1396
1426
  setValidatedAll(true);
1397
- setShowRejectModal(true);
1427
+ showGlobalModal("error");
1398
1428
  } else {
1399
1429
  setDataGenericModal((prev) => ({
1400
1430
  ...prev,
@@ -1406,14 +1436,12 @@ export const ProviderProductEdition = ({
1406
1436
  showGlobalModal("generic");
1407
1437
  }
1408
1438
  } else {
1409
- setShowRejectModal(true);
1410
1439
  setValidatedAll(true);
1440
+ showGlobalModal("error");
1411
1441
  }
1412
1442
  }}
1413
1443
  approve={() => sendToEvaluation("A")}
1414
- reject={() => {
1415
- setShowRejectModal(true);
1416
- }}
1444
+ reject={() => sendToEvaluation("R")}
1417
1445
  />
1418
1446
  <FullTabsMenu
1419
1447
  tabsSections={tabsSections}
@@ -1516,7 +1544,6 @@ export const ProviderProductEdition = ({
1516
1544
  setUpdatedDescriptions={setUpdatedDescriptions}
1517
1545
  articleId={product?.id_article}
1518
1546
  version={version}
1519
- isShowbox={false}
1520
1547
  dinamicHeight={true}
1521
1548
  />
1522
1549
  ) : (
@@ -1543,41 +1570,87 @@ export const ProviderProductEdition = ({
1543
1570
  </>
1544
1571
  )}
1545
1572
  </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>
1573
+ {isRevision() && getSectionStatus() ? (
1574
+ <div className="commentary-box">
1575
+ {!comment ? (
1576
+ <div className="commentary">
1577
+ <TagAndInput
1578
+ label={"Caja de Comentario"}
1579
+ inputType={"textarea"}
1580
+ inputCols={80}
1581
+ inputRows={4}
1582
+ inputId={"commentary-box"}
1583
+ index={0}
1584
+ />
1585
+ <div className="buttons-box">
1586
+ <Button
1587
+ buttonType={"general-transparent-button"}
1588
+ label={"Enviar comentario"}
1589
+ onClick={(e) =>
1590
+ createComment(
1591
+ e,
1592
+ document.querySelector(
1593
+ "#description-commentary-box-0 .ql-container .ql-editor > p"
1594
+ ).innerHTML,
1595
+ activeTab
1596
+ )
1597
+ }
1598
+ />
1599
+ </div>
1600
+ </div>
1562
1601
  ) : (
1563
- <>
1564
- <SliderToolTip
1565
- infoIcon={InfoIcon}
1566
- slidefront={slidefront}
1567
- iconSize={"big-image"}
1568
- slidePosition={"top-slide"}
1602
+ <div className="feedback-box">
1603
+ <Commentary
1604
+ comment={comment.message}
1605
+ reviewed={crossComment}
1569
1606
  />
1570
1607
  <Button
1571
- onClick={() => {
1572
- setShowContentohRequestModal &&
1573
- setShowContentohRequestModal(true);
1608
+ buttonType={"circular-button accept-button"}
1609
+ onClick={async () => {
1610
+ setCrossComment(true);
1611
+ commentRevised();
1574
1612
  }}
1575
- buttonType="general-default-button"
1576
- label="Enviar a Content-oh!"
1577
1613
  />
1578
- </>
1614
+ </div>
1579
1615
  )}
1580
1616
  </div>
1617
+ ) : (
1618
+ !revision && (
1619
+ <div className="required-inputs-message">
1620
+ <div>
1621
+ <p>
1622
+ Los atributos son requeridos por las plataformas de las
1623
+ cadenas, es muy importante completar los campos requeridos
1624
+ ya que pueden rechazar el producto por falta de información.
1625
+ </p>
1626
+ </div>
1627
+ {inCart ? (
1628
+ <button type="button">
1629
+ <Link to="/checkout">
1630
+ <p>Articulo en carrito</p>
1631
+ <p>Ir a checkout</p>
1632
+ </Link>
1633
+ </button>
1634
+ ) : (
1635
+ <>
1636
+ <SliderToolTip
1637
+ infoIcon={InfoIcon}
1638
+ slidefront={slidefront}
1639
+ iconSize={"big-image"}
1640
+ slidePosition={"top-slide"}
1641
+ />
1642
+ <Button
1643
+ onClick={() => {
1644
+ setShowContentohRequestModal &&
1645
+ setShowContentohRequestModal(true);
1646
+ }}
1647
+ buttonType="general-default-button"
1648
+ label="Enviar a Content-oh!"
1649
+ />
1650
+ </>
1651
+ )}
1652
+ </div>
1653
+ )
1581
1654
  )}
1582
1655
  </div>
1583
1656
  </div>
@@ -1620,48 +1693,6 @@ export const ProviderProductEdition = ({
1620
1693
  jwt={token}
1621
1694
  />
1622
1695
  )}
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
- )}
1665
1696
  </Container>
1666
1697
  );
1667
1698
  };
@@ -107,10 +107,6 @@ export const Container = styled.div`
107
107
  }
108
108
  }
109
109
  }
110
- #modal-message-box {
111
- width: 400px;
112
- height: 100px;
113
- }
114
110
  .container {
115
111
  width: 100%;
116
112
  height: 100%;
@@ -119,4 +115,4 @@ export const Container = styled.div`
119
115
  width: 100%;
120
116
  }
121
117
  }
122
- `;
118
+ `;
@@ -70,10 +70,6 @@ RetailerProductEditionDefault.args = {
70
70
  },
71
71
  location: {
72
72
  product: { articleId: 39364, versionId: 3 },
73
- state: {
74
- withChat: true,
75
- chatType: "product_status",
76
- },
77
73
  },
78
74
  user: {
79
75
  id_user: 37,