ordering-ui-external 10.7.9 → 10.8.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.
- package/_bundles/{0.ordering-ui.fe9ee0200d1b9bb29a58.js → 0.ordering-ui.ad849ea5dc1ae6d3e86a.js} +1 -1
- package/_bundles/{1.ordering-ui.fe9ee0200d1b9bb29a58.js → 1.ordering-ui.ad849ea5dc1ae6d3e86a.js} +1 -1
- package/_bundles/{2.ordering-ui.fe9ee0200d1b9bb29a58.js → 2.ordering-ui.ad849ea5dc1ae6d3e86a.js} +1 -1
- package/_bundles/{4.ordering-ui.fe9ee0200d1b9bb29a58.js → 4.ordering-ui.ad849ea5dc1ae6d3e86a.js} +1 -1
- package/_bundles/{5.ordering-ui.fe9ee0200d1b9bb29a58.js → 5.ordering-ui.ad849ea5dc1ae6d3e86a.js} +1 -1
- package/_bundles/{6.ordering-ui.fe9ee0200d1b9bb29a58.js → 6.ordering-ui.ad849ea5dc1ae6d3e86a.js} +1 -1
- package/_bundles/{7.ordering-ui.fe9ee0200d1b9bb29a58.js → 7.ordering-ui.ad849ea5dc1ae6d3e86a.js} +2 -2
- package/_bundles/{8.ordering-ui.fe9ee0200d1b9bb29a58.js → 8.ordering-ui.ad849ea5dc1ae6d3e86a.js} +1 -1
- package/_bundles/{9.ordering-ui.fe9ee0200d1b9bb29a58.js → 9.ordering-ui.ad849ea5dc1ae6d3e86a.js} +1 -1
- package/_bundles/ordering-ui.ad849ea5dc1ae6d3e86a.js +2 -0
- package/_bundles/{ordering-ui.fe9ee0200d1b9bb29a58.js.LICENSE.txt → ordering-ui.ad849ea5dc1ae6d3e86a.js.LICENSE.txt} +2 -0
- package/_modules/themes/five/src/components/MomentControl/index.js +1 -1
- package/package.json +2 -2
- package/src/themes/five/src/components/MomentControl/index.js +4 -4
- package/_bundles/ordering-ui.fe9ee0200d1b9bb29a58.js +0 -2
- /package/_bundles/{7.ordering-ui.fe9ee0200d1b9bb29a58.js.LICENSE.txt → 7.ordering-ui.ad849ea5dc1ae6d3e86a.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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.8.0",
|
|
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 />
|