@controleonline/ui-common 1.2.70 → 1.2.75

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 (188) hide show
  1. package/.github/actions/workers/manager/action.yml +147 -0
  2. package/.github/actions/workers/qa/action.yml +44 -0
  3. package/.github/actions/workers/security/action.yml +44 -0
  4. package/.github/actions/workers/technical-documenter/action.yml +51 -0
  5. package/.github/workflows/manager-worker.yml +168 -0
  6. package/.github/workflows/publish-npm.yml +45 -0
  7. package/.gitmodules +3 -0
  8. package/AGENTS.md +6 -0
  9. package/README.md +14 -0
  10. package/package.json +32 -28
  11. package/src/api/fetch.js +1 -1
  12. package/src/api/index.js +328 -58
  13. package/src/react/components/AddImportModal.js +95 -111
  14. package/src/react/components/AnimatedModal.js +171 -0
  15. package/src/react/components/AnimatedModal.styles.js +21 -0
  16. package/src/react/components/AppTypeSwitcher.js +164 -0
  17. package/src/react/components/AppTypeSwitcher.styles.js +109 -0
  18. package/src/react/components/BackgroundRuntimeBridge.js +5 -4
  19. package/src/react/components/BottomNavigationBar.config.js +211 -231
  20. package/src/react/components/BottomNavigationBar.js +86 -31
  21. package/src/react/components/BottomNavigationBar.styles.js +118 -110
  22. package/src/react/components/CategoryForm.js +52 -35
  23. package/src/react/components/DefaultProvider.native.js +194 -156
  24. package/src/react/components/DefaultProvider.web.js +188 -112
  25. package/src/react/components/DeliveryPushBridge.native.js +2 -2
  26. package/src/react/components/DeviceAlertSoundService.js +3 -3
  27. package/src/react/components/KioskModeBridge.js +2 -2
  28. package/src/react/components/LauncherModeBridge.js +2 -2
  29. package/src/react/components/ManagerPushBridge.native.js +2 -2
  30. package/src/react/components/NetworkPrinterPreviewModal.js +249 -0
  31. package/src/react/components/NetworkPrinterPreviewModal.styles.js +159 -0
  32. package/src/react/components/RemoteCheckoutService.js +28 -20
  33. package/src/react/components/RuntimeBottomNavigationBar.js +146 -119
  34. package/src/react/components/RuntimeInfoFooter.js +137 -45
  35. package/src/react/components/RuntimeInfoFooter.styles.js +3 -0
  36. package/src/react/components/StateStore.js +258 -0
  37. package/src/react/components/UnifiedPaymentBar.js +7 -4
  38. package/src/react/components/UserAvatar.js +160 -0
  39. package/src/react/components/WebsocketListener.native.js +11 -11
  40. package/src/react/components/integrations/IntegrationHero/index.js +48 -0
  41. package/src/react/components/integrations/IntegrationHero/styles.js +57 -0
  42. package/src/react/components/integrations/IntegrationTabs/index.js +89 -0
  43. package/src/react/components/integrations/IntegrationTabs/styles.js +44 -0
  44. package/src/react/config/deviceConfigBootstrap.js +71 -30
  45. package/src/react/css/orders.js +72 -0
  46. package/src/react/pages/Connections.js +229 -0
  47. package/src/react/pages/Connections.styles.js +222 -0
  48. package/src/react/pages/DeviceDetailPage.js +2814 -0
  49. package/src/react/pages/DeviceDetailPage.styles.js +308 -0
  50. package/src/react/pages/Devices/currentDevice.js +194 -0
  51. package/src/react/pages/Devices/deviceTypes/DeviceGroupCard.js +257 -0
  52. package/src/react/pages/Devices/deviceTypes/all.js +23 -0
  53. package/src/react/pages/Devices/deviceTypes/device.js +25 -0
  54. package/src/react/pages/Devices/deviceTypes/deviceListHelpers.js +178 -0
  55. package/src/react/pages/Devices/deviceTypes/display.js +26 -0
  56. package/src/react/pages/Devices/deviceTypes/index.js +145 -0
  57. package/src/react/pages/Devices/deviceTypes/ipCamera.js +35 -0
  58. package/src/react/pages/Devices/deviceTypes/pdv.js +88 -0
  59. package/src/react/pages/Devices/deviceTypes/printer.js +37 -0
  60. package/src/react/pages/Devices/deviceTypes/shared.js +453 -0
  61. package/src/react/pages/Devices/deviceTypes/useDeviceNetworkConnectivity.js +145 -0
  62. package/src/react/pages/Devices.js +183 -0
  63. package/src/react/pages/Devices.styles.js +353 -0
  64. package/src/react/pages/Food99IntegrationPage/components/Food99CatalogTab.js +219 -0
  65. package/src/react/pages/Food99IntegrationPage/components/Food99OverviewTab.js +134 -0
  66. package/src/react/pages/Food99IntegrationPage/components/Food99PreviewModal.js +173 -0
  67. package/src/react/pages/Food99IntegrationPage/components/Food99ProductCard.js +1 -0
  68. package/src/react/pages/Food99IntegrationPage/components/Food99QuickWalletModal.js +181 -0
  69. package/src/react/pages/Food99IntegrationPage/components/Food99SettingsTab.js +306 -0
  70. package/src/react/pages/Food99IntegrationPage/components/Food99StoreTab.js +417 -0
  71. package/src/react/pages/Food99IntegrationPage/index.js +1530 -0
  72. package/src/react/pages/Food99IntegrationPage/styles.js +792 -0
  73. package/src/react/pages/Food99IntegrationPage/utils.js +155 -0
  74. package/src/react/pages/Food99IntegrationPage.js +1 -0
  75. package/src/react/pages/Food99IntegrationPage.styles.js +1 -0
  76. package/src/react/pages/GenericLogPage.js +42 -167
  77. package/src/react/pages/IFoodIntegrationPage/components/IFoodCatalogTab.js +8 -0
  78. package/src/react/pages/IFoodIntegrationPage/components/IFoodOperationsTab.js +420 -0
  79. package/src/react/pages/IFoodIntegrationPage/components/IFoodOverviewTab.js +118 -0
  80. package/src/react/pages/IFoodIntegrationPage/components/IFoodPreviewModal.js +103 -0
  81. package/src/react/pages/IFoodIntegrationPage/components/IFoodProductCard.js +1 -0
  82. package/src/react/pages/IFoodIntegrationPage/components/IFoodStoreTab.js +150 -0
  83. package/src/react/pages/IFoodIntegrationPage/index.js +1298 -0
  84. package/src/react/pages/IFoodIntegrationPage/styles.js +764 -0
  85. package/src/react/pages/IFoodIntegrationPage/utils.js +91 -0
  86. package/src/react/pages/IFoodIntegrationPage.js +1 -0
  87. package/src/react/pages/IFoodIntegrationPage.styles.js +1 -0
  88. package/src/react/pages/Imports.js +214 -166
  89. package/src/react/pages/IntegrationConfigPage.js +744 -0
  90. package/src/react/pages/IntegrationConfigPage.styles.js +269 -0
  91. package/src/react/pages/Integrations.js +299 -0
  92. package/src/react/pages/Integrations.styles.js +130 -0
  93. package/src/react/pages/ManagerOrderNotificationsPage.js +642 -0
  94. package/src/react/pages/MarketplaceIntegrationPage/components/MarketplaceProductCard.js +205 -0
  95. package/src/react/pages/MarketplaceIntegrationPage/components/RemoteMarketplaceMenuTab.js +335 -0
  96. package/src/react/pages/MarketplaceIntegrationPage/index.js +60 -0
  97. package/src/react/pages/MarketplaceIntegrationPage/utils.js +137 -0
  98. package/src/react/pages/MercadoLivreIntegrationPage.js +538 -0
  99. package/src/react/pages/PrinterDeviceDetailPage.js +1916 -0
  100. package/src/react/pages/PrinterDeviceDetailPage.styles.js +223 -0
  101. package/src/react/pages/PrinterDeviceFormPage.js +521 -0
  102. package/src/react/pages/PrinterDeviceFormPage.styles.js +159 -0
  103. package/src/react/pages/SettingsPage/PaymentTypesByWalletTab.js +484 -454
  104. package/src/react/pages/SettingsPage/index.js +1266 -1167
  105. package/src/react/pages/WhatsAppConnectionPage.js +459 -0
  106. package/src/react/pages/WhatsAppConnectionPage.styles.js +284 -0
  107. package/src/react/pages/integrationsCatalog.js +399 -0
  108. package/src/react/print/providers/local.js +1 -1
  109. package/src/react/router/publicRoutes.js +25 -0
  110. package/src/react/services/Cielo/Checkout.js +39 -0
  111. package/src/react/services/Cielo/Cielo.js +193 -0
  112. package/src/react/services/Cielo/Print.js +7 -0
  113. package/src/react/services/InfinitePay/Checkout.js +33 -0
  114. package/src/react/services/InfinitePay/InfinitePay.js +24 -0
  115. package/src/react/{utils → services}/paymentGatewayExecution.js +91 -91
  116. package/src/react/styles/global.js +115 -0
  117. package/src/react/utils/categoryContexts.js +46 -0
  118. package/src/react/utils/entityDisplay.js +222 -217
  119. package/src/react/utils/fileUrl.js +201 -16
  120. package/src/react/utils/integrationPage.js +16 -0
  121. package/src/react/utils/menuNavigation.js +31 -0
  122. package/src/react/utils/orderIdentity.js +277 -0
  123. package/src/react/utils/remotePayment.js +115 -61
  124. package/src/react/utils/runtimeFooter.js +40 -22
  125. package/src/react/utils/runtimeLanguage.js +50 -9
  126. package/src/react/utils/runtimeMenu.js +190 -98
  127. package/src/react/utils/runtimeZoom.js +43 -0
  128. package/src/react/utils/shopConfig.js +72 -34
  129. package/src/react/utils/shopFranchises.js +182 -23
  130. package/src/react/utils/socketRuntimePipeline.js +14 -14
  131. package/src/react/utils/storeColumns.js +23 -4
  132. package/src/react/utils/userAvatar.js +104 -0
  133. package/src/store/categories/index.js +48 -20
  134. package/src/store/configs/index.js +2 -2
  135. package/src/store/device_config/index.js +62 -21
  136. package/src/store/entity_log/index.js +22 -1
  137. package/src/store/imports/customActions.js +51 -0
  138. package/src/store/imports/index.js +89 -88
  139. package/src/store/status/index.js +11 -11
  140. package/src/store/themes/index.js +22 -0
  141. package/src/store/timezones/index.js +3 -1
  142. package/src/tests/browser/manager/connections.spec.js +143 -0
  143. package/src/tests/browser/manager/devices-current.spec.js +343 -0
  144. package/src/tests/browser/manager/mercado-livre-integration.spec.js +268 -0
  145. package/src/tests/react/api/deviceHeaders.test.js +114 -0
  146. package/src/tests/react/api/loadSmokeIndex.test.js +75 -0
  147. package/src/tests/react/components/AddImportModal.test.js +166 -0
  148. package/src/tests/react/components/BottomNavigationBar.config.test.js +20 -0
  149. package/src/tests/react/components/UserAvatar.test.js +52 -0
  150. package/src/tests/react/config/deviceConfigBootstrap.test.js +47 -0
  151. package/src/tests/react/pages/DevicePickerStyles.test.js +47 -0
  152. package/src/tests/react/pages/Devices/deviceListHelpers.test.js +39 -0
  153. package/src/tests/react/pages/DevicesCurrentDevice.test.js +198 -0
  154. package/src/tests/react/pages/connectionsHelpers.test.js +34 -0
  155. package/src/tests/react/pages/mercadoLivreIntegrationPageContract.test.mjs +16 -0
  156. package/src/tests/react/print/localPrintProvider.test.js +1 -1
  157. package/src/tests/react/services/Cielo.test.js +190 -0
  158. package/src/tests/react/store/categoriesOrdering.test.js +26 -0
  159. package/src/tests/react/utils/appDomain.test.js +62 -0
  160. package/src/tests/react/utils/entityDisplay.test.js +2 -2
  161. package/src/tests/react/utils/fileUrl.test.js +62 -0
  162. package/src/tests/react/utils/formatter.test.mjs +33 -0
  163. package/src/tests/react/utils/importStatus.test.js +2 -2
  164. package/src/tests/react/utils/orderIdentity.test.js +139 -0
  165. package/src/tests/react/utils/remotePayment.test.js +62 -0
  166. package/src/tests/react/utils/runtimeFooter.test.js +32 -9
  167. package/src/tests/react/utils/runtimeLanguage.test.js +80 -10
  168. package/src/tests/react/utils/runtimeMenu.test.js +195 -111
  169. package/src/tests/react/utils/runtimeZoom.test.js +38 -0
  170. package/src/tests/react/utils/shopConfig.test.js +75 -0
  171. package/src/tests/react/utils/shopFranchises.test.js +122 -12
  172. package/src/tests/react/utils/translate.discovery.test.mjs +170 -0
  173. package/src/tests/react/utils/translate.test.helpers.mjs +152 -0
  174. package/src/tests/react/utils/translate.test.mjs +252 -396
  175. package/src/tests/react/utils/userAvatar.test.js +63 -0
  176. package/src/utils/appDomain.js +15 -4
  177. package/src/utils/formatter.js +122 -16
  178. package/src/utils/integrationConfigs.js +1 -0
  179. package/src/utils/translate.js +277 -398
  180. package/src/utils/translateDiscovery.js +96 -0
  181. package/src/utils/translateNormalize.js +33 -0
  182. package/src/utils/translatePending.js +92 -0
  183. package/src/utils/translateStorage.js +142 -0
  184. package/.github/agents/developer.agent.md +0 -30
  185. package/.github/agents/devops.agent.md +0 -30
  186. package/.github/agents/qa.agent.md +0 -30
  187. package/.github/agents/security.agent.md +0 -30
  188. package/.github/workflows/npmjs.yml +0 -35
