contentoh-components-library 21.5.52 → 21.5.55

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.test CHANGED
@@ -1,53 +1,75 @@
1
+ REACT_APP_APPOINTMENT_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/appointments
1
2
  REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/articles-data/datasheets
2
- # REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/articles-data/descriptions
3
- # REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/articles-data/images
4
-
5
- # CAMBIOS PARA TEST
6
3
  REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/articles-data/descriptions
7
4
  REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/articles-data/images
8
-
9
5
  REACT_APP_ARTICLE_DATA_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/articles-data
10
- REACT_APP_VALID_EXPORT_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/valid-export
11
- REACT_APP_SERVICES_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/services
12
- REACT_APP_EVALUATION_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/evaluations
13
- REACT_APP_SEND_EVAL=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/eval-status
14
- REACT_APP_COMMENTS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/comments
6
+ REACT_APP_ARTICLE_RETAILER_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/articles-retailers
7
+ REACT_APP_ARTICLE_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/articles
8
+ REACT_APP_CATEGORY_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/categories
9
+ REACT_APP_NOTIFICATIONS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/notifications
10
+ REACT_APP_ORDERED_SERVICES_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/ordered-services
11
+ REACT_APP_ORDER_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/orders
12
+ REACT_APP_NEW_ORDERS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/management-orders
13
+ REACT_APP_RETAILER_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/retailers
15
14
  REACT_APP_USER_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/users
16
15
  REACT_APP_ASSIGNATIONS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/assignations
16
+ REACT_APP_ROLES_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/roles
17
17
  REACT_APP_TASKS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/tasks
18
18
  REACT_APP_USER_TASKS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/user-tasks
19
- REACT_APP_CART=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/cart
20
- REACT_APP_RETAILER_REQUEST=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/retailers-request
19
+ REACT_APP_EVALUATION_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/evaluations
20
+ REACT_APP_EXPORTS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/exports
21
+ REACT_APP_CARDS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/cards
21
22
  REACT_APP_VERSIONS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/versions
22
- REACT_APP_RETAILER_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/retailers
23
+ REACT_APP_COMMENTS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/comments
24
+ REACT_APP_CONTRACTS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/contracts
25
+ REACT_APP_VALID_EXPORT_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/valid-export
26
+ REACT_APP_ARTICLES_PRIORITY_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/articles-priority
27
+ REACT_APP_SERVICES_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/services
28
+ REACT_APP_SEND_EVAL=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/eval-status
29
+ REACT_APP_MULTIPLE_DATASHEETS=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/multiple-edition/read-datasheet
30
+ REACT_APP_MULTIPLE_DESCRIPTIONS=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/multiple-edition/read-description
31
+ REACT_APP_MULTIPLE_IMAGES=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/multiple-edition/read-images
32
+ REACT_APP_RETAILERS_SERVICES=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/retailer-service
33
+ REACT_APP_USER_ROL=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/user-roles
23
34
  REACT_APP_READ_ORDERS_BY_STATUS=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/read-orders-by-status
24
- REACT_APP_CATEGORY_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/categories
35
+ REACT_APP_READ_REQUIRED_ORDERS=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/read-required-orders
25
36
  REACT_APP_READ_PROVIDERS=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/providers
26
37
  REACT_APP_PENDING_INVITATIONS=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/pending-invitations
27
- REACT_APP_PRODUCTS_CHAT_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/products-chat
28
- REACT_APP_TICKETS_CHAT_ENDPOINT=https://ocqbzaa4a2.execute-api.us-east-1.amazonaws.com/test/ticket-chat
38
+ REACT_APP_READ_RETAILER_SERVICES=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/services
39
+ REACT_APP_READ_METRICS=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/metrics
40
+ REACT_APP_READ_METRICS_USER=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/metrics-user
41
+ REACT_APP_ORDER_DETAIL=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/order-detail
42
+ REACT_APP_UPDATE_BILLING=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/billing
29
43
  REACT_APP_GET_AUDIT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/version-manager
44
+ REACT_APP_DROPSHIP_ACQUIRED_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/dropship/acquired
30
45
  REACT_APP_READ_MESSAGES=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/read-messages
31
46
  REACT_APP_CREATE_MESSAGES=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/create-messages
32
- REACT_APP_CARDS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/cards
33
- REACT_APP_UPDATE_OBSERVATION=https://rf3hwhpv21.execute-api.us-east-1.amazonaws.com/test/articles-observations/update-observations
34
- REACT_APP_READ_OBSERVATION=https://rf3hwhpv21.execute-api.us-east-1.amazonaws.com/test/articles-observations/read-observation
35
- REACT_APP_PAYMENTS=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/payments
47
+ REACT_APP_PRODUCTS_CHAT_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/products-chat
48
+
49
+ REACT_APP_EXPORT_ENDPOINT=https://pns3vign1b.execute-api.us-east-1.amazonaws.com/test/export-v2
50
+ REACT_APP_EXPORTABLES=https://l3bcpnpyoa.execute-api.us-east-1.amazonaws.com/test/data-aggregates-assignee-export
51
+ REACT_APP_ORDERS_EXPORTABLES=https://pns3vign1b.execute-api.us-east-1.amazonaws.com/test/orders-export
52
+ REACT_APP_CONTROL_EXPORT=https://pns3vign1b.execute-api.us-east-1.amazonaws.com/test/control-exports
53
+ REACT_APP_BILLING=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/orders/read-billing-products
54
+ REACT_APP_UPDATE_BILLING_PRODUCTS=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/orders/update-billing-products
36
55
  REACT_APP_EVALUATION_REFACTOR=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/refactor-change-status
37
- REACT_APP_CARDS_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/cards
38
- REACT_APP_BASE_MULTIPLE_EDITION_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/multiple-edition
39
- REACT_APP_BASE_UPDATE_IMAGES_ENDPOINT=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/update-images
40
- REACT_APP_PHASES_ENDPOINT=https://m1mi6oqvia.execute-api.us-east-1.amazonaws.com/test/orquestrator-phases
41
- REACT_APP_GROUPS_ENDPOINT=https://m1mi6oqvia.execute-api.us-east-1.amazonaws.com/test/orquestrator-groups
42
- REACT_APP_USERS_ONBOARDING_ENDPOINT=https://m1mi6oqvia.execute-api.us-east-1.amazonaws.com/test/orquestrator-users
43
56
 
44
57
  REACT_APP_IMAGES_ENDPOINT=https://content-management-images.s3.amazonaws.com
