contentoh-components-library 21.4.20 → 21.4.22

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 (115) hide show
  1. package/.env.development +5 -2
  2. package/.env.production +3 -1
  3. package/dist/components/atoms/Avatar/index.js +3 -2
  4. package/dist/components/atoms/Card/index.js +46 -5
  5. package/dist/components/atoms/Card/styles.js +3 -1
  6. package/dist/components/atoms/CheckBox/index.js +7 -2
  7. package/dist/components/atoms/CheckBox/styles.js +1 -1
  8. package/dist/components/atoms/InputFormatter/styles.js +1 -1
  9. package/dist/components/atoms/SliderToolTip/styles.js +1 -1
  10. package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
  11. package/dist/components/molecules/HeaderTop/index.js +68 -11
  12. package/dist/components/molecules/TagAndInput/index.js +1 -1
  13. package/dist/components/organisms/Chat/Chat.stories.js +27 -8
  14. package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
  15. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  16. package/dist/components/organisms/Chat/ContentChat/index.js +350 -197
  17. package/dist/components/organisms/Chat/Footer/index.js +48 -39
  18. package/dist/components/organisms/Chat/index.js +49 -4
  19. package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
  20. package/dist/components/organisms/Modal/styles.js +1 -1
  21. package/dist/components/organisms/PanelLayout/PanelLayout.stories.js +87 -0
  22. package/dist/components/organisms/PanelLayout/index.js +29 -0
  23. package/dist/components/organisms/PanelLayout/styles.js +32 -0
  24. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +60 -116
  25. package/dist/components/pages/ProviderProductEdition/index.js +117 -142
  26. package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
  27. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +8 -4
  28. package/dist/components/pages/RetailerProductEdition/index.js +316 -308
  29. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  30. package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
  31. package/dist/index.js +247 -52
  32. package/package.json +4 -1
  33. package/src/components/atoms/Avatar/index.js +8 -2
  34. package/src/components/atoms/Card/index.js +35 -2
  35. package/src/components/atoms/Card/styles.js +41 -5
  36. package/src/components/atoms/CheckBox/index.js +4 -1
  37. package/src/components/atoms/CheckBox/styles.js +2 -0
  38. package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +76 -0
  39. package/src/components/atoms/ImageCarousel/index.js +103 -0
  40. package/src/components/atoms/ImageCarousel/styles.js +79 -0
  41. package/src/components/atoms/InputFormatter/styles.js +2 -1
  42. package/src/components/atoms/PercentTag/PercentTag.stories.js +7 -0
  43. package/src/components/atoms/PercentTag/index.js +9 -0
  44. package/src/components/atoms/PercentTag/styles.js +69 -0
  45. package/src/components/atoms/RatingStars/RatingStars.stories.js +10 -0
  46. package/src/components/atoms/RatingStars/index.js +31 -0
  47. package/src/components/atoms/RatingStars/styles.js +28 -0
  48. package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +36 -0
  49. package/src/components/atoms/RetailerCatalog/index.js +49 -0
  50. package/src/components/atoms/RetailerCatalog/styles.js +30 -0
  51. package/src/components/atoms/RetailerOption/RetailerOption.stories.js +15 -0
  52. package/src/components/atoms/RetailerOption/index.js +53 -0
  53. package/src/components/atoms/RetailerOption/styles.js +41 -0
  54. package/src/components/atoms/RetailersList/RetailersList.stories.js +33 -0
  55. package/src/components/atoms/RetailersList/index.js +20 -0
  56. package/src/components/atoms/RetailersList/styles.js +19 -0
  57. package/src/components/atoms/SliderToolTip/styles.js +1 -1
  58. package/src/components/atoms/UserCatalog/UserCatalog.stories.js +67 -0
  59. package/src/components/atoms/UserCatalog/index.js +100 -0
  60. package/src/components/atoms/UserCatalog/styles.js +24 -0
  61. package/src/components/atoms/UserOption/UserOption.stories.js +25 -0
  62. package/src/components/atoms/UserOption/index.js +95 -0
  63. package/src/components/atoms/UserOption/styles.js +61 -0
  64. package/src/components/atoms/UserSelector/UserSelector.stories.js +25 -0
  65. package/src/components/atoms/UserSelector/index.js +86 -0
  66. package/src/components/atoms/UserSelector/styles.js +55 -0
  67. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  68. package/src/components/molecules/GridItem/GridItem.stories.js +126 -0
  69. package/src/components/molecules/GridItem/index.js +105 -0
  70. package/src/components/molecules/GridItem/styles.js +104 -0
  71. package/src/components/molecules/HeaderItem/ColumnItem.js +9 -0
  72. package/src/components/molecules/HeaderItem/HeaderItem.stories.js +24 -0
  73. package/src/components/molecules/HeaderItem/index.js +26 -0
  74. package/src/components/molecules/HeaderItem/styles.js +27 -0
  75. package/src/components/molecules/HeaderTop/index.js +52 -6
  76. package/src/components/molecules/RowItem/ColumnItem.js +9 -0
  77. package/src/components/molecules/RowItem/RowItem.stories.js +5660 -0
  78. package/src/components/molecules/RowItem/index.js +45 -0
  79. package/src/components/molecules/RowItem/styles.js +40 -0
  80. package/src/components/molecules/StripeCardForm/StripeCardForm.stories.js +13 -0
  81. package/src/components/molecules/StripeCardForm/index.js +42 -0
  82. package/src/components/molecules/StripeCardForm/paymentForm.js +124 -0
  83. package/src/components/molecules/StripeCardForm/styles.js +73 -0
  84. package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +12 -0
  85. package/src/components/molecules/StripeCardSelector/index.js +44 -0
  86. package/src/components/molecules/StripeCardSelector/styles.js +4 -0
  87. package/src/components/molecules/StripeCardSelector/utils.js +17 -0
  88. package/src/components/molecules/TagAndInput/index.js +10 -8
  89. package/src/components/organisms/Chat/Chat.stories.js +27 -7
  90. package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
  91. package/src/components/organisms/Chat/ContainerItems/styles.js +10 -2
  92. package/src/components/organisms/Chat/ContentChat/index.js +88 -12
  93. package/src/components/organisms/Chat/Footer/index.js +11 -0
  94. package/src/components/organisms/Chat/index.js +46 -4
  95. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  96. package/src/components/organisms/GridProducts/GridProducts.stories.js +5485 -0
  97. package/src/components/organisms/GridProducts/index.js +50 -0
  98. package/src/components/organisms/GridProducts/styles.js +14 -0
  99. package/src/components/organisms/GridProducts/utils.js +111 -0
  100. package/src/components/organisms/Modal/styles.js +4 -1
  101. package/src/components/organisms/OrderDetail/utils/Table/utils.js +6 -16
  102. package/src/components/organisms/PanelLayout/PanelLayout.stories.js +63 -0
  103. package/src/components/organisms/PanelLayout/index.js +11 -0
  104. package/src/components/organisms/PanelLayout/styles.js +39 -0
  105. package/src/components/organisms/SideModal/SideModal.stories.js +23 -0
  106. package/src/components/organisms/SideModal/index.js +50 -0
  107. package/src/components/organisms/SideModal/styles.js +30 -0
  108. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +66 -116
  109. package/src/components/pages/ProviderProductEdition/index.js +97 -129
  110. package/src/components/pages/ProviderProductEdition/styles.js +5 -1
  111. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +7 -3
  112. package/src/components/pages/RetailerProductEdition/index.js +158 -184
  113. package/src/components/pages/RetailerProductEdition/styles.js +4 -0
  114. package/src/components/pages/RetailerProductEdition/utils.js +37 -0
  115. package/src/index.js +16 -0