@@ -0,0 +1,764 @@
1
+ import {Platform, StyleSheet} from 'react-native';
2
+
3
+ const styles = StyleSheet.create({
4
+ container: {flex: 1, backgroundColor: '#F8FAFC'},
5
+ scroll: {padding: 16, paddingBottom: 32, gap: 14},
6
+ centerState: {
7
+ flex: 1,
8
+ justifyContent: 'center',
9
+ alignItems: 'center',
10
+ paddingHorizontal: 24,
11
+ gap: 8,
12
+ },
13
+ centerStateTitle: {
14
+ color: '#0F172A',
15
+ fontSize: 18,
16
+ fontWeight: '700',
17
+ textAlign: 'center',
18
+ },
19
+ heroCard: {
20
+ borderRadius: 22,
21
+ padding: 18,
22
+ flexDirection: 'row',
23
+ justifyContent: 'space-between',
24
+ alignItems: 'flex-start',
25
+ },
26
+ heroCopy: {flex: 1, paddingRight: 16},
27
+ heroEyebrow: {
28
+ color: '#E2E8F0',
29
+ fontSize: 11,
30
+ fontWeight: '700',
31
+ letterSpacing: 1.2,
32
+ marginBottom: 6,
33
+ },
34
+ heroTitle: {
35
+ color: '#FFFFFF',
36
+ fontSize: 24,
37
+ fontWeight: '800',
38
+ marginBottom: 6,
39
+ },
40
+ heroText: {color: '#DBEAFE', fontSize: 13, lineHeight: 18},
41
+ heroBadge: {
42
+ width: 44,
43
+ height: 44,
44
+ borderRadius: 14,
45
+ backgroundColor: '#FFFFFF',
46
+ alignItems: 'center',
47
+ justifyContent: 'center',
48
+ },
49
+ heroLogo: {width: 24, height: 24},
50
+ sectionCard: {
51
+ borderRadius: 20,
52
+ backgroundColor: '#FFFFFF',
53
+ borderWidth: 1,
54
+ borderColor: '#E2E8F0',
55
+ padding: 16,
56
+ gap: 12,
57
+ },
58
+ statusRow: {
59
+ flexDirection: 'row',
60
+ alignItems: 'center',
61
+ justifyContent: 'space-between',
62
+ },
63
+ sectionTitle: {color: '#0F172A', fontSize: 17, fontWeight: '800'},
64
+ catalogHint: {
65
+ color: '#64748B',
66
+ fontSize: 13,
67
+ lineHeight: 18,
68
+ marginTop: -2,
69
+ },
70
+ statusBadge: {borderRadius: 999, paddingHorizontal: 12, paddingVertical: 6},
71
+ statusBadgeText: {fontSize: 12, fontWeight: '700'},
72
+ metaGrid: {flexDirection: 'row', gap: 10},
73
+ metaBox: {
74
+ flex: 1,
75
+ borderRadius: 12,
76
+ borderWidth: 1,
77
+ borderColor: '#E2E8F0',
78
+ backgroundColor: '#F8FAFC',
79
+ paddingHorizontal: 12,
80
+ paddingVertical: 10,
81
+ gap: 4,
82
+ },
83
+ metaLabel: {
84
+ color: '#64748B',
85
+ fontSize: 11,
86
+ fontWeight: '700',
87
+ letterSpacing: 0.5,
88
+ textTransform: 'uppercase',
89
+ },
90
+ metaValue: {color: '#0F172A', fontSize: 14, fontWeight: '700'},
91
+ helperRow: {
92
+ borderRadius: 12,
93
+ borderWidth: 1,
94
+ borderColor: '#E2E8F0',
95
+ backgroundColor: '#F8FAFC',
96
+ paddingHorizontal: 12,
97
+ paddingVertical: 10,
98
+ },
99
+ helperText: {color: '#334155', fontSize: 13, lineHeight: 18},
100
+ errorBox: {
101
+ borderRadius: 12,
102
+ borderWidth: 1,
103
+ borderColor: '#FECACA',
104
+ backgroundColor: '#FEF2F2',
105
+ paddingHorizontal: 12,
106
+ paddingVertical: 10,
107
+ gap: 4,
108
+ },
109
+ errorTitle: {color: '#B91C1C', fontSize: 12, fontWeight: '800'},
110
+ errorText: {color: '#991B1B', fontSize: 12, lineHeight: 16},
111
+ storesList: {gap: 8},
112
+ storeCard: {
113
+ borderRadius: 12,
114
+ borderWidth: 1,
115
+ borderColor: '#E2E8F0',
116
+ backgroundColor: '#F8FAFC',
117
+ paddingHorizontal: 12,
118
+ paddingVertical: 10,
119
+ gap: 6,
120
+ },
121
+ storeCardSelected: {borderColor: '#0284C7', backgroundColor: '#EFF6FF'},
122
+ storeTop: {
123
+ flexDirection: 'row',
124
+ alignItems: 'center',
125
+ justifyContent: 'space-between',
126
+ gap: 8,
127
+ },
128
+ storeName: {flex: 1, color: '#0F172A', fontSize: 14, fontWeight: '700'},
129
+ storeStatusChip: {
130
+ borderRadius: 999,
131
+ paddingHorizontal: 10,
132
+ paddingVertical: 4,
133
+ },
134
+ storeStatusText: {fontSize: 11, fontWeight: '700'},
135
+ storeCode: {color: '#475569', fontSize: 12, fontWeight: '600'},
136
+ emptyStores: {
137
+ borderRadius: 12,
138
+ borderWidth: 1,
139
+ borderColor: '#E2E8F0',
140
+ backgroundColor: '#F8FAFC',
141
+ paddingHorizontal: 12,
142
+ paddingVertical: 10,
143
+ },
144
+ emptyStoresText: {color: '#475569', fontSize: 13, lineHeight: 18},
145
+ inputLabel: {color: '#334155', fontSize: 12, fontWeight: '700'},
146
+ input: {
147
+ borderRadius: 12,
148
+ borderWidth: 1,
149
+ borderColor: '#CBD5E1',
150
+ backgroundColor: '#FFFFFF',
151
+ color: '#0F172A',
152
+ fontSize: 14,
153
+ paddingHorizontal: 12,
154
+ paddingVertical: 10,
155
+ },
156
+ actionsRow: {flexDirection: 'row', gap: 10},
157
+ actionButton: {
158
+ flex: 1,
159
+ borderRadius: 12,
160
+ height: 44,
161
+ alignItems: 'center',
162
+ justifyContent: 'center',
163
+ flexDirection: 'row',
164
+ gap: 8,
165
+ },
166
+ actionButtonText: {color: '#FFFFFF', fontSize: 14, fontWeight: '700'},
167
+ actionButtonSecondary: {
168
+ flex: 1,
169
+ borderRadius: 12,
170
+ height: 44,
171
+ borderWidth: 1,
172
+ borderColor: '#FCA5A5',
173
+ backgroundColor: '#FFFFFF',
174
+ alignItems: 'center',
175
+ justifyContent: 'center',
176
+ flexDirection: 'row',
177
+ gap: 8,
178
+ },
179
+ actionButtonSecondaryDisabled: {opacity: 0.5},
180
+ actionButtonSecondaryText: {
181
+ color: '#c10015',
182
+ fontSize: 14,
183
+ fontWeight: '700',
184
+ },
185
+ syncButton: {
186
+ height: 42,
187
+ borderRadius: 12,
188
+ borderWidth: 1,
189
+ alignItems: 'center',
190
+ justifyContent: 'center',
191
+ flexDirection: 'row',
192
+ gap: 8,
193
+ backgroundColor: '#FFFFFF',
194
+ },
195
+ syncButtonText: {fontSize: 13, fontWeight: '700'},
196
+ selectedStoreBox: {
197
+ borderRadius: 12,
198
+ borderWidth: 1,
199
+ borderColor: '#E2E8F0',
200
+ backgroundColor: '#F8FAFC',
201
+ paddingHorizontal: 12,
202
+ paddingVertical: 10,
203
+ gap: 4,
204
+ },
205
+ selectedStoreTitle: {
206
+ color: '#334155',
207
+ fontSize: 12,
208
+ fontWeight: '700',
209
+ textTransform: 'uppercase',
210
+ },
211
+ selectedStoreText: {color: '#0F172A', fontSize: 13, fontWeight: '600'},
212
+ storeOperationsBox: {gap: 6, marginTop: 4},
213
+ operationText: {
214
+ color: '#334155',
215
+ fontSize: 12,
216
+ lineHeight: 17,
217
+ fontWeight: '600',
218
+ },
219
+ interruptionsBox: {
220
+ borderRadius: 12,
221
+ borderWidth: 1,
222
+ borderColor: '#FDE68A',
223
+ backgroundColor: '#FFFBEB',
224
+ paddingHorizontal: 12,
225
+ paddingVertical: 10,
226
+ gap: 8,
227
+ },
228
+ interruptionsTitle: {
229
+ color: '#92400E',
230
+ fontSize: 12,
231
+ fontWeight: '800',
232
+ textTransform: 'uppercase',
233
+ },
234
+ interruptionItem: {
235
+ borderRadius: 10,
236
+ backgroundColor: '#FFFFFF',
237
+ borderWidth: 1,
238
+ borderColor: '#FDE68A',
239
+ paddingHorizontal: 10,
240
+ paddingVertical: 8,
241
+ gap: 2,
242
+ },
243
+ interruptionHeader: {
244
+ flexDirection: 'row',
245
+ alignItems: 'center',
246
+ justifyContent: 'space-between',
247
+ gap: 8,
248
+ },
249
+ interruptionText: {color: '#78350F', fontSize: 12, fontWeight: '700'},
250
+ interruptionMeta: {color: '#92400E', fontSize: 11, lineHeight: 15},
251
+ interruptionRemoveButton: {
252
+ width: 28,
253
+ height: 28,
254
+ borderRadius: 8,
255
+ borderWidth: 1,
256
+ borderColor: '#FECACA',
257
+ backgroundColor: '#FEF2F2',
258
+ alignItems: 'center',
259
+ justifyContent: 'center',
260
+ },
261
+ interruptionForm: {
262
+ borderRadius: 12,
263
+ borderWidth: 1,
264
+ borderColor: '#E2E8F0',
265
+ backgroundColor: '#F8FAFC',
266
+ paddingHorizontal: 12,
267
+ paddingVertical: 10,
268
+ gap: 8,
269
+ },
270
+ interruptionDateRow: {flexDirection: 'row', gap: 10},
271
+ interruptionDateField: {flex: 1, gap: 4},
272
+ sectionHeader: {
273
+ flexDirection: 'row',
274
+ alignItems: 'center',
275
+ justifyContent: 'space-between',
276
+ gap: 8,
277
+ },
278
+ selectionBadge: {
279
+ borderRadius: 999,
280
+ paddingHorizontal: 12,
281
+ paddingVertical: 6,
282
+ },
283
+ selectionBadgeText: {fontSize: 12, fontWeight: '700'},
284
+ searchBox: {
285
+ flexDirection: 'row',
286
+ alignItems: 'center',
287
+ gap: 10,
288
+ borderWidth: 1,
289
+ borderColor: '#E2E8F0',
290
+ borderRadius: 16,
291
+ paddingHorizontal: 14,
292
+ paddingVertical: Platform.OS === 'web' ? 12 : 4,
293
+ marginBottom: 14,
294
+ backgroundColor: '#F8FAFC',
295
+ },
296
+ searchInput: {flex: 1, fontSize: 14, color: '#0F172A', paddingVertical: 10},
297
+ selectionSummaryRow: {
298
+ flexDirection: 'row',
299
+ alignItems: 'center',
300
+ justifyContent: 'space-between',
301
+ gap: 12,
302
+ marginTop: 8,
303
+ marginBottom: 16,
304
+ },
305
+ selectionSummaryText: {
306
+ flex: 1,
307
+ fontSize: 13,
308
+ color: '#64748B',
309
+ lineHeight: 18,
310
+ },
311
+ previewButton: {
312
+ minHeight: 42,
313
+ borderRadius: 14,
314
+ paddingHorizontal: 14,
315
+ flexDirection: 'row',
316
+ alignItems: 'center',
317
+ justifyContent: 'center',
318
+ gap: 8,
319
+ },
320
+ previewButtonText: {color: '#fff', fontSize: 13, fontWeight: '800'},
321
+ productsList: {gap: 10},
322
+ productCard: {
323
+ borderWidth: 1,
324
+ borderColor: '#E2E8F0',
325
+ borderRadius: 18,
326
+ padding: 14,
327
+ backgroundColor: '#fff',
328
+ },
329
+ productMain: {flexDirection: 'row', alignItems: 'flex-start', gap: 12},
330
+ productStatusIcon: {
331
+ width: 44,
332
+ height: 44,
333
+ borderRadius: 12,
334
+ alignItems: 'center',
335
+ justifyContent: 'center',
336
+ marginTop: 2,
337
+ },
338
+ productThumb: {
339
+ width: 44,
340
+ height: 44,
341
+ borderRadius: 10,
342
+ marginTop: 2,
343
+ backgroundColor: '#F1F5F9',
344
+ },
345
+ productContent: {flex: 1, minWidth: 0},
346
+ productTitleRow: {
347
+ flexDirection: 'row',
348
+ alignItems: 'center',
349
+ justifyContent: 'space-between',
350
+ gap: 10,
351
+ marginBottom: 4,
352
+ },
353
+ productName: {flex: 1, fontSize: 15, fontWeight: '800', color: '#0F172A'},
354
+ productPrice: {fontSize: 13, fontWeight: '800', color: '#1E293B'},
355
+ productMeta: {fontSize: 12, color: '#64748B', marginBottom: 4},
356
+ productDescription: {fontSize: 12, color: '#475569', marginBottom: 4},
357
+ productCode: {fontSize: 11, color: '#1D4ED8', fontWeight: '700'},
358
+ productRemoteState: {
359
+ fontSize: 11,
360
+ color: '#15803D',
361
+ fontWeight: '700',
362
+ marginTop: 4,
363
+ },
364
+ productBlocker: {
365
+ fontSize: 11,
366
+ color: '#DC2626',
367
+ fontWeight: '700',
368
+ marginTop: 4,
369
+ },
370
+ itemStatusBadge: {
371
+ borderRadius: 999,
372
+ paddingHorizontal: 10,
373
+ paddingVertical: 4,
374
+ minWidth: 44,
375
+ alignItems: 'center',
376
+ justifyContent: 'center',
377
+ },
378
+ itemStatusText: {fontSize: 11, fontWeight: '800'},
379
+ priceEditRow: {
380
+ flexDirection: 'row',
381
+ alignItems: 'center',
382
+ gap: 6,
383
+ marginTop: 4,
384
+ },
385
+ priceEditTrigger: {flexDirection: 'row', alignItems: 'center', gap: 4},
386
+ priceEditText: {fontSize: 13, fontWeight: '800', color: '#1E293B'},
387
+ priceInput: {
388
+ flex: 1,
389
+ borderWidth: 1,
390
+ borderColor: '#CBD5E1',
391
+ borderRadius: 8,
392
+ paddingHorizontal: 8,
393
+ paddingVertical: 4,
394
+ fontSize: 13,
395
+ color: '#0F172A',
396
+ backgroundColor: '#F8FAFC',
397
+ maxWidth: 100,
398
+ },
399
+ priceSaveButton: {
400
+ width: 28,
401
+ height: 28,
402
+ borderRadius: 8,
403
+ backgroundColor: '#16A34A',
404
+ alignItems: 'center',
405
+ justifyContent: 'center',
406
+ },
407
+ priceCancelButton: {
408
+ width: 28,
409
+ height: 28,
410
+ borderRadius: 8,
411
+ backgroundColor: '#F1F5F9',
412
+ alignItems: 'center',
413
+ justifyContent: 'center',
414
+ },
415
+ emptyProducts: {
416
+ borderRadius: 12,
417
+ borderWidth: 1,
418
+ borderColor: '#E2E8F0',
419
+ backgroundColor: '#F8FAFC',
420
+ padding: 16,
421
+ alignItems: 'center',
422
+ },
423
+ emptyProductsText: {color: '#64748B', fontSize: 13},
424
+ syncCatalogButton: {
425
+ height: 42,
426
+ borderRadius: 12,
427
+ borderWidth: 1,
428
+ borderColor: '#0EA5E9',
429
+ backgroundColor: '#FFFFFF',
430
+ alignItems: 'center',
431
+ justifyContent: 'center',
432
+ flexDirection: 'row',
433
+ gap: 8,
434
+ marginTop: 4,
435
+ },
436
+ syncCatalogButtonDisabled: {opacity: 0.5},
437
+ syncCatalogButtonText: {fontSize: 13, fontWeight: '700', color: '#0EA5E9'},
438
+ modalShell: {
439
+ flex: 1,
440
+ justifyContent: 'flex-end',
441
+ },
442
+ modalCard: {
443
+ backgroundColor: '#fff',
444
+ borderTopLeftRadius: 28,
445
+ borderTopRightRadius: 28,
446
+ paddingHorizontal: 20,
447
+ paddingTop: 18,
448
+ paddingBottom: 24,
449
+ maxHeight: '88%',
450
+ },
451
+ modalHeader: {
452
+ flexDirection: 'row',
453
+ alignItems: 'flex-start',
454
+ justifyContent: 'space-between',
455
+ gap: 12,
456
+ marginBottom: 16,
457
+ },
458
+ modalTitle: {
459
+ fontSize: 20,
460
+ fontWeight: '800',
461
+ color: '#0F172A',
462
+ },
463
+ modalSubtitle: {
464
+ fontSize: 13,
465
+ color: '#64748B',
466
+ marginTop: 4,
467
+ },
468
+ modalCloseButton: {
469
+ width: 34,
470
+ height: 34,
471
+ borderRadius: 12,
472
+ alignItems: 'center',
473
+ justifyContent: 'center',
474
+ backgroundColor: '#F8FAFC',
475
+ },
476
+ modalContent: {
477
+ paddingBottom: 10,
478
+ },
479
+ modalSummaryGrid: {
480
+ flexDirection: 'row',
481
+ gap: 10,
482
+ marginBottom: 18,
483
+ },
484
+ modalSummaryCard: {
485
+ flex: 1,
486
+ backgroundColor: '#F8FAFC',
487
+ borderRadius: 16,
488
+ padding: 14,
489
+ alignItems: 'center',
490
+ },
491
+ modalSummaryValue: {
492
+ fontSize: 22,
493
+ fontWeight: '800',
494
+ color: '#0F172A',
495
+ marginBottom: 4,
496
+ },
497
+ modalSummaryLabel: {
498
+ fontSize: 12,
499
+ fontWeight: '700',
500
+ color: '#64748B',
501
+ },
502
+ previewSection: {
503
+ marginBottom: 18,
504
+ },
505
+ previewSectionTitle: {
506
+ fontSize: 15,
507
+ fontWeight: '800',
508
+ color: '#0F172A',
509
+ marginBottom: 10,
510
+ },
511
+ previewLine: {
512
+ borderWidth: 1,
513
+ borderColor: '#E2E8F0',
514
+ borderRadius: 14,
515
+ padding: 12,
516
+ marginBottom: 8,
517
+ backgroundColor: '#fff',
518
+ },
519
+ previewLineTitle: {
520
+ fontSize: 14,
521
+ fontWeight: '700',
522
+ color: '#0F172A',
523
+ marginBottom: 4,
524
+ },
525
+ previewLineMeta: {
526
+ fontSize: 12,
527
+ color: '#64748B',
528
+ },
529
+ modalActions: {
530
+ flexDirection: 'row',
531
+ gap: 10,
532
+ marginTop: 8,
533
+ },
534
+ secondaryButton: {
535
+ flex: 1,
536
+ minHeight: 46,
537
+ borderRadius: 14,
538
+ borderWidth: 1,
539
+ borderColor: '#CBD5E1',
540
+ alignItems: 'center',
541
+ justifyContent: 'center',
542
+ backgroundColor: '#fff',
543
+ },
544
+ secondaryButtonText: {
545
+ fontSize: 14,
546
+ fontWeight: '800',
547
+ color: '#334155',
548
+ },
549
+ primaryButton: {
550
+ minHeight: 46,
551
+ borderRadius: 14,
552
+ paddingHorizontal: 16,
553
+ flexDirection: 'row',
554
+ alignItems: 'center',
555
+ justifyContent: 'center',
556
+ gap: 8,
557
+ },
558
+ primaryButtonText: {
559
+ color: '#fff',
560
+ fontSize: 14,
561
+ fontWeight: '800',
562
+ },
563
+ modalPrimaryButton: {
564
+ flex: 1.4,
565
+ },
566
+ availBadge: {
567
+ flexDirection: 'row',
568
+ alignItems: 'center',
569
+ gap: 6,
570
+ borderRadius: 999,
571
+ paddingHorizontal: 12,
572
+ paddingVertical: 6,
573
+ },
574
+ availDot: {width: 7, height: 7, borderRadius: 999},
575
+ availBadgeText: {fontSize: 12, fontWeight: '700'},
576
+ opsGrid: {flexDirection: 'row', flexWrap: 'wrap', gap: 6},
577
+ opChip: {
578
+ flexDirection: 'row',
579
+ alignItems: 'center',
580
+ gap: 5,
581
+ borderRadius: 10,
582
+ borderWidth: 1,
583
+ paddingHorizontal: 10,
584
+ paddingVertical: 6,
585
+ },
586
+ opChipText: {fontSize: 11, fontWeight: '700'},
587
+ availRow: {flexDirection: 'row', gap: 10, alignItems: 'center'},
588
+ availButton: {
589
+ flex: 1,
590
+ height: 44,
591
+ borderRadius: 12,
592
+ flexDirection: 'row',
593
+ alignItems: 'center',
594
+ justifyContent: 'center',
595
+ gap: 8,
596
+ },
597
+ availButtonDisabled: {opacity: 0.45},
598
+ availButtonText: {color: '#fff', fontSize: 13, fontWeight: '800'},
599
+ availRefreshButton: {
600
+ width: 44,
601
+ height: 44,
602
+ borderRadius: 12,
603
+ borderWidth: 1,
604
+ borderColor: '#E2E8F0',
605
+ backgroundColor: '#F8FAFC',
606
+ alignItems: 'center',
607
+ justifyContent: 'center',
608
+ },
609
+
610
+ hoursEditBtn: {
611
+ flexDirection: 'row',
612
+ alignItems: 'center',
613
+ gap: 5,
614
+ borderRadius: 999,
615
+ borderWidth: 1,
616
+ borderColor: '#BAE6FD',
617
+ backgroundColor: '#F0F9FF',
618
+ paddingHorizontal: 10,
619
+ paddingVertical: 5,
620
+ },
621
+ hoursEditBtnText: {fontSize: 12, fontWeight: '700', color: '#0EA5E9'},
622
+ hoursDayRow: {
623
+ flexDirection: 'row',
624
+ alignItems: 'flex-start',
625
+ gap: 10,
626
+ paddingVertical: 4,
627
+ borderBottomWidth: 1,
628
+ borderBottomColor: '#F1F5F9',
629
+ },
630
+ hoursDayLabel: {
631
+ width: 72,
632
+ fontSize: 13,
633
+ fontWeight: '700',
634
+ color: '#334155',
635
+ paddingTop: 2,
636
+ },
637
+ hoursList: {gap: 8},
638
+ hoursValues: {flex: 1, gap: 2},
639
+ hoursValue: {fontSize: 13, color: '#0F172A', fontWeight: '600'},
640
+ hoursClosed: {
641
+ fontSize: 12,
642
+ color: '#94A3B8',
643
+ fontWeight: '600',
644
+ fontStyle: 'italic',
645
+ paddingTop: 2,
646
+ },
647
+ hoursEditList: {gap: 8},
648
+ hoursEditContent: {flex: 1, gap: 6},
649
+ hoursInputRow: {flexDirection: 'row', alignItems: 'center', gap: 6},
650
+ hoursInput: {
651
+ width: 70,
652
+ borderWidth: 1,
653
+ borderColor: '#CBD5E1',
654
+ borderRadius: 8,
655
+ paddingHorizontal: 8,
656
+ paddingVertical: 4,
657
+ fontSize: 13,
658
+ color: '#0F172A',
659
+ backgroundColor: '#F8FAFC',
660
+ },
661
+ hoursSep: {fontSize: 13, color: '#94A3B8', fontWeight: '600'},
662
+ hoursShiftAddBtn: {
663
+ alignSelf: 'flex-start',
664
+ flexDirection: 'row',
665
+ alignItems: 'center',
666
+ gap: 4,
667
+ paddingVertical: 4,
668
+ },
669
+ hoursShiftAddText: {fontSize: 12, fontWeight: '700', color: '#0EA5E9'},
670
+ hoursShiftRemoveBtn: {
671
+ width: 28,
672
+ height: 28,
673
+ borderRadius: 8,
674
+ borderWidth: 1,
675
+ borderColor: '#FECACA',
676
+ alignItems: 'center',
677
+ justifyContent: 'center',
678
+ backgroundColor: '#FEF2F2',
679
+ },
680
+ hoursCancelBtn: {
681
+ minHeight: 44,
682
+ paddingHorizontal: 16,
683
+ borderRadius: 12,
684
+ borderWidth: 1,
685
+ borderColor: '#E2E8F0',
686
+ alignItems: 'center',
687
+ justifyContent: 'center',
688
+ backgroundColor: '#fff',
689
+ },
690
+ hoursCancelText: {fontSize: 13, fontWeight: '700', color: '#64748B'},
691
+ dayToggle: {
692
+ width: 34,
693
+ height: 20,
694
+ borderRadius: 10,
695
+ backgroundColor: '#E2E8F0',
696
+ paddingHorizontal: 2,
697
+ justifyContent: 'center',
698
+ },
699
+ dayToggleOn: {backgroundColor: '#16A34A'},
700
+ dayToggleThumb: {
701
+ width: 16,
702
+ height: 16,
703
+ borderRadius: 8,
704
+ backgroundColor: '#fff',
705
+ },
706
+ dayToggleThumbOn: {marginLeft: 'auto'},
707
+
708
+ productDisclosureButton: {
709
+ flexDirection: 'row',
710
+ alignItems: 'center',
711
+ alignSelf: 'flex-start',
712
+ gap: 6,
713
+ borderRadius: 999,
714
+ borderWidth: 1,
715
+ paddingHorizontal: 10,
716
+ paddingVertical: 7,
717
+ marginTop: 8,
718
+ },
719
+ productDisclosureButtonText: {
720
+ fontSize: 12,
721
+ fontWeight: '800',
722
+ },
723
+ optionsSection: {
724
+ marginTop: 8,
725
+ paddingTop: 8,
726
+ borderTopWidth: 1,
727
+ borderTopColor: '#F1F5F9',
728
+ gap: 6,
729
+ },
730
+ optionsSectionLabel: {
731
+ fontSize: 11,
732
+ fontWeight: '700',
733
+ color: '#64748B',
734
+ textTransform: 'uppercase',
735
+ letterSpacing: 0.5,
736
+ marginBottom: 2,
737
+ },
738
+ optionRow: {
739
+ flexDirection: 'row',
740
+ alignItems: 'center',
741
+ justifyContent: 'space-between',
742
+ gap: 8,
743
+ paddingVertical: 4,
744
+ },
745
+ optionInfo: {flex: 1, minWidth: 0},
746
+ optionName: {fontSize: 13, fontWeight: '600', color: '#0F172A'},
747
+ optionControls: {flexDirection: 'row', alignItems: 'center', gap: 6},
748
+ optStatusBadge: {
749
+ borderRadius: 999,
750
+ paddingHorizontal: 10,
751
+ paddingVertical: 4,
752
+ minWidth: 44,
753
+ alignItems: 'center',
754
+ justifyContent: 'center',
755
+ },
756
+ optNoIfoodId: {
757
+ fontSize: 10,
758
+ color: '#94A3B8',
759
+ fontWeight: '600',
760
+ fontStyle: 'italic',
761
+ },
762
+ });
763
+
764
+ export default styles;