45
- REACT_APP_IMAGES_BUCKET=content-management-images
46
- REACT_APP_IMAGES_PROFILE_BUCKET=content-management-profile
58
+ REACT_APP_INCREMENT_LIMIT=50
59
+ REACT_APP_IMAGES_BUCKET=content-management-images-prod
60
+ REACT_APP_IMAGES_PROFILE_BUCKET=content-management-profile-prod
47
61
  REACT_APP_KUTS3=AKIA5CPHLQTTZ7OCQLXK
48
62
  REACT_APP_AKUTS3=w/dIbyC2ghFiN4vgX6yG9/YXjnD8FHNZjkysaC5y
49
- REACT_APP_USER_POOL_ID=us-east-1_XMZQdqkGj
50
- REACT_APP_USER_POOL_WEB_CLIENT_ID=5ac8tpgs6gbsq13frvrpieep40
51
- REACT_APP_KEY_STRIPE=pk_test_51J0bb0HCkqMP7wBlGPoEHU6bVLszHT5qHa1uPZp4ThgaMFYbvOAcKfI8q1fsWhbiO02Zn78lgYwuElcwfrA9rnaF00fA4q5zcs
63
+ REACT_APP_USER_POOL_ID=us-east-1_lSzQZ4Z7R
64
+ REACT_APP_USER_POOL_WEB_CLIENT_ID=52d9skkdcg8qjp88ook1use6mk
65
+ REACT_APP_KEY_STRIPE=pk_test_51J24T2FWYDzODJzg83NH6nbqPRl8s0YeZa0BTojHrsQseNJh3OCGomci8oA4MPdr00nMv2rlpWnpI7WHTkx0imy500XSIEHPwY
66
+ REACT_APP_CREATE_PRODUCTS_FILTERS=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/create-products-filters
67
+
68
+ REACT_APP_TEST_ARTICLE_PERCENTAGES=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/percentages
69
+ REACT_APP_GET_REPORT=https://l3bcpnpyoa.execute-api.us-east-1.amazonaws.com/test/invoke-new-report
70
+
71
+ SKIP_PREFLIGHT_CHECK=true
52
72
 
53
- REACT_APP_TEST_ARTICLE_PERCENTAGES=https://7o2hp8msfl.execute-api.us-east-1.amazonaws.com/test/percentages
73
+ REACT_APP_ID_AWS=7o2hp8msfl
74
+ REACT_APP_ENVIRONMENT=test
75
+ REACT_APP_REGION=us-east-1
@@ -33,115 +33,194 @@ RetailerProductEditionDefault.args = {
33
33
  },
34
34
  token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIzOWE5MDMwOS04MWNkLTQ4ZGYtODZmYi1iMjJjNGEwZTA1NTkiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjM5YTkwMzA5LTgxY2QtNDhkZi04NmZiLWIyMmM0YTBlMDU1OSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJmOGMyYWZlYS01MDFjLTRiZDItOWVkMS1lNTYyOTNhM2RkZWIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTc2MDYzNjU2NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTc2MDY0MDE2NywiaWF0IjoxNzYwNjM2NTY3LCJlbWFpbCI6ImVzcGVjaWFsaXN0YXRleHRvc2RldkBhbGxmcmVlbWFpbC5uZXQifQ.hcliXw44sm09Z3Lq4MgUp9Pgfmp0EIWL5fMBqCtnGJDKG1rtbbb19GqVqRZNt7H4C4n-5SvA_-UwGP_8_tFYqVQsGedecVB-dvhQMaiIV7OvwbMQq9JxLcygsAoJkWc54AEidxj4wXn7Jczxi8v_9STpBQo2ks4Vo8GyhHDQFd1mxmuXzr-7PVR5FHDr6dqUUaQn1RjUftTnabGRwUYbHo1WKyOPpNpSvK0HGmn8csP8ldU6111t-lA_Q9cF3y1Rcx_TFSAZfKAn-Jqa9I1Wp7l6bJ8o6QK0L5kJykJfpsjgTyoJuVj7-puv-a9-BEXEwyEAwrYbXm9eTpjXXsRhmw",
