contentoh-components-library 21.2.89 → 21.2.91

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 (32) hide show
  1. package/.env.development +1 -3
  2. package/dist/components/atoms/ButtonV2/index.js +2 -2
  3. package/dist/components/atoms/ProgressBar/styles.js +1 -1
  4. package/dist/components/organisms/Chat/ContainerItems/index.js +3 -6
  5. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  6. package/dist/components/pages/Dashboard/Dashboard.stories.js +44 -16
  7. package/dist/components/pages/Dashboard/index.js +17 -10
  8. package/dist/components/pages/ProviderProductEdition/index.js +2 -3
  9. package/dist/components/pages/RetailerProductEdition/index.js +7 -4
  10. package/package.json +1 -1
  11. package/src/components/atoms/ButtonV2/index.js +2 -2
  12. package/src/components/atoms/ProgressBar/styles.js +4 -3
  13. package/src/components/organisms/Chat/ContainerItems/index.js +3 -5
  14. package/src/components/organisms/Chat/ContainerItems/styles.js +5 -13
  15. package/src/components/pages/Dashboard/Dashboard.stories.js +47 -16
  16. package/src/components/pages/Dashboard/index.js +13 -4
  17. package/src/components/pages/ProviderProductEdition/index.js +7 -6
  18. package/src/components/pages/RetailerProductEdition/index.js +4 -5
  19. package/src/assets/images/chatPopup/Spinner.gif +0 -0
  20. package/src/assets/images/chatPopup/close.svg +0 -3
  21. package/src/assets/images/chatPopup/defaultImage.png +0 -0
  22. package/src/assets/images/chatPopup/defaultProfile.png +0 -0
  23. package/src/assets/images/chatPopup/doc.svg +0 -1
  24. package/src/assets/images/chatPopup/document.svg +0 -1
  25. package/src/assets/images/chatPopup/iconChat.svg +0 -19
  26. package/src/assets/images/chatPopup/iconPlus.svg +0 -3
  27. package/src/assets/images/chatPopup/pdf.svg +0 -75
  28. package/src/assets/images/chatPopup/remove.svg +0 -4
  29. package/src/assets/images/chatPopup/send.svg +0 -3
  30. package/src/assets/images/chatPopup/svgIcon.svg +0 -109
  31. package/src/assets/images/chatPopup/upload_file.svg +0 -3
  32. package/src/assets/images/chatPopup/xls.svg +0 -53
package/.env.development CHANGED
@@ -24,10 +24,8 @@ REACT_APP_PENDING_INVITATIONS=https://fc069ovhuk.execute-api.us-east-1.amazonaws
24
24
  REACT_APP_PRODUCTS_CHAT_ENDPOINT=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/products-chat
25
25
  REACT_APP_TICKETS_CHAT_ENDPOINT=https://ocqbzaa4a2.execute-api.us-east-1.amazonaws.com/dev/ticket-chat
26
26
  REACT_APP_IMAGES_ENDPOINT=https://content-management-images.s3.amazonaws.com
27
- REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
28
- REACT_APP_ACCESS_KEY_UPLOAD_TO_S3=tZDdrmvwxM1cScspfxFM3XpU4HSYrCNPazyHd0BL
29
- REACT_APP_IMAGES_BUCKET=content-management-images
30
27
 
28
+ REACT_APP_IMAGES_BUCKET=content-management-images
31
29
  REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
32
30
  REACT_APP_IMAGES_PROFILE_BUCKET=content-management-profile
33
31
  REACT_APP_ACCESS_KEY_UPLOAD_TO_S3=tZDdrmvwxM1cScspfxFM3XpU4HSYrCNPazyHd0BL
@@ -25,7 +25,7 @@ var _jsxRuntime = require("react/jsx-runtime");
25
25
 
26
26
  var ButtonV2 = function ButtonV2(props) {
27
27
  var id = props.id,
28
- key = props.key,
28
+ keyId = props.keyId,
29
29
  className = props.className,
30
30
  disabled = props.disabled,
31
31
  type = props.type,
@@ -105,7 +105,7 @@ var ButtonV2 = function ButtonV2(props) {
105
105
  }), label && label]
106
106
  })
107
107
  })
108
- }, key);
108
+ }, keyId);
109
109
  };
110
110
 
111
111
  exports.ButtonV2 = ButtonV2;
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
15
15
 
16
16
  var _templateObject;
17
17
 
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n width: fit-content;\n height: 27px;\n padding: 4px;\n border-radius: 15px;\n font-family: ", ";\n font-weight: 600;\n font-size: 14px;\n line-height: 19px;\n color: ", ";\n\n &.status-CA {\n background-color: ", ";\n }\n\n &.status-R,\n &.status-AS {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-ACA,\n &.status-AC {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RC,\n &.status-RP,\n &.status-RCA {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n"])), _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, function (backgroundColor) {
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n width: fit-content;\n height: 27px;\n padding: 4px;\n border-radius: 15px;\n font-family: ", ";\n font-weight: 600;\n font-size: 14px;\n line-height: 19px;\n color: ", ";\n\n &.status-CA,\n &.status-AS,\n &.status-PA {\n background-color: ", ";\n }\n\n &.status-R {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-ACA,\n &.status-AC {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RC,\n &.status-RP,\n &.status-RCA {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n"])), _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, function (backgroundColor) {
19
19
  return backgroundColor === "s2" || backgroundColor === "s1" ? _variables.GlobalColors.s4 : _variables.GlobalColors.white;
20
20
  }, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
21
21
 
@@ -336,12 +336,9 @@ var ContainerItems = function ContainerItems(props) {
336
336
  icon: _freeSolidSvgIcons.faUser
337
337
  }),
338
338
  classNameTooltip: "tooltip-imgUser",
339
- componentTooltip: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
340
- className: "container",
341
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
342
- className: "label-nameUser",
343
- children: users[item.userId].name
344
- })
339
+ componentTooltip: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
340
+ className: "label-nameUser",
341
+ children: users[item.userId].name
345
342
  })
346
343
  }), item.type === "message" ? renderMessage(item) : item.type === "comment" ? renderComment(item) : item.type === "img" ? renderImg(item) : item.type === "file" ? renderFile(item, ownMessage) : item.type === "statusTicket" ? renderStatusTicket(item) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
347
344
  className: "label-time",
@@ -15,6 +15,6 @@ var _variables = require("../../../../global-files/variables");
15
15
 
16
16
  var _templateObject;
