ordering-ui-admin-external 1.8.5 → 1.10.0

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 (158) hide show
  1. package/_bundles/{ordering-ui-admin.66a745752c35fb204c80.js → ordering-ui-admin.e741ec718656ba6908ef.js} +2 -2
  2. package/_bundles/{ordering-ui-admin.66a745752c35fb204c80.js.LICENSE.txt → ordering-ui-admin.e741ec718656ba6908ef.js.LICENSE.txt} +0 -0
  3. package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +2 -1
  4. package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +2 -1
  5. package/_modules/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +23 -5
  6. package/_modules/components/Delivery/DriversGroupDetails/index.js +6 -9
  7. package/_modules/components/Delivery/UsersList/index.js +2 -1
  8. package/_modules/components/MyProducts/OrderingWebsite/index.js +50 -8
  9. package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +2 -1
  10. package/_modules/components/Orders/OrderBill/index.js +17 -17
  11. package/_modules/components/Profile/ProfilePage/index.js +3 -1
  12. package/_modules/components/Profile/ProfilePage/styles.js +23 -6
  13. package/_modules/components/Settings/Deliverect/index.js +103 -0
  14. package/_modules/components/Settings/Deliverect/styles.js +115 -0
  15. package/_modules/components/Settings/DoordashConnect/index.js +1 -1
  16. package/_modules/components/Settings/IntegrationListing/index.js +41 -2
  17. package/_modules/components/Settings/IntegrationListing/styles.js +7 -4
  18. package/_modules/components/Settings/ItsaCheckmate/index.js +112 -0
  19. package/_modules/components/Settings/ItsaCheckmate/styles.js +118 -0
  20. package/_modules/components/Settings/PickerExpress/index.js +178 -0
  21. package/_modules/components/Settings/PickerExpress/styles.js +111 -0
  22. package/_modules/components/Settings/index.js +8 -1
  23. package/_modules/components/Shared/Modal/styles.js +1 -1
  24. package/_modules/components/SidebarMenu/index.js +14 -1
  25. package/_modules/components/SidebarMenu/styles.js +9 -3
  26. package/_modules/components/Stores/BusinessAdd/BusinessDetails/index.js +95 -0
  27. package/_modules/components/Stores/BusinessAdd/BusinessDetails/styles.js +43 -0
  28. package/_modules/components/Stores/BusinessAdd/DeliveryZone/index.js +233 -0
  29. package/_modules/components/Stores/BusinessAdd/DeliveryZone/styles.js +40 -0
  30. package/_modules/components/Stores/BusinessAdd/Images/index.js +181 -0
  31. package/_modules/components/Stores/BusinessAdd/Images/styles.js +42 -0
  32. package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +53 -0
  33. package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/styles.js +31 -0
  34. package/_modules/components/Stores/BusinessAdd/OtherDetails/index.js +43 -0
  35. package/_modules/components/Stores/BusinessAdd/OtherDetails/styles.js +25 -0
  36. package/_modules/components/Stores/BusinessAdd/PaymentMethods/index.js +48 -0
  37. package/_modules/components/Stores/BusinessAdd/PaymentMethods/styles.js +31 -0
  38. package/_modules/components/Stores/BusinessAdd/Photos/index.js +174 -0
  39. package/_modules/components/Stores/BusinessAdd/Photos/styles.js +46 -0
  40. package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +48 -0
  41. package/_modules/components/Stores/BusinessAdd/ReceiveOrders/styles.js +24 -0
  42. package/_modules/components/Stores/BusinessAdd/Schedule/index.js +31 -0
  43. package/_modules/components/Stores/BusinessAdd/Schedule/styles.js +14 -0
  44. package/_modules/components/Stores/BusinessAdd/index.js +170 -0
  45. package/_modules/components/Stores/BusinessAdd/styles.js +29 -0
  46. package/_modules/components/Stores/BusinessDeliveryDetails/styles.js +1 -1
  47. package/_modules/components/Stores/BusinessDeliveryPickupMore/index.js +4 -0
  48. package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +1 -1
  49. package/_modules/components/Stores/BusinessPickupDetails/styles.js +1 -1
  50. package/_modules/components/Stores/BusinessProductAddForm/index.js +5 -5
  51. package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +1 -6
  52. package/_modules/components/Stores/BusinessProductsListing/index.js +38 -14
  53. package/_modules/components/Stores/BusinessesList/index.js +5 -3
  54. package/_modules/components/Stores/BusinessesListing/index.js +51 -26
  55. package/_modules/components/Stores/BusinessesListing/styles.js +22 -15
  56. package/_modules/components/Stores/BusinessesListingHeader/index.js +6 -5
  57. package/_modules/components/Stores/ProductStartGuide/index.js +69 -0
  58. package/_modules/components/Stores/ProductStartGuide/styles.js +28 -0
  59. package/_modules/components/Stores/ProductStep/index.js +92 -0
  60. package/_modules/components/Stores/ProductStep/styles.js +18 -0
  61. package/_modules/components/Stores/RestaurantSelectGuide/index.js +104 -0
  62. package/_modules/components/Stores/RestaurantSelectGuide/styles.js +44 -0
  63. package/_modules/components/Stores/index.js +36 -1
  64. package/_modules/components/Users/ProfessionalAddForm/index.js +16 -3
  65. package/_modules/components/Users/ProfessionalList/index.js +2 -1
  66. package/_modules/components/Users/ProfessionalListing/index.js +2 -0
  67. package/_modules/components/Users/ProfessionalSchedule/Schedule/index.js +36 -0
  68. package/_modules/components/Users/ProfessionalSchedule/index.js +10 -120
  69. package/_modules/components/Users/ProfessionalSchedule/styles.js +4 -16
  70. package/_modules/components/Users/UserFormDetails/index.js +1 -1
  71. package/_modules/components/Users/UsersList/index.js +5 -4
  72. package/_modules/components/Users/UsersListingHeader/index.js +5 -2
  73. package/_modules/components/Users/UsersListingHeader/styles.js +18 -3
  74. package/_modules/index.js +36 -0
  75. package/index-template.js +64 -2
  76. package/package.json +2 -2
  77. package/src/components/BusinessIntelligence/BusinessReviewList/index.js +1 -0
  78. package/src/components/BusinessIntelligence/UsersReviewList/index.js +1 -0
  79. package/src/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +20 -0
  80. package/src/components/Delivery/DriversGroupDetails/index.js +7 -7
  81. package/src/components/Delivery/DriversGroupsDeliveryZoneDetails/index.js +1 -1
  82. package/src/components/Delivery/UsersList/index.js +1 -0
  83. package/src/components/MyProducts/OrderingWebsite/index.js +45 -3
  84. package/src/components/OrderingProducts/OrderingProductsListing/index.js +1 -0
  85. package/src/components/Orders/OrderBill/index.js +20 -22
  86. package/src/components/Profile/ProfilePage/index.js +16 -2
  87. package/src/components/Profile/ProfilePage/styles.js +67 -1
  88. package/src/components/Settings/Deliverect/index.js +149 -0
  89. package/src/components/Settings/Deliverect/styles.js +344 -0
  90. package/src/components/Settings/DoordashConnect/index.js +1 -1
  91. package/src/components/Settings/IntegrationListing/index.js +47 -13
  92. package/src/components/Settings/IntegrationListing/styles.js +7 -1
  93. package/src/components/Settings/ItsaCheckmate/index.js +170 -0
  94. package/src/components/Settings/ItsaCheckmate/styles.js +366 -0
  95. package/src/components/Settings/PickerExpress/index.js +222 -0
  96. package/src/components/Settings/PickerExpress/styles.js +330 -0
  97. package/src/components/Settings/index.js +3 -1
  98. package/src/components/Shared/Modal/styles.js +1 -1
  99. package/src/components/SidebarMenu/index.js +21 -3
  100. package/src/components/SidebarMenu/styles.js +26 -0
  101. package/src/components/Stores/BusinessAdd/BusinessDetails/index.js +106 -0
  102. package/src/components/Stores/BusinessAdd/BusinessDetails/styles.js +107 -0
  103. package/src/components/Stores/BusinessAdd/DeliveryZone/index.js +250 -0
  104. package/src/components/Stores/BusinessAdd/DeliveryZone/styles.js +101 -0
  105. package/src/components/Stores/BusinessAdd/Images/index.js +168 -0
  106. package/src/components/Stores/BusinessAdd/Images/styles.js +94 -0
  107. package/src/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +43 -0
  108. package/src/components/Stores/BusinessAdd/OrderTypePriceLevel/styles.js +70 -0
  109. package/src/components/Stores/BusinessAdd/OtherDetails/index.js +51 -0
  110. package/src/components/Stores/BusinessAdd/OtherDetails/styles.js +49 -0
  111. package/src/components/Stores/BusinessAdd/PaymentMethods/index.js +39 -0
  112. package/src/components/Stores/BusinessAdd/PaymentMethods/styles.js +46 -0
  113. package/src/components/Stores/BusinessAdd/Photos/index.js +156 -0
  114. package/src/components/Stores/BusinessAdd/Photos/styles.js +108 -0
  115. package/src/components/Stores/BusinessAdd/ReceiveOrders/index.js +46 -0
  116. package/src/components/Stores/BusinessAdd/ReceiveOrders/styles.js +69 -0
  117. package/src/components/Stores/BusinessAdd/Schedule/index.js +23 -0
  118. package/src/components/Stores/BusinessAdd/Schedule/styles.js +14 -0
  119. package/src/components/Stores/BusinessAdd/index.js +184 -0
  120. package/src/components/Stores/BusinessAdd/styles.js +85 -0
  121. package/src/components/Stores/BusinessDeliveryDetails/styles.js +1 -0
  122. package/src/components/Stores/BusinessDeliveryPickupMore/index.js +9 -1
  123. package/src/components/Stores/BusinessDeliveryZoneInformation/index.js +8 -10
  124. package/src/components/Stores/BusinessPickupDetails/styles.js +1 -0
  125. package/src/components/Stores/BusinessProductAddForm/index.js +13 -11
  126. package/src/components/Stores/BusinessProductsCategoyInfo/index.js +4 -7
  127. package/src/components/Stores/BusinessProductsListing/index.js +20 -0
  128. package/src/components/Stores/BusinessesList/index.js +4 -2
  129. package/src/components/Stores/BusinessesListing/index.js +101 -67
  130. package/src/components/Stores/BusinessesListing/styles.js +36 -0
  131. package/src/components/Stores/BusinessesListingHeader/index.js +58 -51
  132. package/src/components/Stores/ProductStartGuide/index.js +60 -0
  133. package/src/components/Stores/ProductStartGuide/styles.js +62 -0
  134. package/src/components/Stores/ProductStep/index.js +84 -0
  135. package/src/components/Stores/ProductStep/styles.js +29 -0
  136. package/src/components/Stores/RestaurantSelectGuide/index.js +119 -0
  137. package/src/components/Stores/RestaurantSelectGuide/styles.js +150 -0
  138. package/src/components/Stores/index.js +11 -1
  139. package/src/components/Users/ProfessionalAddForm/index.js +11 -1
  140. package/src/components/Users/ProfessionalList/index.js +1 -0
  141. package/src/components/Users/ProfessionalListing/index.js +2 -0
  142. package/src/components/Users/ProfessionalSchedule/Schedule/index.js +32 -0
  143. package/src/components/Users/ProfessionalSchedule/index.js +9 -49
  144. package/src/components/Users/ProfessionalSchedule/styles.js +0 -49
  145. package/src/components/Users/UserFormDetails/index.js +1 -1
  146. package/src/components/Users/UsersList/index.js +4 -2
  147. package/src/components/Users/UsersListingHeader/index.js +17 -2
  148. package/src/components/Users/UsersListingHeader/styles.js +59 -0
  149. package/src/index.js +14 -2
  150. package/template/app.js +4 -0
  151. package/template/assets/images/dummies/no-businesses.png +0 -0
  152. package/template/assets/images/import-menu.png +0 -0
  153. package/template/assets/images/imported-menu.png +0 -0
  154. package/template/assets/images/picker-express.png +0 -0
  155. package/template/components/ListenPageChanges/index.js +1 -0
  156. package/template/config.json +1 -1
  157. package/template/helmetdata.json +7 -0
  158. package/template/pages/BusinessAdd/index.js +11 -0