35
35
  productSelected: {
36
- "articleId": 121906,
36
+ "articleId": 18193,
37
37
  "services": {
38
38
  "datasheets": 1,
39
39
  "descriptions": 1,
40
40
  "images": 1
41
41
  },
42
- "orderId": 15514,
43
- "status": "AS",
44
- "datasheet_status": "AS",
42
+ "orderId": 7707,
43
+ "city": "",
44
+ "status": "AA",
45
+ "datasheet_status": "AA",
45
46
  "prio": "none",
46
- "version": 3,
47
- "description_status": "AS",
48
- "images_status": "AS",
47
+ "version": 30,
48
+ "description_status": "AA",
49
+ "images_status": "AA",
49
50
  "statusByRetailer": [{
50
- "status": "AS",
51
+ "status": "AA",
51
52
  "service": "datasheet",
52
- "retailer_id": 9,
53
- "task_user_group_id": 2
53
+ "retailer_id": 12,
54
+ "task_user_group_id": 5
54
55
  }, {
55
- "status": "AS",
56
+ "status": "AA",
56
57
  "service": "description",
57
- "retailer_id": 9,
58
- "task_user_group_id": 2
58
+ "retailer_id": 12,
59
+ "task_user_group_id": 5
59
60
  }, {
60
- "status": "AS",
61
+ "status": "AA",
61
62
  "service": "images",
62
- "retailer_id": 9,
63
- "task_user_group_id": 2
64
- }, {
65
- "status": "AS",
66
- "service": "datasheet",
67
- "retailer_id": 17,
68
- "task_user_group_id": 2
69
- }, {
70
- "status": "AS",
71
- "service": "description",
72
- "retailer_id": 17,
73
- "task_user_group_id": 2
74
- }, {
75
- "status": "AS",
76
- "service": "images",
77
- "retailer_id": 17,
78
- "task_user_group_id": 2
79
- }, {
80
- "status": "AS",
81
- "service": "datasheet",
82
- "retailer_id": 1011,
83
- "task_user_group_id": 2
84
- }, {
85
- "status": "AS",
86
- "service": "description",
87
- "retailer_id": 1011,
88
- "task_user_group_id": 2
89
- }, {
90
- "status": "AS",
91
- "service": "images",
92
- "retailer_id": 1011,
93
- "task_user_group_id": 2
63
+ "retailer_id": 12,
64
+ "task_user_group_id": 5
94
65
  }],
95
66
  "article": {
96
- "id_article": 121906,
97
- "id_category": "120",
98
- "name": "Prueba Flujo Serna 22 Oct",
99
- "upc": "1234321234",
100
- "sku": "1243454321",
101
- "timestamp": "2025-10-22T17:11:32.000Z",
67
+ "id_article": 18193,
68
+ "id_category": "157",
69
+ "brand": "Axion",
70
+ "name": "Detergente lavatrastes líquido Axion limón 900 ml",
71
+ "upc": "7509546052977",
72
+ "sku": null,
73
+ "timestamp": "2021-10-09T16:33:17.000Z",
102
74
  "active": 1,
103
- "company_id": 1015,
104
- "company_name": "72uheudehf",
75
+ "company_id": 226,
76
+ "company_name": "COLGATE PALMOLIVE S.A. DE C.V.",
105
77
  "country": "México",
106
- "id_order": 15514,
107
- "id_datasheet_especialist": 442,
78
+ "id_order": 7707,
79
+ "id_datasheet_especialist": 498,
108
80
  "id_datasheet_facilitator": null,
109
- "id_description_especialist": 442,
81
+ "id_description_especialist": 498,
110
82
  "id_description_facilitator": null,
111
- "id_images_especialist": 443,
83
+ "id_images_especialist": 1460,
112
84
  "id_images_facilitator": null,
113
- "id_auditor": null,
85
+ "id_auditor": 1254,
114
86
  "id_recepcionist": null,
115
- "category": "Congelados|Cárnicos|Carnes Granel",
87
+ "category": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
116
88
  "categoryRetailer": [{
117
- "id_category": 4,
89
+ "id_category": 157,
118
90
  "id_retailer": 17,
119
- "category_name": "Abarrotes|Abarrotes Secos|Alimentos Deshidratados",
91
+ "category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
120
92
  "retailer_name": "Genérico"
121
93
  }, {
122
- "id_category": 120,
123
- "id_retailer": 9,
124
- "category_name": "Congelados|Cárnicos|Carnes Granel",
125
- "retailer_name": "Amazon"
94
+ "id_category": 3430,
95
+ "id_retailer": 12,
96
+ "category_name": "Departamento General La Comer|Departamento General|Departamento General",
97
+ "retailer_name": "La Comer"
126
98
  }, {
127
- "id_category": 157,
128
- "id_retailer": 1011,
99
+ "id_category": 3433,
100
+ "id_retailer": 24,
101
+ "category_name": "Limpieza Del Hogar|Limpieza Del Hogar|Limpieza Del Hogar",
102
+ "retailer_name": "Alsuper"
103
+ }, {
104
+ "id_category": 3456,
105
+ "id_retailer": 41,
106
+ "category_name": "Categoría Genérica Chapa|Categoría Genérica|Categoría Genérica",
107
+ "retailer_name": "Chapa"
108
+ }, {
109
+ "id_category": 3499,
110
+ "id_retailer": 20,
111
+ "category_name": "Consumibles Cornershop|Consumibles|Consumibles",
112
+ "retailer_name": "Cornershop"
113
+ }, {
114
+ "id_category": 3507,
115
+ "id_retailer": 38,
116
+ "category_name": "Hogar|Artículos de Limpieza|Multiusos",
117
+ "retailer_name": "Del Sol"
118
+ }, {
119
+ "id_category": 3562,
120
+ "id_retailer": 29,
121
+ "category_name": "Consumibles Farmacias del Ahorro|Consumibles|Consumibles",
122
+ "retailer_name": "Farmacias del Ahorro"
123
+ }, {
124
+ "id_category": 3588,
125
+ "id_retailer": 8,
126
+ "category_name": "Hogar|Limpieza|Lavatrastes",
127
+ "retailer_name": "Fragua"
128
+ }, {
129
+ "id_category": 3604,
130
+ "id_retailer": 18,
131
+ "category_name": "Categoría Genérica Google|Categoría Genérica|Categoría Genérica",
132
+ "retailer_name": "Google"
133
+ }, {
134
+ "id_category": 3741,
135
+ "id_retailer": 6,
136
+ "category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
137
+ "retailer_name": "HEB"
138
+ }, {
139
+ "id_category": 4780,
140
+ "id_retailer": 27,
141
+ "category_name": "Categoría Genérica IMPIRA México|Categoría Genérica|Categoría Genérica",
142
+ "retailer_name": "IMPIRA México"
143
+ }, {
144
+ "id_category": 4796,
145
+ "id_retailer": 39,
146
+ "category_name": "Limpieza y Hogar|Limpieza General|Limpieza General",
147
+ "retailer_name": "Justo"
148
+ }, {
149
+ "id_category": 4835,
150
+ "id_retailer": 7,
151
+ "category_name": "Categoría Genérica Mega|Categoría Genérica|Categoría Genérica",
152
+ "retailer_name": "Mega"
153
+ }, {
154
+ "id_category": 4853,
155
+ "id_retailer": 33,
156
+ "category_name": "Cuidado Hogar|Lavatrastes|Lavatrastes Liquidos",
157
+ "retailer_name": "Merza"
158
+ }, {
159
+ "id_category": 4873,
160
+ "id_retailer": 36,
161
+ "category_name": "Productos del Hogar|Productos del Hogar|Productos del Hogar",
162
+ "retailer_name": "Oxxo"
163
+ }, {
164
+ "id_category": 4911,
165
+ "id_retailer": 16,
166
+ "category_name": "Categoría Genérica Rappi|Categoría Genérica|Categoría Genérica",
167
+ "retailer_name": "Rappi"
168
+ }, {
169
+ "id_category": 5918,
170
+ "id_retailer": 4,
129
171
  "category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
130
- "retailer_name": "Farmatodo"
172
+ "retailer_name": "Walmart Super y Superama"
173
+ }, {
174
+ "id_category": 7126,
175
+ "id_retailer": 13,
176
+ "category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
177
+ "retailer_name": "Soriana"
178
+ }, {
179
+ "id_category": 7196,
180
+ "id_retailer": 5,
181
+ "category_name": "Categoría Consumibles Chedraui|Consumibles|Productos de Limpieza y Lavandería",
182
+ "retailer_name": "Chedraui"
131
183
  }]
132
184
  },
133
185
  "retailers": [{
134
- "id": 9,
135
- "name": "Amazon"
186
+ "id": 4,
187
+ "name": "Walmart Super y Superama"
188
+ }, {
189
+ "id": 5,
190
+ "name": "Chedraui"
191
+ }, {
192
+ "id": 6,
193
+ "name": "HEB"
194
+ }, {
195
+ "id": 8,
196
+ "name": "Fragua"
197
+ }, {
198
+ "id": 12,
199
+ "name": "La Comer"
200
+ }, {
201
+ "id": 13,
202
+ "name": "Soriana"
203
+ }, {
204
+ "id": 16,
205
+ "name": "Rappi"
136
206
  }, {
137
207
  "id": 17,
138
208
  "name": "Genérico"
139
209
  }, {
140
- "id": 1011,
141
- "name": "Farmatodo"
210
+ "id": 20,
211
+ "name": "Cornershop"
212
+ }, {
213
+ "id": 24,
214
+ "name": "Alsuper"
215
+ }, {
216
+ "id": 29,
217
+ "name": "Farmacias del Ahorro"
218
+ }, {
219
+ "id": 36,
220
+ "name": "Oxxo"
142
221
  }],
143
222
  "country": "México",
144
- "upc": "1234321234"
223
+ "upc": "7509546052977"
145
224
  },