17
17
 
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n max-height: 100%;\n flex-grow: 2;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: 8px;\n background: white;\n padding: 15px 11px;\n overflow: auto;\n //border: 1px solid red;\n\n .btn-loadMore {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n flex-grow: 2;\n\n .container-btnLoadMore {\n border-radius: 10px;\n .button {\n padding: 5px 10px;\n border: none;\n gap: 10px;\n font-family: ", ";\n .icon,\n .iconLoading {\n font-size: 10px;\n }\n }\n }\n }\n\n // lista de items\n > ul {\n --marginUserValue: 10px;\n list-style: none;\n margin: 0;\n padding: 0;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 0px;\n\n // items cambio de estatus general del article\n // items cambio de estatus en servicio del article\n .label-statusArticle,\n .label-statusService {\n width: 100%;\n padding: 10px;\n border-radius: 10px;\n display: grid;\n place-items: center;\n cursor: default;\n\n text-align: left;\n font-family: ", ", sans-serif;\n color: white;\n font-size: 12px;\n\n .label {\n text-align: left;\n font-family: ", ", sans-serif;\n color: white;\n font-size: 12px;\n white-space: pre-wrap;\n cursor: inherit;\n }\n }\n .label-statusArticle {\n background-color: #85bc5b;\n }\n .label-statusService {\n background-color: #8a6caa;\n }\n\n // cada item dentro de la lista (fechas|message|img|file|status...)\n li {\n width: 90%;\n padding: 0px;\n margin: 16px 0px 0px 0px;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n flex-wrap: nowrap;\n gap: var(--marginUserValue);\n align-items: center;\n align-self: flex-start;\n //border: 1px solid blue;\n\n &.sameUser {\n margin: 2px 0px 0px 0px;\n padding: 0px 0px 0px calc(34px + var(--marginUserValue));\n }\n\n // items gray label (para fechas)\n &.label-gray {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: 0px; //0px calc(34px + var(--marginUserValue));\n\n .separator {\n flex-grow: 2;\n min-width: 35px;\n border: 0.3px solid #f0f0f0;\n }\n label {\n padding: 4px 15px;\n text-align: center;\n font-family: ", ", sans-serif;\n color: #b3b3b3;\n font-size: 10px;\n }\n }\n\n // container ImageTooltip del user de un item\n .container-imgUser {\n display: grid;\n place-items: center;\n width: 34px;\n min-width: min-content;\n border-radius: 50%;\n overflow: hidden;\n align-self: flex-start;\n }\n .icon-imgUser.fill {\n padding: 0px;\n width: 34px;\n height: 34px;\n color: #9d9d9d;\n border-color: #9d9d9d;\n border-width: 2px;\n }\n .tooltip-imgUser {\n .container {\n background-color: inherit;\n display: flex;\n flex-direction: column;\n gap: 5px;\n align-items: center;\n\n .label-nameUser {\n font-family: ", ", sans-serif;\n color: #262626;\n font-size: 12px;\n text-align: center;\n }\n }\n }\n\n // items de tipo message, comment y file\n .item-message,\n .item-comment,\n .item-file,\n .item-statusTicket {\n border-radius: 10px;\n padding: 10px;\n font-family: ", ", sans-serif;\n font-size: 12px;\n text-align: left;\n white-space: pre-line;\n color: white;\n margin: 0;\n }\n .item-message,\n .item-comment,\n .item-file {\n background-color: #8386ee;\n }\n .item-statusTicket {\n background-color: #85bc5b;\n }\n /*\n .item-comment {\n background-color: #5e61b2;\n }\n */\n\n // items de tipo img\n .item-img {\n display: grid;\n place-items: center;\n background-color: #f7f7f7;\n border-radius: 10px;\n overflow: hidden;\n max-width: 60%;\n max-height: 300px;\n\n .container-ImagePreview {\n max-height: inherit;\n\n > .img {\n max-height: inherit;\n }\n\n .label-nameImg {\n .iconDefaultImg {\n border-radius: 0px;\n border: none;\n padding: 0px;\n color: #8386ee;\n }\n }\n }\n }\n\n // items de tipo file\n .item-file {\n width: auto;\n max-width: 70%;\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 6px;\n\n .btnDownloadFileItem {\n width: 28px;\n min-width: 28px;\n height: 28px;\n min-height: 28px;\n }\n\n // nameFile solo 1 linea\n .label-nameFileShort {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n flex-grow: 2;\n cursor: default;\n font-family: ", ", sans-serif;\n font-size: 12px;\n text-align: center;\n color: white;\n }\n }\n\n // label hora del item\n .label-time {\n min-width: fit-content;\n color: #c7c7c7;\n font-family: ", ", sans-serif;\n font-size: 9px;\n }\n\n // items del currentUser\n &.own-message {\n align-self: flex-end;\n flex-direction: row-reverse;\n\n &.sameUser {\n padding: 0px calc(34px + var(--marginUserValue)) 0px 0px;\n }\n\n .item-message,\n .item-comment {\n color: #262626;\n }\n .item-message,\n .item-comment,\n .item-file {\n background-color: #f0f0f0;\n }\n /*\n .item-comment {\n background-color: #d7d7d7;\n }\n */\n\n // items de tipo img\n .item-img {\n .container-ImagePreview {\n .label-nameImg {\n .iconDefaultImg {\n color: #c9c7c7;\n }\n }\n }\n }\n\n // items de tipo file\n .item-file {\n .btnDownloadFileItem {\n .iconFile,\n .container-btnDownload .buttonMUI .icon {\n color: #262626;\n }\n }\n\n // nameFile solo 1 linea\n .label-nameFileShort {\n color: #262626;\n }\n }\n }\n\n // items neutrales (center aligned)\n &.itemNeutral {\n width: 100%;\n\n .itemStatus {\n width: 100%;\n padding: 10px;\n border-radius: 10px;\n display: grid;\n place-items: center;\n cursor: default;\n text-align: center;\n font-family: ", ", sans-serif;\n color: white;\n font-size: 12px;\n line-height: 1.2;\n white-space: pre-wrap;\n\n &.ticket {\n color: white;\n background-color: #85bc5b;\n }\n }\n }\n }\n }\n\n .content-chat {\n ::-webkit-scrollbar {\n width: 0;\n }\n }\n"])), _variables.FontFamily.RobotoRegular, _variables.FontFamily.RobotoRegular, _variables.FontFamily.RobotoRegular, _variables.FontFamily.RobotoMedium, _variables.FontFamily.RobotoMedium, _variables.FontFamily.RobotoRegular, _variables.FontFamily.RobotoRegular, _variables.FontFamily.RobotoRegular, _variables.FontFamily.RobotoRegular);
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n max-height: 100%;\n flex-grow: 2;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: 8px;\n background: white;\n padding: 15px 11px;\n overflow: auto;\n //border: 1px solid red;\n\n .btn-loadMore {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n flex-grow: 2;\n\n .container-btnLoadMore {\n border-radius: 10px;\n .button {\n padding: 5px 10px;\n border: none;\n gap: 10px;\n font-family: ", ";\n .icon,\n .iconLoading {\n font-size: 10px;\n }\n }\n }\n }\n\n // lista de items\n > ul {\n --marginUserValue: 10px;\n list-style: none;\n margin: 0;\n padding: 0;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 0px;\n\n // items cambio de estatus general del article\n // items cambio de estatus en servicio del article\n .label-statusArticle,\n .label-statusService {\n width: 100%;\n padding: 10px;\n border-radius: 10px;\n display: grid;\n place-items: center;\n cursor: default;\n\n text-align: left;\n font-family: ", ", sans-serif;\n color: white;\n font-size: 12px;\n\n .label {\n text-align: left;\n font-family: ", ", sans-serif;\n color: white;\n font-size: 12px;\n white-space: pre-wrap;\n cursor: inherit;\n }\n }\n .label-statusArticle {\n background-color: #85bc5b;\n }\n .label-statusService {\n background-color: #8a6caa;\n }\n\n // cada item dentro de la lista (fechas|message|img|file|status...)\n li {\n width: 90%;\n padding: 0px;\n margin: 16px 0px 0px 0px;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n flex-wrap: nowrap;\n gap: var(--marginUserValue);\n align-items: center;\n align-self: flex-start;\n //border: 1px solid blue;\n\n &.sameUser {\n margin: 2px 0px 0px 0px;\n padding: 0px 0px 0px calc(34px + var(--marginUserValue));\n }\n\n // items gray label (para fechas)\n &.label-gray {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: 0px; //0px calc(34px + var(--marginUserValue));\n\n .separator {\n flex-grow: 2;\n min-width: 35px;\n border: 0.3px solid #f0f0f0;\n }\n label {\n padding: 4px 15px;\n text-align: center;\n font-family: ", ", sans-serif;\n color: #b3b3b3;\n font-size: 10px;\n }\n }\n\n // container ImageTooltip del user de un item\n .container-imgUser {\n display: grid;\n place-items: center;\n width: 34px;\n min-width: min-content;\n border-radius: 50%;\n overflow: hidden;\n align-self: flex-start;\n }\n .icon-imgUser.fill {\n padding: 0px;\n width: 34px;\n height: 34px;\n color: #9d9d9d;\n border-color: #9d9d9d;\n border-width: 2px;\n }\n .tooltip-imgUser {\n .label-nameUser {\n font-family: ", ", sans-serif;\n color: #262626;\n font-size: 12px;\n text-align: center;\n }\n }\n\n // items de tipo message, comment y file\n .item-message,\n .item-comment,\n .item-file,\n .item-statusTicket {\n border-radius: 10px;\n padding: 10px;\n font-family: ", ", sans-serif;\n font-size: 12px;\n text-align: left;\n white-space: pre-line;\n color: white;\n margin: 0;\n }\n .item-message,\n .item-comment,\n .item-file {\n background-color: #8386ee;\n }\n .item-statusTicket {\n background-color: #85bc5b;\n }\n /*\n .item-comment {\n background-color: #5e61b2;\n }\n */\n\n // items de tipo img\n .item-img {\n display: grid;\n place-items: center;\n background-color: #f7f7f7;\n border-radius: 10px;\n overflow: hidden;\n max-width: 60%;\n max-height: 300px;\n\n .container-ImagePreview {\n max-height: inherit;\n\n > .img {\n max-height: inherit;\n }\n\n .label-nameImg {\n .iconDefaultImg {\n border-radius: 0px;\n border: none;\n padding: 0px;\n color: #8386ee;\n }\n }\n }\n }\n\n // items de tipo file\n .item-file {\n width: auto;\n max-width: 70%;\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 6px;\n\n .btnDownloadFileItem {\n width: 28px;\n min-width: 28px;\n height: 28px;\n min-height: 28px;\n }\n\n // nameFile solo 1 linea\n .label-nameFileShort {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n flex-grow: 2;\n cursor: default;\n font-family: ", ", sans-serif;\n font-size: 12px;\n text-align: center;\n color: white;\n }\n }\n\n // label hora del item\n .label-time {\n min-width: fit-content;\n color: #c7c7c7;\n font-family: ", ", sans-serif;\n font-size: 9px;\n }\n\n // items del currentUser\n &.own-message {\n align-self: flex-end;\n flex-direction: row-reverse;\n\n &.sameUser {\n padding: 0px calc(34px + var(--marginUserValue)) 0px 0px;\n }\n\n .item-message,\n .item-comment {\n color: #262626;\n }\n .item-message,\n .item-comment,\n .item-file {\n background-color: #f0f0f0;\n }\n /*\n .item-comment {\n background-color: #d7d7d7;\n }\n */\n\n // items de tipo img\n .item-img {\n .container-ImagePreview {\n .label-nameImg {\n .iconDefaultImg {\n color: #c9c7c7;\n }\n }\n }\n }\n\n // items de tipo file\n .item-file {\n .btnDownloadFileItem {\n .iconFile,\n .container-btnDownload .buttonMUI .icon {\n color: #262626;\n }\n }\n\n // nameFile solo 1 linea\n .label-nameFileShort {\n color: #262626;\n }\n }\n }\n\n // items neutrales (center aligned)\n &.itemNeutral {\n width: 100%;\n\n .itemStatus {\n width: 100%;\n padding: 10px;\n border-radius: 10px;\n display: grid;\n place-items: center;\n cursor: default;\n text-align: center;\n font-family: ", ", sans-serif;\n color: white;\n font-size: 12px;\n line-height: 1.2;\n white-space: pre-wrap;\n\n &.ticket {\n color: white;\n background-color: #85bc5b;\n }\n }\n }\n }\n }\n\n .content-chat {\n ::-webkit-scrollbar {\n width: 0;\n }\n }\n"])), _variables.FontFamily.RobotoRegular, _variables.FontFamily.RobotoRegular, _variables.FontFamily.RobotoRegular, _variables.FontFamily.RobotoMedium, _variables.FontFamily.RobotoMedium, _variables.FontFamily.RobotoRegular, _variables.FontFamily.RobotoRegular, _variables.FontFamily.RobotoRegular, _variables.FontFamily.RobotoRegular);
19
19
 