@@ -0,0 +1,344 @@
1
+ import styled, { css } from 'styled-components'
2
+
3
+ export const DeliverectContainer = styled.div`
4
+ padding: 26px 20px;
5
+ box-sizing: border-box;
6
+ width: 100%;
7
+ overflow-x: hidden;
8
+ position: relative;
9
+
10
+ @media (min-width: 768px) {
11
+ padding: 26px 40px;
12
+ }
13
+ `
14
+
15
+ export const Header = styled.div`
16
+ display: flex;
17
+ align-items: center;
18
+ margin-bottom: 30px;
19
+
20
+ ${props => props.theme?.rtl ? css`
21
+ margin-left: 35px;
22
+ ` : css`
23
+ margin-right: 35px;
24
+ `}
25
+
26
+ h1 {
27
+ font-size: 20px;
28
+ font-weight: 700;
29
+ margin: 0px;
30
+ text-transform: capitalize;
31
+ }
32
+
33
+ button {
34
+ line-height: 12px;
35
+ height: 16px;
36
+ font-size: 10px;
37
+ margin-left: 15px;
38
+ padding: 2px 8px;
39
+ border-radius: 50px;
40
+ ${props => props.theme.rtl && css`
41
+ margin-right: 15px;
42
+ margin-left: 0px;
43
+ `}
44
+ }
45
+ `
46
+
47
+ export const ApiKeysListTable = styled.table`
48
+ width: 100%;
49
+ margin-top: 25px;
50
+
51
+ thead {
52
+ border-bottom: 1px solid ${props => props.theme.colors.secundaryLight};
53
+ th {
54
+ padding: 10px 0;
55
+ &:last-child {
56
+ padding-left: 20px;
57
+ padding-right: 20px;
58
+ }
59
+ }
60
+ }
61
+ tr {
62
+ width: 100%;
63
+ th,
64
+ td {
65
+ font-size: 12px;
66
+ word-break: break-all;
67
+
68
+ &:last-child {
69
+ width: 100px;
70
+ > div {
71
+ padding-left: 20px;
72
+ padding-right: 20px;
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+ tbody {
79
+ border-bottom: 1px solid ${props => props.theme.colors.borderColor};
80
+ td {
81
+ padding-top: 9px;
82
+ padding-bottom: 9px;
83
+
84
+ &:last-child {
85
+ > div {
86
+ display: flex;
87
+ justify-content: flex-end;
88
+ }
89
+ }
90
+ }
91
+ }
92
+ `
93
+
94
+ export const DropdownButtonWrapper = styled.div`
95
+ ${props => props?.theme?.rtl ? css`
96
+ border-right: 1px solid ${props => props.theme.colors.borderColor};
97
+ ` : css`
98
+ border-left: 1px solid ${props => props.theme.colors.borderColor};
99
+ `}
100
+ padding: 5px 20px;
101
+ button {
102
+ background: transparent !important;
103
+ border: none;
104
+ padding: 0px;
105
+ &:active,
106
+ &:focus {
107
+ border-color: unset !important;
108
+ box-shadow: none !important;
109
+ }
110
+ svg {
111
+ color: ${props => props.theme.colors.headingColor};
112
+ }
113
+
114
+ &:after {
115
+ display: none;
116
+ }
117
+ }
118
+
119
+ .show {
120
+ button {
121
+ background: ${props => props.theme.colors.secundary} !important;
122
+ border-color: unset !important;
123
+ box-shadow: none !important;
124
+ }
125
+ >div {
126
+ border: 1px solid ${props => props.theme.colors.borderColor};
127
+ box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);
128
+ }
129
+ }
130
+
131
+ > div {
132
+ > div {
133
+ border-radius: 8px;
134
+ .dropdown-item {
135
+ font-size: 12px;
136
+ color: ${props => props.theme.colors.headingColor};
137
+ }
138
+ .dropdown-item:last-child {
139
+ color: #E63757;
140
+ }
141
+ }
142
+ }
143
+ `
144
+ export const AddNewButton = styled.div`
145
+ cursor: pointer;
146
+ font-size: 12px;
147
+ color: ${props => props.theme.colors.lightGray};
148
+ margin: 20px 0;
149
+ width: fit-content;
150
+
151
+ &:hover {
152
+ color: ${props => props.theme.colors.primary};
153
+ }
154
+ `
155
+
156
+ export const AllSetting = styled.div`
157
+ user-select: none;
158
+ cursor: pointer;
159
+ margin-top: 36px;
160
+ cursor: pointer;
161
+ span {
162
+ font-weight: 600;
163
+ font-size: 14px;
164
+ color: ${props => props.theme.colors.primary};
165
+ }
166
+ svg {
167
+ color: ${props => props.theme.colors.primary};
168
+ margin-left: 5px;
169
+ transition: 0.2s linear;
170
+ ${props => props.theme.rtl && css`
171
+ margin-right: 5px;
172
+ margin-left: 0px;
173
+ `}
174
+ }
175
+ &:hover {
176
+ svg {
177
+ transform: translateX(3px);
178
+ }
179
+ }
180
+ `
181
+
182
+ export const Description = styled.p`
183
+ margin-top: 40px;
184
+ font-size: 14px;
185
+ margin-bottom: 0px;
186
+ text-align: justify;
187
+
188
+ @media (min-width: 768px) {
189
+ text-align: initial;
190
+ }
191
+ `
192
+
193
+ export const CategoryExtraContent = styled.div`
194
+ position: relative;
195
+ padding: 26px 26px 60px 26px;
196
+ box-sizing: border-box;
197
+ width: 100%;
198
+ overflow: auto;
199
+
200
+ ${props => props.theme?.rtl ? css`
201
+ border-right: 1px solid #E9ECEF;
202
+ ` : css`
203
+ border-left: 1px solid #E9ECEF;
204
+ `}
205
+
206
+ > button {
207
+ z-index: 100;
208
+ position: absolute;
209
+ top: 25px;
210
+ ${props => props.theme?.rtl ? css`
211
+ left: 20px;
212
+ ` : css`
213
+ right: 20px;
214
+ `}
215
+ }
216
+ `
217
+
218
+ export const Container = styled.div`
219
+ display: flex;
220
+ width: 0;
221
+ position: fixed;
222
+ box-shadow: -4px 0px 7px #ccc;
223
+
224
+ ${({ isDriverOrders }) => isDriverOrders && css`
225
+ position: absolute;
226
+ box-shadow: none;
227
+
228
+ ${props => props.theme?.rtl ? css`
229
+ border-right: 1px solid #CCC;
230
+ ` : css`
231
+ border-left: 1px solid #CCC;
232
+ `}
233
+ `}
234
+ background: ${props => props.theme.colors?.backgroundPage || '#FFF'};
235
+ height: calc(var(--vh, 1vh) * 100);
236
+ top: 0px;
237
+ z-index: 1001;
238
+ overflow-x: hidden;
239
+ transition: 0.3s;
240
+
241
+ ${props => props.theme?.rtl ? css`
242
+ left: 0px;
243
+ ` : css`
244
+ right: 0px;
245
+ `}
246
+ @media print {
247
+ box-shadow: none;
248
+ }
249
+ `
250
+
251
+ export const DescriptionHeader = styled.div`
252
+ display: flex;
253
+ justify-content: flex-end;
254
+ align-items: center;
255
+ `
256
+
257
+ export const HeaderIcons = styled.div`
258
+ display: flex;
259
+ position: absolute;
260
+ top: 25px;
261
+ right: 20px;
262
+
263
+ > button:first-child {
264
+ ${props => props.theme?.rtl ? css`
265
+ margin-left: 8px;
266
+ ` : css`
267
+ margin-right: 8px;
268
+ `}
269
+ }
270
+ `
271
+
272
+ export const SettingListConatiner = styled.div`
273
+ width: 100%;
274
+ margin: 20px 0;
275
+ border-bottom: 1px solid #E9ECEF;
276
+ `
277
+
278
+ export const Tab = styled.div`
279
+ user-select: none;
280
+ padding: 10px 0px;
281
+ cursor: pointer;
282
+ color: ${props => props.theme.colors?.headingColor};
283
+ font-size: 14px;
284
+ white-space: nowrap;
285
+ ${props => props.theme?.rtl ? css`
286
+ margin-left: 30px;
287
+ ` : css`
288
+ margin-right: 30px;
289
+ `}
290
+
291
+ ${({ active }) => active && css`
292
+ border-bottom: 2px solid;
293
+ font-weight: 500;
294
+ `}
295
+
296
+ ${({ active }) => !active && css`
297
+ color: #909BA9;
298
+ `}
299
+ `
300
+
301
+ export const GetStarted = styled.div`
302
+ h2 {
303
+ font-weight: 500;
304
+ font-size: 14px;
305
+ line-height: 24px;
306
+ margin-top: 0px;
307
+ margin-bottom: 10px;
308
+ }
309
+ p {
310
+ font-weight: 400;
311
+ font-size: 14px;
312
+ line-height: 24px;
313
+ margin-top: 0px;
314
+ margin-bottom: 8px;
315
+ color: ${props => props.theme.colors.lightGray};
316
+ }
317
+ button {
318
+ border-radius: 8px;
319
+ height: 44px;
320
+ }
321
+ `
322
+
323
+ export const YoutubeVideoWrapper = styled.div`
324
+ margin-top: 50px;
325
+ padding-bottom: 30px;
326
+ `
327
+
328
+ export const YoutubeVideoInner = styled.div`
329
+ position: relative;
330
+ width: 100%;
331
+ padding-bottom: 56.25%;
332
+ box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
333
+ border-radius: 7.6px;
334
+ background-color: ${props => props.theme.colors.secundaryDarkContrast};
335
+
336
+ iframe {
337
+ position: absolute;
338
+ top: 0;
339
+ left: 0;
340
+ width: 100%;
341
+ height: 100%;
342
+ border: 0;
343
+ }
344
+ `
@@ -101,7 +101,7 @@ const DoordashConnectUI = (props) => {
101
101
  '1.- Doordash account. \n' +
102
102
  '2.- The advanced logistics module must be active. \n' +
103
103
  '3.- Package of Ordering. \n' +
104
- '4.- This is only available for United States currently.'
104
+ '4.- This is only available for United States, Canada and Australia currently.'
105
105
  )}
