contentoh-components-library 21.3.93 → 21.3.94
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 +0 -5
- package/.env.production +0 -3
- package/dist/components/atoms/Card/index.js +5 -46
- package/dist/components/atoms/Card/styles.js +1 -3
- package/dist/components/atoms/CheckBox/index.js +2 -4
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +11 -68
- package/dist/components/molecules/TagAndInput/index.js +1 -1
- package/dist/components/organisms/Chat/Chat.stories.js +8 -27
- package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +197 -350
- package/dist/components/organisms/Chat/Footer/index.js +39 -48
- package/dist/components/organisms/Chat/index.js +4 -49
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +96 -171
- package/dist/components/pages/ProviderProductEdition/index.js +175 -188
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +28 -40
- package/dist/components/pages/RetailerProductEdition/index.js +273 -265
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
- package/dist/index.js +12 -51
- package/package.json +1 -3
- package/src/components/atoms/Card/index.js +2 -35
- package/src/components/atoms/Card/styles.js +5 -41
- package/src/components/atoms/CheckBox/index.js +0 -2
- package/src/components/atoms/InputFormatter/styles.js +1 -2
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/molecules/TagAndInput/index.js +8 -10
- package/src/components/organisms/Chat/Chat.stories.js +7 -27
- package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
- package/src/components/organisms/Chat/ContainerItems/styles.js +2 -10
- package/src/components/organisms/Chat/ContentChat/index.js +12 -88
- package/src/components/organisms/Chat/Footer/index.js +0 -11
- package/src/components/organisms/Chat/index.js +4 -46
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/Modal/styles.js +1 -4
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +98 -181
- package/src/components/pages/ProviderProductEdition/index.js +129 -132
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +26 -38
- package/src/components/pages/RetailerProductEdition/index.js +135 -109
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
- package/src/index.js +0 -3
- package/src/components/molecules/StripeCardForm/StripeCardForm.stories.js +0 -13
- package/src/components/molecules/StripeCardForm/index.js +0 -42
- package/src/components/molecules/StripeCardForm/paymentForm.js +0 -124
- package/src/components/molecules/StripeCardForm/styles.js +0 -73
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +0 -12
- package/src/components/molecules/StripeCardSelector/index.js +0 -44
- package/src/components/molecules/StripeCardSelector/styles.js +0 -4
- package/src/components/molecules/StripeCardSelector/utils.js +0 -17
- package/src/components/organisms/SideModal/SideModal.stories.js +0 -23
- package/src/components/organisms/SideModal/index.js +0 -50
- package/src/components/organisms/SideModal/styles.js +0 -30
|
@@ -39,9 +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
42
|
|
|
46
43
|
const reducerImages = (state, action) => {
|
|
47
44
|
let { values, attrForImgs, inputsByRetailer } = state;
|
|
@@ -217,7 +214,6 @@ export const ProviderProductEdition = ({
|
|
|
217
214
|
const isRetailer = user?.is_retailer;
|
|
218
215
|
const [loading, setLoading] = useState(true);
|
|
219
216
|
const [validatedAll, setValidatedAll] = useState(false);
|
|
220
|
-
const [showRejectModal, setShowRejectModal] = useState(false);
|
|
221
217
|
|
|
222
218
|
const [origin, setOrigin] = useState({
|
|
223
219
|
"Ficha técnica": null,
|
|
@@ -347,6 +343,28 @@ export const ProviderProductEdition = ({
|
|
|
347
343
|
(type) => {
|
|
348
344
|
const formatter = new Intl.ListFormat("es", { type: "conjunction" });
|
|
349
345
|
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;
|
|
350
368
|
case "generic":
|
|
351
369
|
setGlobalModal(dataGenericModal);
|
|
352
370
|
break;
|
|
@@ -506,9 +524,7 @@ export const ProviderProductEdition = ({
|
|
|
506
524
|
);
|
|
507
525
|
setServicesData(parsedResponse);
|
|
508
526
|
}
|
|
509
|
-
|
|
510
|
-
!activeRetailer.id &&
|
|
511
|
-
setActiveRetailer(active ? active : retailers[0]);
|
|
527
|
+
!activeRetailer.id && setActiveRetailer(active ? active : retailers[0]);
|
|
512
528
|
};
|
|
513
529
|
|
|
514
530
|
const isRevision = () => {
|
|
@@ -584,7 +600,7 @@ export const ProviderProductEdition = ({
|
|
|
584
600
|
});
|
|
585
601
|
}
|
|
586
602
|
setProduct(productTemp);
|
|
587
|
-
|
|
603
|
+
setActivePercentage(retailers[0]?.percentage);
|
|
588
604
|
}, [percentages]);
|
|
589
605
|
|
|
590
606
|
const loadInputs = () => {
|
|
@@ -825,19 +841,32 @@ export const ProviderProductEdition = ({
|
|
|
825
841
|
}
|
|
826
842
|
};
|
|
827
843
|
|
|
828
|
-
const createComment = async (
|
|
844
|
+
const createComment = async (e, body, tab) => {
|
|
845
|
+
let concept = "";
|
|
846
|
+
switch (activeTab) {
|
|
847
|
+
case "Ficha técnica":
|
|
848
|
+
concept = "datasheet";
|
|
849
|
+
break;
|
|
850
|
+
case "Imágenes":
|
|
851
|
+
concept = "images";
|
|
852
|
+
break;
|
|
853
|
+
|
|
854
|
+
default:
|
|
855
|
+
concept = "description";
|
|
856
|
+
break;
|
|
857
|
+
}
|
|
829
858
|
const data = {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
status: product.status || productEdit.product.status,
|
|
836
|
-
},
|
|
837
|
-
paramsHeader: { Authorization: token },
|
|
859
|
+
articleId: product?.id_article,
|
|
860
|
+
orderId: product?.orderId,
|
|
861
|
+
message: body,
|
|
862
|
+
concept: concept,
|
|
863
|
+
version: version,
|
|
838
864
|
};
|
|
839
|
-
|
|
840
|
-
|
|
865
|
+
await axios.post(`${process.env.REACT_APP_COMMENTS_ENDPOINT}`, data, {
|
|
866
|
+
headers: {
|
|
867
|
+
Authorization: token,
|
|
868
|
+
},
|
|
869
|
+
});
|
|
841
870
|
};
|
|
842
871
|
|
|
843
872
|
useEffect(() => {
|
|
@@ -1037,27 +1066,6 @@ export const ProviderProductEdition = ({
|
|
|
1037
1066
|
const { newArticleStatus, newServiceStatus, newStatus } = JSON.parse(
|
|
1038
1067
|
res.data.body
|
|
1039
1068
|
);
|
|
1040
|
-
|
|
1041
|
-
const message = createMessage(
|
|
1042
|
-
product.retailers || product.retailersAvailable,
|
|
1043
|
-
activeRetailer.id,
|
|
1044
|
-
product[sectionStatusKey],
|
|
1045
|
-
newStatus,
|
|
1046
|
-
activeTab
|
|
1047
|
-
);
|
|
1048
|
-
|
|
1049
|
-
const messageData = {
|
|
1050
|
-
paramsBody: {
|
|
1051
|
-
id: product.article.id_article || productEdit.ArticleId,
|
|
1052
|
-
version: version,
|
|
1053
|
-
items: [{ type: "status", value: message }],
|
|
1054
|
-
retailerId: activeRetailer.id,
|
|
1055
|
-
status: product.status || productEdit.product.status,
|
|
1056
|
-
},
|
|
1057
|
-
paramsHeader: { Authorization: token },
|
|
1058
|
-
};
|
|
1059
|
-
await sendMessage(messageData);
|
|
1060
|
-
|
|
1061
1069
|
if (newArticleStatus) productTemp.status = newArticleStatus[articleId];
|
|
1062
1070
|
const retailerStatusCopy = { ...retailerStatus };
|
|
1063
1071
|
retailerStatusCopy[activeRetailer.id][concept] = newStatus;
|
|
@@ -1089,7 +1097,6 @@ export const ProviderProductEdition = ({
|
|
|
1089
1097
|
result,
|
|
1090
1098
|
isAproved: result === "A",
|
|
1091
1099
|
};
|
|
1092
|
-
const messages = [];
|
|
1093
1100
|
servicesData?.forEach((ret) => {
|
|
1094
1101
|
const { service, id_retailer } = ret;
|
|
1095
1102
|
let data = {};
|
|
@@ -1106,18 +1113,6 @@ export const ProviderProductEdition = ({
|
|
|
1106
1113
|
},
|
|
1107
1114
|
})
|
|
1108
1115
|
);
|
|
1109
|
-
if (product[`${ret.service}_status`] !== "NS") {
|
|
1110
|
-
const message = createMessage(
|
|
1111
|
-
product.retailers,
|
|
1112
|
-
ret.id_retailer,
|
|
1113
|
-
product[`${ret.service}_status`],
|
|
1114
|
-
`${result}A`,
|
|
1115
|
-
ret.service
|
|
1116
|
-
);
|
|
1117
|
-
messages.push(
|
|
1118
|
-
createComment([{ type: "status", value: message }], ret.id_retailer)
|
|
1119
|
-
);
|
|
1120
|
-
}
|
|
1121
1116
|
});
|
|
1122
1117
|
await Promise.all(evaluationArray);
|
|
1123
1118
|
const userType = user.is_retailer === 1 ? "CA" : "P";
|
|
@@ -1157,7 +1152,6 @@ export const ProviderProductEdition = ({
|
|
|
1157
1152
|
product: productTemp,
|
|
1158
1153
|
})
|
|
1159
1154
|
);
|
|
1160
|
-
await Promise.all(messages);
|
|
1161
1155
|
|
|
1162
1156
|
await loadData();
|
|
1163
1157
|
} catch (error) {
|
|
@@ -1286,7 +1280,8 @@ export const ProviderProductEdition = ({
|
|
|
1286
1280
|
return;
|
|
1287
1281
|
} else if (user.is_retailer) {
|
|
1288
1282
|
if (product.id_order || product.orderId) {
|
|
1289
|
-
|
|
1283
|
+
setValidatedAll(true);
|
|
1284
|
+
showGlobalModal("error");
|
|
1290
1285
|
} else {
|
|
1291
1286
|
setDataGenericModal((prev) => ({
|
|
1292
1287
|
...prev,
|
|
@@ -1298,7 +1293,8 @@ export const ProviderProductEdition = ({
|
|
|
1298
1293
|
showGlobalModal("generic");
|
|
1299
1294
|
}
|
|
1300
1295
|
} else {
|
|
1301
|
-
|
|
1296
|
+
setValidatedAll(true);
|
|
1297
|
+
showGlobalModal("error");
|
|
1302
1298
|
}
|
|
1303
1299
|
}
|
|
1304
1300
|
};
|
|
@@ -1308,7 +1304,6 @@ export const ProviderProductEdition = ({
|
|
|
1308
1304
|
<HeaderTop
|
|
1309
1305
|
setHeaderTop={setHeaderTop}
|
|
1310
1306
|
withChat={location?.state?.withChat}
|
|
1311
|
-
chatType={location?.state?.chatType}
|
|
1312
1307
|
productSelected={productSelected}
|
|
1313
1308
|
token={token}
|
|
1314
1309
|
activeRetailer={activeRetailer}
|
|
@@ -1387,7 +1382,7 @@ export const ProviderProductEdition = ({
|
|
|
1387
1382
|
} else if (user.is_retailer) {
|
|
1388
1383
|
if (product.id_order || product.orderId) {
|
|
1389
1384
|
setValidatedAll(true);
|
|
1390
|
-
|
|
1385
|
+
showGlobalModal("error");
|
|
1391
1386
|
} else {
|
|
1392
1387
|
setDataGenericModal((prev) => ({
|
|
1393
1388
|
...prev,
|
|
@@ -1399,14 +1394,12 @@ export const ProviderProductEdition = ({
|
|
|
1399
1394
|
showGlobalModal("generic");
|
|
1400
1395
|
}
|
|
1401
1396
|
} else {
|
|
1402
|
-
setShowRejectModal(true);
|
|
1403
1397
|
setValidatedAll(true);
|
|
1398
|
+
showGlobalModal("error");
|
|
1404
1399
|
}
|
|
1405
1400
|
}}
|
|
1406
1401
|
approve={() => sendToEvaluation("A")}
|
|
1407
|
-
reject={() =>
|
|
1408
|
-
setShowRejectModal(true);
|
|
1409
|
-
}}
|
|
1402
|
+
reject={() => sendToEvaluation("R")}
|
|
1410
1403
|
/>
|
|
1411
1404
|
<FullTabsMenu
|
|
1412
1405
|
tabsSections={tabsSections}
|
|
@@ -1526,41 +1519,87 @@ export const ProviderProductEdition = ({
|
|
|
1526
1519
|
</>
|
|
1527
1520
|
)}
|
|
1528
1521
|
</div>
|
|
1529
|
-
{
|
|
1530
|
-
<div className="
|
|
1531
|
-
|
|
1532
|
-
<
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
<
|
|
1543
|
-
|
|
1544
|
-
|
|
1522
|
+
{isRevision() && getSectionStatus() ? (
|
|
1523
|
+
<div className="commentary-box">
|
|
1524
|
+
{!comment ? (
|
|
1525
|
+
<div className="commentary">
|
|
1526
|
+
<TagAndInput
|
|
1527
|
+
label={"Caja de Comentario"}
|
|
1528
|
+
inputType={"textarea"}
|
|
1529
|
+
inputCols={80}
|
|
1530
|
+
inputRows={4}
|
|
1531
|
+
inputId={"commentary-box"}
|
|
1532
|
+
index={0}
|
|
1533
|
+
/>
|
|
1534
|
+
<div className="buttons-box">
|
|
1535
|
+
<Button
|
|
1536
|
+
buttonType={"general-transparent-button"}
|
|
1537
|
+
label={"Enviar comentario"}
|
|
1538
|
+
onClick={(e) =>
|
|
1539
|
+
createComment(
|
|
1540
|
+
e,
|
|
1541
|
+
document.querySelector(
|
|
1542
|
+
"#description-commentary-box-0 .ql-container .ql-editor > p"
|
|
1543
|
+
).innerHTML,
|
|
1544
|
+
activeTab
|
|
1545
|
+
)
|
|
1546
|
+
}
|
|
1547
|
+
/>
|
|
1548
|
+
</div>
|
|
1549
|
+
</div>
|
|
1545
1550
|
) : (
|
|
1546
|
-
|
|
1547
|
-
<
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
iconSize={"big-image"}
|
|
1551
|
-
slidePosition={"top-slide"}
|
|
1551
|
+
<div className="feedback-box">
|
|
1552
|
+
<Commentary
|
|
1553
|
+
comment={comment.message}
|
|
1554
|
+
reviewed={crossComment}
|
|
1552
1555
|
/>
|
|
1553
1556
|
<Button
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
+
buttonType={"circular-button accept-button"}
|
|
1558
|
+
onClick={async () => {
|
|
1559
|
+
setCrossComment(true);
|
|
1560
|
+
commentRevised();
|
|
1557
1561
|
}}
|
|
1558
|
-
buttonType="general-default-button"
|
|
1559
|
-
label="Enviar a Content-oh!"
|
|
1560
1562
|
/>
|
|
1561
|
-
|
|
1563
|
+
</div>
|
|
1562
1564
|
)}
|
|
1563
1565
|
</div>
|
|
1566
|
+
) : (
|
|
1567
|
+
!revision && (
|
|
1568
|
+
<div className="required-inputs-message">
|
|
1569
|
+
<div>
|
|
1570
|
+
<p>
|
|
1571
|
+
Los atributos son requeridos por las plataformas de las
|
|
1572
|
+
cadenas, es muy importante completar los campos requeridos
|
|
1573
|
+
ya que pueden rechazar el producto por falta de información.
|
|
1574
|
+
</p>
|
|
1575
|
+
</div>
|
|
1576
|
+
{inCart ? (
|
|
1577
|
+
<button type="button">
|
|
1578
|
+
<Link to="/checkout">
|
|
1579
|
+
<p>Articulo en carrito</p>
|
|
1580
|
+
<p>Ir a checkout</p>
|
|
1581
|
+
</Link>
|
|
1582
|
+
</button>
|
|
1583
|
+
) : (
|
|
1584
|
+
<>
|
|
1585
|
+
<SliderToolTip
|
|
1586
|
+
infoIcon={InfoIcon}
|
|
1587
|
+
slidefront={slidefront}
|
|
1588
|
+
iconSize={"big-image"}
|
|
1589
|
+
slidePosition={"top-slide"}
|
|
1590
|
+
/>
|
|
1591
|
+
<Button
|
|
1592
|
+
onClick={() => {
|
|
1593
|
+
setShowContentohRequestModal &&
|
|
1594
|
+
setShowContentohRequestModal(true);
|
|
1595
|
+
}}
|
|
1596
|
+
buttonType="general-default-button"
|
|
1597
|
+
label="Enviar a Content-oh!"
|
|
1598
|
+
/>
|
|
1599
|
+
</>
|
|
1600
|
+
)}
|
|
1601
|
+
</div>
|
|
1602
|
+
)
|
|
1564
1603
|
)}
|
|
1565
1604
|
</div>
|
|
1566
1605
|
</div>
|
|
@@ -1603,48 +1642,6 @@ export const ProviderProductEdition = ({
|
|
|
1603
1642
|
jwt={token}
|
|
1604
1643
|
/>
|
|
1605
1644
|
)}
|
|
1606
|
-
{showRejectModal && (
|
|
1607
|
-
<Modal
|
|
1608
|
-
title={"Agregar mensaje de rechazo"}
|
|
1609
|
-
show={showRejectModal}
|
|
1610
|
-
customComponent={
|
|
1611
|
-
<TagAndInput
|
|
1612
|
-
inputType={"textarea"}
|
|
1613
|
-
inputId={"modal-message-box"}
|
|
1614
|
-
index={0}
|
|
1615
|
-
color={"white"}
|
|
1616
|
-
/>
|
|
1617
|
-
}
|
|
1618
|
-
buttons={[
|
|
1619
|
-
<ButtonV2
|
|
1620
|
-
key={"btn-Cancelar"}
|
|
1621
|
-
type={"white"}
|
|
1622
|
-
label={"Cancelar"}
|
|
1623
|
-
size={12}
|
|
1624
|
-
onClick={() => {
|
|
1625
|
-
setShowRejectModal(false);
|
|
1626
|
-
}}
|
|
1627
|
-
/>,
|
|
1628
|
-
<ButtonV2
|
|
1629
|
-
key={"btn-Aceptar"}
|
|
1630
|
-
type={"pink"}
|
|
1631
|
-
label={"Aceptar"}
|
|
1632
|
-
size={12}
|
|
1633
|
-
onClick={async () => {
|
|
1634
|
-
const body = document.querySelector(
|
|
1635
|
-
"#modal-message-box .ql-container .ql-editor > p"
|
|
1636
|
-
).innerHTML;
|
|
1637
|
-
const messages = [
|
|
1638
|
-
{ type: "message", value: body?.replace(/<.*?\/?>/gm, "") },
|
|
1639
|
-
];
|
|
1640
|
-
await createComment(messages, activeRetailer.id);
|
|
1641
|
-
validatedAll ? validateAll("R") : sendToEvaluation("R");
|
|
1642
|
-
setShowRejectModal(false);
|
|
1643
|
-
}}
|
|
1644
|
-
/>,
|
|
1645
|
-
]}
|
|
1646
|
-
/>
|
|
1647
|
-
)}
|
|
1648
1645
|
</Container>
|
|
1649
1646
|
);
|
|
1650
1647
|
};
|
|
@@ -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
|
+
`;
|
|
@@ -16,41 +16,26 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMDg3NDM4YWI1YjYiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImE2YzRkM2Q2LTI0YTQtNDFkNC1hZDBmLWQwODc0MzhhYjViNiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyYjU3MjZlMy04MjM2LTRmYzMtODBkMi05NWVmYmU4ODdjOTYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MjAxNjI5MSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MjAxOTg5MSwiaWF0IjoxNjgyMDE2MjkxLCJlbWFpbCI6ImV0Y0Bjb250ZW50b2guY29tIn0.SCj_yp1NkGCED59JHoDSdFAOakIOvZVeC0yLwt9z0BtenDXlU0m5cUofQQonnWPM8Q70yMFEkyMGI9kQs_fz1gxrmrSc2FGefn3B_1Vymq3pQ_S1JrY_syYf88m_GtJKOywEnE6--Ef9lZhFBFKGtqRJ4H8JBa9Xb96uCjAKyEMCSURDlw37pk2RQdULlZPj17Zb6Xrqi2lwrhpI1ByptX3__UoTiZklnTXwIxM4JdU7yuhXLznaEH8NOSd2Jw-CV6FCUbYBHlnRYBQg7B5mwyVKtDQm6QpRgBTBPCvljJJpFjRKUcnon8WZiFXx1qVbkWPt2vCT1TZqqoSLdlP6lA",
|
|
20
20
|
productSelected: {
|
|
21
|
-
orderId:
|
|
22
|
-
status: "
|
|
23
|
-
datasheet_status: "
|
|
21
|
+
orderId: 15160,
|
|
22
|
+
status: "SAC",
|
|
23
|
+
datasheet_status: "SAC",
|
|
24
24
|
prio: "none",
|
|
25
|
-
version:
|
|
26
|
-
description_status: "
|
|
27
|
-
images_status: "
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
6: {
|
|
40
|
-
description: "RA/AC",
|
|
41
|
-
images: "RA/AC",
|
|
42
|
-
datasheet: "RA/AC",
|
|
43
|
-
},
|
|
44
|
-
12: {
|
|
45
|
-
datasheet: "RA/AC",
|
|
46
|
-
description: "RA/AC",
|
|
47
|
-
images: "RA/AC",
|
|
48
|
-
},
|
|
49
|
-
17: {
|
|
50
|
-
datasheet: "RA/AC",
|
|
51
|
-
description: "RA/AC",
|
|
52
|
-
images: "RA/AC",
|
|
53
|
-
},
|
|
25
|
+
version: 7,
|
|
26
|
+
description_status: "SAC",
|
|
27
|
+
images_status: "SAC",
|
|
28
|
+
brand: null,
|
|
29
|
+
retailerOrder: 1,
|
|
30
|
+
missing: {
|
|
31
|
+
datasheet: null,
|
|
32
|
+
descriptions: null,
|
|
33
|
+
images: null,
|
|
34
|
+
},
|
|
35
|
+
services: {
|
|
36
|
+
datasheets: 1,
|
|
37
|
+
descriptions: 1,
|
|
38
|
+
images: 1,
|
|
54
39
|
},
|
|
55
40
|
article: {
|
|
56
41
|
category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
@@ -80,13 +65,16 @@ RetailerProductEditionDefault.args = {
|
|
|
80
65
|
name: "The Home Depot Merchants",
|
|
81
66
|
},
|
|
82
67
|
],
|
|
68
|
+
statusByRetailer: {
|
|
69
|
+
58: {
|
|
70
|
+
datasheet: "SAC",
|
|
71
|
+
description: "SAC",
|
|
72
|
+
images: "SAC",
|
|
73
|
+
},
|
|
74
|
+
},
|
|
83
75
|
},
|
|
84
76
|
location: {
|
|
85
|
-
product: { articleId:
|
|
86
|
-
state: {
|
|
87
|
-
withChat: true,
|
|
88
|
-
chatType: "product_status",
|
|
89
|
-
},
|
|
77
|
+
product: { articleId: 39290, versionId: 7 },
|
|
90
78
|
},
|
|
91
79
|
user: {
|
|
92
80
|
id_user: 51,
|