20
20
  exports.Container = Container;
@@ -27,29 +27,30 @@ var DashboardDeafult = Template.bind({});
27
27
  exports.DashboardDeafult = DashboardDeafult;
28
28
  DashboardDeafult.args = {
29
29
  user: {
30
- id_user: 425,
31
- name: "Auditor QA",
32
- last_name: " ",
33
- email: "ladiboh785@mi166.com",
34
- position: "Tester",
35
- telephone: null,
36
- country: null,
37
- id_company: 254,
38
- id_cognito: "23a3f496-4e38-4e12-9bf5-7f90b77a2f35",
30
+ id_user: 1236,
31
+ name: "THD",
32
+ last_name: "Proveedor",
33
+ email: "thd@allfreemail.net",
34
+ position: "Prod test",
35
+ telephone: "+523111111111",
36
+ country: "México",
37
+ id_company: 816,
38
+ id_cognito: "d660ccca-f906-4970-892c-6d152e832e5d",
39
39
  birth_Date: null,
40
40
  about_me: null,
41
41
  zip_code: null,
42
42
  address: null,
43
43
  job: null,
44
44
  id_stripe: null,
45
- id_role: 6,
45
+ id_role: 0,
46
46
  active: 1,
47
47
  is_retailer: 0,
48
- email_notify: null,
48
+ email_notify: 1,
49
+ is_superadmin: 0,
49
50
  membership: {
50
- id: 750,
51
- start_date: "2022-01-07T21:32:54.000Z",
52
- end_date: "2023-01-07T21:32:54.000Z",
51
+ id: 797,
52
+ start_date: "2022-06-19T04:18:39.000Z",
53
+ end_date: "2023-06-19T04:18:39.000Z",
53
54
  planID: 6,
54
55
  plan: "prod_KvGd6YSTJyR3AP",
55
56
  name: "Plan Small",
@@ -57,7 +58,34 @@ DashboardDeafult.args = {
57
58
  products_limit: "1000",
58
59
  type: "Enterprise"
59
60
  },
60
- src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1666639556174"
61
+ src: "https://content-management-profile-prod.s3.amazonaws.com/id-1236/1236.png?1668676098688"
62
+ },
63
+ company: {
64
+ id_company: 816,
65
+ trade_name: "Prod Test",
66
+ company_name: "Prod Test",
67
+ rfc: "ASER12345",
68
+ adress: "Av. Insurgentes",
69
+ about_company: null,
70
+ telephone: null,
71
+ web_site: null,
72
+ zip_code: null,
73
+ email: null,
74
+ social_link: null,
75
+ is_retailer: 0,
76
+ financedRetailers: [{
77
+ id: 58,
78
+ name: "The Home Depot Golden",
79
+ country: "México",
80
+ id_region: 1,
81
+ active: 1
82
+ }, {
83
+ id: 59,
84
+ name: "The Home Depot Platinum",
85
+ country: "México",
86
+ id_region: 1,
87
+ active: 1
88
+ }]
61
89
  },
62
- jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJkYWVmODU5ZC00ODQyLTRkNDQtYTNiNC02ODZlNmJhNTVkMjgiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2NzA3MjM5MCwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2NzA3NTk5MCwiaWF0IjoxNjY3MDcyMzkwLCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.FbGtX1sC3b2c76hGcxkx-GSurEMKZSwNVEnuUOlV9Dhhqrre1VmtfjvodH_3Leipr4g38Sukb6Pr9lVgEy6DJ57MShpS63niXE7Y43FUJ4gVe4F6k8sYbXUaZYS2vw2_PibnycNsFrpD76fZ_ulTqlSuHNrnzf2mjcDFJ5Qlj8hcLlRnpu_DFVpIiXVyK9kvLE5jImHvo4oQZUSrnuIs-oUE7j8mX8-GH2e95Up2wnBMak6S6meMibKoUEFo2qdtDSFbS1JCMBq4vWw2DxToX-7AGXGp_CLxf-sjJ_UpLmFa0KyyxjhAE2cR9BGo8DM8LEUIqMvcz2KH-7e9QTgisA"
90
+ jwt: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkNjYwY2NjYS1mOTA2LTQ5NzAtODkyYy02ZDE1MmU4MzJlNWQiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImQ2NjBjY2NhLWY5MDYtNDk3MC04OTJjLTZkMTUyZTgzMmU1ZCIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiI2NzYzN2VlZi1iMjE3LTRiYWEtODM4MC05NDMzODZjYTU5OTIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2ODY3NjA5OCwibmFtZSI6IlRIRCBQcm92ZWVkb3IiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMTExMTExIiwiZXhwIjoxNjY4Njc5Njk3LCJpYXQiOjE2Njg2NzYwOTgsImVtYWlsIjoidGhkQGFsbGZyZWVtYWlsLm5ldCJ9.ghtkS2S6ipJgGDEkGVoEd2iaxD5iKkGL_HBQ6ay-Kp-nh0VWjYW9cUBQhv83Je6gBsYdywkRfAmW9bEeqW7IuOAV9-CcQtcg7NtARtPjm3XLwt-vZePHefNASS1GdkFjjb3wioSdHoxa5UR6Di-mCTvQPad7tUdDy5XZf--8HyuB2Ir-yGnBqQ5mcyUloIwKWA0U0kboKUb97j8wCxGGP4oArrNH9yuwlwCC5dW2eyF1MKBDb4zPAnKmKM3IR-iFuyl9kAuo88YAas8o8pJ3_oc49NJ6ti2yY2hUyDFiMYlhjo-nDGMK1hQqFqjTPvrCV71H7P2vVuFHkkln9G-MbQ"
63
91
  };
@@ -188,7 +188,7 @@ var Dashboard = function Dashboard(_ref) {
188
188
  while (1) {
189
189
  switch (_context2.prev = _context2.next) {
190
190
  case 0:
191
- isTHDUser = [657, 818, 819].includes(user.id_company);
191
+ isTHDUser = user.is_retailer && company.retailers;
192
192
  _context2.next = 3;
193
193
  return _axios.default.get("".concat(process.env.REACT_APP_RETAILER_ENDPOINT), {
194
194
  headers: {
@@ -219,32 +219,39 @@ var Dashboard = function Dashboard(_ref) {
219
219
 
220
220
  var loadProductsByStatus = /*#__PURE__*/function () {
221
221
  var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(orderByStatus, filter) {
222
- var _ref5, ordersBydate, ordersByStatus, _ordersByStatus$total, total, _ordersByStatus$R, R, _ordersByStatus$PA, PA, _ordersByStatus$Ex, Ex, inProcess, metricsArray;
222
+ var isTHDUser, isProvider, isCollaborator, _ref5, ordersBydate, ordersByStatus, _ordersByStatus$total, total, _ordersByStatus$R, R, _ordersByStatus$PA, PA, _ordersByStatus$Ex, Ex, _ordersByStatus$ACA, ACA, productsFinished, inProcess, metricsArray;
223
223
 
224
224
  return _regenerator.default.wrap(function _callee3$(_context3) {
225
225
  while (1) {
226
226
  switch (_context3.prev = _context3.next) {
227
227
  case 0:
228
- _context3.next = 2;
228
+ isTHDUser = user.is_retailer && company.retailers;
229
+ isProvider = !user.is_retailer && user.id_role === 0;
230
+ isCollaborator = user.id_role > 0;
231
+ _context3.next = 5;
229
232
  return loadProductVersions(orderByStatus);
230
233
 
231
- case 2:
234
+ case 5:
232
235
  _context3.t0 = _context3.sent;
233
236
 
234
237
  if (_context3.t0) {
235
- _context3.next = 5;
238
+ _context3.next = 8;
236
239
  break;
237
240
  }
238
241
 
239
242
  _context3.t0 = {};
240
243
 
241
- case 5:
244
+ case 8:
242
245
  _ref5 = _context3.t0;
243
246
  ordersBydate = _ref5.ordersBydate;
244
247
  ordersByStatus = _ref5.ordersByStatus;
245
- _ordersByStatus$total = ordersByStatus.total, total = _ordersByStatus$total === void 0 ? 0 : _ordersByStatus$total, _ordersByStatus$R = ordersByStatus.R, R = _ordersByStatus$R === void 0 ? 0 : _ordersByStatus$R, _ordersByStatus$PA = ordersByStatus.PA, PA = _ordersByStatus$PA === void 0 ? 0 : _ordersByStatus$PA, _ordersByStatus$Ex = ordersByStatus.Ex, Ex = _ordersByStatus$Ex === void 0 ? 0 : _ordersByStatus$Ex;
248
+ _ordersByStatus$total = ordersByStatus.total, total = _ordersByStatus$total === void 0 ? 0 : _ordersByStatus$total, _ordersByStatus$R = ordersByStatus.R, R = _ordersByStatus$R === void 0 ? 0 : _ordersByStatus$R, _ordersByStatus$PA = ordersByStatus.PA, PA = _ordersByStatus$PA === void 0 ? 0 : _ordersByStatus$PA, _ordersByStatus$Ex = ordersByStatus.Ex, Ex = _ordersByStatus$Ex === void 0 ? 0 : _ordersByStatus$Ex, _ordersByStatus$ACA = ordersByStatus.ACA, ACA = _ordersByStatus$ACA === void 0 ? 0 : _ordersByStatus$ACA;
249
+ productsFinished = 0;
250
+ if (isTHDUser) productsFinished = Ex;
251
+ if (isProvider) productsFinished = ACA;
252
+ if (isCollaborator) productsFinished = Ex + ACA;
246
253
  inProcess = Object.keys(ordersByStatus).reduce(function (prev, curr) {
247
- return !["total", "PA", "R", "Ex"].includes(curr) ? prev + ordersByStatus[curr] : prev;
254
+ return !["total", "PA", "R", "Ex", "ACA"].includes(curr) ? prev + ordersByStatus[curr] : prev;
248
255
  }, 0);
249
256
  metricsArray = [metricsData[0] ? metricsData[0] : {
250
257
  label: "Productos totales",
@@ -261,7 +268,7 @@ var Dashboard = function Dashboard(_ref) {
261
268
  value: inProcess
262
269
  }, {
263
270
  label: "Productos terminados",
264
- value: Ex
271
+ value: productsFinished
265
272
  });
266
273
  setMetricsData(metricsArray);
267
274
  setTotalCount(total);
@@ -269,7 +276,7 @@ var Dashboard = function Dashboard(_ref) {
269
276
  setRequiredProducts(ordersBydate);
270
277
  setProductsByStatus(ordersByStatus);
271
278
 
272
- case 17:
279
+ case 24:
273
280
  case "end":
274
281
  return _context3.stop();
275
282
  }
@@ -106,8 +106,7 @@ var _jsxRuntime = require("react/jsx-runtime");
106
106
  var reducerImages = function reducerImages(state, action) {
107
107
  var _action$init, _action$init$inputsBy;
108
108
 
109
- var _state$values = state.values,
110
- values = _state$values === void 0 ? [] : _state$values,
109
+ var values = state.values,
111
110
  attrForImgs = state.attrForImgs,
112
111
  inputsByRetailer = state.inputsByRetailer;
113
112
 
@@ -183,7 +182,7 @@ var reducerImages = function reducerImages(state, action) {
183
182
  inputs = inputsInitial === null || inputsInitial === void 0 ? void 0 : inputsInitial.filter(function (input) {
184
183
  return imageIdArray.includes(input.id);
185
184
  });
186
- if (orderedImages.length > 0) values = orderedImages;
185
+ values = orderedImages.length > 0 ? orderedImages : [];
187
186
  } catch (error) {
188
187
  console.log(error);
189
188
  }
@@ -84,8 +84,7 @@ var _jsxRuntime = require("react/jsx-runtime");
84
84
  var reducerImages = function reducerImages(state, action) {
85
85
  var _action$init, _action$init$inputsBy;
86
86
 
87
- var _state$values = state.values,
88
- values = _state$values === void 0 ? [] : _state$values,
87
+ var values = state.values,
89
88
  attrForImgs = state.attrForImgs,
90
89
  inputsByRetailer = state.inputsByRetailer;
91
90
 
@@ -157,7 +156,11 @@ var reducerImages = function reducerImages(state, action) {
157
156
 
158
157
  var orderedImages = [];
159
158
  var imageIdArray = [];
160
- if (action !== null && action !== void 0 && action.retailerId && !_inputsByRetailer[action.retailerId]) _inputsByRetailer[action.retailerId] = [];
159
+
160
+ if (action !== null && action !== void 0 && action.retailerId && !_inputsByRetailer[action.retailerId]) {
161
+ _inputsByRetailer[action.retailerId] = [];
162
+ }
163
+
161
164
  action.retailerId && ((_inputsByRetailer$act = _inputsByRetailer[action.retailerId]) === null || _inputsByRetailer$act === void 0 ? void 0 : _inputsByRetailer$act.filter(function (input) {
162
165
  imageIdArray.push(input.id_image);
163
166
  valuesInitial.forEach(function (value) {
@@ -167,7 +170,7 @@ var reducerImages = function reducerImages(state, action) {
167
170
  inputs = inputsInitial === null || inputsInitial === void 0 ? void 0 : inputsInitial.filter(function (input) {
168
171
  return imageIdArray.includes(input.id);
169
172
  });
170
- if (orderedImages.length > 0) values = orderedImages;
173
+ values = orderedImages.length > 0 ? orderedImages : [];
171
174
  } catch (error) {
172
175
  console.log(error);
173
176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.2.89",
3
+ "version": "21.2.91",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -7,7 +7,7 @@ import React from "react";
7
7
  export const ButtonV2 = (props) => {
8
8
  const {
9
9
  id,
10
- key,
10
+ keyId,
11
11
  className,
12
12
  disabled,
13
13
  type, // white | whiteS2 | pink | gray | purple | black => por default (white)
@@ -24,7 +24,7 @@ export const ButtonV2 = (props) => {
24
24
  return (
25
25
  <Container
26
26
  id={id}
27
- key={key}
27
+ key={keyId}
28
28
  className={className}
29
29
  type={type}
30
30
  transparent={transparent}
@@ -16,12 +16,13 @@ export const Container = styled.div`
16
16
  ? GlobalColors.s4
17
17
  : GlobalColors.white};
18
18
 
19
- &.status-CA {
19
+ &.status-CA,
20
+ &.status-AS,
21
+ &.status-PA {
20
22
  background-color: ${GlobalColors.in_progress};
21
23
  }
22
24
 
23
- &.status-R,
24
- &.status-AS {
25
+ &.status-R {
25
26
  background-color: ${GlobalColors.reception};
26
27
  }
27
28
 
@@ -336,11 +336,9 @@ export const ContainerItems = (props) => {
336
336
  }
337
337
  classNameTooltip={"tooltip-imgUser"}
338
338
  componentTooltip={
339
- <div className="container">
340
- <label className="label-nameUser">
341
- {users[item.userId].name}
342
- </label>
343
- </div>
339
+ <label className="label-nameUser">
340
+ {users[item.userId].name}
341
+ </label>
344
342
  }
345
343
  />
346
344
  )}
@@ -140,19 +140,11 @@ export const Container = styled.div`
140
140
  border-width: 2px;
141
141
  }
142
142
  .tooltip-imgUser {
143
- .container {
144
- background-color: inherit;
145
- display: flex;
146
- flex-direction: column;
147
- gap: 5px;
148
- align-items: center;
149
-
150
- .label-nameUser {
151
- font-family: ${FontFamily.RobotoMedium}, sans-serif;
152
- color: #262626;
153
- font-size: 12px;
154
- text-align: center;
155
- }
143
+ .label-nameUser {
144
+ font-family: ${FontFamily.RobotoMedium}, sans-serif;
145
+ color: #262626;
146
+ font-size: 12px;
147
+ text-align: center;
156
148
  }
157
149
  }
158
150
 
@@ -9,29 +9,30 @@ const Template = (args) => <Dashboard {...args} />;
9
9
  export const DashboardDeafult = Template.bind({});
10
10
  DashboardDeafult.args = {
11
11
  user: {
12
- id_user: 425,
13
- name: "Auditor QA",
14
- last_name: " ",
15
- email: "ladiboh785@mi166.com",
16
- position: "Tester",
17
- telephone: null,
18
- country: null,
19
- id_company: 254,
20
- id_cognito: "23a3f496-4e38-4e12-9bf5-7f90b77a2f35",
12
+ id_user: 1236,
13
+ name: "THD",
14
+ last_name: "Proveedor",
15
+ email: "thd@allfreemail.net",
16
+ position: "Prod test",
17
+ telephone: "+523111111111",
18
+ country: "México",
19
+ id_company: 816,
20
+ id_cognito: "d660ccca-f906-4970-892c-6d152e832e5d",
21
21
  birth_Date: null,
22
22
  about_me: null,
23
23
  zip_code: null,
24
24
  address: null,
25
25
  job: null,
26
26
  id_stripe: null,
27
- id_role: 6,
27
+ id_role: 0,
28
28
  active: 1,
29
29
  is_retailer: 0,
30
- email_notify: null,
30
+ email_notify: 1,
31
+ is_superadmin: 0,
31
32
  membership: {
32
- id: 750,
33
- start_date: "2022-01-07T21:32:54.000Z",
34
- end_date: "2023-01-07T21:32:54.000Z",
33
+ id: 797,
34
+ start_date: "2022-06-19T04:18:39.000Z",
35
+ end_date: "2023-06-19T04:18:39.000Z",
35
36
  planID: 6,
36
37
  plan: "prod_KvGd6YSTJyR3AP",
37
38
  name: "Plan Small",
@@ -39,7 +40,37 @@ DashboardDeafult.args = {
39
40
  products_limit: "1000",
40
41
  type: "Enterprise",
41
42
  },
42
- src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1666639556174",
43
+ src: "https://content-management-profile-prod.s3.amazonaws.com/id-1236/1236.png?1668676098688",
44
+ },
45
+ company: {
46
+ id_company: 816,
47
+ trade_name: "Prod Test",
48
+ company_name: "Prod Test",
49
+ rfc: "ASER12345",
50
+ adress: "Av. Insurgentes",
51
+ about_company: null,
52
+ telephone: null,
53
+ web_site: null,
54
+ zip_code: null,
55
+ email: null,
56
+ social_link: null,
57
+ is_retailer: 0,
58
+ financedRetailers: [
59
+ {
60
+ id: 58,
61
+ name: "The Home Depot Golden",
62
+ country: "México",
63
+ id_region: 1,
64
+ active: 1,
65
+ },
66
+ {
67
+ id: 59,
68
+ name: "The Home Depot Platinum",
69
+ country: "México",
70
+ id_region: 1,
71
+ active: 1,
72
+ },
73
+ ],
43
74
  },
44
- jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJkYWVmODU5ZC00ODQyLTRkNDQtYTNiNC02ODZlNmJhNTVkMjgiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2NzA3MjM5MCwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2NzA3NTk5MCwiaWF0IjoxNjY3MDcyMzkwLCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.FbGtX1sC3b2c76hGcxkx-GSurEMKZSwNVEnuUOlV9Dhhqrre1VmtfjvodH_3Leipr4g38Sukb6Pr9lVgEy6DJ57MShpS63niXE7Y43FUJ4gVe4F6k8sYbXUaZYS2vw2_PibnycNsFrpD76fZ_ulTqlSuHNrnzf2mjcDFJ5Qlj8hcLlRnpu_DFVpIiXVyK9kvLE5jImHvo4oQZUSrnuIs-oUE7j8mX8-GH2e95Up2wnBMak6S6meMibKoUEFo2qdtDSFbS1JCMBq4vWw2DxToX-7AGXGp_CLxf-sjJ_UpLmFa0KyyxjhAE2cR9BGo8DM8LEUIqMvcz2KH-7e9QTgisA",
75
+ jwt: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkNjYwY2NjYS1mOTA2LTQ5NzAtODkyYy02ZDE1MmU4MzJlNWQiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImQ2NjBjY2NhLWY5MDYtNDk3MC04OTJjLTZkMTUyZTgzMmU1ZCIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiI2NzYzN2VlZi1iMjE3LTRiYWEtODM4MC05NDMzODZjYTU5OTIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2ODY3NjA5OCwibmFtZSI6IlRIRCBQcm92ZWVkb3IiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMTExMTExIiwiZXhwIjoxNjY4Njc5Njk3LCJpYXQiOjE2Njg2NzYwOTgsImVtYWlsIjoidGhkQGFsbGZyZWVtYWlsLm5ldCJ9.ghtkS2S6ipJgGDEkGVoEd2iaxD5iKkGL_HBQ6ay-Kp-nh0VWjYW9cUBQhv83Je6gBsYdywkRfAmW9bEeqW7IuOAV9-CcQtcg7NtARtPjm3XLwt-vZePHefNASS1GdkFjjb3wioSdHoxa5UR6Di-mCTvQPad7tUdDy5XZf--8HyuB2Ir-yGnBqQ5mcyUloIwKWA0U0kboKUb97j8wCxGGP4oArrNH9yuwlwCC5dW2eyF1MKBDb4zPAnKmKM3IR-iFuyl9kAuo88YAas8o8pJ3_oc49NJ6ti2yY2hUyDFiMYlhjo-nDGMK1hQqFqjTPvrCV71H7P2vVuFHkkln9G-MbQ",
45
76
  };
@@ -59,7 +59,7 @@ export const Dashboard = ({ jwt, user, company }) => {
59
59
  };
60
60
 
61
61
  const getRetailers = async () => {
62
- const isTHDUser = [657, 818, 819].includes(user.id_company);
62
+ const isTHDUser = user.is_retailer && company.retailers;
63
63
  const retailersResponse = await axios.get(
64
64
  `${process.env.REACT_APP_RETAILER_ENDPOINT}`,
65
65
  {
@@ -78,13 +78,21 @@ export const Dashboard = ({ jwt, user, company }) => {
78
78
  };
79
79
 
80
80
  const loadProductsByStatus = async (orderByStatus, filter) => {
81
+ const isTHDUser = user.is_retailer && company.retailers;
82
+ const isProvider = !user.is_retailer && user.id_role === 0;
83
+ const isCollaborator = user.id_role > 0;
81
84
  const { ordersBydate, ordersByStatus } =
82
85
  (await loadProductVersions(orderByStatus)) || {};
83
86
 
84
- const { total = 0, R = 0, PA = 0, Ex = 0 } = ordersByStatus;
87
+ const { total = 0, R = 0, PA = 0, Ex = 0, ACA = 0 } = ordersByStatus;
88
+ let productsFinished = 0;
89
+ if (isTHDUser) productsFinished = Ex;
90
+ if (isProvider) productsFinished = ACA;
91
+ if (isCollaborator) productsFinished = Ex + ACA;
92
+
85
93
  const inProcess = Object.keys(ordersByStatus).reduce(
86
94
  (prev, curr) =>
87
- !["total", "PA", "R", "Ex"].includes(curr)
95
+ !["total", "PA", "R", "Ex", "ACA"].includes(curr)
88
96
  ? prev + ordersByStatus[curr]
89
97
  : prev,
90
98
  0
@@ -94,11 +102,12 @@ export const Dashboard = ({ jwt, user, company }) => {
94
102
  ? metricsData[0]
95
103
  : { label: "Productos totales", value: total },
96
104
  ];
105
+
97
106
  metricsArray.push(
98
107
  { label: "Productos filtrados", value: total },
99
108
  { label: "Productos sin asignar", value: PA + R },
100
109
  { label: "Productos en proceso", value: inProcess },
101
- { label: "Productos terminados", value: Ex }
110
+ { label: "Productos terminados", value: productsFinished }
102
111
  );
103
112
  setMetricsData(metricsArray);
104
113
  setTotalCount(total);
@@ -45,7 +45,7 @@ import { useCloseModal } from "../../../global-files/customHooks";
45
45
  import { CreateVersion } from "../../organisms/CreateVersion";
46
46
 
47
47
  const reducerImages = (state, action) => {
48
- let { values = [], attrForImgs, inputsByRetailer } = state;
48
+ let { values, attrForImgs, inputsByRetailer } = state;
49
49
  switch (action.action) {
50
50
  case "init":
51
51
  const newInputsByRetailer = {};
@@ -100,7 +100,7 @@ const reducerImages = (state, action) => {
100
100
  imageIdArray.includes(input.id)
101
101
  );
102
102
 
103
- if (orderedImages.length > 0) values = orderedImages;
103
+ values = orderedImages.length > 0 ? orderedImages : [];
104
104
  } catch (error) {
105
105
  console.log(error);
106
106
  }
@@ -877,10 +877,11 @@ export const ProviderProductEdition = ({
877
877
  const newProductEdit = productEdit;
878
878
  newProductEdit.product[sectionStatusKey] = serviceStatus;
879
879
  setProductEdit(newProductEdit);
880
- const showSurveyByProvider = !user.is_retailer && orderStatus[orderId] === "AP";
881
- const showSurveyByRetailer = user.is_retailer && orderStatus[orderId] === "ACA";
882
- showSurvey &&
883
- showSurvey(showSurveyByProvider || showSurveyByRetailer);
880
+ const showSurveyByProvider =
881
+ !user.is_retailer && orderStatus[orderId] === "AP";
882
+ const showSurveyByRetailer =
883
+ user.is_retailer && orderStatus[orderId] === "ACA";
884
+ showSurvey && showSurvey(showSurveyByProvider || showSurveyByRetailer);
884
885
  } else {
885
886
  res = await axios.put(`${process.env.REACT_APP_SEND_EVAL}`, data, {
886
887
  headers: {
@@ -35,7 +35,7 @@ import { useCloseModal } from "../../../global-files/customHooks";
35
35
  import { CreateVersion } from "../../organisms/CreateVersion";
36
36
 
37
37
  const reducerImages = (state, action) => {
38
- let { values = [], attrForImgs, inputsByRetailer } = state;
38
+ let { values, attrForImgs, inputsByRetailer } = state;
39
39
  switch (action.action) {
40
40
  case "init":
41
41
  const newInputsByRetailer = {};
@@ -80,8 +80,9 @@ const reducerImages = (state, action) => {
80
80
  try {
81
81
  const orderedImages = [];
82
82
  const imageIdArray = [];
83
- if (action?.retailerId && !inputsByRetailer[action.retailerId])
83
+ if (action?.retailerId && !inputsByRetailer[action.retailerId]) {
84
84
  inputsByRetailer[action.retailerId] = [];
85
+ }
85
86
  action.retailerId &&
86
87
  inputsByRetailer[action.retailerId]?.filter((input) => {
87
88
  imageIdArray.push(input.id_image);
@@ -89,12 +90,10 @@ const reducerImages = (state, action) => {
89
90
  if (value.image_id === input.id_image) orderedImages.push(value);
90
91
  });
91
92
  });
92
-
93
93
  inputs = inputsInitial?.filter((input) =>
94
94
  imageIdArray.includes(input.id)
95
95
  );
96
-
97
- if (orderedImages.length > 0) values = orderedImages;
96
+ values = orderedImages.length > 0 ? orderedImages : [];
98
97
  } catch (error) {
99
98
  console.log(error);
100
99
  }
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
2
- <path id="close_FILL0_wght400_GRAD0_opsz48" d="M6.385,19.308,5.308,18.231l5.923-5.923L5.308,6.385,6.385,5.308l5.923,5.923,5.923-5.923,1.077,1.077-5.923,5.923,5.923,5.923-1.077,1.077-5.923-5.923Z" transform="translate(-5.308 -5.308)" fill="#fff"/>
3
- </svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 51 65" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round"><use xlink:href="#C" x=".5" y=".5"/><defs><filter id="A" x="-6%" y="-4.6875%" width="116%" height="112.5%"><feGaussianBlur in="SourceAlpha" stdDeviation="1"/><feOffset dx="2" dy="2" result="B"/><feFlood flood-color="#000" flood-opacity=".2"/><feComposite in2="B" operator="in" result="C"/><feMerge><feMergeNode in="C"/><feMergeNode in="SourceGraphic"/></feMerge></filter><filter id="B" x="-27.5%" y="-32.5%" width="160%" height="160%"><feGaussianBlur in="SourceAlpha" stdDeviation="2"/><feOffset dx="1" dy="-1" result="B"/><feFlood flood-color="#000" flood-opacity=".2"/><feComposite in2="B" operator="in" result="C"/><feMerge><feMergeNode in="C"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><symbol id="C" overflow="visible"><path d="M50 20L30 0H5a4.99 4.99 0 0 0-5 5v54a4.99 4.99 0 0 0 5 5h40a4.99 4.99 0 0 0 5-5z" fill="#2196f3" stroke="none" filter="url(#A)"/><defs/><g transform="matrix(-1 0 0 -1 50 20)"><path d="M20 20L0 0h15a4.99 4.99 0 0 1 5 5z" fill="#90caf9" stroke="none" filter="url(#B)"/><defs/></g><path d="M10 17.5h17.5V20H10zm0 10h27.5V30H10zm0 10h27.5V40H10zm0 10h27.5V50H10z" stroke="none"/></symbol></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 66 81" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round"><use xlink:href="#A" x=".5" y=".5"/><symbol id="A" overflow="visible"><path d="M44.674 0H0v79.977h65V20.012L44.674 0zM60.93 75.993H4.07V4.007h38.593v18.008h18.291v53.978zm-10.151-40H14.221v-3.984h36.558zm0 9.995H14.221v-3.984h36.558zm0 10.017H14.221v-4.007h36.558zm0 9.994H14.221v-4.007h36.558z" fill="#2a3282" stroke="none"/></symbol></svg>
@@ -1,19 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14" viewBox="0 0 14 14">
2
- <defs>
3
- <style>
4
- .cls-1 {
5
- fill: #707070;
6
- }
7
-
8
- .cls-2 {
9
- clip-path: url(#clip-path);
10
- }
11
- </style>
12
- <clipPath id="clip-path">
13
- <rect id="Rectángulo_368" data-name="Rectángulo 368" class="cls-1" width="14" height="14" transform="translate(1737 869)"/>
14
- </clipPath>
15
- </defs>
16
- <g id="Enmascarar_grupo_83" data-name="Enmascarar grupo 83" class="cls-2" transform="translate(-1737 -869)">
17
- <path id="forum_FILL0_wght400_GRAD0_opsz48" class="cls-1" d="M1.4,11.9V2.135a.728.728,0,0,1,.228-.49A.651.651,0,0,1,2.1,1.4h9.082a.675.675,0,0,1,.49.236.714.714,0,0,1,.227.5v6.23a.728.728,0,0,1-.227.49.666.666,0,0,1-.49.245H4.2Zm3.518.7a.678.678,0,0,1-.481-.245.716.716,0,0,1-.236-.49V10.15h8.75V4.2H14.7a.651.651,0,0,1,.472.245.744.744,0,0,1,.227.508v10.43L12.617,12.6ZM10.85,2.45H2.45V9.363L3.763,8.05H10.85Zm-8.4,0v0Z" transform="translate(1735.6 867.609)"/>
18
- </g>
19
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
2
- <path id="Icono_cargar_más" data-name="Icono, cargar más" d="M18,28a9.64,9.64,0,0,1-7.078-2.922A9.64,9.64,0,0,1,8,18a9.64,9.64,0,0,1,2.922-7.078A9.64,9.64,0,0,1,18,8a9.665,9.665,0,0,1,4.656,1.078,11.027,11.027,0,0,1,3.469,2.953V8H28v7.938H20.063V14.063h5.25a9.572,9.572,0,0,0-3.031-3.031A7.888,7.888,0,0,0,18,9.875,8.056,8.056,0,0,0,9.875,18,8.056,8.056,0,0,0,18,26.125a8.2,8.2,0,0,0,4.75-1.484,7.72,7.72,0,0,0,3-3.922h1.937A9.576,9.576,0,0,1,24.094,26,9.947,9.947,0,0,1,18,28Z" transform="translate(-8 -8)" fill="#8a6caa"/>
3
- </svg>
@@ -1,75 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 303.188 303.188" style="enable-background:new 0 0 303.188 303.188;" xml:space="preserve">
5
- <g>
6
- <polygon style="fill:#E8E8E8;" points="219.821,0 32.842,0 32.842,303.188 270.346,303.188 270.346,50.525 "/>
7
- <path style="fill:#FB3449;" d="M230.013,149.935c-3.643-6.493-16.231-8.533-22.006-9.451c-4.552-0.724-9.199-0.94-13.803-0.936
8
- c-3.615-0.024-7.177,0.154-10.693,0.354c-1.296,0.087-2.579,0.199-3.861,0.31c-1.314-1.36-2.584-2.765-3.813-4.202
9
- c-7.82-9.257-14.134-19.755-19.279-30.664c1.366-5.271,2.459-10.772,3.119-16.485c1.205-10.427,1.619-22.31-2.288-32.251
10
- c-1.349-3.431-4.946-7.608-9.096-5.528c-4.771,2.392-6.113,9.169-6.502,13.973c-0.313,3.883-0.094,7.776,0.558,11.594
11
- c0.664,3.844,1.733,7.494,2.897,11.139c1.086,3.342,2.283,6.658,3.588,9.943c-0.828,2.586-1.707,5.127-2.63,7.603
12
- c-2.152,5.643-4.479,11.004-6.717,16.161c-1.18,2.557-2.335,5.06-3.465,7.507c-3.576,7.855-7.458,15.566-11.815,23.02
13
- c-10.163,3.585-19.283,7.741-26.857,12.625c-4.063,2.625-7.652,5.476-10.641,8.603c-2.822,2.952-5.69,6.783-5.941,11.024
14
- c-0.141,2.394,0.807,4.717,2.768,6.137c2.697,2.015,6.271,1.881,9.4,1.225c10.25-2.15,18.121-10.961,24.824-18.387
15
- c4.617-5.115,9.872-11.61,15.369-19.465c0.012-0.018,0.024-0.036,0.037-0.054c9.428-2.923,19.689-5.391,30.579-7.205
16
- c4.975-0.825,10.082-1.5,15.291-1.974c3.663,3.431,7.621,6.555,11.939,9.164c3.363,2.069,6.94,3.816,10.684,5.119
17
- c3.786,1.237,7.595,2.247,11.528,2.886c1.986,0.284,4.017,0.413,6.092,0.335c4.631-0.175,11.278-1.951,11.714-7.57
18
- C231.127,152.765,230.756,151.257,230.013,149.935z M119.144,160.245c-2.169,3.36-4.261,6.382-6.232,9.041
19
- c-4.827,6.568-10.34,14.369-18.322,17.286c-1.516,0.554-3.512,1.126-5.616,1.002c-1.874-0.11-3.722-0.937-3.637-3.065
20
- c0.042-1.114,0.587-2.535,1.423-3.931c0.915-1.531,2.048-2.935,3.275-4.226c2.629-2.762,5.953-5.439,9.777-7.918
21
- c5.865-3.805,12.867-7.23,20.672-10.286C120.035,158.858,119.587,159.564,119.144,160.245z M146.366,75.985
22
- c-0.602-3.514-0.693-7.077-0.323-10.503c0.184-1.713,0.533-3.385,1.038-4.952c0.428-1.33,1.352-4.576,2.826-4.993
23
- c2.43-0.688,3.177,4.529,3.452,6.005c1.566,8.396,0.186,17.733-1.693,25.969c-0.299,1.31-0.632,2.599-0.973,3.883
24
- c-0.582-1.601-1.137-3.207-1.648-4.821C147.945,83.048,146.939,79.482,146.366,75.985z M163.049,142.265
25
- c-9.13,1.48-17.815,3.419-25.979,5.708c0.983-0.275,5.475-8.788,6.477-10.555c4.721-8.315,8.583-17.042,11.358-26.197
26
- c4.9,9.691,10.847,18.962,18.153,27.214c0.673,0.749,1.357,1.489,2.053,2.22C171.017,141.096,166.988,141.633,163.049,142.265z
27
- M224.793,153.959c-0.334,1.805-4.189,2.837-5.988,3.121c-5.316,0.836-10.94,0.167-16.028-1.542
28
- c-3.491-1.172-6.858-2.768-10.057-4.688c-3.18-1.921-6.155-4.181-8.936-6.673c3.429-0.206,6.9-0.341,10.388-0.275
29
- c3.488,0.035,7.003,0.211,10.475,0.664c6.511,0.726,13.807,2.961,18.932,7.186C224.588,152.585,224.91,153.321,224.793,153.959z"/>
30
- <polygon style="fill:#FB3449;" points="227.64,25.263 32.842,25.263 32.842,0 219.821,0 "/>
31
- <g>
32
- <path style="fill:#A4A9AD;" d="M126.841,241.152c0,5.361-1.58,9.501-4.742,12.421c-3.162,2.921-7.652,4.381-13.472,4.381h-3.643
33
- v15.917H92.022v-47.979h16.606c6.06,0,10.611,1.324,13.652,3.971C125.321,232.51,126.841,236.273,126.841,241.152z
34
- M104.985,247.387h2.363c1.947,0,3.495-0.546,4.644-1.641c1.149-1.094,1.723-2.604,1.723-4.529c0-3.238-1.794-4.857-5.382-4.857
35
- h-3.348C104.985,236.36,104.985,247.387,104.985,247.387z"/>
36
- <path style="fill:#A4A9AD;" d="M175.215,248.864c0,8.007-2.205,14.177-6.613,18.509s-10.606,6.498-18.591,6.498h-15.523v-47.979
37
- h16.606c7.701,0,13.646,1.969,17.836,5.907C173.119,235.737,175.215,241.426,175.215,248.864z M161.76,249.324
38
- c0-4.398-0.87-7.657-2.609-9.78c-1.739-2.122-4.381-3.183-7.926-3.183h-3.773v26.877h2.888c3.939,0,6.826-1.143,8.664-3.43
39
- C160.841,257.523,161.76,254.028,161.76,249.324z"/>
40
- <path style="fill:#A4A9AD;" d="M196.579,273.871h-12.766v-47.979h28.355v10.403h-15.589v9.156h14.374v10.403h-14.374
41
- L196.579,273.871L196.579,273.871z"/>
42
- </g>
43
- <polygon style="fill:#D1D3D3;" points="219.821,50.525 270.346,50.525 219.821,0 "/>
44
- </g>
45
- <g>
46
- </g>
47
- <g>
48
- </g>
49
- <g>
50
- </g>
51
- <g>
52
- </g>
53
- <g>
54
- </g>
55
- <g>
56
- </g>
57
- <g>
58
- </g>
59
- <g>
60
- </g>
61
- <g>
62
- </g>
63
- <g>
64
- </g>
65
- <g>
66
- </g>
67
- <g>
68
- </g>
69
- <g>
70
- </g>
71
- <g>
72
- </g>
73
- <g>
74
- </g>
75
- </svg>
@@ -1,4 +0,0 @@
1
- <svg width="15" height="15" viewBox="0 0 30 31" fill="#FFFFFF" xmlns="http://www.w3.org/2000/svg">
2
- <line x1="7.70711" y1="7.5" x2="23" y2="22.7929" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M23 7.5L8 22.5" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round"/>
4
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="11.124" height="11.008" viewBox="0 0 11.124 11.008">
2
- <path id="arrow_upward_FILL1_wght400_GRAD0_opsz48" d="M9.18,14.829V6.34l-4,4L4.5,9.664,9.664,4.5l5.164,5.164-.678.678-4-4v8.489Z" transform="translate(-4.102 -4.102)" fill="#fff" stroke="#fff" stroke-width="0.563"/>
3
- </svg>
@@ -1,109 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
5
- <g>
6
- <rect x="370.759" y="406.069" style="fill:#E4EAF6;" width="17.655" height="17.655"/>
7
- <path style="fill:#E4EAF6;" d="M355.326,346.052c-0.255-0.582-0.491-1.174-0.704-1.777h-1.577
8
- C353.815,344.855,354.575,345.449,355.326,346.052z"/>
9
- <rect x="211.862" y="406.069" style="fill:#E4EAF6;" width="17.655" height="17.655"/>
10
- <path style="fill:#E4EAF6;" d="M388.414,335.448c0-4.871-3.961-8.828-8.828-8.828s-8.828,3.957-8.828,8.828
11
- c0,4.871,3.961,8.828,8.828,8.828S388.414,340.319,388.414,335.448z"/>
12
- <path style="fill:#E4EAF6;" d="M245.654,344.276c-0.214,0.602-0.448,1.194-0.704,1.775c0.75-0.604,1.51-1.196,2.28-1.775H245.654z"
13
- />
14
- <path style="fill:#E4EAF6;" d="M406.069,105.931c-14.626,0-26.483-11.857-26.483-26.483V0H141.241
15
- c-14.626,0-26.483,11.857-26.483,26.483v61.793h220.69c9.751,0,17.655,7.905,17.655,17.655v123.586
16
- c0,9.75-7.904,17.655-17.655,17.655h-220.69v238.345c0,14.626,11.857,26.483,26.483,26.483h317.793
17
- c14.626,0,26.483-11.857,26.483-26.483V105.931H406.069z M384.351,388.414h12.886c4.875,0,8.828,3.948,8.828,8.828v35.31
18
- c0,4.879-3.953,8.828-8.828,8.828h-35.31c-4.875,0-8.828-3.948-8.828-8.828v-35.31c0-4.879,3.953-8.828,8.828-8.828h3.677
19
- c-7.17-17.661-21.325-31.817-38.983-38.988v3.678c0,4.879-3.953,8.828-8.828,8.828h-35.31c-4.875,0-8.828-3.948-8.828-8.828v-3.679
20
- c-17.656,7.17-31.812,21.327-38.986,38.989h3.676c4.875,0,8.828,3.948,8.828,8.828v35.31c0,4.879-3.953,8.828-8.828,8.828h-35.31
21
- c-4.875,0-8.828-3.948-8.828-8.828v-35.31c0-4.879,3.953-8.828,8.828-8.828h12.887c3.322-10.549,8.586-20.259,15.374-28.706
22
- c-3.25,1.426-6.836,2.223-10.606,2.223c-14.603,0-26.483-11.88-26.483-26.483c0-14.603,11.88-26.483,26.483-26.483
23
- c11.509,0,21.321,7.38,24.964,17.655h28.001v-8.828c0-4.879,3.953-8.828,8.828-8.828h35.31c4.875,0,8.828,3.948,8.828,8.828v8.828
24
- h28.001c3.644-10.275,13.455-17.655,24.964-17.655c14.603,0,26.483,11.88,26.483,26.483c0,14.603-11.88,26.483-26.483,26.483
25
- c-3.772,0-7.358-0.798-10.607-2.225C375.766,368.153,381.03,377.865,384.351,388.414z"/>
26
- <rect x="291.31" y="326.621" style="fill:#E4EAF6;" width="17.655" height="17.655"/>
27
- <path style="fill:#E4EAF6;" d="M220.69,326.621c-4.866,0-8.828,3.957-8.828,8.828c0,4.871,3.961,8.828,8.828,8.828
28
- s8.828-3.957,8.828-8.828C229.517,330.578,225.556,326.621,220.69,326.621z"/>
29
- </g>
30
- <path style="fill:#D2DCF0;" d="M406.069,105.931h79.448L379.586,0v79.448C379.586,94.074,391.443,105.931,406.069,105.931z"/>
31
- <g>
32
- <path style="fill:#464655;" d="M353.103,229.517V105.931c0-9.75-7.904-17.655-17.655-17.655h-220.69H44.138
33
- c-9.751,0-17.655,7.905-17.655,17.655v123.586c0,9.75,7.904,17.655,17.655,17.655h70.621h220.69
34
- C345.199,247.172,353.103,239.267,353.103,229.517z M114.759,211.862H70.621c-4.875,0-8.828-3.948-8.828-8.828
35
- s3.953-8.828,8.828-8.828h44.138c4.866,0,8.828-3.957,8.828-8.828c0-4.871-3.961-8.828-8.828-8.828H88.276
36
- c-14.603,0-26.483-11.88-26.483-26.483s11.88-26.483,26.483-26.483h35.31c4.875,0,8.828,3.948,8.828,8.828
37
- c0,4.879-3.953,8.828-8.828,8.828h-35.31c-4.866,0-8.828,3.957-8.828,8.828s3.961,8.828,8.828,8.828h26.483
38
- c14.603,0,26.483,11.88,26.483,26.483S129.362,211.862,114.759,211.862z M229.255,134.552l-14.444,57.775
39
- c-2.876,11.5-13.164,19.534-25.017,19.534c-11.853,0-22.142-8.034-25.017-19.534l-14.444-57.775
40
- c-1.181-4.724,1.694-9.517,6.422-10.698c4.724-1.19,9.522,1.681,10.707,6.422l14.444,57.775c0.905,3.62,4.151,6.155,7.887,6.155
41
- s6.983-2.535,7.887-6.155l14.444-57.775c1.185-4.742,6.001-7.612,10.707-6.422C227.561,125.035,230.435,129.827,229.255,134.552z
42
- M317.793,176.552c0,19.474-15.84,35.31-35.31,35.31h-8.828c-19.47,0-35.31-15.837-35.31-35.31v-17.655
43
- c0-19.474,15.84-35.31,35.31-35.31h8.828c10.035,0,19.629,4.294,26.319,11.767c3.25,3.638,2.935,9.216-0.698,12.466
44
- c-3.634,3.258-9.207,2.94-12.466-0.69c-3.34-3.742-8.138-5.888-13.155-5.888h-8.828c-9.737,0-17.655,7.923-17.655,17.655v17.655
45
- c0,9.732,7.918,17.655,17.655,17.655h8.828c9.737,0,17.655-7.923,17.655-17.655h-17.655c-4.875,0-8.828-3.948-8.828-8.828
46
- s3.953-8.828,8.828-8.828h26.483c4.875,0,8.828,3.948,8.828,8.828V176.552z"/>
47
- <path style="fill:#464655;" d="M406.069,335.448c0-14.603-11.88-26.483-26.483-26.483c-11.509,0-21.321,7.38-24.964,17.655h-28.001
48
- v-8.828c0-4.879-3.953-8.828-8.828-8.828h-35.31c-4.875,0-8.828,3.948-8.828,8.828v8.828h-28.001
49
- c-3.644-10.275-13.455-17.655-24.964-17.655c-14.603,0-26.483,11.88-26.483,26.483c0,14.603,11.88,26.483,26.483,26.483
50
- c3.77,0,7.357-0.798,10.606-2.223c-6.788,8.447-12.052,18.157-15.374,28.706h-12.887c-4.875,0-8.828,3.948-8.828,8.828v35.31
51
- c0,4.879,3.953,8.828,8.828,8.828h35.31c4.875,0,8.828-3.948,8.828-8.828v-35.31c0-4.879-3.953-8.828-8.828-8.828h-3.676
52
- c7.172-17.662,21.329-31.819,38.986-38.989v3.679c0,4.879,3.953,8.828,8.828,8.828h35.31c4.875,0,8.828-3.948,8.828-8.828v-3.678
53
- c17.657,7.171,31.812,21.327,38.983,38.988h-3.677c-4.875,0-8.828,3.948-8.828,8.828v35.31c0,4.879,3.953,8.828,8.828,8.828h35.31
54
- c4.875,0,8.828-3.948,8.828-8.828v-35.31c0-4.879-3.953-8.828-8.828-8.828h-12.886c-3.321-10.549-8.585-20.26-15.373-28.707
55
- c3.25,1.427,6.837,2.225,10.607,2.225C394.189,361.931,406.069,350.051,406.069,335.448z M229.517,423.724h-17.655v-17.655h17.655
56
- V423.724z M388.409,423.724h-17.655v-17.655h17.655V423.724z M355.326,346.052c-0.751-0.604-1.511-1.197-2.282-1.777h1.577
57
- C354.836,344.878,355.071,345.471,355.326,346.052z M245.654,344.276h1.576c-0.77,0.579-1.529,1.172-2.28,1.775
58
- C245.206,345.47,245.44,344.878,245.654,344.276z M220.69,344.276c-4.866,0-8.828-3.957-8.828-8.828
59
- c0-4.871,3.961-8.828,8.828-8.828s8.828,3.957,8.828,8.828C229.517,340.319,225.556,344.276,220.69,344.276z M308.966,344.276
60
- H291.31v-17.655h17.655V344.276z M370.759,335.448c0-4.871,3.961-8.828,8.828-8.828s8.828,3.957,8.828,8.828
61
- c0,4.871-3.961,8.828-8.828,8.828S370.759,340.319,370.759,335.448z"/>
62
- </g>
63
- <g>
64
- <path style="fill:#FF9646;" d="M114.759,158.897H88.276c-4.866,0-8.828-3.957-8.828-8.828s3.961-8.828,8.828-8.828h35.31
65
- c4.875,0,8.828-3.948,8.828-8.828c0-4.879-3.953-8.828-8.828-8.828h-35.31c-14.603,0-26.483,11.88-26.483,26.483
66
- s11.88,26.483,26.483,26.483h26.483c4.866,0,8.828,3.957,8.828,8.828c0,4.871-3.961,8.828-8.828,8.828H70.621
67
- c-4.875,0-8.828,3.948-8.828,8.828s3.953,8.828,8.828,8.828h44.138c14.603,0,26.483-11.88,26.483-26.483
68
- S129.362,158.897,114.759,158.897z"/>
69
- <path style="fill:#FF9646;" d="M308.966,158.897h-26.483c-4.875,0-8.828,3.948-8.828,8.828s3.953,8.828,8.828,8.828h17.655
70
- c0,9.732-7.918,17.655-17.655,17.655h-8.828c-9.737,0-17.655-7.923-17.655-17.655v-17.655c0-9.732,7.918-17.655,17.655-17.655
71
- h8.828c5.017,0,9.815,2.146,13.155,5.888c3.258,3.629,8.832,3.948,12.466,0.69c3.634-3.25,3.948-8.828,0.698-12.466
72
- c-6.69-7.474-16.285-11.767-26.319-11.767h-8.828c-19.47,0-35.31,15.837-35.31,35.31v17.655c0,19.474,15.84,35.31,35.31,35.31
73
- h8.828c19.47,0,35.31-15.837,35.31-35.31v-8.828C317.793,162.845,313.841,158.897,308.966,158.897z"/>
74
- <path style="fill:#FF9646;" d="M222.831,123.853c-4.707-1.19-9.522,1.681-10.707,6.422l-14.444,57.775
75
- c-0.905,3.62-4.151,6.155-7.887,6.155c-3.736,0-6.983-2.535-7.887-6.155l-14.444-57.775c-1.185-4.742-5.983-7.612-10.707-6.422
76
- c-4.728,1.181-7.604,5.974-6.422,10.698l14.444,57.775c2.874,11.501,13.163,19.535,25.016,19.535
77
- c11.853,0,22.142-8.034,25.017-19.534l14.444-57.775C230.435,129.827,227.561,125.035,222.831,123.853z"/>
78
- </g>
79
- <g>
80
- </g>
81
- <g>
82
- </g>
83
- <g>
84
- </g>
85
- <g>
86
- </g>
87
- <g>
88
- </g>
89
- <g>
90
- </g>
91
- <g>
92
- </g>
93
- <g>
94
- </g>
95
- <g>
96
- </g>
97
- <g>
98
- </g>
99
- <g>
100
- </g>
101
- <g>
102
- </g>
103
- <g>
104
- </g>
105
- <g>
106
- </g>
107
- <g>
108
- </g>
109
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="12.213" height="15.267" viewBox="0 0 12.213 15.267">
2
- <path id="upload_file_FILL0_wght400_GRAD0_opsz48" d="M7.972,14.139H9.117V10.3l1.565,1.565.8-.8-2.977-2.9L5.568,11.1l.8.8,1.6-1.6ZM3.545,16.467a1.1,1.1,0,0,1-.8-.344,1.1,1.1,0,0,1-.344-.8V2.345a1.1,1.1,0,0,1,.344-.8,1.1,1.1,0,0,1,.8-.344h6.889l4.179,4.179v9.942a1.174,1.174,0,0,1-1.145,1.145ZM9.862,5.895V2.345H3.545V15.322h9.923V5.895ZM3.545,2.345v0Z" transform="translate(-2.4 -1.2)" fill="#707070"/>
3
- </svg>
@@ -1,53 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
5
- <path style="fill:#E2E5E7;" d="M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z"/>
6
- <path style="fill:#B0B7BD;" d="M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"/>
7
- <polygon style="fill:#CAD1D8;" points="480,224 384,128 480,128 "/>
8
- <path style="fill:#84BD5A;" d="M416,416c0,8.8-7.2,16-16,16H48c-8.8,0-16-7.2-16-16V256c0-8.8,7.2-16,16-16h352c8.8,0,16,7.2,16,16
9
- V416z"/>
10
- <g>
11
- <path style="fill:#FFFFFF;" d="M144.336,326.192l22.256-27.888c6.656-8.704,19.584,2.416,12.288,10.736
12
- c-7.664,9.088-15.728,18.944-23.408,29.04l26.096,32.496c7.04,9.6-7.024,18.8-13.936,9.328l-23.552-30.192l-23.152,30.848
13
- c-6.528,9.328-20.992-1.152-13.696-9.856l25.712-32.624c-8.064-10.112-15.872-19.952-23.664-29.04
14
- c-8.048-9.6,6.912-19.44,12.8-10.464L144.336,326.192z"/>
15
- <path style="fill:#FFFFFF;" d="M197.36,303.152c0-4.224,3.584-7.808,8.064-7.808c4.096,0,7.552,3.6,7.552,7.808v64.096h34.8
16
- c12.528,0,12.8,16.752,0,16.752H205.44c-4.48,0-8.064-3.184-8.064-7.792v-73.056H197.36z"/>
17
- <path style="fill:#FFFFFF;" d="M272.032,314.672c2.944-24.832,40.416-29.296,58.08-15.728c8.704,7.024-0.512,18.16-8.192,12.528
18
- c-9.472-6-30.96-8.816-33.648,4.464c-3.456,20.992,52.192,8.976,51.296,43.008c-0.896,32.496-47.968,33.248-65.632,18.672
19
- c-4.24-3.456-4.096-9.072-1.792-12.544c3.328-3.312,7.024-4.464,11.392-0.88c10.48,7.152,37.488,12.528,39.392-5.648
20
- C321.28,339.632,268.064,351.008,272.032,314.672z"/>
21
- </g>
22
- <path style="fill:#CAD1D8;" d="M400,432H96v16h304c8.8,0,16-7.2,16-16v-16C416,424.8,408.8,432,400,432z"/>
23
- <g>
24
- </g>
25
- <g>
26
- </g>
27
- <g>
28
- </g>
29
- <g>
30
- </g>
31
- <g>
32
- </g>
33
- <g>
34
- </g>
35
- <g>
36
- </g>
37
- <g>
38
- </g>
39
- <g>
40
- </g>
41
- <g>
42
- </g>
43
- <g>
44
- </g>
45
- <g>
46
- </g>
47
- <g>
48
- </g>
49
- <g>
50
- </g>
51
- <g>
52
- </g>
53
- </svg>