106
106
  </p>
107
107
  </Paragraph>
@@ -9,6 +9,10 @@ import { PluginList } from '../PluginList'
9
9
  import { WebhookList } from '../WebhookList'
10
10
  import { ApiKeysList } from '../ApiKeysList'
11
11
  import { DoordashConnect } from '../DoordashConnect'
12
+ import { useTheme } from 'styled-components'
13
+ import { LalaMoveConnect } from '../LalaMoveConnect'
14
+ import { Deliverect } from '../Deliverect'
15
+ import { ItsaCheckmate } from '../ItsaCheckmate'
12
16
 
13
17
  import {
14
18
  IntegrationsContainer,
@@ -18,8 +22,7 @@ import {
18
22
  IconWrapper,
19
23
  SettingItemContent
20
24
  } from './styles'
21
- import { useTheme } from 'styled-components'
22
- import { LalaMoveConnect } from '../LalaMoveConnect'
25
+ import { PickerExpress } from '../PickerExpress'
23
26
 
24
27
  export const IntegrationListing = (props) => {
25
28
  const [, t] = useLanguage()
@@ -134,10 +137,43 @@ export const IntegrationListing = (props) => {
134
137
  <img src={theme.images.general.lalamove} />
135
138
  </IconWrapper>
136
139
  <SettingItemContent>
137
- <h5>{t('CONNECT_WITH_LALAMOVE', 'Connect with lalamove')}</h5>
140
+ <h5>{t('CONNECT_WITH_LALAMOVE', 'Connect with Lalamove')}</h5>
138
141
  <p>{t('CONNECT_LALAMOVE_DESCRIPTION', 'Send orders directly to your drivers in LalaMove and keep customers happy with their deliveries.')}</p>
139
142
  </SettingItemContent>
140
143
  </SettingItemContainer>
144
+ <SettingItemContainer
145
+ onClick={() => handleOpenSetting('picker_express')}
146
+ >
147
+ <IconWrapper fullWidth>
148
+ <img src={theme.images.general.pickerExpress} />
149
+ </IconWrapper>
150
+ <SettingItemContent>
151
+ <h5>{t('CONNECT_WITH_PICKER_EXPRESS', 'Connect with Picker Express')}</h5>
152
+ <p>{t('CONNECT_PICKER_EXPRESS_DESCRIPTION', 'Picker express connect you with +200 hundred thousand driver from +10 delivery companies from your city.')}</p>
153
+ </SettingItemContent>
154
+ </SettingItemContainer>
155
+ <SettingItemContainer
156
+ onClick={() => handleOpenSetting('deliverect')}
157
+ >
158
+ <IconWrapper>
159
+ <img src={theme.images.general.deliverect} />
160
+ </IconWrapper>
161
+ <SettingItemContent>
162
+ <h5>{t('DELIVERECT', 'Deliverect')}</h5>
163
+ <p>{t('SYNC_DEC_FIRST', 'The easiest way to manage all your online orders.')}</p>
164
+ </SettingItemContent>
165
+ </SettingItemContainer>
166
+ <SettingItemContainer
167
+ onClick={() => handleOpenSetting('itsacheckmate')}
168
+ >
169
+ <IconWrapper>
170
+ <img src={theme.images.general.ItsaCheckmateLogo} />
171
+ </IconWrapper>
172
+ <SettingItemContent>
173
+ <h5>{t('ITSACHECKMATE', 'ItsaCheckmate')}</h5>
174
+ <p dangerouslySetInnerHTML={{ __html: t('ITSACHECKMATE_SUB_HEADER', 'Take control of all your <strong>Ordering Platform Menus</strong> in one place!') }} />
175
+ </SettingItemContent>
176
+ </SettingItemContainer>
141
177
  </SettingListContainer>
142
178
  </IntegrationsContainer>
143
179
 
@@ -174,17 +210,15 @@ export const IntegrationListing = (props) => {
174
210
  </SideBar>
175
211
  )}
176
212
 
177
- {showOption === 'doordash' && (
178
- <DoordashConnect
179
- onClose={() => handleCloseSettings()}
180
- />
181
- )}
213
+ {showOption === 'doordash' && <DoordashConnect onClose={() => handleCloseSettings()} />}
182
214
 
183
- {showOption === 'lalamove' && (
184
- <LalaMoveConnect
185
- onClose={() => handleCloseSettings()}
186
- />
187
- )}
215
+ {showOption === 'lalamove' && <LalaMoveConnect onClose={() => handleCloseSettings()} />}
216
+
217
+ {showOption === 'picker_express' && <PickerExpress onClose={() => handleCloseSettings()} />}
218
+
219
+ {showOption === 'deliverect' && <Deliverect onClose={() => handleCloseSettings()} />}
220
+
221
+ {showOption === 'itsacheckmate' && <ItsaCheckmate onClose={() => handleCloseSettings()} />}
188
222
  </>
189
223
  )
190
224
  }