146
225
  // location: {
147
226
  // product: { articleId: 126855, versionId: 3 },
@@ -150,58 +229,23 @@ RetailerProductEditionDefault.args = {
150
229
  // chatType: "product_status",
151
230
  // },
152
231
  // },
153
- user: {
154
- "id_user": 442,
155
- "name": "Especialista",
156
- "last_name": "Textos",
157
- "email": "especialistatextosdev@allfreemail.net",
158
- "position": "Especialista de Imágenes",
159
- "telephone": null,
160
- "country": null,
161
- "id_company": 2,
162
- "id_role": 7,
163
- "about_me": null,
164
- "address": null,
165
- "job": null,
166
- "id_stripe": null,
167
- "active": 1,
168
- "email_notify": 1,
169
- "id_cognito": "39a90309-81cd-48df-86fb-b22c4a0e0559",
170
- "birth_Date": null,
171
- "zip_code": null,
172
- "is_retailer": 0,
173
- "is_onboarding": 0,
174
- "is_user_tech": null,
175
- "profile_picture_ext": null,
176
- "membership": {
177
- "id": 2,
178
- "start_date": "2021-11-05T02:35:12.000Z",
179
- "end_date": "2022-11-05T02:34:49.000Z",
180
- "planID": 1,
181
- "plan": "prod_KtkvuFFLpOdP6e",
182
- "name": "Plan Free",
183
- "user_limit": "1",
184
- "products_limit": "3",
185
- "type": "PyMES"
186
- },
187
- "src": "https://content-management-profile.s3.amazonaws.com/id-442/442.png?1760636567736"
188
- } // user: {
189
- // "id_user": 443,
232
+ // user: {
233
+ // "id_user": 442,
190
234
  // "name": "Especialista",
191
- // "last_name": "Edición",
192
- // "email": "especialistaimagenesdev@allfreemail.net",
193
- // "position": "Especialista de edición",
235
+ // "last_name": "Textos",
236
+ // "email": "especialistatextosdev@allfreemail.net",
237
+ // "position": "Especialista de Imágenes",
194
238
  // "telephone": null,
195
239
  // "country": null,
196
240
  // "id_company": 2,
197
- // "id_role": 8,
241
+ // "id_role": 7,
198
242
  // "about_me": null,
199
243
  // "address": null,
200
244
  // "job": null,
201
245
  // "id_stripe": null,
202
246
  // "active": 1,
203
247
  // "email_notify": 1,
204
- // "id_cognito": "1d1394ce-4e30-4fef-8fdc-f53cf11be408",
248
+ // "id_cognito": "39a90309-81cd-48df-86fb-b22c4a0e0559",
205
249
  // "birth_Date": null,
206
250
  // "zip_code": null,
207
251
  // "is_retailer": 0,
@@ -219,7 +263,41 @@ RetailerProductEditionDefault.args = {
219
263
  // "products_limit": "3",
220
264
  // "type": "PyMES"
221
265
  // },
222
- // "src": "https://content-management-profile.s3.amazonaws.com/id-443/443.png?1761067566391"
223
- // }
224
-
266
+ // "src": "https://content-management-profile.s3.amazonaws.com/id-442/442.png?1760636567736"
267
+ // },
268
+ user: {
269
+ "id_user": 3016,
270
+ "name": "Oscar",
271
+ "last_name": "Serna",
272
+ "email": "oserna@contentoh.com",
273
+ "position": null,
274
+ "telephone": null,
275
+ "country": null,
276
+ "id_company": 254,
277
+ "id_cognito": "5934beeb-e8d2-4b00-b3a5-8c0fdc516e97",
278
+ "birth_Date": null,
279
+ "about_me": null,
280
+ "zip_code": null,
281
+ "address": null,
282
+ "job": null,
283
+ "id_stripe": null,
284
+ "id_role": 1,
285
+ "active": 1,
286
+ "is_retailer": 0,
287
+ "email_notify": 1,
288
+ "is_user_tech": "ADMIN-AS",
289
+ "is_onboarding": 0,
290
+ "membership": {
291
+ "id": 750,
292
+ "start_date": "2022-01-07T21:32:54.000Z",
293
+ "end_date": "2023-01-07T21:32:54.000Z",
294
+ "planID": 6,
295
+ "plan": "prod_KvGd6YSTJyR3AP",
296
+ "name": "Plan Small",
297
+ "user_limit": "10",
298
+ "products_limit": "1000",
299
+ "type": "Enterprise"
300
+ },
301
+ "src": "https://content-management-profile-prod.s3.amazonaws.com/id-3016/3016.png?1763071181637"
302
+ }
225
303
  };
@@ -803,6 +803,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
803
803
  switch (_context7.prev = _context7.next) {
804
804
  case 0:
805
805
  _context7.prev = 0;
806
+ setLoading(true);
806
807
  ids = (_ref10 = (_product$statusByReta = product === null || product === void 0 ? void 0 : (_product$statusByReta2 = product.statusByRetailer) === null || _product$statusByReta2 === void 0 ? void 0 : _product$statusByReta2.map(function (item) {
807
808
  return item.retailer_id;
808
809
  })) !== null && _product$statusByReta !== void 0 ? _product$statusByReta : product === null || product === void 0 ? void 0 : (_product$statusByReta3 = product.statusByRetailer) === null || _product$statusByReta3 === void 0 ? void 0 : _product$statusByReta3.map(function (item) {
@@ -831,10 +832,10 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
831
832
  category_name = categoryName !== null && categoryName !== void 0 ? categoryName : (product === null || product === void 0 ? void 0 : (_product$article7 = product.article) === null || _product$article7 === void 0 ? void 0 : _product$article7.company_name) || (product === null || product === void 0 ? void 0 : product.categoryName);
832
833
  category_id = categoryId !== null && categoryId !== void 0 ? categoryId : parseInt((product === null || product === void 0 ? void 0 : (_product$article8 = product.article) === null || _product$article8 === void 0 ? void 0 : _product$article8.id_category) || (product === null || product === void 0 ? void 0 : product.id_category));
833
834
  retailer_id = (_activeRetailerId = activeRetailerId) !== null && _activeRetailerId !== void 0 ? _activeRetailerId : categoryRetailer === null || categoryRetailer === void 0 ? void 0 : categoryRetailer.id_retailer;
834
- _context7.next = 13;
835
+ _context7.next = 14;
835
836
  return (0, _data2.getRetailerServices)((product === null || product === void 0 ? void 0 : product.id_article) || (product === null || product === void 0 ? void 0 : (_product$article9 = product.article) === null || _product$article9 === void 0 ? void 0 : _product$article9.id_article), category_name, category_id, version, token, retailer_id);
836
837
 
837
- case 13:
838
+ case 14:
838
839
  _services = _context7.sent;
839
840
 
840
841
  if (auditableVersion && retailer_id) {
@@ -842,10 +843,10 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
842
843
  }
843
844
 
844
845
  setServices(_services);
845
- _context7.next = 18;
846
+ _context7.next = 19;
846
847
  return getServices();
847
848
 
848
- case 18:
849
+ case 19:
849
850
  generalServices = _context7.sent;
850
851
  setImages({
851
852
  action: "init",
@@ -871,22 +872,26 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
871
872
 
872
873
  setPercentages(JSON.parse(res === null || res === void 0 ? void 0 : (_res$ = res[0]) === null || _res$ === void 0 ? void 0 : _res$.body));
873
874
  });
875
+ setImages({
876
+ action: "orderImages",
877
+ retailerId: activeRetailer.id
878
+ });
874
879
  setLoading(false);
875
- _context7.next = 31;
880
+ _context7.next = 33;
876
881
  break;
877
882
 
878
- case 27:
879
- _context7.prev = 27;
883
+ case 29:
884
+ _context7.prev = 29;
880
885
  _context7.t0 = _context7["catch"](0);
881
886
  setLoading(false);
882
887
  console.log(_context7.t0);
883
888
 
884
- case 31:
889
+ case 33:
885
890
  case "end":
886
891
  return _context7.stop();
887
892
  }
888
893
  }
889
- }, _callee7, null, [[0, 27]]);
894
+ }, _callee7, null, [[0, 29]]);
890
895
  }));
