ordering-ui-external 10.7.9 → 10.8.1
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/_bundles/{0.ordering-ui.fe9ee0200d1b9bb29a58.js → 0.ordering-ui.651385f69462465b5ecd.js} +1 -1
- package/_bundles/{1.ordering-ui.fe9ee0200d1b9bb29a58.js → 1.ordering-ui.651385f69462465b5ecd.js} +1 -1
- package/_bundles/{2.ordering-ui.fe9ee0200d1b9bb29a58.js → 2.ordering-ui.651385f69462465b5ecd.js} +1 -1
- package/_bundles/{4.ordering-ui.fe9ee0200d1b9bb29a58.js → 4.ordering-ui.651385f69462465b5ecd.js} +1 -1
- package/_bundles/{5.ordering-ui.fe9ee0200d1b9bb29a58.js → 5.ordering-ui.651385f69462465b5ecd.js} +1 -1
- package/_bundles/{6.ordering-ui.fe9ee0200d1b9bb29a58.js → 6.ordering-ui.651385f69462465b5ecd.js} +1 -1
- package/_bundles/{7.ordering-ui.fe9ee0200d1b9bb29a58.js → 7.ordering-ui.651385f69462465b5ecd.js} +2 -2
- package/_bundles/{8.ordering-ui.fe9ee0200d1b9bb29a58.js → 8.ordering-ui.651385f69462465b5ecd.js} +1 -1
- package/_bundles/{9.ordering-ui.fe9ee0200d1b9bb29a58.js → 9.ordering-ui.651385f69462465b5ecd.js} +1 -1
- package/_bundles/ordering-ui.651385f69462465b5ecd.js +2 -0
- package/_bundles/{ordering-ui.fe9ee0200d1b9bb29a58.js.LICENSE.txt → ordering-ui.651385f69462465b5ecd.js.LICENSE.txt} +2 -0
- package/_modules/themes/five/src/components/MomentControl/index.js +1 -1
- package/_modules/themes/five/src/components/OrderDetails/index.js +1 -1
- package/index-template.js +3 -1
- package/package.json +2 -2
- package/src/themes/five/src/components/MomentControl/index.js +4 -4
- package/src/themes/five/src/components/OrderDetails/index.js +1 -1
- package/template/assets/images/driver.png +0 -0
- package/_bundles/ordering-ui.fe9ee0200d1b9bb29a58.js +0 -2
- /package/_bundles/{7.ordering-ui.fe9ee0200d1b9bb29a58.js.LICENSE.txt → 7.ordering-ui.651385f69462465b5ecd.js.LICENSE.txt} +0 -0
|
@@ -34,6 +34,8 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
34
34
|
PERFORMANCE OF THIS SOFTWARE.
|
|
35
35
|
***************************************************************************** */
|
|
36
36
|
|
|
37
|
+
/*! https://mths.be/utf8js v2.1.2 by @mathias */
|
|
38
|
+
|
|
37
39
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
38
40
|
|
|
39
41
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -247,7 +247,7 @@ var MomentControlUI = function MomentControlUI(props) {
|
|
|
247
247
|
onClick: function onClick() {
|
|
248
248
|
return onClose();
|
|
249
249
|
},
|
|
250
|
-
disabled: !timeSelected
|
|
250
|
+
disabled: !isASP ? !timeSelected : false
|
|
251
251
|
}, /*#__PURE__*/_react.default.createElement("span", null, t('CONTINUE', 'Continue')), /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ArrowRight, null))));
|
|
252
252
|
};
|
|
253
253
|
var MomentControl = function MomentControl(props) {
|
|
@@ -265,7 +265,7 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
|
|
|
265
265
|
};
|
|
266
266
|
}();
|
|
267
267
|
var locations = [_objectSpread(_objectSpread({}, order === null || order === void 0 || (_order$driver = order.driver) === null || _order$driver === void 0 ? void 0 : _order$driver.location), {}, {
|
|
268
|
-
icon: (order === null || order === void 0 || (_order$driver2 = order.driver) === null || _order$driver2 === void 0 ? void 0 : _order$driver2.photo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.
|
|
268
|
+
icon: (order === null || order === void 0 || (_order$driver2 = order.driver) === null || _order$driver2 === void 0 ? void 0 : _order$driver2.photo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.general) === null || _theme$images === void 0 ? void 0 : _theme$images.driverPng)
|
|
269
269
|
}), _objectSpread(_objectSpread({}, order === null || order === void 0 || (_order$business2 = order.business) === null || _order$business2 === void 0 ? void 0 : _order$business2.location), {}, {
|
|
270
270
|
icon: (order === null || order === void 0 || (_order$business3 = order.business) === null || _order$business3 === void 0 ? void 0 : _order$business3.logo) || ((_theme$images2 = theme.images) === null || _theme$images2 === void 0 || (_theme$images2 = _theme$images2.dummies) === null || _theme$images2 === void 0 ? void 0 : _theme$images2.businessLogo)
|
|
271
271
|
}), _objectSpread(_objectSpread({}, order === null || order === void 0 || (_order$customer = order.customer) === null || _order$customer === void 0 ? void 0 : _order$customer.location), {}, {
|
package/index-template.js
CHANGED
|
@@ -44,6 +44,7 @@ import phoneHero from './template/assets/images/phone-hero-callcenter.png'
|
|
|
44
44
|
import deliveryIco from './template/assets/images/delivery.svg'
|
|
45
45
|
import pickupIco from './template/assets/images/pickup.svg'
|
|
46
46
|
import phone from './template/assets/images/phone.svg'
|
|
47
|
+
import driverPng from './template/assets/images/driver.png'
|
|
47
48
|
|
|
48
49
|
import orderStatus0 from './template/assets/images/order/status-0.svg'
|
|
49
50
|
import orderStatus1 from './template/assets/images/order/status-1.svg'
|
|
@@ -144,7 +145,8 @@ theme.images = {
|
|
|
144
145
|
phoneHero,
|
|
145
146
|
deliveryIco,
|
|
146
147
|
pickupIco,
|
|
147
|
-
phone
|
|
148
|
+
phone,
|
|
149
|
+
driverPng
|
|
148
150
|
},
|
|
149
151
|
|
|
150
152
|
order: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.8.1",
|
|
4
4
|
"description": "Ordering UI Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"lodash": "^4.17.19",
|
|
89
89
|
"moment": "^2.29.4",
|
|
90
90
|
"nanoid": "^4.0.0",
|
|
91
|
-
"ordering-components-external": "9.
|
|
91
|
+
"ordering-components-external": "9.8.0",
|
|
92
92
|
"payment": "^2.4.6",
|
|
93
93
|
"polished": "^3.6.6",
|
|
94
94
|
"react-bootstrap-icons": "^1.7.2",
|
|
@@ -165,11 +165,11 @@ const MomentControlUI = (props) => {
|
|
|
165
165
|
return
|
|
166
166
|
}
|
|
167
167
|
_timeLists = hoursList
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
.filter(hour => (Object.keys(business || {})?.length === 0 || schedule?.lapses?.some(lapse =>
|
|
169
|
+
moment(dateSelected + ` ${hour.startTime}`) >= moment(dateSelected + ` ${lapse.open.hour}:${lapse.open.minute}`).add(preorderLeadTime, 'minutes') && moment(dateSelected + ` ${hour.endTime}`) <= moment(dateSelected + ` ${lapse.close.hour}:${lapse.close.minute}`))) &&
|
|
170
170
|
moment(dateSelected + ` ${hour.startTime}`) < moment(dateSelected + ` ${hour.endTime}`) &&
|
|
171
171
|
(moment().add(preorderLeadTime, 'minutes') < moment(dateSelected + ` ${hour.startTime}`) || !cateringPreorder))
|
|
172
|
-
|
|
172
|
+
.map(hour => {
|
|
173
173
|
return {
|
|
174
174
|
value: hour.startTime,
|
|
175
175
|
text: is12hours ? (
|
|
@@ -351,7 +351,7 @@ const MomentControlUI = (props) => {
|
|
|
351
351
|
<Button
|
|
352
352
|
color='primary'
|
|
353
353
|
onClick={() => onClose()}
|
|
354
|
-
disabled={!timeSelected}
|
|
354
|
+
disabled={!isASP ? !timeSelected : false}
|
|
355
355
|
>
|
|
356
356
|
<span>{t('CONTINUE', 'Continue')}</span>
|
|
357
357
|
<ArrowRight />
|
|
@@ -190,7 +190,7 @@ const OrderDetailsUI = (props) => {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
const locations = [
|
|
193
|
-
{ ...order?.driver?.location, icon: order?.driver?.photo || theme.images?.
|
|
193
|
+
{ ...order?.driver?.location, icon: order?.driver?.photo || theme.images?.general?.driverPng },
|
|
194
194
|
{ ...order?.business?.location, icon: order?.business?.logo || theme.images?.dummies?.businessLogo },
|
|
195
195
|
{ ...order?.customer?.location, icon: order?.customer?.photo || theme.images?.dummies?.customerPhoto }
|
|
196
196
|
]
|
|
Binary file
|