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.
- package/.env.development +5 -2
- package/.env.production +3 -1
- package/dist/components/atoms/Avatar/index.js +3 -2
- package/dist/components/atoms/Card/index.js +46 -5
- package/dist/components/atoms/Card/styles.js +3 -1
- package/dist/components/atoms/CheckBox/index.js +7 -2
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/atoms/SliderToolTip/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +68 -11
- package/dist/components/molecules/TagAndInput/index.js +1 -1
- package/dist/components/organisms/Chat/Chat.stories.js +27 -8
- package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +350 -197
- package/dist/components/organisms/Chat/Footer/index.js +48 -39
- package/dist/components/organisms/Chat/index.js +49 -4
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/organisms/PanelLayout/PanelLayout.stories.js +87 -0
- package/dist/components/organisms/PanelLayout/index.js +29 -0
- package/dist/components/organisms/PanelLayout/styles.js +32 -0
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +60 -116
- package/dist/components/pages/ProviderProductEdition/index.js +117 -142
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +8 -4
- package/dist/components/pages/RetailerProductEdition/index.js +316 -308
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
- package/dist/index.js +247 -52
- package/package.json +4 -1
- package/src/components/atoms/Avatar/index.js +8 -2
- package/src/components/atoms/Card/index.js +35 -2
- package/src/components/atoms/Card/styles.js +41 -5
- package/src/components/atoms/CheckBox/index.js +4 -1
- package/src/components/atoms/CheckBox/styles.js +2 -0
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +76 -0
- package/src/components/atoms/ImageCarousel/index.js +103 -0
- package/src/components/atoms/ImageCarousel/styles.js +79 -0
- package/src/components/atoms/InputFormatter/styles.js +2 -1
- package/src/components/atoms/PercentTag/PercentTag.stories.js +7 -0
- package/src/components/atoms/PercentTag/index.js +9 -0
- package/src/components/atoms/PercentTag/styles.js +69 -0
- package/src/components/atoms/RatingStars/RatingStars.stories.js +10 -0
- package/src/components/atoms/RatingStars/index.js +31 -0
- package/src/components/atoms/RatingStars/styles.js +28 -0
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +36 -0
- package/src/components/atoms/RetailerCatalog/index.js +49 -0
- package/src/components/atoms/RetailerCatalog/styles.js +30 -0
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +15 -0
- package/src/components/atoms/RetailerOption/index.js +53 -0
- package/src/components/atoms/RetailerOption/styles.js +41 -0
- package/src/components/atoms/RetailersList/RetailersList.stories.js +33 -0
- package/src/components/atoms/RetailersList/index.js +20 -0
- package/src/components/atoms/RetailersList/styles.js +19 -0
- package/src/components/atoms/SliderToolTip/styles.js +1 -1
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +67 -0
- package/src/components/atoms/UserCatalog/index.js +100 -0
- package/src/components/atoms/UserCatalog/styles.js +24 -0
- package/src/components/atoms/UserOption/UserOption.stories.js +25 -0
- package/src/components/atoms/UserOption/index.js +95 -0
- package/src/components/atoms/UserOption/styles.js +61 -0
- package/src/components/atoms/UserSelector/UserSelector.stories.js +25 -0
- package/src/components/atoms/UserSelector/index.js +86 -0
- package/src/components/atoms/UserSelector/styles.js +55 -0
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/GridItem/GridItem.stories.js +126 -0
- package/src/components/molecules/GridItem/index.js +105 -0
- package/src/components/molecules/GridItem/styles.js +104 -0
- package/src/components/molecules/HeaderItem/ColumnItem.js +9 -0
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +24 -0
- package/src/components/molecules/HeaderItem/index.js +26 -0
- package/src/components/molecules/HeaderItem/styles.js +27 -0
- package/src/components/molecules/HeaderTop/index.js +52 -6
- package/src/components/molecules/RowItem/ColumnItem.js +9 -0
- package/src/components/molecules/RowItem/RowItem.stories.js +5660 -0
- package/src/components/molecules/RowItem/index.js +45 -0
- package/src/components/molecules/RowItem/styles.js +40 -0
- package/src/components/molecules/StripeCardForm/StripeCardForm.stories.js +13 -0
- package/src/components/molecules/StripeCardForm/index.js +42 -0
- package/src/components/molecules/StripeCardForm/paymentForm.js +124 -0
- package/src/components/molecules/StripeCardForm/styles.js +73 -0
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +12 -0
- package/src/components/molecules/StripeCardSelector/index.js +44 -0
- package/src/components/molecules/StripeCardSelector/styles.js +4 -0
- package/src/components/molecules/StripeCardSelector/utils.js +17 -0
- package/src/components/molecules/TagAndInput/index.js +10 -8
- package/src/components/organisms/Chat/Chat.stories.js +27 -7
- package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
- package/src/components/organisms/Chat/ContainerItems/styles.js +10 -2
- package/src/components/organisms/Chat/ContentChat/index.js +88 -12
- package/src/components/organisms/Chat/Footer/index.js +11 -0
- package/src/components/organisms/Chat/index.js +46 -4
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/GridProducts/GridProducts.stories.js +5485 -0
- package/src/components/organisms/GridProducts/index.js +50 -0
- package/src/components/organisms/GridProducts/styles.js +14 -0
- package/src/components/organisms/GridProducts/utils.js +111 -0
- package/src/components/organisms/Modal/styles.js +4 -1
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +6 -16
- package/src/components/organisms/PanelLayout/PanelLayout.stories.js +63 -0
- package/src/components/organisms/PanelLayout/index.js +11 -0
- package/src/components/organisms/PanelLayout/styles.js +39 -0
- package/src/components/organisms/SideModal/SideModal.stories.js +23 -0
- package/src/components/organisms/SideModal/index.js +50 -0
- package/src/components/organisms/SideModal/styles.js +30 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +66 -116
- package/src/components/pages/ProviderProductEdition/index.js +97 -129
- package/src/components/pages/ProviderProductEdition/styles.js +5 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +7 -3
- package/src/components/pages/RetailerProductEdition/index.js +158 -184
- package/src/components/pages/RetailerProductEdition/styles.js +4 -0
- package/src/components/pages/RetailerProductEdition/utils.js +37 -0
- 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
|
-
|
|
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 (
|
|
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
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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={() =>
|
|
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="
|
|
1538
|
-
|
|
1539
|
-
<
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
<
|
|
1550
|
-
|
|
1551
|
-
|
|
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
|
-
|
|
1566
|
-
<
|
|
1567
|
-
|
|
1568
|
-
|
|
1525
|
+
<>
|
|
1526
|
+
<SliderToolTip
|
|
1527
|
+
infoIcon={InfoIcon}
|
|
1528
|
+
slidefront={slidefront}
|
|
1529
|
+
iconSize={"big-image"}
|
|
1530
|
+
slidePosition={"top-slide"}
|
|
1569
1531
|
/>
|
|
1570
1532
|
<Button
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
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
|
-
|
|
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.
|
|
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:
|
|
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?
|
|
114
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1691175586149",
|
|
111
115
|
},
|
|
112
116
|
};
|