891
896
 
892
897
  return function loadData() {
@@ -2557,7 +2562,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
2557
2562
  size: 12,
2558
2563
  onClick: /*#__PURE__*/function () {
2559
2564
  var _ref28 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23(e) {
2560
- var element, body;
2565
+ var element, body, container, existingAlert, alert;
2561
2566
  return _regenerator.default.wrap(function _callee23$(_context23) {
2562
2567
  while (1) {
2563
2568
  switch (_context23.prev = _context23.next) {
@@ -2584,15 +2589,41 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
2584
2589
  return _context23.abrupt("return");
2585
2590
 
2586
2591
  case 8:
2587
- _context23.next = 10;
2592
+ if (!(!body || body.replace(/<.*?\/?>/gm, "").trim() === "")) {
2593
+ _context23.next = 19;
2594
+ break;
2595
+ }
2596
+
2597
+ container = document.querySelector(".container-customComponent"); // Verificar si ya existe una alerta
2598
+
2599
+ existingAlert = container.querySelector(".alert-error");
2600
+
2601
+ if (!existingAlert) {
2602
+ _context23.next = 13;
2603
+ break;
2604
+ }
2605
+
2606
+ return _context23.abrupt("return");
2607
+
2608
+ case 13:
2609
+ // Crear alerta con estilos
2610
+ alert = document.createElement("div");
2611
+ alert.className = "alert-error";
2612
+ alert.style.cssText = "\n color: #d32f2f;\n background-color: #ffebee;\n border: 1px solid #ef5350;\n border-radius: 4px;\n padding: 12px 16px;\n margin-top: 10px;\n font-size: 14px;\n display: flex;\n align-items: center;\n gap: 8px;\n font-family: 'Roboto', sans-serif;\n text-align: center;\n ";
2613
+ alert.innerHTML = "\n <span>El mensaje no puede estar vac\xEDo.</span>\n ";
2614
+ container.appendChild(alert);
2615
+ return _context23.abrupt("return");
2616
+
2617
+ case 19:
2618
+ _context23.next = 21;
2588
2619
  return createComment(e, body, activeTab);
2589
2620
 
2590
- case 10:
2621
+ case 21:
2591
2622
  valRejAll ? validateAll("R") : sendToFacilitator("R");
2592
2623
  setMessage("Rechazado");
2593
2624
  setShowRejectModal(false);
2594
2625
 
2595
- case 13:
2626
+ case 24:
2596
2627
  case "end":
2597
2628
  return _context23.stop();
2598
2629
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.5.52",
3
+ "version": "21.5.55",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -18,133 +18,231 @@ RetailerProductEditionDefault.args = {
18
18
  token:
19
19
  "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIzOWE5MDMwOS04MWNkLTQ4ZGYtODZmYi1iMjJjNGEwZTA1NTkiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjM5YTkwMzA5LTgxY2QtNDhkZi04NmZiLWIyMmM0YTBlMDU1OSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJmOGMyYWZlYS01MDFjLTRiZDItOWVkMS1lNTYyOTNhM2RkZWIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTc2MDYzNjU2NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTc2MDY0MDE2NywiaWF0IjoxNzYwNjM2NTY3LCJlbWFpbCI6ImVzcGVjaWFsaXN0YXRleHRvc2RldkBhbGxmcmVlbWFpbC5uZXQifQ.hcliXw44sm09Z3Lq4MgUp9Pgfmp0EIWL5fMBqCtnGJDKG1rtbbb19GqVqRZNt7H4C4n-5SvA_-UwGP_8_tFYqVQsGedecVB-dvhQMaiIV7OvwbMQq9JxLcygsAoJkWc54AEidxj4wXn7Jczxi8v_9STpBQo2ks4Vo8GyhHDQFd1mxmuXzr-7PVR5FHDr6dqUUaQn1RjUftTnabGRwUYbHo1WKyOPpNpSvK0HGmn8csP8ldU6111t-lA_Q9cF3y1Rcx_TFSAZfKAn-Jqa9I1Wp7l6bJ8o6QK0L5kJykJfpsjgTyoJuVj7-puv-a9-BEXEwyEAwrYbXm9eTpjXXsRhmw",
20
20
  productSelected: {
21
- "articleId": 121906,
22
- "services": {
23
- "datasheets": 1,
24
- "descriptions": 1,
25
- "images": 1
26
- },
27
- "orderId": 15514,
28
- "status": "AS",
29
- "datasheet_status": "AS",
30
- "prio": "none",
31
- "version": 3,
32
- "description_status": "AS",
33
- "images_status": "AS",
34
- "statusByRetailer": [
35
- {
36
- "status": "AS",
37
- "service": "datasheet",
38
- "retailer_id": 9,
39
- "task_user_group_id": 2
40
- },
41
- {
42
- "status": "AS",
43
- "service": "description",
44
- "retailer_id": 9,
45
- "task_user_group_id": 2
46
- },
47
- {
48
- "status": "AS",
49
- "service": "images",
50
- "retailer_id": 9,
51
- "task_user_group_id": 2
52
- },
53
- {
54
- "status": "AS",
55
- "service": "datasheet",
56
- "retailer_id": 17,
57
- "task_user_group_id": 2
58
- },
59
- {
60
- "status": "AS",
61
- "service": "description",
62
- "retailer_id": 17,
63
- "task_user_group_id": 2
21
+ "articleId": 18193,
22
+ "services": {
23
+ "datasheets": 1,
24
+ "descriptions": 1,
25
+ "images": 1
64
26
  },
65
- {
66
- "status": "AS",
67
- "service": "images",
68
- "retailer_id": 17,
69
- "task_user_group_id": 2
27
+ "orderId": 7707,
28
+ "city": "",
29
+ "status": "AA",
30
+ "datasheet_status": "AA",
31
+ "prio": "none",
32
+ "version": 30,
33
+ "description_status": "AA",
34
+ "images_status": "AA",
35
+ "statusByRetailer": [
36
+ {
37
+ "status": "AA",
38
+ "service": "datasheet",
39
+ "retailer_id": 12,
40
+ "task_user_group_id": 5
41
+ },
42
+ {
43
+ "status": "AA",
44
+ "service": "description",
45
+ "retailer_id": 12,
46
+ "task_user_group_id": 5
47
+ },
48
+ {
49
+ "status": "AA",
50
+ "service": "images",
51
+ "retailer_id": 12,
52
+ "task_user_group_id": 5
53
+ }
54
+ ],
55
+ "article": {
56
+ "id_article": 18193,
57
+ "id_category": "157",
58
+ "brand": "Axion",
59
+ "name": "Detergente lavatrastes líquido Axion limón 900 ml",
60
+ "upc": "7509546052977",
61
+ "sku": null,
62
+ "timestamp": "2021-10-09T16:33:17.000Z",
63
+ "active": 1,
64
+ "company_id": 226,
65
+ "company_name": "COLGATE PALMOLIVE S.A. DE C.V.",
66
+ "country": "México",
67
+ "id_order": 7707,
68
+ "id_datasheet_especialist": 498,
69
+ "id_datasheet_facilitator": null,
70
+ "id_description_especialist": 498,
71
+ "id_description_facilitator": null,
72
+ "id_images_especialist": 1460,
73
+ "id_images_facilitator": null,
74
+ "id_auditor": 1254,
75
+ "id_recepcionist": null,
76
+ "category": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
77
+ "categoryRetailer": [
78
+ {
79
+ "id_category": 157,
80
+ "id_retailer": 17,
81
+ "category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
82
+ "retailer_name": "Genérico"
83
+ },
84
+ {
85
+ "id_category": 3430,
86
+ "id_retailer": 12,
87
+ "category_name": "Departamento General La Comer|Departamento General|Departamento General",
88
+ "retailer_name": "La Comer"
89
+ },
90
+ {
91
+ "id_category": 3433,
92
+ "id_retailer": 24,
93
+ "category_name": "Limpieza Del Hogar|Limpieza Del Hogar|Limpieza Del Hogar",
94
+ "retailer_name": "Alsuper"
95
+ },
96
+ {
97
+ "id_category": 3456,
98
+ "id_retailer": 41,
99
+ "category_name": "Categoría Genérica Chapa|Categoría Genérica|Categoría Genérica",
100
+ "retailer_name": "Chapa"
101
+ },
102
+ {
103
+ "id_category": 3499,
104
+ "id_retailer": 20,
105
+ "category_name": "Consumibles Cornershop|Consumibles|Consumibles",
106
+ "retailer_name": "Cornershop"
107
+ },
108
+ {
109
+ "id_category": 3507,
110
+ "id_retailer": 38,
111
+ "category_name": "Hogar|Artículos de Limpieza|Multiusos",
112
+ "retailer_name": "Del Sol"
113
+ },
114
+ {
115
+ "id_category": 3562,
116
+ "id_retailer": 29,
117
+ "category_name": "Consumibles Farmacias del Ahorro|Consumibles|Consumibles",
118
+ "retailer_name": "Farmacias del Ahorro"
119
+ },
120
+ {
121
+ "id_category": 3588,
122
+ "id_retailer": 8,
123
+ "category_name": "Hogar|Limpieza|Lavatrastes",
124
+ "retailer_name": "Fragua"
125
+ },
126
+ {
127
+ "id_category": 3604,
128
+ "id_retailer": 18,
129
+ "category_name": "Categoría Genérica Google|Categoría Genérica|Categoría Genérica",
130
+ "retailer_name": "Google"
131
+ },
132
+ {
133
+ "id_category": 3741,
134
+ "id_retailer": 6,
135
+ "category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
136
+ "retailer_name": "HEB"
137
+ },
138
+ {
139
+ "id_category": 4780,
140
+ "id_retailer": 27,
141
+ "category_name": "Categoría Genérica IMPIRA México|Categoría Genérica|Categoría Genérica",
142
+ "retailer_name": "IMPIRA México"
143
+ },
144
+ {
145
+ "id_category": 4796,
146
+ "id_retailer": 39,
147
+ "category_name": "Limpieza y Hogar|Limpieza General|Limpieza General",
148
+ "retailer_name": "Justo"
149
+ },
150
+ {
151
+ "id_category": 4835,
152
+ "id_retailer": 7,
153
+ "category_name": "Categoría Genérica Mega|Categoría Genérica|Categoría Genérica",
154
+ "retailer_name": "Mega"
155
+ },
156
+ {
157
+ "id_category": 4853,
158
+ "id_retailer": 33,
159
+ "category_name": "Cuidado Hogar|Lavatrastes|Lavatrastes Liquidos",
160
+ "retailer_name": "Merza"
161
+ },
162
+ {
163
+ "id_category": 4873,
164
+ "id_retailer": 36,
165
+ "category_name": "Productos del Hogar|Productos del Hogar|Productos del Hogar",
166
+ "retailer_name": "Oxxo"
167
+ },
168
+ {
169
+ "id_category": 4911,
170
+ "id_retailer": 16,
171
+ "category_name": "Categoría Genérica Rappi|Categoría Genérica|Categoría Genérica",
172
+ "retailer_name": "Rappi"
173
+ },
174
+ {
175
+ "id_category": 5918,
176
+ "id_retailer": 4,
177
+ "category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
178
+ "retailer_name": "Walmart Super y Superama"
179
+ },
180
+ {
181
+ "id_category": 7126,
182
+ "id_retailer": 13,
183
+ "category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
184
+ "retailer_name": "Soriana"
185
+ },
186
+ {
187
+ "id_category": 7196,
188
+ "id_retailer": 5,
189
+ "category_name": "Categoría Consumibles Chedraui|Consumibles|Productos de Limpieza y Lavandería",
190
+ "retailer_name": "Chedraui"
191
+ }
192
+ ]
70
193
  },
71
- {
72
- "status": "AS",
73
- "service": "datasheet",
74
- "retailer_id": 1011,
75
- "task_user_group_id": 2
76
- },
77
- {
78
- "status": "AS",
79
- "service": "description",
80
- "retailer_id": 1011,
81
- "task_user_group_id": 2
82
- },
83
- {
84
- "status": "AS",
85
- "service": "images",
86
- "retailer_id": 1011,
87
- "task_user_group_id": 2
88
- }
89
- ],
90
- "article": {
91
- "id_article": 121906,
92
- "id_category": "120",
93
- "name": "Prueba Flujo Serna 22 Oct",
94
- "upc": "1234321234",
95
- "sku": "1243454321",
96
- "timestamp": "2025-10-22T17:11:32.000Z",
97
- "active": 1,
98
- "company_id": 1015,
99
- "company_name": "72uheudehf",
194
+ "retailers": [
195
+ {
196
+ "id": 4,
197
+ "name": "Walmart Super y Superama"
198
+ },
199
+ {
200
+ "id": 5,
201
+ "name": "Chedraui"
202
+ },
203
+ {
204
+ "id": 6,
205
+ "name": "HEB"
206
+ },
207
+ {
208
+ "id": 8,
209
+ "name": "Fragua"
210
+ },
211
+ {
212
+ "id": 12,
213
+ "name": "La Comer"
214
+ },
215
+ {
216
+ "id": 13,
217
+ "name": "Soriana"
218
+ },
219
+ {
220
+ "id": 16,
221
+ "name": "Rappi"
222
+ },
223
+ {
224
+ "id": 17,
225
+ "name": "Genérico"
226
+ },
227
+ {
228
+ "id": 20,
229
+ "name": "Cornershop"
230
+ },
231
+ {
232
+ "id": 24,
233
+ "name": "Alsuper"
234
+ },
235
+ {
236
+ "id": 29,
237
+ "name": "Farmacias del Ahorro"
238
+ },
239
+ {
240
+ "id": 36,
241
+ "name": "Oxxo"
242
+ }
243
+ ],
100
244
  "country": "México",
101
- "id_order": 15514,
102
- "id_datasheet_especialist": 442,
103
- "id_datasheet_facilitator": null,
104
- "id_description_especialist": 442,
105
- "id_description_facilitator": null,
106
- "id_images_especialist": 443,
107
- "id_images_facilitator": null,
108
- "id_auditor": null,
109
- "id_recepcionist": null,
110
- "category": "Congelados|Cárnicos|Carnes Granel",
111
- "categoryRetailer": [
112
- {
113
- "id_category": 4,
114
- "id_retailer": 17,
115
- "category_name": "Abarrotes|Abarrotes Secos|Alimentos Deshidratados",
116
- "retailer_name": "Genérico"
117
- },
118
- {
119
- "id_category": 120,
120
- "id_retailer": 9,
121
- "category_name": "Congelados|Cárnicos|Carnes Granel",
122
- "retailer_name": "Amazon"
123
- },
124
- {
125
- "id_category": 157,
126
- "id_retailer": 1011,
127
- "category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
128
- "retailer_name": "Farmatodo"
129
- }
130
- ]
131
- },
132
- "retailers": [
133
- {
134
- "id": 9,
135
- "name": "Amazon"
136
- },
137
- {
138
- "id": 17,
139
- "name": "Genérico"
140
- },
141
- {
142
- "id": 1011,
143
- "name": "Farmatodo"
144
- }
145
- ],
146
- "country": "México",
147
- "upc": "1234321234"
245
+ "upc": "7509546052977"
148
246
  },
149
247
  // location: {
150
248
  // product: { articleId: 126855, versionId: 3 },
@@ -153,77 +251,76 @@ RetailerProductEditionDefault.args = {
153
251
  // chatType: "product_status",
154
252
  // },
155
253
  // },
156
- user: {
157
- "id_user": 442,
158
- "name": "Especialista",
159
- "last_name": "Textos",
160
- "email": "especialistatextosdev@allfreemail.net",
161
- "position": "Especialista de Imágenes",
162
- "telephone": null,
163
- "country": null,
164
- "id_company": 2,
165
- "id_role": 7,
166
- "about_me": null,
167
- "address": null,
168
- "job": null,
169
- "id_stripe": null,
170
- "active": 1,
171
- "email_notify": 1,
172
- "id_cognito": "39a90309-81cd-48df-86fb-b22c4a0e0559",
173
- "birth_Date": null,
174
- "zip_code": null,
175
- "is_retailer": 0,
176
- "is_onboarding": 0,
177
- "is_user_tech": null,
178
- "profile_picture_ext": null,
179
- "membership": {
180
- "id": 2,
181
- "start_date": "2021-11-05T02:35:12.000Z",
182
- "end_date": "2022-11-05T02:34:49.000Z",
183
- "planID": 1,
184
- "plan": "prod_KtkvuFFLpOdP6e",
185
- "name": "Plan Free",
186
- "user_limit": "1",
187
- "products_limit": "3",
188
- "type": "PyMES"
189
- },
190
- "src": "https://content-management-profile.s3.amazonaws.com/id-442/442.png?1760636567736"
191
- },
254
+ // user: {
255
+ // "id_user": 442,
256
+ // "name": "Especialista",
257
+ // "last_name": "Textos",
258
+ // "email": "especialistatextosdev@allfreemail.net",
259
+ // "position": "Especialista de Imágenes",
260
+ // "telephone": null,
261
+ // "country": null,
262
+ // "id_company": 2,
263
+ // "id_role": 7,
264
+ // "about_me": null,
265
+ // "address": null,
266
+ // "job": null,
267
+ // "id_stripe": null,
268
+ // "active": 1,
269
+ // "email_notify": 1,
270
+ // "id_cognito": "39a90309-81cd-48df-86fb-b22c4a0e0559",
271
+ // "birth_Date": null,
272
+ // "zip_code": null,
273
+ // "is_retailer": 0,
274
+ // "is_onboarding": 0,
275
+ // "is_user_tech": null,
276
+ // "profile_picture_ext": null,
277
+ // "membership": {
278
+ // "id": 2,
279
+ // "start_date": "2021-11-05T02:35:12.000Z",
280
+ // "end_date": "2022-11-05T02:34:49.000Z",
281
+ // "planID": 1,
282
+ // "plan": "prod_KtkvuFFLpOdP6e",
283
+ // "name": "Plan Free",
284
+ // "user_limit": "1",
285
+ // "products_limit": "3",
286
+ // "type": "PyMES"
287
+ // },
288
+ // "src": "https://content-management-profile.s3.amazonaws.com/id-442/442.png?1760636567736"
289
+ // },
192
290
 
193
- // user: {
194
- // "id_user": 443,
195
- // "name": "Especialista",
196
- // "last_name": "Edición",
197
- // "email": "especialistaimagenesdev@allfreemail.net",
198
- // "position": "Especialista de edición",
199
- // "telephone": null,
200
- // "country": null,
201
- // "id_company": 2,
202
- // "id_role": 8,
203
- // "about_me": null,
204
- // "address": null,
205
- // "job": null,
206
- // "id_stripe": null,
207
- // "active": 1,
208
- // "email_notify": 1,
209
- // "id_cognito": "1d1394ce-4e30-4fef-8fdc-f53cf11be408",
210
- // "birth_Date": null,
211
- // "zip_code": null,
212
- // "is_retailer": 0,
213
- // "is_onboarding": 0,
214
- // "is_user_tech": null,
215
- // "profile_picture_ext": null,
216
- // "membership": {
217
- // "id": 2,
218
- // "start_date": "2021-11-05T02:35:12.000Z",
219
- // "end_date": "2022-11-05T02:34:49.000Z",
220
- // "planID": 1,
221
- // "plan": "prod_KtkvuFFLpOdP6e",
222
- // "name": "Plan Free",
223
- // "user_limit": "1",
224
- // "products_limit": "3",
225
- // "type": "PyMES"
226
- // },
227
- // "src": "https://content-management-profile.s3.amazonaws.com/id-443/443.png?1761067566391"
228
- // }
291
+ user: {
292
+ "id_user": 3016,
293
+ "name": "Oscar",
294
+ "last_name": "Serna",
295
+ "email": "oserna@contentoh.com",
296
+ "position": null,
297
+ "telephone": null,
298
+ "country": null,
299
+ "id_company": 254,
300
+ "id_cognito": "5934beeb-e8d2-4b00-b3a5-8c0fdc516e97",
301
+ "birth_Date": null,
302
+ "about_me": null,
303
+ "zip_code": null,
304
+ "address": null,
305
+ "job": null,
306
+ "id_stripe": null,
307
+ "id_role": 1,
308
+ "active": 1,
309
+ "is_retailer": 0,
310
+ "email_notify": 1,
311
+ "is_user_tech": "ADMIN-AS",
312
+ "is_onboarding": 0,
313
+ "membership": {
314
+ "id": 750,
315
+ "start_date": "2022-01-07T21:32:54.000Z",
316
+ "end_date": "2023-01-07T21:32:54.000Z",
317
+ "planID": 6,
318
+ "plan": "prod_KvGd6YSTJyR3AP",
319
+ "name": "Plan Small",
320
+ "user_limit": "10",
321
+ "products_limit": "1000",
322
+ "type": "Enterprise"
323
+ },
324
+ "src": "https://content-management-profile-prod.s3.amazonaws.com/id-3016/3016.png?1763071181637"
325
+ }
229
326
  };
@@ -116,6 +116,7 @@ const reducerImages = (state, action) => {
116
116
  inputs = inputsInitial?.filter((input) =>
117
117
  imageIdArray.includes(input.id)
118
118
  );
119
+
119
120
  values = orderedImages.length > 0 ? orderedImages : [];
120
121
  } catch (error) {
121
122
  console.log(error);
@@ -400,6 +401,8 @@ export const RetailerProductEdition = ({
400
401
 
401
402
  const loadData = async () => {
402
403
  try {
404
+ setLoading(true);
405
+
403
406
  const ids =
404
407
  product?.statusByRetailer?.map((item) => item.retailer_id) ??
405
408
  product?.statusByRetailer?.map((item) => item.id_retailer) ??
@@ -458,6 +461,7 @@ export const RetailerProductEdition = ({
458
461
  const generalServices = await getServices();
459
462
 
460
463
  setImages({ action: "init", init: services[2] });
464
+
461
465
  if (services[2]?.values?.length > 0) setActiveImage(0);
462
466
 
463
467
  const data = [
@@ -478,6 +482,8 @@ export const RetailerProductEdition = ({
478
482
  setPercentages(JSON.parse(res?.[0]?.body));
479
483
  });
480
484
 
485
+ setImages({ action: "orderImages", retailerId: activeRetailer.id });
486
+
481
487
  setLoading(false);
482
488
  } catch (error) {
483
489
  setLoading(false);
@@ -1890,6 +1896,43 @@ export const RetailerProductEdition = ({
1890
1896
  return;
1891
1897
  }
1892
1898
 
1899
+ if (!body || body.replace(/<.*?\/?>/gm, "").trim() === "") {
1900
+ const container = document.querySelector(
1901
+ ".container-customComponent"
1902
+ );
1903
+
1904
+ // Verificar si ya existe una alerta
1905
+ const existingAlert = container.querySelector(".alert-error");
1906
+ if (existingAlert) {
1907
+ return; // Si ya existe, no crear otra
1908
+ }
1909
+
1910
+ // Crear alerta con estilos
1911
+ const alert = document.createElement("div");
1912
+ alert.className = "alert-error";
1913
+ alert.style.cssText = `
1914
+ color: #d32f2f;
1915
+ background-color: #ffebee;
1916
+ border: 1px solid #ef5350;
1917
+ border-radius: 4px;
1918
+ padding: 12px 16px;
1919
+ margin-top: 10px;
1920
+ font-size: 14px;
1921
+ display: flex;
1922
+ align-items: center;
1923
+ gap: 8px;
1924
+ font-family: 'Roboto', sans-serif;
1925
+ text-align: center;
1926
+ `;
1927
+
1928
+ alert.innerHTML = `
1929
+ <span>El mensaje no puede estar vacío.</span>
1930
+ `;
1931
+
1932
+ container.appendChild(alert);
1933
+ return;
1934
+ }
1935
+
1893
1936
  await createComment(e, body, activeTab);
1894
1937
  valRejAll ? validateAll("R") : sendToFacilitator("R");
1895
1938
  setMessage("Rechazado");