@@ -77,6 +77,7 @@ export const IconWrapper = styled.div`
77
77
  display: flex;
78
78
  align-items: center;
79
79
  justify-content: center;
80
+ overflow: hidden;
80
81
 
81
82
  svg {
82
83
  font-size: 24px;
@@ -84,8 +85,13 @@ export const IconWrapper = styled.div`
84
85
  }
85
86
  img{
86
87
  width: 100%;
87
- height: 100%;
88
+ max-width: 90%;
88
89
  }
90
+ ${({ fullWidth }) => fullWidth && css`
91
+ img {
92
+ max-width: 100%;
93
+ }
94
+ `}
89
95
  `
90
96
 
91
97
  export const SettingItemContent = styled.div`
@@ -0,0 +1,170 @@
1
+ import React, { useState, useEffect } from 'react'
2
+ import { useLanguage } from 'ordering-components-admin-external'
3
+ import { Button, IconButton } from '../../../styles'
4
+ import { DragScroll, Modal } from '../../Shared'
5
+ import BsArrowRight from '@meronex/icons/bs/BsArrowRight'
6
+ import { XLg, Check2Circle } from 'react-bootstrap-icons'
7
+ import { useWindowSize } from '../../../hooks/useWindowSize'
8
+
9
+ import {
10
+ Header,
11
+ AllSetting,
12
+ Description,
13
+ CategoryExtraContent,
14
+ Container,
15
+ DescriptionHeader,
16
+ HeaderIcons,
17
+ ItsaCheckmateContainer,
18
+ SettingListConatiner,
19
+ Tab,
20
+ GetStarted,
21
+ YoutubeVideoWrapper,
22
+ YoutubeVideoInner
23
+ } from './styles'
24
+
25
+ export const ItsaCheckmate = (props) => {
26
+ const {
27
+ onClose
28
+ } = props
29
+
30
+ const [, t] = useLanguage()
31
+ const { width } = useWindowSize()
32
+
33
+ const [settingsOpen, setSettingsOpen] = useState(false)
34
+
35
+ const toggleMainContent = () => {
36
+ if (width <= 500) {
37
+ document.getElementById('catDescription').style.width = '100vw'
38
+ } else {
39
+ if ((settingsOpen) && width >= 1000) {
40
+ document.getElementById('catDescription').style.width = '1000px'
41
+ } else {
42
+ document.getElementById('catDescription').style.width = '500px'
43
+ }
44
+ }
45
+ }
46
+
47
+ useEffect(() => {
48
+ if (width < 1000) return
49
+ if (settingsOpen) {
50
+ document.getElementById('catDescription').style.width = '1000px'
51
+ } else {
52
+ toggleMainContent()
53
+ }
54
+ }, [settingsOpen])
55
+
56
+ useEffect(() => {
57
+ toggleMainContent()
58
+ }, [width])
59
+
60
+ const LalaMoveConnectDescription = () => {
61
+ return (
62
+ <CategoryExtraContent>
63
+ <IconButton
64
+ color='black'
65
+ onClick={() => setSettingsOpen(false)}
66
+ >
67
+ <XLg />
68
+ </IconButton>
69
+ <div>
70
+ <Header>
71
+ <h1>{t('MORE_INFO', 'More Info')}</h1>
72
+ </Header>
73
+ <SettingListConatiner>
74
+ <DragScroll>
75
+ <Tab
76
+ active
77
+ >
78
+ {t('GENERAL', 'General')}
79
+ </Tab>
80
+ </DragScroll>
81
+ </SettingListConatiner>
82
+ <GetStarted>
83
+ <h2>{t('GET_STARTED_RIGHT_HERE', 'Get started right here')}</h2>
84
+ <p>{t('FILL_UP_THIS_FORM_TO_REQUEST_INFORMATION', 'Fill up this form to request more information')}</p>
85
+ <a href='https://share.hsforms.com/1vuXwaFtfTTeZf362zJgqSg3neff' target='_blank' rel='noopener noreferrer'>
86
+ <Button color='primary'>{t('SEND_FORM', 'Send Form')}</Button>
87
+ </a>
88
+ </GetStarted>
89
+ <YoutubeVideoWrapper>
90
+ <YoutubeVideoInner>
91
+ <iframe
92
+ title='youtube'
93
+ src='https://www.youtube.com/embed/_caZDl4ZFp0?feature=oembed'
94
+ />
95
+ </YoutubeVideoInner>
96
+ </YoutubeVideoWrapper>
97
+ </div>
98
+ </CategoryExtraContent>
99
+ )
100
+ }
101
+
102
+ return (
103
+ <Container
104
+ id='catDescription'
105
+ >
106
+ <ItsaCheckmateContainer>
107
+ <DescriptionHeader>
108
+ <HeaderIcons>
109
+ <IconButton
110
+ color='black'
111
+ onClick={onClose}
112
+ >
113
+ <XLg />
114
+ </IconButton>
115
+ </HeaderIcons>
116
+ </DescriptionHeader>
117
+ <Header>
118
+ <h1>{t('ITSACHECKMATE', 'ItsaCheckmate')}</h1>
119
+ <Button color='lightPrimary'>{t('NEW', 'New')}</Button>
120
+ </Header>
121
+ <Description>
122
+ <div
123
+ className='sub-header'
124
+ dangerouslySetInnerHTML={{ __html: t('ITSACHECKMATE_SUB_HEADER', 'Take control of all your <strong>Ordering Platform Menus</strong> in one place!') }}
125
+ />
126
+ <div className='menu-item'>
127
+ <Check2Circle />
128
+ <p>{t('ITSACHECKMATE_MENU_1', '86 items & modifiers')}</p>
129
+ </div>
130
+ <div className='menu-item'>
131
+ <Check2Circle />
132
+ <p>{t('ITSACHECKMATE_MENU_2', 'Turn on or off ordering platforms')}</p>
133
+ </div>
134
+ <div className='menu-item'>
135
+ <Check2Circle />
136
+ <p>{t('ITSACHECKMATE_MENU_3', 'Manage delivery hours')}</p>
137
+ </div>
138
+ <div className='menu-item'>
139
+ <Check2Circle />
140
+ <p>{t('ITSACHECKMATE_MENU_4', 'Add, edit, or delete items ')}</p>
141
+ </div>
142
+ </Description>
143
+ <AllSetting onClick={() => setSettingsOpen(true)}>
144
+ <span>{t('SETTINGS', 'All settings')}</span>
145
+ <BsArrowRight />
146
+ </AllSetting>
147
+ </ItsaCheckmateContainer>
148
+ {settingsOpen && (
149
+ <>
150
+ {width >= 1000 ? (
151
+ <LalaMoveConnectDescription />
152
+ ) : (
153
+ <>
154
+ <Modal
155
+ width='70%'
156
+ height='90vh'
157
+ open
158
+ padding='0px'
159
+ onClose={() => setSettingsOpen(false)}
160
+ hideCloseDefault
161
+ >
162
+ <LalaMoveConnectDescription />
163
+ </Modal>
164
+ </>
165
+ )}
166
+ </>
167
+ )}
168
+ </Container>
169
+ )
170
+ }