@@ -39,6 +39,9 @@ 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";
42
45
 
43
46
  const reducerImages = (state, action) => {
44
47
  let { values, attrForImgs, inputsByRetailer } = state;
@@ -214,6 +217,7 @@ export const ProviderProductEdition = ({
214
217
  const isRetailer = user?.is_retailer;
215
218
  const [loading, setLoading] = useState(true);
216
219
  const [validatedAll, setValidatedAll] = useState(false);
220
+ const [showRejectModal, setShowRejectModal] = useState(false);
217
221
 
218
222
  const [origin, setOrigin] = useState({
219
223
  "Ficha técnica": null,
@@ -343,28 +347,6 @@ export const ProviderProductEdition = ({
343
347
  (type) => {
344
348
  const formatter = new Intl.ListFormat("es", { type: "conjunction" });
345
349
  switch (type) {
346
- case "error":
347
- setGlobalModal({
348
- message: `${activeTab} rechazada`,
349
- detail: "Agrega tu comentarios para enviar el rechazo",
350
- img: errorModal,
351
- textArea: true,
352
- button1: {
353
- name: "Enviar",
354
- action: (e) => {
355
- const textArea = document.querySelector("#area");
356
- if (textArea.value) {
357
- textArea.style.border = "none";
358
- createComment(e, textArea.value);
359
- showGlobalModal("commentsSent");
360
- validatedAll ? validateAll("R") : sendEvaluation("R");
361
- } else {
362
- textArea.style.border = "2px solid red";
363
- }
364
- },
365
- },
366
- });
367
- break;
368
350
  case "generic":
369
351
  setGlobalModal(dataGenericModal);
370
352
  break;
@@ -524,7 +506,9 @@ export const ProviderProductEdition = ({
524
506
  );
525
507
  setServicesData(parsedResponse);
526
508
  }
527
- !activeRetailer.id && setActiveRetailer(active ? active : retailers[0]);
509
+ retailers &&
510
+ !activeRetailer.id &&
511
+ setActiveRetailer(active ? active : retailers[0]);
528
512
  };
529
513
 
530
514
  const isRevision = () => {
@@ -600,7 +584,7 @@ export const ProviderProductEdition = ({
600
584
  });
601
585
  }
602
586
  setProduct(productTemp);
603
- setActivePercentage(retailers[0]?.percentage);
587
+ retailers && setActivePercentage(retailers[0]?.percentage);
604
588
  }, [percentages]);
605
589
 
606
590
  const loadInputs = () => {
@@ -844,32 +828,19 @@ export const ProviderProductEdition = ({
844
828
  }
845
829
  };
846
830
 
847
- const createComment = async (e, body, tab) => {
848
- let concept = "";
849
- switch (activeTab) {
850
- case "Ficha técnica":
851
- concept = "datasheet";
852
- break;
853
- case "Imágenes":
854
- concept = "images";
855
- break;
856
-
857
- default:
858
- concept = "description";
859
- break;
860
- }
831
+ const createComment = async (messages = [], retailerId) => {
861
832
  const data = {
862
- articleId: product?.id_article,
863
- orderId: product?.orderId,
864
- message: body,
865
- concept: concept,
866
- version: version,
867
- };
868
- await axios.post(`${process.env.REACT_APP_COMMENTS_ENDPOINT}`, data, {
869
- headers: {
870
- Authorization: token,
833
+ paramsBody: {
834
+ id: product.article.id_article || productEdit.ArticleId,
835
+ version: version,
836
+ items: messages,
837
+ retailerId: retailerId,
838
+ status: product.status || productEdit.product.status,
871
839
  },
872
- });
840
+ paramsHeader: { Authorization: token },
841
+ };
842
+ setMessage("");
843
+ return sendMessage(data);
873
844
  };
874
845
 
875
846
  useEffect(() => {
@@ -1294,8 +1265,7 @@ export const ProviderProductEdition = ({
1294
1265
  return;
1295
1266
  } else if (user.is_retailer) {
1296
1267
  if (product.id_order || product.orderId) {
1297
- setValidatedAll(true);
1298
- showGlobalModal("error");
1268
+ sendEvaluation("R");
1299
1269
  } else {
1300
1270
  setDataGenericModal((prev) => ({
1301
1271
  ...prev,
@@ -1307,8 +1277,7 @@ export const ProviderProductEdition = ({
1307
1277
  showGlobalModal("generic");
1308
1278
  }
1309
1279
  } else {
1310
- setValidatedAll(true);
1311
- showGlobalModal("error");
1280
+ sendEvaluation("R");
1312
1281
  }
1313
1282
  }
1314
1283
  };
@@ -1318,6 +1287,7 @@ export const ProviderProductEdition = ({
1318
1287
  <HeaderTop
1319
1288
  setHeaderTop={setHeaderTop}
1320
1289
  withChat={location?.state?.withChat}
1290
+ chatType={location?.state?.chatType}
1321
1291
  productSelected={productSelected}
1322
1292
  token={token}
1323
1293
  activeRetailer={activeRetailer}
@@ -1396,7 +1366,7 @@ export const ProviderProductEdition = ({
1396
1366
  } else if (user.is_retailer) {
1397
1367
  if (product.id_order || product.orderId) {
1398
1368
  setValidatedAll(true);
1399
- showGlobalModal("error");
1369
+ setShowRejectModal(true);
1400
1370
  } else {
1401
1371
  setDataGenericModal((prev) => ({
1402
1372
  ...prev,
@@ -1408,12 +1378,14 @@ export const ProviderProductEdition = ({
1408
1378
  showGlobalModal("generic");
1409
1379
  }
1410
1380
  } else {
1381
+ setShowRejectModal(true);
1411
1382
  setValidatedAll(true);
1412
- showGlobalModal("error");
1413
1383
  }
1414
1384
  }}
1415
1385
  approve={() => sendToEvaluation("A")}
1416
- reject={() => sendToEvaluation("R")}
1386
+ reject={() => {
1387
+ setShowRejectModal(true);
1388
+ }}
1417
1389
  />
1418
1390
  <FullTabsMenu
1419
1391
  tabsSections={tabsSections}
@@ -1533,87 +1505,41 @@ export const ProviderProductEdition = ({
1533
1505
  </>
1534
1506
  )}
1535
1507
  </div>
1536
- {isRevision() && getSectionStatus() ? (
1537
- <div className="commentary-box">
1538
- {!comment ? (
1539
- <div className="commentary">
1540
- <TagAndInput
1541
- label={"Caja de Comentario"}
1542
- inputType={"textarea"}
1543
- inputCols={80}
1544
- inputRows={4}
1545
- inputId={"commentary-box"}
1546
- index={0}
1547
- />
1548
- <div className="buttons-box">
1549
- <Button
1550
- buttonType={"general-transparent-button"}
1551
- label={"Enviar comentario"}
1552
- onClick={(e) =>
1553
- createComment(
1554
- e,
1555
- document.querySelector(
1556
- "#description-commentary-box-0 .ql-container .ql-editor > p"
1557
- ).innerHTML,
1558
- activeTab
1559
- )
1560
- }
1561
- />
1562
- </div>
1563
- </div>
1508
+ {!(isRevision() && getSectionStatus()) && !revision && (
1509
+ <div className="required-inputs-message">
1510
+ <div>
1511
+ <p>
1512
+ Los atributos son requeridos por las plataformas de las
1513
+ cadenas, es muy importante completar los campos requeridos ya
1514
+ que pueden rechazar el producto por falta de información.
1515
+ </p>
1516
+ </div>
1517
+ {inCart ? (
1518
+ <button type="button">
1519
+ <Link to="/checkout">
1520
+ <p>Articulo en carrito</p>
1521
+ <p>Ir a checkout</p>
1522
+ </Link>
1523
+ </button>
1564
1524
  ) : (
1565
- <div className="feedback-box">
1566
- <Commentary
1567
- comment={comment.message}
1568
- reviewed={crossComment}
1525
+ <>
1526
+ <SliderToolTip
1527
+ infoIcon={InfoIcon}
1528
+ slidefront={slidefront}
1529
+ iconSize={"big-image"}
1530
+ slidePosition={"top-slide"}
1569
1531
  />
1570
1532
  <Button
1571
- buttonType={"circular-button accept-button"}
1572
- onClick={async () => {
1573
- setCrossComment(true);
1574
- commentRevised();
1533
+ onClick={() => {
1534
+ setShowContentohRequestModal &&
1535
+ setShowContentohRequestModal(true);
1575
1536
  }}
1537
+ buttonType="general-default-button"
1538
+ label="Enviar a Content-oh!"
1576
1539
  />
1577
- </div>
1540
+ </>
1578
1541
  )}
1579
1542
  </div>
1580
- ) : (
1581
- !revision && (
1582
- <div className="required-inputs-message">
1583
- <div>
1584
- <p>
1585
- Los atributos son requeridos por las plataformas de las
1586
- cadenas, es muy importante completar los campos requeridos
1587
- ya que pueden rechazar el producto por falta de información.
1588
- </p>
1589
- </div>
1590
- {inCart ? (
1591
- <button type="button">
1592
- <Link to="/checkout">
1593
- <p>Articulo en carrito</p>
1594
- <p>Ir a checkout</p>
1595
- </Link>
1596
- </button>
1597
- ) : (
1598
- <>
1599
- <SliderToolTip
1600
- infoIcon={InfoIcon}
1601
- slidefront={slidefront}
1602
- iconSize={"big-image"}
1603
- slidePosition={"top-slide"}
1604
- />
1605
- <Button
1606
- onClick={() => {
1607
- setShowContentohRequestModal &&
1608
- setShowContentohRequestModal(true);
1609
- }}
1610
- buttonType="general-default-button"
1611
- label="Enviar a Content-oh!"
1612
- />
1613
- </>
1614
- )}
1615
- </div>
1616
- )
1617
1543
  )}
1618
1544
  </div>
1619
1545
  </div>
@@ -1656,6 +1582,48 @@ export const ProviderProductEdition = ({
1656
1582
  jwt={token}
1657
1583
  />
1658
1584
  )}
1585
+ {showRejectModal && (
1586
+ <Modal
1587
+ title={"Agregar mensaje de rechazo"}
1588
+ show={showRejectModal}
1589
+ customComponent={
1590
+ <TagAndInput
1591
+ inputType={"textarea"}
1592
+ inputId={"modal-message-box"}
1593
+ index={0}
1594
+ color={"white"}
1595
+ />
1596
+ }
1597
+ buttons={[
1598
+ <ButtonV2
1599
+ key={"btn-Cancelar"}
1600
+ type={"white"}
1601
+ label={"Cancelar"}
1602
+ size={12}
1603
+ onClick={() => {
1604
+ setShowRejectModal(false);
1605
+ }}
1606
+ />,
1607
+ <ButtonV2
1608
+ key={"btn-Aceptar"}
1609
+ type={"pink"}
1610
+ label={"Aceptar"}
1611
+ size={12}
1612
+ onClick={async () => {
1613
+ const body = document.querySelector(
1614
+ "#modal-message-box .ql-container .ql-editor > p"
1615
+ ).innerHTML;
1616
+ const messages = [
1617
+ { type: "message", value: body?.replace(/<.*?\/?>/gm, "") },
1618
+ ];
1619
+ await createComment(messages, activeRetailer.id);
1620
+ validatedAll ? validateAll("R") : sendToEvaluation("R");
1621
+ setShowRejectModal(false);
1622
+ }}
1623
+ />,
1624
+ ]}
1625
+ />
1626
+ )}
1659
1627
  </Container>
1660
1628
  );
1661
1629
  };
@@ -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,7 +16,7 @@ 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.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI5OGE0NzYxMy04ZGIyLTRlZjUtYjA0Mi01ZDU3MWRkZjIwMWIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4Mzg3NTIyNiwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4Mzg3ODgyNiwiaWF0IjoxNjgzODc1MjI2LCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.EtgmT_THMx-Zy_zB5yZK4gz6TXNTVVJEKFt5X0JK2UkGVrp_q_92YCEuejS4n976fyTez0jkwOee6IkVHLV71uZWRBDFt-3Yw4ZxfsZYPNJWhoHXGNxhMU8MCkSntfu597esBTk-VsUpstT5R7L-WJfN8viE7R-qVo-42RlPTG0TFrWA9q0oTcqjv8vbxLpOBUjiEpjmqRhg4blJZwgkGNta6MOlw1vfmisOVbo9wMvqwnCZ9xx9KMKoH9U4uNObK_JomjbvPmTmkcUXsE-wGSD7XcoSwtuhBngLC7-jiu1u8MvL_ff5Z0Qp70sSpLdUglcSS8d1Xf7j_fcZuJ5jKA",
20
20
  productSelected: {
21
21
  services: {
22
22
  datasheets: 1,
@@ -73,7 +73,11 @@ RetailerProductEditionDefault.args = {
73
73
  upc: "7543453453",
74
74
  },
75
75
  location: {
76
- product: { articleId: 39290, versionId: 7 },
76
+ product: { articleId: 354, versionId: 3 },
77
+ state: {
78
+ withChat: true,
79
+ chatType: "product_status",
80
+ },
77
81
  },
78
82
  user: {
79
83
  id_user: 37,
@@ -107,6 +111,6 @@ RetailerProductEditionDefault.args = {
107
111
  products_limit: "3",
108
112
  type: "PyMES",
109
113
  },
110
- src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1692750648813",
114
+ src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1691175586149",
111
115
  },
112
116
  };